@lovrabet/rabetbase-cli 2.5.2-beta.2 → 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 (354) hide show
  1. package/README.md +2 -2
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/auth/auth-server-ui.js +1 -1
  7. package/lib/auth/auth-server.js +1 -1
  8. package/lib/auth/constant.js +1 -1
  9. package/lib/auth/get-cookie.js +1 -1
  10. package/lib/auth/get-session-user.js +1 -1
  11. package/lib/auth/is-session-valid.js +1 -1
  12. package/lib/auth/login-success-html.js +1 -1
  13. package/lib/auth/logout.js +1 -1
  14. package/lib/cli-flags.js +1 -1
  15. package/lib/cli.js +1 -1
  16. package/lib/commands/api/generate.js +1 -1
  17. package/lib/commands/api/index.js +1 -1
  18. package/lib/commands/api/list.js +1 -1
  19. package/lib/commands/api/pull.js +1 -1
  20. package/lib/commands/api/shared.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/members-list.js +1 -1
  24. package/lib/commands/app/remote-directory.js +1 -1
  25. package/lib/commands/app/shared.d.ts +1 -0
  26. package/lib/commands/app/shared.js +1 -1
  27. package/lib/commands/app-config/delete.js +1 -1
  28. package/lib/commands/app-config/get.js +1 -1
  29. package/lib/commands/app-config/index.js +1 -1
  30. package/lib/commands/app-config/list.js +1 -1
  31. package/lib/commands/app-config/set.js +1 -1
  32. package/lib/commands/app-config/shared.js +1 -1
  33. package/lib/commands/auth/index.js +1 -1
  34. package/lib/commands/bff/create.js +1 -1
  35. package/lib/commands/bff/delete.js +1 -1
  36. package/lib/commands/bff/detail.js +1 -1
  37. package/lib/commands/bff/index.js +1 -1
  38. package/lib/commands/bff/list.js +1 -1
  39. package/lib/commands/bff/pull.js +1 -1
  40. package/lib/commands/bff/push.js +1 -1
  41. package/lib/commands/bff/status.js +1 -1
  42. package/lib/commands/cli-skill/index.js +1 -1
  43. package/lib/commands/cli-update.js +1 -1
  44. package/lib/commands/codegen/index.js +1 -1
  45. package/lib/commands/codegen/sdk.js +1 -1
  46. package/lib/commands/codegen/sql.js +1 -1
  47. package/lib/commands/common/app-registry.js +1 -1
  48. package/lib/commands/common/app-selector.js +1 -1
  49. package/lib/commands/common/async-task.js +1 -1
  50. package/lib/commands/common/dry-run.js +1 -1
  51. package/lib/commands/common/flags.js +1 -1
  52. package/lib/commands/common/local-file.js +1 -1
  53. package/lib/commands/common/validate.js +1 -1
  54. package/lib/commands/config/delete.js +1 -1
  55. package/lib/commands/config/get.js +1 -1
  56. package/lib/commands/config/index.js +1 -1
  57. package/lib/commands/config/init.js +1 -1
  58. package/lib/commands/config/list.js +1 -1
  59. package/lib/commands/config/set.js +1 -1
  60. package/lib/commands/config/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/business-groups.js +1 -1
  63. package/lib/commands/dataset/capability.js +1 -1
  64. package/lib/commands/dataset/delete.js +1 -1
  65. package/lib/commands/dataset/detail.js +1 -1
  66. package/lib/commands/dataset/extend-update.js +1 -1
  67. package/lib/commands/dataset/field-restore.js +1 -1
  68. package/lib/commands/dataset/field-update.js +1 -1
  69. package/lib/commands/dataset/generate.js +1 -1
  70. package/lib/commands/dataset/index.js +1 -1
  71. package/lib/commands/dataset/list.js +1 -1
  72. package/lib/commands/dataset/operations.js +1 -1
  73. package/lib/commands/dataset/relation-audit.js +1 -1
  74. package/lib/commands/dataset/relation-create.js +1 -1
  75. package/lib/commands/dataset/relation-delete.js +1 -1
  76. package/lib/commands/dataset/relation-shared.js +1 -1
  77. package/lib/commands/dataset/relation-update.js +1 -1
  78. package/lib/commands/dataset/relations.js +1 -1
  79. package/lib/commands/dataset/rename.js +1 -1
  80. package/lib/commands/dataset/restore.js +1 -1
  81. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  82. package/lib/commands/db/analysis-batching.js +1 -1
  83. package/lib/commands/db/analyze-batch-plan.js +1 -1
  84. package/lib/commands/db/analyze-cancel.js +1 -1
  85. package/lib/commands/db/analyze-start.js +1 -1
  86. package/lib/commands/db/analyze-status.js +1 -1
  87. package/lib/commands/db/create.js +1 -1
  88. package/lib/commands/db/delete.js +1 -1
  89. package/lib/commands/db/detail.js +1 -1
  90. package/lib/commands/db/diff-refresh-start.js +1 -1
  91. package/lib/commands/db/diff-refresh-status.js +1 -1
  92. package/lib/commands/db/diff.js +1 -1
  93. package/lib/commands/db/index.js +1 -1
  94. package/lib/commands/db/list.js +1 -1
  95. package/lib/commands/db/shared.js +1 -1
  96. package/lib/commands/db/table-diff-shared.js +1 -1
  97. package/lib/commands/db/tables.js +1 -1
  98. package/lib/commands/db/test.js +1 -1
  99. package/lib/commands/db/update.js +1 -1
  100. package/lib/commands/deployment/auto-sync.js +1 -1
  101. package/lib/commands/deployment/index.js +1 -1
  102. package/lib/commands/deployment/sync-all.js +1 -1
  103. package/lib/commands/deployment/sync-jobs.js +1 -1
  104. package/lib/commands/deployment/sync-status.js +1 -1
  105. package/lib/commands/deployment/sync.js +1 -1
  106. package/lib/commands/doctor.js +1 -1
  107. package/lib/commands/file/index.js +1 -1
  108. package/lib/commands/instant-api-policy/current.js +1 -1
  109. package/lib/commands/instant-api-policy/index.js +1 -1
  110. package/lib/commands/instant-api-policy/init.js +1 -1
  111. package/lib/commands/instant-api-policy/publish.js +1 -1
  112. package/lib/commands/instant-api-policy/pull.js +1 -1
  113. package/lib/commands/instant-api-policy/revision.js +1 -1
  114. package/lib/commands/instant-api-policy/revisions.js +1 -1
  115. package/lib/commands/instant-api-policy/rollback.js +1 -1
  116. package/lib/commands/instant-api-policy/shared.js +1 -1
  117. package/lib/commands/instant-api-policy/validate.js +1 -1
  118. package/lib/commands/issue/index.js +1 -1
  119. package/lib/commands/issue/nudge.js +1 -1
  120. package/lib/commands/issue/report.js +1 -1
  121. package/lib/commands/issue/shared.js +1 -1
  122. package/lib/commands/kb/create.js +1 -1
  123. package/lib/commands/kb/delete.js +1 -1
  124. package/lib/commands/kb/detail.js +1 -1
  125. package/lib/commands/kb/index.js +1 -1
  126. package/lib/commands/kb/list.js +1 -1
  127. package/lib/commands/kb/search.js +1 -1
  128. package/lib/commands/kb/shared.js +1 -1
  129. package/lib/commands/kb/update.js +1 -1
  130. package/lib/commands/logs/index.js +1 -1
  131. package/lib/commands/menu/asset-update.js +1 -1
  132. package/lib/commands/menu/delete.js +1 -1
  133. package/lib/commands/menu/external-link-create.js +1 -1
  134. package/lib/commands/menu/external-link-update.js +1 -1
  135. package/lib/commands/menu/group-create.js +1 -1
  136. package/lib/commands/menu/group-update.js +1 -1
  137. package/lib/commands/menu/index.js +1 -1
  138. package/lib/commands/menu/list.js +1 -1
  139. package/lib/commands/menu/move.js +1 -1
  140. package/lib/commands/menu/regroup-start.js +1 -1
  141. package/lib/commands/menu/rename.js +1 -1
  142. package/lib/commands/menu/shared/compare-table.js +1 -1
  143. package/lib/commands/menu/shared/delete-plan.js +1 -1
  144. package/lib/commands/menu/shared/facts.js +1 -1
  145. package/lib/commands/menu/shared/index.js +1 -1
  146. package/lib/commands/menu/shared/inquirer.js +1 -1
  147. package/lib/commands/menu/shared/local-pages.js +1 -1
  148. package/lib/commands/menu/shared/logic.js +1 -1
  149. package/lib/commands/menu/shared/mutations.js +1 -1
  150. package/lib/commands/menu/shared/service.js +1 -1
  151. package/lib/commands/menu/shared/sync-core.js +1 -1
  152. package/lib/commands/menu/shared/update-core.js +1 -1
  153. package/lib/commands/menu/shared/valid-url.js +1 -1
  154. package/lib/commands/menu/sync.js +1 -1
  155. package/lib/commands/menu/visibility-update.js +1 -1
  156. package/lib/commands/notification/config-create.js +1 -1
  157. package/lib/commands/notification/config-delete.js +1 -1
  158. package/lib/commands/notification/config-list.js +1 -1
  159. package/lib/commands/notification/config-update.js +1 -1
  160. package/lib/commands/notification/index.js +1 -1
  161. package/lib/commands/notification/shared.js +1 -1
  162. package/lib/commands/ocr/index.js +1 -1
  163. package/lib/commands/page/create.js +1 -1
  164. package/lib/commands/page/custom/detail.js +1 -1
  165. package/lib/commands/page/custom/list.js +1 -1
  166. package/lib/commands/page/custom/publish.js +1 -1
  167. package/lib/commands/page/custom/shared.d.ts +0 -8
  168. package/lib/commands/page/custom/shared.js +1 -1
  169. package/lib/commands/page/custom/syntax.js +1 -1
  170. package/lib/commands/page/custom/update.js +1 -1
  171. package/lib/commands/page/data-list-status.js +1 -1
  172. package/lib/commands/page/generate-start.js +1 -1
  173. package/lib/commands/page/generate-status.js +1 -1
  174. package/lib/commands/page/index.js +1 -1
  175. package/lib/commands/page/pull.js +1 -1
  176. package/lib/commands/page/push.js +1 -1
  177. package/lib/commands/page/relation-audit.js +1 -1
  178. package/lib/commands/page/restore.js +1 -1
  179. package/lib/commands/page/shared.js +1 -1
  180. package/lib/commands/page/sync.js +1 -1
  181. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  182. package/lib/commands/project/create/format-elapsed.js +1 -1
  183. package/lib/commands/project/create/main.js +1 -1
  184. package/lib/commands/project/create/materialize-project-template.js +1 -1
  185. package/lib/commands/project/create/project-name.js +1 -1
  186. package/lib/commands/project/create/project-template-archive.js +1 -1
  187. package/lib/commands/project/create/project-template-path.js +1 -1
  188. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  189. package/lib/commands/project/create/use-format-code.js +1 -1
  190. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  191. package/lib/commands/project/domain-routing-sync.js +1 -1
  192. package/lib/commands/project/index.js +1 -1
  193. package/lib/commands/project/upgrade.js +1 -1
  194. package/lib/commands/registry.js +1 -1
  195. package/lib/commands/role/delete.js +1 -1
  196. package/lib/commands/role/detail.js +1 -1
  197. package/lib/commands/role/index.js +1 -1
  198. package/lib/commands/role/list.js +1 -1
  199. package/lib/commands/role/shared.js +1 -1
  200. package/lib/commands/role/update.js +1 -1
  201. package/lib/commands/role/user-add.js +1 -1
  202. package/lib/commands/role/user-remove.js +1 -1
  203. package/lib/commands/role/user-resolve.js +1 -1
  204. package/lib/commands/rule/get.js +1 -1
  205. package/lib/commands/rule/index.js +1 -1
  206. package/lib/commands/rule/list.js +1 -1
  207. package/lib/commands/rule/set.js +1 -1
  208. package/lib/commands/rule/shared.js +1 -1
  209. package/lib/commands/run/index.d.ts +4 -0
  210. package/lib/commands/run/index.js +1 -1
  211. package/lib/commands/schema.js +1 -1
  212. package/lib/commands/sql/create.js +1 -1
  213. package/lib/commands/sql/delete.js +1 -1
  214. package/lib/commands/sql/detail.js +1 -1
  215. package/lib/commands/sql/exec.js +1 -1
  216. package/lib/commands/sql/index.js +1 -1
  217. package/lib/commands/sql/list.js +1 -1
  218. package/lib/commands/sql/pull.js +1 -1
  219. package/lib/commands/sql/push.js +1 -1
  220. package/lib/commands/sql/shared.js +1 -1
  221. package/lib/commands/sql/status.js +1 -1
  222. package/lib/commands/sql/validate.js +1 -1
  223. package/lib/commands/task/index.js +1 -1
  224. package/lib/commands/task/status.js +1 -1
  225. package/lib/commands/tenant/index.js +1 -1
  226. package/lib/commands/tenant/members-list.js +1 -1
  227. package/lib/commands/tenant/shared.js +1 -1
  228. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  229. package/lib/commands/user-account/index.js +1 -1
  230. package/lib/commands/workspace/add.js +1 -1
  231. package/lib/commands/workspace/index.js +1 -1
  232. package/lib/commands/workspace/remove.js +1 -1
  233. package/lib/config/domain-config.d.ts +3 -7
  234. package/lib/config/domain-config.js +1 -1
  235. package/lib/config/project-domain-routing.d.ts +5 -1
  236. package/lib/config/project-domain-routing.js +1 -1
  237. package/lib/config/schema.js +1 -1
  238. package/lib/constant/cdn.js +1 -1
  239. package/lib/constant/cli.js +1 -1
  240. package/lib/constant/defaults.js +1 -1
  241. package/lib/constant/domain.js +1 -1
  242. package/lib/constant/env.js +1 -1
  243. package/lib/constant/output.js +1 -1
  244. package/lib/constant/paths.js +1 -1
  245. package/lib/constant/region.js +1 -1
  246. package/lib/constant/risk.js +1 -1
  247. package/lib/constant/routing-profile.js +1 -1
  248. package/lib/context/app-resolver.js +1 -1
  249. package/lib/context/auth-resolver.js +1 -1
  250. package/lib/context/config-loader.js +1 -1
  251. package/lib/context.js +1 -1
  252. package/lib/core/alias-resolver.js +1 -1
  253. package/lib/core/api-client.d.ts +1 -26
  254. package/lib/core/api-client.js +1 -1
  255. package/lib/core/bff/config.js +1 -1
  256. package/lib/core/bff/file-system.js +1 -1
  257. package/lib/core/bff/hash.js +1 -1
  258. package/lib/core/bff/lock.js +1 -1
  259. package/lib/core/bff/utils.js +1 -1
  260. package/lib/core/db-resolver.js +1 -1
  261. package/lib/core/instant-api-policy/config.js +1 -1
  262. package/lib/core/kb-search-client.js +1 -1
  263. package/lib/core/page/file-system.d.ts +43 -0
  264. package/lib/core/page/file-system.js +1 -1
  265. package/lib/core/page/hash.js +1 -1
  266. package/lib/core/page/lock.js +1 -1
  267. package/lib/core/sql-index-auditor.js +1 -1
  268. package/lib/core/sql-sync/config.js +1 -1
  269. package/lib/core/sql-sync/file-system.js +1 -1
  270. package/lib/core/sql-sync/hash.js +1 -1
  271. package/lib/core/sql-sync/lock.js +1 -1
  272. package/lib/core/sql-sync/utils.js +1 -1
  273. package/lib/core/sql-validator.js +1 -1
  274. package/lib/errors.js +1 -1
  275. package/lib/framework/build-all-flags.js +1 -1
  276. package/lib/framework/error-output.js +1 -1
  277. package/lib/framework/explicit-yes.js +1 -1
  278. package/lib/framework/flags.js +1 -1
  279. package/lib/framework/help.js +1 -1
  280. package/lib/framework/index.js +1 -1
  281. package/lib/framework/output.js +1 -1
  282. package/lib/framework/response.js +1 -1
  283. package/lib/framework/runner-alias.js +1 -1
  284. package/lib/framework/runner.js +1 -1
  285. package/lib/framework/schema-export.js +1 -1
  286. package/lib/framework/supported-flags.js +1 -1
  287. package/lib/framework/types.js +1 -1
  288. package/lib/generated/build-info.d.ts +4 -4
  289. package/lib/generated/build-info.js +1 -1
  290. package/lib/generated/official-routing.d.ts +1 -1
  291. package/lib/generated/official-routing.js +1 -1
  292. package/lib/generated/routing-contract.d.ts +1 -3
  293. package/lib/generated/routing-contract.js +1 -1
  294. package/lib/help.js +1 -1
  295. package/lib/postinstall.js +1 -1
  296. package/lib/runtime/confirmation.js +1 -1
  297. package/lib/runtime/event.js +1 -1
  298. package/lib/runtime/index.js +1 -1
  299. package/lib/runtime/queue.js +1 -1
  300. package/lib/runtime/resolve.js +1 -1
  301. package/lib/skills/builtin-skill.js +1 -1
  302. package/lib/skills/main.js +1 -1
  303. package/lib/skills/npx-skills-add.js +1 -1
  304. package/lib/skills/skill-presence.js +1 -1
  305. package/lib/telemetry/cli-command-trace.js +1 -1
  306. package/lib/telemetry/cli-help-trace.js +1 -1
  307. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  308. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  309. package/lib/telemetry/send-cli-trace-log.js +1 -1
  310. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  311. package/lib/utils/ai_config.js +1 -1
  312. package/lib/utils/apply-jq-filter.js +1 -1
  313. package/lib/utils/cdn-config.js +1 -1
  314. package/lib/utils/check-sdk-version.js +1 -1
  315. package/lib/utils/cli-version-check.js +1 -1
  316. package/lib/utils/cli-version-policy.js +1 -1
  317. package/lib/utils/config.js +1 -1
  318. package/lib/utils/entity-with-id.js +1 -1
  319. package/lib/utils/file-utils.js +1 -1
  320. package/lib/utils/guides-cdn.js +1 -1
  321. package/lib/utils/http-client.js +1 -1
  322. package/lib/utils/is-non-interactive.js +1 -1
  323. package/lib/utils/logger.js +1 -1
  324. package/lib/utils/params.js +1 -1
  325. package/lib/utils/platform.js +1 -1
  326. package/lib/utils/sleep.js +1 -1
  327. package/lib/utils/template-replacer.js +1 -1
  328. package/lib/utils/update-notice.js +1 -1
  329. package/lib/utils/version.js +1 -1
  330. package/lib/utils/with-active-cookie.js +1 -1
  331. package/lib/utils/write-cli-side-channel.js +1 -1
  332. package/package.json +2 -1
  333. package/skills/rabetbase/SKILL.md +6 -6
  334. package/skills/rabetbase/guides/custom-page-workflow.md +35 -17
  335. package/skills/rabetbase/guides/page-development-workflow.md +1 -1
  336. package/skills/rabetbase/knowledge/components.md +292 -0
  337. package/skills/rabetbase/knowledge/custom-page/generation-standards.md +74 -4
  338. package/skills/rabetbase/knowledge/custom-page/page-templates.md +68 -0
  339. package/skills/rabetbase/references/rabetbase-app-members-list.md +2 -0
  340. package/skills/rabetbase/references/rabetbase-page-create.md +21 -9
  341. package/skills/rabetbase/references/rabetbase-page-custom-detail.md +1 -1
  342. package/skills/rabetbase/references/rabetbase-page-custom-update.md +13 -9
  343. package/skills/rabetbase/references/rabetbase-project-create.md +5 -2
  344. package/skills/rabetbase/references/rabetbase-project-domain-routing-sync.md +2 -2
  345. package/skills/rabetbase/references/rabetbase-run.md +1 -0
  346. package/skills/rabetbase.manifest.json +5 -4
  347. package/templates/README.md +10 -4
  348. package/templates/custom-pages/blank.json +5 -0
  349. package/templates/custom-pages/dashboard.json +5 -0
  350. package/templates/custom-pages/onepage.json +5 -0
  351. package/templates/generate-api/api.ts.tpl +1 -1
  352. package/lib/commands/page/custom/template.d.ts +0 -8
  353. package/lib/commands/page/custom/template.js +0 -1
  354. package/skills/rabetbase/knowledge/custom-page/components.md +0 -225
@@ -1 +1 @@
1
- function a290_0xab4b(){var _0x195229=['8akSwPH','6327rEUlDs','write','10XrSYBH','8hmtdkO','filter','service','3192135XlEvtj','60JKpxcD','781CXPIrB','193020ujKfTi','8432557nBGHlN','risk','4904OAyPfU','rabetbase.write.completed','trim','3946212zBJKob','2308975TmOgys'];a290_0xab4b=function(){return _0x195229;};return a290_0xab4b();}(function(_0x4aac59,_0x46db1c){var _0x320e5c=a290_0x5033,_0x59988f=_0x4aac59();while(!![]){try{var _0x3d0150=parseInt(_0x320e5c(0xfd))/0x1*(parseInt(_0x320e5c(0xf8))/0x2)+-parseInt(_0x320e5c(0xf7))/0x3+-parseInt(_0x320e5c(0x102))/0x4*(-parseInt(_0x320e5c(0x101))/0x5)+parseInt(_0x320e5c(0x100))/0x6+-parseInt(_0x320e5c(0xfb))/0x7*(parseInt(_0x320e5c(0x106))/0x8)+parseInt(_0x320e5c(0x103))/0x9*(parseInt(_0x320e5c(0x105))/0xa)+-parseInt(_0x320e5c(0xf9))/0xb*(-parseInt(_0x320e5c(0xfa))/0xc);if(_0x3d0150===_0x46db1c)break;else _0x59988f['push'](_0x59988f['shift']());}catch(_0x1072aa){_0x59988f['push'](_0x59988f['shift']());}}}(a290_0xab4b,0x93156));export function canonicalRabetbaseOperation(_0x244b47){var _0x349e11=a290_0x5033;return[_0x244b47[_0x349e11(0xf6)],..._0x244b47['command'][_0x349e11(0xff)]()['split'](/\s+/)][_0x349e11(0x107)](Boolean)['join']('.');}function a290_0x5033(_0x27e557,_0x766518){_0x27e557=_0x27e557-0xf6;var _0xab4b77=a290_0xab4b();var _0x50337f=_0xab4b77[_0x27e557];return _0x50337f;}export function createRabetbaseWriteMetadata(_0x26283e,_0x44a36c,_0x4febb0,_0xf57fc){var _0x502749=a290_0x5033;if(_0xf57fc||_0x4febb0['ok']!==!![]||_0x26283e['risk']!==_0x502749(0x104)&&_0x26283e[_0x502749(0xfc)]!=='high-risk-write')return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x502749(0xfe),'operation':_0x44a36c,'risk':_0x26283e[_0x502749(0xfc)]}}};}
1
+ (function(_0x375bdb,_0x5387a3){var _0x21576d=a289_0x5a12,_0x49df1e=_0x375bdb();while(!![]){try{var _0x4e37a4=parseInt(_0x21576d(0x144))/0x1+parseInt(_0x21576d(0x154))/0x2+-parseInt(_0x21576d(0x146))/0x3+parseInt(_0x21576d(0x149))/0x4+-parseInt(_0x21576d(0x151))/0x5+parseInt(_0x21576d(0x14d))/0x6*(parseInt(_0x21576d(0x145))/0x7)+-parseInt(_0x21576d(0x14f))/0x8;if(_0x4e37a4===_0x5387a3)break;else _0x49df1e['push'](_0x49df1e['shift']());}catch(_0x500ede){_0x49df1e['push'](_0x49df1e['shift']());}}}(a289_0x134f,0x3d8ce));function a289_0x5a12(_0x5c8e10,_0x4418ca){_0x5c8e10=_0x5c8e10-0x144;var _0x134f90=a289_0x134f();var _0x5a12f6=_0x134f90[_0x5c8e10];return _0x5a12f6;}export function canonicalRabetbaseOperation(_0x2dfa7c){var _0x566cf9=a289_0x5a12;return[_0x2dfa7c[_0x566cf9(0x147)],..._0x2dfa7c[_0x566cf9(0x153)][_0x566cf9(0x150)]()[_0x566cf9(0x148)](/\s+/)]['filter'](Boolean)[_0x566cf9(0x14e)]('.');}export function createRabetbaseWriteMetadata(_0x24834a,_0x4cfbcb,_0x275cbf,_0x2150b8){var _0x26d2c9=a289_0x5a12;if(_0x2150b8||_0x275cbf['ok']!==!![]||_0x24834a[_0x26d2c9(0x152)]!==_0x26d2c9(0x14b)&&_0x24834a['risk']!==_0x26d2c9(0x14c))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x26d2c9(0x14a),'operation':_0x4cfbcb,'risk':_0x24834a[_0x26d2c9(0x152)]}}};}function a289_0x134f(){var _0x5c11f9=['rabetbase.write.completed','write','high-risk-write','2979960YFaGiQ','join','3628480iOcmdm','trim','2124620zyKHdq','risk','command','774530ZaqKQl','328620DIJwiE','7OIvKOS','1083813YNaZWD','service','split','1117280MmCuqa'];a289_0x134f=function(){return _0x5c11f9;};return a289_0x134f();}
@@ -1 +1 @@
1
- (function(_0x4f6f03,_0x2cf8b1){const _0x51e72d=a291_0x45dc,_0x108c72=_0x4f6f03();while(!![]){try{const _0x48f0fa=parseInt(_0x51e72d(0x1f9))/0x1+-parseInt(_0x51e72d(0x1e0))/0x2+parseInt(_0x51e72d(0x202))/0x3+-parseInt(_0x51e72d(0x1f5))/0x4*(-parseInt(_0x51e72d(0x201))/0x5)+parseInt(_0x51e72d(0x1f2))/0x6+parseInt(_0x51e72d(0x1e5))/0x7*(parseInt(_0x51e72d(0x1f3))/0x8)+-parseInt(_0x51e72d(0x1f8))/0x9*(parseInt(_0x51e72d(0x1f4))/0xa);if(_0x48f0fa===_0x2cf8b1)break;else _0x108c72['push'](_0x108c72['shift']());}catch(_0x2f42f6){_0x108c72['push'](_0x108c72['shift']());}}}(a291_0x16f2,0xb840b));import{buildConfigFromFlags,initGlobalEnvironment,isRoutingRecoveryService}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';function a291_0x45dc(_0x3ab1c3,_0x35aa03){_0x3ab1c3=_0x3ab1c3-0x1e0;const _0x16f298=a291_0x16f2();let _0x45dc80=_0x16f298[_0x3ab1c3];return _0x45dc80;}import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x38b35b,command:_0x3757d9,risk:_0x5f4bf8,dryRun:_0x9b8568}){const _0x12022d=a291_0x45dc;return JSON[_0x12022d(0x1fb)]({'ok':_0x38b35b['ok'],'command':_0x3757d9,'risk':_0x5f4bf8,..._0x9b8568?{'dryRun':!![]}:{},..._0x38b35b[_0x12022d(0x204)]!==undefined?{'data':_0x38b35b[_0x12022d(0x204)]}:{},..._0x38b35b[_0x12022d(0x203)]?{'message':_0x38b35b['message']}:{}});}};export async function invokeRabetbase(_0x45a4e0,_0x43b170){const _0x8e07f2=a291_0x45dc;throwIfAborted(_0x43b170[_0x8e07f2(0x1ed)]);const _0x5e0eff=await resolveRabetbaseInvocation(_0x45a4e0),_0x3d31fd=canonicalRabetbaseOperation(_0x5e0eff[_0x8e07f2(0x1e4)]);return await confirmWriteBeforeQueue(_0x5e0eff['definition'],_0x5e0eff[_0x8e07f2(0x1ef)],_0x3d31fd,_0x43b170),runSerialized(async()=>{const _0x184afd=_0x8e07f2,_0x422fd5={};try{throwIfAborted(_0x43b170['signal']);const _0x50e68f=buildConfigFromFlags(_0x5e0eff[_0x184afd(0x1ef)]);!isRoutingRecoveryService(_0x5e0eff[_0x184afd(0x1e4)][_0x184afd(0x1f7)])&&await initGlobalEnvironment(_0x50e68f);const _0x56a563=createPipelineEnv(_0x50e68f,{..._0x5e0eff[_0x184afd(0x1ef)],'yes':_0x5e0eff[_0x184afd(0x1e4)][_0x184afd(0x1ea)]===_0x184afd(0x1e3)?!![]:_0x5e0eff[_0x184afd(0x1ef)][_0x184afd(0x1fc)],'nonInteractive':!![]},_0x5e0eff[_0x184afd(0x1eb)]);_0x56a563[_0x184afd(0x1e9)]=!![],_0x56a563[_0x184afd(0x1fa)]=_0x184afd(0x1e3);const _0x5eddb5=withAbortSignal(_0x5e0eff[_0x184afd(0x1e4)],_0x43b170[_0x184afd(0x1ed)]),_0x47d456=createRabetbaseRunnerAdapter({'formatOutput'(_0x59ba21,_0xe8bdf4){const _0x13dd65=_0x184afd;_0x422fd5[_0x13dd65(0x1ff)]=_0x59ba21,_0x422fd5[_0x13dd65(0x1fd)]=_0xe8bdf4[_0x13dd65(0x1fd)],_0x422fd5[_0x13dd65(0x1ea)]=_0xe8bdf4[_0x13dd65(0x1ea)],_0x422fd5['format']=_0xe8bdf4['format'],_0x422fd5[_0x13dd65(0x1f1)]=_0xe8bdf4[_0x13dd65(0x1f1)]===!![];},async 'confirmHighRisk'(){const _0xf6827=_0x184afd;throw new Error(_0xf6827(0x1e8));}});await runCommand(_0x5eddb5,_0x56a563,_0x47d456);if(!_0x422fd5[_0x184afd(0x1ff)]||!_0x422fd5['command']||!_0x422fd5['risk']||!_0x422fd5[_0x184afd(0x1ee)])throw new Error(_0x184afd(0x1ec));const _0x48ada7=_0x422fd5[_0x184afd(0x1f1)]===!![],_0x5647dc=_0x43b170['presentation']??defaultPresentation,_0xa76580={'result':_0x422fd5[_0x184afd(0x1ff)],'command':_0x422fd5[_0x184afd(0x1fd)],'operation':_0x3d31fd,'risk':_0x422fd5['risk'],'format':_0x422fd5[_0x184afd(0x1ee)],'dryRun':_0x48ada7},_0x3057e9=createRabetbaseWriteMetadata(_0x5e0eff[_0x184afd(0x1e4)],_0x3d31fd,_0x422fd5[_0x184afd(0x1ff)],_0x48ada7);let _0x458ea4;try{_0x458ea4=await _0x5647dc[_0x184afd(0x1f0)](_0xa76580);}catch(_0x4d34af){if(!_0x3057e9||_0x5647dc===defaultPresentation)throw _0x4d34af;_0x458ea4=await defaultPresentation[_0x184afd(0x1f0)](_0xa76580);}return{'operation':_0x3d31fd,'risk':_0x422fd5[_0x184afd(0x1ea)],'mode':_0x48ada7?_0x184afd(0x1f6):_0x184afd(0x1e6),'result':_0x422fd5[_0x184afd(0x1ff)],'output':_0x458ea4,..._0x3057e9?{'metadata':_0x3057e9}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x18e1a4,_0x5940e1,_0x2680f4,_0x4b4fb1){const _0x42137b=a291_0x45dc;if(_0x5940e1[_0x42137b(0x1f1)]===!![]||_0x18e1a4[_0x42137b(0x1ea)]!==_0x42137b(0x205)&&_0x18e1a4[_0x42137b(0x1ea)]!==_0x42137b(0x1e3))return;await _0x4b4fb1['confirmation'][_0x42137b(0x200)](buildRabetbaseConfirmationRequest(_0x18e1a4,_0x2680f4,_0x4b4fb1['signal']));}function a291_0x16f2(){const _0x2b46bb=['format','rawFlags','present','dryRun','4917024ITdLBD','13672cbYKuR','5087390axoAPc','4dXQRko','dry-run','service','18XKbQpw','76717CZwhLW','riskLevel','stringify','yes','command','reason','result','confirm','794615LEdecA','784347haIjMd','message','data','write','418434fGOfrY','Rabetbase\x20invocation\x20aborted.','aborted','high-risk-write','definition','2723ZpoUCw','execute','AbortError','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','isNonInteractive','risk','args','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','signal'];a291_0x16f2=function(){return _0x2b46bb;};return a291_0x16f2();}function withAbortSignal(_0x23a747,_0x14210d){return{..._0x23a747,async 'execute'(_0xf2318b){const _0x210b54=a291_0x45dc;return throwIfAborted(_0x14210d),_0x23a747[_0x210b54(0x1e6)]({..._0xf2318b,'signal':_0x14210d});}};}function throwIfAborted(_0x2d13a8){const _0x518ed7=a291_0x45dc;if(_0x2d13a8?.[_0x518ed7(0x1e2)])throw _0x2d13a8[_0x518ed7(0x1fe)]instanceof Error?_0x2d13a8[_0x518ed7(0x1fe)]:new DOMException(_0x518ed7(0x1e1),_0x518ed7(0x1e7));}
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_0x5aa1(_0x3804e8,_0x424564){_0x3804e8=_0x3804e8-0x10f;const _0x2f50a3=a292_0x2f50();let _0x5aa15d=_0x2f50a3[_0x3804e8];return _0x5aa15d;}const a292_0x14d1e8=a292_0x5aa1;(function(_0x5c6859,_0x5392ca){const _0x5629d6=a292_0x5aa1,_0x1c250f=_0x5c6859();while(!![]){try{const _0x4e0ab7=parseInt(_0x5629d6(0x110))/0x1+parseInt(_0x5629d6(0x116))/0x2*(-parseInt(_0x5629d6(0x11a))/0x3)+-parseInt(_0x5629d6(0x11b))/0x4*(-parseInt(_0x5629d6(0x113))/0x5)+-parseInt(_0x5629d6(0x118))/0x6*(parseInt(_0x5629d6(0x117))/0x7)+-parseInt(_0x5629d6(0x115))/0x8+parseInt(_0x5629d6(0x119))/0x9*(-parseInt(_0x5629d6(0x10f))/0xa)+-parseInt(_0x5629d6(0x111))/0xb*(-parseInt(_0x5629d6(0x114))/0xc);if(_0x4e0ab7===_0x5392ca)break;else _0x1c250f['push'](_0x1c250f['shift']());}catch(_0x2e4095){_0x1c250f['push'](_0x1c250f['shift']());}}}(a292_0x2f50,0x18aca));let tail=Promise[a292_0x14d1e8(0x112)]();export async function runSerialized(_0x961516){const _0x1333ba=a292_0x14d1e8,_0x2f93b8=tail;let _0x1c0a8f;tail=new Promise(_0x35d8d3=>{_0x1c0a8f=_0x35d8d3;}),await _0x2f93b8[_0x1333ba(0x11c)](()=>undefined);try{return await _0x961516();}finally{_0x1c0a8f();}}function a292_0x2f50(){const _0x5196fa=['126UNADOp','3OkJvIE','89308iLHEbD','catch','40330tMHeKo','6244HxgGwT','165WSBGAY','resolve','30MVbcgi','117972vyjQtT','600272tFnmlH','25692yzCZFY','295841sczHpP','6FgQntM'];a292_0x2f50=function(){return _0x5196fa;};return a292_0x2f50();}
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(_0x58a0f3,_0x336f93){const _0x397557=a293_0xfa07,_0x355eca=_0x58a0f3();while(!![]){try{const _0x3ad035=parseInt(_0x397557(0x1fc))/0x1+parseInt(_0x397557(0x1f2))/0x2*(-parseInt(_0x397557(0x1f0))/0x3)+parseInt(_0x397557(0x1ef))/0x4+parseInt(_0x397557(0x1f5))/0x5*(parseInt(_0x397557(0x1ea))/0x6)+-parseInt(_0x397557(0x1fd))/0x7+parseInt(_0x397557(0x1f1))/0x8+parseInt(_0x397557(0x1f8))/0x9*(-parseInt(_0x397557(0x1eb))/0xa);if(_0x3ad035===_0x336f93)break;else _0x355eca['push'](_0x355eca['shift']());}catch(_0x5791e9){_0x355eca['push'](_0x355eca['shift']());}}}(a293_0x5327,0xed9bb));import a293_0x2ca7a7 from'meow';function a293_0xfa07(_0x5ee87d,_0x4fc4b0){_0x5ee87d=_0x5ee87d-0x1ea;const _0x53272c=a293_0x5327();let _0xfa07f4=_0x53272c[_0x5ee87d];return _0xfa07f4;}import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';function a293_0x5327(){const _0x570aa2=['12etfpvF','190UaZqgS','join','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','6689568ftSuIw','6Yhuxdo','14589704eRIoxt','1635794rqvqyu','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','194995ZtLWSP','slice','unknownCommand','963441hlxgwz','flags','input','wildcardDef','1362913wLFOsf','2058336VOXxqK','validation'];a293_0x5327=function(){return _0x570aa2;};return a293_0x5327();}import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';export async function resolveRabetbaseInvocation(_0x3c5ddd){const _0x5d9b8f=a293_0xfa07,_0x49b2a3=a293_0x2ca7a7('',{'importMeta':import.meta,'argv':[..._0x3c5ddd],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x4cf765=[..._0x49b2a3[_0x5d9b8f(0x1fa)]],_0xc9b064=_0x49b2a3[_0x5d9b8f(0x1f9)],_0x21cc4b=_0x4cf765[0x0];if(!_0x21cc4b)throw CliErrors['validation'](_0x5d9b8f(0x1ee));const _0x35c313=resolveRemovedCommand(_0x21cc4b,_0x4cf765[0x1]);if(_0x35c313)throw CliErrors['validation'](_0x35c313['message'],_0x35c313['hint']);if(_0x21cc4b==='run')throw CliErrors[_0x5d9b8f(0x1fe)](_0x5d9b8f(0x1ed),_0x5d9b8f(0x1f4));if(!isKnownService(_0x21cc4b))throw CliErrors['unknownCommand'](_0x4cf765[_0x5d9b8f(0x1ec)]('\x20'));const _0x374816=getServiceEntry(_0x21cc4b),_0x3fbb07=_0x4cf765[0x1],_0x9b51ea=_0x3fbb07||_0x374816['defaultCommand'];if(!_0x9b51ea){if(_0x374816['wildcardDef'])return{'definition':_0x374816[_0x5d9b8f(0x1fb)],'rawFlags':_0xc9b064,'args':[]};throw CliErrors[_0x5d9b8f(0x1fe)](_0x5d9b8f(0x1f3)+_0x21cc4b+'\x22.');}const _0x53b429=findDefinition(_0x21cc4b,_0x9b51ea);if(_0x53b429)return assertSupportedCommandFlags(_0x53b429,_0xc9b064),{'definition':_0x53b429,'rawFlags':_0xc9b064,'args':_0x4cf765[_0x5d9b8f(0x1f6)](0x2)};if(_0x374816[_0x5d9b8f(0x1fb)])return{'definition':_0x374816[_0x5d9b8f(0x1fb)],'rawFlags':_0xc9b064,'args':[_0x9b51ea,..._0x4cf765[_0x5d9b8f(0x1f6)](0x2)]};throw CliErrors[_0x5d9b8f(0x1f7)](_0x21cc4b+'\x20'+_0x9b51ea);}
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_0x422078=a295_0x3a40;(function(_0x118a53,_0x2ed4fb){const _0x471058=a295_0x3a40,_0x41d0b5=_0x118a53();while(!![]){try{const _0xce1d9d=-parseInt(_0x471058(0xe7))/0x1*(-parseInt(_0x471058(0xe3))/0x2)+-parseInt(_0x471058(0xab))/0x3*(parseInt(_0x471058(0xae))/0x4)+parseInt(_0x471058(0xa7))/0x5+parseInt(_0x471058(0xc8))/0x6*(parseInt(_0x471058(0xd7))/0x7)+-parseInt(_0x471058(0xbf))/0x8*(parseInt(_0x471058(0xcb))/0x9)+parseInt(_0x471058(0xa9))/0xa+-parseInt(_0x471058(0xdf))/0xb*(parseInt(_0x471058(0xb0))/0xc);if(_0xce1d9d===_0x2ed4fb)break;else _0x41d0b5['push'](_0x41d0b5['shift']());}catch(_0x459666){_0x41d0b5['push'](_0x41d0b5['shift']());}}}(a295_0x4f8c,0x8ccbc));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_0x422078(0xd9),SKILL_NAME=a295_0x422078(0xb7);function frontmatterValue(_0x4e64b5,_0x1382fc){const _0x5d2ce6=a295_0x422078;return _0x4e64b5[_0x5d2ce6(0xde)](new RegExp('^'+_0x1382fc+_0x5d2ce6(0xdc),'m'))?.[0x1]?.[_0x5d2ce6(0xbd)]()??'';}function listFiles(_0x122ad0,_0xa35ca2=_0x122ad0){const _0x36d98f=a295_0x422078;return readdirSync(_0xa35ca2,{'withFileTypes':!![]})[_0x36d98f(0xaf)](_0x20ec39=>{const _0x293237=_0x36d98f,_0x3a93b5=join(_0xa35ca2,_0x20ec39[_0x293237(0xd4)]),_0x528734=lstatSync(_0x3a93b5);if(_0x528734['isSymbolicLink']())throw new Error(_0x293237(0xe4)+_0x3a93b5);if(_0x528734[_0x293237(0xc1)]())return listFiles(_0x122ad0,_0x3a93b5);if(!_0x528734[_0x293237(0xdb)]())throw new Error(_0x293237(0xb5)+_0x3a93b5);return[relative(_0x122ad0,_0x3a93b5)['split'](sep)[_0x293237(0xa4)]('/')];})[_0x36d98f(0xb8)]((_0x4b864e,_0x26ad07)=>_0x4b864e<_0x26ad07?-0x1:_0x4b864e>_0x26ad07?0x1:0x0);}function a295_0x4f8c(){const _0x519103=['status','trim','manifest','4688bROBoj','parse','isDirectory','SKILL.md','SOURCE_INVALID','startsWith','package.json','unknown','current','19662DpVvLY','present','absent','1791HdVbQQ','length','content_mismatch','root','files','skipped','includes','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','message','name','split','version','987juouPW','digest','rabetbase\x20cli-skill\x20install','rabetbase.manifest.json','isFile',':\x5cs*(.+)$','update','match','1133kBqDSE','missing','home','utf8','94JoOJQT','Symbolic\x20link\x20is\x20not\x20allowed:\x20','version_mismatch','stdio','14277UMhycl','unverifiable','join','skills','state','916495QpxWez','skills@latest\x20exited\x20','7949360LdGcNA','sha256','36ATndvP','path','installedPath','340036MbAoWV','flatMap','46356hoNcPK','packageRoot','reason','packageVersion','skillVersion','Unsupported\x20Skill\x20entry:\x20','INSTALL_FAILED','rabetbase','sort','error','Installed\x20Skill\x20state\x20is\x20','every'];a295_0x4f8c=function(){return _0x519103;};return a295_0x4f8c();}function digestFiles(_0x5aa468,_0x475c68){const _0x574681=a295_0x422078,_0x18b49a=createHash(_0x574681(0xaa));for(const _0x1ec53a of _0x475c68){if(_0x1ec53a[_0x574681(0xc4)]('/')||_0x1ec53a[_0x574681(0xd5)]('/')[_0x574681(0xd1)]('..')||_0x1ec53a[_0x574681(0xd1)]('\x5c'))throw new Error('Unsafe\x20manifest\x20path:\x20'+_0x1ec53a);_0x18b49a[_0x574681(0xdd)](_0x1ec53a),_0x18b49a[_0x574681(0xdd)]('\x00'),_0x18b49a[_0x574681(0xdd)](readFileSync(join(_0x5aa468,..._0x1ec53a['split']('/')))),_0x18b49a[_0x574681(0xdd)]('\x00');}return _0x18b49a[_0x574681(0xd8)]('hex');}function sameFiles(_0x17a193,_0x1f715a){const _0xfc3de5=a295_0x422078;return _0x17a193['length']===_0x1f715a[_0xfc3de5(0xcc)]&&_0x17a193[_0xfc3de5(0xbb)]((_0x1307fb,_0x4bc8bc)=>_0x1307fb===_0x1f715a[_0x4bc8bc]);}function readSource(_0x24ee3f){const _0x2f3072=a295_0x422078,_0x5c4f91=JSON[_0x2f3072(0xc0)](readFileSync(join(_0x24ee3f,_0x2f3072(0xc5)),_0x2f3072(0xe2))),_0x263f19=JSON['parse'](readFileSync(join(_0x24ee3f,_0x2f3072(0xa5),_0x2f3072(0xda)),'utf8')),_0x3e5b6b=join(_0x24ee3f,_0x2f3072(0xa5),SKILL_NAME),_0x784d19=frontmatterValue(readFileSync(join(_0x3e5b6b,'SKILL.md'),'utf8'),_0x2f3072(0xd6)),_0x9502d6=listFiles(_0x3e5b6b);if(_0x263f19['schemaVersion']!==0x1||_0x263f19[_0x2f3072(0xd4)]!==SKILL_NAME||!_0x5c4f91[_0x2f3072(0xd6)]||_0x263f19[_0x2f3072(0xb3)]!==_0x5c4f91['version']||_0x263f19['skillVersion']!==_0x5c4f91[_0x2f3072(0xd6)]||_0x784d19!==_0x5c4f91[_0x2f3072(0xd6)]||!sameFiles(_0x9502d6,_0x263f19[_0x2f3072(0xcf)])||digestFiles(_0x3e5b6b,_0x9502d6)!==_0x263f19['digest'])throw new Error(_0x2f3072(0xd2));return{'packageVersion':_0x5c4f91[_0x2f3072(0xd6)],'skillVersion':_0x784d19,'root':_0x3e5b6b,'manifest':_0x263f19};}function installedSkillPath(_0x36ae72){const _0x3bc903=a295_0x422078,_0x476d6a=resolveInstalledSkill(SKILL_NAME,{'home':_0x36ae72});if(_0x476d6a[_0x3bc903(0xa6)]===_0x3bc903(0xc9))return{'state':_0x3bc903(0xc9),'path':dirname(_0x476d6a[_0x3bc903(0xac)])};if(_0x476d6a[_0x3bc903(0xa6)]===_0x3bc903(0xca))return{'state':_0x3bc903(0xe0)};return{'state':_0x3bc903(0xe8),'reason':_0x476d6a['reason']};}export function inspectInstalledBuiltinSkillVersion(_0x5e9f32,_0x28181e={}){const _0x57d1c0=a295_0x422078,_0x49d8e3=installedSkillPath(_0x28181e['home']??homedir());if(_0x49d8e3[_0x57d1c0(0xa6)]===_0x57d1c0(0xe0))return{'state':_0x57d1c0(0xe0),'expectedVersion':_0x5e9f32,'repairCommand':REPAIR_COMMAND};if(_0x49d8e3['state']==='unverifiable')return{'state':_0x57d1c0(0xe8),'expectedVersion':_0x5e9f32,'reason':_0x49d8e3[_0x57d1c0(0xb2)],'repairCommand':REPAIR_COMMAND};try{const _0x51b5ce=frontmatterValue(readFileSync(join(_0x49d8e3[_0x57d1c0(0xac)],_0x57d1c0(0xc2)),_0x57d1c0(0xe2)),_0x57d1c0(0xd6));return{'state':_0x51b5ce===_0x5e9f32?'current':_0x57d1c0(0xe5),'expectedVersion':_0x5e9f32,'skillVersion':_0x51b5ce,'installedPath':_0x49d8e3['path'],'repairCommand':REPAIR_COMMAND};}catch(_0x13ac3a){return{'state':_0x57d1c0(0xe8),'expectedVersion':_0x5e9f32,'installedPath':_0x49d8e3[_0x57d1c0(0xac)],'reason':_0x13ac3a instanceof Error?_0x13ac3a[_0x57d1c0(0xd3)]:String(_0x13ac3a),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x14491a={}){const _0x1156ff=a295_0x422078,_0x305f7c=_0x14491a['packageRoot']??DEFAULT_PACKAGE_ROOT;let _0x2faebf;try{_0x2faebf=readSource(_0x305f7c);}catch(_0x19c8c4){return{'state':'unverifiable','packageVersion':_0x1156ff(0xc6),'reason':_0x19c8c4 instanceof Error?_0x19c8c4['message']:String(_0x19c8c4),'repairCommand':REPAIR_COMMAND};}const _0x2c7ff3=installedSkillPath(_0x14491a[_0x1156ff(0xe1)]??homedir());if(_0x2c7ff3['state']==='missing')return{'state':_0x1156ff(0xe0),'packageVersion':_0x2faebf[_0x1156ff(0xb3)],'repairCommand':REPAIR_COMMAND};if(_0x2c7ff3[_0x1156ff(0xa6)]===_0x1156ff(0xe8))return{'state':_0x1156ff(0xe8),'packageVersion':_0x2faebf[_0x1156ff(0xb3)],'reason':_0x2c7ff3[_0x1156ff(0xb2)],'repairCommand':REPAIR_COMMAND};try{const _0x288b7b=frontmatterValue(readFileSync(join(_0x2c7ff3[_0x1156ff(0xac)],_0x1156ff(0xc2)),_0x1156ff(0xe2)),_0x1156ff(0xd6));if(_0x288b7b!==_0x2faebf[_0x1156ff(0xb4)])return{'state':_0x1156ff(0xe5),'packageVersion':_0x2faebf[_0x1156ff(0xb3)],'skillVersion':_0x288b7b,'installedPath':_0x2c7ff3[_0x1156ff(0xac)],'repairCommand':REPAIR_COMMAND};const _0x36efb7=listFiles(_0x2c7ff3['path']),_0x43355e=digestFiles(_0x2c7ff3[_0x1156ff(0xac)],_0x36efb7);return{'state':sameFiles(_0x36efb7,_0x2faebf[_0x1156ff(0xbe)]['files'])&&_0x43355e===_0x2faebf['manifest'][_0x1156ff(0xd8)]?_0x1156ff(0xc7):_0x1156ff(0xcd),'packageVersion':_0x2faebf[_0x1156ff(0xb3)],'skillVersion':_0x288b7b,'installedPath':_0x2c7ff3['path'],'digest':_0x43355e,'repairCommand':REPAIR_COMMAND};}catch(_0x3fe71c){return{'state':'unverifiable','packageVersion':_0x2faebf['packageVersion'],'installedPath':_0x2c7ff3[_0x1156ff(0xac)],'reason':_0x3fe71c instanceof Error?_0x3fe71c['message']:String(_0x3fe71c),'repairCommand':REPAIR_COMMAND};}}function failure(_0xdd1b26,_0x363b95,_0x39b6be,_0x526c85){const _0x279619=a295_0x422078;return{'ok':![],'code':_0xdd1b26,'packageVersion':_0x363b95[_0x279619(0xb3)],'skillVersion':_0x363b95[_0x279619(0xb4)],'installedPath':_0x526c85,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x39b6be instanceof Error?_0x39b6be[_0x279619(0xd3)]:String(_0x39b6be)};}function a295_0x3a40(_0x4dda64,_0x4f86fa){_0x4dda64=_0x4dda64-0xa4;const _0x4f8c6d=a295_0x4f8c();let _0x3a4007=_0x4f8c6d[_0x4dda64];return _0x3a4007;}export function installBuiltinSkill(_0x10c3a2={}){const _0x5f9e4a=a295_0x422078,_0x3e8bc6=_0x10c3a2[_0x5f9e4a(0xb1)]??DEFAULT_PACKAGE_ROOT,_0x1e6cb9=_0x10c3a2[_0x5f9e4a(0xe1)]??homedir();let _0x589fa5;try{_0x589fa5=readSource(_0x3e8bc6);}catch(_0x4d7a3a){return failure(_0x5f9e4a(0xc3),{'packageVersion':_0x5f9e4a(0xc6),'skillVersion':'unknown'},_0x4d7a3a);}const _0x20492d=inspectBuiltinSkill({'packageRoot':_0x3e8bc6,'home':_0x1e6cb9}),_0x749bbe=runNpxSkillsAddGlobal(_0x3e8bc6,_0x589fa5[_0x5f9e4a(0xce)],{'stdio':_0x10c3a2[_0x5f9e4a(0xe6)]??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0x1e6cb9}});if(_0x749bbe[_0x5f9e4a(0xd0)])return{'ok':!![],'packageVersion':_0x589fa5[_0x5f9e4a(0xb3)],'skillVersion':_0x589fa5[_0x5f9e4a(0xb4)],'installedPath':_0x20492d[_0x5f9e4a(0xad)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x749bbe['ok'])return failure(_0x5f9e4a(0xb6),_0x589fa5,_0x749bbe[_0x5f9e4a(0xb9)]??_0x5f9e4a(0xa8)+_0x749bbe[_0x5f9e4a(0xbc)]);const _0x197ee0=inspectBuiltinSkill({'packageRoot':_0x3e8bc6,'home':_0x1e6cb9});if(_0x197ee0[_0x5f9e4a(0xa6)]!==_0x5f9e4a(0xc7))return failure('VERIFY_FAILED',_0x589fa5,_0x197ee0[_0x5f9e4a(0xb2)]??_0x5f9e4a(0xba)+_0x197ee0['state'],_0x197ee0[_0x5f9e4a(0xad)]);return{'ok':!![],'packageVersion':_0x589fa5['packageVersion'],'skillVersion':_0x589fa5['skillVersion'],'installedPath':_0x197ee0[_0x5f9e4a(0xad)],'changed':_0x20492d[_0x5f9e4a(0xa6)]!==_0x5f9e4a(0xc7),'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(_0x3a7c80,_0x1b6853){const _0x4dccf3=a296_0xc24d,_0x5214c2=_0x3a7c80();while(!![]){try{const _0xbb6e5d=-parseInt(_0x4dccf3(0x1f9))/0x1*(parseInt(_0x4dccf3(0x1eb))/0x2)+-parseInt(_0x4dccf3(0x1f6))/0x3+-parseInt(_0x4dccf3(0x1e9))/0x4+parseInt(_0x4dccf3(0x209))/0x5*(-parseInt(_0x4dccf3(0x206))/0x6)+-parseInt(_0x4dccf3(0x208))/0x7+-parseInt(_0x4dccf3(0x1f4))/0x8*(parseInt(_0x4dccf3(0x20a))/0x9)+parseInt(_0x4dccf3(0x205))/0xa;if(_0xbb6e5d===_0x1b6853)break;else _0x5214c2['push'](_0x5214c2['shift']());}catch(_0x588f91){_0x5214c2['push'](_0x5214c2['shift']());}}}(a296_0x4c48,0x1aefb));function a296_0xc24d(_0x73f5c,_0x5357ed){_0x73f5c=_0x73f5c-0x1e9;const _0x4c4835=a296_0x4c48();let _0xc24d61=_0x4c4835[_0x73f5c];return _0xc24d61;}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(_0x2b73d1){const _0x1ddc73=a296_0xc24d,_0x2145ad=[];for(const [_0x397fa4,_0x196a59]of Object[_0x1ddc73(0x202)](_0x2b73d1)){if(_0x196a59===!![]){const _0x5a7210=_0x397fa4['replace'](/([A-Z])/g,_0x1ddc73(0x1f5))[_0x1ddc73(0x203)]();_0x2145ad[_0x1ddc73(0x207)](_0x5a7210);}}return _0x2145ad;}export function parseDynamicFlags(){const _0xce9e87=a296_0xc24d,_0x4ad73d=[];for(let _0x3cff62=0x3;_0x3cff62<process[_0xce9e87(0x1f3)]['length'];_0x3cff62++){const _0x35a056=process[_0xce9e87(0x1f3)][_0x3cff62];if(_0x35a056&&_0x35a056[_0xce9e87(0x1ff)]('--')){const _0x2883f8=_0x35a056[_0xce9e87(0x1fd)](0x2);_0x2883f8&&!_0x2883f8[_0xce9e87(0x1f0)]('=')&&_0x4ad73d[_0xce9e87(0x207)](_0x2883f8);}}return _0x4ad73d;}export function getAllProvidedFlags(_0x480199){const _0x8f516b=camelCaseFlagsToKebab(_0x480199),_0x5341d4=parseDynamicFlags(),_0x4ae597=new Set([..._0x8f516b,..._0x5341d4]);return Array['from'](_0x4ae597);}export function normalizeLegacyBffSaveFlags(_0x42041f){const _0x330fcc=a296_0xc24d,_0x426fc6=new Set(_0x42041f);return _0x426fc6[_0x330fcc(0x1ed)]('dangerously-bff-save')&&_0x426fc6[_0x330fcc(0x204)](_0x330fcc(0x1f1)),Array[_0x330fcc(0x1ee)](_0x426fc6);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x41d56e,_0x5592b3,_0x3ec40b){const _0x321bab=a296_0xc24d;logger['setLogPath'](process[_0x321bab(0x201)]());if(_0x3ec40b?.[_0x321bab(0x1fc)]||_0x41d56e===_0x321bab(0x1fb)){showHelp();return;}console[_0x321bab(0x1fa)]('Error:\x20Unsupported\x20command:\x20'+(_0x41d56e||_0x321bab(0x1ec))),console['log'](_0x321bab(0x200)),console[_0x321bab(0x1ef)]('\x20\x20'+CLI_BIN_NAME+_0x321bab(0x1f7)),console[_0x321bab(0x1ef)](''),console['log'](_0x321bab(0x1f8)+SKILLS_INSTALL_COMMAND_LINE),logger['error']('skill','Unsupported\x20command:\x20'+_0x41d56e),process[_0x321bab(0x1ea)](0x1);}function a296_0x4c48(){const _0x344350=['has','from','log','includes','enable-bff-save','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','argv','16504pQJupY','-$1','130029DGbHsX','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','Public\x20Open\x20Skill\x20source:\x20','73697mtlHPB','error','--help','help','slice','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','startsWith','\x0aAvailable\x20commands:','cwd','entries','toLowerCase','add','8497660tymQBD','4404ZJlGHG','push','1175594JkzgEQ','415zUGWYS','801wPMPhz','839696FifEXr','exit','2jqxLdZ','(empty)'];a296_0x4c48=function(){return _0x344350;};return a296_0x4c48();}function showHelp(){const _0x4563eb=a296_0xc24d;console['log'](_0x4563eb(0x1fe)+CLI_BIN_NAME+_0x4563eb(0x1f2)+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_0x11f76e=a297_0x1f56;(function(_0x1e0f3b,_0x4a77ef){const _0x20beac=a297_0x1f56,_0x33172a=_0x1e0f3b();while(!![]){try{const _0x2245a2=parseInt(_0x20beac(0x186))/0x1*(-parseInt(_0x20beac(0x185))/0x2)+-parseInt(_0x20beac(0x17c))/0x3*(-parseInt(_0x20beac(0x177))/0x4)+parseInt(_0x20beac(0x176))/0x5*(parseInt(_0x20beac(0x18c))/0x6)+parseInt(_0x20beac(0x18d))/0x7*(parseInt(_0x20beac(0x164))/0x8)+parseInt(_0x20beac(0x165))/0x9*(-parseInt(_0x20beac(0x17b))/0xa)+parseInt(_0x20beac(0x17d))/0xb+-parseInt(_0x20beac(0x182))/0xc;if(_0x2245a2===_0x4a77ef)break;else _0x33172a['push'](_0x33172a['shift']());}catch(_0x5a5287){_0x33172a['push'](_0x33172a['shift']());}}}(a297_0x1022,0xe62c0));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_0x11f76e(0x178);export const NPX_SKILLS_SUBCOMMAND_ADD=a297_0x11f76e(0x17a);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a297_0x11f76e(0x180);export const LEGACY_RABETBASE_SKILL_SOURCE=a297_0x11f76e(0x191);export const DEFAULT_RABETBASE_SKILL_NAME=a297_0x11f76e(0x166);export const RABETBASE_GLOBAL_SKILL_NAME=a297_0x11f76e(0x18b);export const RABETBASE_SKILL_GIT_SOURCE=a297_0x11f76e(0x189);export function resolveGlobalSkillName(_0x47549a){const _0x5bae8c=a297_0x11f76e;switch(_0x47549a[_0x5bae8c(0x170)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x41bb58){const _0x2602c5=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x41bb58&&_0x2602c5['push'](NPX_SKILLS_FLAG_SKILL,_0x41bb58),_0x2602c5;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a297_0x11f76e(0x169),...buildNpxSkillsAddArgv()][a297_0x11f76e(0x196)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a297_0x11f76e(0x169),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a297_0x11f76e(0x196)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function a297_0x1022(){const _0x4d463d=['expectedSkillName','SPAWN_FAILED','5915368peNfUx','387TKlnPM','Lovrabet','toString','signal','npx','match','unknown','CHILD_TERMINATED','warn','code','state','trim','checked','stdio','NPM_CONFIG_GLOBAL','!\x20Could\x20not\x20verify\x20\x22','npm_config_global','364415clzwYb','7229620FRUJos','skills@latest','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','add','135950vfMYuG','3kjKYVE','19621690nHnceB','unverifiable','Installer\x20reported\x20','lovrabet/rabetbase','INSTALL_PARTIAL','32051820SdneOL','yes','inherit','2JJbWMG','933975Qnvdso','remove','log','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','stdout','rabetbase','66CJSyjM','7jzVeuX','NPX_NOT_FOUND','EPERM','filter','lovrabet/lovrabet-skill','SKILL_NOT_INSTALLED','pipe','error','stderr','join','\x22\x20install\x20state:\x20','presence','present','message','reason','status','skill'];a297_0x1022=function(){return _0x4d463d;};return a297_0x1022();}function failure(_0x268a46,_0x453606,_0x20a572){return{'ok':![],'status':_0x453606,'code':_0x268a46,'error':'['+_0x268a46+']\x20'+_0x20a572};}function spawnOptions(_0x2651ae,_0x2494ad){const _0x57bce7=a297_0x11f76e,_0x4fe6bb={...process.env};return delete _0x4fe6bb[_0x57bce7(0x175)],delete _0x4fe6bb[_0x57bce7(0x173)],{'cwd':_0x2651ae,'stdio':_0x2494ad,'env':_0x4fe6bb,'shell':![],..._0x2494ad===_0x57bce7(0x193)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x4408b9,_0x61846c,_0x4d7b64,_0x42d8d1){const _0x3e1055=a297_0x11f76e,_0xf6eede=[_0x4408b9[_0x3e1055(0x18a)]?_0x4408b9[_0x3e1055(0x18a)]['toString']():'',_0x4408b9[_0x3e1055(0x195)]?_0x4408b9['stderr'][_0x3e1055(0x167)]():''][_0x3e1055(0x190)](Boolean)['join']('\x0a')[_0x3e1055(0x170)]();_0x42d8d1!=='pipe'&&_0xf6eede&&console[_0x3e1055(0x188)](_0xf6eede);if(_0x4408b9[_0x3e1055(0x194)]){const _0x450e6f=_0x4408b9[_0x3e1055(0x194)],_0x216e8d=_0x450e6f[_0x3e1055(0x16e)]==='ENOENT'?_0x3e1055(0x18e):_0x450e6f[_0x3e1055(0x16e)]===_0x3e1055(0x18f)||_0x450e6f[_0x3e1055(0x16e)]==='EACCES'?'PERMISSION_DENIED':_0x3e1055(0x163);return failure(_0x216e8d,_0x4408b9[_0x3e1055(0x19c)],_0x450e6f[_0x3e1055(0x19a)]);}if(_0x4408b9[_0x3e1055(0x168)])return failure(_0x3e1055(0x16c),_0x4408b9[_0x3e1055(0x19c)],'npx\x20terminated\x20by\x20signal\x20'+_0x4408b9[_0x3e1055(0x168)]);if(_0x4408b9[_0x3e1055(0x19c)]!==0x0)return failure('CHILD_EXIT_NONZERO',_0x4408b9[_0x3e1055(0x19c)],_0xf6eede||'exit\x20'+(_0x4408b9[_0x3e1055(0x19c)]??_0x3e1055(0x16b)));const _0x19104a=_0x61846c?resolveInstalledSkill(_0x61846c,_0x4d7b64):undefined,_0x20ee9b=_0xf6eede[_0x3e1055(0x16a)](/Failed to install\s+(\d+)/i);if(_0x20ee9b&&Number(_0x20ee9b[0x1])>0x0){const _0x4f07e0=_0x3e1055(0x17f)+_0x20ee9b[0x1]+'\x20failed\x20target(s)'+(_0xf6eede?':\x0a'+_0xf6eede:'');if(_0x19104a?.[_0x3e1055(0x16f)]===_0x3e1055(0x199))return console[_0x3e1055(0x16d)]('!\x20'+_0x4f07e0),{'ok':!![],'status':0x0};return failure(_0x3e1055(0x181),0x0,_0x4f07e0);}if(_0x19104a){if(_0x19104a['state']==='absent')return failure(_0x3e1055(0x192),0x0,'Skill\x20\x22'+_0x61846c+_0x3e1055(0x179)+_0x19104a[_0x3e1055(0x171)][_0x3e1055(0x196)](',\x20')+')');_0x19104a[_0x3e1055(0x16f)]===_0x3e1055(0x17e)&&console[_0x3e1055(0x16d)](_0x3e1055(0x174)+_0x61846c+_0x3e1055(0x197)+_0x19104a[_0x3e1055(0x19b)]);}return{'ok':!![],'status':0x0};}function a297_0x1f56(_0x32c3af,_0x277e10){_0x32c3af=_0x32c3af-0x163;const _0x1022ce=a297_0x1022();let _0x1f5647=_0x1022ce[_0x32c3af];return _0x1f5647;}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x506f28,_0x3289f7){const _0x410540=a297_0x11f76e;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x54e1e0=_0x3289f7?.[_0x410540(0x172)]??'inherit',_0x104875=resolveNpmBin(_0x410540(0x169)),_0x16f8b9=buildNpxSkillsAddArgv(_0x3289f7?.[_0x410540(0x19d)]),_0x54e544=[_0x410540(0x169),..._0x16f8b9][_0x410540(0x196)]('\x20');console['log']('*\x20'+_0x54e544);const _0x540173=spawnSync(_0x104875,_0x16f8b9,spawnOptions(_0x506f28,_0x54e1e0));return normalizeSpawnResult(_0x540173,undefined,undefined,_0x54e1e0);}export function runNpxSkillsRemove(_0x1130a0,_0x53fec0,_0x28a25d=LEGACY_RABETBASE_SKILL_SOURCE){const _0x4b6bcc=a297_0x11f76e;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x55cfb5=_0x53fec0?.[_0x4b6bcc(0x172)]??_0x4b6bcc(0x184),_0xb3943=resolveNpmBin('npx'),_0x310744=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x4b6bcc(0x187),_0x28a25d,NPX_SKILLS_FLAG_SKILL,_0x53fec0?.[_0x4b6bcc(0x19d)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x53fec0?.[_0x4b6bcc(0x183)]?['-y']:[]],_0x5ecaf7=[_0xb3943,..._0x310744][_0x4b6bcc(0x196)]('\x20');console[_0x4b6bcc(0x188)]('*\x20'+_0x5ecaf7);const _0x572224=spawnSync(_0xb3943,_0x310744,spawnOptions(_0x1130a0,_0x55cfb5));return normalizeSpawnResult(_0x572224,undefined,undefined,_0x55cfb5);}export function runNpxSkillsAddGlobal(_0x49840d,_0x4f636d,_0x57f167){const _0xfcf789=a297_0x11f76e;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x565045=resolveNpmBin(_0xfcf789(0x169)),_0x3b5932=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4f636d,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x48211a=[_0xfcf789(0x169),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4f636d,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0xfcf789(0x196)]('\x20');console['log']('*\x20'+_0x48211a);const _0xb37d0b=spawnSync(_0x565045,_0x3b5932,spawnOptions(_0x49840d,_0xfcf789(0x193)));return normalizeSpawnResult(_0xb37d0b,_0x57f167?.[_0xfcf789(0x19e)]??resolveGlobalSkillName(_0x4f636d),_0x57f167?.[_0xfcf789(0x198)],_0x57f167?.[_0xfcf789(0x172)]);}
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_0x418ae5=a298_0x1e05;(function(_0x5dfd9d,_0x30bb4d){const _0x866fd9=a298_0x1e05,_0x3f0f56=_0x5dfd9d();while(!![]){try{const _0x3f26b1=parseInt(_0x866fd9(0xf5))/0x1+parseInt(_0x866fd9(0xf0))/0x2*(-parseInt(_0x866fd9(0xe0))/0x3)+-parseInt(_0x866fd9(0xfc))/0x4+parseInt(_0x866fd9(0xe2))/0x5+parseInt(_0x866fd9(0xfb))/0x6+parseInt(_0x866fd9(0xde))/0x7*(-parseInt(_0x866fd9(0xed))/0x8)+parseInt(_0x866fd9(0xf9))/0x9;if(_0x3f26b1===_0x30bb4d)break;else _0x3f0f56['push'](_0x3f0f56['shift']());}catch(_0x5ba14b){_0x3f0f56['push'](_0x3f0f56['shift']());}}}(a298_0x4748,0xd4223));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a298_0x418ae5(0xe3),a298_0x418ae5(0xe1));function a298_0x1e05(_0x307289,_0x4cdd31){_0x307289=_0x307289-0xdd;const _0x474821=a298_0x4748();let _0x1e055a=_0x474821[_0x307289];return _0x1e055a;}export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a298_0x418ae5(0xe3),a298_0x418ae5(0xeb)),join('.claude',a298_0x418ae5(0xeb))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x2f8562,_0x5edd45){const _0x23a887=a298_0x418ae5;if(!existsSync(_0x2f8562))return{'kind':_0x23a887(0xe8)};let _0x2a0d56;try{_0x2a0d56=JSON['parse'](readFileSync(_0x2f8562,_0x23a887(0xf3)));}catch(_0x4ebc05){return{'kind':_0x23a887(0xf8),'reason':_0x2f8562+_0x23a887(0xef)+_0x4ebc05[_0x23a887(0xf7)]};}const _0x565888=_0x2a0d56;if(typeof _0x565888?.[_0x23a887(0xfa)]!=='number'||!SUPPORTED_LOCK_VERSIONS['includes'](_0x565888['version']))return{'kind':_0x23a887(0xf8),'reason':_0x2f8562+_0x23a887(0xfe)+String(_0x565888?.[_0x23a887(0xfa)])};if(!_0x565888[_0x23a887(0xeb)]||typeof _0x565888[_0x23a887(0xeb)]!==_0x23a887(0xe4))return{'kind':_0x23a887(0xf8),'reason':_0x2f8562+_0x23a887(0xdf)};return _0x565888['skills'][_0x5edd45]?{'kind':_0x23a887(0xec)}:{'kind':_0x23a887(0xe8)};}export function resolveInstalledSkill(_0x22c314,_0x425f51){const _0x3e85e5=a298_0x418ae5,_0x166761=_0x425f51?.[_0x3e85e5(0xf1)]??homedir(),_0x2b12a5=_0x425f51?.[_0x3e85e5(0xe5)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x3e85e5(0xf6)](_0x1813e2=>join(_0x166761,_0x1813e2)),_0x259bdf=_0x425f51?.[_0x3e85e5(0xfd)]??join(_0x166761,SKILL_LOCK_RELATIVE_PATH),_0x1e33aa=_0x2b12a5[_0x3e85e5(0xf6)](_0x1e2666=>join(_0x1e2666,_0x22c314,_0x3e85e5(0xea))),_0x1bb5a8=_0x1e33aa['find'](_0x40bc56=>existsSync(_0x40bc56));if(_0x1bb5a8)return{'state':_0x3e85e5(0xe7),'path':_0x1bb5a8};const _0x1ef013=readLockLookup(_0x259bdf,_0x22c314);if(_0x1ef013[_0x3e85e5(0xee)]==='unusable')return{'state':_0x3e85e5(0xf4),'reason':_0x1ef013['reason']};if(_0x1ef013[_0x3e85e5(0xee)]===_0x3e85e5(0xec))return{'state':_0x3e85e5(0xf4),'reason':_0x259bdf+_0x3e85e5(0xe6)+_0x22c314+_0x3e85e5(0xe9)+('('+_0x1e33aa[_0x3e85e5(0xdd)](',\x20')+')')};return{'state':_0x3e85e5(0xf2),'checked':_0x1e33aa};}function a298_0x4748(){const _0x1e432f=['2225555nWUKDx','.agents','object','globalSkillsDirs','\x20records\x20\x22','present','not-recorded','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','SKILL.md','skills','recorded','16euGWgS','kind','\x20is\x20unreadable:\x20','20aOdnOE','home','absent','utf8','unverifiable','631655JXDQYE','map','message','unusable','26532378VHHJXO','version','6694314uhwgBl','6688360Pckgde','lockFile','\x20uses\x20unsupported\x20version\x20','join','3466638WkMQYU','\x20has\x20no\x20skills\x20map','482721kDsrvv','.skill-lock.json'];a298_0x4748=function(){return _0x1e432f;};return a298_0x4748();}
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(_0x59fb6b,_0x3653da){const _0x438c5f=a299_0x3ff1,_0x6aa451=_0x59fb6b();while(!![]){try{const _0x24c625=parseInt(_0x438c5f(0x1ab))/0x1+parseInt(_0x438c5f(0x1a0))/0x2+-parseInt(_0x438c5f(0x19e))/0x3+-parseInt(_0x438c5f(0x1a4))/0x4*(parseInt(_0x438c5f(0x1ac))/0x5)+-parseInt(_0x438c5f(0x1ae))/0x6+parseInt(_0x438c5f(0x1a9))/0x7*(parseInt(_0x438c5f(0x1a5))/0x8)+parseInt(_0x438c5f(0x1a6))/0x9;if(_0x24c625===_0x3653da)break;else _0x6aa451['push'](_0x6aa451['shift']());}catch(_0x24d672){_0x6aa451['push'](_0x6aa451['shift']());}}}(a299_0x5c72,0xc63fe));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a299_0x3ff1(_0x1be48c,_0x3ff98d){_0x1be48c=_0x1be48c-0x19c;const _0x5c72c0=a299_0x5c72();let _0x3ff139=_0x5c72c0[_0x1be48c];return _0x3ff139;}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0xb1ed43){const _0x5f0f64=a299_0x3ff1;return SENSITIVE_PATTERNS[_0x5f0f64(0x1a2)](_0x49b980=>_0x49b980[_0x5f0f64(0x1a1)](_0xb1ed43));}function a299_0x5c72(){const _0x38df01=['335436gqaQSn','durationMs','stringify','2210706BpnbvQ','rabetbase.command','1073282yUyKQj','test','some','message','3774472AZaPSZ','161256GwhebK','628533eyMLHS','command','service','133tBPatI','error','1558995BMMCot','5XFxfth','flags'];a299_0x5c72=function(){return _0x38df01;};return a299_0x5c72();}function sanitizeFlags(_0x5ec2fe){const _0x5e05e6={};for(const [_0x5720f3,_0x34988e]of Object['entries'](_0x5ec2fe)){isSensitiveKey(_0x5720f3)?_0x5e05e6[_0x5720f3]=_0x34988e!=null&&_0x34988e!==''?'[REDACTED]':_0x34988e:_0x5e05e6[_0x5720f3]=_0x34988e;}return _0x5e05e6;}export async function reportCommandTrace(_0xf56824){const _0x560757=a299_0x3ff1;try{const _0x5d4086=sanitizeFlags(_0xf56824[_0x560757(0x1ad)]);await sendCliTraceLog({'spanName':_0x560757(0x19f),'logData':{'command.cli_version':getCliVersion(),'command.service':_0xf56824[_0x560757(0x1a8)],'command.name':_0xf56824[_0x560757(0x1a7)],'command.flags':JSON[_0x560757(0x19d)](_0x5d4086),..._0xf56824['durationMs']!=null?{'command.duration_ms':_0xf56824[_0x560757(0x19c)]}:{},..._0xf56824['error']?{'command.error':_0xf56824['error']instanceof Error?_0xf56824[_0x560757(0x1aa)][_0x560757(0x1a3)]:String(_0xf56824[_0x560757(0x1aa)])}:{}}});}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_0x26c6(_0x5aac28,_0x15d91b){_0x5aac28=_0x5aac28-0xbd;var _0x4c3617=a300_0x4c36();var _0x26c623=_0x4c3617[_0x5aac28];return _0x26c623;}(function(_0x22e180,_0x4e6123){var _0x391bb8=a300_0x26c6,_0x2b6d3c=_0x22e180();while(!![]){try{var _0x57fd34=-parseInt(_0x391bb8(0xbf))/0x1+parseInt(_0x391bb8(0xc8))/0x2+-parseInt(_0x391bb8(0xc9))/0x3*(-parseInt(_0x391bb8(0xbd))/0x4)+-parseInt(_0x391bb8(0xc4))/0x5*(parseInt(_0x391bb8(0xc2))/0x6)+parseInt(_0x391bb8(0xbe))/0x7*(parseInt(_0x391bb8(0xc3))/0x8)+-parseInt(_0x391bb8(0xc1))/0x9+-parseInt(_0x391bb8(0xc6))/0xa;if(_0x57fd34===_0x4e6123)break;else _0x2b6d3c['push'](_0x2b6d3c['shift']());}catch(_0x39ac4c){_0x2b6d3c['push'](_0x2b6d3c['shift']());}}}(a300_0x4c36,0xf38c2));function a300_0x4c36(){var _0x3adba3=['11889451caPcaI','605594vRTZcG','Failed\x20to\x20report\x20CLI\x20help\x20trace:','1696095tOSlco','474OKmsSR','8NtqedQ','20240bwGWMg','error','11092450iaDwrr','cli.help','603362tBqCWK','1830723LbUVrJ','service','8WbgtEz'];a300_0x4c36=function(){return _0x3adba3;};return a300_0x4c36();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x1d43a6,_0x21a3c1){var _0x2d0b19=a300_0x26c6;try{await sendCliTraceLog({'spanName':_0x2d0b19(0xc7),'logData':{'rabetbase.help.kind':_0x1d43a6,..._0x21a3c1?.[_0x2d0b19(0xca)]&&{'rabetbase.help.service':_0x21a3c1[_0x2d0b19(0xca)]}}});}catch(_0x825d9a){console[_0x2d0b19(0xc5)](_0x2d0b19(0xc0),_0x825d9a);}}
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(_0x103594,_0x71b893){const _0x6eda1d=a301_0x28ff,_0x21f487=_0x103594();while(!![]){try{const _0x31ec28=-parseInt(_0x6eda1d(0xe4))/0x1*(-parseInt(_0x6eda1d(0xec))/0x2)+parseInt(_0x6eda1d(0xe7))/0x3*(parseInt(_0x6eda1d(0xf6))/0x4)+-parseInt(_0x6eda1d(0xf1))/0x5+-parseInt(_0x6eda1d(0xf4))/0x6+-parseInt(_0x6eda1d(0xe8))/0x7+parseInt(_0x6eda1d(0xf5))/0x8*(parseInt(_0x6eda1d(0xf2))/0x9)+-parseInt(_0x6eda1d(0xe6))/0xa*(-parseInt(_0x6eda1d(0xed))/0xb);if(_0x31ec28===_0x71b893)break;else _0x21f487['push'](_0x21f487['shift']());}catch(_0x1a7f61){_0x21f487['push'](_0x21f487['shift']());}}}(a301_0x3b84,0x5fb27));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';function a301_0x28ff(_0xa62046,_0x411527){_0xa62046=_0xa62046-0xe3;const _0x3b842f=a301_0x3b84();let _0x28ffe3=_0x3b842f[_0xa62046];return _0x28ffe3;}import{getConfigAppCode}from'../utils/config.js';function a301_0x3b84(){const _0x170b9c=['tenant_code','tenant','3677480koFinJ','5211999JPBfOM','username','142872mzZYeu','8UtSsuj','45596yEhpoM','email','13982aMFUAm','daily','400270sFoDPm','159pSyANM','3764565TqvnVW','nickname','unknown','production','38TAOycw','66vsCxCI','user'];a301_0x3b84=function(){return _0x170b9c;};return a301_0x3b84();}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x5c0dc1=a301_0x28ff,_0x5aa374=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x565231=_0x5aa374?.[_0x5c0dc1(0xee)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x5c0dc1(0xea)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x5c0dc1(0xe5):_0x5c0dc1(0xeb))}),setUserContext({'id':_0x565231?.['id'],'username':_0x565231?.[_0x5c0dc1(0xf3)],'nickname':_0x565231?.[_0x5c0dc1(0xe9)],'email':_0x565231?.[_0x5c0dc1(0xe3)],'tenantCode':_0x565231?.[_0x5c0dc1(0xf0)]?.[_0x5c0dc1(0xef)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x5aa374;}
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(_0x368a0d,_0x4fe5cf){const _0x1d0bcb=a302_0x3658,_0x3fa91b=_0x368a0d();while(!![]){try{const _0x606d35=parseInt(_0x1d0bcb(0x10b))/0x1+-parseInt(_0x1d0bcb(0x100))/0x2*(-parseInt(_0x1d0bcb(0xfc))/0x3)+-parseInt(_0x1d0bcb(0x101))/0x4+parseInt(_0x1d0bcb(0x108))/0x5*(parseInt(_0x1d0bcb(0x107))/0x6)+-parseInt(_0x1d0bcb(0xff))/0x7+-parseInt(_0x1d0bcb(0x106))/0x8*(parseInt(_0x1d0bcb(0x105))/0x9)+parseInt(_0x1d0bcb(0x103))/0xa*(parseInt(_0x1d0bcb(0xfe))/0xb);if(_0x606d35===_0x4fe5cf)break;else _0x3fa91b['push'](_0x3fa91b['shift']());}catch(_0x563276){_0x3fa91b['push'](_0x3fa91b['shift']());}}}(a302_0x592d,0xd84c8));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 a302_0x3658(_0x102d8a,_0x3c14b2){_0x102d8a=_0x102d8a-0xfc;const _0x592d24=a302_0x592d();let _0x3658f0=_0x592d24[_0x102d8a];return _0x3658f0;}function a302_0x592d(){const _0x4d9b08=['25CHtgTD','SIGTERM','SIGINT','301262MHivtM','18HMZPdV','once','11grWtru','7277256skCuxq','53994WDceRK','2260132fxtalh','exit','16875130xEACGf','then','24579VmzsuQ','2648raQsFq','1492566FwkYWg'];a302_0x592d=function(){return _0x4d9b08;};return a302_0x592d();}export function registerOtelShutdownOnExit(){const _0x53e95c=a302_0x3658;process[_0x53e95c(0xfd)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x1dfd8a=()=>{const _0x2e0f10=_0x53e95c;void flushOtelNodeIfUsed()[_0x2e0f10(0x104)](()=>process[_0x2e0f10(0x102)](0x0));};process['once'](_0x53e95c(0x10a),_0x1dfd8a),process['once'](_0x53e95c(0x109),_0x1dfd8a);}export async function exitWithOtelShutdown(_0x78d336){const _0x42cd9c=a302_0x3658;await flushOtelNodeIfUsed(),process[_0x42cd9c(0x102)](_0x78d336);}
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_0x55570f=a303_0x112b;(function(_0x4c6fea,_0x351dcf){const _0x301014=a303_0x112b,_0x3113f1=_0x4c6fea();while(!![]){try{const _0x2328e1=-parseInt(_0x301014(0xfa))/0x1*(parseInt(_0x301014(0xfb))/0x2)+-parseInt(_0x301014(0xf8))/0x3+-parseInt(_0x301014(0xf4))/0x4+-parseInt(_0x301014(0xf7))/0x5*(-parseInt(_0x301014(0xf1))/0x6)+-parseInt(_0x301014(0xee))/0x7*(parseInt(_0x301014(0xf2))/0x8)+-parseInt(_0x301014(0xef))/0x9*(-parseInt(_0x301014(0xf0))/0xa)+parseInt(_0x301014(0xf5))/0xb*(parseInt(_0x301014(0xfc))/0xc);if(_0x2328e1===_0x351dcf)break;else _0x3113f1['push'](_0x3113f1['shift']());}catch(_0x14cc2f){_0x3113f1['push'](_0x3113f1['shift']());}}}(a303_0x55e7,0x4fec7));function a303_0x55e7(){const _0x39460e=['rabetbase-cli','47341bNmJmo','171XjuUly','45970TRwGgX','25338IWLGwm','80EIptte','traceparent','1163892nepHVO','2187449BQmJYV','logData','40IsMODX','1012032IsZGat','manual','46054DVamCg','4UImuCn','60LlWEbS','traceName'];a303_0x55e7=function(){return _0x39460e;};return a303_0x55e7();}import{sendTraceLog}from'@lovrabet/otel-logger';function a303_0x112b(_0x38bcb3,_0x4c787d){_0x38bcb3=_0x38bcb3-0xee;const _0x55e702=a303_0x55e7();let _0x112b13=_0x55e702[_0x38bcb3];return _0x112b13;}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a303_0x55570f(0xfe);export async function sendCliTraceLog(_0x2beba7){const _0x1267b1=a303_0x55570f;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x2beba7[_0x1267b1(0xfd)]??DEFAULT_TRACE_NAME,'version':_0x2beba7['version']??getCliVersion(),'spanName':_0x2beba7['spanName'],'eventType':_0x1267b1(0xf9),'logData':_0x2beba7[_0x1267b1(0xf6)],..._0x2beba7['traceparent']&&{'traceparent':_0x2beba7[_0x1267b1(0xf3)]}});}
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_0xe43d86=a304_0x2585;function a304_0x5074(){const _0x4dfd32=['platform-issue-log-collect','1200432WRZMSX','truncated','152UMIfYk','940pfuojW','23970037JFgwIx','146930oTwtoD','sanitize','40266dBAhvy','description','109468YDbKHh','redactionKinds','77itKbiM','312396PRofeD','935184mZyhwR','15pSZbAh','redactionCount','2CfdGeg','originalBytes','69WQcrKZ','join'];a304_0x5074=function(){return _0x4dfd32;};return a304_0x5074();}function a304_0x2585(_0x1f92bc,_0x463fe6){_0x1f92bc=_0x1f92bc-0x1b6;const _0x5074e6=a304_0x5074();let _0x2585e2=_0x5074e6[_0x1f92bc];return _0x2585e2;}(function(_0x1a3528,_0x7ac0e7){const _0x3f4590=a304_0x2585,_0x2a1fc3=_0x1a3528();while(!![]){try{const _0x178289=-parseInt(_0x3f4590(0x1bd))/0x1*(-parseInt(_0x3f4590(0x1b9))/0x2)+parseInt(_0x3f4590(0x1bf))/0x3*(-parseInt(_0x3f4590(0x1b6))/0x4)+parseInt(_0x3f4590(0x1bb))/0x5*(-parseInt(_0x3f4590(0x1c2))/0x6)+-parseInt(_0x3f4590(0x1c7))/0x7*(parseInt(_0x3f4590(0x1c4))/0x8)+parseInt(_0x3f4590(0x1c9))/0x9*(parseInt(_0x3f4590(0x1c5))/0xa)+parseInt(_0x3f4590(0x1b8))/0xb*(-parseInt(_0x3f4590(0x1ba))/0xc)+parseInt(_0x3f4590(0x1c6))/0xd;if(_0x178289===_0x7ac0e7)break;else _0x2a1fc3['push'](_0x2a1fc3['shift']());}catch(_0x50a0f6){_0x2a1fc3['push'](_0x2a1fc3['shift']());}}}(a304_0x5074,0x6257a));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a304_0xe43d86(0x1c1);export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';export async function sendPlatformIssueCollectLog(_0x2c24a0){const _0x62e115=a304_0xe43d86;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x2c24a0['title'],'issue.description':_0x2c24a0[_0x62e115(0x1ca)],..._0x2c24a0[_0x62e115(0x1c8)]?{'issue.description_original_bytes':_0x2c24a0['sanitize'][_0x62e115(0x1be)],'issue.description_truncated':_0x2c24a0['sanitize'][_0x62e115(0x1c3)],'issue.description_redactions':_0x2c24a0[_0x62e115(0x1c8)][_0x62e115(0x1bc)],'issue.description_redaction_kinds':_0x2c24a0['sanitize'][_0x62e115(0x1b7)][_0x62e115(0x1c0)](',')}:{}}});}
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_0xcbc500=a306_0x5ef1;function a306_0x3b90(){const _0x2dba92=['1mUNeNL','.agent','trae','file','antigravity','agent','.agent/skills/lovrabet/SKILL.md','Codex\x20IDE','948756dFHVYS','opencode','Cursor','.cline','Trae','Windsurf','.opencode/skills/lovrabet/SKILL.md','769744bamIXJ','.claude','.qoder','.cline/skills/lovrabet/SKILL.md','18NrUMzT','12168GpzgmG','claude','.cursor/skills/rabetbase.md','Antigravity\x20IDE','CodeBuddy\x20IDE','cline','.codebuddy','qoder','CodeBuddy','.trae','.cursor','252GolTmd','673615lVtOZm','windsurf','.qoder/skills/lovrabet/SKILL.md','cursor','.opencode','127238QQsLQb','Windsurf\x20IDE','.windsurf','1201767RshYji','Generic\x20template\x20fallback','codex','Cursor\x20IDE','1565310kJDLAe','OpenCode\x20IDE','OpenCode','.qoder/rules/rabetbase.md','Antigravity','codebuddy','.codebuddy/skills/lovrabet/SKILL.md'];a306_0x3b90=function(){return _0x2dba92;};return a306_0x3b90();}(function(_0x1d17bc,_0x17ad1e){const _0x464934=a306_0x5ef1,_0x1843d9=_0x1d17bc();while(!![]){try{const _0x377e2e=parseInt(_0x464934(0x1ee))/0x1*(parseInt(_0x464934(0x213))/0x2)+-parseInt(_0x464934(0x202))/0x3*(-parseInt(_0x464934(0x20d))/0x4)+-parseInt(_0x464934(0x20e))/0x5+parseInt(_0x464934(0x1f6))/0x6+parseInt(_0x464934(0x216))/0x7+parseInt(_0x464934(0x1fd))/0x8*(-parseInt(_0x464934(0x201))/0x9)+-parseInt(_0x464934(0x21a))/0xa;if(_0x377e2e===_0x17ad1e)break;else _0x1843d9['push'](_0x1843d9['shift']());}catch(_0x138304){_0x1843d9['push'](_0x1843d9['shift']());}}}(a306_0x3b90,0x28590));function a306_0x5ef1(_0x41bc73,_0xfc8b63){_0x41bc73=_0x41bc73-0x1ea;const _0x3b90ee=a306_0x3b90();let _0x5ef1ea=_0x3b90ee[_0x41bc73];return _0x5ef1ea;}export const CORE_IDE_CONFIGS={'cursor':{'name':a306_0xcbc500(0x1f8),'description':a306_0xcbc500(0x219),'folders':['.cursorrules',a306_0xcbc500(0x20c)],'files':[{'type':a306_0xcbc500(0x1f1),'path':a306_0xcbc500(0x204)}]},'windsurf':{'name':a306_0xcbc500(0x1fb),'description':a306_0xcbc500(0x214),'folders':[a306_0xcbc500(0x215)],'files':[{'type':'file','path':'.windsurf/workflows/rabetbase.md'}]},'claude':{'name':'Claude\x20Code','description':'Claude\x20Code','folders':[a306_0xcbc500(0x1fe)],'files':[{'type':a306_0xcbc500(0x1f1),'path':'.claude/skills/lovrabet/SKILL.md'}]},'cline':{'name':'Cline','description':'Cline\x20IDE','folders':[a306_0xcbc500(0x1f9)],'files':[{'type':a306_0xcbc500(0x1f1),'path':a306_0xcbc500(0x200)}]},'codex':{'name':'Codex','description':a306_0xcbc500(0x1f5),'folders':['.codex'],'files':[{'type':a306_0xcbc500(0x1f1),'path':'.codex/skills/lovrabet/SKILL.md'}]},'opencode':{'name':a306_0xcbc500(0x21c),'description':a306_0xcbc500(0x21b),'folders':[a306_0xcbc500(0x212)],'files':[{'type':a306_0xcbc500(0x1f1),'path':a306_0xcbc500(0x1fc)}]},'qoder':{'name':'Qoder','description':'Qoder\x20IDE','folders':[a306_0xcbc500(0x1ff)],'files':[{'type':'file','path':a306_0xcbc500(0x1ea)},{'type':a306_0xcbc500(0x1f1),'path':a306_0xcbc500(0x210)}]},'codebuddy':{'name':a306_0xcbc500(0x20a),'description':a306_0xcbc500(0x206),'folders':[a306_0xcbc500(0x208)],'files':[{'type':'file','path':a306_0xcbc500(0x1ed)}]},'trae':{'name':a306_0xcbc500(0x1fa),'description':'Trae\x20IDE','folders':[a306_0xcbc500(0x20b)],'files':[{'type':'file','path':'.trae/skills/lovrabet/SKILL.md'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'Other\x20(generic\x20template)','description':a306_0xcbc500(0x217),'folders':['.agent'],'files':[{'type':'file','path':a306_0xcbc500(0x1f4)}]},'antigravity':{'name':a306_0xcbc500(0x1eb),'description':a306_0xcbc500(0x205),'folders':[a306_0xcbc500(0x1ef)],'files':[{'type':a306_0xcbc500(0x1f1),'path':a306_0xcbc500(0x1f4)}]}};export const CORE_IDE_LIST=['claude','cline','codebuddy',a306_0xcbc500(0x218),a306_0xcbc500(0x211),'opencode','qoder',a306_0xcbc500(0x1f0),'windsurf'];export const IDE_LIST=[a306_0xcbc500(0x1f2),a306_0xcbc500(0x203),'cline','codebuddy','codex',a306_0xcbc500(0x211),a306_0xcbc500(0x1f7),a306_0xcbc500(0x209),a306_0xcbc500(0x1f0),a306_0xcbc500(0x20f),a306_0xcbc500(0x1f3)];export const ALL_CORE_IDES=[a306_0xcbc500(0x211),a306_0xcbc500(0x20f),a306_0xcbc500(0x203),a306_0xcbc500(0x207),'codex','opencode',a306_0xcbc500(0x209),a306_0xcbc500(0x1ec),a306_0xcbc500(0x1f0)];
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 a307_0x39f1(_0x29e848,_0x3a91f1){_0x29e848=_0x29e848-0x1e4;const _0x557208=a307_0x5572();let _0x39f16e=_0x557208[_0x29e848];return _0x39f16e;}(function(_0x221638,_0x3be876){const _0x865029=a307_0x39f1,_0x2c7998=_0x221638();while(!![]){try{const _0x185ce2=-parseInt(_0x865029(0x1e4))/0x1*(-parseInt(_0x865029(0x1e8))/0x2)+-parseInt(_0x865029(0x1e5))/0x3+parseInt(_0x865029(0x1e6))/0x4+parseInt(_0x865029(0x1eb))/0x5+-parseInt(_0x865029(0x1ea))/0x6+-parseInt(_0x865029(0x1e9))/0x7+parseInt(_0x865029(0x1e7))/0x8;if(_0x185ce2===_0x3be876)break;else _0x2c7998['push'](_0x2c7998['shift']());}catch(_0xe5c18c){_0x2c7998['push'](_0x2c7998['shift']());}}}(a307_0x5572,0x4e8d0));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a307_0x5572(){const _0x4f79bd=['25GedrkH','1157862GkWePw','2075908dnxMzw','1744296iidozh','47156WDEoZW','3159611FmftTn','1962750qCSAeL','798660AZrYsU'];a307_0x5572=function(){return _0x4f79bd;};return a307_0x5572();}
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(_0x1b0e84,_0x365570){const _0x501b82=a308_0x33c2,_0x2f2f65=_0x1b0e84();while(!![]){try{const _0x22aa33=parseInt(_0x501b82(0x1e8))/0x1+parseInt(_0x501b82(0x1eb))/0x2+parseInt(_0x501b82(0x1ed))/0x3+parseInt(_0x501b82(0x1e3))/0x4+parseInt(_0x501b82(0x1e2))/0x5*(-parseInt(_0x501b82(0x1ec))/0x6)+-parseInt(_0x501b82(0x1df))/0x7+-parseInt(_0x501b82(0x1e0))/0x8*(parseInt(_0x501b82(0x1e1))/0x9);if(_0x22aa33===_0x365570)break;else _0x2f2f65['push'](_0x2f2f65['shift']());}catch(_0x4d863d){_0x2f2f65['push'](_0x2f2f65['shift']());}}}(a308_0x513b,0x31ad2));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x28aa11=a308_0x33c2,_0x4abfa9=getTemplateBaseUrl(),_0x144bd5=[_0x4abfa9+_0x28aa11(0x1ea),_0x4abfa9+_0x28aa11(0x1e7)];for(const _0x4629fb of _0x144bd5){try{const _0x5a3723=await fetch(_0x4629fb,{'headers':{'Accept':_0x28aa11(0x1e4)}});if(!_0x5a3723['ok'])continue;const _0x6a3a1e=await _0x5a3723[_0x28aa11(0x1e5)]();if(!_0x6a3a1e[_0x28aa11(0x1ef)]?.['stableVersion']||!_0x6a3a1e[_0x28aa11(0x1e9)]?.[_0x28aa11(0x1ee)]?.['stableVersion'])continue;return _0x6a3a1e;}catch{}}return null;}function a308_0x513b(){const _0x3ee5ff=['cli','814506CoqWav','1305544gXZCoG','18uTDJwL','10MNIMEr','1506472bGoKzP','application/json','json','now','/config/index.json','16648elEhuu','sdk','/config.json','754424ZmFgkH','981816ZnuZCl','609036lTRKLc','node'];a308_0x513b=function(){return _0x3ee5ff;};return a308_0x513b();}function a308_0x33c2(_0x34f84a,_0x58f3c5){_0x34f84a=_0x34f84a-0x1df;const _0x513b76=a308_0x513b();let _0x33c23c=_0x513b76[_0x34f84a];return _0x33c23c;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x13385f=a308_0x33c2,_0x19e0a5=Date[_0x13385f(0x1e6)]();if(hasCachedConfig){const _0x2b8f4c=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x19e0a5-cacheTime<_0x2b8f4c)return cachedConfig;}const _0x1baf5f=await fetchCdnConfig();return cachedConfig=_0x1baf5f,cacheTime=_0x19e0a5,hasCachedConfig=!![],_0x1baf5f;}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
- (function(_0xa85b22,_0x1c5520){const _0x596a59=a309_0x1bbd,_0x2ee385=_0xa85b22();while(!![]){try{const _0xe360f9=-parseInt(_0x596a59(0xf2))/0x1*(-parseInt(_0x596a59(0xfa))/0x2)+parseInt(_0x596a59(0xf0))/0x3*(parseInt(_0x596a59(0xd8))/0x4)+parseInt(_0x596a59(0xf9))/0x5+-parseInt(_0x596a59(0xe6))/0x6*(-parseInt(_0x596a59(0xfd))/0x7)+parseInt(_0x596a59(0xfc))/0x8*(parseInt(_0x596a59(0xe7))/0x9)+parseInt(_0x596a59(0xe4))/0xa*(parseInt(_0x596a59(0xe5))/0xb)+-parseInt(_0x596a59(0xed))/0xc;if(_0xe360f9===_0x1c5520)break;else _0x2ee385['push'](_0x2ee385['shift']());}catch(_0x1912f7){_0x2ee385['push'](_0x2ee385['shift']());}}}(a309_0x3542,0xa6a56));import a309_0x16eb8f from'node:fs';import a309_0x4e440d from'node:path';import a309_0x2b5c9b from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x4b990e){const _0x2d8f49=a309_0x1bbd,_0x4b2992=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x4b2992[_0x2d8f49(0xf5)](_0x5d7712=>_0x5d7712[_0x2d8f49(0xf8)](_0x4b990e));}function a309_0x1bbd(_0x42d81d,_0x27bc26){_0x42d81d=_0x42d81d-0xd8;const _0x3542ec=a309_0x3542();let _0x1bbd0a=_0x3542ec[_0x42d81d];return _0x1bbd0a;}function getInstalledVersion(_0xb2db01,_0x27c16e){const _0x1171ee=a309_0x1bbd;try{const _0x5c7a6e=a309_0x4e440d[_0x1171ee(0xf3)](_0xb2db01,_0x1171ee(0xff),_0x27c16e,_0x1171ee(0xe8));if(a309_0x16eb8f['existsSync'](_0x5c7a6e)){const _0x4afd36=JSON[_0x1171ee(0xdd)](a309_0x16eb8f[_0x1171ee(0xea)](_0x5c7a6e,_0x1171ee(0xe1)));return _0x4afd36[_0x1171ee(0x100)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x6bf98e=a309_0x1bbd;try{const _0x217585=await getCdnConfig();return _0x217585?.[_0x6bf98e(0x101)]?.[_0x6bf98e(0xf4)]?.[_0x6bf98e(0xde)]||null;}catch{return null;}}function a309_0x3542(){const _0x1d277d=['44osyHeS','\x1b[1m','existsSync','\x20\x20\x20Current\x20version:\x20','latest','parse','stableVersion','\x20\x20\x20Upgrade\x20command:\x20','npm\x20install\x20','utf-8','coerce','↪\x20SDK\x20update\x20available','6230znGKLS','13013hmdjyS','18YZjGPM','13086HdweVF','package.json','@lovrabet/sdk','readFileSync','minVersion','devDependencies','45431400dLffSx','log','needsUpgrade','199191veLkNR','\x20\x20\x20Stable\x20version:\x20','1dRPwZu','join','node','some','packageName','dependencies','test','358315vDeqma','2642606kWobpb','\x1b[33m','1576FCaiAn','3084088ayVhsw','utf8','node_modules','version','sdk'];a309_0x3542=function(){return _0x1d277d;};return a309_0x3542();}async function getSdkPackageName(){const _0x2dd55b=a309_0x1bbd;try{const _0x54fd62=await getCdnConfig();return _0x54fd62?.[_0x2dd55b(0x101)]?.[_0x2dd55b(0xf4)]?.[_0x2dd55b(0xf6)]||_0x2dd55b(0xe9);}catch{return _0x2dd55b(0xe9);}}export async function checkSdkVersion(_0x21ffbe){const _0x2b373e=a309_0x1bbd,_0x2e17dd=a309_0x4e440d['join'](_0x21ffbe,'package.json'),[_0x31017b,_0x1974e2]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x198301=_0x31017b||FALLBACK_MIN_SDK_VERSION;if(!a309_0x16eb8f[_0x2b373e(0xda)](_0x2e17dd))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x198301,'packageName':_0x1974e2,'stableVersion':_0x31017b};try{const _0x404a50=JSON[_0x2b373e(0xdd)](a309_0x16eb8f[_0x2b373e(0xea)](_0x2e17dd,_0x2b373e(0xfe))),_0x2f9b27=_0x404a50[_0x2b373e(0xf7)]||{},_0x34a9d2=_0x404a50[_0x2b373e(0xec)]||{},_0x8d1ea3=_0x2f9b27[_0x1974e2]||_0x34a9d2[_0x1974e2];if(!_0x8d1ea3)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x198301,'packageName':_0x1974e2,'stableVersion':_0x31017b};let _0x111f42=getInstalledVersion(_0x21ffbe,_0x1974e2);!_0x111f42&&(_0x111f42=_0x8d1ea3);if(isNonNumericVersion(_0x8d1ea3))return{'installed':!![],'version':_0x111f42,'needsUpgrade':![],'minVersion':_0x198301,'packageName':_0x1974e2,'stableVersion':_0x31017b};const _0x2133ec=a309_0x2b5c9b[_0x2b373e(0xe2)](_0x111f42),_0x1b4bcd=a309_0x2b5c9b[_0x2b373e(0xe2)](_0x198301),_0x54c4ac=_0x2133ec&&_0x1b4bcd?a309_0x2b5c9b['lt'](_0x2133ec,_0x1b4bcd):![];return{'installed':!![],'version':_0x111f42,'needsUpgrade':_0x54c4ac,'minVersion':_0x198301,'packageName':_0x1974e2,'stableVersion':_0x31017b};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x198301,'packageName':_0x1974e2,'stableVersion':_0x31017b};}}export function checkSdkVersionSync(_0x4bc1b5){const _0x83d2a2=a309_0x1bbd,_0x2d851f=a309_0x4e440d['join'](_0x4bc1b5,_0x83d2a2(0xe8)),_0x1af8cf='@lovrabet/sdk';if(!a309_0x16eb8f['existsSync'](_0x2d851f))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1af8cf,'stableVersion':null};try{const _0x5431c7=JSON[_0x83d2a2(0xdd)](a309_0x16eb8f[_0x83d2a2(0xea)](_0x2d851f,_0x83d2a2(0xfe))),_0x727596=_0x5431c7[_0x83d2a2(0xf7)]||{},_0x4e0702=_0x5431c7['devDependencies']||{},_0x78c911=_0x727596[_0x1af8cf]||_0x4e0702[_0x1af8cf];if(!_0x78c911)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1af8cf,'stableVersion':null};let _0x586f19=getInstalledVersion(_0x4bc1b5,_0x1af8cf);!_0x586f19&&(_0x586f19=_0x78c911);if(isNonNumericVersion(_0x78c911))return{'installed':!![],'version':_0x586f19,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1af8cf,'stableVersion':null};const _0x575529=a309_0x2b5c9b[_0x83d2a2(0xe2)](_0x586f19),_0x1b4de4=_0x575529?a309_0x2b5c9b['lt'](_0x575529,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x586f19,'needsUpgrade':_0x1b4de4,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1af8cf,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1af8cf,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x41024f){const _0x58bd50=a309_0x1bbd;if(!_0x41024f[_0x58bd50(0xef)])return;const _0x4f915d=_0x58bd50(0xfb),_0x471c15='\x1b[0m',_0x5ac742=_0x58bd50(0xd9),_0x55aac7=_0x41024f[_0x58bd50(0xf6)]||_0x58bd50(0xe9),_0x562063=_0x41024f[_0x58bd50(0xde)]||_0x41024f[_0x58bd50(0xeb)],_0x4532ca=_0x58bd50(0xe0)+_0x55aac7+'@'+(_0x562063||_0x58bd50(0xdc));console[_0x58bd50(0xee)](),console['log'](''+_0x4f915d+_0x5ac742+_0x58bd50(0xe3)+_0x471c15),console[_0x58bd50(0xee)](_0x4f915d+_0x58bd50(0xdb)+_0x55aac7+'@'+_0x41024f[_0x58bd50(0x100)]+_0x471c15),console[_0x58bd50(0xee)](_0x4f915d+_0x58bd50(0xf1)+_0x562063+_0x471c15),console[_0x58bd50(0xee)](_0x4f915d+_0x58bd50(0xdf)+_0x4532ca+_0x471c15),console[_0x58bd50(0xee)]();}
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();}