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

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 (349) 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.js +1 -1
  26. package/lib/commands/app-config/delete.js +1 -1
  27. package/lib/commands/app-config/get.js +1 -1
  28. package/lib/commands/app-config/index.js +1 -1
  29. package/lib/commands/app-config/list.js +1 -1
  30. package/lib/commands/app-config/set.js +1 -1
  31. package/lib/commands/app-config/shared.js +1 -1
  32. package/lib/commands/auth/index.js +1 -1
  33. package/lib/commands/bff/create.js +1 -1
  34. package/lib/commands/bff/delete.js +1 -1
  35. package/lib/commands/bff/detail.js +1 -1
  36. package/lib/commands/bff/index.js +1 -1
  37. package/lib/commands/bff/list.js +1 -1
  38. package/lib/commands/bff/pull.js +1 -1
  39. package/lib/commands/bff/push.js +1 -1
  40. package/lib/commands/bff/status.js +1 -1
  41. package/lib/commands/cli-skill/index.js +1 -1
  42. package/lib/commands/cli-update.js +1 -1
  43. package/lib/commands/codegen/index.js +1 -1
  44. package/lib/commands/codegen/sdk.js +1 -1
  45. package/lib/commands/codegen/sql.js +1 -1
  46. package/lib/commands/common/app-registry.js +1 -1
  47. package/lib/commands/common/app-selector.js +1 -1
  48. package/lib/commands/common/async-task.js +1 -1
  49. package/lib/commands/common/dry-run.js +1 -1
  50. package/lib/commands/common/flags.js +1 -1
  51. package/lib/commands/common/local-file.js +1 -1
  52. package/lib/commands/common/validate.js +1 -1
  53. package/lib/commands/config/delete.js +1 -1
  54. package/lib/commands/config/get.js +1 -1
  55. package/lib/commands/config/index.js +1 -1
  56. package/lib/commands/config/init.js +1 -1
  57. package/lib/commands/config/list.js +1 -1
  58. package/lib/commands/config/set.js +1 -1
  59. package/lib/commands/config/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/business-groups.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-restore.js +1 -1
  67. package/lib/commands/dataset/field-update.js +1 -1
  68. package/lib/commands/dataset/generate.js +1 -1
  69. package/lib/commands/dataset/index.js +1 -1
  70. package/lib/commands/dataset/list.js +1 -1
  71. package/lib/commands/dataset/operations.js +1 -1
  72. package/lib/commands/dataset/relation-audit.js +1 -1
  73. package/lib/commands/dataset/relation-create.js +1 -1
  74. package/lib/commands/dataset/relation-delete.js +1 -1
  75. package/lib/commands/dataset/relation-shared.js +1 -1
  76. package/lib/commands/dataset/relation-update.js +1 -1
  77. package/lib/commands/dataset/relations.js +1 -1
  78. package/lib/commands/dataset/rename.js +1 -1
  79. package/lib/commands/dataset/restore.js +1 -1
  80. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  81. package/lib/commands/db/analysis-batching.js +1 -1
  82. package/lib/commands/db/analyze-batch-plan.js +1 -1
  83. package/lib/commands/db/analyze-cancel.js +1 -1
  84. package/lib/commands/db/analyze-start.js +1 -1
  85. package/lib/commands/db/analyze-status.js +1 -1
  86. package/lib/commands/db/create.js +1 -1
  87. package/lib/commands/db/delete.js +1 -1
  88. package/lib/commands/db/detail.js +1 -1
  89. package/lib/commands/db/diff-refresh-start.js +1 -1
  90. package/lib/commands/db/diff-refresh-status.js +1 -1
  91. package/lib/commands/db/diff.js +1 -1
  92. package/lib/commands/db/index.js +1 -1
  93. package/lib/commands/db/list.js +1 -1
  94. package/lib/commands/db/shared.js +1 -1
  95. package/lib/commands/db/table-diff-shared.js +1 -1
  96. package/lib/commands/db/tables.js +1 -1
  97. package/lib/commands/db/test.js +1 -1
  98. package/lib/commands/db/update.js +1 -1
  99. package/lib/commands/deployment/auto-sync.js +1 -1
  100. package/lib/commands/deployment/index.js +1 -1
  101. package/lib/commands/deployment/sync-all.js +1 -1
  102. package/lib/commands/deployment/sync-jobs.js +1 -1
  103. package/lib/commands/deployment/sync-status.js +1 -1
  104. package/lib/commands/deployment/sync.js +1 -1
  105. package/lib/commands/doctor.js +1 -1
  106. package/lib/commands/file/index.js +1 -1
  107. package/lib/commands/instant-api-policy/current.js +1 -1
  108. package/lib/commands/instant-api-policy/index.js +1 -1
  109. package/lib/commands/instant-api-policy/init.js +1 -1
  110. package/lib/commands/instant-api-policy/publish.js +1 -1
  111. package/lib/commands/instant-api-policy/pull.js +1 -1
  112. package/lib/commands/instant-api-policy/revision.js +1 -1
  113. package/lib/commands/instant-api-policy/revisions.js +1 -1
  114. package/lib/commands/instant-api-policy/rollback.js +1 -1
  115. package/lib/commands/instant-api-policy/shared.js +1 -1
  116. package/lib/commands/instant-api-policy/validate.js +1 -1
  117. package/lib/commands/issue/index.js +1 -1
  118. package/lib/commands/issue/nudge.js +1 -1
  119. package/lib/commands/issue/report.js +1 -1
  120. package/lib/commands/issue/shared.js +1 -1
  121. package/lib/commands/kb/create.js +1 -1
  122. package/lib/commands/kb/delete.js +1 -1
  123. package/lib/commands/kb/detail.js +1 -1
  124. package/lib/commands/kb/index.js +1 -1
  125. package/lib/commands/kb/list.js +1 -1
  126. package/lib/commands/kb/search.js +1 -1
  127. package/lib/commands/kb/shared.js +1 -1
  128. package/lib/commands/kb/update.js +1 -1
  129. package/lib/commands/logs/index.js +1 -1
  130. package/lib/commands/menu/asset-update.js +1 -1
  131. package/lib/commands/menu/delete.js +1 -1
  132. package/lib/commands/menu/external-link-create.js +1 -1
  133. package/lib/commands/menu/external-link-update.js +1 -1
  134. package/lib/commands/menu/group-create.js +1 -1
  135. package/lib/commands/menu/group-update.js +1 -1
  136. package/lib/commands/menu/index.js +1 -1
  137. package/lib/commands/menu/list.js +1 -1
  138. package/lib/commands/menu/move.js +1 -1
  139. package/lib/commands/menu/regroup-start.js +1 -1
  140. package/lib/commands/menu/rename.js +1 -1
  141. package/lib/commands/menu/shared/compare-table.js +1 -1
  142. package/lib/commands/menu/shared/delete-plan.js +1 -1
  143. package/lib/commands/menu/shared/facts.js +1 -1
  144. package/lib/commands/menu/shared/index.js +1 -1
  145. package/lib/commands/menu/shared/inquirer.js +1 -1
  146. package/lib/commands/menu/shared/local-pages.js +1 -1
  147. package/lib/commands/menu/shared/logic.js +1 -1
  148. package/lib/commands/menu/shared/mutations.js +1 -1
  149. package/lib/commands/menu/shared/service.js +1 -1
  150. package/lib/commands/menu/shared/sync-core.js +1 -1
  151. package/lib/commands/menu/shared/update-core.js +1 -1
  152. package/lib/commands/menu/shared/valid-url.js +1 -1
  153. package/lib/commands/menu/sync.js +1 -1
  154. package/lib/commands/menu/visibility-update.js +1 -1
  155. package/lib/commands/notification/config-create.js +1 -1
  156. package/lib/commands/notification/config-delete.js +1 -1
  157. package/lib/commands/notification/config-list.js +1 -1
  158. package/lib/commands/notification/config-update.js +1 -1
  159. package/lib/commands/notification/index.js +1 -1
  160. package/lib/commands/notification/shared.js +1 -1
  161. package/lib/commands/ocr/index.js +1 -1
  162. package/lib/commands/page/create.js +1 -1
  163. package/lib/commands/page/custom/detail.js +1 -1
  164. package/lib/commands/page/custom/list.js +1 -1
  165. package/lib/commands/page/custom/publish.js +1 -1
  166. package/lib/commands/page/custom/shared.d.ts +0 -8
  167. package/lib/commands/page/custom/shared.js +1 -1
  168. package/lib/commands/page/custom/syntax.js +1 -1
  169. package/lib/commands/page/custom/update.js +1 -1
  170. package/lib/commands/page/data-list-status.js +1 -1
  171. package/lib/commands/page/generate-start.js +1 -1
  172. package/lib/commands/page/generate-status.js +1 -1
  173. package/lib/commands/page/index.js +1 -1
  174. package/lib/commands/page/pull.js +1 -1
  175. package/lib/commands/page/push.js +1 -1
  176. package/lib/commands/page/relation-audit.js +1 -1
  177. package/lib/commands/page/restore.js +1 -1
  178. package/lib/commands/page/shared.js +1 -1
  179. package/lib/commands/page/sync.js +1 -1
  180. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  181. package/lib/commands/project/create/format-elapsed.js +1 -1
  182. package/lib/commands/project/create/main.js +1 -1
  183. package/lib/commands/project/create/materialize-project-template.js +1 -1
  184. package/lib/commands/project/create/project-name.js +1 -1
  185. package/lib/commands/project/create/project-template-archive.js +1 -1
  186. package/lib/commands/project/create/project-template-path.js +1 -1
  187. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  188. package/lib/commands/project/create/use-format-code.js +1 -1
  189. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  190. package/lib/commands/project/domain-routing-sync.js +1 -1
  191. package/lib/commands/project/index.js +1 -1
  192. package/lib/commands/project/upgrade.js +1 -1
  193. package/lib/commands/registry.js +1 -1
  194. package/lib/commands/role/delete.js +1 -1
  195. package/lib/commands/role/detail.js +1 -1
  196. package/lib/commands/role/index.js +1 -1
  197. package/lib/commands/role/list.js +1 -1
  198. package/lib/commands/role/shared.js +1 -1
  199. package/lib/commands/role/update.js +1 -1
  200. package/lib/commands/role/user-add.js +1 -1
  201. package/lib/commands/role/user-remove.js +1 -1
  202. package/lib/commands/role/user-resolve.js +1 -1
  203. package/lib/commands/rule/get.js +1 -1
  204. package/lib/commands/rule/index.js +1 -1
  205. package/lib/commands/rule/list.js +1 -1
  206. package/lib/commands/rule/set.js +1 -1
  207. package/lib/commands/rule/shared.js +1 -1
  208. package/lib/commands/run/index.d.ts +4 -0
  209. package/lib/commands/run/index.js +1 -1
  210. package/lib/commands/schema.js +1 -1
  211. package/lib/commands/sql/create.js +1 -1
  212. package/lib/commands/sql/delete.js +1 -1
  213. package/lib/commands/sql/detail.js +1 -1
  214. package/lib/commands/sql/exec.js +1 -1
  215. package/lib/commands/sql/index.js +1 -1
  216. package/lib/commands/sql/list.js +1 -1
  217. package/lib/commands/sql/pull.js +1 -1
  218. package/lib/commands/sql/push.js +1 -1
  219. package/lib/commands/sql/shared.js +1 -1
  220. package/lib/commands/sql/status.js +1 -1
  221. package/lib/commands/sql/validate.js +1 -1
  222. package/lib/commands/task/index.js +1 -1
  223. package/lib/commands/task/status.js +1 -1
  224. package/lib/commands/tenant/index.js +1 -1
  225. package/lib/commands/tenant/members-list.js +1 -1
  226. package/lib/commands/tenant/shared.js +1 -1
  227. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  228. package/lib/commands/user-account/index.js +1 -1
  229. package/lib/commands/workspace/add.js +1 -1
  230. package/lib/commands/workspace/index.js +1 -1
  231. package/lib/commands/workspace/remove.js +1 -1
  232. package/lib/config/domain-config.js +1 -1
  233. package/lib/config/project-domain-routing.d.ts +5 -1
  234. package/lib/config/project-domain-routing.js +1 -1
  235. package/lib/config/schema.js +1 -1
  236. package/lib/constant/cdn.js +1 -1
  237. package/lib/constant/cli.js +1 -1
  238. package/lib/constant/defaults.js +1 -1
  239. package/lib/constant/domain.js +1 -1
  240. package/lib/constant/env.js +1 -1
  241. package/lib/constant/output.js +1 -1
  242. package/lib/constant/paths.js +1 -1
  243. package/lib/constant/region.js +1 -1
  244. package/lib/constant/risk.js +1 -1
  245. package/lib/constant/routing-profile.js +1 -1
  246. package/lib/context/app-resolver.js +1 -1
  247. package/lib/context/auth-resolver.js +1 -1
  248. package/lib/context/config-loader.js +1 -1
  249. package/lib/context.js +1 -1
  250. package/lib/core/alias-resolver.js +1 -1
  251. package/lib/core/api-client.d.ts +0 -26
  252. package/lib/core/api-client.js +1 -1
  253. package/lib/core/bff/config.js +1 -1
  254. package/lib/core/bff/file-system.js +1 -1
  255. package/lib/core/bff/hash.js +1 -1
  256. package/lib/core/bff/lock.js +1 -1
  257. package/lib/core/bff/utils.js +1 -1
  258. package/lib/core/db-resolver.js +1 -1
  259. package/lib/core/instant-api-policy/config.js +1 -1
  260. package/lib/core/kb-search-client.js +1 -1
  261. package/lib/core/page/file-system.d.ts +43 -0
  262. package/lib/core/page/file-system.js +1 -1
  263. package/lib/core/page/hash.js +1 -1
  264. package/lib/core/page/lock.js +1 -1
  265. package/lib/core/sql-index-auditor.js +1 -1
  266. package/lib/core/sql-sync/config.js +1 -1
  267. package/lib/core/sql-sync/file-system.js +1 -1
  268. package/lib/core/sql-sync/hash.js +1 -1
  269. package/lib/core/sql-sync/lock.js +1 -1
  270. package/lib/core/sql-sync/utils.js +1 -1
  271. package/lib/core/sql-validator.js +1 -1
  272. package/lib/errors.js +1 -1
  273. package/lib/framework/build-all-flags.js +1 -1
  274. package/lib/framework/error-output.js +1 -1
  275. package/lib/framework/explicit-yes.js +1 -1
  276. package/lib/framework/flags.js +1 -1
  277. package/lib/framework/help.js +1 -1
  278. package/lib/framework/index.js +1 -1
  279. package/lib/framework/output.js +1 -1
  280. package/lib/framework/response.js +1 -1
  281. package/lib/framework/runner-alias.js +1 -1
  282. package/lib/framework/runner.js +1 -1
  283. package/lib/framework/schema-export.js +1 -1
  284. package/lib/framework/supported-flags.js +1 -1
  285. package/lib/framework/types.js +1 -1
  286. package/lib/generated/build-info.d.ts +4 -4
  287. package/lib/generated/build-info.js +1 -1
  288. package/lib/generated/official-routing.js +1 -1
  289. package/lib/generated/routing-contract.js +1 -1
  290. package/lib/help.js +1 -1
  291. package/lib/postinstall.js +1 -1
  292. package/lib/runtime/confirmation.js +1 -1
  293. package/lib/runtime/event.js +1 -1
  294. package/lib/runtime/index.js +1 -1
  295. package/lib/runtime/queue.js +1 -1
  296. package/lib/runtime/resolve.js +1 -1
  297. package/lib/skills/builtin-skill.js +1 -1
  298. package/lib/skills/main.js +1 -1
  299. package/lib/skills/npx-skills-add.js +1 -1
  300. package/lib/skills/skill-presence.js +1 -1
  301. package/lib/telemetry/cli-command-trace.js +1 -1
  302. package/lib/telemetry/cli-help-trace.js +1 -1
  303. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  304. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  305. package/lib/telemetry/send-cli-trace-log.js +1 -1
  306. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  307. package/lib/utils/ai_config.js +1 -1
  308. package/lib/utils/apply-jq-filter.js +1 -1
  309. package/lib/utils/cdn-config.js +1 -1
  310. package/lib/utils/check-sdk-version.js +1 -1
  311. package/lib/utils/cli-version-check.js +1 -1
  312. package/lib/utils/cli-version-policy.js +1 -1
  313. package/lib/utils/config.js +1 -1
  314. package/lib/utils/entity-with-id.js +1 -1
  315. package/lib/utils/file-utils.js +1 -1
  316. package/lib/utils/guides-cdn.js +1 -1
  317. package/lib/utils/http-client.js +1 -1
  318. package/lib/utils/is-non-interactive.js +1 -1
  319. package/lib/utils/logger.js +1 -1
  320. package/lib/utils/params.js +1 -1
  321. package/lib/utils/platform.js +1 -1
  322. package/lib/utils/sleep.js +1 -1
  323. package/lib/utils/template-replacer.js +1 -1
  324. package/lib/utils/update-notice.js +1 -1
  325. package/lib/utils/version.js +1 -1
  326. package/lib/utils/with-active-cookie.js +1 -1
  327. package/lib/utils/write-cli-side-channel.js +1 -1
  328. package/package.json +2 -1
  329. package/skills/rabetbase/SKILL.md +5 -5
  330. package/skills/rabetbase/guides/custom-page-workflow.md +35 -17
  331. package/skills/rabetbase/guides/page-development-workflow.md +1 -1
  332. package/skills/rabetbase/knowledge/components.md +292 -0
  333. package/skills/rabetbase/knowledge/custom-page/generation-standards.md +74 -4
  334. package/skills/rabetbase/knowledge/custom-page/page-templates.md +68 -0
  335. package/skills/rabetbase/references/rabetbase-page-create.md +21 -9
  336. package/skills/rabetbase/references/rabetbase-page-custom-detail.md +1 -1
  337. package/skills/rabetbase/references/rabetbase-page-custom-update.md +13 -9
  338. package/skills/rabetbase/references/rabetbase-project-create.md +5 -2
  339. package/skills/rabetbase/references/rabetbase-project-domain-routing-sync.md +2 -2
  340. package/skills/rabetbase/references/rabetbase-run.md +1 -0
  341. package/skills/rabetbase.manifest.json +5 -4
  342. package/templates/README.md +10 -4
  343. package/templates/custom-pages/blank.json +5 -0
  344. package/templates/custom-pages/dashboard.json +5 -0
  345. package/templates/custom-pages/onepage.json +5 -0
  346. package/templates/generate-api/api.ts.tpl +1 -1
  347. package/lib/commands/page/custom/template.d.ts +0 -8
  348. package/lib/commands/page/custom/template.js +0 -1
  349. package/skills/rabetbase/knowledge/custom-page/components.md +0 -225
@@ -1 +1 @@
1
- (function(_0x36d3b9,_0xcf8213){const _0x462788=a291_0x41a7,_0x2b1c25=_0x36d3b9();while(!![]){try{const _0x4650af=parseInt(_0x462788(0x91))/0x1*(parseInt(_0x462788(0xa8))/0x2)+parseInt(_0x462788(0x8f))/0x3+parseInt(_0x462788(0xab))/0x4*(parseInt(_0x462788(0x93))/0x5)+-parseInt(_0x462788(0xa0))/0x6+-parseInt(_0x462788(0xa5))/0x7*(parseInt(_0x462788(0xa6))/0x8)+-parseInt(_0x462788(0xa2))/0x9+-parseInt(_0x462788(0x9b))/0xa;if(_0x4650af===_0xcf8213)break;else _0x2b1c25['push'](_0x2b1c25['shift']());}catch(_0x242145){_0x2b1c25['push'](_0x2b1c25['shift']());}}}(a291_0x521f,0xb40dd));import{buildConfigFromFlags,initGlobalEnvironment,isRoutingRecoveryService}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';function a291_0x521f(){const _0x3dd21b=['rawFlags','definition','format','confirm','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','risk','Rabetbase\x20invocation\x20aborted.','1434320tKKJmh','present','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','execute','message','2020278PdEgCt','yes','10170108QXgVcq','result','AbortError','35WTOPGG','353584HAhPgh','signal','6yDPcEU','command','presentation','7392jkxRVL','dry-run','isNonInteractive','write','high-risk-write','dryRun','args','riskLevel','3278295RhhAYr','service','457465EgkDPP','reason','280qpnHsO'];a291_0x521f=function(){return _0x3dd21b;};return a291_0x521f();}function a291_0x41a7(_0x3afc31,_0xe5e41b){_0x3afc31=_0x3afc31-0x8f;const _0x521fa9=a291_0x521f();let _0x41a729=_0x521fa9[_0x3afc31];return _0x41a729;}import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x1ec199,command:_0x16cdb2,risk:_0x3f126c,dryRun:_0x3ef461}){const _0x28bce5=a291_0x41a7;return JSON['stringify']({'ok':_0x1ec199['ok'],'command':_0x16cdb2,'risk':_0x3f126c,..._0x3ef461?{'dryRun':!![]}:{},..._0x1ec199['data']!==undefined?{'data':_0x1ec199['data']}:{},..._0x1ec199[_0x28bce5(0x9f)]?{'message':_0x1ec199[_0x28bce5(0x9f)]}:{}});}};export async function invokeRabetbase(_0x56bd8e,_0x31deed){const _0x220474=a291_0x41a7;throwIfAborted(_0x31deed[_0x220474(0xa7)]);const _0x247cbe=await resolveRabetbaseInvocation(_0x56bd8e),_0x2c99c9=canonicalRabetbaseOperation(_0x247cbe[_0x220474(0x95)]);return await confirmWriteBeforeQueue(_0x247cbe[_0x220474(0x95)],_0x247cbe[_0x220474(0x94)],_0x2c99c9,_0x31deed),runSerialized(async()=>{const _0x5da3bf=_0x220474,_0x3406cc={};try{throwIfAborted(_0x31deed[_0x5da3bf(0xa7)]);const _0x87d73e=buildConfigFromFlags(_0x247cbe[_0x5da3bf(0x94)]);!isRoutingRecoveryService(_0x247cbe[_0x5da3bf(0x95)][_0x5da3bf(0x90)])&&await initGlobalEnvironment(_0x87d73e);const _0x13933f=createPipelineEnv(_0x87d73e,{..._0x247cbe[_0x5da3bf(0x94)],'yes':_0x247cbe[_0x5da3bf(0x95)][_0x5da3bf(0x99)]===_0x5da3bf(0xaf)?!![]:_0x247cbe[_0x5da3bf(0x94)][_0x5da3bf(0xa1)],'nonInteractive':!![]},_0x247cbe[_0x5da3bf(0xb1)]);_0x13933f[_0x5da3bf(0xad)]=!![],_0x13933f[_0x5da3bf(0xb2)]='high-risk-write';const _0x4b729b=withAbortSignal(_0x247cbe[_0x5da3bf(0x95)],_0x31deed[_0x5da3bf(0xa7)]),_0x381886=createRabetbaseRunnerAdapter({'formatOutput'(_0x452495,_0x4ea467){const _0x4aeef8=_0x5da3bf;_0x3406cc[_0x4aeef8(0xa3)]=_0x452495,_0x3406cc[_0x4aeef8(0xa9)]=_0x4ea467['command'],_0x3406cc[_0x4aeef8(0x99)]=_0x4ea467['risk'],_0x3406cc[_0x4aeef8(0x96)]=_0x4ea467[_0x4aeef8(0x96)],_0x3406cc['dryRun']=_0x4ea467['dryRun']===!![];},async 'confirmHighRisk'(){const _0x175b8d=_0x5da3bf;throw new Error(_0x175b8d(0x98));}});await runCommand(_0x4b729b,_0x13933f,_0x381886);if(!_0x3406cc[_0x5da3bf(0xa3)]||!_0x3406cc['command']||!_0x3406cc[_0x5da3bf(0x99)]||!_0x3406cc[_0x5da3bf(0x96)])throw new Error(_0x5da3bf(0x9d));const _0x471682=_0x3406cc[_0x5da3bf(0xb0)]===!![],_0x1d4f0c=_0x31deed[_0x5da3bf(0xaa)]??defaultPresentation,_0xe433a1={'result':_0x3406cc[_0x5da3bf(0xa3)],'command':_0x3406cc[_0x5da3bf(0xa9)],'operation':_0x2c99c9,'risk':_0x3406cc[_0x5da3bf(0x99)],'format':_0x3406cc[_0x5da3bf(0x96)],'dryRun':_0x471682},_0x54ddf3=createRabetbaseWriteMetadata(_0x247cbe['definition'],_0x2c99c9,_0x3406cc['result'],_0x471682);let _0x3fece1;try{_0x3fece1=await _0x1d4f0c['present'](_0xe433a1);}catch(_0xa82398){if(!_0x54ddf3||_0x1d4f0c===defaultPresentation)throw _0xa82398;_0x3fece1=await defaultPresentation[_0x5da3bf(0x9c)](_0xe433a1);}return{'operation':_0x2c99c9,'risk':_0x3406cc[_0x5da3bf(0x99)],'mode':_0x471682?_0x5da3bf(0xac):_0x5da3bf(0x9e),'result':_0x3406cc[_0x5da3bf(0xa3)],'output':_0x3fece1,..._0x54ddf3?{'metadata':_0x54ddf3}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x31cafc,_0x57723e,_0x4e2a44,_0x317e53){const _0x56ce03=a291_0x41a7;if(_0x57723e['dryRun']===!![]||_0x31cafc[_0x56ce03(0x99)]!==_0x56ce03(0xae)&&_0x31cafc[_0x56ce03(0x99)]!==_0x56ce03(0xaf))return;await _0x317e53['confirmation'][_0x56ce03(0x97)](buildRabetbaseConfirmationRequest(_0x31cafc,_0x4e2a44,_0x317e53['signal']));}function withAbortSignal(_0x4ea2dd,_0x473f5d){return{..._0x4ea2dd,async 'execute'(_0x2af47f){const _0x3d4591=a291_0x41a7;return throwIfAborted(_0x473f5d),_0x4ea2dd[_0x3d4591(0x9e)]({..._0x2af47f,'signal':_0x473f5d});}};}function throwIfAborted(_0x79505c){const _0x2a95a3=a291_0x41a7;if(_0x79505c?.['aborted'])throw _0x79505c[_0x2a95a3(0x92)]instanceof Error?_0x79505c[_0x2a95a3(0x92)]:new DOMException(_0x2a95a3(0x9a),_0x2a95a3(0xa4));}
1
+ (function(_0x3782f4,_0x38ee25){const _0x822cbe=a290_0x5bf1,_0x51eaef=_0x3782f4();while(!![]){try{const _0x1c0bc1=-parseInt(_0x822cbe(0x8b))/0x1+parseInt(_0x822cbe(0x7c))/0x2*(parseInt(_0x822cbe(0x82))/0x3)+-parseInt(_0x822cbe(0x81))/0x4+-parseInt(_0x822cbe(0x96))/0x5+parseInt(_0x822cbe(0x86))/0x6*(-parseInt(_0x822cbe(0x8a))/0x7)+parseInt(_0x822cbe(0x9b))/0x8*(-parseInt(_0x822cbe(0x95))/0x9)+parseInt(_0x822cbe(0x98))/0xa;if(_0x1c0bc1===_0x38ee25)break;else _0x51eaef['push'](_0x51eaef['shift']());}catch(_0x28dd77){_0x51eaef['push'](_0x51eaef['shift']());}}}(a290_0x3079,0x9756e));function a290_0x3079(){const _0x3f22be=['message','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','present','106IiyxyV','result','execute','dryRun','confirm','1529636dFgGCP','57999jLinox','risk','args','riskLevel','169584pUSUcE','rawFlags','data','service','217oJCdHy','1065113AIJpke','format','yes','definition','isNonInteractive','AbortError','confirmation','presentation','dry-run','high-risk-write','207AxTzzo','667150aEJuWy','signal','28110740GwsYLc','aborted','command','263896xKilIv','Rabetbase\x20invocation\x20aborted.'];a290_0x3079=function(){return _0x3f22be;};return a290_0x3079();}import{buildConfigFromFlags,initGlobalEnvironment,isRoutingRecoveryService}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x5a1a81,command:_0x2b54d0,risk:_0x20d191,dryRun:_0x287242}){const _0xd86cfc=a290_0x5bf1;return JSON['stringify']({'ok':_0x5a1a81['ok'],'command':_0x2b54d0,'risk':_0x20d191,..._0x287242?{'dryRun':!![]}:{},..._0x5a1a81[_0xd86cfc(0x88)]!==undefined?{'data':_0x5a1a81[_0xd86cfc(0x88)]}:{},..._0x5a1a81[_0xd86cfc(0x9d)]?{'message':_0x5a1a81['message']}:{}});}};export async function invokeRabetbase(_0x4ccc1b,_0x1ece4e){const _0x18cc58=a290_0x5bf1;throwIfAborted(_0x1ece4e[_0x18cc58(0x97)]);const _0x302a1d=await resolveRabetbaseInvocation(_0x4ccc1b),_0x5eb670=canonicalRabetbaseOperation(_0x302a1d['definition']);return await confirmWriteBeforeQueue(_0x302a1d['definition'],_0x302a1d[_0x18cc58(0x87)],_0x5eb670,_0x1ece4e),runSerialized(async()=>{const _0x524373=_0x18cc58,_0x530458={};try{throwIfAborted(_0x1ece4e[_0x524373(0x97)]);const _0x5ce2b0=buildConfigFromFlags(_0x302a1d[_0x524373(0x87)]);!isRoutingRecoveryService(_0x302a1d[_0x524373(0x8e)][_0x524373(0x89)])&&await initGlobalEnvironment(_0x5ce2b0);const _0x44c4f7=createPipelineEnv(_0x5ce2b0,{..._0x302a1d['rawFlags'],'yes':_0x302a1d[_0x524373(0x8e)]['risk']===_0x524373(0x94)?!![]:_0x302a1d[_0x524373(0x87)][_0x524373(0x8d)],'nonInteractive':!![]},_0x302a1d[_0x524373(0x84)]);_0x44c4f7[_0x524373(0x8f)]=!![],_0x44c4f7[_0x524373(0x85)]=_0x524373(0x94);const _0x3affc9=withAbortSignal(_0x302a1d['definition'],_0x1ece4e[_0x524373(0x97)]),_0x3c181e=createRabetbaseRunnerAdapter({'formatOutput'(_0x9c44cf,_0x9f20e3){const _0x5cb781=_0x524373;_0x530458['result']=_0x9c44cf,_0x530458[_0x5cb781(0x9a)]=_0x9f20e3[_0x5cb781(0x9a)],_0x530458[_0x5cb781(0x83)]=_0x9f20e3[_0x5cb781(0x83)],_0x530458[_0x5cb781(0x8c)]=_0x9f20e3['format'],_0x530458[_0x5cb781(0x7f)]=_0x9f20e3[_0x5cb781(0x7f)]===!![];},async 'confirmHighRisk'(){const _0x428238=_0x524373;throw new Error(_0x428238(0x7a));}});await runCommand(_0x3affc9,_0x44c4f7,_0x3c181e);if(!_0x530458[_0x524373(0x7d)]||!_0x530458[_0x524373(0x9a)]||!_0x530458[_0x524373(0x83)]||!_0x530458['format'])throw new Error('Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.');const _0x15a174=_0x530458['dryRun']===!![],_0x3c2be=_0x1ece4e[_0x524373(0x92)]??defaultPresentation,_0x3b6b97={'result':_0x530458[_0x524373(0x7d)],'command':_0x530458[_0x524373(0x9a)],'operation':_0x5eb670,'risk':_0x530458[_0x524373(0x83)],'format':_0x530458['format'],'dryRun':_0x15a174},_0x402e85=createRabetbaseWriteMetadata(_0x302a1d[_0x524373(0x8e)],_0x5eb670,_0x530458['result'],_0x15a174);let _0xa98bd0;try{_0xa98bd0=await _0x3c2be[_0x524373(0x7b)](_0x3b6b97);}catch(_0x18e359){if(!_0x402e85||_0x3c2be===defaultPresentation)throw _0x18e359;_0xa98bd0=await defaultPresentation[_0x524373(0x7b)](_0x3b6b97);}return{'operation':_0x5eb670,'risk':_0x530458[_0x524373(0x83)],'mode':_0x15a174?_0x524373(0x93):_0x524373(0x7e),'result':_0x530458[_0x524373(0x7d)],'output':_0xa98bd0,..._0x402e85?{'metadata':_0x402e85}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x3c738f,_0x38ab1a,_0x622f6e,_0x274df2){const _0x3038fa=a290_0x5bf1;if(_0x38ab1a['dryRun']===!![]||_0x3c738f['risk']!=='write'&&_0x3c738f[_0x3038fa(0x83)]!==_0x3038fa(0x94))return;await _0x274df2[_0x3038fa(0x91)][_0x3038fa(0x80)](buildRabetbaseConfirmationRequest(_0x3c738f,_0x622f6e,_0x274df2[_0x3038fa(0x97)]));}function a290_0x5bf1(_0x575849,_0x4ba338){_0x575849=_0x575849-0x7a;const _0x30792a=a290_0x3079();let _0x5bf14f=_0x30792a[_0x575849];return _0x5bf14f;}function withAbortSignal(_0x37d8f6,_0x2a35a7){return{..._0x37d8f6,async 'execute'(_0x4c2a6a){const _0x507a71=a290_0x5bf1;return throwIfAborted(_0x2a35a7),_0x37d8f6[_0x507a71(0x7e)]({..._0x4c2a6a,'signal':_0x2a35a7});}};}function throwIfAborted(_0x12b79b){const _0x41191a=a290_0x5bf1;if(_0x12b79b?.[_0x41191a(0x99)])throw _0x12b79b['reason']instanceof Error?_0x12b79b['reason']:new DOMException(_0x41191a(0x9c),_0x41191a(0x90));}
@@ -1 +1 @@
1
- function a292_0x4ded(){const _0x310380=['1142736mmqSiJ','14374ZQSiZB','1049064LHftYh','231GyxcUb','12TAtSdB','50LZmsNU','resolve','155210GVRVPK','catch','326763kTvBoE','62352TLVazs','13608XmAkdG'];a292_0x4ded=function(){return _0x310380;};return a292_0x4ded();}const a292_0x12b158=a292_0x4780;(function(_0x198352,_0x1bf994){const _0x525512=a292_0x4780,_0x2b04f2=_0x198352();while(!![]){try{const _0x36e2f0=parseInt(_0x525512(0xdd))/0x1+-parseInt(_0x525512(0xdf))/0x2*(parseInt(_0x525512(0xe2))/0x3)+parseInt(_0x525512(0xde))/0x4+-parseInt(_0x525512(0xe5))/0x5+-parseInt(_0x525512(0xdc))/0x6*(parseInt(_0x525512(0xe1))/0x7)+parseInt(_0x525512(0xe0))/0x8+parseInt(_0x525512(0xdb))/0x9*(parseInt(_0x525512(0xe3))/0xa);if(_0x36e2f0===_0x1bf994)break;else _0x2b04f2['push'](_0x2b04f2['shift']());}catch(_0x4869f3){_0x2b04f2['push'](_0x2b04f2['shift']());}}}(a292_0x4ded,0x33152));function a292_0x4780(_0x214aa4,_0x21dc75){_0x214aa4=_0x214aa4-0xda;const _0x4ded27=a292_0x4ded();let _0x47807e=_0x4ded27[_0x214aa4];return _0x47807e;}let tail=Promise[a292_0x12b158(0xe4)]();export async function runSerialized(_0x104364){const _0x4cc6e9=a292_0x12b158,_0x17fb57=tail;let _0x25dad9;tail=new Promise(_0x36192e=>{_0x25dad9=_0x36192e;}),await _0x17fb57[_0x4cc6e9(0xda)](()=>undefined);try{return await _0x104364();}finally{_0x25dad9();}}
1
+ const a291_0x1a450f=a291_0x93d9;function a291_0x93d9(_0x448a02,_0x1c90bb){_0x448a02=_0x448a02-0xec;const _0x3208b6=a291_0x3208();let _0x93d9fe=_0x3208b6[_0x448a02];return _0x93d9fe;}(function(_0x6b5d0a,_0x70e9f3){const _0x197954=a291_0x93d9,_0x276663=_0x6b5d0a();while(!![]){try{const _0xcbf291=parseInt(_0x197954(0xf6))/0x1+parseInt(_0x197954(0xf5))/0x2+parseInt(_0x197954(0xf2))/0x3*(parseInt(_0x197954(0xee))/0x4)+parseInt(_0x197954(0xf3))/0x5*(parseInt(_0x197954(0xed))/0x6)+-parseInt(_0x197954(0xef))/0x7*(parseInt(_0x197954(0xf1))/0x8)+-parseInt(_0x197954(0xf7))/0x9+-parseInt(_0x197954(0xf8))/0xa*(parseInt(_0x197954(0xec))/0xb);if(_0xcbf291===_0x70e9f3)break;else _0x276663['push'](_0x276663['shift']());}catch(_0x408633){_0x276663['push'](_0x276663['shift']());}}}(a291_0x3208,0x9ce6b));let tail=Promise[a291_0x1a450f(0xf0)]();export async function runSerialized(_0x3e1b52){const _0x86729d=a291_0x1a450f,_0x5c8b30=tail;let _0x56bf78;tail=new Promise(_0x20e041=>{_0x56bf78=_0x20e041;}),await _0x5c8b30[_0x86729d(0xf4)](()=>undefined);try{return await _0x3e1b52();}finally{_0x56bf78();}}function a291_0x3208(){const _0x147fee=['11169CQvRiS','15agWqAN','catch','62912xNJXvK','900156FisNWO','6193755uKoHet','975530OHDbZJ','55IQmNTW','2480268AKbOUn','652ruVQQk','56Rxicco','resolve','959968PqXVdS'];a291_0x3208=function(){return _0x147fee;};return a291_0x3208();}
@@ -1 +1 @@
1
- (function(_0x327e52,_0x5a07b9){const _0x1d16c9=a293_0x2846,_0x3c10f5=_0x327e52();while(!![]){try{const _0x32e452=-parseInt(_0x1d16c9(0x9e))/0x1+-parseInt(_0x1d16c9(0xa3))/0x2+-parseInt(_0x1d16c9(0xa6))/0x3+parseInt(_0x1d16c9(0x96))/0x4+-parseInt(_0x1d16c9(0x95))/0x5*(parseInt(_0x1d16c9(0xa1))/0x6)+parseInt(_0x1d16c9(0xa7))/0x7+-parseInt(_0x1d16c9(0x9d))/0x8*(-parseInt(_0x1d16c9(0x9f))/0x9);if(_0x32e452===_0x5a07b9)break;else _0x3c10f5['push'](_0x3c10f5['shift']());}catch(_0x1cff68){_0x3c10f5['push'](_0x3c10f5['shift']());}}}(a293_0x3138,0xd2e19));function a293_0x2846(_0x7882cf,_0x17d5fe){_0x7882cf=_0x7882cf-0x92;const _0x3138d7=a293_0x3138();let _0x2846b6=_0x3138d7[_0x7882cf];return _0x2846b6;}import a293_0x1c893e from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';export async function resolveRabetbaseInvocation(_0x252392){const _0x1d2452=a293_0x2846,_0x471125=a293_0x1c893e('',{'importMeta':import.meta,'argv':[..._0x252392],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x14182c=[..._0x471125[_0x1d2452(0xa5)]],_0x490dcd=_0x471125[_0x1d2452(0x9a)],_0x17c384=_0x14182c[0x0];if(!_0x17c384)throw CliErrors['validation'](_0x1d2452(0xa4));const _0x1f1edd=resolveRemovedCommand(_0x17c384,_0x14182c[0x1]);if(_0x1f1edd)throw CliErrors[_0x1d2452(0xa0)](_0x1f1edd[_0x1d2452(0x9b)],_0x1f1edd[_0x1d2452(0x9c)]);if(_0x17c384===_0x1d2452(0x98))throw CliErrors['validation']('`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.',_0x1d2452(0x92));if(!isKnownService(_0x17c384))throw CliErrors[_0x1d2452(0x93)](_0x14182c[_0x1d2452(0xa2)]('\x20'));const _0x599fb5=getServiceEntry(_0x17c384),_0xfa77c2=_0x14182c[0x1],_0x63326f=_0xfa77c2||_0x599fb5['defaultCommand'];if(!_0x63326f){if(_0x599fb5[_0x1d2452(0x97)])return{'definition':_0x599fb5[_0x1d2452(0x97)],'rawFlags':_0x490dcd,'args':[]};throw CliErrors[_0x1d2452(0xa0)](_0x1d2452(0x99)+_0x17c384+'\x22.');}const _0x3e6741=findDefinition(_0x17c384,_0x63326f);if(_0x3e6741)return assertSupportedCommandFlags(_0x3e6741,_0x490dcd),{'definition':_0x3e6741,'rawFlags':_0x490dcd,'args':_0x14182c[_0x1d2452(0x94)](0x2)};if(_0x599fb5[_0x1d2452(0x97)])return{'definition':_0x599fb5['wildcardDef'],'rawFlags':_0x490dcd,'args':[_0x63326f,..._0x14182c[_0x1d2452(0x94)](0x2)]};throw CliErrors[_0x1d2452(0x93)](_0x17c384+'\x20'+_0x63326f);}function a293_0x3138(){const _0x30bc74=['flags','message','hint','624CaxJve','1436333EzGcfF','317439umGfHm','validation','9318KVjQZZ','join','2194698dpODxY','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','input','3197265lLgwgg','6203806FHhBEN','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','unknownCommand','slice','1695xWazpT','5409108OmQClK','wildcardDef','run','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'];a293_0x3138=function(){return _0x30bc74;};return a293_0x3138();}
1
+ (function(_0x304916,_0x4da695){const _0x4931ed=a292_0x12bf,_0x179b55=_0x304916();while(!![]){try{const _0x45262a=-parseInt(_0x4931ed(0x158))/0x1+-parseInt(_0x4931ed(0x157))/0x2*(parseInt(_0x4931ed(0x159))/0x3)+parseInt(_0x4931ed(0x146))/0x4+-parseInt(_0x4931ed(0x154))/0x5*(parseInt(_0x4931ed(0x14c))/0x6)+-parseInt(_0x4931ed(0x153))/0x7+-parseInt(_0x4931ed(0x149))/0x8+parseInt(_0x4931ed(0x14d))/0x9*(parseInt(_0x4931ed(0x156))/0xa);if(_0x45262a===_0x4da695)break;else _0x179b55['push'](_0x179b55['shift']());}catch(_0x357b5a){_0x179b55['push'](_0x179b55['shift']());}}}(a292_0x26fa,0xc1aa9));function a292_0x12bf(_0x2de60c,_0x1e435d){_0x2de60c=_0x2de60c-0x146;const _0x26fab7=a292_0x26fa();let _0x12bfc4=_0x26fab7[_0x2de60c];return _0x12bfc4;}import a292_0xa86e1a from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';function a292_0x26fa(){const _0x9b96a0=['defaultCommand','112360KqIKzg','2XORBza','1117948XjcNKb','322599fyXHvj','input','4621788xZXdGp','hint','wildcardDef','2588704TUgUeR','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','4199478URkjIC','1719OyvMfs','run','validation','unknownCommand','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','slice','1814988MvsHYD','5fJBBjv'];a292_0x26fa=function(){return _0x9b96a0;};return a292_0x26fa();}export async function resolveRabetbaseInvocation(_0x296de7){const _0x41ae6f=a292_0x12bf,_0x1607d6=a292_0xa86e1a('',{'importMeta':import.meta,'argv':[..._0x296de7],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x336a27=[..._0x1607d6[_0x41ae6f(0x15a)]],_0x225cf9=_0x1607d6['flags'],_0x3f28de=_0x336a27[0x0];if(!_0x3f28de)throw CliErrors[_0x41ae6f(0x14f)](_0x41ae6f(0x14b));const _0xf7301e=resolveRemovedCommand(_0x3f28de,_0x336a27[0x1]);if(_0xf7301e)throw CliErrors[_0x41ae6f(0x14f)](_0xf7301e['message'],_0xf7301e[_0x41ae6f(0x147)]);if(_0x3f28de===_0x41ae6f(0x14e))throw CliErrors[_0x41ae6f(0x14f)](_0x41ae6f(0x14a),_0x41ae6f(0x151));if(!isKnownService(_0x3f28de))throw CliErrors[_0x41ae6f(0x150)](_0x336a27['join']('\x20'));const _0x52aed9=getServiceEntry(_0x3f28de),_0x8f8191=_0x336a27[0x1],_0x1fcca4=_0x8f8191||_0x52aed9[_0x41ae6f(0x155)];if(!_0x1fcca4){if(_0x52aed9[_0x41ae6f(0x148)])return{'definition':_0x52aed9[_0x41ae6f(0x148)],'rawFlags':_0x225cf9,'args':[]};throw CliErrors['validation']('Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x3f28de+'\x22.');}const _0xdea7f8=findDefinition(_0x3f28de,_0x1fcca4);if(_0xdea7f8)return assertSupportedCommandFlags(_0xdea7f8,_0x225cf9),{'definition':_0xdea7f8,'rawFlags':_0x225cf9,'args':_0x336a27['slice'](0x2)};if(_0x52aed9[_0x41ae6f(0x148)])return{'definition':_0x52aed9[_0x41ae6f(0x148)],'rawFlags':_0x225cf9,'args':[_0x1fcca4,..._0x336a27[_0x41ae6f(0x152)](0x2)]};throw CliErrors[_0x41ae6f(0x150)](_0x3f28de+'\x20'+_0x1fcca4);}
@@ -1 +1 @@
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
+ const a294_0x1b79d7=a294_0x434e;(function(_0x50300f,_0x5bbd50){const _0x1b23e8=a294_0x434e,_0x374b27=_0x50300f();while(!![]){try{const _0x376640=-parseInt(_0x1b23e8(0x1da))/0x1*(parseInt(_0x1b23e8(0x1ac))/0x2)+parseInt(_0x1b23e8(0x1c8))/0x3+-parseInt(_0x1b23e8(0x1d3))/0x4*(parseInt(_0x1b23e8(0x1af))/0x5)+parseInt(_0x1b23e8(0x1e2))/0x6*(parseInt(_0x1b23e8(0x1cc))/0x7)+-parseInt(_0x1b23e8(0x1c4))/0x8+parseInt(_0x1b23e8(0x1d6))/0x9+-parseInt(_0x1b23e8(0x1c1))/0xa*(-parseInt(_0x1b23e8(0x1b4))/0xb);if(_0x376640===_0x5bbd50)break;else _0x374b27['push'](_0x374b27['shift']());}catch(_0x39867b){_0x374b27['push'](_0x374b27['shift']());}}}(a294_0x544b,0xbda05));import{createHash}from'node:crypto';function a294_0x544b(){const _0x30425d=['361025edDRuB',':\x5cs*(.+)$','path','name','state','manifest','isSymbolicLink','trim','8741868HTzvPy','current','VERIFY_FAILED','split','package.json','home','unknown','packageVersion','reason','4MbbSHI','isFile','sha256','109425Pxuznd','length','startsWith','root','INSTALL_FAILED','1881ZkCnwf','flatMap','unverifiable','schemaVersion','every','isDirectory','missing','installedPath','skills','SKILL.md','includes','digest','skipped','27630AYcOdU','rabetbase','skillVersion','7866368KuZGwE','status','match','packageRoot','1067550kSphEO','skills@latest\x20exited\x20','message','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','7zyYmRn','SOURCE_INVALID','update','rabetbase.manifest.json','version','pipe','rabetbase\x20cli-skill\x20install','100UbzkQZ','version_mismatch','absent','6694911OgIIuv','utf8','files','error'];a294_0x544b=function(){return _0x30425d;};return a294_0x544b();}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=a294_0x1b79d7(0x1d2),SKILL_NAME=a294_0x1b79d7(0x1c2);function a294_0x434e(_0x409cf8,_0x273d5e){_0x409cf8=_0x409cf8-0x1a7;const _0x544ba2=a294_0x544b();let _0x434e16=_0x544ba2[_0x409cf8];return _0x434e16;}function frontmatterValue(_0x173ad8,_0x5f2942){const _0x4ae006=a294_0x1b79d7;return _0x173ad8[_0x4ae006(0x1c6)](new RegExp('^'+_0x5f2942+_0x4ae006(0x1db),'m'))?.[0x1]?.[_0x4ae006(0x1e1)]()??'';}function listFiles(_0xc05297,_0x253144=_0xc05297){const _0x486744=a294_0x1b79d7;return readdirSync(_0x253144,{'withFileTypes':!![]})[_0x486744(0x1b5)](_0x69c706=>{const _0x119221=_0x486744,_0x2c25c4=join(_0x253144,_0x69c706[_0x119221(0x1dd)]),_0x54fa09=lstatSync(_0x2c25c4);if(_0x54fa09[_0x119221(0x1e0)]())throw new Error('Symbolic\x20link\x20is\x20not\x20allowed:\x20'+_0x2c25c4);if(_0x54fa09[_0x119221(0x1b9)]())return listFiles(_0xc05297,_0x2c25c4);if(!_0x54fa09[_0x119221(0x1ad)]())throw new Error('Unsupported\x20Skill\x20entry:\x20'+_0x2c25c4);return[relative(_0xc05297,_0x2c25c4)[_0x119221(0x1e5)](sep)['join']('/')];})['sort']((_0x33ca80,_0x37bca5)=>_0x33ca80<_0x37bca5?-0x1:_0x33ca80>_0x37bca5?0x1:0x0);}function digestFiles(_0x4214ff,_0x1c6ef5){const _0x13839b=a294_0x1b79d7,_0x4a3f34=createHash(_0x13839b(0x1ae));for(const _0x1565c6 of _0x1c6ef5){if(_0x1565c6[_0x13839b(0x1b1)]('/')||_0x1565c6[_0x13839b(0x1e5)]('/')[_0x13839b(0x1be)]('..')||_0x1565c6[_0x13839b(0x1be)]('\x5c'))throw new Error('Unsafe\x20manifest\x20path:\x20'+_0x1565c6);_0x4a3f34[_0x13839b(0x1ce)](_0x1565c6),_0x4a3f34[_0x13839b(0x1ce)]('\x00'),_0x4a3f34[_0x13839b(0x1ce)](readFileSync(join(_0x4214ff,..._0x1565c6[_0x13839b(0x1e5)]('/')))),_0x4a3f34[_0x13839b(0x1ce)]('\x00');}return _0x4a3f34[_0x13839b(0x1bf)]('hex');}function sameFiles(_0x358c61,_0x143ec1){const _0x119dc0=a294_0x1b79d7;return _0x358c61[_0x119dc0(0x1b0)]===_0x143ec1[_0x119dc0(0x1b0)]&&_0x358c61[_0x119dc0(0x1b8)]((_0x51c201,_0x41377d)=>_0x51c201===_0x143ec1[_0x41377d]);}function readSource(_0x35bb4a){const _0x3b7368=a294_0x1b79d7,_0x1ec466=JSON['parse'](readFileSync(join(_0x35bb4a,_0x3b7368(0x1a7)),_0x3b7368(0x1d7))),_0x77cb78=JSON['parse'](readFileSync(join(_0x35bb4a,_0x3b7368(0x1bc),_0x3b7368(0x1cf)),_0x3b7368(0x1d7))),_0x360482=join(_0x35bb4a,_0x3b7368(0x1bc),SKILL_NAME),_0x1edcc9=frontmatterValue(readFileSync(join(_0x360482,_0x3b7368(0x1bd)),'utf8'),_0x3b7368(0x1d0)),_0x351092=listFiles(_0x360482);if(_0x77cb78[_0x3b7368(0x1b7)]!==0x1||_0x77cb78['name']!==SKILL_NAME||!_0x1ec466[_0x3b7368(0x1d0)]||_0x77cb78[_0x3b7368(0x1aa)]!==_0x1ec466[_0x3b7368(0x1d0)]||_0x77cb78[_0x3b7368(0x1c3)]!==_0x1ec466['version']||_0x1edcc9!==_0x1ec466[_0x3b7368(0x1d0)]||!sameFiles(_0x351092,_0x77cb78[_0x3b7368(0x1d8)])||digestFiles(_0x360482,_0x351092)!==_0x77cb78[_0x3b7368(0x1bf)])throw new Error(_0x3b7368(0x1cb));return{'packageVersion':_0x1ec466[_0x3b7368(0x1d0)],'skillVersion':_0x1edcc9,'root':_0x360482,'manifest':_0x77cb78};}function installedSkillPath(_0x368816){const _0xd2827c=a294_0x1b79d7,_0xd6cc10=resolveInstalledSkill(SKILL_NAME,{'home':_0x368816});if(_0xd6cc10[_0xd2827c(0x1de)]==='present')return{'state':'present','path':dirname(_0xd6cc10[_0xd2827c(0x1dc)])};if(_0xd6cc10[_0xd2827c(0x1de)]===_0xd2827c(0x1d5))return{'state':_0xd2827c(0x1ba)};return{'state':_0xd2827c(0x1b6),'reason':_0xd6cc10[_0xd2827c(0x1ab)]};}export function inspectInstalledBuiltinSkillVersion(_0x1099c6,_0x2ef84d={}){const _0x7ed914=a294_0x1b79d7,_0x268302=installedSkillPath(_0x2ef84d[_0x7ed914(0x1a8)]??homedir());if(_0x268302['state']===_0x7ed914(0x1ba))return{'state':_0x7ed914(0x1ba),'expectedVersion':_0x1099c6,'repairCommand':REPAIR_COMMAND};if(_0x268302[_0x7ed914(0x1de)]==='unverifiable')return{'state':_0x7ed914(0x1b6),'expectedVersion':_0x1099c6,'reason':_0x268302[_0x7ed914(0x1ab)],'repairCommand':REPAIR_COMMAND};try{const _0x46ba7b=frontmatterValue(readFileSync(join(_0x268302['path'],_0x7ed914(0x1bd)),_0x7ed914(0x1d7)),_0x7ed914(0x1d0));return{'state':_0x46ba7b===_0x1099c6?_0x7ed914(0x1e3):_0x7ed914(0x1d4),'expectedVersion':_0x1099c6,'skillVersion':_0x46ba7b,'installedPath':_0x268302[_0x7ed914(0x1dc)],'repairCommand':REPAIR_COMMAND};}catch(_0x364838){return{'state':_0x7ed914(0x1b6),'expectedVersion':_0x1099c6,'installedPath':_0x268302['path'],'reason':_0x364838 instanceof Error?_0x364838[_0x7ed914(0x1ca)]:String(_0x364838),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x61a9b9={}){const _0x386a12=a294_0x1b79d7,_0x54be79=_0x61a9b9[_0x386a12(0x1c7)]??DEFAULT_PACKAGE_ROOT;let _0x2db97e;try{_0x2db97e=readSource(_0x54be79);}catch(_0x3e7502){return{'state':_0x386a12(0x1b6),'packageVersion':_0x386a12(0x1a9),'reason':_0x3e7502 instanceof Error?_0x3e7502[_0x386a12(0x1ca)]:String(_0x3e7502),'repairCommand':REPAIR_COMMAND};}const _0xd4b3e6=installedSkillPath(_0x61a9b9[_0x386a12(0x1a8)]??homedir());if(_0xd4b3e6['state']==='missing')return{'state':_0x386a12(0x1ba),'packageVersion':_0x2db97e[_0x386a12(0x1aa)],'repairCommand':REPAIR_COMMAND};if(_0xd4b3e6[_0x386a12(0x1de)]===_0x386a12(0x1b6))return{'state':_0x386a12(0x1b6),'packageVersion':_0x2db97e[_0x386a12(0x1aa)],'reason':_0xd4b3e6[_0x386a12(0x1ab)],'repairCommand':REPAIR_COMMAND};try{const _0x36a240=frontmatterValue(readFileSync(join(_0xd4b3e6[_0x386a12(0x1dc)],_0x386a12(0x1bd)),_0x386a12(0x1d7)),'version');if(_0x36a240!==_0x2db97e[_0x386a12(0x1c3)])return{'state':'version_mismatch','packageVersion':_0x2db97e[_0x386a12(0x1aa)],'skillVersion':_0x36a240,'installedPath':_0xd4b3e6['path'],'repairCommand':REPAIR_COMMAND};const _0x1a91e0=listFiles(_0xd4b3e6[_0x386a12(0x1dc)]),_0x82c313=digestFiles(_0xd4b3e6[_0x386a12(0x1dc)],_0x1a91e0);return{'state':sameFiles(_0x1a91e0,_0x2db97e[_0x386a12(0x1df)][_0x386a12(0x1d8)])&&_0x82c313===_0x2db97e[_0x386a12(0x1df)][_0x386a12(0x1bf)]?_0x386a12(0x1e3):'content_mismatch','packageVersion':_0x2db97e[_0x386a12(0x1aa)],'skillVersion':_0x36a240,'installedPath':_0xd4b3e6[_0x386a12(0x1dc)],'digest':_0x82c313,'repairCommand':REPAIR_COMMAND};}catch(_0x567681){return{'state':'unverifiable','packageVersion':_0x2db97e[_0x386a12(0x1aa)],'installedPath':_0xd4b3e6[_0x386a12(0x1dc)],'reason':_0x567681 instanceof Error?_0x567681[_0x386a12(0x1ca)]:String(_0x567681),'repairCommand':REPAIR_COMMAND};}}function failure(_0x193983,_0x2ed025,_0x1c1af0,_0x108166){const _0x4fd201=a294_0x1b79d7;return{'ok':![],'code':_0x193983,'packageVersion':_0x2ed025['packageVersion'],'skillVersion':_0x2ed025['skillVersion'],'installedPath':_0x108166,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x1c1af0 instanceof Error?_0x1c1af0[_0x4fd201(0x1ca)]:String(_0x1c1af0)};}export function installBuiltinSkill(_0x358d2b={}){const _0x4acec1=a294_0x1b79d7,_0x28298c=_0x358d2b[_0x4acec1(0x1c7)]??DEFAULT_PACKAGE_ROOT,_0x65e43e=_0x358d2b[_0x4acec1(0x1a8)]??homedir();let _0x137ae3;try{_0x137ae3=readSource(_0x28298c);}catch(_0xf77ad9){return failure(_0x4acec1(0x1cd),{'packageVersion':_0x4acec1(0x1a9),'skillVersion':_0x4acec1(0x1a9)},_0xf77ad9);}const _0x428a37=inspectBuiltinSkill({'packageRoot':_0x28298c,'home':_0x65e43e}),_0x2c7c1c=runNpxSkillsAddGlobal(_0x28298c,_0x137ae3[_0x4acec1(0x1b2)],{'stdio':_0x358d2b['stdio']??_0x4acec1(0x1d1),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x65e43e}});if(_0x2c7c1c[_0x4acec1(0x1c0)])return{'ok':!![],'packageVersion':_0x137ae3[_0x4acec1(0x1aa)],'skillVersion':_0x137ae3[_0x4acec1(0x1c3)],'installedPath':_0x428a37['installedPath'],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x2c7c1c['ok'])return failure(_0x4acec1(0x1b3),_0x137ae3,_0x2c7c1c[_0x4acec1(0x1d9)]??_0x4acec1(0x1c9)+_0x2c7c1c[_0x4acec1(0x1c5)]);const _0x367415=inspectBuiltinSkill({'packageRoot':_0x28298c,'home':_0x65e43e});if(_0x367415[_0x4acec1(0x1de)]!==_0x4acec1(0x1e3))return failure(_0x4acec1(0x1e4),_0x137ae3,_0x367415[_0x4acec1(0x1ab)]??'Installed\x20Skill\x20state\x20is\x20'+_0x367415[_0x4acec1(0x1de)],_0x367415[_0x4acec1(0x1bb)]);return{'ok':!![],'packageVersion':_0x137ae3['packageVersion'],'skillVersion':_0x137ae3[_0x4acec1(0x1c3)],'installedPath':_0x367415[_0x4acec1(0x1bb)],'changed':_0x428a37['state']!==_0x4acec1(0x1e3),'repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
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
+ (function(_0x126736,_0x224c96){const _0x31b798=a295_0x443d,_0xff049c=_0x126736();while(!![]){try{const _0x10a434=-parseInt(_0x31b798(0xad))/0x1+-parseInt(_0x31b798(0xbd))/0x2*(parseInt(_0x31b798(0xb1))/0x3)+parseInt(_0x31b798(0xb0))/0x4*(parseInt(_0x31b798(0xa7))/0x5)+-parseInt(_0x31b798(0xc6))/0x6*(-parseInt(_0x31b798(0xb5))/0x7)+-parseInt(_0x31b798(0xc5))/0x8*(-parseInt(_0x31b798(0xbb))/0x9)+-parseInt(_0x31b798(0xc3))/0xa+-parseInt(_0x31b798(0xc2))/0xb*(-parseInt(_0x31b798(0xcb))/0xc);if(_0x10a434===_0x224c96)break;else _0xff049c['push'](_0xff049c['shift']());}catch(_0x2372aa){_0xff049c['push'](_0xff049c['shift']());}}}(a295_0x53e1,0x86905));function a295_0x443d(_0x238a3b,_0x1e42b1){_0x238a3b=_0x238a3b-0xa7;const _0x53e1aa=a295_0x53e1();let _0x443df7=_0x53e1aa[_0x238a3b];return _0x443df7;}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(_0x5a279b){const _0x19e7a4=a295_0x443d,_0x19b8c0=[];for(const [_0x1b11e2,_0xb757a6]of Object[_0x19e7a4(0xb6)](_0x5a279b)){if(_0xb757a6===!![]){const _0x364ffb=_0x1b11e2[_0x19e7a4(0xb9)](/([A-Z])/g,_0x19e7a4(0xb7))['toLowerCase']();_0x19b8c0[_0x19e7a4(0xbf)](_0x364ffb);}}return _0x19b8c0;}export function parseDynamicFlags(){const _0x46bba4=a295_0x443d,_0x5bfbff=[];for(let _0x34ea1e=0x3;_0x34ea1e<process[_0x46bba4(0xb4)][_0x46bba4(0xa9)];_0x34ea1e++){const _0x3e4bb3=process['argv'][_0x34ea1e];if(_0x3e4bb3&&_0x3e4bb3[_0x46bba4(0xc0)]('--')){const _0x5eb2a2=_0x3e4bb3[_0x46bba4(0xa8)](0x2);_0x5eb2a2&&!_0x5eb2a2[_0x46bba4(0xbe)]('=')&&_0x5bfbff[_0x46bba4(0xbf)](_0x5eb2a2);}}return _0x5bfbff;}function a295_0x53e1(){const _0x8ca93a=['315354OPiDRE','Error:\x20Unsupported\x20command:\x20','\x0aAvailable\x20commands:','enable-bff-save','add','24bEnjsc','13930VlmBHE','slice','length','dangerously-bff-save','log','error','62050akhQPb','help','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','888PUJgmN','78363YVQPhj','from','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','argv','14eZZpse','entries','-$1','(empty)','replace','Public\x20Open\x20Skill\x20source:\x20','3041991hYWSxK','--help','38AJIMSV','includes','push','startsWith','setLogPath','3562427RSQAfB','5998010eiTQYz','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','8AEBKcf'];a295_0x53e1=function(){return _0x8ca93a;};return a295_0x53e1();}export function getAllProvidedFlags(_0x477eb1){const _0x1bea4b=a295_0x443d,_0x131dac=camelCaseFlagsToKebab(_0x477eb1),_0x26f30e=parseDynamicFlags(),_0x32ad89=new Set([..._0x131dac,..._0x26f30e]);return Array[_0x1bea4b(0xb2)](_0x32ad89);}export function normalizeLegacyBffSaveFlags(_0x31b26c){const _0x1ed610=a295_0x443d,_0x351be0=new Set(_0x31b26c);return _0x351be0['has'](_0x1ed610(0xaa))&&_0x351be0[_0x1ed610(0xca)](_0x1ed610(0xc9)),Array[_0x1ed610(0xb2)](_0x351be0);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x215af8,_0x347f73,_0x257b5b){const _0x89b4ae=a295_0x443d;logger[_0x89b4ae(0xc1)](process['cwd']());if(_0x257b5b?.[_0x89b4ae(0xae)]||_0x215af8===_0x89b4ae(0xbc)){showHelp();return;}console[_0x89b4ae(0xac)](_0x89b4ae(0xc7)+(_0x215af8||_0x89b4ae(0xb8))),console['log'](_0x89b4ae(0xc8)),console['log']('\x20\x20'+CLI_BIN_NAME+_0x89b4ae(0xaf)),console[_0x89b4ae(0xab)](''),console[_0x89b4ae(0xab)](_0x89b4ae(0xba)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x89b4ae(0xac)]('skill','Unsupported\x20command:\x20'+_0x215af8),process['exit'](0x1);}function showHelp(){const _0x12eaa4=a295_0x443d;console['log'](_0x12eaa4(0xc4)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x12eaa4(0xb3));}
@@ -1 +1 @@
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
+ const a296_0x2a82ee=a296_0x2677;(function(_0x1028e5,_0x2179ea){const _0x131085=a296_0x2677,_0x5524c8=_0x1028e5();while(!![]){try{const _0x1b5094=-parseInt(_0x131085(0x16d))/0x1+-parseInt(_0x131085(0x19a))/0x2+-parseInt(_0x131085(0x18f))/0x3*(-parseInt(_0x131085(0x169))/0x4)+-parseInt(_0x131085(0x171))/0x5*(parseInt(_0x131085(0x179))/0x6)+-parseInt(_0x131085(0x175))/0x7+-parseInt(_0x131085(0x18b))/0x8*(parseInt(_0x131085(0x165))/0x9)+parseInt(_0x131085(0x182))/0xa;if(_0x1b5094===_0x2179ea)break;else _0x5524c8['push'](_0x5524c8['shift']());}catch(_0x481f6b){_0x5524c8['push'](_0x5524c8['shift']());}}}(a296_0x109b,0xc42fe));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';function a296_0x2677(_0x3821fc,_0x212889){_0x3821fc=_0x3821fc-0x161;const _0x109bae=a296_0x109b();let _0x267789=_0x109bae[_0x3821fc];return _0x267789;}export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a296_0x2a82ee(0x193);export const NPX_SKILLS_SUBCOMMAND_ADD=a296_0x2a82ee(0x17f);export const NPX_SKILLS_FLAG_SKILL=a296_0x2a82ee(0x17e);export const RABETBASE_SKILL_SOURCE=a296_0x2a82ee(0x197);export const LEGACY_RABETBASE_SKILL_SOURCE=a296_0x2a82ee(0x194);export const DEFAULT_RABETBASE_SKILL_NAME=a296_0x2a82ee(0x199);export const RABETBASE_GLOBAL_SKILL_NAME=a296_0x2a82ee(0x196);export const RABETBASE_SKILL_GIT_SOURCE=a296_0x2a82ee(0x187);export function resolveGlobalSkillName(_0x1116ad){switch(_0x1116ad['trim']()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x5af4c1){const _0x5078da=a296_0x2a82ee,_0x1317ba=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x5af4c1&&_0x1317ba[_0x5078da(0x166)](NPX_SKILLS_FLAG_SKILL,_0x5af4c1),_0x1317ba;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a296_0x2a82ee(0x17b),...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a296_0x2a82ee(0x17b),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a296_0x2a82ee(0x17a)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function a296_0x109b(){const _0x32d0cb=['exit\x20','36PYqmqO','push','trim','Skill\x20\x22','2375356dFJANn','error','match','npm_config_global','383902efHoyW','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','present','inherit','5IpeGXa','message','skill','NPX_NOT_FOUND','4577076zYXUOz','yes','log','reason','1697214SDjrOv','join','npx','stderr','status','--skill','add','INSTALL_PARTIAL','signal','38004080dXDheB','CHILD_EXIT_NONZERO','unverifiable','checked','stdout','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','warn','filter','EACCES','2542472OplqdM','pipe','code','PERMISSION_DENIED','3fwYRdl','NPM_CONFIG_GLOBAL','state','presence','skills@latest','lovrabet/lovrabet-skill','Installer\x20reported\x20','rabetbase','lovrabet/rabetbase','npx\x20terminated\x20by\x20signal\x20','Lovrabet','1997580meOXOG','toString','\x22\x20install\x20state:\x20','stdio'];a296_0x109b=function(){return _0x32d0cb;};return a296_0x109b();}function failure(_0x2fd757,_0xff2e58,_0x2ffdec){return{'ok':![],'status':_0xff2e58,'code':_0x2fd757,'error':'['+_0x2fd757+']\x20'+_0x2ffdec};}function spawnOptions(_0x2d0d46,_0x3b8d46){const _0x1fcdca=a296_0x2a82ee,_0x2ffff7={...process.env};return delete _0x2ffff7[_0x1fcdca(0x16c)],delete _0x2ffff7[_0x1fcdca(0x190)],{'cwd':_0x2d0d46,'stdio':_0x3b8d46,'env':_0x2ffff7,'shell':![],..._0x3b8d46===_0x1fcdca(0x18c)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x44ea32,_0x11e0db,_0xb6298b,_0x4ec22c){const _0x2ecb80=a296_0x2a82ee,_0xb0308a=[_0x44ea32[_0x2ecb80(0x186)]?_0x44ea32[_0x2ecb80(0x186)][_0x2ecb80(0x161)]():'',_0x44ea32[_0x2ecb80(0x17c)]?_0x44ea32[_0x2ecb80(0x17c)]['toString']():''][_0x2ecb80(0x189)](Boolean)[_0x2ecb80(0x17a)]('\x0a')[_0x2ecb80(0x167)]();_0x4ec22c!==_0x2ecb80(0x18c)&&_0xb0308a&&console['log'](_0xb0308a);if(_0x44ea32['error']){const _0x1d4528=_0x44ea32[_0x2ecb80(0x16a)],_0x437c0f=_0x1d4528[_0x2ecb80(0x18d)]==='ENOENT'?_0x2ecb80(0x174):_0x1d4528['code']==='EPERM'||_0x1d4528[_0x2ecb80(0x18d)]===_0x2ecb80(0x18a)?_0x2ecb80(0x18e):'SPAWN_FAILED';return failure(_0x437c0f,_0x44ea32[_0x2ecb80(0x17d)],_0x1d4528[_0x2ecb80(0x172)]);}if(_0x44ea32[_0x2ecb80(0x181)])return failure('CHILD_TERMINATED',_0x44ea32[_0x2ecb80(0x17d)],_0x2ecb80(0x198)+_0x44ea32[_0x2ecb80(0x181)]);if(_0x44ea32[_0x2ecb80(0x17d)]!==0x0)return failure(_0x2ecb80(0x183),_0x44ea32['status'],_0xb0308a||_0x2ecb80(0x164)+(_0x44ea32[_0x2ecb80(0x17d)]??'unknown'));const _0x4d52c5=_0x11e0db?resolveInstalledSkill(_0x11e0db,_0xb6298b):undefined,_0x2b09f6=_0xb0308a[_0x2ecb80(0x16b)](/Failed to install\s+(\d+)/i);if(_0x2b09f6&&Number(_0x2b09f6[0x1])>0x0){const _0x156a09=_0x2ecb80(0x195)+_0x2b09f6[0x1]+'\x20failed\x20target(s)'+(_0xb0308a?':\x0a'+_0xb0308a:'');if(_0x4d52c5?.[_0x2ecb80(0x191)]===_0x2ecb80(0x16f))return console['warn']('!\x20'+_0x156a09),{'ok':!![],'status':0x0};return failure(_0x2ecb80(0x180),0x0,_0x156a09);}if(_0x4d52c5){if(_0x4d52c5['state']==='absent')return failure('SKILL_NOT_INSTALLED',0x0,_0x2ecb80(0x168)+_0x11e0db+_0x2ecb80(0x16e)+_0x4d52c5[_0x2ecb80(0x185)][_0x2ecb80(0x17a)](',\x20')+')');_0x4d52c5[_0x2ecb80(0x191)]===_0x2ecb80(0x184)&&console[_0x2ecb80(0x188)]('!\x20Could\x20not\x20verify\x20\x22'+_0x11e0db+_0x2ecb80(0x162)+_0x4d52c5[_0x2ecb80(0x178)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x30a02f,_0x3f091f){const _0x18b1fd=a296_0x2a82ee;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x2e6bb9=_0x3f091f?.['stdio']??_0x18b1fd(0x170),_0x5210a6=resolveNpmBin(_0x18b1fd(0x17b)),_0x2cc8b9=buildNpxSkillsAddArgv(_0x3f091f?.['skill']),_0xa138dc=['npx',..._0x2cc8b9]['join']('\x20');console['log']('*\x20'+_0xa138dc);const _0x2fbbfe=spawnSync(_0x5210a6,_0x2cc8b9,spawnOptions(_0x30a02f,_0x2e6bb9));return normalizeSpawnResult(_0x2fbbfe,undefined,undefined,_0x2e6bb9);}export function runNpxSkillsRemove(_0x5bd7cf,_0x544363,_0x2e2e03=LEGACY_RABETBASE_SKILL_SOURCE){const _0x418d06=a296_0x2a82ee;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1990d0=_0x544363?.[_0x418d06(0x163)]??_0x418d06(0x170),_0x39e266=resolveNpmBin(_0x418d06(0x17b)),_0x52f6c6=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x2e2e03,NPX_SKILLS_FLAG_SKILL,_0x544363?.[_0x418d06(0x173)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x544363?.[_0x418d06(0x176)]?['-y']:[]],_0x4d3094=[_0x39e266,..._0x52f6c6][_0x418d06(0x17a)]('\x20');console[_0x418d06(0x177)]('*\x20'+_0x4d3094);const _0x1d2503=spawnSync(_0x39e266,_0x52f6c6,spawnOptions(_0x5bd7cf,_0x1990d0));return normalizeSpawnResult(_0x1d2503,undefined,undefined,_0x1990d0);}export function runNpxSkillsAddGlobal(_0x11f43d,_0xbb473d,_0x52c72c){const _0x1b78c9=a296_0x2a82ee;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x26ee26=resolveNpmBin('npx'),_0x3d1a9=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0xbb473d,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x4c06ac=[_0x1b78c9(0x17b),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0xbb473d,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x1b78c9(0x17a)]('\x20');console[_0x1b78c9(0x177)]('*\x20'+_0x4c06ac);const _0x44c991=spawnSync(_0x26ee26,_0x3d1a9,spawnOptions(_0x11f43d,'pipe'));return normalizeSpawnResult(_0x44c991,_0x52c72c?.['expectedSkillName']??resolveGlobalSkillName(_0xbb473d),_0x52c72c?.[_0x1b78c9(0x192)],_0x52c72c?.['stdio']);}
@@ -1 +1 @@
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
+ function a297_0x2546(){const _0x2eda01=['find','\x20uses\x20unsupported\x20version\x20','5IgmEha','895717BQVfLr','3HzhFrZ','object','map','lockFile','8740700kFSnFL','message','9ELQAZp','join','parse','\x20has\x20no\x20skills\x20map','absent','2714778edOiRL','kind','globalSkillsDirs','not-recorded','includes','42qfTNCD','18901392nAzPaH','.agents','.skill-lock.json','recorded','\x20records\x20\x22','1194683wlEkfs','version','home','11tThmEx','SKILL.md','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','unusable','skills','unverifiable','1017280vvbyKm','284304JEEwrP'];a297_0x2546=function(){return _0x2eda01;};return a297_0x2546();}const a297_0x483936=a297_0x2649;(function(_0x18ab53,_0x4b0009){const _0x44342e=a297_0x2649,_0x261ba6=_0x18ab53();while(!![]){try{const _0x2760aa=-parseInt(_0x44342e(0x14f))/0x1+parseInt(_0x44342e(0x15b))/0x2*(parseInt(_0x44342e(0x150))/0x3)+-parseInt(_0x44342e(0x170))/0x4*(parseInt(_0x44342e(0x173))/0x5)+-parseInt(_0x44342e(0x160))/0x6*(-parseInt(_0x44342e(0x166))/0x7)+-parseInt(_0x44342e(0x16f))/0x8+-parseInt(_0x44342e(0x156))/0x9*(-parseInt(_0x44342e(0x154))/0xa)+parseInt(_0x44342e(0x169))/0xb*(-parseInt(_0x44342e(0x161))/0xc);if(_0x2760aa===_0x4b0009)break;else _0x261ba6['push'](_0x261ba6['shift']());}catch(_0x108b11){_0x261ba6['push'](_0x261ba6['shift']());}}}(a297_0x2546,0xb8d51));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a297_0x483936(0x162),a297_0x483936(0x163));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents','skills'),join('.claude',a297_0x483936(0x16d))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x2fa501,_0x11f14e){const _0x3607a6=a297_0x483936;if(!existsSync(_0x2fa501))return{'kind':_0x3607a6(0x15e)};let _0x2b010b;try{_0x2b010b=JSON[_0x3607a6(0x158)](readFileSync(_0x2fa501,'utf8'));}catch(_0x33bc63){return{'kind':_0x3607a6(0x16c),'reason':_0x2fa501+'\x20is\x20unreadable:\x20'+_0x33bc63[_0x3607a6(0x155)]};}const _0x5f47c0=_0x2b010b;if(typeof _0x5f47c0?.[_0x3607a6(0x167)]!=='number'||!SUPPORTED_LOCK_VERSIONS[_0x3607a6(0x15f)](_0x5f47c0[_0x3607a6(0x167)]))return{'kind':_0x3607a6(0x16c),'reason':_0x2fa501+_0x3607a6(0x172)+String(_0x5f47c0?.[_0x3607a6(0x167)])};if(!_0x5f47c0[_0x3607a6(0x16d)]||typeof _0x5f47c0[_0x3607a6(0x16d)]!==_0x3607a6(0x151))return{'kind':_0x3607a6(0x16c),'reason':_0x2fa501+_0x3607a6(0x159)};return _0x5f47c0['skills'][_0x11f14e]?{'kind':'recorded'}:{'kind':_0x3607a6(0x15e)};}function a297_0x2649(_0x29057a,_0x89851a){_0x29057a=_0x29057a-0x14f;const _0x254626=a297_0x2546();let _0x26492c=_0x254626[_0x29057a];return _0x26492c;}export function resolveInstalledSkill(_0x4cda06,_0x2f21d1){const _0x52d6d7=a297_0x483936,_0x5da885=_0x2f21d1?.[_0x52d6d7(0x168)]??homedir(),_0x10ca9a=_0x2f21d1?.[_0x52d6d7(0x15d)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x52d6d7(0x152)](_0x5cfa5f=>join(_0x5da885,_0x5cfa5f)),_0x491c15=_0x2f21d1?.[_0x52d6d7(0x153)]??join(_0x5da885,SKILL_LOCK_RELATIVE_PATH),_0x50042b=_0x10ca9a[_0x52d6d7(0x152)](_0x1afc88=>join(_0x1afc88,_0x4cda06,_0x52d6d7(0x16a))),_0xededb6=_0x50042b[_0x52d6d7(0x171)](_0x105375=>existsSync(_0x105375));if(_0xededb6)return{'state':'present','path':_0xededb6};const _0x26140e=readLockLookup(_0x491c15,_0x4cda06);if(_0x26140e[_0x52d6d7(0x15c)]===_0x52d6d7(0x16c))return{'state':_0x52d6d7(0x16e),'reason':_0x26140e['reason']};if(_0x26140e[_0x52d6d7(0x15c)]===_0x52d6d7(0x164))return{'state':_0x52d6d7(0x16e),'reason':_0x491c15+_0x52d6d7(0x165)+_0x4cda06+_0x52d6d7(0x16b)+('('+_0x50042b[_0x52d6d7(0x157)](',\x20')+')')};return{'state':_0x52d6d7(0x15a),'checked':_0x50042b};}
@@ -1 +1 @@
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
+ function a298_0x2e2d(){const _0x5e5873=['message','1190522fASsXe','6072498tOvrmj','error','[REDACTED]','entries','93335PsNUgH','flags','command','test','39258430MUogZL','6pwZCUT','188DGOexd','4606539WsBeEn','9FRCHwt','service','rabetbase.command','durationMs','10614552ODWJMu','1850325gtjviE'];a298_0x2e2d=function(){return _0x5e5873;};return a298_0x2e2d();}(function(_0x39d906,_0xc34b42){const _0x51017e=a298_0x1b47,_0x22e714=_0x39d906();while(!![]){try{const _0x3b465b=parseInt(_0x51017e(0x10e))/0x1+parseInt(_0x51017e(0x110))/0x2*(parseInt(_0x51017e(0x106))/0x3)+-parseInt(_0x51017e(0x107))/0x4*(-parseInt(_0x51017e(0x115))/0x5)+-parseInt(_0x51017e(0x111))/0x6+parseInt(_0x51017e(0x108))/0x7+parseInt(_0x51017e(0x10d))/0x8+-parseInt(_0x51017e(0x109))/0x9*(parseInt(_0x51017e(0x105))/0xa);if(_0x3b465b===_0xc34b42)break;else _0x22e714['push'](_0x22e714['shift']());}catch(_0x46c0bd){_0x22e714['push'](_0x22e714['shift']());}}}(a298_0x2e2d,0xeba2e));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a298_0x1b47(_0x51edea,_0x59fc16){_0x51edea=_0x51edea-0x102;const _0x2e2d33=a298_0x2e2d();let _0x1b472e=_0x2e2d33[_0x51edea];return _0x1b472e;}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(_0x147991){const _0x58190d=a298_0x1b47;return SENSITIVE_PATTERNS['some'](_0x2c4609=>_0x2c4609[_0x58190d(0x104)](_0x147991));}function sanitizeFlags(_0xe049ac){const _0x3a6d7e=a298_0x1b47,_0x1b95cb={};for(const [_0x4895f3,_0x2f82d6]of Object[_0x3a6d7e(0x114)](_0xe049ac)){isSensitiveKey(_0x4895f3)?_0x1b95cb[_0x4895f3]=_0x2f82d6!=null&&_0x2f82d6!==''?_0x3a6d7e(0x113):_0x2f82d6:_0x1b95cb[_0x4895f3]=_0x2f82d6;}return _0x1b95cb;}export async function reportCommandTrace(_0x50f9f3){const _0x225c0d=a298_0x1b47;try{const _0x3396e6=sanitizeFlags(_0x50f9f3[_0x225c0d(0x102)]);await sendCliTraceLog({'spanName':_0x225c0d(0x10b),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x50f9f3[_0x225c0d(0x10a)],'command.name':_0x50f9f3[_0x225c0d(0x103)],'command.flags':JSON['stringify'](_0x3396e6),..._0x50f9f3['durationMs']!=null?{'command.duration_ms':_0x50f9f3[_0x225c0d(0x10c)]}:{},..._0x50f9f3[_0x225c0d(0x112)]?{'command.error':_0x50f9f3[_0x225c0d(0x112)]instanceof Error?_0x50f9f3['error'][_0x225c0d(0x10f)]:String(_0x50f9f3[_0x225c0d(0x112)])}:{}}});}catch{}}
@@ -1 +1 @@
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
+ function a299_0x5869(_0x7b3628,_0x44515f){_0x7b3628=_0x7b3628-0xd2;var _0x14a4d5=a299_0x14a4();var _0x586926=_0x14a4d5[_0x7b3628];return _0x586926;}(function(_0x92ce85,_0x3dd998){var _0xa70a97=a299_0x5869,_0x13a0f5=_0x92ce85();while(!![]){try{var _0x502611=parseInt(_0xa70a97(0xdd))/0x1*(parseInt(_0xa70a97(0xd9))/0x2)+-parseInt(_0xa70a97(0xd2))/0x3+parseInt(_0xa70a97(0xd8))/0x4*(-parseInt(_0xa70a97(0xde))/0x5)+parseInt(_0xa70a97(0xdc))/0x6+parseInt(_0xa70a97(0xda))/0x7+-parseInt(_0xa70a97(0xd3))/0x8*(-parseInt(_0xa70a97(0xd5))/0x9)+parseInt(_0xa70a97(0xdb))/0xa*(-parseInt(_0xa70a97(0xd4))/0xb);if(_0x502611===_0x3dd998)break;else _0x13a0f5['push'](_0x13a0f5['shift']());}catch(_0x828167){_0x13a0f5['push'](_0x13a0f5['shift']());}}}(a299_0x14a4,0x76770));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a299_0x14a4(){var _0xbcb3d6=['16TYtcEX','212883sSbjNY','163071EtdqMr','Failed\x20to\x20report\x20CLI\x20help\x20trace:','error','8HCjqCi','275114eOFBQY','3886407QbEFIt','470xjcKwk','3586620PaQUOy','6ugHtLb','881390mUgcrj','service','801516PNQlRJ'];a299_0x14a4=function(){return _0xbcb3d6;};return a299_0x14a4();}export async function reportCliHelpTrace(_0x304193,_0x4171a1){var _0x573a2e=a299_0x5869;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x304193,..._0x4171a1?.[_0x573a2e(0xdf)]&&{'rabetbase.help.service':_0x4171a1['service']}}});}catch(_0x3d4d69){console[_0x573a2e(0xd7)](_0x573a2e(0xd6),_0x3d4d69);}}
@@ -1 +1 @@
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
+ (function(_0x2a40b5,_0x37b628){const _0x33e93e=a300_0x2521,_0xb2146f=_0x2a40b5();while(!![]){try{const _0x1521d6=parseInt(_0x33e93e(0x194))/0x1+parseInt(_0x33e93e(0x18b))/0x2*(-parseInt(_0x33e93e(0x185))/0x3)+-parseInt(_0x33e93e(0x18d))/0x4+parseInt(_0x33e93e(0x192))/0x5*(-parseInt(_0x33e93e(0x186))/0x6)+-parseInt(_0x33e93e(0x18e))/0x7+parseInt(_0x33e93e(0x187))/0x8+parseInt(_0x33e93e(0x18c))/0x9;if(_0x1521d6===_0x37b628)break;else _0xb2146f['push'](_0xb2146f['shift']());}catch(_0x55ae41){_0xb2146f['push'](_0xb2146f['shift']());}}}(a300_0x4bc5,0x71d42));function a300_0x2521(_0x35a9f2,_0x1ce8da){_0x35a9f2=_0x35a9f2-0x185;const _0x4bc554=a300_0x4bc5();let _0x2521dd=_0x4bc554[_0x35a9f2];return _0x2521dd;}import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a300_0x4bc5(){const _0x1aeeff=['tenant','822550JifSCD','8786178gQHwkj','331180RbDKIu','6439279pJuJRZ','tenant_code','daily','username','5OvESxu','email','204800iFKAmw','user','3aCJxhw','98238JmrKTh','5724320GzEpfl','nickname','unknown'];a300_0x4bc5=function(){return _0x1aeeff;};return a300_0x4bc5();}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 _0x31fd54=a300_0x2521,_0x39bc1e=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x472354=_0x39bc1e?.[_0x31fd54(0x195)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x31fd54(0x189)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x31fd54(0x190):'production')}),setUserContext({'id':_0x472354?.['id'],'username':_0x472354?.[_0x31fd54(0x191)],'nickname':_0x472354?.[_0x31fd54(0x188)],'email':_0x472354?.[_0x31fd54(0x193)],'tenantCode':_0x472354?.[_0x31fd54(0x18a)]?.[_0x31fd54(0x18f)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x39bc1e;}
@@ -1 +1 @@
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
+ (function(_0x2bd00c,_0x1169a1){const _0x4bd05b=a301_0x5994,_0x22eaac=_0x2bd00c();while(!![]){try{const _0x41a575=parseInt(_0x4bd05b(0x11f))/0x1*(-parseInt(_0x4bd05b(0x11a))/0x2)+-parseInt(_0x4bd05b(0x117))/0x3+-parseInt(_0x4bd05b(0x116))/0x4*(parseInt(_0x4bd05b(0x11d))/0x5)+parseInt(_0x4bd05b(0x111))/0x6*(parseInt(_0x4bd05b(0x11b))/0x7)+-parseInt(_0x4bd05b(0x114))/0x8*(parseInt(_0x4bd05b(0x115))/0x9)+-parseInt(_0x4bd05b(0x110))/0xa+parseInt(_0x4bd05b(0x120))/0xb*(parseInt(_0x4bd05b(0x11e))/0xc);if(_0x41a575===_0x1169a1)break;else _0x22eaac['push'](_0x22eaac['shift']());}catch(_0x3c2245){_0x22eaac['push'](_0x22eaac['shift']());}}}(a301_0x4017,0x1fe92));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a301_0x5994(_0x9ea8a3,_0xbce461){_0x9ea8a3=_0x9ea8a3-0x10f;const _0x401753=a301_0x4017();let _0x5994d5=_0x401753[_0x9ea8a3];return _0x5994d5;}function a301_0x4017(){const _0x135e43=['29074ApCXQx','4627WHqFcP','exit','100DWqolF','864QhSSBh','7wXoeeK','69377rdUlov','SIGTERM','89800lnosAz','1134BQfdQE','beforeExit','once','8TqPWhZ','2059137RLbVgW','21172BQUeFt','8805yjzbkf','then','SIGINT'];a301_0x4017=function(){return _0x135e43;};return a301_0x4017();}export function registerOtelShutdownOnExit(){const _0x4b6956=a301_0x5994;process['once'](_0x4b6956(0x112),()=>{void flushOtelNodeIfUsed();});const _0xa639e6=()=>{const _0x140cb6=_0x4b6956;void flushOtelNodeIfUsed()[_0x140cb6(0x118)](()=>process[_0x140cb6(0x11c)](0x0));};process[_0x4b6956(0x113)](_0x4b6956(0x119),_0xa639e6),process[_0x4b6956(0x113)](_0x4b6956(0x10f),_0xa639e6);}export async function exitWithOtelShutdown(_0x12ed82){await flushOtelNodeIfUsed(),process['exit'](_0x12ed82);}
@@ -1 +1 @@
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
+ const a302_0x52e9ed=a302_0x4820;(function(_0x4abc35,_0x1498c5){const _0x6c5618=a302_0x4820,_0x5545ff=_0x4abc35();while(!![]){try{const _0x45f525=parseInt(_0x6c5618(0xdf))/0x1+-parseInt(_0x6c5618(0xe4))/0x2+parseInt(_0x6c5618(0xdd))/0x3*(parseInt(_0x6c5618(0xdb))/0x4)+parseInt(_0x6c5618(0xe2))/0x5*(parseInt(_0x6c5618(0xe6))/0x6)+-parseInt(_0x6c5618(0xe5))/0x7+-parseInt(_0x6c5618(0xe1))/0x8*(-parseInt(_0x6c5618(0xe0))/0x9)+parseInt(_0x6c5618(0xe8))/0xa*(parseInt(_0x6c5618(0xde))/0xb);if(_0x45f525===_0x1498c5)break;else _0x5545ff['push'](_0x5545ff['shift']());}catch(_0x156c5d){_0x5545ff['push'](_0x5545ff['shift']());}}}(a302_0x15be,0x5488f));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a302_0x4820(_0x139310,_0x11c7b6){_0x139310=_0x139310-0xda;const _0x15beeb=a302_0x15be();let _0x482074=_0x15beeb[_0x139310];return _0x482074;}const DEFAULT_TRACE_NAME=a302_0x52e9ed(0xdc);export async function sendCliTraceLog(_0x4a7178){const _0x1ed96f=a302_0x52e9ed;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x4a7178[_0x1ed96f(0xda)]??DEFAULT_TRACE_NAME,'version':_0x4a7178[_0x1ed96f(0xe3)]??getCliVersion(),'spanName':_0x4a7178['spanName'],'eventType':'manual','logData':_0x4a7178['logData'],..._0x4a7178['traceparent']&&{'traceparent':_0x4a7178[_0x1ed96f(0xe7)]}});}function a302_0x15be(){const _0x38b9b7=['9SnGoTR','3337248LyLjvu','5bMoLPr','version','1371744Jewkxe','2758084GYtcPe','1708962corNBF','traceparent','1311630sNDzBr','traceName','4WkgTtC','rabetbase-cli','180051zTMNuF','33KonFTh','270650KYnWtV'];a302_0x15be=function(){return _0x38b9b7;};return a302_0x15be();}
@@ -1 +1 @@
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
+ const a303_0xd938b9=a303_0x152a;(function(_0xfac0d0,_0x4c1150){const _0x2aaaaf=a303_0x152a,_0x5572ff=_0xfac0d0();while(!![]){try{const _0x54ac6f=-parseInt(_0x2aaaaf(0x17d))/0x1+-parseInt(_0x2aaaaf(0x174))/0x2+-parseInt(_0x2aaaaf(0x171))/0x3+-parseInt(_0x2aaaaf(0x16d))/0x4*(-parseInt(_0x2aaaaf(0x175))/0x5)+parseInt(_0x2aaaaf(0x179))/0x6+parseInt(_0x2aaaaf(0x173))/0x7*(-parseInt(_0x2aaaaf(0x177))/0x8)+parseInt(_0x2aaaaf(0x170))/0x9;if(_0x54ac6f===_0x4c1150)break;else _0x5572ff['push'](_0x5572ff['shift']());}catch(_0x3767d0){_0x5572ff['push'](_0x5572ff['shift']());}}}(a303_0x1ff3,0xeef80));function a303_0x152a(_0xbca932,_0x236298){_0xbca932=_0xbca932-0x16d;const _0x1ff323=a303_0x1ff3();let _0x152a42=_0x1ff323[_0xbca932];return _0x152a42;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a303_0x1ff3(){const _0x137e24=['732209VpPckK','22096LETBWv','sanitize','redactionKinds','38714049zbsFYH','2566317ZlGcnt','truncated','1330553nmStGQ','3519196JbYRJi','685fCRfVK','issue.log.collect','64JeFxfV','platform-issue-log-collect','4730070mjHuWR','description','originalBytes','title'];a303_0x1ff3=function(){return _0x137e24;};return a303_0x1ff3();}export const PLATFORM_ISSUE_TRACE_NAME=a303_0xd938b9(0x178);export const PLATFORM_ISSUE_SPAN_NAME=a303_0xd938b9(0x176);export async function sendPlatformIssueCollectLog(_0x5819cf){const _0x2277e9=a303_0xd938b9;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x5819cf[_0x2277e9(0x17c)],'issue.description':_0x5819cf[_0x2277e9(0x17a)],..._0x5819cf[_0x2277e9(0x16e)]?{'issue.description_original_bytes':_0x5819cf[_0x2277e9(0x16e)][_0x2277e9(0x17b)],'issue.description_truncated':_0x5819cf[_0x2277e9(0x16e)][_0x2277e9(0x172)],'issue.description_redactions':_0x5819cf[_0x2277e9(0x16e)]['redactionCount'],'issue.description_redaction_kinds':_0x5819cf[_0x2277e9(0x16e)][_0x2277e9(0x16f)]['join'](',')}:{}}});}
@@ -1 +1 @@
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
+ function a305_0x5b9b(){const _0x196fbd=['Qoder\x20IDE','opencode','.claude/skills/lovrabet/SKILL.md','.codex/skills/lovrabet/SKILL.md','.trae/skills/lovrabet/SKILL.md','qoder','Trae\x20IDE','.opencode','.qoder','45270TbOBMC','.codex','.windsurf','Cline','Cursor\x20IDE','383564MRIEus','CodeBuddy\x20IDE','Antigravity','claude','Codex','2593402BBTTuG','codebuddy','cline','.qoder/skills/lovrabet/SKILL.md','windsurf','1728177mhAqaq','.agent','Cursor','.cline','OpenCode','antigravity','Cline\x20IDE','4YKPOXK','.trae','trae','OpenCode\x20IDE','.codebuddy/skills/lovrabet/SKILL.md','15129352jNOZEo','.cursorrules','Trae','.cursor/skills/rabetbase.md','Antigravity\x20IDE','Claude\x20Code','file','codex','75MtWwsc','6221580KAslRQ','.claude','Codex\x20IDE','Generic\x20template\x20fallback','cursor','763854ZfxHZS','.codebuddy','.cursor','Windsurf\x20IDE','Windsurf','7947Qqifen','Qoder','.opencode/skills/lovrabet/SKILL.md'];a305_0x5b9b=function(){return _0x196fbd;};return a305_0x5b9b();}function a305_0x3644(_0x5979d3,_0x4fcffd){_0x5979d3=_0x5979d3-0x13c;const _0x5b9b01=a305_0x5b9b();let _0x364460=_0x5b9b01[_0x5979d3];return _0x364460;}const a305_0x15b232=a305_0x3644;(function(_0x3686fc,_0x3f2d56){const _0xe8a02a=a305_0x3644,_0x35611a=_0x3686fc();while(!![]){try{const _0x1092ad=parseInt(_0xe8a02a(0x164))/0x1*(parseInt(_0xe8a02a(0x13d))/0x2)+-parseInt(_0xe8a02a(0x15d))/0x3+parseInt(_0xe8a02a(0x153))/0x4*(parseInt(_0xe8a02a(0x171))/0x5)+parseInt(_0xe8a02a(0x172))/0x6+-parseInt(_0xe8a02a(0x158))/0x7+parseInt(_0xe8a02a(0x169))/0x8+parseInt(_0xe8a02a(0x142))/0x9*(-parseInt(_0xe8a02a(0x14e))/0xa);if(_0x1092ad===_0x3f2d56)break;else _0x35611a['push'](_0x35611a['shift']());}catch(_0x963b15){_0x35611a['push'](_0x35611a['shift']());}}}(a305_0x5b9b,0xe800e));export const CORE_IDE_CONFIGS={'cursor':{'name':a305_0x15b232(0x15f),'description':a305_0x15b232(0x152),'folders':[a305_0x15b232(0x16a),a305_0x15b232(0x13f)],'files':[{'type':a305_0x15b232(0x16f),'path':a305_0x15b232(0x16c)}]},'windsurf':{'name':a305_0x15b232(0x141),'description':a305_0x15b232(0x140),'folders':[a305_0x15b232(0x150)],'files':[{'type':a305_0x15b232(0x16f),'path':'.windsurf/workflows/rabetbase.md'}]},'claude':{'name':'Claude\x20Code','description':a305_0x15b232(0x16e),'folders':[a305_0x15b232(0x173)],'files':[{'type':'file','path':a305_0x15b232(0x147)}]},'cline':{'name':a305_0x15b232(0x151),'description':a305_0x15b232(0x163),'folders':[a305_0x15b232(0x160)],'files':[{'type':'file','path':'.cline/skills/lovrabet/SKILL.md'}]},'codex':{'name':a305_0x15b232(0x157),'description':a305_0x15b232(0x174),'folders':[a305_0x15b232(0x14f)],'files':[{'type':'file','path':a305_0x15b232(0x148)}]},'opencode':{'name':a305_0x15b232(0x161),'description':a305_0x15b232(0x167),'folders':[a305_0x15b232(0x14c)],'files':[{'type':a305_0x15b232(0x16f),'path':a305_0x15b232(0x144)}]},'qoder':{'name':a305_0x15b232(0x143),'description':a305_0x15b232(0x145),'folders':[a305_0x15b232(0x14d)],'files':[{'type':a305_0x15b232(0x16f),'path':'.qoder/rules/rabetbase.md'},{'type':a305_0x15b232(0x16f),'path':a305_0x15b232(0x15b)}]},'codebuddy':{'name':'CodeBuddy','description':a305_0x15b232(0x154),'folders':[a305_0x15b232(0x13e)],'files':[{'type':a305_0x15b232(0x16f),'path':a305_0x15b232(0x168)}]},'trae':{'name':a305_0x15b232(0x16b),'description':a305_0x15b232(0x14b),'folders':[a305_0x15b232(0x165)],'files':[{'type':a305_0x15b232(0x16f),'path':a305_0x15b232(0x149)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'Other\x20(generic\x20template)','description':a305_0x15b232(0x175),'folders':[a305_0x15b232(0x15e)],'files':[{'type':'file','path':'.agent/skills/lovrabet/SKILL.md'}]},'antigravity':{'name':a305_0x15b232(0x155),'description':a305_0x15b232(0x16d),'folders':['.agent'],'files':[{'type':a305_0x15b232(0x16f),'path':'.agent/skills/lovrabet/SKILL.md'}]}};export const CORE_IDE_LIST=['claude','cline',a305_0x15b232(0x159),'codex',a305_0x15b232(0x13c),'opencode','qoder',a305_0x15b232(0x166),a305_0x15b232(0x15c)];export const IDE_LIST=[a305_0x15b232(0x162),'claude',a305_0x15b232(0x15a),a305_0x15b232(0x159),a305_0x15b232(0x170),a305_0x15b232(0x13c),a305_0x15b232(0x146),a305_0x15b232(0x14a),'trae','windsurf','agent'];export const ALL_CORE_IDES=[a305_0x15b232(0x13c),'windsurf',a305_0x15b232(0x156),a305_0x15b232(0x15a),'codex','opencode',a305_0x15b232(0x14a),a305_0x15b232(0x159),a305_0x15b232(0x166)];
@@ -1 +1 @@
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
+ function a306_0x1b2e(){const _0x1af499=['853519ZyObKh','131276HwnmnX','438006StBnrS','2740RuknEa','3384438XqGlUo','59488RdwYOr','385iRauzo','145IaAvAg','28369MJdJPD','8815842ZLPcey','2IgmbpB'];a306_0x1b2e=function(){return _0x1af499;};return a306_0x1b2e();}function a306_0x304a(_0x47edfc,_0x18687d){_0x47edfc=_0x47edfc-0xa5;const _0x1b2ef3=a306_0x1b2e();let _0x304abf=_0x1b2ef3[_0x47edfc];return _0x304abf;}(function(_0x19fa2c,_0x1bfd6e){const _0x41abea=a306_0x304a,_0x164a9a=_0x19fa2c();while(!![]){try{const _0x4f641c=parseInt(_0x41abea(0xa6))/0x1*(-parseInt(_0x41abea(0xa5))/0x2)+parseInt(_0x41abea(0xa8))/0x3+-parseInt(_0x41abea(0xa7))/0x4*(-parseInt(_0x41abea(0xad))/0x5)+parseInt(_0x41abea(0xaa))/0x6+-parseInt(_0x41abea(0xac))/0x7*(parseInt(_0x41abea(0xab))/0x8)+parseInt(_0x41abea(0xaf))/0x9+parseInt(_0x41abea(0xa9))/0xa*(-parseInt(_0x41abea(0xae))/0xb);if(_0x4f641c===_0x1bfd6e)break;else _0x164a9a['push'](_0x164a9a['shift']());}catch(_0xbf2f3){_0x164a9a['push'](_0x164a9a['shift']());}}}(a306_0x1b2e,0xa41db));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
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
+ (function(_0x17588b,_0x7af0f5){const _0x1252ed=a307_0x3d07,_0x53cd91=_0x17588b();while(!![]){try{const _0x2a9afe=parseInt(_0x1252ed(0x113))/0x1*(-parseInt(_0x1252ed(0x10f))/0x2)+-parseInt(_0x1252ed(0x10e))/0x3+parseInt(_0x1252ed(0x115))/0x4+-parseInt(_0x1252ed(0x10d))/0x5+parseInt(_0x1252ed(0x110))/0x6+parseInt(_0x1252ed(0x112))/0x7+parseInt(_0x1252ed(0x108))/0x8*(parseInt(_0x1252ed(0x10b))/0x9);if(_0x2a9afe===_0x7af0f5)break;else _0x53cd91['push'](_0x53cd91['shift']());}catch(_0x54777a){_0x53cd91['push'](_0x53cd91['shift']());}}}(a307_0x1bff,0x4415f));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x5b5416=a307_0x3d07,_0x25bfde=getTemplateBaseUrl(),_0x1e406f=[_0x25bfde+_0x5b5416(0x117),_0x25bfde+'/config/index.json'];for(const _0x2a0f55 of _0x1e406f){try{const _0x4c8b89=await fetch(_0x2a0f55,{'headers':{'Accept':_0x5b5416(0x10a)}});if(!_0x4c8b89['ok'])continue;const _0x6d167c=await _0x4c8b89[_0x5b5416(0x10c)]();if(!_0x6d167c[_0x5b5416(0x114)]?.[_0x5b5416(0x109)]||!_0x6d167c[_0x5b5416(0x111)]?.[_0x5b5416(0x116)]?.['stableVersion'])continue;return _0x6d167c;}catch{}}return null;}function a307_0x3d07(_0xf98fc3,_0x643cbd){_0xf98fc3=_0xf98fc3-0x108;const _0x1bff43=a307_0x1bff();let _0x3d07f2=_0x1bff43[_0xf98fc3];return _0x3d07f2;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x38eaba=Date['now']();if(hasCachedConfig){const _0x41843f=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x38eaba-cacheTime<_0x41843f)return cachedConfig;}const _0x1a8053=await fetchCdnConfig();return cachedConfig=_0x1a8053,cacheTime=_0x38eaba,hasCachedConfig=!![],_0x1a8053;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}function a307_0x1bff(){const _0x415018=['application/json','1215WujEBT','json','607440DFKwJA','710451RszXrB','1096dveEnh','2484390tLMvxt','sdk','2301327dCrHbB','1011WnDLGU','cli','11544uegPLy','node','/config.json','26400UDYckA','stableVersion'];a307_0x1bff=function(){return _0x415018;};return a307_0x1bff();}
@@ -1 +1 @@
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
+ (function(_0x3d669a,_0x143305){const _0x4e1f87=a308_0x123f,_0x348eb8=_0x3d669a();while(!![]){try{const _0xd8616e=-parseInt(_0x4e1f87(0x19f))/0x1*(parseInt(_0x4e1f87(0x1a6))/0x2)+parseInt(_0x4e1f87(0x1a7))/0x3*(parseInt(_0x4e1f87(0x194))/0x4)+-parseInt(_0x4e1f87(0x199))/0x5+parseInt(_0x4e1f87(0x198))/0x6+parseInt(_0x4e1f87(0x1a4))/0x7*(parseInt(_0x4e1f87(0x193))/0x8)+parseInt(_0x4e1f87(0x19c))/0x9+-parseInt(_0x4e1f87(0x185))/0xa;if(_0xd8616e===_0x143305)break;else _0x348eb8['push'](_0x348eb8['shift']());}catch(_0x39d5d5){_0x348eb8['push'](_0x348eb8['shift']());}}}(a308_0x5451,0xd4227));import a308_0x58bae5 from'node:fs';import a308_0x5c91a2 from'node:path';import a308_0x4a113b from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x3e9b47){const _0x4e9610=a308_0x123f,_0x3ada2f=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x3ada2f[_0x4e9610(0x1a5)](_0x5ad5df=>_0x5ad5df['test'](_0x3e9b47));}function a308_0x123f(_0x10c8fa,_0x5326a9){_0x10c8fa=_0x10c8fa-0x183;const _0x545178=a308_0x5451();let _0x123ffe=_0x545178[_0x10c8fa];return _0x123ffe;}function getInstalledVersion(_0x1e97ae,_0x1f79fd){const _0xcf26e=a308_0x123f;try{const _0x5c2ed8=a308_0x5c91a2[_0xcf26e(0x18f)](_0x1e97ae,_0xcf26e(0x191),_0x1f79fd,'package.json');if(a308_0x58bae5[_0xcf26e(0x190)](_0x5c2ed8)){const _0x3d0a50=JSON[_0xcf26e(0x1a3)](a308_0x58bae5[_0xcf26e(0x1a2)](_0x5c2ed8,'utf-8'));return _0x3d0a50[_0xcf26e(0x197)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x50b33d=a308_0x123f;try{const _0xe7e2de=await getCdnConfig();return _0xe7e2de?.[_0x50b33d(0x1a0)]?.['node']?.[_0x50b33d(0x1a1)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x2c18a0=a308_0x123f;try{const _0x35a4ae=await getCdnConfig();return _0x35a4ae?.[_0x2c18a0(0x1a0)]?.[_0x2c18a0(0x196)]?.['packageName']||'@lovrabet/sdk';}catch{return _0x2c18a0(0x18e);}}export async function checkSdkVersion(_0xa49c58){const _0xd0341e=a308_0x123f,_0x443805=a308_0x5c91a2['join'](_0xa49c58,_0xd0341e(0x192)),[_0x40b083,_0x8416c6]=await Promise[_0xd0341e(0x186)]([getSdkStableVersion(),getSdkPackageName()]),_0x54ca0d=_0x40b083||FALLBACK_MIN_SDK_VERSION;if(!a308_0x58bae5[_0xd0341e(0x190)](_0x443805))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x54ca0d,'packageName':_0x8416c6,'stableVersion':_0x40b083};try{const _0x8265f9=JSON[_0xd0341e(0x1a3)](a308_0x58bae5[_0xd0341e(0x1a2)](_0x443805,'utf8')),_0x599502=_0x8265f9['dependencies']||{},_0x894a3=_0x8265f9[_0xd0341e(0x19d)]||{},_0x49aaf6=_0x599502[_0x8416c6]||_0x894a3[_0x8416c6];if(!_0x49aaf6)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x54ca0d,'packageName':_0x8416c6,'stableVersion':_0x40b083};let _0x592060=getInstalledVersion(_0xa49c58,_0x8416c6);!_0x592060&&(_0x592060=_0x49aaf6);if(isNonNumericVersion(_0x49aaf6))return{'installed':!![],'version':_0x592060,'needsUpgrade':![],'minVersion':_0x54ca0d,'packageName':_0x8416c6,'stableVersion':_0x40b083};const _0x1977d1=a308_0x4a113b[_0xd0341e(0x184)](_0x592060),_0x3c1721=a308_0x4a113b[_0xd0341e(0x184)](_0x54ca0d),_0x113c10=_0x1977d1&&_0x3c1721?a308_0x4a113b['lt'](_0x1977d1,_0x3c1721):![];return{'installed':!![],'version':_0x592060,'needsUpgrade':_0x113c10,'minVersion':_0x54ca0d,'packageName':_0x8416c6,'stableVersion':_0x40b083};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x54ca0d,'packageName':_0x8416c6,'stableVersion':_0x40b083};}}export function checkSdkVersionSync(_0xf315ea){const _0x63bbde=a308_0x123f,_0xe71836=a308_0x5c91a2[_0x63bbde(0x18f)](_0xf315ea,_0x63bbde(0x192)),_0xb68267=_0x63bbde(0x18e);if(!a308_0x58bae5['existsSync'](_0xe71836))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xb68267,'stableVersion':null};try{const _0x4d411b=JSON[_0x63bbde(0x1a3)](a308_0x58bae5[_0x63bbde(0x1a2)](_0xe71836,_0x63bbde(0x18d))),_0x1fe603=_0x4d411b['dependencies']||{},_0x18d00e=_0x4d411b[_0x63bbde(0x19d)]||{},_0x54a418=_0x1fe603[_0xb68267]||_0x18d00e[_0xb68267];if(!_0x54a418)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xb68267,'stableVersion':null};let _0x34ce9c=getInstalledVersion(_0xf315ea,_0xb68267);!_0x34ce9c&&(_0x34ce9c=_0x54a418);if(isNonNumericVersion(_0x54a418))return{'installed':!![],'version':_0x34ce9c,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xb68267,'stableVersion':null};const _0x3aa579=a308_0x4a113b[_0x63bbde(0x184)](_0x34ce9c),_0x5bc9d8=_0x3aa579?a308_0x4a113b['lt'](_0x3aa579,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x34ce9c,'needsUpgrade':_0x5bc9d8,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xb68267,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xb68267,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x44ed70){const _0xfa33b4=a308_0x123f;if(!_0x44ed70[_0xfa33b4(0x19b)])return;const _0x1c3a77=_0xfa33b4(0x18c),_0x34b13a='\x1b[0m',_0x2ee8cd=_0xfa33b4(0x195),_0x30aeda=_0x44ed70[_0xfa33b4(0x19e)]||_0xfa33b4(0x18e),_0xa2f6c7=_0x44ed70[_0xfa33b4(0x1a1)]||_0x44ed70[_0xfa33b4(0x189)],_0x176376=_0xfa33b4(0x18a)+_0x30aeda+'@'+(_0xa2f6c7||_0xfa33b4(0x19a));console[_0xfa33b4(0x188)](),console[_0xfa33b4(0x188)](''+_0x1c3a77+_0x2ee8cd+_0xfa33b4(0x183)+_0x34b13a),console[_0xfa33b4(0x188)](_0x1c3a77+_0xfa33b4(0x18b)+_0x30aeda+'@'+_0x44ed70[_0xfa33b4(0x197)]+_0x34b13a),console[_0xfa33b4(0x188)](_0x1c3a77+_0xfa33b4(0x187)+_0xa2f6c7+_0x34b13a),console[_0xfa33b4(0x188)](_0x1c3a77+'\x20\x20\x20Upgrade\x20command:\x20'+_0x176376+_0x34b13a),console[_0xfa33b4(0x188)]();}function a308_0x5451(){const _0x78ef3f=['24flhabw','\x1b[1m','node','version','9183594zXWskG','141510MuXYmo','latest','needsUpgrade','2610090lqUrcF','devDependencies','packageName','572097LoLUGB','sdk','stableVersion','readFileSync','parse','6391ykAfvP','some','6DbMQJy','720393XdGQxU','↪\x20SDK\x20update\x20available','coerce','14202970BAomaT','all','\x20\x20\x20Stable\x20version:\x20','log','minVersion','npm\x20install\x20','\x20\x20\x20Current\x20version:\x20','\x1b[33m','utf8','@lovrabet/sdk','join','existsSync','node_modules','package.json','6768DXHrVT'];a308_0x5451=function(){return _0x78ef3f;};return a308_0x5451();}
@@ -1 +1 @@
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
+ (function(_0x5be9f8,_0xb60ae3){const _0x587f7f=a309_0x4563,_0x3a3af3=_0x5be9f8();while(!![]){try{const _0x2cf729=parseInt(_0x587f7f(0xb0))/0x1*(parseInt(_0x587f7f(0xb7))/0x2)+parseInt(_0x587f7f(0xc0))/0x3+parseInt(_0x587f7f(0x9f))/0x4*(parseInt(_0x587f7f(0xa5))/0x5)+-parseInt(_0x587f7f(0xa0))/0x6+-parseInt(_0x587f7f(0xb1))/0x7*(-parseInt(_0x587f7f(0xac))/0x8)+parseInt(_0x587f7f(0xc2))/0x9*(parseInt(_0x587f7f(0xa7))/0xa)+-parseInt(_0x587f7f(0xaa))/0xb*(parseInt(_0x587f7f(0xb9))/0xc);if(_0x2cf729===_0xb60ae3)break;else _0x3a3af3['push'](_0x3a3af3['shift']());}catch(_0x307a02){_0x3a3af3['push'](_0x3a3af3['shift']());}}}(a309_0x5b62,0x4857a));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a309_0xf623d6 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a309_0x5b62(){const _0x47189b=['latest','needsUpgrade','462837EpmNdj','1.0.0','27MeQNoJ','Minimum\x20supported:\x20','upgradeMessage','utf-8','minimumVersion','25064LUHXfo','3000870OnDUMZ','coerce','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Stable\x20version:\x20','npm\x20install\x20-g\x20','5HRSlmk','join','794510iagzbI','currentVersion','\x20\x20\x20Current\x20CLI\x20version:\x20','864897aNakrh','../..','8oAeGuA','↪\x20New\x20version\x20available','stableVersion','↪\x20Critical\x20CLI\x20upgrade\x20required','447571wqqDak','200319qUCeDl','\x20\x20\x20','\x20\x20\x20Recommended\x20stable:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','filter','\x1b[0m','2BbeIpr','\x1b[31m','12hgkyhv','belowMinimum','log','minimumVersionMessage','version'];a309_0x5b62=function(){return _0x47189b;};return a309_0x5b62();}export function getCliUpgradeCommand(_0x4283b2){const _0x161566=a309_0x4563,_0x31a596=_0x4283b2[_0x161566(0xae)]||_0x161566(0xbe);return _0x161566(0xa4)+NPM_PACKAGE_NAME+'@'+_0x31a596;}function a309_0x4563(_0x4e4e85,_0xf1abf7){_0x4e4e85=_0x4e4e85-0x9f;const _0x5b626f=a309_0x5b62();let _0x456340=_0x5b626f[_0x4e4e85];return _0x456340;}function getCurrentCliVersion(){const _0x49f004=a309_0x4563;try{const _0x5aa06b=fileURLToPath(import.meta.url),_0x2bf6bd=resolve(dirname(_0x5aa06b),_0x49f004(0xab)),_0x566ffd=resolve(_0x2bf6bd,'package.json'),_0x31fa71=JSON['parse'](readFileSync(_0x566ffd,_0x49f004(0xc5)));return _0x31fa71[_0x49f004(0xbd)]||_0x49f004(0xc1);}catch{return _0x49f004(0xc1);}}export async function checkCliVersion(){const _0x9ab63=a309_0x4563,_0x5306bf=getCurrentCliVersion(),_0x320116=await getCliVersionPolicy(),_0x1d2745=_0x320116?.[_0x9ab63(0xae)]||null,_0x487c44=_0x320116?.['minimumVersion']||null;let _0x104437=![],_0x56c915=![];const _0x35a830=a309_0xf623d6[_0x9ab63(0xa1)](_0x5306bf);if(_0x35a830&&_0x1d2745)try{const _0x1c5d9f=a309_0xf623d6[_0x9ab63(0xa1)](_0x1d2745);if(_0x1c5d9f)_0x104437=a309_0xf623d6['lt'](_0x35a830,_0x1c5d9f);}catch{}if(_0x35a830&&_0x487c44)try{const _0x47d1fa=a309_0xf623d6['coerce'](_0x487c44);if(_0x47d1fa)_0x56c915=a309_0xf623d6['lt'](_0x35a830,_0x47d1fa);}catch{}return _0x56c915&&(_0x104437=!![]),{'currentVersion':_0x5306bf,'stableVersion':_0x1d2745,'minimumVersion':_0x487c44,'needsUpgrade':_0x104437,'belowMinimum':_0x56c915,'isPreRelease':![],'upgradeMessage':_0x320116?.[_0x9ab63(0xc4)],'minimumVersionMessage':_0x320116?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x28bfdb){const _0x18f00b=a309_0x4563;if(!_0x28bfdb[_0x18f00b(0xbf)]&&!_0x28bfdb['belowMinimum'])return;const _0x2b3704=_0x18f00b(0xb8),_0x21b1cf='\x1b[33m',_0x47fd49=_0x18f00b(0xb6),_0x50aacd='\x1b[1m',_0x281252=getCliUpgradeCommand(_0x28bfdb);console[_0x18f00b(0xbb)](),_0x28bfdb[_0x18f00b(0xba)]?(console[_0x18f00b(0xbb)](''+_0x2b3704+_0x50aacd+_0x18f00b(0xaf)+_0x47fd49),console[_0x18f00b(0xbb)](_0x2b3704+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x28bfdb[_0x18f00b(0xa8)]+_0x47fd49),_0x28bfdb[_0x18f00b(0xc6)]&&console['log'](_0x2b3704+'\x20\x20\x20Minimum\x20supported:\x20'+_0x28bfdb[_0x18f00b(0xc6)]+_0x47fd49),_0x28bfdb[_0x18f00b(0xae)]&&_0x28bfdb[_0x18f00b(0xae)]!==_0x28bfdb[_0x18f00b(0xc6)]&&console['log'](_0x2b3704+_0x18f00b(0xb3)+_0x28bfdb['stableVersion']+_0x47fd49),_0x28bfdb[_0x18f00b(0xbc)]&&console['log'](_0x2b3704+'\x20\x20\x20'+_0x28bfdb[_0x18f00b(0xbc)]+_0x47fd49),console[_0x18f00b(0xbb)](_0x2b3704+_0x18f00b(0xa2)+_0x281252+_0x47fd49)):(console[_0x18f00b(0xbb)](''+_0x21b1cf+_0x50aacd+_0x18f00b(0xad)+_0x47fd49),console['log'](_0x21b1cf+_0x18f00b(0xa9)+_0x28bfdb[_0x18f00b(0xa8)]+_0x47fd49),console[_0x18f00b(0xbb)](_0x21b1cf+_0x18f00b(0xa3)+_0x28bfdb[_0x18f00b(0xae)]+_0x47fd49),_0x28bfdb[_0x18f00b(0xc4)]&&console[_0x18f00b(0xbb)](_0x21b1cf+_0x18f00b(0xb2)+_0x28bfdb[_0x18f00b(0xc4)]+_0x47fd49),console['log'](_0x21b1cf+_0x18f00b(0xa2)+_0x281252+_0x47fd49)),console['log']();}export function assertCliVersionSupported(_0x558266){const _0x4ffd33=a309_0x4563;if(!_0x558266[_0x4ffd33(0xba)])return;const _0x26c806=[_0x558266[_0x4ffd33(0xbc)],'Current\x20version:\x20'+_0x558266['currentVersion'],_0x558266['minimumVersion']?_0x4ffd33(0xc3)+_0x558266[_0x4ffd33(0xc6)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x558266)][_0x4ffd33(0xb5)](Boolean)[_0x4ffd33(0xa6)]('\x0a');throw CliErrors['validation'](_0x4ffd33(0xb4),_0x26c806);}