@lovrabet/rabetbase-cli 2.5.5-beta.2 → 2.5.5-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (363) 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/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/detail.js +1 -1
  77. package/lib/commands/dataset/extend-update.js +1 -1
  78. package/lib/commands/dataset/field-restore.js +1 -1
  79. package/lib/commands/dataset/field-update.js +1 -1
  80. package/lib/commands/dataset/generate.js +1 -1
  81. package/lib/commands/dataset/index.js +1 -1
  82. package/lib/commands/dataset/list.js +1 -1
  83. package/lib/commands/dataset/operations.js +1 -1
  84. package/lib/commands/dataset/relation-audit.js +1 -1
  85. package/lib/commands/dataset/relation-create.js +1 -1
  86. package/lib/commands/dataset/relation-delete.js +1 -1
  87. package/lib/commands/dataset/relation-shared.js +1 -1
  88. package/lib/commands/dataset/relation-update.js +1 -1
  89. package/lib/commands/dataset/relations.js +1 -1
  90. package/lib/commands/dataset/rename.js +1 -1
  91. package/lib/commands/dataset/restore.js +1 -1
  92. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  93. package/lib/commands/db/analysis-batching.js +1 -1
  94. package/lib/commands/db/analyze-batch-plan.js +1 -1
  95. package/lib/commands/db/analyze-cancel.js +1 -1
  96. package/lib/commands/db/analyze-start.js +1 -1
  97. package/lib/commands/db/analyze-status.js +1 -1
  98. package/lib/commands/db/create.js +1 -1
  99. package/lib/commands/db/delete.js +1 -1
  100. package/lib/commands/db/detail.js +1 -1
  101. package/lib/commands/db/diff-refresh-start.js +1 -1
  102. package/lib/commands/db/diff-refresh-status.js +1 -1
  103. package/lib/commands/db/diff.js +1 -1
  104. package/lib/commands/db/index.js +1 -1
  105. package/lib/commands/db/list.js +1 -1
  106. package/lib/commands/db/shared.js +1 -1
  107. package/lib/commands/db/table-diff-shared.js +1 -1
  108. package/lib/commands/db/tables.js +1 -1
  109. package/lib/commands/db/test.js +1 -1
  110. package/lib/commands/db/update.js +1 -1
  111. package/lib/commands/deployment/index.js +1 -1
  112. package/lib/commands/deployment/sync-all.js +1 -1
  113. package/lib/commands/deployment/sync-jobs.js +1 -1
  114. package/lib/commands/deployment/sync-status.js +1 -1
  115. package/lib/commands/doctor.js +1 -1
  116. package/lib/commands/file/index.js +1 -1
  117. package/lib/commands/flow/create.js +1 -1
  118. package/lib/commands/flow/detail.js +1 -1
  119. package/lib/commands/flow/index.js +1 -1
  120. package/lib/commands/flow/list.js +1 -1
  121. package/lib/commands/flow/publish.js +1 -1
  122. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  123. package/lib/commands/flow/runtime-role-list.js +1 -1
  124. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  125. package/lib/commands/flow/runtime-user-search.js +1 -1
  126. package/lib/commands/flow/shared.js +1 -1
  127. package/lib/commands/flow/update.js +1 -1
  128. package/lib/commands/flow/validate.js +1 -1
  129. package/lib/commands/instant-api-policy/current.js +1 -1
  130. package/lib/commands/instant-api-policy/index.js +1 -1
  131. package/lib/commands/instant-api-policy/init.js +1 -1
  132. package/lib/commands/instant-api-policy/publish.js +1 -1
  133. package/lib/commands/instant-api-policy/pull.js +1 -1
  134. package/lib/commands/instant-api-policy/revision.js +1 -1
  135. package/lib/commands/instant-api-policy/revisions.js +1 -1
  136. package/lib/commands/instant-api-policy/rollback.js +1 -1
  137. package/lib/commands/instant-api-policy/shared.js +1 -1
  138. package/lib/commands/instant-api-policy/validate.js +1 -1
  139. package/lib/commands/issue/index.js +1 -1
  140. package/lib/commands/issue/nudge.js +1 -1
  141. package/lib/commands/issue/report.js +1 -1
  142. package/lib/commands/issue/shared.js +1 -1
  143. package/lib/commands/kb/create.js +1 -1
  144. package/lib/commands/kb/delete.js +1 -1
  145. package/lib/commands/kb/detail.js +1 -1
  146. package/lib/commands/kb/index.js +1 -1
  147. package/lib/commands/kb/list.js +1 -1
  148. package/lib/commands/kb/search.js +1 -1
  149. package/lib/commands/kb/shared.js +1 -1
  150. package/lib/commands/kb/update.js +1 -1
  151. package/lib/commands/logs/index.js +1 -1
  152. package/lib/commands/menu/asset-update.js +1 -1
  153. package/lib/commands/menu/delete.js +1 -1
  154. package/lib/commands/menu/external-link-create.js +1 -1
  155. package/lib/commands/menu/external-link-update.js +1 -1
  156. package/lib/commands/menu/group-create.js +1 -1
  157. package/lib/commands/menu/group-update.js +1 -1
  158. package/lib/commands/menu/index.js +1 -1
  159. package/lib/commands/menu/list.js +1 -1
  160. package/lib/commands/menu/move.js +1 -1
  161. package/lib/commands/menu/regroup-start.js +1 -1
  162. package/lib/commands/menu/rename.js +1 -1
  163. package/lib/commands/menu/shared/compare-table.js +1 -1
  164. package/lib/commands/menu/shared/delete-plan.js +1 -1
  165. package/lib/commands/menu/shared/facts.js +1 -1
  166. package/lib/commands/menu/shared/index.js +1 -1
  167. package/lib/commands/menu/shared/inquirer.js +1 -1
  168. package/lib/commands/menu/shared/local-pages.js +1 -1
  169. package/lib/commands/menu/shared/logic.js +1 -1
  170. package/lib/commands/menu/shared/mutations.js +1 -1
  171. package/lib/commands/menu/shared/path.js +1 -1
  172. package/lib/commands/menu/shared/service.js +1 -1
  173. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  174. package/lib/commands/menu/shared/sync-core.js +1 -1
  175. package/lib/commands/menu/shared/update-core.js +1 -1
  176. package/lib/commands/menu/shared/valid-url.js +1 -1
  177. package/lib/commands/menu/subapp-assets-status.js +1 -1
  178. package/lib/commands/menu/subapp-assets-update.js +1 -1
  179. package/lib/commands/menu/sync.js +1 -1
  180. package/lib/commands/menu/visibility-update.js +1 -1
  181. package/lib/commands/notification/config-create.js +1 -1
  182. package/lib/commands/notification/config-delete.js +1 -1
  183. package/lib/commands/notification/config-list.js +1 -1
  184. package/lib/commands/notification/config-update.js +1 -1
  185. package/lib/commands/notification/index.js +1 -1
  186. package/lib/commands/notification/shared.js +1 -1
  187. package/lib/commands/ocr/index.js +1 -1
  188. package/lib/commands/page/create.js +1 -1
  189. package/lib/commands/page/custom/detail.js +1 -1
  190. package/lib/commands/page/custom/list.js +1 -1
  191. package/lib/commands/page/custom/publish.js +1 -1
  192. package/lib/commands/page/custom/shared.js +1 -1
  193. package/lib/commands/page/custom/syntax.js +1 -1
  194. package/lib/commands/page/custom/update.js +1 -1
  195. package/lib/commands/page/data-list-status.js +1 -1
  196. package/lib/commands/page/generate-start.js +1 -1
  197. package/lib/commands/page/generate-status.js +1 -1
  198. package/lib/commands/page/index.js +1 -1
  199. package/lib/commands/page/pull.js +1 -1
  200. package/lib/commands/page/push.js +1 -1
  201. package/lib/commands/page/relation-audit.js +1 -1
  202. package/lib/commands/page/restore.js +1 -1
  203. package/lib/commands/page/shared.js +1 -1
  204. package/lib/commands/page/sync.js +1 -1
  205. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  206. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  207. package/lib/commands/project/create/format-elapsed.js +1 -1
  208. package/lib/commands/project/create/main.js +1 -1
  209. package/lib/commands/project/create/materialize-project-template.js +1 -1
  210. package/lib/commands/project/create/project-name.js +1 -1
  211. package/lib/commands/project/create/project-template-archive.js +1 -1
  212. package/lib/commands/project/create/project-template-path.js +1 -1
  213. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  214. package/lib/commands/project/create/use-format-code.js +1 -1
  215. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  216. package/lib/commands/project/domain-routing-sync.js +1 -1
  217. package/lib/commands/project/index.js +1 -1
  218. package/lib/commands/project/upgrade.js +1 -1
  219. package/lib/commands/registry.js +1 -1
  220. package/lib/commands/role/delete.js +1 -1
  221. package/lib/commands/role/detail.js +1 -1
  222. package/lib/commands/role/index.js +1 -1
  223. package/lib/commands/role/list.js +1 -1
  224. package/lib/commands/role/shared.js +1 -1
  225. package/lib/commands/role/update.js +1 -1
  226. package/lib/commands/role/user-add.js +1 -1
  227. package/lib/commands/role/user-remove.js +1 -1
  228. package/lib/commands/role/user-resolve.js +1 -1
  229. package/lib/commands/rule/get.js +1 -1
  230. package/lib/commands/rule/index.js +1 -1
  231. package/lib/commands/rule/list.js +1 -1
  232. package/lib/commands/rule/set.js +1 -1
  233. package/lib/commands/rule/shared.js +1 -1
  234. package/lib/commands/run/index.js +1 -1
  235. package/lib/commands/schema.js +1 -1
  236. package/lib/commands/sql/create.js +1 -1
  237. package/lib/commands/sql/delete.js +1 -1
  238. package/lib/commands/sql/detail.js +1 -1
  239. package/lib/commands/sql/exec.js +1 -1
  240. package/lib/commands/sql/index.js +1 -1
  241. package/lib/commands/sql/list.js +1 -1
  242. package/lib/commands/sql/pull.js +1 -1
  243. package/lib/commands/sql/push.js +1 -1
  244. package/lib/commands/sql/shared.js +1 -1
  245. package/lib/commands/sql/status.js +1 -1
  246. package/lib/commands/sql/validate.js +1 -1
  247. package/lib/commands/task/index.js +1 -1
  248. package/lib/commands/task/status.js +1 -1
  249. package/lib/commands/tenant/index.js +1 -1
  250. package/lib/commands/tenant/members-list.js +1 -1
  251. package/lib/commands/tenant/shared.js +1 -1
  252. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  253. package/lib/commands/user-account/feishu-bind.js +1 -1
  254. package/lib/commands/user-account/index.js +1 -1
  255. package/lib/commands/workspace/add.js +1 -1
  256. package/lib/commands/workspace/index.js +1 -1
  257. package/lib/commands/workspace/remove.js +1 -1
  258. package/lib/config/domain-config.js +1 -1
  259. package/lib/config/project-domain-routing.js +1 -1
  260. package/lib/config/region-config.js +1 -1
  261. package/lib/config/schema.js +1 -1
  262. package/lib/constant/cdn.js +1 -1
  263. package/lib/constant/cli.js +1 -1
  264. package/lib/constant/defaults.js +1 -1
  265. package/lib/constant/domain.js +1 -1
  266. package/lib/constant/env.js +1 -1
  267. package/lib/constant/output.js +1 -1
  268. package/lib/constant/paths.js +1 -1
  269. package/lib/constant/region.js +1 -1
  270. package/lib/constant/risk.js +1 -1
  271. package/lib/constant/routing-profile.js +1 -1
  272. package/lib/context/app-resolver.js +1 -1
  273. package/lib/context/auth-resolver.js +1 -1
  274. package/lib/context/config-loader.js +1 -1
  275. package/lib/context.js +1 -1
  276. package/lib/core/alias-resolver.js +1 -1
  277. package/lib/core/api-client.js +1 -1
  278. package/lib/core/bff/config.js +1 -1
  279. package/lib/core/bff/file-system.js +1 -1
  280. package/lib/core/bff/hash.js +1 -1
  281. package/lib/core/bff/hook-directory.js +1 -1
  282. package/lib/core/bff/lock.js +1 -1
  283. package/lib/core/bff/utils.js +1 -1
  284. package/lib/core/cross-db-relation.js +1 -1
  285. package/lib/core/db-resolver.js +1 -1
  286. package/lib/core/flow-config.js +1 -1
  287. package/lib/core/instant-api-policy/config.js +1 -1
  288. package/lib/core/kb-search-client.js +1 -1
  289. package/lib/core/page/file-system.js +1 -1
  290. package/lib/core/page/hash.js +1 -1
  291. package/lib/core/page/lock.js +1 -1
  292. package/lib/core/page/lr-smart-jsx.js +1 -1
  293. package/lib/core/sql-index-auditor.js +1 -1
  294. package/lib/core/sql-sync/config.js +1 -1
  295. package/lib/core/sql-sync/file-system.js +1 -1
  296. package/lib/core/sql-sync/hash.js +1 -1
  297. package/lib/core/sql-sync/lock.js +1 -1
  298. package/lib/core/sql-sync/utils.js +1 -1
  299. package/lib/core/sql-validator.js +1 -1
  300. package/lib/errors.js +1 -1
  301. package/lib/framework/build-all-flags.js +1 -1
  302. package/lib/framework/error-output.js +1 -1
  303. package/lib/framework/explicit-yes.js +1 -1
  304. package/lib/framework/flags.js +1 -1
  305. package/lib/framework/help.js +1 -1
  306. package/lib/framework/index.js +1 -1
  307. package/lib/framework/output.js +1 -1
  308. package/lib/framework/response.js +1 -1
  309. package/lib/framework/runner-alias.js +1 -1
  310. package/lib/framework/runner.js +1 -1
  311. package/lib/framework/schema-export.js +1 -1
  312. package/lib/framework/supported-flags.js +1 -1
  313. package/lib/framework/types.js +1 -1
  314. package/lib/generated/build-info.d.ts +4 -4
  315. package/lib/generated/build-info.js +1 -1
  316. package/lib/generated/official-routing.js +1 -1
  317. package/lib/generated/routing-contract.js +1 -1
  318. package/lib/help.js +1 -1
  319. package/lib/postinstall.js +1 -1
  320. package/lib/runtime/confirmation.js +1 -1
  321. package/lib/runtime/event.js +1 -1
  322. package/lib/runtime/index.js +1 -1
  323. package/lib/runtime/queue.js +1 -1
  324. package/lib/runtime/resolve.js +1 -1
  325. package/lib/skills/builtin-skill.js +1 -1
  326. package/lib/skills/main.js +1 -1
  327. package/lib/skills/npx-skills-add.js +1 -1
  328. package/lib/skills/skill-presence.js +1 -1
  329. package/lib/telemetry/cli-command-trace.js +1 -1
  330. package/lib/telemetry/cli-help-trace.js +1 -1
  331. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  332. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  333. package/lib/telemetry/send-cli-trace-log.js +1 -1
  334. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  335. package/lib/utils/ai_config.js +1 -1
  336. package/lib/utils/apply-jq-filter.js +1 -1
  337. package/lib/utils/cdn-config.js +1 -1
  338. package/lib/utils/check-sdk-version.js +1 -1
  339. package/lib/utils/cli-version-check.js +1 -1
  340. package/lib/utils/cli-version-policy.js +1 -1
  341. package/lib/utils/config.js +1 -1
  342. package/lib/utils/entity-with-id.js +1 -1
  343. package/lib/utils/file-utils.js +1 -1
  344. package/lib/utils/guides-cdn.js +1 -1
  345. package/lib/utils/http-client.js +1 -1
  346. package/lib/utils/is-non-interactive.js +1 -1
  347. package/lib/utils/logger.js +1 -1
  348. package/lib/utils/params.js +1 -1
  349. package/lib/utils/platform.js +1 -1
  350. package/lib/utils/sleep.js +1 -1
  351. package/lib/utils/template-replacer.js +1 -1
  352. package/lib/utils/update-notice.js +1 -1
  353. package/lib/utils/version.js +1 -1
  354. package/lib/utils/with-active-cookie.js +1 -1
  355. package/lib/utils/write-cli-side-channel.js +1 -1
  356. package/package.json +1 -1
  357. package/skills/rabetbase/SKILL.md +3 -3
  358. package/skills/rabetbase/guides/independent-deployment.md +11 -1
  359. package/skills/rabetbase/references/rabetbase-config.md +16 -19
  360. package/skills/rabetbase/references/rabetbase-menu-visibility-update.md +5 -4
  361. package/skills/rabetbase/references/rabetbase-workspace.md +3 -1
  362. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  363. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x57a3e2,_0x308acf){const _0xeb8304=a322_0x204c,_0xa72b8b=_0x57a3e2();while(!![]){try{const _0x2c41cd=-parseInt(_0xeb8304(0x1f5))/0x1*(-parseInt(_0xeb8304(0x1f7))/0x2)+-parseInt(_0xeb8304(0x1f0))/0x3*(parseInt(_0xeb8304(0x1e3))/0x4)+parseInt(_0xeb8304(0x1f6))/0x5+parseInt(_0xeb8304(0x1eb))/0x6*(-parseInt(_0xeb8304(0x1e9))/0x7)+parseInt(_0xeb8304(0x1ee))/0x8+parseInt(_0xeb8304(0x1e7))/0x9+parseInt(_0xeb8304(0x1e8))/0xa*(parseInt(_0xeb8304(0x1f3))/0xb);if(_0x2c41cd===_0x308acf)break;else _0xa72b8b['push'](_0xa72b8b['shift']());}catch(_0x7e8680){_0xa72b8b['push'](_0xa72b8b['shift']());}}}(a322_0x1192,0xcfcb8));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0xdba95c,_0x584212,_0x5b693a){const _0x20b36e=normalizeText(_0xdba95c['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0x3f8205=_0x20b36e||normalizeText(defaultDescription(requireWriteRisk(_0xdba95c),_0x584212),DESCRIPTION_MAX_LENGTH);return{'operation':_0x584212,'risk':requireWriteRisk(_0xdba95c),'description':_0x3f8205,..._0x5b693a?{'signal':_0x5b693a}:{}};}function requireWriteRisk(_0x722039){const _0x393303=a322_0x204c;if(_0x722039[_0x393303(0x1ed)]===_0x393303(0x1e6)||_0x722039['risk']===_0x393303(0x1e4))return _0x722039['risk'];throw new Error(_0x393303(0x1f4));}function a322_0x204c(_0x4290a1,_0x13fa06){_0x4290a1=_0x4290a1-0x1e3;const _0x119249=a322_0x1192();let _0x204cac=_0x119249[_0x4290a1];return _0x204cac;}function a322_0x1192(){const _0x3a12e2=['6974IHBhAq','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','20ppkPia','1616045FkkSyj','113648ZMmEYZ','This\x20will\x20run\x20the\x20write\x20','1784dhvHHo','high-risk-write','slice','write','830898lKcxem','290LwaLTC','553KTzAIC','This\x20will\x20run\x20the\x20high-risk\x20write\x20','95910CobjxL','replace','risk','6617616ZgmEZy','string','1908TqjJdj','trim','.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.'];a322_0x1192=function(){return _0x3a12e2;};return a322_0x1192();}function defaultDescription(_0x20f402,_0x407425){const _0x584331=a322_0x204c;if(_0x20f402===_0x584331(0x1e4))return _0x584331(0x1ea)+_0x407425+_0x584331(0x1f2);return _0x584331(0x1f8)+_0x407425+'.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.';}function normalizeText(_0x44dd0c,_0x9b1f2){const _0x132034=a322_0x204c;if(typeof _0x44dd0c!==_0x132034(0x1ef))return'';return _0x44dd0c[_0x132034(0x1ec)](/[\u0000-\u001f\u007f]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x132034(0x1f1)]()[_0x132034(0x1e5)](0x0,_0x9b1f2);}
1
+ (function(_0xbbb769,_0x4f079d){const _0x52a71b=a322_0x4d8a,_0x1363ab=_0xbbb769();while(!![]){try{const _0x3bffa5=parseInt(_0x52a71b(0x135))/0x1+-parseInt(_0x52a71b(0x141))/0x2+-parseInt(_0x52a71b(0x13c))/0x3*(-parseInt(_0x52a71b(0x143))/0x4)+-parseInt(_0x52a71b(0x13e))/0x5+parseInt(_0x52a71b(0x138))/0x6*(-parseInt(_0x52a71b(0x13a))/0x7)+parseInt(_0x52a71b(0x13f))/0x8*(parseInt(_0x52a71b(0x13b))/0x9)+parseInt(_0x52a71b(0x13d))/0xa;if(_0x3bffa5===_0x4f079d)break;else _0x1363ab['push'](_0x1363ab['shift']());}catch(_0x2381bc){_0x1363ab['push'](_0x1363ab['shift']());}}}(a322_0x38d5,0x7b57e));const DESCRIPTION_MAX_LENGTH=0x1f4;function a322_0x38d5(){const _0x1aa495=['.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','827166MBhJdj','This\x20will\x20run\x20the\x20high-risk\x20write\x20','439844HwRHZj','replace','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','This\x20will\x20run\x20the\x20write\x20','.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','confirmationDescription','781543RFDODl','slice','risk','60vGwZky','string','599886wJfIxj','289719tltWFC','15TjZDEh','2923630mYanEg','366355RjsnDx','56wnynLt'];a322_0x38d5=function(){return _0x1aa495;};return a322_0x38d5();}export function buildRabetbaseConfirmationRequest(_0x2ed246,_0x5a4a55,_0xce23de){const _0x53ceee=a322_0x4d8a,_0x420fba=normalizeText(_0x2ed246[_0x53ceee(0x134)],DESCRIPTION_MAX_LENGTH),_0x4f34d1=_0x420fba||normalizeText(defaultDescription(requireWriteRisk(_0x2ed246),_0x5a4a55),DESCRIPTION_MAX_LENGTH);return{'operation':_0x5a4a55,'risk':requireWriteRisk(_0x2ed246),'description':_0x4f34d1,..._0xce23de?{'signal':_0xce23de}:{}};}function requireWriteRisk(_0x1ac988){const _0x1518a5=a322_0x4d8a;if(_0x1ac988['risk']==='write'||_0x1ac988[_0x1518a5(0x137)]==='high-risk-write')return _0x1ac988[_0x1518a5(0x137)];throw new Error(_0x1518a5(0x131));}function defaultDescription(_0x383386,_0x3c377e){const _0x48beb9=a322_0x4d8a;if(_0x383386==='high-risk-write')return _0x48beb9(0x142)+_0x3c377e+_0x48beb9(0x140);return _0x48beb9(0x132)+_0x3c377e+_0x48beb9(0x133);}function a322_0x4d8a(_0x541b2b,_0x3d9596){_0x541b2b=_0x541b2b-0x131;const _0x38d529=a322_0x38d5();let _0x4d8a97=_0x38d529[_0x541b2b];return _0x4d8a97;}function normalizeText(_0x4ba937,_0xfdbd7d){const _0x3570da=a322_0x4d8a;if(typeof _0x4ba937!==_0x3570da(0x139))return'';return _0x4ba937[_0x3570da(0x144)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x3570da(0x144)](/\s+/g,'\x20')['trim']()[_0x3570da(0x136)](0x0,_0xfdbd7d);}
@@ -1 +1 @@
1
- (function(_0x3416cd,_0x33288a){const _0x1c14e3=a323_0x16dc,_0x34ecf1=_0x3416cd();while(!![]){try{const _0x1507ae=-parseInt(_0x1c14e3(0x1a8))/0x1+-parseInt(_0x1c14e3(0x196))/0x2+parseInt(_0x1c14e3(0x1a4))/0x3+-parseInt(_0x1c14e3(0x1a1))/0x4*(-parseInt(_0x1c14e3(0x19a))/0x5)+parseInt(_0x1c14e3(0x1a6))/0x6*(parseInt(_0x1c14e3(0x19c))/0x7)+-parseInt(_0x1c14e3(0x199))/0x8+parseInt(_0x1c14e3(0x198))/0x9;if(_0x1507ae===_0x33288a)break;else _0x34ecf1['push'](_0x34ecf1['shift']());}catch(_0x7d39a4){_0x34ecf1['push'](_0x34ecf1['shift']());}}}(a323_0x5b13,0x206bf));function a323_0x16dc(_0xb0b0d3,_0x3a7fef){_0xb0b0d3=_0xb0b0d3-0x194;const _0x5b1380=a323_0x5b13();let _0x16dc95=_0x5b1380[_0xb0b0d3];return _0x16dc95;}export function canonicalRabetbaseOperation(_0x2706c8){const _0x2943d6=a323_0x16dc;return[_0x2706c8[_0x2943d6(0x19f)],..._0x2706c8['command'][_0x2943d6(0x19e)]()['split'](/\s+/)][_0x2943d6(0x19b)](Boolean)[_0x2943d6(0x1a5)]('.');}export function createRabetbaseWriteMetadata(_0x5b241,_0x1cef83,_0x122b63,_0x2ff622){const _0x483a9b=a323_0x16dc;if(_0x2ff622||_0x122b63['ok']!==!![]||hasUnresolvedConflicts(_0x122b63)||_0x5b241[_0x483a9b(0x197)]!==_0x483a9b(0x195)&&_0x5b241[_0x483a9b(0x197)]!==_0x483a9b(0x1a9))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x483a9b(0x1a7),'operation':_0x1cef83,'risk':_0x5b241[_0x483a9b(0x197)]}}};}function a323_0x5b13(){const _0x532390=['data','length','621309UjdZQN','join','54ySqddi','rabetbase.write.completed','5560zPMxFq','high-risk-write','conflicts','write','518346sYzJww','risk','3391227ZhCSvV','1949088JciYIO','10UsCzOo','filter','16898aYEcKA','isArray','trim','service','object','71072wqKQBx'];a323_0x5b13=function(){return _0x532390;};return a323_0x5b13();}function hasUnresolvedConflicts(_0x48b057){const _0x306264=a323_0x16dc,_0x5e379f=_0x48b057[_0x306264(0x1a2)];return Boolean(_0x5e379f&&typeof _0x5e379f===_0x306264(0x1a0)&&!Array[_0x306264(0x19d)](_0x5e379f)&&Array[_0x306264(0x19d)](_0x5e379f[_0x306264(0x194)])&&_0x5e379f[_0x306264(0x194)][_0x306264(0x1a3)]>0x0);}
1
+ (function(_0x5f2e71,_0x42fac2){const _0x553f78=a323_0x24bd,_0x753662=_0x5f2e71();while(!![]){try{const _0x3c796f=-parseInt(_0x553f78(0x1dd))/0x1+parseInt(_0x553f78(0x1d0))/0x2+-parseInt(_0x553f78(0x1cd))/0x3+parseInt(_0x553f78(0x1d3))/0x4*(-parseInt(_0x553f78(0x1db))/0x5)+-parseInt(_0x553f78(0x1d6))/0x6*(parseInt(_0x553f78(0x1d5))/0x7)+-parseInt(_0x553f78(0x1d9))/0x8+parseInt(_0x553f78(0x1d2))/0x9;if(_0x3c796f===_0x42fac2)break;else _0x753662['push'](_0x753662['shift']());}catch(_0x4aed42){_0x753662['push'](_0x753662['shift']());}}}(a323_0x5f44,0x4bba3));function a323_0x5f44(){const _0x401379=['isArray','191715absLTJ','filter','trim','1691985mNBXwV','data','service','506046VcArWL','risk','17798049eRifoQ','43196RDuVYz','split','968737WUsRFh','18TtBtDY','length','write','4095552uwdOVD','command','110gPrivd'];a323_0x5f44=function(){return _0x401379;};return a323_0x5f44();}export function canonicalRabetbaseOperation(_0x5593f2){const _0x5cec30=a323_0x24bd;return[_0x5593f2[_0x5cec30(0x1cf)],..._0x5593f2[_0x5cec30(0x1da)][_0x5cec30(0x1cc)]()[_0x5cec30(0x1d4)](/\s+/)][_0x5cec30(0x1cb)](Boolean)['join']('.');}export function createRabetbaseWriteMetadata(_0x48d152,_0x7d9209,_0x50dbca,_0x5b7ae6){const _0xb1d0d9=a323_0x24bd;if(_0x5b7ae6||_0x50dbca['ok']!==!![]||hasUnresolvedConflicts(_0x50dbca)||_0x48d152[_0xb1d0d9(0x1d1)]!==_0xb1d0d9(0x1d8)&&_0x48d152[_0xb1d0d9(0x1d1)]!=='high-risk-write')return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':'rabetbase.write.completed','operation':_0x7d9209,'risk':_0x48d152[_0xb1d0d9(0x1d1)]}}};}function a323_0x24bd(_0x199ba7,_0x37b6fd){_0x199ba7=_0x199ba7-0x1cb;const _0x5f447e=a323_0x5f44();let _0x24bd35=_0x5f447e[_0x199ba7];return _0x24bd35;}function hasUnresolvedConflicts(_0x1163d3){const _0x37909c=a323_0x24bd,_0x110a35=_0x1163d3[_0x37909c(0x1ce)];return Boolean(_0x110a35&&typeof _0x110a35==='object'&&!Array[_0x37909c(0x1dc)](_0x110a35)&&Array[_0x37909c(0x1dc)](_0x110a35['conflicts'])&&_0x110a35['conflicts'][_0x37909c(0x1d7)]>0x0);}
@@ -1 +1 @@
1
- (function(_0x51c45c,_0x599052){const _0x1f69ab=a324_0x17af,_0x130d74=_0x51c45c();while(!![]){try{const _0x430174=-parseInt(_0x1f69ab(0xf8))/0x1+-parseInt(_0x1f69ab(0xdc))/0x2*(-parseInt(_0x1f69ab(0xfb))/0x3)+-parseInt(_0x1f69ab(0xf1))/0x4*(parseInt(_0x1f69ab(0xf5))/0x5)+parseInt(_0x1f69ab(0xdd))/0x6+-parseInt(_0x1f69ab(0xde))/0x7*(-parseInt(_0x1f69ab(0xf0))/0x8)+-parseInt(_0x1f69ab(0xe1))/0x9+-parseInt(_0x1f69ab(0xdb))/0xa;if(_0x430174===_0x599052)break;else _0x130d74['push'](_0x130d74['shift']());}catch(_0x108b17){_0x130d74['push'](_0x130d74['shift']());}}}(a324_0x45b6,0x798e6));import{buildConfigFromFlags,initGlobalEnvironment,isRoutingRecoveryService}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x390056,command:_0xbf8795,risk:_0x4ce3b9,dryRun:_0x341040}){const _0xe674ac=a324_0x17af;return JSON['stringify']({'ok':_0x390056['ok'],'command':_0xbf8795,'risk':_0x4ce3b9,..._0x341040?{'dryRun':!![]}:{},..._0x390056[_0xe674ac(0xfc)]!==undefined?{'data':_0x390056[_0xe674ac(0xfc)]}:{},..._0x390056[_0xe674ac(0xf4)]?{'message':_0x390056[_0xe674ac(0xf4)]}:{}});}};export async function invokeRabetbase(_0x29f1ad,_0x17c1a8){const _0x4f4d1d=a324_0x17af;throwIfAborted(_0x17c1a8[_0x4f4d1d(0xfd)]);const _0x187cf0=await resolveRabetbaseInvocation(_0x29f1ad),_0x1b1913=canonicalRabetbaseOperation(_0x187cf0['definition']);return await confirmWriteBeforeQueue(_0x187cf0[_0x4f4d1d(0xdf)],_0x187cf0[_0x4f4d1d(0xef)],_0x1b1913,_0x17c1a8),runSerialized(async()=>{const _0x426bd5=_0x4f4d1d,_0x562800={};try{throwIfAborted(_0x17c1a8[_0x426bd5(0xfd)]);const _0x657d7f=buildConfigFromFlags(_0x187cf0[_0x426bd5(0xef)]);!isRoutingRecoveryService(_0x187cf0['definition'][_0x426bd5(0xea)])&&await initGlobalEnvironment(_0x657d7f);const _0x2935d2=createPipelineEnv(_0x657d7f,{..._0x187cf0[_0x426bd5(0xef)],'yes':_0x187cf0['definition'][_0x426bd5(0xf9)]===_0x426bd5(0xf3)?!![]:_0x187cf0[_0x426bd5(0xef)][_0x426bd5(0xe3)],'nonInteractive':!![]},_0x187cf0[_0x426bd5(0xe6)]);_0x2935d2[_0x426bd5(0xe7)]=!![],_0x2935d2[_0x426bd5(0xfa)]=_0x426bd5(0xf3);const _0x4610c8=withAbortSignal(_0x187cf0['definition'],_0x17c1a8['signal']),_0x4baf92=createRabetbaseRunnerAdapter({'formatOutput'(_0x218571,_0x42862b){const _0x518804=_0x426bd5;_0x562800['result']=_0x218571,_0x562800['command']=_0x42862b['command'],_0x562800[_0x518804(0xf9)]=_0x42862b[_0x518804(0xf9)],_0x562800[_0x518804(0xf7)]=_0x42862b['format'],_0x562800['dryRun']=_0x42862b[_0x518804(0xec)]===!![];},async 'confirmHighRisk'(){const _0x64e635=_0x426bd5;throw new Error(_0x64e635(0xf6));}});await runCommand(_0x4610c8,_0x2935d2,_0x4baf92);if(!_0x562800[_0x426bd5(0xe8)]||!_0x562800[_0x426bd5(0xed)]||!_0x562800[_0x426bd5(0xf9)]||!_0x562800['format'])throw new Error(_0x426bd5(0xe0));const _0x5de8c2=_0x562800[_0x426bd5(0xec)]===!![],_0x2dea1e=_0x17c1a8['presentation']??defaultPresentation,_0x53e4aa={'result':_0x562800[_0x426bd5(0xe8)],'command':_0x562800[_0x426bd5(0xed)],'operation':_0x1b1913,'risk':_0x562800['risk'],'format':_0x562800[_0x426bd5(0xf7)],'dryRun':_0x5de8c2},_0x8f33e=createRabetbaseWriteMetadata(_0x187cf0[_0x426bd5(0xdf)],_0x1b1913,_0x562800['result'],_0x5de8c2);let _0x15cedb;try{_0x15cedb=await _0x2dea1e[_0x426bd5(0xe9)](_0x53e4aa);}catch(_0x48adba){if(!_0x8f33e||_0x2dea1e===defaultPresentation)throw _0x48adba;_0x15cedb=await defaultPresentation['present'](_0x53e4aa);}return{'operation':_0x1b1913,'risk':_0x562800[_0x426bd5(0xf9)],'mode':_0x5de8c2?'dry-run':_0x426bd5(0xe4),'result':_0x562800[_0x426bd5(0xe8)],'output':_0x15cedb,..._0x8f33e?{'metadata':_0x8f33e}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}function a324_0x17af(_0x1842c3,_0x29073f){_0x1842c3=_0x1842c3-0xdb;const _0x45b6f4=a324_0x45b6();let _0x17afaa=_0x45b6f4[_0x1842c3];return _0x17afaa;}async function confirmWriteBeforeQueue(_0x4feae7,_0x39e4a8,_0x382267,_0x3b84c8){const _0x11ee0f=a324_0x17af;if(_0x39e4a8['dryRun']===!![]||_0x4feae7[_0x11ee0f(0xf9)]!=='write'&&_0x4feae7[_0x11ee0f(0xf9)]!==_0x11ee0f(0xf3))return;await _0x3b84c8[_0x11ee0f(0xf2)][_0x11ee0f(0xe5)](buildRabetbaseConfirmationRequest(_0x4feae7,_0x382267,_0x3b84c8[_0x11ee0f(0xfd)]));}function withAbortSignal(_0x17b8a1,_0x1fbfef){return{..._0x17b8a1,async 'execute'(_0x1e47f2){const _0x16a563=a324_0x17af;return throwIfAborted(_0x1fbfef),_0x17b8a1[_0x16a563(0xe4)]({..._0x1e47f2,'signal':_0x1fbfef});}};}function throwIfAborted(_0xb6526c){const _0x140226=a324_0x17af;if(_0xb6526c?.[_0x140226(0xe2)])throw _0xb6526c['reason']instanceof Error?_0xb6526c['reason']:new DOMException(_0x140226(0xee),_0x140226(0xeb));}function a324_0x45b6(){const _0x419622=['signal','345290JNXMzo','1632168iLsXXj','3109764HSqgAz','54803qwxdAv','definition','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','798705kGuMWe','aborted','yes','execute','confirm','args','isNonInteractive','result','present','service','AbortError','dryRun','command','Rabetbase\x20invocation\x20aborted.','rawFlags','8FNRLmV','152Aorcvu','confirmation','high-risk-write','message','36085YraCLh','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','format','446793EqKCUb','risk','riskLevel','3SzraTB','data'];a324_0x45b6=function(){return _0x419622;};return a324_0x45b6();}
1
+ (function(_0x2eb575,_0x481fc0){const _0x10faac=a324_0x3b0d,_0x279c4e=_0x2eb575();while(!![]){try{const _0xf9a7c6=-parseInt(_0x10faac(0xea))/0x1+parseInt(_0x10faac(0xe3))/0x2*(parseInt(_0x10faac(0xe9))/0x3)+parseInt(_0x10faac(0xd2))/0x4+-parseInt(_0x10faac(0xd5))/0x5*(parseInt(_0x10faac(0xde))/0x6)+-parseInt(_0x10faac(0xd6))/0x7*(-parseInt(_0x10faac(0xe5))/0x8)+-parseInt(_0x10faac(0xd8))/0x9*(parseInt(_0x10faac(0xe0))/0xa)+parseInt(_0x10faac(0xdb))/0xb;if(_0xf9a7c6===_0x481fc0)break;else _0x279c4e['push'](_0x279c4e['shift']());}catch(_0x268d6f){_0x279c4e['push'](_0x279c4e['shift']());}}}(a324_0xab47,0x3304a));import{buildConfigFromFlags,initGlobalEnvironment,isRoutingRecoveryService}from'../context.js';function a324_0x3b0d(_0x46d423,_0x4c4675){_0x46d423=_0x46d423-0xcd;const _0xab4724=a324_0xab47();let _0x3b0d4e=_0xab4724[_0x46d423];return _0x3b0d4e;}import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x1eadf4,command:_0x2258d9,risk:_0x44b991,dryRun:_0x3e219a}){const _0x49e2db=a324_0x3b0d;return JSON[_0x49e2db(0xd3)]({'ok':_0x1eadf4['ok'],'command':_0x2258d9,'risk':_0x44b991,..._0x3e219a?{'dryRun':!![]}:{},..._0x1eadf4[_0x49e2db(0xd4)]!==undefined?{'data':_0x1eadf4[_0x49e2db(0xd4)]}:{},..._0x1eadf4[_0x49e2db(0xdc)]?{'message':_0x1eadf4['message']}:{}});}};export async function invokeRabetbase(_0x3fce8c,_0x566e5b){const _0xbe9bc5=a324_0x3b0d;throwIfAborted(_0x566e5b[_0xbe9bc5(0xef)]);const _0x2a92a7=await resolveRabetbaseInvocation(_0x3fce8c),_0x2942a7=canonicalRabetbaseOperation(_0x2a92a7['definition']);return await confirmWriteBeforeQueue(_0x2a92a7[_0xbe9bc5(0xf0)],_0x2a92a7[_0xbe9bc5(0xcd)],_0x2942a7,_0x566e5b),runSerialized(async()=>{const _0x392afc=_0xbe9bc5,_0x2e7dd5={};try{throwIfAborted(_0x566e5b[_0x392afc(0xef)]);const _0x1c495e=buildConfigFromFlags(_0x2a92a7[_0x392afc(0xcd)]);!isRoutingRecoveryService(_0x2a92a7['definition']['service'])&&await initGlobalEnvironment(_0x1c495e);const _0x90b988=createPipelineEnv(_0x1c495e,{..._0x2a92a7[_0x392afc(0xcd)],'yes':_0x2a92a7['definition'][_0x392afc(0xdd)]===_0x392afc(0xec)?!![]:_0x2a92a7['rawFlags'][_0x392afc(0xe4)],'nonInteractive':!![]},_0x2a92a7[_0x392afc(0xe8)]);_0x90b988[_0x392afc(0xf2)]=!![],_0x90b988[_0x392afc(0xd1)]=_0x392afc(0xec);const _0x4339ba=withAbortSignal(_0x2a92a7['definition'],_0x566e5b[_0x392afc(0xef)]),_0x39a8bf=createRabetbaseRunnerAdapter({'formatOutput'(_0x4ce312,_0xd91bb4){const _0x13c875=_0x392afc;_0x2e7dd5['result']=_0x4ce312,_0x2e7dd5[_0x13c875(0xe1)]=_0xd91bb4['command'],_0x2e7dd5['risk']=_0xd91bb4['risk'],_0x2e7dd5[_0x13c875(0xd0)]=_0xd91bb4[_0x13c875(0xd0)],_0x2e7dd5[_0x13c875(0xeb)]=_0xd91bb4[_0x13c875(0xeb)]===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.');}});await runCommand(_0x4339ba,_0x90b988,_0x39a8bf);if(!_0x2e7dd5['result']||!_0x2e7dd5[_0x392afc(0xe1)]||!_0x2e7dd5['risk']||!_0x2e7dd5[_0x392afc(0xd0)])throw new Error(_0x392afc(0xce));const _0x52f284=_0x2e7dd5['dryRun']===!![],_0x417993=_0x566e5b['presentation']??defaultPresentation,_0x290ae7={'result':_0x2e7dd5[_0x392afc(0xdf)],'command':_0x2e7dd5[_0x392afc(0xe1)],'operation':_0x2942a7,'risk':_0x2e7dd5[_0x392afc(0xdd)],'format':_0x2e7dd5[_0x392afc(0xd0)],'dryRun':_0x52f284},_0x3e9e9f=createRabetbaseWriteMetadata(_0x2a92a7[_0x392afc(0xf0)],_0x2942a7,_0x2e7dd5[_0x392afc(0xdf)],_0x52f284);let _0x4ddfa5;try{_0x4ddfa5=await _0x417993[_0x392afc(0xd9)](_0x290ae7);}catch(_0x27f8d5){if(!_0x3e9e9f||_0x417993===defaultPresentation)throw _0x27f8d5;_0x4ddfa5=await defaultPresentation[_0x392afc(0xd9)](_0x290ae7);}return{'operation':_0x2942a7,'risk':_0x2e7dd5[_0x392afc(0xdd)],'mode':_0x52f284?_0x392afc(0xf1):_0x392afc(0xcf),'result':_0x2e7dd5[_0x392afc(0xdf)],'output':_0x4ddfa5,..._0x3e9e9f?{'metadata':_0x3e9e9f}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x2e0d97,_0x431dee,_0x26d300,_0x446eb){const _0x38a79e=a324_0x3b0d;if(_0x431dee[_0x38a79e(0xeb)]===!![]||_0x2e0d97[_0x38a79e(0xdd)]!==_0x38a79e(0xd7)&&_0x2e0d97['risk']!==_0x38a79e(0xec))return;await _0x446eb[_0x38a79e(0xda)][_0x38a79e(0xed)](buildRabetbaseConfirmationRequest(_0x2e0d97,_0x26d300,_0x446eb[_0x38a79e(0xef)]));}function withAbortSignal(_0x1b8bb4,_0x5c861b){return{..._0x1b8bb4,async 'execute'(_0x2feb50){return throwIfAborted(_0x5c861b),_0x1b8bb4['execute']({..._0x2feb50,'signal':_0x5c861b});}};}function a324_0xab47(){const _0x3cba4b=['698845mnunQh','write','142092VbfZhr','present','confirmation','1524941RdyBAC','message','risk','1167528ssUkWi','result','20lXJDaK','command','Rabetbase\x20invocation\x20aborted.','16GZUDyo','yes','16DftIBD','AbortError','aborted','args','80334PLFBIq','111769qReUhq','dryRun','high-risk-write','confirm','reason','signal','definition','dry-run','isNonInteractive','rawFlags','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','execute','format','riskLevel','755864hmiYui','stringify','data','10SJextB'];a324_0xab47=function(){return _0x3cba4b;};return a324_0xab47();}function throwIfAborted(_0x1fd34d){const _0x25fb8c=a324_0x3b0d;if(_0x1fd34d?.[_0x25fb8c(0xe7)])throw _0x1fd34d[_0x25fb8c(0xee)]instanceof Error?_0x1fd34d[_0x25fb8c(0xee)]:new DOMException(_0x25fb8c(0xe2),_0x25fb8c(0xe6));}
@@ -1 +1 @@
1
- function a325_0x57a5(_0xfec71c,_0x5db58c){_0xfec71c=_0xfec71c-0x1b7;const _0x5bdd07=a325_0x5bdd();let _0x57a5bf=_0x5bdd07[_0xfec71c];return _0x57a5bf;}function a325_0x5bdd(){const _0x45faf8=['70dYKpmw','1631440wGSEHh','750618TUzNlr','337476QSBxsX','18985lZosKy','1941129RoxYnz','catch','2012555fPmatI','34ulJtvM','2135IGkeUh','20010RDuLWy','12qRXOsP','resolve'];a325_0x5bdd=function(){return _0x45faf8;};return a325_0x5bdd();}const a325_0x6ebbc9=a325_0x57a5;(function(_0x5b9861,_0xd89a7c){const _0xaf0034=a325_0x57a5,_0x39bed2=_0x5b9861();while(!![]){try{const _0x12dcb5=parseInt(_0xaf0034(0x1c2))/0x1*(parseInt(_0xaf0034(0x1b9))/0x2)+parseInt(_0xaf0034(0x1c1))/0x3*(-parseInt(_0xaf0034(0x1bc))/0x4)+-parseInt(_0xaf0034(0x1b8))/0x5+parseInt(_0xaf0034(0x1bb))/0x6*(parseInt(_0xaf0034(0x1ba))/0x7)+parseInt(_0xaf0034(0x1bf))/0x8+parseInt(_0xaf0034(0x1c3))/0x9+-parseInt(_0xaf0034(0x1be))/0xa*(parseInt(_0xaf0034(0x1c0))/0xb);if(_0x12dcb5===_0xd89a7c)break;else _0x39bed2['push'](_0x39bed2['shift']());}catch(_0x172173){_0x39bed2['push'](_0x39bed2['shift']());}}}(a325_0x5bdd,0x844b6));let tail=Promise[a325_0x6ebbc9(0x1bd)]();export async function runSerialized(_0x2b1e78){const _0x32da6c=a325_0x6ebbc9,_0x3d2cbc=tail;let _0xb38ae8;tail=new Promise(_0x268f2c=>{_0xb38ae8=_0x268f2c;}),await _0x3d2cbc[_0x32da6c(0x1b7)](()=>undefined);try{return await _0x2b1e78();}finally{_0xb38ae8();}}
1
+ function a325_0x7c69(){const _0x24ab50=['catch','31031980AGDZkT','1414056AkoocS','8218016DOXMLw','1FKVeDT','83406XsQyGT','73204OdMQcH','6851025liFnja','resolve','441IVAVeA','5339245lrlvFG','18tPyLkh'];a325_0x7c69=function(){return _0x24ab50;};return a325_0x7c69();}const a325_0x8ecb35=a325_0x3dda;(function(_0x353934,_0x20688c){const _0x4d3264=a325_0x3dda,_0x1a70bc=_0x353934();while(!![]){try{const _0x230482=-parseInt(_0x4d3264(0x1ce))/0x1*(parseInt(_0x4d3264(0x1cc))/0x2)+-parseInt(_0x4d3264(0x1c9))/0x3*(parseInt(_0x4d3264(0x1d0))/0x4)+-parseInt(_0x4d3264(0x1d4))/0x5+parseInt(_0x4d3264(0x1cf))/0x6*(-parseInt(_0x4d3264(0x1d3))/0x7)+parseInt(_0x4d3264(0x1cd))/0x8+-parseInt(_0x4d3264(0x1d1))/0x9+parseInt(_0x4d3264(0x1cb))/0xa;if(_0x230482===_0x20688c)break;else _0x1a70bc['push'](_0x1a70bc['shift']());}catch(_0x8ff5e5){_0x1a70bc['push'](_0x1a70bc['shift']());}}}(a325_0x7c69,0x94a0b));function a325_0x3dda(_0xd2fe77,_0x36d7ff){_0xd2fe77=_0xd2fe77-0x1c9;const _0x7c69f1=a325_0x7c69();let _0x3dda0c=_0x7c69f1[_0xd2fe77];return _0x3dda0c;}let tail=Promise[a325_0x8ecb35(0x1d2)]();export async function runSerialized(_0x2759dd){const _0x102998=a325_0x8ecb35,_0x4e5f93=tail;let _0x51f673;tail=new Promise(_0x482720=>{_0x51f673=_0x482720;}),await _0x4e5f93[_0x102998(0x1ca)](()=>undefined);try{return await _0x2759dd();}finally{_0x51f673();}}
@@ -1 +1 @@
1
- (function(_0x338413,_0x546cf7){const _0x355ca6=a326_0x1365,_0x25fdc6=_0x338413();while(!![]){try{const _0xc34e53=parseInt(_0x355ca6(0xa7))/0x1+-parseInt(_0x355ca6(0x98))/0x2*(parseInt(_0x355ca6(0xa8))/0x3)+parseInt(_0x355ca6(0xa3))/0x4+-parseInt(_0x355ca6(0x99))/0x5*(parseInt(_0x355ca6(0x9f))/0x6)+-parseInt(_0x355ca6(0xa2))/0x7*(-parseInt(_0x355ca6(0x9a))/0x8)+-parseInt(_0x355ca6(0x9c))/0x9*(-parseInt(_0x355ca6(0x94))/0xa)+-parseInt(_0x355ca6(0x9e))/0xb;if(_0xc34e53===_0x546cf7)break;else _0x25fdc6['push'](_0x25fdc6['shift']());}catch(_0x48e15d){_0x25fdc6['push'](_0x25fdc6['shift']());}}}(a326_0x30c0,0x21955));function a326_0x30c0(){const _0x594421=['join','3298229QVggLp','27810udhraM','slice','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','7zIkEdS','662196AIIDyM','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','wildcardDef','245717AsxCvK','4278gdrGSP','flags','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','validation','10uxELtu','hint','run','unknownCommand','190CESBBo','140eYgDFo','573848WyFYRT','message','1976841ZDEdDA'];a326_0x30c0=function(){return _0x594421;};return a326_0x30c0();}import a326_0x3f0e08 from'meow';function a326_0x1365(_0xfd2592,_0x5bf34c){_0xfd2592=_0xfd2592-0x91;const _0x30c0a0=a326_0x30c0();let _0x13650c=_0x30c0a0[_0xfd2592];return _0x13650c;}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(_0x46a1c8){const _0x182ed0=a326_0x1365,_0x1db7ec=a326_0x3f0e08('',{'importMeta':import.meta,'argv':[..._0x46a1c8],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x4c1eae=[..._0x1db7ec['input']],_0x5a509c=_0x1db7ec[_0x182ed0(0x91)],_0x249ce9=_0x4c1eae[0x0];if(!_0x249ce9)throw CliErrors['validation'](_0x182ed0(0xa5));const _0x318657=resolveRemovedCommand(_0x249ce9,_0x4c1eae[0x1]);if(_0x318657)throw CliErrors[_0x182ed0(0x93)](_0x318657[_0x182ed0(0x9b)],_0x318657[_0x182ed0(0x95)]);if(_0x249ce9===_0x182ed0(0x96))throw CliErrors['validation'](_0x182ed0(0xa1),_0x182ed0(0xa4));if(!isKnownService(_0x249ce9))throw CliErrors[_0x182ed0(0x97)](_0x4c1eae[_0x182ed0(0x9d)]('\x20'));const _0x2b3e98=getServiceEntry(_0x249ce9),_0x1b70ac=_0x4c1eae[0x1],_0x35fe35=_0x1b70ac||_0x2b3e98['defaultCommand'];if(!_0x35fe35){if(_0x2b3e98[_0x182ed0(0xa6)])return{'definition':_0x2b3e98[_0x182ed0(0xa6)],'rawFlags':_0x5a509c,'args':[]};throw CliErrors[_0x182ed0(0x93)](_0x182ed0(0x92)+_0x249ce9+'\x22.');}const _0x321d3b=findDefinition(_0x249ce9,_0x35fe35);if(_0x321d3b)return assertSupportedCommandFlags(_0x321d3b,_0x5a509c),{'definition':_0x321d3b,'rawFlags':_0x5a509c,'args':_0x4c1eae[_0x182ed0(0xa0)](0x2)};if(_0x2b3e98['wildcardDef'])return{'definition':_0x2b3e98[_0x182ed0(0xa6)],'rawFlags':_0x5a509c,'args':[_0x35fe35,..._0x4c1eae[_0x182ed0(0xa0)](0x2)]};throw CliErrors['unknownCommand'](_0x249ce9+'\x20'+_0x35fe35);}
1
+ (function(_0x16b980,_0x4d23a1){const _0x40ffd6=a326_0x17de,_0x3a2239=_0x16b980();while(!![]){try{const _0x5aac3d=-parseInt(_0x40ffd6(0x177))/0x1+parseInt(_0x40ffd6(0x170))/0x2+-parseInt(_0x40ffd6(0x173))/0x3+parseInt(_0x40ffd6(0x175))/0x4*(parseInt(_0x40ffd6(0x17b))/0x5)+parseInt(_0x40ffd6(0x178))/0x6+parseInt(_0x40ffd6(0x16d))/0x7+-parseInt(_0x40ffd6(0x179))/0x8*(parseInt(_0x40ffd6(0x17a))/0x9);if(_0x5aac3d===_0x4d23a1)break;else _0x3a2239['push'](_0x3a2239['shift']());}catch(_0x41a8c6){_0x3a2239['push'](_0x3a2239['shift']());}}}(a326_0x11a7,0x25b37));import a326_0x4b9040 from'meow';function a326_0x11a7(){const _0x11c186=['1518120ZQEfFI','232KtSfay','122022qBVZHS','5HbLZiu','slice','run','wildcardDef','input','unknownCommand','validation','1889839qnJQOK','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','482910ZYCSpU','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','defaultCommand','837147uVsKoE','flags','570628TpaKyO','hint','80455wnTdck'];a326_0x11a7=function(){return _0x11c186;};return a326_0x11a7();}import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a326_0x17de(_0x4f7b7c,_0x269280){_0x4f7b7c=_0x4f7b7c-0x16a;const _0x11a794=a326_0x11a7();let _0x17de75=_0x11a794[_0x4f7b7c];return _0x17de75;}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';export async function resolveRabetbaseInvocation(_0xa567f7){const _0x112301=a326_0x17de,_0x577fe5=a326_0x4b9040('',{'importMeta':import.meta,'argv':[..._0xa567f7],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x79a96f=[..._0x577fe5[_0x112301(0x16a)]],_0x3e3e02=_0x577fe5[_0x112301(0x174)],_0x24e359=_0x79a96f[0x0];if(!_0x24e359)throw CliErrors[_0x112301(0x16c)](_0x112301(0x16e));const _0x2b0510=resolveRemovedCommand(_0x24e359,_0x79a96f[0x1]);if(_0x2b0510)throw CliErrors[_0x112301(0x16c)](_0x2b0510['message'],_0x2b0510[_0x112301(0x176)]);if(_0x24e359===_0x112301(0x17d))throw CliErrors[_0x112301(0x16c)](_0x112301(0x16f),_0x112301(0x171));if(!isKnownService(_0x24e359))throw CliErrors[_0x112301(0x16b)](_0x79a96f['join']('\x20'));const _0x428066=getServiceEntry(_0x24e359),_0x440265=_0x79a96f[0x1],_0x1e719=_0x440265||_0x428066[_0x112301(0x172)];if(!_0x1e719){if(_0x428066[_0x112301(0x17e)])return{'definition':_0x428066[_0x112301(0x17e)],'rawFlags':_0x3e3e02,'args':[]};throw CliErrors['validation']('Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x24e359+'\x22.');}const _0xb3171a=findDefinition(_0x24e359,_0x1e719);if(_0xb3171a)return assertSupportedCommandFlags(_0xb3171a,_0x3e3e02),{'definition':_0xb3171a,'rawFlags':_0x3e3e02,'args':_0x79a96f[_0x112301(0x17c)](0x2)};if(_0x428066['wildcardDef'])return{'definition':_0x428066[_0x112301(0x17e)],'rawFlags':_0x3e3e02,'args':[_0x1e719,..._0x79a96f['slice'](0x2)]};throw CliErrors[_0x112301(0x16b)](_0x24e359+'\x20'+_0x1e719);}
@@ -1 +1 @@
1
- const a328_0xacb744=a328_0x1e12;(function(_0x33b582,_0x42ee5f){const _0x3fb4b2=a328_0x1e12,_0x15a897=_0x33b582();while(!![]){try{const _0x10b93a=parseInt(_0x3fb4b2(0x205))/0x1+parseInt(_0x3fb4b2(0x224))/0x2*(-parseInt(_0x3fb4b2(0x1f3))/0x3)+-parseInt(_0x3fb4b2(0x1e7))/0x4+-parseInt(_0x3fb4b2(0x217))/0x5*(-parseInt(_0x3fb4b2(0x1f8))/0x6)+-parseInt(_0x3fb4b2(0x212))/0x7*(parseInt(_0x3fb4b2(0x202))/0x8)+parseInt(_0x3fb4b2(0x203))/0x9*(parseInt(_0x3fb4b2(0x21f))/0xa)+parseInt(_0x3fb4b2(0x20f))/0xb;if(_0x10b93a===_0x42ee5f)break;else _0x15a897['push'](_0x15a897['shift']());}catch(_0x45d6b7){_0x15a897['push'](_0x15a897['shift']());}}}(a328_0x3727,0x7fa79));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{debuglog}from'node:util';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a328_0xacb744(0x207),SKILL_NAME=a328_0xacb744(0x20d),debug=debuglog(a328_0xacb744(0x1ec));function frontmatterValue(_0x10dc91,_0x472710){const _0x5cb5e3=a328_0xacb744;return _0x10dc91[_0x5cb5e3(0x20b)](new RegExp('^'+_0x472710+_0x5cb5e3(0x220),'m'))?.[0x1]?.[_0x5cb5e3(0x20e)]()??'';}function a328_0x1e12(_0x3d0ef1,_0x1b8c98){_0x3d0ef1=_0x3d0ef1-0x1e6;const _0x3727a8=a328_0x3727();let _0x1e1261=_0x3727a8[_0x3d0ef1];return _0x1e1261;}function listFiles(_0x564f9b,_0x2b3052=_0x564f9b){const _0x5bb72f=a328_0xacb744;return readdirSync(_0x2b3052,{'withFileTypes':!![]})[_0x5bb72f(0x1ef)](_0x66f1fb=>{const _0x3900e4=_0x5bb72f,_0xdd1610=join(_0x2b3052,_0x66f1fb['name']),_0x10fc97=lstatSync(_0xdd1610);if(_0x10fc97[_0x3900e4(0x1fe)]())throw new Error(_0x3900e4(0x1fb)+_0xdd1610);if(_0x10fc97[_0x3900e4(0x227)]())return listFiles(_0x564f9b,_0xdd1610);if(!_0x10fc97[_0x3900e4(0x1f7)]())throw new Error(_0x3900e4(0x1ea)+_0xdd1610);return[relative(_0x564f9b,_0xdd1610)[_0x3900e4(0x213)](sep)[_0x3900e4(0x226)]('/')];})[_0x5bb72f(0x1e9)]((_0x51788a,_0x603335)=>_0x51788a<_0x603335?-0x1:_0x51788a>_0x603335?0x1:0x0);}function digestFiles(_0x3067f4,_0x4313eb){const _0x545224=a328_0xacb744,_0x2f9b82=createHash(_0x545224(0x1fc));for(const _0x4b3d3b of _0x4313eb){if(_0x4b3d3b[_0x545224(0x225)]('/')||_0x4b3d3b['split']('/')[_0x545224(0x219)]('..')||_0x4b3d3b[_0x545224(0x219)]('\x5c'))throw new Error('Unsafe\x20manifest\x20path:\x20'+_0x4b3d3b);_0x2f9b82[_0x545224(0x210)](_0x4b3d3b),_0x2f9b82[_0x545224(0x210)]('\x00'),_0x2f9b82[_0x545224(0x210)](readFileSync(join(_0x3067f4,..._0x4b3d3b[_0x545224(0x213)]('/')))),_0x2f9b82[_0x545224(0x210)]('\x00');}return _0x2f9b82[_0x545224(0x21c)](_0x545224(0x21a));}function sameFiles(_0x430137,_0x98905a){const _0x51d572=a328_0xacb744;return _0x430137['length']===_0x98905a['length']&&_0x430137[_0x51d572(0x221)]((_0x212b5d,_0x4fd2a9)=>_0x212b5d===_0x98905a[_0x4fd2a9]);}function readSource(_0x5d78aa){const _0x1d8cdf=a328_0xacb744,_0x23a886=JSON[_0x1d8cdf(0x1f1)](readFileSync(join(_0x5d78aa,_0x1d8cdf(0x211)),_0x1d8cdf(0x1e6))),_0x40dcd4=JSON['parse'](readFileSync(join(_0x5d78aa,'skills','rabetbase.manifest.json'),_0x1d8cdf(0x1e6))),_0x1316f7=join(_0x5d78aa,_0x1d8cdf(0x208),SKILL_NAME),_0x12bacf=frontmatterValue(readFileSync(join(_0x1316f7,'SKILL.md'),_0x1d8cdf(0x1e6)),_0x1d8cdf(0x229)),_0x56b88f=listFiles(_0x1316f7);if(_0x40dcd4['schemaVersion']!==0x1||_0x40dcd4[_0x1d8cdf(0x20a)]!==SKILL_NAME||!_0x23a886[_0x1d8cdf(0x229)]||_0x40dcd4['packageVersion']!==_0x23a886[_0x1d8cdf(0x229)]||_0x40dcd4[_0x1d8cdf(0x22a)]!==_0x23a886[_0x1d8cdf(0x229)]||_0x12bacf!==_0x23a886[_0x1d8cdf(0x229)]||!sameFiles(_0x56b88f,_0x40dcd4[_0x1d8cdf(0x21d)])||digestFiles(_0x1316f7,_0x56b88f)!==_0x40dcd4['digest'])throw new Error(_0x1d8cdf(0x1f0));return{'packageVersion':_0x23a886[_0x1d8cdf(0x229)],'skillVersion':_0x12bacf,'root':_0x1316f7,'manifest':_0x40dcd4};}function installedSkillPath(_0x1434ce){const _0x5258fe=a328_0xacb744,_0x3f99b3=resolveInstalledSkill(SKILL_NAME,{'home':_0x1434ce});if(_0x3f99b3['state']===_0x5258fe(0x1fa))return{'state':_0x5258fe(0x1fa),'path':dirname(_0x3f99b3[_0x5258fe(0x228)])};if(_0x3f99b3[_0x5258fe(0x222)]==='absent')return{'state':_0x5258fe(0x206)};return{'state':_0x5258fe(0x1eb),'reason':_0x3f99b3[_0x5258fe(0x1ee)]};}export function inspectInstalledBuiltinSkillVersion(_0x33e568,_0x1efd93={}){const _0x3e4cea=a328_0xacb744,_0x482bca=installedSkillPath(_0x1efd93[_0x3e4cea(0x216)]??homedir());if(_0x482bca[_0x3e4cea(0x222)]===_0x3e4cea(0x206))return{'state':_0x3e4cea(0x206),'expectedVersion':_0x33e568,'repairCommand':REPAIR_COMMAND};if(_0x482bca[_0x3e4cea(0x222)]===_0x3e4cea(0x1eb))return{'state':_0x3e4cea(0x1eb),'expectedVersion':_0x33e568,'reason':_0x482bca['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x13b26f=frontmatterValue(readFileSync(join(_0x482bca[_0x3e4cea(0x228)],_0x3e4cea(0x22b)),_0x3e4cea(0x1e6)),_0x3e4cea(0x229));return{'state':_0x13b26f===_0x33e568?_0x3e4cea(0x215):'version_mismatch','expectedVersion':_0x33e568,'skillVersion':_0x13b26f,'installedPath':_0x482bca['path'],'repairCommand':REPAIR_COMMAND};}catch(_0x2f30eb){return{'state':_0x3e4cea(0x1eb),'expectedVersion':_0x33e568,'installedPath':_0x482bca['path'],'reason':_0x2f30eb instanceof Error?_0x2f30eb[_0x3e4cea(0x1f9)]:String(_0x2f30eb),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x477b4a={}){const _0xfd2e15=a328_0xacb744,_0x107402=_0x477b4a['packageRoot']??DEFAULT_PACKAGE_ROOT;let _0x5a0e48;try{_0x5a0e48=readSource(_0x107402);}catch(_0x2e68d6){return{'state':_0xfd2e15(0x1eb),'packageVersion':_0xfd2e15(0x1f6),'reason':_0x2e68d6 instanceof Error?_0x2e68d6[_0xfd2e15(0x1f9)]:String(_0x2e68d6),'repairCommand':REPAIR_COMMAND};}const _0xd6bf65=installedSkillPath(_0x477b4a[_0xfd2e15(0x216)]??homedir());if(_0xd6bf65[_0xfd2e15(0x222)]===_0xfd2e15(0x206))return{'state':_0xfd2e15(0x206),'packageVersion':_0x5a0e48['packageVersion'],'repairCommand':REPAIR_COMMAND};if(_0xd6bf65[_0xfd2e15(0x222)]===_0xfd2e15(0x1eb))return{'state':_0xfd2e15(0x1eb),'packageVersion':_0x5a0e48[_0xfd2e15(0x1e8)],'reason':_0xd6bf65[_0xfd2e15(0x1ee)],'repairCommand':REPAIR_COMMAND};try{const _0x1f07f0=frontmatterValue(readFileSync(join(_0xd6bf65[_0xfd2e15(0x228)],_0xfd2e15(0x22b)),_0xfd2e15(0x1e6)),_0xfd2e15(0x229));if(_0x1f07f0!==_0x5a0e48['skillVersion'])return{'state':_0xfd2e15(0x20c),'packageVersion':_0x5a0e48['packageVersion'],'skillVersion':_0x1f07f0,'installedPath':_0xd6bf65[_0xfd2e15(0x228)],'repairCommand':REPAIR_COMMAND};const _0x4bb169=listFiles(_0xd6bf65['path']),_0x4cdd65=digestFiles(_0xd6bf65[_0xfd2e15(0x228)],_0x4bb169);return{'state':sameFiles(_0x4bb169,_0x5a0e48[_0xfd2e15(0x218)][_0xfd2e15(0x21d)])&&_0x4cdd65===_0x5a0e48[_0xfd2e15(0x218)][_0xfd2e15(0x21c)]?_0xfd2e15(0x215):_0xfd2e15(0x1ed),'packageVersion':_0x5a0e48[_0xfd2e15(0x1e8)],'skillVersion':_0x1f07f0,'installedPath':_0xd6bf65[_0xfd2e15(0x228)],'digest':_0x4cdd65,'repairCommand':REPAIR_COMMAND};}catch(_0x58ab6f){return{'state':_0xfd2e15(0x1eb),'packageVersion':_0x5a0e48[_0xfd2e15(0x1e8)],'installedPath':_0xd6bf65[_0xfd2e15(0x228)],'reason':_0x58ab6f instanceof Error?_0x58ab6f[_0xfd2e15(0x1f9)]:String(_0x58ab6f),'repairCommand':REPAIR_COMMAND};}}function failure(_0x228aa4,_0x3ae4de,_0x1190be,_0x46740c){const _0x130dad=a328_0xacb744;return{'ok':![],'code':_0x228aa4,'packageVersion':_0x3ae4de[_0x130dad(0x1e8)],'skillVersion':_0x3ae4de[_0x130dad(0x22a)],'installedPath':_0x46740c,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x1190be instanceof Error?_0x1190be['message']:String(_0x1190be)};}function a328_0x3727(){const _0x9223b5=[':\x5cs*(.+)$','every','state','\x20verified;\x20','403144UpgKGs','startsWith','join','isDirectory','path','version','skillVersion','SKILL.md','utf8','1942660ZXYPIj','packageVersion','sort','Unsupported\x20Skill\x20entry:\x20','unverifiable','rabetbase-skills','content_mismatch','reason','flatMap','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','parse','error','12YJiOXK','installedPath','CLI\x20Built-in\x20Skill\x20','unknown','isFile','6bnkezr','message','present','Symbolic\x20link\x20is\x20not\x20allowed:\x20','sha256','INSTALL_FAILED','isSymbolicLink','stdio','VERIFY_FAILED','partialFailure','56nFDjWG','613449RDTZdG','pipe','765692sYFedV','missing','rabetbase\x20cli-skill\x20install','skills','Installer\x20reported\x20partial\x20target\x20failures:\x0a%s','name','match','version_mismatch','rabetbase','trim','8725057WYgwRV','update','package.json','385497mwHVBG','split','SOURCE_INVALID','current','home','2184805YKhtAe','manifest','includes','hex','output','digest','files','log','30xJeabH'];a328_0x3727=function(){return _0x9223b5;};return a328_0x3727();}export function installBuiltinSkill(_0x4e8c43={}){const _0x1d97de=a328_0xacb744,_0xacadb4=_0x4e8c43['packageRoot']??DEFAULT_PACKAGE_ROOT,_0x9d15e7=_0x4e8c43[_0x1d97de(0x216)]??homedir();let _0x3b3ccb;try{_0x3b3ccb=readSource(_0xacadb4);}catch(_0x231f6d){return failure(_0x1d97de(0x214),{'packageVersion':'unknown','skillVersion':_0x1d97de(0x1f6)},_0x231f6d);}const _0x102cc4=inspectBuiltinSkill({'packageRoot':_0xacadb4,'home':_0x9d15e7}),_0x58d04e=runNpxSkillsAddGlobal(_0xacadb4,_0x3b3ccb['root'],{'stdio':_0x4e8c43[_0x1d97de(0x1ff)]??_0x1d97de(0x204),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x9d15e7}});if(_0x58d04e['skipped'])return{'ok':!![],'packageVersion':_0x3b3ccb[_0x1d97de(0x1e8)],'skillVersion':_0x3b3ccb['skillVersion'],'installedPath':_0x102cc4[_0x1d97de(0x1f4)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x58d04e['ok'])return failure(_0x1d97de(0x1fd),_0x3b3ccb,_0x58d04e[_0x1d97de(0x1f2)]??'skills@latest\x20exited\x20'+_0x58d04e['status']);const _0x2e5d3a=inspectBuiltinSkill({'packageRoot':_0xacadb4,'home':_0x9d15e7});if(_0x2e5d3a[_0x1d97de(0x222)]!=='current'){const _0x29d37a=_0x2e5d3a[_0x1d97de(0x1ee)]??'Installed\x20Skill\x20state\x20is\x20'+_0x2e5d3a[_0x1d97de(0x222)];return failure(_0x1d97de(0x200),_0x3b3ccb,_0x58d04e[_0x1d97de(0x201)]?_0x29d37a+'\x0a'+_0x58d04e['partialFailure'][_0x1d97de(0x21b)]:_0x29d37a,_0x2e5d3a['installedPath']);}return _0x58d04e[_0x1d97de(0x201)]&&(debug(_0x1d97de(0x209),_0x58d04e[_0x1d97de(0x201)][_0x1d97de(0x21b)]),console[_0x1d97de(0x21e)](_0x1d97de(0x1f5)+_0x3b3ccb[_0x1d97de(0x22a)]+_0x1d97de(0x223)+_0x58d04e['partialFailure']['count']+'\x20automatically\x20selected\x20installation\x20target(s)\x20could\x20not\x20be\x20installed.')),{'ok':!![],'packageVersion':_0x3b3ccb[_0x1d97de(0x1e8)],'skillVersion':_0x3b3ccb[_0x1d97de(0x22a)],'installedPath':_0x2e5d3a[_0x1d97de(0x1f4)],'changed':_0x102cc4[_0x1d97de(0x222)]!==_0x1d97de(0x215),'repairCommand':REPAIR_COMMAND};}
1
+ function a328_0x4304(_0x43f2cc,_0x5edca6){_0x43f2cc=_0x43f2cc-0x15a;const _0x510996=a328_0x5109();let _0x43041c=_0x510996[_0x43f2cc];return _0x43041c;}const a328_0x2a65a0=a328_0x4304;(function(_0x50ee09,_0x56678f){const _0x4ede26=a328_0x4304,_0x16d938=_0x50ee09();while(!![]){try{const _0x33ea3f=-parseInt(_0x4ede26(0x16c))/0x1*(parseInt(_0x4ede26(0x163))/0x2)+-parseInt(_0x4ede26(0x16b))/0x3*(-parseInt(_0x4ede26(0x19b))/0x4)+parseInt(_0x4ede26(0x196))/0x5*(parseInt(_0x4ede26(0x15d))/0x6)+-parseInt(_0x4ede26(0x178))/0x7*(parseInt(_0x4ede26(0x176))/0x8)+-parseInt(_0x4ede26(0x172))/0x9+parseInt(_0x4ede26(0x188))/0xa+-parseInt(_0x4ede26(0x168))/0xb*(-parseInt(_0x4ede26(0x186))/0xc);if(_0x33ea3f===_0x56678f)break;else _0x16d938['push'](_0x16d938['shift']());}catch(_0x4780d7){_0x16d938['push'](_0x16d938['shift']());}}}(a328_0x5109,0xd28e7));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{debuglog}from'node:util';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a328_0x2a65a0(0x198),SKILL_NAME='rabetbase',debug=debuglog(a328_0x2a65a0(0x173));function a328_0x5109(){const _0x4f5fa9=['33aXxPNk','present','includes','620067lVcwRA','944158YUKGgs','home','digest','utf8','SKILL.md','version','4036221uoEVQC','rabetbase-skills','output','state','856232QtGSbb','skills@latest\x20exited\x20','112uEJusB','pipe','split','Installed\x20Skill\x20state\x20is\x20','packageRoot','packageVersion','skills','\x20verified;\x20','message','INSTALL_FAILED','Symbolic\x20link\x20is\x20not\x20allowed:\x20','path','skillVersion','schemaVersion','1434792CyYGtS','error','15646890OgDIFJ','isFile','root','unknown','hex','version_mismatch','count','current','status','name','join','unverifiable','missing','installedPath','1615smMgvr','reason','rabetbase\x20cli-skill\x20install','flatMap','startsWith','16WrfiRh','SOURCE_INVALID','match','update','\x20automatically\x20selected\x20installation\x20target(s)\x20could\x20not\x20be\x20installed.','package.json','log','files','22614COpbAi','isSymbolicLink','length','partialFailure','sort','isDirectory','2PyKawR','manifest','VERIFY_FAILED','Installer\x20reported\x20partial\x20target\x20failures:\x0a%s','sha256'];a328_0x5109=function(){return _0x4f5fa9;};return a328_0x5109();}function frontmatterValue(_0x467b73,_0x2115ff){const _0x2f0ee7=a328_0x2a65a0;return _0x467b73[_0x2f0ee7(0x19d)](new RegExp('^'+_0x2115ff+':\x5cs*(.+)$','m'))?.[0x1]?.['trim']()??'';}function listFiles(_0x5a951b,_0x417c51=_0x5a951b){const _0x171fa3=a328_0x2a65a0;return readdirSync(_0x417c51,{'withFileTypes':!![]})[_0x171fa3(0x199)](_0x5b8267=>{const _0x518cc9=_0x171fa3,_0x394d88=join(_0x417c51,_0x5b8267[_0x518cc9(0x191)]),_0x327a4a=lstatSync(_0x394d88);if(_0x327a4a[_0x518cc9(0x15e)]())throw new Error(_0x518cc9(0x182)+_0x394d88);if(_0x327a4a[_0x518cc9(0x162)]())return listFiles(_0x5a951b,_0x394d88);if(!_0x327a4a[_0x518cc9(0x189)]())throw new Error('Unsupported\x20Skill\x20entry:\x20'+_0x394d88);return[relative(_0x5a951b,_0x394d88)[_0x518cc9(0x17a)](sep)[_0x518cc9(0x192)]('/')];})[_0x171fa3(0x161)]((_0x1e04d3,_0x47bb6f)=>_0x1e04d3<_0x47bb6f?-0x1:_0x1e04d3>_0x47bb6f?0x1:0x0);}function digestFiles(_0x1bcf37,_0x15877e){const _0x4aa501=a328_0x2a65a0,_0x1559c0=createHash(_0x4aa501(0x167));for(const _0x235b15 of _0x15877e){if(_0x235b15[_0x4aa501(0x19a)]('/')||_0x235b15[_0x4aa501(0x17a)]('/')['includes']('..')||_0x235b15[_0x4aa501(0x16a)]('\x5c'))throw new Error('Unsafe\x20manifest\x20path:\x20'+_0x235b15);_0x1559c0[_0x4aa501(0x19e)](_0x235b15),_0x1559c0['update']('\x00'),_0x1559c0[_0x4aa501(0x19e)](readFileSync(join(_0x1bcf37,..._0x235b15['split']('/')))),_0x1559c0[_0x4aa501(0x19e)]('\x00');}return _0x1559c0[_0x4aa501(0x16e)](_0x4aa501(0x18c));}function sameFiles(_0xd9e2a5,_0x334a24){const _0x7f784b=a328_0x2a65a0;return _0xd9e2a5[_0x7f784b(0x15f)]===_0x334a24['length']&&_0xd9e2a5['every']((_0x3c3279,_0x5da547)=>_0x3c3279===_0x334a24[_0x5da547]);}function readSource(_0x46500c){const _0x54b13f=a328_0x2a65a0,_0x46bc7e=JSON['parse'](readFileSync(join(_0x46500c,_0x54b13f(0x15a)),'utf8')),_0xcb2c31=JSON['parse'](readFileSync(join(_0x46500c,_0x54b13f(0x17e),'rabetbase.manifest.json'),_0x54b13f(0x16f))),_0x15bf93=join(_0x46500c,_0x54b13f(0x17e),SKILL_NAME),_0x18d8f9=frontmatterValue(readFileSync(join(_0x15bf93,_0x54b13f(0x170)),_0x54b13f(0x16f)),_0x54b13f(0x171)),_0x3539c5=listFiles(_0x15bf93);if(_0xcb2c31[_0x54b13f(0x185)]!==0x1||_0xcb2c31[_0x54b13f(0x191)]!==SKILL_NAME||!_0x46bc7e[_0x54b13f(0x171)]||_0xcb2c31[_0x54b13f(0x17d)]!==_0x46bc7e[_0x54b13f(0x171)]||_0xcb2c31[_0x54b13f(0x184)]!==_0x46bc7e[_0x54b13f(0x171)]||_0x18d8f9!==_0x46bc7e['version']||!sameFiles(_0x3539c5,_0xcb2c31[_0x54b13f(0x15c)])||digestFiles(_0x15bf93,_0x3539c5)!==_0xcb2c31[_0x54b13f(0x16e)])throw new Error('Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest');return{'packageVersion':_0x46bc7e[_0x54b13f(0x171)],'skillVersion':_0x18d8f9,'root':_0x15bf93,'manifest':_0xcb2c31};}function installedSkillPath(_0x2217f9){const _0x18d71c=a328_0x2a65a0,_0x5de06b=resolveInstalledSkill(SKILL_NAME,{'home':_0x2217f9});if(_0x5de06b[_0x18d71c(0x175)]==='present')return{'state':_0x18d71c(0x169),'path':dirname(_0x5de06b[_0x18d71c(0x183)])};if(_0x5de06b[_0x18d71c(0x175)]==='absent')return{'state':_0x18d71c(0x194)};return{'state':_0x18d71c(0x193),'reason':_0x5de06b['reason']};}export function inspectInstalledBuiltinSkillVersion(_0x11ae5b,_0x85f465={}){const _0xd3e497=a328_0x2a65a0,_0x52689c=installedSkillPath(_0x85f465[_0xd3e497(0x16d)]??homedir());if(_0x52689c['state']===_0xd3e497(0x194))return{'state':_0xd3e497(0x194),'expectedVersion':_0x11ae5b,'repairCommand':REPAIR_COMMAND};if(_0x52689c['state']===_0xd3e497(0x193))return{'state':_0xd3e497(0x193),'expectedVersion':_0x11ae5b,'reason':_0x52689c[_0xd3e497(0x197)],'repairCommand':REPAIR_COMMAND};try{const _0x3a70b1=frontmatterValue(readFileSync(join(_0x52689c[_0xd3e497(0x183)],'SKILL.md'),_0xd3e497(0x16f)),_0xd3e497(0x171));return{'state':_0x3a70b1===_0x11ae5b?_0xd3e497(0x18f):'version_mismatch','expectedVersion':_0x11ae5b,'skillVersion':_0x3a70b1,'installedPath':_0x52689c[_0xd3e497(0x183)],'repairCommand':REPAIR_COMMAND};}catch(_0x14dc4c){return{'state':_0xd3e497(0x193),'expectedVersion':_0x11ae5b,'installedPath':_0x52689c[_0xd3e497(0x183)],'reason':_0x14dc4c instanceof Error?_0x14dc4c[_0xd3e497(0x180)]:String(_0x14dc4c),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x3243ad={}){const _0x13a37f=a328_0x2a65a0,_0x4314a6=_0x3243ad[_0x13a37f(0x17c)]??DEFAULT_PACKAGE_ROOT;let _0x253acd;try{_0x253acd=readSource(_0x4314a6);}catch(_0x42b597){return{'state':_0x13a37f(0x193),'packageVersion':'unknown','reason':_0x42b597 instanceof Error?_0x42b597[_0x13a37f(0x180)]:String(_0x42b597),'repairCommand':REPAIR_COMMAND};}const _0x3d6d4e=installedSkillPath(_0x3243ad[_0x13a37f(0x16d)]??homedir());if(_0x3d6d4e[_0x13a37f(0x175)]===_0x13a37f(0x194))return{'state':_0x13a37f(0x194),'packageVersion':_0x253acd[_0x13a37f(0x17d)],'repairCommand':REPAIR_COMMAND};if(_0x3d6d4e[_0x13a37f(0x175)]===_0x13a37f(0x193))return{'state':'unverifiable','packageVersion':_0x253acd[_0x13a37f(0x17d)],'reason':_0x3d6d4e['reason'],'repairCommand':REPAIR_COMMAND};try{const _0xb5e653=frontmatterValue(readFileSync(join(_0x3d6d4e[_0x13a37f(0x183)],'SKILL.md'),_0x13a37f(0x16f)),'version');if(_0xb5e653!==_0x253acd[_0x13a37f(0x184)])return{'state':_0x13a37f(0x18d),'packageVersion':_0x253acd[_0x13a37f(0x17d)],'skillVersion':_0xb5e653,'installedPath':_0x3d6d4e[_0x13a37f(0x183)],'repairCommand':REPAIR_COMMAND};const _0x52b531=listFiles(_0x3d6d4e[_0x13a37f(0x183)]),_0x37b3d0=digestFiles(_0x3d6d4e[_0x13a37f(0x183)],_0x52b531);return{'state':sameFiles(_0x52b531,_0x253acd[_0x13a37f(0x164)][_0x13a37f(0x15c)])&&_0x37b3d0===_0x253acd[_0x13a37f(0x164)]['digest']?_0x13a37f(0x18f):'content_mismatch','packageVersion':_0x253acd[_0x13a37f(0x17d)],'skillVersion':_0xb5e653,'installedPath':_0x3d6d4e[_0x13a37f(0x183)],'digest':_0x37b3d0,'repairCommand':REPAIR_COMMAND};}catch(_0xda7167){return{'state':_0x13a37f(0x193),'packageVersion':_0x253acd['packageVersion'],'installedPath':_0x3d6d4e[_0x13a37f(0x183)],'reason':_0xda7167 instanceof Error?_0xda7167[_0x13a37f(0x180)]:String(_0xda7167),'repairCommand':REPAIR_COMMAND};}}function failure(_0x44df84,_0x309c21,_0x330930,_0x443158){const _0x1001c0=a328_0x2a65a0;return{'ok':![],'code':_0x44df84,'packageVersion':_0x309c21['packageVersion'],'skillVersion':_0x309c21['skillVersion'],'installedPath':_0x443158,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x330930 instanceof Error?_0x330930[_0x1001c0(0x180)]:String(_0x330930)};}export function installBuiltinSkill(_0x2b5fc8={}){const _0x333049=a328_0x2a65a0,_0x50511c=_0x2b5fc8[_0x333049(0x17c)]??DEFAULT_PACKAGE_ROOT,_0x33e77d=_0x2b5fc8['home']??homedir();let _0x4922a8;try{_0x4922a8=readSource(_0x50511c);}catch(_0x1ab0eb){return failure(_0x333049(0x19c),{'packageVersion':_0x333049(0x18b),'skillVersion':_0x333049(0x18b)},_0x1ab0eb);}const _0x27e0e0=inspectBuiltinSkill({'packageRoot':_0x50511c,'home':_0x33e77d}),_0x3366cc=runNpxSkillsAddGlobal(_0x50511c,_0x4922a8[_0x333049(0x18a)],{'stdio':_0x2b5fc8['stdio']??_0x333049(0x179),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x33e77d}});if(_0x3366cc['skipped'])return{'ok':!![],'packageVersion':_0x4922a8[_0x333049(0x17d)],'skillVersion':_0x4922a8['skillVersion'],'installedPath':_0x27e0e0[_0x333049(0x195)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x3366cc['ok'])return failure(_0x333049(0x181),_0x4922a8,_0x3366cc[_0x333049(0x187)]??_0x333049(0x177)+_0x3366cc[_0x333049(0x190)]);const _0x174ce5=inspectBuiltinSkill({'packageRoot':_0x50511c,'home':_0x33e77d});if(_0x174ce5[_0x333049(0x175)]!==_0x333049(0x18f)){const _0x3084c4=_0x174ce5[_0x333049(0x197)]??_0x333049(0x17b)+_0x174ce5['state'];return failure(_0x333049(0x165),_0x4922a8,_0x3366cc[_0x333049(0x160)]?_0x3084c4+'\x0a'+_0x3366cc[_0x333049(0x160)][_0x333049(0x174)]:_0x3084c4,_0x174ce5[_0x333049(0x195)]);}return _0x3366cc['partialFailure']&&(debug(_0x333049(0x166),_0x3366cc[_0x333049(0x160)][_0x333049(0x174)]),console[_0x333049(0x15b)]('CLI\x20Built-in\x20Skill\x20'+_0x4922a8[_0x333049(0x184)]+_0x333049(0x17f)+_0x3366cc[_0x333049(0x160)][_0x333049(0x18e)]+_0x333049(0x19f))),{'ok':!![],'packageVersion':_0x4922a8['packageVersion'],'skillVersion':_0x4922a8['skillVersion'],'installedPath':_0x174ce5['installedPath'],'changed':_0x27e0e0[_0x333049(0x175)]!==_0x333049(0x18f),'repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
1
- (function(_0x18f91b,_0x5d0726){const _0x5c4f2d=a329_0x4703,_0x5f36c4=_0x18f91b();while(!![]){try{const _0x1e41f8=-parseInt(_0x5c4f2d(0x157))/0x1+-parseInt(_0x5c4f2d(0x14c))/0x2*(-parseInt(_0x5c4f2d(0x165))/0x3)+-parseInt(_0x5c4f2d(0x163))/0x4+parseInt(_0x5c4f2d(0x153))/0x5*(-parseInt(_0x5c4f2d(0x152))/0x6)+parseInt(_0x5c4f2d(0x14d))/0x7+-parseInt(_0x5c4f2d(0x167))/0x8*(parseInt(_0x5c4f2d(0x15c))/0x9)+parseInt(_0x5c4f2d(0x154))/0xa;if(_0x1e41f8===_0x5d0726)break;else _0x5f36c4['push'](_0x5f36c4['shift']());}catch(_0x41b8e4){_0x5f36c4['push'](_0x5f36c4['shift']());}}}(a329_0x4d16,0xccf55));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(_0x355455){const _0x2fed03=a329_0x4703,_0x230d1c=[];for(const [_0x5945bf,_0x4d8e95]of Object[_0x2fed03(0x162)](_0x355455)){if(_0x4d8e95===!![]){const _0x143cca=_0x5945bf[_0x2fed03(0x161)](/([A-Z])/g,'-$1')[_0x2fed03(0x14e)]();_0x230d1c[_0x2fed03(0x15a)](_0x143cca);}}return _0x230d1c;}function a329_0x4d16(){const _0x57e61d=['2172750lCluED','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','5906312EZbAMR','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','help','exit','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','startsWith','slice','2ljffBv','306278XVhUFq','toLowerCase','--help','has','add','65748MOdSCP','730rCfaUZ','36837290JlFwce','argv','(empty)','869100eRDijf','dangerously-bff-save','error','push','setLogPath','9kPUEuJ','from','length','cwd','log','replace','entries','1619868mkNREL','Error:\x20Unsupported\x20command:\x20'];a329_0x4d16=function(){return _0x57e61d;};return a329_0x4d16();}export function parseDynamicFlags(){const _0x16c307=a329_0x4703,_0x34cb1d=[];for(let _0x4e94c9=0x3;_0x4e94c9<process[_0x16c307(0x155)][_0x16c307(0x15e)];_0x4e94c9++){const _0x2dabab=process[_0x16c307(0x155)][_0x4e94c9];if(_0x2dabab&&_0x2dabab[_0x16c307(0x14a)]('--')){const _0x1cfe10=_0x2dabab[_0x16c307(0x14b)](0x2);_0x1cfe10&&!_0x1cfe10['includes']('=')&&_0x34cb1d[_0x16c307(0x15a)](_0x1cfe10);}}return _0x34cb1d;}export function getAllProvidedFlags(_0x9a54f3){const _0x53a9da=camelCaseFlagsToKebab(_0x9a54f3),_0x4162c0=parseDynamicFlags(),_0x1971a4=new Set([..._0x53a9da,..._0x4162c0]);return Array['from'](_0x1971a4);}export function normalizeLegacyBffSaveFlags(_0x573297){const _0x1e8657=a329_0x4703,_0x3357d3=new Set(_0x573297);return _0x3357d3[_0x1e8657(0x150)](_0x1e8657(0x158))&&_0x3357d3[_0x1e8657(0x151)]('enable-bff-save'),Array[_0x1e8657(0x15d)](_0x3357d3);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a329_0x4703(_0x1e846e,_0x5e4afd){_0x1e846e=_0x1e846e-0x149;const _0x4d16b2=a329_0x4d16();let _0x4703dd=_0x4d16b2[_0x1e846e];return _0x4703dd;}export async function skillsCommand(_0x5b8ae8,_0x7fbb9a,_0x2b1e48){const _0x37c10d=a329_0x4703;logger[_0x37c10d(0x15b)](process[_0x37c10d(0x15f)]());if(_0x2b1e48?.[_0x37c10d(0x169)]||_0x5b8ae8===_0x37c10d(0x14f)){showHelp();return;}console['error'](_0x37c10d(0x164)+(_0x5b8ae8||_0x37c10d(0x156))),console['log']('\x0aAvailable\x20commands:'),console['log']('\x20\x20'+CLI_BIN_NAME+_0x37c10d(0x166)),console[_0x37c10d(0x160)](''),console[_0x37c10d(0x160)]('Public\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0x37c10d(0x159)]('skill','Unsupported\x20command:\x20'+_0x5b8ae8),process[_0x37c10d(0x16a)](0x1);}function showHelp(){const _0xbe72df=a329_0x4703;console[_0xbe72df(0x160)](_0xbe72df(0x149)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0xbe72df(0x168));}
1
+ function a329_0x10b3(_0x310a4b,_0x2efaf8){_0x310a4b=_0x310a4b-0x18e;const _0x4d50ee=a329_0x4d50();let _0x10b3e0=_0x4d50ee[_0x310a4b];return _0x10b3e0;}(function(_0x2abac0,_0x44b78e){const _0x4a4711=a329_0x10b3,_0x57f06e=_0x2abac0();while(!![]){try{const _0x21368a=-parseInt(_0x4a4711(0x19f))/0x1*(parseInt(_0x4a4711(0x198))/0x2)+-parseInt(_0x4a4711(0x197))/0x3*(parseInt(_0x4a4711(0x1ab))/0x4)+parseInt(_0x4a4711(0x18f))/0x5*(parseInt(_0x4a4711(0x19a))/0x6)+-parseInt(_0x4a4711(0x193))/0x7+-parseInt(_0x4a4711(0x1a6))/0x8+-parseInt(_0x4a4711(0x1a0))/0x9*(parseInt(_0x4a4711(0x19b))/0xa)+parseInt(_0x4a4711(0x1ac))/0xb;if(_0x21368a===_0x44b78e)break;else _0x57f06e['push'](_0x57f06e['shift']());}catch(_0x57ac9d){_0x57f06e['push'](_0x57f06e['shift']());}}}(a329_0x4d50,0x726aa));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(_0xc01d3){const _0x372505=a329_0x10b3,_0x2d97ea=[];for(const [_0x1a8fc5,_0x443984]of Object['entries'](_0xc01d3)){if(_0x443984===!![]){const _0x895ed7=_0x1a8fc5['replace'](/([A-Z])/g,'-$1')[_0x372505(0x191)]();_0x2d97ea[_0x372505(0x192)](_0x895ed7);}}return _0x2d97ea;}export function parseDynamicFlags(){const _0x14b54e=a329_0x10b3,_0x23eec8=[];for(let _0x24fbcf=0x3;_0x24fbcf<process['argv']['length'];_0x24fbcf++){const _0x5d7ca4=process['argv'][_0x24fbcf];if(_0x5d7ca4&&_0x5d7ca4[_0x14b54e(0x1af)]('--')){const _0x5a9f03=_0x5d7ca4[_0x14b54e(0x1a5)](0x2);_0x5a9f03&&!_0x5a9f03[_0x14b54e(0x1a1)]('=')&&_0x23eec8[_0x14b54e(0x192)](_0x5a9f03);}}return _0x23eec8;}export function getAllProvidedFlags(_0x6b157d){const _0x2e0c19=a329_0x10b3,_0x4c487e=camelCaseFlagsToKebab(_0x6b157d),_0x1b34b2=parseDynamicFlags(),_0x3b4787=new Set([..._0x4c487e,..._0x1b34b2]);return Array[_0x2e0c19(0x1a3)](_0x3b4787);}export function normalizeLegacyBffSaveFlags(_0x1db008){const _0xca6151=a329_0x10b3,_0x190e7b=new Set(_0x1db008);return _0x190e7b[_0xca6151(0x1a9)](_0xca6151(0x199))&&_0x190e7b[_0xca6151(0x195)](_0xca6151(0x196)),Array[_0xca6151(0x1a3)](_0x190e7b);}function a329_0x4d50(){const _0x88118=['setLogPath','slice','5850128DhQPXR','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','\x0aAvailable\x20commands:','has','cwd','4pYMDFe','21801087NIigph','(empty)','log','startsWith','error','2175335lQkyCn','--help','toLowerCase','push','798623zLMpSf','skill','add','enable-bff-save','173583cNJSfh','42046cRMRtU','dangerously-bff-save','12ptdZjr','791380atsDou','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','help','29RhYfVk','99lRgVSY','includes','Public\x20Open\x20Skill\x20source:\x20','from'];a329_0x4d50=function(){return _0x88118;};return a329_0x4d50();}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x2113cd,_0x16148c,_0x55b75b){const _0x4de322=a329_0x10b3;logger[_0x4de322(0x1a4)](process[_0x4de322(0x1aa)]());if(_0x55b75b?.[_0x4de322(0x19e)]||_0x2113cd===_0x4de322(0x190)){showHelp();return;}console[_0x4de322(0x18e)]('Error:\x20Unsupported\x20command:\x20'+(_0x2113cd||_0x4de322(0x1ad))),console[_0x4de322(0x1ae)](_0x4de322(0x1a8)),console['log']('\x20\x20'+CLI_BIN_NAME+'\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill'),console[_0x4de322(0x1ae)](''),console[_0x4de322(0x1ae)](_0x4de322(0x1a2)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x4de322(0x18e)](_0x4de322(0x194),'Unsupported\x20command:\x20'+_0x2113cd),process['exit'](0x1);}function showHelp(){const _0x2ac63a=a329_0x10b3;console['log'](_0x2ac63a(0x1a7)+CLI_BIN_NAME+_0x2ac63a(0x19d)+SKILLS_INSTALL_COMMAND_LINE+_0x2ac63a(0x19c));}
@@ -1 +1 @@
1
- const a330_0x45d9c5=a330_0x8317;(function(_0x36c6f0,_0x594944){const _0x39a67b=a330_0x8317,_0x1cd95a=_0x36c6f0();while(!![]){try{const _0x4f89d6=-parseInt(_0x39a67b(0x15c))/0x1+parseInt(_0x39a67b(0x163))/0x2+-parseInt(_0x39a67b(0x154))/0x3*(parseInt(_0x39a67b(0x147))/0x4)+parseInt(_0x39a67b(0x153))/0x5*(-parseInt(_0x39a67b(0x160))/0x6)+parseInt(_0x39a67b(0x161))/0x7+parseInt(_0x39a67b(0x156))/0x8+parseInt(_0x39a67b(0x14d))/0x9;if(_0x4f89d6===_0x594944)break;else _0x1cd95a['push'](_0x1cd95a['shift']());}catch(_0x2b2472){_0x1cd95a['push'](_0x1cd95a['shift']());}}}(a330_0x3f0a,0x8118c));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=a330_0x45d9c5(0x16a);export const NPX_SKILLS_SUBCOMMAND_ADD=a330_0x45d9c5(0x164);export const NPX_SKILLS_FLAG_SKILL=a330_0x45d9c5(0x136);function a330_0x8317(_0x372e6b,_0x58c5ca){_0x372e6b=_0x372e6b-0x134;const _0x3f0a94=a330_0x3f0a();let _0x83176e=_0x3f0a94[_0x372e6b];return _0x83176e;}export const RABETBASE_SKILL_SOURCE=a330_0x45d9c5(0x142);export const RABETBASE_GLOBAL_SKILL_NAME=a330_0x45d9c5(0x159);function a330_0x3f0a(){const _0x20b6aa=['10728738cUkHfF','Installer\x20reported\x20','code','npx\x20failed\x20to\x20start','present','SKILL_NOT_INSTALLED','650595WdSXfH','1057779AnSHun','shortMessage','1028240fQFwez','match','exit\x20','rabetbase','stdout','npx','747200xnMhQV','PERMISSION_DENIED','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','presence','36CxLIpY','5704909kLaiZe','join','547376zDTboP','add','NPM_CONFIG_GLOBAL','\x22\x20install\x20state:\x20','\x20failed\x20target(s)','filter','CHILD_TERMINATED','skills@latest','state','exitCode','--skill','checked','stderr','signal','npm_config_global','skill','SPAWN_FAILED','EPERM','log','trim','EACCES','message','lovrabet/rabetbase','NPX_NOT_FOUND','stdio','unverifiable','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','4Rbshhp','reason','warn','!\x20Could\x20not\x20verify\x20\x22','ENOENT','pipe'];a330_0x3f0a=function(){return _0x20b6aa;};return a330_0x3f0a();}export const RABETBASE_SKILL_GIT_SOURCE=a330_0x45d9c5(0x146);export function resolveGlobalSkillName(_0x3bd1ac){const _0xa26b76=a330_0x45d9c5;switch(_0x3bd1ac[_0xa26b76(0x13f)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x43402d){const _0x489dbd=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x43402d&&_0x489dbd['push'](NPX_SKILLS_FLAG_SKILL,_0x43402d),_0x489dbd;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a330_0x45d9c5(0x15b),...buildNpxSkillsAddArgv()][a330_0x45d9c5(0x162)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a330_0x45d9c5(0x15b),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(_0x16dbaa,_0x54c186,_0x1dda01){return{'ok':![],'status':_0x54c186,'code':_0x16dbaa,'error':'['+_0x16dbaa+']\x20'+_0x1dda01};}function execaOptions(_0x389266,_0x28ff1a){const _0x13c780=a330_0x45d9c5,_0xa3bede={...process.env};return delete _0xa3bede[_0x13c780(0x13a)],delete _0xa3bede[_0x13c780(0x165)],{'cwd':_0x389266,'stdio':_0x28ff1a,'env':_0xa3bede,'extendEnv':![],'shell':![],'reject':![],..._0x28ff1a===_0x13c780(0x14c)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeExecaResult(_0x135cf0,_0x5be065,_0x4e0405){const _0x39df56=a330_0x45d9c5,_0x2e0636=[_0x135cf0['stdout']?String(_0x135cf0[_0x39df56(0x15a)]):'',_0x135cf0[_0x39df56(0x138)]?String(_0x135cf0[_0x39df56(0x138)]):'']['filter'](Boolean)[_0x39df56(0x162)]('\x0a')[_0x39df56(0x13f)](),_0x4639c9=_0x135cf0[_0x39df56(0x135)]??null;if(_0x135cf0[_0x39df56(0x14f)]){const _0x31de76=_0x135cf0[_0x39df56(0x14f)]===_0x39df56(0x14b)?_0x39df56(0x143):_0x135cf0[_0x39df56(0x14f)]===_0x39df56(0x13d)||_0x135cf0['code']===_0x39df56(0x140)?_0x39df56(0x15d):_0x39df56(0x13c);return failure(_0x31de76,_0x4639c9,_0x135cf0[_0x39df56(0x155)]??_0x135cf0['message']??_0x135cf0['code']);}if(_0x135cf0[_0x39df56(0x139)])return failure(_0x39df56(0x169),_0x4639c9,'npx\x20terminated\x20by\x20signal\x20'+_0x135cf0[_0x39df56(0x139)]);if(_0x135cf0['failed']&&_0x4639c9===null)return failure(_0x39df56(0x13c),_0x4639c9,_0x135cf0[_0x39df56(0x155)]??_0x135cf0[_0x39df56(0x141)]??_0x39df56(0x150));if(_0x4639c9!==0x0)return failure('CHILD_EXIT_NONZERO',_0x4639c9,_0x2e0636||_0x135cf0['shortMessage']||_0x39df56(0x158)+(_0x4639c9??'unknown'));const _0x5cd69b=_0x5be065?resolveInstalledSkill(_0x5be065,_0x4e0405):undefined,_0x3ad5d5=_0x2e0636[_0x39df56(0x157)](/Failed to install\s+(\d+)/i);if(_0x3ad5d5&&Number(_0x3ad5d5[0x1])>0x0){const _0x4d172e=_0x39df56(0x14e)+_0x3ad5d5[0x1]+_0x39df56(0x167)+(_0x2e0636?':\x0a'+_0x2e0636:'');if(_0x5cd69b?.[_0x39df56(0x134)]===_0x39df56(0x151))return{'ok':!![],'status':0x0,'partialFailure':{'count':Number(_0x3ad5d5[0x1]),'output':_0x2e0636}};return failure('INSTALL_PARTIAL',0x0,_0x4d172e);}if(_0x5cd69b){if(_0x5cd69b[_0x39df56(0x134)]==='absent')return failure(_0x39df56(0x152),0x0,'Skill\x20\x22'+_0x5be065+_0x39df56(0x15e)+_0x5cd69b[_0x39df56(0x137)][_0x39df56(0x162)](',\x20')+')');_0x5cd69b[_0x39df56(0x134)]===_0x39df56(0x145)&&console[_0x39df56(0x149)](_0x39df56(0x14a)+_0x5be065+_0x39df56(0x166)+_0x5cd69b[_0x39df56(0x148)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x5ae976,_0x1ca80c){const _0x568704=a330_0x45d9c5;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x206e3f=_0x1ca80c?.[_0x568704(0x144)]??'inherit',_0x4d4d80=buildNpxSkillsAddArgv(_0x1ca80c?.[_0x568704(0x13b)]),_0x29a081=[_0x568704(0x15b),..._0x4d4d80]['join']('\x20');console[_0x568704(0x13e)]('*\x20'+_0x29a081);const _0x3c6ab3=execaSync(_0x568704(0x15b),_0x4d4d80,execaOptions(_0x5ae976,_0x206e3f));return normalizeExecaResult(_0x3c6ab3);}export function runNpxSkillsAddGlobal(_0x9dd16a,_0x4f4307,_0x338a1e){const _0x5131f4=a330_0x45d9c5;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x45d234=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4f4307,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x57fbc8=[_0x5131f4(0x15b),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4f4307,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console[_0x5131f4(0x13e)]('*\x20'+_0x57fbc8);const _0x594123=execaSync(_0x5131f4(0x15b),_0x45d234,execaOptions(_0x9dd16a,_0x5131f4(0x14c))),_0x1cb675=normalizeExecaResult(_0x594123,_0x338a1e?.['expectedSkillName']??resolveGlobalSkillName(_0x4f4307),_0x338a1e?.[_0x5131f4(0x15f)]);if(_0x338a1e?.[_0x5131f4(0x144)]!==_0x5131f4(0x14c)&&!_0x1cb675['partialFailure']){const _0x3c5378=[_0x594123[_0x5131f4(0x15a)],_0x594123[_0x5131f4(0x138)]][_0x5131f4(0x168)](Boolean)['join']('\x0a')[_0x5131f4(0x13f)]();if(_0x3c5378)console[_0x5131f4(0x13e)](_0x3c5378);}return _0x1cb675;}
1
+ const a330_0x33a181=a330_0x5b24;(function(_0x15fcdd,_0x1f87d7){const _0x2102d4=a330_0x5b24,_0xff5c2e=_0x15fcdd();while(!![]){try{const _0x59c392=parseInt(_0x2102d4(0x162))/0x1+-parseInt(_0x2102d4(0x16f))/0x2+parseInt(_0x2102d4(0x152))/0x3+-parseInt(_0x2102d4(0x156))/0x4+parseInt(_0x2102d4(0x178))/0x5*(parseInt(_0x2102d4(0x163))/0x6)+parseInt(_0x2102d4(0x17a))/0x7+-parseInt(_0x2102d4(0x176))/0x8*(parseInt(_0x2102d4(0x164))/0x9);if(_0x59c392===_0x1f87d7)break;else _0xff5c2e['push'](_0xff5c2e['shift']());}catch(_0x1329ef){_0xff5c2e['push'](_0xff5c2e['shift']());}}}(a330_0x36d6,0x581c8));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='skills@latest';export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL=a330_0x33a181(0x179);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const RABETBASE_GLOBAL_SKILL_NAME=a330_0x33a181(0x159);export const RABETBASE_SKILL_GIT_SOURCE='git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git';export function resolveGlobalSkillName(_0x58868c){switch(_0x58868c['trim']()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x4e940b){const _0x165c92=a330_0x33a181,_0x336549=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x4e940b&&_0x336549[_0x165c92(0x17d)](NPX_SKILLS_FLAG_SKILL,_0x4e940b),_0x336549;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a330_0x33a181(0x157),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a330_0x33a181(0x15f)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function a330_0x36d6(){const _0x56e86d=['log','presence','EPERM','CHILD_EXIT_NONZERO','join','unverifiable','CHILD_TERMINATED','690925kFtVzp','3285336yQAjZO','15651EwllWB','expectedSkillName','absent','state','message','exit\x20','filter','stdout','exitCode','ENOENT','shortMessage','1291534TbSRbV','npx\x20terminated\x20by\x20signal\x20','SPAWN_FAILED','skill','warn','stdio','NPX_NOT_FOUND','2584iDUSMX','!\x20Could\x20not\x20verify\x20\x22','5KrUVtB','--skill','1229487ejmBIq','checked','trim','push','pipe','PERMISSION_DENIED','code','reason','Skill\x20\x22','present','1653123Fomwsv','stderr','EACCES','unknown','1587180rwGpDD','npx','signal','rabetbase','npx\x20failed\x20to\x20start'];a330_0x36d6=function(){return _0x56e86d;};return a330_0x36d6();}function failure(_0x59616c,_0x136164,_0x380092){return{'ok':![],'status':_0x136164,'code':_0x59616c,'error':'['+_0x59616c+']\x20'+_0x380092};}function execaOptions(_0x1f896a,_0x542b90){const _0x1ae250=a330_0x33a181,_0x4ef605={...process.env};return delete _0x4ef605['npm_config_global'],delete _0x4ef605['NPM_CONFIG_GLOBAL'],{'cwd':_0x1f896a,'stdio':_0x542b90,'env':_0x4ef605,'extendEnv':![],'shell':![],'reject':![],..._0x542b90===_0x1ae250(0x17e)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeExecaResult(_0x33b660,_0x7f09fd,_0x154968){const _0x53465c=a330_0x33a181,_0x4e0ee7=[_0x33b660[_0x53465c(0x16b)]?String(_0x33b660[_0x53465c(0x16b)]):'',_0x33b660['stderr']?String(_0x33b660[_0x53465c(0x153)]):''][_0x53465c(0x16a)](Boolean)['join']('\x0a')['trim'](),_0x17c831=_0x33b660[_0x53465c(0x16c)]??null;if(_0x33b660[_0x53465c(0x14e)]){const _0x3eef47=_0x33b660[_0x53465c(0x14e)]===_0x53465c(0x16d)?_0x53465c(0x175):_0x33b660[_0x53465c(0x14e)]===_0x53465c(0x15d)||_0x33b660[_0x53465c(0x14e)]===_0x53465c(0x154)?_0x53465c(0x17f):_0x53465c(0x171);return failure(_0x3eef47,_0x17c831,_0x33b660[_0x53465c(0x16e)]??_0x33b660['message']??_0x33b660[_0x53465c(0x14e)]);}if(_0x33b660[_0x53465c(0x158)])return failure(_0x53465c(0x161),_0x17c831,_0x53465c(0x170)+_0x33b660[_0x53465c(0x158)]);if(_0x33b660['failed']&&_0x17c831===null)return failure(_0x53465c(0x171),_0x17c831,_0x33b660[_0x53465c(0x16e)]??_0x33b660[_0x53465c(0x168)]??_0x53465c(0x15a));if(_0x17c831!==0x0)return failure(_0x53465c(0x15e),_0x17c831,_0x4e0ee7||_0x33b660[_0x53465c(0x16e)]||_0x53465c(0x169)+(_0x17c831??_0x53465c(0x155)));const _0x311c3a=_0x7f09fd?resolveInstalledSkill(_0x7f09fd,_0x154968):undefined,_0x193a24=_0x4e0ee7['match'](/Failed to install\s+(\d+)/i);if(_0x193a24&&Number(_0x193a24[0x1])>0x0){const _0x179778='Installer\x20reported\x20'+_0x193a24[0x1]+'\x20failed\x20target(s)'+(_0x4e0ee7?':\x0a'+_0x4e0ee7:'');if(_0x311c3a?.[_0x53465c(0x167)]===_0x53465c(0x151))return{'ok':!![],'status':0x0,'partialFailure':{'count':Number(_0x193a24[0x1]),'output':_0x4e0ee7}};return failure('INSTALL_PARTIAL',0x0,_0x179778);}if(_0x311c3a){if(_0x311c3a[_0x53465c(0x167)]===_0x53465c(0x166))return failure('SKILL_NOT_INSTALLED',0x0,_0x53465c(0x150)+_0x7f09fd+'\x22\x20not\x20found\x20after\x20install\x20(checked\x20'+_0x311c3a[_0x53465c(0x17b)][_0x53465c(0x15f)](',\x20')+')');_0x311c3a['state']===_0x53465c(0x160)&&console[_0x53465c(0x173)](_0x53465c(0x177)+_0x7f09fd+'\x22\x20install\x20state:\x20'+_0x311c3a[_0x53465c(0x14f)]);}return{'ok':!![],'status':0x0};}function a330_0x5b24(_0x3f8e1f,_0x147046){_0x3f8e1f=_0x3f8e1f-0x14e;const _0x36d6b0=a330_0x36d6();let _0x5b249c=_0x36d6b0[_0x3f8e1f];return _0x5b249c;}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x390ccd,_0x25ff18){const _0xb10ab9=a330_0x33a181;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xbe38d2=_0x25ff18?.[_0xb10ab9(0x174)]??'inherit',_0x377abe=buildNpxSkillsAddArgv(_0x25ff18?.[_0xb10ab9(0x172)]),_0x241f8c=[_0xb10ab9(0x157),..._0x377abe]['join']('\x20');console[_0xb10ab9(0x15b)]('*\x20'+_0x241f8c);const _0x2c0a8f=execaSync(_0xb10ab9(0x157),_0x377abe,execaOptions(_0x390ccd,_0xbe38d2));return normalizeExecaResult(_0x2c0a8f);}export function runNpxSkillsAddGlobal(_0x58b19e,_0x592a97,_0x1ad94a){const _0x135bc2=a330_0x33a181;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x66e1ab=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x592a97,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x2c373b=[_0x135bc2(0x157),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x592a97,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console[_0x135bc2(0x15b)]('*\x20'+_0x2c373b);const _0x588f08=execaSync('npx',_0x66e1ab,execaOptions(_0x58b19e,_0x135bc2(0x17e))),_0xd6c396=normalizeExecaResult(_0x588f08,_0x1ad94a?.[_0x135bc2(0x165)]??resolveGlobalSkillName(_0x592a97),_0x1ad94a?.[_0x135bc2(0x15c)]);if(_0x1ad94a?.['stdio']!=='pipe'&&!_0xd6c396['partialFailure']){const _0x48002a=[_0x588f08['stdout'],_0x588f08[_0x135bc2(0x153)]]['filter'](Boolean)[_0x135bc2(0x15f)]('\x0a')[_0x135bc2(0x17c)]();if(_0x48002a)console[_0x135bc2(0x15b)](_0x48002a);}return _0xd6c396;}
@@ -1 +1 @@
1
- function a331_0x3135(_0x247099,_0x2dc145){_0x247099=_0x247099-0x1e8;const _0x2d4cbb=a331_0x2d4c();let _0x31351c=_0x2d4cbb[_0x247099];return _0x31351c;}const a331_0x5b13dd=a331_0x3135;(function(_0x34becb,_0x14d510){const _0xb4f9=a331_0x3135,_0xd113b=_0x34becb();while(!![]){try{const _0xdd2978=-parseInt(_0xb4f9(0x1f8))/0x1*(parseInt(_0xb4f9(0x207))/0x2)+-parseInt(_0xb4f9(0x203))/0x3+-parseInt(_0xb4f9(0x1ff))/0x4*(-parseInt(_0xb4f9(0x1f5))/0x5)+parseInt(_0xb4f9(0x209))/0x6*(-parseInt(_0xb4f9(0x1fd))/0x7)+parseInt(_0xb4f9(0x1ee))/0x8+-parseInt(_0xb4f9(0x1e8))/0x9*(parseInt(_0xb4f9(0x206))/0xa)+parseInt(_0xb4f9(0x1f6))/0xb;if(_0xdd2978===_0x14d510)break;else _0xd113b['push'](_0xd113b['shift']());}catch(_0x9d8e06){_0xd113b['push'](_0xd113b['shift']());}}}(a331_0x2d4c,0xe02f8));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a331_0x5b13dd(0x1eb),a331_0x5b13dd(0x1ef));function a331_0x2d4c(){const _0x41339b=['find','\x20is\x20unreadable:\x20','reason','119LwKRXW','skills','6818612LYzBvk','kind','\x20uses\x20unsupported\x20version\x20','\x20has\x20no\x20skills\x20map','4971222NNgFhb','lockFile','includes','50GIXJNg','1306UILBvA','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','64164EZCsvk','2261529zrHroP','\x20records\x20\x22','unverifiable','.agents','.claude','SKILL.md','11245328ECHnfg','.skill-lock.json','globalSkillsDirs','number','recorded','not-recorded','unusable','5NWRLfX','22369215SAuEIv','object','1731CLLYfC','absent'];a331_0x2d4c=function(){return _0x41339b;};return a331_0x2d4c();}export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a331_0x5b13dd(0x1eb),'skills'),join(a331_0x5b13dd(0x1ec),a331_0x5b13dd(0x1fe))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x41cd61,_0x591ede){const _0x3aa3a7=a331_0x5b13dd;if(!existsSync(_0x41cd61))return{'kind':_0x3aa3a7(0x1f3)};let _0x18876b;try{_0x18876b=JSON['parse'](readFileSync(_0x41cd61,'utf8'));}catch(_0x217843){return{'kind':_0x3aa3a7(0x1f4),'reason':_0x41cd61+_0x3aa3a7(0x1fb)+_0x217843['message']};}const _0x1ef8e4=_0x18876b;if(typeof _0x1ef8e4?.['version']!==_0x3aa3a7(0x1f1)||!SUPPORTED_LOCK_VERSIONS[_0x3aa3a7(0x205)](_0x1ef8e4['version']))return{'kind':'unusable','reason':_0x41cd61+_0x3aa3a7(0x201)+String(_0x1ef8e4?.['version'])};if(!_0x1ef8e4[_0x3aa3a7(0x1fe)]||typeof _0x1ef8e4[_0x3aa3a7(0x1fe)]!==_0x3aa3a7(0x1f7))return{'kind':_0x3aa3a7(0x1f4),'reason':_0x41cd61+_0x3aa3a7(0x202)};return _0x1ef8e4['skills'][_0x591ede]?{'kind':_0x3aa3a7(0x1f2)}:{'kind':_0x3aa3a7(0x1f3)};}export function resolveInstalledSkill(_0x36cc47,_0x3a6423){const _0x931205=a331_0x5b13dd,_0x10c5ad=_0x3a6423?.['home']??homedir(),_0x1c4112=_0x3a6423?.[_0x931205(0x1f0)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS['map'](_0x2330af=>join(_0x10c5ad,_0x2330af)),_0x391972=_0x3a6423?.[_0x931205(0x204)]??join(_0x10c5ad,SKILL_LOCK_RELATIVE_PATH),_0x57e6f4=_0x1c4112['map'](_0xa17265=>join(_0xa17265,_0x36cc47,_0x931205(0x1ed))),_0x24aebb=_0x57e6f4[_0x931205(0x1fa)](_0x5e0234=>existsSync(_0x5e0234));if(_0x24aebb)return{'state':'present','path':_0x24aebb};const _0x2018bb=readLockLookup(_0x391972,_0x36cc47);if(_0x2018bb[_0x931205(0x200)]==='unusable')return{'state':_0x931205(0x1ea),'reason':_0x2018bb[_0x931205(0x1fc)]};if(_0x2018bb[_0x931205(0x200)]===_0x931205(0x1f2))return{'state':_0x931205(0x1ea),'reason':_0x391972+_0x931205(0x1e9)+_0x36cc47+_0x931205(0x208)+('('+_0x57e6f4['join'](',\x20')+')')};return{'state':_0x931205(0x1f9),'checked':_0x57e6f4};}
1
+ const a331_0x3f0c65=a331_0x43a5;(function(_0x4c4729,_0x19f87b){const _0x3e7320=a331_0x43a5,_0x5eae36=_0x4c4729();while(!![]){try{const _0xa424e6=parseInt(_0x3e7320(0xf9))/0x1*(-parseInt(_0x3e7320(0xfb))/0x2)+-parseInt(_0x3e7320(0xfa))/0x3+-parseInt(_0x3e7320(0x109))/0x4*(parseInt(_0x3e7320(0x112))/0x5)+-parseInt(_0x3e7320(0x104))/0x6+-parseInt(_0x3e7320(0x105))/0x7+parseInt(_0x3e7320(0xf2))/0x8*(-parseInt(_0x3e7320(0x106))/0x9)+parseInt(_0x3e7320(0xf3))/0xa;if(_0xa424e6===_0x19f87b)break;else _0x5eae36['push'](_0x5eae36['shift']());}catch(_0x48c034){_0x5eae36['push'](_0x5eae36['shift']());}}}(a331_0x2621,0xbe9ef));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';function a331_0x2621(){const _0x4b4342=['not-recorded','join','.skill-lock.json','number','kind','4541676diHLQS','1494311yoHjAH','9PayBKF','absent','message','4435828dmcDBq','SKILL.md','utf8','.agents','skills','version','.claude','lockFile','reason','5YdeFJE','map','\x20is\x20unreadable:\x20','6818696FJuiMF','43398690HsdrXl','includes','recorded','globalSkillsDirs','unverifiable','\x20has\x20no\x20skills\x20map','209501HaDkKI','1253616UnlHXN','2GXrVGO','unusable','present','home'];a331_0x2621=function(){return _0x4b4342;};return a331_0x2621();}import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a331_0x3f0c65(0x10c),a331_0x3f0c65(0x101));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a331_0x3f0c65(0x10c),'skills'),join(a331_0x3f0c65(0x10f),'skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function a331_0x43a5(_0x2278f5,_0x5e20eb){_0x2278f5=_0x2278f5-0xf0;const _0x2621e0=a331_0x2621();let _0x43a59e=_0x2621e0[_0x2278f5];return _0x43a59e;}function readLockLookup(_0x4ece31,_0x1bef18){const _0x29d19b=a331_0x3f0c65;if(!existsSync(_0x4ece31))return{'kind':'not-recorded'};let _0x1dc1b6;try{_0x1dc1b6=JSON['parse'](readFileSync(_0x4ece31,_0x29d19b(0x10b)));}catch(_0x32b069){return{'kind':_0x29d19b(0xfc),'reason':_0x4ece31+_0x29d19b(0xf1)+_0x32b069[_0x29d19b(0x108)]};}const _0x34bda4=_0x1dc1b6;if(typeof _0x34bda4?.[_0x29d19b(0x10e)]!==_0x29d19b(0x102)||!SUPPORTED_LOCK_VERSIONS[_0x29d19b(0xf4)](_0x34bda4[_0x29d19b(0x10e)]))return{'kind':_0x29d19b(0xfc),'reason':_0x4ece31+'\x20uses\x20unsupported\x20version\x20'+String(_0x34bda4?.[_0x29d19b(0x10e)])};if(!_0x34bda4[_0x29d19b(0x10d)]||typeof _0x34bda4[_0x29d19b(0x10d)]!=='object')return{'kind':_0x29d19b(0xfc),'reason':_0x4ece31+_0x29d19b(0xf8)};return _0x34bda4[_0x29d19b(0x10d)][_0x1bef18]?{'kind':_0x29d19b(0xf5)}:{'kind':_0x29d19b(0xff)};}export function resolveInstalledSkill(_0x28576b,_0x3f7bcf){const _0x1dba9a=a331_0x3f0c65,_0x454095=_0x3f7bcf?.[_0x1dba9a(0xfe)]??homedir(),_0x1440a8=_0x3f7bcf?.[_0x1dba9a(0xf6)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS['map'](_0x8ece1=>join(_0x454095,_0x8ece1)),_0x4ccdbf=_0x3f7bcf?.[_0x1dba9a(0x110)]??join(_0x454095,SKILL_LOCK_RELATIVE_PATH),_0x7cd47d=_0x1440a8[_0x1dba9a(0xf0)](_0x1054ff=>join(_0x1054ff,_0x28576b,_0x1dba9a(0x10a))),_0x19fe54=_0x7cd47d['find'](_0x1875ae=>existsSync(_0x1875ae));if(_0x19fe54)return{'state':_0x1dba9a(0xfd),'path':_0x19fe54};const _0x534db0=readLockLookup(_0x4ccdbf,_0x28576b);if(_0x534db0[_0x1dba9a(0x103)]===_0x1dba9a(0xfc))return{'state':_0x1dba9a(0xf7),'reason':_0x534db0[_0x1dba9a(0x111)]};if(_0x534db0[_0x1dba9a(0x103)]===_0x1dba9a(0xf5))return{'state':'unverifiable','reason':_0x4ccdbf+'\x20records\x20\x22'+_0x28576b+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0x7cd47d[_0x1dba9a(0x100)](',\x20')+')')};return{'state':_0x1dba9a(0x107),'checked':_0x7cd47d};}
@@ -1 +1 @@
1
- (function(_0x4f21d9,_0x2f6069){const _0x3fb918=a332_0xa858,_0x435541=_0x4f21d9();while(!![]){try{const _0x14ec96=-parseInt(_0x3fb918(0x15a))/0x1*(parseInt(_0x3fb918(0x15b))/0x2)+parseInt(_0x3fb918(0x15d))/0x3+-parseInt(_0x3fb918(0x15c))/0x4+-parseInt(_0x3fb918(0x150))/0x5+-parseInt(_0x3fb918(0x151))/0x6*(-parseInt(_0x3fb918(0x155))/0x7)+parseInt(_0x3fb918(0x154))/0x8+-parseInt(_0x3fb918(0x160))/0x9*(-parseInt(_0x3fb918(0x15e))/0xa);if(_0x14ec96===_0x2f6069)break;else _0x435541['push'](_0x435541['shift']());}catch(_0x2aa692){_0x435541['push'](_0x435541['shift']());}}}(a332_0xfbe7,0x758fb));function a332_0xfbe7(){const _0x5c9fa9=['213340qYvwGi','559596csZdKq','message','command','6504464WBVxmy','14zNjTfB','stringify','error','test','some','24676mDFlqL','56Yvmgdk','1894428vPQJBk','321129MJKUfs','447770WwdePd','durationMs','117xiSpDX','entries'];a332_0xfbe7=function(){return _0x5c9fa9;};return a332_0xfbe7();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a332_0xa858(_0x11b2f5,_0x4c93a8){_0x11b2f5=_0x11b2f5-0x14f;const _0xfbe76b=a332_0xfbe7();let _0xa85831=_0xfbe76b[_0x11b2f5];return _0xa85831;}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x6651b4){const _0x37af4b=a332_0xa858;return SENSITIVE_PATTERNS[_0x37af4b(0x159)](_0x137ff8=>_0x137ff8[_0x37af4b(0x158)](_0x6651b4));}function sanitizeFlags(_0x4d1999){const _0x248e7f=a332_0xa858,_0xf29e36={};for(const [_0x3d18c9,_0x86c4ef]of Object[_0x248e7f(0x14f)](_0x4d1999)){isSensitiveKey(_0x3d18c9)?_0xf29e36[_0x3d18c9]=_0x86c4ef!=null&&_0x86c4ef!==''?'[REDACTED]':_0x86c4ef:_0xf29e36[_0x3d18c9]=_0x86c4ef;}return _0xf29e36;}export async function reportCommandTrace(_0x3813be){const _0x1f5edc=a332_0xa858;try{const _0x143e13=sanitizeFlags(_0x3813be['flags']);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x3813be['service'],'command.name':_0x3813be[_0x1f5edc(0x153)],'command.flags':JSON[_0x1f5edc(0x156)](_0x143e13),..._0x3813be[_0x1f5edc(0x15f)]!=null?{'command.duration_ms':_0x3813be[_0x1f5edc(0x15f)]}:{},..._0x3813be['error']?{'command.error':_0x3813be[_0x1f5edc(0x157)]instanceof Error?_0x3813be['error'][_0x1f5edc(0x152)]:String(_0x3813be[_0x1f5edc(0x157)])}:{}}});}catch{}}
1
+ function a332_0x12ee(){const _0x2ce7f1=['1832920QzpDWq','4cNuqrW','durationMs','stringify','some','flags','5818044vSXlRR','586560rPKmdd','53839angKdD','entries','8cPwQpE','6816523hOmiXM','12903489HlmDcp','service','command','rabetbase.command','[REDACTED]','test','error','1912166sPwwgx'];a332_0x12ee=function(){return _0x2ce7f1;};return a332_0x12ee();}(function(_0x451d15,_0xa72df5){const _0x33211e=a332_0x155f,_0x2f989f=_0x451d15();while(!![]){try{const _0x221dc9=-parseInt(_0x33211e(0x104))/0x1+-parseInt(_0x33211e(0x10f))/0x2+parseInt(_0x33211e(0x103))/0x3*(-parseInt(_0x33211e(0x111))/0x4)+parseInt(_0x33211e(0x110))/0x5+parseInt(_0x33211e(0x102))/0x6+-parseInt(_0x33211e(0x107))/0x7*(parseInt(_0x33211e(0x106))/0x8)+parseInt(_0x33211e(0x108))/0x9;if(_0x221dc9===_0xa72df5)break;else _0x2f989f['push'](_0x2f989f['shift']());}catch(_0x262b19){_0x2f989f['push'](_0x2f989f['shift']());}}}(a332_0x12ee,0x9039c));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a332_0x155f(_0xd81634,_0x5bc166){_0xd81634=_0xd81634-0x100;const _0x12eea5=a332_0x12ee();let _0x155f19=_0x12eea5[_0xd81634];return _0x155f19;}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x2aaee9){const _0x7cf03=a332_0x155f;return SENSITIVE_PATTERNS[_0x7cf03(0x100)](_0x5063bf=>_0x5063bf[_0x7cf03(0x10d)](_0x2aaee9));}function sanitizeFlags(_0xfb1dc1){const _0x2e2e66=a332_0x155f,_0x46180b={};for(const [_0x51dc2f,_0x2c5ef2]of Object[_0x2e2e66(0x105)](_0xfb1dc1)){isSensitiveKey(_0x51dc2f)?_0x46180b[_0x51dc2f]=_0x2c5ef2!=null&&_0x2c5ef2!==''?_0x2e2e66(0x10c):_0x2c5ef2:_0x46180b[_0x51dc2f]=_0x2c5ef2;}return _0x46180b;}export async function reportCommandTrace(_0x32a2f5){const _0x4dedb6=a332_0x155f;try{const _0xb683e8=sanitizeFlags(_0x32a2f5[_0x4dedb6(0x101)]);await sendCliTraceLog({'spanName':_0x4dedb6(0x10b),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x32a2f5[_0x4dedb6(0x109)],'command.name':_0x32a2f5[_0x4dedb6(0x10a)],'command.flags':JSON[_0x4dedb6(0x113)](_0xb683e8),..._0x32a2f5[_0x4dedb6(0x112)]!=null?{'command.duration_ms':_0x32a2f5[_0x4dedb6(0x112)]}:{},..._0x32a2f5[_0x4dedb6(0x10e)]?{'command.error':_0x32a2f5[_0x4dedb6(0x10e)]instanceof Error?_0x32a2f5['error']['message']:String(_0x32a2f5[_0x4dedb6(0x10e)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a333_0x52c0(){var _0x198b39=['679797gCwtuy','Failed\x20to\x20report\x20CLI\x20help\x20trace:','865600PTmdKg','80124bRztIY','144996eCxqBd','466782mXBGpp','cli.help','10DrHENG','12sTQYDi','616088DHpRON','service','7dXQNGa','220653BLCJuD','error'];a333_0x52c0=function(){return _0x198b39;};return a333_0x52c0();}(function(_0x49d079,_0x82fb49){var _0x8876e9=a333_0x1b5f,_0x24d3a4=_0x49d079();while(!![]){try{var _0x39313a=parseInt(_0x8876e9(0x123))/0x1+parseInt(_0x8876e9(0x12a))/0x2+-parseInt(_0x8876e9(0x129))/0x3*(parseInt(_0x8876e9(0x12d))/0x4)+-parseInt(_0x8876e9(0x127))/0x5+-parseInt(_0x8876e9(0x128))/0x6+-parseInt(_0x8876e9(0x122))/0x7*(-parseInt(_0x8876e9(0x12e))/0x8)+parseInt(_0x8876e9(0x125))/0x9*(-parseInt(_0x8876e9(0x12c))/0xa);if(_0x39313a===_0x82fb49)break;else _0x24d3a4['push'](_0x24d3a4['shift']());}catch(_0x56c29f){_0x24d3a4['push'](_0x24d3a4['shift']());}}}(a333_0x52c0,0x1e494));function a333_0x1b5f(_0x459ef2,_0x4fb691){_0x459ef2=_0x459ef2-0x122;var _0x52c0fa=a333_0x52c0();var _0x1b5f00=_0x52c0fa[_0x459ef2];return _0x1b5f00;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x19a10c,_0x3c38b0){var _0xd942dd=a333_0x1b5f;try{await sendCliTraceLog({'spanName':_0xd942dd(0x12b),'logData':{'rabetbase.help.kind':_0x19a10c,..._0x3c38b0?.[_0xd942dd(0x12f)]&&{'rabetbase.help.service':_0x3c38b0[_0xd942dd(0x12f)]}}});}catch(_0x2c3e26){console[_0xd942dd(0x124)](_0xd942dd(0x126),_0x2c3e26);}}
1
+ (function(_0xbb7673,_0x536abf){var _0xb6af32=a333_0x5d9a,_0x462a5a=_0xbb7673();while(!![]){try{var _0x584f10=parseInt(_0xb6af32(0x121))/0x1*(parseInt(_0xb6af32(0x11c))/0x2)+parseInt(_0xb6af32(0x119))/0x3*(parseInt(_0xb6af32(0x118))/0x4)+-parseInt(_0xb6af32(0x122))/0x5*(-parseInt(_0xb6af32(0x11e))/0x6)+parseInt(_0xb6af32(0x11a))/0x7+-parseInt(_0xb6af32(0x123))/0x8+-parseInt(_0xb6af32(0x124))/0x9+-parseInt(_0xb6af32(0x11b))/0xa;if(_0x584f10===_0x536abf)break;else _0x462a5a['push'](_0x462a5a['shift']());}catch(_0x3322d9){_0x462a5a['push'](_0x462a5a['shift']());}}}(a333_0x4ce6,0x774d7));function a333_0x4ce6(){var _0x1910a2=['19307800yOQNFF','1351470xodEem','service','84kDoSAm','Failed\x20to\x20report\x20CLI\x20help\x20trace:','error','1HwcMLk','348375YMScTT','809320qCrhRM','2356848SNfWGX','68IUtoAa','33006iPebwO','6609827TUOpof'];a333_0x4ce6=function(){return _0x1910a2;};return a333_0x4ce6();}function a333_0x5d9a(_0x2ae5aa,_0x20f69d){_0x2ae5aa=_0x2ae5aa-0x118;var _0x4ce644=a333_0x4ce6();var _0x5d9ae1=_0x4ce644[_0x2ae5aa];return _0x5d9ae1;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x330cbd,_0x505142){var _0x3efe81=a333_0x5d9a;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x330cbd,..._0x505142?.[_0x3efe81(0x11d)]&&{'rabetbase.help.service':_0x505142['service']}}});}catch(_0x533f6a){console[_0x3efe81(0x120)](_0x3efe81(0x11f),_0x533f6a);}}
@@ -1 +1 @@
1
- (function(_0x4475eb,_0x4035fc){const _0x559d8d=a334_0x3234,_0x116cc=_0x4475eb();while(!![]){try{const _0x439506=-parseInt(_0x559d8d(0xad))/0x1+-parseInt(_0x559d8d(0xb8))/0x2*(-parseInt(_0x559d8d(0xb4))/0x3)+-parseInt(_0x559d8d(0xab))/0x4+-parseInt(_0x559d8d(0xaa))/0x5+-parseInt(_0x559d8d(0xb1))/0x6+-parseInt(_0x559d8d(0xb2))/0x7*(parseInt(_0x559d8d(0xae))/0x8)+parseInt(_0x559d8d(0xaf))/0x9;if(_0x439506===_0x4035fc)break;else _0x116cc['push'](_0x116cc['shift']());}catch(_0x35c5d5){_0x116cc['push'](_0x116cc['shift']());}}}(a334_0x3821,0x5c30c));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';function a334_0x3234(_0x4f7781,_0x49e5a4){_0x4f7781=_0x4f7781-0xaa;const _0x382145=a334_0x3821();let _0x32345d=_0x382145[_0x4f7781];return _0x32345d;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x335a75=a334_0x3234,_0x134619=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0xdd12ca=_0x134619?.[_0x335a75(0xb9)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x335a75(0xb5)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x335a75(0xac):'production')}),setUserContext({'id':_0xdd12ca?.['id'],'username':_0xdd12ca?.[_0x335a75(0xb0)],'nickname':_0xdd12ca?.[_0x335a75(0xb7)],'email':_0xdd12ca?.[_0x335a75(0xb6)],'tenantCode':_0xdd12ca?.[_0x335a75(0xb3)]?.['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x134619;}function a334_0x3821(){const _0x102fa9=['user','2732325FtTBAT','2900564gPGpVm','daily','342031wIJnlD','16avCesx','18617265kLBoaq','username','1794774faIEAX','1817018VtBMxj','tenant','3ArPOjf','unknown','email','nickname','1481882xELhkX'];a334_0x3821=function(){return _0x102fa9;};return a334_0x3821();}
1
+ (function(_0x22edca,_0x28e2e1){const _0x1bb0d5=a334_0x31f3,_0x2e85a1=_0x22edca();while(!![]){try{const _0x135229=-parseInt(_0x1bb0d5(0x125))/0x1+-parseInt(_0x1bb0d5(0x11f))/0x2+-parseInt(_0x1bb0d5(0x122))/0x3*(parseInt(_0x1bb0d5(0x121))/0x4)+parseInt(_0x1bb0d5(0x128))/0x5+-parseInt(_0x1bb0d5(0x12a))/0x6*(-parseInt(_0x1bb0d5(0x127))/0x7)+-parseInt(_0x1bb0d5(0x11c))/0x8+parseInt(_0x1bb0d5(0x11e))/0x9*(parseInt(_0x1bb0d5(0x11d))/0xa);if(_0x135229===_0x28e2e1)break;else _0x2e85a1['push'](_0x2e85a1['shift']());}catch(_0x5da328){_0x2e85a1['push'](_0x2e85a1['shift']());}}}(a334_0x4bd5,0xde43a));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';function a334_0x31f3(_0x416613,_0x338896){_0x416613=_0x416613-0x11c;const _0x4bd5af=a334_0x4bd5();let _0x31f343=_0x4bd5af[_0x416613];return _0x31f343;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x353ebd=a334_0x31f3,_0x20865f=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x5182bb=_0x20865f?.[_0x353ebd(0x124)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x353ebd(0x123):'production')}),setUserContext({'id':_0x5182bb?.['id'],'username':_0x5182bb?.[_0x353ebd(0x129)],'nickname':_0x5182bb?.[_0x353ebd(0x120)],'email':_0x5182bb?.[_0x353ebd(0x126)],'tenantCode':_0x5182bb?.['tenant']?.['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x20865f;}function a334_0x4bd5(){const _0x498cc5=['daily','user','1464572VzqFfY','email','7328629UBjPzR','3815105LUjNOc','username','6WTIhmP','2045640sRyjlG','10HAnyxU','34720461haURUU','3227436IxWQjw','nickname','15904yMMSOn','1074NUFhZP'];a334_0x4bd5=function(){return _0x498cc5;};return a334_0x4bd5();}
@@ -1 +1 @@
1
- function a335_0x251d(_0x4c137f,_0x37009f){_0x4c137f=_0x4c137f-0x19e;const _0x3f2722=a335_0x3f27();let _0x251de5=_0x3f2722[_0x4c137f];return _0x251de5;}(function(_0x12a8da,_0x237858){const _0x1149ad=a335_0x251d,_0x59e515=_0x12a8da();while(!![]){try{const _0x520fc2=parseInt(_0x1149ad(0x1ab))/0x1+-parseInt(_0x1149ad(0x1a3))/0x2*(parseInt(_0x1149ad(0x1a8))/0x3)+-parseInt(_0x1149ad(0x1a0))/0x4+-parseInt(_0x1149ad(0x1a4))/0x5+parseInt(_0x1149ad(0x1a1))/0x6*(parseInt(_0x1149ad(0x1a6))/0x7)+-parseInt(_0x1149ad(0x19f))/0x8+-parseInt(_0x1149ad(0x1aa))/0x9*(-parseInt(_0x1149ad(0x1a2))/0xa);if(_0x520fc2===_0x237858)break;else _0x59e515['push'](_0x59e515['shift']());}catch(_0x71a7aa){_0x59e515['push'](_0x59e515['shift']());}}}(a335_0x3f27,0xaa6e4));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a335_0x3f27(){const _0x36d6cf=['SIGINT','7280848qpDPph','4400668qxvSXZ','948ZrbwIK','285030Lphjme','15662zFguRT','2248035jNvAog','then','51289QWLEAv','once','423klfAjy','exit','729QtZzef','795726JVupAd','beforeExit'];a335_0x3f27=function(){return _0x36d6cf;};return a335_0x3f27();}export function registerOtelShutdownOnExit(){const _0x1965e9=a335_0x251d;process[_0x1965e9(0x1a7)](_0x1965e9(0x1ac),()=>{void flushOtelNodeIfUsed();});const _0x3ff088=()=>{const _0x3b22ab=_0x1965e9;void flushOtelNodeIfUsed()[_0x3b22ab(0x1a5)](()=>process[_0x3b22ab(0x1a9)](0x0));};process['once'](_0x1965e9(0x19e),_0x3ff088),process['once']('SIGTERM',_0x3ff088);}export async function exitWithOtelShutdown(_0x135794){const _0x22a61d=a335_0x251d;await flushOtelNodeIfUsed(),process[_0x22a61d(0x1a9)](_0x135794);}
1
+ (function(_0x12846b,_0x32a9e3){const _0x6f2438=a335_0x239a,_0x36e132=_0x12846b();while(!![]){try{const _0x11b0f6=-parseInt(_0x6f2438(0x1ce))/0x1+parseInt(_0x6f2438(0x1d4))/0x2*(parseInt(_0x6f2438(0x1cf))/0x3)+-parseInt(_0x6f2438(0x1d6))/0x4*(parseInt(_0x6f2438(0x1d8))/0x5)+-parseInt(_0x6f2438(0x1d5))/0x6+parseInt(_0x6f2438(0x1d2))/0x7+-parseInt(_0x6f2438(0x1cc))/0x8*(-parseInt(_0x6f2438(0x1d1))/0x9)+parseInt(_0x6f2438(0x1ca))/0xa*(parseInt(_0x6f2438(0x1d3))/0xb);if(_0x11b0f6===_0x32a9e3)break;else _0x36e132['push'](_0x36e132['shift']());}catch(_0x3532a2){_0x36e132['push'](_0x36e132['shift']());}}}(a335_0x4e51,0xa502e));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a335_0x239a(_0x1958bc,_0x1e7b95){_0x1958bc=_0x1958bc-0x1ca;const _0x4e519a=a335_0x4e51();let _0x239ada=_0x4e519a[_0x1958bc];return _0x239ada;}export function registerOtelShutdownOnExit(){const _0x1e95a4=a335_0x239a;process['once'](_0x1e95a4(0x1cd),()=>{void flushOtelNodeIfUsed();});const _0xa2cf80=()=>{const _0x18a393=_0x1e95a4;void flushOtelNodeIfUsed()['then'](()=>process[_0x18a393(0x1d0)](0x0));};process[_0x1e95a4(0x1d7)]('SIGINT',_0xa2cf80),process['once'](_0x1e95a4(0x1cb),_0xa2cf80);}export async function exitWithOtelShutdown(_0x255b85){await flushOtelNodeIfUsed(),process['exit'](_0x255b85);}function a335_0x4e51(){const _0xb53a15=['2479015vdTVJV','3531cZChvp','772ePafrt','481008JIKCHK','25644CphQFr','once','295grvJON','23710XqovvV','SIGTERM','56ptVwsN','beforeExit','815454rkmeMw','1854mTKTZI','exit','766251Zocile'];a335_0x4e51=function(){return _0xb53a15;};return a335_0x4e51();}
@@ -1 +1 @@
1
- const a336_0x5bf182=a336_0x3011;(function(_0x2d25e6,_0x5715f9){const _0x3e0e76=a336_0x3011,_0x36a042=_0x2d25e6();while(!![]){try{const _0x39a7fd=-parseInt(_0x3e0e76(0x7c))/0x1*(-parseInt(_0x3e0e76(0x74))/0x2)+-parseInt(_0x3e0e76(0x79))/0x3*(-parseInt(_0x3e0e76(0x7a))/0x4)+-parseInt(_0x3e0e76(0x77))/0x5+-parseInt(_0x3e0e76(0x78))/0x6*(-parseInt(_0x3e0e76(0x72))/0x7)+parseInt(_0x3e0e76(0x75))/0x8*(parseInt(_0x3e0e76(0x71))/0x9)+parseInt(_0x3e0e76(0x7b))/0xa+-parseInt(_0x3e0e76(0x73))/0xb;if(_0x39a7fd===_0x5715f9)break;else _0x36a042['push'](_0x36a042['shift']());}catch(_0x25946e){_0x36a042['push'](_0x36a042['shift']());}}}(a336_0x72bf,0xec253));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a336_0x3011(_0xd81180,_0x1e6afb){_0xd81180=_0xd81180-0x6f;const _0x72bfc7=a336_0x72bf();let _0x3011cf=_0x72bfc7[_0xd81180];return _0x3011cf;}const DEFAULT_TRACE_NAME=a336_0x5bf182(0x76);function a336_0x72bf(){const _0x23d3ef=['3778840KvXiwC','3BePmGB','spanName','version','traceparent','495TufiOW','7mJphLw','11956824hNBxne','178546yHtiSg','219832FCjqNu','rabetbase-cli','5317735giFjvH','3322314JXQwhs','1221045jhimTD','4NwsZwf'];a336_0x72bf=function(){return _0x23d3ef;};return a336_0x72bf();}export async function sendCliTraceLog(_0x4bbc23){const _0x38dcb3=a336_0x5bf182;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x4bbc23['traceName']??DEFAULT_TRACE_NAME,'version':_0x4bbc23[_0x38dcb3(0x6f)]??getCliVersion(),'spanName':_0x4bbc23[_0x38dcb3(0x7d)],'eventType':'manual','logData':_0x4bbc23['logData'],..._0x4bbc23[_0x38dcb3(0x70)]&&{'traceparent':_0x4bbc23[_0x38dcb3(0x70)]}});}
1
+ const a336_0x58dff4=a336_0x2b63;(function(_0x7d1e59,_0x465789){const _0x1db639=a336_0x2b63,_0x37db7f=_0x7d1e59();while(!![]){try{const _0x15533b=-parseInt(_0x1db639(0x9b))/0x1+-parseInt(_0x1db639(0x94))/0x2+-parseInt(_0x1db639(0x8e))/0x3+-parseInt(_0x1db639(0x9c))/0x4+parseInt(_0x1db639(0x95))/0x5*(-parseInt(_0x1db639(0x93))/0x6)+-parseInt(_0x1db639(0x98))/0x7*(parseInt(_0x1db639(0x91))/0x8)+parseInt(_0x1db639(0x97))/0x9*(parseInt(_0x1db639(0x96))/0xa);if(_0x15533b===_0x465789)break;else _0x37db7f['push'](_0x37db7f['shift']());}catch(_0x6eea47){_0x37db7f['push'](_0x37db7f['shift']());}}}(a336_0x2205,0x7456d));function a336_0x2205(){const _0x3b2c92=['989910RaAvDX','5yWmtqh','70uCBdYT','3727431rlytbD','28xXOQao','traceparent','traceName','182271quneQm','2236992MyXFbg','1390251iJlLbk','version','rabetbase-cli','143648HKdaIi','spanName','3905238PFBwdD'];a336_0x2205=function(){return _0x3b2c92;};return a336_0x2205();}import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a336_0x2b63(_0x59cec7,_0x36d276){_0x59cec7=_0x59cec7-0x8e;const _0x220573=a336_0x2205();let _0x2b63e2=_0x220573[_0x59cec7];return _0x2b63e2;}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a336_0x58dff4(0x90);export async function sendCliTraceLog(_0x770ef2){const _0x5a4fc7=a336_0x58dff4;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x770ef2[_0x5a4fc7(0x9a)]??DEFAULT_TRACE_NAME,'version':_0x770ef2[_0x5a4fc7(0x8f)]??getCliVersion(),'spanName':_0x770ef2[_0x5a4fc7(0x92)],'eventType':'manual','logData':_0x770ef2['logData'],..._0x770ef2[_0x5a4fc7(0x99)]&&{'traceparent':_0x770ef2['traceparent']}});}
@@ -1 +1 @@
1
- function a337_0x428b(){const _0x497c0b=['2365095XEPgOm','join','3042350qHDDfQ','1oaiEzD','issue.log.collect','title','12858318kVxOTK','redactionCount','8429808QvAwQc','635988SfADsG','platform-issue-log-collect','461298enDBWl','originalBytes','6tjWdsu','sanitize','description','104818BCMcdp','truncated'];a337_0x428b=function(){return _0x497c0b;};return a337_0x428b();}const a337_0x1f54de=a337_0x586c;(function(_0xece97d,_0x4e90ce){const _0x3c7c8c=a337_0x586c,_0x1ccca2=_0xece97d();while(!![]){try{const _0x18e508=parseInt(_0x3c7c8c(0x116))/0x1*(parseInt(_0x3c7c8c(0x10c))/0x2)+parseInt(_0x3c7c8c(0x113))/0x3+-parseInt(_0x3c7c8c(0x10a))/0x4+parseInt(_0x3c7c8c(0x115))/0x5*(-parseInt(_0x3c7c8c(0x10e))/0x6)+parseInt(_0x3c7c8c(0x111))/0x7+-parseInt(_0x3c7c8c(0x109))/0x8+parseInt(_0x3c7c8c(0x107))/0x9;if(_0x18e508===_0x4e90ce)break;else _0x1ccca2['push'](_0x1ccca2['shift']());}catch(_0x493cd4){_0x1ccca2['push'](_0x1ccca2['shift']());}}}(a337_0x428b,0x9c9d9));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a337_0x1f54de(0x10b);function a337_0x586c(_0x1efe4f,_0xb9e116){_0x1efe4f=_0x1efe4f-0x107;const _0x428b44=a337_0x428b();let _0x586cb4=_0x428b44[_0x1efe4f];return _0x586cb4;}export const PLATFORM_ISSUE_SPAN_NAME=a337_0x1f54de(0x117);export async function sendPlatformIssueCollectLog(_0x514ece){const _0x12cde3=a337_0x1f54de;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x514ece[_0x12cde3(0x118)],'issue.description':_0x514ece[_0x12cde3(0x110)],..._0x514ece[_0x12cde3(0x10f)]?{'issue.description_original_bytes':_0x514ece[_0x12cde3(0x10f)][_0x12cde3(0x10d)],'issue.description_truncated':_0x514ece[_0x12cde3(0x10f)][_0x12cde3(0x112)],'issue.description_redactions':_0x514ece[_0x12cde3(0x10f)][_0x12cde3(0x108)],'issue.description_redaction_kinds':_0x514ece['sanitize']['redactionKinds'][_0x12cde3(0x114)](',')}:{}}});}
1
+ function a337_0x3dbf(_0x256cd0,_0x47b43c){_0x256cd0=_0x256cd0-0x111;const _0x1c63c8=a337_0x1c63();let _0x3dbfef=_0x1c63c8[_0x256cd0];return _0x3dbfef;}const a337_0x3662c6=a337_0x3dbf;(function(_0x469619,_0x186b4d){const _0x5f4277=a337_0x3dbf,_0x3afa55=_0x469619();while(!![]){try{const _0x4af0dc=parseInt(_0x5f4277(0x116))/0x1*(parseInt(_0x5f4277(0x111))/0x2)+-parseInt(_0x5f4277(0x11b))/0x3*(-parseInt(_0x5f4277(0x11c))/0x4)+parseInt(_0x5f4277(0x120))/0x5*(-parseInt(_0x5f4277(0x113))/0x6)+-parseInt(_0x5f4277(0x123))/0x7+-parseInt(_0x5f4277(0x122))/0x8+-parseInt(_0x5f4277(0x117))/0x9+parseInt(_0x5f4277(0x11d))/0xa;if(_0x4af0dc===_0x186b4d)break;else _0x3afa55['push'](_0x3afa55['shift']());}catch(_0x3d57c4){_0x3afa55['push'](_0x3afa55['shift']());}}}(a337_0x1c63,0x28d72));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a337_0x3662c6(0x11f);export async function sendPlatformIssueCollectLog(_0x228c01){const _0xa93bd3=a337_0x3662c6;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x228c01[_0xa93bd3(0x119)],'issue.description':_0x228c01[_0xa93bd3(0x115)],..._0x228c01['sanitize']?{'issue.description_original_bytes':_0x228c01['sanitize'][_0xa93bd3(0x121)],'issue.description_truncated':_0x228c01[_0xa93bd3(0x118)][_0xa93bd3(0x114)],'issue.description_redactions':_0x228c01[_0xa93bd3(0x118)][_0xa93bd3(0x11a)],'issue.description_redaction_kinds':_0x228c01['sanitize'][_0xa93bd3(0x11e)][_0xa93bd3(0x112)](',')}:{}}});}function a337_0x1c63(){const _0xed5430=['245763ycKprM','4092hvdTaB','join','12MKVSAm','truncated','description','73qUuPMK','1655640hEBgZD','sanitize','title','redactionCount','77775ncqCgu','40OEWwyL','3993580TkSfhs','redactionKinds','issue.log.collect','492080zALvSu','originalBytes','1798264APOcgE'];a337_0x1c63=function(){return _0xed5430;};return a337_0x1c63();}
@@ -1 +1 @@
1
- const a339_0x46c2a5=a339_0x3f01;function a339_0x3f01(_0x290694,_0x37adaa){_0x290694=_0x290694-0x1d8;const _0x24888e=a339_0x2488();let _0x3f010e=_0x24888e[_0x290694];return _0x3f010e;}function a339_0x2488(){const _0x19d0d9=['Cursor','Windsurf','file','.opencode/skills/lovrabet/SKILL.md','.opencode','CodeBuddy\x20IDE','12005rXiZmn','windsurf','.claude','.trae/skills/lovrabet/SKILL.md','.cursor/skills/rabetbase.md','.codebuddy/skills/lovrabet/SKILL.md','Antigravity','.agent','10656sXuWJz','Antigravity\x20IDE','agent','antigravity','.trae','codex','248cQYSiV','OpenCode\x20IDE','trae','397602MBjuvZ','3516tXvucI','.qoder','.agent/skills/lovrabet/SKILL.md','Other\x20(generic\x20template)','.codex','Trae','codebuddy','Codex','.codex/skills/lovrabet/SKILL.md','cursor','607014UdoWaZ','1161276JcTKws','.codebuddy','85pqvgpB','Claude\x20Code','qoder','Cline','43400lbbpFN','Windsurf\x20IDE','.cursorrules','.cline/skills/lovrabet/SKILL.md','.cline','.qoder/rules/rabetbase.md','7mxJaml','187HnKPBC','opencode','Codex\x20IDE','cline','.qoder/skills/lovrabet/SKILL.md','Cline\x20IDE','OpenCode','claude','.claude/skills/lovrabet/SKILL.md'];a339_0x2488=function(){return _0x19d0d9;};return a339_0x2488();}(function(_0x286cc2,_0x1a1bd9){const _0x3cd2a1=a339_0x3f01,_0x4e25ad=_0x286cc2();while(!![]){try{const _0x26f1ca=-parseInt(_0x3cd2a1(0x1f3))/0x1*(parseInt(_0x3cd2a1(0x20b))/0x2)+parseInt(_0x3cd2a1(0x1e6))/0x3+-parseInt(_0x3cd2a1(0x1dc))/0x4*(parseInt(_0x3cd2a1(0x1e9))/0x5)+-parseInt(_0x3cd2a1(0x1e7))/0x6+parseInt(_0x3cd2a1(0x203))/0x7*(parseInt(_0x3cd2a1(0x1d8))/0x8)+parseInt(_0x3cd2a1(0x1db))/0x9+-parseInt(_0x3cd2a1(0x1ed))/0xa*(-parseInt(_0x3cd2a1(0x1f4))/0xb);if(_0x26f1ca===_0x1a1bd9)break;else _0x4e25ad['push'](_0x4e25ad['shift']());}catch(_0x110341){_0x4e25ad['push'](_0x4e25ad['shift']());}}}(a339_0x2488,0x1f2bc));export const CORE_IDE_CONFIGS={'cursor':{'name':a339_0x46c2a5(0x1fd),'description':'Cursor\x20IDE','folders':[a339_0x46c2a5(0x1ef),'.cursor'],'files':[{'type':a339_0x46c2a5(0x1ff),'path':a339_0x46c2a5(0x207)}]},'windsurf':{'name':a339_0x46c2a5(0x1fe),'description':a339_0x46c2a5(0x1ee),'folders':['.windsurf'],'files':[{'type':a339_0x46c2a5(0x1ff),'path':'.windsurf/workflows/rabetbase.md'}]},'claude':{'name':a339_0x46c2a5(0x1ea),'description':a339_0x46c2a5(0x1ea),'folders':[a339_0x46c2a5(0x205)],'files':[{'type':a339_0x46c2a5(0x1ff),'path':a339_0x46c2a5(0x1fc)}]},'cline':{'name':a339_0x46c2a5(0x1ec),'description':a339_0x46c2a5(0x1f9),'folders':[a339_0x46c2a5(0x1f1)],'files':[{'type':a339_0x46c2a5(0x1ff),'path':a339_0x46c2a5(0x1f0)}]},'codex':{'name':a339_0x46c2a5(0x1e3),'description':a339_0x46c2a5(0x1f6),'folders':[a339_0x46c2a5(0x1e0)],'files':[{'type':a339_0x46c2a5(0x1ff),'path':a339_0x46c2a5(0x1e4)}]},'opencode':{'name':a339_0x46c2a5(0x1fa),'description':a339_0x46c2a5(0x1d9),'folders':[a339_0x46c2a5(0x201)],'files':[{'type':'file','path':a339_0x46c2a5(0x200)}]},'qoder':{'name':'Qoder','description':'Qoder\x20IDE','folders':[a339_0x46c2a5(0x1dd)],'files':[{'type':a339_0x46c2a5(0x1ff),'path':a339_0x46c2a5(0x1f2)},{'type':a339_0x46c2a5(0x1ff),'path':a339_0x46c2a5(0x1f8)}]},'codebuddy':{'name':'CodeBuddy','description':a339_0x46c2a5(0x202),'folders':[a339_0x46c2a5(0x1e8)],'files':[{'type':'file','path':a339_0x46c2a5(0x208)}]},'trae':{'name':a339_0x46c2a5(0x1e1),'description':'Trae\x20IDE','folders':[a339_0x46c2a5(0x20f)],'files':[{'type':'file','path':a339_0x46c2a5(0x206)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a339_0x46c2a5(0x1df),'description':'Generic\x20template\x20fallback','folders':['.agent'],'files':[{'type':a339_0x46c2a5(0x1ff),'path':a339_0x46c2a5(0x1de)}]},'antigravity':{'name':a339_0x46c2a5(0x209),'description':a339_0x46c2a5(0x20c),'folders':[a339_0x46c2a5(0x20a)],'files':[{'type':'file','path':a339_0x46c2a5(0x1de)}]}};export const CORE_IDE_LIST=[a339_0x46c2a5(0x1fb),a339_0x46c2a5(0x1f7),a339_0x46c2a5(0x1e2),a339_0x46c2a5(0x210),a339_0x46c2a5(0x1e5),a339_0x46c2a5(0x1f5),'qoder',a339_0x46c2a5(0x1da),a339_0x46c2a5(0x204)];export const IDE_LIST=[a339_0x46c2a5(0x20e),a339_0x46c2a5(0x1fb),a339_0x46c2a5(0x1f7),'codebuddy',a339_0x46c2a5(0x210),'cursor','opencode',a339_0x46c2a5(0x1eb),'trae',a339_0x46c2a5(0x204),a339_0x46c2a5(0x20d)];export const ALL_CORE_IDES=[a339_0x46c2a5(0x1e5),a339_0x46c2a5(0x204),'claude',a339_0x46c2a5(0x1f7),'codex','opencode',a339_0x46c2a5(0x1eb),a339_0x46c2a5(0x1e2),a339_0x46c2a5(0x1da)];
1
+ const a339_0x1fd119=a339_0x304a;(function(_0x5688b4,_0x5bfe80){const _0x1e35b3=a339_0x304a,_0x12610f=_0x5688b4();while(!![]){try{const _0x243e6f=parseInt(_0x1e35b3(0x20d))/0x1*(parseInt(_0x1e35b3(0x1f8))/0x2)+parseInt(_0x1e35b3(0x1fc))/0x3*(-parseInt(_0x1e35b3(0x20e))/0x4)+-parseInt(_0x1e35b3(0x1eb))/0x5*(parseInt(_0x1e35b3(0x208))/0x6)+-parseInt(_0x1e35b3(0x217))/0x7+parseInt(_0x1e35b3(0x219))/0x8+parseInt(_0x1e35b3(0x21a))/0x9*(parseInt(_0x1e35b3(0x1e7))/0xa)+parseInt(_0x1e35b3(0x211))/0xb*(parseInt(_0x1e35b3(0x210))/0xc);if(_0x243e6f===_0x5bfe80)break;else _0x12610f['push'](_0x12610f['shift']());}catch(_0x194aff){_0x12610f['push'](_0x12610f['shift']());}}}(a339_0x20fc,0xf15c5));export const CORE_IDE_CONFIGS={'cursor':{'name':a339_0x1fd119(0x205),'description':a339_0x1fd119(0x1fe),'folders':['.cursorrules',a339_0x1fd119(0x1ec)],'files':[{'type':a339_0x1fd119(0x1f5),'path':a339_0x1fd119(0x213)}]},'windsurf':{'name':'Windsurf','description':'Windsurf\x20IDE','folders':[a339_0x1fd119(0x216)],'files':[{'type':a339_0x1fd119(0x1f5),'path':'.windsurf/workflows/rabetbase.md'}]},'claude':{'name':a339_0x1fd119(0x203),'description':'Claude\x20Code','folders':['.claude'],'files':[{'type':a339_0x1fd119(0x1f5),'path':'.claude/skills/lovrabet/SKILL.md'}]},'cline':{'name':a339_0x1fd119(0x1fd),'description':a339_0x1fd119(0x1ea),'folders':[a339_0x1fd119(0x1e8)],'files':[{'type':'file','path':a339_0x1fd119(0x21b)}]},'codex':{'name':'Codex','description':a339_0x1fd119(0x1f6),'folders':[a339_0x1fd119(0x214)],'files':[{'type':a339_0x1fd119(0x1f5),'path':'.codex/skills/lovrabet/SKILL.md'}]},'opencode':{'name':a339_0x1fd119(0x20b),'description':'OpenCode\x20IDE','folders':[a339_0x1fd119(0x209)],'files':[{'type':'file','path':a339_0x1fd119(0x1ee)}]},'qoder':{'name':a339_0x1fd119(0x1e9),'description':'Qoder\x20IDE','folders':[a339_0x1fd119(0x1f7)],'files':[{'type':a339_0x1fd119(0x1f5),'path':a339_0x1fd119(0x206)},{'type':'file','path':a339_0x1fd119(0x207)}]},'codebuddy':{'name':a339_0x1fd119(0x1fb),'description':a339_0x1fd119(0x204),'folders':[a339_0x1fd119(0x212)],'files':[{'type':a339_0x1fd119(0x1f5),'path':a339_0x1fd119(0x1ed)}]},'trae':{'name':a339_0x1fd119(0x1f0),'description':'Trae\x20IDE','folders':['.trae'],'files':[{'type':a339_0x1fd119(0x1f5),'path':a339_0x1fd119(0x200)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'Other\x20(generic\x20template)','description':a339_0x1fd119(0x20f),'folders':[a339_0x1fd119(0x1f9)],'files':[{'type':a339_0x1fd119(0x1f5),'path':a339_0x1fd119(0x20c)}]},'antigravity':{'name':a339_0x1fd119(0x1f2),'description':'Antigravity\x20IDE','folders':['.agent'],'files':[{'type':a339_0x1fd119(0x1f5),'path':'.agent/skills/lovrabet/SKILL.md'}]}};export const CORE_IDE_LIST=['claude',a339_0x1fd119(0x1f1),'codebuddy',a339_0x1fd119(0x201),'cursor',a339_0x1fd119(0x215),a339_0x1fd119(0x1fa),a339_0x1fd119(0x1ff),a339_0x1fd119(0x1f4)];function a339_0x304a(_0x5102a0,_0x3487a9){_0x5102a0=_0x5102a0-0x1e7;const _0x20fcb5=a339_0x20fc();let _0x304aac=_0x20fcb5[_0x5102a0];return _0x304aac;}function a339_0x20fc(){const _0x29c768=['codex','agent','Claude\x20Code','CodeBuddy\x20IDE','Cursor','.qoder/rules/rabetbase.md','.qoder/skills/lovrabet/SKILL.md','6wBNIUl','.opencode','claude','OpenCode','.agent/skills/lovrabet/SKILL.md','1868PMqmYq','2556388yYPKGQ','Generic\x20template\x20fallback','67884KEyRwr','3971UYsYjn','.codebuddy','.cursor/skills/rabetbase.md','.codex','opencode','.windsurf','8187557oHDvKC','antigravity','2364816fLpwdN','3153123PXjluR','.cline/skills/lovrabet/SKILL.md','50sWMSpm','.cline','Qoder','Cline\x20IDE','9804485Qsvvkf','.cursor','.codebuddy/skills/lovrabet/SKILL.md','.opencode/skills/lovrabet/SKILL.md','codebuddy','Trae','cline','Antigravity','cursor','windsurf','file','Codex\x20IDE','.qoder','716voKGQh','.agent','qoder','CodeBuddy','3BNaWDD','Cline','Cursor\x20IDE','trae','.trae/skills/lovrabet/SKILL.md'];a339_0x20fc=function(){return _0x29c768;};return a339_0x20fc();}export const IDE_LIST=[a339_0x1fd119(0x218),a339_0x1fd119(0x20a),a339_0x1fd119(0x1f1),a339_0x1fd119(0x1ef),a339_0x1fd119(0x201),a339_0x1fd119(0x1f3),a339_0x1fd119(0x215),'qoder',a339_0x1fd119(0x1ff),a339_0x1fd119(0x1f4),a339_0x1fd119(0x202)];export const ALL_CORE_IDES=['cursor',a339_0x1fd119(0x1f4),a339_0x1fd119(0x20a),'cline',a339_0x1fd119(0x201),a339_0x1fd119(0x215),'qoder','codebuddy','trae'];
@@ -1 +1 @@
1
- function a340_0x26ba(){const _0x395822=['220dykHkI','4692877aeXyfT','699561jTYRNr','595518cshQsw','1056277fHYYof','2326476ECgGbZ','1734854nTkzeM','6YXCqVM','144tiWvyp','8QnlibV','3899755wQJBTq'];a340_0x26ba=function(){return _0x395822;};return a340_0x26ba();}(function(_0x147d6b,_0x5a9a8f){const _0x1de49b=a340_0x4048,_0x314cab=_0x147d6b();while(!![]){try{const _0x16eec5=-parseInt(_0x1de49b(0x12e))/0x1+-parseInt(_0x1de49b(0x125))/0x2+-parseInt(_0x1de49b(0x12f))/0x3+-parseInt(_0x1de49b(0x128))/0x4*(-parseInt(_0x1de49b(0x129))/0x5)+-parseInt(_0x1de49b(0x126))/0x6*(parseInt(_0x1de49b(0x12b))/0x7)+-parseInt(_0x1de49b(0x127))/0x8*(-parseInt(_0x1de49b(0x12c))/0x9)+parseInt(_0x1de49b(0x12a))/0xa*(parseInt(_0x1de49b(0x12d))/0xb);if(_0x16eec5===_0x5a9a8f)break;else _0x314cab['push'](_0x314cab['shift']());}catch(_0x4606c9){_0x314cab['push'](_0x314cab['shift']());}}}(a340_0x26ba,0xbe8a5));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a340_0x4048(_0x4c59a9,_0x234164){_0x4c59a9=_0x4c59a9-0x125;const _0x26ba76=a340_0x26ba();let _0x4048cb=_0x26ba76[_0x4c59a9];return _0x4048cb;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x36e76b,_0x1eb915){const _0x316a88=a340_0x24b1,_0x35e45d=_0x36e76b();while(!![]){try{const _0x3452be=parseInt(_0x316a88(0x1f5))/0x1+-parseInt(_0x316a88(0x1f1))/0x2*(parseInt(_0x316a88(0x1f3))/0x3)+-parseInt(_0x316a88(0x1f4))/0x4+parseInt(_0x316a88(0x1f6))/0x5*(parseInt(_0x316a88(0x1ef))/0x6)+parseInt(_0x316a88(0x1f0))/0x7+-parseInt(_0x316a88(0x1f2))/0x8+parseInt(_0x316a88(0x1ed))/0x9*(parseInt(_0x316a88(0x1ee))/0xa);if(_0x3452be===_0x1eb915)break;else _0x35e45d['push'](_0x35e45d['shift']());}catch(_0x26dd06){_0x35e45d['push'](_0x35e45d['shift']());}}}(a340_0x3c31,0x52d45));function a340_0x24b1(_0x5ca955,_0xa6038c){_0x5ca955=_0x5ca955-0x1ed;const _0x3c31e0=a340_0x3c31();let _0x24b1ca=_0x3c31e0[_0x5ca955];return _0x24b1ca;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a340_0x3c31(){const _0x455525=['66371slYyHJ','180945tlOJsY','27kKJxLA','3318950KzSBti','18cOAKfR','3047975cqTNIk','4POIHhS','3581672nihXQP','906267xUzGND','859568EwDpHg'];a340_0x3c31=function(){return _0x455525;};return a340_0x3c31();}
@@ -1 +1 @@
1
- (function(_0x882e6a,_0x580ecc){const _0x1382e2=a341_0x3f8f,_0xc9471f=_0x882e6a();while(!![]){try{const _0x13cb42=parseInt(_0x1382e2(0x84))/0x1*(parseInt(_0x1382e2(0x7e))/0x2)+parseInt(_0x1382e2(0x7d))/0x3+-parseInt(_0x1382e2(0x83))/0x4+-parseInt(_0x1382e2(0x7c))/0x5*(parseInt(_0x1382e2(0x82))/0x6)+parseInt(_0x1382e2(0x77))/0x7*(-parseInt(_0x1382e2(0x7b))/0x8)+parseInt(_0x1382e2(0x88))/0x9*(parseInt(_0x1382e2(0x79))/0xa)+parseInt(_0x1382e2(0x78))/0xb;if(_0x13cb42===_0x580ecc)break;else _0xc9471f['push'](_0xc9471f['shift']());}catch(_0x38096d){_0xc9471f['push'](_0xc9471f['shift']());}}}(a341_0x140c,0x445d3));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x439c00=a341_0x3f8f,_0x4a79bf=getTemplateBaseUrl(),_0x1e300e=[_0x4a79bf+_0x439c00(0x7a),_0x4a79bf+_0x439c00(0x80)];for(const _0x2d0025 of _0x1e300e){try{const _0x4a7746=await fetch(_0x2d0025,{'headers':{'Accept':_0x439c00(0x87)}});if(!_0x4a7746['ok'])continue;const _0x39b672=await _0x4a7746['json']();if(!_0x39b672['cli']?.[_0x439c00(0x7f)]||!_0x39b672[_0x439c00(0x81)]?.[_0x439c00(0x85)]?.['stableVersion'])continue;return _0x39b672;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a341_0x140c(){const _0x5154f7=['14WasAMr','node','now','application/json','1620lGKDAy','7TgsOJc','2188131vfqmTx','14340rYVNYG','/config.json','681928tBpRfa','549115FXhxbj','1325328DuhtwF','59588czgKgx','stableVersion','/config/index.json','sdk','30vlnQsV','1606232sIkVRP'];a341_0x140c=function(){return _0x5154f7;};return a341_0x140c();}let hasCachedConfig=![];function a341_0x3f8f(_0xcf39c2,_0x285fd2){_0xcf39c2=_0xcf39c2-0x77;const _0x140c0e=a341_0x140c();let _0x3f8f72=_0x140c0e[_0xcf39c2];return _0x3f8f72;}export async function getCdnConfig(){const _0x4dd537=a341_0x3f8f,_0x3d6fdf=Date[_0x4dd537(0x86)]();if(hasCachedConfig){const _0x72f46=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x3d6fdf-cacheTime<_0x72f46)return cachedConfig;}const _0x2dc08a=await fetchCdnConfig();return cachedConfig=_0x2dc08a,cacheTime=_0x3d6fdf,hasCachedConfig=!![],_0x2dc08a;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0xd40b40,_0x253a8d){const _0x4bad33=a341_0x5bcc,_0x511f34=_0xd40b40();while(!![]){try{const _0x375669=-parseInt(_0x4bad33(0x140))/0x1*(parseInt(_0x4bad33(0x13b))/0x2)+parseInt(_0x4bad33(0x13f))/0x3+parseInt(_0x4bad33(0x13e))/0x4*(-parseInt(_0x4bad33(0x13a))/0x5)+parseInt(_0x4bad33(0x141))/0x6+parseInt(_0x4bad33(0x143))/0x7*(parseInt(_0x4bad33(0x142))/0x8)+parseInt(_0x4bad33(0x138))/0x9+-parseInt(_0x4bad33(0x13c))/0xa;if(_0x375669===_0x253a8d)break;else _0x511f34['push'](_0x511f34['shift']());}catch(_0x160530){_0x511f34['push'](_0x511f34['shift']());}}}(a341_0x2f91,0x60151));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x329c57=a341_0x5bcc,_0x3990fb=getTemplateBaseUrl(),_0x4c8184=[_0x3990fb+_0x329c57(0x139),_0x3990fb+'/config/index.json'];for(const _0x5c59d0 of _0x4c8184){try{const _0x2c1971=await fetch(_0x5c59d0,{'headers':{'Accept':_0x329c57(0x13d)}});if(!_0x2c1971['ok'])continue;const _0x151cd9=await _0x2c1971['json']();if(!_0x151cd9[_0x329c57(0x146)]?.[_0x329c57(0x145)]||!_0x151cd9[_0x329c57(0x144)]?.[_0x329c57(0x136)]?.[_0x329c57(0x145)])continue;return _0x151cd9;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a341_0x5bcc(_0x47b0e6,_0x146a11){_0x47b0e6=_0x47b0e6-0x136;const _0x2f91a7=a341_0x2f91();let _0x5bcccd=_0x2f91a7[_0x47b0e6];return _0x5bcccd;}function a341_0x2f91(){const _0x2c9125=['7DXXPaw','sdk','stableVersion','cli','node','now','3334698qHOqAk','/config.json','5HLNpGz','4yJIlIj','5532230ePXLYS','application/json','1186212yBmWtG','35130XCRDKA','272347fYaxqZ','3842988dlogQs','6122344vvzrsd'];a341_0x2f91=function(){return _0x2c9125;};return a341_0x2f91();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x98d3d6=a341_0x5bcc,_0x35f57d=Date[_0x98d3d6(0x137)]();if(hasCachedConfig){const _0x38c589=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x35f57d-cacheTime<_0x38c589)return cachedConfig;}const _0x355348=await fetchCdnConfig();return cachedConfig=_0x355348,cacheTime=_0x35f57d,hasCachedConfig=!![],_0x355348;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a342_0x5e3faa=a342_0x17a4;(function(_0x39faf9,_0x77e0ff){const _0x522dde=a342_0x17a4,_0x53c6ad=_0x39faf9();while(!![]){try{const _0x2bb19b=-parseInt(_0x522dde(0x9a))/0x1*(parseInt(_0x522dde(0xa7))/0x2)+-parseInt(_0x522dde(0xa5))/0x3*(parseInt(_0x522dde(0xad))/0x4)+-parseInt(_0x522dde(0xae))/0x5*(parseInt(_0x522dde(0xb1))/0x6)+-parseInt(_0x522dde(0x99))/0x7+parseInt(_0x522dde(0x97))/0x8+-parseInt(_0x522dde(0x95))/0x9*(-parseInt(_0x522dde(0x98))/0xa)+-parseInt(_0x522dde(0xa8))/0xb*(-parseInt(_0x522dde(0x9c))/0xc);if(_0x2bb19b===_0x77e0ff)break;else _0x53c6ad['push'](_0x53c6ad['shift']());}catch(_0x5f3205){_0x53c6ad['push'](_0x53c6ad['shift']());}}}(a342_0x2c3c,0xdc705));function a342_0x2c3c(){const _0x405f14=['needsUpgrade','\x1b[1m','minVersion','sdk','13192kzjidI','404060DUzOtj','package.json','\x20\x20\x20Current\x20version:\x20','114IOCbOx','devDependencies','utf-8','coerce','\x20\x20\x20Stable\x20version:\x20','log','npm\x20install\x20','\x20\x20\x20Upgrade\x20command:\x20','parse','dependencies','↪\x20SDK\x20update\x20available','packageName','852300JpUfTU','test','11933096bMmcBY','90yywQPC','10773210diYnDy','2fuMzVG','join','2400qObSDO','existsSync','stableVersion','1.2.0','version','utf8','node','some','@lovrabet/sdk','933KZfPsw','readFileSync','408484eqAvVr','168718ZwXgMR'];a342_0x2c3c=function(){return _0x405f14;};return a342_0x2c3c();}function a342_0x17a4(_0x322808,_0xd75a58){_0x322808=_0x322808-0x92;const _0x2c3c27=a342_0x2c3c();let _0x17a429=_0x2c3c27[_0x322808];return _0x17a429;}import a342_0x2a1330 from'node:fs';import a342_0x4da12f from'node:path';import a342_0x46aee7 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a342_0x5e3faa(0x9f);function isNonNumericVersion(_0x4834e7){const _0x253c19=a342_0x5e3faa,_0x46b24d=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x46b24d[_0x253c19(0xa3)](_0xf09e70=>_0xf09e70[_0x253c19(0x96)](_0x4834e7));}function getInstalledVersion(_0x4c2cf6,_0x20bbd1){const _0x1f7dd0=a342_0x5e3faa;try{const _0x45a971=a342_0x4da12f[_0x1f7dd0(0x9b)](_0x4c2cf6,'node_modules',_0x20bbd1,'package.json');if(a342_0x2a1330[_0x1f7dd0(0x9d)](_0x45a971)){const _0x11fd55=JSON[_0x1f7dd0(0xb9)](a342_0x2a1330[_0x1f7dd0(0xa6)](_0x45a971,_0x1f7dd0(0xb3)));return _0x11fd55[_0x1f7dd0(0xa0)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x25ed5a=a342_0x5e3faa;try{const _0xca9076=await getCdnConfig();return _0xca9076?.[_0x25ed5a(0xac)]?.['node']?.[_0x25ed5a(0x9e)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x38c46b=a342_0x5e3faa;try{const _0x1aafcb=await getCdnConfig();return _0x1aafcb?.[_0x38c46b(0xac)]?.[_0x38c46b(0xa2)]?.[_0x38c46b(0x94)]||_0x38c46b(0xa4);}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x2e09ea){const _0x5a5398=a342_0x5e3faa,_0x43270f=a342_0x4da12f[_0x5a5398(0x9b)](_0x2e09ea,'package.json'),[_0x325d12,_0x3311be]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x124adc=_0x325d12||FALLBACK_MIN_SDK_VERSION;if(!a342_0x2a1330[_0x5a5398(0x9d)](_0x43270f))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x124adc,'packageName':_0x3311be,'stableVersion':_0x325d12};try{const _0x1c51a0=JSON['parse'](a342_0x2a1330['readFileSync'](_0x43270f,_0x5a5398(0xa1))),_0x143b83=_0x1c51a0[_0x5a5398(0x92)]||{},_0x571c07=_0x1c51a0[_0x5a5398(0xb2)]||{},_0x26c784=_0x143b83[_0x3311be]||_0x571c07[_0x3311be];if(!_0x26c784)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x124adc,'packageName':_0x3311be,'stableVersion':_0x325d12};let _0x4616d8=getInstalledVersion(_0x2e09ea,_0x3311be);!_0x4616d8&&(_0x4616d8=_0x26c784);if(isNonNumericVersion(_0x26c784))return{'installed':!![],'version':_0x4616d8,'needsUpgrade':![],'minVersion':_0x124adc,'packageName':_0x3311be,'stableVersion':_0x325d12};const _0xad8e36=a342_0x46aee7[_0x5a5398(0xb4)](_0x4616d8),_0xadb6d4=a342_0x46aee7[_0x5a5398(0xb4)](_0x124adc),_0x2a94c4=_0xad8e36&&_0xadb6d4?a342_0x46aee7['lt'](_0xad8e36,_0xadb6d4):![];return{'installed':!![],'version':_0x4616d8,'needsUpgrade':_0x2a94c4,'minVersion':_0x124adc,'packageName':_0x3311be,'stableVersion':_0x325d12};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x124adc,'packageName':_0x3311be,'stableVersion':_0x325d12};}}export function checkSdkVersionSync(_0xfb892b){const _0x78c093=a342_0x5e3faa,_0x19dbb1=a342_0x4da12f[_0x78c093(0x9b)](_0xfb892b,_0x78c093(0xaf)),_0x37a1f2='@lovrabet/sdk';if(!a342_0x2a1330[_0x78c093(0x9d)](_0x19dbb1))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x37a1f2,'stableVersion':null};try{const _0x50f849=JSON['parse'](a342_0x2a1330[_0x78c093(0xa6)](_0x19dbb1,'utf8')),_0x595541=_0x50f849[_0x78c093(0x92)]||{},_0x4bff12=_0x50f849[_0x78c093(0xb2)]||{},_0x54cfda=_0x595541[_0x37a1f2]||_0x4bff12[_0x37a1f2];if(!_0x54cfda)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x37a1f2,'stableVersion':null};let _0x371637=getInstalledVersion(_0xfb892b,_0x37a1f2);!_0x371637&&(_0x371637=_0x54cfda);if(isNonNumericVersion(_0x54cfda))return{'installed':!![],'version':_0x371637,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x37a1f2,'stableVersion':null};const _0x1da7f8=a342_0x46aee7['coerce'](_0x371637),_0x75e17c=_0x1da7f8?a342_0x46aee7['lt'](_0x1da7f8,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x371637,'needsUpgrade':_0x75e17c,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x37a1f2,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x37a1f2,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x5e438e){const _0x482b9c=a342_0x5e3faa;if(!_0x5e438e[_0x482b9c(0xa9)])return;const _0x15aa41='\x1b[33m',_0x275eef='\x1b[0m',_0x559c52=_0x482b9c(0xaa),_0x3a846a=_0x5e438e[_0x482b9c(0x94)]||_0x482b9c(0xa4),_0x1e2ea2=_0x5e438e['stableVersion']||_0x5e438e[_0x482b9c(0xab)],_0x4b7123=_0x482b9c(0xb7)+_0x3a846a+'@'+(_0x1e2ea2||'latest');console['log'](),console[_0x482b9c(0xb6)](''+_0x15aa41+_0x559c52+_0x482b9c(0x93)+_0x275eef),console[_0x482b9c(0xb6)](_0x15aa41+_0x482b9c(0xb0)+_0x3a846a+'@'+_0x5e438e[_0x482b9c(0xa0)]+_0x275eef),console[_0x482b9c(0xb6)](_0x15aa41+_0x482b9c(0xb5)+_0x1e2ea2+_0x275eef),console[_0x482b9c(0xb6)](_0x15aa41+_0x482b9c(0xb8)+_0x4b7123+_0x275eef),console['log']();}
1
+ const a342_0xa988ad=a342_0x52fa;function a342_0x52fa(_0x220e6a,_0x8bfb54){_0x220e6a=_0x220e6a-0x10a;const _0x57d48a=a342_0x57d4();let _0x52fa55=_0x57d48a[_0x220e6a];return _0x52fa55;}(function(_0x286afe,_0x15c23e){const _0x106181=a342_0x52fa,_0x3e6964=_0x286afe();while(!![]){try{const _0x40629f=parseInt(_0x106181(0x11a))/0x1*(-parseInt(_0x106181(0x123))/0x2)+-parseInt(_0x106181(0x10e))/0x3+parseInt(_0x106181(0x11b))/0x4+-parseInt(_0x106181(0x10f))/0x5*(-parseInt(_0x106181(0x118))/0x6)+parseInt(_0x106181(0x122))/0x7+-parseInt(_0x106181(0x113))/0x8+parseInt(_0x106181(0x125))/0x9;if(_0x40629f===_0x15c23e)break;else _0x3e6964['push'](_0x3e6964['shift']());}catch(_0x54227d){_0x3e6964['push'](_0x3e6964['shift']());}}}(a342_0x57d4,0x63e65));import a342_0x329257 from'node:fs';import a342_0x11eb0f from'node:path';import a342_0x41f878 from'semver';function a342_0x57d4(){const _0x2b2c8b=['\x20\x20\x20Stable\x20version:\x20','version','join','latest','coerce','all','1682370bEwkYD','5vweZjG','devDependencies','test','\x1b[1m','3351616ydqOJt','\x20\x20\x20Upgrade\x20command:\x20','stableVersion','\x1b[33m','dependencies','3673122OUBXot','node_modules','1183tImTjO','1735780vJmAgo','parse','log','\x20\x20\x20Current\x20version:\x20','↪\x20SDK\x20update\x20available','readFileSync','sdk','4079572YnfhCg','952NMKKqi','1.2.0','2907999ZMmHmH','@lovrabet/sdk','minVersion','packageName','node','needsUpgrade','existsSync','\x1b[0m','package.json','utf8'];a342_0x57d4=function(){return _0x2b2c8b;};return a342_0x57d4();}import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a342_0xa988ad(0x124);function isNonNumericVersion(_0x2aee0b){const _0x5b9a3=a342_0xa988ad,_0x6c36e2=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x6c36e2['some'](_0x599f1e=>_0x599f1e[_0x5b9a3(0x111)](_0x2aee0b));}function getInstalledVersion(_0x56a406,_0x215884){const _0x11e493=a342_0xa988ad;try{const _0x284523=a342_0x11eb0f['join'](_0x56a406,_0x11e493(0x119),_0x215884,'package.json');if(a342_0x329257[_0x11e493(0x12b)](_0x284523)){const _0x2ed0bc=JSON[_0x11e493(0x11c)](a342_0x329257[_0x11e493(0x120)](_0x284523,'utf-8'));return _0x2ed0bc[_0x11e493(0x130)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x3c59ba=a342_0xa988ad;try{const _0x5e7ee6=await getCdnConfig();return _0x5e7ee6?.[_0x3c59ba(0x121)]?.[_0x3c59ba(0x129)]?.[_0x3c59ba(0x115)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x36ace3=a342_0xa988ad;try{const _0x3ea7e5=await getCdnConfig();return _0x3ea7e5?.[_0x36ace3(0x121)]?.[_0x36ace3(0x129)]?.[_0x36ace3(0x128)]||_0x36ace3(0x126);}catch{return _0x36ace3(0x126);}}export async function checkSdkVersion(_0x1c0480){const _0x3b5060=a342_0xa988ad,_0x38ea11=a342_0x11eb0f[_0x3b5060(0x10a)](_0x1c0480,'package.json'),[_0x51eb5c,_0x39f8bc]=await Promise[_0x3b5060(0x10d)]([getSdkStableVersion(),getSdkPackageName()]),_0x5df324=_0x51eb5c||FALLBACK_MIN_SDK_VERSION;if(!a342_0x329257[_0x3b5060(0x12b)](_0x38ea11))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5df324,'packageName':_0x39f8bc,'stableVersion':_0x51eb5c};try{const _0x10583a=JSON[_0x3b5060(0x11c)](a342_0x329257[_0x3b5060(0x120)](_0x38ea11,'utf8')),_0x11aaf7=_0x10583a[_0x3b5060(0x117)]||{},_0x2cbc3e=_0x10583a[_0x3b5060(0x110)]||{},_0x151adf=_0x11aaf7[_0x39f8bc]||_0x2cbc3e[_0x39f8bc];if(!_0x151adf)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5df324,'packageName':_0x39f8bc,'stableVersion':_0x51eb5c};let _0x4ac332=getInstalledVersion(_0x1c0480,_0x39f8bc);!_0x4ac332&&(_0x4ac332=_0x151adf);if(isNonNumericVersion(_0x151adf))return{'installed':!![],'version':_0x4ac332,'needsUpgrade':![],'minVersion':_0x5df324,'packageName':_0x39f8bc,'stableVersion':_0x51eb5c};const _0x47b718=a342_0x41f878[_0x3b5060(0x10c)](_0x4ac332),_0x252e85=a342_0x41f878[_0x3b5060(0x10c)](_0x5df324),_0x41fbb1=_0x47b718&&_0x252e85?a342_0x41f878['lt'](_0x47b718,_0x252e85):![];return{'installed':!![],'version':_0x4ac332,'needsUpgrade':_0x41fbb1,'minVersion':_0x5df324,'packageName':_0x39f8bc,'stableVersion':_0x51eb5c};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5df324,'packageName':_0x39f8bc,'stableVersion':_0x51eb5c};}}export function checkSdkVersionSync(_0x5ed880){const _0x7319c5=a342_0xa988ad,_0x19bcc1=a342_0x11eb0f[_0x7319c5(0x10a)](_0x5ed880,_0x7319c5(0x12d)),_0x2ee0f3='@lovrabet/sdk';if(!a342_0x329257[_0x7319c5(0x12b)](_0x19bcc1))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2ee0f3,'stableVersion':null};try{const _0x5836ee=JSON['parse'](a342_0x329257[_0x7319c5(0x120)](_0x19bcc1,_0x7319c5(0x12e))),_0x32d75d=_0x5836ee[_0x7319c5(0x117)]||{},_0x218b94=_0x5836ee[_0x7319c5(0x110)]||{},_0xdd1a71=_0x32d75d[_0x2ee0f3]||_0x218b94[_0x2ee0f3];if(!_0xdd1a71)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2ee0f3,'stableVersion':null};let _0x100413=getInstalledVersion(_0x5ed880,_0x2ee0f3);!_0x100413&&(_0x100413=_0xdd1a71);if(isNonNumericVersion(_0xdd1a71))return{'installed':!![],'version':_0x100413,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2ee0f3,'stableVersion':null};const _0x16d1a8=a342_0x41f878[_0x7319c5(0x10c)](_0x100413),_0x3a979b=_0x16d1a8?a342_0x41f878['lt'](_0x16d1a8,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x100413,'needsUpgrade':_0x3a979b,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2ee0f3,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2ee0f3,'stableVersion':null};}}export function printSdkUpgradeWarning(_0xa00798){const _0x3025f0=a342_0xa988ad;if(!_0xa00798[_0x3025f0(0x12a)])return;const _0x48849d=_0x3025f0(0x116),_0x9092d0=_0x3025f0(0x12c),_0x567116=_0x3025f0(0x112),_0x322c40=_0xa00798['packageName']||_0x3025f0(0x126),_0x25ce4d=_0xa00798['stableVersion']||_0xa00798[_0x3025f0(0x127)],_0x4c3c6f='npm\x20install\x20'+_0x322c40+'@'+(_0x25ce4d||_0x3025f0(0x10b));console[_0x3025f0(0x11d)](),console['log'](''+_0x48849d+_0x567116+_0x3025f0(0x11f)+_0x9092d0),console[_0x3025f0(0x11d)](_0x48849d+_0x3025f0(0x11e)+_0x322c40+'@'+_0xa00798[_0x3025f0(0x130)]+_0x9092d0),console['log'](_0x48849d+_0x3025f0(0x12f)+_0x25ce4d+_0x9092d0),console[_0x3025f0(0x11d)](_0x48849d+_0x3025f0(0x114)+_0x4c3c6f+_0x9092d0),console[_0x3025f0(0x11d)]();}