@lovrabet/rabetbase-cli 2.5.4-beta.1 → 2.5.4-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (372) hide show
  1. package/README.md +4 -3
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/api-group.js +1 -1
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.js +1 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/api/legacy-api-file.js +1 -1
  8. package/lib/api/model-registry-file.js +1 -1
  9. package/lib/api/model-registry-scaffold.js +1 -1
  10. package/lib/api/model-source.js +1 -1
  11. package/lib/auth/auth-server-ui.js +1 -1
  12. package/lib/auth/auth-server.js +1 -1
  13. package/lib/auth/constant.js +1 -1
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.js +1 -1
  16. package/lib/auth/is-session-valid.js +1 -1
  17. package/lib/auth/login-success-html.js +1 -1
  18. package/lib/auth/logout.js +1 -1
  19. package/lib/cli-flags.js +1 -1
  20. package/lib/cli.js +1 -1
  21. package/lib/commands/api/generate.js +1 -1
  22. package/lib/commands/api/index.js +1 -1
  23. package/lib/commands/api/list.js +1 -1
  24. package/lib/commands/api/pull.js +1 -1
  25. package/lib/commands/api/shared.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.d.ts +1 -1
  63. package/lib/commands/config/init.js +1 -1
  64. package/lib/commands/config/list.js +1 -1
  65. package/lib/commands/config/set.js +1 -1
  66. package/lib/commands/config/shared.js +1 -1
  67. package/lib/commands/dataset/batch-design.js +1 -1
  68. package/lib/commands/dataset/business-group-update.js +1 -1
  69. package/lib/commands/dataset/business-groups.js +1 -1
  70. package/lib/commands/dataset/capability.js +1 -1
  71. package/lib/commands/dataset/cross-relation-create.js +1 -1
  72. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  73. package/lib/commands/dataset/cross-relation-list.js +1 -1
  74. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  75. package/lib/commands/dataset/cross-relation-update.js +1 -1
  76. package/lib/commands/dataset/delete.js +1 -1
  77. package/lib/commands/dataset/detail.js +1 -1
  78. package/lib/commands/dataset/extend-update.js +1 -1
  79. package/lib/commands/dataset/field-restore.js +1 -1
  80. package/lib/commands/dataset/field-update.js +1 -1
  81. package/lib/commands/dataset/generate.js +1 -1
  82. package/lib/commands/dataset/index.js +1 -1
  83. package/lib/commands/dataset/list.js +1 -1
  84. package/lib/commands/dataset/operations.js +1 -1
  85. package/lib/commands/dataset/relation-audit.js +1 -1
  86. package/lib/commands/dataset/relation-create.js +1 -1
  87. package/lib/commands/dataset/relation-delete.js +1 -1
  88. package/lib/commands/dataset/relation-shared.js +1 -1
  89. package/lib/commands/dataset/relation-update.js +1 -1
  90. package/lib/commands/dataset/relations.js +1 -1
  91. package/lib/commands/dataset/rename.js +1 -1
  92. package/lib/commands/dataset/restore.js +1 -1
  93. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  94. package/lib/commands/db/analysis-batching.js +1 -1
  95. package/lib/commands/db/analyze-batch-plan.js +1 -1
  96. package/lib/commands/db/analyze-cancel.js +1 -1
  97. package/lib/commands/db/analyze-start.js +1 -1
  98. package/lib/commands/db/analyze-status.js +1 -1
  99. package/lib/commands/db/create.js +1 -1
  100. package/lib/commands/db/delete.js +1 -1
  101. package/lib/commands/db/detail.js +1 -1
  102. package/lib/commands/db/diff-refresh-start.js +1 -1
  103. package/lib/commands/db/diff-refresh-status.js +1 -1
  104. package/lib/commands/db/diff.js +1 -1
  105. package/lib/commands/db/index.js +1 -1
  106. package/lib/commands/db/list.js +1 -1
  107. package/lib/commands/db/shared.js +1 -1
  108. package/lib/commands/db/table-diff-shared.js +1 -1
  109. package/lib/commands/db/tables.js +1 -1
  110. package/lib/commands/db/test.js +1 -1
  111. package/lib/commands/db/update.js +1 -1
  112. package/lib/commands/deployment/index.js +1 -1
  113. package/lib/commands/deployment/sync-all.js +1 -1
  114. package/lib/commands/deployment/sync-jobs.js +1 -1
  115. package/lib/commands/deployment/sync-status.js +1 -1
  116. package/lib/commands/doctor.js +1 -1
  117. package/lib/commands/file/index.js +1 -1
  118. package/lib/commands/flow/create.js +1 -1
  119. package/lib/commands/flow/detail.js +1 -1
  120. package/lib/commands/flow/index.js +1 -1
  121. package/lib/commands/flow/list.js +1 -1
  122. package/lib/commands/flow/publish.js +1 -1
  123. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  124. package/lib/commands/flow/runtime-role-list.js +1 -1
  125. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  126. package/lib/commands/flow/runtime-user-search.js +1 -1
  127. package/lib/commands/flow/shared.js +1 -1
  128. package/lib/commands/flow/update.js +1 -1
  129. package/lib/commands/flow/validate.js +1 -1
  130. package/lib/commands/instant-api-policy/current.js +1 -1
  131. package/lib/commands/instant-api-policy/index.js +1 -1
  132. package/lib/commands/instant-api-policy/init.js +1 -1
  133. package/lib/commands/instant-api-policy/publish.js +1 -1
  134. package/lib/commands/instant-api-policy/pull.js +1 -1
  135. package/lib/commands/instant-api-policy/revision.js +1 -1
  136. package/lib/commands/instant-api-policy/revisions.js +1 -1
  137. package/lib/commands/instant-api-policy/rollback.js +1 -1
  138. package/lib/commands/instant-api-policy/shared.js +1 -1
  139. package/lib/commands/instant-api-policy/validate.js +1 -1
  140. package/lib/commands/issue/index.js +1 -1
  141. package/lib/commands/issue/nudge.js +1 -1
  142. package/lib/commands/issue/report.js +1 -1
  143. package/lib/commands/issue/shared.js +1 -1
  144. package/lib/commands/kb/create.js +1 -1
  145. package/lib/commands/kb/delete.js +1 -1
  146. package/lib/commands/kb/detail.js +1 -1
  147. package/lib/commands/kb/index.js +1 -1
  148. package/lib/commands/kb/list.js +1 -1
  149. package/lib/commands/kb/search.js +1 -1
  150. package/lib/commands/kb/shared.js +1 -1
  151. package/lib/commands/kb/update.js +1 -1
  152. package/lib/commands/logs/index.js +1 -1
  153. package/lib/commands/menu/asset-update.js +1 -1
  154. package/lib/commands/menu/delete.js +1 -1
  155. package/lib/commands/menu/external-link-create.js +1 -1
  156. package/lib/commands/menu/external-link-update.js +1 -1
  157. package/lib/commands/menu/group-create.js +1 -1
  158. package/lib/commands/menu/group-update.js +1 -1
  159. package/lib/commands/menu/index.js +1 -1
  160. package/lib/commands/menu/list.js +1 -1
  161. package/lib/commands/menu/move.js +1 -1
  162. package/lib/commands/menu/regroup-start.js +1 -1
  163. package/lib/commands/menu/rename.js +1 -1
  164. package/lib/commands/menu/shared/compare-table.js +1 -1
  165. package/lib/commands/menu/shared/delete-plan.js +1 -1
  166. package/lib/commands/menu/shared/facts.js +1 -1
  167. package/lib/commands/menu/shared/index.js +1 -1
  168. package/lib/commands/menu/shared/inquirer.js +1 -1
  169. package/lib/commands/menu/shared/local-pages.js +1 -1
  170. package/lib/commands/menu/shared/logic.js +1 -1
  171. package/lib/commands/menu/shared/mutations.js +1 -1
  172. package/lib/commands/menu/shared/service.js +1 -1
  173. package/lib/commands/menu/shared/sync-core.js +1 -1
  174. package/lib/commands/menu/shared/update-core.js +1 -1
  175. package/lib/commands/menu/shared/valid-url.js +1 -1
  176. package/lib/commands/menu/sync.js +1 -1
  177. package/lib/commands/menu/visibility-update.js +1 -1
  178. package/lib/commands/notification/config-create.js +1 -1
  179. package/lib/commands/notification/config-delete.js +1 -1
  180. package/lib/commands/notification/config-list.js +1 -1
  181. package/lib/commands/notification/config-update.js +1 -1
  182. package/lib/commands/notification/index.js +1 -1
  183. package/lib/commands/notification/shared.js +1 -1
  184. package/lib/commands/ocr/index.js +1 -1
  185. package/lib/commands/page/create.js +1 -1
  186. package/lib/commands/page/custom/detail.js +1 -1
  187. package/lib/commands/page/custom/list.js +1 -1
  188. package/lib/commands/page/custom/publish.js +1 -1
  189. package/lib/commands/page/custom/shared.js +1 -1
  190. package/lib/commands/page/custom/syntax.js +1 -1
  191. package/lib/commands/page/custom/update.js +1 -1
  192. package/lib/commands/page/data-list-status.js +1 -1
  193. package/lib/commands/page/generate-start.js +1 -1
  194. package/lib/commands/page/generate-status.js +1 -1
  195. package/lib/commands/page/index.js +1 -1
  196. package/lib/commands/page/pull.js +1 -1
  197. package/lib/commands/page/push.js +1 -1
  198. package/lib/commands/page/relation-audit.js +1 -1
  199. package/lib/commands/page/restore.js +1 -1
  200. package/lib/commands/page/shared.js +1 -1
  201. package/lib/commands/page/sync.js +1 -1
  202. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  203. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  204. package/lib/commands/project/create/format-elapsed.js +1 -1
  205. package/lib/commands/project/create/main.js +1 -1
  206. package/lib/commands/project/create/materialize-project-template.js +1 -1
  207. package/lib/commands/project/create/project-name.js +1 -1
  208. package/lib/commands/project/create/project-template-archive.js +1 -1
  209. package/lib/commands/project/create/project-template-path.js +1 -1
  210. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  211. package/lib/commands/project/create/use-format-code.js +1 -1
  212. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  213. package/lib/commands/project/domain-routing-sync.js +1 -1
  214. package/lib/commands/project/index.js +1 -1
  215. package/lib/commands/project/upgrade.js +1 -1
  216. package/lib/commands/registry.js +1 -1
  217. package/lib/commands/role/delete.js +1 -1
  218. package/lib/commands/role/detail.js +1 -1
  219. package/lib/commands/role/index.js +1 -1
  220. package/lib/commands/role/list.js +1 -1
  221. package/lib/commands/role/shared.js +1 -1
  222. package/lib/commands/role/update.js +1 -1
  223. package/lib/commands/role/user-add.js +1 -1
  224. package/lib/commands/role/user-remove.js +1 -1
  225. package/lib/commands/role/user-resolve.js +1 -1
  226. package/lib/commands/rule/get.js +1 -1
  227. package/lib/commands/rule/index.js +1 -1
  228. package/lib/commands/rule/list.js +1 -1
  229. package/lib/commands/rule/set.js +1 -1
  230. package/lib/commands/rule/shared.js +1 -1
  231. package/lib/commands/run/index.js +1 -1
  232. package/lib/commands/schema.js +1 -1
  233. package/lib/commands/sql/create.js +1 -1
  234. package/lib/commands/sql/delete.js +1 -1
  235. package/lib/commands/sql/detail.js +1 -1
  236. package/lib/commands/sql/exec.js +1 -1
  237. package/lib/commands/sql/index.js +1 -1
  238. package/lib/commands/sql/list.js +1 -1
  239. package/lib/commands/sql/pull.js +1 -1
  240. package/lib/commands/sql/push.js +1 -1
  241. package/lib/commands/sql/shared.js +1 -1
  242. package/lib/commands/sql/status.js +1 -1
  243. package/lib/commands/sql/validate.js +1 -1
  244. package/lib/commands/task/index.js +1 -1
  245. package/lib/commands/task/status.js +1 -1
  246. package/lib/commands/tenant/index.js +1 -1
  247. package/lib/commands/tenant/members-list.js +1 -1
  248. package/lib/commands/tenant/shared.js +1 -1
  249. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  250. package/lib/commands/user-account/feishu-bind.d.ts +2 -0
  251. package/lib/commands/user-account/feishu-bind.js +1 -0
  252. package/lib/commands/user-account/index.js +1 -1
  253. package/lib/commands/workspace/add.js +1 -1
  254. package/lib/commands/workspace/index.js +1 -1
  255. package/lib/commands/workspace/remove.js +1 -1
  256. package/lib/config/domain-config.d.ts +1 -1
  257. package/lib/config/domain-config.js +1 -1
  258. package/lib/config/project-domain-routing.js +1 -1
  259. package/lib/config/region-config.js +1 -1
  260. package/lib/config/schema.d.ts +1 -1
  261. package/lib/config/schema.js +1 -1
  262. package/lib/constant/cdn.js +1 -1
  263. package/lib/constant/cli.js +1 -1
  264. package/lib/constant/defaults.js +1 -1
  265. package/lib/constant/domain.d.ts +4 -0
  266. package/lib/constant/domain.js +1 -1
  267. package/lib/constant/env.js +1 -1
  268. package/lib/constant/output.js +1 -1
  269. package/lib/constant/paths.js +1 -1
  270. package/lib/constant/region.d.ts +1 -1
  271. package/lib/constant/region.js +1 -1
  272. package/lib/constant/risk.js +1 -1
  273. package/lib/constant/routing-profile.d.ts +14 -1
  274. package/lib/constant/routing-profile.js +1 -1
  275. package/lib/context/app-resolver.d.ts +1 -0
  276. package/lib/context/app-resolver.js +1 -1
  277. package/lib/context/auth-resolver.js +1 -1
  278. package/lib/context/config-loader.js +1 -1
  279. package/lib/context.js +1 -1
  280. package/lib/core/alias-resolver.js +1 -1
  281. package/lib/core/api-client.d.ts +2 -0
  282. package/lib/core/api-client.js +1 -1
  283. package/lib/core/bff/config.js +1 -1
  284. package/lib/core/bff/file-system.js +1 -1
  285. package/lib/core/bff/hash.js +1 -1
  286. package/lib/core/bff/hook-directory.js +1 -1
  287. package/lib/core/bff/lock.js +1 -1
  288. package/lib/core/bff/utils.js +1 -1
  289. package/lib/core/cross-db-relation.js +1 -1
  290. package/lib/core/db-resolver.js +1 -1
  291. package/lib/core/flow-config.js +1 -1
  292. package/lib/core/instant-api-policy/config.js +1 -1
  293. package/lib/core/kb-search-client.js +1 -1
  294. package/lib/core/page/file-system.js +1 -1
  295. package/lib/core/page/hash.js +1 -1
  296. package/lib/core/page/lock.js +1 -1
  297. package/lib/core/page/lr-smart-jsx.js +1 -1
  298. package/lib/core/sql-index-auditor.js +1 -1
  299. package/lib/core/sql-sync/config.js +1 -1
  300. package/lib/core/sql-sync/file-system.js +1 -1
  301. package/lib/core/sql-sync/hash.js +1 -1
  302. package/lib/core/sql-sync/lock.js +1 -1
  303. package/lib/core/sql-sync/utils.js +1 -1
  304. package/lib/core/sql-validator.js +1 -1
  305. package/lib/errors.js +1 -1
  306. package/lib/framework/build-all-flags.js +1 -1
  307. package/lib/framework/error-output.js +1 -1
  308. package/lib/framework/explicit-yes.js +1 -1
  309. package/lib/framework/flags.js +1 -1
  310. package/lib/framework/help.js +1 -1
  311. package/lib/framework/index.js +1 -1
  312. package/lib/framework/output.js +1 -1
  313. package/lib/framework/response.js +1 -1
  314. package/lib/framework/runner-alias.js +1 -1
  315. package/lib/framework/runner.js +1 -1
  316. package/lib/framework/schema-export.js +1 -1
  317. package/lib/framework/supported-flags.js +1 -1
  318. package/lib/framework/types.js +1 -1
  319. package/lib/generated/build-info.d.ts +4 -4
  320. package/lib/generated/build-info.js +1 -1
  321. package/lib/generated/official-routing.d.ts +15 -3
  322. package/lib/generated/official-routing.js +1 -1
  323. package/lib/generated/routing-contract.d.ts +2 -2
  324. package/lib/generated/routing-contract.js +1 -1
  325. package/lib/help.js +1 -1
  326. package/lib/postinstall.js +1 -1
  327. package/lib/runtime/confirmation.js +1 -1
  328. package/lib/runtime/event.js +1 -1
  329. package/lib/runtime/index.js +1 -1
  330. package/lib/runtime/queue.js +1 -1
  331. package/lib/runtime/resolve.js +1 -1
  332. package/lib/skills/builtin-skill.js +1 -1
  333. package/lib/skills/main.js +1 -1
  334. package/lib/skills/npx-skills-add.d.ts +5 -0
  335. package/lib/skills/npx-skills-add.js +1 -1
  336. package/lib/skills/skill-presence.js +1 -1
  337. package/lib/telemetry/cli-command-trace.js +1 -1
  338. package/lib/telemetry/cli-help-trace.js +1 -1
  339. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  340. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  341. package/lib/telemetry/send-cli-trace-log.js +1 -1
  342. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  343. package/lib/utils/ai_config.js +1 -1
  344. package/lib/utils/apply-jq-filter.js +1 -1
  345. package/lib/utils/cdn-config.js +1 -1
  346. package/lib/utils/check-sdk-version.js +1 -1
  347. package/lib/utils/cli-version-check.js +1 -1
  348. package/lib/utils/cli-version-policy.js +1 -1
  349. package/lib/utils/config.js +1 -1
  350. package/lib/utils/entity-with-id.js +1 -1
  351. package/lib/utils/file-utils.js +1 -1
  352. package/lib/utils/guides-cdn.js +1 -1
  353. package/lib/utils/http-client.js +1 -1
  354. package/lib/utils/is-non-interactive.js +1 -1
  355. package/lib/utils/logger.js +1 -1
  356. package/lib/utils/params.js +1 -1
  357. package/lib/utils/platform.js +1 -1
  358. package/lib/utils/sleep.js +1 -1
  359. package/lib/utils/template-replacer.js +1 -1
  360. package/lib/utils/update-notice.js +1 -1
  361. package/lib/utils/version.js +1 -1
  362. package/lib/utils/with-active-cookie.js +1 -1
  363. package/lib/utils/write-cli-side-channel.js +1 -1
  364. package/package.json +1 -1
  365. package/skills/rabetbase/SKILL.md +4 -3
  366. package/skills/rabetbase/guides/sql-creation-workflow.md +1 -1
  367. package/skills/rabetbase/guides/sql-mybatis.md +12 -8
  368. package/skills/rabetbase/references/rabetbase-config.md +6 -4
  369. package/skills/rabetbase/references/rabetbase-init.md +7 -5
  370. package/skills/rabetbase/references/rabetbase-kb.md +8 -6
  371. package/skills/rabetbase/references/rabetbase-user-account.md +20 -2
  372. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a313_0x5b686f=a313_0x19f4;(function(_0xd1f6f3,_0x2601d8){const _0x36a9cf=a313_0x19f4,_0x476b45=_0xd1f6f3();while(!![]){try{const _0x5342c5=-parseInt(_0x36a9cf(0x1f9))/0x1*(-parseInt(_0x36a9cf(0x1ef))/0x2)+-parseInt(_0x36a9cf(0x1f8))/0x3+parseInt(_0x36a9cf(0x204))/0x4*(-parseInt(_0x36a9cf(0x1fc))/0x5)+parseInt(_0x36a9cf(0x1f4))/0x6*(-parseInt(_0x36a9cf(0x1ee))/0x7)+parseInt(_0x36a9cf(0x202))/0x8+-parseInt(_0x36a9cf(0x203))/0x9*(parseInt(_0x36a9cf(0x1f2))/0xa)+parseInt(_0x36a9cf(0x1f7))/0xb*(parseInt(_0x36a9cf(0x200))/0xc);if(_0x5342c5===_0x2601d8)break;else _0x476b45['push'](_0x476b45['shift']());}catch(_0x152507){_0x476b45['push'](_0x476b45['shift']());}}}(a313_0x2ba6,0x58b95));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a313_0x5b686f(0x1fe);export const ENTERPRISE_ROUTING_PROTOCOL=a313_0x5b686f(0x1f0);export const ENTERPRISE_ROUTING_KIND=a313_0x5b686f(0x1fb);function a313_0x19f4(_0x277585,_0x468c33){_0x277585=_0x277585-0x1ee;const _0x2ba618=a313_0x2ba6();let _0x19f428=_0x2ba618[_0x277585];return _0x19f428;}export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain','apiDomain',a313_0x5b686f(0x1fd),a313_0x5b686f(0x1fa),'kbDomain','appDomain','localDomain',a313_0x5b686f(0x1f3)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain',a313_0x5b686f(0x1f5),a313_0x5b686f(0x1fd),a313_0x5b686f(0x1fa),a313_0x5b686f(0x201),a313_0x5b686f(0x1f6)];function a313_0x2ba6(){const _0x405e77=['apiDomain','appDomain','11WjRAOI','686643ZbTrPw','320549iZOHqY','skillDomain','enterprise','115XmKEvd','runtimeDomain','d83929cbced3959b68435d16131e5ff12a4bfc6095e6b7f15bada2bfd03a72cc','lovrabet','12665820adQLDf','kbDomain','2514576taDiTt','36MFyrPx','8844gBYOKo','1624637ESxdUb','2syUNjz','lovrabet-routing/v1','libraries','877340tQXMVu','certificateDomain','18ZjRLSW'];a313_0x2ba6=function(){return _0x405e77;};return a313_0x2ba6();}export const ENTERPRISE_ROUTING_CDN_FIELDS=[a313_0x5b686f(0x1f1),a313_0x5b686f(0x1ff)];export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=[a313_0x5b686f(0x1f1),a313_0x5b686f(0x1ff)];
1
+ const a314_0x518c28=a314_0x1c24;function a314_0x4ac6(){const _0x329f53=['1299803dbjJNo','a03fe188b2b34518efc5668666c0001d20354882cd7dd70afec902dffe1329c3','4321276PTwrfX','27CwmZus','3SqpbJG','lovrabet-routing/v1','8754042EhFhFy','userDomain','511BROplK','2017974FzUpMo','10AlBCVE','enterprise','appDomain','runtimeDomain','33608BsmtWd','libraries','2490010QWfGRv','lovrabet','skillDomain','kbDomain','localDomain','151232KyYEFW','kbServiceDomain','apiDomain'];a314_0x4ac6=function(){return _0x329f53;};return a314_0x4ac6();}(function(_0x4d98aa,_0x36d214){const _0x419177=a314_0x1c24,_0x236526=_0x4d98aa();while(!![]){try{const _0x5b602c=parseInt(_0x419177(0xa3))/0x1+-parseInt(_0x419177(0xa0))/0x2*(-parseInt(_0x419177(0xa7))/0x3)+-parseInt(_0x419177(0xa5))/0x4+-parseInt(_0x419177(0x95))/0x5*(-parseInt(_0x419177(0x94))/0x6)+parseInt(_0x419177(0x93))/0x7*(-parseInt(_0x419177(0x99))/0x8)+-parseInt(_0x419177(0xa6))/0x9*(parseInt(_0x419177(0x9b))/0xa)+parseInt(_0x419177(0x91))/0xb;if(_0x5b602c===_0x36d214)break;else _0x236526['push'](_0x236526['shift']());}catch(_0x1e52e5){_0x236526['push'](_0x236526['shift']());}}}(a314_0x4ac6,0xad510));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a314_0x518c28(0xa4);function a314_0x1c24(_0x3e8a7f,_0x28738b){_0x3e8a7f=_0x3e8a7f-0x90;const _0x4ac6c3=a314_0x4ac6();let _0x1c2455=_0x4ac6c3[_0x3e8a7f];return _0x1c2455;}export const ENTERPRISE_ROUTING_PROTOCOL=a314_0x518c28(0x90);export const ENTERPRISE_ROUTING_KIND=a314_0x518c28(0x96);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain',a314_0x518c28(0xa2),a314_0x518c28(0x98),a314_0x518c28(0x9d),a314_0x518c28(0x9e),a314_0x518c28(0xa1),a314_0x518c28(0x97),a314_0x518c28(0x9f),'certificateDomain'];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a314_0x518c28(0x92),'apiDomain',a314_0x518c28(0x98),a314_0x518c28(0x9d),a314_0x518c28(0x9e),'appDomain'];export const ENTERPRISE_ROUTING_CDN_FIELDS=['libraries',a314_0x518c28(0x9c)];export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=[a314_0x518c28(0x9a),a314_0x518c28(0x9c)];
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a314_0x4f6e(_0x330c75,_0x2146bd){_0x330c75=_0x330c75-0x185;var _0x2c32d0=a314_0x2c32();var _0x4f6eae=_0x2c32d0[_0x330c75];return _0x4f6eae;}(function(_0x3e09b1,_0x311050){var _0x1b457e=a314_0x4f6e,_0x27a401=_0x3e09b1();while(!![]){try{var _0x570da0=parseInt(_0x1b457e(0x190))/0x1+parseInt(_0x1b457e(0x18d))/0x2+parseInt(_0x1b457e(0x18f))/0x3*(parseInt(_0x1b457e(0x188))/0x4)+parseInt(_0x1b457e(0x18a))/0x5*(parseInt(_0x1b457e(0x193))/0x6)+-parseInt(_0x1b457e(0x18b))/0x7+parseInt(_0x1b457e(0x186))/0x8*(parseInt(_0x1b457e(0x189))/0x9)+-parseInt(_0x1b457e(0x185))/0xa*(parseInt(_0x1b457e(0x18e))/0xb);if(_0x570da0===_0x311050)break;else _0x27a401['push'](_0x27a401['shift']());}catch(_0x17c36f){_0x27a401['push'](_0x27a401['shift']());}}}(a314_0x2c32,0xe309e));import a314_0x1bad1b from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x3a21fc=a314_0x4f6e;console[_0x3a21fc(0x194)](),console['log'](a314_0x1bad1b[_0x3a21fc(0x18c)][_0x3a21fc(0x187)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x3a21fc(0x194)](),console[_0x3a21fc(0x194)](_0x3a21fc(0x195)+a314_0x1bad1b[_0x3a21fc(0x18c)]['bold'](CLI_BIN_NAME+_0x3a21fc(0x191))+_0x3a21fc(0x192)),console['log']();}function a314_0x2c32(){var _0x3ec5f5=['53685WybhEj','7680274VcFefZ','green','1806418aGcjen','11wMuybS','1124793WepfQA','1440311UDTlbS','\x20--help','\x20to\x20view\x20available\x20commands.','444QkGPTJ','log','\x20\x20Use\x20','39682300ifgukM','88bbZdBz','bold','12HSvvEt','1417509rXuVaB'];a314_0x2c32=function(){return _0x3ec5f5;};return a314_0x2c32();}
1
+ (function(_0x18c62a,_0x12200b){var _0x1f23f8=a315_0x5f3e,_0x2942e9=_0x18c62a();while(!![]){try{var _0x4b270c=parseInt(_0x1f23f8(0x1dc))/0x1*(-parseInt(_0x1f23f8(0x1d1))/0x2)+parseInt(_0x1f23f8(0x1dd))/0x3*(-parseInt(_0x1f23f8(0x1d7))/0x4)+parseInt(_0x1f23f8(0x1d9))/0x5*(parseInt(_0x1f23f8(0x1d6))/0x6)+parseInt(_0x1f23f8(0x1d2))/0x7+parseInt(_0x1f23f8(0x1da))/0x8*(-parseInt(_0x1f23f8(0x1df))/0x9)+-parseInt(_0x1f23f8(0x1d0))/0xa+parseInt(_0x1f23f8(0x1de))/0xb;if(_0x4b270c===_0x12200b)break;else _0x2942e9['push'](_0x2942e9['shift']());}catch(_0x2c4547){_0x2942e9['push'](_0x2942e9['shift']());}}}(a315_0x1e08,0x9cd29));function a315_0x1e08(){var _0x2aaa07=['716fbUhgn','\x20to\x20view\x20available\x20commands.','568080wDRuYp','197112sIinWT','\x20--help','611jpifwf','18102lzIfpQ','19548122SehuDu','171vapslF','green','7603540sZxnWi','2630DJlUXa','7478527gqAVZD','\x20\x20Use\x20','bold','log','48ZtgENO'];a315_0x1e08=function(){return _0x2aaa07;};return a315_0x1e08();}import a315_0x5c5138 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a315_0x5f3e(_0x38094d,_0x2f5334){_0x38094d=_0x38094d-0x1cf;var _0x1e0807=a315_0x1e08();var _0x5f3ed7=_0x1e0807[_0x38094d];return _0x5f3ed7;}export function showHelp(){var _0x492cc0=a315_0x5f3e;console[_0x492cc0(0x1d5)](),console[_0x492cc0(0x1d5)](a315_0x5c5138[_0x492cc0(0x1cf)][_0x492cc0(0x1d4)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x492cc0(0x1d5)](),console[_0x492cc0(0x1d5)](_0x492cc0(0x1d3)+a315_0x5c5138[_0x492cc0(0x1cf)]['bold'](CLI_BIN_NAME+_0x492cc0(0x1db))+_0x492cc0(0x1d8)),console[_0x492cc0(0x1d5)]();}
@@ -1 +1 @@
1
- (function(_0x590b94,_0x4b12c9){const _0x4309ff=a315_0x5d3b,_0x1760c4=_0x590b94();while(!![]){try{const _0xe2cfa6=-parseInt(_0x4309ff(0xba))/0x1+-parseInt(_0x4309ff(0xb7))/0x2*(parseInt(_0x4309ff(0xc4))/0x3)+parseInt(_0x4309ff(0xbe))/0x4*(parseInt(_0x4309ff(0xc5))/0x5)+parseInt(_0x4309ff(0xbd))/0x6*(-parseInt(_0x4309ff(0xb9))/0x7)+parseInt(_0x4309ff(0xbf))/0x8*(parseInt(_0x4309ff(0xce))/0x9)+-parseInt(_0x4309ff(0xbb))/0xa*(-parseInt(_0x4309ff(0xc7))/0xb)+-parseInt(_0x4309ff(0xcc))/0xc*(-parseInt(_0x4309ff(0xc1))/0xd);if(_0xe2cfa6===_0x4b12c9)break;else _0x1760c4['push'](_0x1760c4['shift']());}catch(_0x3ac36b){_0x1760c4['push'](_0x1760c4['shift']());}}}(a315_0x2246,0x40575));function a315_0x2246(){const _0x1ec840=['3794316llnoJm','installed','1494efNkjM','code','846358hyZcDr','Installation\x20failed','91CveUmi','226733QozTdM','273990krIWFB','already\x20current','174390KESgta','57960klFNys','21384SoOImq','warn','13UoShvC','SOURCE_INVALID','Rabetbase\x20Built-in\x20Skill\x20','3REGdxp','155szgleR','changed','33gACevl','FAILED','skillVersion','installedPath','[BUILTIN_SKILL_INSTALL_'];a315_0x2246=function(){return _0x1ec840;};return a315_0x2246();}function a315_0x5d3b(_0xfc907,_0xa7149c){_0xfc907=_0xfc907-0xb6;const _0x224617=a315_0x2246();let _0x5d3b77=_0x224617[_0xfc907];return _0x5d3b77;}import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x435630={}){const _0x81ae27=a315_0x5d3b,_0xac0b0c=installBuiltinSkill(_0x435630);if(_0xac0b0c['ok']){const _0x586cee=_0xac0b0c[_0x81ae27(0xc6)]?_0x81ae27(0xcd):_0x81ae27(0xbc),_0x30e94f=_0xac0b0c[_0x81ae27(0xca)]?'\x20at\x20'+_0xac0b0c[_0x81ae27(0xca)]:'\x20via\x20skills@latest';return console['log'](_0x81ae27(0xc3)+_0xac0b0c[_0x81ae27(0xc9)]+'\x20'+_0x586cee+_0x30e94f),_0xac0b0c;}const _0x5c5998=_0x81ae27(0xcb)+(_0xac0b0c[_0x81ae27(0xb6)]??_0x81ae27(0xc8))+']\x20'+(_0xac0b0c['error']??_0x81ae27(0xb8))+'.\x20'+('Repair\x20with:\x20'+_0xac0b0c['repairCommand']);if(_0xac0b0c[_0x81ae27(0xb6)]===_0x81ae27(0xc2))throw new Error(_0x5c5998);return console[_0x81ae27(0xc0)](_0x5c5998),_0xac0b0c;}
1
+ (function(_0x104d1b,_0x5d2c0d){const _0x5170e8=a316_0x329c,_0x2ad904=_0x104d1b();while(!![]){try{const _0x33cc88=-parseInt(_0x5170e8(0x180))/0x1*(parseInt(_0x5170e8(0x191))/0x2)+parseInt(_0x5170e8(0x17e))/0x3*(parseInt(_0x5170e8(0x18f))/0x4)+-parseInt(_0x5170e8(0x186))/0x5+-parseInt(_0x5170e8(0x189))/0x6+parseInt(_0x5170e8(0x195))/0x7+parseInt(_0x5170e8(0x183))/0x8+-parseInt(_0x5170e8(0x185))/0x9;if(_0x33cc88===_0x5d2c0d)break;else _0x2ad904['push'](_0x2ad904['shift']());}catch(_0x57bccf){_0x2ad904['push'](_0x2ad904['shift']());}}}(a316_0x55b8,0x3470b));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a316_0x329c(_0x5e7e44,_0x42114a){_0x5e7e44=_0x5e7e44-0x17e;const _0x55b8c0=a316_0x55b8();let _0x329c35=_0x55b8c0[_0x5e7e44];return _0x329c35;}function a316_0x55b8(){const _0x4e03a8=['installedPath','skillVersion','log','\x20at\x20','954332omGEDv','installed','4474EWhIMK','Rabetbase\x20Built-in\x20Skill\x20','SOURCE_INVALID','Installation\x20failed','516915AZRtCC','error','3yBYiGV','already\x20current','13qEmfNj','warn','Repair\x20with:\x20','245936LMIbOC','\x20via\x20skills@latest','654624fqVzYB','3200SoCstp','[BUILTIN_SKILL_INSTALL_','code','155508GoliIR','changed'];a316_0x55b8=function(){return _0x4e03a8;};return a316_0x55b8();}export async function runPostinstall(_0x1fa796={}){const _0xcd1287=a316_0x329c,_0x97b712=installBuiltinSkill(_0x1fa796);if(_0x97b712['ok']){const _0x256430=_0x97b712[_0xcd1287(0x18a)]?_0xcd1287(0x190):_0xcd1287(0x17f),_0x4f7429=_0x97b712[_0xcd1287(0x18b)]?_0xcd1287(0x18e)+_0x97b712['installedPath']:_0xcd1287(0x184);return console[_0xcd1287(0x18d)](_0xcd1287(0x192)+_0x97b712[_0xcd1287(0x18c)]+'\x20'+_0x256430+_0x4f7429),_0x97b712;}const _0x3dd2e1=_0xcd1287(0x187)+(_0x97b712[_0xcd1287(0x188)]??'FAILED')+']\x20'+(_0x97b712[_0xcd1287(0x196)]??_0xcd1287(0x194))+'.\x20'+(_0xcd1287(0x182)+_0x97b712['repairCommand']);if(_0x97b712[_0xcd1287(0x188)]===_0xcd1287(0x193))throw new Error(_0x3dd2e1);return console[_0xcd1287(0x181)](_0x3dd2e1),_0x97b712;}
@@ -1 +1 @@
1
- (function(_0x2f3589,_0x39189b){const _0x3014d8=a316_0x25c5,_0x2765dd=_0x2f3589();while(!![]){try{const _0x1b4993=parseInt(_0x3014d8(0x14c))/0x1*(parseInt(_0x3014d8(0x155))/0x2)+parseInt(_0x3014d8(0x14e))/0x3+-parseInt(_0x3014d8(0x158))/0x4+-parseInt(_0x3014d8(0x15a))/0x5*(-parseInt(_0x3014d8(0x150))/0x6)+-parseInt(_0x3014d8(0x14d))/0x7+parseInt(_0x3014d8(0x14f))/0x8+-parseInt(_0x3014d8(0x159))/0x9;if(_0x1b4993===_0x39189b)break;else _0x2765dd['push'](_0x2765dd['shift']());}catch(_0x12cf20){_0x2765dd['push'](_0x2765dd['shift']());}}}(a316_0x290b,0xca62c));function a316_0x25c5(_0x2e414a,_0x55c763){_0x2e414a=_0x2e414a-0x148;const _0x290bb2=a316_0x290b();let _0x25c5ff=_0x290bb2[_0x2e414a];return _0x25c5ff;}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x1f48af,_0x1df948,_0x17ca65){const _0x140178=a316_0x25c5,_0x5e87c3=normalizeText(_0x1f48af[_0x140178(0x156)],DESCRIPTION_MAX_LENGTH),_0x35e31e=_0x5e87c3||normalizeText(defaultDescription(requireWriteRisk(_0x1f48af),_0x1df948),DESCRIPTION_MAX_LENGTH);return{'operation':_0x1df948,'risk':requireWriteRisk(_0x1f48af),'description':_0x35e31e,..._0x17ca65?{'signal':_0x17ca65}:{}};}function requireWriteRisk(_0x51975c){const _0x264d20=a316_0x25c5;if(_0x51975c[_0x264d20(0x154)]==='write'||_0x51975c[_0x264d20(0x154)]==='high-risk-write')return _0x51975c[_0x264d20(0x154)];throw new Error(_0x264d20(0x152));}function a316_0x290b(){const _0x3e25f9=['573163OhkudD','10262784EBkNaS','3041586DFCJWo','11008504qhTWFr','576ssCEEr','.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','trim','risk','2kyakMU','confirmationDescription','high-risk-write','2835792oXBlix','2470608cOltkv','16430OxVTkw','This\x20will\x20run\x20the\x20high-risk\x20write\x20','replace','slice','This\x20will\x20run\x20the\x20write\x20'];a316_0x290b=function(){return _0x3e25f9;};return a316_0x290b();}function defaultDescription(_0x2095f0,_0x17bc30){const _0x4f1049=a316_0x25c5;if(_0x2095f0===_0x4f1049(0x157))return _0x4f1049(0x148)+_0x17bc30+'.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.';return _0x4f1049(0x14b)+_0x17bc30+_0x4f1049(0x151);}function normalizeText(_0x2e6c76,_0x22e51f){const _0x5a6313=a316_0x25c5;if(typeof _0x2e6c76!=='string')return'';return _0x2e6c76[_0x5a6313(0x149)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x5a6313(0x149)](/\s+/g,'\x20')[_0x5a6313(0x153)]()[_0x5a6313(0x14a)](0x0,_0x22e51f);}
1
+ (function(_0x52237b,_0x1f6b9c){const _0x49bd51=a317_0x2416,_0x93e2bc=_0x52237b();while(!![]){try{const _0x4fcbf6=parseInt(_0x49bd51(0xf6))/0x1*(parseInt(_0x49bd51(0x109))/0x2)+parseInt(_0x49bd51(0xff))/0x3+parseInt(_0x49bd51(0xfb))/0x4*(-parseInt(_0x49bd51(0xfa))/0x5)+-parseInt(_0x49bd51(0x103))/0x6*(-parseInt(_0x49bd51(0x10d))/0x7)+-parseInt(_0x49bd51(0xf8))/0x8*(-parseInt(_0x49bd51(0xfc))/0x9)+-parseInt(_0x49bd51(0xfd))/0xa*(parseInt(_0x49bd51(0x100))/0xb)+parseInt(_0x49bd51(0x10a))/0xc*(-parseInt(_0x49bd51(0x101))/0xd);if(_0x4fcbf6===_0x1f6b9c)break;else _0x93e2bc['push'](_0x93e2bc['shift']());}catch(_0x185696){_0x93e2bc['push'](_0x93e2bc['shift']());}}}(a317_0x1d77,0x2c33a));const DESCRIPTION_MAX_LENGTH=0x1f4;function a317_0x2416(_0x441c28,_0x347360){_0x441c28=_0x441c28-0xf6;const _0x1d7762=a317_0x1d77();let _0x2416bf=_0x1d7762[_0x441c28];return _0x2416bf;}export function buildRabetbaseConfirmationRequest(_0x3cef54,_0x3463b6,_0x39234a){const _0xcbb33d=a317_0x2416,_0x22d799=normalizeText(_0x3cef54[_0xcbb33d(0x10c)],DESCRIPTION_MAX_LENGTH),_0x57de1f=_0x22d799||normalizeText(defaultDescription(requireWriteRisk(_0x3cef54),_0x3463b6),DESCRIPTION_MAX_LENGTH);return{'operation':_0x3463b6,'risk':requireWriteRisk(_0x3cef54),'description':_0x57de1f,..._0x39234a?{'signal':_0x39234a}:{}};}function requireWriteRisk(_0x2b5912){const _0x558608=a317_0x2416;if(_0x2b5912[_0x558608(0xf9)]===_0x558608(0x105)||_0x2b5912[_0x558608(0xf9)]==='high-risk-write')return _0x2b5912['risk'];throw new Error(_0x558608(0xf7));}function defaultDescription(_0x3fdfc1,_0x1cc1e0){const _0x4ef9f4=a317_0x2416;if(_0x3fdfc1===_0x4ef9f4(0x10b))return _0x4ef9f4(0x108)+_0x1cc1e0+_0x4ef9f4(0x102);return _0x4ef9f4(0x104)+_0x1cc1e0+_0x4ef9f4(0xfe);}function normalizeText(_0x7e942c,_0x58db45){const _0xd4da69=a317_0x2416;if(typeof _0x7e942c!==_0xd4da69(0x106))return'';return _0x7e942c[_0xd4da69(0x107)](/[\u0000-\u001f\u007f]+/g,'\x20')['replace'](/\s+/g,'\x20')['trim']()['slice'](0x0,_0x58db45);}function a317_0x1d77(){const _0x4d34df=['replace','This\x20will\x20run\x20the\x20high-risk\x20write\x20','694606hdbRbh','5451588UHhRig','high-risk-write','confirmationDescription','38276ypUcms','1KcdHRG','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','968qhOcCm','risk','10MOOLSg','235180czdAxP','25443jHZnrl','27930aansnS','.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','100662yLorFk','11QECzNQ','13aKCQoC','.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','36uigHeF','This\x20will\x20run\x20the\x20write\x20','write','string'];a317_0x1d77=function(){return _0x4d34df;};return a317_0x1d77();}
@@ -1 +1 @@
1
- (function(_0x4be4e1,_0x360bc6){const _0x4ad454=a317_0x23e5,_0xc72591=_0x4be4e1();while(!![]){try{const _0x426af3=-parseInt(_0x4ad454(0x18b))/0x1*(parseInt(_0x4ad454(0x185))/0x2)+-parseInt(_0x4ad454(0x190))/0x3*(-parseInt(_0x4ad454(0x18e))/0x4)+-parseInt(_0x4ad454(0x186))/0x5*(parseInt(_0x4ad454(0x18f))/0x6)+parseInt(_0x4ad454(0x189))/0x7*(-parseInt(_0x4ad454(0x187))/0x8)+parseInt(_0x4ad454(0x18a))/0x9*(parseInt(_0x4ad454(0x194))/0xa)+-parseInt(_0x4ad454(0x192))/0xb+parseInt(_0x4ad454(0x197))/0xc*(parseInt(_0x4ad454(0x18c))/0xd);if(_0x426af3===_0x360bc6)break;else _0xc72591['push'](_0xc72591['shift']());}catch(_0x24d31c){_0xc72591['push'](_0xc72591['shift']());}}}(a317_0x134a,0xf3fb6));function a317_0x134a(){const _0x4fe156=['split','4LuMKed','15798chZBsv','2147859FMxUEC','trim','10800295bkHfFI','filter','6268490qzcZjT','rabetbase.write.completed','risk','58220772FYttpl','conflicts','isArray','command','3372670NFuPqj','3005Cehxad','8QaFgYc','length','10999933DXCAOu','18AeUucu','1szsXxB','13QFOhXr'];a317_0x134a=function(){return _0x4fe156;};return a317_0x134a();}export function canonicalRabetbaseOperation(_0x91fe66){const _0x109f05=a317_0x23e5;return[_0x91fe66['service'],..._0x91fe66[_0x109f05(0x184)][_0x109f05(0x191)]()[_0x109f05(0x18d)](/\s+/)][_0x109f05(0x193)](Boolean)['join']('.');}function a317_0x23e5(_0x4cb171,_0x3529fa){_0x4cb171=_0x4cb171-0x184;const _0x134a62=a317_0x134a();let _0x23e5fd=_0x134a62[_0x4cb171];return _0x23e5fd;}export function createRabetbaseWriteMetadata(_0x4e5ffd,_0x79b122,_0x2a3041,_0x58cf48){const _0x8fe313=a317_0x23e5;if(_0x58cf48||_0x2a3041['ok']!==!![]||hasUnresolvedConflicts(_0x2a3041)||_0x4e5ffd['risk']!=='write'&&_0x4e5ffd['risk']!=='high-risk-write')return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x8fe313(0x195),'operation':_0x79b122,'risk':_0x4e5ffd[_0x8fe313(0x196)]}}};}function hasUnresolvedConflicts(_0x4cfed0){const _0x1f6fb3=a317_0x23e5,_0x32a660=_0x4cfed0['data'];return Boolean(_0x32a660&&typeof _0x32a660==='object'&&!Array[_0x1f6fb3(0x199)](_0x32a660)&&Array['isArray'](_0x32a660[_0x1f6fb3(0x198)])&&_0x32a660[_0x1f6fb3(0x198)][_0x1f6fb3(0x188)]>0x0);}
1
+ (function(_0x4f7dbb,_0x310764){const _0x21a91b=a318_0x1d7b,_0x19a6df=_0x4f7dbb();while(!![]){try{const _0x4bc2eb=-parseInt(_0x21a91b(0xda))/0x1+-parseInt(_0x21a91b(0xea))/0x2*(parseInt(_0x21a91b(0xec))/0x3)+parseInt(_0x21a91b(0xe2))/0x4*(-parseInt(_0x21a91b(0xe3))/0x5)+parseInt(_0x21a91b(0xdd))/0x6*(parseInt(_0x21a91b(0xdf))/0x7)+parseInt(_0x21a91b(0xe8))/0x8+-parseInt(_0x21a91b(0xe4))/0x9*(-parseInt(_0x21a91b(0xeb))/0xa)+-parseInt(_0x21a91b(0xe9))/0xb*(parseInt(_0x21a91b(0xed))/0xc);if(_0x4bc2eb===_0x310764)break;else _0x19a6df['push'](_0x19a6df['shift']());}catch(_0x45cf5c){_0x19a6df['push'](_0x19a6df['shift']());}}}(a318_0x36fa,0x58908));export function canonicalRabetbaseOperation(_0x47a58c){const _0x338462=a318_0x1d7b;return[_0x47a58c['service'],..._0x47a58c[_0x338462(0xef)][_0x338462(0xe5)]()['split'](/\s+/)][_0x338462(0xe1)](Boolean)['join']('.');}export function createRabetbaseWriteMetadata(_0x29f45a,_0x4e925d,_0x47cd42,_0x48f68a){const _0x573fc6=a318_0x1d7b;if(_0x48f68a||_0x47cd42['ok']!==!![]||hasUnresolvedConflicts(_0x47cd42)||_0x29f45a[_0x573fc6(0xe7)]!==_0x573fc6(0xdc)&&_0x29f45a[_0x573fc6(0xe7)]!==_0x573fc6(0xde))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':'rabetbase.write.completed','operation':_0x4e925d,'risk':_0x29f45a[_0x573fc6(0xe7)]}}};}function hasUnresolvedConflicts(_0x128476){const _0x390a5d=a318_0x1d7b,_0x5f4454=_0x128476[_0x390a5d(0xee)];return Boolean(_0x5f4454&&typeof _0x5f4454===_0x390a5d(0xe0)&&!Array[_0x390a5d(0xdb)](_0x5f4454)&&Array['isArray'](_0x5f4454[_0x390a5d(0xd9)])&&_0x5f4454['conflicts'][_0x390a5d(0xe6)]>0x0);}function a318_0x1d7b(_0x3be6d6,_0x5d4e13){_0x3be6d6=_0x3be6d6-0xd9;const _0x36fa45=a318_0x36fa();let _0x1d7bc5=_0x36fa45[_0x3be6d6];return _0x1d7bc5;}function a318_0x36fa(){const _0x57988b=['2056gdUPfm','4605aJHbQe','477GcHEbK','trim','length','risk','3108504omhQAl','68959VJjbdJ','8heFyVf','79220sdowzq','230481vPRuQa','108MkjoPD','data','command','conflicts','196239tftYfg','isArray','write','3526158kTNgjK','high-risk-write','7QCCXvp','object','filter'];a318_0x36fa=function(){return _0x57988b;};return a318_0x36fa();}
@@ -1 +1 @@
1
- function a318_0x2b8c(_0xa111a6,_0xafb1fb){_0xa111a6=_0xa111a6-0x74;const _0x2fa035=a318_0x2fa0();let _0x2b8c9d=_0x2fa035[_0xa111a6];return _0x2b8c9d;}(function(_0x3746ed,_0x4cb9f6){const _0x2407bd=a318_0x2b8c,_0x20ae96=_0x3746ed();while(!![]){try{const _0x3c4146=parseInt(_0x2407bd(0x99))/0x1*(parseInt(_0x2407bd(0x86))/0x2)+parseInt(_0x2407bd(0x81))/0x3*(-parseInt(_0x2407bd(0x85))/0x4)+parseInt(_0x2407bd(0x7f))/0x5*(parseInt(_0x2407bd(0x95))/0x6)+-parseInt(_0x2407bd(0x89))/0x7*(parseInt(_0x2407bd(0x83))/0x8)+-parseInt(_0x2407bd(0x78))/0x9*(parseInt(_0x2407bd(0x74))/0xa)+parseInt(_0x2407bd(0x82))/0xb*(parseInt(_0x2407bd(0x94))/0xc)+parseInt(_0x2407bd(0x84))/0xd;if(_0x3c4146===_0x4cb9f6)break;else _0x20ae96['push'](_0x20ae96['shift']());}catch(_0x56d37d){_0x20ae96['push'](_0x20ae96['shift']());}}}(a318_0x2fa0,0xea884));import{buildConfigFromFlags,initGlobalEnvironment,isRoutingRecoveryService}from'../context.js';function a318_0x2fa0(){const _0x5b1570=['result','yes','isNonInteractive','rawFlags','write','format','48RQdPCa','1282290CuApDB','dry-run','definition','signal','4117zsEgRS','args','12720ljSHLW','stringify','command','present','7902JqkZRG','data','reason','confirmation','riskLevel','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','confirm','25BEhyxJ','AbortError','663CvOPcl','3723786xMNRIh','8aQQnOs','17699110qMeptf','31268NgLNty','234STUPZX','execute','dryRun','3225747fXbFex','risk','high-risk-write','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','message'];a318_0x2fa0=function(){return _0x5b1570;};return a318_0x2fa0();}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:_0x5f268c,command:_0x57bc27,risk:_0x19b20b,dryRun:_0x483986}){const _0x33a8a8=a318_0x2b8c;return JSON[_0x33a8a8(0x75)]({'ok':_0x5f268c['ok'],'command':_0x57bc27,'risk':_0x19b20b,..._0x483986?{'dryRun':!![]}:{},..._0x5f268c[_0x33a8a8(0x79)]!==undefined?{'data':_0x5f268c[_0x33a8a8(0x79)]}:{},..._0x5f268c[_0x33a8a8(0x8d)]?{'message':_0x5f268c[_0x33a8a8(0x8d)]}:{}});}};export async function invokeRabetbase(_0x225a3e,_0x5ea6b9){const _0x484ed5=a318_0x2b8c;throwIfAborted(_0x5ea6b9[_0x484ed5(0x98)]);const _0x44e0ff=await resolveRabetbaseInvocation(_0x225a3e),_0x5c47f5=canonicalRabetbaseOperation(_0x44e0ff[_0x484ed5(0x97)]);return await confirmWriteBeforeQueue(_0x44e0ff[_0x484ed5(0x97)],_0x44e0ff['rawFlags'],_0x5c47f5,_0x5ea6b9),runSerialized(async()=>{const _0x55d711=_0x484ed5,_0x30aa19={};try{throwIfAborted(_0x5ea6b9['signal']);const _0x4e5ff4=buildConfigFromFlags(_0x44e0ff[_0x55d711(0x91)]);!isRoutingRecoveryService(_0x44e0ff[_0x55d711(0x97)]['service'])&&await initGlobalEnvironment(_0x4e5ff4);const _0x502ae0=createPipelineEnv(_0x4e5ff4,{..._0x44e0ff[_0x55d711(0x91)],'yes':_0x44e0ff[_0x55d711(0x97)]['risk']===_0x55d711(0x8b)?!![]:_0x44e0ff[_0x55d711(0x91)][_0x55d711(0x8f)],'nonInteractive':!![]},_0x44e0ff[_0x55d711(0x9a)]);_0x502ae0[_0x55d711(0x90)]=!![],_0x502ae0[_0x55d711(0x7c)]=_0x55d711(0x8b);const _0x40c90d=withAbortSignal(_0x44e0ff['definition'],_0x5ea6b9['signal']),_0x4f9127=createRabetbaseRunnerAdapter({'formatOutput'(_0x31303a,_0x5505af){const _0x1c314a=_0x55d711;_0x30aa19[_0x1c314a(0x8e)]=_0x31303a,_0x30aa19[_0x1c314a(0x76)]=_0x5505af['command'],_0x30aa19[_0x1c314a(0x8a)]=_0x5505af['risk'],_0x30aa19[_0x1c314a(0x93)]=_0x5505af[_0x1c314a(0x93)],_0x30aa19[_0x1c314a(0x88)]=_0x5505af[_0x1c314a(0x88)]===!![];},async 'confirmHighRisk'(){const _0x4db856=_0x55d711;throw new Error(_0x4db856(0x8c));}});await runCommand(_0x40c90d,_0x502ae0,_0x4f9127);if(!_0x30aa19['result']||!_0x30aa19['command']||!_0x30aa19['risk']||!_0x30aa19['format'])throw new Error(_0x55d711(0x7d));const _0x4f9bd4=_0x30aa19[_0x55d711(0x88)]===!![],_0x5d09a0=_0x5ea6b9['presentation']??defaultPresentation,_0x38a894={'result':_0x30aa19['result'],'command':_0x30aa19[_0x55d711(0x76)],'operation':_0x5c47f5,'risk':_0x30aa19[_0x55d711(0x8a)],'format':_0x30aa19[_0x55d711(0x93)],'dryRun':_0x4f9bd4},_0x115ac8=createRabetbaseWriteMetadata(_0x44e0ff[_0x55d711(0x97)],_0x5c47f5,_0x30aa19['result'],_0x4f9bd4);let _0x106cfc;try{_0x106cfc=await _0x5d09a0[_0x55d711(0x77)](_0x38a894);}catch(_0x3d9022){if(!_0x115ac8||_0x5d09a0===defaultPresentation)throw _0x3d9022;_0x106cfc=await defaultPresentation['present'](_0x38a894);}return{'operation':_0x5c47f5,'risk':_0x30aa19[_0x55d711(0x8a)],'mode':_0x4f9bd4?_0x55d711(0x96):_0x55d711(0x87),'result':_0x30aa19[_0x55d711(0x8e)],'output':_0x106cfc,..._0x115ac8?{'metadata':_0x115ac8}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x1120dd,_0x3bc9c1,_0x2133e9,_0x38c39e){const _0x378baf=a318_0x2b8c;if(_0x3bc9c1[_0x378baf(0x88)]===!![]||_0x1120dd[_0x378baf(0x8a)]!==_0x378baf(0x92)&&_0x1120dd['risk']!==_0x378baf(0x8b))return;await _0x38c39e[_0x378baf(0x7b)][_0x378baf(0x7e)](buildRabetbaseConfirmationRequest(_0x1120dd,_0x2133e9,_0x38c39e['signal']));}function withAbortSignal(_0x3a7437,_0x550a88){return{..._0x3a7437,async 'execute'(_0x515878){const _0xdf29e0=a318_0x2b8c;return throwIfAborted(_0x550a88),_0x3a7437[_0xdf29e0(0x87)]({..._0x515878,'signal':_0x550a88});}};}function throwIfAborted(_0x6d8f8a){const _0x2decf7=a318_0x2b8c;if(_0x6d8f8a?.['aborted'])throw _0x6d8f8a[_0x2decf7(0x7a)]instanceof Error?_0x6d8f8a[_0x2decf7(0x7a)]:new DOMException('Rabetbase\x20invocation\x20aborted.',_0x2decf7(0x80));}
1
+ (function(_0x28816f,_0xdb4578){const _0x2fe2ac=a319_0x5e4a,_0x4f9952=_0x28816f();while(!![]){try{const _0x387f06=parseInt(_0x2fe2ac(0x154))/0x1+parseInt(_0x2fe2ac(0x16d))/0x2*(parseInt(_0x2fe2ac(0x15c))/0x3)+parseInt(_0x2fe2ac(0x164))/0x4+-parseInt(_0x2fe2ac(0x168))/0x5+-parseInt(_0x2fe2ac(0x157))/0x6+-parseInt(_0x2fe2ac(0x15e))/0x7*(parseInt(_0x2fe2ac(0x15a))/0x8)+parseInt(_0x2fe2ac(0x159))/0x9*(parseInt(_0x2fe2ac(0x172))/0xa);if(_0x387f06===_0xdb4578)break;else _0x4f9952['push'](_0x4f9952['shift']());}catch(_0x236f3b){_0x4f9952['push'](_0x4f9952['shift']());}}}(a319_0x34bd,0x962bd));import{buildConfigFromFlags,initGlobalEnvironment,isRoutingRecoveryService}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';function a319_0x5e4a(_0x5bd13a,_0x27d449){_0x5bd13a=_0x5bd13a-0x154;const _0x34bda0=a319_0x34bd();let _0x5e4ae9=_0x34bda0[_0x5bd13a];return _0x5e4ae9;}import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';function a319_0x34bd(){const _0x47f5e7=['6001465HqHjGn','AbortError','isNonInteractive','stringify','definition','26xdfgFV','signal','command','result','yes','8150DONuCM','reason','dryRun','data','presentation','high-risk-write','411845bLvcrD','args','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','5241552RddyiG','write','17937qCpLou','40CtcIcq','dry-run','212703TEzDcD','rawFlags','819707CeSetY','message','risk','present','confirm','Rabetbase\x20invocation\x20aborted.','1266552ermWZG','format','service','execute'];a319_0x34bd=function(){return _0x47f5e7;};return a319_0x34bd();}const defaultPresentation={'present'({result:_0xf6b286,command:_0xce768,risk:_0x1913e0,dryRun:_0x1a666e}){const _0x4e5550=a319_0x5e4a;return JSON[_0x4e5550(0x16b)]({'ok':_0xf6b286['ok'],'command':_0xce768,'risk':_0x1913e0,..._0x1a666e?{'dryRun':!![]}:{},..._0xf6b286[_0x4e5550(0x175)]!==undefined?{'data':_0xf6b286['data']}:{},..._0xf6b286[_0x4e5550(0x15f)]?{'message':_0xf6b286[_0x4e5550(0x15f)]}:{}});}};export async function invokeRabetbase(_0x8c4a9e,_0x150a58){const _0x1a5113=a319_0x5e4a;throwIfAborted(_0x150a58[_0x1a5113(0x16e)]);const _0x19f40a=await resolveRabetbaseInvocation(_0x8c4a9e),_0x1337b8=canonicalRabetbaseOperation(_0x19f40a[_0x1a5113(0x16c)]);return await confirmWriteBeforeQueue(_0x19f40a[_0x1a5113(0x16c)],_0x19f40a[_0x1a5113(0x15d)],_0x1337b8,_0x150a58),runSerialized(async()=>{const _0x571919=_0x1a5113,_0x14e7fa={};try{throwIfAborted(_0x150a58[_0x571919(0x16e)]);const _0x5dc550=buildConfigFromFlags(_0x19f40a[_0x571919(0x15d)]);!isRoutingRecoveryService(_0x19f40a[_0x571919(0x16c)][_0x571919(0x166)])&&await initGlobalEnvironment(_0x5dc550);const _0x3023ab=createPipelineEnv(_0x5dc550,{..._0x19f40a[_0x571919(0x15d)],'yes':_0x19f40a[_0x571919(0x16c)][_0x571919(0x160)]===_0x571919(0x177)?!![]:_0x19f40a[_0x571919(0x15d)][_0x571919(0x171)],'nonInteractive':!![]},_0x19f40a[_0x571919(0x155)]);_0x3023ab[_0x571919(0x16a)]=!![],_0x3023ab['riskLevel']=_0x571919(0x177);const _0x13e08d=withAbortSignal(_0x19f40a[_0x571919(0x16c)],_0x150a58[_0x571919(0x16e)]),_0x1b559f=createRabetbaseRunnerAdapter({'formatOutput'(_0x470969,_0x4d10ce){const _0x145b6e=_0x571919;_0x14e7fa[_0x145b6e(0x170)]=_0x470969,_0x14e7fa[_0x145b6e(0x16f)]=_0x4d10ce[_0x145b6e(0x16f)],_0x14e7fa[_0x145b6e(0x160)]=_0x4d10ce['risk'],_0x14e7fa['format']=_0x4d10ce[_0x145b6e(0x165)],_0x14e7fa[_0x145b6e(0x174)]=_0x4d10ce[_0x145b6e(0x174)]===!![];},async 'confirmHighRisk'(){const _0x14528a=_0x571919;throw new Error(_0x14528a(0x156));}});await runCommand(_0x13e08d,_0x3023ab,_0x1b559f);if(!_0x14e7fa['result']||!_0x14e7fa[_0x571919(0x16f)]||!_0x14e7fa[_0x571919(0x160)]||!_0x14e7fa[_0x571919(0x165)])throw new Error('Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.');const _0x3767df=_0x14e7fa[_0x571919(0x174)]===!![],_0x42de7a=_0x150a58[_0x571919(0x176)]??defaultPresentation,_0x552d84={'result':_0x14e7fa[_0x571919(0x170)],'command':_0x14e7fa[_0x571919(0x16f)],'operation':_0x1337b8,'risk':_0x14e7fa[_0x571919(0x160)],'format':_0x14e7fa['format'],'dryRun':_0x3767df},_0x4fdd1d=createRabetbaseWriteMetadata(_0x19f40a['definition'],_0x1337b8,_0x14e7fa[_0x571919(0x170)],_0x3767df);let _0x319c11;try{_0x319c11=await _0x42de7a[_0x571919(0x161)](_0x552d84);}catch(_0xa6f11){if(!_0x4fdd1d||_0x42de7a===defaultPresentation)throw _0xa6f11;_0x319c11=await defaultPresentation[_0x571919(0x161)](_0x552d84);}return{'operation':_0x1337b8,'risk':_0x14e7fa[_0x571919(0x160)],'mode':_0x3767df?_0x571919(0x15b):_0x571919(0x167),'result':_0x14e7fa['result'],'output':_0x319c11,..._0x4fdd1d?{'metadata':_0x4fdd1d}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x980a01,_0x4a973e,_0x38e477,_0x3415ae){const _0x2c72ac=a319_0x5e4a;if(_0x4a973e[_0x2c72ac(0x174)]===!![]||_0x980a01['risk']!==_0x2c72ac(0x158)&&_0x980a01[_0x2c72ac(0x160)]!==_0x2c72ac(0x177))return;await _0x3415ae['confirmation'][_0x2c72ac(0x162)](buildRabetbaseConfirmationRequest(_0x980a01,_0x38e477,_0x3415ae['signal']));}function withAbortSignal(_0x21353a,_0x41f293){return{..._0x21353a,async 'execute'(_0x17ea24){return throwIfAborted(_0x41f293),_0x21353a['execute']({..._0x17ea24,'signal':_0x41f293});}};}function throwIfAborted(_0x745722){const _0x35224f=a319_0x5e4a;if(_0x745722?.['aborted'])throw _0x745722[_0x35224f(0x173)]instanceof Error?_0x745722['reason']:new DOMException(_0x35224f(0x163),_0x35224f(0x169));}
@@ -1 +1 @@
1
- const a319_0x3aeb5a=a319_0x4561;function a319_0x4561(_0x843a15,_0x15a31c){_0x843a15=_0x843a15-0x13f;const _0x24961e=a319_0x2496();let _0x456150=_0x24961e[_0x843a15];return _0x456150;}(function(_0x42b3c8,_0x190924){const _0x4357ab=a319_0x4561,_0x627b9d=_0x42b3c8();while(!![]){try{const _0x257ba5=parseInt(_0x4357ab(0x13f))/0x1*(-parseInt(_0x4357ab(0x149))/0x2)+-parseInt(_0x4357ab(0x147))/0x3*(parseInt(_0x4357ab(0x14b))/0x4)+parseInt(_0x4357ab(0x141))/0x5+-parseInt(_0x4357ab(0x140))/0x6*(-parseInt(_0x4357ab(0x142))/0x7)+-parseInt(_0x4357ab(0x144))/0x8*(parseInt(_0x4357ab(0x143))/0x9)+-parseInt(_0x4357ab(0x148))/0xa*(-parseInt(_0x4357ab(0x145))/0xb)+parseInt(_0x4357ab(0x14c))/0xc;if(_0x257ba5===_0x190924)break;else _0x627b9d['push'](_0x627b9d['shift']());}catch(_0x47275f){_0x627b9d['push'](_0x627b9d['shift']());}}}(a319_0x2496,0x61ff5));function a319_0x2496(){const _0x5d7e8f=['resolve','1390048VqcIRL','9416796JPMyeB','554069zbvkpo','144NhIvrS','1923065tkTvIg','229901vwsyVb','6903COJzGH','8152kgGuUG','847UZWmWI','catch','3qkIfoJ','16490uVRpBp','2IRdqgl'];a319_0x2496=function(){return _0x5d7e8f;};return a319_0x2496();}let tail=Promise[a319_0x3aeb5a(0x14a)]();export async function runSerialized(_0x4ec806){const _0x1d9f38=a319_0x3aeb5a,_0x4c959c=tail;let _0x540333;tail=new Promise(_0x19d12d=>{_0x540333=_0x19d12d;}),await _0x4c959c[_0x1d9f38(0x146)](()=>undefined);try{return await _0x4ec806();}finally{_0x540333();}}
1
+ (function(_0x287b9e,_0x281712){const _0x1fe2ac=a320_0x5264,_0x59f73c=_0x287b9e();while(!![]){try{const _0x3bccb6=-parseInt(_0x1fe2ac(0x120))/0x1+-parseInt(_0x1fe2ac(0x122))/0x2*(parseInt(_0x1fe2ac(0x11e))/0x3)+parseInt(_0x1fe2ac(0x124))/0x4+-parseInt(_0x1fe2ac(0x11f))/0x5+-parseInt(_0x1fe2ac(0x121))/0x6*(-parseInt(_0x1fe2ac(0x11d))/0x7)+parseInt(_0x1fe2ac(0x125))/0x8+parseInt(_0x1fe2ac(0x123))/0x9;if(_0x3bccb6===_0x281712)break;else _0x59f73c['push'](_0x59f73c['shift']());}catch(_0x10065a){_0x59f73c['push'](_0x59f73c['shift']());}}}(a320_0x3e30,0x4a056));function a320_0x5264(_0x259c38,_0x5cf8c4){_0x259c38=_0x259c38-0x11d;const _0x3e30cd=a320_0x3e30();let _0x526418=_0x3e30cd[_0x259c38];return _0x526418;}function a320_0x3e30(){const _0x3f7dc6=['14RwxKXz','3ampfmO','1834215YSWebV','403094aqkQvl','200910nrpIui','160746zOnNaH','8641692ApKAgV','104948IlIrtF','800840YQjSqE'];a320_0x3e30=function(){return _0x3f7dc6;};return a320_0x3e30();}let tail=Promise['resolve']();export async function runSerialized(_0x2282f2){const _0x1d4d36=tail;let _0x4641d6;tail=new Promise(_0x19d86b=>{_0x4641d6=_0x19d86b;}),await _0x1d4d36['catch'](()=>undefined);try{return await _0x2282f2();}finally{_0x4641d6();}}
@@ -1 +1 @@
1
- (function(_0x179cc5,_0x4fb45e){const _0xa448af=a320_0x1263,_0x49501a=_0x179cc5();while(!![]){try{const _0x3c2a7b=-parseInt(_0xa448af(0xa9))/0x1*(-parseInt(_0xa448af(0xa7))/0x2)+parseInt(_0xa448af(0xb6))/0x3+parseInt(_0xa448af(0xac))/0x4*(parseInt(_0xa448af(0xb9))/0x5)+-parseInt(_0xa448af(0xb5))/0x6+parseInt(_0xa448af(0xb8))/0x7+parseInt(_0xa448af(0xa8))/0x8+parseInt(_0xa448af(0xab))/0x9*(-parseInt(_0xa448af(0xaf))/0xa);if(_0x3c2a7b===_0x4fb45e)break;else _0x49501a['push'](_0x49501a['shift']());}catch(_0x6870f1){_0x49501a['push'](_0x49501a['shift']());}}}(a320_0x3b35,0x833b3));import a320_0x260837 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a320_0x1263(_0x1e51d0,_0x6e0a2){_0x1e51d0=_0x1e51d0-0xa7;const _0x3b358a=a320_0x3b35();let _0x1263d7=_0x3b358a[_0x1e51d0];return _0x1263d7;}import{buildMeowFlags}from'../constant/cli.js';function a320_0x3b35(){const _0x315b4b=['`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','defaultCommand','6243840XLLzgg','2912889UxoYXZ','validation','880684tbppGb','5Xioywf','unknownCommand','wildcardDef','join','slice','4398OtsOMV','1128320wIpEwV','463tOWOjU','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','5640714hyykJi','2302812RBjtCJ','hint','flags','20RkwkjF','run','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','message'];a320_0x3b35=function(){return _0x315b4b;};return a320_0x3b35();}import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';export async function resolveRabetbaseInvocation(_0x5264fe){const _0x376fed=a320_0x1263,_0x2cfe16=a320_0x260837('',{'importMeta':import.meta,'argv':[..._0x5264fe],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x2e1e6d=[..._0x2cfe16['input']],_0x48b33f=_0x2cfe16[_0x376fed(0xae)],_0x4c3d18=_0x2e1e6d[0x0];if(!_0x4c3d18)throw CliErrors[_0x376fed(0xb7)](_0x376fed(0xaa));const _0x5435d0=resolveRemovedCommand(_0x4c3d18,_0x2e1e6d[0x1]);if(_0x5435d0)throw CliErrors[_0x376fed(0xb7)](_0x5435d0[_0x376fed(0xb2)],_0x5435d0[_0x376fed(0xad)]);if(_0x4c3d18===_0x376fed(0xb0))throw CliErrors[_0x376fed(0xb7)](_0x376fed(0xb3),_0x376fed(0xb1));if(!isKnownService(_0x4c3d18))throw CliErrors[_0x376fed(0xba)](_0x2e1e6d[_0x376fed(0xbc)]('\x20'));const _0x4f3f08=getServiceEntry(_0x4c3d18),_0x385ffb=_0x2e1e6d[0x1],_0xdadb24=_0x385ffb||_0x4f3f08[_0x376fed(0xb4)];if(!_0xdadb24){if(_0x4f3f08[_0x376fed(0xbb)])return{'definition':_0x4f3f08[_0x376fed(0xbb)],'rawFlags':_0x48b33f,'args':[]};throw CliErrors[_0x376fed(0xb7)]('Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x4c3d18+'\x22.');}const _0x79d44e=findDefinition(_0x4c3d18,_0xdadb24);if(_0x79d44e)return assertSupportedCommandFlags(_0x79d44e,_0x48b33f),{'definition':_0x79d44e,'rawFlags':_0x48b33f,'args':_0x2e1e6d[_0x376fed(0xbd)](0x2)};if(_0x4f3f08[_0x376fed(0xbb)])return{'definition':_0x4f3f08['wildcardDef'],'rawFlags':_0x48b33f,'args':[_0xdadb24,..._0x2e1e6d[_0x376fed(0xbd)](0x2)]};throw CliErrors[_0x376fed(0xba)](_0x4c3d18+'\x20'+_0xdadb24);}
1
+ (function(_0x356bb8,_0x54c7dd){const _0x5c1d81=a321_0x4852,_0x4d4440=_0x356bb8();while(!![]){try{const _0x534597=-parseInt(_0x5c1d81(0x1a2))/0x1*(parseInt(_0x5c1d81(0x19b))/0x2)+-parseInt(_0x5c1d81(0x1ad))/0x3+parseInt(_0x5c1d81(0x1a7))/0x4*(parseInt(_0x5c1d81(0x1a6))/0x5)+-parseInt(_0x5c1d81(0x1af))/0x6+parseInt(_0x5c1d81(0x1b1))/0x7*(parseInt(_0x5c1d81(0x1ac))/0x8)+parseInt(_0x5c1d81(0x1a5))/0x9+parseInt(_0x5c1d81(0x1ab))/0xa*(parseInt(_0x5c1d81(0x19a))/0xb);if(_0x534597===_0x54c7dd)break;else _0x4d4440['push'](_0x4d4440['shift']());}catch(_0x2e8f08){_0x4d4440['push'](_0x4d4440['shift']());}}}(a321_0x2ff7,0xa759e));import a321_0x40c6db from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a321_0x2ff7(){const _0x9be34=['4tlsDGq','message','flags','hint','3550bVJcmp','24yNXuRq','210639ujfXXN','validation','8182560THHfIG','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','891723ULdGyk','defaultCommand','slice','26631SwCgeB','15046iqOIEJ','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','join','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','input','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','unknownCommand','97uwQywL','wildcardDef','run','10277037HyCvLc','2328295UqXZlL'];a321_0x2ff7=function(){return _0x9be34;};return a321_0x2ff7();}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';function a321_0x4852(_0x30543b,_0x48c58b){_0x30543b=_0x30543b-0x19a;const _0x2ff7f6=a321_0x2ff7();let _0x4852f6=_0x2ff7f6[_0x30543b];return _0x4852f6;}export async function resolveRabetbaseInvocation(_0x1749df){const _0x239985=a321_0x4852,_0x1bf605=a321_0x40c6db('',{'importMeta':import.meta,'argv':[..._0x1749df],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x2232cb=[..._0x1bf605[_0x239985(0x19f)]],_0x3847d8=_0x1bf605[_0x239985(0x1a9)],_0x38c2c7=_0x2232cb[0x0];if(!_0x38c2c7)throw CliErrors['validation'](_0x239985(0x19c));const _0x5e6e14=resolveRemovedCommand(_0x38c2c7,_0x2232cb[0x1]);if(_0x5e6e14)throw CliErrors[_0x239985(0x1ae)](_0x5e6e14[_0x239985(0x1a8)],_0x5e6e14[_0x239985(0x1aa)]);if(_0x38c2c7===_0x239985(0x1a4))throw CliErrors[_0x239985(0x1ae)](_0x239985(0x1b0),_0x239985(0x19e));if(!isKnownService(_0x38c2c7))throw CliErrors[_0x239985(0x1a1)](_0x2232cb[_0x239985(0x19d)]('\x20'));const _0x2ea1b5=getServiceEntry(_0x38c2c7),_0x40408e=_0x2232cb[0x1],_0x5119bc=_0x40408e||_0x2ea1b5[_0x239985(0x1b2)];if(!_0x5119bc){if(_0x2ea1b5[_0x239985(0x1a3)])return{'definition':_0x2ea1b5['wildcardDef'],'rawFlags':_0x3847d8,'args':[]};throw CliErrors[_0x239985(0x1ae)](_0x239985(0x1a0)+_0x38c2c7+'\x22.');}const _0x2c5f75=findDefinition(_0x38c2c7,_0x5119bc);if(_0x2c5f75)return assertSupportedCommandFlags(_0x2c5f75,_0x3847d8),{'definition':_0x2c5f75,'rawFlags':_0x3847d8,'args':_0x2232cb[_0x239985(0x1b3)](0x2)};if(_0x2ea1b5[_0x239985(0x1a3)])return{'definition':_0x2ea1b5[_0x239985(0x1a3)],'rawFlags':_0x3847d8,'args':[_0x5119bc,..._0x2232cb[_0x239985(0x1b3)](0x2)]};throw CliErrors['unknownCommand'](_0x38c2c7+'\x20'+_0x5119bc);}
@@ -1 +1 @@
1
- const a322_0x23601e=a322_0x55d4;(function(_0x357500,_0x37dbee){const _0x262824=a322_0x55d4,_0x392b77=_0x357500();while(!![]){try{const _0x28cdb9=parseInt(_0x262824(0x12e))/0x1+-parseInt(_0x262824(0x120))/0x2*(parseInt(_0x262824(0x138))/0x3)+parseInt(_0x262824(0x107))/0x4*(parseInt(_0x262824(0x143))/0x5)+parseInt(_0x262824(0x133))/0x6*(-parseInt(_0x262824(0x116))/0x7)+-parseInt(_0x262824(0x13b))/0x8*(-parseInt(_0x262824(0x10a))/0x9)+-parseInt(_0x262824(0x10b))/0xa*(-parseInt(_0x262824(0x119))/0xb)+-parseInt(_0x262824(0x134))/0xc;if(_0x28cdb9===_0x37dbee)break;else _0x392b77['push'](_0x392b77['shift']());}catch(_0x46e0ae){_0x392b77['push'](_0x392b77['shift']());}}}(a322_0x39f9,0x93763));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';function a322_0x39f9(){const _0x491a9a=['name','3WmAleB','message','sort','28936etWNRj','Unsupported\x20Skill\x20entry:\x20','files','present','packageVersion','schemaVersion','unknown','hex','30yQJLZl','status','Symbolic\x20link\x20is\x20not\x20allowed:\x20','183252AEmxKn','flatMap','unverifiable','1593NjqCEH','2770xqzmtf','state','skills','content_mismatch','VERIFY_FAILED','root','INSTALL_FAILED','installedPath','parse','isDirectory','version_mismatch','14qZYtQS','version','every','46981hDSxIB','absent','rabetbase.manifest.json','isSymbolicLink','pipe','Installed\x20Skill\x20state\x20is\x20','startsWith','1233858EWDrYn','rabetbase','digest','Unsafe\x20manifest\x20path:\x20','reason','update','utf8','missing','skillVersion','SKILL.md','includes','isFile','split','home','157503VXmjfo','path','current','packageRoot','manifest','120606atweJR','11934276yTfTpi','rabetbase\x20cli-skill\x20install','match'];a322_0x39f9=function(){return _0x491a9a;};return a322_0x39f9();}import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';function a322_0x55d4(_0xf2fc17,_0x4f6927){_0xf2fc17=_0xf2fc17-0x105;const _0x39f9d3=a322_0x39f9();let _0x55d4b7=_0x39f9d3[_0xf2fc17];return _0x55d4b7;}const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a322_0x23601e(0x135),SKILL_NAME=a322_0x23601e(0x121);function frontmatterValue(_0x4743d7,_0x147761){const _0x2a318e=a322_0x23601e;return _0x4743d7[_0x2a318e(0x136)](new RegExp('^'+_0x147761+':\x5cs*(.+)$','m'))?.[0x1]?.['trim']()??'';}function listFiles(_0x15e41b,_0xe7823f=_0x15e41b){const _0x487b06=a322_0x23601e;return readdirSync(_0xe7823f,{'withFileTypes':!![]})[_0x487b06(0x108)](_0x24798d=>{const _0x2230e8=_0x487b06,_0x7af8f9=join(_0xe7823f,_0x24798d[_0x2230e8(0x137)]),_0xbede21=lstatSync(_0x7af8f9);if(_0xbede21[_0x2230e8(0x11c)]())throw new Error(_0x2230e8(0x106)+_0x7af8f9);if(_0xbede21[_0x2230e8(0x114)]())return listFiles(_0x15e41b,_0x7af8f9);if(!_0xbede21[_0x2230e8(0x12b)]())throw new Error(_0x2230e8(0x13c)+_0x7af8f9);return[relative(_0x15e41b,_0x7af8f9)['split'](sep)['join']('/')];})[_0x487b06(0x13a)]((_0x4af0a7,_0x5e4efa)=>_0x4af0a7<_0x5e4efa?-0x1:_0x4af0a7>_0x5e4efa?0x1:0x0);}function digestFiles(_0x40afd7,_0x4f29e9){const _0x140315=a322_0x23601e,_0x5ea64a=createHash('sha256');for(const _0x56b485 of _0x4f29e9){if(_0x56b485[_0x140315(0x11f)]('/')||_0x56b485[_0x140315(0x12c)]('/')[_0x140315(0x12a)]('..')||_0x56b485[_0x140315(0x12a)]('\x5c'))throw new Error(_0x140315(0x123)+_0x56b485);_0x5ea64a['update'](_0x56b485),_0x5ea64a[_0x140315(0x125)]('\x00'),_0x5ea64a['update'](readFileSync(join(_0x40afd7,..._0x56b485[_0x140315(0x12c)]('/')))),_0x5ea64a['update']('\x00');}return _0x5ea64a[_0x140315(0x122)](_0x140315(0x142));}function sameFiles(_0x18a2d9,_0x280b07){const _0x5ac75a=a322_0x23601e;return _0x18a2d9['length']===_0x280b07['length']&&_0x18a2d9[_0x5ac75a(0x118)]((_0x5ba9f7,_0x5c88a6)=>_0x5ba9f7===_0x280b07[_0x5c88a6]);}function readSource(_0x43208e){const _0x57ed2a=a322_0x23601e,_0x1eabe2=JSON['parse'](readFileSync(join(_0x43208e,'package.json'),'utf8')),_0x152681=JSON[_0x57ed2a(0x113)](readFileSync(join(_0x43208e,_0x57ed2a(0x10d),_0x57ed2a(0x11b)),_0x57ed2a(0x126))),_0x21b7ac=join(_0x43208e,'skills',SKILL_NAME),_0x175e0=frontmatterValue(readFileSync(join(_0x21b7ac,_0x57ed2a(0x129)),_0x57ed2a(0x126)),_0x57ed2a(0x117)),_0x50c3dc=listFiles(_0x21b7ac);if(_0x152681[_0x57ed2a(0x140)]!==0x1||_0x152681[_0x57ed2a(0x137)]!==SKILL_NAME||!_0x1eabe2[_0x57ed2a(0x117)]||_0x152681[_0x57ed2a(0x13f)]!==_0x1eabe2[_0x57ed2a(0x117)]||_0x152681[_0x57ed2a(0x128)]!==_0x1eabe2[_0x57ed2a(0x117)]||_0x175e0!==_0x1eabe2[_0x57ed2a(0x117)]||!sameFiles(_0x50c3dc,_0x152681[_0x57ed2a(0x13d)])||digestFiles(_0x21b7ac,_0x50c3dc)!==_0x152681[_0x57ed2a(0x122)])throw new Error('Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest');return{'packageVersion':_0x1eabe2[_0x57ed2a(0x117)],'skillVersion':_0x175e0,'root':_0x21b7ac,'manifest':_0x152681};}function installedSkillPath(_0x1d8267){const _0x2c401c=a322_0x23601e,_0x1782ee=resolveInstalledSkill(SKILL_NAME,{'home':_0x1d8267});if(_0x1782ee[_0x2c401c(0x10c)]===_0x2c401c(0x13e))return{'state':_0x2c401c(0x13e),'path':dirname(_0x1782ee[_0x2c401c(0x12f)])};if(_0x1782ee['state']===_0x2c401c(0x11a))return{'state':_0x2c401c(0x127)};return{'state':_0x2c401c(0x109),'reason':_0x1782ee[_0x2c401c(0x124)]};}export function inspectInstalledBuiltinSkillVersion(_0x466076,_0x222299={}){const _0xf2c60f=a322_0x23601e,_0x57736c=installedSkillPath(_0x222299[_0xf2c60f(0x12d)]??homedir());if(_0x57736c[_0xf2c60f(0x10c)]==='missing')return{'state':'missing','expectedVersion':_0x466076,'repairCommand':REPAIR_COMMAND};if(_0x57736c[_0xf2c60f(0x10c)]===_0xf2c60f(0x109))return{'state':'unverifiable','expectedVersion':_0x466076,'reason':_0x57736c[_0xf2c60f(0x124)],'repairCommand':REPAIR_COMMAND};try{const _0x200b7=frontmatterValue(readFileSync(join(_0x57736c['path'],_0xf2c60f(0x129)),_0xf2c60f(0x126)),_0xf2c60f(0x117));return{'state':_0x200b7===_0x466076?_0xf2c60f(0x130):'version_mismatch','expectedVersion':_0x466076,'skillVersion':_0x200b7,'installedPath':_0x57736c['path'],'repairCommand':REPAIR_COMMAND};}catch(_0x18a560){return{'state':_0xf2c60f(0x109),'expectedVersion':_0x466076,'installedPath':_0x57736c[_0xf2c60f(0x12f)],'reason':_0x18a560 instanceof Error?_0x18a560['message']:String(_0x18a560),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x5c87e3={}){const _0x2fa67c=a322_0x23601e,_0x36cf2f=_0x5c87e3[_0x2fa67c(0x131)]??DEFAULT_PACKAGE_ROOT;let _0x5e951a;try{_0x5e951a=readSource(_0x36cf2f);}catch(_0x1135f9){return{'state':_0x2fa67c(0x109),'packageVersion':_0x2fa67c(0x141),'reason':_0x1135f9 instanceof Error?_0x1135f9[_0x2fa67c(0x139)]:String(_0x1135f9),'repairCommand':REPAIR_COMMAND};}const _0x3e403e=installedSkillPath(_0x5c87e3[_0x2fa67c(0x12d)]??homedir());if(_0x3e403e[_0x2fa67c(0x10c)]===_0x2fa67c(0x127))return{'state':_0x2fa67c(0x127),'packageVersion':_0x5e951a[_0x2fa67c(0x13f)],'repairCommand':REPAIR_COMMAND};if(_0x3e403e[_0x2fa67c(0x10c)]==='unverifiable')return{'state':_0x2fa67c(0x109),'packageVersion':_0x5e951a[_0x2fa67c(0x13f)],'reason':_0x3e403e[_0x2fa67c(0x124)],'repairCommand':REPAIR_COMMAND};try{const _0x554680=frontmatterValue(readFileSync(join(_0x3e403e[_0x2fa67c(0x12f)],_0x2fa67c(0x129)),_0x2fa67c(0x126)),_0x2fa67c(0x117));if(_0x554680!==_0x5e951a['skillVersion'])return{'state':_0x2fa67c(0x115),'packageVersion':_0x5e951a[_0x2fa67c(0x13f)],'skillVersion':_0x554680,'installedPath':_0x3e403e[_0x2fa67c(0x12f)],'repairCommand':REPAIR_COMMAND};const _0x2a7a6c=listFiles(_0x3e403e[_0x2fa67c(0x12f)]),_0x2e21f0=digestFiles(_0x3e403e[_0x2fa67c(0x12f)],_0x2a7a6c);return{'state':sameFiles(_0x2a7a6c,_0x5e951a[_0x2fa67c(0x132)][_0x2fa67c(0x13d)])&&_0x2e21f0===_0x5e951a['manifest'][_0x2fa67c(0x122)]?_0x2fa67c(0x130):_0x2fa67c(0x10e),'packageVersion':_0x5e951a[_0x2fa67c(0x13f)],'skillVersion':_0x554680,'installedPath':_0x3e403e['path'],'digest':_0x2e21f0,'repairCommand':REPAIR_COMMAND};}catch(_0x292182){return{'state':'unverifiable','packageVersion':_0x5e951a[_0x2fa67c(0x13f)],'installedPath':_0x3e403e[_0x2fa67c(0x12f)],'reason':_0x292182 instanceof Error?_0x292182[_0x2fa67c(0x139)]:String(_0x292182),'repairCommand':REPAIR_COMMAND};}}function failure(_0x49651b,_0x12f33b,_0xb16d92,_0x2fab20){const _0x2bc602=a322_0x23601e;return{'ok':![],'code':_0x49651b,'packageVersion':_0x12f33b[_0x2bc602(0x13f)],'skillVersion':_0x12f33b['skillVersion'],'installedPath':_0x2fab20,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0xb16d92 instanceof Error?_0xb16d92['message']:String(_0xb16d92)};}export function installBuiltinSkill(_0x53175b={}){const _0x333b45=a322_0x23601e,_0x133bc5=_0x53175b['packageRoot']??DEFAULT_PACKAGE_ROOT,_0x2738bb=_0x53175b[_0x333b45(0x12d)]??homedir();let _0x3b3061;try{_0x3b3061=readSource(_0x133bc5);}catch(_0x38d06a){return failure('SOURCE_INVALID',{'packageVersion':_0x333b45(0x141),'skillVersion':_0x333b45(0x141)},_0x38d06a);}const _0x4d23b1=inspectBuiltinSkill({'packageRoot':_0x133bc5,'home':_0x2738bb}),_0x52038a=runNpxSkillsAddGlobal(_0x133bc5,_0x3b3061[_0x333b45(0x110)],{'stdio':_0x53175b['stdio']??_0x333b45(0x11d),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x2738bb}});if(_0x52038a['skipped'])return{'ok':!![],'packageVersion':_0x3b3061[_0x333b45(0x13f)],'skillVersion':_0x3b3061[_0x333b45(0x128)],'installedPath':_0x4d23b1[_0x333b45(0x112)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x52038a['ok'])return failure(_0x333b45(0x111),_0x3b3061,_0x52038a['error']??'skills@latest\x20exited\x20'+_0x52038a[_0x333b45(0x105)]);const _0x1630d2=inspectBuiltinSkill({'packageRoot':_0x133bc5,'home':_0x2738bb});if(_0x1630d2[_0x333b45(0x10c)]!==_0x333b45(0x130))return failure(_0x333b45(0x10f),_0x3b3061,_0x1630d2[_0x333b45(0x124)]??_0x333b45(0x11e)+_0x1630d2['state'],_0x1630d2['installedPath']);return{'ok':!![],'packageVersion':_0x3b3061['packageVersion'],'skillVersion':_0x3b3061[_0x333b45(0x128)],'installedPath':_0x1630d2['installedPath'],'changed':_0x4d23b1[_0x333b45(0x10c)]!=='current','repairCommand':REPAIR_COMMAND};}
1
+ const a323_0x2d6c22=a323_0x1ea0;(function(_0x162454,_0x295a83){const _0x17b941=a323_0x1ea0,_0x24c657=_0x162454();while(!![]){try{const _0x210d1d=-parseInt(_0x17b941(0x187))/0x1+-parseInt(_0x17b941(0x17d))/0x2+parseInt(_0x17b941(0x164))/0x3+-parseInt(_0x17b941(0x154))/0x4*(-parseInt(_0x17b941(0x14e))/0x5)+parseInt(_0x17b941(0x161))/0x6*(-parseInt(_0x17b941(0x178))/0x7)+-parseInt(_0x17b941(0x162))/0x8+-parseInt(_0x17b941(0x168))/0x9*(-parseInt(_0x17b941(0x14f))/0xa);if(_0x210d1d===_0x295a83)break;else _0x24c657['push'](_0x24c657['shift']());}catch(_0x2f4e2b){_0x24c657['push'](_0x24c657['shift']());}}}(a323_0x2ede,0x3ece9));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{debuglog}from'node:util';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND='rabetbase\x20cli-skill\x20install',SKILL_NAME=a323_0x2d6c22(0x16c),debug=debuglog('rabetbase-skills');function frontmatterValue(_0x517ce3,_0x5823d7){const _0x129916=a323_0x2d6c22;return _0x517ce3[_0x129916(0x17c)](new RegExp('^'+_0x5823d7+_0x129916(0x181),'m'))?.[0x1]?.['trim']()??'';}function a323_0x1ea0(_0x31a6d4,_0x495820){_0x31a6d4=_0x31a6d4-0x14d;const _0x2ede65=a323_0x2ede();let _0x1ea0de=_0x2ede65[_0x31a6d4];return _0x1ea0de;}function listFiles(_0xf5279c,_0x4d0087=_0xf5279c){const _0x4d1a83=a323_0x2d6c22;return readdirSync(_0x4d0087,{'withFileTypes':!![]})[_0x4d1a83(0x157)](_0x183dc2=>{const _0x1d1fe5=_0x4d1a83,_0x3d5d5a=join(_0x4d0087,_0x183dc2[_0x1d1fe5(0x18a)]),_0x45e757=lstatSync(_0x3d5d5a);if(_0x45e757[_0x1d1fe5(0x150)]())throw new Error(_0x1d1fe5(0x16f)+_0x3d5d5a);if(_0x45e757[_0x1d1fe5(0x169)]())return listFiles(_0xf5279c,_0x3d5d5a);if(!_0x45e757['isFile']())throw new Error('Unsupported\x20Skill\x20entry:\x20'+_0x3d5d5a);return[relative(_0xf5279c,_0x3d5d5a)[_0x1d1fe5(0x156)](sep)[_0x1d1fe5(0x184)]('/')];})[_0x4d1a83(0x188)]((_0x39d56c,_0x2d264c)=>_0x39d56c<_0x2d264c?-0x1:_0x39d56c>_0x2d264c?0x1:0x0);}function digestFiles(_0x1a0a42,_0x32c15f){const _0x2fa63e=a323_0x2d6c22,_0x50e1ae=createHash('sha256');for(const _0x360136 of _0x32c15f){if(_0x360136[_0x2fa63e(0x15c)]('/')||_0x360136[_0x2fa63e(0x156)]('/')[_0x2fa63e(0x18d)]('..')||_0x360136[_0x2fa63e(0x18d)]('\x5c'))throw new Error(_0x2fa63e(0x15d)+_0x360136);_0x50e1ae[_0x2fa63e(0x17e)](_0x360136),_0x50e1ae[_0x2fa63e(0x17e)]('\x00'),_0x50e1ae[_0x2fa63e(0x17e)](readFileSync(join(_0x1a0a42,..._0x360136[_0x2fa63e(0x156)]('/')))),_0x50e1ae['update']('\x00');}return _0x50e1ae[_0x2fa63e(0x17b)](_0x2fa63e(0x175));}function sameFiles(_0x5cee62,_0x1ce7f5){const _0x4ec80c=a323_0x2d6c22;return _0x5cee62[_0x4ec80c(0x153)]===_0x1ce7f5[_0x4ec80c(0x153)]&&_0x5cee62[_0x4ec80c(0x158)]((_0x304edd,_0x18b7df)=>_0x304edd===_0x1ce7f5[_0x18b7df]);}function readSource(_0x5bb140){const _0x354929=a323_0x2d6c22,_0x53275f=JSON['parse'](readFileSync(join(_0x5bb140,'package.json'),_0x354929(0x16b))),_0xa2bad0=JSON[_0x354929(0x186)](readFileSync(join(_0x5bb140,'skills',_0x354929(0x15e)),_0x354929(0x16b))),_0x338960=join(_0x5bb140,_0x354929(0x17f),SKILL_NAME),_0x2d9f5e=frontmatterValue(readFileSync(join(_0x338960,_0x354929(0x16e)),_0x354929(0x16b)),'version'),_0x1435f5=listFiles(_0x338960);if(_0xa2bad0[_0x354929(0x155)]!==0x1||_0xa2bad0[_0x354929(0x18a)]!==SKILL_NAME||!_0x53275f['version']||_0xa2bad0[_0x354929(0x15a)]!==_0x53275f[_0x354929(0x173)]||_0xa2bad0[_0x354929(0x191)]!==_0x53275f['version']||_0x2d9f5e!==_0x53275f[_0x354929(0x173)]||!sameFiles(_0x1435f5,_0xa2bad0[_0x354929(0x152)])||digestFiles(_0x338960,_0x1435f5)!==_0xa2bad0[_0x354929(0x17b)])throw new Error(_0x354929(0x16a));return{'packageVersion':_0x53275f[_0x354929(0x173)],'skillVersion':_0x2d9f5e,'root':_0x338960,'manifest':_0xa2bad0};}function installedSkillPath(_0x1bcdd2){const _0xc2c074=a323_0x2d6c22,_0xf8e390=resolveInstalledSkill(SKILL_NAME,{'home':_0x1bcdd2});if(_0xf8e390['state']===_0xc2c074(0x172))return{'state':_0xc2c074(0x172),'path':dirname(_0xf8e390[_0xc2c074(0x167)])};if(_0xf8e390[_0xc2c074(0x18b)]==='absent')return{'state':_0xc2c074(0x163)};return{'state':_0xc2c074(0x170),'reason':_0xf8e390[_0xc2c074(0x18f)]};}export function inspectInstalledBuiltinSkillVersion(_0x578e8e,_0x3f1cd4={}){const _0x155aa4=a323_0x2d6c22,_0x1f5299=installedSkillPath(_0x3f1cd4[_0x155aa4(0x15b)]??homedir());if(_0x1f5299[_0x155aa4(0x18b)]===_0x155aa4(0x163))return{'state':_0x155aa4(0x163),'expectedVersion':_0x578e8e,'repairCommand':REPAIR_COMMAND};if(_0x1f5299[_0x155aa4(0x18b)]===_0x155aa4(0x170))return{'state':_0x155aa4(0x170),'expectedVersion':_0x578e8e,'reason':_0x1f5299[_0x155aa4(0x18f)],'repairCommand':REPAIR_COMMAND};try{const _0x2faa1e=frontmatterValue(readFileSync(join(_0x1f5299[_0x155aa4(0x167)],_0x155aa4(0x16e)),_0x155aa4(0x16b)),'version');return{'state':_0x2faa1e===_0x578e8e?_0x155aa4(0x17a):_0x155aa4(0x18c),'expectedVersion':_0x578e8e,'skillVersion':_0x2faa1e,'installedPath':_0x1f5299[_0x155aa4(0x167)],'repairCommand':REPAIR_COMMAND};}catch(_0xce0897){return{'state':_0x155aa4(0x170),'expectedVersion':_0x578e8e,'installedPath':_0x1f5299[_0x155aa4(0x167)],'reason':_0xce0897 instanceof Error?_0xce0897['message']:String(_0xce0897),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x3592c4={}){const _0x5b0eeb=a323_0x2d6c22,_0x4a6953=_0x3592c4[_0x5b0eeb(0x189)]??DEFAULT_PACKAGE_ROOT;let _0x12031a;try{_0x12031a=readSource(_0x4a6953);}catch(_0xe8c3ea){return{'state':_0x5b0eeb(0x170),'packageVersion':_0x5b0eeb(0x174),'reason':_0xe8c3ea instanceof Error?_0xe8c3ea[_0x5b0eeb(0x16d)]:String(_0xe8c3ea),'repairCommand':REPAIR_COMMAND};}const _0x52101d=installedSkillPath(_0x3592c4[_0x5b0eeb(0x15b)]??homedir());if(_0x52101d[_0x5b0eeb(0x18b)]===_0x5b0eeb(0x163))return{'state':_0x5b0eeb(0x163),'packageVersion':_0x12031a[_0x5b0eeb(0x15a)],'repairCommand':REPAIR_COMMAND};if(_0x52101d['state']===_0x5b0eeb(0x170))return{'state':_0x5b0eeb(0x170),'packageVersion':_0x12031a[_0x5b0eeb(0x15a)],'reason':_0x52101d['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x23d6ce=frontmatterValue(readFileSync(join(_0x52101d['path'],_0x5b0eeb(0x16e)),_0x5b0eeb(0x16b)),_0x5b0eeb(0x173));if(_0x23d6ce!==_0x12031a[_0x5b0eeb(0x191)])return{'state':_0x5b0eeb(0x18c),'packageVersion':_0x12031a[_0x5b0eeb(0x15a)],'skillVersion':_0x23d6ce,'installedPath':_0x52101d[_0x5b0eeb(0x167)],'repairCommand':REPAIR_COMMAND};const _0x5471ed=listFiles(_0x52101d[_0x5b0eeb(0x167)]),_0x47e1bf=digestFiles(_0x52101d[_0x5b0eeb(0x167)],_0x5471ed);return{'state':sameFiles(_0x5471ed,_0x12031a[_0x5b0eeb(0x15f)]['files'])&&_0x47e1bf===_0x12031a[_0x5b0eeb(0x15f)][_0x5b0eeb(0x17b)]?_0x5b0eeb(0x17a):_0x5b0eeb(0x151),'packageVersion':_0x12031a[_0x5b0eeb(0x15a)],'skillVersion':_0x23d6ce,'installedPath':_0x52101d[_0x5b0eeb(0x167)],'digest':_0x47e1bf,'repairCommand':REPAIR_COMMAND};}catch(_0x478c8e){return{'state':_0x5b0eeb(0x170),'packageVersion':_0x12031a[_0x5b0eeb(0x15a)],'installedPath':_0x52101d[_0x5b0eeb(0x167)],'reason':_0x478c8e instanceof Error?_0x478c8e[_0x5b0eeb(0x16d)]:String(_0x478c8e),'repairCommand':REPAIR_COMMAND};}}function a323_0x2ede(){const _0x4b5e71=['version','unknown','hex','output','Installed\x20Skill\x20state\x20is\x20','91jjhoVZ','skipped','current','digest','match','85836LtmbDr','update','skills','VERIFY_FAILED',':\x5cs*(.+)$','error','SOURCE_INVALID','join','Installer\x20reported\x20partial\x20target\x20failures:\x0a%s','parse','198860soEZLW','sort','packageRoot','name','state','version_mismatch','includes','installedPath','reason','\x20automatically\x20selected\x20installation\x20target(s)\x20could\x20not\x20be\x20installed.','skillVersion','\x20verified;\x20','135875WNKZWc','210770zLJFBI','isSymbolicLink','content_mismatch','files','length','20geGAgL','schemaVersion','split','flatMap','every','log','packageVersion','home','startsWith','Unsafe\x20manifest\x20path:\x20','rabetbase.manifest.json','manifest','skills@latest\x20exited\x20','138930IwkVix','229608TSNMcE','missing','750777YnGrsG','partialFailure','status','path','189MGGnVs','isDirectory','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','utf8','rabetbase','message','SKILL.md','Symbolic\x20link\x20is\x20not\x20allowed:\x20','unverifiable','stdio','present'];a323_0x2ede=function(){return _0x4b5e71;};return a323_0x2ede();}function failure(_0x3100a3,_0x3a04d9,_0x4b7a90,_0x458b89){const _0x195367=a323_0x2d6c22;return{'ok':![],'code':_0x3100a3,'packageVersion':_0x3a04d9[_0x195367(0x15a)],'skillVersion':_0x3a04d9[_0x195367(0x191)],'installedPath':_0x458b89,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x4b7a90 instanceof Error?_0x4b7a90['message']:String(_0x4b7a90)};}export function installBuiltinSkill(_0x32ddb6={}){const _0x3fae30=a323_0x2d6c22,_0x300b22=_0x32ddb6[_0x3fae30(0x189)]??DEFAULT_PACKAGE_ROOT,_0x335562=_0x32ddb6[_0x3fae30(0x15b)]??homedir();let _0x326493;try{_0x326493=readSource(_0x300b22);}catch(_0x19c100){return failure(_0x3fae30(0x183),{'packageVersion':_0x3fae30(0x174),'skillVersion':_0x3fae30(0x174)},_0x19c100);}const _0x2e2516=inspectBuiltinSkill({'packageRoot':_0x300b22,'home':_0x335562}),_0x1cf809=runNpxSkillsAddGlobal(_0x300b22,_0x326493['root'],{'stdio':_0x32ddb6[_0x3fae30(0x171)]??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0x335562}});if(_0x1cf809[_0x3fae30(0x179)])return{'ok':!![],'packageVersion':_0x326493[_0x3fae30(0x15a)],'skillVersion':_0x326493[_0x3fae30(0x191)],'installedPath':_0x2e2516[_0x3fae30(0x18e)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x1cf809['ok'])return failure('INSTALL_FAILED',_0x326493,_0x1cf809[_0x3fae30(0x182)]??_0x3fae30(0x160)+_0x1cf809[_0x3fae30(0x166)]);const _0x4c09c7=inspectBuiltinSkill({'packageRoot':_0x300b22,'home':_0x335562});if(_0x4c09c7[_0x3fae30(0x18b)]!=='current'){const _0x35ca06=_0x4c09c7[_0x3fae30(0x18f)]??_0x3fae30(0x177)+_0x4c09c7[_0x3fae30(0x18b)];return failure(_0x3fae30(0x180),_0x326493,_0x1cf809[_0x3fae30(0x165)]?_0x35ca06+'\x0a'+_0x1cf809[_0x3fae30(0x165)]['output']:_0x35ca06,_0x4c09c7['installedPath']);}return _0x1cf809[_0x3fae30(0x165)]&&(debug(_0x3fae30(0x185),_0x1cf809[_0x3fae30(0x165)][_0x3fae30(0x176)]),console[_0x3fae30(0x159)]('CLI\x20Built-in\x20Skill\x20'+_0x326493[_0x3fae30(0x191)]+_0x3fae30(0x14d)+_0x1cf809[_0x3fae30(0x165)]['count']+_0x3fae30(0x190))),{'ok':!![],'packageVersion':_0x326493['packageVersion'],'skillVersion':_0x326493[_0x3fae30(0x191)],'installedPath':_0x4c09c7[_0x3fae30(0x18e)],'changed':_0x2e2516[_0x3fae30(0x18b)]!==_0x3fae30(0x17a),'repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
1
- (function(_0x15138d,_0x227060){const _0x3cd380=a323_0x5a44,_0x30bdcb=_0x15138d();while(!![]){try{const _0xeb9557=parseInt(_0x3cd380(0x214))/0x1+-parseInt(_0x3cd380(0x1f8))/0x2+-parseInt(_0x3cd380(0x215))/0x3*(parseInt(_0x3cd380(0x1f9))/0x4)+parseInt(_0x3cd380(0x208))/0x5+parseInt(_0x3cd380(0x1f5))/0x6*(parseInt(_0x3cd380(0x204))/0x7)+parseInt(_0x3cd380(0x1f4))/0x8+parseInt(_0x3cd380(0x1fa))/0x9;if(_0xeb9557===_0x227060)break;else _0x30bdcb['push'](_0x30bdcb['shift']());}catch(_0x5ab53c){_0x30bdcb['push'](_0x30bdcb['shift']());}}}(a323_0x4ef9,0xef14a));function a323_0x5a44(_0x3fe198,_0x490a03){_0x3fe198=_0x3fe198-0x1f4;const _0x4ef9f8=a323_0x4ef9();let _0x5a446d=_0x4ef9f8[_0x3fe198];return _0x5a446d;}function a323_0x4ef9(){const _0x2b5680=['(empty)','92748NlbPxT','968793XkrilA','6799440XKgkLn','142446AVLfLZ','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','--help','3297206zoKevR','4KxbgKu','1865061ftrRHT','error','log','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','add','Error:\x20Unsupported\x20command:\x20','from','length','has','help','441JrJwJu','exit','skill','argv','1526090LzXhNX','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','includes','Unsupported\x20command:\x20','push','slice','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','-$1','startsWith','setLogPath','Public\x20Open\x20Skill\x20source:\x20'];a323_0x4ef9=function(){return _0x2b5680;};return a323_0x4ef9();}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(_0x316ec7){const _0x2889ba=a323_0x5a44,_0x199476=[];for(const [_0xdfca3e,_0x158945]of Object['entries'](_0x316ec7)){if(_0x158945===!![]){const _0x50ec90=_0xdfca3e['replace'](/([A-Z])/g,_0x2889ba(0x20f))['toLowerCase']();_0x199476[_0x2889ba(0x20c)](_0x50ec90);}}return _0x199476;}export function parseDynamicFlags(){const _0x135ec4=a323_0x5a44,_0x541a9f=[];for(let _0xd50683=0x3;_0xd50683<process[_0x135ec4(0x207)][_0x135ec4(0x201)];_0xd50683++){const _0x50cd7b=process[_0x135ec4(0x207)][_0xd50683];if(_0x50cd7b&&_0x50cd7b[_0x135ec4(0x210)]('--')){const _0x56af54=_0x50cd7b[_0x135ec4(0x20d)](0x2);_0x56af54&&!_0x56af54[_0x135ec4(0x20a)]('=')&&_0x541a9f[_0x135ec4(0x20c)](_0x56af54);}}return _0x541a9f;}export function getAllProvidedFlags(_0xa78c69){const _0x199cad=a323_0x5a44,_0x578e6d=camelCaseFlagsToKebab(_0xa78c69),_0x2ab881=parseDynamicFlags(),_0x4829c7=new Set([..._0x578e6d,..._0x2ab881]);return Array[_0x199cad(0x200)](_0x4829c7);}export function normalizeLegacyBffSaveFlags(_0x33529e){const _0xea8e9c=a323_0x5a44,_0x32d672=new Set(_0x33529e);return _0x32d672[_0xea8e9c(0x202)]('dangerously-bff-save')&&_0x32d672[_0xea8e9c(0x1fe)]('enable-bff-save'),Array[_0xea8e9c(0x200)](_0x32d672);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x316580,_0x2a8111,_0x4168ca){const _0x13ab20=a323_0x5a44;logger[_0x13ab20(0x211)](process['cwd']());if(_0x4168ca?.[_0x13ab20(0x203)]||_0x316580===_0x13ab20(0x1f7)){showHelp();return;}console[_0x13ab20(0x1fb)](_0x13ab20(0x1ff)+(_0x316580||_0x13ab20(0x213))),console[_0x13ab20(0x1fc)]('\x0aAvailable\x20commands:'),console['log']('\x20\x20'+CLI_BIN_NAME+_0x13ab20(0x1f6)),console[_0x13ab20(0x1fc)](''),console[_0x13ab20(0x1fc)](_0x13ab20(0x212)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x13ab20(0x1fb)](_0x13ab20(0x206),_0x13ab20(0x20b)+_0x316580),process[_0x13ab20(0x205)](0x1);}function showHelp(){const _0x5f0180=a323_0x5a44;console[_0x5f0180(0x1fc)](_0x5f0180(0x1fd)+CLI_BIN_NAME+_0x5f0180(0x20e)+SKILLS_INSTALL_COMMAND_LINE+_0x5f0180(0x209));}
1
+ (function(_0x27f35e,_0x1f6864){const _0x440e34=a324_0x2122,_0x136bf8=_0x27f35e();while(!![]){try{const _0x3b98fc=-parseInt(_0x440e34(0xc7))/0x1*(-parseInt(_0x440e34(0xe0))/0x2)+-parseInt(_0x440e34(0xd8))/0x3+-parseInt(_0x440e34(0xd5))/0x4*(-parseInt(_0x440e34(0xdc))/0x5)+-parseInt(_0x440e34(0xc2))/0x6*(parseInt(_0x440e34(0xd1))/0x7)+-parseInt(_0x440e34(0xca))/0x8+parseInt(_0x440e34(0xd6))/0x9+parseInt(_0x440e34(0xc9))/0xa;if(_0x3b98fc===_0x1f6864)break;else _0x136bf8['push'](_0x136bf8['shift']());}catch(_0x3f0de0){_0x136bf8['push'](_0x136bf8['shift']());}}}(a324_0x4fbb,0x75195));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a324_0x2122(_0x4a1941,_0x4e57d7){_0x4a1941=_0x4a1941-0xc2;const _0x4fbb0b=a324_0x4fbb();let _0x2122ca=_0x4fbb0b[_0x4a1941];return _0x2122ca;}import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x28f146){const _0x555181=a324_0x2122,_0x433a34=[];for(const [_0x474f6e,_0x5f1bc7]of Object[_0x555181(0xd7)](_0x28f146)){if(_0x5f1bc7===!![]){const _0x5417b6=_0x474f6e[_0x555181(0xc3)](/([A-Z])/g,'-$1')[_0x555181(0xc6)]();_0x433a34[_0x555181(0xe3)](_0x5417b6);}}return _0x433a34;}export function parseDynamicFlags(){const _0x2ae5cd=a324_0x2122,_0x26a3ca=[];for(let _0x416518=0x3;_0x416518<process[_0x2ae5cd(0xd3)][_0x2ae5cd(0xc5)];_0x416518++){const _0x3108a9=process['argv'][_0x416518];if(_0x3108a9&&_0x3108a9[_0x2ae5cd(0xc4)]('--')){const _0x5bea8d=_0x3108a9[_0x2ae5cd(0xc8)](0x2);_0x5bea8d&&!_0x5bea8d['includes']('=')&&_0x26a3ca[_0x2ae5cd(0xe3)](_0x5bea8d);}}return _0x26a3ca;}export function getAllProvidedFlags(_0x1e1b98){const _0x292b1e=camelCaseFlagsToKebab(_0x1e1b98),_0x56316e=parseDynamicFlags(),_0x18b90d=new Set([..._0x292b1e,..._0x56316e]);return Array['from'](_0x18b90d);}export function normalizeLegacyBffSaveFlags(_0x593a76){const _0x1f709d=a324_0x2122,_0x170e62=new Set(_0x593a76);return _0x170e62[_0x1f709d(0xdf)](_0x1f709d(0xde))&&_0x170e62['add']('enable-bff-save'),Array[_0x1f709d(0xe2)](_0x170e62);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x1e3dc5,_0x5f3520,_0x381c72){const _0x4a064e=a324_0x2122;logger[_0x4a064e(0xdb)](process[_0x4a064e(0xda)]());if(_0x381c72?.[_0x4a064e(0xe4)]||_0x1e3dc5==='--help'){showHelp();return;}console[_0x4a064e(0xdd)]('Error:\x20Unsupported\x20command:\x20'+(_0x1e3dc5||_0x4a064e(0xcd))),console[_0x4a064e(0xcc)](_0x4a064e(0xcb)),console[_0x4a064e(0xcc)]('\x20\x20'+CLI_BIN_NAME+_0x4a064e(0xd4)),console[_0x4a064e(0xcc)](''),console[_0x4a064e(0xcc)](_0x4a064e(0xcf)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x4a064e(0xdd)]('skill',_0x4a064e(0xd2)+_0x1e3dc5),process[_0x4a064e(0xd9)](0x1);}function showHelp(){const _0x31dd37=a324_0x2122;console[_0x31dd37(0xcc)](_0x31dd37(0xd0)+CLI_BIN_NAME+_0x31dd37(0xe1)+SKILLS_INSTALL_COMMAND_LINE+_0x31dd37(0xce));}function a324_0x4fbb(){const _0xd7d22c=['\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','Public\x20Open\x20Skill\x20source:\x20','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','459991zUdKYN','Unsupported\x20command:\x20','argv','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','248ChQywD','8552403xKUrQk','entries','1875XrpYHT','exit','cwd','setLogPath','2830MWxFem','error','dangerously-bff-save','has','6TzhGHa','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','from','push','help','66noBGsz','replace','startsWith','length','toLowerCase','135377vruLpZ','slice','2187380FjhTzN','3256984sLGkHA','\x0aAvailable\x20commands:','log','(empty)'];a324_0x4fbb=function(){return _0xd7d22c;};return a324_0x4fbb();}
@@ -51,6 +51,11 @@ export interface RunNpxSkillsAddResult {
51
51
  status: number | null;
52
52
  code?: NpxSkillsErrorCode;
53
53
  error?: string;
54
+ /** 自动目标部分失败但产物存在;调用方完成内容校验后再决定最终展示。 */
55
+ partialFailure?: {
56
+ count: number;
57
+ output: string;
58
+ };
54
59
  /** 未执行 npx(RABETBASE_SKIP_NPX_SKILLS=1),仅用于测试或离线假定已安装 */
55
60
  skipped?: boolean;
56
61
  }
@@ -1 +1 @@
1
- const a324_0x1a62f8=a324_0x568c;(function(_0x98bb3f,_0x1b0582){const _0x2d52c0=a324_0x568c,_0x1e18af=_0x98bb3f();while(!![]){try{const _0x424cc5=-parseInt(_0x2d52c0(0x91))/0x1*(parseInt(_0x2d52c0(0x70))/0x2)+parseInt(_0x2d52c0(0x7b))/0x3+-parseInt(_0x2d52c0(0x87))/0x4*(-parseInt(_0x2d52c0(0x80))/0x5)+-parseInt(_0x2d52c0(0x9c))/0x6*(parseInt(_0x2d52c0(0x96))/0x7)+parseInt(_0x2d52c0(0x84))/0x8+parseInt(_0x2d52c0(0x9d))/0x9+parseInt(_0x2d52c0(0x78))/0xa*(-parseInt(_0x2d52c0(0x88))/0xb);if(_0x424cc5===_0x1b0582)break;else _0x1e18af['push'](_0x1e18af['shift']());}catch(_0x373c29){_0x1e18af['push'](_0x1e18af['shift']());}}}(a324_0x5216,0xc525f));import{execaSync}from'execa';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a324_0x1a62f8(0x95);function a324_0x5216(){const _0x288ec2=['rabetbase','message','exit\x20','add','20zITaGX','warn','presence','Installer\x20reported\x20','8088680IuNjDn','lovrabet/rabetbase','CHILD_TERMINATED','227036wNAApK','13995707qbNCRT','signal','npm_config_global','code','join','!\x20Could\x20not\x20verify\x20\x22','shortMessage','checked','stderr','1174LoLXsE','stdout','SPAWN_FAILED','log','skills@latest','121219SzNKCn','Skill\x20\x22','CHILD_EXIT_NONZERO','EPERM','stdio','npx','174XeoAwO','8972991vOCvUG','pipe','exitCode','--skill','expectedSkillName','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','SKILL_NOT_INSTALLED','inherit','unverifiable','state','2014QcvtPF','trim','match','INSTALL_PARTIAL','\x22\x20install\x20state:\x20','NPM_CONFIG_GLOBAL','ENOENT','filter','10QOyXST','present','skill','4587441XeoAFx'];a324_0x5216=function(){return _0x288ec2;};return a324_0x5216();}export const NPX_SKILLS_SUBCOMMAND_ADD=a324_0x1a62f8(0x7f);export const NPX_SKILLS_FLAG_SKILL=a324_0x1a62f8(0xa0);export const RABETBASE_SKILL_SOURCE=a324_0x1a62f8(0x85);export const RABETBASE_GLOBAL_SKILL_NAME=a324_0x1a62f8(0x7c);export const RABETBASE_SKILL_GIT_SOURCE=a324_0x1a62f8(0x6b);export function resolveGlobalSkillName(_0x48fd1f){const _0x232e29=a324_0x1a62f8;switch(_0x48fd1f[_0x232e29(0x71)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x35a62f){const _0x1d10c4=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x35a62f&&_0x1d10c4['push'](NPX_SKILLS_FLAG_SKILL,_0x35a62f),_0x1d10c4;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()][a324_0x1a62f8(0x8c)]('\x20');function a324_0x568c(_0x493472,_0x2f566a){_0x493472=_0x493472-0x6b;const _0x5216b1=a324_0x5216();let _0x568cec=_0x5216b1[_0x493472];return _0x568cec;}export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a324_0x1a62f8(0x9b),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a324_0x1a62f8(0x8c)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x4a196e,_0x3ecf2e,_0x5e03f1){return{'ok':![],'status':_0x3ecf2e,'code':_0x4a196e,'error':'['+_0x4a196e+']\x20'+_0x5e03f1};}function execaOptions(_0x441c81,_0x293bd6){const _0x2d5233=a324_0x1a62f8,_0x407acf={...process.env};return delete _0x407acf[_0x2d5233(0x8a)],delete _0x407acf[_0x2d5233(0x75)],{'cwd':_0x441c81,'stdio':_0x293bd6,'env':_0x407acf,'extendEnv':![],'shell':![],'reject':![],..._0x293bd6===_0x2d5233(0x9e)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeExecaResult(_0x153caf,_0x43767e,_0x2ac422,_0x49971f){const _0x3915ca=a324_0x1a62f8,_0x27ea05=[_0x153caf[_0x3915ca(0x92)]?String(_0x153caf['stdout']):'',_0x153caf[_0x3915ca(0x90)]?String(_0x153caf[_0x3915ca(0x90)]):''][_0x3915ca(0x77)](Boolean)['join']('\x0a')['trim'](),_0x295be4=_0x153caf[_0x3915ca(0x9f)]??null;_0x49971f!==_0x3915ca(0x9e)&&_0x27ea05&&console[_0x3915ca(0x94)](_0x27ea05);if(_0x153caf[_0x3915ca(0x8b)]){const _0x383e2f=_0x153caf[_0x3915ca(0x8b)]===_0x3915ca(0x76)?'NPX_NOT_FOUND':_0x153caf['code']===_0x3915ca(0x99)||_0x153caf[_0x3915ca(0x8b)]==='EACCES'?'PERMISSION_DENIED':_0x3915ca(0x93);return failure(_0x383e2f,_0x295be4,_0x153caf[_0x3915ca(0x8e)]??_0x153caf['message']??_0x153caf[_0x3915ca(0x8b)]);}if(_0x153caf[_0x3915ca(0x89)])return failure(_0x3915ca(0x86),_0x295be4,'npx\x20terminated\x20by\x20signal\x20'+_0x153caf[_0x3915ca(0x89)]);if(_0x153caf['failed']&&_0x295be4===null)return failure('SPAWN_FAILED',_0x295be4,_0x153caf[_0x3915ca(0x8e)]??_0x153caf[_0x3915ca(0x7d)]??'npx\x20failed\x20to\x20start');if(_0x295be4!==0x0)return failure(_0x3915ca(0x98),_0x295be4,_0x27ea05||_0x153caf['shortMessage']||_0x3915ca(0x7e)+(_0x295be4??'unknown'));const _0x60b029=_0x43767e?resolveInstalledSkill(_0x43767e,_0x2ac422):undefined,_0x343523=_0x27ea05[_0x3915ca(0x72)](/Failed to install\s+(\d+)/i);if(_0x343523&&Number(_0x343523[0x1])>0x0){const _0x3e30f9=_0x3915ca(0x83)+_0x343523[0x1]+'\x20failed\x20target(s)'+(_0x27ea05?':\x0a'+_0x27ea05:'');if(_0x60b029?.[_0x3915ca(0x6f)]===_0x3915ca(0x79))return console['warn']('!\x20'+_0x3e30f9),{'ok':!![],'status':0x0};return failure(_0x3915ca(0x73),0x0,_0x3e30f9);}if(_0x60b029){if(_0x60b029[_0x3915ca(0x6f)]==='absent')return failure(_0x3915ca(0x6c),0x0,_0x3915ca(0x97)+_0x43767e+'\x22\x20not\x20found\x20after\x20install\x20(checked\x20'+_0x60b029[_0x3915ca(0x8f)][_0x3915ca(0x8c)](',\x20')+')');_0x60b029[_0x3915ca(0x6f)]===_0x3915ca(0x6e)&&console[_0x3915ca(0x81)](_0x3915ca(0x8d)+_0x43767e+_0x3915ca(0x74)+_0x60b029['reason']);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x3f1cb1,_0x408673){const _0x3a3163=a324_0x1a62f8;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x37359d=_0x408673?.[_0x3a3163(0x9a)]??_0x3a3163(0x6d),_0x34aabf=buildNpxSkillsAddArgv(_0x408673?.[_0x3a3163(0x7a)]),_0x474d56=[_0x3a3163(0x9b),..._0x34aabf]['join']('\x20');console[_0x3a3163(0x94)]('*\x20'+_0x474d56);const _0x213870=execaSync('npx',_0x34aabf,execaOptions(_0x3f1cb1,_0x37359d));return normalizeExecaResult(_0x213870,undefined,undefined,_0x37359d);}export function runNpxSkillsAddGlobal(_0x49c725,_0x569259,_0x5c8f28){const _0xd76181=a324_0x1a62f8;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x48dc30=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x569259,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x9e29e7=['npx',NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x569259,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0xd76181(0x8c)]('\x20');console[_0xd76181(0x94)]('*\x20'+_0x9e29e7);const _0x357fb4=execaSync(_0xd76181(0x9b),_0x48dc30,execaOptions(_0x49c725,'pipe'));return normalizeExecaResult(_0x357fb4,_0x5c8f28?.[_0xd76181(0xa1)]??resolveGlobalSkillName(_0x569259),_0x5c8f28?.[_0xd76181(0x82)],_0x5c8f28?.[_0xd76181(0x9a)]);}
1
+ const a325_0x512530=a325_0x1f7d;(function(_0xe567ab,_0x2d8699){const _0x4aeeca=a325_0x1f7d,_0x436c87=_0xe567ab();while(!![]){try{const _0x74f432=parseInt(_0x4aeeca(0xec))/0x1*(parseInt(_0x4aeeca(0x111))/0x2)+parseInt(_0x4aeeca(0xfc))/0x3+-parseInt(_0x4aeeca(0xf5))/0x4*(-parseInt(_0x4aeeca(0x107))/0x5)+-parseInt(_0x4aeeca(0xef))/0x6+-parseInt(_0x4aeeca(0xe5))/0x7*(-parseInt(_0x4aeeca(0x105))/0x8)+parseInt(_0x4aeeca(0x10c))/0x9*(-parseInt(_0x4aeeca(0xfd))/0xa)+parseInt(_0x4aeeca(0x121))/0xb*(parseInt(_0x4aeeca(0x10f))/0xc);if(_0x74f432===_0x2d8699)break;else _0x436c87['push'](_0x436c87['shift']());}catch(_0x48275c){_0x436c87['push'](_0x436c87['shift']());}}}(a325_0xba7b,0xeb2d0));import{execaSync}from'execa';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a325_0x512530(0xf6);export const NPX_SKILLS_SUBCOMMAND_ADD=a325_0x512530(0x114);export const NPX_SKILLS_FLAG_SKILL=a325_0x512530(0x10d);export const RABETBASE_SKILL_SOURCE=a325_0x512530(0x110);export const RABETBASE_GLOBAL_SKILL_NAME=a325_0x512530(0x115);export const RABETBASE_SKILL_GIT_SOURCE=a325_0x512530(0xed);function a325_0xba7b(){const _0x476502=['Skill\x20\x22','npx\x20terminated\x20by\x20signal\x20','inherit','CHILD_TERMINATED','stdout','join','trim','EPERM','18678319xLAbbF','413bDhWFe','failed','stderr','ENOENT','presence','SPAWN_FAILED','SKILL_NOT_INSTALLED','369293fEFJHq','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','code','10816926ALoHgL','Installer\x20reported\x20','absent','present','push','npx','1710008HjLcAl','skills@latest','npm_config_global','pipe','exit\x20','\x22\x20install\x20state:\x20','unknown','938451VxIAPz','10310530kqrAmp','state','message','CHILD_EXIT_NONZERO','partialFailure','signal','match','unverifiable','34024tnaZri','\x20failed\x20target(s)','5jLOMHK','stdio','checked','skill','exitCode','9mjeDmG','--skill','EACCES','12VwyHfp','lovrabet/rabetbase','6kXsVIH','INSTALL_PARTIAL','expectedSkillName','add','rabetbase','filter','warn','shortMessage'];a325_0xba7b=function(){return _0x476502;};return a325_0xba7b();}export function resolveGlobalSkillName(_0x3ea637){const _0x22d687=a325_0x512530;switch(_0x3ea637[_0x22d687(0x11f)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x4aec8c){const _0x6b31dc=a325_0x512530,_0x108632=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x4aec8c&&_0x108632[_0x6b31dc(0xf3)](NPX_SKILLS_FLAG_SKILL,_0x4aec8c),_0x108632;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a325_0x512530(0xf4),...buildNpxSkillsAddArgv()][a325_0x512530(0x11e)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x5c5818,_0x9699a8,_0x5d25fc){return{'ok':![],'status':_0x9699a8,'code':_0x5c5818,'error':'['+_0x5c5818+']\x20'+_0x5d25fc};}function a325_0x1f7d(_0x1d6ffa,_0x7f15f){_0x1d6ffa=_0x1d6ffa-0xe5;const _0xba7b72=a325_0xba7b();let _0x1f7d62=_0xba7b72[_0x1d6ffa];return _0x1f7d62;}function execaOptions(_0x38dc97,_0x40a1f0){const _0x39e891=a325_0x512530,_0x303b87={...process.env};return delete _0x303b87[_0x39e891(0xf7)],delete _0x303b87['NPM_CONFIG_GLOBAL'],{'cwd':_0x38dc97,'stdio':_0x40a1f0,'env':_0x303b87,'extendEnv':![],'shell':![],'reject':![],..._0x40a1f0==='pipe'?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeExecaResult(_0xae1648,_0x2673ef,_0x24cb38){const _0x22a8c6=a325_0x512530,_0x2d385e=[_0xae1648[_0x22a8c6(0x11d)]?String(_0xae1648['stdout']):'',_0xae1648[_0x22a8c6(0xe7)]?String(_0xae1648[_0x22a8c6(0xe7)]):''][_0x22a8c6(0x116)](Boolean)[_0x22a8c6(0x11e)]('\x0a')[_0x22a8c6(0x11f)](),_0x378359=_0xae1648[_0x22a8c6(0x10b)]??null;if(_0xae1648[_0x22a8c6(0xee)]){const _0x489894=_0xae1648['code']===_0x22a8c6(0xe8)?'NPX_NOT_FOUND':_0xae1648[_0x22a8c6(0xee)]===_0x22a8c6(0x120)||_0xae1648['code']===_0x22a8c6(0x10e)?'PERMISSION_DENIED':'SPAWN_FAILED';return failure(_0x489894,_0x378359,_0xae1648[_0x22a8c6(0x118)]??_0xae1648['message']??_0xae1648[_0x22a8c6(0xee)]);}if(_0xae1648[_0x22a8c6(0x102)])return failure(_0x22a8c6(0x11c),_0x378359,_0x22a8c6(0x11a)+_0xae1648[_0x22a8c6(0x102)]);if(_0xae1648[_0x22a8c6(0xe6)]&&_0x378359===null)return failure(_0x22a8c6(0xea),_0x378359,_0xae1648[_0x22a8c6(0x118)]??_0xae1648[_0x22a8c6(0xff)]??'npx\x20failed\x20to\x20start');if(_0x378359!==0x0)return failure(_0x22a8c6(0x100),_0x378359,_0x2d385e||_0xae1648[_0x22a8c6(0x118)]||_0x22a8c6(0xf9)+(_0x378359??_0x22a8c6(0xfb)));const _0x5c0731=_0x2673ef?resolveInstalledSkill(_0x2673ef,_0x24cb38):undefined,_0x456c02=_0x2d385e[_0x22a8c6(0x103)](/Failed to install\s+(\d+)/i);if(_0x456c02&&Number(_0x456c02[0x1])>0x0){const _0x3b54a7=_0x22a8c6(0xf0)+_0x456c02[0x1]+_0x22a8c6(0x106)+(_0x2d385e?':\x0a'+_0x2d385e:'');if(_0x5c0731?.['state']===_0x22a8c6(0xf2))return{'ok':!![],'status':0x0,'partialFailure':{'count':Number(_0x456c02[0x1]),'output':_0x2d385e}};return failure(_0x22a8c6(0x112),0x0,_0x3b54a7);}if(_0x5c0731){if(_0x5c0731[_0x22a8c6(0xfe)]===_0x22a8c6(0xf1))return failure(_0x22a8c6(0xeb),0x0,_0x22a8c6(0x119)+_0x2673ef+'\x22\x20not\x20found\x20after\x20install\x20(checked\x20'+_0x5c0731[_0x22a8c6(0x109)][_0x22a8c6(0x11e)](',\x20')+')');_0x5c0731[_0x22a8c6(0xfe)]===_0x22a8c6(0x104)&&console[_0x22a8c6(0x117)]('!\x20Could\x20not\x20verify\x20\x22'+_0x2673ef+_0x22a8c6(0xfa)+_0x5c0731['reason']);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x3a69e6,_0x21e34b){const _0x1b6c61=a325_0x512530;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4ec913=_0x21e34b?.[_0x1b6c61(0x108)]??_0x1b6c61(0x11b),_0x1dc3d5=buildNpxSkillsAddArgv(_0x21e34b?.[_0x1b6c61(0x10a)]),_0x11e509=[_0x1b6c61(0xf4),..._0x1dc3d5]['join']('\x20');console['log']('*\x20'+_0x11e509);const _0x4b3305=execaSync('npx',_0x1dc3d5,execaOptions(_0x3a69e6,_0x4ec913));return normalizeExecaResult(_0x4b3305);}export function runNpxSkillsAddGlobal(_0x14d129,_0x2cd574,_0x251e9a){const _0x4b56d8=a325_0x512530;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3eb881=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x2cd574,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x39573b=[_0x4b56d8(0xf4),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x2cd574,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x4b56d8(0x11e)]('\x20');console['log']('*\x20'+_0x39573b);const _0x182138=execaSync(_0x4b56d8(0xf4),_0x3eb881,execaOptions(_0x14d129,_0x4b56d8(0xf8))),_0x32f3dc=normalizeExecaResult(_0x182138,_0x251e9a?.[_0x4b56d8(0x113)]??resolveGlobalSkillName(_0x2cd574),_0x251e9a?.[_0x4b56d8(0xe9)]);if(_0x251e9a?.['stdio']!==_0x4b56d8(0xf8)&&!_0x32f3dc[_0x4b56d8(0x101)]){const _0x113a01=[_0x182138[_0x4b56d8(0x11d)],_0x182138['stderr']]['filter'](Boolean)[_0x4b56d8(0x11e)]('\x0a')[_0x4b56d8(0x11f)]();if(_0x113a01)console['log'](_0x113a01);}return _0x32f3dc;}
@@ -1 +1 @@
1
- function a325_0x4e52(_0x3f8c9d,_0x248091){_0x3f8c9d=_0x3f8c9d-0xe2;const _0x464a1c=a325_0x464a();let _0x4e525a=_0x464a1c[_0x3f8c9d];return _0x4e525a;}const a325_0xaf381d=a325_0x4e52;(function(_0x57f06c,_0x5e7752){const _0x5f382d=a325_0x4e52,_0x3b5237=_0x57f06c();while(!![]){try{const _0x13b42f=parseInt(_0x5f382d(0x106))/0x1+parseInt(_0x5f382d(0xee))/0x2*(parseInt(_0x5f382d(0xf6))/0x3)+parseInt(_0x5f382d(0xe7))/0x4*(-parseInt(_0x5f382d(0x107))/0x5)+-parseInt(_0x5f382d(0xe2))/0x6+-parseInt(_0x5f382d(0x104))/0x7*(parseInt(_0x5f382d(0xef))/0x8)+-parseInt(_0x5f382d(0xe5))/0x9*(-parseInt(_0x5f382d(0xf8))/0xa)+parseInt(_0x5f382d(0x100))/0xb*(parseInt(_0x5f382d(0xe6))/0xc);if(_0x13b42f===_0x5e7752)break;else _0x3b5237['push'](_0x3b5237['shift']());}catch(_0x495803){_0x3b5237['push'](_0x3b5237['shift']());}}}(a325_0x464a,0x59c1c));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';function a325_0x464a(){const _0x1770c4=['recorded','message','lockFile','number','not-recorded','includes','211695WrVLTf','\x20records\x20\x22','4139020ADjxgy','object','absent','skills','reason','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','map','find','726396Pypfdq','home','unusable','.agents','1620437ZCAnmW','\x20has\x20no\x20skills\x20map','536050kcqDxi','1825bUzxAB','2458554jIMduD','unverifiable','kind','9vpaWby','24DFqVIJ','4668KnPtxz','present','version','globalSkillsDirs','\x20uses\x20unsupported\x20version\x20','parse','\x20is\x20unreadable:\x20','10fvckDZ','8cbzbYk'];a325_0x464a=function(){return _0x1770c4;};return a325_0x464a();}import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a325_0xaf381d(0x103),'.skill-lock.json');export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a325_0xaf381d(0x103),a325_0xaf381d(0xfb)),join('.claude',a325_0xaf381d(0xfb))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x3e1bc7,_0x27e789){const _0x1d209b=a325_0xaf381d;if(!existsSync(_0x3e1bc7))return{'kind':_0x1d209b(0xf4)};let _0x49784e;try{_0x49784e=JSON[_0x1d209b(0xec)](readFileSync(_0x3e1bc7,'utf8'));}catch(_0x20ee29){return{'kind':_0x1d209b(0x102),'reason':_0x3e1bc7+_0x1d209b(0xed)+_0x20ee29[_0x1d209b(0xf1)]};}const _0x1f855c=_0x49784e;if(typeof _0x1f855c?.['version']!==_0x1d209b(0xf3)||!SUPPORTED_LOCK_VERSIONS[_0x1d209b(0xf5)](_0x1f855c[_0x1d209b(0xe9)]))return{'kind':_0x1d209b(0x102),'reason':_0x3e1bc7+_0x1d209b(0xeb)+String(_0x1f855c?.[_0x1d209b(0xe9)])};if(!_0x1f855c['skills']||typeof _0x1f855c[_0x1d209b(0xfb)]!==_0x1d209b(0xf9))return{'kind':_0x1d209b(0x102),'reason':_0x3e1bc7+_0x1d209b(0x105)};return _0x1f855c[_0x1d209b(0xfb)][_0x27e789]?{'kind':'recorded'}:{'kind':_0x1d209b(0xf4)};}export function resolveInstalledSkill(_0x113423,_0x31f336){const _0x10f4a8=a325_0xaf381d,_0x377169=_0x31f336?.[_0x10f4a8(0x101)]??homedir(),_0x11b141=_0x31f336?.[_0x10f4a8(0xea)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x10f4a8(0xfe)](_0x587bb1=>join(_0x377169,_0x587bb1)),_0x461feb=_0x31f336?.[_0x10f4a8(0xf2)]??join(_0x377169,SKILL_LOCK_RELATIVE_PATH),_0x174550=_0x11b141['map'](_0x2d9db2=>join(_0x2d9db2,_0x113423,'SKILL.md')),_0x5787a4=_0x174550[_0x10f4a8(0xff)](_0x56fdcf=>existsSync(_0x56fdcf));if(_0x5787a4)return{'state':_0x10f4a8(0xe8),'path':_0x5787a4};const _0x1caf5e=readLockLookup(_0x461feb,_0x113423);if(_0x1caf5e['kind']===_0x10f4a8(0x102))return{'state':_0x10f4a8(0xe3),'reason':_0x1caf5e[_0x10f4a8(0xfc)]};if(_0x1caf5e[_0x10f4a8(0xe4)]===_0x10f4a8(0xf0))return{'state':_0x10f4a8(0xe3),'reason':_0x461feb+_0x10f4a8(0xf7)+_0x113423+_0x10f4a8(0xfd)+('('+_0x174550['join'](',\x20')+')')};return{'state':_0x10f4a8(0xfa),'checked':_0x174550};}
1
+ const a326_0x1e5b02=a326_0x1105;(function(_0x51d1bb,_0x42e820){const _0x3a4c4f=a326_0x1105,_0x3937e8=_0x51d1bb();while(!![]){try{const _0x595f2e=parseInt(_0x3a4c4f(0xbb))/0x1+parseInt(_0x3a4c4f(0x9f))/0x2*(-parseInt(_0x3a4c4f(0x9e))/0x3)+parseInt(_0x3a4c4f(0xa4))/0x4+-parseInt(_0x3a4c4f(0xb2))/0x5*(parseInt(_0x3a4c4f(0xba))/0x6)+-parseInt(_0x3a4c4f(0xbf))/0x7*(parseInt(_0x3a4c4f(0xac))/0x8)+parseInt(_0x3a4c4f(0xa6))/0x9*(-parseInt(_0x3a4c4f(0xb1))/0xa)+parseInt(_0x3a4c4f(0xb0))/0xb;if(_0x595f2e===_0x42e820)break;else _0x3937e8['push'](_0x3937e8['shift']());}catch(_0x253e85){_0x3937e8['push'](_0x3937e8['shift']());}}}(a326_0x7882,0x33eba));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';function a326_0x1105(_0x22e3e5,_0xa03b4){_0x22e3e5=_0x22e3e5-0x99;const _0x788224=a326_0x7882();let _0x110554=_0x788224[_0x22e3e5];return _0x110554;}import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a326_0x1e5b02(0xab),a326_0x1e5b02(0xa9));function a326_0x7882(){const _0x199868=['map','number','2046cPFBjZ','788hRVyIA','absent','not-recorded','utf8','message','559292KKtktV','\x20uses\x20unsupported\x20version\x20','9ylzdMs','unverifiable','reason','.skill-lock.json','join','.agents','721168LrlDmq','SKILL.md','object','present','8147436gocndv','1469060VMTwqG','1600045XUZsXD','recorded','parse','globalSkillsDirs','home','find','.claude','\x20records\x20\x22','6qpCrSA','157936YUUhbj','unusable','skills','\x20has\x20no\x20skills\x20map','7uJvnNH','version','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','kind','\x20is\x20unreadable:\x20'];a326_0x7882=function(){return _0x199868;};return a326_0x7882();}export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a326_0x1e5b02(0xab),a326_0x1e5b02(0xbd)),join(a326_0x1e5b02(0xb8),a326_0x1e5b02(0xbd))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x49ee4b,_0x2e9b1a){const _0x5b374f=a326_0x1e5b02;if(!existsSync(_0x49ee4b))return{'kind':_0x5b374f(0xa1)};let _0x5772cf;try{_0x5772cf=JSON[_0x5b374f(0xb4)](readFileSync(_0x49ee4b,_0x5b374f(0xa2)));}catch(_0x4060f0){return{'kind':_0x5b374f(0xbc),'reason':_0x49ee4b+_0x5b374f(0x9b)+_0x4060f0[_0x5b374f(0xa3)]};}const _0x54f4e3=_0x5772cf;if(typeof _0x54f4e3?.[_0x5b374f(0xc0)]!==_0x5b374f(0x9d)||!SUPPORTED_LOCK_VERSIONS['includes'](_0x54f4e3[_0x5b374f(0xc0)]))return{'kind':'unusable','reason':_0x49ee4b+_0x5b374f(0xa5)+String(_0x54f4e3?.[_0x5b374f(0xc0)])};if(!_0x54f4e3[_0x5b374f(0xbd)]||typeof _0x54f4e3[_0x5b374f(0xbd)]!==_0x5b374f(0xae))return{'kind':_0x5b374f(0xbc),'reason':_0x49ee4b+_0x5b374f(0xbe)};return _0x54f4e3['skills'][_0x2e9b1a]?{'kind':_0x5b374f(0xb3)}:{'kind':_0x5b374f(0xa1)};}export function resolveInstalledSkill(_0x35d70c,_0x5138dc){const _0x194ff4=a326_0x1e5b02,_0x56a0e6=_0x5138dc?.[_0x194ff4(0xb6)]??homedir(),_0x1adf75=_0x5138dc?.[_0x194ff4(0xb5)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x194ff4(0x9c)](_0x165f8b=>join(_0x56a0e6,_0x165f8b)),_0x345740=_0x5138dc?.['lockFile']??join(_0x56a0e6,SKILL_LOCK_RELATIVE_PATH),_0x5a9cc0=_0x1adf75[_0x194ff4(0x9c)](_0x282a78=>join(_0x282a78,_0x35d70c,_0x194ff4(0xad))),_0xd19f12=_0x5a9cc0[_0x194ff4(0xb7)](_0x3b630c=>existsSync(_0x3b630c));if(_0xd19f12)return{'state':_0x194ff4(0xaf),'path':_0xd19f12};const _0x3e57e8=readLockLookup(_0x345740,_0x35d70c);if(_0x3e57e8[_0x194ff4(0x9a)]===_0x194ff4(0xbc))return{'state':_0x194ff4(0xa7),'reason':_0x3e57e8[_0x194ff4(0xa8)]};if(_0x3e57e8['kind']===_0x194ff4(0xb3))return{'state':_0x194ff4(0xa7),'reason':_0x345740+_0x194ff4(0xb9)+_0x35d70c+_0x194ff4(0x99)+('('+_0x5a9cc0[_0x194ff4(0xaa)](',\x20')+')')};return{'state':_0x194ff4(0xa0),'checked':_0x5a9cc0};}
@@ -1 +1 @@
1
- function a326_0xc04b(){const _0x3b6c54=['710WEZUTv','4856382knasca','9412080xuBERB','243551mHaUtZ','4001orZlYD','durationMs','command','test','3170367bSEnkU','40WdQXUK','49566wkQPQZ','710XVPdsk','497NwQBRN','flags','202056unTVZN','some','[REDACTED]','service','error'];a326_0xc04b=function(){return _0x3b6c54;};return a326_0xc04b();}(function(_0x16f708,_0x10c13f){const _0x568d9a=a326_0x2883,_0x54eb99=_0x16f708();while(!![]){try{const _0x578573=parseInt(_0x568d9a(0x1b9))/0x1*(parseInt(_0x568d9a(0x1b5))/0x2)+parseInt(_0x568d9a(0x1b6))/0x3+-parseInt(_0x568d9a(0x1c3))/0x4+parseInt(_0x568d9a(0x1b7))/0x5+parseInt(_0x568d9a(0x1bf))/0x6*(-parseInt(_0x568d9a(0x1c1))/0x7)+-parseInt(_0x568d9a(0x1be))/0x8*(parseInt(_0x568d9a(0x1bd))/0x9)+parseInt(_0x568d9a(0x1c0))/0xa*(-parseInt(_0x568d9a(0x1b8))/0xb);if(_0x578573===_0x10c13f)break;else _0x54eb99['push'](_0x54eb99['shift']());}catch(_0x3a3951){_0x54eb99['push'](_0x54eb99['shift']());}}}(a326_0xc04b,0xe839a));function a326_0x2883(_0x39ab1d,_0x386ad7){_0x39ab1d=_0x39ab1d-0x1b3;const _0xc04b9a=a326_0xc04b();let _0x28830d=_0xc04b9a[_0x39ab1d];return _0x28830d;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x2de1e4){const _0x909b9d=a326_0x2883;return SENSITIVE_PATTERNS[_0x909b9d(0x1c4)](_0x5a9a9a=>_0x5a9a9a[_0x909b9d(0x1bc)](_0x2de1e4));}function sanitizeFlags(_0x5a67eb){const _0x1543e7=a326_0x2883,_0x482108={};for(const [_0x5a7374,_0x353efc]of Object['entries'](_0x5a67eb)){isSensitiveKey(_0x5a7374)?_0x482108[_0x5a7374]=_0x353efc!=null&&_0x353efc!==''?_0x1543e7(0x1c5):_0x353efc:_0x482108[_0x5a7374]=_0x353efc;}return _0x482108;}export async function reportCommandTrace(_0x481f58){const _0x4b62d4=a326_0x2883;try{const _0xbebe53=sanitizeFlags(_0x481f58[_0x4b62d4(0x1c2)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x481f58[_0x4b62d4(0x1b3)],'command.name':_0x481f58[_0x4b62d4(0x1bb)],'command.flags':JSON['stringify'](_0xbebe53),..._0x481f58[_0x4b62d4(0x1ba)]!=null?{'command.duration_ms':_0x481f58[_0x4b62d4(0x1ba)]}:{},..._0x481f58[_0x4b62d4(0x1b4)]?{'command.error':_0x481f58['error']instanceof Error?_0x481f58['error']['message']:String(_0x481f58[_0x4b62d4(0x1b4)])}:{}}});}catch{}}
1
+ (function(_0xd1bbd2,_0x458eec){const _0x2849ca=a327_0x4203,_0x4048b7=_0xd1bbd2();while(!![]){try{const _0x1df112=parseInt(_0x2849ca(0x103))/0x1*(parseInt(_0x2849ca(0x105))/0x2)+-parseInt(_0x2849ca(0x106))/0x3+-parseInt(_0x2849ca(0xf9))/0x4+parseInt(_0x2849ca(0xfa))/0x5+parseInt(_0x2849ca(0xfe))/0x6+-parseInt(_0x2849ca(0xff))/0x7*(parseInt(_0x2849ca(0xfc))/0x8)+parseInt(_0x2849ca(0xfd))/0x9*(parseInt(_0x2849ca(0x108))/0xa);if(_0x1df112===_0x458eec)break;else _0x4048b7['push'](_0x4048b7['shift']());}catch(_0x11f81c){_0x4048b7['push'](_0x4048b7['shift']());}}}(a327_0x56d5,0x93512));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a327_0x56d5(){const _0xa82476=['553725HvqRJf','message','457296jzcoNN','7713rgUjMJ','3041844wAkoRh','35svWnsK','test','flags','stringify','1PmwELD','some','518002YPYipS','2521512dhjYcv','command','22520WZqMhG','rabetbase.command','entries','durationMs','error','4307840kVOyGx'];a327_0x56d5=function(){return _0xa82476;};return a327_0x56d5();}import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x5594cd){const _0x51f4cd=a327_0x4203;return SENSITIVE_PATTERNS[_0x51f4cd(0x104)](_0x4a3be7=>_0x4a3be7[_0x51f4cd(0x100)](_0x5594cd));}function sanitizeFlags(_0x5bb98f){const _0x3cc004=a327_0x4203,_0x1fb484={};for(const [_0x4a3870,_0x51fb12]of Object[_0x3cc004(0xf6)](_0x5bb98f)){isSensitiveKey(_0x4a3870)?_0x1fb484[_0x4a3870]=_0x51fb12!=null&&_0x51fb12!==''?'[REDACTED]':_0x51fb12:_0x1fb484[_0x4a3870]=_0x51fb12;}return _0x1fb484;}function a327_0x4203(_0x4652e5,_0x2e3211){_0x4652e5=_0x4652e5-0xf6;const _0x56d56a=a327_0x56d5();let _0x42038a=_0x56d56a[_0x4652e5];return _0x42038a;}export async function reportCommandTrace(_0x3516b9){const _0x322280=a327_0x4203;try{const _0x1f32a8=sanitizeFlags(_0x3516b9[_0x322280(0x101)]);await sendCliTraceLog({'spanName':_0x322280(0x109),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x3516b9['service'],'command.name':_0x3516b9[_0x322280(0x107)],'command.flags':JSON[_0x322280(0x102)](_0x1f32a8),..._0x3516b9[_0x322280(0xf7)]!=null?{'command.duration_ms':_0x3516b9['durationMs']}:{},..._0x3516b9['error']?{'command.error':_0x3516b9[_0x322280(0xf8)]instanceof Error?_0x3516b9[_0x322280(0xf8)][_0x322280(0xfb)]:String(_0x3516b9[_0x322280(0xf8)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x208dd3,_0x3d9644){var _0x16690f=a327_0x51a2,_0xcc321b=_0x208dd3();while(!![]){try{var _0x240a98=parseInt(_0x16690f(0x195))/0x1*(parseInt(_0x16690f(0x191))/0x2)+-parseInt(_0x16690f(0x19b))/0x3+parseInt(_0x16690f(0x198))/0x4+parseInt(_0x16690f(0x196))/0x5*(parseInt(_0x16690f(0x197))/0x6)+-parseInt(_0x16690f(0x19a))/0x7*(-parseInt(_0x16690f(0x192))/0x8)+parseInt(_0x16690f(0x199))/0x9+-parseInt(_0x16690f(0x18f))/0xa;if(_0x240a98===_0x3d9644)break;else _0xcc321b['push'](_0xcc321b['shift']());}catch(_0x1a47b3){_0xcc321b['push'](_0xcc321b['shift']());}}}(a327_0x6692,0x9dfe5));function a327_0x6692(){var _0x4147c5=['1032596IKaYcv','6949665BWmYkU','439957lzWXVH','3205920xIRqcR','10973690psyzPO','cli.help','182VOECvk','136utSNeV','service','Failed\x20to\x20report\x20CLI\x20help\x20trace:','1583iCopWG','5GzklDr','3421776PEmrfA'];a327_0x6692=function(){return _0x4147c5;};return a327_0x6692();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a327_0x51a2(_0x210867,_0x452f1b){_0x210867=_0x210867-0x18f;var _0x669288=a327_0x6692();var _0x51a26f=_0x669288[_0x210867];return _0x51a26f;}export async function reportCliHelpTrace(_0x1ae0e3,_0x1993f6){var _0x1bbd9f=a327_0x51a2;try{await sendCliTraceLog({'spanName':_0x1bbd9f(0x190),'logData':{'rabetbase.help.kind':_0x1ae0e3,..._0x1993f6?.[_0x1bbd9f(0x193)]&&{'rabetbase.help.service':_0x1993f6[_0x1bbd9f(0x193)]}}});}catch(_0x15c5aa){console['error'](_0x1bbd9f(0x194),_0x15c5aa);}}
1
+ (function(_0x2ad561,_0x1eb643){var _0x408167=a328_0x1fa5,_0x4acc67=_0x2ad561();while(!![]){try{var _0xa45fef=parseInt(_0x408167(0xd8))/0x1+parseInt(_0x408167(0xe6))/0x2*(-parseInt(_0x408167(0xd7))/0x3)+parseInt(_0x408167(0xd9))/0x4*(parseInt(_0x408167(0xe2))/0x5)+-parseInt(_0x408167(0xe1))/0x6+parseInt(_0x408167(0xda))/0x7*(parseInt(_0x408167(0xde))/0x8)+parseInt(_0x408167(0xe4))/0x9*(parseInt(_0x408167(0xe5))/0xa)+-parseInt(_0x408167(0xdb))/0xb*(parseInt(_0x408167(0xdc))/0xc);if(_0xa45fef===_0x1eb643)break;else _0x4acc67['push'](_0x4acc67['shift']());}catch(_0x5da775){_0x4acc67['push'](_0x4acc67['shift']());}}}(a328_0x379b,0x62552));function a328_0x379b(){var _0x231581=['41862WtreFm','45avHffc','616988nNJfcl','260zvRjMP','7mveVrD','11XPSuMC','14871228agsNjj','error','5683856Zlougc','Failed\x20to\x20report\x20CLI\x20help\x20trace:','service','902340yNzwHN','695FeXsVT','cli.help','9aDidIu','7698890cyHRQc'];a328_0x379b=function(){return _0x231581;};return a328_0x379b();}function a328_0x1fa5(_0xd10856,_0x5ed7ac){_0xd10856=_0xd10856-0xd7;var _0x379b77=a328_0x379b();var _0x1fa5e3=_0x379b77[_0xd10856];return _0x1fa5e3;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x19df7d,_0x24a16a){var _0x27f327=a328_0x1fa5;try{await sendCliTraceLog({'spanName':_0x27f327(0xe3),'logData':{'rabetbase.help.kind':_0x19df7d,..._0x24a16a?.[_0x27f327(0xe0)]&&{'rabetbase.help.service':_0x24a16a[_0x27f327(0xe0)]}}});}catch(_0x1a93c7){console[_0x27f327(0xdd)](_0x27f327(0xdf),_0x1a93c7);}}
@@ -1 +1 @@
1
- (function(_0x394d68,_0x4b619e){const _0x444436=a328_0x1b9a,_0x101644=_0x394d68();while(!![]){try{const _0x439b2d=parseInt(_0x444436(0x18b))/0x1*(parseInt(_0x444436(0x188))/0x2)+parseInt(_0x444436(0x189))/0x3+parseInt(_0x444436(0x190))/0x4*(-parseInt(_0x444436(0x18c))/0x5)+parseInt(_0x444436(0x193))/0x6+parseInt(_0x444436(0x18d))/0x7+-parseInt(_0x444436(0x187))/0x8+parseInt(_0x444436(0x186))/0x9;if(_0x439b2d===_0x4b619e)break;else _0x101644['push'](_0x101644['shift']());}catch(_0x551b88){_0x101644['push'](_0x101644['shift']());}}}(a328_0x1b9c,0x21e4b));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 _0x189d60=a328_0x1b9a,_0x527cea=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x18654d=_0x527cea?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x189d60(0x18f)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x189d60(0x185):'production')}),setUserContext({'id':_0x18654d?.['id'],'username':_0x18654d?.[_0x189d60(0x18e)],'nickname':_0x18654d?.['nickname'],'email':_0x18654d?.[_0x189d60(0x18a)],'tenantCode':_0x18654d?.[_0x189d60(0x192)]?.[_0x189d60(0x191)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x527cea;}function a328_0x1b9a(_0x34941e,_0x294bfe){_0x34941e=_0x34941e-0x185;const _0x1b9c5f=a328_0x1b9c();let _0x1b9ad6=_0x1b9c5f[_0x34941e];return _0x1b9ad6;}function a328_0x1b9c(){const _0x3a1016=['2180048IBRqww','542SgBYpM','191262JuMbsQ','email','82YZTJDv','350770lMQawy','867692dWziTA','username','unknown','4rfQFqO','tenant_code','tenant','933210JowRGU','daily','1044180IKyRGt'];a328_0x1b9c=function(){return _0x3a1016;};return a328_0x1b9c();}
1
+ (function(_0x29d99e,_0x2a5fd8){const _0x598a12=a329_0x36ea,_0x37283d=_0x29d99e();while(!![]){try{const _0xb4106=parseInt(_0x598a12(0x9d))/0x1*(-parseInt(_0x598a12(0x9c))/0x2)+parseInt(_0x598a12(0xa2))/0x3+-parseInt(_0x598a12(0xa9))/0x4*(parseInt(_0x598a12(0xa4))/0x5)+-parseInt(_0x598a12(0x9f))/0x6*(-parseInt(_0x598a12(0xa6))/0x7)+-parseInt(_0x598a12(0xa1))/0x8+-parseInt(_0x598a12(0x9e))/0x9*(-parseInt(_0x598a12(0xa3))/0xa)+-parseInt(_0x598a12(0xab))/0xb*(-parseInt(_0x598a12(0xa0))/0xc);if(_0xb4106===_0x2a5fd8)break;else _0x37283d['push'](_0x37283d['shift']());}catch(_0x5d877e){_0x37283d['push'](_0x37283d['shift']());}}}(a329_0x510c,0x98c78));function a329_0x510c(){const _0x150cab=['production','1519AHBAel','unknown','daily','68XQWCUp','username','9809668CVDldf','194ZsSLCx','9325KonIyw','72Hgevyo','32322xYulCa','12HIpefg','1234224WgbmvY','1747527EEeoXp','30590OvArss','289165GfeBJa'];a329_0x510c=function(){return _0x150cab;};return a329_0x510c();}import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a329_0x36ea(_0x423f3e,_0x568cc7){_0x423f3e=_0x423f3e-0x9c;const _0x510cd6=a329_0x510c();let _0x36ea73=_0x510cd6[_0x423f3e];return _0x36ea73;}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 _0x5868b5=a329_0x36ea,_0x1a47a1=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x1689a4=_0x1a47a1?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x5868b5(0xa7)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x5868b5(0xa8):_0x5868b5(0xa5))}),setUserContext({'id':_0x1689a4?.['id'],'username':_0x1689a4?.[_0x5868b5(0xaa)],'nickname':_0x1689a4?.['nickname'],'email':_0x1689a4?.['email'],'tenantCode':_0x1689a4?.['tenant']?.['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x1a47a1;}
@@ -1 +1 @@
1
- (function(_0x3d9645,_0xab9225){const _0x5e4d62=a329_0x4687,_0x642685=_0x3d9645();while(!![]){try{const _0x2a8f27=parseInt(_0x5e4d62(0x1bc))/0x1*(-parseInt(_0x5e4d62(0x1c5))/0x2)+-parseInt(_0x5e4d62(0x1be))/0x3+-parseInt(_0x5e4d62(0x1bf))/0x4+-parseInt(_0x5e4d62(0x1c2))/0x5+-parseInt(_0x5e4d62(0x1c3))/0x6+-parseInt(_0x5e4d62(0x1c0))/0x7*(-parseInt(_0x5e4d62(0x1ba))/0x8)+parseInt(_0x5e4d62(0x1b8))/0x9;if(_0x2a8f27===_0xab9225)break;else _0x642685['push'](_0x642685['shift']());}catch(_0x5d49d8){_0x642685['push'](_0x642685['shift']());}}}(a329_0x4471,0x9a4cf));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x3f4456=a329_0x4687;process[_0x3f4456(0x1c4)](_0x3f4456(0x1c1),()=>{void flushOtelNodeIfUsed();});const _0x9bc9fd=()=>{const _0x170c01=_0x3f4456;void flushOtelNodeIfUsed()[_0x170c01(0x1bb)](()=>process[_0x170c01(0x1bd)](0x0));};process[_0x3f4456(0x1c4)](_0x3f4456(0x1b9),_0x9bc9fd),process[_0x3f4456(0x1c4)]('SIGTERM',_0x9bc9fd);}function a329_0x4471(){const _0x30b9f9=['3239364VXNESq','28nnDDUl','beforeExit','2997225QIrbOv','1649472rupnNU','once','20scYQcC','19665468aTjvCS','SIGINT','1254536lbGTAF','then','28190UiLkCW','exit','642621topDpM'];a329_0x4471=function(){return _0x30b9f9;};return a329_0x4471();}function a329_0x4687(_0x5473e6,_0x5a88a0){_0x5473e6=_0x5473e6-0x1b8;const _0x44717d=a329_0x4471();let _0x4687c6=_0x44717d[_0x5473e6];return _0x4687c6;}export async function exitWithOtelShutdown(_0x400114){await flushOtelNodeIfUsed(),process['exit'](_0x400114);}
1
+ function a330_0x3b47(){const _0x1d17b3=['then','once','9DDzKin','1738oHubHm','12oaaOvA','24YBnFsh','17954okHSRO','SIGTERM','exit','1548184SKruLj','25780FlFqsz','364615bPuYld','652848NBjBhC','24722784OmVmzw','3051006IcSvlY','28YvvOVl'];a330_0x3b47=function(){return _0x1d17b3;};return a330_0x3b47();}(function(_0xe62972,_0x525d31){const _0x59e1e9=a330_0x56e4,_0x5c54e4=_0xe62972();while(!![]){try{const _0x247f58=-parseInt(_0x59e1e9(0x145))/0x1*(-parseInt(_0x59e1e9(0x144))/0x2)+-parseInt(_0x59e1e9(0x14b))/0x3+-parseInt(_0x59e1e9(0x14e))/0x4*(parseInt(_0x59e1e9(0x14a))/0x5)+-parseInt(_0x59e1e9(0x143))/0x6*(parseInt(_0x59e1e9(0x14d))/0x7)+parseInt(_0x59e1e9(0x148))/0x8*(parseInt(_0x59e1e9(0x141))/0x9)+-parseInt(_0x59e1e9(0x149))/0xa*(parseInt(_0x59e1e9(0x142))/0xb)+parseInt(_0x59e1e9(0x14c))/0xc;if(_0x247f58===_0x525d31)break;else _0x5c54e4['push'](_0x5c54e4['shift']());}catch(_0xd1fe96){_0x5c54e4['push'](_0x5c54e4['shift']());}}}(a330_0x3b47,0x70d06));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 a330_0x56e4(_0x42349f,_0x40ebd3){_0x42349f=_0x42349f-0x141;const _0x3b4746=a330_0x3b47();let _0x56e44e=_0x3b4746[_0x42349f];return _0x56e44e;}export function registerOtelShutdownOnExit(){const _0x86a080=a330_0x56e4;process[_0x86a080(0x150)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x53d94c=()=>{const _0x1547fe=_0x86a080;void flushOtelNodeIfUsed()[_0x1547fe(0x14f)](()=>process[_0x1547fe(0x147)](0x0));};process['once']('SIGINT',_0x53d94c),process[_0x86a080(0x150)](_0x86a080(0x146),_0x53d94c);}export async function exitWithOtelShutdown(_0x7a2c04){const _0x5ba016=a330_0x56e4;await flushOtelNodeIfUsed(),process[_0x5ba016(0x147)](_0x7a2c04);}
@@ -1 +1 @@
1
- (function(_0x225b40,_0x2cb7d8){const _0x4d62b4=a330_0x265c,_0x40a661=_0x225b40();while(!![]){try{const _0x10a7ab=-parseInt(_0x4d62b4(0x1cd))/0x1*(-parseInt(_0x4d62b4(0x1d7))/0x2)+-parseInt(_0x4d62b4(0x1d2))/0x3+parseInt(_0x4d62b4(0x1c8))/0x4+-parseInt(_0x4d62b4(0x1c7))/0x5*(-parseInt(_0x4d62b4(0x1ca))/0x6)+-parseInt(_0x4d62b4(0x1ce))/0x7*(-parseInt(_0x4d62b4(0x1cc))/0x8)+parseInt(_0x4d62b4(0x1d5))/0x9*(parseInt(_0x4d62b4(0x1d0))/0xa)+-parseInt(_0x4d62b4(0x1d1))/0xb*(parseInt(_0x4d62b4(0x1c6))/0xc);if(_0x10a7ab===_0x2cb7d8)break;else _0x40a661['push'](_0x40a661['shift']());}catch(_0x38074a){_0x40a661['push'](_0x40a661['shift']());}}}(a330_0x1f3b,0x28e5d));function a330_0x1f3b(){const _0x5f0d5e=['logData','2160sSSMLM','1497793oQIOua','122952ZzSTsE','version','traceName','414kbJcUB','traceparent','76786BxLTAY','36xubhCW','15KuZQaV','1068884JBUbFj','manual','346980weABnU','spanName','2376zYKcpm','4jrbtQX','301RoAcTA'];a330_0x1f3b=function(){return _0x5f0d5e;};return a330_0x1f3b();}import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a330_0x265c(_0x202346,_0x52c37b){_0x202346=_0x202346-0x1c6;const _0x1f3b22=a330_0x1f3b();let _0x265cb9=_0x1f3b22[_0x202346];return _0x265cb9;}const DEFAULT_TRACE_NAME='rabetbase-cli';export async function sendCliTraceLog(_0x2746fb){const _0x3f7a89=a330_0x265c;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x2746fb[_0x3f7a89(0x1d4)]??DEFAULT_TRACE_NAME,'version':_0x2746fb[_0x3f7a89(0x1d3)]??getCliVersion(),'spanName':_0x2746fb[_0x3f7a89(0x1cb)],'eventType':_0x3f7a89(0x1c9),'logData':_0x2746fb[_0x3f7a89(0x1cf)],..._0x2746fb[_0x3f7a89(0x1d6)]&&{'traceparent':_0x2746fb[_0x3f7a89(0x1d6)]}});}
1
+ const a331_0x180a88=a331_0xc6d8;function a331_0x3faa(){const _0x4a6bda=['48jDWikY','spanName','traceName','160405DcfMlb','406076BDvlBm','5864HTBDxY','369XvAepV','logData','traceparent','889859iGifvh','3gjfsuV','9289pkNXwB','27330xefslF','108bEEcVj','version','13390585fKPkRl','rabetbase-cli','2218828LbwJrH','manual','2ZhLGfk'];a331_0x3faa=function(){return _0x4a6bda;};return a331_0x3faa();}function a331_0xc6d8(_0x5a182d,_0x3c8716){_0x5a182d=_0x5a182d-0xf0;const _0x3faa4f=a331_0x3faa();let _0xc6d85a=_0x3faa4f[_0x5a182d];return _0xc6d85a;}(function(_0x202457,_0x16b6d8){const _0x4bf8a9=a331_0xc6d8,_0x88ff3e=_0x202457();while(!![]){try{const _0x385305=-parseInt(_0x4bf8a9(0xf3))/0x1*(-parseInt(_0x4bf8a9(0xfd))/0x2)+-parseInt(_0x4bf8a9(0xf4))/0x3*(-parseInt(_0x4bf8a9(0xfb))/0x4)+-parseInt(_0x4bf8a9(0x101))/0x5*(parseInt(_0x4bf8a9(0xf7))/0x6)+parseInt(_0x4bf8a9(0xf5))/0x7*(parseInt(_0x4bf8a9(0x103))/0x8)+parseInt(_0x4bf8a9(0xf0))/0x9*(-parseInt(_0x4bf8a9(0xf6))/0xa)+parseInt(_0x4bf8a9(0x102))/0xb*(-parseInt(_0x4bf8a9(0xfe))/0xc)+-parseInt(_0x4bf8a9(0xf9))/0xd;if(_0x385305===_0x16b6d8)break;else _0x88ff3e['push'](_0x88ff3e['shift']());}catch(_0x46b2ad){_0x88ff3e['push'](_0x88ff3e['shift']());}}}(a331_0x3faa,0x86495));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a331_0x180a88(0xfa);export async function sendCliTraceLog(_0x2fd7cc){const _0xd2bf46=a331_0x180a88;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x2fd7cc[_0xd2bf46(0x100)]??DEFAULT_TRACE_NAME,'version':_0x2fd7cc[_0xd2bf46(0xf8)]??getCliVersion(),'spanName':_0x2fd7cc[_0xd2bf46(0xff)],'eventType':_0xd2bf46(0xfc),'logData':_0x2fd7cc[_0xd2bf46(0xf1)],..._0x2fd7cc[_0xd2bf46(0xf2)]&&{'traceparent':_0x2fd7cc['traceparent']}});}
@@ -1 +1 @@
1
- const a331_0x3649ed=a331_0x1bfa;(function(_0x34eaed,_0x341b25){const _0x55073c=a331_0x1bfa,_0x5aca36=_0x34eaed();while(!![]){try{const _0x2b4223=-parseInt(_0x55073c(0xa0))/0x1*(-parseInt(_0x55073c(0x9e))/0x2)+parseInt(_0x55073c(0x91))/0x3+-parseInt(_0x55073c(0x98))/0x4*(parseInt(_0x55073c(0x9b))/0x5)+-parseInt(_0x55073c(0x90))/0x6*(parseInt(_0x55073c(0x92))/0x7)+parseInt(_0x55073c(0x9c))/0x8*(-parseInt(_0x55073c(0x95))/0x9)+parseInt(_0x55073c(0xa1))/0xa+parseInt(_0x55073c(0x9f))/0xb;if(_0x2b4223===_0x341b25)break;else _0x5aca36['push'](_0x5aca36['shift']());}catch(_0x1182fc){_0x5aca36['push'](_0x5aca36['shift']());}}}(a331_0x546e,0x6f80d));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a331_0x3649ed(0x9d);export const PLATFORM_ISSUE_SPAN_NAME=a331_0x3649ed(0x9a);export async function sendPlatformIssueCollectLog(_0x2596d3){const _0x208ee8=a331_0x3649ed;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x2596d3[_0x208ee8(0x97)],'issue.description':_0x2596d3[_0x208ee8(0x94)],..._0x2596d3[_0x208ee8(0x93)]?{'issue.description_original_bytes':_0x2596d3['sanitize']['originalBytes'],'issue.description_truncated':_0x2596d3['sanitize'][_0x208ee8(0x96)],'issue.description_redactions':_0x2596d3['sanitize'][_0x208ee8(0x8f)],'issue.description_redaction_kinds':_0x2596d3[_0x208ee8(0x93)][_0x208ee8(0x99)]['join'](',')}:{}}});}function a331_0x1bfa(_0x164960,_0x52d9f3){_0x164960=_0x164960-0x8f;const _0x546e2b=a331_0x546e();let _0x1bfa4=_0x546e2b[_0x164960];return _0x1bfa4;}function a331_0x546e(){const _0x4983aa=['issue.log.collect','1960gKlJGq','2673232xKZgUs','platform-issue-log-collect','21878mQBxNc','1586244QBZqVZ','68ZrHODg','4282090LjOyBb','redactionCount','24MkUvvu','1840704DlRghy','179788fLCJwG','sanitize','description','18vbuTJr','truncated','title','7164kAfTkI','redactionKinds'];a331_0x546e=function(){return _0x4983aa;};return a331_0x546e();}
1
+ const a332_0x23a8bb=a332_0x19d1;(function(_0x1b9a25,_0x209191){const _0x5ddf3f=a332_0x19d1,_0x560f66=_0x1b9a25();while(!![]){try{const _0x1daade=parseInt(_0x5ddf3f(0x190))/0x1+-parseInt(_0x5ddf3f(0x18a))/0x2*(parseInt(_0x5ddf3f(0x192))/0x3)+parseInt(_0x5ddf3f(0x18d))/0x4*(parseInt(_0x5ddf3f(0x183))/0x5)+parseInt(_0x5ddf3f(0x189))/0x6*(parseInt(_0x5ddf3f(0x187))/0x7)+parseInt(_0x5ddf3f(0x18c))/0x8*(parseInt(_0x5ddf3f(0x186))/0x9)+-parseInt(_0x5ddf3f(0x193))/0xa*(parseInt(_0x5ddf3f(0x185))/0xb)+-parseInt(_0x5ddf3f(0x18e))/0xc;if(_0x1daade===_0x209191)break;else _0x560f66['push'](_0x560f66['shift']());}catch(_0x500a4b){_0x560f66['push'](_0x560f66['shift']());}}}(a332_0x1316,0x94fd8));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a332_0x19d1(_0x20915d,_0x32d5a1){_0x20915d=_0x20915d-0x183;const _0x1316eb=a332_0x1316();let _0x19d1fc=_0x1316eb[_0x20915d];return _0x19d1fc;}export const PLATFORM_ISSUE_TRACE_NAME=a332_0x23a8bb(0x191);export const PLATFORM_ISSUE_SPAN_NAME=a332_0x23a8bb(0x194);export async function sendPlatformIssueCollectLog(_0x534639){const _0x964f40=a332_0x23a8bb;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x534639[_0x964f40(0x188)],'issue.description':_0x534639[_0x964f40(0x18f)],..._0x534639[_0x964f40(0x184)]?{'issue.description_original_bytes':_0x534639[_0x964f40(0x184)][_0x964f40(0x196)],'issue.description_truncated':_0x534639[_0x964f40(0x184)][_0x964f40(0x195)],'issue.description_redactions':_0x534639[_0x964f40(0x184)][_0x964f40(0x197)],'issue.description_redaction_kinds':_0x534639[_0x964f40(0x184)][_0x964f40(0x18b)]['join'](',')}:{}}});}function a332_0x1316(){const _0x50aa5a=['truncated','originalBytes','redactionCount','142035ZYEdKH','sanitize','5710639RfIyHX','5206716ryfaFQ','7077CDXuie','title','4794PVgNOV','25370reVZeN','redactionKinds','16mDngrJ','4yvAfme','6656436hlARbi','description','464657XdfjhD','platform-issue-log-collect','183FTiEtk','10bqpDUg','issue.log.collect'];a332_0x1316=function(){return _0x50aa5a;};return a332_0x1316();}
@@ -1 +1 @@
1
- const a333_0x4a369c=a333_0x1673;(function(_0x48805c,_0x32fe07){const _0xb7839e=a333_0x1673,_0x115231=_0x48805c();while(!![]){try{const _0x48f146=parseInt(_0xb7839e(0x1cf))/0x1+-parseInt(_0xb7839e(0x1e1))/0x2+-parseInt(_0xb7839e(0x1ea))/0x3+-parseInt(_0xb7839e(0x1df))/0x4+parseInt(_0xb7839e(0x1be))/0x5+parseInt(_0xb7839e(0x1cc))/0x6+parseInt(_0xb7839e(0x1c7))/0x7*(parseInt(_0xb7839e(0x1dc))/0x8);if(_0x48f146===_0x32fe07)break;else _0x115231['push'](_0x115231['shift']());}catch(_0x4db867){_0x115231['push'](_0x115231['shift']());}}}(a333_0x4c64,0xb73d4));function a333_0x1673(_0x310739,_0x8e0a05){_0x310739=_0x310739-0x1ba;const _0x4c643d=a333_0x4c64();let _0x1673be=_0x4c643d[_0x310739];return _0x1673be;}export const CORE_IDE_CONFIGS={'cursor':{'name':a333_0x4a369c(0x1cd),'description':'Cursor\x20IDE','folders':[a333_0x4a369c(0x1e8),a333_0x4a369c(0x1bf)],'files':[{'type':'file','path':a333_0x4a369c(0x1d8)}]},'windsurf':{'name':a333_0x4a369c(0x1c4),'description':a333_0x4a369c(0x1ba),'folders':[a333_0x4a369c(0x1d5)],'files':[{'type':a333_0x4a369c(0x1c8),'path':a333_0x4a369c(0x1dd)}]},'claude':{'name':a333_0x4a369c(0x1c5),'description':a333_0x4a369c(0x1c5),'folders':[a333_0x4a369c(0x1ec)],'files':[{'type':a333_0x4a369c(0x1c8),'path':a333_0x4a369c(0x1d2)}]},'cline':{'name':a333_0x4a369c(0x1c0),'description':'Cline\x20IDE','folders':[a333_0x4a369c(0x1e3)],'files':[{'type':a333_0x4a369c(0x1c8),'path':a333_0x4a369c(0x1c9)}]},'codex':{'name':a333_0x4a369c(0x1de),'description':a333_0x4a369c(0x1da),'folders':['.codex'],'files':[{'type':a333_0x4a369c(0x1c8),'path':a333_0x4a369c(0x1d6)}]},'opencode':{'name':a333_0x4a369c(0x1c6),'description':a333_0x4a369c(0x1c3),'folders':['.opencode'],'files':[{'type':a333_0x4a369c(0x1c8),'path':a333_0x4a369c(0x1e2)}]},'qoder':{'name':a333_0x4a369c(0x1c1),'description':'Qoder\x20IDE','folders':[a333_0x4a369c(0x1e0)],'files':[{'type':a333_0x4a369c(0x1c8),'path':'.qoder/rules/rabetbase.md'},{'type':'file','path':a333_0x4a369c(0x1bc)}]},'codebuddy':{'name':a333_0x4a369c(0x1ce),'description':a333_0x4a369c(0x1eb),'folders':[a333_0x4a369c(0x1d9)],'files':[{'type':a333_0x4a369c(0x1c8),'path':a333_0x4a369c(0x1bb)}]},'trae':{'name':a333_0x4a369c(0x1e6),'description':a333_0x4a369c(0x1cb),'folders':[a333_0x4a369c(0x1d7)],'files':[{'type':a333_0x4a369c(0x1c8),'path':'.trae/skills/lovrabet/SKILL.md'}]}};function a333_0x4c64(){const _0x56b190=['109496QjjmBt','.windsurf/workflows/rabetbase.md','Codex','2400288HpqkrO','.qoder','1746774pqosIf','.opencode/skills/lovrabet/SKILL.md','.cline','claude','Other\x20(generic\x20template)','Trae','trae','.cursorrules','cline','1904706okVxFk','CodeBuddy\x20IDE','.claude','Windsurf\x20IDE','.codebuddy/skills/lovrabet/SKILL.md','.qoder/skills/lovrabet/SKILL.md','opencode','6252935sAOzvY','.cursor','Cline','Qoder','Antigravity','OpenCode\x20IDE','Windsurf','Claude\x20Code','OpenCode','175njDvAx','file','.cline/skills/lovrabet/SKILL.md','.agent','Trae\x20IDE','7502844EnDlAC','Cursor','CodeBuddy','15673fSIWWk','Antigravity\x20IDE','cursor','.claude/skills/lovrabet/SKILL.md','codebuddy','qoder','.windsurf','.codex/skills/lovrabet/SKILL.md','.trae','.cursor/skills/rabetbase.md','.codebuddy','Codex\x20IDE','codex'];a333_0x4c64=function(){return _0x56b190;};return a333_0x4c64();}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a333_0x4a369c(0x1e5),'description':'Generic\x20template\x20fallback','folders':[a333_0x4a369c(0x1ca)],'files':[{'type':a333_0x4a369c(0x1c8),'path':'.agent/skills/lovrabet/SKILL.md'}]},'antigravity':{'name':a333_0x4a369c(0x1c2),'description':a333_0x4a369c(0x1d0),'folders':[a333_0x4a369c(0x1ca)],'files':[{'type':'file','path':'.agent/skills/lovrabet/SKILL.md'}]}};export const CORE_IDE_LIST=[a333_0x4a369c(0x1e4),'cline',a333_0x4a369c(0x1d3),a333_0x4a369c(0x1db),a333_0x4a369c(0x1d1),a333_0x4a369c(0x1bd),a333_0x4a369c(0x1d4),'trae','windsurf'];export const IDE_LIST=['antigravity',a333_0x4a369c(0x1e4),a333_0x4a369c(0x1e9),a333_0x4a369c(0x1d3),a333_0x4a369c(0x1db),a333_0x4a369c(0x1d1),a333_0x4a369c(0x1bd),a333_0x4a369c(0x1d4),'trae','windsurf','agent'];export const ALL_CORE_IDES=[a333_0x4a369c(0x1d1),'windsurf',a333_0x4a369c(0x1e4),a333_0x4a369c(0x1e9),a333_0x4a369c(0x1db),a333_0x4a369c(0x1bd),'qoder',a333_0x4a369c(0x1d3),a333_0x4a369c(0x1e7)];
1
+ const a334_0x3b163a=a334_0xc5b5;(function(_0x2f97ed,_0x49bc2e){const _0x3df129=a334_0xc5b5,_0x59711f=_0x2f97ed();while(!![]){try{const _0x37f751=-parseInt(_0x3df129(0xba))/0x1*(-parseInt(_0x3df129(0xca))/0x2)+-parseInt(_0x3df129(0xdd))/0x3+-parseInt(_0x3df129(0xbf))/0x4+-parseInt(_0x3df129(0xc4))/0x5*(-parseInt(_0x3df129(0xdb))/0x6)+-parseInt(_0x3df129(0xc6))/0x7*(parseInt(_0x3df129(0xde))/0x8)+parseInt(_0x3df129(0xd9))/0x9+-parseInt(_0x3df129(0xaa))/0xa*(-parseInt(_0x3df129(0xc8))/0xb);if(_0x37f751===_0x49bc2e)break;else _0x59711f['push'](_0x59711f['shift']());}catch(_0x1710a6){_0x59711f['push'](_0x59711f['shift']());}}}(a334_0x280d,0xae6b2));function a334_0xc5b5(_0x395c04,_0x1019ea){_0x395c04=_0x395c04-0xa7;const _0x280df6=a334_0x280d();let _0xc5b51b=_0x280df6[_0x395c04];return _0xc5b51b;}export const CORE_IDE_CONFIGS={'cursor':{'name':a334_0x3b163a(0xcc),'description':a334_0x3b163a(0xcf),'folders':[a334_0x3b163a(0xae),a334_0x3b163a(0xce)],'files':[{'type':a334_0x3b163a(0xe0),'path':'.cursor/skills/rabetbase.md'}]},'windsurf':{'name':'Windsurf','description':a334_0x3b163a(0xbc),'folders':[a334_0x3b163a(0xd1)],'files':[{'type':a334_0x3b163a(0xe0),'path':a334_0x3b163a(0xb7)}]},'claude':{'name':a334_0x3b163a(0xb0),'description':'Claude\x20Code','folders':[a334_0x3b163a(0xaf)],'files':[{'type':a334_0x3b163a(0xe0),'path':a334_0x3b163a(0xa8)}]},'cline':{'name':a334_0x3b163a(0xbe),'description':a334_0x3b163a(0xd2),'folders':[a334_0x3b163a(0xc2)],'files':[{'type':a334_0x3b163a(0xe0),'path':a334_0x3b163a(0xcd)}]},'codex':{'name':a334_0x3b163a(0xcb),'description':a334_0x3b163a(0xdc),'folders':[a334_0x3b163a(0xb6)],'files':[{'type':'file','path':a334_0x3b163a(0xc0)}]},'opencode':{'name':'OpenCode','description':a334_0x3b163a(0xc9),'folders':[a334_0x3b163a(0xd0)],'files':[{'type':a334_0x3b163a(0xe0),'path':a334_0x3b163a(0xb2)}]},'qoder':{'name':a334_0x3b163a(0xbb),'description':a334_0x3b163a(0xb5),'folders':['.qoder'],'files':[{'type':'file','path':a334_0x3b163a(0xd8)},{'type':a334_0x3b163a(0xe0),'path':a334_0x3b163a(0xb3)}]},'codebuddy':{'name':a334_0x3b163a(0xe1),'description':a334_0x3b163a(0xdf),'folders':['.codebuddy'],'files':[{'type':'file','path':a334_0x3b163a(0xa9)}]},'trae':{'name':a334_0x3b163a(0xb8),'description':a334_0x3b163a(0xc7),'folders':['.trae'],'files':[{'type':'file','path':'.trae/skills/lovrabet/SKILL.md'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a334_0x3b163a(0xd7),'description':a334_0x3b163a(0xc3),'folders':[a334_0x3b163a(0xb9)],'files':[{'type':a334_0x3b163a(0xe0),'path':'.agent/skills/lovrabet/SKILL.md'}]},'antigravity':{'name':a334_0x3b163a(0xda),'description':a334_0x3b163a(0xd5),'folders':[a334_0x3b163a(0xb9)],'files':[{'type':a334_0x3b163a(0xe0),'path':a334_0x3b163a(0xd4)}]}};export const CORE_IDE_LIST=[a334_0x3b163a(0xd3),a334_0x3b163a(0xac),a334_0x3b163a(0xd6),a334_0x3b163a(0xbd),'cursor',a334_0x3b163a(0xa7),a334_0x3b163a(0xb1),a334_0x3b163a(0xc5),'windsurf'];export const IDE_LIST=[a334_0x3b163a(0xb4),a334_0x3b163a(0xd3),a334_0x3b163a(0xac),a334_0x3b163a(0xd6),'codex','cursor',a334_0x3b163a(0xa7),a334_0x3b163a(0xb1),a334_0x3b163a(0xc5),a334_0x3b163a(0xc1),a334_0x3b163a(0xad)];export const ALL_CORE_IDES=[a334_0x3b163a(0xab),a334_0x3b163a(0xc1),a334_0x3b163a(0xd3),a334_0x3b163a(0xac),a334_0x3b163a(0xbd),a334_0x3b163a(0xa7),a334_0x3b163a(0xb1),'codebuddy',a334_0x3b163a(0xc5)];function a334_0x280d(){const _0x598be3=['.cursor','Cursor\x20IDE','.opencode','.windsurf','Cline\x20IDE','claude','.agent/skills/lovrabet/SKILL.md','Antigravity\x20IDE','codebuddy','Other\x20(generic\x20template)','.qoder/rules/rabetbase.md','12738762fJoxvG','Antigravity','177156PLboBC','Codex\x20IDE','2603640vpLAmQ','582632VIOhaZ','CodeBuddy\x20IDE','file','CodeBuddy','opencode','.claude/skills/lovrabet/SKILL.md','.codebuddy/skills/lovrabet/SKILL.md','170TiOVBe','cursor','cline','agent','.cursorrules','.claude','Claude\x20Code','qoder','.opencode/skills/lovrabet/SKILL.md','.qoder/skills/lovrabet/SKILL.md','antigravity','Qoder\x20IDE','.codex','.windsurf/workflows/rabetbase.md','Trae','.agent','34552dupgDE','Qoder','Windsurf\x20IDE','codex','Cline','5018336VkxfwS','.codex/skills/lovrabet/SKILL.md','windsurf','.cline','Generic\x20template\x20fallback','185CgkDva','trae','77llCZsT','Trae\x20IDE','507683GtrNhw','OpenCode\x20IDE','20tsJBid','Codex','Cursor','.cline/skills/lovrabet/SKILL.md'];a334_0x280d=function(){return _0x598be3;};return a334_0x280d();}
@@ -1 +1 @@
1
- function a334_0x1b46(_0x221382,_0x76f683){_0x221382=_0x221382-0x17a;const _0x18d092=a334_0x18d0();let _0x1b4637=_0x18d092[_0x221382];return _0x1b4637;}(function(_0x52925f,_0x435d32){const _0x479df1=a334_0x1b46,_0x1b386f=_0x52925f();while(!![]){try{const _0x4b9936=parseInt(_0x479df1(0x181))/0x1+-parseInt(_0x479df1(0x17e))/0x2*(parseInt(_0x479df1(0x17a))/0x3)+parseInt(_0x479df1(0x183))/0x4+-parseInt(_0x479df1(0x17f))/0x5*(parseInt(_0x479df1(0x184))/0x6)+parseInt(_0x479df1(0x182))/0x7*(-parseInt(_0x479df1(0x180))/0x8)+-parseInt(_0x479df1(0x17c))/0x9*(parseInt(_0x479df1(0x17d))/0xa)+parseInt(_0x479df1(0x17b))/0xb;if(_0x4b9936===_0x435d32)break;else _0x1b386f['push'](_0x1b386f['shift']());}catch(_0x209df3){_0x1b386f['push'](_0x1b386f['shift']());}}}(a334_0x18d0,0x77e46));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a334_0x18d0(){const _0x1fb4ae=['5LxMLtg','280xBRuYI','603435nixjWj','18144SHtbBJ','3417600oCPagq','835746YPsCcu','186Klbmyi','3594118lAlDbr','27GcQPqJ','1827340yrIBPM','16622JIHNsj'];a334_0x18d0=function(){return _0x1fb4ae;};return a334_0x18d0();}
1
+ (function(_0x57f756,_0x458d05){const _0x469949=a335_0x245d,_0x3f5fd5=_0x57f756();while(!![]){try{const _0x46546b=-parseInt(_0x469949(0x144))/0x1+parseInt(_0x469949(0x141))/0x2+-parseInt(_0x469949(0x142))/0x3+parseInt(_0x469949(0x145))/0x4+-parseInt(_0x469949(0x149))/0x5*(parseInt(_0x469949(0x146))/0x6)+parseInt(_0x469949(0x147))/0x7*(-parseInt(_0x469949(0x148))/0x8)+parseInt(_0x469949(0x143))/0x9;if(_0x46546b===_0x458d05)break;else _0x3f5fd5['push'](_0x3f5fd5['shift']());}catch(_0x315cab){_0x3f5fd5['push'](_0x3f5fd5['shift']());}}}(a335_0x3adb,0xb5368));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a335_0x245d(_0x5b65cc,_0x284b00){_0x5b65cc=_0x5b65cc-0x141;const _0x3adb9b=a335_0x3adb();let _0x245d7d=_0x3adb9b[_0x5b65cc];return _0x245d7d;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a335_0x3adb(){const _0x185d44=['2708380HdCVnK','1784499msMhBJ','9331218eUdbdH','819002yqAARz','3749008VNSSAY','6ivzBxG','7YRLOcc','515392TiKuNe','5538685xBvICn'];a335_0x3adb=function(){return _0x185d44;};return a335_0x3adb();}
@@ -1 +1 @@
1
- function a335_0x5d21(_0x1a80ea,_0x457cda){_0x1a80ea=_0x1a80ea-0xe6;const _0x2a2f19=a335_0x2a2f();let _0x5d2187=_0x2a2f19[_0x1a80ea];return _0x5d2187;}(function(_0xabbf6a,_0x59f4e8){const _0x33c284=a335_0x5d21,_0x4d06a7=_0xabbf6a();while(!![]){try{const _0x3b1dc0=-parseInt(_0x33c284(0xeb))/0x1+-parseInt(_0x33c284(0xe8))/0x2*(-parseInt(_0x33c284(0xee))/0x3)+-parseInt(_0x33c284(0xe7))/0x4+-parseInt(_0x33c284(0xea))/0x5+-parseInt(_0x33c284(0xef))/0x6+parseInt(_0x33c284(0xf4))/0x7+-parseInt(_0x33c284(0xf5))/0x8*(-parseInt(_0x33c284(0xe6))/0x9);if(_0x3b1dc0===_0x59f4e8)break;else _0x4d06a7['push'](_0x4d06a7['shift']());}catch(_0x2c5569){_0x4d06a7['push'](_0x4d06a7['shift']());}}}(a335_0x2a2f,0x75a6a));function a335_0x2a2f(){const _0x44fafa=['1012576ACEQDr','72KayaXd','1368128aCWcEy','14zlbJmi','stableVersion','2086230tJlkvy','867148ZpSEfz','/config/index.json','cli','335709fUTnnN','3417846wZFmnP','/config.json','application/json','node','sdk','6174476IJGNlF'];a335_0x2a2f=function(){return _0x44fafa;};return a335_0x2a2f();}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x41d9b7=a335_0x5d21,_0x1c1a0d=getTemplateBaseUrl(),_0x375354=[_0x1c1a0d+_0x41d9b7(0xf0),_0x1c1a0d+_0x41d9b7(0xec)];for(const _0x129c4a of _0x375354){try{const _0x256612=await fetch(_0x129c4a,{'headers':{'Accept':_0x41d9b7(0xf1)}});if(!_0x256612['ok'])continue;const _0x4c75e7=await _0x256612['json']();if(!_0x4c75e7[_0x41d9b7(0xed)]?.[_0x41d9b7(0xe9)]||!_0x4c75e7[_0x41d9b7(0xf3)]?.[_0x41d9b7(0xf2)]?.['stableVersion'])continue;return _0x4c75e7;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x30cf41=Date['now']();if(hasCachedConfig){const _0x2728c4=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x30cf41-cacheTime<_0x2728c4)return cachedConfig;}const _0x222177=await fetchCdnConfig();return cachedConfig=_0x222177,cacheTime=_0x30cf41,hasCachedConfig=!![],_0x222177;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0xa1b1ad,_0x3bb341){const _0x3a9d84=a336_0x13bf,_0x3eae88=_0xa1b1ad();while(!![]){try{const _0x5220fb=-parseInt(_0x3a9d84(0x8a))/0x1+parseInt(_0x3a9d84(0x86))/0x2+-parseInt(_0x3a9d84(0x89))/0x3*(-parseInt(_0x3a9d84(0x85))/0x4)+parseInt(_0x3a9d84(0x8f))/0x5+parseInt(_0x3a9d84(0x84))/0x6+parseInt(_0x3a9d84(0x8c))/0x7*(parseInt(_0x3a9d84(0x8b))/0x8)+-parseInt(_0x3a9d84(0x82))/0x9;if(_0x5220fb===_0x3bb341)break;else _0x3eae88['push'](_0x3eae88['shift']());}catch(_0x201f81){_0x3eae88['push'](_0x3eae88['shift']());}}}(a336_0x2a36,0xde4b9));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x37ee22=a336_0x13bf,_0xce0185=getTemplateBaseUrl(),_0x52723f=[_0xce0185+_0x37ee22(0x83),_0xce0185+_0x37ee22(0x8e)];for(const _0x52320f of _0x52723f){try{const _0x289bbf=await fetch(_0x52320f,{'headers':{'Accept':'application/json'}});if(!_0x289bbf['ok'])continue;const _0x5f53e9=await _0x289bbf['json']();if(!_0x5f53e9['cli']?.[_0x37ee22(0x88)]||!_0x5f53e9[_0x37ee22(0x8d)]?.[_0x37ee22(0x87)]?.['stableVersion'])continue;return _0x5f53e9;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a336_0x2a36(){const _0x192171=['212398fgqqLD','node','stableVersion','31425vXhdaS','1578109BgbKwl','56HwRaiH','1245706gzbZyj','sdk','/config/index.json','4655805aaRFJp','10818171hjoHAn','/config.json','8005548Palxho','28upfNJl'];a336_0x2a36=function(){return _0x192171;};return a336_0x2a36();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x2ce2fe=Date['now']();if(hasCachedConfig){const _0x57a6ba=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2ce2fe-cacheTime<_0x57a6ba)return cachedConfig;}const _0x5e5584=await fetchCdnConfig();return cachedConfig=_0x5e5584,cacheTime=_0x2ce2fe,hasCachedConfig=!![],_0x5e5584;}function a336_0x13bf(_0x204c01,_0x3b71ce){_0x204c01=_0x204c01-0x82;const _0x2a368e=a336_0x2a36();let _0x13bfdd=_0x2a368e[_0x204c01];return _0x13bfdd;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}