@lovrabet/rabetbase-cli 2.4.7 → 2.5.0-beta.2

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 (365) 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.d.ts +13 -3
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.d.ts +7 -0
  6. package/lib/api/generate-sdk-config-file.js +1 -0
  7. package/lib/auth/auth-server-ui.js +1 -1
  8. package/lib/auth/auth-server.js +1 -1
  9. package/lib/auth/constant.js +1 -1
  10. package/lib/auth/get-cookie.js +1 -1
  11. package/lib/auth/get-session-user.js +1 -1
  12. package/lib/auth/is-session-valid.js +1 -1
  13. package/lib/auth/login-success-html.js +1 -1
  14. package/lib/auth/logout.js +1 -1
  15. package/lib/cli-flags.js +1 -1
  16. package/lib/cli.js +1 -1
  17. package/lib/commands/api/generate.js +1 -1
  18. package/lib/commands/api/index.js +1 -1
  19. package/lib/commands/api/list.js +1 -1
  20. package/lib/commands/api/pull.js +1 -1
  21. package/lib/commands/api/shared.js +1 -1
  22. package/lib/commands/app/index.js +1 -1
  23. package/lib/commands/app/list.js +1 -1
  24. package/lib/commands/app/members-list.js +1 -1
  25. package/lib/commands/app/remote-directory.js +1 -1
  26. package/lib/commands/app/shared.d.ts +2 -5
  27. package/lib/commands/app/shared.js +1 -1
  28. package/lib/commands/app-config/delete.js +1 -1
  29. package/lib/commands/app-config/get.js +1 -1
  30. package/lib/commands/app-config/index.js +1 -1
  31. package/lib/commands/app-config/list.js +1 -1
  32. package/lib/commands/app-config/set.js +1 -1
  33. package/lib/commands/app-config/shared.js +1 -1
  34. package/lib/commands/auth/index.js +1 -1
  35. package/lib/commands/bff/create.js +1 -1
  36. package/lib/commands/bff/delete.js +1 -1
  37. package/lib/commands/bff/detail.js +1 -1
  38. package/lib/commands/bff/index.js +1 -1
  39. package/lib/commands/bff/list.js +1 -1
  40. package/lib/commands/bff/pull.js +1 -1
  41. package/lib/commands/bff/push.js +1 -1
  42. package/lib/commands/bff/status.js +1 -1
  43. package/lib/commands/cli-skill/index.js +1 -1
  44. package/lib/commands/cli-update.js +1 -1
  45. package/lib/commands/codegen/index.js +1 -1
  46. package/lib/commands/codegen/sdk.js +1 -1
  47. package/lib/commands/codegen/sql.js +1 -1
  48. package/lib/commands/common/app-registry.js +1 -1
  49. package/lib/commands/common/app-selector.js +1 -1
  50. package/lib/commands/common/async-task.js +1 -1
  51. package/lib/commands/common/dry-run.js +1 -1
  52. package/lib/commands/common/flags.js +1 -1
  53. package/lib/commands/common/local-file.js +1 -1
  54. package/lib/commands/common/validate.js +1 -1
  55. package/lib/commands/config/delete.d.ts +5 -0
  56. package/lib/commands/config/delete.js +1 -0
  57. package/lib/commands/config/get.js +1 -1
  58. package/lib/commands/config/index.js +1 -1
  59. package/lib/commands/config/init.d.ts +12 -0
  60. package/lib/commands/config/init.js +1 -0
  61. package/lib/commands/config/list.js +1 -1
  62. package/lib/commands/config/set.js +1 -1
  63. package/lib/commands/config/shared.js +1 -1
  64. package/lib/commands/dataset/business-group-update.js +1 -1
  65. package/lib/commands/dataset/business-groups.js +1 -1
  66. package/lib/commands/dataset/capability.js +1 -1
  67. package/lib/commands/dataset/delete.js +1 -1
  68. package/lib/commands/dataset/detail.js +1 -1
  69. package/lib/commands/dataset/extend-update.js +1 -1
  70. package/lib/commands/dataset/field-update.js +1 -1
  71. package/lib/commands/dataset/generate.js +1 -1
  72. package/lib/commands/dataset/index.js +1 -1
  73. package/lib/commands/dataset/list.js +1 -1
  74. package/lib/commands/dataset/operations.js +1 -1
  75. package/lib/commands/dataset/relation-audit.js +1 -1
  76. package/lib/commands/dataset/relation-create.js +1 -1
  77. package/lib/commands/dataset/relation-delete.js +1 -1
  78. package/lib/commands/dataset/relation-shared.js +1 -1
  79. package/lib/commands/dataset/relation-update.js +1 -1
  80. package/lib/commands/dataset/relations.js +1 -1
  81. package/lib/commands/dataset/rename.js +1 -1
  82. package/lib/commands/dataset/restore.js +1 -1
  83. package/lib/commands/db/analysis-batching.js +1 -1
  84. package/lib/commands/db/analyze-batch-plan.js +1 -1
  85. package/lib/commands/db/analyze-cancel.js +1 -1
  86. package/lib/commands/db/analyze-start.js +1 -1
  87. package/lib/commands/db/analyze-status.js +1 -1
  88. package/lib/commands/db/create.js +1 -1
  89. package/lib/commands/db/delete.js +1 -1
  90. package/lib/commands/db/detail.js +1 -1
  91. package/lib/commands/db/diff-refresh-start.js +1 -1
  92. package/lib/commands/db/diff-refresh-status.js +1 -1
  93. package/lib/commands/db/diff.js +1 -1
  94. package/lib/commands/db/index.js +1 -1
  95. package/lib/commands/db/list.js +1 -1
  96. package/lib/commands/db/shared.js +1 -1
  97. package/lib/commands/db/tables.js +1 -1
  98. package/lib/commands/db/test.js +1 -1
  99. package/lib/commands/db/update.js +1 -1
  100. package/lib/commands/doctor.js +1 -1
  101. package/lib/commands/file/index.js +1 -1
  102. package/lib/commands/issue/index.js +1 -1
  103. package/lib/commands/issue/nudge.js +1 -1
  104. package/lib/commands/issue/report.js +1 -1
  105. package/lib/commands/issue/shared.js +1 -1
  106. package/lib/commands/kb/create.js +1 -1
  107. package/lib/commands/kb/delete.js +1 -1
  108. package/lib/commands/kb/detail.js +1 -1
  109. package/lib/commands/kb/index.js +1 -1
  110. package/lib/commands/kb/list.js +1 -1
  111. package/lib/commands/kb/search.js +1 -1
  112. package/lib/commands/kb/shared.js +1 -1
  113. package/lib/commands/kb/update.js +1 -1
  114. package/lib/commands/logs/index.js +1 -1
  115. package/lib/commands/menu/asset-update.js +1 -1
  116. package/lib/commands/menu/delete.js +1 -1
  117. package/lib/commands/menu/external-link-create.js +1 -1
  118. package/lib/commands/menu/external-link-update.js +1 -1
  119. package/lib/commands/menu/group-create.js +1 -1
  120. package/lib/commands/menu/group-update.js +1 -1
  121. package/lib/commands/menu/index.js +1 -1
  122. package/lib/commands/menu/list.js +1 -1
  123. package/lib/commands/menu/move.js +1 -1
  124. package/lib/commands/menu/regroup-start.js +1 -1
  125. package/lib/commands/menu/rename.js +1 -1
  126. package/lib/commands/menu/shared/compare-table.js +1 -1
  127. package/lib/commands/menu/shared/delete-plan.js +1 -1
  128. package/lib/commands/menu/shared/facts.js +1 -1
  129. package/lib/commands/menu/shared/index.js +1 -1
  130. package/lib/commands/menu/shared/inquirer.js +1 -1
  131. package/lib/commands/menu/shared/local-pages.js +1 -1
  132. package/lib/commands/menu/shared/logic.js +1 -1
  133. package/lib/commands/menu/shared/mutations.js +1 -1
  134. package/lib/commands/menu/shared/service.js +1 -1
  135. package/lib/commands/menu/shared/sync-core.js +1 -1
  136. package/lib/commands/menu/shared/update-core.js +1 -1
  137. package/lib/commands/menu/shared/valid-url.js +1 -1
  138. package/lib/commands/menu/sync.js +1 -1
  139. package/lib/commands/menu/visibility-update.js +1 -1
  140. package/lib/commands/notification/config-create.js +1 -1
  141. package/lib/commands/notification/config-delete.js +1 -1
  142. package/lib/commands/notification/config-list.js +1 -1
  143. package/lib/commands/notification/config-update.js +1 -1
  144. package/lib/commands/notification/index.js +1 -1
  145. package/lib/commands/notification/shared.js +1 -1
  146. package/lib/commands/ocr/index.js +1 -1
  147. package/lib/commands/page/create.js +1 -1
  148. package/lib/commands/page/custom/detail.js +1 -1
  149. package/lib/commands/page/custom/list.js +1 -1
  150. package/lib/commands/page/custom/publish.js +1 -1
  151. package/lib/commands/page/custom/shared.js +1 -1
  152. package/lib/commands/page/custom/syntax.js +1 -1
  153. package/lib/commands/page/custom/template.js +1 -1
  154. package/lib/commands/page/custom/update.js +1 -1
  155. package/lib/commands/page/data-list-status.js +1 -1
  156. package/lib/commands/page/generate-start.js +1 -1
  157. package/lib/commands/page/generate-status.js +1 -1
  158. package/lib/commands/page/index.js +1 -1
  159. package/lib/commands/page/pull.js +1 -1
  160. package/lib/commands/page/push.js +1 -1
  161. package/lib/commands/page/relation-audit.js +1 -1
  162. package/lib/commands/page/restore.js +1 -1
  163. package/lib/commands/page/shared.js +1 -1
  164. package/lib/commands/page/sync.js +1 -1
  165. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  166. package/lib/commands/project/create/format-elapsed.js +1 -1
  167. package/lib/commands/project/create/main.d.ts +1 -0
  168. package/lib/commands/project/create/main.js +1 -1
  169. package/lib/commands/project/create/materialize-project-template.d.ts +6 -2
  170. package/lib/commands/project/create/materialize-project-template.js +1 -1
  171. package/lib/commands/project/create/project-name.js +1 -1
  172. package/lib/commands/project/create/project-template-archive.js +1 -1
  173. package/lib/commands/project/create/project-template-path.js +1 -1
  174. package/lib/commands/project/create/use-copy-project-template.d.ts +1 -1
  175. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  176. package/lib/commands/project/create/use-format-code.js +1 -1
  177. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  178. package/lib/commands/project/index.js +1 -1
  179. package/lib/commands/project/upgrade.js +1 -1
  180. package/lib/commands/registry.d.ts +2 -2
  181. package/lib/commands/registry.js +1 -1
  182. package/lib/commands/role/delete.js +1 -1
  183. package/lib/commands/role/detail.js +1 -1
  184. package/lib/commands/role/index.js +1 -1
  185. package/lib/commands/role/list.js +1 -1
  186. package/lib/commands/role/shared.d.ts +1 -1
  187. package/lib/commands/role/shared.js +1 -1
  188. package/lib/commands/role/update.js +1 -1
  189. package/lib/commands/role/user-add.js +1 -1
  190. package/lib/commands/role/user-remove.js +1 -1
  191. package/lib/commands/role/user-resolve.js +1 -1
  192. package/lib/commands/run/index.js +1 -1
  193. package/lib/commands/schema.js +1 -1
  194. package/lib/commands/sql/create.js +1 -1
  195. package/lib/commands/sql/delete.js +1 -1
  196. package/lib/commands/sql/detail.js +1 -1
  197. package/lib/commands/sql/exec.js +1 -1
  198. package/lib/commands/sql/index.js +1 -1
  199. package/lib/commands/sql/list.js +1 -1
  200. package/lib/commands/sql/pull.js +1 -1
  201. package/lib/commands/sql/push.js +1 -1
  202. package/lib/commands/sql/shared.js +1 -1
  203. package/lib/commands/sql/status.js +1 -1
  204. package/lib/commands/sql/validate.js +1 -1
  205. package/lib/commands/task/index.js +1 -1
  206. package/lib/commands/task/status.js +1 -1
  207. package/lib/commands/tenant/index.js +1 -1
  208. package/lib/commands/tenant/members-list.js +1 -1
  209. package/lib/commands/tenant/shared.js +1 -1
  210. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  211. package/lib/commands/user-account/index.js +1 -1
  212. package/lib/commands/workspace/add.js +1 -1
  213. package/lib/commands/workspace/index.js +1 -1
  214. package/lib/commands/workspace/remove.js +1 -1
  215. package/lib/config/domain-config.d.ts +10 -0
  216. package/lib/config/domain-config.js +1 -0
  217. package/lib/config/schema.d.ts +3 -1
  218. package/lib/config/schema.js +1 -1
  219. package/lib/constant/cdn.js +1 -1
  220. package/lib/constant/cli.js +1 -1
  221. package/lib/constant/defaults.js +1 -1
  222. package/lib/constant/domain.d.ts +23 -1
  223. package/lib/constant/domain.js +1 -1
  224. package/lib/constant/env.js +1 -1
  225. package/lib/constant/output.js +1 -1
  226. package/lib/constant/paths.js +1 -1
  227. package/lib/constant/region.d.ts +9 -0
  228. package/lib/constant/region.js +1 -0
  229. package/lib/constant/risk.js +1 -1
  230. package/lib/context/app-resolver.js +1 -1
  231. package/lib/context/auth-resolver.js +1 -1
  232. package/lib/context/config-loader.d.ts +4 -6
  233. package/lib/context/config-loader.js +1 -1
  234. package/lib/context.d.ts +2 -2
  235. package/lib/context.js +1 -1
  236. package/lib/core/alias-resolver.js +1 -1
  237. package/lib/core/api-client.d.ts +2 -0
  238. package/lib/core/api-client.js +1 -1
  239. package/lib/core/bff/config.js +1 -1
  240. package/lib/core/bff/file-system.js +1 -1
  241. package/lib/core/bff/hash.js +1 -1
  242. package/lib/core/bff/lock.js +1 -1
  243. package/lib/core/bff/utils.js +1 -1
  244. package/lib/core/db-resolver.js +1 -1
  245. package/lib/core/page/file-system.js +1 -1
  246. package/lib/core/page/hash.js +1 -1
  247. package/lib/core/page/lock.js +1 -1
  248. package/lib/core/sql-index-auditor.js +1 -1
  249. package/lib/core/sql-sync/config.js +1 -1
  250. package/lib/core/sql-sync/file-system.js +1 -1
  251. package/lib/core/sql-sync/hash.js +1 -1
  252. package/lib/core/sql-sync/lock.js +1 -1
  253. package/lib/core/sql-sync/utils.js +1 -1
  254. package/lib/core/sql-validator.js +1 -1
  255. package/lib/errors.d.ts +11 -1
  256. package/lib/errors.js +1 -1
  257. package/lib/framework/build-all-flags.js +1 -1
  258. package/lib/framework/error-output.js +1 -1
  259. package/lib/framework/explicit-yes.js +1 -1
  260. package/lib/framework/flags.js +1 -1
  261. package/lib/framework/help.d.ts +2 -2
  262. package/lib/framework/help.js +1 -1
  263. package/lib/framework/index.js +1 -1
  264. package/lib/framework/output.js +1 -1
  265. package/lib/framework/response.js +1 -1
  266. package/lib/framework/runner-alias.js +1 -1
  267. package/lib/framework/runner.js +1 -1
  268. package/lib/framework/schema-export.js +1 -1
  269. package/lib/framework/types.js +1 -1
  270. package/lib/generated/build-info.d.ts +4 -4
  271. package/lib/generated/build-info.js +1 -1
  272. package/lib/help.js +1 -1
  273. package/lib/postinstall.js +1 -1
  274. package/lib/runtime/confirmation.js +1 -1
  275. package/lib/runtime/event.js +1 -1
  276. package/lib/runtime/index.js +1 -1
  277. package/lib/runtime/queue.js +1 -1
  278. package/lib/runtime/resolve.js +1 -1
  279. package/lib/skills/builtin-skill.js +1 -1
  280. package/lib/skills/main.js +1 -1
  281. package/lib/skills/npx-skills-add.js +1 -1
  282. package/lib/skills/skill-presence.js +1 -1
  283. package/lib/telemetry/cli-command-trace.js +1 -1
  284. package/lib/telemetry/cli-help-trace.js +1 -1
  285. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  286. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  287. package/lib/telemetry/send-cli-trace-log.js +1 -1
  288. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  289. package/lib/types/index.d.ts +28 -0
  290. package/lib/utils/ai_config.d.ts +1 -2
  291. package/lib/utils/ai_config.js +1 -1
  292. package/lib/utils/apply-jq-filter.js +1 -1
  293. package/lib/utils/cdn-config.js +1 -1
  294. package/lib/utils/check-sdk-version.js +1 -1
  295. package/lib/utils/cli-version-check.js +1 -1
  296. package/lib/utils/cli-version-policy.js +1 -1
  297. package/lib/utils/config.js +1 -1
  298. package/lib/utils/entity-with-id.js +1 -1
  299. package/lib/utils/file-utils.js +1 -1
  300. package/lib/utils/guides-cdn.js +1 -1
  301. package/lib/utils/http-client.js +1 -1
  302. package/lib/utils/is-non-interactive.js +1 -1
  303. package/lib/utils/logger.js +1 -1
  304. package/lib/utils/params.js +1 -1
  305. package/lib/utils/platform.js +1 -1
  306. package/lib/utils/sleep.js +1 -1
  307. package/lib/utils/template-replacer.js +1 -1
  308. package/lib/utils/update-notice.js +1 -1
  309. package/lib/utils/version.js +1 -1
  310. package/lib/utils/with-active-cookie.js +1 -1
  311. package/lib/utils/write-cli-side-channel.js +1 -1
  312. package/package.json +1 -3
  313. package/skills/rabetbase/SKILL.md +33 -28
  314. package/skills/rabetbase/guides/backend-function.md +41 -12
  315. package/skills/rabetbase/guides/bff-creation-workflow.md +6 -4
  316. package/skills/rabetbase/guides/custom-page-workflow.md +1 -1
  317. package/skills/rabetbase/guides/data-api-guidelines.md +8 -8
  318. package/skills/rabetbase/guides/database-connection-workflow.md +8 -16
  319. package/skills/rabetbase/guides/menu-anomaly-manual-cleanup.md +1 -6
  320. package/skills/rabetbase/guides/sdk-client-generation.md +146 -0
  321. package/skills/rabetbase/guides/sql-creation-workflow.md +1 -1
  322. package/skills/rabetbase/guides/troubleshooting.md +1 -1
  323. package/skills/rabetbase/guides/typescript-sdk.md +46 -10
  324. package/skills/rabetbase/references/rabetbase-api-list.md +4 -4
  325. package/skills/rabetbase/references/rabetbase-api-pull.md +44 -29
  326. package/skills/rabetbase/references/rabetbase-app-list.md +2 -2
  327. package/skills/rabetbase/references/rabetbase-auth-login.md +4 -2
  328. package/skills/rabetbase/references/rabetbase-bff-push.md +3 -1
  329. package/skills/rabetbase/references/rabetbase-codegen-sql.md +3 -1
  330. package/skills/rabetbase/references/rabetbase-config.md +75 -30
  331. package/skills/rabetbase/references/rabetbase-dataset-business-group-update.md +17 -6
  332. package/skills/rabetbase/references/rabetbase-dataset-detail.md +1 -1
  333. package/skills/rabetbase/references/rabetbase-db-analyze.md +3 -3
  334. package/skills/rabetbase/references/rabetbase-db-detail.md +2 -2
  335. package/skills/rabetbase/references/rabetbase-db-diff-refresh.md +4 -4
  336. package/skills/rabetbase/references/rabetbase-db-diff.md +6 -9
  337. package/skills/rabetbase/references/rabetbase-doctor.md +1 -1
  338. package/skills/rabetbase/references/rabetbase-init.md +57 -51
  339. package/skills/rabetbase/references/rabetbase-kb.md +2 -0
  340. package/skills/rabetbase/references/rabetbase-page-create.md +1 -1
  341. package/skills/rabetbase/references/rabetbase-page-custom-detail.md +3 -3
  342. package/skills/rabetbase/references/rabetbase-page-custom-list.md +2 -2
  343. package/skills/rabetbase/references/rabetbase-project-create.md +12 -3
  344. package/skills/rabetbase/references/rabetbase-project-upgrade.md +2 -2
  345. package/skills/rabetbase/references/rabetbase-role-user-resolve.md +2 -2
  346. package/skills/rabetbase/references/rabetbase-user-account.md +1 -1
  347. package/skills/rabetbase/references/rabetbase-workspace.md +6 -6
  348. package/skills/rabetbase.manifest.json +4 -3
  349. package/templates/README.md +17 -28
  350. package/templates/generate-api/api.ts.tpl +3 -3
  351. package/templates/generate-api/client.ts.tpl +10 -37
  352. package/lib/commands/data/filter.d.ts +0 -7
  353. package/lib/commands/data/filter.js +0 -1
  354. package/lib/commands/data/getOne.d.ts +0 -7
  355. package/lib/commands/data/getOne.js +0 -1
  356. package/lib/commands/data/index.d.ts +0 -8
  357. package/lib/commands/data/index.js +0 -1
  358. package/lib/commands/data/shared.d.ts +0 -33
  359. package/lib/commands/data/shared.js +0 -1
  360. package/lib/commands/init/index.d.ts +0 -11
  361. package/lib/commands/init/index.js +0 -1
  362. package/lib/utils/rules-cdn.d.ts +0 -38
  363. package/lib/utils/rules-cdn.js +0 -1
  364. package/templates/rules/lovrabet_rules.mdc.tpl +0 -893
  365. package/templates/skill/SKILL.md.tpl +0 -120
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a241_0x4be476=a241_0x22a5;(function(_0x1547c7,_0x16a60c){const _0x311577=a241_0x22a5,_0x3b51db=_0x1547c7();while(!![]){try{const _0x432c05=-parseInt(_0x311577(0x1ef))/0x1*(-parseInt(_0x311577(0x1eb))/0x2)+-parseInt(_0x311577(0x1ed))/0x3+-parseInt(_0x311577(0x1f7))/0x4*(parseInt(_0x311577(0x1f6))/0x5)+parseInt(_0x311577(0x1f4))/0x6+-parseInt(_0x311577(0x1ee))/0x7+-parseInt(_0x311577(0x1ea))/0x8*(-parseInt(_0x311577(0x1f0))/0x9)+-parseInt(_0x311577(0x1f8))/0xa*(-parseInt(_0x311577(0x1ec))/0xb);if(_0x432c05===_0x16a60c)break;else _0x3b51db['push'](_0x3b51db['shift']());}catch(_0x4270d1){_0x3b51db['push'](_0x3b51db['shift']());}}}(a241_0x2c2f,0x8d34c));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a241_0x2c2f(){const _0x293bc8=['\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','1172590xgUqPZ','4LsaTuX','530qBwapG','\x20auth`\x20to\x20login\x20first.','join','Set\x20appcode\x20via\x20`','8BwxAYR','27946IndEAH','803VFdwZR','2006961STCxgu','1259678VLycIN','61HTMFBY','2107683VtNlXV','Run\x20`','\x0a\x20\x20\x20\x20\x20\x20\x20','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','3428580Eyuczb'];a241_0x2c2f=function(){return _0x293bc8;};return a241_0x2c2f();}function a241_0x22a5(_0x50d085,_0x4bb4d2){_0x50d085=_0x50d085-0x1ea;const _0x2c2f3f=a241_0x2c2f();let _0x22a59b=_0x2c2f3f[_0x50d085];return _0x22a59b;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a241_0x4be476(0x1f1)+CLI_BIN_NAME+a241_0x4be476(0x1f9),'configMissingHint':[a241_0x4be476(0x1fb)+CLI_BIN_NAME+a241_0x4be476(0x1f5),'Tip:\x20`'+CLI_BIN_NAME+a241_0x4be476(0x1f3)][a241_0x4be476(0x1fa)](a241_0x4be476(0x1f2)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
1
+ const a241_0x465abb=a241_0x3af2;(function(_0x33f0dd,_0x187369){const _0x475730=a241_0x3af2,_0x54c5ed=_0x33f0dd();while(!![]){try{const _0x2fde5a=parseInt(_0x475730(0xd6))/0x1*(parseInt(_0x475730(0xec))/0x2)+-parseInt(_0x475730(0xea))/0x3*(parseInt(_0x475730(0xe9))/0x4)+parseInt(_0x475730(0xe3))/0x5+parseInt(_0x475730(0xe1))/0x6+parseInt(_0x475730(0xe6))/0x7*(parseInt(_0x475730(0xda))/0x8)+-parseInt(_0x475730(0xe5))/0x9+parseInt(_0x475730(0xdd))/0xa*(-parseInt(_0x475730(0xd4))/0xb);if(_0x2fde5a===_0x187369)break;else _0x54c5ed['push'](_0x54c5ed['shift']());}catch(_0x64c8e){_0x54c5ed['push'](_0x54c5ed['shift']());}}}(a241_0x256f,0xd97ba));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a241_0x256f(){const _0x5be927=['11BXvaym','Set\x20appcode\x20via\x20`','961cqsPxr','Missing\x20required\x20flag:\x20--','\x20--help`\x20to\x20see\x20available\x20commands.','Authentication\x20required','832176AkNSnX','\x20auth`\x20to\x20login\x20first.','\x20workspace\x20add\x20<name>\x20--appcode\x20<code>\x20--global`\x20registers\x20a\x20reusable\x20global\x20app\x20profile.','27001710IZaYBp','network_error','auth_required','Configuration\x20file\x20not\x20found','9713328bdOcrV','Operation\x20cancelled.','5496630MeszwV','apiError','441126hkqDvS','119CdMPQz','Run\x20`','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','6407756xvfsmD','3GqCSEi','flag_missing','1572MBQiUV','cancelled'];a241_0x256f=function(){return _0x5be927;};return a241_0x256f();}import{CLI_BIN_NAME}from'./constant/cli.js';function a241_0x3af2(_0x52a370,_0x3d7ef2){_0x52a370=_0x52a370-0xd4;const _0x256f76=a241_0x256f();let _0x3af220=_0x256f76[_0x52a370];return _0x3af220;}export{CliError};const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a241_0x465abb(0xe7)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':a241_0x465abb(0xd5)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.\x0a\x20\x20\x20\x20\x20\x20\x20Tip:\x20`'+CLI_BIN_NAME+a241_0x465abb(0xdc),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});export const CliErrors={'authRequired'(_0x552392){const _0x44986d=a241_0x465abb;return new CliError(_0x44986d(0xdf),0x1,_0x44986d(0xd9),_0x552392??'Run\x20`'+CLI_BIN_NAME+_0x44986d(0xdb));},'configMissing'(_0x4cfb4f){const _0x311155=a241_0x465abb;return new CliError('config_missing',0x1,_0x311155(0xe0),_0x4cfb4f??_0x311155(0xd5)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.\x0a\x20\x20\x20\x20\x20\x20\x20Tip:\x20`'+CLI_BIN_NAME+'\x20workspace\x20add\x20<name>\x20--appcode\x20<code>\x20--global`\x20registers\x20a\x20reusable\x20global\x20app\x20profile.');},'notInProject'(){const _0x5242a9=a241_0x465abb;return new CliError('not_in_project',0x1,'Not\x20in\x20a\x20'+CLI_BIN_NAME+'\x20project\x20directory',_0x5242a9(0xe8));},'apiError'(_0x302746,_0xd692c4){const _0x4d8b9f=a241_0x465abb;return baseCliErrors[_0x4d8b9f(0xe4)](_0x302746,_0xd692c4);},'networkError'(_0x12afd6){const _0xc4712=a241_0x465abb;return new CliError(_0xc4712(0xde),0x2,'Network\x20error:\x20'+_0x12afd6,'Check\x20your\x20internet\x20connection\x20and\x20try\x20again.');},'unknownCommand'(_0x48d02b){const _0x10318c=a241_0x465abb;return new CliError('unknown_command',0x1,'Unknown\x20command:\x20'+_0x48d02b,'Run\x20`'+CLI_BIN_NAME+_0x10318c(0xd8));},'flagMissing'(_0x2ff1b0,_0x12fc29){const _0x44e40b=a241_0x465abb;return new CliError(_0x44e40b(0xeb),0x1,_0x44e40b(0xd7)+_0x2ff1b0,_0x12fc29);},'validation'(_0x400d48,_0x2c7fbf){return baseCliErrors['validation'](_0x400d48,_0x2c7fbf);},'cancelled'(_0x1783e4){const _0xe5f646=a241_0x465abb;return new CliError(_0xe5f646(0xed),0x0,_0x1783e4??_0xe5f646(0xe2));}};
@@ -1 +1 @@
1
- (function(_0x5d4b4d,_0x181984){const _0x339ed7=a242_0x2878,_0x40a943=_0x5d4b4d();while(!![]){try{const _0x4ca1c7=-parseInt(_0x339ed7(0xa2))/0x1+-parseInt(_0x339ed7(0x9c))/0x2*(parseInt(_0x339ed7(0x9d))/0x3)+-parseInt(_0x339ed7(0xa4))/0x4+-parseInt(_0x339ed7(0xa1))/0x5+parseInt(_0x339ed7(0xa5))/0x6+parseInt(_0x339ed7(0xa3))/0x7+parseInt(_0x339ed7(0xa6))/0x8;if(_0x4ca1c7===_0x181984)break;else _0x40a943['push'](_0x40a943['shift']());}catch(_0x6f25df){_0x40a943['push'](_0x40a943['shift']());}}}(a242_0x358f,0x34c01));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a242_0x48fcc2}from'@lovrabet/cli-framework';function a242_0x358f(){const _0x2a1c43=['3634816QKiFsG','123402vqAcuY','12XMgPgO','name','yes','map','1184990bSzSyN','164439IrsATW','1381786dldeCk','199196nIRrdK','1574130sSBaIA'];a242_0x358f=function(){return _0x2a1c43;};return a242_0x358f();}function a242_0x2878(_0x15f8c0,_0x1efe36){_0x15f8c0=_0x15f8c0-0x9c;const _0x358fff=a242_0x358f();let _0x287898=_0x358fff[_0x15f8c0];return _0x287898;}import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0x1cc0df){const _0x45a2f1=a242_0x2878,_0x5d366f=a242_0x48fcc2(_0x1cc0df,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x1cc0df))return _0x5d366f;return _0x5d366f[_0x45a2f1(0xa0)](_0x170324=>_0x170324[_0x45a2f1(0x9e)]===_0x45a2f1(0x9f)?{..._0x170324,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x170324);}
1
+ function a242_0x4acc(_0x25f563,_0x329a51){_0x25f563=_0x25f563-0x1b0;const _0x35163f=a242_0x3516();let _0x4acca9=_0x35163f[_0x25f563];return _0x4acca9;}(function(_0x35f59d,_0xf18fa){const _0x7f7159=a242_0x4acc,_0x4b838e=_0x35f59d();while(!![]){try{const _0x109b19=-parseInt(_0x7f7159(0x1b0))/0x1+-parseInt(_0x7f7159(0x1bc))/0x2*(parseInt(_0x7f7159(0x1b1))/0x3)+parseInt(_0x7f7159(0x1b8))/0x4*(-parseInt(_0x7f7159(0x1bb))/0x5)+parseInt(_0x7f7159(0x1b7))/0x6*(parseInt(_0x7f7159(0x1b3))/0x7)+-parseInt(_0x7f7159(0x1b9))/0x8+parseInt(_0x7f7159(0x1b2))/0x9+parseInt(_0x7f7159(0x1b5))/0xa;if(_0x109b19===_0xf18fa)break;else _0x4b838e['push'](_0x4b838e['shift']());}catch(_0x3827b1){_0x4b838e['push'](_0x4b838e['shift']());}}}(a242_0x3516,0x45f02));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a242_0x59342a}from'@lovrabet/cli-framework';function a242_0x3516(){const _0x333e36=['yes','9787050FPZfbo','map','1307994bvjKAp','956IvxjzN','4456768rCVPWt','name','3555XsFmop','7170DgHOKt','238892SavciW','9CAcRJn','597906DCohPr','7YGHNVV'];a242_0x3516=function(){return _0x333e36;};return a242_0x3516();}import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0x36b857){const _0x496fe2=a242_0x4acc,_0x35af50=a242_0x59342a(_0x36b857,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x36b857))return _0x35af50;return _0x35af50[_0x496fe2(0x1b6)](_0x5f4ac3=>_0x5f4ac3[_0x496fe2(0x1ba)]===_0x496fe2(0x1b4)?{..._0x5f4ac3,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x5f4ac3);}
@@ -1 +1 @@
1
- (function(_0x4556f2,_0x15f99a){var _0x367861=a243_0x27fc,_0x361423=_0x4556f2();while(!![]){try{var _0x420b07=parseInt(_0x367861(0xb2))/0x1+-parseInt(_0x367861(0xb6))/0x2+-parseInt(_0x367861(0xb5))/0x3*(-parseInt(_0x367861(0xb8))/0x4)+parseInt(_0x367861(0xba))/0x5+-parseInt(_0x367861(0xb1))/0x6+-parseInt(_0x367861(0xb9))/0x7+-parseInt(_0x367861(0xb7))/0x8*(-parseInt(_0x367861(0xb4))/0x9);if(_0x420b07===_0x15f99a)break;else _0x361423['push'](_0x361423['shift']());}catch(_0xab18e){_0x361423['push'](_0x361423['shift']());}}}(a243_0x55d6,0x76aa7));function a243_0x27fc(_0x316d74,_0x5acc0f){_0x316d74=_0x316d74-0xaf;var _0x55d6d7=a243_0x55d6();var _0x27fc58=_0x55d6d7[_0x316d74];return _0x27fc58;}import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x3c2915){var _0x5bea28=a243_0x27fc;return _0x3c2915?.[_0x5bea28(0xbb)]===!![];}export function resolveErrorOutputFormat(_0xc2d261){var _0x8939a8=a243_0x27fc;if(!_0xc2d261['def'])return _0xc2d261[_0x8939a8(0xb3)]??'compress';return resolveOutputConfig({'flags':_0xc2d261[_0x8939a8(0xaf)]??{},'def':_0xc2d261[_0x8939a8(0xb0)],'configDefault':_0xc2d261['defaultFormat']})['format'];}function a243_0x55d6(){var _0x218f7a=['8715213RHmJsp','116916BDeokP','1129944BMZscT','8OoQYCV','16VQUtUI','2868131TERSDi','3523925iTmvlv','structuredErrors','flags','def','5676516lRgiDD','577816JzfTvm','defaultFormat'];a243_0x55d6=function(){return _0x218f7a;};return a243_0x55d6();}
1
+ (function(_0x4ea265,_0x3b548a){var _0x1f065f=a243_0x5ae4,_0x260b07=_0x4ea265();while(!![]){try{var _0xe3f52c=parseInt(_0x1f065f(0xc0))/0x1*(parseInt(_0x1f065f(0xba))/0x2)+parseInt(_0x1f065f(0xbe))/0x3+parseInt(_0x1f065f(0xc1))/0x4+-parseInt(_0x1f065f(0xbc))/0x5+-parseInt(_0x1f065f(0xb9))/0x6*(parseInt(_0x1f065f(0xb7))/0x7)+parseInt(_0x1f065f(0xc2))/0x8+-parseInt(_0x1f065f(0xb5))/0x9*(parseInt(_0x1f065f(0xbf))/0xa);if(_0xe3f52c===_0x3b548a)break;else _0x260b07['push'](_0x260b07['shift']());}catch(_0x1529af){_0x260b07['push'](_0x260b07['shift']());}}}(a243_0x1e87,0xf1ba1));function a243_0x1e87(){var _0x5b6024=['1709680rrYHCQ','compress','def','45cCRfuv','defaultFormat','1453739JPxvKk','structuredErrors','6ypPpvG','514pknZOG','flags','4561130tooBgp','format','1986030ujpERF','2184790TJVmKD','3598gksruT','5608020MGtqNs'];a243_0x1e87=function(){return _0x5b6024;};return a243_0x1e87();}function a243_0x5ae4(_0x364dc1,_0x5c5328){_0x364dc1=_0x364dc1-0xb4;var _0x1e8751=a243_0x1e87();var _0x5ae464=_0x1e8751[_0x364dc1];return _0x5ae464;}import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x1dc82b){var _0x141e55=a243_0x5ae4;return _0x1dc82b?.[_0x141e55(0xb8)]===!![];}export function resolveErrorOutputFormat(_0x8ecf58){var _0x10422d=a243_0x5ae4;if(!_0x8ecf58[_0x10422d(0xb4)])return _0x8ecf58[_0x10422d(0xb6)]??_0x10422d(0xc3);return resolveOutputConfig({'flags':_0x8ecf58[_0x10422d(0xbb)]??{},'def':_0x8ecf58['def'],'configDefault':_0x8ecf58['defaultFormat']})[_0x10422d(0xbd)];}
@@ -1 +1 @@
1
- const a244_0x343c85=a244_0x3d99;(function(_0x4b733f,_0x1ca24b){const _0x41d865=a244_0x3d99,_0x2b5ec7=_0x4b733f();while(!![]){try{const _0x460019=-parseInt(_0x41d865(0x145))/0x1*(-parseInt(_0x41d865(0x140))/0x2)+parseInt(_0x41d865(0x14e))/0x3*(parseInt(_0x41d865(0x149))/0x4)+parseInt(_0x41d865(0x146))/0x5*(-parseInt(_0x41d865(0x148))/0x6)+parseInt(_0x41d865(0x13d))/0x7*(parseInt(_0x41d865(0x142))/0x8)+parseInt(_0x41d865(0x14a))/0x9*(-parseInt(_0x41d865(0x147))/0xa)+parseInt(_0x41d865(0x13e))/0xb*(parseInt(_0x41d865(0x14c))/0xc)+-parseInt(_0x41d865(0x14f))/0xd;if(_0x460019===_0x1ca24b)break;else _0x2b5ec7['push'](_0x2b5ec7['shift']());}catch(_0x1d3f0d){_0x2b5ec7['push'](_0x2b5ec7['shift']());}}}(a244_0x5504,0x62822));const EXPLICIT_YES_COMMANDS=new Set([a244_0x343c85(0x141),'kb\x20delete',a244_0x343c85(0x143),a244_0x343c85(0x144)]);export const EXPLICIT_YES_FLAG_DESCRIPTION='Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan';function a244_0x3d99(_0x1a9944,_0x1de047){_0x1a9944=_0x1a9944-0x13d;const _0x5504bf=a244_0x5504();let _0x3d9910=_0x5504bf[_0x1a9944];return _0x3d9910;}export function requiresExplicitYes(_0x363c0f){const _0x357255=a244_0x343c85;return EXPLICIT_YES_COMMANDS[_0x357255(0x13f)](_0x363c0f[_0x357255(0x14b)]+'\x20'+_0x363c0f[_0x357255(0x14d)]);}function a244_0x5504(){const _0xc30d50=['5SPRdWf','10dLrfuQ','235614mgutmS','1634776pELxQG','5636277LAHxJy','service','1770792BjmZkg','command','3hKnVBW','11554439oNvoJO','7cGOUNp','44WEGqCM','has','44bABhAT','menu\x20delete','6070312uMRzHk','notification\x20config-update','notification\x20config-delete','9094ILiXEn'];a244_0x5504=function(){return _0xc30d50;};return a244_0x5504();}
1
+ function a244_0x4d9b(_0x4ecdf8,_0x25725f){_0x4ecdf8=_0x4ecdf8-0x19c;const _0xb759c5=a244_0xb759();let _0x4d9b72=_0xb759c5[_0x4ecdf8];return _0x4d9b72;}const a244_0x596a04=a244_0x4d9b;(function(_0xed96c2,_0x2d9ff0){const _0xde4386=a244_0x4d9b,_0x2180c8=_0xed96c2();while(!![]){try{const _0x1f466c=-parseInt(_0xde4386(0x1ac))/0x1*(parseInt(_0xde4386(0x1aa))/0x2)+parseInt(_0xde4386(0x19d))/0x3*(parseInt(_0xde4386(0x1a2))/0x4)+parseInt(_0xde4386(0x19f))/0x5*(-parseInt(_0xde4386(0x1a7))/0x6)+parseInt(_0xde4386(0x1a4))/0x7+-parseInt(_0xde4386(0x1a8))/0x8*(-parseInt(_0xde4386(0x1a0))/0x9)+-parseInt(_0xde4386(0x1ab))/0xa+parseInt(_0xde4386(0x1a5))/0xb;if(_0x1f466c===_0x2d9ff0)break;else _0x2180c8['push'](_0x2180c8['shift']());}catch(_0x3a5d4f){_0x2180c8['push'](_0x2180c8['shift']());}}}(a244_0xb759,0xaad71));const EXPLICIT_YES_COMMANDS=new Set([a244_0x596a04(0x19e),a244_0x596a04(0x19c),'notification\x20config-update',a244_0x596a04(0x1a9)]);export const EXPLICIT_YES_FLAG_DESCRIPTION=a244_0x596a04(0x1a6);function a244_0xb759(){const _0x18c98e=['8030050JRWBEa','898438zdplVN','service','kb\x20delete','924582hHuNbi','menu\x20delete','35RHFKaZ','19962XYMwVT','has','4RIVnGl','command','3452148XDFyFN','20299411DqvUJB','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan','413898SDVfGU','856HLWsEb','notification\x20config-delete','2WTGUKB'];a244_0xb759=function(){return _0x18c98e;};return a244_0xb759();}export function requiresExplicitYes(_0x2532e2){const _0xdf5c6b=a244_0x596a04;return EXPLICIT_YES_COMMANDS[_0xdf5c6b(0x1a1)](_0x2532e2[_0xdf5c6b(0x1ad)]+'\x20'+_0x2532e2[_0xdf5c6b(0x1a3)]);}
@@ -1 +1 @@
1
- const a245_0x2f813d=a245_0x2adf;(function(_0x21f545,_0x3e9346){const _0x295bd9=a245_0x2adf,_0x351aab=_0x21f545();while(!![]){try{const _0x214d0b=parseInt(_0x295bd9(0x10b))/0x1+parseInt(_0x295bd9(0x10c))/0x2*(-parseInt(_0x295bd9(0x106))/0x3)+-parseInt(_0x295bd9(0x10e))/0x4+parseInt(_0x295bd9(0x107))/0x5*(parseInt(_0x295bd9(0x10a))/0x6)+parseInt(_0x295bd9(0x104))/0x7*(parseInt(_0x295bd9(0x10d))/0x8)+parseInt(_0x295bd9(0x105))/0x9*(parseInt(_0x295bd9(0x10f))/0xa)+parseInt(_0x295bd9(0x109))/0xb*(-parseInt(_0x295bd9(0x108))/0xc);if(_0x214d0b===_0x3e9346)break;else _0x351aab['push'](_0x351aab['shift']());}catch(_0x390622){_0x351aab['push'](_0x351aab['shift']());}}}(a245_0x3b7e,0x30f12));import{createFlagHelpers}from'@lovrabet/cli-framework';function a245_0x3b7e(){const _0xbeb030=['285424KODOiG','3505430ZBgHiV','parseFlags','40236QymYdS','9ZhSpyj','106947OWxcgm','20fVSORX','5802228pidsgX','11cKMCBZ','262506rTxwPF','247095cCOTDH','10ZbdDfu','224bcSyHf'];a245_0x3b7e=function(){return _0xbeb030;};return a245_0x3b7e();}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a245_0x2adf(_0x41333e,_0x52a879){_0x41333e=_0x41333e-0x103;const _0x3b7e30=a245_0x3b7e();let _0x2adf89=_0x3b7e30[_0x41333e];return _0x2adf89;}export const parseFlags=helpers[a245_0x2f813d(0x103)];export const validateFlags=helpers['validateFlags'];
1
+ const a245_0x4da517=a245_0x4358;(function(_0x31381e,_0x2b8427){const _0x4414ef=a245_0x4358,_0x4f516b=_0x31381e();while(!![]){try{const _0x343a87=-parseInt(_0x4414ef(0xa5))/0x1+parseInt(_0x4414ef(0xaf))/0x2+-parseInt(_0x4414ef(0xa7))/0x3*(parseInt(_0x4414ef(0xad))/0x4)+parseInt(_0x4414ef(0xa9))/0x5*(parseInt(_0x4414ef(0xab))/0x6)+parseInt(_0x4414ef(0xa8))/0x7*(-parseInt(_0x4414ef(0xa6))/0x8)+-parseInt(_0x4414ef(0xac))/0x9+parseInt(_0x4414ef(0xae))/0xa;if(_0x343a87===_0x2b8427)break;else _0x4f516b['push'](_0x4f516b['shift']());}catch(_0x2eca9b){_0x4f516b['push'](_0x4f516b['shift']());}}}(a245_0x69bd,0x917c2));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a245_0x4358(_0x103fab,_0x3a6b52){_0x103fab=_0x103fab-0xa5;const _0x69bda0=a245_0x69bd();let _0x43585f=_0x69bda0[_0x103fab];return _0x43585f;}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a245_0x4da517(0xaa)];function a245_0x69bd(){const _0x1db03e=['374932MJibRe','16451110rmPwBs','149820NYElsL','184289UBaYzv','592JAMOyI','6YfsTpx','89516waZCsw','1395XKHkLU','validateFlags','10314ugsoqz','2570841sipuiO'];a245_0x69bd=function(){return _0x1db03e;};return a245_0x69bd();}
@@ -1,4 +1,4 @@
1
1
  import type { CommandDefinition } from "../framework/types.js";
2
2
  export declare function generateCommandHelp(def: CommandDefinition): string;
3
- export declare const generateServiceHelp: (service: string) => string;
4
- export declare const generateFullHelp: () => string;
3
+ export declare function generateServiceHelp(service: string): string;
4
+ export declare function generateFullHelp(): string;
@@ -1 +1 @@
1
- const a246_0x18ef29=a246_0x19cb;(function(_0x5fe4e,_0x55700c){const _0x13c043=a246_0x19cb,_0x541330=_0x5fe4e();while(!![]){try{const _0xeab4d0=parseInt(_0x13c043(0xcb))/0x1*(parseInt(_0x13c043(0xc1))/0x2)+-parseInt(_0x13c043(0xc7))/0x3+parseInt(_0x13c043(0xcd))/0x4+-parseInt(_0x13c043(0xc2))/0x5*(parseInt(_0x13c043(0xbf))/0x6)+parseInt(_0x13c043(0xc3))/0x7*(-parseInt(_0x13c043(0xc4))/0x8)+parseInt(_0x13c043(0xce))/0x9*(-parseInt(_0x13c043(0xc5))/0xa)+-parseInt(_0x13c043(0xcf))/0xb*(-parseInt(_0x13c043(0xca))/0xc);if(_0xeab4d0===_0x55700c)break;else _0x541330['push'](_0x541330['shift']());}catch(_0x40af1b){_0x541330['push'](_0x541330['shift']());}}}(a246_0x351b,0xcfcfc));function a246_0x19cb(_0x1a7fd7,_0x101ffc){_0x1a7fd7=_0x1a7fd7-0xbe;const _0x351bc8=a246_0x351b();let _0x19cb81=_0x351bc8[_0x1a7fd7];return _0x19cb81;}function a246_0x351b(){const _0xb3c5b8=['1481592WPZjFK','225AcBvgV','28315639NhANsC','Requires\x20appcode\x20(set\x20via\x20`','generateCommandHelp','\x20workspace\x20init`\x20or\x20--appcode).','\x20[args]\x20[flags]','generateServiceHelp','12AhSrPH','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.','4ydhhNJ','144455RCqXQu','5351024zIqwTV','16ydSBKI','534500zXHmjg','get','1725675iaynJF','generateFullHelp','replace','12SwXAlj','702385TQRSzG','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.'];a246_0x351b=function(){return _0xb3c5b8;};return a246_0x351b();}import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{requiresExplicitYes}from'../framework/explicit-yes.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x466c84=>serviceGroups[a246_0x18ef29(0xc6)](_0x466c84),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a246_0x18ef29(0xd0)+CLI_BIN_NAME+a246_0x18ef29(0xd2),'serviceUsageSuffix':a246_0x18ef29(0xd3)});export function generateCommandHelp(_0x2e6d15){const _0x4eaa8b=a246_0x18ef29,_0x5b7441=generators[_0x4eaa8b(0xd1)](_0x2e6d15);if(!requiresExplicitYes(_0x2e6d15))return _0x5b7441;return _0x5b7441[_0x4eaa8b(0xc9)](_0x4eaa8b(0xcc),_0x4eaa8b(0xc0));}export const generateServiceHelp=generators[a246_0x18ef29(0xbe)];export const generateFullHelp=generators[a246_0x18ef29(0xc8)];
1
+ (function(_0x5470de,_0x537c07){const _0x21c4d5=a246_0x3359,_0xfcb11a=_0x5470de();while(!![]){try{const _0x3a10c2=-parseInt(_0x21c4d5(0xbc))/0x1+-parseInt(_0x21c4d5(0xb7))/0x2+parseInt(_0x21c4d5(0xb8))/0x3*(-parseInt(_0x21c4d5(0xb5))/0x4)+-parseInt(_0x21c4d5(0xba))/0x5*(-parseInt(_0x21c4d5(0xb0))/0x6)+parseInt(_0x21c4d5(0xb4))/0x7+-parseInt(_0x21c4d5(0xad))/0x8*(-parseInt(_0x21c4d5(0xb6))/0x9)+parseInt(_0x21c4d5(0xb2))/0xa;if(_0x3a10c2===_0x537c07)break;else _0xfcb11a['push'](_0xfcb11a['shift']());}catch(_0xc89a5c){_0xfcb11a['push'](_0xfcb11a['shift']());}}}(a246_0x3293,0x47d6c));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a246_0x3359(_0x4f0848,_0x272c5a){_0x4f0848=_0x4f0848-0xad;const _0x3293c6=a246_0x3293();let _0x335959=_0x3293c6[_0x4f0848];return _0x335959;}import{requiresExplicitYes}from'../framework/explicit-yes.js';function createGenerators(){const _0x1c4bfa=a246_0x3359;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x2e25f0=>serviceGroups['get'](_0x2e25f0),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+'\x20workspace\x20init`\x20or\x20--appcode).','serviceUsageSuffix':_0x1c4bfa(0xbb)});}export function generateCommandHelp(_0x4b8a3a){const _0x3cf8bf=a246_0x3359,_0x5d037a=createGenerators()['generateCommandHelp'](_0x4b8a3a);if(!requiresExplicitYes(_0x4b8a3a))return _0x5d037a;return _0x5d037a[_0x3cf8bf(0xb3)](_0x3cf8bf(0xb1),_0x3cf8bf(0xaf));}function a246_0x3293(){const _0x5a5782=['8ckqJjY','213831KxcsMR','1060852rcxMNL','520824ieHBlu','generateServiceHelp','29355qesAHe','\x20[args]\x20[flags]','173219NZgbDs','56rnjFui','generateFullHelp','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.','270nIffRp','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','5418540iKiNWp','replace','2609257SpUsqs'];a246_0x3293=function(){return _0x5a5782;};return a246_0x3293();}export function generateServiceHelp(_0x1c55bb){const _0x1e2d7b=a246_0x3359;return createGenerators()[_0x1e2d7b(0xb9)](_0x1c55bb);}export function generateFullHelp(){const _0x2f04ce=a246_0x3359;return createGenerators()[_0x2f04ce(0xae)]();}
@@ -1 +1 @@
1
- (function(_0x291498,_0x1556a6){var _0x38e859=a247_0x7e37,_0x1e25a9=_0x291498();while(!![]){try{var _0x272f25=-parseInt(_0x38e859(0xfa))/0x1*(-parseInt(_0x38e859(0xf6))/0x2)+-parseInt(_0x38e859(0xf2))/0x3*(-parseInt(_0x38e859(0xf1))/0x4)+parseInt(_0x38e859(0xf4))/0x5+parseInt(_0x38e859(0xf5))/0x6+-parseInt(_0x38e859(0xf8))/0x7*(parseInt(_0x38e859(0xf0))/0x8)+parseInt(_0x38e859(0xf3))/0x9*(parseInt(_0x38e859(0xf7))/0xa)+-parseInt(_0x38e859(0xf9))/0xb;if(_0x272f25===_0x1556a6)break;else _0x1e25a9['push'](_0x1e25a9['shift']());}catch(_0x2d95fd){_0x1e25a9['push'](_0x1e25a9['shift']());}}}(a247_0x1170,0x99ba6));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a247_0x7e37(_0x200376,_0x36dc3a){_0x200376=_0x200376-0xf0;var _0x11700f=a247_0x1170();var _0x7e37d3=_0x11700f[_0x200376];return _0x7e37d3;}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a247_0x1170(){var _0x3428a7=['7332304SMNJvE','4888096kLelBx','3lFzhex','1278jbhPRP','1333665tUCCJK','3105822jYyYQp','1292vkArsq','73220KsXEbx','7qodGrY','21736132EMAsTx','737AOfvKz'];a247_0x1170=function(){return _0x3428a7;};return a247_0x1170();}export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x4681d4,_0x22af3b){var _0x517bc6=a247_0x1ad5,_0xc1b17e=_0x4681d4();while(!![]){try{var _0x2a7caa=parseInt(_0x517bc6(0x1dd))/0x1*(-parseInt(_0x517bc6(0x1d6))/0x2)+parseInt(_0x517bc6(0x1df))/0x3+-parseInt(_0x517bc6(0x1d8))/0x4*(-parseInt(_0x517bc6(0x1d5))/0x5)+-parseInt(_0x517bc6(0x1da))/0x6*(-parseInt(_0x517bc6(0x1dc))/0x7)+parseInt(_0x517bc6(0x1de))/0x8+-parseInt(_0x517bc6(0x1d7))/0x9+parseInt(_0x517bc6(0x1db))/0xa*(parseInt(_0x517bc6(0x1d9))/0xb);if(_0x2a7caa===_0x22af3b)break;else _0xc1b17e['push'](_0xc1b17e['shift']());}catch(_0x57b0da){_0xc1b17e['push'](_0xc1b17e['shift']());}}}(a247_0x2db5,0x4f1c4));function a247_0x1ad5(_0x3a81ff,_0x36f7d8){_0x3a81ff=_0x3a81ff-0x1d5;var _0x2db552=a247_0x2db5();var _0x1ad559=_0x2db552[_0x3a81ff];return _0x1ad559;}export{runCommand}from'../framework/runner.js';function a247_0x2db5(){var _0x218b9e=['4914891WMOeeg','3532YZNCTX','11chtcNI','154086uahFPn','8738060RGMnfr','49rZUCmX','161555IQjSSQ','869824WXWVZf','185343mLxKQp','1655WkMgVJ','8bZKQmJ'];a247_0x2db5=function(){return _0x218b9e;};return a247_0x2db5();}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x1503fd,_0xdf7edc){const _0x7eba69=a248_0x3efe,_0x2571d7=_0x1503fd();while(!![]){try{const _0x151b61=parseInt(_0x7eba69(0x1c8))/0x1+-parseInt(_0x7eba69(0x1c3))/0x2*(-parseInt(_0x7eba69(0x1c4))/0x3)+parseInt(_0x7eba69(0x1be))/0x4+parseInt(_0x7eba69(0x1cd))/0x5*(-parseInt(_0x7eba69(0x1bc))/0x6)+-parseInt(_0x7eba69(0x1bb))/0x7+parseInt(_0x7eba69(0x1ca))/0x8*(parseInt(_0x7eba69(0x1c7))/0x9)+-parseInt(_0x7eba69(0x1c6))/0xa;if(_0x151b61===_0xdf7edc)break;else _0x2571d7['push'](_0x2571d7['shift']());}catch(_0x2f114b){_0x2571d7['push'](_0x2571d7['shift']());}}}(a248_0x1aa1,0xec0b4));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x29a767,_0x490cfd){const _0x2c241e=a248_0x3efe,_0x4a70d2=_0x29a767[_0x2c241e(0x1ba)],{_notice:_0x386553,..._0x585080}=_0x29a767;void _0x386553,baseFormatOutput(_0x585080,_0x490cfd),_0x490cfd[_0x2c241e(0x1c2)]===_0x2c241e(0x1c1)&&printPrettyNotice(_0x4a70d2);}export function formatCliError(_0x31bc5c,_0x34b6c8){const _0x10675a=a248_0x3efe;if(_0x34b6c8[_0x10675a(0x1c2)]===_0x10675a(0x1c1))return![];const _0x5e1aa1=_0x31bc5c[_0x10675a(0x1b8)],_0x13caf1={'ok':![],'command':_0x34b6c8[_0x10675a(0x1bd)],'risk':_0x34b6c8[_0x10675a(0x1ce)],'data':_0x5e1aa1??null,'error':{'code':_0x31bc5c[_0x10675a(0x1bf)],'message':_0x31bc5c[_0x10675a(0x1c9)],..._0x31bc5c[_0x10675a(0x1c5)]?{'hint':_0x31bc5c[_0x10675a(0x1c5)]}:{}}},_0xf32434=_0x34b6c8['format']==='json'?JSON[_0x10675a(0x1cc)](_0x13caf1,null,0x2):JSON[_0x10675a(0x1cc)](_0x13caf1);let _0x5c9081=_0xf32434;if(_0x34b6c8['jqFilter']?.['trim']())try{_0x5c9081=applyJqFilter(_0xf32434,_0x34b6c8['jqFilter']);}catch(_0x1f2bfd){const _0x11f63f=_0x1f2bfd instanceof CliError?_0x1f2bfd:CliErrors[_0x10675a(0x1b7)](_0x10675a(0x1b6)+(_0x1f2bfd instanceof Error?_0x1f2bfd[_0x10675a(0x1c9)]:String(_0x1f2bfd))),_0x45c8fc={..._0x13caf1,'error':{'code':_0x11f63f[_0x10675a(0x1bf)],'message':_0x11f63f['message'],..._0x11f63f[_0x10675a(0x1c5)]?{'hint':_0x11f63f[_0x10675a(0x1c5)]}:{},'cause':_0x13caf1[_0x10675a(0x1cb)]}};_0x5c9081=_0x34b6c8[_0x10675a(0x1c2)]==='json'?JSON['stringify'](_0x45c8fc,null,0x2):JSON[_0x10675a(0x1cc)](_0x45c8fc);}return process['stdout']['write'](_0x5c9081[_0x10675a(0x1c0)]('\x0a')?_0x5c9081:_0x5c9081+'\x0a'),!![];}function a248_0x1aa1(){const _0x5c543f=['jq:\x20','validation','data','update','_notice','5129789dZpEKl','2803044OtICAQ','command','7096388cVKOas','code','endsWith','pretty','format','2yplGqR','5263323RdGTSJ','hint','47820670hhBybG','17148303ZRJYOn','1514999jTVCqt','message','8GXlvfr','error','stringify','5jfJqKp','risk'];a248_0x1aa1=function(){return _0x5c543f;};return a248_0x1aa1();}function a248_0x3efe(_0x662834,_0x1cd6eb){_0x662834=_0x662834-0x1b6;const _0x1aa1d3=a248_0x1aa1();let _0x3efe82=_0x1aa1d3[_0x662834];return _0x3efe82;}function printPrettyNotice(_0x4d615f){const _0x5d001a=a248_0x3efe;if(!_0x4d615f?.['update'])return;console[_0x5d001a(0x1cb)](_0x4d615f[_0x5d001a(0x1b9)]['message']+'\x20('+_0x4d615f[_0x5d001a(0x1b9)]['url']+')');}
1
+ function a248_0x59d7(_0x3f19b3,_0x234ae3){_0x3f19b3=_0x3f19b3-0x1d1;const _0x2ff748=a248_0x2ff7();let _0x59d710=_0x2ff748[_0x3f19b3];return _0x59d710;}(function(_0x314f58,_0x3a5ffa){const _0x42f527=a248_0x59d7,_0x4f717d=_0x314f58();while(!![]){try{const _0x497c8c=parseInt(_0x42f527(0x1ef))/0x1+parseInt(_0x42f527(0x1e9))/0x2+-parseInt(_0x42f527(0x1dc))/0x3*(-parseInt(_0x42f527(0x1e6))/0x4)+-parseInt(_0x42f527(0x1ed))/0x5*(parseInt(_0x42f527(0x1e0))/0x6)+-parseInt(_0x42f527(0x1d7))/0x7*(-parseInt(_0x42f527(0x1eb))/0x8)+parseInt(_0x42f527(0x1d9))/0x9*(parseInt(_0x42f527(0x1df))/0xa)+-parseInt(_0x42f527(0x1d3))/0xb*(parseInt(_0x42f527(0x1d4))/0xc);if(_0x497c8c===_0x3a5ffa)break;else _0x4f717d['push'](_0x4f717d['shift']());}catch(_0x4156f4){_0x4f717d['push'](_0x4f717d['shift']());}}}(a248_0x2ff7,0x7e84e));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x509826,_0x5d34c4){const _0x19038f=a248_0x59d7,_0x7dd80a=_0x509826[_0x19038f(0x1e1)],{_notice:_0x4989a0,..._0x15d2c5}=_0x509826;void _0x4989a0,baseFormatOutput(_0x15d2c5,_0x5d34c4),_0x5d34c4[_0x19038f(0x1e3)]===_0x19038f(0x1d6)&&printPrettyNotice(_0x7dd80a);}export function formatCliError(_0x278fe2,_0x467b42){const _0x557661=a248_0x59d7;if(_0x467b42['format']===_0x557661(0x1d6))return![];const _0x3aaf62=_0x278fe2[_0x557661(0x1e5)],_0x49590e={'ok':![],'command':_0x467b42[_0x557661(0x1d1)],'risk':_0x467b42[_0x557661(0x1ea)],'data':_0x3aaf62??null,'error':{'code':_0x278fe2[_0x557661(0x1e7)],'message':_0x278fe2[_0x557661(0x1de)],..._0x278fe2[_0x557661(0x1e8)]?{'hint':_0x278fe2[_0x557661(0x1e8)]}:{}}},_0x274fd4=_0x467b42[_0x557661(0x1e3)]===_0x557661(0x1d5)?JSON['stringify'](_0x49590e,null,0x2):JSON[_0x557661(0x1da)](_0x49590e);let _0x11288a=_0x274fd4;if(_0x467b42[_0x557661(0x1ee)]?.[_0x557661(0x1ec)]())try{_0x11288a=applyJqFilter(_0x274fd4,_0x467b42[_0x557661(0x1ee)]);}catch(_0x313b30){const _0x5d9c5f=_0x313b30 instanceof CliError?_0x313b30:CliErrors['validation'](_0x557661(0x1e2)+(_0x313b30 instanceof Error?_0x313b30[_0x557661(0x1de)]:String(_0x313b30))),_0x22fc4d={..._0x49590e,'error':{'code':_0x5d9c5f['code'],'message':_0x5d9c5f[_0x557661(0x1de)],..._0x5d9c5f['hint']?{'hint':_0x5d9c5f[_0x557661(0x1e8)]}:{},'cause':_0x49590e[_0x557661(0x1d2)]}};_0x11288a=_0x467b42[_0x557661(0x1e3)]===_0x557661(0x1d5)?JSON[_0x557661(0x1da)](_0x22fc4d,null,0x2):JSON['stringify'](_0x22fc4d);}return process['stdout'][_0x557661(0x1dd)](_0x11288a[_0x557661(0x1db)]('\x0a')?_0x11288a:_0x11288a+'\x0a'),!![];}function printPrettyNotice(_0x4db81c){const _0x253e9e=a248_0x59d7;if(!_0x4db81c?.['update'])return;console['error'](_0x4db81c['update'][_0x253e9e(0x1de)]+'\x20('+_0x4db81c[_0x253e9e(0x1e4)][_0x253e9e(0x1d8)]+')');}function a248_0x2ff7(){const _0xb2948b=['2104eEaLxk','trim','10oBGrsh','jqFilter','140404voYRUm','command','error','11MyYdCX','15453804zBGrvY','json','pretty','18809rFHGwF','url','1172331nAxrMi','stringify','endsWith','408qrIqXu','write','message','10aDEKWB','1098186VMYYsl','_notice','jq:\x20','format','update','data','14220FYMIEU','code','hint','1422554Kwmzee','risk'];a248_0x2ff7=function(){return _0xb2948b;};return a248_0x2ff7();}
@@ -1 +1 @@
1
- function a249_0x30b4(){var _0x1dc4be=['18663hQFgTP','1043388huIbLU','6cqRUNb','449740AkHQGa','881Dlfzam','916SBajMU','3554GuiUTl','9442048LFlOLo','24021840NNDVLO','1262688pXQdhi'];a249_0x30b4=function(){return _0x1dc4be;};return a249_0x30b4();}(function(_0x435d18,_0x42a2b0){var _0x4f2169=a249_0x30db,_0x371c57=_0x435d18();while(!![]){try{var _0x37c348=-parseInt(_0x4f2169(0x10f))/0x1*(parseInt(_0x4f2169(0x107))/0x2)+parseInt(_0x4f2169(0x10b))/0x3*(-parseInt(_0x4f2169(0x110))/0x4)+parseInt(_0x4f2169(0x10e))/0x5*(parseInt(_0x4f2169(0x10d))/0x6)+parseInt(_0x4f2169(0x108))/0x7+-parseInt(_0x4f2169(0x10a))/0x8+parseInt(_0x4f2169(0x10c))/0x9+parseInt(_0x4f2169(0x109))/0xa;if(_0x37c348===_0x42a2b0)break;else _0x371c57['push'](_0x371c57['shift']());}catch(_0x2f0bd2){_0x371c57['push'](_0x371c57['shift']());}}}(a249_0x30b4,0xc57f2));function a249_0x30db(_0x15f489,_0x2d6fe0){_0x15f489=_0x15f489-0x107;var _0x30b4bb=a249_0x30b4();var _0x30db36=_0x30b4bb[_0x15f489];return _0x30db36;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ (function(_0x5b9d1a,_0x3e5921){var _0x425003=a249_0x42ed,_0x1d51be=_0x5b9d1a();while(!![]){try{var _0x15e7a0=-parseInt(_0x425003(0x1e0))/0x1*(parseInt(_0x425003(0x1e2))/0x2)+-parseInt(_0x425003(0x1db))/0x3+parseInt(_0x425003(0x1e4))/0x4*(parseInt(_0x425003(0x1dc))/0x5)+parseInt(_0x425003(0x1df))/0x6*(-parseInt(_0x425003(0x1e3))/0x7)+-parseInt(_0x425003(0x1e1))/0x8*(parseInt(_0x425003(0x1de))/0x9)+parseInt(_0x425003(0x1da))/0xa*(-parseInt(_0x425003(0x1dd))/0xb)+parseInt(_0x425003(0x1e5))/0xc;if(_0x15e7a0===_0x3e5921)break;else _0x1d51be['push'](_0x1d51be['shift']());}catch(_0x1c370a){_0x1d51be['push'](_0x1d51be['shift']());}}}(a249_0x1c52,0x2b14b));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a249_0x42ed(_0xf47dfd,_0x50ec5d){_0xf47dfd=_0xf47dfd-0x1da;var _0x1c525c=a249_0x1c52();var _0x42ed5a=_0x1c525c[_0xf47dfd];return _0x42ed5a;}function a249_0x1c52(){var _0x273a70=['62874fXyzBT','24AMgrdD','12262908lnlbcT','10XfDmdJ','499458paqtbE','137035lsfmok','2908543WdyFWC','1118115VfBhfG','66KeDKcq','33103FFRnqm','16WRFXkI','14jbqhXy'];a249_0x1c52=function(){return _0x273a70;};return a249_0x1c52();}
@@ -1 +1 @@
1
- (function(_0x589f48,_0x3ca3cc){const _0x507536=a250_0x5166,_0x4f9365=_0x589f48();while(!![]){try{const _0x16db52=parseInt(_0x507536(0x122))/0x1*(parseInt(_0x507536(0x12c))/0x2)+parseInt(_0x507536(0x119))/0x3+-parseInt(_0x507536(0x12f))/0x4*(-parseInt(_0x507536(0x12a))/0x5)+parseInt(_0x507536(0x126))/0x6*(-parseInt(_0x507536(0x11b))/0x7)+-parseInt(_0x507536(0x12e))/0x8+parseInt(_0x507536(0x11c))/0x9*(-parseInt(_0x507536(0x129))/0xa)+-parseInt(_0x507536(0x12d))/0xb*(-parseInt(_0x507536(0x117))/0xc);if(_0x16db52===_0x3ca3cc)break;else _0x4f9365['push'](_0x4f9365['shift']());}catch(_0x34f020){_0x4f9365['push'](_0x4f9365['shift']());}}}(a250_0xe358,0xa7c08));function a250_0x5166(_0x7fc0a4,_0x485fae){_0x7fc0a4=_0x7fc0a4-0x117;const _0xe3581=a250_0xe358();let _0x5166c1=_0xe3581[_0x7fc0a4];return _0x5166c1;}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a250_0xe358(){const _0x4688e4=['7100euYUqV','Unknown\x20alias\x20\x22','1788pjfQZC','15020258wDUxLm','10567888KjsUhW','376TBauew','name','join','12omvAsU','string','3578385SIeLNm','some','8964823EWihQt','37458wJKVJc','alias','.\x20Run\x20`','validation','\x22.\x20','`\x20requires\x20either\x20--code\x20or\x20--alias.','733OuvOBA','No\x20api.ts\x20found\x20in\x20','type','flags','6uMrxNp','map','code','140XpkYFn'];a250_0xe358=function(){return _0x4688e4;};return a250_0xe358();}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x4f21cc,_0x313a23,_0x4e64bd,_0x434425){const _0x2df721=a250_0x5166,_0x35791b=_0x4f21cc['flags'][_0x2df721(0x11a)](_0x2f9fb2=>_0x2f9fb2['name']==='code'&&_0x2f9fb2[_0x2df721(0x124)]==='string'),_0x1a1cb1=_0x4f21cc[_0x2df721(0x125)][_0x2df721(0x11a)](_0x24cdb3=>_0x24cdb3[_0x2df721(0x130)]===_0x2df721(0x11d)&&_0x24cdb3[_0x2df721(0x124)]===_0x2df721(0x118));if(!_0x35791b||!_0x1a1cb1)return;const _0x1612f7=_0x313a23[_0x2df721(0x128)]?String(_0x313a23[_0x2df721(0x128)]):'',_0x1bf5cf=_0x313a23[_0x2df721(0x11d)]?String(_0x313a23[_0x2df721(0x11d)]):'';if(!_0x1612f7&&!_0x1bf5cf)throw CliErrors[_0x2df721(0x11f)]('`'+_0x434425+_0x2df721(0x121));if(_0x1bf5cf&&!_0x1612f7){const _0x596295=resolveAlias(_0x4e64bd,_0x1bf5cf);if(!_0x596295){const _0x462225=listAliases(_0x4e64bd)[_0x2df721(0x127)](_0x360c7a=>_0x360c7a[_0x2df721(0x11d)]),_0x355905=_0x462225['length']?'Available\x20aliases:\x20'+_0x462225[_0x2df721(0x131)](',\x20'):_0x2df721(0x123)+_0x4e64bd+_0x2df721(0x11e)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors['validation'](_0x2df721(0x12b)+_0x1bf5cf+_0x2df721(0x120)+_0x355905);}_0x313a23['code']=_0x596295;}}
1
+ (function(_0x12548f,_0x3b4cc3){const _0x2193bb=a250_0x42ae,_0x45b520=_0x12548f();while(!![]){try{const _0x2cd9eb=-parseInt(_0x2193bb(0xf7))/0x1*(-parseInt(_0x2193bb(0xf1))/0x2)+-parseInt(_0x2193bb(0xfc))/0x3*(parseInt(_0x2193bb(0x102))/0x4)+parseInt(_0x2193bb(0xec))/0x5+-parseInt(_0x2193bb(0xf2))/0x6*(parseInt(_0x2193bb(0x103))/0x7)+-parseInt(_0x2193bb(0xf9))/0x8+-parseInt(_0x2193bb(0xfe))/0x9*(-parseInt(_0x2193bb(0x104))/0xa)+parseInt(_0x2193bb(0xf3))/0xb;if(_0x2cd9eb===_0x3b4cc3)break;else _0x45b520['push'](_0x45b520['shift']());}catch(_0x556728){_0x45b520['push'](_0x45b520['shift']());}}}(a250_0x450f,0xb3791));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x149663,_0x50066d,_0x3b5ac0,_0x18b874){const _0x4927ed=a250_0x42ae,_0x4aaf3d=_0x149663['flags'][_0x4927ed(0xf4)](_0x27e747=>_0x27e747[_0x4927ed(0x101)]===_0x4927ed(0xfa)&&_0x27e747[_0x4927ed(0xff)]===_0x4927ed(0xf0)),_0x4a8527=_0x149663[_0x4927ed(0xed)][_0x4927ed(0xf4)](_0x1b46a6=>_0x1b46a6[_0x4927ed(0x101)]===_0x4927ed(0xef)&&_0x1b46a6[_0x4927ed(0xff)]===_0x4927ed(0xf0));if(!_0x4aaf3d||!_0x4a8527)return;const _0x3ef412=_0x50066d[_0x4927ed(0xfa)]?String(_0x50066d['code']):'',_0xab3276=_0x50066d['alias']?String(_0x50066d[_0x4927ed(0xef)]):'';if(!_0x3ef412&&!_0xab3276)throw CliErrors['validation']('`'+_0x18b874+_0x4927ed(0xf6));if(_0xab3276&&!_0x3ef412){const _0x29958d=resolveAlias(_0x3b5ac0,_0xab3276);if(!_0x29958d){const _0x173d2d=listAliases(_0x3b5ac0)['map'](_0x35e1da=>_0x35e1da['alias']),_0x2f7c78=_0x173d2d[_0x4927ed(0xfb)]?_0x4927ed(0xee)+_0x173d2d[_0x4927ed(0x100)](',\x20'):_0x4927ed(0xfd)+_0x3b5ac0+_0x4927ed(0xf5)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x4927ed(0xf8)]('Unknown\x20alias\x20\x22'+_0xab3276+'\x22.\x20'+_0x2f7c78);}_0x50066d[_0x4927ed(0xfa)]=_0x29958d;}}function a250_0x42ae(_0x63562e,_0x2cbffe){_0x63562e=_0x63562e-0xec;const _0x450f0d=a250_0x450f();let _0x42ae9e=_0x450f0d[_0x63562e];return _0x42ae9e;}function a250_0x450f(){const _0x46f3cf=['2LNJLdS','validation','11705848wDouSv','code','length','4953UGstqH','No\x20api.ts\x20found\x20in\x20','10486845atdwkk','type','join','name','3088kmVqOK','14XqdDFe','10fcgoPc','425780ygaHUl','flags','Available\x20aliases:\x20','alias','string','860204jZLAHb','3964566JYRvIr','29522691omUAXc','some','.\x20Run\x20`','`\x20requires\x20either\x20--code\x20or\x20--alias.'];a250_0x450f=function(){return _0x46f3cf;};return a250_0x450f();}
@@ -1 +1 @@
1
- (function(_0x5cadc2,_0x3f3e49){const _0x414a93=a251_0xff93,_0x27c677=_0x5cadc2();while(!![]){try{const _0x1f034c=-parseInt(_0x414a93(0x117))/0x1+-parseInt(_0x414a93(0x112))/0x2+parseInt(_0x414a93(0x14f))/0x3+parseInt(_0x414a93(0x12d))/0x4+parseInt(_0x414a93(0x124))/0x5*(-parseInt(_0x414a93(0x132))/0x6)+-parseInt(_0x414a93(0x140))/0x7+parseInt(_0x414a93(0x144))/0x8*(parseInt(_0x414a93(0x135))/0x9);if(_0x1f034c===_0x3f3e49)break;else _0x27c677['push'](_0x27c677['shift']());}catch(_0x36250a){_0x27c677['push'](_0x27c677['shift']());}}}(a251_0x15d0,0xce677));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';function a251_0x15d0(){const _0x1d1333=['Set\x20appcode\x20via\x20`','cancelled','has','⚠\x20\x20High-risk\x20operation:\x20','service','explicitAppName','mergedCli','resolve','resolveCookie','toUpperCase','2076238asUcvd','verbose','resolveApiDomain','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','meowKey','816804QNziap','validation','currentApp','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','requiresAppCode','replace','../constant/env.js','appcode','hint','command','defaultVerbose','appCode','map','7271975zdWEiJ','resolveAppCode','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','apiDir','doctor','Current\x20resolved\x20appcode\x20is\x20\x22','defaultPageSize','RABETBASE_APPCODE','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','3519204VbWnAQ','name','../core/api-client.js','production','catch','6fgmhue','hasFormat','rejectedFlags','9XiweyC','none','value','update','find','defaultApp','message','Edit\x20the\x20config\x20file\x20manually','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','_notice','object','5699351bmaqtC','pretty','authRequired','\x20\x20\x20Continue?\x20[y/N]\x20','31040584NMniyK','\x0a\x20\x20','filter','High-risk\x20operation\x20`','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','../constant/domain.js','rawFlags','format','includes','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','confirmHighRisk','627204ttetJj'];a251_0x15d0=function(){return _0x1d1333;};return a251_0x15d0();}import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a251_0x4ea2c0}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x470af9){return typeof _0x470af9==='string'&&_0x470af9['trim']()?_0x470af9['trim']():undefined;}function resolveEnvAppCode(){const _0xa367fb=a251_0xff93,_0x45ec13=stringFlag(process.env.RABETBASE_APPCODE);if(_0x45ec13)return{'name':_0xa367fb(0x12b),'value':_0x45ec13};const _0x2908c4=stringFlag(process.env.LOVRABET_APPCODE);if(_0x2908c4)return{'name':'LOVRABET_APPCODE','value':_0x2908c4};return undefined;}function hasExplicitAppCode(_0x284126,_0x417c08){const _0x55ab87=a251_0xff93;return!!(stringFlag(_0x284126[_0x55ab87(0x11e)])||stringFlag(_0x417c08[_0x55ab87(0x11e)]));}function assertEnvAppCodeNotIgnored(_0x18b941,_0x27abff,_0x45da69){const _0x208d99=a251_0xff93;if(!_0x27abff||_0x45da69||_0x18b941===_0x27abff[_0x208d99(0x137)])return;const _0xe4cf4d=_0x18b941?_0x208d99(0x129)+_0x18b941+'\x22.':_0x208d99(0x12c);throw CliErrors[_0x208d99(0x118)](_0x27abff[_0x208d99(0x12e)]+'='+_0x27abff['value']+_0x208d99(0x115)+_0xe4cf4d+'\x20'+(_0x208d99(0x148)+_0x27abff[_0x208d99(0x12e)]+'\x22.'));}function a251_0xff93(_0x5dada8,_0x3ed55d){_0x5dada8=_0x5dada8-0x110;const _0x15d00b=a251_0x15d0();let _0xff931c=_0x15d00b[_0x5dada8];return _0xff931c;}export function createPipelineEnv(_0xf782bf,_0x4c370c,_0x555a7d=[]){const _0x305e14=a251_0xff93;return{'rawFlags':_0x4c370c,'args':_0x555a7d,'resolveAppCode':()=>_0xf782bf[_0x305e14(0x122)],'resolveCookie':()=>_0xf782bf['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a251_0x4ea2c0(_0x4c370c),'defaultFormat':_0xf782bf[_0x305e14(0x14b)],'defaultPageSize':_0xf782bf['pageSize'],'defaultVerbose':_0xf782bf[_0x305e14(0x113)],'apiDir':_0xf782bf[_0x305e14(0x127)],'riskLevel':_0xf782bf['riskLevel'],'selectedAppName':_0xf782bf[_0x305e14(0x155)],'mergedCli':{'defaultApp':_0xf782bf[_0x305e14(0x13a)],'currentApp':_0xf782bf[_0x305e14(0x119)],'appCode':_0xf782bf['appCode'],'apps':_0xf782bf['apps']}};}export function createRabetbaseRunnerAdapter(_0x2b93b1={}){const _0x16523a=a251_0xff93;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x16523a(0x146)](_0x277c78=>PIPELINE_FLAG_NAMES[_0x16523a(0x152)](_0x277c78['name']))[_0x16523a(0x123)](({name:_0x567c03,type:_0x2b90ab,description:_0x3e6dcf})=>({'name':_0x567c03,'type':_0x2b90ab,'description':_0x3e6dcf})),'formatOutput':_0x2b93b1['formatOutput']??formatOutput,'getCommandLabel'(_0x365718){const _0x190615=_0x16523a;return CLI_BIN_NAME+'\x20'+_0x365718[_0x190615(0x154)]+'\x20'+_0x365718[_0x190615(0x120)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x5c355c,{def:_0x1733d8}){const _0x4b8b18=_0x16523a,_0x3c9844=_0x5c355c['includes'](_0x4b8b18(0x13c))?_0x4b8b18(0x14d):'A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22'+_0x1733d8['risk']+_0x4b8b18(0x11a)+'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.';return CliErrors['validation'](_0x5c355c+_0x4b8b18(0x145)+_0x3c9844);}},async 'prepare'(_0x5c84e0,_0x6b9feb,_0x816d59,_0x303ae2){const _0x44ee93=_0x16523a,_0x1a4910=_0x6b9feb[_0x44ee93(0x127)]||DEFAULT_API_DIR;resolveAliasToCode(_0x5c84e0,_0x816d59,_0x1a4910,_0x303ae2);const _0x29726e=resolveCommandAuthMode(_0x5c84e0);let _0x15663f='';if(_0x29726e!==_0x44ee93(0x136)){_0x15663f=_0x6b9feb[_0x44ee93(0x110)]()||'';if(!_0x15663f){if(_0x29726e==='required')throw CliErrors[_0x44ee93(0x142)]();}else{const {setActiveCookie:_0x399caf}=await import(_0x44ee93(0x12f));_0x399caf(_0x15663f);}}const _0x5918a4=_0x6b9feb[_0x44ee93(0x125)]()??'';if(_0x5c84e0[_0x44ee93(0x11b)]!==![]){assertEnvAppCodeNotIgnored(_0x5918a4,resolveEnvAppCode(),hasExplicitAppCode(_0x816d59,_0x6b9feb[_0x44ee93(0x14a)]));if(!_0x5918a4)throw CliErrors['configMissing'](_0x44ee93(0x150)+CLI_BIN_NAME+_0x44ee93(0x13d));}return{'defaults':{'booleans':{'verbose':_0x6b9feb[_0x44ee93(0x121)]},'numbers':{'pagesize':_0x6b9feb[_0x44ee93(0x12a)]}},'extras':{'appCode':_0x5918a4,'cookie':_0x15663f,'apiDomain':_0x6b9feb[_0x44ee93(0x114)](),'apiDir':_0x1a4910,'selectedAppName':_0x6b9feb['selectedAppName'],'mergedCli':_0x6b9feb[_0x44ee93(0x156)]}};},'confirmHighRisk':_0x2b93b1[_0x16523a(0x14e)]??(async({env:_0x59ee26,commandLabel:_0x2c2f53})=>{const _0x1df67e=_0x16523a;if(_0x59ee26['isNonInteractive'])throw CliErrors[_0x1df67e(0x118)](_0x1df67e(0x147)+_0x2c2f53+_0x1df67e(0x126));await requireConfirmationPrompt({'lines':[_0x1df67e(0x153)+_0x2c2f53,_0x1df67e(0x143)],'createCancelledError':_0x17eb75=>CliErrors[_0x1df67e(0x151)](_0x17eb75)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x374ecd=a251_0xff93,{clearActiveCookie:_0x43e6cd}=await import(_0x374ecd(0x12f));_0x43e6cd();}export async function finalizeRabetbaseRuntimeState(){const _0x5579e7=a251_0xff93;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x21a2a5},{initEnv:_0x35fbe1}]=await Promise['all']([import(_0x5579e7(0x149)),import(_0x5579e7(0x11d))]);_0x21a2a5(),_0x35fbe1(_0x5579e7(0x130));}}export async function runCommand(_0x57d2bc,_0x166fa4,_0x3781c2=terminalRunnerAdapter){const _0x5dc72f=a251_0xff93;assertRejectedFlags(_0x57d2bc,_0x166fa4[_0x5dc72f(0x14a)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x57d2bc)?withUpdateNotice(_0x57d2bc):_0x57d2bc,_0x166fa4,_0x3781c2);}function assertRejectedFlags(_0x13457c,_0x27c5a5){const _0x1b25ca=a251_0xff93;for(const _0x109494 of _0x13457c[_0x1b25ca(0x134)]??[]){const _0x47cd57=GLOBAL_FLAGS[_0x1b25ca(0x139)](_0x30473c=>_0x30473c['name']===_0x109494['name']),_0x12909e=new Set([_0x109494['name'],toCamelCase(_0x109494['name']),_0x47cd57?.[_0x1b25ca(0x116)]]),_0x2ee2f3=[..._0x12909e]['some'](_0x1d2fe6=>{if(!_0x1d2fe6)return![];const _0x2e8fe6=_0x27c5a5[_0x1d2fe6];return _0x2e8fe6!==undefined&&_0x2e8fe6!==null&&_0x2e8fe6!==![];});if(_0x2ee2f3)throw CliErrors[_0x1b25ca(0x118)](_0x109494[_0x1b25ca(0x13b)],_0x109494[_0x1b25ca(0x11f)]);}}function toCamelCase(_0x2d0bc6){const _0x295a3b=a251_0xff93;return _0x2d0bc6[_0x295a3b(0x11c)](/-([a-z])/g,(_0x2a7463,_0x5daad6)=>_0x5daad6[_0x295a3b(0x111)]());}function shouldAttachUpdateNotice(_0x5d337d){const _0x1d70d4=a251_0xff93;if(_0x5d337d[_0x1d70d4(0x133)]===![])return![];return![_0x1d70d4(0x138),'schema',_0x1d70d4(0x128)][_0x1d70d4(0x14c)](_0x5d337d[_0x1d70d4(0x154)]);}function withUpdateNotice(_0x4d4d2e){return{..._0x4d4d2e,async 'execute'(_0x50d03c){const _0x5a3094=a251_0xff93,_0x25e74c=shouldResolveUpdateNotice(_0x50d03c)?resolveLatestUpdateNotice()[_0x5a3094(0x131)](()=>null):Promise[_0x5a3094(0x157)](null),_0x150a5c=await _0x4d4d2e['execute'](_0x50d03c);return attachUpdateNotice(_0x150a5c,await _0x25e74c);}};}function shouldResolveUpdateNotice(_0x1f2fbe){const _0x5dc29f=a251_0xff93;return _0x1f2fbe[_0x5dc29f(0x14b)]===_0x5dc29f(0x141)&&!_0x1f2fbe['nonInteractive'];}function attachUpdateNotice(_0x3109c9,_0x5e3f24){const _0x423187=a251_0xff93;if(!_0x5e3f24||!_0x3109c9||typeof _0x3109c9!==_0x423187(0x13f))return _0x3109c9;const _0x2c8b57=_0x3109c9,_0x385662=typeof _0x2c8b57[_0x423187(0x13e)]===_0x423187(0x13f)&&_0x2c8b57[_0x423187(0x13e)]!==null?_0x2c8b57[_0x423187(0x13e)]:{};return{..._0x2c8b57,'_notice':{..._0x385662,'update':_0x5e3f24}};}
1
+ (function(_0x134d81,_0xf4f8fb){const _0x3c8341=a251_0x164b,_0x5a6ccf=_0x134d81();while(!![]){try{const _0x2b7f3c=parseInt(_0x3c8341(0x1d8))/0x1*(parseInt(_0x3c8341(0x1fe))/0x2)+parseInt(_0x3c8341(0x1ef))/0x3*(-parseInt(_0x3c8341(0x1db))/0x4)+parseInt(_0x3c8341(0x1e5))/0x5+-parseInt(_0x3c8341(0x1e0))/0x6+-parseInt(_0x3c8341(0x1f7))/0x7*(-parseInt(_0x3c8341(0x1ff))/0x8)+parseInt(_0x3c8341(0x1ea))/0x9*(-parseInt(_0x3c8341(0x21b))/0xa)+parseInt(_0x3c8341(0x219))/0xb*(parseInt(_0x3c8341(0x1d5))/0xc);if(_0x2b7f3c===_0xf4f8fb)break;else _0x5a6ccf['push'](_0x5a6ccf['shift']());}catch(_0x4de5d5){_0x5a6ccf['push'](_0x5a6ccf['shift']());}}}(a251_0x3de7,0x867a5));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a251_0x10ab79}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x2ca706){const _0xdefb5f=a251_0x164b;return typeof _0x2ca706==='string'&&_0x2ca706['trim']()?_0x2ca706[_0xdefb5f(0x1da)]():undefined;}function resolveEnvAppCode(){const _0x288e8e=a251_0x164b,_0xbe1a38=stringFlag(process.env.RABETBASE_APPCODE);if(_0xbe1a38)return{'name':_0x288e8e(0x213),'value':_0xbe1a38};const _0x251b65=stringFlag(process.env.LOVRABET_APPCODE);if(_0x251b65)return{'name':_0x288e8e(0x1ec),'value':_0x251b65};return undefined;}function hasExplicitAppCode(_0x3d402f,_0x28b188){const _0x440ec0=a251_0x164b;return!!(stringFlag(_0x3d402f[_0x440ec0(0x20c)])||stringFlag(_0x28b188['appcode']));}function assertEnvAppCodeNotIgnored(_0x3cf2a9,_0x3176e7,_0x32f03b){const _0x5b6a67=a251_0x164b;if(!_0x3176e7||_0x32f03b||_0x3cf2a9===_0x3176e7['value'])return;const _0x696b31=_0x3cf2a9?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x3cf2a9+'\x22.':_0x5b6a67(0x1fc);throw CliErrors[_0x5b6a67(0x200)](_0x3176e7[_0x5b6a67(0x1d4)]+'='+_0x3176e7['value']+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x696b31+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x3176e7[_0x5b6a67(0x1d4)]+'\x22.'));}export function createPipelineEnv(_0x446bc9,_0x51984f,_0x33e58c=[]){const _0x3a4d29=a251_0x164b;return{'rawFlags':_0x51984f,'args':_0x33e58c,'resolveAppCode':()=>_0x446bc9[_0x3a4d29(0x20e)],'resolveCookie':()=>_0x446bc9['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a251_0x10ab79(_0x51984f),'defaultFormat':_0x446bc9[_0x3a4d29(0x20b)],'defaultPageSize':_0x446bc9[_0x3a4d29(0x1e6)],'defaultVerbose':_0x446bc9[_0x3a4d29(0x20d)],'apiDir':_0x446bc9[_0x3a4d29(0x1df)],'riskLevel':_0x446bc9[_0x3a4d29(0x207)],'selectedAppName':_0x446bc9[_0x3a4d29(0x1fa)],'mergedCli':{'defaultApp':_0x446bc9[_0x3a4d29(0x1e9)],'currentApp':_0x446bc9['currentApp'],'appCode':_0x446bc9[_0x3a4d29(0x20e)],'apps':_0x446bc9[_0x3a4d29(0x1ce)]}};}export function createRabetbaseRunnerAdapter(_0x7ca00f={}){const _0x30a520=a251_0x164b;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x30a520(0x1fb)](_0x1f8cd9=>PIPELINE_FLAG_NAMES[_0x30a520(0x1cd)](_0x1f8cd9['name']))[_0x30a520(0x221)](({name:_0x38da93,type:_0x4966ad,description:_0x415034})=>({'name':_0x38da93,'type':_0x4966ad,'description':_0x415034})),'formatOutput':_0x7ca00f[_0x30a520(0x21f)]??formatOutput,'getCommandLabel'(_0x3391a4){const _0x27ad1d=_0x30a520;return CLI_BIN_NAME+'\x20'+_0x3391a4[_0x27ad1d(0x21a)]+'\x20'+_0x3391a4['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x3082e5,{def:_0x3d2d21}){const _0x57d69f=_0x30a520,_0x56610f=_0x3082e5[_0x57d69f(0x217)]('Edit\x20the\x20config\x20file\x20manually')?'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.':_0x57d69f(0x1d0)+_0x3d2d21[_0x57d69f(0x1f8)]+_0x57d69f(0x211)+_0x57d69f(0x1eb);return CliErrors[_0x57d69f(0x200)](_0x3082e5+'\x0a\x20\x20'+_0x56610f);}},async 'prepare'(_0x2220dc,_0x4adef0,_0x138714,_0x287bbc){const _0x3c3722=_0x30a520,_0xb24c10=_0x4adef0[_0x3c3722(0x1df)]||DEFAULT_API_DIR;resolveAliasToCode(_0x2220dc,_0x138714,_0xb24c10,_0x287bbc);const _0x1e2245=resolveCommandAuthMode(_0x2220dc);let _0x18985b='';if(_0x1e2245!==_0x3c3722(0x1d9)){_0x18985b=_0x4adef0[_0x3c3722(0x208)]()||'';if(!_0x18985b){if(_0x1e2245==='required')throw CliErrors[_0x3c3722(0x206)]();}else{const {setActiveCookie:_0x1576ef}=await import('../core/api-client.js');_0x1576ef(_0x18985b);}}const _0x2d2648=_0x4adef0[_0x3c3722(0x212)]()??'';if(_0x2220dc[_0x3c3722(0x203)]!==![]){const _0x312451=hasExplicitAppCode(_0x138714,_0x4adef0[_0x3c3722(0x1f4)]),_0x503d1a=_0x4adef0[_0x3c3722(0x204)]?.[_0x3c3722(0x1ce)]??{},_0xa416d2=_0x4adef0['selectedAppName']||_0x4adef0[_0x3c3722(0x204)]?.[_0x3c3722(0x1f9)]||_0x4adef0[_0x3c3722(0x204)]?.[_0x3c3722(0x1e9)];if(!_0x312451&&_0xa416d2&&!_0x503d1a[_0xa416d2]){const _0x5bd355=Object['keys'](_0x503d1a);throw CliErrors[_0x3c3722(0x200)](_0x3c3722(0x1f0)+_0xa416d2+_0x3c3722(0x1f3),_0x5bd355['length']>0x0?_0x3c3722(0x1ee)+_0x5bd355[_0x3c3722(0x1e3)](',\x20')+'.\x20Use\x20--app/--appcode,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x3c3722(0x215):_0x3c3722(0x210)+CLI_BIN_NAME+_0x3c3722(0x215));}assertEnvAppCodeNotIgnored(_0x2d2648,resolveEnvAppCode(),_0x312451);if(!_0x2d2648){const _0x23947e=Object[_0x3c3722(0x1e7)](_0x503d1a);if(!_0xa416d2&&_0x23947e[_0x3c3722(0x216)]>0x1)throw CliErrors['configMissing'](_0x3c3722(0x1fd)+CLI_BIN_NAME+_0x3c3722(0x20a)+_0x23947e[_0x3c3722(0x1e3)](',\x20')+'.');throw CliErrors[_0x3c3722(0x1cc)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x3c3722(0x21d));}}return{'defaults':{'booleans':{'verbose':_0x4adef0[_0x3c3722(0x1d3)]},'numbers':{'pagesize':_0x4adef0[_0x3c3722(0x1cf)]}},'extras':{'appCode':_0x2d2648,'cookie':_0x18985b,'apiDomain':_0x4adef0[_0x3c3722(0x1d7)](),'apiDir':_0xb24c10,'selectedAppName':_0x4adef0[_0x3c3722(0x205)],'mergedCli':_0x4adef0[_0x3c3722(0x204)]}};},'confirmHighRisk':_0x7ca00f[_0x30a520(0x202)]??(async({env:_0x2c8bda,commandLabel:_0x1defd6})=>{const _0x22fcf6=_0x30a520;if(_0x2c8bda[_0x22fcf6(0x1e1)])throw CliErrors['validation'](_0x22fcf6(0x1dd)+_0x1defd6+_0x22fcf6(0x1d2));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x1defd6,_0x22fcf6(0x1e2)],'createCancelledError':_0x54d327=>CliErrors['cancelled'](_0x54d327)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();function a251_0x3de7(){const _0x3d21b9=['\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','format','appcode','verbose','appCode','message','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','resolveAppCode','RABETBASE_APPCODE','_notice','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','length','includes','all','44gspGvV','service','246190acWGjb','production','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','object','formatOutput','rejectedFlags','map','../constant/domain.js','configMissing','has','apps','defaultPageSize','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','execute','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','defaultVerbose','name','2916192DTPJHG','nonInteractive','resolveApiDomain','70TEHMMC','none','trim','92kKjqtn','resolve','High-risk\x20operation\x20`','doctor','apiDir','6511956rvojqk','isNonInteractive','\x20\x20\x20Continue?\x20[y/N]\x20','join','update','3538835ehFUSj','pageSize','keys','replace','defaultApp','72DmQIdm','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','LOVRABET_APPCODE','schema','Available:\x20','124569ogLjCg','App\x20\x22','hasFormat','hint','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','rawFlags','pretty','../constant/env.js','7bIfGrM','risk','currentApp','explicitAppName','filter','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','30366TnLNex','363896XvThXe','validation','catch','confirmHighRisk','requiresAppCode','mergedCli','selectedAppName','authRequired','riskLevel','resolveCookie','find'];a251_0x3de7=function(){return _0x3d21b9;};return a251_0x3de7();}async function clearRabetbaseCommandState(){const {clearActiveCookie:_0x5f581b}=await import('../core/api-client.js');_0x5f581b();}export async function finalizeRabetbaseRuntimeState(){const _0x127bdc=a251_0x164b;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x5df0e6},{initEnv:_0x184e34}]=await Promise[_0x127bdc(0x218)]([import(_0x127bdc(0x1cb)),import(_0x127bdc(0x1f6))]);_0x5df0e6(),_0x184e34(_0x127bdc(0x21c));}}export async function runCommand(_0x11c6fe,_0x471340,_0x3f5eec=terminalRunnerAdapter){const _0xcf3f48=a251_0x164b;assertRejectedFlags(_0x11c6fe,_0x471340[_0xcf3f48(0x1f4)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x11c6fe)?withUpdateNotice(_0x11c6fe):_0x11c6fe,_0x471340,_0x3f5eec);}function assertRejectedFlags(_0x39d2b2,_0x78abbb){const _0x21bfc9=a251_0x164b;for(const _0x2f7873 of _0x39d2b2[_0x21bfc9(0x220)]??[]){const _0x4cea8e=GLOBAL_FLAGS[_0x21bfc9(0x209)](_0x389089=>_0x389089[_0x21bfc9(0x1d4)]===_0x2f7873['name']),_0x4f38bd=new Set([_0x2f7873[_0x21bfc9(0x1d4)],toCamelCase(_0x2f7873[_0x21bfc9(0x1d4)]),_0x4cea8e?.['meowKey']]),_0x30ad85=[..._0x4f38bd]['some'](_0x74c186=>{if(!_0x74c186)return![];const _0x287145=_0x78abbb[_0x74c186];return _0x287145!==undefined&&_0x287145!==null&&_0x287145!==![];});if(_0x30ad85)throw CliErrors[_0x21bfc9(0x200)](_0x2f7873[_0x21bfc9(0x20f)],_0x2f7873[_0x21bfc9(0x1f2)]);}}function toCamelCase(_0x128ef8){const _0x1e6c12=a251_0x164b;return _0x128ef8[_0x1e6c12(0x1e8)](/-([a-z])/g,(_0x1c0738,_0x45c976)=>_0x45c976['toUpperCase']());}function shouldAttachUpdateNotice(_0x1e5252){const _0x14132f=a251_0x164b;if(_0x1e5252[_0x14132f(0x1f1)]===![])return![];return![_0x14132f(0x1e4),_0x14132f(0x1ed),_0x14132f(0x1de)][_0x14132f(0x217)](_0x1e5252['service']);}function withUpdateNotice(_0x7376a5){return{..._0x7376a5,async 'execute'(_0x5c5573){const _0x3f906f=a251_0x164b,_0x5be25d=shouldResolveUpdateNotice(_0x5c5573)?resolveLatestUpdateNotice()[_0x3f906f(0x201)](()=>null):Promise[_0x3f906f(0x1dc)](null),_0x52bec0=await _0x7376a5[_0x3f906f(0x1d1)](_0x5c5573);return attachUpdateNotice(_0x52bec0,await _0x5be25d);}};}function a251_0x164b(_0x3ea169,_0x100d97){_0x3ea169=_0x3ea169-0x1cb;const _0x3de7a4=a251_0x3de7();let _0x164b97=_0x3de7a4[_0x3ea169];return _0x164b97;}function shouldResolveUpdateNotice(_0x21cf5d){const _0x11752a=a251_0x164b;return _0x21cf5d[_0x11752a(0x20b)]===_0x11752a(0x1f5)&&!_0x21cf5d[_0x11752a(0x1d6)];}function attachUpdateNotice(_0x3c9aa8,_0x255764){const _0x3595a7=a251_0x164b;if(!_0x255764||!_0x3c9aa8||typeof _0x3c9aa8!==_0x3595a7(0x21e))return _0x3c9aa8;const _0x4b6b2c=_0x3c9aa8,_0xbf88d5=typeof _0x4b6b2c[_0x3595a7(0x214)]===_0x3595a7(0x21e)&&_0x4b6b2c[_0x3595a7(0x214)]!==null?_0x4b6b2c[_0x3595a7(0x214)]:{};return{..._0x4b6b2c,'_notice':{..._0xbf88d5,'update':_0x255764}};}
@@ -1 +1 @@
1
- (function(_0x316314,_0x5f5b67){const _0x4f21c6=a252_0x1400,_0x3e4ed9=_0x316314();while(!![]){try{const _0x3c81b8=parseInt(_0x4f21c6(0x1f6))/0x1+-parseInt(_0x4f21c6(0x1ee))/0x2*(-parseInt(_0x4f21c6(0x1f7))/0x3)+-parseInt(_0x4f21c6(0x1f0))/0x4*(parseInt(_0x4f21c6(0x1f1))/0x5)+parseInt(_0x4f21c6(0x1f5))/0x6+parseInt(_0x4f21c6(0x1f3))/0x7*(parseInt(_0x4f21c6(0x1f2))/0x8)+parseInt(_0x4f21c6(0x1ef))/0x9+parseInt(_0x4f21c6(0x1f9))/0xa*(-parseInt(_0x4f21c6(0x1f8))/0xb);if(_0x3c81b8===_0x5f5b67)break;else _0x3e4ed9['push'](_0x3e4ed9['shift']());}catch(_0x578517){_0x3e4ed9['push'](_0x3e4ed9['shift']());}}}(a252_0x1cd8,0xe6e3d));function a252_0x1cd8(){const _0x2c9b2f=['26377780hDignL','18rYBeFp','5189193itsKHe','275400FcaVzu','130kechHb','255624XFlCsW','357HoNRge','../commands/registry.js','156930GkiaaO','1875517lAVicN','421917GSjrtW','11cvDCfg'];a252_0x1cd8=function(){return _0x2c9b2f;};return a252_0x1cd8();}import{buildSchemaPayload as a252_0x5e3050}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a252_0x1400(_0x6ac845,_0x1c369a){_0x6ac845=_0x6ac845-0x1ee;const _0x1cd884=a252_0x1cd8();let _0x140009=_0x1cd884[_0x6ac845];return _0x140009;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x4ebea9=a252_0x1400,{serviceRegistry:_0x154537,findDefinition:_0x274822}=await import(_0x4ebea9(0x1f4));return a252_0x5e3050({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x154537,'buildAllFlags':buildAllFlags,'findDefinition':_0x274822});}
1
+ (function(_0x25ce2d,_0x42e63f){const _0x47e784=a252_0x2cc8,_0x23ddae=_0x25ce2d();while(!![]){try{const _0x4bfb69=parseInt(_0x47e784(0x1d2))/0x1+-parseInt(_0x47e784(0x1d5))/0x2+parseInt(_0x47e784(0x1da))/0x3+-parseInt(_0x47e784(0x1d1))/0x4*(parseInt(_0x47e784(0x1d8))/0x5)+parseInt(_0x47e784(0x1d6))/0x6*(-parseInt(_0x47e784(0x1d4))/0x7)+-parseInt(_0x47e784(0x1d3))/0x8+-parseInt(_0x47e784(0x1d7))/0x9*(-parseInt(_0x47e784(0x1d9))/0xa);if(_0x4bfb69===_0x42e63f)break;else _0x23ddae['push'](_0x23ddae['shift']());}catch(_0x18c022){_0x23ddae['push'](_0x23ddae['shift']());}}}(a252_0x204b,0xea875));import{buildSchemaPayload as a252_0x5e8856}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a252_0x2cc8(_0x4529f9,_0x2caab3){_0x4529f9=_0x4529f9-0x1d1;const _0x204bb7=a252_0x204b();let _0x2cc8e0=_0x204bb7[_0x4529f9];return _0x2cc8e0;}function a252_0x204b(){const _0x21d2c2=['48280GTIJAr','4801002pFLgRD','../commands/registry.js','5321032auKnQA','1822675KGDONb','11036864HHBChU','56oXHkoc','3584052BvKPDg','324318wnYsaf','4608JpFHYD','5dxFGyE'];a252_0x204b=function(){return _0x21d2c2;};return a252_0x204b();}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x3f984d=a252_0x2cc8,{serviceRegistry:_0xaaefae,findDefinition:_0xadfafa}=await import(_0x3f984d(0x1db));return a252_0x5e8856({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0xaaefae,'buildAllFlags':buildAllFlags,'findDefinition':_0xadfafa});}
@@ -1 +1 @@
1
- function a253_0x468b(_0x354b55,_0x54eefc){_0x354b55=_0x354b55-0x107;var _0x4e545e=a253_0x4e54();var _0x468b9d=_0x4e545e[_0x354b55];return _0x468b9d;}function a253_0x4e54(){var _0x1b5ab0=['88zXszYc','1059880oGNMAc','14198690YnhGYb','22EPoySi','2560230KlzLoE','105147QqVpCl','311171GSZpWQ','1366QWzLFL','62908ShRAtf','600JDQOiC','66iQmFCe'];a253_0x4e54=function(){return _0x1b5ab0;};return a253_0x4e54();}(function(_0x5246aa,_0x4c3a1b){var _0x2fe750=a253_0x468b,_0x1bf49d=_0x5246aa();while(!![]){try{var _0xcb87e4=-parseInt(_0x2fe750(0x10e))/0x1*(-parseInt(_0x2fe750(0x10a))/0x2)+parseInt(_0x2fe750(0x111))/0x3*(-parseInt(_0x2fe750(0x10f))/0x4)+parseInt(_0x2fe750(0x108))/0x5+parseInt(_0x2fe750(0x10b))/0x6+parseInt(_0x2fe750(0x10d))/0x7*(-parseInt(_0x2fe750(0x107))/0x8)+parseInt(_0x2fe750(0x10c))/0x9*(-parseInt(_0x2fe750(0x110))/0xa)+parseInt(_0x2fe750(0x109))/0xb;if(_0xcb87e4===_0x4c3a1b)break;else _0x1bf49d['push'](_0x1bf49d['shift']());}catch(_0x24f1c7){_0x1bf49d['push'](_0x1bf49d['shift']());}}}(a253_0x4e54,0x63bdc));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
1
+ function a253_0x2ed2(_0x1d7cc7,_0x1656de){_0x1d7cc7=_0x1d7cc7-0x72;var _0x2fc9cb=a253_0x2fc9();var _0x2ed234=_0x2fc9cb[_0x1d7cc7];return _0x2ed234;}(function(_0x4beac7,_0x107291){var _0x3a0b15=a253_0x2ed2,_0x465d28=_0x4beac7();while(!![]){try{var _0x50c5a4=-parseInt(_0x3a0b15(0x7c))/0x1*(parseInt(_0x3a0b15(0x73))/0x2)+parseInt(_0x3a0b15(0x74))/0x3*(parseInt(_0x3a0b15(0x77))/0x4)+-parseInt(_0x3a0b15(0x78))/0x5*(-parseInt(_0x3a0b15(0x76))/0x6)+parseInt(_0x3a0b15(0x79))/0x7*(parseInt(_0x3a0b15(0x72))/0x8)+parseInt(_0x3a0b15(0x7a))/0x9*(parseInt(_0x3a0b15(0x7d))/0xa)+parseInt(_0x3a0b15(0x7b))/0xb+-parseInt(_0x3a0b15(0x75))/0xc;if(_0x50c5a4===_0x107291)break;else _0x465d28['push'](_0x465d28['shift']());}catch(_0x8b3c03){_0x465d28['push'](_0x465d28['shift']());}}}(a253_0x2fc9,0xe2881));function a253_0x2fc9(){var _0x42320a=['3909521BaHHxZ','692XcApRm','33460IXcEun','2216htTKuN','3910JACBXa','3ubJXmT','18611928SaFgiv','4711914mJzrND','2222992EKeQdg','5cUkDii','24703IuOFjr','3114UAAuJb'];a253_0x2fc9=function(){return _0x42320a;};return a253_0x2fc9();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "2.4.7";
2
- export declare const GIT_TAG = "v2.4.7";
3
- export declare const GIT_COMMIT = "e01715e";
4
- export declare const BUILD_TIME = "2026-08-20T11:26:03.838Z";
1
+ export declare const VERSION = "2.5.0-beta.2";
2
+ export declare const GIT_TAG = "v2.5.0-beta.2";
3
+ export declare const GIT_COMMIT = "4cb6c32";
4
+ export declare const BUILD_TIME = "2026-08-22T03:18:32.454Z";
@@ -1 +1 @@
1
- function a254_0x4f5d(_0x1cf964,_0x2451aa){_0x1cf964=_0x1cf964-0x19b;const _0xaf969b=a254_0xaf96();let _0x4f5d0c=_0xaf969b[_0x1cf964];return _0x4f5d0c;}const a254_0x3a5db4=a254_0x4f5d;(function(_0x1376bd,_0x447a77){const _0x4025cd=a254_0x4f5d,_0x5458d2=_0x1376bd();while(!![]){try{const _0x559096=parseInt(_0x4025cd(0x1a1))/0x1+-parseInt(_0x4025cd(0x1a4))/0x2*(parseInt(_0x4025cd(0x1a7))/0x3)+parseInt(_0x4025cd(0x1a0))/0x4+-parseInt(_0x4025cd(0x1a6))/0x5+parseInt(_0x4025cd(0x19d))/0x6*(parseInt(_0x4025cd(0x19c))/0x7)+parseInt(_0x4025cd(0x1a2))/0x8*(parseInt(_0x4025cd(0x1a3))/0x9)+-parseInt(_0x4025cd(0x1a5))/0xa;if(_0x559096===_0x447a77)break;else _0x5458d2['push'](_0x5458d2['shift']());}catch(_0x3f0108){_0x5458d2['push'](_0x5458d2['shift']());}}}(a254_0xaf96,0x4be4a));export const VERSION=a254_0x3a5db4(0x19e);function a254_0xaf96(){const _0x50ada2=['1019998CFRdVM','24tScWcO','2.4.7','2026-08-20T11:26:03.838Z','762152hNCDgH','112579psSxfY','2222272xeCHSx','18koXEJM','13794mRHimb','3400530bSyGlz','2642720YhdilO','114iPQHTQ','v2.4.7'];a254_0xaf96=function(){return _0x50ada2;};return a254_0xaf96();}export const GIT_TAG=a254_0x3a5db4(0x19b);export const GIT_COMMIT='e01715e';export const BUILD_TIME=a254_0x3a5db4(0x19f);
1
+ function a254_0x1010(){const _0x1c9fea=['1WHRUOh','4cb6c32','141354pamyqP','21841794PeGzxu','7061060APcFgz','7972416AZPawC','12328169NgHXMz','3164Ahncks','3063DWxpuJ','2026-08-22T03:18:32.454Z','4938636ZqZOtw'];a254_0x1010=function(){return _0x1c9fea;};return a254_0x1010();}function a254_0x21b1(_0x41f844,_0x704e46){_0x41f844=_0x41f844-0x10b;const _0x10107a=a254_0x1010();let _0x21b176=_0x10107a[_0x41f844];return _0x21b176;}const a254_0x2db08d=a254_0x21b1;(function(_0x34a9dc,_0x11b5ba){const _0x25b246=a254_0x21b1,_0x3eaa26=_0x34a9dc();while(!![]){try{const _0x4f6692=-parseInt(_0x25b246(0x115))/0x1*(parseInt(_0x25b246(0x10c))/0x2)+-parseInt(_0x25b246(0x112))/0x3*(-parseInt(_0x25b246(0x111))/0x4)+parseInt(_0x25b246(0x10e))/0x5+-parseInt(_0x25b246(0x114))/0x6+-parseInt(_0x25b246(0x110))/0x7+-parseInt(_0x25b246(0x10f))/0x8+parseInt(_0x25b246(0x10d))/0x9;if(_0x4f6692===_0x11b5ba)break;else _0x3eaa26['push'](_0x3eaa26['shift']());}catch(_0x7d4c20){_0x3eaa26['push'](_0x3eaa26['shift']());}}}(a254_0x1010,0xf2f73));export const VERSION='2.5.0-beta.2';export const GIT_TAG='v2.5.0-beta.2';export const GIT_COMMIT=a254_0x2db08d(0x10b);export const BUILD_TIME=a254_0x2db08d(0x113);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a255_0x5bde(){var _0x479cd3=['620337pgUasl','374RxVtEr','\x20--help','log','1129180ezKayG','\x20\x20Use\x20','green','408bvqfZz','909828wDwdun','bold','6111fKJeqp','440sKObFg','20335bHCAzp','464oUZSrF','1739691dLWimi'];a255_0x5bde=function(){return _0x479cd3;};return a255_0x5bde();}(function(_0x456656,_0x238ec0){var _0x27c5cc=a255_0x1cfa,_0x10af6f=_0x456656();while(!![]){try{var _0x5dd9cb=-parseInt(_0x27c5cc(0x137))/0x1*(-parseInt(_0x27c5cc(0x13a))/0x2)+parseInt(_0x27c5cc(0x139))/0x3+-parseInt(_0x27c5cc(0x132))/0x4+parseInt(_0x27c5cc(0x136))/0x5*(-parseInt(_0x27c5cc(0x131))/0x6)+parseInt(_0x27c5cc(0x134))/0x7*(parseInt(_0x27c5cc(0x135))/0x8)+parseInt(_0x27c5cc(0x138))/0x9+parseInt(_0x27c5cc(0x12e))/0xa;if(_0x5dd9cb===_0x238ec0)break;else _0x10af6f['push'](_0x10af6f['shift']());}catch(_0x16ffe4){_0x10af6f['push'](_0x10af6f['shift']());}}}(a255_0x5bde,0x23196));function a255_0x1cfa(_0x548f8d,_0x11c9e2){_0x548f8d=_0x548f8d-0x12e;var _0x5bde79=a255_0x5bde();var _0x1cfaf8=_0x5bde79[_0x548f8d];return _0x1cfaf8;}import a255_0x278cb2 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x28f3f0=a255_0x1cfa;console['log'](),console[_0x28f3f0(0x13c)](a255_0x278cb2[_0x28f3f0(0x130)][_0x28f3f0(0x133)]('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console['log'](_0x28f3f0(0x12f)+a255_0x278cb2[_0x28f3f0(0x130)][_0x28f3f0(0x133)](CLI_BIN_NAME+_0x28f3f0(0x13b))+'\x20to\x20view\x20available\x20commands.'),console[_0x28f3f0(0x13c)]();}
1
+ (function(_0x246c5b,_0x1f23f2){var _0x79e908=a255_0x47f6,_0x43f402=_0x246c5b();while(!![]){try{var _0x2241a4=-parseInt(_0x79e908(0xa1))/0x1+parseInt(_0x79e908(0x9d))/0x2*(-parseInt(_0x79e908(0x9c))/0x3)+-parseInt(_0x79e908(0x97))/0x4+parseInt(_0x79e908(0x96))/0x5+-parseInt(_0x79e908(0x99))/0x6+-parseInt(_0x79e908(0x9f))/0x7*(parseInt(_0x79e908(0x9a))/0x8)+parseInt(_0x79e908(0xa0))/0x9*(parseInt(_0x79e908(0x95))/0xa);if(_0x2241a4===_0x1f23f2)break;else _0x43f402['push'](_0x43f402['shift']());}catch(_0x289934){_0x43f402['push'](_0x43f402['shift']());}}}(a255_0x1a2e,0x49d7a));import a255_0x150b6f from'chalk';function a255_0x1a2e(){var _0x32764d=['40KfZFeZ','green','13653ISbgzS','38remNUc','log','401296ymLYyQ','3720753ISCSQa','187720PjiqJd','30naihpK','1307620QgFHpl','2389244kEVUwM','\x20\x20Use\x20','247062ulCgML'];a255_0x1a2e=function(){return _0x32764d;};return a255_0x1a2e();}function a255_0x47f6(_0xfd9f0a,_0x345cd6){_0xfd9f0a=_0xfd9f0a-0x95;var _0x1a2e5f=a255_0x1a2e();var _0x47f669=_0x1a2e5f[_0xfd9f0a];return _0x47f669;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x9b7cf9=a255_0x47f6;console[_0x9b7cf9(0x9e)](),console[_0x9b7cf9(0x9e)](a255_0x150b6f[_0x9b7cf9(0x9b)]['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x9b7cf9(0x9e)](),console[_0x9b7cf9(0x9e)](_0x9b7cf9(0x98)+a255_0x150b6f[_0x9b7cf9(0x9b)]['bold'](CLI_BIN_NAME+'\x20--help')+'\x20to\x20view\x20available\x20commands.'),console[_0x9b7cf9(0x9e)]();}
@@ -1 +1 @@
1
- (function(_0xb61bc3,_0x2ae513){const _0x3751c0=a256_0x1210,_0x21488a=_0xb61bc3();while(!![]){try{const _0xfa5b28=-parseInt(_0x3751c0(0x16c))/0x1+-parseInt(_0x3751c0(0x176))/0x2+-parseInt(_0x3751c0(0x171))/0x3*(-parseInt(_0x3751c0(0x174))/0x4)+parseInt(_0x3751c0(0x177))/0x5+-parseInt(_0x3751c0(0x172))/0x6*(-parseInt(_0x3751c0(0x168))/0x7)+parseInt(_0x3751c0(0x16a))/0x8*(parseInt(_0x3751c0(0x170))/0x9)+-parseInt(_0x3751c0(0x169))/0xa;if(_0xfa5b28===_0x2ae513)break;else _0x21488a['push'](_0x21488a['shift']());}catch(_0x3f211c){_0x21488a['push'](_0x21488a['shift']());}}}(a256_0x5c8f,0x5bb6f));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a256_0x1210(_0x158c1b,_0x31c393){_0x158c1b=_0x158c1b-0x165;const _0x5c8f48=a256_0x5c8f();let _0x121006=_0x5c8f48[_0x158c1b];return _0x121006;}function a256_0x5c8f(){const _0x4373f2=['3208TScYVT','installed','315030kmOZxy','SOURCE_INVALID','\x20at\x20','installedPath','13338bXTVNi','60cwIIsW','4505862WyiNkA','skillVersion','97004NSIFHC','Repair\x20with:\x20','192052wJtNUD','704305zRQcSS','[BUILTIN_SKILL_INSTALL_','Installation\x20failed','code','already\x20current','changed','Rabetbase\x20Built-in\x20Skill\x20','7DsbSaq','11844210MsLYUs'];a256_0x5c8f=function(){return _0x4373f2;};return a256_0x5c8f();}export async function runPostinstall(_0x4eb969={}){const _0x287bc2=a256_0x1210,_0x50c585=installBuiltinSkill(_0x4eb969);if(_0x50c585['ok']){const _0x54e1e3=_0x50c585[_0x287bc2(0x166)]?_0x287bc2(0x16b):_0x287bc2(0x165),_0x230337=_0x50c585['installedPath']?_0x287bc2(0x16e)+_0x50c585[_0x287bc2(0x16f)]:'\x20via\x20skills@latest';return console['log'](_0x287bc2(0x167)+_0x50c585[_0x287bc2(0x173)]+'\x20'+_0x54e1e3+_0x230337),_0x50c585;}const _0x174d8f=_0x287bc2(0x178)+(_0x50c585[_0x287bc2(0x17a)]??'FAILED')+']\x20'+(_0x50c585['error']??_0x287bc2(0x179))+'.\x20'+(_0x287bc2(0x175)+_0x50c585['repairCommand']);if(_0x50c585[_0x287bc2(0x17a)]===_0x287bc2(0x16d))throw new Error(_0x174d8f);return console['warn'](_0x174d8f),_0x50c585;}
1
+ (function(_0x1e8fda,_0x282067){const _0xd3614f=a256_0x5029,_0x4bf433=_0x1e8fda();while(!![]){try{const _0x2e062c=-parseInt(_0xd3614f(0x102))/0x1+parseInt(_0xd3614f(0x10e))/0x2*(-parseInt(_0xd3614f(0x10b))/0x3)+-parseInt(_0xd3614f(0x105))/0x4+parseInt(_0xd3614f(0x110))/0x5+-parseInt(_0xd3614f(0x112))/0x6+parseInt(_0xd3614f(0x103))/0x7+-parseInt(_0xd3614f(0x106))/0x8*(-parseInt(_0xd3614f(0x115))/0x9);if(_0x2e062c===_0x282067)break;else _0x4bf433['push'](_0x4bf433['shift']());}catch(_0x3cb419){_0x4bf433['push'](_0x4bf433['shift']());}}}(a256_0x3bda,0x2cc90));function a256_0x3bda(){const _0x43648e=['SOURCE_INVALID','1557rgNrDS','code','log','812Osrcga','installedPath','864000koUCZy','error','833586DfreXi','\x20via\x20skills@latest','Rabetbase\x20Built-in\x20Skill\x20','99GNHiyk','changed','warn','324381VUuwEz','2419900LWXOXJ','installed','1425420txswhz','505688oxtIGF','Repair\x20with:\x20','already\x20current','Installation\x20failed'];a256_0x3bda=function(){return _0x43648e;};return a256_0x3bda();}import{installBuiltinSkill}from'./skills/builtin-skill.js';function a256_0x5029(_0x817311,_0x2daada){_0x817311=_0x817311-0x100;const _0x3bdaaf=a256_0x3bda();let _0x502987=_0x3bdaaf[_0x817311];return _0x502987;}export async function runPostinstall(_0x239653={}){const _0x104e5=a256_0x5029,_0x259b38=installBuiltinSkill(_0x239653);if(_0x259b38['ok']){const _0x381a52=_0x259b38[_0x104e5(0x100)]?_0x104e5(0x104):_0x104e5(0x108),_0x29a80e=_0x259b38[_0x104e5(0x10f)]?'\x20at\x20'+_0x259b38['installedPath']:_0x104e5(0x113);return console[_0x104e5(0x10d)](_0x104e5(0x114)+_0x259b38['skillVersion']+'\x20'+_0x381a52+_0x29a80e),_0x259b38;}const _0x2ed65e='[BUILTIN_SKILL_INSTALL_'+(_0x259b38['code']??'FAILED')+']\x20'+(_0x259b38[_0x104e5(0x111)]??_0x104e5(0x109))+'.\x20'+(_0x104e5(0x107)+_0x259b38['repairCommand']);if(_0x259b38[_0x104e5(0x10c)]===_0x104e5(0x10a))throw new Error(_0x2ed65e);return console[_0x104e5(0x101)](_0x2ed65e),_0x259b38;}
@@ -1 +1 @@
1
- (function(_0x4e9678,_0xeb4fc7){const _0x50700f=a257_0x1472,_0x1e783c=_0x4e9678();while(!![]){try{const _0x5c3379=parseInt(_0x50700f(0xfa))/0x1*(parseInt(_0x50700f(0xf6))/0x2)+-parseInt(_0x50700f(0xf7))/0x3+parseInt(_0x50700f(0x100))/0x4*(-parseInt(_0x50700f(0xf9))/0x5)+-parseInt(_0x50700f(0xfe))/0x6*(parseInt(_0x50700f(0xef))/0x7)+parseInt(_0x50700f(0xfd))/0x8*(parseInt(_0x50700f(0xf0))/0x9)+-parseInt(_0x50700f(0xf8))/0xa+-parseInt(_0x50700f(0x102))/0xb*(-parseInt(_0x50700f(0xff))/0xc);if(_0x5c3379===_0xeb4fc7)break;else _0x1e783c['push'](_0x1e783c['shift']());}catch(_0x9256af){_0x1e783c['push'](_0x1e783c['shift']());}}}(a257_0x5c27,0x8ad14));function a257_0x1472(_0x56dbf6,_0x3acfb4){_0x56dbf6=_0x56dbf6-0xec;const _0x5c274a=a257_0x5c27();let _0x14724b=_0x5c274a[_0x56dbf6];return _0x14724b;}const DESCRIPTION_MAX_LENGTH=0x1f4;function a257_0x5c27(){const _0x153ee7=['write',';该操作可能覆盖、删除或明显影响线上运行行为。','将执行写入操作\x20','563962wOLDpe','9387eSNNyv','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','high-risk-write',';该操作可能创建或修改业务数据或本地配置。','replace','risk','8awUEcV','245904pUuAXj','9929790yaCyls','15QjRVjM','58183uthWcX','string','confirmationDescription','1424BwMcMd','84BPhcrd','96mhUNrY','1183444rzxNeO','将执行高风险写入操作\x20','4455913urIVuK','trim'];a257_0x5c27=function(){return _0x153ee7;};return a257_0x5c27();}export function buildRabetbaseConfirmationRequest(_0x3681ce,_0x1ff5cf,_0x38f3c2){const _0x2c0d8f=a257_0x1472,_0x35577d=normalizeText(_0x3681ce[_0x2c0d8f(0xfc)],DESCRIPTION_MAX_LENGTH),_0x4b2b6b=_0x35577d||normalizeText(defaultDescription(requireWriteRisk(_0x3681ce),_0x1ff5cf),DESCRIPTION_MAX_LENGTH);return{'operation':_0x1ff5cf,'risk':requireWriteRisk(_0x3681ce),'description':_0x4b2b6b,..._0x38f3c2?{'signal':_0x38f3c2}:{}};}function requireWriteRisk(_0x183faf){const _0x1ae651=a257_0x1472;if(_0x183faf[_0x1ae651(0xf5)]===_0x1ae651(0xec)||_0x183faf[_0x1ae651(0xf5)]===_0x1ae651(0xf2))return _0x183faf[_0x1ae651(0xf5)];throw new Error(_0x1ae651(0xf1));}function defaultDescription(_0x56af74,_0x553102){const _0x4baba0=a257_0x1472;if(_0x56af74===_0x4baba0(0xf2))return _0x4baba0(0x101)+_0x553102+_0x4baba0(0xed);return _0x4baba0(0xee)+_0x553102+_0x4baba0(0xf3);}function normalizeText(_0x2529fa,_0x273e20){const _0x187a9f=a257_0x1472;if(typeof _0x2529fa!==_0x187a9f(0xfb))return'';return _0x2529fa[_0x187a9f(0xf4)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x187a9f(0xf4)](/\s+/g,'\x20')[_0x187a9f(0x103)]()['slice'](0x0,_0x273e20);}
1
+ (function(_0x5c281f,_0x470bec){const _0x2d4c6a=a257_0x36b4,_0x52e5a1=_0x5c281f();while(!![]){try{const _0x2614e8=-parseInt(_0x2d4c6a(0xc1))/0x1*(-parseInt(_0x2d4c6a(0xc4))/0x2)+parseInt(_0x2d4c6a(0xc6))/0x3*(-parseInt(_0x2d4c6a(0xc0))/0x4)+-parseInt(_0x2d4c6a(0xcf))/0x5*(-parseInt(_0x2d4c6a(0xc9))/0x6)+-parseInt(_0x2d4c6a(0xc5))/0x7*(-parseInt(_0x2d4c6a(0xd0))/0x8)+-parseInt(_0x2d4c6a(0xc3))/0x9+-parseInt(_0x2d4c6a(0xcd))/0xa+-parseInt(_0x2d4c6a(0xc8))/0xb*(parseInt(_0x2d4c6a(0xd2))/0xc);if(_0x2614e8===_0x470bec)break;else _0x52e5a1['push'](_0x52e5a1['shift']());}catch(_0x16c164){_0x52e5a1['push'](_0x52e5a1['shift']());}}}(a257_0x5914,0x79205));const DESCRIPTION_MAX_LENGTH=0x1f4;function a257_0x5914(){const _0x5d8eb8=['1558291wMKVrq','27sDlHtm','write','242KYlZjX','12svXRqo','.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','string','This\x20will\x20run\x20the\x20write\x20','7820150byYpJX','high-risk-write','1878615rMDwbS','32KqiMDj','This\x20will\x20run\x20the\x20high-risk\x20write\x20','333276ZMbxQc','risk','slice','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','11940DZGoev','219CBnqaO','replace','5915574jEfFky','8506AUmOnb'];a257_0x5914=function(){return _0x5d8eb8;};return a257_0x5914();}export function buildRabetbaseConfirmationRequest(_0x128d2c,_0x13e800,_0x1d42a0){const _0xf2a3eb=normalizeText(_0x128d2c['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0x537393=_0xf2a3eb||normalizeText(defaultDescription(requireWriteRisk(_0x128d2c),_0x13e800),DESCRIPTION_MAX_LENGTH);return{'operation':_0x13e800,'risk':requireWriteRisk(_0x128d2c),'description':_0x537393,..._0x1d42a0?{'signal':_0x1d42a0}:{}};}function requireWriteRisk(_0x4a4405){const _0x185ff9=a257_0x36b4;if(_0x4a4405[_0x185ff9(0xd3)]===_0x185ff9(0xc7)||_0x4a4405[_0x185ff9(0xd3)]===_0x185ff9(0xce))return _0x4a4405[_0x185ff9(0xd3)];throw new Error(_0x185ff9(0xbf));}function defaultDescription(_0x39ec10,_0x44301f){const _0x15a038=a257_0x36b4;if(_0x39ec10==='high-risk-write')return _0x15a038(0xd1)+_0x44301f+_0x15a038(0xca);return _0x15a038(0xcc)+_0x44301f+'.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.';}function a257_0x36b4(_0x16c3fa,_0x23e009){_0x16c3fa=_0x16c3fa-0xbf;const _0x59147b=a257_0x5914();let _0x36b473=_0x59147b[_0x16c3fa];return _0x36b473;}function normalizeText(_0x465e57,_0x147260){const _0x1a8900=a257_0x36b4;if(typeof _0x465e57!==_0x1a8900(0xcb))return'';return _0x465e57[_0x1a8900(0xc2)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x1a8900(0xc2)](/\s+/g,'\x20')['trim']()[_0x1a8900(0xd4)](0x0,_0x147260);}
@@ -1 +1 @@
1
- (function(_0x254869,_0x48ee54){var _0x3cc526=a258_0xfc49,_0x315d35=_0x254869();while(!![]){try{var _0x21501b=-parseInt(_0x3cc526(0x123))/0x1*(parseInt(_0x3cc526(0x119))/0x2)+-parseInt(_0x3cc526(0x124))/0x3*(parseInt(_0x3cc526(0x11c))/0x4)+parseInt(_0x3cc526(0x117))/0x5+-parseInt(_0x3cc526(0x11e))/0x6+parseInt(_0x3cc526(0x11f))/0x7*(-parseInt(_0x3cc526(0x11a))/0x8)+parseInt(_0x3cc526(0x125))/0x9+parseInt(_0x3cc526(0x11b))/0xa;if(_0x21501b===_0x48ee54)break;else _0x315d35['push'](_0x315d35['shift']());}catch(_0x24aef2){_0x315d35['push'](_0x315d35['shift']());}}}(a258_0x521b,0x6081f));export function canonicalRabetbaseOperation(_0x1cbc14){var _0xb2c49d=a258_0xfc49;return[_0x1cbc14[_0xb2c49d(0x126)],..._0x1cbc14['command']['trim']()[_0xb2c49d(0x121)](/\s+/)][_0xb2c49d(0x122)](Boolean)['join']('.');}function a258_0xfc49(_0x54fb6f,_0x5f4f3c){_0x54fb6f=_0x54fb6f-0x117;var _0x521b52=a258_0x521b();var _0xfc49b5=_0x521b52[_0x54fb6f];return _0xfc49b5;}export function createRabetbaseWriteMetadata(_0x58f9b7,_0x322cfb,_0x77b0f2,_0x149d5c){var _0x48857=a258_0xfc49;if(_0x149d5c||_0x77b0f2['ok']!==!![]||_0x58f9b7['risk']!==_0x48857(0x118)&&_0x58f9b7['risk']!==_0x48857(0x11d))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':'rabetbase.write.completed','operation':_0x322cfb,'risk':_0x58f9b7[_0x48857(0x120)]}}};}function a258_0x521b(){var _0x2ac45d=['high-risk-write','2416590XxXgSG','7nalcDz','risk','split','filter','22vbjIfq','2154asGjHg','1838664TVILFL','service','2557575mMIbAG','write','66376xjyUmW','3349712nhJANy','20137190UxZdXR','4360wtEEwY'];a258_0x521b=function(){return _0x2ac45d;};return a258_0x521b();}
1
+ (function(_0x18665b,_0x20a979){var _0x38b5ac=a258_0x32e9,_0x493f4e=_0x18665b();while(!![]){try{var _0x253f75=-parseInt(_0x38b5ac(0x148))/0x1+parseInt(_0x38b5ac(0x14b))/0x2+parseInt(_0x38b5ac(0x154))/0x3+-parseInt(_0x38b5ac(0x155))/0x4*(-parseInt(_0x38b5ac(0x14c))/0x5)+parseInt(_0x38b5ac(0x151))/0x6*(parseInt(_0x38b5ac(0x14f))/0x7)+-parseInt(_0x38b5ac(0x14a))/0x8+parseInt(_0x38b5ac(0x149))/0x9*(parseInt(_0x38b5ac(0x157))/0xa);if(_0x253f75===_0x20a979)break;else _0x493f4e['push'](_0x493f4e['shift']());}catch(_0x889cdf){_0x493f4e['push'](_0x493f4e['shift']());}}}(a258_0x23c0,0x74121));function a258_0x23c0(){var _0x511c5f=['878943lyEHaZ','6966EwazIt','3942560vPvkGL','198878jVZIui','5ZxGFzw','command','trim','150094XAknUN','high-risk-write','48wAaPfC','rabetbase.write.completed','join','1364193aRoYFV','3027712pDshbe','filter','4710BaIpsj','risk','service'];a258_0x23c0=function(){return _0x511c5f;};return a258_0x23c0();}function a258_0x32e9(_0x36b6f6,_0x43ede3){_0x36b6f6=_0x36b6f6-0x148;var _0x23c020=a258_0x23c0();var _0x32e976=_0x23c020[_0x36b6f6];return _0x32e976;}export function canonicalRabetbaseOperation(_0x588988){var _0x1d21cc=a258_0x32e9;return[_0x588988[_0x1d21cc(0x159)],..._0x588988[_0x1d21cc(0x14d)][_0x1d21cc(0x14e)]()['split'](/\s+/)][_0x1d21cc(0x156)](Boolean)[_0x1d21cc(0x153)]('.');}export function createRabetbaseWriteMetadata(_0xe924ef,_0x512359,_0x57b25d,_0x281727){var _0x59083f=a258_0x32e9;if(_0x281727||_0x57b25d['ok']!==!![]||_0xe924ef[_0x59083f(0x158)]!=='write'&&_0xe924ef['risk']!==_0x59083f(0x150))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x59083f(0x152),'operation':_0x512359,'risk':_0xe924ef[_0x59083f(0x158)]}}};}
@@ -1 +1 @@
1
- (function(_0x353633,_0x5e05e2){const _0x2d63fb=a259_0x30af,_0xf95911=_0x353633();while(!![]){try{const _0x45c328=parseInt(_0x2d63fb(0xe9))/0x1*(parseInt(_0x2d63fb(0x103))/0x2)+-parseInt(_0x2d63fb(0xf9))/0x3*(-parseInt(_0x2d63fb(0xf1))/0x4)+parseInt(_0x2d63fb(0xe1))/0x5*(-parseInt(_0x2d63fb(0xee))/0x6)+parseInt(_0x2d63fb(0xf0))/0x7*(-parseInt(_0x2d63fb(0xe7))/0x8)+-parseInt(_0x2d63fb(0x100))/0x9+-parseInt(_0x2d63fb(0xf8))/0xa+-parseInt(_0x2d63fb(0xe0))/0xb*(-parseInt(_0x2d63fb(0xfe))/0xc);if(_0x45c328===_0x5e05e2)break;else _0xf95911['push'](_0xf95911['shift']());}catch(_0x2e6e8f){_0xf95911['push'](_0xf95911['shift']());}}}(a259_0x5492,0xb099f));function a259_0x30af(_0x2a4727,_0x392921){_0x2a4727=_0x2a4727-0xe0;const _0x5492c9=a259_0x5492();let _0x30afdb=_0x5492c9[_0x2a4727];return _0x30afdb;}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:_0x4b8a3b,command:_0x344a6d,risk:_0x91b1a1,dryRun:_0x46a4e9}){const _0x497c66=a259_0x30af;return JSON[_0x497c66(0xf7)]({'ok':_0x4b8a3b['ok'],'command':_0x344a6d,'risk':_0x91b1a1,..._0x46a4e9?{'dryRun':!![]}:{},..._0x4b8a3b[_0x497c66(0xeb)]!==undefined?{'data':_0x4b8a3b[_0x497c66(0xeb)]}:{},..._0x4b8a3b[_0x497c66(0xfa)]?{'message':_0x4b8a3b[_0x497c66(0xfa)]}:{}});}};export async function invokeRabetbase(_0x1c3ffc,_0x475ab8){const _0x5797f9=a259_0x30af;throwIfAborted(_0x475ab8[_0x5797f9(0xe2)]);const _0x5018d8=await resolveRabetbaseInvocation(_0x1c3ffc),_0x3014cc=canonicalRabetbaseOperation(_0x5018d8[_0x5797f9(0xf5)]);return await confirmWriteBeforeQueue(_0x5018d8[_0x5797f9(0xf5)],_0x5018d8[_0x5797f9(0xef)],_0x3014cc,_0x475ab8),runSerialized(async()=>{const _0x2e4477=_0x5797f9,_0x1ca892={};try{throwIfAborted(_0x475ab8[_0x2e4477(0xe2)]);const _0x404167=buildConfigFromFlags(_0x5018d8[_0x2e4477(0xef)]);await initGlobalEnvironment(_0x404167);const _0x1c2402=createPipelineEnv(_0x404167,{..._0x5018d8['rawFlags'],'yes':_0x5018d8[_0x2e4477(0xf5)][_0x2e4477(0xfc)]===_0x2e4477(0xfd)?!![]:_0x5018d8['rawFlags'][_0x2e4477(0xf6)],'nonInteractive':!![]},_0x5018d8[_0x2e4477(0xec)]);_0x1c2402[_0x2e4477(0xf3)]=!![],_0x1c2402['riskLevel']=_0x2e4477(0xfd);const _0x1ec5f1=withAbortSignal(_0x5018d8[_0x2e4477(0xf5)],_0x475ab8[_0x2e4477(0xe2)]),_0x4df162=createRabetbaseRunnerAdapter({'formatOutput'(_0x165152,_0xfa03aa){const _0x4c2136=_0x2e4477;_0x1ca892[_0x4c2136(0xe3)]=_0x165152,_0x1ca892[_0x4c2136(0xfb)]=_0xfa03aa[_0x4c2136(0xfb)],_0x1ca892[_0x4c2136(0xfc)]=_0xfa03aa['risk'],_0x1ca892['format']=_0xfa03aa[_0x4c2136(0xe5)],_0x1ca892[_0x4c2136(0xf4)]=_0xfa03aa[_0x4c2136(0xf4)]===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.');}});await runCommand(_0x1ec5f1,_0x1c2402,_0x4df162);if(!_0x1ca892[_0x2e4477(0xe3)]||!_0x1ca892[_0x2e4477(0xfb)]||!_0x1ca892[_0x2e4477(0xfc)]||!_0x1ca892[_0x2e4477(0xe5)])throw new Error(_0x2e4477(0x101));const _0xc9d858=_0x1ca892[_0x2e4477(0xf4)]===!![],_0x1d10af=_0x475ab8[_0x2e4477(0xe6)]??defaultPresentation,_0x3a9a6f={'result':_0x1ca892[_0x2e4477(0xe3)],'command':_0x1ca892[_0x2e4477(0xfb)],'operation':_0x3014cc,'risk':_0x1ca892[_0x2e4477(0xfc)],'format':_0x1ca892['format'],'dryRun':_0xc9d858},_0x1ed4e1=createRabetbaseWriteMetadata(_0x5018d8[_0x2e4477(0xf5)],_0x3014cc,_0x1ca892['result'],_0xc9d858);let _0x3a54e7;try{_0x3a54e7=await _0x1d10af[_0x2e4477(0xed)](_0x3a9a6f);}catch(_0xe313ae){if(!_0x1ed4e1||_0x1d10af===defaultPresentation)throw _0xe313ae;_0x3a54e7=await defaultPresentation[_0x2e4477(0xed)](_0x3a9a6f);}return{'operation':_0x3014cc,'risk':_0x1ca892[_0x2e4477(0xfc)],'mode':_0xc9d858?_0x2e4477(0xe8):_0x2e4477(0x102),'result':_0x1ca892['result'],'output':_0x3a54e7,..._0x1ed4e1?{'metadata':_0x1ed4e1}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x573a0e,_0x4fb3bc,_0x38eec2,_0x1b4470){const _0xeecf34=a259_0x30af;if(_0x4fb3bc['dryRun']===!![]||_0x573a0e[_0xeecf34(0xfc)]!==_0xeecf34(0xea)&&_0x573a0e[_0xeecf34(0xfc)]!==_0xeecf34(0xfd))return;await _0x1b4470[_0xeecf34(0x104)]['confirm'](buildRabetbaseConfirmationRequest(_0x573a0e,_0x38eec2,_0x1b4470[_0xeecf34(0xe2)]));}function a259_0x5492(){const _0x540e1f=['reason','format','presentation','24fxaFMT','dry-run','23798NCWCxq','write','data','args','present','102HlTQIG','rawFlags','973651XaeOLI','5188756FeXAks','Rabetbase\x20invocation\x20aborted.','isNonInteractive','dryRun','definition','yes','stringify','1753840ckGyes','3vvlPpl','message','command','risk','high-risk-write','3393072usfahP','AbortError','6973020mFNaGj','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','execute','34uZpLJb','confirmation','33qCWToG','135065ttdpok','signal','result'];a259_0x5492=function(){return _0x540e1f;};return a259_0x5492();}function withAbortSignal(_0xba6f54,_0x1f9d89){return{..._0xba6f54,async 'execute'(_0x222428){return throwIfAborted(_0x1f9d89),_0xba6f54['execute'](_0x222428);}};}function throwIfAborted(_0xa51eea){const _0xe65b0=a259_0x30af;if(_0xa51eea?.['aborted'])throw _0xa51eea[_0xe65b0(0xe4)]instanceof Error?_0xa51eea[_0xe65b0(0xe4)]:new DOMException(_0xe65b0(0xf2),_0xe65b0(0xff));}
1
+ (function(_0x2e0933,_0x4d8ed5){const _0x308bd5=a259_0x4751,_0x3d2a9a=_0x2e0933();while(!![]){try{const _0x14df4d=-parseInt(_0x308bd5(0x7b))/0x1*(-parseInt(_0x308bd5(0x80))/0x2)+parseInt(_0x308bd5(0x64))/0x3+parseInt(_0x308bd5(0x7f))/0x4+-parseInt(_0x308bd5(0x69))/0x5*(parseInt(_0x308bd5(0x7d))/0x6)+-parseInt(_0x308bd5(0x71))/0x7*(-parseInt(_0x308bd5(0x85))/0x8)+parseInt(_0x308bd5(0x74))/0x9*(-parseInt(_0x308bd5(0x6d))/0xa)+parseInt(_0x308bd5(0x78))/0xb*(-parseInt(_0x308bd5(0x6b))/0xc);if(_0x14df4d===_0x4d8ed5)break;else _0x3d2a9a['push'](_0x3d2a9a['shift']());}catch(_0x2989e5){_0x3d2a9a['push'](_0x3d2a9a['shift']());}}}(a259_0x5174,0x6ee35));function a259_0x5174(){const _0x14119f=['274CJtMWy','present','command','confirm','confirmation','66296NEozvv','signal','presentation','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','risk','dryRun','2660409gPwqZV','rawFlags','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','high-risk-write','Rabetbase\x20invocation\x20aborted.','25UxlwSb','AbortError','12eYDOzL','execute','1094230eJidUM','definition','riskLevel','dry-run','595xLwzmj','message','yes','63CYcFYJ','result','data','format','7886813zfgWaT','reason','args','4807AvSYCM','aborted','1045326NOQSmr','stringify','2233956QKKiRX'];a259_0x5174=function(){return _0x14119f;};return a259_0x5174();}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:_0x320993,command:_0x9af039,risk:_0x139207,dryRun:_0x4170db}){const _0xadbf=a259_0x4751;return JSON[_0xadbf(0x7e)]({'ok':_0x320993['ok'],'command':_0x9af039,'risk':_0x139207,..._0x4170db?{'dryRun':!![]}:{},..._0x320993[_0xadbf(0x76)]!==undefined?{'data':_0x320993[_0xadbf(0x76)]}:{},..._0x320993[_0xadbf(0x72)]?{'message':_0x320993['message']}:{}});}};export async function invokeRabetbase(_0xbe29ee,_0x3e5818){const _0x43a45d=a259_0x4751;throwIfAborted(_0x3e5818[_0x43a45d(0x86)]);const _0x597454=await resolveRabetbaseInvocation(_0xbe29ee),_0x2cf0b5=canonicalRabetbaseOperation(_0x597454[_0x43a45d(0x6e)]);return await confirmWriteBeforeQueue(_0x597454[_0x43a45d(0x6e)],_0x597454[_0x43a45d(0x65)],_0x2cf0b5,_0x3e5818),runSerialized(async()=>{const _0x2b63b9=_0x43a45d,_0x1333e7={};try{throwIfAborted(_0x3e5818[_0x2b63b9(0x86)]);const _0x518350=buildConfigFromFlags(_0x597454['rawFlags']);await initGlobalEnvironment(_0x518350);const _0x1b228d=createPipelineEnv(_0x518350,{..._0x597454[_0x2b63b9(0x65)],'yes':_0x597454[_0x2b63b9(0x6e)][_0x2b63b9(0x89)]===_0x2b63b9(0x67)?!![]:_0x597454[_0x2b63b9(0x65)][_0x2b63b9(0x73)],'nonInteractive':!![]},_0x597454[_0x2b63b9(0x7a)]);_0x1b228d['isNonInteractive']=!![],_0x1b228d[_0x2b63b9(0x6f)]=_0x2b63b9(0x67);const _0x265b32=withAbortSignal(_0x597454[_0x2b63b9(0x6e)],_0x3e5818[_0x2b63b9(0x86)]),_0x2199a2=createRabetbaseRunnerAdapter({'formatOutput'(_0x2d81bc,_0x5a5767){const _0xa5472a=_0x2b63b9;_0x1333e7['result']=_0x2d81bc,_0x1333e7[_0xa5472a(0x82)]=_0x5a5767[_0xa5472a(0x82)],_0x1333e7['risk']=_0x5a5767[_0xa5472a(0x89)],_0x1333e7[_0xa5472a(0x77)]=_0x5a5767[_0xa5472a(0x77)],_0x1333e7[_0xa5472a(0x8a)]=_0x5a5767[_0xa5472a(0x8a)]===!![];},async 'confirmHighRisk'(){const _0x352e46=_0x2b63b9;throw new Error(_0x352e46(0x88));}});await runCommand(_0x265b32,_0x1b228d,_0x2199a2);if(!_0x1333e7[_0x2b63b9(0x75)]||!_0x1333e7[_0x2b63b9(0x82)]||!_0x1333e7[_0x2b63b9(0x89)]||!_0x1333e7[_0x2b63b9(0x77)])throw new Error(_0x2b63b9(0x66));const _0x417d68=_0x1333e7['dryRun']===!![],_0xc8f391=_0x3e5818[_0x2b63b9(0x87)]??defaultPresentation,_0x459e25={'result':_0x1333e7[_0x2b63b9(0x75)],'command':_0x1333e7[_0x2b63b9(0x82)],'operation':_0x2cf0b5,'risk':_0x1333e7[_0x2b63b9(0x89)],'format':_0x1333e7[_0x2b63b9(0x77)],'dryRun':_0x417d68},_0x4d7b3a=createRabetbaseWriteMetadata(_0x597454[_0x2b63b9(0x6e)],_0x2cf0b5,_0x1333e7[_0x2b63b9(0x75)],_0x417d68);let _0x5a2f02;try{_0x5a2f02=await _0xc8f391[_0x2b63b9(0x81)](_0x459e25);}catch(_0x54ec8b){if(!_0x4d7b3a||_0xc8f391===defaultPresentation)throw _0x54ec8b;_0x5a2f02=await defaultPresentation[_0x2b63b9(0x81)](_0x459e25);}return{'operation':_0x2cf0b5,'risk':_0x1333e7[_0x2b63b9(0x89)],'mode':_0x417d68?_0x2b63b9(0x70):'execute','result':_0x1333e7[_0x2b63b9(0x75)],'output':_0x5a2f02,..._0x4d7b3a?{'metadata':_0x4d7b3a}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}function a259_0x4751(_0x57e6fd,_0xbb8f2d){_0x57e6fd=_0x57e6fd-0x64;const _0x51746e=a259_0x5174();let _0x475111=_0x51746e[_0x57e6fd];return _0x475111;}async function confirmWriteBeforeQueue(_0x458dcd,_0x370f48,_0x1483b5,_0x5881ff){const _0x274ef5=a259_0x4751;if(_0x370f48['dryRun']===!![]||_0x458dcd[_0x274ef5(0x89)]!=='write'&&_0x458dcd[_0x274ef5(0x89)]!==_0x274ef5(0x67))return;await _0x5881ff[_0x274ef5(0x84)][_0x274ef5(0x83)](buildRabetbaseConfirmationRequest(_0x458dcd,_0x1483b5,_0x5881ff['signal']));}function withAbortSignal(_0x43e8b2,_0x2f90b8){return{..._0x43e8b2,async 'execute'(_0x1562aa){const _0x43f0f3=a259_0x4751;return throwIfAborted(_0x2f90b8),_0x43e8b2[_0x43f0f3(0x6c)](_0x1562aa);}};}function throwIfAborted(_0x27822f){const _0x12aeac=a259_0x4751;if(_0x27822f?.[_0x12aeac(0x7c)])throw _0x27822f[_0x12aeac(0x79)]instanceof Error?_0x27822f[_0x12aeac(0x79)]:new DOMException(_0x12aeac(0x68),_0x12aeac(0x6a));}
@@ -1 +1 @@
1
- function a260_0x2227(_0x21e3f2,_0x5a1111){_0x21e3f2=_0x21e3f2-0x120;const _0x3ea461=a260_0x3ea4();let _0x2227d4=_0x3ea461[_0x21e3f2];return _0x2227d4;}const a260_0x508d3d=a260_0x2227;(function(_0x15cc52,_0xc2179f){const _0x2587f6=a260_0x2227,_0x59bad1=_0x15cc52();while(!![]){try{const _0xa205a3=parseInt(_0x2587f6(0x127))/0x1+-parseInt(_0x2587f6(0x123))/0x2*(parseInt(_0x2587f6(0x124))/0x3)+parseInt(_0x2587f6(0x125))/0x4*(parseInt(_0x2587f6(0x122))/0x5)+parseInt(_0x2587f6(0x126))/0x6*(parseInt(_0x2587f6(0x129))/0x7)+-parseInt(_0x2587f6(0x121))/0x8+-parseInt(_0x2587f6(0x128))/0x9*(parseInt(_0x2587f6(0x12c))/0xa)+parseInt(_0x2587f6(0x12b))/0xb*(parseInt(_0x2587f6(0x120))/0xc);if(_0xa205a3===_0xc2179f)break;else _0x59bad1['push'](_0x59bad1['shift']());}catch(_0x44865d){_0x59bad1['push'](_0x59bad1['shift']());}}}(a260_0x3ea4,0xcdd1b));function a260_0x3ea4(){const _0x16ff85=['15NftBzk','2nKPkTj','2606076JSCFPJ','1199704IcocCv','23832lcVFLP','1225566vxiZaE','765XTWebV','2555CscPPN','resolve','66ysFDeQ','145130zyucMP','catch','743472ugFdpP','8012224TyuGgZ'];a260_0x3ea4=function(){return _0x16ff85;};return a260_0x3ea4();}let tail=Promise[a260_0x508d3d(0x12a)]();export async function runSerialized(_0x24af6e){const _0x1b268c=a260_0x508d3d,_0x255517=tail;let _0x1642eb;tail=new Promise(_0x47f9a7=>{_0x1642eb=_0x47f9a7;}),await _0x255517[_0x1b268c(0x12d)](()=>undefined);try{return await _0x24af6e();}finally{_0x1642eb();}}
1
+ (function(_0x233adf,_0xc535da){const _0x2c2a43=a260_0x10c5,_0xdc1bec=_0x233adf();while(!![]){try{const _0x3809b5=-parseInt(_0x2c2a43(0x1d4))/0x1*(-parseInt(_0x2c2a43(0x1d3))/0x2)+-parseInt(_0x2c2a43(0x1d7))/0x3*(parseInt(_0x2c2a43(0x1d8))/0x4)+parseInt(_0x2c2a43(0x1d5))/0x5*(-parseInt(_0x2c2a43(0x1cd))/0x6)+-parseInt(_0x2c2a43(0x1d1))/0x7+-parseInt(_0x2c2a43(0x1ce))/0x8+parseInt(_0x2c2a43(0x1d0))/0x9+-parseInt(_0x2c2a43(0x1d6))/0xa*(-parseInt(_0x2c2a43(0x1cf))/0xb);if(_0x3809b5===_0xc535da)break;else _0xdc1bec['push'](_0xdc1bec['shift']());}catch(_0x136f9a){_0xdc1bec['push'](_0xdc1bec['shift']());}}}(a260_0x40e2,0x66ed2));function a260_0x40e2(){const _0x9c1c3f=['4778586oWIZzf','4483409tVKroR','catch','842IrIccn','1753XZRqaZ','120515JLCSoQ','60380wAhlXR','15BKkIxi','430620zJrYzu','84eaaxhj','1267064absuPj','1507kpeprp'];a260_0x40e2=function(){return _0x9c1c3f;};return a260_0x40e2();}function a260_0x10c5(_0x4f011e,_0x57e774){_0x4f011e=_0x4f011e-0x1cd;const _0x40e2c1=a260_0x40e2();let _0x10c53a=_0x40e2c1[_0x4f011e];return _0x10c53a;}let tail=Promise['resolve']();export async function runSerialized(_0x36ae79){const _0x4d2494=a260_0x10c5,_0x16f931=tail;let _0x223c3b;tail=new Promise(_0x1a6692=>{_0x223c3b=_0x1a6692;}),await _0x16f931[_0x4d2494(0x1d2)](()=>undefined);try{return await _0x36ae79();}finally{_0x223c3b();}}
@@ -1 +1 @@
1
- (function(_0x37b8e7,_0x455f50){const _0x372248=a261_0x3cd0,_0x20635a=_0x37b8e7();while(!![]){try{const _0x160fe2=parseInt(_0x372248(0x149))/0x1+parseInt(_0x372248(0x143))/0x2+parseInt(_0x372248(0x14d))/0x3*(parseInt(_0x372248(0x141))/0x4)+-parseInt(_0x372248(0x13e))/0x5*(parseInt(_0x372248(0x13d))/0x6)+parseInt(_0x372248(0x146))/0x7*(parseInt(_0x372248(0x142))/0x8)+-parseInt(_0x372248(0x144))/0x9*(-parseInt(_0x372248(0x14a))/0xa)+-parseInt(_0x372248(0x151))/0xb;if(_0x160fe2===_0x455f50)break;else _0x20635a['push'](_0x20635a['shift']());}catch(_0x4fa381){_0x20635a['push'](_0x20635a['shift']());}}}(a261_0x4be1,0x8d9bf));import a261_0x160dac from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';function a261_0x3cd0(_0x2c2d3b,_0x92c33d){_0x2c2d3b=_0x2c2d3b-0x13d;const _0x4be19f=a261_0x4be1();let _0x3cd008=_0x4be19f[_0x2c2d3b];return _0x3cd008;}function a261_0x4be1(){const _0x346e44=['583694JcKeWt','3502690AAdgBR','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','validation','9lHFoGj','hint','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','defaultCommand','18730140ysPyQs','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','message','wildcardDef','133404ihgQqL','245MBleZb','input','unknownCommand','582980EEhDTP','328MJkZxI','2310090dtJXDV','9fAHFgv','run','144438jHJsOg','slice','flags'];a261_0x4be1=function(){return _0x346e44;};return a261_0x4be1();}import{CliErrors}from'../errors.js';export async function resolveRabetbaseInvocation(_0x42aca5){const _0x1455fb=a261_0x3cd0,_0x16a441=a261_0x160dac('',{'importMeta':import.meta,'argv':[..._0x42aca5],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x438b5f=[..._0x16a441[_0x1455fb(0x13f)]],_0x424576=_0x16a441[_0x1455fb(0x148)],_0x3659c7=_0x438b5f[0x0];if(!_0x3659c7)throw CliErrors[_0x1455fb(0x14c)](_0x1455fb(0x152));const _0x4077e7=resolveRemovedCommand(_0x3659c7,_0x438b5f[0x1]);if(_0x4077e7)throw CliErrors['validation'](_0x4077e7[_0x1455fb(0x153)],_0x4077e7[_0x1455fb(0x14e)]);if(_0x3659c7===_0x1455fb(0x145))throw CliErrors[_0x1455fb(0x14c)](_0x1455fb(0x14b),_0x1455fb(0x14f));if(!isKnownService(_0x3659c7))throw CliErrors[_0x1455fb(0x140)](_0x438b5f['join']('\x20'));const _0x569e78=getServiceEntry(_0x3659c7),_0x4da996=_0x438b5f[0x1],_0x1cd45e=_0x4da996||_0x569e78[_0x1455fb(0x150)];if(!_0x1cd45e){if(_0x569e78[_0x1455fb(0x154)])return{'definition':_0x569e78[_0x1455fb(0x154)],'rawFlags':_0x424576,'args':[]};throw CliErrors[_0x1455fb(0x14c)]('Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x3659c7+'\x22.');}const _0x21f1fa=findDefinition(_0x3659c7,_0x1cd45e);if(_0x21f1fa)return{'definition':_0x21f1fa,'rawFlags':_0x424576,'args':_0x438b5f[_0x1455fb(0x147)](0x2)};if(_0x569e78['wildcardDef'])return{'definition':_0x569e78[_0x1455fb(0x154)],'rawFlags':_0x424576,'args':[_0x1cd45e,..._0x438b5f[_0x1455fb(0x147)](0x2)]};throw CliErrors[_0x1455fb(0x140)](_0x3659c7+'\x20'+_0x1cd45e);}
1
+ function a261_0x36d9(){const _0x70fd21=['input','16831750CJenTm','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','unknownCommand','join','222246udCxTU','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','message','12cxwEnz','208855iyXdWN','run','8ehbiQN','108aDrKfY','validation','148698ErdMLX','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','defaultCommand','1235511gzZFgd','273623aPNEJV','slice','wildcardDef','2345715XChPPb'];a261_0x36d9=function(){return _0x70fd21;};return a261_0x36d9();}(function(_0x40cb36,_0x3219b4){const _0x496921=a261_0x366e,_0x13b480=_0x40cb36();while(!![]){try{const _0x12fc28=-parseInt(_0x496921(0x115))/0x1+parseInt(_0x496921(0x11a))/0x2+-parseInt(_0x496921(0x127))/0x3*(-parseInt(_0x496921(0x114))/0x4)+-parseInt(_0x496921(0x121))/0x5+-parseInt(_0x496921(0x118))/0x6*(parseInt(_0x496921(0x11e))/0x7)+-parseInt(_0x496921(0x117))/0x8*(parseInt(_0x496921(0x11d))/0x9)+parseInt(_0x496921(0x123))/0xa;if(_0x12fc28===_0x3219b4)break;else _0x13b480['push'](_0x13b480['shift']());}catch(_0x23811a){_0x13b480['push'](_0x13b480['shift']());}}}(a261_0x36d9,0x7085b));import a261_0x4744af from'meow';function a261_0x366e(_0x41cee4,_0x14c469){_0x41cee4=_0x41cee4-0x114;const _0x36d92c=a261_0x36d9();let _0x366ec7=_0x36d92c[_0x41cee4];return _0x366ec7;}import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveRabetbaseInvocation(_0xe3044){const _0x70463a=a261_0x366e,_0x5859f0=a261_0x4744af('',{'importMeta':import.meta,'argv':[..._0xe3044],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x5b80ee=[..._0x5859f0[_0x70463a(0x122)]],_0x519c0a=_0x5859f0['flags'],_0x598e19=_0x5b80ee[0x0];if(!_0x598e19)throw CliErrors[_0x70463a(0x119)](_0x70463a(0x128));const _0x348ec4=resolveRemovedCommand(_0x598e19,_0x5b80ee[0x1]);if(_0x348ec4)throw CliErrors[_0x70463a(0x119)](_0x348ec4[_0x70463a(0x129)],_0x348ec4['hint']);if(_0x598e19===_0x70463a(0x116))throw CliErrors[_0x70463a(0x119)](_0x70463a(0x124),_0x70463a(0x11b));if(!isKnownService(_0x598e19))throw CliErrors['unknownCommand'](_0x5b80ee[_0x70463a(0x126)]('\x20'));const _0x5b8b77=getServiceEntry(_0x598e19),_0x4a62bb=_0x5b80ee[0x1],_0x3270e2=_0x4a62bb||_0x5b8b77[_0x70463a(0x11c)];if(!_0x3270e2){if(_0x5b8b77['wildcardDef'])return{'definition':_0x5b8b77[_0x70463a(0x120)],'rawFlags':_0x519c0a,'args':[]};throw CliErrors[_0x70463a(0x119)]('Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x598e19+'\x22.');}const _0x2fd5e4=findDefinition(_0x598e19,_0x3270e2);if(_0x2fd5e4)return{'definition':_0x2fd5e4,'rawFlags':_0x519c0a,'args':_0x5b80ee[_0x70463a(0x11f)](0x2)};if(_0x5b8b77[_0x70463a(0x120)])return{'definition':_0x5b8b77[_0x70463a(0x120)],'rawFlags':_0x519c0a,'args':[_0x3270e2,..._0x5b80ee[_0x70463a(0x11f)](0x2)]};throw CliErrors[_0x70463a(0x125)](_0x598e19+'\x20'+_0x3270e2);}
@@ -1 +1 @@
1
- const a263_0x30636b=a263_0x1541;(function(_0xe9e77d,_0x3bdae4){const _0x592caf=a263_0x1541,_0x1411e8=_0xe9e77d();while(!![]){try{const _0x56f352=-parseInt(_0x592caf(0xb2))/0x1*(-parseInt(_0x592caf(0x7c))/0x2)+parseInt(_0x592caf(0x85))/0x3*(parseInt(_0x592caf(0x86))/0x4)+-parseInt(_0x592caf(0x7d))/0x5+parseInt(_0x592caf(0x82))/0x6*(-parseInt(_0x592caf(0xb0))/0x7)+-parseInt(_0x592caf(0x8a))/0x8*(parseInt(_0x592caf(0x8f))/0x9)+parseInt(_0x592caf(0xba))/0xa+parseInt(_0x592caf(0xb9))/0xb*(parseInt(_0x592caf(0xb1))/0xc);if(_0x56f352===_0x3bdae4)break;else _0x1411e8['push'](_0x1411e8['shift']());}catch(_0x2c7f59){_0x1411e8['push'](_0x1411e8['shift']());}}}(a263_0x1a9b,0x3bd25));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';function a263_0x1a9b(){const _0x441b13=['unverifiable','status','installedPath','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','content_mismatch','hex','Installed\x20Skill\x20state\x20is\x20','Symbolic\x20link\x20is\x20not\x20allowed:\x20','utf8','state','package.json','error','present','startsWith','140693xwZDks','5580DWCHFP','185aoeWGt','path','flatMap','rabetbase\x20cli-skill\x20install','skipped','parse','schemaVersion','8382EnmoSZ','2307040sjjhGu','isFile','Unsupported\x20Skill\x20entry:\x20','update','length','current','skillVersion','includes','isSymbolicLink','3506cQjlFg','487865dxIQQK','Unsafe\x20manifest\x20path:\x20','SKILL.md','home','VERIFY_FAILED','132QbLtEg','reason',':\x5cs*(.+)$','597lCrVqp','4388johWHt','SOURCE_INVALID','skills@latest\x20exited\x20','join','104qCoeKE','absent','missing','unknown','split','237366SGKhQt','packageRoot','rabetbase','packageVersion','every','message','files','manifest','skills','INSTALL_FAILED','stdio','rabetbase.manifest.json','digest','version_mismatch','isDirectory','name','version','sha256','pipe'];a263_0x1a9b=function(){return _0x441b13;};return a263_0x1a9b();}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=a263_0x30636b(0xb5),SKILL_NAME=a263_0x30636b(0x91);function frontmatterValue(_0x2b1025,_0x697ec4){const _0x150506=a263_0x30636b;return _0x2b1025['match'](new RegExp('^'+_0x697ec4+_0x150506(0x84),'m'))?.[0x1]?.['trim']()??'';}function a263_0x1541(_0x7e8aa7,_0x351770){_0x7e8aa7=_0x7e8aa7-0x75;const _0x1a9bd8=a263_0x1a9b();let _0x15417b=_0x1a9bd8[_0x7e8aa7];return _0x15417b;}function listFiles(_0xbb6da,_0x4aa1e6=_0xbb6da){const _0x78c92c=a263_0x30636b;return readdirSync(_0x4aa1e6,{'withFileTypes':!![]})[_0x78c92c(0xb4)](_0x4f3e0c=>{const _0x1e854d=_0x78c92c,_0xca6d2d=join(_0x4aa1e6,_0x4f3e0c[_0x1e854d(0x9e)]),_0x4536a4=lstatSync(_0xca6d2d);if(_0x4536a4[_0x1e854d(0x7b)]())throw new Error(_0x1e854d(0xa9)+_0xca6d2d);if(_0x4536a4[_0x1e854d(0x9d)]())return listFiles(_0xbb6da,_0xca6d2d);if(!_0x4536a4[_0x1e854d(0xbb)]())throw new Error(_0x1e854d(0x75)+_0xca6d2d);return[relative(_0xbb6da,_0xca6d2d)[_0x1e854d(0x8e)](sep)[_0x1e854d(0x89)]('/')];})['sort']((_0x533163,_0x12505b)=>_0x533163<_0x12505b?-0x1:_0x533163>_0x12505b?0x1:0x0);}function digestFiles(_0x50f0ad,_0x4a49d3){const _0x4a1394=a263_0x30636b,_0x41f291=createHash(_0x4a1394(0xa0));for(const _0x3524e9 of _0x4a49d3){if(_0x3524e9[_0x4a1394(0xaf)]('/')||_0x3524e9[_0x4a1394(0x8e)]('/')[_0x4a1394(0x7a)]('..')||_0x3524e9[_0x4a1394(0x7a)]('\x5c'))throw new Error(_0x4a1394(0x7e)+_0x3524e9);_0x41f291[_0x4a1394(0x76)](_0x3524e9),_0x41f291[_0x4a1394(0x76)]('\x00'),_0x41f291[_0x4a1394(0x76)](readFileSync(join(_0x50f0ad,..._0x3524e9[_0x4a1394(0x8e)]('/')))),_0x41f291[_0x4a1394(0x76)]('\x00');}return _0x41f291[_0x4a1394(0x9b)](_0x4a1394(0xa7));}function sameFiles(_0x443d7b,_0x12d023){const _0x23812d=a263_0x30636b;return _0x443d7b['length']===_0x12d023[_0x23812d(0x77)]&&_0x443d7b[_0x23812d(0x93)]((_0x23cb9b,_0xc9a00c)=>_0x23cb9b===_0x12d023[_0xc9a00c]);}function readSource(_0x60e339){const _0x49eb2b=a263_0x30636b,_0x3bdb2f=JSON[_0x49eb2b(0xb7)](readFileSync(join(_0x60e339,_0x49eb2b(0xac)),_0x49eb2b(0xaa))),_0x6030c=JSON[_0x49eb2b(0xb7)](readFileSync(join(_0x60e339,_0x49eb2b(0x97),_0x49eb2b(0x9a)),_0x49eb2b(0xaa))),_0xc06c8d=join(_0x60e339,_0x49eb2b(0x97),SKILL_NAME),_0x39efe6=frontmatterValue(readFileSync(join(_0xc06c8d,_0x49eb2b(0x7f)),'utf8'),_0x49eb2b(0x9f)),_0x7a4a96=listFiles(_0xc06c8d);if(_0x6030c[_0x49eb2b(0xb8)]!==0x1||_0x6030c['name']!==SKILL_NAME||!_0x3bdb2f['version']||_0x6030c['packageVersion']!==_0x3bdb2f[_0x49eb2b(0x9f)]||_0x6030c[_0x49eb2b(0x79)]!==_0x3bdb2f[_0x49eb2b(0x9f)]||_0x39efe6!==_0x3bdb2f['version']||!sameFiles(_0x7a4a96,_0x6030c[_0x49eb2b(0x95)])||digestFiles(_0xc06c8d,_0x7a4a96)!==_0x6030c[_0x49eb2b(0x9b)])throw new Error(_0x49eb2b(0xa5));return{'packageVersion':_0x3bdb2f[_0x49eb2b(0x9f)],'skillVersion':_0x39efe6,'root':_0xc06c8d,'manifest':_0x6030c};}function installedSkillPath(_0x2728df){const _0x205abf=a263_0x30636b,_0x4914e6=resolveInstalledSkill(SKILL_NAME,{'home':_0x2728df});if(_0x4914e6[_0x205abf(0xab)]===_0x205abf(0xae))return{'state':_0x205abf(0xae),'path':dirname(_0x4914e6[_0x205abf(0xb3)])};if(_0x4914e6[_0x205abf(0xab)]===_0x205abf(0x8b))return{'state':'missing'};return{'state':'unverifiable','reason':_0x4914e6[_0x205abf(0x83)]};}export function inspectInstalledBuiltinSkillVersion(_0x2f0d4c,_0x15da93={}){const _0x58bf9c=a263_0x30636b,_0x4e8340=installedSkillPath(_0x15da93[_0x58bf9c(0x80)]??homedir());if(_0x4e8340[_0x58bf9c(0xab)]==='missing')return{'state':'missing','expectedVersion':_0x2f0d4c,'repairCommand':REPAIR_COMMAND};if(_0x4e8340[_0x58bf9c(0xab)]===_0x58bf9c(0xa2))return{'state':_0x58bf9c(0xa2),'expectedVersion':_0x2f0d4c,'reason':_0x4e8340['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x2f604a=frontmatterValue(readFileSync(join(_0x4e8340[_0x58bf9c(0xb3)],_0x58bf9c(0x7f)),_0x58bf9c(0xaa)),'version');return{'state':_0x2f604a===_0x2f0d4c?_0x58bf9c(0x78):'version_mismatch','expectedVersion':_0x2f0d4c,'skillVersion':_0x2f604a,'installedPath':_0x4e8340[_0x58bf9c(0xb3)],'repairCommand':REPAIR_COMMAND};}catch(_0x3482bb){return{'state':_0x58bf9c(0xa2),'expectedVersion':_0x2f0d4c,'installedPath':_0x4e8340[_0x58bf9c(0xb3)],'reason':_0x3482bb instanceof Error?_0x3482bb['message']:String(_0x3482bb),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x1c5da3={}){const _0x3277d4=a263_0x30636b,_0x279133=_0x1c5da3['packageRoot']??DEFAULT_PACKAGE_ROOT;let _0x334108;try{_0x334108=readSource(_0x279133);}catch(_0x1c27fe){return{'state':_0x3277d4(0xa2),'packageVersion':_0x3277d4(0x8d),'reason':_0x1c27fe instanceof Error?_0x1c27fe['message']:String(_0x1c27fe),'repairCommand':REPAIR_COMMAND};}const _0x343fb3=installedSkillPath(_0x1c5da3[_0x3277d4(0x80)]??homedir());if(_0x343fb3[_0x3277d4(0xab)]===_0x3277d4(0x8c))return{'state':_0x3277d4(0x8c),'packageVersion':_0x334108['packageVersion'],'repairCommand':REPAIR_COMMAND};if(_0x343fb3[_0x3277d4(0xab)]==='unverifiable')return{'state':_0x3277d4(0xa2),'packageVersion':_0x334108['packageVersion'],'reason':_0x343fb3['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x458cfa=frontmatterValue(readFileSync(join(_0x343fb3[_0x3277d4(0xb3)],'SKILL.md'),_0x3277d4(0xaa)),'version');if(_0x458cfa!==_0x334108[_0x3277d4(0x79)])return{'state':_0x3277d4(0x9c),'packageVersion':_0x334108[_0x3277d4(0x92)],'skillVersion':_0x458cfa,'installedPath':_0x343fb3[_0x3277d4(0xb3)],'repairCommand':REPAIR_COMMAND};const _0xb20976=listFiles(_0x343fb3[_0x3277d4(0xb3)]),_0x59b02d=digestFiles(_0x343fb3['path'],_0xb20976);return{'state':sameFiles(_0xb20976,_0x334108[_0x3277d4(0x96)][_0x3277d4(0x95)])&&_0x59b02d===_0x334108[_0x3277d4(0x96)][_0x3277d4(0x9b)]?_0x3277d4(0x78):_0x3277d4(0xa6),'packageVersion':_0x334108[_0x3277d4(0x92)],'skillVersion':_0x458cfa,'installedPath':_0x343fb3['path'],'digest':_0x59b02d,'repairCommand':REPAIR_COMMAND};}catch(_0x514bc0){return{'state':_0x3277d4(0xa2),'packageVersion':_0x334108['packageVersion'],'installedPath':_0x343fb3[_0x3277d4(0xb3)],'reason':_0x514bc0 instanceof Error?_0x514bc0[_0x3277d4(0x94)]:String(_0x514bc0),'repairCommand':REPAIR_COMMAND};}}function failure(_0x290fc5,_0x1c177c,_0x3a1d8d,_0x2733db){const _0x34e5ff=a263_0x30636b;return{'ok':![],'code':_0x290fc5,'packageVersion':_0x1c177c['packageVersion'],'skillVersion':_0x1c177c[_0x34e5ff(0x79)],'installedPath':_0x2733db,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x3a1d8d instanceof Error?_0x3a1d8d[_0x34e5ff(0x94)]:String(_0x3a1d8d)};}export function installBuiltinSkill(_0x4c7e5a={}){const _0x5e7cb4=a263_0x30636b,_0x228a8e=_0x4c7e5a[_0x5e7cb4(0x90)]??DEFAULT_PACKAGE_ROOT,_0x5989fb=_0x4c7e5a[_0x5e7cb4(0x80)]??homedir();let _0x1c380d;try{_0x1c380d=readSource(_0x228a8e);}catch(_0x3a20e4){return failure(_0x5e7cb4(0x87),{'packageVersion':_0x5e7cb4(0x8d),'skillVersion':'unknown'},_0x3a20e4);}const _0x3d4f6a=inspectBuiltinSkill({'packageRoot':_0x228a8e,'home':_0x5989fb}),_0x3f9d6f=runNpxSkillsAddGlobal(_0x228a8e,_0x1c380d['root'],{'stdio':_0x4c7e5a[_0x5e7cb4(0x99)]??_0x5e7cb4(0xa1),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x5989fb}});if(_0x3f9d6f[_0x5e7cb4(0xb6)])return{'ok':!![],'packageVersion':_0x1c380d[_0x5e7cb4(0x92)],'skillVersion':_0x1c380d[_0x5e7cb4(0x79)],'installedPath':_0x3d4f6a[_0x5e7cb4(0xa4)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x3f9d6f['ok'])return failure(_0x5e7cb4(0x98),_0x1c380d,_0x3f9d6f[_0x5e7cb4(0xad)]??_0x5e7cb4(0x88)+_0x3f9d6f[_0x5e7cb4(0xa3)]);const _0x5079a9=inspectBuiltinSkill({'packageRoot':_0x228a8e,'home':_0x5989fb});if(_0x5079a9[_0x5e7cb4(0xab)]!==_0x5e7cb4(0x78))return failure(_0x5e7cb4(0x81),_0x1c380d,_0x5079a9[_0x5e7cb4(0x83)]??_0x5e7cb4(0xa8)+_0x5079a9[_0x5e7cb4(0xab)],_0x5079a9[_0x5e7cb4(0xa4)]);return{'ok':!![],'packageVersion':_0x1c380d[_0x5e7cb4(0x92)],'skillVersion':_0x1c380d['skillVersion'],'installedPath':_0x5079a9['installedPath'],'changed':_0x3d4f6a[_0x5e7cb4(0xab)]!==_0x5e7cb4(0x78),'repairCommand':REPAIR_COMMAND};}
1
+ const a263_0x5c5fb0=a263_0x5b46;(function(_0xe60467,_0x32cac4){const _0x176abc=a263_0x5b46,_0x38d5c5=_0xe60467();while(!![]){try{const _0x3a712a=-parseInt(_0x176abc(0x98))/0x1+parseInt(_0x176abc(0x8f))/0x2*(parseInt(_0x176abc(0x93))/0x3)+-parseInt(_0x176abc(0xba))/0x4+-parseInt(_0x176abc(0xb0))/0x5+parseInt(_0x176abc(0xbb))/0x6*(parseInt(_0x176abc(0x87))/0x7)+parseInt(_0x176abc(0x8b))/0x8+parseInt(_0x176abc(0x8e))/0x9;if(_0x3a712a===_0x32cac4)break;else _0x38d5c5['push'](_0x38d5c5['shift']());}catch(_0x1f36ec){_0x38d5c5['push'](_0x38d5c5['shift']());}}}(a263_0x1521,0xc4a3e));function a263_0x1521(){const _0x1cbfcb=['digest','includes','schemaVersion','Unsafe\x20manifest\x20path:\x20','version_mismatch','SKILL.md','unknown','files','startsWith','status','Symbolic\x20link\x20is\x20not\x20allowed:\x20','package.json','utf8','trim','skills@latest\x20exited\x20','skills','flatMap',':\x5cs*(.+)$','skipped','Installed\x20Skill\x20state\x20is\x20','root','4604985rIcMRR','reason','split','message','name','INSTALL_FAILED','content_mismatch','SOURCE_INVALID','join','path','1080440vmKTTG','12jwroPf','packageRoot','skillVersion','present','state','length','unverifiable','isFile','sha256','packageVersion','4715144fngSMZ','match','home','installedPath','1782672JlMssA','version','every','1981620wXiGcW','8JftZFA','manifest','rabetbase.manifest.json','current','902532zdKhje','missing','rabetbase\x20cli-skill\x20install','hex','update','997029zEGjiZ','stdio','absent'];a263_0x1521=function(){return _0x1cbfcb;};return a263_0x1521();}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=a263_0x5c5fb0(0x95),SKILL_NAME='rabetbase';function frontmatterValue(_0x48afb3,_0x52ec0c){const _0x73d029=a263_0x5c5fb0;return _0x48afb3[_0x73d029(0x88)](new RegExp('^'+_0x52ec0c+_0x73d029(0xac),'m'))?.[0x1]?.[_0x73d029(0xa8)]()??'';}function listFiles(_0xe103a3,_0x2c2794=_0xe103a3){const _0x135bbd=a263_0x5c5fb0;return readdirSync(_0x2c2794,{'withFileTypes':!![]})[_0x135bbd(0xab)](_0x4f13e7=>{const _0x1b40ea=_0x135bbd,_0x3120d8=join(_0x2c2794,_0x4f13e7[_0x1b40ea(0xb4)]),_0x1b892d=lstatSync(_0x3120d8);if(_0x1b892d['isSymbolicLink']())throw new Error(_0x1b40ea(0xa5)+_0x3120d8);if(_0x1b892d['isDirectory']())return listFiles(_0xe103a3,_0x3120d8);if(!_0x1b892d[_0x1b40ea(0x84)]())throw new Error('Unsupported\x20Skill\x20entry:\x20'+_0x3120d8);return[relative(_0xe103a3,_0x3120d8)[_0x1b40ea(0xb2)](sep)[_0x1b40ea(0xb8)]('/')];})['sort']((_0x136413,_0x584b51)=>_0x136413<_0x584b51?-0x1:_0x136413>_0x584b51?0x1:0x0);}function digestFiles(_0x41aa22,_0x7e68b3){const _0x264687=a263_0x5c5fb0,_0x39315a=createHash(_0x264687(0x85));for(const _0x5b7b4a of _0x7e68b3){if(_0x5b7b4a[_0x264687(0xa3)]('/')||_0x5b7b4a['split']('/')[_0x264687(0x9c)]('..')||_0x5b7b4a['includes']('\x5c'))throw new Error(_0x264687(0x9e)+_0x5b7b4a);_0x39315a[_0x264687(0x97)](_0x5b7b4a),_0x39315a[_0x264687(0x97)]('\x00'),_0x39315a['update'](readFileSync(join(_0x41aa22,..._0x5b7b4a[_0x264687(0xb2)]('/')))),_0x39315a['update']('\x00');}return _0x39315a['digest'](_0x264687(0x96));}function sameFiles(_0x48a7d9,_0x135e63){const _0x166f71=a263_0x5c5fb0;return _0x48a7d9[_0x166f71(0xc0)]===_0x135e63[_0x166f71(0xc0)]&&_0x48a7d9[_0x166f71(0x8d)]((_0x512ec0,_0x5571e7)=>_0x512ec0===_0x135e63[_0x5571e7]);}function readSource(_0x1e2af6){const _0x2178ff=a263_0x5c5fb0,_0x30a57b=JSON['parse'](readFileSync(join(_0x1e2af6,_0x2178ff(0xa6)),_0x2178ff(0xa7))),_0x1d7197=JSON['parse'](readFileSync(join(_0x1e2af6,_0x2178ff(0xaa),_0x2178ff(0x91)),'utf8')),_0x280511=join(_0x1e2af6,_0x2178ff(0xaa),SKILL_NAME),_0x2c548f=frontmatterValue(readFileSync(join(_0x280511,_0x2178ff(0xa0)),_0x2178ff(0xa7)),'version'),_0x3479f6=listFiles(_0x280511);if(_0x1d7197[_0x2178ff(0x9d)]!==0x1||_0x1d7197['name']!==SKILL_NAME||!_0x30a57b[_0x2178ff(0x8c)]||_0x1d7197[_0x2178ff(0x86)]!==_0x30a57b[_0x2178ff(0x8c)]||_0x1d7197['skillVersion']!==_0x30a57b[_0x2178ff(0x8c)]||_0x2c548f!==_0x30a57b['version']||!sameFiles(_0x3479f6,_0x1d7197[_0x2178ff(0xa2)])||digestFiles(_0x280511,_0x3479f6)!==_0x1d7197[_0x2178ff(0x9b)])throw new Error('Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest');return{'packageVersion':_0x30a57b[_0x2178ff(0x8c)],'skillVersion':_0x2c548f,'root':_0x280511,'manifest':_0x1d7197};}function installedSkillPath(_0x4206bd){const _0x45afed=a263_0x5c5fb0,_0x3346f0=resolveInstalledSkill(SKILL_NAME,{'home':_0x4206bd});if(_0x3346f0[_0x45afed(0xbf)]===_0x45afed(0xbe))return{'state':_0x45afed(0xbe),'path':dirname(_0x3346f0[_0x45afed(0xb9)])};if(_0x3346f0[_0x45afed(0xbf)]===_0x45afed(0x9a))return{'state':'missing'};return{'state':_0x45afed(0x83),'reason':_0x3346f0[_0x45afed(0xb1)]};}function a263_0x5b46(_0x462f11,_0x1d4a21){_0x462f11=_0x462f11-0x83;const _0x15216c=a263_0x1521();let _0x5b4619=_0x15216c[_0x462f11];return _0x5b4619;}export function inspectInstalledBuiltinSkillVersion(_0x129892,_0x39c3c0={}){const _0x233edf=a263_0x5c5fb0,_0x26cf5e=installedSkillPath(_0x39c3c0[_0x233edf(0x89)]??homedir());if(_0x26cf5e[_0x233edf(0xbf)]===_0x233edf(0x94))return{'state':_0x233edf(0x94),'expectedVersion':_0x129892,'repairCommand':REPAIR_COMMAND};if(_0x26cf5e[_0x233edf(0xbf)]==='unverifiable')return{'state':_0x233edf(0x83),'expectedVersion':_0x129892,'reason':_0x26cf5e[_0x233edf(0xb1)],'repairCommand':REPAIR_COMMAND};try{const _0x28c455=frontmatterValue(readFileSync(join(_0x26cf5e[_0x233edf(0xb9)],_0x233edf(0xa0)),_0x233edf(0xa7)),_0x233edf(0x8c));return{'state':_0x28c455===_0x129892?'current':'version_mismatch','expectedVersion':_0x129892,'skillVersion':_0x28c455,'installedPath':_0x26cf5e[_0x233edf(0xb9)],'repairCommand':REPAIR_COMMAND};}catch(_0x27ab7e){return{'state':_0x233edf(0x83),'expectedVersion':_0x129892,'installedPath':_0x26cf5e[_0x233edf(0xb9)],'reason':_0x27ab7e instanceof Error?_0x27ab7e[_0x233edf(0xb3)]:String(_0x27ab7e),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x49c1be={}){const _0x2029fa=a263_0x5c5fb0,_0x1be3ee=_0x49c1be['packageRoot']??DEFAULT_PACKAGE_ROOT;let _0x22208c;try{_0x22208c=readSource(_0x1be3ee);}catch(_0xba0b1f){return{'state':_0x2029fa(0x83),'packageVersion':_0x2029fa(0xa1),'reason':_0xba0b1f instanceof Error?_0xba0b1f[_0x2029fa(0xb3)]:String(_0xba0b1f),'repairCommand':REPAIR_COMMAND};}const _0x24a403=installedSkillPath(_0x49c1be[_0x2029fa(0x89)]??homedir());if(_0x24a403[_0x2029fa(0xbf)]===_0x2029fa(0x94))return{'state':_0x2029fa(0x94),'packageVersion':_0x22208c[_0x2029fa(0x86)],'repairCommand':REPAIR_COMMAND};if(_0x24a403[_0x2029fa(0xbf)]===_0x2029fa(0x83))return{'state':_0x2029fa(0x83),'packageVersion':_0x22208c[_0x2029fa(0x86)],'reason':_0x24a403[_0x2029fa(0xb1)],'repairCommand':REPAIR_COMMAND};try{const _0x7260d4=frontmatterValue(readFileSync(join(_0x24a403[_0x2029fa(0xb9)],_0x2029fa(0xa0)),_0x2029fa(0xa7)),'version');if(_0x7260d4!==_0x22208c[_0x2029fa(0xbd)])return{'state':_0x2029fa(0x9f),'packageVersion':_0x22208c['packageVersion'],'skillVersion':_0x7260d4,'installedPath':_0x24a403[_0x2029fa(0xb9)],'repairCommand':REPAIR_COMMAND};const _0x49615c=listFiles(_0x24a403[_0x2029fa(0xb9)]),_0x4c0f10=digestFiles(_0x24a403[_0x2029fa(0xb9)],_0x49615c);return{'state':sameFiles(_0x49615c,_0x22208c[_0x2029fa(0x90)][_0x2029fa(0xa2)])&&_0x4c0f10===_0x22208c[_0x2029fa(0x90)][_0x2029fa(0x9b)]?_0x2029fa(0x92):_0x2029fa(0xb6),'packageVersion':_0x22208c[_0x2029fa(0x86)],'skillVersion':_0x7260d4,'installedPath':_0x24a403[_0x2029fa(0xb9)],'digest':_0x4c0f10,'repairCommand':REPAIR_COMMAND};}catch(_0x56a73b){return{'state':'unverifiable','packageVersion':_0x22208c[_0x2029fa(0x86)],'installedPath':_0x24a403['path'],'reason':_0x56a73b instanceof Error?_0x56a73b['message']:String(_0x56a73b),'repairCommand':REPAIR_COMMAND};}}function failure(_0x101a03,_0x860514,_0x29331e,_0x2f1a5c){const _0x25b75e=a263_0x5c5fb0;return{'ok':![],'code':_0x101a03,'packageVersion':_0x860514[_0x25b75e(0x86)],'skillVersion':_0x860514['skillVersion'],'installedPath':_0x2f1a5c,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x29331e instanceof Error?_0x29331e['message']:String(_0x29331e)};}export function installBuiltinSkill(_0x4fecf0={}){const _0xc02718=a263_0x5c5fb0,_0x595d74=_0x4fecf0[_0xc02718(0xbc)]??DEFAULT_PACKAGE_ROOT,_0x5b408e=_0x4fecf0[_0xc02718(0x89)]??homedir();let _0x3c4281;try{_0x3c4281=readSource(_0x595d74);}catch(_0x546ab8){return failure(_0xc02718(0xb7),{'packageVersion':_0xc02718(0xa1),'skillVersion':_0xc02718(0xa1)},_0x546ab8);}const _0x5049ef=inspectBuiltinSkill({'packageRoot':_0x595d74,'home':_0x5b408e}),_0xd99cd8=runNpxSkillsAddGlobal(_0x595d74,_0x3c4281[_0xc02718(0xaf)],{'stdio':_0x4fecf0[_0xc02718(0x99)]??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0x5b408e}});if(_0xd99cd8[_0xc02718(0xad)])return{'ok':!![],'packageVersion':_0x3c4281[_0xc02718(0x86)],'skillVersion':_0x3c4281[_0xc02718(0xbd)],'installedPath':_0x5049ef['installedPath'],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0xd99cd8['ok'])return failure(_0xc02718(0xb5),_0x3c4281,_0xd99cd8['error']??_0xc02718(0xa9)+_0xd99cd8[_0xc02718(0xa4)]);const _0x1b4e91=inspectBuiltinSkill({'packageRoot':_0x595d74,'home':_0x5b408e});if(_0x1b4e91[_0xc02718(0xbf)]!==_0xc02718(0x92))return failure('VERIFY_FAILED',_0x3c4281,_0x1b4e91[_0xc02718(0xb1)]??_0xc02718(0xae)+_0x1b4e91[_0xc02718(0xbf)],_0x1b4e91[_0xc02718(0x8a)]);return{'ok':!![],'packageVersion':_0x3c4281[_0xc02718(0x86)],'skillVersion':_0x3c4281['skillVersion'],'installedPath':_0x1b4e91[_0xc02718(0x8a)],'changed':_0x5049ef[_0xc02718(0xbf)]!=='current','repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
1
- (function(_0x1054d1,_0x24a00a){const _0x5d9659=a264_0x36cc,_0x54a6c2=_0x1054d1();while(!![]){try{const _0x45670f=-parseInt(_0x5d9659(0x8a))/0x1+-parseInt(_0x5d9659(0x90))/0x2+parseInt(_0x5d9659(0x7d))/0x3+parseInt(_0x5d9659(0x93))/0x4*(-parseInt(_0x5d9659(0x83))/0x5)+-parseInt(_0x5d9659(0x85))/0x6*(parseInt(_0x5d9659(0x8e))/0x7)+-parseInt(_0x5d9659(0x81))/0x8+parseInt(_0x5d9659(0x77))/0x9;if(_0x45670f===_0x24a00a)break;else _0x54a6c2['push'](_0x54a6c2['shift']());}catch(_0x334066){_0x54a6c2['push'](_0x54a6c2['shift']());}}}(a264_0x2b4d,0x2c588));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x54616f){const _0x370f67=a264_0x36cc,_0x4377d8=[];for(const [_0x5c7b8a,_0x2538cf]of Object[_0x370f67(0x7c)](_0x54616f)){if(_0x2538cf===!![]){const _0xeb902f=_0x5c7b8a[_0x370f67(0x78)](/([A-Z])/g,_0x370f67(0x7e))['toLowerCase']();_0x4377d8[_0x370f67(0x87)](_0xeb902f);}}return _0x4377d8;}export function parseDynamicFlags(){const _0x57dd4c=a264_0x36cc,_0x4443b8=[];for(let _0x242d1a=0x3;_0x242d1a<process[_0x57dd4c(0x7b)][_0x57dd4c(0x89)];_0x242d1a++){const _0x873feb=process[_0x57dd4c(0x7b)][_0x242d1a];if(_0x873feb&&_0x873feb[_0x57dd4c(0x82)]('--')){const _0x49838f=_0x873feb[_0x57dd4c(0x79)](0x2);_0x49838f&&!_0x49838f['includes']('=')&&_0x4443b8[_0x57dd4c(0x87)](_0x49838f);}}return _0x4443b8;}function a264_0x36cc(_0x314d2f,_0x1d5c69){_0x314d2f=_0x314d2f-0x77;const _0x2b4d62=a264_0x2b4d();let _0x36cc8d=_0x2b4d62[_0x314d2f];return _0x36cc8d;}export function getAllProvidedFlags(_0x5cd4e0){const _0x5ecd5d=a264_0x36cc,_0x109ef8=camelCaseFlagsToKebab(_0x5cd4e0),_0xc14568=parseDynamicFlags(),_0x3f04cf=new Set([..._0x109ef8,..._0xc14568]);return Array[_0x5ecd5d(0x8c)](_0x3f04cf);}function a264_0x2b4d(){const _0x164993=['--help','380418uPYDsH','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','push','exit','length','74293KVbKuZ','Public\x20Open\x20Skill\x20source:\x20','from','\x0aAvailable\x20commands:','28REWDuC','dangerously-bff-save','516758wiAjmz','enable-bff-save','log','190272UbhzXb','7604100DQwwnM','replace','slice','(empty)','argv','entries','579258NyKNCQ','-$1','error','has','1779952AIGLVb','startsWith','5LdXXfe'];a264_0x2b4d=function(){return _0x164993;};return a264_0x2b4d();}export function normalizeLegacyBffSaveFlags(_0x504983){const _0x34007c=a264_0x36cc,_0x504a31=new Set(_0x504983);return _0x504a31[_0x34007c(0x80)](_0x34007c(0x8f))&&_0x504a31['add'](_0x34007c(0x91)),Array[_0x34007c(0x8c)](_0x504a31);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x4f23a4,_0x35ef62,_0x2ce899){const _0x426ec5=a264_0x36cc;logger['setLogPath'](process['cwd']());if(_0x2ce899?.['help']||_0x4f23a4===_0x426ec5(0x84)){showHelp();return;}console['error']('Error:\x20Unsupported\x20command:\x20'+(_0x4f23a4||_0x426ec5(0x7a))),console[_0x426ec5(0x92)](_0x426ec5(0x8d)),console[_0x426ec5(0x92)]('\x20\x20'+CLI_BIN_NAME+_0x426ec5(0x86)),console['log'](''),console[_0x426ec5(0x92)](_0x426ec5(0x8b)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x426ec5(0x7f)]('skill','不支持的命令:\x20'+_0x4f23a4),process[_0x426ec5(0x88)](0x1);}function showHelp(){const _0x16ae77=a264_0x36cc;console[_0x16ae77(0x92)]('\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a');}
1
+ (function(_0x433651,_0x4418af){const _0x4164d5=a264_0x3109,_0x147f91=_0x433651();while(!![]){try{const _0x35303b=parseInt(_0x4164d5(0x7f))/0x1*(parseInt(_0x4164d5(0x73))/0x2)+-parseInt(_0x4164d5(0x82))/0x3+-parseInt(_0x4164d5(0x81))/0x4+parseInt(_0x4164d5(0x78))/0x5*(parseInt(_0x4164d5(0x87))/0x6)+parseInt(_0x4164d5(0x6f))/0x7*(-parseInt(_0x4164d5(0x7c))/0x8)+-parseInt(_0x4164d5(0x74))/0x9+parseInt(_0x4164d5(0x88))/0xa;if(_0x35303b===_0x4418af)break;else _0x147f91['push'](_0x147f91['shift']());}catch(_0x6dfbc8){_0x147f91['push'](_0x147f91['shift']());}}}(a264_0x30ce,0xab5c5));import{logger}from'../utils/logger.js';function a264_0x30ce(){const _0x1d550b=['2164fgKKUx','8982279yvoaHy','argv','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','slice','9235yWUISM','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','(empty)','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','1112UQVPwb','exit','dangerously-bff-save','227qgFUSw','\x0aAvailable\x20commands:','3329908eaCipW','3931398bvkXQO','push','error','startsWith','setLogPath','2148FXSmDa','37857340hfwffy','-$1','Error:\x20Unsupported\x20command:\x20','entries','log','enable-bff-save','toLowerCase','from','42791Fqzhta','--help','help','has'];a264_0x30ce=function(){return _0x1d550b;};return a264_0x30ce();}import{CLI_BIN_NAME}from'../constant/cli.js';function a264_0x3109(_0x11e1fe,_0x436469){_0x11e1fe=_0x11e1fe-0x6c;const _0x30cede=a264_0x30ce();let _0x310958=_0x30cede[_0x11e1fe];return _0x310958;}import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x160853){const _0x3474b2=a264_0x3109,_0x22353f=[];for(const [_0x22cc36,_0x31c747]of Object[_0x3474b2(0x8b)](_0x160853)){if(_0x31c747===!![]){const _0x4f8f4b=_0x22cc36['replace'](/([A-Z])/g,_0x3474b2(0x89))[_0x3474b2(0x6d)]();_0x22353f[_0x3474b2(0x83)](_0x4f8f4b);}}return _0x22353f;}export function parseDynamicFlags(){const _0x1ee08b=a264_0x3109,_0x466b84=[];for(let _0x5e3c5b=0x3;_0x5e3c5b<process[_0x1ee08b(0x75)]['length'];_0x5e3c5b++){const _0x3909a0=process[_0x1ee08b(0x75)][_0x5e3c5b];if(_0x3909a0&&_0x3909a0[_0x1ee08b(0x85)]('--')){const _0x557701=_0x3909a0[_0x1ee08b(0x77)](0x2);_0x557701&&!_0x557701['includes']('=')&&_0x466b84[_0x1ee08b(0x83)](_0x557701);}}return _0x466b84;}export function getAllProvidedFlags(_0x59dbe3){const _0x548600=camelCaseFlagsToKebab(_0x59dbe3),_0x2a64f7=parseDynamicFlags(),_0xc93070=new Set([..._0x548600,..._0x2a64f7]);return Array['from'](_0xc93070);}export function normalizeLegacyBffSaveFlags(_0x125fbb){const _0x48a274=a264_0x3109,_0x4fff37=new Set(_0x125fbb);return _0x4fff37[_0x48a274(0x72)](_0x48a274(0x7e))&&_0x4fff37['add'](_0x48a274(0x6c)),Array[_0x48a274(0x6e)](_0x4fff37);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x2bae48,_0xd92085,_0x2a0132){const _0xd95c69=a264_0x3109;logger[_0xd95c69(0x86)](process['cwd']());if(_0x2a0132?.[_0xd95c69(0x71)]||_0x2bae48===_0xd95c69(0x70)){showHelp();return;}console[_0xd95c69(0x84)](_0xd95c69(0x8a)+(_0x2bae48||_0xd95c69(0x7a))),console[_0xd95c69(0x8c)](_0xd95c69(0x80)),console[_0xd95c69(0x8c)]('\x20\x20'+CLI_BIN_NAME+_0xd95c69(0x79)),console[_0xd95c69(0x8c)](''),console[_0xd95c69(0x8c)]('Public\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0xd95c69(0x84)]('skill','Unsupported\x20command:\x20'+_0x2bae48),process[_0xd95c69(0x7d)](0x1);}function showHelp(){const _0x1f7cfd=a264_0x3109;console[_0x1f7cfd(0x8c)](_0x1f7cfd(0x76)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x1f7cfd(0x7b));}