@lovrabet/rabetbase-cli 2.3.16-beta.7 → 2.4.1

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 (435) hide show
  1. package/README.md +4 -10
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff.js +1 -1
  88. package/lib/commands/db/index.js +1 -1
  89. package/lib/commands/db/list.js +1 -1
  90. package/lib/commands/db/shared.js +1 -1
  91. package/lib/commands/db/tables.js +1 -1
  92. package/lib/commands/db/test.js +1 -1
  93. package/lib/commands/db/update.js +1 -1
  94. package/lib/commands/doctor.js +1 -1
  95. package/lib/commands/file/index.js +1 -1
  96. package/lib/commands/init/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/kb/create.js +1 -1
  102. package/lib/commands/kb/delete.js +1 -1
  103. package/lib/commands/kb/detail.js +1 -1
  104. package/lib/commands/kb/index.js +1 -1
  105. package/lib/commands/kb/list.js +1 -1
  106. package/lib/commands/kb/shared.js +1 -1
  107. package/lib/commands/kb/update.js +1 -1
  108. package/lib/commands/logs/index.js +1 -1
  109. package/lib/commands/menu/asset-update.js +1 -1
  110. package/lib/commands/menu/delete.js +1 -1
  111. package/lib/commands/menu/external-link-create.js +1 -1
  112. package/lib/commands/menu/external-link-update.js +1 -1
  113. package/lib/commands/menu/group-create.js +1 -1
  114. package/lib/commands/menu/group-update.js +1 -1
  115. package/lib/commands/menu/index.js +1 -1
  116. package/lib/commands/menu/list.js +1 -1
  117. package/lib/commands/menu/move.js +1 -1
  118. package/lib/commands/menu/regroup-start.js +1 -1
  119. package/lib/commands/menu/rename.js +1 -1
  120. package/lib/commands/menu/shared/compare-table.js +1 -1
  121. package/lib/commands/menu/shared/delete-plan.js +1 -1
  122. package/lib/commands/menu/shared/facts.js +1 -1
  123. package/lib/commands/menu/shared/index.js +1 -1
  124. package/lib/commands/menu/shared/inquirer.js +1 -1
  125. package/lib/commands/menu/shared/local-pages.js +1 -1
  126. package/lib/commands/menu/shared/logic.js +1 -1
  127. package/lib/commands/menu/shared/mutations.js +1 -1
  128. package/lib/commands/menu/shared/service.js +1 -1
  129. package/lib/commands/menu/shared/sync-core.js +1 -1
  130. package/lib/commands/menu/shared/update-core.js +1 -1
  131. package/lib/commands/menu/shared/valid-url.js +1 -1
  132. package/lib/commands/menu/sync.js +1 -1
  133. package/lib/commands/notification/config-list.js +1 -1
  134. package/lib/commands/notification/index.js +1 -1
  135. package/lib/commands/ocr/index.js +1 -1
  136. package/lib/commands/page/generate-start.js +1 -1
  137. package/lib/commands/page/generate-status.js +1 -1
  138. package/lib/commands/page/index.js +1 -1
  139. package/lib/commands/page/pull.js +1 -1
  140. package/lib/commands/page/push.js +1 -1
  141. package/lib/commands/page/react/create.d.ts +2 -0
  142. package/lib/commands/page/react/create.js +1 -0
  143. package/lib/commands/page/react/detail.d.ts +2 -0
  144. package/lib/commands/page/react/detail.js +1 -0
  145. package/lib/commands/page/react/list.d.ts +2 -0
  146. package/lib/commands/page/react/list.js +1 -0
  147. package/lib/commands/page/react/publish.d.ts +2 -0
  148. package/lib/commands/page/react/publish.js +1 -0
  149. package/lib/commands/page/react/shared.d.ts +78 -0
  150. package/lib/commands/page/react/shared.js +1 -0
  151. package/lib/commands/page/react/syntax.d.ts +18 -0
  152. package/lib/commands/page/react/syntax.js +1 -0
  153. package/lib/commands/page/react/template.d.ts +8 -0
  154. package/lib/commands/page/react/template.js +1 -0
  155. package/lib/commands/page/react/update.d.ts +2 -0
  156. package/lib/commands/page/react/update.js +1 -0
  157. package/lib/commands/page/relation-audit.js +1 -1
  158. package/lib/commands/page/restore.js +1 -1
  159. package/lib/commands/page/shared.d.ts +1 -0
  160. package/lib/commands/page/shared.js +1 -1
  161. package/lib/commands/page/standard-page-status.js +1 -1
  162. package/lib/commands/page/sync.js +1 -1
  163. package/lib/commands/permit/index.js +1 -1
  164. package/lib/commands/permit/page-get.js +1 -1
  165. package/lib/commands/permit/page-set.js +1 -1
  166. package/lib/commands/permit/role-apis-set.js +1 -1
  167. package/lib/commands/permit/role-menus-set.js +1 -1
  168. package/lib/commands/permit/role-menus.js +1 -1
  169. package/lib/commands/permit/shared.js +1 -1
  170. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  171. package/lib/commands/project/create/format-elapsed.js +1 -1
  172. package/lib/commands/project/create/main.js +1 -1
  173. package/lib/commands/project/create/non-interactive.js +1 -1
  174. package/lib/commands/project/create/project-template-path.js +1 -1
  175. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  176. package/lib/commands/project/create/use-format-code.js +1 -1
  177. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  178. package/lib/commands/project/index.js +1 -1
  179. package/lib/commands/project/upgrade.js +1 -1
  180. package/lib/commands/registry.js +1 -1
  181. package/lib/commands/role/create.js +1 -1
  182. package/lib/commands/role/delete.js +1 -1
  183. package/lib/commands/role/detail.js +1 -1
  184. package/lib/commands/role/index.js +1 -1
  185. package/lib/commands/role/list.js +1 -1
  186. package/lib/commands/role/shared.js +1 -1
  187. package/lib/commands/role/update.js +1 -1
  188. package/lib/commands/role/user-add.js +1 -1
  189. package/lib/commands/role/user-remove.js +1 -1
  190. package/lib/commands/role/user-resolve.js +1 -1
  191. package/lib/commands/run/index.js +1 -1
  192. package/lib/commands/schema.js +1 -1
  193. package/lib/commands/sql/create.js +1 -1
  194. package/lib/commands/sql/delete.js +1 -1
  195. package/lib/commands/sql/detail.js +1 -1
  196. package/lib/commands/sql/exec.js +1 -1
  197. package/lib/commands/sql/index.js +1 -1
  198. package/lib/commands/sql/list.js +1 -1
  199. package/lib/commands/sql/pull.js +1 -1
  200. package/lib/commands/sql/push.js +1 -1
  201. package/lib/commands/sql/shared.js +1 -1
  202. package/lib/commands/sql/status.js +1 -1
  203. package/lib/commands/sql/validate.js +1 -1
  204. package/lib/commands/task/index.js +1 -1
  205. package/lib/commands/task/status.js +1 -1
  206. package/lib/commands/tenant/index.js +1 -1
  207. package/lib/commands/tenant/members-list.js +1 -1
  208. package/lib/commands/tenant/shared.js +1 -1
  209. package/lib/commands/user-account/dingding-sandbox-bind.d.ts +2 -0
  210. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -0
  211. package/lib/commands/user-account/index.d.ts +2 -0
  212. package/lib/commands/user-account/index.js +1 -0
  213. package/lib/commands/workspace/add.js +1 -1
  214. package/lib/commands/workspace/index.js +1 -1
  215. package/lib/commands/workspace/remove.js +1 -1
  216. package/lib/config/schema.js +1 -1
  217. package/lib/constant/cdn.js +1 -1
  218. package/lib/constant/cli.js +1 -1
  219. package/lib/constant/defaults.js +1 -1
  220. package/lib/constant/domain.js +1 -1
  221. package/lib/constant/env.js +1 -1
  222. package/lib/constant/output.js +1 -1
  223. package/lib/constant/paths.js +1 -1
  224. package/lib/constant/risk.js +1 -1
  225. package/lib/context/app-resolver.js +1 -1
  226. package/lib/context/auth-resolver.js +1 -1
  227. package/lib/context/config-loader.js +1 -1
  228. package/lib/context.js +1 -1
  229. package/lib/core/alias-resolver.js +1 -1
  230. package/lib/core/api-client.d.ts +117 -0
  231. package/lib/core/api-client.js +1 -1
  232. package/lib/core/bff/config.js +1 -1
  233. package/lib/core/bff/file-system.js +1 -1
  234. package/lib/core/bff/hash.js +1 -1
  235. package/lib/core/bff/lock.js +1 -1
  236. package/lib/core/bff/utils.js +1 -1
  237. package/lib/core/db-resolver.js +1 -1
  238. package/lib/core/page/file-system.js +1 -1
  239. package/lib/core/page/hash.js +1 -1
  240. package/lib/core/page/lock.js +1 -1
  241. package/lib/core/sql-index-auditor.js +1 -1
  242. package/lib/core/sql-sync/config.js +1 -1
  243. package/lib/core/sql-sync/file-system.js +1 -1
  244. package/lib/core/sql-sync/hash.js +1 -1
  245. package/lib/core/sql-sync/lock.js +1 -1
  246. package/lib/core/sql-sync/utils.js +1 -1
  247. package/lib/core/sql-validator.js +1 -1
  248. package/lib/errors.js +1 -1
  249. package/lib/framework/build-all-flags.js +1 -1
  250. package/lib/framework/error-output.js +1 -1
  251. package/lib/framework/explicit-yes.js +1 -1
  252. package/lib/framework/flags.js +1 -1
  253. package/lib/framework/help.js +1 -1
  254. package/lib/framework/index.js +1 -1
  255. package/lib/framework/output.js +1 -1
  256. package/lib/framework/response.js +1 -1
  257. package/lib/framework/runner-alias.js +1 -1
  258. package/lib/framework/runner.js +1 -1
  259. package/lib/framework/schema-export.js +1 -1
  260. package/lib/framework/types.js +1 -1
  261. package/lib/generated/build-info.d.ts +4 -4
  262. package/lib/generated/build-info.js +1 -1
  263. package/lib/help.js +1 -1
  264. package/lib/postinstall.d.ts +3 -0
  265. package/lib/postinstall.js +1 -0
  266. package/lib/runtime/confirmation.js +1 -1
  267. package/lib/runtime/event.js +1 -1
  268. package/lib/runtime/index.js +1 -1
  269. package/lib/runtime/queue.js +1 -1
  270. package/lib/runtime/resolve.js +1 -1
  271. package/lib/skills/builtin-skill.d.ts +37 -0
  272. package/lib/skills/builtin-skill.js +1 -0
  273. package/lib/skills/main.js +1 -1
  274. package/lib/skills/npx-skills-add.d.ts +4 -2
  275. package/lib/skills/npx-skills-add.js +1 -1
  276. package/lib/skills/skill-presence.js +1 -1
  277. package/lib/telemetry/cli-command-trace.js +1 -1
  278. package/lib/telemetry/cli-help-trace.js +1 -1
  279. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  280. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  281. package/lib/telemetry/send-cli-trace-log.js +1 -1
  282. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  283. package/lib/utils/ai_config.js +1 -1
  284. package/lib/utils/apply-jq-filter.js +1 -1
  285. package/lib/utils/cdn-config.js +1 -1
  286. package/lib/utils/check-sdk-version.js +1 -1
  287. package/lib/utils/cli-version-check.js +1 -1
  288. package/lib/utils/cli-version-policy.js +1 -1
  289. package/lib/utils/config.js +1 -1
  290. package/lib/utils/copy-directory.js +1 -1
  291. package/lib/utils/entity-with-id.js +1 -1
  292. package/lib/utils/file-utils.js +1 -1
  293. package/lib/utils/guides-cdn.js +1 -1
  294. package/lib/utils/http-client.js +1 -1
  295. package/lib/utils/is-non-interactive.js +1 -1
  296. package/lib/utils/logger.js +1 -1
  297. package/lib/utils/params.js +1 -1
  298. package/lib/utils/platform.js +1 -1
  299. package/lib/utils/rules-cdn.js +1 -1
  300. package/lib/utils/sleep.js +1 -1
  301. package/lib/utils/template-replacer.js +1 -1
  302. package/lib/utils/update-notice.js +1 -1
  303. package/lib/utils/version.js +1 -1
  304. package/lib/utils/with-active-cookie.js +1 -1
  305. package/lib/utils/write-cli-side-channel.js +1 -1
  306. package/package.json +9 -3
  307. package/scripts/postinstall.mjs +24 -0
  308. package/skills/rabetbase/SKILL.md +493 -0
  309. package/skills/rabetbase/guides/backend-function.md +835 -0
  310. package/skills/rabetbase/guides/best-practices.md +137 -0
  311. package/skills/rabetbase/guides/bff-creation-workflow.md +148 -0
  312. package/skills/rabetbase/guides/conflict-detection.md +119 -0
  313. package/skills/rabetbase/guides/data-api-guidelines.md +414 -0
  314. package/skills/rabetbase/guides/database-connection-workflow.md +169 -0
  315. package/skills/rabetbase/guides/frontend-development.md +179 -0
  316. package/skills/rabetbase/guides/legacy-application-blueprint-workflow.md +495 -0
  317. package/skills/rabetbase/guides/menu-anomaly-manual-cleanup.md +137 -0
  318. package/skills/rabetbase/guides/page-development-workflow.md +187 -0
  319. package/skills/rabetbase/guides/react-custom-page-workflow.md +184 -0
  320. package/skills/rabetbase/guides/role-permit-workflow.md +127 -0
  321. package/skills/rabetbase/guides/sql-creation-workflow.md +173 -0
  322. package/skills/rabetbase/guides/sql-mybatis.md +126 -0
  323. package/skills/rabetbase/guides/troubleshooting.md +67 -0
  324. package/skills/rabetbase/guides/typescript-sdk.md +227 -0
  325. package/skills/rabetbase/knowledge/page-schema/LrSmartCreate.md +367 -0
  326. package/skills/rabetbase/knowledge/page-schema/LrSmartDetail.md +153 -0
  327. package/skills/rabetbase/knowledge/page-schema/LrSmartEcharts.md +291 -0
  328. package/skills/rabetbase/knowledge/page-schema/LrSmartFilter.md +478 -0
  329. package/skills/rabetbase/knowledge/page-schema/LrSmartJsx.md +119 -0
  330. package/skills/rabetbase/knowledge/page-schema/LrSmartStatistic.md +223 -0
  331. package/skills/rabetbase/knowledge/page-schema/LrSmartTable.md +632 -0
  332. package/skills/rabetbase/knowledge/page-schema/YtPage.md +172 -0
  333. package/skills/rabetbase/knowledge/page-schema/dataset-relations.md +126 -0
  334. package/skills/rabetbase/knowledge/page-schema/external-resources-usage.md +232 -0
  335. package/skills/rabetbase/knowledge/page-schema/field-components.md +312 -0
  336. package/skills/rabetbase/knowledge/page-schema/syntax-reference.md +278 -0
  337. package/skills/rabetbase/knowledge/react-page/components.md +225 -0
  338. package/skills/rabetbase/knowledge/react-page/generation-standards.md +385 -0
  339. package/skills/rabetbase/references/rabetbase-api-list.md +58 -0
  340. package/skills/rabetbase/references/rabetbase-api-pull.md +82 -0
  341. package/skills/rabetbase/references/rabetbase-app-config.md +95 -0
  342. package/skills/rabetbase/references/rabetbase-app-list.md +79 -0
  343. package/skills/rabetbase/references/rabetbase-app-members-list.md +64 -0
  344. package/skills/rabetbase/references/rabetbase-auth-login.md +53 -0
  345. package/skills/rabetbase/references/rabetbase-auth-logout.md +29 -0
  346. package/skills/rabetbase/references/rabetbase-bff-create.md +59 -0
  347. package/skills/rabetbase/references/rabetbase-bff-delete.md +42 -0
  348. package/skills/rabetbase/references/rabetbase-bff-detail.md +38 -0
  349. package/skills/rabetbase/references/rabetbase-bff-list.md +61 -0
  350. package/skills/rabetbase/references/rabetbase-bff-pull.md +42 -0
  351. package/skills/rabetbase/references/rabetbase-bff-push.md +65 -0
  352. package/skills/rabetbase/references/rabetbase-bff-save.md +63 -0
  353. package/skills/rabetbase/references/rabetbase-bff-status.md +37 -0
  354. package/skills/rabetbase/references/rabetbase-cli-skill-install.md +42 -0
  355. package/skills/rabetbase/references/rabetbase-codegen-sdk.md +35 -0
  356. package/skills/rabetbase/references/rabetbase-codegen-sql.md +33 -0
  357. package/skills/rabetbase/references/rabetbase-config.md +296 -0
  358. package/skills/rabetbase/references/rabetbase-dataset-business-group-update.md +84 -0
  359. package/skills/rabetbase/references/rabetbase-dataset-delete.md +54 -0
  360. package/skills/rabetbase/references/rabetbase-dataset-detail.md +106 -0
  361. package/skills/rabetbase/references/rabetbase-dataset-extend-update.md +70 -0
  362. package/skills/rabetbase/references/rabetbase-dataset-field-update.md +117 -0
  363. package/skills/rabetbase/references/rabetbase-dataset-generate.md +206 -0
  364. package/skills/rabetbase/references/rabetbase-dataset-list.md +42 -0
  365. package/skills/rabetbase/references/rabetbase-dataset-operations.md +34 -0
  366. package/skills/rabetbase/references/rabetbase-dataset-relation-audit.md +63 -0
  367. package/skills/rabetbase/references/rabetbase-dataset-relation-mutations.md +141 -0
  368. package/skills/rabetbase/references/rabetbase-dataset-relations.md +71 -0
  369. package/skills/rabetbase/references/rabetbase-dataset-rename.md +107 -0
  370. package/skills/rabetbase/references/rabetbase-dataset-restore.md +54 -0
  371. package/skills/rabetbase/references/rabetbase-db-analyze.md +135 -0
  372. package/skills/rabetbase/references/rabetbase-db-create.md +54 -0
  373. package/skills/rabetbase/references/rabetbase-db-delete.md +26 -0
  374. package/skills/rabetbase/references/rabetbase-db-detail.md +27 -0
  375. package/skills/rabetbase/references/rabetbase-db-diff.md +57 -0
  376. package/skills/rabetbase/references/rabetbase-db-list.md +37 -0
  377. package/skills/rabetbase/references/rabetbase-db-tables.md +25 -0
  378. package/skills/rabetbase/references/rabetbase-db-test.md +29 -0
  379. package/skills/rabetbase/references/rabetbase-db-update.md +29 -0
  380. package/skills/rabetbase/references/rabetbase-doctor.md +62 -0
  381. package/skills/rabetbase/references/rabetbase-file.md +35 -0
  382. package/skills/rabetbase/references/rabetbase-init.md +70 -0
  383. package/skills/rabetbase/references/rabetbase-issue-report.md +132 -0
  384. package/skills/rabetbase/references/rabetbase-kb.md +62 -0
  385. package/skills/rabetbase/references/rabetbase-menu-asset-update.md +135 -0
  386. package/skills/rabetbase/references/rabetbase-menu-delete.md +54 -0
  387. package/skills/rabetbase/references/rabetbase-menu-external-link-create.md +63 -0
  388. package/skills/rabetbase/references/rabetbase-menu-external-link-update.md +74 -0
  389. package/skills/rabetbase/references/rabetbase-menu-group-create.md +33 -0
  390. package/skills/rabetbase/references/rabetbase-menu-group-update.md +38 -0
  391. package/skills/rabetbase/references/rabetbase-menu-list.md +144 -0
  392. package/skills/rabetbase/references/rabetbase-menu-move.md +54 -0
  393. package/skills/rabetbase/references/rabetbase-menu-regroup-start.md +45 -0
  394. package/skills/rabetbase/references/rabetbase-menu-rename.md +48 -0
  395. package/skills/rabetbase/references/rabetbase-menu-sync.md +60 -0
  396. package/skills/rabetbase/references/rabetbase-notification-config-list.md +80 -0
  397. package/skills/rabetbase/references/rabetbase-ocr.md +86 -0
  398. package/skills/rabetbase/references/rabetbase-page-generate-start.md +32 -0
  399. package/skills/rabetbase/references/rabetbase-page-generate-status.md +32 -0
  400. package/skills/rabetbase/references/rabetbase-page-pull.md +47 -0
  401. package/skills/rabetbase/references/rabetbase-page-push.md +45 -0
  402. package/skills/rabetbase/references/rabetbase-page-react-create.md +29 -0
  403. package/skills/rabetbase/references/rabetbase-page-react-detail.md +26 -0
  404. package/skills/rabetbase/references/rabetbase-page-react-list.md +23 -0
  405. package/skills/rabetbase/references/rabetbase-page-react-publish.md +23 -0
  406. package/skills/rabetbase/references/rabetbase-page-react-update.md +24 -0
  407. package/skills/rabetbase/references/rabetbase-page-relation-binding.md +72 -0
  408. package/skills/rabetbase/references/rabetbase-page-restore.md +45 -0
  409. package/skills/rabetbase/references/rabetbase-page-sync.md +36 -0
  410. package/skills/rabetbase/references/rabetbase-permit-page-set.md +69 -0
  411. package/skills/rabetbase/references/rabetbase-permit-role-apis-set.md +53 -0
  412. package/skills/rabetbase/references/rabetbase-permit-role-menus-set.md +57 -0
  413. package/skills/rabetbase/references/rabetbase-project-create.md +46 -0
  414. package/skills/rabetbase/references/rabetbase-project-upgrade.md +57 -0
  415. package/skills/rabetbase/references/rabetbase-role-list.md +68 -0
  416. package/skills/rabetbase/references/rabetbase-role-user-add.md +54 -0
  417. package/skills/rabetbase/references/rabetbase-role-user-resolve.md +27 -0
  418. package/skills/rabetbase/references/rabetbase-run.md +53 -0
  419. package/skills/rabetbase/references/rabetbase-schema.md +22 -0
  420. package/skills/rabetbase/references/rabetbase-sql-create.md +41 -0
  421. package/skills/rabetbase/references/rabetbase-sql-delete.md +37 -0
  422. package/skills/rabetbase/references/rabetbase-sql-detail.md +32 -0
  423. package/skills/rabetbase/references/rabetbase-sql-exec.md +34 -0
  424. package/skills/rabetbase/references/rabetbase-sql-list.md +54 -0
  425. package/skills/rabetbase/references/rabetbase-sql-pull.md +54 -0
  426. package/skills/rabetbase/references/rabetbase-sql-push.md +46 -0
  427. package/skills/rabetbase/references/rabetbase-sql-status.md +39 -0
  428. package/skills/rabetbase/references/rabetbase-sql-validate.md +73 -0
  429. package/skills/rabetbase/references/rabetbase-standard-page-status.md +31 -0
  430. package/skills/rabetbase/references/rabetbase-task-status.md +40 -0
  431. package/skills/rabetbase/references/rabetbase-tenant-members-list.md +69 -0
  432. package/skills/rabetbase/references/rabetbase-update.md +56 -0
  433. package/skills/rabetbase/references/rabetbase-user-account.md +45 -0
  434. package/skills/rabetbase/references/rabetbase-workspace.md +60 -0
  435. package/skills/rabetbase.manifest.json +137 -0
@@ -1 +1 @@
1
- function a235_0x28ec(){const _0x1e6e6c=['pretty','jq:\x20','trim','code','data','2772904ZKZRON','489340zeJbDP','256143VmlOAB','168294uuzwvr','stringify','_notice','url','json','format','validation','4bxqFXd','182532AJVlTc','jqFilter','message','hint','endsWith','error','stdout','update','145952zWIuXR','664668zwdILm','write','risk'];a235_0x28ec=function(){return _0x1e6e6c;};return a235_0x28ec();}(function(_0x140de8,_0x24f180){const _0x3424f5=a235_0x23b9,_0x14f8db=_0x140de8();while(!![]){try{const _0x2060be=-parseInt(_0x3424f5(0x16f))/0x1+-parseInt(_0x3424f5(0x182))/0x2*(parseInt(_0x3424f5(0x17a))/0x3)+parseInt(_0x3424f5(0x170))/0x4+-parseInt(_0x3424f5(0x179))/0x5+parseInt(_0x3424f5(0x183))/0x6+-parseInt(_0x3424f5(0x17b))/0x7+parseInt(_0x3424f5(0x178))/0x8;if(_0x2060be===_0x24f180)break;else _0x14f8db['push'](_0x14f8db['shift']());}catch(_0x3130b1){_0x14f8db['push'](_0x14f8db['shift']());}}}(a235_0x28ec,0x19882));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a235_0x23b9(_0x23e365,_0xd00066){_0x23e365=_0x23e365-0x16b;const _0x28ec73=a235_0x28ec();let _0x23b9c2=_0x28ec73[_0x23e365];return _0x23b9c2;}export function formatOutput(_0x4dc423,_0x293b08){const _0xf2ccbf=a235_0x23b9,_0x1360b0=_0x4dc423[_0xf2ccbf(0x17d)],{_notice:_0x3b36de,..._0x66ece3}=_0x4dc423;void _0x3b36de,baseFormatOutput(_0x66ece3,_0x293b08),_0x293b08[_0xf2ccbf(0x180)]===_0xf2ccbf(0x173)&&printPrettyNotice(_0x1360b0);}export function formatCliError(_0x3a5052,_0x15e143){const _0x4f1012=a235_0x23b9;if(_0x15e143[_0x4f1012(0x180)]===_0x4f1012(0x173))return![];const _0x4fca2a=_0x3a5052[_0x4f1012(0x177)],_0x2ec819={'ok':![],'command':_0x15e143['command'],'risk':_0x15e143[_0x4f1012(0x172)],'data':_0x4fca2a??null,'error':{'code':_0x3a5052['code'],'message':_0x3a5052[_0x4f1012(0x185)],..._0x3a5052[_0x4f1012(0x186)]?{'hint':_0x3a5052['hint']}:{}}},_0x4a08df=_0x15e143[_0x4f1012(0x180)]===_0x4f1012(0x17f)?JSON[_0x4f1012(0x17c)](_0x2ec819,null,0x2):JSON['stringify'](_0x2ec819);let _0x355e65=_0x4a08df;if(_0x15e143[_0x4f1012(0x184)]?.[_0x4f1012(0x175)]())try{_0x355e65=applyJqFilter(_0x4a08df,_0x15e143[_0x4f1012(0x184)]);}catch(_0x27a090){const _0x3eb608=_0x27a090 instanceof CliError?_0x27a090:CliErrors[_0x4f1012(0x181)](_0x4f1012(0x174)+(_0x27a090 instanceof Error?_0x27a090[_0x4f1012(0x185)]:String(_0x27a090))),_0x58aeda={..._0x2ec819,'error':{'code':_0x3eb608[_0x4f1012(0x176)],'message':_0x3eb608[_0x4f1012(0x185)],..._0x3eb608[_0x4f1012(0x186)]?{'hint':_0x3eb608[_0x4f1012(0x186)]}:{},'cause':_0x2ec819['error']}};_0x355e65=_0x15e143[_0x4f1012(0x180)]===_0x4f1012(0x17f)?JSON[_0x4f1012(0x17c)](_0x58aeda,null,0x2):JSON[_0x4f1012(0x17c)](_0x58aeda);}return process[_0x4f1012(0x16d)][_0x4f1012(0x171)](_0x355e65[_0x4f1012(0x16b)]('\x0a')?_0x355e65:_0x355e65+'\x0a'),!![];}function printPrettyNotice(_0x65cece){const _0x192a6f=a235_0x23b9;if(!_0x65cece?.['update'])return;console[_0x192a6f(0x16c)](_0x65cece[_0x192a6f(0x16e)][_0x192a6f(0x185)]+'\x20('+_0x65cece['update'][_0x192a6f(0x17e)]+')');}
1
+ (function(_0x7fabcd,_0x5537b5){const _0x25c3c0=a245_0x237b,_0x58db53=_0x7fabcd();while(!![]){try{const _0x46cdb4=-parseInt(_0x25c3c0(0x16e))/0x1*(parseInt(_0x25c3c0(0x170))/0x2)+parseInt(_0x25c3c0(0x174))/0x3*(parseInt(_0x25c3c0(0x161))/0x4)+parseInt(_0x25c3c0(0x16b))/0x5*(parseInt(_0x25c3c0(0x176))/0x6)+-parseInt(_0x25c3c0(0x15c))/0x7+-parseInt(_0x25c3c0(0x15d))/0x8*(parseInt(_0x25c3c0(0x165))/0x9)+-parseInt(_0x25c3c0(0x16c))/0xa+-parseInt(_0x25c3c0(0x160))/0xb*(-parseInt(_0x25c3c0(0x167))/0xc);if(_0x46cdb4===_0x5537b5)break;else _0x58db53['push'](_0x58db53['shift']());}catch(_0x51c365){_0x58db53['push'](_0x58db53['shift']());}}}(a245_0x48da,0x7e356));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x387243,_0xc56a3e){const _0xf960d8=a245_0x237b,_0x4ea446=_0x387243['_notice'],{_notice:_0x223cf3,..._0x1b1335}=_0x387243;void _0x223cf3,baseFormatOutput(_0x1b1335,_0xc56a3e),_0xc56a3e[_0xf960d8(0x166)]===_0xf960d8(0x171)&&printPrettyNotice(_0x4ea446);}function a245_0x48da(){const _0x320129=['81hFkrUs','format','6228FSiICH','code','hint','command','27315vIobTL','4564670EUvKqI','data','1321XCZWUb','stringify','1094OrWyYy','pretty','update','risk','3gKFsar','message','270OVFJpd','write','4544862chbCGK','775176EzBFjY','url','stdout','41877NftCDc','3982700ehFqdu','json','error','jqFilter'];a245_0x48da=function(){return _0x320129;};return a245_0x48da();}export function formatCliError(_0x4b3dcd,_0x4fe0dd){const _0x41c07f=a245_0x237b;if(_0x4fe0dd[_0x41c07f(0x166)]===_0x41c07f(0x171))return![];const _0x529ed8=_0x4b3dcd[_0x41c07f(0x16d)],_0xb6c707={'ok':![],'command':_0x4fe0dd[_0x41c07f(0x16a)],'risk':_0x4fe0dd[_0x41c07f(0x173)],'data':_0x529ed8??null,'error':{'code':_0x4b3dcd['code'],'message':_0x4b3dcd[_0x41c07f(0x175)],..._0x4b3dcd[_0x41c07f(0x169)]?{'hint':_0x4b3dcd[_0x41c07f(0x169)]}:{}}},_0x43e8a1=_0x4fe0dd[_0x41c07f(0x166)]==='json'?JSON[_0x41c07f(0x16f)](_0xb6c707,null,0x2):JSON[_0x41c07f(0x16f)](_0xb6c707);let _0x28b9a4=_0x43e8a1;if(_0x4fe0dd[_0x41c07f(0x164)]?.['trim']())try{_0x28b9a4=applyJqFilter(_0x43e8a1,_0x4fe0dd[_0x41c07f(0x164)]);}catch(_0x12ab9c){const _0x270f26=_0x12ab9c instanceof CliError?_0x12ab9c:CliErrors['validation']('jq:\x20'+(_0x12ab9c instanceof Error?_0x12ab9c[_0x41c07f(0x175)]:String(_0x12ab9c))),_0x43080d={..._0xb6c707,'error':{'code':_0x270f26[_0x41c07f(0x168)],'message':_0x270f26[_0x41c07f(0x175)],..._0x270f26[_0x41c07f(0x169)]?{'hint':_0x270f26['hint']}:{},'cause':_0xb6c707[_0x41c07f(0x163)]}};_0x28b9a4=_0x4fe0dd['format']===_0x41c07f(0x162)?JSON['stringify'](_0x43080d,null,0x2):JSON[_0x41c07f(0x16f)](_0x43080d);}return process[_0x41c07f(0x15f)][_0x41c07f(0x177)](_0x28b9a4['endsWith']('\x0a')?_0x28b9a4:_0x28b9a4+'\x0a'),!![];}function a245_0x237b(_0x144cc6,_0x4528e3){_0x144cc6=_0x144cc6-0x15c;const _0x48da03=a245_0x48da();let _0x237bf0=_0x48da03[_0x144cc6];return _0x237bf0;}function printPrettyNotice(_0x1a1e80){const _0xeca406=a245_0x237b;if(!_0x1a1e80?.[_0xeca406(0x172)])return;console[_0xeca406(0x163)](_0x1a1e80['update'][_0xeca406(0x175)]+'\x20('+_0x1a1e80[_0xeca406(0x172)][_0xeca406(0x15e)]+')');}
@@ -1 +1 @@
1
- function a236_0x59f7(_0x4342d9,_0x30efce){_0x4342d9=_0x4342d9-0x1be;var _0x5d2a96=a236_0x5d2a();var _0x59f7ef=_0x5d2a96[_0x4342d9];return _0x59f7ef;}(function(_0x37c0c9,_0x4ecca6){var _0x123e4e=a236_0x59f7,_0x477392=_0x37c0c9();while(!![]){try{var _0x2a70f3=-parseInt(_0x123e4e(0x1c4))/0x1+-parseInt(_0x123e4e(0x1c5))/0x2+parseInt(_0x123e4e(0x1bf))/0x3+-parseInt(_0x123e4e(0x1c2))/0x4*(-parseInt(_0x123e4e(0x1be))/0x5)+parseInt(_0x123e4e(0x1c1))/0x6+-parseInt(_0x123e4e(0x1c3))/0x7*(-parseInt(_0x123e4e(0x1c6))/0x8)+-parseInt(_0x123e4e(0x1c0))/0x9;if(_0x2a70f3===_0x4ecca6)break;else _0x477392['push'](_0x477392['shift']());}catch(_0x57a964){_0x477392['push'](_0x477392['shift']());}}}(a236_0x5d2a,0x2a1eb));function a236_0x5d2a(){var _0x4858ea=['127545OJBJGi','439308EsioSj','1354032GlllgI','240798ozoaqc','52HYBcbv','203dAdjRi','157162bRqgAH','270754XTuyIr','26848ELQGLr'];a236_0x5d2a=function(){return _0x4858ea;};return a236_0x5d2a();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ (function(_0x3a1741,_0x4ca729){var _0x143b85=a246_0x5d78,_0x23aa03=_0x3a1741();while(!![]){try{var _0x57d4a7=-parseInt(_0x143b85(0xd9))/0x1+-parseInt(_0x143b85(0xdd))/0x2+-parseInt(_0x143b85(0xd8))/0x3*(-parseInt(_0x143b85(0xd5))/0x4)+-parseInt(_0x143b85(0xdb))/0x5+parseInt(_0x143b85(0xd6))/0x6*(-parseInt(_0x143b85(0xd7))/0x7)+parseInt(_0x143b85(0xd4))/0x8*(parseInt(_0x143b85(0xdc))/0x9)+parseInt(_0x143b85(0xda))/0xa;if(_0x57d4a7===_0x4ca729)break;else _0x23aa03['push'](_0x23aa03['shift']());}catch(_0x43a6f9){_0x23aa03['push'](_0x23aa03['shift']());}}}(a246_0x4fce,0x2b045));function a246_0x4fce(){var _0x281542=['315800JKbYVH','58340EDuaCr','368082ZrjdDw','28DrYnQd','45fXqkRD','81217DrfVVD','3782740yFRdoh','4785LwFDoH','9DBFecE','265530bNjFLn'];a246_0x4fce=function(){return _0x281542;};return a246_0x4fce();}function a246_0x5d78(_0x29f679,_0x46e9f0){_0x29f679=_0x29f679-0xd4;var _0x4fceb8=a246_0x4fce();var _0x5d78a1=_0x4fceb8[_0x29f679];return _0x5d78a1;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x111af6,_0x1942bd){const _0x25d9e3=a237_0x204c,_0x4bef54=_0x111af6();while(!![]){try{const _0xd825ca=parseInt(_0x25d9e3(0x199))/0x1+parseInt(_0x25d9e3(0x194))/0x2*(-parseInt(_0x25d9e3(0x190))/0x3)+parseInt(_0x25d9e3(0x1a6))/0x4*(-parseInt(_0x25d9e3(0x1a5))/0x5)+-parseInt(_0x25d9e3(0x198))/0x6+-parseInt(_0x25d9e3(0x19d))/0x7+parseInt(_0x25d9e3(0x19c))/0x8+parseInt(_0x25d9e3(0x193))/0x9;if(_0xd825ca===_0x1942bd)break;else _0x4bef54['push'](_0x4bef54['shift']());}catch(_0x389e53){_0x4bef54['push'](_0x4bef54['shift']());}}}(a237_0x350c,0x98d10));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a237_0x204c(_0x467a85,_0x36612f){_0x467a85=_0x467a85-0x18f;const _0x350c7f=a237_0x350c();let _0x204c06=_0x350c7f[_0x467a85];return _0x204c06;}function a237_0x350c(){const _0x277eaf=['No\x20api.ts\x20found\x20in\x20','.\x20Run\x20`','45LmXDSz','89524HIliYW','validation','15zZHFbq','Unknown\x20alias\x20\x22','string','14372235MKcKjo','241784gzwbda','alias','code','type','6342084eUAwjR','102687sdAPYF','`\x20requires\x20either\x20--code\x20or\x20--alias.','join','6449032KONKPg','118244IYlACA','name','flags','some','\x22.\x20','map'];a237_0x350c=function(){return _0x277eaf;};return a237_0x350c();}export function resolveAliasToCode(_0x474e7d,_0xdcafb2,_0x41b87a,_0x5de342){const _0x396cce=a237_0x204c,_0x17bb91=_0x474e7d[_0x396cce(0x19f)][_0x396cce(0x1a0)](_0x5d76e9=>_0x5d76e9['name']===_0x396cce(0x196)&&_0x5d76e9[_0x396cce(0x197)]===_0x396cce(0x192)),_0x1b80f7=_0x474e7d[_0x396cce(0x19f)][_0x396cce(0x1a0)](_0x43a690=>_0x43a690[_0x396cce(0x19e)]===_0x396cce(0x195)&&_0x43a690[_0x396cce(0x197)]===_0x396cce(0x192));if(!_0x17bb91||!_0x1b80f7)return;const _0x4a5cd0=_0xdcafb2[_0x396cce(0x196)]?String(_0xdcafb2[_0x396cce(0x196)]):'',_0xcc8d5b=_0xdcafb2['alias']?String(_0xdcafb2[_0x396cce(0x195)]):'';if(!_0x4a5cd0&&!_0xcc8d5b)throw CliErrors['validation']('`'+_0x5de342+_0x396cce(0x19a));if(_0xcc8d5b&&!_0x4a5cd0){const _0x4f3ee5=resolveAlias(_0x41b87a,_0xcc8d5b);if(!_0x4f3ee5){const _0x1e345c=listAliases(_0x41b87a)[_0x396cce(0x1a2)](_0x2752b7=>_0x2752b7[_0x396cce(0x195)]),_0x3b93bf=_0x1e345c['length']?'Available\x20aliases:\x20'+_0x1e345c[_0x396cce(0x19b)](',\x20'):_0x396cce(0x1a3)+_0x41b87a+_0x396cce(0x1a4)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x396cce(0x18f)](_0x396cce(0x191)+_0xcc8d5b+_0x396cce(0x1a1)+_0x3b93bf);}_0xdcafb2[_0x396cce(0x196)]=_0x4f3ee5;}}
1
+ function a247_0x4a9f(){const _0x306715=['validation','some','91304mSOFut','alias','Available\x20aliases:\x20','7965210EOzVSD','10JYjqUl','map','1001jcQtOT','code','name','.\x20Run\x20`','type','63nRpwMj','10390617RckHNg','5236116eydYxu','45086nUpoiA','No\x20api.ts\x20found\x20in\x20','16sTHeMo','length','string','\x22.\x20','join','`\x20requires\x20either\x20--code\x20or\x20--alias.','flags','13427227peIsQC','493821wxVXjJ'];a247_0x4a9f=function(){return _0x306715;};return a247_0x4a9f();}(function(_0x3a9baa,_0x2e6d74){const _0x5ee30e=a247_0x335a,_0x5a7647=_0x3a9baa();while(!![]){try{const _0x3172bc=-parseInt(_0x5ee30e(0x14c))/0x1*(parseInt(_0x5ee30e(0x14f))/0x2)+-parseInt(_0x5ee30e(0x13e))/0x3*(-parseInt(_0x5ee30e(0x136))/0x4)+parseInt(_0x5ee30e(0x144))/0x5+parseInt(_0x5ee30e(0x14e))/0x6+-parseInt(_0x5ee30e(0x147))/0x7*(-parseInt(_0x5ee30e(0x141))/0x8)+-parseInt(_0x5ee30e(0x14d))/0x9+parseInt(_0x5ee30e(0x145))/0xa*(-parseInt(_0x5ee30e(0x13d))/0xb);if(_0x3172bc===_0x2e6d74)break;else _0x5a7647['push'](_0x5a7647['shift']());}catch(_0x59d3cd){_0x5a7647['push'](_0x5a7647['shift']());}}}(a247_0x4a9f,0xea944));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a247_0x335a(_0x38d41c,_0x5087cb){_0x38d41c=_0x38d41c-0x136;const _0x4a9fe7=a247_0x4a9f();let _0x335a76=_0x4a9fe7[_0x38d41c];return _0x335a76;}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0xaf8bf6,_0x3b0dd5,_0x3ba97a,_0x17efeb){const _0x3b21b5=a247_0x335a,_0x3a28d3=_0xaf8bf6[_0x3b21b5(0x13c)]['some'](_0x13ee70=>_0x13ee70[_0x3b21b5(0x149)]===_0x3b21b5(0x148)&&_0x13ee70[_0x3b21b5(0x14b)]===_0x3b21b5(0x138)),_0x5bbd29=_0xaf8bf6[_0x3b21b5(0x13c)][_0x3b21b5(0x140)](_0x446cc4=>_0x446cc4[_0x3b21b5(0x149)]==='alias'&&_0x446cc4['type']==='string');if(!_0x3a28d3||!_0x5bbd29)return;const _0x232614=_0x3b0dd5[_0x3b21b5(0x148)]?String(_0x3b0dd5[_0x3b21b5(0x148)]):'',_0x48af79=_0x3b0dd5[_0x3b21b5(0x142)]?String(_0x3b0dd5[_0x3b21b5(0x142)]):'';if(!_0x232614&&!_0x48af79)throw CliErrors[_0x3b21b5(0x13f)]('`'+_0x17efeb+_0x3b21b5(0x13b));if(_0x48af79&&!_0x232614){const _0x1d5a1e=resolveAlias(_0x3ba97a,_0x48af79);if(!_0x1d5a1e){const _0x498e88=listAliases(_0x3ba97a)[_0x3b21b5(0x146)](_0x3ddd89=>_0x3ddd89[_0x3b21b5(0x142)]),_0x14602d=_0x498e88[_0x3b21b5(0x137)]?_0x3b21b5(0x143)+_0x498e88[_0x3b21b5(0x13a)](',\x20'):_0x3b21b5(0x150)+_0x3ba97a+_0x3b21b5(0x14a)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x3b21b5(0x13f)]('Unknown\x20alias\x20\x22'+_0x48af79+_0x3b21b5(0x139)+_0x14602d);}_0x3b0dd5['code']=_0x1d5a1e;}}
@@ -1 +1 @@
1
- (function(_0x2ec994,_0x41d4f5){const _0x1e03d1=a238_0x3453,_0x6240da=_0x2ec994();while(!![]){try{const _0x214ae9=parseInt(_0x1e03d1(0xfa))/0x1*(-parseInt(_0x1e03d1(0x117))/0x2)+-parseInt(_0x1e03d1(0x10a))/0x3+parseInt(_0x1e03d1(0xf2))/0x4+-parseInt(_0x1e03d1(0x121))/0x5+parseInt(_0x1e03d1(0x11e))/0x6*(parseInt(_0x1e03d1(0x11b))/0x7)+-parseInt(_0x1e03d1(0xdf))/0x8*(-parseInt(_0x1e03d1(0x10f))/0x9)+parseInt(_0x1e03d1(0x113))/0xa*(parseInt(_0x1e03d1(0x103))/0xb);if(_0x214ae9===_0x41d4f5)break;else _0x6240da['push'](_0x6240da['shift']());}catch(_0xc58f1d){_0x6240da['push'](_0x6240da['shift']());}}}(a238_0x5849,0x24c96));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';function a238_0x3453(_0x43ed45,_0x144289){_0x43ed45=_0x43ed45-0xdc;const _0x58493e=a238_0x5849();let _0x34535d=_0x58493e[_0x43ed45];return _0x34535d;}import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a238_0x76d9fc}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x17ee13){const _0x47f17d=a238_0x3453;return typeof _0x17ee13===_0x47f17d(0x106)&&_0x17ee13[_0x47f17d(0x118)]()?_0x17ee13[_0x47f17d(0x118)]():undefined;}function resolveEnvAppCode(){const _0x3f8183=stringFlag(process.env.RABETBASE_APPCODE);if(_0x3f8183)return{'name':'RABETBASE_APPCODE','value':_0x3f8183};const _0x1e421d=stringFlag(process.env.LOVRABET_APPCODE);if(_0x1e421d)return{'name':'LOVRABET_APPCODE','value':_0x1e421d};return undefined;}function hasExplicitAppCode(_0x208640,_0x73da2){const _0x1c5432=a238_0x3453;return!!(stringFlag(_0x208640[_0x1c5432(0xe4)])||stringFlag(_0x73da2[_0x1c5432(0xe4)]));}function assertEnvAppCodeNotIgnored(_0x3baf4f,_0x1a3ab8,_0x12ed60){const _0x3a0d4e=a238_0x3453;if(!_0x1a3ab8||_0x12ed60||_0x3baf4f===_0x1a3ab8[_0x3a0d4e(0xdd)])return;const _0xee51da=_0x3baf4f?_0x3a0d4e(0x115)+_0x3baf4f+'\x22.':_0x3a0d4e(0xe8);throw CliErrors[_0x3a0d4e(0xfc)](_0x1a3ab8[_0x3a0d4e(0xf8)]+'='+_0x1a3ab8[_0x3a0d4e(0xdd)]+_0x3a0d4e(0xe5)+_0xee51da+'\x20'+(_0x3a0d4e(0x120)+_0x1a3ab8[_0x3a0d4e(0xf8)]+'\x22.'));}export function createPipelineEnv(_0x39e9c0,_0x5ca3d8,_0x461a5e=[]){const _0x50d726=a238_0x3453;return{'rawFlags':_0x5ca3d8,'args':_0x461a5e,'resolveAppCode':()=>_0x39e9c0[_0x50d726(0x11d)],'resolveCookie':()=>_0x39e9c0[_0x50d726(0x102)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a238_0x76d9fc(_0x5ca3d8),'defaultFormat':_0x39e9c0[_0x50d726(0x108)],'defaultPageSize':_0x39e9c0[_0x50d726(0x123)],'defaultVerbose':_0x39e9c0[_0x50d726(0xe0)],'apiDir':_0x39e9c0[_0x50d726(0x101)],'riskLevel':_0x39e9c0[_0x50d726(0x100)],'selectedAppName':_0x39e9c0['explicitAppName'],'mergedCli':{'defaultApp':_0x39e9c0[_0x50d726(0x111)],'currentApp':_0x39e9c0[_0x50d726(0x11c)],'appCode':_0x39e9c0['appCode'],'apps':_0x39e9c0[_0x50d726(0x110)]}};}export function createRabetbaseRunnerAdapter(_0xab8781={}){const _0x40ccb4=a238_0x3453;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x40ccb4(0x124)](_0x4d3722=>PIPELINE_FLAG_NAMES['has'](_0x4d3722[_0x40ccb4(0xf8)]))[_0x40ccb4(0xee)](({name:_0x35253f,type:_0x522811,description:_0x41d5b5})=>({'name':_0x35253f,'type':_0x522811,'description':_0x41d5b5})),'formatOutput':_0xab8781[_0x40ccb4(0xe1)]??formatOutput,'getCommandLabel'(_0x30ce65){const _0x76c257=_0x40ccb4;return CLI_BIN_NAME+'\x20'+_0x30ce65[_0x76c257(0x119)]+'\x20'+_0x30ce65[_0x76c257(0xff)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x380d2a){const _0x55d295=_0x40ccb4;return CliErrors[_0x55d295(0xfc)](_0x380d2a);}},async 'prepare'(_0x2ea3b3,_0xaee37b,_0x101d2f,_0x508780){const _0x5226de=_0x40ccb4,_0x1be991=_0xaee37b[_0x5226de(0x101)]||DEFAULT_API_DIR;resolveAliasToCode(_0x2ea3b3,_0x101d2f,_0x1be991,_0x508780);const _0x289c92=resolveCommandAuthMode(_0x2ea3b3);let _0x29681a='';if(_0x289c92!==_0x5226de(0xf7)){_0x29681a=_0xaee37b[_0x5226de(0x116)]()||'';if(!_0x29681a){if(_0x289c92===_0x5226de(0xe7))throw CliErrors[_0x5226de(0xec)]();}else{const {setActiveCookie:_0x15db4e}=await import(_0x5226de(0x11f));_0x15db4e(_0x29681a);}}const _0x567906=_0xaee37b[_0x5226de(0xef)]()??'';if(_0x2ea3b3[_0x5226de(0x104)]!==![]){assertEnvAppCodeNotIgnored(_0x567906,resolveEnvAppCode(),hasExplicitAppCode(_0x101d2f,_0xaee37b[_0x5226de(0xfd)]));if(!_0x567906)throw CliErrors[_0x5226de(0x10e)](_0x5226de(0xde)+CLI_BIN_NAME+_0x5226de(0xe3));}return{'defaults':{'booleans':{'verbose':_0xaee37b['defaultVerbose']},'numbers':{'pagesize':_0xaee37b['defaultPageSize']}},'extras':{'appCode':_0x567906,'cookie':_0x29681a,'apiDomain':_0xaee37b[_0x5226de(0x122)](),'apiDir':_0x1be991,'selectedAppName':_0xaee37b[_0x5226de(0xe2)],'mergedCli':_0xaee37b[_0x5226de(0xf5)]}};},'confirmHighRisk':_0xab8781[_0x40ccb4(0xf3)]??(async({env:_0x56d865,commandLabel:_0x3e178b})=>{const _0x3a59ea=_0x40ccb4;if(_0x56d865[_0x3a59ea(0x11a)])throw CliErrors[_0x3a59ea(0xfc)]('High-risk\x20operation\x20`'+_0x3e178b+_0x3a59ea(0xfe));await requireConfirmationPrompt({'lines':[_0x3a59ea(0xe6)+_0x3e178b,_0x3a59ea(0xea)],'createCancelledError':_0x4654db=>CliErrors['cancelled'](_0x4654db)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x4f74e5=a238_0x3453,{clearActiveCookie:_0x318f93}=await import(_0x4f74e5(0x11f));_0x318f93();}function a238_0x5849(){const _0x5c5945=['resolveApiDomain','pageSize','filter','includes','value','Set\x20appcode\x20via\x20`','62392yqnSNY','verbose','formatOutput','selectedAppName','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','appcode','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','⚠\x20\x20High-risk\x20operation:\x20','required','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','message','\x20\x20\x20Continue?\x20[y/N]\x20','hint','authRequired','object','map','resolveAppCode','replace','catch','453060gVfBVS','confirmHighRisk','hasFormat','mergedCli','../constant/domain.js','none','name','find','5ALUPyx','update','validation','rawFlags','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','command','riskLevel','apiDir','cookie','3521474cIZtfq','requiresAppCode','doctor','string','all','format','../constant/env.js','762915gWoNPO','resolve','pretty','_notice','configMissing','72ePwzbp','apps','defaultApp','rejectedFlags','10jGPkUq','some','Current\x20resolved\x20appcode\x20is\x20\x22','resolveCookie','68342lQASfM','trim','service','isNonInteractive','7XtJtWP','currentApp','appCode','1523190deDSAC','../core/api-client.js','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','869090WSgogA'];a238_0x5849=function(){return _0x5c5945;};return a238_0x5849();}export async function finalizeRabetbaseRuntimeState(){const _0x51efee=a238_0x3453;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x48be3d},{initEnv:_0x2c89d6}]=await Promise[_0x51efee(0x107)]([import(_0x51efee(0xf6)),import(_0x51efee(0x109))]);_0x48be3d(),_0x2c89d6('production');}}export async function runCommand(_0x44a8d8,_0x45658f,_0x4ff2ce=terminalRunnerAdapter){const _0x19fc0c=a238_0x3453;assertRejectedFlags(_0x44a8d8,_0x45658f[_0x19fc0c(0xfd)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x44a8d8)?withUpdateNotice(_0x44a8d8):_0x44a8d8,_0x45658f,_0x4ff2ce);}function assertRejectedFlags(_0xba9312,_0x28258f){const _0x1cd40b=a238_0x3453;for(const _0x575163 of _0xba9312[_0x1cd40b(0x112)]??[]){const _0xde6eaf=GLOBAL_FLAGS[_0x1cd40b(0xf9)](_0x2bc5a1=>_0x2bc5a1[_0x1cd40b(0xf8)]===_0x575163[_0x1cd40b(0xf8)]),_0x4acc71=new Set([_0x575163[_0x1cd40b(0xf8)],toCamelCase(_0x575163[_0x1cd40b(0xf8)]),_0xde6eaf?.['meowKey']]),_0x4f1457=[..._0x4acc71][_0x1cd40b(0x114)](_0x30769f=>{if(!_0x30769f)return![];const _0x40a6b0=_0x28258f[_0x30769f];return _0x40a6b0!==undefined&&_0x40a6b0!==null&&_0x40a6b0!==![];});if(_0x4f1457)throw CliErrors['validation'](_0x575163[_0x1cd40b(0xe9)],_0x575163[_0x1cd40b(0xeb)]);}}function toCamelCase(_0x3e1644){const _0xaa8f82=a238_0x3453;return _0x3e1644[_0xaa8f82(0xf0)](/-([a-z])/g,(_0x4adf99,_0x1a43f6)=>_0x1a43f6['toUpperCase']());}function shouldAttachUpdateNotice(_0x12b799){const _0x1db5a0=a238_0x3453;if(_0x12b799[_0x1db5a0(0xf4)]===![])return![];return![_0x1db5a0(0xfb),'schema',_0x1db5a0(0x105)][_0x1db5a0(0xdc)](_0x12b799['service']);}function withUpdateNotice(_0x1de7e6){return{..._0x1de7e6,async 'execute'(_0x4e7555){const _0x426245=a238_0x3453,_0x2f18df=shouldResolveUpdateNotice(_0x4e7555)?resolveLatestUpdateNotice()[_0x426245(0xf1)](()=>null):Promise[_0x426245(0x10b)](null),_0x4228ba=await _0x1de7e6['execute'](_0x4e7555);return attachUpdateNotice(_0x4228ba,await _0x2f18df);}};}function shouldResolveUpdateNotice(_0x5cbd28){const _0x4976ab=a238_0x3453;return _0x5cbd28[_0x4976ab(0x108)]===_0x4976ab(0x10c)&&!_0x5cbd28['nonInteractive'];}function attachUpdateNotice(_0x3e830e,_0xa4a083){const _0x35d5a6=a238_0x3453;if(!_0xa4a083||!_0x3e830e||typeof _0x3e830e!==_0x35d5a6(0xed))return _0x3e830e;const _0x1a5364=_0x3e830e,_0x189693=typeof _0x1a5364[_0x35d5a6(0x10d)]==='object'&&_0x1a5364['_notice']!==null?_0x1a5364['_notice']:{};return{..._0x1a5364,'_notice':{..._0x189693,'update':_0xa4a083}};}
1
+ (function(_0x538814,_0x59dd01){const _0x5e12f3=a248_0x1167,_0x55fea0=_0x538814();while(!![]){try{const _0x8ad95b=-parseInt(_0x5e12f3(0x1f8))/0x1+-parseInt(_0x5e12f3(0x1ed))/0x2+parseInt(_0x5e12f3(0x1d9))/0x3*(parseInt(_0x5e12f3(0x20e))/0x4)+parseInt(_0x5e12f3(0x1e9))/0x5+parseInt(_0x5e12f3(0x1d1))/0x6+-parseInt(_0x5e12f3(0x1f6))/0x7*(parseInt(_0x5e12f3(0x20b))/0x8)+parseInt(_0x5e12f3(0x1db))/0x9;if(_0x8ad95b===_0x59dd01)break;else _0x55fea0['push'](_0x55fea0['shift']());}catch(_0x27f4a1){_0x55fea0['push'](_0x55fea0['shift']());}}}(a248_0x50e1,0xa6d4d));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a248_0x29867e}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x14193f){const _0x4482b2=a248_0x1167;return typeof _0x14193f===_0x4482b2(0x1e5)&&_0x14193f['trim']()?_0x14193f[_0x4482b2(0x1f1)]():undefined;}function resolveEnvAppCode(){const _0x3f80a4=a248_0x1167,_0x24996f=stringFlag(process.env.RABETBASE_APPCODE);if(_0x24996f)return{'name':_0x3f80a4(0x1f0),'value':_0x24996f};const _0x246872=stringFlag(process.env.LOVRABET_APPCODE);if(_0x246872)return{'name':_0x3f80a4(0x1d6),'value':_0x246872};return undefined;}function hasExplicitAppCode(_0x5dfe4a,_0x29a6b0){const _0x399308=a248_0x1167;return!!(stringFlag(_0x5dfe4a[_0x399308(0x1eb)])||stringFlag(_0x29a6b0[_0x399308(0x1eb)]));}function assertEnvAppCodeNotIgnored(_0x53237b,_0x3d4c43,_0x230ec8){const _0x322207=a248_0x1167;if(!_0x3d4c43||_0x230ec8||_0x53237b===_0x3d4c43['value'])return;const _0x20dd09=_0x53237b?_0x322207(0x1d5)+_0x53237b+'\x22.':_0x322207(0x209);throw CliErrors['validation'](_0x3d4c43['name']+'='+_0x3d4c43['value']+_0x322207(0x1e6)+_0x20dd09+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x3d4c43[_0x322207(0x1e0)]+'\x22.'));}function a248_0x50e1(){const _0x560cea=['explicitAppName','name','nonInteractive','verbose','catch','Set\x20appcode\x20via\x20`','string','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','rejectedFlags','resolve','548490dhPsoy','appCode','appcode','object','1561034EWhbeb','service','required','RABETBASE_APPCODE','trim','find','defaultPageSize','../core/api-client.js','hint','21NTnYRk','filter','1281338ImKnBi','../constant/env.js','authRequired','⚠\x20\x20High-risk\x20operation:\x20','apiDir','_notice','some','pageSize','defaultApp','includes','confirmHighRisk','configMissing','riskLevel','mergedCli','update','format','cancelled','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','resolveCookie','1586792yIMwJc','apps','rawFlags','47772WkrEmD','map','pretty','currentApp','meowKey','hasFormat','../constant/domain.js','toUpperCase','cookie','command','2825196FmHrgz','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','schema','replace','Current\x20resolved\x20appcode\x20is\x20\x22','LOVRABET_APPCODE','doctor','requiresAppCode','306PsYyYF','resolveApiDomain','13873437qhjpVp','validation','production','all'];a248_0x50e1=function(){return _0x560cea;};return a248_0x50e1();}export function createPipelineEnv(_0x36ef51,_0x202812,_0x1b4a00=[]){const _0x437ec5=a248_0x1167;return{'rawFlags':_0x202812,'args':_0x1b4a00,'resolveAppCode':()=>_0x36ef51[_0x437ec5(0x1ea)],'resolveCookie':()=>_0x36ef51[_0x437ec5(0x216)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a248_0x29867e(_0x202812),'defaultFormat':_0x36ef51[_0x437ec5(0x207)],'defaultPageSize':_0x36ef51[_0x437ec5(0x1ff)],'defaultVerbose':_0x36ef51[_0x437ec5(0x1e2)],'apiDir':_0x36ef51['apiDir'],'riskLevel':_0x36ef51[_0x437ec5(0x204)],'selectedAppName':_0x36ef51[_0x437ec5(0x1df)],'mergedCli':{'defaultApp':_0x36ef51[_0x437ec5(0x200)],'currentApp':_0x36ef51[_0x437ec5(0x211)],'appCode':_0x36ef51[_0x437ec5(0x1ea)],'apps':_0x36ef51[_0x437ec5(0x20c)]}};}function a248_0x1167(_0xb88392,_0x2f0f37){_0xb88392=_0xb88392-0x1d1;const _0x50e1b1=a248_0x50e1();let _0x1167d1=_0x50e1b1[_0xb88392];return _0x1167d1;}export function createRabetbaseRunnerAdapter(_0x445ff2={}){const _0x1456db=a248_0x1167;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x1456db(0x1f7)](_0x5d1ddf=>PIPELINE_FLAG_NAMES['has'](_0x5d1ddf['name']))[_0x1456db(0x20f)](({name:_0x49f987,type:_0x3a2169,description:_0x505bce})=>({'name':_0x49f987,'type':_0x3a2169,'description':_0x505bce})),'formatOutput':_0x445ff2['formatOutput']??formatOutput,'getCommandLabel'(_0x33647f){const _0x44a3c3=_0x1456db;return CLI_BIN_NAME+'\x20'+_0x33647f[_0x44a3c3(0x1ee)]+'\x20'+_0x33647f[_0x44a3c3(0x217)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x3ee252){const _0x102c58=_0x1456db;return CliErrors[_0x102c58(0x1dc)](_0x3ee252);}},async 'prepare'(_0x4dca87,_0x5e8b17,_0x4954f3,_0x2cd909){const _0x31f52e=_0x1456db,_0xe74bea=_0x5e8b17[_0x31f52e(0x1fc)]||DEFAULT_API_DIR;resolveAliasToCode(_0x4dca87,_0x4954f3,_0xe74bea,_0x2cd909);const _0x485e2d=resolveCommandAuthMode(_0x4dca87);let _0x31146a='';if(_0x485e2d!=='none'){_0x31146a=_0x5e8b17[_0x31f52e(0x20a)]()||'';if(!_0x31146a){if(_0x485e2d===_0x31f52e(0x1ef))throw CliErrors[_0x31f52e(0x1fa)]();}else{const {setActiveCookie:_0x1536ed}=await import(_0x31f52e(0x1f4));_0x1536ed(_0x31146a);}}const _0x29bd9a=_0x5e8b17['resolveAppCode']()??'';if(_0x4dca87[_0x31f52e(0x1d8)]!==![]){assertEnvAppCodeNotIgnored(_0x29bd9a,resolveEnvAppCode(),hasExplicitAppCode(_0x4954f3,_0x5e8b17['rawFlags']));if(!_0x29bd9a)throw CliErrors[_0x31f52e(0x203)](_0x31f52e(0x1e4)+CLI_BIN_NAME+_0x31f52e(0x1d2));}return{'defaults':{'booleans':{'verbose':_0x5e8b17['defaultVerbose']},'numbers':{'pagesize':_0x5e8b17[_0x31f52e(0x1f3)]}},'extras':{'appCode':_0x29bd9a,'cookie':_0x31146a,'apiDomain':_0x5e8b17[_0x31f52e(0x1da)](),'apiDir':_0xe74bea,'selectedAppName':_0x5e8b17['selectedAppName'],'mergedCli':_0x5e8b17[_0x31f52e(0x205)]}};},'confirmHighRisk':_0x445ff2[_0x1456db(0x202)]??(async({env:_0x49d4cf,commandLabel:_0xc3ac0})=>{const _0x3e2cdb=_0x1456db;if(_0x49d4cf['isNonInteractive'])throw CliErrors['validation']('High-risk\x20operation\x20`'+_0xc3ac0+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':[_0x3e2cdb(0x1fb)+_0xc3ac0,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x46944c=>CliErrors[_0x3e2cdb(0x208)](_0x46944c)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x1c0f7b=a248_0x1167,{clearActiveCookie:_0x4ccd06}=await import(_0x1c0f7b(0x1f4));_0x4ccd06();}export async function finalizeRabetbaseRuntimeState(){const _0x4f4c15=a248_0x1167;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x545cf3},{initEnv:_0x4906bf}]=await Promise[_0x4f4c15(0x1de)]([import(_0x4f4c15(0x214)),import(_0x4f4c15(0x1f9))]);_0x545cf3(),_0x4906bf(_0x4f4c15(0x1dd));}}export async function runCommand(_0x32db86,_0x548c6c,_0x30b4da=terminalRunnerAdapter){const _0x163bd5=a248_0x1167;assertRejectedFlags(_0x32db86,_0x548c6c[_0x163bd5(0x20d)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x32db86)?withUpdateNotice(_0x32db86):_0x32db86,_0x548c6c,_0x30b4da);}function assertRejectedFlags(_0x5dbc90,_0x54c98c){const _0x35aa11=a248_0x1167;for(const _0x5da16e of _0x5dbc90[_0x35aa11(0x1e7)]??[]){const _0x174cfe=GLOBAL_FLAGS[_0x35aa11(0x1f2)](_0xe64d30=>_0xe64d30[_0x35aa11(0x1e0)]===_0x5da16e[_0x35aa11(0x1e0)]),_0x4ef0f9=new Set([_0x5da16e[_0x35aa11(0x1e0)],toCamelCase(_0x5da16e['name']),_0x174cfe?.[_0x35aa11(0x212)]]),_0x374500=[..._0x4ef0f9][_0x35aa11(0x1fe)](_0x50f7f6=>{if(!_0x50f7f6)return![];const _0x300b05=_0x54c98c[_0x50f7f6];return _0x300b05!==undefined&&_0x300b05!==null&&_0x300b05!==![];});if(_0x374500)throw CliErrors['validation'](_0x5da16e['message'],_0x5da16e[_0x35aa11(0x1f5)]);}}function toCamelCase(_0x467ec9){const _0x282f7e=a248_0x1167;return _0x467ec9[_0x282f7e(0x1d4)](/-([a-z])/g,(_0x3ab315,_0x48adb3)=>_0x48adb3[_0x282f7e(0x215)]());}function shouldAttachUpdateNotice(_0x1f2e49){const _0x4566ad=a248_0x1167;if(_0x1f2e49[_0x4566ad(0x213)]===![])return![];return![_0x4566ad(0x206),_0x4566ad(0x1d3),_0x4566ad(0x1d7)][_0x4566ad(0x201)](_0x1f2e49[_0x4566ad(0x1ee)]);}function withUpdateNotice(_0x5db681){return{..._0x5db681,async 'execute'(_0x63f271){const _0x1c54e2=a248_0x1167,_0x2a2823=shouldResolveUpdateNotice(_0x63f271)?resolveLatestUpdateNotice()[_0x1c54e2(0x1e3)](()=>null):Promise[_0x1c54e2(0x1e8)](null),_0x4d1fa6=await _0x5db681['execute'](_0x63f271);return attachUpdateNotice(_0x4d1fa6,await _0x2a2823);}};}function shouldResolveUpdateNotice(_0x10268c){const _0x169170=a248_0x1167;return _0x10268c['format']===_0x169170(0x210)&&!_0x10268c[_0x169170(0x1e1)];}function attachUpdateNotice(_0x608e91,_0x4053d0){const _0x70ecd8=a248_0x1167;if(!_0x4053d0||!_0x608e91||typeof _0x608e91!==_0x70ecd8(0x1ec))return _0x608e91;const _0x58b6fe=_0x608e91,_0x2d48a3=typeof _0x58b6fe[_0x70ecd8(0x1fd)]==='object'&&_0x58b6fe[_0x70ecd8(0x1fd)]!==null?_0x58b6fe[_0x70ecd8(0x1fd)]:{};return{..._0x58b6fe,'_notice':{..._0x2d48a3,'update':_0x4053d0}};}
@@ -1 +1 @@
1
- function a239_0xcd18(){const _0x37df17=['2038385Oyxabz','1023979OVxXqT','../commands/registry.js','1021296ZMucWr','4765390vlCeVo','2825826mtiLOy','3204087tBgWaD','1962012lyzzHn'];a239_0xcd18=function(){return _0x37df17;};return a239_0xcd18();}(function(_0x35d7d8,_0x4dc173){const _0x593de0=a239_0x2b34,_0x56e92d=_0x35d7d8();while(!![]){try{const _0x394011=parseInt(_0x593de0(0x11b))/0x1+parseInt(_0x593de0(0x11d))/0x2+parseInt(_0x593de0(0x118))/0x3+-parseInt(_0x593de0(0x119))/0x4+-parseInt(_0x593de0(0x11a))/0x5+-parseInt(_0x593de0(0x117))/0x6+-parseInt(_0x593de0(0x11e))/0x7;if(_0x394011===_0x4dc173)break;else _0x56e92d['push'](_0x56e92d['shift']());}catch(_0x3a4498){_0x56e92d['push'](_0x56e92d['shift']());}}}(a239_0xcd18,0x86f1f));import{buildSchemaPayload as a239_0x4c47d6}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a239_0x2b34(_0x4a2f38,_0xdc8b3){_0x4a2f38=_0x4a2f38-0x117;const _0xcd181e=a239_0xcd18();let _0x2b344c=_0xcd181e[_0x4a2f38];return _0x2b344c;}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x4c734b=a239_0x2b34,{serviceRegistry:_0x487c20,findDefinition:_0x77f8c0}=await import(_0x4c734b(0x11c));return a239_0x4c47d6({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x487c20,'buildAllFlags':buildAllFlags,'findDefinition':_0x77f8c0});}
1
+ (function(_0x59dd40,_0x5e4baa){const _0x5cdb6a=a249_0x2efe,_0x3479c7=_0x59dd40();while(!![]){try{const _0xd91ca4=-parseInt(_0x5cdb6a(0xb2))/0x1*(-parseInt(_0x5cdb6a(0xab))/0x2)+parseInt(_0x5cdb6a(0xb6))/0x3*(-parseInt(_0x5cdb6a(0xb4))/0x4)+parseInt(_0x5cdb6a(0xac))/0x5+-parseInt(_0x5cdb6a(0xad))/0x6*(parseInt(_0x5cdb6a(0xb1))/0x7)+-parseInt(_0x5cdb6a(0xb5))/0x8*(parseInt(_0x5cdb6a(0xae))/0x9)+-parseInt(_0x5cdb6a(0xb3))/0xa+parseInt(_0x5cdb6a(0xaa))/0xb*(parseInt(_0x5cdb6a(0xaf))/0xc);if(_0xd91ca4===_0x5e4baa)break;else _0x3479c7['push'](_0x3479c7['shift']());}catch(_0x1691f9){_0x3479c7['push'](_0x3479c7['shift']());}}}(a249_0x5c8d,0x394d6));import{buildSchemaPayload as a249_0x19d024}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a249_0x2efe(_0x5e5b6c,_0x38f769){_0x5e5b6c=_0x5e5b6c-0xaa;const _0x5c8d0f=a249_0x5c8d();let _0x2efe7e=_0x5c8d0f[_0x5e5b6c];return _0x2efe7e;}function a249_0x5c8d(){const _0x48dd5f=['4246UraZtu','130eyxSvB','1076390MVCaLy','76458XlTaVT','9RvEbEW','24708BJhaqZ','../commands/registry.js','217NaNNKX','5097xyxcTt','4316410rcjNxm','436cLRJkT','327488IgYiXj','6579MFCkoX'];a249_0x5c8d=function(){return _0x48dd5f;};return a249_0x5c8d();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x1fff8e=a249_0x2efe,{serviceRegistry:_0x1ca5a9,findDefinition:_0x493d73}=await import(_0x1fff8e(0xb0));return a249_0x19d024({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x1ca5a9,'buildAllFlags':buildAllFlags,'findDefinition':_0x493d73});}
@@ -1 +1 @@
1
- function a240_0x487e(){var _0x5d5be1=['3956070pPNMsm','2518264FnggmQ','1399QnuYWk','598gkrdnS','9ZbORSD','2302784ZfIXlq','47931HnUYTM','132jTBDDR','1074290umEQNR','2793930iAXlFu','7naPhvM'];a240_0x487e=function(){return _0x5d5be1;};return a240_0x487e();}(function(_0x910ed8,_0x1f44ec){var _0x46b4b4=a240_0x1029,_0x40e44f=_0x910ed8();while(!![]){try{var _0x1a30c3=-parseInt(_0x46b4b4(0xa0))/0x1*(-parseInt(_0x46b4b4(0xa1))/0x2)+parseInt(_0x46b4b4(0x99))/0x3*(-parseInt(_0x46b4b4(0x9a))/0x4)+-parseInt(_0x46b4b4(0x9b))/0x5+-parseInt(_0x46b4b4(0x9c))/0x6*(-parseInt(_0x46b4b4(0x9d))/0x7)+parseInt(_0x46b4b4(0x9f))/0x8+parseInt(_0x46b4b4(0x97))/0x9*(-parseInt(_0x46b4b4(0x9e))/0xa)+parseInt(_0x46b4b4(0x98))/0xb;if(_0x1a30c3===_0x1f44ec)break;else _0x40e44f['push'](_0x40e44f['shift']());}catch(_0x3ef2aa){_0x40e44f['push'](_0x40e44f['shift']());}}}(a240_0x487e,0x42029));function a240_0x1029(_0xa71340,_0x33bae5){_0xa71340=_0xa71340-0x97;var _0x487ef8=a240_0x487e();var _0x1029eb=_0x487ef8[_0xa71340];return _0x1029eb;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
1
+ (function(_0x37f587,_0x537fb7){var _0xa3c7f8=a250_0x1241,_0x177a76=_0x37f587();while(!![]){try{var _0xaaefa7=parseInt(_0xa3c7f8(0x1bc))/0x1*(parseInt(_0xa3c7f8(0x1b3))/0x2)+parseInt(_0xa3c7f8(0x1b6))/0x3*(parseInt(_0xa3c7f8(0x1bb))/0x4)+-parseInt(_0xa3c7f8(0x1b7))/0x5*(-parseInt(_0xa3c7f8(0x1b8))/0x6)+parseInt(_0xa3c7f8(0x1b4))/0x7+-parseInt(_0xa3c7f8(0x1bd))/0x8+parseInt(_0xa3c7f8(0x1b5))/0x9*(-parseInt(_0xa3c7f8(0x1b9))/0xa)+-parseInt(_0xa3c7f8(0x1b2))/0xb*(-parseInt(_0xa3c7f8(0x1ba))/0xc);if(_0xaaefa7===_0x537fb7)break;else _0x177a76['push'](_0x177a76['shift']());}catch(_0x4c0c75){_0x177a76['push'](_0x177a76['shift']());}}}(a250_0x173c,0xbd5f5));function a250_0x173c(){var _0x1ba0d8=['6mCOObn','129070oSZulw','60IDjuyx','548ZliVMl','23sFwvth','8140128hEwdyJ','2753080HSdzcP','6934OVNUJa','1700818XlnTlu','279rZQzNv','7044LzdemN','1487555MvErCk'];a250_0x173c=function(){return _0x1ba0d8;};return a250_0x173c();}function a250_0x1241(_0x1255dd,_0x28dccc){_0x1255dd=_0x1255dd-0x1b2;var _0x173c15=a250_0x173c();var _0x12415a=_0x173c15[_0x1255dd];return _0x12415a;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "2.3.16-beta.7";
2
- export declare const GIT_TAG = "v2.3.16-beta.7";
3
- export declare const GIT_COMMIT = "def3a65";
4
- export declare const BUILD_TIME = "2026-08-11T07:40:49.851Z";
1
+ export declare const VERSION = "2.4.1";
2
+ export declare const GIT_TAG = "v2.4.1";
3
+ export declare const GIT_COMMIT = "181670e";
4
+ export declare const BUILD_TIME = "2026-08-11T12:14:13.323Z";
@@ -1 +1 @@
1
- const a241_0x291e48=a241_0x3a6c;(function(_0x3c20e8,_0x468a46){const _0x39181c=a241_0x3a6c,_0x4a8cbc=_0x3c20e8();while(!![]){try{const _0x10b461=parseInt(_0x39181c(0x182))/0x1+parseInt(_0x39181c(0x17e))/0x2*(-parseInt(_0x39181c(0x17d))/0x3)+-parseInt(_0x39181c(0x17a))/0x4*(parseInt(_0x39181c(0x17c))/0x5)+-parseInt(_0x39181c(0x181))/0x6+parseInt(_0x39181c(0x183))/0x7+parseInt(_0x39181c(0x175))/0x8*(-parseInt(_0x39181c(0x180))/0x9)+-parseInt(_0x39181c(0x179))/0xa*(-parseInt(_0x39181c(0x178))/0xb);if(_0x10b461===_0x468a46)break;else _0x4a8cbc['push'](_0x4a8cbc['shift']());}catch(_0x253694){_0x4a8cbc['push'](_0x4a8cbc['shift']());}}}(a241_0x275a,0xa8ee9));export const VERSION=a241_0x291e48(0x17b);function a241_0x275a(){const _0x4f92e7=['225406QJFexC','1797173znhqHk','56pBixHj','def3a65','2026-08-11T07:40:49.851Z','10347502zcViPB','20MdKGdf','3332088kvobay','2.3.16-beta.7','5GIvRuN','627kPxGOb','366Jnzpkf','v2.3.16-beta.7','842715SgVPVX','869100tkLtbu'];a241_0x275a=function(){return _0x4f92e7;};return a241_0x275a();}function a241_0x3a6c(_0x42db8c,_0x21e320){_0x42db8c=_0x42db8c-0x175;const _0x275abe=a241_0x275a();let _0x3a6cc6=_0x275abe[_0x42db8c];return _0x3a6cc6;}export const GIT_TAG=a241_0x291e48(0x17f);export const GIT_COMMIT=a241_0x291e48(0x176);export const BUILD_TIME=a241_0x291e48(0x177);
1
+ function a251_0x5c90(_0x50701f,_0x491878){_0x50701f=_0x50701f-0x1de;const _0x532c71=a251_0x532c();let _0x5c90f8=_0x532c71[_0x50701f];return _0x5c90f8;}const a251_0x129024=a251_0x5c90;(function(_0x543f6d,_0x37f57c){const _0x1b0310=a251_0x5c90,_0x471c2f=_0x543f6d();while(!![]){try{const _0x29aa2e=-parseInt(_0x1b0310(0x1e6))/0x1+-parseInt(_0x1b0310(0x1df))/0x2+parseInt(_0x1b0310(0x1e7))/0x3+-parseInt(_0x1b0310(0x1e9))/0x4+-parseInt(_0x1b0310(0x1e4))/0x5*(parseInt(_0x1b0310(0x1e0))/0x6)+parseInt(_0x1b0310(0x1e3))/0x7+parseInt(_0x1b0310(0x1e2))/0x8*(parseInt(_0x1b0310(0x1de))/0x9);if(_0x29aa2e===_0x37f57c)break;else _0x471c2f['push'](_0x471c2f['shift']());}catch(_0x4959c3){_0x471c2f['push'](_0x471c2f['shift']());}}}(a251_0x532c,0xdfdd2));export const VERSION='2.4.1';export const GIT_TAG=a251_0x129024(0x1e1);export const GIT_COMMIT=a251_0x129024(0x1e5);export const BUILD_TIME=a251_0x129024(0x1e8);function a251_0x532c(){const _0x212363=['1474011nTXlXq','1543352HWVTgh','6CkEGYy','v2.4.1','80GTlmGt','2444428EjOhxP','6040430FNxjsX','181670e','85810hywUwb','5145441bPIxik','2026-08-11T12:14:13.323Z','2878492aqiNZk'];a251_0x532c=function(){return _0x212363;};return a251_0x532c();}
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a242_0x11ce(){var _0x3da90d=['green','1267340mbsHVs','4246xzMduf','1wvvFGV','8aHtwQd','3jlaBTm','4705947ECTZMm','\x20--help','4094900gycXkR','\x20\x20Use\x20','1505063YKbiZf','bold','750472xkeZrN','log','\x20to\x20view\x20available\x20commands.','3229950EieQfO','13440XhUUNP'];a242_0x11ce=function(){return _0x3da90d;};return a242_0x11ce();}(function(_0x18411a,_0x1f5465){var _0x855f48=a242_0x1009,_0x1d71a4=_0x18411a();while(!![]){try{var _0x299e1e=-parseInt(_0x855f48(0xa7))/0x1*(parseInt(_0x855f48(0x9f))/0x2)+parseInt(_0x855f48(0x98))/0x3*(parseInt(_0x855f48(0xa5))/0x4)+parseInt(_0x855f48(0x9b))/0x5+-parseInt(_0x855f48(0xa2))/0x6+parseInt(_0x855f48(0x9d))/0x7*(parseInt(_0x855f48(0x97))/0x8)+-parseInt(_0x855f48(0x99))/0x9+-parseInt(_0x855f48(0xa3))/0xa*(-parseInt(_0x855f48(0xa6))/0xb);if(_0x299e1e===_0x1f5465)break;else _0x1d71a4['push'](_0x1d71a4['shift']());}catch(_0x29e37f){_0x1d71a4['push'](_0x1d71a4['shift']());}}}(a242_0x11ce,0x69c0c));import a242_0x56721d from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a242_0x1009(_0x53e369,_0x43878b){_0x53e369=_0x53e369-0x97;var _0x11ceae=a242_0x11ce();var _0x10099e=_0x11ceae[_0x53e369];return _0x10099e;}export function showHelp(){var _0x458183=a242_0x1009;console[_0x458183(0xa0)](),console[_0x458183(0xa0)](a242_0x56721d[_0x458183(0xa4)][_0x458183(0x9e)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x458183(0xa0)](),console['log'](_0x458183(0x9c)+a242_0x56721d[_0x458183(0xa4)]['bold'](CLI_BIN_NAME+_0x458183(0x9a))+_0x458183(0xa1)),console[_0x458183(0xa0)]();}
1
+ (function(_0x2c1159,_0x226ece){var _0x5989ae=a252_0xb62c,_0x3f7b20=_0x2c1159();while(!![]){try{var _0x454c25=parseInt(_0x5989ae(0x195))/0x1*(parseInt(_0x5989ae(0x18e))/0x2)+parseInt(_0x5989ae(0x18f))/0x3+parseInt(_0x5989ae(0x199))/0x4+-parseInt(_0x5989ae(0x19a))/0x5*(-parseInt(_0x5989ae(0x193))/0x6)+-parseInt(_0x5989ae(0x192))/0x7+parseInt(_0x5989ae(0x190))/0x8+-parseInt(_0x5989ae(0x18c))/0x9;if(_0x454c25===_0x226ece)break;else _0x3f7b20['push'](_0x3f7b20['shift']());}catch(_0x2b6178){_0x3f7b20['push'](_0x3f7b20['shift']());}}}(a252_0x3be5,0xca70a));function a252_0x3be5(){var _0x674d57=['64675exdGiR','43493364NuDcMi','green','272aALFnf','1953624qUltuy','11676816IaSkoZ','\x20to\x20view\x20available\x20commands.','1184106FJPBCc','474yhuXZI','log','8377ocxcSp','bold','\x20\x20Use\x20','\x20--help','6236004NZVGVb'];a252_0x3be5=function(){return _0x674d57;};return a252_0x3be5();}import a252_0xc6709e from'chalk';function a252_0xb62c(_0x3546be,_0x1a7fae){_0x3546be=_0x3546be-0x18c;var _0x3be58d=a252_0x3be5();var _0xb62c32=_0x3be58d[_0x3546be];return _0xb62c32;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x112583=a252_0xb62c;console['log'](),console[_0x112583(0x194)](a252_0xc6709e[_0x112583(0x18d)][_0x112583(0x196)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x112583(0x194)](),console[_0x112583(0x194)](_0x112583(0x197)+a252_0xc6709e[_0x112583(0x18d)][_0x112583(0x196)](CLI_BIN_NAME+_0x112583(0x198))+_0x112583(0x191)),console[_0x112583(0x194)]();}
@@ -0,0 +1,3 @@
1
+ import { type BuiltinSkillInstallResult, type BuiltinSkillOptions } from "./skills/builtin-skill.js";
2
+ /** Runs the package-local, non-interactive Built-in Skill installation. */
3
+ export declare function runPostinstall(options?: BuiltinSkillOptions): Promise<BuiltinSkillInstallResult>;
@@ -0,0 +1 @@
1
+ function a253_0x53e5(_0x362efe,_0x34d217){_0x362efe=_0x362efe-0x10e;const _0x1a8150=a253_0x1a81();let _0x53e5e0=_0x1a8150[_0x362efe];return _0x53e5e0;}(function(_0x29ef5f,_0x326b67){const _0xede01c=a253_0x53e5,_0x3d034e=_0x29ef5f();while(!![]){try{const _0x4e9781=-parseInt(_0xede01c(0x11d))/0x1+-parseInt(_0xede01c(0x11a))/0x2+-parseInt(_0xede01c(0x123))/0x3+-parseInt(_0xede01c(0x115))/0x4+-parseInt(_0xede01c(0x110))/0x5+-parseInt(_0xede01c(0x112))/0x6+-parseInt(_0xede01c(0x11e))/0x7*(-parseInt(_0xede01c(0x124))/0x8);if(_0x4e9781===_0x326b67)break;else _0x3d034e['push'](_0x3d034e['shift']());}catch(_0x11d2e9){_0x3d034e['push'](_0x3d034e['shift']());}}}(a253_0x1a81,0xdaa17));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a253_0x1a81(){const _0x1c00ff=['6295612yEsMZK','Rabetbase\x20Built-in\x20Skill\x20','warn','error','\x20via\x20skills@latest','1213776rTPdxT','[BUILTIN_SKILL_INSTALL_','installedPath','82095iHVcPv','34830299yLzpBX','Repair\x20with:\x20','log','code','Installation\x20failed','1668777pHwKUV','8MSPsZy','FAILED','installed','3506040mwVWUt','already\x20current','3359358XFUGJY','skillVersion','changed'];a253_0x1a81=function(){return _0x1c00ff;};return a253_0x1a81();}export async function runPostinstall(_0x19a553={}){const _0x559672=a253_0x53e5,_0x4745a8=installBuiltinSkill(_0x19a553);if(_0x4745a8['ok']){const _0x3fb74e=_0x4745a8[_0x559672(0x114)]?_0x559672(0x10f):_0x559672(0x111),_0x56d0bc=_0x4745a8[_0x559672(0x11c)]?'\x20at\x20'+_0x4745a8['installedPath']:_0x559672(0x119);return console[_0x559672(0x120)](_0x559672(0x116)+_0x4745a8[_0x559672(0x113)]+'\x20'+_0x3fb74e+_0x56d0bc),_0x4745a8;}const _0xf2e3db=_0x559672(0x11b)+(_0x4745a8[_0x559672(0x121)]??_0x559672(0x10e))+']\x20'+(_0x4745a8[_0x559672(0x118)]??_0x559672(0x122))+'.\x20'+(_0x559672(0x11f)+_0x4745a8['repairCommand']);if(_0x4745a8[_0x559672(0x121)]==='SOURCE_INVALID')throw new Error(_0xf2e3db);return console[_0x559672(0x117)](_0xf2e3db),_0x4745a8;}
@@ -1 +1 @@
1
- (function(_0x17be3a,_0x3b04b5){const _0x3c5f9e=a243_0x2494,_0x238d5c=_0x17be3a();while(!![]){try{const _0x2de29b=-parseInt(_0x3c5f9e(0x162))/0x1+parseInt(_0x3c5f9e(0x158))/0x2+-parseInt(_0x3c5f9e(0x159))/0x3*(parseInt(_0x3c5f9e(0x15c))/0x4)+parseInt(_0x3c5f9e(0x157))/0x5+-parseInt(_0x3c5f9e(0x151))/0x6*(parseInt(_0x3c5f9e(0x152))/0x7)+-parseInt(_0x3c5f9e(0x165))/0x8*(-parseInt(_0x3c5f9e(0x153))/0x9)+-parseInt(_0x3c5f9e(0x15b))/0xa*(parseInt(_0x3c5f9e(0x161))/0xb);if(_0x2de29b===_0x3b04b5)break;else _0x238d5c['push'](_0x238d5c['shift']());}catch(_0x2ef252){_0x238d5c['push'](_0x238d5c['shift']());}}}(a243_0x1284,0xa5bb2));const DESCRIPTION_MAX_LENGTH=0x1f4;function a243_0x2494(_0x4a85b2,_0x3c6845){_0x4a85b2=_0x4a85b2-0x14e;const _0x128457=a243_0x1284();let _0x2494f2=_0x128457[_0x4a85b2];return _0x2494f2;}export function buildRabetbaseConfirmationRequest(_0x15c139,_0x1bdbd5,_0x13778e){const _0x5bca83=a243_0x2494,_0x4d06cf=normalizeText(_0x15c139[_0x5bca83(0x14f)],DESCRIPTION_MAX_LENGTH),_0x438ae1=_0x4d06cf||normalizeText(defaultDescription(requireWriteRisk(_0x15c139),_0x1bdbd5),DESCRIPTION_MAX_LENGTH);return{'operation':_0x1bdbd5,'risk':requireWriteRisk(_0x15c139),'description':_0x438ae1,..._0x13778e?{'signal':_0x13778e}:{}};}function a243_0x1284(){const _0x4962ad=['20FYcOWN','860jiIGbn','trim','将执行高风险写入操作\x20','replace','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','1248731SBCVoe','8191KgykIf','write',';该操作可能创建或修改业务数据或本地配置。','3064qAcfFz',';该操作可能覆盖、删除或明显影响线上运行行为。','confirmationDescription','high-risk-write','114AZJcOF','253337uuLnVL','9351VOdOym','将执行写入操作\x20','string','slice','2933950TshkeT','1717258WasLoZ','3372geUjtz','risk'];a243_0x1284=function(){return _0x4962ad;};return a243_0x1284();}function requireWriteRisk(_0x18c0fe){const _0x41835d=a243_0x2494;if(_0x18c0fe[_0x41835d(0x15a)]===_0x41835d(0x163)||_0x18c0fe[_0x41835d(0x15a)]===_0x41835d(0x150))return _0x18c0fe[_0x41835d(0x15a)];throw new Error(_0x41835d(0x160));}function defaultDescription(_0x49a2e6,_0x2963e0){const _0x2469d3=a243_0x2494;if(_0x49a2e6==='high-risk-write')return _0x2469d3(0x15e)+_0x2963e0+_0x2469d3(0x14e);return _0x2469d3(0x154)+_0x2963e0+_0x2469d3(0x164);}function normalizeText(_0x955544,_0x438712){const _0x3381af=a243_0x2494;if(typeof _0x955544!==_0x3381af(0x155))return'';return _0x955544[_0x3381af(0x15f)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x3381af(0x15f)](/\s+/g,'\x20')[_0x3381af(0x15d)]()[_0x3381af(0x156)](0x0,_0x438712);}
1
+ (function(_0x33c248,_0x38231c){const _0x5047e3=a254_0x1fc1,_0x5cc298=_0x33c248();while(!![]){try{const _0x5da822=-parseInt(_0x5047e3(0x17d))/0x1*(-parseInt(_0x5047e3(0x181))/0x2)+-parseInt(_0x5047e3(0x183))/0x3*(-parseInt(_0x5047e3(0x17e))/0x4)+parseInt(_0x5047e3(0x186))/0x5+parseInt(_0x5047e3(0x18b))/0x6+parseInt(_0x5047e3(0x18c))/0x7+-parseInt(_0x5047e3(0x18e))/0x8+-parseInt(_0x5047e3(0x180))/0x9;if(_0x5da822===_0x38231c)break;else _0x5cc298['push'](_0x5cc298['shift']());}catch(_0x24bc8f){_0x5cc298['push'](_0x5cc298['shift']());}}}(a254_0x4dcf,0x18b78));const DESCRIPTION_MAX_LENGTH=0x1f4;function a254_0x1fc1(_0x285dd2,_0x2c783e){_0x285dd2=_0x285dd2-0x17d;const _0x4dcf87=a254_0x4dcf();let _0x1fc1fa=_0x4dcf87[_0x285dd2];return _0x1fc1fa;}export function buildRabetbaseConfirmationRequest(_0x5a087c,_0xecfb8c,_0x27f9a2){const _0xadd79c=normalizeText(_0x5a087c['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0x23b748=_0xadd79c||normalizeText(defaultDescription(requireWriteRisk(_0x5a087c),_0xecfb8c),DESCRIPTION_MAX_LENGTH);return{'operation':_0xecfb8c,'risk':requireWriteRisk(_0x5a087c),'description':_0x23b748,..._0x27f9a2?{'signal':_0x27f9a2}:{}};}function requireWriteRisk(_0x232180){const _0x2bb665=a254_0x1fc1;if(_0x232180['risk']===_0x2bb665(0x18d)||_0x232180[_0x2bb665(0x188)]===_0x2bb665(0x185))return _0x232180[_0x2bb665(0x188)];throw new Error(_0x2bb665(0x17f));}function defaultDescription(_0x3a4f6c,_0x19023b){const _0x26f4a5=a254_0x1fc1;if(_0x3a4f6c===_0x26f4a5(0x185))return _0x26f4a5(0x187)+_0x19023b+_0x26f4a5(0x184);return _0x26f4a5(0x189)+_0x19023b+_0x26f4a5(0x182);}function a254_0x4dcf(){const _0x1245d4=['write','872848ePxpsh','slice','1sPjtsH','12zXMfXQ','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','4056912ASRFdr','315262HhVKyT',';该操作可能创建或修改业务数据或本地配置。','10563GDYrDi',';该操作可能覆盖、删除或明显影响线上运行行为。','high-risk-write','985570gQYniG','将执行高风险写入操作\x20','risk','将执行写入操作\x20','trim','670224vljKYj','1288714JApnmI'];a254_0x4dcf=function(){return _0x1245d4;};return a254_0x4dcf();}function normalizeText(_0x4c9e8a,_0x173cfd){const _0x18ef21=a254_0x1fc1;if(typeof _0x4c9e8a!=='string')return'';return _0x4c9e8a['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x18ef21(0x18a)]()[_0x18ef21(0x18f)](0x0,_0x173cfd);}
@@ -1 +1 @@
1
- (function(_0x51838e,_0xd6aab0){var _0x32be53=a244_0x1153,_0x16b307=_0x51838e();while(!![]){try{var _0x1247b1=-parseInt(_0x32be53(0xde))/0x1*(parseInt(_0x32be53(0xd8))/0x2)+-parseInt(_0x32be53(0xe0))/0x3+-parseInt(_0x32be53(0xdd))/0x4+-parseInt(_0x32be53(0xda))/0x5*(parseInt(_0x32be53(0xd2))/0x6)+-parseInt(_0x32be53(0xd4))/0x7+-parseInt(_0x32be53(0xd7))/0x8+parseInt(_0x32be53(0xe1))/0x9*(parseInt(_0x32be53(0xdc))/0xa);if(_0x1247b1===_0xd6aab0)break;else _0x16b307['push'](_0x16b307['shift']());}catch(_0x25cc9a){_0x16b307['push'](_0x16b307['shift']());}}}(a244_0xc2d3,0x9234b));export function canonicalRabetbaseOperation(_0x14c0c1){var _0x13b91e=a244_0x1153;return[_0x14c0c1['service'],..._0x14c0c1[_0x13b91e(0xd5)]['trim']()[_0x13b91e(0xdf)](/\s+/)]['filter'](Boolean)[_0x13b91e(0xd9)]('.');}function a244_0xc2d3(){var _0x17d078=['9052376jOBdJh','975722RLqUOK','join','3988060kRgrom','risk','250UpxMMp','3278604HJsWVu','1JOxNqW','split','2780007UyZkDy','1818459RBjFwY','high-risk-write','6yuCHDG','write','2023532Rqqcra','command','rabetbase.write.completed'];a244_0xc2d3=function(){return _0x17d078;};return a244_0xc2d3();}function a244_0x1153(_0x3b89c0,_0x19c734){_0x3b89c0=_0x3b89c0-0xd2;var _0xc2d344=a244_0xc2d3();var _0x11532d=_0xc2d344[_0x3b89c0];return _0x11532d;}export function createRabetbaseWriteMetadata(_0x1cbc74,_0xd33a7,_0x2ef0a7,_0x39e128){var _0x3b928f=a244_0x1153;if(_0x39e128||_0x2ef0a7['ok']!==!![]||_0x1cbc74[_0x3b928f(0xdb)]!==_0x3b928f(0xd3)&&_0x1cbc74[_0x3b928f(0xdb)]!==_0x3b928f(0xe2))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x3b928f(0xd6),'operation':_0xd33a7,'risk':_0x1cbc74[_0x3b928f(0xdb)]}}};}
1
+ function a255_0x43ce(_0x5cdf74,_0x14ad82){_0x5cdf74=_0x5cdf74-0x1e4;var _0x13fcc3=a255_0x13fc();var _0x43ce95=_0x13fcc3[_0x5cdf74];return _0x43ce95;}(function(_0x5d4d58,_0x3f0cb4){var _0x5bfebb=a255_0x43ce,_0x377818=_0x5d4d58();while(!![]){try{var _0x41c36d=-parseInt(_0x5bfebb(0x1e8))/0x1+-parseInt(_0x5bfebb(0x1ea))/0x2*(-parseInt(_0x5bfebb(0x1f5))/0x3)+-parseInt(_0x5bfebb(0x1ef))/0x4+parseInt(_0x5bfebb(0x1f4))/0x5+-parseInt(_0x5bfebb(0x1ed))/0x6*(-parseInt(_0x5bfebb(0x1f1))/0x7)+parseInt(_0x5bfebb(0x1f7))/0x8*(parseInt(_0x5bfebb(0x1e5))/0x9)+-parseInt(_0x5bfebb(0x1eb))/0xa*(parseInt(_0x5bfebb(0x1f8))/0xb);if(_0x41c36d===_0x3f0cb4)break;else _0x377818['push'](_0x377818['shift']());}catch(_0x5293bc){_0x377818['push'](_0x377818['shift']());}}}(a255_0x13fc,0x5eead));export function canonicalRabetbaseOperation(_0x18546e){var _0x55c92c=a255_0x43ce;return[_0x18546e[_0x55c92c(0x1f0)],..._0x18546e[_0x55c92c(0x1e4)][_0x55c92c(0x1e7)]()[_0x55c92c(0x1f2)](/\s+/)][_0x55c92c(0x1e6)](Boolean)[_0x55c92c(0x1ee)]('.');}export function createRabetbaseWriteMetadata(_0x57aa11,_0x29d50a,_0x117cc2,_0x3b7515){var _0x18bcb8=a255_0x43ce;if(_0x3b7515||_0x117cc2['ok']!==!![]||_0x57aa11[_0x18bcb8(0x1f6)]!==_0x18bcb8(0x1f3)&&_0x57aa11[_0x18bcb8(0x1f6)]!==_0x18bcb8(0x1e9))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x18bcb8(0x1ec),'operation':_0x29d50a,'risk':_0x57aa11[_0x18bcb8(0x1f6)]}}};}function a255_0x13fc(){var _0x3199fc=['split','write','326755Kwwkbr','15SLXTup','risk','256TlWTSu','198eEoRGw','command','154233CEkKLe','filter','trim','454062MWlxmx','high-risk-write','247202ANmczq','179920jWkaBl','rabetbase.write.completed','531276nVCLWt','join','968532eDTCGw','service','14VMBXLe'];a255_0x13fc=function(){return _0x3199fc;};return a255_0x13fc();}
@@ -1 +1 @@
1
- (function(_0x3ecd6c,_0x5ee52b){const _0xf12755=a245_0x5af8,_0x3a8cfb=_0x3ecd6c();while(!![]){try{const _0x2ca8b8=parseInt(_0xf12755(0x1eb))/0x1*(parseInt(_0xf12755(0x1f6))/0x2)+-parseInt(_0xf12755(0x1e8))/0x3+-parseInt(_0xf12755(0x1d8))/0x4+parseInt(_0xf12755(0x1e9))/0x5*(-parseInt(_0xf12755(0x1f8))/0x6)+-parseInt(_0xf12755(0x1f7))/0x7*(parseInt(_0xf12755(0x1e6))/0x8)+parseInt(_0xf12755(0x1f3))/0x9*(-parseInt(_0xf12755(0x1ee))/0xa)+parseInt(_0xf12755(0x1de))/0xb;if(_0x2ca8b8===_0x5ee52b)break;else _0x3a8cfb['push'](_0x3a8cfb['shift']());}catch(_0x3f3658){_0x3a8cfb['push'](_0x3a8cfb['shift']());}}}(a245_0x3a0a,0xa35a9));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';function a245_0x3a0a(){const _0x2d9a05=['data','command','confirm','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','args','message','confirmation','12824jyZqNN','riskLevel','597516lbBuaw','4722715TUaWcn','aborted','103saMkfz','result','dryRun','151390oShLaI','reason','execute','definition','risk','621DXouro','high-risk-write','stringify','25646sGMiej','4725AWCorF','6bQfvxe','AbortError','828272IIWhaw','rawFlags','signal','Rabetbase\x20invocation\x20aborted.','format','present','31082997yNiOef'];a245_0x3a0a=function(){return _0x2d9a05;};return a245_0x3a0a();}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:_0x4f30ec,command:_0x5a70fe,risk:_0x2e09a7,dryRun:_0x55e9f8}){const _0x1a18a8=a245_0x5af8;return JSON[_0x1a18a8(0x1f5)]({'ok':_0x4f30ec['ok'],'command':_0x5a70fe,'risk':_0x2e09a7,..._0x55e9f8?{'dryRun':!![]}:{},..._0x4f30ec[_0x1a18a8(0x1df)]!==undefined?{'data':_0x4f30ec[_0x1a18a8(0x1df)]}:{},..._0x4f30ec[_0x1a18a8(0x1e4)]?{'message':_0x4f30ec[_0x1a18a8(0x1e4)]}:{}});}};export async function invokeRabetbase(_0x5954c5,_0x534d25){const _0x318857=a245_0x5af8;throwIfAborted(_0x534d25[_0x318857(0x1da)]);const _0x33f13f=await resolveRabetbaseInvocation(_0x5954c5),_0x69f2c7=canonicalRabetbaseOperation(_0x33f13f['definition']);return await confirmWriteBeforeQueue(_0x33f13f[_0x318857(0x1f1)],_0x33f13f['rawFlags'],_0x69f2c7,_0x534d25),runSerialized(async()=>{const _0x34909b=_0x318857,_0x1964b4={};try{throwIfAborted(_0x534d25[_0x34909b(0x1da)]);const _0x14db35=buildConfigFromFlags(_0x33f13f[_0x34909b(0x1d9)]);await initGlobalEnvironment(_0x14db35);const _0x2a1ddf=createPipelineEnv(_0x14db35,{..._0x33f13f[_0x34909b(0x1d9)],'yes':_0x33f13f[_0x34909b(0x1f1)]['risk']===_0x34909b(0x1f4)?!![]:_0x33f13f[_0x34909b(0x1d9)]['yes'],'nonInteractive':!![]},_0x33f13f[_0x34909b(0x1e3)]);_0x2a1ddf['isNonInteractive']=!![],_0x2a1ddf[_0x34909b(0x1e7)]=_0x34909b(0x1f4);const _0x13b5e2=withAbortSignal(_0x33f13f[_0x34909b(0x1f1)],_0x534d25[_0x34909b(0x1da)]),_0x1723d1=createRabetbaseRunnerAdapter({'formatOutput'(_0x58e935,_0x26789c){const _0x47aeea=_0x34909b;_0x1964b4[_0x47aeea(0x1ec)]=_0x58e935,_0x1964b4[_0x47aeea(0x1e0)]=_0x26789c[_0x47aeea(0x1e0)],_0x1964b4['risk']=_0x26789c[_0x47aeea(0x1f2)],_0x1964b4[_0x47aeea(0x1dc)]=_0x26789c[_0x47aeea(0x1dc)],_0x1964b4[_0x47aeea(0x1ed)]=_0x26789c[_0x47aeea(0x1ed)]===!![];},async 'confirmHighRisk'(){const _0x24638f=_0x34909b;throw new Error(_0x24638f(0x1e2));}});await runCommand(_0x13b5e2,_0x2a1ddf,_0x1723d1);if(!_0x1964b4[_0x34909b(0x1ec)]||!_0x1964b4['command']||!_0x1964b4[_0x34909b(0x1f2)]||!_0x1964b4[_0x34909b(0x1dc)])throw new Error('Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.');const _0x3ce108=_0x1964b4[_0x34909b(0x1ed)]===!![],_0x21f8e6=_0x534d25['presentation']??defaultPresentation,_0x313551={'result':_0x1964b4[_0x34909b(0x1ec)],'command':_0x1964b4[_0x34909b(0x1e0)],'operation':_0x69f2c7,'risk':_0x1964b4[_0x34909b(0x1f2)],'format':_0x1964b4[_0x34909b(0x1dc)],'dryRun':_0x3ce108},_0x50a39d=createRabetbaseWriteMetadata(_0x33f13f[_0x34909b(0x1f1)],_0x69f2c7,_0x1964b4['result'],_0x3ce108);let _0x56fac8;try{_0x56fac8=await _0x21f8e6[_0x34909b(0x1dd)](_0x313551);}catch(_0x2110a6){if(!_0x50a39d||_0x21f8e6===defaultPresentation)throw _0x2110a6;_0x56fac8=await defaultPresentation[_0x34909b(0x1dd)](_0x313551);}return{'operation':_0x69f2c7,'risk':_0x1964b4['risk'],'mode':_0x3ce108?'dry-run':_0x34909b(0x1f0),'result':_0x1964b4['result'],'output':_0x56fac8,..._0x50a39d?{'metadata':_0x50a39d}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x1e5704,_0x2efcbc,_0x200596,_0x448dfe){const _0x225a9a=a245_0x5af8;if(_0x2efcbc[_0x225a9a(0x1ed)]===!![]||_0x1e5704[_0x225a9a(0x1f2)]!=='write'&&_0x1e5704[_0x225a9a(0x1f2)]!=='high-risk-write')return;await _0x448dfe[_0x225a9a(0x1e5)][_0x225a9a(0x1e1)](buildRabetbaseConfirmationRequest(_0x1e5704,_0x200596,_0x448dfe[_0x225a9a(0x1da)]));}function withAbortSignal(_0x472791,_0x189e4c){return{..._0x472791,async 'execute'(_0x5bb466){const _0x1b22c4=a245_0x5af8;return throwIfAborted(_0x189e4c),_0x472791[_0x1b22c4(0x1f0)](_0x5bb466);}};}function a245_0x5af8(_0x5a23f8,_0x1296ae){_0x5a23f8=_0x5a23f8-0x1d7;const _0x3a0a32=a245_0x3a0a();let _0x5af806=_0x3a0a32[_0x5a23f8];return _0x5af806;}function throwIfAborted(_0x157ef4){const _0x5b0ce8=a245_0x5af8;if(_0x157ef4?.[_0x5b0ce8(0x1ea)])throw _0x157ef4['reason']instanceof Error?_0x157ef4[_0x5b0ce8(0x1ef)]:new DOMException(_0x5b0ce8(0x1db),_0x5b0ce8(0x1d7));}
1
+ (function(_0x1654d8,_0x1afc6c){const _0x37a15b=a256_0x31d5,_0x1d4f60=_0x1654d8();while(!![]){try{const _0x3f095f=-parseInt(_0x37a15b(0x99))/0x1*(parseInt(_0x37a15b(0xaa))/0x2)+-parseInt(_0x37a15b(0xb1))/0x3+-parseInt(_0x37a15b(0xa3))/0x4+parseInt(_0x37a15b(0xa5))/0x5+-parseInt(_0x37a15b(0xa1))/0x6+-parseInt(_0x37a15b(0x98))/0x7*(-parseInt(_0x37a15b(0x9b))/0x8)+parseInt(_0x37a15b(0xac))/0x9;if(_0x3f095f===_0x1afc6c)break;else _0x1d4f60['push'](_0x1d4f60['shift']());}catch(_0x4eaff2){_0x1d4f60['push'](_0x1d4f60['shift']());}}}(a256_0x1ba4,0x9f9b0));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';function a256_0x31d5(_0x198ddb,_0x4e28fe){_0x198ddb=_0x198ddb-0x90;const _0x1ba400=a256_0x1ba4();let _0x31d535=_0x1ba400[_0x198ddb];return _0x31d535;}import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x5e1aab,command:_0x482677,risk:_0x5ec838,dryRun:_0x26cac2}){const _0xd9a207=a256_0x31d5;return JSON['stringify']({'ok':_0x5e1aab['ok'],'command':_0x482677,'risk':_0x5ec838,..._0x26cac2?{'dryRun':!![]}:{},..._0x5e1aab[_0xd9a207(0xa6)]!==undefined?{'data':_0x5e1aab[_0xd9a207(0xa6)]}:{},..._0x5e1aab[_0xd9a207(0xa9)]?{'message':_0x5e1aab[_0xd9a207(0xa9)]}:{}});}};export async function invokeRabetbase(_0x27579a,_0x1ed920){const _0x5c79c6=a256_0x31d5;throwIfAborted(_0x1ed920[_0x5c79c6(0xae)]);const _0x262d21=await resolveRabetbaseInvocation(_0x27579a),_0x50c40e=canonicalRabetbaseOperation(_0x262d21[_0x5c79c6(0x92)]);return await confirmWriteBeforeQueue(_0x262d21['definition'],_0x262d21[_0x5c79c6(0xa2)],_0x50c40e,_0x1ed920),runSerialized(async()=>{const _0x4e58d1=_0x5c79c6,_0xb3ea4={};try{throwIfAborted(_0x1ed920[_0x4e58d1(0xae)]);const _0x4713c7=buildConfigFromFlags(_0x262d21[_0x4e58d1(0xa2)]);await initGlobalEnvironment(_0x4713c7);const _0x5b64d9=createPipelineEnv(_0x4713c7,{..._0x262d21['rawFlags'],'yes':_0x262d21[_0x4e58d1(0x92)]['risk']==='high-risk-write'?!![]:_0x262d21[_0x4e58d1(0xa2)][_0x4e58d1(0x9e)],'nonInteractive':!![]},_0x262d21[_0x4e58d1(0x96)]);_0x5b64d9[_0x4e58d1(0x93)]=!![],_0x5b64d9[_0x4e58d1(0xaf)]=_0x4e58d1(0xab);const _0x594e29=withAbortSignal(_0x262d21[_0x4e58d1(0x92)],_0x1ed920[_0x4e58d1(0xae)]),_0x3b7425=createRabetbaseRunnerAdapter({'formatOutput'(_0x13b3ea,_0x1a6460){const _0x1117b8=_0x4e58d1;_0xb3ea4[_0x1117b8(0x9a)]=_0x13b3ea,_0xb3ea4['command']=_0x1a6460['command'],_0xb3ea4[_0x1117b8(0xa0)]=_0x1a6460['risk'],_0xb3ea4[_0x1117b8(0xa8)]=_0x1a6460[_0x1117b8(0xa8)],_0xb3ea4[_0x1117b8(0xa7)]=_0x1a6460[_0x1117b8(0xa7)]===!![];},async 'confirmHighRisk'(){const _0x2b4edb=_0x4e58d1;throw new Error(_0x2b4edb(0xb0));}});await runCommand(_0x594e29,_0x5b64d9,_0x3b7425);if(!_0xb3ea4[_0x4e58d1(0x9a)]||!_0xb3ea4[_0x4e58d1(0x91)]||!_0xb3ea4[_0x4e58d1(0xa0)]||!_0xb3ea4[_0x4e58d1(0xa8)])throw new Error(_0x4e58d1(0x90));const _0x26edb0=_0xb3ea4[_0x4e58d1(0xa7)]===!![],_0x231d8d=_0x1ed920['presentation']??defaultPresentation,_0x438043={'result':_0xb3ea4[_0x4e58d1(0x9a)],'command':_0xb3ea4[_0x4e58d1(0x91)],'operation':_0x50c40e,'risk':_0xb3ea4[_0x4e58d1(0xa0)],'format':_0xb3ea4[_0x4e58d1(0xa8)],'dryRun':_0x26edb0},_0x12bb6d=createRabetbaseWriteMetadata(_0x262d21['definition'],_0x50c40e,_0xb3ea4['result'],_0x26edb0);let _0x1f1361;try{_0x1f1361=await _0x231d8d['present'](_0x438043);}catch(_0x5be097){if(!_0x12bb6d||_0x231d8d===defaultPresentation)throw _0x5be097;_0x1f1361=await defaultPresentation['present'](_0x438043);}return{'operation':_0x50c40e,'risk':_0xb3ea4[_0x4e58d1(0xa0)],'mode':_0x26edb0?_0x4e58d1(0xa4):_0x4e58d1(0x97),'result':_0xb3ea4['result'],'output':_0x1f1361,..._0x12bb6d?{'metadata':_0x12bb6d}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0xc44ba7,_0x5c056f,_0x12ac66,_0x40f3ec){const _0x22b9a8=a256_0x31d5;if(_0x5c056f['dryRun']===!![]||_0xc44ba7[_0x22b9a8(0xa0)]!==_0x22b9a8(0x94)&&_0xc44ba7['risk']!==_0x22b9a8(0xab))return;await _0x40f3ec[_0x22b9a8(0x9d)][_0x22b9a8(0x9f)](buildRabetbaseConfirmationRequest(_0xc44ba7,_0x12ac66,_0x40f3ec[_0x22b9a8(0xae)]));}function withAbortSignal(_0x40c9e9,_0x223e42){return{..._0x40c9e9,async 'execute'(_0x5813b2){const _0xd49aca=a256_0x31d5;return throwIfAborted(_0x223e42),_0x40c9e9[_0xd49aca(0x97)](_0x5813b2);}};}function a256_0x1ba4(){const _0x28e067=['yes','confirm','risk','242526HOhJpF','rawFlags','897728joSvdV','dry-run','1759400dOUVZD','data','dryRun','format','message','124VWAJEu','high-risk-write','11465460CvoUyF','Rabetbase\x20invocation\x20aborted.','signal','riskLevel','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','3265113Kaievr','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','command','definition','isNonInteractive','write','reason','args','execute','448zbNjTR','5102IumrDL','result','87184jaYLSx','AbortError','confirmation'];a256_0x1ba4=function(){return _0x28e067;};return a256_0x1ba4();}function throwIfAborted(_0x543eaf){const _0x19868f=a256_0x31d5;if(_0x543eaf?.['aborted'])throw _0x543eaf[_0x19868f(0x95)]instanceof Error?_0x543eaf['reason']:new DOMException(_0x19868f(0xad),_0x19868f(0x9c));}
@@ -1 +1 @@
1
- (function(_0x46fe8b,_0x3dbc4c){const _0x58e382=a246_0x4e36,_0x3e862f=_0x46fe8b();while(!![]){try{const _0x116010=-parseInt(_0x58e382(0x1aa))/0x1*(-parseInt(_0x58e382(0x1ae))/0x2)+parseInt(_0x58e382(0x1ac))/0x3*(-parseInt(_0x58e382(0x1ab))/0x4)+parseInt(_0x58e382(0x1a9))/0x5*(parseInt(_0x58e382(0x1a5))/0x6)+parseInt(_0x58e382(0x1a8))/0x7+parseInt(_0x58e382(0x1b0))/0x8*(-parseInt(_0x58e382(0x1af))/0x9)+parseInt(_0x58e382(0x1a6))/0xa+-parseInt(_0x58e382(0x1a7))/0xb*(parseInt(_0x58e382(0x1ad))/0xc);if(_0x116010===_0x3dbc4c)break;else _0x3e862f['push'](_0x3e862f['shift']());}catch(_0x5e794a){_0x3e862f['push'](_0x3e862f['shift']());}}}(a246_0x4f89,0x3997d));function a246_0x4e36(_0x5f4e72,_0x25007f){_0x5f4e72=_0x5f4e72-0x1a4;const _0x4f89c0=a246_0x4f89();let _0x4e36ba=_0x4f89c0[_0x5f4e72];return _0x4e36ba;}let tail=Promise['resolve']();export async function runSerialized(_0x2dedd2){const _0x25a1d2=a246_0x4e36,_0x10cbb2=tail;let _0xdd9320;tail=new Promise(_0x5cb780=>{_0xdd9320=_0x5cb780;}),await _0x10cbb2[_0x25a1d2(0x1a4)](()=>undefined);try{return await _0x2dedd2();}finally{_0xdd9320();}}function a246_0x4f89(){const _0x351126=['639doFeBl','23632IQyrCy','catch','18dImQBk','843190LBzPMt','88638QfLFNY','1567237biodjW','258155uIkUJV','16pdiDvE','22232MAJUoF','36VYFFdK','408bTArIV','40400MEjpFU'];a246_0x4f89=function(){return _0x351126;};return a246_0x4f89();}
1
+ (function(_0x23223a,_0xd6ea74){const _0x23438e=a257_0x207c,_0x367a59=_0x23223a();while(!![]){try{const _0x486a01=parseInt(_0x23438e(0xd0))/0x1+-parseInt(_0x23438e(0xcf))/0x2*(parseInt(_0x23438e(0xd4))/0x3)+parseInt(_0x23438e(0xd3))/0x4+-parseInt(_0x23438e(0xce))/0x5+-parseInt(_0x23438e(0xcc))/0x6+parseInt(_0x23438e(0xd2))/0x7*(parseInt(_0x23438e(0xd1))/0x8)+parseInt(_0x23438e(0xcd))/0x9;if(_0x486a01===_0xd6ea74)break;else _0x367a59['push'](_0x367a59['shift']());}catch(_0x59eda5){_0x367a59['push'](_0x367a59['shift']());}}}(a257_0x41f7,0x1beb0));function a257_0x207c(_0x4a58bb,_0x7c6542){_0x4a58bb=_0x4a58bb-0xcc;const _0x41f7e8=a257_0x41f7();let _0x207c61=_0x41f7e8[_0x4a58bb];return _0x207c61;}let tail=Promise['resolve']();function a257_0x41f7(){const _0xdb6876=['142544SpuKIO','3rfiEFd','catch','1158600KYdPqn','2435139NRsbwC','225645UNKiwT','139658tGsrfW','47905FxdJhQ','182128qQWNXf','21sJVjTF'];a257_0x41f7=function(){return _0xdb6876;};return a257_0x41f7();}export async function runSerialized(_0x3555bf){const _0xf123dd=a257_0x207c,_0x42d561=tail;let _0x160f71;tail=new Promise(_0x4f7dd9=>{_0x160f71=_0x4f7dd9;}),await _0x42d561[_0xf123dd(0xd5)](()=>undefined);try{return await _0x3555bf();}finally{_0x160f71();}}
@@ -1 +1 @@
1
- (function(_0x18f55b,_0x4fa618){const _0x5235c2=a247_0x3dd0,_0x44e9bf=_0x18f55b();while(!![]){try{const _0xbf3fca=-parseInt(_0x5235c2(0x13d))/0x1+parseInt(_0x5235c2(0x13b))/0x2*(parseInt(_0x5235c2(0x13e))/0x3)+-parseInt(_0x5235c2(0x14a))/0x4*(-parseInt(_0x5235c2(0x14e))/0x5)+parseInt(_0x5235c2(0x149))/0x6*(parseInt(_0x5235c2(0x145))/0x7)+-parseInt(_0x5235c2(0x142))/0x8+parseInt(_0x5235c2(0x147))/0x9+-parseInt(_0x5235c2(0x13f))/0xa*(-parseInt(_0x5235c2(0x143))/0xb);if(_0xbf3fca===_0x4fa618)break;else _0x44e9bf['push'](_0x44e9bf['shift']());}catch(_0x178ec3){_0x44e9bf['push'](_0x44e9bf['shift']());}}}(a247_0x5d94,0xf0021));import a247_0x49e7da from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a247_0x3dd0(_0xf166a6,_0x36dbc5){_0xf166a6=_0xf166a6-0x13b;const _0x5d94b3=a247_0x5d94();let _0x3dd048=_0x5d94b3[_0xf166a6];return _0x3dd048;}function a247_0x5d94(){const _0xfe64ee=['183xIcauS','109160gXQjtB','input','defaultCommand','14312160UJYnLc','407pYukug','validation','828086QTjERb','flags','12081519SMXcIS','wildcardDef','6hlRWep','503988tFMSuX','join','run','slice','10UypaCP','28746IbsNsh','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','221235nTFXsH'];a247_0x5d94=function(){return _0xfe64ee;};return a247_0x5d94();}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveRabetbaseInvocation(_0x30ff3d){const _0x31f800=a247_0x3dd0,_0x56131b=a247_0x49e7da('',{'importMeta':import.meta,'argv':[..._0x30ff3d],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x2e5192=[..._0x56131b[_0x31f800(0x140)]],_0x5816c6=_0x56131b[_0x31f800(0x146)],_0x2c0eb6=_0x2e5192[0x0];if(!_0x2c0eb6)throw CliErrors[_0x31f800(0x144)]('Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.');const _0x5e34ec=resolveRemovedCommand(_0x2c0eb6,_0x2e5192[0x1]);if(_0x5e34ec)throw CliErrors[_0x31f800(0x144)](_0x5e34ec['message'],_0x5e34ec['hint']);if(_0x2c0eb6===_0x31f800(0x14c))throw CliErrors['validation']('`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.');if(!isKnownService(_0x2c0eb6))throw CliErrors['unknownCommand'](_0x2e5192[_0x31f800(0x14b)]('\x20'));const _0x5d3137=getServiceEntry(_0x2c0eb6),_0xf1801e=_0x2e5192[0x1],_0x525547=_0xf1801e||_0x5d3137[_0x31f800(0x141)];if(!_0x525547){if(_0x5d3137['wildcardDef'])return{'definition':_0x5d3137['wildcardDef'],'rawFlags':_0x5816c6,'args':[]};throw CliErrors[_0x31f800(0x144)](_0x31f800(0x13c)+_0x2c0eb6+'\x22.');}const _0x41258b=findDefinition(_0x2c0eb6,_0x525547);if(_0x41258b)return{'definition':_0x41258b,'rawFlags':_0x5816c6,'args':_0x2e5192[_0x31f800(0x14d)](0x2)};if(_0x5d3137[_0x31f800(0x148)])return{'definition':_0x5d3137['wildcardDef'],'rawFlags':_0x5816c6,'args':[_0x525547,..._0x2e5192[_0x31f800(0x14d)](0x2)]};throw CliErrors['unknownCommand'](_0x2c0eb6+'\x20'+_0x525547);}
1
+ (function(_0x39d784,_0x35d520){const _0xe5d596=a258_0x232e,_0x345274=_0x39d784();while(!![]){try{const _0x5a403d=-parseInt(_0xe5d596(0xb9))/0x1*(-parseInt(_0xe5d596(0xc0))/0x2)+-parseInt(_0xe5d596(0xaa))/0x3*(parseInt(_0xe5d596(0xbe))/0x4)+-parseInt(_0xe5d596(0xb2))/0x5*(parseInt(_0xe5d596(0xb4))/0x6)+parseInt(_0xe5d596(0xb5))/0x7+parseInt(_0xe5d596(0xb7))/0x8*(-parseInt(_0xe5d596(0xab))/0x9)+parseInt(_0xe5d596(0xbf))/0xa*(parseInt(_0xe5d596(0xbb))/0xb)+parseInt(_0xe5d596(0xaf))/0xc;if(_0x5a403d===_0x35d520)break;else _0x345274['push'](_0x345274['shift']());}catch(_0x314913){_0x345274['push'](_0x345274['shift']());}}}(a258_0x2e7e,0x5b4f0));function a258_0x232e(_0x5535ce,_0x24c28c){_0x5535ce=_0x5535ce-0xa9;const _0x2e7e27=a258_0x2e7e();let _0x232e5d=_0x2e7e27[_0x5535ce];return _0x232e5d;}import a258_0x2a4bbc from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a258_0x2e7e(){const _0x336c0d=['17962752PsWswE','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','41740BlrqKM','unknownCommand','522WcSBWk','3372068fMFoVr','flags','16TlQAly','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','3TFpyLX','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','998833qlefJi','run','validation','4QJTBAD','10WqXJIF','112414soTpqg','wildcardDef','1693206KzJlng','2580147nboLcT','hint','slice','defaultCommand'];a258_0x2e7e=function(){return _0x336c0d;};return a258_0x2e7e();}export async function resolveRabetbaseInvocation(_0x18a7b7){const _0x201f3a=a258_0x232e,_0x18a916=a258_0x2a4bbc('',{'importMeta':import.meta,'argv':[..._0x18a7b7],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x1f9138=[..._0x18a916['input']],_0x2e7a48=_0x18a916[_0x201f3a(0xb6)],_0x2b8fa2=_0x1f9138[0x0];if(!_0x2b8fa2)throw CliErrors['validation'](_0x201f3a(0xb8));const _0x176be5=resolveRemovedCommand(_0x2b8fa2,_0x1f9138[0x1]);if(_0x176be5)throw CliErrors[_0x201f3a(0xbd)](_0x176be5['message'],_0x176be5[_0x201f3a(0xac)]);if(_0x2b8fa2===_0x201f3a(0xbc))throw CliErrors[_0x201f3a(0xbd)](_0x201f3a(0xb1),_0x201f3a(0xb0));if(!isKnownService(_0x2b8fa2))throw CliErrors[_0x201f3a(0xb3)](_0x1f9138['join']('\x20'));const _0x589cf8=getServiceEntry(_0x2b8fa2),_0x430a30=_0x1f9138[0x1],_0x13b4fe=_0x430a30||_0x589cf8[_0x201f3a(0xae)];if(!_0x13b4fe){if(_0x589cf8[_0x201f3a(0xa9)])return{'definition':_0x589cf8[_0x201f3a(0xa9)],'rawFlags':_0x2e7a48,'args':[]};throw CliErrors[_0x201f3a(0xbd)](_0x201f3a(0xba)+_0x2b8fa2+'\x22.');}const _0x35edfc=findDefinition(_0x2b8fa2,_0x13b4fe);if(_0x35edfc)return{'definition':_0x35edfc,'rawFlags':_0x2e7a48,'args':_0x1f9138['slice'](0x2)};if(_0x589cf8['wildcardDef'])return{'definition':_0x589cf8['wildcardDef'],'rawFlags':_0x2e7a48,'args':[_0x13b4fe,..._0x1f9138[_0x201f3a(0xad)](0x2)]};throw CliErrors['unknownCommand'](_0x2b8fa2+'\x20'+_0x13b4fe);}
@@ -0,0 +1,37 @@
1
+ export type BuiltinSkillState = "missing" | "current" | "version_mismatch" | "content_mismatch" | "unverifiable";
2
+ export type BuiltinSkillInstallCode = "SOURCE_INVALID" | "INSTALL_FAILED" | "VERIFY_FAILED";
3
+ export interface BuiltinSkillOptions {
4
+ packageRoot?: string;
5
+ home?: string;
6
+ stdio?: "inherit" | "pipe";
7
+ }
8
+ export interface BuiltinSkillStatus {
9
+ state: BuiltinSkillState;
10
+ packageVersion: string;
11
+ skillVersion?: string;
12
+ installedPath?: string;
13
+ digest?: string;
14
+ reason?: string;
15
+ repairCommand: string;
16
+ }
17
+ export interface BuiltinSkillInstallResult {
18
+ ok: boolean;
19
+ code?: BuiltinSkillInstallCode;
20
+ packageVersion: string;
21
+ skillVersion: string;
22
+ installedPath?: string;
23
+ changed: boolean;
24
+ repairCommand: string;
25
+ error?: string;
26
+ }
27
+ export interface InstalledBuiltinSkillVersionStatus {
28
+ state: "current" | "missing" | "version_mismatch" | "unverifiable";
29
+ expectedVersion: string;
30
+ skillVersion?: string;
31
+ installedPath?: string;
32
+ reason?: string;
33
+ repairCommand: string;
34
+ }
35
+ export declare function inspectInstalledBuiltinSkillVersion(expectedVersion: string, options?: Pick<BuiltinSkillOptions, "home">): InstalledBuiltinSkillVersionStatus;
36
+ export declare function inspectBuiltinSkill(options?: BuiltinSkillOptions): BuiltinSkillStatus;
37
+ export declare function installBuiltinSkill(options?: BuiltinSkillOptions): BuiltinSkillInstallResult;
@@ -0,0 +1 @@
1
+ const a260_0x52113c=a260_0x58f2;function a260_0xcf96(){const _0x258705=['isSymbolicLink','Unsupported\x20Skill\x20entry:\x20','skills@latest\x20exited\x20','version','home','state','Installed\x20Skill\x20state\x20is\x20','stdio','unverifiable','Symbolic\x20link\x20is\x20not\x20allowed:\x20','schemaVersion','manifest','utf8','missing','path','75pHksAt','installedPath','165GLdSXb','4yrMNAB','name','files','present','756876yaDncr','VERIFY_FAILED','trim','rabetbase\x20cli-skill\x20install','rabetbase','40758uFUHXG','packageVersion','digest','pipe','sort','join','reason','version_mismatch',':\x5cs*(.+)$','update','168wijzHZ','startsWith','length','parse','split','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','sha256','SKILL.md','isFile','package.json','absent','4051MjJLuD','unknown','235122saIPTe','current','skipped','skillVersion','157178KMEOtl','426231tdSvTv','1780856EzOdBl','root','includes','error','message','skills','match','10IsSprn','rabetbase.manifest.json'];a260_0xcf96=function(){return _0x258705;};return a260_0xcf96();}(function(_0x3cd5bb,_0x4e3516){const _0x2580f0=a260_0x58f2,_0x2cf0dc=_0x3cd5bb();while(!![]){try{const _0x5e6af6=parseInt(_0x2580f0(0x1ce))/0x1+parseInt(_0x2580f0(0x1f1))/0x2*(parseInt(_0x2580f0(0x1d0))/0x3)+parseInt(_0x2580f0(0x1d6))/0x4+parseInt(_0x2580f0(0x1ee))/0x5*(parseInt(_0x2580f0(0x1b9))/0x6)+-parseInt(_0x2580f0(0x1d4))/0x7*(-parseInt(_0x2580f0(0x1c3))/0x8)+parseInt(_0x2580f0(0x1d5))/0x9*(parseInt(_0x2580f0(0x1dd))/0xa)+-parseInt(_0x2580f0(0x1f0))/0xb*(parseInt(_0x2580f0(0x1b4))/0xc);if(_0x5e6af6===_0x4e3516)break;else _0x2cf0dc['push'](_0x2cf0dc['shift']());}catch(_0x1c16ea){_0x2cf0dc['push'](_0x2cf0dc['shift']());}}}(a260_0xcf96,0x44882));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';function a260_0x58f2(_0x3a1abd,_0x54a653){_0x3a1abd=_0x3a1abd-0x1b3;const _0xcf9630=a260_0xcf96();let _0x58f240=_0xcf9630[_0x3a1abd];return _0x58f240;}import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a260_0x52113c(0x1b7),SKILL_NAME=a260_0x52113c(0x1b8);function frontmatterValue(_0x5b1f78,_0x38f0b8){const _0x1bb9cf=a260_0x52113c;return _0x5b1f78[_0x1bb9cf(0x1dc)](new RegExp('^'+_0x38f0b8+_0x1bb9cf(0x1c1),'m'))?.[0x1]?.[_0x1bb9cf(0x1b6)]()??'';}function listFiles(_0x84e5c6,_0x4fd7de=_0x84e5c6){const _0x16522a=a260_0x52113c;return readdirSync(_0x4fd7de,{'withFileTypes':!![]})['flatMap'](_0x1d0c96=>{const _0x2ef23e=a260_0x58f2,_0x5f4005=join(_0x4fd7de,_0x1d0c96[_0x2ef23e(0x1f2)]),_0x3ef32e=lstatSync(_0x5f4005);if(_0x3ef32e[_0x2ef23e(0x1df)]())throw new Error(_0x2ef23e(0x1e8)+_0x5f4005);if(_0x3ef32e['isDirectory']())return listFiles(_0x84e5c6,_0x5f4005);if(!_0x3ef32e[_0x2ef23e(0x1cb)]())throw new Error(_0x2ef23e(0x1e0)+_0x5f4005);return[relative(_0x84e5c6,_0x5f4005)['split'](sep)[_0x2ef23e(0x1be)]('/')];})[_0x16522a(0x1bd)]((_0x20daa0,_0x8615a2)=>_0x20daa0<_0x8615a2?-0x1:_0x20daa0>_0x8615a2?0x1:0x0);}function digestFiles(_0x462747,_0x44b187){const _0x3db030=a260_0x52113c,_0x34769d=createHash(_0x3db030(0x1c9));for(const _0x8ac6bb of _0x44b187){if(_0x8ac6bb[_0x3db030(0x1c4)]('/')||_0x8ac6bb[_0x3db030(0x1c7)]('/')[_0x3db030(0x1d8)]('..')||_0x8ac6bb['includes']('\x5c'))throw new Error('Unsafe\x20manifest\x20path:\x20'+_0x8ac6bb);_0x34769d[_0x3db030(0x1c2)](_0x8ac6bb),_0x34769d[_0x3db030(0x1c2)]('\x00'),_0x34769d[_0x3db030(0x1c2)](readFileSync(join(_0x462747,..._0x8ac6bb[_0x3db030(0x1c7)]('/')))),_0x34769d[_0x3db030(0x1c2)]('\x00');}return _0x34769d[_0x3db030(0x1bb)]('hex');}function sameFiles(_0x2b1579,_0x1a1849){const _0x3e336c=a260_0x52113c;return _0x2b1579[_0x3e336c(0x1c5)]===_0x1a1849[_0x3e336c(0x1c5)]&&_0x2b1579['every']((_0x36d189,_0x48df10)=>_0x36d189===_0x1a1849[_0x48df10]);}function readSource(_0x3d2db4){const _0x1bd846=a260_0x52113c,_0x332e56=JSON[_0x1bd846(0x1c6)](readFileSync(join(_0x3d2db4,_0x1bd846(0x1cc)),_0x1bd846(0x1eb))),_0x3a2a02=JSON[_0x1bd846(0x1c6)](readFileSync(join(_0x3d2db4,'skills',_0x1bd846(0x1de)),_0x1bd846(0x1eb))),_0x35fd1e=join(_0x3d2db4,_0x1bd846(0x1db),SKILL_NAME),_0x54d5da=frontmatterValue(readFileSync(join(_0x35fd1e,_0x1bd846(0x1ca)),_0x1bd846(0x1eb)),'version'),_0x5f0912=listFiles(_0x35fd1e);if(_0x3a2a02[_0x1bd846(0x1e9)]!==0x1||_0x3a2a02['name']!==SKILL_NAME||!_0x332e56[_0x1bd846(0x1e2)]||_0x3a2a02[_0x1bd846(0x1ba)]!==_0x332e56[_0x1bd846(0x1e2)]||_0x3a2a02[_0x1bd846(0x1d3)]!==_0x332e56[_0x1bd846(0x1e2)]||_0x54d5da!==_0x332e56['version']||!sameFiles(_0x5f0912,_0x3a2a02[_0x1bd846(0x1f3)])||digestFiles(_0x35fd1e,_0x5f0912)!==_0x3a2a02['digest'])throw new Error(_0x1bd846(0x1c8));return{'packageVersion':_0x332e56[_0x1bd846(0x1e2)],'skillVersion':_0x54d5da,'root':_0x35fd1e,'manifest':_0x3a2a02};}function installedSkillPath(_0x1cb2fe){const _0x1a532d=a260_0x52113c,_0x943a34=resolveInstalledSkill(SKILL_NAME,{'home':_0x1cb2fe});if(_0x943a34[_0x1a532d(0x1e4)]===_0x1a532d(0x1b3))return{'state':_0x1a532d(0x1b3),'path':dirname(_0x943a34[_0x1a532d(0x1ed)])};if(_0x943a34[_0x1a532d(0x1e4)]===_0x1a532d(0x1cd))return{'state':_0x1a532d(0x1ec)};return{'state':'unverifiable','reason':_0x943a34['reason']};}export function inspectInstalledBuiltinSkillVersion(_0x12b02,_0x5d159b={}){const _0x4db8ba=a260_0x52113c,_0x103b7a=installedSkillPath(_0x5d159b[_0x4db8ba(0x1e3)]??homedir());if(_0x103b7a[_0x4db8ba(0x1e4)]==='missing')return{'state':_0x4db8ba(0x1ec),'expectedVersion':_0x12b02,'repairCommand':REPAIR_COMMAND};if(_0x103b7a[_0x4db8ba(0x1e4)]==='unverifiable')return{'state':_0x4db8ba(0x1e7),'expectedVersion':_0x12b02,'reason':_0x103b7a[_0x4db8ba(0x1bf)],'repairCommand':REPAIR_COMMAND};try{const _0x348f9a=frontmatterValue(readFileSync(join(_0x103b7a[_0x4db8ba(0x1ed)],_0x4db8ba(0x1ca)),_0x4db8ba(0x1eb)),_0x4db8ba(0x1e2));return{'state':_0x348f9a===_0x12b02?_0x4db8ba(0x1d1):_0x4db8ba(0x1c0),'expectedVersion':_0x12b02,'skillVersion':_0x348f9a,'installedPath':_0x103b7a[_0x4db8ba(0x1ed)],'repairCommand':REPAIR_COMMAND};}catch(_0x1ab1f9){return{'state':_0x4db8ba(0x1e7),'expectedVersion':_0x12b02,'installedPath':_0x103b7a[_0x4db8ba(0x1ed)],'reason':_0x1ab1f9 instanceof Error?_0x1ab1f9[_0x4db8ba(0x1da)]:String(_0x1ab1f9),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x320c05={}){const _0x425564=a260_0x52113c,_0x5b0712=_0x320c05['packageRoot']??DEFAULT_PACKAGE_ROOT;let _0x42b7fc;try{_0x42b7fc=readSource(_0x5b0712);}catch(_0x29ee5e){return{'state':_0x425564(0x1e7),'packageVersion':_0x425564(0x1cf),'reason':_0x29ee5e instanceof Error?_0x29ee5e['message']:String(_0x29ee5e),'repairCommand':REPAIR_COMMAND};}const _0x5a664d=installedSkillPath(_0x320c05[_0x425564(0x1e3)]??homedir());if(_0x5a664d[_0x425564(0x1e4)]===_0x425564(0x1ec))return{'state':_0x425564(0x1ec),'packageVersion':_0x42b7fc['packageVersion'],'repairCommand':REPAIR_COMMAND};if(_0x5a664d[_0x425564(0x1e4)]===_0x425564(0x1e7))return{'state':_0x425564(0x1e7),'packageVersion':_0x42b7fc['packageVersion'],'reason':_0x5a664d[_0x425564(0x1bf)],'repairCommand':REPAIR_COMMAND};try{const _0x1ad500=frontmatterValue(readFileSync(join(_0x5a664d[_0x425564(0x1ed)],_0x425564(0x1ca)),_0x425564(0x1eb)),_0x425564(0x1e2));if(_0x1ad500!==_0x42b7fc[_0x425564(0x1d3)])return{'state':_0x425564(0x1c0),'packageVersion':_0x42b7fc[_0x425564(0x1ba)],'skillVersion':_0x1ad500,'installedPath':_0x5a664d[_0x425564(0x1ed)],'repairCommand':REPAIR_COMMAND};const _0x1e36dd=listFiles(_0x5a664d['path']),_0x3ba468=digestFiles(_0x5a664d[_0x425564(0x1ed)],_0x1e36dd);return{'state':sameFiles(_0x1e36dd,_0x42b7fc[_0x425564(0x1ea)]['files'])&&_0x3ba468===_0x42b7fc['manifest']['digest']?_0x425564(0x1d1):'content_mismatch','packageVersion':_0x42b7fc[_0x425564(0x1ba)],'skillVersion':_0x1ad500,'installedPath':_0x5a664d[_0x425564(0x1ed)],'digest':_0x3ba468,'repairCommand':REPAIR_COMMAND};}catch(_0x2defe8){return{'state':_0x425564(0x1e7),'packageVersion':_0x42b7fc[_0x425564(0x1ba)],'installedPath':_0x5a664d['path'],'reason':_0x2defe8 instanceof Error?_0x2defe8[_0x425564(0x1da)]:String(_0x2defe8),'repairCommand':REPAIR_COMMAND};}}function failure(_0x15e955,_0x55e7b5,_0x365ae4,_0x591619){const _0x37bd32=a260_0x52113c;return{'ok':![],'code':_0x15e955,'packageVersion':_0x55e7b5[_0x37bd32(0x1ba)],'skillVersion':_0x55e7b5[_0x37bd32(0x1d3)],'installedPath':_0x591619,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x365ae4 instanceof Error?_0x365ae4[_0x37bd32(0x1da)]:String(_0x365ae4)};}export function installBuiltinSkill(_0x4c82ed={}){const _0x200076=a260_0x52113c,_0x444cb7=_0x4c82ed['packageRoot']??DEFAULT_PACKAGE_ROOT,_0xb52256=_0x4c82ed[_0x200076(0x1e3)]??homedir();let _0x5d7366;try{_0x5d7366=readSource(_0x444cb7);}catch(_0x11ab7a){return failure('SOURCE_INVALID',{'packageVersion':_0x200076(0x1cf),'skillVersion':_0x200076(0x1cf)},_0x11ab7a);}const _0x363420=inspectBuiltinSkill({'packageRoot':_0x444cb7,'home':_0xb52256}),_0x1098fe=runNpxSkillsAddGlobal(_0x444cb7,_0x5d7366[_0x200076(0x1d7)],{'stdio':_0x4c82ed[_0x200076(0x1e6)]??_0x200076(0x1bc),'expectedSkillName':SKILL_NAME,'presence':{'home':_0xb52256}});if(_0x1098fe[_0x200076(0x1d2)])return{'ok':!![],'packageVersion':_0x5d7366[_0x200076(0x1ba)],'skillVersion':_0x5d7366[_0x200076(0x1d3)],'installedPath':_0x363420[_0x200076(0x1ef)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x1098fe['ok'])return failure('INSTALL_FAILED',_0x5d7366,_0x1098fe[_0x200076(0x1d9)]??_0x200076(0x1e1)+_0x1098fe['status']);const _0x468cb1=inspectBuiltinSkill({'packageRoot':_0x444cb7,'home':_0xb52256});if(_0x468cb1['state']!==_0x200076(0x1d1))return failure(_0x200076(0x1b5),_0x5d7366,_0x468cb1[_0x200076(0x1bf)]??_0x200076(0x1e5)+_0x468cb1[_0x200076(0x1e4)],_0x468cb1[_0x200076(0x1ef)]);return{'ok':!![],'packageVersion':_0x5d7366[_0x200076(0x1ba)],'skillVersion':_0x5d7366[_0x200076(0x1d3)],'installedPath':_0x468cb1[_0x200076(0x1ef)],'changed':_0x363420[_0x200076(0x1e4)]!==_0x200076(0x1d1),'repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
1
- (function(_0x44269b,_0x209933){const _0x53bfb3=a249_0x3c94,_0x388e6d=_0x44269b();while(!![]){try{const _0x2bddda=parseInt(_0x53bfb3(0xb3))/0x1+parseInt(_0x53bfb3(0x9a))/0x2+parseInt(_0x53bfb3(0xb7))/0x3+-parseInt(_0x53bfb3(0x9e))/0x4+-parseInt(_0x53bfb3(0xa3))/0x5*(parseInt(_0x53bfb3(0xb6))/0x6)+parseInt(_0x53bfb3(0xb4))/0x7+-parseInt(_0x53bfb3(0xb1))/0x8;if(_0x2bddda===_0x209933)break;else _0x388e6d['push'](_0x388e6d['shift']());}catch(_0x3ea15b){_0x388e6d['push'](_0x388e6d['shift']());}}}(a249_0x47be,0x4b33d));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(_0x3f8d5b){const _0x3938aa=a249_0x3c94,_0x784f04=[];for(const [_0x383e93,_0x3980b4]of Object[_0x3938aa(0x9d)](_0x3f8d5b)){if(_0x3980b4===!![]){const _0xe7f1f5=_0x383e93[_0x3938aa(0xad)](/([A-Z])/g,'-$1')['toLowerCase']();_0x784f04['push'](_0xe7f1f5);}}return _0x784f04;}function a249_0x47be(){const _0xf76bea=['exit','slice','setLogPath','966845vFuWml','help','skill','includes','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','add','Equivalent\x20command:\x20','startsWith','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','error','replace','\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20','enable-bff-save','不支持的命令:\x20','2379232IKmiUV','--help','303387CdeXxZ','2375912iVzNcO','dangerously-bff-save','12CpPWOa','903549nCBErY','argv','\x0aAvailable\x20commands:','log','cwd','328312QssjVI','push','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','entries','463884sZxjlK','(empty)'];a249_0x47be=function(){return _0xf76bea;};return a249_0x47be();}export function parseDynamicFlags(){const _0x3f5a92=a249_0x3c94,_0x401381=[];for(let _0x588e88=0x3;_0x588e88<process[_0x3f5a92(0xb8)]['length'];_0x588e88++){const _0x54a4b3=process[_0x3f5a92(0xb8)][_0x588e88];if(_0x54a4b3&&_0x54a4b3[_0x3f5a92(0xaa)]('--')){const _0x524de8=_0x54a4b3[_0x3f5a92(0xa1)](0x2);_0x524de8&&!_0x524de8[_0x3f5a92(0xa6)]('=')&&_0x401381[_0x3f5a92(0x9b)](_0x524de8);}}return _0x401381;}export function getAllProvidedFlags(_0x46f7b2){const _0x4b4f1e=camelCaseFlagsToKebab(_0x46f7b2),_0x2e558c=parseDynamicFlags(),_0x575f35=new Set([..._0x4b4f1e,..._0x2e558c]);return Array['from'](_0x575f35);}function a249_0x3c94(_0x2f14a2,_0x235904){_0x2f14a2=_0x2f14a2-0x97;const _0x47be4e=a249_0x47be();let _0x3c947e=_0x47be4e[_0x2f14a2];return _0x3c947e;}export function normalizeLegacyBffSaveFlags(_0x1c02aa){const _0x4ea100=a249_0x3c94,_0x5ae1fc=new Set(_0x1c02aa);return _0x5ae1fc['has'](_0x4ea100(0xb5))&&_0x5ae1fc[_0x4ea100(0xa8)](_0x4ea100(0xaf)),Array['from'](_0x5ae1fc);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x1fd70a,_0x327fd7,_0xf421e5){const _0x3c193f=a249_0x3c94;logger[_0x3c193f(0xa2)](process[_0x3c193f(0x99)]());if(_0xf421e5?.[_0x3c193f(0xa4)]||_0x1fd70a===_0x3c193f(0xb2)){showHelp();return;}console[_0x3c193f(0xac)]('Error:\x20Unsupported\x20command:\x20'+(_0x1fd70a||_0x3c193f(0x9f))),console[_0x3c193f(0x98)](_0x3c193f(0x97)),console[_0x3c193f(0x98)]('\x20\x20'+CLI_BIN_NAME+_0x3c193f(0xa7)),console[_0x3c193f(0x98)](''),console[_0x3c193f(0x98)](_0x3c193f(0xa9)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x3c193f(0xac)](_0x3c193f(0xa5),_0x3c193f(0xb0)+_0x1fd70a),process[_0x3c193f(0xa0)](0x1);}function showHelp(){const _0x1293a0=a249_0x3c94;console[_0x1293a0(0x98)](_0x1293a0(0xab)+CLI_BIN_NAME+_0x1293a0(0xae)+SKILLS_INSTALL_COMMAND_LINE+_0x1293a0(0x9c));}
1
+ (function(_0x395c5c,_0x16ad23){const _0x82007a=a261_0x2008,_0xafae78=_0x395c5c();while(!![]){try{const _0x531a89=parseInt(_0x82007a(0xb2))/0x1+parseInt(_0x82007a(0xbe))/0x2+parseInt(_0x82007a(0xb3))/0x3+-parseInt(_0x82007a(0xb4))/0x4+parseInt(_0x82007a(0xc2))/0x5+-parseInt(_0x82007a(0xbb))/0x6+parseInt(_0x82007a(0xb8))/0x7*(-parseInt(_0x82007a(0xb6))/0x8);if(_0x531a89===_0x16ad23)break;else _0xafae78['push'](_0xafae78['shift']());}catch(_0x14c921){_0xafae78['push'](_0xafae78['shift']());}}}(a261_0x2309,0x8568c));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(_0x9fbd3f){const _0x12e403=a261_0x2008,_0x28dd49=[];for(const [_0x25917c,_0x52f301]of Object[_0x12e403(0xb5)](_0x9fbd3f)){if(_0x52f301===!![]){const _0x10d57c=_0x25917c['replace'](/([A-Z])/g,_0x12e403(0xcb))[_0x12e403(0xc4)]();_0x28dd49[_0x12e403(0xbd)](_0x10d57c);}}return _0x28dd49;}function a261_0x2008(_0x161988,_0x4c9a7d){_0x161988=_0x161988-0xb1;const _0x230940=a261_0x2309();let _0x200886=_0x230940[_0x161988];return _0x200886;}export function parseDynamicFlags(){const _0x5e0bc5=a261_0x2008,_0x4a19f0=[];for(let _0x559312=0x3;_0x559312<process['argv'][_0x5e0bc5(0xc5)];_0x559312++){const _0x270d3e=process[_0x5e0bc5(0xca)][_0x559312];if(_0x270d3e&&_0x270d3e['startsWith']('--')){const _0x1ef4f3=_0x270d3e[_0x5e0bc5(0xc9)](0x2);_0x1ef4f3&&!_0x1ef4f3[_0x5e0bc5(0xc3)]('=')&&_0x4a19f0['push'](_0x1ef4f3);}}return _0x4a19f0;}function a261_0x2309(){const _0x5ec2ae=['toLowerCase','length','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','Error:\x20Unsupported\x20command:\x20','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','slice','argv','-$1','Public\x20Open\x20Skill\x20source:\x20','466548IMCxWj','29910XHNUho','1552180bYsAtR','entries','6002240dZWhZE','add','7cRKUup','from','skill','2988306EszeqS','error','push','2008874seYjNC','log','has','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','3509325jwbPam','includes'];a261_0x2309=function(){return _0x5ec2ae;};return a261_0x2309();}export function getAllProvidedFlags(_0x5690ec){const _0x2f6e3e=a261_0x2008,_0x57cf9a=camelCaseFlagsToKebab(_0x5690ec),_0xfdde05=parseDynamicFlags(),_0x4fc72f=new Set([..._0x57cf9a,..._0xfdde05]);return Array[_0x2f6e3e(0xb9)](_0x4fc72f);}export function normalizeLegacyBffSaveFlags(_0x3f973e){const _0x227318=a261_0x2008,_0x46671c=new Set(_0x3f973e);return _0x46671c[_0x227318(0xc0)]('dangerously-bff-save')&&_0x46671c[_0x227318(0xb7)]('enable-bff-save'),Array['from'](_0x46671c);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x3a41dd,_0x456ced,_0x6b6be0){const _0x4f2f97=a261_0x2008;logger['setLogPath'](process['cwd']());if(_0x6b6be0?.['help']||_0x3a41dd==='--help'){showHelp();return;}console['error'](_0x4f2f97(0xc7)+(_0x3a41dd||'(empty)')),console['log']('\x0aAvailable\x20commands:'),console['log']('\x20\x20'+CLI_BIN_NAME+_0x4f2f97(0xc8)),console[_0x4f2f97(0xbf)](''),console[_0x4f2f97(0xbf)](_0x4f2f97(0xb1)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x4f2f97(0xbc)](_0x4f2f97(0xba),'不支持的命令:\x20'+_0x3a41dd),process['exit'](0x1);}function showHelp(){const _0x3ca50f=a261_0x2008;console[_0x3ca50f(0xbf)]('\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x3ca50f(0xc6)+SKILLS_INSTALL_COMMAND_LINE+_0x3ca50f(0xc1));}
@@ -10,8 +10,8 @@ export declare const NPX_FLAG_YES: "-y";
10
10
  export declare const SKILLS_FLAG_GLOBAL: "-g";
11
11
  /** `skills add` 的非交互确认短参数 */
12
12
  export declare const SKILLS_FLAG_YES: "-y";
13
- /** skills CLI 主命令名 */
14
- export declare const NPX_SKILLS_CLI: "skills";
13
+ /** 始终使用官方最新 Skills CLI,目录兼容规则由上游维护。 */
14
+ export declare const NPX_SKILLS_CLI: "skills@latest";
15
15
  /** `skills` 子命令:add */
16
16
  export declare const NPX_SKILLS_SUBCOMMAND_ADD: "add";
17
17
  /** `--skill` 长选项名 */
@@ -67,6 +67,8 @@ export interface RunNpxSkillsAddOptions {
67
67
  yes?: boolean;
68
68
  /** 覆盖全局 Skill 安装事实的探测来源,适用于隔离环境或测试。 */
69
69
  presence?: ResolveSkillPresenceOptions;
70
+ /** 本地路径等无法由 source 推导名称时,显式提供安装后的 Skill 名。 */
71
+ expectedSkillName?: string;
70
72
  }
71
73
  /**
72
74
  * 失败分类。优先使用 OS / Node 层稳定信号与本地可解析的安装事实。
@@ -1 +1 @@
1
- const a250_0x41eb70=a250_0x5af7;(function(_0x178b4f,_0x36fed7){const _0x4774f0=a250_0x5af7,_0x1268a0=_0x178b4f();while(!![]){try{const _0x46446b=parseInt(_0x4774f0(0x16b))/0x1+-parseInt(_0x4774f0(0x170))/0x2+-parseInt(_0x4774f0(0x15b))/0x3+-parseInt(_0x4774f0(0x15f))/0x4+parseInt(_0x4774f0(0x182))/0x5*(parseInt(_0x4774f0(0x171))/0x6)+-parseInt(_0x4774f0(0x174))/0x7*(-parseInt(_0x4774f0(0x18b))/0x8)+-parseInt(_0x4774f0(0x17a))/0x9*(-parseInt(_0x4774f0(0x165))/0xa);if(_0x46446b===_0x36fed7)break;else _0x1268a0['push'](_0x1268a0['shift']());}catch(_0x306af9){_0x1268a0['push'](_0x1268a0['shift']());}}}(a250_0x384a,0x8fa99));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a250_0x41eb70(0x18c);export const NPX_SKILLS_SUBCOMMAND_ADD=a250_0x41eb70(0x183);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME=a250_0x41eb70(0x15c);export const RABETBASE_GLOBAL_SKILL_NAME=a250_0x41eb70(0x16f);function a250_0x5af7(_0x51e955,_0x36aa9c){_0x51e955=_0x51e955-0x15b;const _0x384a43=a250_0x384a();let _0x5af725=_0x384a43[_0x51e955];return _0x5af725;}export const RABETBASE_SKILL_GIT_SOURCE=a250_0x41eb70(0x161);export function resolveGlobalSkillName(_0x23c794){const _0x4bf3bc=a250_0x41eb70;switch(_0x23c794[_0x4bf3bc(0x168)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x29d651){const _0x1a8a7c=a250_0x41eb70,_0x425b31=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x29d651&&_0x425b31[_0x1a8a7c(0x181)](NPX_SKILLS_FLAG_SKILL,_0x29d651),_0x425b31;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a250_0x41eb70(0x17e),...buildNpxSkillsAddArgv()][a250_0x41eb70(0x186)]('\x20');function a250_0x384a(){const _0x5716a7=['add','skill','stdout','join','log','checked','NPX_NOT_FOUND','absent','8iDUwPg','skills','pipe','CHILD_EXIT_NONZERO','INSTALL_PARTIAL','1879971uRvSwi','Lovrabet','CHILD_TERMINATED','warn','729116AGqgSo','unknown','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','stderr','filter','Installer\x20reported\x20','16530kfFLmP','remove','state','trim','toString','inherit','18765SnFMLJ','yes','status','message','rabetbase','1577148qKXROk','314772XeyOej','code','unverifiable','5882989pQWohA','!\x20Could\x20not\x20verify\x20\x22','Skill\x20\x22','presence','exit\x20','SKILL_NOT_INSTALLED','4653ujHbpM','signal','stdio','error','npx','ENOENT','\x22\x20install\x20state:\x20','push','45znlPNZ'];a250_0x384a=function(){return _0x5716a7;};return a250_0x384a();}export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a250_0x41eb70(0x186)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x345e2f,_0x3cc8f7,_0x245763){return{'ok':![],'status':_0x3cc8f7,'code':_0x345e2f,'error':'['+_0x345e2f+']\x20'+_0x245763};}function spawnOptions(_0x117498,_0x5d6e48){const _0x102109=a250_0x41eb70;return{'cwd':_0x117498,'stdio':_0x5d6e48,'env':process.env,'shell':![],..._0x5d6e48===_0x102109(0x18d)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x2e8936,_0x20e8c8,_0x33c206,_0x4646ff){const _0x28646a=a250_0x41eb70,_0x21bb9f=[_0x2e8936[_0x28646a(0x185)]?_0x2e8936[_0x28646a(0x185)][_0x28646a(0x169)]():'',_0x2e8936[_0x28646a(0x162)]?_0x2e8936[_0x28646a(0x162)][_0x28646a(0x169)]():''][_0x28646a(0x163)](Boolean)[_0x28646a(0x186)]('\x0a')[_0x28646a(0x168)]();_0x4646ff!==_0x28646a(0x18d)&&_0x21bb9f&&console[_0x28646a(0x187)](_0x21bb9f);if(_0x2e8936[_0x28646a(0x17d)]){const _0x37f8e6=_0x2e8936[_0x28646a(0x17d)],_0x481011=_0x37f8e6['code']===_0x28646a(0x17f)?_0x28646a(0x189):_0x37f8e6[_0x28646a(0x172)]==='EPERM'||_0x37f8e6[_0x28646a(0x172)]==='EACCES'?'PERMISSION_DENIED':'SPAWN_FAILED';return failure(_0x481011,_0x2e8936[_0x28646a(0x16d)],_0x37f8e6[_0x28646a(0x16e)]);}if(_0x2e8936[_0x28646a(0x17b)])return failure(_0x28646a(0x15d),_0x2e8936[_0x28646a(0x16d)],'npx\x20terminated\x20by\x20signal\x20'+_0x2e8936['signal']);if(_0x2e8936[_0x28646a(0x16d)]!==0x0)return failure(_0x28646a(0x18e),_0x2e8936[_0x28646a(0x16d)],_0x21bb9f||_0x28646a(0x178)+(_0x2e8936[_0x28646a(0x16d)]??_0x28646a(0x160)));const _0x54bbcf=_0x21bb9f['match'](/Failed to install\s+(\d+)/i);if(_0x54bbcf&&Number(_0x54bbcf[0x1])>0x0)return failure(_0x28646a(0x18f),0x0,_0x28646a(0x164)+_0x54bbcf[0x1]+'\x20failed\x20target(s)'+(_0x21bb9f?':\x0a'+_0x21bb9f:''));if(_0x20e8c8){const _0x88c3a5=resolveInstalledSkill(_0x20e8c8,_0x33c206);if(_0x88c3a5[_0x28646a(0x167)]===_0x28646a(0x18a))return failure(_0x28646a(0x179),0x0,_0x28646a(0x176)+_0x20e8c8+'\x22\x20not\x20found\x20after\x20install\x20(checked\x20'+_0x88c3a5[_0x28646a(0x188)][_0x28646a(0x186)](',\x20')+')');_0x88c3a5[_0x28646a(0x167)]===_0x28646a(0x173)&&console[_0x28646a(0x15e)](_0x28646a(0x175)+_0x20e8c8+_0x28646a(0x180)+_0x88c3a5['reason']);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x4a5a9a,_0x216261){const _0x530e68=a250_0x41eb70;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5a7cbb=_0x216261?.[_0x530e68(0x17c)]??_0x530e68(0x16a),_0xa72960=resolveNpmBin(_0x530e68(0x17e)),_0x434995=buildNpxSkillsAddArgv(_0x216261?.['skill']),_0x193035=['npx',..._0x434995][_0x530e68(0x186)]('\x20');console[_0x530e68(0x187)]('*\x20'+_0x193035);const _0x1806ad=spawnSync(_0xa72960,_0x434995,spawnOptions(_0x4a5a9a,_0x5a7cbb));return normalizeSpawnResult(_0x1806ad,undefined,undefined,_0x5a7cbb);}export function runNpxSkillsRemove(_0x11142e,_0x206a1f,_0x382398=LEGACY_RABETBASE_SKILL_SOURCE){const _0xc78ae5=a250_0x41eb70;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5b7a20=_0x206a1f?.[_0xc78ae5(0x17c)]??_0xc78ae5(0x16a),_0x2bfbee=resolveNpmBin(_0xc78ae5(0x17e)),_0x58dbd2=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0xc78ae5(0x166),_0x382398,NPX_SKILLS_FLAG_SKILL,_0x206a1f?.[_0xc78ae5(0x184)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x206a1f?.[_0xc78ae5(0x16c)]?['-y']:[]],_0x59f776=[_0x2bfbee,..._0x58dbd2]['join']('\x20');console[_0xc78ae5(0x187)]('*\x20'+_0x59f776);const _0x16cbf8=spawnSync(_0x2bfbee,_0x58dbd2,spawnOptions(_0x11142e,_0x5b7a20));return normalizeSpawnResult(_0x16cbf8,undefined,undefined,_0x5b7a20);}export function runNpxSkillsAddGlobal(_0x1eb216,_0x351e0a,_0x10408c){const _0x28f5ee=a250_0x41eb70;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xa50359=resolveNpmBin(_0x28f5ee(0x17e)),_0x1a694c=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x351e0a,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x353451=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x351e0a,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x28f5ee(0x186)]('\x20');console[_0x28f5ee(0x187)]('*\x20'+_0x353451);const _0xfa3590=spawnSync(_0xa50359,_0x1a694c,spawnOptions(_0x1eb216,_0x28f5ee(0x18d)));return normalizeSpawnResult(_0xfa3590,resolveGlobalSkillName(_0x351e0a),_0x10408c?.[_0x28f5ee(0x177)],_0x10408c?.['stdio']);}
1
+ const a262_0x5c2ffd=a262_0x3c5b;(function(_0x52ff14,_0x16990a){const _0x29da2e=a262_0x3c5b,_0x526182=_0x52ff14();while(!![]){try{const _0x431bce=parseInt(_0x29da2e(0x164))/0x1*(-parseInt(_0x29da2e(0x173))/0x2)+parseInt(_0x29da2e(0x178))/0x3+parseInt(_0x29da2e(0x171))/0x4*(parseInt(_0x29da2e(0x17b))/0x5)+parseInt(_0x29da2e(0x16e))/0x6+-parseInt(_0x29da2e(0x18a))/0x7+-parseInt(_0x29da2e(0x167))/0x8*(parseInt(_0x29da2e(0x156))/0x9)+parseInt(_0x29da2e(0x15e))/0xa*(parseInt(_0x29da2e(0x16b))/0xb);if(_0x431bce===_0x16990a)break;else _0x526182['push'](_0x526182['shift']());}catch(_0x4d52f4){_0x526182['push'](_0x526182['shift']());}}}(a262_0x1165,0xa85bb));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';function a262_0x3c5b(_0x903228,_0x163253){_0x903228=_0x903228-0x153;const _0x116540=a262_0x1165();let _0x3c5bcc=_0x116540[_0x903228];return _0x3c5bcc;}export const NPX_SKILLS_CLI=a262_0x5c2ffd(0x168);export const NPX_SKILLS_SUBCOMMAND_ADD=a262_0x5c2ffd(0x166);export const NPX_SKILLS_FLAG_SKILL=a262_0x5c2ffd(0x177);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME=a262_0x5c2ffd(0x17f);export const RABETBASE_GLOBAL_SKILL_NAME='rabetbase';export const RABETBASE_SKILL_GIT_SOURCE=a262_0x5c2ffd(0x189);function a262_0x1165(){const _0x4a0521=['Skill\x20\x22','4MkoSaw','trim','122890utKzNz','present','log','state','--skill','1618692ysSbaC','code','stdio','620930PYvSNk','EACCES','stdout','match','Lovrabet','\x20failed\x20target(s)','status','inherit','npx','error','join','toString','stderr','filter','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','7236957KGOKIw','push','yes','Installer\x20reported\x20','9frnqSB','pipe','SKILL_NOT_INSTALLED','skill','INSTALL_PARTIAL','\x22\x20install\x20state:\x20','SPAWN_FAILED','warn','9139990zlKFWH','unverifiable','signal','remove','npm_config_global','checked','14VZpVoK','absent','add','1988680qCEuEa','skills@latest','presence','expectedSkillName','22IXaXac','unknown','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','2043078fzGdxT','ENOENT'];a262_0x1165=function(){return _0x4a0521;};return a262_0x1165();}export function resolveGlobalSkillName(_0x219f64){const _0x6ac7f3=a262_0x5c2ffd;switch(_0x219f64[_0x6ac7f3(0x172)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x4998d5){const _0x2173ee=a262_0x5c2ffd,_0x16e364=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x4998d5&&_0x16e364[_0x2173ee(0x153)](NPX_SKILLS_FLAG_SKILL,_0x4998d5),_0x16e364;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a262_0x5c2ffd(0x183),...buildNpxSkillsAddArgv()][a262_0x5c2ffd(0x185)]('\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][a262_0x5c2ffd(0x185)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x1da8b3,_0x3287f1,_0x3243fd){return{'ok':![],'status':_0x3287f1,'code':_0x1da8b3,'error':'['+_0x1da8b3+']\x20'+_0x3243fd};}function spawnOptions(_0x373370,_0x5d6221){const _0x20565f=a262_0x5c2ffd,_0x531c53={...process.env};return delete _0x531c53[_0x20565f(0x162)],delete _0x531c53['NPM_CONFIG_GLOBAL'],{'cwd':_0x373370,'stdio':_0x5d6221,'env':_0x531c53,'shell':![],..._0x5d6221===_0x20565f(0x157)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x5ab8c7,_0x238794,_0x579dd9,_0x19af44){const _0x6216f8=a262_0x5c2ffd,_0x2a6874=[_0x5ab8c7['stdout']?_0x5ab8c7[_0x6216f8(0x17d)][_0x6216f8(0x186)]():'',_0x5ab8c7[_0x6216f8(0x187)]?_0x5ab8c7[_0x6216f8(0x187)][_0x6216f8(0x186)]():''][_0x6216f8(0x188)](Boolean)['join']('\x0a')[_0x6216f8(0x172)]();_0x19af44!==_0x6216f8(0x157)&&_0x2a6874&&console[_0x6216f8(0x175)](_0x2a6874);if(_0x5ab8c7[_0x6216f8(0x184)]){const _0x287350=_0x5ab8c7[_0x6216f8(0x184)],_0x36db2d=_0x287350['code']===_0x6216f8(0x16f)?'NPX_NOT_FOUND':_0x287350[_0x6216f8(0x179)]==='EPERM'||_0x287350['code']===_0x6216f8(0x17c)?'PERMISSION_DENIED':_0x6216f8(0x15c);return failure(_0x36db2d,_0x5ab8c7[_0x6216f8(0x181)],_0x287350['message']);}if(_0x5ab8c7['signal'])return failure('CHILD_TERMINATED',_0x5ab8c7['status'],'npx\x20terminated\x20by\x20signal\x20'+_0x5ab8c7[_0x6216f8(0x160)]);if(_0x5ab8c7[_0x6216f8(0x181)]!==0x0)return failure('CHILD_EXIT_NONZERO',_0x5ab8c7[_0x6216f8(0x181)],_0x2a6874||'exit\x20'+(_0x5ab8c7[_0x6216f8(0x181)]??_0x6216f8(0x16c)));const _0x219985=_0x238794?resolveInstalledSkill(_0x238794,_0x579dd9):undefined,_0x1a8e5e=_0x2a6874[_0x6216f8(0x17e)](/Failed to install\s+(\d+)/i);if(_0x1a8e5e&&Number(_0x1a8e5e[0x1])>0x0){const _0x15cf6c=_0x6216f8(0x155)+_0x1a8e5e[0x1]+_0x6216f8(0x180)+(_0x2a6874?':\x0a'+_0x2a6874:'');if(_0x219985?.[_0x6216f8(0x176)]===_0x6216f8(0x174))return console[_0x6216f8(0x15d)]('!\x20'+_0x15cf6c),{'ok':!![],'status':0x0};return failure(_0x6216f8(0x15a),0x0,_0x15cf6c);}if(_0x219985){if(_0x219985[_0x6216f8(0x176)]===_0x6216f8(0x165))return failure(_0x6216f8(0x158),0x0,_0x6216f8(0x170)+_0x238794+_0x6216f8(0x16d)+_0x219985[_0x6216f8(0x163)][_0x6216f8(0x185)](',\x20')+')');_0x219985[_0x6216f8(0x176)]===_0x6216f8(0x15f)&&console[_0x6216f8(0x15d)]('!\x20Could\x20not\x20verify\x20\x22'+_0x238794+_0x6216f8(0x15b)+_0x219985['reason']);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x1536bd,_0x481d0f){const _0xf90ff5=a262_0x5c2ffd;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x2ed543=_0x481d0f?.[_0xf90ff5(0x17a)]??_0xf90ff5(0x182),_0x274190=resolveNpmBin('npx'),_0x46196e=buildNpxSkillsAddArgv(_0x481d0f?.['skill']),_0x5b48db=[_0xf90ff5(0x183),..._0x46196e][_0xf90ff5(0x185)]('\x20');console[_0xf90ff5(0x175)]('*\x20'+_0x5b48db);const _0xf83f15=spawnSync(_0x274190,_0x46196e,spawnOptions(_0x1536bd,_0x2ed543));return normalizeSpawnResult(_0xf83f15,undefined,undefined,_0x2ed543);}export function runNpxSkillsRemove(_0x551b4e,_0x11204b,_0x5f577e=LEGACY_RABETBASE_SKILL_SOURCE){const _0x43301f=a262_0x5c2ffd;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1404fe=_0x11204b?.[_0x43301f(0x17a)]??'inherit',_0x38afc7=resolveNpmBin(_0x43301f(0x183)),_0x1f6343=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x43301f(0x161),_0x5f577e,NPX_SKILLS_FLAG_SKILL,_0x11204b?.[_0x43301f(0x159)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x11204b?.[_0x43301f(0x154)]?['-y']:[]],_0x139035=[_0x38afc7,..._0x1f6343]['join']('\x20');console[_0x43301f(0x175)]('*\x20'+_0x139035);const _0x47b902=spawnSync(_0x38afc7,_0x1f6343,spawnOptions(_0x551b4e,_0x1404fe));return normalizeSpawnResult(_0x47b902,undefined,undefined,_0x1404fe);}export function runNpxSkillsAddGlobal(_0xbceddb,_0x46b683,_0x438c35){const _0x181a46=a262_0x5c2ffd;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x229e59=resolveNpmBin('npx'),_0x434541=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x46b683,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x1dcf7c=[_0x181a46(0x183),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x46b683,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x181a46(0x185)]('\x20');console[_0x181a46(0x175)]('*\x20'+_0x1dcf7c);const _0x17c1e0=spawnSync(_0x229e59,_0x434541,spawnOptions(_0xbceddb,_0x181a46(0x157)));return normalizeSpawnResult(_0x17c1e0,_0x438c35?.[_0x181a46(0x16a)]??resolveGlobalSkillName(_0x46b683),_0x438c35?.[_0x181a46(0x169)],_0x438c35?.[_0x181a46(0x17a)]);}
@@ -1 +1 @@
1
- const a251_0x2a7b70=a251_0x4b23;(function(_0x30f3d0,_0xebe93e){const _0x14675e=a251_0x4b23,_0x38f35e=_0x30f3d0();while(!![]){try{const _0x3a84ed=parseInt(_0x14675e(0xd8))/0x1+-parseInt(_0x14675e(0xf5))/0x2*(-parseInt(_0x14675e(0xea))/0x3)+-parseInt(_0x14675e(0xdb))/0x4+-parseInt(_0x14675e(0xf9))/0x5+-parseInt(_0x14675e(0xf3))/0x6*(parseInt(_0x14675e(0xda))/0x7)+-parseInt(_0x14675e(0xdd))/0x8*(-parseInt(_0x14675e(0xd9))/0x9)+parseInt(_0x14675e(0xd6))/0xa*(parseInt(_0x14675e(0xe4))/0xb);if(_0x3a84ed===_0xebe93e)break;else _0x38f35e['push'](_0x38f35e['shift']());}catch(_0x521aa9){_0x38f35e['push'](_0x38f35e['shift']());}}}(a251_0x3424,0xbb29f));function a251_0x4b23(_0x26d553,_0x57635d){_0x26d553=_0x26d553-0xd5;const _0x342463=a251_0x3424();let _0x4b2344=_0x342463[_0x26d553];return _0x4b2344;}import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';function a251_0x3424(){const _0x4e4216=['join','recorded','includes','number','635226oElHqd','.claude','1524AILUWT','parse','.skill-lock.json','message','3415645ZHArfn','kind','2540330CYlRNV','present','426515nQodAI','27fTzMLH','56vasayr','420260PNUSqZ','skills','1837608lKHoyP','object','\x20records\x20\x22','reason','\x20uses\x20unsupported\x20version\x20','lockFile','home','55OijETc','unverifiable','globalSkillsDirs','absent','version','map','63rQaoje','SKILL.md','\x20has\x20no\x20skills\x20map','not-recorded','unusable'];a251_0x3424=function(){return _0x4e4216;};return a251_0x3424();}export const SKILL_LOCK_RELATIVE_PATH=join('.agents',a251_0x2a7b70(0xf7));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents',a251_0x2a7b70(0xdc)),join(a251_0x2a7b70(0xf4),a251_0x2a7b70(0xdc))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x18b456,_0x2dda60){const _0x200df0=a251_0x2a7b70;if(!existsSync(_0x18b456))return{'kind':_0x200df0(0xed)};let _0x29b786;try{_0x29b786=JSON[_0x200df0(0xf6)](readFileSync(_0x18b456,'utf8'));}catch(_0x4082b9){return{'kind':_0x200df0(0xee),'reason':_0x18b456+'\x20is\x20unreadable:\x20'+_0x4082b9[_0x200df0(0xf8)]};}const _0x36096b=_0x29b786;if(typeof _0x36096b?.[_0x200df0(0xe8)]!==_0x200df0(0xf2)||!SUPPORTED_LOCK_VERSIONS[_0x200df0(0xf1)](_0x36096b[_0x200df0(0xe8)]))return{'kind':_0x200df0(0xee),'reason':_0x18b456+_0x200df0(0xe1)+String(_0x36096b?.[_0x200df0(0xe8)])};if(!_0x36096b[_0x200df0(0xdc)]||typeof _0x36096b['skills']!==_0x200df0(0xde))return{'kind':_0x200df0(0xee),'reason':_0x18b456+_0x200df0(0xec)};return _0x36096b[_0x200df0(0xdc)][_0x2dda60]?{'kind':'recorded'}:{'kind':'not-recorded'};}export function resolveInstalledSkill(_0x359765,_0x718c4){const _0xe391fe=a251_0x2a7b70,_0x847419=_0x718c4?.[_0xe391fe(0xe3)]??homedir(),_0x110619=_0x718c4?.[_0xe391fe(0xe6)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0xe391fe(0xe9)](_0x17e131=>join(_0x847419,_0x17e131)),_0x42dd0c=_0x718c4?.[_0xe391fe(0xe2)]??join(_0x847419,SKILL_LOCK_RELATIVE_PATH),_0x3fcae6=_0x110619['map'](_0x12fb2e=>join(_0x12fb2e,_0x359765,_0xe391fe(0xeb))),_0x10c0d5=_0x3fcae6['find'](_0x4c66d8=>existsSync(_0x4c66d8));if(_0x10c0d5)return{'state':_0xe391fe(0xd7),'path':_0x10c0d5};const _0x549d76=readLockLookup(_0x42dd0c,_0x359765);if(_0x549d76[_0xe391fe(0xd5)]===_0xe391fe(0xee))return{'state':_0xe391fe(0xe5),'reason':_0x549d76[_0xe391fe(0xe0)]};if(_0x549d76['kind']===_0xe391fe(0xf0))return{'state':'unverifiable','reason':_0x42dd0c+_0xe391fe(0xdf)+_0x359765+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0x3fcae6[_0xe391fe(0xef)](',\x20')+')')};return{'state':_0xe391fe(0xe7),'checked':_0x3fcae6};}
1
+ function a263_0x5922(){const _0x58dd3d=['reason','unverifiable','.skill-lock.json','absent','kind','not-recorded','15839118JUrbdU','map','message','2251524RodxJP','\x20records\x20\x22','.claude','6EGCJJm','join','home','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','\x20is\x20unreadable:\x20','globalSkillsDirs','find','5010888Aapljo','3557456FKcOPf','1911112DuFABw','utf8','.agents','version','4804630dSjOTh','includes','object','34RTTlFR','recorded','parse','\x20has\x20no\x20skills\x20map','unusable','19225oVvuGu','skills','lockFile','present'];a263_0x5922=function(){return _0x58dd3d;};return a263_0x5922();}const a263_0x2d5570=a263_0x43b1;(function(_0x5e6d69,_0x151a1b){const _0x3c8126=a263_0x43b1,_0x416925=_0x5e6d69();while(!![]){try{const _0x16e3f2=-parseInt(_0x3c8126(0x191))/0x1*(-parseInt(_0x3c8126(0x18c))/0x2)+-parseInt(_0x3c8126(0x19e))/0x3+-parseInt(_0x3c8126(0x1a9))/0x4+parseInt(_0x3c8126(0x189))/0x5*(parseInt(_0x3c8126(0x1a1))/0x6)+-parseInt(_0x3c8126(0x1aa))/0x7+-parseInt(_0x3c8126(0x1a8))/0x8+parseInt(_0x3c8126(0x19b))/0x9;if(_0x16e3f2===_0x151a1b)break;else _0x416925['push'](_0x416925['shift']());}catch(_0x555c6a){_0x416925['push'](_0x416925['shift']());}}}(a263_0x5922,0x7c1f4));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a263_0x2d5570(0x1ac),a263_0x2d5570(0x197));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents',a263_0x2d5570(0x192)),join(a263_0x2d5570(0x1a0),a263_0x2d5570(0x192))];const SUPPORTED_LOCK_VERSIONS=[0x3];function a263_0x43b1(_0x42f53d,_0x21d33d){_0x42f53d=_0x42f53d-0x189;const _0x59224f=a263_0x5922();let _0x43b1b9=_0x59224f[_0x42f53d];return _0x43b1b9;}function readLockLookup(_0xa6c0fa,_0x31c55b){const _0x1ccf83=a263_0x2d5570;if(!existsSync(_0xa6c0fa))return{'kind':_0x1ccf83(0x19a)};let _0x3dce73;try{_0x3dce73=JSON[_0x1ccf83(0x18e)](readFileSync(_0xa6c0fa,_0x1ccf83(0x1ab)));}catch(_0x4db596){return{'kind':_0x1ccf83(0x190),'reason':_0xa6c0fa+_0x1ccf83(0x1a5)+_0x4db596[_0x1ccf83(0x19d)]};}const _0x1ecd85=_0x3dce73;if(typeof _0x1ecd85?.[_0x1ccf83(0x1ad)]!=='number'||!SUPPORTED_LOCK_VERSIONS[_0x1ccf83(0x18a)](_0x1ecd85[_0x1ccf83(0x1ad)]))return{'kind':_0x1ccf83(0x190),'reason':_0xa6c0fa+'\x20uses\x20unsupported\x20version\x20'+String(_0x1ecd85?.[_0x1ccf83(0x1ad)])};if(!_0x1ecd85[_0x1ccf83(0x192)]||typeof _0x1ecd85[_0x1ccf83(0x192)]!==_0x1ccf83(0x18b))return{'kind':_0x1ccf83(0x190),'reason':_0xa6c0fa+_0x1ccf83(0x18f)};return _0x1ecd85[_0x1ccf83(0x192)][_0x31c55b]?{'kind':_0x1ccf83(0x18d)}:{'kind':_0x1ccf83(0x19a)};}export function resolveInstalledSkill(_0x2a0955,_0x386235){const _0x144a5f=a263_0x2d5570,_0x305e94=_0x386235?.[_0x144a5f(0x1a3)]??homedir(),_0x15283=_0x386235?.[_0x144a5f(0x1a6)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS['map'](_0x563a14=>join(_0x305e94,_0x563a14)),_0x37b01a=_0x386235?.[_0x144a5f(0x193)]??join(_0x305e94,SKILL_LOCK_RELATIVE_PATH),_0x3f8320=_0x15283[_0x144a5f(0x19c)](_0x1e04ea=>join(_0x1e04ea,_0x2a0955,'SKILL.md')),_0x32d65c=_0x3f8320[_0x144a5f(0x1a7)](_0x288b3e=>existsSync(_0x288b3e));if(_0x32d65c)return{'state':_0x144a5f(0x194),'path':_0x32d65c};const _0x1ebfdc=readLockLookup(_0x37b01a,_0x2a0955);if(_0x1ebfdc[_0x144a5f(0x199)]===_0x144a5f(0x190))return{'state':'unverifiable','reason':_0x1ebfdc[_0x144a5f(0x195)]};if(_0x1ebfdc['kind']===_0x144a5f(0x18d))return{'state':_0x144a5f(0x196),'reason':_0x37b01a+_0x144a5f(0x19f)+_0x2a0955+_0x144a5f(0x1a4)+('('+_0x3f8320[_0x144a5f(0x1a2)](',\x20')+')')};return{'state':_0x144a5f(0x198),'checked':_0x3f8320};}