@lovrabet/rabetbase-cli 2.3.16-beta.6 → 2.4.1-beta.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 (436) 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.d.ts +1 -1
  229. package/lib/context.js +1 -1
  230. package/lib/core/alias-resolver.js +1 -1
  231. package/lib/core/api-client.d.ts +117 -0
  232. package/lib/core/api-client.js +1 -1
  233. package/lib/core/bff/config.js +1 -1
  234. package/lib/core/bff/file-system.js +1 -1
  235. package/lib/core/bff/hash.js +1 -1
  236. package/lib/core/bff/lock.js +1 -1
  237. package/lib/core/bff/utils.js +1 -1
  238. package/lib/core/db-resolver.js +1 -1
  239. package/lib/core/page/file-system.js +1 -1
  240. package/lib/core/page/hash.js +1 -1
  241. package/lib/core/page/lock.js +1 -1
  242. package/lib/core/sql-index-auditor.js +1 -1
  243. package/lib/core/sql-sync/config.js +1 -1
  244. package/lib/core/sql-sync/file-system.js +1 -1
  245. package/lib/core/sql-sync/hash.js +1 -1
  246. package/lib/core/sql-sync/lock.js +1 -1
  247. package/lib/core/sql-sync/utils.js +1 -1
  248. package/lib/core/sql-validator.js +1 -1
  249. package/lib/errors.js +1 -1
  250. package/lib/framework/build-all-flags.js +1 -1
  251. package/lib/framework/error-output.js +1 -1
  252. package/lib/framework/explicit-yes.js +1 -1
  253. package/lib/framework/flags.js +1 -1
  254. package/lib/framework/help.js +1 -1
  255. package/lib/framework/index.js +1 -1
  256. package/lib/framework/output.js +1 -1
  257. package/lib/framework/response.js +1 -1
  258. package/lib/framework/runner-alias.js +1 -1
  259. package/lib/framework/runner.js +1 -1
  260. package/lib/framework/schema-export.js +1 -1
  261. package/lib/framework/types.js +1 -1
  262. package/lib/generated/build-info.d.ts +4 -4
  263. package/lib/generated/build-info.js +1 -1
  264. package/lib/help.js +1 -1
  265. package/lib/postinstall.d.ts +3 -0
  266. package/lib/postinstall.js +1 -0
  267. package/lib/runtime/confirmation.js +1 -1
  268. package/lib/runtime/event.js +1 -1
  269. package/lib/runtime/index.js +1 -1
  270. package/lib/runtime/queue.js +1 -1
  271. package/lib/runtime/resolve.js +1 -1
  272. package/lib/skills/builtin-skill.d.ts +37 -0
  273. package/lib/skills/builtin-skill.js +1 -0
  274. package/lib/skills/main.js +1 -1
  275. package/lib/skills/npx-skills-add.d.ts +4 -2
  276. package/lib/skills/npx-skills-add.js +1 -1
  277. package/lib/skills/skill-presence.js +1 -1
  278. package/lib/telemetry/cli-command-trace.js +1 -1
  279. package/lib/telemetry/cli-help-trace.js +1 -1
  280. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  281. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  282. package/lib/telemetry/send-cli-trace-log.js +1 -1
  283. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  284. package/lib/utils/ai_config.js +1 -1
  285. package/lib/utils/apply-jq-filter.js +1 -1
  286. package/lib/utils/cdn-config.js +1 -1
  287. package/lib/utils/check-sdk-version.js +1 -1
  288. package/lib/utils/cli-version-check.js +1 -1
  289. package/lib/utils/cli-version-policy.js +1 -1
  290. package/lib/utils/config.js +1 -1
  291. package/lib/utils/copy-directory.js +1 -1
  292. package/lib/utils/entity-with-id.js +1 -1
  293. package/lib/utils/file-utils.js +1 -1
  294. package/lib/utils/guides-cdn.js +1 -1
  295. package/lib/utils/http-client.js +1 -1
  296. package/lib/utils/is-non-interactive.js +1 -1
  297. package/lib/utils/logger.js +1 -1
  298. package/lib/utils/params.js +1 -1
  299. package/lib/utils/platform.js +1 -1
  300. package/lib/utils/rules-cdn.js +1 -1
  301. package/lib/utils/sleep.js +1 -1
  302. package/lib/utils/template-replacer.js +1 -1
  303. package/lib/utils/update-notice.js +1 -1
  304. package/lib/utils/version.js +1 -1
  305. package/lib/utils/with-active-cookie.js +1 -1
  306. package/lib/utils/write-cli-side-channel.js +1 -1
  307. package/package.json +9 -3
  308. package/scripts/postinstall.mjs +24 -0
  309. package/skills/rabetbase/SKILL.md +493 -0
  310. package/skills/rabetbase/guides/backend-function.md +835 -0
  311. package/skills/rabetbase/guides/best-practices.md +137 -0
  312. package/skills/rabetbase/guides/bff-creation-workflow.md +148 -0
  313. package/skills/rabetbase/guides/conflict-detection.md +119 -0
  314. package/skills/rabetbase/guides/data-api-guidelines.md +414 -0
  315. package/skills/rabetbase/guides/database-connection-workflow.md +169 -0
  316. package/skills/rabetbase/guides/frontend-development.md +179 -0
  317. package/skills/rabetbase/guides/legacy-application-blueprint-workflow.md +495 -0
  318. package/skills/rabetbase/guides/menu-anomaly-manual-cleanup.md +137 -0
  319. package/skills/rabetbase/guides/page-development-workflow.md +187 -0
  320. package/skills/rabetbase/guides/react-custom-page-workflow.md +184 -0
  321. package/skills/rabetbase/guides/role-permit-workflow.md +127 -0
  322. package/skills/rabetbase/guides/sql-creation-workflow.md +173 -0
  323. package/skills/rabetbase/guides/sql-mybatis.md +126 -0
  324. package/skills/rabetbase/guides/troubleshooting.md +67 -0
  325. package/skills/rabetbase/guides/typescript-sdk.md +227 -0
  326. package/skills/rabetbase/knowledge/page-schema/LrSmartCreate.md +367 -0
  327. package/skills/rabetbase/knowledge/page-schema/LrSmartDetail.md +153 -0
  328. package/skills/rabetbase/knowledge/page-schema/LrSmartEcharts.md +291 -0
  329. package/skills/rabetbase/knowledge/page-schema/LrSmartFilter.md +478 -0
  330. package/skills/rabetbase/knowledge/page-schema/LrSmartJsx.md +119 -0
  331. package/skills/rabetbase/knowledge/page-schema/LrSmartStatistic.md +223 -0
  332. package/skills/rabetbase/knowledge/page-schema/LrSmartTable.md +632 -0
  333. package/skills/rabetbase/knowledge/page-schema/YtPage.md +172 -0
  334. package/skills/rabetbase/knowledge/page-schema/dataset-relations.md +126 -0
  335. package/skills/rabetbase/knowledge/page-schema/external-resources-usage.md +232 -0
  336. package/skills/rabetbase/knowledge/page-schema/field-components.md +312 -0
  337. package/skills/rabetbase/knowledge/page-schema/syntax-reference.md +278 -0
  338. package/skills/rabetbase/knowledge/react-page/components.md +225 -0
  339. package/skills/rabetbase/knowledge/react-page/generation-standards.md +385 -0
  340. package/skills/rabetbase/references/rabetbase-api-list.md +58 -0
  341. package/skills/rabetbase/references/rabetbase-api-pull.md +82 -0
  342. package/skills/rabetbase/references/rabetbase-app-config.md +95 -0
  343. package/skills/rabetbase/references/rabetbase-app-list.md +79 -0
  344. package/skills/rabetbase/references/rabetbase-app-members-list.md +64 -0
  345. package/skills/rabetbase/references/rabetbase-auth-login.md +53 -0
  346. package/skills/rabetbase/references/rabetbase-auth-logout.md +29 -0
  347. package/skills/rabetbase/references/rabetbase-bff-create.md +59 -0
  348. package/skills/rabetbase/references/rabetbase-bff-delete.md +42 -0
  349. package/skills/rabetbase/references/rabetbase-bff-detail.md +38 -0
  350. package/skills/rabetbase/references/rabetbase-bff-list.md +61 -0
  351. package/skills/rabetbase/references/rabetbase-bff-pull.md +42 -0
  352. package/skills/rabetbase/references/rabetbase-bff-push.md +65 -0
  353. package/skills/rabetbase/references/rabetbase-bff-save.md +63 -0
  354. package/skills/rabetbase/references/rabetbase-bff-status.md +37 -0
  355. package/skills/rabetbase/references/rabetbase-cli-skill-install.md +42 -0
  356. package/skills/rabetbase/references/rabetbase-codegen-sdk.md +35 -0
  357. package/skills/rabetbase/references/rabetbase-codegen-sql.md +33 -0
  358. package/skills/rabetbase/references/rabetbase-config.md +296 -0
  359. package/skills/rabetbase/references/rabetbase-dataset-business-group-update.md +84 -0
  360. package/skills/rabetbase/references/rabetbase-dataset-delete.md +54 -0
  361. package/skills/rabetbase/references/rabetbase-dataset-detail.md +106 -0
  362. package/skills/rabetbase/references/rabetbase-dataset-extend-update.md +70 -0
  363. package/skills/rabetbase/references/rabetbase-dataset-field-update.md +117 -0
  364. package/skills/rabetbase/references/rabetbase-dataset-generate.md +206 -0
  365. package/skills/rabetbase/references/rabetbase-dataset-list.md +42 -0
  366. package/skills/rabetbase/references/rabetbase-dataset-operations.md +34 -0
  367. package/skills/rabetbase/references/rabetbase-dataset-relation-audit.md +63 -0
  368. package/skills/rabetbase/references/rabetbase-dataset-relation-mutations.md +141 -0
  369. package/skills/rabetbase/references/rabetbase-dataset-relations.md +71 -0
  370. package/skills/rabetbase/references/rabetbase-dataset-rename.md +107 -0
  371. package/skills/rabetbase/references/rabetbase-dataset-restore.md +54 -0
  372. package/skills/rabetbase/references/rabetbase-db-analyze.md +135 -0
  373. package/skills/rabetbase/references/rabetbase-db-create.md +54 -0
  374. package/skills/rabetbase/references/rabetbase-db-delete.md +26 -0
  375. package/skills/rabetbase/references/rabetbase-db-detail.md +27 -0
  376. package/skills/rabetbase/references/rabetbase-db-diff.md +57 -0
  377. package/skills/rabetbase/references/rabetbase-db-list.md +37 -0
  378. package/skills/rabetbase/references/rabetbase-db-tables.md +25 -0
  379. package/skills/rabetbase/references/rabetbase-db-test.md +29 -0
  380. package/skills/rabetbase/references/rabetbase-db-update.md +29 -0
  381. package/skills/rabetbase/references/rabetbase-doctor.md +62 -0
  382. package/skills/rabetbase/references/rabetbase-file.md +35 -0
  383. package/skills/rabetbase/references/rabetbase-init.md +70 -0
  384. package/skills/rabetbase/references/rabetbase-issue-report.md +132 -0
  385. package/skills/rabetbase/references/rabetbase-kb.md +62 -0
  386. package/skills/rabetbase/references/rabetbase-menu-asset-update.md +135 -0
  387. package/skills/rabetbase/references/rabetbase-menu-delete.md +54 -0
  388. package/skills/rabetbase/references/rabetbase-menu-external-link-create.md +63 -0
  389. package/skills/rabetbase/references/rabetbase-menu-external-link-update.md +74 -0
  390. package/skills/rabetbase/references/rabetbase-menu-group-create.md +33 -0
  391. package/skills/rabetbase/references/rabetbase-menu-group-update.md +38 -0
  392. package/skills/rabetbase/references/rabetbase-menu-list.md +144 -0
  393. package/skills/rabetbase/references/rabetbase-menu-move.md +54 -0
  394. package/skills/rabetbase/references/rabetbase-menu-regroup-start.md +45 -0
  395. package/skills/rabetbase/references/rabetbase-menu-rename.md +48 -0
  396. package/skills/rabetbase/references/rabetbase-menu-sync.md +60 -0
  397. package/skills/rabetbase/references/rabetbase-notification-config-list.md +80 -0
  398. package/skills/rabetbase/references/rabetbase-ocr.md +86 -0
  399. package/skills/rabetbase/references/rabetbase-page-generate-start.md +32 -0
  400. package/skills/rabetbase/references/rabetbase-page-generate-status.md +32 -0
  401. package/skills/rabetbase/references/rabetbase-page-pull.md +47 -0
  402. package/skills/rabetbase/references/rabetbase-page-push.md +45 -0
  403. package/skills/rabetbase/references/rabetbase-page-react-create.md +29 -0
  404. package/skills/rabetbase/references/rabetbase-page-react-detail.md +26 -0
  405. package/skills/rabetbase/references/rabetbase-page-react-list.md +23 -0
  406. package/skills/rabetbase/references/rabetbase-page-react-publish.md +23 -0
  407. package/skills/rabetbase/references/rabetbase-page-react-update.md +24 -0
  408. package/skills/rabetbase/references/rabetbase-page-relation-binding.md +72 -0
  409. package/skills/rabetbase/references/rabetbase-page-restore.md +45 -0
  410. package/skills/rabetbase/references/rabetbase-page-sync.md +36 -0
  411. package/skills/rabetbase/references/rabetbase-permit-page-set.md +69 -0
  412. package/skills/rabetbase/references/rabetbase-permit-role-apis-set.md +53 -0
  413. package/skills/rabetbase/references/rabetbase-permit-role-menus-set.md +57 -0
  414. package/skills/rabetbase/references/rabetbase-project-create.md +46 -0
  415. package/skills/rabetbase/references/rabetbase-project-upgrade.md +57 -0
  416. package/skills/rabetbase/references/rabetbase-role-list.md +68 -0
  417. package/skills/rabetbase/references/rabetbase-role-user-add.md +54 -0
  418. package/skills/rabetbase/references/rabetbase-role-user-resolve.md +27 -0
  419. package/skills/rabetbase/references/rabetbase-run.md +53 -0
  420. package/skills/rabetbase/references/rabetbase-schema.md +22 -0
  421. package/skills/rabetbase/references/rabetbase-sql-create.md +41 -0
  422. package/skills/rabetbase/references/rabetbase-sql-delete.md +37 -0
  423. package/skills/rabetbase/references/rabetbase-sql-detail.md +32 -0
  424. package/skills/rabetbase/references/rabetbase-sql-exec.md +34 -0
  425. package/skills/rabetbase/references/rabetbase-sql-list.md +54 -0
  426. package/skills/rabetbase/references/rabetbase-sql-pull.md +54 -0
  427. package/skills/rabetbase/references/rabetbase-sql-push.md +46 -0
  428. package/skills/rabetbase/references/rabetbase-sql-status.md +39 -0
  429. package/skills/rabetbase/references/rabetbase-sql-validate.md +73 -0
  430. package/skills/rabetbase/references/rabetbase-standard-page-status.md +31 -0
  431. package/skills/rabetbase/references/rabetbase-task-status.md +40 -0
  432. package/skills/rabetbase/references/rabetbase-tenant-members-list.md +69 -0
  433. package/skills/rabetbase/references/rabetbase-update.md +56 -0
  434. package/skills/rabetbase/references/rabetbase-user-account.md +45 -0
  435. package/skills/rabetbase/references/rabetbase-workspace.md +60 -0
  436. package/skills/rabetbase.manifest.json +137 -0
@@ -1 +1 @@
1
- function a235_0x32fc(_0x431bb6,_0x9e0392){_0x431bb6=_0x431bb6-0x135;const _0x15cf14=a235_0x15cf();let _0x32fc86=_0x15cf14[_0x431bb6];return _0x32fc86;}(function(_0x142cee,_0x6c33a1){const _0x214cbf=a235_0x32fc,_0x4de543=_0x142cee();while(!![]){try{const _0x3beb26=-parseInt(_0x214cbf(0x14e))/0x1+parseInt(_0x214cbf(0x13b))/0x2+-parseInt(_0x214cbf(0x135))/0x3+-parseInt(_0x214cbf(0x14a))/0x4*(parseInt(_0x214cbf(0x13f))/0x5)+parseInt(_0x214cbf(0x143))/0x6*(-parseInt(_0x214cbf(0x14c))/0x7)+parseInt(_0x214cbf(0x147))/0x8+parseInt(_0x214cbf(0x137))/0x9;if(_0x3beb26===_0x6c33a1)break;else _0x4de543['push'](_0x4de543['shift']());}catch(_0x462686){_0x4de543['push'](_0x4de543['shift']());}}}(a235_0x15cf,0x5ec6c));function a235_0x15cf(){const _0xd0d60c=['18KMhJfw','json','command','error','4830376yXijeP','validation','hint','8EhVOic','message','1538467utuHEH','code','62964KaLHDA','format','stdout','1478910RYvaxM','update','7038234hBQygJ','risk','stringify','pretty','1029668oTboqx','endsWith','jq:\x20','write','742940aVPGkV','url','data','_notice'];a235_0x15cf=function(){return _0xd0d60c;};return a235_0x15cf();}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(_0x29268e,_0x171f68){const _0x36ca75=a235_0x32fc,_0x87987b=_0x29268e[_0x36ca75(0x142)],{_notice:_0x26fa0e,..._0x5f5650}=_0x29268e;void _0x26fa0e,baseFormatOutput(_0x5f5650,_0x171f68),_0x171f68['format']===_0x36ca75(0x13a)&&printPrettyNotice(_0x87987b);}export function formatCliError(_0x2f347f,_0x42cbec){const _0x22044b=a235_0x32fc;if(_0x42cbec['format']===_0x22044b(0x13a))return![];const _0x13c961=_0x2f347f[_0x22044b(0x141)],_0x127fd7={'ok':![],'command':_0x42cbec[_0x22044b(0x145)],'risk':_0x42cbec[_0x22044b(0x138)],'data':_0x13c961??null,'error':{'code':_0x2f347f['code'],'message':_0x2f347f['message'],..._0x2f347f[_0x22044b(0x149)]?{'hint':_0x2f347f['hint']}:{}}},_0x5048c4=_0x42cbec[_0x22044b(0x14f)]===_0x22044b(0x144)?JSON[_0x22044b(0x139)](_0x127fd7,null,0x2):JSON[_0x22044b(0x139)](_0x127fd7);let _0x2c106c=_0x5048c4;if(_0x42cbec['jqFilter']?.['trim']())try{_0x2c106c=applyJqFilter(_0x5048c4,_0x42cbec['jqFilter']);}catch(_0x3df6d4){const _0x4c93c2=_0x3df6d4 instanceof CliError?_0x3df6d4:CliErrors[_0x22044b(0x148)](_0x22044b(0x13d)+(_0x3df6d4 instanceof Error?_0x3df6d4[_0x22044b(0x14b)]:String(_0x3df6d4))),_0x4804a3={..._0x127fd7,'error':{'code':_0x4c93c2[_0x22044b(0x14d)],'message':_0x4c93c2['message'],..._0x4c93c2[_0x22044b(0x149)]?{'hint':_0x4c93c2[_0x22044b(0x149)]}:{},'cause':_0x127fd7[_0x22044b(0x146)]}};_0x2c106c=_0x42cbec[_0x22044b(0x14f)]===_0x22044b(0x144)?JSON['stringify'](_0x4804a3,null,0x2):JSON[_0x22044b(0x139)](_0x4804a3);}return process[_0x22044b(0x150)][_0x22044b(0x13e)](_0x2c106c[_0x22044b(0x13c)]('\x0a')?_0x2c106c:_0x2c106c+'\x0a'),!![];}function printPrettyNotice(_0x47b34a){const _0xf87335=a235_0x32fc;if(!_0x47b34a?.[_0xf87335(0x136)])return;console[_0xf87335(0x146)](_0x47b34a[_0xf87335(0x136)][_0xf87335(0x14b)]+'\x20('+_0x47b34a[_0xf87335(0x136)][_0xf87335(0x140)]+')');}
1
+ function a245_0x2a3f(_0x5120f9,_0xbcc0bb){_0x5120f9=_0x5120f9-0xe0;const _0x4fec7a=a245_0x4fec();let _0x2a3f5e=_0x4fec7a[_0x5120f9];return _0x2a3f5e;}(function(_0x4606f7,_0xb2cd06){const _0x5276ad=a245_0x2a3f,_0x5901de=_0x4606f7();while(!![]){try{const _0x1c63e6=-parseInt(_0x5276ad(0xf8))/0x1+parseInt(_0x5276ad(0xec))/0x2*(parseInt(_0x5276ad(0xe3))/0x3)+parseInt(_0x5276ad(0xf7))/0x4+parseInt(_0x5276ad(0xea))/0x5+parseInt(_0x5276ad(0xf5))/0x6+-parseInt(_0x5276ad(0xe4))/0x7+-parseInt(_0x5276ad(0xf6))/0x8;if(_0x1c63e6===_0xb2cd06)break;else _0x5901de['push'](_0x5901de['shift']());}catch(_0xab02c3){_0x5901de['push'](_0x5901de['shift']());}}}(a245_0x4fec,0xc134c));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';function a245_0x4fec(){const _0x3b513e=['update','jqFilter','write','stringify','7222810UToeXi','_notice','22UPOYPN','validation','stdout','format','message','hint','jq:\x20','error','url','7456866pghMPB','4145792QVQPSU','481568cgTGtE','1228703IhogNF','code','json','endsWith','313959mRznhw','9944543HLWSRo','trim'];a245_0x4fec=function(){return _0x3b513e;};return a245_0x4fec();}import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x13c2f5,_0x45b3bd){const _0x42099e=a245_0x2a3f,_0x4c5b54=_0x13c2f5[_0x42099e(0xeb)],{_notice:_0x114faa,..._0xe5b2bb}=_0x13c2f5;void _0x114faa,baseFormatOutput(_0xe5b2bb,_0x45b3bd),_0x45b3bd[_0x42099e(0xef)]==='pretty'&&printPrettyNotice(_0x4c5b54);}export function formatCliError(_0x157569,_0xa1f01f){const _0x3ee0df=a245_0x2a3f;if(_0xa1f01f[_0x3ee0df(0xef)]==='pretty')return![];const _0x781bc4=_0x157569['data'],_0x215cdd={'ok':![],'command':_0xa1f01f['command'],'risk':_0xa1f01f['risk'],'data':_0x781bc4??null,'error':{'code':_0x157569[_0x3ee0df(0xe0)],'message':_0x157569[_0x3ee0df(0xf0)],..._0x157569[_0x3ee0df(0xf1)]?{'hint':_0x157569[_0x3ee0df(0xf1)]}:{}}},_0x4f52c4=_0xa1f01f[_0x3ee0df(0xef)]===_0x3ee0df(0xe1)?JSON[_0x3ee0df(0xe9)](_0x215cdd,null,0x2):JSON[_0x3ee0df(0xe9)](_0x215cdd);let _0x3b083d=_0x4f52c4;if(_0xa1f01f[_0x3ee0df(0xe7)]?.[_0x3ee0df(0xe5)]())try{_0x3b083d=applyJqFilter(_0x4f52c4,_0xa1f01f['jqFilter']);}catch(_0x3f843e){const _0x558079=_0x3f843e instanceof CliError?_0x3f843e:CliErrors[_0x3ee0df(0xed)](_0x3ee0df(0xf2)+(_0x3f843e instanceof Error?_0x3f843e[_0x3ee0df(0xf0)]:String(_0x3f843e))),_0x3b27f9={..._0x215cdd,'error':{'code':_0x558079[_0x3ee0df(0xe0)],'message':_0x558079[_0x3ee0df(0xf0)],..._0x558079['hint']?{'hint':_0x558079[_0x3ee0df(0xf1)]}:{},'cause':_0x215cdd['error']}};_0x3b083d=_0xa1f01f['format']===_0x3ee0df(0xe1)?JSON[_0x3ee0df(0xe9)](_0x3b27f9,null,0x2):JSON[_0x3ee0df(0xe9)](_0x3b27f9);}return process[_0x3ee0df(0xee)][_0x3ee0df(0xe8)](_0x3b083d[_0x3ee0df(0xe2)]('\x0a')?_0x3b083d:_0x3b083d+'\x0a'),!![];}function printPrettyNotice(_0x15bde4){const _0x25ee5f=a245_0x2a3f;if(!_0x15bde4?.[_0x25ee5f(0xe6)])return;console[_0x25ee5f(0xf3)](_0x15bde4['update'][_0x25ee5f(0xf0)]+'\x20('+_0x15bde4[_0x25ee5f(0xe6)][_0x25ee5f(0xf4)]+')');}
@@ -1 +1 @@
1
- function a236_0x23a0(_0x28b8de,_0x4dc4f8){_0x28b8de=_0x28b8de-0x108;var _0x33a8ad=a236_0x33a8();var _0x23a04a=_0x33a8ad[_0x28b8de];return _0x23a04a;}(function(_0x421778,_0x5ec3ea){var _0x15f5ca=a236_0x23a0,_0xabd6c4=_0x421778();while(!![]){try{var _0x14b9ed=parseInt(_0x15f5ca(0x108))/0x1+-parseInt(_0x15f5ca(0x10a))/0x2*(-parseInt(_0x15f5ca(0x111))/0x3)+-parseInt(_0x15f5ca(0x10d))/0x4+parseInt(_0x15f5ca(0x110))/0x5*(parseInt(_0x15f5ca(0x10e))/0x6)+parseInt(_0x15f5ca(0x10c))/0x7+parseInt(_0x15f5ca(0x10b))/0x8*(parseInt(_0x15f5ca(0x109))/0x9)+-parseInt(_0x15f5ca(0x10f))/0xa;if(_0x14b9ed===_0x5ec3ea)break;else _0xabd6c4['push'](_0xabd6c4['shift']());}catch(_0x1cab06){_0xabd6c4['push'](_0xabd6c4['shift']());}}}(a236_0x33a8,0xae8e0));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a236_0x33a8(){var _0x45df74=['4984068lUNMnC','30RpAbiV','757280NXtDNB','53855JTHIKy','22425fmuNNA','225389DBCZSm','2856177hKFwpX','92kkFsBr','16yBojGV','5452447rGajcX'];a236_0x33a8=function(){return _0x45df74;};return a236_0x33a8();}
1
+ function a246_0x5289(){var _0x24aae2=['1115cHoKtt','5740590rlevAq','568381rcCCNW','1063000JxAcFV','952188SXbvhy','27kRFNIC','5514uRWEzI','2096892hUVDcz','460472YUDcUd','9cxSSyz'];a246_0x5289=function(){return _0x24aae2;};return a246_0x5289();}(function(_0x35d406,_0x185675){var _0x5b2e53=a246_0xeb99,_0x2a5b06=_0x35d406();while(!![]){try{var _0x2a1e39=parseInt(_0x5b2e53(0x180))/0x1+parseInt(_0x5b2e53(0x17c))/0x2*(-parseInt(_0x5b2e53(0x17d))/0x3)+parseInt(_0x5b2e53(0x182))/0x4+-parseInt(_0x5b2e53(0x17e))/0x5*(parseInt(_0x5b2e53(0x184))/0x6)+parseInt(_0x5b2e53(0x185))/0x7+parseInt(_0x5b2e53(0x181))/0x8*(-parseInt(_0x5b2e53(0x183))/0x9)+parseInt(_0x5b2e53(0x17f))/0xa;if(_0x2a1e39===_0x185675)break;else _0x2a5b06['push'](_0x2a5b06['shift']());}catch(_0x1da4a9){_0x2a5b06['push'](_0x2a5b06['shift']());}}}(a246_0x5289,0x5e2ed));function a246_0xeb99(_0x306f38,_0x481e5d){_0x306f38=_0x306f38-0x17c;var _0x528956=a246_0x5289();var _0xeb9940=_0x528956[_0x306f38];return _0xeb9940;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x55032e,_0xd20800){const _0x488aa6=a237_0x5eb4,_0x4c0705=_0x55032e();while(!![]){try{const _0x22a426=-parseInt(_0x488aa6(0x134))/0x1*(-parseInt(_0x488aa6(0x138))/0x2)+-parseInt(_0x488aa6(0x12b))/0x3+parseInt(_0x488aa6(0x127))/0x4+-parseInt(_0x488aa6(0x135))/0x5+parseInt(_0x488aa6(0x139))/0x6*(parseInt(_0x488aa6(0x129))/0x7)+-parseInt(_0x488aa6(0x123))/0x8*(parseInt(_0x488aa6(0x12a))/0x9)+parseInt(_0x488aa6(0x130))/0xa;if(_0x22a426===_0xd20800)break;else _0x4c0705['push'](_0x4c0705['shift']());}catch(_0x348d48){_0x4c0705['push'](_0x4c0705['shift']());}}}(a237_0x52eb,0x6db1e));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a237_0x52eb(){const _0x15301b=['flags','alias','length','13574hWGIwG','2590635OAshRu','join','code','62juzBdO','1035948DYjRZB','string','type','1136LKjXMi','Unknown\x20alias\x20\x22','validation','.\x20Run\x20`','337184vYyTUz','`\x20requires\x20either\x20--code\x20or\x20--alias.','7dagoUH','7047zLpmRm','1003710CCgjQd','Available\x20aliases:\x20','name','some','\x20api\x20pull`\x20first.','7354450TuYIjk'];a237_0x52eb=function(){return _0x15301b;};return a237_0x52eb();}function a237_0x5eb4(_0x62ddc6,_0x1ee83f){_0x62ddc6=_0x62ddc6-0x122;const _0x52eba7=a237_0x52eb();let _0x5eb401=_0x52eba7[_0x62ddc6];return _0x5eb401;}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x2cb057,_0x391a29,_0x279719,_0x402ae4){const _0x7f6ff8=a237_0x5eb4,_0x513f35=_0x2cb057[_0x7f6ff8(0x131)][_0x7f6ff8(0x12e)](_0x55274c=>_0x55274c[_0x7f6ff8(0x12d)]===_0x7f6ff8(0x137)&&_0x55274c[_0x7f6ff8(0x122)]===_0x7f6ff8(0x13a)),_0x4c5cc7=_0x2cb057['flags'][_0x7f6ff8(0x12e)](_0x2c0924=>_0x2c0924['name']===_0x7f6ff8(0x132)&&_0x2c0924[_0x7f6ff8(0x122)]===_0x7f6ff8(0x13a));if(!_0x513f35||!_0x4c5cc7)return;const _0x405706=_0x391a29['code']?String(_0x391a29['code']):'',_0x518894=_0x391a29[_0x7f6ff8(0x132)]?String(_0x391a29['alias']):'';if(!_0x405706&&!_0x518894)throw CliErrors[_0x7f6ff8(0x125)]('`'+_0x402ae4+_0x7f6ff8(0x128));if(_0x518894&&!_0x405706){const _0x68f1db=resolveAlias(_0x279719,_0x518894);if(!_0x68f1db){const _0x2e5414=listAliases(_0x279719)['map'](_0x6e4069=>_0x6e4069[_0x7f6ff8(0x132)]),_0x3ac714=_0x2e5414[_0x7f6ff8(0x133)]?_0x7f6ff8(0x12c)+_0x2e5414[_0x7f6ff8(0x136)](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x279719+_0x7f6ff8(0x126)+CLI_BIN_NAME+_0x7f6ff8(0x12f);throw CliErrors[_0x7f6ff8(0x125)](_0x7f6ff8(0x124)+_0x518894+'\x22.\x20'+_0x3ac714);}_0x391a29['code']=_0x68f1db;}}
1
+ (function(_0x3bffcd,_0x159c27){const _0x2b99f2=a247_0x31e8,_0x3d2183=_0x3bffcd();while(!![]){try{const _0x328553=-parseInt(_0x2b99f2(0x1d4))/0x1+-parseInt(_0x2b99f2(0x1d9))/0x2*(parseInt(_0x2b99f2(0x1cd))/0x3)+parseInt(_0x2b99f2(0x1dc))/0x4*(parseInt(_0x2b99f2(0x1d7))/0x5)+parseInt(_0x2b99f2(0x1d8))/0x6*(parseInt(_0x2b99f2(0x1c7))/0x7)+-parseInt(_0x2b99f2(0x1c8))/0x8+-parseInt(_0x2b99f2(0x1c9))/0x9*(parseInt(_0x2b99f2(0x1dd))/0xa)+parseInt(_0x2b99f2(0x1d0))/0xb;if(_0x328553===_0x159c27)break;else _0x3d2183['push'](_0x3d2183['shift']());}catch(_0xdc7dde){_0x3d2183['push'](_0x3d2183['shift']());}}}(a247_0x4ce4,0xa7efe));function a247_0x4ce4(){const _0x385266=['112049gcANvv','5882800QKDrys','6442893WSowZg','Available\x20aliases:\x20','type','alias','111ADbVDq','string','some','24488442TyMTgN','flags','validation','length','550069BhLxij','`\x20requires\x20either\x20--code\x20or\x20--alias.','map','415oKfzfl','102xlbRUJ','59948epzRXo','name','Unknown\x20alias\x20\x22','62644GyNVaf','10gPmojm','code'];a247_0x4ce4=function(){return _0x385266;};return a247_0x4ce4();}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a247_0x31e8(_0x53deeb,_0x43296f){_0x53deeb=_0x53deeb-0x1c6;const _0x4ce445=a247_0x4ce4();let _0x31e89d=_0x4ce445[_0x53deeb];return _0x31e89d;}export function resolveAliasToCode(_0x3835d0,_0x403b5e,_0x51b4f7,_0x2b0549){const _0x329b33=a247_0x31e8,_0x178243=_0x3835d0[_0x329b33(0x1d1)][_0x329b33(0x1cf)](_0x2990dd=>_0x2990dd[_0x329b33(0x1da)]===_0x329b33(0x1c6)&&_0x2990dd[_0x329b33(0x1cb)]===_0x329b33(0x1ce)),_0x35689f=_0x3835d0[_0x329b33(0x1d1)]['some'](_0x4619b5=>_0x4619b5[_0x329b33(0x1da)]==='alias'&&_0x4619b5[_0x329b33(0x1cb)]===_0x329b33(0x1ce));if(!_0x178243||!_0x35689f)return;const _0x3758fb=_0x403b5e[_0x329b33(0x1c6)]?String(_0x403b5e[_0x329b33(0x1c6)]):'',_0x3a633b=_0x403b5e['alias']?String(_0x403b5e[_0x329b33(0x1cc)]):'';if(!_0x3758fb&&!_0x3a633b)throw CliErrors[_0x329b33(0x1d2)]('`'+_0x2b0549+_0x329b33(0x1d5));if(_0x3a633b&&!_0x3758fb){const _0x366138=resolveAlias(_0x51b4f7,_0x3a633b);if(!_0x366138){const _0x182311=listAliases(_0x51b4f7)[_0x329b33(0x1d6)](_0x5611d1=>_0x5611d1[_0x329b33(0x1cc)]),_0x318910=_0x182311[_0x329b33(0x1d3)]?_0x329b33(0x1ca)+_0x182311['join'](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x51b4f7+'.\x20Run\x20`'+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x329b33(0x1d2)](_0x329b33(0x1db)+_0x3a633b+'\x22.\x20'+_0x318910);}_0x403b5e['code']=_0x366138;}}
@@ -1 +1 @@
1
- (function(_0x11a7e4,_0x224342){const _0x2ccfff=a238_0x3dc9,_0x1c5142=_0x11a7e4();while(!![]){try{const _0x328156=parseInt(_0x2ccfff(0x146))/0x1+parseInt(_0x2ccfff(0x117))/0x2*(parseInt(_0x2ccfff(0x141))/0x3)+parseInt(_0x2ccfff(0x143))/0x4*(-parseInt(_0x2ccfff(0x145))/0x5)+parseInt(_0x2ccfff(0x130))/0x6*(-parseInt(_0x2ccfff(0x123))/0x7)+-parseInt(_0x2ccfff(0x14f))/0x8+parseInt(_0x2ccfff(0x15a))/0x9*(parseInt(_0x2ccfff(0x127))/0xa)+-parseInt(_0x2ccfff(0x11f))/0xb;if(_0x328156===_0x224342)break;else _0x1c5142['push'](_0x1c5142['shift']());}catch(_0x97556d){_0x1c5142['push'](_0x1c5142['shift']());}}}(a238_0x5004,0xe992c));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';function a238_0x5004(){const _0x4dc1bb=['hint','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','5222bnUBXK','object','resolve','Current\x20resolved\x20appcode\x20is\x20\x22','hasFormat','Set\x20appcode\x20via\x20`','appCode','replace','3081474MHdbDU','update','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','has','1330574rhJGhT','isNonInteractive','pretty','High-risk\x20operation\x20`','3922260nunSzE','command','appcode','mergedCli','defaultApp','format','all','_notice','riskLevel','24nckGiI','some','configMissing','RABETBASE_APPCODE','production','name','value','catch','\x20\x20\x20Continue?\x20[y/N]\x20','../core/api-client.js','../constant/env.js','verbose','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','cancelled','requiresAppCode','explicitAppName','resolveAppCode','723mpLxDB','cookie','566096zKxSeO','confirmHighRisk','10VaHMHA','1447892QyKnYY','selectedAppName','filter','doctor','toUpperCase','meowKey','trim','rejectedFlags','authRequired','7788760iCqXwH','pageSize','defaultVerbose','string','resolveCookie','service','required','validation','rawFlags','../constant/domain.js','execute','27hCCoEm','none','apiDir','LOVRABET_APPCODE','formatOutput'];a238_0x5004=function(){return _0x4dc1bb;};return a238_0x5004();}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_0x580684}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x18400e){const _0x29bb9f=a238_0x3dc9;return typeof _0x18400e===_0x29bb9f(0x152)&&_0x18400e[_0x29bb9f(0x14c)]()?_0x18400e[_0x29bb9f(0x14c)]():undefined;}function resolveEnvAppCode(){const _0x261f1a=a238_0x3dc9,_0x38735e=stringFlag(process.env.RABETBASE_APPCODE);if(_0x38735e)return{'name':_0x261f1a(0x133),'value':_0x38735e};const _0x48f9b8=stringFlag(process.env.LOVRABET_APPCODE);if(_0x48f9b8)return{'name':_0x261f1a(0x15d),'value':_0x48f9b8};return undefined;}function hasExplicitAppCode(_0x48e00a,_0x2f91df){const _0xcd340c=a238_0x3dc9;return!!(stringFlag(_0x48e00a['appcode'])||stringFlag(_0x2f91df[_0xcd340c(0x129)]));}function assertEnvAppCodeNotIgnored(_0x31f1f5,_0x593f13,_0x314423){const _0x59e22d=a238_0x3dc9;if(!_0x593f13||_0x314423||_0x31f1f5===_0x593f13[_0x59e22d(0x136)])return;const _0x54fd14=_0x31f1f5?_0x59e22d(0x11a)+_0x31f1f5+'\x22.':_0x59e22d(0x121);throw CliErrors[_0x59e22d(0x156)](_0x593f13['name']+'='+_0x593f13[_0x59e22d(0x136)]+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x54fd14+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x593f13[_0x59e22d(0x135)]+'\x22.'));}export function createPipelineEnv(_0x5c498f,_0x578e84,_0x1d95e2=[]){const _0x1c3646=a238_0x3dc9;return{'rawFlags':_0x578e84,'args':_0x1d95e2,'resolveAppCode':()=>_0x5c498f[_0x1c3646(0x11d)],'resolveCookie':()=>_0x5c498f[_0x1c3646(0x142)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a238_0x580684(_0x578e84),'defaultFormat':_0x5c498f[_0x1c3646(0x12c)],'defaultPageSize':_0x5c498f[_0x1c3646(0x150)],'defaultVerbose':_0x5c498f[_0x1c3646(0x13b)],'apiDir':_0x5c498f[_0x1c3646(0x15c)],'riskLevel':_0x5c498f[_0x1c3646(0x12f)],'selectedAppName':_0x5c498f[_0x1c3646(0x13f)],'mergedCli':{'defaultApp':_0x5c498f[_0x1c3646(0x12b)],'currentApp':_0x5c498f['currentApp'],'appCode':_0x5c498f[_0x1c3646(0x11d)],'apps':_0x5c498f['apps']}};}export function createRabetbaseRunnerAdapter(_0xd28cf1={}){const _0x4e7ac7=a238_0x3dc9;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x4e7ac7(0x148)](_0x522152=>PIPELINE_FLAG_NAMES[_0x4e7ac7(0x122)](_0x522152['name']))['map'](({name:_0x3a149d,type:_0x101cb2,description:_0x3cabdb})=>({'name':_0x3a149d,'type':_0x101cb2,'description':_0x3cabdb})),'formatOutput':_0xd28cf1[_0x4e7ac7(0x114)]??formatOutput,'getCommandLabel'(_0x4d1578){const _0x4a80f7=_0x4e7ac7;return CLI_BIN_NAME+'\x20'+_0x4d1578[_0x4a80f7(0x154)]+'\x20'+_0x4d1578[_0x4a80f7(0x128)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x126df2){const _0x531f29=_0x4e7ac7;return CliErrors[_0x531f29(0x156)](_0x126df2);}},async 'prepare'(_0x1037a6,_0x48b088,_0x1e6f98,_0x80ed19){const _0x5bf69f=_0x4e7ac7,_0x4c1b15=_0x48b088[_0x5bf69f(0x15c)]||DEFAULT_API_DIR;resolveAliasToCode(_0x1037a6,_0x1e6f98,_0x4c1b15,_0x80ed19);const _0x179873=resolveCommandAuthMode(_0x1037a6);let _0x575aeb='';if(_0x179873!==_0x5bf69f(0x15b)){_0x575aeb=_0x48b088[_0x5bf69f(0x153)]()||'';if(!_0x575aeb){if(_0x179873===_0x5bf69f(0x155))throw CliErrors[_0x5bf69f(0x14e)]();}else{const {setActiveCookie:_0x4d1b46}=await import(_0x5bf69f(0x139));_0x4d1b46(_0x575aeb);}}const _0x338a88=_0x48b088[_0x5bf69f(0x140)]()??'';if(_0x1037a6[_0x5bf69f(0x13e)]!==![]){assertEnvAppCodeNotIgnored(_0x338a88,resolveEnvAppCode(),hasExplicitAppCode(_0x1e6f98,_0x48b088[_0x5bf69f(0x157)]));if(!_0x338a88)throw CliErrors[_0x5bf69f(0x132)](_0x5bf69f(0x11c)+CLI_BIN_NAME+_0x5bf69f(0x116));}return{'defaults':{'booleans':{'verbose':_0x48b088[_0x5bf69f(0x151)]},'numbers':{'pagesize':_0x48b088['defaultPageSize']}},'extras':{'appCode':_0x338a88,'cookie':_0x575aeb,'apiDomain':_0x48b088['resolveApiDomain'](),'apiDir':_0x4c1b15,'selectedAppName':_0x48b088[_0x5bf69f(0x147)],'mergedCli':_0x48b088[_0x5bf69f(0x12a)]}};},'confirmHighRisk':_0xd28cf1[_0x4e7ac7(0x144)]??(async({env:_0x1547c5,commandLabel:_0x2c1079})=>{const _0x3ee40c=_0x4e7ac7;if(_0x1547c5[_0x3ee40c(0x124)])throw CliErrors[_0x3ee40c(0x156)](_0x3ee40c(0x126)+_0x2c1079+_0x3ee40c(0x13c));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x2c1079,_0x3ee40c(0x138)],'createCancelledError':_0x48b5a3=>CliErrors[_0x3ee40c(0x13d)](_0x48b5a3)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x570389=a238_0x3dc9,{clearActiveCookie:_0x5249d6}=await import(_0x570389(0x139));_0x5249d6();}function a238_0x3dc9(_0x2285d5,_0x2e29c4){_0x2285d5=_0x2285d5-0x114;const _0x500479=a238_0x5004();let _0x3dc9b5=_0x500479[_0x2285d5];return _0x3dc9b5;}export async function finalizeRabetbaseRuntimeState(){const _0xbe4ab1=a238_0x3dc9;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x5eb1a0},{initEnv:_0x108d1b}]=await Promise[_0xbe4ab1(0x12d)]([import(_0xbe4ab1(0x158)),import(_0xbe4ab1(0x13a))]);_0x5eb1a0(),_0x108d1b(_0xbe4ab1(0x134));}}export async function runCommand(_0x5e6e74,_0x7c4b59,_0x35b617=terminalRunnerAdapter){const _0x3b4e1b=a238_0x3dc9;assertRejectedFlags(_0x5e6e74,_0x7c4b59[_0x3b4e1b(0x157)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x5e6e74)?withUpdateNotice(_0x5e6e74):_0x5e6e74,_0x7c4b59,_0x35b617);}function assertRejectedFlags(_0x1c6a61,_0xad7c6b){const _0x848424=a238_0x3dc9;for(const _0x48c9fc of _0x1c6a61[_0x848424(0x14d)]??[]){const _0x38cf54=GLOBAL_FLAGS['find'](_0x59a455=>_0x59a455[_0x848424(0x135)]===_0x48c9fc[_0x848424(0x135)]),_0x3335df=new Set([_0x48c9fc['name'],toCamelCase(_0x48c9fc[_0x848424(0x135)]),_0x38cf54?.[_0x848424(0x14b)]]),_0x2509a7=[..._0x3335df][_0x848424(0x131)](_0xb38e61=>{if(!_0xb38e61)return![];const _0x31ea51=_0xad7c6b[_0xb38e61];return _0x31ea51!==undefined&&_0x31ea51!==null&&_0x31ea51!==![];});if(_0x2509a7)throw CliErrors[_0x848424(0x156)](_0x48c9fc['message'],_0x48c9fc[_0x848424(0x115)]);}}function toCamelCase(_0x1bf838){const _0x572872=a238_0x3dc9;return _0x1bf838[_0x572872(0x11e)](/-([a-z])/g,(_0x2732db,_0xbb2531)=>_0xbb2531[_0x572872(0x14a)]());}function shouldAttachUpdateNotice(_0x20bfc6){const _0x3672dc=a238_0x3dc9;if(_0x20bfc6[_0x3672dc(0x11b)]===![])return![];return![_0x3672dc(0x120),'schema',_0x3672dc(0x149)]['includes'](_0x20bfc6[_0x3672dc(0x154)]);}function withUpdateNotice(_0x2725d1){return{..._0x2725d1,async 'execute'(_0x93898){const _0x42a598=a238_0x3dc9,_0x558a92=shouldResolveUpdateNotice(_0x93898)?resolveLatestUpdateNotice()[_0x42a598(0x137)](()=>null):Promise[_0x42a598(0x119)](null),_0x134c57=await _0x2725d1[_0x42a598(0x159)](_0x93898);return attachUpdateNotice(_0x134c57,await _0x558a92);}};}function shouldResolveUpdateNotice(_0x394352){const _0x4af4df=a238_0x3dc9;return _0x394352[_0x4af4df(0x12c)]===_0x4af4df(0x125)&&!_0x394352['nonInteractive'];}function attachUpdateNotice(_0x26b96d,_0xbb88f){const _0x1f1b4f=a238_0x3dc9;if(!_0xbb88f||!_0x26b96d||typeof _0x26b96d!==_0x1f1b4f(0x118))return _0x26b96d;const _0x3c8ff5=_0x26b96d,_0x57d717=typeof _0x3c8ff5[_0x1f1b4f(0x12e)]==='object'&&_0x3c8ff5['_notice']!==null?_0x3c8ff5[_0x1f1b4f(0x12e)]:{};return{..._0x3c8ff5,'_notice':{..._0x57d717,'update':_0xbb88f}};}
1
+ (function(_0x353dac,_0x15d8c5){const _0x4dd48e=a248_0x4c5a,_0x5ef459=_0x353dac();while(!![]){try{const _0x441ee9=-parseInt(_0x4dd48e(0x1e5))/0x1*(parseInt(_0x4dd48e(0x1e3))/0x2)+parseInt(_0x4dd48e(0x1ec))/0x3+-parseInt(_0x4dd48e(0x1fd))/0x4+-parseInt(_0x4dd48e(0x1dd))/0x5*(-parseInt(_0x4dd48e(0x214))/0x6)+-parseInt(_0x4dd48e(0x1e8))/0x7+-parseInt(_0x4dd48e(0x1fc))/0x8*(parseInt(_0x4dd48e(0x1dc))/0x9)+parseInt(_0x4dd48e(0x1de))/0xa*(parseInt(_0x4dd48e(0x208))/0xb);if(_0x441ee9===_0x15d8c5)break;else _0x5ef459['push'](_0x5ef459['shift']());}catch(_0x4b27b3){_0x5ef459['push'](_0x5ef459['shift']());}}}(a248_0x46b0,0x6f5a6));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';function a248_0x4c5a(_0x39baf5,_0x3dee8f){_0x39baf5=_0x39baf5-0x1d6;const _0x46b0c0=a248_0x46b0();let _0x4c5afe=_0x46b0c0[_0x39baf5];return _0x4c5afe;}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_0x1805e2}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';function a248_0x46b0(){const _0x4923af=['trim','value','all','includes','resolve','resolveApiDomain','filter','11krzLIH','authRequired','rejectedFlags','message','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','object','../core/api-client.js','../constant/env.js','pretty','schema','production','toUpperCase','35988RDdhhB','appCode','update','defaultPageSize','Set\x20appcode\x20via\x20`','configMissing','execute','defaultVerbose','apiDir','LOVRABET_APPCODE','string','RABETBASE_APPCODE','confirmHighRisk','apps','4220253fTDPCV','165XCqlKA','11913390trcGZC','cookie','formatOutput','validation','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','147738mESxnr','Current\x20resolved\x20appcode\x20is\x20\x22','5rOsfVL','_notice','resolveAppCode','1740123SLakrW','selectedAppName','replace','doctor','1142640wvYbWB','nonInteractive','find','format','required','rawFlags','appcode','has','service','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','explicitAppName','none','resolveCookie','some','command','meowKey','8jyLnqn','908800Yoxetr','catch','isNonInteractive','name'];a248_0x46b0=function(){return _0x4923af;};return a248_0x46b0();}import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x1725dc){const _0x4574e6=a248_0x4c5a;return typeof _0x1725dc===_0x4574e6(0x1d8)&&_0x1725dc[_0x4574e6(0x201)]()?_0x1725dc[_0x4574e6(0x201)]():undefined;}function resolveEnvAppCode(){const _0x5a044a=a248_0x4c5a,_0x29c77c=stringFlag(process.env.RABETBASE_APPCODE);if(_0x29c77c)return{'name':_0x5a044a(0x1d9),'value':_0x29c77c};const _0x57f9b2=stringFlag(process.env.LOVRABET_APPCODE);if(_0x57f9b2)return{'name':_0x5a044a(0x1d7),'value':_0x57f9b2};return undefined;}function hasExplicitAppCode(_0x5b5c0e,_0x450a18){const _0x1b43f9=a248_0x4c5a;return!!(stringFlag(_0x5b5c0e['appcode'])||stringFlag(_0x450a18[_0x1b43f9(0x1f2)]));}function assertEnvAppCodeNotIgnored(_0x3e3dff,_0x89f4c5,_0x34ed73){const _0x21c99b=a248_0x4c5a;if(!_0x89f4c5||_0x34ed73||_0x3e3dff===_0x89f4c5['value'])return;const _0x3d306c=_0x3e3dff?_0x21c99b(0x1e4)+_0x3e3dff+'\x22.':_0x21c99b(0x1e2);throw CliErrors[_0x21c99b(0x1e1)](_0x89f4c5[_0x21c99b(0x200)]+'='+_0x89f4c5[_0x21c99b(0x202)]+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x3d306c+'\x20'+(_0x21c99b(0x1f5)+_0x89f4c5[_0x21c99b(0x200)]+'\x22.'));}export function createPipelineEnv(_0x5eaec4,_0x3d7b9d,_0x3bf8ac=[]){const _0x2d6c8a=a248_0x4c5a;return{'rawFlags':_0x3d7b9d,'args':_0x3bf8ac,'resolveAppCode':()=>_0x5eaec4['appCode'],'resolveCookie':()=>_0x5eaec4[_0x2d6c8a(0x1df)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a248_0x1805e2(_0x3d7b9d),'defaultFormat':_0x5eaec4[_0x2d6c8a(0x1ef)],'defaultPageSize':_0x5eaec4['pageSize'],'defaultVerbose':_0x5eaec4['verbose'],'apiDir':_0x5eaec4[_0x2d6c8a(0x1d6)],'riskLevel':_0x5eaec4['riskLevel'],'selectedAppName':_0x5eaec4[_0x2d6c8a(0x1f6)],'mergedCli':{'defaultApp':_0x5eaec4['defaultApp'],'currentApp':_0x5eaec4['currentApp'],'appCode':_0x5eaec4[_0x2d6c8a(0x215)],'apps':_0x5eaec4[_0x2d6c8a(0x1db)]}};}export function createRabetbaseRunnerAdapter(_0x24b8c8={}){const _0x142a9a=a248_0x4c5a;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x142a9a(0x207)](_0xc85554=>PIPELINE_FLAG_NAMES[_0x142a9a(0x1f3)](_0xc85554[_0x142a9a(0x200)]))['map'](({name:_0x47b9d8,type:_0x18f932,description:_0x4b7639})=>({'name':_0x47b9d8,'type':_0x18f932,'description':_0x4b7639})),'formatOutput':_0x24b8c8[_0x142a9a(0x1e0)]??formatOutput,'getCommandLabel'(_0x4763e1){const _0x50a104=_0x142a9a;return CLI_BIN_NAME+'\x20'+_0x4763e1[_0x50a104(0x1f4)]+'\x20'+_0x4763e1[_0x50a104(0x1fa)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x39542e){return CliErrors['validation'](_0x39542e);}},async 'prepare'(_0xf17e75,_0x32430c,_0x334a81,_0x26b138){const _0xf101de=_0x142a9a,_0x2af7e7=_0x32430c[_0xf101de(0x1d6)]||DEFAULT_API_DIR;resolveAliasToCode(_0xf17e75,_0x334a81,_0x2af7e7,_0x26b138);const _0x7a1e8e=resolveCommandAuthMode(_0xf17e75);let _0xb5b9f7='';if(_0x7a1e8e!==_0xf101de(0x1f7)){_0xb5b9f7=_0x32430c[_0xf101de(0x1f8)]()||'';if(!_0xb5b9f7){if(_0x7a1e8e===_0xf101de(0x1f0))throw CliErrors[_0xf101de(0x209)]();}else{const {setActiveCookie:_0x115d80}=await import(_0xf101de(0x20e));_0x115d80(_0xb5b9f7);}}const _0x10e4d8=_0x32430c[_0xf101de(0x1e7)]()??'';if(_0xf17e75['requiresAppCode']!==![]){assertEnvAppCodeNotIgnored(_0x10e4d8,resolveEnvAppCode(),hasExplicitAppCode(_0x334a81,_0x32430c[_0xf101de(0x1f1)]));if(!_0x10e4d8)throw CliErrors[_0xf101de(0x219)](_0xf101de(0x218)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}return{'defaults':{'booleans':{'verbose':_0x32430c[_0xf101de(0x21b)]},'numbers':{'pagesize':_0x32430c[_0xf101de(0x217)]}},'extras':{'appCode':_0x10e4d8,'cookie':_0xb5b9f7,'apiDomain':_0x32430c[_0xf101de(0x206)](),'apiDir':_0x2af7e7,'selectedAppName':_0x32430c[_0xf101de(0x1e9)],'mergedCli':_0x32430c['mergedCli']}};},'confirmHighRisk':_0x24b8c8[_0x142a9a(0x1da)]??(async({env:_0x18f2ac,commandLabel:_0x11bc88})=>{const _0x4ead62=_0x142a9a;if(_0x18f2ac[_0x4ead62(0x1ff)])throw CliErrors[_0x4ead62(0x1e1)]('High-risk\x20operation\x20`'+_0x11bc88+_0x4ead62(0x20c));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x11bc88,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x40a002=>CliErrors['cancelled'](_0x40a002)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x24ff3d=a248_0x4c5a,{clearActiveCookie:_0x5608f6}=await import(_0x24ff3d(0x20e));_0x5608f6();}export async function finalizeRabetbaseRuntimeState(){const _0x47dfe6=a248_0x4c5a;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x4ac2a4},{initEnv:_0x29d99b}]=await Promise[_0x47dfe6(0x203)]([import('../constant/domain.js'),import(_0x47dfe6(0x20f))]);_0x4ac2a4(),_0x29d99b(_0x47dfe6(0x212));}}export async function runCommand(_0x42b961,_0x10d384,_0x46ddaa=terminalRunnerAdapter){const _0x5827e5=a248_0x4c5a;assertRejectedFlags(_0x42b961,_0x10d384[_0x5827e5(0x1f1)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x42b961)?withUpdateNotice(_0x42b961):_0x42b961,_0x10d384,_0x46ddaa);}function assertRejectedFlags(_0x2c1c45,_0x4cb66a){const _0x5add8a=a248_0x4c5a;for(const _0x324730 of _0x2c1c45[_0x5add8a(0x20a)]??[]){const _0xbdc4dc=GLOBAL_FLAGS[_0x5add8a(0x1ee)](_0xe2e6d1=>_0xe2e6d1[_0x5add8a(0x200)]===_0x324730[_0x5add8a(0x200)]),_0x552401=new Set([_0x324730[_0x5add8a(0x200)],toCamelCase(_0x324730[_0x5add8a(0x200)]),_0xbdc4dc?.[_0x5add8a(0x1fb)]]),_0x4bfc97=[..._0x552401][_0x5add8a(0x1f9)](_0x234a20=>{if(!_0x234a20)return![];const _0x1a05cb=_0x4cb66a[_0x234a20];return _0x1a05cb!==undefined&&_0x1a05cb!==null&&_0x1a05cb!==![];});if(_0x4bfc97)throw CliErrors['validation'](_0x324730[_0x5add8a(0x20b)],_0x324730['hint']);}}function toCamelCase(_0x3ddba7){const _0xc90e49=a248_0x4c5a;return _0x3ddba7[_0xc90e49(0x1ea)](/-([a-z])/g,(_0x54b9f7,_0x4323ed)=>_0x4323ed[_0xc90e49(0x213)]());}function shouldAttachUpdateNotice(_0x27f82d){const _0x292445=a248_0x4c5a;if(_0x27f82d['hasFormat']===![])return![];return![_0x292445(0x216),_0x292445(0x211),_0x292445(0x1eb)][_0x292445(0x204)](_0x27f82d[_0x292445(0x1f4)]);}function withUpdateNotice(_0x5b7781){return{..._0x5b7781,async 'execute'(_0x3fbe47){const _0x4e8ce6=a248_0x4c5a,_0x5d71ef=shouldResolveUpdateNotice(_0x3fbe47)?resolveLatestUpdateNotice()[_0x4e8ce6(0x1fe)](()=>null):Promise[_0x4e8ce6(0x205)](null),_0x274bbc=await _0x5b7781[_0x4e8ce6(0x21a)](_0x3fbe47);return attachUpdateNotice(_0x274bbc,await _0x5d71ef);}};}function shouldResolveUpdateNotice(_0x1b6d7e){const _0xd7ac0a=a248_0x4c5a;return _0x1b6d7e[_0xd7ac0a(0x1ef)]===_0xd7ac0a(0x210)&&!_0x1b6d7e[_0xd7ac0a(0x1ed)];}function attachUpdateNotice(_0x4534ce,_0x3b5f02){const _0x24340c=a248_0x4c5a;if(!_0x3b5f02||!_0x4534ce||typeof _0x4534ce!==_0x24340c(0x20d))return _0x4534ce;const _0x3b129f=_0x4534ce,_0x38b32e=typeof _0x3b129f[_0x24340c(0x1e6)]===_0x24340c(0x20d)&&_0x3b129f[_0x24340c(0x1e6)]!==null?_0x3b129f[_0x24340c(0x1e6)]:{};return{..._0x3b129f,'_notice':{..._0x38b32e,'update':_0x3b5f02}};}
@@ -1 +1 @@
1
- (function(_0x5bca3d,_0x587bb9){const _0x274695=a239_0x4c7b,_0x34f2a4=_0x5bca3d();while(!![]){try{const _0x4f9f77=parseInt(_0x274695(0x1e1))/0x1+-parseInt(_0x274695(0x1e2))/0x2+-parseInt(_0x274695(0x1dd))/0x3*(-parseInt(_0x274695(0x1e8))/0x4)+-parseInt(_0x274695(0x1e6))/0x5*(parseInt(_0x274695(0x1e7))/0x6)+-parseInt(_0x274695(0x1df))/0x7*(parseInt(_0x274695(0x1e4))/0x8)+-parseInt(_0x274695(0x1e3))/0x9+parseInt(_0x274695(0x1e5))/0xa*(parseInt(_0x274695(0x1de))/0xb);if(_0x4f9f77===_0x587bb9)break;else _0x34f2a4['push'](_0x34f2a4['shift']());}catch(_0x3cf4b8){_0x34f2a4['push'](_0x34f2a4['shift']());}}}(a239_0x5752,0x39607));function a239_0x4c7b(_0x22910d,_0x5cf363){_0x22910d=_0x22910d-0x1dd;const _0x575225=a239_0x5752();let _0x4c7b71=_0x575225[_0x22910d];return _0x4c7b71;}import{buildSchemaPayload as a239_0x307588}from'@lovrabet/cli-framework';function a239_0x5752(){const _0x42b4f8=['33qwLwmm','538736TkUxzl','112511WzBzSC','../commands/registry.js','371880ZJPpsq','699026flvmPY','2566215rzkDBR','16ajWvmz','160tBmXtp','5VOYeBS','2685768Trcdpj','70524GVfZHN'];a239_0x5752=function(){return _0x42b4f8;};return a239_0x5752();}import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0xef7f02=a239_0x4c7b,{serviceRegistry:_0x193e5c,findDefinition:_0xb8a031}=await import(_0xef7f02(0x1e0));return a239_0x307588({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x193e5c,'buildAllFlags':buildAllFlags,'findDefinition':_0xb8a031});}
1
+ (function(_0x101b07,_0x4fece4){const _0x517b16=a249_0x22b4,_0x159b14=_0x101b07();while(!![]){try{const _0x7b704c=-parseInt(_0x517b16(0xa5))/0x1*(-parseInt(_0x517b16(0xa4))/0x2)+parseInt(_0x517b16(0xaa))/0x3*(parseInt(_0x517b16(0xae))/0x4)+-parseInt(_0x517b16(0xa9))/0x5*(-parseInt(_0x517b16(0xac))/0x6)+parseInt(_0x517b16(0xab))/0x7+-parseInt(_0x517b16(0xa3))/0x8*(-parseInt(_0x517b16(0xa6))/0x9)+parseInt(_0x517b16(0xad))/0xa+parseInt(_0x517b16(0xa7))/0xb*(-parseInt(_0x517b16(0xa8))/0xc);if(_0x7b704c===_0x4fece4)break;else _0x159b14['push'](_0x159b14['shift']());}catch(_0x57fb9d){_0x159b14['push'](_0x159b14['shift']());}}}(a249_0x4076,0x87ba9));import{buildSchemaPayload as a249_0x5683f1}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';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0xfdde2a,findDefinition:_0xdc78d3}=await import('../commands/registry.js');return a249_0x5683f1({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0xfdde2a,'buildAllFlags':buildAllFlags,'findDefinition':_0xdc78d3});}function a249_0x22b4(_0x197802,_0x2b9a10){_0x197802=_0x197802-0xa3;const _0x407625=a249_0x4076();let _0x22b497=_0x407625[_0x197802];return _0x22b497;}function a249_0x4076(){const _0x44768b=['1525132lBxpMn','2935878hhFsJa','5367470IeJLjs','40492CBNXrM','13864AzCGRV','509946VetZUG','4SUIFgt','5319StRxqm','130174pUtqnj','2832kxWPPd','5PKQNxU','18dmfzub'];a249_0x4076=function(){return _0x44768b;};return a249_0x4076();}
@@ -1 +1 @@
1
- function a240_0x47e7(){var _0x31c170=['65401LZMvEs','4TcPHen','60xeqcZi','3399475tQFRaE','486FZqoDe','2644518TcCJen','3468344IxZNXZ','1LjlCXv','1392705lkyFyH','16586zYabuL','39177952GmNVkx'];a240_0x47e7=function(){return _0x31c170;};return a240_0x47e7();}(function(_0x437508,_0x45ee14){var _0x3faf85=a240_0x41a1,_0x246eb0=_0x437508();while(!![]){try{var _0xe088ed=-parseInt(_0x3faf85(0x1ca))/0x1*(parseInt(_0x3faf85(0x1cc))/0x2)+parseInt(_0x3faf85(0x1c8))/0x3*(-parseInt(_0x3faf85(0x1cf))/0x4)+-parseInt(_0x3faf85(0x1d1))/0x5+-parseInt(_0x3faf85(0x1d2))/0x6*(parseInt(_0x3faf85(0x1ce))/0x7)+parseInt(_0x3faf85(0x1c9))/0x8+-parseInt(_0x3faf85(0x1cb))/0x9*(parseInt(_0x3faf85(0x1d0))/0xa)+parseInt(_0x3faf85(0x1cd))/0xb;if(_0xe088ed===_0x45ee14)break;else _0x246eb0['push'](_0x246eb0['shift']());}catch(_0x5b012e){_0x246eb0['push'](_0x246eb0['shift']());}}}(a240_0x47e7,0xb4b84));function a240_0x41a1(_0x3d8965,_0x9c6872){_0x3d8965=_0x3d8965-0x1c8;var _0x47e761=a240_0x47e7();var _0x41a1a6=_0x47e761[_0x3d8965];return _0x41a1a6;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
1
+ (function(_0x543f03,_0x46ea05){var _0x2f5f3b=a250_0x437d,_0x3a3ad7=_0x543f03();while(!![]){try{var _0x10325a=-parseInt(_0x2f5f3b(0xa7))/0x1+-parseInt(_0x2f5f3b(0xa2))/0x2+parseInt(_0x2f5f3b(0xa1))/0x3*(parseInt(_0x2f5f3b(0xa3))/0x4)+-parseInt(_0x2f5f3b(0xa9))/0x5*(parseInt(_0x2f5f3b(0xa4))/0x6)+parseInt(_0x2f5f3b(0xaa))/0x7+parseInt(_0x2f5f3b(0xa5))/0x8+parseInt(_0x2f5f3b(0xa8))/0x9*(-parseInt(_0x2f5f3b(0xa6))/0xa);if(_0x10325a===_0x46ea05)break;else _0x3a3ad7['push'](_0x3a3ad7['shift']());}catch(_0x16823b){_0x3a3ad7['push'](_0x3a3ad7['shift']());}}}(a250_0x2f07,0xc45c6));function a250_0x437d(_0x112975,_0x13b6ef){_0x112975=_0x112975-0xa1;var _0x2f07ab=a250_0x2f07();var _0x437ddb=_0x2f07ab[_0x112975];return _0x437ddb;}function a250_0x2f07(){var _0x5e47d3=['182887znNfSN','518922mKcLnA','446350KYFdue','7420679KUHrEx','4578sCgsZO','945504ZvblBT','2364djzKAV','24yLYNHe','224192TxjhyP','30jYSIch'];a250_0x2f07=function(){return _0x5e47d3;};return a250_0x2f07();}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.6";
2
- export declare const GIT_TAG = "v2.3.16-beta.6";
3
- export declare const GIT_COMMIT = "6b281f5";
4
- export declare const BUILD_TIME = "2026-08-11T07:09:35.649Z";
1
+ export declare const VERSION = "2.4.1-beta.1";
2
+ export declare const GIT_TAG = "v2.4.1-beta.1";
3
+ export declare const GIT_COMMIT = "049f5c2";
4
+ export declare const BUILD_TIME = "2026-08-11T11:52:22.335Z";
@@ -1 +1 @@
1
- function a241_0x9257(_0x2d5dfb,_0x3ab862){_0x2d5dfb=_0x2d5dfb-0x1ca;const _0x3cbebb=a241_0x3cbe();let _0x925714=_0x3cbebb[_0x2d5dfb];return _0x925714;}const a241_0x2a549c=a241_0x9257;(function(_0xe06f24,_0xc3412){const _0x3b6a3c=a241_0x9257,_0x32e3ef=_0xe06f24();while(!![]){try{const _0x24da35=parseInt(_0x3b6a3c(0x1ca))/0x1+-parseInt(_0x3b6a3c(0x1d2))/0x2*(-parseInt(_0x3b6a3c(0x1d3))/0x3)+-parseInt(_0x3b6a3c(0x1d0))/0x4+-parseInt(_0x3b6a3c(0x1cf))/0x5+parseInt(_0x3b6a3c(0x1d1))/0x6*(parseInt(_0x3b6a3c(0x1d4))/0x7)+-parseInt(_0x3b6a3c(0x1d5))/0x8*(-parseInt(_0x3b6a3c(0x1ce))/0x9)+parseInt(_0x3b6a3c(0x1cc))/0xa*(-parseInt(_0x3b6a3c(0x1cb))/0xb);if(_0x24da35===_0xc3412)break;else _0x32e3ef['push'](_0x32e3ef['shift']());}catch(_0x1fe01e){_0x32e3ef['push'](_0x32e3ef['shift']());}}}(a241_0x3cbe,0x2e558));export const VERSION=a241_0x2a549c(0x1cd);export const GIT_TAG='v2.3.16-beta.6';function a241_0x3cbe(){const _0x4f94ee=['753039HsQJae','459080TOcqeX','847512IyrPOt','6558Wpwbut','36KMZaCN','26382gWbRvD','2086MvfgDL','24TFLvHl','6b281f5','82905rOgwex','11dDAMXu','3244460FldVQh','2.3.16-beta.6'];a241_0x3cbe=function(){return _0x4f94ee;};return a241_0x3cbe();}export const GIT_COMMIT=a241_0x2a549c(0x1d6);export const BUILD_TIME='2026-08-11T07:09:35.649Z';
1
+ function a251_0x20b0(_0x34a780,_0x850e54){_0x34a780=_0x34a780-0x12e;const _0x174b7c=a251_0x174b();let _0x20b0ec=_0x174b7c[_0x34a780];return _0x20b0ec;}function a251_0x174b(){const _0x33f230=['540lMgAFT','305CQBLhg','28SIrHlD','1984YOkhxy','1094125ZYVzMQ','1203906raQKBu','4048QpszMe','7329LBPozo','2752929qtZUWz','7302ErLYZa','v2.4.1-beta.1','10910vicjBU','2.4.1-beta.1'];a251_0x174b=function(){return _0x33f230;};return a251_0x174b();}const a251_0x1f6ab0=a251_0x20b0;(function(_0x4595ce,_0x446bd2){const _0x2e916a=a251_0x20b0,_0x5c308d=_0x4595ce();while(!![]){try{const _0x29347b=parseInt(_0x2e916a(0x139))/0x1*(-parseInt(_0x2e916a(0x138))/0x2)+parseInt(_0x2e916a(0x134))/0x3*(parseInt(_0x2e916a(0x13a))/0x4)+parseInt(_0x2e916a(0x12f))/0x5+parseInt(_0x2e916a(0x130))/0x6+parseInt(_0x2e916a(0x132))/0x7*(-parseInt(_0x2e916a(0x12e))/0x8)+-parseInt(_0x2e916a(0x133))/0x9+parseInt(_0x2e916a(0x136))/0xa*(parseInt(_0x2e916a(0x131))/0xb);if(_0x29347b===_0x446bd2)break;else _0x5c308d['push'](_0x5c308d['shift']());}catch(_0x567fb1){_0x5c308d['push'](_0x5c308d['shift']());}}}(a251_0x174b,0x2e6a3));export const VERSION=a251_0x1f6ab0(0x137);export const GIT_TAG=a251_0x1f6ab0(0x135);export const GIT_COMMIT='049f5c2';export const BUILD_TIME='2026-08-11T11:52:22.335Z';
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a242_0x1c50(_0x3b0042,_0x29f5ec){_0x3b0042=_0x3b0042-0x15b;var _0x1324d0=a242_0x1324();var _0x1c50e0=_0x1324d0[_0x3b0042];return _0x1c50e0;}(function(_0x2e1c4b,_0x56b1f5){var _0x21fdf5=a242_0x1c50,_0x174825=_0x2e1c4b();while(!![]){try{var _0x2e206f=parseInt(_0x21fdf5(0x15e))/0x1+parseInt(_0x21fdf5(0x168))/0x2+-parseInt(_0x21fdf5(0x161))/0x3+-parseInt(_0x21fdf5(0x15b))/0x4+-parseInt(_0x21fdf5(0x15c))/0x5*(-parseInt(_0x21fdf5(0x166))/0x6)+parseInt(_0x21fdf5(0x167))/0x7*(parseInt(_0x21fdf5(0x160))/0x8)+parseInt(_0x21fdf5(0x165))/0x9*(-parseInt(_0x21fdf5(0x162))/0xa);if(_0x2e206f===_0x56b1f5)break;else _0x174825['push'](_0x174825['shift']());}catch(_0x4deccc){_0x174825['push'](_0x174825['shift']());}}}(a242_0x1324,0x2ce83));import a242_0x3b4465 from'chalk';function a242_0x1324(){var _0x2fe85d=['124347MernuF','170IDhCQb','bold','log','123147NnTGAX','13056jJNOkN','19439UpznyA','691666OrSbDJ','885036eopelK','15xlhehR','green','124176VbJHLe','\x20\x20Use\x20','584ijNsMa'];a242_0x1324=function(){return _0x2fe85d;};return a242_0x1324();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0xbefe00=a242_0x1c50;console['log'](),console['log'](a242_0x3b4465[_0xbefe00(0x15d)][_0xbefe00(0x163)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0xbefe00(0x164)](),console[_0xbefe00(0x164)](_0xbefe00(0x15f)+a242_0x3b4465[_0xbefe00(0x15d)][_0xbefe00(0x163)](CLI_BIN_NAME+'\x20--help')+'\x20to\x20view\x20available\x20commands.'),console[_0xbefe00(0x164)]();}
1
+ (function(_0x22788d,_0xb3e2ce){var _0x1217a6=a252_0x1c3d,_0xc7e7c5=_0x22788d();while(!![]){try{var _0x26e4ce=parseInt(_0x1217a6(0x1b8))/0x1+-parseInt(_0x1217a6(0x1bc))/0x2+-parseInt(_0x1217a6(0x1bb))/0x3*(-parseInt(_0x1217a6(0x1ba))/0x4)+-parseInt(_0x1217a6(0x1b7))/0x5*(-parseInt(_0x1217a6(0x1bf))/0x6)+-parseInt(_0x1217a6(0x1c2))/0x7*(-parseInt(_0x1217a6(0x1c7))/0x8)+parseInt(_0x1217a6(0x1c0))/0x9+parseInt(_0x1217a6(0x1b9))/0xa*(-parseInt(_0x1217a6(0x1be))/0xb);if(_0x26e4ce===_0xb3e2ce)break;else _0xc7e7c5['push'](_0xc7e7c5['shift']());}catch(_0xfaf70){_0xc7e7c5['push'](_0xc7e7c5['shift']());}}}(a252_0x593a,0x1f258));function a252_0x593a(){var _0x4225ae=['280pBKsTg','989015MALRVC','50363bYjpky','10GbsvQt','17008ovgDdk','159fgPntU','334310IbVzDH','\x20\x20Use\x20','6342545ARWgTK','6TfIjQW','1814661wlCVnS','log','39235RSDwBQ','bold','\x20--help','green','\x20to\x20view\x20available\x20commands.'];a252_0x593a=function(){return _0x4225ae;};return a252_0x593a();}import a252_0x31dfe6 from'chalk';function a252_0x1c3d(_0x1c9fd5,_0x560f62){_0x1c9fd5=_0x1c9fd5-0x1b7;var _0x593a8f=a252_0x593a();var _0x1c3dde=_0x593a8f[_0x1c9fd5];return _0x1c3dde;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x1e5677=a252_0x1c3d;console[_0x1e5677(0x1c1)](),console[_0x1e5677(0x1c1)](a252_0x31dfe6[_0x1e5677(0x1c5)]['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x1e5677(0x1c1)](),console[_0x1e5677(0x1c1)](_0x1e5677(0x1bd)+a252_0x31dfe6[_0x1e5677(0x1c5)][_0x1e5677(0x1c3)](CLI_BIN_NAME+_0x1e5677(0x1c4))+_0x1e5677(0x1c6)),console[_0x1e5677(0x1c1)]();}
@@ -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(_0x5768f8,_0x206147){const _0x452b24=a253_0x5087,_0x505f32=_0x5768f8();while(!![]){try{const _0x2c9dd6=-parseInt(_0x452b24(0x14c))/0x1+-parseInt(_0x452b24(0x13b))/0x2*(parseInt(_0x452b24(0x14a))/0x3)+parseInt(_0x452b24(0x149))/0x4+-parseInt(_0x452b24(0x154))/0x5+-parseInt(_0x452b24(0x14d))/0x6*(-parseInt(_0x452b24(0x148))/0x7)+-parseInt(_0x452b24(0x13c))/0x8+parseInt(_0x452b24(0x13f))/0x9*(parseInt(_0x452b24(0x13e))/0xa);if(_0x2c9dd6===_0x206147)break;else _0x505f32['push'](_0x505f32['shift']());}catch(_0x580ad4){_0x505f32['push'](_0x505f32['shift']());}}}(a253_0x5961,0xa23eb));function a253_0x5961(){const _0x1949a1=['SOURCE_INVALID','Repair\x20with:\x20','already\x20current','skillVersion','1893530Ymaswn','[BUILTIN_SKILL_INSTALL_','4JFmXyZ','8863656ajFKai','installedPath','34615870aJmWfp','9hEuwpW','\x20via\x20skills@latest','error','warn','installed','log','repairCommand','Rabetbase\x20Built-in\x20Skill\x20','changed','6041cuIfel','24940HKDtKn','1890921IfwZRu','FAILED','538407sxurFg','3354KZBTTJ','code','Installation\x20failed'];a253_0x5961=function(){return _0x1949a1;};return a253_0x5961();}function a253_0x5087(_0x7c4038,_0x577e62){_0x7c4038=_0x7c4038-0x13a;const _0x59612f=a253_0x5961();let _0x5087cf=_0x59612f[_0x7c4038];return _0x5087cf;}import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x1bdf9d={}){const _0x43216e=a253_0x5087,_0x2915ed=installBuiltinSkill(_0x1bdf9d);if(_0x2915ed['ok']){const _0x1001c2=_0x2915ed[_0x43216e(0x147)]?_0x43216e(0x143):_0x43216e(0x152),_0x2c6fd6=_0x2915ed[_0x43216e(0x13d)]?'\x20at\x20'+_0x2915ed[_0x43216e(0x13d)]:_0x43216e(0x140);return console[_0x43216e(0x144)](_0x43216e(0x146)+_0x2915ed[_0x43216e(0x153)]+'\x20'+_0x1001c2+_0x2c6fd6),_0x2915ed;}const _0x5acb4f=_0x43216e(0x13a)+(_0x2915ed[_0x43216e(0x14e)]??_0x43216e(0x14b))+']\x20'+(_0x2915ed[_0x43216e(0x141)]??_0x43216e(0x14f))+'.\x20'+(_0x43216e(0x151)+_0x2915ed[_0x43216e(0x145)]);if(_0x2915ed[_0x43216e(0x14e)]===_0x43216e(0x150))throw new Error(_0x5acb4f);return console[_0x43216e(0x142)](_0x5acb4f),_0x2915ed;}
@@ -1 +1 @@
1
- function a243_0x4f3a(){const _0x549503=['871UFYfWM','108432aNkhhH','244CEkZyb','1731730ONIztE','2fuqoDv','confirmationDescription','replace','write','216EShsRW','high-risk-write','10AlwsEv','slice',';该操作可能创建或修改业务数据或本地配置。',';该操作可能覆盖、删除或明显影响线上运行行为。','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','107704viZcRm','risk','750EZYtHa','18529rbgAIB','string','14481FXtfZp','573047VpHjPQ','trim','5891138pSpYHk'];a243_0x4f3a=function(){return _0x549503;};return a243_0x4f3a();}(function(_0x702b26,_0x7922a5){const _0x543448=a243_0x5ef4,_0x26dcf8=_0x702b26();while(!![]){try{const _0x343204=-parseInt(_0x543448(0xe1))/0x1*(-parseInt(_0x543448(0xe8))/0x2)+parseInt(_0x543448(0xe0))/0x3*(-parseInt(_0x543448(0xe6))/0x4)+-parseInt(_0x543448(0xe7))/0x5+parseInt(_0x543448(0xdd))/0x6*(-parseInt(_0x543448(0xde))/0x7)+-parseInt(_0x543448(0xdb))/0x8*(parseInt(_0x543448(0xec))/0x9)+-parseInt(_0x543448(0xee))/0xa*(-parseInt(_0x543448(0xe3))/0xb)+-parseInt(_0x543448(0xe5))/0xc*(-parseInt(_0x543448(0xe4))/0xd);if(_0x343204===_0x7922a5)break;else _0x26dcf8['push'](_0x26dcf8['shift']());}catch(_0x52461b){_0x26dcf8['push'](_0x26dcf8['shift']());}}}(a243_0x4f3a,0x665a5));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x57abb5,_0x2cddae,_0x50a281){const _0x39abf0=a243_0x5ef4,_0x47f8d2=normalizeText(_0x57abb5[_0x39abf0(0xe9)],DESCRIPTION_MAX_LENGTH),_0x49d5d0=_0x47f8d2||normalizeText(defaultDescription(requireWriteRisk(_0x57abb5),_0x2cddae),DESCRIPTION_MAX_LENGTH);return{'operation':_0x2cddae,'risk':requireWriteRisk(_0x57abb5),'description':_0x49d5d0,..._0x50a281?{'signal':_0x50a281}:{}};}function a243_0x5ef4(_0x3d4d1d,_0x22f4c9){_0x3d4d1d=_0x3d4d1d-0xd7;const _0x4f3a52=a243_0x4f3a();let _0x5ef48a=_0x4f3a52[_0x3d4d1d];return _0x5ef48a;}function requireWriteRisk(_0x37d30e){const _0x1f2eed=a243_0x5ef4;if(_0x37d30e[_0x1f2eed(0xdc)]===_0x1f2eed(0xeb)||_0x37d30e[_0x1f2eed(0xdc)]===_0x1f2eed(0xed))return _0x37d30e[_0x1f2eed(0xdc)];throw new Error(_0x1f2eed(0xda));}function defaultDescription(_0x485b47,_0x1eb949){const _0xb65f7d=a243_0x5ef4;if(_0x485b47===_0xb65f7d(0xed))return'将执行高风险写入操作\x20'+_0x1eb949+_0xb65f7d(0xd9);return'将执行写入操作\x20'+_0x1eb949+_0xb65f7d(0xd8);}function normalizeText(_0x6f6987,_0x16e3f0){const _0x4a7a74=a243_0x5ef4;if(typeof _0x6f6987!==_0x4a7a74(0xdf))return'';return _0x6f6987[_0x4a7a74(0xea)](/[\u0000-\u001f\u007f]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x4a7a74(0xe2)]()[_0x4a7a74(0xd7)](0x0,_0x16e3f0);}
1
+ (function(_0x4a4671,_0xe229cd){const _0xa31466=a254_0x35b2,_0x311adb=_0x4a4671();while(!![]){try{const _0x25dc59=parseInt(_0xa31466(0x13e))/0x1+parseInt(_0xa31466(0x142))/0x2*(parseInt(_0xa31466(0x13f))/0x3)+parseInt(_0xa31466(0x141))/0x4+parseInt(_0xa31466(0x139))/0x5+-parseInt(_0xa31466(0x13a))/0x6+parseInt(_0xa31466(0x135))/0x7+-parseInt(_0xa31466(0x132))/0x8;if(_0x25dc59===_0xe229cd)break;else _0x311adb['push'](_0x311adb['shift']());}catch(_0x163455){_0x311adb['push'](_0x311adb['shift']());}}}(a254_0x5449,0xddf80));function a254_0x5449(){const _0x10ff7e=['40935fehkTL','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','4751988hXQoNP','206UIIKAy','trim','confirmationDescription','13308200sjmtAh','risk','high-risk-write','1648339RytaXp',';该操作可能创建或修改业务数据或本地配置。','string','slice','2368150BrhvXI','6429900OCaJGQ',';该操作可能覆盖、删除或明显影响线上运行行为。','replace','write','341820VIxuHw'];a254_0x5449=function(){return _0x10ff7e;};return a254_0x5449();}function a254_0x35b2(_0x55ecdf,_0x51d1ba){_0x55ecdf=_0x55ecdf-0x130;const _0x544951=a254_0x5449();let _0x35b2ef=_0x544951[_0x55ecdf];return _0x35b2ef;}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x308dc6,_0x4e627e,_0x2625ec){const _0x389d4d=a254_0x35b2,_0x4e6b0c=normalizeText(_0x308dc6[_0x389d4d(0x131)],DESCRIPTION_MAX_LENGTH),_0x466cf1=_0x4e6b0c||normalizeText(defaultDescription(requireWriteRisk(_0x308dc6),_0x4e627e),DESCRIPTION_MAX_LENGTH);return{'operation':_0x4e627e,'risk':requireWriteRisk(_0x308dc6),'description':_0x466cf1,..._0x2625ec?{'signal':_0x2625ec}:{}};}function requireWriteRisk(_0x40388a){const _0x16ac29=a254_0x35b2;if(_0x40388a['risk']===_0x16ac29(0x13d)||_0x40388a[_0x16ac29(0x133)]===_0x16ac29(0x134))return _0x40388a[_0x16ac29(0x133)];throw new Error(_0x16ac29(0x140));}function defaultDescription(_0x2db408,_0x116ae0){const _0x5151f4=a254_0x35b2;if(_0x2db408===_0x5151f4(0x134))return'将执行高风险写入操作\x20'+_0x116ae0+_0x5151f4(0x13b);return'将执行写入操作\x20'+_0x116ae0+_0x5151f4(0x136);}function normalizeText(_0x28b5fa,_0x3df313){const _0x4dbce7=a254_0x35b2;if(typeof _0x28b5fa!==_0x4dbce7(0x137))return'';return _0x28b5fa['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x4dbce7(0x13c)](/\s+/g,'\x20')[_0x4dbce7(0x130)]()[_0x4dbce7(0x138)](0x0,_0x3df313);}
@@ -1 +1 @@
1
- (function(_0x5a8360,_0x5b5744){var _0x13913e=a244_0x5269,_0x35d7c8=_0x5a8360();while(!![]){try{var _0x318a3a=-parseInt(_0x13913e(0xff))/0x1*(-parseInt(_0x13913e(0xfc))/0x2)+-parseInt(_0x13913e(0x100))/0x3+parseInt(_0x13913e(0xfb))/0x4+-parseInt(_0x13913e(0x101))/0x5+parseInt(_0x13913e(0xfd))/0x6*(-parseInt(_0x13913e(0xf6))/0x7)+parseInt(_0x13913e(0xf8))/0x8*(parseInt(_0x13913e(0xfa))/0x9)+-parseInt(_0x13913e(0x102))/0xa*(parseInt(_0x13913e(0xf4))/0xb);if(_0x318a3a===_0x5b5744)break;else _0x35d7c8['push'](_0x35d7c8['shift']());}catch(_0x360299){_0x35d7c8['push'](_0x35d7c8['shift']());}}}(a244_0x60ac,0xc0fc1));function a244_0x5269(_0x50716a,_0x405870){_0x50716a=_0x50716a-0xf3;var _0x60acf1=a244_0x60ac();var _0x5269d4=_0x60acf1[_0x50716a];return _0x5269d4;}export function canonicalRabetbaseOperation(_0x5b851b){var _0x4e3766=a244_0x5269;return[_0x5b851b['service'],..._0x5b851b['command'][_0x4e3766(0xfe)]()['split'](/\s+/)]['filter'](Boolean)['join']('.');}export function createRabetbaseWriteMetadata(_0x81dd08,_0x4878b7,_0x1280ee,_0x9dc102){var _0x3dbfc0=a244_0x5269;if(_0x9dc102||_0x1280ee['ok']!==!![]||_0x81dd08[_0x3dbfc0(0xf5)]!==_0x3dbfc0(0xf7)&&_0x81dd08[_0x3dbfc0(0xf5)]!==_0x3dbfc0(0xf9))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x3dbfc0(0xf3),'operation':_0x4878b7,'risk':_0x81dd08[_0x3dbfc0(0xf5)]}}};}function a244_0x60ac(){var _0x4a14c3=['1138806YGcFCb','2518072SRaroH','49562zRtvab','282RDHAHR','trim','43CYDxte','853413qpauZn','2827545MQuYqa','60nTWtQy','rabetbase.write.completed','73601yiityw','risk','115234pECCMb','write','48yvMzOV','high-risk-write'];a244_0x60ac=function(){return _0x4a14c3;};return a244_0x60ac();}
1
+ (function(_0x2b5bf8,_0xcd0045){var _0x54cf70=a255_0x4a43,_0x18a062=_0x2b5bf8();while(!![]){try{var _0x45d688=-parseInt(_0x54cf70(0x13e))/0x1*(parseInt(_0x54cf70(0x139))/0x2)+parseInt(_0x54cf70(0x141))/0x3*(parseInt(_0x54cf70(0x148))/0x4)+-parseInt(_0x54cf70(0x142))/0x5+parseInt(_0x54cf70(0x147))/0x6+-parseInt(_0x54cf70(0x145))/0x7+parseInt(_0x54cf70(0x13a))/0x8+parseInt(_0x54cf70(0x146))/0x9;if(_0x45d688===_0xcd0045)break;else _0x18a062['push'](_0x18a062['shift']());}catch(_0x2303d1){_0x18a062['push'](_0x18a062['shift']());}}}(a255_0x319c,0xc22cf));export function canonicalRabetbaseOperation(_0x1e2e69){var _0x2d431e=a255_0x4a43;return[_0x1e2e69['service'],..._0x1e2e69[_0x2d431e(0x13c)][_0x2d431e(0x13b)]()[_0x2d431e(0x13d)](/\s+/)][_0x2d431e(0x144)](Boolean)[_0x2d431e(0x140)]('.');}function a255_0x4a43(_0x26abcd,_0x51fa0c){_0x26abcd=_0x26abcd-0x139;var _0x319c74=a255_0x319c();var _0x4a435c=_0x319c74[_0x26abcd];return _0x4a435c;}function a255_0x319c(){var _0x3be04d=['5016804aSZech','4AGngZB','2267588rhymkM','3862240PhGzOk','trim','command','split','1isMzeU','risk','join','3866097nJaAIa','6685745UCXYWm','write','filter','8934982DqzCdD','17415891Helcqh'];a255_0x319c=function(){return _0x3be04d;};return a255_0x319c();}export function createRabetbaseWriteMetadata(_0x26fbb8,_0x44898d,_0x34cae8,_0x512c41){var _0x3141ce=a255_0x4a43;if(_0x512c41||_0x34cae8['ok']!==!![]||_0x26fbb8[_0x3141ce(0x13f)]!==_0x3141ce(0x143)&&_0x26fbb8['risk']!=='high-risk-write')return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':'rabetbase.write.completed','operation':_0x44898d,'risk':_0x26fbb8[_0x3141ce(0x13f)]}}};}
@@ -1 +1 @@
1
- (function(_0x4eec16,_0x38f750){const _0x5c8b25=a245_0x2c5f,_0x32a9e5=_0x4eec16();while(!![]){try{const _0x402690=parseInt(_0x5c8b25(0x1bc))/0x1+-parseInt(_0x5c8b25(0x1d5))/0x2+-parseInt(_0x5c8b25(0x1c7))/0x3+-parseInt(_0x5c8b25(0x1d6))/0x4*(parseInt(_0x5c8b25(0x1cd))/0x5)+-parseInt(_0x5c8b25(0x1b8))/0x6*(-parseInt(_0x5c8b25(0x1ce))/0x7)+parseInt(_0x5c8b25(0x1bd))/0x8+parseInt(_0x5c8b25(0x1bb))/0x9;if(_0x402690===_0x38f750)break;else _0x32a9e5['push'](_0x32a9e5['shift']());}catch(_0x4adf6f){_0x32a9e5['push'](_0x32a9e5['shift']());}}}(a245_0x2870,0x71823));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';function a245_0x2c5f(_0x27fa3b,_0x2f80e5){_0x27fa3b=_0x27fa3b-0x1b4;const _0x2870f5=a245_0x2870();let _0x2c5f84=_0x2870f5[_0x27fa3b];return _0x2c5f84;}import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';function a245_0x2870(){const _0x1996c4=['724871zHMlZC','risk','presentation','execute','present','result','aborted','1593308agkpGr','2972TTYpSD','confirm','rawFlags','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','data','12KsFqSJ','message','definition','16467660XYcpbN','323654EBmIVA','151048vesLIY','high-risk-write','stringify','isNonInteractive','command','AbortError','confirmation','args','reason','riskLevel','1438677TGFKEF','format','dry-run','signal','Rabetbase\x20invocation\x20aborted.','dryRun','4295zWSewD'];a245_0x2870=function(){return _0x1996c4;};return a245_0x2870();}const defaultPresentation={'present'({result:_0x41f2d4,command:_0x79a633,risk:_0x1d0b8c,dryRun:_0x3d094e}){const _0x99ee3=a245_0x2c5f;return JSON[_0x99ee3(0x1bf)]({'ok':_0x41f2d4['ok'],'command':_0x79a633,'risk':_0x1d0b8c,..._0x3d094e?{'dryRun':!![]}:{},..._0x41f2d4[_0x99ee3(0x1b7)]!==undefined?{'data':_0x41f2d4[_0x99ee3(0x1b7)]}:{},..._0x41f2d4[_0x99ee3(0x1b9)]?{'message':_0x41f2d4[_0x99ee3(0x1b9)]}:{}});}};export async function invokeRabetbase(_0x58415f,_0x457082){const _0x2750e2=a245_0x2c5f;throwIfAborted(_0x457082[_0x2750e2(0x1ca)]);const _0x51e8c4=await resolveRabetbaseInvocation(_0x58415f),_0x1b713a=canonicalRabetbaseOperation(_0x51e8c4[_0x2750e2(0x1ba)]);return await confirmWriteBeforeQueue(_0x51e8c4[_0x2750e2(0x1ba)],_0x51e8c4[_0x2750e2(0x1b5)],_0x1b713a,_0x457082),runSerialized(async()=>{const _0x3c63cb=_0x2750e2,_0x387700={};try{throwIfAborted(_0x457082['signal']);const _0x13b6b1=buildConfigFromFlags(_0x51e8c4[_0x3c63cb(0x1b5)]);await initGlobalEnvironment(_0x13b6b1);const _0x44665b=createPipelineEnv(_0x13b6b1,{..._0x51e8c4[_0x3c63cb(0x1b5)],'yes':_0x51e8c4[_0x3c63cb(0x1ba)][_0x3c63cb(0x1cf)]==='high-risk-write'?!![]:_0x51e8c4[_0x3c63cb(0x1b5)]['yes'],'nonInteractive':!![]},_0x51e8c4[_0x3c63cb(0x1c4)]);_0x44665b[_0x3c63cb(0x1c0)]=!![],_0x44665b[_0x3c63cb(0x1c6)]=_0x3c63cb(0x1be);const _0xe862db=withAbortSignal(_0x51e8c4[_0x3c63cb(0x1ba)],_0x457082['signal']),_0x13e0bd=createRabetbaseRunnerAdapter({'formatOutput'(_0x3dce90,_0x2a11d0){const _0x478004=_0x3c63cb;_0x387700[_0x478004(0x1d3)]=_0x3dce90,_0x387700[_0x478004(0x1c1)]=_0x2a11d0[_0x478004(0x1c1)],_0x387700[_0x478004(0x1cf)]=_0x2a11d0[_0x478004(0x1cf)],_0x387700[_0x478004(0x1c8)]=_0x2a11d0[_0x478004(0x1c8)],_0x387700[_0x478004(0x1cc)]=_0x2a11d0[_0x478004(0x1cc)]===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.');}});await runCommand(_0xe862db,_0x44665b,_0x13e0bd);if(!_0x387700['result']||!_0x387700['command']||!_0x387700[_0x3c63cb(0x1cf)]||!_0x387700[_0x3c63cb(0x1c8)])throw new Error(_0x3c63cb(0x1b6));const _0x2a59ac=_0x387700[_0x3c63cb(0x1cc)]===!![],_0x446e12=_0x457082[_0x3c63cb(0x1d0)]??defaultPresentation,_0x2ab47c={'result':_0x387700[_0x3c63cb(0x1d3)],'command':_0x387700['command'],'operation':_0x1b713a,'risk':_0x387700['risk'],'format':_0x387700[_0x3c63cb(0x1c8)],'dryRun':_0x2a59ac},_0xcb08ef=createRabetbaseWriteMetadata(_0x51e8c4[_0x3c63cb(0x1ba)],_0x1b713a,_0x387700['result'],_0x2a59ac);let _0x214045;try{_0x214045=await _0x446e12[_0x3c63cb(0x1d2)](_0x2ab47c);}catch(_0x31896b){if(!_0xcb08ef||_0x446e12===defaultPresentation)throw _0x31896b;_0x214045=await defaultPresentation[_0x3c63cb(0x1d2)](_0x2ab47c);}return{'operation':_0x1b713a,'risk':_0x387700[_0x3c63cb(0x1cf)],'mode':_0x2a59ac?_0x3c63cb(0x1c9):_0x3c63cb(0x1d1),'result':_0x387700[_0x3c63cb(0x1d3)],'output':_0x214045,..._0xcb08ef?{'metadata':_0xcb08ef}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x322f6e,_0x4ea8ec,_0x1775c4,_0x3d2de9){const _0xa71c05=a245_0x2c5f;if(_0x4ea8ec[_0xa71c05(0x1cc)]===!![]||_0x322f6e['risk']!=='write'&&_0x322f6e[_0xa71c05(0x1cf)]!==_0xa71c05(0x1be))return;await _0x3d2de9[_0xa71c05(0x1c3)][_0xa71c05(0x1b4)](buildRabetbaseConfirmationRequest(_0x322f6e,_0x1775c4,_0x3d2de9['signal']));}function withAbortSignal(_0x23855f,_0x5316e4){return{..._0x23855f,async 'execute'(_0x221fdf){return throwIfAborted(_0x5316e4),_0x23855f['execute'](_0x221fdf);}};}function throwIfAborted(_0x2955a2){const _0x4f4cc6=a245_0x2c5f;if(_0x2955a2?.[_0x4f4cc6(0x1d4)])throw _0x2955a2[_0x4f4cc6(0x1c5)]instanceof Error?_0x2955a2[_0x4f4cc6(0x1c5)]:new DOMException(_0x4f4cc6(0x1cb),_0x4f4cc6(0x1c2));}
1
+ (function(_0x5b746d,_0x50f31e){const _0x57aa87=a256_0xef62,_0x21d40c=_0x5b746d();while(!![]){try{const _0x2f1f7e=parseInt(_0x57aa87(0x82))/0x1+parseInt(_0x57aa87(0x94))/0x2+parseInt(_0x57aa87(0x92))/0x3*(-parseInt(_0x57aa87(0x8b))/0x4)+-parseInt(_0x57aa87(0x8e))/0x5*(-parseInt(_0x57aa87(0x85))/0x6)+-parseInt(_0x57aa87(0x8a))/0x7*(parseInt(_0x57aa87(0x7b))/0x8)+-parseInt(_0x57aa87(0x83))/0x9+-parseInt(_0x57aa87(0x93))/0xa;if(_0x2f1f7e===_0x50f31e)break;else _0x21d40c['push'](_0x21d40c['shift']());}catch(_0x51d3da){_0x21d40c['push'](_0x21d40c['shift']());}}}(a256_0x7c21,0xce5a1));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';function a256_0xef62(_0x53a095,_0x4b5e95){_0x53a095=_0x53a095-0x78;const _0x7c217c=a256_0x7c21();let _0xef6215=_0x7c217c[_0x53a095];return _0xef6215;}import{runSerialized}from'../runtime/queue.js';function a256_0x7c21(){const _0x3178b9=['aborted','args','AbortError','signal','104miIMvE','present','dryRun','message','Rabetbase\x20invocation\x20aborted.','stringify','execute','1121221rmjpSz','6446295mmhnMh','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','12sUftXE','data','presentation','confirmation','result','717829lfWyJH','8TrmEhQ','confirm','high-risk-write','3582870eUGVJA','risk','format','dry-run','3351Tmhgfa','9876980sheOCC','2660292PdwFhd','rawFlags','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','reason','definition','command'];a256_0x7c21=function(){return _0x3178b9;};return a256_0x7c21();}import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x431cfd,command:_0x3f755e,risk:_0x137c8f,dryRun:_0x4e6923}){const _0x21ba77=a256_0xef62;return JSON[_0x21ba77(0x80)]({'ok':_0x431cfd['ok'],'command':_0x3f755e,'risk':_0x137c8f,..._0x4e6923?{'dryRun':!![]}:{},..._0x431cfd[_0x21ba77(0x86)]!==undefined?{'data':_0x431cfd[_0x21ba77(0x86)]}:{},..._0x431cfd[_0x21ba77(0x7e)]?{'message':_0x431cfd['message']}:{}});}};export async function invokeRabetbase(_0xae8f8f,_0x21cbd4){const _0x374e70=a256_0xef62;throwIfAborted(_0x21cbd4[_0x374e70(0x7a)]);const _0x150fd9=await resolveRabetbaseInvocation(_0xae8f8f),_0x2a89cd=canonicalRabetbaseOperation(_0x150fd9[_0x374e70(0x98)]);return await confirmWriteBeforeQueue(_0x150fd9[_0x374e70(0x98)],_0x150fd9[_0x374e70(0x95)],_0x2a89cd,_0x21cbd4),runSerialized(async()=>{const _0x34bda8=_0x374e70,_0x26c5c4={};try{throwIfAborted(_0x21cbd4[_0x34bda8(0x7a)]);const _0x33f958=buildConfigFromFlags(_0x150fd9['rawFlags']);await initGlobalEnvironment(_0x33f958);const _0x67ca41=createPipelineEnv(_0x33f958,{..._0x150fd9[_0x34bda8(0x95)],'yes':_0x150fd9[_0x34bda8(0x98)][_0x34bda8(0x8f)]==='high-risk-write'?!![]:_0x150fd9[_0x34bda8(0x95)]['yes'],'nonInteractive':!![]},_0x150fd9[_0x34bda8(0x78)]);_0x67ca41['isNonInteractive']=!![],_0x67ca41['riskLevel']=_0x34bda8(0x8d);const _0x362b3c=withAbortSignal(_0x150fd9[_0x34bda8(0x98)],_0x21cbd4[_0x34bda8(0x7a)]),_0x5939e7=createRabetbaseRunnerAdapter({'formatOutput'(_0x213df7,_0x17ec47){const _0x41d35a=_0x34bda8;_0x26c5c4[_0x41d35a(0x89)]=_0x213df7,_0x26c5c4[_0x41d35a(0x99)]=_0x17ec47[_0x41d35a(0x99)],_0x26c5c4['risk']=_0x17ec47[_0x41d35a(0x8f)],_0x26c5c4['format']=_0x17ec47[_0x41d35a(0x90)],_0x26c5c4['dryRun']=_0x17ec47[_0x41d35a(0x7d)]===!![];},async 'confirmHighRisk'(){const _0xd87344=_0x34bda8;throw new Error(_0xd87344(0x96));}});await runCommand(_0x362b3c,_0x67ca41,_0x5939e7);if(!_0x26c5c4[_0x34bda8(0x89)]||!_0x26c5c4[_0x34bda8(0x99)]||!_0x26c5c4['risk']||!_0x26c5c4[_0x34bda8(0x90)])throw new Error(_0x34bda8(0x84));const _0x327872=_0x26c5c4[_0x34bda8(0x7d)]===!![],_0x21aa0b=_0x21cbd4[_0x34bda8(0x87)]??defaultPresentation,_0x12e507={'result':_0x26c5c4['result'],'command':_0x26c5c4['command'],'operation':_0x2a89cd,'risk':_0x26c5c4['risk'],'format':_0x26c5c4[_0x34bda8(0x90)],'dryRun':_0x327872},_0x268f30=createRabetbaseWriteMetadata(_0x150fd9['definition'],_0x2a89cd,_0x26c5c4[_0x34bda8(0x89)],_0x327872);let _0x48f68a;try{_0x48f68a=await _0x21aa0b[_0x34bda8(0x7c)](_0x12e507);}catch(_0x1c76a8){if(!_0x268f30||_0x21aa0b===defaultPresentation)throw _0x1c76a8;_0x48f68a=await defaultPresentation[_0x34bda8(0x7c)](_0x12e507);}return{'operation':_0x2a89cd,'risk':_0x26c5c4['risk'],'mode':_0x327872?_0x34bda8(0x91):_0x34bda8(0x81),'result':_0x26c5c4[_0x34bda8(0x89)],'output':_0x48f68a,..._0x268f30?{'metadata':_0x268f30}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x50a5c2,_0x3da799,_0x441776,_0x53c657){const _0x5df4d7=a256_0xef62;if(_0x3da799[_0x5df4d7(0x7d)]===!![]||_0x50a5c2[_0x5df4d7(0x8f)]!=='write'&&_0x50a5c2[_0x5df4d7(0x8f)]!==_0x5df4d7(0x8d))return;await _0x53c657[_0x5df4d7(0x88)][_0x5df4d7(0x8c)](buildRabetbaseConfirmationRequest(_0x50a5c2,_0x441776,_0x53c657[_0x5df4d7(0x7a)]));}function withAbortSignal(_0x5200ca,_0x1feee8){return{..._0x5200ca,async 'execute'(_0xd38126){return throwIfAborted(_0x1feee8),_0x5200ca['execute'](_0xd38126);}};}function throwIfAborted(_0x2d11d5){const _0x32cc10=a256_0xef62;if(_0x2d11d5?.[_0x32cc10(0x9a)])throw _0x2d11d5[_0x32cc10(0x97)]instanceof Error?_0x2d11d5[_0x32cc10(0x97)]:new DOMException(_0x32cc10(0x7f),_0x32cc10(0x79));}
@@ -1 +1 @@
1
- function a246_0x52ba(_0x4c05d3,_0x4b393c){_0x4c05d3=_0x4c05d3-0xdb;const _0x101cd7=a246_0x101c();let _0x52ba9f=_0x101cd7[_0x4c05d3];return _0x52ba9f;}const a246_0x152857=a246_0x52ba;(function(_0x513db6,_0x4b2af9){const _0x4a1301=a246_0x52ba,_0x169076=_0x513db6();while(!![]){try{const _0xcedde8=-parseInt(_0x4a1301(0xe2))/0x1*(-parseInt(_0x4a1301(0xe7))/0x2)+parseInt(_0x4a1301(0xdf))/0x3*(parseInt(_0x4a1301(0xe8))/0x4)+parseInt(_0x4a1301(0xdd))/0x5*(parseInt(_0x4a1301(0xe0))/0x6)+parseInt(_0x4a1301(0xde))/0x7*(-parseInt(_0x4a1301(0xdb))/0x8)+parseInt(_0x4a1301(0xdc))/0x9+-parseInt(_0x4a1301(0xe5))/0xa*(parseInt(_0x4a1301(0xe4))/0xb)+-parseInt(_0x4a1301(0xe3))/0xc;if(_0xcedde8===_0x4b2af9)break;else _0x169076['push'](_0x169076['shift']());}catch(_0x304c09){_0x169076['push'](_0x169076['shift']());}}}(a246_0x101c,0x1ff95));let tail=Promise[a246_0x152857(0xe1)]();export async function runSerialized(_0x1186e9){const _0x8e9360=a246_0x152857,_0x21444d=tail;let _0x47085e;tail=new Promise(_0x386b29=>{_0x47085e=_0x386b29;}),await _0x21444d[_0x8e9360(0xe6)](()=>undefined);try{return await _0x1186e9();}finally{_0x47085e();}}function a246_0x101c(){const _0x779fbe=['catch','10kjjAkP','36gghwoB','69496ErjmTm','1767564rIfgeJ','5OGbJwW','189hVXOTh','57003VjvZGq','599604ZEiPAI','resolve','36397BvUjfG','1594020VmpLVz','1660725XKkDOh','10jqRbfY'];a246_0x101c=function(){return _0x779fbe;};return a246_0x101c();}
1
+ (function(_0x23daf0,_0x270bcd){const _0xa70ac9=a257_0x1f7f,_0x24b28a=_0x23daf0();while(!![]){try{const _0x4cd701=parseInt(_0xa70ac9(0x11a))/0x1+-parseInt(_0xa70ac9(0x11c))/0x2*(parseInt(_0xa70ac9(0x11d))/0x3)+parseInt(_0xa70ac9(0x117))/0x4*(-parseInt(_0xa70ac9(0x115))/0x5)+parseInt(_0xa70ac9(0x11b))/0x6+-parseInt(_0xa70ac9(0x11e))/0x7+parseInt(_0xa70ac9(0x119))/0x8+parseInt(_0xa70ac9(0x116))/0x9*(parseInt(_0xa70ac9(0x118))/0xa);if(_0x4cd701===_0x270bcd)break;else _0x24b28a['push'](_0x24b28a['shift']());}catch(_0x124254){_0x24b28a['push'](_0x24b28a['shift']());}}}(a257_0x5938,0xc276e));let tail=Promise['resolve']();function a257_0x1f7f(_0x574313,_0x191998){_0x574313=_0x574313-0x115;const _0x5938b1=a257_0x5938();let _0x1f7f16=_0x5938b1[_0x574313];return _0x1f7f16;}export async function runSerialized(_0x4e825c){const _0x2484dd=tail;let _0x5c82f2;tail=new Promise(_0x251cbf=>{_0x5c82f2=_0x251cbf;}),await _0x2484dd['catch'](()=>undefined);try{return await _0x4e825c();}finally{_0x5c82f2();}}function a257_0x5938(){const _0x460497=['891RxhzxU','8rWLKlS','338740htkosK','1275160hnxDTs','318879mDiOMA','1413156JSjxIZ','2657498oydRmF','3zmaxTM','6008093WXkWdA','2709380ZpAwTX'];a257_0x5938=function(){return _0x460497;};return a257_0x5938();}
@@ -1 +1 @@
1
- function a247_0x5daf(_0x1d03f0,_0x5ef8fa){_0x1d03f0=_0x1d03f0-0x14d;const _0x5a61b9=a247_0x5a61();let _0x5daf73=_0x5a61b9[_0x1d03f0];return _0x5daf73;}(function(_0x308add,_0x181a97){const _0x34261f=a247_0x5daf,_0x222172=_0x308add();while(!![]){try{const _0x359eb9=-parseInt(_0x34261f(0x15a))/0x1*(parseInt(_0x34261f(0x157))/0x2)+parseInt(_0x34261f(0x15b))/0x3+-parseInt(_0x34261f(0x14d))/0x4+-parseInt(_0x34261f(0x154))/0x5+parseInt(_0x34261f(0x158))/0x6*(parseInt(_0x34261f(0x160))/0x7)+parseInt(_0x34261f(0x15e))/0x8*(parseInt(_0x34261f(0x155))/0x9)+parseInt(_0x34261f(0x152))/0xa*(-parseInt(_0x34261f(0x15d))/0xb);if(_0x359eb9===_0x181a97)break;else _0x222172['push'](_0x222172['shift']());}catch(_0x22f96a){_0x222172['push'](_0x222172['shift']());}}}(a247_0x5a61,0x45106));import a247_0x45f76c from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveRabetbaseInvocation(_0x9de578){const _0x34bf2e=a247_0x5daf,_0x154766=a247_0x45f76c('',{'importMeta':import.meta,'argv':[..._0x9de578],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x39ed8c=[..._0x154766[_0x34bf2e(0x159)]],_0x2f5050=_0x154766['flags'],_0x4afe58=_0x39ed8c[0x0];if(!_0x4afe58)throw CliErrors[_0x34bf2e(0x151)]('Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.');const _0x57f3d5=resolveRemovedCommand(_0x4afe58,_0x39ed8c[0x1]);if(_0x57f3d5)throw CliErrors['validation'](_0x57f3d5['message'],_0x57f3d5[_0x34bf2e(0x15f)]);if(_0x4afe58===_0x34bf2e(0x156))throw CliErrors['validation'](_0x34bf2e(0x150),'Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.');if(!isKnownService(_0x4afe58))throw CliErrors[_0x34bf2e(0x14e)](_0x39ed8c['join']('\x20'));const _0x21d38f=getServiceEntry(_0x4afe58),_0x2cea36=_0x39ed8c[0x1],_0x43f4ce=_0x2cea36||_0x21d38f[_0x34bf2e(0x14f)];if(!_0x43f4ce){if(_0x21d38f[_0x34bf2e(0x153)])return{'definition':_0x21d38f['wildcardDef'],'rawFlags':_0x2f5050,'args':[]};throw CliErrors['validation']('Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x4afe58+'\x22.');}const _0x30ce4f=findDefinition(_0x4afe58,_0x43f4ce);if(_0x30ce4f)return{'definition':_0x30ce4f,'rawFlags':_0x2f5050,'args':_0x39ed8c[_0x34bf2e(0x15c)](0x2)};if(_0x21d38f['wildcardDef'])return{'definition':_0x21d38f[_0x34bf2e(0x153)],'rawFlags':_0x2f5050,'args':[_0x43f4ce,..._0x39ed8c[_0x34bf2e(0x15c)](0x2)]};throw CliErrors['unknownCommand'](_0x4afe58+'\x20'+_0x43f4ce);}function a247_0x5a61(){const _0xe098e7=['206569MriKJB','1463216khPVdB','hint','33509QBZDvR','1544536PGxvAR','unknownCommand','defaultCommand','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','validation','130dGbYFu','wildcardDef','459900wQQBVr','27svSrqU','run','914HlNXce','456VhwLhF','input','233WHufQK','597270FEjAgV','slice'];a247_0x5a61=function(){return _0xe098e7;};return a247_0x5a61();}
1
+ (function(_0x18fe22,_0x505fd2){const _0x32ccc6=a258_0x5056,_0x4f5ad0=_0x18fe22();while(!![]){try{const _0x3df1f7=-parseInt(_0x32ccc6(0x8e))/0x1*(parseInt(_0x32ccc6(0x7b))/0x2)+parseInt(_0x32ccc6(0x85))/0x3+-parseInt(_0x32ccc6(0x87))/0x4*(parseInt(_0x32ccc6(0x7d))/0x5)+-parseInt(_0x32ccc6(0x7c))/0x6+parseInt(_0x32ccc6(0x8c))/0x7*(-parseInt(_0x32ccc6(0x77))/0x8)+-parseInt(_0x32ccc6(0x84))/0x9+-parseInt(_0x32ccc6(0x8a))/0xa*(-parseInt(_0x32ccc6(0x86))/0xb);if(_0x3df1f7===_0x505fd2)break;else _0x4f5ad0['push'](_0x4f5ad0['shift']());}catch(_0x4effdf){_0x4f5ad0['push'](_0x4f5ad0['shift']());}}}(a258_0x4758,0x52120));import a258_0x486b0f from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';function a258_0x5056(_0x5940c1,_0x9bc808){_0x5940c1=_0x5940c1-0x77;const _0x47585b=a258_0x4758();let _0x505680=_0x47585b[_0x5940c1];return _0x505680;}function a258_0x4758(){const _0x39044a=['wildcardDef','validation','1235232nMAHtv','1514616vpEOmc','275oBrrod','4HcLfKB','message','hint','544300crInCD','unknownCommand','2325519QiILzU','join','1xoCaMB','8kBjOmk','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','input','flags','415138vmeRmK','1273518lhkgog','3200875GKFurB','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.','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','slice'];a258_0x4758=function(){return _0x39044a;};return a258_0x4758();}import{CliErrors}from'../errors.js';export async function resolveRabetbaseInvocation(_0x26c06e){const _0x3d09d3=a258_0x5056,_0x43fa42=a258_0x486b0f('',{'importMeta':import.meta,'argv':[..._0x26c06e],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x19cf05=[..._0x43fa42[_0x3d09d3(0x79)]],_0x101b61=_0x43fa42[_0x3d09d3(0x7a)],_0x4b5759=_0x19cf05[0x0];if(!_0x4b5759)throw CliErrors[_0x3d09d3(0x83)](_0x3d09d3(0x80));const _0x1e1f45=resolveRemovedCommand(_0x4b5759,_0x19cf05[0x1]);if(_0x1e1f45)throw CliErrors[_0x3d09d3(0x83)](_0x1e1f45[_0x3d09d3(0x88)],_0x1e1f45[_0x3d09d3(0x89)]);if(_0x4b5759==='run')throw CliErrors[_0x3d09d3(0x83)](_0x3d09d3(0x7f),_0x3d09d3(0x7e));if(!isKnownService(_0x4b5759))throw CliErrors[_0x3d09d3(0x8b)](_0x19cf05[_0x3d09d3(0x8d)]('\x20'));const _0x2a3b8c=getServiceEntry(_0x4b5759),_0xd09a45=_0x19cf05[0x1],_0x2817c8=_0xd09a45||_0x2a3b8c['defaultCommand'];if(!_0x2817c8){if(_0x2a3b8c[_0x3d09d3(0x82)])return{'definition':_0x2a3b8c['wildcardDef'],'rawFlags':_0x101b61,'args':[]};throw CliErrors[_0x3d09d3(0x83)](_0x3d09d3(0x78)+_0x4b5759+'\x22.');}const _0x50f0d3=findDefinition(_0x4b5759,_0x2817c8);if(_0x50f0d3)return{'definition':_0x50f0d3,'rawFlags':_0x101b61,'args':_0x19cf05[_0x3d09d3(0x81)](0x2)};if(_0x2a3b8c['wildcardDef'])return{'definition':_0x2a3b8c['wildcardDef'],'rawFlags':_0x101b61,'args':[_0x2817c8,..._0x19cf05['slice'](0x2)]};throw CliErrors[_0x3d09d3(0x8b)](_0x4b5759+'\x20'+_0x2817c8);}
@@ -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_0x5c8bdb=a260_0x1da3;(function(_0x3521d1,_0x1de1cb){const _0x131546=a260_0x1da3,_0x50e776=_0x3521d1();while(!![]){try{const _0x4fdc32=parseInt(_0x131546(0x1d9))/0x1*(-parseInt(_0x131546(0x1de))/0x2)+parseInt(_0x131546(0x1da))/0x3+parseInt(_0x131546(0x1b0))/0x4*(-parseInt(_0x131546(0x1b2))/0x5)+parseInt(_0x131546(0x1e7))/0x6+parseInt(_0x131546(0x1cb))/0x7*(-parseInt(_0x131546(0x1d7))/0x8)+-parseInt(_0x131546(0x1bf))/0x9+parseInt(_0x131546(0x1cc))/0xa;if(_0x4fdc32===_0x1de1cb)break;else _0x50e776['push'](_0x50e776['shift']());}catch(_0x2fb3a0){_0x50e776['push'](_0x50e776['shift']());}}}(a260_0x3876,0xf1443));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';function a260_0x1da3(_0x13164a,_0x40f396){_0x13164a=_0x13164a-0x1aa;const _0x3876=a260_0x3876();let _0x1da3e3=_0x3876[_0x13164a];return _0x1da3e3;}import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a260_0x5c8bdb(0x1e4),SKILL_NAME=a260_0x5c8bdb(0x1d2);function frontmatterValue(_0x57defb,_0x37ec9d){const _0x3d57d4=a260_0x5c8bdb;return _0x57defb[_0x3d57d4(0x1bc)](new RegExp('^'+_0x37ec9d+':\x5cs*(.+)$','m'))?.[0x1]?.[_0x3d57d4(0x1b5)]()??'';}function listFiles(_0x19416c,_0x908cd2=_0x19416c){const _0x3ec162=a260_0x5c8bdb;return readdirSync(_0x908cd2,{'withFileTypes':!![]})[_0x3ec162(0x1d6)](_0x407f23=>{const _0x2d3c73=_0x3ec162,_0x5da967=join(_0x908cd2,_0x407f23[_0x2d3c73(0x1b4)]),_0x8b465=lstatSync(_0x5da967);if(_0x8b465[_0x2d3c73(0x1b8)]())throw new Error(_0x2d3c73(0x1c0)+_0x5da967);if(_0x8b465[_0x2d3c73(0x1d3)]())return listFiles(_0x19416c,_0x5da967);if(!_0x8b465['isFile']())throw new Error(_0x2d3c73(0x1b3)+_0x5da967);return[relative(_0x19416c,_0x5da967)[_0x2d3c73(0x1dc)](sep)['join']('/')];})[_0x3ec162(0x1c9)]((_0x223121,_0x315721)=>_0x223121<_0x315721?-0x1:_0x223121>_0x315721?0x1:0x0);}function digestFiles(_0x18a4e7,_0x5f555c){const _0x2e11d4=a260_0x5c8bdb,_0x204b1b=createHash(_0x2e11d4(0x1d8));for(const _0x592ded of _0x5f555c){if(_0x592ded['startsWith']('/')||_0x592ded[_0x2e11d4(0x1dc)]('/')[_0x2e11d4(0x1db)]('..')||_0x592ded['includes']('\x5c'))throw new Error(_0x2e11d4(0x1dd)+_0x592ded);_0x204b1b[_0x2e11d4(0x1af)](_0x592ded),_0x204b1b[_0x2e11d4(0x1af)]('\x00'),_0x204b1b[_0x2e11d4(0x1af)](readFileSync(join(_0x18a4e7,..._0x592ded[_0x2e11d4(0x1dc)]('/')))),_0x204b1b[_0x2e11d4(0x1af)]('\x00');}return _0x204b1b[_0x2e11d4(0x1c3)](_0x2e11d4(0x1e2));}function sameFiles(_0x46a5bd,_0x4e2886){const _0x247538=a260_0x5c8bdb;return _0x46a5bd[_0x247538(0x1c8)]===_0x4e2886[_0x247538(0x1c8)]&&_0x46a5bd[_0x247538(0x1ae)]((_0x1390a7,_0x342532)=>_0x1390a7===_0x4e2886[_0x342532]);}function readSource(_0x3a2203){const _0x409b58=a260_0x5c8bdb,_0x2ca14d=JSON['parse'](readFileSync(join(_0x3a2203,_0x409b58(0x1ea)),_0x409b58(0x1be))),_0x576e30=JSON['parse'](readFileSync(join(_0x3a2203,_0x409b58(0x1ad),_0x409b58(0x1df)),_0x409b58(0x1be))),_0x32f715=join(_0x3a2203,_0x409b58(0x1ad),SKILL_NAME),_0x315f75=frontmatterValue(readFileSync(join(_0x32f715,_0x409b58(0x1b7)),_0x409b58(0x1be)),_0x409b58(0x1d5)),_0x182ee9=listFiles(_0x32f715);if(_0x576e30[_0x409b58(0x1c4)]!==0x1||_0x576e30[_0x409b58(0x1b4)]!==SKILL_NAME||!_0x2ca14d[_0x409b58(0x1d5)]||_0x576e30[_0x409b58(0x1c1)]!==_0x2ca14d[_0x409b58(0x1d5)]||_0x576e30[_0x409b58(0x1ba)]!==_0x2ca14d[_0x409b58(0x1d5)]||_0x315f75!==_0x2ca14d[_0x409b58(0x1d5)]||!sameFiles(_0x182ee9,_0x576e30['files'])||digestFiles(_0x32f715,_0x182ee9)!==_0x576e30[_0x409b58(0x1c3)])throw new Error(_0x409b58(0x1e1));return{'packageVersion':_0x2ca14d['version'],'skillVersion':_0x315f75,'root':_0x32f715,'manifest':_0x576e30};}function installedSkillPath(_0xff55b1){const _0x4b2bea=a260_0x5c8bdb,_0x38f2dc=resolveInstalledSkill(SKILL_NAME,{'home':_0xff55b1});if(_0x38f2dc['state']==='present')return{'state':'present','path':dirname(_0x38f2dc[_0x4b2bea(0x1e5)])};if(_0x38f2dc['state']===_0x4b2bea(0x1cd))return{'state':_0x4b2bea(0x1e6)};return{'state':_0x4b2bea(0x1bb),'reason':_0x38f2dc[_0x4b2bea(0x1c7)]};}export function inspectInstalledBuiltinSkillVersion(_0x28f567,_0x25f470={}){const _0x4a8c6a=a260_0x5c8bdb,_0x49ff25=installedSkillPath(_0x25f470[_0x4a8c6a(0x1d1)]??homedir());if(_0x49ff25[_0x4a8c6a(0x1bd)]===_0x4a8c6a(0x1e6))return{'state':_0x4a8c6a(0x1e6),'expectedVersion':_0x28f567,'repairCommand':REPAIR_COMMAND};if(_0x49ff25[_0x4a8c6a(0x1bd)]===_0x4a8c6a(0x1bb))return{'state':_0x4a8c6a(0x1bb),'expectedVersion':_0x28f567,'reason':_0x49ff25['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x14bd08=frontmatterValue(readFileSync(join(_0x49ff25[_0x4a8c6a(0x1e5)],_0x4a8c6a(0x1b7)),_0x4a8c6a(0x1be)),_0x4a8c6a(0x1d5));return{'state':_0x14bd08===_0x28f567?_0x4a8c6a(0x1c2):'version_mismatch','expectedVersion':_0x28f567,'skillVersion':_0x14bd08,'installedPath':_0x49ff25[_0x4a8c6a(0x1e5)],'repairCommand':REPAIR_COMMAND};}catch(_0x420423){return{'state':_0x4a8c6a(0x1bb),'expectedVersion':_0x28f567,'installedPath':_0x49ff25[_0x4a8c6a(0x1e5)],'reason':_0x420423 instanceof Error?_0x420423['message']:String(_0x420423),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x1d6179={}){const _0xe12334=a260_0x5c8bdb,_0x135572=_0x1d6179[_0xe12334(0x1c5)]??DEFAULT_PACKAGE_ROOT;let _0x152746;try{_0x152746=readSource(_0x135572);}catch(_0x109149){return{'state':'unverifiable','packageVersion':_0xe12334(0x1e8),'reason':_0x109149 instanceof Error?_0x109149[_0xe12334(0x1aa)]:String(_0x109149),'repairCommand':REPAIR_COMMAND};}const _0xa9c3cc=installedSkillPath(_0x1d6179[_0xe12334(0x1d1)]??homedir());if(_0xa9c3cc[_0xe12334(0x1bd)]===_0xe12334(0x1e6))return{'state':_0xe12334(0x1e6),'packageVersion':_0x152746[_0xe12334(0x1c1)],'repairCommand':REPAIR_COMMAND};if(_0xa9c3cc[_0xe12334(0x1bd)]===_0xe12334(0x1bb))return{'state':_0xe12334(0x1bb),'packageVersion':_0x152746[_0xe12334(0x1c1)],'reason':_0xa9c3cc['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x3b539b=frontmatterValue(readFileSync(join(_0xa9c3cc[_0xe12334(0x1e5)],'SKILL.md'),_0xe12334(0x1be)),'version');if(_0x3b539b!==_0x152746[_0xe12334(0x1ba)])return{'state':_0xe12334(0x1d0),'packageVersion':_0x152746['packageVersion'],'skillVersion':_0x3b539b,'installedPath':_0xa9c3cc['path'],'repairCommand':REPAIR_COMMAND};const _0x19447e=listFiles(_0xa9c3cc[_0xe12334(0x1e5)]),_0x119bdf=digestFiles(_0xa9c3cc[_0xe12334(0x1e5)],_0x19447e);return{'state':sameFiles(_0x19447e,_0x152746[_0xe12334(0x1c6)]['files'])&&_0x119bdf===_0x152746[_0xe12334(0x1c6)]['digest']?'current':_0xe12334(0x1b1),'packageVersion':_0x152746[_0xe12334(0x1c1)],'skillVersion':_0x3b539b,'installedPath':_0xa9c3cc[_0xe12334(0x1e5)],'digest':_0x119bdf,'repairCommand':REPAIR_COMMAND};}catch(_0x4ff0e7){return{'state':_0xe12334(0x1bb),'packageVersion':_0x152746[_0xe12334(0x1c1)],'installedPath':_0xa9c3cc[_0xe12334(0x1e5)],'reason':_0x4ff0e7 instanceof Error?_0x4ff0e7[_0xe12334(0x1aa)]:String(_0x4ff0e7),'repairCommand':REPAIR_COMMAND};}}function failure(_0x4a94df,_0x1c85bd,_0x47f2d5,_0x5262cb){const _0x2e5c11=a260_0x5c8bdb;return{'ok':![],'code':_0x4a94df,'packageVersion':_0x1c85bd[_0x2e5c11(0x1c1)],'skillVersion':_0x1c85bd['skillVersion'],'installedPath':_0x5262cb,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x47f2d5 instanceof Error?_0x47f2d5[_0x2e5c11(0x1aa)]:String(_0x47f2d5)};}function a260_0x3876(){const _0x1bc4f6=['flatMap','22888ldkeaH','sha256','127AgOqyi','1919835aFWHvL','includes','split','Unsafe\x20manifest\x20path:\x20','974lDcrFD','rabetbase.manifest.json','status','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','hex','skipped','rabetbase\x20cli-skill\x20install','path','missing','7842732YlLKTQ','unknown','installedPath','package.json','message','stdio','VERIFY_FAILED','skills','every','update','4gliXuu','content_mismatch','2792545OTHLFb','Unsupported\x20Skill\x20entry:\x20','name','trim','Installed\x20Skill\x20state\x20is\x20','SKILL.md','isSymbolicLink','skills@latest\x20exited\x20','skillVersion','unverifiable','match','state','utf8','15974415DyRvKn','Symbolic\x20link\x20is\x20not\x20allowed:\x20','packageVersion','current','digest','schemaVersion','packageRoot','manifest','reason','length','sort','error','2905oNTTLG','26237680joENRG','absent','root','SOURCE_INVALID','version_mismatch','home','rabetbase','isDirectory','INSTALL_FAILED','version'];a260_0x3876=function(){return _0x1bc4f6;};return a260_0x3876();}export function installBuiltinSkill(_0x5cc957={}){const _0x442e0a=a260_0x5c8bdb,_0x12baa9=_0x5cc957[_0x442e0a(0x1c5)]??DEFAULT_PACKAGE_ROOT,_0x390f0f=_0x5cc957['home']??homedir();let _0x39c057;try{_0x39c057=readSource(_0x12baa9);}catch(_0x1bc5ba){return failure(_0x442e0a(0x1cf),{'packageVersion':_0x442e0a(0x1e8),'skillVersion':_0x442e0a(0x1e8)},_0x1bc5ba);}const _0x1b4915=inspectBuiltinSkill({'packageRoot':_0x12baa9,'home':_0x390f0f}),_0xadc4e=runNpxSkillsAddGlobal(_0x12baa9,_0x39c057[_0x442e0a(0x1ce)],{'stdio':_0x5cc957[_0x442e0a(0x1ab)]??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0x390f0f}});if(_0xadc4e[_0x442e0a(0x1e3)])return{'ok':!![],'packageVersion':_0x39c057[_0x442e0a(0x1c1)],'skillVersion':_0x39c057['skillVersion'],'installedPath':_0x1b4915[_0x442e0a(0x1e9)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0xadc4e['ok'])return failure(_0x442e0a(0x1d4),_0x39c057,_0xadc4e[_0x442e0a(0x1ca)]??_0x442e0a(0x1b9)+_0xadc4e[_0x442e0a(0x1e0)]);const _0x2eb26e=inspectBuiltinSkill({'packageRoot':_0x12baa9,'home':_0x390f0f});if(_0x2eb26e[_0x442e0a(0x1bd)]!=='current')return failure(_0x442e0a(0x1ac),_0x39c057,_0x2eb26e['reason']??_0x442e0a(0x1b6)+_0x2eb26e[_0x442e0a(0x1bd)],_0x2eb26e[_0x442e0a(0x1e9)]);return{'ok':!![],'packageVersion':_0x39c057[_0x442e0a(0x1c1)],'skillVersion':_0x39c057[_0x442e0a(0x1ba)],'installedPath':_0x2eb26e['installedPath'],'changed':_0x1b4915[_0x442e0a(0x1bd)]!==_0x442e0a(0x1c2),'repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
1
- (function(_0x5debff,_0x98df80){const _0x16441e=a249_0x5c23,_0x11c488=_0x5debff();while(!![]){try{const _0x5061f9=-parseInt(_0x16441e(0x16f))/0x1+parseInt(_0x16441e(0x16b))/0x2*(-parseInt(_0x16441e(0x184))/0x3)+-parseInt(_0x16441e(0x17d))/0x4+-parseInt(_0x16441e(0x181))/0x5*(parseInt(_0x16441e(0x176))/0x6)+parseInt(_0x16441e(0x180))/0x7*(-parseInt(_0x16441e(0x16d))/0x8)+parseInt(_0x16441e(0x186))/0x9+-parseInt(_0x16441e(0x171))/0xa*(-parseInt(_0x16441e(0x179))/0xb);if(_0x5061f9===_0x98df80)break;else _0x11c488['push'](_0x11c488['shift']());}catch(_0x37e77d){_0x11c488['push'](_0x11c488['shift']());}}}(a249_0x347d,0x51c93));function a249_0x347d(){const _0x39546a=['40642qdbYiA','\x0aAvailable\x20commands:','3170cSkeZy','(empty)','dangerously-bff-save','log','exit','6066gIhbed','from','enable-bff-save','11110KGuulQ','argv','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','push','10064JLorjB','add','has','5943OadMLQ','405ZDkJkY','\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20','error','15BuGuCF','-$1','5784048EKASFe','slice','--help','Error:\x20Unsupported\x20command:\x20','length','skill','setLogPath','help','49318lZmssg','toLowerCase','3576dWGvHm','replace'];a249_0x347d=function(){return _0x39546a;};return a249_0x347d();}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(_0x447db7){const _0x163b65=a249_0x5c23,_0x2b5a68=[];for(const [_0x107035,_0x36491c]of Object['entries'](_0x447db7)){if(_0x36491c===!![]){const _0x169af3=_0x107035[_0x163b65(0x16e)](/([A-Z])/g,_0x163b65(0x185))[_0x163b65(0x16c)]();_0x2b5a68[_0x163b65(0x17c)](_0x169af3);}}return _0x2b5a68;}export function parseDynamicFlags(){const _0x192cc7=a249_0x5c23,_0x396c1c=[];for(let _0x4e76ff=0x3;_0x4e76ff<process[_0x192cc7(0x17a)][_0x192cc7(0x167)];_0x4e76ff++){const _0x4ff981=process[_0x192cc7(0x17a)][_0x4e76ff];if(_0x4ff981&&_0x4ff981['startsWith']('--')){const _0x515410=_0x4ff981[_0x192cc7(0x187)](0x2);_0x515410&&!_0x515410['includes']('=')&&_0x396c1c[_0x192cc7(0x17c)](_0x515410);}}return _0x396c1c;}export function getAllProvidedFlags(_0x248685){const _0xf1c630=a249_0x5c23,_0x13eeb8=camelCaseFlagsToKebab(_0x248685),_0x4672de=parseDynamicFlags(),_0x51befc=new Set([..._0x13eeb8,..._0x4672de]);return Array[_0xf1c630(0x177)](_0x51befc);}function a249_0x5c23(_0x252edd,_0x56b173){_0x252edd=_0x252edd-0x165;const _0x347d56=a249_0x347d();let _0x5c23b3=_0x347d56[_0x252edd];return _0x5c23b3;}export function normalizeLegacyBffSaveFlags(_0x42e5d9){const _0x15824f=a249_0x5c23,_0x47ced4=new Set(_0x42e5d9);return _0x47ced4[_0x15824f(0x17f)](_0x15824f(0x173))&&_0x47ced4[_0x15824f(0x17e)](_0x15824f(0x178)),Array[_0x15824f(0x177)](_0x47ced4);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x3e373f,_0x19f8f6,_0x517b78){const _0x2c60f1=a249_0x5c23;logger[_0x2c60f1(0x169)](process['cwd']());if(_0x517b78?.[_0x2c60f1(0x16a)]||_0x3e373f===_0x2c60f1(0x165)){showHelp();return;}console[_0x2c60f1(0x183)](_0x2c60f1(0x166)+(_0x3e373f||_0x2c60f1(0x172))),console[_0x2c60f1(0x174)](_0x2c60f1(0x170)),console[_0x2c60f1(0x174)]('\x20\x20'+CLI_BIN_NAME+_0x2c60f1(0x17b)),console[_0x2c60f1(0x174)](''),console[_0x2c60f1(0x174)]('Equivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0x2c60f1(0x183)](_0x2c60f1(0x168),'不支持的命令:\x20'+_0x3e373f),process[_0x2c60f1(0x175)](0x1);}function showHelp(){const _0x1a591e=a249_0x5c23;console[_0x1a591e(0x174)]('\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x1a591e(0x182)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a');}
1
+ (function(_0x240794,_0x3a21be){const _0x5cc50a=a261_0x1b01,_0x404bbc=_0x240794();while(!![]){try{const _0x153c7a=-parseInt(_0x5cc50a(0x19d))/0x1+-parseInt(_0x5cc50a(0x195))/0x2+-parseInt(_0x5cc50a(0x1a6))/0x3+-parseInt(_0x5cc50a(0x1a4))/0x4*(-parseInt(_0x5cc50a(0x1a8))/0x5)+parseInt(_0x5cc50a(0x1b0))/0x6+-parseInt(_0x5cc50a(0x1b5))/0x7+parseInt(_0x5cc50a(0x1a3))/0x8;if(_0x153c7a===_0x3a21be)break;else _0x404bbc['push'](_0x404bbc['shift']());}catch(_0x1a9bf4){_0x404bbc['push'](_0x404bbc['shift']());}}}(a261_0xd160,0xd820f));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(_0x337e0d){const _0x22d5d5=a261_0x1b01,_0x4153ff=[];for(const [_0x1dd026,_0x5b39f6]of Object[_0x22d5d5(0x197)](_0x337e0d)){if(_0x5b39f6===!![]){const _0x36fde2=_0x1dd026[_0x22d5d5(0x19c)](/([A-Z])/g,_0x22d5d5(0x1b1))['toLowerCase']();_0x4153ff['push'](_0x36fde2);}}return _0x4153ff;}function a261_0xd160(){const _0x4ef110=['skill','5bbhMLw','log','startsWith','--help','不支持的命令:\x20','setLogPath','error','from','9204312NVofIQ','-$1','(empty)','argv','Public\x20Open\x20Skill\x20source:\x20','7571816QVutPz','1022532dGurGe','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','entries','enable-bff-save','add','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','length','replace','213665VuvbUg','\x0aAvailable\x20commands:','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','help','Error:\x20Unsupported\x20command:\x20','push','1364144ERiPIG','5845412jAbyLj','exit','1422123jXUvuc'];a261_0xd160=function(){return _0x4ef110;};return a261_0xd160();}export function parseDynamicFlags(){const _0x38bed0=a261_0x1b01,_0x48a86d=[];for(let _0xde78da=0x3;_0xde78da<process[_0x38bed0(0x1b3)][_0x38bed0(0x19b)];_0xde78da++){const _0x46ba2c=process[_0x38bed0(0x1b3)][_0xde78da];if(_0x46ba2c&&_0x46ba2c[_0x38bed0(0x1aa)]('--')){const _0x867d31=_0x46ba2c['slice'](0x2);_0x867d31&&!_0x867d31['includes']('=')&&_0x48a86d[_0x38bed0(0x1a2)](_0x867d31);}}return _0x48a86d;}export function getAllProvidedFlags(_0x25cb86){const _0x33a3f1=a261_0x1b01,_0x38ee71=camelCaseFlagsToKebab(_0x25cb86),_0x3e291a=parseDynamicFlags(),_0x188756=new Set([..._0x38ee71,..._0x3e291a]);return Array[_0x33a3f1(0x1af)](_0x188756);}export function normalizeLegacyBffSaveFlags(_0x5d53c1){const _0x504ffb=a261_0x1b01,_0x27c193=new Set(_0x5d53c1);return _0x27c193['has']('dangerously-bff-save')&&_0x27c193[_0x504ffb(0x199)](_0x504ffb(0x198)),Array[_0x504ffb(0x1af)](_0x27c193);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a261_0x1b01(_0x22790c,_0x28471e){_0x22790c=_0x22790c-0x195;const _0xd16051=a261_0xd160();let _0x1b0132=_0xd16051[_0x22790c];return _0x1b0132;}export async function skillsCommand(_0x352c35,_0x31b0fe,_0x226774){const _0x59446c=a261_0x1b01;logger[_0x59446c(0x1ad)](process['cwd']());if(_0x226774?.[_0x59446c(0x1a0)]||_0x352c35===_0x59446c(0x1ab)){showHelp();return;}console['error'](_0x59446c(0x1a1)+(_0x352c35||_0x59446c(0x1b2))),console[_0x59446c(0x1a9)](_0x59446c(0x19e)),console['log']('\x20\x20'+CLI_BIN_NAME+'\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill'),console[_0x59446c(0x1a9)](''),console[_0x59446c(0x1a9)](_0x59446c(0x1b4)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x59446c(0x1ae)](_0x59446c(0x1a7),_0x59446c(0x1ac)+_0x352c35),process[_0x59446c(0x1a5)](0x1);}function showHelp(){const _0x224002=a261_0x1b01;console[_0x224002(0x1a9)](_0x224002(0x19f)+CLI_BIN_NAME+_0x224002(0x19a)+SKILLS_INSTALL_COMMAND_LINE+_0x224002(0x196));}
@@ -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_0x5f52be=a250_0x477c;(function(_0x4042ae,_0x409281){const _0x44687f=a250_0x477c,_0x428295=_0x4042ae();while(!![]){try{const _0x56bfef=-parseInt(_0x44687f(0x18f))/0x1*(-parseInt(_0x44687f(0x195))/0x2)+parseInt(_0x44687f(0x1ae))/0x3+-parseInt(_0x44687f(0x1ac))/0x4+-parseInt(_0x44687f(0x19c))/0x5*(-parseInt(_0x44687f(0x194))/0x6)+parseInt(_0x44687f(0x193))/0x7*(-parseInt(_0x44687f(0x1bd))/0x8)+parseInt(_0x44687f(0x1aa))/0x9+-parseInt(_0x44687f(0x19f))/0xa*(parseInt(_0x44687f(0x190))/0xb);if(_0x56bfef===_0x409281)break;else _0x428295['push'](_0x428295['shift']());}catch(_0x21d875){_0x428295['push'](_0x428295['shift']());}}}(a250_0x33c6,0xd4b11));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_0x5f52be(0x1bf);export const NPX_SKILLS_SUBCOMMAND_ADD=a250_0x5f52be(0x196);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a250_0x5f52be(0x1b3);export const LEGACY_RABETBASE_SKILL_SOURCE=a250_0x5f52be(0x1b8);export const DEFAULT_RABETBASE_SKILL_NAME=a250_0x5f52be(0x1be);function a250_0x477c(_0x5d3b43,_0x1cf1c2){_0x5d3b43=_0x5d3b43-0x18d;const _0x33c6a7=a250_0x33c6();let _0x477cbc=_0x33c6a7[_0x5d3b43];return _0x477cbc;}export const RABETBASE_GLOBAL_SKILL_NAME=a250_0x5f52be(0x1b2);function a250_0x33c6(){const _0x4fe1c3=['presence','Skill\x20\x22','inherit','message','lovrabet/lovrabet-skill','code','npx','npx\x20terminated\x20by\x20signal\x20','remove','13857968MAlGrF','Lovrabet','skills','INSTALL_PARTIAL','stderr','EACCES','722ysftWp','11Moekbq','pipe','skill','7QgBwdR','12NUZvNP','2766MUILeN','add','state','stdout','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','signal','checked','3255905VdvblK','CHILD_TERMINATED','!\x20Could\x20not\x20verify\x20\x22','12896170Cvvukb','Installer\x20reported\x20','PERMISSION_DENIED','trim','warn','join','match','EPERM','SPAWN_FAILED','error','filter','8263278NVijUK','stdio','1047076hYFGRg','exit\x20','2807361KZzfTB','log','status','SKILL_NOT_INSTALLED','rabetbase','lovrabet/rabetbase'];a250_0x33c6=function(){return _0x4fe1c3;};return a250_0x33c6();}export const RABETBASE_SKILL_GIT_SOURCE='git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git';export function resolveGlobalSkillName(_0x210271){const _0x5ae609=a250_0x5f52be;switch(_0x210271[_0x5ae609(0x1a2)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x58e3ff){const _0x29bf9e=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x58e3ff&&_0x29bf9e['push'](NPX_SKILLS_FLAG_SKILL,_0x58e3ff),_0x29bf9e;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a250_0x5f52be(0x1ba),...buildNpxSkillsAddArgv()][a250_0x5f52be(0x1a4)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a250_0x5f52be(0x1ba),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a250_0x5f52be(0x1a4)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x95408c,_0x1b6a8e,_0x49089b){return{'ok':![],'status':_0x1b6a8e,'code':_0x95408c,'error':'['+_0x95408c+']\x20'+_0x49089b};}function spawnOptions(_0x431ea2,_0x49a66f){const _0x47219=a250_0x5f52be;return{'cwd':_0x431ea2,'stdio':_0x49a66f,'env':process.env,'shell':![],..._0x49a66f===_0x47219(0x191)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x1f0506,_0x5df395,_0x1fe5ba,_0x4142af){const _0x459693=a250_0x5f52be,_0x448ac8=[_0x1f0506[_0x459693(0x198)]?_0x1f0506[_0x459693(0x198)]['toString']():'',_0x1f0506['stderr']?_0x1f0506[_0x459693(0x18d)]['toString']():''][_0x459693(0x1a9)](Boolean)[_0x459693(0x1a4)]('\x0a')[_0x459693(0x1a2)]();_0x4142af!==_0x459693(0x191)&&_0x448ac8&&console[_0x459693(0x1af)](_0x448ac8);if(_0x1f0506[_0x459693(0x1a8)]){const _0x5ed944=_0x1f0506['error'],_0x465d17=_0x5ed944['code']==='ENOENT'?'NPX_NOT_FOUND':_0x5ed944[_0x459693(0x1b9)]===_0x459693(0x1a6)||_0x5ed944['code']===_0x459693(0x18e)?_0x459693(0x1a1):_0x459693(0x1a7);return failure(_0x465d17,_0x1f0506['status'],_0x5ed944[_0x459693(0x1b7)]);}if(_0x1f0506[_0x459693(0x19a)])return failure(_0x459693(0x19d),_0x1f0506[_0x459693(0x1b0)],_0x459693(0x1bb)+_0x1f0506[_0x459693(0x19a)]);if(_0x1f0506[_0x459693(0x1b0)]!==0x0)return failure('CHILD_EXIT_NONZERO',_0x1f0506[_0x459693(0x1b0)],_0x448ac8||_0x459693(0x1ad)+(_0x1f0506[_0x459693(0x1b0)]??'unknown'));const _0x416428=_0x448ac8[_0x459693(0x1a5)](/Failed to install\s+(\d+)/i);if(_0x416428&&Number(_0x416428[0x1])>0x0)return failure(_0x459693(0x1c0),0x0,_0x459693(0x1a0)+_0x416428[0x1]+'\x20failed\x20target(s)'+(_0x448ac8?':\x0a'+_0x448ac8:''));if(_0x5df395){const _0x4323d9=resolveInstalledSkill(_0x5df395,_0x1fe5ba);if(_0x4323d9[_0x459693(0x197)]==='absent')return failure(_0x459693(0x1b1),0x0,_0x459693(0x1b5)+_0x5df395+_0x459693(0x199)+_0x4323d9[_0x459693(0x19b)][_0x459693(0x1a4)](',\x20')+')');_0x4323d9[_0x459693(0x197)]==='unverifiable'&&console[_0x459693(0x1a3)](_0x459693(0x19e)+_0x5df395+'\x22\x20install\x20state:\x20'+_0x4323d9['reason']);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x1430c2,_0x4b7b6b){const _0x5d7ed1=a250_0x5f52be;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x47ff27=_0x4b7b6b?.[_0x5d7ed1(0x1ab)]??_0x5d7ed1(0x1b6),_0x36135b=resolveNpmBin(_0x5d7ed1(0x1ba)),_0x7bfec7=buildNpxSkillsAddArgv(_0x4b7b6b?.[_0x5d7ed1(0x192)]),_0xee38a0=[_0x5d7ed1(0x1ba),..._0x7bfec7][_0x5d7ed1(0x1a4)]('\x20');console['log']('*\x20'+_0xee38a0);const _0x296ea4=spawnSync(_0x36135b,_0x7bfec7,spawnOptions(_0x1430c2,_0x47ff27));return normalizeSpawnResult(_0x296ea4,undefined,undefined,_0x47ff27);}export function runNpxSkillsRemove(_0x195af1,_0x5ec28a,_0x58f389=LEGACY_RABETBASE_SKILL_SOURCE){const _0x4e4fdc=a250_0x5f52be;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5e774a=_0x5ec28a?.[_0x4e4fdc(0x1ab)]??_0x4e4fdc(0x1b6),_0x1e3dc4=resolveNpmBin(_0x4e4fdc(0x1ba)),_0x51c10d=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x4e4fdc(0x1bc),_0x58f389,NPX_SKILLS_FLAG_SKILL,_0x5ec28a?.[_0x4e4fdc(0x192)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x5ec28a?.['yes']?['-y']:[]],_0x2c57d1=[_0x1e3dc4,..._0x51c10d]['join']('\x20');console[_0x4e4fdc(0x1af)]('*\x20'+_0x2c57d1);const _0x565bae=spawnSync(_0x1e3dc4,_0x51c10d,spawnOptions(_0x195af1,_0x5e774a));return normalizeSpawnResult(_0x565bae,undefined,undefined,_0x5e774a);}export function runNpxSkillsAddGlobal(_0x853fb4,_0x175980,_0x5414ef){const _0x501ebd=a250_0x5f52be;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x2065c6=resolveNpmBin(_0x501ebd(0x1ba)),_0x2a7da6=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x175980,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x36dfb8=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x175980,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x501ebd(0x1a4)]('\x20');console[_0x501ebd(0x1af)]('*\x20'+_0x36dfb8);const _0x20d28f=spawnSync(_0x2065c6,_0x2a7da6,spawnOptions(_0x853fb4,_0x501ebd(0x191)));return normalizeSpawnResult(_0x20d28f,resolveGlobalSkillName(_0x175980),_0x5414ef?.[_0x501ebd(0x1b4)],_0x5414ef?.[_0x501ebd(0x1ab)]);}
1
+ const a262_0xfb5ea5=a262_0x42b4;(function(_0x29dc13,_0x3fd3ca){const _0x196317=a262_0x42b4,_0xdf44d2=_0x29dc13();while(!![]){try{const _0x5eeb6a=-parseInt(_0x196317(0x16b))/0x1*(parseInt(_0x196317(0x182))/0x2)+-parseInt(_0x196317(0x18f))/0x3+-parseInt(_0x196317(0x18e))/0x4*(parseInt(_0x196317(0x179))/0x5)+parseInt(_0x196317(0x15a))/0x6+parseInt(_0x196317(0x160))/0x7+parseInt(_0x196317(0x192))/0x8*(-parseInt(_0x196317(0x191))/0x9)+-parseInt(_0x196317(0x186))/0xa*(-parseInt(_0x196317(0x188))/0xb);if(_0x5eeb6a===_0x3fd3ca)break;else _0xdf44d2['push'](_0xdf44d2['shift']());}catch(_0x359039){_0xdf44d2['push'](_0xdf44d2['shift']());}}}(a262_0x9e5f,0xd5321));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';function a262_0x9e5f(){const _0x4fca5c=['INSTALL_PARTIAL','log','9725724kamvRg','--skill','expectedSkillName','lovrabet/lovrabet-skill','unknown','checked','8456434uELcuV','state','EPERM','skill','reason','yes','pipe','trim','SKILL_NOT_INSTALLED','NPM_CONFIG_GLOBAL','npm_config_global','1008221Mcuonh','ENOENT','toString','stdio','signal','inherit','error','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','Skill\x20\x22','status','filter','npx\x20terminated\x20by\x20signal\x20','warn','35sjMPMd','CHILD_EXIT_NONZERO','Lovrabet','Installer\x20reported\x20','!\x20Could\x20not\x20verify\x20\x22','unverifiable','\x22\x20install\x20state:\x20','PERMISSION_DENIED','code','2CCdsxB','rabetbase','join','lovrabet/rabetbase','180BazPJs','stderr','1189155jMItsw','\x20failed\x20target(s)','stdout','NPX_NOT_FOUND','npx','message','728472JqtTLW','1625571wVJlBG','SPAWN_FAILED','9690777UhMnSy','8GCxqfJ','presence','skills@latest','CHILD_TERMINATED','EACCES','remove'];a262_0x9e5f=function(){return _0x4fca5c;};return a262_0x9e5f();}export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';function a262_0x42b4(_0x223196,_0x1259b5){_0x223196=_0x223196-0x158;const _0x9e5ff6=a262_0x9e5f();let _0x42b454=_0x9e5ff6[_0x223196];return _0x42b454;}export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a262_0xfb5ea5(0x194);export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL=a262_0xfb5ea5(0x15b);export const RABETBASE_SKILL_SOURCE=a262_0xfb5ea5(0x185);export const LEGACY_RABETBASE_SKILL_SOURCE=a262_0xfb5ea5(0x15d);export const DEFAULT_RABETBASE_SKILL_NAME=a262_0xfb5ea5(0x17b);export const RABETBASE_GLOBAL_SKILL_NAME=a262_0xfb5ea5(0x183);export const RABETBASE_SKILL_GIT_SOURCE=a262_0xfb5ea5(0x173);export function resolveGlobalSkillName(_0x1c9b74){const _0x460d6d=a262_0xfb5ea5;switch(_0x1c9b74[_0x460d6d(0x167)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0xf15248){const _0x393448=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0xf15248&&_0x393448['push'](NPX_SKILLS_FLAG_SKILL,_0xf15248),_0x393448;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a262_0xfb5ea5(0x18c),...buildNpxSkillsAddArgv()][a262_0xfb5ea5(0x184)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a262_0xfb5ea5(0x18c),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x2cd6f7,_0x3a3923,_0x4204cc){return{'ok':![],'status':_0x3a3923,'code':_0x2cd6f7,'error':'['+_0x2cd6f7+']\x20'+_0x4204cc};}function spawnOptions(_0x24ee78,_0x1d50ad){const _0x497808=a262_0xfb5ea5,_0xc26103={...process.env};return delete _0xc26103[_0x497808(0x16a)],delete _0xc26103[_0x497808(0x169)],{'cwd':_0x24ee78,'stdio':_0x1d50ad,'env':_0xc26103,'shell':![],..._0x1d50ad===_0x497808(0x166)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x3ddd6b,_0x1a0e40,_0x22fefc,_0x2ad2cc){const _0x350646=a262_0xfb5ea5,_0x3c8cb1=[_0x3ddd6b[_0x350646(0x18a)]?_0x3ddd6b[_0x350646(0x18a)]['toString']():'',_0x3ddd6b[_0x350646(0x187)]?_0x3ddd6b[_0x350646(0x187)][_0x350646(0x16d)]():''][_0x350646(0x176)](Boolean)['join']('\x0a')[_0x350646(0x167)]();_0x2ad2cc!=='pipe'&&_0x3c8cb1&&console[_0x350646(0x159)](_0x3c8cb1);if(_0x3ddd6b[_0x350646(0x171)]){const _0x58bf77=_0x3ddd6b['error'],_0x103ebf=_0x58bf77[_0x350646(0x181)]===_0x350646(0x16c)?_0x350646(0x18b):_0x58bf77[_0x350646(0x181)]===_0x350646(0x162)||_0x58bf77[_0x350646(0x181)]===_0x350646(0x196)?_0x350646(0x180):_0x350646(0x190);return failure(_0x103ebf,_0x3ddd6b[_0x350646(0x175)],_0x58bf77[_0x350646(0x18d)]);}if(_0x3ddd6b[_0x350646(0x16f)])return failure(_0x350646(0x195),_0x3ddd6b[_0x350646(0x175)],_0x350646(0x177)+_0x3ddd6b[_0x350646(0x16f)]);if(_0x3ddd6b[_0x350646(0x175)]!==0x0)return failure(_0x350646(0x17a),_0x3ddd6b[_0x350646(0x175)],_0x3c8cb1||'exit\x20'+(_0x3ddd6b[_0x350646(0x175)]??_0x350646(0x15e)));const _0x15752d=_0x1a0e40?resolveInstalledSkill(_0x1a0e40,_0x22fefc):undefined,_0x34606b=_0x3c8cb1['match'](/Failed to install\s+(\d+)/i);if(_0x34606b&&Number(_0x34606b[0x1])>0x0){const _0x39fb7a=_0x350646(0x17c)+_0x34606b[0x1]+_0x350646(0x189)+(_0x3c8cb1?':\x0a'+_0x3c8cb1:'');if(_0x15752d?.[_0x350646(0x161)]==='present')return console['warn']('!\x20'+_0x39fb7a),{'ok':!![],'status':0x0};return failure(_0x350646(0x158),0x0,_0x39fb7a);}if(_0x15752d){if(_0x15752d[_0x350646(0x161)]==='absent')return failure(_0x350646(0x168),0x0,_0x350646(0x174)+_0x1a0e40+_0x350646(0x172)+_0x15752d[_0x350646(0x15f)][_0x350646(0x184)](',\x20')+')');_0x15752d[_0x350646(0x161)]===_0x350646(0x17e)&&console[_0x350646(0x178)](_0x350646(0x17d)+_0x1a0e40+_0x350646(0x17f)+_0x15752d[_0x350646(0x164)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x2471dd,_0x2ab768){const _0x2121fa=a262_0xfb5ea5;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x267bc1=_0x2ab768?.[_0x2121fa(0x16e)]??_0x2121fa(0x170),_0x2f56ad=resolveNpmBin(_0x2121fa(0x18c)),_0x3c146=buildNpxSkillsAddArgv(_0x2ab768?.[_0x2121fa(0x163)]),_0x4adf58=[_0x2121fa(0x18c),..._0x3c146][_0x2121fa(0x184)]('\x20');console[_0x2121fa(0x159)]('*\x20'+_0x4adf58);const _0x8721a2=spawnSync(_0x2f56ad,_0x3c146,spawnOptions(_0x2471dd,_0x267bc1));return normalizeSpawnResult(_0x8721a2,undefined,undefined,_0x267bc1);}export function runNpxSkillsRemove(_0x40c10b,_0x204c43,_0x4fb8f=LEGACY_RABETBASE_SKILL_SOURCE){const _0x43f123=a262_0xfb5ea5;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x2cd2d4=_0x204c43?.[_0x43f123(0x16e)]??_0x43f123(0x170),_0x3ca364=resolveNpmBin(_0x43f123(0x18c)),_0x367ba5=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x43f123(0x197),_0x4fb8f,NPX_SKILLS_FLAG_SKILL,_0x204c43?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x204c43?.[_0x43f123(0x165)]?['-y']:[]],_0x53362c=[_0x3ca364,..._0x367ba5][_0x43f123(0x184)]('\x20');console['log']('*\x20'+_0x53362c);const _0x4c2076=spawnSync(_0x3ca364,_0x367ba5,spawnOptions(_0x40c10b,_0x2cd2d4));return normalizeSpawnResult(_0x4c2076,undefined,undefined,_0x2cd2d4);}export function runNpxSkillsAddGlobal(_0xdc8e1,_0x4e6fdc,_0x332f4d){const _0x27b935=a262_0xfb5ea5;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x487c2d=resolveNpmBin(_0x27b935(0x18c)),_0x4b8f77=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4e6fdc,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x3a35a2=[_0x27b935(0x18c),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4e6fdc,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console[_0x27b935(0x159)]('*\x20'+_0x3a35a2);const _0xb9237a=spawnSync(_0x487c2d,_0x4b8f77,spawnOptions(_0xdc8e1,_0x27b935(0x166)));return normalizeSpawnResult(_0xb9237a,_0x332f4d?.[_0x27b935(0x15c)]??resolveGlobalSkillName(_0x4e6fdc),_0x332f4d?.[_0x27b935(0x193)],_0x332f4d?.[_0x27b935(0x16e)]);}
@@ -1 +1 @@
1
- const a251_0x185632=a251_0x2150;(function(_0x2efc6c,_0x1d0b9f){const _0x3e5e3f=a251_0x2150,_0x1a878b=_0x2efc6c();while(!![]){try{const _0x1d9869=-parseInt(_0x3e5e3f(0x1ea))/0x1+parseInt(_0x3e5e3f(0x1de))/0x2*(-parseInt(_0x3e5e3f(0x1d8))/0x3)+-parseInt(_0x3e5e3f(0x1e5))/0x4*(parseInt(_0x3e5e3f(0x1d1))/0x5)+parseInt(_0x3e5e3f(0x1ce))/0x6+parseInt(_0x3e5e3f(0x1e6))/0x7+-parseInt(_0x3e5e3f(0x1db))/0x8+-parseInt(_0x3e5e3f(0x1d4))/0x9*(-parseInt(_0x3e5e3f(0x1e9))/0xa);if(_0x1d9869===_0x1d0b9f)break;else _0x1a878b['push'](_0x1a878b['shift']());}catch(_0x1f0ccd){_0x1a878b['push'](_0x1a878b['shift']());}}}(a251_0x16ea,0x3b24f));import{existsSync,readFileSync}from'node:fs';function a251_0x16ea(){const _0x4d1f68=['unverifiable','\x20is\x20unreadable:\x20','parse','lockFile','60lhtKvC','1796613ttjOja','map','skills','70NOvHTQ','366730uZsguO','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','recorded','absent','not-recorded','.skill-lock.json','601218dGQMNe','utf8','.agents','144295RBlJXy','find','reason','1724022AdmyPD','present','version','\x20has\x20no\x20skills\x20map','129AepBQf','unusable','.claude','3252328Vgtjqc','includes','\x20records\x20\x22','11598rbDNWK','home','number'];a251_0x16ea=function(){return _0x4d1f68;};return a251_0x16ea();}import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a251_0x185632(0x1d0),a251_0x185632(0x1cd));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a251_0x185632(0x1d0),a251_0x185632(0x1e8)),join(a251_0x185632(0x1da),a251_0x185632(0x1e8))];function a251_0x2150(_0x4da891,_0x16e3df){_0x4da891=_0x4da891-0x1c9;const _0x16ea00=a251_0x16ea();let _0x2150c6=_0x16ea00[_0x4da891];return _0x2150c6;}const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0xc425f0,_0x2de490){const _0x21c07b=a251_0x185632;if(!existsSync(_0xc425f0))return{'kind':_0x21c07b(0x1cc)};let _0x813d12;try{_0x813d12=JSON[_0x21c07b(0x1e3)](readFileSync(_0xc425f0,_0x21c07b(0x1cf)));}catch(_0x427948){return{'kind':'unusable','reason':_0xc425f0+_0x21c07b(0x1e2)+_0x427948['message']};}const _0x3d9fe8=_0x813d12;if(typeof _0x3d9fe8?.[_0x21c07b(0x1d6)]!==_0x21c07b(0x1e0)||!SUPPORTED_LOCK_VERSIONS[_0x21c07b(0x1dc)](_0x3d9fe8[_0x21c07b(0x1d6)]))return{'kind':_0x21c07b(0x1d9),'reason':_0xc425f0+'\x20uses\x20unsupported\x20version\x20'+String(_0x3d9fe8?.[_0x21c07b(0x1d6)])};if(!_0x3d9fe8[_0x21c07b(0x1e8)]||typeof _0x3d9fe8[_0x21c07b(0x1e8)]!=='object')return{'kind':'unusable','reason':_0xc425f0+_0x21c07b(0x1d7)};return _0x3d9fe8[_0x21c07b(0x1e8)][_0x2de490]?{'kind':_0x21c07b(0x1ca)}:{'kind':_0x21c07b(0x1cc)};}export function resolveInstalledSkill(_0x569e21,_0x53cc24){const _0x9329a2=a251_0x185632,_0x431418=_0x53cc24?.[_0x9329a2(0x1df)]??homedir(),_0x89cb77=_0x53cc24?.['globalSkillsDirs']??GLOBAL_SKILLS_DIR_RELATIVE_PATHS['map'](_0x48fed1=>join(_0x431418,_0x48fed1)),_0x30d4cd=_0x53cc24?.[_0x9329a2(0x1e4)]??join(_0x431418,SKILL_LOCK_RELATIVE_PATH),_0xf31848=_0x89cb77[_0x9329a2(0x1e7)](_0xcbe0df=>join(_0xcbe0df,_0x569e21,'SKILL.md')),_0x4d32f9=_0xf31848[_0x9329a2(0x1d2)](_0x52a911=>existsSync(_0x52a911));if(_0x4d32f9)return{'state':_0x9329a2(0x1d5),'path':_0x4d32f9};const _0x38272b=readLockLookup(_0x30d4cd,_0x569e21);if(_0x38272b['kind']===_0x9329a2(0x1d9))return{'state':_0x9329a2(0x1e1),'reason':_0x38272b[_0x9329a2(0x1d3)]};if(_0x38272b['kind']===_0x9329a2(0x1ca))return{'state':'unverifiable','reason':_0x30d4cd+_0x9329a2(0x1dd)+_0x569e21+_0x9329a2(0x1c9)+('('+_0xf31848['join'](',\x20')+')')};return{'state':_0x9329a2(0x1cb),'checked':_0xf31848};}
1
+ const a263_0x29eb6e=a263_0x1c24;(function(_0x361f81,_0x9533d1){const _0x2f5caf=a263_0x1c24,_0x550126=_0x361f81();while(!![]){try{const _0x2fb5de=parseInt(_0x2f5caf(0x100))/0x1*(-parseInt(_0x2f5caf(0x103))/0x2)+parseInt(_0x2f5caf(0x111))/0x3*(parseInt(_0x2f5caf(0x11e))/0x4)+-parseInt(_0x2f5caf(0x10c))/0x5+parseInt(_0x2f5caf(0x11f))/0x6*(parseInt(_0x2f5caf(0x115))/0x7)+-parseInt(_0x2f5caf(0x11b))/0x8*(-parseInt(_0x2f5caf(0x118))/0x9)+-parseInt(_0x2f5caf(0x119))/0xa*(parseInt(_0x2f5caf(0x11d))/0xb)+parseInt(_0x2f5caf(0x107))/0xc;if(_0x2fb5de===_0x9533d1)break;else _0x550126['push'](_0x550126['shift']());}catch(_0x1fc6f0){_0x550126['push'](_0x550126['shift']());}}}(a263_0x555e,0x79c52));function a263_0x555e(){const _0x2e71e3=['\x20is\x20unreadable:\x20','unusable','1307460OqnFky','version','.claude','9DExKoO','398130ayIUFK','skills','4733744eKPtaV','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','99liKgJg','24Dbqtpr','12knNMSH','present','includes','7XAPpCw','reason','unverifiable','179636skMoRB','\x20uses\x20unsupported\x20version\x20','utf8','map','12808704DIPLJO','object','kind','not-recorded','\x20records\x20\x22','3809515hvdlVO','recorded','globalSkillsDirs','absent','find','107523yXkdIV','number'];a263_0x555e=function(){return _0x2e71e3;};return a263_0x555e();}import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join('.agents','.skill-lock.json');function a263_0x1c24(_0x58022e,_0x21acd0){_0x58022e=_0x58022e-0xfe;const _0x555e2a=a263_0x555e();let _0x1c2446=_0x555e2a[_0x58022e];return _0x1c2446;}export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents',a263_0x29eb6e(0x11a)),join(a263_0x29eb6e(0x117),a263_0x29eb6e(0x11a))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x5635f5,_0x1eb2dd){const _0x3c4770=a263_0x29eb6e;if(!existsSync(_0x5635f5))return{'kind':'not-recorded'};let _0x3f2066;try{_0x3f2066=JSON['parse'](readFileSync(_0x5635f5,_0x3c4770(0x105)));}catch(_0x3fc283){return{'kind':'unusable','reason':_0x5635f5+_0x3c4770(0x113)+_0x3fc283['message']};}const _0x597fe1=_0x3f2066;if(typeof _0x597fe1?.[_0x3c4770(0x116)]!==_0x3c4770(0x112)||!SUPPORTED_LOCK_VERSIONS[_0x3c4770(0xff)](_0x597fe1[_0x3c4770(0x116)]))return{'kind':_0x3c4770(0x114),'reason':_0x5635f5+_0x3c4770(0x104)+String(_0x597fe1?.['version'])};if(!_0x597fe1[_0x3c4770(0x11a)]||typeof _0x597fe1['skills']!==_0x3c4770(0x108))return{'kind':'unusable','reason':_0x5635f5+'\x20has\x20no\x20skills\x20map'};return _0x597fe1[_0x3c4770(0x11a)][_0x1eb2dd]?{'kind':_0x3c4770(0x10d)}:{'kind':_0x3c4770(0x10a)};}export function resolveInstalledSkill(_0x496df2,_0x16a1a1){const _0xc8d574=a263_0x29eb6e,_0x194e0d=_0x16a1a1?.['home']??homedir(),_0x5bffbc=_0x16a1a1?.[_0xc8d574(0x10e)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0xc8d574(0x106)](_0x5b7328=>join(_0x194e0d,_0x5b7328)),_0x18015f=_0x16a1a1?.['lockFile']??join(_0x194e0d,SKILL_LOCK_RELATIVE_PATH),_0x56b5ab=_0x5bffbc[_0xc8d574(0x106)](_0x1f9f7c=>join(_0x1f9f7c,_0x496df2,'SKILL.md')),_0x5d73a2=_0x56b5ab[_0xc8d574(0x110)](_0x4a28b7=>existsSync(_0x4a28b7));if(_0x5d73a2)return{'state':_0xc8d574(0xfe),'path':_0x5d73a2};const _0x14851a=readLockLookup(_0x18015f,_0x496df2);if(_0x14851a[_0xc8d574(0x109)]===_0xc8d574(0x114))return{'state':_0xc8d574(0x102),'reason':_0x14851a[_0xc8d574(0x101)]};if(_0x14851a[_0xc8d574(0x109)]===_0xc8d574(0x10d))return{'state':'unverifiable','reason':_0x18015f+_0xc8d574(0x10b)+_0x496df2+_0xc8d574(0x11c)+('('+_0x56b5ab['join'](',\x20')+')')};return{'state':_0xc8d574(0x10f),'checked':_0x56b5ab};}