@lovrabet/rabetbase-cli 2.4.3 → 2.4.4

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 (381) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/members-list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app-config/delete.js +1 -1
  25. package/lib/commands/app-config/get.js +1 -1
  26. package/lib/commands/app-config/index.js +1 -1
  27. package/lib/commands/app-config/list.js +1 -1
  28. package/lib/commands/app-config/set.js +1 -1
  29. package/lib/commands/app-config/shared.js +1 -1
  30. package/lib/commands/auth/index.js +1 -1
  31. package/lib/commands/bff/create.js +1 -1
  32. package/lib/commands/bff/delete.js +1 -1
  33. package/lib/commands/bff/detail.js +1 -1
  34. package/lib/commands/bff/index.js +1 -1
  35. package/lib/commands/bff/list.js +1 -1
  36. package/lib/commands/bff/pull.js +1 -1
  37. package/lib/commands/bff/push.js +1 -1
  38. package/lib/commands/bff/status.js +1 -1
  39. package/lib/commands/cli-skill/index.js +1 -1
  40. package/lib/commands/cli-update.js +1 -1
  41. package/lib/commands/codegen/index.js +1 -1
  42. package/lib/commands/codegen/sdk.js +1 -1
  43. package/lib/commands/codegen/sql.js +1 -1
  44. package/lib/commands/common/app-registry.js +1 -1
  45. package/lib/commands/common/app-selector.js +1 -1
  46. package/lib/commands/common/async-task.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -1
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff-refresh-start.d.ts +2 -0
  87. package/lib/commands/db/diff-refresh-start.js +1 -0
  88. package/lib/commands/db/diff-refresh-status.d.ts +2 -0
  89. package/lib/commands/db/diff-refresh-status.js +1 -0
  90. package/lib/commands/db/diff.js +1 -1
  91. package/lib/commands/db/index.js +1 -1
  92. package/lib/commands/db/list.js +1 -1
  93. package/lib/commands/db/shared.js +1 -1
  94. package/lib/commands/db/tables.js +1 -1
  95. package/lib/commands/db/test.js +1 -1
  96. package/lib/commands/db/update.js +1 -1
  97. package/lib/commands/doctor.js +1 -1
  98. package/lib/commands/file/index.js +1 -1
  99. package/lib/commands/init/index.js +1 -1
  100. package/lib/commands/issue/index.js +1 -1
  101. package/lib/commands/issue/nudge.js +1 -1
  102. package/lib/commands/issue/report.js +1 -1
  103. package/lib/commands/issue/shared.js +1 -1
  104. package/lib/commands/kb/create.js +1 -1
  105. package/lib/commands/kb/delete.js +1 -1
  106. package/lib/commands/kb/detail.js +1 -1
  107. package/lib/commands/kb/index.js +1 -1
  108. package/lib/commands/kb/list.js +1 -1
  109. package/lib/commands/kb/shared.js +1 -1
  110. package/lib/commands/kb/update.js +1 -1
  111. package/lib/commands/logs/index.js +1 -1
  112. package/lib/commands/menu/asset-update.js +1 -1
  113. package/lib/commands/menu/delete.js +1 -1
  114. package/lib/commands/menu/external-link-create.js +1 -1
  115. package/lib/commands/menu/external-link-update.js +1 -1
  116. package/lib/commands/menu/group-create.js +1 -1
  117. package/lib/commands/menu/group-update.js +1 -1
  118. package/lib/commands/menu/index.js +1 -1
  119. package/lib/commands/menu/list.js +1 -1
  120. package/lib/commands/menu/move.js +1 -1
  121. package/lib/commands/menu/regroup-start.js +1 -1
  122. package/lib/commands/menu/rename.js +1 -1
  123. package/lib/commands/menu/shared/compare-table.js +1 -1
  124. package/lib/commands/menu/shared/delete-plan.js +1 -1
  125. package/lib/commands/menu/shared/facts.js +1 -1
  126. package/lib/commands/menu/shared/index.js +1 -1
  127. package/lib/commands/menu/shared/inquirer.js +1 -1
  128. package/lib/commands/menu/shared/local-pages.js +1 -1
  129. package/lib/commands/menu/shared/logic.js +1 -1
  130. package/lib/commands/menu/shared/mutations.js +1 -1
  131. package/lib/commands/menu/shared/service.js +1 -1
  132. package/lib/commands/menu/shared/sync-core.js +1 -1
  133. package/lib/commands/menu/shared/update-core.js +1 -1
  134. package/lib/commands/menu/shared/valid-url.js +1 -1
  135. package/lib/commands/menu/sync.js +1 -1
  136. package/lib/commands/notification/config-create.d.ts +2 -0
  137. package/lib/commands/notification/config-create.js +1 -0
  138. package/lib/commands/notification/config-delete.d.ts +2 -0
  139. package/lib/commands/notification/config-delete.js +1 -0
  140. package/lib/commands/notification/config-list.js +1 -1
  141. package/lib/commands/notification/config-update.d.ts +2 -0
  142. package/lib/commands/notification/config-update.js +1 -0
  143. package/lib/commands/notification/index.js +1 -1
  144. package/lib/commands/notification/shared.d.ts +97 -0
  145. package/lib/commands/notification/shared.js +1 -0
  146. package/lib/commands/ocr/index.js +1 -1
  147. package/lib/commands/page/generate-start.js +1 -1
  148. package/lib/commands/page/generate-status.js +1 -1
  149. package/lib/commands/page/index.js +1 -1
  150. package/lib/commands/page/pull.js +1 -1
  151. package/lib/commands/page/push.js +1 -1
  152. package/lib/commands/page/react/create.js +1 -1
  153. package/lib/commands/page/react/detail.js +1 -1
  154. package/lib/commands/page/react/list.js +1 -1
  155. package/lib/commands/page/react/publish.js +1 -1
  156. package/lib/commands/page/react/shared.js +1 -1
  157. package/lib/commands/page/react/syntax.js +1 -1
  158. package/lib/commands/page/react/template.js +1 -1
  159. package/lib/commands/page/react/update.js +1 -1
  160. package/lib/commands/page/relation-audit.js +1 -1
  161. package/lib/commands/page/restore.js +1 -1
  162. package/lib/commands/page/shared.js +1 -1
  163. package/lib/commands/page/standard-page-status.js +1 -1
  164. package/lib/commands/page/sync.js +1 -1
  165. package/lib/commands/permit/index.js +1 -1
  166. package/lib/commands/permit/page-get.js +1 -1
  167. package/lib/commands/permit/page-set.js +1 -1
  168. package/lib/commands/permit/role-apis-set.js +1 -1
  169. package/lib/commands/permit/role-menus-set.js +1 -1
  170. package/lib/commands/permit/role-menus.js +1 -1
  171. package/lib/commands/permit/shared.js +1 -1
  172. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  173. package/lib/commands/project/create/format-elapsed.js +1 -1
  174. package/lib/commands/project/create/main.d.ts +1 -0
  175. package/lib/commands/project/create/main.js +1 -1
  176. package/lib/commands/project/create/materialize-project-template.d.ts +11 -0
  177. package/lib/commands/project/create/materialize-project-template.js +1 -0
  178. package/lib/commands/project/create/project-name.d.ts +2 -0
  179. package/lib/commands/project/create/project-name.js +1 -0
  180. package/lib/commands/project/create/project-template-archive.d.ts +6 -0
  181. package/lib/commands/project/create/project-template-archive.js +1 -0
  182. package/lib/commands/project/create/project-template-path.d.ts +1 -3
  183. package/lib/commands/project/create/project-template-path.js +1 -1
  184. package/lib/commands/project/create/use-copy-project-template.d.ts +2 -1
  185. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  186. package/lib/commands/project/create/use-format-code.js +1 -1
  187. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  188. package/lib/commands/project/index.js +1 -1
  189. package/lib/commands/project/upgrade.js +1 -1
  190. package/lib/commands/registry.js +1 -1
  191. package/lib/commands/role/create.js +1 -1
  192. package/lib/commands/role/delete.js +1 -1
  193. package/lib/commands/role/detail.js +1 -1
  194. package/lib/commands/role/index.js +1 -1
  195. package/lib/commands/role/list.js +1 -1
  196. package/lib/commands/role/shared.js +1 -1
  197. package/lib/commands/role/update.js +1 -1
  198. package/lib/commands/role/user-add.js +1 -1
  199. package/lib/commands/role/user-remove.js +1 -1
  200. package/lib/commands/role/user-resolve.js +1 -1
  201. package/lib/commands/run/index.js +1 -1
  202. package/lib/commands/schema.js +1 -1
  203. package/lib/commands/sql/create.js +1 -1
  204. package/lib/commands/sql/delete.js +1 -1
  205. package/lib/commands/sql/detail.js +1 -1
  206. package/lib/commands/sql/exec.js +1 -1
  207. package/lib/commands/sql/index.js +1 -1
  208. package/lib/commands/sql/list.js +1 -1
  209. package/lib/commands/sql/pull.js +1 -1
  210. package/lib/commands/sql/push.js +1 -1
  211. package/lib/commands/sql/shared.js +1 -1
  212. package/lib/commands/sql/status.js +1 -1
  213. package/lib/commands/sql/validate.js +1 -1
  214. package/lib/commands/task/index.js +1 -1
  215. package/lib/commands/task/status.js +1 -1
  216. package/lib/commands/tenant/index.js +1 -1
  217. package/lib/commands/tenant/members-list.js +1 -1
  218. package/lib/commands/tenant/shared.js +1 -1
  219. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  220. package/lib/commands/user-account/index.js +1 -1
  221. package/lib/commands/workspace/add.js +1 -1
  222. package/lib/commands/workspace/index.js +1 -1
  223. package/lib/commands/workspace/remove.js +1 -1
  224. package/lib/config/schema.js +1 -1
  225. package/lib/constant/cdn.d.ts +2 -0
  226. package/lib/constant/cdn.js +1 -1
  227. package/lib/constant/cli.js +1 -1
  228. package/lib/constant/defaults.js +1 -1
  229. package/lib/constant/domain.js +1 -1
  230. package/lib/constant/env.js +1 -1
  231. package/lib/constant/output.js +1 -1
  232. package/lib/constant/paths.js +1 -1
  233. package/lib/constant/risk.js +1 -1
  234. package/lib/context/app-resolver.js +1 -1
  235. package/lib/context/auth-resolver.js +1 -1
  236. package/lib/context/config-loader.js +1 -1
  237. package/lib/context.d.ts +1 -1
  238. package/lib/context.js +1 -1
  239. package/lib/core/alias-resolver.js +1 -1
  240. package/lib/core/api-client.d.ts +29 -2
  241. package/lib/core/api-client.js +1 -1
  242. package/lib/core/bff/config.js +1 -1
  243. package/lib/core/bff/file-system.js +1 -1
  244. package/lib/core/bff/hash.js +1 -1
  245. package/lib/core/bff/lock.js +1 -1
  246. package/lib/core/bff/utils.js +1 -1
  247. package/lib/core/db-resolver.js +1 -1
  248. package/lib/core/page/file-system.js +1 -1
  249. package/lib/core/page/hash.js +1 -1
  250. package/lib/core/page/lock.js +1 -1
  251. package/lib/core/sql-index-auditor.js +1 -1
  252. package/lib/core/sql-sync/config.js +1 -1
  253. package/lib/core/sql-sync/file-system.js +1 -1
  254. package/lib/core/sql-sync/hash.js +1 -1
  255. package/lib/core/sql-sync/lock.js +1 -1
  256. package/lib/core/sql-sync/utils.js +1 -1
  257. package/lib/core/sql-validator.js +1 -1
  258. package/lib/errors.js +1 -1
  259. package/lib/framework/build-all-flags.js +1 -1
  260. package/lib/framework/error-output.js +1 -1
  261. package/lib/framework/explicit-yes.js +1 -1
  262. package/lib/framework/flags.js +1 -1
  263. package/lib/framework/help.js +1 -1
  264. package/lib/framework/index.js +1 -1
  265. package/lib/framework/output.js +1 -1
  266. package/lib/framework/response.js +1 -1
  267. package/lib/framework/runner-alias.js +1 -1
  268. package/lib/framework/runner.js +1 -1
  269. package/lib/framework/schema-export.js +1 -1
  270. package/lib/framework/types.js +1 -1
  271. package/lib/generated/build-info.d.ts +4 -4
  272. package/lib/generated/build-info.js +1 -1
  273. package/lib/help.js +1 -1
  274. package/lib/postinstall.js +1 -1
  275. package/lib/runtime/confirmation.js +1 -1
  276. package/lib/runtime/event.js +1 -1
  277. package/lib/runtime/index.js +1 -1
  278. package/lib/runtime/queue.js +1 -1
  279. package/lib/runtime/resolve.js +1 -1
  280. package/lib/skills/builtin-skill.js +1 -1
  281. package/lib/skills/main.js +1 -1
  282. package/lib/skills/npx-skills-add.js +1 -1
  283. package/lib/skills/skill-presence.js +1 -1
  284. package/lib/telemetry/cli-command-trace.js +1 -1
  285. package/lib/telemetry/cli-help-trace.js +1 -1
  286. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  287. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  288. package/lib/telemetry/send-cli-trace-log.js +1 -1
  289. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  290. package/lib/utils/ai_config.js +1 -1
  291. package/lib/utils/apply-jq-filter.js +1 -1
  292. package/lib/utils/cdn-config.js +1 -1
  293. package/lib/utils/check-sdk-version.js +1 -1
  294. package/lib/utils/cli-version-check.js +1 -1
  295. package/lib/utils/cli-version-policy.d.ts +13 -0
  296. package/lib/utils/cli-version-policy.js +1 -1
  297. package/lib/utils/config.js +1 -1
  298. package/lib/utils/entity-with-id.js +1 -1
  299. package/lib/utils/file-utils.js +1 -1
  300. package/lib/utils/guides-cdn.js +1 -1
  301. package/lib/utils/http-client.js +1 -1
  302. package/lib/utils/is-non-interactive.js +1 -1
  303. package/lib/utils/logger.js +1 -1
  304. package/lib/utils/params.js +1 -1
  305. package/lib/utils/platform.js +1 -1
  306. package/lib/utils/rules-cdn.js +1 -1
  307. package/lib/utils/sleep.js +1 -1
  308. package/lib/utils/template-replacer.js +1 -1
  309. package/lib/utils/update-notice.js +1 -1
  310. package/lib/utils/version.js +1 -1
  311. package/lib/utils/with-active-cookie.js +1 -1
  312. package/lib/utils/write-cli-side-channel.js +1 -1
  313. package/package.json +9 -4
  314. package/skills/rabetbase/SKILL.md +33 -22
  315. package/skills/rabetbase/guides/backend-function.md +5 -3
  316. package/skills/rabetbase/guides/bff-creation-workflow.md +2 -2
  317. package/skills/rabetbase/guides/conflict-detection.md +2 -2
  318. package/skills/rabetbase/guides/database-connection-workflow.md +39 -5
  319. package/skills/rabetbase/guides/react-custom-page-workflow.md +16 -4
  320. package/skills/rabetbase/guides/sql-creation-workflow.md +4 -2
  321. package/skills/rabetbase/guides/sql-mybatis.md +2 -2
  322. package/skills/rabetbase/knowledge/page-schema/YtPage.md +3 -37
  323. package/skills/rabetbase/knowledge/react-page/generation-standards.md +14 -3
  324. package/skills/rabetbase/references/rabetbase-app-config.md +2 -2
  325. package/skills/rabetbase/references/rabetbase-bff-push.md +4 -5
  326. package/skills/rabetbase/references/rabetbase-bff-save.md +3 -3
  327. package/skills/rabetbase/references/rabetbase-config.md +2 -2
  328. package/skills/rabetbase/references/rabetbase-db-analyze.md +2 -2
  329. package/skills/rabetbase/references/rabetbase-db-detail.md +3 -0
  330. package/skills/rabetbase/references/rabetbase-db-diff-refresh.md +53 -0
  331. package/skills/rabetbase/references/rabetbase-db-diff.md +40 -21
  332. package/skills/rabetbase/references/rabetbase-db-list.md +1 -1
  333. package/skills/rabetbase/references/rabetbase-kb.md +5 -3
  334. package/skills/rabetbase/references/rabetbase-menu-asset-update.md +9 -10
  335. package/skills/rabetbase/references/rabetbase-menu-external-link-update.md +1 -3
  336. package/skills/rabetbase/references/rabetbase-menu-regroup-start.md +2 -3
  337. package/skills/rabetbase/references/rabetbase-notification-config-list.md +2 -2
  338. package/skills/rabetbase/references/rabetbase-notification-config-mutations.md +56 -0
  339. package/skills/rabetbase/references/rabetbase-page-react-detail.md +1 -1
  340. package/skills/rabetbase/references/rabetbase-page-react-list.md +1 -1
  341. package/skills/rabetbase/references/rabetbase-page-react-publish.md +2 -2
  342. package/skills/rabetbase/references/rabetbase-project-create.md +3 -0
  343. package/skills/rabetbase/references/rabetbase-run.md +1 -1
  344. package/skills/rabetbase/references/rabetbase-sql-create.md +1 -1
  345. package/skills/rabetbase/references/rabetbase-sql-push.md +3 -4
  346. package/skills/rabetbase/references/rabetbase-user-account.md +0 -1
  347. package/skills/rabetbase.manifest.json +5 -5
  348. package/templates/README.md +14 -2
  349. package/lib/commands/project/create/non-interactive.d.ts +0 -9
  350. package/lib/commands/project/create/non-interactive.js +0 -1
  351. package/lib/utils/copy-directory.d.ts +0 -1
  352. package/lib/utils/copy-directory.js +0 -1
  353. package/skills/rabetbase/knowledge/page-schema/LrSmartEcharts.md +0 -291
  354. package/skills/rabetbase/knowledge/page-schema/LrSmartStatistic.md +0 -223
  355. package/templates/projects/sub-app-react-demo/.prettierrc +0 -1
  356. package/templates/projects/sub-app-react-demo/CHANGELOG.md +0 -67
  357. package/templates/projects/sub-app-react-demo/README.md +0 -246
  358. package/templates/projects/sub-app-react-demo/docs/quick-start.md +0 -245
  359. package/templates/projects/sub-app-react-demo/index.html +0 -27
  360. package/templates/projects/sub-app-react-demo/package.json +0 -34
  361. package/templates/projects/sub-app-react-demo/public/logo.svg +0 -1
  362. package/templates/projects/sub-app-react-demo/public/vite.svg +0 -1
  363. package/templates/projects/sub-app-react-demo/src/api/api.ts +0 -26
  364. package/templates/projects/sub-app-react-demo/src/api/client.ts +0 -32
  365. package/templates/projects/sub-app-react-demo/src/components/demo-page-container/DemoPageContainer.module.css +0 -28
  366. package/templates/projects/sub-app-react-demo/src/components/demo-page-container/DemoPageContainer.tsx +0 -55
  367. package/templates/projects/sub-app-react-demo/src/layouts/MainLayout.tsx +0 -308
  368. package/templates/projects/sub-app-react-demo/src/main.tsx +0 -52
  369. package/templates/projects/sub-app-react-demo/src/pages/dashboard/index.tsx +0 -570
  370. package/templates/projects/sub-app-react-demo/src/pages/data-screen/index.tsx +0 -531
  371. package/templates/projects/sub-app-react-demo/src/pages/index.module.css +0 -500
  372. package/templates/projects/sub-app-react-demo/src/pages/index.tsx +0 -641
  373. package/templates/projects/sub-app-react-demo/src/pages/sdk-demo/index.tsx +0 -536
  374. package/templates/projects/sub-app-react-demo/src/pages/workbench/index.module.css +0 -295
  375. package/templates/projects/sub-app-react-demo/src/pages/workbench/index.tsx +0 -242
  376. package/templates/projects/sub-app-react-demo/src/router/index.tsx +0 -30
  377. package/templates/projects/sub-app-react-demo/src/style.css +0 -108
  378. package/templates/projects/sub-app-react-demo/src/utils/api.ts +0 -12
  379. package/templates/projects/sub-app-react-demo/src/vite-env.d.ts +0 -2
  380. package/templates/projects/sub-app-react-demo/tsconfig.json +0 -26
  381. package/templates/projects/sub-app-react-demo/vite.config.ts +0 -111
@@ -1 +1 @@
1
- (function(_0x3b8b81,_0x2e16f4){var _0x4c2eb5=a250_0xb051,_0x33a746=_0x3b8b81();while(!![]){try{var _0x3aa25b=parseInt(_0x4c2eb5(0x6d))/0x1*(-parseInt(_0x4c2eb5(0x67))/0x2)+-parseInt(_0x4c2eb5(0x6e))/0x3+-parseInt(_0x4c2eb5(0x65))/0x4*(-parseInt(_0x4c2eb5(0x6c))/0x5)+-parseInt(_0x4c2eb5(0x6a))/0x6*(-parseInt(_0x4c2eb5(0x66))/0x7)+-parseInt(_0x4c2eb5(0x69))/0x8+-parseInt(_0x4c2eb5(0x68))/0x9*(parseInt(_0x4c2eb5(0x6b))/0xa)+parseInt(_0x4c2eb5(0x6f))/0xb;if(_0x3aa25b===_0x2e16f4)break;else _0x33a746['push'](_0x33a746['shift']());}catch(_0x51283e){_0x33a746['push'](_0x33a746['shift']());}}}(a250_0x8011,0x4a9ba));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';function a250_0xb051(_0x4ffcc8,_0x284847){_0x4ffcc8=_0x4ffcc8-0x65;var _0x801188=a250_0x8011();var _0xb05117=_0x801188[_0x4ffcc8];return _0xb05117;}function a250_0x8011(){var _0x4a1f99=['81NzFWzA','109064uKnKMd','21522MzRapN','298010rUQPjw','387145HJpslG','2269TDTvvj','134838ioFfKf','6683875ubqYnC','4DOIKDe','371banmnC','214YRFlam'];a250_0x8011=function(){return _0x4a1f99;};return a250_0x8011();}
1
+ (function(_0x18b2cb,_0x2d80e2){var _0x413523=a258_0x29ae,_0x30959c=_0x18b2cb();while(!![]){try{var _0x4eff51=-parseInt(_0x413523(0x185))/0x1+parseInt(_0x413523(0x186))/0x2+-parseInt(_0x413523(0x17e))/0x3+-parseInt(_0x413523(0x181))/0x4*(parseInt(_0x413523(0x184))/0x5)+-parseInt(_0x413523(0x17f))/0x6*(parseInt(_0x413523(0x187))/0x7)+-parseInt(_0x413523(0x183))/0x8*(-parseInt(_0x413523(0x182))/0x9)+parseInt(_0x413523(0x180))/0xa;if(_0x4eff51===_0x2d80e2)break;else _0x30959c['push'](_0x30959c['shift']());}catch(_0x3b100b){_0x30959c['push'](_0x30959c['shift']());}}}(a258_0x1c7f,0x7c3ac));function a258_0x1c7f(){var _0x5ba654=['2396880KkoaLA','694115PZndwE','1525000xQwDcR','1680763OuIXbg','2051640AlTmuy','24ccKdbg','29260950UtCCVP','8kPmbkO','162CdKeKG','52192PaTYif'];a258_0x1c7f=function(){return _0x5ba654;};return a258_0x1c7f();}function a258_0x29ae(_0x1ee517,_0x408433){_0x1ee517=_0x1ee517-0x17e;var _0x1c7ff6=a258_0x1c7f();var _0x29ae51=_0x1c7ff6[_0x1ee517];return _0x29ae51;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "2.4.3";
2
- export declare const GIT_TAG = "v2.4.3";
3
- export declare const GIT_COMMIT = "ec23860";
4
- export declare const BUILD_TIME = "2026-08-13T06:43:19.931Z";
1
+ export declare const VERSION = "2.4.4";
2
+ export declare const GIT_TAG = "v2.4.4";
3
+ export declare const GIT_COMMIT = "5fcab74";
4
+ export declare const BUILD_TIME = "2026-08-13T15:07:29.562Z";
@@ -1 +1 @@
1
- function a251_0x3618(_0x524a22,_0x41a976){_0x524a22=_0x524a22-0x193;const _0x3749ad=a251_0x3749();let _0x361805=_0x3749ad[_0x524a22];return _0x361805;}const a251_0x49ed90=a251_0x3618;(function(_0x8c5cc,_0x21b6df){const _0x85a564=a251_0x3618,_0x545c1d=_0x8c5cc();while(!![]){try{const _0x1da103=-parseInt(_0x85a564(0x196))/0x1*(-parseInt(_0x85a564(0x195))/0x2)+-parseInt(_0x85a564(0x19d))/0x3+parseInt(_0x85a564(0x19f))/0x4*(-parseInt(_0x85a564(0x193))/0x5)+parseInt(_0x85a564(0x19e))/0x6*(parseInt(_0x85a564(0x199))/0x7)+parseInt(_0x85a564(0x1a0))/0x8+-parseInt(_0x85a564(0x1a1))/0x9*(parseInt(_0x85a564(0x19c))/0xa)+-parseInt(_0x85a564(0x197))/0xb*(-parseInt(_0x85a564(0x19b))/0xc);if(_0x1da103===_0x21b6df)break;else _0x545c1d['push'](_0x545c1d['shift']());}catch(_0x507bb4){_0x545c1d['push'](_0x545c1d['shift']());}}}(a251_0x3749,0x23340));export const VERSION=a251_0x49ed90(0x194);export const GIT_TAG='v2.4.3';export const GIT_COMMIT=a251_0x49ed90(0x19a);export const BUILD_TIME=a251_0x49ed90(0x198);function a251_0x3749(){const _0x4a17ef=['24dzvWzV','237872oSoxcD','59553pXCvNC','221040pqWDeu','2.4.3','4IaXlYC','134ipbkJO','110KUiNul','2026-08-13T06:43:19.931Z','112woRKEH','ec23860','352380dNuRIh','130fbfFti','196269RaHqWk','88962NPydib'];a251_0x3749=function(){return _0x4a17ef;};return a251_0x3749();}
1
+ const a259_0x5ef986=a259_0x2139;(function(_0x14ec95,_0x1696ee){const _0x5ed029=a259_0x2139,_0x2ee1d9=_0x14ec95();while(!![]){try{const _0x30ec4f=parseInt(_0x5ed029(0x114))/0x1*(-parseInt(_0x5ed029(0x112))/0x2)+-parseInt(_0x5ed029(0x111))/0x3+-parseInt(_0x5ed029(0x119))/0x4+parseInt(_0x5ed029(0x116))/0x5+parseInt(_0x5ed029(0x11c))/0x6+-parseInt(_0x5ed029(0x113))/0x7*(-parseInt(_0x5ed029(0x11a))/0x8)+parseInt(_0x5ed029(0x11b))/0x9*(parseInt(_0x5ed029(0x118))/0xa);if(_0x30ec4f===_0x1696ee)break;else _0x2ee1d9['push'](_0x2ee1d9['shift']());}catch(_0x6ef059){_0x2ee1d9['push'](_0x2ee1d9['shift']());}}}(a259_0x5b1d,0x4403f));export const VERSION=a259_0x5ef986(0x110);function a259_0x2139(_0x2cbe96,_0x4d4ee7){_0x2cbe96=_0x2cbe96-0x110;const _0x5b1d01=a259_0x5b1d();let _0x213943=_0x5b1d01[_0x2cbe96];return _0x213943;}export const GIT_TAG='v2.4.4';export const GIT_COMMIT=a259_0x5ef986(0x115);function a259_0x5b1d(){const _0x5d4e13=['2YymgQk','7twYiaW','530191INvCxQ','5fcab74','1236035qTEOOs','2026-08-13T15:07:29.562Z','209810fpRwmd','1494112HgBBhk','1502608QGeheX','360NuRlZo','1445352QgXvFQ','2.4.4','998565VkuKXl'];a259_0x5b1d=function(){return _0x5d4e13;};return a259_0x5b1d();}export const BUILD_TIME=a259_0x5ef986(0x117);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x5134aa,_0x55fba8){var _0x1dfb95=a252_0x12d3,_0x21972f=_0x5134aa();while(!![]){try{var _0x11fb77=-parseInt(_0x1dfb95(0x1df))/0x1*(parseInt(_0x1dfb95(0x1d3))/0x2)+-parseInt(_0x1dfb95(0x1d4))/0x3+parseInt(_0x1dfb95(0x1dc))/0x4*(parseInt(_0x1dfb95(0x1e2))/0x5)+parseInt(_0x1dfb95(0x1de))/0x6+-parseInt(_0x1dfb95(0x1d9))/0x7+parseInt(_0x1dfb95(0x1e0))/0x8*(parseInt(_0x1dfb95(0x1e1))/0x9)+parseInt(_0x1dfb95(0x1d6))/0xa*(-parseInt(_0x1dfb95(0x1da))/0xb);if(_0x11fb77===_0x55fba8)break;else _0x21972f['push'](_0x21972f['shift']());}catch(_0x36bc5c){_0x21972f['push'](_0x21972f['shift']());}}}(a252_0x217b,0x779ae));function a252_0x217b(){var _0x5d7569=['6342568nfczjs','9LoCpPv','5gynFWz','108182qbwFLY','990138tLcANf','\x20to\x20view\x20available\x20commands.','890ymICCE','\x20--help','green','688723Ydmtml','1485PlNTSd','log','117416AUSsAN','bold','4543614NuuhMI','12ZcliMh'];a252_0x217b=function(){return _0x5d7569;};return a252_0x217b();}import a252_0x481700 from'chalk';function a252_0x12d3(_0x13d603,_0x2b8e83){_0x13d603=_0x13d603-0x1d3;var _0x217b3c=a252_0x217b();var _0x12d347=_0x217b3c[_0x13d603];return _0x12d347;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x576110=a252_0x12d3;console[_0x576110(0x1db)](),console[_0x576110(0x1db)](a252_0x481700[_0x576110(0x1d8)][_0x576110(0x1dd)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x576110(0x1db)](),console[_0x576110(0x1db)]('\x20\x20Use\x20'+a252_0x481700['green'][_0x576110(0x1dd)](CLI_BIN_NAME+_0x576110(0x1d7))+_0x576110(0x1d5)),console[_0x576110(0x1db)]();}
1
+ (function(_0x171eea,_0x49217d){var _0x59a5cc=a260_0x2acf,_0x2af819=_0x171eea();while(!![]){try{var _0xe41107=-parseInt(_0x59a5cc(0x124))/0x1+-parseInt(_0x59a5cc(0x12e))/0x2*(-parseInt(_0x59a5cc(0x12b))/0x3)+-parseInt(_0x59a5cc(0x12c))/0x4+parseInt(_0x59a5cc(0x125))/0x5*(parseInt(_0x59a5cc(0x123))/0x6)+parseInt(_0x59a5cc(0x126))/0x7*(parseInt(_0x59a5cc(0x131))/0x8)+parseInt(_0x59a5cc(0x122))/0x9*(-parseInt(_0x59a5cc(0x12f))/0xa)+-parseInt(_0x59a5cc(0x128))/0xb*(-parseInt(_0x59a5cc(0x12d))/0xc);if(_0xe41107===_0x49217d)break;else _0x2af819['push'](_0x2af819['shift']());}catch(_0x2382d4){_0x2af819['push'](_0x2af819['shift']());}}}(a260_0x531a,0xd9aeb));function a260_0x531a(){var _0x5c5905=['234GOXQmV','1672970wnqVGj','\x20to\x20view\x20available\x20commands.','320ISQKVK','\x20--help','90NZoasT','2663988nLvUig','793254rSUqJG','10FbwVIm','19201vdNZDO','log','1760xGfXDP','bold','green','15btXpbf','6064520EIcDSh','290676UhMvqd'];a260_0x531a=function(){return _0x5c5905;};return a260_0x531a();}import a260_0x5a4b28 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a260_0x2acf(_0x5d8ba5,_0x230d7f){_0x5d8ba5=_0x5d8ba5-0x122;var _0x531a52=a260_0x531a();var _0x2acfb6=_0x531a52[_0x5d8ba5];return _0x2acfb6;}export function showHelp(){var _0xe67da2=a260_0x2acf;console[_0xe67da2(0x127)](),console[_0xe67da2(0x127)](a260_0x5a4b28['green'][_0xe67da2(0x129)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0xe67da2(0x127)](),console['log']('\x20\x20Use\x20'+a260_0x5a4b28[_0xe67da2(0x12a)][_0xe67da2(0x129)](CLI_BIN_NAME+_0xe67da2(0x132))+_0xe67da2(0x130)),console[_0xe67da2(0x127)]();}
@@ -1 +1 @@
1
- (function(_0x33c180,_0x148588){const _0x1a1ee4=a253_0x1a7a,_0x155eff=_0x33c180();while(!![]){try{const _0x45026a=parseInt(_0x1a1ee4(0x13f))/0x1*(-parseInt(_0x1a1ee4(0x144))/0x2)+-parseInt(_0x1a1ee4(0x152))/0x3*(parseInt(_0x1a1ee4(0x151))/0x4)+-parseInt(_0x1a1ee4(0x14a))/0x5+parseInt(_0x1a1ee4(0x13e))/0x6*(parseInt(_0x1a1ee4(0x14e))/0x7)+-parseInt(_0x1a1ee4(0x141))/0x8+-parseInt(_0x1a1ee4(0x150))/0x9+parseInt(_0x1a1ee4(0x14c))/0xa;if(_0x45026a===_0x148588)break;else _0x155eff['push'](_0x155eff['shift']());}catch(_0x290819){_0x155eff['push'](_0x155eff['shift']());}}}(a253_0x3201,0x2db18));function a253_0x1a7a(_0x5afb8e,_0xea9fb7){_0x5afb8e=_0x5afb8e-0x13e;const _0x320192=a253_0x3201();let _0x1a7ae5=_0x320192[_0x5afb8e];return _0x1a7ae5;}function a253_0x3201(){const _0x24ea45=['log','repairCommand','Rabetbase\x20Built-in\x20Skill\x20','1760215mTqNeT','warn','11541760KInthv','[BUILTIN_SKILL_INSTALL_','7KsoWXi','\x20at\x20','2643120LPsrKd','559628VSwjeJ','6UihMGj','1464942WnUtzj','2FYhLPC','installedPath','303616ciGexR','SOURCE_INVALID','code','247684NWWBqv','FAILED','Installation\x20failed'];a253_0x3201=function(){return _0x24ea45;};return a253_0x3201();}import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x28aa05={}){const _0x351868=a253_0x1a7a,_0x3e434f=installBuiltinSkill(_0x28aa05);if(_0x3e434f['ok']){const _0x455d04=_0x3e434f['changed']?'installed':'already\x20current',_0x3c1a9d=_0x3e434f[_0x351868(0x140)]?_0x351868(0x14f)+_0x3e434f[_0x351868(0x140)]:'\x20via\x20skills@latest';return console[_0x351868(0x147)](_0x351868(0x149)+_0x3e434f['skillVersion']+'\x20'+_0x455d04+_0x3c1a9d),_0x3e434f;}const _0x296f17=_0x351868(0x14d)+(_0x3e434f[_0x351868(0x143)]??_0x351868(0x145))+']\x20'+(_0x3e434f['error']??_0x351868(0x146))+'.\x20'+('Repair\x20with:\x20'+_0x3e434f[_0x351868(0x148)]);if(_0x3e434f[_0x351868(0x143)]===_0x351868(0x142))throw new Error(_0x296f17);return console[_0x351868(0x14b)](_0x296f17),_0x3e434f;}
1
+ (function(_0x10a917,_0x3294bf){const _0x3bde9a=a261_0x936d,_0x317e30=_0x10a917();while(!![]){try{const _0x131b89=parseInt(_0x3bde9a(0x13f))/0x1*(-parseInt(_0x3bde9a(0x12c))/0x2)+parseInt(_0x3bde9a(0x13b))/0x3*(-parseInt(_0x3bde9a(0x12e))/0x4)+parseInt(_0x3bde9a(0x13d))/0x5*(parseInt(_0x3bde9a(0x130))/0x6)+parseInt(_0x3bde9a(0x138))/0x7+-parseInt(_0x3bde9a(0x12f))/0x8+parseInt(_0x3bde9a(0x132))/0x9*(parseInt(_0x3bde9a(0x12a))/0xa)+parseInt(_0x3bde9a(0x12d))/0xb*(parseInt(_0x3bde9a(0x140))/0xc);if(_0x131b89===_0x3294bf)break;else _0x317e30['push'](_0x317e30['shift']());}catch(_0x453895){_0x317e30['push'](_0x317e30['shift']());}}}(a261_0x12e2,0x23d45));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a261_0x936d(_0x36a046,_0x32b537){_0x36a046=_0x36a046-0x129;const _0x12e2d4=a261_0x12e2();let _0x936db5=_0x12e2d4[_0x36a046];return _0x936db5;}export async function runPostinstall(_0x14750f={}){const _0x298227=a261_0x936d,_0x26bdd5=installBuiltinSkill(_0x14750f);if(_0x26bdd5['ok']){const _0x719260=_0x26bdd5['changed']?_0x298227(0x136):'already\x20current',_0x4fb4fe=_0x26bdd5[_0x298227(0x133)]?_0x298227(0x139)+_0x26bdd5[_0x298227(0x133)]:'\x20via\x20skills@latest';return console['log'](_0x298227(0x13a)+_0x26bdd5[_0x298227(0x12b)]+'\x20'+_0x719260+_0x4fb4fe),_0x26bdd5;}const _0x27bf92='[BUILTIN_SKILL_INSTALL_'+(_0x26bdd5[_0x298227(0x13c)]??_0x298227(0x131))+']\x20'+(_0x26bdd5[_0x298227(0x135)]??'Installation\x20failed')+'.\x20'+(_0x298227(0x13e)+_0x26bdd5[_0x298227(0x137)]);if(_0x26bdd5[_0x298227(0x13c)]===_0x298227(0x134))throw new Error(_0x27bf92);return console[_0x298227(0x129)](_0x27bf92),_0x26bdd5;}function a261_0x12e2(){const _0x27a43f=['24WnpVvY','warn','92470pDgfYV','skillVersion','137194iLqRQp','857043vhjDmZ','12pZmvWH','1022672AIOQXo','6STBKkA','FAILED','63jhjOGz','installedPath','SOURCE_INVALID','error','installed','repairCommand','1043798tNCqbE','\x20at\x20','Rabetbase\x20Built-in\x20Skill\x20','179871zxmgzJ','code','1109935IeoKRg','Repair\x20with:\x20','2aMTOaH'];a261_0x12e2=function(){return _0x27a43f;};return a261_0x12e2();}
@@ -1 +1 @@
1
- (function(_0x2c3174,_0x7457b7){const _0x42f063=a254_0x2099,_0x107bc5=_0x2c3174();while(!![]){try{const _0x31b362=parseInt(_0x42f063(0x183))/0x1*(-parseInt(_0x42f063(0x17d))/0x2)+parseInt(_0x42f063(0x180))/0x3*(-parseInt(_0x42f063(0x18d))/0x4)+-parseInt(_0x42f063(0x188))/0x5+parseInt(_0x42f063(0x184))/0x6+parseInt(_0x42f063(0x18e))/0x7+-parseInt(_0x42f063(0x17f))/0x8*(parseInt(_0x42f063(0x18c))/0x9)+parseInt(_0x42f063(0x17c))/0xa;if(_0x31b362===_0x7457b7)break;else _0x107bc5['push'](_0x107bc5['shift']());}catch(_0x4d1241){_0x107bc5['push'](_0x107bc5['shift']());}}}(a254_0x4c3b,0x2c7bd));const DESCRIPTION_MAX_LENGTH=0x1f4;function a254_0x4c3b(){const _0x447ab6=['101026FVvXwD',';该操作可能创建或修改业务数据或本地配置。','2456dSpFIF','10809drygVD',';该操作可能覆盖、删除或明显影响线上运行行为。','将执行写入操作\x20','7DjWojz','2112234XkSobj','high-risk-write','risk','replace','943685OMFhlN','confirmationDescription','slice','write','486ynRrBE','212nmNPqW','2106125kPyIfh','trim','2791560OwLARI'];a254_0x4c3b=function(){return _0x447ab6;};return a254_0x4c3b();}export function buildRabetbaseConfirmationRequest(_0x23ba97,_0x1a5979,_0x1f6691){const _0x57574d=a254_0x2099,_0x5a8454=normalizeText(_0x23ba97[_0x57574d(0x189)],DESCRIPTION_MAX_LENGTH),_0x3cd264=_0x5a8454||normalizeText(defaultDescription(requireWriteRisk(_0x23ba97),_0x1a5979),DESCRIPTION_MAX_LENGTH);return{'operation':_0x1a5979,'risk':requireWriteRisk(_0x23ba97),'description':_0x3cd264,..._0x1f6691?{'signal':_0x1f6691}:{}};}function requireWriteRisk(_0x23943f){const _0x79b5d8=a254_0x2099;if(_0x23943f[_0x79b5d8(0x186)]===_0x79b5d8(0x18b)||_0x23943f[_0x79b5d8(0x186)]===_0x79b5d8(0x185))return _0x23943f['risk'];throw new Error('Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.');}function a254_0x2099(_0x3981f2,_0xffaf35){_0x3981f2=_0x3981f2-0x17b;const _0x4c3b07=a254_0x4c3b();let _0x209984=_0x4c3b07[_0x3981f2];return _0x209984;}function defaultDescription(_0x149110,_0x3e3536){const _0x2de216=a254_0x2099;if(_0x149110===_0x2de216(0x185))return'将执行高风险写入操作\x20'+_0x3e3536+_0x2de216(0x181);return _0x2de216(0x182)+_0x3e3536+_0x2de216(0x17e);}function normalizeText(_0x5d79e6,_0x549caa){const _0x599c9a=a254_0x2099;if(typeof _0x5d79e6!=='string')return'';return _0x5d79e6[_0x599c9a(0x187)](/[\u0000-\u001f\u007f]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x599c9a(0x17b)]()[_0x599c9a(0x18a)](0x0,_0x549caa);}
1
+ function a262_0x496a(){const _0x43eecc=['replace','slice','high-risk-write','15QzqmEQ','trim',';该操作可能创建或修改业务数据或本地配置。','1163550pFtclN','2423278tjJlDG','将执行写入操作\x20','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','1560102RbfeKH','write','将执行高风险写入操作\x20','risk','1810thnYzs','44334oNCytk','7365827uIFYpA',';该操作可能覆盖、删除或明显影响线上运行行为。','confirmationDescription','7344896BLuuec','4CydUlA','288093THsCqP'];a262_0x496a=function(){return _0x43eecc;};return a262_0x496a();}function a262_0x3db5(_0x3ee195,_0x4320b0){_0x3ee195=_0x3ee195-0xff;const _0x496a91=a262_0x496a();let _0x3db599=_0x496a91[_0x3ee195];return _0x3db599;}(function(_0x279dbb,_0xc56e7a){const _0x1064f3=a262_0x3db5,_0x105ec9=_0x279dbb();while(!![]){try{const _0x38592d=-parseInt(_0x1064f3(0x106))/0x1+-parseInt(_0x1064f3(0x10e))/0x2+-parseInt(_0x1064f3(0x10d))/0x3*(-parseInt(_0x1064f3(0x105))/0x4)+-parseInt(_0x1064f3(0x10a))/0x5*(-parseInt(_0x1064f3(0x111))/0x6)+parseInt(_0x1064f3(0x101))/0x7+-parseInt(_0x1064f3(0x104))/0x8+parseInt(_0x1064f3(0x100))/0x9*(parseInt(_0x1064f3(0xff))/0xa);if(_0x38592d===_0xc56e7a)break;else _0x105ec9['push'](_0x105ec9['shift']());}catch(_0x5dbe02){_0x105ec9['push'](_0x105ec9['shift']());}}}(a262_0x496a,0xa96a4));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x6f01dd,_0x4e686b,_0x3abac4){const _0x5b8891=a262_0x3db5,_0x4a542a=normalizeText(_0x6f01dd[_0x5b8891(0x103)],DESCRIPTION_MAX_LENGTH),_0x437dfa=_0x4a542a||normalizeText(defaultDescription(requireWriteRisk(_0x6f01dd),_0x4e686b),DESCRIPTION_MAX_LENGTH);return{'operation':_0x4e686b,'risk':requireWriteRisk(_0x6f01dd),'description':_0x437dfa,..._0x3abac4?{'signal':_0x3abac4}:{}};}function requireWriteRisk(_0xe74f2c){const _0x200987=a262_0x3db5;if(_0xe74f2c[_0x200987(0x114)]===_0x200987(0x112)||_0xe74f2c[_0x200987(0x114)]==='high-risk-write')return _0xe74f2c['risk'];throw new Error(_0x200987(0x110));}function defaultDescription(_0x4c1b7f,_0xedf8e6){const _0x1670f5=a262_0x3db5;if(_0x4c1b7f===_0x1670f5(0x109))return _0x1670f5(0x113)+_0xedf8e6+_0x1670f5(0x102);return _0x1670f5(0x10f)+_0xedf8e6+_0x1670f5(0x10c);}function normalizeText(_0x2efdd8,_0x19ce00){const _0x75541e=a262_0x3db5;if(typeof _0x2efdd8!=='string')return'';return _0x2efdd8['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x75541e(0x107)](/\s+/g,'\x20')[_0x75541e(0x10b)]()[_0x75541e(0x108)](0x0,_0x19ce00);}
@@ -1 +1 @@
1
- (function(_0xe6b991,_0x55078c){var _0x372d3b=a255_0x4b98,_0x27bac6=_0xe6b991();while(!![]){try{var _0x59679a=parseInt(_0x372d3b(0x115))/0x1+parseInt(_0x372d3b(0x112))/0x2*(parseInt(_0x372d3b(0x10f))/0x3)+parseInt(_0x372d3b(0x114))/0x4+parseInt(_0x372d3b(0x110))/0x5*(-parseInt(_0x372d3b(0x111))/0x6)+-parseInt(_0x372d3b(0x11f))/0x7*(parseInt(_0x372d3b(0x10e))/0x8)+parseInt(_0x372d3b(0x119))/0x9+parseInt(_0x372d3b(0x11b))/0xa*(parseInt(_0x372d3b(0x11c))/0xb);if(_0x59679a===_0x55078c)break;else _0x27bac6['push'](_0x27bac6['shift']());}catch(_0x2acd36){_0x27bac6['push'](_0x27bac6['shift']());}}}(a255_0x2f49,0x9c792));function a255_0x4b98(_0x52f588,_0x4bcc53){_0x52f588=_0x52f588-0x10d;var _0x2f49fa=a255_0x2f49();var _0x4b98d4=_0x2f49fa[_0x52f588];return _0x4b98d4;}function a255_0x2f49(){var _0x39523e=['169769bAfKtZ','write','filter','split','6226326ObBmPZ','join','10geAUgT','3734489vHQuRx','risk','command','35945YLOlgb','service','high-risk-write','600ISdfmv','3wrDtiE','15tHAfmD','1628766vLjDTm','593246lqoVeU','rabetbase.write.completed','1370868dNameH'];a255_0x2f49=function(){return _0x39523e;};return a255_0x2f49();}export function canonicalRabetbaseOperation(_0x3e0568){var _0x20b5ae=a255_0x4b98;return[_0x3e0568[_0x20b5ae(0x120)],..._0x3e0568[_0x20b5ae(0x11e)]['trim']()[_0x20b5ae(0x118)](/\s+/)][_0x20b5ae(0x117)](Boolean)[_0x20b5ae(0x11a)]('.');}export function createRabetbaseWriteMetadata(_0x521e72,_0x4a882d,_0x29b936,_0x1c9838){var _0x56bd34=a255_0x4b98;if(_0x1c9838||_0x29b936['ok']!==!![]||_0x521e72[_0x56bd34(0x11d)]!==_0x56bd34(0x116)&&_0x521e72[_0x56bd34(0x11d)]!==_0x56bd34(0x10d))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x56bd34(0x113),'operation':_0x4a882d,'risk':_0x521e72[_0x56bd34(0x11d)]}}};}
1
+ (function(_0x4ca3c7,_0xeed49b){var _0x4cd7e3=a263_0x5edc,_0x50b692=_0x4ca3c7();while(!![]){try{var _0xba08e0=-parseInt(_0x4cd7e3(0xbb))/0x1*(parseInt(_0x4cd7e3(0xc0))/0x2)+parseInt(_0x4cd7e3(0xc5))/0x3+parseInt(_0x4cd7e3(0xba))/0x4+parseInt(_0x4cd7e3(0xc8))/0x5*(parseInt(_0x4cd7e3(0xc7))/0x6)+parseInt(_0x4cd7e3(0xbe))/0x7*(parseInt(_0x4cd7e3(0xcb))/0x8)+parseInt(_0x4cd7e3(0xbd))/0x9*(parseInt(_0x4cd7e3(0xca))/0xa)+parseInt(_0x4cd7e3(0xb9))/0xb*(-parseInt(_0x4cd7e3(0xc4))/0xc);if(_0xba08e0===_0xeed49b)break;else _0x50b692['push'](_0x50b692['shift']());}catch(_0x17aa77){_0x50b692['push'](_0x50b692['shift']());}}}(a263_0x3a0d,0x9262b));export function canonicalRabetbaseOperation(_0x9633a8){var _0x32b136=a263_0x5edc;return[_0x9633a8[_0x32b136(0xbf)],..._0x9633a8[_0x32b136(0xcd)][_0x32b136(0xc1)]()[_0x32b136(0xc2)](/\s+/)][_0x32b136(0xcc)](Boolean)[_0x32b136(0xc9)]('.');}function a263_0x5edc(_0x1e8e75,_0x14d940){_0x1e8e75=_0x1e8e75-0xb9;var _0x3a0d0b=a263_0x3a0d();var _0x5edcb4=_0x3a0d0b[_0x1e8e75];return _0x5edcb4;}export function createRabetbaseWriteMetadata(_0x534224,_0x2da284,_0x4a26be,_0x34a219){var _0x3a5432=a263_0x5edc;if(_0x34a219||_0x4a26be['ok']!==!![]||_0x534224['risk']!==_0x3a5432(0xc6)&&_0x534224[_0x3a5432(0xbc)]!=='high-risk-write')return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x3a5432(0xc3),'operation':_0x2da284,'risk':_0x534224[_0x3a5432(0xbc)]}}};}function a263_0x3a0d(){var _0x435e20=['trim','split','rabetbase.write.completed','1164TDvvEF','2493300QhIiyr','write','24EIFWgj','665CeaLgG','join','490LTDNjQ','22256jgEtjU','filter','command','66913YcgaTT','2181492cDEtHh','43BqcFtb','risk','103167jWnLVx','826ighGpy','service','50108SJieif'];a263_0x3a0d=function(){return _0x435e20;};return a263_0x3a0d();}
@@ -1 +1 @@
1
- (function(_0x50bc51,_0x1f3d85){const _0x445e9a=a256_0xd48c,_0x3f3379=_0x50bc51();while(!![]){try{const _0x544985=parseInt(_0x445e9a(0x84))/0x1+-parseInt(_0x445e9a(0x7a))/0x2*(parseInt(_0x445e9a(0x81))/0x3)+-parseInt(_0x445e9a(0x8e))/0x4*(parseInt(_0x445e9a(0x7e))/0x5)+-parseInt(_0x445e9a(0x7d))/0x6+parseInt(_0x445e9a(0x72))/0x7+parseInt(_0x445e9a(0x82))/0x8*(parseInt(_0x445e9a(0x73))/0x9)+parseInt(_0x445e9a(0x77))/0xa*(parseInt(_0x445e9a(0x83))/0xb);if(_0x544985===_0x1f3d85)break;else _0x3f3379['push'](_0x3f3379['shift']());}catch(_0x5a4c8b){_0x3f3379['push'](_0x3f3379['shift']());}}}(a256_0x3735,0x679cd));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';import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x4b05f4,command:_0x2fdde8,risk:_0x2bd40a,dryRun:_0x312519}){const _0x4beba9=a256_0xd48c;return JSON['stringify']({'ok':_0x4b05f4['ok'],'command':_0x2fdde8,'risk':_0x2bd40a,..._0x312519?{'dryRun':!![]}:{},..._0x4b05f4[_0x4beba9(0x8a)]!==undefined?{'data':_0x4b05f4[_0x4beba9(0x8a)]}:{},..._0x4b05f4[_0x4beba9(0x88)]?{'message':_0x4b05f4[_0x4beba9(0x88)]}:{}});}};export async function invokeRabetbase(_0x5b3a34,_0x15e507){const _0x54a617=a256_0xd48c;throwIfAborted(_0x15e507[_0x54a617(0x87)]);const _0x51fd29=await resolveRabetbaseInvocation(_0x5b3a34),_0x1f00ed=canonicalRabetbaseOperation(_0x51fd29[_0x54a617(0x80)]);return await confirmWriteBeforeQueue(_0x51fd29[_0x54a617(0x80)],_0x51fd29['rawFlags'],_0x1f00ed,_0x15e507),runSerialized(async()=>{const _0x452670=_0x54a617,_0x5e8494={};try{throwIfAborted(_0x15e507[_0x452670(0x87)]);const _0x1f5feb=buildConfigFromFlags(_0x51fd29['rawFlags']);await initGlobalEnvironment(_0x1f5feb);const _0x5a2e7d=createPipelineEnv(_0x1f5feb,{..._0x51fd29[_0x452670(0x76)],'yes':_0x51fd29[_0x452670(0x80)]['risk']===_0x452670(0x7b)?!![]:_0x51fd29['rawFlags'][_0x452670(0x92)],'nonInteractive':!![]},_0x51fd29['args']);_0x5a2e7d[_0x452670(0x78)]=!![],_0x5a2e7d[_0x452670(0x8f)]=_0x452670(0x7b);const _0x2a7924=withAbortSignal(_0x51fd29[_0x452670(0x80)],_0x15e507['signal']),_0x749169=createRabetbaseRunnerAdapter({'formatOutput'(_0x5251b2,_0x4c9d26){const _0x25f848=_0x452670;_0x5e8494[_0x25f848(0x8b)]=_0x5251b2,_0x5e8494[_0x25f848(0x8d)]=_0x4c9d26[_0x25f848(0x8d)],_0x5e8494[_0x25f848(0x75)]=_0x4c9d26['risk'],_0x5e8494[_0x25f848(0x74)]=_0x4c9d26[_0x25f848(0x74)],_0x5e8494[_0x25f848(0x79)]=_0x4c9d26['dryRun']===!![];},async 'confirmHighRisk'(){const _0x3201f7=_0x452670;throw new Error(_0x3201f7(0x7f));}});await runCommand(_0x2a7924,_0x5a2e7d,_0x749169);if(!_0x5e8494[_0x452670(0x8b)]||!_0x5e8494[_0x452670(0x8d)]||!_0x5e8494[_0x452670(0x75)]||!_0x5e8494[_0x452670(0x74)])throw new Error(_0x452670(0x7c));const _0x4fe8ae=_0x5e8494[_0x452670(0x79)]===!![],_0x405ba2=_0x15e507['presentation']??defaultPresentation,_0x477ba9={'result':_0x5e8494[_0x452670(0x8b)],'command':_0x5e8494[_0x452670(0x8d)],'operation':_0x1f00ed,'risk':_0x5e8494[_0x452670(0x75)],'format':_0x5e8494['format'],'dryRun':_0x4fe8ae},_0x55e21a=createRabetbaseWriteMetadata(_0x51fd29[_0x452670(0x80)],_0x1f00ed,_0x5e8494[_0x452670(0x8b)],_0x4fe8ae);let _0x3c148b;try{_0x3c148b=await _0x405ba2[_0x452670(0x91)](_0x477ba9);}catch(_0x51ef66){if(!_0x55e21a||_0x405ba2===defaultPresentation)throw _0x51ef66;_0x3c148b=await defaultPresentation['present'](_0x477ba9);}return{'operation':_0x1f00ed,'risk':_0x5e8494[_0x452670(0x75)],'mode':_0x4fe8ae?_0x452670(0x8c):'execute','result':_0x5e8494[_0x452670(0x8b)],'output':_0x3c148b,..._0x55e21a?{'metadata':_0x55e21a}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x109095,_0x3b1263,_0x35f8b8,_0xe5493d){const _0x53fbbc=a256_0xd48c;if(_0x3b1263[_0x53fbbc(0x79)]===!![]||_0x109095[_0x53fbbc(0x75)]!==_0x53fbbc(0x93)&&_0x109095[_0x53fbbc(0x75)]!==_0x53fbbc(0x7b))return;await _0xe5493d[_0x53fbbc(0x85)]['confirm'](buildRabetbaseConfirmationRequest(_0x109095,_0x35f8b8,_0xe5493d[_0x53fbbc(0x87)]));}function withAbortSignal(_0x355d52,_0x1abbdb){return{..._0x355d52,async 'execute'(_0x286c59){const _0x386323=a256_0xd48c;return throwIfAborted(_0x1abbdb),_0x355d52[_0x386323(0x90)](_0x286c59);}};}function throwIfAborted(_0x5a124c){const _0x27ea7f=a256_0xd48c;if(_0x5a124c?.['aborted'])throw _0x5a124c[_0x27ea7f(0x86)]instanceof Error?_0x5a124c['reason']:new DOMException(_0x27ea7f(0x89),'AbortError');}function a256_0xd48c(_0x3bcce6,_0x1335f1){_0x3bcce6=_0x3bcce6-0x72;const _0x3735fa=a256_0x3735();let _0xd48c6b=_0x3735fa[_0x3bcce6];return _0xd48c6b;}function a256_0x3735(){const _0x548086=['yes','write','4256903FJuzxi','563967nvnFXn','format','risk','rawFlags','56390xnqhEb','isNonInteractive','dryRun','424736lljVrp','high-risk-write','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','1763172TXvaOJ','5kvDjdq','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','definition','9XoMMJt','32gTshKt','418YCxleO','295913vhdWTB','confirmation','reason','signal','message','Rabetbase\x20invocation\x20aborted.','data','result','dry-run','command','54452Npslww','riskLevel','execute','present'];a256_0x3735=function(){return _0x548086;};return a256_0x3735();}
1
+ (function(_0x16629b,_0x24b447){const _0x19b0ac=a264_0x13d7,_0x14b5d1=_0x16629b();while(!![]){try{const _0x2a974f=-parseInt(_0x19b0ac(0x1f9))/0x1*(parseInt(_0x19b0ac(0x1e7))/0x2)+-parseInt(_0x19b0ac(0x1f4))/0x3*(-parseInt(_0x19b0ac(0x1fd))/0x4)+-parseInt(_0x19b0ac(0x203))/0x5+-parseInt(_0x19b0ac(0x1e5))/0x6+-parseInt(_0x19b0ac(0x1ea))/0x7*(parseInt(_0x19b0ac(0x1f2))/0x8)+-parseInt(_0x19b0ac(0x20a))/0x9*(parseInt(_0x19b0ac(0x1ec))/0xa)+-parseInt(_0x19b0ac(0x1fa))/0xb*(-parseInt(_0x19b0ac(0x206))/0xc);if(_0x2a974f===_0x24b447)break;else _0x14b5d1['push'](_0x14b5d1['shift']());}catch(_0x2f33e7){_0x14b5d1['push'](_0x14b5d1['shift']());}}}(a264_0x44f0,0xbcc35));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';function a264_0x44f0(){const _0x21ed42=['126738aXlhzE','4663800CIBwaK','stringify','11686IHkOYt','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','command','4747960itqOme','isNonInteractive','230CSLpLt','risk','dry-run','result','format','yes','8JIaFxW','present','2553TOWqAr','write','signal','execute','confirmation','151UJXhJr','33qhWIBF','dryRun','args','6044JNufYm','confirm','message','high-risk-write','definition','presentation','5701200zElWMr','reason','riskLevel','13157244EOoMyd','AbortError','rawFlags','data'];a264_0x44f0=function(){return _0x21ed42;};return a264_0x44f0();}import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x26f544,command:_0x25215b,risk:_0x56d524,dryRun:_0x2eeff6}){const _0x3771f9=a264_0x13d7;return JSON[_0x3771f9(0x1e6)]({'ok':_0x26f544['ok'],'command':_0x25215b,'risk':_0x56d524,..._0x2eeff6?{'dryRun':!![]}:{},..._0x26f544[_0x3771f9(0x209)]!==undefined?{'data':_0x26f544[_0x3771f9(0x209)]}:{},..._0x26f544[_0x3771f9(0x1ff)]?{'message':_0x26f544[_0x3771f9(0x1ff)]}:{}});}};function a264_0x13d7(_0xa8d81e,_0x4f7891){_0xa8d81e=_0xa8d81e-0x1e5;const _0x44f068=a264_0x44f0();let _0x13d78e=_0x44f068[_0xa8d81e];return _0x13d78e;}export async function invokeRabetbase(_0x2fb8f4,_0x14e665){const _0x3ba3d6=a264_0x13d7;throwIfAborted(_0x14e665['signal']);const _0x31cb6e=await resolveRabetbaseInvocation(_0x2fb8f4),_0x7abd52=canonicalRabetbaseOperation(_0x31cb6e[_0x3ba3d6(0x201)]);return await confirmWriteBeforeQueue(_0x31cb6e[_0x3ba3d6(0x201)],_0x31cb6e[_0x3ba3d6(0x208)],_0x7abd52,_0x14e665),runSerialized(async()=>{const _0xf8e290=_0x3ba3d6,_0x254885={};try{throwIfAborted(_0x14e665[_0xf8e290(0x1f6)]);const _0x20eadf=buildConfigFromFlags(_0x31cb6e['rawFlags']);await initGlobalEnvironment(_0x20eadf);const _0x51cbbc=createPipelineEnv(_0x20eadf,{..._0x31cb6e[_0xf8e290(0x208)],'yes':_0x31cb6e[_0xf8e290(0x201)][_0xf8e290(0x1ed)]===_0xf8e290(0x200)?!![]:_0x31cb6e['rawFlags'][_0xf8e290(0x1f1)],'nonInteractive':!![]},_0x31cb6e[_0xf8e290(0x1fc)]);_0x51cbbc[_0xf8e290(0x1eb)]=!![],_0x51cbbc[_0xf8e290(0x205)]=_0xf8e290(0x200);const _0x4c4c30=withAbortSignal(_0x31cb6e['definition'],_0x14e665['signal']),_0x228c3e=createRabetbaseRunnerAdapter({'formatOutput'(_0x169938,_0x3fd4ad){const _0x473112=_0xf8e290;_0x254885[_0x473112(0x1ef)]=_0x169938,_0x254885['command']=_0x3fd4ad[_0x473112(0x1e9)],_0x254885[_0x473112(0x1ed)]=_0x3fd4ad['risk'],_0x254885[_0x473112(0x1f0)]=_0x3fd4ad[_0x473112(0x1f0)],_0x254885['dryRun']=_0x3fd4ad[_0x473112(0x1fb)]===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.');}});await runCommand(_0x4c4c30,_0x51cbbc,_0x228c3e);if(!_0x254885[_0xf8e290(0x1ef)]||!_0x254885[_0xf8e290(0x1e9)]||!_0x254885['risk']||!_0x254885[_0xf8e290(0x1f0)])throw new Error(_0xf8e290(0x1e8));const _0x573e47=_0x254885['dryRun']===!![],_0xc40daf=_0x14e665[_0xf8e290(0x202)]??defaultPresentation,_0x3313ea={'result':_0x254885[_0xf8e290(0x1ef)],'command':_0x254885[_0xf8e290(0x1e9)],'operation':_0x7abd52,'risk':_0x254885[_0xf8e290(0x1ed)],'format':_0x254885['format'],'dryRun':_0x573e47},_0x2d8543=createRabetbaseWriteMetadata(_0x31cb6e[_0xf8e290(0x201)],_0x7abd52,_0x254885[_0xf8e290(0x1ef)],_0x573e47);let _0x237b5e;try{_0x237b5e=await _0xc40daf[_0xf8e290(0x1f3)](_0x3313ea);}catch(_0x4c19c0){if(!_0x2d8543||_0xc40daf===defaultPresentation)throw _0x4c19c0;_0x237b5e=await defaultPresentation['present'](_0x3313ea);}return{'operation':_0x7abd52,'risk':_0x254885[_0xf8e290(0x1ed)],'mode':_0x573e47?_0xf8e290(0x1ee):_0xf8e290(0x1f7),'result':_0x254885[_0xf8e290(0x1ef)],'output':_0x237b5e,..._0x2d8543?{'metadata':_0x2d8543}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x32c940,_0x1f8c9e,_0x46d246,_0x12398b){const _0x1fbf8a=a264_0x13d7;if(_0x1f8c9e[_0x1fbf8a(0x1fb)]===!![]||_0x32c940[_0x1fbf8a(0x1ed)]!==_0x1fbf8a(0x1f5)&&_0x32c940[_0x1fbf8a(0x1ed)]!==_0x1fbf8a(0x200))return;await _0x12398b[_0x1fbf8a(0x1f8)][_0x1fbf8a(0x1fe)](buildRabetbaseConfirmationRequest(_0x32c940,_0x46d246,_0x12398b[_0x1fbf8a(0x1f6)]));}function withAbortSignal(_0x1dfd94,_0x116b04){return{..._0x1dfd94,async 'execute'(_0x18b51d){return throwIfAborted(_0x116b04),_0x1dfd94['execute'](_0x18b51d);}};}function throwIfAborted(_0x24b9bb){const _0x47d5bb=a264_0x13d7;if(_0x24b9bb?.['aborted'])throw _0x24b9bb['reason']instanceof Error?_0x24b9bb[_0x47d5bb(0x204)]:new DOMException('Rabetbase\x20invocation\x20aborted.',_0x47d5bb(0x207));}
@@ -1 +1 @@
1
- function a257_0x374c(_0xfef8cf,_0x157748){_0xfef8cf=_0xfef8cf-0xfd;const _0x5a7485=a257_0x5a74();let _0x374cd6=_0x5a7485[_0xfef8cf];return _0x374cd6;}const a257_0x18c6ea=a257_0x374c;function a257_0x5a74(){const _0x27bcde=['256977ngCOpS','resolve','32NjjVim','1192mcxJDo','10510eRULFo','6064302uuqAHS','catch','15761124NGghhk','2986258QlEVdZ','6XgUGdb','5409JoRnkE','155728krjkDJ','5rTrgRW','13013xeMySD'];a257_0x5a74=function(){return _0x27bcde;};return a257_0x5a74();}(function(_0x4393e0,_0xfe02c5){const _0x379769=a257_0x374c,_0x9721f2=_0x4393e0();while(!![]){try{const _0xf07bc0=parseInt(_0x379769(0xfe))/0x1*(-parseInt(_0x379769(0x100))/0x2)+parseInt(_0x379769(0x103))/0x3*(-parseInt(_0x379769(0x105))/0x4)+-parseInt(_0x379769(0x101))/0x5*(-parseInt(_0x379769(0x108))/0x6)+parseInt(_0x379769(0x102))/0x7*(parseInt(_0x379769(0x106))/0x8)+-parseInt(_0x379769(0xff))/0x9*(parseInt(_0x379769(0x107))/0xa)+-parseInt(_0x379769(0xfd))/0xb+parseInt(_0x379769(0x10a))/0xc;if(_0xf07bc0===_0xfe02c5)break;else _0x9721f2['push'](_0x9721f2['shift']());}catch(_0x395723){_0x9721f2['push'](_0x9721f2['shift']());}}}(a257_0x5a74,0x8530e));let tail=Promise[a257_0x18c6ea(0x104)]();export async function runSerialized(_0x165785){const _0xfddbe0=a257_0x18c6ea,_0x549703=tail;let _0x20807d;tail=new Promise(_0xf19981=>{_0x20807d=_0xf19981;}),await _0x549703[_0xfddbe0(0x109)](()=>undefined);try{return await _0x165785();}finally{_0x20807d();}}
1
+ const a265_0x1a9d50=a265_0x4188;function a265_0x5463(){const _0x5ec2f4=['83868GhrXZw','18187360oECTnk','72DhClkP','4071095SPiMjc','resolve','513920RjpidJ','catch','4149415iiGVqa','22768JLffGM','55ifftFq','4CXWZVd','287358oeIzcz'];a265_0x5463=function(){return _0x5ec2f4;};return a265_0x5463();}(function(_0x4e9308,_0x5ae74f){const _0x3ad814=a265_0x4188,_0x23a67e=_0x4e9308();while(!![]){try{const _0x545b42=parseInt(_0x3ad814(0x15f))/0x1*(parseInt(_0x3ad814(0x15e))/0x2)+-parseInt(_0x3ad814(0x161))/0x3+parseInt(_0x3ad814(0x160))/0x4*(-parseInt(_0x3ad814(0x15d))/0x5)+parseInt(_0x3ad814(0x162))/0x6+-parseInt(_0x3ad814(0x159))/0x7+parseInt(_0x3ad814(0x15b))/0x8*(-parseInt(_0x3ad814(0x158))/0x9)+parseInt(_0x3ad814(0x163))/0xa;if(_0x545b42===_0x5ae74f)break;else _0x23a67e['push'](_0x23a67e['shift']());}catch(_0x4bf94c){_0x23a67e['push'](_0x23a67e['shift']());}}}(a265_0x5463,0x6ad9c));let tail=Promise[a265_0x1a9d50(0x15a)]();function a265_0x4188(_0x580b9f,_0x6735da){_0x580b9f=_0x580b9f-0x158;const _0x5463db=a265_0x5463();let _0x418836=_0x5463db[_0x580b9f];return _0x418836;}export async function runSerialized(_0x2956c5){const _0x25f0f4=a265_0x1a9d50,_0x197751=tail;let _0x3305da;tail=new Promise(_0x846acb=>{_0x3305da=_0x846acb;}),await _0x197751[_0x25f0f4(0x15c)](()=>undefined);try{return await _0x2956c5();}finally{_0x3305da();}}
@@ -1 +1 @@
1
- function a258_0x3683(){const _0x390f2e=['input','2939148SNCiWz','6117ybiPxP','360548vEjlvy','run','184458MExAne','unknownCommand','wildcardDef','5CkrdpR','234btPLpk','4619713CBQjjm','slice','defaultCommand','hint','message','join','337205QXeeLG','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','16lUkGXm','flags','validation','88738nkgLKd','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','290hIJHUq'];a258_0x3683=function(){return _0x390f2e;};return a258_0x3683();}(function(_0x51d04a,_0x4bf618){const _0x4368f7=a258_0x5e94,_0x7da54b=_0x51d04a();while(!![]){try{const _0x5be8e6=parseInt(_0x4368f7(0x14a))/0x1+-parseInt(_0x4368f7(0x157))/0x2*(parseInt(_0x4368f7(0x150))/0x3)+-parseInt(_0x4368f7(0x151))/0x4*(-parseInt(_0x4368f7(0x156))/0x5)+-parseInt(_0x4368f7(0x153))/0x6+parseInt(_0x4368f7(0x158))/0x7+parseInt(_0x4368f7(0x147))/0x8*(parseInt(_0x4368f7(0x14f))/0x9)+-parseInt(_0x4368f7(0x14d))/0xa*(parseInt(_0x4368f7(0x144))/0xb);if(_0x5be8e6===_0x4bf618)break;else _0x7da54b['push'](_0x7da54b['shift']());}catch(_0x167476){_0x7da54b['push'](_0x7da54b['shift']());}}}(a258_0x3683,0x5176d));import a258_0x294d0f from'meow';function a258_0x5e94(_0x2d9005,_0x2b5a32){_0x2d9005=_0x2d9005-0x143;const _0x3683dd=a258_0x3683();let _0x5e9478=_0x3683dd[_0x2d9005];return _0x5e9478;}import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveRabetbaseInvocation(_0x5b509c){const _0x7ac595=a258_0x5e94,_0x463d9b=a258_0x294d0f('',{'importMeta':import.meta,'argv':[..._0x5b509c],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x3d4739=[..._0x463d9b[_0x7ac595(0x14e)]],_0x5a6b04=_0x463d9b[_0x7ac595(0x148)],_0x410cb1=_0x3d4739[0x0];if(!_0x410cb1)throw CliErrors['validation'](_0x7ac595(0x14b));const _0x1dafb3=resolveRemovedCommand(_0x410cb1,_0x3d4739[0x1]);if(_0x1dafb3)throw CliErrors[_0x7ac595(0x149)](_0x1dafb3[_0x7ac595(0x15c)],_0x1dafb3[_0x7ac595(0x15b)]);if(_0x410cb1===_0x7ac595(0x152))throw CliErrors[_0x7ac595(0x149)](_0x7ac595(0x14c),_0x7ac595(0x145));if(!isKnownService(_0x410cb1))throw CliErrors[_0x7ac595(0x154)](_0x3d4739[_0x7ac595(0x143)]('\x20'));const _0x3c2ef4=getServiceEntry(_0x410cb1),_0x496cd4=_0x3d4739[0x1],_0x21ba68=_0x496cd4||_0x3c2ef4[_0x7ac595(0x15a)];if(!_0x21ba68){if(_0x3c2ef4[_0x7ac595(0x155)])return{'definition':_0x3c2ef4[_0x7ac595(0x155)],'rawFlags':_0x5a6b04,'args':[]};throw CliErrors[_0x7ac595(0x149)](_0x7ac595(0x146)+_0x410cb1+'\x22.');}const _0x19296f=findDefinition(_0x410cb1,_0x21ba68);if(_0x19296f)return{'definition':_0x19296f,'rawFlags':_0x5a6b04,'args':_0x3d4739['slice'](0x2)};if(_0x3c2ef4['wildcardDef'])return{'definition':_0x3c2ef4['wildcardDef'],'rawFlags':_0x5a6b04,'args':[_0x21ba68,..._0x3d4739[_0x7ac595(0x159)](0x2)]};throw CliErrors['unknownCommand'](_0x410cb1+'\x20'+_0x21ba68);}
1
+ (function(_0x5e180d,_0x34633b){const _0xe69552=a266_0x6214,_0x30121d=_0x5e180d();while(!![]){try{const _0x348d34=parseInt(_0xe69552(0x1e6))/0x1*(-parseInt(_0xe69552(0x1ed))/0x2)+parseInt(_0xe69552(0x1dd))/0x3+-parseInt(_0xe69552(0x1e4))/0x4+-parseInt(_0xe69552(0x1e3))/0x5*(-parseInt(_0xe69552(0x1e0))/0x6)+-parseInt(_0xe69552(0x1ee))/0x7+-parseInt(_0xe69552(0x1e7))/0x8+parseInt(_0xe69552(0x1e5))/0x9;if(_0x348d34===_0x34633b)break;else _0x30121d['push'](_0x30121d['shift']());}catch(_0x52c95c){_0x30121d['push'](_0x30121d['shift']());}}}(a266_0x2a75,0x25dbd));import a266_0x15ff8b from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a266_0x6214(_0x319e9c,_0x132722){_0x319e9c=_0x319e9c-0x1dc;const _0x2a7501=a266_0x2a75();let _0x621484=_0x2a7501[_0x319e9c];return _0x621484;}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveRabetbaseInvocation(_0x5db457){const _0x5c2c2d=a266_0x6214,_0x11416b=a266_0x15ff8b('',{'importMeta':import.meta,'argv':[..._0x5db457],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x1d5459=[..._0x11416b[_0x5c2c2d(0x1de)]],_0x29bd86=_0x11416b['flags'],_0x44699a=_0x1d5459[0x0];if(!_0x44699a)throw CliErrors[_0x5c2c2d(0x1e1)](_0x5c2c2d(0x1e2));const _0x5f5019=resolveRemovedCommand(_0x44699a,_0x1d5459[0x1]);if(_0x5f5019)throw CliErrors[_0x5c2c2d(0x1e1)](_0x5f5019[_0x5c2c2d(0x1df)],_0x5f5019[_0x5c2c2d(0x1dc)]);if(_0x44699a===_0x5c2c2d(0x1e8))throw CliErrors[_0x5c2c2d(0x1e1)]('`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.',_0x5c2c2d(0x1eb));if(!isKnownService(_0x44699a))throw CliErrors['unknownCommand'](_0x1d5459[_0x5c2c2d(0x1ef)]('\x20'));const _0x3c2c33=getServiceEntry(_0x44699a),_0x41dbf7=_0x1d5459[0x1],_0x3b4b47=_0x41dbf7||_0x3c2c33[_0x5c2c2d(0x1e9)];if(!_0x3b4b47){if(_0x3c2c33[_0x5c2c2d(0x1ea)])return{'definition':_0x3c2c33[_0x5c2c2d(0x1ea)],'rawFlags':_0x29bd86,'args':[]};throw CliErrors[_0x5c2c2d(0x1e1)](_0x5c2c2d(0x1ec)+_0x44699a+'\x22.');}const _0x5117cd=findDefinition(_0x44699a,_0x3b4b47);if(_0x5117cd)return{'definition':_0x5117cd,'rawFlags':_0x29bd86,'args':_0x1d5459[_0x5c2c2d(0x1f0)](0x2)};if(_0x3c2c33['wildcardDef'])return{'definition':_0x3c2c33['wildcardDef'],'rawFlags':_0x29bd86,'args':[_0x3b4b47,..._0x1d5459[_0x5c2c2d(0x1f0)](0x2)]};throw CliErrors['unknownCommand'](_0x44699a+'\x20'+_0x3b4b47);}function a266_0x2a75(){const _0x5c646c=['3513591Sklvhu','1ARYioi','1636800jTbhmN','run','defaultCommand','wildcardDef','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','115516AMHUpn','468489kbJpIY','join','slice','hint','391482anKMQo','input','message','379278MRTzoF','validation','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','5eDSJki','399008ZOYrdl'];a266_0x2a75=function(){return _0x5c646c;};return a266_0x2a75();}
@@ -1 +1 @@
1
- const a260_0x1d1d62=a260_0x14c5;function a260_0x14c5(_0x235478,_0x2f8836){_0x235478=_0x235478-0x118;const _0x345546=a260_0x3455();let _0x14c512=_0x345546[_0x235478];return _0x14c512;}(function(_0x13f342,_0x7887e1){const _0xba3346=a260_0x14c5,_0x4379e1=_0x13f342();while(!![]){try{const _0x46f3f5=parseInt(_0xba3346(0x11b))/0x1+-parseInt(_0xba3346(0x11d))/0x2*(-parseInt(_0xba3346(0x156))/0x3)+-parseInt(_0xba3346(0x123))/0x4+parseInt(_0xba3346(0x147))/0x5*(-parseInt(_0xba3346(0x14a))/0x6)+parseInt(_0xba3346(0x145))/0x7+-parseInt(_0xba3346(0x154))/0x8+-parseInt(_0xba3346(0x136))/0x9*(-parseInt(_0xba3346(0x144))/0xa);if(_0x46f3f5===_0x7887e1)break;else _0x4379e1['push'](_0x4379e1['shift']());}catch(_0x26190a){_0x4379e1['push'](_0x4379e1['shift']());}}}(a260_0x3455,0x46350));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND='rabetbase\x20cli-skill\x20install',SKILL_NAME=a260_0x1d1d62(0x13e);function frontmatterValue(_0x2758c9,_0x502832){const _0x1d07d3=a260_0x1d1d62;return _0x2758c9[_0x1d07d3(0x135)](new RegExp('^'+_0x502832+_0x1d07d3(0x12c),'m'))?.[0x1]?.[_0x1d07d3(0x12e)]()??'';}function listFiles(_0x4f1d69,_0x11a2f9=_0x4f1d69){const _0x3068ef=a260_0x1d1d62;return readdirSync(_0x11a2f9,{'withFileTypes':!![]})[_0x3068ef(0x133)](_0x4fb904=>{const _0x30d902=_0x3068ef,_0x1898ea=join(_0x11a2f9,_0x4fb904[_0x30d902(0x140)]),_0x237e8c=lstatSync(_0x1898ea);if(_0x237e8c[_0x30d902(0x143)]())throw new Error(_0x30d902(0x14e)+_0x1898ea);if(_0x237e8c[_0x30d902(0x152)]())return listFiles(_0x4f1d69,_0x1898ea);if(!_0x237e8c['isFile']())throw new Error(_0x30d902(0x14c)+_0x1898ea);return[relative(_0x4f1d69,_0x1898ea)[_0x30d902(0x127)](sep)[_0x30d902(0x128)]('/')];})[_0x3068ef(0x124)]((_0x5d378f,_0x23abab)=>_0x5d378f<_0x23abab?-0x1:_0x5d378f>_0x23abab?0x1:0x0);}function digestFiles(_0x15e14c,_0x29983f){const _0x392cba=a260_0x1d1d62,_0x1d13ce=createHash(_0x392cba(0x155));for(const _0x4e0639 of _0x29983f){if(_0x4e0639[_0x392cba(0x13b)]('/')||_0x4e0639[_0x392cba(0x127)]('/')[_0x392cba(0x11c)]('..')||_0x4e0639[_0x392cba(0x11c)]('\x5c'))throw new Error(_0x392cba(0x149)+_0x4e0639);_0x1d13ce['update'](_0x4e0639),_0x1d13ce[_0x392cba(0x130)]('\x00'),_0x1d13ce['update'](readFileSync(join(_0x15e14c,..._0x4e0639['split']('/')))),_0x1d13ce[_0x392cba(0x130)]('\x00');}return _0x1d13ce[_0x392cba(0x14b)](_0x392cba(0x142));}function sameFiles(_0x21c7ab,_0x373bb7){const _0x8c2d35=a260_0x1d1d62;return _0x21c7ab[_0x8c2d35(0x131)]===_0x373bb7['length']&&_0x21c7ab[_0x8c2d35(0x11e)]((_0x15fee7,_0x40ce87)=>_0x15fee7===_0x373bb7[_0x40ce87]);}function readSource(_0x38ad0e){const _0x5063b7=a260_0x1d1d62,_0x37d657=JSON[_0x5063b7(0x139)](readFileSync(join(_0x38ad0e,'package.json'),_0x5063b7(0x150))),_0x3bd19e=JSON[_0x5063b7(0x139)](readFileSync(join(_0x38ad0e,'skills',_0x5063b7(0x14f)),_0x5063b7(0x150))),_0x4a8193=join(_0x38ad0e,_0x5063b7(0x138),SKILL_NAME),_0x1ea0a7=frontmatterValue(readFileSync(join(_0x4a8193,_0x5063b7(0x13c)),_0x5063b7(0x150)),'version'),_0x4e4869=listFiles(_0x4a8193);if(_0x3bd19e[_0x5063b7(0x148)]!==0x1||_0x3bd19e['name']!==SKILL_NAME||!_0x37d657[_0x5063b7(0x129)]||_0x3bd19e[_0x5063b7(0x11a)]!==_0x37d657[_0x5063b7(0x129)]||_0x3bd19e['skillVersion']!==_0x37d657[_0x5063b7(0x129)]||_0x1ea0a7!==_0x37d657['version']||!sameFiles(_0x4e4869,_0x3bd19e['files'])||digestFiles(_0x4a8193,_0x4e4869)!==_0x3bd19e[_0x5063b7(0x14b)])throw new Error('Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest');return{'packageVersion':_0x37d657[_0x5063b7(0x129)],'skillVersion':_0x1ea0a7,'root':_0x4a8193,'manifest':_0x3bd19e};}function installedSkillPath(_0x10348f){const _0x591306=a260_0x1d1d62,_0x56265e=resolveInstalledSkill(SKILL_NAME,{'home':_0x10348f});if(_0x56265e[_0x591306(0x118)]===_0x591306(0x121))return{'state':_0x591306(0x121),'path':dirname(_0x56265e['path'])};if(_0x56265e['state']===_0x591306(0x122))return{'state':_0x591306(0x13f)};return{'state':'unverifiable','reason':_0x56265e[_0x591306(0x119)]};}export function inspectInstalledBuiltinSkillVersion(_0x2f7d72,_0x537b3c={}){const _0x19945d=a260_0x1d1d62,_0x5e50be=installedSkillPath(_0x537b3c[_0x19945d(0x125)]??homedir());if(_0x5e50be['state']===_0x19945d(0x13f))return{'state':_0x19945d(0x13f),'expectedVersion':_0x2f7d72,'repairCommand':REPAIR_COMMAND};if(_0x5e50be[_0x19945d(0x118)]===_0x19945d(0x146))return{'state':'unverifiable','expectedVersion':_0x2f7d72,'reason':_0x5e50be['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x329791=frontmatterValue(readFileSync(join(_0x5e50be['path'],_0x19945d(0x13c)),_0x19945d(0x150)),'version');return{'state':_0x329791===_0x2f7d72?_0x19945d(0x134):_0x19945d(0x141),'expectedVersion':_0x2f7d72,'skillVersion':_0x329791,'installedPath':_0x5e50be[_0x19945d(0x12d)],'repairCommand':REPAIR_COMMAND};}catch(_0x4ca306){return{'state':_0x19945d(0x146),'expectedVersion':_0x2f7d72,'installedPath':_0x5e50be[_0x19945d(0x12d)],'reason':_0x4ca306 instanceof Error?_0x4ca306['message']:String(_0x4ca306),'repairCommand':REPAIR_COMMAND};}}function a260_0x3455(){const _0x1aa5d9=['2536830OmyHaS','digest','Unsupported\x20Skill\x20entry:\x20','message','Symbolic\x20link\x20is\x20not\x20allowed:\x20','rabetbase.manifest.json','utf8','INSTALL_FAILED','isDirectory','Installed\x20Skill\x20state\x20is\x20','1892968DgJJOe','sha256','858mBpFfV','state','reason','packageVersion','338790PLwtFQ','includes','3004bALpte','every','VERIFY_FAILED','unknown','present','absent','1108476MCtzgs','sort','home','installedPath','split','join','version','error','stdio',':\x5cs*(.+)$','path','trim','root','update','length','packageRoot','flatMap','current','match','3664071QVRfcz','manifest','skills','parse','skillVersion','startsWith','SKILL.md','content_mismatch','rabetbase','missing','name','version_mismatch','hex','isSymbolicLink','10ZXZhKR','340424teXItV','unverifiable','5IlwyDQ','schemaVersion','Unsafe\x20manifest\x20path:\x20'];a260_0x3455=function(){return _0x1aa5d9;};return a260_0x3455();}export function inspectBuiltinSkill(_0x3770d3={}){const _0x4c79f0=a260_0x1d1d62,_0x5e0cdd=_0x3770d3[_0x4c79f0(0x132)]??DEFAULT_PACKAGE_ROOT;let _0x1c922e;try{_0x1c922e=readSource(_0x5e0cdd);}catch(_0x2939bf){return{'state':'unverifiable','packageVersion':_0x4c79f0(0x120),'reason':_0x2939bf instanceof Error?_0x2939bf['message']:String(_0x2939bf),'repairCommand':REPAIR_COMMAND};}const _0x4a01e6=installedSkillPath(_0x3770d3['home']??homedir());if(_0x4a01e6[_0x4c79f0(0x118)]==='missing')return{'state':'missing','packageVersion':_0x1c922e[_0x4c79f0(0x11a)],'repairCommand':REPAIR_COMMAND};if(_0x4a01e6[_0x4c79f0(0x118)]===_0x4c79f0(0x146))return{'state':_0x4c79f0(0x146),'packageVersion':_0x1c922e[_0x4c79f0(0x11a)],'reason':_0x4a01e6[_0x4c79f0(0x119)],'repairCommand':REPAIR_COMMAND};try{const _0x5470d6=frontmatterValue(readFileSync(join(_0x4a01e6[_0x4c79f0(0x12d)],_0x4c79f0(0x13c)),'utf8'),_0x4c79f0(0x129));if(_0x5470d6!==_0x1c922e[_0x4c79f0(0x13a)])return{'state':_0x4c79f0(0x141),'packageVersion':_0x1c922e[_0x4c79f0(0x11a)],'skillVersion':_0x5470d6,'installedPath':_0x4a01e6[_0x4c79f0(0x12d)],'repairCommand':REPAIR_COMMAND};const _0x487066=listFiles(_0x4a01e6[_0x4c79f0(0x12d)]),_0x86809a=digestFiles(_0x4a01e6[_0x4c79f0(0x12d)],_0x487066);return{'state':sameFiles(_0x487066,_0x1c922e[_0x4c79f0(0x137)]['files'])&&_0x86809a===_0x1c922e[_0x4c79f0(0x137)][_0x4c79f0(0x14b)]?_0x4c79f0(0x134):_0x4c79f0(0x13d),'packageVersion':_0x1c922e[_0x4c79f0(0x11a)],'skillVersion':_0x5470d6,'installedPath':_0x4a01e6[_0x4c79f0(0x12d)],'digest':_0x86809a,'repairCommand':REPAIR_COMMAND};}catch(_0xa2901e){return{'state':_0x4c79f0(0x146),'packageVersion':_0x1c922e[_0x4c79f0(0x11a)],'installedPath':_0x4a01e6[_0x4c79f0(0x12d)],'reason':_0xa2901e instanceof Error?_0xa2901e['message']:String(_0xa2901e),'repairCommand':REPAIR_COMMAND};}}function failure(_0x5e2a61,_0xccd3b2,_0x236d33,_0x56a4b7){const _0x1a738d=a260_0x1d1d62;return{'ok':![],'code':_0x5e2a61,'packageVersion':_0xccd3b2[_0x1a738d(0x11a)],'skillVersion':_0xccd3b2['skillVersion'],'installedPath':_0x56a4b7,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x236d33 instanceof Error?_0x236d33[_0x1a738d(0x14d)]:String(_0x236d33)};}export function installBuiltinSkill(_0x2c8418={}){const _0x4666b0=a260_0x1d1d62,_0x527900=_0x2c8418[_0x4666b0(0x132)]??DEFAULT_PACKAGE_ROOT,_0x3f23da=_0x2c8418[_0x4666b0(0x125)]??homedir();let _0x37f09c;try{_0x37f09c=readSource(_0x527900);}catch(_0x260c79){return failure('SOURCE_INVALID',{'packageVersion':_0x4666b0(0x120),'skillVersion':'unknown'},_0x260c79);}const _0x335300=inspectBuiltinSkill({'packageRoot':_0x527900,'home':_0x3f23da}),_0x418ade=runNpxSkillsAddGlobal(_0x527900,_0x37f09c[_0x4666b0(0x12f)],{'stdio':_0x2c8418[_0x4666b0(0x12b)]??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0x3f23da}});if(_0x418ade['skipped'])return{'ok':!![],'packageVersion':_0x37f09c[_0x4666b0(0x11a)],'skillVersion':_0x37f09c[_0x4666b0(0x13a)],'installedPath':_0x335300[_0x4666b0(0x126)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x418ade['ok'])return failure(_0x4666b0(0x151),_0x37f09c,_0x418ade[_0x4666b0(0x12a)]??'skills@latest\x20exited\x20'+_0x418ade['status']);const _0x5f5b40=inspectBuiltinSkill({'packageRoot':_0x527900,'home':_0x3f23da});if(_0x5f5b40[_0x4666b0(0x118)]!=='current')return failure(_0x4666b0(0x11f),_0x37f09c,_0x5f5b40[_0x4666b0(0x119)]??_0x4666b0(0x153)+_0x5f5b40['state'],_0x5f5b40['installedPath']);return{'ok':!![],'packageVersion':_0x37f09c[_0x4666b0(0x11a)],'skillVersion':_0x37f09c[_0x4666b0(0x13a)],'installedPath':_0x5f5b40[_0x4666b0(0x126)],'changed':_0x335300[_0x4666b0(0x118)]!==_0x4666b0(0x134),'repairCommand':REPAIR_COMMAND};}
1
+ const a268_0x1905fd=a268_0x5276;(function(_0x41e223,_0x249758){const _0x1f0ed7=a268_0x5276,_0x1c5720=_0x41e223();while(!![]){try{const _0x26d7f3=-parseInt(_0x1f0ed7(0x18c))/0x1+-parseInt(_0x1f0ed7(0x17d))/0x2+-parseInt(_0x1f0ed7(0x17e))/0x3*(-parseInt(_0x1f0ed7(0x190))/0x4)+-parseInt(_0x1f0ed7(0x193))/0x5+-parseInt(_0x1f0ed7(0x1ad))/0x6+parseInt(_0x1f0ed7(0x182))/0x7+parseInt(_0x1f0ed7(0x1ac))/0x8;if(_0x26d7f3===_0x249758)break;else _0x1c5720['push'](_0x1c5720['shift']());}catch(_0x56b70f){_0x1c5720['push'](_0x1c5720['shift']());}}}(a268_0x4c48,0x1bc79));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';function a268_0x5276(_0xbe256e,_0x7fe9d5){_0xbe256e=_0xbe256e-0x174;const _0x4c48f2=a268_0x4c48();let _0x5276cb=_0x4c48f2[_0xbe256e];return _0x5276cb;}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=a268_0x1905fd(0x19f),SKILL_NAME=a268_0x1905fd(0x1a3);function frontmatterValue(_0xb39a6a,_0x59dc08){const _0x1f2c20=a268_0x1905fd;return _0xb39a6a[_0x1f2c20(0x194)](new RegExp('^'+_0x59dc08+_0x1f2c20(0x1a9),'m'))?.[0x1]?.['trim']()??'';}function listFiles(_0xb062ab,_0x291cd6=_0xb062ab){const _0x5986af=a268_0x1905fd;return readdirSync(_0x291cd6,{'withFileTypes':!![]})[_0x5986af(0x19d)](_0xd07f62=>{const _0x5fe6ee=_0x5986af,_0x381c8c=join(_0x291cd6,_0xd07f62[_0x5fe6ee(0x191)]),_0x3e9bfa=lstatSync(_0x381c8c);if(_0x3e9bfa[_0x5fe6ee(0x179)]())throw new Error(_0x5fe6ee(0x18b)+_0x381c8c);if(_0x3e9bfa[_0x5fe6ee(0x178)]())return listFiles(_0xb062ab,_0x381c8c);if(!_0x3e9bfa[_0x5fe6ee(0x184)]())throw new Error(_0x5fe6ee(0x1a4)+_0x381c8c);return[relative(_0xb062ab,_0x381c8c)[_0x5fe6ee(0x1a0)](sep)['join']('/')];})[_0x5986af(0x198)]((_0x2ddf8c,_0x128f5b)=>_0x2ddf8c<_0x128f5b?-0x1:_0x2ddf8c>_0x128f5b?0x1:0x0);}function digestFiles(_0x228502,_0x2a604a){const _0x5838b8=a268_0x1905fd,_0x4cf107=createHash(_0x5838b8(0x18d));for(const _0x66833e of _0x2a604a){if(_0x66833e[_0x5838b8(0x17f)]('/')||_0x66833e['split']('/')[_0x5838b8(0x1ae)]('..')||_0x66833e['includes']('\x5c'))throw new Error(_0x5838b8(0x18f)+_0x66833e);_0x4cf107[_0x5838b8(0x1a6)](_0x66833e),_0x4cf107[_0x5838b8(0x1a6)]('\x00'),_0x4cf107[_0x5838b8(0x1a6)](readFileSync(join(_0x228502,..._0x66833e[_0x5838b8(0x1a0)]('/')))),_0x4cf107[_0x5838b8(0x1a6)]('\x00');}return _0x4cf107[_0x5838b8(0x192)](_0x5838b8(0x19c));}function sameFiles(_0x21e202,_0x32a064){const _0x4fd81c=a268_0x1905fd;return _0x21e202[_0x4fd81c(0x1b1)]===_0x32a064[_0x4fd81c(0x1b1)]&&_0x21e202['every']((_0x4c40c0,_0x30e93a)=>_0x4c40c0===_0x32a064[_0x30e93a]);}function readSource(_0x36ae39){const _0x345172=a268_0x1905fd,_0xfb7e3=JSON[_0x345172(0x19b)](readFileSync(join(_0x36ae39,_0x345172(0x176)),_0x345172(0x185))),_0x52a10d=JSON['parse'](readFileSync(join(_0x36ae39,_0x345172(0x199),_0x345172(0x19a)),'utf8')),_0x4d697d=join(_0x36ae39,'skills',SKILL_NAME),_0x211c15=frontmatterValue(readFileSync(join(_0x4d697d,_0x345172(0x187)),_0x345172(0x185)),_0x345172(0x17c)),_0x4568d8=listFiles(_0x4d697d);if(_0x52a10d[_0x345172(0x181)]!==0x1||_0x52a10d[_0x345172(0x191)]!==SKILL_NAME||!_0xfb7e3[_0x345172(0x17c)]||_0x52a10d[_0x345172(0x1a1)]!==_0xfb7e3[_0x345172(0x17c)]||_0x52a10d[_0x345172(0x1ab)]!==_0xfb7e3[_0x345172(0x17c)]||_0x211c15!==_0xfb7e3[_0x345172(0x17c)]||!sameFiles(_0x4568d8,_0x52a10d[_0x345172(0x180)])||digestFiles(_0x4d697d,_0x4568d8)!==_0x52a10d[_0x345172(0x192)])throw new Error(_0x345172(0x177));return{'packageVersion':_0xfb7e3[_0x345172(0x17c)],'skillVersion':_0x211c15,'root':_0x4d697d,'manifest':_0x52a10d};}function a268_0x4c48(){const _0x298d1e=['packageVersion','status','rabetbase','Unsupported\x20Skill\x20entry:\x20','unverifiable','update','packageRoot','missing',':\x5cs*(.+)$','state','skillVersion','1409592ZIuzVn','554922mxkOdI','includes','stdio','pipe','length','reason','current','installedPath','package.json','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','isDirectory','isSymbolicLink','VERIFY_FAILED','skills@latest\x20exited\x20','version','31588igXdXj','201RdGrqc','startsWith','files','schemaVersion','1290100lJkmZI','Installed\x20Skill\x20state\x20is\x20','isFile','utf8','SOURCE_INVALID','SKILL.md','version_mismatch','message','path','Symbolic\x20link\x20is\x20not\x20allowed:\x20','187578jFBJxn','sha256','manifest','Unsafe\x20manifest\x20path:\x20','4892xyTLjs','name','digest','163980dBxWWO','match','home','error','unknown','sort','skills','rabetbase.manifest.json','parse','hex','flatMap','content_mismatch','rabetbase\x20cli-skill\x20install','split'];a268_0x4c48=function(){return _0x298d1e;};return a268_0x4c48();}function installedSkillPath(_0x4a60c6){const _0x403a20=a268_0x1905fd,_0x4da6a2=resolveInstalledSkill(SKILL_NAME,{'home':_0x4a60c6});if(_0x4da6a2['state']==='present')return{'state':'present','path':dirname(_0x4da6a2[_0x403a20(0x18a)])};if(_0x4da6a2[_0x403a20(0x1aa)]==='absent')return{'state':'missing'};return{'state':'unverifiable','reason':_0x4da6a2[_0x403a20(0x1b2)]};}export function inspectInstalledBuiltinSkillVersion(_0x1b5afd,_0x216beb={}){const _0x2155a0=a268_0x1905fd,_0x3109aa=installedSkillPath(_0x216beb[_0x2155a0(0x195)]??homedir());if(_0x3109aa[_0x2155a0(0x1aa)]===_0x2155a0(0x1a8))return{'state':_0x2155a0(0x1a8),'expectedVersion':_0x1b5afd,'repairCommand':REPAIR_COMMAND};if(_0x3109aa[_0x2155a0(0x1aa)]===_0x2155a0(0x1a5))return{'state':_0x2155a0(0x1a5),'expectedVersion':_0x1b5afd,'reason':_0x3109aa['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x34e134=frontmatterValue(readFileSync(join(_0x3109aa[_0x2155a0(0x18a)],_0x2155a0(0x187)),_0x2155a0(0x185)),_0x2155a0(0x17c));return{'state':_0x34e134===_0x1b5afd?'current':'version_mismatch','expectedVersion':_0x1b5afd,'skillVersion':_0x34e134,'installedPath':_0x3109aa['path'],'repairCommand':REPAIR_COMMAND};}catch(_0x29fc10){return{'state':'unverifiable','expectedVersion':_0x1b5afd,'installedPath':_0x3109aa[_0x2155a0(0x18a)],'reason':_0x29fc10 instanceof Error?_0x29fc10[_0x2155a0(0x189)]:String(_0x29fc10),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x2b4ae6={}){const _0x16c8fd=a268_0x1905fd,_0x26f68c=_0x2b4ae6[_0x16c8fd(0x1a7)]??DEFAULT_PACKAGE_ROOT;let _0x3fb360;try{_0x3fb360=readSource(_0x26f68c);}catch(_0x3e6053){return{'state':_0x16c8fd(0x1a5),'packageVersion':'unknown','reason':_0x3e6053 instanceof Error?_0x3e6053['message']:String(_0x3e6053),'repairCommand':REPAIR_COMMAND};}const _0x1636ce=installedSkillPath(_0x2b4ae6[_0x16c8fd(0x195)]??homedir());if(_0x1636ce[_0x16c8fd(0x1aa)]===_0x16c8fd(0x1a8))return{'state':_0x16c8fd(0x1a8),'packageVersion':_0x3fb360[_0x16c8fd(0x1a1)],'repairCommand':REPAIR_COMMAND};if(_0x1636ce[_0x16c8fd(0x1aa)]===_0x16c8fd(0x1a5))return{'state':_0x16c8fd(0x1a5),'packageVersion':_0x3fb360[_0x16c8fd(0x1a1)],'reason':_0x1636ce[_0x16c8fd(0x1b2)],'repairCommand':REPAIR_COMMAND};try{const _0x5abd14=frontmatterValue(readFileSync(join(_0x1636ce[_0x16c8fd(0x18a)],_0x16c8fd(0x187)),'utf8'),_0x16c8fd(0x17c));if(_0x5abd14!==_0x3fb360[_0x16c8fd(0x1ab)])return{'state':_0x16c8fd(0x188),'packageVersion':_0x3fb360[_0x16c8fd(0x1a1)],'skillVersion':_0x5abd14,'installedPath':_0x1636ce[_0x16c8fd(0x18a)],'repairCommand':REPAIR_COMMAND};const _0x8c4339=listFiles(_0x1636ce[_0x16c8fd(0x18a)]),_0x3bb002=digestFiles(_0x1636ce[_0x16c8fd(0x18a)],_0x8c4339);return{'state':sameFiles(_0x8c4339,_0x3fb360[_0x16c8fd(0x18e)]['files'])&&_0x3bb002===_0x3fb360[_0x16c8fd(0x18e)][_0x16c8fd(0x192)]?'current':_0x16c8fd(0x19e),'packageVersion':_0x3fb360[_0x16c8fd(0x1a1)],'skillVersion':_0x5abd14,'installedPath':_0x1636ce[_0x16c8fd(0x18a)],'digest':_0x3bb002,'repairCommand':REPAIR_COMMAND};}catch(_0x1cd989){return{'state':_0x16c8fd(0x1a5),'packageVersion':_0x3fb360[_0x16c8fd(0x1a1)],'installedPath':_0x1636ce[_0x16c8fd(0x18a)],'reason':_0x1cd989 instanceof Error?_0x1cd989[_0x16c8fd(0x189)]:String(_0x1cd989),'repairCommand':REPAIR_COMMAND};}}function failure(_0x8cf27c,_0x42662a,_0x116dca,_0x2ed375){const _0x45276d=a268_0x1905fd;return{'ok':![],'code':_0x8cf27c,'packageVersion':_0x42662a[_0x45276d(0x1a1)],'skillVersion':_0x42662a[_0x45276d(0x1ab)],'installedPath':_0x2ed375,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x116dca instanceof Error?_0x116dca[_0x45276d(0x189)]:String(_0x116dca)};}export function installBuiltinSkill(_0x4f1eee={}){const _0x5e64ac=a268_0x1905fd,_0x3e6f3f=_0x4f1eee[_0x5e64ac(0x1a7)]??DEFAULT_PACKAGE_ROOT,_0x380011=_0x4f1eee[_0x5e64ac(0x195)]??homedir();let _0x3d19ec;try{_0x3d19ec=readSource(_0x3e6f3f);}catch(_0x3dff81){return failure(_0x5e64ac(0x186),{'packageVersion':_0x5e64ac(0x197),'skillVersion':_0x5e64ac(0x197)},_0x3dff81);}const _0xba7141=inspectBuiltinSkill({'packageRoot':_0x3e6f3f,'home':_0x380011}),_0xa3decd=runNpxSkillsAddGlobal(_0x3e6f3f,_0x3d19ec['root'],{'stdio':_0x4f1eee[_0x5e64ac(0x1af)]??_0x5e64ac(0x1b0),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x380011}});if(_0xa3decd['skipped'])return{'ok':!![],'packageVersion':_0x3d19ec[_0x5e64ac(0x1a1)],'skillVersion':_0x3d19ec[_0x5e64ac(0x1ab)],'installedPath':_0xba7141[_0x5e64ac(0x175)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0xa3decd['ok'])return failure('INSTALL_FAILED',_0x3d19ec,_0xa3decd[_0x5e64ac(0x196)]??_0x5e64ac(0x17b)+_0xa3decd[_0x5e64ac(0x1a2)]);const _0x4bdc96=inspectBuiltinSkill({'packageRoot':_0x3e6f3f,'home':_0x380011});if(_0x4bdc96[_0x5e64ac(0x1aa)]!==_0x5e64ac(0x174))return failure(_0x5e64ac(0x17a),_0x3d19ec,_0x4bdc96['reason']??_0x5e64ac(0x183)+_0x4bdc96[_0x5e64ac(0x1aa)],_0x4bdc96[_0x5e64ac(0x175)]);return{'ok':!![],'packageVersion':_0x3d19ec[_0x5e64ac(0x1a1)],'skillVersion':_0x3d19ec[_0x5e64ac(0x1ab)],'installedPath':_0x4bdc96[_0x5e64ac(0x175)],'changed':_0xba7141[_0x5e64ac(0x1aa)]!=='current','repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
1
- (function(_0x100ff4,_0x1dc0bc){const _0x395034=a261_0x329e,_0x24197c=_0x100ff4();while(!![]){try{const _0x2c68a3=parseInt(_0x395034(0x1df))/0x1*(parseInt(_0x395034(0x1e7))/0x2)+parseInt(_0x395034(0x1d4))/0x3*(-parseInt(_0x395034(0x1d2))/0x4)+parseInt(_0x395034(0x1d5))/0x5+-parseInt(_0x395034(0x1f3))/0x6+parseInt(_0x395034(0x1f2))/0x7+-parseInt(_0x395034(0x1dc))/0x8+parseInt(_0x395034(0x1db))/0x9;if(_0x2c68a3===_0x1dc0bc)break;else _0x24197c['push'](_0x24197c['shift']());}catch(_0x4c38b8){_0x24197c['push'](_0x24197c['shift']());}}}(a261_0x2c8e,0x477aa));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a261_0x2c8e(){const _0x422142=['--help','enable-bff-save','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','exit','Public\x20Open\x20Skill\x20source:\x20','不支持的命令:\x20','-$1','dangerously-bff-save','1665454docgbt','285456opSPCy','cwd','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','256364yvLdvh','slice','3mJSSbm','2519570VNyYZy','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','length','push','error','argv','1575ImCSBG','3285576GbUvWr','(empty)','Error:\x20Unsupported\x20command:\x20','1283AztJzY','replace','skill','setLogPath','\x0aAvailable\x20commands:','toLowerCase','entries','from','114wJdQqd','add','log'];a261_0x2c8e=function(){return _0x422142;};return a261_0x2c8e();}import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x2ac12b){const _0x550b82=a261_0x329e,_0x320b7d=[];for(const [_0x44a263,_0x20251e]of Object[_0x550b82(0x1e5)](_0x2ac12b)){if(_0x20251e===!![]){const _0x1732af=_0x44a263[_0x550b82(0x1e0)](/([A-Z])/g,_0x550b82(0x1f0))[_0x550b82(0x1e4)]();_0x320b7d[_0x550b82(0x1d8)](_0x1732af);}}return _0x320b7d;}function a261_0x329e(_0x3628ee,_0x3e7ba2){_0x3628ee=_0x3628ee-0x1d1;const _0x2c8ee0=a261_0x2c8e();let _0x329eaa=_0x2c8ee0[_0x3628ee];return _0x329eaa;}export function parseDynamicFlags(){const _0x56be37=a261_0x329e,_0xee9f37=[];for(let _0x4bdd6e=0x3;_0x4bdd6e<process[_0x56be37(0x1da)][_0x56be37(0x1d7)];_0x4bdd6e++){const _0x1eed9d=process[_0x56be37(0x1da)][_0x4bdd6e];if(_0x1eed9d&&_0x1eed9d['startsWith']('--')){const _0x5666fd=_0x1eed9d[_0x56be37(0x1d3)](0x2);_0x5666fd&&!_0x5666fd['includes']('=')&&_0xee9f37[_0x56be37(0x1d8)](_0x5666fd);}}return _0xee9f37;}export function getAllProvidedFlags(_0x4a672f){const _0x3dfbb7=a261_0x329e,_0x3a6800=camelCaseFlagsToKebab(_0x4a672f),_0x33dbbe=parseDynamicFlags(),_0x249192=new Set([..._0x3a6800,..._0x33dbbe]);return Array[_0x3dfbb7(0x1e6)](_0x249192);}export function normalizeLegacyBffSaveFlags(_0x3802a7){const _0x4cbd8f=a261_0x329e,_0x560089=new Set(_0x3802a7);return _0x560089['has'](_0x4cbd8f(0x1f1))&&_0x560089[_0x4cbd8f(0x1e8)](_0x4cbd8f(0x1eb)),Array[_0x4cbd8f(0x1e6)](_0x560089);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x18eddf,_0x3c4eb6,_0x36fb93){const _0x1d91f3=a261_0x329e;logger[_0x1d91f3(0x1e2)](process[_0x1d91f3(0x1f4)]());if(_0x36fb93?.['help']||_0x18eddf===_0x1d91f3(0x1ea)){showHelp();return;}console['error'](_0x1d91f3(0x1de)+(_0x18eddf||_0x1d91f3(0x1dd))),console[_0x1d91f3(0x1e9)](_0x1d91f3(0x1e3)),console[_0x1d91f3(0x1e9)]('\x20\x20'+CLI_BIN_NAME+_0x1d91f3(0x1d6)),console[_0x1d91f3(0x1e9)](''),console[_0x1d91f3(0x1e9)](_0x1d91f3(0x1ee)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x1d91f3(0x1d9)](_0x1d91f3(0x1e1),_0x1d91f3(0x1ef)+_0x18eddf),process[_0x1d91f3(0x1ed)](0x1);}function showHelp(){const _0x387873=a261_0x329e;console[_0x387873(0x1e9)]('\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x387873(0x1ec)+SKILLS_INSTALL_COMMAND_LINE+_0x387873(0x1d1));}
1
+ (function(_0x8ec3c1,_0x5b803b){const _0x1a6868=a269_0x5afd,_0x20dfda=_0x8ec3c1();while(!![]){try{const _0x8b0b6e=parseInt(_0x1a6868(0xcf))/0x1*(parseInt(_0x1a6868(0xc0))/0x2)+parseInt(_0x1a6868(0xdb))/0x3+-parseInt(_0x1a6868(0xbe))/0x4*(parseInt(_0x1a6868(0xca))/0x5)+parseInt(_0x1a6868(0xc7))/0x6*(-parseInt(_0x1a6868(0xc9))/0x7)+parseInt(_0x1a6868(0xd7))/0x8*(-parseInt(_0x1a6868(0xde))/0x9)+-parseInt(_0x1a6868(0xdc))/0xa+-parseInt(_0x1a6868(0xcc))/0xb*(-parseInt(_0x1a6868(0xcd))/0xc);if(_0x8b0b6e===_0x5b803b)break;else _0x20dfda['push'](_0x20dfda['shift']());}catch(_0x266b0d){_0x20dfda['push'](_0x20dfda['shift']());}}}(a269_0x3859,0xc5c94));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a269_0x3859(){const _0xcc639=['(empty)','entries','3190080qMWinx','-$1','21JTVLpc','269710AdFCdS','replace','671lqTRVL','831696zfcdtV','enable-bff-save','2DywRbM','log','has','error','skill','setLogPath','toLowerCase','push','4840UUnypC','dangerously-bff-save','includes','Public\x20Open\x20Skill\x20source:\x20','4168086IgmLky','12702970bFrrQw','startsWith','16785dvhMBZ','argv','add','slice','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','108BaCyWG','Error:\x20Unsupported\x20command:\x20','643078wCUeVS','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','length','from'];a269_0x3859=function(){return _0xcc639;};return a269_0x3859();}import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';function a269_0x5afd(_0x2c76ad,_0x89a7b3){_0x2c76ad=_0x2c76ad-0xba;const _0x3859f9=a269_0x3859();let _0x5afd0f=_0x3859f9[_0x2c76ad];return _0x5afd0f;}export function camelCaseFlagsToKebab(_0x21ea25){const _0x41c63d=a269_0x5afd,_0x3e860f=[];for(const [_0x186d1b,_0x427bb2]of Object[_0x41c63d(0xc6)](_0x21ea25)){if(_0x427bb2===!![]){const _0x147f2d=_0x186d1b[_0x41c63d(0xcb)](/([A-Z])/g,_0x41c63d(0xc8))[_0x41c63d(0xd5)]();_0x3e860f[_0x41c63d(0xd6)](_0x147f2d);}}return _0x3e860f;}export function parseDynamicFlags(){const _0xb88978=a269_0x5afd,_0x500dce=[];for(let _0x259868=0x3;_0x259868<process[_0xb88978(0xba)][_0xb88978(0xc3)];_0x259868++){const _0x4c8121=process[_0xb88978(0xba)][_0x259868];if(_0x4c8121&&_0x4c8121[_0xb88978(0xdd)]('--')){const _0x30156f=_0x4c8121[_0xb88978(0xbc)](0x2);_0x30156f&&!_0x30156f[_0xb88978(0xd9)]('=')&&_0x500dce[_0xb88978(0xd6)](_0x30156f);}}return _0x500dce;}export function getAllProvidedFlags(_0x4028e0){const _0xe5d806=a269_0x5afd,_0x3d7f6a=camelCaseFlagsToKebab(_0x4028e0),_0x379207=parseDynamicFlags(),_0x4bd4b7=new Set([..._0x3d7f6a,..._0x379207]);return Array[_0xe5d806(0xc4)](_0x4bd4b7);}export function normalizeLegacyBffSaveFlags(_0x552c0e){const _0x44e23e=a269_0x5afd,_0xb89a81=new Set(_0x552c0e);return _0xb89a81[_0x44e23e(0xd1)](_0x44e23e(0xd8))&&_0xb89a81[_0x44e23e(0xbb)](_0x44e23e(0xce)),Array['from'](_0xb89a81);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x85839e,_0x41bc50,_0x5ba38f){const _0x58788c=a269_0x5afd;logger[_0x58788c(0xd4)](process['cwd']());if(_0x5ba38f?.['help']||_0x85839e==='--help'){showHelp();return;}console[_0x58788c(0xd2)](_0x58788c(0xbf)+(_0x85839e||_0x58788c(0xc5))),console[_0x58788c(0xd0)]('\x0aAvailable\x20commands:'),console['log']('\x20\x20'+CLI_BIN_NAME+_0x58788c(0xc2)),console[_0x58788c(0xd0)](''),console[_0x58788c(0xd0)](_0x58788c(0xda)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x58788c(0xd2)](_0x58788c(0xd3),'不支持的命令:\x20'+_0x85839e),process['exit'](0x1);}function showHelp(){const _0x4b4999=a269_0x5afd;console['log'](_0x4b4999(0xbd)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x4b4999(0xc1));}
@@ -1 +1 @@
1
- const a262_0x398936=a262_0x35bb;(function(_0x29d4fb,_0x40dff6){const _0x271ce5=a262_0x35bb,_0x1e122e=_0x29d4fb();while(!![]){try{const _0x5dc833=parseInt(_0x271ce5(0xbc))/0x1*(-parseInt(_0x271ce5(0xe3))/0x2)+-parseInt(_0x271ce5(0xe5))/0x3+-parseInt(_0x271ce5(0xb1))/0x4*(parseInt(_0x271ce5(0xb0))/0x5)+-parseInt(_0x271ce5(0xc3))/0x6+-parseInt(_0x271ce5(0xd5))/0x7*(-parseInt(_0x271ce5(0xdf))/0x8)+parseInt(_0x271ce5(0xc5))/0x9*(parseInt(_0x271ce5(0xd3))/0xa)+-parseInt(_0x271ce5(0xb4))/0xb*(-parseInt(_0x271ce5(0xd0))/0xc);if(_0x5dc833===_0x40dff6)break;else _0x1e122e['push'](_0x1e122e['shift']());}catch(_0x3ada1){_0x1e122e['push'](_0x1e122e['shift']());}}}(a262_0x3763,0x56574));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=a262_0x398936(0xc9);export const NPX_SKILLS_SUBCOMMAND_ADD=a262_0x398936(0xdd);function a262_0x3763(){const _0xfd6098=['lovrabet/lovrabet-skill','state','INSTALL_PARTIAL','message','35825dcFTlN','28cGTMBf','ENOENT','\x20failed\x20target(s)','11ebEerV','expectedSkillName','presence','stdout','reason','EPERM','remove','yes','10702nSrECr','trim','lovrabet/rabetbase','code','toString','push','CHILD_EXIT_NONZERO','126588EOMjSU','join','85851FzPOKb','npx','npm_config_global','NPM_CONFIG_GLOBAL','skills@latest','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','Installer\x20reported\x20','stdio','pipe','present','filter','3047340kRzDcI','checked','inherit','530cqxNIj','absent','711641TmPstu','EACCES','error','status','match','signal','NPX_NOT_FOUND','SKILL_NOT_INSTALLED','add','stderr','16ewRWeF','\x22\x20install\x20state:\x20','--skill','npx\x20terminated\x20by\x20signal\x20','88WpqIoQ','warn','201135CfYPPY','log'];a262_0x3763=function(){return _0xfd6098;};return a262_0x3763();}export const NPX_SKILLS_FLAG_SKILL=a262_0x398936(0xe1);export const RABETBASE_SKILL_SOURCE=a262_0x398936(0xbe);export const LEGACY_RABETBASE_SKILL_SOURCE=a262_0x398936(0xe7);export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export const RABETBASE_GLOBAL_SKILL_NAME='rabetbase';export const RABETBASE_SKILL_GIT_SOURCE='git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git';function a262_0x35bb(_0x3b9b73,_0x33cb47){_0x3b9b73=_0x3b9b73-0xae;const _0x37636b=a262_0x3763();let _0x35bbb2=_0x37636b[_0x3b9b73];return _0x35bbb2;}export function resolveGlobalSkillName(_0x4e1cc0){const _0x22aaa5=a262_0x398936;switch(_0x4e1cc0[_0x22aaa5(0xbd)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x535c35){const _0xade39a=a262_0x398936,_0x218971=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x535c35&&_0x218971[_0xade39a(0xc1)](NPX_SKILLS_FLAG_SKILL,_0x535c35),_0x218971;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a262_0x398936(0xc6),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a262_0x398936(0xc4)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x191fde,_0x591c7b,_0x5369a9){return{'ok':![],'status':_0x591c7b,'code':_0x191fde,'error':'['+_0x191fde+']\x20'+_0x5369a9};}function spawnOptions(_0x1d2881,_0x1a7ac6){const _0x48ef1=a262_0x398936,_0x524ad8={...process.env};return delete _0x524ad8[_0x48ef1(0xc7)],delete _0x524ad8[_0x48ef1(0xc8)],{'cwd':_0x1d2881,'stdio':_0x1a7ac6,'env':_0x524ad8,'shell':![],..._0x1a7ac6===_0x48ef1(0xcd)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x218631,_0x45785e,_0x3294db,_0x2f4510){const _0x8635a7=a262_0x398936,_0x511d0a=[_0x218631[_0x8635a7(0xb7)]?_0x218631[_0x8635a7(0xb7)][_0x8635a7(0xc0)]():'',_0x218631[_0x8635a7(0xde)]?_0x218631[_0x8635a7(0xde)][_0x8635a7(0xc0)]():''][_0x8635a7(0xcf)](Boolean)[_0x8635a7(0xc4)]('\x0a')['trim']();_0x2f4510!=='pipe'&&_0x511d0a&&console[_0x8635a7(0xe6)](_0x511d0a);if(_0x218631[_0x8635a7(0xd7)]){const _0x58cb86=_0x218631[_0x8635a7(0xd7)],_0x39c454=_0x58cb86[_0x8635a7(0xbf)]===_0x8635a7(0xb2)?_0x8635a7(0xdb):_0x58cb86[_0x8635a7(0xbf)]===_0x8635a7(0xb9)||_0x58cb86[_0x8635a7(0xbf)]===_0x8635a7(0xd6)?'PERMISSION_DENIED':'SPAWN_FAILED';return failure(_0x39c454,_0x218631['status'],_0x58cb86[_0x8635a7(0xaf)]);}if(_0x218631[_0x8635a7(0xda)])return failure('CHILD_TERMINATED',_0x218631['status'],_0x8635a7(0xe2)+_0x218631[_0x8635a7(0xda)]);if(_0x218631['status']!==0x0)return failure(_0x8635a7(0xc2),_0x218631[_0x8635a7(0xd8)],_0x511d0a||'exit\x20'+(_0x218631[_0x8635a7(0xd8)]??'unknown'));const _0x1e0e79=_0x45785e?resolveInstalledSkill(_0x45785e,_0x3294db):undefined,_0x7b4a0f=_0x511d0a[_0x8635a7(0xd9)](/Failed to install\s+(\d+)/i);if(_0x7b4a0f&&Number(_0x7b4a0f[0x1])>0x0){const _0x4539fd=_0x8635a7(0xcb)+_0x7b4a0f[0x1]+_0x8635a7(0xb3)+(_0x511d0a?':\x0a'+_0x511d0a:'');if(_0x1e0e79?.[_0x8635a7(0xe8)]===_0x8635a7(0xce))return console[_0x8635a7(0xe4)]('!\x20'+_0x4539fd),{'ok':!![],'status':0x0};return failure(_0x8635a7(0xae),0x0,_0x4539fd);}if(_0x1e0e79){if(_0x1e0e79[_0x8635a7(0xe8)]===_0x8635a7(0xd4))return failure(_0x8635a7(0xdc),0x0,'Skill\x20\x22'+_0x45785e+_0x8635a7(0xca)+_0x1e0e79[_0x8635a7(0xd1)][_0x8635a7(0xc4)](',\x20')+')');_0x1e0e79['state']==='unverifiable'&&console[_0x8635a7(0xe4)]('!\x20Could\x20not\x20verify\x20\x22'+_0x45785e+_0x8635a7(0xe0)+_0x1e0e79[_0x8635a7(0xb8)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x20d7db,_0x17191b){const _0x36be7d=a262_0x398936;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1e512f=_0x17191b?.[_0x36be7d(0xcc)]??_0x36be7d(0xd2),_0x53ff10=resolveNpmBin(_0x36be7d(0xc6)),_0x3520a4=buildNpxSkillsAddArgv(_0x17191b?.['skill']),_0x20a59f=[_0x36be7d(0xc6),..._0x3520a4][_0x36be7d(0xc4)]('\x20');console[_0x36be7d(0xe6)]('*\x20'+_0x20a59f);const _0x2c7d55=spawnSync(_0x53ff10,_0x3520a4,spawnOptions(_0x20d7db,_0x1e512f));return normalizeSpawnResult(_0x2c7d55,undefined,undefined,_0x1e512f);}export function runNpxSkillsRemove(_0x574cf6,_0x7c21fc,_0x4f0082=LEGACY_RABETBASE_SKILL_SOURCE){const _0x51220a=a262_0x398936;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xfcbb20=_0x7c21fc?.[_0x51220a(0xcc)]??_0x51220a(0xd2),_0x19e267=resolveNpmBin('npx'),_0x316989=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x51220a(0xba),_0x4f0082,NPX_SKILLS_FLAG_SKILL,_0x7c21fc?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x7c21fc?.[_0x51220a(0xbb)]?['-y']:[]],_0x2f9cca=[_0x19e267,..._0x316989][_0x51220a(0xc4)]('\x20');console[_0x51220a(0xe6)]('*\x20'+_0x2f9cca);const _0x5c727b=spawnSync(_0x19e267,_0x316989,spawnOptions(_0x574cf6,_0xfcbb20));return normalizeSpawnResult(_0x5c727b,undefined,undefined,_0xfcbb20);}export function runNpxSkillsAddGlobal(_0x463a26,_0x16e62d,_0x323424){const _0xcc72a=a262_0x398936;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3b6d5a=resolveNpmBin(_0xcc72a(0xc6)),_0x433ce0=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x16e62d,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x6f49c2=['npx',NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x16e62d,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0xcc72a(0xc4)]('\x20');console['log']('*\x20'+_0x6f49c2);const _0x2d54f7=spawnSync(_0x3b6d5a,_0x433ce0,spawnOptions(_0x463a26,'pipe'));return normalizeSpawnResult(_0x2d54f7,_0x323424?.[_0xcc72a(0xb5)]??resolveGlobalSkillName(_0x16e62d),_0x323424?.[_0xcc72a(0xb6)],_0x323424?.[_0xcc72a(0xcc)]);}
1
+ const a270_0x4cbb8c=a270_0x167d;(function(_0x5353f6,_0x1142d8){const _0xac72e5=a270_0x167d,_0x4935c8=_0x5353f6();while(!![]){try{const _0x8843d3=-parseInt(_0xac72e5(0x1db))/0x1+parseInt(_0xac72e5(0x1dd))/0x2*(parseInt(_0xac72e5(0x1de))/0x3)+-parseInt(_0xac72e5(0x1f7))/0x4*(-parseInt(_0xac72e5(0x1df))/0x5)+parseInt(_0xac72e5(0x1c9))/0x6+-parseInt(_0xac72e5(0x1cd))/0x7+-parseInt(_0xac72e5(0x1d6))/0x8*(parseInt(_0xac72e5(0x1ed))/0x9)+parseInt(_0xac72e5(0x1d0))/0xa*(parseInt(_0xac72e5(0x1eb))/0xb);if(_0x8843d3===_0x1142d8)break;else _0x4935c8['push'](_0x4935c8['shift']());}catch(_0x22dd31){_0x4935c8['push'](_0x4935c8['shift']());}}}(a270_0x1b54,0xd6544));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=a270_0x4cbb8c(0x1bf);export const NPX_SKILLS_SUBCOMMAND_ADD=a270_0x4cbb8c(0x1d9);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a270_0x4cbb8c(0x1e5);export const LEGACY_RABETBASE_SKILL_SOURCE=a270_0x4cbb8c(0x1ce);export const DEFAULT_RABETBASE_SKILL_NAME=a270_0x4cbb8c(0x1d7);export const RABETBASE_GLOBAL_SKILL_NAME='rabetbase';export const RABETBASE_SKILL_GIT_SOURCE=a270_0x4cbb8c(0x1c8);export function resolveGlobalSkillName(_0x143497){const _0x19094c=a270_0x4cbb8c;switch(_0x143497[_0x19094c(0x1e7)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x574186){const _0xfcac25=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x574186&&_0xfcac25['push'](NPX_SKILLS_FLAG_SKILL,_0x574186),_0xfcac25;}function a270_0x167d(_0x11c23b,_0x58ba2d){_0x11c23b=_0x11c23b-0x1b7;const _0x1b54e5=a270_0x1b54();let _0x167dbf=_0x1b54e5[_0x11c23b];return _0x167dbf;}function a270_0x1b54(){const _0x4835e1=['1245EPjvvr','PERMISSION_DENIED','NPM_CONFIG_GLOBAL','warn','unverifiable','remove','lovrabet/rabetbase','exit\x20','trim','CHILD_EXIT_NONZERO','INSTALL_PARTIAL','present','486277YrgoQC','EPERM','1709946idUjZA','log','match','skill','code','NPX_NOT_FOUND','unknown','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','reason','Installer\x20reported\x20','16096tzbKqQ','state','stderr','error','stdio','EACCES','ENOENT','SPAWN_FAILED','message','skills@latest','npx','signal','stdout','checked','npm_config_global','join','CHILD_TERMINATED','expectedSkillName','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','7494906LAFUMz','presence','toString','SKILL_NOT_INSTALLED','3471412XHVJUX','lovrabet/lovrabet-skill','\x22\x20install\x20state:\x20','10TKyzXD','status','inherit','yes','pipe','npx\x20terminated\x20by\x20signal\x20','24jpwUZU','Lovrabet','\x20failed\x20target(s)','add','Skill\x20\x22','860943gVkzNc','filter','22MONajI','138927nBrgaz'];a270_0x1b54=function(){return _0x4835e1;};return a270_0x1b54();}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()][a270_0x4cbb8c(0x1c5)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a270_0x4cbb8c(0x1c0),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(_0x530713,_0x270632,_0x5b11f5){return{'ok':![],'status':_0x270632,'code':_0x530713,'error':'['+_0x530713+']\x20'+_0x5b11f5};}function spawnOptions(_0x5e3c34,_0xde21cb){const _0x25a00a=a270_0x4cbb8c,_0x31ef82={...process.env};return delete _0x31ef82[_0x25a00a(0x1c4)],delete _0x31ef82[_0x25a00a(0x1e1)],{'cwd':_0x5e3c34,'stdio':_0xde21cb,'env':_0x31ef82,'shell':![],..._0xde21cb===_0x25a00a(0x1d4)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x5e1e0e,_0x464fb7,_0x531daa,_0x8b0347){const _0x58bea0=a270_0x4cbb8c,_0xf40b7d=[_0x5e1e0e[_0x58bea0(0x1c2)]?_0x5e1e0e['stdout'][_0x58bea0(0x1cb)]():'',_0x5e1e0e[_0x58bea0(0x1b8)]?_0x5e1e0e[_0x58bea0(0x1b8)][_0x58bea0(0x1cb)]():''][_0x58bea0(0x1dc)](Boolean)[_0x58bea0(0x1c5)]('\x0a')[_0x58bea0(0x1e7)]();_0x8b0347!=='pipe'&&_0xf40b7d&&console[_0x58bea0(0x1ee)](_0xf40b7d);if(_0x5e1e0e['error']){const _0x45116a=_0x5e1e0e[_0x58bea0(0x1b9)],_0xd09bc3=_0x45116a[_0x58bea0(0x1f1)]===_0x58bea0(0x1bc)?_0x58bea0(0x1f2):_0x45116a[_0x58bea0(0x1f1)]===_0x58bea0(0x1ec)||_0x45116a[_0x58bea0(0x1f1)]===_0x58bea0(0x1bb)?_0x58bea0(0x1e0):_0x58bea0(0x1bd);return failure(_0xd09bc3,_0x5e1e0e[_0x58bea0(0x1d1)],_0x45116a[_0x58bea0(0x1be)]);}if(_0x5e1e0e[_0x58bea0(0x1c1)])return failure(_0x58bea0(0x1c6),_0x5e1e0e[_0x58bea0(0x1d1)],_0x58bea0(0x1d5)+_0x5e1e0e['signal']);if(_0x5e1e0e[_0x58bea0(0x1d1)]!==0x0)return failure(_0x58bea0(0x1e8),_0x5e1e0e[_0x58bea0(0x1d1)],_0xf40b7d||_0x58bea0(0x1e6)+(_0x5e1e0e[_0x58bea0(0x1d1)]??_0x58bea0(0x1f3)));const _0x59d054=_0x464fb7?resolveInstalledSkill(_0x464fb7,_0x531daa):undefined,_0x16f153=_0xf40b7d[_0x58bea0(0x1ef)](/Failed to install\s+(\d+)/i);if(_0x16f153&&Number(_0x16f153[0x1])>0x0){const _0x8574a8=_0x58bea0(0x1f6)+_0x16f153[0x1]+_0x58bea0(0x1d8)+(_0xf40b7d?':\x0a'+_0xf40b7d:'');if(_0x59d054?.[_0x58bea0(0x1b7)]===_0x58bea0(0x1ea))return console[_0x58bea0(0x1e2)]('!\x20'+_0x8574a8),{'ok':!![],'status':0x0};return failure(_0x58bea0(0x1e9),0x0,_0x8574a8);}if(_0x59d054){if(_0x59d054[_0x58bea0(0x1b7)]==='absent')return failure(_0x58bea0(0x1cc),0x0,_0x58bea0(0x1da)+_0x464fb7+_0x58bea0(0x1f4)+_0x59d054[_0x58bea0(0x1c3)]['join'](',\x20')+')');_0x59d054[_0x58bea0(0x1b7)]===_0x58bea0(0x1e3)&&console['warn']('!\x20Could\x20not\x20verify\x20\x22'+_0x464fb7+_0x58bea0(0x1cf)+_0x59d054[_0x58bea0(0x1f5)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x54e7d9,_0x424fd4){const _0xbe810b=a270_0x4cbb8c;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x35fd49=_0x424fd4?.[_0xbe810b(0x1ba)]??_0xbe810b(0x1d2),_0x2ce2ec=resolveNpmBin(_0xbe810b(0x1c0)),_0x5f4065=buildNpxSkillsAddArgv(_0x424fd4?.['skill']),_0x5be15b=[_0xbe810b(0x1c0),..._0x5f4065][_0xbe810b(0x1c5)]('\x20');console['log']('*\x20'+_0x5be15b);const _0x2c194d=spawnSync(_0x2ce2ec,_0x5f4065,spawnOptions(_0x54e7d9,_0x35fd49));return normalizeSpawnResult(_0x2c194d,undefined,undefined,_0x35fd49);}export function runNpxSkillsRemove(_0x3b3447,_0x15745c,_0x433e00=LEGACY_RABETBASE_SKILL_SOURCE){const _0x5e3858=a270_0x4cbb8c;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x7fae23=_0x15745c?.['stdio']??'inherit',_0x55fa8e=resolveNpmBin(_0x5e3858(0x1c0)),_0x293ba7=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x5e3858(0x1e4),_0x433e00,NPX_SKILLS_FLAG_SKILL,_0x15745c?.[_0x5e3858(0x1f0)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x15745c?.[_0x5e3858(0x1d3)]?['-y']:[]],_0x21b005=[_0x55fa8e,..._0x293ba7]['join']('\x20');console['log']('*\x20'+_0x21b005);const _0x5d43b5=spawnSync(_0x55fa8e,_0x293ba7,spawnOptions(_0x3b3447,_0x7fae23));return normalizeSpawnResult(_0x5d43b5,undefined,undefined,_0x7fae23);}export function runNpxSkillsAddGlobal(_0x28eb34,_0x52288d,_0x39d275){const _0x20800a=a270_0x4cbb8c;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x53a343=resolveNpmBin(_0x20800a(0x1c0)),_0x24e14d=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x52288d,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x9704ae=[_0x20800a(0x1c0),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x52288d,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x20800a(0x1c5)]('\x20');console['log']('*\x20'+_0x9704ae);const _0x7c3d3a=spawnSync(_0x53a343,_0x24e14d,spawnOptions(_0x28eb34,_0x20800a(0x1d4)));return normalizeSpawnResult(_0x7c3d3a,_0x39d275?.[_0x20800a(0x1c7)]??resolveGlobalSkillName(_0x52288d),_0x39d275?.[_0x20800a(0x1ca)],_0x39d275?.[_0x20800a(0x1ba)]);}
@@ -1 +1 @@
1
- const a263_0x306e84=a263_0xf0ca;(function(_0x5054be,_0x173eda){const _0x226e03=a263_0xf0ca,_0x431998=_0x5054be();while(!![]){try{const _0x4cf906=parseInt(_0x226e03(0x179))/0x1*(-parseInt(_0x226e03(0x161))/0x2)+-parseInt(_0x226e03(0x15b))/0x3*(parseInt(_0x226e03(0x15c))/0x4)+parseInt(_0x226e03(0x167))/0x5+parseInt(_0x226e03(0x15d))/0x6+parseInt(_0x226e03(0x169))/0x7+-parseInt(_0x226e03(0x165))/0x8*(-parseInt(_0x226e03(0x15f))/0x9)+parseInt(_0x226e03(0x16b))/0xa*(-parseInt(_0x226e03(0x168))/0xb);if(_0x4cf906===_0x173eda)break;else _0x431998['push'](_0x431998['shift']());}catch(_0x3cef0f){_0x431998['push'](_0x431998['shift']());}}}(a263_0x25bf,0x7f56f));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';function a263_0x25bf(){const _0x210248=['3274765jhCkaN','35255sMEaaT','3096177aKiraD','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','2700rDROXo','.agents','reason','join','home','unverifiable','skills','lockFile','recorded','map','not-recorded','SKILL.md','\x20records\x20\x22','find','756827zNKFqu','version','object','kind','.claude','289290bMNKvr','24wPHXDV','4874766cVUmme','\x20is\x20unreadable:\x20','45WQswNC','utf8','2YAkHYI','unusable','\x20has\x20no\x20skills\x20map','\x20uses\x20unsupported\x20version\x20','1300184GWuFfc','present'];a263_0x25bf=function(){return _0x210248;};return a263_0x25bf();}import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join('.agents','.skill-lock.json');export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a263_0x306e84(0x16c),'skills'),join(a263_0x306e84(0x15a),'skills')];function a263_0xf0ca(_0x15a32d,_0x257398){_0x15a32d=_0x15a32d-0x159;const _0x25bf69=a263_0x25bf();let _0xf0ca34=_0x25bf69[_0x15a32d];return _0xf0ca34;}const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x1067ed,_0x51c833){const _0x5965e7=a263_0x306e84;if(!existsSync(_0x1067ed))return{'kind':_0x5965e7(0x175)};let _0x498034;try{_0x498034=JSON['parse'](readFileSync(_0x1067ed,_0x5965e7(0x160)));}catch(_0x3ae427){return{'kind':'unusable','reason':_0x1067ed+_0x5965e7(0x15e)+_0x3ae427['message']};}const _0x5bb8c0=_0x498034;if(typeof _0x5bb8c0?.['version']!=='number'||!SUPPORTED_LOCK_VERSIONS['includes'](_0x5bb8c0[_0x5965e7(0x17a)]))return{'kind':_0x5965e7(0x162),'reason':_0x1067ed+_0x5965e7(0x164)+String(_0x5bb8c0?.['version'])};if(!_0x5bb8c0['skills']||typeof _0x5bb8c0['skills']!==_0x5965e7(0x17b))return{'kind':_0x5965e7(0x162),'reason':_0x1067ed+_0x5965e7(0x163)};return _0x5bb8c0[_0x5965e7(0x171)][_0x51c833]?{'kind':_0x5965e7(0x173)}:{'kind':_0x5965e7(0x175)};}export function resolveInstalledSkill(_0x3f6f2c,_0x1e8320){const _0x12a32f=a263_0x306e84,_0x40f1b3=_0x1e8320?.[_0x12a32f(0x16f)]??homedir(),_0xf97792=_0x1e8320?.['globalSkillsDirs']??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x12a32f(0x174)](_0x5169ba=>join(_0x40f1b3,_0x5169ba)),_0x476a14=_0x1e8320?.[_0x12a32f(0x172)]??join(_0x40f1b3,SKILL_LOCK_RELATIVE_PATH),_0xa4703e=_0xf97792[_0x12a32f(0x174)](_0x4cbc7c=>join(_0x4cbc7c,_0x3f6f2c,_0x12a32f(0x176))),_0x813013=_0xa4703e[_0x12a32f(0x178)](_0x3250d8=>existsSync(_0x3250d8));if(_0x813013)return{'state':_0x12a32f(0x166),'path':_0x813013};const _0x3fc466=readLockLookup(_0x476a14,_0x3f6f2c);if(_0x3fc466[_0x12a32f(0x159)]===_0x12a32f(0x162))return{'state':_0x12a32f(0x170),'reason':_0x3fc466[_0x12a32f(0x16d)]};if(_0x3fc466[_0x12a32f(0x159)]===_0x12a32f(0x173))return{'state':_0x12a32f(0x170),'reason':_0x476a14+_0x12a32f(0x177)+_0x3f6f2c+_0x12a32f(0x16a)+('('+_0xa4703e[_0x12a32f(0x16e)](',\x20')+')')};return{'state':'absent','checked':_0xa4703e};}
1
+ function a271_0x149d(_0x2d4e7d,_0x4babb1){_0x2d4e7d=_0x2d4e7d-0x1d6;const _0x5ee410=a271_0x5ee4();let _0x149d65=_0x5ee410[_0x2d4e7d];return _0x149d65;}const a271_0x52057c=a271_0x149d;(function(_0x27e721,_0x2e0aa8){const _0x33e1aa=a271_0x149d,_0x234ae5=_0x27e721();while(!![]){try{const _0xbd62bb=parseInt(_0x33e1aa(0x1e5))/0x1+-parseInt(_0x33e1aa(0x1e7))/0x2*(-parseInt(_0x33e1aa(0x1ee))/0x3)+-parseInt(_0x33e1aa(0x1f4))/0x4*(-parseInt(_0x33e1aa(0x1e6))/0x5)+parseInt(_0x33e1aa(0x1f3))/0x6+parseInt(_0x33e1aa(0x1e2))/0x7*(-parseInt(_0x33e1aa(0x1ed))/0x8)+parseInt(_0x33e1aa(0x1dd))/0x9*(-parseInt(_0x33e1aa(0x1d8))/0xa)+-parseInt(_0x33e1aa(0x1f2))/0xb;if(_0xbd62bb===_0x2e0aa8)break;else _0x234ae5['push'](_0x234ae5['shift']());}catch(_0x4ddf49){_0x234ae5['push'](_0x234ae5['shift']());}}}(a271_0x5ee4,0x9a2c4));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';function a271_0x5ee4(){const _0x3386a0=['map','2031112DxqRFj','112911qaPwRJ','join','find','lockFile','9480625zdtuqU','2828058DuDBCI','68pnaXIM','SKILL.md','message','home','1219210qaPZyW','kind','skills','unverifiable','parse','81swpwXw','\x20uses\x20unsupported\x20version\x20','reason','.skill-lock.json','not-recorded','7QFvJmy','unusable','version','532005wZLILl','297995uHfKdr','44ziZmUF','globalSkillsDirs','\x20is\x20unreadable:\x20','recorded','object'];a271_0x5ee4=function(){return _0x3386a0;};return a271_0x5ee4();}export const SKILL_LOCK_RELATIVE_PATH=join('.agents',a271_0x52057c(0x1e0));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents','skills'),join('.claude',a271_0x52057c(0x1da))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x47ded6,_0xf0a37c){const _0x1b9bca=a271_0x52057c;if(!existsSync(_0x47ded6))return{'kind':_0x1b9bca(0x1e1)};let _0x3cca20;try{_0x3cca20=JSON[_0x1b9bca(0x1dc)](readFileSync(_0x47ded6,'utf8'));}catch(_0x33dd54){return{'kind':_0x1b9bca(0x1e3),'reason':_0x47ded6+_0x1b9bca(0x1e9)+_0x33dd54[_0x1b9bca(0x1d6)]};}const _0x132100=_0x3cca20;if(typeof _0x132100?.[_0x1b9bca(0x1e4)]!=='number'||!SUPPORTED_LOCK_VERSIONS['includes'](_0x132100[_0x1b9bca(0x1e4)]))return{'kind':_0x1b9bca(0x1e3),'reason':_0x47ded6+_0x1b9bca(0x1de)+String(_0x132100?.[_0x1b9bca(0x1e4)])};if(!_0x132100['skills']||typeof _0x132100['skills']!==_0x1b9bca(0x1eb))return{'kind':'unusable','reason':_0x47ded6+'\x20has\x20no\x20skills\x20map'};return _0x132100[_0x1b9bca(0x1da)][_0xf0a37c]?{'kind':_0x1b9bca(0x1ea)}:{'kind':_0x1b9bca(0x1e1)};}export function resolveInstalledSkill(_0x7fe580,_0x5c19c0){const _0x27a1da=a271_0x52057c,_0x17f7f9=_0x5c19c0?.[_0x27a1da(0x1d7)]??homedir(),_0x25bb61=_0x5c19c0?.[_0x27a1da(0x1e8)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x27a1da(0x1ec)](_0x4cd112=>join(_0x17f7f9,_0x4cd112)),_0x4bddc8=_0x5c19c0?.[_0x27a1da(0x1f1)]??join(_0x17f7f9,SKILL_LOCK_RELATIVE_PATH),_0x226a75=_0x25bb61[_0x27a1da(0x1ec)](_0x3df4e7=>join(_0x3df4e7,_0x7fe580,_0x27a1da(0x1f5))),_0x394c16=_0x226a75[_0x27a1da(0x1f0)](_0x2484e9=>existsSync(_0x2484e9));if(_0x394c16)return{'state':'present','path':_0x394c16};const _0x10ebbd=readLockLookup(_0x4bddc8,_0x7fe580);if(_0x10ebbd[_0x27a1da(0x1d9)]==='unusable')return{'state':_0x27a1da(0x1db),'reason':_0x10ebbd[_0x27a1da(0x1df)]};if(_0x10ebbd['kind']===_0x27a1da(0x1ea))return{'state':_0x27a1da(0x1db),'reason':_0x4bddc8+'\x20records\x20\x22'+_0x7fe580+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0x226a75[_0x27a1da(0x1ef)](',\x20')+')')};return{'state':'absent','checked':_0x226a75};}
@@ -1 +1 @@
1
- (function(_0x1311c8,_0x40aa2b){const _0xf0d1d2=a264_0x349e,_0x46b8ea=_0x1311c8();while(!![]){try{const _0x11dd9a=parseInt(_0xf0d1d2(0xfa))/0x1*(-parseInt(_0xf0d1d2(0xfc))/0x2)+-parseInt(_0xf0d1d2(0xf3))/0x3*(parseInt(_0xf0d1d2(0xfd))/0x4)+-parseInt(_0xf0d1d2(0xfe))/0x5*(parseInt(_0xf0d1d2(0xf7))/0x6)+-parseInt(_0xf0d1d2(0xf1))/0x7*(-parseInt(_0xf0d1d2(0xfb))/0x8)+-parseInt(_0xf0d1d2(0xea))/0x9*(parseInt(_0xf0d1d2(0xf8))/0xa)+-parseInt(_0xf0d1d2(0xf0))/0xb*(-parseInt(_0xf0d1d2(0xf4))/0xc)+parseInt(_0xf0d1d2(0xf9))/0xd*(parseInt(_0xf0d1d2(0xf5))/0xe);if(_0x11dd9a===_0x40aa2b)break;else _0x46b8ea['push'](_0x46b8ea['shift']());}catch(_0x727756){_0x46b8ea['push'](_0x46b8ea['shift']());}}}(a264_0x4dfb,0x60cdd));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function a264_0x4dfb(){const _0xa20145=['service','rabetbase.command','5931DCoahg','test','durationMs','[REDACTED]','message','entries','11jEbxjt','2680741FzgIjh','flags','861BorPoh','1144812byDzTh','143402ITVPjj','error','34746daWCbH','5140TIbkKK','819NxxdgT','113bvGMXF','16awANnr','7600lfKRgt','1296rWakBD','215vwCroJ'];a264_0x4dfb=function(){return _0xa20145;};return a264_0x4dfb();}function isSensitiveKey(_0x2c7b64){const _0x1d1612=a264_0x349e;return SENSITIVE_PATTERNS['some'](_0x3082d0=>_0x3082d0[_0x1d1612(0xeb)](_0x2c7b64));}function a264_0x349e(_0x4d7672,_0x567ac1){_0x4d7672=_0x4d7672-0xe9;const _0x4dfb37=a264_0x4dfb();let _0x349e12=_0x4dfb37[_0x4d7672];return _0x349e12;}function sanitizeFlags(_0x3423bd){const _0x3ab6e6=a264_0x349e,_0x258cba={};for(const [_0x59475a,_0x4a451c]of Object[_0x3ab6e6(0xef)](_0x3423bd)){isSensitiveKey(_0x59475a)?_0x258cba[_0x59475a]=_0x4a451c!=null&&_0x4a451c!==''?_0x3ab6e6(0xed):_0x4a451c:_0x258cba[_0x59475a]=_0x4a451c;}return _0x258cba;}export async function reportCommandTrace(_0x19b89e){const _0x1a512e=a264_0x349e;try{const _0x33e2f4=sanitizeFlags(_0x19b89e[_0x1a512e(0xf2)]);await sendCliTraceLog({'spanName':_0x1a512e(0xe9),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x19b89e[_0x1a512e(0xff)],'command.name':_0x19b89e['command'],'command.flags':JSON['stringify'](_0x33e2f4),..._0x19b89e[_0x1a512e(0xec)]!=null?{'command.duration_ms':_0x19b89e[_0x1a512e(0xec)]}:{},..._0x19b89e[_0x1a512e(0xf6)]?{'command.error':_0x19b89e[_0x1a512e(0xf6)]instanceof Error?_0x19b89e['error'][_0x1a512e(0xee)]:String(_0x19b89e[_0x1a512e(0xf6)])}:{}}});}catch{}}
1
+ (function(_0xd5ec5e,_0x272da9){const _0x32f588=a272_0x5744,_0x4f6fe9=_0xd5ec5e();while(!![]){try{const _0x1b8d69=-parseInt(_0x32f588(0x1ea))/0x1*(parseInt(_0x32f588(0x1f1))/0x2)+parseInt(_0x32f588(0x1f3))/0x3+-parseInt(_0x32f588(0x1f7))/0x4*(-parseInt(_0x32f588(0x1fa))/0x5)+-parseInt(_0x32f588(0x1f2))/0x6+parseInt(_0x32f588(0x1ec))/0x7*(parseInt(_0x32f588(0x1f6))/0x8)+-parseInt(_0x32f588(0x1f4))/0x9+parseInt(_0x32f588(0x1f0))/0xa;if(_0x1b8d69===_0x272da9)break;else _0x4f6fe9['push'](_0x4f6fe9['shift']());}catch(_0x32f4b7){_0x4f6fe9['push'](_0x4f6fe9['shift']());}}}(a272_0x572c,0xd22de));function a272_0x572c(){const _0x3b2beb=['14haauJr','message','error','command','21623320szZZLH','805038AcyVjz','8463480EOrVMj','325908qCACDo','944226ogcysc','stringify','1036760nbWtzC','4aBcwWA','some','durationMs','1243745qhpMDp','test','1LUVLAh','rabetbase.command'];a272_0x572c=function(){return _0x3b2beb;};return a272_0x572c();}function a272_0x5744(_0x5a8b23,_0x107286){_0x5a8b23=_0x5a8b23-0x1e9;const _0x572c80=a272_0x572c();let _0x574408=_0x572c80[_0x5a8b23];return _0x574408;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x452fc1){const _0x29202a=a272_0x5744;return SENSITIVE_PATTERNS[_0x29202a(0x1f8)](_0x280de5=>_0x280de5[_0x29202a(0x1e9)](_0x452fc1));}function sanitizeFlags(_0x136c6a){const _0x599e4e={};for(const [_0x51c215,_0xa43e35]of Object['entries'](_0x136c6a)){isSensitiveKey(_0x51c215)?_0x599e4e[_0x51c215]=_0xa43e35!=null&&_0xa43e35!==''?'[REDACTED]':_0xa43e35:_0x599e4e[_0x51c215]=_0xa43e35;}return _0x599e4e;}export async function reportCommandTrace(_0x58191d){const _0x5bdf21=a272_0x5744;try{const _0x1a9a7c=sanitizeFlags(_0x58191d['flags']);await sendCliTraceLog({'spanName':_0x5bdf21(0x1eb),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x58191d['service'],'command.name':_0x58191d[_0x5bdf21(0x1ef)],'command.flags':JSON[_0x5bdf21(0x1f5)](_0x1a9a7c),..._0x58191d[_0x5bdf21(0x1f9)]!=null?{'command.duration_ms':_0x58191d['durationMs']}:{},..._0x58191d[_0x5bdf21(0x1ee)]?{'command.error':_0x58191d[_0x5bdf21(0x1ee)]instanceof Error?_0x58191d[_0x5bdf21(0x1ee)][_0x5bdf21(0x1ed)]:String(_0x58191d[_0x5bdf21(0x1ee)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a265_0x1f0e(){var _0x2e3717=['707923MYFneG','22ttxXsk','6MAsVMw','16EpvfRY','cli.help','1023393qIDTih','258867xXOugO','1718336FhtmEC','4446710eWwynC','2451788YSSUnE','service','12832596ZmJxWU','3YlrFoW','50cNTyRZ','Failed\x20to\x20report\x20CLI\x20help\x20trace:'];a265_0x1f0e=function(){return _0x2e3717;};return a265_0x1f0e();}(function(_0x508221,_0x138933){var _0x14cfbf=a265_0x527c,_0x565b4c=_0x508221();while(!![]){try{var _0xf5d68b=parseInt(_0x14cfbf(0x11d))/0x1+-parseInt(_0x14cfbf(0x117))/0x2*(-parseInt(_0x14cfbf(0x11a))/0x3)+parseInt(_0x14cfbf(0x124))/0x4+-parseInt(_0x14cfbf(0x116))/0x5*(-parseInt(_0x14cfbf(0x11f))/0x6)+parseInt(_0x14cfbf(0x122))/0x7*(-parseInt(_0x14cfbf(0x120))/0x8)+parseInt(_0x14cfbf(0x123))/0x9*(-parseInt(_0x14cfbf(0x11b))/0xa)+-parseInt(_0x14cfbf(0x11e))/0xb*(parseInt(_0x14cfbf(0x119))/0xc);if(_0xf5d68b===_0x138933)break;else _0x565b4c['push'](_0x565b4c['shift']());}catch(_0x581108){_0x565b4c['push'](_0x565b4c['shift']());}}}(a265_0x1f0e,0xa5784));function a265_0x527c(_0x278da8,_0x57be82){_0x278da8=_0x278da8-0x116;var _0x1f0e46=a265_0x1f0e();var _0x527c58=_0x1f0e46[_0x278da8];return _0x527c58;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x59f47a,_0x562a00){var _0xdbac92=a265_0x527c;try{await sendCliTraceLog({'spanName':_0xdbac92(0x121),'logData':{'rabetbase.help.kind':_0x59f47a,..._0x562a00?.[_0xdbac92(0x118)]&&{'rabetbase.help.service':_0x562a00[_0xdbac92(0x118)]}}});}catch(_0x3a75d0){console['error'](_0xdbac92(0x11c),_0x3a75d0);}}
1
+ function a273_0x20c7(_0x542783,_0x5672eb){_0x542783=_0x542783-0x81;var _0x24bc8f=a273_0x24bc();var _0x20c742=_0x24bc8f[_0x542783];return _0x20c742;}(function(_0x313b02,_0x27fbc5){var _0xe0ad8=a273_0x20c7,_0x173a29=_0x313b02();while(!![]){try{var _0x3966eb=parseInt(_0xe0ad8(0x8f))/0x1+parseInt(_0xe0ad8(0x81))/0x2+parseInt(_0xe0ad8(0x89))/0x3*(parseInt(_0xe0ad8(0x8a))/0x4)+parseInt(_0xe0ad8(0x82))/0x5*(parseInt(_0xe0ad8(0x8c))/0x6)+-parseInt(_0xe0ad8(0x90))/0x7*(-parseInt(_0xe0ad8(0x83))/0x8)+parseInt(_0xe0ad8(0x84))/0x9*(-parseInt(_0xe0ad8(0x8b))/0xa)+parseInt(_0xe0ad8(0x8e))/0xb*(-parseInt(_0xe0ad8(0x87))/0xc);if(_0x3966eb===_0x27fbc5)break;else _0x173a29['push'](_0x173a29['shift']());}catch(_0x4b0503){_0x173a29['push'](_0x173a29['shift']());}}}(a273_0x24bc,0x2ae00));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a273_0x24bc(){var _0x5daf94=['2316MddwAL','error','12ZgwDts','252604CjXAfL','30tycbEA','175074TCgwdq','Failed\x20to\x20report\x20CLI\x20help\x20trace:','16753cwWtxJ','27388kpHUBq','11977pQMDuA','176796pFpCci','5vaWZni','1400WJzpEV','682317VoWpYU','service','cli.help'];a273_0x24bc=function(){return _0x5daf94;};return a273_0x24bc();}export async function reportCliHelpTrace(_0x2ea5a4,_0x2033b7){var _0x2a3b9d=a273_0x20c7;try{await sendCliTraceLog({'spanName':_0x2a3b9d(0x86),'logData':{'rabetbase.help.kind':_0x2ea5a4,..._0x2033b7?.[_0x2a3b9d(0x85)]&&{'rabetbase.help.service':_0x2033b7[_0x2a3b9d(0x85)]}}});}catch(_0x3b49e5){console[_0x2a3b9d(0x88)](_0x2a3b9d(0x8d),_0x3b49e5);}}
@@ -1 +1 @@
1
- function a266_0x3a5a(){const _0x1b3be6=['24AWMFTv','606lmMDHC','7044608bWnnLL','5rQwzkG','tenant','3126134VRJnNb','2106764OGohFo','nickname','956579ykeVfs','username','unknown','tenant_code','production','3086qNmEbh','40306oYLyRv','7357896ItSKdV','80lguNtd'];a266_0x3a5a=function(){return _0x1b3be6;};return a266_0x3a5a();}(function(_0x7bd7ec,_0x4287c2){const _0x17ae22=a266_0x209c,_0x35fb40=_0x7bd7ec();while(!![]){try{const _0x2413c6=parseInt(_0x17ae22(0x191))/0x1+-parseInt(_0x17ae22(0x196))/0x2*(parseInt(_0x17ae22(0x19b))/0x3)+parseInt(_0x17ae22(0x1a0))/0x4*(-parseInt(_0x17ae22(0x19d))/0x5)+parseInt(_0x17ae22(0x19a))/0x6*(-parseInt(_0x17ae22(0x197))/0x7)+-parseInt(_0x17ae22(0x19c))/0x8+-parseInt(_0x17ae22(0x198))/0x9+parseInt(_0x17ae22(0x199))/0xa*(parseInt(_0x17ae22(0x19f))/0xb);if(_0x2413c6===_0x4287c2)break;else _0x35fb40['push'](_0x35fb40['shift']());}catch(_0x2dbf99){_0x35fb40['push'](_0x35fb40['shift']());}}}(a266_0x3a5a,0xa3b8a));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';function a266_0x209c(_0x21c3e5,_0x37e7c7){_0x21c3e5=_0x21c3e5-0x191;const _0x3a5a18=a266_0x3a5a();let _0x209c13=_0x3a5a18[_0x21c3e5];return _0x209c13;}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x47d3a3=a266_0x209c,_0x15ff1f=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x23848e=_0x15ff1f?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x47d3a3(0x193)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':_0x47d3a3(0x195))}),setUserContext({'id':_0x23848e?.['id'],'username':_0x23848e?.[_0x47d3a3(0x192)],'nickname':_0x23848e?.[_0x47d3a3(0x1a1)],'email':_0x23848e?.['email'],'tenantCode':_0x23848e?.[_0x47d3a3(0x19e)]?.[_0x47d3a3(0x194)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x15ff1f;}
1
+ (function(_0xca218,_0x304864){const _0x407c1f=a274_0x2387,_0x9eabab=_0xca218();while(!![]){try{const _0x465245=parseInt(_0x407c1f(0xb4))/0x1+-parseInt(_0x407c1f(0xb0))/0x2*(-parseInt(_0x407c1f(0xad))/0x3)+-parseInt(_0x407c1f(0xb2))/0x4+-parseInt(_0x407c1f(0xaa))/0x5*(parseInt(_0x407c1f(0xb3))/0x6)+-parseInt(_0x407c1f(0xa7))/0x7+parseInt(_0x407c1f(0xac))/0x8+-parseInt(_0x407c1f(0xa5))/0x9;if(_0x465245===_0x304864)break;else _0x9eabab['push'](_0x9eabab['shift']());}catch(_0x38d009){_0x9eabab['push'](_0x9eabab['shift']());}}}(a274_0x50e6,0xe323f));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a274_0x2387(_0x26d519,_0x1a2aa4){_0x26d519=_0x26d519-0xa3;const _0x50e6a7=a274_0x50e6();let _0x23870b=_0x50e6a7[_0x26d519];return _0x23870b;}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];function a274_0x50e6(){const _0xafb5d5=['7560wHoIqq','username','14785768FPovCn','77052ZIBajh','tenant_code','tenant','28ebMlMc','unknown','292972kqkuxi','4266dciRnH','133604KnpBXz','daily','email','1287711HLpuqA','nickname','837760MWFzsz','user','production'];a274_0x50e6=function(){return _0xafb5d5;};return a274_0x50e6();}export async function ensureCliOtelTraceConfig(){const _0x5cb2b1=a274_0x2387,_0x562b74=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x5564dc=_0x562b74?.[_0x5cb2b1(0xa8)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x5cb2b1(0xb1)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x5cb2b1(0xa3):_0x5cb2b1(0xa9))}),setUserContext({'id':_0x5564dc?.['id'],'username':_0x5564dc?.[_0x5cb2b1(0xab)],'nickname':_0x5564dc?.[_0x5cb2b1(0xa6)],'email':_0x5564dc?.[_0x5cb2b1(0xa4)],'tenantCode':_0x5564dc?.[_0x5cb2b1(0xaf)]?.[_0x5cb2b1(0xae)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x562b74;}
@@ -1 +1 @@
1
- (function(_0x2b0d63,_0x226583){const _0x142a3=a267_0x2560,_0x1c274b=_0x2b0d63();while(!![]){try{const _0xb493db=-parseInt(_0x142a3(0x132))/0x1+-parseInt(_0x142a3(0x12f))/0x2+-parseInt(_0x142a3(0x126))/0x3+-parseInt(_0x142a3(0x12a))/0x4*(-parseInt(_0x142a3(0x127))/0x5)+-parseInt(_0x142a3(0x12d))/0x6+parseInt(_0x142a3(0x12e))/0x7*(parseInt(_0x142a3(0x130))/0x8)+parseInt(_0x142a3(0x129))/0x9;if(_0xb493db===_0x226583)break;else _0x1c274b['push'](_0x1c274b['shift']());}catch(_0x3edae7){_0x1c274b['push'](_0x1c274b['shift']());}}}(a267_0x1713,0x4ff7b));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a267_0x2560(_0x48800a,_0x168dbb){_0x48800a=_0x48800a-0x126;const _0x171394=a267_0x1713();let _0x256091=_0x171394[_0x48800a];return _0x256091;}export function registerOtelShutdownOnExit(){const _0x4e9b50=a267_0x2560;process[_0x4e9b50(0x12c)](_0x4e9b50(0x133),()=>{void flushOtelNodeIfUsed();});const _0x171a01=()=>{const _0x4c245d=_0x4e9b50;void flushOtelNodeIfUsed()[_0x4c245d(0x12b)](()=>process[_0x4c245d(0x128)](0x0));};process[_0x4e9b50(0x12c)](_0x4e9b50(0x131),_0x171a01),process[_0x4e9b50(0x12c)]('SIGTERM',_0x171a01);}function a267_0x1713(){const _0xb88fe3=['14688630hsrVIm','16VlocSf','then','once','3678882LORUuV','12516uoJzuT','1133996gnGdhR','952FfEReB','SIGINT','125439tsvUDY','beforeExit','996273MADquf','150475TayNQp','exit'];a267_0x1713=function(){return _0xb88fe3;};return a267_0x1713();}export async function exitWithOtelShutdown(_0x43986d){const _0x5ef8dc=a267_0x2560;await flushOtelNodeIfUsed(),process[_0x5ef8dc(0x128)](_0x43986d);}
1
+ function a275_0x33a7(_0x34dc28,_0x5a4392){_0x34dc28=_0x34dc28-0xee;const _0x22dfc6=a275_0x22df();let _0x33a7c5=_0x22dfc6[_0x34dc28];return _0x33a7c5;}(function(_0x5b1fee,_0x22ad9){const _0x5b40a6=a275_0x33a7,_0x1d9c6b=_0x5b1fee();while(!![]){try{const _0x202946=-parseInt(_0x5b40a6(0xfd))/0x1+-parseInt(_0x5b40a6(0xf5))/0x2+parseInt(_0x5b40a6(0xfb))/0x3*(-parseInt(_0x5b40a6(0xf9))/0x4)+-parseInt(_0x5b40a6(0xf8))/0x5*(parseInt(_0x5b40a6(0xef))/0x6)+-parseInt(_0x5b40a6(0xfa))/0x7*(-parseInt(_0x5b40a6(0xf6))/0x8)+parseInt(_0x5b40a6(0xee))/0x9*(parseInt(_0x5b40a6(0xfc))/0xa)+-parseInt(_0x5b40a6(0xf3))/0xb*(-parseInt(_0x5b40a6(0xf1))/0xc);if(_0x202946===_0x22ad9)break;else _0x1d9c6b['push'](_0x1d9c6b['shift']());}catch(_0x27fb85){_0x1d9c6b['push'](_0x1d9c6b['shift']());}}}(a275_0x22df,0x4eba1));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x3771f4=a275_0x33a7;process[_0x3771f4(0xf4)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x32cfdd=()=>{const _0x133cb0=_0x3771f4;void flushOtelNodeIfUsed()[_0x133cb0(0xf0)](()=>process[_0x133cb0(0xf2)](0x0));};process[_0x3771f4(0xf4)]('SIGINT',_0x32cfdd),process[_0x3771f4(0xf4)](_0x3771f4(0xf7),_0x32cfdd);}export async function exitWithOtelShutdown(_0x274223){const _0x3e3c6b=a275_0x33a7;await flushOtelNodeIfUsed(),process[_0x3e3c6b(0xf2)](_0x274223);}function a275_0x22df(){const _0x358954=['135446OHissn','99vgrVwo','2650932EBQlVb','then','39324aVhpUr','exit','1991JvOcBm','once','880180bRGmVE','7536Iufxku','SIGTERM','5SaohNX','12yyzJBC','4431ioNebk','350859QnBfAM','455690OeukfW'];a275_0x22df=function(){return _0x358954;};return a275_0x22df();}
@@ -1 +1 @@
1
- const a268_0x56d481=a268_0xaba0;(function(_0x4308c9,_0xa56146){const _0x271fee=a268_0xaba0,_0xb01517=_0x4308c9();while(!![]){try{const _0xbffff1=parseInt(_0x271fee(0x16a))/0x1+parseInt(_0x271fee(0x170))/0x2+parseInt(_0x271fee(0x163))/0x3*(parseInt(_0x271fee(0x16c))/0x4)+-parseInt(_0x271fee(0x169))/0x5*(-parseInt(_0x271fee(0x16b))/0x6)+-parseInt(_0x271fee(0x165))/0x7*(-parseInt(_0x271fee(0x160))/0x8)+parseInt(_0x271fee(0x164))/0x9*(parseInt(_0x271fee(0x166))/0xa)+-parseInt(_0x271fee(0x16d))/0xb;if(_0xbffff1===_0xa56146)break;else _0xb01517['push'](_0xb01517['shift']());}catch(_0x28cf49){_0xb01517['push'](_0xb01517['shift']());}}}(a268_0xff43,0x67576));function a268_0xaba0(_0x39a6f0,_0x25b5b5){_0x39a6f0=_0x39a6f0-0x15f;const _0xff4368=a268_0xff43();let _0xaba09=_0xff4368[_0x39a6f0];return _0xaba09;}import{sendTraceLog}from'@lovrabet/otel-logger';function a268_0xff43(){const _0x3b418c=['traceparent','1478872sLJsqw','version','traceName','142317ObVidR','2107107GyCEQc','28wrsVNv','10EkuvOr','spanName','logData','5wNutBJ','134622xKrpDJ','2551308UoYnCP','4IIvnfP','17085035qXoeqw','manual','rabetbase-cli','791266ElaFYy'];a268_0xff43=function(){return _0x3b418c;};return a268_0xff43();}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a268_0x56d481(0x16f);export async function sendCliTraceLog(_0x41244c){const _0x5c0781=a268_0x56d481;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x41244c[_0x5c0781(0x162)]??DEFAULT_TRACE_NAME,'version':_0x41244c[_0x5c0781(0x161)]??getCliVersion(),'spanName':_0x41244c[_0x5c0781(0x167)],'eventType':_0x5c0781(0x16e),'logData':_0x41244c[_0x5c0781(0x168)],..._0x41244c[_0x5c0781(0x15f)]&&{'traceparent':_0x41244c[_0x5c0781(0x15f)]}});}
1
+ const a276_0x2b0315=a276_0x4780;(function(_0x4a394b,_0x5e7b08){const _0xc93a1b=a276_0x4780,_0x32adaa=_0x4a394b();while(!![]){try{const _0x4a02d1=-parseInt(_0xc93a1b(0x115))/0x1+parseInt(_0xc93a1b(0x114))/0x2+-parseInt(_0xc93a1b(0x11a))/0x3*(-parseInt(_0xc93a1b(0x118))/0x4)+-parseInt(_0xc93a1b(0x112))/0x5+parseInt(_0xc93a1b(0x11d))/0x6*(-parseInt(_0xc93a1b(0x116))/0x7)+parseInt(_0xc93a1b(0x113))/0x8+parseInt(_0xc93a1b(0x117))/0x9;if(_0x4a02d1===_0x5e7b08)break;else _0x32adaa['push'](_0x32adaa['shift']());}catch(_0x2ea4d2){_0x32adaa['push'](_0x32adaa['shift']());}}}(a276_0x5972,0xbc355));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a276_0x4780(_0x1900e7,_0x203d80){_0x1900e7=_0x1900e7-0x112;const _0x597296=a276_0x5972();let _0x47808c=_0x597296[_0x1900e7];return _0x47808c;}function a276_0x5972(){const _0x3b1080=['64074HsrLyP','traceparent','rabetbase-cli','666VEFmfo','manual','version','6471950LfxLcT','8898760SkiAqg','1345376VWrRAE','978476uTcybK','28553OkImVu','4639095WnDhKk','224XZyisa','logData'];a276_0x5972=function(){return _0x3b1080;};return a276_0x5972();}const DEFAULT_TRACE_NAME=a276_0x2b0315(0x11c);export async function sendCliTraceLog(_0x5c69a9){const _0x173dd9=a276_0x2b0315;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x5c69a9['traceName']??DEFAULT_TRACE_NAME,'version':_0x5c69a9[_0x173dd9(0x11f)]??getCliVersion(),'spanName':_0x5c69a9['spanName'],'eventType':_0x173dd9(0x11e),'logData':_0x5c69a9[_0x173dd9(0x119)],..._0x5c69a9['traceparent']&&{'traceparent':_0x5c69a9[_0x173dd9(0x11b)]}});}
@@ -1 +1 @@
1
- const a269_0x164498=a269_0x1167;(function(_0x3029a5,_0x2b72cc){const _0x367b92=a269_0x1167,_0x57b176=_0x3029a5();while(!![]){try{const _0x3cfcd2=-parseInt(_0x367b92(0x13f))/0x1+parseInt(_0x367b92(0x148))/0x2+-parseInt(_0x367b92(0x13d))/0x3+-parseInt(_0x367b92(0x142))/0x4*(parseInt(_0x367b92(0x149))/0x5)+parseInt(_0x367b92(0x143))/0x6*(-parseInt(_0x367b92(0x144))/0x7)+parseInt(_0x367b92(0x146))/0x8+parseInt(_0x367b92(0x13b))/0x9;if(_0x3cfcd2===_0x2b72cc)break;else _0x57b176['push'](_0x57b176['shift']());}catch(_0x2f8a28){_0x57b176['push'](_0x57b176['shift']());}}}(a269_0x4c01,0x5d2cc));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a269_0x1167(_0x37735f,_0x41c1c5){_0x37735f=_0x37735f-0x139;const _0x4c01a9=a269_0x4c01();let _0x116784=_0x4c01a9[_0x37735f];return _0x116784;}export const PLATFORM_ISSUE_TRACE_NAME=a269_0x164498(0x139);export const PLATFORM_ISSUE_SPAN_NAME=a269_0x164498(0x147);function a269_0x4c01(){const _0x1eb427=['join','23558589ZbLaiB','redactionKinds','2096553cbzFwe','description','669262xqnBkq','title','originalBytes','8feQHjk','95958QOdVsH','189DYabLv','truncated','1624712WHQvOl','issue.log.collect','189816RQfeKf','1835125MrQbNo','sanitize','platform-issue-log-collect'];a269_0x4c01=function(){return _0x1eb427;};return a269_0x4c01();}export async function sendPlatformIssueCollectLog(_0x2f7a61){const _0x3aa92c=a269_0x164498;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x2f7a61[_0x3aa92c(0x140)],'issue.description':_0x2f7a61[_0x3aa92c(0x13e)],..._0x2f7a61['sanitize']?{'issue.description_original_bytes':_0x2f7a61[_0x3aa92c(0x14a)][_0x3aa92c(0x141)],'issue.description_truncated':_0x2f7a61['sanitize'][_0x3aa92c(0x145)],'issue.description_redactions':_0x2f7a61[_0x3aa92c(0x14a)]['redactionCount'],'issue.description_redaction_kinds':_0x2f7a61[_0x3aa92c(0x14a)][_0x3aa92c(0x13c)][_0x3aa92c(0x13a)](',')}:{}}});}
1
+ const a277_0x1fda95=a277_0x5de5;function a277_0x5de5(_0x4f57e8,_0x2d9180){_0x4f57e8=_0x4f57e8-0xc9;const _0x40a4f8=a277_0x40a4();let _0x5de5b9=_0x40a4f8[_0x4f57e8];return _0x5de5b9;}function a277_0x40a4(){const _0x4079a5=['title','19717272FkyLUu','418789aeKhQq','redactionKinds','originalBytes','1836864XTUOWX','issue.log.collect','join','1218244KFYxQv','15495WnZuUI','867908pryyvN','sanitize','4301752PqOsTw','552ZNZXKN'];a277_0x40a4=function(){return _0x4079a5;};return a277_0x40a4();}(function(_0x1eaafa,_0xc6bd53){const _0x35feae=a277_0x5de5,_0x4499aa=_0x1eaafa();while(!![]){try{const _0x546001=-parseInt(_0x35feae(0xd2))/0x1+-parseInt(_0x35feae(0xcc))/0x2+-parseInt(_0x35feae(0xd5))/0x3+-parseInt(_0x35feae(0xca))/0x4+-parseInt(_0x35feae(0xcb))/0x5*(-parseInt(_0x35feae(0xcf))/0x6)+-parseInt(_0x35feae(0xce))/0x7+parseInt(_0x35feae(0xd1))/0x8;if(_0x546001===_0xc6bd53)break;else _0x4499aa['push'](_0x4499aa['shift']());}catch(_0x10c28f){_0x4499aa['push'](_0x4499aa['shift']());}}}(a277_0x40a4,0x59447));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a277_0x1fda95(0xd6);export async function sendPlatformIssueCollectLog(_0x37b9c4){const _0x2a4a4c=a277_0x1fda95;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x37b9c4[_0x2a4a4c(0xd0)],'issue.description':_0x37b9c4['description'],..._0x37b9c4[_0x2a4a4c(0xcd)]?{'issue.description_original_bytes':_0x37b9c4[_0x2a4a4c(0xcd)][_0x2a4a4c(0xd4)],'issue.description_truncated':_0x37b9c4['sanitize']['truncated'],'issue.description_redactions':_0x37b9c4[_0x2a4a4c(0xcd)]['redactionCount'],'issue.description_redaction_kinds':_0x37b9c4[_0x2a4a4c(0xcd)][_0x2a4a4c(0xd3)][_0x2a4a4c(0xc9)](',')}:{}}});}
@@ -1 +1 @@
1
- const a271_0x29c1f4=a271_0x564a;(function(_0xcb627c,_0x32d2fa){const _0x54f361=a271_0x564a,_0x285236=_0xcb627c();while(!![]){try{const _0x506a36=parseInt(_0x54f361(0x15b))/0x1*(-parseInt(_0x54f361(0x159))/0x2)+-parseInt(_0x54f361(0x13b))/0x3+-parseInt(_0x54f361(0x147))/0x4*(-parseInt(_0x54f361(0x165))/0x5)+parseInt(_0x54f361(0x154))/0x6+-parseInt(_0x54f361(0x14c))/0x7*(-parseInt(_0x54f361(0x153))/0x8)+parseInt(_0x54f361(0x155))/0x9*(parseInt(_0x54f361(0x13c))/0xa)+-parseInt(_0x54f361(0x157))/0xb;if(_0x506a36===_0x32d2fa)break;else _0x285236['push'](_0x285236['shift']());}catch(_0x161ef6){_0x285236['push'](_0x285236['shift']());}}}(a271_0x221d,0x75a6d));export const CORE_IDE_CONFIGS={'cursor':{'name':a271_0x29c1f4(0x15c),'description':a271_0x29c1f4(0x141),'folders':['.cursorrules',a271_0x29c1f4(0x14d)],'files':[{'type':a271_0x29c1f4(0x161),'path':a271_0x29c1f4(0x144),'template':'SKILL.md.tpl'}]},'windsurf':{'name':'Windsurf','description':a271_0x29c1f4(0x160),'folders':[a271_0x29c1f4(0x14a)],'files':[{'type':a271_0x29c1f4(0x161),'path':'.windsurf/workflows/rabetbase.md','template':a271_0x29c1f4(0x162)}]},'claude':{'name':'Claude\x20Code','description':a271_0x29c1f4(0x139),'folders':[a271_0x29c1f4(0x163)],'files':[{'type':a271_0x29c1f4(0x161),'path':a271_0x29c1f4(0x13a),'template':a271_0x29c1f4(0x162)}]},'cline':{'name':'Cline','description':a271_0x29c1f4(0x140),'folders':[a271_0x29c1f4(0x15a)],'files':[{'type':'file','path':'.cline/skills/lovrabet/SKILL.md','template':a271_0x29c1f4(0x162)}]},'codex':{'name':a271_0x29c1f4(0x13e),'description':a271_0x29c1f4(0x149),'folders':[a271_0x29c1f4(0x145)],'files':[{'type':'file','path':a271_0x29c1f4(0x14e),'template':a271_0x29c1f4(0x162)}]},'opencode':{'name':a271_0x29c1f4(0x15e),'description':a271_0x29c1f4(0x151),'folders':['.opencode'],'files':[{'type':a271_0x29c1f4(0x161),'path':a271_0x29c1f4(0x138),'template':'SKILL.md.tpl'}]},'qoder':{'name':a271_0x29c1f4(0x16a),'description':'Qoder\x20IDE','folders':[a271_0x29c1f4(0x15f)],'files':[{'type':a271_0x29c1f4(0x161),'path':'.qoder/rules/rabetbase.md','template':a271_0x29c1f4(0x162)},{'type':a271_0x29c1f4(0x161),'path':a271_0x29c1f4(0x13d),'template':a271_0x29c1f4(0x162)}]},'codebuddy':{'name':'CodeBuddy','description':'CodeBuddy\x20IDE','folders':[a271_0x29c1f4(0x169)],'files':[{'type':'file','path':'.codebuddy/skills/lovrabet/SKILL.md','template':a271_0x29c1f4(0x162)}]},'trae':{'name':'Trae','description':'Trae\x20IDE','folders':[a271_0x29c1f4(0x168)],'files':[{'type':a271_0x29c1f4(0x161),'path':a271_0x29c1f4(0x156),'template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a271_0x29c1f4(0x14f),'description':a271_0x29c1f4(0x167),'folders':[a271_0x29c1f4(0x15d)],'files':[{'type':a271_0x29c1f4(0x161),'path':a271_0x29c1f4(0x14b),'template':a271_0x29c1f4(0x162)}]},'antigravity':{'name':a271_0x29c1f4(0x136),'description':'Antigravity\x20IDE','folders':[a271_0x29c1f4(0x15d)],'files':[{'type':a271_0x29c1f4(0x161),'path':a271_0x29c1f4(0x14b),'template':'SKILL.md.tpl'}]}};export const CORE_IDE_LIST=[a271_0x29c1f4(0x146),a271_0x29c1f4(0x166),a271_0x29c1f4(0x148),'codex',a271_0x29c1f4(0x142),'opencode',a271_0x29c1f4(0x158),'trae',a271_0x29c1f4(0x143)];function a271_0x564a(_0x303930,_0x8ea76d){_0x303930=_0x303930-0x136;const _0x221ddd=a271_0x221d();let _0x564a99=_0x221ddd[_0x303930];return _0x564a99;}function a271_0x221d(){const _0x56e11e=['Codex\x20IDE','.windsurf','.agent/skills/lovrabet/SKILL.md','1390466KkuKwl','.cursor','.codex/skills/lovrabet/SKILL.md','其他\x20(通用模板)','codex','OpenCode\x20IDE','agent','32lZREgf','675168QrOhuM','9BbgtUQ','.trae/skills/lovrabet/SKILL.md','13491951aBejZZ','qoder','12yOjjpp','.cline','82137OhbTTm','Cursor','.agent','OpenCode','.qoder','Windsurf\x20IDE','file','SKILL.md.tpl','.claude','antigravity','595TholGW','cline','通用模板\x20-\x20兜底方案','.trae','.codebuddy','Qoder','Antigravity','trae','.opencode/skills/lovrabet/SKILL.md','Claude\x20Code','.claude/skills/lovrabet/SKILL.md','285036nmyaco','4665890xyTNtY','.qoder/skills/lovrabet/SKILL.md','Codex','opencode','Cline\x20IDE','Cursor\x20IDE','cursor','windsurf','.cursor/skills/rabetbase.md','.codex','claude','31012ijFAfa','codebuddy'];a271_0x221d=function(){return _0x56e11e;};return a271_0x221d();}export const IDE_LIST=[a271_0x29c1f4(0x164),a271_0x29c1f4(0x146),a271_0x29c1f4(0x166),a271_0x29c1f4(0x148),a271_0x29c1f4(0x150),'cursor',a271_0x29c1f4(0x13f),'qoder',a271_0x29c1f4(0x137),a271_0x29c1f4(0x143),a271_0x29c1f4(0x152)];export const ALL_CORE_IDES=[a271_0x29c1f4(0x142),a271_0x29c1f4(0x143),a271_0x29c1f4(0x146),a271_0x29c1f4(0x166),a271_0x29c1f4(0x150),'opencode','qoder',a271_0x29c1f4(0x148),a271_0x29c1f4(0x137)];
1
+ const a279_0x5cb231=a279_0x58a0;(function(_0x2a2222,_0x5dcf20){const _0x5f0fdb=a279_0x58a0,_0x2035ee=_0x2a2222();while(!![]){try{const _0x59a3f7=-parseInt(_0x5f0fdb(0x17a))/0x1*(-parseInt(_0x5f0fdb(0x186))/0x2)+parseInt(_0x5f0fdb(0x15a))/0x3+parseInt(_0x5f0fdb(0x168))/0x4+-parseInt(_0x5f0fdb(0x172))/0x5+-parseInt(_0x5f0fdb(0x15f))/0x6*(parseInt(_0x5f0fdb(0x177))/0x7)+-parseInt(_0x5f0fdb(0x16b))/0x8+-parseInt(_0x5f0fdb(0x17c))/0x9*(-parseInt(_0x5f0fdb(0x15c))/0xa);if(_0x59a3f7===_0x5dcf20)break;else _0x2035ee['push'](_0x2035ee['shift']());}catch(_0x55796b){_0x2035ee['push'](_0x2035ee['shift']());}}}(a279_0x1f45,0x4415e));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':'Cursor\x20IDE','folders':[a279_0x5cb231(0x15b),a279_0x5cb231(0x14e)],'files':[{'type':a279_0x5cb231(0x179),'path':a279_0x5cb231(0x154),'template':a279_0x5cb231(0x163)}]},'windsurf':{'name':'Windsurf','description':a279_0x5cb231(0x170),'folders':[a279_0x5cb231(0x16c)],'files':[{'type':a279_0x5cb231(0x179),'path':a279_0x5cb231(0x169),'template':a279_0x5cb231(0x163)}]},'claude':{'name':a279_0x5cb231(0x16f),'description':a279_0x5cb231(0x16f),'folders':[a279_0x5cb231(0x166)],'files':[{'type':a279_0x5cb231(0x179),'path':a279_0x5cb231(0x16a),'template':a279_0x5cb231(0x163)}]},'cline':{'name':'Cline','description':'Cline\x20IDE','folders':[a279_0x5cb231(0x184)],'files':[{'type':'file','path':a279_0x5cb231(0x17e),'template':a279_0x5cb231(0x163)}]},'codex':{'name':a279_0x5cb231(0x14d),'description':a279_0x5cb231(0x156),'folders':['.codex'],'files':[{'type':a279_0x5cb231(0x179),'path':a279_0x5cb231(0x176),'template':a279_0x5cb231(0x163)}]},'opencode':{'name':'OpenCode','description':a279_0x5cb231(0x185),'folders':[a279_0x5cb231(0x159)],'files':[{'type':a279_0x5cb231(0x179),'path':a279_0x5cb231(0x16d),'template':a279_0x5cb231(0x163)}]},'qoder':{'name':a279_0x5cb231(0x162),'description':a279_0x5cb231(0x178),'folders':[a279_0x5cb231(0x180)],'files':[{'type':a279_0x5cb231(0x179),'path':a279_0x5cb231(0x150),'template':a279_0x5cb231(0x163)},{'type':'file','path':a279_0x5cb231(0x155),'template':'SKILL.md.tpl'}]},'codebuddy':{'name':'CodeBuddy','description':a279_0x5cb231(0x17f),'folders':[a279_0x5cb231(0x175)],'files':[{'type':'file','path':a279_0x5cb231(0x161),'template':a279_0x5cb231(0x163)}]},'trae':{'name':a279_0x5cb231(0x158),'description':a279_0x5cb231(0x183),'folders':[a279_0x5cb231(0x160)],'files':[{'type':'file','path':a279_0x5cb231(0x165),'template':a279_0x5cb231(0x163)}]}};function a279_0x1f45(){const _0x1b5e6e=['windsurf','.codebuddy','.codex/skills/lovrabet/SKILL.md','2940889znilQe','Qoder\x20IDE','file','191gtpDUL','qoder','4252869PHrpIN','agent','.cline/skills/lovrabet/SKILL.md','CodeBuddy\x20IDE','.qoder','claude','opencode','Trae\x20IDE','.cline','OpenCode\x20IDE','1054fxewMJ','Codex','.cursor','通用模板\x20-\x20兜底方案','.qoder/rules/rabetbase.md','antigravity','codebuddy','.agent/skills/lovrabet/SKILL.md','.cursor/skills/rabetbase.md','.qoder/skills/lovrabet/SKILL.md','Codex\x20IDE','trae','Trae','.opencode','325353YKlQtK','.cursorrules','20myTXPy','Antigravity\x20IDE','cursor','6BlIHMW','.trae','.codebuddy/skills/lovrabet/SKILL.md','Qoder','SKILL.md.tpl','cline','.trae/skills/lovrabet/SKILL.md','.claude','.agent','1967424DLnGkg','.windsurf/workflows/rabetbase.md','.claude/skills/lovrabet/SKILL.md','3742648mwXzou','.windsurf','.opencode/skills/lovrabet/SKILL.md','codex','Claude\x20Code','Windsurf\x20IDE','Antigravity','2396050ByELdz','其他\x20(通用模板)'];a279_0x1f45=function(){return _0x1b5e6e;};return a279_0x1f45();}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a279_0x5cb231(0x173),'description':a279_0x5cb231(0x14f),'folders':[a279_0x5cb231(0x167)],'files':[{'type':a279_0x5cb231(0x179),'path':'.agent/skills/lovrabet/SKILL.md','template':a279_0x5cb231(0x163)}]},'antigravity':{'name':a279_0x5cb231(0x171),'description':a279_0x5cb231(0x15d),'folders':[a279_0x5cb231(0x167)],'files':[{'type':a279_0x5cb231(0x179),'path':a279_0x5cb231(0x153),'template':'SKILL.md.tpl'}]}};function a279_0x58a0(_0x11b0d7,_0x243b3e){_0x11b0d7=_0x11b0d7-0x14d;const _0x1f4560=a279_0x1f45();let _0x58a07f=_0x1f4560[_0x11b0d7];return _0x58a07f;}export const CORE_IDE_LIST=[a279_0x5cb231(0x181),a279_0x5cb231(0x164),a279_0x5cb231(0x152),a279_0x5cb231(0x16e),'cursor',a279_0x5cb231(0x182),a279_0x5cb231(0x17b),a279_0x5cb231(0x157),a279_0x5cb231(0x174)];export const IDE_LIST=[a279_0x5cb231(0x151),a279_0x5cb231(0x181),a279_0x5cb231(0x164),'codebuddy',a279_0x5cb231(0x16e),a279_0x5cb231(0x15e),a279_0x5cb231(0x182),'qoder',a279_0x5cb231(0x157),a279_0x5cb231(0x174),a279_0x5cb231(0x17d)];export const ALL_CORE_IDES=[a279_0x5cb231(0x15e),a279_0x5cb231(0x174),a279_0x5cb231(0x181),a279_0x5cb231(0x164),a279_0x5cb231(0x16e),a279_0x5cb231(0x182),a279_0x5cb231(0x17b),a279_0x5cb231(0x152),'trae'];