@lovrabet/rabetbase-cli 2.5.2-beta.7 → 2.5.2

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 (322) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/api/generate-sdk-config-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/delete.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/init.js +1 -1
  56. package/lib/commands/config/list.js +1 -1
  57. package/lib/commands/config/set.js +1 -1
  58. package/lib/commands/config/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/business-groups.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-restore.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  80. package/lib/commands/db/analysis-batching.js +1 -1
  81. package/lib/commands/db/analyze-batch-plan.js +1 -1
  82. package/lib/commands/db/analyze-cancel.js +1 -1
  83. package/lib/commands/db/analyze-start.js +1 -1
  84. package/lib/commands/db/analyze-status.js +1 -1
  85. package/lib/commands/db/create.js +1 -1
  86. package/lib/commands/db/delete.js +1 -1
  87. package/lib/commands/db/detail.js +1 -1
  88. package/lib/commands/db/diff-refresh-start.js +1 -1
  89. package/lib/commands/db/diff-refresh-status.js +1 -1
  90. package/lib/commands/db/diff.js +1 -1
  91. package/lib/commands/db/index.js +1 -1
  92. package/lib/commands/db/list.js +1 -1
  93. package/lib/commands/db/shared.js +1 -1
  94. package/lib/commands/db/table-diff-shared.js +1 -1
  95. package/lib/commands/db/tables.js +1 -1
  96. package/lib/commands/db/test.js +1 -1
  97. package/lib/commands/db/update.js +1 -1
  98. package/lib/commands/deployment/index.js +1 -1
  99. package/lib/commands/deployment/sync-all.js +1 -1
  100. package/lib/commands/deployment/sync-jobs.js +1 -1
  101. package/lib/commands/deployment/sync-status.js +1 -1
  102. package/lib/commands/doctor.js +1 -1
  103. package/lib/commands/file/index.js +1 -1
  104. package/lib/commands/instant-api-policy/current.js +1 -1
  105. package/lib/commands/instant-api-policy/index.js +1 -1
  106. package/lib/commands/instant-api-policy/init.js +1 -1
  107. package/lib/commands/instant-api-policy/publish.js +1 -1
  108. package/lib/commands/instant-api-policy/pull.js +1 -1
  109. package/lib/commands/instant-api-policy/revision.js +1 -1
  110. package/lib/commands/instant-api-policy/revisions.js +1 -1
  111. package/lib/commands/instant-api-policy/rollback.js +1 -1
  112. package/lib/commands/instant-api-policy/shared.js +1 -1
  113. package/lib/commands/instant-api-policy/validate.js +1 -1
  114. package/lib/commands/issue/index.js +1 -1
  115. package/lib/commands/issue/nudge.js +1 -1
  116. package/lib/commands/issue/report.js +1 -1
  117. package/lib/commands/issue/shared.js +1 -1
  118. package/lib/commands/kb/create.js +1 -1
  119. package/lib/commands/kb/delete.js +1 -1
  120. package/lib/commands/kb/detail.js +1 -1
  121. package/lib/commands/kb/index.js +1 -1
  122. package/lib/commands/kb/list.js +1 -1
  123. package/lib/commands/kb/search.js +1 -1
  124. package/lib/commands/kb/shared.js +1 -1
  125. package/lib/commands/kb/update.js +1 -1
  126. package/lib/commands/logs/index.js +1 -1
  127. package/lib/commands/menu/asset-update.js +1 -1
  128. package/lib/commands/menu/delete.js +1 -1
  129. package/lib/commands/menu/external-link-create.js +1 -1
  130. package/lib/commands/menu/external-link-update.js +1 -1
  131. package/lib/commands/menu/group-create.js +1 -1
  132. package/lib/commands/menu/group-update.js +1 -1
  133. package/lib/commands/menu/index.js +1 -1
  134. package/lib/commands/menu/list.js +1 -1
  135. package/lib/commands/menu/move.js +1 -1
  136. package/lib/commands/menu/regroup-start.js +1 -1
  137. package/lib/commands/menu/rename.js +1 -1
  138. package/lib/commands/menu/shared/compare-table.js +1 -1
  139. package/lib/commands/menu/shared/delete-plan.js +1 -1
  140. package/lib/commands/menu/shared/facts.js +1 -1
  141. package/lib/commands/menu/shared/index.js +1 -1
  142. package/lib/commands/menu/shared/inquirer.js +1 -1
  143. package/lib/commands/menu/shared/local-pages.js +1 -1
  144. package/lib/commands/menu/shared/logic.js +1 -1
  145. package/lib/commands/menu/shared/mutations.js +1 -1
  146. package/lib/commands/menu/shared/service.js +1 -1
  147. package/lib/commands/menu/shared/sync-core.js +1 -1
  148. package/lib/commands/menu/shared/update-core.js +1 -1
  149. package/lib/commands/menu/shared/valid-url.js +1 -1
  150. package/lib/commands/menu/sync.js +1 -1
  151. package/lib/commands/menu/visibility-update.js +1 -1
  152. package/lib/commands/notification/config-create.js +1 -1
  153. package/lib/commands/notification/config-delete.js +1 -1
  154. package/lib/commands/notification/config-list.js +1 -1
  155. package/lib/commands/notification/config-update.js +1 -1
  156. package/lib/commands/notification/index.js +1 -1
  157. package/lib/commands/notification/shared.js +1 -1
  158. package/lib/commands/ocr/index.js +1 -1
  159. package/lib/commands/page/create.js +1 -1
  160. package/lib/commands/page/custom/detail.js +1 -1
  161. package/lib/commands/page/custom/list.js +1 -1
  162. package/lib/commands/page/custom/publish.js +1 -1
  163. package/lib/commands/page/custom/shared.js +1 -1
  164. package/lib/commands/page/custom/syntax.js +1 -1
  165. package/lib/commands/page/custom/update.js +1 -1
  166. package/lib/commands/page/data-list-status.js +1 -1
  167. package/lib/commands/page/generate-start.js +1 -1
  168. package/lib/commands/page/generate-status.js +1 -1
  169. package/lib/commands/page/index.js +1 -1
  170. package/lib/commands/page/pull.js +1 -1
  171. package/lib/commands/page/push.js +1 -1
  172. package/lib/commands/page/relation-audit.js +1 -1
  173. package/lib/commands/page/restore.js +1 -1
  174. package/lib/commands/page/shared.js +1 -1
  175. package/lib/commands/page/sync.js +1 -1
  176. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  177. package/lib/commands/project/create/format-elapsed.js +1 -1
  178. package/lib/commands/project/create/main.js +1 -1
  179. package/lib/commands/project/create/materialize-project-template.js +1 -1
  180. package/lib/commands/project/create/project-name.js +1 -1
  181. package/lib/commands/project/create/project-template-archive.js +1 -1
  182. package/lib/commands/project/create/project-template-path.js +1 -1
  183. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  184. package/lib/commands/project/create/use-format-code.js +1 -1
  185. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  186. package/lib/commands/project/domain-routing-sync.js +1 -1
  187. package/lib/commands/project/index.js +1 -1
  188. package/lib/commands/project/upgrade.js +1 -1
  189. package/lib/commands/registry.js +1 -1
  190. package/lib/commands/role/delete.js +1 -1
  191. package/lib/commands/role/detail.js +1 -1
  192. package/lib/commands/role/index.js +1 -1
  193. package/lib/commands/role/list.js +1 -1
  194. package/lib/commands/role/shared.js +1 -1
  195. package/lib/commands/role/update.js +1 -1
  196. package/lib/commands/role/user-add.js +1 -1
  197. package/lib/commands/role/user-remove.js +1 -1
  198. package/lib/commands/role/user-resolve.js +1 -1
  199. package/lib/commands/rule/get.js +1 -1
  200. package/lib/commands/rule/index.js +1 -1
  201. package/lib/commands/rule/list.js +1 -1
  202. package/lib/commands/rule/set.js +1 -1
  203. package/lib/commands/rule/shared.js +1 -1
  204. package/lib/commands/run/index.js +1 -1
  205. package/lib/commands/schema.js +1 -1
  206. package/lib/commands/sql/create.js +1 -1
  207. package/lib/commands/sql/delete.js +1 -1
  208. package/lib/commands/sql/detail.js +1 -1
  209. package/lib/commands/sql/exec.js +1 -1
  210. package/lib/commands/sql/index.js +1 -1
  211. package/lib/commands/sql/list.js +1 -1
  212. package/lib/commands/sql/pull.js +1 -1
  213. package/lib/commands/sql/push.js +1 -1
  214. package/lib/commands/sql/shared.js +1 -1
  215. package/lib/commands/sql/status.js +1 -1
  216. package/lib/commands/sql/validate.js +1 -1
  217. package/lib/commands/task/index.js +1 -1
  218. package/lib/commands/task/status.js +1 -1
  219. package/lib/commands/tenant/index.js +1 -1
  220. package/lib/commands/tenant/members-list.js +1 -1
  221. package/lib/commands/tenant/shared.js +1 -1
  222. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  223. package/lib/commands/user-account/index.js +1 -1
  224. package/lib/commands/workspace/add.js +1 -1
  225. package/lib/commands/workspace/index.js +1 -1
  226. package/lib/commands/workspace/remove.js +1 -1
  227. package/lib/config/domain-config.js +1 -1
  228. package/lib/config/project-domain-routing.js +1 -1
  229. package/lib/config/schema.js +1 -1
  230. package/lib/constant/cdn.js +1 -1
  231. package/lib/constant/cli.js +1 -1
  232. package/lib/constant/defaults.js +1 -1
  233. package/lib/constant/domain.js +1 -1
  234. package/lib/constant/env.js +1 -1
  235. package/lib/constant/output.js +1 -1
  236. package/lib/constant/paths.js +1 -1
  237. package/lib/constant/region.js +1 -1
  238. package/lib/constant/risk.js +1 -1
  239. package/lib/constant/routing-profile.js +1 -1
  240. package/lib/context/app-resolver.js +1 -1
  241. package/lib/context/auth-resolver.js +1 -1
  242. package/lib/context/config-loader.js +1 -1
  243. package/lib/context.js +1 -1
  244. package/lib/core/alias-resolver.js +1 -1
  245. package/lib/core/api-client.js +1 -1
  246. package/lib/core/bff/config.js +1 -1
  247. package/lib/core/bff/file-system.js +1 -1
  248. package/lib/core/bff/hash.js +1 -1
  249. package/lib/core/bff/lock.js +1 -1
  250. package/lib/core/bff/utils.js +1 -1
  251. package/lib/core/db-resolver.js +1 -1
  252. package/lib/core/instant-api-policy/config.js +1 -1
  253. package/lib/core/kb-search-client.js +1 -1
  254. package/lib/core/page/file-system.js +1 -1
  255. package/lib/core/page/hash.js +1 -1
  256. package/lib/core/page/lock.js +1 -1
  257. package/lib/core/sql-index-auditor.js +1 -1
  258. package/lib/core/sql-sync/config.js +1 -1
  259. package/lib/core/sql-sync/file-system.js +1 -1
  260. package/lib/core/sql-sync/hash.js +1 -1
  261. package/lib/core/sql-sync/lock.js +1 -1
  262. package/lib/core/sql-sync/utils.js +1 -1
  263. package/lib/core/sql-validator.js +1 -1
  264. package/lib/errors.js +1 -1
  265. package/lib/framework/build-all-flags.js +1 -1
  266. package/lib/framework/error-output.js +1 -1
  267. package/lib/framework/explicit-yes.js +1 -1
  268. package/lib/framework/flags.js +1 -1
  269. package/lib/framework/help.js +1 -1
  270. package/lib/framework/index.js +1 -1
  271. package/lib/framework/output.js +1 -1
  272. package/lib/framework/response.js +1 -1
  273. package/lib/framework/runner-alias.js +1 -1
  274. package/lib/framework/runner.js +1 -1
  275. package/lib/framework/schema-export.js +1 -1
  276. package/lib/framework/supported-flags.js +1 -1
  277. package/lib/framework/types.js +1 -1
  278. package/lib/generated/build-info.d.ts +4 -4
  279. package/lib/generated/build-info.js +1 -1
  280. package/lib/generated/official-routing.js +1 -1
  281. package/lib/generated/routing-contract.js +1 -1
  282. package/lib/help.js +1 -1
  283. package/lib/postinstall.js +1 -1
  284. package/lib/runtime/confirmation.js +1 -1
  285. package/lib/runtime/event.js +1 -1
  286. package/lib/runtime/index.js +1 -1
  287. package/lib/runtime/queue.js +1 -1
  288. package/lib/runtime/resolve.js +1 -1
  289. package/lib/skills/builtin-skill.js +1 -1
  290. package/lib/skills/main.js +1 -1
  291. package/lib/skills/npx-skills-add.js +1 -1
  292. package/lib/skills/skill-presence.js +1 -1
  293. package/lib/telemetry/cli-command-trace.js +1 -1
  294. package/lib/telemetry/cli-help-trace.js +1 -1
  295. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  296. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  297. package/lib/telemetry/send-cli-trace-log.js +1 -1
  298. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  299. package/lib/utils/ai_config.js +1 -1
  300. package/lib/utils/apply-jq-filter.js +1 -1
  301. package/lib/utils/cdn-config.js +1 -1
  302. package/lib/utils/check-sdk-version.js +1 -1
  303. package/lib/utils/cli-version-check.js +1 -1
  304. package/lib/utils/cli-version-policy.js +1 -1
  305. package/lib/utils/config.js +1 -1
  306. package/lib/utils/entity-with-id.js +1 -1
  307. package/lib/utils/file-utils.js +1 -1
  308. package/lib/utils/guides-cdn.js +1 -1
  309. package/lib/utils/http-client.js +1 -1
  310. package/lib/utils/is-non-interactive.js +1 -1
  311. package/lib/utils/logger.js +1 -1
  312. package/lib/utils/params.js +1 -1
  313. package/lib/utils/platform.js +1 -1
  314. package/lib/utils/sleep.js +1 -1
  315. package/lib/utils/template-replacer.js +1 -1
  316. package/lib/utils/update-notice.js +1 -1
  317. package/lib/utils/version.js +1 -1
  318. package/lib/utils/with-active-cookie.js +1 -1
  319. package/lib/utils/write-cli-side-channel.js +1 -1
  320. package/package.json +1 -1
  321. package/skills/rabetbase/SKILL.md +1 -1
  322. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x5d3ac3,_0x13647d){const _0x5ac63d=a288_0x392f,_0x30780a=_0x5d3ac3();while(!![]){try{const _0x44e550=parseInt(_0x5ac63d(0xe0))/0x1+parseInt(_0x5ac63d(0xed))/0x2*(-parseInt(_0x5ac63d(0xd9))/0x3)+parseInt(_0x5ac63d(0xf9))/0x4+parseInt(_0x5ac63d(0xe2))/0x5+parseInt(_0x5ac63d(0xe3))/0x6*(parseInt(_0x5ac63d(0xf5))/0x7)+parseInt(_0x5ac63d(0xf8))/0x8+-parseInt(_0x5ac63d(0xf6))/0x9;if(_0x44e550===_0x13647d)break;else _0x30780a['push'](_0x30780a['shift']());}catch(_0x229a75){_0x30780a['push'](_0x30780a['shift']());}}}(a288_0x2415,0x1ba7a));function a288_0x392f(_0x5c1b45,_0x52a7ee){_0x5c1b45=_0x5c1b45-0xd9;const _0x24150c=a288_0x2415();let _0x392f1e=_0x24150c[_0x5c1b45];return _0x392f1e;}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';function a288_0x2415(){const _0x364c86=['768620UcIhcH','9474qxdxQB','format','aborted','rawFlags','reason','riskLevel','risk','service','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','high-risk-write','746fHRbjb','command','execute','AbortError','definition','result','message','data','525CJXUKq','4549068NZcSXe','present','88968yZoqeO','702696IPDROy','isNonInteractive','confirmation','confirm','stringify','411YJmoQL','dry-run','dryRun','Rabetbase\x20invocation\x20aborted.','presentation','signal','args','210883WGzWtQ','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.'];a288_0x2415=function(){return _0x364c86;};return a288_0x2415();}const defaultPresentation={'present'({result:_0x1efe65,command:_0x1b4523,risk:_0x2215fa,dryRun:_0x42ca28}){const _0x1c7efa=a288_0x392f;return JSON[_0x1c7efa(0xfd)]({'ok':_0x1efe65['ok'],'command':_0x1b4523,'risk':_0x2215fa,..._0x42ca28?{'dryRun':!![]}:{},..._0x1efe65[_0x1c7efa(0xf4)]!==undefined?{'data':_0x1efe65[_0x1c7efa(0xf4)]}:{},..._0x1efe65[_0x1c7efa(0xf3)]?{'message':_0x1efe65['message']}:{}});}};export async function invokeRabetbase(_0x18057b,_0x2611c2){const _0x4fcdfc=a288_0x392f;throwIfAborted(_0x2611c2[_0x4fcdfc(0xde)]);const _0x4ee007=await resolveRabetbaseInvocation(_0x18057b),_0x4d905f=canonicalRabetbaseOperation(_0x4ee007['definition']);return await confirmWriteBeforeQueue(_0x4ee007[_0x4fcdfc(0xf1)],_0x4ee007['rawFlags'],_0x4d905f,_0x2611c2),runSerialized(async()=>{const _0x437b49=_0x4fcdfc,_0xf3ebf7={};try{throwIfAborted(_0x2611c2['signal']);const _0x2a4780=buildConfigFromFlags(_0x4ee007[_0x437b49(0xe6)]);!isRoutingRecoveryService(_0x4ee007[_0x437b49(0xf1)][_0x437b49(0xea)])&&await initGlobalEnvironment(_0x2a4780);const _0x9610ad=createPipelineEnv(_0x2a4780,{..._0x4ee007['rawFlags'],'yes':_0x4ee007[_0x437b49(0xf1)]['risk']===_0x437b49(0xec)?!![]:_0x4ee007['rawFlags']['yes'],'nonInteractive':!![]},_0x4ee007[_0x437b49(0xdf)]);_0x9610ad[_0x437b49(0xfa)]=!![],_0x9610ad[_0x437b49(0xe8)]=_0x437b49(0xec);const _0x3fe86c=withAbortSignal(_0x4ee007['definition'],_0x2611c2[_0x437b49(0xde)]),_0x2c4413=createRabetbaseRunnerAdapter({'formatOutput'(_0x4c6850,_0x44df30){const _0x1b7884=_0x437b49;_0xf3ebf7[_0x1b7884(0xf2)]=_0x4c6850,_0xf3ebf7[_0x1b7884(0xee)]=_0x44df30[_0x1b7884(0xee)],_0xf3ebf7['risk']=_0x44df30[_0x1b7884(0xe9)],_0xf3ebf7[_0x1b7884(0xe4)]=_0x44df30[_0x1b7884(0xe4)],_0xf3ebf7[_0x1b7884(0xdb)]=_0x44df30[_0x1b7884(0xdb)]===!![];},async 'confirmHighRisk'(){const _0x38279d=_0x437b49;throw new Error(_0x38279d(0xe1));}});await runCommand(_0x3fe86c,_0x9610ad,_0x2c4413);if(!_0xf3ebf7[_0x437b49(0xf2)]||!_0xf3ebf7['command']||!_0xf3ebf7[_0x437b49(0xe9)]||!_0xf3ebf7['format'])throw new Error(_0x437b49(0xeb));const _0x37a581=_0xf3ebf7[_0x437b49(0xdb)]===!![],_0x43c9a5=_0x2611c2[_0x437b49(0xdd)]??defaultPresentation,_0x3cc1a6={'result':_0xf3ebf7['result'],'command':_0xf3ebf7[_0x437b49(0xee)],'operation':_0x4d905f,'risk':_0xf3ebf7[_0x437b49(0xe9)],'format':_0xf3ebf7[_0x437b49(0xe4)],'dryRun':_0x37a581},_0xae87f7=createRabetbaseWriteMetadata(_0x4ee007[_0x437b49(0xf1)],_0x4d905f,_0xf3ebf7[_0x437b49(0xf2)],_0x37a581);let _0x1c98da;try{_0x1c98da=await _0x43c9a5[_0x437b49(0xf7)](_0x3cc1a6);}catch(_0x3a589c){if(!_0xae87f7||_0x43c9a5===defaultPresentation)throw _0x3a589c;_0x1c98da=await defaultPresentation[_0x437b49(0xf7)](_0x3cc1a6);}return{'operation':_0x4d905f,'risk':_0xf3ebf7[_0x437b49(0xe9)],'mode':_0x37a581?_0x437b49(0xda):_0x437b49(0xef),'result':_0xf3ebf7[_0x437b49(0xf2)],'output':_0x1c98da,..._0xae87f7?{'metadata':_0xae87f7}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x167f86,_0x504d93,_0x3821ea,_0x32bbee){const _0x56f661=a288_0x392f;if(_0x504d93[_0x56f661(0xdb)]===!![]||_0x167f86[_0x56f661(0xe9)]!=='write'&&_0x167f86['risk']!==_0x56f661(0xec))return;await _0x32bbee[_0x56f661(0xfb)][_0x56f661(0xfc)](buildRabetbaseConfirmationRequest(_0x167f86,_0x3821ea,_0x32bbee['signal']));}function withAbortSignal(_0x17157c,_0x24681e){return{..._0x17157c,async 'execute'(_0x11d2c1){const _0x4ea0cc=a288_0x392f;return throwIfAborted(_0x24681e),_0x17157c[_0x4ea0cc(0xef)]({..._0x11d2c1,'signal':_0x24681e});}};}function throwIfAborted(_0x28c2b4){const _0x324190=a288_0x392f;if(_0x28c2b4?.[_0x324190(0xe5)])throw _0x28c2b4[_0x324190(0xe7)]instanceof Error?_0x28c2b4[_0x324190(0xe7)]:new DOMException(_0x324190(0xdc),_0x324190(0xf0));}
1
+ (function(_0x4c040e,_0x57ae4d){const _0x42fb7a=a288_0x5bbe,_0x5034b9=_0x4c040e();while(!![]){try{const _0x27f09c=parseInt(_0x42fb7a(0xf3))/0x1+parseInt(_0x42fb7a(0xd9))/0x2+-parseInt(_0x42fb7a(0xe2))/0x3+parseInt(_0x42fb7a(0xdc))/0x4*(parseInt(_0x42fb7a(0xfa))/0x5)+parseInt(_0x42fb7a(0xf6))/0x6+parseInt(_0x42fb7a(0xe3))/0x7*(parseInt(_0x42fb7a(0xf4))/0x8)+parseInt(_0x42fb7a(0xdf))/0x9*(-parseInt(_0x42fb7a(0xef))/0xa);if(_0x27f09c===_0x57ae4d)break;else _0x5034b9['push'](_0x5034b9['shift']());}catch(_0x37cd3c){_0x5034b9['push'](_0x5034b9['shift']());}}}(a288_0x5252,0x42845));function a288_0x5bbe(_0x427c8b,_0x35a450){_0x427c8b=_0x427c8b-0xd8;const _0x5252d1=a288_0x5252();let _0x5bbe9b=_0x5252d1[_0x427c8b];return _0x5bbe9b;}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:_0x3e13da,command:_0x1786ba,risk:_0x656356,dryRun:_0x5cd572}){const _0x182aa7=a288_0x5bbe;return JSON[_0x182aa7(0xdd)]({'ok':_0x3e13da['ok'],'command':_0x1786ba,'risk':_0x656356,..._0x5cd572?{'dryRun':!![]}:{},..._0x3e13da[_0x182aa7(0xe8)]!==undefined?{'data':_0x3e13da[_0x182aa7(0xe8)]}:{},..._0x3e13da[_0x182aa7(0xd8)]?{'message':_0x3e13da[_0x182aa7(0xd8)]}:{}});}};function a288_0x5252(){const _0x3ae01a=['definition','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','command','126497gMteVN','8lNmsPg','isNonInteractive','657330yTlqyo','presentation','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','yes','5wZmfuD','risk','message','593386HEdEMa','rawFlags','high-risk-write','474484QLooab','stringify','reason','1458ubmDKP','confirmation','result','1195263VVdAuM','3057740SWYwzU','execute','service','riskLevel','dry-run','data','signal','args','AbortError','format','dryRun','present','25760qLispE'];a288_0x5252=function(){return _0x3ae01a;};return a288_0x5252();}export async function invokeRabetbase(_0x338e97,_0x394618){const _0xa7e3b6=a288_0x5bbe;throwIfAborted(_0x394618['signal']);const _0x4e2f8e=await resolveRabetbaseInvocation(_0x338e97),_0x11dbbb=canonicalRabetbaseOperation(_0x4e2f8e[_0xa7e3b6(0xf0)]);return await confirmWriteBeforeQueue(_0x4e2f8e['definition'],_0x4e2f8e[_0xa7e3b6(0xda)],_0x11dbbb,_0x394618),runSerialized(async()=>{const _0x12703f=_0xa7e3b6,_0x5e1ba9={};try{throwIfAborted(_0x394618[_0x12703f(0xe9)]);const _0x2dc559=buildConfigFromFlags(_0x4e2f8e[_0x12703f(0xda)]);!isRoutingRecoveryService(_0x4e2f8e[_0x12703f(0xf0)][_0x12703f(0xe5)])&&await initGlobalEnvironment(_0x2dc559);const _0x19653b=createPipelineEnv(_0x2dc559,{..._0x4e2f8e[_0x12703f(0xda)],'yes':_0x4e2f8e[_0x12703f(0xf0)][_0x12703f(0xfb)]===_0x12703f(0xdb)?!![]:_0x4e2f8e['rawFlags'][_0x12703f(0xf9)],'nonInteractive':!![]},_0x4e2f8e[_0x12703f(0xea)]);_0x19653b[_0x12703f(0xf5)]=!![],_0x19653b[_0x12703f(0xe6)]=_0x12703f(0xdb);const _0x1875a6=withAbortSignal(_0x4e2f8e[_0x12703f(0xf0)],_0x394618[_0x12703f(0xe9)]),_0xa1356e=createRabetbaseRunnerAdapter({'formatOutput'(_0x492795,_0x146223){const _0x13721f=_0x12703f;_0x5e1ba9[_0x13721f(0xe1)]=_0x492795,_0x5e1ba9[_0x13721f(0xf2)]=_0x146223[_0x13721f(0xf2)],_0x5e1ba9['risk']=_0x146223[_0x13721f(0xfb)],_0x5e1ba9[_0x13721f(0xec)]=_0x146223['format'],_0x5e1ba9['dryRun']=_0x146223[_0x13721f(0xed)]===!![];},async 'confirmHighRisk'(){const _0x189452=_0x12703f;throw new Error(_0x189452(0xf1));}});await runCommand(_0x1875a6,_0x19653b,_0xa1356e);if(!_0x5e1ba9[_0x12703f(0xe1)]||!_0x5e1ba9['command']||!_0x5e1ba9['risk']||!_0x5e1ba9[_0x12703f(0xec)])throw new Error(_0x12703f(0xf8));const _0x1ca923=_0x5e1ba9['dryRun']===!![],_0x4a74a3=_0x394618[_0x12703f(0xf7)]??defaultPresentation,_0x5da670={'result':_0x5e1ba9['result'],'command':_0x5e1ba9[_0x12703f(0xf2)],'operation':_0x11dbbb,'risk':_0x5e1ba9[_0x12703f(0xfb)],'format':_0x5e1ba9[_0x12703f(0xec)],'dryRun':_0x1ca923},_0x4bb61=createRabetbaseWriteMetadata(_0x4e2f8e[_0x12703f(0xf0)],_0x11dbbb,_0x5e1ba9[_0x12703f(0xe1)],_0x1ca923);let _0x52fe22;try{_0x52fe22=await _0x4a74a3[_0x12703f(0xee)](_0x5da670);}catch(_0x245f5f){if(!_0x4bb61||_0x4a74a3===defaultPresentation)throw _0x245f5f;_0x52fe22=await defaultPresentation[_0x12703f(0xee)](_0x5da670);}return{'operation':_0x11dbbb,'risk':_0x5e1ba9[_0x12703f(0xfb)],'mode':_0x1ca923?_0x12703f(0xe7):_0x12703f(0xe4),'result':_0x5e1ba9['result'],'output':_0x52fe22,..._0x4bb61?{'metadata':_0x4bb61}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x218320,_0x4f477b,_0x2f4952,_0x4a45c7){const _0x198570=a288_0x5bbe;if(_0x4f477b[_0x198570(0xed)]===!![]||_0x218320['risk']!=='write'&&_0x218320['risk']!==_0x198570(0xdb))return;await _0x4a45c7[_0x198570(0xe0)]['confirm'](buildRabetbaseConfirmationRequest(_0x218320,_0x2f4952,_0x4a45c7[_0x198570(0xe9)]));}function withAbortSignal(_0x4d6fc2,_0x2b0059){return{..._0x4d6fc2,async 'execute'(_0x6df49){const _0x681605=a288_0x5bbe;return throwIfAborted(_0x2b0059),_0x4d6fc2[_0x681605(0xe4)]({..._0x6df49,'signal':_0x2b0059});}};}function throwIfAborted(_0x4b8b56){const _0x1aa8bc=a288_0x5bbe;if(_0x4b8b56?.['aborted'])throw _0x4b8b56[_0x1aa8bc(0xde)]instanceof Error?_0x4b8b56[_0x1aa8bc(0xde)]:new DOMException('Rabetbase\x20invocation\x20aborted.',_0x1aa8bc(0xeb));}
@@ -1 +1 @@
1
- (function(_0x3e1021,_0x3b63fa){const _0x3efdd4=a289_0xa06c,_0x30052b=_0x3e1021();while(!![]){try{const _0x5e2d53=parseInt(_0x3efdd4(0x125))/0x1+-parseInt(_0x3efdd4(0x12a))/0x2*(-parseInt(_0x3efdd4(0x12b))/0x3)+-parseInt(_0x3efdd4(0x123))/0x4*(parseInt(_0x3efdd4(0x128))/0x5)+parseInt(_0x3efdd4(0x129))/0x6+-parseInt(_0x3efdd4(0x126))/0x7+-parseInt(_0x3efdd4(0x127))/0x8+-parseInt(_0x3efdd4(0x124))/0x9*(-parseInt(_0x3efdd4(0x122))/0xa);if(_0x5e2d53===_0x3b63fa)break;else _0x30052b['push'](_0x30052b['shift']());}catch(_0x2adf8e){_0x30052b['push'](_0x30052b['shift']());}}}(a289_0x243a,0xc9c94));let tail=Promise['resolve']();function a289_0xa06c(_0x136dcf,_0x56e045){_0x136dcf=_0x136dcf-0x122;const _0x243a32=a289_0x243a();let _0xa06c34=_0x243a32[_0x136dcf];return _0xa06c34;}export async function runSerialized(_0x141576){const _0x270c91=tail;let _0x8da006;tail=new Promise(_0x2c409d=>{_0x8da006=_0x2c409d;}),await _0x270c91['catch'](()=>undefined);try{return await _0x141576();}finally{_0x8da006();}}function a289_0x243a(){const _0x566454=['14LeLLGF','257787GhRpWR','14880dICoHH','54024bxtNFt','11511VqvSok','1228428PuVSyW','2142175qWzdkZ','10049384MxcdVd','535lYhLtQ','604638mHiqUu'];a289_0x243a=function(){return _0x566454;};return a289_0x243a();}
1
+ function a289_0x56f5(){const _0xd3ea4f=['204960xkThnK','resolve','282708jLHvTq','2429705OXWHfq','catch','319ploTrG','162DLwEUf','10ggxfNf','3MIUOcu','19817RWTVyq','20RRJaVB','217553SFCvkp','5415032Avuqsb','958428dvjBnW'];a289_0x56f5=function(){return _0xd3ea4f;};return a289_0x56f5();}const a289_0x2c9b57=a289_0x381f;(function(_0x4e5c8d,_0x3a8c86){const _0x5bbca1=a289_0x381f,_0x53c5e3=_0x4e5c8d();while(!![]){try{const _0x1ae9ab=-parseInt(_0x5bbca1(0x13b))/0x1*(parseInt(_0x5bbca1(0x137))/0x2)+-parseInt(_0x5bbca1(0x138))/0x3*(parseInt(_0x5bbca1(0x132))/0x4)+parseInt(_0x5bbca1(0x133))/0x5+-parseInt(_0x5bbca1(0x136))/0x6*(parseInt(_0x5bbca1(0x139))/0x7)+parseInt(_0x5bbca1(0x13c))/0x8+parseInt(_0x5bbca1(0x13d))/0x9*(parseInt(_0x5bbca1(0x13a))/0xa)+parseInt(_0x5bbca1(0x135))/0xb*(parseInt(_0x5bbca1(0x13e))/0xc);if(_0x1ae9ab===_0x3a8c86)break;else _0x53c5e3['push'](_0x53c5e3['shift']());}catch(_0x1ce769){_0x53c5e3['push'](_0x53c5e3['shift']());}}}(a289_0x56f5,0x9b555));let tail=Promise[a289_0x2c9b57(0x13f)]();function a289_0x381f(_0x16eaea,_0x579055){_0x16eaea=_0x16eaea-0x132;const _0x56f526=a289_0x56f5();let _0x381fa1=_0x56f526[_0x16eaea];return _0x381fa1;}export async function runSerialized(_0x19afdc){const _0xe20d1d=a289_0x2c9b57,_0x1b88c8=tail;let _0x33e690;tail=new Promise(_0x5beb6b=>{_0x33e690=_0x5beb6b;}),await _0x1b88c8[_0xe20d1d(0x134)](()=>undefined);try{return await _0x19afdc();}finally{_0x33e690();}}
@@ -1 +1 @@
1
- (function(_0x106cb3,_0x4bda53){const _0x480bf0=a290_0x4eab,_0x3b7ccc=_0x106cb3();while(!![]){try{const _0x1b7c6e=parseInt(_0x480bf0(0x139))/0x1+parseInt(_0x480bf0(0x133))/0x2+-parseInt(_0x480bf0(0x137))/0x3+parseInt(_0x480bf0(0x130))/0x4+parseInt(_0x480bf0(0x12c))/0x5*(-parseInt(_0x480bf0(0x127))/0x6)+parseInt(_0x480bf0(0x134))/0x7*(parseInt(_0x480bf0(0x12f))/0x8)+-parseInt(_0x480bf0(0x135))/0x9;if(_0x1b7c6e===_0x4bda53)break;else _0x3b7ccc['push'](_0x3b7ccc['shift']());}catch(_0x3619d7){_0x3b7ccc['push'](_0x3b7ccc['shift']());}}}(a290_0x2d40,0xf3901));import a290_0x1bd3ab from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a290_0x4eab(_0x427e3d,_0x4c1d06){_0x427e3d=_0x427e3d-0x125;const _0x2d4059=a290_0x2d40();let _0x4eab17=_0x2d4059[_0x427e3d];return _0x4eab17;}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';function a290_0x2d40(){const _0x4e47e0=['Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','130578DCKIgM','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','569649tneFQe','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','validation','unknownCommand','42wYHMPn','defaultCommand','flags','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','message','376385IVuzya','run','join','128gBHEMS','149060fhIrTs','hint','wildcardDef','2967126niQuGl','469889BDiztF','14367699vjDOAh'];a290_0x2d40=function(){return _0x4e47e0;};return a290_0x2d40();}export async function resolveRabetbaseInvocation(_0x455c02){const _0x3d4bda=a290_0x4eab,_0x5689ae=a290_0x1bd3ab('',{'importMeta':import.meta,'argv':[..._0x455c02],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x250825=[..._0x5689ae['input']],_0x35918c=_0x5689ae[_0x3d4bda(0x129)],_0x731fc7=_0x250825[0x0];if(!_0x731fc7)throw CliErrors[_0x3d4bda(0x125)](_0x3d4bda(0x12a));const _0x2b016a=resolveRemovedCommand(_0x731fc7,_0x250825[0x1]);if(_0x2b016a)throw CliErrors[_0x3d4bda(0x125)](_0x2b016a[_0x3d4bda(0x12b)],_0x2b016a[_0x3d4bda(0x131)]);if(_0x731fc7===_0x3d4bda(0x12d))throw CliErrors[_0x3d4bda(0x125)](_0x3d4bda(0x138),_0x3d4bda(0x136));if(!isKnownService(_0x731fc7))throw CliErrors['unknownCommand'](_0x250825[_0x3d4bda(0x12e)]('\x20'));const _0xf38ec5=getServiceEntry(_0x731fc7),_0x195645=_0x250825[0x1],_0x2df7cf=_0x195645||_0xf38ec5[_0x3d4bda(0x128)];if(!_0x2df7cf){if(_0xf38ec5[_0x3d4bda(0x132)])return{'definition':_0xf38ec5[_0x3d4bda(0x132)],'rawFlags':_0x35918c,'args':[]};throw CliErrors['validation'](_0x3d4bda(0x13a)+_0x731fc7+'\x22.');}const _0x47e253=findDefinition(_0x731fc7,_0x2df7cf);if(_0x47e253)return assertSupportedCommandFlags(_0x47e253,_0x35918c),{'definition':_0x47e253,'rawFlags':_0x35918c,'args':_0x250825['slice'](0x2)};if(_0xf38ec5[_0x3d4bda(0x132)])return{'definition':_0xf38ec5['wildcardDef'],'rawFlags':_0x35918c,'args':[_0x2df7cf,..._0x250825['slice'](0x2)]};throw CliErrors[_0x3d4bda(0x126)](_0x731fc7+'\x20'+_0x2df7cf);}
1
+ (function(_0x5c673a,_0x5e0258){const _0x17f4e3=a290_0x40dc,_0x25681b=_0x5c673a();while(!![]){try{const _0x41e2c8=-parseInt(_0x17f4e3(0xa3))/0x1*(parseInt(_0x17f4e3(0x9e))/0x2)+-parseInt(_0x17f4e3(0x9c))/0x3+parseInt(_0x17f4e3(0x96))/0x4*(-parseInt(_0x17f4e3(0x90))/0x5)+-parseInt(_0x17f4e3(0x99))/0x6*(parseInt(_0x17f4e3(0x91))/0x7)+parseInt(_0x17f4e3(0x95))/0x8+-parseInt(_0x17f4e3(0x93))/0x9+parseInt(_0x17f4e3(0x98))/0xa*(parseInt(_0x17f4e3(0x9b))/0xb);if(_0x41e2c8===_0x5e0258)break;else _0x25681b['push'](_0x25681b['shift']());}catch(_0xbf1ea7){_0x25681b['push'](_0x25681b['shift']());}}}(a290_0x48c7,0x4d349));function a290_0x40dc(_0x20825d,_0x19419c){_0x20825d=_0x20825d-0x8f;const _0x48c74d=a290_0x48c7();let _0x40dc09=_0x48c74d[_0x20825d];return _0x40dc09;}import a290_0x1388e9 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';export async function resolveRabetbaseInvocation(_0x3f8a8e){const _0x27200d=a290_0x40dc,_0x362d36=a290_0x1388e9('',{'importMeta':import.meta,'argv':[..._0x3f8a8e],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x331ed5=[..._0x362d36[_0x27200d(0x94)]],_0xd374ab=_0x362d36['flags'],_0x2d968d=_0x331ed5[0x0];if(!_0x2d968d)throw CliErrors[_0x27200d(0x9a)](_0x27200d(0xa2));const _0x445349=resolveRemovedCommand(_0x2d968d,_0x331ed5[0x1]);if(_0x445349)throw CliErrors[_0x27200d(0x9a)](_0x445349['message'],_0x445349[_0x27200d(0x97)]);if(_0x2d968d==='run')throw CliErrors['validation']('`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.',_0x27200d(0x92));if(!isKnownService(_0x2d968d))throw CliErrors[_0x27200d(0x9f)](_0x331ed5[_0x27200d(0xa1)]('\x20'));const _0x513576=getServiceEntry(_0x2d968d),_0x214d7c=_0x331ed5[0x1],_0x3069d4=_0x214d7c||_0x513576['defaultCommand'];if(!_0x3069d4){if(_0x513576['wildcardDef'])return{'definition':_0x513576[_0x27200d(0x9d)],'rawFlags':_0xd374ab,'args':[]};throw CliErrors[_0x27200d(0x9a)](_0x27200d(0x8f)+_0x2d968d+'\x22.');}const _0x4f1276=findDefinition(_0x2d968d,_0x3069d4);if(_0x4f1276)return assertSupportedCommandFlags(_0x4f1276,_0xd374ab),{'definition':_0x4f1276,'rawFlags':_0xd374ab,'args':_0x331ed5[_0x27200d(0xa0)](0x2)};if(_0x513576[_0x27200d(0x9d)])return{'definition':_0x513576[_0x27200d(0x9d)],'rawFlags':_0xd374ab,'args':[_0x3069d4,..._0x331ed5[_0x27200d(0xa0)](0x2)]};throw CliErrors['unknownCommand'](_0x2d968d+'\x20'+_0x3069d4);}function a290_0x48c7(){const _0xda3cdf=['1979335XewLXQ','865991rQJEwv','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','265797fXzZqI','input','3994528kfGFlw','4QrVvoO','hint','35940yAGTJL','6hMHBnc','validation','3179DwZxFe','1235487VpUscS','wildcardDef','2ZjBNsZ','unknownCommand','slice','join','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','260807XhSjRI','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'];a290_0x48c7=function(){return _0xda3cdf;};return a290_0x48c7();}
@@ -1 +1 @@
1
- (function(_0x3304c4,_0x39d63e){const _0x491ff6=a292_0x478c,_0x5f2428=_0x3304c4();while(!![]){try{const _0x557174=-parseInt(_0x491ff6(0x17b))/0x1+parseInt(_0x491ff6(0x160))/0x2*(parseInt(_0x491ff6(0x16d))/0x3)+-parseInt(_0x491ff6(0x149))/0x4*(parseInt(_0x491ff6(0x165))/0x5)+parseInt(_0x491ff6(0x169))/0x6+parseInt(_0x491ff6(0x179))/0x7+parseInt(_0x491ff6(0x15b))/0x8*(-parseInt(_0x491ff6(0x147))/0x9)+parseInt(_0x491ff6(0x14c))/0xa*(parseInt(_0x491ff6(0x17c))/0xb);if(_0x557174===_0x39d63e)break;else _0x5f2428['push'](_0x5f2428['shift']());}catch(_0x4fc46d){_0x5f2428['push'](_0x5f2428['shift']());}}}(a292_0x5d61,0x29a6d));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';function a292_0x5d61(){const _0x5af92c=['isDirectory','root','present','name','14HRsLht','Unsafe\x20manifest\x20path:\x20','schemaVersion','length','path','122545cRwIXZ','digest','state','missing','1468848oflzmI','pipe','unverifiable','version','33276ZPobVQ','flatMap','unknown','content_mismatch','skills@latest\x20exited\x20','status','package.json','skills','absent','version_mismatch','stdio','home','409920teTyDq','packageVersion','80360qIsXRm','22yazKPk','update','sha256','SKILL.md','Installed\x20Skill\x20state\x20is\x20','packageRoot','error','current','SOURCE_INVALID','isSymbolicLink','join','252ztQfcN','trim','36MWrMby','files','isFile','1053410tKnKmy','includes','installedPath','rabetbase.manifest.json','utf8','sort','match','message','skillVersion','split','Unsupported\x20Skill\x20entry:\x20','reason','parse','hex',':\x5cs*(.+)$','34328gWSMBB'];a292_0x5d61=function(){return _0x5af92c;};return a292_0x5d61();}import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND='rabetbase\x20cli-skill\x20install',SKILL_NAME='rabetbase';function frontmatterValue(_0x4b22a1,_0x48b202){const _0x1b9dd8=a292_0x478c;return _0x4b22a1[_0x1b9dd8(0x152)](new RegExp('^'+_0x48b202+_0x1b9dd8(0x15a),'m'))?.[0x1]?.[_0x1b9dd8(0x148)]()??'';}function listFiles(_0x3b595f,_0x1fe5c1=_0x3b595f){const _0x132960=a292_0x478c;return readdirSync(_0x1fe5c1,{'withFileTypes':!![]})[_0x132960(0x16e)](_0x7d5f63=>{const _0x5a5c6d=_0x132960,_0x4eee81=join(_0x1fe5c1,_0x7d5f63[_0x5a5c6d(0x15f)]),_0x3cbf3d=lstatSync(_0x4eee81);if(_0x3cbf3d[_0x5a5c6d(0x145)]())throw new Error('Symbolic\x20link\x20is\x20not\x20allowed:\x20'+_0x4eee81);if(_0x3cbf3d[_0x5a5c6d(0x15c)]())return listFiles(_0x3b595f,_0x4eee81);if(!_0x3cbf3d[_0x5a5c6d(0x14b)]())throw new Error(_0x5a5c6d(0x156)+_0x4eee81);return[relative(_0x3b595f,_0x4eee81)[_0x5a5c6d(0x155)](sep)[_0x5a5c6d(0x146)]('/')];})[_0x132960(0x151)]((_0x79315e,_0x17859c)=>_0x79315e<_0x17859c?-0x1:_0x79315e>_0x17859c?0x1:0x0);}function digestFiles(_0x360716,_0x4c21d9){const _0x4b80f5=a292_0x478c,_0x191431=createHash(_0x4b80f5(0x17e));for(const _0x27907e of _0x4c21d9){if(_0x27907e['startsWith']('/')||_0x27907e[_0x4b80f5(0x155)]('/')['includes']('..')||_0x27907e[_0x4b80f5(0x14d)]('\x5c'))throw new Error(_0x4b80f5(0x161)+_0x27907e);_0x191431[_0x4b80f5(0x17d)](_0x27907e),_0x191431[_0x4b80f5(0x17d)]('\x00'),_0x191431[_0x4b80f5(0x17d)](readFileSync(join(_0x360716,..._0x27907e[_0x4b80f5(0x155)]('/')))),_0x191431['update']('\x00');}return _0x191431[_0x4b80f5(0x166)](_0x4b80f5(0x159));}function sameFiles(_0x84b4cc,_0x5812bd){const _0xb2e66b=a292_0x478c;return _0x84b4cc[_0xb2e66b(0x163)]===_0x5812bd[_0xb2e66b(0x163)]&&_0x84b4cc['every']((_0x5583fd,_0x1e947c)=>_0x5583fd===_0x5812bd[_0x1e947c]);}function readSource(_0x336540){const _0x5ca4e7=a292_0x478c,_0x156b42=JSON['parse'](readFileSync(join(_0x336540,_0x5ca4e7(0x173)),_0x5ca4e7(0x150))),_0x3c9641=JSON[_0x5ca4e7(0x158)](readFileSync(join(_0x336540,'skills',_0x5ca4e7(0x14f)),_0x5ca4e7(0x150))),_0x16cf0e=join(_0x336540,_0x5ca4e7(0x174),SKILL_NAME),_0x511a57=frontmatterValue(readFileSync(join(_0x16cf0e,_0x5ca4e7(0x17f)),_0x5ca4e7(0x150)),_0x5ca4e7(0x16c)),_0x34967c=listFiles(_0x16cf0e);if(_0x3c9641[_0x5ca4e7(0x162)]!==0x1||_0x3c9641[_0x5ca4e7(0x15f)]!==SKILL_NAME||!_0x156b42[_0x5ca4e7(0x16c)]||_0x3c9641['packageVersion']!==_0x156b42['version']||_0x3c9641[_0x5ca4e7(0x154)]!==_0x156b42[_0x5ca4e7(0x16c)]||_0x511a57!==_0x156b42[_0x5ca4e7(0x16c)]||!sameFiles(_0x34967c,_0x3c9641[_0x5ca4e7(0x14a)])||digestFiles(_0x16cf0e,_0x34967c)!==_0x3c9641[_0x5ca4e7(0x166)])throw new Error('Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest');return{'packageVersion':_0x156b42[_0x5ca4e7(0x16c)],'skillVersion':_0x511a57,'root':_0x16cf0e,'manifest':_0x3c9641};}function a292_0x478c(_0xdabdb3,_0x5dc5bd){_0xdabdb3=_0xdabdb3-0x143;const _0x5d6112=a292_0x5d61();let _0x478c4d=_0x5d6112[_0xdabdb3];return _0x478c4d;}function installedSkillPath(_0x5d24e6){const _0x599314=a292_0x478c,_0x1ec3fd=resolveInstalledSkill(SKILL_NAME,{'home':_0x5d24e6});if(_0x1ec3fd['state']==='present')return{'state':_0x599314(0x15e),'path':dirname(_0x1ec3fd[_0x599314(0x164)])};if(_0x1ec3fd[_0x599314(0x167)]===_0x599314(0x175))return{'state':_0x599314(0x168)};return{'state':'unverifiable','reason':_0x1ec3fd[_0x599314(0x157)]};}export function inspectInstalledBuiltinSkillVersion(_0x160100,_0x18624b={}){const _0x183642=a292_0x478c,_0x3c1af4=installedSkillPath(_0x18624b[_0x183642(0x178)]??homedir());if(_0x3c1af4['state']==='missing')return{'state':_0x183642(0x168),'expectedVersion':_0x160100,'repairCommand':REPAIR_COMMAND};if(_0x3c1af4[_0x183642(0x167)]==='unverifiable')return{'state':'unverifiable','expectedVersion':_0x160100,'reason':_0x3c1af4[_0x183642(0x157)],'repairCommand':REPAIR_COMMAND};try{const _0xc88e41=frontmatterValue(readFileSync(join(_0x3c1af4[_0x183642(0x164)],_0x183642(0x17f)),'utf8'),_0x183642(0x16c));return{'state':_0xc88e41===_0x160100?'current':_0x183642(0x176),'expectedVersion':_0x160100,'skillVersion':_0xc88e41,'installedPath':_0x3c1af4[_0x183642(0x164)],'repairCommand':REPAIR_COMMAND};}catch(_0x5a112f){return{'state':_0x183642(0x16b),'expectedVersion':_0x160100,'installedPath':_0x3c1af4[_0x183642(0x164)],'reason':_0x5a112f instanceof Error?_0x5a112f[_0x183642(0x153)]:String(_0x5a112f),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x2f10ac={}){const _0x3466ea=a292_0x478c,_0x5683c2=_0x2f10ac[_0x3466ea(0x181)]??DEFAULT_PACKAGE_ROOT;let _0x3efb25;try{_0x3efb25=readSource(_0x5683c2);}catch(_0x1f6b14){return{'state':_0x3466ea(0x16b),'packageVersion':_0x3466ea(0x16f),'reason':_0x1f6b14 instanceof Error?_0x1f6b14['message']:String(_0x1f6b14),'repairCommand':REPAIR_COMMAND};}const _0x2899b2=installedSkillPath(_0x2f10ac[_0x3466ea(0x178)]??homedir());if(_0x2899b2['state']===_0x3466ea(0x168))return{'state':_0x3466ea(0x168),'packageVersion':_0x3efb25[_0x3466ea(0x17a)],'repairCommand':REPAIR_COMMAND};if(_0x2899b2[_0x3466ea(0x167)]===_0x3466ea(0x16b))return{'state':_0x3466ea(0x16b),'packageVersion':_0x3efb25[_0x3466ea(0x17a)],'reason':_0x2899b2[_0x3466ea(0x157)],'repairCommand':REPAIR_COMMAND};try{const _0x4c464f=frontmatterValue(readFileSync(join(_0x2899b2[_0x3466ea(0x164)],'SKILL.md'),'utf8'),_0x3466ea(0x16c));if(_0x4c464f!==_0x3efb25[_0x3466ea(0x154)])return{'state':'version_mismatch','packageVersion':_0x3efb25[_0x3466ea(0x17a)],'skillVersion':_0x4c464f,'installedPath':_0x2899b2[_0x3466ea(0x164)],'repairCommand':REPAIR_COMMAND};const _0x5ec8c8=listFiles(_0x2899b2[_0x3466ea(0x164)]),_0x43bcba=digestFiles(_0x2899b2[_0x3466ea(0x164)],_0x5ec8c8);return{'state':sameFiles(_0x5ec8c8,_0x3efb25['manifest'][_0x3466ea(0x14a)])&&_0x43bcba===_0x3efb25['manifest'][_0x3466ea(0x166)]?_0x3466ea(0x143):_0x3466ea(0x170),'packageVersion':_0x3efb25[_0x3466ea(0x17a)],'skillVersion':_0x4c464f,'installedPath':_0x2899b2['path'],'digest':_0x43bcba,'repairCommand':REPAIR_COMMAND};}catch(_0x12572a){return{'state':_0x3466ea(0x16b),'packageVersion':_0x3efb25[_0x3466ea(0x17a)],'installedPath':_0x2899b2[_0x3466ea(0x164)],'reason':_0x12572a instanceof Error?_0x12572a[_0x3466ea(0x153)]:String(_0x12572a),'repairCommand':REPAIR_COMMAND};}}function failure(_0x2e06b6,_0x494c96,_0x5a791e,_0x43a6dc){const _0x5c073b=a292_0x478c;return{'ok':![],'code':_0x2e06b6,'packageVersion':_0x494c96[_0x5c073b(0x17a)],'skillVersion':_0x494c96[_0x5c073b(0x154)],'installedPath':_0x43a6dc,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x5a791e instanceof Error?_0x5a791e[_0x5c073b(0x153)]:String(_0x5a791e)};}export function installBuiltinSkill(_0x377604={}){const _0x4c8270=a292_0x478c,_0x57db21=_0x377604[_0x4c8270(0x181)]??DEFAULT_PACKAGE_ROOT,_0x1291a4=_0x377604[_0x4c8270(0x178)]??homedir();let _0x2eef74;try{_0x2eef74=readSource(_0x57db21);}catch(_0x1520dc){return failure(_0x4c8270(0x144),{'packageVersion':_0x4c8270(0x16f),'skillVersion':_0x4c8270(0x16f)},_0x1520dc);}const _0x3d4b0f=inspectBuiltinSkill({'packageRoot':_0x57db21,'home':_0x1291a4}),_0x51c108=runNpxSkillsAddGlobal(_0x57db21,_0x2eef74[_0x4c8270(0x15d)],{'stdio':_0x377604[_0x4c8270(0x177)]??_0x4c8270(0x16a),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x1291a4}});if(_0x51c108['skipped'])return{'ok':!![],'packageVersion':_0x2eef74[_0x4c8270(0x17a)],'skillVersion':_0x2eef74[_0x4c8270(0x154)],'installedPath':_0x3d4b0f['installedPath'],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x51c108['ok'])return failure('INSTALL_FAILED',_0x2eef74,_0x51c108[_0x4c8270(0x182)]??_0x4c8270(0x171)+_0x51c108[_0x4c8270(0x172)]);const _0x5ed240=inspectBuiltinSkill({'packageRoot':_0x57db21,'home':_0x1291a4});if(_0x5ed240[_0x4c8270(0x167)]!==_0x4c8270(0x143))return failure('VERIFY_FAILED',_0x2eef74,_0x5ed240[_0x4c8270(0x157)]??_0x4c8270(0x180)+_0x5ed240[_0x4c8270(0x167)],_0x5ed240[_0x4c8270(0x14e)]);return{'ok':!![],'packageVersion':_0x2eef74[_0x4c8270(0x17a)],'skillVersion':_0x2eef74[_0x4c8270(0x154)],'installedPath':_0x5ed240[_0x4c8270(0x14e)],'changed':_0x3d4b0f[_0x4c8270(0x167)]!=='current','repairCommand':REPAIR_COMMAND};}
1
+ const a292_0x1a529c=a292_0x36d2;(function(_0xa32333,_0x4825b7){const _0x5cc352=a292_0x36d2,_0x17bbec=_0xa32333();while(!![]){try{const _0x2245ce=parseInt(_0x5cc352(0xd9))/0x1*(parseInt(_0x5cc352(0xc6))/0x2)+-parseInt(_0x5cc352(0xb7))/0x3+parseInt(_0x5cc352(0xdc))/0x4*(-parseInt(_0x5cc352(0xe2))/0x5)+-parseInt(_0x5cc352(0xaf))/0x6+-parseInt(_0x5cc352(0xae))/0x7+-parseInt(_0x5cc352(0xd6))/0x8*(-parseInt(_0x5cc352(0xd3))/0x9)+parseInt(_0x5cc352(0xab))/0xa;if(_0x2245ce===_0x4825b7)break;else _0x17bbec['push'](_0x17bbec['shift']());}catch(_0xe29e8b){_0x17bbec['push'](_0x17bbec['shift']());}}}(a292_0x23b1,0x23373));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';function a292_0x23b1(){const _0x15e9aa=['pipe','rabetbase.manifest.json','update','path','3779290mjNqbT','Unsupported\x20Skill\x20entry:\x20','VERIFY_FAILED','13965HiFpwx','1545384OnKhgt','sha256','unverifiable','rabetbase','files','stdio','name','parse','24927auDsuD','digest','present','skipped','Installed\x20Skill\x20state\x20is\x20','hex','current','state','error','unknown','join','installedPath','SOURCE_INVALID','Symbolic\x20link\x20is\x20not\x20allowed:\x20','version','2cdwhis','Unsafe\x20manifest\x20path:\x20','utf8','message','absent','version_mismatch','flatMap','rabetbase\x20cli-skill\x20install','skillVersion','isDirectory','manifest','trim','missing','539046jQBysV','isSymbolicLink','schemaVersion','32pNHEgX','root','reason','24779HNsLCd','includes','split','31748uNaUaC','length','packageVersion','SKILL.md','isFile','home','145hnxpdZ','every','packageRoot'];a292_0x23b1=function(){return _0x15e9aa;};return a292_0x23b1();}import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a292_0x1a529c(0xcd),SKILL_NAME=a292_0x1a529c(0xb2);function frontmatterValue(_0x4dd458,_0x57d81){const _0x203dc5=a292_0x1a529c;return _0x4dd458['match'](new RegExp('^'+_0x57d81+':\x5cs*(.+)$','m'))?.[0x1]?.[_0x203dc5(0xd1)]()??'';}function listFiles(_0x10bb82,_0x52bb2e=_0x10bb82){const _0x2bb1b1=a292_0x1a529c;return readdirSync(_0x52bb2e,{'withFileTypes':!![]})[_0x2bb1b1(0xcc)](_0x4b74bd=>{const _0x46be56=_0x2bb1b1,_0x164b56=join(_0x52bb2e,_0x4b74bd[_0x46be56(0xb5)]),_0x300f7c=lstatSync(_0x164b56);if(_0x300f7c[_0x46be56(0xd4)]())throw new Error(_0x46be56(0xc4)+_0x164b56);if(_0x300f7c[_0x46be56(0xcf)]())return listFiles(_0x10bb82,_0x164b56);if(!_0x300f7c[_0x46be56(0xe0)]())throw new Error(_0x46be56(0xac)+_0x164b56);return[relative(_0x10bb82,_0x164b56)[_0x46be56(0xdb)](sep)[_0x46be56(0xc1)]('/')];})['sort']((_0x447ecc,_0x336c1e)=>_0x447ecc<_0x336c1e?-0x1:_0x447ecc>_0x336c1e?0x1:0x0);}function digestFiles(_0x120bb1,_0x337118){const _0x44f6f4=a292_0x1a529c,_0x40a861=createHash(_0x44f6f4(0xb0));for(const _0xfd5398 of _0x337118){if(_0xfd5398['startsWith']('/')||_0xfd5398['split']('/')['includes']('..')||_0xfd5398[_0x44f6f4(0xda)]('\x5c'))throw new Error(_0x44f6f4(0xc7)+_0xfd5398);_0x40a861[_0x44f6f4(0xa9)](_0xfd5398),_0x40a861[_0x44f6f4(0xa9)]('\x00'),_0x40a861['update'](readFileSync(join(_0x120bb1,..._0xfd5398[_0x44f6f4(0xdb)]('/')))),_0x40a861['update']('\x00');}return _0x40a861[_0x44f6f4(0xb8)](_0x44f6f4(0xbc));}function sameFiles(_0x47bdab,_0x3accea){const _0xce7e69=a292_0x1a529c;return _0x47bdab[_0xce7e69(0xdd)]===_0x3accea[_0xce7e69(0xdd)]&&_0x47bdab[_0xce7e69(0xe3)]((_0x6ce402,_0x16761e)=>_0x6ce402===_0x3accea[_0x16761e]);}function readSource(_0x2cc6ea){const _0x1334bb=a292_0x1a529c,_0x4a34eb=JSON[_0x1334bb(0xb6)](readFileSync(join(_0x2cc6ea,'package.json'),'utf8')),_0x960b1d=JSON[_0x1334bb(0xb6)](readFileSync(join(_0x2cc6ea,'skills',_0x1334bb(0xa8)),'utf8')),_0x1dfeca=join(_0x2cc6ea,'skills',SKILL_NAME),_0x5b1be4=frontmatterValue(readFileSync(join(_0x1dfeca,_0x1334bb(0xdf)),_0x1334bb(0xc8)),'version'),_0x5b40a9=listFiles(_0x1dfeca);if(_0x960b1d[_0x1334bb(0xd5)]!==0x1||_0x960b1d['name']!==SKILL_NAME||!_0x4a34eb[_0x1334bb(0xc5)]||_0x960b1d[_0x1334bb(0xde)]!==_0x4a34eb[_0x1334bb(0xc5)]||_0x960b1d['skillVersion']!==_0x4a34eb[_0x1334bb(0xc5)]||_0x5b1be4!==_0x4a34eb[_0x1334bb(0xc5)]||!sameFiles(_0x5b40a9,_0x960b1d['files'])||digestFiles(_0x1dfeca,_0x5b40a9)!==_0x960b1d['digest'])throw new Error('Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest');return{'packageVersion':_0x4a34eb[_0x1334bb(0xc5)],'skillVersion':_0x5b1be4,'root':_0x1dfeca,'manifest':_0x960b1d};}function installedSkillPath(_0x4d8976){const _0x5d958a=a292_0x1a529c,_0x13ad96=resolveInstalledSkill(SKILL_NAME,{'home':_0x4d8976});if(_0x13ad96['state']===_0x5d958a(0xb9))return{'state':'present','path':dirname(_0x13ad96[_0x5d958a(0xaa)])};if(_0x13ad96['state']===_0x5d958a(0xca))return{'state':_0x5d958a(0xd2)};return{'state':_0x5d958a(0xb1),'reason':_0x13ad96['reason']};}export function inspectInstalledBuiltinSkillVersion(_0x43ff81,_0x225e4f={}){const _0x5ae505=a292_0x1a529c,_0x49e58b=installedSkillPath(_0x225e4f['home']??homedir());if(_0x49e58b['state']===_0x5ae505(0xd2))return{'state':_0x5ae505(0xd2),'expectedVersion':_0x43ff81,'repairCommand':REPAIR_COMMAND};if(_0x49e58b['state']===_0x5ae505(0xb1))return{'state':'unverifiable','expectedVersion':_0x43ff81,'reason':_0x49e58b[_0x5ae505(0xd8)],'repairCommand':REPAIR_COMMAND};try{const _0x1d75df=frontmatterValue(readFileSync(join(_0x49e58b['path'],'SKILL.md'),'utf8'),_0x5ae505(0xc5));return{'state':_0x1d75df===_0x43ff81?_0x5ae505(0xbd):_0x5ae505(0xcb),'expectedVersion':_0x43ff81,'skillVersion':_0x1d75df,'installedPath':_0x49e58b['path'],'repairCommand':REPAIR_COMMAND};}catch(_0x2cf189){return{'state':_0x5ae505(0xb1),'expectedVersion':_0x43ff81,'installedPath':_0x49e58b[_0x5ae505(0xaa)],'reason':_0x2cf189 instanceof Error?_0x2cf189[_0x5ae505(0xc9)]:String(_0x2cf189),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x3813c1={}){const _0x3ae7c4=a292_0x1a529c,_0x2a6123=_0x3813c1[_0x3ae7c4(0xe4)]??DEFAULT_PACKAGE_ROOT;let _0x5423b9;try{_0x5423b9=readSource(_0x2a6123);}catch(_0x3d1033){return{'state':_0x3ae7c4(0xb1),'packageVersion':'unknown','reason':_0x3d1033 instanceof Error?_0x3d1033[_0x3ae7c4(0xc9)]:String(_0x3d1033),'repairCommand':REPAIR_COMMAND};}const _0x3961b9=installedSkillPath(_0x3813c1[_0x3ae7c4(0xe1)]??homedir());if(_0x3961b9[_0x3ae7c4(0xbe)]===_0x3ae7c4(0xd2))return{'state':_0x3ae7c4(0xd2),'packageVersion':_0x5423b9[_0x3ae7c4(0xde)],'repairCommand':REPAIR_COMMAND};if(_0x3961b9[_0x3ae7c4(0xbe)]===_0x3ae7c4(0xb1))return{'state':_0x3ae7c4(0xb1),'packageVersion':_0x5423b9['packageVersion'],'reason':_0x3961b9[_0x3ae7c4(0xd8)],'repairCommand':REPAIR_COMMAND};try{const _0x2decf9=frontmatterValue(readFileSync(join(_0x3961b9['path'],_0x3ae7c4(0xdf)),'utf8'),_0x3ae7c4(0xc5));if(_0x2decf9!==_0x5423b9[_0x3ae7c4(0xce)])return{'state':_0x3ae7c4(0xcb),'packageVersion':_0x5423b9[_0x3ae7c4(0xde)],'skillVersion':_0x2decf9,'installedPath':_0x3961b9[_0x3ae7c4(0xaa)],'repairCommand':REPAIR_COMMAND};const _0x565e0a=listFiles(_0x3961b9['path']),_0x465801=digestFiles(_0x3961b9[_0x3ae7c4(0xaa)],_0x565e0a);return{'state':sameFiles(_0x565e0a,_0x5423b9[_0x3ae7c4(0xd0)][_0x3ae7c4(0xb3)])&&_0x465801===_0x5423b9[_0x3ae7c4(0xd0)][_0x3ae7c4(0xb8)]?_0x3ae7c4(0xbd):'content_mismatch','packageVersion':_0x5423b9[_0x3ae7c4(0xde)],'skillVersion':_0x2decf9,'installedPath':_0x3961b9[_0x3ae7c4(0xaa)],'digest':_0x465801,'repairCommand':REPAIR_COMMAND};}catch(_0x38f26d){return{'state':_0x3ae7c4(0xb1),'packageVersion':_0x5423b9['packageVersion'],'installedPath':_0x3961b9[_0x3ae7c4(0xaa)],'reason':_0x38f26d instanceof Error?_0x38f26d['message']:String(_0x38f26d),'repairCommand':REPAIR_COMMAND};}}function failure(_0x19b265,_0x571cea,_0x375dac,_0x44590d){const _0x1df8ef=a292_0x1a529c;return{'ok':![],'code':_0x19b265,'packageVersion':_0x571cea['packageVersion'],'skillVersion':_0x571cea[_0x1df8ef(0xce)],'installedPath':_0x44590d,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x375dac instanceof Error?_0x375dac[_0x1df8ef(0xc9)]:String(_0x375dac)};}function a292_0x36d2(_0x4159fd,_0x5a0b64){_0x4159fd=_0x4159fd-0xa7;const _0x23b1c8=a292_0x23b1();let _0x36d289=_0x23b1c8[_0x4159fd];return _0x36d289;}export function installBuiltinSkill(_0x2751ae={}){const _0x19b7f3=a292_0x1a529c,_0x1c4dc3=_0x2751ae[_0x19b7f3(0xe4)]??DEFAULT_PACKAGE_ROOT,_0x84041b=_0x2751ae[_0x19b7f3(0xe1)]??homedir();let _0x3b840a;try{_0x3b840a=readSource(_0x1c4dc3);}catch(_0x5cabc6){return failure(_0x19b7f3(0xc3),{'packageVersion':'unknown','skillVersion':_0x19b7f3(0xc0)},_0x5cabc6);}const _0x4cb545=inspectBuiltinSkill({'packageRoot':_0x1c4dc3,'home':_0x84041b}),_0x59aa44=runNpxSkillsAddGlobal(_0x1c4dc3,_0x3b840a[_0x19b7f3(0xd7)],{'stdio':_0x2751ae[_0x19b7f3(0xb4)]??_0x19b7f3(0xa7),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x84041b}});if(_0x59aa44[_0x19b7f3(0xba)])return{'ok':!![],'packageVersion':_0x3b840a[_0x19b7f3(0xde)],'skillVersion':_0x3b840a[_0x19b7f3(0xce)],'installedPath':_0x4cb545[_0x19b7f3(0xc2)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x59aa44['ok'])return failure('INSTALL_FAILED',_0x3b840a,_0x59aa44[_0x19b7f3(0xbf)]??'skills@latest\x20exited\x20'+_0x59aa44['status']);const _0x46d8d4=inspectBuiltinSkill({'packageRoot':_0x1c4dc3,'home':_0x84041b});if(_0x46d8d4[_0x19b7f3(0xbe)]!==_0x19b7f3(0xbd))return failure(_0x19b7f3(0xad),_0x3b840a,_0x46d8d4[_0x19b7f3(0xd8)]??_0x19b7f3(0xbb)+_0x46d8d4[_0x19b7f3(0xbe)],_0x46d8d4[_0x19b7f3(0xc2)]);return{'ok':!![],'packageVersion':_0x3b840a[_0x19b7f3(0xde)],'skillVersion':_0x3b840a[_0x19b7f3(0xce)],'installedPath':_0x46d8d4['installedPath'],'changed':_0x4cb545[_0x19b7f3(0xbe)]!==_0x19b7f3(0xbd),'repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
1
- (function(_0x16f62c,_0x47f198){const _0x360048=a293_0x382d,_0x2d234f=_0x16f62c();while(!![]){try{const _0x2d5165=-parseInt(_0x360048(0x178))/0x1*(-parseInt(_0x360048(0x169))/0x2)+-parseInt(_0x360048(0x16f))/0x3+-parseInt(_0x360048(0x179))/0x4*(-parseInt(_0x360048(0x164))/0x5)+parseInt(_0x360048(0x156))/0x6+parseInt(_0x360048(0x168))/0x7+parseInt(_0x360048(0x160))/0x8*(parseInt(_0x360048(0x167))/0x9)+-parseInt(_0x360048(0x170))/0xa;if(_0x2d5165===_0x47f198)break;else _0x2d234f['push'](_0x2d234f['shift']());}catch(_0x385da1){_0x2d234f['push'](_0x2d234f['shift']());}}}(a293_0x2dd8,0x8b69b));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(_0x65aad7){const _0x4cb1cf=a293_0x382d,_0x1724ff=[];for(const [_0x1ff956,_0x31b108]of Object[_0x4cb1cf(0x155)](_0x65aad7)){if(_0x31b108===!![]){const _0x61a07d=_0x1ff956[_0x4cb1cf(0x173)](/([A-Z])/g,_0x4cb1cf(0x163))[_0x4cb1cf(0x176)]();_0x1724ff['push'](_0x61a07d);}}return _0x1724ff;}function a293_0x382d(_0xf689f1,_0x2ef3e3){_0xf689f1=_0xf689f1-0x153;const _0x2dd821=a293_0x2dd8();let _0x382d1d=_0x2dd821[_0xf689f1];return _0x382d1d;}export function parseDynamicFlags(){const _0x26c348=a293_0x382d,_0x4b6af5=[];for(let _0x54547f=0x3;_0x54547f<process['argv'][_0x26c348(0x171)];_0x54547f++){const _0xf27541=process[_0x26c348(0x161)][_0x54547f];if(_0xf27541&&_0xf27541[_0x26c348(0x172)]('--')){const _0x88601a=_0xf27541[_0x26c348(0x153)](0x2);_0x88601a&&!_0x88601a[_0x26c348(0x15b)]('=')&&_0x4b6af5['push'](_0x88601a);}}return _0x4b6af5;}export function getAllProvidedFlags(_0x130dbe){const _0xe397dd=a293_0x382d,_0x29c1f5=camelCaseFlagsToKebab(_0x130dbe),_0x4553ca=parseDynamicFlags(),_0x4b594d=new Set([..._0x29c1f5,..._0x4553ca]);return Array[_0xe397dd(0x154)](_0x4b594d);}export function normalizeLegacyBffSaveFlags(_0x20b195){const _0x2f2afa=a293_0x382d,_0x38aad6=new Set(_0x20b195);return _0x38aad6[_0x2f2afa(0x159)](_0x2f2afa(0x16b))&&_0x38aad6[_0x2f2afa(0x15a)](_0x2f2afa(0x15d)),Array[_0x2f2afa(0x154)](_0x38aad6);}function a293_0x2dd8(){const _0xa36fa0=['\x0aAvailable\x20commands:','962928hzVyBn','3330922YuSdZN','2ehXEKl','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','dangerously-bff-save','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','--help','error','1525479lLCudP','29102160AFYCAK','length','startsWith','replace','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','help','toLowerCase','skill','1021463iKzGyk','466924yXzBHJ','slice','from','entries','5499810cMurPb','Public\x20Open\x20Skill\x20source:\x20','Error:\x20Unsupported\x20command:\x20','has','add','includes','cwd','enable-bff-save','(empty)','exit','48aULYXr','argv','log','-$1','40oUfFgJ','setLogPath'];a293_0x2dd8=function(){return _0xa36fa0;};return a293_0x2dd8();}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x410b02,_0x150a24,_0x2382ab){const _0x40086e=a293_0x382d;logger[_0x40086e(0x165)](process[_0x40086e(0x15c)]());if(_0x2382ab?.[_0x40086e(0x175)]||_0x410b02===_0x40086e(0x16d)){showHelp();return;}console[_0x40086e(0x16e)](_0x40086e(0x158)+(_0x410b02||_0x40086e(0x15e))),console[_0x40086e(0x162)](_0x40086e(0x166)),console[_0x40086e(0x162)]('\x20\x20'+CLI_BIN_NAME+_0x40086e(0x174)),console[_0x40086e(0x162)](''),console['log'](_0x40086e(0x157)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x40086e(0x16e)](_0x40086e(0x177),'Unsupported\x20command:\x20'+_0x410b02),process[_0x40086e(0x15f)](0x1);}function showHelp(){const _0x391c07=a293_0x382d;console[_0x391c07(0x162)](_0x391c07(0x16a)+CLI_BIN_NAME+_0x391c07(0x16c)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a');}
1
+ (function(_0x2b3ca3,_0xcc255e){const _0x43b2cf=a293_0x261a,_0x30c1a4=_0x2b3ca3();while(!![]){try{const _0x5ee71a=parseInt(_0x43b2cf(0xd8))/0x1+-parseInt(_0x43b2cf(0xcb))/0x2+-parseInt(_0x43b2cf(0xcf))/0x3+-parseInt(_0x43b2cf(0xe0))/0x4+parseInt(_0x43b2cf(0xe7))/0x5*(-parseInt(_0x43b2cf(0xde))/0x6)+-parseInt(_0x43b2cf(0xdf))/0x7+parseInt(_0x43b2cf(0xd2))/0x8;if(_0x5ee71a===_0xcc255e)break;else _0x30c1a4['push'](_0x30c1a4['shift']());}catch(_0x73e525){_0x30c1a4['push'](_0x30c1a4['shift']());}}}(a293_0x57e5,0x3796e));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(_0x61dde0){const _0x3a6db8=a293_0x261a,_0x59b502=[];for(const [_0x4e709e,_0x1e6928]of Object[_0x3a6db8(0xc8)](_0x61dde0)){if(_0x1e6928===!![]){const _0x482a6e=_0x4e709e[_0x3a6db8(0xd6)](/([A-Z])/g,_0x3a6db8(0xd0))[_0x3a6db8(0xe4)]();_0x59b502[_0x3a6db8(0xd4)](_0x482a6e);}}return _0x59b502;}function a293_0x261a(_0xb936ac,_0x231c2c){_0xb936ac=_0xb936ac-0xc7;const _0x57e529=a293_0x57e5();let _0x261a1e=_0x57e529[_0xb936ac];return _0x261a1e;}export function parseDynamicFlags(){const _0x36531a=a293_0x261a,_0x229ff2=[];for(let _0x573086=0x3;_0x573086<process[_0x36531a(0xc7)][_0x36531a(0xe8)];_0x573086++){const _0x3708dc=process[_0x36531a(0xc7)][_0x573086];if(_0x3708dc&&_0x3708dc[_0x36531a(0xca)]('--')){const _0x123ce7=_0x3708dc[_0x36531a(0xd9)](0x2);_0x123ce7&&!_0x123ce7[_0x36531a(0xce)]('=')&&_0x229ff2[_0x36531a(0xd4)](_0x123ce7);}}return _0x229ff2;}export function getAllProvidedFlags(_0x4126c4){const _0x1cabb2=a293_0x261a,_0x20a328=camelCaseFlagsToKebab(_0x4126c4),_0x51e912=parseDynamicFlags(),_0x1a1fa3=new Set([..._0x20a328,..._0x51e912]);return Array[_0x1cabb2(0xe3)](_0x1a1fa3);}function a293_0x57e5(){const _0x388906=['error','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','from','toLowerCase','dangerously-bff-save','help','23655nMNEHW','length','argv','entries','Public\x20Open\x20Skill\x20source:\x20','startsWith','565800eMrnxo','log','\x0aAvailable\x20commands:','includes','203706YDrifn','-$1','cwd','7107984qNRcaA','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','push','enable-bff-save','replace','Error:\x20Unsupported\x20command:\x20','258680FPEuvt','slice','(empty)','Unsupported\x20command:\x20','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','add','438ztVQAb','548646SUpSPt','579764zesasn'];a293_0x57e5=function(){return _0x388906;};return a293_0x57e5();}export function normalizeLegacyBffSaveFlags(_0x2adff6){const _0x10fdf5=a293_0x261a,_0x50a460=new Set(_0x2adff6);return _0x50a460['has'](_0x10fdf5(0xe5))&&_0x50a460[_0x10fdf5(0xdd)](_0x10fdf5(0xd5)),Array[_0x10fdf5(0xe3)](_0x50a460);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x5314a3,_0x5f02f8,_0x562abd){const _0x47b029=a293_0x261a;logger['setLogPath'](process[_0x47b029(0xd1)]());if(_0x562abd?.[_0x47b029(0xe6)]||_0x5314a3==='--help'){showHelp();return;}console[_0x47b029(0xe1)](_0x47b029(0xd7)+(_0x5314a3||_0x47b029(0xda))),console[_0x47b029(0xcc)](_0x47b029(0xcd)),console[_0x47b029(0xcc)]('\x20\x20'+CLI_BIN_NAME+_0x47b029(0xd3)),console[_0x47b029(0xcc)](''),console[_0x47b029(0xcc)](_0x47b029(0xc9)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x47b029(0xe1)]('skill',_0x47b029(0xdb)+_0x5314a3),process['exit'](0x1);}function showHelp(){const _0x21e26e=a293_0x261a;console['log'](_0x21e26e(0xdc)+CLI_BIN_NAME+_0x21e26e(0xe2)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a');}
@@ -1 +1 @@
1
- const a294_0x43f511=a294_0x5cd6;(function(_0x4b0612,_0x3b0178){const _0x51ccf9=a294_0x5cd6,_0x13cef3=_0x4b0612();while(!![]){try{const _0x283e63=-parseInt(_0x51ccf9(0xf7))/0x1*(parseInt(_0x51ccf9(0x119))/0x2)+-parseInt(_0x51ccf9(0x11b))/0x3*(-parseInt(_0x51ccf9(0x11f))/0x4)+-parseInt(_0x51ccf9(0x129))/0x5*(-parseInt(_0x51ccf9(0x106))/0x6)+-parseInt(_0x51ccf9(0x10a))/0x7+-parseInt(_0x51ccf9(0x131))/0x8*(-parseInt(_0x51ccf9(0xfd))/0x9)+parseInt(_0x51ccf9(0x102))/0xa+-parseInt(_0x51ccf9(0x11e))/0xb;if(_0x283e63===_0x3b0178)break;else _0x13cef3['push'](_0x13cef3['shift']());}catch(_0x1ffde2){_0x13cef3['push'](_0x13cef3['shift']());}}}(a294_0x4be9,0x7b3d6));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=a294_0x43f511(0x10f);function a294_0x4be9(){const _0xff9005=['9715288AXDWbN','2595444sYYMbJ','checked','CHILD_EXIT_NONZERO','rabetbase','expectedSkillName','message','stdio','shortMessage','npx','SPAWN_FAILED','2265oIcMrg','remove','PERMISSION_DENIED','Skill\x20\x22','pipe','stdout','npm_config_global','present','4104104UNtnXH','match','SKILL_NOT_INSTALLED','trim','Lovrabet','183405yfNGBs','signal','join','\x22\x20install\x20state:\x20','npx\x20failed\x20to\x20start','CHILD_TERMINATED','9tVGwox','stderr','NPM_CONFIG_GLOBAL','--skill','EACCES','2817300PVbYtt','push','Installer\x20reported\x20','INSTALL_PARTIAL','9474xqOGeN','inherit','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','\x20failed\x20target(s)','260911ALscpt','failed','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','code','skill','skills@latest','filter','absent','NPX_NOT_FOUND','exitCode','npx\x20terminated\x20by\x20signal\x20','state','lovrabet/lovrabet-skill','warn','log','8mSJWCT','ENOENT','3MniBmV','!\x20Could\x20not\x20verify\x20\x22','exit\x20'];a294_0x4be9=function(){return _0xff9005;};return a294_0x4be9();}export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL=a294_0x43f511(0x100);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a294_0x43f511(0x116);export const DEFAULT_RABETBASE_SKILL_NAME=a294_0x43f511(0xf6);export const RABETBASE_GLOBAL_SKILL_NAME=a294_0x43f511(0x122);export const RABETBASE_SKILL_GIT_SOURCE=a294_0x43f511(0x108);export function resolveGlobalSkillName(_0x31b529){const _0x21f836=a294_0x43f511;switch(_0x31b529[_0x21f836(0xf5)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x1653cb){const _0x358bc8=a294_0x43f511,_0x580673=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x1653cb&&_0x580673[_0x358bc8(0x103)](NPX_SKILLS_FLAG_SKILL,_0x1653cb),_0x580673;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a294_0x43f511(0x127),...buildNpxSkillsAddArgv()][a294_0x43f511(0xf9)]('\x20');function a294_0x5cd6(_0x40bcfc,_0x4b41c7){_0x40bcfc=_0x40bcfc-0xf3;const _0x4be91c=a294_0x4be9();let _0x5cd652=_0x4be91c[_0x40bcfc];return _0x5cd652;}export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a294_0x43f511(0x127),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(_0x4207b1,_0x13a472,_0x13c760){return{'ok':![],'status':_0x13a472,'code':_0x4207b1,'error':'['+_0x4207b1+']\x20'+_0x13c760};}function execaOptions(_0x1136c0,_0xa42a4c){const _0x2365d=a294_0x43f511,_0x695e7={...process.env};return delete _0x695e7[_0x2365d(0x12f)],delete _0x695e7[_0x2365d(0xff)],{'cwd':_0x1136c0,'stdio':_0xa42a4c,'env':_0x695e7,'extendEnv':![],'shell':![],'reject':![],..._0xa42a4c===_0x2365d(0x12d)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeExecaResult(_0x5d3149,_0x2ee818,_0x45b429,_0x52b907){const _0x142bc2=a294_0x43f511,_0x59a4c8=[_0x5d3149[_0x142bc2(0x12e)]?String(_0x5d3149['stdout']):'',_0x5d3149[_0x142bc2(0xfe)]?String(_0x5d3149['stderr']):''][_0x142bc2(0x110)](Boolean)[_0x142bc2(0xf9)]('\x0a')[_0x142bc2(0xf5)](),_0x46265c=_0x5d3149[_0x142bc2(0x113)]??null;_0x52b907!==_0x142bc2(0x12d)&&_0x59a4c8&&console[_0x142bc2(0x118)](_0x59a4c8);if(_0x5d3149[_0x142bc2(0x10d)]){const _0x169ed7=_0x5d3149['code']===_0x142bc2(0x11a)?_0x142bc2(0x112):_0x5d3149['code']==='EPERM'||_0x5d3149[_0x142bc2(0x10d)]===_0x142bc2(0x101)?_0x142bc2(0x12b):_0x142bc2(0x128);return failure(_0x169ed7,_0x46265c,_0x5d3149[_0x142bc2(0x126)]??_0x5d3149[_0x142bc2(0x124)]??_0x5d3149[_0x142bc2(0x10d)]);}if(_0x5d3149[_0x142bc2(0xf8)])return failure(_0x142bc2(0xfc),_0x46265c,_0x142bc2(0x114)+_0x5d3149[_0x142bc2(0xf8)]);if(_0x5d3149[_0x142bc2(0x10b)]&&_0x46265c===null)return failure(_0x142bc2(0x128),_0x46265c,_0x5d3149[_0x142bc2(0x126)]??_0x5d3149[_0x142bc2(0x124)]??_0x142bc2(0xfb));if(_0x46265c!==0x0)return failure(_0x142bc2(0x121),_0x46265c,_0x59a4c8||_0x5d3149[_0x142bc2(0x126)]||_0x142bc2(0x11d)+(_0x46265c??'unknown'));const _0x374e13=_0x2ee818?resolveInstalledSkill(_0x2ee818,_0x45b429):undefined,_0x15bb6b=_0x59a4c8[_0x142bc2(0xf3)](/Failed to install\s+(\d+)/i);if(_0x15bb6b&&Number(_0x15bb6b[0x1])>0x0){const _0x497c91=_0x142bc2(0x104)+_0x15bb6b[0x1]+_0x142bc2(0x109)+(_0x59a4c8?':\x0a'+_0x59a4c8:'');if(_0x374e13?.[_0x142bc2(0x115)]===_0x142bc2(0x130))return console[_0x142bc2(0x117)]('!\x20'+_0x497c91),{'ok':!![],'status':0x0};return failure(_0x142bc2(0x105),0x0,_0x497c91);}if(_0x374e13){if(_0x374e13[_0x142bc2(0x115)]===_0x142bc2(0x111))return failure(_0x142bc2(0xf4),0x0,_0x142bc2(0x12c)+_0x2ee818+_0x142bc2(0x10c)+_0x374e13[_0x142bc2(0x120)][_0x142bc2(0xf9)](',\x20')+')');_0x374e13[_0x142bc2(0x115)]==='unverifiable'&&console['warn'](_0x142bc2(0x11c)+_0x2ee818+_0x142bc2(0xfa)+_0x374e13['reason']);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x1c228f,_0x296091){const _0x381869=a294_0x43f511;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4f7f86=_0x296091?.[_0x381869(0x125)]??'inherit',_0x419215=buildNpxSkillsAddArgv(_0x296091?.[_0x381869(0x10e)]),_0x41df10=[_0x381869(0x127),..._0x419215]['join']('\x20');console[_0x381869(0x118)]('*\x20'+_0x41df10);const _0x50d1aa=execaSync(_0x381869(0x127),_0x419215,execaOptions(_0x1c228f,_0x4f7f86));return normalizeExecaResult(_0x50d1aa,undefined,undefined,_0x4f7f86);}export function runNpxSkillsRemove(_0x41a74f,_0x4b97e0,_0x3393a0=LEGACY_RABETBASE_SKILL_SOURCE){const _0x328b70=a294_0x43f511;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5d0682=_0x4b97e0?.[_0x328b70(0x125)]??_0x328b70(0x107),_0xf16122=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x328b70(0x12a),_0x3393a0,NPX_SKILLS_FLAG_SKILL,_0x4b97e0?.[_0x328b70(0x10e)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x4b97e0?.['yes']?['-y']:[]],_0x2da9b2=['npx',..._0xf16122][_0x328b70(0xf9)]('\x20');console[_0x328b70(0x118)]('*\x20'+_0x2da9b2);const _0x11b430=execaSync(_0x328b70(0x127),_0xf16122,execaOptions(_0x41a74f,_0x5d0682));return normalizeExecaResult(_0x11b430,undefined,undefined,_0x5d0682);}export function runNpxSkillsAddGlobal(_0x381813,_0x58317f,_0x16dff5){const _0x3fcc81=a294_0x43f511;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x41f44e=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x58317f,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x323b5e=[_0x3fcc81(0x127),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x58317f,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x3fcc81(0xf9)]('\x20');console[_0x3fcc81(0x118)]('*\x20'+_0x323b5e);const _0x348dd7=execaSync('npx',_0x41f44e,execaOptions(_0x381813,_0x3fcc81(0x12d)));return normalizeExecaResult(_0x348dd7,_0x16dff5?.[_0x3fcc81(0x123)]??resolveGlobalSkillName(_0x58317f),_0x16dff5?.['presence'],_0x16dff5?.['stdio']);}
1
+ const a294_0x57bc7b=a294_0x97a3;(function(_0x332067,_0x40d208){const _0x157b5e=a294_0x97a3,_0x1fe66c=_0x332067();while(!![]){try{const _0x1c0e03=parseInt(_0x157b5e(0x1fd))/0x1*(-parseInt(_0x157b5e(0x1db))/0x2)+-parseInt(_0x157b5e(0x1fe))/0x3*(parseInt(_0x157b5e(0x203))/0x4)+-parseInt(_0x157b5e(0x206))/0x5+parseInt(_0x157b5e(0x200))/0x6+-parseInt(_0x157b5e(0x1e9))/0x7+parseInt(_0x157b5e(0x1f8))/0x8+parseInt(_0x157b5e(0x204))/0x9;if(_0x1c0e03===_0x40d208)break;else _0x1fe66c['push'](_0x1fe66c['shift']());}catch(_0x3c5fed){_0x1fe66c['push'](_0x1fe66c['shift']());}}}(a294_0x49da,0x995fb));import{execaSync}from'execa';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';function a294_0x97a3(_0x575ec4,_0x1287e0){_0x575ec4=_0x575ec4-0x1d8;const _0x49dad8=a294_0x49da();let _0x97a356=_0x49dad8[_0x575ec4];return _0x97a356;}export const NPX_SKILLS_CLI=a294_0x57bc7b(0x1e8);export const NPX_SKILLS_SUBCOMMAND_ADD=a294_0x57bc7b(0x1f7);export const NPX_SKILLS_FLAG_SKILL=a294_0x57bc7b(0x208);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a294_0x57bc7b(0x209);export const DEFAULT_RABETBASE_SKILL_NAME=a294_0x57bc7b(0x1f9);export const RABETBASE_GLOBAL_SKILL_NAME=a294_0x57bc7b(0x1ee);export const RABETBASE_SKILL_GIT_SOURCE=a294_0x57bc7b(0x1dc);export function resolveGlobalSkillName(_0x38d843){const _0x2f9083=a294_0x57bc7b;switch(_0x38d843[_0x2f9083(0x210)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x3ba5aa){const _0x3a63af=a294_0x57bc7b,_0x42658c=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x3ba5aa&&_0x42658c[_0x3a63af(0x201)](NPX_SKILLS_FLAG_SKILL,_0x3ba5aa),_0x42658c;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a294_0x57bc7b(0x1f5),...buildNpxSkillsAddArgv()][a294_0x57bc7b(0x1e3)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a294_0x57bc7b(0x1f5),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a294_0x57bc7b(0x1e3)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x13edc5,_0xf9485f,_0x542747){return{'ok':![],'status':_0xf9485f,'code':_0x13edc5,'error':'['+_0x13edc5+']\x20'+_0x542747};}function execaOptions(_0x1e612a,_0x269718){const _0x476979=a294_0x57bc7b,_0x27c1a0={...process.env};return delete _0x27c1a0[_0x476979(0x1f1)],delete _0x27c1a0[_0x476979(0x1f6)],{'cwd':_0x1e612a,'stdio':_0x269718,'env':_0x27c1a0,'extendEnv':![],'shell':![],'reject':![],..._0x269718==='pipe'?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function a294_0x49da(){const _0x19bfdf=['remove','absent','PERMISSION_DENIED','presence','rabetbase','shortMessage','Installer\x20reported\x20','npm_config_global','CHILD_EXIT_NONZERO','INSTALL_PARTIAL','stdout','npx','NPM_CONFIG_GLOBAL','add','6998976SUuMmY','Lovrabet','SPAWN_FAILED','code','CHILD_TERMINATED','1zyYlFS','15426sIHLAW','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','1845624fKrwuS','push','unknown','540kiQVvO','27798318gmJmTs','inherit','5330545KBkmGt','expectedSkillName','--skill','lovrabet/lovrabet-skill','filter','state','failed','pipe','SKILL_NOT_INSTALLED','\x22\x20install\x20state:\x20','trim','reason','Skill\x20\x22','present','\x20failed\x20target(s)','!\x20Could\x20not\x20verify\x20\x22','2210026atHCyX','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','npx\x20terminated\x20by\x20signal\x20','EACCES','ENOENT','log','skill','stdio','join','exit\x20','stderr','npx\x20failed\x20to\x20start','yes','skills@latest','5443669eGbDQX'];a294_0x49da=function(){return _0x19bfdf;};return a294_0x49da();}function normalizeExecaResult(_0x2e6da0,_0x399582,_0x446f39,_0x41296b){const _0x375fc4=a294_0x57bc7b,_0x255a00=[_0x2e6da0[_0x375fc4(0x1f4)]?String(_0x2e6da0['stdout']):'',_0x2e6da0[_0x375fc4(0x1e5)]?String(_0x2e6da0[_0x375fc4(0x1e5)]):''][_0x375fc4(0x20a)](Boolean)['join']('\x0a')[_0x375fc4(0x210)](),_0x4db5b8=_0x2e6da0['exitCode']??null;_0x41296b!==_0x375fc4(0x20d)&&_0x255a00&&console['log'](_0x255a00);if(_0x2e6da0['code']){const _0x3be16e=_0x2e6da0[_0x375fc4(0x1fb)]===_0x375fc4(0x1df)?'NPX_NOT_FOUND':_0x2e6da0[_0x375fc4(0x1fb)]==='EPERM'||_0x2e6da0[_0x375fc4(0x1fb)]===_0x375fc4(0x1de)?_0x375fc4(0x1ec):_0x375fc4(0x1fa);return failure(_0x3be16e,_0x4db5b8,_0x2e6da0[_0x375fc4(0x1ef)]??_0x2e6da0['message']??_0x2e6da0[_0x375fc4(0x1fb)]);}if(_0x2e6da0['signal'])return failure(_0x375fc4(0x1fc),_0x4db5b8,_0x375fc4(0x1dd)+_0x2e6da0['signal']);if(_0x2e6da0[_0x375fc4(0x20c)]&&_0x4db5b8===null)return failure('SPAWN_FAILED',_0x4db5b8,_0x2e6da0['shortMessage']??_0x2e6da0['message']??_0x375fc4(0x1e6));if(_0x4db5b8!==0x0)return failure(_0x375fc4(0x1f2),_0x4db5b8,_0x255a00||_0x2e6da0[_0x375fc4(0x1ef)]||_0x375fc4(0x1e4)+(_0x4db5b8??_0x375fc4(0x202)));const _0x5e4cca=_0x399582?resolveInstalledSkill(_0x399582,_0x446f39):undefined,_0x60e41c=_0x255a00['match'](/Failed to install\s+(\d+)/i);if(_0x60e41c&&Number(_0x60e41c[0x1])>0x0){const _0x25a811=_0x375fc4(0x1f0)+_0x60e41c[0x1]+_0x375fc4(0x1d9)+(_0x255a00?':\x0a'+_0x255a00:'');if(_0x5e4cca?.[_0x375fc4(0x20b)]===_0x375fc4(0x1d8))return console['warn']('!\x20'+_0x25a811),{'ok':!![],'status':0x0};return failure(_0x375fc4(0x1f3),0x0,_0x25a811);}if(_0x5e4cca){if(_0x5e4cca['state']===_0x375fc4(0x1eb))return failure(_0x375fc4(0x20e),0x0,_0x375fc4(0x212)+_0x399582+_0x375fc4(0x1ff)+_0x5e4cca['checked'][_0x375fc4(0x1e3)](',\x20')+')');_0x5e4cca['state']==='unverifiable'&&console['warn'](_0x375fc4(0x1da)+_0x399582+_0x375fc4(0x20f)+_0x5e4cca[_0x375fc4(0x211)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x43a891,_0x15851a){const _0x29b9e4=a294_0x57bc7b;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5a41bb=_0x15851a?.[_0x29b9e4(0x1e2)]??_0x29b9e4(0x205),_0x54f0d7=buildNpxSkillsAddArgv(_0x15851a?.[_0x29b9e4(0x1e1)]),_0x2414cb=[_0x29b9e4(0x1f5),..._0x54f0d7][_0x29b9e4(0x1e3)]('\x20');console['log']('*\x20'+_0x2414cb);const _0xa17347=execaSync(_0x29b9e4(0x1f5),_0x54f0d7,execaOptions(_0x43a891,_0x5a41bb));return normalizeExecaResult(_0xa17347,undefined,undefined,_0x5a41bb);}export function runNpxSkillsRemove(_0x710884,_0x599785,_0x1e5c04=LEGACY_RABETBASE_SKILL_SOURCE){const _0x4e397b=a294_0x57bc7b;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x35cec9=_0x599785?.['stdio']??'inherit',_0x24f346=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x4e397b(0x1ea),_0x1e5c04,NPX_SKILLS_FLAG_SKILL,_0x599785?.[_0x4e397b(0x1e1)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x599785?.[_0x4e397b(0x1e7)]?['-y']:[]],_0x479990=[_0x4e397b(0x1f5),..._0x24f346][_0x4e397b(0x1e3)]('\x20');console['log']('*\x20'+_0x479990);const _0x6be7be=execaSync(_0x4e397b(0x1f5),_0x24f346,execaOptions(_0x710884,_0x35cec9));return normalizeExecaResult(_0x6be7be,undefined,undefined,_0x35cec9);}export function runNpxSkillsAddGlobal(_0xc2b6b,_0x446a6e,_0x2f1496){const _0x40f145=a294_0x57bc7b;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x44b430=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x446a6e,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x3e08ec=[_0x40f145(0x1f5),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x446a6e,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x40f145(0x1e3)]('\x20');console[_0x40f145(0x1e0)]('*\x20'+_0x3e08ec);const _0x2681f0=execaSync(_0x40f145(0x1f5),_0x44b430,execaOptions(_0xc2b6b,_0x40f145(0x20d)));return normalizeExecaResult(_0x2681f0,_0x2f1496?.[_0x40f145(0x207)]??resolveGlobalSkillName(_0x446a6e),_0x2f1496?.[_0x40f145(0x1ed)],_0x2f1496?.[_0x40f145(0x1e2)]);}
@@ -1 +1 @@
1
- const a295_0x116f03=a295_0x3f63;(function(_0x40052e,_0x80ef7){const _0x11b40f=a295_0x3f63,_0x54701c=_0x40052e();while(!![]){try{const _0x147917=-parseInt(_0x11b40f(0x1a2))/0x1*(-parseInt(_0x11b40f(0x1aa))/0x2)+-parseInt(_0x11b40f(0x18f))/0x3*(parseInt(_0x11b40f(0x1a7))/0x4)+-parseInt(_0x11b40f(0x19c))/0x5+-parseInt(_0x11b40f(0x1a4))/0x6+parseInt(_0x11b40f(0x197))/0x7+parseInt(_0x11b40f(0x188))/0x8+-parseInt(_0x11b40f(0x19e))/0x9*(-parseInt(_0x11b40f(0x191))/0xa);if(_0x147917===_0x80ef7)break;else _0x54701c['push'](_0x54701c['shift']());}catch(_0x4227ac){_0x54701c['push'](_0x54701c['shift']());}}}(a295_0x52f6,0x6944b));function a295_0x3f63(_0x23c5f,_0x525a95){_0x23c5f=_0x23c5f-0x187;const _0x52f606=a295_0x52f6();let _0x3f63ea=_0x52f606[_0x23c5f];return _0x3f63ea;}import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join('.agents',a295_0x116f03(0x1a1));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a295_0x116f03(0x1a0),a295_0x116f03(0x198)),join('.claude',a295_0x116f03(0x198))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x34f964,_0x64b382){const _0x2d4fe1=a295_0x116f03;if(!existsSync(_0x34f964))return{'kind':'not-recorded'};let _0xc2d272;try{_0xc2d272=JSON['parse'](readFileSync(_0x34f964,_0x2d4fe1(0x19f)));}catch(_0x341c73){return{'kind':_0x2d4fe1(0x1a8),'reason':_0x34f964+_0x2d4fe1(0x199)+_0x341c73[_0x2d4fe1(0x18c)]};}const _0x520130=_0xc2d272;if(typeof _0x520130?.[_0x2d4fe1(0x19b)]!=='number'||!SUPPORTED_LOCK_VERSIONS[_0x2d4fe1(0x187)](_0x520130[_0x2d4fe1(0x19b)]))return{'kind':_0x2d4fe1(0x1a8),'reason':_0x34f964+_0x2d4fe1(0x1ab)+String(_0x520130?.[_0x2d4fe1(0x19b)])};if(!_0x520130[_0x2d4fe1(0x198)]||typeof _0x520130[_0x2d4fe1(0x198)]!==_0x2d4fe1(0x18a))return{'kind':'unusable','reason':_0x34f964+'\x20has\x20no\x20skills\x20map'};return _0x520130[_0x2d4fe1(0x198)][_0x64b382]?{'kind':'recorded'}:{'kind':_0x2d4fe1(0x196)};}function a295_0x52f6(){const _0x4f6951=['unusable','absent','8458LUqBCx','\x20uses\x20unsupported\x20version\x20','includes','1334760XqLOGT','home','object','globalSkillsDirs','message','present','unverifiable','12OAbTRg','SKILL.md','30JNeTsi','reason','recorded','kind','map','not-recorded','4816294xYgbUq','skills','\x20is\x20unreadable:\x20','lockFile','version','1390085YqBNgy','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','1661571RUmbTa','utf8','.agents','.skill-lock.json','133xzKRqs','\x20records\x20\x22','2975406DUOIEM','join','find','766104hLoQyg'];a295_0x52f6=function(){return _0x4f6951;};return a295_0x52f6();}export function resolveInstalledSkill(_0x4bcffe,_0x1dc5c9){const _0x22beba=a295_0x116f03,_0x2e4827=_0x1dc5c9?.[_0x22beba(0x189)]??homedir(),_0x10a442=_0x1dc5c9?.[_0x22beba(0x18b)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x22beba(0x195)](_0x189cee=>join(_0x2e4827,_0x189cee)),_0x1c775a=_0x1dc5c9?.[_0x22beba(0x19a)]??join(_0x2e4827,SKILL_LOCK_RELATIVE_PATH),_0x41eb3e=_0x10a442[_0x22beba(0x195)](_0x59f1ae=>join(_0x59f1ae,_0x4bcffe,_0x22beba(0x190))),_0x421970=_0x41eb3e[_0x22beba(0x1a6)](_0x2ff6b2=>existsSync(_0x2ff6b2));if(_0x421970)return{'state':_0x22beba(0x18d),'path':_0x421970};const _0xf161a3=readLockLookup(_0x1c775a,_0x4bcffe);if(_0xf161a3[_0x22beba(0x194)]===_0x22beba(0x1a8))return{'state':'unverifiable','reason':_0xf161a3[_0x22beba(0x192)]};if(_0xf161a3['kind']===_0x22beba(0x193))return{'state':_0x22beba(0x18e),'reason':_0x1c775a+_0x22beba(0x1a3)+_0x4bcffe+_0x22beba(0x19d)+('('+_0x41eb3e[_0x22beba(0x1a5)](',\x20')+')')};return{'state':_0x22beba(0x1a9),'checked':_0x41eb3e};}
1
+ const a295_0x37c719=a295_0x6a38;(function(_0x1f5478,_0x5d5dd3){const _0x51b8d4=a295_0x6a38,_0x23782a=_0x1f5478();while(!![]){try{const _0x84862c=parseInt(_0x51b8d4(0x1c3))/0x1*(parseInt(_0x51b8d4(0x1ca))/0x2)+parseInt(_0x51b8d4(0x1c0))/0x3+parseInt(_0x51b8d4(0x1d0))/0x4+parseInt(_0x51b8d4(0x1d8))/0x5*(parseInt(_0x51b8d4(0x1b8))/0x6)+-parseInt(_0x51b8d4(0x1bb))/0x7*(parseInt(_0x51b8d4(0x1ce))/0x8)+parseInt(_0x51b8d4(0x1c2))/0x9*(-parseInt(_0x51b8d4(0x1c9))/0xa)+-parseInt(_0x51b8d4(0x1c5))/0xb;if(_0x84862c===_0x5d5dd3)break;else _0x23782a['push'](_0x23782a['shift']());}catch(_0x4c1136){_0x23782a['push'](_0x23782a['shift']());}}}(a295_0x1386,0x5196e));function a295_0x1386(){const _0x55e3ca=['message','unusable','.claude','65mywjit','join','\x20has\x20no\x20skills\x20map','101562ESeFzn','not-recorded','\x20uses\x20unsupported\x20version\x20','7BdvWUy','present','absent','skills','home','766323CUNgiY','object','261EAgmoP','31261UjflUA','utf8','1226434ueihNc','map','recorded','kind','56880DcfrFe','20lDXUcA','version','lockFile','globalSkillsDirs','1422376hqYUhL','parse','1324gFcTCB','.skill-lock.json','.agents','SKILL.md','unverifiable'];a295_0x1386=function(){return _0x55e3ca;};return a295_0x1386();}import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a295_0x37c719(0x1d2),a295_0x37c719(0x1d1));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a295_0x37c719(0x1d2),a295_0x37c719(0x1be)),join(a295_0x37c719(0x1d7),a295_0x37c719(0x1be))];function a295_0x6a38(_0x2a5ac5,_0x3f888b){_0x2a5ac5=_0x2a5ac5-0x1b8;const _0x138691=a295_0x1386();let _0x6a3808=_0x138691[_0x2a5ac5];return _0x6a3808;}const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x127fde,_0x2b4094){const _0x24efae=a295_0x37c719;if(!existsSync(_0x127fde))return{'kind':_0x24efae(0x1b9)};let _0x253da0;try{_0x253da0=JSON[_0x24efae(0x1cf)](readFileSync(_0x127fde,_0x24efae(0x1c4)));}catch(_0x294079){return{'kind':_0x24efae(0x1d6),'reason':_0x127fde+'\x20is\x20unreadable:\x20'+_0x294079[_0x24efae(0x1d5)]};}const _0x412605=_0x253da0;if(typeof _0x412605?.['version']!=='number'||!SUPPORTED_LOCK_VERSIONS['includes'](_0x412605[_0x24efae(0x1cb)]))return{'kind':_0x24efae(0x1d6),'reason':_0x127fde+_0x24efae(0x1ba)+String(_0x412605?.[_0x24efae(0x1cb)])};if(!_0x412605[_0x24efae(0x1be)]||typeof _0x412605[_0x24efae(0x1be)]!==_0x24efae(0x1c1))return{'kind':'unusable','reason':_0x127fde+_0x24efae(0x1da)};return _0x412605[_0x24efae(0x1be)][_0x2b4094]?{'kind':'recorded'}:{'kind':_0x24efae(0x1b9)};}export function resolveInstalledSkill(_0x53067c,_0x27b584){const _0x4b970f=a295_0x37c719,_0x2a7f38=_0x27b584?.[_0x4b970f(0x1bf)]??homedir(),_0x104154=_0x27b584?.[_0x4b970f(0x1cd)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x4b970f(0x1c6)](_0x120fa7=>join(_0x2a7f38,_0x120fa7)),_0x4f33b5=_0x27b584?.[_0x4b970f(0x1cc)]??join(_0x2a7f38,SKILL_LOCK_RELATIVE_PATH),_0x4d8585=_0x104154[_0x4b970f(0x1c6)](_0x10f2a5=>join(_0x10f2a5,_0x53067c,_0x4b970f(0x1d3))),_0x1e4649=_0x4d8585['find'](_0x5d7cf2=>existsSync(_0x5d7cf2));if(_0x1e4649)return{'state':_0x4b970f(0x1bc),'path':_0x1e4649};const _0x3749bf=readLockLookup(_0x4f33b5,_0x53067c);if(_0x3749bf['kind']==='unusable')return{'state':'unverifiable','reason':_0x3749bf['reason']};if(_0x3749bf[_0x4b970f(0x1c8)]===_0x4b970f(0x1c7))return{'state':_0x4b970f(0x1d4),'reason':_0x4f33b5+'\x20records\x20\x22'+_0x53067c+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0x4d8585[_0x4b970f(0x1d9)](',\x20')+')')};return{'state':_0x4b970f(0x1bd),'checked':_0x4d8585};}
@@ -1 +1 @@
1
- (function(_0x3a0244,_0x3d34b9){const _0x5c869c=a296_0x2bec,_0x5e991f=_0x3a0244();while(!![]){try{const _0x501636=parseInt(_0x5c869c(0x96))/0x1*(-parseInt(_0x5c869c(0xa1))/0x2)+parseInt(_0x5c869c(0x9e))/0x3+parseInt(_0x5c869c(0x98))/0x4+parseInt(_0x5c869c(0x99))/0x5+parseInt(_0x5c869c(0x9f))/0x6*(parseInt(_0x5c869c(0x9a))/0x7)+parseInt(_0x5c869c(0x94))/0x8+-parseInt(_0x5c869c(0x9b))/0x9;if(_0x501636===_0x3d34b9)break;else _0x5e991f['push'](_0x5e991f['shift']());}catch(_0x4729dd){_0x5e991f['push'](_0x5e991f['shift']());}}}(a296_0xe309,0xba0ba));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x315826){const _0x391f2f=a296_0x2bec;return SENSITIVE_PATTERNS['some'](_0x33e809=>_0x33e809[_0x391f2f(0x91)](_0x315826));}function a296_0xe309(){const _0x1f8ec5=['entries','error','4724368SaMpdD','command','8948adpPnR','stringify','695360WHtYoI','4682780wFZsoi','42PXCeNW','17142642LxLuMO','durationMs','message','2264664SLmVlt','685194GuHXBj','rabetbase.command','106nUJzdE','service','flags','test'];a296_0xe309=function(){return _0x1f8ec5;};return a296_0xe309();}function a296_0x2bec(_0x2c2e87,_0x1b1f8e){_0x2c2e87=_0x2c2e87-0x91;const _0xe30952=a296_0xe309();let _0x2bec53=_0xe30952[_0x2c2e87];return _0x2bec53;}function sanitizeFlags(_0x50e776){const _0x24577d=a296_0x2bec,_0x16ac07={};for(const [_0x5c6166,_0x5db7bd]of Object[_0x24577d(0x92)](_0x50e776)){isSensitiveKey(_0x5c6166)?_0x16ac07[_0x5c6166]=_0x5db7bd!=null&&_0x5db7bd!==''?'[REDACTED]':_0x5db7bd:_0x16ac07[_0x5c6166]=_0x5db7bd;}return _0x16ac07;}export async function reportCommandTrace(_0x43f0a4){const _0x1a9df6=a296_0x2bec;try{const _0x2a19f7=sanitizeFlags(_0x43f0a4[_0x1a9df6(0xa3)]);await sendCliTraceLog({'spanName':_0x1a9df6(0xa0),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x43f0a4[_0x1a9df6(0xa2)],'command.name':_0x43f0a4[_0x1a9df6(0x95)],'command.flags':JSON[_0x1a9df6(0x97)](_0x2a19f7),..._0x43f0a4[_0x1a9df6(0x9c)]!=null?{'command.duration_ms':_0x43f0a4[_0x1a9df6(0x9c)]}:{},..._0x43f0a4['error']?{'command.error':_0x43f0a4[_0x1a9df6(0x93)]instanceof Error?_0x43f0a4[_0x1a9df6(0x93)][_0x1a9df6(0x9d)]:String(_0x43f0a4['error'])}:{}}});}catch{}}
1
+ (function(_0x48a3e0,_0xc722b6){const _0xd57eb4=a296_0x3946,_0x258f60=_0x48a3e0();while(!![]){try{const _0x50681e=parseInt(_0xd57eb4(0x1ee))/0x1*(-parseInt(_0xd57eb4(0x1ec))/0x2)+parseInt(_0xd57eb4(0x1f1))/0x3*(-parseInt(_0xd57eb4(0x1f6))/0x4)+parseInt(_0xd57eb4(0x1f2))/0x5+-parseInt(_0xd57eb4(0x1f0))/0x6+parseInt(_0xd57eb4(0x1e5))/0x7*(parseInt(_0xd57eb4(0x1e8))/0x8)+-parseInt(_0xd57eb4(0x1e6))/0x9+parseInt(_0xd57eb4(0x1f8))/0xa;if(_0x50681e===_0xc722b6)break;else _0x258f60['push'](_0x258f60['shift']());}catch(_0x408ffc){_0x258f60['push'](_0x258f60['shift']());}}}(a296_0x2eca,0x5a7ec));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x5ccb92){const _0x4c10ac=a296_0x3946;return SENSITIVE_PATTERNS[_0x4c10ac(0x1eb)](_0x175ead=>_0x175ead[_0x4c10ac(0x1f5)](_0x5ccb92));}function sanitizeFlags(_0x15c6b5){const _0x10b189=a296_0x3946,_0x42e338={};for(const [_0x4cbb2d,_0x2e8cc3]of Object[_0x10b189(0x1e4)](_0x15c6b5)){isSensitiveKey(_0x4cbb2d)?_0x42e338[_0x4cbb2d]=_0x2e8cc3!=null&&_0x2e8cc3!==''?_0x10b189(0x1ea):_0x2e8cc3:_0x42e338[_0x4cbb2d]=_0x2e8cc3;}return _0x42e338;}export async function reportCommandTrace(_0x35f969){const _0x256cb7=a296_0x3946;try{const _0xd395ac=sanitizeFlags(_0x35f969[_0x256cb7(0x1e9)]);await sendCliTraceLog({'spanName':_0x256cb7(0x1e7),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x35f969[_0x256cb7(0x1f3)],'command.name':_0x35f969[_0x256cb7(0x1ed)],'command.flags':JSON[_0x256cb7(0x1f7)](_0xd395ac),..._0x35f969[_0x256cb7(0x1f4)]!=null?{'command.duration_ms':_0x35f969[_0x256cb7(0x1f4)]}:{},..._0x35f969[_0x256cb7(0x1ef)]?{'command.error':_0x35f969[_0x256cb7(0x1ef)]instanceof Error?_0x35f969[_0x256cb7(0x1ef)]['message']:String(_0x35f969[_0x256cb7(0x1ef)])}:{}}});}catch{}}function a296_0x3946(_0x2449c2,_0x3d7767){_0x2449c2=_0x2449c2-0x1e4;const _0x2eca7f=a296_0x2eca();let _0x3946dc=_0x2eca7f[_0x2449c2];return _0x3946dc;}function a296_0x2eca(){const _0x49f743=['error','3442098qfsCmc','6UMqmRE','353345RDFAkv','service','durationMs','test','468232zVLDSy','stringify','13789640BUTsUx','entries','7HZmMvB','4557114UcLhgt','rabetbase.command','2248392lNoFWf','flags','[REDACTED]','some','91738YbAZmW','command','1njRpxT'];a296_0x2eca=function(){return _0x49f743;};return a296_0x2eca();}
@@ -1 +1 @@
1
- function a297_0x2e62(_0x1386bf,_0x343b6f){_0x1386bf=_0x1386bf-0x159;var _0x2eb40c=a297_0x2eb4();var _0x2e62d6=_0x2eb40c[_0x1386bf];return _0x2e62d6;}function a297_0x2eb4(){var _0x116d00=['30830wpUWVB','1632915HiAwmd','2hJVXJc','162wEydZZ','error','169632zCWKVb','72605wutIty','Failed\x20to\x20report\x20CLI\x20help\x20trace:','cli.help','2610816XStEGT','473451XfhTcA','service','2018891nVZaMj'];a297_0x2eb4=function(){return _0x116d00;};return a297_0x2eb4();}(function(_0x10a64a,_0xe4c08e){var _0x49334e=a297_0x2e62,_0x6b79a3=_0x10a64a();while(!![]){try{var _0x14e760=parseInt(_0x49334e(0x163))/0x1+-parseInt(_0x49334e(0x15f))/0x2*(parseInt(_0x49334e(0x15a))/0x3)+parseInt(_0x49334e(0x162))/0x4+-parseInt(_0x49334e(0x15d))/0x5*(parseInt(_0x49334e(0x160))/0x6)+parseInt(_0x49334e(0x15c))/0x7+parseInt(_0x49334e(0x159))/0x8+-parseInt(_0x49334e(0x15e))/0x9;if(_0x14e760===_0xe4c08e)break;else _0x6b79a3['push'](_0x6b79a3['shift']());}catch(_0x4d049b){_0x6b79a3['push'](_0x6b79a3['shift']());}}}(a297_0x2eb4,0x36b2c));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x575483,_0x368e7b){var _0x237bae=a297_0x2e62;try{await sendCliTraceLog({'spanName':_0x237bae(0x165),'logData':{'rabetbase.help.kind':_0x575483,..._0x368e7b?.[_0x237bae(0x15b)]&&{'rabetbase.help.service':_0x368e7b[_0x237bae(0x15b)]}}});}catch(_0x537479){console[_0x237bae(0x161)](_0x237bae(0x164),_0x537479);}}
1
+ (function(_0xa0ffa2,_0x1a76a1){var _0x407aa3=a297_0x1b02,_0x1b3ab7=_0xa0ffa2();while(!![]){try{var _0x2d6d07=-parseInt(_0x407aa3(0x147))/0x1+parseInt(_0x407aa3(0x14b))/0x2*(parseInt(_0x407aa3(0x149))/0x3)+-parseInt(_0x407aa3(0x14a))/0x4+parseInt(_0x407aa3(0x148))/0x5+-parseInt(_0x407aa3(0x14c))/0x6+-parseInt(_0x407aa3(0x14d))/0x7+parseInt(_0x407aa3(0x14e))/0x8;if(_0x2d6d07===_0x1a76a1)break;else _0x1b3ab7['push'](_0x1b3ab7['shift']());}catch(_0x44c615){_0x1b3ab7['push'](_0x1b3ab7['shift']());}}}(a297_0xd605,0x73e45));function a297_0x1b02(_0x42a951,_0x40c3b5){_0x42a951=_0x42a951-0x147;var _0xd605ab=a297_0xd605();var _0x1b02ad=_0xd605ab[_0x42a951];return _0x1b02ad;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x4cb15b,_0x543d15){var _0x571a70=a297_0x1b02;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x4cb15b,..._0x543d15?.[_0x571a70(0x14f)]&&{'rabetbase.help.service':_0x543d15[_0x571a70(0x14f)]}}});}catch(_0x3d65d3){console['error']('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x3d65d3);}}function a297_0xd605(){var _0x5206d9=['729804FbNnbn','3748038VkIAVc','13289520EHeVTQ','service','867481GLALqG','77700whJHWM','524922bbdwkY','1509536gPubWG','8cZkFoH'];a297_0xd605=function(){return _0x5206d9;};return a297_0xd605();}
@@ -1 +1 @@
1
- (function(_0x43de19,_0x291bb5){const _0x1eda85=a298_0xe1dd,_0x4cd70a=_0x43de19();while(!![]){try{const _0x2e6040=-parseInt(_0x1eda85(0x9c))/0x1*(-parseInt(_0x1eda85(0x9b))/0x2)+parseInt(_0x1eda85(0x9d))/0x3+parseInt(_0x1eda85(0x96))/0x4*(parseInt(_0x1eda85(0x9a))/0x5)+-parseInt(_0x1eda85(0x90))/0x6+-parseInt(_0x1eda85(0x98))/0x7+-parseInt(_0x1eda85(0x99))/0x8+parseInt(_0x1eda85(0x92))/0x9*(parseInt(_0x1eda85(0x8d))/0xa);if(_0x2e6040===_0x291bb5)break;else _0x4cd70a['push'](_0x4cd70a['shift']());}catch(_0x3d3d4e){_0x4cd70a['push'](_0x4cd70a['shift']());}}}(a298_0x2326,0x3337b));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a298_0x2326(){const _0x39a877=['tenant_code','4LQMsbe','username','1850583xYdhjf','46792KpzFOp','401615JMkFxw','4XbzjgE','79970euYRcY','58923ZgvfrA','447210AfWGxa','nickname','user','21024FqCase','production','45fZOsKH','tenant','daily'];a298_0x2326=function(){return _0x39a877;};return a298_0x2326();}function a298_0xe1dd(_0x5cc843,_0xdc08c4){_0x5cc843=_0x5cc843-0x8d;const _0x23261c=a298_0x2326();let _0xe1dd51=_0x23261c[_0x5cc843];return _0xe1dd51;}import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x68ae98=a298_0xe1dd,_0xfd69c4=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0xabff5=_0xfd69c4?.[_0x68ae98(0x8f)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x68ae98(0x94):_0x68ae98(0x91))}),setUserContext({'id':_0xabff5?.['id'],'username':_0xabff5?.[_0x68ae98(0x97)],'nickname':_0xabff5?.[_0x68ae98(0x8e)],'email':_0xabff5?.['email'],'tenantCode':_0xabff5?.[_0x68ae98(0x93)]?.[_0x68ae98(0x95)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0xfd69c4;}
1
+ (function(_0x15335b,_0x5b5cc1){const _0x28988d=a298_0x3e69,_0x358a22=_0x15335b();while(!![]){try{const _0x51ee74=parseInt(_0x28988d(0x108))/0x1+parseInt(_0x28988d(0x102))/0x2+-parseInt(_0x28988d(0x10c))/0x3*(parseInt(_0x28988d(0x113))/0x4)+parseInt(_0x28988d(0x110))/0x5*(-parseInt(_0x28988d(0x111))/0x6)+parseInt(_0x28988d(0x112))/0x7*(-parseInt(_0x28988d(0x10e))/0x8)+-parseInt(_0x28988d(0x106))/0x9*(parseInt(_0x28988d(0x103))/0xa)+-parseInt(_0x28988d(0x105))/0xb*(-parseInt(_0x28988d(0x10a))/0xc);if(_0x51ee74===_0x5b5cc1)break;else _0x358a22['push'](_0x358a22['shift']());}catch(_0x1a202b){_0x358a22['push'](_0x358a22['shift']());}}}(a298_0x1bbd,0xa3e42));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a298_0x3e69(_0x126119,_0x3197b4){_0x126119=_0x126119-0x100;const _0x1bbd24=a298_0x1bbd();let _0x3e6927=_0x1bbd24[_0x126119];return _0x3e6927;}import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';function a298_0x1bbd(){const _0x4cccbd=['12483BCzyXD','user','839972BaEdgt','tenant_code','60MsWuva','unknown','70719tPTpIB','username','41224sxSvzN','email','4690wsgEVq','2544aKUEgC','1666cPGEXj','28tIKWSo','production','daily','nickname','1567476yWioPP','1350aZprik','tenant','2252734lOWztd'];a298_0x1bbd=function(){return _0x4cccbd;};return a298_0x1bbd();}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x387215=a298_0x3e69,_0x3b8422=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x332d67=_0x3b8422?.[_0x387215(0x107)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x387215(0x10b)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x387215(0x100):_0x387215(0x114))}),setUserContext({'id':_0x332d67?.['id'],'username':_0x332d67?.[_0x387215(0x10d)],'nickname':_0x332d67?.[_0x387215(0x101)],'email':_0x332d67?.[_0x387215(0x10f)],'tenantCode':_0x332d67?.[_0x387215(0x104)]?.[_0x387215(0x109)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x3b8422;}
@@ -1 +1 @@
1
- (function(_0x37dcae,_0x3faf34){const _0x24ce85=a299_0x8490,_0x5d405b=_0x37dcae();while(!![]){try{const _0x45d3db=-parseInt(_0x24ce85(0x1b2))/0x1+parseInt(_0x24ce85(0x1af))/0x2+parseInt(_0x24ce85(0x1ac))/0x3+parseInt(_0x24ce85(0x1ad))/0x4*(parseInt(_0x24ce85(0x1ab))/0x5)+parseInt(_0x24ce85(0x1b0))/0x6+parseInt(_0x24ce85(0x1b3))/0x7*(-parseInt(_0x24ce85(0x1ae))/0x8)+parseInt(_0x24ce85(0x1b7))/0x9*(-parseInt(_0x24ce85(0x1b6))/0xa);if(_0x45d3db===_0x3faf34)break;else _0x5d405b['push'](_0x5d405b['shift']());}catch(_0x5f1d0f){_0x5d405b['push'](_0x5d405b['shift']());}}}(a299_0x5b65,0x9d84a));function a299_0x5b65(){const _0x2af23f=['5656380AouPmk','exit','1235654vCpBnP','7aZkvyK','SIGTERM','once','2420BBxIoE','17487rapDCe','then','5LJhbPF','1742880OdyJoU','974492DQNFtl','3493488YizzFu','2040854hxISlx'];a299_0x5b65=function(){return _0x2af23f;};return a299_0x5b65();}function a299_0x8490(_0x45f15d,_0x4eed0b){_0x45f15d=_0x45f15d-0x1aa;const _0x5b657c=a299_0x5b65();let _0x849052=_0x5b657c[_0x45f15d];return _0x849052;}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;}export function registerOtelShutdownOnExit(){const _0x2d6ca1=a299_0x8490;process['once']('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0xb51898=()=>{const _0x10334e=a299_0x8490;void flushOtelNodeIfUsed()[_0x10334e(0x1aa)](()=>process['exit'](0x0));};process[_0x2d6ca1(0x1b5)]('SIGINT',_0xb51898),process[_0x2d6ca1(0x1b5)](_0x2d6ca1(0x1b4),_0xb51898);}export async function exitWithOtelShutdown(_0x14dd1b){const _0x386c3e=a299_0x8490;await flushOtelNodeIfUsed(),process[_0x386c3e(0x1b1)](_0x14dd1b);}
1
+ function a299_0x3449(){const _0x42b863=['6243160jtvzew','21654TiUpsw','1540CXAHcJ','then','2792tcHJmb','1988203wynxba','20kbjlcW','3474UpqzTJ','once','2861271VTePdB','633730iQwjgA','6642872scKNGK','exit','SIGINT','beforeExit','3hJEEPX'];a299_0x3449=function(){return _0x42b863;};return a299_0x3449();}(function(_0x25915e,_0x43d3ba){const _0x3be9f4=a299_0x3d20,_0x354ac3=_0x25915e();while(!![]){try{const _0x30a073=-parseInt(_0x3be9f4(0x1f6))/0x1*(-parseInt(_0x3be9f4(0x201))/0x2)+-parseInt(_0x3be9f4(0x1fe))/0x3*(-parseInt(_0x3be9f4(0x1fb))/0x4)+-parseInt(_0x3be9f4(0x1f9))/0x5*(parseInt(_0x3be9f4(0x1f8))/0x6)+-parseInt(_0x3be9f4(0x1fc))/0x7+-parseInt(_0x3be9f4(0x202))/0x8+-parseInt(_0x3be9f4(0x200))/0x9*(-parseInt(_0x3be9f4(0x1fd))/0xa)+parseInt(_0x3be9f4(0x1f7))/0xb;if(_0x30a073===_0x43d3ba)break;else _0x354ac3['push'](_0x354ac3['shift']());}catch(_0x11b219){_0x354ac3['push'](_0x354ac3['shift']());}}}(a299_0x3449,0xb3c3d));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;}export function registerOtelShutdownOnExit(){const _0x512dce=a299_0x3d20;process[_0x512dce(0x1ff)](_0x512dce(0x1f5),()=>{void flushOtelNodeIfUsed();});const _0x5e8f28=()=>{const _0x3f5ea4=_0x512dce;void flushOtelNodeIfUsed()[_0x3f5ea4(0x1fa)](()=>process[_0x3f5ea4(0x203)](0x0));};process[_0x512dce(0x1ff)](_0x512dce(0x1f4),_0x5e8f28),process[_0x512dce(0x1ff)]('SIGTERM',_0x5e8f28);}function a299_0x3d20(_0x5540a7,_0x2b825e){_0x5540a7=_0x5540a7-0x1f4;const _0x3449b1=a299_0x3449();let _0x3d20a0=_0x3449b1[_0x5540a7];return _0x3d20a0;}export async function exitWithOtelShutdown(_0x4f0929){await flushOtelNodeIfUsed(),process['exit'](_0x4f0929);}
@@ -1 +1 @@
1
- (function(_0x452b16,_0x78d892){const _0x1cc180=a300_0x123f,_0x2d08c5=_0x452b16();while(!![]){try{const _0x1c6e27=-parseInt(_0x1cc180(0xdb))/0x1+parseInt(_0x1cc180(0xeb))/0x2*(parseInt(_0x1cc180(0xe3))/0x3)+parseInt(_0x1cc180(0xdc))/0x4*(parseInt(_0x1cc180(0xea))/0x5)+-parseInt(_0x1cc180(0xe0))/0x6*(-parseInt(_0x1cc180(0xe1))/0x7)+-parseInt(_0x1cc180(0xdd))/0x8*(parseInt(_0x1cc180(0xe5))/0x9)+-parseInt(_0x1cc180(0xe8))/0xa*(parseInt(_0x1cc180(0xda))/0xb)+parseInt(_0x1cc180(0xe4))/0xc;if(_0x1c6e27===_0x78d892)break;else _0x2d08c5['push'](_0x2d08c5['shift']());}catch(_0x1d3001){_0x2d08c5['push'](_0x2d08c5['shift']());}}}(a300_0x4fb9,0xbd67e));function a300_0x4fb9(){const _0x5b3a73=['11620472GgDfVq','spanName','manual','3831348XZjAeG','7vLVdli','traceparent','298905BUxiOj','2537640AlYVPF','9OEmNNn','logData','version','184310VgxyEk','traceName','5fZvIOq','24duDbRQ','242yiGjmz','502872nXeSNi','4364284XlXBQZ'];a300_0x4fb9=function(){return _0x5b3a73;};return a300_0x4fb9();}import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a300_0x123f(_0x2091b7,_0x345ba7){_0x2091b7=_0x2091b7-0xda;const _0x4fb906=a300_0x4fb9();let _0x123ff6=_0x4fb906[_0x2091b7];return _0x123ff6;}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';export async function sendCliTraceLog(_0x2b58cf){const _0x2d601a=a300_0x123f;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x2b58cf[_0x2d601a(0xe9)]??DEFAULT_TRACE_NAME,'version':_0x2b58cf[_0x2d601a(0xe7)]??getCliVersion(),'spanName':_0x2b58cf[_0x2d601a(0xde)],'eventType':_0x2d601a(0xdf),'logData':_0x2b58cf[_0x2d601a(0xe6)],..._0x2b58cf[_0x2d601a(0xe2)]&&{'traceparent':_0x2b58cf['traceparent']}});}
1
+ const a300_0x3fced9=a300_0x1ff0;function a300_0x1ff0(_0x41fdb2,_0x4cbdc7){_0x41fdb2=_0x41fdb2-0x8f;const _0x58a4a4=a300_0x58a4();let _0x1ff0cd=_0x58a4a4[_0x41fdb2];return _0x1ff0cd;}(function(_0x5cd622,_0x1fd7c7){const _0x231741=a300_0x1ff0,_0x59a6a8=_0x5cd622();while(!![]){try{const _0x79c67d=-parseInt(_0x231741(0x93))/0x1+parseInt(_0x231741(0x99))/0x2+-parseInt(_0x231741(0x92))/0x3*(parseInt(_0x231741(0x98))/0x4)+parseInt(_0x231741(0x90))/0x5+-parseInt(_0x231741(0x94))/0x6+-parseInt(_0x231741(0x95))/0x7+parseInt(_0x231741(0x9a))/0x8;if(_0x79c67d===_0x1fd7c7)break;else _0x59a6a8['push'](_0x59a6a8['shift']());}catch(_0x4f913a){_0x59a6a8['push'](_0x59a6a8['shift']());}}}(a300_0x58a4,0x1c6ed));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a300_0x58a4(){const _0x86d867=['1104WtzdSX','223315hzMkbX','391152qdnBKn','338415AeojnB','rabetbase-cli','traceName','848VCmCoz','136202IzjSWb','2920696HogBdP','manual','490705EkBvUA','traceparent'];a300_0x58a4=function(){return _0x86d867;};return a300_0x58a4();}const DEFAULT_TRACE_NAME=a300_0x3fced9(0x96);export async function sendCliTraceLog(_0x23f64d){const _0x275819=a300_0x3fced9;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x23f64d[_0x275819(0x97)]??DEFAULT_TRACE_NAME,'version':_0x23f64d['version']??getCliVersion(),'spanName':_0x23f64d['spanName'],'eventType':_0x275819(0x8f),'logData':_0x23f64d['logData'],..._0x23f64d['traceparent']&&{'traceparent':_0x23f64d[_0x275819(0x91)]}});}
@@ -1 +1 @@
1
- const a301_0x159bd2=a301_0x2ff4;(function(_0x213887,_0x871541){const _0x18bd77=a301_0x2ff4,_0xfe4083=_0x213887();while(!![]){try{const _0x47db72=-parseInt(_0x18bd77(0x143))/0x1*(-parseInt(_0x18bd77(0x153))/0x2)+parseInt(_0x18bd77(0x150))/0x3+parseInt(_0x18bd77(0x147))/0x4*(-parseInt(_0x18bd77(0x149))/0x5)+parseInt(_0x18bd77(0x146))/0x6*(parseInt(_0x18bd77(0x14a))/0x7)+parseInt(_0x18bd77(0x152))/0x8*(parseInt(_0x18bd77(0x155))/0x9)+-parseInt(_0x18bd77(0x154))/0xa*(parseInt(_0x18bd77(0x151))/0xb)+-parseInt(_0x18bd77(0x142))/0xc*(parseInt(_0x18bd77(0x14f))/0xd);if(_0x47db72===_0x871541)break;else _0xfe4083['push'](_0xfe4083['shift']());}catch(_0x8c73ca){_0xfe4083['push'](_0xfe4083['shift']());}}}(a301_0x21aa,0x30054));function a301_0x21aa(){const _0x1a1aa0=['840511qPiYdW','truncated','join','title','redactionCount','69979Ccjgze','835872VFUDVf','22wPbwYf','1356848vYAXrE','6802dBssgf','85690aotMwN','18MzuQUJ','sanitize','issue.log.collect','1176rBBmBA','101rsuKcy','description','redactionKinds','6flOhNR','97156hCEivY','originalBytes','70SzWaBg'];a301_0x21aa=function(){return _0x1a1aa0;};return a301_0x21aa();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a301_0x2ff4(_0x288de8,_0x4b0858){_0x288de8=_0x288de8-0x140;const _0x21aa58=a301_0x21aa();let _0x2ff45b=_0x21aa58[_0x288de8];return _0x2ff45b;}export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a301_0x159bd2(0x141);export async function sendPlatformIssueCollectLog(_0x50fa2d){const _0x38972b=a301_0x159bd2;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x50fa2d[_0x38972b(0x14d)],'issue.description':_0x50fa2d[_0x38972b(0x144)],..._0x50fa2d['sanitize']?{'issue.description_original_bytes':_0x50fa2d[_0x38972b(0x140)][_0x38972b(0x148)],'issue.description_truncated':_0x50fa2d[_0x38972b(0x140)][_0x38972b(0x14b)],'issue.description_redactions':_0x50fa2d[_0x38972b(0x140)][_0x38972b(0x14e)],'issue.description_redaction_kinds':_0x50fa2d[_0x38972b(0x140)][_0x38972b(0x145)][_0x38972b(0x14c)](',')}:{}}});}
1
+ function a301_0x2a98(){const _0x322ff3=['16374vMKocw','sanitize','truncated','platform-issue-log-collect','878778CczbId','description','1550304rDPSZD','1400ADFgmr','2389872wYltqO','title','originalBytes','203528ZtybsH','issue.log.collect','52810OeWrUb','1868925PxaVyO'];a301_0x2a98=function(){return _0x322ff3;};return a301_0x2a98();}const a301_0x49f105=a301_0x30f4;(function(_0x2a14b1,_0x3f15a8){const _0x4d1286=a301_0x30f4,_0x1460e5=_0x2a14b1();while(!![]){try{const _0x294737=-parseInt(_0x4d1286(0x7c))/0x1+parseInt(_0x4d1286(0x74))/0x2+parseInt(_0x4d1286(0x77))/0x3+parseInt(_0x4d1286(0x71))/0x4+parseInt(_0x4d1286(0x76))/0x5+-parseInt(_0x4d1286(0x78))/0x6*(-parseInt(_0x4d1286(0x70))/0x7)+-parseInt(_0x4d1286(0x6f))/0x8;if(_0x294737===_0x3f15a8)break;else _0x1460e5['push'](_0x1460e5['shift']());}catch(_0x4ed344){_0x1460e5['push'](_0x1460e5['shift']());}}}(a301_0x2a98,0xc4c73));function a301_0x30f4(_0x4104a0,_0x5d6e0a){_0x4104a0=_0x4104a0-0x6e;const _0x2a98a3=a301_0x2a98();let _0x30f43c=_0x2a98a3[_0x4104a0];return _0x30f43c;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a301_0x49f105(0x7b);export const PLATFORM_ISSUE_SPAN_NAME=a301_0x49f105(0x75);export async function sendPlatformIssueCollectLog(_0x5db6c7){const _0x1691da=a301_0x49f105;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x5db6c7[_0x1691da(0x72)],'issue.description':_0x5db6c7[_0x1691da(0x6e)],..._0x5db6c7[_0x1691da(0x79)]?{'issue.description_original_bytes':_0x5db6c7[_0x1691da(0x79)][_0x1691da(0x73)],'issue.description_truncated':_0x5db6c7['sanitize'][_0x1691da(0x7a)],'issue.description_redactions':_0x5db6c7[_0x1691da(0x79)]['redactionCount'],'issue.description_redaction_kinds':_0x5db6c7[_0x1691da(0x79)]['redactionKinds']['join'](',')}:{}}});}
@@ -1 +1 @@
1
- const a303_0x1e4d6a=a303_0x3920;(function(_0x396fda,_0x127bb4){const _0x50b62d=a303_0x3920,_0x32035c=_0x396fda();while(!![]){try{const _0x562fae=parseInt(_0x50b62d(0x124))/0x1+-parseInt(_0x50b62d(0x10e))/0x2*(parseInt(_0x50b62d(0x115))/0x3)+-parseInt(_0x50b62d(0x127))/0x4+parseInt(_0x50b62d(0x11d))/0x5+parseInt(_0x50b62d(0x101))/0x6+parseInt(_0x50b62d(0xfa))/0x7*(parseInt(_0x50b62d(0xf6))/0x8)+-parseInt(_0x50b62d(0x113))/0x9;if(_0x562fae===_0x127bb4)break;else _0x32035c['push'](_0x32035c['shift']());}catch(_0xa0958b){_0x32035c['push'](_0x32035c['shift']());}}}(a303_0x3990,0x36b51));export const CORE_IDE_CONFIGS={'cursor':{'name':a303_0x1e4d6a(0xf8),'description':a303_0x1e4d6a(0x116),'folders':['.cursorrules','.cursor'],'files':[{'type':a303_0x1e4d6a(0x11e),'path':a303_0x1e4d6a(0x104)}]},'windsurf':{'name':a303_0x1e4d6a(0xf3),'description':a303_0x1e4d6a(0x102),'folders':['.windsurf'],'files':[{'type':a303_0x1e4d6a(0x11e),'path':a303_0x1e4d6a(0xf9)}]},'claude':{'name':'Claude\x20Code','description':a303_0x1e4d6a(0x118),'folders':[a303_0x1e4d6a(0x11b)],'files':[{'type':a303_0x1e4d6a(0x11e),'path':a303_0x1e4d6a(0x106)}]},'cline':{'name':a303_0x1e4d6a(0x11a),'description':'Cline\x20IDE','folders':['.cline'],'files':[{'type':a303_0x1e4d6a(0x11e),'path':a303_0x1e4d6a(0x11f)}]},'codex':{'name':a303_0x1e4d6a(0x103),'description':a303_0x1e4d6a(0x123),'folders':[a303_0x1e4d6a(0x105)],'files':[{'type':'file','path':a303_0x1e4d6a(0xf0)}]},'opencode':{'name':a303_0x1e4d6a(0x10a),'description':a303_0x1e4d6a(0x121),'folders':[a303_0x1e4d6a(0x111)],'files':[{'type':a303_0x1e4d6a(0x11e),'path':a303_0x1e4d6a(0xfe)}]},'qoder':{'name':a303_0x1e4d6a(0x10b),'description':a303_0x1e4d6a(0xf7),'folders':[a303_0x1e4d6a(0xf5)],'files':[{'type':a303_0x1e4d6a(0x11e),'path':a303_0x1e4d6a(0xfb)},{'type':'file','path':a303_0x1e4d6a(0x114)}]},'codebuddy':{'name':a303_0x1e4d6a(0x107),'description':a303_0x1e4d6a(0x112),'folders':[a303_0x1e4d6a(0x11c)],'files':[{'type':a303_0x1e4d6a(0x11e),'path':a303_0x1e4d6a(0xff)}]},'trae':{'name':'Trae','description':'Trae\x20IDE','folders':[a303_0x1e4d6a(0x117)],'files':[{'type':a303_0x1e4d6a(0x11e),'path':a303_0x1e4d6a(0xf1)}]}};function a303_0x3990(){const _0x5272aa=['.trae','Claude\x20Code','qoder','Cline','.claude','.codebuddy','2222115hBMwbQ','file','.cline/skills/lovrabet/SKILL.md','agent','OpenCode\x20IDE','Other\x20(generic\x20template)','Codex\x20IDE','93438kZynMl','Antigravity','Generic\x20template\x20fallback','14288jHRURU','.codex/skills/lovrabet/SKILL.md','.trae/skills/lovrabet/SKILL.md','windsurf','Windsurf','antigravity','.qoder','1528xXEpKf','Qoder\x20IDE','Cursor','.windsurf/workflows/rabetbase.md','8246IzZaTg','.qoder/rules/rabetbase.md','cursor','codebuddy','.opencode/skills/lovrabet/SKILL.md','.codebuddy/skills/lovrabet/SKILL.md','.agent','1992618hQYhMh','Windsurf\x20IDE','Codex','.cursor/skills/rabetbase.md','.codex','.claude/skills/lovrabet/SKILL.md','CodeBuddy','.agent/skills/lovrabet/SKILL.md','trae','OpenCode','Qoder','cline','codex','6bvRzpb','claude','opencode','.opencode','CodeBuddy\x20IDE','6847092BnqbRn','.qoder/skills/lovrabet/SKILL.md','106521azlEzk','Cursor\x20IDE'];a303_0x3990=function(){return _0x5272aa;};return a303_0x3990();}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a303_0x1e4d6a(0x122),'description':a303_0x1e4d6a(0x126),'folders':['.agent'],'files':[{'type':a303_0x1e4d6a(0x11e),'path':'.agent/skills/lovrabet/SKILL.md'}]},'antigravity':{'name':a303_0x1e4d6a(0x125),'description':'Antigravity\x20IDE','folders':[a303_0x1e4d6a(0x100)],'files':[{'type':a303_0x1e4d6a(0x11e),'path':a303_0x1e4d6a(0x108)}]}};function a303_0x3920(_0x121a73,_0x5399f6){_0x121a73=_0x121a73-0xf0;const _0x399090=a303_0x3990();let _0x3920a9=_0x399090[_0x121a73];return _0x3920a9;}export const CORE_IDE_LIST=['claude',a303_0x1e4d6a(0x10c),a303_0x1e4d6a(0xfd),a303_0x1e4d6a(0x10d),'cursor',a303_0x1e4d6a(0x110),a303_0x1e4d6a(0x119),a303_0x1e4d6a(0x109),a303_0x1e4d6a(0xf2)];export const IDE_LIST=[a303_0x1e4d6a(0xf4),a303_0x1e4d6a(0x10f),a303_0x1e4d6a(0x10c),a303_0x1e4d6a(0xfd),a303_0x1e4d6a(0x10d),'cursor','opencode','qoder',a303_0x1e4d6a(0x109),a303_0x1e4d6a(0xf2),a303_0x1e4d6a(0x120)];export const ALL_CORE_IDES=[a303_0x1e4d6a(0xfc),a303_0x1e4d6a(0xf2),a303_0x1e4d6a(0x10f),'cline','codex',a303_0x1e4d6a(0x110),a303_0x1e4d6a(0x119),a303_0x1e4d6a(0xfd),'trae'];
1
+ const a303_0x70a83f=a303_0x6235;function a303_0x6235(_0x17449a,_0x5b6699){_0x17449a=_0x17449a-0xf5;const _0xca5e03=a303_0xca5e();let _0x6235f7=_0xca5e03[_0x17449a];return _0x6235f7;}(function(_0x513c9f,_0x2e22ac){const _0x238ae6=a303_0x6235,_0x11293a=_0x513c9f();while(!![]){try{const _0x1fcf04=-parseInt(_0x238ae6(0xff))/0x1*(-parseInt(_0x238ae6(0x124))/0x2)+parseInt(_0x238ae6(0x117))/0x3*(parseInt(_0x238ae6(0x125))/0x4)+parseInt(_0x238ae6(0xf8))/0x5+parseInt(_0x238ae6(0xfe))/0x6+parseInt(_0x238ae6(0x11c))/0x7*(-parseInt(_0x238ae6(0x119))/0x8)+-parseInt(_0x238ae6(0xfb))/0x9+-parseInt(_0x238ae6(0x102))/0xa;if(_0x1fcf04===_0x2e22ac)break;else _0x11293a['push'](_0x11293a['shift']());}catch(_0x3087f8){_0x11293a['push'](_0x11293a['shift']());}}}(a303_0xca5e,0x5dc3c));export const CORE_IDE_CONFIGS={'cursor':{'name':a303_0x70a83f(0x10d),'description':a303_0x70a83f(0x121),'folders':['.cursorrules',a303_0x70a83f(0x10c)],'files':[{'type':a303_0x70a83f(0x120),'path':'.cursor/skills/rabetbase.md'}]},'windsurf':{'name':a303_0x70a83f(0x11b),'description':a303_0x70a83f(0xfd),'folders':['.windsurf'],'files':[{'type':a303_0x70a83f(0x120),'path':a303_0x70a83f(0xf5)}]},'claude':{'name':a303_0x70a83f(0x123),'description':a303_0x70a83f(0x123),'folders':[a303_0x70a83f(0xfc)],'files':[{'type':a303_0x70a83f(0x120),'path':'.claude/skills/lovrabet/SKILL.md'}]},'cline':{'name':'Cline','description':a303_0x70a83f(0x116),'folders':['.cline'],'files':[{'type':a303_0x70a83f(0x120),'path':a303_0x70a83f(0x110)}]},'codex':{'name':a303_0x70a83f(0x127),'description':a303_0x70a83f(0x10f),'folders':[a303_0x70a83f(0x122)],'files':[{'type':a303_0x70a83f(0x120),'path':a303_0x70a83f(0x106)}]},'opencode':{'name':a303_0x70a83f(0x11d),'description':a303_0x70a83f(0x11f),'folders':[a303_0x70a83f(0xfa)],'files':[{'type':a303_0x70a83f(0x120),'path':a303_0x70a83f(0x115)}]},'qoder':{'name':a303_0x70a83f(0x112),'description':a303_0x70a83f(0x105),'folders':[a303_0x70a83f(0x10a)],'files':[{'type':a303_0x70a83f(0x120),'path':a303_0x70a83f(0xf6)},{'type':a303_0x70a83f(0x120),'path':a303_0x70a83f(0x11e)}]},'codebuddy':{'name':'CodeBuddy','description':a303_0x70a83f(0x101),'folders':['.codebuddy'],'files':[{'type':a303_0x70a83f(0x120),'path':'.codebuddy/skills/lovrabet/SKILL.md'}]},'trae':{'name':a303_0x70a83f(0x114),'description':a303_0x70a83f(0x126),'folders':['.trae'],'files':[{'type':a303_0x70a83f(0x120),'path':a303_0x70a83f(0xf7)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'Other\x20(generic\x20template)','description':'Generic\x20template\x20fallback','folders':[a303_0x70a83f(0x128)],'files':[{'type':'file','path':'.agent/skills/lovrabet/SKILL.md'}]},'antigravity':{'name':a303_0x70a83f(0x104),'description':'Antigravity\x20IDE','folders':[a303_0x70a83f(0x128)],'files':[{'type':a303_0x70a83f(0x120),'path':a303_0x70a83f(0x111)}]}};export const CORE_IDE_LIST=[a303_0x70a83f(0x103),'cline',a303_0x70a83f(0x107),a303_0x70a83f(0x10b),a303_0x70a83f(0xf9),a303_0x70a83f(0x108),a303_0x70a83f(0x113),a303_0x70a83f(0x100),a303_0x70a83f(0x11a)];export const IDE_LIST=[a303_0x70a83f(0x118),a303_0x70a83f(0x103),a303_0x70a83f(0x10e),a303_0x70a83f(0x107),'codex',a303_0x70a83f(0xf9),a303_0x70a83f(0x108),a303_0x70a83f(0x113),a303_0x70a83f(0x100),a303_0x70a83f(0x11a),a303_0x70a83f(0x109)];function a303_0xca5e(){const _0xb27b57=['Trae','.opencode/skills/lovrabet/SKILL.md','Cline\x20IDE','51HuVVSN','antigravity','312KXLVxn','windsurf','Windsurf','28273DuSgxm','OpenCode','.qoder/skills/lovrabet/SKILL.md','OpenCode\x20IDE','file','Cursor\x20IDE','.codex','Claude\x20Code','592082JHsOvO','176492HsZMHG','Trae\x20IDE','Codex','.agent','.windsurf/workflows/rabetbase.md','.qoder/rules/rabetbase.md','.trae/skills/lovrabet/SKILL.md','771815ELCtWo','cursor','.opencode','5364837jdqpjx','.claude','Windsurf\x20IDE','1850682KgDwQr','1eAuZPQ','trae','CodeBuddy\x20IDE','3712680MrLTVR','claude','Antigravity','Qoder\x20IDE','.codex/skills/lovrabet/SKILL.md','codebuddy','opencode','agent','.qoder','codex','.cursor','Cursor','cline','Codex\x20IDE','.cline/skills/lovrabet/SKILL.md','.agent/skills/lovrabet/SKILL.md','Qoder','qoder'];a303_0xca5e=function(){return _0xb27b57;};return a303_0xca5e();}export const ALL_CORE_IDES=[a303_0x70a83f(0xf9),'windsurf',a303_0x70a83f(0x103),a303_0x70a83f(0x10e),a303_0x70a83f(0x10b),a303_0x70a83f(0x108),'qoder',a303_0x70a83f(0x107),a303_0x70a83f(0x100)];
@@ -1 +1 @@
1
- (function(_0x549a20,_0x40e448){const _0x1e51aa=a304_0x16c7,_0x4746b1=_0x549a20();while(!![]){try{const _0x105f0b=-parseInt(_0x1e51aa(0x11b))/0x1+parseInt(_0x1e51aa(0x117))/0x2*(-parseInt(_0x1e51aa(0x115))/0x3)+-parseInt(_0x1e51aa(0x11c))/0x4+parseInt(_0x1e51aa(0x113))/0x5*(parseInt(_0x1e51aa(0x116))/0x6)+-parseInt(_0x1e51aa(0x114))/0x7*(parseInt(_0x1e51aa(0x119))/0x8)+parseInt(_0x1e51aa(0x11d))/0x9+-parseInt(_0x1e51aa(0x11a))/0xa*(-parseInt(_0x1e51aa(0x118))/0xb);if(_0x105f0b===_0x40e448)break;else _0x4746b1['push'](_0x4746b1['shift']());}catch(_0x2c6ce1){_0x4746b1['push'](_0x4746b1['shift']());}}}(a304_0x4318,0xa584a));function a304_0x4318(){const _0x37ce92=['4740508OAjKry','4783383NWtvcN','685VUQdgt','176190pmVKrQ','4026369PqlPty','51180PGhSAj','2GIZMhG','33srLmWR','80detGIT','6334070KLcDIb','143406hCQRxf'];a304_0x4318=function(){return _0x37ce92;};return a304_0x4318();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a304_0x16c7(_0x47cd4b,_0x4b7794){_0x47cd4b=_0x47cd4b-0x113;const _0x431817=a304_0x4318();let _0x16c783=_0x431817[_0x47cd4b];return _0x16c783;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ function a304_0x2f4b(_0x29d832,_0x1dd424){_0x29d832=_0x29d832-0x186;const _0x575970=a304_0x5759();let _0x2f4bb2=_0x575970[_0x29d832];return _0x2f4bb2;}function a304_0x5759(){const _0x1a1dff=['83IercEe','6OAGwlD','12278bEPYge','3774888VMYnXW','4564676tHPfwh','44136oFcnuw','2690OhCsgU','2927253ptxqCP','5467775aoTWRH','1652046OrmNWl'];a304_0x5759=function(){return _0x1a1dff;};return a304_0x5759();}(function(_0x357cc8,_0x3bca3c){const _0x3f9e15=a304_0x2f4b,_0x3a3646=_0x357cc8();while(!![]){try{const _0x1eb199=parseInt(_0x3f9e15(0x187))/0x1*(parseInt(_0x3f9e15(0x189))/0x2)+parseInt(_0x3f9e15(0x186))/0x3+-parseInt(_0x3f9e15(0x18b))/0x4+parseInt(_0x3f9e15(0x18f))/0x5+-parseInt(_0x3f9e15(0x188))/0x6*(-parseInt(_0x3f9e15(0x18e))/0x7)+parseInt(_0x3f9e15(0x18a))/0x8+parseInt(_0x3f9e15(0x18c))/0x9*(-parseInt(_0x3f9e15(0x18d))/0xa);if(_0x1eb199===_0x3bca3c)break;else _0x3a3646['push'](_0x3a3646['shift']());}catch(_0x4b8463){_0x3a3646['push'](_0x3a3646['shift']());}}}(a304_0x5759,0x8e72d));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x2e5c4e,_0x560bcb){const _0x3fed84=a305_0x5688,_0x7812f9=_0x2e5c4e();while(!![]){try{const _0x10fbf4=parseInt(_0x3fed84(0xa7))/0x1*(-parseInt(_0x3fed84(0xa3))/0x2)+-parseInt(_0x3fed84(0xa5))/0x3*(-parseInt(_0x3fed84(0xa2))/0x4)+-parseInt(_0x3fed84(0xb0))/0x5*(-parseInt(_0x3fed84(0x9f))/0x6)+parseInt(_0x3fed84(0xa9))/0x7*(-parseInt(_0x3fed84(0xb1))/0x8)+-parseInt(_0x3fed84(0xa4))/0x9*(parseInt(_0x3fed84(0xab))/0xa)+-parseInt(_0x3fed84(0xaa))/0xb+parseInt(_0x3fed84(0xa8))/0xc*(parseInt(_0x3fed84(0xa6))/0xd);if(_0x10fbf4===_0x560bcb)break;else _0x7812f9['push'](_0x7812f9['shift']());}catch(_0x4a617d){_0x7812f9['push'](_0x7812f9['shift']());}}}(a305_0x4c8d,0xec225));import{getTemplateBaseUrl}from'../utils/config.js';function a305_0x4c8d(){const _0x317c46=['2028240BAHxnx','1428216QgEFRc','/config.json','stableVersion','25980hiQmOU','34dTErXS','12103983FlsFjC','156gEvqkQ','7813cCFMOO','88953YXOyQP','79956gohIKs','14kvYeJY','2737746BSdzac','10tyqGHN','json','/config/index.json','now','application/json','5sqIJlN'];a305_0x4c8d=function(){return _0x317c46;};return a305_0x4c8d();}function a305_0x5688(_0x3f2d08,_0x1ce77e){_0x3f2d08=_0x3f2d08-0x9f;const _0x4c8d24=a305_0x4c8d();let _0x56888e=_0x4c8d24[_0x3f2d08];return _0x56888e;}export async function fetchCdnConfig(){const _0x43aa71=a305_0x5688,_0x4e93d8=getTemplateBaseUrl(),_0xad8e21=[_0x4e93d8+_0x43aa71(0xa0),_0x4e93d8+_0x43aa71(0xad)];for(const _0x12dd39 of _0xad8e21){try{const _0x203e61=await fetch(_0x12dd39,{'headers':{'Accept':_0x43aa71(0xaf)}});if(!_0x203e61['ok'])continue;const _0x9751e0=await _0x203e61[_0x43aa71(0xac)]();if(!_0x9751e0['cli']?.[_0x43aa71(0xa1)]||!_0x9751e0['sdk']?.['node']?.[_0x43aa71(0xa1)])continue;return _0x9751e0;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x13aca4=a305_0x5688,_0xe8f251=Date[_0x13aca4(0xae)]();if(hasCachedConfig){const _0xe05550=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xe8f251-cacheTime<_0xe05550)return cachedConfig;}const _0x1cc120=await fetchCdnConfig();return cachedConfig=_0x1cc120,cacheTime=_0xe8f251,hasCachedConfig=!![],_0x1cc120;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ function a305_0x5b60(){const _0x15e9ba=['45811mMyqZt','now','3141ieLaeg','cli','535898XUtlcn','259cNDZFK','3490548JarWvF','592143oQyGgs','13304cJfDbh','47676zZBxBZ','application/json','stableVersion','4JiymCD','sdk','node','12rQncWK','50QRaooN','566245gNSwGg'];a305_0x5b60=function(){return _0x15e9ba;};return a305_0x5b60();}(function(_0xbb4b27,_0x2b3e9a){const _0x28380e=a305_0x2eff,_0x763446=_0xbb4b27();while(!![]){try{const _0x5cebdf=parseInt(_0x28380e(0x160))/0x1+parseInt(_0x28380e(0x15a))/0x2*(-parseInt(_0x28380e(0x155))/0x3)+-parseInt(_0x28380e(0x15d))/0x4*(-parseInt(_0x28380e(0x15f))/0x5)+-parseInt(_0x28380e(0x157))/0x6*(parseInt(_0x28380e(0x165))/0x7)+-parseInt(_0x28380e(0x156))/0x8*(-parseInt(_0x28380e(0x162))/0x9)+parseInt(_0x28380e(0x15e))/0xa*(-parseInt(_0x28380e(0x164))/0xb)+parseInt(_0x28380e(0x166))/0xc;if(_0x5cebdf===_0x2b3e9a)break;else _0x763446['push'](_0x763446['shift']());}catch(_0x3dc6f5){_0x763446['push'](_0x763446['shift']());}}}(a305_0x5b60,0x4f376));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x42a45b=a305_0x2eff,_0x2b3f84=getTemplateBaseUrl(),_0x157d91=[_0x2b3f84+'/config.json',_0x2b3f84+'/config/index.json'];for(const _0x573ff3 of _0x157d91){try{const _0x427a49=await fetch(_0x573ff3,{'headers':{'Accept':_0x42a45b(0x158)}});if(!_0x427a49['ok'])continue;const _0x485c2e=await _0x427a49['json']();if(!_0x485c2e[_0x42a45b(0x163)]?.[_0x42a45b(0x159)]||!_0x485c2e[_0x42a45b(0x15b)]?.[_0x42a45b(0x15c)]?.[_0x42a45b(0x159)])continue;return _0x485c2e;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];function a305_0x2eff(_0x2e0857,_0x3306f1){_0x2e0857=_0x2e0857-0x155;const _0x5b6041=a305_0x5b60();let _0x2effcf=_0x5b6041[_0x2e0857];return _0x2effcf;}export async function getCdnConfig(){const _0x34ab95=a305_0x2eff,_0x4b1917=Date[_0x34ab95(0x161)]();if(hasCachedConfig){const _0x2b0753=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x4b1917-cacheTime<_0x2b0753)return cachedConfig;}const _0x2c0c5f=await fetchCdnConfig();return cachedConfig=_0x2c0c5f,cacheTime=_0x4b1917,hasCachedConfig=!![],_0x2c0c5f;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a306_0x4f4f1d=a306_0x2bb9;(function(_0x4f84fc,_0x5e4495){const _0x4192e3=a306_0x2bb9,_0x590060=_0x4f84fc();while(!![]){try{const _0x1e36f8=parseInt(_0x4192e3(0x193))/0x1*(-parseInt(_0x4192e3(0x1a2))/0x2)+parseInt(_0x4192e3(0x1a7))/0x3+parseInt(_0x4192e3(0x19b))/0x4*(-parseInt(_0x4192e3(0x1b1))/0x5)+parseInt(_0x4192e3(0x1a8))/0x6+parseInt(_0x4192e3(0x18c))/0x7+-parseInt(_0x4192e3(0x190))/0x8*(parseInt(_0x4192e3(0x1ac))/0x9)+parseInt(_0x4192e3(0x1ab))/0xa;if(_0x1e36f8===_0x5e4495)break;else _0x590060['push'](_0x590060['shift']());}catch(_0x4189ae){_0x590060['push'](_0x590060['shift']());}}}(a306_0x2803,0xe8ce4));import a306_0x32bb7b from'node:fs';import a306_0x5b84bd from'node:path';import a306_0xf25d7d from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a306_0x4f4f1d(0x1a3);function isNonNumericVersion(_0x5a5568){const _0x4d3a10=a306_0x4f4f1d,_0x2930c2=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2930c2[_0x4d3a10(0x18d)](_0x26ed3b=>_0x26ed3b['test'](_0x5a5568));}function getInstalledVersion(_0x49b0d9,_0x58cfe4){const _0x1eac6f=a306_0x4f4f1d;try{const _0x55b924=a306_0x5b84bd['join'](_0x49b0d9,_0x1eac6f(0x19a),_0x58cfe4,_0x1eac6f(0x19c));if(a306_0x32bb7b[_0x1eac6f(0x18e)](_0x55b924)){const _0x34a948=JSON[_0x1eac6f(0x1a6)](a306_0x32bb7b[_0x1eac6f(0x192)](_0x55b924,_0x1eac6f(0x1ad)));return _0x34a948[_0x1eac6f(0x18f)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x3d330f=a306_0x4f4f1d;try{const _0x5045cc=await getCdnConfig();return _0x5045cc?.[_0x3d330f(0x199)]?.[_0x3d330f(0x191)]?.[_0x3d330f(0x19d)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x49edef=a306_0x4f4f1d;try{const _0x1890f3=await getCdnConfig();return _0x1890f3?.[_0x49edef(0x199)]?.['node']?.[_0x49edef(0x1aa)]||_0x49edef(0x18b);}catch{return _0x49edef(0x18b);}}function a306_0x2803(){const _0x4a0696=['5924580KoqedI','\x20\x20\x20Stable\x20version:\x20','packageName','3931070aBHkBg','981flXFCx','utf-8','↪\x20SDK\x20update\x20available','join','utf8','4175UmUWWK','@lovrabet/sdk','12414647AJmMSf','some','existsSync','version','34928haPTdv','node','readFileSync','1098101SxxjsA','all','\x1b[1m','dependencies','log','\x20\x20\x20Upgrade\x20command:\x20','sdk','node_modules','3128HXPhbX','package.json','stableVersion','needsUpgrade','minVersion','coerce','devDependencies','2HsYdUk','1.2.0','\x20\x20\x20Current\x20version:\x20','latest','parse','79437PCSdQp'];a306_0x2803=function(){return _0x4a0696;};return a306_0x2803();}export async function checkSdkVersion(_0x578325){const _0x1076ba=a306_0x4f4f1d,_0x84cb14=a306_0x5b84bd[_0x1076ba(0x1af)](_0x578325,'package.json'),[_0x387535,_0x1bb297]=await Promise[_0x1076ba(0x194)]([getSdkStableVersion(),getSdkPackageName()]),_0x110430=_0x387535||FALLBACK_MIN_SDK_VERSION;if(!a306_0x32bb7b[_0x1076ba(0x18e)](_0x84cb14))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x110430,'packageName':_0x1bb297,'stableVersion':_0x387535};try{const _0x1118b1=JSON[_0x1076ba(0x1a6)](a306_0x32bb7b[_0x1076ba(0x192)](_0x84cb14,'utf8')),_0x41c3ea=_0x1118b1['dependencies']||{},_0x186604=_0x1118b1[_0x1076ba(0x1a1)]||{},_0x100bb0=_0x41c3ea[_0x1bb297]||_0x186604[_0x1bb297];if(!_0x100bb0)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x110430,'packageName':_0x1bb297,'stableVersion':_0x387535};let _0xecb097=getInstalledVersion(_0x578325,_0x1bb297);!_0xecb097&&(_0xecb097=_0x100bb0);if(isNonNumericVersion(_0x100bb0))return{'installed':!![],'version':_0xecb097,'needsUpgrade':![],'minVersion':_0x110430,'packageName':_0x1bb297,'stableVersion':_0x387535};const _0x46d4bf=a306_0xf25d7d[_0x1076ba(0x1a0)](_0xecb097),_0x4ed189=a306_0xf25d7d[_0x1076ba(0x1a0)](_0x110430),_0x5c4b07=_0x46d4bf&&_0x4ed189?a306_0xf25d7d['lt'](_0x46d4bf,_0x4ed189):![];return{'installed':!![],'version':_0xecb097,'needsUpgrade':_0x5c4b07,'minVersion':_0x110430,'packageName':_0x1bb297,'stableVersion':_0x387535};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x110430,'packageName':_0x1bb297,'stableVersion':_0x387535};}}function a306_0x2bb9(_0x2d85cb,_0x5019aa){_0x2d85cb=_0x2d85cb-0x18b;const _0x2803bf=a306_0x2803();let _0x2bb9eb=_0x2803bf[_0x2d85cb];return _0x2bb9eb;}export function checkSdkVersionSync(_0x413f4b){const _0x459049=a306_0x4f4f1d,_0x3b61b5=a306_0x5b84bd[_0x459049(0x1af)](_0x413f4b,_0x459049(0x19c)),_0x13682c=_0x459049(0x18b);if(!a306_0x32bb7b['existsSync'](_0x3b61b5))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x13682c,'stableVersion':null};try{const _0x5aaabc=JSON['parse'](a306_0x32bb7b[_0x459049(0x192)](_0x3b61b5,_0x459049(0x1b0))),_0x36120a=_0x5aaabc[_0x459049(0x196)]||{},_0x5c2139=_0x5aaabc['devDependencies']||{},_0x3edb58=_0x36120a[_0x13682c]||_0x5c2139[_0x13682c];if(!_0x3edb58)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x13682c,'stableVersion':null};let _0x1c124f=getInstalledVersion(_0x413f4b,_0x13682c);!_0x1c124f&&(_0x1c124f=_0x3edb58);if(isNonNumericVersion(_0x3edb58))return{'installed':!![],'version':_0x1c124f,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x13682c,'stableVersion':null};const _0x277958=a306_0xf25d7d[_0x459049(0x1a0)](_0x1c124f),_0x523666=_0x277958?a306_0xf25d7d['lt'](_0x277958,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x1c124f,'needsUpgrade':_0x523666,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x13682c,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x13682c,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x305f84){const _0x57e5b8=a306_0x4f4f1d;if(!_0x305f84[_0x57e5b8(0x19e)])return;const _0x8fd205='\x1b[33m',_0x452d25='\x1b[0m',_0x134c02=_0x57e5b8(0x195),_0x20374c=_0x305f84['packageName']||_0x57e5b8(0x18b),_0x1c984b=_0x305f84[_0x57e5b8(0x19d)]||_0x305f84[_0x57e5b8(0x19f)],_0x2e24af='npm\x20install\x20'+_0x20374c+'@'+(_0x1c984b||_0x57e5b8(0x1a5));console['log'](),console[_0x57e5b8(0x197)](''+_0x8fd205+_0x134c02+_0x57e5b8(0x1ae)+_0x452d25),console['log'](_0x8fd205+_0x57e5b8(0x1a4)+_0x20374c+'@'+_0x305f84[_0x57e5b8(0x18f)]+_0x452d25),console[_0x57e5b8(0x197)](_0x8fd205+_0x57e5b8(0x1a9)+_0x1c984b+_0x452d25),console[_0x57e5b8(0x197)](_0x8fd205+_0x57e5b8(0x198)+_0x2e24af+_0x452d25),console[_0x57e5b8(0x197)]();}
1
+ function a306_0x5d73(){const _0xe05418=['sdk','version','join','npm\x20install\x20','\x1b[1m','utf8','14SwbvyZ','868AgblCR','1948788RKOmBa','47049vkgbZc','coerce','existsSync','100YlPOBA','parse','packageName','\x20\x20\x20Stable\x20version:\x20','@lovrabet/sdk','minVersion','1527395gZTnMX','stableVersion','needsUpgrade','log','12848jlKjCd','all','12FLKOjQ','\x20\x20\x20Upgrade\x20command:\x20','\x1b[0m','node','52djEXGq','latest','60584BfDxVa','devDependencies','443277aYAJrJ','node_modules','dependencies','package.json','utf-8','17075432fnNOPI','\x20\x20\x20Current\x20version:\x20','↪\x20SDK\x20update\x20available','test','readFileSync'];a306_0x5d73=function(){return _0xe05418;};return a306_0x5d73();}(function(_0x49d5fc,_0x87e03a){const _0x5a20fe=a306_0x31a9,_0x44f57b=_0x49d5fc();while(!![]){try{const _0x48196d=-parseInt(_0x5a20fe(0xa0))/0x1*(parseInt(_0x5a20fe(0x88))/0x2)+parseInt(_0x5a20fe(0x8b))/0x3*(parseInt(_0x5a20fe(0x9e))/0x4)+parseInt(_0x5a20fe(0x94))/0x5+-parseInt(_0x5a20fe(0x8a))/0x6+-parseInt(_0x5a20fe(0x89))/0x7*(parseInt(_0x5a20fe(0x98))/0x8)+parseInt(_0x5a20fe(0xa2))/0x9*(-parseInt(_0x5a20fe(0x8e))/0xa)+parseInt(_0x5a20fe(0xa7))/0xb*(parseInt(_0x5a20fe(0x9a))/0xc);if(_0x48196d===_0x87e03a)break;else _0x44f57b['push'](_0x44f57b['shift']());}catch(_0x2b7a0b){_0x44f57b['push'](_0x44f57b['shift']());}}}(a306_0x5d73,0x97a36));import a306_0xa741ce from'node:fs';import a306_0x197a6c from'node:path';import a306_0x137b11 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function a306_0x31a9(_0x15f9cd,_0x1a6984){_0x15f9cd=_0x15f9cd-0x87;const _0x5d73e5=a306_0x5d73();let _0x31a911=_0x5d73e5[_0x15f9cd];return _0x31a911;}function isNonNumericVersion(_0xa4bbc8){const _0x75f12a=a306_0x31a9,_0xb9ace7=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0xb9ace7['some'](_0x1f8123=>_0x1f8123[_0x75f12a(0xaa)](_0xa4bbc8));}function getInstalledVersion(_0x4bb369,_0x1b9f7f){const _0x88d1f6=a306_0x31a9;try{const _0x8fece3=a306_0x197a6c[_0x88d1f6(0xae)](_0x4bb369,_0x88d1f6(0xa3),_0x1b9f7f,_0x88d1f6(0xa5));if(a306_0xa741ce[_0x88d1f6(0x8d)](_0x8fece3)){const _0x885fb6=JSON[_0x88d1f6(0x8f)](a306_0xa741ce[_0x88d1f6(0xab)](_0x8fece3,_0x88d1f6(0xa6)));return _0x885fb6[_0x88d1f6(0xad)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x52740f=a306_0x31a9;try{const _0x18f388=await getCdnConfig();return _0x18f388?.['sdk']?.[_0x52740f(0x9d)]?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x29f0c9=a306_0x31a9;try{const _0x50fa70=await getCdnConfig();return _0x50fa70?.[_0x29f0c9(0xac)]?.[_0x29f0c9(0x9d)]?.[_0x29f0c9(0x90)]||'@lovrabet/sdk';}catch{return _0x29f0c9(0x92);}}export async function checkSdkVersion(_0x56c846){const _0x354780=a306_0x31a9,_0x17b463=a306_0x197a6c[_0x354780(0xae)](_0x56c846,_0x354780(0xa5)),[_0x5f36f5,_0x32564f]=await Promise[_0x354780(0x99)]([getSdkStableVersion(),getSdkPackageName()]),_0x4bfaa4=_0x5f36f5||FALLBACK_MIN_SDK_VERSION;if(!a306_0xa741ce[_0x354780(0x8d)](_0x17b463))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4bfaa4,'packageName':_0x32564f,'stableVersion':_0x5f36f5};try{const _0x34d104=JSON['parse'](a306_0xa741ce['readFileSync'](_0x17b463,_0x354780(0x87))),_0x2b172b=_0x34d104[_0x354780(0xa4)]||{},_0x3cafbf=_0x34d104[_0x354780(0xa1)]||{},_0x362c7f=_0x2b172b[_0x32564f]||_0x3cafbf[_0x32564f];if(!_0x362c7f)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4bfaa4,'packageName':_0x32564f,'stableVersion':_0x5f36f5};let _0x2d65bd=getInstalledVersion(_0x56c846,_0x32564f);!_0x2d65bd&&(_0x2d65bd=_0x362c7f);if(isNonNumericVersion(_0x362c7f))return{'installed':!![],'version':_0x2d65bd,'needsUpgrade':![],'minVersion':_0x4bfaa4,'packageName':_0x32564f,'stableVersion':_0x5f36f5};const _0x2427a6=a306_0x137b11[_0x354780(0x8c)](_0x2d65bd),_0x516aaf=a306_0x137b11['coerce'](_0x4bfaa4),_0x5f108d=_0x2427a6&&_0x516aaf?a306_0x137b11['lt'](_0x2427a6,_0x516aaf):![];return{'installed':!![],'version':_0x2d65bd,'needsUpgrade':_0x5f108d,'minVersion':_0x4bfaa4,'packageName':_0x32564f,'stableVersion':_0x5f36f5};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4bfaa4,'packageName':_0x32564f,'stableVersion':_0x5f36f5};}}export function checkSdkVersionSync(_0x267d31){const _0x5007a6=a306_0x31a9,_0x42cf4c=a306_0x197a6c[_0x5007a6(0xae)](_0x267d31,_0x5007a6(0xa5)),_0x5172a4=_0x5007a6(0x92);if(!a306_0xa741ce[_0x5007a6(0x8d)](_0x42cf4c))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5172a4,'stableVersion':null};try{const _0x580c47=JSON[_0x5007a6(0x8f)](a306_0xa741ce[_0x5007a6(0xab)](_0x42cf4c,_0x5007a6(0x87))),_0x2d3f86=_0x580c47[_0x5007a6(0xa4)]||{},_0x2ae5ed=_0x580c47[_0x5007a6(0xa1)]||{},_0x35f47f=_0x2d3f86[_0x5172a4]||_0x2ae5ed[_0x5172a4];if(!_0x35f47f)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5172a4,'stableVersion':null};let _0x4ca17f=getInstalledVersion(_0x267d31,_0x5172a4);!_0x4ca17f&&(_0x4ca17f=_0x35f47f);if(isNonNumericVersion(_0x35f47f))return{'installed':!![],'version':_0x4ca17f,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5172a4,'stableVersion':null};const _0x5d5a5a=a306_0x137b11[_0x5007a6(0x8c)](_0x4ca17f),_0x2b8ada=_0x5d5a5a?a306_0x137b11['lt'](_0x5d5a5a,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x4ca17f,'needsUpgrade':_0x2b8ada,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5172a4,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5172a4,'stableVersion':null};}}export function printSdkUpgradeWarning(_0xafc0c1){const _0x2c3148=a306_0x31a9;if(!_0xafc0c1[_0x2c3148(0x96)])return;const _0x91cc76='\x1b[33m',_0x1718cc=_0x2c3148(0x9c),_0x25c2c8=_0x2c3148(0xb0),_0x3607bd=_0xafc0c1[_0x2c3148(0x90)]||_0x2c3148(0x92),_0x1137c3=_0xafc0c1[_0x2c3148(0x95)]||_0xafc0c1[_0x2c3148(0x93)],_0x3c5b08=_0x2c3148(0xaf)+_0x3607bd+'@'+(_0x1137c3||_0x2c3148(0x9f));console[_0x2c3148(0x97)](),console[_0x2c3148(0x97)](''+_0x91cc76+_0x25c2c8+_0x2c3148(0xa9)+_0x1718cc),console[_0x2c3148(0x97)](_0x91cc76+_0x2c3148(0xa8)+_0x3607bd+'@'+_0xafc0c1[_0x2c3148(0xad)]+_0x1718cc),console[_0x2c3148(0x97)](_0x91cc76+_0x2c3148(0x91)+_0x1137c3+_0x1718cc),console[_0x2c3148(0x97)](_0x91cc76+_0x2c3148(0x9b)+_0x3c5b08+_0x1718cc),console[_0x2c3148(0x97)]();}
@@ -1 +1 @@
1
- (function(_0x2e2b1e,_0x163ea0){const _0x5a06ac=a307_0x5211,_0x281d31=_0x2e2b1e();while(!![]){try{const _0x116abd=-parseInt(_0x5a06ac(0xb4))/0x1*(parseInt(_0x5a06ac(0xa5))/0x2)+-parseInt(_0x5a06ac(0xa6))/0x3+parseInt(_0x5a06ac(0xa9))/0x4+parseInt(_0x5a06ac(0xb1))/0x5*(-parseInt(_0x5a06ac(0xa8))/0x6)+parseInt(_0x5a06ac(0xc6))/0x7*(parseInt(_0x5a06ac(0xb6))/0x8)+parseInt(_0x5a06ac(0xb7))/0x9+parseInt(_0x5a06ac(0xac))/0xa*(-parseInt(_0x5a06ac(0xba))/0xb);if(_0x116abd===_0x163ea0)break;else _0x281d31['push'](_0x281d31['shift']());}catch(_0x28400c){_0x281d31['push'](_0x281d31['shift']());}}}(a307_0x4317,0x8e7aa));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a307_0x36e2d5 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a307_0x5211(_0x47788f,_0xbf9a55){_0x47788f=_0x47788f-0xa5;const _0x431735=a307_0x4317();let _0x5211e7=_0x431735[_0x47788f];return _0x5211e7;}export function getCliUpgradeCommand(_0x64a7cf){const _0x13073c=a307_0x5211,_0x1e0f61=_0x64a7cf[_0x13073c(0xb3)]||_0x13073c(0xa7);return _0x13073c(0xc8)+NPM_PACKAGE_NAME+'@'+_0x1e0f61;}function getCurrentCliVersion(){const _0x3a43de=a307_0x5211;try{const _0x20b607=fileURLToPath(import.meta.url),_0x4ebc50=resolve(dirname(_0x20b607),'../..'),_0x32db79=resolve(_0x4ebc50,'package.json'),_0x3317e5=JSON['parse'](readFileSync(_0x32db79,_0x3a43de(0xb8)));return _0x3317e5['version']||'1.0.0';}catch{return _0x3a43de(0xbd);}}export async function checkCliVersion(){const _0x16dd94=a307_0x5211,_0x317784=getCurrentCliVersion(),_0xc2f3fc=await getCliVersionPolicy(),_0x3d695b=_0xc2f3fc?.[_0x16dd94(0xb3)]||null,_0x3e9dd2=_0xc2f3fc?.[_0x16dd94(0xbe)]||null;let _0x321ce9=![],_0x35b14a=![];const _0x4003bf=a307_0x36e2d5[_0x16dd94(0xb0)](_0x317784);if(_0x4003bf&&_0x3d695b)try{const _0x5de7ec=a307_0x36e2d5['coerce'](_0x3d695b);if(_0x5de7ec)_0x321ce9=a307_0x36e2d5['lt'](_0x4003bf,_0x5de7ec);}catch{}if(_0x4003bf&&_0x3e9dd2)try{const _0x34c18d=a307_0x36e2d5[_0x16dd94(0xb0)](_0x3e9dd2);if(_0x34c18d)_0x35b14a=a307_0x36e2d5['lt'](_0x4003bf,_0x34c18d);}catch{}return _0x35b14a&&(_0x321ce9=!![]),{'currentVersion':_0x317784,'stableVersion':_0x3d695b,'minimumVersion':_0x3e9dd2,'needsUpgrade':_0x321ce9,'belowMinimum':_0x35b14a,'isPreRelease':![],'upgradeMessage':_0xc2f3fc?.[_0x16dd94(0xbf)],'minimumVersionMessage':_0xc2f3fc?.[_0x16dd94(0xad)]};}function a307_0x4317(){const _0x2fc011=['7HWQIzu','Minimum\x20supported:\x20','npm\x20install\x20-g\x20','38deMFiq','548427JBehkj','latest','12XRqFGA','1497440wfvogD','log','join','740yvXmLl','minimumVersionMessage','needsUpgrade','\x1b[1m','coerce','309560nugUXv','\x20\x20\x20Stable\x20version:\x20','stableVersion','6619HXcUIC','\x20\x20\x20Upgrade\x20command:\x20','1906768gPtCfo','8290206wMzsLv','utf-8','belowMinimum','76978SlgHTh','\x20\x20\x20Minimum\x20supported:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','1.0.0','minimumVersion','upgradeMessage','filter','↪\x20Critical\x20CLI\x20upgrade\x20required','\x1b[33m','\x20\x20\x20','Current\x20version:\x20','currentVersion'];a307_0x4317=function(){return _0x2fc011;};return a307_0x4317();}export function printCliUpgradeWarning(_0x2922ac){const _0x597be1=a307_0x5211;if(!_0x2922ac[_0x597be1(0xae)]&&!_0x2922ac[_0x597be1(0xb9)])return;const _0x229ab8='\x1b[31m',_0x56cd66=_0x597be1(0xc2),_0x3ffb96='\x1b[0m',_0x5c32e6=_0x597be1(0xaf),_0x2b3fde=getCliUpgradeCommand(_0x2922ac);console[_0x597be1(0xaa)](),_0x2922ac[_0x597be1(0xb9)]?(console['log'](''+_0x229ab8+_0x5c32e6+_0x597be1(0xc1)+_0x3ffb96),console[_0x597be1(0xaa)](_0x229ab8+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x2922ac[_0x597be1(0xc5)]+_0x3ffb96),_0x2922ac['minimumVersion']&&console[_0x597be1(0xaa)](_0x229ab8+_0x597be1(0xbb)+_0x2922ac['minimumVersion']+_0x3ffb96),_0x2922ac[_0x597be1(0xb3)]&&_0x2922ac[_0x597be1(0xb3)]!==_0x2922ac[_0x597be1(0xbe)]&&console[_0x597be1(0xaa)](_0x229ab8+'\x20\x20\x20Recommended\x20stable:\x20'+_0x2922ac['stableVersion']+_0x3ffb96),_0x2922ac['minimumVersionMessage']&&console['log'](_0x229ab8+'\x20\x20\x20'+_0x2922ac[_0x597be1(0xad)]+_0x3ffb96),console[_0x597be1(0xaa)](_0x229ab8+_0x597be1(0xb5)+_0x2b3fde+_0x3ffb96)):(console[_0x597be1(0xaa)](''+_0x56cd66+_0x5c32e6+'↪\x20New\x20version\x20available'+_0x3ffb96),console[_0x597be1(0xaa)](_0x56cd66+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x2922ac['currentVersion']+_0x3ffb96),console[_0x597be1(0xaa)](_0x56cd66+_0x597be1(0xb2)+_0x2922ac[_0x597be1(0xb3)]+_0x3ffb96),_0x2922ac[_0x597be1(0xbf)]&&console['log'](_0x56cd66+_0x597be1(0xc3)+_0x2922ac[_0x597be1(0xbf)]+_0x3ffb96),console['log'](_0x56cd66+_0x597be1(0xb5)+_0x2b3fde+_0x3ffb96)),console['log']();}export function assertCliVersionSupported(_0x52f11b){const _0x2d3c82=a307_0x5211;if(!_0x52f11b['belowMinimum'])return;const _0x2f6868=[_0x52f11b[_0x2d3c82(0xad)],_0x2d3c82(0xc4)+_0x52f11b['currentVersion'],_0x52f11b[_0x2d3c82(0xbe)]?_0x2d3c82(0xc7)+_0x52f11b['minimumVersion']:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x52f11b)][_0x2d3c82(0xc0)](Boolean)[_0x2d3c82(0xab)]('\x0a');throw CliErrors['validation'](_0x2d3c82(0xbc),_0x2f6868);}
1
+ function a307_0x179c(_0x44a07e,_0x582936){_0x44a07e=_0x44a07e-0xeb;const _0x494a1e=a307_0x494a();let _0x179cc3=_0x494a1e[_0x44a07e];return _0x179cc3;}(function(_0x358b51,_0x2f6e8c){const _0x96d222=a307_0x179c,_0x42d72f=_0x358b51();while(!![]){try{const _0x47d939=-parseInt(_0x96d222(0x10b))/0x1*(-parseInt(_0x96d222(0x10d))/0x2)+parseInt(_0x96d222(0xf9))/0x3*(parseInt(_0x96d222(0x100))/0x4)+-parseInt(_0x96d222(0xf0))/0x5+parseInt(_0x96d222(0xee))/0x6+-parseInt(_0x96d222(0xf3))/0x7*(-parseInt(_0x96d222(0xfd))/0x8)+-parseInt(_0x96d222(0xf6))/0x9+-parseInt(_0x96d222(0x113))/0xa;if(_0x47d939===_0x2f6e8c)break;else _0x42d72f['push'](_0x42d72f['shift']());}catch(_0x46a57c){_0x42d72f['push'](_0x42d72f['shift']());}}}(a307_0x494a,0x76a76));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a307_0x1c266f from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x444c48){const _0x1a7c71=a307_0x179c,_0x2371da=_0x444c48['stableVersion']||_0x1a7c71(0x106);return _0x1a7c71(0xfc)+NPM_PACKAGE_NAME+'@'+_0x2371da;}function getCurrentCliVersion(){const _0x3b15aa=a307_0x179c;try{const _0x170bf7=fileURLToPath(import.meta.url),_0x334c2f=resolve(dirname(_0x170bf7),_0x3b15aa(0x112)),_0x59b5ac=resolve(_0x334c2f,_0x3b15aa(0xf2)),_0x40edf2=JSON[_0x3b15aa(0xed)](readFileSync(_0x59b5ac,_0x3b15aa(0xfe)));return _0x40edf2[_0x3b15aa(0x103)]||_0x3b15aa(0x107);}catch{return _0x3b15aa(0x107);}}export async function checkCliVersion(){const _0x94ecc=a307_0x179c,_0x5c4eda=getCurrentCliVersion(),_0x2f4555=await getCliVersionPolicy(),_0x4faa79=_0x2f4555?.[_0x94ecc(0x10e)]||null,_0x4fe6c7=_0x2f4555?.[_0x94ecc(0x10c)]||null;let _0xa64e80=![],_0x284c6b=![];const _0x3f0c09=a307_0x1c266f[_0x94ecc(0xf4)](_0x5c4eda);if(_0x3f0c09&&_0x4faa79)try{const _0x540a1d=a307_0x1c266f[_0x94ecc(0xf4)](_0x4faa79);if(_0x540a1d)_0xa64e80=a307_0x1c266f['lt'](_0x3f0c09,_0x540a1d);}catch{}if(_0x3f0c09&&_0x4fe6c7)try{const _0x8bb66a=a307_0x1c266f['coerce'](_0x4fe6c7);if(_0x8bb66a)_0x284c6b=a307_0x1c266f['lt'](_0x3f0c09,_0x8bb66a);}catch{}return _0x284c6b&&(_0xa64e80=!![]),{'currentVersion':_0x5c4eda,'stableVersion':_0x4faa79,'minimumVersion':_0x4fe6c7,'needsUpgrade':_0xa64e80,'belowMinimum':_0x284c6b,'isPreRelease':![],'upgradeMessage':_0x2f4555?.[_0x94ecc(0xfa)],'minimumVersionMessage':_0x2f4555?.[_0x94ecc(0xec)]};}function a307_0x494a(){const _0x4ccb2e=['upgradeMessage','belowMinimum','npm\x20install\x20-g\x20','184KsFFUa','utf-8','\x20\x20\x20Current\x20CLI\x20version:\x20','284YyCalE','\x20\x20\x20','\x1b[31m','version','↪\x20Critical\x20CLI\x20upgrade\x20required','\x1b[33m','latest','1.0.0','log','join','Minimum\x20supported:\x20','858892uPoWXq','minimumVersion','2DbOcqi','stableVersion','\x20\x20\x20Recommended\x20stable:\x20','validation','\x1b[0m','../..','11234440TzzqMY','currentVersion','\x1b[1m','minimumVersionMessage','parse','1816776cXnehI','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','435700wAwIDx','needsUpgrade','package.json','123963fpfrgW','coerce','\x20\x20\x20Upgrade\x20command:\x20','911142GgdpJX','Upgrade\x20command:\x20','Current\x20version:\x20','9669CYuOBd'];a307_0x494a=function(){return _0x4ccb2e;};return a307_0x494a();}export function printCliUpgradeWarning(_0x178488){const _0x2c03c3=a307_0x179c;if(!_0x178488[_0x2c03c3(0xf1)]&&!_0x178488['belowMinimum'])return;const _0x438298=_0x2c03c3(0x102),_0x5f29fb=_0x2c03c3(0x105),_0x473b60=_0x2c03c3(0x111),_0x25fe4a=_0x2c03c3(0xeb),_0x42da67=getCliUpgradeCommand(_0x178488);console[_0x2c03c3(0x108)](),_0x178488[_0x2c03c3(0xfb)]?(console[_0x2c03c3(0x108)](''+_0x438298+_0x25fe4a+_0x2c03c3(0x104)+_0x473b60),console[_0x2c03c3(0x108)](_0x438298+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x178488[_0x2c03c3(0x114)]+_0x473b60),_0x178488[_0x2c03c3(0x10c)]&&console['log'](_0x438298+'\x20\x20\x20Minimum\x20supported:\x20'+_0x178488['minimumVersion']+_0x473b60),_0x178488[_0x2c03c3(0x10e)]&&_0x178488['stableVersion']!==_0x178488[_0x2c03c3(0x10c)]&&console['log'](_0x438298+_0x2c03c3(0x10f)+_0x178488[_0x2c03c3(0x10e)]+_0x473b60),_0x178488[_0x2c03c3(0xec)]&&console[_0x2c03c3(0x108)](_0x438298+_0x2c03c3(0x101)+_0x178488[_0x2c03c3(0xec)]+_0x473b60),console[_0x2c03c3(0x108)](_0x438298+'\x20\x20\x20Upgrade\x20command:\x20'+_0x42da67+_0x473b60)):(console[_0x2c03c3(0x108)](''+_0x5f29fb+_0x25fe4a+'↪\x20New\x20version\x20available'+_0x473b60),console[_0x2c03c3(0x108)](_0x5f29fb+_0x2c03c3(0xff)+_0x178488[_0x2c03c3(0x114)]+_0x473b60),console[_0x2c03c3(0x108)](_0x5f29fb+'\x20\x20\x20Stable\x20version:\x20'+_0x178488[_0x2c03c3(0x10e)]+_0x473b60),_0x178488[_0x2c03c3(0xfa)]&&console[_0x2c03c3(0x108)](_0x5f29fb+_0x2c03c3(0x101)+_0x178488[_0x2c03c3(0xfa)]+_0x473b60),console[_0x2c03c3(0x108)](_0x5f29fb+_0x2c03c3(0xf5)+_0x42da67+_0x473b60)),console[_0x2c03c3(0x108)]();}export function assertCliVersionSupported(_0x44327b){const _0x1e68cf=a307_0x179c;if(!_0x44327b[_0x1e68cf(0xfb)])return;const _0x1edd5d=[_0x44327b['minimumVersionMessage'],_0x1e68cf(0xf8)+_0x44327b[_0x1e68cf(0x114)],_0x44327b['minimumVersion']?_0x1e68cf(0x10a)+_0x44327b['minimumVersion']:null,_0x1e68cf(0xf7)+getCliUpgradeCommand(_0x44327b)]['filter'](Boolean)[_0x1e68cf(0x109)]('\x0a');throw CliErrors[_0x1e68cf(0x110)](_0x1e68cf(0xef),_0x1edd5d);}