@lovrabet/rabetbase-cli 2.5.1-beta.4 → 2.5.1-beta.6

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 (344) hide show
  1. package/README.md +75 -1
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.d.ts +0 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/auth/auth-server-ui.js +1 -1
  8. package/lib/auth/auth-server.js +1 -1
  9. package/lib/auth/constant.js +1 -1
  10. package/lib/auth/get-cookie.js +1 -1
  11. package/lib/auth/get-session-user.js +1 -1
  12. package/lib/auth/is-session-valid.js +1 -1
  13. package/lib/auth/login-success-html.js +1 -1
  14. package/lib/auth/logout.js +1 -1
  15. package/lib/cli-flags.js +1 -1
  16. package/lib/cli.js +1 -1
  17. package/lib/commands/api/generate.js +1 -1
  18. package/lib/commands/api/index.js +1 -1
  19. package/lib/commands/api/list.js +1 -1
  20. package/lib/commands/api/pull.js +1 -1
  21. package/lib/commands/api/shared.js +1 -1
  22. package/lib/commands/app/index.js +1 -1
  23. package/lib/commands/app/list.js +1 -1
  24. package/lib/commands/app/members-list.js +1 -1
  25. package/lib/commands/app/remote-directory.js +1 -1
  26. package/lib/commands/app/shared.js +1 -1
  27. package/lib/commands/app-config/delete.js +1 -1
  28. package/lib/commands/app-config/get.js +1 -1
  29. package/lib/commands/app-config/index.js +1 -1
  30. package/lib/commands/app-config/list.js +1 -1
  31. package/lib/commands/app-config/set.js +1 -1
  32. package/lib/commands/app-config/shared.js +1 -1
  33. package/lib/commands/auth/index.js +1 -1
  34. package/lib/commands/bff/create.js +1 -1
  35. package/lib/commands/bff/delete.js +1 -1
  36. package/lib/commands/bff/detail.js +1 -1
  37. package/lib/commands/bff/index.js +1 -1
  38. package/lib/commands/bff/list.js +1 -1
  39. package/lib/commands/bff/pull.js +1 -1
  40. package/lib/commands/bff/push.js +1 -1
  41. package/lib/commands/bff/status.js +1 -1
  42. package/lib/commands/cli-skill/index.js +1 -1
  43. package/lib/commands/cli-update.js +1 -1
  44. package/lib/commands/codegen/index.js +1 -1
  45. package/lib/commands/codegen/sdk.js +1 -1
  46. package/lib/commands/codegen/sql.js +1 -1
  47. package/lib/commands/common/app-registry.js +1 -1
  48. package/lib/commands/common/app-selector.js +1 -1
  49. package/lib/commands/common/async-task.js +1 -1
  50. package/lib/commands/common/dry-run.js +1 -1
  51. package/lib/commands/common/flags.d.ts +2 -0
  52. package/lib/commands/common/flags.js +1 -1
  53. package/lib/commands/common/local-file.js +1 -1
  54. package/lib/commands/common/validate.js +1 -1
  55. package/lib/commands/config/delete.js +1 -1
  56. package/lib/commands/config/get.js +1 -1
  57. package/lib/commands/config/index.js +1 -1
  58. package/lib/commands/config/init.d.ts +2 -0
  59. package/lib/commands/config/init.js +1 -1
  60. package/lib/commands/config/list.js +1 -1
  61. package/lib/commands/config/set.js +1 -1
  62. package/lib/commands/config/shared.js +1 -1
  63. package/lib/commands/dataset/business-group-update.js +1 -1
  64. package/lib/commands/dataset/business-groups.js +1 -1
  65. package/lib/commands/dataset/capability.js +1 -1
  66. package/lib/commands/dataset/delete.js +1 -1
  67. package/lib/commands/dataset/detail.js +1 -1
  68. package/lib/commands/dataset/extend-update.js +1 -1
  69. package/lib/commands/dataset/field-restore.js +1 -1
  70. package/lib/commands/dataset/field-update.js +1 -1
  71. package/lib/commands/dataset/generate.js +1 -1
  72. package/lib/commands/dataset/index.js +1 -1
  73. package/lib/commands/dataset/list.js +1 -1
  74. package/lib/commands/dataset/operations.js +1 -1
  75. package/lib/commands/dataset/relation-audit.js +1 -1
  76. package/lib/commands/dataset/relation-create.js +1 -1
  77. package/lib/commands/dataset/relation-delete.js +1 -1
  78. package/lib/commands/dataset/relation-shared.js +1 -1
  79. package/lib/commands/dataset/relation-update.js +1 -1
  80. package/lib/commands/dataset/relations.js +1 -1
  81. package/lib/commands/dataset/rename.js +1 -1
  82. package/lib/commands/dataset/restore.js +1 -1
  83. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  84. package/lib/commands/db/analysis-batching.js +1 -1
  85. package/lib/commands/db/analyze-batch-plan.js +1 -1
  86. package/lib/commands/db/analyze-cancel.js +1 -1
  87. package/lib/commands/db/analyze-start.js +1 -1
  88. package/lib/commands/db/analyze-status.js +1 -1
  89. package/lib/commands/db/create.js +1 -1
  90. package/lib/commands/db/delete.js +1 -1
  91. package/lib/commands/db/detail.js +1 -1
  92. package/lib/commands/db/diff-refresh-start.js +1 -1
  93. package/lib/commands/db/diff-refresh-status.js +1 -1
  94. package/lib/commands/db/diff.js +1 -1
  95. package/lib/commands/db/index.js +1 -1
  96. package/lib/commands/db/list.js +1 -1
  97. package/lib/commands/db/shared.js +1 -1
  98. package/lib/commands/db/table-diff-shared.js +1 -1
  99. package/lib/commands/db/tables.js +1 -1
  100. package/lib/commands/db/test.js +1 -1
  101. package/lib/commands/db/update.js +1 -1
  102. package/lib/commands/deployment/auto-sync.js +1 -1
  103. package/lib/commands/deployment/index.js +1 -1
  104. package/lib/commands/deployment/sync.js +1 -1
  105. package/lib/commands/doctor.js +1 -1
  106. package/lib/commands/file/index.js +1 -1
  107. package/lib/commands/issue/index.js +1 -1
  108. package/lib/commands/issue/nudge.js +1 -1
  109. package/lib/commands/issue/report.js +1 -1
  110. package/lib/commands/issue/shared.js +1 -1
  111. package/lib/commands/kb/create.js +1 -1
  112. package/lib/commands/kb/delete.js +1 -1
  113. package/lib/commands/kb/detail.js +1 -1
  114. package/lib/commands/kb/index.js +1 -1
  115. package/lib/commands/kb/list.js +1 -1
  116. package/lib/commands/kb/search.js +1 -1
  117. package/lib/commands/kb/shared.js +1 -1
  118. package/lib/commands/kb/update.js +1 -1
  119. package/lib/commands/logs/index.js +1 -1
  120. package/lib/commands/menu/asset-update.js +1 -1
  121. package/lib/commands/menu/delete.js +1 -1
  122. package/lib/commands/menu/external-link-create.js +1 -1
  123. package/lib/commands/menu/external-link-update.js +1 -1
  124. package/lib/commands/menu/group-create.js +1 -1
  125. package/lib/commands/menu/group-update.js +1 -1
  126. package/lib/commands/menu/index.js +1 -1
  127. package/lib/commands/menu/list.js +1 -1
  128. package/lib/commands/menu/move.js +1 -1
  129. package/lib/commands/menu/regroup-start.js +1 -1
  130. package/lib/commands/menu/rename.js +1 -1
  131. package/lib/commands/menu/shared/compare-table.js +1 -1
  132. package/lib/commands/menu/shared/delete-plan.js +1 -1
  133. package/lib/commands/menu/shared/facts.js +1 -1
  134. package/lib/commands/menu/shared/index.js +1 -1
  135. package/lib/commands/menu/shared/inquirer.js +1 -1
  136. package/lib/commands/menu/shared/local-pages.js +1 -1
  137. package/lib/commands/menu/shared/logic.js +1 -1
  138. package/lib/commands/menu/shared/mutations.js +1 -1
  139. package/lib/commands/menu/shared/service.js +1 -1
  140. package/lib/commands/menu/shared/sync-core.js +1 -1
  141. package/lib/commands/menu/shared/update-core.js +1 -1
  142. package/lib/commands/menu/shared/valid-url.js +1 -1
  143. package/lib/commands/menu/sync.js +1 -1
  144. package/lib/commands/menu/visibility-update.js +1 -1
  145. package/lib/commands/notification/config-create.js +1 -1
  146. package/lib/commands/notification/config-delete.js +1 -1
  147. package/lib/commands/notification/config-list.js +1 -1
  148. package/lib/commands/notification/config-update.js +1 -1
  149. package/lib/commands/notification/index.js +1 -1
  150. package/lib/commands/notification/shared.js +1 -1
  151. package/lib/commands/ocr/index.js +1 -1
  152. package/lib/commands/page/create.js +1 -1
  153. package/lib/commands/page/custom/detail.js +1 -1
  154. package/lib/commands/page/custom/list.js +1 -1
  155. package/lib/commands/page/custom/publish.js +1 -1
  156. package/lib/commands/page/custom/shared.js +1 -1
  157. package/lib/commands/page/custom/syntax.js +1 -1
  158. package/lib/commands/page/custom/template.js +1 -1
  159. package/lib/commands/page/custom/update.js +1 -1
  160. package/lib/commands/page/data-list-status.js +1 -1
  161. package/lib/commands/page/generate-start.js +1 -1
  162. package/lib/commands/page/generate-status.js +1 -1
  163. package/lib/commands/page/index.js +1 -1
  164. package/lib/commands/page/pull.js +1 -1
  165. package/lib/commands/page/push.js +1 -1
  166. package/lib/commands/page/relation-audit.js +1 -1
  167. package/lib/commands/page/restore.js +1 -1
  168. package/lib/commands/page/shared.js +1 -1
  169. package/lib/commands/page/sync.js +1 -1
  170. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  171. package/lib/commands/project/create/format-elapsed.js +1 -1
  172. package/lib/commands/project/create/main.d.ts +1 -0
  173. package/lib/commands/project/create/main.js +1 -1
  174. package/lib/commands/project/create/materialize-project-template.js +1 -1
  175. package/lib/commands/project/create/project-name.js +1 -1
  176. package/lib/commands/project/create/project-template-archive.js +1 -1
  177. package/lib/commands/project/create/project-template-path.js +1 -1
  178. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  179. package/lib/commands/project/create/use-format-code.js +1 -1
  180. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  181. package/lib/commands/project/domain-routing-sync.d.ts +2 -0
  182. package/lib/commands/project/domain-routing-sync.js +1 -0
  183. package/lib/commands/project/index.js +1 -1
  184. package/lib/commands/project/upgrade.js +1 -1
  185. package/lib/commands/registry.js +1 -1
  186. package/lib/commands/role/delete.js +1 -1
  187. package/lib/commands/role/detail.js +1 -1
  188. package/lib/commands/role/index.js +1 -1
  189. package/lib/commands/role/list.js +1 -1
  190. package/lib/commands/role/shared.js +1 -1
  191. package/lib/commands/role/update.js +1 -1
  192. package/lib/commands/role/user-add.js +1 -1
  193. package/lib/commands/role/user-remove.js +1 -1
  194. package/lib/commands/role/user-resolve.js +1 -1
  195. package/lib/commands/rule/get.d.ts +2 -0
  196. package/lib/commands/rule/get.js +1 -0
  197. package/lib/commands/rule/index.d.ts +2 -0
  198. package/lib/commands/rule/index.js +1 -0
  199. package/lib/commands/rule/list.d.ts +2 -0
  200. package/lib/commands/rule/list.js +1 -0
  201. package/lib/commands/rule/set.d.ts +2 -0
  202. package/lib/commands/rule/set.js +1 -0
  203. package/lib/commands/rule/shared.d.ts +43 -0
  204. package/lib/commands/rule/shared.js +1 -0
  205. package/lib/commands/run/index.js +1 -1
  206. package/lib/commands/schema.js +1 -1
  207. package/lib/commands/sql/create.js +1 -1
  208. package/lib/commands/sql/delete.js +1 -1
  209. package/lib/commands/sql/detail.js +1 -1
  210. package/lib/commands/sql/exec.js +1 -1
  211. package/lib/commands/sql/index.js +1 -1
  212. package/lib/commands/sql/list.js +1 -1
  213. package/lib/commands/sql/pull.js +1 -1
  214. package/lib/commands/sql/push.js +1 -1
  215. package/lib/commands/sql/shared.js +1 -1
  216. package/lib/commands/sql/status.js +1 -1
  217. package/lib/commands/sql/validate.js +1 -1
  218. package/lib/commands/task/index.js +1 -1
  219. package/lib/commands/task/status.js +1 -1
  220. package/lib/commands/tenant/index.js +1 -1
  221. package/lib/commands/tenant/members-list.js +1 -1
  222. package/lib/commands/tenant/shared.js +1 -1
  223. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  224. package/lib/commands/user-account/index.js +1 -1
  225. package/lib/commands/workspace/add.js +1 -1
  226. package/lib/commands/workspace/index.js +1 -1
  227. package/lib/commands/workspace/remove.js +1 -1
  228. package/lib/config/deployment-sync.js +1 -1
  229. package/lib/config/domain-config.d.ts +37 -1
  230. package/lib/config/domain-config.js +1 -1
  231. package/lib/config/project-domain-routing.d.ts +27 -0
  232. package/lib/config/project-domain-routing.js +1 -0
  233. package/lib/config/schema.d.ts +1 -1
  234. package/lib/config/schema.js +1 -1
  235. package/lib/constant/cdn.js +1 -1
  236. package/lib/constant/cli.js +1 -1
  237. package/lib/constant/defaults.js +1 -1
  238. package/lib/constant/domain.d.ts +10 -4
  239. package/lib/constant/domain.js +1 -1
  240. package/lib/constant/env.js +1 -1
  241. package/lib/constant/output.js +1 -1
  242. package/lib/constant/paths.js +1 -1
  243. package/lib/constant/region.d.ts +4 -1
  244. package/lib/constant/region.js +1 -1
  245. package/lib/constant/risk.js +1 -1
  246. package/lib/constant/routing-profile.d.ts +43 -49
  247. package/lib/constant/routing-profile.js +1 -1
  248. package/lib/context/app-resolver.js +1 -1
  249. package/lib/context/auth-resolver.js +1 -1
  250. package/lib/context/config-loader.js +1 -1
  251. package/lib/context.d.ts +2 -0
  252. package/lib/context.js +1 -1
  253. package/lib/core/alias-resolver.js +1 -1
  254. package/lib/core/api-client.d.ts +21 -0
  255. package/lib/core/api-client.js +1 -1
  256. package/lib/core/bff/config.js +1 -1
  257. package/lib/core/bff/file-system.js +1 -1
  258. package/lib/core/bff/hash.js +1 -1
  259. package/lib/core/bff/lock.js +1 -1
  260. package/lib/core/bff/utils.js +1 -1
  261. package/lib/core/db-resolver.js +1 -1
  262. package/lib/core/kb-search-client.js +1 -1
  263. package/lib/core/page/file-system.js +1 -1
  264. package/lib/core/page/hash.js +1 -1
  265. package/lib/core/page/lock.js +1 -1
  266. package/lib/core/sql-index-auditor.js +1 -1
  267. package/lib/core/sql-sync/config.js +1 -1
  268. package/lib/core/sql-sync/file-system.js +1 -1
  269. package/lib/core/sql-sync/hash.js +1 -1
  270. package/lib/core/sql-sync/lock.js +1 -1
  271. package/lib/core/sql-sync/utils.js +1 -1
  272. package/lib/core/sql-validator.js +1 -1
  273. package/lib/errors.js +1 -1
  274. package/lib/framework/build-all-flags.js +1 -1
  275. package/lib/framework/error-output.js +1 -1
  276. package/lib/framework/explicit-yes.js +1 -1
  277. package/lib/framework/flags.js +1 -1
  278. package/lib/framework/help.js +1 -1
  279. package/lib/framework/index.js +1 -1
  280. package/lib/framework/output.js +1 -1
  281. package/lib/framework/response.js +1 -1
  282. package/lib/framework/runner-alias.js +1 -1
  283. package/lib/framework/runner.js +1 -1
  284. package/lib/framework/schema-export.js +1 -1
  285. package/lib/framework/types.js +1 -1
  286. package/lib/generated/build-info.d.ts +4 -4
  287. package/lib/generated/build-info.js +1 -1
  288. package/lib/generated/official-routing.d.ts +83 -0
  289. package/lib/generated/official-routing.js +1 -0
  290. package/lib/generated/routing-contract.d.ts +9 -0
  291. package/lib/generated/routing-contract.js +1 -0
  292. package/lib/help.js +1 -1
  293. package/lib/postinstall.js +1 -1
  294. package/lib/runtime/confirmation.js +1 -1
  295. package/lib/runtime/event.js +1 -1
  296. package/lib/runtime/index.js +1 -1
  297. package/lib/runtime/queue.js +1 -1
  298. package/lib/runtime/resolve.js +1 -1
  299. package/lib/skills/builtin-skill.js +1 -1
  300. package/lib/skills/main.js +1 -1
  301. package/lib/skills/npx-skills-add.js +1 -1
  302. package/lib/skills/skill-presence.js +1 -1
  303. package/lib/telemetry/cli-command-trace.js +1 -1
  304. package/lib/telemetry/cli-help-trace.js +1 -1
  305. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  306. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  307. package/lib/telemetry/send-cli-trace-log.js +1 -1
  308. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  309. package/lib/types/index.d.ts +0 -1
  310. package/lib/utils/ai_config.js +1 -1
  311. package/lib/utils/apply-jq-filter.js +1 -1
  312. package/lib/utils/cdn-config.js +1 -1
  313. package/lib/utils/check-sdk-version.js +1 -1
  314. package/lib/utils/cli-version-check.js +1 -1
  315. package/lib/utils/cli-version-policy.js +1 -1
  316. package/lib/utils/config.js +1 -1
  317. package/lib/utils/entity-with-id.js +1 -1
  318. package/lib/utils/file-utils.js +1 -1
  319. package/lib/utils/guides-cdn.js +1 -1
  320. package/lib/utils/http-client.js +1 -1
  321. package/lib/utils/is-non-interactive.js +1 -1
  322. package/lib/utils/logger.js +1 -1
  323. package/lib/utils/params.js +1 -1
  324. package/lib/utils/platform.js +1 -1
  325. package/lib/utils/sleep.js +1 -1
  326. package/lib/utils/template-replacer.js +1 -1
  327. package/lib/utils/update-notice.js +1 -1
  328. package/lib/utils/version.js +1 -1
  329. package/lib/utils/with-active-cookie.js +1 -1
  330. package/lib/utils/write-cli-side-channel.js +1 -1
  331. package/package.json +2 -1
  332. package/skills/rabetbase/SKILL.md +15 -12
  333. package/skills/rabetbase/guides/sdk-client-generation.md +10 -8
  334. package/skills/rabetbase/references/rabetbase-api-pull.md +16 -11
  335. package/skills/rabetbase/references/rabetbase-config.md +3 -3
  336. package/skills/rabetbase/references/rabetbase-database-template.md +36 -0
  337. package/skills/rabetbase/references/rabetbase-doctor.md +1 -0
  338. package/skills/rabetbase/references/rabetbase-init.md +32 -8
  339. package/skills/rabetbase/references/rabetbase-project-create.md +33 -8
  340. package/skills/rabetbase/references/rabetbase-project-domain-routing-sync.md +28 -0
  341. package/skills/rabetbase/references/rabetbase-rule.md +64 -0
  342. package/skills/rabetbase.manifest.json +6 -3
  343. package/lib/config/project-routing.d.ts +0 -30
  344. package/lib/config/project-routing.js +0 -1
@@ -1 +1 @@
1
- const a275_0x1e93c9=a275_0x2461;(function(_0x381234,_0x1448ee){const _0x15a6bd=a275_0x2461,_0x1190cb=_0x381234();while(!![]){try{const _0x1644e9=-parseInt(_0x15a6bd(0x178))/0x1*(-parseInt(_0x15a6bd(0x17a))/0x2)+parseInt(_0x15a6bd(0x15b))/0x3+parseInt(_0x15a6bd(0x175))/0x4+parseInt(_0x15a6bd(0x15d))/0x5*(-parseInt(_0x15a6bd(0x165))/0x6)+parseInt(_0x15a6bd(0x162))/0x7*(-parseInt(_0x15a6bd(0x14f))/0x8)+-parseInt(_0x15a6bd(0x15a))/0x9*(-parseInt(_0x15a6bd(0x167))/0xa)+-parseInt(_0x15a6bd(0x168))/0xb;if(_0x1644e9===_0x1448ee)break;else _0x1190cb['push'](_0x1190cb['shift']());}catch(_0x4330d0){_0x1190cb['push'](_0x1190cb['shift']());}}}(a275_0x44c5,0x8ca53));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills@latest';export const NPX_SKILLS_SUBCOMMAND_ADD=a275_0x1e93c9(0x169);export const NPX_SKILLS_FLAG_SKILL=a275_0x1e93c9(0x16c);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a275_0x1e93c9(0x149);export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export const RABETBASE_GLOBAL_SKILL_NAME=a275_0x1e93c9(0x173);export const RABETBASE_SKILL_GIT_SOURCE=a275_0x1e93c9(0x16e);export function resolveGlobalSkillName(_0x2e1c19){const _0x2c71b1=a275_0x1e93c9;switch(_0x2e1c19[_0x2c71b1(0x151)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}function a275_0x44c5(){const _0x5c88f6=['8577250WmMjql','add','stdout','stdio','--skill','presence','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','EACCES','npx','filter','INSTALL_PARTIAL','rabetbase','stderr','1308220IsYSng','message','CHILD_TERMINATED','6022aHZLys','npx\x20terminated\x20by\x20signal\x20','202YWQvJd','expectedSkillName','status','pipe','warn','join','lovrabet/lovrabet-skill','skill','exit\x20','Installer\x20reported\x20','present','SKILL_NOT_INSTALLED','5849392nlpSti','error','trim','match','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','PERMISSION_DENIED','NPM_CONFIG_GLOBAL','code','state','npm_config_global','push','18GjNSzt','3016218NVQyok','checked','10iYYvGa','\x20failed\x20target(s)','Skill\x20\x22','signal','reason','7rgWsgD','log','inherit','2847402aqfPmE','ENOENT','5477290odOrpV'];a275_0x44c5=function(){return _0x5c88f6;};return a275_0x44c5();}export function buildNpxSkillsAddArgv(_0x446397){const _0x2a28dd=a275_0x1e93c9,_0x51abf2=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x446397&&_0x51abf2[_0x2a28dd(0x159)](NPX_SKILLS_FLAG_SKILL,_0x446397),_0x51abf2;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a275_0x1e93c9(0x170),...buildNpxSkillsAddArgv()][a275_0x1e93c9(0x148)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x15bed3,_0x314eea,_0xdac4da){return{'ok':![],'status':_0x314eea,'code':_0x15bed3,'error':'['+_0x15bed3+']\x20'+_0xdac4da};}function a275_0x2461(_0x4555cd,_0x5ca32a){_0x4555cd=_0x4555cd-0x148;const _0x44c5ec=a275_0x44c5();let _0x2461c6=_0x44c5ec[_0x4555cd];return _0x2461c6;}function spawnOptions(_0x5bbd9c,_0x41edba){const _0x4c80c4=a275_0x1e93c9,_0x43eb4a={...process.env};return delete _0x43eb4a[_0x4c80c4(0x158)],delete _0x43eb4a[_0x4c80c4(0x155)],{'cwd':_0x5bbd9c,'stdio':_0x41edba,'env':_0x43eb4a,'shell':![],..._0x41edba===_0x4c80c4(0x17d)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x520d04,_0x339ce8,_0x170f0c,_0x31ad47){const _0x36631f=a275_0x1e93c9,_0x42db86=[_0x520d04[_0x36631f(0x16a)]?_0x520d04[_0x36631f(0x16a)]['toString']():'',_0x520d04[_0x36631f(0x174)]?_0x520d04[_0x36631f(0x174)]['toString']():''][_0x36631f(0x171)](Boolean)[_0x36631f(0x148)]('\x0a')[_0x36631f(0x151)]();_0x31ad47!=='pipe'&&_0x42db86&&console[_0x36631f(0x163)](_0x42db86);if(_0x520d04[_0x36631f(0x150)]){const _0x3f4269=_0x520d04[_0x36631f(0x150)],_0x4ee147=_0x3f4269['code']===_0x36631f(0x166)?'NPX_NOT_FOUND':_0x3f4269[_0x36631f(0x156)]==='EPERM'||_0x3f4269['code']===_0x36631f(0x16f)?_0x36631f(0x154):'SPAWN_FAILED';return failure(_0x4ee147,_0x520d04['status'],_0x3f4269[_0x36631f(0x176)]);}if(_0x520d04[_0x36631f(0x160)])return failure(_0x36631f(0x177),_0x520d04['status'],_0x36631f(0x179)+_0x520d04[_0x36631f(0x160)]);if(_0x520d04[_0x36631f(0x17c)]!==0x0)return failure('CHILD_EXIT_NONZERO',_0x520d04['status'],_0x42db86||_0x36631f(0x14b)+(_0x520d04['status']??'unknown'));const _0x946fb8=_0x339ce8?resolveInstalledSkill(_0x339ce8,_0x170f0c):undefined,_0x58b526=_0x42db86[_0x36631f(0x152)](/Failed to install\s+(\d+)/i);if(_0x58b526&&Number(_0x58b526[0x1])>0x0){const _0x54df35=_0x36631f(0x14c)+_0x58b526[0x1]+_0x36631f(0x15e)+(_0x42db86?':\x0a'+_0x42db86:'');if(_0x946fb8?.[_0x36631f(0x157)]===_0x36631f(0x14d))return console[_0x36631f(0x17e)]('!\x20'+_0x54df35),{'ok':!![],'status':0x0};return failure(_0x36631f(0x172),0x0,_0x54df35);}if(_0x946fb8){if(_0x946fb8[_0x36631f(0x157)]==='absent')return failure(_0x36631f(0x14e),0x0,_0x36631f(0x15f)+_0x339ce8+_0x36631f(0x153)+_0x946fb8[_0x36631f(0x15c)]['join'](',\x20')+')');_0x946fb8[_0x36631f(0x157)]==='unverifiable'&&console[_0x36631f(0x17e)]('!\x20Could\x20not\x20verify\x20\x22'+_0x339ce8+'\x22\x20install\x20state:\x20'+_0x946fb8[_0x36631f(0x161)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x470c96,_0x1ccf01){const _0x19e1eb=a275_0x1e93c9;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x11db37=_0x1ccf01?.['stdio']??_0x19e1eb(0x164),_0x11f59c=resolveNpmBin(_0x19e1eb(0x170)),_0x11edee=buildNpxSkillsAddArgv(_0x1ccf01?.[_0x19e1eb(0x14a)]),_0x23cd82=[_0x19e1eb(0x170),..._0x11edee][_0x19e1eb(0x148)]('\x20');console[_0x19e1eb(0x163)]('*\x20'+_0x23cd82);const _0x271191=spawnSync(_0x11f59c,_0x11edee,spawnOptions(_0x470c96,_0x11db37));return normalizeSpawnResult(_0x271191,undefined,undefined,_0x11db37);}export function runNpxSkillsRemove(_0xf5c7a6,_0x345129,_0x3aeebc=LEGACY_RABETBASE_SKILL_SOURCE){const _0x154fa4=a275_0x1e93c9;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5b5aa0=_0x345129?.[_0x154fa4(0x16b)]??_0x154fa4(0x164),_0x334715=resolveNpmBin(_0x154fa4(0x170)),_0x539469=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x3aeebc,NPX_SKILLS_FLAG_SKILL,_0x345129?.[_0x154fa4(0x14a)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x345129?.['yes']?['-y']:[]],_0x44d818=[_0x334715,..._0x539469][_0x154fa4(0x148)]('\x20');console[_0x154fa4(0x163)]('*\x20'+_0x44d818);const _0x2e7f6e=spawnSync(_0x334715,_0x539469,spawnOptions(_0xf5c7a6,_0x5b5aa0));return normalizeSpawnResult(_0x2e7f6e,undefined,undefined,_0x5b5aa0);}export function runNpxSkillsAddGlobal(_0x4c27e4,_0x3b7855,_0x19ba67){const _0x4c25f9=a275_0x1e93c9;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x27a5f9=resolveNpmBin(_0x4c25f9(0x170)),_0x3c418e=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3b7855,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x587145=[_0x4c25f9(0x170),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3b7855,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x4c25f9(0x148)]('\x20');console[_0x4c25f9(0x163)]('*\x20'+_0x587145);const _0x290e03=spawnSync(_0x27a5f9,_0x3c418e,spawnOptions(_0x4c27e4,'pipe'));return normalizeSpawnResult(_0x290e03,_0x19ba67?.[_0x4c25f9(0x17b)]??resolveGlobalSkillName(_0x3b7855),_0x19ba67?.[_0x4c25f9(0x16d)],_0x19ba67?.[_0x4c25f9(0x16b)]);}
1
+ const a283_0x2d884a=a283_0x4625;(function(_0x9bf0e7,_0x337250){const _0x2abeb9=a283_0x4625,_0x3b493c=_0x9bf0e7();while(!![]){try{const _0x558bc7=parseInt(_0x2abeb9(0x1c7))/0x1+-parseInt(_0x2abeb9(0x1bf))/0x2+parseInt(_0x2abeb9(0x1c0))/0x3+parseInt(_0x2abeb9(0x1d1))/0x4+parseInt(_0x2abeb9(0x1e1))/0x5+-parseInt(_0x2abeb9(0x1ed))/0x6*(-parseInt(_0x2abeb9(0x1ca))/0x7)+-parseInt(_0x2abeb9(0x1d2))/0x8;if(_0x558bc7===_0x337250)break;else _0x3b493c['push'](_0x3b493c['shift']());}catch(_0x10c666){_0x3b493c['push'](_0x3b493c['shift']());}}}(a283_0x122d,0xbfbb5));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a283_0x2d884a(0x1d9);export const NPX_SKILLS_SUBCOMMAND_ADD=a283_0x2d884a(0x1cc);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a283_0x2d884a(0x1e9);export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME=a283_0x2d884a(0x1e0);export const RABETBASE_GLOBAL_SKILL_NAME=a283_0x2d884a(0x1c8);export const RABETBASE_SKILL_GIT_SOURCE='git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git';export function resolveGlobalSkillName(_0xa0797){const _0x4614d1=a283_0x2d884a;switch(_0xa0797[_0x4614d1(0x1be)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x50f09b){const _0x32883f=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x50f09b&&_0x32883f['push'](NPX_SKILLS_FLAG_SKILL,_0x50f09b),_0x32883f;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a283_0x2d884a(0x1ce),...buildNpxSkillsAddArgv()][a283_0x2d884a(0x1dd)]('\x20');function a283_0x4625(_0x3f2f39,_0x950e75){_0x3f2f39=_0x3f2f39-0x1bd;const _0x122d59=a283_0x122d();let _0x46257c=_0x122d59[_0x3f2f39];return _0x46257c;}export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x1b9b2f,_0x45d010,_0x232803){return{'ok':![],'status':_0x45d010,'code':_0x1b9b2f,'error':'['+_0x1b9b2f+']\x20'+_0x232803};}function spawnOptions(_0x3a1562,_0x377e8b){const _0x4c845b=a283_0x2d884a,_0x2abf69={...process.env};return delete _0x2abf69[_0x4c845b(0x1f3)],delete _0x2abf69[_0x4c845b(0x1e3)],{'cwd':_0x3a1562,'stdio':_0x377e8b,'env':_0x2abf69,'shell':![],..._0x377e8b===_0x4c845b(0x1eb)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x1f7ae9,_0x4442fa,_0x494732,_0x32f0f7){const _0x46c40e=a283_0x2d884a,_0xc90cde=[_0x1f7ae9[_0x46c40e(0x1c1)]?_0x1f7ae9[_0x46c40e(0x1c1)][_0x46c40e(0x1ef)]():'',_0x1f7ae9[_0x46c40e(0x1d5)]?_0x1f7ae9[_0x46c40e(0x1d5)][_0x46c40e(0x1ef)]():''][_0x46c40e(0x1df)](Boolean)[_0x46c40e(0x1dd)]('\x0a')['trim']();_0x32f0f7!==_0x46c40e(0x1eb)&&_0xc90cde&&console[_0x46c40e(0x1de)](_0xc90cde);if(_0x1f7ae9[_0x46c40e(0x1e2)]){const _0x2c5844=_0x1f7ae9[_0x46c40e(0x1e2)],_0x4765be=_0x2c5844[_0x46c40e(0x1e6)]===_0x46c40e(0x1db)?_0x46c40e(0x1da):_0x2c5844['code']===_0x46c40e(0x1cf)||_0x2c5844['code']===_0x46c40e(0x1cb)?_0x46c40e(0x1e7):_0x46c40e(0x1ea);return failure(_0x4765be,_0x1f7ae9[_0x46c40e(0x1e4)],_0x2c5844[_0x46c40e(0x1d7)]);}if(_0x1f7ae9[_0x46c40e(0x1f5)])return failure(_0x46c40e(0x1d4),_0x1f7ae9[_0x46c40e(0x1e4)],_0x46c40e(0x1c2)+_0x1f7ae9[_0x46c40e(0x1f5)]);if(_0x1f7ae9[_0x46c40e(0x1e4)]!==0x0)return failure(_0x46c40e(0x1ee),_0x1f7ae9[_0x46c40e(0x1e4)],_0xc90cde||_0x46c40e(0x1f0)+(_0x1f7ae9[_0x46c40e(0x1e4)]??_0x46c40e(0x1e5)));const _0x344d14=_0x4442fa?resolveInstalledSkill(_0x4442fa,_0x494732):undefined,_0x176b8d=_0xc90cde[_0x46c40e(0x1d8)](/Failed to install\s+(\d+)/i);if(_0x176b8d&&Number(_0x176b8d[0x1])>0x0){const _0x11934d=_0x46c40e(0x1c6)+_0x176b8d[0x1]+_0x46c40e(0x1d0)+(_0xc90cde?':\x0a'+_0xc90cde:'');if(_0x344d14?.[_0x46c40e(0x1f1)]===_0x46c40e(0x1c3))return console['warn']('!\x20'+_0x11934d),{'ok':!![],'status':0x0};return failure('INSTALL_PARTIAL',0x0,_0x11934d);}if(_0x344d14){if(_0x344d14[_0x46c40e(0x1f1)]==='absent')return failure('SKILL_NOT_INSTALLED',0x0,_0x46c40e(0x1f2)+_0x4442fa+_0x46c40e(0x1d6)+_0x344d14[_0x46c40e(0x1ec)][_0x46c40e(0x1dd)](',\x20')+')');_0x344d14[_0x46c40e(0x1f1)]===_0x46c40e(0x1c5)&&console[_0x46c40e(0x1cd)]('!\x20Could\x20not\x20verify\x20\x22'+_0x4442fa+_0x46c40e(0x1bd)+_0x344d14['reason']);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x45cfca,_0x1d2bf4){const _0x54a680=a283_0x2d884a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5eef7f=_0x1d2bf4?.['stdio']??_0x54a680(0x1d3),_0x3ed5b7=resolveNpmBin(_0x54a680(0x1ce)),_0x581b33=buildNpxSkillsAddArgv(_0x1d2bf4?.['skill']),_0xb5d01f=[_0x54a680(0x1ce),..._0x581b33][_0x54a680(0x1dd)]('\x20');console['log']('*\x20'+_0xb5d01f);const _0x1e8875=spawnSync(_0x3ed5b7,_0x581b33,spawnOptions(_0x45cfca,_0x5eef7f));return normalizeSpawnResult(_0x1e8875,undefined,undefined,_0x5eef7f);}function a283_0x122d(){const _0x351cf8=['toString','exit\x20','state','Skill\x20\x22','npm_config_global','presence','signal','\x22\x20install\x20state:\x20','trim','280904WMoIzs','276909OWWJal','stdout','npx\x20terminated\x20by\x20signal\x20','present','skill','unverifiable','Installer\x20reported\x20','207006qqJvfh','rabetbase','stdio','77VIIMJC','EACCES','add','warn','npx','EPERM','\x20failed\x20target(s)','1920548UUWQcw','7576496qMRmSk','inherit','CHILD_TERMINATED','stderr','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','message','match','skills@latest','NPX_NOT_FOUND','ENOENT','remove','join','log','filter','Lovrabet','4994995YVqsFm','error','NPM_CONFIG_GLOBAL','status','unknown','code','PERMISSION_DENIED','yes','lovrabet/rabetbase','SPAWN_FAILED','pipe','checked','51492TTxlLL','CHILD_EXIT_NONZERO'];a283_0x122d=function(){return _0x351cf8;};return a283_0x122d();}export function runNpxSkillsRemove(_0x4d2829,_0x3cb2f2,_0x49d121=LEGACY_RABETBASE_SKILL_SOURCE){const _0x401176=a283_0x2d884a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x423ebd=_0x3cb2f2?.[_0x401176(0x1c9)]??_0x401176(0x1d3),_0x14e243=resolveNpmBin(_0x401176(0x1ce)),_0x59b1fa=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x401176(0x1dc),_0x49d121,NPX_SKILLS_FLAG_SKILL,_0x3cb2f2?.[_0x401176(0x1c4)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x3cb2f2?.[_0x401176(0x1e8)]?['-y']:[]],_0x378a07=[_0x14e243,..._0x59b1fa][_0x401176(0x1dd)]('\x20');console[_0x401176(0x1de)]('*\x20'+_0x378a07);const _0x23fd78=spawnSync(_0x14e243,_0x59b1fa,spawnOptions(_0x4d2829,_0x423ebd));return normalizeSpawnResult(_0x23fd78,undefined,undefined,_0x423ebd);}export function runNpxSkillsAddGlobal(_0x222854,_0x490d59,_0x4abb38){const _0x1b7557=a283_0x2d884a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x45fd7d=resolveNpmBin(_0x1b7557(0x1ce)),_0x5ca350=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x490d59,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x573735=[_0x1b7557(0x1ce),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x490d59,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console['log']('*\x20'+_0x573735);const _0x19a1d6=spawnSync(_0x45fd7d,_0x5ca350,spawnOptions(_0x222854,_0x1b7557(0x1eb)));return normalizeSpawnResult(_0x19a1d6,_0x4abb38?.['expectedSkillName']??resolveGlobalSkillName(_0x490d59),_0x4abb38?.[_0x1b7557(0x1f4)],_0x4abb38?.[_0x1b7557(0x1c9)]);}
@@ -1 +1 @@
1
- const a276_0x4198cf=a276_0x85f0;(function(_0x10ab56,_0x2a0966){const _0x16991d=a276_0x85f0,_0x592df7=_0x10ab56();while(!![]){try{const _0x107fb1=-parseInt(_0x16991d(0x12e))/0x1*(parseInt(_0x16991d(0x139))/0x2)+parseInt(_0x16991d(0x133))/0x3*(-parseInt(_0x16991d(0x134))/0x4)+parseInt(_0x16991d(0x132))/0x5*(parseInt(_0x16991d(0x11c))/0x6)+-parseInt(_0x16991d(0x128))/0x7+-parseInt(_0x16991d(0x123))/0x8+-parseInt(_0x16991d(0x136))/0x9+-parseInt(_0x16991d(0x126))/0xa*(-parseInt(_0x16991d(0x122))/0xb);if(_0x107fb1===_0x2a0966)break;else _0x592df7['push'](_0x592df7['shift']());}catch(_0x847f8b){_0x592df7['push'](_0x592df7['shift']());}}}(a276_0x3cbb,0x74365));function a276_0x3cbb(){const _0x430921=['605510feCySH','map','2785916nWetpv','home','skills','present','join','globalSkillsDirs','63148rizGWN','lockFile','recorded','\x20is\x20unreadable:\x20','5WynGvI','1742163dqhlQp','4GkJxbP','absent','7628769cBbZod','object','unusable','2ADJSQt','\x20records\x20\x22','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','version','\x20has\x20no\x20skills\x20map','parse','unverifiable','3349332HtRaVf','kind','.agents','.claude','includes','number','363irTVXc','1527216JLGJHL','SKILL.md','find'];a276_0x3cbb=function(){return _0x430921;};return a276_0x3cbb();}function a276_0x85f0(_0x54a488,_0x524dac){_0x54a488=_0x54a488-0x11b;const _0x3cbbba=a276_0x3cbb();let _0x85f0e=_0x3cbbba[_0x54a488];return _0x85f0e;}import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a276_0x4198cf(0x11e),'.skill-lock.json');export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a276_0x4198cf(0x11e),a276_0x4198cf(0x12a)),join(a276_0x4198cf(0x11f),a276_0x4198cf(0x12a))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x4dba63,_0x1c786c){const _0x51bb15=a276_0x4198cf;if(!existsSync(_0x4dba63))return{'kind':'not-recorded'};let _0x7ebc5f;try{_0x7ebc5f=JSON[_0x51bb15(0x13e)](readFileSync(_0x4dba63,'utf8'));}catch(_0x24f69d){return{'kind':_0x51bb15(0x138),'reason':_0x4dba63+_0x51bb15(0x131)+_0x24f69d['message']};}const _0x189505=_0x7ebc5f;if(typeof _0x189505?.[_0x51bb15(0x13c)]!==_0x51bb15(0x121)||!SUPPORTED_LOCK_VERSIONS[_0x51bb15(0x120)](_0x189505[_0x51bb15(0x13c)]))return{'kind':_0x51bb15(0x138),'reason':_0x4dba63+'\x20uses\x20unsupported\x20version\x20'+String(_0x189505?.['version'])};if(!_0x189505[_0x51bb15(0x12a)]||typeof _0x189505[_0x51bb15(0x12a)]!==_0x51bb15(0x137))return{'kind':_0x51bb15(0x138),'reason':_0x4dba63+_0x51bb15(0x13d)};return _0x189505[_0x51bb15(0x12a)][_0x1c786c]?{'kind':_0x51bb15(0x130)}:{'kind':'not-recorded'};}export function resolveInstalledSkill(_0x159be8,_0x34955b){const _0x6199c3=a276_0x4198cf,_0x344965=_0x34955b?.[_0x6199c3(0x129)]??homedir(),_0x531bbc=_0x34955b?.[_0x6199c3(0x12d)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x6199c3(0x127)](_0x2cc3b1=>join(_0x344965,_0x2cc3b1)),_0x6c7e79=_0x34955b?.[_0x6199c3(0x12f)]??join(_0x344965,SKILL_LOCK_RELATIVE_PATH),_0x3918ff=_0x531bbc[_0x6199c3(0x127)](_0x57e466=>join(_0x57e466,_0x159be8,_0x6199c3(0x124))),_0x3209d8=_0x3918ff[_0x6199c3(0x125)](_0x4a3a1f=>existsSync(_0x4a3a1f));if(_0x3209d8)return{'state':_0x6199c3(0x12b),'path':_0x3209d8};const _0x4b48c9=readLockLookup(_0x6c7e79,_0x159be8);if(_0x4b48c9[_0x6199c3(0x11d)]===_0x6199c3(0x138))return{'state':'unverifiable','reason':_0x4b48c9['reason']};if(_0x4b48c9[_0x6199c3(0x11d)]===_0x6199c3(0x130))return{'state':_0x6199c3(0x11b),'reason':_0x6c7e79+_0x6199c3(0x13a)+_0x159be8+_0x6199c3(0x13b)+('('+_0x3918ff[_0x6199c3(0x12c)](',\x20')+')')};return{'state':_0x6199c3(0x135),'checked':_0x3918ff};}
1
+ const a284_0x20526d=a284_0x2fac;(function(_0x2ac378,_0x576b86){const _0x1ff14b=a284_0x2fac,_0x5266b7=_0x2ac378();while(!![]){try{const _0x140f50=-parseInt(_0x1ff14b(0x9b))/0x1*(-parseInt(_0x1ff14b(0x9c))/0x2)+parseInt(_0x1ff14b(0x83))/0x3+-parseInt(_0x1ff14b(0xa2))/0x4+-parseInt(_0x1ff14b(0x8a))/0x5+parseInt(_0x1ff14b(0x95))/0x6*(parseInt(_0x1ff14b(0x88))/0x7)+parseInt(_0x1ff14b(0xa0))/0x8*(parseInt(_0x1ff14b(0x98))/0x9)+-parseInt(_0x1ff14b(0x7d))/0xa*(parseInt(_0x1ff14b(0x90))/0xb);if(_0x140f50===_0x576b86)break;else _0x5266b7['push'](_0x5266b7['shift']());}catch(_0x4d6be2){_0x5266b7['push'](_0x5266b7['shift']());}}}(a284_0x5f1c,0x926d3));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';function a284_0x2fac(_0x147768,_0x511831){_0x147768=_0x147768-0x7d;const _0x5f1c18=a284_0x5f1c();let _0x2fac8d=_0x5f1c18[_0x147768];return _0x2fac8d;}import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a284_0x20526d(0x85),a284_0x20526d(0x7e));function a284_0x5f1c(){const _0x31e10e=['1647WsqHdZ','reason','\x20records\x20\x22','1RWFvqS','276982CQxekC','map','utf8','SKILL.md','344wWsrnF','absent','1868180LcrCVi','skills','present','2149550LGiRtL','.skill-lock.json','\x20is\x20unreadable:\x20','home','includes','kind','3145155LZMgfa','\x20uses\x20unsupported\x20version\x20','.agents','version','.claude','7GMcBJr','join','2969640RZakVm','find','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','\x20has\x20no\x20skills\x20map','not-recorded','lockFile','33bIuWag','object','recorded','number','unusable','6665136MwgPoa','unverifiable','globalSkillsDirs'];a284_0x5f1c=function(){return _0x31e10e;};return a284_0x5f1c();}export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents',a284_0x20526d(0xa3)),join(a284_0x20526d(0x87),'skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x15ec70,_0x13a991){const _0xa5be5f=a284_0x20526d;if(!existsSync(_0x15ec70))return{'kind':_0xa5be5f(0x8e)};let _0xbd2f24;try{_0xbd2f24=JSON['parse'](readFileSync(_0x15ec70,_0xa5be5f(0x9e)));}catch(_0x2eb1e0){return{'kind':'unusable','reason':_0x15ec70+_0xa5be5f(0x7f)+_0x2eb1e0['message']};}const _0x4a87ba=_0xbd2f24;if(typeof _0x4a87ba?.[_0xa5be5f(0x86)]!==_0xa5be5f(0x93)||!SUPPORTED_LOCK_VERSIONS[_0xa5be5f(0x81)](_0x4a87ba['version']))return{'kind':_0xa5be5f(0x94),'reason':_0x15ec70+_0xa5be5f(0x84)+String(_0x4a87ba?.[_0xa5be5f(0x86)])};if(!_0x4a87ba[_0xa5be5f(0xa3)]||typeof _0x4a87ba['skills']!==_0xa5be5f(0x91))return{'kind':'unusable','reason':_0x15ec70+_0xa5be5f(0x8d)};return _0x4a87ba['skills'][_0x13a991]?{'kind':_0xa5be5f(0x92)}:{'kind':_0xa5be5f(0x8e)};}export function resolveInstalledSkill(_0x4b1022,_0x59c6d5){const _0x41377e=a284_0x20526d,_0x358494=_0x59c6d5?.[_0x41377e(0x80)]??homedir(),_0x33d378=_0x59c6d5?.[_0x41377e(0x97)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS['map'](_0x240428=>join(_0x358494,_0x240428)),_0x54cce0=_0x59c6d5?.[_0x41377e(0x8f)]??join(_0x358494,SKILL_LOCK_RELATIVE_PATH),_0x2eca70=_0x33d378[_0x41377e(0x9d)](_0x2a89da=>join(_0x2a89da,_0x4b1022,_0x41377e(0x9f))),_0x4be2c0=_0x2eca70[_0x41377e(0x8b)](_0x495a37=>existsSync(_0x495a37));if(_0x4be2c0)return{'state':_0x41377e(0xa4),'path':_0x4be2c0};const _0x2fa849=readLockLookup(_0x54cce0,_0x4b1022);if(_0x2fa849[_0x41377e(0x82)]===_0x41377e(0x94))return{'state':_0x41377e(0x96),'reason':_0x2fa849[_0x41377e(0x99)]};if(_0x2fa849['kind']==='recorded')return{'state':'unverifiable','reason':_0x54cce0+_0x41377e(0x9a)+_0x4b1022+_0x41377e(0x8c)+('('+_0x2eca70[_0x41377e(0x89)](',\x20')+')')};return{'state':_0x41377e(0xa1),'checked':_0x2eca70};}
@@ -1 +1 @@
1
- function a277_0x35e9(){const _0x48db22=['durationMs','966096NzxFhb','test','10811196DHthyb','[REDACTED]','command','73677vOoJUZ','320813pdpWlQ','error','4820655jwSbwF','stringify','rabetbase.command','message','1245732qGhwBy','6zogNQk','entries','2658845NOodip','40BrBzud'];a277_0x35e9=function(){return _0x48db22;};return a277_0x35e9();}(function(_0x53d088,_0x496703){const _0x5e7660=a277_0x2a47,_0x320af8=_0x53d088();while(!![]){try{const _0x44fe13=-parseInt(_0x5e7660(0x1db))/0x1*(parseInt(_0x5e7660(0x1e2))/0x2)+parseInt(_0x5e7660(0x1da))/0x3*(parseInt(_0x5e7660(0x1e5))/0x4)+-parseInt(_0x5e7660(0x1e4))/0x5+-parseInt(_0x5e7660(0x1e1))/0x6+parseInt(_0x5e7660(0x1dd))/0x7+parseInt(_0x5e7660(0x1e7))/0x8+parseInt(_0x5e7660(0x1e9))/0x9;if(_0x44fe13===_0x496703)break;else _0x320af8['push'](_0x320af8['shift']());}catch(_0x17c236){_0x320af8['push'](_0x320af8['shift']());}}}(a277_0x35e9,0x875bf));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function a277_0x2a47(_0x3dd099,_0x5bce83){_0x3dd099=_0x3dd099-0x1d9;const _0x35e919=a277_0x35e9();let _0x2a47cc=_0x35e919[_0x3dd099];return _0x2a47cc;}function isSensitiveKey(_0x3b6e39){const _0x523292=a277_0x2a47;return SENSITIVE_PATTERNS['some'](_0x4936d8=>_0x4936d8[_0x523292(0x1e8)](_0x3b6e39));}function sanitizeFlags(_0x34607d){const _0x332ad3=a277_0x2a47,_0x48d3c6={};for(const [_0x16929b,_0x24d70a]of Object[_0x332ad3(0x1e3)](_0x34607d)){isSensitiveKey(_0x16929b)?_0x48d3c6[_0x16929b]=_0x24d70a!=null&&_0x24d70a!==''?_0x332ad3(0x1ea):_0x24d70a:_0x48d3c6[_0x16929b]=_0x24d70a;}return _0x48d3c6;}export async function reportCommandTrace(_0x23fd2f){const _0x30af9e=a277_0x2a47;try{const _0x277d82=sanitizeFlags(_0x23fd2f['flags']);await sendCliTraceLog({'spanName':_0x30af9e(0x1df),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x23fd2f['service'],'command.name':_0x23fd2f[_0x30af9e(0x1d9)],'command.flags':JSON[_0x30af9e(0x1de)](_0x277d82),..._0x23fd2f[_0x30af9e(0x1e6)]!=null?{'command.duration_ms':_0x23fd2f[_0x30af9e(0x1e6)]}:{},..._0x23fd2f['error']?{'command.error':_0x23fd2f[_0x30af9e(0x1dc)]instanceof Error?_0x23fd2f[_0x30af9e(0x1dc)][_0x30af9e(0x1e0)]:String(_0x23fd2f[_0x30af9e(0x1dc)])}:{}}});}catch{}}
1
+ (function(_0x18a414,_0x2f2e92){const _0x4accae=a285_0x9dbc,_0x396240=_0x18a414();while(!![]){try{const _0x5a49ff=-parseInt(_0x4accae(0x12b))/0x1*(-parseInt(_0x4accae(0x11f))/0x2)+parseInt(_0x4accae(0x123))/0x3+-parseInt(_0x4accae(0x121))/0x4*(-parseInt(_0x4accae(0x124))/0x5)+-parseInt(_0x4accae(0x129))/0x6*(parseInt(_0x4accae(0x126))/0x7)+-parseInt(_0x4accae(0x127))/0x8*(-parseInt(_0x4accae(0x11d))/0x9)+parseInt(_0x4accae(0x12e))/0xa*(parseInt(_0x4accae(0x128))/0xb)+-parseInt(_0x4accae(0x12d))/0xc;if(_0x5a49ff===_0x2f2e92)break;else _0x396240['push'](_0x396240['shift']());}catch(_0xd717b4){_0x396240['push'](_0x396240['shift']());}}}(a285_0x1c5a,0x507e1));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a285_0x1c5a(){const _0x276d11=['107340jMMLAL','374955GLWKOL','[REDACTED]','133faAjql','1224lNdWNH','269434ueafVI','169446rSAqFW','stringify','17vRTFKn','durationMs','9554352nHJrJf','120ZCwMAs','command','some','entries','error','35649icgEbj','rabetbase.command','14918wbuYvz','test','32MhxSVD','service'];a285_0x1c5a=function(){return _0x276d11;};return a285_0x1c5a();}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function a285_0x9dbc(_0x4e8048,_0xa715f6){_0x4e8048=_0x4e8048-0x11c;const _0x1c5a1b=a285_0x1c5a();let _0x9dbc7c=_0x1c5a1b[_0x4e8048];return _0x9dbc7c;}function isSensitiveKey(_0x8b172a){const _0x3ac635=a285_0x9dbc;return SENSITIVE_PATTERNS[_0x3ac635(0x130)](_0x114ac7=>_0x114ac7[_0x3ac635(0x120)](_0x8b172a));}function sanitizeFlags(_0x4ef2d9){const _0x44b730=a285_0x9dbc,_0xe34f2a={};for(const [_0x5124ca,_0x335320]of Object[_0x44b730(0x131)](_0x4ef2d9)){isSensitiveKey(_0x5124ca)?_0xe34f2a[_0x5124ca]=_0x335320!=null&&_0x335320!==''?_0x44b730(0x125):_0x335320:_0xe34f2a[_0x5124ca]=_0x335320;}return _0xe34f2a;}export async function reportCommandTrace(_0x420e9a){const _0x5b154e=a285_0x9dbc;try{const _0x413838=sanitizeFlags(_0x420e9a['flags']);await sendCliTraceLog({'spanName':_0x5b154e(0x11e),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x420e9a[_0x5b154e(0x122)],'command.name':_0x420e9a[_0x5b154e(0x12f)],'command.flags':JSON[_0x5b154e(0x12a)](_0x413838),..._0x420e9a[_0x5b154e(0x12c)]!=null?{'command.duration_ms':_0x420e9a[_0x5b154e(0x12c)]}:{},..._0x420e9a['error']?{'command.error':_0x420e9a[_0x5b154e(0x11c)]instanceof Error?_0x420e9a['error']['message']:String(_0x420e9a[_0x5b154e(0x11c)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a278_0x4bbd(_0x200ebc,_0xfec41e){_0x200ebc=_0x200ebc-0x1df;var _0xf481f0=a278_0xf481();var _0x4bbd40=_0xf481f0[_0x200ebc];return _0x4bbd40;}function a278_0xf481(){var _0x4f4270=['cli.help','6wTUuFd','427728cpHoHG','error','12hloYhp','1747QYbpap','3186984muGNLA','13827tnFDSW','4509934LcCDZj','6046047fVtplN','service','Failed\x20to\x20report\x20CLI\x20help\x20trace:','548YdRAgT','477415ABgIIR','10YucjDE'];a278_0xf481=function(){return _0x4f4270;};return a278_0xf481();}(function(_0x375359,_0x132be7){var _0x1afad5=a278_0x4bbd,_0x18e71a=_0x375359();while(!![]){try{var _0x14897e=parseInt(_0x1afad5(0x1e2))/0x1*(parseInt(_0x1afad5(0x1e9))/0x2)+-parseInt(_0x1afad5(0x1e4))/0x3*(parseInt(_0x1afad5(0x1e1))/0x4)+parseInt(_0x1afad5(0x1ea))/0x5*(parseInt(_0x1afad5(0x1ed))/0x6)+-parseInt(_0x1afad5(0x1df))/0x7+parseInt(_0x1afad5(0x1e3))/0x8+-parseInt(_0x1afad5(0x1e6))/0x9*(parseInt(_0x1afad5(0x1eb))/0xa)+parseInt(_0x1afad5(0x1e5))/0xb;if(_0x14897e===_0x132be7)break;else _0x18e71a['push'](_0x18e71a['shift']());}catch(_0x49eb65){_0x18e71a['push'](_0x18e71a['shift']());}}}(a278_0xf481,0x9b3a6));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x5e16ab,_0xfacc6f){var _0x122ef0=a278_0x4bbd;try{await sendCliTraceLog({'spanName':_0x122ef0(0x1ec),'logData':{'rabetbase.help.kind':_0x5e16ab,..._0xfacc6f?.[_0x122ef0(0x1e7)]&&{'rabetbase.help.service':_0xfacc6f[_0x122ef0(0x1e7)]}}});}catch(_0x5772b9){console[_0x122ef0(0x1e0)](_0x122ef0(0x1e8),_0x5772b9);}}
1
+ function a286_0x5a46(_0x50c27c,_0x538d31){_0x50c27c=_0x50c27c-0x77;var _0x2d86bc=a286_0x2d86();var _0x5a4667=_0x2d86bc[_0x50c27c];return _0x5a4667;}function a286_0x2d86(){var _0x23374c=['9iuRqvk','4042129DMsZnh','323160GlSKUW','11163940JVYdkf','409914BQCqqR','638871ejIBsI','service','cli.help','3295004qtPESE','3JBCjEE','178894ZKblUS','5aBsygL'];a286_0x2d86=function(){return _0x23374c;};return a286_0x2d86();}(function(_0x198b70,_0x53f87f){var _0x4d5ba7=a286_0x5a46,_0x4d85b7=_0x198b70();while(!![]){try{var _0x325501=parseInt(_0x4d5ba7(0x7a))/0x1*(-parseInt(_0x4d5ba7(0x7b))/0x2)+-parseInt(_0x4d5ba7(0x82))/0x3+-parseInt(_0x4d5ba7(0x79))/0x4+-parseInt(_0x4d5ba7(0x7c))/0x5*(-parseInt(_0x4d5ba7(0x81))/0x6)+parseInt(_0x4d5ba7(0x7e))/0x7+-parseInt(_0x4d5ba7(0x7f))/0x8*(parseInt(_0x4d5ba7(0x7d))/0x9)+parseInt(_0x4d5ba7(0x80))/0xa;if(_0x325501===_0x53f87f)break;else _0x4d85b7['push'](_0x4d85b7['shift']());}catch(_0x31268b){_0x4d85b7['push'](_0x4d85b7['shift']());}}}(a286_0x2d86,0x65bcc));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x5aa6a8,_0x26389d){var _0x1f87ea=a286_0x5a46;try{await sendCliTraceLog({'spanName':_0x1f87ea(0x78),'logData':{'rabetbase.help.kind':_0x5aa6a8,..._0x26389d?.[_0x1f87ea(0x77)]&&{'rabetbase.help.service':_0x26389d[_0x1f87ea(0x77)]}}});}catch(_0x29b7cf){console['error']('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x29b7cf);}}
@@ -1 +1 @@
1
- (function(_0x16bf01,_0x1363ea){const _0x112f5b=a279_0x1f57,_0x30b8e5=_0x16bf01();while(!![]){try{const _0x30894a=-parseInt(_0x112f5b(0x18c))/0x1+-parseInt(_0x112f5b(0x195))/0x2*(-parseInt(_0x112f5b(0x196))/0x3)+-parseInt(_0x112f5b(0x18a))/0x4+parseInt(_0x112f5b(0x191))/0x5+-parseInt(_0x112f5b(0x18e))/0x6*(parseInt(_0x112f5b(0x189))/0x7)+parseInt(_0x112f5b(0x193))/0x8*(-parseInt(_0x112f5b(0x18f))/0x9)+parseInt(_0x112f5b(0x197))/0xa;if(_0x30894a===_0x1363ea)break;else _0x30b8e5['push'](_0x30b8e5['shift']());}catch(_0x545d91){_0x30b8e5['push'](_0x30b8e5['shift']());}}}(a279_0x3885,0xbba75));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a279_0x1f57(_0x3d6b32,_0x559b47){_0x3d6b32=_0x3d6b32-0x187;const _0x388530=a279_0x3885();let _0x1f5733=_0x388530[_0x3d6b32];return _0x1f5733;}import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';function a279_0x3885(){const _0x33bf16=['6248neEonP','production','345696dNhAru','6CvzhQT','53509020TFTCWf','user','unknown','70VKBnRK','3243316DDCMKs','username','1275316MuBrKI','daily','902124wYHYUp','16830YCBtTA','tenant_code','610930dygZwY','email'];a279_0x3885=function(){return _0x33bf16;};return a279_0x3885();}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x1793a8=a279_0x1f57,_0x1b45ea=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0xaaaf97=_0x1b45ea?.[_0x1793a8(0x187)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x1793a8(0x188)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x1793a8(0x18d):_0x1793a8(0x194))}),setUserContext({'id':_0xaaaf97?.['id'],'username':_0xaaaf97?.[_0x1793a8(0x18b)],'nickname':_0xaaaf97?.['nickname'],'email':_0xaaaf97?.[_0x1793a8(0x192)],'tenantCode':_0xaaaf97?.['tenant']?.[_0x1793a8(0x190)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x1b45ea;}
1
+ (function(_0x17125e,_0x32dbd5){const _0x2bf619=a287_0x5d1c,_0x3cc71e=_0x17125e();while(!![]){try{const _0x52e94d=parseInt(_0x2bf619(0x149))/0x1+-parseInt(_0x2bf619(0x14c))/0x2+parseInt(_0x2bf619(0x13e))/0x3+-parseInt(_0x2bf619(0x143))/0x4*(-parseInt(_0x2bf619(0x147))/0x5)+-parseInt(_0x2bf619(0x142))/0x6+-parseInt(_0x2bf619(0x146))/0x7+-parseInt(_0x2bf619(0x13f))/0x8*(-parseInt(_0x2bf619(0x145))/0x9);if(_0x52e94d===_0x32dbd5)break;else _0x3cc71e['push'](_0x3cc71e['shift']());}catch(_0x3f2a85){_0x3cc71e['push'](_0x3cc71e['shift']());}}}(a287_0x1f0d,0x89e26));function a287_0x1f0d(){const _0x4408be=['nickname','2031770xaaeou','tenant','2987154grysmc','32ruGoIZ','unknown','daily','2551080QCRXiF','3391068AxvTsg','tenant_code','1498707SjsrDL','6569948tiUjPO','5UDqXQu','email','434826UfuAaL','user'];a287_0x1f0d=function(){return _0x4408be;};return a287_0x1f0d();}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 a287_0x5d1c(_0x4183fc,_0x2557be){_0x4183fc=_0x4183fc-0x13e;const _0x1f0d25=a287_0x1f0d();let _0x5d1ccd=_0x1f0d25[_0x4183fc];return _0x5d1ccd;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x3f2850=a287_0x5d1c,_0x261551=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0xb54e09=_0x261551?.[_0x3f2850(0x14a)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x3f2850(0x140)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x3f2850(0x141):'production')}),setUserContext({'id':_0xb54e09?.['id'],'username':_0xb54e09?.['username'],'nickname':_0xb54e09?.[_0x3f2850(0x14b)],'email':_0xb54e09?.[_0x3f2850(0x148)],'tenantCode':_0xb54e09?.[_0x3f2850(0x14d)]?.[_0x3f2850(0x144)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x261551;}
@@ -1 +1 @@
1
- (function(_0x22da57,_0x278740){const _0x153492=a280_0x2b5f,_0x321d18=_0x22da57();while(!![]){try{const _0x3cb260=-parseInt(_0x153492(0x1f2))/0x1*(-parseInt(_0x153492(0x1f6))/0x2)+parseInt(_0x153492(0x1ea))/0x3*(-parseInt(_0x153492(0x1f0))/0x4)+parseInt(_0x153492(0x1f3))/0x5*(parseInt(_0x153492(0x1ee))/0x6)+parseInt(_0x153492(0x1f7))/0x7+parseInt(_0x153492(0x1f4))/0x8+-parseInt(_0x153492(0x1eb))/0x9+-parseInt(_0x153492(0x1f8))/0xa*(-parseInt(_0x153492(0x1ec))/0xb);if(_0x3cb260===_0x278740)break;else _0x321d18['push'](_0x321d18['shift']());}catch(_0x42c05f){_0x321d18['push'](_0x321d18['shift']());}}}(a280_0x3c78,0xc0eda));import{shutdownTraces}from'@lovrabet/otel-logger';function a280_0x2b5f(_0x4bbb2e,_0x52d4f9){_0x4bbb2e=_0x4bbb2e-0x1ea;const _0x3c7810=a280_0x3c78();let _0x2b5fe5=_0x3c7810[_0x4bbb2e];return _0x2b5fe5;}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x3edf7f=a280_0x2b5f;process[_0x3edf7f(0x1ed)](_0x3edf7f(0x1f5),()=>{void flushOtelNodeIfUsed();});const _0x162513=()=>{const _0x14097a=_0x3edf7f;void flushOtelNodeIfUsed()['then'](()=>process[_0x14097a(0x1f1)](0x0));};process[_0x3edf7f(0x1ed)](_0x3edf7f(0x1ef),_0x162513),process[_0x3edf7f(0x1ed)]('SIGTERM',_0x162513);}export async function exitWithOtelShutdown(_0x2d7bdc){const _0x41c528=a280_0x2b5f;await flushOtelNodeIfUsed(),process[_0x41c528(0x1f1)](_0x2d7bdc);}function a280_0x3c78(){const _0x1929df=['12MJoVAu','exit','569WbAzSC','15fzwGwH','1317480AIlhZB','beforeExit','1650RHzvjN','742574ggbrZK','706450EBieAy','1234326SFmwMx','10788381BcSvkK','341wdPjQu','once','586164JonlKw','SIGINT'];a280_0x3c78=function(){return _0x1929df;};return a280_0x3c78();}
1
+ (function(_0x167434,_0x10ef06){const _0x22410b=a288_0x2dd5,_0xef733f=_0x167434();while(!![]){try{const _0x1a61a0=parseInt(_0x22410b(0x147))/0x1+-parseInt(_0x22410b(0x144))/0x2*(-parseInt(_0x22410b(0x13d))/0x3)+parseInt(_0x22410b(0x142))/0x4+-parseInt(_0x22410b(0x149))/0x5+-parseInt(_0x22410b(0x13f))/0x6+-parseInt(_0x22410b(0x143))/0x7*(-parseInt(_0x22410b(0x14a))/0x8)+parseInt(_0x22410b(0x14b))/0x9*(-parseInt(_0x22410b(0x145))/0xa);if(_0x1a61a0===_0x10ef06)break;else _0xef733f['push'](_0xef733f['shift']());}catch(_0x4ae0e7){_0xef733f['push'](_0xef733f['shift']());}}}(a288_0x1e07,0xef761));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 a288_0x2dd5(_0x1ab2a7,_0x5e7443){_0x1ab2a7=_0x1ab2a7-0x13d;const _0x1e07f1=a288_0x1e07();let _0x2dd51c=_0x1e07f1[_0x1ab2a7];return _0x2dd51c;}function a288_0x1e07(){const _0x20a4e1=['SIGTERM','4809165KsPKcz','418808pHtmYU','675oansXJ','2308899rXwgsQ','SIGINT','4048902xMStHV','exit','then','1632904UnFRUW','91xWDcPd','4VOpExh','89860rthJUb','once','663378aInwDY'];a288_0x1e07=function(){return _0x20a4e1;};return a288_0x1e07();}export function registerOtelShutdownOnExit(){const _0x3d4589=a288_0x2dd5;process[_0x3d4589(0x146)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x2cfd4a=()=>{const _0x455ec9=_0x3d4589;void flushOtelNodeIfUsed()[_0x455ec9(0x141)](()=>process['exit'](0x0));};process[_0x3d4589(0x146)](_0x3d4589(0x13e),_0x2cfd4a),process[_0x3d4589(0x146)](_0x3d4589(0x148),_0x2cfd4a);}export async function exitWithOtelShutdown(_0x4cec70){const _0x522fca=a288_0x2dd5;await flushOtelNodeIfUsed(),process[_0x522fca(0x140)](_0x4cec70);}
@@ -1 +1 @@
1
- (function(_0x3d5e05,_0x1cc0cc){const _0x309429=a281_0x2194,_0x1e47c0=_0x3d5e05();while(!![]){try{const _0x56a801=parseInt(_0x309429(0x1c7))/0x1*(parseInt(_0x309429(0x1c6))/0x2)+-parseInt(_0x309429(0x1bf))/0x3+parseInt(_0x309429(0x1c0))/0x4*(parseInt(_0x309429(0x1c4))/0x5)+-parseInt(_0x309429(0x1c5))/0x6+-parseInt(_0x309429(0x1c9))/0x7*(parseInt(_0x309429(0x1c1))/0x8)+-parseInt(_0x309429(0x1cb))/0x9+parseInt(_0x309429(0x1ca))/0xa;if(_0x56a801===_0x1cc0cc)break;else _0x1e47c0['push'](_0x1e47c0['shift']());}catch(_0x35a726){_0x1e47c0['push'](_0x1e47c0['shift']());}}}(a281_0x531d,0xefdb0));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a281_0x531d(){const _0x419ca4=['314696zXWYEu','7598264KsOzbn','spanName','manual','55vqRjGU','8315070qRpqAl','334DykdCn','8467UYwsbg','traceparent','14IvUHMf','25811650bWIcYO','4039182IHifAk','traceName','431733mcuPjV'];a281_0x531d=function(){return _0x419ca4;};return a281_0x531d();}const DEFAULT_TRACE_NAME='rabetbase-cli';function a281_0x2194(_0x4ffd02,_0x36cc8f){_0x4ffd02=_0x4ffd02-0x1bf;const _0x531dca=a281_0x531d();let _0x21947e=_0x531dca[_0x4ffd02];return _0x21947e;}export async function sendCliTraceLog(_0x3a4726){const _0x453bc2=a281_0x2194;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x3a4726[_0x453bc2(0x1cc)]??DEFAULT_TRACE_NAME,'version':_0x3a4726['version']??getCliVersion(),'spanName':_0x3a4726[_0x453bc2(0x1c2)],'eventType':_0x453bc2(0x1c3),'logData':_0x3a4726['logData'],..._0x3a4726[_0x453bc2(0x1c8)]&&{'traceparent':_0x3a4726[_0x453bc2(0x1c8)]}});}
1
+ const a289_0x127fbd=a289_0x2ff7;(function(_0x596ba8,_0x1c7175){const _0x1248e4=a289_0x2ff7,_0x4d8253=_0x596ba8();while(!![]){try{const _0x49ba98=parseInt(_0x1248e4(0xf2))/0x1*(parseInt(_0x1248e4(0xee))/0x2)+-parseInt(_0x1248e4(0xf0))/0x3+-parseInt(_0x1248e4(0xf3))/0x4+parseInt(_0x1248e4(0xfa))/0x5*(-parseInt(_0x1248e4(0xf8))/0x6)+-parseInt(_0x1248e4(0xf9))/0x7*(-parseInt(_0x1248e4(0xf1))/0x8)+parseInt(_0x1248e4(0xed))/0x9+parseInt(_0x1248e4(0xfb))/0xa;if(_0x49ba98===_0x1c7175)break;else _0x4d8253['push'](_0x4d8253['shift']());}catch(_0x2e0a86){_0x4d8253['push'](_0x4d8253['shift']());}}}(a289_0xc397,0x32b23));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a289_0x2ff7(_0x506b11,_0x1b99a2){_0x506b11=_0x506b11-0xed;const _0xc39733=a289_0xc397();let _0x2ff762=_0xc39733[_0x506b11];return _0x2ff762;}import{getCliVersion}from'../utils/version.js';function a289_0xc397(){const _0x1345ac=['spanName','manual','114SRezht','7dvCbgS','15095qiviYp','2049630UqeiMR','logData','1523223tIqcrL','44158KLRjhq','traceName','813519HYnsgg','2171792gkNYkl','11yjzGPp','1409472HXofmc','traceparent','rabetbase-cli'];a289_0xc397=function(){return _0x1345ac;};return a289_0xc397();}const DEFAULT_TRACE_NAME=a289_0x127fbd(0xf5);export async function sendCliTraceLog(_0x572e24){const _0x558e2f=a289_0x127fbd;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x572e24[_0x558e2f(0xef)]??DEFAULT_TRACE_NAME,'version':_0x572e24['version']??getCliVersion(),'spanName':_0x572e24[_0x558e2f(0xf6)],'eventType':_0x558e2f(0xf7),'logData':_0x572e24[_0x558e2f(0xfc)],..._0x572e24[_0x558e2f(0xf4)]&&{'traceparent':_0x572e24[_0x558e2f(0xf4)]}});}
@@ -1 +1 @@
1
- function a282_0x1a37(){const _0x26893f=['redactionKinds','65RiCuQJ','1HAWJhm','10178WJnSYG','sanitize','title','10wDpdTI','6388587TVAPzZ','30916428DfnhgQ','327498AjmTtu','892kROiLb','truncated','12279OECBnK','1266441vMerhz','issue.log.collect','1360010YkdZmA','1240ZImKqo','platform-issue-log-collect','description','redactionCount'];a282_0x1a37=function(){return _0x26893f;};return a282_0x1a37();}const a282_0x5954b6=a282_0x7844;function a282_0x7844(_0x5bb358,_0x54ab87){_0x5bb358=_0x5bb358-0x1d5;const _0x1a3708=a282_0x1a37();let _0x78443b=_0x1a3708[_0x5bb358];return _0x78443b;}(function(_0xa36641,_0x29972d){const _0xc0b7ea=a282_0x7844,_0x494e3e=_0xa36641();while(!![]){try{const _0xa603b2=parseInt(_0xc0b7ea(0x1e6))/0x1*(parseInt(_0xc0b7ea(0x1df))/0x2)+-parseInt(_0xc0b7ea(0x1dc))/0x3*(parseInt(_0xc0b7ea(0x1da))/0x4)+-parseInt(_0xc0b7ea(0x1e5))/0x5*(parseInt(_0xc0b7ea(0x1d9))/0x6)+-parseInt(_0xc0b7ea(0x1e7))/0x7*(parseInt(_0xc0b7ea(0x1e0))/0x8)+-parseInt(_0xc0b7ea(0x1d7))/0x9*(parseInt(_0xc0b7ea(0x1d6))/0xa)+-parseInt(_0xc0b7ea(0x1dd))/0xb+parseInt(_0xc0b7ea(0x1d8))/0xc;if(_0xa603b2===_0x29972d)break;else _0x494e3e['push'](_0x494e3e['shift']());}catch(_0x5749ed){_0x494e3e['push'](_0x494e3e['shift']());}}}(a282_0x1a37,0x8e820));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a282_0x5954b6(0x1e1);export const PLATFORM_ISSUE_SPAN_NAME=a282_0x5954b6(0x1de);export async function sendPlatformIssueCollectLog(_0x9121d){const _0x47683f=a282_0x5954b6;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x9121d[_0x47683f(0x1d5)],'issue.description':_0x9121d[_0x47683f(0x1e2)],..._0x9121d[_0x47683f(0x1e8)]?{'issue.description_original_bytes':_0x9121d[_0x47683f(0x1e8)]['originalBytes'],'issue.description_truncated':_0x9121d[_0x47683f(0x1e8)][_0x47683f(0x1db)],'issue.description_redactions':_0x9121d[_0x47683f(0x1e8)][_0x47683f(0x1e3)],'issue.description_redaction_kinds':_0x9121d[_0x47683f(0x1e8)][_0x47683f(0x1e4)]['join'](',')}:{}}});}
1
+ const a290_0x2e5ce4=a290_0x3364;(function(_0x262b29,_0x3f7a61){const _0x1e19b4=a290_0x3364,_0x496008=_0x262b29();while(!![]){try{const _0x2c5fba=parseInt(_0x1e19b4(0xb3))/0x1*(-parseInt(_0x1e19b4(0xac))/0x2)+-parseInt(_0x1e19b4(0xb6))/0x3+-parseInt(_0x1e19b4(0xba))/0x4+parseInt(_0x1e19b4(0xb1))/0x5*(parseInt(_0x1e19b4(0xad))/0x6)+-parseInt(_0x1e19b4(0xaf))/0x7+-parseInt(_0x1e19b4(0xb4))/0x8*(-parseInt(_0x1e19b4(0xa9))/0x9)+parseInt(_0x1e19b4(0xb5))/0xa;if(_0x2c5fba===_0x3f7a61)break;else _0x496008['push'](_0x496008['shift']());}catch(_0x3ed1b9){_0x496008['push'](_0x496008['shift']());}}}(a290_0x44ad,0x541b8));function a290_0x3364(_0x377fdf,_0x285022){_0x377fdf=_0x377fdf-0xa8;const _0x44ad9d=a290_0x44ad();let _0x336499=_0x44ad9d[_0x377fdf];return _0x336499;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a290_0x2e5ce4(0xae);export async function sendPlatformIssueCollectLog(_0x199dee){const _0x2e3ad8=a290_0x2e5ce4;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x199dee[_0x2e3ad8(0xb7)],'issue.description':_0x199dee[_0x2e3ad8(0xb2)],..._0x199dee['sanitize']?{'issue.description_original_bytes':_0x199dee[_0x2e3ad8(0xaa)][_0x2e3ad8(0xab)],'issue.description_truncated':_0x199dee[_0x2e3ad8(0xaa)][_0x2e3ad8(0xa8)],'issue.description_redactions':_0x199dee['sanitize'][_0x2e3ad8(0xb8)],'issue.description_redaction_kinds':_0x199dee[_0x2e3ad8(0xaa)][_0x2e3ad8(0xb9)][_0x2e3ad8(0xb0)](',')}:{}}});}function a290_0x44ad(){const _0x20a577=['148FWyKQx','528THjqaD','issue.log.collect','3072090SaqsdP','join','80rorAwM','description','9247PtIXKO','9104XBEUdl','22229930CpmIZT','1294980CnICfN','title','redactionCount','redactionKinds','1837492rrkwGV','truncated','1062kruyzN','sanitize','originalBytes'];a290_0x44ad=function(){return _0x20a577;};return a290_0x44ad();}
@@ -58,7 +58,6 @@ export interface GenerateApiFileResult {
58
58
  configName: string;
59
59
  isDefaultConfig: boolean;
60
60
  sdkRouting: {
61
- region?: "id";
62
61
  runtimeDomain?: string;
63
62
  };
64
63
  files: {
@@ -1 +1 @@
1
- const a284_0x451f77=a284_0x1f7c;function a284_0x51fc(){const _0x151ecc=['Cursor\x20IDE','471AlatuM','.qoder/rules/rabetbase.md','.cline/skills/lovrabet/SKILL.md','CodeBuddy','.codex','.trae','74835stMRWK','Cline','Codex\x20IDE','224532EepFsL','file','Cline\x20IDE','Trae','7916250jLBiUL','Claude\x20Code','3384198TGpRRt','claude','.opencode','antigravity','.agent/skills/lovrabet/SKILL.md','OpenCode','Trae\x20IDE','Cursor','.trae/skills/lovrabet/SKILL.md','.qoder','680280kKyFgA','.cursorrules','.claude/skills/lovrabet/SKILL.md','trae','.opencode/skills/lovrabet/SKILL.md','.codebuddy/skills/lovrabet/SKILL.md','.agent','codebuddy','windsurf','476969bKSnBk','.codebuddy','.cline','.codex/skills/lovrabet/SKILL.md','cursor','Generic\x20template\x20fallback','Qoder','1816UQYLlP','cline','CodeBuddy\x20IDE','13954wbrkWv','opencode','qoder','Windsurf','Qoder\x20IDE','agent','Other\x20(generic\x20template)','Antigravity','codex','.windsurf'];a284_0x51fc=function(){return _0x151ecc;};return a284_0x51fc();}(function(_0x32c0f5,_0x331c46){const _0x38c5dc=a284_0x1f7c,_0x5c5538=_0x32c0f5();while(!![]){try{const _0x2df1cd=parseInt(_0x38c5dc(0x14c))/0x1+parseInt(_0x38c5dc(0x11f))/0x2*(parseInt(_0x38c5dc(0x12a))/0x3)+parseInt(_0x38c5dc(0x143))/0x4+parseInt(_0x38c5dc(0x137))/0x5+-parseInt(_0x38c5dc(0x139))/0x6+-parseInt(_0x38c5dc(0x133))/0x7+parseInt(_0x38c5dc(0x153))/0x8*(-parseInt(_0x38c5dc(0x130))/0x9);if(_0x2df1cd===_0x331c46)break;else _0x5c5538['push'](_0x5c5538['shift']());}catch(_0x54b648){_0x5c5538['push'](_0x5c5538['shift']());}}}(a284_0x51fc,0xcd950));export const CORE_IDE_CONFIGS={'cursor':{'name':a284_0x451f77(0x140),'description':a284_0x451f77(0x129),'folders':[a284_0x451f77(0x144),'.cursor'],'files':[{'type':'file','path':'.cursor/skills/rabetbase.md'}]},'windsurf':{'name':a284_0x451f77(0x122),'description':'Windsurf\x20IDE','folders':[a284_0x451f77(0x128)],'files':[{'type':a284_0x451f77(0x134),'path':'.windsurf/workflows/rabetbase.md'}]},'claude':{'name':a284_0x451f77(0x138),'description':'Claude\x20Code','folders':['.claude'],'files':[{'type':a284_0x451f77(0x134),'path':a284_0x451f77(0x145)}]},'cline':{'name':a284_0x451f77(0x131),'description':a284_0x451f77(0x135),'folders':[a284_0x451f77(0x14e)],'files':[{'type':a284_0x451f77(0x134),'path':a284_0x451f77(0x12c)}]},'codex':{'name':'Codex','description':a284_0x451f77(0x132),'folders':[a284_0x451f77(0x12e)],'files':[{'type':'file','path':a284_0x451f77(0x14f)}]},'opencode':{'name':a284_0x451f77(0x13e),'description':'OpenCode\x20IDE','folders':[a284_0x451f77(0x13b)],'files':[{'type':a284_0x451f77(0x134),'path':a284_0x451f77(0x147)}]},'qoder':{'name':a284_0x451f77(0x152),'description':a284_0x451f77(0x123),'folders':[a284_0x451f77(0x142)],'files':[{'type':a284_0x451f77(0x134),'path':a284_0x451f77(0x12b)},{'type':'file','path':'.qoder/skills/lovrabet/SKILL.md'}]},'codebuddy':{'name':a284_0x451f77(0x12d),'description':a284_0x451f77(0x11e),'folders':[a284_0x451f77(0x14d)],'files':[{'type':a284_0x451f77(0x134),'path':a284_0x451f77(0x148)}]},'trae':{'name':a284_0x451f77(0x136),'description':a284_0x451f77(0x13f),'folders':[a284_0x451f77(0x12f)],'files':[{'type':a284_0x451f77(0x134),'path':a284_0x451f77(0x141)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a284_0x451f77(0x125),'description':a284_0x451f77(0x151),'folders':[a284_0x451f77(0x149)],'files':[{'type':a284_0x451f77(0x134),'path':a284_0x451f77(0x13d)}]},'antigravity':{'name':a284_0x451f77(0x126),'description':'Antigravity\x20IDE','folders':['.agent'],'files':[{'type':'file','path':a284_0x451f77(0x13d)}]}};export const CORE_IDE_LIST=['claude',a284_0x451f77(0x154),'codebuddy',a284_0x451f77(0x127),a284_0x451f77(0x150),a284_0x451f77(0x120),a284_0x451f77(0x121),a284_0x451f77(0x146),a284_0x451f77(0x14b)];function a284_0x1f7c(_0x4ab4e6,_0x50d231){_0x4ab4e6=_0x4ab4e6-0x11e;const _0x51fcd9=a284_0x51fc();let _0x1f7ce9=_0x51fcd9[_0x4ab4e6];return _0x1f7ce9;}export const IDE_LIST=[a284_0x451f77(0x13c),a284_0x451f77(0x13a),'cline',a284_0x451f77(0x14a),a284_0x451f77(0x127),'cursor','opencode',a284_0x451f77(0x121),'trae',a284_0x451f77(0x14b),a284_0x451f77(0x124)];export const ALL_CORE_IDES=[a284_0x451f77(0x150),a284_0x451f77(0x14b),a284_0x451f77(0x13a),'cline','codex',a284_0x451f77(0x120),a284_0x451f77(0x121),a284_0x451f77(0x14a),a284_0x451f77(0x146)];
1
+ const a292_0x153810=a292_0x5c0d;(function(_0x587976,_0x2ccf70){const _0x3d9169=a292_0x5c0d,_0x3d36df=_0x587976();while(!![]){try{const _0x4af6ab=parseInt(_0x3d9169(0x143))/0x1+parseInt(_0x3d9169(0x151))/0x2*(parseInt(_0x3d9169(0x14c))/0x3)+-parseInt(_0x3d9169(0x137))/0x4*(-parseInt(_0x3d9169(0x136))/0x5)+-parseInt(_0x3d9169(0x14f))/0x6+-parseInt(_0x3d9169(0x153))/0x7+parseInt(_0x3d9169(0x134))/0x8+parseInt(_0x3d9169(0x145))/0x9*(parseInt(_0x3d9169(0x13d))/0xa);if(_0x4af6ab===_0x2ccf70)break;else _0x3d36df['push'](_0x3d36df['shift']());}catch(_0x2c1ce1){_0x3d36df['push'](_0x3d36df['shift']());}}}(a292_0x24ec,0xb9d91));function a292_0x5c0d(_0x5c44f0,_0x24be50){_0x5c44f0=_0x5c44f0-0x124;const _0x24ecc2=a292_0x24ec();let _0x5c0d2b=_0x24ecc2[_0x5c44f0];return _0x5c0d2b;}export const CORE_IDE_CONFIGS={'cursor':{'name':a292_0x153810(0x13c),'description':a292_0x153810(0x130),'folders':[a292_0x153810(0x14e),a292_0x153810(0x14b)],'files':[{'type':'file','path':a292_0x153810(0x12c)}]},'windsurf':{'name':'Windsurf','description':a292_0x153810(0x12a),'folders':[a292_0x153810(0x149)],'files':[{'type':a292_0x153810(0x13f),'path':a292_0x153810(0x127)}]},'claude':{'name':a292_0x153810(0x14d),'description':a292_0x153810(0x14d),'folders':[a292_0x153810(0x152)],'files':[{'type':a292_0x153810(0x13f),'path':'.claude/skills/lovrabet/SKILL.md'}]},'cline':{'name':a292_0x153810(0x147),'description':a292_0x153810(0x141),'folders':[a292_0x153810(0x12b)],'files':[{'type':a292_0x153810(0x13f),'path':'.cline/skills/lovrabet/SKILL.md'}]},'codex':{'name':'Codex','description':a292_0x153810(0x126),'folders':[a292_0x153810(0x12f)],'files':[{'type':a292_0x153810(0x13f),'path':a292_0x153810(0x13b)}]},'opencode':{'name':'OpenCode','description':'OpenCode\x20IDE','folders':[a292_0x153810(0x142)],'files':[{'type':'file','path':'.opencode/skills/lovrabet/SKILL.md'}]},'qoder':{'name':a292_0x153810(0x13a),'description':a292_0x153810(0x150),'folders':['.qoder'],'files':[{'type':a292_0x153810(0x13f),'path':a292_0x153810(0x156)},{'type':a292_0x153810(0x13f),'path':a292_0x153810(0x138)}]},'codebuddy':{'name':a292_0x153810(0x135),'description':'CodeBuddy\x20IDE','folders':[a292_0x153810(0x144)],'files':[{'type':'file','path':a292_0x153810(0x139)}]},'trae':{'name':a292_0x153810(0x133),'description':a292_0x153810(0x148),'folders':['.trae'],'files':[{'type':'file','path':a292_0x153810(0x125)}]}};function a292_0x24ec(){const _0x14c4d2=['Other\x20(generic\x20template)','.trae/skills/lovrabet/SKILL.md','Codex\x20IDE','.windsurf/workflows/rabetbase.md','codebuddy','cursor','Windsurf\x20IDE','.cline','.cursor/skills/rabetbase.md','qoder','trae','.codex','Cursor\x20IDE','.agent','cline','Trae','2882392wsinWd','CodeBuddy','50zALbEy','24776FeHMzw','.qoder/skills/lovrabet/SKILL.md','.codebuddy/skills/lovrabet/SKILL.md','Qoder','.codex/skills/lovrabet/SKILL.md','Cursor','10jSNeLk','windsurf','file','claude','Cline\x20IDE','.opencode','102939oPgvFV','.codebuddy','6199812rfNYjC','.agent/skills/lovrabet/SKILL.md','Cline','Trae\x20IDE','.windsurf','opencode','.cursor','1341201PKQlgg','Claude\x20Code','.cursorrules','5581614LPNhUe','Qoder\x20IDE','4VhRIpC','.claude','2916746fyADBU','Antigravity\x20IDE','Generic\x20template\x20fallback','.qoder/rules/rabetbase.md'];a292_0x24ec=function(){return _0x14c4d2;};return a292_0x24ec();}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a292_0x153810(0x124),'description':a292_0x153810(0x155),'folders':[a292_0x153810(0x131)],'files':[{'type':a292_0x153810(0x13f),'path':a292_0x153810(0x146)}]},'antigravity':{'name':'Antigravity','description':a292_0x153810(0x154),'folders':[a292_0x153810(0x131)],'files':[{'type':'file','path':a292_0x153810(0x146)}]}};export const CORE_IDE_LIST=[a292_0x153810(0x140),a292_0x153810(0x132),a292_0x153810(0x128),'codex',a292_0x153810(0x129),a292_0x153810(0x14a),a292_0x153810(0x12d),'trae','windsurf'];export const IDE_LIST=['antigravity',a292_0x153810(0x140),'cline','codebuddy','codex','cursor','opencode',a292_0x153810(0x12d),a292_0x153810(0x12e),a292_0x153810(0x13e),'agent'];export const ALL_CORE_IDES=[a292_0x153810(0x129),a292_0x153810(0x13e),'claude',a292_0x153810(0x132),'codex',a292_0x153810(0x14a),a292_0x153810(0x12d),'codebuddy',a292_0x153810(0x12e)];
@@ -1 +1 @@
1
- (function(_0x199a35,_0x5804d6){const _0x28f487=a285_0x46a0,_0x2743e8=_0x199a35();while(!![]){try{const _0x33a1f5=parseInt(_0x28f487(0xa2))/0x1*(-parseInt(_0x28f487(0x9b))/0x2)+parseInt(_0x28f487(0x9a))/0x3+-parseInt(_0x28f487(0x9f))/0x4*(parseInt(_0x28f487(0x98))/0x5)+parseInt(_0x28f487(0x9e))/0x6*(parseInt(_0x28f487(0x9d))/0x7)+parseInt(_0x28f487(0xa1))/0x8+-parseInt(_0x28f487(0xa0))/0x9*(-parseInt(_0x28f487(0x99))/0xa)+-parseInt(_0x28f487(0x9c))/0xb;if(_0x33a1f5===_0x5804d6)break;else _0x2743e8['push'](_0x2743e8['shift']());}catch(_0x40819e){_0x2743e8['push'](_0x2743e8['shift']());}}}(a285_0x1125,0xce128));function a285_0x1125(){const _0x3bea26=['445WsOqnZ','9640PpvZRq','2463597krNkcu','2858wprYtA','3555497GDFdxU','5893895cvoVvK','6DBIcRo','42556JPxhlG','12267SeyDjQ','2882224VEfVJG','856rBPika'];a285_0x1125=function(){return _0x3bea26;};return a285_0x1125();}function a285_0x46a0(_0x158838,_0x446b78){_0x158838=_0x158838-0x98;const _0x112589=a285_0x1125();let _0x46a03e=_0x112589[_0x158838];return _0x46a03e;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x472b56,_0x3eff98){const _0x1a898c=a293_0x39f2,_0x175331=_0x472b56();while(!![]){try{const _0x380823=-parseInt(_0x1a898c(0x1e8))/0x1*(parseInt(_0x1a898c(0x1e6))/0x2)+-parseInt(_0x1a898c(0x1df))/0x3*(parseInt(_0x1a898c(0x1e7))/0x4)+parseInt(_0x1a898c(0x1e5))/0x5+-parseInt(_0x1a898c(0x1e1))/0x6+-parseInt(_0x1a898c(0x1e4))/0x7*(-parseInt(_0x1a898c(0x1e2))/0x8)+parseInt(_0x1a898c(0x1e3))/0x9+parseInt(_0x1a898c(0x1de))/0xa*(parseInt(_0x1a898c(0x1e0))/0xb);if(_0x380823===_0x3eff98)break;else _0x175331['push'](_0x175331['shift']());}catch(_0x2e39c4){_0x175331['push'](_0x175331['shift']());}}}(a293_0x71be,0x928cb));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a293_0x39f2(_0x1c6faa,_0x1fc619){_0x1c6faa=_0x1c6faa-0x1de;const _0x71be35=a293_0x71be();let _0x39f223=_0x71be35[_0x1c6faa];return _0x39f223;}import{CliErrors}from'../errors.js';function a293_0x71be(){const _0x1b42a3=['16616303ylHHTp','6097704EwHjbD','8KnfREM','3495348BKVMyz','7629174tEwSRk','3242760WzttvH','2458aCcEyJ','4ExYgRo','901jeerDG','10pweetk','2740497AgWVkw'];a293_0x71be=function(){return _0x1b42a3;};return a293_0x71be();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x127844,_0x5d9c7e){const _0x1809a6=a286_0x4d13,_0x3dc26b=_0x127844();while(!![]){try{const _0x988cbe=-parseInt(_0x1809a6(0x14d))/0x1+-parseInt(_0x1809a6(0x14b))/0x2*(-parseInt(_0x1809a6(0x154))/0x3)+parseInt(_0x1809a6(0x156))/0x4*(parseInt(_0x1809a6(0x14e))/0x5)+parseInt(_0x1809a6(0x15d))/0x6*(-parseInt(_0x1809a6(0x15b))/0x7)+-parseInt(_0x1809a6(0x14c))/0x8*(parseInt(_0x1809a6(0x150))/0x9)+parseInt(_0x1809a6(0x158))/0xa+parseInt(_0x1809a6(0x15e))/0xb*(parseInt(_0x1809a6(0x15f))/0xc);if(_0x988cbe===_0x5d9c7e)break;else _0x3dc26b['push'](_0x3dc26b['shift']());}catch(_0x323ddb){_0x3dc26b['push'](_0x3dc26b['shift']());}}}(a286_0x29fd,0x4eff5));import{getTemplateBaseUrl}from'../utils/config.js';function a286_0x4d13(_0x6139e2,_0x429643){_0x6139e2=_0x6139e2-0x14b;const _0x29fdfb=a286_0x29fd();let _0x4d1326=_0x29fdfb[_0x6139e2];return _0x4d1326;}export async function fetchCdnConfig(){const _0x110b22=a286_0x4d13,_0x499412=getTemplateBaseUrl(),_0x10aff8=[_0x499412+_0x110b22(0x14f),_0x499412+_0x110b22(0x15a)];for(const _0x244857 of _0x10aff8){try{const _0x1f41bf=await fetch(_0x244857,{'headers':{'Accept':_0x110b22(0x153)}});if(!_0x1f41bf['ok'])continue;const _0x577e55=await _0x1f41bf[_0x110b22(0x157)]();if(!_0x577e55[_0x110b22(0x155)]?.[_0x110b22(0x159)]||!_0x577e55[_0x110b22(0x15c)]?.[_0x110b22(0x151)]?.[_0x110b22(0x159)])continue;return _0x577e55;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a286_0x29fd(){const _0x5a91cf=['20466WlPOHq','11eaOEzA','1837284vfDhtl','14UyFGYL','235504rsNbUc','489303lfFXyG','10yZrvVH','/config.json','153qjxmdm','node','now','application/json','218349LIJSPi','cli','427516plLhGa','json','6382250KHzXcP','stableVersion','/config/index.json','413SCYpbb','sdk'];a286_0x29fd=function(){return _0x5a91cf;};return a286_0x29fd();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x1c0249=a286_0x4d13,_0x9b66b7=Date[_0x1c0249(0x152)]();if(hasCachedConfig){const _0x26071=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x9b66b7-cacheTime<_0x26071)return cachedConfig;}const _0xf65e46=await fetchCdnConfig();return cachedConfig=_0xf65e46,cacheTime=_0x9b66b7,hasCachedConfig=!![],_0xf65e46;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ function a294_0x1776(_0x487327,_0x5362bd){_0x487327=_0x487327-0x1ae;const _0x19fe80=a294_0x19fe();let _0x1776ea=_0x19fe80[_0x487327];return _0x1776ea;}(function(_0x176d8f,_0x1381f4){const _0x37efbf=a294_0x1776,_0x55ee7b=_0x176d8f();while(!![]){try{const _0x1eed45=parseInt(_0x37efbf(0x1bd))/0x1*(parseInt(_0x37efbf(0x1ae))/0x2)+-parseInt(_0x37efbf(0x1bf))/0x3*(-parseInt(_0x37efbf(0x1af))/0x4)+-parseInt(_0x37efbf(0x1b9))/0x5+parseInt(_0x37efbf(0x1b5))/0x6*(parseInt(_0x37efbf(0x1ba))/0x7)+-parseInt(_0x37efbf(0x1bb))/0x8*(-parseInt(_0x37efbf(0x1b7))/0x9)+parseInt(_0x37efbf(0x1bc))/0xa*(parseInt(_0x37efbf(0x1b3))/0xb)+-parseInt(_0x37efbf(0x1be))/0xc;if(_0x1eed45===_0x1381f4)break;else _0x55ee7b['push'](_0x55ee7b['shift']());}catch(_0x4ab4c2){_0x55ee7b['push'](_0x55ee7b['shift']());}}}(a294_0x19fe,0xb88a8));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x1dc8fd=a294_0x1776,_0x27402d=getTemplateBaseUrl(),_0x5879f0=[_0x27402d+'/config.json',_0x27402d+_0x1dc8fd(0x1b4)];for(const _0x3b6523 of _0x5879f0){try{const _0x2f2f93=await fetch(_0x3b6523,{'headers':{'Accept':'application/json'}});if(!_0x2f2f93['ok'])continue;const _0x13dc42=await _0x2f2f93[_0x1dc8fd(0x1b0)]();if(!_0x13dc42[_0x1dc8fd(0x1b2)]?.[_0x1dc8fd(0x1b6)]||!_0x13dc42[_0x1dc8fd(0x1b8)]?.['node']?.[_0x1dc8fd(0x1b6)])continue;return _0x13dc42;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a294_0x19fe(){const _0x15a7ad=['3dHsoQx','11690zuJaGA','208404kIIPZW','json','now','cli','19371HDxWlK','/config/index.json','4645164PgPlYI','stableVersion','8275626jlUGfX','sdk','1063290ZvKcaD','7ycSDkR','8pYfPMw','750eDRves','153PNwCgR','21643572AvwnJe'];a294_0x19fe=function(){return _0x15a7ad;};return a294_0x19fe();}let hasCachedConfig=![];export async function getCdnConfig(){const _0x58b96b=a294_0x1776,_0xfb166e=Date[_0x58b96b(0x1b1)]();if(hasCachedConfig){const _0xcb03e3=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xfb166e-cacheTime<_0xcb03e3)return cachedConfig;}const _0x2c6213=await fetchCdnConfig();return cachedConfig=_0x2c6213,cacheTime=_0xfb166e,hasCachedConfig=!![],_0x2c6213;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a287_0x54443c=a287_0x29f6;(function(_0x59621d,_0x379222){const _0x422e80=a287_0x29f6,_0x1b2f1f=_0x59621d();while(!![]){try{const _0x36011c=parseInt(_0x422e80(0x1fe))/0x1+-parseInt(_0x422e80(0x215))/0x2*(parseInt(_0x422e80(0x213))/0x3)+-parseInt(_0x422e80(0x202))/0x4*(-parseInt(_0x422e80(0x20a))/0x5)+parseInt(_0x422e80(0x1ff))/0x6+parseInt(_0x422e80(0x201))/0x7*(-parseInt(_0x422e80(0x20e))/0x8)+-parseInt(_0x422e80(0x1fc))/0x9+parseInt(_0x422e80(0x203))/0xa;if(_0x36011c===_0x379222)break;else _0x1b2f1f['push'](_0x1b2f1f['shift']());}catch(_0x2bf674){_0x1b2f1f['push'](_0x1b2f1f['shift']());}}}(a287_0xd936,0x673c9));import a287_0x15eb55 from'node:fs';import a287_0x3174cb from'node:path';import a287_0x15f262 from'semver';function a287_0xd936(){const _0x490515=['7364925sYcQrl','some','575899eYtlcY','131328tqbpMa','log','7xeaLSp','2031388YfKfgj','12376920qLGyOO','devDependencies','node','@lovrabet/sdk','latest','coerce','\x1b[1m','5fECEkX','↪\x20SDK\x20update\x20available','existsSync','all','3073576KorkTb','join','package.json','parse','dependencies','4713uvzOnZ','test','914MYFTgN','readFileSync','\x1b[33m','needsUpgrade','utf8','version','stableVersion','1.2.0','node_modules','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Current\x20version:\x20','packageName','sdk'];a287_0xd936=function(){return _0x490515;};return a287_0xd936();}import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a287_0x54443c(0x1f6);function isNonNumericVersion(_0x3eed8e){const _0x4a8823=a287_0x54443c,_0x95d579=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x95d579[_0x4a8823(0x1fd)](_0x2f3487=>_0x2f3487[_0x4a8823(0x214)](_0x3eed8e));}function getInstalledVersion(_0x58251a,_0x1aa714){const _0x45b216=a287_0x54443c;try{const _0x1dbd3f=a287_0x3174cb['join'](_0x58251a,_0x45b216(0x1f7),_0x1aa714,_0x45b216(0x210));if(a287_0x15eb55[_0x45b216(0x20c)](_0x1dbd3f)){const _0x379b68=JSON[_0x45b216(0x211)](a287_0x15eb55[_0x45b216(0x216)](_0x1dbd3f,'utf-8'));return _0x379b68[_0x45b216(0x1f4)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x2f0106=a287_0x54443c;try{const _0x14ea6c=await getCdnConfig();return _0x14ea6c?.[_0x2f0106(0x1fb)]?.[_0x2f0106(0x205)]?.['stableVersion']||null;}catch{return null;}}function a287_0x29f6(_0x2a636d,_0x415cb2){_0x2a636d=_0x2a636d-0x1f2;const _0xd936fe=a287_0xd936();let _0x29f64f=_0xd936fe[_0x2a636d];return _0x29f64f;}async function getSdkPackageName(){const _0x31deae=a287_0x54443c;try{const _0x2aa2d5=await getCdnConfig();return _0x2aa2d5?.[_0x31deae(0x1fb)]?.[_0x31deae(0x205)]?.[_0x31deae(0x1fa)]||_0x31deae(0x206);}catch{return _0x31deae(0x206);}}export async function checkSdkVersion(_0x17b7e3){const _0xcfee4b=a287_0x54443c,_0x3f2cc2=a287_0x3174cb[_0xcfee4b(0x20f)](_0x17b7e3,_0xcfee4b(0x210)),[_0xfb6561,_0x21d8a9]=await Promise[_0xcfee4b(0x20d)]([getSdkStableVersion(),getSdkPackageName()]),_0x2cf9c3=_0xfb6561||FALLBACK_MIN_SDK_VERSION;if(!a287_0x15eb55[_0xcfee4b(0x20c)](_0x3f2cc2))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2cf9c3,'packageName':_0x21d8a9,'stableVersion':_0xfb6561};try{const _0x4af031=JSON['parse'](a287_0x15eb55[_0xcfee4b(0x216)](_0x3f2cc2,_0xcfee4b(0x1f3))),_0x422e02=_0x4af031[_0xcfee4b(0x212)]||{},_0x72bcd4=_0x4af031[_0xcfee4b(0x204)]||{},_0x19b3da=_0x422e02[_0x21d8a9]||_0x72bcd4[_0x21d8a9];if(!_0x19b3da)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2cf9c3,'packageName':_0x21d8a9,'stableVersion':_0xfb6561};let _0x2b3bfe=getInstalledVersion(_0x17b7e3,_0x21d8a9);!_0x2b3bfe&&(_0x2b3bfe=_0x19b3da);if(isNonNumericVersion(_0x19b3da))return{'installed':!![],'version':_0x2b3bfe,'needsUpgrade':![],'minVersion':_0x2cf9c3,'packageName':_0x21d8a9,'stableVersion':_0xfb6561};const _0xcb3125=a287_0x15f262[_0xcfee4b(0x208)](_0x2b3bfe),_0x2c0953=a287_0x15f262[_0xcfee4b(0x208)](_0x2cf9c3),_0x47d54b=_0xcb3125&&_0x2c0953?a287_0x15f262['lt'](_0xcb3125,_0x2c0953):![];return{'installed':!![],'version':_0x2b3bfe,'needsUpgrade':_0x47d54b,'minVersion':_0x2cf9c3,'packageName':_0x21d8a9,'stableVersion':_0xfb6561};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2cf9c3,'packageName':_0x21d8a9,'stableVersion':_0xfb6561};}}export function checkSdkVersionSync(_0x3810f0){const _0x502374=a287_0x54443c,_0x52525f=a287_0x3174cb[_0x502374(0x20f)](_0x3810f0,_0x502374(0x210)),_0x36dd9e='@lovrabet/sdk';if(!a287_0x15eb55[_0x502374(0x20c)](_0x52525f))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x36dd9e,'stableVersion':null};try{const _0x2c76c9=JSON[_0x502374(0x211)](a287_0x15eb55[_0x502374(0x216)](_0x52525f,_0x502374(0x1f3))),_0x1efed5=_0x2c76c9[_0x502374(0x212)]||{},_0x401e74=_0x2c76c9[_0x502374(0x204)]||{},_0x5e03bb=_0x1efed5[_0x36dd9e]||_0x401e74[_0x36dd9e];if(!_0x5e03bb)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x36dd9e,'stableVersion':null};let _0x4d7b4=getInstalledVersion(_0x3810f0,_0x36dd9e);!_0x4d7b4&&(_0x4d7b4=_0x5e03bb);if(isNonNumericVersion(_0x5e03bb))return{'installed':!![],'version':_0x4d7b4,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x36dd9e,'stableVersion':null};const _0x27979e=a287_0x15f262['coerce'](_0x4d7b4),_0x20a4f2=_0x27979e?a287_0x15f262['lt'](_0x27979e,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x4d7b4,'needsUpgrade':_0x20a4f2,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x36dd9e,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x36dd9e,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x33e0d5){const _0x3fe9ea=a287_0x54443c;if(!_0x33e0d5[_0x3fe9ea(0x1f2)])return;const _0x40fc59=_0x3fe9ea(0x217),_0x3887e9='\x1b[0m',_0x53ec67=_0x3fe9ea(0x209),_0x268f61=_0x33e0d5['packageName']||'@lovrabet/sdk',_0x4a52d9=_0x33e0d5[_0x3fe9ea(0x1f5)]||_0x33e0d5['minVersion'],_0x71b4c6='npm\x20install\x20'+_0x268f61+'@'+(_0x4a52d9||_0x3fe9ea(0x207));console[_0x3fe9ea(0x200)](),console[_0x3fe9ea(0x200)](''+_0x40fc59+_0x53ec67+_0x3fe9ea(0x20b)+_0x3887e9),console[_0x3fe9ea(0x200)](_0x40fc59+_0x3fe9ea(0x1f9)+_0x268f61+'@'+_0x33e0d5[_0x3fe9ea(0x1f4)]+_0x3887e9),console[_0x3fe9ea(0x200)](_0x40fc59+'\x20\x20\x20Stable\x20version:\x20'+_0x4a52d9+_0x3887e9),console[_0x3fe9ea(0x200)](_0x40fc59+_0x3fe9ea(0x1f8)+_0x71b4c6+_0x3887e9),console[_0x3fe9ea(0x200)]();}
1
+ const a295_0x3c5df4=a295_0x4d8f;(function(_0x20c634,_0x5460d4){const _0x176597=a295_0x4d8f,_0x159ead=_0x20c634();while(!![]){try{const _0x5d8ec3=-parseInt(_0x176597(0x6e))/0x1+-parseInt(_0x176597(0x86))/0x2+parseInt(_0x176597(0x85))/0x3+parseInt(_0x176597(0x8b))/0x4*(-parseInt(_0x176597(0x6c))/0x5)+parseInt(_0x176597(0x79))/0x6*(parseInt(_0x176597(0x70))/0x7)+-parseInt(_0x176597(0x80))/0x8+-parseInt(_0x176597(0x7f))/0x9*(-parseInt(_0x176597(0x7b))/0xa);if(_0x5d8ec3===_0x5460d4)break;else _0x159ead['push'](_0x159ead['shift']());}catch(_0x15ed20){_0x159ead['push'](_0x159ead['shift']());}}}(a295_0x5a5e,0x3a313));import a295_0x46e284 from'node:fs';import a295_0x4da53e from'node:path';import a295_0x55ff6e from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a295_0x3c5df4(0x8c);function a295_0x4d8f(_0x302aa5,_0x5686e9){_0x302aa5=_0x302aa5-0x67;const _0x5a5eb6=a295_0x5a5e();let _0x4d8f05=_0x5a5eb6[_0x302aa5];return _0x4d8f05;}function a295_0x5a5e(){const _0x14f855=['\x1b[1m','3585105pdttPw','3448024glYReF','dependencies','all','utf8','test','1348443JpnQiO','432858YdhpIO','node','package.json','stableVersion','version','23972kApUVS','1.2.0','sdk','coerce','log','@lovrabet/sdk','\x20\x20\x20Stable\x20version:\x20','130ibwUgb','devDependencies','224022SnecmL','readFileSync','7VxrCKR','latest','some','existsSync','\x1b[33m','\x1b[0m','needsUpgrade','parse','packageName','2506806eEfOpk','minVersion','10PZKFUD','npm\x20install\x20','join'];a295_0x5a5e=function(){return _0x14f855;};return a295_0x5a5e();}function isNonNumericVersion(_0x3e98d1){const _0x1109aa=a295_0x3c5df4,_0x249896=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x249896[_0x1109aa(0x72)](_0x30b1a9=>_0x30b1a9[_0x1109aa(0x84)](_0x3e98d1));}function getInstalledVersion(_0x309452,_0x14ddd0){const _0x49a306=a295_0x3c5df4;try{const _0x2a652c=a295_0x4da53e[_0x49a306(0x7d)](_0x309452,'node_modules',_0x14ddd0,_0x49a306(0x88));if(a295_0x46e284[_0x49a306(0x73)](_0x2a652c)){const _0x17db43=JSON[_0x49a306(0x77)](a295_0x46e284[_0x49a306(0x6f)](_0x2a652c,'utf-8'));return _0x17db43[_0x49a306(0x8a)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x1c5ce8=a295_0x3c5df4;try{const _0x874360=await getCdnConfig();return _0x874360?.['sdk']?.[_0x1c5ce8(0x87)]?.[_0x1c5ce8(0x89)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x4d3475=a295_0x3c5df4;try{const _0x3a3a82=await getCdnConfig();return _0x3a3a82?.[_0x4d3475(0x67)]?.['node']?.[_0x4d3475(0x78)]||_0x4d3475(0x6a);}catch{return _0x4d3475(0x6a);}}export async function checkSdkVersion(_0x55c306){const _0x363a5a=a295_0x3c5df4,_0x1c958b=a295_0x4da53e[_0x363a5a(0x7d)](_0x55c306,_0x363a5a(0x88)),[_0x36f6e9,_0x25e126]=await Promise[_0x363a5a(0x82)]([getSdkStableVersion(),getSdkPackageName()]),_0x13e3b5=_0x36f6e9||FALLBACK_MIN_SDK_VERSION;if(!a295_0x46e284[_0x363a5a(0x73)](_0x1c958b))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x13e3b5,'packageName':_0x25e126,'stableVersion':_0x36f6e9};try{const _0x200446=JSON[_0x363a5a(0x77)](a295_0x46e284['readFileSync'](_0x1c958b,_0x363a5a(0x83))),_0x31d110=_0x200446['dependencies']||{},_0x5aded9=_0x200446[_0x363a5a(0x6d)]||{},_0x19b1d0=_0x31d110[_0x25e126]||_0x5aded9[_0x25e126];if(!_0x19b1d0)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x13e3b5,'packageName':_0x25e126,'stableVersion':_0x36f6e9};let _0x5089b2=getInstalledVersion(_0x55c306,_0x25e126);!_0x5089b2&&(_0x5089b2=_0x19b1d0);if(isNonNumericVersion(_0x19b1d0))return{'installed':!![],'version':_0x5089b2,'needsUpgrade':![],'minVersion':_0x13e3b5,'packageName':_0x25e126,'stableVersion':_0x36f6e9};const _0x4ed68f=a295_0x55ff6e['coerce'](_0x5089b2),_0x410c64=a295_0x55ff6e[_0x363a5a(0x68)](_0x13e3b5),_0x559f40=_0x4ed68f&&_0x410c64?a295_0x55ff6e['lt'](_0x4ed68f,_0x410c64):![];return{'installed':!![],'version':_0x5089b2,'needsUpgrade':_0x559f40,'minVersion':_0x13e3b5,'packageName':_0x25e126,'stableVersion':_0x36f6e9};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x13e3b5,'packageName':_0x25e126,'stableVersion':_0x36f6e9};}}export function checkSdkVersionSync(_0x11846a){const _0x2287bd=a295_0x3c5df4,_0x24422e=a295_0x4da53e[_0x2287bd(0x7d)](_0x11846a,'package.json'),_0x5d938e=_0x2287bd(0x6a);if(!a295_0x46e284[_0x2287bd(0x73)](_0x24422e))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5d938e,'stableVersion':null};try{const _0x5048c0=JSON[_0x2287bd(0x77)](a295_0x46e284['readFileSync'](_0x24422e,_0x2287bd(0x83))),_0x59e366=_0x5048c0[_0x2287bd(0x81)]||{},_0x39c295=_0x5048c0[_0x2287bd(0x6d)]||{},_0x1dfe63=_0x59e366[_0x5d938e]||_0x39c295[_0x5d938e];if(!_0x1dfe63)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5d938e,'stableVersion':null};let _0x2bb956=getInstalledVersion(_0x11846a,_0x5d938e);!_0x2bb956&&(_0x2bb956=_0x1dfe63);if(isNonNumericVersion(_0x1dfe63))return{'installed':!![],'version':_0x2bb956,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5d938e,'stableVersion':null};const _0x1af262=a295_0x55ff6e['coerce'](_0x2bb956),_0x49da61=_0x1af262?a295_0x55ff6e['lt'](_0x1af262,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x2bb956,'needsUpgrade':_0x49da61,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5d938e,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5d938e,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x5f57da){const _0x32a5cb=a295_0x3c5df4;if(!_0x5f57da[_0x32a5cb(0x76)])return;const _0x456927=_0x32a5cb(0x74),_0x27745a=_0x32a5cb(0x75),_0x54cbf4=_0x32a5cb(0x7e),_0x1286d9=_0x5f57da['packageName']||_0x32a5cb(0x6a),_0x5a3278=_0x5f57da[_0x32a5cb(0x89)]||_0x5f57da[_0x32a5cb(0x7a)],_0xc2e6b=_0x32a5cb(0x7c)+_0x1286d9+'@'+(_0x5a3278||_0x32a5cb(0x71));console[_0x32a5cb(0x69)](),console[_0x32a5cb(0x69)](''+_0x456927+_0x54cbf4+'↪\x20SDK\x20update\x20available'+_0x27745a),console[_0x32a5cb(0x69)](_0x456927+'\x20\x20\x20Current\x20version:\x20'+_0x1286d9+'@'+_0x5f57da[_0x32a5cb(0x8a)]+_0x27745a),console['log'](_0x456927+_0x32a5cb(0x6b)+_0x5a3278+_0x27745a),console[_0x32a5cb(0x69)](_0x456927+'\x20\x20\x20Upgrade\x20command:\x20'+_0xc2e6b+_0x27745a),console['log']();}
@@ -1 +1 @@
1
- function a288_0x311b(_0x49e3be,_0xc7c9c5){_0x49e3be=_0x49e3be-0x194;const _0x4eba8c=a288_0x4eba();let _0x311bd8=_0x4eba8c[_0x49e3be];return _0x311bd8;}(function(_0x993098,_0x4d83f2){const _0x3190a4=a288_0x311b,_0x55ac24=_0x993098();while(!![]){try{const _0x48c5f8=parseInt(_0x3190a4(0x1b6))/0x1+-parseInt(_0x3190a4(0x198))/0x2+parseInt(_0x3190a4(0x1b9))/0x3*(-parseInt(_0x3190a4(0x1b2))/0x4)+-parseInt(_0x3190a4(0x19e))/0x5+parseInt(_0x3190a4(0x1a4))/0x6*(-parseInt(_0x3190a4(0x1b4))/0x7)+-parseInt(_0x3190a4(0x1b7))/0x8*(-parseInt(_0x3190a4(0x1ab))/0x9)+parseInt(_0x3190a4(0x1a6))/0xa*(parseInt(_0x3190a4(0x1b8))/0xb);if(_0x48c5f8===_0x4d83f2)break;else _0x55ac24['push'](_0x55ac24['shift']());}catch(_0x3cc4cb){_0x55ac24['push'](_0x55ac24['shift']());}}}(a288_0x4eba,0x764b6));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a288_0x36aedb from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a288_0x4eba(){const _0x20b887=['utf-8','log','stableVersion','\x20\x20\x20Upgrade\x20command:\x20','6zdDgfk','join','3550uwabyK','Current\x20version:\x20','npm\x20install\x20-g\x20','upgradeMessage','package.json','3069DAifdB','↪\x20Critical\x20CLI\x20upgrade\x20required','../..','\x20\x20\x20','1.0.0','minimumVersionMessage','minimumVersion','188zxbRtx','\x1b[33m','1544767FPufJY','Upgrade\x20command:\x20','791609NWfWag','392ycHRnv','55385tOvAUt','26145FYsOLz','version','\x20\x20\x20Stable\x20version:\x20','currentVersion','\x1b[0m','1321416VHWFiu','parse','filter','\x20\x20\x20Recommended\x20stable:\x20','\x1b[31m','\x20\x20\x20Current\x20CLI\x20version:\x20','4101075LhobgA','coerce'];a288_0x4eba=function(){return _0x20b887;};return a288_0x4eba();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x2991c0){const _0x565fec=a288_0x311b,_0x109beb=_0x2991c0['stableVersion']||'latest';return _0x565fec(0x1a8)+NPM_PACKAGE_NAME+'@'+_0x109beb;}function getCurrentCliVersion(){const _0x6063e2=a288_0x311b;try{const _0x368490=fileURLToPath(import.meta.url),_0x1d3c8d=resolve(dirname(_0x368490),_0x6063e2(0x1ad)),_0x5274a4=resolve(_0x1d3c8d,_0x6063e2(0x1aa)),_0x28a394=JSON[_0x6063e2(0x199)](readFileSync(_0x5274a4,_0x6063e2(0x1a0)));return _0x28a394[_0x6063e2(0x194)]||_0x6063e2(0x1af);}catch{return _0x6063e2(0x1af);}}export async function checkCliVersion(){const _0x2f604f=a288_0x311b,_0x4fae4b=getCurrentCliVersion(),_0x207fec=await getCliVersionPolicy(),_0x3e9d34=_0x207fec?.['stableVersion']||null,_0x50e013=_0x207fec?.[_0x2f604f(0x1b1)]||null;let _0xcd0f03=![],_0x26d68d=![];const _0x32543a=a288_0x36aedb[_0x2f604f(0x19f)](_0x4fae4b);if(_0x32543a&&_0x3e9d34)try{const _0x598622=a288_0x36aedb[_0x2f604f(0x19f)](_0x3e9d34);if(_0x598622)_0xcd0f03=a288_0x36aedb['lt'](_0x32543a,_0x598622);}catch{}if(_0x32543a&&_0x50e013)try{const _0x26d71b=a288_0x36aedb[_0x2f604f(0x19f)](_0x50e013);if(_0x26d71b)_0x26d68d=a288_0x36aedb['lt'](_0x32543a,_0x26d71b);}catch{}return _0x26d68d&&(_0xcd0f03=!![]),{'currentVersion':_0x4fae4b,'stableVersion':_0x3e9d34,'minimumVersion':_0x50e013,'needsUpgrade':_0xcd0f03,'belowMinimum':_0x26d68d,'isPreRelease':![],'upgradeMessage':_0x207fec?.['upgradeMessage'],'minimumVersionMessage':_0x207fec?.[_0x2f604f(0x1b0)]};}export function printCliUpgradeWarning(_0x34357e){const _0x10edea=a288_0x311b;if(!_0x34357e['needsUpgrade']&&!_0x34357e['belowMinimum'])return;const _0x58b7da=_0x10edea(0x19c),_0x16d9af=_0x10edea(0x1b3),_0x2d1217=_0x10edea(0x197),_0x398fcb='\x1b[1m',_0x525a68=getCliUpgradeCommand(_0x34357e);console[_0x10edea(0x1a1)](),_0x34357e['belowMinimum']?(console[_0x10edea(0x1a1)](''+_0x58b7da+_0x398fcb+_0x10edea(0x1ac)+_0x2d1217),console[_0x10edea(0x1a1)](_0x58b7da+_0x10edea(0x19d)+_0x34357e[_0x10edea(0x196)]+_0x2d1217),_0x34357e['minimumVersion']&&console[_0x10edea(0x1a1)](_0x58b7da+'\x20\x20\x20Minimum\x20supported:\x20'+_0x34357e[_0x10edea(0x1b1)]+_0x2d1217),_0x34357e[_0x10edea(0x1a2)]&&_0x34357e['stableVersion']!==_0x34357e[_0x10edea(0x1b1)]&&console['log'](_0x58b7da+_0x10edea(0x19b)+_0x34357e[_0x10edea(0x1a2)]+_0x2d1217),_0x34357e['minimumVersionMessage']&&console[_0x10edea(0x1a1)](_0x58b7da+_0x10edea(0x1ae)+_0x34357e[_0x10edea(0x1b0)]+_0x2d1217),console['log'](_0x58b7da+_0x10edea(0x1a3)+_0x525a68+_0x2d1217)):(console[_0x10edea(0x1a1)](''+_0x16d9af+_0x398fcb+'↪\x20New\x20version\x20available'+_0x2d1217),console[_0x10edea(0x1a1)](_0x16d9af+_0x10edea(0x19d)+_0x34357e[_0x10edea(0x196)]+_0x2d1217),console[_0x10edea(0x1a1)](_0x16d9af+_0x10edea(0x195)+_0x34357e[_0x10edea(0x1a2)]+_0x2d1217),_0x34357e[_0x10edea(0x1a9)]&&console['log'](_0x16d9af+_0x10edea(0x1ae)+_0x34357e[_0x10edea(0x1a9)]+_0x2d1217),console[_0x10edea(0x1a1)](_0x16d9af+_0x10edea(0x1a3)+_0x525a68+_0x2d1217)),console['log']();}export function assertCliVersionSupported(_0x2b8033){const _0x55367d=a288_0x311b;if(!_0x2b8033['belowMinimum'])return;const _0x27b287=[_0x2b8033[_0x55367d(0x1b0)],_0x55367d(0x1a7)+_0x2b8033['currentVersion'],_0x2b8033[_0x55367d(0x1b1)]?'Minimum\x20supported:\x20'+_0x2b8033['minimumVersion']:null,_0x55367d(0x1b5)+getCliUpgradeCommand(_0x2b8033)][_0x55367d(0x19a)](Boolean)[_0x55367d(0x1a5)]('\x0a');throw CliErrors['validation']('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x27b287);}
1
+ (function(_0x1b4a95,_0x17240a){const _0x455c90=a296_0x4c41,_0x2d5349=_0x1b4a95();while(!![]){try{const _0x30b14b=-parseInt(_0x455c90(0x129))/0x1+-parseInt(_0x455c90(0x116))/0x2+-parseInt(_0x455c90(0x120))/0x3*(parseInt(_0x455c90(0x135))/0x4)+parseInt(_0x455c90(0x121))/0x5+parseInt(_0x455c90(0x124))/0x6*(parseInt(_0x455c90(0x126))/0x7)+-parseInt(_0x455c90(0x13c))/0x8*(-parseInt(_0x455c90(0x119))/0x9)+parseInt(_0x455c90(0x118))/0xa;if(_0x30b14b===_0x17240a)break;else _0x2d5349['push'](_0x2d5349['shift']());}catch(_0x18522c){_0x2d5349['push'](_0x2d5349['shift']());}}}(a296_0x3ae0,0x7ea6c));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a296_0x11ec8e from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a296_0x3ae0(){const _0x46319f=['\x1b[33m','\x1b[0m','\x20\x20\x20Recommended\x20stable:\x20','\x1b[1m','589216ZlmTqU','stableVersion','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','version','minimumVersionMessage','6380vtZIdV','needsUpgrade','7874730pvPlLO','99cyhOLa','\x20\x20\x20Current\x20CLI\x20version:\x20','coerce','↪\x20New\x20version\x20available','\x20\x20\x20Minimum\x20supported:\x20','currentVersion','npm\x20install\x20-g\x20','10191FIdyVc','3084180wiNgNi','log','belowMinimum','662652ebeBVi','Minimum\x20supported:\x20','14zUepbr','\x1b[31m','Current\x20version:\x20','921487xinKII','\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20Upgrade\x20command:\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','../..','\x20\x20\x20','minimumVersion','upgradeMessage','package.json','validation','parse','filter','1168ihvdpE','1.0.0','utf-8'];a296_0x3ae0=function(){return _0x46319f;};return a296_0x3ae0();}function a296_0x4c41(_0x2187c7,_0x2cdc2a){_0x2187c7=_0x2187c7-0x116;const _0x3ae081=a296_0x3ae0();let _0x4c41da=_0x3ae081[_0x2187c7];return _0x4c41da;}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x4a3ea7){const _0x46018a=a296_0x4c41,_0x12e784=_0x4a3ea7[_0x46018a(0x13d)]||'latest';return _0x46018a(0x11f)+NPM_PACKAGE_NAME+'@'+_0x12e784;}function getCurrentCliVersion(){const _0x41f3bf=a296_0x4c41;try{const _0x294976=fileURLToPath(import.meta.url),_0x505b90=resolve(dirname(_0x294976),_0x41f3bf(0x12d)),_0x552e=resolve(_0x505b90,_0x41f3bf(0x131)),_0x345578=JSON[_0x41f3bf(0x133)](readFileSync(_0x552e,_0x41f3bf(0x137)));return _0x345578[_0x41f3bf(0x13f)]||_0x41f3bf(0x136);}catch{return _0x41f3bf(0x136);}}export async function checkCliVersion(){const _0x182204=a296_0x4c41,_0x1d4e42=getCurrentCliVersion(),_0x5d790b=await getCliVersionPolicy(),_0x4a49f1=_0x5d790b?.[_0x182204(0x13d)]||null,_0x553f36=_0x5d790b?.[_0x182204(0x12f)]||null;let _0x39c94f=![],_0x4d09e4=![];const _0x24fb0d=a296_0x11ec8e['coerce'](_0x1d4e42);if(_0x24fb0d&&_0x4a49f1)try{const _0x282e11=a296_0x11ec8e['coerce'](_0x4a49f1);if(_0x282e11)_0x39c94f=a296_0x11ec8e['lt'](_0x24fb0d,_0x282e11);}catch{}if(_0x24fb0d&&_0x553f36)try{const _0x92ab8f=a296_0x11ec8e[_0x182204(0x11b)](_0x553f36);if(_0x92ab8f)_0x4d09e4=a296_0x11ec8e['lt'](_0x24fb0d,_0x92ab8f);}catch{}return _0x4d09e4&&(_0x39c94f=!![]),{'currentVersion':_0x1d4e42,'stableVersion':_0x4a49f1,'minimumVersion':_0x553f36,'needsUpgrade':_0x39c94f,'belowMinimum':_0x4d09e4,'isPreRelease':![],'upgradeMessage':_0x5d790b?.[_0x182204(0x130)],'minimumVersionMessage':_0x5d790b?.[_0x182204(0x140)]};}export function printCliUpgradeWarning(_0x568ba8){const _0x1e1ebe=a296_0x4c41;if(!_0x568ba8[_0x1e1ebe(0x117)]&&!_0x568ba8[_0x1e1ebe(0x123)])return;const _0x4b4207=_0x1e1ebe(0x127),_0x1d7edb=_0x1e1ebe(0x138),_0x2df6e9=_0x1e1ebe(0x139),_0x593bac=_0x1e1ebe(0x13b),_0x4a7450=getCliUpgradeCommand(_0x568ba8);console['log'](),_0x568ba8[_0x1e1ebe(0x123)]?(console[_0x1e1ebe(0x122)](''+_0x4b4207+_0x593bac+_0x1e1ebe(0x12c)+_0x2df6e9),console['log'](_0x4b4207+_0x1e1ebe(0x11a)+_0x568ba8['currentVersion']+_0x2df6e9),_0x568ba8[_0x1e1ebe(0x12f)]&&console[_0x1e1ebe(0x122)](_0x4b4207+_0x1e1ebe(0x11d)+_0x568ba8[_0x1e1ebe(0x12f)]+_0x2df6e9),_0x568ba8['stableVersion']&&_0x568ba8['stableVersion']!==_0x568ba8['minimumVersion']&&console['log'](_0x4b4207+_0x1e1ebe(0x13a)+_0x568ba8[_0x1e1ebe(0x13d)]+_0x2df6e9),_0x568ba8[_0x1e1ebe(0x140)]&&console[_0x1e1ebe(0x122)](_0x4b4207+_0x1e1ebe(0x12e)+_0x568ba8[_0x1e1ebe(0x140)]+_0x2df6e9),console[_0x1e1ebe(0x122)](_0x4b4207+'\x20\x20\x20Upgrade\x20command:\x20'+_0x4a7450+_0x2df6e9)):(console[_0x1e1ebe(0x122)](''+_0x1d7edb+_0x593bac+_0x1e1ebe(0x11c)+_0x2df6e9),console[_0x1e1ebe(0x122)](_0x1d7edb+_0x1e1ebe(0x11a)+_0x568ba8[_0x1e1ebe(0x11e)]+_0x2df6e9),console[_0x1e1ebe(0x122)](_0x1d7edb+_0x1e1ebe(0x12a)+_0x568ba8[_0x1e1ebe(0x13d)]+_0x2df6e9),_0x568ba8['upgradeMessage']&&console[_0x1e1ebe(0x122)](_0x1d7edb+_0x1e1ebe(0x12e)+_0x568ba8['upgradeMessage']+_0x2df6e9),console[_0x1e1ebe(0x122)](_0x1d7edb+_0x1e1ebe(0x12b)+_0x4a7450+_0x2df6e9)),console[_0x1e1ebe(0x122)]();}export function assertCliVersionSupported(_0x26cfc6){const _0x1464fd=a296_0x4c41;if(!_0x26cfc6[_0x1464fd(0x123)])return;const _0x3b266a=[_0x26cfc6[_0x1464fd(0x140)],_0x1464fd(0x128)+_0x26cfc6['currentVersion'],_0x26cfc6[_0x1464fd(0x12f)]?_0x1464fd(0x125)+_0x26cfc6['minimumVersion']:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x26cfc6)][_0x1464fd(0x134)](Boolean)['join']('\x0a');throw CliErrors[_0x1464fd(0x132)](_0x1464fd(0x13e),_0x3b266a);}
@@ -1 +1 @@
1
- (function(_0x29cc1b,_0x504d2b){const _0x34df3e=a289_0x54b7,_0x105694=_0x29cc1b();while(!![]){try{const _0x1b97d7=-parseInt(_0x34df3e(0x1ca))/0x1*(parseInt(_0x34df3e(0x1ba))/0x2)+parseInt(_0x34df3e(0x1d0))/0x3*(parseInt(_0x34df3e(0x1ce))/0x4)+-parseInt(_0x34df3e(0x1c2))/0x5*(-parseInt(_0x34df3e(0x1c5))/0x6)+parseInt(_0x34df3e(0x1c0))/0x7*(-parseInt(_0x34df3e(0x1bf))/0x8)+parseInt(_0x34df3e(0x1cb))/0x9*(parseInt(_0x34df3e(0x1c1))/0xa)+parseInt(_0x34df3e(0x1bc))/0xb*(parseInt(_0x34df3e(0x1c7))/0xc)+-parseInt(_0x34df3e(0x1d2))/0xd;if(_0x1b97d7===_0x504d2b)break;else _0x105694['push'](_0x105694['shift']());}catch(_0xff4e14){_0x105694['push'](_0x105694['shift']());}}}(a289_0xb22c,0xca9f2));function a289_0x54b7(_0x3d4b64,_0x22ecbd){_0x3d4b64=_0x3d4b64-0x1ba;const _0xb22cff=a289_0xb22c();let _0x54b761=_0xb22cff[_0x3d4b64];return _0x54b761;}function a289_0xb22c(){const _0x30b9f8=['string','797470XcGGtq','12295467IFxKfZ','minimumVersion','trim','2584IlazSl','stableVersion','5229MPDfJd','object','30962737vSaTio','minimumVersionMessage','2SDziGU','upgradeMessage','42251hIFcsa','recommendedVersion','minVersion','3678328lOWEUC','21MkvKDV','10RkNDyt','7145635aSrKBr','signal','json','6qodMit','cli','4584CGspQm','now'];a289_0xb22c=function(){return _0x30b9f8;};return a289_0xb22c();}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(_0x425b64){const _0xe5ed88=a289_0x54b7;return typeof _0x425b64===_0xe5ed88(0x1c9)&&_0x425b64['trim']()['length']>0x0?_0x425b64[_0xe5ed88(0x1cd)]():null;}function normalizeCliVersionPolicy(_0x1cecde){const _0x2552ee=a289_0x54b7;if(!_0x1cecde||typeof _0x1cecde!==_0x2552ee(0x1d1))return null;const _0x3914ca=_0x1cecde,_0x4490c5=_0x3914ca[_0x2552ee(0x1c6)]&&typeof _0x3914ca[_0x2552ee(0x1c6)]===_0x2552ee(0x1d1)?_0x3914ca[_0x2552ee(0x1c6)]:_0x3914ca,_0x5b7f5a=pickString(_0x4490c5[_0x2552ee(0x1cf)])||pickString(_0x4490c5['latestVersion'])||pickString(_0x4490c5[_0x2552ee(0x1bd)]),_0xb90fab=pickString(_0x4490c5[_0x2552ee(0x1cc)])||pickString(_0x4490c5[_0x2552ee(0x1be)]);if(!_0x5b7f5a&&!_0xb90fab)return null;return{'stableVersion':_0x5b7f5a,'minimumVersion':_0xb90fab,'upgradeMessage':pickString(_0x4490c5[_0x2552ee(0x1bb)])||undefined,'minimumVersionMessage':pickString(_0x4490c5[_0x2552ee(0x1d3)])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x4b2652=a289_0x54b7,_0x61044=new AbortController(),_0x5ede62=setTimeout(()=>_0x61044['abort'](),FETCH_TIMEOUT_MS);try{const _0x1146c9=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x61044[_0x4b2652(0x1c3)]});if(!_0x1146c9['ok'])return null;const _0x326cb9=await _0x1146c9[_0x4b2652(0x1c4)]();return _0x326cb9&&typeof _0x326cb9===_0x4b2652(0x1d1)?_0x326cb9:null;}catch{return null;}finally{clearTimeout(_0x5ede62);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x5ddcc7=a289_0x54b7,_0x6ee540=Date[_0x5ddcc7(0x1c8)]();if(hasCachedConfig){const _0x467215=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x6ee540-cacheTime<_0x467215)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x6ee540,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x20b92b,_0x460e71){const _0x14f1c8=a297_0xe81c,_0xd64828=_0x20b92b();while(!![]){try{const _0x3d54a0=parseInt(_0x14f1c8(0x179))/0x1+parseInt(_0x14f1c8(0x186))/0x2+parseInt(_0x14f1c8(0x17f))/0x3*(parseInt(_0x14f1c8(0x17d))/0x4)+parseInt(_0x14f1c8(0x184))/0x5+parseInt(_0x14f1c8(0x182))/0x6+parseInt(_0x14f1c8(0x176))/0x7+-parseInt(_0x14f1c8(0x175))/0x8*(parseInt(_0x14f1c8(0x17b))/0x9);if(_0x3d54a0===_0x460e71)break;else _0xd64828['push'](_0xd64828['shift']());}catch(_0x167d40){_0xd64828['push'](_0xd64828['shift']());}}}(a297_0x49dc,0xccd21));function a297_0x49dc(){const _0x1627c2=['2534304WqfNCf','minimumVersionMessage','4176270VHSvPM','string','2466348GPuXQN','signal','trim','application/json','64kRauyH','7824824OQgoch','stableVersion','length','667299pDgjwV','object','4855212SzsNlk','cli','4OsrfPn','abort','2636238oRIsqN','upgradeMessage','json'];a297_0x49dc=function(){return _0x1627c2;};return a297_0x49dc();}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(_0x5176de){const _0x4d0a75=a297_0xe81c;return typeof _0x5176de===_0x4d0a75(0x185)&&_0x5176de[_0x4d0a75(0x188)]()[_0x4d0a75(0x178)]>0x0?_0x5176de['trim']():null;}function normalizeCliVersionPolicy(_0x16d548){const _0x9f9d31=a297_0xe81c;if(!_0x16d548||typeof _0x16d548!==_0x9f9d31(0x17a))return null;const _0x1ec535=_0x16d548,_0x5aee21=_0x1ec535[_0x9f9d31(0x17c)]&&typeof _0x1ec535[_0x9f9d31(0x17c)]==='object'?_0x1ec535[_0x9f9d31(0x17c)]:_0x1ec535,_0x4133f9=pickString(_0x5aee21[_0x9f9d31(0x177)])||pickString(_0x5aee21['latestVersion'])||pickString(_0x5aee21['recommendedVersion']),_0x1f73f9=pickString(_0x5aee21['minimumVersion'])||pickString(_0x5aee21['minVersion']);if(!_0x4133f9&&!_0x1f73f9)return null;return{'stableVersion':_0x4133f9,'minimumVersion':_0x1f73f9,'upgradeMessage':pickString(_0x5aee21[_0x9f9d31(0x180)])||undefined,'minimumVersionMessage':pickString(_0x5aee21[_0x9f9d31(0x183)])||undefined};}function a297_0xe81c(_0x25c203,_0x57d439){_0x25c203=_0x25c203-0x175;const _0x49dc20=a297_0x49dc();let _0xe81cc0=_0x49dc20[_0x25c203];return _0xe81cc0;}export async function fetchRabetbaseCdnConfig(){const _0x2511d1=a297_0xe81c,_0x100280=new AbortController(),_0x477e51=setTimeout(()=>_0x100280[_0x2511d1(0x17e)](),FETCH_TIMEOUT_MS);try{const _0xeb1c61=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x2511d1(0x189)},'signal':_0x100280[_0x2511d1(0x187)]});if(!_0xeb1c61['ok'])return null;const _0x69a23=await _0xeb1c61[_0x2511d1(0x181)]();return _0x69a23&&typeof _0x69a23===_0x2511d1(0x17a)?_0x69a23:null;}catch{return null;}finally{clearTimeout(_0x477e51);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x45110a=Date['now']();if(hasCachedConfig){const _0x45ea6c=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x45110a-cacheTime<_0x45ea6c)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x45110a,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a290_0x7c27d3=a290_0x1191;function a290_0x1191(_0x1c9f74,_0x133242){_0x1c9f74=_0x1c9f74-0xce;const _0x5517c2=a290_0x5517();let _0x11913b=_0x5517c2[_0x1c9f74];return _0x11913b;}(function(_0x147da6,_0xdba9b4){const _0x3f6fb5=a290_0x1191,_0x62444d=_0x147da6();while(!![]){try{const _0x1f230e=-parseInt(_0x3f6fb5(0xd3))/0x1+-parseInt(_0x3f6fb5(0xdb))/0x2+-parseInt(_0x3f6fb5(0xd7))/0x3*(-parseInt(_0x3f6fb5(0xd8))/0x4)+parseInt(_0x3f6fb5(0xd2))/0x5*(parseInt(_0x3f6fb5(0xd6))/0x6)+-parseInt(_0x3f6fb5(0xd4))/0x7*(-parseInt(_0x3f6fb5(0xd1))/0x8)+parseInt(_0x3f6fb5(0xd5))/0x9*(parseInt(_0x3f6fb5(0xcf))/0xa)+-parseInt(_0x3f6fb5(0xda))/0xb*(-parseInt(_0x3f6fb5(0xce))/0xc);if(_0x1f230e===_0xdba9b4)break;else _0x62444d['push'](_0x62444d['shift']());}catch(_0x11194f){_0x62444d['push'](_0x62444d['shift']());}}}(a290_0x5517,0x98203));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a290_0x1dc4e2,getMultiAppConfigs as a290_0x3d167d,getTemplateBaseUrl as a290_0x301125}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a290_0x5517(){const _0x1b16ae=['1243903ZxNVLk','3087833PqgLBi','9hvEgoh','42VAvqBj','3EWbyrr','385436mAWuTy','env','44GXxGGE','2483482UduteN','string','3774348zkGwUM','10950510rPQkZD','project','8jxteeX','155790SYsqyV'];a290_0x5517=function(){return _0x1b16ae;};return a290_0x5517();}export function readConfig(_0x1e205a){const _0x1c4dc0=a290_0x1191,_0x232f9c=readRawConfig(_0x1e205a);return _0x232f9c[_0x1c4dc0(0xd9)]&&typeof _0x232f9c[_0x1c4dc0(0xd9)]===_0x1c4dc0(0xdc)&&initEnv(_0x232f9c[_0x1c4dc0(0xd9)]),_0x232f9c;}export function getConfigAppCode(){return a290_0x1dc4e2();}export function getMultiAppConfigs(_0x3b8603=a290_0x7c27d3(0xd0)){return a290_0x3d167d(_0x3b8603);}export function getTemplateBaseUrl(){return a290_0x301125();}
1
+ function a298_0x143a(_0x375c84,_0x4ae0cb){_0x375c84=_0x375c84-0xa0;const _0x2e4228=a298_0x2e42();let _0x143a1b=_0x2e4228[_0x375c84];return _0x143a1b;}const a298_0x3aa93b=a298_0x143a;(function(_0x1b0d89,_0x83f3c2){const _0x291f63=a298_0x143a,_0x45e638=_0x1b0d89();while(!![]){try{const _0x10a194=parseInt(_0x291f63(0xa1))/0x1+parseInt(_0x291f63(0xa7))/0x2*(-parseInt(_0x291f63(0xa6))/0x3)+parseInt(_0x291f63(0xa3))/0x4+parseInt(_0x291f63(0xa2))/0x5+-parseInt(_0x291f63(0xa9))/0x6*(parseInt(_0x291f63(0xa0))/0x7)+-parseInt(_0x291f63(0xaa))/0x8+-parseInt(_0x291f63(0xa4))/0x9;if(_0x10a194===_0x83f3c2)break;else _0x45e638['push'](_0x45e638['shift']());}catch(_0x14245e){_0x45e638['push'](_0x45e638['shift']());}}}(a298_0x2e42,0x55f5f));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a298_0x34b03c,getMultiAppConfigs as a298_0x5f128e,getTemplateBaseUrl as a298_0x384a8c}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a298_0x2e42(){const _0x4fc2df=['env','12DJaJgp','3757424QbfkfD','string','425117kIXcVu','452625WstOit','2465990vGqbPc','1580568iSDrMt','545364NAsnkL','project','6BeQuMo','337134kJyXqr'];a298_0x2e42=function(){return _0x4fc2df;};return a298_0x2e42();}export{isInProject}from'../context.js';export function readConfig(_0x57ff18){const _0xa190ba=a298_0x143a,_0x4db921=readRawConfig(_0x57ff18);return _0x4db921[_0xa190ba(0xa8)]&&typeof _0x4db921[_0xa190ba(0xa8)]===_0xa190ba(0xab)&&initEnv(_0x4db921[_0xa190ba(0xa8)]),_0x4db921;}export function getConfigAppCode(){return a298_0x34b03c();}export function getMultiAppConfigs(_0x23868d=a298_0x3aa93b(0xa5)){return a298_0x5f128e(_0x23868d);}export function getTemplateBaseUrl(){return a298_0x384a8c();}
@@ -1 +1 @@
1
- (function(_0x442e07,_0x28398f){const _0x2f297a=a291_0x4ca4,_0x1cda07=_0x442e07();while(!![]){try{const _0x33bf63=-parseInt(_0x2f297a(0xe1))/0x1+-parseInt(_0x2f297a(0xec))/0x2*(-parseInt(_0x2f297a(0xe9))/0x3)+parseInt(_0x2f297a(0xe8))/0x4+parseInt(_0x2f297a(0xe5))/0x5*(-parseInt(_0x2f297a(0xe4))/0x6)+-parseInt(_0x2f297a(0xe2))/0x7*(-parseInt(_0x2f297a(0xea))/0x8)+-parseInt(_0x2f297a(0xed))/0x9*(-parseInt(_0x2f297a(0xeb))/0xa)+parseInt(_0x2f297a(0xe6))/0xb*(-parseInt(_0x2f297a(0xee))/0xc);if(_0x33bf63===_0x28398f)break;else _0x1cda07['push'](_0x1cda07['shift']());}catch(_0x3f9564){_0x1cda07['push'](_0x1cda07['shift']());}}}(a291_0x363d,0x6462b));function a291_0x363d(){const _0x4dd1ce=['99uXaigW','16779156jqvDWp','number','isFinite','332428rPDmBi','5056639uBOVSm','string','15276fpFBxv','730pncrXC','11WPHDLP','trim','1698428vRZnDa','268665rwHOsH','8lLxIRd','672470Eaerqb','14hTsKRg'];a291_0x363d=function(){return _0x4dd1ce;};return a291_0x363d();}function toFiniteNumber(_0x12764e){const _0x37a211=a291_0x4ca4;if(typeof _0x12764e===_0x37a211(0xdf)&&Number[_0x37a211(0xe0)](_0x12764e))return _0x12764e;if(typeof _0x12764e===_0x37a211(0xe3)){const _0x20abc4=_0x12764e[_0x37a211(0xe7)]();if(!_0x20abc4)return undefined;const _0x43410c=Number(_0x20abc4);if(Number[_0x37a211(0xe0)](_0x43410c))return _0x43410c;}return undefined;}function a291_0x4ca4(_0x87e345,_0x17cee6){_0x87e345=_0x87e345-0xdf;const _0x363d98=a291_0x363d();let _0x4ca47d=_0x363d98[_0x87e345];return _0x4ca47d;}export function normalizeEntityWithIdResponse(_0x107f68){const _0x279283=toFiniteNumber(_0x107f68);if(_0x279283!==undefined)return{'id':_0x279283,'entity':{'id':_0x279283}};if(!_0x107f68||typeof _0x107f68!=='object')return{'id':undefined,'entity':{}};const _0x71b396={..._0x107f68},_0x2ba475=toFiniteNumber(_0x71b396['id']);return _0x2ba475!==undefined&&(_0x71b396['id']=_0x2ba475),{'id':_0x2ba475,'entity':_0x71b396};}
1
+ (function(_0x451734,_0x5b9eef){const _0x79f6a8=a299_0x5a03,_0x314858=_0x451734();while(!![]){try{const _0x1ed772=parseInt(_0x79f6a8(0x12b))/0x1*(-parseInt(_0x79f6a8(0x125))/0x2)+-parseInt(_0x79f6a8(0x130))/0x3+parseInt(_0x79f6a8(0x134))/0x4*(-parseInt(_0x79f6a8(0x12d))/0x5)+parseInt(_0x79f6a8(0x132))/0x6*(-parseInt(_0x79f6a8(0x12a))/0x7)+-parseInt(_0x79f6a8(0x124))/0x8*(-parseInt(_0x79f6a8(0x128))/0x9)+-parseInt(_0x79f6a8(0x135))/0xa*(-parseInt(_0x79f6a8(0x12f))/0xb)+-parseInt(_0x79f6a8(0x12e))/0xc*(-parseInt(_0x79f6a8(0x127))/0xd);if(_0x1ed772===_0x5b9eef)break;else _0x314858['push'](_0x314858['shift']());}catch(_0xecfde9){_0x314858['push'](_0x314858['shift']());}}}(a299_0x4a32,0x365ef));function a299_0x5a03(_0x5c46be,_0x5bd4cc){_0x5c46be=_0x5c46be-0x124;const _0x4a3206=a299_0x4a32();let _0x5a03cc=_0x4a3206[_0x5c46be];return _0x5a03cc;}function toFiniteNumber(_0xf1d0c1){const _0x565c8a=a299_0x5a03;if(typeof _0xf1d0c1===_0x565c8a(0x12c)&&Number['isFinite'](_0xf1d0c1))return _0xf1d0c1;if(typeof _0xf1d0c1===_0x565c8a(0x131)){const _0x3cc9c4=_0xf1d0c1[_0x565c8a(0x129)]();if(!_0x3cc9c4)return undefined;const _0x121216=Number(_0x3cc9c4);if(Number[_0x565c8a(0x133)](_0x121216))return _0x121216;}return undefined;}function a299_0x4a32(){const _0x4cdb6e=['isFinite','64LHOBBe','2027330NskARG','685376imFmbH','125794kzeMUL','object','13EsxrvE','18ronGuj','trim','922670wxiprY','3cMZSlt','number','107555GpqcqS','8567796SyDzQa','11eyHyPB','206610lPLKHO','string','12sdSWoE'];a299_0x4a32=function(){return _0x4cdb6e;};return a299_0x4a32();}export function normalizeEntityWithIdResponse(_0x478419){const _0x2c52f3=a299_0x5a03,_0x2287fd=toFiniteNumber(_0x478419);if(_0x2287fd!==undefined)return{'id':_0x2287fd,'entity':{'id':_0x2287fd}};if(!_0x478419||typeof _0x478419!==_0x2c52f3(0x126))return{'id':undefined,'entity':{}};const _0x29c5f7={..._0x478419},_0x5dbf7f=toFiniteNumber(_0x29c5f7['id']);return _0x5dbf7f!==undefined&&(_0x29c5f7['id']=_0x5dbf7f),{'id':_0x5dbf7f,'entity':_0x29c5f7};}
@@ -1 +1 @@
1
- (function(_0x5a6909,_0x23a723){const _0x515ada=a292_0x47e9,_0x480036=_0x5a6909();while(!![]){try{const _0x48c427=parseInt(_0x515ada(0x1d7))/0x1+parseInt(_0x515ada(0x1d1))/0x2*(-parseInt(_0x515ada(0x1cf))/0x3)+-parseInt(_0x515ada(0x1cd))/0x4*(parseInt(_0x515ada(0x1cc))/0x5)+-parseInt(_0x515ada(0x1d6))/0x6*(-parseInt(_0x515ada(0x1ce))/0x7)+parseInt(_0x515ada(0x1d0))/0x8+parseInt(_0x515ada(0x1d5))/0x9*(-parseInt(_0x515ada(0x1d3))/0xa)+-parseInt(_0x515ada(0x1d4))/0xb*(parseInt(_0x515ada(0x1d2))/0xc);if(_0x48c427===_0x23a723)break;else _0x480036['push'](_0x480036['shift']());}catch(_0x2ed786){_0x480036['push'](_0x480036['shift']());}}}(a292_0x52e6,0xb5285));function a292_0x52e6(){const _0x5293d5=['20209ieuSGQ','3087726Baaxhv','10341176EHQCde','2DkcaCy','40620hehhfT','8932990GlGyOA','451UNBqKO','9CttIrR','2148gGawXy','583037aVxsOS','isDirectory','529415gIvtSx','4RaLnTx'];a292_0x52e6=function(){return _0x5293d5;};return a292_0x52e6();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x4bcdf8,_0x15257c){const _0x4bd9aa=a292_0x47e9,_0x1cc8d4=statSync(_0x4bcdf8);if(_0x1cc8d4[_0x4bd9aa(0x1cb)]()){!existsSync(_0x15257c)&&mkdirSync(_0x15257c,{'recursive':!![]});const _0x2bf87c=readdirSync(_0x4bcdf8);for(const _0x5d1462 of _0x2bf87c){await copyDir(join(_0x4bcdf8,_0x5d1462),join(_0x15257c,_0x5d1462));}}else copyFileSync(_0x4bcdf8,_0x15257c);}export function ensureDir(_0x360177){!existsSync(_0x360177)&&mkdirSync(_0x360177,{'recursive':!![]});}function a292_0x47e9(_0x3d002c,_0x3d33e1){_0x3d002c=_0x3d002c-0x1cb;const _0x52e619=a292_0x52e6();let _0x47e9c9=_0x52e619[_0x3d002c];return _0x47e9c9;}export function pathExists(_0x2741b5){return existsSync(_0x2741b5);}
1
+ (function(_0x5cc209,_0x220281){const _0x1edad8=a300_0x5e04,_0x5cfab3=_0x5cc209();while(!![]){try{const _0x462c19=parseInt(_0x1edad8(0xa6))/0x1*(parseInt(_0x1edad8(0xab))/0x2)+-parseInt(_0x1edad8(0xa2))/0x3*(-parseInt(_0x1edad8(0xaa))/0x4)+parseInt(_0x1edad8(0xa3))/0x5+parseInt(_0x1edad8(0xa4))/0x6*(-parseInt(_0x1edad8(0xa0))/0x7)+parseInt(_0x1edad8(0xa1))/0x8*(-parseInt(_0x1edad8(0xa8))/0x9)+-parseInt(_0x1edad8(0xa9))/0xa*(-parseInt(_0x1edad8(0xa7))/0xb)+-parseInt(_0x1edad8(0xa5))/0xc;if(_0x462c19===_0x220281)break;else _0x5cfab3['push'](_0x5cfab3['shift']());}catch(_0x571917){_0x5cfab3['push'](_0x5cfab3['shift']());}}}(a300_0xd3c8,0x30dc4));function a300_0xd3c8(){const _0x918299=['73076cOcIil','67202lVsisC','1473178xfzClJ','13352ntCGPe','3cHGpRZ','173755FbDkhK','6YvQAwv','3256260HdPZEo','11xcGybp','1885180sDZGyB','450PbJDqT','20yQyFXI'];a300_0xd3c8=function(){return _0x918299;};return a300_0xd3c8();}function a300_0x5e04(_0x5b696a,_0x1578c1){_0x5b696a=_0x5b696a-0xa0;const _0xd3c883=a300_0xd3c8();let _0x5e0434=_0xd3c883[_0x5b696a];return _0x5e0434;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x23cf37,_0xba32fd){const _0x1b22a9=statSync(_0x23cf37);if(_0x1b22a9['isDirectory']()){!existsSync(_0xba32fd)&&mkdirSync(_0xba32fd,{'recursive':!![]});const _0x243945=readdirSync(_0x23cf37);for(const _0x5d8138 of _0x243945){await copyDir(join(_0x23cf37,_0x5d8138),join(_0xba32fd,_0x5d8138));}}else copyFileSync(_0x23cf37,_0xba32fd);}export function ensureDir(_0xe6edac){!existsSync(_0xe6edac)&&mkdirSync(_0xe6edac,{'recursive':!![]});}export function pathExists(_0x2dda39){return existsSync(_0x2dda39);}
@@ -1 +1 @@
1
- const a293_0x4396ee=a293_0x4fe7;(function(_0x26688b,_0xbe3bf3){const _0x455dd1=a293_0x4fe7,_0x55706d=_0x26688b();while(!![]){try{const _0x43a33d=-parseInt(_0x455dd1(0x1bd))/0x1*(parseInt(_0x455dd1(0x1c3))/0x2)+parseInt(_0x455dd1(0x1cd))/0x3*(-parseInt(_0x455dd1(0x1bb))/0x4)+parseInt(_0x455dd1(0x1b8))/0x5+parseInt(_0x455dd1(0x1b4))/0x6+-parseInt(_0x455dd1(0x1c8))/0x7*(-parseInt(_0x455dd1(0x1b9))/0x8)+parseInt(_0x455dd1(0x1bc))/0x9+parseInt(_0x455dd1(0x1c6))/0xa*(parseInt(_0x455dd1(0x1c0))/0xb);if(_0x43a33d===_0xbe3bf3)break;else _0x55706d['push'](_0x55706d['shift']());}catch(_0x58a1eb){_0x55706d['push'](_0x55706d['shift']());}}}(a293_0x2dc9,0xcb362));function a293_0x4fe7(_0x2872da,_0x2e50d4){_0x2872da=_0x2872da-0x1b3;const _0x2dc933=a293_0x2dc9();let _0x4fe72a=_0x2dc933[_0x2872da];return _0x4fe72a;}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 _0x35bf81=a293_0x4fe7,_0x227a8d=getTemplateBaseUrl();return _0x227a8d+_0x35bf81(0x1c9);}const CACHE_DIR=join(homedir(),a293_0x4396ee(0x1c1),'cache');export async function fetchGuidesFromCDN(){const _0x29c7a2=a293_0x4396ee,_0x16115b=getGuidesCdnUrl(),_0x199b13=await fetch(_0x16115b,{'headers':{'Accept':_0x29c7a2(0x1d7)}});if(!_0x199b13['ok'])throw new Error(_0x29c7a2(0x1c5)+_0x199b13[_0x29c7a2(0x1d3)]+'\x20'+_0x199b13[_0x29c7a2(0x1cc)]);const _0x156c95=await _0x199b13[_0x29c7a2(0x1b5)]();if(!_0x156c95[_0x29c7a2(0x1b3)]||typeof _0x156c95['guides']!==_0x29c7a2(0x1d0))throw new Error('CDN\x20returned\x20invalid\x20data');return _0x156c95;}export function writeGuidesToProject(_0x46beb4,_0x77e3d9,_0x2e0c4d=a293_0x4396ee(0x1be),_0x29b0b7){const _0x4bef71=a293_0x4396ee,_0x49225c=join(_0x77e3d9,_0x2e0c4d);mkdirSync(_0x49225c,{'recursive':!![]});for(const [_0x297549,_0x3b83c1]of Object[_0x4bef71(0x1d1)](_0x46beb4['guides'])){let _0x3bc5cd=_0x3b83c1[_0x4bef71(0x1d6)];_0x3b83c1[_0x4bef71(0x1c2)]&&(_0x3bc5cd=appendUpdateTime(_0x3bc5cd,_0x3b83c1[_0x4bef71(0x1c2)])),writeFileSync(join(_0x49225c,_0x297549+'.md'),_0x3bc5cd,_0x4bef71(0x1d5));}}export function appendUpdateTime(_0x562c5d,_0x25ac5e){const _0x4d4e40=a293_0x4396ee;return _0x562c5d=_0x562c5d[_0x4d4e40(0x1ba)](/\n*>更新时间:.*$/m,''),_0x562c5d[_0x4d4e40(0x1b7)]()+(_0x4d4e40(0x1b6)+_0x25ac5e);}export function getSkillTemplate(_0x337a48){const _0x5c2d94=a293_0x4396ee;return _0x337a48[_0x5c2d94(0x1d4)]?.[_0x5c2d94(0x1d6)]||'';}export function appendExtendContents(_0x182442,_0x5621b0,_0x9bee42){const _0x9e186e=a293_0x4396ee,_0x18831b=[];for(const [,_0x47a03d]of Object[_0x9e186e(0x1d1)](_0x5621b0[_0x9e186e(0x1b3)])){_0x47a03d[_0x9e186e(0x1bf)]&&_0x18831b[_0x9e186e(0x1c4)](_0x47a03d[_0x9e186e(0x1bf)][_0x9e186e(0x1b7)]());}if(_0x18831b[_0x9e186e(0x1ce)]===0x0)return _0x182442;return _0x182442[_0x9e186e(0x1b7)]()+'\x0a\x0a'+_0x18831b['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x163a0f,_0x452427,_0x32547d){const _0xc24580=a293_0x4396ee,_0x458e62=getSkillTemplate(_0x163a0f);if(!_0x458e62)throw new Error(_0xc24580(0x1cb));const _0x1cebb5=dirname(_0x452427);mkdirSync(_0x1cebb5,{'recursive':!![]});let _0x257dfa=_0x458e62[_0xc24580(0x1ba)](/\{\{IDE_NAME\}\}/g,_0x32547d);_0x257dfa=appendExtendContents(_0x257dfa,_0x163a0f),_0x163a0f[_0xc24580(0x1d4)][_0xc24580(0x1c2)]&&(_0x257dfa=appendUpdateTime(_0x257dfa,_0x163a0f[_0xc24580(0x1d4)][_0xc24580(0x1c2)])),writeFileSync(_0x452427,_0x257dfa,_0xc24580(0x1d5));}export async function installGuides(_0x526cb9){const _0x3f02e1=a293_0x4396ee,_0x5d4412=await fetchGuidesFromCDN();return writeGuidesToProject(_0x5d4412,_0x526cb9),Object[_0x3f02e1(0x1d2)](_0x5d4412[_0x3f02e1(0x1b3)])[_0x3f02e1(0x1ce)];}function a293_0x2dc9(){const _0x4fe76d=['statusText','2440572YrbxAU','length','title','object','entries','keys','status','skillTemplate','utf-8','content','application/json','guides','3651264JzGqnw','json','\x0a\x0a>更新时间:','trimEnd','270675ZsJkSW','96712eeIpPo','replace','4wjyBlc','11524392jBtokB','1HMuASC','.lovrabet/skill/guides','extendContent','2180398HsCxCl','.lovrabet','lastUpdated','3137854ooNopg','push','CDN\x20request\x20failed:\x20','30BBfsZq','map','392aprwHb','/skills/guides.json','path','CDN\x20data\x20is\x20missing\x20skillTemplate'];a293_0x2dc9=function(){return _0x4fe76d;};return a293_0x2dc9();}export function getGuidesSummary(_0x175112){const _0x32dabd=a293_0x4396ee;return Object['entries'](_0x175112['guides'])[_0x32dabd(0x1c7)](([_0x17cb3e,_0x568f1e])=>({'key':_0x17cb3e,'title':_0x568f1e[_0x32dabd(0x1cf)],'path':_0x568f1e[_0x32dabd(0x1ca)]}));}
1
+ const a301_0x51b350=a301_0x5015;(function(_0xd591dd,_0x3382cb){const _0x486501=a301_0x5015,_0x404996=_0xd591dd();while(!![]){try{const _0x100d80=parseInt(_0x486501(0xc6))/0x1+-parseInt(_0x486501(0xb8))/0x2*(-parseInt(_0x486501(0xc3))/0x3)+-parseInt(_0x486501(0xb6))/0x4+-parseInt(_0x486501(0xc9))/0x5+-parseInt(_0x486501(0xcc))/0x6+-parseInt(_0x486501(0xc1))/0x7*(-parseInt(_0x486501(0xc4))/0x8)+-parseInt(_0x486501(0xb2))/0x9;if(_0x100d80===_0x3382cb)break;else _0x404996['push'](_0x404996['shift']());}catch(_0xf6487d){_0x404996['push'](_0x404996['shift']());}}}(a301_0x46f6,0x60cd5));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 _0x4c0f64=getTemplateBaseUrl();return _0x4c0f64+'/skills/guides.json';}function a301_0x46f6(){const _0x538ea5=['utf-8','cache','343674QexFgH','.lovrabet','title','\x0a\x0a>更新时间:','2006032QpYLyl','lastUpdated','2XgKxpd','.lovrabet/skill/guides','entries','CDN\x20returned\x20invalid\x20data','CDN\x20data\x20is\x20missing\x20skillTemplate','path','join','status','replace','973FOOJau','skillTemplate','2054775tdrPdQ','33624CHTyCq','keys','451305JJuGfM','guides','application/json','341875xjXmgm','length','trimEnd','4295262YgExxN','extendContent','CDN\x20request\x20failed:\x20','push','.md','content'];a301_0x46f6=function(){return _0x538ea5;};return a301_0x46f6();}const CACHE_DIR=join(homedir(),a301_0x51b350(0xb3),a301_0x51b350(0xb1));function a301_0x5015(_0x43ef58,_0x9d7409){_0x43ef58=_0x43ef58-0xac;const _0x46f6ed=a301_0x46f6();let _0x5015bf=_0x46f6ed[_0x43ef58];return _0x5015bf;}export async function fetchGuidesFromCDN(){const _0x59139a=a301_0x51b350,_0x4c80a4=getGuidesCdnUrl(),_0x3aa02e=await fetch(_0x4c80a4,{'headers':{'Accept':_0x59139a(0xc8)}});if(!_0x3aa02e['ok'])throw new Error(_0x59139a(0xac)+_0x3aa02e[_0x59139a(0xbf)]+'\x20'+_0x3aa02e['statusText']);const _0xf56562=await _0x3aa02e['json']();if(!_0xf56562[_0x59139a(0xc7)]||typeof _0xf56562[_0x59139a(0xc7)]!=='object')throw new Error(_0x59139a(0xbb));return _0xf56562;}export function writeGuidesToProject(_0x18d5a3,_0x18e2fb,_0x5f3f06=a301_0x51b350(0xb9),_0x3b0e19){const _0x2ce98f=a301_0x51b350,_0x2ec363=join(_0x18e2fb,_0x5f3f06);mkdirSync(_0x2ec363,{'recursive':!![]});for(const [_0x5ae219,_0x366e3b]of Object['entries'](_0x18d5a3['guides'])){let _0x3dc572=_0x366e3b[_0x2ce98f(0xaf)];_0x366e3b['lastUpdated']&&(_0x3dc572=appendUpdateTime(_0x3dc572,_0x366e3b['lastUpdated'])),writeFileSync(join(_0x2ec363,_0x5ae219+_0x2ce98f(0xae)),_0x3dc572,'utf-8');}}export function appendUpdateTime(_0x3fbb0f,_0x6acdd2){const _0x32eaac=a301_0x51b350;return _0x3fbb0f=_0x3fbb0f[_0x32eaac(0xc0)](/\n*>更新时间:.*$/m,''),_0x3fbb0f[_0x32eaac(0xcb)]()+(_0x32eaac(0xb5)+_0x6acdd2);}export function getSkillTemplate(_0x174690){const _0x1c7885=a301_0x51b350;return _0x174690['skillTemplate']?.[_0x1c7885(0xaf)]||'';}export function appendExtendContents(_0x25bdb9,_0xe0ee5f,_0x4280a9){const _0x245f08=a301_0x51b350,_0x459f64=[];for(const [,_0x14ca21]of Object[_0x245f08(0xba)](_0xe0ee5f[_0x245f08(0xc7)])){_0x14ca21['extendContent']&&_0x459f64[_0x245f08(0xad)](_0x14ca21[_0x245f08(0xcd)][_0x245f08(0xcb)]());}if(_0x459f64['length']===0x0)return _0x25bdb9;return _0x25bdb9[_0x245f08(0xcb)]()+'\x0a\x0a'+_0x459f64[_0x245f08(0xbe)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x11e877,_0x4462cd,_0x457095){const _0x249d19=a301_0x51b350,_0x10ecf0=getSkillTemplate(_0x11e877);if(!_0x10ecf0)throw new Error(_0x249d19(0xbc));const _0x31457b=dirname(_0x4462cd);mkdirSync(_0x31457b,{'recursive':!![]});let _0x38fd1e=_0x10ecf0[_0x249d19(0xc0)](/\{\{IDE_NAME\}\}/g,_0x457095);_0x38fd1e=appendExtendContents(_0x38fd1e,_0x11e877),_0x11e877[_0x249d19(0xc2)][_0x249d19(0xb7)]&&(_0x38fd1e=appendUpdateTime(_0x38fd1e,_0x11e877[_0x249d19(0xc2)]['lastUpdated'])),writeFileSync(_0x4462cd,_0x38fd1e,_0x249d19(0xb0));}export async function installGuides(_0x51b8ef){const _0x38af68=a301_0x51b350,_0x1a8d7d=await fetchGuidesFromCDN();return writeGuidesToProject(_0x1a8d7d,_0x51b8ef),Object[_0x38af68(0xc5)](_0x1a8d7d['guides'])[_0x38af68(0xca)];}export function getGuidesSummary(_0x4608dd){const _0x296b47=a301_0x51b350;return Object['entries'](_0x4608dd[_0x296b47(0xc7)])['map'](([_0x443b66,_0x679590])=>({'key':_0x443b66,'title':_0x679590[_0x296b47(0xb4)],'path':_0x679590[_0x296b47(0xbd)]}));}
@@ -1 +1 @@
1
- (function(_0x1e57a2,_0x5cd7d3){const _0x177c64=a294_0x31aa,_0x24242f=_0x1e57a2();while(!![]){try{const _0x39dc2c=-parseInt(_0x177c64(0x15f))/0x1+parseInt(_0x177c64(0x165))/0x2*(-parseInt(_0x177c64(0x159))/0x3)+parseInt(_0x177c64(0x15b))/0x4*(parseInt(_0x177c64(0x156))/0x5)+-parseInt(_0x177c64(0x152))/0x6+-parseInt(_0x177c64(0x16a))/0x7*(parseInt(_0x177c64(0x158))/0x8)+parseInt(_0x177c64(0x157))/0x9*(-parseInt(_0x177c64(0x16b))/0xa)+parseInt(_0x177c64(0x161))/0xb;if(_0x39dc2c===_0x5cd7d3)break;else _0x24242f['push'](_0x24242f['shift']());}catch(_0x7d8d75){_0x24242f['push'](_0x24242f['shift']());}}}(a294_0x22b9,0x71cb6));function a294_0x22b9(){const _0x5b23db=['Request\x20failed','ECONNRESET','headers','617515pdxzfT','180nCBxKs','8iOxqaX','93NokXwp','statusText','4pfiKUw','text','content-type','*\x20Request\x20failed;\x20retry\x20','670799HCMsam','ENOTFOUND','31267005ofoKAO','signal','json','AbortError','19290cbBuUQ','includes','message','url','name','3070935vWwADt','313070cUxpPI','status','2791302GquAfB'];a294_0x22b9=function(){return _0x5b23db;};return a294_0x22b9();}export async function httpRequest(_0x134cd1,_0x4da179={}){const _0x5bce4e=a294_0x31aa,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x4da179;let _0x5112cf=null;for(let _0x37c305=0x0;_0x37c305<=retries;_0x37c305++){try{const _0x41a6d9=new AbortController(),_0x1dd800=setTimeout(()=>_0x41a6d9['abort'](),timeout),_0xbbb4dc=await fetch(_0x134cd1,{'headers':headers,'signal':_0x41a6d9[_0x5bce4e(0x162)]});clearTimeout(_0x1dd800);let _0x50ede8;const _0x14306c=_0xbbb4dc['headers']['get'](_0x5bce4e(0x15d));return _0x14306c?.[_0x5bce4e(0x166)]('application/json')?_0x50ede8=await _0xbbb4dc[_0x5bce4e(0x163)]():_0x50ede8=await _0xbbb4dc[_0x5bce4e(0x15c)](),{'ok':_0xbbb4dc['ok'],'status':_0xbbb4dc[_0x5bce4e(0x16c)],'statusText':_0xbbb4dc[_0x5bce4e(0x15a)],'data':_0x50ede8,'headers':_0xbbb4dc[_0x5bce4e(0x155)],'url':_0xbbb4dc[_0x5bce4e(0x168)],'text':()=>_0xbbb4dc[_0x5bce4e(0x15c)]()};}catch(_0x4cf97b){_0x5112cf=_0x4cf97b instanceof Error?_0x4cf97b:new Error(String(_0x4cf97b));if(_0x37c305===retries)break;if(shouldRetry(_0x4cf97b)){console['log'](_0x5bce4e(0x15e)+(_0x37c305+0x1)+'\x20in\x20'+retryDelay+'ms...'),await sleep(retryDelay);continue;}else break;}}throw _0x5112cf||new Error(_0x5bce4e(0x153));}function shouldRetry(_0x5ea290){const _0x34d007=a294_0x31aa;if(_0x5ea290 instanceof Error){if(_0x5ea290[_0x34d007(0x169)]===_0x34d007(0x164))return![];if(_0x5ea290[_0x34d007(0x169)]==='TypeError'&&_0x5ea290[_0x34d007(0x167)][_0x34d007(0x166)]('fetch'))return!![];if(_0x5ea290[_0x34d007(0x167)]['includes'](_0x34d007(0x154)))return!![];if(_0x5ea290[_0x34d007(0x167)]['includes'](_0x34d007(0x160)))return![];}return![];}function a294_0x31aa(_0x30c8dd,_0xa61e18){_0x30c8dd=_0x30c8dd-0x152;const _0x22b96b=a294_0x22b9();let _0x31aa8f=_0x22b96b[_0x30c8dd];return _0x31aa8f;}function sleep(_0x314ee3){return new Promise(_0x5477fc=>setTimeout(_0x5477fc,_0x314ee3));}export function validateUrl(_0x1a6dbb){try{return new URL(_0x1a6dbb),!![];}catch{return![];}}
1
+ function a302_0x1ad7(_0x102171,_0x3685f6){_0x102171=_0x102171-0x10f;const _0x2fe136=a302_0x2fe1();let _0x1ad773=_0x2fe136[_0x102171];return _0x1ad773;}(function(_0x2da4cc,_0x4172c6){const _0x559ee5=a302_0x1ad7,_0x1d4d4f=_0x2da4cc();while(!![]){try{const _0x368405=-parseInt(_0x559ee5(0x126))/0x1*(parseInt(_0x559ee5(0x128))/0x2)+-parseInt(_0x559ee5(0x120))/0x3*(parseInt(_0x559ee5(0x112))/0x4)+parseInt(_0x559ee5(0x11a))/0x5*(-parseInt(_0x559ee5(0x11e))/0x6)+-parseInt(_0x559ee5(0x127))/0x7+-parseInt(_0x559ee5(0x125))/0x8+parseInt(_0x559ee5(0x11c))/0x9+-parseInt(_0x559ee5(0x12b))/0xa*(-parseInt(_0x559ee5(0x117))/0xb);if(_0x368405===_0x4172c6)break;else _0x1d4d4f['push'](_0x1d4d4f['shift']());}catch(_0x49f220){_0x1d4d4f['push'](_0x1d4d4f['shift']());}}}(a302_0x2fe1,0xa4249));export async function httpRequest(_0x3afb4d,_0x5e6e2e={}){const _0x4ae266=a302_0x1ad7,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x5e6e2e;let _0x61aac1=null;for(let _0x1b86dc=0x0;_0x1b86dc<=retries;_0x1b86dc++){try{const _0x4e02f1=new AbortController(),_0x3c151d=setTimeout(()=>_0x4e02f1[_0x4ae266(0x124)](),timeout),_0x707454=await fetch(_0x3afb4d,{'headers':headers,'signal':_0x4e02f1['signal']});clearTimeout(_0x3c151d);let _0x4ed49a;const _0x276f56=_0x707454[_0x4ae266(0x110)]['get'](_0x4ae266(0x116));return _0x276f56?.['includes'](_0x4ae266(0x114))?_0x4ed49a=await _0x707454['json']():_0x4ed49a=await _0x707454[_0x4ae266(0x119)](),{'ok':_0x707454['ok'],'status':_0x707454[_0x4ae266(0x123)],'statusText':_0x707454['statusText'],'data':_0x4ed49a,'headers':_0x707454[_0x4ae266(0x110)],'url':_0x707454[_0x4ae266(0x121)],'text':()=>_0x707454[_0x4ae266(0x119)]()};}catch(_0x235607){_0x61aac1=_0x235607 instanceof Error?_0x235607:new Error(String(_0x235607));if(_0x1b86dc===retries)break;if(shouldRetry(_0x235607)){console['log'](_0x4ae266(0x122)+(_0x1b86dc+0x1)+_0x4ae266(0x111)+retryDelay+_0x4ae266(0x11b)),await sleep(retryDelay);continue;}else break;}}throw _0x61aac1||new Error(_0x4ae266(0x113));}function shouldRetry(_0x11d77c){const _0x1ac238=a302_0x1ad7;if(_0x11d77c instanceof Error){if(_0x11d77c['name']===_0x1ac238(0x129))return![];if(_0x11d77c[_0x1ac238(0x11f)]===_0x1ac238(0x118)&&_0x11d77c['message'][_0x1ac238(0x12a)](_0x1ac238(0x11d)))return!![];if(_0x11d77c['message'][_0x1ac238(0x12a)](_0x1ac238(0x115)))return!![];if(_0x11d77c[_0x1ac238(0x10f)][_0x1ac238(0x12a)]('ENOTFOUND'))return![];}return![];}function sleep(_0x9e467){return new Promise(_0x59143f=>setTimeout(_0x59143f,_0x9e467));}export function validateUrl(_0x456edc){try{return new URL(_0x456edc),!![];}catch{return![];}}function a302_0x2fe1(){const _0x182430=['status','abort','2642104aZeyNE','7dMfWNK','2812187OkecSO','112414HRfzgG','AbortError','includes','17675510tLzHnM','message','headers','\x20in\x20','1366392qJAjRL','Request\x20failed','application/json','ECONNRESET','content-type','11VmuOyK','TypeError','text','15SjbUbU','ms...','8458236dNwbLv','fetch','1135950hrIYfW','name','3lLuGiq','url','*\x20Request\x20failed;\x20retry\x20'];a302_0x2fe1=function(){return _0x182430;};return a302_0x2fe1();}
@@ -1 +1 @@
1
- (function(_0x3c47bd,_0x3da70f){const _0x6f5e35=a295_0x54ef,_0x3607f1=_0x3c47bd();while(!![]){try{const _0x3305fc=-parseInt(_0x6f5e35(0x14b))/0x1*(parseInt(_0x6f5e35(0x14d))/0x2)+parseInt(_0x6f5e35(0x150))/0x3+parseInt(_0x6f5e35(0x14f))/0x4+-parseInt(_0x6f5e35(0x149))/0x5*(parseInt(_0x6f5e35(0x147))/0x6)+-parseInt(_0x6f5e35(0x152))/0x7*(parseInt(_0x6f5e35(0x14a))/0x8)+-parseInt(_0x6f5e35(0x151))/0x9*(-parseInt(_0x6f5e35(0x146))/0xa)+parseInt(_0x6f5e35(0x154))/0xb;if(_0x3305fc===_0x3da70f)break;else _0x3607f1['push'](_0x3607f1['shift']());}catch(_0x34efc1){_0x3607f1['push'](_0x3607f1['shift']());}}}(a295_0x15e9,0xc1eaa));function a295_0x15e9(){const _0x2a56f7=['stdout','305DNQJfm','808EAPMZy','224780QfpUUU','nonInteractive','2WHaBBT','isRaw','2521116OOFzHH','1520565BCahBx','1516572zJuKrk','12579JmstMJ','true','517858VHqalL','isTTY','setRawMode','70DmMTRy','114414xTMjCZ'];a295_0x15e9=function(){return _0x2a56f7;};return a295_0x15e9();}function a295_0x54ef(_0x554602,_0x4e0297){_0x554602=_0x554602-0x145;const _0x15e9fe=a295_0x15e9();let _0x54efbb=_0x15e9fe[_0x554602];return _0x54efbb;}function env(_0x1de2b2){return process.env[`RABETBASE_${_0x1de2b2}`]||process.env[`LOVRABET_${_0x1de2b2}`]||undefined;}export function isNonInteractive(_0x38802f){const _0x2366c0=a295_0x54ef;return!!(_0x38802f[_0x2366c0(0x14c)]||_0x38802f['ci']||env('CI')===_0x2366c0(0x153)||process.env.CI===_0x2366c0(0x153)||!process[_0x2366c0(0x148)][_0x2366c0(0x155)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x4acfa7=a295_0x54ef;if(!process['stdin'][_0x4acfa7(0x155)])return![];try{const _0x2f1030=process['stdin'][_0x4acfa7(0x14e)];return process['stdin']['setRawMode'](!![]),process['stdin'][_0x4acfa7(0x145)](_0x2f1030??![]),!![];}catch{return![];}}
1
+ (function(_0x5af2cd,_0x6fb5aa){const _0x573bcf=a303_0x4e72,_0xf4cc6=_0x5af2cd();while(!![]){try{const _0x4a2d0c=parseInt(_0x573bcf(0x168))/0x1+parseInt(_0x573bcf(0x166))/0x2*(-parseInt(_0x573bcf(0x163))/0x3)+-parseInt(_0x573bcf(0x16a))/0x4+parseInt(_0x573bcf(0x16d))/0x5*(parseInt(_0x573bcf(0x161))/0x6)+-parseInt(_0x573bcf(0x165))/0x7*(-parseInt(_0x573bcf(0x169))/0x8)+parseInt(_0x573bcf(0x16b))/0x9+-parseInt(_0x573bcf(0x162))/0xa*(parseInt(_0x573bcf(0x164))/0xb);if(_0x4a2d0c===_0x6fb5aa)break;else _0xf4cc6['push'](_0xf4cc6['shift']());}catch(_0x89e10f){_0xf4cc6['push'](_0xf4cc6['shift']());}}}(a303_0x2f11,0x6e8a1));function a303_0x2f11(){const _0x2d4ad1=['14898atcNzB','9188290WUxtMf','3wFSTfP','11DtKlhs','70fgyrVT','780242HQpcOC','setRawMode','268733eifTBJ','267272UklWpb','182232kienSs','4985172KQzQZR','stdout','1310FItFLK','true'];a303_0x2f11=function(){return _0x2d4ad1;};return a303_0x2f11();}function a303_0x4e72(_0x33c5b4,_0x13a3b6){_0x33c5b4=_0x33c5b4-0x161;const _0x2f1197=a303_0x2f11();let _0x4e7248=_0x2f1197[_0x33c5b4];return _0x4e7248;}function env(_0x2f4382){return process.env[`RABETBASE_${_0x2f4382}`]||process.env[`LOVRABET_${_0x2f4382}`]||undefined;}export function isNonInteractive(_0x5dcded){const _0x1de830=a303_0x4e72;return!!(_0x5dcded['nonInteractive']||_0x5dcded['ci']||env('CI')===_0x1de830(0x16e)||process.env.CI===_0x1de830(0x16e)||!process[_0x1de830(0x16c)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x2c4a3a=a303_0x4e72;if(!process['stdin']['isTTY'])return![];try{const _0x5700cb=process['stdin']['isRaw'];return process['stdin'][_0x2c4a3a(0x167)](!![]),process['stdin']['setRawMode'](_0x5700cb??![]),!![];}catch{return![];}}