@lovrabet/rabetbase-cli 2.5.2-beta.1 → 2.5.2-beta.3

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 (348) hide show
  1. package/README.md +1 -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.js +1 -1
  6. package/lib/auth/auth-server-ui.js +1 -1
  7. package/lib/auth/auth-server.js +1 -1
  8. package/lib/auth/constant.js +1 -1
  9. package/lib/auth/get-cookie.js +1 -1
  10. package/lib/auth/get-session-user.js +1 -1
  11. package/lib/auth/is-session-valid.js +1 -1
  12. package/lib/auth/login-success-html.js +1 -1
  13. package/lib/auth/logout.js +1 -1
  14. package/lib/cli-flags.js +1 -1
  15. package/lib/cli.js +1 -1
  16. package/lib/commands/api/generate.js +1 -1
  17. package/lib/commands/api/index.js +1 -1
  18. package/lib/commands/api/list.js +1 -1
  19. package/lib/commands/api/pull.js +1 -1
  20. package/lib/commands/api/shared.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/members-list.js +1 -1
  24. package/lib/commands/app/remote-directory.js +1 -1
  25. package/lib/commands/app/shared.d.ts +1 -0
  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.js +1 -1
  52. package/lib/commands/common/local-file.js +1 -1
  53. package/lib/commands/common/validate.js +1 -1
  54. package/lib/commands/config/delete.js +1 -1
  55. package/lib/commands/config/get.js +1 -1
  56. package/lib/commands/config/index.js +1 -1
  57. package/lib/commands/config/init.js +1 -1
  58. package/lib/commands/config/list.js +1 -1
  59. package/lib/commands/config/set.js +1 -1
  60. package/lib/commands/config/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/business-groups.js +1 -1
  63. package/lib/commands/dataset/capability.js +1 -1
  64. package/lib/commands/dataset/delete.js +1 -1
  65. package/lib/commands/dataset/detail.js +1 -1
  66. package/lib/commands/dataset/extend-update.js +1 -1
  67. package/lib/commands/dataset/field-restore.js +1 -1
  68. package/lib/commands/dataset/field-update.js +1 -1
  69. package/lib/commands/dataset/generate.js +1 -1
  70. package/lib/commands/dataset/index.js +1 -1
  71. package/lib/commands/dataset/list.js +1 -1
  72. package/lib/commands/dataset/operations.js +1 -1
  73. package/lib/commands/dataset/relation-audit.js +1 -1
  74. package/lib/commands/dataset/relation-create.js +1 -1
  75. package/lib/commands/dataset/relation-delete.js +1 -1
  76. package/lib/commands/dataset/relation-shared.js +1 -1
  77. package/lib/commands/dataset/relation-update.js +1 -1
  78. package/lib/commands/dataset/relations.js +1 -1
  79. package/lib/commands/dataset/rename.js +1 -1
  80. package/lib/commands/dataset/restore.js +1 -1
  81. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  82. package/lib/commands/db/analysis-batching.js +1 -1
  83. package/lib/commands/db/analyze-batch-plan.js +1 -1
  84. package/lib/commands/db/analyze-cancel.js +1 -1
  85. package/lib/commands/db/analyze-start.js +1 -1
  86. package/lib/commands/db/analyze-status.js +1 -1
  87. package/lib/commands/db/create.js +1 -1
  88. package/lib/commands/db/delete.js +1 -1
  89. package/lib/commands/db/detail.js +1 -1
  90. package/lib/commands/db/diff-refresh-start.js +1 -1
  91. package/lib/commands/db/diff-refresh-status.js +1 -1
  92. package/lib/commands/db/diff.js +1 -1
  93. package/lib/commands/db/index.js +1 -1
  94. package/lib/commands/db/list.js +1 -1
  95. package/lib/commands/db/shared.js +1 -1
  96. package/lib/commands/db/table-diff-shared.js +1 -1
  97. package/lib/commands/db/tables.js +1 -1
  98. package/lib/commands/db/test.js +1 -1
  99. package/lib/commands/db/update.js +1 -1
  100. package/lib/commands/deployment/auto-sync.js +1 -1
  101. package/lib/commands/deployment/index.js +1 -1
  102. package/lib/commands/deployment/sync-all.d.ts +2 -0
  103. package/lib/commands/deployment/sync-all.js +1 -0
  104. package/lib/commands/deployment/sync-jobs.d.ts +2 -0
  105. package/lib/commands/deployment/sync-jobs.js +1 -0
  106. package/lib/commands/deployment/sync-status.d.ts +2 -0
  107. package/lib/commands/deployment/sync-status.js +1 -0
  108. package/lib/commands/deployment/sync.js +1 -1
  109. package/lib/commands/doctor.js +1 -1
  110. package/lib/commands/file/index.js +1 -1
  111. package/lib/commands/instant-api-policy/current.d.ts +2 -0
  112. package/lib/commands/instant-api-policy/current.js +1 -0
  113. package/lib/commands/instant-api-policy/index.d.ts +2 -0
  114. package/lib/commands/instant-api-policy/index.js +1 -0
  115. package/lib/commands/instant-api-policy/init.d.ts +2 -0
  116. package/lib/commands/instant-api-policy/init.js +1 -0
  117. package/lib/commands/instant-api-policy/publish.d.ts +2 -0
  118. package/lib/commands/instant-api-policy/publish.js +1 -0
  119. package/lib/commands/instant-api-policy/pull.d.ts +2 -0
  120. package/lib/commands/instant-api-policy/pull.js +1 -0
  121. package/lib/commands/instant-api-policy/revision.d.ts +2 -0
  122. package/lib/commands/instant-api-policy/revision.js +1 -0
  123. package/lib/commands/instant-api-policy/revisions.d.ts +2 -0
  124. package/lib/commands/instant-api-policy/revisions.js +1 -0
  125. package/lib/commands/instant-api-policy/rollback.d.ts +2 -0
  126. package/lib/commands/instant-api-policy/rollback.js +1 -0
  127. package/lib/commands/instant-api-policy/shared.d.ts +82 -0
  128. package/lib/commands/instant-api-policy/shared.js +1 -0
  129. package/lib/commands/instant-api-policy/validate.d.ts +2 -0
  130. package/lib/commands/instant-api-policy/validate.js +1 -0
  131. package/lib/commands/issue/index.js +1 -1
  132. package/lib/commands/issue/nudge.js +1 -1
  133. package/lib/commands/issue/report.js +1 -1
  134. package/lib/commands/issue/shared.js +1 -1
  135. package/lib/commands/kb/create.js +1 -1
  136. package/lib/commands/kb/delete.js +1 -1
  137. package/lib/commands/kb/detail.js +1 -1
  138. package/lib/commands/kb/index.js +1 -1
  139. package/lib/commands/kb/list.js +1 -1
  140. package/lib/commands/kb/search.js +1 -1
  141. package/lib/commands/kb/shared.js +1 -1
  142. package/lib/commands/kb/update.js +1 -1
  143. package/lib/commands/logs/index.js +1 -1
  144. package/lib/commands/menu/asset-update.js +1 -1
  145. package/lib/commands/menu/delete.js +1 -1
  146. package/lib/commands/menu/external-link-create.js +1 -1
  147. package/lib/commands/menu/external-link-update.js +1 -1
  148. package/lib/commands/menu/group-create.js +1 -1
  149. package/lib/commands/menu/group-update.js +1 -1
  150. package/lib/commands/menu/index.js +1 -1
  151. package/lib/commands/menu/list.js +1 -1
  152. package/lib/commands/menu/move.js +1 -1
  153. package/lib/commands/menu/regroup-start.js +1 -1
  154. package/lib/commands/menu/rename.js +1 -1
  155. package/lib/commands/menu/shared/compare-table.js +1 -1
  156. package/lib/commands/menu/shared/delete-plan.js +1 -1
  157. package/lib/commands/menu/shared/facts.js +1 -1
  158. package/lib/commands/menu/shared/index.js +1 -1
  159. package/lib/commands/menu/shared/inquirer.js +1 -1
  160. package/lib/commands/menu/shared/local-pages.js +1 -1
  161. package/lib/commands/menu/shared/logic.js +1 -1
  162. package/lib/commands/menu/shared/mutations.js +1 -1
  163. package/lib/commands/menu/shared/service.js +1 -1
  164. package/lib/commands/menu/shared/sync-core.js +1 -1
  165. package/lib/commands/menu/shared/update-core.js +1 -1
  166. package/lib/commands/menu/shared/valid-url.js +1 -1
  167. package/lib/commands/menu/sync.js +1 -1
  168. package/lib/commands/menu/visibility-update.js +1 -1
  169. package/lib/commands/notification/config-create.js +1 -1
  170. package/lib/commands/notification/config-delete.js +1 -1
  171. package/lib/commands/notification/config-list.js +1 -1
  172. package/lib/commands/notification/config-update.js +1 -1
  173. package/lib/commands/notification/index.js +1 -1
  174. package/lib/commands/notification/shared.js +1 -1
  175. package/lib/commands/ocr/index.js +1 -1
  176. package/lib/commands/page/create.js +1 -1
  177. package/lib/commands/page/custom/detail.js +1 -1
  178. package/lib/commands/page/custom/list.js +1 -1
  179. package/lib/commands/page/custom/publish.js +1 -1
  180. package/lib/commands/page/custom/shared.js +1 -1
  181. package/lib/commands/page/custom/syntax.js +1 -1
  182. package/lib/commands/page/custom/template.js +1 -1
  183. package/lib/commands/page/custom/update.js +1 -1
  184. package/lib/commands/page/data-list-status.js +1 -1
  185. package/lib/commands/page/generate-start.js +1 -1
  186. package/lib/commands/page/generate-status.js +1 -1
  187. package/lib/commands/page/index.js +1 -1
  188. package/lib/commands/page/pull.js +1 -1
  189. package/lib/commands/page/push.js +1 -1
  190. package/lib/commands/page/relation-audit.js +1 -1
  191. package/lib/commands/page/restore.js +1 -1
  192. package/lib/commands/page/shared.js +1 -1
  193. package/lib/commands/page/sync.js +1 -1
  194. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  195. package/lib/commands/project/create/format-elapsed.js +1 -1
  196. package/lib/commands/project/create/main.js +1 -1
  197. package/lib/commands/project/create/materialize-project-template.js +1 -1
  198. package/lib/commands/project/create/project-name.js +1 -1
  199. package/lib/commands/project/create/project-template-archive.js +1 -1
  200. package/lib/commands/project/create/project-template-path.js +1 -1
  201. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  202. package/lib/commands/project/create/use-format-code.js +1 -1
  203. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  204. package/lib/commands/project/domain-routing-sync.js +1 -1
  205. package/lib/commands/project/index.js +1 -1
  206. package/lib/commands/project/upgrade.js +1 -1
  207. package/lib/commands/registry.js +1 -1
  208. package/lib/commands/role/delete.js +1 -1
  209. package/lib/commands/role/detail.js +1 -1
  210. package/lib/commands/role/index.js +1 -1
  211. package/lib/commands/role/list.js +1 -1
  212. package/lib/commands/role/shared.js +1 -1
  213. package/lib/commands/role/update.js +1 -1
  214. package/lib/commands/role/user-add.js +1 -1
  215. package/lib/commands/role/user-remove.js +1 -1
  216. package/lib/commands/role/user-resolve.js +1 -1
  217. package/lib/commands/rule/get.js +1 -1
  218. package/lib/commands/rule/index.js +1 -1
  219. package/lib/commands/rule/list.js +1 -1
  220. package/lib/commands/rule/set.js +1 -1
  221. package/lib/commands/rule/shared.js +1 -1
  222. package/lib/commands/run/index.js +1 -1
  223. package/lib/commands/schema.js +1 -1
  224. package/lib/commands/sql/create.js +1 -1
  225. package/lib/commands/sql/delete.js +1 -1
  226. package/lib/commands/sql/detail.js +1 -1
  227. package/lib/commands/sql/exec.js +1 -1
  228. package/lib/commands/sql/index.js +1 -1
  229. package/lib/commands/sql/list.js +1 -1
  230. package/lib/commands/sql/pull.js +1 -1
  231. package/lib/commands/sql/push.js +1 -1
  232. package/lib/commands/sql/shared.js +1 -1
  233. package/lib/commands/sql/status.js +1 -1
  234. package/lib/commands/sql/validate.js +1 -1
  235. package/lib/commands/task/index.js +1 -1
  236. package/lib/commands/task/status.js +1 -1
  237. package/lib/commands/tenant/index.js +1 -1
  238. package/lib/commands/tenant/members-list.js +1 -1
  239. package/lib/commands/tenant/shared.js +1 -1
  240. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  241. package/lib/commands/user-account/index.js +1 -1
  242. package/lib/commands/workspace/add.js +1 -1
  243. package/lib/commands/workspace/index.js +1 -1
  244. package/lib/commands/workspace/remove.js +1 -1
  245. package/lib/config/domain-config.d.ts +3 -7
  246. package/lib/config/domain-config.js +1 -1
  247. package/lib/config/project-domain-routing.js +1 -1
  248. package/lib/config/schema.js +1 -1
  249. package/lib/constant/cdn.js +1 -1
  250. package/lib/constant/cli.js +1 -1
  251. package/lib/constant/defaults.js +1 -1
  252. package/lib/constant/domain.js +1 -1
  253. package/lib/constant/env.js +1 -1
  254. package/lib/constant/output.js +1 -1
  255. package/lib/constant/paths.js +1 -1
  256. package/lib/constant/region.js +1 -1
  257. package/lib/constant/risk.js +1 -1
  258. package/lib/constant/routing-profile.js +1 -1
  259. package/lib/context/app-resolver.js +1 -1
  260. package/lib/context/auth-resolver.js +1 -1
  261. package/lib/context/config-loader.js +1 -1
  262. package/lib/context.js +1 -1
  263. package/lib/core/alias-resolver.js +1 -1
  264. package/lib/core/api-client.d.ts +114 -0
  265. package/lib/core/api-client.js +1 -1
  266. package/lib/core/bff/config.js +1 -1
  267. package/lib/core/bff/file-system.js +1 -1
  268. package/lib/core/bff/hash.js +1 -1
  269. package/lib/core/bff/lock.js +1 -1
  270. package/lib/core/bff/utils.js +1 -1
  271. package/lib/core/db-resolver.js +1 -1
  272. package/lib/core/instant-api-policy/config.d.ts +23 -0
  273. package/lib/core/instant-api-policy/config.js +1 -0
  274. package/lib/core/kb-search-client.js +1 -1
  275. package/lib/core/page/file-system.js +1 -1
  276. package/lib/core/page/hash.js +1 -1
  277. package/lib/core/page/lock.js +1 -1
  278. package/lib/core/sql-index-auditor.js +1 -1
  279. package/lib/core/sql-sync/config.js +1 -1
  280. package/lib/core/sql-sync/file-system.js +1 -1
  281. package/lib/core/sql-sync/hash.js +1 -1
  282. package/lib/core/sql-sync/lock.js +1 -1
  283. package/lib/core/sql-sync/utils.js +1 -1
  284. package/lib/core/sql-validator.js +1 -1
  285. package/lib/errors.js +1 -1
  286. package/lib/framework/build-all-flags.js +1 -1
  287. package/lib/framework/error-output.js +1 -1
  288. package/lib/framework/explicit-yes.js +1 -1
  289. package/lib/framework/flags.js +1 -1
  290. package/lib/framework/help.js +1 -1
  291. package/lib/framework/index.js +1 -1
  292. package/lib/framework/output.js +1 -1
  293. package/lib/framework/response.js +1 -1
  294. package/lib/framework/runner-alias.js +1 -1
  295. package/lib/framework/runner.js +1 -1
  296. package/lib/framework/schema-export.js +1 -1
  297. package/lib/framework/supported-flags.js +1 -1
  298. package/lib/framework/types.js +1 -1
  299. package/lib/generated/build-info.d.ts +4 -4
  300. package/lib/generated/build-info.js +1 -1
  301. package/lib/generated/official-routing.d.ts +1 -1
  302. package/lib/generated/official-routing.js +1 -1
  303. package/lib/generated/routing-contract.d.ts +1 -3
  304. package/lib/generated/routing-contract.js +1 -1
  305. package/lib/help.js +1 -1
  306. package/lib/postinstall.js +1 -1
  307. package/lib/runtime/confirmation.js +1 -1
  308. package/lib/runtime/event.js +1 -1
  309. package/lib/runtime/index.js +1 -1
  310. package/lib/runtime/queue.js +1 -1
  311. package/lib/runtime/resolve.js +1 -1
  312. package/lib/skills/builtin-skill.js +1 -1
  313. package/lib/skills/main.js +1 -1
  314. package/lib/skills/npx-skills-add.js +1 -1
  315. package/lib/skills/skill-presence.js +1 -1
  316. package/lib/telemetry/cli-command-trace.js +1 -1
  317. package/lib/telemetry/cli-help-trace.js +1 -1
  318. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  319. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  320. package/lib/telemetry/send-cli-trace-log.js +1 -1
  321. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  322. package/lib/utils/ai_config.js +1 -1
  323. package/lib/utils/apply-jq-filter.js +1 -1
  324. package/lib/utils/cdn-config.js +1 -1
  325. package/lib/utils/check-sdk-version.js +1 -1
  326. package/lib/utils/cli-version-check.js +1 -1
  327. package/lib/utils/cli-version-policy.js +1 -1
  328. package/lib/utils/config.js +1 -1
  329. package/lib/utils/entity-with-id.js +1 -1
  330. package/lib/utils/file-utils.js +1 -1
  331. package/lib/utils/guides-cdn.js +1 -1
  332. package/lib/utils/http-client.js +1 -1
  333. package/lib/utils/is-non-interactive.js +1 -1
  334. package/lib/utils/logger.js +1 -1
  335. package/lib/utils/params.js +1 -1
  336. package/lib/utils/platform.js +1 -1
  337. package/lib/utils/sleep.js +1 -1
  338. package/lib/utils/template-replacer.js +1 -1
  339. package/lib/utils/update-notice.js +1 -1
  340. package/lib/utils/version.js +1 -1
  341. package/lib/utils/with-active-cookie.js +1 -1
  342. package/lib/utils/write-cli-side-channel.js +1 -1
  343. package/package.json +1 -1
  344. package/skills/rabetbase/SKILL.md +12 -6
  345. package/skills/rabetbase/references/rabetbase-app-members-list.md +2 -0
  346. package/skills/rabetbase/references/rabetbase-deployment-sync.md +41 -5
  347. package/skills/rabetbase/references/rabetbase-instant-api-policy.md +92 -0
  348. package/skills/rabetbase.manifest.json +4 -3
@@ -1 +1 @@
1
- const a281_0x2e6f11=a281_0x2390;(function(_0x1e0954,_0x1fdac7){const _0x333708=a281_0x2390,_0xbb7a57=_0x1e0954();while(!![]){try{const _0x578843=parseInt(_0x333708(0x124))/0x1+parseInt(_0x333708(0xfc))/0x2+parseInt(_0x333708(0x123))/0x3+parseInt(_0x333708(0x110))/0x4+parseInt(_0x333708(0xfb))/0x5+parseInt(_0x333708(0xf7))/0x6+-parseInt(_0x333708(0x119))/0x7*(parseInt(_0x333708(0x118))/0x8);if(_0x578843===_0x1fdac7)break;else _0xbb7a57['push'](_0xbb7a57['shift']());}catch(_0x345c47){_0xbb7a57['push'](_0xbb7a57['shift']());}}}(a281_0x3d9f,0xa92ec));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND='rabetbase\x20cli-skill\x20install',SKILL_NAME=a281_0x2e6f11(0x107);function frontmatterValue(_0x3de1d8,_0x485896){const _0x52481c=a281_0x2e6f11;return _0x3de1d8[_0x52481c(0x111)](new RegExp('^'+_0x485896+_0x52481c(0xfe),'m'))?.[0x1]?.[_0x52481c(0x108)]()??'';}function listFiles(_0x32ff6f,_0x36b0dc=_0x32ff6f){const _0xf6b478=a281_0x2e6f11;return readdirSync(_0x36b0dc,{'withFileTypes':!![]})[_0xf6b478(0x10b)](_0x2cd258=>{const _0x5191c0=_0xf6b478,_0x4cb3e1=join(_0x36b0dc,_0x2cd258['name']),_0x1746d3=lstatSync(_0x4cb3e1);if(_0x1746d3[_0x5191c0(0xff)]())throw new Error(_0x5191c0(0x122)+_0x4cb3e1);if(_0x1746d3[_0x5191c0(0x12b)]())return listFiles(_0x32ff6f,_0x4cb3e1);if(!_0x1746d3['isFile']())throw new Error(_0x5191c0(0x128)+_0x4cb3e1);return[relative(_0x32ff6f,_0x4cb3e1)[_0x5191c0(0xf5)](sep)['join']('/')];})[_0xf6b478(0x109)]((_0x318a83,_0x28faba)=>_0x318a83<_0x28faba?-0x1:_0x318a83>_0x28faba?0x1:0x0);}function digestFiles(_0x54fca6,_0x589974){const _0x42d52c=a281_0x2e6f11,_0x507188=createHash(_0x42d52c(0x106));for(const _0x5da0bb of _0x589974){if(_0x5da0bb[_0x42d52c(0x11a)]('/')||_0x5da0bb[_0x42d52c(0xf5)]('/')[_0x42d52c(0x102)]('..')||_0x5da0bb['includes']('\x5c'))throw new Error(_0x42d52c(0x121)+_0x5da0bb);_0x507188['update'](_0x5da0bb),_0x507188[_0x42d52c(0x116)]('\x00'),_0x507188[_0x42d52c(0x116)](readFileSync(join(_0x54fca6,..._0x5da0bb[_0x42d52c(0xf5)]('/')))),_0x507188[_0x42d52c(0x116)]('\x00');}return _0x507188[_0x42d52c(0x12d)](_0x42d52c(0xf1));}function a281_0x2390(_0x69a8e6,_0x47e405){_0x69a8e6=_0x69a8e6-0xed;const _0x3d9f8b=a281_0x3d9f();let _0x239045=_0x3d9f8b[_0x69a8e6];return _0x239045;}function sameFiles(_0x5c25d4,_0x832223){const _0xbd5156=a281_0x2e6f11;return _0x5c25d4[_0xbd5156(0x101)]===_0x832223[_0xbd5156(0x101)]&&_0x5c25d4[_0xbd5156(0x120)]((_0x49b881,_0x3f2062)=>_0x49b881===_0x832223[_0x3f2062]);}function readSource(_0x187e76){const _0x4a0fd1=a281_0x2e6f11,_0x5b8486=JSON[_0x4a0fd1(0xf6)](readFileSync(join(_0x187e76,_0x4a0fd1(0x129)),_0x4a0fd1(0xfa))),_0xc590df=JSON[_0x4a0fd1(0xf6)](readFileSync(join(_0x187e76,_0x4a0fd1(0xf2),_0x4a0fd1(0xfd)),_0x4a0fd1(0xfa))),_0x998982=join(_0x187e76,_0x4a0fd1(0xf2),SKILL_NAME),_0x107052=frontmatterValue(readFileSync(join(_0x998982,'SKILL.md'),_0x4a0fd1(0xfa)),'version'),_0x50301d=listFiles(_0x998982);if(_0xc590df[_0x4a0fd1(0xf9)]!==0x1||_0xc590df[_0x4a0fd1(0x114)]!==SKILL_NAME||!_0x5b8486[_0x4a0fd1(0x105)]||_0xc590df['packageVersion']!==_0x5b8486[_0x4a0fd1(0x105)]||_0xc590df[_0x4a0fd1(0x12c)]!==_0x5b8486['version']||_0x107052!==_0x5b8486[_0x4a0fd1(0x105)]||!sameFiles(_0x50301d,_0xc590df['files'])||digestFiles(_0x998982,_0x50301d)!==_0xc590df['digest'])throw new Error(_0x4a0fd1(0x10a));return{'packageVersion':_0x5b8486[_0x4a0fd1(0x105)],'skillVersion':_0x107052,'root':_0x998982,'manifest':_0xc590df};}function installedSkillPath(_0x295aba){const _0x3ed92e=a281_0x2e6f11,_0x577788=resolveInstalledSkill(SKILL_NAME,{'home':_0x295aba});if(_0x577788[_0x3ed92e(0x11f)]==='present')return{'state':_0x3ed92e(0x10e),'path':dirname(_0x577788[_0x3ed92e(0xef)])};if(_0x577788[_0x3ed92e(0x11f)]==='absent')return{'state':_0x3ed92e(0xee)};return{'state':_0x3ed92e(0xf0),'reason':_0x577788[_0x3ed92e(0xf4)]};}export function inspectInstalledBuiltinSkillVersion(_0x740109,_0x45e26a={}){const _0x1f48b6=a281_0x2e6f11,_0x1bc093=installedSkillPath(_0x45e26a[_0x1f48b6(0x127)]??homedir());if(_0x1bc093[_0x1f48b6(0x11f)]===_0x1f48b6(0xee))return{'state':_0x1f48b6(0xee),'expectedVersion':_0x740109,'repairCommand':REPAIR_COMMAND};if(_0x1bc093[_0x1f48b6(0x11f)]===_0x1f48b6(0xf0))return{'state':_0x1f48b6(0xf0),'expectedVersion':_0x740109,'reason':_0x1bc093[_0x1f48b6(0xf4)],'repairCommand':REPAIR_COMMAND};try{const _0x10e831=frontmatterValue(readFileSync(join(_0x1bc093[_0x1f48b6(0xef)],_0x1f48b6(0x11c)),_0x1f48b6(0xfa)),_0x1f48b6(0x105));return{'state':_0x10e831===_0x740109?_0x1f48b6(0x125):'version_mismatch','expectedVersion':_0x740109,'skillVersion':_0x10e831,'installedPath':_0x1bc093['path'],'repairCommand':REPAIR_COMMAND};}catch(_0x3ff767){return{'state':'unverifiable','expectedVersion':_0x740109,'installedPath':_0x1bc093[_0x1f48b6(0xef)],'reason':_0x3ff767 instanceof Error?_0x3ff767['message']:String(_0x3ff767),'repairCommand':REPAIR_COMMAND};}}function a281_0x3d9f(){const _0x33912a=['schemaVersion','utf8','1269370ZlXtXx','334076QAWZfe','rabetbase.manifest.json',':\x5cs*(.+)$','isSymbolicLink','root','length','includes','message','packageVersion','version','sha256','rabetbase','trim','sort','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','flatMap','Installed\x20Skill\x20state\x20is\x20','VERIFY_FAILED','present','unknown','174864wHkkIa','match','skills@latest\x20exited\x20','files','name','INSTALL_FAILED','update','skipped','389984ZGfwNb','28jHhrTv','startsWith','content_mismatch','SKILL.md','status','stdio','state','every','Unsafe\x20manifest\x20path:\x20','Symbolic\x20link\x20is\x20not\x20allowed:\x20','390954FnHNDj','119207EOUvOk','current','installedPath','home','Unsupported\x20Skill\x20entry:\x20','package.json','packageRoot','isDirectory','skillVersion','digest','pipe','missing','path','unverifiable','hex','skills','manifest','reason','split','parse','1042866BuDsJD','version_mismatch'];a281_0x3d9f=function(){return _0x33912a;};return a281_0x3d9f();}export function inspectBuiltinSkill(_0x2bf899={}){const _0x2b2ab0=a281_0x2e6f11,_0x25d9e3=_0x2bf899[_0x2b2ab0(0x12a)]??DEFAULT_PACKAGE_ROOT;let _0x5958a7;try{_0x5958a7=readSource(_0x25d9e3);}catch(_0x384335){return{'state':'unverifiable','packageVersion':_0x2b2ab0(0x10f),'reason':_0x384335 instanceof Error?_0x384335[_0x2b2ab0(0x103)]:String(_0x384335),'repairCommand':REPAIR_COMMAND};}const _0x36ae6e=installedSkillPath(_0x2bf899[_0x2b2ab0(0x127)]??homedir());if(_0x36ae6e[_0x2b2ab0(0x11f)]===_0x2b2ab0(0xee))return{'state':_0x2b2ab0(0xee),'packageVersion':_0x5958a7[_0x2b2ab0(0x104)],'repairCommand':REPAIR_COMMAND};if(_0x36ae6e[_0x2b2ab0(0x11f)]===_0x2b2ab0(0xf0))return{'state':_0x2b2ab0(0xf0),'packageVersion':_0x5958a7[_0x2b2ab0(0x104)],'reason':_0x36ae6e[_0x2b2ab0(0xf4)],'repairCommand':REPAIR_COMMAND};try{const _0x22ee35=frontmatterValue(readFileSync(join(_0x36ae6e['path'],_0x2b2ab0(0x11c)),'utf8'),_0x2b2ab0(0x105));if(_0x22ee35!==_0x5958a7[_0x2b2ab0(0x12c)])return{'state':_0x2b2ab0(0xf8),'packageVersion':_0x5958a7[_0x2b2ab0(0x104)],'skillVersion':_0x22ee35,'installedPath':_0x36ae6e['path'],'repairCommand':REPAIR_COMMAND};const _0x23bc16=listFiles(_0x36ae6e[_0x2b2ab0(0xef)]),_0x5ba090=digestFiles(_0x36ae6e[_0x2b2ab0(0xef)],_0x23bc16);return{'state':sameFiles(_0x23bc16,_0x5958a7[_0x2b2ab0(0xf3)][_0x2b2ab0(0x113)])&&_0x5ba090===_0x5958a7['manifest'][_0x2b2ab0(0x12d)]?_0x2b2ab0(0x125):_0x2b2ab0(0x11b),'packageVersion':_0x5958a7[_0x2b2ab0(0x104)],'skillVersion':_0x22ee35,'installedPath':_0x36ae6e[_0x2b2ab0(0xef)],'digest':_0x5ba090,'repairCommand':REPAIR_COMMAND};}catch(_0x377764){return{'state':_0x2b2ab0(0xf0),'packageVersion':_0x5958a7[_0x2b2ab0(0x104)],'installedPath':_0x36ae6e[_0x2b2ab0(0xef)],'reason':_0x377764 instanceof Error?_0x377764[_0x2b2ab0(0x103)]:String(_0x377764),'repairCommand':REPAIR_COMMAND};}}function failure(_0x5ba02e,_0x17fdd9,_0x11919c,_0x936530){const _0x173257=a281_0x2e6f11;return{'ok':![],'code':_0x5ba02e,'packageVersion':_0x17fdd9[_0x173257(0x104)],'skillVersion':_0x17fdd9[_0x173257(0x12c)],'installedPath':_0x936530,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x11919c instanceof Error?_0x11919c['message']:String(_0x11919c)};}export function installBuiltinSkill(_0x1b8cf6={}){const _0x4fcb11=a281_0x2e6f11,_0x22027f=_0x1b8cf6[_0x4fcb11(0x12a)]??DEFAULT_PACKAGE_ROOT,_0x5bccd0=_0x1b8cf6[_0x4fcb11(0x127)]??homedir();let _0x7420b5;try{_0x7420b5=readSource(_0x22027f);}catch(_0x330811){return failure('SOURCE_INVALID',{'packageVersion':_0x4fcb11(0x10f),'skillVersion':_0x4fcb11(0x10f)},_0x330811);}const _0x3d453a=inspectBuiltinSkill({'packageRoot':_0x22027f,'home':_0x5bccd0}),_0x2345e1=runNpxSkillsAddGlobal(_0x22027f,_0x7420b5[_0x4fcb11(0x100)],{'stdio':_0x1b8cf6[_0x4fcb11(0x11e)]??_0x4fcb11(0xed),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x5bccd0}});if(_0x2345e1[_0x4fcb11(0x117)])return{'ok':!![],'packageVersion':_0x7420b5[_0x4fcb11(0x104)],'skillVersion':_0x7420b5['skillVersion'],'installedPath':_0x3d453a[_0x4fcb11(0x126)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x2345e1['ok'])return failure(_0x4fcb11(0x115),_0x7420b5,_0x2345e1['error']??_0x4fcb11(0x112)+_0x2345e1[_0x4fcb11(0x11d)]);const _0x1a46a3=inspectBuiltinSkill({'packageRoot':_0x22027f,'home':_0x5bccd0});if(_0x1a46a3[_0x4fcb11(0x11f)]!==_0x4fcb11(0x125))return failure(_0x4fcb11(0x10d),_0x7420b5,_0x1a46a3[_0x4fcb11(0xf4)]??_0x4fcb11(0x10c)+_0x1a46a3[_0x4fcb11(0x11f)],_0x1a46a3[_0x4fcb11(0x126)]);return{'ok':!![],'packageVersion':_0x7420b5[_0x4fcb11(0x104)],'skillVersion':_0x7420b5[_0x4fcb11(0x12c)],'installedPath':_0x1a46a3[_0x4fcb11(0x126)],'changed':_0x3d453a[_0x4fcb11(0x11f)]!==_0x4fcb11(0x125),'repairCommand':REPAIR_COMMAND};}
1
+ const a295_0x4d7b53=a295_0x40bd;(function(_0x1b11c6,_0x165e7b){const _0x5a8945=a295_0x40bd,_0x1cc8d0=_0x1b11c6();while(!![]){try{const _0x1eae17=-parseInt(_0x5a8945(0x95))/0x1*(-parseInt(_0x5a8945(0xae))/0x2)+parseInt(_0x5a8945(0xc0))/0x3+parseInt(_0x5a8945(0xad))/0x4+parseInt(_0x5a8945(0xc3))/0x5+-parseInt(_0x5a8945(0xba))/0x6*(-parseInt(_0x5a8945(0x9e))/0x7)+parseInt(_0x5a8945(0x9f))/0x8*(parseInt(_0x5a8945(0x97))/0x9)+-parseInt(_0x5a8945(0xa7))/0xa;if(_0x1eae17===_0x165e7b)break;else _0x1cc8d0['push'](_0x1cc8d0['shift']());}catch(_0x60e65e){_0x1cc8d0['push'](_0x1cc8d0['shift']());}}}(a295_0x8647,0xbf5b3));function a295_0x40bd(_0x1a6761,_0x565ca5){_0x1a6761=_0x1a6761-0x95;const _0x8647cf=a295_0x8647();let _0x40bd70=_0x8647cf[_0x1a6761];return _0x40bd70;}import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a295_0x4d7b53(0xca),SKILL_NAME=a295_0x4d7b53(0xa4);function frontmatterValue(_0x200b1d,_0x400d0f){const _0x518ea3=a295_0x4d7b53;return _0x200b1d['match'](new RegExp('^'+_0x400d0f+_0x518ea3(0xd3),'m'))?.[0x1]?.[_0x518ea3(0xc8)]()??'';}function listFiles(_0x373953,_0x1c269e=_0x373953){const _0x46f338=a295_0x4d7b53;return readdirSync(_0x1c269e,{'withFileTypes':!![]})[_0x46f338(0xaa)](_0x31dcb8=>{const _0x36c950=_0x46f338,_0x4771d3=join(_0x1c269e,_0x31dcb8[_0x36c950(0xcd)]),_0x49e5d1=lstatSync(_0x4771d3);if(_0x49e5d1[_0x36c950(0xb3)]())throw new Error(_0x36c950(0xcc)+_0x4771d3);if(_0x49e5d1[_0x36c950(0xd0)]())return listFiles(_0x373953,_0x4771d3);if(!_0x49e5d1['isFile']())throw new Error('Unsupported\x20Skill\x20entry:\x20'+_0x4771d3);return[relative(_0x373953,_0x4771d3)['split'](sep)[_0x36c950(0xa0)]('/')];})[_0x46f338(0xc9)]((_0x5c7cc7,_0x72f6fa)=>_0x5c7cc7<_0x72f6fa?-0x1:_0x5c7cc7>_0x72f6fa?0x1:0x0);}function a295_0x8647(){const _0x2d7e14=['length','Symbolic\x20link\x20is\x20not\x20allowed:\x20','name','path','skills','isDirectory','skipped','packageRoot',':\x5cs*(.+)$','split','INSTALL_FAILED','47bQQsal','Unsafe\x20manifest\x20path:\x20','8404029OKTute','error','home','version_mismatch','current','SOURCE_INVALID','state','7QuezyW','8sMAvxj','join','rabetbase.manifest.json','every','SKILL.md','rabetbase','unknown','unverifiable','59516720RkmRgP','version','root','flatMap','packageVersion','update','5956028gZxyep','62584aWNLvT','missing','sha256','present','digest','isSymbolicLink','manifest','message','stdio','skillVersion','status','pipe','7052418QWfMxp','package.json','reason','includes','hex','files','1739589MmvmyK','utf8','schemaVersion','5433445wrdVQY','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','Installed\x20Skill\x20state\x20is\x20','installedPath','skills@latest\x20exited\x20','trim','sort','rabetbase\x20cli-skill\x20install'];a295_0x8647=function(){return _0x2d7e14;};return a295_0x8647();}function digestFiles(_0x5a76d8,_0x2aa66d){const _0x5bf552=a295_0x4d7b53,_0x2afe3d=createHash(_0x5bf552(0xb0));for(const _0xc289a8 of _0x2aa66d){if(_0xc289a8['startsWith']('/')||_0xc289a8[_0x5bf552(0xd4)]('/')[_0x5bf552(0xbd)]('..')||_0xc289a8[_0x5bf552(0xbd)]('\x5c'))throw new Error(_0x5bf552(0x96)+_0xc289a8);_0x2afe3d['update'](_0xc289a8),_0x2afe3d['update']('\x00'),_0x2afe3d[_0x5bf552(0xac)](readFileSync(join(_0x5a76d8,..._0xc289a8[_0x5bf552(0xd4)]('/')))),_0x2afe3d[_0x5bf552(0xac)]('\x00');}return _0x2afe3d['digest'](_0x5bf552(0xbe));}function sameFiles(_0x23ac64,_0x58fadc){const _0x261eda=a295_0x4d7b53;return _0x23ac64[_0x261eda(0xcb)]===_0x58fadc[_0x261eda(0xcb)]&&_0x23ac64[_0x261eda(0xa2)]((_0xbbd9d8,_0x2ff851)=>_0xbbd9d8===_0x58fadc[_0x2ff851]);}function readSource(_0x3affa4){const _0x132e30=a295_0x4d7b53,_0x3e691b=JSON['parse'](readFileSync(join(_0x3affa4,_0x132e30(0xbb)),_0x132e30(0xc1))),_0x5506d9=JSON['parse'](readFileSync(join(_0x3affa4,_0x132e30(0xcf),_0x132e30(0xa1)),_0x132e30(0xc1))),_0x55b290=join(_0x3affa4,_0x132e30(0xcf),SKILL_NAME),_0x414199=frontmatterValue(readFileSync(join(_0x55b290,_0x132e30(0xa3)),_0x132e30(0xc1)),_0x132e30(0xa8)),_0x3a1c23=listFiles(_0x55b290);if(_0x5506d9[_0x132e30(0xc2)]!==0x1||_0x5506d9[_0x132e30(0xcd)]!==SKILL_NAME||!_0x3e691b[_0x132e30(0xa8)]||_0x5506d9[_0x132e30(0xab)]!==_0x3e691b[_0x132e30(0xa8)]||_0x5506d9[_0x132e30(0xb7)]!==_0x3e691b['version']||_0x414199!==_0x3e691b[_0x132e30(0xa8)]||!sameFiles(_0x3a1c23,_0x5506d9[_0x132e30(0xbf)])||digestFiles(_0x55b290,_0x3a1c23)!==_0x5506d9[_0x132e30(0xb2)])throw new Error(_0x132e30(0xc4));return{'packageVersion':_0x3e691b[_0x132e30(0xa8)],'skillVersion':_0x414199,'root':_0x55b290,'manifest':_0x5506d9};}function installedSkillPath(_0x3826d9){const _0x239a17=a295_0x4d7b53,_0x6fee8a=resolveInstalledSkill(SKILL_NAME,{'home':_0x3826d9});if(_0x6fee8a[_0x239a17(0x9d)]==='present')return{'state':_0x239a17(0xb1),'path':dirname(_0x6fee8a[_0x239a17(0xce)])};if(_0x6fee8a['state']==='absent')return{'state':_0x239a17(0xaf)};return{'state':'unverifiable','reason':_0x6fee8a[_0x239a17(0xbc)]};}export function inspectInstalledBuiltinSkillVersion(_0x4bffb7,_0x48848b={}){const _0x4d8633=a295_0x4d7b53,_0x1b3fbf=installedSkillPath(_0x48848b[_0x4d8633(0x99)]??homedir());if(_0x1b3fbf[_0x4d8633(0x9d)]===_0x4d8633(0xaf))return{'state':_0x4d8633(0xaf),'expectedVersion':_0x4bffb7,'repairCommand':REPAIR_COMMAND};if(_0x1b3fbf[_0x4d8633(0x9d)]===_0x4d8633(0xa6))return{'state':_0x4d8633(0xa6),'expectedVersion':_0x4bffb7,'reason':_0x1b3fbf[_0x4d8633(0xbc)],'repairCommand':REPAIR_COMMAND};try{const _0x152dc0=frontmatterValue(readFileSync(join(_0x1b3fbf[_0x4d8633(0xce)],'SKILL.md'),_0x4d8633(0xc1)),_0x4d8633(0xa8));return{'state':_0x152dc0===_0x4bffb7?_0x4d8633(0x9b):_0x4d8633(0x9a),'expectedVersion':_0x4bffb7,'skillVersion':_0x152dc0,'installedPath':_0x1b3fbf[_0x4d8633(0xce)],'repairCommand':REPAIR_COMMAND};}catch(_0x330b12){return{'state':_0x4d8633(0xa6),'expectedVersion':_0x4bffb7,'installedPath':_0x1b3fbf[_0x4d8633(0xce)],'reason':_0x330b12 instanceof Error?_0x330b12[_0x4d8633(0xb5)]:String(_0x330b12),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x575a9f={}){const _0x46fa73=a295_0x4d7b53,_0x2d8e9c=_0x575a9f[_0x46fa73(0xd2)]??DEFAULT_PACKAGE_ROOT;let _0x147757;try{_0x147757=readSource(_0x2d8e9c);}catch(_0x4aac8f){return{'state':_0x46fa73(0xa6),'packageVersion':_0x46fa73(0xa5),'reason':_0x4aac8f instanceof Error?_0x4aac8f['message']:String(_0x4aac8f),'repairCommand':REPAIR_COMMAND};}const _0x135ec7=installedSkillPath(_0x575a9f['home']??homedir());if(_0x135ec7[_0x46fa73(0x9d)]===_0x46fa73(0xaf))return{'state':_0x46fa73(0xaf),'packageVersion':_0x147757[_0x46fa73(0xab)],'repairCommand':REPAIR_COMMAND};if(_0x135ec7[_0x46fa73(0x9d)]===_0x46fa73(0xa6))return{'state':_0x46fa73(0xa6),'packageVersion':_0x147757['packageVersion'],'reason':_0x135ec7['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x2164fd=frontmatterValue(readFileSync(join(_0x135ec7[_0x46fa73(0xce)],_0x46fa73(0xa3)),'utf8'),_0x46fa73(0xa8));if(_0x2164fd!==_0x147757['skillVersion'])return{'state':_0x46fa73(0x9a),'packageVersion':_0x147757[_0x46fa73(0xab)],'skillVersion':_0x2164fd,'installedPath':_0x135ec7['path'],'repairCommand':REPAIR_COMMAND};const _0x3dc0d9=listFiles(_0x135ec7[_0x46fa73(0xce)]),_0x214ef6=digestFiles(_0x135ec7['path'],_0x3dc0d9);return{'state':sameFiles(_0x3dc0d9,_0x147757[_0x46fa73(0xb4)][_0x46fa73(0xbf)])&&_0x214ef6===_0x147757[_0x46fa73(0xb4)][_0x46fa73(0xb2)]?_0x46fa73(0x9b):'content_mismatch','packageVersion':_0x147757[_0x46fa73(0xab)],'skillVersion':_0x2164fd,'installedPath':_0x135ec7[_0x46fa73(0xce)],'digest':_0x214ef6,'repairCommand':REPAIR_COMMAND};}catch(_0x2bead7){return{'state':_0x46fa73(0xa6),'packageVersion':_0x147757[_0x46fa73(0xab)],'installedPath':_0x135ec7['path'],'reason':_0x2bead7 instanceof Error?_0x2bead7[_0x46fa73(0xb5)]:String(_0x2bead7),'repairCommand':REPAIR_COMMAND};}}function failure(_0x79754d,_0x3e93b1,_0x24fedb,_0x4946a0){const _0x579f2d=a295_0x4d7b53;return{'ok':![],'code':_0x79754d,'packageVersion':_0x3e93b1[_0x579f2d(0xab)],'skillVersion':_0x3e93b1['skillVersion'],'installedPath':_0x4946a0,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x24fedb instanceof Error?_0x24fedb[_0x579f2d(0xb5)]:String(_0x24fedb)};}export function installBuiltinSkill(_0x174dee={}){const _0x156f74=a295_0x4d7b53,_0x133328=_0x174dee[_0x156f74(0xd2)]??DEFAULT_PACKAGE_ROOT,_0x4fd062=_0x174dee[_0x156f74(0x99)]??homedir();let _0x3fb81d;try{_0x3fb81d=readSource(_0x133328);}catch(_0x2bd1c4){return failure(_0x156f74(0x9c),{'packageVersion':_0x156f74(0xa5),'skillVersion':_0x156f74(0xa5)},_0x2bd1c4);}const _0x1d6937=inspectBuiltinSkill({'packageRoot':_0x133328,'home':_0x4fd062}),_0x441974=runNpxSkillsAddGlobal(_0x133328,_0x3fb81d[_0x156f74(0xa9)],{'stdio':_0x174dee[_0x156f74(0xb6)]??_0x156f74(0xb9),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x4fd062}});if(_0x441974[_0x156f74(0xd1)])return{'ok':!![],'packageVersion':_0x3fb81d[_0x156f74(0xab)],'skillVersion':_0x3fb81d[_0x156f74(0xb7)],'installedPath':_0x1d6937[_0x156f74(0xc6)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x441974['ok'])return failure(_0x156f74(0xd5),_0x3fb81d,_0x441974[_0x156f74(0x98)]??_0x156f74(0xc7)+_0x441974[_0x156f74(0xb8)]);const _0x48ddef=inspectBuiltinSkill({'packageRoot':_0x133328,'home':_0x4fd062});if(_0x48ddef[_0x156f74(0x9d)]!==_0x156f74(0x9b))return failure('VERIFY_FAILED',_0x3fb81d,_0x48ddef[_0x156f74(0xbc)]??_0x156f74(0xc5)+_0x48ddef['state'],_0x48ddef['installedPath']);return{'ok':!![],'packageVersion':_0x3fb81d[_0x156f74(0xab)],'skillVersion':_0x3fb81d['skillVersion'],'installedPath':_0x48ddef[_0x156f74(0xc6)],'changed':_0x1d6937['state']!==_0x156f74(0x9b),'repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
1
- (function(_0x49e769,_0x3421f4){const _0x3fd6c2=a282_0x4d00,_0x5ca1f4=_0x49e769();while(!![]){try{const _0x31aa9e=-parseInt(_0x3fd6c2(0x13b))/0x1*(-parseInt(_0x3fd6c2(0x13a))/0x2)+-parseInt(_0x3fd6c2(0x11d))/0x3+-parseInt(_0x3fd6c2(0x139))/0x4+-parseInt(_0x3fd6c2(0x13f))/0x5*(-parseInt(_0x3fd6c2(0x13c))/0x6)+parseInt(_0x3fd6c2(0x126))/0x7+parseInt(_0x3fd6c2(0x13e))/0x8*(-parseInt(_0x3fd6c2(0x132))/0x9)+-parseInt(_0x3fd6c2(0x140))/0xa*(-parseInt(_0x3fd6c2(0x12d))/0xb);if(_0x31aa9e===_0x3421f4)break;else _0x5ca1f4['push'](_0x5ca1f4['shift']());}catch(_0x2b6d4e){_0x5ca1f4['push'](_0x5ca1f4['shift']());}}}(a282_0x4241,0x40030));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x226fc6){const _0x2881b4=a282_0x4d00,_0x25e7ad=[];for(const [_0x79a2f5,_0x3bca54]of Object[_0x2881b4(0x12f)](_0x226fc6)){if(_0x3bca54===!![]){const _0x2c6a57=_0x79a2f5[_0x2881b4(0x136)](/([A-Z])/g,'-$1')[_0x2881b4(0x13d)]();_0x25e7ad[_0x2881b4(0x122)](_0x2c6a57);}}return _0x25e7ad;}function a282_0x4d00(_0x4d19d0,_0x2b8601){_0x4d19d0=_0x4d19d0-0x11d;const _0x42412c=a282_0x4241();let _0x4d0061=_0x42412c[_0x4d19d0];return _0x4d0061;}export function parseDynamicFlags(){const _0x1a3f0a=a282_0x4d00,_0x4bfe98=[];for(let _0x24cd03=0x3;_0x24cd03<process['argv'][_0x1a3f0a(0x120)];_0x24cd03++){const _0xb0df0d=process['argv'][_0x24cd03];if(_0xb0df0d&&_0xb0df0d[_0x1a3f0a(0x11f)]('--')){const _0x2f7336=_0xb0df0d[_0x1a3f0a(0x12c)](0x2);_0x2f7336&&!_0x2f7336[_0x1a3f0a(0x138)]('=')&&_0x4bfe98[_0x1a3f0a(0x122)](_0x2f7336);}}return _0x4bfe98;}export function getAllProvidedFlags(_0x3150d8){const _0x2c9c00=a282_0x4d00,_0x350105=camelCaseFlagsToKebab(_0x3150d8),_0x2640a9=parseDynamicFlags(),_0x417240=new Set([..._0x350105,..._0x2640a9]);return Array[_0x2c9c00(0x135)](_0x417240);}export function normalizeLegacyBffSaveFlags(_0x46460b){const _0x150513=a282_0x4d00,_0x58f789=new Set(_0x46460b);return _0x58f789[_0x150513(0x133)]('dangerously-bff-save')&&_0x58f789[_0x150513(0x128)](_0x150513(0x134)),Array[_0x150513(0x135)](_0x58f789);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a282_0x4241(){const _0x5c4926=['has','enable-bff-save','from','replace','cwd','includes','2000896AVWZOj','2NnTdTw','380482fgDcaV','4986dcATmT','toLowerCase','367064VTajpw','275vLFIOH','3106170uMEPcB','781848MszBMI','setLogPath','startsWith','length','Error:\x20Unsupported\x20command:\x20','push','log','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','error','2967139BSZKVY','--help','add','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','Public\x20Open\x20Skill\x20source:\x20','Unsupported\x20command:\x20','slice','11mfpdRR','exit','entries','help','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','27qBDDGw'];a282_0x4241=function(){return _0x5c4926;};return a282_0x4241();}export async function skillsCommand(_0x5d6f5f,_0x3fd31d,_0x40717e){const _0x302712=a282_0x4d00;logger[_0x302712(0x11e)](process[_0x302712(0x137)]());if(_0x40717e?.[_0x302712(0x130)]||_0x5d6f5f===_0x302712(0x127)){showHelp();return;}console[_0x302712(0x125)](_0x302712(0x121)+(_0x5d6f5f||'(empty)')),console[_0x302712(0x123)]('\x0aAvailable\x20commands:'),console[_0x302712(0x123)]('\x20\x20'+CLI_BIN_NAME+_0x302712(0x124)),console[_0x302712(0x123)](''),console[_0x302712(0x123)](_0x302712(0x12a)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x302712(0x125)]('skill',_0x302712(0x12b)+_0x5d6f5f),process[_0x302712(0x12e)](0x1);}function showHelp(){const _0x4b3251=a282_0x4d00;console[_0x4b3251(0x123)](_0x4b3251(0x131)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x4b3251(0x129));}
1
+ (function(_0x554198,_0x2be2e1){const _0x2211a3=a296_0x1683,_0x11d781=_0x554198();while(!![]){try{const _0x560254=-parseInt(_0x2211a3(0x1d5))/0x1*(parseInt(_0x2211a3(0x1c1))/0x2)+-parseInt(_0x2211a3(0x1cd))/0x3*(-parseInt(_0x2211a3(0x1b5))/0x4)+parseInt(_0x2211a3(0x1bc))/0x5*(parseInt(_0x2211a3(0x1d4))/0x6)+parseInt(_0x2211a3(0x1bf))/0x7*(-parseInt(_0x2211a3(0x1c6))/0x8)+parseInt(_0x2211a3(0x1d0))/0x9+parseInt(_0x2211a3(0x1c2))/0xa*(-parseInt(_0x2211a3(0x1c5))/0xb)+parseInt(_0x2211a3(0x1c3))/0xc;if(_0x560254===_0x2be2e1)break;else _0x11d781['push'](_0x11d781['shift']());}catch(_0x1e86c0){_0x11d781['push'](_0x11d781['shift']());}}}(a296_0x3ff4,0x8e948));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0xc75a9a){const _0x332d9b=a296_0x1683,_0x3e3d26=[];for(const [_0x2c35af,_0x5b745f]of Object[_0x332d9b(0x1bb)](_0xc75a9a)){if(_0x5b745f===!![]){const _0x1beb3f=_0x2c35af[_0x332d9b(0x1d6)](/([A-Z])/g,_0x332d9b(0x1ca))['toLowerCase']();_0x3e3d26['push'](_0x1beb3f);}}return _0x3e3d26;}function a296_0x3ff4(){const _0x3a3367=['\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','includes','from','1509324QmSFiX','2AGYSGq','replace','79432lQDHOq','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','setLogPath','slice','exit','argv','entries','10tFRHps','skill','enable-bff-save','1045317dQXzRU','log','433532RIvxvC','1790JofgvS','5243148ykSDUS','dangerously-bff-save','65153PGgtFt','24czoJzI','cwd','error','Public\x20Open\x20Skill\x20source:\x20','-$1','push','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','147DFAVWE','\x0aAvailable\x20commands:','(empty)','5514039vbzxOK'];a296_0x3ff4=function(){return _0x3a3367;};return a296_0x3ff4();}export function parseDynamicFlags(){const _0x51899b=a296_0x1683,_0x11ddeb=[];for(let _0x4ff806=0x3;_0x4ff806<process[_0x51899b(0x1ba)]['length'];_0x4ff806++){const _0xdbd35b=process[_0x51899b(0x1ba)][_0x4ff806];if(_0xdbd35b&&_0xdbd35b['startsWith']('--')){const _0x142475=_0xdbd35b[_0x51899b(0x1b8)](0x2);_0x142475&&!_0x142475[_0x51899b(0x1d2)]('=')&&_0x11ddeb[_0x51899b(0x1cb)](_0x142475);}}return _0x11ddeb;}export function getAllProvidedFlags(_0x9cb6ba){const _0x125d76=a296_0x1683,_0x547b13=camelCaseFlagsToKebab(_0x9cb6ba),_0x14e187=parseDynamicFlags(),_0x55c0e7=new Set([..._0x547b13,..._0x14e187]);return Array[_0x125d76(0x1d3)](_0x55c0e7);}export function normalizeLegacyBffSaveFlags(_0x1afcca){const _0x270c54=a296_0x1683,_0x52abe=new Set(_0x1afcca);return _0x52abe['has'](_0x270c54(0x1c4))&&_0x52abe['add'](_0x270c54(0x1be)),Array['from'](_0x52abe);}function a296_0x1683(_0x18007a,_0x41a816){_0x18007a=_0x18007a-0x1b5;const _0x3ff412=a296_0x3ff4();let _0x1683cf=_0x3ff412[_0x18007a];return _0x1683cf;}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0xb7cba7,_0x9163e,_0x181956){const _0x565a8e=a296_0x1683;logger[_0x565a8e(0x1b7)](process[_0x565a8e(0x1c7)]());if(_0x181956?.['help']||_0xb7cba7==='--help'){showHelp();return;}console[_0x565a8e(0x1c8)]('Error:\x20Unsupported\x20command:\x20'+(_0xb7cba7||_0x565a8e(0x1cf))),console[_0x565a8e(0x1c0)](_0x565a8e(0x1ce)),console[_0x565a8e(0x1c0)]('\x20\x20'+CLI_BIN_NAME+_0x565a8e(0x1b6)),console[_0x565a8e(0x1c0)](''),console['log'](_0x565a8e(0x1c9)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x565a8e(0x1c8)](_0x565a8e(0x1bd),'Unsupported\x20command:\x20'+_0xb7cba7),process[_0x565a8e(0x1b9)](0x1);}function showHelp(){const _0x4dd7bf=a296_0x1683;console[_0x4dd7bf(0x1c0)](_0x4dd7bf(0x1cc)+CLI_BIN_NAME+_0x4dd7bf(0x1d1)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a');}
@@ -1 +1 @@
1
- const a283_0x2990b5=a283_0xe216;(function(_0x18f66f,_0xbb22ef){const _0x23795f=a283_0xe216,_0x43544e=_0x18f66f();while(!![]){try{const _0x4cf2fb=parseInt(_0x23795f(0x1f1))/0x1*(-parseInt(_0x23795f(0x1cb))/0x2)+parseInt(_0x23795f(0x1da))/0x3+-parseInt(_0x23795f(0x1c7))/0x4*(parseInt(_0x23795f(0x1d1))/0x5)+-parseInt(_0x23795f(0x1b4))/0x6*(parseInt(_0x23795f(0x1d9))/0x7)+-parseInt(_0x23795f(0x1c9))/0x8*(-parseInt(_0x23795f(0x1bf))/0x9)+parseInt(_0x23795f(0x1ec))/0xa+parseInt(_0x23795f(0x1dc))/0xb;if(_0x4cf2fb===_0xbb22ef)break;else _0x43544e['push'](_0x43544e['shift']());}catch(_0x2ad8b3){_0x43544e['push'](_0x43544e['shift']());}}}(a283_0x7b5b,0xc4ee7));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_0x2990b5(0x1e1);export const NPX_SKILLS_SUBCOMMAND_ADD=a283_0x2990b5(0x1e3);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a283_0x2990b5(0x1b1);export const LEGACY_RABETBASE_SKILL_SOURCE=a283_0x2990b5(0x1d7);export const DEFAULT_RABETBASE_SKILL_NAME=a283_0x2990b5(0x1d3);export const RABETBASE_GLOBAL_SKILL_NAME=a283_0x2990b5(0x1b7);export const RABETBASE_SKILL_GIT_SOURCE=a283_0x2990b5(0x1bc);export function resolveGlobalSkillName(_0x2976c6){const _0x5aed03=a283_0x2990b5;switch(_0x2976c6[_0x5aed03(0x1c2)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}function a283_0x7b5b(){const _0x564d4e=['Installer\x20reported\x20','yes','inherit','EACCES','25KyNWNw','NPM_CONFIG_GLOBAL','Lovrabet','NPX_NOT_FOUND','join','EPERM','lovrabet/lovrabet-skill','expectedSkillName','28NQUbFh','2769162fECOKs','message','11922845OCcxyo','pipe','checked','stdout','ENOENT','skills@latest','\x20failed\x20target(s)','add','code','present','toString','warn','\x22\x20install\x20state:\x20','push','stdio','Skill\x20\x22','8011600eAkcRG','exit\x20','skill','npm_config_global','absent','468382jndiRg','lovrabet/rabetbase','signal','PERMISSION_DENIED','2143176pIMnMA','stderr','status','rabetbase','SPAWN_FAILED','unknown','log','state','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','npx','unverifiable','1471833shXWNX','match','filter','trim','error','reason','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','SKILL_NOT_INSTALLED','362892YtRAoc','CHILD_EXIT_NONZERO','40bwtATW','CHILD_TERMINATED','4EDXcWL','npx\x20terminated\x20by\x20signal\x20'];a283_0x7b5b=function(){return _0x564d4e;};return a283_0x7b5b();}export function buildNpxSkillsAddArgv(_0x2e2dbb){const _0x360b01=a283_0x2990b5,_0x416542=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x2e2dbb&&_0x416542[_0x360b01(0x1e9)](NPX_SKILLS_FLAG_SKILL,_0x2e2dbb),_0x416542;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a283_0x2990b5(0x1bd),...buildNpxSkillsAddArgv()][a283_0x2990b5(0x1d5)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a283_0x2990b5(0x1bd),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a283_0x2990b5(0x1d5)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x53384a,_0x92dbd8,_0x160566){return{'ok':![],'status':_0x92dbd8,'code':_0x53384a,'error':'['+_0x53384a+']\x20'+_0x160566};}function a283_0xe216(_0x2052a5,_0x3995ee){_0x2052a5=_0x2052a5-0x1b1;const _0x7b5bd9=a283_0x7b5b();let _0xe21696=_0x7b5bd9[_0x2052a5];return _0xe21696;}function spawnOptions(_0x1e7236,_0x2d95ea){const _0x55bf6b=a283_0x2990b5,_0x2ac1db={...process.env};return delete _0x2ac1db[_0x55bf6b(0x1ef)],delete _0x2ac1db[_0x55bf6b(0x1d2)],{'cwd':_0x1e7236,'stdio':_0x2d95ea,'env':_0x2ac1db,'shell':![],..._0x2d95ea===_0x55bf6b(0x1dd)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x50e7f7,_0x20a1b8,_0xe611d0,_0x24ac78){const _0x51a1ec=a283_0x2990b5,_0x22d04e=[_0x50e7f7[_0x51a1ec(0x1df)]?_0x50e7f7[_0x51a1ec(0x1df)][_0x51a1ec(0x1e6)]():'',_0x50e7f7[_0x51a1ec(0x1b5)]?_0x50e7f7['stderr'][_0x51a1ec(0x1e6)]():''][_0x51a1ec(0x1c1)](Boolean)[_0x51a1ec(0x1d5)]('\x0a')['trim']();_0x24ac78!=='pipe'&&_0x22d04e&&console[_0x51a1ec(0x1ba)](_0x22d04e);if(_0x50e7f7[_0x51a1ec(0x1c3)]){const _0x1239d3=_0x50e7f7[_0x51a1ec(0x1c3)],_0x43567e=_0x1239d3[_0x51a1ec(0x1e4)]===_0x51a1ec(0x1e0)?_0x51a1ec(0x1d4):_0x1239d3[_0x51a1ec(0x1e4)]===_0x51a1ec(0x1d6)||_0x1239d3[_0x51a1ec(0x1e4)]===_0x51a1ec(0x1d0)?_0x51a1ec(0x1b3):_0x51a1ec(0x1b8);return failure(_0x43567e,_0x50e7f7[_0x51a1ec(0x1b6)],_0x1239d3[_0x51a1ec(0x1db)]);}if(_0x50e7f7[_0x51a1ec(0x1b2)])return failure(_0x51a1ec(0x1ca),_0x50e7f7[_0x51a1ec(0x1b6)],_0x51a1ec(0x1cc)+_0x50e7f7[_0x51a1ec(0x1b2)]);if(_0x50e7f7[_0x51a1ec(0x1b6)]!==0x0)return failure(_0x51a1ec(0x1c8),_0x50e7f7['status'],_0x22d04e||_0x51a1ec(0x1ed)+(_0x50e7f7['status']??_0x51a1ec(0x1b9)));const _0x4212f8=_0x20a1b8?resolveInstalledSkill(_0x20a1b8,_0xe611d0):undefined,_0x50b237=_0x22d04e[_0x51a1ec(0x1c0)](/Failed to install\s+(\d+)/i);if(_0x50b237&&Number(_0x50b237[0x1])>0x0){const _0x5969c4=_0x51a1ec(0x1cd)+_0x50b237[0x1]+_0x51a1ec(0x1e2)+(_0x22d04e?':\x0a'+_0x22d04e:'');if(_0x4212f8?.[_0x51a1ec(0x1bb)]===_0x51a1ec(0x1e5))return console['warn']('!\x20'+_0x5969c4),{'ok':!![],'status':0x0};return failure('INSTALL_PARTIAL',0x0,_0x5969c4);}if(_0x4212f8){if(_0x4212f8[_0x51a1ec(0x1bb)]===_0x51a1ec(0x1f0))return failure(_0x51a1ec(0x1c6),0x0,_0x51a1ec(0x1eb)+_0x20a1b8+_0x51a1ec(0x1c5)+_0x4212f8[_0x51a1ec(0x1de)]['join'](',\x20')+')');_0x4212f8[_0x51a1ec(0x1bb)]===_0x51a1ec(0x1be)&&console[_0x51a1ec(0x1e7)]('!\x20Could\x20not\x20verify\x20\x22'+_0x20a1b8+_0x51a1ec(0x1e8)+_0x4212f8[_0x51a1ec(0x1c4)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x2f4198,_0x598dbb){const _0x565fbf=a283_0x2990b5;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xb61157=_0x598dbb?.[_0x565fbf(0x1ea)]??_0x565fbf(0x1cf),_0x21c1a1=resolveNpmBin(_0x565fbf(0x1bd)),_0x129a49=buildNpxSkillsAddArgv(_0x598dbb?.[_0x565fbf(0x1ee)]),_0x527dd2=[_0x565fbf(0x1bd),..._0x129a49][_0x565fbf(0x1d5)]('\x20');console[_0x565fbf(0x1ba)]('*\x20'+_0x527dd2);const _0x275006=spawnSync(_0x21c1a1,_0x129a49,spawnOptions(_0x2f4198,_0xb61157));return normalizeSpawnResult(_0x275006,undefined,undefined,_0xb61157);}export function runNpxSkillsRemove(_0x25aa20,_0x338d90,_0x1b63d2=LEGACY_RABETBASE_SKILL_SOURCE){const _0x482b1d=a283_0x2990b5;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x576ff4=_0x338d90?.['stdio']??_0x482b1d(0x1cf),_0x10051e=resolveNpmBin(_0x482b1d(0x1bd)),_0x59a3c7=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x1b63d2,NPX_SKILLS_FLAG_SKILL,_0x338d90?.[_0x482b1d(0x1ee)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x338d90?.[_0x482b1d(0x1ce)]?['-y']:[]],_0x15c273=[_0x10051e,..._0x59a3c7][_0x482b1d(0x1d5)]('\x20');console[_0x482b1d(0x1ba)]('*\x20'+_0x15c273);const _0x5c45a1=spawnSync(_0x10051e,_0x59a3c7,spawnOptions(_0x25aa20,_0x576ff4));return normalizeSpawnResult(_0x5c45a1,undefined,undefined,_0x576ff4);}export function runNpxSkillsAddGlobal(_0x38de1a,_0x12f630,_0x354b7a){const _0x38dac2=a283_0x2990b5;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1d63fd=resolveNpmBin(_0x38dac2(0x1bd)),_0x55671c=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x12f630,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x1cf630=['npx',NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x12f630,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console[_0x38dac2(0x1ba)]('*\x20'+_0x1cf630);const _0x58e196=spawnSync(_0x1d63fd,_0x55671c,spawnOptions(_0x38de1a,'pipe'));return normalizeSpawnResult(_0x58e196,_0x354b7a?.[_0x38dac2(0x1d8)]??resolveGlobalSkillName(_0x12f630),_0x354b7a?.['presence'],_0x354b7a?.['stdio']);}
1
+ const a297_0x6845b4=a297_0x34c2;(function(_0x5112a9,_0x111804){const _0x3c674f=a297_0x34c2,_0x1f1476=_0x5112a9();while(!![]){try{const _0x5ef242=parseInt(_0x3c674f(0x88))/0x1*(-parseInt(_0x3c674f(0x77))/0x2)+-parseInt(_0x3c674f(0xa5))/0x3+-parseInt(_0x3c674f(0x8d))/0x4*(-parseInt(_0x3c674f(0xa4))/0x5)+-parseInt(_0x3c674f(0xa1))/0x6*(-parseInt(_0x3c674f(0x71))/0x7)+-parseInt(_0x3c674f(0x6f))/0x8+-parseInt(_0x3c674f(0x92))/0x9*(parseInt(_0x3c674f(0x99))/0xa)+-parseInt(_0x3c674f(0xa2))/0xb*(-parseInt(_0x3c674f(0x86))/0xc);if(_0x5ef242===_0x111804)break;else _0x1f1476['push'](_0x1f1476['shift']());}catch(_0x36ca48){_0x1f1476['push'](_0x1f1476['shift']());}}}(a297_0x3969,0x7820f));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=a297_0x6845b4(0x87);function a297_0x34c2(_0x5c27bd,_0x406685){_0x5c27bd=_0x5c27bd-0x6e;const _0x3969d3=a297_0x3969();let _0x34c28b=_0x3969d3[_0x5c27bd];return _0x34c28b;}export const NPX_SKILLS_SUBCOMMAND_ADD=a297_0x6845b4(0x9b);export const NPX_SKILLS_FLAG_SKILL=a297_0x6845b4(0x76);export const RABETBASE_SKILL_SOURCE=a297_0x6845b4(0x82);export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME=a297_0x6845b4(0x81);export const RABETBASE_GLOBAL_SKILL_NAME=a297_0x6845b4(0xa6);export const RABETBASE_SKILL_GIT_SOURCE='git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git';export function resolveGlobalSkillName(_0xf8eff7){const _0x19dc83=a297_0x6845b4;switch(_0xf8eff7[_0x19dc83(0x80)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x3b3058){const _0x3819e3=a297_0x6845b4,_0x36e53e=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x3b3058&&_0x36e53e[_0x3819e3(0x7b)](NPX_SKILLS_FLAG_SKILL,_0x3b3058),_0x36e53e;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()][a297_0x6845b4(0x94)]('\x20');function a297_0x3969(){const _0x4324ad=['stdio','present','push','\x22\x20install\x20state:\x20','!\x20Could\x20not\x20verify\x20\x22','skill','state','trim','Lovrabet','lovrabet/rabetbase','message','NPX_NOT_FOUND','absent','12mRdvtx','skills@latest','3NUdAdK','match','INSTALL_PARTIAL','toString','ENOENT','4rHWKBq','CHILD_EXIT_NONZERO','pipe','stdout','warn','5487687msqgOy','presence','join','CHILD_TERMINATED','log','npx','unverifiable','10ojbNkb','Installer\x20reported\x20','add','code','yes','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','remove','npx\x20terminated\x20by\x20signal\x20','2358732zgwnvE','9033662YMrXuO','stderr','4777985PvcmMH','402984CkBPvD','rabetbase','exit\x20','SPAWN_FAILED','NPM_CONFIG_GLOBAL','expectedSkillName','reason','6893488wJgIzt','status','14dlwlYJ','\x20failed\x20target(s)','EPERM','error','unknown','--skill','310186ebfrNM','signal'];a297_0x3969=function(){return _0x4324ad;};return a297_0x3969();}export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a297_0x6845b4(0x97),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(_0x492d4c,_0x4cdfa2,_0x4f1591){return{'ok':![],'status':_0x4cdfa2,'code':_0x492d4c,'error':'['+_0x492d4c+']\x20'+_0x4f1591};}function spawnOptions(_0x3a3cf6,_0x27bd75){const _0x57baee=a297_0x6845b4,_0x268072={...process.env};return delete _0x268072['npm_config_global'],delete _0x268072[_0x57baee(0xa9)],{'cwd':_0x3a3cf6,'stdio':_0x27bd75,'env':_0x268072,'shell':![],..._0x27bd75===_0x57baee(0x8f)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x3184f3,_0x10d45b,_0x106257,_0x52ad7c){const _0x4918fd=a297_0x6845b4,_0xf4d031=[_0x3184f3[_0x4918fd(0x90)]?_0x3184f3[_0x4918fd(0x90)][_0x4918fd(0x8b)]():'',_0x3184f3[_0x4918fd(0xa3)]?_0x3184f3[_0x4918fd(0xa3)][_0x4918fd(0x8b)]():'']['filter'](Boolean)[_0x4918fd(0x94)]('\x0a')[_0x4918fd(0x80)]();_0x52ad7c!==_0x4918fd(0x8f)&&_0xf4d031&&console[_0x4918fd(0x96)](_0xf4d031);if(_0x3184f3[_0x4918fd(0x74)]){const _0x504893=_0x3184f3[_0x4918fd(0x74)],_0x5af3f9=_0x504893[_0x4918fd(0x9c)]===_0x4918fd(0x8c)?_0x4918fd(0x84):_0x504893[_0x4918fd(0x9c)]===_0x4918fd(0x73)||_0x504893[_0x4918fd(0x9c)]==='EACCES'?'PERMISSION_DENIED':_0x4918fd(0xa8);return failure(_0x5af3f9,_0x3184f3[_0x4918fd(0x70)],_0x504893[_0x4918fd(0x83)]);}if(_0x3184f3[_0x4918fd(0x78)])return failure(_0x4918fd(0x95),_0x3184f3[_0x4918fd(0x70)],_0x4918fd(0xa0)+_0x3184f3[_0x4918fd(0x78)]);if(_0x3184f3[_0x4918fd(0x70)]!==0x0)return failure(_0x4918fd(0x8e),_0x3184f3[_0x4918fd(0x70)],_0xf4d031||_0x4918fd(0xa7)+(_0x3184f3[_0x4918fd(0x70)]??_0x4918fd(0x75)));const _0x3264e7=_0x10d45b?resolveInstalledSkill(_0x10d45b,_0x106257):undefined,_0x255e19=_0xf4d031[_0x4918fd(0x89)](/Failed to install\s+(\d+)/i);if(_0x255e19&&Number(_0x255e19[0x1])>0x0){const _0x284874=_0x4918fd(0x9a)+_0x255e19[0x1]+_0x4918fd(0x72)+(_0xf4d031?':\x0a'+_0xf4d031:'');if(_0x3264e7?.[_0x4918fd(0x7f)]===_0x4918fd(0x7a))return console['warn']('!\x20'+_0x284874),{'ok':!![],'status':0x0};return failure(_0x4918fd(0x8a),0x0,_0x284874);}if(_0x3264e7){if(_0x3264e7[_0x4918fd(0x7f)]===_0x4918fd(0x85))return failure('SKILL_NOT_INSTALLED',0x0,'Skill\x20\x22'+_0x10d45b+_0x4918fd(0x9e)+_0x3264e7['checked'][_0x4918fd(0x94)](',\x20')+')');_0x3264e7[_0x4918fd(0x7f)]===_0x4918fd(0x98)&&console[_0x4918fd(0x91)](_0x4918fd(0x7d)+_0x10d45b+_0x4918fd(0x7c)+_0x3264e7[_0x4918fd(0x6e)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x1ce9e1,_0x4bf5a3){const _0x5b24fc=a297_0x6845b4;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x34618=_0x4bf5a3?.['stdio']??'inherit',_0x162050=resolveNpmBin('npx'),_0x187b38=buildNpxSkillsAddArgv(_0x4bf5a3?.[_0x5b24fc(0x7e)]),_0x28c6d5=[_0x5b24fc(0x97),..._0x187b38][_0x5b24fc(0x94)]('\x20');console[_0x5b24fc(0x96)]('*\x20'+_0x28c6d5);const _0x3d627c=spawnSync(_0x162050,_0x187b38,spawnOptions(_0x1ce9e1,_0x34618));return normalizeSpawnResult(_0x3d627c,undefined,undefined,_0x34618);}export function runNpxSkillsRemove(_0x4c63dd,_0x5ab666,_0xe5823b=LEGACY_RABETBASE_SKILL_SOURCE){const _0x4b2d0a=a297_0x6845b4;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x45d2c3=_0x5ab666?.[_0x4b2d0a(0x79)]??'inherit',_0x10b1f8=resolveNpmBin('npx'),_0x796cd1=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x4b2d0a(0x9f),_0xe5823b,NPX_SKILLS_FLAG_SKILL,_0x5ab666?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x5ab666?.[_0x4b2d0a(0x9d)]?['-y']:[]],_0x29529f=[_0x10b1f8,..._0x796cd1][_0x4b2d0a(0x94)]('\x20');console[_0x4b2d0a(0x96)]('*\x20'+_0x29529f);const _0x59daf9=spawnSync(_0x10b1f8,_0x796cd1,spawnOptions(_0x4c63dd,_0x45d2c3));return normalizeSpawnResult(_0x59daf9,undefined,undefined,_0x45d2c3);}export function runNpxSkillsAddGlobal(_0x413990,_0x42691b,_0x35343c){const _0xbb5536=a297_0x6845b4;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3fd0a8=resolveNpmBin(_0xbb5536(0x97)),_0x3144cf=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x42691b,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x249044=[_0xbb5536(0x97),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x42691b,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console[_0xbb5536(0x96)]('*\x20'+_0x249044);const _0x48a66a=spawnSync(_0x3fd0a8,_0x3144cf,spawnOptions(_0x413990,_0xbb5536(0x8f)));return normalizeSpawnResult(_0x48a66a,_0x35343c?.[_0xbb5536(0xaa)]??resolveGlobalSkillName(_0x42691b),_0x35343c?.[_0xbb5536(0x93)],_0x35343c?.[_0xbb5536(0x79)]);}
@@ -1 +1 @@
1
- const a284_0x4f9cfb=a284_0xd97d;(function(_0x45ad30,_0x1fbf41){const _0x46c90e=a284_0xd97d,_0x2e5a76=_0x45ad30();while(!![]){try{const _0x2a6b4a=parseInt(_0x46c90e(0xe8))/0x1+parseInt(_0x46c90e(0xf1))/0x2+-parseInt(_0x46c90e(0xe3))/0x3*(parseInt(_0x46c90e(0xd9))/0x4)+parseInt(_0x46c90e(0xd7))/0x5*(-parseInt(_0x46c90e(0xde))/0x6)+parseInt(_0x46c90e(0xd2))/0x7*(-parseInt(_0x46c90e(0xea))/0x8)+parseInt(_0x46c90e(0xe0))/0x9+parseInt(_0x46c90e(0xdd))/0xa*(parseInt(_0x46c90e(0xda))/0xb);if(_0x2a6b4a===_0x1fbf41)break;else _0x2e5a76['push'](_0x2e5a76['shift']());}catch(_0x565041){_0x2e5a76['push'](_0x2e5a76['shift']());}}}(a284_0x19b2,0xae065));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';function a284_0xd97d(_0x2c4d0c,_0x52775e){_0x2c4d0c=_0x2c4d0c-0xcd;const _0x19b228=a284_0x19b2();let _0xd97dfd=_0x19b228[_0x2c4d0c];return _0xd97dfd;}function a284_0x19b2(){const _0x5a88fb=['recorded','kind','1832824KWiKoB','\x20has\x20no\x20skills\x20map','message','absent','\x20is\x20unreadable:\x20','.skill-lock.json','182PHsPYQ','unusable','skills','globalSkillsDirs','.claude','693865IlGaMh','number','1324omPPJi','1361415jnfjBd','version','.agents','40YRCbSk','48QpNOpA','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','4315122ztdSHN','SKILL.md','reason','6252RgLovN','lockFile','object','includes','not-recorded','910749tOVQGX','\x20records\x20\x22','88888CgAkVB','map','unverifiable','utf8','home'];a284_0x19b2=function(){return _0x5a88fb;};return a284_0x19b2();}import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a284_0x4f9cfb(0xdc),a284_0x4f9cfb(0xd1));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a284_0x4f9cfb(0xdc),a284_0x4f9cfb(0xd4)),join(a284_0x4f9cfb(0xd6),a284_0x4f9cfb(0xd4))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x2dd353,_0x3852c5){const _0x110abb=a284_0x4f9cfb;if(!existsSync(_0x2dd353))return{'kind':_0x110abb(0xe7)};let _0x2997ed;try{_0x2997ed=JSON['parse'](readFileSync(_0x2dd353,_0x110abb(0xed)));}catch(_0x4ecb5d){return{'kind':_0x110abb(0xd3),'reason':_0x2dd353+_0x110abb(0xd0)+_0x4ecb5d[_0x110abb(0xce)]};}const _0x2adc02=_0x2997ed;if(typeof _0x2adc02?.['version']!==_0x110abb(0xd8)||!SUPPORTED_LOCK_VERSIONS[_0x110abb(0xe6)](_0x2adc02['version']))return{'kind':_0x110abb(0xd3),'reason':_0x2dd353+'\x20uses\x20unsupported\x20version\x20'+String(_0x2adc02?.[_0x110abb(0xdb)])};if(!_0x2adc02[_0x110abb(0xd4)]||typeof _0x2adc02[_0x110abb(0xd4)]!==_0x110abb(0xe5))return{'kind':'unusable','reason':_0x2dd353+_0x110abb(0xcd)};return _0x2adc02[_0x110abb(0xd4)][_0x3852c5]?{'kind':_0x110abb(0xef)}:{'kind':'not-recorded'};}export function resolveInstalledSkill(_0x51c16c,_0x162c26){const _0x4d71d7=a284_0x4f9cfb,_0x168fd6=_0x162c26?.[_0x4d71d7(0xee)]??homedir(),_0x3c9241=_0x162c26?.[_0x4d71d7(0xd5)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x4d71d7(0xeb)](_0x1920bb=>join(_0x168fd6,_0x1920bb)),_0x27b49c=_0x162c26?.[_0x4d71d7(0xe4)]??join(_0x168fd6,SKILL_LOCK_RELATIVE_PATH),_0x59f5ca=_0x3c9241[_0x4d71d7(0xeb)](_0x4093d0=>join(_0x4093d0,_0x51c16c,_0x4d71d7(0xe1))),_0x5b22d8=_0x59f5ca['find'](_0x52df43=>existsSync(_0x52df43));if(_0x5b22d8)return{'state':'present','path':_0x5b22d8};const _0x28c669=readLockLookup(_0x27b49c,_0x51c16c);if(_0x28c669[_0x4d71d7(0xf0)]==='unusable')return{'state':_0x4d71d7(0xec),'reason':_0x28c669[_0x4d71d7(0xe2)]};if(_0x28c669[_0x4d71d7(0xf0)]===_0x4d71d7(0xef))return{'state':'unverifiable','reason':_0x27b49c+_0x4d71d7(0xe9)+_0x51c16c+_0x4d71d7(0xdf)+('('+_0x59f5ca['join'](',\x20')+')')};return{'state':_0x4d71d7(0xcf),'checked':_0x59f5ca};}
1
+ const a298_0x1008f6=a298_0x3af8;function a298_0x3af8(_0x581c72,_0x11e163){_0x581c72=_0x581c72-0x1dd;const _0x268eef=a298_0x268e();let _0x3af83f=_0x268eef[_0x581c72];return _0x3af83f;}(function(_0x589d3a,_0x5e4a3b){const _0x3d99ad=a298_0x3af8,_0x539ebc=_0x589d3a();while(!![]){try{const _0x4bf652=parseInt(_0x3d99ad(0x1dd))/0x1*(parseInt(_0x3d99ad(0x1e7))/0x2)+parseInt(_0x3d99ad(0x1fb))/0x3*(parseInt(_0x3d99ad(0x1e6))/0x4)+-parseInt(_0x3d99ad(0x1e3))/0x5*(parseInt(_0x3d99ad(0x1de))/0x6)+parseInt(_0x3d99ad(0x1f2))/0x7+parseInt(_0x3d99ad(0x1f8))/0x8+-parseInt(_0x3d99ad(0x1eb))/0x9*(-parseInt(_0x3d99ad(0x1f5))/0xa)+-parseInt(_0x3d99ad(0x1ee))/0xb;if(_0x4bf652===_0x5e4a3b)break;else _0x539ebc['push'](_0x539ebc['shift']());}catch(_0x13825f){_0x539ebc['push'](_0x539ebc['shift']());}}}(a298_0x268e,0xd1d5e));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a298_0x1008f6(0x1f7),'.skill-lock.json');export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a298_0x1008f6(0x1f7),a298_0x1008f6(0x1f6)),join(a298_0x1008f6(0x1ed),a298_0x1008f6(0x1f6))];const SUPPORTED_LOCK_VERSIONS=[0x3];function a298_0x268e(){const _0x14baf8=['24kpXwEp','not-recorded','includes','recorded','absent','1108995mYDUHy','message','\x20is\x20unreadable:\x20','119044YxTmUz','46586OOKaCR','kind','unusable','globalSkillsDirs','3208104cNNUGR','version','.claude','17880093lMRuTb','lockFile','present','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','8129275apkkKJ','SKILL.md','utf8','40UopFGC','skills','.agents','4261296jFTklq','object','parse','9bmCRta','join','unverifiable','home','7cXtZoM'];a298_0x268e=function(){return _0x14baf8;};return a298_0x268e();}function readLockLookup(_0x31bcb6,_0xcb7fb3){const _0xa26975=a298_0x1008f6;if(!existsSync(_0x31bcb6))return{'kind':_0xa26975(0x1df)};let _0x5ae200;try{_0x5ae200=JSON[_0xa26975(0x1fa)](readFileSync(_0x31bcb6,_0xa26975(0x1f4)));}catch(_0x2d28c4){return{'kind':_0xa26975(0x1e9),'reason':_0x31bcb6+_0xa26975(0x1e5)+_0x2d28c4[_0xa26975(0x1e4)]};}const _0x4b9f3c=_0x5ae200;if(typeof _0x4b9f3c?.['version']!=='number'||!SUPPORTED_LOCK_VERSIONS[_0xa26975(0x1e0)](_0x4b9f3c[_0xa26975(0x1ec)]))return{'kind':_0xa26975(0x1e9),'reason':_0x31bcb6+'\x20uses\x20unsupported\x20version\x20'+String(_0x4b9f3c?.[_0xa26975(0x1ec)])};if(!_0x4b9f3c[_0xa26975(0x1f6)]||typeof _0x4b9f3c[_0xa26975(0x1f6)]!==_0xa26975(0x1f9))return{'kind':'unusable','reason':_0x31bcb6+'\x20has\x20no\x20skills\x20map'};return _0x4b9f3c[_0xa26975(0x1f6)][_0xcb7fb3]?{'kind':'recorded'}:{'kind':_0xa26975(0x1df)};}export function resolveInstalledSkill(_0x33d8ed,_0x412ae8){const _0x4c46f9=a298_0x1008f6,_0x3debaa=_0x412ae8?.[_0x4c46f9(0x1fe)]??homedir(),_0x4dbbed=_0x412ae8?.[_0x4c46f9(0x1ea)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS['map'](_0x289b10=>join(_0x3debaa,_0x289b10)),_0x53f0da=_0x412ae8?.[_0x4c46f9(0x1ef)]??join(_0x3debaa,SKILL_LOCK_RELATIVE_PATH),_0x1187e=_0x4dbbed['map'](_0x2d8c34=>join(_0x2d8c34,_0x33d8ed,_0x4c46f9(0x1f3))),_0x315923=_0x1187e['find'](_0x29c989=>existsSync(_0x29c989));if(_0x315923)return{'state':_0x4c46f9(0x1f0),'path':_0x315923};const _0x43beca=readLockLookup(_0x53f0da,_0x33d8ed);if(_0x43beca[_0x4c46f9(0x1e8)]==='unusable')return{'state':_0x4c46f9(0x1fd),'reason':_0x43beca['reason']};if(_0x43beca[_0x4c46f9(0x1e8)]===_0x4c46f9(0x1e1))return{'state':_0x4c46f9(0x1fd),'reason':_0x53f0da+'\x20records\x20\x22'+_0x33d8ed+_0x4c46f9(0x1f1)+('('+_0x1187e[_0x4c46f9(0x1fc)](',\x20')+')')};return{'state':_0x4c46f9(0x1e2),'checked':_0x1187e};}
@@ -1 +1 @@
1
- (function(_0x57185f,_0x472bcb){const _0x1ace92=a285_0x25a9,_0x5b5292=_0x57185f();while(!![]){try{const _0x2a8178=parseInt(_0x1ace92(0x174))/0x1+-parseInt(_0x1ace92(0x179))/0x2*(-parseInt(_0x1ace92(0x17c))/0x3)+parseInt(_0x1ace92(0x16d))/0x4*(-parseInt(_0x1ace92(0x177))/0x5)+-parseInt(_0x1ace92(0x178))/0x6+parseInt(_0x1ace92(0x16c))/0x7*(parseInt(_0x1ace92(0x16a))/0x8)+parseInt(_0x1ace92(0x175))/0x9*(-parseInt(_0x1ace92(0x171))/0xa)+parseInt(_0x1ace92(0x17b))/0xb;if(_0x2a8178===_0x472bcb)break;else _0x5b5292['push'](_0x5b5292['shift']());}catch(_0x54963e){_0x5b5292['push'](_0x5b5292['shift']());}}}(a285_0x52dc,0xb6645));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 isSensitiveKey(_0x39f7b2){const _0x44d3cd=a285_0x25a9;return SENSITIVE_PATTERNS['some'](_0x12a361=>_0x12a361[_0x44d3cd(0x170)](_0x39f7b2));}function sanitizeFlags(_0x35e63f){const _0x2e68ee=a285_0x25a9,_0x2f9270={};for(const [_0x42a4a5,_0xce9b6e]of Object[_0x2e68ee(0x16b)](_0x35e63f)){isSensitiveKey(_0x42a4a5)?_0x2f9270[_0x42a4a5]=_0xce9b6e!=null&&_0xce9b6e!==''?_0x2e68ee(0x173):_0xce9b6e:_0x2f9270[_0x42a4a5]=_0xce9b6e;}return _0x2f9270;}function a285_0x25a9(_0x1d9e80,_0x3f99c6){_0x1d9e80=_0x1d9e80-0x169;const _0x52dcb9=a285_0x52dc();let _0x25a964=_0x52dcb9[_0x1d9e80];return _0x25a964;}function a285_0x52dc(){const _0x333b02=['flags','5pDssxw','8783016HPTzXV','472ktCpDO','rabetbase.command','15562294ClXDRP','12111SQIFpR','stringify','700360dkqEvE','entries','56Nwsvbv','2856668DMFbYj','service','durationMs','test','458360ncpWsW','error','[REDACTED]','728118uVnUsG','171yYUlRL'];a285_0x52dc=function(){return _0x333b02;};return a285_0x52dc();}export async function reportCommandTrace(_0xb331ca){const _0x1537d8=a285_0x25a9;try{const _0x574d83=sanitizeFlags(_0xb331ca[_0x1537d8(0x176)]);await sendCliTraceLog({'spanName':_0x1537d8(0x17a),'logData':{'command.cli_version':getCliVersion(),'command.service':_0xb331ca[_0x1537d8(0x16e)],'command.name':_0xb331ca['command'],'command.flags':JSON[_0x1537d8(0x169)](_0x574d83),..._0xb331ca[_0x1537d8(0x16f)]!=null?{'command.duration_ms':_0xb331ca[_0x1537d8(0x16f)]}:{},..._0xb331ca[_0x1537d8(0x172)]?{'command.error':_0xb331ca[_0x1537d8(0x172)]instanceof Error?_0xb331ca['error']['message']:String(_0xb331ca[_0x1537d8(0x172)])}:{}}});}catch{}}
1
+ (function(_0x4e93b9,_0x5707e2){const _0x1eb155=a299_0x45f8,_0xd9e15b=_0x4e93b9();while(!![]){try{const _0x143507=parseInt(_0x1eb155(0xe5))/0x1*(-parseInt(_0x1eb155(0xee))/0x2)+-parseInt(_0x1eb155(0xec))/0x3+-parseInt(_0x1eb155(0xf2))/0x4*(-parseInt(_0x1eb155(0xe7))/0x5)+parseInt(_0x1eb155(0xe1))/0x6+-parseInt(_0x1eb155(0xef))/0x7+-parseInt(_0x1eb155(0xea))/0x8+parseInt(_0x1eb155(0xe8))/0x9;if(_0x143507===_0x5707e2)break;else _0xd9e15b['push'](_0xd9e15b['shift']());}catch(_0x391d64){_0xd9e15b['push'](_0xd9e15b['shift']());}}}(a299_0x2078,0xd480a));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 a299_0x45f8(_0x271866,_0x1ece90){_0x271866=_0x271866-0xe0;const _0x207809=a299_0x2078();let _0x45f8eb=_0x207809[_0x271866];return _0x45f8eb;}function isSensitiveKey(_0x3642b5){const _0x5a181f=a299_0x45f8;return SENSITIVE_PATTERNS[_0x5a181f(0xe0)](_0x21de1b=>_0x21de1b['test'](_0x3642b5));}function a299_0x2078(){const _0x42a7b8=['some','3167226KApSrh','[REDACTED]','stringify','command','560036aFtnVS','durationMs','8292925eWbcFT','38055789EVLumv','flags','12608184YNtAYi','message','3473460cJduXg','rabetbase.command','4ZrmizE','11833864iJFoaH','error','entries','4qZnKBQ'];a299_0x2078=function(){return _0x42a7b8;};return a299_0x2078();}function sanitizeFlags(_0x3d613c){const _0x41301a=a299_0x45f8,_0x271a21={};for(const [_0x56114,_0x3d96ff]of Object[_0x41301a(0xf1)](_0x3d613c)){isSensitiveKey(_0x56114)?_0x271a21[_0x56114]=_0x3d96ff!=null&&_0x3d96ff!==''?_0x41301a(0xe2):_0x3d96ff:_0x271a21[_0x56114]=_0x3d96ff;}return _0x271a21;}export async function reportCommandTrace(_0x2340f0){const _0xe585a5=a299_0x45f8;try{const _0x2e083a=sanitizeFlags(_0x2340f0[_0xe585a5(0xe9)]);await sendCliTraceLog({'spanName':_0xe585a5(0xed),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x2340f0['service'],'command.name':_0x2340f0[_0xe585a5(0xe4)],'command.flags':JSON[_0xe585a5(0xe3)](_0x2e083a),..._0x2340f0[_0xe585a5(0xe6)]!=null?{'command.duration_ms':_0x2340f0['durationMs']}:{},..._0x2340f0['error']?{'command.error':_0x2340f0[_0xe585a5(0xf0)]instanceof Error?_0x2340f0['error'][_0xe585a5(0xeb)]:String(_0x2340f0[_0xe585a5(0xf0)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a286_0x1e59(){var _0x3c4df1=['8AtMXYi','Failed\x20to\x20report\x20CLI\x20help\x20trace:','114335pgWfDm','1704240jfQiNG','10BTTAXh','930284WiAHfB','3909850sEixBx','2192952sLkqDB','14990iFfFkC','cli.help','service','9qqjKnA','2893KPNMmk','1011906dcDpmA','error'];a286_0x1e59=function(){return _0x3c4df1;};return a286_0x1e59();}function a286_0x5144(_0xea8460,_0x5d0cb0){_0xea8460=_0xea8460-0x187;var _0x1e592a=a286_0x1e59();var _0x5144b9=_0x1e592a[_0xea8460];return _0x5144b9;}(function(_0x2b4db5,_0x562fd7){var _0x671013=a286_0x5144,_0x54e9b8=_0x2b4db5();while(!![]){try{var _0x374ed5=parseInt(_0x671013(0x18f))/0x1*(-parseInt(_0x671013(0x18d))/0x2)+-parseInt(_0x671013(0x190))/0x3+parseInt(_0x671013(0x192))/0x4*(parseInt(_0x671013(0x191))/0x5)+parseInt(_0x671013(0x18b))/0x6+parseInt(_0x671013(0x193))/0x7+-parseInt(_0x671013(0x194))/0x8*(parseInt(_0x671013(0x189))/0x9)+parseInt(_0x671013(0x195))/0xa*(parseInt(_0x671013(0x18a))/0xb);if(_0x374ed5===_0x562fd7)break;else _0x54e9b8['push'](_0x54e9b8['shift']());}catch(_0x5d2728){_0x54e9b8['push'](_0x54e9b8['shift']());}}}(a286_0x1e59,0x46141));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x23485a,_0x1ac6bc){var _0x3a81bb=a286_0x5144;try{await sendCliTraceLog({'spanName':_0x3a81bb(0x187),'logData':{'rabetbase.help.kind':_0x23485a,..._0x1ac6bc?.['service']&&{'rabetbase.help.service':_0x1ac6bc[_0x3a81bb(0x188)]}}});}catch(_0x238497){console[_0x3a81bb(0x18c)](_0x3a81bb(0x18e),_0x238497);}}
1
+ function a300_0xe8d8(_0x51499c,_0x494ad0){_0x51499c=_0x51499c-0xc4;var _0x55aa6e=a300_0x55aa();var _0xe8d86a=_0x55aa6e[_0x51499c];return _0xe8d86a;}(function(_0xcc815b,_0x5c0b4e){var _0x20b234=a300_0xe8d8,_0x5c7d56=_0xcc815b();while(!![]){try{var _0x572e94=parseInt(_0x20b234(0xce))/0x1*(-parseInt(_0x20b234(0xc8))/0x2)+parseInt(_0x20b234(0xc6))/0x3*(-parseInt(_0x20b234(0xc7))/0x4)+-parseInt(_0x20b234(0xcc))/0x5+parseInt(_0x20b234(0xd0))/0x6*(parseInt(_0x20b234(0xcb))/0x7)+-parseInt(_0x20b234(0xd1))/0x8*(parseInt(_0x20b234(0xcf))/0x9)+parseInt(_0x20b234(0xca))/0xa+parseInt(_0x20b234(0xcd))/0xb;if(_0x572e94===_0x5c0b4e)break;else _0x5c7d56['push'](_0x5c7d56['shift']());}catch(_0x564154){_0x5c7d56['push'](_0x5c7d56['shift']());}}}(a300_0x55aa,0x9b779));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a300_0x55aa(){var _0x4d405d=['12357lDDyEg','6svbHyq','3824GIqhTu','Failed\x20to\x20report\x20CLI\x20help\x20trace:','error','18sQnNTy','346348xNAVGh','66GXNSwY','cli.help','8976290JSRUda','4911697ZgKbpF','1218440SzRmSw','5560940zhEVZx','1471uoPxQE'];a300_0x55aa=function(){return _0x4d405d;};return a300_0x55aa();}export async function reportCliHelpTrace(_0x2ec90b,_0x329c5c){var _0x2a5222=a300_0xe8d8;try{await sendCliTraceLog({'spanName':_0x2a5222(0xc9),'logData':{'rabetbase.help.kind':_0x2ec90b,..._0x329c5c?.['service']&&{'rabetbase.help.service':_0x329c5c['service']}}});}catch(_0xa416a){console[_0x2a5222(0xc5)](_0x2a5222(0xc4),_0xa416a);}}
@@ -1 +1 @@
1
- (function(_0x13191d,_0x3aae1a){const _0x57c888=a287_0x2cf0,_0x290a1b=_0x13191d();while(!![]){try{const _0x43864c=-parseInt(_0x57c888(0x202))/0x1*(-parseInt(_0x57c888(0x1f5))/0x2)+parseInt(_0x57c888(0x1f6))/0x3*(parseInt(_0x57c888(0x201))/0x4)+parseInt(_0x57c888(0x1f4))/0x5+parseInt(_0x57c888(0x1f0))/0x6+-parseInt(_0x57c888(0x1f9))/0x7*(-parseInt(_0x57c888(0x1fe))/0x8)+-parseInt(_0x57c888(0x1f1))/0x9*(-parseInt(_0x57c888(0x1f8))/0xa)+-parseInt(_0x57c888(0x1fd))/0xb;if(_0x43864c===_0x3aae1a)break;else _0x290a1b['push'](_0x290a1b['shift']());}catch(_0x8116b){_0x290a1b['push'](_0x290a1b['shift']());}}}(a287_0x1285,0x3e298));function a287_0x1285(){const _0x4c9d5c=['1223615yWVPtZ','2gTSApa','6MADkBZ','unknown','1591630JkDIno','158879TZmNGm','production','tenant_code','tenant','15042863mdNEaW','120spYGdB','user','email','11228BYnUTk','266327uPbxgv','2680224hMrZvI','18YRcdTm','username','daily'];a287_0x1285=function(){return _0x4c9d5c;};return a287_0x1285();}import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a287_0x2cf0(_0x18f926,_0x3f5282){_0x18f926=_0x18f926-0x1f0;const _0x1285ab=a287_0x1285();let _0x2cf0ea=_0x1285ab[_0x18f926];return _0x2cf0ea;}import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0xbadbe6=a287_0x2cf0,_0x3704d5=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x2d0b86=_0x3704d5?.[_0xbadbe6(0x1ff)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0xbadbe6(0x1f7)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0xbadbe6(0x1f3):_0xbadbe6(0x1fa))}),setUserContext({'id':_0x2d0b86?.['id'],'username':_0x2d0b86?.[_0xbadbe6(0x1f2)],'nickname':_0x2d0b86?.['nickname'],'email':_0x2d0b86?.[_0xbadbe6(0x200)],'tenantCode':_0x2d0b86?.[_0xbadbe6(0x1fc)]?.[_0xbadbe6(0x1fb)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x3704d5;}
1
+ (function(_0xb44ad4,_0x5e3060){const _0x382e38=a301_0x204b,_0x93052a=_0xb44ad4();while(!![]){try{const _0x216ad1=-parseInt(_0x382e38(0x16e))/0x1+-parseInt(_0x382e38(0x16a))/0x2*(parseInt(_0x382e38(0x16f))/0x3)+-parseInt(_0x382e38(0x16c))/0x4*(-parseInt(_0x382e38(0x177))/0x5)+parseInt(_0x382e38(0x16d))/0x6+-parseInt(_0x382e38(0x176))/0x7*(parseInt(_0x382e38(0x178))/0x8)+-parseInt(_0x382e38(0x174))/0x9*(-parseInt(_0x382e38(0x168))/0xa)+-parseInt(_0x382e38(0x171))/0xb*(-parseInt(_0x382e38(0x170))/0xc);if(_0x216ad1===_0x5e3060)break;else _0x93052a['push'](_0x93052a['shift']());}catch(_0x231f87){_0x93052a['push'](_0x93052a['shift']());}}}(a301_0x3f6a,0x9792a));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];function a301_0x204b(_0x1dbd1f,_0x2cf3c5){_0x1dbd1f=_0x1dbd1f-0x168;const _0x3f6a4c=a301_0x3f6a();let _0x204bae=_0x3f6a4c[_0x1dbd1f];return _0x204bae;}function a301_0x3f6a(){const _0x12094f=['76293STiHhc','unknown','497ywrwVe','152095FFJsVh','47688DVaWae','860UVJOCE','tenant_code','2rdsYID','tenant','4yLpkRc','5750094zfQNpd','984429dmaUEz','601926tiTfbX','3068124vwSUoR','22FLFIgY','daily','user'];a301_0x3f6a=function(){return _0x12094f;};return a301_0x3f6a();}export async function ensureCliOtelTraceConfig(){const _0x411653=a301_0x204b,_0x141e70=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x1fcfb7=_0x141e70?.[_0x411653(0x173)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x411653(0x175)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x411653(0x172):'production')}),setUserContext({'id':_0x1fcfb7?.['id'],'username':_0x1fcfb7?.['username'],'nickname':_0x1fcfb7?.['nickname'],'email':_0x1fcfb7?.['email'],'tenantCode':_0x1fcfb7?.[_0x411653(0x16b)]?.[_0x411653(0x169)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x141e70;}
@@ -1 +1 @@
1
- (function(_0x51c838,_0x45ba7d){const _0x117db4=a288_0x3768,_0x39935c=_0x51c838();while(!![]){try{const _0x3a96fa=-parseInt(_0x117db4(0x1c1))/0x1+-parseInt(_0x117db4(0x1bb))/0x2+-parseInt(_0x117db4(0x1c7))/0x3+-parseInt(_0x117db4(0x1c6))/0x4*(-parseInt(_0x117db4(0x1c3))/0x5)+parseInt(_0x117db4(0x1bf))/0x6+parseInt(_0x117db4(0x1c4))/0x7*(-parseInt(_0x117db4(0x1c2))/0x8)+parseInt(_0x117db4(0x1c5))/0x9*(parseInt(_0x117db4(0x1be))/0xa);if(_0x3a96fa===_0x45ba7d)break;else _0x39935c['push'](_0x39935c['shift']());}catch(_0x5a13ae){_0x39935c['push'](_0x39935c['shift']());}}}(a288_0x3f4f,0x3fc85));import{shutdownTraces}from'@lovrabet/otel-logger';function a288_0x3768(_0x3db6b6,_0x529f3d){_0x3db6b6=_0x3db6b6-0x1bb;const _0x3f4f58=a288_0x3f4f();let _0x3768ab=_0x3f4f58[_0x3db6b6];return _0x3768ab;}function a288_0x3f4f(){const _0x46cf8b=['7245vdXfyX','7544493ajgcoF','2328VYdLWi','200157LlMjqK','175700MgTbLN','exit','SIGINT','10hLMTil','1975884bFyAXk','once','385682JPITie','3320FNCodl','545qeFejs'];a288_0x3f4f=function(){return _0x46cf8b;};return a288_0x3f4f();}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x4b36bc=a288_0x3768;process[_0x4b36bc(0x1c0)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x119a05=()=>{void flushOtelNodeIfUsed()['then'](()=>process['exit'](0x0));};process[_0x4b36bc(0x1c0)](_0x4b36bc(0x1bd),_0x119a05),process[_0x4b36bc(0x1c0)]('SIGTERM',_0x119a05);}export async function exitWithOtelShutdown(_0x36b21d){const _0x3eaa7c=a288_0x3768;await flushOtelNodeIfUsed(),process[_0x3eaa7c(0x1bc)](_0x36b21d);}
1
+ (function(_0x20f898,_0x5bd0dc){const _0x376b7b=a302_0x23ec,_0x567686=_0x20f898();while(!![]){try{const _0x43bc02=-parseInt(_0x376b7b(0x195))/0x1*(parseInt(_0x376b7b(0x199))/0x2)+parseInt(_0x376b7b(0x198))/0x3*(-parseInt(_0x376b7b(0x192))/0x4)+parseInt(_0x376b7b(0x19a))/0x5+parseInt(_0x376b7b(0x19b))/0x6+-parseInt(_0x376b7b(0x193))/0x7*(parseInt(_0x376b7b(0x197))/0x8)+-parseInt(_0x376b7b(0x19e))/0x9*(parseInt(_0x376b7b(0x19f))/0xa)+parseInt(_0x376b7b(0x194))/0xb*(parseInt(_0x376b7b(0x19d))/0xc);if(_0x43bc02===_0x5bd0dc)break;else _0x567686['push'](_0x567686['shift']());}catch(_0x5dd4d1){_0x567686['push'](_0x567686['shift']());}}}(a302_0x4468,0xd5449));import{shutdownTraces}from'@lovrabet/otel-logger';function a302_0x4468(){const _0x26ea1a=['then','972BaGYpG','2259187eIaGHD','484vaNMyW','1FSYFnM','SIGTERM','8iBCZvO','9324dXLuWH','2075746yqQEur','1103360TZYBpV','5838432jsoRAs','SIGINT','632784qnKlbE','127593RTNXgD','370RhImwf','once','exit','beforeExit'];a302_0x4468=function(){return _0x26ea1a;};return a302_0x4468();}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x5abba9=a302_0x23ec;process['once'](_0x5abba9(0x190),()=>{void flushOtelNodeIfUsed();});const _0x42e183=()=>{const _0x58aa0d=_0x5abba9;void flushOtelNodeIfUsed()[_0x58aa0d(0x191)](()=>process[_0x58aa0d(0x18f)](0x0));};process[_0x5abba9(0x18e)](_0x5abba9(0x19c),_0x42e183),process[_0x5abba9(0x18e)](_0x5abba9(0x196),_0x42e183);}function a302_0x23ec(_0x4adaa0,_0x269b4c){_0x4adaa0=_0x4adaa0-0x18e;const _0x4468d4=a302_0x4468();let _0x23ec7a=_0x4468d4[_0x4adaa0];return _0x23ec7a;}export async function exitWithOtelShutdown(_0x217710){const _0x5a76b7=a302_0x23ec;await flushOtelNodeIfUsed(),process[_0x5a76b7(0x18f)](_0x217710);}
@@ -1 +1 @@
1
- (function(_0x3286fa,_0x4b434e){const _0x3e3d63=a289_0x2d7c,_0x578bc7=_0x3286fa();while(!![]){try{const _0x107ce7=parseInt(_0x3e3d63(0xb0))/0x1+-parseInt(_0x3e3d63(0xa9))/0x2*(parseInt(_0x3e3d63(0xac))/0x3)+parseInt(_0x3e3d63(0xb2))/0x4+-parseInt(_0x3e3d63(0xb4))/0x5+parseInt(_0x3e3d63(0xb5))/0x6+-parseInt(_0x3e3d63(0xb3))/0x7+parseInt(_0x3e3d63(0xb1))/0x8;if(_0x107ce7===_0x4b434e)break;else _0x578bc7['push'](_0x578bc7['shift']());}catch(_0xca22d8){_0x578bc7['push'](_0x578bc7['shift']());}}}(a289_0x3f26,0x41eba));import{sendTraceLog}from'@lovrabet/otel-logger';function a289_0x3f26(){const _0x101565=['2300347Vgmyzn','445240VTuVDI','2678424VfcfsM','traceName','6310DqnEsI','version','traceparent','249sADOsj','logData','manual','spanName','283703cuESRy','1387288aNgWJm','184104bYOXIm'];a289_0x3f26=function(){return _0x101565;};return a289_0x3f26();}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a289_0x2d7c(_0xec15b5,_0x395e3f){_0xec15b5=_0xec15b5-0xa9;const _0x3f2679=a289_0x3f26();let _0x2d7c54=_0x3f2679[_0xec15b5];return _0x2d7c54;}const DEFAULT_TRACE_NAME='rabetbase-cli';export async function sendCliTraceLog(_0x5b21e8){const _0x59203e=a289_0x2d7c;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x5b21e8[_0x59203e(0xb6)]??DEFAULT_TRACE_NAME,'version':_0x5b21e8[_0x59203e(0xaa)]??getCliVersion(),'spanName':_0x5b21e8[_0x59203e(0xaf)],'eventType':_0x59203e(0xae),'logData':_0x5b21e8[_0x59203e(0xad)],..._0x5b21e8[_0x59203e(0xab)]&&{'traceparent':_0x5b21e8[_0x59203e(0xab)]}});}
1
+ const a303_0x3d7d3f=a303_0x5626;(function(_0xa29125,_0x5cedde){const _0x3b192e=a303_0x5626,_0x29f85b=_0xa29125();while(!![]){try{const _0x2d2741=-parseInt(_0x3b192e(0x137))/0x1*(parseInt(_0x3b192e(0x13b))/0x2)+-parseInt(_0x3b192e(0x130))/0x3*(parseInt(_0x3b192e(0x131))/0x4)+parseInt(_0x3b192e(0x139))/0x5+-parseInt(_0x3b192e(0x13d))/0x6*(-parseInt(_0x3b192e(0x13c))/0x7)+parseInt(_0x3b192e(0x12d))/0x8+-parseInt(_0x3b192e(0x138))/0x9*(parseInt(_0x3b192e(0x134))/0xa)+parseInt(_0x3b192e(0x12f))/0xb;if(_0x2d2741===_0x5cedde)break;else _0x29f85b['push'](_0x29f85b['shift']());}catch(_0xf2fa5d){_0x29f85b['push'](_0x29f85b['shift']());}}}(a303_0x278f,0xa6595));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a303_0x5626(_0x23ab7e,_0x568d2a){_0x23ab7e=_0x23ab7e-0x12d;const _0x278f5b=a303_0x278f();let _0x5626c0=_0x278f5b[_0x23ab7e];return _0x5626c0;}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a303_0x3d7d3f(0x12e);export async function sendCliTraceLog(_0x15eb41){const _0x2d5652=a303_0x3d7d3f;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x15eb41['traceName']??DEFAULT_TRACE_NAME,'version':_0x15eb41[_0x2d5652(0x135)]??getCliVersion(),'spanName':_0x15eb41[_0x2d5652(0x133)],'eventType':_0x2d5652(0x136),'logData':_0x15eb41[_0x2d5652(0x132)],..._0x15eb41[_0x2d5652(0x13a)]&&{'traceparent':_0x15eb41[_0x2d5652(0x13a)]}});}function a303_0x278f(){const _0x24b3bc=['7XcuLYG','5424930ogUPsX','4353872fmpzUW','rabetbase-cli','4115573pYWtjw','1275621Kepmjj','4nrrGEA','logData','spanName','6821060BzOVHw','version','manual','105327NxMnnJ','9xTZOxr','5097080CJNuqg','traceparent','20FpYeKH'];a303_0x278f=function(){return _0x24b3bc;};return a303_0x278f();}
@@ -1 +1 @@
1
- function a290_0x13d8(){const _0x50c706=['35005YgEhct','186NxgBZT','9326601QnzZRc','77918lBGztr','join','8fylCkL','sanitize','2254800dTLXzU','redactionCount','originalBytes','description','11932cuJrJE','redactionKinds','548616LJQecl','platform-issue-log-collect','647423mXeofT'];a290_0x13d8=function(){return _0x50c706;};return a290_0x13d8();}const a290_0x2fcbff=a290_0x1a58;(function(_0x15bfa3,_0x20e20b){const _0x5440e8=a290_0x1a58,_0x4edc16=_0x15bfa3();while(!![]){try{const _0x4d6e09=parseInt(_0x5440e8(0x14b))/0x1+-parseInt(_0x5440e8(0x143))/0x2+-parseInt(_0x5440e8(0x14d))/0x3*(parseInt(_0x5440e8(0x145))/0x4)+parseInt(_0x5440e8(0x140))/0x5*(-parseInt(_0x5440e8(0x141))/0x6)+parseInt(_0x5440e8(0x13f))/0x7+-parseInt(_0x5440e8(0x147))/0x8+parseInt(_0x5440e8(0x142))/0x9;if(_0x4d6e09===_0x20e20b)break;else _0x4edc16['push'](_0x4edc16['shift']());}catch(_0x55e11f){_0x4edc16['push'](_0x4edc16['shift']());}}}(a290_0x13d8,0x39e46));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a290_0x2fcbff(0x14e);function a290_0x1a58(_0x42de84,_0xfda18b){_0x42de84=_0x42de84-0x13f;const _0x13d85f=a290_0x13d8();let _0x1a58e9=_0x13d85f[_0x42de84];return _0x1a58e9;}export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';export async function sendPlatformIssueCollectLog(_0x5a8630){const _0x5bb55f=a290_0x2fcbff;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x5a8630['title'],'issue.description':_0x5a8630[_0x5bb55f(0x14a)],..._0x5a8630[_0x5bb55f(0x146)]?{'issue.description_original_bytes':_0x5a8630[_0x5bb55f(0x146)][_0x5bb55f(0x149)],'issue.description_truncated':_0x5a8630[_0x5bb55f(0x146)]['truncated'],'issue.description_redactions':_0x5a8630['sanitize'][_0x5bb55f(0x148)],'issue.description_redaction_kinds':_0x5a8630[_0x5bb55f(0x146)][_0x5bb55f(0x14c)][_0x5bb55f(0x144)](',')}:{}}});}
1
+ const a304_0x358198=a304_0x4ade;(function(_0x91877e,_0x22f265){const _0x943826=a304_0x4ade,_0x59b489=_0x91877e();while(!![]){try{const _0x6ad428=-parseInt(_0x943826(0x14a))/0x1*(parseInt(_0x943826(0x141))/0x2)+-parseInt(_0x943826(0x14d))/0x3+parseInt(_0x943826(0x146))/0x4*(-parseInt(_0x943826(0x148))/0x5)+-parseInt(_0x943826(0x13e))/0x6+parseInt(_0x943826(0x13f))/0x7*(-parseInt(_0x943826(0x14c))/0x8)+parseInt(_0x943826(0x14b))/0x9*(parseInt(_0x943826(0x14e))/0xa)+parseInt(_0x943826(0x149))/0xb;if(_0x6ad428===_0x22f265)break;else _0x59b489['push'](_0x59b489['shift']());}catch(_0x37b4f9){_0x59b489['push'](_0x59b489['shift']());}}}(a304_0x1a80,0x6a41b));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a304_0x358198(0x140);function a304_0x4ade(_0x2831f1,_0x219e34){_0x2831f1=_0x2831f1-0x13d;const _0x1a80c7=a304_0x1a80();let _0x4adecd=_0x1a80c7[_0x2831f1];return _0x4adecd;}function a304_0x1a80(){const _0x9cb1ac=['description','4888782VVPlgE','6027049JoNrpF','platform-issue-log-collect','13996bQSTlt','title','truncated','join','sanitize','2572OSuTJv','redactionKinds','1545yeBWlF','32306417pPrdxk','124TzjkhE','18513uqgMhb','8zkozlw','148542McyFDJ','1410bnfwbX'];a304_0x1a80=function(){return _0x9cb1ac;};return a304_0x1a80();}export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';export async function sendPlatformIssueCollectLog(_0x230dbc){const _0x1b7c9c=a304_0x358198;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x230dbc[_0x1b7c9c(0x142)],'issue.description':_0x230dbc[_0x1b7c9c(0x13d)],..._0x230dbc[_0x1b7c9c(0x145)]?{'issue.description_original_bytes':_0x230dbc[_0x1b7c9c(0x145)]['originalBytes'],'issue.description_truncated':_0x230dbc['sanitize'][_0x1b7c9c(0x143)],'issue.description_redactions':_0x230dbc[_0x1b7c9c(0x145)]['redactionCount'],'issue.description_redaction_kinds':_0x230dbc['sanitize'][_0x1b7c9c(0x147)][_0x1b7c9c(0x144)](',')}:{}}});}
@@ -1 +1 @@
1
- const a292_0x1e9bd5=a292_0x5c24;(function(_0x24492d,_0x218556){const _0x1734a8=a292_0x5c24,_0x3e401c=_0x24492d();while(!![]){try{const _0x3790b9=parseInt(_0x1734a8(0x10e))/0x1*(-parseInt(_0x1734a8(0x11d))/0x2)+parseInt(_0x1734a8(0x121))/0x3*(parseInt(_0x1734a8(0xf6))/0x4)+-parseInt(_0x1734a8(0x110))/0x5+-parseInt(_0x1734a8(0x10a))/0x6+-parseInt(_0x1734a8(0x100))/0x7*(parseInt(_0x1734a8(0xfb))/0x8)+parseInt(_0x1734a8(0x101))/0x9*(-parseInt(_0x1734a8(0x111))/0xa)+parseInt(_0x1734a8(0x117))/0xb;if(_0x3790b9===_0x218556)break;else _0x3e401c['push'](_0x3e401c['shift']());}catch(_0x5486b6){_0x3e401c['push'](_0x3e401c['shift']());}}}(a292_0x3c54,0x4adbd));export const CORE_IDE_CONFIGS={'cursor':{'name':a292_0x1e9bd5(0x116),'description':'Cursor\x20IDE','folders':['.cursorrules','.cursor'],'files':[{'type':'file','path':a292_0x1e9bd5(0xfd)}]},'windsurf':{'name':'Windsurf','description':'Windsurf\x20IDE','folders':[a292_0x1e9bd5(0xf2)],'files':[{'type':a292_0x1e9bd5(0x124),'path':a292_0x1e9bd5(0x109)}]},'claude':{'name':'Claude\x20Code','description':a292_0x1e9bd5(0x10d),'folders':[a292_0x1e9bd5(0x10b)],'files':[{'type':a292_0x1e9bd5(0x124),'path':'.claude/skills/lovrabet/SKILL.md'}]},'cline':{'name':a292_0x1e9bd5(0xfe),'description':a292_0x1e9bd5(0x102),'folders':[a292_0x1e9bd5(0x113)],'files':[{'type':a292_0x1e9bd5(0x124),'path':'.cline/skills/lovrabet/SKILL.md'}]},'codex':{'name':a292_0x1e9bd5(0x118),'description':'Codex\x20IDE','folders':[a292_0x1e9bd5(0x108)],'files':[{'type':a292_0x1e9bd5(0x124),'path':a292_0x1e9bd5(0x120)}]},'opencode':{'name':'OpenCode','description':a292_0x1e9bd5(0x11c),'folders':[a292_0x1e9bd5(0x10c)],'files':[{'type':a292_0x1e9bd5(0x124),'path':a292_0x1e9bd5(0xfc)}]},'qoder':{'name':a292_0x1e9bd5(0x114),'description':'Qoder\x20IDE','folders':[a292_0x1e9bd5(0x106)],'files':[{'type':a292_0x1e9bd5(0x124),'path':a292_0x1e9bd5(0x11b)},{'type':'file','path':a292_0x1e9bd5(0x112)}]},'codebuddy':{'name':a292_0x1e9bd5(0xfa),'description':a292_0x1e9bd5(0x11e),'folders':[a292_0x1e9bd5(0xf8)],'files':[{'type':a292_0x1e9bd5(0x124),'path':'.codebuddy/skills/lovrabet/SKILL.md'}]},'trae':{'name':a292_0x1e9bd5(0x119),'description':a292_0x1e9bd5(0x105),'folders':[a292_0x1e9bd5(0x122)],'files':[{'type':'file','path':a292_0x1e9bd5(0x11f)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'Other\x20(generic\x20template)','description':a292_0x1e9bd5(0x115),'folders':[a292_0x1e9bd5(0x125)],'files':[{'type':a292_0x1e9bd5(0x124),'path':a292_0x1e9bd5(0xf5)}]},'antigravity':{'name':'Antigravity','description':a292_0x1e9bd5(0xf9),'folders':['.agent'],'files':[{'type':a292_0x1e9bd5(0x124),'path':a292_0x1e9bd5(0xf5)}]}};export const CORE_IDE_LIST=[a292_0x1e9bd5(0xff),'cline',a292_0x1e9bd5(0x103),a292_0x1e9bd5(0xf3),a292_0x1e9bd5(0x126),a292_0x1e9bd5(0x11a),'qoder','trae',a292_0x1e9bd5(0x107)];export const IDE_LIST=[a292_0x1e9bd5(0xf4),a292_0x1e9bd5(0xff),a292_0x1e9bd5(0xf7),a292_0x1e9bd5(0x103),'codex',a292_0x1e9bd5(0x126),a292_0x1e9bd5(0x11a),'qoder',a292_0x1e9bd5(0x10f),a292_0x1e9bd5(0x107),a292_0x1e9bd5(0x123)];function a292_0x3c54(){const _0x1610dd=['cline','.codebuddy','Antigravity\x20IDE','CodeBuddy','1201840nICqRL','.opencode/skills/lovrabet/SKILL.md','.cursor/skills/rabetbase.md','Cline','claude','7tFnFfH','45hJWsxi','Cline\x20IDE','codebuddy','qoder','Trae\x20IDE','.qoder','windsurf','.codex','.windsurf/workflows/rabetbase.md','3655506GLBHWc','.claude','.opencode','Claude\x20Code','1NUNuHM','trae','231485bwCdjN','1170650DMSSha','.qoder/skills/lovrabet/SKILL.md','.cline','Qoder','Generic\x20template\x20fallback','Cursor','21260206GxPeEH','Codex','Trae','opencode','.qoder/rules/rabetbase.md','OpenCode\x20IDE','600146KRnMhp','CodeBuddy\x20IDE','.trae/skills/lovrabet/SKILL.md','.codex/skills/lovrabet/SKILL.md','27879xrVMdp','.trae','agent','file','.agent','cursor','.windsurf','codex','antigravity','.agent/skills/lovrabet/SKILL.md','28JCaPUr'];a292_0x3c54=function(){return _0x1610dd;};return a292_0x3c54();}function a292_0x5c24(_0x233ae5,_0x1f67b7){_0x233ae5=_0x233ae5-0xf2;const _0x3c54df=a292_0x3c54();let _0x5c244b=_0x3c54df[_0x233ae5];return _0x5c244b;}export const ALL_CORE_IDES=[a292_0x1e9bd5(0x126),a292_0x1e9bd5(0x107),a292_0x1e9bd5(0xff),a292_0x1e9bd5(0xf7),a292_0x1e9bd5(0xf3),'opencode',a292_0x1e9bd5(0x104),a292_0x1e9bd5(0x103),a292_0x1e9bd5(0x10f)];
1
+ const a306_0x23e8c5=a306_0x51ab;(function(_0x55306b,_0x1daddb){const _0x18c2ed=a306_0x51ab,_0x461180=_0x55306b();while(!![]){try{const _0x25dd61=parseInt(_0x18c2ed(0x123))/0x1+-parseInt(_0x18c2ed(0x110))/0x2*(-parseInt(_0x18c2ed(0x10b))/0x3)+-parseInt(_0x18c2ed(0x12a))/0x4*(parseInt(_0x18c2ed(0x113))/0x5)+-parseInt(_0x18c2ed(0x118))/0x6+-parseInt(_0x18c2ed(0x120))/0x7+parseInt(_0x18c2ed(0x125))/0x8*(parseInt(_0x18c2ed(0x127))/0x9)+-parseInt(_0x18c2ed(0x117))/0xa*(parseInt(_0x18c2ed(0x10f))/0xb);if(_0x25dd61===_0x1daddb)break;else _0x461180['push'](_0x461180['shift']());}catch(_0x2e0f58){_0x461180['push'](_0x461180['shift']());}}}(a306_0x406f,0xb5b30));function a306_0x406f(){const _0x607a46=['codebuddy','.codex','.agent','.cursor/skills/rabetbase.md','antigravity','Generic\x20template\x20fallback','CodeBuddy','.codebuddy','.claude','Claude\x20Code','Windsurf\x20IDE','45iTiuhx','.trae/skills/lovrabet/SKILL.md','.opencode/skills/lovrabet/SKILL.md','.cline','11189794VAHyGu','47412OpCLxR','Codex\x20IDE','.claude/skills/lovrabet/SKILL.md','116015pyDVWy','Cursor','trae','CodeBuddy\x20IDE','10LWWydJ','3328710JHSLHD','.windsurf/workflows/rabetbase.md','cursor','.cursorrules','.trae','Cursor\x20IDE','.codex/skills/lovrabet/SKILL.md','opencode','2778958iWEhuG','Codex','.agent/skills/lovrabet/SKILL.md','1456606OcNyyq','claude','611624fqMbul','cline','117LFkdrc','.cline/skills/lovrabet/SKILL.md','.codebuddy/skills/lovrabet/SKILL.md','16mcqGfJ','.cursor','windsurf','codex','Qoder\x20IDE','file','OpenCode\x20IDE','OpenCode','qoder'];a306_0x406f=function(){return _0x607a46;};return a306_0x406f();}export const CORE_IDE_CONFIGS={'cursor':{'name':a306_0x23e8c5(0x114),'description':a306_0x23e8c5(0x11d),'folders':[a306_0x23e8c5(0x11b),a306_0x23e8c5(0x12b)],'files':[{'type':a306_0x23e8c5(0xfc),'path':a306_0x23e8c5(0x103)}]},'windsurf':{'name':'Windsurf','description':a306_0x23e8c5(0x10a),'folders':['.windsurf'],'files':[{'type':a306_0x23e8c5(0xfc),'path':a306_0x23e8c5(0x119)}]},'claude':{'name':a306_0x23e8c5(0x109),'description':a306_0x23e8c5(0x109),'folders':[a306_0x23e8c5(0x108)],'files':[{'type':a306_0x23e8c5(0xfc),'path':a306_0x23e8c5(0x112)}]},'cline':{'name':'Cline','description':'Cline\x20IDE','folders':[a306_0x23e8c5(0x10e)],'files':[{'type':a306_0x23e8c5(0xfc),'path':a306_0x23e8c5(0x128)}]},'codex':{'name':a306_0x23e8c5(0x121),'description':a306_0x23e8c5(0x111),'folders':[a306_0x23e8c5(0x101)],'files':[{'type':a306_0x23e8c5(0xfc),'path':a306_0x23e8c5(0x11e)}]},'opencode':{'name':a306_0x23e8c5(0xfe),'description':a306_0x23e8c5(0xfd),'folders':['.opencode'],'files':[{'type':'file','path':a306_0x23e8c5(0x10d)}]},'qoder':{'name':'Qoder','description':a306_0x23e8c5(0xfb),'folders':['.qoder'],'files':[{'type':a306_0x23e8c5(0xfc),'path':'.qoder/rules/rabetbase.md'},{'type':'file','path':'.qoder/skills/lovrabet/SKILL.md'}]},'codebuddy':{'name':a306_0x23e8c5(0x106),'description':a306_0x23e8c5(0x116),'folders':[a306_0x23e8c5(0x107)],'files':[{'type':a306_0x23e8c5(0xfc),'path':a306_0x23e8c5(0x129)}]},'trae':{'name':'Trae','description':'Trae\x20IDE','folders':[a306_0x23e8c5(0x11c)],'files':[{'type':a306_0x23e8c5(0xfc),'path':a306_0x23e8c5(0x10c)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'Other\x20(generic\x20template)','description':a306_0x23e8c5(0x105),'folders':[a306_0x23e8c5(0x102)],'files':[{'type':a306_0x23e8c5(0xfc),'path':a306_0x23e8c5(0x122)}]},'antigravity':{'name':'Antigravity','description':'Antigravity\x20IDE','folders':[a306_0x23e8c5(0x102)],'files':[{'type':a306_0x23e8c5(0xfc),'path':a306_0x23e8c5(0x122)}]}};export const CORE_IDE_LIST=[a306_0x23e8c5(0x124),a306_0x23e8c5(0x126),'codebuddy','codex','cursor','opencode',a306_0x23e8c5(0xff),'trae','windsurf'];export const IDE_LIST=[a306_0x23e8c5(0x104),'claude',a306_0x23e8c5(0x126),a306_0x23e8c5(0x100),a306_0x23e8c5(0xfa),a306_0x23e8c5(0x11a),a306_0x23e8c5(0x11f),'qoder',a306_0x23e8c5(0x115),a306_0x23e8c5(0xf9),'agent'];function a306_0x51ab(_0x1fb566,_0x34da85){_0x1fb566=_0x1fb566-0xf9;const _0x406ff2=a306_0x406f();let _0x51ab13=_0x406ff2[_0x1fb566];return _0x51ab13;}export const ALL_CORE_IDES=[a306_0x23e8c5(0x11a),'windsurf',a306_0x23e8c5(0x124),a306_0x23e8c5(0x126),a306_0x23e8c5(0xfa),a306_0x23e8c5(0x11f),'qoder','codebuddy',a306_0x23e8c5(0x115)];
@@ -1 +1 @@
1
- function a293_0x568c(){const _0x2d0486=['5668EiSQVb','6KMquQc','908910GvkTEl','28795tEgcMK','9062750ECzEqq','86704gBqeLk','669896raOoOM','246bUHQcJ','1323222IkxzYo','7wAOMRY'];a293_0x568c=function(){return _0x2d0486;};return a293_0x568c();}(function(_0x1fa106,_0x621ed8){const _0x294ae1=a293_0x5a3a,_0x10e6a8=_0x1fa106();while(!![]){try{const _0x2fb6a9=parseInt(_0x294ae1(0x13f))/0x1*(-parseInt(_0x294ae1(0x143))/0x2)+parseInt(_0x294ae1(0x145))/0x3*(-parseInt(_0x294ae1(0x13e))/0x4)+parseInt(_0x294ae1(0x141))/0x5+-parseInt(_0x294ae1(0x146))/0x6+-parseInt(_0x294ae1(0x147))/0x7*(parseInt(_0x294ae1(0x144))/0x8)+-parseInt(_0x294ae1(0x140))/0x9+parseInt(_0x294ae1(0x142))/0xa;if(_0x2fb6a9===_0x621ed8)break;else _0x10e6a8['push'](_0x10e6a8['shift']());}catch(_0x12ff68){_0x10e6a8['push'](_0x10e6a8['shift']());}}}(a293_0x568c,0x1fda0));function a293_0x5a3a(_0x52c25b,_0x377b9d){_0x52c25b=_0x52c25b-0x13e;const _0x568ce0=a293_0x568c();let _0x5a3a81=_0x568ce0[_0x52c25b];return _0x5a3a81;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x20f3bd,_0x5700b3){const _0x3e2389=a307_0x39b4,_0x9802fa=_0x20f3bd();while(!![]){try{const _0x29836e=-parseInt(_0x3e2389(0x6f))/0x1*(parseInt(_0x3e2389(0x70))/0x2)+-parseInt(_0x3e2389(0x69))/0x3*(-parseInt(_0x3e2389(0x6d))/0x4)+parseInt(_0x3e2389(0x6b))/0x5+parseInt(_0x3e2389(0x6e))/0x6*(-parseInt(_0x3e2389(0x67))/0x7)+-parseInt(_0x3e2389(0x6a))/0x8*(-parseInt(_0x3e2389(0x71))/0x9)+parseInt(_0x3e2389(0x72))/0xa*(parseInt(_0x3e2389(0x6c))/0xb)+-parseInt(_0x3e2389(0x68))/0xc;if(_0x29836e===_0x5700b3)break;else _0x9802fa['push'](_0x9802fa['shift']());}catch(_0x329093){_0x9802fa['push'](_0x9802fa['shift']());}}}(a307_0x4e0b,0x8dc5e));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a307_0x39b4(_0x1a7898,_0x56b2ad){_0x1a7898=_0x1a7898-0x67;const _0x4e0b41=a307_0x4e0b();let _0x39b4ba=_0x4e0b41[_0x1a7898];return _0x39b4ba;}import{CliErrors}from'../errors.js';function a307_0x4e0b(){const _0xbce62d=['235332oOjmiJ','28TqMGkA','10902QGlUvx','324KySYxg','10NkTaCj','91FDTAOh','19620948xrQLQV','15guVyia','67816xPornr','2823870iwlcvh','9907689sxhBYQ','886120uMKdvN'];a307_0x4e0b=function(){return _0xbce62d;};return a307_0x4e0b();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x5cf442,_0x2a96ad){const _0x4a68bd=a294_0x28db,_0xeb96f1=_0x5cf442();while(!![]){try{const _0xbb0f5c=parseInt(_0x4a68bd(0x82))/0x1+parseInt(_0x4a68bd(0x8a))/0x2*(-parseInt(_0x4a68bd(0x84))/0x3)+-parseInt(_0x4a68bd(0x7f))/0x4*(parseInt(_0x4a68bd(0x7d))/0x5)+parseInt(_0x4a68bd(0x83))/0x6+parseInt(_0x4a68bd(0x87))/0x7*(parseInt(_0x4a68bd(0x81))/0x8)+-parseInt(_0x4a68bd(0x7e))/0x9+parseInt(_0x4a68bd(0x89))/0xa;if(_0xbb0f5c===_0x2a96ad)break;else _0xeb96f1['push'](_0xeb96f1['shift']());}catch(_0x39df0c){_0xeb96f1['push'](_0xeb96f1['shift']());}}}(a294_0x4dc8,0xabc51));import{getTemplateBaseUrl}from'../utils/config.js';function a294_0x4dc8(){const _0x167b2b=['3401520LihsCV','66ncYJEp','cli','/config.json','441hfdURS','now','18804700QlxnnX','31878vBGAaA','json','/config/index.json','application/json','5014985kzGCaX','10419201RMBbVf','4WUMFYn','stableVersion','29768tXpbfR','533100nBsoOH'];a294_0x4dc8=function(){return _0x167b2b;};return a294_0x4dc8();}export async function fetchCdnConfig(){const _0x1cca21=a294_0x28db,_0x3c2234=getTemplateBaseUrl(),_0x58ebbb=[_0x3c2234+_0x1cca21(0x86),_0x3c2234+_0x1cca21(0x7b)];for(const _0x4a5190 of _0x58ebbb){try{const _0x403a54=await fetch(_0x4a5190,{'headers':{'Accept':_0x1cca21(0x7c)}});if(!_0x403a54['ok'])continue;const _0x4d2d16=await _0x403a54[_0x1cca21(0x7a)]();if(!_0x4d2d16[_0x1cca21(0x85)]?.[_0x1cca21(0x80)]||!_0x4d2d16['sdk']?.['node']?.[_0x1cca21(0x80)])continue;return _0x4d2d16;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];function a294_0x28db(_0x579ac8,_0x343897){_0x579ac8=_0x579ac8-0x7a;const _0x4dc8cc=a294_0x4dc8();let _0x28db18=_0x4dc8cc[_0x579ac8];return _0x28db18;}export async function getCdnConfig(){const _0x3999c5=a294_0x28db,_0x4e014e=Date[_0x3999c5(0x88)]();if(hasCachedConfig){const _0x1d206b=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x4e014e-cacheTime<_0x1d206b)return cachedConfig;}const _0x4830ea=await fetchCdnConfig();return cachedConfig=_0x4830ea,cacheTime=_0x4e014e,hasCachedConfig=!![],_0x4830ea;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x1f40bd,_0x357b13){const _0x336742=a308_0x5c72,_0x310895=_0x1f40bd();while(!![]){try{const _0x5c21cc=-parseInt(_0x336742(0x6d))/0x1+parseInt(_0x336742(0x6b))/0x2+parseInt(_0x336742(0x73))/0x3+-parseInt(_0x336742(0x68))/0x4+-parseInt(_0x336742(0x6f))/0x5*(parseInt(_0x336742(0x6e))/0x6)+-parseInt(_0x336742(0x74))/0x7*(-parseInt(_0x336742(0x69))/0x8)+-parseInt(_0x336742(0x71))/0x9;if(_0x5c21cc===_0x357b13)break;else _0x310895['push'](_0x310895['shift']());}catch(_0x546808){_0x310895['push'](_0x310895['shift']());}}}(a308_0x421b,0xa6f27));import{getTemplateBaseUrl}from'../utils/config.js';function a308_0x421b(){const _0x5bd94a=['3291081giHMks','84RwKCZh','now','node','json','1773084CqCoDW','490480LCpDno','/config.json','888586PuvxqN','application/json','605900nCrLbC','7428JEUSFP','1090EqhByU','sdk','2467530FaDpMR','stableVersion'];a308_0x421b=function(){return _0x5bd94a;};return a308_0x421b();}export async function fetchCdnConfig(){const _0x1ae902=a308_0x5c72,_0xdb8574=getTemplateBaseUrl(),_0x36d3a1=[_0xdb8574+_0x1ae902(0x6a),_0xdb8574+'/config/index.json'];for(const _0x5d4b11 of _0x36d3a1){try{const _0x3b0623=await fetch(_0x5d4b11,{'headers':{'Accept':_0x1ae902(0x6c)}});if(!_0x3b0623['ok'])continue;const _0x86abeb=await _0x3b0623[_0x1ae902(0x77)]();if(!_0x86abeb['cli']?.[_0x1ae902(0x72)]||!_0x86abeb[_0x1ae902(0x70)]?.[_0x1ae902(0x76)]?.['stableVersion'])continue;return _0x86abeb;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x17a5e6=a308_0x5c72,_0x411882=Date[_0x17a5e6(0x75)]();if(hasCachedConfig){const _0x23a859=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x411882-cacheTime<_0x23a859)return cachedConfig;}const _0x505e05=await fetchCdnConfig();return cachedConfig=_0x505e05,cacheTime=_0x411882,hasCachedConfig=!![],_0x505e05;}function a308_0x5c72(_0x4c087a,_0x462a65){_0x4c087a=_0x4c087a-0x68;const _0x421bd1=a308_0x421b();let _0x5c7267=_0x421bd1[_0x4c087a];return _0x5c7267;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a295_0x5dc0c9=a295_0x5c4d;(function(_0x59288d,_0x3071a3){const _0x165c74=a295_0x5c4d,_0xe0ec94=_0x59288d();while(!![]){try{const _0x45023d=parseInt(_0x165c74(0xa3))/0x1+parseInt(_0x165c74(0x8f))/0x2+parseInt(_0x165c74(0x8d))/0x3+parseInt(_0x165c74(0xa7))/0x4+parseInt(_0x165c74(0x9d))/0x5+-parseInt(_0x165c74(0x9e))/0x6+-parseInt(_0x165c74(0x8e))/0x7;if(_0x45023d===_0x3071a3)break;else _0xe0ec94['push'](_0xe0ec94['shift']());}catch(_0x41a884){_0xe0ec94['push'](_0xe0ec94['shift']());}}}(a295_0x3fc3,0xdc135));import a295_0x4859b7 from'node:fs';import a295_0x36b2d2 from'node:path';import a295_0x4212a5 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a295_0x5dc0c9(0x99);function isNonNumericVersion(_0x5b063a){const _0x53cc37=a295_0x5dc0c9,_0x4ec99b=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x4ec99b[_0x53cc37(0x91)](_0x4522d0=>_0x4522d0[_0x53cc37(0x8c)](_0x5b063a));}function getInstalledVersion(_0xfeb386,_0x2d1266){const _0x517a5b=a295_0x5dc0c9;try{const _0x3ac341=a295_0x36b2d2[_0x517a5b(0x92)](_0xfeb386,'node_modules',_0x2d1266,_0x517a5b(0xa0));if(a295_0x4859b7[_0x517a5b(0x9c)](_0x3ac341)){const _0x598b8d=JSON[_0x517a5b(0x88)](a295_0x4859b7[_0x517a5b(0xa6)](_0x3ac341,_0x517a5b(0x8a)));return _0x598b8d[_0x517a5b(0x9f)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x5281ed=a295_0x5dc0c9;try{const _0xb19305=await getCdnConfig();return _0xb19305?.[_0x5281ed(0x9b)]?.['node']?.[_0x5281ed(0x85)]||null;}catch{return null;}}function a295_0x5c4d(_0x5c6085,_0x27deac){_0x5c6085=_0x5c6085-0x85;const _0x3fc3f8=a295_0x3fc3();let _0x5c4d58=_0x3fc3f8[_0x5c6085];return _0x5c4d58;}async function getSdkPackageName(){const _0xa09441=a295_0x5dc0c9;try{const _0x3bb1ef=await getCdnConfig();return _0x3bb1ef?.[_0xa09441(0x9b)]?.[_0xa09441(0x98)]?.[_0xa09441(0x86)]||_0xa09441(0x96);}catch{return _0xa09441(0x96);}}export async function checkSdkVersion(_0x3a3d5a){const _0x442867=a295_0x5dc0c9,_0x4e576c=a295_0x36b2d2[_0x442867(0x92)](_0x3a3d5a,_0x442867(0xa0)),[_0x28b956,_0xfd7097]=await Promise[_0x442867(0x87)]([getSdkStableVersion(),getSdkPackageName()]),_0x255255=_0x28b956||FALLBACK_MIN_SDK_VERSION;if(!a295_0x4859b7[_0x442867(0x9c)](_0x4e576c))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x255255,'packageName':_0xfd7097,'stableVersion':_0x28b956};try{const _0x379434=JSON[_0x442867(0x88)](a295_0x4859b7[_0x442867(0xa6)](_0x4e576c,_0x442867(0xa5))),_0x110cb6=_0x379434[_0x442867(0x95)]||{},_0x346082=_0x379434[_0x442867(0x9a)]||{},_0x45e128=_0x110cb6[_0xfd7097]||_0x346082[_0xfd7097];if(!_0x45e128)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x255255,'packageName':_0xfd7097,'stableVersion':_0x28b956};let _0x21a29b=getInstalledVersion(_0x3a3d5a,_0xfd7097);!_0x21a29b&&(_0x21a29b=_0x45e128);if(isNonNumericVersion(_0x45e128))return{'installed':!![],'version':_0x21a29b,'needsUpgrade':![],'minVersion':_0x255255,'packageName':_0xfd7097,'stableVersion':_0x28b956};const _0x4f5c8a=a295_0x4212a5[_0x442867(0xa1)](_0x21a29b),_0x41948b=a295_0x4212a5['coerce'](_0x255255),_0xa216b3=_0x4f5c8a&&_0x41948b?a295_0x4212a5['lt'](_0x4f5c8a,_0x41948b):![];return{'installed':!![],'version':_0x21a29b,'needsUpgrade':_0xa216b3,'minVersion':_0x255255,'packageName':_0xfd7097,'stableVersion':_0x28b956};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x255255,'packageName':_0xfd7097,'stableVersion':_0x28b956};}}function a295_0x3fc3(){const _0x15816e=['@lovrabet/sdk','\x1b[1m','node','1.2.0','devDependencies','sdk','existsSync','8798315IqOEQa','4406580pQWoBn','version','package.json','coerce','log','208434gNuIeY','minVersion','utf8','readFileSync','1038192VExcjr','latest','stableVersion','packageName','all','parse','\x1b[33m','utf-8','\x1b[0m','test','3495186YFErAW','22063335CJilnu','2790114lKXUqg','needsUpgrade','some','join','npm\x20install\x20','\x20\x20\x20Current\x20version:\x20','dependencies'];a295_0x3fc3=function(){return _0x15816e;};return a295_0x3fc3();}export function checkSdkVersionSync(_0x464893){const _0x307d10=a295_0x5dc0c9,_0xd49544=a295_0x36b2d2[_0x307d10(0x92)](_0x464893,_0x307d10(0xa0)),_0x398128='@lovrabet/sdk';if(!a295_0x4859b7[_0x307d10(0x9c)](_0xd49544))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x398128,'stableVersion':null};try{const _0x177826=JSON['parse'](a295_0x4859b7[_0x307d10(0xa6)](_0xd49544,'utf8')),_0x52fd59=_0x177826['dependencies']||{},_0x404fc7=_0x177826[_0x307d10(0x9a)]||{},_0x5c9c98=_0x52fd59[_0x398128]||_0x404fc7[_0x398128];if(!_0x5c9c98)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x398128,'stableVersion':null};let _0x21d021=getInstalledVersion(_0x464893,_0x398128);!_0x21d021&&(_0x21d021=_0x5c9c98);if(isNonNumericVersion(_0x5c9c98))return{'installed':!![],'version':_0x21d021,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x398128,'stableVersion':null};const _0x5d059f=a295_0x4212a5[_0x307d10(0xa1)](_0x21d021),_0x490e94=_0x5d059f?a295_0x4212a5['lt'](_0x5d059f,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x21d021,'needsUpgrade':_0x490e94,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x398128,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x398128,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x5073f3){const _0x1f43b0=a295_0x5dc0c9;if(!_0x5073f3[_0x1f43b0(0x90)])return;const _0x2a970e=_0x1f43b0(0x89),_0x18b527=_0x1f43b0(0x8b),_0xe80bb2=_0x1f43b0(0x97),_0x4e0c69=_0x5073f3['packageName']||_0x1f43b0(0x96),_0x4931d6=_0x5073f3[_0x1f43b0(0x85)]||_0x5073f3[_0x1f43b0(0xa4)],_0x510737=_0x1f43b0(0x93)+_0x4e0c69+'@'+(_0x4931d6||_0x1f43b0(0xa8));console[_0x1f43b0(0xa2)](),console[_0x1f43b0(0xa2)](''+_0x2a970e+_0xe80bb2+'↪\x20SDK\x20update\x20available'+_0x18b527),console['log'](_0x2a970e+_0x1f43b0(0x94)+_0x4e0c69+'@'+_0x5073f3[_0x1f43b0(0x9f)]+_0x18b527),console['log'](_0x2a970e+'\x20\x20\x20Stable\x20version:\x20'+_0x4931d6+_0x18b527),console[_0x1f43b0(0xa2)](_0x2a970e+'\x20\x20\x20Upgrade\x20command:\x20'+_0x510737+_0x18b527),console[_0x1f43b0(0xa2)]();}
1
+ const a309_0x2bfd50=a309_0x30d5;function a309_0x5700(){const _0x76f090=['node','coerce','npm\x20install\x20','test','join','\x20\x20\x20Current\x20version:\x20','stableVersion','115ktrBvl','10vACNXY','10512ZHkZkS','some','latest','node_modules','utf-8','\x1b[1m','\x1b[33m','devDependencies','existsSync','parse','8105KBgjse','87732KDycxl','utf8','log','packageName','\x1b[0m','↪\x20SDK\x20update\x20available','readFileSync','dependencies','597247TiAqnz','package.json','sdk','@lovrabet/sdk','24jSfnYE','10316hcENyq','\x20\x20\x20Upgrade\x20command:\x20','190784kpPVNH','8rPZhko','809592MPcJwV','needsUpgrade','312sJqgGC','version','1.2.0','minVersion'];a309_0x5700=function(){return _0x76f090;};return a309_0x5700();}(function(_0x287df3,_0x99a7a4){const _0xe9f57=a309_0x30d5,_0x2d47af=_0x287df3();while(!![]){try{const _0x26f24a=-parseInt(_0xe9f57(0x16d))/0x1+-parseInt(_0xe9f57(0x17a))/0x2*(parseInt(_0xe9f57(0x163))/0x3)+-parseInt(_0xe9f57(0x17b))/0x4*(parseInt(_0xe9f57(0x161))/0x5)+-parseInt(_0xe9f57(0x17f))/0x6+-parseInt(_0xe9f57(0x176))/0x7*(parseInt(_0xe9f57(0x17e))/0x8)+-parseInt(_0xe9f57(0x16e))/0x9*(parseInt(_0xe9f57(0x162))/0xa)+-parseInt(_0xe9f57(0x17d))/0xb*(-parseInt(_0xe9f57(0x181))/0xc);if(_0x26f24a===_0x99a7a4)break;else _0x2d47af['push'](_0x2d47af['shift']());}catch(_0x337b80){_0x2d47af['push'](_0x2d47af['shift']());}}}(a309_0x5700,0x1b371));import a309_0x269392 from'node:fs';import a309_0x334bf6 from'node:path';import a309_0x1506ea from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a309_0x2bfd50(0x183);function isNonNumericVersion(_0x3172ea){const _0x2aa25e=a309_0x2bfd50,_0x58f1f2=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x58f1f2[_0x2aa25e(0x164)](_0x25f8f4=>_0x25f8f4[_0x2aa25e(0x15d)](_0x3172ea));}function getInstalledVersion(_0x3ac050,_0x1c43b2){const _0x184400=a309_0x2bfd50;try{const _0x35171a=a309_0x334bf6[_0x184400(0x15e)](_0x3ac050,_0x184400(0x166),_0x1c43b2,_0x184400(0x177));if(a309_0x269392[_0x184400(0x16b)](_0x35171a)){const _0x1a2674=JSON[_0x184400(0x16c)](a309_0x269392[_0x184400(0x174)](_0x35171a,_0x184400(0x167)));return _0x1a2674[_0x184400(0x182)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x3ef8ae=a309_0x2bfd50;try{const _0x4e08a9=await getCdnConfig();return _0x4e08a9?.[_0x3ef8ae(0x178)]?.[_0x3ef8ae(0x15a)]?.[_0x3ef8ae(0x160)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x495254=a309_0x2bfd50;try{const _0x5a2883=await getCdnConfig();return _0x5a2883?.[_0x495254(0x178)]?.['node']?.[_0x495254(0x171)]||_0x495254(0x179);}catch{return _0x495254(0x179);}}export async function checkSdkVersion(_0xab94dd){const _0xa6cf32=a309_0x2bfd50,_0x51ec26=a309_0x334bf6[_0xa6cf32(0x15e)](_0xab94dd,_0xa6cf32(0x177)),[_0x2674f7,_0x585f1b]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x4bad2f=_0x2674f7||FALLBACK_MIN_SDK_VERSION;if(!a309_0x269392[_0xa6cf32(0x16b)](_0x51ec26))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4bad2f,'packageName':_0x585f1b,'stableVersion':_0x2674f7};try{const _0x1da566=JSON[_0xa6cf32(0x16c)](a309_0x269392[_0xa6cf32(0x174)](_0x51ec26,_0xa6cf32(0x16f))),_0x43ccec=_0x1da566[_0xa6cf32(0x175)]||{},_0x1f003b=_0x1da566['devDependencies']||{},_0x36763f=_0x43ccec[_0x585f1b]||_0x1f003b[_0x585f1b];if(!_0x36763f)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4bad2f,'packageName':_0x585f1b,'stableVersion':_0x2674f7};let _0x135583=getInstalledVersion(_0xab94dd,_0x585f1b);!_0x135583&&(_0x135583=_0x36763f);if(isNonNumericVersion(_0x36763f))return{'installed':!![],'version':_0x135583,'needsUpgrade':![],'minVersion':_0x4bad2f,'packageName':_0x585f1b,'stableVersion':_0x2674f7};const _0x29fa34=a309_0x1506ea['coerce'](_0x135583),_0x2d2504=a309_0x1506ea[_0xa6cf32(0x15b)](_0x4bad2f),_0x308e83=_0x29fa34&&_0x2d2504?a309_0x1506ea['lt'](_0x29fa34,_0x2d2504):![];return{'installed':!![],'version':_0x135583,'needsUpgrade':_0x308e83,'minVersion':_0x4bad2f,'packageName':_0x585f1b,'stableVersion':_0x2674f7};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4bad2f,'packageName':_0x585f1b,'stableVersion':_0x2674f7};}}export function checkSdkVersionSync(_0x23d44a){const _0x2702ec=a309_0x2bfd50,_0x220fbe=a309_0x334bf6[_0x2702ec(0x15e)](_0x23d44a,_0x2702ec(0x177)),_0x364627='@lovrabet/sdk';if(!a309_0x269392['existsSync'](_0x220fbe))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x364627,'stableVersion':null};try{const _0x8d2cb0=JSON[_0x2702ec(0x16c)](a309_0x269392[_0x2702ec(0x174)](_0x220fbe,_0x2702ec(0x16f))),_0x39ac8b=_0x8d2cb0[_0x2702ec(0x175)]||{},_0x54992c=_0x8d2cb0[_0x2702ec(0x16a)]||{},_0x4a6e99=_0x39ac8b[_0x364627]||_0x54992c[_0x364627];if(!_0x4a6e99)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x364627,'stableVersion':null};let _0xae08b8=getInstalledVersion(_0x23d44a,_0x364627);!_0xae08b8&&(_0xae08b8=_0x4a6e99);if(isNonNumericVersion(_0x4a6e99))return{'installed':!![],'version':_0xae08b8,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x364627,'stableVersion':null};const _0x521ce5=a309_0x1506ea['coerce'](_0xae08b8),_0x3f0cb8=_0x521ce5?a309_0x1506ea['lt'](_0x521ce5,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0xae08b8,'needsUpgrade':_0x3f0cb8,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x364627,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x364627,'stableVersion':null};}}function a309_0x30d5(_0x316dc2,_0x166aa6){_0x316dc2=_0x316dc2-0x15a;const _0x5700dc=a309_0x5700();let _0x30d559=_0x5700dc[_0x316dc2];return _0x30d559;}export function printSdkUpgradeWarning(_0x165932){const _0x5adf74=a309_0x2bfd50;if(!_0x165932[_0x5adf74(0x180)])return;const _0xd821c3=_0x5adf74(0x169),_0x343b78=_0x5adf74(0x172),_0x3b4951=_0x5adf74(0x168),_0x18e9b5=_0x165932[_0x5adf74(0x171)]||'@lovrabet/sdk',_0x301f3c=_0x165932[_0x5adf74(0x160)]||_0x165932[_0x5adf74(0x184)],_0x587162=_0x5adf74(0x15c)+_0x18e9b5+'@'+(_0x301f3c||_0x5adf74(0x165));console['log'](),console['log'](''+_0xd821c3+_0x3b4951+_0x5adf74(0x173)+_0x343b78),console[_0x5adf74(0x170)](_0xd821c3+_0x5adf74(0x15f)+_0x18e9b5+'@'+_0x165932[_0x5adf74(0x182)]+_0x343b78),console['log'](_0xd821c3+'\x20\x20\x20Stable\x20version:\x20'+_0x301f3c+_0x343b78),console['log'](_0xd821c3+_0x5adf74(0x17c)+_0x587162+_0x343b78),console[_0x5adf74(0x170)]();}
@@ -1 +1 @@
1
- function a296_0x5271(_0x1b7510,_0x1acc41){_0x1b7510=_0x1b7510-0x7d;const _0x15523f=a296_0x1552();let _0x5271a2=_0x15523f[_0x1b7510];return _0x5271a2;}(function(_0x1a8d53,_0x105e27){const _0x10ac3d=a296_0x5271,_0x3443a3=_0x1a8d53();while(!![]){try{const _0x2e8680=parseInt(_0x10ac3d(0x86))/0x1*(parseInt(_0x10ac3d(0x88))/0x2)+-parseInt(_0x10ac3d(0x9f))/0x3*(parseInt(_0x10ac3d(0xa1))/0x4)+parseInt(_0x10ac3d(0x8c))/0x5*(-parseInt(_0x10ac3d(0x90))/0x6)+parseInt(_0x10ac3d(0x7d))/0x7+-parseInt(_0x10ac3d(0x8d))/0x8+parseInt(_0x10ac3d(0x91))/0x9*(-parseInt(_0x10ac3d(0x83))/0xa)+parseInt(_0x10ac3d(0x82))/0xb;if(_0x2e8680===_0x105e27)break;else _0x3443a3['push'](_0x3443a3['shift']());}catch(_0xa4b52){_0x3443a3['push'](_0x3443a3['shift']());}}}(a296_0x1552,0x2ee82));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a296_0x166f7e from'semver';function a296_0x1552(){const _0x250824=['Minimum\x20supported:\x20','\x20\x20\x20Upgrade\x20command:\x20','2292QDNTiP','\x1b[0m','1964kMcaeU','Upgrade\x20command:\x20','\x20\x20\x20','2365517HHrwGD','coerce','minimumVersion','upgradeMessage','\x20\x20\x20Current\x20CLI\x20version:\x20','4433924VYRFII','928660fxuERa','\x20\x20\x20Recommended\x20stable:\x20','log','3qKtAzI','version','201514wnTZLM','currentVersion','Current\x20version:\x20','npm\x20install\x20-g\x20','24775zrWwNZ','1440088NNiTvA','minimumVersionMessage','stableVersion','246hfgZLj','9OENecL','../..','1.0.0','↪\x20New\x20version\x20available','\x20\x20\x20Stable\x20version:\x20','belowMinimum','↪\x20Critical\x20CLI\x20upgrade\x20required','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','needsUpgrade','validation','join','\x1b[31m'];a296_0x1552=function(){return _0x250824;};return a296_0x1552();}import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x2e1e82){const _0x3e328f=a296_0x5271,_0x12d70f=_0x2e1e82[_0x3e328f(0x8f)]||'latest';return _0x3e328f(0x8b)+NPM_PACKAGE_NAME+'@'+_0x12d70f;}function getCurrentCliVersion(){const _0x2e7b65=a296_0x5271;try{const _0x59225e=fileURLToPath(import.meta.url),_0x3e7ba6=resolve(dirname(_0x59225e),_0x2e7b65(0x92)),_0x30970f=resolve(_0x3e7ba6,'package.json'),_0x5860e6=JSON['parse'](readFileSync(_0x30970f,'utf-8'));return _0x5860e6[_0x2e7b65(0x87)]||_0x2e7b65(0x93);}catch{return _0x2e7b65(0x93);}}export async function checkCliVersion(){const _0x1d12ac=a296_0x5271,_0x7757b2=getCurrentCliVersion(),_0xebc90d=await getCliVersionPolicy(),_0x313338=_0xebc90d?.[_0x1d12ac(0x8f)]||null,_0x18cdc1=_0xebc90d?.[_0x1d12ac(0x7f)]||null;let _0x368f86=![],_0x3998aa=![];const _0x3deb50=a296_0x166f7e[_0x1d12ac(0x7e)](_0x7757b2);if(_0x3deb50&&_0x313338)try{const _0x48383a=a296_0x166f7e['coerce'](_0x313338);if(_0x48383a)_0x368f86=a296_0x166f7e['lt'](_0x3deb50,_0x48383a);}catch{}if(_0x3deb50&&_0x18cdc1)try{const _0x1c7e7a=a296_0x166f7e[_0x1d12ac(0x7e)](_0x18cdc1);if(_0x1c7e7a)_0x3998aa=a296_0x166f7e['lt'](_0x3deb50,_0x1c7e7a);}catch{}return _0x3998aa&&(_0x368f86=!![]),{'currentVersion':_0x7757b2,'stableVersion':_0x313338,'minimumVersion':_0x18cdc1,'needsUpgrade':_0x368f86,'belowMinimum':_0x3998aa,'isPreRelease':![],'upgradeMessage':_0xebc90d?.[_0x1d12ac(0x80)],'minimumVersionMessage':_0xebc90d?.[_0x1d12ac(0x8e)]};}export function printCliUpgradeWarning(_0x4f68d0){const _0x1ce285=a296_0x5271;if(!_0x4f68d0[_0x1ce285(0x99)]&&!_0x4f68d0[_0x1ce285(0x96)])return;const _0x18f228=_0x1ce285(0x9c),_0x414bd8='\x1b[33m',_0x323f32=_0x1ce285(0xa0),_0x2bd5ce='\x1b[1m',_0x3e33e8=getCliUpgradeCommand(_0x4f68d0);console['log'](),_0x4f68d0[_0x1ce285(0x96)]?(console[_0x1ce285(0x85)](''+_0x18f228+_0x2bd5ce+_0x1ce285(0x97)+_0x323f32),console[_0x1ce285(0x85)](_0x18f228+_0x1ce285(0x81)+_0x4f68d0[_0x1ce285(0x89)]+_0x323f32),_0x4f68d0[_0x1ce285(0x7f)]&&console[_0x1ce285(0x85)](_0x18f228+'\x20\x20\x20Minimum\x20supported:\x20'+_0x4f68d0[_0x1ce285(0x7f)]+_0x323f32),_0x4f68d0[_0x1ce285(0x8f)]&&_0x4f68d0[_0x1ce285(0x8f)]!==_0x4f68d0[_0x1ce285(0x7f)]&&console['log'](_0x18f228+_0x1ce285(0x84)+_0x4f68d0[_0x1ce285(0x8f)]+_0x323f32),_0x4f68d0[_0x1ce285(0x8e)]&&console[_0x1ce285(0x85)](_0x18f228+'\x20\x20\x20'+_0x4f68d0[_0x1ce285(0x8e)]+_0x323f32),console[_0x1ce285(0x85)](_0x18f228+_0x1ce285(0x9e)+_0x3e33e8+_0x323f32)):(console[_0x1ce285(0x85)](''+_0x414bd8+_0x2bd5ce+_0x1ce285(0x94)+_0x323f32),console[_0x1ce285(0x85)](_0x414bd8+_0x1ce285(0x81)+_0x4f68d0[_0x1ce285(0x89)]+_0x323f32),console[_0x1ce285(0x85)](_0x414bd8+_0x1ce285(0x95)+_0x4f68d0[_0x1ce285(0x8f)]+_0x323f32),_0x4f68d0[_0x1ce285(0x80)]&&console[_0x1ce285(0x85)](_0x414bd8+_0x1ce285(0xa3)+_0x4f68d0[_0x1ce285(0x80)]+_0x323f32),console['log'](_0x414bd8+'\x20\x20\x20Upgrade\x20command:\x20'+_0x3e33e8+_0x323f32)),console[_0x1ce285(0x85)]();}export function assertCliVersionSupported(_0x1c2c72){const _0x461eca=a296_0x5271;if(!_0x1c2c72[_0x461eca(0x96)])return;const _0x11e42f=[_0x1c2c72[_0x461eca(0x8e)],_0x461eca(0x8a)+_0x1c2c72[_0x461eca(0x89)],_0x1c2c72['minimumVersion']?_0x461eca(0x9d)+_0x1c2c72[_0x461eca(0x7f)]:null,_0x461eca(0xa2)+getCliUpgradeCommand(_0x1c2c72)]['filter'](Boolean)[_0x461eca(0x9b)]('\x0a');throw CliErrors[_0x461eca(0x9a)](_0x461eca(0x98),_0x11e42f);}
1
+ function a310_0xb51a(_0x5ac57c,_0x292613){_0x5ac57c=_0x5ac57c-0x18b;const _0x5d4d9d=a310_0x5d4d();let _0xb51ad4=_0x5d4d9d[_0x5ac57c];return _0xb51ad4;}function a310_0x5d4d(){const _0x4765fb=['version','200333EfLVKf','npm\x20install\x20-g\x20','minimumVersion','join','latest','↪\x20Critical\x20CLI\x20upgrade\x20required','\x20\x20\x20Current\x20CLI\x20version:\x20','\x20\x20\x20','filter','currentVersion','upgradeMessage','../..','5804590nEswDK','4332213Rghpcz','parse','Minimum\x20supported:\x20','2437254XbSvRr','14qohlAE','log','1.0.0','\x1b[1m','\x20\x20\x20Upgrade\x20command:\x20','↪\x20New\x20version\x20available','Current\x20version:\x20','stableVersion','minimumVersionMessage','6819512LKiWhR','coerce','Upgrade\x20command:\x20','package.json','\x20\x20\x20Recommended\x20stable:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','\x20\x20\x20Stable\x20version:\x20','\x1b[0m','\x1b[33m','4673316JDUNEq','14nPeADj','\x20\x20\x20Minimum\x20supported:\x20','27617877EIDVzC','belowMinimum'];a310_0x5d4d=function(){return _0x4765fb;};return a310_0x5d4d();}(function(_0x511a66,_0x3663de){const _0x34ae70=a310_0xb51a,_0x4151c7=_0x511a66();while(!![]){try{const _0x36212c=parseInt(_0x34ae70(0x193))/0x1*(parseInt(_0x34ae70(0x18e))/0x2)+-parseInt(_0x34ae70(0x1a0))/0x3+-parseInt(_0x34ae70(0x18d))/0x4+parseInt(_0x34ae70(0x19f))/0x5+-parseInt(_0x34ae70(0x1a3))/0x6+parseInt(_0x34ae70(0x1a4))/0x7*(-parseInt(_0x34ae70(0x1ad))/0x8)+parseInt(_0x34ae70(0x190))/0x9;if(_0x36212c===_0x3663de)break;else _0x4151c7['push'](_0x4151c7['shift']());}catch(_0x3877a7){_0x4151c7['push'](_0x4151c7['shift']());}}}(a310_0x5d4d,0xddc7f));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a310_0x28193b from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x70b93f){const _0x6af3bf=a310_0xb51a,_0x100585=_0x70b93f[_0x6af3bf(0x1ab)]||_0x6af3bf(0x197);return _0x6af3bf(0x194)+NPM_PACKAGE_NAME+'@'+_0x100585;}function getCurrentCliVersion(){const _0x3c4119=a310_0xb51a;try{const _0x326b81=fileURLToPath(import.meta.url),_0x17d19e=resolve(dirname(_0x326b81),_0x3c4119(0x19e)),_0x18c469=resolve(_0x17d19e,_0x3c4119(0x1b0)),_0x36b2ff=JSON[_0x3c4119(0x1a1)](readFileSync(_0x18c469,'utf-8'));return _0x36b2ff[_0x3c4119(0x192)]||_0x3c4119(0x1a6);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x3bef49=a310_0xb51a,_0x5ef6bb=getCurrentCliVersion(),_0x27f173=await getCliVersionPolicy(),_0x70c997=_0x27f173?.['stableVersion']||null,_0x1aaeda=_0x27f173?.[_0x3bef49(0x195)]||null;let _0x5ba4ca=![],_0x4746d4=![];const _0x5c35e7=a310_0x28193b['coerce'](_0x5ef6bb);if(_0x5c35e7&&_0x70c997)try{const _0x1be6ab=a310_0x28193b[_0x3bef49(0x1ae)](_0x70c997);if(_0x1be6ab)_0x5ba4ca=a310_0x28193b['lt'](_0x5c35e7,_0x1be6ab);}catch{}if(_0x5c35e7&&_0x1aaeda)try{const _0x531970=a310_0x28193b[_0x3bef49(0x1ae)](_0x1aaeda);if(_0x531970)_0x4746d4=a310_0x28193b['lt'](_0x5c35e7,_0x531970);}catch{}return _0x4746d4&&(_0x5ba4ca=!![]),{'currentVersion':_0x5ef6bb,'stableVersion':_0x70c997,'minimumVersion':_0x1aaeda,'needsUpgrade':_0x5ba4ca,'belowMinimum':_0x4746d4,'isPreRelease':![],'upgradeMessage':_0x27f173?.[_0x3bef49(0x19d)],'minimumVersionMessage':_0x27f173?.[_0x3bef49(0x1ac)]};}export function printCliUpgradeWarning(_0x4cbf82){const _0x3755e8=a310_0xb51a;if(!_0x4cbf82['needsUpgrade']&&!_0x4cbf82[_0x3755e8(0x191)])return;const _0x30e274='\x1b[31m',_0x55500b=_0x3755e8(0x18c),_0x296852=_0x3755e8(0x18b),_0x1056f6=_0x3755e8(0x1a7),_0x1e2391=getCliUpgradeCommand(_0x4cbf82);console['log'](),_0x4cbf82[_0x3755e8(0x191)]?(console[_0x3755e8(0x1a5)](''+_0x30e274+_0x1056f6+_0x3755e8(0x198)+_0x296852),console[_0x3755e8(0x1a5)](_0x30e274+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x4cbf82[_0x3755e8(0x19c)]+_0x296852),_0x4cbf82[_0x3755e8(0x195)]&&console[_0x3755e8(0x1a5)](_0x30e274+_0x3755e8(0x18f)+_0x4cbf82[_0x3755e8(0x195)]+_0x296852),_0x4cbf82[_0x3755e8(0x1ab)]&&_0x4cbf82[_0x3755e8(0x1ab)]!==_0x4cbf82[_0x3755e8(0x195)]&&console['log'](_0x30e274+_0x3755e8(0x1b1)+_0x4cbf82[_0x3755e8(0x1ab)]+_0x296852),_0x4cbf82[_0x3755e8(0x1ac)]&&console['log'](_0x30e274+'\x20\x20\x20'+_0x4cbf82[_0x3755e8(0x1ac)]+_0x296852),console[_0x3755e8(0x1a5)](_0x30e274+'\x20\x20\x20Upgrade\x20command:\x20'+_0x1e2391+_0x296852)):(console[_0x3755e8(0x1a5)](''+_0x55500b+_0x1056f6+_0x3755e8(0x1a9)+_0x296852),console['log'](_0x55500b+_0x3755e8(0x199)+_0x4cbf82[_0x3755e8(0x19c)]+_0x296852),console[_0x3755e8(0x1a5)](_0x55500b+_0x3755e8(0x1b3)+_0x4cbf82[_0x3755e8(0x1ab)]+_0x296852),_0x4cbf82[_0x3755e8(0x19d)]&&console[_0x3755e8(0x1a5)](_0x55500b+_0x3755e8(0x19a)+_0x4cbf82['upgradeMessage']+_0x296852),console['log'](_0x55500b+_0x3755e8(0x1a8)+_0x1e2391+_0x296852)),console[_0x3755e8(0x1a5)]();}export function assertCliVersionSupported(_0x780341){const _0x5a23ba=a310_0xb51a;if(!_0x780341['belowMinimum'])return;const _0x434233=[_0x780341[_0x5a23ba(0x1ac)],_0x5a23ba(0x1aa)+_0x780341[_0x5a23ba(0x19c)],_0x780341['minimumVersion']?_0x5a23ba(0x1a2)+_0x780341[_0x5a23ba(0x195)]:null,_0x5a23ba(0x1af)+getCliUpgradeCommand(_0x780341)][_0x5a23ba(0x19b)](Boolean)[_0x5a23ba(0x196)]('\x0a');throw CliErrors['validation'](_0x5a23ba(0x1b2),_0x434233);}
@@ -1 +1 @@
1
- function a297_0x3df3(){const _0x2bc80c=['349252PkmWrx','194283OsUruG','latestVersion','length','abort','3036dHZDPm','object','cli','9094878RlYlBk','10uMvzyw','signal','json','stableVersion','minimumVersionMessage','12rbUXrO','6082320pogXfy','upgradeMessage','7PbwHGs','trim','240490PAHCKS','2397324ExjOXn','minimumVersion','50739xKvCQl','297LrnMcN','6MylZIC'];a297_0x3df3=function(){return _0x2bc80c;};return a297_0x3df3();}(function(_0x3e7b98,_0x2a2704){const _0x48ec72=a297_0x5de4,_0x5247ff=_0x3e7b98();while(!![]){try{const _0x24bc30=parseInt(_0x48ec72(0xcf))/0x1*(parseInt(_0x48ec72(0xd0))/0x2)+parseInt(_0x48ec72(0xd1))/0x3*(parseInt(_0x48ec72(0xde))/0x4)+-parseInt(_0x48ec72(0xd9))/0x5*(parseInt(_0x48ec72(0xe4))/0x6)+parseInt(_0x48ec72(0xe1))/0x7*(parseInt(_0x48ec72(0xdf))/0x8)+-parseInt(_0x48ec72(0xd8))/0x9+-parseInt(_0x48ec72(0xe3))/0xa*(parseInt(_0x48ec72(0xce))/0xb)+parseInt(_0x48ec72(0xd5))/0xc*(parseInt(_0x48ec72(0xcd))/0xd);if(_0x24bc30===_0x2a2704)break;else _0x5247ff['push'](_0x5247ff['shift']());}catch(_0xf2bc3c){_0x5247ff['push'](_0x5247ff['shift']());}}}(a297_0x3df3,0x8197f));function a297_0x5de4(_0x20bd8b,_0x3eff8e){_0x20bd8b=_0x20bd8b-0xcc;const _0x3df390=a297_0x3df3();let _0x5de4ce=_0x3df390[_0x20bd8b];return _0x5de4ce;}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(_0x18c6ee){const _0x54ec59=a297_0x5de4;return typeof _0x18c6ee==='string'&&_0x18c6ee[_0x54ec59(0xe2)]()[_0x54ec59(0xd3)]>0x0?_0x18c6ee['trim']():null;}function normalizeCliVersionPolicy(_0x42dc74){const _0x2ed042=a297_0x5de4;if(!_0x42dc74||typeof _0x42dc74!==_0x2ed042(0xd6))return null;const _0x44d845=_0x42dc74,_0x33f74d=_0x44d845[_0x2ed042(0xd7)]&&typeof _0x44d845['cli']===_0x2ed042(0xd6)?_0x44d845[_0x2ed042(0xd7)]:_0x44d845,_0x52b6b4=pickString(_0x33f74d[_0x2ed042(0xdc)])||pickString(_0x33f74d[_0x2ed042(0xd2)])||pickString(_0x33f74d['recommendedVersion']),_0x26b577=pickString(_0x33f74d[_0x2ed042(0xcc)])||pickString(_0x33f74d['minVersion']);if(!_0x52b6b4&&!_0x26b577)return null;return{'stableVersion':_0x52b6b4,'minimumVersion':_0x26b577,'upgradeMessage':pickString(_0x33f74d[_0x2ed042(0xe0)])||undefined,'minimumVersionMessage':pickString(_0x33f74d[_0x2ed042(0xdd)])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x399d26=a297_0x5de4,_0x495761=new AbortController(),_0x1c9aa1=setTimeout(()=>_0x495761[_0x399d26(0xd4)](),FETCH_TIMEOUT_MS);try{const _0x4d4bdc=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x495761[_0x399d26(0xda)]});if(!_0x4d4bdc['ok'])return null;const _0x23128c=await _0x4d4bdc[_0x399d26(0xdb)]();return _0x23128c&&typeof _0x23128c===_0x399d26(0xd6)?_0x23128c:null;}catch{return null;}finally{clearTimeout(_0x1c9aa1);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x45d504=Date['now']();if(hasCachedConfig){const _0x4f6a21=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x45d504-cacheTime<_0x4f6a21)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x45d504,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x37684b,_0x5954a6){const _0x2049a8=a311_0x2735,_0xd23ff5=_0x37684b();while(!![]){try{const _0x2560ee=-parseInt(_0x2049a8(0x188))/0x1+-parseInt(_0x2049a8(0x180))/0x2*(-parseInt(_0x2049a8(0x17b))/0x3)+-parseInt(_0x2049a8(0x179))/0x4*(parseInt(_0x2049a8(0x185))/0x5)+-parseInt(_0x2049a8(0x17e))/0x6+-parseInt(_0x2049a8(0x17a))/0x7+-parseInt(_0x2049a8(0x17c))/0x8+-parseInt(_0x2049a8(0x181))/0x9*(-parseInt(_0x2049a8(0x175))/0xa);if(_0x2560ee===_0x5954a6)break;else _0xd23ff5['push'](_0xd23ff5['shift']());}catch(_0x5c4912){_0xd23ff5['push'](_0xd23ff5['shift']());}}}(a311_0x2108,0xda8f1));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(_0x1b23a2){const _0x641d44=a311_0x2735;return typeof _0x1b23a2===_0x641d44(0x174)&&_0x1b23a2[_0x641d44(0x184)]()[_0x641d44(0x178)]>0x0?_0x1b23a2[_0x641d44(0x184)]():null;}function normalizeCliVersionPolicy(_0x4b0a9c){const _0x3376d4=a311_0x2735;if(!_0x4b0a9c||typeof _0x4b0a9c!==_0x3376d4(0x183))return null;const _0x165dab=_0x4b0a9c,_0x4a0938=_0x165dab[_0x3376d4(0x187)]&&typeof _0x165dab[_0x3376d4(0x187)]===_0x3376d4(0x183)?_0x165dab[_0x3376d4(0x187)]:_0x165dab,_0x2fd1da=pickString(_0x4a0938['stableVersion'])||pickString(_0x4a0938[_0x3376d4(0x177)])||pickString(_0x4a0938[_0x3376d4(0x186)]),_0xb731e8=pickString(_0x4a0938[_0x3376d4(0x173)])||pickString(_0x4a0938[_0x3376d4(0x17d)]);if(!_0x2fd1da&&!_0xb731e8)return null;return{'stableVersion':_0x2fd1da,'minimumVersion':_0xb731e8,'upgradeMessage':pickString(_0x4a0938[_0x3376d4(0x17f)])||undefined,'minimumVersionMessage':pickString(_0x4a0938[_0x3376d4(0x182)])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x2fb9bb=a311_0x2735,_0xef4a0e=new AbortController(),_0x37c9ba=setTimeout(()=>_0xef4a0e[_0x2fb9bb(0x189)](),FETCH_TIMEOUT_MS);try{const _0x128a3a=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x2fb9bb(0x176)},'signal':_0xef4a0e[_0x2fb9bb(0x172)]});if(!_0x128a3a['ok'])return null;const _0x21dc57=await _0x128a3a['json']();return _0x21dc57&&typeof _0x21dc57===_0x2fb9bb(0x183)?_0x21dc57:null;}catch{return null;}finally{clearTimeout(_0x37c9ba);}}function a311_0x2735(_0x2a9b46,_0x542e3b){_0x2a9b46=_0x2a9b46-0x172;const _0x210861=a311_0x2108();let _0x273599=_0x210861[_0x2a9b46];return _0x273599;}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}function a311_0x2108(){const _0x357eae=['minimumVersion','string','31360610VixqpC','application/json','latestVersion','length','4501968VrbZse','11067553UMCnNW','27IqtDly','7168040DcYPrj','minVersion','5900430TEVsSX','upgradeMessage','100236yPkIrZ','18sRKvNm','minimumVersionMessage','object','trim','5uuWMOy','recommendedVersion','cli','1241986mhMVPb','abort','signal'];a311_0x2108=function(){return _0x357eae;};return a311_0x2108();}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x58be33=Date['now']();if(hasCachedConfig){const _0x384987=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x58be33-cacheTime<_0x384987)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x58be33,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- function a298_0x200a(_0x287702,_0x30093e){_0x287702=_0x287702-0xea;const _0x9075f5=a298_0x9075();let _0x200a6d=_0x9075f5[_0x287702];return _0x200a6d;}(function(_0x4d8bb2,_0x5633b7){const _0xc99ec6=a298_0x200a,_0x28c3b5=_0x4d8bb2();while(!![]){try{const _0x45aec1=-parseInt(_0xc99ec6(0xea))/0x1*(-parseInt(_0xc99ec6(0xef))/0x2)+parseInt(_0xc99ec6(0xee))/0x3*(parseInt(_0xc99ec6(0xf4))/0x4)+-parseInt(_0xc99ec6(0xf3))/0x5*(-parseInt(_0xc99ec6(0xf2))/0x6)+-parseInt(_0xc99ec6(0xf7))/0x7*(parseInt(_0xc99ec6(0xed))/0x8)+-parseInt(_0xc99ec6(0xec))/0x9+-parseInt(_0xc99ec6(0xf6))/0xa*(-parseInt(_0xc99ec6(0xeb))/0xb)+-parseInt(_0xc99ec6(0xf0))/0xc;if(_0x45aec1===_0x5633b7)break;else _0x28c3b5['push'](_0x28c3b5['shift']());}catch(_0x247c82){_0x28c3b5['push'](_0x28c3b5['shift']());}}}(a298_0x9075,0x22f27));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a298_0x4d235b,getMultiAppConfigs as a298_0x1c63d4,getTemplateBaseUrl as a298_0x4936c9}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a298_0x9075(){const _0x2ad94c=['221028MGwhmI','string','265074gTrLKm','5IImxqz','599888rhsQlK','env','10jbnWvu','1318674BeplOd','4eWHyjX','725747GaVPVz','679932JzgywL','8axhZGn','3QPyRHD','82682LKkqqI'];a298_0x9075=function(){return _0x2ad94c;};return a298_0x9075();}export{isInProject}from'../context.js';export function readConfig(_0x1a69ff){const _0x27daaa=a298_0x200a,_0x3f7f50=readRawConfig(_0x1a69ff);return _0x3f7f50[_0x27daaa(0xf5)]&&typeof _0x3f7f50[_0x27daaa(0xf5)]===_0x27daaa(0xf1)&&initEnv(_0x3f7f50['env']),_0x3f7f50;}export function getConfigAppCode(){return a298_0x4d235b();}export function getMultiAppConfigs(_0x177fae='project'){return a298_0x1c63d4(_0x177fae);}export function getTemplateBaseUrl(){return a298_0x4936c9();}
1
+ (function(_0xd61744,_0x487bd2){const _0xd4a13e=a312_0x2aa9,_0x4d5edb=_0xd61744();while(!![]){try{const _0x2869e1=parseInt(_0xd4a13e(0x150))/0x1+-parseInt(_0xd4a13e(0x14d))/0x2+-parseInt(_0xd4a13e(0x151))/0x3*(parseInt(_0xd4a13e(0x154))/0x4)+parseInt(_0xd4a13e(0x14c))/0x5+-parseInt(_0xd4a13e(0x14a))/0x6*(-parseInt(_0xd4a13e(0x14f))/0x7)+-parseInt(_0xd4a13e(0x152))/0x8+parseInt(_0xd4a13e(0x14b))/0x9;if(_0x2869e1===_0x487bd2)break;else _0x4d5edb['push'](_0x4d5edb['shift']());}catch(_0x3e0b46){_0x4d5edb['push'](_0x4d5edb['shift']());}}}(a312_0x3be4,0xd00a3));function a312_0x2aa9(_0x78ce63,_0x44ad9b){_0x78ce63=_0x78ce63-0x14a;const _0x3be4ec=a312_0x3be4();let _0x2aa928=_0x3be4ec[_0x78ce63];return _0x2aa928;}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a312_0xe9da0e,getMultiAppConfigs as a312_0x2ec1f5,getTemplateBaseUrl as a312_0x2e2ffb}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a312_0x3be4(){const _0x5f325d=['2766260mhxtUt','1835058TYptNR','env','1932lsCraT','426619WXrjyR','1383aDqVcq','8186536lvbXTf','string','3804SLrGbH','23748lokZZU','10431981yTrylf'];a312_0x3be4=function(){return _0x5f325d;};return a312_0x3be4();}export function readConfig(_0x247af8){const _0x2ceec5=a312_0x2aa9,_0x56e4df=readRawConfig(_0x247af8);return _0x56e4df[_0x2ceec5(0x14e)]&&typeof _0x56e4df[_0x2ceec5(0x14e)]===_0x2ceec5(0x153)&&initEnv(_0x56e4df[_0x2ceec5(0x14e)]),_0x56e4df;}export function getConfigAppCode(){return a312_0xe9da0e();}export function getMultiAppConfigs(_0x558de1='project'){return a312_0x2ec1f5(_0x558de1);}export function getTemplateBaseUrl(){return a312_0x2e2ffb();}
@@ -1 +1 @@
1
- function a299_0x5e46(_0x250da7,_0x199c08){_0x250da7=_0x250da7-0x1cd;const _0x53d64c=a299_0x53d6();let _0x5e469e=_0x53d64c[_0x250da7];return _0x5e469e;}(function(_0x493150,_0x30ec5b){const _0x10728a=a299_0x5e46,_0x2823d3=_0x493150();while(!![]){try{const _0x4e0b4c=-parseInt(_0x10728a(0x1ce))/0x1*(parseInt(_0x10728a(0x1d5))/0x2)+-parseInt(_0x10728a(0x1d2))/0x3+parseInt(_0x10728a(0x1cf))/0x4+parseInt(_0x10728a(0x1d4))/0x5*(parseInt(_0x10728a(0x1d3))/0x6)+parseInt(_0x10728a(0x1d1))/0x7+-parseInt(_0x10728a(0x1cd))/0x8+parseInt(_0x10728a(0x1d6))/0x9;if(_0x4e0b4c===_0x30ec5b)break;else _0x2823d3['push'](_0x2823d3['shift']());}catch(_0x120cd0){_0x2823d3['push'](_0x2823d3['shift']());}}}(a299_0x53d6,0x61377));function toFiniteNumber(_0x12a6ae){const _0x18aac4=a299_0x5e46;if(typeof _0x12a6ae===_0x18aac4(0x1d8)&&Number['isFinite'](_0x12a6ae))return _0x12a6ae;if(typeof _0x12a6ae===_0x18aac4(0x1d9)){const _0x294590=_0x12a6ae['trim']();if(!_0x294590)return undefined;const _0x59b9f4=Number(_0x294590);if(Number[_0x18aac4(0x1d0)](_0x59b9f4))return _0x59b9f4;}return undefined;}function a299_0x53d6(){const _0x1a7fba=['number','string','665000nybceu','878cIkxZG','3172996kGngqE','isFinite','2040115EScMww','2296779ELqVfQ','1755012DneboM','5gbwajW','1614xIbiwe','5204403ilAsmc','object'];a299_0x53d6=function(){return _0x1a7fba;};return a299_0x53d6();}export function normalizeEntityWithIdResponse(_0xe9c70d){const _0x57a8d2=a299_0x5e46,_0x5749f9=toFiniteNumber(_0xe9c70d);if(_0x5749f9!==undefined)return{'id':_0x5749f9,'entity':{'id':_0x5749f9}};if(!_0xe9c70d||typeof _0xe9c70d!==_0x57a8d2(0x1d7))return{'id':undefined,'entity':{}};const _0x5952cf={..._0xe9c70d},_0x3a3ce1=toFiniteNumber(_0x5952cf['id']);return _0x3a3ce1!==undefined&&(_0x5952cf['id']=_0x3a3ce1),{'id':_0x3a3ce1,'entity':_0x5952cf};}
1
+ (function(_0x564827,_0x4f8ac2){const _0x4b071f=a313_0x4f6c,_0x23186f=_0x564827();while(!![]){try{const _0x171455=-parseInt(_0x4b071f(0xbd))/0x1*(parseInt(_0x4b071f(0xbc))/0x2)+-parseInt(_0x4b071f(0xb3))/0x3*(-parseInt(_0x4b071f(0xba))/0x4)+-parseInt(_0x4b071f(0xb2))/0x5*(parseInt(_0x4b071f(0xb6))/0x6)+parseInt(_0x4b071f(0xbb))/0x7+parseInt(_0x4b071f(0xb4))/0x8*(parseInt(_0x4b071f(0xbe))/0x9)+parseInt(_0x4b071f(0xb1))/0xa+parseInt(_0x4b071f(0xbf))/0xb;if(_0x171455===_0x4f8ac2)break;else _0x23186f['push'](_0x23186f['shift']());}catch(_0x5310dc){_0x23186f['push'](_0x23186f['shift']());}}}(a313_0x5900,0x79b49));function a313_0x4f6c(_0x1df111,_0x1b22f1){_0x1df111=_0x1df111-0xb1;const _0x590064=a313_0x5900();let _0x4f6cff=_0x590064[_0x1df111];return _0x4f6cff;}function toFiniteNumber(_0x4697b6){const _0x1f1418=a313_0x4f6c;if(typeof _0x4697b6===_0x1f1418(0xb8)&&Number[_0x1f1418(0xb9)](_0x4697b6))return _0x4697b6;if(typeof _0x4697b6===_0x1f1418(0xb5)){const _0xcb481d=_0x4697b6[_0x1f1418(0xb7)]();if(!_0xcb481d)return undefined;const _0x5b3604=Number(_0xcb481d);if(Number[_0x1f1418(0xb9)](_0x5b3604))return _0x5b3604;}return undefined;}export function normalizeEntityWithIdResponse(_0x50862c){const _0x815e74=toFiniteNumber(_0x50862c);if(_0x815e74!==undefined)return{'id':_0x815e74,'entity':{'id':_0x815e74}};if(!_0x50862c||typeof _0x50862c!=='object')return{'id':undefined,'entity':{}};const _0x2c1483={..._0x50862c},_0x2a9d33=toFiniteNumber(_0x2c1483['id']);return _0x2a9d33!==undefined&&(_0x2c1483['id']=_0x2a9d33),{'id':_0x2a9d33,'entity':_0x2c1483};}function a313_0x5900(){const _0x376187=['6ESvSSU','trim','number','isFinite','429784BcyufN','721931aIeiJr','4wqVLXB','278505oOgMBb','24957QuoTCT','2847988aFVRdw','596460pNrBVb','3309010PBPHKR','21qiTfVE','1568WQnlyk','string'];a313_0x5900=function(){return _0x376187;};return a313_0x5900();}
@@ -1 +1 @@
1
- (function(_0x3888d7,_0x4894b2){const _0x2b2313=a300_0x3aa9,_0x38921c=_0x3888d7();while(!![]){try{const _0x204798=parseInt(_0x2b2313(0x1bf))/0x1+-parseInt(_0x2b2313(0x1c4))/0x2+-parseInt(_0x2b2313(0x1c5))/0x3*(parseInt(_0x2b2313(0x1c2))/0x4)+-parseInt(_0x2b2313(0x1c1))/0x5+-parseInt(_0x2b2313(0x1bb))/0x6*(-parseInt(_0x2b2313(0x1c0))/0x7)+parseInt(_0x2b2313(0x1bd))/0x8*(parseInt(_0x2b2313(0x1be))/0x9)+parseInt(_0x2b2313(0x1c3))/0xa*(parseInt(_0x2b2313(0x1bc))/0xb);if(_0x204798===_0x4894b2)break;else _0x38921c['push'](_0x38921c['shift']());}catch(_0x3b222d){_0x38921c['push'](_0x38921c['shift']());}}}(a300_0x33a1,0x1eaf5));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a300_0x3aa9(_0x2070ee,_0x2a2b4a){_0x2070ee=_0x2070ee-0x1bb;const _0x33a1d3=a300_0x33a1();let _0x3aa94a=_0x33a1d3[_0x2070ee];return _0x3aa94a;}import{join}from'node:path';export async function copyDir(_0x59e7ab,_0x229230){const _0x121bd8=statSync(_0x59e7ab);if(_0x121bd8['isDirectory']()){!existsSync(_0x229230)&&mkdirSync(_0x229230,{'recursive':!![]});const _0x5cbfec=readdirSync(_0x59e7ab);for(const _0x49d32b of _0x5cbfec){await copyDir(join(_0x59e7ab,_0x49d32b),join(_0x229230,_0x49d32b));}}else copyFileSync(_0x59e7ab,_0x229230);}export function ensureDir(_0x53a84e){!existsSync(_0x53a84e)&&mkdirSync(_0x53a84e,{'recursive':!![]});}function a300_0x33a1(){const _0x11d725=['64161wxgBcG','1057Whvwog','688140OMafcX','68pvvCXz','76030wXMWqS','320324prdizg','36669CPzfNa','3450KUzoBh','649IUNUqJ','8aDzOFG','285327lmzsEm'];a300_0x33a1=function(){return _0x11d725;};return a300_0x33a1();}export function pathExists(_0x365e53){return existsSync(_0x365e53);}
1
+ function a314_0x2763(){const _0x40b3ae=['5922930uQXZZE','isDirectory','156CzWugO','3395455kKzbym','21889zFhjkY','978468OZYZKP','4808704MKtTJo','33IQMydy','2336724PWMToE','249092FZFfdZ','1zPkYSz'];a314_0x2763=function(){return _0x40b3ae;};return a314_0x2763();}(function(_0xf66c8e,_0x129dc4){const _0x286272=a314_0x20f6,_0x5ea281=_0xf66c8e();while(!![]){try{const _0x249a6c=parseInt(_0x286272(0x7f))/0x1*(-parseInt(_0x286272(0x85))/0x2)+parseInt(_0x286272(0x7c))/0x3*(parseInt(_0x286272(0x7e))/0x4)+-parseInt(_0x286272(0x83))/0x5+-parseInt(_0x286272(0x82))/0x6*(parseInt(_0x286272(0x84))/0x7)+parseInt(_0x286272(0x7b))/0x8+-parseInt(_0x286272(0x7d))/0x9+parseInt(_0x286272(0x80))/0xa;if(_0x249a6c===_0x129dc4)break;else _0x5ea281['push'](_0x5ea281['shift']());}catch(_0x1fdb6d){_0x5ea281['push'](_0x5ea281['shift']());}}}(a314_0x2763,0x5a1e1));function a314_0x20f6(_0x3030c0,_0x3ab2e5){_0x3030c0=_0x3030c0-0x7b;const _0x276329=a314_0x2763();let _0x20f694=_0x276329[_0x3030c0];return _0x20f694;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x218a99,_0x1c2cb6){const _0x471102=a314_0x20f6,_0x5ea8e9=statSync(_0x218a99);if(_0x5ea8e9[_0x471102(0x81)]()){!existsSync(_0x1c2cb6)&&mkdirSync(_0x1c2cb6,{'recursive':!![]});const _0x2ef09d=readdirSync(_0x218a99);for(const _0x1c5342 of _0x2ef09d){await copyDir(join(_0x218a99,_0x1c5342),join(_0x1c2cb6,_0x1c5342));}}else copyFileSync(_0x218a99,_0x1c2cb6);}export function ensureDir(_0x3c2fb1){!existsSync(_0x3c2fb1)&&mkdirSync(_0x3c2fb1,{'recursive':!![]});}export function pathExists(_0x575c30){return existsSync(_0x575c30);}