@lovrabet/rabetbase-cli 2.5.1-beta.5 → 2.5.1-beta.6

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 (319) 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/auto-sync.js +1 -1
  99. package/lib/commands/deployment/index.js +1 -1
  100. package/lib/commands/deployment/sync.js +1 -1
  101. package/lib/commands/doctor.js +1 -1
  102. package/lib/commands/file/index.js +1 -1
  103. package/lib/commands/issue/index.js +1 -1
  104. package/lib/commands/issue/nudge.js +1 -1
  105. package/lib/commands/issue/report.js +1 -1
  106. package/lib/commands/issue/shared.js +1 -1
  107. package/lib/commands/kb/create.js +1 -1
  108. package/lib/commands/kb/delete.js +1 -1
  109. package/lib/commands/kb/detail.js +1 -1
  110. package/lib/commands/kb/index.js +1 -1
  111. package/lib/commands/kb/list.js +1 -1
  112. package/lib/commands/kb/search.js +1 -1
  113. package/lib/commands/kb/shared.js +1 -1
  114. package/lib/commands/kb/update.js +1 -1
  115. package/lib/commands/logs/index.js +1 -1
  116. package/lib/commands/menu/asset-update.js +1 -1
  117. package/lib/commands/menu/delete.js +1 -1
  118. package/lib/commands/menu/external-link-create.js +1 -1
  119. package/lib/commands/menu/external-link-update.js +1 -1
  120. package/lib/commands/menu/group-create.js +1 -1
  121. package/lib/commands/menu/group-update.js +1 -1
  122. package/lib/commands/menu/index.js +1 -1
  123. package/lib/commands/menu/list.js +1 -1
  124. package/lib/commands/menu/move.js +1 -1
  125. package/lib/commands/menu/regroup-start.js +1 -1
  126. package/lib/commands/menu/rename.js +1 -1
  127. package/lib/commands/menu/shared/compare-table.js +1 -1
  128. package/lib/commands/menu/shared/delete-plan.js +1 -1
  129. package/lib/commands/menu/shared/facts.js +1 -1
  130. package/lib/commands/menu/shared/index.js +1 -1
  131. package/lib/commands/menu/shared/inquirer.js +1 -1
  132. package/lib/commands/menu/shared/local-pages.js +1 -1
  133. package/lib/commands/menu/shared/logic.js +1 -1
  134. package/lib/commands/menu/shared/mutations.js +1 -1
  135. package/lib/commands/menu/shared/service.js +1 -1
  136. package/lib/commands/menu/shared/sync-core.js +1 -1
  137. package/lib/commands/menu/shared/update-core.js +1 -1
  138. package/lib/commands/menu/shared/valid-url.js +1 -1
  139. package/lib/commands/menu/sync.js +1 -1
  140. package/lib/commands/menu/visibility-update.js +1 -1
  141. package/lib/commands/notification/config-create.js +1 -1
  142. package/lib/commands/notification/config-delete.js +1 -1
  143. package/lib/commands/notification/config-list.js +1 -1
  144. package/lib/commands/notification/config-update.js +1 -1
  145. package/lib/commands/notification/index.js +1 -1
  146. package/lib/commands/notification/shared.js +1 -1
  147. package/lib/commands/ocr/index.js +1 -1
  148. package/lib/commands/page/create.js +1 -1
  149. package/lib/commands/page/custom/detail.js +1 -1
  150. package/lib/commands/page/custom/list.js +1 -1
  151. package/lib/commands/page/custom/publish.js +1 -1
  152. package/lib/commands/page/custom/shared.js +1 -1
  153. package/lib/commands/page/custom/syntax.js +1 -1
  154. package/lib/commands/page/custom/template.js +1 -1
  155. package/lib/commands/page/custom/update.js +1 -1
  156. package/lib/commands/page/data-list-status.js +1 -1
  157. package/lib/commands/page/generate-start.js +1 -1
  158. package/lib/commands/page/generate-status.js +1 -1
  159. package/lib/commands/page/index.js +1 -1
  160. package/lib/commands/page/pull.js +1 -1
  161. package/lib/commands/page/push.js +1 -1
  162. package/lib/commands/page/relation-audit.js +1 -1
  163. package/lib/commands/page/restore.js +1 -1
  164. package/lib/commands/page/shared.js +1 -1
  165. package/lib/commands/page/sync.js +1 -1
  166. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  167. package/lib/commands/project/create/format-elapsed.js +1 -1
  168. package/lib/commands/project/create/main.js +1 -1
  169. package/lib/commands/project/create/materialize-project-template.js +1 -1
  170. package/lib/commands/project/create/project-name.js +1 -1
  171. package/lib/commands/project/create/project-template-archive.js +1 -1
  172. package/lib/commands/project/create/project-template-path.js +1 -1
  173. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  174. package/lib/commands/project/create/use-format-code.js +1 -1
  175. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  176. package/lib/commands/project/domain-routing-sync.js +1 -1
  177. package/lib/commands/project/index.js +1 -1
  178. package/lib/commands/project/upgrade.js +1 -1
  179. package/lib/commands/registry.js +1 -1
  180. package/lib/commands/role/delete.js +1 -1
  181. package/lib/commands/role/detail.js +1 -1
  182. package/lib/commands/role/index.js +1 -1
  183. package/lib/commands/role/list.js +1 -1
  184. package/lib/commands/role/shared.js +1 -1
  185. package/lib/commands/role/update.js +1 -1
  186. package/lib/commands/role/user-add.js +1 -1
  187. package/lib/commands/role/user-remove.js +1 -1
  188. package/lib/commands/role/user-resolve.js +1 -1
  189. package/lib/commands/rule/get.js +1 -1
  190. package/lib/commands/rule/index.js +1 -1
  191. package/lib/commands/rule/list.js +1 -1
  192. package/lib/commands/rule/set.js +1 -1
  193. package/lib/commands/rule/shared.js +1 -1
  194. package/lib/commands/run/index.js +1 -1
  195. package/lib/commands/schema.js +1 -1
  196. package/lib/commands/sql/create.js +1 -1
  197. package/lib/commands/sql/delete.js +1 -1
  198. package/lib/commands/sql/detail.js +1 -1
  199. package/lib/commands/sql/exec.js +1 -1
  200. package/lib/commands/sql/index.js +1 -1
  201. package/lib/commands/sql/list.js +1 -1
  202. package/lib/commands/sql/pull.js +1 -1
  203. package/lib/commands/sql/push.js +1 -1
  204. package/lib/commands/sql/shared.js +1 -1
  205. package/lib/commands/sql/status.js +1 -1
  206. package/lib/commands/sql/validate.js +1 -1
  207. package/lib/commands/task/index.js +1 -1
  208. package/lib/commands/task/status.js +1 -1
  209. package/lib/commands/tenant/index.js +1 -1
  210. package/lib/commands/tenant/members-list.js +1 -1
  211. package/lib/commands/tenant/shared.js +1 -1
  212. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  213. package/lib/commands/user-account/index.js +1 -1
  214. package/lib/commands/workspace/add.js +1 -1
  215. package/lib/commands/workspace/index.js +1 -1
  216. package/lib/commands/workspace/remove.js +1 -1
  217. package/lib/config/deployment-sync.js +1 -1
  218. package/lib/config/domain-config.js +1 -1
  219. package/lib/config/project-domain-routing.js +1 -1
  220. package/lib/config/schema.js +1 -1
  221. package/lib/constant/cdn.js +1 -1
  222. package/lib/constant/cli.js +1 -1
  223. package/lib/constant/defaults.js +1 -1
  224. package/lib/constant/domain.js +1 -1
  225. package/lib/constant/env.js +1 -1
  226. package/lib/constant/output.js +1 -1
  227. package/lib/constant/paths.js +1 -1
  228. package/lib/constant/region.js +1 -1
  229. package/lib/constant/risk.js +1 -1
  230. package/lib/constant/routing-profile.js +1 -1
  231. package/lib/context/app-resolver.js +1 -1
  232. package/lib/context/auth-resolver.js +1 -1
  233. package/lib/context/config-loader.js +1 -1
  234. package/lib/context.js +1 -1
  235. package/lib/core/alias-resolver.js +1 -1
  236. package/lib/core/api-client.d.ts +0 -16
  237. package/lib/core/api-client.js +1 -1
  238. package/lib/core/bff/config.js +1 -1
  239. package/lib/core/bff/file-system.js +1 -1
  240. package/lib/core/bff/hash.js +1 -1
  241. package/lib/core/bff/lock.js +1 -1
  242. package/lib/core/bff/utils.js +1 -1
  243. package/lib/core/db-resolver.js +1 -1
  244. package/lib/core/kb-search-client.d.ts +30 -0
  245. package/lib/core/kb-search-client.js +1 -0
  246. package/lib/core/page/file-system.js +1 -1
  247. package/lib/core/page/hash.js +1 -1
  248. package/lib/core/page/lock.js +1 -1
  249. package/lib/core/sql-index-auditor.js +1 -1
  250. package/lib/core/sql-sync/config.js +1 -1
  251. package/lib/core/sql-sync/file-system.js +1 -1
  252. package/lib/core/sql-sync/hash.js +1 -1
  253. package/lib/core/sql-sync/lock.js +1 -1
  254. package/lib/core/sql-sync/utils.js +1 -1
  255. package/lib/core/sql-validator.js +1 -1
  256. package/lib/errors.js +1 -1
  257. package/lib/framework/build-all-flags.js +1 -1
  258. package/lib/framework/error-output.js +1 -1
  259. package/lib/framework/explicit-yes.js +1 -1
  260. package/lib/framework/flags.js +1 -1
  261. package/lib/framework/help.js +1 -1
  262. package/lib/framework/index.js +1 -1
  263. package/lib/framework/output.js +1 -1
  264. package/lib/framework/response.js +1 -1
  265. package/lib/framework/runner-alias.js +1 -1
  266. package/lib/framework/runner.js +1 -1
  267. package/lib/framework/schema-export.js +1 -1
  268. package/lib/framework/types.d.ts +1 -0
  269. package/lib/framework/types.js +1 -1
  270. package/lib/generated/build-info.d.ts +4 -4
  271. package/lib/generated/build-info.js +1 -1
  272. package/lib/generated/official-routing.js +1 -1
  273. package/lib/generated/routing-contract.js +1 -1
  274. package/lib/help.js +1 -1
  275. package/lib/postinstall.js +1 -1
  276. package/lib/runtime/confirmation.js +1 -1
  277. package/lib/runtime/event.js +1 -1
  278. package/lib/runtime/index.js +1 -1
  279. package/lib/runtime/queue.js +1 -1
  280. package/lib/runtime/resolve.js +1 -1
  281. package/lib/skills/builtin-skill.js +1 -1
  282. package/lib/skills/main.js +1 -1
  283. package/lib/skills/npx-skills-add.js +1 -1
  284. package/lib/skills/skill-presence.js +1 -1
  285. package/lib/telemetry/cli-command-trace.js +1 -1
  286. package/lib/telemetry/cli-help-trace.js +1 -1
  287. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  288. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  289. package/lib/telemetry/send-cli-trace-log.js +1 -1
  290. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  291. package/lib/utils/ai_config.js +1 -1
  292. package/lib/utils/apply-jq-filter.js +1 -1
  293. package/lib/utils/cdn-config.js +1 -1
  294. package/lib/utils/check-sdk-version.js +1 -1
  295. package/lib/utils/cli-version-check.js +1 -1
  296. package/lib/utils/cli-version-policy.js +1 -1
  297. package/lib/utils/config.js +1 -1
  298. package/lib/utils/entity-with-id.js +1 -1
  299. package/lib/utils/file-utils.js +1 -1
  300. package/lib/utils/guides-cdn.js +1 -1
  301. package/lib/utils/http-client.js +1 -1
  302. package/lib/utils/is-non-interactive.js +1 -1
  303. package/lib/utils/logger.js +1 -1
  304. package/lib/utils/params.js +1 -1
  305. package/lib/utils/platform.js +1 -1
  306. package/lib/utils/sleep.js +1 -1
  307. package/lib/utils/template-replacer.js +1 -1
  308. package/lib/utils/update-notice.js +1 -1
  309. package/lib/utils/version.js +1 -1
  310. package/lib/utils/with-active-cookie.js +1 -1
  311. package/lib/utils/write-cli-side-channel.js +1 -1
  312. package/package.json +1 -1
  313. package/skills/rabetbase/SKILL.md +3 -3
  314. package/skills/rabetbase/references/rabetbase-config.md +1 -1
  315. package/skills/rabetbase/references/rabetbase-database-template.md +36 -0
  316. package/skills/rabetbase/references/rabetbase-doctor.md +1 -1
  317. package/skills/rabetbase/references/rabetbase-kb.md +8 -7
  318. package/skills/rabetbase/references/rabetbase-rule.md +15 -0
  319. package/skills/rabetbase.manifest.json +4 -3
@@ -1 +1 @@
1
- function a276_0x543b(){const _0xf70bc0=['stringify','write','37250ZrCgju','args','24962crKumA','message','result','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','855RBYFcA','1631410dxocQK','rawFlags','execute','507216vbnbxk','high-risk-write','isNonInteractive','format','dryRun','presentation','reason','data','1272VPmpra','dry-run','risk','14780cFgluj','signal','command','riskLevel','present','633nmHmlH','AbortError','confirm','confirmation','aborted','5672WagxLg','22386782egTBRv','definition','14nySZZv'];a276_0x543b=function(){return _0xf70bc0;};return a276_0x543b();}(function(_0x38e375,_0x35e53c){const _0x430712=a276_0x4562,_0x3fab37=_0x38e375();while(!![]){try{const _0x50a1fe=parseInt(_0x430712(0x1b0))/0x1+-parseInt(_0x430712(0x1b5))/0x2+parseInt(_0x430712(0x1a3))/0x3*(parseInt(_0x430712(0x1a8))/0x4)+parseInt(_0x430712(0x1c3))/0x5*(-parseInt(_0x430712(0x1c0))/0x6)+-parseInt(_0x430712(0x1ab))/0x7*(parseInt(_0x430712(0x1b8))/0x8)+parseInt(_0x430712(0x1b4))/0x9*(-parseInt(_0x430712(0x1ae))/0xa)+parseInt(_0x430712(0x1a9))/0xb;if(_0x50a1fe===_0x35e53c)break;else _0x3fab37['push'](_0x3fab37['shift']());}catch(_0x32e78a){_0x3fab37['push'](_0x3fab37['shift']());}}}(a276_0x543b,0x6a82a));import{buildConfigFromFlags,initGlobalEnvironment,isRoutingRecoveryService}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';function a276_0x4562(_0x18a7cb,_0x5ddf48){_0x18a7cb=_0x18a7cb-0x19f;const _0x543b9c=a276_0x543b();let _0x4562cd=_0x543b9c[_0x18a7cb];return _0x4562cd;}import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x25c0d5,command:_0x384b4f,risk:_0xa06907,dryRun:_0x46f42f}){const _0x26cfa9=a276_0x4562;return JSON[_0x26cfa9(0x1ac)]({'ok':_0x25c0d5['ok'],'command':_0x384b4f,'risk':_0xa06907,..._0x46f42f?{'dryRun':!![]}:{},..._0x25c0d5[_0x26cfa9(0x1bf)]!==undefined?{'data':_0x25c0d5[_0x26cfa9(0x1bf)]}:{},..._0x25c0d5[_0x26cfa9(0x1b1)]?{'message':_0x25c0d5[_0x26cfa9(0x1b1)]}:{}});}};export async function invokeRabetbase(_0x3bdf22,_0x260d62){const _0x2b6728=a276_0x4562;throwIfAborted(_0x260d62['signal']);const _0x5b976d=await resolveRabetbaseInvocation(_0x3bdf22),_0x5e0e6e=canonicalRabetbaseOperation(_0x5b976d['definition']);return await confirmWriteBeforeQueue(_0x5b976d[_0x2b6728(0x1aa)],_0x5b976d[_0x2b6728(0x1b6)],_0x5e0e6e,_0x260d62),runSerialized(async()=>{const _0x39248c=_0x2b6728,_0x504bc4={};try{throwIfAborted(_0x260d62[_0x39248c(0x19f)]);const _0x51aa11=buildConfigFromFlags(_0x5b976d[_0x39248c(0x1b6)]);!isRoutingRecoveryService(_0x5b976d[_0x39248c(0x1aa)]['service'])&&await initGlobalEnvironment(_0x51aa11);const _0x215da9=createPipelineEnv(_0x51aa11,{..._0x5b976d['rawFlags'],'yes':_0x5b976d[_0x39248c(0x1aa)][_0x39248c(0x1c2)]===_0x39248c(0x1b9)?!![]:_0x5b976d[_0x39248c(0x1b6)]['yes'],'nonInteractive':!![]},_0x5b976d[_0x39248c(0x1af)]);_0x215da9[_0x39248c(0x1ba)]=!![],_0x215da9[_0x39248c(0x1a1)]=_0x39248c(0x1b9);const _0x5c2def=withAbortSignal(_0x5b976d[_0x39248c(0x1aa)],_0x260d62[_0x39248c(0x19f)]),_0x763bb8=createRabetbaseRunnerAdapter({'formatOutput'(_0x2271a5,_0x2d7e04){const _0x26eeca=_0x39248c;_0x504bc4[_0x26eeca(0x1b2)]=_0x2271a5,_0x504bc4[_0x26eeca(0x1a0)]=_0x2d7e04[_0x26eeca(0x1a0)],_0x504bc4[_0x26eeca(0x1c2)]=_0x2d7e04[_0x26eeca(0x1c2)],_0x504bc4[_0x26eeca(0x1bb)]=_0x2d7e04[_0x26eeca(0x1bb)],_0x504bc4[_0x26eeca(0x1bc)]=_0x2d7e04['dryRun']===!![];},async 'confirmHighRisk'(){const _0x1405aa=_0x39248c;throw new Error(_0x1405aa(0x1b3));}});await runCommand(_0x5c2def,_0x215da9,_0x763bb8);if(!_0x504bc4[_0x39248c(0x1b2)]||!_0x504bc4[_0x39248c(0x1a0)]||!_0x504bc4['risk']||!_0x504bc4[_0x39248c(0x1bb)])throw new Error('Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.');const _0x3df783=_0x504bc4['dryRun']===!![],_0x5236a3=_0x260d62[_0x39248c(0x1bd)]??defaultPresentation,_0xaaf8c8={'result':_0x504bc4[_0x39248c(0x1b2)],'command':_0x504bc4[_0x39248c(0x1a0)],'operation':_0x5e0e6e,'risk':_0x504bc4[_0x39248c(0x1c2)],'format':_0x504bc4['format'],'dryRun':_0x3df783},_0x54d3c1=createRabetbaseWriteMetadata(_0x5b976d[_0x39248c(0x1aa)],_0x5e0e6e,_0x504bc4[_0x39248c(0x1b2)],_0x3df783);let _0x4fede5;try{_0x4fede5=await _0x5236a3['present'](_0xaaf8c8);}catch(_0x163c4b){if(!_0x54d3c1||_0x5236a3===defaultPresentation)throw _0x163c4b;_0x4fede5=await defaultPresentation[_0x39248c(0x1a2)](_0xaaf8c8);}return{'operation':_0x5e0e6e,'risk':_0x504bc4[_0x39248c(0x1c2)],'mode':_0x3df783?_0x39248c(0x1c1):_0x39248c(0x1b7),'result':_0x504bc4[_0x39248c(0x1b2)],'output':_0x4fede5,..._0x54d3c1?{'metadata':_0x54d3c1}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x173b95,_0x5c10fd,_0x12b406,_0x441cea){const _0x5c9ce9=a276_0x4562;if(_0x5c10fd['dryRun']===!![]||_0x173b95['risk']!==_0x5c9ce9(0x1ad)&&_0x173b95[_0x5c9ce9(0x1c2)]!==_0x5c9ce9(0x1b9))return;await _0x441cea[_0x5c9ce9(0x1a6)][_0x5c9ce9(0x1a5)](buildRabetbaseConfirmationRequest(_0x173b95,_0x12b406,_0x441cea[_0x5c9ce9(0x19f)]));}function withAbortSignal(_0x503155,_0x2818d3){return{..._0x503155,async 'execute'(_0x330481){return throwIfAborted(_0x2818d3),_0x503155['execute'](_0x330481);}};}function throwIfAborted(_0x14342f){const _0x32d5ce=a276_0x4562;if(_0x14342f?.[_0x32d5ce(0x1a7)])throw _0x14342f['reason']instanceof Error?_0x14342f[_0x32d5ce(0x1be)]:new DOMException('Rabetbase\x20invocation\x20aborted.',_0x32d5ce(0x1a4));}
1
+ (function(_0x2623cb,_0xd59f44){const _0x38d10a=a277_0x3d03,_0x38a48c=_0x2623cb();while(!![]){try{const _0x334dfc=parseInt(_0x38d10a(0x157))/0x1+parseInt(_0x38d10a(0x147))/0x2*(parseInt(_0x38d10a(0x143))/0x3)+-parseInt(_0x38d10a(0x156))/0x4+-parseInt(_0x38d10a(0x13d))/0x5*(-parseInt(_0x38d10a(0x13c))/0x6)+-parseInt(_0x38d10a(0x155))/0x7*(-parseInt(_0x38d10a(0x154))/0x8)+-parseInt(_0x38d10a(0x142))/0x9*(parseInt(_0x38d10a(0x136))/0xa)+parseInt(_0x38d10a(0x135))/0xb;if(_0x334dfc===_0xd59f44)break;else _0x38a48c['push'](_0x38a48c['shift']());}catch(_0x316236){_0x38a48c['push'](_0x38a48c['shift']());}}}(a277_0x5123,0x35477));function a277_0x5123(){const _0x51c6d2=['execute','riskLevel','message','confirmation','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','write','1820264RbDRYv','7ZxdcBY','1512104YHFzit','235556qgiPdW','confirm','data','result','3974124cFtCKv','130sEGOHO','yes','signal','present','command','AbortError','7578GeXpet','175AGsYCM','dryRun','isNonInteractive','risk','aborted','247257XrloDW','3McGjnx','format','Rabetbase\x20invocation\x20aborted.','dry-run','169656NJJwVn','rawFlags','service','definition','reason','high-risk-write','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.'];a277_0x5123=function(){return _0x51c6d2;};return a277_0x5123();}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:_0x1eae4a,command:_0x3c9aa4,risk:_0x1bff52,dryRun:_0xcad7a}){const _0x5834c1=a277_0x3d03;return JSON['stringify']({'ok':_0x1eae4a['ok'],'command':_0x3c9aa4,'risk':_0x1bff52,..._0xcad7a?{'dryRun':!![]}:{},..._0x1eae4a['data']!==undefined?{'data':_0x1eae4a[_0x5834c1(0x159)]}:{},..._0x1eae4a[_0x5834c1(0x150)]?{'message':_0x1eae4a[_0x5834c1(0x150)]}:{}});}};export async function invokeRabetbase(_0x8aeb29,_0x39c1a1){const _0xa7a4c4=a277_0x3d03;throwIfAborted(_0x39c1a1[_0xa7a4c4(0x138)]);const _0x38f8ab=await resolveRabetbaseInvocation(_0x8aeb29),_0x18f500=canonicalRabetbaseOperation(_0x38f8ab[_0xa7a4c4(0x14a)]);return await confirmWriteBeforeQueue(_0x38f8ab[_0xa7a4c4(0x14a)],_0x38f8ab[_0xa7a4c4(0x148)],_0x18f500,_0x39c1a1),runSerialized(async()=>{const _0x2afe2f=_0xa7a4c4,_0x551894={};try{throwIfAborted(_0x39c1a1[_0x2afe2f(0x138)]);const _0x11dfb2=buildConfigFromFlags(_0x38f8ab[_0x2afe2f(0x148)]);!isRoutingRecoveryService(_0x38f8ab[_0x2afe2f(0x14a)][_0x2afe2f(0x149)])&&await initGlobalEnvironment(_0x11dfb2);const _0x408235=createPipelineEnv(_0x11dfb2,{..._0x38f8ab['rawFlags'],'yes':_0x38f8ab[_0x2afe2f(0x14a)][_0x2afe2f(0x140)]===_0x2afe2f(0x14c)?!![]:_0x38f8ab[_0x2afe2f(0x148)][_0x2afe2f(0x137)],'nonInteractive':!![]},_0x38f8ab['args']);_0x408235[_0x2afe2f(0x13f)]=!![],_0x408235[_0x2afe2f(0x14f)]='high-risk-write';const _0x647ba=withAbortSignal(_0x38f8ab[_0x2afe2f(0x14a)],_0x39c1a1[_0x2afe2f(0x138)]),_0x594c62=createRabetbaseRunnerAdapter({'formatOutput'(_0x270e46,_0x2ca945){const _0x4caa99=_0x2afe2f;_0x551894[_0x4caa99(0x134)]=_0x270e46,_0x551894[_0x4caa99(0x13a)]=_0x2ca945[_0x4caa99(0x13a)],_0x551894[_0x4caa99(0x140)]=_0x2ca945[_0x4caa99(0x140)],_0x551894[_0x4caa99(0x144)]=_0x2ca945[_0x4caa99(0x144)],_0x551894['dryRun']=_0x2ca945['dryRun']===!![];},async 'confirmHighRisk'(){const _0x2d7c4d=_0x2afe2f;throw new Error(_0x2d7c4d(0x14d));}});await runCommand(_0x647ba,_0x408235,_0x594c62);if(!_0x551894[_0x2afe2f(0x134)]||!_0x551894['command']||!_0x551894[_0x2afe2f(0x140)]||!_0x551894[_0x2afe2f(0x144)])throw new Error(_0x2afe2f(0x152));const _0x156ed1=_0x551894[_0x2afe2f(0x13e)]===!![],_0xf4c6f7=_0x39c1a1['presentation']??defaultPresentation,_0x30f46d={'result':_0x551894[_0x2afe2f(0x134)],'command':_0x551894[_0x2afe2f(0x13a)],'operation':_0x18f500,'risk':_0x551894[_0x2afe2f(0x140)],'format':_0x551894[_0x2afe2f(0x144)],'dryRun':_0x156ed1},_0x8c3432=createRabetbaseWriteMetadata(_0x38f8ab['definition'],_0x18f500,_0x551894[_0x2afe2f(0x134)],_0x156ed1);let _0x4ca15d;try{_0x4ca15d=await _0xf4c6f7[_0x2afe2f(0x139)](_0x30f46d);}catch(_0x539571){if(!_0x8c3432||_0xf4c6f7===defaultPresentation)throw _0x539571;_0x4ca15d=await defaultPresentation[_0x2afe2f(0x139)](_0x30f46d);}return{'operation':_0x18f500,'risk':_0x551894[_0x2afe2f(0x140)],'mode':_0x156ed1?_0x2afe2f(0x146):_0x2afe2f(0x14e),'result':_0x551894[_0x2afe2f(0x134)],'output':_0x4ca15d,..._0x8c3432?{'metadata':_0x8c3432}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x5d4b22,_0x21892f,_0x13bee9,_0x3e0d24){const _0x485793=a277_0x3d03;if(_0x21892f['dryRun']===!![]||_0x5d4b22[_0x485793(0x140)]!==_0x485793(0x153)&&_0x5d4b22[_0x485793(0x140)]!==_0x485793(0x14c))return;await _0x3e0d24[_0x485793(0x151)][_0x485793(0x158)](buildRabetbaseConfirmationRequest(_0x5d4b22,_0x13bee9,_0x3e0d24[_0x485793(0x138)]));}function a277_0x3d03(_0x3bc130,_0x2a09ff){_0x3bc130=_0x3bc130-0x134;const _0x5123ec=a277_0x5123();let _0x3d0333=_0x5123ec[_0x3bc130];return _0x3d0333;}function withAbortSignal(_0x51de0f,_0x55374a){return{..._0x51de0f,async 'execute'(_0x380838){const _0x12b9a2=a277_0x3d03;return throwIfAborted(_0x55374a),_0x51de0f[_0x12b9a2(0x14e)]({..._0x380838,'signal':_0x55374a});}};}function throwIfAborted(_0x1659f9){const _0x1aa0db=a277_0x3d03;if(_0x1659f9?.[_0x1aa0db(0x141)])throw _0x1659f9[_0x1aa0db(0x14b)]instanceof Error?_0x1659f9[_0x1aa0db(0x14b)]:new DOMException(_0x1aa0db(0x145),_0x1aa0db(0x13b));}
@@ -1 +1 @@
1
- const a277_0x49de64=a277_0xa29b;function a277_0xa29b(_0x2af303,_0xf04129){_0x2af303=_0x2af303-0xa4;const _0x46d42f=a277_0x46d4();let _0xa29b30=_0x46d42f[_0x2af303];return _0xa29b30;}(function(_0x28e935,_0x5c4a88){const _0x366b00=a277_0xa29b,_0x2df0a2=_0x28e935();while(!![]){try{const _0x3b3a9b=-parseInt(_0x366b00(0xa7))/0x1*(-parseInt(_0x366b00(0xa4))/0x2)+parseInt(_0x366b00(0xab))/0x3*(parseInt(_0x366b00(0xa5))/0x4)+-parseInt(_0x366b00(0xa9))/0x5*(parseInt(_0x366b00(0xa6))/0x6)+-parseInt(_0x366b00(0xad))/0x7*(parseInt(_0x366b00(0xac))/0x8)+-parseInt(_0x366b00(0xaa))/0x9*(-parseInt(_0x366b00(0xae))/0xa)+parseInt(_0x366b00(0xaf))/0xb+-parseInt(_0x366b00(0xa8))/0xc;if(_0x3b3a9b===_0x5c4a88)break;else _0x2df0a2['push'](_0x2df0a2['shift']());}catch(_0x51015d){_0x2df0a2['push'](_0x2df0a2['shift']());}}}(a277_0x46d4,0xaf3f3));function a277_0x46d4(){const _0x33f173=['12tfsDaq','281054yKCaZp','12828720TpDfpU','1237180uFUyep','15237VuTyEN','159uVVjch','8752GALiBE','5803AJtRjH','2230rtbyxX','3478508gCANnI','resolve','8aglmxu','103448CSTjWU'];a277_0x46d4=function(){return _0x33f173;};return a277_0x46d4();}let tail=Promise[a277_0x49de64(0xb0)]();export async function runSerialized(_0x318069){const _0x32a10e=tail;let _0x9d58f9;tail=new Promise(_0x35684e=>{_0x9d58f9=_0x35684e;}),await _0x32a10e['catch'](()=>undefined);try{return await _0x318069();}finally{_0x9d58f9();}}
1
+ function a278_0x2d59(){const _0x2fd58f=['339222LuNaTc','7660056vrPcLH','catch','2182944kAieYW','7893QpAnGr','675492PnibbV','5rREoMM','resolve','600476ErWlMW','14ydCnKp','14150SZJqTp','930558hpApTb'];a278_0x2d59=function(){return _0x2fd58f;};return a278_0x2d59();}const a278_0x463faa=a278_0x35bd;function a278_0x35bd(_0x8e35d8,_0x5b6231){_0x8e35d8=_0x8e35d8-0x175;const _0x2d59a1=a278_0x2d59();let _0x35bd09=_0x2d59a1[_0x8e35d8];return _0x35bd09;}(function(_0xd8ce2c,_0x1d6125){const _0x1b82fd=a278_0x35bd,_0x4e8add=_0xd8ce2c();while(!![]){try{const _0x3db1f4=-parseInt(_0x1b82fd(0x17f))/0x1+parseInt(_0x1b82fd(0x17b))/0x2+-parseInt(_0x1b82fd(0x17e))/0x3+parseInt(_0x1b82fd(0x178))/0x4*(-parseInt(_0x1b82fd(0x179))/0x5)+parseInt(_0x1b82fd(0x176))/0x6*(parseInt(_0x1b82fd(0x17c))/0x7)+-parseInt(_0x1b82fd(0x180))/0x8+-parseInt(_0x1b82fd(0x177))/0x9*(-parseInt(_0x1b82fd(0x17d))/0xa);if(_0x3db1f4===_0x1d6125)break;else _0x4e8add['push'](_0x4e8add['shift']());}catch(_0x31ccd9){_0x4e8add['push'](_0x4e8add['shift']());}}}(a278_0x2d59,0x785fd));let tail=Promise[a278_0x463faa(0x17a)]();export async function runSerialized(_0x41ebb8){const _0x5c9f8d=a278_0x463faa,_0x4cc390=tail;let _0x2e8a62;tail=new Promise(_0x128323=>{_0x2e8a62=_0x128323;}),await _0x4cc390[_0x5c9f8d(0x175)](()=>undefined);try{return await _0x41ebb8();}finally{_0x2e8a62();}}
@@ -1 +1 @@
1
- (function(_0xa92c49,_0x4fbc8e){const _0x3b8451=a278_0x2024,_0x1ece20=_0xa92c49();while(!![]){try{const _0x3f4686=-parseInt(_0x3b8451(0x1a0))/0x1*(-parseInt(_0x3b8451(0x1a5))/0x2)+parseInt(_0x3b8451(0x1a7))/0x3*(-parseInt(_0x3b8451(0x19e))/0x4)+parseInt(_0x3b8451(0x199))/0x5*(-parseInt(_0x3b8451(0x1a6))/0x6)+parseInt(_0x3b8451(0x1a4))/0x7+parseInt(_0x3b8451(0x1a8))/0x8+-parseInt(_0x3b8451(0x19b))/0x9*(parseInt(_0x3b8451(0x19a))/0xa)+-parseInt(_0x3b8451(0x1a2))/0xb;if(_0x3f4686===_0x4fbc8e)break;else _0x1ece20['push'](_0x1ece20['shift']());}catch(_0x5a7965){_0x1ece20['push'](_0x1ece20['shift']());}}}(a278_0x4ccd,0x1f400));import a278_0x5ebe8f from'meow';function a278_0x2024(_0x42ffe0,_0x1efedd){_0x42ffe0=_0x42ffe0-0x196;const _0x4ccd46=a278_0x4ccd();let _0x202416=_0x4ccd46[_0x42ffe0];return _0x202416;}import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';function a278_0x4ccd(){const _0x23bb1d=['flags','1543073VLGSAe','204598iwFSPc','6iGTENp','23889uWFeHs','1838088iHcSLw','defaultCommand','run','input','unknownCommand','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','wildcardDef','slice','1075315cGzHjy','3080UndHUd','1818NfToAG','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','join','8NmoDSv','validation','2PkIKza','message','2569523zGjENG'];a278_0x4ccd=function(){return _0x23bb1d;};return a278_0x4ccd();}import{CliErrors}from'../errors.js';export async function resolveRabetbaseInvocation(_0x13ca05){const _0x5d3b50=a278_0x2024,_0x35a152=a278_0x5ebe8f('',{'importMeta':import.meta,'argv':[..._0x13ca05],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0xc0af3d=[..._0x35a152[_0x5d3b50(0x1ab)]],_0x263983=_0x35a152[_0x5d3b50(0x1a3)],_0x6b1cbe=_0xc0af3d[0x0];if(!_0x6b1cbe)throw CliErrors[_0x5d3b50(0x19f)](_0x5d3b50(0x19c));const _0xc675db=resolveRemovedCommand(_0x6b1cbe,_0xc0af3d[0x1]);if(_0xc675db)throw CliErrors[_0x5d3b50(0x19f)](_0xc675db[_0x5d3b50(0x1a1)],_0xc675db['hint']);if(_0x6b1cbe===_0x5d3b50(0x1aa))throw CliErrors[_0x5d3b50(0x19f)](_0x5d3b50(0x196),_0x5d3b50(0x1ad));if(!isKnownService(_0x6b1cbe))throw CliErrors['unknownCommand'](_0xc0af3d[_0x5d3b50(0x19d)]('\x20'));const _0x2e5142=getServiceEntry(_0x6b1cbe),_0x16b95e=_0xc0af3d[0x1],_0x4b00ec=_0x16b95e||_0x2e5142[_0x5d3b50(0x1a9)];if(!_0x4b00ec){if(_0x2e5142[_0x5d3b50(0x197)])return{'definition':_0x2e5142[_0x5d3b50(0x197)],'rawFlags':_0x263983,'args':[]};throw CliErrors[_0x5d3b50(0x19f)]('Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x6b1cbe+'\x22.');}const _0x18d449=findDefinition(_0x6b1cbe,_0x4b00ec);if(_0x18d449)return{'definition':_0x18d449,'rawFlags':_0x263983,'args':_0xc0af3d['slice'](0x2)};if(_0x2e5142[_0x5d3b50(0x197)])return{'definition':_0x2e5142[_0x5d3b50(0x197)],'rawFlags':_0x263983,'args':[_0x4b00ec,..._0xc0af3d[_0x5d3b50(0x198)](0x2)]};throw CliErrors[_0x5d3b50(0x1ac)](_0x6b1cbe+'\x20'+_0x4b00ec);}
1
+ (function(_0x1fbe11,_0x5f09ce){const _0x2fa9f7=a279_0x3c87,_0xd8cf5e=_0x1fbe11();while(!![]){try{const _0x43245e=parseInt(_0x2fa9f7(0xc0))/0x1*(parseInt(_0x2fa9f7(0xc2))/0x2)+parseInt(_0x2fa9f7(0xad))/0x3*(parseInt(_0x2fa9f7(0xb6))/0x4)+parseInt(_0x2fa9f7(0xb8))/0x5*(-parseInt(_0x2fa9f7(0xb5))/0x6)+-parseInt(_0x2fa9f7(0xaf))/0x7*(parseInt(_0x2fa9f7(0xac))/0x8)+parseInt(_0x2fa9f7(0xb3))/0x9*(-parseInt(_0x2fa9f7(0xbe))/0xa)+parseInt(_0x2fa9f7(0xb1))/0xb*(parseInt(_0x2fa9f7(0xbb))/0xc)+parseInt(_0x2fa9f7(0xb0))/0xd;if(_0x43245e===_0x5f09ce)break;else _0xd8cf5e['push'](_0xd8cf5e['shift']());}catch(_0x21d287){_0xd8cf5e['push'](_0xd8cf5e['shift']());}}}(a279_0x4a7b,0x2f0dc));import a279_0x3c5559 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a279_0x4a7b(){const _0x3b7da4=['443673ZrkLtB','wildcardDef','213216mVfpma','4urcVyM','flags','10CuxVvk','join','slice','93612WBIIKt','defaultCommand','input','30fILvau','hint','1Ogbhni','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','73022bXPIUR','validation','unknownCommand','1756344TrfGKH','595479QFDulY','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','7WHxzAa','2007239DryyTl','341MBZfHr','message'];a279_0x4a7b=function(){return _0x3b7da4;};return a279_0x4a7b();}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a279_0x3c87(_0x1ecc56,_0x448371){_0x1ecc56=_0x1ecc56-0xac;const _0x4a7beb=a279_0x4a7b();let _0x3c8792=_0x4a7beb[_0x1ecc56];return _0x3c8792;}export async function resolveRabetbaseInvocation(_0x28cdab){const _0x57e1ba=a279_0x3c87,_0x2582b3=a279_0x3c5559('',{'importMeta':import.meta,'argv':[..._0x28cdab],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x1b6ec7=[..._0x2582b3[_0x57e1ba(0xbd)]],_0x9f25c2=_0x2582b3[_0x57e1ba(0xb7)],_0x1232ef=_0x1b6ec7[0x0];if(!_0x1232ef)throw CliErrors[_0x57e1ba(0xc3)](_0x57e1ba(0xc1));const _0x5ca981=resolveRemovedCommand(_0x1232ef,_0x1b6ec7[0x1]);if(_0x5ca981)throw CliErrors[_0x57e1ba(0xc3)](_0x5ca981[_0x57e1ba(0xb2)],_0x5ca981[_0x57e1ba(0xbf)]);if(_0x1232ef==='run')throw CliErrors[_0x57e1ba(0xc3)](_0x57e1ba(0xae),'Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.');if(!isKnownService(_0x1232ef))throw CliErrors[_0x57e1ba(0xc4)](_0x1b6ec7[_0x57e1ba(0xb9)]('\x20'));const _0x32efe2=getServiceEntry(_0x1232ef),_0x7a6d3=_0x1b6ec7[0x1],_0x345064=_0x7a6d3||_0x32efe2[_0x57e1ba(0xbc)];if(!_0x345064){if(_0x32efe2['wildcardDef'])return{'definition':_0x32efe2[_0x57e1ba(0xb4)],'rawFlags':_0x9f25c2,'args':[]};throw CliErrors[_0x57e1ba(0xc3)]('Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x1232ef+'\x22.');}const _0x465607=findDefinition(_0x1232ef,_0x345064);if(_0x465607)return{'definition':_0x465607,'rawFlags':_0x9f25c2,'args':_0x1b6ec7[_0x57e1ba(0xba)](0x2)};if(_0x32efe2['wildcardDef'])return{'definition':_0x32efe2[_0x57e1ba(0xb4)],'rawFlags':_0x9f25c2,'args':[_0x345064,..._0x1b6ec7[_0x57e1ba(0xba)](0x2)]};throw CliErrors['unknownCommand'](_0x1232ef+'\x20'+_0x345064);}
@@ -1 +1 @@
1
- (function(_0x5c8841,_0x5c96f3){const _0x341026=a280_0xc703,_0x5656ea=_0x5c8841();while(!![]){try{const _0x1d8d01=parseInt(_0x341026(0xe0))/0x1+-parseInt(_0x341026(0xff))/0x2*(-parseInt(_0x341026(0xf8))/0x3)+-parseInt(_0x341026(0xd4))/0x4*(parseInt(_0x341026(0xd6))/0x5)+-parseInt(_0x341026(0xcd))/0x6*(parseInt(_0x341026(0xec))/0x7)+-parseInt(_0x341026(0x105))/0x8*(-parseInt(_0x341026(0xfe))/0x9)+-parseInt(_0x341026(0xc8))/0xa+parseInt(_0x341026(0xdb))/0xb*(parseInt(_0x341026(0xf5))/0xc);if(_0x1d8d01===_0x5c96f3)break;else _0x5656ea['push'](_0x5656ea['shift']());}catch(_0x17ae15){_0x5656ea['push'](_0x5656ea['shift']());}}}(a280_0x17a7,0xe4d79));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND='rabetbase\x20cli-skill\x20install',SKILL_NAME='rabetbase';function frontmatterValue(_0x15fa0d,_0x217f45){const _0x1b2505=a280_0xc703;return _0x15fa0d[_0x1b2505(0xd5)](new RegExp('^'+_0x217f45+':\x5cs*(.+)$','m'))?.[0x1]?.[_0x1b2505(0xf6)]()??'';}function listFiles(_0x5197bf,_0x3cd95b=_0x5197bf){const _0x7cc968=a280_0xc703;return readdirSync(_0x3cd95b,{'withFileTypes':!![]})[_0x7cc968(0xf0)](_0xf415eb=>{const _0x157b82=_0x7cc968,_0x453088=join(_0x3cd95b,_0xf415eb[_0x157b82(0xda)]),_0x225bb6=lstatSync(_0x453088);if(_0x225bb6[_0x157b82(0xd9)]())throw new Error(_0x157b82(0xd1)+_0x453088);if(_0x225bb6[_0x157b82(0xdc)]())return listFiles(_0x5197bf,_0x453088);if(!_0x225bb6['isFile']())throw new Error(_0x157b82(0xef)+_0x453088);return[relative(_0x5197bf,_0x453088)['split'](sep)[_0x157b82(0xd3)]('/')];})[_0x7cc968(0xf7)]((_0x33204f,_0x584731)=>_0x33204f<_0x584731?-0x1:_0x33204f>_0x584731?0x1:0x0);}function digestFiles(_0x36b836,_0x596b32){const _0x3a657a=a280_0xc703,_0x24cf3b=createHash(_0x3a657a(0xf2));for(const _0x3b7128 of _0x596b32){if(_0x3b7128[_0x3a657a(0xc6)]('/')||_0x3b7128['split']('/')[_0x3a657a(0xfa)]('..')||_0x3b7128['includes']('\x5c'))throw new Error(_0x3a657a(0x100)+_0x3b7128);_0x24cf3b[_0x3a657a(0xdd)](_0x3b7128),_0x24cf3b['update']('\x00'),_0x24cf3b[_0x3a657a(0xdd)](readFileSync(join(_0x36b836,..._0x3b7128[_0x3a657a(0xd0)]('/')))),_0x24cf3b[_0x3a657a(0xdd)]('\x00');}return _0x24cf3b['digest'](_0x3a657a(0xc9));}function sameFiles(_0x4ae74e,_0x3ed879){const _0x4241d7=a280_0xc703;return _0x4ae74e[_0x4241d7(0x106)]===_0x3ed879[_0x4241d7(0x106)]&&_0x4ae74e[_0x4241d7(0xd2)]((_0x5ea9c4,_0x433306)=>_0x5ea9c4===_0x3ed879[_0x433306]);}function readSource(_0x31ec26){const _0x22d89f=a280_0xc703,_0x98808d=JSON[_0x22d89f(0xed)](readFileSync(join(_0x31ec26,_0x22d89f(0xe6)),_0x22d89f(0xca))),_0xea83eb=JSON[_0x22d89f(0xed)](readFileSync(join(_0x31ec26,_0x22d89f(0xcc),_0x22d89f(0xe8)),_0x22d89f(0xca))),_0x344bc2=join(_0x31ec26,'skills',SKILL_NAME),_0x577dfe=frontmatterValue(readFileSync(join(_0x344bc2,_0x22d89f(0xeb)),_0x22d89f(0xca)),_0x22d89f(0x102)),_0x3bb273=listFiles(_0x344bc2);if(_0xea83eb[_0x22d89f(0xe2)]!==0x1||_0xea83eb[_0x22d89f(0xda)]!==SKILL_NAME||!_0x98808d[_0x22d89f(0x102)]||_0xea83eb[_0x22d89f(0xe4)]!==_0x98808d[_0x22d89f(0x102)]||_0xea83eb[_0x22d89f(0xf4)]!==_0x98808d[_0x22d89f(0x102)]||_0x577dfe!==_0x98808d[_0x22d89f(0x102)]||!sameFiles(_0x3bb273,_0xea83eb[_0x22d89f(0xe9)])||digestFiles(_0x344bc2,_0x3bb273)!==_0xea83eb['digest'])throw new Error(_0x22d89f(0xd8));return{'packageVersion':_0x98808d['version'],'skillVersion':_0x577dfe,'root':_0x344bc2,'manifest':_0xea83eb};}function installedSkillPath(_0x28242a){const _0x4c564c=a280_0xc703,_0x5968cf=resolveInstalledSkill(SKILL_NAME,{'home':_0x28242a});if(_0x5968cf[_0x4c564c(0x101)]===_0x4c564c(0xde))return{'state':_0x4c564c(0xde),'path':dirname(_0x5968cf['path'])};if(_0x5968cf['state']===_0x4c564c(0xe3))return{'state':_0x4c564c(0xe5)};return{'state':_0x4c564c(0xce),'reason':_0x5968cf[_0x4c564c(0xe1)]};}export function inspectInstalledBuiltinSkillVersion(_0x3c612b,_0x2d5fe9={}){const _0x885137=a280_0xc703,_0xef9da0=installedSkillPath(_0x2d5fe9[_0x885137(0xe7)]??homedir());if(_0xef9da0[_0x885137(0x101)]===_0x885137(0xe5))return{'state':_0x885137(0xe5),'expectedVersion':_0x3c612b,'repairCommand':REPAIR_COMMAND};if(_0xef9da0['state']==='unverifiable')return{'state':_0x885137(0xce),'expectedVersion':_0x3c612b,'reason':_0xef9da0[_0x885137(0xe1)],'repairCommand':REPAIR_COMMAND};try{const _0x4ca36b=frontmatterValue(readFileSync(join(_0xef9da0[_0x885137(0xf1)],_0x885137(0xeb)),_0x885137(0xca)),_0x885137(0x102));return{'state':_0x4ca36b===_0x3c612b?_0x885137(0xf3):_0x885137(0x103),'expectedVersion':_0x3c612b,'skillVersion':_0x4ca36b,'installedPath':_0xef9da0[_0x885137(0xf1)],'repairCommand':REPAIR_COMMAND};}catch(_0x2a8e32){return{'state':_0x885137(0xce),'expectedVersion':_0x3c612b,'installedPath':_0xef9da0['path'],'reason':_0x2a8e32 instanceof Error?_0x2a8e32['message']:String(_0x2a8e32),'repairCommand':REPAIR_COMMAND};}}function a280_0x17a7(){const _0x12f645=['match','5pyHLWs','status','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','isSymbolicLink','name','3560227eSlKmT','isDirectory','update','present','Installed\x20Skill\x20state\x20is\x20','1280801JlBEin','reason','schemaVersion','absent','packageVersion','missing','package.json','home','rabetbase.manifest.json','files','VERIFY_FAILED','SKILL.md','773493egkRDj','parse','unknown','Unsupported\x20Skill\x20entry:\x20','flatMap','path','sha256','current','skillVersion','36IFNbwT','trim','sort','3HSSmuw','error','includes','skipped','root','packageRoot','363123JKuDEW','2057480hWHJwU','Unsafe\x20manifest\x20path:\x20','state','version','version_mismatch','installedPath','24EIPLWu','length','startsWith','message','12394340GoGthU','hex','utf8','stdio','skills','54yXIVUu','unverifiable','manifest','split','Symbolic\x20link\x20is\x20not\x20allowed:\x20','every','join','921164RqqTLM'];a280_0x17a7=function(){return _0x12f645;};return a280_0x17a7();}export function inspectBuiltinSkill(_0x5551b3={}){const _0x4380fe=a280_0xc703,_0x179fa1=_0x5551b3[_0x4380fe(0xfd)]??DEFAULT_PACKAGE_ROOT;let _0x5d6c6e;try{_0x5d6c6e=readSource(_0x179fa1);}catch(_0x59e6ec){return{'state':_0x4380fe(0xce),'packageVersion':_0x4380fe(0xee),'reason':_0x59e6ec instanceof Error?_0x59e6ec[_0x4380fe(0xc7)]:String(_0x59e6ec),'repairCommand':REPAIR_COMMAND};}const _0x8b0777=installedSkillPath(_0x5551b3[_0x4380fe(0xe7)]??homedir());if(_0x8b0777['state']===_0x4380fe(0xe5))return{'state':_0x4380fe(0xe5),'packageVersion':_0x5d6c6e[_0x4380fe(0xe4)],'repairCommand':REPAIR_COMMAND};if(_0x8b0777[_0x4380fe(0x101)]===_0x4380fe(0xce))return{'state':_0x4380fe(0xce),'packageVersion':_0x5d6c6e['packageVersion'],'reason':_0x8b0777['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x1b9f60=frontmatterValue(readFileSync(join(_0x8b0777[_0x4380fe(0xf1)],_0x4380fe(0xeb)),_0x4380fe(0xca)),_0x4380fe(0x102));if(_0x1b9f60!==_0x5d6c6e['skillVersion'])return{'state':'version_mismatch','packageVersion':_0x5d6c6e[_0x4380fe(0xe4)],'skillVersion':_0x1b9f60,'installedPath':_0x8b0777[_0x4380fe(0xf1)],'repairCommand':REPAIR_COMMAND};const _0x55e66b=listFiles(_0x8b0777[_0x4380fe(0xf1)]),_0x3c40a7=digestFiles(_0x8b0777['path'],_0x55e66b);return{'state':sameFiles(_0x55e66b,_0x5d6c6e[_0x4380fe(0xcf)]['files'])&&_0x3c40a7===_0x5d6c6e[_0x4380fe(0xcf)]['digest']?'current':'content_mismatch','packageVersion':_0x5d6c6e[_0x4380fe(0xe4)],'skillVersion':_0x1b9f60,'installedPath':_0x8b0777[_0x4380fe(0xf1)],'digest':_0x3c40a7,'repairCommand':REPAIR_COMMAND};}catch(_0x1cf4e9){return{'state':_0x4380fe(0xce),'packageVersion':_0x5d6c6e[_0x4380fe(0xe4)],'installedPath':_0x8b0777[_0x4380fe(0xf1)],'reason':_0x1cf4e9 instanceof Error?_0x1cf4e9[_0x4380fe(0xc7)]:String(_0x1cf4e9),'repairCommand':REPAIR_COMMAND};}}function a280_0xc703(_0x495ec7,_0x47c14a){_0x495ec7=_0x495ec7-0xc6;const _0x17a7e7=a280_0x17a7();let _0xc70334=_0x17a7e7[_0x495ec7];return _0xc70334;}function failure(_0x267e4a,_0x38d8a3,_0x361b7a,_0x3a2df0){const _0x13bc73=a280_0xc703;return{'ok':![],'code':_0x267e4a,'packageVersion':_0x38d8a3['packageVersion'],'skillVersion':_0x38d8a3['skillVersion'],'installedPath':_0x3a2df0,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x361b7a instanceof Error?_0x361b7a[_0x13bc73(0xc7)]:String(_0x361b7a)};}export function installBuiltinSkill(_0x1f3f12={}){const _0xf4d240=a280_0xc703,_0x432c8e=_0x1f3f12[_0xf4d240(0xfd)]??DEFAULT_PACKAGE_ROOT,_0xc8e27b=_0x1f3f12[_0xf4d240(0xe7)]??homedir();let _0x12bcd1;try{_0x12bcd1=readSource(_0x432c8e);}catch(_0x5473c3){return failure('SOURCE_INVALID',{'packageVersion':'unknown','skillVersion':_0xf4d240(0xee)},_0x5473c3);}const _0x4e8b35=inspectBuiltinSkill({'packageRoot':_0x432c8e,'home':_0xc8e27b}),_0x169052=runNpxSkillsAddGlobal(_0x432c8e,_0x12bcd1[_0xf4d240(0xfc)],{'stdio':_0x1f3f12[_0xf4d240(0xcb)]??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0xc8e27b}});if(_0x169052[_0xf4d240(0xfb)])return{'ok':!![],'packageVersion':_0x12bcd1[_0xf4d240(0xe4)],'skillVersion':_0x12bcd1[_0xf4d240(0xf4)],'installedPath':_0x4e8b35[_0xf4d240(0x104)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x169052['ok'])return failure('INSTALL_FAILED',_0x12bcd1,_0x169052[_0xf4d240(0xf9)]??'skills@latest\x20exited\x20'+_0x169052[_0xf4d240(0xd7)]);const _0x4600ad=inspectBuiltinSkill({'packageRoot':_0x432c8e,'home':_0xc8e27b});if(_0x4600ad[_0xf4d240(0x101)]!=='current')return failure(_0xf4d240(0xea),_0x12bcd1,_0x4600ad[_0xf4d240(0xe1)]??_0xf4d240(0xdf)+_0x4600ad[_0xf4d240(0x101)],_0x4600ad[_0xf4d240(0x104)]);return{'ok':!![],'packageVersion':_0x12bcd1[_0xf4d240(0xe4)],'skillVersion':_0x12bcd1[_0xf4d240(0xf4)],'installedPath':_0x4600ad[_0xf4d240(0x104)],'changed':_0x4e8b35[_0xf4d240(0x101)]!=='current','repairCommand':REPAIR_COMMAND};}
1
+ const a281_0x626aeb=a281_0x3dc8;(function(_0xf90695,_0x4b8806){const _0x3c8e02=a281_0x3dc8,_0x1ebe6c=_0xf90695();while(!![]){try{const _0x4330c5=parseInt(_0x3c8e02(0x1b1))/0x1+parseInt(_0x3c8e02(0x1d3))/0x2*(-parseInt(_0x3c8e02(0x1b4))/0x3)+parseInt(_0x3c8e02(0x1d8))/0x4*(-parseInt(_0x3c8e02(0x1a1))/0x5)+parseInt(_0x3c8e02(0x1d2))/0x6+-parseInt(_0x3c8e02(0x1cf))/0x7*(parseInt(_0x3c8e02(0x1a2))/0x8)+parseInt(_0x3c8e02(0x1cd))/0x9*(-parseInt(_0x3c8e02(0x1c3))/0xa)+parseInt(_0x3c8e02(0x1be))/0xb*(parseInt(_0x3c8e02(0x1b8))/0xc);if(_0x4330c5===_0x4b8806)break;else _0x1ebe6c['push'](_0x1ebe6c['shift']());}catch(_0x360f90){_0x1ebe6c['push'](_0x1ebe6c['shift']());}}}(a281_0x3568,0x331f0));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a281_0x626aeb(0x1c1),SKILL_NAME=a281_0x626aeb(0x1c5);function frontmatterValue(_0x4ed9ac,_0x39ad23){const _0x457e23=a281_0x626aeb;return _0x4ed9ac[_0x457e23(0x1db)](new RegExp('^'+_0x39ad23+_0x457e23(0x1b0),'m'))?.[0x1]?.[_0x457e23(0x1a7)]()??'';}function listFiles(_0x47ff05,_0x1431e2=_0x47ff05){const _0x298853=a281_0x626aeb;return readdirSync(_0x1431e2,{'withFileTypes':!![]})['flatMap'](_0x262470=>{const _0x31c1b7=a281_0x3dc8,_0x2be21f=join(_0x1431e2,_0x262470['name']),_0xe4c51=lstatSync(_0x2be21f);if(_0xe4c51[_0x31c1b7(0x1a3)]())throw new Error('Symbolic\x20link\x20is\x20not\x20allowed:\x20'+_0x2be21f);if(_0xe4c51[_0x31c1b7(0x1bd)]())return listFiles(_0x47ff05,_0x2be21f);if(!_0xe4c51[_0x31c1b7(0x1bf)]())throw new Error(_0x31c1b7(0x19f)+_0x2be21f);return[relative(_0x47ff05,_0x2be21f)[_0x31c1b7(0x1a9)](sep)[_0x31c1b7(0x1da)]('/')];})[_0x298853(0x1d6)]((_0x42a0a6,_0x4a5692)=>_0x42a0a6<_0x4a5692?-0x1:_0x42a0a6>_0x4a5692?0x1:0x0);}function digestFiles(_0xddecec,_0x3c7324){const _0x2e5d7a=a281_0x626aeb,_0x13bf0c=createHash(_0x2e5d7a(0x1c6));for(const _0x2c824d of _0x3c7324){if(_0x2c824d[_0x2e5d7a(0x1ab)]('/')||_0x2c824d[_0x2e5d7a(0x1a9)]('/')[_0x2e5d7a(0x1c8)]('..')||_0x2c824d[_0x2e5d7a(0x1c8)]('\x5c'))throw new Error('Unsafe\x20manifest\x20path:\x20'+_0x2c824d);_0x13bf0c[_0x2e5d7a(0x1ce)](_0x2c824d),_0x13bf0c[_0x2e5d7a(0x1ce)]('\x00'),_0x13bf0c[_0x2e5d7a(0x1ce)](readFileSync(join(_0xddecec,..._0x2c824d[_0x2e5d7a(0x1a9)]('/')))),_0x13bf0c[_0x2e5d7a(0x1ce)]('\x00');}return _0x13bf0c[_0x2e5d7a(0x1d9)](_0x2e5d7a(0x1ca));}function sameFiles(_0x308797,_0x5e9e31){const _0x4352de=a281_0x626aeb;return _0x308797[_0x4352de(0x1b2)]===_0x5e9e31[_0x4352de(0x1b2)]&&_0x308797[_0x4352de(0x1a0)]((_0x3b3594,_0x22c0a8)=>_0x3b3594===_0x5e9e31[_0x22c0a8]);}function readSource(_0x272ed5){const _0x44c7f4=a281_0x626aeb,_0x12e8b2=JSON['parse'](readFileSync(join(_0x272ed5,_0x44c7f4(0x1d1)),_0x44c7f4(0x1ad))),_0x74a42e=JSON['parse'](readFileSync(join(_0x272ed5,_0x44c7f4(0x1c0),'rabetbase.manifest.json'),_0x44c7f4(0x1ad))),_0x1d091f=join(_0x272ed5,_0x44c7f4(0x1c0),SKILL_NAME),_0x568d22=frontmatterValue(readFileSync(join(_0x1d091f,_0x44c7f4(0x1d7)),_0x44c7f4(0x1ad)),_0x44c7f4(0x1a5)),_0x2f7b4a=listFiles(_0x1d091f);if(_0x74a42e['schemaVersion']!==0x1||_0x74a42e[_0x44c7f4(0x1ae)]!==SKILL_NAME||!_0x12e8b2['version']||_0x74a42e['packageVersion']!==_0x12e8b2[_0x44c7f4(0x1a5)]||_0x74a42e['skillVersion']!==_0x12e8b2[_0x44c7f4(0x1a5)]||_0x568d22!==_0x12e8b2[_0x44c7f4(0x1a5)]||!sameFiles(_0x2f7b4a,_0x74a42e[_0x44c7f4(0x1c2)])||digestFiles(_0x1d091f,_0x2f7b4a)!==_0x74a42e[_0x44c7f4(0x1d9)])throw new Error(_0x44c7f4(0x1b5));return{'packageVersion':_0x12e8b2['version'],'skillVersion':_0x568d22,'root':_0x1d091f,'manifest':_0x74a42e};}function a281_0x3568(){const _0x346764=['3570ezjrXs','1347816cZhqpN','isSymbolicLink','path','version','INSTALL_FAILED','trim','installedPath','split','unknown','startsWith','skillVersion','utf8','name','manifest',':\x5cs*(.+)$','10236yBsoFX','length','Installed\x20Skill\x20state\x20is\x20','4833FCMxnT','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','status','packageVersion','84BlgeNR','state','root','message','home','isDirectory','2231768bLOkIJ','isFile','skills','rabetbase\x20cli-skill\x20install','files','10fTpRhj','absent','rabetbase','sha256','reason','includes','version_mismatch','hex','unverifiable','current','3060648DhoKUf','update','14OqyyEP','present','package.json','302424gWHyef','332lkmdIH','pipe','missing','sort','SKILL.md','1832IRaeOS','digest','join','match','Unsupported\x20Skill\x20entry:\x20','every'];a281_0x3568=function(){return _0x346764;};return a281_0x3568();}function installedSkillPath(_0x3ad58e){const _0x1c256f=a281_0x626aeb,_0x20cf60=resolveInstalledSkill(SKILL_NAME,{'home':_0x3ad58e});if(_0x20cf60[_0x1c256f(0x1b9)]===_0x1c256f(0x1d0))return{'state':_0x1c256f(0x1d0),'path':dirname(_0x20cf60[_0x1c256f(0x1a4)])};if(_0x20cf60[_0x1c256f(0x1b9)]===_0x1c256f(0x1c4))return{'state':_0x1c256f(0x1d5)};return{'state':_0x1c256f(0x1cb),'reason':_0x20cf60[_0x1c256f(0x1c7)]};}export function inspectInstalledBuiltinSkillVersion(_0x1b3750,_0x5bf0f8={}){const _0x3f7d1c=a281_0x626aeb,_0x2378b4=installedSkillPath(_0x5bf0f8[_0x3f7d1c(0x1bc)]??homedir());if(_0x2378b4[_0x3f7d1c(0x1b9)]==='missing')return{'state':_0x3f7d1c(0x1d5),'expectedVersion':_0x1b3750,'repairCommand':REPAIR_COMMAND};if(_0x2378b4[_0x3f7d1c(0x1b9)]==='unverifiable')return{'state':_0x3f7d1c(0x1cb),'expectedVersion':_0x1b3750,'reason':_0x2378b4[_0x3f7d1c(0x1c7)],'repairCommand':REPAIR_COMMAND};try{const _0x33dd46=frontmatterValue(readFileSync(join(_0x2378b4[_0x3f7d1c(0x1a4)],_0x3f7d1c(0x1d7)),_0x3f7d1c(0x1ad)),_0x3f7d1c(0x1a5));return{'state':_0x33dd46===_0x1b3750?_0x3f7d1c(0x1cc):_0x3f7d1c(0x1c9),'expectedVersion':_0x1b3750,'skillVersion':_0x33dd46,'installedPath':_0x2378b4[_0x3f7d1c(0x1a4)],'repairCommand':REPAIR_COMMAND};}catch(_0x56e5ba){return{'state':_0x3f7d1c(0x1cb),'expectedVersion':_0x1b3750,'installedPath':_0x2378b4[_0x3f7d1c(0x1a4)],'reason':_0x56e5ba instanceof Error?_0x56e5ba[_0x3f7d1c(0x1bb)]:String(_0x56e5ba),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x5b4305={}){const _0x18f628=a281_0x626aeb,_0x2f136b=_0x5b4305['packageRoot']??DEFAULT_PACKAGE_ROOT;let _0x59012d;try{_0x59012d=readSource(_0x2f136b);}catch(_0x4ba396){return{'state':'unverifiable','packageVersion':_0x18f628(0x1aa),'reason':_0x4ba396 instanceof Error?_0x4ba396[_0x18f628(0x1bb)]:String(_0x4ba396),'repairCommand':REPAIR_COMMAND};}const _0xba3dd5=installedSkillPath(_0x5b4305[_0x18f628(0x1bc)]??homedir());if(_0xba3dd5['state']===_0x18f628(0x1d5))return{'state':'missing','packageVersion':_0x59012d[_0x18f628(0x1b7)],'repairCommand':REPAIR_COMMAND};if(_0xba3dd5[_0x18f628(0x1b9)]==='unverifiable')return{'state':_0x18f628(0x1cb),'packageVersion':_0x59012d[_0x18f628(0x1b7)],'reason':_0xba3dd5[_0x18f628(0x1c7)],'repairCommand':REPAIR_COMMAND};try{const _0x268546=frontmatterValue(readFileSync(join(_0xba3dd5[_0x18f628(0x1a4)],_0x18f628(0x1d7)),_0x18f628(0x1ad)),_0x18f628(0x1a5));if(_0x268546!==_0x59012d['skillVersion'])return{'state':_0x18f628(0x1c9),'packageVersion':_0x59012d[_0x18f628(0x1b7)],'skillVersion':_0x268546,'installedPath':_0xba3dd5[_0x18f628(0x1a4)],'repairCommand':REPAIR_COMMAND};const _0x3f6e00=listFiles(_0xba3dd5[_0x18f628(0x1a4)]),_0x47578e=digestFiles(_0xba3dd5['path'],_0x3f6e00);return{'state':sameFiles(_0x3f6e00,_0x59012d[_0x18f628(0x1af)]['files'])&&_0x47578e===_0x59012d['manifest'][_0x18f628(0x1d9)]?'current':'content_mismatch','packageVersion':_0x59012d[_0x18f628(0x1b7)],'skillVersion':_0x268546,'installedPath':_0xba3dd5[_0x18f628(0x1a4)],'digest':_0x47578e,'repairCommand':REPAIR_COMMAND};}catch(_0x1528f7){return{'state':_0x18f628(0x1cb),'packageVersion':_0x59012d[_0x18f628(0x1b7)],'installedPath':_0xba3dd5[_0x18f628(0x1a4)],'reason':_0x1528f7 instanceof Error?_0x1528f7[_0x18f628(0x1bb)]:String(_0x1528f7),'repairCommand':REPAIR_COMMAND};}}function a281_0x3dc8(_0x440899,_0x12f0f6){_0x440899=_0x440899-0x19f;const _0x3568b2=a281_0x3568();let _0x3dc899=_0x3568b2[_0x440899];return _0x3dc899;}function failure(_0x4a9ce2,_0x464abf,_0x292278,_0x4193c0){const _0x134b13=a281_0x626aeb;return{'ok':![],'code':_0x4a9ce2,'packageVersion':_0x464abf['packageVersion'],'skillVersion':_0x464abf[_0x134b13(0x1ac)],'installedPath':_0x4193c0,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x292278 instanceof Error?_0x292278[_0x134b13(0x1bb)]:String(_0x292278)};}export function installBuiltinSkill(_0x691a2b={}){const _0x3bc0e4=a281_0x626aeb,_0x190ae6=_0x691a2b['packageRoot']??DEFAULT_PACKAGE_ROOT,_0x58ead5=_0x691a2b[_0x3bc0e4(0x1bc)]??homedir();let _0x252eb3;try{_0x252eb3=readSource(_0x190ae6);}catch(_0x3d8dbc){return failure('SOURCE_INVALID',{'packageVersion':_0x3bc0e4(0x1aa),'skillVersion':_0x3bc0e4(0x1aa)},_0x3d8dbc);}const _0x215a46=inspectBuiltinSkill({'packageRoot':_0x190ae6,'home':_0x58ead5}),_0x24f938=runNpxSkillsAddGlobal(_0x190ae6,_0x252eb3[_0x3bc0e4(0x1ba)],{'stdio':_0x691a2b['stdio']??_0x3bc0e4(0x1d4),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x58ead5}});if(_0x24f938['skipped'])return{'ok':!![],'packageVersion':_0x252eb3[_0x3bc0e4(0x1b7)],'skillVersion':_0x252eb3[_0x3bc0e4(0x1ac)],'installedPath':_0x215a46[_0x3bc0e4(0x1a8)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x24f938['ok'])return failure(_0x3bc0e4(0x1a6),_0x252eb3,_0x24f938['error']??'skills@latest\x20exited\x20'+_0x24f938[_0x3bc0e4(0x1b6)]);const _0x4e495f=inspectBuiltinSkill({'packageRoot':_0x190ae6,'home':_0x58ead5});if(_0x4e495f[_0x3bc0e4(0x1b9)]!==_0x3bc0e4(0x1cc))return failure('VERIFY_FAILED',_0x252eb3,_0x4e495f['reason']??_0x3bc0e4(0x1b3)+_0x4e495f[_0x3bc0e4(0x1b9)],_0x4e495f[_0x3bc0e4(0x1a8)]);return{'ok':!![],'packageVersion':_0x252eb3[_0x3bc0e4(0x1b7)],'skillVersion':_0x252eb3['skillVersion'],'installedPath':_0x4e495f[_0x3bc0e4(0x1a8)],'changed':_0x215a46['state']!=='current','repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
1
- function a281_0x22d8(_0x269ef2,_0x5c866b){_0x269ef2=_0x269ef2-0x1ab;const _0x54e4f9=a281_0x54e4();let _0x22d8e3=_0x54e4f9[_0x269ef2];return _0x22d8e3;}(function(_0x5c9dda,_0xde5e25){const _0x3ca43a=a281_0x22d8,_0x294c72=_0x5c9dda();while(!![]){try{const _0x5e0578=-parseInt(_0x3ca43a(0x1cd))/0x1+-parseInt(_0x3ca43a(0x1ca))/0x2+-parseInt(_0x3ca43a(0x1b6))/0x3+-parseInt(_0x3ca43a(0x1c4))/0x4+parseInt(_0x3ca43a(0x1b8))/0x5+-parseInt(_0x3ca43a(0x1b3))/0x6*(-parseInt(_0x3ca43a(0x1ba))/0x7)+parseInt(_0x3ca43a(0x1c1))/0x8;if(_0x5e0578===_0xde5e25)break;else _0x294c72['push'](_0x294c72['shift']());}catch(_0x1da9eb){_0x294c72['push'](_0x294c72['shift']());}}}(a281_0x54e4,0x97c40));function a281_0x54e4(){const _0x38ae64=['\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','from','toLowerCase','replace','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','19172496vEGwQe','skill','error','3980656ZzOass','dangerously-bff-save','Error:\x20Unsupported\x20command:\x20','add','--help','(empty)','422408OQNYyb','push','slice','665326TbOGzF','startsWith','has','length','exit','Unsupported\x20command:\x20','-$1','Public\x20Open\x20Skill\x20source:\x20','help','1311918zbQTqO','setLogPath','cwd','2612259XuuBLk','log','1557790iwhFUF','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','21dsgmdC','argv'];a281_0x54e4=function(){return _0x38ae64;};return a281_0x54e4();}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(_0x4c75b6){const _0x22261e=a281_0x22d8,_0x122a50=[];for(const [_0x4eb357,_0x23fb02]of Object['entries'](_0x4c75b6)){if(_0x23fb02===!![]){const _0x22703e=_0x4eb357[_0x22261e(0x1bf)](/([A-Z])/g,_0x22261e(0x1b0))[_0x22261e(0x1be)]();_0x122a50['push'](_0x22703e);}}return _0x122a50;}export function parseDynamicFlags(){const _0x1744ff=a281_0x22d8,_0x3a486b=[];for(let _0x38b5a1=0x3;_0x38b5a1<process[_0x1744ff(0x1bb)][_0x1744ff(0x1ad)];_0x38b5a1++){const _0x597aad=process[_0x1744ff(0x1bb)][_0x38b5a1];if(_0x597aad&&_0x597aad[_0x1744ff(0x1ab)]('--')){const _0x28bbe8=_0x597aad[_0x1744ff(0x1cc)](0x2);_0x28bbe8&&!_0x28bbe8['includes']('=')&&_0x3a486b[_0x1744ff(0x1cb)](_0x28bbe8);}}return _0x3a486b;}export function getAllProvidedFlags(_0x29b911){const _0x26653e=a281_0x22d8,_0xa9d9da=camelCaseFlagsToKebab(_0x29b911),_0x2030f2=parseDynamicFlags(),_0x2f72b1=new Set([..._0xa9d9da,..._0x2030f2]);return Array[_0x26653e(0x1bd)](_0x2f72b1);}export function normalizeLegacyBffSaveFlags(_0x44192){const _0x50f227=a281_0x22d8,_0x388843=new Set(_0x44192);return _0x388843[_0x50f227(0x1ac)](_0x50f227(0x1c5))&&_0x388843[_0x50f227(0x1c7)]('enable-bff-save'),Array[_0x50f227(0x1bd)](_0x388843);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0xcc8a1e,_0x22a44b,_0x1c2c05){const _0x4aca79=a281_0x22d8;logger[_0x4aca79(0x1b4)](process[_0x4aca79(0x1b5)]());if(_0x1c2c05?.[_0x4aca79(0x1b2)]||_0xcc8a1e===_0x4aca79(0x1c8)){showHelp();return;}console[_0x4aca79(0x1c3)](_0x4aca79(0x1c6)+(_0xcc8a1e||_0x4aca79(0x1c9))),console['log']('\x0aAvailable\x20commands:'),console[_0x4aca79(0x1b7)]('\x20\x20'+CLI_BIN_NAME+_0x4aca79(0x1bc)),console[_0x4aca79(0x1b7)](''),console[_0x4aca79(0x1b7)](_0x4aca79(0x1b1)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x4aca79(0x1c3)](_0x4aca79(0x1c2),_0x4aca79(0x1af)+_0xcc8a1e),process[_0x4aca79(0x1ae)](0x1);}function showHelp(){const _0x100a1d=a281_0x22d8;console['log']('\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x100a1d(0x1b9)+SKILLS_INSTALL_COMMAND_LINE+_0x100a1d(0x1c0));}
1
+ (function(_0x587267,_0x33c44f){const _0x528526=a282_0x11af,_0x4482f4=_0x587267();while(!![]){try{const _0x17acc0=parseInt(_0x528526(0xcf))/0x1+-parseInt(_0x528526(0xbd))/0x2+parseInt(_0x528526(0xc8))/0x3+parseInt(_0x528526(0xb4))/0x4*(parseInt(_0x528526(0xca))/0x5)+parseInt(_0x528526(0xcd))/0x6+-parseInt(_0x528526(0xcc))/0x7+-parseInt(_0x528526(0xc5))/0x8;if(_0x17acc0===_0x33c44f)break;else _0x4482f4['push'](_0x4482f4['shift']());}catch(_0x100ece){_0x4482f4['push'](_0x4482f4['shift']());}}}(a282_0x20f3,0xa05f0));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(_0x1d2de9){const _0x300c68=a282_0x11af,_0x10d6a6=[];for(const [_0x2c9494,_0x1f69b9]of Object[_0x300c68(0xb7)](_0x1d2de9)){if(_0x1f69b9===!![]){const _0x8f8af0=_0x2c9494[_0x300c68(0xb6)](/([A-Z])/g,_0x300c68(0xcb))[_0x300c68(0xd0)]();_0x10d6a6['push'](_0x8f8af0);}}return _0x10d6a6;}export function parseDynamicFlags(){const _0x3e5fc7=a282_0x11af,_0x50b1f1=[];for(let _0x1cd86c=0x3;_0x1cd86c<process[_0x3e5fc7(0xd5)][_0x3e5fc7(0xc3)];_0x1cd86c++){const _0x337c0c=process[_0x3e5fc7(0xd5)][_0x1cd86c];if(_0x337c0c&&_0x337c0c[_0x3e5fc7(0xb9)]('--')){const _0x57465f=_0x337c0c[_0x3e5fc7(0xd3)](0x2);_0x57465f&&!_0x57465f[_0x3e5fc7(0xd2)]('=')&&_0x50b1f1[_0x3e5fc7(0xc4)](_0x57465f);}}return _0x50b1f1;}export function getAllProvidedFlags(_0x3b63ac){const _0x1e0759=camelCaseFlagsToKebab(_0x3b63ac),_0x5a3430=parseDynamicFlags(),_0x219437=new Set([..._0x1e0759,..._0x5a3430]);return Array['from'](_0x219437);}function a282_0x20f3(){const _0x11e22f=['396087PVgRPS','toLowerCase','error','includes','slice','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','argv','has','dangerously-bff-save','1079492CpWiyf','\x0aAvailable\x20commands:','replace','entries','skill','startsWith','(empty)','enable-bff-save','setLogPath','464094RFKUqM','log','cwd','add','from','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','length','push','1623496AcQXyF','Error:\x20Unsupported\x20command:\x20','help','1307952EexvrV','exit','5lEjmVL','-$1','3475220EUsUpj','2918280VrGScx','--help'];a282_0x20f3=function(){return _0x11e22f;};return a282_0x20f3();}export function normalizeLegacyBffSaveFlags(_0x4b9bd6){const _0x3ad291=a282_0x11af,_0x489108=new Set(_0x4b9bd6);return _0x489108[_0x3ad291(0xd6)](_0x3ad291(0xd7))&&_0x489108[_0x3ad291(0xc0)](_0x3ad291(0xbb)),Array[_0x3ad291(0xc1)](_0x489108);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a282_0x11af(_0x39d67f,_0x17cab1){_0x39d67f=_0x39d67f-0xb4;const _0x20f341=a282_0x20f3();let _0x11af03=_0x20f341[_0x39d67f];return _0x11af03;}export async function skillsCommand(_0x2cb58e,_0x28f1b6,_0x2fbb90){const _0x204efd=a282_0x11af;logger[_0x204efd(0xbc)](process[_0x204efd(0xbf)]());if(_0x2fbb90?.[_0x204efd(0xc7)]||_0x2cb58e===_0x204efd(0xce)){showHelp();return;}console[_0x204efd(0xd1)](_0x204efd(0xc6)+(_0x2cb58e||_0x204efd(0xba))),console[_0x204efd(0xbe)](_0x204efd(0xb5)),console['log']('\x20\x20'+CLI_BIN_NAME+_0x204efd(0xc2)),console[_0x204efd(0xbe)](''),console[_0x204efd(0xbe)]('Public\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0x204efd(0xd1)](_0x204efd(0xb8),'Unsupported\x20command:\x20'+_0x2cb58e),process[_0x204efd(0xc9)](0x1);}function showHelp(){const _0x22eb99=a282_0x11af;console[_0x22eb99(0xbe)]('\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x22eb99(0xd4)+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 a282_0x43a55e=a282_0x5021;(function(_0xb3074d,_0x5b3b00){const _0x304a3e=a282_0x5021,_0x375faf=_0xb3074d();while(!![]){try{const _0x25d1ed=-parseInt(_0x304a3e(0xd5))/0x1*(-parseInt(_0x304a3e(0xd0))/0x2)+-parseInt(_0x304a3e(0xdb))/0x3*(-parseInt(_0x304a3e(0xda))/0x4)+parseInt(_0x304a3e(0xe7))/0x5*(-parseInt(_0x304a3e(0xf2))/0x6)+parseInt(_0x304a3e(0xc1))/0x7*(-parseInt(_0x304a3e(0xcc))/0x8)+-parseInt(_0x304a3e(0xd6))/0x9*(parseInt(_0x304a3e(0xea))/0xa)+-parseInt(_0x304a3e(0xdc))/0xb*(parseInt(_0x304a3e(0xd7))/0xc)+-parseInt(_0x304a3e(0xe5))/0xd*(-parseInt(_0x304a3e(0xbb))/0xe);if(_0x25d1ed===_0x5b3b00)break;else _0x375faf['push'](_0x375faf['shift']());}catch(_0x5bb0dc){_0x375faf['push'](_0x375faf['shift']());}}}(a282_0x8cd7,0xd621d));function a282_0x5021(_0x297feb,_0xb8df95){_0x297feb=_0x297feb-0xb5;const _0x8cd766=a282_0x8cd7();let _0x502171=_0x8cd766[_0x297feb];return _0x502171;}import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a282_0x43a55e(0xe6);export const NPX_SKILLS_SUBCOMMAND_ADD=a282_0x43a55e(0xc7);export const NPX_SKILLS_FLAG_SKILL=a282_0x43a55e(0xbc);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a282_0x43a55e(0xbf);export const DEFAULT_RABETBASE_SKILL_NAME=a282_0x43a55e(0xd9);export const RABETBASE_GLOBAL_SKILL_NAME='rabetbase';export const RABETBASE_SKILL_GIT_SOURCE=a282_0x43a55e(0xe8);export function resolveGlobalSkillName(_0x2267f6){switch(_0x2267f6['trim']()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x131c45){const _0x2c9e61=a282_0x43a55e,_0x3682be=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x131c45&&_0x3682be[_0x2c9e61(0xc3)](NPX_SKILLS_FLAG_SKILL,_0x131c45),_0x3682be;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a282_0x43a55e(0xba),...buildNpxSkillsAddArgv()][a282_0x43a55e(0xf3)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a282_0x43a55e(0xba),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a282_0x43a55e(0xf3)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x208b61,_0x332d6c,_0x536065){return{'ok':![],'status':_0x332d6c,'code':_0x208b61,'error':'['+_0x208b61+']\x20'+_0x536065};}function spawnOptions(_0x5c7dbc,_0x36dfdc){const _0x4f2e50=a282_0x43a55e,_0x53f90f={...process.env};return delete _0x53f90f[_0x4f2e50(0xdd)],delete _0x53f90f[_0x4f2e50(0xf5)],{'cwd':_0x5c7dbc,'stdio':_0x36dfdc,'env':_0x53f90f,'shell':![],..._0x36dfdc===_0x4f2e50(0xdf)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0xc51511,_0x2b8bab,_0x3c034d,_0x4b3c5e){const _0x1e22be=a282_0x43a55e,_0x440761=[_0xc51511[_0x1e22be(0xf0)]?_0xc51511[_0x1e22be(0xf0)]['toString']():'',_0xc51511[_0x1e22be(0xb5)]?_0xc51511[_0x1e22be(0xb5)][_0x1e22be(0xd1)]():''][_0x1e22be(0xe0)](Boolean)[_0x1e22be(0xf3)]('\x0a')[_0x1e22be(0xbe)]();_0x4b3c5e!==_0x1e22be(0xdf)&&_0x440761&&console[_0x1e22be(0xe9)](_0x440761);if(_0xc51511[_0x1e22be(0xcd)]){const _0xeeb237=_0xc51511[_0x1e22be(0xcd)],_0x1b2f7c=_0xeeb237[_0x1e22be(0xca)]===_0x1e22be(0xf6)?_0x1e22be(0xc8):_0xeeb237[_0x1e22be(0xca)]===_0x1e22be(0xec)||_0xeeb237['code']==='EACCES'?_0x1e22be(0xcb):'SPAWN_FAILED';return failure(_0x1b2f7c,_0xc51511[_0x1e22be(0xce)],_0xeeb237[_0x1e22be(0xc5)]);}if(_0xc51511[_0x1e22be(0xb6)])return failure('CHILD_TERMINATED',_0xc51511[_0x1e22be(0xce)],_0x1e22be(0xf1)+_0xc51511['signal']);if(_0xc51511[_0x1e22be(0xce)]!==0x0)return failure(_0x1e22be(0xc0),_0xc51511[_0x1e22be(0xce)],_0x440761||_0x1e22be(0xe4)+(_0xc51511['status']??_0x1e22be(0xbd)));const _0x43c445=_0x2b8bab?resolveInstalledSkill(_0x2b8bab,_0x3c034d):undefined,_0x50f1d9=_0x440761[_0x1e22be(0xf7)](/Failed to install\s+(\d+)/i);if(_0x50f1d9&&Number(_0x50f1d9[0x1])>0x0){const _0x22b69e=_0x1e22be(0xcf)+_0x50f1d9[0x1]+_0x1e22be(0xc6)+(_0x440761?':\x0a'+_0x440761:'');if(_0x43c445?.[_0x1e22be(0xef)]==='present')return console[_0x1e22be(0xb7)]('!\x20'+_0x22b69e),{'ok':!![],'status':0x0};return failure(_0x1e22be(0xed),0x0,_0x22b69e);}if(_0x43c445){if(_0x43c445['state']===_0x1e22be(0xe1))return failure(_0x1e22be(0xd8),0x0,_0x1e22be(0xb8)+_0x2b8bab+_0x1e22be(0xd3)+_0x43c445[_0x1e22be(0xd4)][_0x1e22be(0xf3)](',\x20')+')');_0x43c445[_0x1e22be(0xef)]===_0x1e22be(0xc2)&&console['warn'](_0x1e22be(0xf4)+_0x2b8bab+_0x1e22be(0xe2)+_0x43c445[_0x1e22be(0xe3)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0xb34e8a,_0x191b38){const _0xfc00fc=a282_0x43a55e;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xff3586=_0x191b38?.['stdio']??'inherit',_0x2929d6=resolveNpmBin('npx'),_0x26af2b=buildNpxSkillsAddArgv(_0x191b38?.['skill']),_0x18db91=[_0xfc00fc(0xba),..._0x26af2b]['join']('\x20');console[_0xfc00fc(0xe9)]('*\x20'+_0x18db91);const _0x3fd548=spawnSync(_0x2929d6,_0x26af2b,spawnOptions(_0xb34e8a,_0xff3586));return normalizeSpawnResult(_0x3fd548,undefined,undefined,_0xff3586);}function a282_0x8cd7(){const _0x3502f7=['NPX_NOT_FOUND','stdio','code','PERMISSION_DENIED','8392ixpNuP','error','status','Installer\x20reported\x20','10buCEfU','toString','presence','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','checked','75836IDEBpt','585omUbHM','16038552jJTaFC','SKILL_NOT_INSTALLED','Lovrabet','85628HxrQsv','3vrvFEf','11stEExv','npm_config_global','yes','pipe','filter','absent','\x22\x20install\x20state:\x20','reason','exit\x20','95563Ydgddj','skills@latest','5WFvoPT','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','log','183010SPoytI','skill','EPERM','INSTALL_PARTIAL','inherit','state','stdout','npx\x20terminated\x20by\x20signal\x20','8591448DwJytI','join','!\x20Could\x20not\x20verify\x20\x22','NPM_CONFIG_GLOBAL','ENOENT','match','stderr','signal','warn','Skill\x20\x22','expectedSkillName','npx','11704YQOLsq','--skill','unknown','trim','lovrabet/lovrabet-skill','CHILD_EXIT_NONZERO','11417HOrkUx','unverifiable','push','remove','message','\x20failed\x20target(s)','add'];a282_0x8cd7=function(){return _0x3502f7;};return a282_0x8cd7();}export function runNpxSkillsRemove(_0x58b2aa,_0x22278e,_0x4f3172=LEGACY_RABETBASE_SKILL_SOURCE){const _0x4719c3=a282_0x43a55e;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5a096f=_0x22278e?.[_0x4719c3(0xc9)]??_0x4719c3(0xee),_0x2cd65f=resolveNpmBin(_0x4719c3(0xba)),_0x150a71=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x4719c3(0xc4),_0x4f3172,NPX_SKILLS_FLAG_SKILL,_0x22278e?.[_0x4719c3(0xeb)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x22278e?.[_0x4719c3(0xde)]?['-y']:[]],_0x26b697=[_0x2cd65f,..._0x150a71][_0x4719c3(0xf3)]('\x20');console[_0x4719c3(0xe9)]('*\x20'+_0x26b697);const _0x5af72f=spawnSync(_0x2cd65f,_0x150a71,spawnOptions(_0x58b2aa,_0x5a096f));return normalizeSpawnResult(_0x5af72f,undefined,undefined,_0x5a096f);}export function runNpxSkillsAddGlobal(_0x148389,_0x322c0a,_0x2fd7b8){const _0x46cfa7=a282_0x43a55e;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x173fa0=resolveNpmBin(_0x46cfa7(0xba)),_0x1475d7=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x322c0a,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x54ca3d=[_0x46cfa7(0xba),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x322c0a,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x46cfa7(0xf3)]('\x20');console[_0x46cfa7(0xe9)]('*\x20'+_0x54ca3d);const _0x34bfcf=spawnSync(_0x173fa0,_0x1475d7,spawnOptions(_0x148389,_0x46cfa7(0xdf)));return normalizeSpawnResult(_0x34bfcf,_0x2fd7b8?.[_0x46cfa7(0xb9)]??resolveGlobalSkillName(_0x322c0a),_0x2fd7b8?.[_0x46cfa7(0xd2)],_0x2fd7b8?.['stdio']);}
1
+ const a283_0x2d884a=a283_0x4625;(function(_0x9bf0e7,_0x337250){const _0x2abeb9=a283_0x4625,_0x3b493c=_0x9bf0e7();while(!![]){try{const _0x558bc7=parseInt(_0x2abeb9(0x1c7))/0x1+-parseInt(_0x2abeb9(0x1bf))/0x2+parseInt(_0x2abeb9(0x1c0))/0x3+parseInt(_0x2abeb9(0x1d1))/0x4+parseInt(_0x2abeb9(0x1e1))/0x5+-parseInt(_0x2abeb9(0x1ed))/0x6*(-parseInt(_0x2abeb9(0x1ca))/0x7)+-parseInt(_0x2abeb9(0x1d2))/0x8;if(_0x558bc7===_0x337250)break;else _0x3b493c['push'](_0x3b493c['shift']());}catch(_0x10c666){_0x3b493c['push'](_0x3b493c['shift']());}}}(a283_0x122d,0xbfbb5));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a283_0x2d884a(0x1d9);export const NPX_SKILLS_SUBCOMMAND_ADD=a283_0x2d884a(0x1cc);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a283_0x2d884a(0x1e9);export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME=a283_0x2d884a(0x1e0);export const RABETBASE_GLOBAL_SKILL_NAME=a283_0x2d884a(0x1c8);export const RABETBASE_SKILL_GIT_SOURCE='git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git';export function resolveGlobalSkillName(_0xa0797){const _0x4614d1=a283_0x2d884a;switch(_0xa0797[_0x4614d1(0x1be)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x50f09b){const _0x32883f=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x50f09b&&_0x32883f['push'](NPX_SKILLS_FLAG_SKILL,_0x50f09b),_0x32883f;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a283_0x2d884a(0x1ce),...buildNpxSkillsAddArgv()][a283_0x2d884a(0x1dd)]('\x20');function a283_0x4625(_0x3f2f39,_0x950e75){_0x3f2f39=_0x3f2f39-0x1bd;const _0x122d59=a283_0x122d();let _0x46257c=_0x122d59[_0x3f2f39];return _0x46257c;}export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x1b9b2f,_0x45d010,_0x232803){return{'ok':![],'status':_0x45d010,'code':_0x1b9b2f,'error':'['+_0x1b9b2f+']\x20'+_0x232803};}function spawnOptions(_0x3a1562,_0x377e8b){const _0x4c845b=a283_0x2d884a,_0x2abf69={...process.env};return delete _0x2abf69[_0x4c845b(0x1f3)],delete _0x2abf69[_0x4c845b(0x1e3)],{'cwd':_0x3a1562,'stdio':_0x377e8b,'env':_0x2abf69,'shell':![],..._0x377e8b===_0x4c845b(0x1eb)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x1f7ae9,_0x4442fa,_0x494732,_0x32f0f7){const _0x46c40e=a283_0x2d884a,_0xc90cde=[_0x1f7ae9[_0x46c40e(0x1c1)]?_0x1f7ae9[_0x46c40e(0x1c1)][_0x46c40e(0x1ef)]():'',_0x1f7ae9[_0x46c40e(0x1d5)]?_0x1f7ae9[_0x46c40e(0x1d5)][_0x46c40e(0x1ef)]():''][_0x46c40e(0x1df)](Boolean)[_0x46c40e(0x1dd)]('\x0a')['trim']();_0x32f0f7!==_0x46c40e(0x1eb)&&_0xc90cde&&console[_0x46c40e(0x1de)](_0xc90cde);if(_0x1f7ae9[_0x46c40e(0x1e2)]){const _0x2c5844=_0x1f7ae9[_0x46c40e(0x1e2)],_0x4765be=_0x2c5844[_0x46c40e(0x1e6)]===_0x46c40e(0x1db)?_0x46c40e(0x1da):_0x2c5844['code']===_0x46c40e(0x1cf)||_0x2c5844['code']===_0x46c40e(0x1cb)?_0x46c40e(0x1e7):_0x46c40e(0x1ea);return failure(_0x4765be,_0x1f7ae9[_0x46c40e(0x1e4)],_0x2c5844[_0x46c40e(0x1d7)]);}if(_0x1f7ae9[_0x46c40e(0x1f5)])return failure(_0x46c40e(0x1d4),_0x1f7ae9[_0x46c40e(0x1e4)],_0x46c40e(0x1c2)+_0x1f7ae9[_0x46c40e(0x1f5)]);if(_0x1f7ae9[_0x46c40e(0x1e4)]!==0x0)return failure(_0x46c40e(0x1ee),_0x1f7ae9[_0x46c40e(0x1e4)],_0xc90cde||_0x46c40e(0x1f0)+(_0x1f7ae9[_0x46c40e(0x1e4)]??_0x46c40e(0x1e5)));const _0x344d14=_0x4442fa?resolveInstalledSkill(_0x4442fa,_0x494732):undefined,_0x176b8d=_0xc90cde[_0x46c40e(0x1d8)](/Failed to install\s+(\d+)/i);if(_0x176b8d&&Number(_0x176b8d[0x1])>0x0){const _0x11934d=_0x46c40e(0x1c6)+_0x176b8d[0x1]+_0x46c40e(0x1d0)+(_0xc90cde?':\x0a'+_0xc90cde:'');if(_0x344d14?.[_0x46c40e(0x1f1)]===_0x46c40e(0x1c3))return console['warn']('!\x20'+_0x11934d),{'ok':!![],'status':0x0};return failure('INSTALL_PARTIAL',0x0,_0x11934d);}if(_0x344d14){if(_0x344d14[_0x46c40e(0x1f1)]==='absent')return failure('SKILL_NOT_INSTALLED',0x0,_0x46c40e(0x1f2)+_0x4442fa+_0x46c40e(0x1d6)+_0x344d14[_0x46c40e(0x1ec)][_0x46c40e(0x1dd)](',\x20')+')');_0x344d14[_0x46c40e(0x1f1)]===_0x46c40e(0x1c5)&&console[_0x46c40e(0x1cd)]('!\x20Could\x20not\x20verify\x20\x22'+_0x4442fa+_0x46c40e(0x1bd)+_0x344d14['reason']);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x45cfca,_0x1d2bf4){const _0x54a680=a283_0x2d884a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5eef7f=_0x1d2bf4?.['stdio']??_0x54a680(0x1d3),_0x3ed5b7=resolveNpmBin(_0x54a680(0x1ce)),_0x581b33=buildNpxSkillsAddArgv(_0x1d2bf4?.['skill']),_0xb5d01f=[_0x54a680(0x1ce),..._0x581b33][_0x54a680(0x1dd)]('\x20');console['log']('*\x20'+_0xb5d01f);const _0x1e8875=spawnSync(_0x3ed5b7,_0x581b33,spawnOptions(_0x45cfca,_0x5eef7f));return normalizeSpawnResult(_0x1e8875,undefined,undefined,_0x5eef7f);}function a283_0x122d(){const _0x351cf8=['toString','exit\x20','state','Skill\x20\x22','npm_config_global','presence','signal','\x22\x20install\x20state:\x20','trim','280904WMoIzs','276909OWWJal','stdout','npx\x20terminated\x20by\x20signal\x20','present','skill','unverifiable','Installer\x20reported\x20','207006qqJvfh','rabetbase','stdio','77VIIMJC','EACCES','add','warn','npx','EPERM','\x20failed\x20target(s)','1920548UUWQcw','7576496qMRmSk','inherit','CHILD_TERMINATED','stderr','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','message','match','skills@latest','NPX_NOT_FOUND','ENOENT','remove','join','log','filter','Lovrabet','4994995YVqsFm','error','NPM_CONFIG_GLOBAL','status','unknown','code','PERMISSION_DENIED','yes','lovrabet/rabetbase','SPAWN_FAILED','pipe','checked','51492TTxlLL','CHILD_EXIT_NONZERO'];a283_0x122d=function(){return _0x351cf8;};return a283_0x122d();}export function runNpxSkillsRemove(_0x4d2829,_0x3cb2f2,_0x49d121=LEGACY_RABETBASE_SKILL_SOURCE){const _0x401176=a283_0x2d884a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x423ebd=_0x3cb2f2?.[_0x401176(0x1c9)]??_0x401176(0x1d3),_0x14e243=resolveNpmBin(_0x401176(0x1ce)),_0x59b1fa=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x401176(0x1dc),_0x49d121,NPX_SKILLS_FLAG_SKILL,_0x3cb2f2?.[_0x401176(0x1c4)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x3cb2f2?.[_0x401176(0x1e8)]?['-y']:[]],_0x378a07=[_0x14e243,..._0x59b1fa][_0x401176(0x1dd)]('\x20');console[_0x401176(0x1de)]('*\x20'+_0x378a07);const _0x23fd78=spawnSync(_0x14e243,_0x59b1fa,spawnOptions(_0x4d2829,_0x423ebd));return normalizeSpawnResult(_0x23fd78,undefined,undefined,_0x423ebd);}export function runNpxSkillsAddGlobal(_0x222854,_0x490d59,_0x4abb38){const _0x1b7557=a283_0x2d884a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x45fd7d=resolveNpmBin(_0x1b7557(0x1ce)),_0x5ca350=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x490d59,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x573735=[_0x1b7557(0x1ce),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x490d59,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console['log']('*\x20'+_0x573735);const _0x19a1d6=spawnSync(_0x45fd7d,_0x5ca350,spawnOptions(_0x222854,_0x1b7557(0x1eb)));return normalizeSpawnResult(_0x19a1d6,_0x4abb38?.['expectedSkillName']??resolveGlobalSkillName(_0x490d59),_0x4abb38?.[_0x1b7557(0x1f4)],_0x4abb38?.[_0x1b7557(0x1c9)]);}
@@ -1 +1 @@
1
- const a283_0x14efab=a283_0x9e48;(function(_0x210a8b,_0x21b7b1){const _0x27c17e=a283_0x9e48,_0x28f1b5=_0x210a8b();while(!![]){try{const _0x23062e=-parseInt(_0x27c17e(0x18b))/0x1*(-parseInt(_0x27c17e(0x199))/0x2)+-parseInt(_0x27c17e(0x180))/0x3*(parseInt(_0x27c17e(0x18a))/0x4)+parseInt(_0x27c17e(0x18e))/0x5+parseInt(_0x27c17e(0x17a))/0x6+parseInt(_0x27c17e(0x18d))/0x7+-parseInt(_0x27c17e(0x179))/0x8+-parseInt(_0x27c17e(0x185))/0x9;if(_0x23062e===_0x21b7b1)break;else _0x28f1b5['push'](_0x28f1b5['shift']());}catch(_0x4a1784){_0x28f1b5['push'](_0x28f1b5['shift']());}}}(a283_0x4fcc,0x2348a));import{existsSync,readFileSync}from'node:fs';function a283_0x4fcc(){const _0x5876c3=['version','unverifiable','reason','76509qEUDEz','present','skills','not-recorded','home','864063YaVekp','utf8','SKILL.md','number','message','44uMiSGC','56WkWldV','object','1384026DMRNqi','629105VhpVAm','unusable','lockFile','includes','.agents','globalSkillsDirs','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','map','\x20is\x20unreadable:\x20','parse','recorded','4016oojfiO','181208UaEFwN','646356IcQCrc','\x20records\x20\x22','\x20has\x20no\x20skills\x20map'];a283_0x4fcc=function(){return _0x5876c3;};return a283_0x4fcc();}import{homedir}from'node:os';function a283_0x9e48(_0x3e47db,_0xdbb02a){_0x3e47db=_0x3e47db-0x179;const _0x4fcc30=a283_0x4fcc();let _0x9e48ed=_0x4fcc30[_0x3e47db];return _0x9e48ed;}import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a283_0x14efab(0x192),'.skill-lock.json');export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents',a283_0x14efab(0x182)),join('.claude',a283_0x14efab(0x182))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0xe68f5b,_0x5534d1){const _0x343508=a283_0x14efab;if(!existsSync(_0xe68f5b))return{'kind':_0x343508(0x183)};let _0x30ffb1;try{_0x30ffb1=JSON[_0x343508(0x197)](readFileSync(_0xe68f5b,_0x343508(0x186)));}catch(_0x5769a0){return{'kind':'unusable','reason':_0xe68f5b+_0x343508(0x196)+_0x5769a0[_0x343508(0x189)]};}const _0xb68535=_0x30ffb1;if(typeof _0xb68535?.[_0x343508(0x17d)]!==_0x343508(0x188)||!SUPPORTED_LOCK_VERSIONS[_0x343508(0x191)](_0xb68535[_0x343508(0x17d)]))return{'kind':_0x343508(0x18f),'reason':_0xe68f5b+'\x20uses\x20unsupported\x20version\x20'+String(_0xb68535?.['version'])};if(!_0xb68535['skills']||typeof _0xb68535[_0x343508(0x182)]!==_0x343508(0x18c))return{'kind':_0x343508(0x18f),'reason':_0xe68f5b+_0x343508(0x17c)};return _0xb68535[_0x343508(0x182)][_0x5534d1]?{'kind':'recorded'}:{'kind':_0x343508(0x183)};}export function resolveInstalledSkill(_0x56c66b,_0x4b80fa){const _0x23e93c=a283_0x14efab,_0x1d75e6=_0x4b80fa?.[_0x23e93c(0x184)]??homedir(),_0x560fb2=_0x4b80fa?.[_0x23e93c(0x193)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x23e93c(0x195)](_0x57a8b2=>join(_0x1d75e6,_0x57a8b2)),_0x10984e=_0x4b80fa?.[_0x23e93c(0x190)]??join(_0x1d75e6,SKILL_LOCK_RELATIVE_PATH),_0x460bda=_0x560fb2['map'](_0x12ffcc=>join(_0x12ffcc,_0x56c66b,_0x23e93c(0x187))),_0x10b4be=_0x460bda['find'](_0x533195=>existsSync(_0x533195));if(_0x10b4be)return{'state':_0x23e93c(0x181),'path':_0x10b4be};const _0x3ef123=readLockLookup(_0x10984e,_0x56c66b);if(_0x3ef123['kind']===_0x23e93c(0x18f))return{'state':_0x23e93c(0x17e),'reason':_0x3ef123[_0x23e93c(0x17f)]};if(_0x3ef123['kind']===_0x23e93c(0x198))return{'state':'unverifiable','reason':_0x10984e+_0x23e93c(0x17b)+_0x56c66b+_0x23e93c(0x194)+('('+_0x460bda['join'](',\x20')+')')};return{'state':'absent','checked':_0x460bda};}
1
+ const a284_0x20526d=a284_0x2fac;(function(_0x2ac378,_0x576b86){const _0x1ff14b=a284_0x2fac,_0x5266b7=_0x2ac378();while(!![]){try{const _0x140f50=-parseInt(_0x1ff14b(0x9b))/0x1*(-parseInt(_0x1ff14b(0x9c))/0x2)+parseInt(_0x1ff14b(0x83))/0x3+-parseInt(_0x1ff14b(0xa2))/0x4+-parseInt(_0x1ff14b(0x8a))/0x5+parseInt(_0x1ff14b(0x95))/0x6*(parseInt(_0x1ff14b(0x88))/0x7)+parseInt(_0x1ff14b(0xa0))/0x8*(parseInt(_0x1ff14b(0x98))/0x9)+-parseInt(_0x1ff14b(0x7d))/0xa*(parseInt(_0x1ff14b(0x90))/0xb);if(_0x140f50===_0x576b86)break;else _0x5266b7['push'](_0x5266b7['shift']());}catch(_0x4d6be2){_0x5266b7['push'](_0x5266b7['shift']());}}}(a284_0x5f1c,0x926d3));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';function a284_0x2fac(_0x147768,_0x511831){_0x147768=_0x147768-0x7d;const _0x5f1c18=a284_0x5f1c();let _0x2fac8d=_0x5f1c18[_0x147768];return _0x2fac8d;}import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a284_0x20526d(0x85),a284_0x20526d(0x7e));function a284_0x5f1c(){const _0x31e10e=['1647WsqHdZ','reason','\x20records\x20\x22','1RWFvqS','276982CQxekC','map','utf8','SKILL.md','344wWsrnF','absent','1868180LcrCVi','skills','present','2149550LGiRtL','.skill-lock.json','\x20is\x20unreadable:\x20','home','includes','kind','3145155LZMgfa','\x20uses\x20unsupported\x20version\x20','.agents','version','.claude','7GMcBJr','join','2969640RZakVm','find','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','\x20has\x20no\x20skills\x20map','not-recorded','lockFile','33bIuWag','object','recorded','number','unusable','6665136MwgPoa','unverifiable','globalSkillsDirs'];a284_0x5f1c=function(){return _0x31e10e;};return a284_0x5f1c();}export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents',a284_0x20526d(0xa3)),join(a284_0x20526d(0x87),'skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x15ec70,_0x13a991){const _0xa5be5f=a284_0x20526d;if(!existsSync(_0x15ec70))return{'kind':_0xa5be5f(0x8e)};let _0xbd2f24;try{_0xbd2f24=JSON['parse'](readFileSync(_0x15ec70,_0xa5be5f(0x9e)));}catch(_0x2eb1e0){return{'kind':'unusable','reason':_0x15ec70+_0xa5be5f(0x7f)+_0x2eb1e0['message']};}const _0x4a87ba=_0xbd2f24;if(typeof _0x4a87ba?.[_0xa5be5f(0x86)]!==_0xa5be5f(0x93)||!SUPPORTED_LOCK_VERSIONS[_0xa5be5f(0x81)](_0x4a87ba['version']))return{'kind':_0xa5be5f(0x94),'reason':_0x15ec70+_0xa5be5f(0x84)+String(_0x4a87ba?.[_0xa5be5f(0x86)])};if(!_0x4a87ba[_0xa5be5f(0xa3)]||typeof _0x4a87ba['skills']!==_0xa5be5f(0x91))return{'kind':'unusable','reason':_0x15ec70+_0xa5be5f(0x8d)};return _0x4a87ba['skills'][_0x13a991]?{'kind':_0xa5be5f(0x92)}:{'kind':_0xa5be5f(0x8e)};}export function resolveInstalledSkill(_0x4b1022,_0x59c6d5){const _0x41377e=a284_0x20526d,_0x358494=_0x59c6d5?.[_0x41377e(0x80)]??homedir(),_0x33d378=_0x59c6d5?.[_0x41377e(0x97)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS['map'](_0x240428=>join(_0x358494,_0x240428)),_0x54cce0=_0x59c6d5?.[_0x41377e(0x8f)]??join(_0x358494,SKILL_LOCK_RELATIVE_PATH),_0x2eca70=_0x33d378[_0x41377e(0x9d)](_0x2a89da=>join(_0x2a89da,_0x4b1022,_0x41377e(0x9f))),_0x4be2c0=_0x2eca70[_0x41377e(0x8b)](_0x495a37=>existsSync(_0x495a37));if(_0x4be2c0)return{'state':_0x41377e(0xa4),'path':_0x4be2c0};const _0x2fa849=readLockLookup(_0x54cce0,_0x4b1022);if(_0x2fa849[_0x41377e(0x82)]===_0x41377e(0x94))return{'state':_0x41377e(0x96),'reason':_0x2fa849[_0x41377e(0x99)]};if(_0x2fa849['kind']==='recorded')return{'state':'unverifiable','reason':_0x54cce0+_0x41377e(0x9a)+_0x4b1022+_0x41377e(0x8c)+('('+_0x2eca70[_0x41377e(0x89)](',\x20')+')')};return{'state':_0x41377e(0xa1),'checked':_0x2eca70};}
@@ -1 +1 @@
1
- (function(_0x4d2a9a,_0x1a80ae){const _0x221a4a=a284_0x50b8,_0x40fb5a=_0x4d2a9a();while(!![]){try{const _0x397103=-parseInt(_0x221a4a(0x18b))/0x1+-parseInt(_0x221a4a(0x18a))/0x2*(-parseInt(_0x221a4a(0x18f))/0x3)+parseInt(_0x221a4a(0x197))/0x4*(-parseInt(_0x221a4a(0x190))/0x5)+-parseInt(_0x221a4a(0x188))/0x6+-parseInt(_0x221a4a(0x194))/0x7*(-parseInt(_0x221a4a(0x191))/0x8)+parseInt(_0x221a4a(0x193))/0x9+parseInt(_0x221a4a(0x195))/0xa;if(_0x397103===_0x1a80ae)break;else _0x40fb5a['push'](_0x40fb5a['shift']());}catch(_0x4ed412){_0x40fb5a['push'](_0x40fb5a['shift']());}}}(a284_0x3b49,0xaa645));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a284_0x3b49(){const _0x39efe5=['message','2gvfOkA','686650FentRr','some','error','command','2341530IqqTrj','61635SkQMMT','6001544zePgpd','durationMs','1542303rssSHe','7KTAIXi','13508070YxQVGk','service','164MbSSeg','6977370HGFMva'];a284_0x3b49=function(){return _0x39efe5;};return a284_0x3b49();}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x16f33c){const _0x5401a5=a284_0x50b8;return SENSITIVE_PATTERNS[_0x5401a5(0x18c)](_0x5a2753=>_0x5a2753['test'](_0x16f33c));}function sanitizeFlags(_0x53f059){const _0x5948a8={};for(const [_0x2b11e8,_0x20f1f7]of Object['entries'](_0x53f059)){isSensitiveKey(_0x2b11e8)?_0x5948a8[_0x2b11e8]=_0x20f1f7!=null&&_0x20f1f7!==''?'[REDACTED]':_0x20f1f7:_0x5948a8[_0x2b11e8]=_0x20f1f7;}return _0x5948a8;}function a284_0x50b8(_0xed6b60,_0xfa2c22){_0xed6b60=_0xed6b60-0x188;const _0x3b492e=a284_0x3b49();let _0x50b8fc=_0x3b492e[_0xed6b60];return _0x50b8fc;}export async function reportCommandTrace(_0x5281e0){const _0x14e07b=a284_0x50b8;try{const _0x5980e0=sanitizeFlags(_0x5281e0['flags']);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x5281e0[_0x14e07b(0x196)],'command.name':_0x5281e0[_0x14e07b(0x18e)],'command.flags':JSON['stringify'](_0x5980e0),..._0x5281e0[_0x14e07b(0x192)]!=null?{'command.duration_ms':_0x5281e0[_0x14e07b(0x192)]}:{},..._0x5281e0[_0x14e07b(0x18d)]?{'command.error':_0x5281e0[_0x14e07b(0x18d)]instanceof Error?_0x5281e0[_0x14e07b(0x18d)][_0x14e07b(0x189)]:String(_0x5281e0['error'])}:{}}});}catch{}}
1
+ (function(_0x18a414,_0x2f2e92){const _0x4accae=a285_0x9dbc,_0x396240=_0x18a414();while(!![]){try{const _0x5a49ff=-parseInt(_0x4accae(0x12b))/0x1*(-parseInt(_0x4accae(0x11f))/0x2)+parseInt(_0x4accae(0x123))/0x3+-parseInt(_0x4accae(0x121))/0x4*(-parseInt(_0x4accae(0x124))/0x5)+-parseInt(_0x4accae(0x129))/0x6*(parseInt(_0x4accae(0x126))/0x7)+-parseInt(_0x4accae(0x127))/0x8*(-parseInt(_0x4accae(0x11d))/0x9)+parseInt(_0x4accae(0x12e))/0xa*(parseInt(_0x4accae(0x128))/0xb)+-parseInt(_0x4accae(0x12d))/0xc;if(_0x5a49ff===_0x2f2e92)break;else _0x396240['push'](_0x396240['shift']());}catch(_0xd717b4){_0x396240['push'](_0x396240['shift']());}}}(a285_0x1c5a,0x507e1));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a285_0x1c5a(){const _0x276d11=['107340jMMLAL','374955GLWKOL','[REDACTED]','133faAjql','1224lNdWNH','269434ueafVI','169446rSAqFW','stringify','17vRTFKn','durationMs','9554352nHJrJf','120ZCwMAs','command','some','entries','error','35649icgEbj','rabetbase.command','14918wbuYvz','test','32MhxSVD','service'];a285_0x1c5a=function(){return _0x276d11;};return a285_0x1c5a();}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function a285_0x9dbc(_0x4e8048,_0xa715f6){_0x4e8048=_0x4e8048-0x11c;const _0x1c5a1b=a285_0x1c5a();let _0x9dbc7c=_0x1c5a1b[_0x4e8048];return _0x9dbc7c;}function isSensitiveKey(_0x8b172a){const _0x3ac635=a285_0x9dbc;return SENSITIVE_PATTERNS[_0x3ac635(0x130)](_0x114ac7=>_0x114ac7[_0x3ac635(0x120)](_0x8b172a));}function sanitizeFlags(_0x4ef2d9){const _0x44b730=a285_0x9dbc,_0xe34f2a={};for(const [_0x5124ca,_0x335320]of Object[_0x44b730(0x131)](_0x4ef2d9)){isSensitiveKey(_0x5124ca)?_0xe34f2a[_0x5124ca]=_0x335320!=null&&_0x335320!==''?_0x44b730(0x125):_0x335320:_0xe34f2a[_0x5124ca]=_0x335320;}return _0xe34f2a;}export async function reportCommandTrace(_0x420e9a){const _0x5b154e=a285_0x9dbc;try{const _0x413838=sanitizeFlags(_0x420e9a['flags']);await sendCliTraceLog({'spanName':_0x5b154e(0x11e),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x420e9a[_0x5b154e(0x122)],'command.name':_0x420e9a[_0x5b154e(0x12f)],'command.flags':JSON[_0x5b154e(0x12a)](_0x413838),..._0x420e9a[_0x5b154e(0x12c)]!=null?{'command.duration_ms':_0x420e9a[_0x5b154e(0x12c)]}:{},..._0x420e9a['error']?{'command.error':_0x420e9a[_0x5b154e(0x11c)]instanceof Error?_0x420e9a['error']['message']:String(_0x420e9a[_0x5b154e(0x11c)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a285_0x2316(){var _0x893d82=['670CxGkzd','370650rOywfc','423cEnkkg','555sLIwrd','1077FkdMLr','938860wktugN','error','800424ICRGqy','service','2268slDISv','Failed\x20to\x20report\x20CLI\x20help\x20trace:','12020xDUHlD','697056MRNlqP'];a285_0x2316=function(){return _0x893d82;};return a285_0x2316();}(function(_0x52d1df,_0x53484b){var _0x2f2508=a285_0x3aed,_0xef1fc1=_0x52d1df();while(!![]){try{var _0x38023d=parseInt(_0x2f2508(0x19e))/0x1*(parseInt(_0x2f2508(0x19b))/0x2)+-parseInt(_0x2f2508(0x19f))/0x3*(parseInt(_0x2f2508(0x1a4))/0x4)+parseInt(_0x2f2508(0x1a0))/0x5+parseInt(_0x2f2508(0x1a2))/0x6+-parseInt(_0x2f2508(0x19c))/0x7+-parseInt(_0x2f2508(0x1a7))/0x8+parseInt(_0x2f2508(0x19d))/0x9*(-parseInt(_0x2f2508(0x1a6))/0xa);if(_0x38023d===_0x53484b)break;else _0xef1fc1['push'](_0xef1fc1['shift']());}catch(_0x578e42){_0xef1fc1['push'](_0xef1fc1['shift']());}}}(a285_0x2316,0x1a1dc));function a285_0x3aed(_0x567f1b,_0x2bbb72){_0x567f1b=_0x567f1b-0x19b;var _0x231604=a285_0x2316();var _0x3aed3c=_0x231604[_0x567f1b];return _0x3aed3c;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x28cfaa,_0x163d01){var _0x75a086=a285_0x3aed;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x28cfaa,..._0x163d01?.['service']&&{'rabetbase.help.service':_0x163d01[_0x75a086(0x1a3)]}}});}catch(_0x504efa){console[_0x75a086(0x1a1)](_0x75a086(0x1a5),_0x504efa);}}
1
+ function a286_0x5a46(_0x50c27c,_0x538d31){_0x50c27c=_0x50c27c-0x77;var _0x2d86bc=a286_0x2d86();var _0x5a4667=_0x2d86bc[_0x50c27c];return _0x5a4667;}function a286_0x2d86(){var _0x23374c=['9iuRqvk','4042129DMsZnh','323160GlSKUW','11163940JVYdkf','409914BQCqqR','638871ejIBsI','service','cli.help','3295004qtPESE','3JBCjEE','178894ZKblUS','5aBsygL'];a286_0x2d86=function(){return _0x23374c;};return a286_0x2d86();}(function(_0x198b70,_0x53f87f){var _0x4d5ba7=a286_0x5a46,_0x4d85b7=_0x198b70();while(!![]){try{var _0x325501=parseInt(_0x4d5ba7(0x7a))/0x1*(-parseInt(_0x4d5ba7(0x7b))/0x2)+-parseInt(_0x4d5ba7(0x82))/0x3+-parseInt(_0x4d5ba7(0x79))/0x4+-parseInt(_0x4d5ba7(0x7c))/0x5*(-parseInt(_0x4d5ba7(0x81))/0x6)+parseInt(_0x4d5ba7(0x7e))/0x7+-parseInt(_0x4d5ba7(0x7f))/0x8*(parseInt(_0x4d5ba7(0x7d))/0x9)+parseInt(_0x4d5ba7(0x80))/0xa;if(_0x325501===_0x53f87f)break;else _0x4d85b7['push'](_0x4d85b7['shift']());}catch(_0x31268b){_0x4d85b7['push'](_0x4d85b7['shift']());}}}(a286_0x2d86,0x65bcc));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x5aa6a8,_0x26389d){var _0x1f87ea=a286_0x5a46;try{await sendCliTraceLog({'spanName':_0x1f87ea(0x78),'logData':{'rabetbase.help.kind':_0x5aa6a8,..._0x26389d?.[_0x1f87ea(0x77)]&&{'rabetbase.help.service':_0x26389d[_0x1f87ea(0x77)]}}});}catch(_0x29b7cf){console['error']('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x29b7cf);}}
@@ -1 +1 @@
1
- (function(_0x229576,_0x56362f){const _0x2bf5a1=a286_0x4e09,_0x142845=_0x229576();while(!![]){try{const _0x12b09b=-parseInt(_0x2bf5a1(0x185))/0x1+parseInt(_0x2bf5a1(0x188))/0x2*(-parseInt(_0x2bf5a1(0x18a))/0x3)+-parseInt(_0x2bf5a1(0x18c))/0x4*(-parseInt(_0x2bf5a1(0x187))/0x5)+-parseInt(_0x2bf5a1(0x181))/0x6*(parseInt(_0x2bf5a1(0x191))/0x7)+-parseInt(_0x2bf5a1(0x183))/0x8+parseInt(_0x2bf5a1(0x186))/0x9*(-parseInt(_0x2bf5a1(0x182))/0xa)+parseInt(_0x2bf5a1(0x180))/0xb;if(_0x12b09b===_0x56362f)break;else _0x142845['push'](_0x142845['shift']());}catch(_0xf333ae){_0x142845['push'](_0x142845['shift']());}}}(a286_0x26ad,0x890c4));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x3ab04b=a286_0x4e09,_0x3a4367=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0xe134f2=_0x3a4367?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x3ab04b(0x18b):_0x3ab04b(0x184))}),setUserContext({'id':_0xe134f2?.['id'],'username':_0xe134f2?.[_0x3ab04b(0x18e)],'nickname':_0xe134f2?.[_0x3ab04b(0x18d)],'email':_0xe134f2?.[_0x3ab04b(0x189)],'tenantCode':_0xe134f2?.[_0x3ab04b(0x18f)]?.[_0x3ab04b(0x190)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x3a4367;}function a286_0x4e09(_0xfad47b,_0x405910){_0xfad47b=_0xfad47b-0x180;const _0x26adc1=a286_0x26ad();let _0x4e09c8=_0x26adc1[_0xfad47b];return _0x4e09c8;}function a286_0x26ad(){const _0x252450=['15uBQTmW','2FwEOxV','email','777099wfgNdu','daily','1016212zkiSTp','nickname','username','tenant','tenant_code','7wnwVuy','25869679iNKmyO','320232QHbZqt','30EzQUeq','2385200neaDeX','production','1042810ixEnRL','2697705EaGoYo'];a286_0x26ad=function(){return _0x252450;};return a286_0x26ad();}
1
+ (function(_0x17125e,_0x32dbd5){const _0x2bf619=a287_0x5d1c,_0x3cc71e=_0x17125e();while(!![]){try{const _0x52e94d=parseInt(_0x2bf619(0x149))/0x1+-parseInt(_0x2bf619(0x14c))/0x2+parseInt(_0x2bf619(0x13e))/0x3+-parseInt(_0x2bf619(0x143))/0x4*(-parseInt(_0x2bf619(0x147))/0x5)+-parseInt(_0x2bf619(0x142))/0x6+-parseInt(_0x2bf619(0x146))/0x7+-parseInt(_0x2bf619(0x13f))/0x8*(-parseInt(_0x2bf619(0x145))/0x9);if(_0x52e94d===_0x32dbd5)break;else _0x3cc71e['push'](_0x3cc71e['shift']());}catch(_0x3f2a85){_0x3cc71e['push'](_0x3cc71e['shift']());}}}(a287_0x1f0d,0x89e26));function a287_0x1f0d(){const _0x4408be=['nickname','2031770xaaeou','tenant','2987154grysmc','32ruGoIZ','unknown','daily','2551080QCRXiF','3391068AxvTsg','tenant_code','1498707SjsrDL','6569948tiUjPO','5UDqXQu','email','434826UfuAaL','user'];a287_0x1f0d=function(){return _0x4408be;};return a287_0x1f0d();}import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';function a287_0x5d1c(_0x4183fc,_0x2557be){_0x4183fc=_0x4183fc-0x13e;const _0x1f0d25=a287_0x1f0d();let _0x5d1ccd=_0x1f0d25[_0x4183fc];return _0x5d1ccd;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x3f2850=a287_0x5d1c,_0x261551=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0xb54e09=_0x261551?.[_0x3f2850(0x14a)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x3f2850(0x140)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x3f2850(0x141):'production')}),setUserContext({'id':_0xb54e09?.['id'],'username':_0xb54e09?.['username'],'nickname':_0xb54e09?.[_0x3f2850(0x14b)],'email':_0xb54e09?.[_0x3f2850(0x148)],'tenantCode':_0xb54e09?.[_0x3f2850(0x14d)]?.[_0x3f2850(0x144)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x261551;}
@@ -1 +1 @@
1
- (function(_0x3e7b2c,_0x5da277){const _0xfe0e01=a287_0x1d35,_0x4dd5af=_0x3e7b2c();while(!![]){try{const _0x4156ef=parseInt(_0xfe0e01(0x1be))/0x1*(-parseInt(_0xfe0e01(0x1c3))/0x2)+-parseInt(_0xfe0e01(0x1bb))/0x3+-parseInt(_0xfe0e01(0x1c4))/0x4*(-parseInt(_0xfe0e01(0x1b8))/0x5)+-parseInt(_0xfe0e01(0x1c1))/0x6+-parseInt(_0xfe0e01(0x1b9))/0x7+parseInt(_0xfe0e01(0x1ba))/0x8+-parseInt(_0xfe0e01(0x1c6))/0x9*(-parseInt(_0xfe0e01(0x1bc))/0xa);if(_0x4156ef===_0x5da277)break;else _0x4dd5af['push'](_0x4dd5af['shift']());}catch(_0x12b4b0){_0x4dd5af['push'](_0x4dd5af['shift']());}}}(a287_0x4c7f,0x63e3a));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a287_0x1d35(_0x3bf700,_0x13f2c0){_0x3bf700=_0x3bf700-0x1b8;const _0x4c7fb1=a287_0x4c7f();let _0x1d3538=_0x4c7fb1[_0x3bf700];return _0x1d3538;}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x4990de=a287_0x1d35;process['once'](_0x4990de(0x1bd),()=>{void flushOtelNodeIfUsed();});const _0x479b6a=()=>{void flushOtelNodeIfUsed()['then'](()=>process['exit'](0x0));};process[_0x4990de(0x1c2)](_0x4990de(0x1bf),_0x479b6a),process['once'](_0x4990de(0x1c0),_0x479b6a);}export async function exitWithOtelShutdown(_0x2561a5){const _0x201375=a287_0x1d35;await flushOtelNodeIfUsed(),process[_0x201375(0x1c5)](_0x2561a5);}function a287_0x4c7f(){const _0x291b98=['10MeivWo','4bxKoVx','exit','9deKjaY','3603020gTtmTD','3600247oDMsNj','2138448HnGqgJ','2312562QUenvJ','16389430UfghcQ','beforeExit','146191YBiGEb','SIGINT','SIGTERM','1209462crvygq','once'];a287_0x4c7f=function(){return _0x291b98;};return a287_0x4c7f();}
1
+ (function(_0x167434,_0x10ef06){const _0x22410b=a288_0x2dd5,_0xef733f=_0x167434();while(!![]){try{const _0x1a61a0=parseInt(_0x22410b(0x147))/0x1+-parseInt(_0x22410b(0x144))/0x2*(-parseInt(_0x22410b(0x13d))/0x3)+parseInt(_0x22410b(0x142))/0x4+-parseInt(_0x22410b(0x149))/0x5+-parseInt(_0x22410b(0x13f))/0x6+-parseInt(_0x22410b(0x143))/0x7*(-parseInt(_0x22410b(0x14a))/0x8)+parseInt(_0x22410b(0x14b))/0x9*(-parseInt(_0x22410b(0x145))/0xa);if(_0x1a61a0===_0x10ef06)break;else _0xef733f['push'](_0xef733f['shift']());}catch(_0x4ae0e7){_0xef733f['push'](_0xef733f['shift']());}}}(a288_0x1e07,0xef761));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a288_0x2dd5(_0x1ab2a7,_0x5e7443){_0x1ab2a7=_0x1ab2a7-0x13d;const _0x1e07f1=a288_0x1e07();let _0x2dd51c=_0x1e07f1[_0x1ab2a7];return _0x2dd51c;}function a288_0x1e07(){const _0x20a4e1=['SIGTERM','4809165KsPKcz','418808pHtmYU','675oansXJ','2308899rXwgsQ','SIGINT','4048902xMStHV','exit','then','1632904UnFRUW','91xWDcPd','4VOpExh','89860rthJUb','once','663378aInwDY'];a288_0x1e07=function(){return _0x20a4e1;};return a288_0x1e07();}export function registerOtelShutdownOnExit(){const _0x3d4589=a288_0x2dd5;process[_0x3d4589(0x146)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x2cfd4a=()=>{const _0x455ec9=_0x3d4589;void flushOtelNodeIfUsed()[_0x455ec9(0x141)](()=>process['exit'](0x0));};process[_0x3d4589(0x146)](_0x3d4589(0x13e),_0x2cfd4a),process[_0x3d4589(0x146)](_0x3d4589(0x148),_0x2cfd4a);}export async function exitWithOtelShutdown(_0x4cec70){const _0x522fca=a288_0x2dd5;await flushOtelNodeIfUsed(),process[_0x522fca(0x140)](_0x4cec70);}
@@ -1 +1 @@
1
- (function(_0x516161,_0x4631dd){const _0x45c7d6=a288_0x1d99,_0x52f7b5=_0x516161();while(!![]){try{const _0x331a3b=parseInt(_0x45c7d6(0x8e))/0x1+parseInt(_0x45c7d6(0x91))/0x2+-parseInt(_0x45c7d6(0x90))/0x3+-parseInt(_0x45c7d6(0x8f))/0x4+parseInt(_0x45c7d6(0x97))/0x5+parseInt(_0x45c7d6(0x9a))/0x6+-parseInt(_0x45c7d6(0x98))/0x7*(parseInt(_0x45c7d6(0x94))/0x8);if(_0x331a3b===_0x4631dd)break;else _0x52f7b5['push'](_0x52f7b5['shift']());}catch(_0x380c58){_0x52f7b5['push'](_0x52f7b5['shift']());}}}(a288_0x2f61,0x476fe));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a288_0x1d99(_0x5a8f3f,_0xe4d408){_0x5a8f3f=_0x5a8f3f-0x8e;const _0x2f617e=a288_0x2f61();let _0x1d9984=_0x2f617e[_0x5a8f3f];return _0x1d9984;}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';function a288_0x2f61(){const _0x19f29f=['563486TuDnvD','traceparent','1386120KfhNoQ','575291KyztKE','1896508tbHDOo','1373049ugzqSJ','456078RlNpPS','manual','logData','8RtlCPy','traceName','spanName','1352820acDNdp'];a288_0x2f61=function(){return _0x19f29f;};return a288_0x2f61();}export async function sendCliTraceLog(_0x5591b9){const _0x4a7453=a288_0x1d99;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x5591b9[_0x4a7453(0x95)]??DEFAULT_TRACE_NAME,'version':_0x5591b9['version']??getCliVersion(),'spanName':_0x5591b9[_0x4a7453(0x96)],'eventType':_0x4a7453(0x92),'logData':_0x5591b9[_0x4a7453(0x93)],..._0x5591b9[_0x4a7453(0x99)]&&{'traceparent':_0x5591b9[_0x4a7453(0x99)]}});}
1
+ const a289_0x127fbd=a289_0x2ff7;(function(_0x596ba8,_0x1c7175){const _0x1248e4=a289_0x2ff7,_0x4d8253=_0x596ba8();while(!![]){try{const _0x49ba98=parseInt(_0x1248e4(0xf2))/0x1*(parseInt(_0x1248e4(0xee))/0x2)+-parseInt(_0x1248e4(0xf0))/0x3+-parseInt(_0x1248e4(0xf3))/0x4+parseInt(_0x1248e4(0xfa))/0x5*(-parseInt(_0x1248e4(0xf8))/0x6)+-parseInt(_0x1248e4(0xf9))/0x7*(-parseInt(_0x1248e4(0xf1))/0x8)+parseInt(_0x1248e4(0xed))/0x9+parseInt(_0x1248e4(0xfb))/0xa;if(_0x49ba98===_0x1c7175)break;else _0x4d8253['push'](_0x4d8253['shift']());}catch(_0x2e0a86){_0x4d8253['push'](_0x4d8253['shift']());}}}(a289_0xc397,0x32b23));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a289_0x2ff7(_0x506b11,_0x1b99a2){_0x506b11=_0x506b11-0xed;const _0xc39733=a289_0xc397();let _0x2ff762=_0xc39733[_0x506b11];return _0x2ff762;}import{getCliVersion}from'../utils/version.js';function a289_0xc397(){const _0x1345ac=['spanName','manual','114SRezht','7dvCbgS','15095qiviYp','2049630UqeiMR','logData','1523223tIqcrL','44158KLRjhq','traceName','813519HYnsgg','2171792gkNYkl','11yjzGPp','1409472HXofmc','traceparent','rabetbase-cli'];a289_0xc397=function(){return _0x1345ac;};return a289_0xc397();}const DEFAULT_TRACE_NAME=a289_0x127fbd(0xf5);export async function sendCliTraceLog(_0x572e24){const _0x558e2f=a289_0x127fbd;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x572e24[_0x558e2f(0xef)]??DEFAULT_TRACE_NAME,'version':_0x572e24['version']??getCliVersion(),'spanName':_0x572e24[_0x558e2f(0xf6)],'eventType':_0x558e2f(0xf7),'logData':_0x572e24[_0x558e2f(0xfc)],..._0x572e24[_0x558e2f(0xf4)]&&{'traceparent':_0x572e24[_0x558e2f(0xf4)]}});}
@@ -1 +1 @@
1
- function a289_0x9254(_0x23cb69,_0x27c852){_0x23cb69=_0x23cb69-0x162;const _0x58a3f7=a289_0x58a3();let _0x92543a=_0x58a3f7[_0x23cb69];return _0x92543a;}const a289_0x358b9f=a289_0x9254;(function(_0x1fb4b5,_0x5e6bb0){const _0x4017e7=a289_0x9254,_0x42df15=_0x1fb4b5();while(!![]){try{const _0x45f3bd=parseInt(_0x4017e7(0x16f))/0x1+parseInt(_0x4017e7(0x166))/0x2+parseInt(_0x4017e7(0x16a))/0x3+-parseInt(_0x4017e7(0x16b))/0x4+parseInt(_0x4017e7(0x162))/0x5+-parseInt(_0x4017e7(0x16d))/0x6+-parseInt(_0x4017e7(0x16c))/0x7;if(_0x45f3bd===_0x5e6bb0)break;else _0x42df15['push'](_0x42df15['shift']());}catch(_0xcf53f9){_0x42df15['push'](_0x42df15['shift']());}}}(a289_0x58a3,0x5d820));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a289_0x358b9f(0x169);function a289_0x58a3(){const _0x3fa15f=['sanitize','redactionCount','title','1340462Fioyqj','description','originalBytes','issue.log.collect','1535088dVOWEL','534992gmIeHR','5445993AkfGZc','1499064ygYsDP','join','327706QmJwjo','174830EYxxxI'];a289_0x58a3=function(){return _0x3fa15f;};return a289_0x58a3();}export async function sendPlatformIssueCollectLog(_0x5e5eae){const _0xa2c0bb=a289_0x358b9f;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x5e5eae[_0xa2c0bb(0x165)],'issue.description':_0x5e5eae[_0xa2c0bb(0x167)],..._0x5e5eae[_0xa2c0bb(0x163)]?{'issue.description_original_bytes':_0x5e5eae['sanitize'][_0xa2c0bb(0x168)],'issue.description_truncated':_0x5e5eae[_0xa2c0bb(0x163)]['truncated'],'issue.description_redactions':_0x5e5eae[_0xa2c0bb(0x163)][_0xa2c0bb(0x164)],'issue.description_redaction_kinds':_0x5e5eae['sanitize']['redactionKinds'][_0xa2c0bb(0x16e)](',')}:{}}});}
1
+ const a290_0x2e5ce4=a290_0x3364;(function(_0x262b29,_0x3f7a61){const _0x1e19b4=a290_0x3364,_0x496008=_0x262b29();while(!![]){try{const _0x2c5fba=parseInt(_0x1e19b4(0xb3))/0x1*(-parseInt(_0x1e19b4(0xac))/0x2)+-parseInt(_0x1e19b4(0xb6))/0x3+-parseInt(_0x1e19b4(0xba))/0x4+parseInt(_0x1e19b4(0xb1))/0x5*(parseInt(_0x1e19b4(0xad))/0x6)+-parseInt(_0x1e19b4(0xaf))/0x7+-parseInt(_0x1e19b4(0xb4))/0x8*(-parseInt(_0x1e19b4(0xa9))/0x9)+parseInt(_0x1e19b4(0xb5))/0xa;if(_0x2c5fba===_0x3f7a61)break;else _0x496008['push'](_0x496008['shift']());}catch(_0x3ed1b9){_0x496008['push'](_0x496008['shift']());}}}(a290_0x44ad,0x541b8));function a290_0x3364(_0x377fdf,_0x285022){_0x377fdf=_0x377fdf-0xa8;const _0x44ad9d=a290_0x44ad();let _0x336499=_0x44ad9d[_0x377fdf];return _0x336499;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a290_0x2e5ce4(0xae);export async function sendPlatformIssueCollectLog(_0x199dee){const _0x2e3ad8=a290_0x2e5ce4;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x199dee[_0x2e3ad8(0xb7)],'issue.description':_0x199dee[_0x2e3ad8(0xb2)],..._0x199dee['sanitize']?{'issue.description_original_bytes':_0x199dee[_0x2e3ad8(0xaa)][_0x2e3ad8(0xab)],'issue.description_truncated':_0x199dee[_0x2e3ad8(0xaa)][_0x2e3ad8(0xa8)],'issue.description_redactions':_0x199dee['sanitize'][_0x2e3ad8(0xb8)],'issue.description_redaction_kinds':_0x199dee[_0x2e3ad8(0xaa)][_0x2e3ad8(0xb9)][_0x2e3ad8(0xb0)](',')}:{}}});}function a290_0x44ad(){const _0x20a577=['148FWyKQx','528THjqaD','issue.log.collect','3072090SaqsdP','join','80rorAwM','description','9247PtIXKO','9104XBEUdl','22229930CpmIZT','1294980CnICfN','title','redactionCount','redactionKinds','1837492rrkwGV','truncated','1062kruyzN','sanitize','originalBytes'];a290_0x44ad=function(){return _0x20a577;};return a290_0x44ad();}
@@ -1 +1 @@
1
- const a291_0xaf022b=a291_0x3137;(function(_0xcbb397,_0x4e707c){const _0x5bdf55=a291_0x3137,_0x475ebb=_0xcbb397();while(!![]){try{const _0x442db0=parseInt(_0x5bdf55(0x1d9))/0x1*(parseInt(_0x5bdf55(0x1e6))/0x2)+parseInt(_0x5bdf55(0x1cf))/0x3+-parseInt(_0x5bdf55(0x1ef))/0x4+-parseInt(_0x5bdf55(0x1de))/0x5+parseInt(_0x5bdf55(0x1fa))/0x6+-parseInt(_0x5bdf55(0x1d7))/0x7*(parseInt(_0x5bdf55(0x1d8))/0x8)+parseInt(_0x5bdf55(0x1da))/0x9*(parseInt(_0x5bdf55(0x1f6))/0xa);if(_0x442db0===_0x4e707c)break;else _0x475ebb['push'](_0x475ebb['shift']());}catch(_0x519551){_0x475ebb['push'](_0x475ebb['shift']());}}}(a291_0xee6c,0xce208));export const CORE_IDE_CONFIGS={'cursor':{'name':a291_0xaf022b(0x1e3),'description':'Cursor\x20IDE','folders':[a291_0xaf022b(0x1dc),a291_0xaf022b(0x1d3)],'files':[{'type':a291_0xaf022b(0x1ed),'path':'.cursor/skills/rabetbase.md'}]},'windsurf':{'name':a291_0xaf022b(0x1ea),'description':a291_0xaf022b(0x1e1),'folders':[a291_0xaf022b(0x1f5)],'files':[{'type':a291_0xaf022b(0x1ed),'path':a291_0xaf022b(0x1ec)}]},'claude':{'name':'Claude\x20Code','description':a291_0xaf022b(0x1e4),'folders':[a291_0xaf022b(0x1db)],'files':[{'type':a291_0xaf022b(0x1ed),'path':a291_0xaf022b(0x1e2)}]},'cline':{'name':'Cline','description':a291_0xaf022b(0x1dd),'folders':['.cline'],'files':[{'type':a291_0xaf022b(0x1ed),'path':'.cline/skills/lovrabet/SKILL.md'}]},'codex':{'name':'Codex','description':'Codex\x20IDE','folders':['.codex'],'files':[{'type':a291_0xaf022b(0x1ed),'path':a291_0xaf022b(0x1d0)}]},'opencode':{'name':a291_0xaf022b(0x1f2),'description':a291_0xaf022b(0x1ff),'folders':[a291_0xaf022b(0x1f4)],'files':[{'type':a291_0xaf022b(0x1ed),'path':a291_0xaf022b(0x1e8)}]},'qoder':{'name':a291_0xaf022b(0x1d6),'description':a291_0xaf022b(0x1d5),'folders':[a291_0xaf022b(0x1f8)],'files':[{'type':'file','path':a291_0xaf022b(0x1eb)},{'type':a291_0xaf022b(0x1ed),'path':'.qoder/skills/lovrabet/SKILL.md'}]},'codebuddy':{'name':a291_0xaf022b(0x1fb),'description':'CodeBuddy\x20IDE','folders':['.codebuddy'],'files':[{'type':a291_0xaf022b(0x1ed),'path':a291_0xaf022b(0x1ee)}]},'trae':{'name':a291_0xaf022b(0x1d2),'description':'Trae\x20IDE','folders':['.trae'],'files':[{'type':a291_0xaf022b(0x1ed),'path':a291_0xaf022b(0x1f0)}]}};function a291_0x3137(_0x98bbac,_0x816d48){_0x98bbac=_0x98bbac-0x1cf;const _0xee6ce8=a291_0xee6c();let _0x3137ef=_0xee6ce8[_0x98bbac];return _0x3137ef;}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'Other\x20(generic\x20template)','description':a291_0xaf022b(0x1fe),'folders':[a291_0xaf022b(0x1f3)],'files':[{'type':a291_0xaf022b(0x1ed),'path':a291_0xaf022b(0x1df)}]},'antigravity':{'name':a291_0xaf022b(0x1fd),'description':a291_0xaf022b(0x1d1),'folders':[a291_0xaf022b(0x1f3)],'files':[{'type':a291_0xaf022b(0x1ed),'path':a291_0xaf022b(0x1df)}]}};export const CORE_IDE_LIST=['claude',a291_0xaf022b(0x1d4),a291_0xaf022b(0x1e9),'codex','cursor',a291_0xaf022b(0x1f1),a291_0xaf022b(0x1e5),a291_0xaf022b(0x1e7),'windsurf'];export const IDE_LIST=['antigravity',a291_0xaf022b(0x1e0),a291_0xaf022b(0x1d4),a291_0xaf022b(0x1e9),a291_0xaf022b(0x1fc),'cursor',a291_0xaf022b(0x1f1),a291_0xaf022b(0x1e5),a291_0xaf022b(0x1e7),a291_0xaf022b(0x1f7),'agent'];function a291_0xee6c(){const _0x467b53=['Cline\x20IDE','5953785rXvPKQ','.agent/skills/lovrabet/SKILL.md','claude','Windsurf\x20IDE','.claude/skills/lovrabet/SKILL.md','Cursor','Claude\x20Code','qoder','2738798nmQwjO','trae','.opencode/skills/lovrabet/SKILL.md','codebuddy','Windsurf','.qoder/rules/rabetbase.md','.windsurf/workflows/rabetbase.md','file','.codebuddy/skills/lovrabet/SKILL.md','5217656OJItRT','.trae/skills/lovrabet/SKILL.md','opencode','OpenCode','.agent','.opencode','.windsurf','1410tSctHz','windsurf','.qoder','cursor','7199172clcsTO','CodeBuddy','codex','Antigravity','Generic\x20template\x20fallback','OpenCode\x20IDE','4651728SCttvz','.codex/skills/lovrabet/SKILL.md','Antigravity\x20IDE','Trae','.cursor','cline','Qoder\x20IDE','Qoder','1683731CctvPo','40PexCeU','1RjsieX','26955vOXEvC','.claude','.cursorrules'];a291_0xee6c=function(){return _0x467b53;};return a291_0xee6c();}export const ALL_CORE_IDES=[a291_0xaf022b(0x1f9),a291_0xaf022b(0x1f7),a291_0xaf022b(0x1e0),'cline','codex',a291_0xaf022b(0x1f1),a291_0xaf022b(0x1e5),a291_0xaf022b(0x1e9),'trae'];
1
+ const a292_0x153810=a292_0x5c0d;(function(_0x587976,_0x2ccf70){const _0x3d9169=a292_0x5c0d,_0x3d36df=_0x587976();while(!![]){try{const _0x4af6ab=parseInt(_0x3d9169(0x143))/0x1+parseInt(_0x3d9169(0x151))/0x2*(parseInt(_0x3d9169(0x14c))/0x3)+-parseInt(_0x3d9169(0x137))/0x4*(-parseInt(_0x3d9169(0x136))/0x5)+-parseInt(_0x3d9169(0x14f))/0x6+-parseInt(_0x3d9169(0x153))/0x7+parseInt(_0x3d9169(0x134))/0x8+parseInt(_0x3d9169(0x145))/0x9*(parseInt(_0x3d9169(0x13d))/0xa);if(_0x4af6ab===_0x2ccf70)break;else _0x3d36df['push'](_0x3d36df['shift']());}catch(_0x2c1ce1){_0x3d36df['push'](_0x3d36df['shift']());}}}(a292_0x24ec,0xb9d91));function a292_0x5c0d(_0x5c44f0,_0x24be50){_0x5c44f0=_0x5c44f0-0x124;const _0x24ecc2=a292_0x24ec();let _0x5c0d2b=_0x24ecc2[_0x5c44f0];return _0x5c0d2b;}export const CORE_IDE_CONFIGS={'cursor':{'name':a292_0x153810(0x13c),'description':a292_0x153810(0x130),'folders':[a292_0x153810(0x14e),a292_0x153810(0x14b)],'files':[{'type':'file','path':a292_0x153810(0x12c)}]},'windsurf':{'name':'Windsurf','description':a292_0x153810(0x12a),'folders':[a292_0x153810(0x149)],'files':[{'type':a292_0x153810(0x13f),'path':a292_0x153810(0x127)}]},'claude':{'name':a292_0x153810(0x14d),'description':a292_0x153810(0x14d),'folders':[a292_0x153810(0x152)],'files':[{'type':a292_0x153810(0x13f),'path':'.claude/skills/lovrabet/SKILL.md'}]},'cline':{'name':a292_0x153810(0x147),'description':a292_0x153810(0x141),'folders':[a292_0x153810(0x12b)],'files':[{'type':a292_0x153810(0x13f),'path':'.cline/skills/lovrabet/SKILL.md'}]},'codex':{'name':'Codex','description':a292_0x153810(0x126),'folders':[a292_0x153810(0x12f)],'files':[{'type':a292_0x153810(0x13f),'path':a292_0x153810(0x13b)}]},'opencode':{'name':'OpenCode','description':'OpenCode\x20IDE','folders':[a292_0x153810(0x142)],'files':[{'type':'file','path':'.opencode/skills/lovrabet/SKILL.md'}]},'qoder':{'name':a292_0x153810(0x13a),'description':a292_0x153810(0x150),'folders':['.qoder'],'files':[{'type':a292_0x153810(0x13f),'path':a292_0x153810(0x156)},{'type':a292_0x153810(0x13f),'path':a292_0x153810(0x138)}]},'codebuddy':{'name':a292_0x153810(0x135),'description':'CodeBuddy\x20IDE','folders':[a292_0x153810(0x144)],'files':[{'type':'file','path':a292_0x153810(0x139)}]},'trae':{'name':a292_0x153810(0x133),'description':a292_0x153810(0x148),'folders':['.trae'],'files':[{'type':'file','path':a292_0x153810(0x125)}]}};function a292_0x24ec(){const _0x14c4d2=['Other\x20(generic\x20template)','.trae/skills/lovrabet/SKILL.md','Codex\x20IDE','.windsurf/workflows/rabetbase.md','codebuddy','cursor','Windsurf\x20IDE','.cline','.cursor/skills/rabetbase.md','qoder','trae','.codex','Cursor\x20IDE','.agent','cline','Trae','2882392wsinWd','CodeBuddy','50zALbEy','24776FeHMzw','.qoder/skills/lovrabet/SKILL.md','.codebuddy/skills/lovrabet/SKILL.md','Qoder','.codex/skills/lovrabet/SKILL.md','Cursor','10jSNeLk','windsurf','file','claude','Cline\x20IDE','.opencode','102939oPgvFV','.codebuddy','6199812rfNYjC','.agent/skills/lovrabet/SKILL.md','Cline','Trae\x20IDE','.windsurf','opencode','.cursor','1341201PKQlgg','Claude\x20Code','.cursorrules','5581614LPNhUe','Qoder\x20IDE','4VhRIpC','.claude','2916746fyADBU','Antigravity\x20IDE','Generic\x20template\x20fallback','.qoder/rules/rabetbase.md'];a292_0x24ec=function(){return _0x14c4d2;};return a292_0x24ec();}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a292_0x153810(0x124),'description':a292_0x153810(0x155),'folders':[a292_0x153810(0x131)],'files':[{'type':a292_0x153810(0x13f),'path':a292_0x153810(0x146)}]},'antigravity':{'name':'Antigravity','description':a292_0x153810(0x154),'folders':[a292_0x153810(0x131)],'files':[{'type':'file','path':a292_0x153810(0x146)}]}};export const CORE_IDE_LIST=[a292_0x153810(0x140),a292_0x153810(0x132),a292_0x153810(0x128),'codex',a292_0x153810(0x129),a292_0x153810(0x14a),a292_0x153810(0x12d),'trae','windsurf'];export const IDE_LIST=['antigravity',a292_0x153810(0x140),'cline','codebuddy','codex','cursor','opencode',a292_0x153810(0x12d),a292_0x153810(0x12e),a292_0x153810(0x13e),'agent'];export const ALL_CORE_IDES=[a292_0x153810(0x129),a292_0x153810(0x13e),'claude',a292_0x153810(0x132),'codex',a292_0x153810(0x14a),a292_0x153810(0x12d),'codebuddy',a292_0x153810(0x12e)];
@@ -1 +1 @@
1
- (function(_0x360845,_0x38fd02){const _0x4223ca=a292_0x2aac,_0x46bb1f=_0x360845();while(!![]){try{const _0x1a9b93=-parseInt(_0x4223ca(0xfe))/0x1*(-parseInt(_0x4223ca(0xff))/0x2)+-parseInt(_0x4223ca(0xfc))/0x3*(parseInt(_0x4223ca(0xf8))/0x4)+parseInt(_0x4223ca(0xf9))/0x5*(-parseInt(_0x4223ca(0xf7))/0x6)+-parseInt(_0x4223ca(0xf4))/0x7*(parseInt(_0x4223ca(0xfd))/0x8)+-parseInt(_0x4223ca(0xf5))/0x9+parseInt(_0x4223ca(0xf6))/0xa+parseInt(_0x4223ca(0xfb))/0xb*(parseInt(_0x4223ca(0xfa))/0xc);if(_0x1a9b93===_0x38fd02)break;else _0x46bb1f['push'](_0x46bb1f['shift']());}catch(_0x3236d8){_0x46bb1f['push'](_0x46bb1f['shift']());}}}(a292_0x4dfd,0xb94f8));function a292_0x2aac(_0x289a95,_0x5a899b){_0x289a95=_0x289a95-0xf4;const _0x4dfda4=a292_0x4dfd();let _0x2aac4d=_0x4dfda4[_0x289a95];return _0x2aac4d;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a292_0x4dfd(){const _0x318c52=['21aeAQtV','8ZioWSz','12514pDIdfY','116tIszBD','6773319GFLjQP','11875599psqUvI','2968700QYczHf','5421378GtLYYA','662668QhkPlF','5oANDTj','60xQnion','8990762RScVEg'];a292_0x4dfd=function(){return _0x318c52;};return a292_0x4dfd();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x472b56,_0x3eff98){const _0x1a898c=a293_0x39f2,_0x175331=_0x472b56();while(!![]){try{const _0x380823=-parseInt(_0x1a898c(0x1e8))/0x1*(parseInt(_0x1a898c(0x1e6))/0x2)+-parseInt(_0x1a898c(0x1df))/0x3*(parseInt(_0x1a898c(0x1e7))/0x4)+parseInt(_0x1a898c(0x1e5))/0x5+-parseInt(_0x1a898c(0x1e1))/0x6+-parseInt(_0x1a898c(0x1e4))/0x7*(-parseInt(_0x1a898c(0x1e2))/0x8)+parseInt(_0x1a898c(0x1e3))/0x9+parseInt(_0x1a898c(0x1de))/0xa*(parseInt(_0x1a898c(0x1e0))/0xb);if(_0x380823===_0x3eff98)break;else _0x175331['push'](_0x175331['shift']());}catch(_0x2e39c4){_0x175331['push'](_0x175331['shift']());}}}(a293_0x71be,0x928cb));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a293_0x39f2(_0x1c6faa,_0x1fc619){_0x1c6faa=_0x1c6faa-0x1de;const _0x71be35=a293_0x71be();let _0x39f223=_0x71be35[_0x1c6faa];return _0x39f223;}import{CliErrors}from'../errors.js';function a293_0x71be(){const _0x1b42a3=['16616303ylHHTp','6097704EwHjbD','8KnfREM','3495348BKVMyz','7629174tEwSRk','3242760WzttvH','2458aCcEyJ','4ExYgRo','901jeerDG','10pweetk','2740497AgWVkw'];a293_0x71be=function(){return _0x1b42a3;};return a293_0x71be();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x392ad1,_0x389445){const _0x3e494b=a293_0xe8e5,_0x5881fb=_0x392ad1();while(!![]){try{const _0x52d7d7=parseInt(_0x3e494b(0x124))/0x1*(-parseInt(_0x3e494b(0x127))/0x2)+-parseInt(_0x3e494b(0x12b))/0x3*(-parseInt(_0x3e494b(0x11e))/0x4)+-parseInt(_0x3e494b(0x120))/0x5+-parseInt(_0x3e494b(0x11f))/0x6+-parseInt(_0x3e494b(0x129))/0x7+parseInt(_0x3e494b(0x12d))/0x8+-parseInt(_0x3e494b(0x12e))/0x9*(-parseInt(_0x3e494b(0x128))/0xa);if(_0x52d7d7===_0x389445)break;else _0x5881fb['push'](_0x5881fb['shift']());}catch(_0xe07273){_0x5881fb['push'](_0x5881fb['shift']());}}}(a293_0x4138,0xcf0b3));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x2406a8=a293_0xe8e5,_0x45c094=getTemplateBaseUrl(),_0x497a01=[_0x45c094+'/config.json',_0x45c094+_0x2406a8(0x12a)];for(const _0x30450c of _0x497a01){try{const _0x355174=await fetch(_0x30450c,{'headers':{'Accept':_0x2406a8(0x121)}});if(!_0x355174['ok'])continue;const _0x11e48a=await _0x355174[_0x2406a8(0x126)]();if(!_0x11e48a[_0x2406a8(0x123)]?.['stableVersion']||!_0x11e48a['sdk']?.[_0x2406a8(0x122)]?.[_0x2406a8(0x125)])continue;return _0x11e48a;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a293_0xe8e5(_0x59586b,_0x3d21f8){_0x59586b=_0x59586b-0x11e;const _0x4138c3=a293_0x4138();let _0xe8e5e4=_0x4138c3[_0x59586b];return _0xe8e5e4;}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x36c5a7=a293_0xe8e5,_0x18c003=Date[_0x36c5a7(0x12c)]();if(hasCachedConfig){const _0x20d2cc=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x18c003-cacheTime<_0x20d2cc)return cachedConfig;}const _0x5aa484=await fetchCdnConfig();return cachedConfig=_0x5aa484,cacheTime=_0x18c003,hasCachedConfig=!![],_0x5aa484;}function a293_0x4138(){const _0x47ddec=['now','11726928hOxYTa','2004399HQWSNj','12KEKpXG','6843402kWRUbE','6920795zYovMY','application/json','node','cli','47947ZTekpL','stableVersion','json','54xgHECM','130zpJzhG','9669912IwdjJa','/config/index.json','1687653RNGGSz'];a293_0x4138=function(){return _0x47ddec;};return a293_0x4138();}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ function a294_0x1776(_0x487327,_0x5362bd){_0x487327=_0x487327-0x1ae;const _0x19fe80=a294_0x19fe();let _0x1776ea=_0x19fe80[_0x487327];return _0x1776ea;}(function(_0x176d8f,_0x1381f4){const _0x37efbf=a294_0x1776,_0x55ee7b=_0x176d8f();while(!![]){try{const _0x1eed45=parseInt(_0x37efbf(0x1bd))/0x1*(parseInt(_0x37efbf(0x1ae))/0x2)+-parseInt(_0x37efbf(0x1bf))/0x3*(-parseInt(_0x37efbf(0x1af))/0x4)+-parseInt(_0x37efbf(0x1b9))/0x5+parseInt(_0x37efbf(0x1b5))/0x6*(parseInt(_0x37efbf(0x1ba))/0x7)+-parseInt(_0x37efbf(0x1bb))/0x8*(-parseInt(_0x37efbf(0x1b7))/0x9)+parseInt(_0x37efbf(0x1bc))/0xa*(parseInt(_0x37efbf(0x1b3))/0xb)+-parseInt(_0x37efbf(0x1be))/0xc;if(_0x1eed45===_0x1381f4)break;else _0x55ee7b['push'](_0x55ee7b['shift']());}catch(_0x4ab4c2){_0x55ee7b['push'](_0x55ee7b['shift']());}}}(a294_0x19fe,0xb88a8));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x1dc8fd=a294_0x1776,_0x27402d=getTemplateBaseUrl(),_0x5879f0=[_0x27402d+'/config.json',_0x27402d+_0x1dc8fd(0x1b4)];for(const _0x3b6523 of _0x5879f0){try{const _0x2f2f93=await fetch(_0x3b6523,{'headers':{'Accept':'application/json'}});if(!_0x2f2f93['ok'])continue;const _0x13dc42=await _0x2f2f93[_0x1dc8fd(0x1b0)]();if(!_0x13dc42[_0x1dc8fd(0x1b2)]?.[_0x1dc8fd(0x1b6)]||!_0x13dc42[_0x1dc8fd(0x1b8)]?.['node']?.[_0x1dc8fd(0x1b6)])continue;return _0x13dc42;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a294_0x19fe(){const _0x15a7ad=['3dHsoQx','11690zuJaGA','208404kIIPZW','json','now','cli','19371HDxWlK','/config/index.json','4645164PgPlYI','stableVersion','8275626jlUGfX','sdk','1063290ZvKcaD','7ycSDkR','8pYfPMw','750eDRves','153PNwCgR','21643572AvwnJe'];a294_0x19fe=function(){return _0x15a7ad;};return a294_0x19fe();}let hasCachedConfig=![];export async function getCdnConfig(){const _0x58b96b=a294_0x1776,_0xfb166e=Date[_0x58b96b(0x1b1)]();if(hasCachedConfig){const _0xcb03e3=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xfb166e-cacheTime<_0xcb03e3)return cachedConfig;}const _0x2c6213=await fetchCdnConfig();return cachedConfig=_0x2c6213,cacheTime=_0xfb166e,hasCachedConfig=!![],_0x2c6213;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a294_0x56254a=a294_0x350e;(function(_0x379aee,_0x2c2794){const _0x524bd2=a294_0x350e,_0x465bdb=_0x379aee();while(!![]){try{const _0x546bb9=-parseInt(_0x524bd2(0x105))/0x1*(parseInt(_0x524bd2(0x114))/0x2)+-parseInt(_0x524bd2(0x109))/0x3+parseInt(_0x524bd2(0x107))/0x4+parseInt(_0x524bd2(0x116))/0x5+parseInt(_0x524bd2(0x11b))/0x6*(-parseInt(_0x524bd2(0x118))/0x7)+-parseInt(_0x524bd2(0x11d))/0x8*(parseInt(_0x524bd2(0x11e))/0x9)+parseInt(_0x524bd2(0x113))/0xa;if(_0x546bb9===_0x2c2794)break;else _0x465bdb['push'](_0x465bdb['shift']());}catch(_0x42f7fd){_0x465bdb['push'](_0x465bdb['shift']());}}}(a294_0x4b2f,0x323f9));import a294_0x26eb15 from'node:fs';import a294_0x44518e from'node:path';import a294_0x31f4ec from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a294_0x56254a(0x115);function isNonNumericVersion(_0x18a8e0){const _0x2d41c7=a294_0x56254a,_0x494021=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x494021[_0x2d41c7(0x11c)](_0x31af=>_0x31af[_0x2d41c7(0x103)](_0x18a8e0));}function a294_0x350e(_0x27d3f2,_0x44debe){_0x27d3f2=_0x27d3f2-0xfa;const _0x4b2f1d=a294_0x4b2f();let _0x350eb0=_0x4b2f1d[_0x27d3f2];return _0x350eb0;}function getInstalledVersion(_0x424528,_0x2a0715){const _0x3c5f4c=a294_0x56254a;try{const _0x5c154c=a294_0x44518e[_0x3c5f4c(0x121)](_0x424528,'node_modules',_0x2a0715,'package.json');if(a294_0x26eb15[_0x3c5f4c(0xfb)](_0x5c154c)){const _0x2c7aa4=JSON[_0x3c5f4c(0x117)](a294_0x26eb15['readFileSync'](_0x5c154c,_0x3c5f4c(0x10d)));return _0x2c7aa4['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x1d8820=a294_0x56254a;try{const _0x54b1d4=await getCdnConfig();return _0x54b1d4?.[_0x1d8820(0x11a)]?.[_0x1d8820(0x112)]?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x3a3789=a294_0x56254a;try{const _0x4e802c=await getCdnConfig();return _0x4e802c?.['sdk']?.[_0x3a3789(0x112)]?.[_0x3a3789(0x11f)]||'@lovrabet/sdk';}catch{return _0x3a3789(0x10a);}}export async function checkSdkVersion(_0x2e4815){const _0x2a015d=a294_0x56254a,_0x1d5988=a294_0x44518e[_0x2a015d(0x121)](_0x2e4815,'package.json'),[_0x4b94c4,_0x4c06f8]=await Promise[_0x2a015d(0xfa)]([getSdkStableVersion(),getSdkPackageName()]),_0x129d32=_0x4b94c4||FALLBACK_MIN_SDK_VERSION;if(!a294_0x26eb15['existsSync'](_0x1d5988))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x129d32,'packageName':_0x4c06f8,'stableVersion':_0x4b94c4};try{const _0x55c543=JSON[_0x2a015d(0x117)](a294_0x26eb15['readFileSync'](_0x1d5988,_0x2a015d(0x106))),_0x4894c3=_0x55c543[_0x2a015d(0x10b)]||{},_0x5eb4dd=_0x55c543[_0x2a015d(0x102)]||{},_0xb7bcf9=_0x4894c3[_0x4c06f8]||_0x5eb4dd[_0x4c06f8];if(!_0xb7bcf9)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x129d32,'packageName':_0x4c06f8,'stableVersion':_0x4b94c4};let _0x5e70ea=getInstalledVersion(_0x2e4815,_0x4c06f8);!_0x5e70ea&&(_0x5e70ea=_0xb7bcf9);if(isNonNumericVersion(_0xb7bcf9))return{'installed':!![],'version':_0x5e70ea,'needsUpgrade':![],'minVersion':_0x129d32,'packageName':_0x4c06f8,'stableVersion':_0x4b94c4};const _0x43f2f8=a294_0x31f4ec['coerce'](_0x5e70ea),_0x31d18d=a294_0x31f4ec[_0x2a015d(0x10e)](_0x129d32),_0x4ef6fc=_0x43f2f8&&_0x31d18d?a294_0x31f4ec['lt'](_0x43f2f8,_0x31d18d):![];return{'installed':!![],'version':_0x5e70ea,'needsUpgrade':_0x4ef6fc,'minVersion':_0x129d32,'packageName':_0x4c06f8,'stableVersion':_0x4b94c4};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x129d32,'packageName':_0x4c06f8,'stableVersion':_0x4b94c4};}}function a294_0x4b2f(){const _0x407b7c=['2429928TxBfqS','9lsUgwY','packageName','\x20\x20\x20Stable\x20version:\x20','join','all','existsSync','\x1b[33m','↪\x20SDK\x20update\x20available','version','readFileSync','minVersion','latest','devDependencies','test','\x20\x20\x20Upgrade\x20command:\x20','8MrQyPV','utf8','1208908qBSGMd','package.json','831888CvFuDd','@lovrabet/sdk','dependencies','\x1b[0m','utf-8','coerce','\x20\x20\x20Current\x20version:\x20','npm\x20install\x20','log','node','9847390Cqndoy','51406NoPyFa','1.2.0','359010MfoWne','parse','35AkeHNK','stableVersion','sdk','439548rCThlu','some'];a294_0x4b2f=function(){return _0x407b7c;};return a294_0x4b2f();}export function checkSdkVersionSync(_0x5e65f2){const _0xa4dd59=a294_0x56254a,_0xce179e=a294_0x44518e[_0xa4dd59(0x121)](_0x5e65f2,_0xa4dd59(0x108)),_0x3f8a6a=_0xa4dd59(0x10a);if(!a294_0x26eb15[_0xa4dd59(0xfb)](_0xce179e))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3f8a6a,'stableVersion':null};try{const _0x4497a6=JSON[_0xa4dd59(0x117)](a294_0x26eb15[_0xa4dd59(0xff)](_0xce179e,_0xa4dd59(0x106))),_0x38773a=_0x4497a6[_0xa4dd59(0x10b)]||{},_0x251e98=_0x4497a6[_0xa4dd59(0x102)]||{},_0xe049d9=_0x38773a[_0x3f8a6a]||_0x251e98[_0x3f8a6a];if(!_0xe049d9)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3f8a6a,'stableVersion':null};let _0x4e5820=getInstalledVersion(_0x5e65f2,_0x3f8a6a);!_0x4e5820&&(_0x4e5820=_0xe049d9);if(isNonNumericVersion(_0xe049d9))return{'installed':!![],'version':_0x4e5820,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3f8a6a,'stableVersion':null};const _0x483567=a294_0x31f4ec[_0xa4dd59(0x10e)](_0x4e5820),_0x4b31bc=_0x483567?a294_0x31f4ec['lt'](_0x483567,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x4e5820,'needsUpgrade':_0x4b31bc,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3f8a6a,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3f8a6a,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x10601d){const _0x4684e6=a294_0x56254a;if(!_0x10601d['needsUpgrade'])return;const _0x95ba93=_0x4684e6(0xfc),_0x401014=_0x4684e6(0x10c),_0x13db93='\x1b[1m',_0x35d088=_0x10601d[_0x4684e6(0x11f)]||'@lovrabet/sdk',_0x4a706b=_0x10601d[_0x4684e6(0x119)]||_0x10601d[_0x4684e6(0x100)],_0x24e077=_0x4684e6(0x110)+_0x35d088+'@'+(_0x4a706b||_0x4684e6(0x101));console['log'](),console[_0x4684e6(0x111)](''+_0x95ba93+_0x13db93+_0x4684e6(0xfd)+_0x401014),console['log'](_0x95ba93+_0x4684e6(0x10f)+_0x35d088+'@'+_0x10601d[_0x4684e6(0xfe)]+_0x401014),console[_0x4684e6(0x111)](_0x95ba93+_0x4684e6(0x120)+_0x4a706b+_0x401014),console[_0x4684e6(0x111)](_0x95ba93+_0x4684e6(0x104)+_0x24e077+_0x401014),console[_0x4684e6(0x111)]();}
1
+ const a295_0x3c5df4=a295_0x4d8f;(function(_0x20c634,_0x5460d4){const _0x176597=a295_0x4d8f,_0x159ead=_0x20c634();while(!![]){try{const _0x5d8ec3=-parseInt(_0x176597(0x6e))/0x1+-parseInt(_0x176597(0x86))/0x2+parseInt(_0x176597(0x85))/0x3+parseInt(_0x176597(0x8b))/0x4*(-parseInt(_0x176597(0x6c))/0x5)+parseInt(_0x176597(0x79))/0x6*(parseInt(_0x176597(0x70))/0x7)+-parseInt(_0x176597(0x80))/0x8+-parseInt(_0x176597(0x7f))/0x9*(-parseInt(_0x176597(0x7b))/0xa);if(_0x5d8ec3===_0x5460d4)break;else _0x159ead['push'](_0x159ead['shift']());}catch(_0x15ed20){_0x159ead['push'](_0x159ead['shift']());}}}(a295_0x5a5e,0x3a313));import a295_0x46e284 from'node:fs';import a295_0x4da53e from'node:path';import a295_0x55ff6e from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a295_0x3c5df4(0x8c);function a295_0x4d8f(_0x302aa5,_0x5686e9){_0x302aa5=_0x302aa5-0x67;const _0x5a5eb6=a295_0x5a5e();let _0x4d8f05=_0x5a5eb6[_0x302aa5];return _0x4d8f05;}function a295_0x5a5e(){const _0x14f855=['\x1b[1m','3585105pdttPw','3448024glYReF','dependencies','all','utf8','test','1348443JpnQiO','432858YdhpIO','node','package.json','stableVersion','version','23972kApUVS','1.2.0','sdk','coerce','log','@lovrabet/sdk','\x20\x20\x20Stable\x20version:\x20','130ibwUgb','devDependencies','224022SnecmL','readFileSync','7VxrCKR','latest','some','existsSync','\x1b[33m','\x1b[0m','needsUpgrade','parse','packageName','2506806eEfOpk','minVersion','10PZKFUD','npm\x20install\x20','join'];a295_0x5a5e=function(){return _0x14f855;};return a295_0x5a5e();}function isNonNumericVersion(_0x3e98d1){const _0x1109aa=a295_0x3c5df4,_0x249896=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x249896[_0x1109aa(0x72)](_0x30b1a9=>_0x30b1a9[_0x1109aa(0x84)](_0x3e98d1));}function getInstalledVersion(_0x309452,_0x14ddd0){const _0x49a306=a295_0x3c5df4;try{const _0x2a652c=a295_0x4da53e[_0x49a306(0x7d)](_0x309452,'node_modules',_0x14ddd0,_0x49a306(0x88));if(a295_0x46e284[_0x49a306(0x73)](_0x2a652c)){const _0x17db43=JSON[_0x49a306(0x77)](a295_0x46e284[_0x49a306(0x6f)](_0x2a652c,'utf-8'));return _0x17db43[_0x49a306(0x8a)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x1c5ce8=a295_0x3c5df4;try{const _0x874360=await getCdnConfig();return _0x874360?.['sdk']?.[_0x1c5ce8(0x87)]?.[_0x1c5ce8(0x89)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x4d3475=a295_0x3c5df4;try{const _0x3a3a82=await getCdnConfig();return _0x3a3a82?.[_0x4d3475(0x67)]?.['node']?.[_0x4d3475(0x78)]||_0x4d3475(0x6a);}catch{return _0x4d3475(0x6a);}}export async function checkSdkVersion(_0x55c306){const _0x363a5a=a295_0x3c5df4,_0x1c958b=a295_0x4da53e[_0x363a5a(0x7d)](_0x55c306,_0x363a5a(0x88)),[_0x36f6e9,_0x25e126]=await Promise[_0x363a5a(0x82)]([getSdkStableVersion(),getSdkPackageName()]),_0x13e3b5=_0x36f6e9||FALLBACK_MIN_SDK_VERSION;if(!a295_0x46e284[_0x363a5a(0x73)](_0x1c958b))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x13e3b5,'packageName':_0x25e126,'stableVersion':_0x36f6e9};try{const _0x200446=JSON[_0x363a5a(0x77)](a295_0x46e284['readFileSync'](_0x1c958b,_0x363a5a(0x83))),_0x31d110=_0x200446['dependencies']||{},_0x5aded9=_0x200446[_0x363a5a(0x6d)]||{},_0x19b1d0=_0x31d110[_0x25e126]||_0x5aded9[_0x25e126];if(!_0x19b1d0)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x13e3b5,'packageName':_0x25e126,'stableVersion':_0x36f6e9};let _0x5089b2=getInstalledVersion(_0x55c306,_0x25e126);!_0x5089b2&&(_0x5089b2=_0x19b1d0);if(isNonNumericVersion(_0x19b1d0))return{'installed':!![],'version':_0x5089b2,'needsUpgrade':![],'minVersion':_0x13e3b5,'packageName':_0x25e126,'stableVersion':_0x36f6e9};const _0x4ed68f=a295_0x55ff6e['coerce'](_0x5089b2),_0x410c64=a295_0x55ff6e[_0x363a5a(0x68)](_0x13e3b5),_0x559f40=_0x4ed68f&&_0x410c64?a295_0x55ff6e['lt'](_0x4ed68f,_0x410c64):![];return{'installed':!![],'version':_0x5089b2,'needsUpgrade':_0x559f40,'minVersion':_0x13e3b5,'packageName':_0x25e126,'stableVersion':_0x36f6e9};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x13e3b5,'packageName':_0x25e126,'stableVersion':_0x36f6e9};}}export function checkSdkVersionSync(_0x11846a){const _0x2287bd=a295_0x3c5df4,_0x24422e=a295_0x4da53e[_0x2287bd(0x7d)](_0x11846a,'package.json'),_0x5d938e=_0x2287bd(0x6a);if(!a295_0x46e284[_0x2287bd(0x73)](_0x24422e))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5d938e,'stableVersion':null};try{const _0x5048c0=JSON[_0x2287bd(0x77)](a295_0x46e284['readFileSync'](_0x24422e,_0x2287bd(0x83))),_0x59e366=_0x5048c0[_0x2287bd(0x81)]||{},_0x39c295=_0x5048c0[_0x2287bd(0x6d)]||{},_0x1dfe63=_0x59e366[_0x5d938e]||_0x39c295[_0x5d938e];if(!_0x1dfe63)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5d938e,'stableVersion':null};let _0x2bb956=getInstalledVersion(_0x11846a,_0x5d938e);!_0x2bb956&&(_0x2bb956=_0x1dfe63);if(isNonNumericVersion(_0x1dfe63))return{'installed':!![],'version':_0x2bb956,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5d938e,'stableVersion':null};const _0x1af262=a295_0x55ff6e['coerce'](_0x2bb956),_0x49da61=_0x1af262?a295_0x55ff6e['lt'](_0x1af262,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x2bb956,'needsUpgrade':_0x49da61,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5d938e,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5d938e,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x5f57da){const _0x32a5cb=a295_0x3c5df4;if(!_0x5f57da[_0x32a5cb(0x76)])return;const _0x456927=_0x32a5cb(0x74),_0x27745a=_0x32a5cb(0x75),_0x54cbf4=_0x32a5cb(0x7e),_0x1286d9=_0x5f57da['packageName']||_0x32a5cb(0x6a),_0x5a3278=_0x5f57da[_0x32a5cb(0x89)]||_0x5f57da[_0x32a5cb(0x7a)],_0xc2e6b=_0x32a5cb(0x7c)+_0x1286d9+'@'+(_0x5a3278||_0x32a5cb(0x71));console[_0x32a5cb(0x69)](),console[_0x32a5cb(0x69)](''+_0x456927+_0x54cbf4+'↪\x20SDK\x20update\x20available'+_0x27745a),console[_0x32a5cb(0x69)](_0x456927+'\x20\x20\x20Current\x20version:\x20'+_0x1286d9+'@'+_0x5f57da[_0x32a5cb(0x8a)]+_0x27745a),console['log'](_0x456927+_0x32a5cb(0x6b)+_0x5a3278+_0x27745a),console[_0x32a5cb(0x69)](_0x456927+'\x20\x20\x20Upgrade\x20command:\x20'+_0xc2e6b+_0x27745a),console['log']();}
@@ -1 +1 @@
1
- (function(_0x17ab59,_0x2396aa){const _0x59b1b5=a295_0x460e,_0x170cc1=_0x17ab59();while(!![]){try{const _0x4a9bd3=-parseInt(_0x59b1b5(0x16e))/0x1*(-parseInt(_0x59b1b5(0x189))/0x2)+-parseInt(_0x59b1b5(0x170))/0x3+parseInt(_0x59b1b5(0x176))/0x4*(parseInt(_0x59b1b5(0x191))/0x5)+-parseInt(_0x59b1b5(0x17e))/0x6+parseInt(_0x59b1b5(0x188))/0x7+-parseInt(_0x59b1b5(0x187))/0x8*(parseInt(_0x59b1b5(0x177))/0x9)+parseInt(_0x59b1b5(0x192))/0xa;if(_0x4a9bd3===_0x2396aa)break;else _0x170cc1['push'](_0x170cc1['shift']());}catch(_0x487ec4){_0x170cc1['push'](_0x170cc1['shift']());}}}(a295_0x5511,0x9b47d));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a295_0x460e(_0x3fca89,_0x39b15a){_0x3fca89=_0x3fca89-0x16e;const _0x55111e=a295_0x5511();let _0x460e6e=_0x55111e[_0x3fca89];return _0x460e6e;}import{fileURLToPath}from'node:url';import a295_0x2ccb49 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a295_0x5511(){const _0xf6ad5=['join','↪\x20Critical\x20CLI\x20upgrade\x20required','\x1b[33m','coerce','1984akPPzI','1540315lrKcrS','37240gyutZX','stableVersion','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','\x1b[31m','\x20\x20\x20Stable\x20version:\x20','filter','belowMinimum','minimumVersion','3240qIjZyq','20248720keNxUX','npm\x20install\x20-g\x20','needsUpgrade','Upgrade\x20command:\x20','↪\x20New\x20version\x20available','6bbvdGY','log','2119437AlBMKZ','\x20\x20\x20Current\x20CLI\x20version:\x20','Minimum\x20supported:\x20','upgradeMessage','package.json','minimumVersionMessage','5516qnYzOH','29466ixrvwJ','utf-8','version','latest','currentVersion','validation','parse','6574614PYBWAV','1.0.0','\x20\x20\x20Minimum\x20supported:\x20','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20'];a295_0x5511=function(){return _0xf6ad5;};return a295_0x5511();}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x5b768b){const _0x3370b2=a295_0x460e,_0x11d8c5=_0x5b768b[_0x3370b2(0x18a)]||_0x3370b2(0x17a);return _0x3370b2(0x193)+NPM_PACKAGE_NAME+'@'+_0x11d8c5;}function getCurrentCliVersion(){const _0x43e438=a295_0x460e;try{const _0x1fa73a=fileURLToPath(import.meta.url),_0x15d8e7=resolve(dirname(_0x1fa73a),'../..'),_0x3e6022=resolve(_0x15d8e7,_0x43e438(0x174)),_0x5d28d5=JSON[_0x43e438(0x17d)](readFileSync(_0x3e6022,_0x43e438(0x178)));return _0x5d28d5[_0x43e438(0x179)]||'1.0.0';}catch{return _0x43e438(0x17f);}}export async function checkCliVersion(){const _0x589117=a295_0x460e,_0x561117=getCurrentCliVersion(),_0x48a812=await getCliVersionPolicy(),_0x3698f6=_0x48a812?.['stableVersion']||null,_0x446b21=_0x48a812?.[_0x589117(0x190)]||null;let _0xd31667=![],_0x264ac2=![];const _0x4e1fd9=a295_0x2ccb49['coerce'](_0x561117);if(_0x4e1fd9&&_0x3698f6)try{const _0xdc8de8=a295_0x2ccb49[_0x589117(0x186)](_0x3698f6);if(_0xdc8de8)_0xd31667=a295_0x2ccb49['lt'](_0x4e1fd9,_0xdc8de8);}catch{}if(_0x4e1fd9&&_0x446b21)try{const _0x47bc05=a295_0x2ccb49[_0x589117(0x186)](_0x446b21);if(_0x47bc05)_0x264ac2=a295_0x2ccb49['lt'](_0x4e1fd9,_0x47bc05);}catch{}return _0x264ac2&&(_0xd31667=!![]),{'currentVersion':_0x561117,'stableVersion':_0x3698f6,'minimumVersion':_0x446b21,'needsUpgrade':_0xd31667,'belowMinimum':_0x264ac2,'isPreRelease':![],'upgradeMessage':_0x48a812?.[_0x589117(0x173)],'minimumVersionMessage':_0x48a812?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x3fb9f6){const _0x34e2c1=a295_0x460e;if(!_0x3fb9f6[_0x34e2c1(0x194)]&&!_0x3fb9f6[_0x34e2c1(0x18f)])return;const _0x4d3efa=_0x34e2c1(0x18c),_0x330e48=_0x34e2c1(0x185),_0x41b425='\x1b[0m',_0x24a59d='\x1b[1m',_0x173afb=getCliUpgradeCommand(_0x3fb9f6);console['log'](),_0x3fb9f6[_0x34e2c1(0x18f)]?(console['log'](''+_0x4d3efa+_0x24a59d+_0x34e2c1(0x184)+_0x41b425),console['log'](_0x4d3efa+_0x34e2c1(0x171)+_0x3fb9f6[_0x34e2c1(0x17b)]+_0x41b425),_0x3fb9f6['minimumVersion']&&console[_0x34e2c1(0x16f)](_0x4d3efa+_0x34e2c1(0x180)+_0x3fb9f6['minimumVersion']+_0x41b425),_0x3fb9f6['stableVersion']&&_0x3fb9f6[_0x34e2c1(0x18a)]!==_0x3fb9f6[_0x34e2c1(0x190)]&&console['log'](_0x4d3efa+'\x20\x20\x20Recommended\x20stable:\x20'+_0x3fb9f6[_0x34e2c1(0x18a)]+_0x41b425),_0x3fb9f6[_0x34e2c1(0x175)]&&console[_0x34e2c1(0x16f)](_0x4d3efa+_0x34e2c1(0x182)+_0x3fb9f6[_0x34e2c1(0x175)]+_0x41b425),console[_0x34e2c1(0x16f)](_0x4d3efa+_0x34e2c1(0x181)+_0x173afb+_0x41b425)):(console['log'](''+_0x330e48+_0x24a59d+_0x34e2c1(0x196)+_0x41b425),console[_0x34e2c1(0x16f)](_0x330e48+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x3fb9f6['currentVersion']+_0x41b425),console[_0x34e2c1(0x16f)](_0x330e48+_0x34e2c1(0x18d)+_0x3fb9f6[_0x34e2c1(0x18a)]+_0x41b425),_0x3fb9f6[_0x34e2c1(0x173)]&&console[_0x34e2c1(0x16f)](_0x330e48+_0x34e2c1(0x182)+_0x3fb9f6[_0x34e2c1(0x173)]+_0x41b425),console[_0x34e2c1(0x16f)](_0x330e48+_0x34e2c1(0x181)+_0x173afb+_0x41b425)),console[_0x34e2c1(0x16f)]();}export function assertCliVersionSupported(_0x24c333){const _0x2cbc40=a295_0x460e;if(!_0x24c333[_0x2cbc40(0x18f)])return;const _0x49fa01=[_0x24c333[_0x2cbc40(0x175)],'Current\x20version:\x20'+_0x24c333[_0x2cbc40(0x17b)],_0x24c333[_0x2cbc40(0x190)]?_0x2cbc40(0x172)+_0x24c333[_0x2cbc40(0x190)]:null,_0x2cbc40(0x195)+getCliUpgradeCommand(_0x24c333)][_0x2cbc40(0x18e)](Boolean)[_0x2cbc40(0x183)]('\x0a');throw CliErrors[_0x2cbc40(0x17c)](_0x2cbc40(0x18b),_0x49fa01);}
1
+ (function(_0x1b4a95,_0x17240a){const _0x455c90=a296_0x4c41,_0x2d5349=_0x1b4a95();while(!![]){try{const _0x30b14b=-parseInt(_0x455c90(0x129))/0x1+-parseInt(_0x455c90(0x116))/0x2+-parseInt(_0x455c90(0x120))/0x3*(parseInt(_0x455c90(0x135))/0x4)+parseInt(_0x455c90(0x121))/0x5+parseInt(_0x455c90(0x124))/0x6*(parseInt(_0x455c90(0x126))/0x7)+-parseInt(_0x455c90(0x13c))/0x8*(-parseInt(_0x455c90(0x119))/0x9)+parseInt(_0x455c90(0x118))/0xa;if(_0x30b14b===_0x17240a)break;else _0x2d5349['push'](_0x2d5349['shift']());}catch(_0x18522c){_0x2d5349['push'](_0x2d5349['shift']());}}}(a296_0x3ae0,0x7ea6c));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a296_0x11ec8e from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a296_0x3ae0(){const _0x46319f=['\x1b[33m','\x1b[0m','\x20\x20\x20Recommended\x20stable:\x20','\x1b[1m','589216ZlmTqU','stableVersion','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','version','minimumVersionMessage','6380vtZIdV','needsUpgrade','7874730pvPlLO','99cyhOLa','\x20\x20\x20Current\x20CLI\x20version:\x20','coerce','↪\x20New\x20version\x20available','\x20\x20\x20Minimum\x20supported:\x20','currentVersion','npm\x20install\x20-g\x20','10191FIdyVc','3084180wiNgNi','log','belowMinimum','662652ebeBVi','Minimum\x20supported:\x20','14zUepbr','\x1b[31m','Current\x20version:\x20','921487xinKII','\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20Upgrade\x20command:\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','../..','\x20\x20\x20','minimumVersion','upgradeMessage','package.json','validation','parse','filter','1168ihvdpE','1.0.0','utf-8'];a296_0x3ae0=function(){return _0x46319f;};return a296_0x3ae0();}function a296_0x4c41(_0x2187c7,_0x2cdc2a){_0x2187c7=_0x2187c7-0x116;const _0x3ae081=a296_0x3ae0();let _0x4c41da=_0x3ae081[_0x2187c7];return _0x4c41da;}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x4a3ea7){const _0x46018a=a296_0x4c41,_0x12e784=_0x4a3ea7[_0x46018a(0x13d)]||'latest';return _0x46018a(0x11f)+NPM_PACKAGE_NAME+'@'+_0x12e784;}function getCurrentCliVersion(){const _0x41f3bf=a296_0x4c41;try{const _0x294976=fileURLToPath(import.meta.url),_0x505b90=resolve(dirname(_0x294976),_0x41f3bf(0x12d)),_0x552e=resolve(_0x505b90,_0x41f3bf(0x131)),_0x345578=JSON[_0x41f3bf(0x133)](readFileSync(_0x552e,_0x41f3bf(0x137)));return _0x345578[_0x41f3bf(0x13f)]||_0x41f3bf(0x136);}catch{return _0x41f3bf(0x136);}}export async function checkCliVersion(){const _0x182204=a296_0x4c41,_0x1d4e42=getCurrentCliVersion(),_0x5d790b=await getCliVersionPolicy(),_0x4a49f1=_0x5d790b?.[_0x182204(0x13d)]||null,_0x553f36=_0x5d790b?.[_0x182204(0x12f)]||null;let _0x39c94f=![],_0x4d09e4=![];const _0x24fb0d=a296_0x11ec8e['coerce'](_0x1d4e42);if(_0x24fb0d&&_0x4a49f1)try{const _0x282e11=a296_0x11ec8e['coerce'](_0x4a49f1);if(_0x282e11)_0x39c94f=a296_0x11ec8e['lt'](_0x24fb0d,_0x282e11);}catch{}if(_0x24fb0d&&_0x553f36)try{const _0x92ab8f=a296_0x11ec8e[_0x182204(0x11b)](_0x553f36);if(_0x92ab8f)_0x4d09e4=a296_0x11ec8e['lt'](_0x24fb0d,_0x92ab8f);}catch{}return _0x4d09e4&&(_0x39c94f=!![]),{'currentVersion':_0x1d4e42,'stableVersion':_0x4a49f1,'minimumVersion':_0x553f36,'needsUpgrade':_0x39c94f,'belowMinimum':_0x4d09e4,'isPreRelease':![],'upgradeMessage':_0x5d790b?.[_0x182204(0x130)],'minimumVersionMessage':_0x5d790b?.[_0x182204(0x140)]};}export function printCliUpgradeWarning(_0x568ba8){const _0x1e1ebe=a296_0x4c41;if(!_0x568ba8[_0x1e1ebe(0x117)]&&!_0x568ba8[_0x1e1ebe(0x123)])return;const _0x4b4207=_0x1e1ebe(0x127),_0x1d7edb=_0x1e1ebe(0x138),_0x2df6e9=_0x1e1ebe(0x139),_0x593bac=_0x1e1ebe(0x13b),_0x4a7450=getCliUpgradeCommand(_0x568ba8);console['log'](),_0x568ba8[_0x1e1ebe(0x123)]?(console[_0x1e1ebe(0x122)](''+_0x4b4207+_0x593bac+_0x1e1ebe(0x12c)+_0x2df6e9),console['log'](_0x4b4207+_0x1e1ebe(0x11a)+_0x568ba8['currentVersion']+_0x2df6e9),_0x568ba8[_0x1e1ebe(0x12f)]&&console[_0x1e1ebe(0x122)](_0x4b4207+_0x1e1ebe(0x11d)+_0x568ba8[_0x1e1ebe(0x12f)]+_0x2df6e9),_0x568ba8['stableVersion']&&_0x568ba8['stableVersion']!==_0x568ba8['minimumVersion']&&console['log'](_0x4b4207+_0x1e1ebe(0x13a)+_0x568ba8[_0x1e1ebe(0x13d)]+_0x2df6e9),_0x568ba8[_0x1e1ebe(0x140)]&&console[_0x1e1ebe(0x122)](_0x4b4207+_0x1e1ebe(0x12e)+_0x568ba8[_0x1e1ebe(0x140)]+_0x2df6e9),console[_0x1e1ebe(0x122)](_0x4b4207+'\x20\x20\x20Upgrade\x20command:\x20'+_0x4a7450+_0x2df6e9)):(console[_0x1e1ebe(0x122)](''+_0x1d7edb+_0x593bac+_0x1e1ebe(0x11c)+_0x2df6e9),console[_0x1e1ebe(0x122)](_0x1d7edb+_0x1e1ebe(0x11a)+_0x568ba8[_0x1e1ebe(0x11e)]+_0x2df6e9),console[_0x1e1ebe(0x122)](_0x1d7edb+_0x1e1ebe(0x12a)+_0x568ba8[_0x1e1ebe(0x13d)]+_0x2df6e9),_0x568ba8['upgradeMessage']&&console[_0x1e1ebe(0x122)](_0x1d7edb+_0x1e1ebe(0x12e)+_0x568ba8['upgradeMessage']+_0x2df6e9),console[_0x1e1ebe(0x122)](_0x1d7edb+_0x1e1ebe(0x12b)+_0x4a7450+_0x2df6e9)),console[_0x1e1ebe(0x122)]();}export function assertCliVersionSupported(_0x26cfc6){const _0x1464fd=a296_0x4c41;if(!_0x26cfc6[_0x1464fd(0x123)])return;const _0x3b266a=[_0x26cfc6[_0x1464fd(0x140)],_0x1464fd(0x128)+_0x26cfc6['currentVersion'],_0x26cfc6[_0x1464fd(0x12f)]?_0x1464fd(0x125)+_0x26cfc6['minimumVersion']:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x26cfc6)][_0x1464fd(0x134)](Boolean)['join']('\x0a');throw CliErrors[_0x1464fd(0x132)](_0x1464fd(0x13e),_0x3b266a);}