@lovrabet/rabetbase-cli 2.5.4-beta.2 → 2.5.4-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 (356) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.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/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/index.js +1 -1
  26. package/lib/commands/app/list.js +1 -1
  27. package/lib/commands/app/members-list.js +1 -1
  28. package/lib/commands/app/remote-directory.js +1 -1
  29. package/lib/commands/app/shared.js +1 -1
  30. package/lib/commands/app-config/delete.js +1 -1
  31. package/lib/commands/app-config/get.js +1 -1
  32. package/lib/commands/app-config/index.js +1 -1
  33. package/lib/commands/app-config/list.js +1 -1
  34. package/lib/commands/app-config/set.js +1 -1
  35. package/lib/commands/app-config/shared.js +1 -1
  36. package/lib/commands/auth/index.js +1 -1
  37. package/lib/commands/bff/create.js +1 -1
  38. package/lib/commands/bff/delete.js +1 -1
  39. package/lib/commands/bff/detail.js +1 -1
  40. package/lib/commands/bff/index.js +1 -1
  41. package/lib/commands/bff/list.js +1 -1
  42. package/lib/commands/bff/logs.js +1 -1
  43. package/lib/commands/bff/pull.js +1 -1
  44. package/lib/commands/bff/push.js +1 -1
  45. package/lib/commands/bff/status.js +1 -1
  46. package/lib/commands/cli-skill/index.js +1 -1
  47. package/lib/commands/cli-update.js +1 -1
  48. package/lib/commands/codegen/index.js +1 -1
  49. package/lib/commands/codegen/sdk.js +1 -1
  50. package/lib/commands/codegen/sql.js +1 -1
  51. package/lib/commands/common/app-registry.js +1 -1
  52. package/lib/commands/common/app-selector.js +1 -1
  53. package/lib/commands/common/async-task.js +1 -1
  54. package/lib/commands/common/dry-run.js +1 -1
  55. package/lib/commands/common/flags.js +1 -1
  56. package/lib/commands/common/local-file.js +1 -1
  57. package/lib/commands/common/validate.js +1 -1
  58. package/lib/commands/config/delete.js +1 -1
  59. package/lib/commands/config/get.js +1 -1
  60. package/lib/commands/config/index.js +1 -1
  61. package/lib/commands/config/init.js +1 -1
  62. package/lib/commands/config/list.js +1 -1
  63. package/lib/commands/config/set.js +1 -1
  64. package/lib/commands/config/shared.js +1 -1
  65. package/lib/commands/dataset/batch-design.js +1 -1
  66. package/lib/commands/dataset/business-group-update.js +1 -1
  67. package/lib/commands/dataset/business-groups.js +1 -1
  68. package/lib/commands/dataset/capability.js +1 -1
  69. package/lib/commands/dataset/cross-relation-create.js +1 -1
  70. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  71. package/lib/commands/dataset/cross-relation-list.js +1 -1
  72. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  73. package/lib/commands/dataset/cross-relation-update.js +1 -1
  74. package/lib/commands/dataset/delete.js +1 -1
  75. package/lib/commands/dataset/detail.js +1 -1
  76. package/lib/commands/dataset/extend-update.js +1 -1
  77. package/lib/commands/dataset/field-restore.js +1 -1
  78. package/lib/commands/dataset/field-update.js +1 -1
  79. package/lib/commands/dataset/generate.js +1 -1
  80. package/lib/commands/dataset/index.js +1 -1
  81. package/lib/commands/dataset/list.js +1 -1
  82. package/lib/commands/dataset/operations.js +1 -1
  83. package/lib/commands/dataset/relation-audit.js +1 -1
  84. package/lib/commands/dataset/relation-create.js +1 -1
  85. package/lib/commands/dataset/relation-delete.js +1 -1
  86. package/lib/commands/dataset/relation-shared.js +1 -1
  87. package/lib/commands/dataset/relation-update.js +1 -1
  88. package/lib/commands/dataset/relations.js +1 -1
  89. package/lib/commands/dataset/rename.js +1 -1
  90. package/lib/commands/dataset/restore.js +1 -1
  91. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  92. package/lib/commands/db/analysis-batching.js +1 -1
  93. package/lib/commands/db/analyze-batch-plan.js +1 -1
  94. package/lib/commands/db/analyze-cancel.js +1 -1
  95. package/lib/commands/db/analyze-start.js +1 -1
  96. package/lib/commands/db/analyze-status.js +1 -1
  97. package/lib/commands/db/create.js +1 -1
  98. package/lib/commands/db/delete.js +1 -1
  99. package/lib/commands/db/detail.js +1 -1
  100. package/lib/commands/db/diff-refresh-start.js +1 -1
  101. package/lib/commands/db/diff-refresh-status.js +1 -1
  102. package/lib/commands/db/diff.js +1 -1
  103. package/lib/commands/db/index.js +1 -1
  104. package/lib/commands/db/list.js +1 -1
  105. package/lib/commands/db/shared.js +1 -1
  106. package/lib/commands/db/table-diff-shared.js +1 -1
  107. package/lib/commands/db/tables.js +1 -1
  108. package/lib/commands/db/test.js +1 -1
  109. package/lib/commands/db/update.js +1 -1
  110. package/lib/commands/deployment/index.js +1 -1
  111. package/lib/commands/deployment/sync-all.js +1 -1
  112. package/lib/commands/deployment/sync-jobs.js +1 -1
  113. package/lib/commands/deployment/sync-status.js +1 -1
  114. package/lib/commands/doctor.js +1 -1
  115. package/lib/commands/file/index.js +1 -1
  116. package/lib/commands/flow/create.js +1 -1
  117. package/lib/commands/flow/detail.js +1 -1
  118. package/lib/commands/flow/index.js +1 -1
  119. package/lib/commands/flow/list.js +1 -1
  120. package/lib/commands/flow/publish.js +1 -1
  121. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  122. package/lib/commands/flow/runtime-role-list.js +1 -1
  123. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  124. package/lib/commands/flow/runtime-user-search.js +1 -1
  125. package/lib/commands/flow/shared.js +1 -1
  126. package/lib/commands/flow/update.js +1 -1
  127. package/lib/commands/flow/validate.js +1 -1
  128. package/lib/commands/instant-api-policy/current.js +1 -1
  129. package/lib/commands/instant-api-policy/index.js +1 -1
  130. package/lib/commands/instant-api-policy/init.js +1 -1
  131. package/lib/commands/instant-api-policy/publish.js +1 -1
  132. package/lib/commands/instant-api-policy/pull.js +1 -1
  133. package/lib/commands/instant-api-policy/revision.js +1 -1
  134. package/lib/commands/instant-api-policy/revisions.js +1 -1
  135. package/lib/commands/instant-api-policy/rollback.js +1 -1
  136. package/lib/commands/instant-api-policy/shared.js +1 -1
  137. package/lib/commands/instant-api-policy/validate.js +1 -1
  138. package/lib/commands/issue/index.js +1 -1
  139. package/lib/commands/issue/nudge.js +1 -1
  140. package/lib/commands/issue/report.js +1 -1
  141. package/lib/commands/issue/shared.js +1 -1
  142. package/lib/commands/kb/create.js +1 -1
  143. package/lib/commands/kb/delete.js +1 -1
  144. package/lib/commands/kb/detail.js +1 -1
  145. package/lib/commands/kb/index.js +1 -1
  146. package/lib/commands/kb/list.js +1 -1
  147. package/lib/commands/kb/search.js +1 -1
  148. package/lib/commands/kb/shared.js +1 -1
  149. package/lib/commands/kb/update.js +1 -1
  150. package/lib/commands/logs/index.js +1 -1
  151. package/lib/commands/menu/asset-update.js +1 -1
  152. package/lib/commands/menu/delete.js +1 -1
  153. package/lib/commands/menu/external-link-create.js +1 -1
  154. package/lib/commands/menu/external-link-update.js +1 -1
  155. package/lib/commands/menu/group-create.js +1 -1
  156. package/lib/commands/menu/group-update.js +1 -1
  157. package/lib/commands/menu/index.js +1 -1
  158. package/lib/commands/menu/list.js +1 -1
  159. package/lib/commands/menu/move.js +1 -1
  160. package/lib/commands/menu/regroup-start.js +1 -1
  161. package/lib/commands/menu/rename.js +1 -1
  162. package/lib/commands/menu/shared/compare-table.js +1 -1
  163. package/lib/commands/menu/shared/delete-plan.js +1 -1
  164. package/lib/commands/menu/shared/facts.js +1 -1
  165. package/lib/commands/menu/shared/index.js +1 -1
  166. package/lib/commands/menu/shared/inquirer.js +1 -1
  167. package/lib/commands/menu/shared/local-pages.js +1 -1
  168. package/lib/commands/menu/shared/logic.js +1 -1
  169. package/lib/commands/menu/shared/mutations.js +1 -1
  170. package/lib/commands/menu/shared/service.js +1 -1
  171. package/lib/commands/menu/shared/sync-core.js +1 -1
  172. package/lib/commands/menu/shared/update-core.js +1 -1
  173. package/lib/commands/menu/shared/valid-url.js +1 -1
  174. package/lib/commands/menu/sync.js +1 -1
  175. package/lib/commands/menu/visibility-update.js +1 -1
  176. package/lib/commands/notification/config-create.js +1 -1
  177. package/lib/commands/notification/config-delete.js +1 -1
  178. package/lib/commands/notification/config-list.js +1 -1
  179. package/lib/commands/notification/config-update.js +1 -1
  180. package/lib/commands/notification/index.js +1 -1
  181. package/lib/commands/notification/shared.js +1 -1
  182. package/lib/commands/ocr/index.js +1 -1
  183. package/lib/commands/page/create.js +1 -1
  184. package/lib/commands/page/custom/detail.js +1 -1
  185. package/lib/commands/page/custom/list.js +1 -1
  186. package/lib/commands/page/custom/publish.js +1 -1
  187. package/lib/commands/page/custom/shared.js +1 -1
  188. package/lib/commands/page/custom/syntax.js +1 -1
  189. package/lib/commands/page/custom/update.js +1 -1
  190. package/lib/commands/page/data-list-status.js +1 -1
  191. package/lib/commands/page/generate-start.js +1 -1
  192. package/lib/commands/page/generate-status.js +1 -1
  193. package/lib/commands/page/index.js +1 -1
  194. package/lib/commands/page/pull.js +1 -1
  195. package/lib/commands/page/push.js +1 -1
  196. package/lib/commands/page/relation-audit.js +1 -1
  197. package/lib/commands/page/restore.js +1 -1
  198. package/lib/commands/page/shared.js +1 -1
  199. package/lib/commands/page/sync.js +1 -1
  200. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  201. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  202. package/lib/commands/project/create/format-elapsed.js +1 -1
  203. package/lib/commands/project/create/main.js +1 -1
  204. package/lib/commands/project/create/materialize-project-template.js +1 -1
  205. package/lib/commands/project/create/project-name.js +1 -1
  206. package/lib/commands/project/create/project-template-archive.js +1 -1
  207. package/lib/commands/project/create/project-template-path.js +1 -1
  208. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  209. package/lib/commands/project/create/use-format-code.js +1 -1
  210. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  211. package/lib/commands/project/domain-routing-sync.js +1 -1
  212. package/lib/commands/project/index.js +1 -1
  213. package/lib/commands/project/upgrade.js +1 -1
  214. package/lib/commands/registry.js +1 -1
  215. package/lib/commands/role/delete.js +1 -1
  216. package/lib/commands/role/detail.js +1 -1
  217. package/lib/commands/role/index.js +1 -1
  218. package/lib/commands/role/list.js +1 -1
  219. package/lib/commands/role/shared.js +1 -1
  220. package/lib/commands/role/update.js +1 -1
  221. package/lib/commands/role/user-add.js +1 -1
  222. package/lib/commands/role/user-remove.js +1 -1
  223. package/lib/commands/role/user-resolve.js +1 -1
  224. package/lib/commands/rule/get.js +1 -1
  225. package/lib/commands/rule/index.js +1 -1
  226. package/lib/commands/rule/list.js +1 -1
  227. package/lib/commands/rule/set.js +1 -1
  228. package/lib/commands/rule/shared.js +1 -1
  229. package/lib/commands/run/index.js +1 -1
  230. package/lib/commands/schema.js +1 -1
  231. package/lib/commands/sql/create.js +1 -1
  232. package/lib/commands/sql/delete.js +1 -1
  233. package/lib/commands/sql/detail.js +1 -1
  234. package/lib/commands/sql/exec.js +1 -1
  235. package/lib/commands/sql/index.js +1 -1
  236. package/lib/commands/sql/list.js +1 -1
  237. package/lib/commands/sql/pull.js +1 -1
  238. package/lib/commands/sql/push.js +1 -1
  239. package/lib/commands/sql/shared.js +1 -1
  240. package/lib/commands/sql/status.js +1 -1
  241. package/lib/commands/sql/validate.js +1 -1
  242. package/lib/commands/task/index.js +1 -1
  243. package/lib/commands/task/status.js +1 -1
  244. package/lib/commands/tenant/index.js +1 -1
  245. package/lib/commands/tenant/members-list.js +1 -1
  246. package/lib/commands/tenant/shared.js +1 -1
  247. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  248. package/lib/commands/user-account/feishu-bind.d.ts +2 -0
  249. package/lib/commands/user-account/feishu-bind.js +1 -0
  250. package/lib/commands/user-account/index.js +1 -1
  251. package/lib/commands/workspace/add.js +1 -1
  252. package/lib/commands/workspace/index.js +1 -1
  253. package/lib/commands/workspace/remove.js +1 -1
  254. package/lib/config/domain-config.js +1 -1
  255. package/lib/config/project-domain-routing.js +1 -1
  256. package/lib/config/region-config.js +1 -1
  257. package/lib/config/schema.js +1 -1
  258. package/lib/constant/cdn.js +1 -1
  259. package/lib/constant/cli.js +1 -1
  260. package/lib/constant/defaults.js +1 -1
  261. package/lib/constant/domain.js +1 -1
  262. package/lib/constant/env.js +1 -1
  263. package/lib/constant/output.js +1 -1
  264. package/lib/constant/paths.js +1 -1
  265. package/lib/constant/region.js +1 -1
  266. package/lib/constant/risk.js +1 -1
  267. package/lib/constant/routing-profile.js +1 -1
  268. package/lib/context/app-resolver.js +1 -1
  269. package/lib/context/auth-resolver.js +1 -1
  270. package/lib/context/config-loader.js +1 -1
  271. package/lib/context.js +1 -1
  272. package/lib/core/alias-resolver.js +1 -1
  273. package/lib/core/api-client.d.ts +2 -0
  274. package/lib/core/api-client.js +1 -1
  275. package/lib/core/bff/config.js +1 -1
  276. package/lib/core/bff/file-system.js +1 -1
  277. package/lib/core/bff/hash.js +1 -1
  278. package/lib/core/bff/hook-directory.js +1 -1
  279. package/lib/core/bff/lock.js +1 -1
  280. package/lib/core/bff/utils.js +1 -1
  281. package/lib/core/cross-db-relation.js +1 -1
  282. package/lib/core/db-resolver.js +1 -1
  283. package/lib/core/flow-config.js +1 -1
  284. package/lib/core/instant-api-policy/config.js +1 -1
  285. package/lib/core/kb-search-client.js +1 -1
  286. package/lib/core/page/file-system.js +1 -1
  287. package/lib/core/page/hash.js +1 -1
  288. package/lib/core/page/lock.js +1 -1
  289. package/lib/core/page/lr-smart-jsx.js +1 -1
  290. package/lib/core/sql-index-auditor.js +1 -1
  291. package/lib/core/sql-sync/config.js +1 -1
  292. package/lib/core/sql-sync/file-system.js +1 -1
  293. package/lib/core/sql-sync/hash.js +1 -1
  294. package/lib/core/sql-sync/lock.js +1 -1
  295. package/lib/core/sql-sync/utils.js +1 -1
  296. package/lib/core/sql-validator.js +1 -1
  297. package/lib/errors.js +1 -1
  298. package/lib/framework/build-all-flags.js +1 -1
  299. package/lib/framework/error-output.js +1 -1
  300. package/lib/framework/explicit-yes.js +1 -1
  301. package/lib/framework/flags.js +1 -1
  302. package/lib/framework/help.js +1 -1
  303. package/lib/framework/index.js +1 -1
  304. package/lib/framework/output.js +1 -1
  305. package/lib/framework/response.js +1 -1
  306. package/lib/framework/runner-alias.js +1 -1
  307. package/lib/framework/runner.js +1 -1
  308. package/lib/framework/schema-export.js +1 -1
  309. package/lib/framework/supported-flags.js +1 -1
  310. package/lib/framework/types.js +1 -1
  311. package/lib/generated/build-info.d.ts +4 -4
  312. package/lib/generated/build-info.js +1 -1
  313. package/lib/generated/official-routing.js +1 -1
  314. package/lib/generated/routing-contract.js +1 -1
  315. package/lib/help.js +1 -1
  316. package/lib/postinstall.js +1 -1
  317. package/lib/runtime/confirmation.js +1 -1
  318. package/lib/runtime/event.js +1 -1
  319. package/lib/runtime/index.js +1 -1
  320. package/lib/runtime/queue.js +1 -1
  321. package/lib/runtime/resolve.js +1 -1
  322. package/lib/skills/builtin-skill.js +1 -1
  323. package/lib/skills/main.js +1 -1
  324. package/lib/skills/npx-skills-add.js +1 -1
  325. package/lib/skills/skill-presence.js +1 -1
  326. package/lib/telemetry/cli-command-trace.js +1 -1
  327. package/lib/telemetry/cli-help-trace.js +1 -1
  328. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  329. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  330. package/lib/telemetry/send-cli-trace-log.js +1 -1
  331. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  332. package/lib/utils/ai_config.js +1 -1
  333. package/lib/utils/apply-jq-filter.js +1 -1
  334. package/lib/utils/cdn-config.js +1 -1
  335. package/lib/utils/check-sdk-version.js +1 -1
  336. package/lib/utils/cli-version-check.js +1 -1
  337. package/lib/utils/cli-version-policy.js +1 -1
  338. package/lib/utils/config.js +1 -1
  339. package/lib/utils/entity-with-id.js +1 -1
  340. package/lib/utils/file-utils.js +1 -1
  341. package/lib/utils/guides-cdn.js +1 -1
  342. package/lib/utils/http-client.js +1 -1
  343. package/lib/utils/is-non-interactive.js +1 -1
  344. package/lib/utils/logger.js +1 -1
  345. package/lib/utils/params.js +1 -1
  346. package/lib/utils/platform.js +1 -1
  347. package/lib/utils/sleep.js +1 -1
  348. package/lib/utils/template-replacer.js +1 -1
  349. package/lib/utils/update-notice.js +1 -1
  350. package/lib/utils/version.js +1 -1
  351. package/lib/utils/with-active-cookie.js +1 -1
  352. package/lib/utils/write-cli-side-channel.js +1 -1
  353. package/package.json +1 -1
  354. package/skills/rabetbase/SKILL.md +3 -2
  355. package/skills/rabetbase/references/rabetbase-user-account.md +20 -2
  356. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- function a317_0x9515(){const _0x4260cc=['service','4822909azDpzP','753NDqkiE','6PLHRRC','6953940ipepAL','44072LyEKGS','55egMpaH','2498utbsPS','object','177AIVJin','data','risk','1896110QNkeEm','198OrIlkF','20xKpswd','filter','rabetbase.write.completed','isArray','conflicts','split','8487984WQDdAp'];a317_0x9515=function(){return _0x4260cc;};return a317_0x9515();}(function(_0xd80a75,_0x1843b8){const _0x57bf6d=a317_0x56ca,_0x462d9d=_0xd80a75();while(!![]){try{const _0x185595=parseInt(_0x57bf6d(0x8e))/0x1*(-parseInt(_0x57bf6d(0x93))/0x2)+-parseInt(_0x57bf6d(0x95))/0x3*(parseInt(_0x57bf6d(0x91))/0x4)+-parseInt(_0x57bf6d(0x98))/0x5+parseInt(_0x57bf6d(0x8f))/0x6*(parseInt(_0x57bf6d(0x8d))/0x7)+-parseInt(_0x57bf6d(0x8b))/0x8+-parseInt(_0x57bf6d(0x99))/0x9*(parseInt(_0x57bf6d(0x9a))/0xa)+parseInt(_0x57bf6d(0x92))/0xb*(parseInt(_0x57bf6d(0x90))/0xc);if(_0x185595===_0x1843b8)break;else _0x462d9d['push'](_0x462d9d['shift']());}catch(_0x375c25){_0x462d9d['push'](_0x462d9d['shift']());}}}(a317_0x9515,0x87a77));export function canonicalRabetbaseOperation(_0x5eca07){const _0x550827=a317_0x56ca;return[_0x5eca07[_0x550827(0x8c)],..._0x5eca07['command']['trim']()[_0x550827(0x8a)](/\s+/)][_0x550827(0x9b)](Boolean)['join']('.');}export function createRabetbaseWriteMetadata(_0x417a5d,_0x320b4b,_0x416288,_0x923432){const _0x395125=a317_0x56ca;if(_0x923432||_0x416288['ok']!==!![]||hasUnresolvedConflicts(_0x416288)||_0x417a5d['risk']!=='write'&&_0x417a5d[_0x395125(0x97)]!=='high-risk-write')return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x395125(0x87),'operation':_0x320b4b,'risk':_0x417a5d[_0x395125(0x97)]}}};}function a317_0x56ca(_0x4c0495,_0x43eb9b){_0x4c0495=_0x4c0495-0x87;const _0x951592=a317_0x9515();let _0x56ca72=_0x951592[_0x4c0495];return _0x56ca72;}function hasUnresolvedConflicts(_0x176d0){const _0x24e9e2=a317_0x56ca,_0x372065=_0x176d0[_0x24e9e2(0x96)];return Boolean(_0x372065&&typeof _0x372065===_0x24e9e2(0x94)&&!Array[_0x24e9e2(0x88)](_0x372065)&&Array['isArray'](_0x372065['conflicts'])&&_0x372065[_0x24e9e2(0x89)]['length']>0x0);}
1
+ (function(_0x5b1b1c,_0x57bff9){const _0x134d3e=a318_0x5f1c,_0x3684bc=_0x5b1b1c();while(!![]){try{const _0x18e28a=parseInt(_0x134d3e(0x1d0))/0x1*(parseInt(_0x134d3e(0x1e3))/0x2)+parseInt(_0x134d3e(0x1e4))/0x3*(-parseInt(_0x134d3e(0x1cf))/0x4)+parseInt(_0x134d3e(0x1de))/0x5*(parseInt(_0x134d3e(0x1dd))/0x6)+-parseInt(_0x134d3e(0x1db))/0x7*(-parseInt(_0x134d3e(0x1d4))/0x8)+-parseInt(_0x134d3e(0x1e2))/0x9*(-parseInt(_0x134d3e(0x1e6))/0xa)+-parseInt(_0x134d3e(0x1d8))/0xb+parseInt(_0x134d3e(0x1e0))/0xc*(-parseInt(_0x134d3e(0x1e5))/0xd);if(_0x18e28a===_0x57bff9)break;else _0x3684bc['push'](_0x3684bc['shift']());}catch(_0x2217c6){_0x3684bc['push'](_0x3684bc['shift']());}}}(a318_0x5810,0x36c42));export function canonicalRabetbaseOperation(_0x22da9c){const _0x36640d=a318_0x5f1c;return[_0x22da9c[_0x36640d(0x1da)],..._0x22da9c[_0x36640d(0x1dc)][_0x36640d(0x1df)]()[_0x36640d(0x1d5)](/\s+/)][_0x36640d(0x1cd)](Boolean)[_0x36640d(0x1d7)]('.');}export function createRabetbaseWriteMetadata(_0x1153b3,_0x593beb,_0x166028,_0x15585b){const _0x49ba91=a318_0x5f1c;if(_0x15585b||_0x166028['ok']!==!![]||hasUnresolvedConflicts(_0x166028)||_0x1153b3[_0x49ba91(0x1e1)]!=='write'&&_0x1153b3['risk']!==_0x49ba91(0x1d3))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x49ba91(0x1d9),'operation':_0x593beb,'risk':_0x1153b3[_0x49ba91(0x1e1)]}}};}function a318_0x5f1c(_0x470d36,_0xc069e0){_0x470d36=_0x470d36-0x1cd;const _0x5810ff=a318_0x5810();let _0x5f1c95=_0x5810ff[_0x470d36];return _0x5f1c95;}function hasUnresolvedConflicts(_0x3882a3){const _0x470173=a318_0x5f1c,_0x2e77bc=_0x3882a3[_0x470173(0x1d6)];return Boolean(_0x2e77bc&&typeof _0x2e77bc===_0x470173(0x1ce)&&!Array['isArray'](_0x2e77bc)&&Array['isArray'](_0x2e77bc[_0x470173(0x1d2)])&&_0x2e77bc[_0x470173(0x1d2)][_0x470173(0x1d1)]>0x0);}function a318_0x5810(){const _0x129555=['156IxCZkX','risk','3930723gpQhYp','9256OfjStv','471RXFzzk','8567DvdRoa','10YVqPAa','filter','object','7868eNjYtK','5wtRZYF','length','conflicts','high-risk-write','40czzDLq','split','data','join','1238116VuKMzW','rabetbase.write.completed','service','44604eymXVi','command','6dtlkLM','812585HsaYqR','trim'];a318_0x5810=function(){return _0x129555;};return a318_0x5810();}
@@ -1 +1 @@
1
- function a318_0x5988(){const _0xedd559=['873027uxMOqu','result','2540732RtJYkY','88rQpJKJ','riskLevel','112434LIAOug','1983560lLSTYI','format','8vDPjfy','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','high-risk-write','483jFsAXx','confirm','args','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','definition','11908oUvTpV','signal','execute','dryRun','message','reason','stringify','6842045sjnrNB','rawFlags','present','risk','8751906oxMoED','write','data','143kecoLh','service','command'];a318_0x5988=function(){return _0xedd559;};return a318_0x5988();}(function(_0x511015,_0x5c846d){const _0x2dffb9=a318_0x44bb,_0x2fa00d=_0x511015();while(!![]){try{const _0x245daa=-parseInt(_0x2dffb9(0xd9))/0x1*(parseInt(_0x2dffb9(0xcb))/0x2)+parseInt(_0x2dffb9(0xdc))/0x3+parseInt(_0x2dffb9(0xde))/0x4+parseInt(_0x2dffb9(0xd2))/0x5+parseInt(_0x2dffb9(0xe1))/0x6*(-parseInt(_0x2dffb9(0xc6))/0x7)+parseInt(_0x2dffb9(0xe4))/0x8*(-parseInt(_0x2dffb9(0xd6))/0x9)+parseInt(_0x2dffb9(0xe2))/0xa*(parseInt(_0x2dffb9(0xdf))/0xb);if(_0x245daa===_0x5c846d)break;else _0x2fa00d['push'](_0x2fa00d['shift']());}catch(_0x531681){_0x2fa00d['push'](_0x2fa00d['shift']());}}}(a318_0x5988,0xbaaba));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';function a318_0x44bb(_0x3e0ff0,_0x12c69f){_0x3e0ff0=_0x3e0ff0-0xc6;const _0x598837=a318_0x5988();let _0x44bb25=_0x598837[_0x3e0ff0];return _0x44bb25;}import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x3fb8b7,command:_0x478aec,risk:_0x205fb1,dryRun:_0x149768}){const _0x25d75c=a318_0x44bb;return JSON[_0x25d75c(0xd1)]({'ok':_0x3fb8b7['ok'],'command':_0x478aec,'risk':_0x205fb1,..._0x149768?{'dryRun':!![]}:{},..._0x3fb8b7[_0x25d75c(0xd8)]!==undefined?{'data':_0x3fb8b7[_0x25d75c(0xd8)]}:{},..._0x3fb8b7[_0x25d75c(0xcf)]?{'message':_0x3fb8b7[_0x25d75c(0xcf)]}:{}});}};export async function invokeRabetbase(_0x56a893,_0x43c314){const _0x22dc3a=a318_0x44bb;throwIfAborted(_0x43c314[_0x22dc3a(0xcc)]);const _0x5f0d21=await resolveRabetbaseInvocation(_0x56a893),_0x1497bd=canonicalRabetbaseOperation(_0x5f0d21[_0x22dc3a(0xca)]);return await confirmWriteBeforeQueue(_0x5f0d21[_0x22dc3a(0xca)],_0x5f0d21[_0x22dc3a(0xd3)],_0x1497bd,_0x43c314),runSerialized(async()=>{const _0x2e817c=_0x22dc3a,_0x36b8fc={};try{throwIfAborted(_0x43c314['signal']);const _0x4213ce=buildConfigFromFlags(_0x5f0d21['rawFlags']);!isRoutingRecoveryService(_0x5f0d21[_0x2e817c(0xca)][_0x2e817c(0xda)])&&await initGlobalEnvironment(_0x4213ce);const _0x410ea0=createPipelineEnv(_0x4213ce,{..._0x5f0d21['rawFlags'],'yes':_0x5f0d21[_0x2e817c(0xca)][_0x2e817c(0xd5)]===_0x2e817c(0xe6)?!![]:_0x5f0d21[_0x2e817c(0xd3)]['yes'],'nonInteractive':!![]},_0x5f0d21[_0x2e817c(0xc8)]);_0x410ea0['isNonInteractive']=!![],_0x410ea0[_0x2e817c(0xe0)]=_0x2e817c(0xe6);const _0x58f53c=withAbortSignal(_0x5f0d21[_0x2e817c(0xca)],_0x43c314['signal']),_0x18600e=createRabetbaseRunnerAdapter({'formatOutput'(_0x3925d7,_0x55af70){const _0x3200df=_0x2e817c;_0x36b8fc['result']=_0x3925d7,_0x36b8fc[_0x3200df(0xdb)]=_0x55af70[_0x3200df(0xdb)],_0x36b8fc[_0x3200df(0xd5)]=_0x55af70[_0x3200df(0xd5)],_0x36b8fc[_0x3200df(0xe3)]=_0x55af70[_0x3200df(0xe3)],_0x36b8fc[_0x3200df(0xce)]=_0x55af70['dryRun']===!![];},async 'confirmHighRisk'(){const _0x225752=_0x2e817c;throw new Error(_0x225752(0xc9));}});await runCommand(_0x58f53c,_0x410ea0,_0x18600e);if(!_0x36b8fc[_0x2e817c(0xdd)]||!_0x36b8fc[_0x2e817c(0xdb)]||!_0x36b8fc[_0x2e817c(0xd5)]||!_0x36b8fc[_0x2e817c(0xe3)])throw new Error(_0x2e817c(0xe5));const _0x1ae55b=_0x36b8fc['dryRun']===!![],_0x490ca7=_0x43c314['presentation']??defaultPresentation,_0x11f6ec={'result':_0x36b8fc['result'],'command':_0x36b8fc[_0x2e817c(0xdb)],'operation':_0x1497bd,'risk':_0x36b8fc[_0x2e817c(0xd5)],'format':_0x36b8fc[_0x2e817c(0xe3)],'dryRun':_0x1ae55b},_0x12a91f=createRabetbaseWriteMetadata(_0x5f0d21['definition'],_0x1497bd,_0x36b8fc[_0x2e817c(0xdd)],_0x1ae55b);let _0x3dde95;try{_0x3dde95=await _0x490ca7[_0x2e817c(0xd4)](_0x11f6ec);}catch(_0x49c3cc){if(!_0x12a91f||_0x490ca7===defaultPresentation)throw _0x49c3cc;_0x3dde95=await defaultPresentation[_0x2e817c(0xd4)](_0x11f6ec);}return{'operation':_0x1497bd,'risk':_0x36b8fc['risk'],'mode':_0x1ae55b?'dry-run':_0x2e817c(0xcd),'result':_0x36b8fc['result'],'output':_0x3dde95,..._0x12a91f?{'metadata':_0x12a91f}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x5c0eef,_0x26ff0b,_0x20ca48,_0x4ba735){const _0x13488b=a318_0x44bb;if(_0x26ff0b[_0x13488b(0xce)]===!![]||_0x5c0eef[_0x13488b(0xd5)]!==_0x13488b(0xd7)&&_0x5c0eef['risk']!=='high-risk-write')return;await _0x4ba735['confirmation'][_0x13488b(0xc7)](buildRabetbaseConfirmationRequest(_0x5c0eef,_0x20ca48,_0x4ba735[_0x13488b(0xcc)]));}function withAbortSignal(_0x68b788,_0x42444e){return{..._0x68b788,async 'execute'(_0x50ff8b){const _0x4a9d11=a318_0x44bb;return throwIfAborted(_0x42444e),_0x68b788[_0x4a9d11(0xcd)]({..._0x50ff8b,'signal':_0x42444e});}};}function throwIfAborted(_0x5978ca){const _0x4b6095=a318_0x44bb;if(_0x5978ca?.['aborted'])throw _0x5978ca[_0x4b6095(0xd0)]instanceof Error?_0x5978ca[_0x4b6095(0xd0)]:new DOMException('Rabetbase\x20invocation\x20aborted.','AbortError');}
1
+ (function(_0x1f2bd5,_0x1430d9){const _0x3dcd47=a319_0x1a2b,_0x3008b3=_0x1f2bd5();while(!![]){try{const _0x50be74=-parseInt(_0x3dcd47(0x127))/0x1+-parseInt(_0x3dcd47(0x119))/0x2*(-parseInt(_0x3dcd47(0x125))/0x3)+parseInt(_0x3dcd47(0x128))/0x4*(-parseInt(_0x3dcd47(0x121))/0x5)+-parseInt(_0x3dcd47(0x123))/0x6*(-parseInt(_0x3dcd47(0x120))/0x7)+parseInt(_0x3dcd47(0x133))/0x8*(-parseInt(_0x3dcd47(0x124))/0x9)+-parseInt(_0x3dcd47(0x11d))/0xa+parseInt(_0x3dcd47(0x11f))/0xb;if(_0x50be74===_0x1430d9)break;else _0x3008b3['push'](_0x3008b3['shift']());}catch(_0x505f5e){_0x3008b3['push'](_0x3008b3['shift']());}}}(a319_0x8bc8,0xf18a7));function a319_0x1a2b(_0x3d21bc,_0xdddd09){_0x3d21bc=_0x3d21bc-0x113;const _0x8bc8e6=a319_0x8bc8();let _0x1a2bd9=_0x8bc8e6[_0x3d21bc];return _0x1a2bd9;}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';function a319_0x8bc8(){const _0x5ca3a0=['dryRun','confirm','service','data','reason','isNonInteractive','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','format','signal','stringify','8bBzwAw','dry-run','command','args','confirmation','result','risk','riskLevel','present','presentation','yes','2gEztRD','AbortError','high-risk-write','execute','4740350QLqwkI','rawFlags','21114489nPJiVm','33677efKMDP','2535qyBVTv','definition','438IsYHvd','9715023yhktMA','3534459ImDWfm','message','486733NmTxKq','3308vsaHHQ'];a319_0x8bc8=function(){return _0x5ca3a0;};return a319_0x8bc8();}import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0xeb9459,command:_0xb6847f,risk:_0x1a4d1d,dryRun:_0x5e3a67}){const _0x47d080=a319_0x1a2b;return JSON[_0x47d080(0x132)]({'ok':_0xeb9459['ok'],'command':_0xb6847f,'risk':_0x1a4d1d,..._0x5e3a67?{'dryRun':!![]}:{},..._0xeb9459[_0x47d080(0x12c)]!==undefined?{'data':_0xeb9459[_0x47d080(0x12c)]}:{},..._0xeb9459[_0x47d080(0x126)]?{'message':_0xeb9459[_0x47d080(0x126)]}:{}});}};export async function invokeRabetbase(_0x4a6968,_0xb6eb62){const _0x59ee3d=a319_0x1a2b;throwIfAborted(_0xb6eb62['signal']);const _0xa88b00=await resolveRabetbaseInvocation(_0x4a6968),_0x5e53a2=canonicalRabetbaseOperation(_0xa88b00[_0x59ee3d(0x122)]);return await confirmWriteBeforeQueue(_0xa88b00[_0x59ee3d(0x122)],_0xa88b00[_0x59ee3d(0x11e)],_0x5e53a2,_0xb6eb62),runSerialized(async()=>{const _0x27c09f=_0x59ee3d,_0x4e8cd3={};try{throwIfAborted(_0xb6eb62[_0x27c09f(0x131)]);const _0x1d4335=buildConfigFromFlags(_0xa88b00[_0x27c09f(0x11e)]);!isRoutingRecoveryService(_0xa88b00[_0x27c09f(0x122)][_0x27c09f(0x12b)])&&await initGlobalEnvironment(_0x1d4335);const _0xc2aefa=createPipelineEnv(_0x1d4335,{..._0xa88b00[_0x27c09f(0x11e)],'yes':_0xa88b00[_0x27c09f(0x122)][_0x27c09f(0x114)]===_0x27c09f(0x11b)?!![]:_0xa88b00['rawFlags'][_0x27c09f(0x118)],'nonInteractive':!![]},_0xa88b00[_0x27c09f(0x136)]);_0xc2aefa[_0x27c09f(0x12e)]=!![],_0xc2aefa[_0x27c09f(0x115)]=_0x27c09f(0x11b);const _0xa31c73=withAbortSignal(_0xa88b00['definition'],_0xb6eb62[_0x27c09f(0x131)]),_0x34e98b=createRabetbaseRunnerAdapter({'formatOutput'(_0x166f7e,_0x2f27f2){const _0x38655b=_0x27c09f;_0x4e8cd3[_0x38655b(0x113)]=_0x166f7e,_0x4e8cd3[_0x38655b(0x135)]=_0x2f27f2[_0x38655b(0x135)],_0x4e8cd3[_0x38655b(0x114)]=_0x2f27f2[_0x38655b(0x114)],_0x4e8cd3[_0x38655b(0x130)]=_0x2f27f2[_0x38655b(0x130)],_0x4e8cd3['dryRun']=_0x2f27f2[_0x38655b(0x129)]===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.');}});await runCommand(_0xa31c73,_0xc2aefa,_0x34e98b);if(!_0x4e8cd3[_0x27c09f(0x113)]||!_0x4e8cd3[_0x27c09f(0x135)]||!_0x4e8cd3[_0x27c09f(0x114)]||!_0x4e8cd3[_0x27c09f(0x130)])throw new Error(_0x27c09f(0x12f));const _0x4f9116=_0x4e8cd3[_0x27c09f(0x129)]===!![],_0x41659=_0xb6eb62[_0x27c09f(0x117)]??defaultPresentation,_0x23ec08={'result':_0x4e8cd3[_0x27c09f(0x113)],'command':_0x4e8cd3[_0x27c09f(0x135)],'operation':_0x5e53a2,'risk':_0x4e8cd3[_0x27c09f(0x114)],'format':_0x4e8cd3[_0x27c09f(0x130)],'dryRun':_0x4f9116},_0x5e50a5=createRabetbaseWriteMetadata(_0xa88b00[_0x27c09f(0x122)],_0x5e53a2,_0x4e8cd3[_0x27c09f(0x113)],_0x4f9116);let _0x2bd6d5;try{_0x2bd6d5=await _0x41659[_0x27c09f(0x116)](_0x23ec08);}catch(_0x25ade0){if(!_0x5e50a5||_0x41659===defaultPresentation)throw _0x25ade0;_0x2bd6d5=await defaultPresentation[_0x27c09f(0x116)](_0x23ec08);}return{'operation':_0x5e53a2,'risk':_0x4e8cd3[_0x27c09f(0x114)],'mode':_0x4f9116?_0x27c09f(0x134):_0x27c09f(0x11c),'result':_0x4e8cd3['result'],'output':_0x2bd6d5,..._0x5e50a5?{'metadata':_0x5e50a5}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x2d30fb,_0x5010ff,_0x2fce6a,_0x4d8205){const _0x47d0b7=a319_0x1a2b;if(_0x5010ff[_0x47d0b7(0x129)]===!![]||_0x2d30fb[_0x47d0b7(0x114)]!=='write'&&_0x2d30fb['risk']!==_0x47d0b7(0x11b))return;await _0x4d8205[_0x47d0b7(0x137)][_0x47d0b7(0x12a)](buildRabetbaseConfirmationRequest(_0x2d30fb,_0x2fce6a,_0x4d8205[_0x47d0b7(0x131)]));}function withAbortSignal(_0x4c4ffd,_0x3c6fe6){return{..._0x4c4ffd,async 'execute'(_0x529ac2){const _0x595f8d=a319_0x1a2b;return throwIfAborted(_0x3c6fe6),_0x4c4ffd[_0x595f8d(0x11c)]({..._0x529ac2,'signal':_0x3c6fe6});}};}function throwIfAborted(_0x472eea){const _0xec3da2=a319_0x1a2b;if(_0x472eea?.['aborted'])throw _0x472eea[_0xec3da2(0x12d)]instanceof Error?_0x472eea[_0xec3da2(0x12d)]:new DOMException('Rabetbase\x20invocation\x20aborted.',_0xec3da2(0x11a));}
@@ -1 +1 @@
1
- const a319_0x3e2f8e=a319_0x5438;function a319_0x5438(_0x5277a5,_0x47a8b1){_0x5277a5=_0x5277a5-0x71;const _0x1f9ac9=a319_0x1f9a();let _0x543857=_0x1f9ac9[_0x5277a5];return _0x543857;}(function(_0xbccfc6,_0x4a77e2){const _0x277f72=a319_0x5438,_0x1a994e=_0xbccfc6();while(!![]){try{const _0x42743c=parseInt(_0x277f72(0x7b))/0x1*(parseInt(_0x277f72(0x7d))/0x2)+-parseInt(_0x277f72(0x7c))/0x3*(parseInt(_0x277f72(0x77))/0x4)+parseInt(_0x277f72(0x74))/0x5+-parseInt(_0x277f72(0x76))/0x6+parseInt(_0x277f72(0x72))/0x7*(parseInt(_0x277f72(0x73))/0x8)+parseInt(_0x277f72(0x7a))/0x9+parseInt(_0x277f72(0x79))/0xa*(-parseInt(_0x277f72(0x71))/0xb);if(_0x42743c===_0x4a77e2)break;else _0x1a994e['push'](_0x1a994e['shift']());}catch(_0x34357b){_0x1a994e['push'](_0x1a994e['shift']());}}}(a319_0x1f9a,0x58f58));let tail=Promise[a319_0x3e2f8e(0x75)]();function a319_0x1f9a(){const _0x2353b9=['catch','1695110dRvHAc','5682213LHssMo','15851ehnXCP','12eFhIEk','38zhbwOc','22jIFbXt','9961TxHUWA','968lWbpHx','1375240GzXBiF','resolve','2218002QJxsSF','306692qpbJYx'];a319_0x1f9a=function(){return _0x2353b9;};return a319_0x1f9a();}export async function runSerialized(_0x1b06db){const _0x62bb62=a319_0x3e2f8e,_0x529052=tail;let _0x20bd13;tail=new Promise(_0x1be429=>{_0x20bd13=_0x1be429;}),await _0x529052[_0x62bb62(0x78)](()=>undefined);try{return await _0x1b06db();}finally{_0x20bd13();}}
1
+ const a320_0x36104e=a320_0x23a4;function a320_0x6111(){const _0x35d9e7=['72OcARLd','3135UMNhbP','1418912MVOknh','43564lZBpUR','3723012WsSdEv','195hBBiTz','8523641cRfubM','resolve','261728ydKsdv','8578510rVGjWw','238GbxwrW','catch'];a320_0x6111=function(){return _0x35d9e7;};return a320_0x6111();}(function(_0x50930b,_0xf8f798){const _0x382db1=a320_0x23a4,_0x398383=_0x50930b();while(!![]){try{const _0x180c76=parseInt(_0x382db1(0xce))/0x1+parseInt(_0x382db1(0xd0))/0x2*(-parseInt(_0x382db1(0xd3))/0x3)+parseInt(_0x382db1(0xd5))/0x4*(-parseInt(_0x382db1(0xcb))/0x5)+-parseInt(_0x382db1(0xd6))/0x6+parseInt(_0x382db1(0xcc))/0x7+parseInt(_0x382db1(0xd4))/0x8*(parseInt(_0x382db1(0xd2))/0x9)+-parseInt(_0x382db1(0xcf))/0xa;if(_0x180c76===_0xf8f798)break;else _0x398383['push'](_0x398383['shift']());}catch(_0x3dbd36){_0x398383['push'](_0x398383['shift']());}}}(a320_0x6111,0xd49be));function a320_0x23a4(_0x4539b5,_0x2157a2){_0x4539b5=_0x4539b5-0xcb;const _0x6111ac=a320_0x6111();let _0x23a402=_0x6111ac[_0x4539b5];return _0x23a402;}let tail=Promise[a320_0x36104e(0xcd)]();export async function runSerialized(_0x51db13){const _0x4f6ef0=a320_0x36104e,_0x68e92b=tail;let _0x4218d0;tail=new Promise(_0x11e6b2=>{_0x4218d0=_0x11e6b2;}),await _0x68e92b[_0x4f6ef0(0xd1)](()=>undefined);try{return await _0x51db13();}finally{_0x4218d0();}}
@@ -1 +1 @@
1
- (function(_0x56d6b4,_0x5a5473){const _0x113800=a320_0x3f77,_0x24e0f9=_0x56d6b4();while(!![]){try{const _0xf43521=parseInt(_0x113800(0xaa))/0x1*(parseInt(_0x113800(0xad))/0x2)+-parseInt(_0x113800(0xa0))/0x3+parseInt(_0x113800(0xa1))/0x4*(-parseInt(_0x113800(0xa6))/0x5)+-parseInt(_0x113800(0xae))/0x6*(parseInt(_0x113800(0xac))/0x7)+-parseInt(_0x113800(0xab))/0x8*(parseInt(_0x113800(0xa8))/0x9)+parseInt(_0x113800(0xa7))/0xa*(-parseInt(_0x113800(0xaf))/0xb)+parseInt(_0x113800(0xa5))/0xc;if(_0xf43521===_0x5a5473)break;else _0x24e0f9['push'](_0x24e0f9['shift']());}catch(_0x2acb6d){_0x24e0f9['push'](_0x24e0f9['shift']());}}}(a320_0x23c3,0xd2671));import a320_0x1ba1e2 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a320_0x23c3(){const _0x4a2305=['flags','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','validation','input','5162622PnsNOC','4TuvkbV','wildcardDef','run','message','41458572iKbFWP','1484750TVuovI','20NHjEWv','3321873rgMHof','slice','2293KiqOGu','16tXywPr','7793849qoQdSy','1286yMOiOG','6SQwkee','1089253mzniTU','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','unknownCommand'];a320_0x23c3=function(){return _0x4a2305;};return a320_0x23c3();}import{buildMeowFlags}from'../constant/cli.js';function a320_0x3f77(_0x1c81bd,_0x111d50){_0x1c81bd=_0x1c81bd-0x9a;const _0x23c3ed=a320_0x23c3();let _0x3f7758=_0x23c3ed[_0x1c81bd];return _0x3f7758;}import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';export async function resolveRabetbaseInvocation(_0x26f2e8){const _0x35b144=a320_0x3f77,_0x14380c=a320_0x1ba1e2('',{'importMeta':import.meta,'argv':[..._0x26f2e8],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x395bc2=[..._0x14380c[_0x35b144(0x9f)]],_0x4fa914=_0x14380c[_0x35b144(0x9c)],_0x55c6a9=_0x395bc2[0x0];if(!_0x55c6a9)throw CliErrors['validation']('Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.');const _0x144b72=resolveRemovedCommand(_0x55c6a9,_0x395bc2[0x1]);if(_0x144b72)throw CliErrors[_0x35b144(0x9e)](_0x144b72[_0x35b144(0xa4)],_0x144b72['hint']);if(_0x55c6a9===_0x35b144(0xa3))throw CliErrors[_0x35b144(0x9e)](_0x35b144(0xb0),_0x35b144(0x9d));if(!isKnownService(_0x55c6a9))throw CliErrors[_0x35b144(0x9b)](_0x395bc2['join']('\x20'));const _0x30e3e2=getServiceEntry(_0x55c6a9),_0x2c6644=_0x395bc2[0x1],_0x55b1f7=_0x2c6644||_0x30e3e2['defaultCommand'];if(!_0x55b1f7){if(_0x30e3e2['wildcardDef'])return{'definition':_0x30e3e2[_0x35b144(0xa2)],'rawFlags':_0x4fa914,'args':[]};throw CliErrors[_0x35b144(0x9e)](_0x35b144(0x9a)+_0x55c6a9+'\x22.');}const _0x2977a5=findDefinition(_0x55c6a9,_0x55b1f7);if(_0x2977a5)return assertSupportedCommandFlags(_0x2977a5,_0x4fa914),{'definition':_0x2977a5,'rawFlags':_0x4fa914,'args':_0x395bc2[_0x35b144(0xa9)](0x2)};if(_0x30e3e2[_0x35b144(0xa2)])return{'definition':_0x30e3e2[_0x35b144(0xa2)],'rawFlags':_0x4fa914,'args':[_0x55b1f7,..._0x395bc2['slice'](0x2)]};throw CliErrors[_0x35b144(0x9b)](_0x55c6a9+'\x20'+_0x55b1f7);}
1
+ function a321_0x5044(_0x421864,_0x5262b0){_0x421864=_0x421864-0x14c;const _0x2147fb=a321_0x2147();let _0x50448a=_0x2147fb[_0x421864];return _0x50448a;}(function(_0x26239d,_0x56f5a9){const _0x56950e=a321_0x5044,_0x49b5a0=_0x26239d();while(!![]){try{const _0x49e199=-parseInt(_0x56950e(0x160))/0x1*(-parseInt(_0x56950e(0x15d))/0x2)+-parseInt(_0x56950e(0x15c))/0x3+parseInt(_0x56950e(0x14d))/0x4+-parseInt(_0x56950e(0x15e))/0x5+-parseInt(_0x56950e(0x14e))/0x6*(parseInt(_0x56950e(0x159))/0x7)+-parseInt(_0x56950e(0x155))/0x8*(parseInt(_0x56950e(0x15b))/0x9)+-parseInt(_0x56950e(0x154))/0xa*(-parseInt(_0x56950e(0x156))/0xb);if(_0x49e199===_0x56f5a9)break;else _0x49b5a0['push'](_0x49b5a0['shift']());}catch(_0x1d7a55){_0x49b5a0['push'](_0x49b5a0['shift']());}}}(a321_0x2147,0xb6511));import a321_0x1272e4 from'meow';function a321_0x2147(){const _0x499463=['join','10790073XkqvTG','791412sUZSqe','1261150eFWgie','5020220rwaGlR','hint','1snqWau','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','5413712GNoALy','12678GyNDIK','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','wildcardDef','defaultCommand','validation','unknownCommand','2040190gKLjet','8QXmapC','77jWWeUP','input','flags','658SdgrUc'];a321_0x2147=function(){return _0x499463;};return a321_0x2147();}import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';export async function resolveRabetbaseInvocation(_0x3a857b){const _0x1b26d6=a321_0x5044,_0x5b213c=a321_0x1272e4('',{'importMeta':import.meta,'argv':[..._0x3a857b],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x2e9fe0=[..._0x5b213c[_0x1b26d6(0x157)]],_0x2cb846=_0x5b213c[_0x1b26d6(0x158)],_0x20a107=_0x2e9fe0[0x0];if(!_0x20a107)throw CliErrors['validation']('Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.');const _0xddbd07=resolveRemovedCommand(_0x20a107,_0x2e9fe0[0x1]);if(_0xddbd07)throw CliErrors['validation'](_0xddbd07['message'],_0xddbd07[_0x1b26d6(0x15f)]);if(_0x20a107==='run')throw CliErrors['validation'](_0x1b26d6(0x14f),_0x1b26d6(0x14c));if(!isKnownService(_0x20a107))throw CliErrors[_0x1b26d6(0x153)](_0x2e9fe0[_0x1b26d6(0x15a)]('\x20'));const _0xc4e0dc=getServiceEntry(_0x20a107),_0x28d383=_0x2e9fe0[0x1],_0x51332f=_0x28d383||_0xc4e0dc[_0x1b26d6(0x151)];if(!_0x51332f){if(_0xc4e0dc[_0x1b26d6(0x150)])return{'definition':_0xc4e0dc[_0x1b26d6(0x150)],'rawFlags':_0x2cb846,'args':[]};throw CliErrors[_0x1b26d6(0x152)](_0x1b26d6(0x161)+_0x20a107+'\x22.');}const _0x41bc75=findDefinition(_0x20a107,_0x51332f);if(_0x41bc75)return assertSupportedCommandFlags(_0x41bc75,_0x2cb846),{'definition':_0x41bc75,'rawFlags':_0x2cb846,'args':_0x2e9fe0['slice'](0x2)};if(_0xc4e0dc[_0x1b26d6(0x150)])return{'definition':_0xc4e0dc['wildcardDef'],'rawFlags':_0x2cb846,'args':[_0x51332f,..._0x2e9fe0['slice'](0x2)]};throw CliErrors[_0x1b26d6(0x153)](_0x20a107+'\x20'+_0x51332f);}
@@ -1 +1 @@
1
- const a322_0x136cdc=a322_0x4c44;(function(_0xf423bd,_0x50fa56){const _0x5cc27a=a322_0x4c44,_0x15fc49=_0xf423bd();while(!![]){try{const _0x45d02c=-parseInt(_0x5cc27a(0x1dc))/0x1+parseInt(_0x5cc27a(0x1b3))/0x2+-parseInt(_0x5cc27a(0x1b0))/0x3+parseInt(_0x5cc27a(0x1ac))/0x4+-parseInt(_0x5cc27a(0x1a3))/0x5*(parseInt(_0x5cc27a(0x1c8))/0x6)+parseInt(_0x5cc27a(0x1b6))/0x7*(parseInt(_0x5cc27a(0x1ce))/0x8)+parseInt(_0x5cc27a(0x1a7))/0x9*(parseInt(_0x5cc27a(0x1a4))/0xa);if(_0x45d02c===_0x50fa56)break;else _0x15fc49['push'](_0x15fc49['shift']());}catch(_0x588bed){_0x15fc49['push'](_0x15fc49['shift']());}}}(a322_0x4990,0x39e6d));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{debuglog}from'node:util';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=a322_0x136cdc(0x1e2),SKILL_NAME=a322_0x136cdc(0x1c9),debug=debuglog(a322_0x136cdc(0x1e7));function frontmatterValue(_0x293df9,_0x4348a5){const _0x229b18=a322_0x136cdc;return _0x293df9['match'](new RegExp('^'+_0x4348a5+_0x229b18(0x1be),'m'))?.[0x1]?.[_0x229b18(0x1c2)]()??'';}function listFiles(_0x433487,_0x15135c=_0x433487){const _0x24dbc9=a322_0x136cdc;return readdirSync(_0x15135c,{'withFileTypes':!![]})[_0x24dbc9(0x1c4)](_0xa3c2bb=>{const _0xc75865=_0x24dbc9,_0x5cb35a=join(_0x15135c,_0xa3c2bb[_0xc75865(0x1e5)]),_0x352540=lstatSync(_0x5cb35a);if(_0x352540['isSymbolicLink']())throw new Error(_0xc75865(0x1d2)+_0x5cb35a);if(_0x352540['isDirectory']())return listFiles(_0x433487,_0x5cb35a);if(!_0x352540[_0xc75865(0x1cf)]())throw new Error(_0xc75865(0x1cc)+_0x5cb35a);return[relative(_0x433487,_0x5cb35a)['split'](sep)[_0xc75865(0x1bd)]('/')];})[_0x24dbc9(0x1d1)]((_0x3e6def,_0x530a0d)=>_0x3e6def<_0x530a0d?-0x1:_0x3e6def>_0x530a0d?0x1:0x0);}function digestFiles(_0xb52023,_0x4afb91){const _0x50cc73=a322_0x136cdc,_0x361f62=createHash(_0x50cc73(0x1db));for(const _0x37dbed of _0x4afb91){if(_0x37dbed[_0x50cc73(0x1da)]('/')||_0x37dbed[_0x50cc73(0x1bb)]('/')['includes']('..')||_0x37dbed[_0x50cc73(0x1a0)]('\x5c'))throw new Error(_0x50cc73(0x1b1)+_0x37dbed);_0x361f62[_0x50cc73(0x1a8)](_0x37dbed),_0x361f62[_0x50cc73(0x1a8)]('\x00'),_0x361f62[_0x50cc73(0x1a8)](readFileSync(join(_0xb52023,..._0x37dbed['split']('/')))),_0x361f62[_0x50cc73(0x1a8)]('\x00');}return _0x361f62['digest']('hex');}function sameFiles(_0x75b41f,_0x32ba90){const _0x476473=a322_0x136cdc;return _0x75b41f[_0x476473(0x1b7)]===_0x32ba90[_0x476473(0x1b7)]&&_0x75b41f['every']((_0x508bb9,_0x1d64b6)=>_0x508bb9===_0x32ba90[_0x1d64b6]);}function readSource(_0x16befb){const _0x4e5bea=a322_0x136cdc,_0x501380=JSON[_0x4e5bea(0x1b4)](readFileSync(join(_0x16befb,_0x4e5bea(0x1d9)),_0x4e5bea(0x1e9))),_0x329f65=JSON['parse'](readFileSync(join(_0x16befb,_0x4e5bea(0x1ca),'rabetbase.manifest.json'),'utf8')),_0x47612b=join(_0x16befb,_0x4e5bea(0x1ca),SKILL_NAME),_0x5df50d=frontmatterValue(readFileSync(join(_0x47612b,_0x4e5bea(0x1a1)),_0x4e5bea(0x1e9)),'version'),_0x58d3af=listFiles(_0x47612b);if(_0x329f65[_0x4e5bea(0x1b5)]!==0x1||_0x329f65['name']!==SKILL_NAME||!_0x501380[_0x4e5bea(0x1aa)]||_0x329f65[_0x4e5bea(0x1de)]!==_0x501380[_0x4e5bea(0x1aa)]||_0x329f65[_0x4e5bea(0x1ae)]!==_0x501380[_0x4e5bea(0x1aa)]||_0x5df50d!==_0x501380[_0x4e5bea(0x1aa)]||!sameFiles(_0x58d3af,_0x329f65['files'])||digestFiles(_0x47612b,_0x58d3af)!==_0x329f65['digest'])throw new Error(_0x4e5bea(0x1df));return{'packageVersion':_0x501380['version'],'skillVersion':_0x5df50d,'root':_0x47612b,'manifest':_0x329f65};}function installedSkillPath(_0x511d1e){const _0x50b366=a322_0x136cdc,_0x2fd63f=resolveInstalledSkill(SKILL_NAME,{'home':_0x511d1e});if(_0x2fd63f[_0x50b366(0x1d7)]===_0x50b366(0x1e1))return{'state':_0x50b366(0x1e1),'path':dirname(_0x2fd63f['path'])};if(_0x2fd63f[_0x50b366(0x1d7)]===_0x50b366(0x1bf))return{'state':'missing'};return{'state':_0x50b366(0x1d3),'reason':_0x2fd63f[_0x50b366(0x1ad)]};}export function inspectInstalledBuiltinSkillVersion(_0x3b2e1a,_0x4e9599={}){const _0x49a614=a322_0x136cdc,_0x333d20=installedSkillPath(_0x4e9599[_0x49a614(0x1e3)]??homedir());if(_0x333d20[_0x49a614(0x1d7)]==='missing')return{'state':_0x49a614(0x1b2),'expectedVersion':_0x3b2e1a,'repairCommand':REPAIR_COMMAND};if(_0x333d20[_0x49a614(0x1d7)]===_0x49a614(0x1d3))return{'state':_0x49a614(0x1d3),'expectedVersion':_0x3b2e1a,'reason':_0x333d20['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x1932a3=frontmatterValue(readFileSync(join(_0x333d20['path'],_0x49a614(0x1a1)),_0x49a614(0x1e9)),_0x49a614(0x1aa));return{'state':_0x1932a3===_0x3b2e1a?_0x49a614(0x1c7):_0x49a614(0x1c0),'expectedVersion':_0x3b2e1a,'skillVersion':_0x1932a3,'installedPath':_0x333d20[_0x49a614(0x1c5)],'repairCommand':REPAIR_COMMAND};}catch(_0x53b1d1){return{'state':_0x49a614(0x1d3),'expectedVersion':_0x3b2e1a,'installedPath':_0x333d20[_0x49a614(0x1c5)],'reason':_0x53b1d1 instanceof Error?_0x53b1d1['message']:String(_0x53b1d1),'repairCommand':REPAIR_COMMAND};}}function a322_0x4990(){const _0xbe1730=['pipe','15WCbDXv','51620PTSSzr','error','count','279aAhbIE','update','unknown','version','status','953044znbxEv','reason','skillVersion','message','1203579cJHKNu','Unsafe\x20manifest\x20path:\x20','missing','370504SkohzF','parse','schemaVersion','2953517fkcHFb','length','CLI\x20Built-in\x20Skill\x20','\x20verified;\x20','SOURCE_INVALID','split','partialFailure','join',':\x5cs*(.+)$','absent','version_mismatch','files','trim','VERIFY_FAILED','flatMap','path','skipped','current','53796VyhOGd','rabetbase','skills','\x20automatically\x20selected\x20installation\x20target(s)\x20could\x20not\x20be\x20installed.','Unsupported\x20Skill\x20entry:\x20','manifest','8YRLoZI','isFile','digest','sort','Symbolic\x20link\x20is\x20not\x20allowed:\x20','unverifiable','packageRoot','content_mismatch','Installer\x20reported\x20partial\x20target\x20failures:\x0a%s','state','Installed\x20Skill\x20state\x20is\x20','package.json','startsWith','sha256','340210ZRmVQa','root','packageVersion','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','output','present','rabetbase\x20cli-skill\x20install','home','INSTALL_FAILED','name','installedPath','rabetbase-skills','log','utf8','includes','SKILL.md'];a322_0x4990=function(){return _0xbe1730;};return a322_0x4990();}export function inspectBuiltinSkill(_0x5bfe34={}){const _0x201755=a322_0x136cdc,_0x2e4249=_0x5bfe34[_0x201755(0x1d4)]??DEFAULT_PACKAGE_ROOT;let _0x6293c7;try{_0x6293c7=readSource(_0x2e4249);}catch(_0x156739){return{'state':_0x201755(0x1d3),'packageVersion':'unknown','reason':_0x156739 instanceof Error?_0x156739['message']:String(_0x156739),'repairCommand':REPAIR_COMMAND};}const _0x3f387e=installedSkillPath(_0x5bfe34[_0x201755(0x1e3)]??homedir());if(_0x3f387e[_0x201755(0x1d7)]===_0x201755(0x1b2))return{'state':_0x201755(0x1b2),'packageVersion':_0x6293c7[_0x201755(0x1de)],'repairCommand':REPAIR_COMMAND};if(_0x3f387e['state']===_0x201755(0x1d3))return{'state':_0x201755(0x1d3),'packageVersion':_0x6293c7[_0x201755(0x1de)],'reason':_0x3f387e[_0x201755(0x1ad)],'repairCommand':REPAIR_COMMAND};try{const _0x36434d=frontmatterValue(readFileSync(join(_0x3f387e['path'],'SKILL.md'),_0x201755(0x1e9)),_0x201755(0x1aa));if(_0x36434d!==_0x6293c7['skillVersion'])return{'state':_0x201755(0x1c0),'packageVersion':_0x6293c7[_0x201755(0x1de)],'skillVersion':_0x36434d,'installedPath':_0x3f387e['path'],'repairCommand':REPAIR_COMMAND};const _0x5e08cc=listFiles(_0x3f387e[_0x201755(0x1c5)]),_0x4d8f74=digestFiles(_0x3f387e['path'],_0x5e08cc);return{'state':sameFiles(_0x5e08cc,_0x6293c7[_0x201755(0x1cd)][_0x201755(0x1c1)])&&_0x4d8f74===_0x6293c7[_0x201755(0x1cd)][_0x201755(0x1d0)]?_0x201755(0x1c7):_0x201755(0x1d5),'packageVersion':_0x6293c7[_0x201755(0x1de)],'skillVersion':_0x36434d,'installedPath':_0x3f387e['path'],'digest':_0x4d8f74,'repairCommand':REPAIR_COMMAND};}catch(_0x558203){return{'state':'unverifiable','packageVersion':_0x6293c7[_0x201755(0x1de)],'installedPath':_0x3f387e[_0x201755(0x1c5)],'reason':_0x558203 instanceof Error?_0x558203['message']:String(_0x558203),'repairCommand':REPAIR_COMMAND};}}function a322_0x4c44(_0x27667f,_0x3644c9){_0x27667f=_0x27667f-0x1a0;const _0x49907d=a322_0x4990();let _0x4c4447=_0x49907d[_0x27667f];return _0x4c4447;}function failure(_0x41a57a,_0x321ef4,_0x1966f0,_0x164f5b){const _0x370049=a322_0x136cdc;return{'ok':![],'code':_0x41a57a,'packageVersion':_0x321ef4[_0x370049(0x1de)],'skillVersion':_0x321ef4[_0x370049(0x1ae)],'installedPath':_0x164f5b,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x1966f0 instanceof Error?_0x1966f0[_0x370049(0x1af)]:String(_0x1966f0)};}export function installBuiltinSkill(_0x4c0bec={}){const _0x4e32cf=a322_0x136cdc,_0x3746ed=_0x4c0bec[_0x4e32cf(0x1d4)]??DEFAULT_PACKAGE_ROOT,_0x1ed05d=_0x4c0bec[_0x4e32cf(0x1e3)]??homedir();let _0x1dcecf;try{_0x1dcecf=readSource(_0x3746ed);}catch(_0x24926){return failure(_0x4e32cf(0x1ba),{'packageVersion':_0x4e32cf(0x1a9),'skillVersion':_0x4e32cf(0x1a9)},_0x24926);}const _0x470750=inspectBuiltinSkill({'packageRoot':_0x3746ed,'home':_0x1ed05d}),_0x38f78f=runNpxSkillsAddGlobal(_0x3746ed,_0x1dcecf[_0x4e32cf(0x1dd)],{'stdio':_0x4c0bec['stdio']??_0x4e32cf(0x1a2),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x1ed05d}});if(_0x38f78f[_0x4e32cf(0x1c6)])return{'ok':!![],'packageVersion':_0x1dcecf[_0x4e32cf(0x1de)],'skillVersion':_0x1dcecf['skillVersion'],'installedPath':_0x470750[_0x4e32cf(0x1e6)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x38f78f['ok'])return failure(_0x4e32cf(0x1e4),_0x1dcecf,_0x38f78f[_0x4e32cf(0x1a5)]??'skills@latest\x20exited\x20'+_0x38f78f[_0x4e32cf(0x1ab)]);const _0x11c78f=inspectBuiltinSkill({'packageRoot':_0x3746ed,'home':_0x1ed05d});if(_0x11c78f[_0x4e32cf(0x1d7)]!==_0x4e32cf(0x1c7)){const _0x3ab1c1=_0x11c78f[_0x4e32cf(0x1ad)]??_0x4e32cf(0x1d8)+_0x11c78f['state'];return failure(_0x4e32cf(0x1c3),_0x1dcecf,_0x38f78f[_0x4e32cf(0x1bc)]?_0x3ab1c1+'\x0a'+_0x38f78f[_0x4e32cf(0x1bc)][_0x4e32cf(0x1e0)]:_0x3ab1c1,_0x11c78f['installedPath']);}return _0x38f78f[_0x4e32cf(0x1bc)]&&(debug(_0x4e32cf(0x1d6),_0x38f78f[_0x4e32cf(0x1bc)][_0x4e32cf(0x1e0)]),console[_0x4e32cf(0x1e8)](_0x4e32cf(0x1b8)+_0x1dcecf[_0x4e32cf(0x1ae)]+_0x4e32cf(0x1b9)+_0x38f78f[_0x4e32cf(0x1bc)][_0x4e32cf(0x1a6)]+_0x4e32cf(0x1cb))),{'ok':!![],'packageVersion':_0x1dcecf[_0x4e32cf(0x1de)],'skillVersion':_0x1dcecf[_0x4e32cf(0x1ae)],'installedPath':_0x11c78f[_0x4e32cf(0x1e6)],'changed':_0x470750[_0x4e32cf(0x1d7)]!==_0x4e32cf(0x1c7),'repairCommand':REPAIR_COMMAND};}
1
+ const a323_0x46f6f0=a323_0xf07e;(function(_0x3d5b74,_0x5e2b81){const _0x52b4ab=a323_0xf07e,_0x55d21a=_0x3d5b74();while(!![]){try{const _0x1e4086=-parseInt(_0x52b4ab(0x1e6))/0x1*(parseInt(_0x52b4ab(0x203))/0x2)+parseInt(_0x52b4ab(0x20d))/0x3+-parseInt(_0x52b4ab(0x20c))/0x4*(-parseInt(_0x52b4ab(0x209))/0x5)+-parseInt(_0x52b4ab(0x1e7))/0x6*(-parseInt(_0x52b4ab(0x20f))/0x7)+-parseInt(_0x52b4ab(0x226))/0x8+parseInt(_0x52b4ab(0x1fa))/0x9+-parseInt(_0x52b4ab(0x20b))/0xa*(parseInt(_0x52b4ab(0x224))/0xb);if(_0x1e4086===_0x5e2b81)break;else _0x55d21a['push'](_0x55d21a['shift']());}catch(_0x282545){_0x55d21a['push'](_0x55d21a['shift']());}}}(a323_0x431a,0x91443));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{debuglog}from'node:util';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';function a323_0xf07e(_0xb7c37e,_0x79ca0d){_0xb7c37e=_0xb7c37e-0x1e3;const _0x431ab5=a323_0x431a();let _0xf07ed7=_0x431ab5[_0xb7c37e];return _0xf07ed7;}import{resolveInstalledSkill}from'../skills/skill-presence.js';function a323_0x431a(){const _0x199b04=['output','Installer\x20reported\x20partial\x20target\x20failures:\x0a%s','reason','join','Symbolic\x20link\x20is\x20not\x20allowed:\x20','VERIFY_FAILED','startsWith','202euHffl','files','\x20automatically\x20selected\x20installation\x20target(s)\x20could\x20not\x20be\x20installed.','skills@latest\x20exited\x20','root','flatMap','345atsyAD','count','470CoZdYO','38312GKHIjU','2551935dURBzj','Installed\x20Skill\x20state\x20is\x20','553210jeHYkt','update','missing','every','skillVersion','version','Unsupported\x20Skill\x20entry:\x20','unverifiable','skills','isSymbolicLink','trim','present','hex','isDirectory','status','sort','home','error','utf8','SKILL.md','digest','399091ihLvoB','length','4475272gUgGBo','schemaVersion','packageRoot','version_mismatch','path','message','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','parse','7234kzbZnx','84hgKLTw','rabetbase','content_mismatch','current','pipe','split','name','rabetbase\x20cli-skill\x20install','partialFailure','state','includes','packageVersion','rabetbase.manifest.json',':\x5cs*(.+)$','\x20verified;\x20','installedPath','match','unknown','stdio','8750826dvafak','package.json'];a323_0x431a=function(){return _0x199b04;};return a323_0x431a();}const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a323_0x46f6f0(0x1ee),SKILL_NAME=a323_0x46f6f0(0x1e8),debug=debuglog('rabetbase-skills');function frontmatterValue(_0x5e6f9d,_0x444afc){const _0x254cb5=a323_0x46f6f0;return _0x5e6f9d[_0x254cb5(0x1f7)](new RegExp('^'+_0x444afc+_0x254cb5(0x1f4),'m'))?.[0x1]?.[_0x254cb5(0x219)]()??'';}function listFiles(_0x13e11e,_0x4bb5f0=_0x13e11e){const _0x24bbac=a323_0x46f6f0;return readdirSync(_0x4bb5f0,{'withFileTypes':!![]})[_0x24bbac(0x208)](_0x16cd02=>{const _0xc025e1=_0x24bbac,_0x464033=join(_0x4bb5f0,_0x16cd02[_0xc025e1(0x1ed)]),_0xcc1f9e=lstatSync(_0x464033);if(_0xcc1f9e[_0xc025e1(0x218)]())throw new Error(_0xc025e1(0x200)+_0x464033);if(_0xcc1f9e[_0xc025e1(0x21c)]())return listFiles(_0x13e11e,_0x464033);if(!_0xcc1f9e['isFile']())throw new Error(_0xc025e1(0x215)+_0x464033);return[relative(_0x13e11e,_0x464033)[_0xc025e1(0x1ec)](sep)[_0xc025e1(0x1ff)]('/')];})[_0x24bbac(0x21e)]((_0x3402d9,_0x14056e)=>_0x3402d9<_0x14056e?-0x1:_0x3402d9>_0x14056e?0x1:0x0);}function digestFiles(_0x4008b4,_0x202015){const _0x49b9ae=a323_0x46f6f0,_0xbbfa19=createHash('sha256');for(const _0x14d034 of _0x202015){if(_0x14d034[_0x49b9ae(0x202)]('/')||_0x14d034[_0x49b9ae(0x1ec)]('/')[_0x49b9ae(0x1f1)]('..')||_0x14d034[_0x49b9ae(0x1f1)]('\x5c'))throw new Error('Unsafe\x20manifest\x20path:\x20'+_0x14d034);_0xbbfa19[_0x49b9ae(0x210)](_0x14d034),_0xbbfa19[_0x49b9ae(0x210)]('\x00'),_0xbbfa19['update'](readFileSync(join(_0x4008b4,..._0x14d034[_0x49b9ae(0x1ec)]('/')))),_0xbbfa19['update']('\x00');}return _0xbbfa19[_0x49b9ae(0x223)](_0x49b9ae(0x21b));}function sameFiles(_0x43613a,_0x3c3f40){const _0x51c31a=a323_0x46f6f0;return _0x43613a[_0x51c31a(0x225)]===_0x3c3f40['length']&&_0x43613a[_0x51c31a(0x212)]((_0x1714f1,_0x40683b)=>_0x1714f1===_0x3c3f40[_0x40683b]);}function readSource(_0x5e798e){const _0x4d8c1c=a323_0x46f6f0,_0x1d7dad=JSON['parse'](readFileSync(join(_0x5e798e,_0x4d8c1c(0x1fb)),_0x4d8c1c(0x221))),_0x3b6803=JSON[_0x4d8c1c(0x1e5)](readFileSync(join(_0x5e798e,_0x4d8c1c(0x217),_0x4d8c1c(0x1f3)),_0x4d8c1c(0x221))),_0x122018=join(_0x5e798e,_0x4d8c1c(0x217),SKILL_NAME),_0x5982f7=frontmatterValue(readFileSync(join(_0x122018,_0x4d8c1c(0x222)),_0x4d8c1c(0x221)),_0x4d8c1c(0x214)),_0x425785=listFiles(_0x122018);if(_0x3b6803[_0x4d8c1c(0x227)]!==0x1||_0x3b6803[_0x4d8c1c(0x1ed)]!==SKILL_NAME||!_0x1d7dad[_0x4d8c1c(0x214)]||_0x3b6803['packageVersion']!==_0x1d7dad['version']||_0x3b6803[_0x4d8c1c(0x213)]!==_0x1d7dad[_0x4d8c1c(0x214)]||_0x5982f7!==_0x1d7dad[_0x4d8c1c(0x214)]||!sameFiles(_0x425785,_0x3b6803[_0x4d8c1c(0x204)])||digestFiles(_0x122018,_0x425785)!==_0x3b6803['digest'])throw new Error(_0x4d8c1c(0x1e4));return{'packageVersion':_0x1d7dad[_0x4d8c1c(0x214)],'skillVersion':_0x5982f7,'root':_0x122018,'manifest':_0x3b6803};}function installedSkillPath(_0x11ca18){const _0x54468a=a323_0x46f6f0,_0x5657d8=resolveInstalledSkill(SKILL_NAME,{'home':_0x11ca18});if(_0x5657d8[_0x54468a(0x1f0)]===_0x54468a(0x21a))return{'state':_0x54468a(0x21a),'path':dirname(_0x5657d8[_0x54468a(0x22a)])};if(_0x5657d8[_0x54468a(0x1f0)]==='absent')return{'state':'missing'};return{'state':'unverifiable','reason':_0x5657d8[_0x54468a(0x1fe)]};}export function inspectInstalledBuiltinSkillVersion(_0x1714b5,_0x707a6={}){const _0x26fda1=a323_0x46f6f0,_0xc5fb8e=installedSkillPath(_0x707a6[_0x26fda1(0x21f)]??homedir());if(_0xc5fb8e['state']===_0x26fda1(0x211))return{'state':_0x26fda1(0x211),'expectedVersion':_0x1714b5,'repairCommand':REPAIR_COMMAND};if(_0xc5fb8e[_0x26fda1(0x1f0)]===_0x26fda1(0x216))return{'state':_0x26fda1(0x216),'expectedVersion':_0x1714b5,'reason':_0xc5fb8e[_0x26fda1(0x1fe)],'repairCommand':REPAIR_COMMAND};try{const _0x453a9d=frontmatterValue(readFileSync(join(_0xc5fb8e[_0x26fda1(0x22a)],'SKILL.md'),_0x26fda1(0x221)),_0x26fda1(0x214));return{'state':_0x453a9d===_0x1714b5?_0x26fda1(0x1ea):'version_mismatch','expectedVersion':_0x1714b5,'skillVersion':_0x453a9d,'installedPath':_0xc5fb8e[_0x26fda1(0x22a)],'repairCommand':REPAIR_COMMAND};}catch(_0x84b581){return{'state':_0x26fda1(0x216),'expectedVersion':_0x1714b5,'installedPath':_0xc5fb8e[_0x26fda1(0x22a)],'reason':_0x84b581 instanceof Error?_0x84b581[_0x26fda1(0x1e3)]:String(_0x84b581),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x5104d7={}){const _0x54db35=a323_0x46f6f0,_0x2f4906=_0x5104d7[_0x54db35(0x228)]??DEFAULT_PACKAGE_ROOT;let _0x1c5989;try{_0x1c5989=readSource(_0x2f4906);}catch(_0x5eaa56){return{'state':_0x54db35(0x216),'packageVersion':_0x54db35(0x1f8),'reason':_0x5eaa56 instanceof Error?_0x5eaa56[_0x54db35(0x1e3)]:String(_0x5eaa56),'repairCommand':REPAIR_COMMAND};}const _0xb42dd7=installedSkillPath(_0x5104d7[_0x54db35(0x21f)]??homedir());if(_0xb42dd7[_0x54db35(0x1f0)]===_0x54db35(0x211))return{'state':_0x54db35(0x211),'packageVersion':_0x1c5989[_0x54db35(0x1f2)],'repairCommand':REPAIR_COMMAND};if(_0xb42dd7[_0x54db35(0x1f0)]===_0x54db35(0x216))return{'state':_0x54db35(0x216),'packageVersion':_0x1c5989['packageVersion'],'reason':_0xb42dd7[_0x54db35(0x1fe)],'repairCommand':REPAIR_COMMAND};try{const _0x5aed05=frontmatterValue(readFileSync(join(_0xb42dd7['path'],'SKILL.md'),_0x54db35(0x221)),'version');if(_0x5aed05!==_0x1c5989[_0x54db35(0x213)])return{'state':_0x54db35(0x229),'packageVersion':_0x1c5989[_0x54db35(0x1f2)],'skillVersion':_0x5aed05,'installedPath':_0xb42dd7['path'],'repairCommand':REPAIR_COMMAND};const _0x538a55=listFiles(_0xb42dd7[_0x54db35(0x22a)]),_0x543353=digestFiles(_0xb42dd7[_0x54db35(0x22a)],_0x538a55);return{'state':sameFiles(_0x538a55,_0x1c5989['manifest']['files'])&&_0x543353===_0x1c5989['manifest'][_0x54db35(0x223)]?_0x54db35(0x1ea):_0x54db35(0x1e9),'packageVersion':_0x1c5989[_0x54db35(0x1f2)],'skillVersion':_0x5aed05,'installedPath':_0xb42dd7['path'],'digest':_0x543353,'repairCommand':REPAIR_COMMAND};}catch(_0x3a7f03){return{'state':_0x54db35(0x216),'packageVersion':_0x1c5989[_0x54db35(0x1f2)],'installedPath':_0xb42dd7[_0x54db35(0x22a)],'reason':_0x3a7f03 instanceof Error?_0x3a7f03[_0x54db35(0x1e3)]:String(_0x3a7f03),'repairCommand':REPAIR_COMMAND};}}function failure(_0x44f17d,_0x4853f1,_0x22a6c2,_0x290c9a){const _0x150fc1=a323_0x46f6f0;return{'ok':![],'code':_0x44f17d,'packageVersion':_0x4853f1[_0x150fc1(0x1f2)],'skillVersion':_0x4853f1['skillVersion'],'installedPath':_0x290c9a,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x22a6c2 instanceof Error?_0x22a6c2['message']:String(_0x22a6c2)};}export function installBuiltinSkill(_0x2ba271={}){const _0x1892ff=a323_0x46f6f0,_0xe11b4=_0x2ba271[_0x1892ff(0x228)]??DEFAULT_PACKAGE_ROOT,_0x20431b=_0x2ba271['home']??homedir();let _0x46917d;try{_0x46917d=readSource(_0xe11b4);}catch(_0x435154){return failure('SOURCE_INVALID',{'packageVersion':_0x1892ff(0x1f8),'skillVersion':'unknown'},_0x435154);}const _0x54ca42=inspectBuiltinSkill({'packageRoot':_0xe11b4,'home':_0x20431b}),_0x158eeb=runNpxSkillsAddGlobal(_0xe11b4,_0x46917d[_0x1892ff(0x207)],{'stdio':_0x2ba271[_0x1892ff(0x1f9)]??_0x1892ff(0x1eb),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x20431b}});if(_0x158eeb['skipped'])return{'ok':!![],'packageVersion':_0x46917d['packageVersion'],'skillVersion':_0x46917d[_0x1892ff(0x213)],'installedPath':_0x54ca42['installedPath'],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x158eeb['ok'])return failure('INSTALL_FAILED',_0x46917d,_0x158eeb[_0x1892ff(0x220)]??_0x1892ff(0x206)+_0x158eeb[_0x1892ff(0x21d)]);const _0x1c680e=inspectBuiltinSkill({'packageRoot':_0xe11b4,'home':_0x20431b});if(_0x1c680e[_0x1892ff(0x1f0)]!==_0x1892ff(0x1ea)){const _0x53d669=_0x1c680e[_0x1892ff(0x1fe)]??_0x1892ff(0x20e)+_0x1c680e[_0x1892ff(0x1f0)];return failure(_0x1892ff(0x201),_0x46917d,_0x158eeb[_0x1892ff(0x1ef)]?_0x53d669+'\x0a'+_0x158eeb[_0x1892ff(0x1ef)][_0x1892ff(0x1fc)]:_0x53d669,_0x1c680e[_0x1892ff(0x1f6)]);}return _0x158eeb[_0x1892ff(0x1ef)]&&(debug(_0x1892ff(0x1fd),_0x158eeb[_0x1892ff(0x1ef)][_0x1892ff(0x1fc)]),console['log']('CLI\x20Built-in\x20Skill\x20'+_0x46917d[_0x1892ff(0x213)]+_0x1892ff(0x1f5)+_0x158eeb[_0x1892ff(0x1ef)][_0x1892ff(0x20a)]+_0x1892ff(0x205))),{'ok':!![],'packageVersion':_0x46917d[_0x1892ff(0x1f2)],'skillVersion':_0x46917d['skillVersion'],'installedPath':_0x1c680e[_0x1892ff(0x1f6)],'changed':_0x54ca42[_0x1892ff(0x1f0)]!==_0x1892ff(0x1ea),'repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
1
- (function(_0x1355ed,_0x351998){const _0x2c98f5=a323_0x43e0,_0x4ca2a8=_0x1355ed();while(!![]){try{const _0x469329=-parseInt(_0x2c98f5(0x1ca))/0x1*(parseInt(_0x2c98f5(0x1d3))/0x2)+parseInt(_0x2c98f5(0x1ec))/0x3*(parseInt(_0x2c98f5(0x1e1))/0x4)+parseInt(_0x2c98f5(0x1c9))/0x5*(parseInt(_0x2c98f5(0x1d0))/0x6)+-parseInt(_0x2c98f5(0x1de))/0x7+parseInt(_0x2c98f5(0x1d8))/0x8+parseInt(_0x2c98f5(0x1cf))/0x9*(-parseInt(_0x2c98f5(0x1ce))/0xa)+parseInt(_0x2c98f5(0x1df))/0xb*(parseInt(_0x2c98f5(0x1e8))/0xc);if(_0x469329===_0x351998)break;else _0x4ca2a8['push'](_0x4ca2a8['shift']());}catch(_0x59f6cd){_0x4ca2a8['push'](_0x4ca2a8['shift']());}}}(a323_0x31f5,0x8f006));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(_0x37d8b6){const _0x2489cb=a323_0x43e0,_0x293dcc=[];for(const [_0x178a8e,_0x4a1f8a]of Object[_0x2489cb(0x1e2)](_0x37d8b6)){if(_0x4a1f8a===!![]){const _0x4c467c=_0x178a8e['replace'](/([A-Z])/g,'-$1')[_0x2489cb(0x1db)]();_0x293dcc[_0x2489cb(0x1d2)](_0x4c467c);}}return _0x293dcc;}export function parseDynamicFlags(){const _0x111571=a323_0x43e0,_0x3e8401=[];for(let _0x2a86c2=0x3;_0x2a86c2<process['argv'][_0x111571(0x1c8)];_0x2a86c2++){const _0x2cba1e=process[_0x111571(0x1cc)][_0x2a86c2];if(_0x2cba1e&&_0x2cba1e[_0x111571(0x1e5)]('--')){const _0x2c16b4=_0x2cba1e[_0x111571(0x1da)](0x2);_0x2c16b4&&!_0x2c16b4[_0x111571(0x1dd)]('=')&&_0x3e8401['push'](_0x2c16b4);}}return _0x3e8401;}export function getAllProvidedFlags(_0x1edec6){const _0x24d7ac=a323_0x43e0,_0x4d6f40=camelCaseFlagsToKebab(_0x1edec6),_0xf6d657=parseDynamicFlags(),_0x2c2d0e=new Set([..._0x4d6f40,..._0xf6d657]);return Array[_0x24d7ac(0x1e6)](_0x2c2d0e);}function a323_0x31f5(){const _0x32b1f2=['\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','dangerously-bff-save','has','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','3330240fYVwGv','cwd','slice','toLowerCase','--help','includes','1670634ZNoIWe','293557lYdoHi','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','130220RrBfoi','entries','Error:\x20Unsupported\x20command:\x20','Unsupported\x20command:\x20','startsWith','from','help','216dZXxqX','setLogPath','(empty)','\x0aAvailable\x20commands:','39bRiNNt','length','35YpPtIV','5946KwaNdz','log','argv','exit','280ttqxix','50238dJZGgN','514542FnUUVm','Public\x20Open\x20Skill\x20source:\x20','push','316hRAtZc'];a323_0x31f5=function(){return _0x32b1f2;};return a323_0x31f5();}export function normalizeLegacyBffSaveFlags(_0x131ccc){const _0x4a0cf8=a323_0x43e0,_0x1d00aa=new Set(_0x131ccc);return _0x1d00aa[_0x4a0cf8(0x1d6)](_0x4a0cf8(0x1d5))&&_0x1d00aa['add']('enable-bff-save'),Array[_0x4a0cf8(0x1e6)](_0x1d00aa);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a323_0x43e0(_0x4e08a7,_0x5c0ebb){_0x4e08a7=_0x4e08a7-0x1c8;const _0x31f5b7=a323_0x31f5();let _0x43e0e8=_0x31f5b7[_0x4e08a7];return _0x43e0e8;}export async function skillsCommand(_0x3c19ed,_0x285638,_0x2f598){const _0x42788a=a323_0x43e0;logger[_0x42788a(0x1e9)](process[_0x42788a(0x1d9)]());if(_0x2f598?.[_0x42788a(0x1e7)]||_0x3c19ed===_0x42788a(0x1dc)){showHelp();return;}console['error'](_0x42788a(0x1e3)+(_0x3c19ed||_0x42788a(0x1ea))),console['log'](_0x42788a(0x1eb)),console[_0x42788a(0x1cb)]('\x20\x20'+CLI_BIN_NAME+_0x42788a(0x1d7)),console[_0x42788a(0x1cb)](''),console[_0x42788a(0x1cb)](_0x42788a(0x1d1)+SKILLS_INSTALL_COMMAND_LINE),logger['error']('skill',_0x42788a(0x1e4)+_0x3c19ed),process[_0x42788a(0x1cd)](0x1);}function showHelp(){const _0x4d77e1=a323_0x43e0;console[_0x4d77e1(0x1cb)](_0x4d77e1(0x1d4)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x4d77e1(0x1e0));}
1
+ (function(_0xc2bed5,_0x43a4e5){const _0x1c8bec=a324_0x47f8,_0xe449b7=_0xc2bed5();while(!![]){try{const _0x1d5e6c=parseInt(_0x1c8bec(0x1b5))/0x1+parseInt(_0x1c8bec(0x1c1))/0x2*(parseInt(_0x1c8bec(0x1bd))/0x3)+-parseInt(_0x1c8bec(0x1b6))/0x4*(-parseInt(_0x1c8bec(0x1ae))/0x5)+parseInt(_0x1c8bec(0x1be))/0x6*(parseInt(_0x1c8bec(0x1a5))/0x7)+-parseInt(_0x1c8bec(0x1b4))/0x8+parseInt(_0x1c8bec(0x1a4))/0x9+-parseInt(_0x1c8bec(0x1ab))/0xa*(parseInt(_0x1c8bec(0x1b2))/0xb);if(_0x1d5e6c===_0x43a4e5)break;else _0xe449b7['push'](_0xe449b7['shift']());}catch(_0x31b7ec){_0xe449b7['push'](_0xe449b7['shift']());}}}(a324_0xa0f4,0x73302));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(_0x4ee390){const _0xdc3327=a324_0x47f8,_0x426fa5=[];for(const [_0x3ad1b9,_0x4a887d]of Object['entries'](_0x4ee390)){if(_0x4a887d===!![]){const _0x30d5fe=_0x3ad1b9[_0xdc3327(0x1aa)](/([A-Z])/g,'-$1')[_0xdc3327(0x1a2)]();_0x426fa5[_0xdc3327(0x19f)](_0x30d5fe);}}return _0x426fa5;}function a324_0x47f8(_0x419fe5,_0x1d5116){_0x419fe5=_0x419fe5-0x19d;const _0xa0f42=a324_0xa0f4();let _0x47f823=_0xa0f42[_0x419fe5];return _0x47f823;}export function parseDynamicFlags(){const _0xb9d378=a324_0x47f8,_0x24809b=[];for(let _0x5d49d5=0x3;_0x5d49d5<process[_0xb9d378(0x1ba)]['length'];_0x5d49d5++){const _0xaada50=process[_0xb9d378(0x1ba)][_0x5d49d5];if(_0xaada50&&_0xaada50[_0xb9d378(0x1ad)]('--')){const _0x2cf779=_0xaada50[_0xb9d378(0x1b9)](0x2);_0x2cf779&&!_0x2cf779[_0xb9d378(0x1c0)]('=')&&_0x24809b['push'](_0x2cf779);}}return _0x24809b;}export function getAllProvidedFlags(_0x1531d2){const _0x24838c=camelCaseFlagsToKebab(_0x1531d2),_0x2c0d1f=parseDynamicFlags(),_0x3d766d=new Set([..._0x24838c,..._0x2c0d1f]);return Array['from'](_0x3d766d);}export function normalizeLegacyBffSaveFlags(_0x2e5d74){const _0x33c59f=a324_0x47f8,_0x3d6ea5=new Set(_0x2e5d74);return _0x3d6ea5['has']('dangerously-bff-save')&&_0x3d6ea5[_0x33c59f(0x1a6)](_0x33c59f(0x1b7)),Array[_0x33c59f(0x1a1)](_0x3d6ea5);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a324_0xa0f4(){const _0x11363f=['6185382UcqJoX','add','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','cwd','help','replace','10pkKzly','--help','startsWith','8705rHOXEO','\x0aAvailable\x20commands:','log','exit','11771287lLLzRN','skill','3933360BDxVoM','548944omqCjK','28ZhFUMj','enable-bff-save','Error:\x20Unsupported\x20command:\x20','slice','argv','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','setLogPath','15pGrXhL','6PWaHyY','error','includes','162312WyItMp','Unsupported\x20command:\x20','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','push','(empty)','from','toLowerCase','Public\x20Open\x20Skill\x20source:\x20','1647540gUfKPW'];a324_0xa0f4=function(){return _0x11363f;};return a324_0xa0f4();}export async function skillsCommand(_0x1678c6,_0x1deedc,_0x473c84){const _0x4d540a=a324_0x47f8;logger[_0x4d540a(0x1bc)](process[_0x4d540a(0x1a8)]());if(_0x473c84?.[_0x4d540a(0x1a9)]||_0x1678c6===_0x4d540a(0x1ac)){showHelp();return;}console[_0x4d540a(0x1bf)](_0x4d540a(0x1b8)+(_0x1678c6||_0x4d540a(0x1a0))),console['log'](_0x4d540a(0x1af)),console[_0x4d540a(0x1b0)]('\x20\x20'+CLI_BIN_NAME+_0x4d540a(0x19e)),console['log'](''),console[_0x4d540a(0x1b0)](_0x4d540a(0x1a3)+SKILLS_INSTALL_COMMAND_LINE),logger['error'](_0x4d540a(0x1b3),_0x4d540a(0x19d)+_0x1678c6),process[_0x4d540a(0x1b1)](0x1);}function showHelp(){const _0x6f9e42=a324_0x47f8;console[_0x6f9e42(0x1b0)]('\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x6f9e42(0x1bb)+SKILLS_INSTALL_COMMAND_LINE+_0x6f9e42(0x1a7));}
@@ -1 +1 @@
1
- const a324_0x48a031=a324_0x45c4;(function(_0x14fa9e,_0x4ce47e){const _0x22f183=a324_0x45c4,_0x412d86=_0x14fa9e();while(!![]){try{const _0x13f2cf=parseInt(_0x22f183(0x127))/0x1*(parseInt(_0x22f183(0x11d))/0x2)+parseInt(_0x22f183(0x13b))/0x3*(parseInt(_0x22f183(0x136))/0x4)+parseInt(_0x22f183(0x13c))/0x5*(-parseInt(_0x22f183(0x110))/0x6)+parseInt(_0x22f183(0x11f))/0x7*(-parseInt(_0x22f183(0x142))/0x8)+-parseInt(_0x22f183(0x12a))/0x9*(-parseInt(_0x22f183(0x114))/0xa)+-parseInt(_0x22f183(0x130))/0xb+parseInt(_0x22f183(0x12e))/0xc;if(_0x13f2cf===_0x4ce47e)break;else _0x412d86['push'](_0x412d86['shift']());}catch(_0x225951){_0x412d86['push'](_0x412d86['shift']());}}}(a324_0x31f7,0xd105e));import{execaSync}from'execa';import{resolveInstalledSkill}from'../skills/skill-presence.js';function a324_0x45c4(_0x173d33,_0x1202ac){_0x173d33=_0x173d33-0x10f;const _0x31f790=a324_0x31f7();let _0x45c47c=_0x31f790[_0x173d33];return _0x45c47c;}export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a324_0x48a031(0x12b);export const NPX_SKILLS_SUBCOMMAND_ADD=a324_0x48a031(0x111);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a324_0x48a031(0x145);export const RABETBASE_GLOBAL_SKILL_NAME=a324_0x48a031(0x134);function a324_0x31f7(){const _0x24729c=['state','signal','presence','1682958jmvaEI','unverifiable','747145qeAxnc','stdout','INSTALL_PARTIAL','warn','push','pipe','ENOENT','message','1hLnhnj','PERMISSION_DENIED','CHILD_EXIT_NONZERO','1908ByKfCH','skills@latest','unknown','EPERM','8380416NVEncL','code','10004005qyhvoZ','log','present','npx','rabetbase','filter','1215176RIQvZu','partialFailure','exit\x20','join','CHILD_TERMINATED','15NsaGTz','1159825BvQHjV','exitCode','npm_config_global','failed','Installer\x20reported\x20','SKILL_NOT_INSTALLED','80PCkpPk','match','SPAWN_FAILED','lovrabet/rabetbase','expectedSkillName','12HJEBiO','add','stdio','npx\x20failed\x20to\x20start','11230ethQCP','shortMessage','trim','inherit','NPX_NOT_FOUND','skill'];a324_0x31f7=function(){return _0x24729c;};return a324_0x31f7();}export const RABETBASE_SKILL_GIT_SOURCE='git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git';export function resolveGlobalSkillName(_0x461da8){switch(_0x461da8['trim']()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x1d087b){const _0x3752e5=a324_0x48a031,_0xd2c18f=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x1d087b&&_0xd2c18f[_0x3752e5(0x123)](NPX_SKILLS_FLAG_SKILL,_0x1d087b),_0xd2c18f;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()][a324_0x48a031(0x139)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a324_0x48a031(0x133),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a324_0x48a031(0x139)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x50fddd,_0x2e676c,_0xc352e6){return{'ok':![],'status':_0x2e676c,'code':_0x50fddd,'error':'['+_0x50fddd+']\x20'+_0xc352e6};}function execaOptions(_0xc78c0e,_0x2ad897){const _0x541ab8=a324_0x48a031,_0x3ddd76={...process.env};return delete _0x3ddd76[_0x541ab8(0x13e)],delete _0x3ddd76['NPM_CONFIG_GLOBAL'],{'cwd':_0xc78c0e,'stdio':_0x2ad897,'env':_0x3ddd76,'extendEnv':![],'shell':![],'reject':![],..._0x2ad897===_0x541ab8(0x124)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeExecaResult(_0x3464a1,_0x24e233,_0x57afad){const _0x401a15=a324_0x48a031,_0x59d291=[_0x3464a1['stdout']?String(_0x3464a1[_0x401a15(0x120)]):'',_0x3464a1['stderr']?String(_0x3464a1['stderr']):'']['filter'](Boolean)['join']('\x0a')[_0x401a15(0x116)](),_0x2f51bd=_0x3464a1[_0x401a15(0x13d)]??null;if(_0x3464a1[_0x401a15(0x12f)]){const _0x820ef7=_0x3464a1[_0x401a15(0x12f)]===_0x401a15(0x125)?_0x401a15(0x118):_0x3464a1[_0x401a15(0x12f)]===_0x401a15(0x12d)||_0x3464a1[_0x401a15(0x12f)]==='EACCES'?_0x401a15(0x128):'SPAWN_FAILED';return failure(_0x820ef7,_0x2f51bd,_0x3464a1[_0x401a15(0x115)]??_0x3464a1[_0x401a15(0x126)]??_0x3464a1[_0x401a15(0x12f)]);}if(_0x3464a1[_0x401a15(0x11b)])return failure(_0x401a15(0x13a),_0x2f51bd,'npx\x20terminated\x20by\x20signal\x20'+_0x3464a1[_0x401a15(0x11b)]);if(_0x3464a1[_0x401a15(0x13f)]&&_0x2f51bd===null)return failure(_0x401a15(0x144),_0x2f51bd,_0x3464a1['shortMessage']??_0x3464a1[_0x401a15(0x126)]??_0x401a15(0x113));if(_0x2f51bd!==0x0)return failure(_0x401a15(0x129),_0x2f51bd,_0x59d291||_0x3464a1[_0x401a15(0x115)]||_0x401a15(0x138)+(_0x2f51bd??_0x401a15(0x12c)));const _0x44fd4f=_0x24e233?resolveInstalledSkill(_0x24e233,_0x57afad):undefined,_0x398aed=_0x59d291[_0x401a15(0x143)](/Failed to install\s+(\d+)/i);if(_0x398aed&&Number(_0x398aed[0x1])>0x0){const _0x552dd4=_0x401a15(0x140)+_0x398aed[0x1]+'\x20failed\x20target(s)'+(_0x59d291?':\x0a'+_0x59d291:'');if(_0x44fd4f?.[_0x401a15(0x11a)]===_0x401a15(0x132))return{'ok':!![],'status':0x0,'partialFailure':{'count':Number(_0x398aed[0x1]),'output':_0x59d291}};return failure(_0x401a15(0x121),0x0,_0x552dd4);}if(_0x44fd4f){if(_0x44fd4f[_0x401a15(0x11a)]==='absent')return failure(_0x401a15(0x141),0x0,'Skill\x20\x22'+_0x24e233+'\x22\x20not\x20found\x20after\x20install\x20(checked\x20'+_0x44fd4f['checked'][_0x401a15(0x139)](',\x20')+')');_0x44fd4f['state']===_0x401a15(0x11e)&&console[_0x401a15(0x122)]('!\x20Could\x20not\x20verify\x20\x22'+_0x24e233+'\x22\x20install\x20state:\x20'+_0x44fd4f['reason']);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x331f3c,_0x2aa4c7){const _0x579579=a324_0x48a031;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3581ac=_0x2aa4c7?.[_0x579579(0x112)]??_0x579579(0x117),_0x5b06e0=buildNpxSkillsAddArgv(_0x2aa4c7?.[_0x579579(0x119)]),_0x5c78cc=[_0x579579(0x133),..._0x5b06e0][_0x579579(0x139)]('\x20');console[_0x579579(0x131)]('*\x20'+_0x5c78cc);const _0x5a2058=execaSync(_0x579579(0x133),_0x5b06e0,execaOptions(_0x331f3c,_0x3581ac));return normalizeExecaResult(_0x5a2058);}export function runNpxSkillsAddGlobal(_0x472042,_0x32b672,_0x29ee56){const _0x14b9c1=a324_0x48a031;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x248961=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x32b672,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x151cc5=[_0x14b9c1(0x133),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x32b672,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x14b9c1(0x139)]('\x20');console[_0x14b9c1(0x131)]('*\x20'+_0x151cc5);const _0x232b77=execaSync(_0x14b9c1(0x133),_0x248961,execaOptions(_0x472042,_0x14b9c1(0x124))),_0x28d6f1=normalizeExecaResult(_0x232b77,_0x29ee56?.[_0x14b9c1(0x10f)]??resolveGlobalSkillName(_0x32b672),_0x29ee56?.[_0x14b9c1(0x11c)]);if(_0x29ee56?.[_0x14b9c1(0x112)]!=='pipe'&&!_0x28d6f1[_0x14b9c1(0x137)]){const _0x5a9a91=[_0x232b77[_0x14b9c1(0x120)],_0x232b77['stderr']][_0x14b9c1(0x135)](Boolean)[_0x14b9c1(0x139)]('\x0a')[_0x14b9c1(0x116)]();if(_0x5a9a91)console[_0x14b9c1(0x131)](_0x5a9a91);}return _0x28d6f1;}
1
+ const a325_0x1c3177=a325_0x15e0;(function(_0x37cfc9,_0x384319){const _0x1db0a9=a325_0x15e0,_0x5354dc=_0x37cfc9();while(!![]){try{const _0x424711=parseInt(_0x1db0a9(0xed))/0x1*(-parseInt(_0x1db0a9(0xf6))/0x2)+-parseInt(_0x1db0a9(0xc7))/0x3+parseInt(_0x1db0a9(0xce))/0x4+parseInt(_0x1db0a9(0xde))/0x5+-parseInt(_0x1db0a9(0xd5))/0x6+-parseInt(_0x1db0a9(0xf1))/0x7*(parseInt(_0x1db0a9(0xea))/0x8)+-parseInt(_0x1db0a9(0xba))/0x9*(-parseInt(_0x1db0a9(0xdf))/0xa);if(_0x424711===_0x384319)break;else _0x5354dc['push'](_0x5354dc['shift']());}catch(_0x262710){_0x5354dc['push'](_0x5354dc['shift']());}}}(a325_0x5e0b,0xa8fbb));import{execaSync}from'execa';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=a325_0x1c3177(0xf5);export const NPX_SKILLS_SUBCOMMAND_ADD=a325_0x1c3177(0xbb);export const NPX_SKILLS_FLAG_SKILL=a325_0x1c3177(0xdd);export const RABETBASE_SKILL_SOURCE=a325_0x1c3177(0xbc);export const RABETBASE_GLOBAL_SKILL_NAME='rabetbase';export const RABETBASE_SKILL_GIT_SOURCE=a325_0x1c3177(0xc6);export function resolveGlobalSkillName(_0x50ea10){const _0x33d086=a325_0x1c3177;switch(_0x50ea10[_0x33d086(0xd7)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x1a1574){const _0x48a797=a325_0x1c3177,_0x1f1bf0=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x1a1574&&_0x1f1bf0[_0x48a797(0xe4)](NPX_SKILLS_FLAG_SKILL,_0x1a1574),_0x1f1bf0;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a325_0x1c3177(0xf2),...buildNpxSkillsAddArgv()][a325_0x1c3177(0xe5)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a325_0x1c3177(0xf2),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a325_0x1c3177(0xe5)]('\x20');function a325_0x5e0b(){const _0x3e24bc=['unverifiable','7AvPsId','state','SKILL_NOT_INSTALLED','code','21HZUctF','npx','checked','ENOENT','skills@latest','12842fJbzsb','54VJBcAM','add','lovrabet/rabetbase','INSTALL_PARTIAL','reason','inherit','shortMessage','exit\x20','npx\x20failed\x20to\x20start','\x22\x20install\x20state:\x20','stderr','absent','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','2150808aZpJXl','exitCode','signal','npx\x20terminated\x20by\x20signal\x20','log','stdio','warn','3671772GOyJhd','message','Skill\x20\x22','EACCES','PERMISSION_DENIED','\x20failed\x20target(s)','NPX_NOT_FOUND','106824VcNbwA','present','trim','CHILD_EXIT_NONZERO','Installer\x20reported\x20','!\x20Could\x20not\x20verify\x20\x22','npm_config_global','pipe','--skill','3267900nEPNRh','340770vvvSMj','CHILD_TERMINATED','SPAWN_FAILED','NPM_CONFIG_GLOBAL','stdout','push','join','failed','expectedSkillName','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','presence','811048RMmVvc','filter'];a325_0x5e0b=function(){return _0x3e24bc;};return a325_0x5e0b();}const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x4107c2,_0xf957a6,_0x1d3b05){return{'ok':![],'status':_0xf957a6,'code':_0x4107c2,'error':'['+_0x4107c2+']\x20'+_0x1d3b05};}function a325_0x15e0(_0x2e4302,_0x476d76){_0x2e4302=_0x2e4302-0xba;const _0x5e0bea=a325_0x5e0b();let _0x15e088=_0x5e0bea[_0x2e4302];return _0x15e088;}function execaOptions(_0x330cdf,_0x5a5be3){const _0x4d604b=a325_0x1c3177,_0x2e5d91={...process.env};return delete _0x2e5d91[_0x4d604b(0xdb)],delete _0x2e5d91[_0x4d604b(0xe2)],{'cwd':_0x330cdf,'stdio':_0x5a5be3,'env':_0x2e5d91,'extendEnv':![],'shell':![],'reject':![],..._0x5a5be3===_0x4d604b(0xdc)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeExecaResult(_0x470120,_0x28c2cd,_0x1e83e8){const _0x3fe962=a325_0x1c3177,_0xaf503e=[_0x470120['stdout']?String(_0x470120[_0x3fe962(0xe3)]):'',_0x470120['stderr']?String(_0x470120[_0x3fe962(0xc4)]):'']['filter'](Boolean)[_0x3fe962(0xe5)]('\x0a')[_0x3fe962(0xd7)](),_0x2a790e=_0x470120[_0x3fe962(0xc8)]??null;if(_0x470120[_0x3fe962(0xf0)]){const _0x5b4a4d=_0x470120[_0x3fe962(0xf0)]===_0x3fe962(0xf4)?_0x3fe962(0xd4):_0x470120[_0x3fe962(0xf0)]==='EPERM'||_0x470120[_0x3fe962(0xf0)]===_0x3fe962(0xd1)?_0x3fe962(0xd2):_0x3fe962(0xe1);return failure(_0x5b4a4d,_0x2a790e,_0x470120[_0x3fe962(0xc0)]??_0x470120[_0x3fe962(0xcf)]??_0x470120[_0x3fe962(0xf0)]);}if(_0x470120[_0x3fe962(0xc9)])return failure(_0x3fe962(0xe0),_0x2a790e,_0x3fe962(0xca)+_0x470120[_0x3fe962(0xc9)]);if(_0x470120[_0x3fe962(0xe6)]&&_0x2a790e===null)return failure('SPAWN_FAILED',_0x2a790e,_0x470120[_0x3fe962(0xc0)]??_0x470120[_0x3fe962(0xcf)]??_0x3fe962(0xc2));if(_0x2a790e!==0x0)return failure(_0x3fe962(0xd8),_0x2a790e,_0xaf503e||_0x470120[_0x3fe962(0xc0)]||_0x3fe962(0xc1)+(_0x2a790e??'unknown'));const _0x3ba843=_0x28c2cd?resolveInstalledSkill(_0x28c2cd,_0x1e83e8):undefined,_0x1236ee=_0xaf503e['match'](/Failed to install\s+(\d+)/i);if(_0x1236ee&&Number(_0x1236ee[0x1])>0x0){const _0x47d22e=_0x3fe962(0xd9)+_0x1236ee[0x1]+_0x3fe962(0xd3)+(_0xaf503e?':\x0a'+_0xaf503e:'');if(_0x3ba843?.[_0x3fe962(0xee)]===_0x3fe962(0xd6))return{'ok':!![],'status':0x0,'partialFailure':{'count':Number(_0x1236ee[0x1]),'output':_0xaf503e}};return failure(_0x3fe962(0xbd),0x0,_0x47d22e);}if(_0x3ba843){if(_0x3ba843[_0x3fe962(0xee)]===_0x3fe962(0xc5))return failure(_0x3fe962(0xef),0x0,_0x3fe962(0xd0)+_0x28c2cd+_0x3fe962(0xe8)+_0x3ba843[_0x3fe962(0xf3)][_0x3fe962(0xe5)](',\x20')+')');_0x3ba843[_0x3fe962(0xee)]===_0x3fe962(0xec)&&console[_0x3fe962(0xcd)](_0x3fe962(0xda)+_0x28c2cd+_0x3fe962(0xc3)+_0x3ba843[_0x3fe962(0xbe)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x1557b0,_0x148ec1){const _0x2338f8=a325_0x1c3177;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3885c4=_0x148ec1?.['stdio']??_0x2338f8(0xbf),_0x57eb7d=buildNpxSkillsAddArgv(_0x148ec1?.['skill']),_0x204c01=[_0x2338f8(0xf2),..._0x57eb7d][_0x2338f8(0xe5)]('\x20');console[_0x2338f8(0xcb)]('*\x20'+_0x204c01);const _0x1cbba4=execaSync(_0x2338f8(0xf2),_0x57eb7d,execaOptions(_0x1557b0,_0x3885c4));return normalizeExecaResult(_0x1cbba4);}export function runNpxSkillsAddGlobal(_0x463f26,_0x4d8546,_0x1bc807){const _0x53d7c1=a325_0x1c3177;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xe7bcaa=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4d8546,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x163ac1=[_0x53d7c1(0xf2),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4d8546,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x53d7c1(0xe5)]('\x20');console[_0x53d7c1(0xcb)]('*\x20'+_0x163ac1);const _0x51b567=execaSync(_0x53d7c1(0xf2),_0xe7bcaa,execaOptions(_0x463f26,_0x53d7c1(0xdc))),_0x2a3ff6=normalizeExecaResult(_0x51b567,_0x1bc807?.[_0x53d7c1(0xe7)]??resolveGlobalSkillName(_0x4d8546),_0x1bc807?.[_0x53d7c1(0xe9)]);if(_0x1bc807?.[_0x53d7c1(0xcc)]!==_0x53d7c1(0xdc)&&!_0x2a3ff6['partialFailure']){const _0x44363f=[_0x51b567[_0x53d7c1(0xe3)],_0x51b567['stderr']][_0x53d7c1(0xeb)](Boolean)[_0x53d7c1(0xe5)]('\x0a')[_0x53d7c1(0xd7)]();if(_0x44363f)console[_0x53d7c1(0xcb)](_0x44363f);}return _0x2a3ff6;}
@@ -1 +1 @@
1
- const a325_0x2dc0b2=a325_0x2a1f;(function(_0x4603e8,_0x225f1e){const _0x5eb849=a325_0x2a1f,_0x23dec3=_0x4603e8();while(!![]){try{const _0x37dbd9=parseInt(_0x5eb849(0xb1))/0x1+-parseInt(_0x5eb849(0xa3))/0x2*(-parseInt(_0x5eb849(0x9e))/0x3)+parseInt(_0x5eb849(0xa7))/0x4*(parseInt(_0x5eb849(0xa9))/0x5)+parseInt(_0x5eb849(0xb9))/0x6*(parseInt(_0x5eb849(0xaa))/0x7)+-parseInt(_0x5eb849(0xba))/0x8+parseInt(_0x5eb849(0xac))/0x9+-parseInt(_0x5eb849(0xb0))/0xa;if(_0x37dbd9===_0x225f1e)break;else _0x23dec3['push'](_0x23dec3['shift']());}catch(_0x2ccd31){_0x23dec3['push'](_0x23dec3['shift']());}}}(a325_0x2379,0x4996a));function a325_0x2379(){const _0x415b75=['reason','includes','6SNxUzq','4076824YmFoGV','home','not-recorded','\x20records\x20\x22','object','version','absent','9DHjoKD','unusable','\x20has\x20no\x20skills\x20map','.claude','.agents','303130GEITBG','\x20uses\x20unsupported\x20version\x20','message','globalSkillsDirs','407684hnIZtk','.skill-lock.json','20eVPxfp','3770529RqDoHs','lockFile','1252458LQsefe','find','kind','number','11772720qrEgcQ','448105pAQREF','SKILL.md','present','skills','map','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'];a325_0x2379=function(){return _0x415b75;};return a325_0x2379();}import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a325_0x2dc0b2(0xa2),a325_0x2dc0b2(0xa8));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents','skills'),join(a325_0x2dc0b2(0xa1),'skills')];function a325_0x2a1f(_0x474fbf,_0x3b6b47){_0x474fbf=_0x474fbf-0x99;const _0x2379f7=a325_0x2379();let _0x2a1fd9=_0x2379f7[_0x474fbf];return _0x2a1fd9;}const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x3e7d44,_0x5143bb){const _0x5d2c7b=a325_0x2dc0b2;if(!existsSync(_0x3e7d44))return{'kind':_0x5d2c7b(0x99)};let _0x314bbd;try{_0x314bbd=JSON['parse'](readFileSync(_0x3e7d44,'utf8'));}catch(_0x59f3ad){return{'kind':_0x5d2c7b(0x9f),'reason':_0x3e7d44+'\x20is\x20unreadable:\x20'+_0x59f3ad[_0x5d2c7b(0xa5)]};}const _0x2e536b=_0x314bbd;if(typeof _0x2e536b?.[_0x5d2c7b(0x9c)]!==_0x5d2c7b(0xaf)||!SUPPORTED_LOCK_VERSIONS[_0x5d2c7b(0xb8)](_0x2e536b[_0x5d2c7b(0x9c)]))return{'kind':_0x5d2c7b(0x9f),'reason':_0x3e7d44+_0x5d2c7b(0xa4)+String(_0x2e536b?.[_0x5d2c7b(0x9c)])};if(!_0x2e536b['skills']||typeof _0x2e536b['skills']!==_0x5d2c7b(0x9b))return{'kind':_0x5d2c7b(0x9f),'reason':_0x3e7d44+_0x5d2c7b(0xa0)};return _0x2e536b[_0x5d2c7b(0xb4)][_0x5143bb]?{'kind':'recorded'}:{'kind':_0x5d2c7b(0x99)};}export function resolveInstalledSkill(_0x1ff181,_0x5f261c){const _0x43f369=a325_0x2dc0b2,_0x1b21aa=_0x5f261c?.[_0x43f369(0xbb)]??homedir(),_0x436abf=_0x5f261c?.[_0x43f369(0xa6)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x43f369(0xb5)](_0x17c1d8=>join(_0x1b21aa,_0x17c1d8)),_0x59962a=_0x5f261c?.[_0x43f369(0xab)]??join(_0x1b21aa,SKILL_LOCK_RELATIVE_PATH),_0x3346a6=_0x436abf[_0x43f369(0xb5)](_0x1e6a46=>join(_0x1e6a46,_0x1ff181,_0x43f369(0xb2))),_0x30bb2c=_0x3346a6[_0x43f369(0xad)](_0xf71e0d=>existsSync(_0xf71e0d));if(_0x30bb2c)return{'state':_0x43f369(0xb3),'path':_0x30bb2c};const _0x1669ba=readLockLookup(_0x59962a,_0x1ff181);if(_0x1669ba[_0x43f369(0xae)]===_0x43f369(0x9f))return{'state':'unverifiable','reason':_0x1669ba[_0x43f369(0xb7)]};if(_0x1669ba[_0x43f369(0xae)]==='recorded')return{'state':'unverifiable','reason':_0x59962a+_0x43f369(0x9a)+_0x1ff181+_0x43f369(0xb6)+('('+_0x3346a6['join'](',\x20')+')')};return{'state':_0x43f369(0x9d),'checked':_0x3346a6};}
1
+ const a326_0x36e1b5=a326_0x2a67;(function(_0x402a48,_0x8d0317){const _0x257686=a326_0x2a67,_0x5edc3a=_0x402a48();while(!![]){try{const _0x14537a=-parseInt(_0x257686(0x113))/0x1+parseInt(_0x257686(0x121))/0x2*(-parseInt(_0x257686(0x110))/0x3)+-parseInt(_0x257686(0x125))/0x4*(-parseInt(_0x257686(0x10e))/0x5)+-parseInt(_0x257686(0x12f))/0x6*(-parseInt(_0x257686(0x117))/0x7)+parseInt(_0x257686(0x11e))/0x8+parseInt(_0x257686(0x120))/0x9+-parseInt(_0x257686(0x11c))/0xa*(-parseInt(_0x257686(0x126))/0xb);if(_0x14537a===_0x8d0317)break;else _0x5edc3a['push'](_0x5edc3a['shift']());}catch(_0xc84a98){_0x5edc3a['push'](_0x5edc3a['shift']());}}}(a326_0x3acc,0x2dd46));function a326_0x2a67(_0x37d4cb,_0x374967){_0x37d4cb=_0x37d4cb-0x10d;const _0x3acc9e=a326_0x3acc();let _0x2a6757=_0x3acc9e[_0x37d4cb];return _0x2a6757;}import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a326_0x36e1b5(0x118),a326_0x36e1b5(0x115));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a326_0x36e1b5(0x118),a326_0x36e1b5(0x12e)),join(a326_0x36e1b5(0x12d),a326_0x36e1b5(0x12e))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x409c14,_0x3a2957){const _0x143b18=a326_0x36e1b5;if(!existsSync(_0x409c14))return{'kind':_0x143b18(0x112)};let _0x5d9fd3;try{_0x5d9fd3=JSON[_0x143b18(0x12c)](readFileSync(_0x409c14,_0x143b18(0x127)));}catch(_0x56e9a7){return{'kind':_0x143b18(0x111),'reason':_0x409c14+_0x143b18(0x129)+_0x56e9a7[_0x143b18(0x128)]};}const _0x5f05d5=_0x5d9fd3;if(typeof _0x5f05d5?.[_0x143b18(0x11f)]!==_0x143b18(0x116)||!SUPPORTED_LOCK_VERSIONS[_0x143b18(0x11a)](_0x5f05d5['version']))return{'kind':_0x143b18(0x111),'reason':_0x409c14+_0x143b18(0x131)+String(_0x5f05d5?.[_0x143b18(0x11f)])};if(!_0x5f05d5[_0x143b18(0x12e)]||typeof _0x5f05d5[_0x143b18(0x12e)]!=='object')return{'kind':_0x143b18(0x111),'reason':_0x409c14+_0x143b18(0x119)};return _0x5f05d5[_0x143b18(0x12e)][_0x3a2957]?{'kind':_0x143b18(0x123)}:{'kind':_0x143b18(0x112)};}export function resolveInstalledSkill(_0x926ba9,_0x450b2c){const _0x1512d9=a326_0x36e1b5,_0xa91e43=_0x450b2c?.[_0x1512d9(0x11d)]??homedir(),_0x424004=_0x450b2c?.[_0x1512d9(0x124)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x1512d9(0x122)](_0x4e6d90=>join(_0xa91e43,_0x4e6d90)),_0x2ae8ae=_0x450b2c?.['lockFile']??join(_0xa91e43,SKILL_LOCK_RELATIVE_PATH),_0x81de71=_0x424004[_0x1512d9(0x122)](_0x7c6a8f=>join(_0x7c6a8f,_0x926ba9,_0x1512d9(0x130))),_0x4ddf6a=_0x81de71['find'](_0x1689c3=>existsSync(_0x1689c3));if(_0x4ddf6a)return{'state':_0x1512d9(0x12a),'path':_0x4ddf6a};const _0x5eeb7a=readLockLookup(_0x2ae8ae,_0x926ba9);if(_0x5eeb7a[_0x1512d9(0x10d)]===_0x1512d9(0x111))return{'state':_0x1512d9(0x12b),'reason':_0x5eeb7a['reason']};if(_0x5eeb7a['kind']===_0x1512d9(0x123))return{'state':'unverifiable','reason':_0x2ae8ae+_0x1512d9(0x114)+_0x926ba9+_0x1512d9(0x10f)+('('+_0x81de71['join'](',\x20')+')')};return{'state':_0x1512d9(0x11b),'checked':_0x81de71};}function a326_0x3acc(){const _0x85663a=['version','955521ighbaX','2EkjMLx','map','recorded','globalSkillsDirs','479148MswKoo','33143mOvdTt','utf8','message','\x20is\x20unreadable:\x20','present','unverifiable','parse','.claude','skills','6tnARXH','SKILL.md','\x20uses\x20unsupported\x20version\x20','kind','10VACZxt','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','842577hJmrtZ','unusable','not-recorded','310501CSDvls','\x20records\x20\x22','.skill-lock.json','number','1175489jiuWuw','.agents','\x20has\x20no\x20skills\x20map','includes','absent','610myYgdn','home','652920goLaMu'];a326_0x3acc=function(){return _0x85663a;};return a326_0x3acc();}
@@ -1 +1 @@
1
- (function(_0x52e648,_0x5979d9){const _0xaefeb3=a326_0x36a6,_0x242b2b=_0x52e648();while(!![]){try{const _0x32c5f1=-parseInt(_0xaefeb3(0x92))/0x1+parseInt(_0xaefeb3(0x84))/0x2*(-parseInt(_0xaefeb3(0x8f))/0x3)+parseInt(_0xaefeb3(0x86))/0x4+-parseInt(_0xaefeb3(0x98))/0x5*(parseInt(_0xaefeb3(0x8c))/0x6)+parseInt(_0xaefeb3(0x8b))/0x7*(-parseInt(_0xaefeb3(0x89))/0x8)+parseInt(_0xaefeb3(0x85))/0x9*(parseInt(_0xaefeb3(0x8a))/0xa)+parseInt(_0xaefeb3(0x91))/0xb;if(_0x32c5f1===_0x5979d9)break;else _0x242b2b['push'](_0x242b2b['shift']());}catch(_0x6ed8d7){_0x242b2b['push'](_0x242b2b['shift']());}}}(a326_0x4282,0xc1017));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a326_0x4282(){const _0xeacb06=['6252016KuBosF','130LSFtQL','14BqoHGw','7339044TcfaMK','service','command','195ybUrPD','entries','43517617VolePA','182594QieXQR','test','stringify','error','[REDACTED]','flags','5AEguYs','48634cghgQb','402066auNkgx','3212076rczfAQ','durationMs','message'];a326_0x4282=function(){return _0xeacb06;};return a326_0x4282();}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x104f42){const _0x1b0108=a326_0x36a6;return SENSITIVE_PATTERNS['some'](_0x4c53f9=>_0x4c53f9[_0x1b0108(0x93)](_0x104f42));}function a326_0x36a6(_0x4bb452,_0x14b8de){_0x4bb452=_0x4bb452-0x84;const _0x42827e=a326_0x4282();let _0x36a6c4=_0x42827e[_0x4bb452];return _0x36a6c4;}function sanitizeFlags(_0x90db15){const _0x47c9ac=a326_0x36a6,_0xfdea95={};for(const [_0x29bd5b,_0x29f708]of Object[_0x47c9ac(0x90)](_0x90db15)){isSensitiveKey(_0x29bd5b)?_0xfdea95[_0x29bd5b]=_0x29f708!=null&&_0x29f708!==''?_0x47c9ac(0x96):_0x29f708:_0xfdea95[_0x29bd5b]=_0x29f708;}return _0xfdea95;}export async function reportCommandTrace(_0x3af120){const _0x4f5b27=a326_0x36a6;try{const _0x3577c1=sanitizeFlags(_0x3af120[_0x4f5b27(0x97)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x3af120[_0x4f5b27(0x8d)],'command.name':_0x3af120[_0x4f5b27(0x8e)],'command.flags':JSON[_0x4f5b27(0x94)](_0x3577c1),..._0x3af120['durationMs']!=null?{'command.duration_ms':_0x3af120[_0x4f5b27(0x87)]}:{},..._0x3af120[_0x4f5b27(0x95)]?{'command.error':_0x3af120[_0x4f5b27(0x95)]instanceof Error?_0x3af120[_0x4f5b27(0x95)][_0x4f5b27(0x88)]:String(_0x3af120[_0x4f5b27(0x95)])}:{}}});}catch{}}
1
+ (function(_0x575405,_0x409c8d){const _0x3e1d40=a327_0x595b,_0x5e638d=_0x575405();while(!![]){try{const _0x1badd5=-parseInt(_0x3e1d40(0x130))/0x1+-parseInt(_0x3e1d40(0x12f))/0x2*(-parseInt(_0x3e1d40(0x12e))/0x3)+-parseInt(_0x3e1d40(0x129))/0x4+parseInt(_0x3e1d40(0x12a))/0x5+parseInt(_0x3e1d40(0x12c))/0x6*(-parseInt(_0x3e1d40(0x121))/0x7)+-parseInt(_0x3e1d40(0x122))/0x8*(-parseInt(_0x3e1d40(0x12d))/0x9)+parseInt(_0x3e1d40(0x120))/0xa*(parseInt(_0x3e1d40(0x127))/0xb);if(_0x1badd5===_0x409c8d)break;else _0x5e638d['push'](_0x5e638d['shift']());}catch(_0x15b840){_0x5e638d['push'](_0x5e638d['shift']());}}}(a327_0x5831,0x1be67));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a327_0x5831(){const _0x2f631a=['200630mAFqNm','flags','[REDACTED]','10rRBRHD','7lckDOg','824cmnzfk','durationMs','error','message','some','3025748NaFvQh','service','545432Glcwgi','350305kCgiHY','test','493932rwFDYa','6921mxEVEC','327759BPYBdH','2pMzbdV'];a327_0x5831=function(){return _0x2f631a;};return a327_0x5831();}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x9fcd23){const _0x4f4348=a327_0x595b;return SENSITIVE_PATTERNS[_0x4f4348(0x126)](_0x21487f=>_0x21487f[_0x4f4348(0x12b)](_0x9fcd23));}function sanitizeFlags(_0x4a70d9){const _0x3d3c04=a327_0x595b,_0x2402ff={};for(const [_0x20a66d,_0x4caaa2]of Object['entries'](_0x4a70d9)){isSensitiveKey(_0x20a66d)?_0x2402ff[_0x20a66d]=_0x4caaa2!=null&&_0x4caaa2!==''?_0x3d3c04(0x132):_0x4caaa2:_0x2402ff[_0x20a66d]=_0x4caaa2;}return _0x2402ff;}function a327_0x595b(_0x11116d,_0x5f21b8){_0x11116d=_0x11116d-0x120;const _0x58319b=a327_0x5831();let _0x595b90=_0x58319b[_0x11116d];return _0x595b90;}export async function reportCommandTrace(_0x38c053){const _0xc7f064=a327_0x595b;try{const _0x18cbdd=sanitizeFlags(_0x38c053[_0xc7f064(0x131)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x38c053[_0xc7f064(0x128)],'command.name':_0x38c053['command'],'command.flags':JSON['stringify'](_0x18cbdd),..._0x38c053['durationMs']!=null?{'command.duration_ms':_0x38c053[_0xc7f064(0x123)]}:{},..._0x38c053[_0xc7f064(0x124)]?{'command.error':_0x38c053[_0xc7f064(0x124)]instanceof Error?_0x38c053[_0xc7f064(0x124)][_0xc7f064(0x125)]:String(_0x38c053[_0xc7f064(0x124)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x35b7d5,_0x254703){var _0x2ba5c5=a327_0x3b35,_0xff5d59=_0x35b7d5();while(!![]){try{var _0x277f0f=parseInt(_0x2ba5c5(0x1b1))/0x1*(-parseInt(_0x2ba5c5(0x1bb))/0x2)+-parseInt(_0x2ba5c5(0x1b9))/0x3+-parseInt(_0x2ba5c5(0x1b2))/0x4*(-parseInt(_0x2ba5c5(0x1ba))/0x5)+parseInt(_0x2ba5c5(0x1bc))/0x6+-parseInt(_0x2ba5c5(0x1b7))/0x7+parseInt(_0x2ba5c5(0x1b4))/0x8+-parseInt(_0x2ba5c5(0x1af))/0x9*(-parseInt(_0x2ba5c5(0x1b8))/0xa);if(_0x277f0f===_0x254703)break;else _0xff5d59['push'](_0xff5d59['shift']());}catch(_0x36103c){_0xff5d59['push'](_0xff5d59['shift']());}}}(a327_0x102d,0xc61a2));function a327_0x102d(){var _0x4d81f1=['25NlxNXe','125530RtjhoX','6313248fsYfYY','1266741ubrpUC','Failed\x20to\x20report\x20CLI\x20help\x20trace:','17FmchGq','212956AISDph','service','3599304jQGnRb','error','cli.help','9809268hQEQcO','170yJedYS','2643882PhRrGB'];a327_0x102d=function(){return _0x4d81f1;};return a327_0x102d();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a327_0x3b35(_0x2c395d,_0xd3a938){_0x2c395d=_0x2c395d-0x1af;var _0x102d4a=a327_0x102d();var _0x3b3576=_0x102d4a[_0x2c395d];return _0x3b3576;}export async function reportCliHelpTrace(_0x524639,_0x24e8aa){var _0x1860ae=a327_0x3b35;try{await sendCliTraceLog({'spanName':_0x1860ae(0x1b6),'logData':{'rabetbase.help.kind':_0x524639,..._0x24e8aa?.[_0x1860ae(0x1b3)]&&{'rabetbase.help.service':_0x24e8aa[_0x1860ae(0x1b3)]}}});}catch(_0x4c22dd){console[_0x1860ae(0x1b5)](_0x1860ae(0x1b0),_0x4c22dd);}}
1
+ (function(_0x168287,_0x4f6000){var _0x28ae3e=a328_0x4604,_0x165c11=_0x168287();while(!![]){try{var _0x2423ca=-parseInt(_0x28ae3e(0xca))/0x1*(parseInt(_0x28ae3e(0xbf))/0x2)+parseInt(_0x28ae3e(0xcb))/0x3*(-parseInt(_0x28ae3e(0xc4))/0x4)+-parseInt(_0x28ae3e(0xc0))/0x5*(parseInt(_0x28ae3e(0xc7))/0x6)+-parseInt(_0x28ae3e(0xbd))/0x7*(parseInt(_0x28ae3e(0xbc))/0x8)+parseInt(_0x28ae3e(0xc2))/0x9*(-parseInt(_0x28ae3e(0xbe))/0xa)+parseInt(_0x28ae3e(0xc1))/0xb*(-parseInt(_0x28ae3e(0xc5))/0xc)+parseInt(_0x28ae3e(0xc8))/0xd*(parseInt(_0x28ae3e(0xc9))/0xe);if(_0x2423ca===_0x4f6000)break;else _0x165c11['push'](_0x165c11['shift']());}catch(_0x472a2d){_0x165c11['push'](_0x165c11['shift']());}}}(a328_0x426c,0x6a38b));function a328_0x4604(_0x335fc6,_0x441373){_0x335fc6=_0x335fc6-0xbc;var _0x426ca2=a328_0x426c();var _0x4604bb=_0x426ca2[_0x335fc6];return _0x4604bb;}function a328_0x426c(){var _0x3b83c4=['4imCTHL','7164pFSWcb','service','174AskzlO','559XxVVPd','984396ZNLptc','174WwjmIY','1002537dfsSYr','472zWuwoS','42133ScCYcL','1260noRHqo','7076muoEyr','19475lVHltM','14234UUMXhP','28431EOCXZv','Failed\x20to\x20report\x20CLI\x20help\x20trace:'];a328_0x426c=function(){return _0x3b83c4;};return a328_0x426c();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x2cf763,_0x4bd940){var _0x2aa12d=a328_0x4604;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x2cf763,..._0x4bd940?.[_0x2aa12d(0xc6)]&&{'rabetbase.help.service':_0x4bd940['service']}}});}catch(_0x7a60fd){console['error'](_0x2aa12d(0xc3),_0x7a60fd);}}
@@ -1 +1 @@
1
- (function(_0x392b46,_0x4325bd){const _0x8d95ed=a328_0x216a,_0x24d8da=_0x392b46();while(!![]){try{const _0x20bc9a=-parseInt(_0x8d95ed(0xd7))/0x1+parseInt(_0x8d95ed(0xd2))/0x2+-parseInt(_0x8d95ed(0xd5))/0x3+-parseInt(_0x8d95ed(0xda))/0x4+-parseInt(_0x8d95ed(0xd1))/0x5+-parseInt(_0x8d95ed(0xd6))/0x6+-parseInt(_0x8d95ed(0xdb))/0x7*(-parseInt(_0x8d95ed(0xcd))/0x8);if(_0x20bc9a===_0x4325bd)break;else _0x24d8da['push'](_0x24d8da['shift']());}catch(_0x565834){_0x24d8da['push'](_0x24d8da['shift']());}}}(a328_0x3412,0xf1f20));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';function a328_0x3412(){const _0x23d889=['567091zephol','392ncDtec','email','tenant','username','5629565JOSXwj','179400ffJRlC','user','daily','27453LROOIK','8411538tmxeWJ','67166ypxzrp','nickname','unknown','1856704TFuLfO'];a328_0x3412=function(){return _0x23d889;};return a328_0x3412();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];function a328_0x216a(_0x469c2e,_0x48c20c){_0x469c2e=_0x469c2e-0xcd;const _0x3412ab=a328_0x3412();let _0x216a99=_0x3412ab[_0x469c2e];return _0x216a99;}export async function ensureCliOtelTraceConfig(){const _0x1246d=a328_0x216a,_0x5736db=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x5eb0e7=_0x5736db?.[_0x1246d(0xd3)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x1246d(0xd9)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x1246d(0xd4):'production')}),setUserContext({'id':_0x5eb0e7?.['id'],'username':_0x5eb0e7?.[_0x1246d(0xd0)],'nickname':_0x5eb0e7?.[_0x1246d(0xd8)],'email':_0x5eb0e7?.[_0x1246d(0xce)],'tenantCode':_0x5eb0e7?.[_0x1246d(0xcf)]?.['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x5736db;}
1
+ (function(_0x545f13,_0xbd25d2){const _0x451427=a329_0x118c,_0x2935b7=_0x545f13();while(!![]){try{const _0x4e4a74=parseInt(_0x451427(0x134))/0x1*(-parseInt(_0x451427(0x133))/0x2)+-parseInt(_0x451427(0x13c))/0x3+parseInt(_0x451427(0x131))/0x4+parseInt(_0x451427(0x13f))/0x5*(parseInt(_0x451427(0x13b))/0x6)+parseInt(_0x451427(0x13e))/0x7*(-parseInt(_0x451427(0x135))/0x8)+parseInt(_0x451427(0x138))/0x9+-parseInt(_0x451427(0x136))/0xa*(-parseInt(_0x451427(0x139))/0xb);if(_0x4e4a74===_0xbd25d2)break;else _0x2935b7['push'](_0x2935b7['shift']());}catch(_0x2dcd59){_0x2935b7['push'](_0x2935b7['shift']());}}}(a329_0x164c,0xd1417));function a329_0x164c(){const _0x404d38=['4846lRvfXo','227noeptP','104tleyZn','130byRkGm','user','6668910JykiLS','1508485nDAGvo','username','732TdgxtB','4362132cPpbun','email','645554FlMkhh','50390NZGqpT','production','unknown','1227204BANNNF','daily'];a329_0x164c=function(){return _0x404d38;};return a329_0x164c();}function a329_0x118c(_0x3d72d0,_0x1b707f){_0x3d72d0=_0x3d72d0-0x12f;const _0x164c26=a329_0x164c();let _0x118ccd=_0x164c26[_0x3d72d0];return _0x118ccd;}import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x35bef2=a329_0x118c,_0x4ab4cd=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x405b80=_0x4ab4cd?.[_0x35bef2(0x137)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x35bef2(0x130)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x35bef2(0x132):_0x35bef2(0x12f))}),setUserContext({'id':_0x405b80?.['id'],'username':_0x405b80?.[_0x35bef2(0x13a)],'nickname':_0x405b80?.['nickname'],'email':_0x405b80?.[_0x35bef2(0x13d)],'tenantCode':_0x405b80?.['tenant']?.['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x4ab4cd;}
@@ -1 +1 @@
1
- (function(_0x3dfaac,_0x49d9b4){const _0x16806b=a329_0x2ccf,_0x5b6e04=_0x3dfaac();while(!![]){try{const _0x42d5ab=-parseInt(_0x16806b(0x1bb))/0x1+parseInt(_0x16806b(0x1bf))/0x2+parseInt(_0x16806b(0x1bd))/0x3+parseInt(_0x16806b(0x1b8))/0x4+parseInt(_0x16806b(0x1b9))/0x5+-parseInt(_0x16806b(0x1b7))/0x6*(parseInt(_0x16806b(0x1b3))/0x7)+-parseInt(_0x16806b(0x1ba))/0x8*(-parseInt(_0x16806b(0x1be))/0x9);if(_0x42d5ab===_0x49d9b4)break;else _0x5b6e04['push'](_0x5b6e04['shift']());}catch(_0x47c61f){_0x5b6e04['push'](_0x5b6e04['shift']());}}}(a329_0x4c58,0x59699));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a329_0x2ccf(_0x3f7c0e,_0x1281fc){_0x3f7c0e=_0x3f7c0e-0x1b2;const _0x4c5890=a329_0x4c58();let _0x2ccf57=_0x4c5890[_0x3f7c0e];return _0x2ccf57;}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x3aede3=a329_0x2ccf;process['once']('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x218741=()=>{const _0x5031f7=a329_0x2ccf;void flushOtelNodeIfUsed()[_0x5031f7(0x1b5)](()=>process[_0x5031f7(0x1bc)](0x0));};process['once'](_0x3aede3(0x1b2),_0x218741),process[_0x3aede3(0x1b4)](_0x3aede3(0x1b6),_0x218741);}function a329_0x4c58(){const _0x5db0c7=['42021pKyaYB','once','then','SIGTERM','606bucsbu','861884xqkdQa','537630rAJWiF','40OKrPWe','488014aHQsCP','exit','1393410XuFnKd','759015UTdHXb','502816PdfSwP','SIGINT'];a329_0x4c58=function(){return _0x5db0c7;};return a329_0x4c58();}export async function exitWithOtelShutdown(_0xfb6945){await flushOtelNodeIfUsed(),process['exit'](_0xfb6945);}
1
+ function a330_0x9d7e(_0x4865eb,_0x3666e6){_0x4865eb=_0x4865eb-0x1b9;const _0x38b5d9=a330_0x38b5();let _0x9d7e08=_0x38b5d9[_0x4865eb];return _0x9d7e08;}(function(_0x31e561,_0x3ace0f){const _0x1ad1b2=a330_0x9d7e,_0x1a07ab=_0x31e561();while(!![]){try{const _0x2ff9ff=parseInt(_0x1ad1b2(0x1b9))/0x1*(parseInt(_0x1ad1b2(0x1ba))/0x2)+parseInt(_0x1ad1b2(0x1c0))/0x3*(parseInt(_0x1ad1b2(0x1bf))/0x4)+-parseInt(_0x1ad1b2(0x1c2))/0x5+-parseInt(_0x1ad1b2(0x1c4))/0x6*(-parseInt(_0x1ad1b2(0x1c3))/0x7)+-parseInt(_0x1ad1b2(0x1c7))/0x8+parseInt(_0x1ad1b2(0x1c5))/0x9*(-parseInt(_0x1ad1b2(0x1c1))/0xa)+parseInt(_0x1ad1b2(0x1bd))/0xb;if(_0x2ff9ff===_0x3ace0f)break;else _0x1a07ab['push'](_0x1a07ab['shift']());}catch(_0x52894c){_0x1a07ab['push'](_0x1a07ab['shift']());}}}(a330_0x38b5,0x278e8));import{shutdownTraces}from'@lovrabet/otel-logger';function a330_0x38b5(){const _0x4dcda0=['1912256QQTJQH','SIGINT','224494PqrcFV','2BpiEyn','once','SIGTERM','934648CNCyiL','beforeExit','615356tQfUiG','3YkQATl','38230TmiEKe','710380KqxnIP','49wOMGkJ','127410SQyXUW','162lTiIgp','exit'];a330_0x38b5=function(){return _0x4dcda0;};return a330_0x38b5();}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x45b73b=a330_0x9d7e;process['once'](_0x45b73b(0x1be),()=>{void flushOtelNodeIfUsed();});const _0x5e2d61=()=>{const _0x385398=_0x45b73b;void flushOtelNodeIfUsed()['then'](()=>process[_0x385398(0x1c6)](0x0));};process[_0x45b73b(0x1bb)](_0x45b73b(0x1c8),_0x5e2d61),process[_0x45b73b(0x1bb)](_0x45b73b(0x1bc),_0x5e2d61);}export async function exitWithOtelShutdown(_0x55814f){const _0x43cbda=a330_0x9d7e;await flushOtelNodeIfUsed(),process[_0x43cbda(0x1c6)](_0x55814f);}
@@ -1 +1 @@
1
- const a330_0x3ba101=a330_0x1394;(function(_0x2549cb,_0x1221a1){const _0x1f1156=a330_0x1394,_0x324222=_0x2549cb();while(!![]){try{const _0x11c514=parseInt(_0x1f1156(0x1b1))/0x1+-parseInt(_0x1f1156(0x1bd))/0x2*(parseInt(_0x1f1156(0x1be))/0x3)+parseInt(_0x1f1156(0x1b7))/0x4+parseInt(_0x1f1156(0x1af))/0x5*(-parseInt(_0x1f1156(0x1ba))/0x6)+parseInt(_0x1f1156(0x1b0))/0x7+-parseInt(_0x1f1156(0x1b8))/0x8+parseInt(_0x1f1156(0x1b6))/0x9*(parseInt(_0x1f1156(0x1b2))/0xa);if(_0x11c514===_0x1221a1)break;else _0x324222['push'](_0x324222['shift']());}catch(_0x568c57){_0x324222['push'](_0x324222['shift']());}}}(a330_0x27eb,0xd2e14));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a330_0x1394(_0x26f520,_0xbdaffb){_0x26f520=_0x26f520-0x1af;const _0x27ebfd=a330_0x27eb();let _0x139415=_0x27ebfd[_0x26f520];return _0x139415;}import{getCliVersion}from'../utils/version.js';function a330_0x27eb(){const _0xb97740=['244090hKMmOf','traceName','manual','spanName','153WnUdtf','43568iYCcCU','10582808JSVtnj','rabetbase-cli','34344FGFDNA','traceparent','logData','2rqfrxo','351774hqzegZ','180QBLbqh','2898931HFSVAJ','1669959VkjSbs'];a330_0x27eb=function(){return _0xb97740;};return a330_0x27eb();}const DEFAULT_TRACE_NAME=a330_0x3ba101(0x1b9);export async function sendCliTraceLog(_0x31eeb5){const _0x186492=a330_0x3ba101;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x31eeb5[_0x186492(0x1b3)]??DEFAULT_TRACE_NAME,'version':_0x31eeb5['version']??getCliVersion(),'spanName':_0x31eeb5[_0x186492(0x1b5)],'eventType':_0x186492(0x1b4),'logData':_0x31eeb5[_0x186492(0x1bc)],..._0x31eeb5[_0x186492(0x1bb)]&&{'traceparent':_0x31eeb5[_0x186492(0x1bb)]}});}
1
+ function a331_0x41a3(){const _0x5bd6e6=['version','8496648YSRXGJ','17606190UJuKTw','manual','1695081CzIQWf','12aDntgI','spanName','traceparent','logData','3928JhLEXx','682680ltXJzy','911260ZKiSZa','5333314RBHQRF','4FjbAIq','5724VuSDUV'];a331_0x41a3=function(){return _0x5bd6e6;};return a331_0x41a3();}(function(_0x306d7a,_0x5d7e0c){const _0x100ea8=a331_0x4441,_0x9eb010=_0x306d7a();while(!![]){try{const _0x3687f4=-parseInt(_0x100ea8(0x1e3))/0x1+-parseInt(_0x100ea8(0x1e6))/0x2*(parseInt(_0x100ea8(0x1ec))/0x3)+parseInt(_0x100ea8(0x1de))/0x4*(parseInt(_0x100ea8(0x1e4))/0x5)+parseInt(_0x100ea8(0x1e9))/0x6+-parseInt(_0x100ea8(0x1e5))/0x7+parseInt(_0x100ea8(0x1e2))/0x8*(-parseInt(_0x100ea8(0x1e7))/0x9)+parseInt(_0x100ea8(0x1ea))/0xa;if(_0x3687f4===_0x5d7e0c)break;else _0x9eb010['push'](_0x9eb010['shift']());}catch(_0x238fd1){_0x9eb010['push'](_0x9eb010['shift']());}}}(a331_0x41a3,0xcc3db));function a331_0x4441(_0x4f1e6d,_0x3c1eba){_0x4f1e6d=_0x4f1e6d-0x1de;const _0x41a3b5=a331_0x41a3();let _0x44415b=_0x41a3b5[_0x4f1e6d];return _0x44415b;}import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';export async function sendCliTraceLog(_0x391a6e){const _0x529a34=a331_0x4441;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x391a6e['traceName']??DEFAULT_TRACE_NAME,'version':_0x391a6e[_0x529a34(0x1e8)]??getCliVersion(),'spanName':_0x391a6e[_0x529a34(0x1df)],'eventType':_0x529a34(0x1eb),'logData':_0x391a6e[_0x529a34(0x1e1)],..._0x391a6e[_0x529a34(0x1e0)]&&{'traceparent':_0x391a6e[_0x529a34(0x1e0)]}});}
@@ -1 +1 @@
1
- const a331_0xbdf2d6=a331_0x15ae;(function(_0x2fffd2,_0x41b896){const _0x390e76=a331_0x15ae,_0x51cf62=_0x2fffd2();while(!![]){try{const _0x440198=parseInt(_0x390e76(0xf2))/0x1+parseInt(_0x390e76(0xf3))/0x2+parseInt(_0x390e76(0xf7))/0x3*(-parseInt(_0x390e76(0xfa))/0x4)+parseInt(_0x390e76(0xf6))/0x5+-parseInt(_0x390e76(0xfb))/0x6*(-parseInt(_0x390e76(0xf1))/0x7)+-parseInt(_0x390e76(0xf5))/0x8*(-parseInt(_0x390e76(0xf8))/0x9)+parseInt(_0x390e76(0xfc))/0xa*(-parseInt(_0x390e76(0xee))/0xb);if(_0x440198===_0x41b896)break;else _0x51cf62['push'](_0x51cf62['shift']());}catch(_0x552e89){_0x51cf62['push'](_0x51cf62['shift']());}}}(a331_0x38fe,0x30c48));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a331_0xbdf2d6(0xef);export async function sendPlatformIssueCollectLog(_0x47ecb0){const _0x17a292=a331_0xbdf2d6;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x47ecb0[_0x17a292(0xf9)],'issue.description':_0x47ecb0['description'],..._0x47ecb0[_0x17a292(0xed)]?{'issue.description_original_bytes':_0x47ecb0[_0x17a292(0xed)][_0x17a292(0xf0)],'issue.description_truncated':_0x47ecb0[_0x17a292(0xed)][_0x17a292(0xf4)],'issue.description_redactions':_0x47ecb0[_0x17a292(0xed)]['redactionCount'],'issue.description_redaction_kinds':_0x47ecb0[_0x17a292(0xed)]['redactionKinds']['join'](',')}:{}}});}function a331_0x15ae(_0x2e7e1f,_0x473433){_0x2e7e1f=_0x2e7e1f-0xed;const _0x38fef5=a331_0x38fe();let _0x15aeb8=_0x38fef5[_0x2e7e1f];return _0x15aeb8;}function a331_0x38fe(){const _0x407096=['1229655xFiCTE','2634AZZIty','54927cFDcoT','title','1808gnpHnw','117444RdaJcB','2620YnjArP','sanitize','1716cwiFmQ','issue.log.collect','originalBytes','7pInTtN','50763SSuZyC','239626YvxuCO','truncated','264kWqgzi'];a331_0x38fe=function(){return _0x407096;};return a331_0x38fe();}
1
+ (function(_0x510d23,_0x3ac409){const _0x3d9b9b=a332_0x2fa3,_0x54b93f=_0x510d23();while(!![]){try{const _0x5e978a=parseInt(_0x3d9b9b(0x10b))/0x1+-parseInt(_0x3d9b9b(0x101))/0x2+-parseInt(_0x3d9b9b(0x102))/0x3+-parseInt(_0x3d9b9b(0x10d))/0x4+parseInt(_0x3d9b9b(0x104))/0x5+-parseInt(_0x3d9b9b(0x106))/0x6*(-parseInt(_0x3d9b9b(0x103))/0x7)+-parseInt(_0x3d9b9b(0x107))/0x8*(parseInt(_0x3d9b9b(0x109))/0x9);if(_0x5e978a===_0x3ac409)break;else _0x54b93f['push'](_0x54b93f['shift']());}catch(_0x235741){_0x54b93f['push'](_0x54b93f['shift']());}}}(a332_0x1e62,0x954c7));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';function a332_0x1e62(){const _0xb422e4=['163436jSaqNd','848643RHEIPH','7qMkspm','4930685RKLawg','sanitize','3176058jNWhzd','35152tSUTHL','description','2043IeUDal','truncated','631540pOezVE','title','693824bAuYXu'];a332_0x1e62=function(){return _0xb422e4;};return a332_0x1e62();}function a332_0x2fa3(_0x3f7769,_0x2c48b3){_0x3f7769=_0x3f7769-0x101;const _0x1e623d=a332_0x1e62();let _0x2fa347=_0x1e623d[_0x3f7769];return _0x2fa347;}export async function sendPlatformIssueCollectLog(_0x58475c){const _0x20fbb3=a332_0x2fa3;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x58475c[_0x20fbb3(0x10c)],'issue.description':_0x58475c[_0x20fbb3(0x108)],..._0x58475c['sanitize']?{'issue.description_original_bytes':_0x58475c[_0x20fbb3(0x105)]['originalBytes'],'issue.description_truncated':_0x58475c['sanitize'][_0x20fbb3(0x10a)],'issue.description_redactions':_0x58475c['sanitize']['redactionCount'],'issue.description_redaction_kinds':_0x58475c[_0x20fbb3(0x105)]['redactionKinds']['join'](',')}:{}}});}
@@ -1 +1 @@
1
- const a333_0x3cf228=a333_0x5103;(function(_0x4b6dbc,_0x226b66){const _0x2fdd45=a333_0x5103,_0x1aa05b=_0x4b6dbc();while(!![]){try{const _0x1c76ee=parseInt(_0x2fdd45(0x179))/0x1*(parseInt(_0x2fdd45(0x1a0))/0x2)+parseInt(_0x2fdd45(0x197))/0x3+-parseInt(_0x2fdd45(0x19d))/0x4+-parseInt(_0x2fdd45(0x182))/0x5+-parseInt(_0x2fdd45(0x196))/0x6+parseInt(_0x2fdd45(0x18e))/0x7+-parseInt(_0x2fdd45(0x17b))/0x8;if(_0x1c76ee===_0x226b66)break;else _0x1aa05b['push'](_0x1aa05b['shift']());}catch(_0x38d2d4){_0x1aa05b['push'](_0x1aa05b['shift']());}}}(a333_0x4202,0x196ba));export const CORE_IDE_CONFIGS={'cursor':{'name':a333_0x3cf228(0x178),'description':a333_0x3cf228(0x18d),'folders':['.cursorrules',a333_0x3cf228(0x1a6)],'files':[{'type':a333_0x3cf228(0x1a1),'path':a333_0x3cf228(0x183)}]},'windsurf':{'name':'Windsurf','description':a333_0x3cf228(0x190),'folders':[a333_0x3cf228(0x189)],'files':[{'type':'file','path':a333_0x3cf228(0x19e)}]},'claude':{'name':a333_0x3cf228(0x195),'description':a333_0x3cf228(0x195),'folders':[a333_0x3cf228(0x19a)],'files':[{'type':a333_0x3cf228(0x1a1),'path':'.claude/skills/lovrabet/SKILL.md'}]},'cline':{'name':'Cline','description':a333_0x3cf228(0x18c),'folders':[a333_0x3cf228(0x176)],'files':[{'type':a333_0x3cf228(0x1a1),'path':a333_0x3cf228(0x1a3)}]},'codex':{'name':a333_0x3cf228(0x180),'description':'Codex\x20IDE','folders':[a333_0x3cf228(0x19b)],'files':[{'type':a333_0x3cf228(0x1a1),'path':a333_0x3cf228(0x18b)}]},'opencode':{'name':a333_0x3cf228(0x193),'description':a333_0x3cf228(0x173),'folders':[a333_0x3cf228(0x177)],'files':[{'type':a333_0x3cf228(0x1a1),'path':a333_0x3cf228(0x186)}]},'qoder':{'name':'Qoder','description':a333_0x3cf228(0x184),'folders':[a333_0x3cf228(0x1a5)],'files':[{'type':a333_0x3cf228(0x1a1),'path':a333_0x3cf228(0x19c)},{'type':a333_0x3cf228(0x1a1),'path':a333_0x3cf228(0x1a4)}]},'codebuddy':{'name':a333_0x3cf228(0x185),'description':a333_0x3cf228(0x174),'folders':[a333_0x3cf228(0x17c)],'files':[{'type':a333_0x3cf228(0x1a1),'path':a333_0x3cf228(0x187)}]},'trae':{'name':a333_0x3cf228(0x18a),'description':'Trae\x20IDE','folders':[a333_0x3cf228(0x18f)],'files':[{'type':a333_0x3cf228(0x1a1),'path':'.trae/skills/lovrabet/SKILL.md'}]}};function a333_0x5103(_0x2d9972,_0x1f1ba3){_0x2d9972=_0x2d9972-0x173;const _0x420215=a333_0x4202();let _0x51032a=_0x420215[_0x2d9972];return _0x51032a;}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a333_0x3cf228(0x17e),'description':a333_0x3cf228(0x199),'folders':[a333_0x3cf228(0x194)],'files':[{'type':a333_0x3cf228(0x1a1),'path':a333_0x3cf228(0x1a7)}]},'antigravity':{'name':'Antigravity','description':'Antigravity\x20IDE','folders':['.agent'],'files':[{'type':a333_0x3cf228(0x1a1),'path':a333_0x3cf228(0x1a7)}]}};export const CORE_IDE_LIST=[a333_0x3cf228(0x188),a333_0x3cf228(0x17f),a333_0x3cf228(0x19f),a333_0x3cf228(0x1a2),'cursor',a333_0x3cf228(0x17d),a333_0x3cf228(0x198),a333_0x3cf228(0x191),a333_0x3cf228(0x181)];function a333_0x4202(){const _0x342cb5=['Cursor','1PIEXFM','agent','477984pXAdxG','.codebuddy','opencode','Other\x20(generic\x20template)','cline','Codex','windsurf','174295RUwRCV','.cursor/skills/rabetbase.md','Qoder\x20IDE','CodeBuddy','.opencode/skills/lovrabet/SKILL.md','.codebuddy/skills/lovrabet/SKILL.md','claude','.windsurf','Trae','.codex/skills/lovrabet/SKILL.md','Cline\x20IDE','Cursor\x20IDE','53270Zkyzsb','.trae','Windsurf\x20IDE','trae','cursor','OpenCode','.agent','Claude\x20Code','98760WDxFQj','245475kONqEe','qoder','Generic\x20template\x20fallback','.claude','.codex','.qoder/rules/rabetbase.md','51680zominb','.windsurf/workflows/rabetbase.md','codebuddy','277348cmdJhS','file','codex','.cline/skills/lovrabet/SKILL.md','.qoder/skills/lovrabet/SKILL.md','.qoder','.cursor','.agent/skills/lovrabet/SKILL.md','OpenCode\x20IDE','CodeBuddy\x20IDE','antigravity','.cline','.opencode'];a333_0x4202=function(){return _0x342cb5;};return a333_0x4202();}export const IDE_LIST=[a333_0x3cf228(0x175),a333_0x3cf228(0x188),a333_0x3cf228(0x17f),'codebuddy',a333_0x3cf228(0x1a2),a333_0x3cf228(0x192),'opencode','qoder',a333_0x3cf228(0x191),a333_0x3cf228(0x181),a333_0x3cf228(0x17a)];export const ALL_CORE_IDES=[a333_0x3cf228(0x192),a333_0x3cf228(0x181),a333_0x3cf228(0x188),a333_0x3cf228(0x17f),a333_0x3cf228(0x1a2),'opencode',a333_0x3cf228(0x198),a333_0x3cf228(0x19f),a333_0x3cf228(0x191)];
1
+ function a334_0x26e6(_0x710a30,_0x4f131d){_0x710a30=_0x710a30-0x74;const _0x37a0cc=a334_0x37a0();let _0x26e669=_0x37a0cc[_0x710a30];return _0x26e669;}const a334_0x6afa47=a334_0x26e6;(function(_0xf524fa,_0x5186d9){const _0x2cc81c=a334_0x26e6,_0x1b2bfa=_0xf524fa();while(!![]){try{const _0x3c7ae0=-parseInt(_0x2cc81c(0x8d))/0x1+parseInt(_0x2cc81c(0x7c))/0x2*(parseInt(_0x2cc81c(0x95))/0x3)+-parseInt(_0x2cc81c(0xa0))/0x4*(-parseInt(_0x2cc81c(0x96))/0x5)+parseInt(_0x2cc81c(0x75))/0x6*(parseInt(_0x2cc81c(0x9a))/0x7)+-parseInt(_0x2cc81c(0x9f))/0x8+-parseInt(_0x2cc81c(0x89))/0x9+parseInt(_0x2cc81c(0xaa))/0xa;if(_0x3c7ae0===_0x5186d9)break;else _0x1b2bfa['push'](_0x1b2bfa['shift']());}catch(_0x2e6110){_0x1b2bfa['push'](_0x1b2bfa['shift']());}}}(a334_0x37a0,0xe1902));export const CORE_IDE_CONFIGS={'cursor':{'name':a334_0x6afa47(0x8f),'description':a334_0x6afa47(0x7f),'folders':['.cursorrules',a334_0x6afa47(0xa5)],'files':[{'type':'file','path':a334_0x6afa47(0x8e)}]},'windsurf':{'name':a334_0x6afa47(0x81),'description':'Windsurf\x20IDE','folders':[a334_0x6afa47(0xa2)],'files':[{'type':a334_0x6afa47(0x9e),'path':'.windsurf/workflows/rabetbase.md'}]},'claude':{'name':a334_0x6afa47(0x7a),'description':a334_0x6afa47(0x7a),'folders':[a334_0x6afa47(0xa4)],'files':[{'type':a334_0x6afa47(0x9e),'path':a334_0x6afa47(0x98)}]},'cline':{'name':a334_0x6afa47(0xa7),'description':a334_0x6afa47(0x86),'folders':[a334_0x6afa47(0xa1)],'files':[{'type':a334_0x6afa47(0x9e),'path':a334_0x6afa47(0x84)}]},'codex':{'name':a334_0x6afa47(0xa6),'description':a334_0x6afa47(0x80),'folders':['.codex'],'files':[{'type':a334_0x6afa47(0x9e),'path':a334_0x6afa47(0x9b)}]},'opencode':{'name':a334_0x6afa47(0xa9),'description':a334_0x6afa47(0x78),'folders':[a334_0x6afa47(0x83)],'files':[{'type':a334_0x6afa47(0x9e),'path':'.opencode/skills/lovrabet/SKILL.md'}]},'qoder':{'name':a334_0x6afa47(0xab),'description':a334_0x6afa47(0x9d),'folders':[a334_0x6afa47(0x99)],'files':[{'type':a334_0x6afa47(0x9e),'path':a334_0x6afa47(0x91)},{'type':a334_0x6afa47(0x9e),'path':a334_0x6afa47(0x93)}]},'codebuddy':{'name':a334_0x6afa47(0xa3),'description':a334_0x6afa47(0x8a),'folders':['.codebuddy'],'files':[{'type':'file','path':a334_0x6afa47(0x77)}]},'trae':{'name':a334_0x6afa47(0x7e),'description':'Trae\x20IDE','folders':[a334_0x6afa47(0x85)],'files':[{'type':a334_0x6afa47(0x9e),'path':a334_0x6afa47(0x88)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a334_0x6afa47(0x8b),'description':'Generic\x20template\x20fallback','folders':[a334_0x6afa47(0x87)],'files':[{'type':a334_0x6afa47(0x9e),'path':a334_0x6afa47(0x8c)}]},'antigravity':{'name':'Antigravity','description':a334_0x6afa47(0x94),'folders':[a334_0x6afa47(0x87)],'files':[{'type':a334_0x6afa47(0x9e),'path':'.agent/skills/lovrabet/SKILL.md'}]}};function a334_0x37a0(){const _0x31a7f8=['1718361mXBxxs','CodeBuddy\x20IDE','Other\x20(generic\x20template)','.agent/skills/lovrabet/SKILL.md','1661872cbFAIc','.cursor/skills/rabetbase.md','Cursor','agent','.qoder/rules/rabetbase.md','windsurf','.qoder/skills/lovrabet/SKILL.md','Antigravity\x20IDE','223131kNBGNK','15duSqsT','qoder','.claude/skills/lovrabet/SKILL.md','.qoder','1050455ysJGsX','.codex/skills/lovrabet/SKILL.md','trae','Qoder\x20IDE','file','9406848vFhypG','1692436WBpQQr','.cline','.windsurf','CodeBuddy','.claude','.cursor','Codex','Cline','cline','OpenCode','17150240JTMztM','Qoder','cursor','6gOfsPB','codex','.codebuddy/skills/lovrabet/SKILL.md','OpenCode\x20IDE','antigravity','Claude\x20Code','claude','22DWLGYe','codebuddy','Trae','Cursor\x20IDE','Codex\x20IDE','Windsurf','opencode','.opencode','.cline/skills/lovrabet/SKILL.md','.trae','Cline\x20IDE','.agent','.trae/skills/lovrabet/SKILL.md'];a334_0x37a0=function(){return _0x31a7f8;};return a334_0x37a0();}export const CORE_IDE_LIST=[a334_0x6afa47(0x7b),a334_0x6afa47(0xa8),a334_0x6afa47(0x7d),'codex',a334_0x6afa47(0x74),'opencode',a334_0x6afa47(0x97),a334_0x6afa47(0x9c),a334_0x6afa47(0x92)];export const IDE_LIST=[a334_0x6afa47(0x79),a334_0x6afa47(0x7b),a334_0x6afa47(0xa8),a334_0x6afa47(0x7d),a334_0x6afa47(0x76),a334_0x6afa47(0x74),a334_0x6afa47(0x82),'qoder',a334_0x6afa47(0x9c),a334_0x6afa47(0x92),a334_0x6afa47(0x90)];export const ALL_CORE_IDES=[a334_0x6afa47(0x74),a334_0x6afa47(0x92),a334_0x6afa47(0x7b),'cline','codex','opencode',a334_0x6afa47(0x97),a334_0x6afa47(0x7d),a334_0x6afa47(0x9c)];
@@ -1 +1 @@
1
- (function(_0x1fda74,_0x20f017){const _0x1e8dbf=a334_0x4cb6,_0x5a34d0=_0x1fda74();while(!![]){try{const _0x5b724e=parseInt(_0x1e8dbf(0x1fd))/0x1*(parseInt(_0x1e8dbf(0x1f5))/0x2)+parseInt(_0x1e8dbf(0x1fa))/0x3*(-parseInt(_0x1e8dbf(0x1fc))/0x4)+-parseInt(_0x1e8dbf(0x1f3))/0x5+parseInt(_0x1e8dbf(0x1f4))/0x6*(-parseInt(_0x1e8dbf(0x1fb))/0x7)+-parseInt(_0x1e8dbf(0x1f7))/0x8*(parseInt(_0x1e8dbf(0x1f6))/0x9)+parseInt(_0x1e8dbf(0x1f2))/0xa+parseInt(_0x1e8dbf(0x1f8))/0xb*(parseInt(_0x1e8dbf(0x1f9))/0xc);if(_0x5b724e===_0x20f017)break;else _0x5a34d0['push'](_0x5a34d0['shift']());}catch(_0x45538f){_0x5a34d0['push'](_0x5a34d0['shift']());}}}(a334_0x2e19,0x6ab00));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a334_0x4cb6(_0x433b6b,_0x16b04a){_0x433b6b=_0x433b6b-0x1f2;const _0x2e1989=a334_0x2e19();let _0x4cb68b=_0x2e1989[_0x433b6b];return _0x4cb68b;}import{CliErrors}from'../errors.js';function a334_0x2e19(){const _0x4b43b3=['12blaLGM','3mzLHms','518VqoeIU','2921768UDLYiG','1WGqhQn','6633980bbxMHE','1369110hRKtbZ','44922RJKLVq','1096526EiKMsC','63dLWTmP','788960PvMAUI','16213703kVHHnp'];a334_0x2e19=function(){return _0x4b43b3;};return a334_0x2e19();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x276403,_0x3d571a){const _0x260739=a335_0x369d,_0x5f26b4=_0x276403();while(!![]){try{const _0x2b67be=-parseInt(_0x260739(0x14a))/0x1+-parseInt(_0x260739(0x14c))/0x2+parseInt(_0x260739(0x14b))/0x3+parseInt(_0x260739(0x14d))/0x4*(parseInt(_0x260739(0x14e))/0x5)+-parseInt(_0x260739(0x152))/0x6*(-parseInt(_0x260739(0x14f))/0x7)+-parseInt(_0x260739(0x150))/0x8+parseInt(_0x260739(0x151))/0x9;if(_0x2b67be===_0x3d571a)break;else _0x5f26b4['push'](_0x5f26b4['shift']());}catch(_0x3b61a2){_0x5f26b4['push'](_0x5f26b4['shift']());}}}(a335_0x4ea2,0xc16d8));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a335_0x369d(_0x34800a,_0xb9eedf){_0x34800a=_0x34800a-0x14a;const _0x4ea2d1=a335_0x4ea2();let _0x369d82=_0x4ea2d1[_0x34800a];return _0x369d82;}function a335_0x4ea2(){const _0x33e908=['245uNaaZj','12432616UfEBUM','6790176GDDKdJ','45366jTclCc','236768BANWaW','4481052IBludA','2302498dvwQsf','4886364FGUVJT','5WMxnZe'];a335_0x4ea2=function(){return _0x33e908;};return a335_0x4ea2();}
@@ -1 +1 @@
1
- (function(_0xd47476,_0x3840ed){const _0x273919=a335_0x1229,_0x12902a=_0xd47476();while(!![]){try{const _0x1e8b69=parseInt(_0x273919(0x181))/0x1+-parseInt(_0x273919(0x17f))/0x2+-parseInt(_0x273919(0x17d))/0x3*(-parseInt(_0x273919(0x18c))/0x4)+parseInt(_0x273919(0x180))/0x5+parseInt(_0x273919(0x183))/0x6+parseInt(_0x273919(0x17c))/0x7*(parseInt(_0x273919(0x182))/0x8)+-parseInt(_0x273919(0x184))/0x9;if(_0x1e8b69===_0x3840ed)break;else _0x12902a['push'](_0x12902a['shift']());}catch(_0xc3310e){_0x12902a['push'](_0x12902a['shift']());}}}(a335_0xd5b8,0xdaf8d));function a335_0xd5b8(){const _0x2572fc=['24855390GcJKcT','/config/index.json','json','/config.json','node','stableVersion','sdk','cli','1210836MyGrOl','1995DFfUcU','3wIAgWR','now','3120858kXPmYL','3606890oRQRkL','921093WXzxHZ','43480mbJKeE','10349358XLNxYe'];a335_0xd5b8=function(){return _0x2572fc;};return a335_0xd5b8();}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x91af7a=a335_0x1229,_0x41691f=getTemplateBaseUrl(),_0x1e03be=[_0x41691f+_0x91af7a(0x187),_0x41691f+_0x91af7a(0x185)];for(const _0x3ab46a of _0x1e03be){try{const _0x15f516=await fetch(_0x3ab46a,{'headers':{'Accept':'application/json'}});if(!_0x15f516['ok'])continue;const _0x1ca5dd=await _0x15f516[_0x91af7a(0x186)]();if(!_0x1ca5dd[_0x91af7a(0x18b)]?.[_0x91af7a(0x189)]||!_0x1ca5dd[_0x91af7a(0x18a)]?.[_0x91af7a(0x188)]?.[_0x91af7a(0x189)])continue;return _0x1ca5dd;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];function a335_0x1229(_0x194bc5,_0x3c41fe){_0x194bc5=_0x194bc5-0x17c;const _0xd5b825=a335_0xd5b8();let _0x12297b=_0xd5b825[_0x194bc5];return _0x12297b;}export async function getCdnConfig(){const _0x4a0cce=a335_0x1229,_0x2226a1=Date[_0x4a0cce(0x17e)]();if(hasCachedConfig){const _0x182c41=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2226a1-cacheTime<_0x182c41)return cachedConfig;}const _0x389c59=await fetchCdnConfig();return cachedConfig=_0x389c59,cacheTime=_0x2226a1,hasCachedConfig=!![],_0x389c59;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ function a336_0x56d1(_0x2f4a55,_0x221aa9){_0x2f4a55=_0x2f4a55-0x1c0;const _0x3edaf4=a336_0x3eda();let _0x56d1d7=_0x3edaf4[_0x2f4a55];return _0x56d1d7;}(function(_0x368eca,_0x50a3ed){const _0x307198=a336_0x56d1,_0x420272=_0x368eca();while(!![]){try{const _0xcda50=-parseInt(_0x307198(0x1c8))/0x1*(-parseInt(_0x307198(0x1cb))/0x2)+parseInt(_0x307198(0x1d2))/0x3+-parseInt(_0x307198(0x1c3))/0x4*(-parseInt(_0x307198(0x1c6))/0x5)+-parseInt(_0x307198(0x1d0))/0x6+parseInt(_0x307198(0x1ce))/0x7*(-parseInt(_0x307198(0x1d1))/0x8)+parseInt(_0x307198(0x1c1))/0x9*(parseInt(_0x307198(0x1c5))/0xa)+-parseInt(_0x307198(0x1cf))/0xb*(-parseInt(_0x307198(0x1c2))/0xc);if(_0xcda50===_0x50a3ed)break;else _0x420272['push'](_0x420272['shift']());}catch(_0x5ac2cc){_0x420272['push'](_0x420272['shift']());}}}(a336_0x3eda,0x92a86));import{getTemplateBaseUrl}from'../utils/config.js';function a336_0x3eda(){const _0x52cf2f=['143WupXKh','2237622JzlkfZ','134648NzzfnN','321237cqTTxk','stableVersion','2259eYZHsR','716508nENFIT','1946652ljegyv','json','14070rDANIU','5DiLmRy','now','41187RKJHZM','/config.json','cli','20otlqOm','application/json','sdk','483JSCSAo'];a336_0x3eda=function(){return _0x52cf2f;};return a336_0x3eda();}export async function fetchCdnConfig(){const _0xab97ac=a336_0x56d1,_0x70080d=getTemplateBaseUrl(),_0x2f8746=[_0x70080d+_0xab97ac(0x1c9),_0x70080d+'/config/index.json'];for(const _0x346d25 of _0x2f8746){try{const _0x11211b=await fetch(_0x346d25,{'headers':{'Accept':_0xab97ac(0x1cc)}});if(!_0x11211b['ok'])continue;const _0x38dcbe=await _0x11211b[_0xab97ac(0x1c4)]();if(!_0x38dcbe[_0xab97ac(0x1ca)]?.[_0xab97ac(0x1c0)]||!_0x38dcbe[_0xab97ac(0x1cd)]?.['node']?.[_0xab97ac(0x1c0)])continue;return _0x38dcbe;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x46db67=a336_0x56d1,_0x10218=Date[_0x46db67(0x1c7)]();if(hasCachedConfig){const _0x431126=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x10218-cacheTime<_0x431126)return cachedConfig;}const _0xda7b93=await fetchCdnConfig();return cachedConfig=_0xda7b93,cacheTime=_0x10218,hasCachedConfig=!![],_0xda7b93;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- (function(_0x315bca,_0x3a5f65){const _0x3f0f19=a336_0x2d74,_0x458bb3=_0x315bca();while(!![]){try{const _0x11e2fe=parseInt(_0x3f0f19(0xda))/0x1*(parseInt(_0x3f0f19(0xdb))/0x2)+-parseInt(_0x3f0f19(0xde))/0x3*(-parseInt(_0x3f0f19(0xe5))/0x4)+-parseInt(_0x3f0f19(0xe3))/0x5*(parseInt(_0x3f0f19(0xdf))/0x6)+-parseInt(_0x3f0f19(0xc9))/0x7*(parseInt(_0x3f0f19(0xdc))/0x8)+parseInt(_0x3f0f19(0xca))/0x9*(-parseInt(_0x3f0f19(0xcd))/0xa)+parseInt(_0x3f0f19(0xdd))/0xb+-parseInt(_0x3f0f19(0xd9))/0xc;if(_0x11e2fe===_0x3a5f65)break;else _0x458bb3['push'](_0x458bb3['shift']());}catch(_0xc24a3e){_0x458bb3['push'](_0x458bb3['shift']());}}}(a336_0xfb10,0x485f8));function a336_0x2d74(_0xf6cfc5,_0x194616){_0xf6cfc5=_0xf6cfc5-0xc4;const _0xfb102b=a336_0xfb10();let _0x2d74ff=_0xfb102b[_0xf6cfc5];return _0x2d74ff;}import a336_0xd2befa from'node:fs';import a336_0x2abff9 from'node:path';import a336_0x17edcb from'semver';function a336_0xfb10(){const _0x3e9661=['\x20\x20\x20Upgrade\x20command:\x20','@lovrabet/sdk','version','utf8','needsUpgrade','existsSync','readFileSync','log','1706484DVCYhm','72659hqNnnC','10DTRhlT','8296AMrRQe','1148532tgISzu','42aufsOd','37404HdmcXE','join','coerce','npm\x20install\x20','115xUvwUc','stableVersion','137884xwDQph','latest','all','devDependencies','package.json','parse','node_modules','\x20\x20\x20Stable\x20version:\x20','↪\x20SDK\x20update\x20available','some','2401NZRvOm','113229tTuetL','node','utf-8','10XdXygK','packageName','sdk','dependencies'];a336_0xfb10=function(){return _0x3e9661;};return a336_0xfb10();}import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x4feb38){const _0xd8c91a=a336_0x2d74,_0x42d66f=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x42d66f[_0xd8c91a(0xc8)](_0xd264ce=>_0xd264ce['test'](_0x4feb38));}function getInstalledVersion(_0x54c59a,_0x1c623e){const _0x35e4b0=a336_0x2d74;try{const _0x59d5c0=a336_0x2abff9[_0x35e4b0(0xe0)](_0x54c59a,_0x35e4b0(0xc5),_0x1c623e,'package.json');if(a336_0xd2befa[_0x35e4b0(0xd6)](_0x59d5c0)){const _0x54c49f=JSON[_0x35e4b0(0xc4)](a336_0xd2befa['readFileSync'](_0x59d5c0,_0x35e4b0(0xcc)));return _0x54c49f[_0x35e4b0(0xd3)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x1eaf00=a336_0x2d74;try{const _0x381310=await getCdnConfig();return _0x381310?.[_0x1eaf00(0xcf)]?.[_0x1eaf00(0xcb)]?.[_0x1eaf00(0xe4)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x1c2f00=a336_0x2d74;try{const _0x2c481f=await getCdnConfig();return _0x2c481f?.[_0x1c2f00(0xcf)]?.['node']?.[_0x1c2f00(0xce)]||_0x1c2f00(0xd2);}catch{return _0x1c2f00(0xd2);}}export async function checkSdkVersion(_0xa394c8){const _0x19bb91=a336_0x2d74,_0x17be83=a336_0x2abff9['join'](_0xa394c8,_0x19bb91(0xe9)),[_0x355d8b,_0x7b812d]=await Promise[_0x19bb91(0xe7)]([getSdkStableVersion(),getSdkPackageName()]),_0x551e94=_0x355d8b||FALLBACK_MIN_SDK_VERSION;if(!a336_0xd2befa[_0x19bb91(0xd6)](_0x17be83))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x551e94,'packageName':_0x7b812d,'stableVersion':_0x355d8b};try{const _0x58435b=JSON['parse'](a336_0xd2befa[_0x19bb91(0xd7)](_0x17be83,'utf8')),_0x3a8b55=_0x58435b[_0x19bb91(0xd0)]||{},_0x456dbc=_0x58435b['devDependencies']||{},_0xfe8b81=_0x3a8b55[_0x7b812d]||_0x456dbc[_0x7b812d];if(!_0xfe8b81)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x551e94,'packageName':_0x7b812d,'stableVersion':_0x355d8b};let _0x17089f=getInstalledVersion(_0xa394c8,_0x7b812d);!_0x17089f&&(_0x17089f=_0xfe8b81);if(isNonNumericVersion(_0xfe8b81))return{'installed':!![],'version':_0x17089f,'needsUpgrade':![],'minVersion':_0x551e94,'packageName':_0x7b812d,'stableVersion':_0x355d8b};const _0x9671d9=a336_0x17edcb[_0x19bb91(0xe1)](_0x17089f),_0x16f2ee=a336_0x17edcb[_0x19bb91(0xe1)](_0x551e94),_0x57db11=_0x9671d9&&_0x16f2ee?a336_0x17edcb['lt'](_0x9671d9,_0x16f2ee):![];return{'installed':!![],'version':_0x17089f,'needsUpgrade':_0x57db11,'minVersion':_0x551e94,'packageName':_0x7b812d,'stableVersion':_0x355d8b};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x551e94,'packageName':_0x7b812d,'stableVersion':_0x355d8b};}}export function checkSdkVersionSync(_0x505ccc){const _0x153a12=a336_0x2d74,_0x4b78d8=a336_0x2abff9[_0x153a12(0xe0)](_0x505ccc,_0x153a12(0xe9)),_0x474619=_0x153a12(0xd2);if(!a336_0xd2befa['existsSync'](_0x4b78d8))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x474619,'stableVersion':null};try{const _0x3d01da=JSON[_0x153a12(0xc4)](a336_0xd2befa[_0x153a12(0xd7)](_0x4b78d8,_0x153a12(0xd4))),_0x4431c5=_0x3d01da[_0x153a12(0xd0)]||{},_0x3891ad=_0x3d01da[_0x153a12(0xe8)]||{},_0x102668=_0x4431c5[_0x474619]||_0x3891ad[_0x474619];if(!_0x102668)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x474619,'stableVersion':null};let _0x464f7f=getInstalledVersion(_0x505ccc,_0x474619);!_0x464f7f&&(_0x464f7f=_0x102668);if(isNonNumericVersion(_0x102668))return{'installed':!![],'version':_0x464f7f,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x474619,'stableVersion':null};const _0x55116d=a336_0x17edcb[_0x153a12(0xe1)](_0x464f7f),_0x171639=_0x55116d?a336_0x17edcb['lt'](_0x55116d,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x464f7f,'needsUpgrade':_0x171639,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x474619,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x474619,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x24caff){const _0x3392b5=a336_0x2d74;if(!_0x24caff[_0x3392b5(0xd5)])return;const _0x1bbdba='\x1b[33m',_0x3227be='\x1b[0m',_0x126c15='\x1b[1m',_0x467319=_0x24caff[_0x3392b5(0xce)]||_0x3392b5(0xd2),_0x1ddfa2=_0x24caff[_0x3392b5(0xe4)]||_0x24caff['minVersion'],_0xa9150a=_0x3392b5(0xe2)+_0x467319+'@'+(_0x1ddfa2||_0x3392b5(0xe6));console[_0x3392b5(0xd8)](),console[_0x3392b5(0xd8)](''+_0x1bbdba+_0x126c15+_0x3392b5(0xc7)+_0x3227be),console[_0x3392b5(0xd8)](_0x1bbdba+'\x20\x20\x20Current\x20version:\x20'+_0x467319+'@'+_0x24caff[_0x3392b5(0xd3)]+_0x3227be),console['log'](_0x1bbdba+_0x3392b5(0xc6)+_0x1ddfa2+_0x3227be),console[_0x3392b5(0xd8)](_0x1bbdba+_0x3392b5(0xd1)+_0xa9150a+_0x3227be),console['log']();}
1
+ const a337_0x1f068f=a337_0x1792;(function(_0x68fbfb,_0x213d03){const _0xc0b8c4=a337_0x1792,_0x570ef1=_0x68fbfb();while(!![]){try{const _0x191781=parseInt(_0xc0b8c4(0xbe))/0x1*(parseInt(_0xc0b8c4(0xb1))/0x2)+-parseInt(_0xc0b8c4(0xae))/0x3+parseInt(_0xc0b8c4(0xb2))/0x4+-parseInt(_0xc0b8c4(0xc2))/0x5*(parseInt(_0xc0b8c4(0xc9))/0x6)+-parseInt(_0xc0b8c4(0xcb))/0x7*(-parseInt(_0xc0b8c4(0xba))/0x8)+parseInt(_0xc0b8c4(0xbd))/0x9+-parseInt(_0xc0b8c4(0xbf))/0xa;if(_0x191781===_0x213d03)break;else _0x570ef1['push'](_0x570ef1['shift']());}catch(_0x318541){_0x570ef1['push'](_0x570ef1['shift']());}}}(a337_0x5016,0xc9163));function a337_0x5016(){const _0xe446fe=['utf8','parse','\x1b[1m','7229532PzdYtF','log','419993rSCaoo','1.2.0','devDependencies','latest','node_modules','existsSync','\x20\x20\x20Current\x20version:\x20','2201169iUhhIU','join','version','428300jVzOXo','6345464WdMOWN','node','package.json','@lovrabet/sdk','packageName','needsUpgrade','stableVersion','dependencies','56kVzNaq','all','minVersion','10639503qaduQU','6zynnYY','17111300NNHDWl','\x20\x20\x20Upgrade\x20command:\x20','\x1b[33m','5xfhlMs','sdk','coerce','utf-8'];a337_0x5016=function(){return _0xe446fe;};return a337_0x5016();}import a337_0x2810f3 from'node:fs';import a337_0x3cfc71 from'node:path';import a337_0x599c30 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a337_0x1f068f(0xcc);function isNonNumericVersion(_0x312e69){const _0x3dd182=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x3dd182['some'](_0x4c2551=>_0x4c2551['test'](_0x312e69));}function getInstalledVersion(_0x201175,_0xffe5b1){const _0xabab3e=a337_0x1f068f;try{const _0x352289=a337_0x3cfc71['join'](_0x201175,_0xabab3e(0xab),_0xffe5b1,'package.json');if(a337_0x2810f3[_0xabab3e(0xac)](_0x352289)){const _0x349d15=JSON[_0xabab3e(0xc7)](a337_0x2810f3['readFileSync'](_0x352289,_0xabab3e(0xc5)));return _0x349d15[_0xabab3e(0xb0)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0xc6613f=a337_0x1f068f;try{const _0x42ddfa=await getCdnConfig();return _0x42ddfa?.[_0xc6613f(0xc3)]?.['node']?.[_0xc6613f(0xb8)]||null;}catch{return null;}}function a337_0x1792(_0x4d76dc,_0x289556){_0x4d76dc=_0x4d76dc-0xaa;const _0x5016a6=a337_0x5016();let _0x1792c3=_0x5016a6[_0x4d76dc];return _0x1792c3;}async function getSdkPackageName(){const _0x3494b6=a337_0x1f068f;try{const _0x242624=await getCdnConfig();return _0x242624?.['sdk']?.[_0x3494b6(0xb3)]?.[_0x3494b6(0xb6)]||'@lovrabet/sdk';}catch{return _0x3494b6(0xb5);}}export async function checkSdkVersion(_0x4fa23b){const _0x12ebe0=a337_0x1f068f,_0xd7ba06=a337_0x3cfc71[_0x12ebe0(0xaf)](_0x4fa23b,'package.json'),[_0x3cb4a8,_0x3251dc]=await Promise[_0x12ebe0(0xbb)]([getSdkStableVersion(),getSdkPackageName()]),_0x3c892a=_0x3cb4a8||FALLBACK_MIN_SDK_VERSION;if(!a337_0x2810f3[_0x12ebe0(0xac)](_0xd7ba06))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3c892a,'packageName':_0x3251dc,'stableVersion':_0x3cb4a8};try{const _0x27962a=JSON['parse'](a337_0x2810f3['readFileSync'](_0xd7ba06,_0x12ebe0(0xc6))),_0x44e50e=_0x27962a[_0x12ebe0(0xb9)]||{},_0x1638a6=_0x27962a['devDependencies']||{},_0x5c76b1=_0x44e50e[_0x3251dc]||_0x1638a6[_0x3251dc];if(!_0x5c76b1)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3c892a,'packageName':_0x3251dc,'stableVersion':_0x3cb4a8};let _0x680710=getInstalledVersion(_0x4fa23b,_0x3251dc);!_0x680710&&(_0x680710=_0x5c76b1);if(isNonNumericVersion(_0x5c76b1))return{'installed':!![],'version':_0x680710,'needsUpgrade':![],'minVersion':_0x3c892a,'packageName':_0x3251dc,'stableVersion':_0x3cb4a8};const _0x3adc06=a337_0x599c30[_0x12ebe0(0xc4)](_0x680710),_0x2ed25e=a337_0x599c30['coerce'](_0x3c892a),_0x2a95f6=_0x3adc06&&_0x2ed25e?a337_0x599c30['lt'](_0x3adc06,_0x2ed25e):![];return{'installed':!![],'version':_0x680710,'needsUpgrade':_0x2a95f6,'minVersion':_0x3c892a,'packageName':_0x3251dc,'stableVersion':_0x3cb4a8};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3c892a,'packageName':_0x3251dc,'stableVersion':_0x3cb4a8};}}export function checkSdkVersionSync(_0x1865ca){const _0x265f12=a337_0x1f068f,_0x2ee6d0=a337_0x3cfc71[_0x265f12(0xaf)](_0x1865ca,_0x265f12(0xb4)),_0x55655b=_0x265f12(0xb5);if(!a337_0x2810f3['existsSync'](_0x2ee6d0))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x55655b,'stableVersion':null};try{const _0x5d8ce2=JSON['parse'](a337_0x2810f3['readFileSync'](_0x2ee6d0,'utf8')),_0x392ce7=_0x5d8ce2[_0x265f12(0xb9)]||{},_0x613eb0=_0x5d8ce2[_0x265f12(0xcd)]||{},_0x5321f3=_0x392ce7[_0x55655b]||_0x613eb0[_0x55655b];if(!_0x5321f3)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x55655b,'stableVersion':null};let _0xc22ea=getInstalledVersion(_0x1865ca,_0x55655b);!_0xc22ea&&(_0xc22ea=_0x5321f3);if(isNonNumericVersion(_0x5321f3))return{'installed':!![],'version':_0xc22ea,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x55655b,'stableVersion':null};const _0x4d92f0=a337_0x599c30[_0x265f12(0xc4)](_0xc22ea),_0x426173=_0x4d92f0?a337_0x599c30['lt'](_0x4d92f0,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0xc22ea,'needsUpgrade':_0x426173,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x55655b,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x55655b,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x283e4a){const _0x5cdad9=a337_0x1f068f;if(!_0x283e4a[_0x5cdad9(0xb7)])return;const _0x5c5ede=_0x5cdad9(0xc1),_0x392082='\x1b[0m',_0x540b87=_0x5cdad9(0xc8),_0x8a9795=_0x283e4a[_0x5cdad9(0xb6)]||_0x5cdad9(0xb5),_0x23ab34=_0x283e4a[_0x5cdad9(0xb8)]||_0x283e4a[_0x5cdad9(0xbc)],_0x49c569='npm\x20install\x20'+_0x8a9795+'@'+(_0x23ab34||_0x5cdad9(0xaa));console['log'](),console[_0x5cdad9(0xca)](''+_0x5c5ede+_0x540b87+'↪\x20SDK\x20update\x20available'+_0x392082),console['log'](_0x5c5ede+_0x5cdad9(0xad)+_0x8a9795+'@'+_0x283e4a[_0x5cdad9(0xb0)]+_0x392082),console[_0x5cdad9(0xca)](_0x5c5ede+'\x20\x20\x20Stable\x20version:\x20'+_0x23ab34+_0x392082),console['log'](_0x5c5ede+_0x5cdad9(0xc0)+_0x49c569+_0x392082),console[_0x5cdad9(0xca)]();}