@lovrabet/rabetbase-cli 2.5.3-beta.3 → 2.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (361) 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/index.js +1 -1
  249. package/lib/commands/workspace/add.js +1 -1
  250. package/lib/commands/workspace/index.js +1 -1
  251. package/lib/commands/workspace/remove.js +1 -1
  252. package/lib/config/domain-config.js +1 -1
  253. package/lib/config/project-domain-routing.js +1 -1
  254. package/lib/config/region-config.js +1 -1
  255. package/lib/config/schema.js +1 -1
  256. package/lib/constant/cdn.d.ts +5 -3
  257. package/lib/constant/cdn.js +1 -1
  258. package/lib/constant/cli.js +1 -1
  259. package/lib/constant/defaults.js +1 -1
  260. package/lib/constant/domain.js +1 -1
  261. package/lib/constant/env.js +1 -1
  262. package/lib/constant/output.js +1 -1
  263. package/lib/constant/paths.js +1 -1
  264. package/lib/constant/region.js +1 -1
  265. package/lib/constant/risk.js +1 -1
  266. package/lib/constant/routing-profile.js +1 -1
  267. package/lib/context/app-resolver.js +1 -1
  268. package/lib/context/auth-resolver.js +1 -1
  269. package/lib/context/config-loader.js +1 -1
  270. package/lib/context.js +1 -1
  271. package/lib/core/alias-resolver.js +1 -1
  272. package/lib/core/api-client.js +1 -1
  273. package/lib/core/bff/config.js +1 -1
  274. package/lib/core/bff/file-system.js +1 -1
  275. package/lib/core/bff/hash.js +1 -1
  276. package/lib/core/bff/hook-directory.js +1 -1
  277. package/lib/core/bff/lock.js +1 -1
  278. package/lib/core/bff/utils.js +1 -1
  279. package/lib/core/cross-db-relation.js +1 -1
  280. package/lib/core/db-resolver.js +1 -1
  281. package/lib/core/flow-config.js +1 -1
  282. package/lib/core/instant-api-policy/config.js +1 -1
  283. package/lib/core/kb-search-client.js +1 -1
  284. package/lib/core/page/file-system.js +1 -1
  285. package/lib/core/page/hash.js +1 -1
  286. package/lib/core/page/lock.js +1 -1
  287. package/lib/core/page/lr-smart-jsx.js +1 -1
  288. package/lib/core/sql-index-auditor.js +1 -1
  289. package/lib/core/sql-sync/config.js +1 -1
  290. package/lib/core/sql-sync/file-system.js +1 -1
  291. package/lib/core/sql-sync/hash.js +1 -1
  292. package/lib/core/sql-sync/lock.js +1 -1
  293. package/lib/core/sql-sync/utils.js +1 -1
  294. package/lib/core/sql-validator.js +1 -1
  295. package/lib/errors.js +1 -1
  296. package/lib/framework/build-all-flags.js +1 -1
  297. package/lib/framework/error-output.js +1 -1
  298. package/lib/framework/explicit-yes.js +1 -1
  299. package/lib/framework/flags.js +1 -1
  300. package/lib/framework/help.js +1 -1
  301. package/lib/framework/index.js +1 -1
  302. package/lib/framework/output.js +1 -1
  303. package/lib/framework/response.js +1 -1
  304. package/lib/framework/runner-alias.js +1 -1
  305. package/lib/framework/runner.js +1 -1
  306. package/lib/framework/schema-export.js +1 -1
  307. package/lib/framework/supported-flags.js +1 -1
  308. package/lib/framework/types.js +1 -1
  309. package/lib/generated/build-info.d.ts +4 -4
  310. package/lib/generated/build-info.js +1 -1
  311. package/lib/generated/official-routing.js +1 -1
  312. package/lib/generated/routing-contract.js +1 -1
  313. package/lib/help.js +1 -1
  314. package/lib/postinstall.js +1 -1
  315. package/lib/runtime/confirmation.js +1 -1
  316. package/lib/runtime/event.js +1 -1
  317. package/lib/runtime/index.js +1 -1
  318. package/lib/runtime/queue.js +1 -1
  319. package/lib/runtime/resolve.js +1 -1
  320. package/lib/skills/builtin-skill.js +1 -1
  321. package/lib/skills/main.js +1 -1
  322. package/lib/skills/npx-skills-add.js +1 -1
  323. package/lib/skills/skill-presence.js +1 -1
  324. package/lib/telemetry/cli-command-trace.js +1 -1
  325. package/lib/telemetry/cli-help-trace.js +1 -1
  326. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  327. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  328. package/lib/telemetry/send-cli-trace-log.js +1 -1
  329. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  330. package/lib/utils/ai_config.js +1 -1
  331. package/lib/utils/apply-jq-filter.js +1 -1
  332. package/lib/utils/cdn-config.js +1 -1
  333. package/lib/utils/check-sdk-version.js +1 -1
  334. package/lib/utils/cli-version-check.js +1 -1
  335. package/lib/utils/cli-version-policy.d.ts +7 -0
  336. package/lib/utils/cli-version-policy.js +1 -1
  337. package/lib/utils/config.js +1 -1
  338. package/lib/utils/entity-with-id.js +1 -1
  339. package/lib/utils/file-utils.js +1 -1
  340. package/lib/utils/guides-cdn.js +1 -1
  341. package/lib/utils/http-client.js +1 -1
  342. package/lib/utils/is-non-interactive.js +1 -1
  343. package/lib/utils/logger.js +1 -1
  344. package/lib/utils/params.js +1 -1
  345. package/lib/utils/platform.js +1 -1
  346. package/lib/utils/sleep.js +1 -1
  347. package/lib/utils/template-replacer.js +1 -1
  348. package/lib/utils/update-notice.js +1 -1
  349. package/lib/utils/version.js +1 -1
  350. package/lib/utils/with-active-cookie.js +1 -1
  351. package/lib/utils/write-cli-side-channel.js +1 -1
  352. package/package.json +3 -1
  353. package/skills/rabetbase/SKILL.md +7 -5
  354. package/skills/rabetbase/guides/backend-function.md +5 -1
  355. package/skills/rabetbase/guides/bff-creation-workflow.md +3 -1
  356. package/skills/rabetbase/guides/cross-database-bff.md +70 -0
  357. package/skills/rabetbase/guides/data-api-guidelines.md +35 -33
  358. package/skills/rabetbase/guides/sql-creation-workflow.md +2 -0
  359. package/skills/rabetbase/references/rabetbase-dataset-cross-relations.md +5 -1
  360. package/skills/rabetbase.manifest.json +4 -3
  361. package/templates/README.md +41 -13
@@ -1 +1 @@
1
- (function(_0x2572ff,_0x31c275){const _0x823df7=a317_0x4a7b,_0x3903f6=_0x2572ff();while(!![]){try{const _0x5d3eef=-parseInt(_0x823df7(0xee))/0x1*(parseInt(_0x823df7(0xec))/0x2)+parseInt(_0x823df7(0xf3))/0x3*(parseInt(_0x823df7(0xe5))/0x4)+-parseInt(_0x823df7(0xf4))/0x5+parseInt(_0x823df7(0xe6))/0x6+-parseInt(_0x823df7(0xf0))/0x7+parseInt(_0x823df7(0xea))/0x8*(-parseInt(_0x823df7(0xed))/0x9)+parseInt(_0x823df7(0xe9))/0xa*(parseInt(_0x823df7(0xe4))/0xb);if(_0x5d3eef===_0x31c275)break;else _0x3903f6['push'](_0x3903f6['shift']());}catch(_0x44cff0){_0x3903f6['push'](_0x3903f6['shift']());}}}(a317_0x1391,0x7f0d2));function a317_0x1391(){const _0x452f4e=['586asIoRG','6192837pWIjDL','3191StipSy','rabetbase.write.completed','407456sWJsIX','conflicts','isArray','411FMYULq','868665shDhhv','service','filter','command','split','771177BKabdZ','29388EbBVtz','1062246ioDBpk','high-risk-write','risk','170PwqbDu','8Gwmhjz','join'];a317_0x1391=function(){return _0x452f4e;};return a317_0x1391();}export function canonicalRabetbaseOperation(_0x2bfa5e){const _0x40706e=a317_0x4a7b;return[_0x2bfa5e[_0x40706e(0xf5)],..._0x2bfa5e[_0x40706e(0xf7)]['trim']()[_0x40706e(0xe3)](/\s+/)][_0x40706e(0xf6)](Boolean)[_0x40706e(0xeb)]('.');}export function createRabetbaseWriteMetadata(_0x4f30d5,_0x5a2ce5,_0x478e39,_0x12f3d4){const _0x38eff4=a317_0x4a7b;if(_0x12f3d4||_0x478e39['ok']!==!![]||hasUnresolvedConflicts(_0x478e39)||_0x4f30d5[_0x38eff4(0xe8)]!=='write'&&_0x4f30d5[_0x38eff4(0xe8)]!==_0x38eff4(0xe7))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x38eff4(0xef),'operation':_0x5a2ce5,'risk':_0x4f30d5[_0x38eff4(0xe8)]}}};}function a317_0x4a7b(_0x2914d2,_0x3d79d0){_0x2914d2=_0x2914d2-0xe3;const _0x1391d5=a317_0x1391();let _0x4a7bf1=_0x1391d5[_0x2914d2];return _0x4a7bf1;}function hasUnresolvedConflicts(_0x38526c){const _0x12f5ec=a317_0x4a7b,_0xd7f7b2=_0x38526c['data'];return Boolean(_0xd7f7b2&&typeof _0xd7f7b2==='object'&&!Array['isArray'](_0xd7f7b2)&&Array[_0x12f5ec(0xf2)](_0xd7f7b2[_0x12f5ec(0xf1)])&&_0xd7f7b2[_0x12f5ec(0xf1)]['length']>0x0);}
1
+ function a317_0xc040(){const _0xf3babb=['join','rabetbase.write.completed','3066816ypInzX','command','high-risk-write','2PAiteq','isArray','838701SLlayV','conflicts','object','3110524zYeSwX','126uhYDtJ','service','filter','2880261SZyVLg','534222Xnaxga','length','risk','trim','1075535suqhRr','432334fntvzQ'];a317_0xc040=function(){return _0xf3babb;};return a317_0xc040();}(function(_0x2178a0,_0x12c25d){const _0x1a24ea=a317_0x36b5,_0x57265d=_0x2178a0();while(!![]){try{const _0x5dfa4e=-parseInt(_0x1a24ea(0x17f))/0x1+-parseInt(_0x1a24ea(0x18a))/0x2*(-parseInt(_0x1a24ea(0x18c))/0x3)+parseInt(_0x1a24ea(0x18f))/0x4+-parseInt(_0x1a24ea(0x183))/0x5+-parseInt(_0x1a24ea(0x190))/0x6*(-parseInt(_0x1a24ea(0x184))/0x7)+-parseInt(_0x1a24ea(0x187))/0x8+-parseInt(_0x1a24ea(0x17e))/0x9;if(_0x5dfa4e===_0x12c25d)break;else _0x57265d['push'](_0x57265d['shift']());}catch(_0x2630ee){_0x57265d['push'](_0x57265d['shift']());}}}(a317_0xc040,0xdc172));export function canonicalRabetbaseOperation(_0x459be2){const _0x2a61ae=a317_0x36b5;return[_0x459be2[_0x2a61ae(0x191)],..._0x459be2[_0x2a61ae(0x188)][_0x2a61ae(0x182)]()['split'](/\s+/)][_0x2a61ae(0x192)](Boolean)[_0x2a61ae(0x185)]('.');}function a317_0x36b5(_0x47e964,_0x5d460f){_0x47e964=_0x47e964-0x17e;const _0xc0403e=a317_0xc040();let _0x36b5e2=_0xc0403e[_0x47e964];return _0x36b5e2;}export function createRabetbaseWriteMetadata(_0xc1f0fd,_0x15edb7,_0x2eea95,_0x298c61){const _0x3becb8=a317_0x36b5;if(_0x298c61||_0x2eea95['ok']!==!![]||hasUnresolvedConflicts(_0x2eea95)||_0xc1f0fd[_0x3becb8(0x181)]!=='write'&&_0xc1f0fd[_0x3becb8(0x181)]!==_0x3becb8(0x189))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x3becb8(0x186),'operation':_0x15edb7,'risk':_0xc1f0fd['risk']}}};}function hasUnresolvedConflicts(_0xe54c6d){const _0x30b92d=a317_0x36b5,_0x443c90=_0xe54c6d['data'];return Boolean(_0x443c90&&typeof _0x443c90===_0x30b92d(0x18e)&&!Array[_0x30b92d(0x18b)](_0x443c90)&&Array[_0x30b92d(0x18b)](_0x443c90[_0x30b92d(0x18d)])&&_0x443c90[_0x30b92d(0x18d)][_0x30b92d(0x180)]>0x0);}
@@ -1 +1 @@
1
- (function(_0x2fc4b7,_0x1939e6){const _0x2ab61a=a318_0x144a,_0x40c41a=_0x2fc4b7();while(!![]){try{const _0x4c809d=-parseInt(_0x2ab61a(0x1fa))/0x1*(-parseInt(_0x2ab61a(0x1fd))/0x2)+parseInt(_0x2ab61a(0x1f6))/0x3*(-parseInt(_0x2ab61a(0x1f8))/0x4)+parseInt(_0x2ab61a(0x1e1))/0x5+parseInt(_0x2ab61a(0x1ea))/0x6*(-parseInt(_0x2ab61a(0x1e8))/0x7)+-parseInt(_0x2ab61a(0x1e0))/0x8+-parseInt(_0x2ab61a(0x1f9))/0x9*(-parseInt(_0x2ab61a(0x1e5))/0xa)+parseInt(_0x2ab61a(0x1fe))/0xb;if(_0x4c809d===_0x1939e6)break;else _0x40c41a['push'](_0x40c41a['shift']());}catch(_0x40ea7e){_0x40c41a['push'](_0x40c41a['shift']());}}}(a318_0x3345,0xc865f));import{buildConfigFromFlags,initGlobalEnvironment,isRoutingRecoveryService}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';function a318_0x3345(){const _0xe686fd=['service','high-risk-write','confirm','stringify','Rabetbase\x20invocation\x20aborted.','data','signal','7079232xGmvTa','1028880WvmGcz','riskLevel','aborted','message','110cuyWaC','definition','reason','70pIdkWs','result','924906KjaBcV','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','dryRun','args','present','rawFlags','risk','presentation','command','isNonInteractive','AbortError','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','75GRznxE','execute','218936rEJUCv','510993nEOLwm','38603ZwPRnO','dry-run','format','26JjoSrx','36117763xVOwUC','yes'];a318_0x3345=function(){return _0xe686fd;};return a318_0x3345();}function a318_0x144a(_0x28fcca,_0x53d536){_0x28fcca=_0x28fcca-0x1dc;const _0x3345f7=a318_0x3345();let _0x144ae3=_0x3345f7[_0x28fcca];return _0x144ae3;}import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x4bb78a,command:_0x1cb696,risk:_0x2c2603,dryRun:_0x33716a}){const _0x1e907d=a318_0x144a;return JSON[_0x1e907d(0x1dc)]({'ok':_0x4bb78a['ok'],'command':_0x1cb696,'risk':_0x2c2603,..._0x33716a?{'dryRun':!![]}:{},..._0x4bb78a[_0x1e907d(0x1de)]!==undefined?{'data':_0x4bb78a[_0x1e907d(0x1de)]}:{},..._0x4bb78a['message']?{'message':_0x4bb78a[_0x1e907d(0x1e4)]}:{}});}};export async function invokeRabetbase(_0x48a646,_0x1d83e3){const _0x31294b=a318_0x144a;throwIfAborted(_0x1d83e3[_0x31294b(0x1df)]);const _0x1b3c13=await resolveRabetbaseInvocation(_0x48a646),_0x40c9b7=canonicalRabetbaseOperation(_0x1b3c13[_0x31294b(0x1e6)]);return await confirmWriteBeforeQueue(_0x1b3c13[_0x31294b(0x1e6)],_0x1b3c13['rawFlags'],_0x40c9b7,_0x1d83e3),runSerialized(async()=>{const _0x139363=_0x31294b,_0x51e042={};try{throwIfAborted(_0x1d83e3[_0x139363(0x1df)]);const _0x3f8792=buildConfigFromFlags(_0x1b3c13[_0x139363(0x1ef)]);!isRoutingRecoveryService(_0x1b3c13[_0x139363(0x1e6)][_0x139363(0x200)])&&await initGlobalEnvironment(_0x3f8792);const _0x13b4e1=createPipelineEnv(_0x3f8792,{..._0x1b3c13['rawFlags'],'yes':_0x1b3c13[_0x139363(0x1e6)][_0x139363(0x1f0)]===_0x139363(0x201)?!![]:_0x1b3c13[_0x139363(0x1ef)][_0x139363(0x1ff)],'nonInteractive':!![]},_0x1b3c13[_0x139363(0x1ed)]);_0x13b4e1[_0x139363(0x1f3)]=!![],_0x13b4e1[_0x139363(0x1e2)]='high-risk-write';const _0x342a3c=withAbortSignal(_0x1b3c13[_0x139363(0x1e6)],_0x1d83e3[_0x139363(0x1df)]),_0x17503e=createRabetbaseRunnerAdapter({'formatOutput'(_0x3531be,_0xb2d8ea){const _0x536fde=_0x139363;_0x51e042[_0x536fde(0x1e9)]=_0x3531be,_0x51e042[_0x536fde(0x1f2)]=_0xb2d8ea[_0x536fde(0x1f2)],_0x51e042[_0x536fde(0x1f0)]=_0xb2d8ea[_0x536fde(0x1f0)],_0x51e042['format']=_0xb2d8ea[_0x536fde(0x1fc)],_0x51e042['dryRun']=_0xb2d8ea[_0x536fde(0x1ec)]===!![];},async 'confirmHighRisk'(){const _0xc6c389=_0x139363;throw new Error(_0xc6c389(0x1f5));}});await runCommand(_0x342a3c,_0x13b4e1,_0x17503e);if(!_0x51e042['result']||!_0x51e042[_0x139363(0x1f2)]||!_0x51e042[_0x139363(0x1f0)]||!_0x51e042['format'])throw new Error(_0x139363(0x1eb));const _0x18cbf0=_0x51e042[_0x139363(0x1ec)]===!![],_0x1a9b29=_0x1d83e3[_0x139363(0x1f1)]??defaultPresentation,_0x57de58={'result':_0x51e042['result'],'command':_0x51e042['command'],'operation':_0x40c9b7,'risk':_0x51e042[_0x139363(0x1f0)],'format':_0x51e042[_0x139363(0x1fc)],'dryRun':_0x18cbf0},_0x12c9bd=createRabetbaseWriteMetadata(_0x1b3c13['definition'],_0x40c9b7,_0x51e042[_0x139363(0x1e9)],_0x18cbf0);let _0xb45e37;try{_0xb45e37=await _0x1a9b29[_0x139363(0x1ee)](_0x57de58);}catch(_0x3196d7){if(!_0x12c9bd||_0x1a9b29===defaultPresentation)throw _0x3196d7;_0xb45e37=await defaultPresentation[_0x139363(0x1ee)](_0x57de58);}return{'operation':_0x40c9b7,'risk':_0x51e042[_0x139363(0x1f0)],'mode':_0x18cbf0?_0x139363(0x1fb):'execute','result':_0x51e042[_0x139363(0x1e9)],'output':_0xb45e37,..._0x12c9bd?{'metadata':_0x12c9bd}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x603272,_0x50b66e,_0x334aea,_0x9fd8b4){const _0x4258b4=a318_0x144a;if(_0x50b66e['dryRun']===!![]||_0x603272['risk']!=='write'&&_0x603272[_0x4258b4(0x1f0)]!==_0x4258b4(0x201))return;await _0x9fd8b4['confirmation'][_0x4258b4(0x202)](buildRabetbaseConfirmationRequest(_0x603272,_0x334aea,_0x9fd8b4[_0x4258b4(0x1df)]));}function withAbortSignal(_0x22e1f2,_0x113c45){return{..._0x22e1f2,async 'execute'(_0x3f1290){const _0x38713e=a318_0x144a;return throwIfAborted(_0x113c45),_0x22e1f2[_0x38713e(0x1f7)]({..._0x3f1290,'signal':_0x113c45});}};}function throwIfAborted(_0x3a41cb){const _0x5916cb=a318_0x144a;if(_0x3a41cb?.[_0x5916cb(0x1e3)])throw _0x3a41cb['reason']instanceof Error?_0x3a41cb[_0x5916cb(0x1e7)]:new DOMException(_0x5916cb(0x1dd),_0x5916cb(0x1f4));}
1
+ function a318_0x3176(){const _0x1afb7d=['present','isNonInteractive','signal','10eVdtHl','message','1lNrOLf','46614MvOMyT','service','14596JMywEs','40MHTiVA','301jnUQlf','result','write','args','format','2203238HfOPxf','dryRun','yes','command','definition','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','dry-run','8001224OmLnLw','reason','807039fopYmR','rawFlags','confirm','confirmation','2733872uAZnIb','high-risk-write','AbortError','risk','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','presentation','data','aborted','2694036uCnUuq','riskLevel'];a318_0x3176=function(){return _0x1afb7d;};return a318_0x3176();}(function(_0x18ad1f,_0x5de520){const _0x455ef3=a318_0x2d02,_0x4c6c7f=_0x18ad1f();while(!![]){try{const _0x4b36ec=parseInt(_0x455ef3(0xb3))/0x1*(parseInt(_0x455ef3(0xbd))/0x2)+-parseInt(_0x455ef3(0xac))/0x3+parseInt(_0x455ef3(0xb6))/0x4*(parseInt(_0x455ef3(0xb1))/0x5)+-parseInt(_0x455ef3(0xb4))/0x6*(parseInt(_0x455ef3(0xb8))/0x7)+parseInt(_0x455ef3(0xa4))/0x8+-parseInt(_0x455ef3(0xa0))/0x9*(parseInt(_0x455ef3(0xb7))/0xa)+parseInt(_0x455ef3(0x9e))/0xb;if(_0x4b36ec===_0x5de520)break;else _0x4c6c7f['push'](_0x4c6c7f['shift']());}catch(_0x13b372){_0x4c6c7f['push'](_0x4c6c7f['shift']());}}}(a318_0x3176,0x8f608));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_0x2d02(_0x1b3131,_0x3795aa){_0x1b3131=_0x1b3131-0x9d;const _0x31760e=a318_0x3176();let _0x2d021b=_0x31760e[_0x1b3131];return _0x2d021b;}import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x3a8439,command:_0x1f0612,risk:_0x5b0959,dryRun:_0x5c3b67}){const _0x27b98c=a318_0x2d02;return JSON['stringify']({'ok':_0x3a8439['ok'],'command':_0x1f0612,'risk':_0x5b0959,..._0x5c3b67?{'dryRun':!![]}:{},..._0x3a8439['data']!==undefined?{'data':_0x3a8439[_0x27b98c(0xaa)]}:{},..._0x3a8439[_0x27b98c(0xb2)]?{'message':_0x3a8439[_0x27b98c(0xb2)]}:{}});}};export async function invokeRabetbase(_0x3d054e,_0x2bec91){const _0x1119d5=a318_0x2d02;throwIfAborted(_0x2bec91['signal']);const _0x1617ae=await resolveRabetbaseInvocation(_0x3d054e),_0x23fbde=canonicalRabetbaseOperation(_0x1617ae[_0x1119d5(0xc1)]);return await confirmWriteBeforeQueue(_0x1617ae[_0x1119d5(0xc1)],_0x1617ae[_0x1119d5(0xa1)],_0x23fbde,_0x2bec91),runSerialized(async()=>{const _0xa7b1da=_0x1119d5,_0x3d7a90={};try{throwIfAborted(_0x2bec91[_0xa7b1da(0xb0)]);const _0x442675=buildConfigFromFlags(_0x1617ae[_0xa7b1da(0xa1)]);!isRoutingRecoveryService(_0x1617ae[_0xa7b1da(0xc1)][_0xa7b1da(0xb5)])&&await initGlobalEnvironment(_0x442675);const _0x5939f5=createPipelineEnv(_0x442675,{..._0x1617ae[_0xa7b1da(0xa1)],'yes':_0x1617ae[_0xa7b1da(0xc1)][_0xa7b1da(0xa7)]===_0xa7b1da(0xa5)?!![]:_0x1617ae[_0xa7b1da(0xa1)][_0xa7b1da(0xbf)],'nonInteractive':!![]},_0x1617ae[_0xa7b1da(0xbb)]);_0x5939f5[_0xa7b1da(0xaf)]=!![],_0x5939f5[_0xa7b1da(0xad)]=_0xa7b1da(0xa5);const _0x4a809a=withAbortSignal(_0x1617ae['definition'],_0x2bec91[_0xa7b1da(0xb0)]),_0x24376c=createRabetbaseRunnerAdapter({'formatOutput'(_0x12b512,_0x561d4d){const _0x2ba42c=_0xa7b1da;_0x3d7a90['result']=_0x12b512,_0x3d7a90[_0x2ba42c(0xc0)]=_0x561d4d[_0x2ba42c(0xc0)],_0x3d7a90[_0x2ba42c(0xa7)]=_0x561d4d[_0x2ba42c(0xa7)],_0x3d7a90[_0x2ba42c(0xbc)]=_0x561d4d[_0x2ba42c(0xbc)],_0x3d7a90[_0x2ba42c(0xbe)]=_0x561d4d['dryRun']===!![];},async 'confirmHighRisk'(){const _0x522229=_0xa7b1da;throw new Error(_0x522229(0xc2));}});await runCommand(_0x4a809a,_0x5939f5,_0x24376c);if(!_0x3d7a90[_0xa7b1da(0xb9)]||!_0x3d7a90[_0xa7b1da(0xc0)]||!_0x3d7a90['risk']||!_0x3d7a90[_0xa7b1da(0xbc)])throw new Error(_0xa7b1da(0xa8));const _0x53324b=_0x3d7a90[_0xa7b1da(0xbe)]===!![],_0x35bd7f=_0x2bec91[_0xa7b1da(0xa9)]??defaultPresentation,_0x2d9631={'result':_0x3d7a90[_0xa7b1da(0xb9)],'command':_0x3d7a90[_0xa7b1da(0xc0)],'operation':_0x23fbde,'risk':_0x3d7a90[_0xa7b1da(0xa7)],'format':_0x3d7a90[_0xa7b1da(0xbc)],'dryRun':_0x53324b},_0x552947=createRabetbaseWriteMetadata(_0x1617ae['definition'],_0x23fbde,_0x3d7a90[_0xa7b1da(0xb9)],_0x53324b);let _0x13fdc2;try{_0x13fdc2=await _0x35bd7f['present'](_0x2d9631);}catch(_0x166d1b){if(!_0x552947||_0x35bd7f===defaultPresentation)throw _0x166d1b;_0x13fdc2=await defaultPresentation[_0xa7b1da(0xae)](_0x2d9631);}return{'operation':_0x23fbde,'risk':_0x3d7a90[_0xa7b1da(0xa7)],'mode':_0x53324b?_0xa7b1da(0x9d):'execute','result':_0x3d7a90['result'],'output':_0x13fdc2,..._0x552947?{'metadata':_0x552947}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x5f1bbf,_0x418f54,_0x154833,_0x5b5e23){const _0x5c1d4d=a318_0x2d02;if(_0x418f54[_0x5c1d4d(0xbe)]===!![]||_0x5f1bbf[_0x5c1d4d(0xa7)]!==_0x5c1d4d(0xba)&&_0x5f1bbf[_0x5c1d4d(0xa7)]!==_0x5c1d4d(0xa5))return;await _0x5b5e23[_0x5c1d4d(0xa3)][_0x5c1d4d(0xa2)](buildRabetbaseConfirmationRequest(_0x5f1bbf,_0x154833,_0x5b5e23['signal']));}function withAbortSignal(_0x746c7c,_0x5af592){return{..._0x746c7c,async 'execute'(_0x555854){return throwIfAborted(_0x5af592),_0x746c7c['execute']({..._0x555854,'signal':_0x5af592});}};}function throwIfAborted(_0x4eff1b){const _0x2dceee=a318_0x2d02;if(_0x4eff1b?.[_0x2dceee(0xab)])throw _0x4eff1b[_0x2dceee(0x9f)]instanceof Error?_0x4eff1b[_0x2dceee(0x9f)]:new DOMException('Rabetbase\x20invocation\x20aborted.',_0x2dceee(0xa6));}
@@ -1 +1 @@
1
- (function(_0x48e5cb,_0x338a6f){const _0x5ba924=a319_0x24ca,_0x1521f8=_0x48e5cb();while(!![]){try{const _0x42eb1e=parseInt(_0x5ba924(0xa4))/0x1+-parseInt(_0x5ba924(0x9f))/0x2+-parseInt(_0x5ba924(0xa1))/0x3*(-parseInt(_0x5ba924(0xa3))/0x4)+parseInt(_0x5ba924(0xa0))/0x5*(-parseInt(_0x5ba924(0xa8))/0x6)+-parseInt(_0x5ba924(0xa2))/0x7+parseInt(_0x5ba924(0xa9))/0x8*(-parseInt(_0x5ba924(0xa5))/0x9)+parseInt(_0x5ba924(0xa7))/0xa;if(_0x42eb1e===_0x338a6f)break;else _0x1521f8['push'](_0x1521f8['shift']());}catch(_0x1e036d){_0x1521f8['push'](_0x1521f8['shift']());}}}(a319_0x2299,0xa1c3e));function a319_0x2299(){const _0x1f6e91=['1118814iuezgz','504MRtufd','1614916SwJlyU','30dgdUcH','1553757rlJjnV','1222081QHXBzF','4eRDdAM','1146258AOtkZg','121950OUkdwG','catch','19529180NimaKK'];a319_0x2299=function(){return _0x1f6e91;};return a319_0x2299();}function a319_0x24ca(_0xc101ba,_0x3205f1){_0xc101ba=_0xc101ba-0x9f;const _0x22991a=a319_0x2299();let _0x24ca12=_0x22991a[_0xc101ba];return _0x24ca12;}let tail=Promise['resolve']();export async function runSerialized(_0x4b8112){const _0x3de72f=a319_0x24ca,_0x140f98=tail;let _0x377663;tail=new Promise(_0x137214=>{_0x377663=_0x137214;}),await _0x140f98[_0x3de72f(0xa6)](()=>undefined);try{return await _0x4b8112();}finally{_0x377663();}}
1
+ function a319_0x5428(_0x1548cf,_0x21b433){_0x1548cf=_0x1548cf-0x134;const _0x263fb7=a319_0x263f();let _0x542860=_0x263fb7[_0x1548cf];return _0x542860;}const a319_0x5be844=a319_0x5428;(function(_0xa3411d,_0x258a05){const _0x455646=a319_0x5428,_0x5adedd=_0xa3411d();while(!![]){try{const _0x5ca2f2=parseInt(_0x455646(0x134))/0x1+-parseInt(_0x455646(0x13a))/0x2+parseInt(_0x455646(0x138))/0x3*(-parseInt(_0x455646(0x13d))/0x4)+parseInt(_0x455646(0x13c))/0x5*(parseInt(_0x455646(0x137))/0x6)+-parseInt(_0x455646(0x136))/0x7+parseInt(_0x455646(0x135))/0x8+parseInt(_0x455646(0x139))/0x9;if(_0x5ca2f2===_0x258a05)break;else _0x5adedd['push'](_0x5adedd['shift']());}catch(_0x525b00){_0x5adedd['push'](_0x5adedd['shift']());}}}(a319_0x263f,0x9ab81));let tail=Promise[a319_0x5be844(0x13b)]();export async function runSerialized(_0x2ebff7){const _0x21d7e0=tail;let _0x441b71;tail=new Promise(_0x379df9=>{_0x441b71=_0x379df9;}),await _0x21d7e0['catch'](()=>undefined);try{return await _0x2ebff7();}finally{_0x441b71();}}function a319_0x263f(){const _0x57d9d6=['5189148aZGBjW','1925328WMoHoM','resolve','1148755Hyfzbc','320596nsYdGp','1042147sPjoRi','1015056SUuhZe','5308184nJPLhu','18oZWIUK','3vWYSoR'];a319_0x263f=function(){return _0x57d9d6;};return a319_0x263f();}
@@ -1 +1 @@
1
- function a320_0x1635(){const _0x5e595e=['13Pcysrq','slice','2070fmboxW','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','run','flags','join','validation','input','920084PkWMFE','defaultCommand','715629lFWPQL','56925LkLanv','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','4yALCwV','message','4PkNkdQ','10ECPqoq','16570740zRpshW','9961SEQZxV','125453cTOPCg','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','791040PiBnnX','32VXoxFX','unknownCommand','wildcardDef'];a320_0x1635=function(){return _0x5e595e;};return a320_0x1635();}(function(_0x34ba6f,_0x197170){const _0x240283=a320_0x4a3a,_0x4d233e=_0x34ba6f();while(!![]){try{const _0x5c8b78=parseInt(_0x240283(0x74))/0x1*(-parseInt(_0x240283(0x6e))/0x2)+-parseInt(_0x240283(0x86))/0x3*(parseInt(_0x240283(0x70))/0x4)+-parseInt(_0x240283(0x77))/0x5+-parseInt(_0x240283(0x7d))/0x6*(parseInt(_0x240283(0x73))/0x7)+-parseInt(_0x240283(0x78))/0x8*(parseInt(_0x240283(0x87))/0x9)+-parseInt(_0x240283(0x71))/0xa*(-parseInt(_0x240283(0x84))/0xb)+parseInt(_0x240283(0x72))/0xc*(parseInt(_0x240283(0x7b))/0xd);if(_0x5c8b78===_0x197170)break;else _0x4d233e['push'](_0x4d233e['shift']());}catch(_0x5bfe60){_0x4d233e['push'](_0x4d233e['shift']());}}}(a320_0x1635,0x49667));function a320_0x4a3a(_0xa1def5,_0x125378){_0xa1def5=_0xa1def5-0x6d;const _0x1635b5=a320_0x1635();let _0x4a3a4b=_0x1635b5[_0xa1def5];return _0x4a3a4b;}import a320_0x4f0dad from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';export async function resolveRabetbaseInvocation(_0x559c7e){const _0x41caa9=a320_0x4a3a,_0x59afb0=a320_0x4f0dad('',{'importMeta':import.meta,'argv':[..._0x559c7e],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x5b7f40=[..._0x59afb0[_0x41caa9(0x83)]],_0x4cd00d=_0x59afb0[_0x41caa9(0x80)],_0xabe6c1=_0x5b7f40[0x0];if(!_0xabe6c1)throw CliErrors[_0x41caa9(0x82)](_0x41caa9(0x6d));const _0x4863be=resolveRemovedCommand(_0xabe6c1,_0x5b7f40[0x1]);if(_0x4863be)throw CliErrors[_0x41caa9(0x82)](_0x4863be[_0x41caa9(0x6f)],_0x4863be['hint']);if(_0xabe6c1===_0x41caa9(0x7f))throw CliErrors[_0x41caa9(0x82)](_0x41caa9(0x7e),_0x41caa9(0x75));if(!isKnownService(_0xabe6c1))throw CliErrors[_0x41caa9(0x79)](_0x5b7f40[_0x41caa9(0x81)]('\x20'));const _0x4ab90f=getServiceEntry(_0xabe6c1),_0x209c04=_0x5b7f40[0x1],_0x2463d7=_0x209c04||_0x4ab90f[_0x41caa9(0x85)];if(!_0x2463d7){if(_0x4ab90f[_0x41caa9(0x7a)])return{'definition':_0x4ab90f[_0x41caa9(0x7a)],'rawFlags':_0x4cd00d,'args':[]};throw CliErrors[_0x41caa9(0x82)](_0x41caa9(0x76)+_0xabe6c1+'\x22.');}const _0x4da597=findDefinition(_0xabe6c1,_0x2463d7);if(_0x4da597)return assertSupportedCommandFlags(_0x4da597,_0x4cd00d),{'definition':_0x4da597,'rawFlags':_0x4cd00d,'args':_0x5b7f40[_0x41caa9(0x7c)](0x2)};if(_0x4ab90f[_0x41caa9(0x7a)])return{'definition':_0x4ab90f[_0x41caa9(0x7a)],'rawFlags':_0x4cd00d,'args':[_0x2463d7,..._0x5b7f40[_0x41caa9(0x7c)](0x2)]};throw CliErrors[_0x41caa9(0x79)](_0xabe6c1+'\x20'+_0x2463d7);}
1
+ function a320_0x3b24(_0x428202,_0xb739ff){_0x428202=_0x428202-0x159;const _0x524c2a=a320_0x524c();let _0x3b24df=_0x524c2a[_0x428202];return _0x3b24df;}(function(_0x501eac,_0x518bda){const _0x3d7cf4=a320_0x3b24,_0x108d9a=_0x501eac();while(!![]){try{const _0xaa0b5e=parseInt(_0x3d7cf4(0x15f))/0x1*(-parseInt(_0x3d7cf4(0x164))/0x2)+-parseInt(_0x3d7cf4(0x16c))/0x3*(-parseInt(_0x3d7cf4(0x163))/0x4)+parseInt(_0x3d7cf4(0x161))/0x5+parseInt(_0x3d7cf4(0x15a))/0x6+-parseInt(_0x3d7cf4(0x160))/0x7+parseInt(_0x3d7cf4(0x15c))/0x8+-parseInt(_0x3d7cf4(0x162))/0x9;if(_0xaa0b5e===_0x518bda)break;else _0x108d9a['push'](_0x108d9a['shift']());}catch(_0x57ca49){_0x108d9a['push'](_0x108d9a['shift']());}}}(a320_0x524c,0x9260b));function a320_0x524c(){const _0x3d5dcf=['352184hQLXDc','message','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','1rnhZgl','5850166ZjewEY','4705135VmvohP','8464680KgTOUn','8GjurOG','149174BzWqGL','unknownCommand','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','flags','hint','run','slice','539598FPhKog','wildcardDef','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','6633756fakIJT','validation'];a320_0x524c=function(){return _0x3d5dcf;};return a320_0x524c();}import a320_0x4757f1 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';export async function resolveRabetbaseInvocation(_0x4cfd91){const _0x31f90b=a320_0x3b24,_0x27ec91=a320_0x4757f1('',{'importMeta':import.meta,'argv':[..._0x4cfd91],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x448a0f=[..._0x27ec91['input']],_0x56144e=_0x27ec91[_0x31f90b(0x168)],_0x123f12=_0x448a0f[0x0];if(!_0x123f12)throw CliErrors[_0x31f90b(0x15b)](_0x31f90b(0x15e));const _0xf2c5d8=resolveRemovedCommand(_0x123f12,_0x448a0f[0x1]);if(_0xf2c5d8)throw CliErrors['validation'](_0xf2c5d8[_0x31f90b(0x15d)],_0xf2c5d8[_0x31f90b(0x169)]);if(_0x123f12===_0x31f90b(0x16a))throw CliErrors[_0x31f90b(0x15b)](_0x31f90b(0x159),_0x31f90b(0x166));if(!isKnownService(_0x123f12))throw CliErrors[_0x31f90b(0x165)](_0x448a0f['join']('\x20'));const _0x4af687=getServiceEntry(_0x123f12),_0x51bdc8=_0x448a0f[0x1],_0x164dba=_0x51bdc8||_0x4af687['defaultCommand'];if(!_0x164dba){if(_0x4af687[_0x31f90b(0x16d)])return{'definition':_0x4af687[_0x31f90b(0x16d)],'rawFlags':_0x56144e,'args':[]};throw CliErrors['validation'](_0x31f90b(0x167)+_0x123f12+'\x22.');}const _0x4e6671=findDefinition(_0x123f12,_0x164dba);if(_0x4e6671)return assertSupportedCommandFlags(_0x4e6671,_0x56144e),{'definition':_0x4e6671,'rawFlags':_0x56144e,'args':_0x448a0f[_0x31f90b(0x16b)](0x2)};if(_0x4af687[_0x31f90b(0x16d)])return{'definition':_0x4af687[_0x31f90b(0x16d)],'rawFlags':_0x56144e,'args':[_0x164dba,..._0x448a0f[_0x31f90b(0x16b)](0x2)]};throw CliErrors[_0x31f90b(0x165)](_0x123f12+'\x20'+_0x164dba);}
@@ -1 +1 @@
1
- const a322_0x392074=a322_0x2c8e;(function(_0x3641b8,_0x4e3982){const _0x492052=a322_0x2c8e,_0xcadde6=_0x3641b8();while(!![]){try{const _0x157557=-parseInt(_0x492052(0x115))/0x1*(-parseInt(_0x492052(0x129))/0x2)+parseInt(_0x492052(0x13b))/0x3+parseInt(_0x492052(0x116))/0x4+parseInt(_0x492052(0x10d))/0x5+parseInt(_0x492052(0x132))/0x6*(parseInt(_0x492052(0x119))/0x7)+-parseInt(_0x492052(0xfe))/0x8*(parseInt(_0x492052(0x11d))/0x9)+parseInt(_0x492052(0x13c))/0xa*(-parseInt(_0x492052(0x10b))/0xb);if(_0x157557===_0x4e3982)break;else _0xcadde6['push'](_0xcadde6['shift']());}catch(_0xcd4012){_0xcadde6['push'](_0xcadde6['shift']());}}}(a322_0x56a9,0xa016e));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';function a322_0x2c8e(_0xedfec0,_0x2b750c){_0xedfec0=_0xedfec0-0xfe;const _0x56a990=a322_0x56a9();let _0x2c8e4d=_0x56a990[_0xedfec0];return _0x2c8e4d;}import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a322_0x392074(0x133),SKILL_NAME=a322_0x392074(0x11b);function frontmatterValue(_0x3ec1c0,_0xa8b2f5){const _0x1759b5=a322_0x392074;return _0x3ec1c0[_0x1759b5(0x112)](new RegExp('^'+_0xa8b2f5+_0x1759b5(0x130),'m'))?.[0x1]?.[_0x1759b5(0x117)]()??'';}function listFiles(_0x554b87,_0x2ca5cf=_0x554b87){const _0x476099=a322_0x392074;return readdirSync(_0x2ca5cf,{'withFileTypes':!![]})[_0x476099(0x125)](_0x128d4c=>{const _0x222c8f=_0x476099,_0x5caf14=join(_0x2ca5cf,_0x128d4c[_0x222c8f(0x109)]),_0x489aee=lstatSync(_0x5caf14);if(_0x489aee[_0x222c8f(0x12e)]())throw new Error(_0x222c8f(0x123)+_0x5caf14);if(_0x489aee[_0x222c8f(0x11e)]())return listFiles(_0x554b87,_0x5caf14);if(!_0x489aee['isFile']())throw new Error(_0x222c8f(0x118)+_0x5caf14);return[relative(_0x554b87,_0x5caf14)[_0x222c8f(0x140)](sep)[_0x222c8f(0x10a)]('/')];})[_0x476099(0x11f)]((_0x3c7649,_0x43bb19)=>_0x3c7649<_0x43bb19?-0x1:_0x3c7649>_0x43bb19?0x1:0x0);}function digestFiles(_0x2d4b06,_0xead006){const _0x47a68d=a322_0x392074,_0x187f13=createHash(_0x47a68d(0x10c));for(const _0x3ad696 of _0xead006){if(_0x3ad696[_0x47a68d(0x11a)]('/')||_0x3ad696[_0x47a68d(0x140)]('/')[_0x47a68d(0x12c)]('..')||_0x3ad696[_0x47a68d(0x12c)]('\x5c'))throw new Error(_0x47a68d(0x127)+_0x3ad696);_0x187f13[_0x47a68d(0x11c)](_0x3ad696),_0x187f13[_0x47a68d(0x11c)]('\x00'),_0x187f13[_0x47a68d(0x11c)](readFileSync(join(_0x2d4b06,..._0x3ad696[_0x47a68d(0x140)]('/')))),_0x187f13['update']('\x00');}return _0x187f13[_0x47a68d(0x13e)](_0x47a68d(0x135));}function sameFiles(_0x2d4b35,_0x430dd5){const _0x334755=a322_0x392074;return _0x2d4b35[_0x334755(0x10f)]===_0x430dd5[_0x334755(0x10f)]&&_0x2d4b35[_0x334755(0x122)]((_0x3ede3a,_0x2cd296)=>_0x3ede3a===_0x430dd5[_0x2cd296]);}function readSource(_0x5c69b0){const _0x12c4c9=a322_0x392074,_0x356c40=JSON[_0x12c4c9(0x120)](readFileSync(join(_0x5c69b0,_0x12c4c9(0x104)),_0x12c4c9(0x12f))),_0x3c11eb=JSON[_0x12c4c9(0x120)](readFileSync(join(_0x5c69b0,_0x12c4c9(0x143),_0x12c4c9(0xff)),'utf8')),_0x4158e0=join(_0x5c69b0,_0x12c4c9(0x143),SKILL_NAME),_0x3772ca=frontmatterValue(readFileSync(join(_0x4158e0,_0x12c4c9(0x131)),'utf8'),_0x12c4c9(0x12d)),_0x3d8964=listFiles(_0x4158e0);if(_0x3c11eb[_0x12c4c9(0x126)]!==0x1||_0x3c11eb[_0x12c4c9(0x109)]!==SKILL_NAME||!_0x356c40[_0x12c4c9(0x12d)]||_0x3c11eb[_0x12c4c9(0x12b)]!==_0x356c40[_0x12c4c9(0x12d)]||_0x3c11eb[_0x12c4c9(0x13d)]!==_0x356c40[_0x12c4c9(0x12d)]||_0x3772ca!==_0x356c40[_0x12c4c9(0x12d)]||!sameFiles(_0x3d8964,_0x3c11eb[_0x12c4c9(0x106)])||digestFiles(_0x4158e0,_0x3d8964)!==_0x3c11eb['digest'])throw new Error(_0x12c4c9(0x108));return{'packageVersion':_0x356c40[_0x12c4c9(0x12d)],'skillVersion':_0x3772ca,'root':_0x4158e0,'manifest':_0x3c11eb};}function installedSkillPath(_0x51c222){const _0x1feaeb=a322_0x392074,_0x54bfbe=resolveInstalledSkill(SKILL_NAME,{'home':_0x51c222});if(_0x54bfbe[_0x1feaeb(0x141)]===_0x1feaeb(0x142))return{'state':'present','path':dirname(_0x54bfbe[_0x1feaeb(0x100)])};if(_0x54bfbe[_0x1feaeb(0x141)]===_0x1feaeb(0x10e))return{'state':_0x1feaeb(0x128)};return{'state':'unverifiable','reason':_0x54bfbe[_0x1feaeb(0x13a)]};}export function inspectInstalledBuiltinSkillVersion(_0x23aa7a,_0x5dfa6e={}){const _0x3560cb=a322_0x392074,_0x2ec19b=installedSkillPath(_0x5dfa6e[_0x3560cb(0x137)]??homedir());if(_0x2ec19b[_0x3560cb(0x141)]==='missing')return{'state':_0x3560cb(0x128),'expectedVersion':_0x23aa7a,'repairCommand':REPAIR_COMMAND};if(_0x2ec19b[_0x3560cb(0x141)]===_0x3560cb(0x134))return{'state':'unverifiable','expectedVersion':_0x23aa7a,'reason':_0x2ec19b[_0x3560cb(0x13a)],'repairCommand':REPAIR_COMMAND};try{const _0x2653a7=frontmatterValue(readFileSync(join(_0x2ec19b[_0x3560cb(0x100)],_0x3560cb(0x131)),_0x3560cb(0x12f)),_0x3560cb(0x12d));return{'state':_0x2653a7===_0x23aa7a?_0x3560cb(0x111):_0x3560cb(0x101),'expectedVersion':_0x23aa7a,'skillVersion':_0x2653a7,'installedPath':_0x2ec19b[_0x3560cb(0x100)],'repairCommand':REPAIR_COMMAND};}catch(_0x52f7c2){return{'state':_0x3560cb(0x134),'expectedVersion':_0x23aa7a,'installedPath':_0x2ec19b[_0x3560cb(0x100)],'reason':_0x52f7c2 instanceof Error?_0x52f7c2[_0x3560cb(0x103)]:String(_0x52f7c2),'repairCommand':REPAIR_COMMAND};}}function a322_0x56a9(){const _0x3349ed=['skillVersion','digest','error','split','state','present','skills','manifest','184npZdeU','rabetbase.manifest.json','path','version_mismatch','INSTALL_FAILED','message','package.json','content_mismatch','files','stdio','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','name','join','23309PEsFvJ','sha256','4320915MIKIMF','absent','length','unknown','current','match','pipe','SOURCE_INVALID','54623FGotTM','5087080fOodLa','trim','Unsupported\x20Skill\x20entry:\x20','2906015JisOXY','startsWith','rabetbase','update','349776FLFXst','isDirectory','sort','parse','Installed\x20Skill\x20state\x20is\x20','every','Symbolic\x20link\x20is\x20not\x20allowed:\x20','packageRoot','flatMap','schemaVersion','Unsafe\x20manifest\x20path:\x20','missing','10IiDyDa','skipped','packageVersion','includes','version','isSymbolicLink','utf8',':\x5cs*(.+)$','SKILL.md','18phmrma','rabetbase\x20cli-skill\x20install','unverifiable','hex','skills@latest\x20exited\x20','home','installedPath','status','reason','143997jRnqCn','10160AefHdz'];a322_0x56a9=function(){return _0x3349ed;};return a322_0x56a9();}export function inspectBuiltinSkill(_0x3dbb70={}){const _0x4a5b1a=a322_0x392074,_0x295591=_0x3dbb70[_0x4a5b1a(0x124)]??DEFAULT_PACKAGE_ROOT;let _0x34391e;try{_0x34391e=readSource(_0x295591);}catch(_0x3033ba){return{'state':_0x4a5b1a(0x134),'packageVersion':'unknown','reason':_0x3033ba instanceof Error?_0x3033ba[_0x4a5b1a(0x103)]:String(_0x3033ba),'repairCommand':REPAIR_COMMAND};}const _0x544a1a=installedSkillPath(_0x3dbb70[_0x4a5b1a(0x137)]??homedir());if(_0x544a1a[_0x4a5b1a(0x141)]===_0x4a5b1a(0x128))return{'state':_0x4a5b1a(0x128),'packageVersion':_0x34391e[_0x4a5b1a(0x12b)],'repairCommand':REPAIR_COMMAND};if(_0x544a1a[_0x4a5b1a(0x141)]==='unverifiable')return{'state':_0x4a5b1a(0x134),'packageVersion':_0x34391e[_0x4a5b1a(0x12b)],'reason':_0x544a1a[_0x4a5b1a(0x13a)],'repairCommand':REPAIR_COMMAND};try{const _0x580d32=frontmatterValue(readFileSync(join(_0x544a1a[_0x4a5b1a(0x100)],_0x4a5b1a(0x131)),'utf8'),_0x4a5b1a(0x12d));if(_0x580d32!==_0x34391e['skillVersion'])return{'state':_0x4a5b1a(0x101),'packageVersion':_0x34391e[_0x4a5b1a(0x12b)],'skillVersion':_0x580d32,'installedPath':_0x544a1a[_0x4a5b1a(0x100)],'repairCommand':REPAIR_COMMAND};const _0x56ab76=listFiles(_0x544a1a[_0x4a5b1a(0x100)]),_0x53fc9c=digestFiles(_0x544a1a[_0x4a5b1a(0x100)],_0x56ab76);return{'state':sameFiles(_0x56ab76,_0x34391e['manifest'][_0x4a5b1a(0x106)])&&_0x53fc9c===_0x34391e[_0x4a5b1a(0x144)][_0x4a5b1a(0x13e)]?'current':_0x4a5b1a(0x105),'packageVersion':_0x34391e['packageVersion'],'skillVersion':_0x580d32,'installedPath':_0x544a1a[_0x4a5b1a(0x100)],'digest':_0x53fc9c,'repairCommand':REPAIR_COMMAND};}catch(_0x21f7b0){return{'state':_0x4a5b1a(0x134),'packageVersion':_0x34391e[_0x4a5b1a(0x12b)],'installedPath':_0x544a1a[_0x4a5b1a(0x100)],'reason':_0x21f7b0 instanceof Error?_0x21f7b0[_0x4a5b1a(0x103)]:String(_0x21f7b0),'repairCommand':REPAIR_COMMAND};}}function failure(_0x3112eb,_0x191758,_0x329a51,_0x3a26de){const _0x5b910e=a322_0x392074;return{'ok':![],'code':_0x3112eb,'packageVersion':_0x191758[_0x5b910e(0x12b)],'skillVersion':_0x191758[_0x5b910e(0x13d)],'installedPath':_0x3a26de,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x329a51 instanceof Error?_0x329a51['message']:String(_0x329a51)};}export function installBuiltinSkill(_0x2ec0a8={}){const _0x2be9f6=a322_0x392074,_0x504157=_0x2ec0a8['packageRoot']??DEFAULT_PACKAGE_ROOT,_0x24d7dc=_0x2ec0a8[_0x2be9f6(0x137)]??homedir();let _0x569550;try{_0x569550=readSource(_0x504157);}catch(_0x3fa970){return failure(_0x2be9f6(0x114),{'packageVersion':_0x2be9f6(0x110),'skillVersion':_0x2be9f6(0x110)},_0x3fa970);}const _0x46c93d=inspectBuiltinSkill({'packageRoot':_0x504157,'home':_0x24d7dc}),_0x274edc=runNpxSkillsAddGlobal(_0x504157,_0x569550['root'],{'stdio':_0x2ec0a8[_0x2be9f6(0x107)]??_0x2be9f6(0x113),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x24d7dc}});if(_0x274edc[_0x2be9f6(0x12a)])return{'ok':!![],'packageVersion':_0x569550[_0x2be9f6(0x12b)],'skillVersion':_0x569550[_0x2be9f6(0x13d)],'installedPath':_0x46c93d[_0x2be9f6(0x138)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x274edc['ok'])return failure(_0x2be9f6(0x102),_0x569550,_0x274edc[_0x2be9f6(0x13f)]??_0x2be9f6(0x136)+_0x274edc[_0x2be9f6(0x139)]);const _0x5dc7d6=inspectBuiltinSkill({'packageRoot':_0x504157,'home':_0x24d7dc});if(_0x5dc7d6[_0x2be9f6(0x141)]!==_0x2be9f6(0x111))return failure('VERIFY_FAILED',_0x569550,_0x5dc7d6['reason']??_0x2be9f6(0x121)+_0x5dc7d6[_0x2be9f6(0x141)],_0x5dc7d6['installedPath']);return{'ok':!![],'packageVersion':_0x569550['packageVersion'],'skillVersion':_0x569550['skillVersion'],'installedPath':_0x5dc7d6[_0x2be9f6(0x138)],'changed':_0x46c93d[_0x2be9f6(0x141)]!=='current','repairCommand':REPAIR_COMMAND};}
1
+ const a322_0x3390b6=a322_0x3745;function a322_0x2e2d(){const _0x15d5c0=['missing','unknown','home','5660544cBfHrJ','absent','skillVersion','length','version','1127626WdvEzX','digest','skills','error','rabetbase\x20cli-skill\x20install','57609kIumZk','every','message','68eHwYiN','rabetbase','update','packageRoot','2956401OgZKCx','7zafESR','schemaVersion','isSymbolicLink','hex','utf8','split',':\x5cs*(.+)$','root','name','current','flatMap','package.json','SKILL.md','2470LABzFS','trim','SOURCE_INVALID','installedPath','manifest','isDirectory','present','files','join','status','path','Symbolic\x20link\x20is\x20not\x20allowed:\x20','reason','state','version_mismatch','unverifiable','skipped','286155BFrwOA','content_mismatch','Installed\x20Skill\x20state\x20is\x20','Unsupported\x20Skill\x20entry:\x20','rabetbase.manifest.json','sort','2217040rxHBfd','VERIFY_FAILED','skills@latest\x20exited\x20','match','isFile','2697432vkudHS','packageVersion'];a322_0x2e2d=function(){return _0x15d5c0;};return a322_0x2e2d();}(function(_0x161685,_0x48d0d6){const _0x2dfe76=a322_0x3745,_0x5024fe=_0x161685();while(!![]){try{const _0x1b796f=-parseInt(_0x2dfe76(0xa4))/0x1+parseInt(_0x2dfe76(0xd5))/0x2+parseInt(_0x2dfe76(0xb0))/0x3+parseInt(_0x2dfe76(0xac))/0x4*(parseInt(_0x2dfe76(0xcf))/0x5)+-parseInt(_0x2dfe76(0x9a))/0x6*(parseInt(_0x2dfe76(0xb1))/0x7)+parseInt(_0x2dfe76(0x9f))/0x8+-parseInt(_0x2dfe76(0xa9))/0x9*(parseInt(_0x2dfe76(0xbe))/0xa);if(_0x1b796f===_0x48d0d6)break;else _0x5024fe['push'](_0x5024fe['shift']());}catch(_0x181ba2){_0x5024fe['push'](_0x5024fe['shift']());}}}(a322_0x2e2d,0x9672d));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a322_0x3390b6(0xa8),SKILL_NAME=a322_0x3390b6(0xad);function a322_0x3745(_0x42cbea,_0x593172){_0x42cbea=_0x42cbea-0x99;const _0x2e2d97=a322_0x2e2d();let _0x37458b=_0x2e2d97[_0x42cbea];return _0x37458b;}function frontmatterValue(_0x3955e4,_0x8d2a88){const _0x11ad17=a322_0x3390b6;return _0x3955e4[_0x11ad17(0xd8)](new RegExp('^'+_0x8d2a88+_0x11ad17(0xb7),'m'))?.[0x1]?.[_0x11ad17(0xbf)]()??'';}function listFiles(_0x3ac96f,_0x1a5c49=_0x3ac96f){const _0x173385=a322_0x3390b6;return readdirSync(_0x1a5c49,{'withFileTypes':!![]})[_0x173385(0xbb)](_0x1c4c4b=>{const _0x20193f=_0x173385,_0x1a23d6=join(_0x1a5c49,_0x1c4c4b[_0x20193f(0xb9)]),_0x547433=lstatSync(_0x1a23d6);if(_0x547433[_0x20193f(0xb3)]())throw new Error(_0x20193f(0xc9)+_0x1a23d6);if(_0x547433[_0x20193f(0xc3)]())return listFiles(_0x3ac96f,_0x1a23d6);if(!_0x547433[_0x20193f(0x99)]())throw new Error(_0x20193f(0xd2)+_0x1a23d6);return[relative(_0x3ac96f,_0x1a23d6)[_0x20193f(0xb6)](sep)[_0x20193f(0xc6)]('/')];})[_0x173385(0xd4)]((_0x2db42c,_0x5e13b3)=>_0x2db42c<_0x5e13b3?-0x1:_0x2db42c>_0x5e13b3?0x1:0x0);}function digestFiles(_0x54121a,_0x23d1bb){const _0x4d56f3=a322_0x3390b6,_0x1db641=createHash('sha256');for(const _0x3e5835 of _0x23d1bb){if(_0x3e5835['startsWith']('/')||_0x3e5835[_0x4d56f3(0xb6)]('/')['includes']('..')||_0x3e5835['includes']('\x5c'))throw new Error('Unsafe\x20manifest\x20path:\x20'+_0x3e5835);_0x1db641[_0x4d56f3(0xae)](_0x3e5835),_0x1db641[_0x4d56f3(0xae)]('\x00'),_0x1db641['update'](readFileSync(join(_0x54121a,..._0x3e5835['split']('/')))),_0x1db641[_0x4d56f3(0xae)]('\x00');}return _0x1db641[_0x4d56f3(0xa5)](_0x4d56f3(0xb4));}function sameFiles(_0x4a2d73,_0x2eef7f){const _0x24fe1a=a322_0x3390b6;return _0x4a2d73['length']===_0x2eef7f[_0x24fe1a(0xa2)]&&_0x4a2d73[_0x24fe1a(0xaa)]((_0x1e4ffc,_0x3c5af1)=>_0x1e4ffc===_0x2eef7f[_0x3c5af1]);}function readSource(_0x35dc5a){const _0x1f26bc=a322_0x3390b6,_0x20c3c2=JSON['parse'](readFileSync(join(_0x35dc5a,_0x1f26bc(0xbc)),_0x1f26bc(0xb5))),_0x252d96=JSON['parse'](readFileSync(join(_0x35dc5a,_0x1f26bc(0xa6),_0x1f26bc(0xd3)),_0x1f26bc(0xb5))),_0x2d2400=join(_0x35dc5a,_0x1f26bc(0xa6),SKILL_NAME),_0x5e95ae=frontmatterValue(readFileSync(join(_0x2d2400,_0x1f26bc(0xbd)),_0x1f26bc(0xb5)),_0x1f26bc(0xa3)),_0x6517cb=listFiles(_0x2d2400);if(_0x252d96[_0x1f26bc(0xb2)]!==0x1||_0x252d96[_0x1f26bc(0xb9)]!==SKILL_NAME||!_0x20c3c2[_0x1f26bc(0xa3)]||_0x252d96[_0x1f26bc(0x9b)]!==_0x20c3c2[_0x1f26bc(0xa3)]||_0x252d96['skillVersion']!==_0x20c3c2[_0x1f26bc(0xa3)]||_0x5e95ae!==_0x20c3c2[_0x1f26bc(0xa3)]||!sameFiles(_0x6517cb,_0x252d96[_0x1f26bc(0xc5)])||digestFiles(_0x2d2400,_0x6517cb)!==_0x252d96[_0x1f26bc(0xa5)])throw new Error('Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest');return{'packageVersion':_0x20c3c2[_0x1f26bc(0xa3)],'skillVersion':_0x5e95ae,'root':_0x2d2400,'manifest':_0x252d96};}function installedSkillPath(_0x559799){const _0x4d61f9=a322_0x3390b6,_0x379f00=resolveInstalledSkill(SKILL_NAME,{'home':_0x559799});if(_0x379f00['state']===_0x4d61f9(0xc4))return{'state':_0x4d61f9(0xc4),'path':dirname(_0x379f00[_0x4d61f9(0xc8)])};if(_0x379f00['state']===_0x4d61f9(0xa0))return{'state':_0x4d61f9(0x9c)};return{'state':_0x4d61f9(0xcd),'reason':_0x379f00[_0x4d61f9(0xca)]};}export function inspectInstalledBuiltinSkillVersion(_0x23b20d,_0xae70d8={}){const _0x5065cc=a322_0x3390b6,_0x560a59=installedSkillPath(_0xae70d8[_0x5065cc(0x9e)]??homedir());if(_0x560a59[_0x5065cc(0xcb)]===_0x5065cc(0x9c))return{'state':_0x5065cc(0x9c),'expectedVersion':_0x23b20d,'repairCommand':REPAIR_COMMAND};if(_0x560a59[_0x5065cc(0xcb)]===_0x5065cc(0xcd))return{'state':_0x5065cc(0xcd),'expectedVersion':_0x23b20d,'reason':_0x560a59[_0x5065cc(0xca)],'repairCommand':REPAIR_COMMAND};try{const _0x528e12=frontmatterValue(readFileSync(join(_0x560a59[_0x5065cc(0xc8)],_0x5065cc(0xbd)),'utf8'),_0x5065cc(0xa3));return{'state':_0x528e12===_0x23b20d?_0x5065cc(0xba):_0x5065cc(0xcc),'expectedVersion':_0x23b20d,'skillVersion':_0x528e12,'installedPath':_0x560a59['path'],'repairCommand':REPAIR_COMMAND};}catch(_0x956021){return{'state':_0x5065cc(0xcd),'expectedVersion':_0x23b20d,'installedPath':_0x560a59['path'],'reason':_0x956021 instanceof Error?_0x956021[_0x5065cc(0xab)]:String(_0x956021),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x228428={}){const _0x3be9a5=a322_0x3390b6,_0x38f7f8=_0x228428[_0x3be9a5(0xaf)]??DEFAULT_PACKAGE_ROOT;let _0x23e0fd;try{_0x23e0fd=readSource(_0x38f7f8);}catch(_0x1f9a0a){return{'state':'unverifiable','packageVersion':_0x3be9a5(0x9d),'reason':_0x1f9a0a instanceof Error?_0x1f9a0a[_0x3be9a5(0xab)]:String(_0x1f9a0a),'repairCommand':REPAIR_COMMAND};}const _0x466f36=installedSkillPath(_0x228428[_0x3be9a5(0x9e)]??homedir());if(_0x466f36[_0x3be9a5(0xcb)]===_0x3be9a5(0x9c))return{'state':_0x3be9a5(0x9c),'packageVersion':_0x23e0fd[_0x3be9a5(0x9b)],'repairCommand':REPAIR_COMMAND};if(_0x466f36[_0x3be9a5(0xcb)]===_0x3be9a5(0xcd))return{'state':_0x3be9a5(0xcd),'packageVersion':_0x23e0fd[_0x3be9a5(0x9b)],'reason':_0x466f36[_0x3be9a5(0xca)],'repairCommand':REPAIR_COMMAND};try{const _0x27eda1=frontmatterValue(readFileSync(join(_0x466f36['path'],_0x3be9a5(0xbd)),'utf8'),_0x3be9a5(0xa3));if(_0x27eda1!==_0x23e0fd['skillVersion'])return{'state':'version_mismatch','packageVersion':_0x23e0fd[_0x3be9a5(0x9b)],'skillVersion':_0x27eda1,'installedPath':_0x466f36[_0x3be9a5(0xc8)],'repairCommand':REPAIR_COMMAND};const _0x12137=listFiles(_0x466f36[_0x3be9a5(0xc8)]),_0x178033=digestFiles(_0x466f36[_0x3be9a5(0xc8)],_0x12137);return{'state':sameFiles(_0x12137,_0x23e0fd['manifest'][_0x3be9a5(0xc5)])&&_0x178033===_0x23e0fd[_0x3be9a5(0xc2)][_0x3be9a5(0xa5)]?_0x3be9a5(0xba):_0x3be9a5(0xd0),'packageVersion':_0x23e0fd[_0x3be9a5(0x9b)],'skillVersion':_0x27eda1,'installedPath':_0x466f36[_0x3be9a5(0xc8)],'digest':_0x178033,'repairCommand':REPAIR_COMMAND};}catch(_0x5764bf){return{'state':_0x3be9a5(0xcd),'packageVersion':_0x23e0fd['packageVersion'],'installedPath':_0x466f36['path'],'reason':_0x5764bf instanceof Error?_0x5764bf[_0x3be9a5(0xab)]:String(_0x5764bf),'repairCommand':REPAIR_COMMAND};}}function failure(_0x2fb83e,_0x551f29,_0xea7700,_0x26b21e){const _0xb01fd2=a322_0x3390b6;return{'ok':![],'code':_0x2fb83e,'packageVersion':_0x551f29[_0xb01fd2(0x9b)],'skillVersion':_0x551f29[_0xb01fd2(0xa1)],'installedPath':_0x26b21e,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0xea7700 instanceof Error?_0xea7700[_0xb01fd2(0xab)]:String(_0xea7700)};}export function installBuiltinSkill(_0x35d5d6={}){const _0x36b719=a322_0x3390b6,_0x1f2d39=_0x35d5d6['packageRoot']??DEFAULT_PACKAGE_ROOT,_0x1fb282=_0x35d5d6['home']??homedir();let _0x2d3d42;try{_0x2d3d42=readSource(_0x1f2d39);}catch(_0xf2f368){return failure(_0x36b719(0xc0),{'packageVersion':'unknown','skillVersion':_0x36b719(0x9d)},_0xf2f368);}const _0x30eb99=inspectBuiltinSkill({'packageRoot':_0x1f2d39,'home':_0x1fb282}),_0x3098c0=runNpxSkillsAddGlobal(_0x1f2d39,_0x2d3d42[_0x36b719(0xb8)],{'stdio':_0x35d5d6['stdio']??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0x1fb282}});if(_0x3098c0[_0x36b719(0xce)])return{'ok':!![],'packageVersion':_0x2d3d42['packageVersion'],'skillVersion':_0x2d3d42[_0x36b719(0xa1)],'installedPath':_0x30eb99[_0x36b719(0xc1)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x3098c0['ok'])return failure('INSTALL_FAILED',_0x2d3d42,_0x3098c0[_0x36b719(0xa7)]??_0x36b719(0xd7)+_0x3098c0[_0x36b719(0xc7)]);const _0x470a97=inspectBuiltinSkill({'packageRoot':_0x1f2d39,'home':_0x1fb282});if(_0x470a97[_0x36b719(0xcb)]!==_0x36b719(0xba))return failure(_0x36b719(0xd6),_0x2d3d42,_0x470a97['reason']??_0x36b719(0xd1)+_0x470a97[_0x36b719(0xcb)],_0x470a97[_0x36b719(0xc1)]);return{'ok':!![],'packageVersion':_0x2d3d42['packageVersion'],'skillVersion':_0x2d3d42[_0x36b719(0xa1)],'installedPath':_0x470a97[_0x36b719(0xc1)],'changed':_0x30eb99[_0x36b719(0xcb)]!==_0x36b719(0xba),'repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
1
- (function(_0x107078,_0x154bf3){const _0x51b43c=a323_0x4ead,_0x1760dd=_0x107078();while(!![]){try{const _0x530be0=-parseInt(_0x51b43c(0x1ab))/0x1*(-parseInt(_0x51b43c(0x1b1))/0x2)+-parseInt(_0x51b43c(0x1a5))/0x3+-parseInt(_0x51b43c(0x1c2))/0x4+parseInt(_0x51b43c(0x1a4))/0x5*(parseInt(_0x51b43c(0x1a8))/0x6)+-parseInt(_0x51b43c(0x1c3))/0x7+parseInt(_0x51b43c(0x1aa))/0x8*(-parseInt(_0x51b43c(0x1c0))/0x9)+parseInt(_0x51b43c(0x1b5))/0xa;if(_0x530be0===_0x154bf3)break;else _0x1760dd['push'](_0x1760dd['shift']());}catch(_0x260e52){_0x1760dd['push'](_0x1760dd['shift']());}}}(a323_0x4ea6,0x5bce2));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(_0x939f65){const _0x27fea9=a323_0x4ead,_0x309842=[];for(const [_0x117362,_0x506957]of Object['entries'](_0x939f65)){if(_0x506957===!![]){const _0x3dcd32=_0x117362[_0x27fea9(0x1ae)](/([A-Z])/g,_0x27fea9(0x1b9))[_0x27fea9(0x1a7)]();_0x309842['push'](_0x3dcd32);}}return _0x309842;}export function parseDynamicFlags(){const _0x4be301=a323_0x4ead,_0x307515=[];for(let _0x5716bf=0x3;_0x5716bf<process['argv'][_0x4be301(0x1b3)];_0x5716bf++){const _0x17ad86=process['argv'][_0x5716bf];if(_0x17ad86&&_0x17ad86[_0x4be301(0x1b0)]('--')){const _0x3559f0=_0x17ad86[_0x4be301(0x1ac)](0x2);_0x3559f0&&!_0x3559f0[_0x4be301(0x1b6)]('=')&&_0x307515[_0x4be301(0x1bb)](_0x3559f0);}}return _0x307515;}export function getAllProvidedFlags(_0x4d6cfd){const _0x19bece=camelCaseFlagsToKebab(_0x4d6cfd),_0x3fb5ee=parseDynamicFlags(),_0x7b0af8=new Set([..._0x19bece,..._0x3fb5ee]);return Array['from'](_0x7b0af8);}export function normalizeLegacyBffSaveFlags(_0x235b83){const _0x22b916=a323_0x4ead,_0x3b0da2=new Set(_0x235b83);return _0x3b0da2[_0x22b916(0x1c1)](_0x22b916(0x1b4))&&_0x3b0da2['add'](_0x22b916(0x1b2)),Array[_0x22b916(0x1bd)](_0x3b0da2);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a323_0x4ead(_0x48bf78,_0x100960){_0x48bf78=_0x48bf78-0x1a2;const _0x4ea67b=a323_0x4ea6();let _0x4ead7b=_0x4ea67b[_0x48bf78];return _0x4ead7b;}export async function skillsCommand(_0x418fa9,_0x52adc1,_0x4fe407){const _0x5295de=a323_0x4ead;logger[_0x5295de(0x1b7)](process[_0x5295de(0x1a6)]());if(_0x4fe407?.['help']||_0x418fa9===_0x5295de(0x1be)){showHelp();return;}console['error'](_0x5295de(0x1bc)+(_0x418fa9||_0x5295de(0x1a3))),console[_0x5295de(0x1a2)](_0x5295de(0x1af)),console[_0x5295de(0x1a2)]('\x20\x20'+CLI_BIN_NAME+_0x5295de(0x1a9)),console['log'](''),console[_0x5295de(0x1a2)](_0x5295de(0x1ad)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x5295de(0x1ba)]('skill','Unsupported\x20command:\x20'+_0x418fa9),process[_0x5295de(0x1bf)](0x1);}function showHelp(){const _0x35a2d0=a323_0x4ead;console[_0x35a2d0(0x1a2)](_0x35a2d0(0x1b8)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a');}function a323_0x4ea6(){const _0x2e3a43=['push','Error:\x20Unsupported\x20command:\x20','from','--help','exit','1017WVBIED','has','1144716GxqOav','3696595iFbykH','log','(empty)','2245IUKdgc','527928RROZsr','cwd','toLowerCase','9378SNyouX','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','44768wjCuYz','346626BEmLyc','slice','Public\x20Open\x20Skill\x20source:\x20','replace','\x0aAvailable\x20commands:','startsWith','4MoNShL','enable-bff-save','length','dangerously-bff-save','6035830DcYZvO','includes','setLogPath','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','-$1','error'];a323_0x4ea6=function(){return _0x2e3a43;};return a323_0x4ea6();}
1
+ (function(_0x3a3776,_0x4c0f39){const _0x202ed0=a323_0x354b,_0x3c8158=_0x3a3776();while(!![]){try{const _0x12e567=parseInt(_0x202ed0(0x102))/0x1+parseInt(_0x202ed0(0xfd))/0x2+-parseInt(_0x202ed0(0xff))/0x3*(-parseInt(_0x202ed0(0x117))/0x4)+-parseInt(_0x202ed0(0x116))/0x5+-parseInt(_0x202ed0(0x11b))/0x6+-parseInt(_0x202ed0(0x110))/0x7*(-parseInt(_0x202ed0(0x118))/0x8)+-parseInt(_0x202ed0(0xfe))/0x9*(parseInt(_0x202ed0(0x104))/0xa);if(_0x12e567===_0x4c0f39)break;else _0x3c8158['push'](_0x3c8158['shift']());}catch(_0x51b15f){_0x3c8158['push'](_0x3c8158['shift']());}}}(a323_0x1e23,0xf06d7));function a323_0x354b(_0x3f1f05,_0x155efb){_0x3f1f05=_0x3f1f05-0xfc;const _0x1e230a=a323_0x1e23();let _0x354b6e=_0x1e230a[_0x3f1f05];return _0x354b6e;}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(_0x52f595){const _0x57ff06=a323_0x354b,_0x2d807e=[];for(const [_0x5186a9,_0x761860]of Object[_0x57ff06(0x121)](_0x52f595)){if(_0x761860===!![]){const _0x1d656d=_0x5186a9[_0x57ff06(0x11a)](/([A-Z])/g,_0x57ff06(0x109))[_0x57ff06(0x113)]();_0x2d807e[_0x57ff06(0x119)](_0x1d656d);}}return _0x2d807e;}export function parseDynamicFlags(){const _0x210cbc=a323_0x354b,_0x46696f=[];for(let _0x379ee4=0x3;_0x379ee4<process[_0x210cbc(0x115)][_0x210cbc(0xfc)];_0x379ee4++){const _0xaf69b8=process[_0x210cbc(0x115)][_0x379ee4];if(_0xaf69b8&&_0xaf69b8[_0x210cbc(0x114)]('--')){const _0x2ef7d4=_0xaf69b8[_0x210cbc(0x108)](0x2);_0x2ef7d4&&!_0x2ef7d4[_0x210cbc(0x103)]('=')&&_0x46696f[_0x210cbc(0x119)](_0x2ef7d4);}}return _0x46696f;}function a323_0x1e23(){const _0x2faef1=['help','length','2334934xBuyAn','3450501ivEOyU','90291LRJijJ','cwd','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','1527153NAaEQX','includes','70zRsQOU','Public\x20Open\x20Skill\x20source:\x20','from','Error:\x20Unsupported\x20command:\x20','slice','-$1','setLogPath','add','--help','\x0aAvailable\x20commands:','skill','exit','281211XizjCx','log','enable-bff-save','toLowerCase','startsWith','argv','2797660kHHXvp','208aGizNi','56rihubb','push','replace','1876974JZccuH','Unsupported\x20command:\x20','error','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','dangerously-bff-save','(empty)','entries'];a323_0x1e23=function(){return _0x2faef1;};return a323_0x1e23();}export function getAllProvidedFlags(_0x232a46){const _0x1b4ce3=a323_0x354b,_0x4a4f6a=camelCaseFlagsToKebab(_0x232a46),_0x44ef47=parseDynamicFlags(),_0x4be757=new Set([..._0x4a4f6a,..._0x44ef47]);return Array[_0x1b4ce3(0x106)](_0x4be757);}export function normalizeLegacyBffSaveFlags(_0x23e290){const _0x24582f=a323_0x354b,_0x2d3355=new Set(_0x23e290);return _0x2d3355['has'](_0x24582f(0x11f))&&_0x2d3355[_0x24582f(0x10b)](_0x24582f(0x112)),Array[_0x24582f(0x106)](_0x2d3355);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x3125ea,_0x3944ea,_0x45ccfa){const _0x29d1f8=a323_0x354b;logger[_0x29d1f8(0x10a)](process[_0x29d1f8(0x100)]());if(_0x45ccfa?.[_0x29d1f8(0x122)]||_0x3125ea===_0x29d1f8(0x10c)){showHelp();return;}console[_0x29d1f8(0x11d)](_0x29d1f8(0x107)+(_0x3125ea||_0x29d1f8(0x120))),console[_0x29d1f8(0x111)](_0x29d1f8(0x10d)),console[_0x29d1f8(0x111)]('\x20\x20'+CLI_BIN_NAME+_0x29d1f8(0x101)),console[_0x29d1f8(0x111)](''),console[_0x29d1f8(0x111)](_0x29d1f8(0x105)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x29d1f8(0x11d)](_0x29d1f8(0x10e),_0x29d1f8(0x11c)+_0x3125ea),process[_0x29d1f8(0x10f)](0x1);}function showHelp(){const _0x390b25=a323_0x354b;console[_0x390b25(0x111)]('\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x390b25(0x11e)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a');}
@@ -1 +1 @@
1
- const a324_0x4f2a04=a324_0x8ec5;(function(_0x489122,_0x245e66){const _0x458244=a324_0x8ec5,_0x502837=_0x489122();while(!![]){try{const _0xe1d413=-parseInt(_0x458244(0xeb))/0x1+parseInt(_0x458244(0xda))/0x2*(parseInt(_0x458244(0x105))/0x3)+-parseInt(_0x458244(0xfe))/0x4+parseInt(_0x458244(0xdc))/0x5*(parseInt(_0x458244(0x107))/0x6)+-parseInt(_0x458244(0x109))/0x7*(parseInt(_0x458244(0xe9))/0x8)+-parseInt(_0x458244(0xe8))/0x9*(parseInt(_0x458244(0xde))/0xa)+parseInt(_0x458244(0xe0))/0xb*(parseInt(_0x458244(0x101))/0xc);if(_0xe1d413===_0x245e66)break;else _0x502837['push'](_0x502837['shift']());}catch(_0x25c893){_0x502837['push'](_0x502837['shift']());}}}(a324_0xb186,0x8ba6b));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';function a324_0x8ec5(_0x260235,_0x4c5f60){_0x260235=_0x260235-0xd1;const _0xb186ea=a324_0xb186();let _0x8ec59d=_0xb186ea[_0x260235];return _0x8ec59d;}function a324_0xb186(){const _0x44698=['code','76730UtsfRC','exitCode','215310zgGSrY','npx\x20terminated\x20by\x20signal\x20','90LXNRMY','warn','11eLOwmZ','filter','NPX_NOT_FOUND','expectedSkillName','add','ENOENT','match','signal','235755BBUJtx','1928FixwKB','state','1085681uCufZx','SPAWN_FAILED','failed','stderr','skill','NPM_CONFIG_GLOBAL','CHILD_TERMINATED','checked','skills@latest','shortMessage','\x22\x20install\x20state:\x20','CHILD_EXIT_NONZERO','PERMISSION_DENIED','stdout','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','inherit','unknown','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','join','1077328TAfHeF','rabetbase','push','15730668wsKGCw','stdio','trim','exit\x20','39iAxXhi','SKILL_NOT_INSTALLED','144neMJRF','EACCES','19761mEpVxU','Installer\x20reported\x20','lovrabet/rabetbase','pipe','npx','log','message','Skill\x20\x22','INSTALL_PARTIAL'];a324_0xb186=function(){return _0x44698;};return a324_0xb186();}export const NPX_SKILLS_CLI=a324_0x4f2a04(0xf3);export const NPX_SKILLS_SUBCOMMAND_ADD=a324_0x4f2a04(0xe4);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a324_0x4f2a04(0xd2);export const RABETBASE_GLOBAL_SKILL_NAME=a324_0x4f2a04(0xff);export const RABETBASE_SKILL_GIT_SOURCE=a324_0x4f2a04(0xf9);export function resolveGlobalSkillName(_0x242818){const _0x6da266=a324_0x4f2a04;switch(_0x242818[_0x6da266(0x103)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x30e9c0){const _0x5c61ac=a324_0x4f2a04,_0xc7e924=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x30e9c0&&_0xc7e924[_0x5c61ac(0x100)](NPX_SKILLS_FLAG_SKILL,_0x30e9c0),_0xc7e924;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a324_0x4f2a04(0xd4),...buildNpxSkillsAddArgv()][a324_0x4f2a04(0xfd)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a324_0x4f2a04(0xd4),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a324_0x4f2a04(0xfd)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x17eb28,_0x4a10c7,_0x42168d){return{'ok':![],'status':_0x4a10c7,'code':_0x17eb28,'error':'['+_0x17eb28+']\x20'+_0x42168d};}function execaOptions(_0x5a1fa1,_0x56339e){const _0x50ad8f=a324_0x4f2a04,_0x5b0d5f={...process.env};return delete _0x5b0d5f['npm_config_global'],delete _0x5b0d5f[_0x50ad8f(0xf0)],{'cwd':_0x5a1fa1,'stdio':_0x56339e,'env':_0x5b0d5f,'extendEnv':![],'shell':![],'reject':![],..._0x56339e==='pipe'?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeExecaResult(_0x55f239,_0x45c4bc,_0x29410c,_0x42863c){const _0x3415a2=a324_0x4f2a04,_0x1b10b9=[_0x55f239[_0x3415a2(0xf8)]?String(_0x55f239[_0x3415a2(0xf8)]):'',_0x55f239[_0x3415a2(0xee)]?String(_0x55f239[_0x3415a2(0xee)]):''][_0x3415a2(0xe1)](Boolean)[_0x3415a2(0xfd)]('\x0a')['trim'](),_0x210145=_0x55f239[_0x3415a2(0xdb)]??null;_0x42863c!==_0x3415a2(0xd3)&&_0x1b10b9&&console[_0x3415a2(0xd5)](_0x1b10b9);if(_0x55f239[_0x3415a2(0xd9)]){const _0x1999ce=_0x55f239[_0x3415a2(0xd9)]===_0x3415a2(0xe5)?_0x3415a2(0xe2):_0x55f239['code']==='EPERM'||_0x55f239[_0x3415a2(0xd9)]===_0x3415a2(0x108)?_0x3415a2(0xf7):_0x3415a2(0xec);return failure(_0x1999ce,_0x210145,_0x55f239[_0x3415a2(0xf4)]??_0x55f239['message']??_0x55f239[_0x3415a2(0xd9)]);}if(_0x55f239[_0x3415a2(0xe7)])return failure(_0x3415a2(0xf1),_0x210145,_0x3415a2(0xdd)+_0x55f239[_0x3415a2(0xe7)]);if(_0x55f239[_0x3415a2(0xed)]&&_0x210145===null)return failure(_0x3415a2(0xec),_0x210145,_0x55f239['shortMessage']??_0x55f239[_0x3415a2(0xd6)]??'npx\x20failed\x20to\x20start');if(_0x210145!==0x0)return failure(_0x3415a2(0xf6),_0x210145,_0x1b10b9||_0x55f239[_0x3415a2(0xf4)]||_0x3415a2(0x104)+(_0x210145??_0x3415a2(0xfb)));const _0x8ecddb=_0x45c4bc?resolveInstalledSkill(_0x45c4bc,_0x29410c):undefined,_0x1fc88c=_0x1b10b9[_0x3415a2(0xe6)](/Failed to install\s+(\d+)/i);if(_0x1fc88c&&Number(_0x1fc88c[0x1])>0x0){const _0x155f51=_0x3415a2(0xd1)+_0x1fc88c[0x1]+'\x20failed\x20target(s)'+(_0x1b10b9?':\x0a'+_0x1b10b9:'');if(_0x8ecddb?.[_0x3415a2(0xea)]==='present')return console[_0x3415a2(0xdf)]('!\x20'+_0x155f51),{'ok':!![],'status':0x0};return failure(_0x3415a2(0xd8),0x0,_0x155f51);}if(_0x8ecddb){if(_0x8ecddb['state']==='absent')return failure(_0x3415a2(0x106),0x0,_0x3415a2(0xd7)+_0x45c4bc+_0x3415a2(0xfc)+_0x8ecddb[_0x3415a2(0xf2)][_0x3415a2(0xfd)](',\x20')+')');_0x8ecddb['state']==='unverifiable'&&console[_0x3415a2(0xdf)]('!\x20Could\x20not\x20verify\x20\x22'+_0x45c4bc+_0x3415a2(0xf5)+_0x8ecddb['reason']);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x4c614d,_0x1e0545){const _0x2b1355=a324_0x4f2a04;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1719ab=_0x1e0545?.[_0x2b1355(0x102)]??_0x2b1355(0xfa),_0x4c478e=buildNpxSkillsAddArgv(_0x1e0545?.[_0x2b1355(0xef)]),_0x984a20=[_0x2b1355(0xd4),..._0x4c478e][_0x2b1355(0xfd)]('\x20');console['log']('*\x20'+_0x984a20);const _0x4fe696=execaSync('npx',_0x4c478e,execaOptions(_0x4c614d,_0x1719ab));return normalizeExecaResult(_0x4fe696,undefined,undefined,_0x1719ab);}export function runNpxSkillsAddGlobal(_0x341ebd,_0x3dcedb,_0x391f21){const _0x5cc5bc=a324_0x4f2a04;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x387a48=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3dcedb,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x2b0019=[_0x5cc5bc(0xd4),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3dcedb,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x5cc5bc(0xfd)]('\x20');console[_0x5cc5bc(0xd5)]('*\x20'+_0x2b0019);const _0x30c0e9=execaSync(_0x5cc5bc(0xd4),_0x387a48,execaOptions(_0x341ebd,_0x5cc5bc(0xd3)));return normalizeExecaResult(_0x30c0e9,_0x391f21?.[_0x5cc5bc(0xe3)]??resolveGlobalSkillName(_0x3dcedb),_0x391f21?.['presence'],_0x391f21?.[_0x5cc5bc(0x102)]);}
1
+ function a324_0x37b4(_0x1c546a,_0x44d30d){_0x1c546a=_0x1c546a-0x1d6;const _0x316720=a324_0x3167();let _0x37b497=_0x316720[_0x1c546a];return _0x37b497;}const a324_0x384df8=a324_0x37b4;(function(_0x46e9bc,_0x314000){const _0x47c5d6=a324_0x37b4,_0x56b3f2=_0x46e9bc();while(!![]){try{const _0x36c1e2=parseInt(_0x47c5d6(0x1e5))/0x1+-parseInt(_0x47c5d6(0x1e0))/0x2*(parseInt(_0x47c5d6(0x203))/0x3)+parseInt(_0x47c5d6(0x1e6))/0x4*(-parseInt(_0x47c5d6(0x1da))/0x5)+-parseInt(_0x47c5d6(0x1ef))/0x6*(-parseInt(_0x47c5d6(0x1e2))/0x7)+parseInt(_0x47c5d6(0x207))/0x8+-parseInt(_0x47c5d6(0x1f9))/0x9*(parseInt(_0x47c5d6(0x1e1))/0xa)+-parseInt(_0x47c5d6(0x1dc))/0xb*(-parseInt(_0x47c5d6(0x20f))/0xc);if(_0x36c1e2===_0x314000)break;else _0x56b3f2['push'](_0x56b3f2['shift']());}catch(_0x24c24b){_0x56b3f2['push'](_0x56b3f2['shift']());}}}(a324_0x3167,0x8948c));function a324_0x3167(){const _0x1e85d7=['7416261apGvNy','stdout','SPAWN_FAILED','expectedSkillName','stdio','log','\x20failed\x20target(s)','signal','ENOENT','EPERM','1357626PqoXXp','exitCode','skill','pipe','1906520xqjPiy','stderr','add','rabetbase','warn','reason','trim','unverifiable','9329868qDGLrU','code','npx','checked','CHILD_TERMINATED','push','12820xnQWaj','PERMISSION_DENIED','22zrhYdU','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','absent','match','2cFuunG','10IbZWaB','406lZcjUG','state','INSTALL_PARTIAL','334688tjllFr','1380IbmSOQ','--skill','exit\x20','EACCES','NPX_NOT_FOUND','npx\x20failed\x20to\x20start','Installer\x20reported\x20','NPM_CONFIG_GLOBAL','present','61602rhNqMK','npx\x20terminated\x20by\x20signal\x20','shortMessage','skills@latest','npm_config_global','\x22\x20install\x20state:\x20','message','presence','join','filter'];a324_0x3167=function(){return _0x1e85d7;};return a324_0x3167();}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=a324_0x384df8(0x1f2);export const NPX_SKILLS_SUBCOMMAND_ADD=a324_0x384df8(0x209);export const NPX_SKILLS_FLAG_SKILL=a324_0x384df8(0x1e7);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const RABETBASE_GLOBAL_SKILL_NAME=a324_0x384df8(0x20a);export const RABETBASE_SKILL_GIT_SOURCE='git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git';export function resolveGlobalSkillName(_0x5ef2e4){const _0x25e35c=a324_0x384df8;switch(_0x5ef2e4[_0x25e35c(0x20d)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x57a86b){const _0x3dd3d8=a324_0x384df8,_0x427d7a=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x57a86b&&_0x427d7a[_0x3dd3d8(0x1d9)](NPX_SKILLS_FLAG_SKILL,_0x57a86b),_0x427d7a;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a324_0x384df8(0x1d6),...buildNpxSkillsAddArgv()][a324_0x384df8(0x1f7)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x4abf0b,_0x3c2cd0,_0x37fcc2){return{'ok':![],'status':_0x3c2cd0,'code':_0x4abf0b,'error':'['+_0x4abf0b+']\x20'+_0x37fcc2};}function execaOptions(_0x5d0bb7,_0xba6bc6){const _0x8c4c54=a324_0x384df8,_0x5a2121={...process.env};return delete _0x5a2121[_0x8c4c54(0x1f3)],delete _0x5a2121[_0x8c4c54(0x1ed)],{'cwd':_0x5d0bb7,'stdio':_0xba6bc6,'env':_0x5a2121,'extendEnv':![],'shell':![],'reject':![],..._0xba6bc6===_0x8c4c54(0x206)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeExecaResult(_0x2d7957,_0x43cf97,_0x23ff2f,_0x12887a){const _0xb92252=a324_0x384df8,_0x16b35d=[_0x2d7957['stdout']?String(_0x2d7957[_0xb92252(0x1fa)]):'',_0x2d7957[_0xb92252(0x208)]?String(_0x2d7957['stderr']):''][_0xb92252(0x1f8)](Boolean)['join']('\x0a')[_0xb92252(0x20d)](),_0x584abd=_0x2d7957[_0xb92252(0x204)]??null;_0x12887a!==_0xb92252(0x206)&&_0x16b35d&&console[_0xb92252(0x1fe)](_0x16b35d);if(_0x2d7957[_0xb92252(0x210)]){const _0x3590c3=_0x2d7957[_0xb92252(0x210)]===_0xb92252(0x201)?_0xb92252(0x1ea):_0x2d7957[_0xb92252(0x210)]===_0xb92252(0x202)||_0x2d7957[_0xb92252(0x210)]===_0xb92252(0x1e9)?_0xb92252(0x1db):_0xb92252(0x1fb);return failure(_0x3590c3,_0x584abd,_0x2d7957[_0xb92252(0x1f1)]??_0x2d7957[_0xb92252(0x1f5)]??_0x2d7957[_0xb92252(0x210)]);}if(_0x2d7957['signal'])return failure(_0xb92252(0x1d8),_0x584abd,_0xb92252(0x1f0)+_0x2d7957[_0xb92252(0x200)]);if(_0x2d7957['failed']&&_0x584abd===null)return failure(_0xb92252(0x1fb),_0x584abd,_0x2d7957['shortMessage']??_0x2d7957[_0xb92252(0x1f5)]??_0xb92252(0x1eb));if(_0x584abd!==0x0)return failure('CHILD_EXIT_NONZERO',_0x584abd,_0x16b35d||_0x2d7957[_0xb92252(0x1f1)]||_0xb92252(0x1e8)+(_0x584abd??'unknown'));const _0xa0ff53=_0x43cf97?resolveInstalledSkill(_0x43cf97,_0x23ff2f):undefined,_0x55e6d3=_0x16b35d[_0xb92252(0x1df)](/Failed to install\s+(\d+)/i);if(_0x55e6d3&&Number(_0x55e6d3[0x1])>0x0){const _0x807de2=_0xb92252(0x1ec)+_0x55e6d3[0x1]+_0xb92252(0x1ff)+(_0x16b35d?':\x0a'+_0x16b35d:'');if(_0xa0ff53?.[_0xb92252(0x1e3)]===_0xb92252(0x1ee))return console['warn']('!\x20'+_0x807de2),{'ok':!![],'status':0x0};return failure(_0xb92252(0x1e4),0x0,_0x807de2);}if(_0xa0ff53){if(_0xa0ff53[_0xb92252(0x1e3)]===_0xb92252(0x1de))return failure('SKILL_NOT_INSTALLED',0x0,'Skill\x20\x22'+_0x43cf97+_0xb92252(0x1dd)+_0xa0ff53[_0xb92252(0x1d7)][_0xb92252(0x1f7)](',\x20')+')');_0xa0ff53['state']===_0xb92252(0x20e)&&console[_0xb92252(0x20b)]('!\x20Could\x20not\x20verify\x20\x22'+_0x43cf97+_0xb92252(0x1f4)+_0xa0ff53[_0xb92252(0x20c)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x1f95c2,_0x421a4f){const _0x31bbce=a324_0x384df8;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xe51a10=_0x421a4f?.['stdio']??'inherit',_0x4e0ced=buildNpxSkillsAddArgv(_0x421a4f?.[_0x31bbce(0x205)]),_0x2e39ed=['npx',..._0x4e0ced]['join']('\x20');console['log']('*\x20'+_0x2e39ed);const _0x3dda4c=execaSync('npx',_0x4e0ced,execaOptions(_0x1f95c2,_0xe51a10));return normalizeExecaResult(_0x3dda4c,undefined,undefined,_0xe51a10);}export function runNpxSkillsAddGlobal(_0x506e4d,_0x40f6d2,_0xe3c0c7){const _0x4a4e25=a324_0x384df8;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x2a2710=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x40f6d2,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x102834=[_0x4a4e25(0x1d6),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x40f6d2,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x4a4e25(0x1f7)]('\x20');console[_0x4a4e25(0x1fe)]('*\x20'+_0x102834);const _0x3eb90d=execaSync(_0x4a4e25(0x1d6),_0x2a2710,execaOptions(_0x506e4d,_0x4a4e25(0x206)));return normalizeExecaResult(_0x3eb90d,_0xe3c0c7?.[_0x4a4e25(0x1fc)]??resolveGlobalSkillName(_0x40f6d2),_0xe3c0c7?.[_0x4a4e25(0x1f6)],_0xe3c0c7?.[_0x4a4e25(0x1fd)]);}
@@ -1 +1 @@
1
- function a325_0x744c(_0x4251c7,_0x3bcbd7){_0x4251c7=_0x4251c7-0xd0;const _0x2fd11f=a325_0x2fd1();let _0x744c63=_0x2fd11f[_0x4251c7];return _0x744c63;}const a325_0x28a664=a325_0x744c;(function(_0x4c8e16,_0x4b1d09){const _0x444138=a325_0x744c,_0x3b512c=_0x4c8e16();while(!![]){try{const _0x1cad46=-parseInt(_0x444138(0xdd))/0x1+-parseInt(_0x444138(0xde))/0x2*(parseInt(_0x444138(0xe9))/0x3)+parseInt(_0x444138(0xec))/0x4+-parseInt(_0x444138(0xf5))/0x5+parseInt(_0x444138(0xe6))/0x6*(-parseInt(_0x444138(0xd0))/0x7)+-parseInt(_0x444138(0xdf))/0x8*(parseInt(_0x444138(0xd2))/0x9)+-parseInt(_0x444138(0xda))/0xa*(-parseInt(_0x444138(0xe2))/0xb);if(_0x1cad46===_0x4b1d09)break;else _0x3b512c['push'](_0x3b512c['shift']());}catch(_0x779858){_0x3b512c['push'](_0x3b512c['shift']());}}}(a325_0x2fd1,0x8e51a));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join('.agents',a325_0x28a664(0xf2));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a325_0x28a664(0xd5),'skills'),join('.claude','skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function a325_0x2fd1(){const _0x51e431=['join','\x20is\x20unreadable:\x20','1678074VFgbXf','globalSkillsDirs','reason','9GVMzRR','\x20records\x20\x22','parse','2067628GcxwgY','present','lockFile','utf8','\x20uses\x20unsupported\x20version\x20','version','.skill-lock.json','unusable','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','2884265yGdNaN','SKILL.md','14nAXsfe','kind','9XEdrLv','home','not-recorded','.agents','skills','recorded','unverifiable','includes','30BqNbTs','number','\x20has\x20no\x20skills\x20map','62853eoxlca','227946RPQaRH','3647176vLcMkE','map','absent','7564007DGkxwr','find'];a325_0x2fd1=function(){return _0x51e431;};return a325_0x2fd1();}function readLockLookup(_0x35dba1,_0x47a54c){const _0x1f0141=a325_0x28a664;if(!existsSync(_0x35dba1))return{'kind':_0x1f0141(0xd4)};let _0x2973fe;try{_0x2973fe=JSON[_0x1f0141(0xeb)](readFileSync(_0x35dba1,_0x1f0141(0xef)));}catch(_0x1788bc){return{'kind':_0x1f0141(0xf3),'reason':_0x35dba1+_0x1f0141(0xe5)+_0x1788bc['message']};}const _0x42e1c3=_0x2973fe;if(typeof _0x42e1c3?.['version']!==_0x1f0141(0xdb)||!SUPPORTED_LOCK_VERSIONS[_0x1f0141(0xd9)](_0x42e1c3[_0x1f0141(0xf1)]))return{'kind':_0x1f0141(0xf3),'reason':_0x35dba1+_0x1f0141(0xf0)+String(_0x42e1c3?.[_0x1f0141(0xf1)])};if(!_0x42e1c3[_0x1f0141(0xd6)]||typeof _0x42e1c3[_0x1f0141(0xd6)]!=='object')return{'kind':_0x1f0141(0xf3),'reason':_0x35dba1+_0x1f0141(0xdc)};return _0x42e1c3[_0x1f0141(0xd6)][_0x47a54c]?{'kind':_0x1f0141(0xd7)}:{'kind':_0x1f0141(0xd4)};}export function resolveInstalledSkill(_0x563172,_0x5a9bfb){const _0x313b98=a325_0x28a664,_0x5d3e12=_0x5a9bfb?.[_0x313b98(0xd3)]??homedir(),_0x3f90c2=_0x5a9bfb?.[_0x313b98(0xe7)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS['map'](_0x18186a=>join(_0x5d3e12,_0x18186a)),_0x31c907=_0x5a9bfb?.[_0x313b98(0xee)]??join(_0x5d3e12,SKILL_LOCK_RELATIVE_PATH),_0x1539e7=_0x3f90c2[_0x313b98(0xe0)](_0x4d3885=>join(_0x4d3885,_0x563172,_0x313b98(0xf6))),_0xca429b=_0x1539e7[_0x313b98(0xe3)](_0x33130a=>existsSync(_0x33130a));if(_0xca429b)return{'state':_0x313b98(0xed),'path':_0xca429b};const _0x55e0e9=readLockLookup(_0x31c907,_0x563172);if(_0x55e0e9[_0x313b98(0xd1)]==='unusable')return{'state':_0x313b98(0xd8),'reason':_0x55e0e9[_0x313b98(0xe8)]};if(_0x55e0e9[_0x313b98(0xd1)]===_0x313b98(0xd7))return{'state':_0x313b98(0xd8),'reason':_0x31c907+_0x313b98(0xea)+_0x563172+_0x313b98(0xf4)+('('+_0x1539e7[_0x313b98(0xe4)](',\x20')+')')};return{'state':_0x313b98(0xe1),'checked':_0x1539e7};}
1
+ const a325_0x57bdc9=a325_0x5ed8;(function(_0x2f45d0,_0x2213dd){const _0x3cc234=a325_0x5ed8,_0x2b13ea=_0x2f45d0();while(!![]){try{const _0x3ed75b=-parseInt(_0x3cc234(0x153))/0x1*(-parseInt(_0x3cc234(0x157))/0x2)+parseInt(_0x3cc234(0x15a))/0x3+-parseInt(_0x3cc234(0x151))/0x4+-parseInt(_0x3cc234(0x150))/0x5+-parseInt(_0x3cc234(0x154))/0x6*(-parseInt(_0x3cc234(0x149))/0x7)+-parseInt(_0x3cc234(0x13b))/0x8*(parseInt(_0x3cc234(0x144))/0x9)+parseInt(_0x3cc234(0x14c))/0xa*(-parseInt(_0x3cc234(0x147))/0xb);if(_0x3ed75b===_0x2213dd)break;else _0x2b13ea['push'](_0x2b13ea['shift']());}catch(_0x3d960f){_0x2b13ea['push'](_0x2b13ea['shift']());}}}(a325_0x3325,0x3b7fb));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a325_0x57bdc9(0x158),'.skill-lock.json');export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a325_0x57bdc9(0x158),a325_0x57bdc9(0x155)),join('.claude',a325_0x57bdc9(0x155))];function a325_0x5ed8(_0xf3edfd,_0x238ae0){_0xf3edfd=_0xf3edfd-0x138;const _0x3325f4=a325_0x3325();let _0x5ed826=_0x3325f4[_0xf3edfd];return _0x5ed826;}const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x353658,_0x179aa4){const _0x3a4529=a325_0x57bdc9;if(!existsSync(_0x353658))return{'kind':_0x3a4529(0x145)};let _0x412a16;try{_0x412a16=JSON[_0x3a4529(0x14f)](readFileSync(_0x353658,_0x3a4529(0x141)));}catch(_0x579851){return{'kind':'unusable','reason':_0x353658+_0x3a4529(0x14a)+_0x579851[_0x3a4529(0x13c)]};}const _0xc3caf7=_0x412a16;if(typeof _0xc3caf7?.[_0x3a4529(0x139)]!=='number'||!SUPPORTED_LOCK_VERSIONS[_0x3a4529(0x13a)](_0xc3caf7['version']))return{'kind':'unusable','reason':_0x353658+_0x3a4529(0x14e)+String(_0xc3caf7?.['version'])};if(!_0xc3caf7[_0x3a4529(0x155)]||typeof _0xc3caf7[_0x3a4529(0x155)]!==_0x3a4529(0x143))return{'kind':_0x3a4529(0x13d),'reason':_0x353658+_0x3a4529(0x13e)};return _0xc3caf7[_0x3a4529(0x155)][_0x179aa4]?{'kind':_0x3a4529(0x148)}:{'kind':_0x3a4529(0x145)};}export function resolveInstalledSkill(_0x17c64a,_0x20919c){const _0x1dd30b=a325_0x57bdc9,_0x402cf8=_0x20919c?.['home']??homedir(),_0x170138=_0x20919c?.[_0x1dd30b(0x140)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS['map'](_0x300f7b=>join(_0x402cf8,_0x300f7b)),_0x4f5a82=_0x20919c?.['lockFile']??join(_0x402cf8,SKILL_LOCK_RELATIVE_PATH),_0x265bfb=_0x170138[_0x1dd30b(0x146)](_0x361015=>join(_0x361015,_0x17c64a,_0x1dd30b(0x14d))),_0xb8fe59=_0x265bfb[_0x1dd30b(0x152)](_0x1f04cc=>existsSync(_0x1f04cc));if(_0xb8fe59)return{'state':_0x1dd30b(0x14b),'path':_0xb8fe59};const _0x325107=readLockLookup(_0x4f5a82,_0x17c64a);if(_0x325107[_0x1dd30b(0x13f)]===_0x1dd30b(0x13d))return{'state':_0x1dd30b(0x156),'reason':_0x325107['reason']};if(_0x325107[_0x1dd30b(0x13f)]==='recorded')return{'state':'unverifiable','reason':_0x4f5a82+_0x1dd30b(0x142)+_0x17c64a+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0x265bfb[_0x1dd30b(0x138)](',\x20')+')')};return{'state':_0x1dd30b(0x159),'checked':_0x265bfb};}function a325_0x3325(){const _0xc60b12=['78588NlHjLW','join','version','includes','8gvvODH','message','unusable','\x20has\x20no\x20skills\x20map','kind','globalSkillsDirs','utf8','\x20records\x20\x22','object','795681dTsgCL','not-recorded','map','297fsFgNq','recorded','3150196YDipYH','\x20is\x20unreadable:\x20','present','22970SzXlUd','SKILL.md','\x20uses\x20unsupported\x20version\x20','parse','380130DIZYoW','1938424UjaSWA','find','36811KAPNJE','6FEBKjA','skills','unverifiable','26tHgWGb','.agents','absent'];a325_0x3325=function(){return _0xc60b12;};return a325_0x3325();}
@@ -1 +1 @@
1
- (function(_0x372f18,_0x91496d){const _0x76e291=a326_0x39cb,_0x292f9f=_0x372f18();while(!![]){try{const _0x51c1fa=-parseInt(_0x76e291(0x1f3))/0x1+parseInt(_0x76e291(0x1f9))/0x2*(-parseInt(_0x76e291(0x1f5))/0x3)+parseInt(_0x76e291(0x1ff))/0x4+-parseInt(_0x76e291(0x1f7))/0x5+-parseInt(_0x76e291(0x1f6))/0x6*(parseInt(_0x76e291(0x202))/0x7)+parseInt(_0x76e291(0x204))/0x8*(parseInt(_0x76e291(0x1fe))/0x9)+-parseInt(_0x76e291(0x1fd))/0xa*(-parseInt(_0x76e291(0x1f2))/0xb);if(_0x51c1fa===_0x91496d)break;else _0x292f9f['push'](_0x292f9f['shift']());}catch(_0x106168){_0x292f9f['push'](_0x292f9f['shift']());}}}(a326_0x55c4,0x53670));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a326_0x39cb(_0x252d17,_0x4f2cd8){_0x252d17=_0x252d17-0x1f1;const _0x55c471=a326_0x55c4();let _0x39cb26=_0x55c471[_0x252d17];return _0x39cb26;}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x2d1441){return SENSITIVE_PATTERNS['some'](_0x1caf99=>_0x1caf99['test'](_0x2d1441));}function sanitizeFlags(_0x57ffef){const _0x44553b=a326_0x39cb,_0x4b6256={};for(const [_0x4bd8d4,_0x3d477a]of Object[_0x44553b(0x203)](_0x57ffef)){isSensitiveKey(_0x4bd8d4)?_0x4b6256[_0x4bd8d4]=_0x3d477a!=null&&_0x3d477a!==''?_0x44553b(0x1f8):_0x3d477a:_0x4b6256[_0x4bd8d4]=_0x3d477a;}return _0x4b6256;}function a326_0x55c4(){const _0x12aae2=['33boRfRt','66xEiiAl','906670lBjBEF','[REDACTED]','118246fwprrd','message','error','command','37720ifHPgI','135axAgem','688820OAoGMZ','service','stringify','164759ojWxFd','entries','44536LaXElJ','durationMs','4664vXlvQo','422828XqgYPs','rabetbase.command'];a326_0x55c4=function(){return _0x12aae2;};return a326_0x55c4();}export async function reportCommandTrace(_0x21b4ab){const _0x347dca=a326_0x39cb;try{const _0x193a6a=sanitizeFlags(_0x21b4ab['flags']);await sendCliTraceLog({'spanName':_0x347dca(0x1f4),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x21b4ab[_0x347dca(0x200)],'command.name':_0x21b4ab[_0x347dca(0x1fc)],'command.flags':JSON[_0x347dca(0x201)](_0x193a6a),..._0x21b4ab[_0x347dca(0x1f1)]!=null?{'command.duration_ms':_0x21b4ab[_0x347dca(0x1f1)]}:{},..._0x21b4ab[_0x347dca(0x1fb)]?{'command.error':_0x21b4ab[_0x347dca(0x1fb)]instanceof Error?_0x21b4ab[_0x347dca(0x1fb)][_0x347dca(0x1fa)]:String(_0x21b4ab[_0x347dca(0x1fb)])}:{}}});}catch{}}
1
+ (function(_0x336a9b,_0x284823){const _0x1787fb=a326_0x5c4c,_0x4431f8=_0x336a9b();while(!![]){try{const _0x227567=-parseInt(_0x1787fb(0x1e0))/0x1*(parseInt(_0x1787fb(0x1e6))/0x2)+-parseInt(_0x1787fb(0x1ec))/0x3*(parseInt(_0x1787fb(0x1f2))/0x4)+-parseInt(_0x1787fb(0x1e3))/0x5*(parseInt(_0x1787fb(0x1ef))/0x6)+parseInt(_0x1787fb(0x1e1))/0x7*(-parseInt(_0x1787fb(0x1f3))/0x8)+parseInt(_0x1787fb(0x1f0))/0x9*(-parseInt(_0x1787fb(0x1e5))/0xa)+parseInt(_0x1787fb(0x1e4))/0xb*(parseInt(_0x1787fb(0x1e9))/0xc)+parseInt(_0x1787fb(0x1de))/0xd*(parseInt(_0x1787fb(0x1e7))/0xe);if(_0x227567===_0x284823)break;else _0x4431f8['push'](_0x4431f8['shift']());}catch(_0x176aca){_0x4431f8['push'](_0x4431f8['shift']());}}}(a326_0x3e19,0xe06be));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x3f5971){const _0x186001=a326_0x5c4c;return SENSITIVE_PATTERNS['some'](_0x2a0464=>_0x2a0464[_0x186001(0x1ed)](_0x3f5971));}function sanitizeFlags(_0x19b6a6){const _0x2279e5=a326_0x5c4c,_0x49569a={};for(const [_0x30599d,_0x3236c3]of Object[_0x2279e5(0x1f4)](_0x19b6a6)){isSensitiveKey(_0x30599d)?_0x49569a[_0x30599d]=_0x3236c3!=null&&_0x3236c3!==''?_0x2279e5(0x1e8):_0x3236c3:_0x49569a[_0x30599d]=_0x3236c3;}return _0x49569a;}export async function reportCommandTrace(_0x3e04de){const _0x5edb36=a326_0x5c4c;try{const _0x476146=sanitizeFlags(_0x3e04de[_0x5edb36(0x1ee)]);await sendCliTraceLog({'spanName':_0x5edb36(0x1f1),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x3e04de[_0x5edb36(0x1eb)],'command.name':_0x3e04de['command'],'command.flags':JSON[_0x5edb36(0x1df)](_0x476146),..._0x3e04de[_0x5edb36(0x1ea)]!=null?{'command.duration_ms':_0x3e04de[_0x5edb36(0x1ea)]}:{},..._0x3e04de[_0x5edb36(0x1e2)]?{'command.error':_0x3e04de[_0x5edb36(0x1e2)]instanceof Error?_0x3e04de[_0x5edb36(0x1e2)]['message']:String(_0x3e04de['error'])}:{}}});}catch{}}function a326_0x5c4c(_0x51adb9,_0x42f385){_0x51adb9=_0x51adb9-0x1de;const _0x3e1993=a326_0x3e19();let _0x5c4cc8=_0x3e1993[_0x51adb9];return _0x5c4cc8;}function a326_0x3e19(){const _0x50c2cd=['stringify','2SITIOj','1218QmohZy','error','6817885HtxHwE','2430934odFEXt','2573470TOMmlc','1592070PDHmCB','11326MvXONE','[REDACTED]','60DGYovB','durationMs','service','87ykTrHa','test','flags','6HrRyYN','36FfCrpO','rabetbase.command','149776YPfytC','44280uiuuWy','entries','93977rdzhWf'];a326_0x3e19=function(){return _0x50c2cd;};return a326_0x3e19();}
@@ -1 +1 @@
1
- function a327_0x5338(_0x763de1,_0x1505f5){_0x763de1=_0x763de1-0xe0;var _0x536c97=a327_0x536c();var _0x533863=_0x536c97[_0x763de1];return _0x533863;}function a327_0x536c(){var _0xa24cc6=['error','23466ysNTdn','8rAHHzD','196ptDfWa','94458HjFbrX','7827239FkNDRt','service','14351454oYKGGH','22781436wHkLhz','88215MSEgCV','10xoYGNN','cli.help','Failed\x20to\x20report\x20CLI\x20help\x20trace:','19740523aDObjq','1970tGNGCf','16ksutNU'];a327_0x536c=function(){return _0xa24cc6;};return a327_0x536c();}(function(_0x22e823,_0x75c2a0){var _0x55f6c1=a327_0x5338,_0xce6bff=_0x22e823();while(!![]){try{var _0x3fb734=-parseInt(_0x55f6c1(0xe9))/0x1*(-parseInt(_0x55f6c1(0xee))/0x2)+parseInt(_0x55f6c1(0xe3))/0x3*(-parseInt(_0x55f6c1(0xed))/0x4)+-parseInt(_0x55f6c1(0xe8))/0x5*(parseInt(_0x55f6c1(0xeb))/0x6)+parseInt(_0x55f6c1(0xef))/0x7*(parseInt(_0x55f6c1(0xec))/0x8)+-parseInt(_0x55f6c1(0xe1))/0x9+-parseInt(_0x55f6c1(0xe4))/0xa*(-parseInt(_0x55f6c1(0xe7))/0xb)+parseInt(_0x55f6c1(0xe2))/0xc;if(_0x3fb734===_0x75c2a0)break;else _0xce6bff['push'](_0xce6bff['shift']());}catch(_0x1cfcff){_0xce6bff['push'](_0xce6bff['shift']());}}}(a327_0x536c,0xf1d26));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x557821,_0x946c01){var _0x421b55=a327_0x5338;try{await sendCliTraceLog({'spanName':_0x421b55(0xe5),'logData':{'rabetbase.help.kind':_0x557821,..._0x946c01?.[_0x421b55(0xe0)]&&{'rabetbase.help.service':_0x946c01[_0x421b55(0xe0)]}}});}catch(_0xb7f88b){console[_0x421b55(0xea)](_0x421b55(0xe6),_0xb7f88b);}}
1
+ function a327_0x1fe0(){var _0x5becaf=['2903312yyQKhd','317899oDcghK','error','4093227hJVGFe','16SEYpBI','4jMXOLB','628830zLlSaB','Failed\x20to\x20report\x20CLI\x20help\x20trace:','242599kQTBxb','102VgYJzo','service','5061970ZvDCiG','cli.help'];a327_0x1fe0=function(){return _0x5becaf;};return a327_0x1fe0();}(function(_0x337269,_0x19af7b){var _0x205cb9=a327_0x9d0d,_0x4af302=_0x337269();while(!![]){try{var _0x468be8=-parseInt(_0x205cb9(0x19f))/0x1+parseInt(_0x205cb9(0x19e))/0x2+parseInt(_0x205cb9(0x1a1))/0x3*(-parseInt(_0x205cb9(0x196))/0x4)+parseInt(_0x205cb9(0x19c))/0x5+parseInt(_0x205cb9(0x19a))/0x6+parseInt(_0x205cb9(0x199))/0x7*(parseInt(_0x205cb9(0x195))/0x8)+-parseInt(_0x205cb9(0x197))/0x9;if(_0x468be8===_0x19af7b)break;else _0x4af302['push'](_0x4af302['shift']());}catch(_0x284853){_0x4af302['push'](_0x4af302['shift']());}}}(a327_0x1fe0,0xbeb93));function a327_0x9d0d(_0x2122ed,_0x14c2e9){_0x2122ed=_0x2122ed-0x195;var _0x1fe0b6=a327_0x1fe0();var _0x9d0df9=_0x1fe0b6[_0x2122ed];return _0x9d0df9;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x25a727,_0x35ec7c){var _0x483201=a327_0x9d0d;try{await sendCliTraceLog({'spanName':_0x483201(0x19d),'logData':{'rabetbase.help.kind':_0x25a727,..._0x35ec7c?.[_0x483201(0x19b)]&&{'rabetbase.help.service':_0x35ec7c[_0x483201(0x19b)]}}});}catch(_0x1116a3){console[_0x483201(0x1a0)](_0x483201(0x198),_0x1116a3);}}
@@ -1 +1 @@
1
- function a328_0xccae(_0x5b918f,_0x106b5a){_0x5b918f=_0x5b918f-0xb8;const _0x854acc=a328_0x854a();let _0xccae6=_0x854acc[_0x5b918f];return _0xccae6;}(function(_0x272b31,_0x3246c3){const _0x29db5c=a328_0xccae,_0x1d3943=_0x272b31();while(!![]){try{const _0x3bd634=-parseInt(_0x29db5c(0xbf))/0x1*(parseInt(_0x29db5c(0xc4))/0x2)+parseInt(_0x29db5c(0xc6))/0x3+-parseInt(_0x29db5c(0xc2))/0x4*(parseInt(_0x29db5c(0xc5))/0x5)+parseInt(_0x29db5c(0xc8))/0x6+-parseInt(_0x29db5c(0xbd))/0x7*(-parseInt(_0x29db5c(0xba))/0x8)+-parseInt(_0x29db5c(0xbc))/0x9*(-parseInt(_0x29db5c(0xcb))/0xa)+-parseInt(_0x29db5c(0xc9))/0xb;if(_0x3bd634===_0x3246c3)break;else _0x1d3943['push'](_0x1d3943['shift']());}catch(_0x1260dc){_0x1d3943['push'](_0x1d3943['shift']());}}}(a328_0x854a,0x8d55c));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 _0x5421a5=a328_0xccae,_0x5dc3e7=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0xfd2691=_0x5dc3e7?.[_0x5421a5(0xbe)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x5421a5(0xc0)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x5421a5(0xc7):_0x5421a5(0xb8))}),setUserContext({'id':_0xfd2691?.['id'],'username':_0xfd2691?.[_0x5421a5(0xb9)],'nickname':_0xfd2691?.[_0x5421a5(0xbb)],'email':_0xfd2691?.[_0x5421a5(0xc3)],'tenantCode':_0xfd2691?.[_0x5421a5(0xca)]?.[_0x5421a5(0xc1)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x5dc3e7;}function a328_0x854a(){const _0x46aa3a=['production','username','544nHPfaC','nickname','9ZqsrPO','44359QAatSt','user','57183ehxXnK','unknown','tenant_code','632WYlXks','email','14elLhzy','19315QDrjfG','3465672Zocumw','daily','4989936AnWsrl','16951902BLrujz','tenant','7128290lKAxBG'];a328_0x854a=function(){return _0x46aa3a;};return a328_0x854a();}
1
+ function a328_0x4e93(){const _0x278674=['533590sCMGzf','username','12eHrDWs','7887gogekJ','1629WZTkWB','unknown','8vglFlL','tenant_code','304482AhroPe','1003387dNDUUE','user','email','28hxSkvT','1179250MkmhTT','tenant','9800kZqsAK','126484XSaGpj','daily','production','198gQrqcU'];a328_0x4e93=function(){return _0x278674;};return a328_0x4e93();}(function(_0x4cac50,_0x514809){const _0x6db2e2=a328_0x394b,_0xb0f0bb=_0x4cac50();while(!![]){try{const _0x41e2bb=-parseInt(_0x6db2e2(0x8e))/0x1+-parseInt(_0x6db2e2(0x7d))/0x2*(-parseInt(_0x6db2e2(0x81))/0x3)+-parseInt(_0x6db2e2(0x84))/0x4*(parseInt(_0x6db2e2(0x7e))/0x5)+-parseInt(_0x6db2e2(0x86))/0x6*(-parseInt(_0x6db2e2(0x8a))/0x7)+-parseInt(_0x6db2e2(0x8d))/0x8*(-parseInt(_0x6db2e2(0x82))/0x9)+-parseInt(_0x6db2e2(0x8b))/0xa+-parseInt(_0x6db2e2(0x87))/0xb*(parseInt(_0x6db2e2(0x80))/0xc);if(_0x41e2bb===_0x514809)break;else _0xb0f0bb['push'](_0xb0f0bb['shift']());}catch(_0x37dd61){_0xb0f0bb['push'](_0xb0f0bb['shift']());}}}(a328_0x4e93,0x212f2));function a328_0x394b(_0x395d57,_0x4ff0ea){_0x395d57=_0x395d57-0x7b;const _0x4e9380=a328_0x4e93();let _0x394b5a=_0x4e9380[_0x395d57];return _0x394b5a;}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 _0x2a0632=a328_0x394b,_0x20e9e4=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x1b73e4=_0x20e9e4?.[_0x2a0632(0x88)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x2a0632(0x83)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x2a0632(0x7b):_0x2a0632(0x7c))}),setUserContext({'id':_0x1b73e4?.['id'],'username':_0x1b73e4?.[_0x2a0632(0x7f)],'nickname':_0x1b73e4?.['nickname'],'email':_0x1b73e4?.[_0x2a0632(0x89)],'tenantCode':_0x1b73e4?.[_0x2a0632(0x8c)]?.[_0x2a0632(0x85)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x20e9e4;}
@@ -1 +1 @@
1
- function a329_0x3bb5(_0x73d454,_0x1d7b7c){_0x73d454=_0x73d454-0xb7;const _0x419340=a329_0x4193();let _0x3bb573=_0x419340[_0x73d454];return _0x3bb573;}(function(_0x58a945,_0x5f46cc){const _0x47363f=a329_0x3bb5,_0x411ace=_0x58a945();while(!![]){try{const _0x70f86e=-parseInt(_0x47363f(0xbd))/0x1*(-parseInt(_0x47363f(0xc5))/0x2)+-parseInt(_0x47363f(0xc4))/0x3+-parseInt(_0x47363f(0xc1))/0x4*(-parseInt(_0x47363f(0xc3))/0x5)+-parseInt(_0x47363f(0xbc))/0x6*(parseInt(_0x47363f(0xba))/0x7)+parseInt(_0x47363f(0xb9))/0x8*(-parseInt(_0x47363f(0xbf))/0x9)+-parseInt(_0x47363f(0xb8))/0xa+parseInt(_0x47363f(0xc2))/0xb;if(_0x70f86e===_0x5f46cc)break;else _0x411ace['push'](_0x411ace['shift']());}catch(_0x1548cc){_0x411ace['push'](_0x411ace['shift']());}}}(a329_0x4193,0x296c1));import{shutdownTraces}from'@lovrabet/otel-logger';function a329_0x4193(){const _0x354d31=['SIGINT','8055jYYvhg','exit','53644unREvW','7938711JhfLsV','15xLtWMY','848403shpdtR','32FXAAmC','beforeExit','1529080uAwWxb','1168TdjSnx','7TqcoRh','once','1975308boceTM','18958SNdkVM'];a329_0x4193=function(){return _0x354d31;};return a329_0x4193();}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x535260=a329_0x3bb5;process[_0x535260(0xbb)](_0x535260(0xb7),()=>{void flushOtelNodeIfUsed();});const _0xe1588e=()=>{const _0x1f6a38=_0x535260;void flushOtelNodeIfUsed()['then'](()=>process[_0x1f6a38(0xc0)](0x0));};process['once'](_0x535260(0xbe),_0xe1588e),process[_0x535260(0xbb)]('SIGTERM',_0xe1588e);}export async function exitWithOtelShutdown(_0x11a03f){const _0x4bc0fd=a329_0x3bb5;await flushOtelNodeIfUsed(),process[_0x4bc0fd(0xc0)](_0x11a03f);}
1
+ (function(_0x352a82,_0x7cc46b){const _0x1b0e74=a329_0x1e95,_0x4ee08b=_0x352a82();while(!![]){try{const _0xa822fb=parseInt(_0x1b0e74(0x1f2))/0x1*(parseInt(_0x1b0e74(0x1e7))/0x2)+-parseInt(_0x1b0e74(0x1e5))/0x3+-parseInt(_0x1b0e74(0x1ed))/0x4*(parseInt(_0x1b0e74(0x1e6))/0x5)+-parseInt(_0x1b0e74(0x1f1))/0x6*(-parseInt(_0x1b0e74(0x1ec))/0x7)+-parseInt(_0x1b0e74(0x1eb))/0x8*(-parseInt(_0x1b0e74(0x1ee))/0x9)+-parseInt(_0x1b0e74(0x1f0))/0xa+parseInt(_0x1b0e74(0x1e8))/0xb*(parseInt(_0x1b0e74(0x1f4))/0xc);if(_0xa822fb===_0x7cc46b)break;else _0x4ee08b['push'](_0x4ee08b['shift']());}catch(_0x133243){_0x4ee08b['push'](_0x4ee08b['shift']());}}}(a329_0x15ac,0x8a180));import{shutdownTraces}from'@lovrabet/otel-logger';function a329_0x15ac(){const _0x4a825a=['exit','602304uSptgP','1567665ILrpWA','5LOBBjJ','178426owQkOq','253CPHKnb','then','SIGTERM','8olvfSQ','21XFmQSn','3437228tWgtaW','189909PNRcTE','once','5432160CJqAaY','1381404Biiayb','7tuvjsV'];a329_0x15ac=function(){return _0x4a825a;};return a329_0x15ac();}function a329_0x1e95(_0xcc13bd,_0x2637e0){_0xcc13bd=_0xcc13bd-0x1e5;const _0x15ac29=a329_0x15ac();let _0x1e9521=_0x15ac29[_0xcc13bd];return _0x1e9521;}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x53c789=a329_0x1e95;process['once']('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x182f9d=()=>{const _0x582bc9=a329_0x1e95;void flushOtelNodeIfUsed()[_0x582bc9(0x1e9)](()=>process[_0x582bc9(0x1f3)](0x0));};process[_0x53c789(0x1ef)]('SIGINT',_0x182f9d),process[_0x53c789(0x1ef)](_0x53c789(0x1ea),_0x182f9d);}export async function exitWithOtelShutdown(_0x575fd7){await flushOtelNodeIfUsed(),process['exit'](_0x575fd7);}
@@ -1 +1 @@
1
- const a330_0x162966=a330_0x4bac;(function(_0x3fd11d,_0x5f5515){const _0x567519=a330_0x4bac,_0x47c616=_0x3fd11d();while(!![]){try{const _0x4173bc=parseInt(_0x567519(0x1c6))/0x1*(parseInt(_0x567519(0x1c4))/0x2)+parseInt(_0x567519(0x1cb))/0x3+-parseInt(_0x567519(0x1ca))/0x4*(-parseInt(_0x567519(0x1c2))/0x5)+parseInt(_0x567519(0x1cd))/0x6*(parseInt(_0x567519(0x1c5))/0x7)+parseInt(_0x567519(0x1c1))/0x8+parseInt(_0x567519(0x1cc))/0x9*(parseInt(_0x567519(0x1c9))/0xa)+-parseInt(_0x567519(0x1ce))/0xb;if(_0x4173bc===_0x5f5515)break;else _0x47c616['push'](_0x47c616['shift']());}catch(_0x506c8c){_0x47c616['push'](_0x47c616['shift']());}}}(a330_0x4008,0xdefa6));import{sendTraceLog}from'@lovrabet/otel-logger';function a330_0x4008(){const _0x4d3cce=['traceparent','28qKmewC','81179SjTtTd','8627rlhiyR','rabetbase-cli','version','20AbPGQj','28uKdDDM','4455939KefcGy','5121108VwjvRG','66OsvHQh','45176296VtIAnL','manual','logData','6028728gLgdqf','996415NyzavD'];a330_0x4008=function(){return _0x4d3cce;};return a330_0x4008();}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a330_0x4bac(_0x40d77c,_0x4ae292){_0x40d77c=_0x40d77c-0x1c1;const _0x400870=a330_0x4008();let _0x4bac77=_0x400870[_0x40d77c];return _0x4bac77;}const DEFAULT_TRACE_NAME=a330_0x162966(0x1c7);export async function sendCliTraceLog(_0x87a93a){const _0x40d4d6=a330_0x162966;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x87a93a['traceName']??DEFAULT_TRACE_NAME,'version':_0x87a93a[_0x40d4d6(0x1c8)]??getCliVersion(),'spanName':_0x87a93a['spanName'],'eventType':_0x40d4d6(0x1cf),'logData':_0x87a93a[_0x40d4d6(0x1d0)],..._0x87a93a[_0x40d4d6(0x1c3)]&&{'traceparent':_0x87a93a[_0x40d4d6(0x1c3)]}});}
1
+ const a330_0xa77daf=a330_0x4759;(function(_0x3a932b,_0x514459){const _0x297a94=a330_0x4759,_0x47d32e=_0x3a932b();while(!![]){try{const _0x13b8f5=-parseInt(_0x297a94(0xdb))/0x1*(-parseInt(_0x297a94(0xde))/0x2)+-parseInt(_0x297a94(0xe0))/0x3*(-parseInt(_0x297a94(0xe5))/0x4)+parseInt(_0x297a94(0xd9))/0x5+-parseInt(_0x297a94(0xd8))/0x6+parseInt(_0x297a94(0xda))/0x7*(parseInt(_0x297a94(0xdf))/0x8)+-parseInt(_0x297a94(0xe4))/0x9+-parseInt(_0x297a94(0xd6))/0xa*(-parseInt(_0x297a94(0xe1))/0xb);if(_0x13b8f5===_0x514459)break;else _0x47d32e['push'](_0x47d32e['shift']());}catch(_0x397e9c){_0x47d32e['push'](_0x47d32e['shift']());}}}(a330_0x69f9,0x9ce31));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a330_0x69f9(){const _0x5ad90e=['rabetbase-cli','16882OVyiQO','50896haXkiF','97947ouUPld','242jssbfM','version','spanName','8023473gEmaYl','44pUtvad','traceparent','manual','215060EKFpYh','logData','499104yJvOpc','3027770qMiVsm','21xLDuXz','19AyKXuK','traceName'];a330_0x69f9=function(){return _0x5ad90e;};return a330_0x69f9();}function a330_0x4759(_0x4bd643,_0x1ceeed){_0x4bd643=_0x4bd643-0xd4;const _0x69f973=a330_0x69f9();let _0x4759a2=_0x69f973[_0x4bd643];return _0x4759a2;}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a330_0xa77daf(0xdd);export async function sendCliTraceLog(_0x206183){const _0x25915c=a330_0xa77daf;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x206183[_0x25915c(0xdc)]??DEFAULT_TRACE_NAME,'version':_0x206183[_0x25915c(0xe2)]??getCliVersion(),'spanName':_0x206183[_0x25915c(0xe3)],'eventType':_0x25915c(0xd5),'logData':_0x206183[_0x25915c(0xd7)],..._0x206183[_0x25915c(0xd4)]&&{'traceparent':_0x206183[_0x25915c(0xd4)]}});}
@@ -1 +1 @@
1
- function a331_0x3d9d(_0x1c78ec,_0x4da7d5){_0x1c78ec=_0x1c78ec-0x118;const _0x492270=a331_0x4922();let _0x3d9da2=_0x492270[_0x1c78ec];return _0x3d9da2;}const a331_0x4c4fe5=a331_0x3d9d;(function(_0x5d6b7a,_0x37e594){const _0x1f8d4a=a331_0x3d9d,_0x4a9870=_0x5d6b7a();while(!![]){try{const _0x31e089=-parseInt(_0x1f8d4a(0x123))/0x1+-parseInt(_0x1f8d4a(0x11c))/0x2+-parseInt(_0x1f8d4a(0x11e))/0x3+-parseInt(_0x1f8d4a(0x118))/0x4*(-parseInt(_0x1f8d4a(0x127))/0x5)+parseInt(_0x1f8d4a(0x122))/0x6+-parseInt(_0x1f8d4a(0x11d))/0x7*(parseInt(_0x1f8d4a(0x129))/0x8)+-parseInt(_0x1f8d4a(0x11a))/0x9*(-parseInt(_0x1f8d4a(0x125))/0xa);if(_0x31e089===_0x37e594)break;else _0x4a9870['push'](_0x4a9870['shift']());}catch(_0x525706){_0x4a9870['push'](_0x4a9870['shift']());}}}(a331_0x4922,0x4bc04));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a331_0x4c4fe5(0x124);export const PLATFORM_ISSUE_SPAN_NAME=a331_0x4c4fe5(0x11b);function a331_0x4922(){const _0x19a07c=['9aVwsFB','issue.log.collect','164216pTfyLz','21HTeUGG','1046364BXGEhE','description','title','sanitize','3337002pBsmjd','286986lDrMai','platform-issue-log-collect','4531570YEWHKP','originalBytes','306165iTxqgL','join','766216QgDLOu','20HqmZSZ','redactionCount'];a331_0x4922=function(){return _0x19a07c;};return a331_0x4922();}export async function sendPlatformIssueCollectLog(_0x329501){const _0x330983=a331_0x4c4fe5;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x329501[_0x330983(0x120)],'issue.description':_0x329501[_0x330983(0x11f)],..._0x329501['sanitize']?{'issue.description_original_bytes':_0x329501[_0x330983(0x121)][_0x330983(0x126)],'issue.description_truncated':_0x329501[_0x330983(0x121)]['truncated'],'issue.description_redactions':_0x329501[_0x330983(0x121)][_0x330983(0x119)],'issue.description_redaction_kinds':_0x329501[_0x330983(0x121)]['redactionKinds'][_0x330983(0x128)](',')}:{}}});}
1
+ function a331_0x2528(_0x3d78c2,_0x3a7d94){_0x3d78c2=_0x3d78c2-0xaf;const _0x1e2f84=a331_0x1e2f();let _0x2528e3=_0x1e2f84[_0x3d78c2];return _0x2528e3;}function a331_0x1e2f(){const _0x1f7cb3=['title','join','4602640GHCgEH','redactionKinds','190001OXpjtR','sanitize','215atKkvK','1553373gFGbsy','issue.log.collect','1147164WDiUJU','8LyzBBS','truncated','682293KenktZ','platform-issue-log-collect','originalBytes','6544AMWXvi','13764IptdtS','description','43TpYkuG'];a331_0x1e2f=function(){return _0x1f7cb3;};return a331_0x1e2f();}const a331_0x37bce6=a331_0x2528;(function(_0x449b17,_0x484a31){const _0x2c0f3c=a331_0x2528,_0x448961=_0x449b17();while(!![]){try{const _0x45a8bb=parseInt(_0x2c0f3c(0xb6))/0x1*(parseInt(_0x2c0f3c(0xb3))/0x2)+-parseInt(_0x2c0f3c(0xb0))/0x3+parseInt(_0x2c0f3c(0xb4))/0x4*(-parseInt(_0x2c0f3c(0xbd))/0x5)+-parseInt(_0x2c0f3c(0xc0))/0x6+parseInt(_0x2c0f3c(0xbb))/0x7*(-parseInt(_0x2c0f3c(0xc1))/0x8)+parseInt(_0x2c0f3c(0xbe))/0x9+parseInt(_0x2c0f3c(0xb9))/0xa;if(_0x45a8bb===_0x484a31)break;else _0x448961['push'](_0x448961['shift']());}catch(_0x5472d2){_0x448961['push'](_0x448961['shift']());}}}(a331_0x1e2f,0x2be72));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a331_0x37bce6(0xb1);export const PLATFORM_ISSUE_SPAN_NAME=a331_0x37bce6(0xbf);export async function sendPlatformIssueCollectLog(_0x251f1a){const _0x4251c2=a331_0x37bce6;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x251f1a[_0x4251c2(0xb7)],'issue.description':_0x251f1a[_0x4251c2(0xb5)],..._0x251f1a[_0x4251c2(0xbc)]?{'issue.description_original_bytes':_0x251f1a[_0x4251c2(0xbc)][_0x4251c2(0xb2)],'issue.description_truncated':_0x251f1a[_0x4251c2(0xbc)][_0x4251c2(0xaf)],'issue.description_redactions':_0x251f1a[_0x4251c2(0xbc)]['redactionCount'],'issue.description_redaction_kinds':_0x251f1a[_0x4251c2(0xbc)][_0x4251c2(0xba)][_0x4251c2(0xb8)](',')}:{}}});}
@@ -1 +1 @@
1
- const a333_0x43db81=a333_0x300e;(function(_0x6e0c7b,_0x46c2b0){const _0x1d4eca=a333_0x300e,_0x59db18=_0x6e0c7b();while(!![]){try{const _0x6ba81=-parseInt(_0x1d4eca(0x1bd))/0x1+parseInt(_0x1d4eca(0x1ca))/0x2*(-parseInt(_0x1d4eca(0x1d0))/0x3)+parseInt(_0x1d4eca(0x1ce))/0x4+-parseInt(_0x1d4eca(0x1cb))/0x5*(-parseInt(_0x1d4eca(0x1df))/0x6)+-parseInt(_0x1d4eca(0x1d8))/0x7+-parseInt(_0x1d4eca(0x1e1))/0x8*(parseInt(_0x1d4eca(0x1cc))/0x9)+-parseInt(_0x1d4eca(0x1e4))/0xa*(parseInt(_0x1d4eca(0x1db))/0xb);if(_0x6ba81===_0x46c2b0)break;else _0x59db18['push'](_0x59db18['shift']());}catch(_0x95961d){_0x59db18['push'](_0x59db18['shift']());}}}(a333_0x5548,0x4d78f));export const CORE_IDE_CONFIGS={'cursor':{'name':a333_0x43db81(0x1dc),'description':a333_0x43db81(0x1d5),'folders':[a333_0x43db81(0x1be),'.cursor'],'files':[{'type':a333_0x43db81(0x1e2),'path':a333_0x43db81(0x1c4)}]},'windsurf':{'name':a333_0x43db81(0x1cf),'description':a333_0x43db81(0x1e3),'folders':[a333_0x43db81(0x1c7)],'files':[{'type':'file','path':a333_0x43db81(0x1c3)}]},'claude':{'name':a333_0x43db81(0x1c0),'description':'Claude\x20Code','folders':[a333_0x43db81(0x1b8)],'files':[{'type':a333_0x43db81(0x1e2),'path':a333_0x43db81(0x1b5)}]},'cline':{'name':a333_0x43db81(0x1bc),'description':a333_0x43db81(0x1d1),'folders':['.cline'],'files':[{'type':'file','path':a333_0x43db81(0x1b7)}]},'codex':{'name':a333_0x43db81(0x1d7),'description':a333_0x43db81(0x1d9),'folders':['.codex'],'files':[{'type':a333_0x43db81(0x1e2),'path':'.codex/skills/lovrabet/SKILL.md'}]},'opencode':{'name':a333_0x43db81(0x1c1),'description':'OpenCode\x20IDE','folders':['.opencode'],'files':[{'type':a333_0x43db81(0x1e2),'path':'.opencode/skills/lovrabet/SKILL.md'}]},'qoder':{'name':a333_0x43db81(0x1c6),'description':'Qoder\x20IDE','folders':['.qoder'],'files':[{'type':a333_0x43db81(0x1e2),'path':a333_0x43db81(0x1e0)},{'type':'file','path':a333_0x43db81(0x1c8)}]},'codebuddy':{'name':a333_0x43db81(0x1ba),'description':'CodeBuddy\x20IDE','folders':['.codebuddy'],'files':[{'type':'file','path':a333_0x43db81(0x1c5)}]},'trae':{'name':a333_0x43db81(0x1b9),'description':'Trae\x20IDE','folders':[a333_0x43db81(0x1c2)],'files':[{'type':'file','path':'.trae/skills/lovrabet/SKILL.md'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a333_0x43db81(0x1e5),'description':'Generic\x20template\x20fallback','folders':['.agent'],'files':[{'type':'file','path':a333_0x43db81(0x1bb)}]},'antigravity':{'name':a333_0x43db81(0x1b4),'description':a333_0x43db81(0x1c9),'folders':['.agent'],'files':[{'type':a333_0x43db81(0x1e2),'path':a333_0x43db81(0x1bb)}]}};function a333_0x300e(_0x41cf3d,_0x5084b7){_0x41cf3d=_0x41cf3d-0x1b4;const _0x55489a=a333_0x5548();let _0x300e25=_0x55489a[_0x41cf3d];return _0x300e25;}export const CORE_IDE_LIST=[a333_0x43db81(0x1dd),a333_0x43db81(0x1b6),a333_0x43db81(0x1da),'codex',a333_0x43db81(0x1d6),a333_0x43db81(0x1bf),a333_0x43db81(0x1d3),a333_0x43db81(0x1d2),a333_0x43db81(0x1d4)];export const IDE_LIST=['antigravity',a333_0x43db81(0x1dd),a333_0x43db81(0x1b6),a333_0x43db81(0x1da),a333_0x43db81(0x1cd),a333_0x43db81(0x1d6),a333_0x43db81(0x1bf),a333_0x43db81(0x1d3),a333_0x43db81(0x1d2),a333_0x43db81(0x1d4),a333_0x43db81(0x1de)];function a333_0x5548(){const _0x453010=['2248656tHiDCv','Windsurf','6249ccCLyx','Cline\x20IDE','trae','qoder','windsurf','Cursor\x20IDE','cursor','Codex','1659819TsBjGZ','Codex\x20IDE','codebuddy','568733lucMPS','Cursor','claude','agent','6XnKaLQ','.qoder/rules/rabetbase.md','296jNhmNZ','file','Windsurf\x20IDE','20ijSRBy','Other\x20(generic\x20template)','Antigravity','.claude/skills/lovrabet/SKILL.md','cline','.cline/skills/lovrabet/SKILL.md','.claude','Trae','CodeBuddy','.agent/skills/lovrabet/SKILL.md','Cline','123352tioArR','.cursorrules','opencode','Claude\x20Code','OpenCode','.trae','.windsurf/workflows/rabetbase.md','.cursor/skills/rabetbase.md','.codebuddy/skills/lovrabet/SKILL.md','Qoder','.windsurf','.qoder/skills/lovrabet/SKILL.md','Antigravity\x20IDE','382oGWqtP','3146245HgGyYs','3006tLoepO','codex'];a333_0x5548=function(){return _0x453010;};return a333_0x5548();}export const ALL_CORE_IDES=['cursor','windsurf',a333_0x43db81(0x1dd),a333_0x43db81(0x1b6),a333_0x43db81(0x1cd),'opencode',a333_0x43db81(0x1d3),a333_0x43db81(0x1da),a333_0x43db81(0x1d2)];
1
+ const a333_0x58384f=a333_0x2aa4;(function(_0x12d559,_0x34cce7){const _0x3a9627=a333_0x2aa4,_0x23bbf2=_0x12d559();while(!![]){try{const _0x4a0a30=-parseInt(_0x3a9627(0x1ed))/0x1*(parseInt(_0x3a9627(0x1cf))/0x2)+parseInt(_0x3a9627(0x1c2))/0x3+-parseInt(_0x3a9627(0x1c1))/0x4*(parseInt(_0x3a9627(0x1bd))/0x5)+-parseInt(_0x3a9627(0x1be))/0x6*(-parseInt(_0x3a9627(0x1c8))/0x7)+parseInt(_0x3a9627(0x1cb))/0x8+-parseInt(_0x3a9627(0x1dc))/0x9*(-parseInt(_0x3a9627(0x1e0))/0xa)+-parseInt(_0x3a9627(0x1c0))/0xb;if(_0x4a0a30===_0x34cce7)break;else _0x23bbf2['push'](_0x23bbf2['shift']());}catch(_0x56c690){_0x23bbf2['push'](_0x23bbf2['shift']());}}}(a333_0x9060,0x621da));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':a333_0x58384f(0x1d9),'folders':[a333_0x58384f(0x1e8),a333_0x58384f(0x1d4)],'files':[{'type':a333_0x58384f(0x1dd),'path':a333_0x58384f(0x1ba)}]},'windsurf':{'name':'Windsurf','description':a333_0x58384f(0x1c4),'folders':[a333_0x58384f(0x1b9)],'files':[{'type':a333_0x58384f(0x1dd),'path':a333_0x58384f(0x1e4)}]},'claude':{'name':a333_0x58384f(0x1ca),'description':a333_0x58384f(0x1ca),'folders':[a333_0x58384f(0x1e2)],'files':[{'type':a333_0x58384f(0x1dd),'path':a333_0x58384f(0x1e5)}]},'cline':{'name':a333_0x58384f(0x1ee),'description':a333_0x58384f(0x1c9),'folders':[a333_0x58384f(0x1ec)],'files':[{'type':a333_0x58384f(0x1dd),'path':a333_0x58384f(0x1e9)}]},'codex':{'name':a333_0x58384f(0x1ce),'description':'Codex\x20IDE','folders':[a333_0x58384f(0x1d6)],'files':[{'type':a333_0x58384f(0x1dd),'path':'.codex/skills/lovrabet/SKILL.md'}]},'opencode':{'name':a333_0x58384f(0x1d1),'description':a333_0x58384f(0x1ef),'folders':[a333_0x58384f(0x1d5)],'files':[{'type':'file','path':a333_0x58384f(0x1da)}]},'qoder':{'name':a333_0x58384f(0x1d0),'description':a333_0x58384f(0x1cc),'folders':[a333_0x58384f(0x1e1)],'files':[{'type':a333_0x58384f(0x1dd),'path':a333_0x58384f(0x1c6)},{'type':a333_0x58384f(0x1dd),'path':'.qoder/skills/lovrabet/SKILL.md'}]},'codebuddy':{'name':'CodeBuddy','description':'CodeBuddy\x20IDE','folders':[a333_0x58384f(0x1eb)],'files':[{'type':a333_0x58384f(0x1dd),'path':a333_0x58384f(0x1db)}]},'trae':{'name':'Trae','description':a333_0x58384f(0x1d3),'folders':[a333_0x58384f(0x1df)],'files':[{'type':a333_0x58384f(0x1dd),'path':a333_0x58384f(0x1cd)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a333_0x58384f(0x1d7),'description':'Generic\x20template\x20fallback','folders':['.agent'],'files':[{'type':a333_0x58384f(0x1dd),'path':a333_0x58384f(0x1d2)}]},'antigravity':{'name':a333_0x58384f(0x1ea),'description':'Antigravity\x20IDE','folders':[a333_0x58384f(0x1d8)],'files':[{'type':a333_0x58384f(0x1dd),'path':'.agent/skills/lovrabet/SKILL.md'}]}};function a333_0x9060(){const _0x2ebc09=['Windsurf\x20IDE','windsurf','.qoder/rules/rabetbase.md','cursor','504021rbKqOg','Cline\x20IDE','Claude\x20Code','4241024fHFmcL','Qoder\x20IDE','.trae/skills/lovrabet/SKILL.md','Codex','370FivZDH','Qoder','OpenCode','.agent/skills/lovrabet/SKILL.md','Trae\x20IDE','.cursor','.opencode','.codex','Other\x20(generic\x20template)','.agent','Cursor\x20IDE','.opencode/skills/lovrabet/SKILL.md','.codebuddy/skills/lovrabet/SKILL.md','199035pEPHwR','file','opencode','.trae','290myxcUf','.qoder','.claude','codebuddy','.windsurf/workflows/rabetbase.md','.claude/skills/lovrabet/SKILL.md','agent','trae','.cursorrules','.cline/skills/lovrabet/SKILL.md','Antigravity','.codebuddy','.cline','2489EKCwKx','Cline','OpenCode\x20IDE','.windsurf','.cursor/skills/rabetbase.md','qoder','cline','3041740KMhcjz','24bLjVmg','claude','4507536iZLllf','4OChQmA','1262988sLQHfE','codex'];a333_0x9060=function(){return _0x2ebc09;};return a333_0x9060();}function a333_0x2aa4(_0x31e261,_0x35c6cc){_0x31e261=_0x31e261-0x1b9;const _0x90609a=a333_0x9060();let _0x2aa4bb=_0x90609a[_0x31e261];return _0x2aa4bb;}export const CORE_IDE_LIST=[a333_0x58384f(0x1bf),a333_0x58384f(0x1bc),a333_0x58384f(0x1e3),a333_0x58384f(0x1c3),a333_0x58384f(0x1c7),a333_0x58384f(0x1de),a333_0x58384f(0x1bb),a333_0x58384f(0x1e7),a333_0x58384f(0x1c5)];export const IDE_LIST=['antigravity',a333_0x58384f(0x1bf),a333_0x58384f(0x1bc),a333_0x58384f(0x1e3),'codex','cursor',a333_0x58384f(0x1de),a333_0x58384f(0x1bb),a333_0x58384f(0x1e7),a333_0x58384f(0x1c5),a333_0x58384f(0x1e6)];export const ALL_CORE_IDES=['cursor',a333_0x58384f(0x1c5),'claude',a333_0x58384f(0x1bc),a333_0x58384f(0x1c3),a333_0x58384f(0x1de),a333_0x58384f(0x1bb),a333_0x58384f(0x1e3),a333_0x58384f(0x1e7)];
@@ -1 +1 @@
1
- (function(_0x35578f,_0x6786b0){const _0x36d147=a334_0x29c3,_0x1387b1=_0x35578f();while(!![]){try{const _0xd4f556=-parseInt(_0x36d147(0x84))/0x1+-parseInt(_0x36d147(0x7c))/0x2*(-parseInt(_0x36d147(0x82))/0x3)+-parseInt(_0x36d147(0x81))/0x4+parseInt(_0x36d147(0x80))/0x5+-parseInt(_0x36d147(0x7f))/0x6*(-parseInt(_0x36d147(0x83))/0x7)+-parseInt(_0x36d147(0x7d))/0x8+parseInt(_0x36d147(0x85))/0x9*(parseInt(_0x36d147(0x7e))/0xa);if(_0xd4f556===_0x6786b0)break;else _0x1387b1['push'](_0x1387b1['shift']());}catch(_0x2834e8){_0x1387b1['push'](_0x1387b1['shift']());}}}(a334_0x2ea4,0x863ce));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a334_0x2ea4(){const _0x1310b4=['2528808PlSxJq','6UGYueC','231mwvmUF','610220oCkyAv','27KmVhxm','655418VtiyUT','4760352lrbAKD','2552690KWBxyN','24QPPbuq','4829735grYbgz'];a334_0x2ea4=function(){return _0x1310b4;};return a334_0x2ea4();}import{CliErrors}from'../errors.js';function a334_0x29c3(_0x274b3c,_0x54a229){_0x274b3c=_0x274b3c-0x7c;const _0x2ea422=a334_0x2ea4();let _0x29c3e4=_0x2ea422[_0x274b3c];return _0x29c3e4;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x42c6c2,_0x331636){const _0x52a93d=a334_0x57bc,_0x4460b6=_0x42c6c2();while(!![]){try{const _0x44e6fb=parseInt(_0x52a93d(0xce))/0x1+-parseInt(_0x52a93d(0xcf))/0x2+parseInt(_0x52a93d(0xd0))/0x3*(parseInt(_0x52a93d(0xd7))/0x4)+-parseInt(_0x52a93d(0xd5))/0x5*(-parseInt(_0x52a93d(0xd6))/0x6)+parseInt(_0x52a93d(0xcd))/0x7*(-parseInt(_0x52a93d(0xd1))/0x8)+-parseInt(_0x52a93d(0xd2))/0x9*(parseInt(_0x52a93d(0xd8))/0xa)+parseInt(_0x52a93d(0xd4))/0xb*(-parseInt(_0x52a93d(0xd3))/0xc);if(_0x44e6fb===_0x331636)break;else _0x4460b6['push'](_0x4460b6['shift']());}catch(_0x455fb0){_0x4460b6['push'](_0x4460b6['shift']());}}}(a334_0x1902,0x3d58c));function a334_0x1902(){const _0x4271dc=['5388dmYhKQ','54840rFThWY','7hTyCdB','161347fRgnuy','705686uNvqYX','1011IbevoE','411056UfiVRk','234sOKUbz','216JLyMDd','86064SpEfDu','1618155bedTdg','6AVxhVU'];a334_0x1902=function(){return _0x4271dc;};return a334_0x1902();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a334_0x57bc(_0x4e45d1,_0x196baa){_0x4e45d1=_0x4e45d1-0xcd;const _0x190265=a334_0x1902();let _0x57bc5d=_0x190265[_0x4e45d1];return _0x57bc5d;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- function a335_0x16bd(){const _0x275940=['30XSTSlh','942156sJiEQm','3081fUMQki','462538GndLYH','2410680WCYIFs','15817020wZVckR','node','10413896fKrHwE','stableVersion','sdk','3092KsHtwp','/config.json','application/json','18TTXEvd','/config/index.json','791203ObipTZ'];a335_0x16bd=function(){return _0x275940;};return a335_0x16bd();}(function(_0x217d15,_0x48d6a0){const _0x498c7f=a335_0x5cdf,_0x16bb9a=_0x217d15();while(!![]){try{const _0x15252c=-parseInt(_0x498c7f(0xe0))/0x1+-parseInt(_0x498c7f(0xde))/0x2+parseInt(_0x498c7f(0xdf))/0x3*(parseInt(_0x498c7f(0xd7))/0x4)+-parseInt(_0x498c7f(0xe1))/0x5+-parseInt(_0x498c7f(0xdd))/0x6*(parseInt(_0x498c7f(0xdc))/0x7)+-parseInt(_0x498c7f(0xd4))/0x8+-parseInt(_0x498c7f(0xda))/0x9*(-parseInt(_0x498c7f(0xe2))/0xa);if(_0x15252c===_0x48d6a0)break;else _0x16bb9a['push'](_0x16bb9a['shift']());}catch(_0x4dbe61){_0x16bb9a['push'](_0x16bb9a['shift']());}}}(a335_0x16bd,0xa4b51));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x1be585=a335_0x5cdf,_0x28ff05=getTemplateBaseUrl(),_0x2eaa30=[_0x28ff05+_0x1be585(0xd8),_0x28ff05+_0x1be585(0xdb)];for(const _0x47d942 of _0x2eaa30){try{const _0x2aac63=await fetch(_0x47d942,{'headers':{'Accept':_0x1be585(0xd9)}});if(!_0x2aac63['ok'])continue;const _0x4c2f1e=await _0x2aac63['json']();if(!_0x4c2f1e['cli']?.[_0x1be585(0xd5)]||!_0x4c2f1e[_0x1be585(0xd6)]?.[_0x1be585(0xe3)]?.[_0x1be585(0xd5)])continue;return _0x4c2f1e;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a335_0x5cdf(_0xf35c91,_0x45f217){_0xf35c91=_0xf35c91-0xd4;const _0x16bd1c=a335_0x16bd();let _0x5cdf34=_0x16bd1c[_0xf35c91];return _0x5cdf34;}let hasCachedConfig=![];export async function getCdnConfig(){const _0x5116e9=Date['now']();if(hasCachedConfig){const _0x55be41=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5116e9-cacheTime<_0x55be41)return cachedConfig;}const _0x107d53=await fetchCdnConfig();return cachedConfig=_0x107d53,cacheTime=_0x5116e9,hasCachedConfig=!![],_0x107d53;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x28fb6c,_0x1cf91f){const _0x6a8860=a335_0x1b42,_0x32a217=_0x28fb6c();while(!![]){try{const _0x4f9b7e=-parseInt(_0x6a8860(0x178))/0x1*(parseInt(_0x6a8860(0x180))/0x2)+-parseInt(_0x6a8860(0x172))/0x3*(parseInt(_0x6a8860(0x177))/0x4)+parseInt(_0x6a8860(0x173))/0x5+-parseInt(_0x6a8860(0x17f))/0x6*(parseInt(_0x6a8860(0x17b))/0x7)+-parseInt(_0x6a8860(0x17c))/0x8+-parseInt(_0x6a8860(0x171))/0x9+parseInt(_0x6a8860(0x17d))/0xa;if(_0x4f9b7e===_0x1cf91f)break;else _0x32a217['push'](_0x32a217['shift']());}catch(_0x23441e){_0x32a217['push'](_0x32a217['shift']());}}}(a335_0x3b9d,0xbc14e));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x192289=a335_0x1b42,_0x3c2fb7=getTemplateBaseUrl(),_0xad7ec7=[_0x3c2fb7+_0x192289(0x179),_0x3c2fb7+_0x192289(0x176)];for(const _0x2e4bc6 of _0xad7ec7){try{const _0x3d3e4d=await fetch(_0x2e4bc6,{'headers':{'Accept':'application/json'}});if(!_0x3d3e4d['ok'])continue;const _0x543c30=await _0x3d3e4d[_0x192289(0x17e)]();if(!_0x543c30[_0x192289(0x175)]?.[_0x192289(0x174)]||!_0x543c30[_0x192289(0x17a)]?.['node']?.['stableVersion'])continue;return _0x543c30;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a335_0x3b9d(){const _0x1bedc6=['1663168ogWBYW','30222070vStYOo','json','97044djmEdB','329378EiIOjq','7461315EwoVRJ','1685841RkJVGT','6417775ChHeYs','stableVersion','cli','/config/index.json','4GliWST','4gNpqPv','/config.json','sdk','553Zkfnrl'];a335_0x3b9d=function(){return _0x1bedc6;};return a335_0x3b9d();}let hasCachedConfig=![];export async function getCdnConfig(){const _0x3f9378=Date['now']();if(hasCachedConfig){const _0x1f1ba7=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x3f9378-cacheTime<_0x1f1ba7)return cachedConfig;}const _0x110a20=await fetchCdnConfig();return cachedConfig=_0x110a20,cacheTime=_0x3f9378,hasCachedConfig=!![],_0x110a20;}function a335_0x1b42(_0x10349b,_0x54f744){_0x10349b=_0x10349b-0x171;const _0x3b9d5d=a335_0x3b9d();let _0x1b42f6=_0x3b9d5d[_0x10349b];return _0x1b42f6;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a336_0x152524=a336_0x145a;function a336_0x145a(_0x28ca44,_0x1e81c1){_0x28ca44=_0x28ca44-0x146;const _0x4e7519=a336_0x4e75();let _0x145ac8=_0x4e7519[_0x28ca44];return _0x145ac8;}(function(_0x5aa900,_0xa72b57){const _0x57165d=a336_0x145a,_0x3ee8e5=_0x5aa900();while(!![]){try{const _0x9db78=-parseInt(_0x57165d(0x158))/0x1*(parseInt(_0x57165d(0x15e))/0x2)+-parseInt(_0x57165d(0x16a))/0x3*(-parseInt(_0x57165d(0x147))/0x4)+parseInt(_0x57165d(0x169))/0x5+-parseInt(_0x57165d(0x160))/0x6*(parseInt(_0x57165d(0x156))/0x7)+parseInt(_0x57165d(0x154))/0x8*(parseInt(_0x57165d(0x14e))/0x9)+parseInt(_0x57165d(0x15b))/0xa+parseInt(_0x57165d(0x14c))/0xb;if(_0x9db78===_0xa72b57)break;else _0x3ee8e5['push'](_0x3ee8e5['shift']());}catch(_0x110a97){_0x3ee8e5['push'](_0x3ee8e5['shift']());}}}(a336_0x4e75,0xc2fa5));import a336_0x720b8c from'node:fs';import a336_0x2cfac9 from'node:path';import a336_0x453d42 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a336_0x152524(0x15a);function a336_0x4e75(){const _0x132446=['\x1b[0m','devDependencies','package.json','\x20\x20\x20Stable\x20version:\x20','node_modules','208xjGMQt','↪\x20SDK\x20update\x20available','691159XaVyhi','minVersion','2167GnznFn','utf-8','1.2.0','2567970SGGXAu','log','sdk','668EhQydi','stableVersion','96smdyma','readFileSync','needsUpgrade','dependencies','npm\x20install\x20','packageName','\x1b[33m','latest','existsSync','6866875TMmJHd','3LuCnKI','coerce','\x20\x20\x20Current\x20version:\x20','@lovrabet/sdk','2971564WgOLGQ','version','join','utf8','parse','3551174aNwsFs','node','140643zExqQs'];a336_0x4e75=function(){return _0x132446;};return a336_0x4e75();}function isNonNumericVersion(_0x1f58ac){const _0x31fd5d=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x31fd5d['some'](_0x19148f=>_0x19148f['test'](_0x1f58ac));}function getInstalledVersion(_0x185c5a,_0xa68644){const _0x4b907d=a336_0x152524;try{const _0x558184=a336_0x2cfac9[_0x4b907d(0x149)](_0x185c5a,_0x4b907d(0x153),_0xa68644,_0x4b907d(0x151));if(a336_0x720b8c[_0x4b907d(0x168)](_0x558184)){const _0x34684d=JSON[_0x4b907d(0x14b)](a336_0x720b8c[_0x4b907d(0x161)](_0x558184,_0x4b907d(0x159)));return _0x34684d[_0x4b907d(0x148)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x442cc9=a336_0x152524;try{const _0x3e15c2=await getCdnConfig();return _0x3e15c2?.[_0x442cc9(0x15d)]?.[_0x442cc9(0x14d)]?.[_0x442cc9(0x15f)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x427a18=a336_0x152524;try{const _0x3e8861=await getCdnConfig();return _0x3e8861?.[_0x427a18(0x15d)]?.[_0x427a18(0x14d)]?.[_0x427a18(0x165)]||_0x427a18(0x146);}catch{return _0x427a18(0x146);}}export async function checkSdkVersion(_0x28936e){const _0x57e291=a336_0x152524,_0x447fa6=a336_0x2cfac9[_0x57e291(0x149)](_0x28936e,_0x57e291(0x151)),[_0x4e2626,_0x4a68b3]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x3f2335=_0x4e2626||FALLBACK_MIN_SDK_VERSION;if(!a336_0x720b8c['existsSync'](_0x447fa6))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3f2335,'packageName':_0x4a68b3,'stableVersion':_0x4e2626};try{const _0x38973d=JSON[_0x57e291(0x14b)](a336_0x720b8c[_0x57e291(0x161)](_0x447fa6,'utf8')),_0x2c1d00=_0x38973d[_0x57e291(0x163)]||{},_0x2f75a8=_0x38973d[_0x57e291(0x150)]||{},_0x20ba97=_0x2c1d00[_0x4a68b3]||_0x2f75a8[_0x4a68b3];if(!_0x20ba97)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3f2335,'packageName':_0x4a68b3,'stableVersion':_0x4e2626};let _0x8ce546=getInstalledVersion(_0x28936e,_0x4a68b3);!_0x8ce546&&(_0x8ce546=_0x20ba97);if(isNonNumericVersion(_0x20ba97))return{'installed':!![],'version':_0x8ce546,'needsUpgrade':![],'minVersion':_0x3f2335,'packageName':_0x4a68b3,'stableVersion':_0x4e2626};const _0x2d1dcc=a336_0x453d42[_0x57e291(0x16b)](_0x8ce546),_0xb8f8a2=a336_0x453d42[_0x57e291(0x16b)](_0x3f2335),_0x5bbeae=_0x2d1dcc&&_0xb8f8a2?a336_0x453d42['lt'](_0x2d1dcc,_0xb8f8a2):![];return{'installed':!![],'version':_0x8ce546,'needsUpgrade':_0x5bbeae,'minVersion':_0x3f2335,'packageName':_0x4a68b3,'stableVersion':_0x4e2626};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3f2335,'packageName':_0x4a68b3,'stableVersion':_0x4e2626};}}export function checkSdkVersionSync(_0x2c239f){const _0x35a3f6=a336_0x152524,_0xda1264=a336_0x2cfac9[_0x35a3f6(0x149)](_0x2c239f,'package.json'),_0x2f32e1='@lovrabet/sdk';if(!a336_0x720b8c['existsSync'](_0xda1264))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2f32e1,'stableVersion':null};try{const _0x4997e2=JSON[_0x35a3f6(0x14b)](a336_0x720b8c[_0x35a3f6(0x161)](_0xda1264,_0x35a3f6(0x14a))),_0x2aa63=_0x4997e2[_0x35a3f6(0x163)]||{},_0x467fdf=_0x4997e2[_0x35a3f6(0x150)]||{},_0x2fdad9=_0x2aa63[_0x2f32e1]||_0x467fdf[_0x2f32e1];if(!_0x2fdad9)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2f32e1,'stableVersion':null};let _0x2c6e2b=getInstalledVersion(_0x2c239f,_0x2f32e1);!_0x2c6e2b&&(_0x2c6e2b=_0x2fdad9);if(isNonNumericVersion(_0x2fdad9))return{'installed':!![],'version':_0x2c6e2b,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2f32e1,'stableVersion':null};const _0x10d946=a336_0x453d42[_0x35a3f6(0x16b)](_0x2c6e2b),_0x2d44cb=_0x10d946?a336_0x453d42['lt'](_0x10d946,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x2c6e2b,'needsUpgrade':_0x2d44cb,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2f32e1,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2f32e1,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x5e42c3){const _0x577773=a336_0x152524;if(!_0x5e42c3[_0x577773(0x162)])return;const _0x190901=_0x577773(0x166),_0xec53e0=_0x577773(0x14f),_0x4e1642='\x1b[1m',_0x346436=_0x5e42c3[_0x577773(0x165)]||'@lovrabet/sdk',_0x5a7efd=_0x5e42c3[_0x577773(0x15f)]||_0x5e42c3[_0x577773(0x157)],_0x48d249=_0x577773(0x164)+_0x346436+'@'+(_0x5a7efd||_0x577773(0x167));console['log'](),console[_0x577773(0x15c)](''+_0x190901+_0x4e1642+_0x577773(0x155)+_0xec53e0),console['log'](_0x190901+_0x577773(0x16c)+_0x346436+'@'+_0x5e42c3['version']+_0xec53e0),console[_0x577773(0x15c)](_0x190901+_0x577773(0x152)+_0x5a7efd+_0xec53e0),console[_0x577773(0x15c)](_0x190901+'\x20\x20\x20Upgrade\x20command:\x20'+_0x48d249+_0xec53e0),console[_0x577773(0x15c)]();}
1
+ function a336_0x8cd9(_0x1283c2,_0x4dded5){_0x1283c2=_0x1283c2-0x70;const _0x23989d=a336_0x2398();let _0x8cd927=_0x23989d[_0x1283c2];return _0x8cd927;}const a336_0x231e84=a336_0x8cd9;(function(_0x2fbefb,_0x320f98){const _0x356e33=a336_0x8cd9,_0x4dd794=_0x2fbefb();while(!![]){try{const _0x1f9f9c=-parseInt(_0x356e33(0x7c))/0x1+-parseInt(_0x356e33(0x87))/0x2*(parseInt(_0x356e33(0x76))/0x3)+-parseInt(_0x356e33(0x92))/0x4+-parseInt(_0x356e33(0x80))/0x5*(-parseInt(_0x356e33(0x84))/0x6)+parseInt(_0x356e33(0x8e))/0x7*(-parseInt(_0x356e33(0x91))/0x8)+parseInt(_0x356e33(0x89))/0x9*(parseInt(_0x356e33(0x72))/0xa)+parseInt(_0x356e33(0x7d))/0xb*(parseInt(_0x356e33(0x90))/0xc);if(_0x1f9f9c===_0x320f98)break;else _0x4dd794['push'](_0x4dd794['shift']());}catch(_0x103169){_0x4dd794['push'](_0x4dd794['shift']());}}}(a336_0x2398,0x5fc58));import a336_0x576ec1 from'node:fs';import a336_0x22c0e9 from'node:path';import a336_0xd0f913 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a336_0x2398(){const _0x5a5d82=['package.json','stableVersion','all','\x1b[1m','some','node','test','35830mjcoZZ','join','utf-8','npm\x20install\x20','9KYRZnY','dependencies','version','\x20\x20\x20Current\x20version:\x20','log','needsUpgrade','774720bvTcOL','330gZQQHo','\x20\x20\x20Upgrade\x20command:\x20','devDependencies','1965470Kvbmfc','\x1b[0m','@lovrabet/sdk','packageName','6pTrvlS','sdk','1.2.0','505982jrOYXy','\x20\x20\x20Stable\x20version:\x20','873ftJXqS','existsSync','↪\x20SDK\x20update\x20available','coerce','node_modules','21MykNkq','utf8','669012CgNYoS','1059736JaqoXL','359204kdkObT','latest','\x1b[33m','readFileSync','parse'];a336_0x2398=function(){return _0x5a5d82;};return a336_0x2398();}const FALLBACK_MIN_SDK_VERSION=a336_0x231e84(0x86);function isNonNumericVersion(_0x3263db){const _0x44044f=a336_0x231e84,_0x1b552c=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x1b552c[_0x44044f(0x9b)](_0x4876dd=>_0x4876dd[_0x44044f(0x71)](_0x3263db));}function getInstalledVersion(_0x2dd2b3,_0x4c1448){const _0x55a54b=a336_0x231e84;try{const _0x344d86=a336_0x22c0e9['join'](_0x2dd2b3,_0x55a54b(0x8d),_0x4c1448,_0x55a54b(0x97));if(a336_0x576ec1[_0x55a54b(0x8a)](_0x344d86)){const _0x220359=JSON[_0x55a54b(0x96)](a336_0x576ec1[_0x55a54b(0x95)](_0x344d86,_0x55a54b(0x74)));return _0x220359[_0x55a54b(0x78)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x57c699=a336_0x231e84;try{const _0x1bac96=await getCdnConfig();return _0x1bac96?.[_0x57c699(0x85)]?.[_0x57c699(0x70)]?.[_0x57c699(0x98)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x4565a8=a336_0x231e84;try{const _0x419256=await getCdnConfig();return _0x419256?.[_0x4565a8(0x85)]?.[_0x4565a8(0x70)]?.[_0x4565a8(0x83)]||_0x4565a8(0x82);}catch{return _0x4565a8(0x82);}}export async function checkSdkVersion(_0x14de1c){const _0x2b23bc=a336_0x231e84,_0x27b6a8=a336_0x22c0e9[_0x2b23bc(0x73)](_0x14de1c,_0x2b23bc(0x97)),[_0x30687a,_0x1fa8c9]=await Promise[_0x2b23bc(0x99)]([getSdkStableVersion(),getSdkPackageName()]),_0x3a138f=_0x30687a||FALLBACK_MIN_SDK_VERSION;if(!a336_0x576ec1[_0x2b23bc(0x8a)](_0x27b6a8))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3a138f,'packageName':_0x1fa8c9,'stableVersion':_0x30687a};try{const _0x4617c9=JSON[_0x2b23bc(0x96)](a336_0x576ec1[_0x2b23bc(0x95)](_0x27b6a8,_0x2b23bc(0x8f))),_0x5514a0=_0x4617c9[_0x2b23bc(0x77)]||{},_0x59571b=_0x4617c9[_0x2b23bc(0x7f)]||{},_0x57436d=_0x5514a0[_0x1fa8c9]||_0x59571b[_0x1fa8c9];if(!_0x57436d)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3a138f,'packageName':_0x1fa8c9,'stableVersion':_0x30687a};let _0x1cca78=getInstalledVersion(_0x14de1c,_0x1fa8c9);!_0x1cca78&&(_0x1cca78=_0x57436d);if(isNonNumericVersion(_0x57436d))return{'installed':!![],'version':_0x1cca78,'needsUpgrade':![],'minVersion':_0x3a138f,'packageName':_0x1fa8c9,'stableVersion':_0x30687a};const _0x362c3d=a336_0xd0f913[_0x2b23bc(0x8c)](_0x1cca78),_0x17b83f=a336_0xd0f913[_0x2b23bc(0x8c)](_0x3a138f),_0x4c2a58=_0x362c3d&&_0x17b83f?a336_0xd0f913['lt'](_0x362c3d,_0x17b83f):![];return{'installed':!![],'version':_0x1cca78,'needsUpgrade':_0x4c2a58,'minVersion':_0x3a138f,'packageName':_0x1fa8c9,'stableVersion':_0x30687a};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3a138f,'packageName':_0x1fa8c9,'stableVersion':_0x30687a};}}export function checkSdkVersionSync(_0x34277f){const _0x45e917=a336_0x231e84,_0x4b626f=a336_0x22c0e9[_0x45e917(0x73)](_0x34277f,_0x45e917(0x97)),_0x1cd702='@lovrabet/sdk';if(!a336_0x576ec1[_0x45e917(0x8a)](_0x4b626f))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1cd702,'stableVersion':null};try{const _0x1ad1d2=JSON[_0x45e917(0x96)](a336_0x576ec1[_0x45e917(0x95)](_0x4b626f,_0x45e917(0x8f))),_0x26cf29=_0x1ad1d2['dependencies']||{},_0x5b9ae3=_0x1ad1d2[_0x45e917(0x7f)]||{},_0x5dac88=_0x26cf29[_0x1cd702]||_0x5b9ae3[_0x1cd702];if(!_0x5dac88)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1cd702,'stableVersion':null};let _0x104633=getInstalledVersion(_0x34277f,_0x1cd702);!_0x104633&&(_0x104633=_0x5dac88);if(isNonNumericVersion(_0x5dac88))return{'installed':!![],'version':_0x104633,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1cd702,'stableVersion':null};const _0x3a2501=a336_0xd0f913[_0x45e917(0x8c)](_0x104633),_0x1fb26a=_0x3a2501?a336_0xd0f913['lt'](_0x3a2501,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x104633,'needsUpgrade':_0x1fb26a,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1cd702,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1cd702,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x1c1cd6){const _0x48df5e=a336_0x231e84;if(!_0x1c1cd6[_0x48df5e(0x7b)])return;const _0x172fc9=_0x48df5e(0x94),_0x50306b=_0x48df5e(0x81),_0x535a1d=_0x48df5e(0x9a),_0x4c3768=_0x1c1cd6['packageName']||'@lovrabet/sdk',_0x334254=_0x1c1cd6[_0x48df5e(0x98)]||_0x1c1cd6['minVersion'],_0xf685d4=_0x48df5e(0x75)+_0x4c3768+'@'+(_0x334254||_0x48df5e(0x93));console[_0x48df5e(0x7a)](),console['log'](''+_0x172fc9+_0x535a1d+_0x48df5e(0x8b)+_0x50306b),console[_0x48df5e(0x7a)](_0x172fc9+_0x48df5e(0x79)+_0x4c3768+'@'+_0x1c1cd6['version']+_0x50306b),console[_0x48df5e(0x7a)](_0x172fc9+_0x48df5e(0x88)+_0x334254+_0x50306b),console[_0x48df5e(0x7a)](_0x172fc9+_0x48df5e(0x7e)+_0xf685d4+_0x50306b),console[_0x48df5e(0x7a)]();}