@lovrabet/rabetbase-cli 2.4.7-beta.1 → 2.4.7

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 (329) hide show
  1. package/README.md +4 -4
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.d.ts +1 -1
  50. package/lib/commands/common/flags.js +1 -1
  51. package/lib/commands/common/local-file.js +1 -1
  52. package/lib/commands/common/validate.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/list.js +1 -1
  56. package/lib/commands/config/set.js +1 -1
  57. package/lib/commands/config/shared.js +1 -1
  58. package/lib/commands/data/filter.js +1 -1
  59. package/lib/commands/data/getOne.js +1 -1
  60. package/lib/commands/data/index.js +1 -1
  61. package/lib/commands/data/shared.js +1 -1
  62. package/lib/commands/dataset/business-group-update.js +1 -1
  63. package/lib/commands/dataset/business-groups.js +1 -1
  64. package/lib/commands/dataset/capability.js +1 -1
  65. package/lib/commands/dataset/delete.js +1 -1
  66. package/lib/commands/dataset/detail.js +1 -1
  67. package/lib/commands/dataset/extend-update.js +1 -1
  68. package/lib/commands/dataset/field-update.js +1 -1
  69. package/lib/commands/dataset/generate.js +1 -1
  70. package/lib/commands/dataset/index.js +1 -1
  71. package/lib/commands/dataset/list.js +1 -1
  72. package/lib/commands/dataset/operations.js +1 -1
  73. package/lib/commands/dataset/relation-audit.js +1 -1
  74. package/lib/commands/dataset/relation-create.js +1 -1
  75. package/lib/commands/dataset/relation-delete.js +1 -1
  76. package/lib/commands/dataset/relation-shared.js +1 -1
  77. package/lib/commands/dataset/relation-update.js +1 -1
  78. package/lib/commands/dataset/relations.js +1 -1
  79. package/lib/commands/dataset/rename.js +1 -1
  80. package/lib/commands/dataset/restore.js +1 -1
  81. package/lib/commands/db/analysis-batching.js +1 -1
  82. package/lib/commands/db/analyze-batch-plan.js +1 -1
  83. package/lib/commands/db/analyze-cancel.js +1 -1
  84. package/lib/commands/db/analyze-start.js +1 -1
  85. package/lib/commands/db/analyze-status.js +1 -1
  86. package/lib/commands/db/create.js +1 -1
  87. package/lib/commands/db/delete.js +1 -1
  88. package/lib/commands/db/detail.js +1 -1
  89. package/lib/commands/db/diff-refresh-start.js +1 -1
  90. package/lib/commands/db/diff-refresh-status.js +1 -1
  91. package/lib/commands/db/diff.js +1 -1
  92. package/lib/commands/db/index.js +1 -1
  93. package/lib/commands/db/list.js +1 -1
  94. package/lib/commands/db/shared.js +1 -1
  95. package/lib/commands/db/tables.js +1 -1
  96. package/lib/commands/db/test.js +1 -1
  97. package/lib/commands/db/update.js +1 -1
  98. package/lib/commands/doctor.js +1 -1
  99. package/lib/commands/file/index.js +1 -1
  100. package/lib/commands/init/index.js +1 -1
  101. package/lib/commands/issue/index.js +1 -1
  102. package/lib/commands/issue/nudge.js +1 -1
  103. package/lib/commands/issue/report.js +1 -1
  104. package/lib/commands/issue/shared.js +1 -1
  105. package/lib/commands/kb/create.js +1 -1
  106. package/lib/commands/kb/delete.js +1 -1
  107. package/lib/commands/kb/detail.js +1 -1
  108. package/lib/commands/kb/index.js +1 -1
  109. package/lib/commands/kb/list.js +1 -1
  110. package/lib/commands/kb/search.js +1 -1
  111. package/lib/commands/kb/shared.js +1 -1
  112. package/lib/commands/kb/update.js +1 -1
  113. package/lib/commands/logs/index.js +1 -1
  114. package/lib/commands/menu/asset-update.js +1 -1
  115. package/lib/commands/menu/delete.js +1 -1
  116. package/lib/commands/menu/external-link-create.js +1 -1
  117. package/lib/commands/menu/external-link-update.js +1 -1
  118. package/lib/commands/menu/group-create.js +1 -1
  119. package/lib/commands/menu/group-update.js +1 -1
  120. package/lib/commands/menu/index.js +1 -1
  121. package/lib/commands/menu/list.js +1 -1
  122. package/lib/commands/menu/move.js +1 -1
  123. package/lib/commands/menu/regroup-start.js +1 -1
  124. package/lib/commands/menu/rename.js +1 -1
  125. package/lib/commands/menu/shared/compare-table.js +1 -1
  126. package/lib/commands/menu/shared/delete-plan.js +1 -1
  127. package/lib/commands/menu/shared/facts.js +1 -1
  128. package/lib/commands/menu/shared/index.js +1 -1
  129. package/lib/commands/menu/shared/inquirer.js +1 -1
  130. package/lib/commands/menu/shared/local-pages.js +1 -1
  131. package/lib/commands/menu/shared/logic.js +1 -1
  132. package/lib/commands/menu/shared/mutations.js +1 -1
  133. package/lib/commands/menu/shared/service.js +1 -1
  134. package/lib/commands/menu/shared/sync-core.js +1 -1
  135. package/lib/commands/menu/shared/update-core.js +1 -1
  136. package/lib/commands/menu/shared/valid-url.js +1 -1
  137. package/lib/commands/menu/sync.js +1 -1
  138. package/lib/commands/menu/visibility-update.js +1 -1
  139. package/lib/commands/notification/config-create.js +1 -1
  140. package/lib/commands/notification/config-delete.js +1 -1
  141. package/lib/commands/notification/config-list.js +1 -1
  142. package/lib/commands/notification/config-update.js +1 -1
  143. package/lib/commands/notification/index.js +1 -1
  144. package/lib/commands/notification/shared.js +1 -1
  145. package/lib/commands/ocr/index.js +1 -1
  146. package/lib/commands/page/create.js +1 -1
  147. package/lib/commands/page/custom/detail.js +1 -1
  148. package/lib/commands/page/custom/list.js +1 -1
  149. package/lib/commands/page/custom/publish.js +1 -1
  150. package/lib/commands/page/custom/shared.js +1 -1
  151. package/lib/commands/page/custom/syntax.js +1 -1
  152. package/lib/commands/page/custom/template.js +1 -1
  153. package/lib/commands/page/custom/update.js +1 -1
  154. package/lib/commands/page/data-list-status.js +1 -1
  155. package/lib/commands/page/generate-start.js +1 -1
  156. package/lib/commands/page/generate-status.js +1 -1
  157. package/lib/commands/page/index.js +1 -1
  158. package/lib/commands/page/pull.js +1 -1
  159. package/lib/commands/page/push.js +1 -1
  160. package/lib/commands/page/relation-audit.js +1 -1
  161. package/lib/commands/page/restore.js +1 -1
  162. package/lib/commands/page/shared.js +1 -1
  163. package/lib/commands/page/sync.js +1 -1
  164. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  165. package/lib/commands/project/create/format-elapsed.js +1 -1
  166. package/lib/commands/project/create/main.js +1 -1
  167. package/lib/commands/project/create/materialize-project-template.js +1 -1
  168. package/lib/commands/project/create/project-name.js +1 -1
  169. package/lib/commands/project/create/project-template-archive.js +1 -1
  170. package/lib/commands/project/create/project-template-path.js +1 -1
  171. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  172. package/lib/commands/project/create/use-format-code.js +1 -1
  173. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  174. package/lib/commands/project/index.js +1 -1
  175. package/lib/commands/project/upgrade.js +1 -1
  176. package/lib/commands/registry.js +1 -1
  177. package/lib/commands/role/delete.js +1 -1
  178. package/lib/commands/role/detail.js +1 -1
  179. package/lib/commands/role/index.js +1 -1
  180. package/lib/commands/role/list.js +1 -1
  181. package/lib/commands/role/shared.js +1 -1
  182. package/lib/commands/role/update.js +1 -1
  183. package/lib/commands/role/user-add.js +1 -1
  184. package/lib/commands/role/user-remove.js +1 -1
  185. package/lib/commands/role/user-resolve.js +1 -1
  186. package/lib/commands/run/index.js +1 -1
  187. package/lib/commands/schema.js +1 -1
  188. package/lib/commands/sql/create.js +1 -1
  189. package/lib/commands/sql/delete.js +1 -1
  190. package/lib/commands/sql/detail.js +1 -1
  191. package/lib/commands/sql/exec.js +1 -1
  192. package/lib/commands/sql/index.js +1 -1
  193. package/lib/commands/sql/list.js +1 -1
  194. package/lib/commands/sql/pull.js +1 -1
  195. package/lib/commands/sql/push.js +1 -1
  196. package/lib/commands/sql/shared.js +1 -1
  197. package/lib/commands/sql/status.js +1 -1
  198. package/lib/commands/sql/validate.js +1 -1
  199. package/lib/commands/task/index.js +1 -1
  200. package/lib/commands/task/status.js +1 -1
  201. package/lib/commands/tenant/index.js +1 -1
  202. package/lib/commands/tenant/members-list.js +1 -1
  203. package/lib/commands/tenant/shared.js +1 -1
  204. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  205. package/lib/commands/user-account/index.js +1 -1
  206. package/lib/commands/workspace/add.js +1 -1
  207. package/lib/commands/workspace/index.js +1 -1
  208. package/lib/commands/workspace/remove.js +1 -1
  209. package/lib/config/schema.js +1 -1
  210. package/lib/constant/cdn.js +1 -1
  211. package/lib/constant/cli.js +1 -1
  212. package/lib/constant/defaults.js +1 -1
  213. package/lib/constant/domain.js +1 -1
  214. package/lib/constant/env.js +1 -1
  215. package/lib/constant/output.js +1 -1
  216. package/lib/constant/paths.js +1 -1
  217. package/lib/constant/risk.js +1 -1
  218. package/lib/context/app-resolver.js +1 -1
  219. package/lib/context/auth-resolver.js +1 -1
  220. package/lib/context/config-loader.js +1 -1
  221. package/lib/context.js +1 -1
  222. package/lib/core/alias-resolver.js +1 -1
  223. package/lib/core/api-client.d.ts +1 -1
  224. package/lib/core/api-client.js +1 -1
  225. package/lib/core/bff/config.d.ts +1 -1
  226. package/lib/core/bff/config.js +1 -1
  227. package/lib/core/bff/file-system.d.ts +1 -1
  228. package/lib/core/bff/file-system.js +1 -1
  229. package/lib/core/bff/hash.d.ts +1 -1
  230. package/lib/core/bff/hash.js +1 -1
  231. package/lib/core/bff/lock.d.ts +2 -2
  232. package/lib/core/bff/lock.js +1 -1
  233. package/lib/core/bff/types.d.ts +1 -1
  234. package/lib/core/bff/utils.d.ts +2 -2
  235. package/lib/core/bff/utils.js +1 -1
  236. package/lib/core/db-resolver.js +1 -1
  237. package/lib/core/page/file-system.js +1 -1
  238. package/lib/core/page/hash.js +1 -1
  239. package/lib/core/page/lock.js +1 -1
  240. package/lib/core/sql-index-auditor.js +1 -1
  241. package/lib/core/sql-sync/config.js +1 -1
  242. package/lib/core/sql-sync/file-system.js +1 -1
  243. package/lib/core/sql-sync/hash.js +1 -1
  244. package/lib/core/sql-sync/lock.js +1 -1
  245. package/lib/core/sql-sync/utils.js +1 -1
  246. package/lib/core/sql-validator.js +1 -1
  247. package/lib/errors.js +1 -1
  248. package/lib/framework/build-all-flags.js +1 -1
  249. package/lib/framework/error-output.js +1 -1
  250. package/lib/framework/explicit-yes.js +1 -1
  251. package/lib/framework/flags.js +1 -1
  252. package/lib/framework/help.js +1 -1
  253. package/lib/framework/index.js +1 -1
  254. package/lib/framework/output.js +1 -1
  255. package/lib/framework/response.js +1 -1
  256. package/lib/framework/runner-alias.js +1 -1
  257. package/lib/framework/runner.js +1 -1
  258. package/lib/framework/schema-export.js +1 -1
  259. package/lib/framework/types.js +1 -1
  260. package/lib/generated/build-info.d.ts +4 -4
  261. package/lib/generated/build-info.js +1 -1
  262. package/lib/help.js +1 -1
  263. package/lib/postinstall.js +1 -1
  264. package/lib/runtime/confirmation.js +1 -1
  265. package/lib/runtime/event.js +1 -1
  266. package/lib/runtime/index.js +1 -1
  267. package/lib/runtime/queue.js +1 -1
  268. package/lib/runtime/resolve.js +1 -1
  269. package/lib/skills/builtin-skill.js +1 -1
  270. package/lib/skills/main.js +1 -1
  271. package/lib/skills/npx-skills-add.js +1 -1
  272. package/lib/skills/skill-presence.js +1 -1
  273. package/lib/telemetry/cli-command-trace.js +1 -1
  274. package/lib/telemetry/cli-help-trace.js +1 -1
  275. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  276. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  277. package/lib/telemetry/send-cli-trace-log.js +1 -1
  278. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  279. package/lib/utils/ai_config.js +1 -1
  280. package/lib/utils/apply-jq-filter.js +1 -1
  281. package/lib/utils/cdn-config.js +1 -1
  282. package/lib/utils/check-sdk-version.js +1 -1
  283. package/lib/utils/cli-version-check.js +1 -1
  284. package/lib/utils/cli-version-policy.js +1 -1
  285. package/lib/utils/config.js +1 -1
  286. package/lib/utils/entity-with-id.js +1 -1
  287. package/lib/utils/file-utils.js +1 -1
  288. package/lib/utils/guides-cdn.js +1 -1
  289. package/lib/utils/http-client.js +1 -1
  290. package/lib/utils/is-non-interactive.js +1 -1
  291. package/lib/utils/logger.js +1 -1
  292. package/lib/utils/params.js +1 -1
  293. package/lib/utils/platform.js +1 -1
  294. package/lib/utils/rules-cdn.js +1 -1
  295. package/lib/utils/sleep.js +1 -1
  296. package/lib/utils/template-replacer.js +1 -1
  297. package/lib/utils/update-notice.js +1 -1
  298. package/lib/utils/version.js +1 -1
  299. package/lib/utils/with-active-cookie.js +1 -1
  300. package/lib/utils/write-cli-side-channel.js +1 -1
  301. package/package.json +2 -2
  302. package/sidecar/flags.json +1 -1
  303. package/skills/rabetbase/SKILL.md +28 -28
  304. package/skills/rabetbase/guides/backend-function.md +30 -30
  305. package/skills/rabetbase/guides/best-practices.md +8 -8
  306. package/skills/rabetbase/guides/bff-creation-workflow.md +16 -16
  307. package/skills/rabetbase/guides/conflict-detection.md +3 -3
  308. package/skills/rabetbase/guides/custom-page-workflow.md +8 -8
  309. package/skills/rabetbase/guides/data-api-guidelines.md +6 -6
  310. package/skills/rabetbase/guides/legacy-application-blueprint-workflow.md +8 -8
  311. package/skills/rabetbase/guides/sql-creation-workflow.md +2 -2
  312. package/skills/rabetbase/guides/troubleshooting.md +6 -6
  313. package/skills/rabetbase/guides/typescript-sdk.md +10 -10
  314. package/skills/rabetbase/knowledge/page-schema/LrSmartTable.md +1 -1
  315. package/skills/rabetbase/knowledge/page-schema/external-resources-usage.md +10 -10
  316. package/skills/rabetbase/references/rabetbase-app-config.md +2 -2
  317. package/skills/rabetbase/references/rabetbase-bff-create.md +3 -3
  318. package/skills/rabetbase/references/rabetbase-bff-delete.md +1 -1
  319. package/skills/rabetbase/references/rabetbase-bff-detail.md +4 -4
  320. package/skills/rabetbase/references/rabetbase-bff-list.md +8 -8
  321. package/skills/rabetbase/references/rabetbase-bff-pull.md +1 -1
  322. package/skills/rabetbase/references/rabetbase-bff-push.md +3 -3
  323. package/skills/rabetbase/references/rabetbase-bff-status.md +1 -1
  324. package/skills/rabetbase/references/rabetbase-codegen-sql.md +3 -3
  325. package/skills/rabetbase/references/rabetbase-dataset-detail.md +1 -1
  326. package/skills/rabetbase/references/rabetbase-notification-config-list.md +3 -3
  327. package/skills/rabetbase.manifest.json +3 -3
  328. package/templates/rules/lovrabet_rules.mdc.tpl +7 -7
  329. package/templates/skill/SKILL.md.tpl +12 -12
@@ -1 +1 @@
1
- (function(_0x4327bc,_0x47e693){const _0x1bdb99=a248_0x3ad5,_0x499988=_0x4327bc();while(!![]){try{const _0x97bc57=-parseInt(_0x1bdb99(0x13b))/0x1*(parseInt(_0x1bdb99(0x145))/0x2)+-parseInt(_0x1bdb99(0x147))/0x3*(-parseInt(_0x1bdb99(0x140))/0x4)+-parseInt(_0x1bdb99(0x132))/0x5+-parseInt(_0x1bdb99(0x14b))/0x6+-parseInt(_0x1bdb99(0x135))/0x7*(parseInt(_0x1bdb99(0x149))/0x8)+parseInt(_0x1bdb99(0x14a))/0x9*(parseInt(_0x1bdb99(0x14c))/0xa)+-parseInt(_0x1bdb99(0x142))/0xb*(-parseInt(_0x1bdb99(0x13a))/0xc);if(_0x97bc57===_0x47e693)break;else _0x499988['push'](_0x499988['shift']());}catch(_0xdd8c23){_0x499988['push'](_0x499988['shift']());}}}(a248_0x31f8,0x39f33));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';function a248_0x3ad5(_0xe605b1,_0x5cfc10){_0xe605b1=_0xe605b1-0x12f;const _0x31f84d=a248_0x31f8();let _0x3ad563=_0x31f84d[_0xe605b1];return _0x3ad563;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x52005e,_0x27359c){const _0x7deffa=a248_0x3ad5,_0x378ac4=_0x52005e[_0x7deffa(0x131)],{_notice:_0x10814d,..._0x5d03d6}=_0x52005e;void _0x10814d,baseFormatOutput(_0x5d03d6,_0x27359c),_0x27359c[_0x7deffa(0x13e)]===_0x7deffa(0x138)&&printPrettyNotice(_0x378ac4);}export function formatCliError(_0x30f539,_0x19dd94){const _0x15fc5b=a248_0x3ad5;if(_0x19dd94['format']===_0x15fc5b(0x138))return![];const _0x153c9d=_0x30f539[_0x15fc5b(0x130)],_0x49dc4e={'ok':![],'command':_0x19dd94[_0x15fc5b(0x144)],'risk':_0x19dd94['risk'],'data':_0x153c9d??null,'error':{'code':_0x30f539[_0x15fc5b(0x133)],'message':_0x30f539[_0x15fc5b(0x12f)],..._0x30f539[_0x15fc5b(0x146)]?{'hint':_0x30f539['hint']}:{}}},_0x16772d=_0x19dd94[_0x15fc5b(0x13e)]==='json'?JSON[_0x15fc5b(0x148)](_0x49dc4e,null,0x2):JSON['stringify'](_0x49dc4e);let _0x4e6cff=_0x16772d;if(_0x19dd94[_0x15fc5b(0x137)]?.[_0x15fc5b(0x139)]())try{_0x4e6cff=applyJqFilter(_0x16772d,_0x19dd94[_0x15fc5b(0x137)]);}catch(_0x53069c){const _0xa50065=_0x53069c instanceof CliError?_0x53069c:CliErrors[_0x15fc5b(0x143)]('jq:\x20'+(_0x53069c instanceof Error?_0x53069c['message']:String(_0x53069c))),_0xbc6498={..._0x49dc4e,'error':{'code':_0xa50065['code'],'message':_0xa50065['message'],..._0xa50065[_0x15fc5b(0x146)]?{'hint':_0xa50065[_0x15fc5b(0x146)]}:{},'cause':_0x49dc4e[_0x15fc5b(0x136)]}};_0x4e6cff=_0x19dd94['format']==='json'?JSON['stringify'](_0xbc6498,null,0x2):JSON['stringify'](_0xbc6498);}return process[_0x15fc5b(0x13d)][_0x15fc5b(0x13c)](_0x4e6cff[_0x15fc5b(0x134)]('\x0a')?_0x4e6cff:_0x4e6cff+'\x0a'),!![];}function a248_0x31f8(){const _0x85dea9=['1078ywmpey','validation','command','4wFrTTq','hint','129iMUler','stringify','10480vBSUbQ','5103uNUzQi','2735436JgsTBy','930VcrCDr','message','data','_notice','636965EpKzmW','code','endsWith','1393nXwVYX','error','jqFilter','pretty','trim','119052orRLNv','29847ZmHDEr','write','stdout','format','url','10796VjYSmY','update'];a248_0x31f8=function(){return _0x85dea9;};return a248_0x31f8();}function printPrettyNotice(_0x3b706b){const _0xe104fa=a248_0x3ad5;if(!_0x3b706b?.[_0xe104fa(0x141)])return;console[_0xe104fa(0x136)](_0x3b706b[_0xe104fa(0x141)][_0xe104fa(0x12f)]+'\x20('+_0x3b706b['update'][_0xe104fa(0x13f)]+')');}
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 +1 @@
1
- (function(_0x3b16b8,_0x2f5faf){var _0x4b55f1=a249_0x2356,_0x5b6d8b=_0x3b16b8();while(!![]){try{var _0x20f616=-parseInt(_0x4b55f1(0x1fa))/0x1+-parseInt(_0x4b55f1(0x1f5))/0x2+parseInt(_0x4b55f1(0x1f6))/0x3*(-parseInt(_0x4b55f1(0x1f3))/0x4)+-parseInt(_0x4b55f1(0x1f4))/0x5+parseInt(_0x4b55f1(0x1fb))/0x6*(parseInt(_0x4b55f1(0x1f7))/0x7)+-parseInt(_0x4b55f1(0x1f9))/0x8+parseInt(_0x4b55f1(0x1f8))/0x9;if(_0x20f616===_0x2f5faf)break;else _0x5b6d8b['push'](_0x5b6d8b['shift']());}catch(_0x4533f4){_0x5b6d8b['push'](_0x5b6d8b['shift']());}}}(a249_0x38cf,0xdefaa));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a249_0x2356(_0x5eeb92,_0x174133){_0x5eeb92=_0x5eeb92-0x1f3;var _0x38cf41=a249_0x38cf();var _0x235613=_0x38cf41[_0x5eeb92];return _0x235613;}function a249_0x38cf(){var _0x317d61=['2337752CBgxtf','42327fjzJUt','491239ctByhM','40840695HjrWdt','1485040YlqZxq','648953pIqBln','30ivMumI','340BegjNa','3863470hrIeOA'];a249_0x38cf=function(){return _0x317d61;};return a249_0x38cf();}
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 +1 @@
1
- (function(_0x587f11,_0x26517c){const _0x526c96=a250_0x27dc,_0x5c1d7a=_0x587f11();while(!![]){try{const _0x40bf1b=parseInt(_0x526c96(0x7d))/0x1*(parseInt(_0x526c96(0x76))/0x2)+parseInt(_0x526c96(0x84))/0x3+-parseInt(_0x526c96(0x83))/0x4*(parseInt(_0x526c96(0x6f))/0x5)+parseInt(_0x526c96(0x78))/0x6*(parseInt(_0x526c96(0x7c))/0x7)+parseInt(_0x526c96(0x80))/0x8*(-parseInt(_0x526c96(0x70))/0x9)+parseInt(_0x526c96(0x75))/0xa+-parseInt(_0x526c96(0x82))/0xb;if(_0x40bf1b===_0x26517c)break;else _0x5c1d7a['push'](_0x5c1d7a['shift']());}catch(_0x3423b0){_0x5c1d7a['push'](_0x5c1d7a['shift']());}}}(a250_0x4585,0x399b9));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a250_0x4585(){const _0x5b38ed=['27212CUcLaE','959154XvplbY','validation','85yBDKGQ','1043334MNWTxY','\x20api\x20pull`\x20first.','flags','\x22.\x20','alias','801250rlHusj','226150iQwNgx','.\x20Run\x20`','4008vpnpHf','name','`\x20requires\x20either\x20--code\x20or\x20--alias.','code','2674TIzjfA','3UzNSOg','join','length','8IHqBGI','some','5793766ZYnVbU'];a250_0x4585=function(){return _0x5b38ed;};return a250_0x4585();}function a250_0x27dc(_0x4cea3d,_0x3b5f79){_0x4cea3d=_0x4cea3d-0x6e;const _0x4585e1=a250_0x4585();let _0x27dc8e=_0x4585e1[_0x4cea3d];return _0x27dc8e;}export function resolveAliasToCode(_0x299c85,_0x31a53a,_0x3d0d0a,_0x110466){const _0x19ef2f=a250_0x27dc,_0x51fc3a=_0x299c85[_0x19ef2f(0x72)][_0x19ef2f(0x81)](_0x280369=>_0x280369[_0x19ef2f(0x79)]===_0x19ef2f(0x7b)&&_0x280369['type']==='string'),_0xd63ae=_0x299c85[_0x19ef2f(0x72)]['some'](_0x275afb=>_0x275afb[_0x19ef2f(0x79)]===_0x19ef2f(0x74)&&_0x275afb['type']==='string');if(!_0x51fc3a||!_0xd63ae)return;const _0x4f6797=_0x31a53a[_0x19ef2f(0x7b)]?String(_0x31a53a[_0x19ef2f(0x7b)]):'',_0x2122bb=_0x31a53a[_0x19ef2f(0x74)]?String(_0x31a53a[_0x19ef2f(0x74)]):'';if(!_0x4f6797&&!_0x2122bb)throw CliErrors[_0x19ef2f(0x6e)]('`'+_0x110466+_0x19ef2f(0x7a));if(_0x2122bb&&!_0x4f6797){const _0x2e4c86=resolveAlias(_0x3d0d0a,_0x2122bb);if(!_0x2e4c86){const _0x1a6be2=listAliases(_0x3d0d0a)['map'](_0x1a0bde=>_0x1a0bde[_0x19ef2f(0x74)]),_0x335f23=_0x1a6be2[_0x19ef2f(0x7f)]?'Available\x20aliases:\x20'+_0x1a6be2[_0x19ef2f(0x7e)](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x3d0d0a+_0x19ef2f(0x77)+CLI_BIN_NAME+_0x19ef2f(0x71);throw CliErrors[_0x19ef2f(0x6e)]('Unknown\x20alias\x20\x22'+_0x2122bb+_0x19ef2f(0x73)+_0x335f23);}_0x31a53a[_0x19ef2f(0x7b)]=_0x2e4c86;}}
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 +1 @@
1
- (function(_0x2eaa15,_0x224b00){const _0x266b0e=a251_0x3379,_0x2fa4c0=_0x2eaa15();while(!![]){try{const _0x2739dd=parseInt(_0x266b0e(0x160))/0x1*(-parseInt(_0x266b0e(0x199))/0x2)+parseInt(_0x266b0e(0x17d))/0x3+-parseInt(_0x266b0e(0x176))/0x4*(-parseInt(_0x266b0e(0x168))/0x5)+-parseInt(_0x266b0e(0x188))/0x6*(-parseInt(_0x266b0e(0x196))/0x7)+-parseInt(_0x266b0e(0x156))/0x8+parseInt(_0x266b0e(0x174))/0x9+-parseInt(_0x266b0e(0x16a))/0xa*(parseInt(_0x266b0e(0x16c))/0xb);if(_0x2739dd===_0x224b00)break;else _0x2fa4c0['push'](_0x2fa4c0['shift']());}catch(_0x1716aa){_0x2fa4c0['push'](_0x2fa4c0['shift']());}}}(a251_0x59fb,0xa78e8));function a251_0x59fb(){const _0x32cd0a=['appcode','execute','isNonInteractive','2971038ZYWJAp','string','map','RABETBASE_APPCODE','production','defaultVerbose','update','\x0a\x20\x20','find','defaultPageSize','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','30wFHZeJ','pageSize','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','formatOutput','resolveApiDomain','none','name','mergedCli','apps','Edit\x20the\x20config\x20file\x20manually','value','requiresAppCode','nonInteractive','object','639324uuZNov','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','cookie','2281718nyPoQe','format','filter','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','apiDir','verbose','appCode','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','has','10346480IMhhAo','_notice','service','toUpperCase','trim','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','configMissing','risk','authRequired','cancelled','1qUfSRu','catch','includes','resolve','some','command','currentApp','hint','645cgIWOr','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','2466680ZwWtDn','required','22gGmmmd','⚠\x20\x20High-risk\x20operation:\x20','all','validation','\x20\x20\x20Continue?\x20[y/N]\x20','selectedAppName','../core/api-client.js','schema','12088314kMpfWI','High-risk\x20operation\x20`','25540pAqRFg','doctor','rawFlags','pretty'];a251_0x59fb=function(){return _0x32cd0a;};return a251_0x59fb();}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_0x2708d1}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x3e8af9){const _0x57562d=a251_0x3379;return typeof _0x3e8af9===_0x57562d(0x17e)&&_0x3e8af9[_0x57562d(0x15a)]()?_0x3e8af9[_0x57562d(0x15a)]():undefined;}function resolveEnvAppCode(){const _0x371d7b=a251_0x3379,_0x320831=stringFlag(process.env.RABETBASE_APPCODE);if(_0x320831)return{'name':_0x371d7b(0x180),'value':_0x320831};const _0x386f37=stringFlag(process.env.LOVRABET_APPCODE);if(_0x386f37)return{'name':'LOVRABET_APPCODE','value':_0x386f37};return undefined;}function hasExplicitAppCode(_0x227a66,_0x46936c){const _0x1f1d3f=a251_0x3379;return!!(stringFlag(_0x227a66[_0x1f1d3f(0x17a)])||stringFlag(_0x46936c[_0x1f1d3f(0x17a)]));}function a251_0x3379(_0x453202,_0x1fc71b){_0x453202=_0x453202-0x155;const _0x59fbbf=a251_0x59fb();let _0x337954=_0x59fbbf[_0x453202];return _0x337954;}function assertEnvAppCodeNotIgnored(_0x493cbb,_0x4354f2,_0x2e318e){const _0x413f2d=a251_0x3379;if(!_0x4354f2||_0x2e318e||_0x493cbb===_0x4354f2[_0x413f2d(0x192)])return;const _0x4dbb5c=_0x493cbb?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x493cbb+'\x22.':_0x413f2d(0x18a);throw CliErrors[_0x413f2d(0x16f)](_0x4354f2[_0x413f2d(0x18e)]+'='+_0x4354f2[_0x413f2d(0x192)]+_0x413f2d(0x197)+_0x4dbb5c+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x4354f2[_0x413f2d(0x18e)]+'\x22.'));}export function createPipelineEnv(_0x531053,_0xa0a576,_0x49ef33=[]){const _0x3a9f4c=a251_0x3379;return{'rawFlags':_0xa0a576,'args':_0x49ef33,'resolveAppCode':()=>_0x531053[_0x3a9f4c(0x19f)],'resolveCookie':()=>_0x531053[_0x3a9f4c(0x198)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a251_0x2708d1(_0xa0a576),'defaultFormat':_0x531053['format'],'defaultPageSize':_0x531053[_0x3a9f4c(0x189)],'defaultVerbose':_0x531053[_0x3a9f4c(0x19e)],'apiDir':_0x531053[_0x3a9f4c(0x19d)],'riskLevel':_0x531053['riskLevel'],'selectedAppName':_0x531053['explicitAppName'],'mergedCli':{'defaultApp':_0x531053['defaultApp'],'currentApp':_0x531053[_0x3a9f4c(0x166)],'appCode':_0x531053[_0x3a9f4c(0x19f)],'apps':_0x531053[_0x3a9f4c(0x190)]}};}export function createRabetbaseRunnerAdapter(_0x30ccb5={}){const _0x130fe2=a251_0x3379;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x130fe2(0x19b)](_0x5af834=>PIPELINE_FLAG_NAMES[_0x130fe2(0x155)](_0x5af834['name']))[_0x130fe2(0x17f)](({name:_0x1aa5c6,type:_0x44ed2f,description:_0x118a42})=>({'name':_0x1aa5c6,'type':_0x44ed2f,'description':_0x118a42})),'formatOutput':_0x30ccb5[_0x130fe2(0x18b)]??formatOutput,'getCommandLabel'(_0x1fc1f1){const _0x43abe1=_0x130fe2;return CLI_BIN_NAME+'\x20'+_0x1fc1f1[_0x43abe1(0x158)]+'\x20'+_0x1fc1f1[_0x43abe1(0x165)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x1b8d31,{def:_0x5b5b3b}){const _0x448dab=_0x130fe2,_0xee4199=_0x1b8d31['includes'](_0x448dab(0x191))?_0x448dab(0x15b):_0x448dab(0x1a0)+_0x5b5b3b[_0x448dab(0x15d)]+_0x448dab(0x187)+_0x448dab(0x15b);return CliErrors[_0x448dab(0x16f)](_0x1b8d31+_0x448dab(0x184)+_0xee4199);}},async 'prepare'(_0x10a3e9,_0x5a5872,_0x187552,_0x765147){const _0x3b444c=_0x130fe2,_0x454e1f=_0x5a5872['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x10a3e9,_0x187552,_0x454e1f,_0x765147);const _0x1ac669=resolveCommandAuthMode(_0x10a3e9);let _0x17c681='';if(_0x1ac669!==_0x3b444c(0x18d)){_0x17c681=_0x5a5872['resolveCookie']()||'';if(!_0x17c681){if(_0x1ac669===_0x3b444c(0x16b))throw CliErrors[_0x3b444c(0x15e)]();}else{const {setActiveCookie:_0x49df3f}=await import('../core/api-client.js');_0x49df3f(_0x17c681);}}const _0x4513c4=_0x5a5872['resolveAppCode']()??'';if(_0x10a3e9[_0x3b444c(0x193)]!==![]){assertEnvAppCodeNotIgnored(_0x4513c4,resolveEnvAppCode(),hasExplicitAppCode(_0x187552,_0x5a5872[_0x3b444c(0x178)]));if(!_0x4513c4)throw CliErrors[_0x3b444c(0x15c)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x3b444c(0x19c));}return{'defaults':{'booleans':{'verbose':_0x5a5872[_0x3b444c(0x182)]},'numbers':{'pagesize':_0x5a5872[_0x3b444c(0x186)]}},'extras':{'appCode':_0x4513c4,'cookie':_0x17c681,'apiDomain':_0x5a5872[_0x3b444c(0x18c)](),'apiDir':_0x454e1f,'selectedAppName':_0x5a5872[_0x3b444c(0x171)],'mergedCli':_0x5a5872[_0x3b444c(0x18f)]}};},'confirmHighRisk':_0x30ccb5['confirmHighRisk']??(async({env:_0x26d091,commandLabel:_0x178e36})=>{const _0x53384d=_0x130fe2;if(_0x26d091[_0x53384d(0x17c)])throw CliErrors[_0x53384d(0x16f)](_0x53384d(0x175)+_0x178e36+_0x53384d(0x169));await requireConfirmationPrompt({'lines':[_0x53384d(0x16d)+_0x178e36,_0x53384d(0x170)],'createCancelledError':_0x351fee=>CliErrors[_0x53384d(0x15f)](_0x351fee)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x1732d2=a251_0x3379,{clearActiveCookie:_0x58f3be}=await import(_0x1732d2(0x172));_0x58f3be();}export async function finalizeRabetbaseRuntimeState(){const _0x345aaa=a251_0x3379;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x3402c2},{initEnv:_0x164276}]=await Promise[_0x345aaa(0x16e)]([import('../constant/domain.js'),import('../constant/env.js')]);_0x3402c2(),_0x164276(_0x345aaa(0x181));}}export async function runCommand(_0x292101,_0x44c115,_0x33af69=terminalRunnerAdapter){const _0x42ebee=a251_0x3379;assertRejectedFlags(_0x292101,_0x44c115[_0x42ebee(0x178)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x292101)?withUpdateNotice(_0x292101):_0x292101,_0x44c115,_0x33af69);}function assertRejectedFlags(_0x8983ec,_0x4f1ea2){const _0x4ce81e=a251_0x3379;for(const _0x3abf93 of _0x8983ec['rejectedFlags']??[]){const _0x136f54=GLOBAL_FLAGS[_0x4ce81e(0x185)](_0x55b88c=>_0x55b88c[_0x4ce81e(0x18e)]===_0x3abf93[_0x4ce81e(0x18e)]),_0x46d8af=new Set([_0x3abf93['name'],toCamelCase(_0x3abf93[_0x4ce81e(0x18e)]),_0x136f54?.['meowKey']]),_0x8789d0=[..._0x46d8af][_0x4ce81e(0x164)](_0x4d8fbc=>{if(!_0x4d8fbc)return![];const _0x56a713=_0x4f1ea2[_0x4d8fbc];return _0x56a713!==undefined&&_0x56a713!==null&&_0x56a713!==![];});if(_0x8789d0)throw CliErrors['validation'](_0x3abf93['message'],_0x3abf93[_0x4ce81e(0x167)]);}}function toCamelCase(_0x3d755e){const _0x55d3d0=a251_0x3379;return _0x3d755e['replace'](/-([a-z])/g,(_0x2f28e0,_0x404d2a)=>_0x404d2a[_0x55d3d0(0x159)]());}function shouldAttachUpdateNotice(_0x338133){const _0x5c938a=a251_0x3379;if(_0x338133['hasFormat']===![])return![];return![_0x5c938a(0x183),_0x5c938a(0x173),_0x5c938a(0x177)][_0x5c938a(0x162)](_0x338133[_0x5c938a(0x158)]);}function withUpdateNotice(_0x13cced){return{..._0x13cced,async 'execute'(_0x15d1a2){const _0x273f13=a251_0x3379,_0x42cf1a=shouldResolveUpdateNotice(_0x15d1a2)?resolveLatestUpdateNotice()[_0x273f13(0x161)](()=>null):Promise[_0x273f13(0x163)](null),_0x4e0862=await _0x13cced[_0x273f13(0x17b)](_0x15d1a2);return attachUpdateNotice(_0x4e0862,await _0x42cf1a);}};}function shouldResolveUpdateNotice(_0x5b38cf){const _0x5db70a=a251_0x3379;return _0x5b38cf[_0x5db70a(0x19a)]===_0x5db70a(0x179)&&!_0x5b38cf[_0x5db70a(0x194)];}function attachUpdateNotice(_0x1f8da7,_0x45cbdd){const _0x5e5ab2=a251_0x3379;if(!_0x45cbdd||!_0x1f8da7||typeof _0x1f8da7!==_0x5e5ab2(0x195))return _0x1f8da7;const _0x4b087f=_0x1f8da7,_0x516747=typeof _0x4b087f[_0x5e5ab2(0x157)]===_0x5e5ab2(0x195)&&_0x4b087f[_0x5e5ab2(0x157)]!==null?_0x4b087f[_0x5e5ab2(0x157)]:{};return{..._0x4b087f,'_notice':{..._0x516747,'update':_0x45cbdd}};}
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 +1 @@
1
- (function(_0x350a86,_0x2b4a80){const _0x33ae91=a252_0xcb40,_0x4330a2=_0x350a86();while(!![]){try{const _0x43dae7=parseInt(_0x33ae91(0x1b2))/0x1*(-parseInt(_0x33ae91(0x1b3))/0x2)+parseInt(_0x33ae91(0x1ae))/0x3+-parseInt(_0x33ae91(0x1b6))/0x4*(parseInt(_0x33ae91(0x1b5))/0x5)+-parseInt(_0x33ae91(0x1af))/0x6+-parseInt(_0x33ae91(0x1b0))/0x7+parseInt(_0x33ae91(0x1b7))/0x8*(parseInt(_0x33ae91(0x1b8))/0x9)+parseInt(_0x33ae91(0x1b4))/0xa*(parseInt(_0x33ae91(0x1b1))/0xb);if(_0x43dae7===_0x2b4a80)break;else _0x4330a2['push'](_0x4330a2['shift']());}catch(_0x5c9392){_0x4330a2['push'](_0x4330a2['shift']());}}}(a252_0x10ec,0xaed6a));import{buildSchemaPayload as a252_0x5a2084}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a252_0xcb40(_0x525240,_0x4e5ce8){_0x525240=_0x525240-0x1ae;const _0x10ecdb=a252_0x10ec();let _0xcb40be=_0x10ecdb[_0x525240];return _0xcb40be;}function a252_0x10ec(){const _0x3b08fd=['2585904FALFhe','3378291nNaFXU','724779jdKmrq','37298Efyqid','74MQaZQT','480LCwNsI','37355JuMhLj','244apGbtb','2292152tZEzMK','9zcfNwr','48903kzgyXN'];a252_0x10ec=function(){return _0x3b08fd;};return a252_0x10ec();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x8a8653,findDefinition:_0x15b103}=await import('../commands/registry.js');return a252_0x5a2084({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x8a8653,'buildAllFlags':buildAllFlags,'findDefinition':_0x15b103});}
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 +1 @@
1
- (function(_0xef996a,_0x41c5c0){var _0x1ad4dc=a253_0x2e24,_0x101f70=_0xef996a();while(!![]){try{var _0x26ea57=-parseInt(_0x1ad4dc(0x1a9))/0x1+-parseInt(_0x1ad4dc(0x1a2))/0x2*(parseInt(_0x1ad4dc(0x1ac))/0x3)+parseInt(_0x1ad4dc(0x1a8))/0x4*(-parseInt(_0x1ad4dc(0x1a5))/0x5)+-parseInt(_0x1ad4dc(0x1a7))/0x6+-parseInt(_0x1ad4dc(0x1a6))/0x7*(-parseInt(_0x1ad4dc(0x1aa))/0x8)+-parseInt(_0x1ad4dc(0x1a4))/0x9+parseInt(_0x1ad4dc(0x1a3))/0xa*(parseInt(_0x1ad4dc(0x1ab))/0xb);if(_0x26ea57===_0x41c5c0)break;else _0x101f70['push'](_0x101f70['shift']());}catch(_0x235092){_0x101f70['push'](_0x101f70['shift']());}}}(a253_0x2b65,0x4de48));function a253_0x2e24(_0x3be92b,_0x3fe818){_0x3be92b=_0x3be92b-0x1a2;var _0x2b65cc=a253_0x2b65();var _0x2e24e6=_0x2b65cc[_0x3be92b];return _0x2e24e6;}function a253_0x2b65(){var _0x19b381=['12640aKQYQq','33ipBsGa','1136568spquqs','2QFLTTU','3203020BrFeKS','4374621QbHMnV','465WMQxWn','2611HGwQuq','1138818lGhebn','3140WxXzwt','103465xrpYxu'];a253_0x2b65=function(){return _0x19b381;};return a253_0x2b65();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
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,4 +1,4 @@
1
- export declare const VERSION = "2.4.7-beta.1";
2
- export declare const GIT_TAG = "v2.4.7-beta.1";
3
- export declare const GIT_COMMIT = "1ad7f63";
4
- export declare const BUILD_TIME = "2026-08-19T12:37:17.641Z";
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 +1 @@
1
- const a254_0xc6aa6=a254_0x2558;function a254_0x2558(_0x547bb8,_0x5bfb6a){_0x547bb8=_0x547bb8-0x1a5;const _0x9415e=a254_0x9415();let _0x255899=_0x9415e[_0x547bb8];return _0x255899;}(function(_0x337105,_0xdd5d44){const _0x456835=a254_0x2558,_0x4c0206=_0x337105();while(!![]){try{const _0x3e2d96=-parseInt(_0x456835(0x1ac))/0x1*(-parseInt(_0x456835(0x1ab))/0x2)+-parseInt(_0x456835(0x1b1))/0x3+-parseInt(_0x456835(0x1b2))/0x4*(-parseInt(_0x456835(0x1a9))/0x5)+parseInt(_0x456835(0x1ae))/0x6+-parseInt(_0x456835(0x1ad))/0x7*(-parseInt(_0x456835(0x1a7))/0x8)+parseInt(_0x456835(0x1a5))/0x9*(-parseInt(_0x456835(0x1af))/0xa)+-parseInt(_0x456835(0x1a8))/0xb;if(_0x3e2d96===_0xdd5d44)break;else _0x4c0206['push'](_0x4c0206['shift']());}catch(_0x47b010){_0x4c0206['push'](_0x4c0206['shift']());}}}(a254_0x9415,0xc9ce0));export const VERSION=a254_0xc6aa6(0x1aa);function a254_0x9415(){const _0x3a8244=['4aUxnjN','9Gncsff','2026-08-19T12:37:17.641Z','10696IUgIuY','39500527bvbXkM','1880540oEqnen','2.4.7-beta.1','5852XSPdwz','467HDnnPO','8554pUaEJN','8803140STdDel','3551140JvhTgo','1ad7f63','212673sQlQCR'];a254_0x9415=function(){return _0x3a8244;};return a254_0x9415();}export const GIT_TAG='v2.4.7-beta.1';export const GIT_COMMIT=a254_0xc6aa6(0x1b0);export const BUILD_TIME=a254_0xc6aa6(0x1a6);
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);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x5ed5b5,_0x5ba0d0){var _0x248419=a255_0x2310,_0x4f2015=_0x5ed5b5();while(!![]){try{var _0x2406b1=parseInt(_0x248419(0x173))/0x1*(-parseInt(_0x248419(0x176))/0x2)+parseInt(_0x248419(0x177))/0x3+-parseInt(_0x248419(0x17d))/0x4*(-parseInt(_0x248419(0x171))/0x5)+parseInt(_0x248419(0x179))/0x6*(-parseInt(_0x248419(0x172))/0x7)+parseInt(_0x248419(0x17c))/0x8+parseInt(_0x248419(0x17a))/0x9*(parseInt(_0x248419(0x175))/0xa)+parseInt(_0x248419(0x178))/0xb;if(_0x2406b1===_0x5ba0d0)break;else _0x4f2015['push'](_0x4f2015['shift']());}catch(_0x441d58){_0x4f2015['push'](_0x4f2015['shift']());}}}(a255_0x14a2,0x24a21));import a255_0x37bc08 from'chalk';function a255_0x2310(_0x2f61bd,_0x4bb093){_0x2f61bd=_0x2f61bd-0x170;var _0x14a278=a255_0x14a2();var _0x2310af=_0x14a278[_0x2f61bd];return _0x2310af;}function a255_0x14a2(){var _0x52cd05=['3502334yCLBxJ','6VJYhbT','58311JrnjEt','\x20\x20Use\x20','308880cgsdow','4DDduGY','\x20to\x20view\x20available\x20commands.','log','green','1067775uChaNm','1877575OhYBjU','282466poEpNo','bold','200AmaqSu','2jaNHzk','1803sJlMPs'];a255_0x14a2=function(){return _0x52cd05;};return a255_0x14a2();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x39373d=a255_0x2310;console[_0x39373d(0x17f)](),console[_0x39373d(0x17f)](a255_0x37bc08[_0x39373d(0x170)][_0x39373d(0x174)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x39373d(0x17f)](),console[_0x39373d(0x17f)](_0x39373d(0x17b)+a255_0x37bc08[_0x39373d(0x170)][_0x39373d(0x174)](CLI_BIN_NAME+'\x20--help')+_0x39373d(0x17e)),console[_0x39373d(0x17f)]();}
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 +1 @@
1
- (function(_0x5bf812,_0x140594){const _0xfb0b97=a256_0x2db7,_0x2671ba=_0x5bf812();while(!![]){try{const _0x2c2b10=parseInt(_0xfb0b97(0xb3))/0x1*(-parseInt(_0xfb0b97(0xbe))/0x2)+parseInt(_0xfb0b97(0xb6))/0x3+parseInt(_0xfb0b97(0xbd))/0x4*(parseInt(_0xfb0b97(0xaa))/0x5)+parseInt(_0xfb0b97(0xa9))/0x6+-parseInt(_0xfb0b97(0xb2))/0x7*(parseInt(_0xfb0b97(0xb5))/0x8)+-parseInt(_0xfb0b97(0xbc))/0x9*(-parseInt(_0xfb0b97(0xbb))/0xa)+-parseInt(_0xfb0b97(0xb4))/0xb*(parseInt(_0xfb0b97(0xba))/0xc);if(_0x2c2b10===_0x140594)break;else _0x2671ba['push'](_0x2671ba['shift']());}catch(_0x4227b1){_0x2671ba['push'](_0x2671ba['shift']());}}}(a256_0xf1cf,0xc4f05));function a256_0x2db7(_0x2bc4,_0x112c55){_0x2bc4=_0x2bc4-0xa6;const _0xf1cf7c=a256_0xf1cf();let _0x2db7d6=_0xf1cf7c[_0x2bc4];return _0x2db7d6;}function a256_0xf1cf(){const _0x1b404d=['already\x20current','Installation\x20failed','installedPath','849540gNhnpN','9890hcklaD','6525OViJJU','796tGnAMC','1073690rYYIdA','installed','code','warn','4238040CDEtCX','14015pUaHYM','\x20via\x20skills@latest','\x20at\x20','Rabetbase\x20Built-in\x20Skill\x20','skillVersion','FAILED','[BUILTIN_SKILL_INSTALL_','SOURCE_INVALID','91ubpdxu','2OpZpEK','110pFXTxv','133688KvtKxM','2473146ACRBbg'];a256_0xf1cf=function(){return _0x1b404d;};return a256_0xf1cf();}import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x54113d={}){const _0x26b026=a256_0x2db7,_0x4aaf98=installBuiltinSkill(_0x54113d);if(_0x4aaf98['ok']){const _0x76d627=_0x4aaf98['changed']?_0x26b026(0xa6):_0x26b026(0xb7),_0xd70505=_0x4aaf98['installedPath']?_0x26b026(0xac)+_0x4aaf98[_0x26b026(0xb9)]:_0x26b026(0xab);return console['log'](_0x26b026(0xad)+_0x4aaf98[_0x26b026(0xae)]+'\x20'+_0x76d627+_0xd70505),_0x4aaf98;}const _0x51dfcd=_0x26b026(0xb0)+(_0x4aaf98[_0x26b026(0xa7)]??_0x26b026(0xaf))+']\x20'+(_0x4aaf98['error']??_0x26b026(0xb8))+'.\x20'+('Repair\x20with:\x20'+_0x4aaf98['repairCommand']);if(_0x4aaf98['code']===_0x26b026(0xb1))throw new Error(_0x51dfcd);return console[_0x26b026(0xa8)](_0x51dfcd),_0x4aaf98;}
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 +1 @@
1
- (function(_0x37f498,_0x1bb56e){const _0x2ac629=a257_0x5645,_0x38230f=_0x37f498();while(!![]){try{const _0x59872b=-parseInt(_0x2ac629(0x1e5))/0x1+parseInt(_0x2ac629(0x1e6))/0x2*(parseInt(_0x2ac629(0x1e0))/0x3)+parseInt(_0x2ac629(0x1e1))/0x4*(-parseInt(_0x2ac629(0x1ec))/0x5)+-parseInt(_0x2ac629(0x1ed))/0x6+parseInt(_0x2ac629(0x1de))/0x7*(-parseInt(_0x2ac629(0x1e2))/0x8)+parseInt(_0x2ac629(0x1ea))/0x9+parseInt(_0x2ac629(0x1e4))/0xa*(parseInt(_0x2ac629(0x1ee))/0xb);if(_0x59872b===_0x1bb56e)break;else _0x38230f['push'](_0x38230f['shift']());}catch(_0x4dac0c){_0x38230f['push'](_0x38230f['shift']());}}}(a257_0x1c0f,0xaace3));const DESCRIPTION_MAX_LENGTH=0x1f4;function a257_0x5645(_0x91f2c2,_0x49494a){_0x91f2c2=_0x91f2c2-0x1db;const _0x1c0f85=a257_0x1c0f();let _0x56456c=_0x1c0f85[_0x91f2c2];return _0x56456c;}export function buildRabetbaseConfirmationRequest(_0x30915d,_0x43b67c,_0x24941a){const _0x498527=a257_0x5645,_0x520d1b=normalizeText(_0x30915d[_0x498527(0x1e9)],DESCRIPTION_MAX_LENGTH),_0xbb05c0=_0x520d1b||normalizeText(defaultDescription(requireWriteRisk(_0x30915d),_0x43b67c),DESCRIPTION_MAX_LENGTH);return{'operation':_0x43b67c,'risk':requireWriteRisk(_0x30915d),'description':_0xbb05c0,..._0x24941a?{'signal':_0x24941a}:{}};}function requireWriteRisk(_0x15ae26){const _0x481bc9=a257_0x5645;if(_0x15ae26[_0x481bc9(0x1e8)]===_0x481bc9(0x1dc)||_0x15ae26['risk']==='high-risk-write')return _0x15ae26[_0x481bc9(0x1e8)];throw new Error(_0x481bc9(0x1e7));}function defaultDescription(_0x4ac26f,_0x3fa353){const _0x3447a6=a257_0x5645;if(_0x4ac26f==='high-risk-write')return _0x3447a6(0x1dd)+_0x3fa353+_0x3447a6(0x1eb);return _0x3447a6(0x1e3)+_0x3fa353+';该操作可能创建或修改业务数据或本地配置。';}function a257_0x1c0f(){const _0x2714a8=['2876902EthqCS','string','54Dfrjit','4iYEAuL','24WTLUtQ','将执行写入操作\x20','290ImsLpM','373074wBZDZh','24232OCjJyy','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','risk','confirmationDescription','5470857OFEeKc',';该操作可能覆盖、删除或明显影响线上运行行为。','5965295CPtqwT','19008PegqVc','1015003eTDBWx','replace','write','将执行高风险写入操作\x20'];a257_0x1c0f=function(){return _0x2714a8;};return a257_0x1c0f();}function normalizeText(_0x5a4566,_0xaff36c){const _0x5f3139=a257_0x5645;if(typeof _0x5a4566!==_0x5f3139(0x1df))return'';return _0x5a4566[_0x5f3139(0x1db)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x5f3139(0x1db)](/\s+/g,'\x20')['trim']()['slice'](0x0,_0xaff36c);}
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 +1 @@
1
- function a258_0x1ee5(_0x3fad2f,_0x1d702c){_0x3fad2f=_0x3fad2f-0x1af;var _0x48fa56=a258_0x48fa();var _0x1ee58d=_0x48fa56[_0x3fad2f];return _0x1ee58d;}(function(_0xaf02c8,_0x5097fd){var _0x13ee3a=a258_0x1ee5,_0x2b2242=_0xaf02c8();while(!![]){try{var _0x5ec7a7=-parseInt(_0x13ee3a(0x1b0))/0x1*(parseInt(_0x13ee3a(0x1bf))/0x2)+-parseInt(_0x13ee3a(0x1b2))/0x3+parseInt(_0x13ee3a(0x1bc))/0x4+-parseInt(_0x13ee3a(0x1b1))/0x5+-parseInt(_0x13ee3a(0x1b5))/0x6*(-parseInt(_0x13ee3a(0x1b4))/0x7)+-parseInt(_0x13ee3a(0x1ba))/0x8*(-parseInt(_0x13ee3a(0x1b8))/0x9)+parseInt(_0x13ee3a(0x1b3))/0xa*(parseInt(_0x13ee3a(0x1c1))/0xb);if(_0x5ec7a7===_0x5097fd)break;else _0x2b2242['push'](_0x2b2242['shift']());}catch(_0x20afa1){_0x2b2242['push'](_0x2b2242['shift']());}}}(a258_0x48fa,0x5da10));export function canonicalRabetbaseOperation(_0x3ae380){var _0x4b1027=a258_0x1ee5;return[_0x3ae380[_0x4b1027(0x1b9)],..._0x3ae380[_0x4b1027(0x1be)][_0x4b1027(0x1c0)]()[_0x4b1027(0x1b7)](/\s+/)][_0x4b1027(0x1bb)](Boolean)[_0x4b1027(0x1bd)]('.');}export function createRabetbaseWriteMetadata(_0xdde8d7,_0x4f901d,_0x2e2797,_0x2399d0){var _0x302e57=a258_0x1ee5;if(_0x2399d0||_0x2e2797['ok']!==!![]||_0xdde8d7['risk']!=='write'&&_0xdde8d7['risk']!==_0x302e57(0x1b6))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x302e57(0x1af),'operation':_0x4f901d,'risk':_0xdde8d7['risk']}}};}function a258_0x48fa(){var _0x33ce15=['6kWCeWn','high-risk-write','split','18XJTJCY','service','1696624WWXPPe','filter','2456680zZOyjE','join','command','106844VVsEAd','trim','740377QGFzZz','rabetbase.write.completed','11yxqWQf','1647595qUtTpD','1079247ZrcRAS','70GjVEij','1056573wRREfu'];a258_0x48fa=function(){return _0x33ce15;};return a258_0x48fa();}
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 +1 @@
1
- (function(_0x19deee,_0x3755a3){const _0x1bbe36=a259_0x23b1,_0x21e140=_0x19deee();while(!![]){try{const _0x55ba98=-parseInt(_0x1bbe36(0xa8))/0x1*(parseInt(_0x1bbe36(0xa7))/0x2)+parseInt(_0x1bbe36(0xc0))/0x3+parseInt(_0x1bbe36(0xb3))/0x4*(parseInt(_0x1bbe36(0xac))/0x5)+parseInt(_0x1bbe36(0xb5))/0x6+parseInt(_0x1bbe36(0xaf))/0x7*(-parseInt(_0x1bbe36(0xa5))/0x8)+-parseInt(_0x1bbe36(0xbb))/0x9+parseInt(_0x1bbe36(0xa6))/0xa;if(_0x55ba98===_0x3755a3)break;else _0x21e140['push'](_0x21e140['shift']());}catch(_0x1b85bb){_0x21e140['push'](_0x21e140['shift']());}}}(a259_0x13c7,0xd67a0));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';function a259_0x13c7(){const _0x3ccdf4=['Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','dry-run','result','668776ZuUAFX','20393620amvLcH','1877878zbAcfk','1pZYjRb','command','aborted','riskLevel','795bMToco','Rabetbase\x20invocation\x20aborted.','format','91HwWDLI','reason','dryRun','data','11764GESLKG','rawFlags','3300348OtKLLj','args','high-risk-write','yes','definition','signal','1945323MQHros','write','isNonInteractive','message','execute','189912QbGgyS','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','risk'];a259_0x13c7=function(){return _0x3ccdf4;};return a259_0x13c7();}import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x159572,command:_0x4b10f8,risk:_0x4e4351,dryRun:_0xd4120f}){const _0xf563f7=a259_0x23b1;return JSON['stringify']({'ok':_0x159572['ok'],'command':_0x4b10f8,'risk':_0x4e4351,..._0xd4120f?{'dryRun':!![]}:{},..._0x159572[_0xf563f7(0xb2)]!==undefined?{'data':_0x159572[_0xf563f7(0xb2)]}:{},..._0x159572[_0xf563f7(0xbe)]?{'message':_0x159572['message']}:{}});}};export async function invokeRabetbase(_0x1ce45b,_0x265fc6){const _0x501332=a259_0x23b1;throwIfAborted(_0x265fc6[_0x501332(0xba)]);const _0x4e7ae8=await resolveRabetbaseInvocation(_0x1ce45b),_0x4374de=canonicalRabetbaseOperation(_0x4e7ae8['definition']);return await confirmWriteBeforeQueue(_0x4e7ae8[_0x501332(0xb9)],_0x4e7ae8[_0x501332(0xb4)],_0x4374de,_0x265fc6),runSerialized(async()=>{const _0x13686e=_0x501332,_0x292866={};try{throwIfAborted(_0x265fc6['signal']);const _0x284fab=buildConfigFromFlags(_0x4e7ae8['rawFlags']);await initGlobalEnvironment(_0x284fab);const _0x3a56a6=createPipelineEnv(_0x284fab,{..._0x4e7ae8[_0x13686e(0xb4)],'yes':_0x4e7ae8['definition']['risk']===_0x13686e(0xb7)?!![]:_0x4e7ae8[_0x13686e(0xb4)][_0x13686e(0xb8)],'nonInteractive':!![]},_0x4e7ae8[_0x13686e(0xb6)]);_0x3a56a6[_0x13686e(0xbd)]=!![],_0x3a56a6[_0x13686e(0xab)]=_0x13686e(0xb7);const _0x1640f7=withAbortSignal(_0x4e7ae8['definition'],_0x265fc6['signal']),_0x3d13e0=createRabetbaseRunnerAdapter({'formatOutput'(_0x202c52,_0x169ef2){const _0x2df610=_0x13686e;_0x292866[_0x2df610(0xa4)]=_0x202c52,_0x292866['command']=_0x169ef2[_0x2df610(0xa9)],_0x292866[_0x2df610(0xa1)]=_0x169ef2[_0x2df610(0xa1)],_0x292866[_0x2df610(0xae)]=_0x169ef2[_0x2df610(0xae)],_0x292866['dryRun']=_0x169ef2[_0x2df610(0xb1)]===!![];},async 'confirmHighRisk'(){const _0x476fd3=_0x13686e;throw new Error(_0x476fd3(0xa2));}});await runCommand(_0x1640f7,_0x3a56a6,_0x3d13e0);if(!_0x292866[_0x13686e(0xa4)]||!_0x292866[_0x13686e(0xa9)]||!_0x292866['risk']||!_0x292866[_0x13686e(0xae)])throw new Error(_0x13686e(0xc1));const _0x3364b2=_0x292866[_0x13686e(0xb1)]===!![],_0x1ce5fc=_0x265fc6['presentation']??defaultPresentation,_0x37ab88={'result':_0x292866[_0x13686e(0xa4)],'command':_0x292866[_0x13686e(0xa9)],'operation':_0x4374de,'risk':_0x292866[_0x13686e(0xa1)],'format':_0x292866[_0x13686e(0xae)],'dryRun':_0x3364b2},_0x45e77b=createRabetbaseWriteMetadata(_0x4e7ae8[_0x13686e(0xb9)],_0x4374de,_0x292866[_0x13686e(0xa4)],_0x3364b2);let _0x34eb14;try{_0x34eb14=await _0x1ce5fc['present'](_0x37ab88);}catch(_0x1bf9ba){if(!_0x45e77b||_0x1ce5fc===defaultPresentation)throw _0x1bf9ba;_0x34eb14=await defaultPresentation['present'](_0x37ab88);}return{'operation':_0x4374de,'risk':_0x292866[_0x13686e(0xa1)],'mode':_0x3364b2?_0x13686e(0xa3):_0x13686e(0xbf),'result':_0x292866[_0x13686e(0xa4)],'output':_0x34eb14,..._0x45e77b?{'metadata':_0x45e77b}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}function a259_0x23b1(_0x54fd7f,_0x1033a8){_0x54fd7f=_0x54fd7f-0xa1;const _0x13c78e=a259_0x13c7();let _0x23b1f6=_0x13c78e[_0x54fd7f];return _0x23b1f6;}async function confirmWriteBeforeQueue(_0x335bce,_0x23680d,_0x2a1443,_0x4cb199){const _0x5ce3f2=a259_0x23b1;if(_0x23680d[_0x5ce3f2(0xb1)]===!![]||_0x335bce[_0x5ce3f2(0xa1)]!==_0x5ce3f2(0xbc)&&_0x335bce[_0x5ce3f2(0xa1)]!==_0x5ce3f2(0xb7))return;await _0x4cb199['confirmation']['confirm'](buildRabetbaseConfirmationRequest(_0x335bce,_0x2a1443,_0x4cb199['signal']));}function withAbortSignal(_0x2de2c6,_0x64a889){return{..._0x2de2c6,async 'execute'(_0x446d68){const _0x2bf32e=a259_0x23b1;return throwIfAborted(_0x64a889),_0x2de2c6[_0x2bf32e(0xbf)](_0x446d68);}};}function throwIfAborted(_0x50d212){const _0x4793da=a259_0x23b1;if(_0x50d212?.[_0x4793da(0xaa)])throw _0x50d212[_0x4793da(0xb0)]instanceof Error?_0x50d212['reason']:new DOMException(_0x4793da(0xad),'AbortError');}
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 +1 @@
1
- function a260_0x59e2(_0x4b7c7a,_0x49f128){_0x4b7c7a=_0x4b7c7a-0x151;const _0x3b5068=a260_0x3b50();let _0x59e264=_0x3b5068[_0x4b7c7a];return _0x59e264;}function a260_0x3b50(){const _0x4e74a6=['14oaartV','56RSncdy','1416984iecFyM','992164ySgCgz','5qisGqd','catch','12sOlmdT','10vpTwrl','130697HRojpp','5703529oZUNkM','193653culsaf','331373VmJKBZ','resolve','3087073CfUMCS','2MLSRcn','3jKAftQ'];a260_0x3b50=function(){return _0x4e74a6;};return a260_0x3b50();}const a260_0x381024=a260_0x59e2;(function(_0x50b9ec,_0xffa604){const _0x4d74e5=a260_0x59e2,_0x262166=_0x50b9ec();while(!![]){try{const _0xe2c905=parseInt(_0x4d74e5(0x156))/0x1*(parseInt(_0x4d74e5(0x159))/0x2)+-parseInt(_0x4d74e5(0x15a))/0x3*(-parseInt(_0x4d74e5(0x15e))/0x4)+-parseInt(_0x4d74e5(0x15f))/0x5*(-parseInt(_0x4d74e5(0x15d))/0x6)+-parseInt(_0x4d74e5(0x153))/0x7*(-parseInt(_0x4d74e5(0x15c))/0x8)+-parseInt(_0x4d74e5(0x155))/0x9*(parseInt(_0x4d74e5(0x152))/0xa)+-parseInt(_0x4d74e5(0x158))/0xb*(parseInt(_0x4d74e5(0x151))/0xc)+-parseInt(_0x4d74e5(0x154))/0xd*(parseInt(_0x4d74e5(0x15b))/0xe);if(_0xe2c905===_0xffa604)break;else _0x262166['push'](_0x262166['shift']());}catch(_0x7d06ca){_0x262166['push'](_0x262166['shift']());}}}(a260_0x3b50,0x32246));let tail=Promise[a260_0x381024(0x157)]();export async function runSerialized(_0x18dc48){const _0x538e0b=a260_0x381024,_0x2be536=tail;let _0x6fcaf0;tail=new Promise(_0x252296=>{_0x6fcaf0=_0x252296;}),await _0x2be536[_0x538e0b(0x160)](()=>undefined);try{return await _0x18dc48();}finally{_0x6fcaf0();}}
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 +1 @@
1
- (function(_0x318287,_0x4778e0){const _0x30843d=a261_0x4be3,_0x36bb16=_0x318287();while(!![]){try{const _0x5e723d=-parseInt(_0x30843d(0x11b))/0x1*(parseInt(_0x30843d(0x117))/0x2)+parseInt(_0x30843d(0x119))/0x3+-parseInt(_0x30843d(0x126))/0x4*(-parseInt(_0x30843d(0x11d))/0x5)+parseInt(_0x30843d(0x11c))/0x6*(-parseInt(_0x30843d(0x121))/0x7)+-parseInt(_0x30843d(0x128))/0x8+parseInt(_0x30843d(0x12a))/0x9+-parseInt(_0x30843d(0x123))/0xa*(parseInt(_0x30843d(0x125))/0xb);if(_0x5e723d===_0x4778e0)break;else _0x36bb16['push'](_0x36bb16['shift']());}catch(_0x19b9d1){_0x36bb16['push'](_0x36bb16['shift']());}}}(a261_0x4b93,0x4b684));import a261_0x40aba3 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a261_0x4be3(_0x4bcb4f,_0x14a994){_0x4bcb4f=_0x4bcb4f-0x114;const _0x4b93fc=a261_0x4b93();let _0x4be308=_0x4b93fc[_0x4bcb4f];return _0x4be308;}function a261_0x4b93(){const _0x59d5d6=['hint','772211gWVpRf','8hZoPOV','unknownCommand','2936992FNzVqd','run','1956582AyVWlD','join','slice','wildcardDef','146162WHfwRW','flags','1519983jqqvEq','input','1vXvBMm','47298lnKjzX','1436465bsYBZy','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','validation','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','301PmEZjR','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','30XCfNom'];a261_0x4b93=function(){return _0x59d5d6;};return a261_0x4b93();}export async function resolveRabetbaseInvocation(_0x600229){const _0x327a88=a261_0x4be3,_0x5153cd=a261_0x40aba3('',{'importMeta':import.meta,'argv':[..._0x600229],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x37c5c1=[..._0x5153cd[_0x327a88(0x11a)]],_0x125fe4=_0x5153cd[_0x327a88(0x118)],_0x3677d4=_0x37c5c1[0x0];if(!_0x3677d4)throw CliErrors[_0x327a88(0x11f)](_0x327a88(0x11e));const _0x299a62=resolveRemovedCommand(_0x3677d4,_0x37c5c1[0x1]);if(_0x299a62)throw CliErrors[_0x327a88(0x11f)](_0x299a62['message'],_0x299a62[_0x327a88(0x124)]);if(_0x3677d4===_0x327a88(0x129))throw CliErrors[_0x327a88(0x11f)](_0x327a88(0x122),'Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.');if(!isKnownService(_0x3677d4))throw CliErrors[_0x327a88(0x127)](_0x37c5c1[_0x327a88(0x114)]('\x20'));const _0x4a40e4=getServiceEntry(_0x3677d4),_0x2b9400=_0x37c5c1[0x1],_0x3fcf30=_0x2b9400||_0x4a40e4['defaultCommand'];if(!_0x3fcf30){if(_0x4a40e4[_0x327a88(0x116)])return{'definition':_0x4a40e4['wildcardDef'],'rawFlags':_0x125fe4,'args':[]};throw CliErrors[_0x327a88(0x11f)](_0x327a88(0x120)+_0x3677d4+'\x22.');}const _0x121a59=findDefinition(_0x3677d4,_0x3fcf30);if(_0x121a59)return{'definition':_0x121a59,'rawFlags':_0x125fe4,'args':_0x37c5c1['slice'](0x2)};if(_0x4a40e4[_0x327a88(0x116)])return{'definition':_0x4a40e4[_0x327a88(0x116)],'rawFlags':_0x125fe4,'args':[_0x3fcf30,..._0x37c5c1[_0x327a88(0x115)](0x2)]};throw CliErrors[_0x327a88(0x127)](_0x3677d4+'\x20'+_0x3fcf30);}
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 +1 @@
1
- (function(_0x193e02,_0x410b9c){const _0x1cd31e=a263_0x5306,_0x14d21e=_0x193e02();while(!![]){try{const _0x3ba60e=parseInt(_0x1cd31e(0x180))/0x1*(parseInt(_0x1cd31e(0x1b2))/0x2)+-parseInt(_0x1cd31e(0x1b7))/0x3+-parseInt(_0x1cd31e(0x17b))/0x4+-parseInt(_0x1cd31e(0x189))/0x5+parseInt(_0x1cd31e(0x19c))/0x6*(parseInt(_0x1cd31e(0x181))/0x7)+-parseInt(_0x1cd31e(0x1ab))/0x8*(-parseInt(_0x1cd31e(0x186))/0x9)+-parseInt(_0x1cd31e(0x17e))/0xa*(-parseInt(_0x1cd31e(0x1ae))/0xb);if(_0x3ba60e===_0x410b9c)break;else _0x14d21e['push'](_0x14d21e['shift']());}catch(_0x234ced){_0x14d21e['push'](_0x14d21e['shift']());}}}(a263_0x1ff6,0xc8280));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND='rabetbase\x20cli-skill\x20install',SKILL_NAME='rabetbase';function frontmatterValue(_0x2818f8,_0x4cd396){const _0x5e5350=a263_0x5306;return _0x2818f8['match'](new RegExp('^'+_0x4cd396+_0x5e5350(0x182),'m'))?.[0x1]?.[_0x5e5350(0x193)]()??'';}function listFiles(_0x48940c,_0x232c93=_0x48940c){const _0x19758f=a263_0x5306;return readdirSync(_0x232c93,{'withFileTypes':!![]})['flatMap'](_0x1a7237=>{const _0x47d98c=a263_0x5306,_0x5011a0=join(_0x232c93,_0x1a7237['name']),_0x3f8d21=lstatSync(_0x5011a0);if(_0x3f8d21[_0x47d98c(0x191)]())throw new Error('Symbolic\x20link\x20is\x20not\x20allowed:\x20'+_0x5011a0);if(_0x3f8d21['isDirectory']())return listFiles(_0x48940c,_0x5011a0);if(!_0x3f8d21[_0x47d98c(0x185)]())throw new Error(_0x47d98c(0x1a9)+_0x5011a0);return[relative(_0x48940c,_0x5011a0)[_0x47d98c(0x187)](sep)[_0x47d98c(0x183)]('/')];})[_0x19758f(0x195)]((_0x2c52c5,_0x56ae22)=>_0x2c52c5<_0x56ae22?-0x1:_0x2c52c5>_0x56ae22?0x1:0x0);}function digestFiles(_0x3d6669,_0xbac51a){const _0x4fa9ac=a263_0x5306,_0x466ddc=createHash(_0x4fa9ac(0x19d));for(const _0x1aab92 of _0xbac51a){if(_0x1aab92[_0x4fa9ac(0x17c)]('/')||_0x1aab92[_0x4fa9ac(0x187)]('/')[_0x4fa9ac(0x1a2)]('..')||_0x1aab92[_0x4fa9ac(0x1a2)]('\x5c'))throw new Error(_0x4fa9ac(0x17f)+_0x1aab92);_0x466ddc[_0x4fa9ac(0x19e)](_0x1aab92),_0x466ddc[_0x4fa9ac(0x19e)]('\x00'),_0x466ddc[_0x4fa9ac(0x19e)](readFileSync(join(_0x3d6669,..._0x1aab92[_0x4fa9ac(0x187)]('/')))),_0x466ddc[_0x4fa9ac(0x19e)]('\x00');}return _0x466ddc['digest'](_0x4fa9ac(0x194));}function a263_0x1ff6(){const _0x35324d=['files','rabetbase.manifest.json','length','skills','missing','Unsupported\x20Skill\x20entry:\x20','current','61264pMrOml','Installed\x20Skill\x20state\x20is\x20','unknown','2075667QHwsZN','reason','INSTALL_FAILED','skillVersion','254396hOMxqX','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','message','skills@latest\x20exited\x20','manifest','3112215wcgWlv','home','state','3703460GsVdmn','startsWith','version_mismatch','90jSLARY','Unsafe\x20manifest\x20path:\x20','12eSfAGv','63BrxRgk',':\x5cs*(.+)$','join','version','isFile','1251dfoUtF','split','path','7720985AlCSwI','error','present','every','package.json','packageVersion','packageRoot','skipped','isSymbolicLink','digest','trim','hex','sort','parse','unverifiable','SKILL.md','installedPath','SOURCE_INVALID','stdio','25464hIHDIE','sha256','update','absent','VERIFY_FAILED','utf8','includes','name'];a263_0x1ff6=function(){return _0x35324d;};return a263_0x1ff6();}function a263_0x5306(_0x51b636,_0x13cffe){_0x51b636=_0x51b636-0x17a;const _0x1ff6c0=a263_0x1ff6();let _0x5306ab=_0x1ff6c0[_0x51b636];return _0x5306ab;}function sameFiles(_0x50ade4,_0x21067d){const _0x379fba=a263_0x5306;return _0x50ade4[_0x379fba(0x1a6)]===_0x21067d[_0x379fba(0x1a6)]&&_0x50ade4[_0x379fba(0x18c)]((_0x8ce91a,_0x41eb3f)=>_0x8ce91a===_0x21067d[_0x41eb3f]);}function readSource(_0x282d67){const _0x3c55ea=a263_0x5306,_0x145e37=JSON[_0x3c55ea(0x196)](readFileSync(join(_0x282d67,_0x3c55ea(0x18d)),'utf8')),_0x332bb8=JSON['parse'](readFileSync(join(_0x282d67,_0x3c55ea(0x1a7),_0x3c55ea(0x1a5)),_0x3c55ea(0x1a1))),_0x4bb265=join(_0x282d67,'skills',SKILL_NAME),_0x1b915c=frontmatterValue(readFileSync(join(_0x4bb265,_0x3c55ea(0x198)),_0x3c55ea(0x1a1)),_0x3c55ea(0x184)),_0xa0fb27=listFiles(_0x4bb265);if(_0x332bb8['schemaVersion']!==0x1||_0x332bb8[_0x3c55ea(0x1a3)]!==SKILL_NAME||!_0x145e37['version']||_0x332bb8['packageVersion']!==_0x145e37[_0x3c55ea(0x184)]||_0x332bb8[_0x3c55ea(0x1b1)]!==_0x145e37[_0x3c55ea(0x184)]||_0x1b915c!==_0x145e37['version']||!sameFiles(_0xa0fb27,_0x332bb8[_0x3c55ea(0x1a4)])||digestFiles(_0x4bb265,_0xa0fb27)!==_0x332bb8['digest'])throw new Error(_0x3c55ea(0x1b3));return{'packageVersion':_0x145e37[_0x3c55ea(0x184)],'skillVersion':_0x1b915c,'root':_0x4bb265,'manifest':_0x332bb8};}function installedSkillPath(_0x543e11){const _0x1ce166=a263_0x5306,_0xe47eb3=resolveInstalledSkill(SKILL_NAME,{'home':_0x543e11});if(_0xe47eb3[_0x1ce166(0x17a)]===_0x1ce166(0x18b))return{'state':'present','path':dirname(_0xe47eb3['path'])};if(_0xe47eb3[_0x1ce166(0x17a)]===_0x1ce166(0x19f))return{'state':_0x1ce166(0x1a8)};return{'state':_0x1ce166(0x197),'reason':_0xe47eb3[_0x1ce166(0x1af)]};}export function inspectInstalledBuiltinSkillVersion(_0x480cef,_0x18ecd4={}){const _0x3fec34=a263_0x5306,_0x4a4870=installedSkillPath(_0x18ecd4[_0x3fec34(0x1b8)]??homedir());if(_0x4a4870['state']===_0x3fec34(0x1a8))return{'state':_0x3fec34(0x1a8),'expectedVersion':_0x480cef,'repairCommand':REPAIR_COMMAND};if(_0x4a4870['state']===_0x3fec34(0x197))return{'state':_0x3fec34(0x197),'expectedVersion':_0x480cef,'reason':_0x4a4870[_0x3fec34(0x1af)],'repairCommand':REPAIR_COMMAND};try{const _0x2d4752=frontmatterValue(readFileSync(join(_0x4a4870[_0x3fec34(0x188)],_0x3fec34(0x198)),_0x3fec34(0x1a1)),'version');return{'state':_0x2d4752===_0x480cef?_0x3fec34(0x1aa):_0x3fec34(0x17d),'expectedVersion':_0x480cef,'skillVersion':_0x2d4752,'installedPath':_0x4a4870[_0x3fec34(0x188)],'repairCommand':REPAIR_COMMAND};}catch(_0x5bf7ea){return{'state':_0x3fec34(0x197),'expectedVersion':_0x480cef,'installedPath':_0x4a4870[_0x3fec34(0x188)],'reason':_0x5bf7ea instanceof Error?_0x5bf7ea[_0x3fec34(0x1b4)]:String(_0x5bf7ea),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x14e278={}){const _0x4b2674=a263_0x5306,_0x3d3fbc=_0x14e278['packageRoot']??DEFAULT_PACKAGE_ROOT;let _0x3430a1;try{_0x3430a1=readSource(_0x3d3fbc);}catch(_0x4e4399){return{'state':_0x4b2674(0x197),'packageVersion':_0x4b2674(0x1ad),'reason':_0x4e4399 instanceof Error?_0x4e4399['message']:String(_0x4e4399),'repairCommand':REPAIR_COMMAND};}const _0xffd720=installedSkillPath(_0x14e278[_0x4b2674(0x1b8)]??homedir());if(_0xffd720[_0x4b2674(0x17a)]===_0x4b2674(0x1a8))return{'state':_0x4b2674(0x1a8),'packageVersion':_0x3430a1['packageVersion'],'repairCommand':REPAIR_COMMAND};if(_0xffd720[_0x4b2674(0x17a)]===_0x4b2674(0x197))return{'state':_0x4b2674(0x197),'packageVersion':_0x3430a1['packageVersion'],'reason':_0xffd720[_0x4b2674(0x1af)],'repairCommand':REPAIR_COMMAND};try{const _0x11e4b5=frontmatterValue(readFileSync(join(_0xffd720[_0x4b2674(0x188)],_0x4b2674(0x198)),_0x4b2674(0x1a1)),_0x4b2674(0x184));if(_0x11e4b5!==_0x3430a1[_0x4b2674(0x1b1)])return{'state':_0x4b2674(0x17d),'packageVersion':_0x3430a1[_0x4b2674(0x18e)],'skillVersion':_0x11e4b5,'installedPath':_0xffd720['path'],'repairCommand':REPAIR_COMMAND};const _0x74dcd5=listFiles(_0xffd720['path']),_0x3824d1=digestFiles(_0xffd720[_0x4b2674(0x188)],_0x74dcd5);return{'state':sameFiles(_0x74dcd5,_0x3430a1[_0x4b2674(0x1b6)]['files'])&&_0x3824d1===_0x3430a1[_0x4b2674(0x1b6)][_0x4b2674(0x192)]?'current':'content_mismatch','packageVersion':_0x3430a1['packageVersion'],'skillVersion':_0x11e4b5,'installedPath':_0xffd720['path'],'digest':_0x3824d1,'repairCommand':REPAIR_COMMAND};}catch(_0x2ece66){return{'state':_0x4b2674(0x197),'packageVersion':_0x3430a1[_0x4b2674(0x18e)],'installedPath':_0xffd720[_0x4b2674(0x188)],'reason':_0x2ece66 instanceof Error?_0x2ece66[_0x4b2674(0x1b4)]:String(_0x2ece66),'repairCommand':REPAIR_COMMAND};}}function failure(_0x1ff699,_0x3eab19,_0x8e1a9a,_0x2d2849){const _0x585195=a263_0x5306;return{'ok':![],'code':_0x1ff699,'packageVersion':_0x3eab19[_0x585195(0x18e)],'skillVersion':_0x3eab19[_0x585195(0x1b1)],'installedPath':_0x2d2849,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x8e1a9a instanceof Error?_0x8e1a9a['message']:String(_0x8e1a9a)};}export function installBuiltinSkill(_0xa4744c={}){const _0x2ac99f=a263_0x5306,_0xabc4=_0xa4744c[_0x2ac99f(0x18f)]??DEFAULT_PACKAGE_ROOT,_0x2c3377=_0xa4744c['home']??homedir();let _0x3fe711;try{_0x3fe711=readSource(_0xabc4);}catch(_0x580262){return failure(_0x2ac99f(0x19a),{'packageVersion':_0x2ac99f(0x1ad),'skillVersion':_0x2ac99f(0x1ad)},_0x580262);}const _0x46a5f5=inspectBuiltinSkill({'packageRoot':_0xabc4,'home':_0x2c3377}),_0xc7764=runNpxSkillsAddGlobal(_0xabc4,_0x3fe711['root'],{'stdio':_0xa4744c[_0x2ac99f(0x19b)]??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0x2c3377}});if(_0xc7764[_0x2ac99f(0x190)])return{'ok':!![],'packageVersion':_0x3fe711[_0x2ac99f(0x18e)],'skillVersion':_0x3fe711[_0x2ac99f(0x1b1)],'installedPath':_0x46a5f5['installedPath'],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0xc7764['ok'])return failure(_0x2ac99f(0x1b0),_0x3fe711,_0xc7764[_0x2ac99f(0x18a)]??_0x2ac99f(0x1b5)+_0xc7764['status']);const _0x4a45c9=inspectBuiltinSkill({'packageRoot':_0xabc4,'home':_0x2c3377});if(_0x4a45c9['state']!=='current')return failure(_0x2ac99f(0x1a0),_0x3fe711,_0x4a45c9[_0x2ac99f(0x1af)]??_0x2ac99f(0x1ac)+_0x4a45c9['state'],_0x4a45c9[_0x2ac99f(0x199)]);return{'ok':!![],'packageVersion':_0x3fe711[_0x2ac99f(0x18e)],'skillVersion':_0x3fe711[_0x2ac99f(0x1b1)],'installedPath':_0x4a45c9['installedPath'],'changed':_0x46a5f5[_0x2ac99f(0x17a)]!==_0x2ac99f(0x1aa),'repairCommand':REPAIR_COMMAND};}
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 +1 @@
1
- (function(_0x536efc,_0x252a0f){const _0x3bc0e6=a264_0x8e69,_0x43240a=_0x536efc();while(!![]){try{const _0x29bf3b=parseInt(_0x3bc0e6(0xa8))/0x1+parseInt(_0x3bc0e6(0xac))/0x2*(parseInt(_0x3bc0e6(0x93))/0x3)+parseInt(_0x3bc0e6(0x9a))/0x4*(-parseInt(_0x3bc0e6(0xaf))/0x5)+parseInt(_0x3bc0e6(0xa7))/0x6+-parseInt(_0x3bc0e6(0x99))/0x7+parseInt(_0x3bc0e6(0xb0))/0x8+-parseInt(_0x3bc0e6(0xa2))/0x9;if(_0x29bf3b===_0x252a0f)break;else _0x43240a['push'](_0x43240a['shift']());}catch(_0x580528){_0x43240a['push'](_0x43240a['shift']());}}}(a264_0x5c9f,0x5568c));import{logger}from'../utils/logger.js';function a264_0x5c9f(){const _0x170107=['toLowerCase','10EKKAGg','help','startsWith','10WiEAyX','628928oWmwDZ','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','slice','add','(empty)','entries','337476YCJwPV','argv','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','Public\x20Open\x20Skill\x20source:\x20','includes','push','1300579QUlPVM','241720ljdddG','skill','has','不支持的命令:\x20','setLogPath','\x0aAvailable\x20commands:','log','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','6877800oxiPxc','--help','from','enable-bff-save','dangerously-bff-save','551418KWxKWY','687714Ezqthr','error','replace'];a264_0x5c9f=function(){return _0x170107;};return a264_0x5c9f();}import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x44ad75){const _0x654490=a264_0x8e69,_0x2d8634=[];for(const [_0x98094e,_0x2b7c18]of Object[_0x654490(0xb5)](_0x44ad75)){if(_0x2b7c18===!![]){const _0x251abd=_0x98094e[_0x654490(0xaa)](/([A-Z])/g,'-$1')[_0x654490(0xab)]();_0x2d8634[_0x654490(0x98)](_0x251abd);}}return _0x2d8634;}export function parseDynamicFlags(){const _0x579f60=a264_0x8e69,_0x1b7b1d=[];for(let _0x298ae0=0x3;_0x298ae0<process[_0x579f60(0x94)]['length'];_0x298ae0++){const _0x581bab=process[_0x579f60(0x94)][_0x298ae0];if(_0x581bab&&_0x581bab[_0x579f60(0xae)]('--')){const _0x1bcbe4=_0x581bab[_0x579f60(0xb2)](0x2);_0x1bcbe4&&!_0x1bcbe4[_0x579f60(0x97)]('=')&&_0x1b7b1d['push'](_0x1bcbe4);}}return _0x1b7b1d;}export function getAllProvidedFlags(_0x397aa5){const _0x220f0b=a264_0x8e69,_0x373c9=camelCaseFlagsToKebab(_0x397aa5),_0xbb7d9e=parseDynamicFlags(),_0x214b71=new Set([..._0x373c9,..._0xbb7d9e]);return Array[_0x220f0b(0xa4)](_0x214b71);}export function normalizeLegacyBffSaveFlags(_0x242c87){const _0x442924=a264_0x8e69,_0x3667e4=new Set(_0x242c87);return _0x3667e4[_0x442924(0x9c)](_0x442924(0xa6))&&_0x3667e4[_0x442924(0xb3)](_0x442924(0xa5)),Array[_0x442924(0xa4)](_0x3667e4);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a264_0x8e69(_0x2cbf50,_0x581d09){_0x2cbf50=_0x2cbf50-0x93;const _0x5c9f73=a264_0x5c9f();let _0x8e696c=_0x5c9f73[_0x2cbf50];return _0x8e696c;}export async function skillsCommand(_0x28dd31,_0x406c91,_0x2d69a7){const _0x1d6410=a264_0x8e69;logger[_0x1d6410(0x9e)](process['cwd']());if(_0x2d69a7?.[_0x1d6410(0xad)]||_0x28dd31===_0x1d6410(0xa3)){showHelp();return;}console[_0x1d6410(0xa9)]('Error:\x20Unsupported\x20command:\x20'+(_0x28dd31||_0x1d6410(0xb4))),console['log'](_0x1d6410(0x9f)),console[_0x1d6410(0xa0)]('\x20\x20'+CLI_BIN_NAME+_0x1d6410(0x95)),console['log'](''),console[_0x1d6410(0xa0)](_0x1d6410(0x96)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x1d6410(0xa9)](_0x1d6410(0x9b),_0x1d6410(0x9d)+_0x28dd31),process['exit'](0x1);}function showHelp(){const _0x16f2e9=a264_0x8e69;console[_0x16f2e9(0xa0)](_0x16f2e9(0xb1)+CLI_BIN_NAME+_0x16f2e9(0xa1)+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(_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 +1 @@
1
- const a265_0x43f7ce=a265_0x3281;(function(_0x52a0d9,_0x195c17){const _0x207b04=a265_0x3281,_0x41842f=_0x52a0d9();while(!![]){try{const _0x340a3b=-parseInt(_0x207b04(0x1f3))/0x1*(-parseInt(_0x207b04(0x1fa))/0x2)+-parseInt(_0x207b04(0x1f0))/0x3+-parseInt(_0x207b04(0x200))/0x4*(parseInt(_0x207b04(0x211))/0x5)+-parseInt(_0x207b04(0x21a))/0x6*(-parseInt(_0x207b04(0x216))/0x7)+-parseInt(_0x207b04(0x1eb))/0x8+-parseInt(_0x207b04(0x20e))/0x9+parseInt(_0x207b04(0x218))/0xa*(parseInt(_0x207b04(0x20d))/0xb);if(_0x340a3b===_0x195c17)break;else _0x41842f['push'](_0x41842f['shift']());}catch(_0x3f83b0){_0x41842f['push'](_0x41842f['shift']());}}}(a265_0x4b70,0xa6552));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills@latest';export const NPX_SKILLS_SUBCOMMAND_ADD=a265_0x43f7ce(0x1e4);export const NPX_SKILLS_FLAG_SKILL=a265_0x43f7ce(0x1f7);export const RABETBASE_SKILL_SOURCE=a265_0x43f7ce(0x1e3);export const LEGACY_RABETBASE_SKILL_SOURCE=a265_0x43f7ce(0x217);function a265_0x4b70(){const _0x19cc0b=['toString','join','message','EACCES','push','log','PERMISSION_DENIED','4420438xHgcCt','365904rbMICj','error','CHILD_EXIT_NONZERO','11995iYWNMz','trim','remove','pipe','status','28532nulXbX','lovrabet/lovrabet-skill','50RRRNZb','NPX_NOT_FOUND','1818IsvaFQ','state','lovrabet/rabetbase','add','checked','filter','CHILD_TERMINATED','present','warn','\x20failed\x20target(s)','7783872yhcNee','absent','stdout','SKILL_NOT_INSTALLED','code','2291964xrEpwL','stdio','unknown','39uFhlCd','inherit','npx','signal','--skill','expectedSkillName','Installer\x20reported\x20','14962BdjSja','presence','match','npm_config_global','ENOENT','skill','1796kdLSOr','EPERM','INSTALL_PARTIAL','reason','npx\x20terminated\x20by\x20signal\x20','\x22\x20install\x20state:\x20'];a265_0x4b70=function(){return _0x19cc0b;};return a265_0x4b70();}export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export const RABETBASE_GLOBAL_SKILL_NAME='rabetbase';export const RABETBASE_SKILL_GIT_SOURCE='git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git';export function resolveGlobalSkillName(_0x153451){const _0xf7809b=a265_0x43f7ce;switch(_0x153451[_0xf7809b(0x212)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x565737){const _0x16815c=a265_0x43f7ce,_0x4451b9=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x565737&&_0x4451b9[_0x16815c(0x20a)](NPX_SKILLS_FLAG_SKILL,_0x565737),_0x4451b9;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a265_0x43f7ce(0x1f5),...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a265_0x43f7ce(0x1f5),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x2e230c,_0x471ec0,_0x54e0b3){return{'ok':![],'status':_0x471ec0,'code':_0x2e230c,'error':'['+_0x2e230c+']\x20'+_0x54e0b3};}function a265_0x3281(_0x476d91,_0x59206c){_0x476d91=_0x476d91-0x1e3;const _0x4b705d=a265_0x4b70();let _0x3281be=_0x4b705d[_0x476d91];return _0x3281be;}function spawnOptions(_0x411fe9,_0x4072ec){const _0x53f153=a265_0x43f7ce,_0x4e119e={...process.env};return delete _0x4e119e[_0x53f153(0x1fd)],delete _0x4e119e['NPM_CONFIG_GLOBAL'],{'cwd':_0x411fe9,'stdio':_0x4072ec,'env':_0x4e119e,'shell':![],..._0x4072ec==='pipe'?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0xe4eb79,_0x311741,_0x34304e,_0x1b9830){const _0x440b5b=a265_0x43f7ce,_0x249b99=[_0xe4eb79[_0x440b5b(0x1ed)]?_0xe4eb79['stdout']['toString']():'',_0xe4eb79['stderr']?_0xe4eb79['stderr'][_0x440b5b(0x206)]():''][_0x440b5b(0x1e6)](Boolean)[_0x440b5b(0x207)]('\x0a')[_0x440b5b(0x212)]();_0x1b9830!=='pipe'&&_0x249b99&&console[_0x440b5b(0x20b)](_0x249b99);if(_0xe4eb79['error']){const _0x5c7c75=_0xe4eb79[_0x440b5b(0x20f)],_0x59b432=_0x5c7c75[_0x440b5b(0x1ef)]===_0x440b5b(0x1fe)?_0x440b5b(0x219):_0x5c7c75[_0x440b5b(0x1ef)]===_0x440b5b(0x201)||_0x5c7c75[_0x440b5b(0x1ef)]===_0x440b5b(0x209)?_0x440b5b(0x20c):'SPAWN_FAILED';return failure(_0x59b432,_0xe4eb79[_0x440b5b(0x215)],_0x5c7c75[_0x440b5b(0x208)]);}if(_0xe4eb79[_0x440b5b(0x1f6)])return failure(_0x440b5b(0x1e7),_0xe4eb79['status'],_0x440b5b(0x204)+_0xe4eb79[_0x440b5b(0x1f6)]);if(_0xe4eb79[_0x440b5b(0x215)]!==0x0)return failure(_0x440b5b(0x210),_0xe4eb79[_0x440b5b(0x215)],_0x249b99||'exit\x20'+(_0xe4eb79[_0x440b5b(0x215)]??_0x440b5b(0x1f2)));const _0x36f7df=_0x311741?resolveInstalledSkill(_0x311741,_0x34304e):undefined,_0x33f58b=_0x249b99[_0x440b5b(0x1fc)](/Failed to install\s+(\d+)/i);if(_0x33f58b&&Number(_0x33f58b[0x1])>0x0){const _0x2a8951=_0x440b5b(0x1f9)+_0x33f58b[0x1]+_0x440b5b(0x1ea)+(_0x249b99?':\x0a'+_0x249b99:'');if(_0x36f7df?.[_0x440b5b(0x21b)]===_0x440b5b(0x1e8))return console[_0x440b5b(0x1e9)]('!\x20'+_0x2a8951),{'ok':!![],'status':0x0};return failure(_0x440b5b(0x202),0x0,_0x2a8951);}if(_0x36f7df){if(_0x36f7df[_0x440b5b(0x21b)]===_0x440b5b(0x1ec))return failure(_0x440b5b(0x1ee),0x0,'Skill\x20\x22'+_0x311741+'\x22\x20not\x20found\x20after\x20install\x20(checked\x20'+_0x36f7df[_0x440b5b(0x1e5)][_0x440b5b(0x207)](',\x20')+')');_0x36f7df[_0x440b5b(0x21b)]==='unverifiable'&&console[_0x440b5b(0x1e9)]('!\x20Could\x20not\x20verify\x20\x22'+_0x311741+_0x440b5b(0x205)+_0x36f7df[_0x440b5b(0x203)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x2194da,_0x120927){const _0x474626=a265_0x43f7ce;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x554915=_0x120927?.[_0x474626(0x1f1)]??_0x474626(0x1f4),_0x41cabe=resolveNpmBin(_0x474626(0x1f5)),_0x2af77d=buildNpxSkillsAddArgv(_0x120927?.['skill']),_0x25a7e8=[_0x474626(0x1f5),..._0x2af77d][_0x474626(0x207)]('\x20');console[_0x474626(0x20b)]('*\x20'+_0x25a7e8);const _0x386e60=spawnSync(_0x41cabe,_0x2af77d,spawnOptions(_0x2194da,_0x554915));return normalizeSpawnResult(_0x386e60,undefined,undefined,_0x554915);}export function runNpxSkillsRemove(_0x26a3f9,_0x23c680,_0x1e8948=LEGACY_RABETBASE_SKILL_SOURCE){const _0x165c15=a265_0x43f7ce;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1bc6ac=_0x23c680?.[_0x165c15(0x1f1)]??_0x165c15(0x1f4),_0x24b377=resolveNpmBin('npx'),_0x3ae2ed=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x165c15(0x213),_0x1e8948,NPX_SKILLS_FLAG_SKILL,_0x23c680?.[_0x165c15(0x1ff)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x23c680?.['yes']?['-y']:[]],_0x16f78c=[_0x24b377,..._0x3ae2ed][_0x165c15(0x207)]('\x20');console[_0x165c15(0x20b)]('*\x20'+_0x16f78c);const _0x3dcc49=spawnSync(_0x24b377,_0x3ae2ed,spawnOptions(_0x26a3f9,_0x1bc6ac));return normalizeSpawnResult(_0x3dcc49,undefined,undefined,_0x1bc6ac);}export function runNpxSkillsAddGlobal(_0x1e63f5,_0x1b580f,_0x1bac8e){const _0x3da6b9=a265_0x43f7ce;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1b5f7f=resolveNpmBin(_0x3da6b9(0x1f5)),_0x4a64ae=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x1b580f,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x18009e=[_0x3da6b9(0x1f5),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x1b580f,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console[_0x3da6b9(0x20b)]('*\x20'+_0x18009e);const _0x40b291=spawnSync(_0x1b5f7f,_0x4a64ae,spawnOptions(_0x1e63f5,_0x3da6b9(0x214)));return normalizeSpawnResult(_0x40b291,_0x1bac8e?.[_0x3da6b9(0x1f8)]??resolveGlobalSkillName(_0x1b580f),_0x1bac8e?.[_0x3da6b9(0x1fb)],_0x1bac8e?.[_0x3da6b9(0x1f1)]);}
1
+ const a265_0x2e1ad5=a265_0x277b;function a265_0x3cf8(){const _0x1127d7=['Lovrabet','skills@latest','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','36536kLgMQR','12FjFtdh','log','add','toString','7wLxOfV','--skill','20KiwbiA','stdio','882GKEabx','presence','exit\x20','warn','filter','reason','NPM_CONFIG_GLOBAL','8841985SncTci','\x22\x20install\x20state:\x20','code','message','join','INSTALL_PARTIAL','Skill\x20\x22','Installer\x20reported\x20','skill','inherit','826133mkhvtT','state','CHILD_EXIT_NONZERO','EACCES','CHILD_TERMINATED','npx\x20terminated\x20by\x20signal\x20','status','5246864lqBkJd','2489097lYjWRV','lovrabet/lovrabet-skill','match','pipe','yes','signal','NPX_NOT_FOUND','rabetbase','lovrabet/rabetbase','ENOENT','unverifiable','expectedSkillName','stdout','error','SKILL_NOT_INSTALLED','trim','npm_config_global','57945vVXVmM','present','npx','!\x20Could\x20not\x20verify\x20\x22','stderr','343074MPKihZ'];a265_0x3cf8=function(){return _0x1127d7;};return a265_0x3cf8();}(function(_0xdfd45f,_0x45b938){const _0x52fec3=a265_0x277b,_0x2134d5=_0xdfd45f();while(!![]){try{const _0x1b3501=-parseInt(_0x52fec3(0x7e))/0x1*(-parseInt(_0x52fec3(0x88))/0x2)+parseInt(_0x52fec3(0x6d))/0x3+parseInt(_0x52fec3(0x6c))/0x4+-parseInt(_0x52fec3(0x97))/0x5+parseInt(_0x52fec3(0x83))/0x6*(-parseInt(_0x52fec3(0x8c))/0x7)+parseInt(_0x52fec3(0x87))/0x8*(parseInt(_0x52fec3(0x90))/0x9)+-parseInt(_0x52fec3(0x8e))/0xa*(parseInt(_0x52fec3(0xa1))/0xb);if(_0x1b3501===_0x45b938)break;else _0x2134d5['push'](_0x2134d5['shift']());}catch(_0x96abe2){_0x2134d5['push'](_0x2134d5['shift']());}}}(a265_0x3cf8,0xea965));import{spawnSync}from'node:child_process';function a265_0x277b(_0x377f60,_0x50e2a4){_0x377f60=_0x377f60-0x69;const _0x3cf8ff=a265_0x3cf8();let _0x277be2=_0x3cf8ff[_0x377f60];return _0x277be2;}import{resolveNpmBin}from'../utils/platform.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a265_0x2e1ad5(0x85);export const NPX_SKILLS_SUBCOMMAND_ADD=a265_0x2e1ad5(0x8a);export const NPX_SKILLS_FLAG_SKILL=a265_0x2e1ad5(0x8d);export const RABETBASE_SKILL_SOURCE=a265_0x2e1ad5(0x75);export const LEGACY_RABETBASE_SKILL_SOURCE=a265_0x2e1ad5(0x6e);export const DEFAULT_RABETBASE_SKILL_NAME=a265_0x2e1ad5(0x84);export const RABETBASE_GLOBAL_SKILL_NAME=a265_0x2e1ad5(0x74);export const RABETBASE_SKILL_GIT_SOURCE=a265_0x2e1ad5(0x86);export function resolveGlobalSkillName(_0x100326){const _0x4621e4=a265_0x2e1ad5;switch(_0x100326[_0x4621e4(0x7c)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x42b4aa){const _0x101532=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x42b4aa&&_0x101532['push'](NPX_SKILLS_FLAG_SKILL,_0x42b4aa),_0x101532;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a265_0x2e1ad5(0x80),...buildNpxSkillsAddArgv()][a265_0x2e1ad5(0x9b)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a265_0x2e1ad5(0x9b)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0xe7dd73,_0xb8389,_0x1d2de2){return{'ok':![],'status':_0xb8389,'code':_0xe7dd73,'error':'['+_0xe7dd73+']\x20'+_0x1d2de2};}function spawnOptions(_0x163887,_0xb248b4){const _0x149342=a265_0x2e1ad5,_0x5eeae4={...process.env};return delete _0x5eeae4[_0x149342(0x7d)],delete _0x5eeae4[_0x149342(0x96)],{'cwd':_0x163887,'stdio':_0xb248b4,'env':_0x5eeae4,'shell':![],..._0xb248b4===_0x149342(0x70)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x5041fa,_0x4cd33e,_0x1ec2d9,_0x9329a7){const _0x1f9f46=a265_0x2e1ad5,_0x4216e3=[_0x5041fa[_0x1f9f46(0x79)]?_0x5041fa[_0x1f9f46(0x79)][_0x1f9f46(0x8b)]():'',_0x5041fa[_0x1f9f46(0x82)]?_0x5041fa[_0x1f9f46(0x82)][_0x1f9f46(0x8b)]():''][_0x1f9f46(0x94)](Boolean)[_0x1f9f46(0x9b)]('\x0a')[_0x1f9f46(0x7c)]();_0x9329a7!==_0x1f9f46(0x70)&&_0x4216e3&&console['log'](_0x4216e3);if(_0x5041fa[_0x1f9f46(0x7a)]){const _0x26e296=_0x5041fa[_0x1f9f46(0x7a)],_0xddc9a5=_0x26e296[_0x1f9f46(0x99)]===_0x1f9f46(0x76)?_0x1f9f46(0x73):_0x26e296[_0x1f9f46(0x99)]==='EPERM'||_0x26e296['code']===_0x1f9f46(0xa4)?'PERMISSION_DENIED':'SPAWN_FAILED';return failure(_0xddc9a5,_0x5041fa[_0x1f9f46(0x6b)],_0x26e296[_0x1f9f46(0x9a)]);}if(_0x5041fa[_0x1f9f46(0x72)])return failure(_0x1f9f46(0x69),_0x5041fa[_0x1f9f46(0x6b)],_0x1f9f46(0x6a)+_0x5041fa[_0x1f9f46(0x72)]);if(_0x5041fa['status']!==0x0)return failure(_0x1f9f46(0xa3),_0x5041fa[_0x1f9f46(0x6b)],_0x4216e3||_0x1f9f46(0x92)+(_0x5041fa[_0x1f9f46(0x6b)]??'unknown'));const _0xa1da52=_0x4cd33e?resolveInstalledSkill(_0x4cd33e,_0x1ec2d9):undefined,_0x4f6450=_0x4216e3[_0x1f9f46(0x6f)](/Failed to install\s+(\d+)/i);if(_0x4f6450&&Number(_0x4f6450[0x1])>0x0){const _0x5f2bc6=_0x1f9f46(0x9e)+_0x4f6450[0x1]+'\x20failed\x20target(s)'+(_0x4216e3?':\x0a'+_0x4216e3:'');if(_0xa1da52?.['state']===_0x1f9f46(0x7f))return console[_0x1f9f46(0x93)]('!\x20'+_0x5f2bc6),{'ok':!![],'status':0x0};return failure(_0x1f9f46(0x9c),0x0,_0x5f2bc6);}if(_0xa1da52){if(_0xa1da52[_0x1f9f46(0xa2)]==='absent')return failure(_0x1f9f46(0x7b),0x0,_0x1f9f46(0x9d)+_0x4cd33e+'\x22\x20not\x20found\x20after\x20install\x20(checked\x20'+_0xa1da52['checked']['join'](',\x20')+')');_0xa1da52[_0x1f9f46(0xa2)]===_0x1f9f46(0x77)&&console[_0x1f9f46(0x93)](_0x1f9f46(0x81)+_0x4cd33e+_0x1f9f46(0x98)+_0xa1da52[_0x1f9f46(0x95)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x27295d,_0x7952da){const _0x3722c7=a265_0x2e1ad5;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1703ca=_0x7952da?.[_0x3722c7(0x8f)]??'inherit',_0x52ebc2=resolveNpmBin(_0x3722c7(0x80)),_0x2114d1=buildNpxSkillsAddArgv(_0x7952da?.[_0x3722c7(0x9f)]),_0x1ec208=[_0x3722c7(0x80),..._0x2114d1][_0x3722c7(0x9b)]('\x20');console[_0x3722c7(0x89)]('*\x20'+_0x1ec208);const _0x1ad22d=spawnSync(_0x52ebc2,_0x2114d1,spawnOptions(_0x27295d,_0x1703ca));return normalizeSpawnResult(_0x1ad22d,undefined,undefined,_0x1703ca);}export function runNpxSkillsRemove(_0x57b0da,_0x44552f,_0x45ad0a=LEGACY_RABETBASE_SKILL_SOURCE){const _0x218f42=a265_0x2e1ad5;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x37c16f=_0x44552f?.[_0x218f42(0x8f)]??_0x218f42(0xa0),_0x4e0d5a=resolveNpmBin('npx'),_0x28af14=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x45ad0a,NPX_SKILLS_FLAG_SKILL,_0x44552f?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x44552f?.[_0x218f42(0x71)]?['-y']:[]],_0x44b4f9=[_0x4e0d5a,..._0x28af14][_0x218f42(0x9b)]('\x20');console[_0x218f42(0x89)]('*\x20'+_0x44b4f9);const _0x2df540=spawnSync(_0x4e0d5a,_0x28af14,spawnOptions(_0x57b0da,_0x37c16f));return normalizeSpawnResult(_0x2df540,undefined,undefined,_0x37c16f);}export function runNpxSkillsAddGlobal(_0x3edb60,_0x3fd59a,_0x24285b){const _0x52761b=a265_0x2e1ad5;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5c64ad=resolveNpmBin('npx'),_0x5068ee=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3fd59a,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x45a2f4=[_0x52761b(0x80),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3fd59a,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x52761b(0x9b)]('\x20');console[_0x52761b(0x89)]('*\x20'+_0x45a2f4);const _0x5d82ed=spawnSync(_0x5c64ad,_0x5068ee,spawnOptions(_0x3edb60,'pipe'));return normalizeSpawnResult(_0x5d82ed,_0x24285b?.[_0x52761b(0x78)]??resolveGlobalSkillName(_0x3fd59a),_0x24285b?.[_0x52761b(0x91)],_0x24285b?.[_0x52761b(0x8f)]);}
@@ -1 +1 @@
1
- const a266_0x475e46=a266_0x584f;(function(_0x14d8ef,_0x3fe375){const _0x3b6d96=a266_0x584f,_0x498bee=_0x14d8ef();while(!![]){try{const _0x448e58=-parseInt(_0x3b6d96(0x1e7))/0x1*(-parseInt(_0x3b6d96(0x1f7))/0x2)+-parseInt(_0x3b6d96(0x1f3))/0x3*(-parseInt(_0x3b6d96(0x1e8))/0x4)+parseInt(_0x3b6d96(0x1d5))/0x5+-parseInt(_0x3b6d96(0x1d6))/0x6+parseInt(_0x3b6d96(0x1e4))/0x7*(-parseInt(_0x3b6d96(0x1d8))/0x8)+parseInt(_0x3b6d96(0x1f0))/0x9+parseInt(_0x3b6d96(0x1e9))/0xa*(parseInt(_0x3b6d96(0x1e6))/0xb);if(_0x448e58===_0x3fe375)break;else _0x498bee['push'](_0x498bee['shift']());}catch(_0x4daf0d){_0x498bee['push'](_0x498bee['shift']());}}}(a266_0x264a,0xb1445));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';function a266_0x584f(_0x3e955b,_0x31da54){_0x3e955b=_0x3e955b-0x1d5;const _0x264a85=a266_0x264a();let _0x584f28=_0x264a85[_0x3e955b];return _0x584f28;}import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join('.agents',a266_0x475e46(0x1dc));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents',a266_0x475e46(0x1ea)),join(a266_0x475e46(0x1f9),a266_0x475e46(0x1ea))];const SUPPORTED_LOCK_VERSIONS=[0x3];function a266_0x264a(){const _0x403cb7=['553GgBicV','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','118151utUyyJ','1459buRVKn','184ainupv','430JftFwn','skills','absent','parse','object','kind','reason','3255165bpxVkq','join','unverifiable','74262cOkVzf','version','present','map','282chQMrz','\x20has\x20no\x20skills\x20map','.claude','SKILL.md','2902145OPwYuS','7102260xSwBNS','\x20records\x20\x22','84920afHBVS','includes','message','globalSkillsDirs','.skill-lock.json','home','unusable','not-recorded','find','lockFile','\x20uses\x20unsupported\x20version\x20','recorded'];a266_0x264a=function(){return _0x403cb7;};return a266_0x264a();}function readLockLookup(_0xba745c,_0x21c6d4){const _0x5e49f5=a266_0x475e46;if(!existsSync(_0xba745c))return{'kind':_0x5e49f5(0x1df)};let _0x29654a;try{_0x29654a=JSON[_0x5e49f5(0x1ec)](readFileSync(_0xba745c,'utf8'));}catch(_0x23eb01){return{'kind':'unusable','reason':_0xba745c+'\x20is\x20unreadable:\x20'+_0x23eb01[_0x5e49f5(0x1da)]};}const _0x384988=_0x29654a;if(typeof _0x384988?.[_0x5e49f5(0x1f4)]!=='number'||!SUPPORTED_LOCK_VERSIONS[_0x5e49f5(0x1d9)](_0x384988[_0x5e49f5(0x1f4)]))return{'kind':'unusable','reason':_0xba745c+_0x5e49f5(0x1e2)+String(_0x384988?.['version'])};if(!_0x384988['skills']||typeof _0x384988[_0x5e49f5(0x1ea)]!==_0x5e49f5(0x1ed))return{'kind':'unusable','reason':_0xba745c+_0x5e49f5(0x1f8)};return _0x384988[_0x5e49f5(0x1ea)][_0x21c6d4]?{'kind':_0x5e49f5(0x1e3)}:{'kind':_0x5e49f5(0x1df)};}export function resolveInstalledSkill(_0x7be954,_0x25ac52){const _0x5eab48=a266_0x475e46,_0x47a014=_0x25ac52?.[_0x5eab48(0x1dd)]??homedir(),_0x19f04c=_0x25ac52?.[_0x5eab48(0x1db)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS['map'](_0x4d81e6=>join(_0x47a014,_0x4d81e6)),_0x14b937=_0x25ac52?.[_0x5eab48(0x1e1)]??join(_0x47a014,SKILL_LOCK_RELATIVE_PATH),_0xf38e2d=_0x19f04c[_0x5eab48(0x1f6)](_0x42a211=>join(_0x42a211,_0x7be954,_0x5eab48(0x1fa))),_0x3dccf5=_0xf38e2d[_0x5eab48(0x1e0)](_0x41a9cc=>existsSync(_0x41a9cc));if(_0x3dccf5)return{'state':_0x5eab48(0x1f5),'path':_0x3dccf5};const _0x55195f=readLockLookup(_0x14b937,_0x7be954);if(_0x55195f[_0x5eab48(0x1ee)]===_0x5eab48(0x1de))return{'state':_0x5eab48(0x1f2),'reason':_0x55195f[_0x5eab48(0x1ef)]};if(_0x55195f['kind']===_0x5eab48(0x1e3))return{'state':_0x5eab48(0x1f2),'reason':_0x14b937+_0x5eab48(0x1d7)+_0x7be954+_0x5eab48(0x1e5)+('('+_0xf38e2d[_0x5eab48(0x1f1)](',\x20')+')')};return{'state':_0x5eab48(0x1eb),'checked':_0xf38e2d};}
1
+ const a266_0x20ee7c=a266_0x4942;(function(_0x6b10ad,_0x2c7894){const _0x29aabc=a266_0x4942,_0x427f72=_0x6b10ad();while(!![]){try{const _0x281c26=parseInt(_0x29aabc(0xb4))/0x1*(-parseInt(_0x29aabc(0xb2))/0x2)+-parseInt(_0x29aabc(0xc6))/0x3*(parseInt(_0x29aabc(0xb8))/0x4)+parseInt(_0x29aabc(0xcb))/0x5*(-parseInt(_0x29aabc(0xae))/0x6)+-parseInt(_0x29aabc(0xbb))/0x7*(-parseInt(_0x29aabc(0xaf))/0x8)+parseInt(_0x29aabc(0xb1))/0x9*(-parseInt(_0x29aabc(0xb3))/0xa)+-parseInt(_0x29aabc(0xba))/0xb+parseInt(_0x29aabc(0xc7))/0xc;if(_0x281c26===_0x2c7894)break;else _0x427f72['push'](_0x427f72['shift']());}catch(_0xde9dfd){_0x427f72['push'](_0x427f72['shift']());}}}(a266_0x3219,0x214b8));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a266_0x20ee7c(0xc1),'.skill-lock.json');function a266_0x3219(){const _0xa8c5c8=['find','map','recorded','3LxrEhd','10117584OBkrXB','join','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','\x20records\x20\x22','290020SSgLOL','reason','\x20uses\x20unsupported\x20version\x20','present','18nMjvlt','8FGJhEg','not-recorded','54Hwawvz','1710bmcylz','403440hWZBcR','195ErZcbZ','unusable','skills','kind','75212VkFpwJ','utf8','2711049HzlxXL','989149acAbkl','number','object','includes','\x20has\x20no\x20skills\x20map','\x20is\x20unreadable:\x20','.agents','unverifiable'];a266_0x3219=function(){return _0xa8c5c8;};return a266_0x3219();}function a266_0x4942(_0x2dd746,_0x7615b1){_0x2dd746=_0x2dd746-0xae;const _0x32191c=a266_0x3219();let _0x494272=_0x32191c[_0x2dd746];return _0x494272;}export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a266_0x20ee7c(0xc1),'skills'),join('.claude',a266_0x20ee7c(0xb6))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x54a01d,_0x5990a2){const _0x33bb5d=a266_0x20ee7c;if(!existsSync(_0x54a01d))return{'kind':_0x33bb5d(0xb0)};let _0x42d37c;try{_0x42d37c=JSON['parse'](readFileSync(_0x54a01d,_0x33bb5d(0xb9)));}catch(_0x1ca3a4){return{'kind':'unusable','reason':_0x54a01d+_0x33bb5d(0xc0)+_0x1ca3a4['message']};}const _0x319f97=_0x42d37c;if(typeof _0x319f97?.['version']!==_0x33bb5d(0xbc)||!SUPPORTED_LOCK_VERSIONS[_0x33bb5d(0xbe)](_0x319f97['version']))return{'kind':_0x33bb5d(0xb5),'reason':_0x54a01d+_0x33bb5d(0xcd)+String(_0x319f97?.['version'])};if(!_0x319f97['skills']||typeof _0x319f97[_0x33bb5d(0xb6)]!==_0x33bb5d(0xbd))return{'kind':_0x33bb5d(0xb5),'reason':_0x54a01d+_0x33bb5d(0xbf)};return _0x319f97[_0x33bb5d(0xb6)][_0x5990a2]?{'kind':_0x33bb5d(0xc5)}:{'kind':'not-recorded'};}export function resolveInstalledSkill(_0x4428ac,_0x4e3442){const _0x4659c0=a266_0x20ee7c,_0x5eaefd=_0x4e3442?.['home']??homedir(),_0x59a7e5=_0x4e3442?.['globalSkillsDirs']??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x4659c0(0xc4)](_0x4bc83a=>join(_0x5eaefd,_0x4bc83a)),_0x56271b=_0x4e3442?.['lockFile']??join(_0x5eaefd,SKILL_LOCK_RELATIVE_PATH),_0x59c4a8=_0x59a7e5['map'](_0x4cf308=>join(_0x4cf308,_0x4428ac,'SKILL.md')),_0xbf4f86=_0x59c4a8[_0x4659c0(0xc3)](_0x41618b=>existsSync(_0x41618b));if(_0xbf4f86)return{'state':_0x4659c0(0xce),'path':_0xbf4f86};const _0x44168e=readLockLookup(_0x56271b,_0x4428ac);if(_0x44168e[_0x4659c0(0xb7)]===_0x4659c0(0xb5))return{'state':_0x4659c0(0xc2),'reason':_0x44168e[_0x4659c0(0xcc)]};if(_0x44168e[_0x4659c0(0xb7)]===_0x4659c0(0xc5))return{'state':_0x4659c0(0xc2),'reason':_0x56271b+_0x4659c0(0xca)+_0x4428ac+_0x4659c0(0xc9)+('('+_0x59c4a8[_0x4659c0(0xc8)](',\x20')+')')};return{'state':'absent','checked':_0x59c4a8};}
@@ -1 +1 @@
1
- function a267_0x3598(){const _0x324c57=['3273699MbASfc','2957572TcbYJE','60ZhcQDg','[REDACTED]','error','message','entries','303105sUyQWg','service','durationMs','flags','80KuQRwF','3cAsefQ','9oSTlWF','rabetbase.command','34sQbhHo','5523590hJgyOl','test','5bNKTJt','821052hTgPOF','311878NcRzuH','23803RJZktu'];a267_0x3598=function(){return _0x324c57;};return a267_0x3598();}(function(_0xed63a8,_0x7c9a69){const _0x1c7d4e=a267_0x13a4,_0x5e643d=_0xed63a8();while(!![]){try{const _0x1e5988=-parseInt(_0x1c7d4e(0x16e))/0x1*(-parseInt(_0x1c7d4e(0x168))/0x2)+-parseInt(_0x1c7d4e(0x165))/0x3*(-parseInt(_0x1c7d4e(0x170))/0x4)+parseInt(_0x1c7d4e(0x16b))/0x5*(-parseInt(_0x1c7d4e(0x16c))/0x6)+-parseInt(_0x1c7d4e(0x16d))/0x7*(parseInt(_0x1c7d4e(0x164))/0x8)+parseInt(_0x1c7d4e(0x166))/0x9*(-parseInt(_0x1c7d4e(0x169))/0xa)+parseInt(_0x1c7d4e(0x176))/0xb*(parseInt(_0x1c7d4e(0x171))/0xc)+parseInt(_0x1c7d4e(0x16f))/0xd;if(_0x1e5988===_0x7c9a69)break;else _0x5e643d['push'](_0x5e643d['shift']());}catch(_0x32c459){_0x5e643d['push'](_0x5e643d['shift']());}}}(a267_0x3598,0x61635));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x513a67){const _0x3e299a=a267_0x13a4;return SENSITIVE_PATTERNS['some'](_0x550111=>_0x550111[_0x3e299a(0x16a)](_0x513a67));}function a267_0x13a4(_0x2a995c,_0xabdd9){_0x2a995c=_0x2a995c-0x163;const _0x3598b1=a267_0x3598();let _0x13a40b=_0x3598b1[_0x2a995c];return _0x13a40b;}function sanitizeFlags(_0x547f70){const _0x4ab140=a267_0x13a4,_0x4d1b0d={};for(const [_0x76d1bf,_0x59b1c2]of Object[_0x4ab140(0x175)](_0x547f70)){isSensitiveKey(_0x76d1bf)?_0x4d1b0d[_0x76d1bf]=_0x59b1c2!=null&&_0x59b1c2!==''?_0x4ab140(0x172):_0x59b1c2:_0x4d1b0d[_0x76d1bf]=_0x59b1c2;}return _0x4d1b0d;}export async function reportCommandTrace(_0x548fe4){const _0x50002a=a267_0x13a4;try{const _0xd8f1c=sanitizeFlags(_0x548fe4[_0x50002a(0x163)]);await sendCliTraceLog({'spanName':_0x50002a(0x167),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x548fe4[_0x50002a(0x177)],'command.name':_0x548fe4['command'],'command.flags':JSON['stringify'](_0xd8f1c),..._0x548fe4[_0x50002a(0x178)]!=null?{'command.duration_ms':_0x548fe4[_0x50002a(0x178)]}:{},..._0x548fe4[_0x50002a(0x173)]?{'command.error':_0x548fe4[_0x50002a(0x173)]instanceof Error?_0x548fe4['error'][_0x50002a(0x174)]:String(_0x548fe4[_0x50002a(0x173)])}:{}}});}catch{}}
1
+ (function(_0x851016,_0x468c12){const _0x2d6e52=a267_0x370d,_0x58770e=_0x851016();while(!![]){try{const _0x51f130=-parseInt(_0x2d6e52(0xc9))/0x1*(-parseInt(_0x2d6e52(0xbc))/0x2)+parseInt(_0x2d6e52(0xc6))/0x3*(-parseInt(_0x2d6e52(0xc3))/0x4)+parseInt(_0x2d6e52(0xcd))/0x5*(-parseInt(_0x2d6e52(0xc0))/0x6)+parseInt(_0x2d6e52(0xcb))/0x7*(parseInt(_0x2d6e52(0xc1))/0x8)+parseInt(_0x2d6e52(0xd0))/0x9+parseInt(_0x2d6e52(0xbd))/0xa+-parseInt(_0x2d6e52(0xcc))/0xb*(parseInt(_0x2d6e52(0xc4))/0xc);if(_0x51f130===_0x468c12)break;else _0x58770e['push'](_0x58770e['shift']());}catch(_0xb362eb){_0x58770e['push'](_0x58770e['shift']());}}}(a267_0x5c81,0x5bfe8));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function a267_0x370d(_0x55ee88,_0x57d072){_0x55ee88=_0x55ee88-0xbc;const _0x5c8149=a267_0x5c81();let _0x370d21=_0x5c8149[_0x55ee88];return _0x370d21;}function isSensitiveKey(_0x2cc11b){const _0x49d5cd=a267_0x370d;return SENSITIVE_PATTERNS[_0x49d5cd(0xd1)](_0x3d397f=>_0x3d397f[_0x49d5cd(0xca)](_0x2cc11b));}function sanitizeFlags(_0x5e8c6d){const _0x5508f8=a267_0x370d,_0x36950f={};for(const [_0x479593,_0x1391bf]of Object[_0x5508f8(0xc7)](_0x5e8c6d)){isSensitiveKey(_0x479593)?_0x36950f[_0x479593]=_0x1391bf!=null&&_0x1391bf!==''?_0x5508f8(0xcf):_0x1391bf:_0x36950f[_0x479593]=_0x1391bf;}return _0x36950f;}function a267_0x5c81(){const _0x4315b2=['2046eNpmAk','3012056QxeuUf','durationMs','52CGeUIr','12qNfOjC','flags','61647umHDNa','entries','error','3063GqgSgS','test','14ySemVr','18973724zyUaQC','2780FViEQf','message','[REDACTED]','6733233OaxOZE','some','service','282GkzPkR','6253910smFXcy','rabetbase.command','stringify'];a267_0x5c81=function(){return _0x4315b2;};return a267_0x5c81();}export async function reportCommandTrace(_0x575376){const _0x226775=a267_0x370d;try{const _0x51fe48=sanitizeFlags(_0x575376[_0x226775(0xc5)]);await sendCliTraceLog({'spanName':_0x226775(0xbe),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x575376[_0x226775(0xd2)],'command.name':_0x575376['command'],'command.flags':JSON[_0x226775(0xbf)](_0x51fe48),..._0x575376['durationMs']!=null?{'command.duration_ms':_0x575376[_0x226775(0xc2)]}:{},..._0x575376[_0x226775(0xc8)]?{'command.error':_0x575376[_0x226775(0xc8)]instanceof Error?_0x575376[_0x226775(0xc8)][_0x226775(0xce)]:String(_0x575376['error'])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a268_0x45e6(){var _0x48c829=['Failed\x20to\x20report\x20CLI\x20help\x20trace:','503888DNDAAO','368FtWiRS','83755zrFHax','7208874mTnNhm','1564835eiyIbs','56754OyDXDs','787426wOUvqg','6TnvEQG','2573770THqmDr','service','124hTniui','cli.help'];a268_0x45e6=function(){return _0x48c829;};return a268_0x45e6();}function a268_0x3350(_0x4dd2cd,_0x5eb974){_0x4dd2cd=_0x4dd2cd-0x82;var _0x45e6bb=a268_0x45e6();var _0x335062=_0x45e6bb[_0x4dd2cd];return _0x335062;}(function(_0x349361,_0x14263f){var _0x1fe33a=a268_0x3350,_0x3d2968=_0x349361();while(!![]){try{var _0x73617f=-parseInt(_0x1fe33a(0x85))/0x1+-parseInt(_0x1fe33a(0x89))/0x2*(-parseInt(_0x1fe33a(0x84))/0x3)+parseInt(_0x1fe33a(0x8c))/0x4+parseInt(_0x1fe33a(0x83))/0x5*(-parseInt(_0x1fe33a(0x86))/0x6)+-parseInt(_0x1fe33a(0x8e))/0x7*(parseInt(_0x1fe33a(0x8d))/0x8)+parseInt(_0x1fe33a(0x82))/0x9+parseInt(_0x1fe33a(0x87))/0xa;if(_0x73617f===_0x14263f)break;else _0x3d2968['push'](_0x3d2968['shift']());}catch(_0x3a14e8){_0x3d2968['push'](_0x3d2968['shift']());}}}(a268_0x45e6,0xac7a4));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x17df0b,_0x2f0c45){var _0x41b0f9=a268_0x3350;try{await sendCliTraceLog({'spanName':_0x41b0f9(0x8a),'logData':{'rabetbase.help.kind':_0x17df0b,..._0x2f0c45?.[_0x41b0f9(0x88)]&&{'rabetbase.help.service':_0x2f0c45['service']}}});}catch(_0x50a5d3){console['error'](_0x41b0f9(0x8b),_0x50a5d3);}}
1
+ (function(_0x1960d0,_0x2efec7){var _0x5450e0=a268_0x538a,_0x2cec76=_0x1960d0();while(!![]){try{var _0x4ccca2=parseInt(_0x5450e0(0x90))/0x1+parseInt(_0x5450e0(0x87))/0x2*(parseInt(_0x5450e0(0x8f))/0x3)+parseInt(_0x5450e0(0x8c))/0x4*(-parseInt(_0x5450e0(0x89))/0x5)+-parseInt(_0x5450e0(0x8b))/0x6+parseInt(_0x5450e0(0x8a))/0x7*(-parseInt(_0x5450e0(0x8d))/0x8)+parseInt(_0x5450e0(0x91))/0x9+parseInt(_0x5450e0(0x8e))/0xa;if(_0x4ccca2===_0x2efec7)break;else _0x2cec76['push'](_0x2cec76['shift']());}catch(_0x195f37){_0x2cec76['push'](_0x2cec76['shift']());}}}(a268_0x57be,0x2ed6b));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a268_0x538a(_0xb2527d,_0x3e8276){_0xb2527d=_0xb2527d-0x87;var _0x57be39=a268_0x57be();var _0x538a9c=_0x57be39[_0xb2527d];return _0x538a9c;}function a268_0x57be(){var _0x4470a3=['318930MteywC','42aBJzvZ','842640sXRoGt','20uLXsQX','77128UfMntt','983340AnHuWE','3aGVFHL','236410uFHZha','898011pXwwuX','Failed\x20to\x20report\x20CLI\x20help\x20trace:','cli.help','549088EBWaRS','service'];a268_0x57be=function(){return _0x4470a3;};return a268_0x57be();}export async function reportCliHelpTrace(_0x31671d,_0x3ffbb2){var _0xe80878=a268_0x538a;try{await sendCliTraceLog({'spanName':_0xe80878(0x93),'logData':{'rabetbase.help.kind':_0x31671d,..._0x3ffbb2?.[_0xe80878(0x88)]&&{'rabetbase.help.service':_0x3ffbb2['service']}}});}catch(_0x1c2ce9){console['error'](_0xe80878(0x92),_0x1c2ce9);}}