@lovrabet/rabetbase-cli 2.5.5-beta.1 → 2.5.5-beta.3

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 (367) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.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/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/detail.js +1 -1
  77. package/lib/commands/dataset/extend-update.js +1 -1
  78. package/lib/commands/dataset/field-restore.js +1 -1
  79. package/lib/commands/dataset/field-update.js +1 -1
  80. package/lib/commands/dataset/generate.js +1 -1
  81. package/lib/commands/dataset/index.js +1 -1
  82. package/lib/commands/dataset/list.js +1 -1
  83. package/lib/commands/dataset/operations.js +1 -1
  84. package/lib/commands/dataset/relation-audit.js +1 -1
  85. package/lib/commands/dataset/relation-create.js +1 -1
  86. package/lib/commands/dataset/relation-delete.js +1 -1
  87. package/lib/commands/dataset/relation-shared.js +1 -1
  88. package/lib/commands/dataset/relation-update.js +1 -1
  89. package/lib/commands/dataset/relations.js +1 -1
  90. package/lib/commands/dataset/rename.js +1 -1
  91. package/lib/commands/dataset/restore.js +1 -1
  92. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  93. package/lib/commands/db/analysis-batching.js +1 -1
  94. package/lib/commands/db/analyze-batch-plan.js +1 -1
  95. package/lib/commands/db/analyze-cancel.js +1 -1
  96. package/lib/commands/db/analyze-start.js +1 -1
  97. package/lib/commands/db/analyze-status.js +1 -1
  98. package/lib/commands/db/create.js +1 -1
  99. package/lib/commands/db/delete.js +1 -1
  100. package/lib/commands/db/detail.js +1 -1
  101. package/lib/commands/db/diff-refresh-start.js +1 -1
  102. package/lib/commands/db/diff-refresh-status.js +1 -1
  103. package/lib/commands/db/diff.js +1 -1
  104. package/lib/commands/db/index.js +1 -1
  105. package/lib/commands/db/list.js +1 -1
  106. package/lib/commands/db/shared.js +1 -1
  107. package/lib/commands/db/table-diff-shared.js +1 -1
  108. package/lib/commands/db/tables.js +1 -1
  109. package/lib/commands/db/test.js +1 -1
  110. package/lib/commands/db/update.js +1 -1
  111. package/lib/commands/deployment/index.js +1 -1
  112. package/lib/commands/deployment/sync-all.js +1 -1
  113. package/lib/commands/deployment/sync-jobs.js +1 -1
  114. package/lib/commands/deployment/sync-status.js +1 -1
  115. package/lib/commands/doctor.js +1 -1
  116. package/lib/commands/file/index.js +1 -1
  117. package/lib/commands/flow/create.js +1 -1
  118. package/lib/commands/flow/detail.js +1 -1
  119. package/lib/commands/flow/index.js +1 -1
  120. package/lib/commands/flow/list.js +1 -1
  121. package/lib/commands/flow/publish.js +1 -1
  122. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  123. package/lib/commands/flow/runtime-role-list.js +1 -1
  124. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  125. package/lib/commands/flow/runtime-user-search.js +1 -1
  126. package/lib/commands/flow/shared.js +1 -1
  127. package/lib/commands/flow/update.js +1 -1
  128. package/lib/commands/flow/validate.js +1 -1
  129. package/lib/commands/instant-api-policy/current.js +1 -1
  130. package/lib/commands/instant-api-policy/index.js +1 -1
  131. package/lib/commands/instant-api-policy/init.js +1 -1
  132. package/lib/commands/instant-api-policy/publish.js +1 -1
  133. package/lib/commands/instant-api-policy/pull.js +1 -1
  134. package/lib/commands/instant-api-policy/revision.js +1 -1
  135. package/lib/commands/instant-api-policy/revisions.js +1 -1
  136. package/lib/commands/instant-api-policy/rollback.js +1 -1
  137. package/lib/commands/instant-api-policy/shared.js +1 -1
  138. package/lib/commands/instant-api-policy/validate.js +1 -1
  139. package/lib/commands/issue/index.js +1 -1
  140. package/lib/commands/issue/nudge.js +1 -1
  141. package/lib/commands/issue/report.js +1 -1
  142. package/lib/commands/issue/shared.js +1 -1
  143. package/lib/commands/kb/create.js +1 -1
  144. package/lib/commands/kb/delete.js +1 -1
  145. package/lib/commands/kb/detail.js +1 -1
  146. package/lib/commands/kb/index.js +1 -1
  147. package/lib/commands/kb/list.js +1 -1
  148. package/lib/commands/kb/search.js +1 -1
  149. package/lib/commands/kb/shared.js +1 -1
  150. package/lib/commands/kb/update.js +1 -1
  151. package/lib/commands/logs/index.js +1 -1
  152. package/lib/commands/menu/asset-update.js +1 -1
  153. package/lib/commands/menu/delete.js +1 -1
  154. package/lib/commands/menu/external-link-create.js +1 -1
  155. package/lib/commands/menu/external-link-update.js +1 -1
  156. package/lib/commands/menu/group-create.js +1 -1
  157. package/lib/commands/menu/group-update.js +1 -1
  158. package/lib/commands/menu/index.js +1 -1
  159. package/lib/commands/menu/list.js +1 -1
  160. package/lib/commands/menu/move.js +1 -1
  161. package/lib/commands/menu/regroup-start.js +1 -1
  162. package/lib/commands/menu/rename.js +1 -1
  163. package/lib/commands/menu/shared/compare-table.js +1 -1
  164. package/lib/commands/menu/shared/delete-plan.js +1 -1
  165. package/lib/commands/menu/shared/facts.js +1 -1
  166. package/lib/commands/menu/shared/index.js +1 -1
  167. package/lib/commands/menu/shared/inquirer.js +1 -1
  168. package/lib/commands/menu/shared/local-pages.js +1 -1
  169. package/lib/commands/menu/shared/logic.js +1 -1
  170. package/lib/commands/menu/shared/mutations.js +1 -1
  171. package/lib/commands/menu/shared/path.js +1 -1
  172. package/lib/commands/menu/shared/service.js +1 -1
  173. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  174. package/lib/commands/menu/shared/sync-core.js +1 -1
  175. package/lib/commands/menu/shared/update-core.js +1 -1
  176. package/lib/commands/menu/shared/valid-url.js +1 -1
  177. package/lib/commands/menu/subapp-assets-status.js +1 -1
  178. package/lib/commands/menu/subapp-assets-update.js +1 -1
  179. package/lib/commands/menu/sync.js +1 -1
  180. package/lib/commands/menu/visibility-update.js +1 -1
  181. package/lib/commands/notification/config-create.js +1 -1
  182. package/lib/commands/notification/config-delete.js +1 -1
  183. package/lib/commands/notification/config-list.js +1 -1
  184. package/lib/commands/notification/config-update.js +1 -1
  185. package/lib/commands/notification/index.js +1 -1
  186. package/lib/commands/notification/shared.js +1 -1
  187. package/lib/commands/ocr/index.js +1 -1
  188. package/lib/commands/page/create.js +1 -1
  189. package/lib/commands/page/custom/detail.js +1 -1
  190. package/lib/commands/page/custom/list.js +1 -1
  191. package/lib/commands/page/custom/publish.js +1 -1
  192. package/lib/commands/page/custom/shared.js +1 -1
  193. package/lib/commands/page/custom/syntax.js +1 -1
  194. package/lib/commands/page/custom/update.js +1 -1
  195. package/lib/commands/page/data-list-status.js +1 -1
  196. package/lib/commands/page/generate-start.js +1 -1
  197. package/lib/commands/page/generate-status.js +1 -1
  198. package/lib/commands/page/index.js +1 -1
  199. package/lib/commands/page/pull.js +1 -1
  200. package/lib/commands/page/push.js +1 -1
  201. package/lib/commands/page/relation-audit.js +1 -1
  202. package/lib/commands/page/restore.js +1 -1
  203. package/lib/commands/page/shared.js +1 -1
  204. package/lib/commands/page/sync.js +1 -1
  205. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  206. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  207. package/lib/commands/project/create/format-elapsed.js +1 -1
  208. package/lib/commands/project/create/main.js +1 -1
  209. package/lib/commands/project/create/materialize-project-template.js +1 -1
  210. package/lib/commands/project/create/project-name.js +1 -1
  211. package/lib/commands/project/create/project-template-archive.js +1 -1
  212. package/lib/commands/project/create/project-template-path.js +1 -1
  213. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  214. package/lib/commands/project/create/use-format-code.js +1 -1
  215. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  216. package/lib/commands/project/domain-routing-sync.js +1 -1
  217. package/lib/commands/project/index.js +1 -1
  218. package/lib/commands/project/upgrade.js +1 -1
  219. package/lib/commands/registry.js +1 -1
  220. package/lib/commands/role/delete.js +1 -1
  221. package/lib/commands/role/detail.js +1 -1
  222. package/lib/commands/role/index.js +1 -1
  223. package/lib/commands/role/list.js +1 -1
  224. package/lib/commands/role/shared.js +1 -1
  225. package/lib/commands/role/update.js +1 -1
  226. package/lib/commands/role/user-add.js +1 -1
  227. package/lib/commands/role/user-remove.js +1 -1
  228. package/lib/commands/role/user-resolve.js +1 -1
  229. package/lib/commands/rule/get.js +1 -1
  230. package/lib/commands/rule/index.js +1 -1
  231. package/lib/commands/rule/list.js +1 -1
  232. package/lib/commands/rule/set.js +1 -1
  233. package/lib/commands/rule/shared.js +1 -1
  234. package/lib/commands/run/index.js +1 -1
  235. package/lib/commands/schema.js +1 -1
  236. package/lib/commands/sql/create.js +1 -1
  237. package/lib/commands/sql/delete.js +1 -1
  238. package/lib/commands/sql/detail.js +1 -1
  239. package/lib/commands/sql/exec.js +1 -1
  240. package/lib/commands/sql/index.js +1 -1
  241. package/lib/commands/sql/list.js +1 -1
  242. package/lib/commands/sql/pull.js +1 -1
  243. package/lib/commands/sql/push.js +1 -1
  244. package/lib/commands/sql/shared.js +1 -1
  245. package/lib/commands/sql/status.js +1 -1
  246. package/lib/commands/sql/validate.js +1 -1
  247. package/lib/commands/task/index.js +1 -1
  248. package/lib/commands/task/status.js +1 -1
  249. package/lib/commands/tenant/index.js +1 -1
  250. package/lib/commands/tenant/members-list.js +1 -1
  251. package/lib/commands/tenant/shared.js +1 -1
  252. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  253. package/lib/commands/user-account/feishu-bind.js +1 -1
  254. package/lib/commands/user-account/index.js +1 -1
  255. package/lib/commands/workspace/add.js +1 -1
  256. package/lib/commands/workspace/index.js +1 -1
  257. package/lib/commands/workspace/remove.js +1 -1
  258. package/lib/config/domain-config.js +1 -1
  259. package/lib/config/project-domain-routing.js +1 -1
  260. package/lib/config/region-config.js +1 -1
  261. package/lib/config/schema.js +1 -1
  262. package/lib/constant/cdn.js +1 -1
  263. package/lib/constant/cli.js +1 -1
  264. package/lib/constant/defaults.js +1 -1
  265. package/lib/constant/domain.js +1 -1
  266. package/lib/constant/env.js +1 -1
  267. package/lib/constant/output.js +1 -1
  268. package/lib/constant/paths.js +1 -1
  269. package/lib/constant/region.js +1 -1
  270. package/lib/constant/risk.js +1 -1
  271. package/lib/constant/routing-profile.js +1 -1
  272. package/lib/context/app-resolver.js +1 -1
  273. package/lib/context/auth-resolver.js +1 -1
  274. package/lib/context/config-loader.js +1 -1
  275. package/lib/context.js +1 -1
  276. package/lib/core/alias-resolver.js +1 -1
  277. package/lib/core/api-client.js +1 -1
  278. package/lib/core/bff/config.js +1 -1
  279. package/lib/core/bff/file-system.js +1 -1
  280. package/lib/core/bff/hash.js +1 -1
  281. package/lib/core/bff/hook-directory.js +1 -1
  282. package/lib/core/bff/lock.js +1 -1
  283. package/lib/core/bff/utils.js +1 -1
  284. package/lib/core/cross-db-relation.js +1 -1
  285. package/lib/core/db-resolver.js +1 -1
  286. package/lib/core/flow-config.js +1 -1
  287. package/lib/core/instant-api-policy/config.js +1 -1
  288. package/lib/core/kb-search-client.js +1 -1
  289. package/lib/core/page/file-system.js +1 -1
  290. package/lib/core/page/hash.js +1 -1
  291. package/lib/core/page/lock.js +1 -1
  292. package/lib/core/page/lr-smart-jsx.js +1 -1
  293. package/lib/core/sql-index-auditor.js +1 -1
  294. package/lib/core/sql-sync/config.js +1 -1
  295. package/lib/core/sql-sync/file-system.js +1 -1
  296. package/lib/core/sql-sync/hash.js +1 -1
  297. package/lib/core/sql-sync/lock.js +1 -1
  298. package/lib/core/sql-sync/utils.js +1 -1
  299. package/lib/core/sql-validator.js +1 -1
  300. package/lib/errors.js +1 -1
  301. package/lib/framework/build-all-flags.js +1 -1
  302. package/lib/framework/error-output.js +1 -1
  303. package/lib/framework/explicit-yes.js +1 -1
  304. package/lib/framework/flags.js +1 -1
  305. package/lib/framework/help.js +1 -1
  306. package/lib/framework/index.js +1 -1
  307. package/lib/framework/output.js +1 -1
  308. package/lib/framework/response.js +1 -1
  309. package/lib/framework/runner-alias.js +1 -1
  310. package/lib/framework/runner.js +1 -1
  311. package/lib/framework/schema-export.js +1 -1
  312. package/lib/framework/supported-flags.js +1 -1
  313. package/lib/framework/types.js +1 -1
  314. package/lib/generated/build-info.d.ts +4 -4
  315. package/lib/generated/build-info.js +1 -1
  316. package/lib/generated/official-routing.js +1 -1
  317. package/lib/generated/routing-contract.js +1 -1
  318. package/lib/help.js +1 -1
  319. package/lib/postinstall.js +1 -1
  320. package/lib/runtime/confirmation.js +1 -1
  321. package/lib/runtime/event.js +1 -1
  322. package/lib/runtime/index.js +1 -1
  323. package/lib/runtime/queue.js +1 -1
  324. package/lib/runtime/resolve.js +1 -1
  325. package/lib/skills/builtin-skill.js +1 -1
  326. package/lib/skills/main.js +1 -1
  327. package/lib/skills/npx-skills-add.js +1 -1
  328. package/lib/skills/skill-presence.js +1 -1
  329. package/lib/telemetry/cli-command-trace.js +1 -1
  330. package/lib/telemetry/cli-help-trace.js +1 -1
  331. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  332. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  333. package/lib/telemetry/send-cli-trace-log.js +1 -1
  334. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  335. package/lib/utils/ai_config.js +1 -1
  336. package/lib/utils/apply-jq-filter.js +1 -1
  337. package/lib/utils/cdn-config.js +1 -1
  338. package/lib/utils/check-sdk-version.js +1 -1
  339. package/lib/utils/cli-version-check.js +1 -1
  340. package/lib/utils/cli-version-policy.js +1 -1
  341. package/lib/utils/config.js +1 -1
  342. package/lib/utils/entity-with-id.js +1 -1
  343. package/lib/utils/file-utils.js +1 -1
  344. package/lib/utils/guides-cdn.js +1 -1
  345. package/lib/utils/http-client.js +1 -1
  346. package/lib/utils/is-non-interactive.js +1 -1
  347. package/lib/utils/logger.js +1 -1
  348. package/lib/utils/params.js +1 -1
  349. package/lib/utils/platform.js +1 -1
  350. package/lib/utils/sleep.js +1 -1
  351. package/lib/utils/template-replacer.js +1 -1
  352. package/lib/utils/update-notice.js +1 -1
  353. package/lib/utils/version.js +1 -1
  354. package/lib/utils/with-active-cookie.js +1 -1
  355. package/lib/utils/write-cli-side-channel.js +1 -1
  356. package/package.json +1 -1
  357. package/skills/rabetbase/SKILL.md +3 -3
  358. package/skills/rabetbase/guides/independent-deployment.md +11 -1
  359. package/skills/rabetbase/references/rabetbase-config.md +16 -19
  360. package/skills/rabetbase/references/rabetbase-menu-visibility-update.md +5 -4
  361. package/skills/rabetbase/references/rabetbase-workspace.md +3 -1
  362. package/skills/rabetbase-page-generation/SKILL.md +13 -9
  363. package/skills/rabetbase-page-generation/references/component-baseline.md +2 -2
  364. package/skills/rabetbase-page-generation/references/generation.md +64 -15
  365. package/skills/rabetbase-page-generation/templates/onepage/build.mjs +39 -54
  366. package/skills/rabetbase-page-generation/templates/onepage/list/index.jsx +6 -2
  367. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x5a080c,_0x3c09bc){const _0x256982=a312_0xc979,_0xebe324=_0x5a080c();while(!![]){try{const _0x5a47b4=parseInt(_0x256982(0x153))/0x1+-parseInt(_0x256982(0x150))/0x2+-parseInt(_0x256982(0x14a))/0x3+-parseInt(_0x256982(0x14c))/0x4+parseInt(_0x256982(0x149))/0x5*(parseInt(_0x256982(0x152))/0x6)+parseInt(_0x256982(0x14f))/0x7+parseInt(_0x256982(0x13d))/0x8*(parseInt(_0x256982(0x13e))/0x9);if(_0x5a47b4===_0x3c09bc)break;else _0xebe324['push'](_0xebe324['shift']());}catch(_0xf68211){_0xebe324['push'](_0xebe324['shift']());}}}(a312_0x1618,0x68ae4));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{resolveApiModelSource}from'../api/model-source.js';export function resolveAliasToCode(_0x2d32f2,_0x50313e,_0x28a8c6,_0x4b24c5,_0x44277b,_0xb2d928){const _0x112839=a312_0xc979,_0x253f16=_0x2d32f2[_0x112839(0x154)][_0x112839(0x148)](_0x142de8=>_0x142de8['name']===_0x112839(0x145)&&_0x142de8['type']===_0x112839(0x147)),_0x115631=_0x2d32f2[_0x112839(0x154)][_0x112839(0x148)](_0x532012=>_0x532012[_0x112839(0x142)]===_0x112839(0x14e)&&_0x532012[_0x112839(0x141)]===_0x112839(0x147));if(!_0x253f16||!_0x115631)return;const _0xa8e71b=_0x50313e[_0x112839(0x145)]?String(_0x50313e['code']):'',_0x145c4f=_0x50313e[_0x112839(0x14e)]?String(_0x50313e[_0x112839(0x14e)]):'';if(!_0xa8e71b&&!_0x145c4f)throw CliErrors[_0x112839(0x143)]('`'+_0x4b24c5+_0x112839(0x14b));if(_0x145c4f&&!_0xa8e71b){const _0x5c75b3=resolveApiModelSource(_0x28a8c6,_0x44277b,_0xb2d928),_0x3ee1f5=resolveAlias(_0x28a8c6,_0x145c4f,undefined,_0x5c75b3[_0x112839(0x13c)],_0x5c75b3[_0x112839(0x146)]);if(!_0x3ee1f5){const _0x4a6900=listAliases(_0x28a8c6,undefined,_0x5c75b3[_0x112839(0x13c)],_0x5c75b3['profileName'])['map'](_0xf7fb87=>_0xf7fb87[_0x112839(0x14e)]),_0x3db234=_0x4a6900[_0x112839(0x14d)]?_0x112839(0x151)+_0x4a6900['join'](',\x20'):_0x112839(0x13f)+_0x28a8c6+_0x112839(0x140)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x112839(0x143)]('Unknown\x20alias\x20\x22'+_0x145c4f+_0x112839(0x144)+_0x3db234);}_0x50313e[_0x112839(0x145)]=_0x3ee1f5;}}function a312_0xc979(_0x45b382,_0x227b8b){_0x45b382=_0x45b382-0x13c;const _0x1618e4=a312_0x1618();let _0xc9798d=_0x1618e4[_0x45b382];return _0xc9798d;}function a312_0x1618(){const _0x262585=['217552doaZZs','length','alias','29358GpsCyO','908066zujuof','Available\x20aliases:\x20','18CLWmgD','502021xsWIAt','flags','filePath','1066256ulilkt','27AJJumS','No\x20model\x20aliases\x20found\x20in\x20','.\x20Run\x20`','type','name','validation','\x22.\x20','code','profileName','string','some','970770hyDIkM','1653990BHGTEE','`\x20requires\x20either\x20--code\x20or\x20--alias.'];a312_0x1618=function(){return _0x262585;};return a312_0x1618();}
1
+ (function(_0x2a07fe,_0x25335c){const _0x4fcdd5=a312_0x2630,_0x19c1f1=_0x2a07fe();while(!![]){try{const _0x4977e2=-parseInt(_0x4fcdd5(0x183))/0x1+-parseInt(_0x4fcdd5(0x193))/0x2*(-parseInt(_0x4fcdd5(0x198))/0x3)+parseInt(_0x4fcdd5(0x194))/0x4+-parseInt(_0x4fcdd5(0x188))/0x5*(parseInt(_0x4fcdd5(0x187))/0x6)+parseInt(_0x4fcdd5(0x18e))/0x7+parseInt(_0x4fcdd5(0x18d))/0x8+-parseInt(_0x4fcdd5(0x18f))/0x9*(parseInt(_0x4fcdd5(0x189))/0xa);if(_0x4977e2===_0x25335c)break;else _0x19c1f1['push'](_0x19c1f1['shift']());}catch(_0x1b230d){_0x19c1f1['push'](_0x19c1f1['shift']());}}}(a312_0x2c53,0x3dfa6));import{CliErrors}from'../errors.js';function a312_0x2630(_0x433a26,_0x1dedc4){_0x433a26=_0x433a26-0x17f;const _0x2c53bd=a312_0x2c53();let _0x2630c6=_0x2c53bd[_0x433a26];return _0x2630c6;}function a312_0x2c53(){const _0xebd4d0=['join','code','string','984099DYdCRv','validation','\x20api\x20pull`\x20first.','filePath','Unknown\x20alias\x20\x22','name','214308hsKELK','length','No\x20model\x20aliases\x20found\x20in\x20','.\x20Run\x20`','6nkSgzu','301925vUsJlY','381830oIqetW','alias','Available\x20aliases:\x20','map','3003352Fammwn','573300JNNIlg','135fXbnSF','flags','profileName','`\x20requires\x20either\x20--code\x20or\x20--alias.','2EQieKT','1263792hTiGcw'];a312_0x2c53=function(){return _0xebd4d0;};return a312_0x2c53();}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{resolveApiModelSource}from'../api/model-source.js';export function resolveAliasToCode(_0x307264,_0x583038,_0x4f6e2c,_0x33db6a,_0x251190,_0x386016){const _0x2c7845=a312_0x2630,_0x12cb29=_0x307264['flags']['some'](_0x5f2a90=>_0x5f2a90[_0x2c7845(0x182)]==='code'&&_0x5f2a90['type']===_0x2c7845(0x197)),_0x3498a0=_0x307264[_0x2c7845(0x190)]['some'](_0x503d0d=>_0x503d0d[_0x2c7845(0x182)]==='alias'&&_0x503d0d['type']===_0x2c7845(0x197));if(!_0x12cb29||!_0x3498a0)return;const _0x54f90f=_0x583038[_0x2c7845(0x196)]?String(_0x583038[_0x2c7845(0x196)]):'',_0x379289=_0x583038[_0x2c7845(0x18a)]?String(_0x583038[_0x2c7845(0x18a)]):'';if(!_0x54f90f&&!_0x379289)throw CliErrors[_0x2c7845(0x199)]('`'+_0x33db6a+_0x2c7845(0x192));if(_0x379289&&!_0x54f90f){const _0x129695=resolveApiModelSource(_0x4f6e2c,_0x251190,_0x386016),_0x432afc=resolveAlias(_0x4f6e2c,_0x379289,undefined,_0x129695['filePath'],_0x129695[_0x2c7845(0x191)]);if(!_0x432afc){const _0xb07431=listAliases(_0x4f6e2c,undefined,_0x129695[_0x2c7845(0x180)],_0x129695[_0x2c7845(0x191)])[_0x2c7845(0x18c)](_0x320790=>_0x320790[_0x2c7845(0x18a)]),_0xf28317=_0xb07431[_0x2c7845(0x184)]?_0x2c7845(0x18b)+_0xb07431[_0x2c7845(0x195)](',\x20'):_0x2c7845(0x185)+_0x4f6e2c+_0x2c7845(0x186)+CLI_BIN_NAME+_0x2c7845(0x17f);throw CliErrors[_0x2c7845(0x199)](_0x2c7845(0x181)+_0x379289+'\x22.\x20'+_0xf28317);}_0x583038[_0x2c7845(0x196)]=_0x432afc;}}
@@ -1 +1 @@
1
- (function(_0x463b94,_0x351564){const _0x4e739c=a313_0x52a9,_0x4382ff=_0x463b94();while(!![]){try{const _0x448bea=-parseInt(_0x4e739c(0x177))/0x1+-parseInt(_0x4e739c(0x19a))/0x2+-parseInt(_0x4e739c(0x1b4))/0x3*(-parseInt(_0x4e739c(0x18f))/0x4)+parseInt(_0x4e739c(0x199))/0x5+-parseInt(_0x4e739c(0x16d))/0x6+parseInt(_0x4e739c(0x1ad))/0x7*(-parseInt(_0x4e739c(0x1ae))/0x8)+parseInt(_0x4e739c(0x1ab))/0x9;if(_0x448bea===_0x351564)break;else _0x4382ff['push'](_0x4382ff['shift']());}catch(_0x381e4b){_0x4382ff['push'](_0x4382ff['shift']());}}}(a313_0xb92c,0x1b024));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';function a313_0x52a9(_0x72a62f,_0x113b79){_0x72a62f=_0x72a62f-0x16b;const _0xb92cce=a313_0xb92c();let _0x52a9c7=_0xb92cce[_0x72a62f];return _0x52a9c7;}import{isNonInteractive as a313_0x473039}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x3f95b7){const _0x189a5e=a313_0x52a9;return typeof _0x3f95b7==='string'&&_0x3f95b7[_0x189a5e(0x196)]()?_0x3f95b7[_0x189a5e(0x196)]():undefined;}function resolveEnvAppCode(){const _0x275627=a313_0x52a9,_0x182f37=stringFlag(process.env.RABETBASE_APPCODE);if(_0x182f37)return{'name':'RABETBASE_APPCODE','value':_0x182f37};const _0x425623=stringFlag(process.env.LOVRABET_APPCODE);if(_0x425623)return{'name':_0x275627(0x19f),'value':_0x425623};return undefined;}function hasExplicitAppCode(_0x621b89,_0xe5aee4){const _0x4fc06d=a313_0x52a9;return!!(stringFlag(_0x621b89['appcode'])||stringFlag(_0xe5aee4[_0x4fc06d(0x18c)]));}function assertEnvAppCodeNotIgnored(_0x5bff40,_0x1cf51a,_0xb7b4d2){const _0x2ff789=a313_0x52a9;if(!_0x1cf51a||_0xb7b4d2||_0x5bff40===_0x1cf51a[_0x2ff789(0x19d)])return;const _0x232c00=_0x5bff40?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x5bff40+'\x22.':'No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.';throw CliErrors[_0x2ff789(0x1be)](_0x1cf51a[_0x2ff789(0x181)]+'='+_0x1cf51a[_0x2ff789(0x19d)]+_0x2ff789(0x198)+_0x232c00+'\x20'+(_0x2ff789(0x178)+_0x1cf51a['name']+'\x22.'));}export function createPipelineEnv(_0x32a9c4,_0x12e0c9,_0x5a8374=[]){const _0x2d5729=a313_0x52a9;return{'rawFlags':_0x12e0c9,'args':_0x5a8374,'resolveAppCode':()=>_0x32a9c4['appCode'],'resolveCookie':()=>_0x32a9c4['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a313_0x473039(_0x12e0c9),'defaultFormat':_0x32a9c4[_0x2d5729(0x192)],'defaultPageSize':_0x32a9c4[_0x2d5729(0x1bd)],'defaultVerbose':_0x32a9c4[_0x2d5729(0x17c)],'apiDir':_0x32a9c4['apiDir'],'riskLevel':_0x32a9c4['riskLevel'],'selectedAppName':_0x32a9c4[_0x2d5729(0x1c1)],'mergedCli':{'defaultApp':_0x32a9c4[_0x2d5729(0x1a6)],'currentApp':_0x32a9c4['currentApp'],'appCode':_0x32a9c4[_0x2d5729(0x1ac)],'apps':_0x32a9c4[_0x2d5729(0x180)]}};}export function createRabetbaseRunnerAdapter(_0xc6f419={}){const _0xfb2cf0=a313_0x52a9;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0xfb2cf0(0x1b2)](_0x514d7d=>PIPELINE_FLAG_NAMES[_0xfb2cf0(0x1bf)](_0x514d7d[_0xfb2cf0(0x181)]))['map'](({name:_0x535839,type:_0x19e7bc,description:_0x72f6b6})=>({'name':_0x535839,'type':_0x19e7bc,'description':_0x72f6b6})),'formatOutput':_0xc6f419['formatOutput']??formatOutput,'getCommandLabel'(_0x18121b){return CLI_BIN_NAME+'\x20'+_0x18121b['service']+'\x20'+_0x18121b['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x568da6,{def:_0x39e8a1}){const _0x545d97=_0xfb2cf0,_0x21dc29=_0x568da6[_0x545d97(0x18d)]('Edit\x20the\x20config\x20file\x20manually')?_0x545d97(0x179):_0x545d97(0x1a3)+_0x39e8a1[_0x545d97(0x1a8)]+_0x545d97(0x171)+'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.';return CliErrors['validation'](_0x568da6+_0x545d97(0x1a4)+_0x21dc29);}},async 'prepare'(_0x540858,_0x3b6f09,_0xc6e476,_0xc090bf){const _0x3315b6=_0xfb2cf0,_0x2260a1=_0x3b6f09[_0x3315b6(0x1b1)]||DEFAULT_API_DIR,_0x4bd3c3=hasExplicitAppCode(_0xc6e476,_0x3b6f09[_0x3315b6(0x16f)]),_0x45fa30=stringFlag(_0xc6e476[_0x3315b6(0x18c)])||stringFlag(_0x3b6f09[_0x3315b6(0x16f)][_0x3315b6(0x18c)]),_0x47e37d=_0x3b6f09[_0x3315b6(0x1ba)]?.[_0x3315b6(0x180)]??{},_0x18f7bc=_0x3b6f09[_0x3315b6(0x187)]||_0x3b6f09[_0x3315b6(0x1ba)]?.[_0x3315b6(0x17a)]||_0x3b6f09[_0x3315b6(0x1ba)]?.[_0x3315b6(0x1a6)],_0x3547d0=_0x45fa30?Object[_0x3315b6(0x1af)](_0x47e37d)[_0x3315b6(0x1b2)](([,_0x3317db])=>_0x3317db['appcode']===_0x45fa30)[_0x3315b6(0x1b7)](([_0x33ee61])=>_0x33ee61):[];if(_0x3547d0[_0x3315b6(0x190)]>0x1&&!_0x3b6f09['selectedAppName'])throw CliErrors['validation'](_0x3315b6(0x19c)+_0x45fa30+'\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20'+_0x3547d0['join'](',\x20')+'.',_0x3315b6(0x184));resolveAliasToCode(_0x540858,_0xc6e476,_0x2260a1,_0xc090bf,_0x3b6f09[_0x3315b6(0x1a7)](),_0x18f7bc);const _0x1daabd=resolveCommandAuthMode(_0x540858);let _0x56f416='';if(_0x1daabd!==_0x3315b6(0x191)){_0x56f416=_0x3b6f09[_0x3315b6(0x188)]()||'';if(!_0x56f416){if(_0x1daabd==='required')throw CliErrors['authRequired']();}else{const {setActiveCookie:_0x38ef20}=await import(_0x3315b6(0x1b8));_0x38ef20(_0x56f416);}}const _0x1ac377=_0x3b6f09[_0x3315b6(0x1a7)]()??'';if(_0x540858[_0x3315b6(0x1aa)]!==![]){if(!_0x4bd3c3&&_0x18f7bc&&!_0x47e37d[_0x18f7bc]){const _0x14f74e=Object['keys'](_0x47e37d);throw CliErrors[_0x3315b6(0x1be)](_0x3315b6(0x176)+_0x18f7bc+_0x3315b6(0x186),_0x14f74e[_0x3315b6(0x190)]>0x0?_0x3315b6(0x18e)+_0x14f74e[_0x3315b6(0x172)](',\x20')+_0x3315b6(0x1a0)+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.':_0x3315b6(0x1b3)+CLI_BIN_NAME+_0x3315b6(0x1b6));}assertEnvAppCodeNotIgnored(_0x1ac377,resolveEnvAppCode(),_0x4bd3c3);if(!_0x1ac377){const _0x341719=Object[_0x3315b6(0x182)](_0x47e37d);if(!_0x18f7bc&&_0x341719['length']>0x1)throw CliErrors[_0x3315b6(0x19b)](_0x3315b6(0x17d)+CLI_BIN_NAME+_0x3315b6(0x1b5)+_0x341719[_0x3315b6(0x172)](',\x20')+'.');throw CliErrors[_0x3315b6(0x19b)](_0x3315b6(0x1a2)+CLI_BIN_NAME+_0x3315b6(0x189));}}return{'defaults':{'booleans':{'verbose':_0x3b6f09[_0x3315b6(0x195)]},'numbers':{'pagesize':_0x3b6f09[_0x3315b6(0x1c0)]}},'extras':{'appCode':_0x1ac377,'cookie':_0x56f416,'apiDomain':_0x3b6f09['resolveApiDomain'](),'apiDir':_0x2260a1,'selectedAppName':_0x3b6f09['selectedAppName'],'mergedCli':_0x3b6f09['mergedCli']}};},'confirmHighRisk':_0xc6f419[_0xfb2cf0(0x1bc)]??(async({env:_0x187517,commandLabel:_0x29121c})=>{const _0x1d3370=_0xfb2cf0;if(_0x187517[_0x1d3370(0x19e)])throw CliErrors[_0x1d3370(0x1be)](_0x1d3370(0x17f)+_0x29121c+_0x1d3370(0x18b));await requireConfirmationPrompt({'lines':[_0x1d3370(0x1a1)+_0x29121c,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x335aef=>CliErrors[_0x1d3370(0x173)](_0x335aef)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x5932d3=a313_0x52a9,{clearActiveCookie:_0x1d0a97}=await import(_0x5932d3(0x1b8));_0x1d0a97();}export async function finalizeRabetbaseRuntimeState(){const _0x37e9a1=a313_0x52a9;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x5ae010},{initEnv:_0x138d2b}]=await Promise[_0x37e9a1(0x1b0)]([import(_0x37e9a1(0x185)),import(_0x37e9a1(0x18a))]);_0x5ae010(),_0x138d2b(_0x37e9a1(0x194));}}export async function runCommand(_0x54e8d3,_0x393ffb,_0x52391c=terminalRunnerAdapter){assertRejectedFlags(_0x54e8d3,_0x393ffb['rawFlags']),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x54e8d3)?withUpdateNotice(_0x54e8d3):_0x54e8d3,_0x393ffb,_0x52391c);}function assertRejectedFlags(_0x103f2e,_0x1a2460){const _0x1d2c3e=a313_0x52a9;for(const _0x2a87e7 of _0x103f2e[_0x1d2c3e(0x193)]??[]){const _0xb3ba90=GLOBAL_FLAGS['find'](_0x11d4ae=>_0x11d4ae[_0x1d2c3e(0x181)]===_0x2a87e7[_0x1d2c3e(0x181)]),_0x5a6ed9=new Set([_0x2a87e7[_0x1d2c3e(0x181)],toCamelCase(_0x2a87e7[_0x1d2c3e(0x181)]),_0xb3ba90?.[_0x1d2c3e(0x1bb)]]),_0x3c7c88=[..._0x5a6ed9][_0x1d2c3e(0x17b)](_0x1eb9a3=>{if(!_0x1eb9a3)return![];const _0x7377eb=_0x1a2460[_0x1eb9a3];return _0x7377eb!==undefined&&_0x7377eb!==null&&_0x7377eb!==![];});if(_0x3c7c88)throw CliErrors[_0x1d2c3e(0x1be)](_0x2a87e7[_0x1d2c3e(0x1b9)],_0x2a87e7[_0x1d2c3e(0x17e)]);}}function toCamelCase(_0x47366f){const _0x2c4fa6=a313_0x52a9;return _0x47366f[_0x2c4fa6(0x16c)](/-([a-z])/g,(_0x2ccba7,_0x10713d)=>_0x10713d[_0x2c4fa6(0x1a9)]());}function shouldAttachUpdateNotice(_0x324e33){const _0x1d7e71=a313_0x52a9;if(_0x324e33[_0x1d7e71(0x1c2)]===![])return![];return![_0x1d7e71(0x183),_0x1d7e71(0x197),_0x1d7e71(0x170)][_0x1d7e71(0x18d)](_0x324e33[_0x1d7e71(0x16e)]);}function withUpdateNotice(_0x149876){return{..._0x149876,async 'execute'(_0x3a2dfa){const _0x4457bd=a313_0x52a9,_0x2cb608=shouldResolveUpdateNotice(_0x3a2dfa)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x4457bd(0x175)](null),_0x223682=await _0x149876['execute'](_0x3a2dfa);return attachUpdateNotice(_0x223682,await _0x2cb608);}};}function a313_0xb92c(){const _0x2402a0=['apps','name','keys','update','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','../constant/domain.js','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','selectedAppName','resolveCookie','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','../constant/env.js','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','appcode','includes','Available:\x20','52RVqhcj','length','none','format','rejectedFlags','production','defaultVerbose','trim','schema','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','650825PXfPXR','82698cLCjIj','configMissing','AppCode\x20\x22','value','isNonInteractive','LOVRABET_APPCODE','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','⚠\x20\x20High-risk\x20operation:\x20','Set\x20appcode\x20via\x20`','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','\x0a\x20\x20','pretty','defaultApp','resolveAppCode','risk','toUpperCase','requiresAppCode','1345581eXjsjj','appCode','4697sTLqDw','760cHKOhB','entries','all','apiDir','filter','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','40167NJqNuQ','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','map','../core/api-client.js','message','mergedCli','meowKey','confirmHighRisk','pageSize','validation','has','defaultPageSize','explicitAppName','hasFormat','object','replace','838902MpqHzm','service','rawFlags','doctor','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','join','cancelled','_notice','resolve','App\x20\x22','98192FyhIVv','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','currentApp','some','verbose','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','hint','High-risk\x20operation\x20`'];a313_0xb92c=function(){return _0x2402a0;};return a313_0xb92c();}function shouldResolveUpdateNotice(_0x7651ed){const _0x573550=a313_0x52a9;return _0x7651ed[_0x573550(0x192)]===_0x573550(0x1a5)&&!_0x7651ed['nonInteractive'];}function attachUpdateNotice(_0x26fd79,_0x26842c){const _0x16762a=a313_0x52a9;if(!_0x26842c||!_0x26fd79||typeof _0x26fd79!==_0x16762a(0x16b))return _0x26fd79;const _0x35f2be=_0x26fd79,_0x221330=typeof _0x35f2be[_0x16762a(0x174)]===_0x16762a(0x16b)&&_0x35f2be[_0x16762a(0x174)]!==null?_0x35f2be[_0x16762a(0x174)]:{};return{..._0x35f2be,'_notice':{..._0x221330,'update':_0x26842c}};}
1
+ (function(_0x3e58fc,_0x285f1f){const _0x528c77=a313_0x4fc0,_0x40c5f8=_0x3e58fc();while(!![]){try{const _0x1ef460=parseInt(_0x528c77(0xc8))/0x1+parseInt(_0x528c77(0xe0))/0x2+parseInt(_0x528c77(0xe8))/0x3+parseInt(_0x528c77(0xbe))/0x4+-parseInt(_0x528c77(0xbc))/0x5+-parseInt(_0x528c77(0xdc))/0x6*(parseInt(_0x528c77(0xdf))/0x7)+-parseInt(_0x528c77(0xb0))/0x8;if(_0x1ef460===_0x285f1f)break;else _0x40c5f8['push'](_0x40c5f8['shift']());}catch(_0x2c4263){_0x40c5f8['push'](_0x40c5f8['shift']());}}}(a313_0x26ec,0x30a5c));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';function a313_0x26ec(){const _0x389f81=['object','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','map','hasFormat','defaultPageSize','mergedCli','cookie','RABETBASE_APPCODE','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','value','required','replace','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','rawFlags','doctor','selectedAppName','\x0a\x20\x20','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','join','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','none','all','command','pretty','apiDir','defaultVerbose','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','find','appcode','resolveAppCode','hint','pageSize','2556464qGXlPB','../constant/env.js','isNonInteractive','nonInteractive','appCode','explicitAppName','verbose','resolve','Set\x20appcode\x20via\x20`','resolveCookie','_notice','toUpperCase','183755OlxBny','currentApp','723992rGvYyT','../core/api-client.js','configMissing','\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20','execute','confirmHighRisk','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','\x20\x20\x20Continue?\x20[y/N]\x20','riskLevel','length','151465AzHxzR','Available:\x20','AppCode\x20\x22','trim','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','Edit\x20the\x20config\x20file\x20manually','cancelled','entries','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','High-risk\x20operation\x20`','formatOutput','Current\x20resolved\x20appcode\x20is\x20\x22','validation','keys','defaultApp','../constant/domain.js','includes','name','has','schema','756yzgrWl','catch','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','15085cQfRBR','276966FfgnwM','service','risk','LOVRABET_APPCODE','App\x20\x22','message','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','1068459nfhPPD','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`'];a313_0x26ec=function(){return _0x389f81;};return a313_0x26ec();}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 a313_0x502632}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';function a313_0x4fc0(_0x155e13,_0x59e509){_0x155e13=_0x155e13-0x9f;const _0x26ec0f=a313_0x26ec();let _0x4fc066=_0x26ec0f[_0x155e13];return _0x4fc066;}import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x2f51e3){const _0x2b5f85=a313_0x4fc0;return typeof _0x2f51e3==='string'&&_0x2f51e3[_0x2b5f85(0xcb)]()?_0x2f51e3[_0x2b5f85(0xcb)]():undefined;}function resolveEnvAppCode(){const _0x3fed10=a313_0x4fc0,_0xbc6cfc=stringFlag(process.env.RABETBASE_APPCODE);if(_0xbc6cfc)return{'name':_0x3fed10(0xf2),'value':_0xbc6cfc};const _0x3009a1=stringFlag(process.env.LOVRABET_APPCODE);if(_0x3009a1)return{'name':_0x3fed10(0xe3),'value':_0x3009a1};return undefined;}function hasExplicitAppCode(_0x90424f,_0x124784){const _0x1569e2=a313_0x4fc0;return!!(stringFlag(_0x90424f[_0x1569e2(0xac)])||stringFlag(_0x124784[_0x1569e2(0xac)]));}function assertEnvAppCodeNotIgnored(_0x1f9861,_0xa8da35,_0x2fb81c){const _0x356fe5=a313_0x4fc0;if(!_0xa8da35||_0x2fb81c||_0x1f9861===_0xa8da35[_0x356fe5(0xf4)])return;const _0x344ac5=_0x1f9861?_0x356fe5(0xd3)+_0x1f9861+'\x22.':_0x356fe5(0xa1);throw CliErrors[_0x356fe5(0xd4)](_0xa8da35[_0x356fe5(0xd9)]+'='+_0xa8da35[_0x356fe5(0xf4)]+_0x356fe5(0xe9)+_0x344ac5+'\x20'+(_0x356fe5(0xf7)+_0xa8da35[_0x356fe5(0xd9)]+'\x22.'));}export function createPipelineEnv(_0x2704dd,_0x500694,_0x456e70=[]){const _0x32f88a=a313_0x4fc0;return{'rawFlags':_0x500694,'args':_0x456e70,'resolveAppCode':()=>_0x2704dd[_0x32f88a(0xb4)],'resolveCookie':()=>_0x2704dd[_0x32f88a(0xf1)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a313_0x502632(_0x500694),'defaultFormat':_0x2704dd['format'],'defaultPageSize':_0x2704dd[_0x32f88a(0xaf)],'defaultVerbose':_0x2704dd[_0x32f88a(0xb6)],'apiDir':_0x2704dd['apiDir'],'riskLevel':_0x2704dd[_0x32f88a(0xc6)],'selectedAppName':_0x2704dd[_0x32f88a(0xb5)],'mergedCli':{'defaultApp':_0x2704dd[_0x32f88a(0xd6)],'currentApp':_0x2704dd[_0x32f88a(0xbd)],'appCode':_0x2704dd['appCode'],'apps':_0x2704dd['apps']}};}export function createRabetbaseRunnerAdapter(_0x49ec9d={}){const _0x5502d9=a313_0x4fc0;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x109c63=>PIPELINE_FLAG_NAMES[_0x5502d9(0xda)](_0x109c63[_0x5502d9(0xd9)]))[_0x5502d9(0xed)](({name:_0x4dae1d,type:_0xd5a97f,description:_0x5d6ab9})=>({'name':_0x4dae1d,'type':_0xd5a97f,'description':_0x5d6ab9})),'formatOutput':_0x49ec9d[_0x5502d9(0xd2)]??formatOutput,'getCommandLabel'(_0x3f7f5b){const _0x4d15ed=_0x5502d9;return CLI_BIN_NAME+'\x20'+_0x3f7f5b[_0x4d15ed(0xe1)]+'\x20'+_0x3f7f5b[_0x4d15ed(0xa6)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x20061f,{def:_0x339efe}){const _0x3a5b59=_0x5502d9,_0x4c1b7e=_0x20061f[_0x3a5b59(0xd8)](_0x3a5b59(0xcd))?'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.':_0x3a5b59(0xde)+_0x339efe[_0x3a5b59(0xe2)]+_0x3a5b59(0xf3)+_0x3a5b59(0xa0);return CliErrors[_0x3a5b59(0xd4)](_0x20061f+_0x3a5b59(0x9f)+_0x4c1b7e);}},async 'prepare'(_0x45e5cc,_0x5a775a,_0x445aa4,_0x48e406){const _0x24e070=_0x5502d9,_0x2edf2c=_0x5a775a[_0x24e070(0xa8)]||DEFAULT_API_DIR,_0x97f678=hasExplicitAppCode(_0x445aa4,_0x5a775a[_0x24e070(0xf8)]),_0x2404c7=stringFlag(_0x445aa4[_0x24e070(0xac)])||stringFlag(_0x5a775a[_0x24e070(0xf8)]['appcode']),_0x543f2b=_0x5a775a[_0x24e070(0xf0)]?.['apps']??{},_0x129919=_0x5a775a[_0x24e070(0xfa)]||_0x5a775a[_0x24e070(0xf0)]?.[_0x24e070(0xbd)]||_0x5a775a[_0x24e070(0xf0)]?.[_0x24e070(0xd6)],_0x1d4d82=_0x2404c7?Object[_0x24e070(0xcf)](_0x543f2b)['filter'](([,_0x52191f])=>_0x52191f[_0x24e070(0xac)]===_0x2404c7)[_0x24e070(0xed)](([_0x1552ce])=>_0x1552ce):[];if(_0x1d4d82['length']>0x1&&!_0x5a775a['selectedAppName'])throw CliErrors['validation'](_0x24e070(0xca)+_0x2404c7+_0x24e070(0xc1)+_0x1d4d82[_0x24e070(0xa2)](',\x20')+'.',_0x24e070(0xc4));resolveAliasToCode(_0x45e5cc,_0x445aa4,_0x2edf2c,_0x48e406,_0x5a775a[_0x24e070(0xad)](),_0x129919);const _0x56ab2b=resolveCommandAuthMode(_0x45e5cc);let _0x3ac21a='';if(_0x56ab2b!==_0x24e070(0xa4)){_0x3ac21a=_0x5a775a[_0x24e070(0xb9)]()||'';if(!_0x3ac21a){if(_0x56ab2b===_0x24e070(0xf5))throw CliErrors['authRequired']();}else{const {setActiveCookie:_0x414bcf}=await import(_0x24e070(0xbf));_0x414bcf(_0x3ac21a);}}const _0x1bb124=_0x5a775a['resolveAppCode']()??'';if(_0x45e5cc['requiresAppCode']!==![]){if(!_0x97f678&&_0x129919&&!_0x543f2b[_0x129919]){const _0x595d5b=Object[_0x24e070(0xd5)](_0x543f2b);throw CliErrors[_0x24e070(0xd4)](_0x24e070(0xe4)+_0x129919+_0x24e070(0xe6),_0x595d5b[_0x24e070(0xc7)]>0x0?_0x24e070(0xc9)+_0x595d5b[_0x24e070(0xa2)](',\x20')+_0x24e070(0xe7)+CLI_BIN_NAME+_0x24e070(0xcc):_0x24e070(0xea)+CLI_BIN_NAME+_0x24e070(0xcc));}assertEnvAppCodeNotIgnored(_0x1bb124,resolveEnvAppCode(),_0x97f678);if(!_0x1bb124){const _0x5b9a68=Object[_0x24e070(0xd5)](_0x543f2b);if(!_0x129919&&_0x5b9a68['length']>0x1)throw CliErrors[_0x24e070(0xc0)](_0x24e070(0xa3)+CLI_BIN_NAME+_0x24e070(0xec)+_0x5b9a68[_0x24e070(0xa2)](',\x20')+'.');throw CliErrors[_0x24e070(0xc0)](_0x24e070(0xb8)+CLI_BIN_NAME+_0x24e070(0xd0));}}return{'defaults':{'booleans':{'verbose':_0x5a775a[_0x24e070(0xa9)]},'numbers':{'pagesize':_0x5a775a[_0x24e070(0xef)]}},'extras':{'appCode':_0x1bb124,'cookie':_0x3ac21a,'apiDomain':_0x5a775a['resolveApiDomain'](),'apiDir':_0x2edf2c,'selectedAppName':_0x5a775a[_0x24e070(0xfa)],'mergedCli':_0x5a775a['mergedCli']}};},'confirmHighRisk':_0x49ec9d[_0x5502d9(0xc3)]??(async({env:_0x4854d2,commandLabel:_0x5ec04f})=>{const _0x110c10=_0x5502d9;if(_0x4854d2[_0x110c10(0xb2)])throw CliErrors[_0x110c10(0xd4)](_0x110c10(0xd1)+_0x5ec04f+_0x110c10(0xaa));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x5ec04f,_0x110c10(0xc5)],'createCancelledError':_0x4cb8db=>CliErrors[_0x110c10(0xce)](_0x4cb8db)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x20fd3c=a313_0x4fc0,{clearActiveCookie:_0x110072}=await import(_0x20fd3c(0xbf));_0x110072();}export async function finalizeRabetbaseRuntimeState(){const _0x54c216=a313_0x4fc0;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x33b5cd},{initEnv:_0x1024c9}]=await Promise[_0x54c216(0xa5)]([import(_0x54c216(0xd7)),import(_0x54c216(0xb1))]);_0x33b5cd(),_0x1024c9('production');}}export async function runCommand(_0x2632b1,_0x55839a,_0x367ee7=terminalRunnerAdapter){const _0x4884fe=a313_0x4fc0;assertRejectedFlags(_0x2632b1,_0x55839a[_0x4884fe(0xf8)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x2632b1)?withUpdateNotice(_0x2632b1):_0x2632b1,_0x55839a,_0x367ee7);}function assertRejectedFlags(_0x3dee7c,_0x3f700c){const _0x64461f=a313_0x4fc0;for(const _0x1d6fb4 of _0x3dee7c['rejectedFlags']??[]){const _0x2a1268=GLOBAL_FLAGS[_0x64461f(0xab)](_0xcd83c2=>_0xcd83c2[_0x64461f(0xd9)]===_0x1d6fb4[_0x64461f(0xd9)]),_0x4b1404=new Set([_0x1d6fb4[_0x64461f(0xd9)],toCamelCase(_0x1d6fb4[_0x64461f(0xd9)]),_0x2a1268?.['meowKey']]),_0x568805=[..._0x4b1404]['some'](_0x3c2715=>{if(!_0x3c2715)return![];const _0x3677b8=_0x3f700c[_0x3c2715];return _0x3677b8!==undefined&&_0x3677b8!==null&&_0x3677b8!==![];});if(_0x568805)throw CliErrors[_0x64461f(0xd4)](_0x1d6fb4[_0x64461f(0xe5)],_0x1d6fb4[_0x64461f(0xae)]);}}function toCamelCase(_0x430294){const _0x1a821e=a313_0x4fc0;return _0x430294[_0x1a821e(0xf6)](/-([a-z])/g,(_0x45520f,_0x54e5cd)=>_0x54e5cd[_0x1a821e(0xbb)]());}function shouldAttachUpdateNotice(_0xd2b704){const _0x541883=a313_0x4fc0;if(_0xd2b704[_0x541883(0xee)]===![])return![];return!['update',_0x541883(0xdb),_0x541883(0xf9)][_0x541883(0xd8)](_0xd2b704['service']);}function withUpdateNotice(_0x33a7c4){return{..._0x33a7c4,async 'execute'(_0x4c8c4e){const _0x30eb4f=a313_0x4fc0,_0x26d9ee=shouldResolveUpdateNotice(_0x4c8c4e)?resolveLatestUpdateNotice()[_0x30eb4f(0xdd)](()=>null):Promise[_0x30eb4f(0xb7)](null),_0x1177ea=await _0x33a7c4[_0x30eb4f(0xc2)](_0x4c8c4e);return attachUpdateNotice(_0x1177ea,await _0x26d9ee);}};}function shouldResolveUpdateNotice(_0x3282ab){const _0x43ead1=a313_0x4fc0;return _0x3282ab['format']===_0x43ead1(0xa7)&&!_0x3282ab[_0x43ead1(0xb3)];}function attachUpdateNotice(_0x12fbcf,_0x288f4b){const _0x57acc7=a313_0x4fc0;if(!_0x288f4b||!_0x12fbcf||typeof _0x12fbcf!==_0x57acc7(0xeb))return _0x12fbcf;const _0x13c066=_0x12fbcf,_0x2c12cc=typeof _0x13c066[_0x57acc7(0xba)]==='object'&&_0x13c066['_notice']!==null?_0x13c066['_notice']:{};return{..._0x13c066,'_notice':{..._0x2c12cc,'update':_0x288f4b}};}
@@ -1 +1 @@
1
- function a314_0x2304(_0x14b6f0,_0x6711c0){_0x14b6f0=_0x14b6f0-0x11d;const _0xb2ac48=a314_0xb2ac();let _0x2304f0=_0xb2ac48[_0x14b6f0];return _0x2304f0;}(function(_0xa33a25,_0x205326){const _0x17d869=a314_0x2304,_0xe8b6b1=_0xa33a25();while(!![]){try{const _0x2621df=-parseInt(_0x17d869(0x128))/0x1*(-parseInt(_0x17d869(0x11f))/0x2)+-parseInt(_0x17d869(0x11d))/0x3*(parseInt(_0x17d869(0x11e))/0x4)+parseInt(_0x17d869(0x127))/0x5*(parseInt(_0x17d869(0x126))/0x6)+parseInt(_0x17d869(0x123))/0x7+-parseInt(_0x17d869(0x124))/0x8+-parseInt(_0x17d869(0x125))/0x9+-parseInt(_0x17d869(0x122))/0xa*(-parseInt(_0x17d869(0x121))/0xb);if(_0x2621df===_0x205326)break;else _0xe8b6b1['push'](_0xe8b6b1['shift']());}catch(_0x357130){_0xe8b6b1['push'](_0xe8b6b1['shift']());}}}(a314_0xb2ac,0xbaa8a));import{buildSchemaPayload as a314_0x19b76d}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a314_0xb2ac(){const _0x94e22e=['21862808DaJnGo','10nmGuxZ','3064411qpBcOb','5194040EmojCY','8083746FqgYog','18xtvicF','976445yfDzbC','1rejuFp','3SkRxXJ','3811976JQCUgr','507658MKxGTa','../commands/registry.js'];a314_0xb2ac=function(){return _0x94e22e;};return a314_0xb2ac();}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x1449be=a314_0x2304,{serviceRegistry:_0x5d68f2,findDefinition:_0x15cde8}=await import(_0x1449be(0x120));return a314_0x19b76d({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x5d68f2,'buildAllFlags':buildAllFlags,'findDefinition':_0x15cde8});}
1
+ (function(_0x5c8e20,_0x1ea72e){const _0x2950db=a314_0x4bca,_0x14404c=_0x5c8e20();while(!![]){try{const _0x2c8bbb=-parseInt(_0x2950db(0x101))/0x1*(-parseInt(_0x2950db(0xfb))/0x2)+-parseInt(_0x2950db(0x103))/0x3+parseInt(_0x2950db(0x104))/0x4*(parseInt(_0x2950db(0xfc))/0x5)+parseInt(_0x2950db(0x102))/0x6+parseInt(_0x2950db(0xff))/0x7+-parseInt(_0x2950db(0xfd))/0x8+-parseInt(_0x2950db(0xfa))/0x9*(parseInt(_0x2950db(0x100))/0xa);if(_0x2c8bbb===_0x1ea72e)break;else _0x14404c['push'](_0x14404c['shift']());}catch(_0x136c50){_0x14404c['push'](_0x14404c['shift']());}}}(a314_0x4d0f,0x69ea4));import{buildSchemaPayload as a314_0x11c793}from'@lovrabet/cli-framework';function a314_0x4d0f(){const _0x5243f8=['3787698DpQFsZ','552726pVVbgX','98508HbHZId','25632CyNzZU','4388FcQWWP','55pbGXLs','2380408lgQBRj','../commands/registry.js','1797817Vpvihw','1910mSYjqM','137ORyEcx'];a314_0x4d0f=function(){return _0x5243f8;};return a314_0x4d0f();}import{buildAllFlags}from'../framework/build-all-flags.js';function a314_0x4bca(_0x529f88,_0x1bed83){_0x529f88=_0x529f88-0xfa;const _0x4d0f0c=a314_0x4d0f();let _0x4bca02=_0x4d0f0c[_0x529f88];return _0x4bca02;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x220989=a314_0x4bca,{serviceRegistry:_0x5c4716,findDefinition:_0x22ebe7}=await import(_0x220989(0xfe));return a314_0x11c793({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x5c4716,'buildAllFlags':buildAllFlags,'findDefinition':_0x22ebe7});}
@@ -1 +1 @@
1
- (function(_0x1ac93e,_0xd1fadf){const _0x561c8c=a315_0x376b,_0xb0636c=_0x1ac93e();while(!![]){try{const _0x1f5e32=-parseInt(_0x561c8c(0xdb))/0x1+parseInt(_0x561c8c(0xe5))/0x2+-parseInt(_0x561c8c(0xea))/0x3+-parseInt(_0x561c8c(0xf3))/0x4+parseInt(_0x561c8c(0xe3))/0x5+parseInt(_0x561c8c(0xe0))/0x6*(parseInt(_0x561c8c(0xe9))/0x7)+parseInt(_0x561c8c(0xdc))/0x8;if(_0x1f5e32===_0xd1fadf)break;else _0xb0636c['push'](_0xb0636c['shift']());}catch(_0x3540b5){_0xb0636c['push'](_0xb0636c['shift']());}}}(a315_0x16b0,0xcc7b8));import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';function a315_0x16b0(){const _0x2b9611=['length','14oRzhEF','3306117rDwyGL','entries','flags','help','has','name','meowKey','command','version','850320ZhGhHY','1410241MGPUxx','9600016AtGhGD','replace','isArray','alias','1762170mvMpqI','add','toUpperCase','1772080HrdjfJ','Unsupported\x20flag\x20--','2841224awjQAf','filter','\x20for\x20`'];a315_0x16b0=function(){return _0x2b9611;};return a315_0x16b0();}import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0x58b7bf,_0x5865b9){const _0x4858cc=a315_0x376b;if(!_0x58b7bf['strictFlags'])return;const _0xc1fa72=new Set([_0x4858cc(0xed),_0x4858cc(0xf2)]),_0x2ba213=GLOBAL_FLAGS[_0x4858cc(0xe6)](_0x391673=>PIPELINE_FLAG_NAMES[_0x4858cc(0xee)](_0x391673['name']));for(const _0x4c0efe of[..._0x58b7bf[_0x4858cc(0xec)],..._0x2ba213]){addFlagCandidates(_0xc1fa72,_0x4c0efe);}for(const [_0x4d5753,_0x4316fd]of Object[_0x4858cc(0xeb)](_0x5865b9)){if(!isExplicitValue(_0x4316fd)||_0xc1fa72[_0x4858cc(0xee)](_0x4d5753))continue;const _0xd4efd3=GLOBAL_FLAGS['find'](_0x1455ce=>_0x1455ce['meowKey']===_0x4d5753)?.['name']??toKebabCase(_0x4d5753);throw CliErrors['validation'](_0x4858cc(0xe4)+_0xd4efd3+_0x4858cc(0xe7)+CLI_BIN_NAME+'\x20'+_0x58b7bf['service']+'\x20'+_0x58b7bf[_0x4858cc(0xf1)]+'`.','Run\x20`'+CLI_BIN_NAME+'\x20'+_0x58b7bf['service']+'\x20'+_0x58b7bf[_0x4858cc(0xf1)]+'\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.');}}function addFlagCandidates(_0x4e4dc6,_0x11f8ef){const _0x6a8b52=a315_0x376b,_0x437674=_0x6a8b52(0xf0)in _0x11f8ef?[_0x11f8ef['name'],_0x11f8ef[_0x6a8b52(0xf0)]]:[_0x11f8ef[_0x6a8b52(0xef)],_0x11f8ef[_0x6a8b52(0xdf)]];for(const _0x473721 of _0x437674){if(!_0x473721)continue;_0x4e4dc6[_0x6a8b52(0xe1)](_0x473721),_0x4e4dc6[_0x6a8b52(0xe1)](toCamelCase(_0x473721));}}function isExplicitValue(_0x27d7b6){const _0x56cfaa=a315_0x376b;return _0x27d7b6!==undefined&&_0x27d7b6!==null&&_0x27d7b6!==![]&&(!Array[_0x56cfaa(0xde)](_0x27d7b6)||_0x27d7b6[_0x56cfaa(0xe8)]>0x0);}function a315_0x376b(_0x1b1a15,_0xdf7b6){_0x1b1a15=_0x1b1a15-0xdb;const _0x16b08e=a315_0x16b0();let _0x376b83=_0x16b08e[_0x1b1a15];return _0x376b83;}function toCamelCase(_0x315a06){const _0x37e745=a315_0x376b;return _0x315a06[_0x37e745(0xdd)](/-([a-z])/g,(_0x5aafc6,_0x3cad34)=>_0x3cad34[_0x37e745(0xe2)]());}function toKebabCase(_0x37015a){const _0x1f0c2f=a315_0x376b;return _0x37015a[_0x1f0c2f(0xdd)](/([a-z0-9])([A-Z])/g,'$1-$2')['toLowerCase']();}
1
+ function a315_0x2d41(){const _0x5b4107=['2467845pEgmsw','\x20for\x20`','334NiqthW','32586TOAszs','command','service','replace','help','add','flags','name','alias','48732060fMRrtp','11929653XObZEG','Unsupported\x20flag\x20--','isArray','version','strictFlags','has','434cUvqGr','validation','meowKey','length','3190488NCJbRh','7525440RjUSPt','7114qkGyQy','12CPsnFA'];a315_0x2d41=function(){return _0x5b4107;};return a315_0x2d41();}(function(_0x51f6a2,_0x1823ce){const _0x545e2b=a315_0x41ab,_0x2e62b1=_0x51f6a2();while(!![]){try{const _0x50e058=-parseInt(_0x545e2b(0x16a))/0x1*(-parseInt(_0x545e2b(0x166))/0x2)+parseInt(_0x545e2b(0x164))/0x3+parseInt(_0x545e2b(0x167))/0x4*(parseInt(_0x545e2b(0x168))/0x5)+parseInt(_0x545e2b(0x16b))/0x6*(-parseInt(_0x545e2b(0x17b))/0x7)+parseInt(_0x545e2b(0x165))/0x8+parseInt(_0x545e2b(0x175))/0x9+-parseInt(_0x545e2b(0x174))/0xa;if(_0x50e058===_0x1823ce)break;else _0x2e62b1['push'](_0x2e62b1['shift']());}catch(_0x906776){_0x2e62b1['push'](_0x2e62b1['shift']());}}}(a315_0x2d41,0xc081e));import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0x1c5486,_0x1a1366){const _0x1b8f2b=a315_0x41ab;if(!_0x1c5486[_0x1b8f2b(0x179)])return;const _0x5359d9=new Set([_0x1b8f2b(0x16f),_0x1b8f2b(0x178)]),_0x1ea22b=GLOBAL_FLAGS['filter'](_0x46b7db=>PIPELINE_FLAG_NAMES[_0x1b8f2b(0x17a)](_0x46b7db['name']));for(const _0x2b38b0 of[..._0x1c5486[_0x1b8f2b(0x171)],..._0x1ea22b]){addFlagCandidates(_0x5359d9,_0x2b38b0);}for(const [_0x3b0366,_0x1e77ad]of Object['entries'](_0x1a1366)){if(!isExplicitValue(_0x1e77ad)||_0x5359d9[_0x1b8f2b(0x17a)](_0x3b0366))continue;const _0x2c2dfe=GLOBAL_FLAGS['find'](_0x5b0816=>_0x5b0816[_0x1b8f2b(0x17d)]===_0x3b0366)?.[_0x1b8f2b(0x172)]??toKebabCase(_0x3b0366);throw CliErrors[_0x1b8f2b(0x17c)](_0x1b8f2b(0x176)+_0x2c2dfe+_0x1b8f2b(0x169)+CLI_BIN_NAME+'\x20'+_0x1c5486['service']+'\x20'+_0x1c5486[_0x1b8f2b(0x16c)]+'`.','Run\x20`'+CLI_BIN_NAME+'\x20'+_0x1c5486[_0x1b8f2b(0x16d)]+'\x20'+_0x1c5486[_0x1b8f2b(0x16c)]+'\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.');}}function a315_0x41ab(_0x32eb0c,_0x1c9b6d){_0x32eb0c=_0x32eb0c-0x163;const _0x2d414e=a315_0x2d41();let _0x41ab1e=_0x2d414e[_0x32eb0c];return _0x41ab1e;}function addFlagCandidates(_0x26d71e,_0x313ffd){const _0xfaf1bb=a315_0x41ab,_0x46dc30='meowKey'in _0x313ffd?[_0x313ffd[_0xfaf1bb(0x172)],_0x313ffd[_0xfaf1bb(0x17d)]]:[_0x313ffd['name'],_0x313ffd[_0xfaf1bb(0x173)]];for(const _0x106cd1 of _0x46dc30){if(!_0x106cd1)continue;_0x26d71e['add'](_0x106cd1),_0x26d71e[_0xfaf1bb(0x170)](toCamelCase(_0x106cd1));}}function isExplicitValue(_0x329871){const _0x569acf=a315_0x41ab;return _0x329871!==undefined&&_0x329871!==null&&_0x329871!==![]&&(!Array[_0x569acf(0x177)](_0x329871)||_0x329871[_0x569acf(0x163)]>0x0);}function toCamelCase(_0x4975c3){const _0x17bb50=a315_0x41ab;return _0x4975c3[_0x17bb50(0x16e)](/-([a-z])/g,(_0x4a4ff1,_0x8b1d20)=>_0x8b1d20['toUpperCase']());}function toKebabCase(_0x483c13){const _0x21392d=a315_0x41ab;return _0x483c13[_0x21392d(0x16e)](/([a-z0-9])([A-Z])/g,'$1-$2')['toLowerCase']();}
@@ -1 +1 @@
1
- function a316_0x1a2b(_0x177947,_0x488a0c){_0x177947=_0x177947-0xa0;var _0x2a82df=a316_0x2a82();var _0x1a2ba7=_0x2a82df[_0x177947];return _0x1a2ba7;}function a316_0x2a82(){var _0x3a5168=['379160wMkiwV','7088060mnPpYl','8kJzNln','10789492vtIMjp','9AQtUZC','42jSzpon','258444NozmeL','13128992pSflRc','380934oGxNMR','5485556IgFYBQ'];a316_0x2a82=function(){return _0x3a5168;};return a316_0x2a82();}(function(_0x5d05b1,_0x4b92b0){var _0xfcdb0e=a316_0x1a2b,_0x4d9598=_0x5d05b1();while(!![]){try{var _0x5ab778=parseInt(_0xfcdb0e(0xa3))/0x1+parseInt(_0xfcdb0e(0xa9))/0x2*(parseInt(_0xfcdb0e(0xa5))/0x3)+parseInt(_0xfcdb0e(0xa6))/0x4+parseInt(_0xfcdb0e(0xa7))/0x5*(-parseInt(_0xfcdb0e(0xa2))/0x6)+-parseInt(_0xfcdb0e(0xa0))/0x7+parseInt(_0xfcdb0e(0xa4))/0x8*(parseInt(_0xfcdb0e(0xa1))/0x9)+-parseInt(_0xfcdb0e(0xa8))/0xa;if(_0x5ab778===_0x4b92b0)break;else _0x4d9598['push'](_0x4d9598['shift']());}catch(_0x24d8f7){_0x4d9598['push'](_0x4d9598['shift']());}}}(a316_0x2a82,0xf39fb));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
1
+ function a316_0x1775(_0x3ccf92,_0x598f82){_0x3ccf92=_0x3ccf92-0x140;var _0x47fd5d=a316_0x47fd();var _0x1775dc=_0x47fd5d[_0x3ccf92];return _0x1775dc;}(function(_0x1695c9,_0x505722){var _0x35abb5=a316_0x1775,_0x135509=_0x1695c9();while(!![]){try{var _0x30eeb4=-parseInt(_0x35abb5(0x145))/0x1+parseInt(_0x35abb5(0x141))/0x2*(parseInt(_0x35abb5(0x148))/0x3)+parseInt(_0x35abb5(0x149))/0x4*(-parseInt(_0x35abb5(0x143))/0x5)+parseInt(_0x35abb5(0x14b))/0x6*(parseInt(_0x35abb5(0x146))/0x7)+-parseInt(_0x35abb5(0x140))/0x8*(-parseInt(_0x35abb5(0x14a))/0x9)+parseInt(_0x35abb5(0x147))/0xa+-parseInt(_0x35abb5(0x144))/0xb*(parseInt(_0x35abb5(0x142))/0xc);if(_0x30eeb4===_0x505722)break;else _0x135509['push'](_0x135509['shift']());}catch(_0x21e15e){_0x135509['push'](_0x135509['shift']());}}}(a316_0x47fd,0x21bf3));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';function a316_0x47fd(){var _0x2d87c7=['23597MWcKto','35rLVkRc','1128550ytkcvV','3DOzXmk','1948VACuhJ','1062Fzroug','221982JdSwSO','1848gjEpdA','345574rcBVzY','846012pJdzjp','555wYGwvp','44jjYivp'];a316_0x47fd=function(){return _0x2d87c7;};return a316_0x47fd();}
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "2.5.5-beta.1";
2
- export declare const GIT_TAG = "v2.5.5-beta.1";
3
- export declare const GIT_COMMIT = "303b85c6";
4
- export declare const BUILD_TIME = "2026-10-03T02:16:21.778Z";
1
+ export declare const VERSION = "2.5.5-beta.3";
2
+ export declare const GIT_TAG = "v2.5.5-beta.3";
3
+ export declare const GIT_COMMIT = "17281e48";
4
+ export declare const BUILD_TIME = "2026-10-08T11:16:55.885Z";
@@ -1 +1 @@
1
- const a317_0x1c7fcc=a317_0x550f;(function(_0x35fc86,_0x19570c){const _0xdcba92=a317_0x550f,_0x18cff6=_0x35fc86();while(!![]){try{const _0x2dbad2=-parseInt(_0xdcba92(0x7a))/0x1+-parseInt(_0xdcba92(0x7e))/0x2+-parseInt(_0xdcba92(0x77))/0x3*(parseInt(_0xdcba92(0x74))/0x4)+-parseInt(_0xdcba92(0x76))/0x5*(parseInt(_0xdcba92(0x7b))/0x6)+-parseInt(_0xdcba92(0x80))/0x7*(-parseInt(_0xdcba92(0x7c))/0x8)+-parseInt(_0xdcba92(0x7d))/0x9+-parseInt(_0xdcba92(0x73))/0xa*(-parseInt(_0xdcba92(0x78))/0xb);if(_0x2dbad2===_0x19570c)break;else _0x18cff6['push'](_0x18cff6['shift']());}catch(_0x4d0c47){_0x18cff6['push'](_0x18cff6['shift']());}}}(a317_0x2245,0x7635f));function a317_0x550f(_0x227bdf,_0x1be247){_0x227bdf=_0x227bdf-0x73;const _0x2245a5=a317_0x2245();let _0x550fc8=_0x2245a5[_0x227bdf];return _0x550fc8;}export const VERSION=a317_0x1c7fcc(0x75);export const GIT_TAG=a317_0x1c7fcc(0x7f);export const GIT_COMMIT=a317_0x1c7fcc(0x79);export const BUILD_TIME=a317_0x1c7fcc(0x81);function a317_0x2245(){const _0x3810a3=['869mkViCd','303b85c6','389734mihBPo','5059248hveNmn','2113336dywxIT','7693443goGYHE','1083812fRPzLr','v2.5.5-beta.1','7xKYpxx','2026-10-03T02:16:21.778Z','366710uEhicM','380bxCCnk','2.5.5-beta.1','5UxheFi','1494QgHflR'];a317_0x2245=function(){return _0x3810a3;};return a317_0x2245();}
1
+ const a317_0x1d15e4=a317_0x5e57;function a317_0x5e57(_0x5f2ec7,_0x5b0462){_0x5f2ec7=_0x5f2ec7-0x168;const _0x5e52ef=a317_0x5e52();let _0x5e5721=_0x5e52ef[_0x5f2ec7];return _0x5e5721;}(function(_0x17c352,_0x3b4624){const _0x3d7eae=a317_0x5e57,_0x6e8dcf=_0x17c352();while(!![]){try{const _0x5f35c3=-parseInt(_0x3d7eae(0x168))/0x1*(-parseInt(_0x3d7eae(0x173))/0x2)+parseInt(_0x3d7eae(0x16b))/0x3+-parseInt(_0x3d7eae(0x16d))/0x4+-parseInt(_0x3d7eae(0x16a))/0x5+-parseInt(_0x3d7eae(0x16f))/0x6*(-parseInt(_0x3d7eae(0x16e))/0x7)+-parseInt(_0x3d7eae(0x169))/0x8+parseInt(_0x3d7eae(0x16c))/0x9;if(_0x5f35c3===_0x3b4624)break;else _0x6e8dcf['push'](_0x6e8dcf['shift']());}catch(_0x256edb){_0x6e8dcf['push'](_0x6e8dcf['shift']());}}}(a317_0x5e52,0x62b8e));function a317_0x5e52(){const _0x4d63b8=['2026-10-08T11:16:55.885Z','17281e48','52oPjEVL','2.5.5-beta.3','4874GsKpiw','1920872EdTGHp','3742420vVLisr','785418gGMoKf','2772072ABkuqS','181432shNdXt','5192453rbEPwx','6XhDCtn','v2.5.5-beta.3'];a317_0x5e52=function(){return _0x4d63b8;};return a317_0x5e52();}export const VERSION=a317_0x1d15e4(0x174);export const GIT_TAG=a317_0x1d15e4(0x170);export const GIT_COMMIT=a317_0x1d15e4(0x172);export const BUILD_TIME=a317_0x1d15e4(0x171);
@@ -1 +1 @@
1
- const a318_0x3c4f13=a318_0x23f6;(function(_0x20f96a,_0xd6e78){const _0x2e200b=a318_0x23f6,_0x25c0d1=_0x20f96a();while(!![]){try{const _0x3afb19=parseInt(_0x2e200b(0x7e))/0x1+parseInt(_0x2e200b(0x9f))/0x2+parseInt(_0x2e200b(0x9d))/0x3+-parseInt(_0x2e200b(0x91))/0x4*(parseInt(_0x2e200b(0x86))/0x5)+parseInt(_0x2e200b(0x98))/0x6*(-parseInt(_0x2e200b(0x7d))/0x7)+-parseInt(_0x2e200b(0x80))/0x8+parseInt(_0x2e200b(0x93))/0x9*(parseInt(_0x2e200b(0x81))/0xa);if(_0x3afb19===_0xd6e78)break;else _0x25c0d1['push'](_0x25c0d1['shift']());}catch(_0x49259d){_0x25c0d1['push'](_0x25c0d1['shift']());}}}(a318_0x39e8,0x20453));export const ROUTING_CATALOG_DIGEST='57d346b80b12ca567af9d86dd7f8c02a0c27fe15d4944c8345add2cc6134c587';function a318_0x39e8(){const _0x359895=['https://skills-daily.lovrabet.ai','4SVTHow','https://daily-api.lovrabet.com','9pklTQu','https://skills.lovrabet.ai','https://app.lovrabet.com','https://skills-daily.lovrabet.com','Indonesia','487332RvWDDz','https://g.lovrabet.ai','https://api.lovrabet.com','https://user.lovrabet.id','https://app.lovrabet.ai','510954hSmQBr','Global','186774MTvdZx','https://daily.lovrabet.com','https://kb-service.lovrabet.com','https://skills.lovrabet.id','21BYncyi','137459CPUjuf','global','853048YrmRhw','3286970sjpXMQ','https://kb-service-daily.lovrabet.com','https://daily-runtime.lovrabet.ai','https://api.lovrabet.id','https://user.lovrabet.ai','1236925oKKSGg','https://daily-api.lovrabet.ai','china','indonesia','https://daily.lovrabet.ai','Mainland\x20China','https://runtime.lovrabet.id','https://user-daily.lovrabet.ai','https://user-daily.lovrabet.com','https://g.lovrabet.com'];a318_0x39e8=function(){return _0x359895;};return a318_0x39e8();}export const DEFAULT_REGION='cn';function a318_0x23f6(_0x536798,_0xb9c78){_0x536798=_0x536798-0x7c;const _0x39e862=a318_0x39e8();let _0x23f657=_0x39e862[_0x536798];return _0x23f657;}export const REGION_VALUES=['cn','id',a318_0x3c4f13(0x7f)];export const ENABLED_REGION_VALUES=['cn','id',a318_0x3c4f13(0x7f)];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a318_0x3c4f13(0x8b),'aliases':[a318_0x3c4f13(0x88)],'serviceDomains':{'production':{'user':'https://user.lovrabet.com','api':a318_0x3c4f13(0x9a),'runtime':'https://runtime.lovrabet.com','skill':'https://skills.lovrabet.com','kb':'https://api.lovrabet.com','kbService':a318_0x3c4f13(0xa1),'app':a318_0x3c4f13(0x95)},'daily':{'user':a318_0x3c4f13(0x8e),'api':a318_0x3c4f13(0x92),'runtime':'https://daily-runtime.lovrabet.com','skill':a318_0x3c4f13(0x96),'kb':'https://daily-api.lovrabet.com','kbService':a318_0x3c4f13(0x82),'app':a318_0x3c4f13(0xa0)}},'cdn':{'libraries':'https://g.alicdn.com/code/lib','lovrabet':a318_0x3c4f13(0x8f)},'local':{'origin':'https://dev.lovrabet.com'}},'id':{'enabled':!![],'label':a318_0x3c4f13(0x97),'aliases':[a318_0x3c4f13(0x89)],'serviceDomains':{'production':{'user':a318_0x3c4f13(0x9b),'api':a318_0x3c4f13(0x84),'runtime':a318_0x3c4f13(0x8c),'skill':a318_0x3c4f13(0x7c),'kb':a318_0x3c4f13(0x84),'kbService':'https://kb-service.lovrabet.id','app':'https://app.lovrabet.id'}},'cdn':{'libraries':'https://cdnjs.cloudflare.com/ajax/libs','lovrabet':'https://g.lovrabet.id'},'local':{'origin':'https://dev.lovrabet.id'}},'global':{'enabled':!![],'label':a318_0x3c4f13(0x9e),'aliases':[],'serviceDomains':{'production':{'user':a318_0x3c4f13(0x85),'api':'https://api.lovrabet.ai','runtime':'https://runtime.lovrabet.ai','skill':a318_0x3c4f13(0x94),'kb':'https://api.lovrabet.ai','app':a318_0x3c4f13(0x9c)},'daily':{'user':a318_0x3c4f13(0x8d),'api':a318_0x3c4f13(0x87),'runtime':a318_0x3c4f13(0x83),'skill':a318_0x3c4f13(0x90),'kb':a318_0x3c4f13(0x87),'app':a318_0x3c4f13(0x8a)}},'cdn':{'libraries':'https://cdnjs.cloudflare.com/ajax/libs','lovrabet':a318_0x3c4f13(0x99)},'local':{'origin':'https://dev.lovrabet.ai'}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
1
+ const a318_0x43fb85=a318_0xf080;(function(_0x4cb6e7,_0x4d6780){const _0x269688=a318_0xf080,_0x34d9df=_0x4cb6e7();while(!![]){try{const _0x542299=-parseInt(_0x269688(0xb1))/0x1*(parseInt(_0x269688(0x96))/0x2)+parseInt(_0x269688(0x90))/0x3+parseInt(_0x269688(0xb7))/0x4+parseInt(_0x269688(0x8c))/0x5*(parseInt(_0x269688(0x9f))/0x6)+parseInt(_0x269688(0xa4))/0x7*(-parseInt(_0x269688(0x9b))/0x8)+parseInt(_0x269688(0x94))/0x9*(-parseInt(_0x269688(0xa3))/0xa)+-parseInt(_0x269688(0xaf))/0xb;if(_0x542299===_0x4d6780)break;else _0x34d9df['push'](_0x34d9df['shift']());}catch(_0x961319){_0x34d9df['push'](_0x34d9df['shift']());}}}(a318_0xb977,0xe7ffe));function a318_0xb977(){const _0x3168a5=['https://api.lovrabet.com','Indonesia','https://kb-service-daily.lovrabet.com','https://user.lovrabet.ai','https://skills-daily.lovrabet.ai','https://dev.lovrabet.com','57d346b80b12ca567af9d86dd7f8c02a0c27fe15d4944c8345add2cc6134c587','814506eByBuA','https://user-daily.lovrabet.ai','4RPXxKH','https://user-daily.lovrabet.com','https://runtime.lovrabet.com','china','https://g.lovrabet.id','https://daily.lovrabet.ai','6038864NAdsTo','https://api.lovrabet.ai','4790120EuMTHy','https://api.lovrabet.id','https://cdnjs.cloudflare.com/ajax/libs','https://app.lovrabet.ai','4031964XltZKd','Global','https://daily-runtime.lovrabet.ai','https://dev.lovrabet.ai','280269uRnzer','Mainland\x20China','643918pKGljE','https://g.alicdn.com/code/lib','indonesia','https://daily-api.lovrabet.ai','https://skills.lovrabet.com','112264EtmNdN','https://skills.lovrabet.id','global','https://skills.lovrabet.ai','6WykvRZ','https://daily-runtime.lovrabet.com','https://skills-daily.lovrabet.com','https://daily-api.lovrabet.com','450LvVuJJ','49NMIdJV','https://kb-service.lovrabet.id','https://g.lovrabet.ai','https://daily.lovrabet.com'];a318_0xb977=function(){return _0x3168a5;};return a318_0xb977();}export const ROUTING_CATALOG_DIGEST=a318_0x43fb85(0xae);export const DEFAULT_REGION='cn';function a318_0xf080(_0x42625f,_0x38e9d8){_0x42625f=_0x42625f-0x8b;const _0xb97755=a318_0xb977();let _0xf080a0=_0xb97755[_0x42625f];return _0xf080a0;}export const REGION_VALUES=['cn','id',a318_0x43fb85(0x9d)];export const ENABLED_REGION_VALUES=['cn','id',a318_0x43fb85(0x9d)];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a318_0x43fb85(0x95),'aliases':[a318_0x43fb85(0xb4)],'serviceDomains':{'production':{'user':'https://user.lovrabet.com','api':a318_0x43fb85(0xa8),'runtime':a318_0x43fb85(0xb3),'skill':a318_0x43fb85(0x9a),'kb':a318_0x43fb85(0xa8),'kbService':'https://kb-service.lovrabet.com','app':'https://app.lovrabet.com'},'daily':{'user':a318_0x43fb85(0xb2),'api':a318_0x43fb85(0xa2),'runtime':a318_0x43fb85(0xa0),'skill':a318_0x43fb85(0xa1),'kb':a318_0x43fb85(0xa2),'kbService':a318_0x43fb85(0xaa),'app':a318_0x43fb85(0xa7)}},'cdn':{'libraries':a318_0x43fb85(0x97),'lovrabet':'https://g.lovrabet.com'},'local':{'origin':a318_0x43fb85(0xad)}},'id':{'enabled':!![],'label':a318_0x43fb85(0xa9),'aliases':[a318_0x43fb85(0x98)],'serviceDomains':{'production':{'user':'https://user.lovrabet.id','api':a318_0x43fb85(0x8d),'runtime':'https://runtime.lovrabet.id','skill':a318_0x43fb85(0x9c),'kb':a318_0x43fb85(0x8d),'kbService':a318_0x43fb85(0xa5),'app':'https://app.lovrabet.id'}},'cdn':{'libraries':a318_0x43fb85(0x8e),'lovrabet':a318_0x43fb85(0xb5)},'local':{'origin':'https://dev.lovrabet.id'}},'global':{'enabled':!![],'label':a318_0x43fb85(0x91),'aliases':[],'serviceDomains':{'production':{'user':a318_0x43fb85(0xab),'api':a318_0x43fb85(0x8b),'runtime':'https://runtime.lovrabet.ai','skill':a318_0x43fb85(0x9e),'kb':a318_0x43fb85(0x8b),'app':a318_0x43fb85(0x8f)},'daily':{'user':a318_0x43fb85(0xb0),'api':a318_0x43fb85(0x99),'runtime':a318_0x43fb85(0x92),'skill':a318_0x43fb85(0xac),'kb':a318_0x43fb85(0x99),'app':a318_0x43fb85(0xb6)}},'cdn':{'libraries':'https://cdnjs.cloudflare.com/ajax/libs','lovrabet':a318_0x43fb85(0xa6)},'local':{'origin':a318_0x43fb85(0x93)}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
@@ -1 +1 @@
1
- const a319_0x501a09=a319_0x1a88;function a319_0x1a88(_0x533942,_0x5e40ec){_0x533942=_0x533942-0x1ef;const _0x29fa5d=a319_0x29fa();let _0x1a8866=_0x29fa5d[_0x533942];return _0x1a8866;}(function(_0x3275ff,_0x19d96b){const _0x4558e1=a319_0x1a88,_0x37a9e6=_0x3275ff();while(!![]){try{const _0x16aae3=parseInt(_0x4558e1(0x1ef))/0x1+-parseInt(_0x4558e1(0x201))/0x2*(parseInt(_0x4558e1(0x1fd))/0x3)+parseInt(_0x4558e1(0x1ff))/0x4*(parseInt(_0x4558e1(0x1fb))/0x5)+-parseInt(_0x4558e1(0x1f4))/0x6+parseInt(_0x4558e1(0x1f2))/0x7*(parseInt(_0x4558e1(0x1f8))/0x8)+-parseInt(_0x4558e1(0x1f5))/0x9*(parseInt(_0x4558e1(0x1fc))/0xa)+-parseInt(_0x4558e1(0x1fa))/0xb*(-parseInt(_0x4558e1(0x1f0))/0xc);if(_0x16aae3===_0x19d96b)break;else _0x37a9e6['push'](_0x37a9e6['shift']());}catch(_0x1373ff){_0x37a9e6['push'](_0x37a9e6['shift']());}}}(a319_0x29fa,0x589b6));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST='a03fe188b2b34518efc5668666c0001d20354882cd7dd70afec902dffe1329c3';export const ENTERPRISE_ROUTING_PROTOCOL=a319_0x501a09(0x200);export const ENTERPRISE_ROUTING_KIND=a319_0x501a09(0x1f9);function a319_0x29fa(){const _0x1cec22=['runtimeDomain','429656nkeaoY','lovrabet-routing/v1','43172dtqBmU','apiDomain','lovrabet','679185LUbYPC','2206092CqBDnW','localDomain','7GCeWTE','kbDomain','395964pdQAww','10863IHLeKi','kbServiceDomain','libraries','2179192rGWWNZ','enterprise','11JrWYHv','30fualby','5470sQagbn','96hYXPUu'];a319_0x29fa=function(){return _0x1cec22;};return a319_0x29fa();}export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain',a319_0x501a09(0x202),a319_0x501a09(0x1fe),'skillDomain',a319_0x501a09(0x1f3),a319_0x501a09(0x1f6),'appDomain',a319_0x501a09(0x1f1),'certificateDomain'];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain',a319_0x501a09(0x202),a319_0x501a09(0x1fe),'skillDomain',a319_0x501a09(0x1f3),'appDomain'];export const ENTERPRISE_ROUTING_CDN_FIELDS=[a319_0x501a09(0x1f7),a319_0x501a09(0x203)];export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=['libraries',a319_0x501a09(0x203)];
1
+ const a319_0x563580=a319_0x7de6;(function(_0x3966eb,_0x4f48d2){const _0x217412=a319_0x7de6,_0x390fa7=_0x3966eb();while(!![]){try{const _0x515588=-parseInt(_0x217412(0x96))/0x1*(parseInt(_0x217412(0x8b))/0x2)+parseInt(_0x217412(0x8d))/0x3+parseInt(_0x217412(0x9a))/0x4+parseInt(_0x217412(0x92))/0x5+parseInt(_0x217412(0x98))/0x6+parseInt(_0x217412(0x95))/0x7*(parseInt(_0x217412(0x90))/0x8)+-parseInt(_0x217412(0x99))/0x9;if(_0x515588===_0x4f48d2)break;else _0x390fa7['push'](_0x390fa7['shift']());}catch(_0x11d075){_0x390fa7['push'](_0x390fa7['shift']());}}}(a319_0x10cd,0x87e3e));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a319_0x563580(0x97);function a319_0x10cd(){const _0x9f44e7=['enterprise','289568FIfCXj','appDomain','3276030PuCsFt','kbDomain','userDomain','196fsnGSP','887gmoRKF','a03fe188b2b34518efc5668666c0001d20354882cd7dd70afec902dffe1329c3','5573238PmefOA','18581679dJCnlg','11420MhIhFu','libraries','runtimeDomain','skillDomain','apiDomain','2326ilIdFq','lovrabet-routing/v1','3157188LpXRqC','lovrabet'];a319_0x10cd=function(){return _0x9f44e7;};return a319_0x10cd();}export const ENTERPRISE_ROUTING_PROTOCOL=a319_0x563580(0x8c);export const ENTERPRISE_ROUTING_KIND=a319_0x563580(0x8f);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a319_0x563580(0x94),a319_0x563580(0x8a),a319_0x563580(0x9c),a319_0x563580(0x89),a319_0x563580(0x93),'kbServiceDomain','appDomain','localDomain','certificateDomain'];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain',a319_0x563580(0x8a),'runtimeDomain',a319_0x563580(0x89),'kbDomain',a319_0x563580(0x91)];export const ENTERPRISE_ROUTING_CDN_FIELDS=[a319_0x563580(0x9b),a319_0x563580(0x8e)];function a319_0x7de6(_0x2da70b,_0x182f72){_0x2da70b=_0x2da70b-0x89;const _0x10cd86=a319_0x10cd();let _0x7de6cd=_0x10cd86[_0x2da70b];return _0x7de6cd;}export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=[a319_0x563580(0x9b),'lovrabet'];
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a320_0x4c69(_0x2236d1,_0x1f1919){_0x2236d1=_0x2236d1-0x160;var _0x408dc9=a320_0x408d();var _0x4c6923=_0x408dc9[_0x2236d1];return _0x4c6923;}(function(_0x5d1776,_0x2260be){var _0x316ba1=a320_0x4c69,_0x51ff2b=_0x5d1776();while(!![]){try{var _0x53e8e2=-parseInt(_0x316ba1(0x16c))/0x1*(parseInt(_0x316ba1(0x169))/0x2)+parseInt(_0x316ba1(0x16e))/0x3+parseInt(_0x316ba1(0x16a))/0x4*(parseInt(_0x316ba1(0x165))/0x5)+parseInt(_0x316ba1(0x163))/0x6*(-parseInt(_0x316ba1(0x166))/0x7)+parseInt(_0x316ba1(0x161))/0x8+parseInt(_0x316ba1(0x168))/0x9+-parseInt(_0x316ba1(0x162))/0xa;if(_0x53e8e2===_0x2260be)break;else _0x51ff2b['push'](_0x51ff2b['shift']());}catch(_0x39507d){_0x51ff2b['push'](_0x51ff2b['shift']());}}}(a320_0x408d,0xc336b));import a320_0x459e6a from'chalk';function a320_0x408d(){var _0xe61e42=['5WNpfSA','\x20\x20Use\x20','932247SzEAIY','log','9877352mPEzRd','4182740HPFCVq','337002PCtwvF','green','3539535FsFXkM','175SZkVOF','\x20to\x20view\x20available\x20commands.','4405698WXXXzX','331484mgYzsY','8XRFkBd','\x20--help'];a320_0x408d=function(){return _0xe61e42;};return a320_0x408d();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x226ae8=a320_0x4c69;console['log'](),console[_0x226ae8(0x160)](a320_0x459e6a[_0x226ae8(0x164)]['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x226ae8(0x160)](),console[_0x226ae8(0x160)](_0x226ae8(0x16d)+a320_0x459e6a['green']['bold'](CLI_BIN_NAME+_0x226ae8(0x16b))+_0x226ae8(0x167)),console[_0x226ae8(0x160)]();}
1
+ (function(_0x34efda,_0x3927da){var _0x2166db=a320_0x39f8,_0xa32f9b=_0x34efda();while(!![]){try{var _0x342087=-parseInt(_0x2166db(0xbd))/0x1+-parseInt(_0x2166db(0xc1))/0x2+-parseInt(_0x2166db(0xc3))/0x3+parseInt(_0x2166db(0xc0))/0x4+parseInt(_0x2166db(0xc5))/0x5+-parseInt(_0x2166db(0xbf))/0x6+parseInt(_0x2166db(0xc7))/0x7;if(_0x342087===_0x3927da)break;else _0xa32f9b['push'](_0xa32f9b['shift']());}catch(_0x2d415a){_0xa32f9b['push'](_0xa32f9b['shift']());}}}(a320_0x4fea,0xe804c));function a320_0x4fea(){var _0x48da88=['green','24376436dVuZXF','1671574KPhkHS','log','5140422FcIwDL','5483588gcZnnS','3458558TXaUOJ','\x20\x20Use\x20','4064640thHbTy','\x20to\x20view\x20available\x20commands.','8547865AqVmGm'];a320_0x4fea=function(){return _0x48da88;};return a320_0x4fea();}import a320_0x3bf91b from'chalk';function a320_0x39f8(_0x27b120,_0x3aa3d7){_0x27b120=_0x27b120-0xbd;var _0x4fea53=a320_0x4fea();var _0x39f862=_0x4fea53[_0x27b120];return _0x39f862;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0xbafcbf=a320_0x39f8;console[_0xbafcbf(0xbe)](),console[_0xbafcbf(0xbe)](a320_0x3bf91b['green']['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console[_0xbafcbf(0xbe)](),console[_0xbafcbf(0xbe)](_0xbafcbf(0xc2)+a320_0x3bf91b[_0xbafcbf(0xc6)]['bold'](CLI_BIN_NAME+'\x20--help')+_0xbafcbf(0xc4)),console[_0xbafcbf(0xbe)]();}
@@ -1 +1 @@
1
- (function(_0x3be484,_0x59b6af){const _0x4385e3=a321_0x39a0,_0x26e3f9=_0x3be484();while(!![]){try{const _0x5d8374=parseInt(_0x4385e3(0x1ec))/0x1*(parseInt(_0x4385e3(0x1f2))/0x2)+-parseInt(_0x4385e3(0x1f7))/0x3*(parseInt(_0x4385e3(0x1f3))/0x4)+parseInt(_0x4385e3(0x1f5))/0x5+parseInt(_0x4385e3(0x1f1))/0x6*(parseInt(_0x4385e3(0x1ef))/0x7)+parseInt(_0x4385e3(0x201))/0x8*(parseInt(_0x4385e3(0x1ff))/0x9)+parseInt(_0x4385e3(0x1fe))/0xa+-parseInt(_0x4385e3(0x1ed))/0xb;if(_0x5d8374===_0x59b6af)break;else _0x26e3f9['push'](_0x26e3f9['shift']());}catch(_0x57030f){_0x26e3f9['push'](_0x26e3f9['shift']());}}}(a321_0x4f05,0xc3708));import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0xd01420={}){const _0x44d708=a321_0x39a0,_0x8f3b16=installBuiltinSkill(_0xd01420);if(_0x8f3b16['ok']){const _0x294839=_0x8f3b16['changed']?_0x44d708(0x202):'already\x20current',_0x53b468=_0x8f3b16[_0x44d708(0x1f9)]?_0x44d708(0x1f8)+_0x8f3b16[_0x44d708(0x1f9)]:_0x44d708(0x1fd);return console[_0x44d708(0x1fa)]('Rabetbase\x20Built-in\x20Skill\x20'+_0x8f3b16[_0x44d708(0x1fb)]+'\x20'+_0x294839+_0x53b468),_0x8f3b16;}const _0x284936='[BUILTIN_SKILL_INSTALL_'+(_0x8f3b16['code']??'FAILED')+']\x20'+(_0x8f3b16[_0x44d708(0x1f0)]??_0x44d708(0x1fc))+'.\x20'+(_0x44d708(0x1f6)+_0x8f3b16[_0x44d708(0x200)]);if(_0x8f3b16['code']===_0x44d708(0x1ee))throw new Error(_0x284936);return console[_0x44d708(0x1f4)](_0x284936),_0x8f3b16;}function a321_0x39a0(_0x1f0468,_0x324cad){_0x1f0468=_0x1f0468-0x1ec;const _0x4f05b4=a321_0x4f05();let _0x39a053=_0x4f05b4[_0x1f0468];return _0x39a053;}function a321_0x4f05(){const _0x461c35=['\x20at\x20','installedPath','log','skillVersion','Installation\x20failed','\x20via\x20skills@latest','4412690fEGiXL','8971245vOxLuO','repairCommand','8bQvrAp','installed','10gJItQj','29811397yEWFwW','SOURCE_INVALID','1966321ipbbVY','error','18hYSlxS','291598knBTqf','14164DoBELk','warn','682985kFajaa','Repair\x20with:\x20','309hLEhJF'];a321_0x4f05=function(){return _0x461c35;};return a321_0x4f05();}
1
+ (function(_0x16953d,_0x462f8b){const _0x5dd02e=a321_0x2010,_0x56e6d5=_0x16953d();while(!![]){try{const _0x26ad9c=-parseInt(_0x5dd02e(0xcb))/0x1+parseInt(_0x5dd02e(0xd0))/0x2+parseInt(_0x5dd02e(0xc9))/0x3+parseInt(_0x5dd02e(0xbb))/0x4*(-parseInt(_0x5dd02e(0xca))/0x5)+parseInt(_0x5dd02e(0xd2))/0x6*(-parseInt(_0x5dd02e(0xc3))/0x7)+-parseInt(_0x5dd02e(0xc2))/0x8*(-parseInt(_0x5dd02e(0xcf))/0x9)+parseInt(_0x5dd02e(0xce))/0xa;if(_0x26ad9c===_0x462f8b)break;else _0x56e6d5['push'](_0x56e6d5['shift']());}catch(_0x123e2c){_0x56e6d5['push'](_0x56e6d5['shift']());}}}(a321_0x579d,0x3d8d8));function a321_0x2010(_0x20dc9a,_0x42c74c){_0x20dc9a=_0x20dc9a-0xba;const _0x579dee=a321_0x579d();let _0x2010f7=_0x579dee[_0x20dc9a];return _0x2010f7;}import{installBuiltinSkill}from'./skills/builtin-skill.js';function a321_0x579d(){const _0x158cb9=['160aeIXTV','3418933iCXXUd','SOURCE_INVALID','code','warn','FAILED','changed','54723uraIXH','10YbhDAj','476689gXKMcF','\x20at\x20','Repair\x20with:\x20','13187730bwMZVw','29664ykJDId','183760TazgRw','Installation\x20failed','6ZqhxOu','Rabetbase\x20Built-in\x20Skill\x20','555172PAhtAl','log','repairCommand','installed','installedPath','already\x20current','error'];a321_0x579d=function(){return _0x158cb9;};return a321_0x579d();}export async function runPostinstall(_0x5f30e5={}){const _0x4ba033=a321_0x2010,_0x310196=installBuiltinSkill(_0x5f30e5);if(_0x310196['ok']){const _0x11892c=_0x310196[_0x4ba033(0xc8)]?_0x4ba033(0xbe):_0x4ba033(0xc0),_0x59e7f4=_0x310196[_0x4ba033(0xbf)]?_0x4ba033(0xcc)+_0x310196['installedPath']:'\x20via\x20skills@latest';return console[_0x4ba033(0xbc)](_0x4ba033(0xba)+_0x310196['skillVersion']+'\x20'+_0x11892c+_0x59e7f4),_0x310196;}const _0x38dc83='[BUILTIN_SKILL_INSTALL_'+(_0x310196[_0x4ba033(0xc5)]??_0x4ba033(0xc7))+']\x20'+(_0x310196[_0x4ba033(0xc1)]??_0x4ba033(0xd1))+'.\x20'+(_0x4ba033(0xcd)+_0x310196[_0x4ba033(0xbd)]);if(_0x310196[_0x4ba033(0xc5)]===_0x4ba033(0xc4))throw new Error(_0x38dc83);return console[_0x4ba033(0xc6)](_0x38dc83),_0x310196;}
@@ -1 +1 @@
1
- (function(_0x5ee521,_0xd830cb){const _0x46111b=a322_0x8f19,_0x15021d=_0x5ee521();while(!![]){try{const _0xbc66b3=parseInt(_0x46111b(0xa1))/0x1+-parseInt(_0x46111b(0xa0))/0x2+parseInt(_0x46111b(0xa3))/0x3+parseInt(_0x46111b(0x9e))/0x4+parseInt(_0x46111b(0xa4))/0x5+-parseInt(_0x46111b(0x9b))/0x6+-parseInt(_0x46111b(0xa6))/0x7;if(_0xbc66b3===_0xd830cb)break;else _0x15021d['push'](_0x15021d['shift']());}catch(_0x2b4d7a){_0x15021d['push'](_0x15021d['shift']());}}}(a322_0x1570,0xd2b92));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x2f22b8,_0x25ae80,_0x5629b4){const _0xee682e=a322_0x8f19,_0x5e83b4=normalizeText(_0x2f22b8[_0xee682e(0x9f)],DESCRIPTION_MAX_LENGTH),_0x16501e=_0x5e83b4||normalizeText(defaultDescription(requireWriteRisk(_0x2f22b8),_0x25ae80),DESCRIPTION_MAX_LENGTH);return{'operation':_0x25ae80,'risk':requireWriteRisk(_0x2f22b8),'description':_0x16501e,..._0x5629b4?{'signal':_0x5629b4}:{}};}function requireWriteRisk(_0x769055){const _0x198e22=a322_0x8f19;if(_0x769055[_0x198e22(0x98)]===_0x198e22(0x99)||_0x769055['risk']==='high-risk-write')return _0x769055['risk'];throw new Error('Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.');}function a322_0x1570(){const _0x2ffabd=['confirmationDescription','3229072MwIlkd','270637hXFcWM','This\x20will\x20run\x20the\x20high-risk\x20write\x20','4282500PjLBUE','8152215fPVvvV','.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','17044979yvBRbU','high-risk-write','risk','write','replace','670542TWzYVN','string','trim','6783328CRTnrj'];a322_0x1570=function(){return _0x2ffabd;};return a322_0x1570();}function a322_0x8f19(_0x3c4139,_0x1083d6){_0x3c4139=_0x3c4139-0x97;const _0x1570d=a322_0x1570();let _0x8f1997=_0x1570d[_0x3c4139];return _0x8f1997;}function defaultDescription(_0x5a36db,_0x5d113c){const _0x5168a4=a322_0x8f19;if(_0x5a36db===_0x5168a4(0x97))return _0x5168a4(0xa2)+_0x5d113c+'.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.';return'This\x20will\x20run\x20the\x20write\x20'+_0x5d113c+_0x5168a4(0xa5);}function normalizeText(_0x2da1df,_0xab0b16){const _0x4ae7b2=a322_0x8f19;if(typeof _0x2da1df!==_0x4ae7b2(0x9c))return'';return _0x2da1df[_0x4ae7b2(0x9a)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x4ae7b2(0x9a)](/\s+/g,'\x20')[_0x4ae7b2(0x9d)]()['slice'](0x0,_0xab0b16);}
1
+ (function(_0xbbb769,_0x4f079d){const _0x52a71b=a322_0x4d8a,_0x1363ab=_0xbbb769();while(!![]){try{const _0x3bffa5=parseInt(_0x52a71b(0x135))/0x1+-parseInt(_0x52a71b(0x141))/0x2+-parseInt(_0x52a71b(0x13c))/0x3*(-parseInt(_0x52a71b(0x143))/0x4)+-parseInt(_0x52a71b(0x13e))/0x5+parseInt(_0x52a71b(0x138))/0x6*(-parseInt(_0x52a71b(0x13a))/0x7)+parseInt(_0x52a71b(0x13f))/0x8*(parseInt(_0x52a71b(0x13b))/0x9)+parseInt(_0x52a71b(0x13d))/0xa;if(_0x3bffa5===_0x4f079d)break;else _0x1363ab['push'](_0x1363ab['shift']());}catch(_0x2381bc){_0x1363ab['push'](_0x1363ab['shift']());}}}(a322_0x38d5,0x7b57e));const DESCRIPTION_MAX_LENGTH=0x1f4;function a322_0x38d5(){const _0x1aa495=['.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','827166MBhJdj','This\x20will\x20run\x20the\x20high-risk\x20write\x20','439844HwRHZj','replace','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','This\x20will\x20run\x20the\x20write\x20','.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','confirmationDescription','781543RFDODl','slice','risk','60vGwZky','string','599886wJfIxj','289719tltWFC','15TjZDEh','2923630mYanEg','366355RjsnDx','56wnynLt'];a322_0x38d5=function(){return _0x1aa495;};return a322_0x38d5();}export function buildRabetbaseConfirmationRequest(_0x2ed246,_0x5a4a55,_0xce23de){const _0x53ceee=a322_0x4d8a,_0x420fba=normalizeText(_0x2ed246[_0x53ceee(0x134)],DESCRIPTION_MAX_LENGTH),_0x4f34d1=_0x420fba||normalizeText(defaultDescription(requireWriteRisk(_0x2ed246),_0x5a4a55),DESCRIPTION_MAX_LENGTH);return{'operation':_0x5a4a55,'risk':requireWriteRisk(_0x2ed246),'description':_0x4f34d1,..._0xce23de?{'signal':_0xce23de}:{}};}function requireWriteRisk(_0x1ac988){const _0x1518a5=a322_0x4d8a;if(_0x1ac988['risk']==='write'||_0x1ac988[_0x1518a5(0x137)]==='high-risk-write')return _0x1ac988[_0x1518a5(0x137)];throw new Error(_0x1518a5(0x131));}function defaultDescription(_0x383386,_0x3c377e){const _0x48beb9=a322_0x4d8a;if(_0x383386==='high-risk-write')return _0x48beb9(0x142)+_0x3c377e+_0x48beb9(0x140);return _0x48beb9(0x132)+_0x3c377e+_0x48beb9(0x133);}function a322_0x4d8a(_0x541b2b,_0x3d9596){_0x541b2b=_0x541b2b-0x131;const _0x38d529=a322_0x38d5();let _0x4d8a97=_0x38d529[_0x541b2b];return _0x4d8a97;}function normalizeText(_0x4ba937,_0xfdbd7d){const _0x3570da=a322_0x4d8a;if(typeof _0x4ba937!==_0x3570da(0x139))return'';return _0x4ba937[_0x3570da(0x144)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x3570da(0x144)](/\s+/g,'\x20')['trim']()[_0x3570da(0x136)](0x0,_0xfdbd7d);}
@@ -1 +1 @@
1
- (function(_0x495a22,_0xf9fa52){const _0x4ecaa1=a323_0x2692,_0x1fd934=_0x495a22();while(!![]){try{const _0x27b42d=-parseInt(_0x4ecaa1(0x1c9))/0x1+-parseInt(_0x4ecaa1(0x1d1))/0x2*(parseInt(_0x4ecaa1(0x1be))/0x3)+parseInt(_0x4ecaa1(0x1cb))/0x4+parseInt(_0x4ecaa1(0x1c0))/0x5*(-parseInt(_0x4ecaa1(0x1c5))/0x6)+parseInt(_0x4ecaa1(0x1d3))/0x7*(parseInt(_0x4ecaa1(0x1bf))/0x8)+-parseInt(_0x4ecaa1(0x1c6))/0x9+-parseInt(_0x4ecaa1(0x1c4))/0xa*(-parseInt(_0x4ecaa1(0x1d2))/0xb);if(_0x27b42d===_0xf9fa52)break;else _0x1fd934['push'](_0x1fd934['shift']());}catch(_0x42508d){_0x1fd934['push'](_0x1fd934['shift']());}}}(a323_0x3745,0x4d927));export function canonicalRabetbaseOperation(_0x1b7f7d){const _0x571d27=a323_0x2692;return[_0x1b7f7d[_0x571d27(0x1ce)],..._0x1b7f7d[_0x571d27(0x1cd)]['trim']()[_0x571d27(0x1cf)](/\s+/)][_0x571d27(0x1c7)](Boolean)['join']('.');}function a323_0x2692(_0x41034b,_0xaf051b){_0x41034b=_0x41034b-0x1be;const _0x3745d2=a323_0x3745();let _0x2692de=_0x3745d2[_0x41034b];return _0x2692de;}export function createRabetbaseWriteMetadata(_0x473f7f,_0x101483,_0x225617,_0x1bc4ef){const _0x5d0cd5=a323_0x2692;if(_0x1bc4ef||_0x225617['ok']!==!![]||hasUnresolvedConflicts(_0x225617)||_0x473f7f[_0x5d0cd5(0x1c3)]!=='write'&&_0x473f7f[_0x5d0cd5(0x1c3)]!=='high-risk-write')return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x5d0cd5(0x1cc),'operation':_0x101483,'risk':_0x473f7f[_0x5d0cd5(0x1c3)]}}};}function hasUnresolvedConflicts(_0x40723f){const _0x6b98b6=a323_0x2692,_0x1c2190=_0x40723f[_0x6b98b6(0x1c2)];return Boolean(_0x1c2190&&typeof _0x1c2190===_0x6b98b6(0x1c1)&&!Array[_0x6b98b6(0x1c8)](_0x1c2190)&&Array[_0x6b98b6(0x1c8)](_0x1c2190['conflicts'])&&_0x1c2190[_0x6b98b6(0x1ca)][_0x6b98b6(0x1d0)]>0x0);}function a323_0x3745(){const _0x4995dc=['command','service','split','length','126VccEEd','376519PDviFF','1526eKUMsv','23799Ytcckb','14088RRpQiU','875IHOvdx','object','data','risk','340iJGmyV','16086YJTcQK','5391234Nnkoka','filter','isArray','168997KVFzkV','conflicts','2028112mMAqla','rabetbase.write.completed'];a323_0x3745=function(){return _0x4995dc;};return a323_0x3745();}
1
+ (function(_0x5f2e71,_0x42fac2){const _0x553f78=a323_0x24bd,_0x753662=_0x5f2e71();while(!![]){try{const _0x3c796f=-parseInt(_0x553f78(0x1dd))/0x1+parseInt(_0x553f78(0x1d0))/0x2+-parseInt(_0x553f78(0x1cd))/0x3+parseInt(_0x553f78(0x1d3))/0x4*(-parseInt(_0x553f78(0x1db))/0x5)+-parseInt(_0x553f78(0x1d6))/0x6*(parseInt(_0x553f78(0x1d5))/0x7)+-parseInt(_0x553f78(0x1d9))/0x8+parseInt(_0x553f78(0x1d2))/0x9;if(_0x3c796f===_0x42fac2)break;else _0x753662['push'](_0x753662['shift']());}catch(_0x4aed42){_0x753662['push'](_0x753662['shift']());}}}(a323_0x5f44,0x4bba3));function a323_0x5f44(){const _0x401379=['isArray','191715absLTJ','filter','trim','1691985mNBXwV','data','service','506046VcArWL','risk','17798049eRifoQ','43196RDuVYz','split','968737WUsRFh','18TtBtDY','length','write','4095552uwdOVD','command','110gPrivd'];a323_0x5f44=function(){return _0x401379;};return a323_0x5f44();}export function canonicalRabetbaseOperation(_0x5593f2){const _0x5cec30=a323_0x24bd;return[_0x5593f2[_0x5cec30(0x1cf)],..._0x5593f2[_0x5cec30(0x1da)][_0x5cec30(0x1cc)]()[_0x5cec30(0x1d4)](/\s+/)][_0x5cec30(0x1cb)](Boolean)['join']('.');}export function createRabetbaseWriteMetadata(_0x48d152,_0x7d9209,_0x50dbca,_0x5b7ae6){const _0xb1d0d9=a323_0x24bd;if(_0x5b7ae6||_0x50dbca['ok']!==!![]||hasUnresolvedConflicts(_0x50dbca)||_0x48d152[_0xb1d0d9(0x1d1)]!==_0xb1d0d9(0x1d8)&&_0x48d152[_0xb1d0d9(0x1d1)]!=='high-risk-write')return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':'rabetbase.write.completed','operation':_0x7d9209,'risk':_0x48d152[_0xb1d0d9(0x1d1)]}}};}function a323_0x24bd(_0x199ba7,_0x37b6fd){_0x199ba7=_0x199ba7-0x1cb;const _0x5f447e=a323_0x5f44();let _0x24bd35=_0x5f447e[_0x199ba7];return _0x24bd35;}function hasUnresolvedConflicts(_0x1163d3){const _0x37909c=a323_0x24bd,_0x110a35=_0x1163d3[_0x37909c(0x1ce)];return Boolean(_0x110a35&&typeof _0x110a35==='object'&&!Array[_0x37909c(0x1dc)](_0x110a35)&&Array[_0x37909c(0x1dc)](_0x110a35['conflicts'])&&_0x110a35['conflicts'][_0x37909c(0x1d7)]>0x0);}
@@ -1 +1 @@
1
- (function(_0xb8f894,_0x1a914c){const _0x50a2fb=a324_0x5bf3,_0x18ee1b=_0xb8f894();while(!![]){try{const _0x5566d5=-parseInt(_0x50a2fb(0x180))/0x1*(-parseInt(_0x50a2fb(0x187))/0x2)+-parseInt(_0x50a2fb(0x179))/0x3*(-parseInt(_0x50a2fb(0x162))/0x4)+parseInt(_0x50a2fb(0x170))/0x5*(-parseInt(_0x50a2fb(0x186))/0x6)+parseInt(_0x50a2fb(0x17b))/0x7+parseInt(_0x50a2fb(0x184))/0x8*(parseInt(_0x50a2fb(0x16c))/0x9)+parseInt(_0x50a2fb(0x169))/0xa+parseInt(_0x50a2fb(0x16d))/0xb*(-parseInt(_0x50a2fb(0x17e))/0xc);if(_0x5566d5===_0x1a914c)break;else _0x18ee1b['push'](_0x18ee1b['shift']());}catch(_0x4a2f7a){_0x18ee1b['push'](_0x18ee1b['shift']());}}}(a324_0x4352,0x76fdd));import{buildConfigFromFlags,initGlobalEnvironment,isRoutingRecoveryService}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';function a324_0x5bf3(_0x41d07f,_0xbe78cd){_0x41d07f=_0x41d07f-0x162;const _0x4352ee=a324_0x4352();let _0x5bf32a=_0x4352ee[_0x41d07f];return _0x5bf32a;}const defaultPresentation={'present'({result:_0x1e3a17,command:_0x2a3bab,risk:_0x5c9321,dryRun:_0x3497ae}){const _0x3997df=a324_0x5bf3;return JSON[_0x3997df(0x176)]({'ok':_0x1e3a17['ok'],'command':_0x2a3bab,'risk':_0x5c9321,..._0x3497ae?{'dryRun':!![]}:{},..._0x1e3a17[_0x3997df(0x16f)]!==undefined?{'data':_0x1e3a17[_0x3997df(0x16f)]}:{},..._0x1e3a17[_0x3997df(0x16e)]?{'message':_0x1e3a17[_0x3997df(0x16e)]}:{}});}};function a324_0x4352(){const _0x4d499c=['2269112ZQJoEs','reason','96xVSgSY','2VJOTMt','presentation','12164XqVOBD','Rabetbase\x20invocation\x20aborted.','dry-run','definition','riskLevel','risk','write','2084070yVKYUk','result','isNonInteractive','27aNjqua','1705mPRZbA','message','data','197035oUdZSi','yes','high-risk-write','dryRun','service','command','stringify','rawFlags','AbortError','105utPYLQ','format','1268267xAddUr','present','signal','92676ErGspF','args','968026Ynqbhb','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','execute','aborted'];a324_0x4352=function(){return _0x4d499c;};return a324_0x4352();}export async function invokeRabetbase(_0x320891,_0x2375ed){const _0x5a1227=a324_0x5bf3;throwIfAborted(_0x2375ed[_0x5a1227(0x17d)]);const _0x45ff45=await resolveRabetbaseInvocation(_0x320891),_0x1bea9c=canonicalRabetbaseOperation(_0x45ff45[_0x5a1227(0x165)]);return await confirmWriteBeforeQueue(_0x45ff45[_0x5a1227(0x165)],_0x45ff45[_0x5a1227(0x177)],_0x1bea9c,_0x2375ed),runSerialized(async()=>{const _0x2115fa=_0x5a1227,_0x54dafa={};try{throwIfAborted(_0x2375ed['signal']);const _0x5e3c49=buildConfigFromFlags(_0x45ff45[_0x2115fa(0x177)]);!isRoutingRecoveryService(_0x45ff45['definition'][_0x2115fa(0x174)])&&await initGlobalEnvironment(_0x5e3c49);const _0x37f4dc=createPipelineEnv(_0x5e3c49,{..._0x45ff45[_0x2115fa(0x177)],'yes':_0x45ff45[_0x2115fa(0x165)]['risk']===_0x2115fa(0x172)?!![]:_0x45ff45[_0x2115fa(0x177)][_0x2115fa(0x171)],'nonInteractive':!![]},_0x45ff45[_0x2115fa(0x17f)]);_0x37f4dc[_0x2115fa(0x16b)]=!![],_0x37f4dc[_0x2115fa(0x166)]='high-risk-write';const _0x55e19d=withAbortSignal(_0x45ff45[_0x2115fa(0x165)],_0x2375ed[_0x2115fa(0x17d)]),_0x52ab71=createRabetbaseRunnerAdapter({'formatOutput'(_0x53b463,_0x13cf3b){const _0x55c1c3=_0x2115fa;_0x54dafa[_0x55c1c3(0x16a)]=_0x53b463,_0x54dafa[_0x55c1c3(0x175)]=_0x13cf3b[_0x55c1c3(0x175)],_0x54dafa['risk']=_0x13cf3b['risk'],_0x54dafa[_0x55c1c3(0x17a)]=_0x13cf3b[_0x55c1c3(0x17a)],_0x54dafa[_0x55c1c3(0x173)]=_0x13cf3b[_0x55c1c3(0x173)]===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.');}});await runCommand(_0x55e19d,_0x37f4dc,_0x52ab71);if(!_0x54dafa[_0x2115fa(0x16a)]||!_0x54dafa[_0x2115fa(0x175)]||!_0x54dafa['risk']||!_0x54dafa[_0x2115fa(0x17a)])throw new Error(_0x2115fa(0x181));const _0x5af011=_0x54dafa[_0x2115fa(0x173)]===!![],_0x50369b=_0x2375ed[_0x2115fa(0x188)]??defaultPresentation,_0x209e05={'result':_0x54dafa['result'],'command':_0x54dafa[_0x2115fa(0x175)],'operation':_0x1bea9c,'risk':_0x54dafa['risk'],'format':_0x54dafa[_0x2115fa(0x17a)],'dryRun':_0x5af011},_0x3df954=createRabetbaseWriteMetadata(_0x45ff45[_0x2115fa(0x165)],_0x1bea9c,_0x54dafa['result'],_0x5af011);let _0x39c466;try{_0x39c466=await _0x50369b['present'](_0x209e05);}catch(_0x1ffe2e){if(!_0x3df954||_0x50369b===defaultPresentation)throw _0x1ffe2e;_0x39c466=await defaultPresentation[_0x2115fa(0x17c)](_0x209e05);}return{'operation':_0x1bea9c,'risk':_0x54dafa['risk'],'mode':_0x5af011?_0x2115fa(0x164):_0x2115fa(0x182),'result':_0x54dafa['result'],'output':_0x39c466,..._0x3df954?{'metadata':_0x3df954}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x3d6489,_0x1e2c3f,_0x3b7710,_0x51cd54){const _0x3c3946=a324_0x5bf3;if(_0x1e2c3f[_0x3c3946(0x173)]===!![]||_0x3d6489[_0x3c3946(0x167)]!==_0x3c3946(0x168)&&_0x3d6489[_0x3c3946(0x167)]!==_0x3c3946(0x172))return;await _0x51cd54['confirmation']['confirm'](buildRabetbaseConfirmationRequest(_0x3d6489,_0x3b7710,_0x51cd54[_0x3c3946(0x17d)]));}function withAbortSignal(_0x24e63e,_0x16caea){return{..._0x24e63e,async 'execute'(_0x4a4bf1){const _0x11154c=a324_0x5bf3;return throwIfAborted(_0x16caea),_0x24e63e[_0x11154c(0x182)]({..._0x4a4bf1,'signal':_0x16caea});}};}function throwIfAborted(_0x5517e4){const _0xddfc5c=a324_0x5bf3;if(_0x5517e4?.[_0xddfc5c(0x183)])throw _0x5517e4[_0xddfc5c(0x185)]instanceof Error?_0x5517e4[_0xddfc5c(0x185)]:new DOMException(_0xddfc5c(0x163),_0xddfc5c(0x178));}
1
+ (function(_0x2eb575,_0x481fc0){const _0x10faac=a324_0x3b0d,_0x279c4e=_0x2eb575();while(!![]){try{const _0xf9a7c6=-parseInt(_0x10faac(0xea))/0x1+parseInt(_0x10faac(0xe3))/0x2*(parseInt(_0x10faac(0xe9))/0x3)+parseInt(_0x10faac(0xd2))/0x4+-parseInt(_0x10faac(0xd5))/0x5*(parseInt(_0x10faac(0xde))/0x6)+-parseInt(_0x10faac(0xd6))/0x7*(-parseInt(_0x10faac(0xe5))/0x8)+-parseInt(_0x10faac(0xd8))/0x9*(parseInt(_0x10faac(0xe0))/0xa)+parseInt(_0x10faac(0xdb))/0xb;if(_0xf9a7c6===_0x481fc0)break;else _0x279c4e['push'](_0x279c4e['shift']());}catch(_0x268d6f){_0x279c4e['push'](_0x279c4e['shift']());}}}(a324_0xab47,0x3304a));import{buildConfigFromFlags,initGlobalEnvironment,isRoutingRecoveryService}from'../context.js';function a324_0x3b0d(_0x46d423,_0x4c4675){_0x46d423=_0x46d423-0xcd;const _0xab4724=a324_0xab47();let _0x3b0d4e=_0xab4724[_0x46d423];return _0x3b0d4e;}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:_0x1eadf4,command:_0x2258d9,risk:_0x44b991,dryRun:_0x3e219a}){const _0x49e2db=a324_0x3b0d;return JSON[_0x49e2db(0xd3)]({'ok':_0x1eadf4['ok'],'command':_0x2258d9,'risk':_0x44b991,..._0x3e219a?{'dryRun':!![]}:{},..._0x1eadf4[_0x49e2db(0xd4)]!==undefined?{'data':_0x1eadf4[_0x49e2db(0xd4)]}:{},..._0x1eadf4[_0x49e2db(0xdc)]?{'message':_0x1eadf4['message']}:{}});}};export async function invokeRabetbase(_0x3fce8c,_0x566e5b){const _0xbe9bc5=a324_0x3b0d;throwIfAborted(_0x566e5b[_0xbe9bc5(0xef)]);const _0x2a92a7=await resolveRabetbaseInvocation(_0x3fce8c),_0x2942a7=canonicalRabetbaseOperation(_0x2a92a7['definition']);return await confirmWriteBeforeQueue(_0x2a92a7[_0xbe9bc5(0xf0)],_0x2a92a7[_0xbe9bc5(0xcd)],_0x2942a7,_0x566e5b),runSerialized(async()=>{const _0x392afc=_0xbe9bc5,_0x2e7dd5={};try{throwIfAborted(_0x566e5b[_0x392afc(0xef)]);const _0x1c495e=buildConfigFromFlags(_0x2a92a7[_0x392afc(0xcd)]);!isRoutingRecoveryService(_0x2a92a7['definition']['service'])&&await initGlobalEnvironment(_0x1c495e);const _0x90b988=createPipelineEnv(_0x1c495e,{..._0x2a92a7[_0x392afc(0xcd)],'yes':_0x2a92a7['definition'][_0x392afc(0xdd)]===_0x392afc(0xec)?!![]:_0x2a92a7['rawFlags'][_0x392afc(0xe4)],'nonInteractive':!![]},_0x2a92a7[_0x392afc(0xe8)]);_0x90b988[_0x392afc(0xf2)]=!![],_0x90b988[_0x392afc(0xd1)]=_0x392afc(0xec);const _0x4339ba=withAbortSignal(_0x2a92a7['definition'],_0x566e5b[_0x392afc(0xef)]),_0x39a8bf=createRabetbaseRunnerAdapter({'formatOutput'(_0x4ce312,_0xd91bb4){const _0x13c875=_0x392afc;_0x2e7dd5['result']=_0x4ce312,_0x2e7dd5[_0x13c875(0xe1)]=_0xd91bb4['command'],_0x2e7dd5['risk']=_0xd91bb4['risk'],_0x2e7dd5[_0x13c875(0xd0)]=_0xd91bb4[_0x13c875(0xd0)],_0x2e7dd5[_0x13c875(0xeb)]=_0xd91bb4[_0x13c875(0xeb)]===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.');}});await runCommand(_0x4339ba,_0x90b988,_0x39a8bf);if(!_0x2e7dd5['result']||!_0x2e7dd5[_0x392afc(0xe1)]||!_0x2e7dd5['risk']||!_0x2e7dd5[_0x392afc(0xd0)])throw new Error(_0x392afc(0xce));const _0x52f284=_0x2e7dd5['dryRun']===!![],_0x417993=_0x566e5b['presentation']??defaultPresentation,_0x290ae7={'result':_0x2e7dd5[_0x392afc(0xdf)],'command':_0x2e7dd5[_0x392afc(0xe1)],'operation':_0x2942a7,'risk':_0x2e7dd5[_0x392afc(0xdd)],'format':_0x2e7dd5[_0x392afc(0xd0)],'dryRun':_0x52f284},_0x3e9e9f=createRabetbaseWriteMetadata(_0x2a92a7[_0x392afc(0xf0)],_0x2942a7,_0x2e7dd5[_0x392afc(0xdf)],_0x52f284);let _0x4ddfa5;try{_0x4ddfa5=await _0x417993[_0x392afc(0xd9)](_0x290ae7);}catch(_0x27f8d5){if(!_0x3e9e9f||_0x417993===defaultPresentation)throw _0x27f8d5;_0x4ddfa5=await defaultPresentation[_0x392afc(0xd9)](_0x290ae7);}return{'operation':_0x2942a7,'risk':_0x2e7dd5[_0x392afc(0xdd)],'mode':_0x52f284?_0x392afc(0xf1):_0x392afc(0xcf),'result':_0x2e7dd5[_0x392afc(0xdf)],'output':_0x4ddfa5,..._0x3e9e9f?{'metadata':_0x3e9e9f}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x2e0d97,_0x431dee,_0x26d300,_0x446eb){const _0x38a79e=a324_0x3b0d;if(_0x431dee[_0x38a79e(0xeb)]===!![]||_0x2e0d97[_0x38a79e(0xdd)]!==_0x38a79e(0xd7)&&_0x2e0d97['risk']!==_0x38a79e(0xec))return;await _0x446eb[_0x38a79e(0xda)][_0x38a79e(0xed)](buildRabetbaseConfirmationRequest(_0x2e0d97,_0x26d300,_0x446eb[_0x38a79e(0xef)]));}function withAbortSignal(_0x1b8bb4,_0x5c861b){return{..._0x1b8bb4,async 'execute'(_0x2feb50){return throwIfAborted(_0x5c861b),_0x1b8bb4['execute']({..._0x2feb50,'signal':_0x5c861b});}};}function a324_0xab47(){const _0x3cba4b=['698845mnunQh','write','142092VbfZhr','present','confirmation','1524941RdyBAC','message','risk','1167528ssUkWi','result','20lXJDaK','command','Rabetbase\x20invocation\x20aborted.','16GZUDyo','yes','16DftIBD','AbortError','aborted','args','80334PLFBIq','111769qReUhq','dryRun','high-risk-write','confirm','reason','signal','definition','dry-run','isNonInteractive','rawFlags','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','execute','format','riskLevel','755864hmiYui','stringify','data','10SJextB'];a324_0xab47=function(){return _0x3cba4b;};return a324_0xab47();}function throwIfAborted(_0x1fd34d){const _0x25fb8c=a324_0x3b0d;if(_0x1fd34d?.[_0x25fb8c(0xe7)])throw _0x1fd34d[_0x25fb8c(0xee)]instanceof Error?_0x1fd34d[_0x25fb8c(0xee)]:new DOMException(_0x25fb8c(0xe2),_0x25fb8c(0xe6));}
@@ -1 +1 @@
1
- function a325_0x2325(){const _0x4f1e25=['104RiRDQF','11JPusOA','4922100EbETmf','59366ZcUDKU','1093244ysGtPV','1657269VbyaZJ','catch','resolve','5rHkvlW','3414906Faqzza','4097130jUfcHh','352233NPPLcM'];a325_0x2325=function(){return _0x4f1e25;};return a325_0x2325();}const a325_0x555b6a=a325_0x4276;function a325_0x4276(_0x3eba6d,_0x50d323){_0x3eba6d=_0x3eba6d-0x1ee;const _0x2325d4=a325_0x2325();let _0x427688=_0x2325d4[_0x3eba6d];return _0x427688;}(function(_0x1e8faf,_0x3fcfba){const _0x24f8c6=a325_0x4276,_0x41ede8=_0x1e8faf();while(!![]){try{const _0x3b1cea=-parseInt(_0x24f8c6(0x1f2))/0x1*(-parseInt(_0x24f8c6(0x1f4))/0x2)+-parseInt(_0x24f8c6(0x1f6))/0x3+-parseInt(_0x24f8c6(0x1f5))/0x4*(parseInt(_0x24f8c6(0x1f9))/0x5)+-parseInt(_0x24f8c6(0x1ef))/0x6+parseInt(_0x24f8c6(0x1f0))/0x7*(parseInt(_0x24f8c6(0x1f1))/0x8)+parseInt(_0x24f8c6(0x1ee))/0x9+parseInt(_0x24f8c6(0x1f3))/0xa;if(_0x3b1cea===_0x3fcfba)break;else _0x41ede8['push'](_0x41ede8['shift']());}catch(_0x5c1ef4){_0x41ede8['push'](_0x41ede8['shift']());}}}(a325_0x2325,0x53ea3));let tail=Promise[a325_0x555b6a(0x1f8)]();export async function runSerialized(_0x22c7d0){const _0xea6659=a325_0x555b6a,_0x30857d=tail;let _0x1bb847;tail=new Promise(_0x3d6258=>{_0x1bb847=_0x3d6258;}),await _0x30857d[_0xea6659(0x1f7)](()=>undefined);try{return await _0x22c7d0();}finally{_0x1bb847();}}
1
+ function a325_0x7c69(){const _0x24ab50=['catch','31031980AGDZkT','1414056AkoocS','8218016DOXMLw','1FKVeDT','83406XsQyGT','73204OdMQcH','6851025liFnja','resolve','441IVAVeA','5339245lrlvFG','18tPyLkh'];a325_0x7c69=function(){return _0x24ab50;};return a325_0x7c69();}const a325_0x8ecb35=a325_0x3dda;(function(_0x353934,_0x20688c){const _0x4d3264=a325_0x3dda,_0x1a70bc=_0x353934();while(!![]){try{const _0x230482=-parseInt(_0x4d3264(0x1ce))/0x1*(parseInt(_0x4d3264(0x1cc))/0x2)+-parseInt(_0x4d3264(0x1c9))/0x3*(parseInt(_0x4d3264(0x1d0))/0x4)+-parseInt(_0x4d3264(0x1d4))/0x5+parseInt(_0x4d3264(0x1cf))/0x6*(-parseInt(_0x4d3264(0x1d3))/0x7)+parseInt(_0x4d3264(0x1cd))/0x8+-parseInt(_0x4d3264(0x1d1))/0x9+parseInt(_0x4d3264(0x1cb))/0xa;if(_0x230482===_0x20688c)break;else _0x1a70bc['push'](_0x1a70bc['shift']());}catch(_0x8ff5e5){_0x1a70bc['push'](_0x1a70bc['shift']());}}}(a325_0x7c69,0x94a0b));function a325_0x3dda(_0xd2fe77,_0x36d7ff){_0xd2fe77=_0xd2fe77-0x1c9;const _0x7c69f1=a325_0x7c69();let _0x3dda0c=_0x7c69f1[_0xd2fe77];return _0x3dda0c;}let tail=Promise[a325_0x8ecb35(0x1d2)]();export async function runSerialized(_0x2759dd){const _0x102998=a325_0x8ecb35,_0x4e5f93=tail;let _0x51f673;tail=new Promise(_0x482720=>{_0x51f673=_0x482720;}),await _0x4e5f93[_0x102998(0x1ca)](()=>undefined);try{return await _0x2759dd();}finally{_0x51f673();}}
@@ -1 +1 @@
1
- (function(_0x34641c,_0xb6be57){const _0x1f0ba3=a326_0x5e0f,_0x2d4d59=_0x34641c();while(!![]){try{const _0x4be9ea=-parseInt(_0x1f0ba3(0x14a))/0x1*(parseInt(_0x1f0ba3(0x13f))/0x2)+parseInt(_0x1f0ba3(0x13d))/0x3+-parseInt(_0x1f0ba3(0x140))/0x4+parseInt(_0x1f0ba3(0x14e))/0x5*(-parseInt(_0x1f0ba3(0x151))/0x6)+parseInt(_0x1f0ba3(0x14c))/0x7*(parseInt(_0x1f0ba3(0x146))/0x8)+parseInt(_0x1f0ba3(0x145))/0x9*(parseInt(_0x1f0ba3(0x142))/0xa)+-parseInt(_0x1f0ba3(0x152))/0xb;if(_0x4be9ea===_0xb6be57)break;else _0x2d4d59['push'](_0x2d4d59['shift']());}catch(_0x39587f){_0x2d4d59['push'](_0x2d4d59['shift']());}}}(a326_0x119a,0x2371e));import a326_0x24d08b from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a326_0x119a(){const _0x367144=['wildcardDef','2324110MoftZj','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','unknownCommand','9QYlziM','1016CbwQna','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','validation','input','3519PXbXlS','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','15988GWofIa','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','115XdVGzK','message','slice','43506CiVTWX','1682483CgTfjP','flags','539652kKQJfg','defaultCommand','4mSkOlM','921668mmfoil'];a326_0x119a=function(){return _0x367144;};return a326_0x119a();}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';function a326_0x5e0f(_0xb92fa5,_0x5d21f4){_0xb92fa5=_0xb92fa5-0x13c;const _0x119a72=a326_0x119a();let _0x5e0f25=_0x119a72[_0xb92fa5];return _0x5e0f25;}export async function resolveRabetbaseInvocation(_0x563405){const _0x55a95d=a326_0x5e0f,_0x3bf14a=a326_0x24d08b('',{'importMeta':import.meta,'argv':[..._0x563405],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x16013f=[..._0x3bf14a[_0x55a95d(0x149)]],_0x1ee00f=_0x3bf14a[_0x55a95d(0x13c)],_0x5d164f=_0x16013f[0x0];if(!_0x5d164f)throw CliErrors[_0x55a95d(0x148)](_0x55a95d(0x14d));const _0x48af5f=resolveRemovedCommand(_0x5d164f,_0x16013f[0x1]);if(_0x48af5f)throw CliErrors['validation'](_0x48af5f[_0x55a95d(0x14f)],_0x48af5f['hint']);if(_0x5d164f==='run')throw CliErrors[_0x55a95d(0x148)](_0x55a95d(0x147),_0x55a95d(0x143));if(!isKnownService(_0x5d164f))throw CliErrors['unknownCommand'](_0x16013f['join']('\x20'));const _0x27e2d3=getServiceEntry(_0x5d164f),_0x3b04fc=_0x16013f[0x1],_0x2296dd=_0x3b04fc||_0x27e2d3[_0x55a95d(0x13e)];if(!_0x2296dd){if(_0x27e2d3[_0x55a95d(0x141)])return{'definition':_0x27e2d3[_0x55a95d(0x141)],'rawFlags':_0x1ee00f,'args':[]};throw CliErrors[_0x55a95d(0x148)](_0x55a95d(0x14b)+_0x5d164f+'\x22.');}const _0x153660=findDefinition(_0x5d164f,_0x2296dd);if(_0x153660)return assertSupportedCommandFlags(_0x153660,_0x1ee00f),{'definition':_0x153660,'rawFlags':_0x1ee00f,'args':_0x16013f['slice'](0x2)};if(_0x27e2d3['wildcardDef'])return{'definition':_0x27e2d3[_0x55a95d(0x141)],'rawFlags':_0x1ee00f,'args':[_0x2296dd,..._0x16013f[_0x55a95d(0x150)](0x2)]};throw CliErrors[_0x55a95d(0x144)](_0x5d164f+'\x20'+_0x2296dd);}
1
+ (function(_0x16b980,_0x4d23a1){const _0x40ffd6=a326_0x17de,_0x3a2239=_0x16b980();while(!![]){try{const _0x5aac3d=-parseInt(_0x40ffd6(0x177))/0x1+parseInt(_0x40ffd6(0x170))/0x2+-parseInt(_0x40ffd6(0x173))/0x3+parseInt(_0x40ffd6(0x175))/0x4*(parseInt(_0x40ffd6(0x17b))/0x5)+parseInt(_0x40ffd6(0x178))/0x6+parseInt(_0x40ffd6(0x16d))/0x7+-parseInt(_0x40ffd6(0x179))/0x8*(parseInt(_0x40ffd6(0x17a))/0x9);if(_0x5aac3d===_0x4d23a1)break;else _0x3a2239['push'](_0x3a2239['shift']());}catch(_0x41a8c6){_0x3a2239['push'](_0x3a2239['shift']());}}}(a326_0x11a7,0x25b37));import a326_0x4b9040 from'meow';function a326_0x11a7(){const _0x11c186=['1518120ZQEfFI','232KtSfay','122022qBVZHS','5HbLZiu','slice','run','wildcardDef','input','unknownCommand','validation','1889839qnJQOK','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','482910ZYCSpU','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','defaultCommand','837147uVsKoE','flags','570628TpaKyO','hint','80455wnTdck'];a326_0x11a7=function(){return _0x11c186;};return a326_0x11a7();}import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a326_0x17de(_0x4f7b7c,_0x269280){_0x4f7b7c=_0x4f7b7c-0x16a;const _0x11a794=a326_0x11a7();let _0x17de75=_0x11a794[_0x4f7b7c];return _0x17de75;}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';export async function resolveRabetbaseInvocation(_0xa567f7){const _0x112301=a326_0x17de,_0x577fe5=a326_0x4b9040('',{'importMeta':import.meta,'argv':[..._0xa567f7],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x79a96f=[..._0x577fe5[_0x112301(0x16a)]],_0x3e3e02=_0x577fe5[_0x112301(0x174)],_0x24e359=_0x79a96f[0x0];if(!_0x24e359)throw CliErrors[_0x112301(0x16c)](_0x112301(0x16e));const _0x2b0510=resolveRemovedCommand(_0x24e359,_0x79a96f[0x1]);if(_0x2b0510)throw CliErrors[_0x112301(0x16c)](_0x2b0510['message'],_0x2b0510[_0x112301(0x176)]);if(_0x24e359===_0x112301(0x17d))throw CliErrors[_0x112301(0x16c)](_0x112301(0x16f),_0x112301(0x171));if(!isKnownService(_0x24e359))throw CliErrors[_0x112301(0x16b)](_0x79a96f['join']('\x20'));const _0x428066=getServiceEntry(_0x24e359),_0x440265=_0x79a96f[0x1],_0x1e719=_0x440265||_0x428066[_0x112301(0x172)];if(!_0x1e719){if(_0x428066[_0x112301(0x17e)])return{'definition':_0x428066[_0x112301(0x17e)],'rawFlags':_0x3e3e02,'args':[]};throw CliErrors['validation']('Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x24e359+'\x22.');}const _0xb3171a=findDefinition(_0x24e359,_0x1e719);if(_0xb3171a)return assertSupportedCommandFlags(_0xb3171a,_0x3e3e02),{'definition':_0xb3171a,'rawFlags':_0x3e3e02,'args':_0x79a96f[_0x112301(0x17c)](0x2)};if(_0x428066['wildcardDef'])return{'definition':_0x428066[_0x112301(0x17e)],'rawFlags':_0x3e3e02,'args':[_0x1e719,..._0x79a96f['slice'](0x2)]};throw CliErrors[_0x112301(0x16b)](_0x24e359+'\x20'+_0x1e719);}
@@ -1 +1 @@
1
- function a328_0x490d(_0x7478e1,_0x1ea350){_0x7478e1=_0x7478e1-0x1dd;const _0x4d7861=a328_0x4d78();let _0x490d8c=_0x4d7861[_0x7478e1];return _0x490d8c;}const a328_0x3da4fc=a328_0x490d;(function(_0x275be4,_0x5f0d0a){const _0x4a0467=a328_0x490d,_0x11a732=_0x275be4();while(!![]){try{const _0x33c718=parseInt(_0x4a0467(0x1dd))/0x1+-parseInt(_0x4a0467(0x1f2))/0x2+-parseInt(_0x4a0467(0x1eb))/0x3*(parseInt(_0x4a0467(0x1e9))/0x4)+parseInt(_0x4a0467(0x203))/0x5*(-parseInt(_0x4a0467(0x1f5))/0x6)+-parseInt(_0x4a0467(0x211))/0x7+-parseInt(_0x4a0467(0x218))/0x8+-parseInt(_0x4a0467(0x209))/0x9*(-parseInt(_0x4a0467(0x1e0))/0xa);if(_0x33c718===_0x5f0d0a)break;else _0x11a732['push'](_0x11a732['shift']());}catch(_0x42ca54){_0x11a732['push'](_0x11a732['shift']());}}}(a328_0x4d78,0x4bc4d));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{debuglog}from'node:util';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',debug=debuglog(a328_0x3da4fc(0x1ed));function a328_0x4d78(){const _0x16de95=['18mGFCzV','skillVersion','package.json','unverifiable','match','absent','\x20automatically\x20selected\x20installation\x20target(s)\x20could\x20not\x20be\x20installed.','skills','root','parse','name','current','utf8','update','261260QggLdW','SKILL.md','installedPath','digest','split','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','9KocucM','log','manifest','every','reason','error','Symbolic\x20link\x20is\x20not\x20allowed:\x20','isFile','2016959zjTWLi','hex','skills@latest\x20exited\x20','\x20verified;\x20','rabetbase.manifest.json','INSTALL_FAILED','message','3965112jMQUbj','Unsupported\x20Skill\x20entry:\x20','flatMap','startsWith','packageVersion','Installed\x20Skill\x20state\x20is\x20','length','packageRoot','path','Unsafe\x20manifest\x20path:\x20','status','500147uNoaud','trim','present','12742780vJumxQ','files','includes','home','version_mismatch','partialFailure','isSymbolicLink','VERIFY_FAILED','isDirectory','8248VbbYRi','missing','459ACPgmt','state','rabetbase-skills','sha256','SOURCE_INVALID','count','version','416116nTyvuJ',':\x5cs*(.+)$','unknown'];a328_0x4d78=function(){return _0x16de95;};return a328_0x4d78();}function frontmatterValue(_0x1bca89,_0xbb5503){const _0x3e8ece=a328_0x3da4fc;return _0x1bca89[_0x3e8ece(0x1f9)](new RegExp('^'+_0xbb5503+_0x3e8ece(0x1f3),'m'))?.[0x1]?.[_0x3e8ece(0x1de)]()??'';}function listFiles(_0x36b9be,_0x121d0f=_0x36b9be){const _0x2b6b5f=a328_0x3da4fc;return readdirSync(_0x121d0f,{'withFileTypes':!![]})[_0x2b6b5f(0x21a)](_0x49b2f2=>{const _0x143973=_0x2b6b5f,_0x295575=join(_0x121d0f,_0x49b2f2['name']),_0x12d930=lstatSync(_0x295575);if(_0x12d930[_0x143973(0x1e6)]())throw new Error(_0x143973(0x20f)+_0x295575);if(_0x12d930[_0x143973(0x1e8)]())return listFiles(_0x36b9be,_0x295575);if(!_0x12d930[_0x143973(0x210)]())throw new Error(_0x143973(0x219)+_0x295575);return[relative(_0x36b9be,_0x295575)[_0x143973(0x207)](sep)['join']('/')];})['sort']((_0x44e78c,_0x4f9a7d)=>_0x44e78c<_0x4f9a7d?-0x1:_0x44e78c>_0x4f9a7d?0x1:0x0);}function digestFiles(_0x291bcb,_0x2725f2){const _0x1f46c0=a328_0x3da4fc,_0x1de8bf=createHash(_0x1f46c0(0x1ee));for(const _0x24cee8 of _0x2725f2){if(_0x24cee8[_0x1f46c0(0x21b)]('/')||_0x24cee8[_0x1f46c0(0x207)]('/')[_0x1f46c0(0x1e2)]('..')||_0x24cee8[_0x1f46c0(0x1e2)]('\x5c'))throw new Error(_0x1f46c0(0x221)+_0x24cee8);_0x1de8bf[_0x1f46c0(0x202)](_0x24cee8),_0x1de8bf[_0x1f46c0(0x202)]('\x00'),_0x1de8bf[_0x1f46c0(0x202)](readFileSync(join(_0x291bcb,..._0x24cee8[_0x1f46c0(0x207)]('/')))),_0x1de8bf['update']('\x00');}return _0x1de8bf[_0x1f46c0(0x206)](_0x1f46c0(0x212));}function sameFiles(_0x494f6b,_0x45825d){const _0x4be048=a328_0x3da4fc;return _0x494f6b[_0x4be048(0x21e)]===_0x45825d[_0x4be048(0x21e)]&&_0x494f6b[_0x4be048(0x20c)]((_0x5e5b26,_0x9f75fe)=>_0x5e5b26===_0x45825d[_0x9f75fe]);}function readSource(_0xcc7090){const _0x59e55c=a328_0x3da4fc,_0x1562e6=JSON['parse'](readFileSync(join(_0xcc7090,_0x59e55c(0x1f7)),_0x59e55c(0x201))),_0x5d81c6=JSON[_0x59e55c(0x1fe)](readFileSync(join(_0xcc7090,_0x59e55c(0x1fc),_0x59e55c(0x215)),_0x59e55c(0x201))),_0x2c9bc5=join(_0xcc7090,_0x59e55c(0x1fc),SKILL_NAME),_0x2e366f=frontmatterValue(readFileSync(join(_0x2c9bc5,'SKILL.md'),_0x59e55c(0x201)),'version'),_0x5242f5=listFiles(_0x2c9bc5);if(_0x5d81c6['schemaVersion']!==0x1||_0x5d81c6[_0x59e55c(0x1ff)]!==SKILL_NAME||!_0x1562e6[_0x59e55c(0x1f1)]||_0x5d81c6[_0x59e55c(0x21c)]!==_0x1562e6['version']||_0x5d81c6[_0x59e55c(0x1f6)]!==_0x1562e6[_0x59e55c(0x1f1)]||_0x2e366f!==_0x1562e6[_0x59e55c(0x1f1)]||!sameFiles(_0x5242f5,_0x5d81c6[_0x59e55c(0x1e1)])||digestFiles(_0x2c9bc5,_0x5242f5)!==_0x5d81c6[_0x59e55c(0x206)])throw new Error(_0x59e55c(0x208));return{'packageVersion':_0x1562e6['version'],'skillVersion':_0x2e366f,'root':_0x2c9bc5,'manifest':_0x5d81c6};}function installedSkillPath(_0x329b3b){const _0x2316df=a328_0x3da4fc,_0x44d489=resolveInstalledSkill(SKILL_NAME,{'home':_0x329b3b});if(_0x44d489['state']===_0x2316df(0x1df))return{'state':'present','path':dirname(_0x44d489[_0x2316df(0x220)])};if(_0x44d489['state']===_0x2316df(0x1fa))return{'state':'missing'};return{'state':_0x2316df(0x1f8),'reason':_0x44d489[_0x2316df(0x20d)]};}export function inspectInstalledBuiltinSkillVersion(_0x5f154a,_0x1829ab={}){const _0x4e2be5=a328_0x3da4fc,_0x57ca6d=installedSkillPath(_0x1829ab['home']??homedir());if(_0x57ca6d[_0x4e2be5(0x1ec)]===_0x4e2be5(0x1ea))return{'state':_0x4e2be5(0x1ea),'expectedVersion':_0x5f154a,'repairCommand':REPAIR_COMMAND};if(_0x57ca6d['state']===_0x4e2be5(0x1f8))return{'state':_0x4e2be5(0x1f8),'expectedVersion':_0x5f154a,'reason':_0x57ca6d[_0x4e2be5(0x20d)],'repairCommand':REPAIR_COMMAND};try{const _0x3e3bc7=frontmatterValue(readFileSync(join(_0x57ca6d[_0x4e2be5(0x220)],_0x4e2be5(0x204)),_0x4e2be5(0x201)),_0x4e2be5(0x1f1));return{'state':_0x3e3bc7===_0x5f154a?_0x4e2be5(0x200):'version_mismatch','expectedVersion':_0x5f154a,'skillVersion':_0x3e3bc7,'installedPath':_0x57ca6d[_0x4e2be5(0x220)],'repairCommand':REPAIR_COMMAND};}catch(_0x34bace){return{'state':'unverifiable','expectedVersion':_0x5f154a,'installedPath':_0x57ca6d[_0x4e2be5(0x220)],'reason':_0x34bace instanceof Error?_0x34bace[_0x4e2be5(0x217)]:String(_0x34bace),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x52007b={}){const _0x49ca57=a328_0x3da4fc,_0x39d8c4=_0x52007b[_0x49ca57(0x21f)]??DEFAULT_PACKAGE_ROOT;let _0x3310d0;try{_0x3310d0=readSource(_0x39d8c4);}catch(_0x665433){return{'state':_0x49ca57(0x1f8),'packageVersion':_0x49ca57(0x1f4),'reason':_0x665433 instanceof Error?_0x665433[_0x49ca57(0x217)]:String(_0x665433),'repairCommand':REPAIR_COMMAND};}const _0x5e8fe8=installedSkillPath(_0x52007b[_0x49ca57(0x1e3)]??homedir());if(_0x5e8fe8['state']===_0x49ca57(0x1ea))return{'state':_0x49ca57(0x1ea),'packageVersion':_0x3310d0[_0x49ca57(0x21c)],'repairCommand':REPAIR_COMMAND};if(_0x5e8fe8[_0x49ca57(0x1ec)]===_0x49ca57(0x1f8))return{'state':_0x49ca57(0x1f8),'packageVersion':_0x3310d0[_0x49ca57(0x21c)],'reason':_0x5e8fe8['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x3b14f3=frontmatterValue(readFileSync(join(_0x5e8fe8[_0x49ca57(0x220)],_0x49ca57(0x204)),_0x49ca57(0x201)),'version');if(_0x3b14f3!==_0x3310d0[_0x49ca57(0x1f6)])return{'state':_0x49ca57(0x1e4),'packageVersion':_0x3310d0[_0x49ca57(0x21c)],'skillVersion':_0x3b14f3,'installedPath':_0x5e8fe8['path'],'repairCommand':REPAIR_COMMAND};const _0x3c58bb=listFiles(_0x5e8fe8[_0x49ca57(0x220)]),_0x5621a9=digestFiles(_0x5e8fe8['path'],_0x3c58bb);return{'state':sameFiles(_0x3c58bb,_0x3310d0[_0x49ca57(0x20b)][_0x49ca57(0x1e1)])&&_0x5621a9===_0x3310d0[_0x49ca57(0x20b)][_0x49ca57(0x206)]?_0x49ca57(0x200):'content_mismatch','packageVersion':_0x3310d0['packageVersion'],'skillVersion':_0x3b14f3,'installedPath':_0x5e8fe8[_0x49ca57(0x220)],'digest':_0x5621a9,'repairCommand':REPAIR_COMMAND};}catch(_0x4a255d){return{'state':_0x49ca57(0x1f8),'packageVersion':_0x3310d0[_0x49ca57(0x21c)],'installedPath':_0x5e8fe8[_0x49ca57(0x220)],'reason':_0x4a255d instanceof Error?_0x4a255d[_0x49ca57(0x217)]:String(_0x4a255d),'repairCommand':REPAIR_COMMAND};}}function failure(_0xdabeb5,_0x5e62e8,_0x81ef02,_0x100384){const _0x33f9ea=a328_0x3da4fc;return{'ok':![],'code':_0xdabeb5,'packageVersion':_0x5e62e8[_0x33f9ea(0x21c)],'skillVersion':_0x5e62e8[_0x33f9ea(0x1f6)],'installedPath':_0x100384,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x81ef02 instanceof Error?_0x81ef02[_0x33f9ea(0x217)]:String(_0x81ef02)};}export function installBuiltinSkill(_0x2cccfe={}){const _0x17983f=a328_0x3da4fc,_0x104042=_0x2cccfe[_0x17983f(0x21f)]??DEFAULT_PACKAGE_ROOT,_0x383de2=_0x2cccfe[_0x17983f(0x1e3)]??homedir();let _0x16c6df;try{_0x16c6df=readSource(_0x104042);}catch(_0x21d457){return failure(_0x17983f(0x1ef),{'packageVersion':_0x17983f(0x1f4),'skillVersion':_0x17983f(0x1f4)},_0x21d457);}const _0x4926a6=inspectBuiltinSkill({'packageRoot':_0x104042,'home':_0x383de2}),_0x28b6e8=runNpxSkillsAddGlobal(_0x104042,_0x16c6df[_0x17983f(0x1fd)],{'stdio':_0x2cccfe['stdio']??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0x383de2}});if(_0x28b6e8['skipped'])return{'ok':!![],'packageVersion':_0x16c6df[_0x17983f(0x21c)],'skillVersion':_0x16c6df[_0x17983f(0x1f6)],'installedPath':_0x4926a6[_0x17983f(0x205)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x28b6e8['ok'])return failure(_0x17983f(0x216),_0x16c6df,_0x28b6e8[_0x17983f(0x20e)]??_0x17983f(0x213)+_0x28b6e8[_0x17983f(0x222)]);const _0x2092a5=inspectBuiltinSkill({'packageRoot':_0x104042,'home':_0x383de2});if(_0x2092a5[_0x17983f(0x1ec)]!==_0x17983f(0x200)){const _0x56f59e=_0x2092a5['reason']??_0x17983f(0x21d)+_0x2092a5[_0x17983f(0x1ec)];return failure(_0x17983f(0x1e7),_0x16c6df,_0x28b6e8[_0x17983f(0x1e5)]?_0x56f59e+'\x0a'+_0x28b6e8['partialFailure']['output']:_0x56f59e,_0x2092a5[_0x17983f(0x205)]);}return _0x28b6e8[_0x17983f(0x1e5)]&&(debug('Installer\x20reported\x20partial\x20target\x20failures:\x0a%s',_0x28b6e8['partialFailure']['output']),console[_0x17983f(0x20a)]('CLI\x20Built-in\x20Skill\x20'+_0x16c6df['skillVersion']+_0x17983f(0x214)+_0x28b6e8[_0x17983f(0x1e5)][_0x17983f(0x1f0)]+_0x17983f(0x1fb))),{'ok':!![],'packageVersion':_0x16c6df[_0x17983f(0x21c)],'skillVersion':_0x16c6df[_0x17983f(0x1f6)],'installedPath':_0x2092a5[_0x17983f(0x205)],'changed':_0x4926a6[_0x17983f(0x1ec)]!==_0x17983f(0x200),'repairCommand':REPAIR_COMMAND};}
1
+ function a328_0x4304(_0x43f2cc,_0x5edca6){_0x43f2cc=_0x43f2cc-0x15a;const _0x510996=a328_0x5109();let _0x43041c=_0x510996[_0x43f2cc];return _0x43041c;}const a328_0x2a65a0=a328_0x4304;(function(_0x50ee09,_0x56678f){const _0x4ede26=a328_0x4304,_0x16d938=_0x50ee09();while(!![]){try{const _0x33ea3f=-parseInt(_0x4ede26(0x16c))/0x1*(parseInt(_0x4ede26(0x163))/0x2)+-parseInt(_0x4ede26(0x16b))/0x3*(-parseInt(_0x4ede26(0x19b))/0x4)+parseInt(_0x4ede26(0x196))/0x5*(parseInt(_0x4ede26(0x15d))/0x6)+-parseInt(_0x4ede26(0x178))/0x7*(parseInt(_0x4ede26(0x176))/0x8)+-parseInt(_0x4ede26(0x172))/0x9+parseInt(_0x4ede26(0x188))/0xa+-parseInt(_0x4ede26(0x168))/0xb*(-parseInt(_0x4ede26(0x186))/0xc);if(_0x33ea3f===_0x56678f)break;else _0x16d938['push'](_0x16d938['shift']());}catch(_0x4780d7){_0x16d938['push'](_0x16d938['shift']());}}}(a328_0x5109,0xd28e7));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{debuglog}from'node:util';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=a328_0x2a65a0(0x198),SKILL_NAME='rabetbase',debug=debuglog(a328_0x2a65a0(0x173));function a328_0x5109(){const _0x4f5fa9=['33aXxPNk','present','includes','620067lVcwRA','944158YUKGgs','home','digest','utf8','SKILL.md','version','4036221uoEVQC','rabetbase-skills','output','state','856232QtGSbb','skills@latest\x20exited\x20','112uEJusB','pipe','split','Installed\x20Skill\x20state\x20is\x20','packageRoot','packageVersion','skills','\x20verified;\x20','message','INSTALL_FAILED','Symbolic\x20link\x20is\x20not\x20allowed:\x20','path','skillVersion','schemaVersion','1434792CyYGtS','error','15646890OgDIFJ','isFile','root','unknown','hex','version_mismatch','count','current','status','name','join','unverifiable','missing','installedPath','1615smMgvr','reason','rabetbase\x20cli-skill\x20install','flatMap','startsWith','16WrfiRh','SOURCE_INVALID','match','update','\x20automatically\x20selected\x20installation\x20target(s)\x20could\x20not\x20be\x20installed.','package.json','log','files','22614COpbAi','isSymbolicLink','length','partialFailure','sort','isDirectory','2PyKawR','manifest','VERIFY_FAILED','Installer\x20reported\x20partial\x20target\x20failures:\x0a%s','sha256'];a328_0x5109=function(){return _0x4f5fa9;};return a328_0x5109();}function frontmatterValue(_0x467b73,_0x2115ff){const _0x2f0ee7=a328_0x2a65a0;return _0x467b73[_0x2f0ee7(0x19d)](new RegExp('^'+_0x2115ff+':\x5cs*(.+)$','m'))?.[0x1]?.['trim']()??'';}function listFiles(_0x5a951b,_0x417c51=_0x5a951b){const _0x171fa3=a328_0x2a65a0;return readdirSync(_0x417c51,{'withFileTypes':!![]})[_0x171fa3(0x199)](_0x5b8267=>{const _0x518cc9=_0x171fa3,_0x394d88=join(_0x417c51,_0x5b8267[_0x518cc9(0x191)]),_0x327a4a=lstatSync(_0x394d88);if(_0x327a4a[_0x518cc9(0x15e)]())throw new Error(_0x518cc9(0x182)+_0x394d88);if(_0x327a4a[_0x518cc9(0x162)]())return listFiles(_0x5a951b,_0x394d88);if(!_0x327a4a[_0x518cc9(0x189)]())throw new Error('Unsupported\x20Skill\x20entry:\x20'+_0x394d88);return[relative(_0x5a951b,_0x394d88)[_0x518cc9(0x17a)](sep)[_0x518cc9(0x192)]('/')];})[_0x171fa3(0x161)]((_0x1e04d3,_0x47bb6f)=>_0x1e04d3<_0x47bb6f?-0x1:_0x1e04d3>_0x47bb6f?0x1:0x0);}function digestFiles(_0x1bcf37,_0x15877e){const _0x4aa501=a328_0x2a65a0,_0x1559c0=createHash(_0x4aa501(0x167));for(const _0x235b15 of _0x15877e){if(_0x235b15[_0x4aa501(0x19a)]('/')||_0x235b15[_0x4aa501(0x17a)]('/')['includes']('..')||_0x235b15[_0x4aa501(0x16a)]('\x5c'))throw new Error('Unsafe\x20manifest\x20path:\x20'+_0x235b15);_0x1559c0[_0x4aa501(0x19e)](_0x235b15),_0x1559c0['update']('\x00'),_0x1559c0[_0x4aa501(0x19e)](readFileSync(join(_0x1bcf37,..._0x235b15['split']('/')))),_0x1559c0[_0x4aa501(0x19e)]('\x00');}return _0x1559c0[_0x4aa501(0x16e)](_0x4aa501(0x18c));}function sameFiles(_0xd9e2a5,_0x334a24){const _0x7f784b=a328_0x2a65a0;return _0xd9e2a5[_0x7f784b(0x15f)]===_0x334a24['length']&&_0xd9e2a5['every']((_0x3c3279,_0x5da547)=>_0x3c3279===_0x334a24[_0x5da547]);}function readSource(_0x46500c){const _0x54b13f=a328_0x2a65a0,_0x46bc7e=JSON['parse'](readFileSync(join(_0x46500c,_0x54b13f(0x15a)),'utf8')),_0xcb2c31=JSON['parse'](readFileSync(join(_0x46500c,_0x54b13f(0x17e),'rabetbase.manifest.json'),_0x54b13f(0x16f))),_0x15bf93=join(_0x46500c,_0x54b13f(0x17e),SKILL_NAME),_0x18d8f9=frontmatterValue(readFileSync(join(_0x15bf93,_0x54b13f(0x170)),_0x54b13f(0x16f)),_0x54b13f(0x171)),_0x3539c5=listFiles(_0x15bf93);if(_0xcb2c31[_0x54b13f(0x185)]!==0x1||_0xcb2c31[_0x54b13f(0x191)]!==SKILL_NAME||!_0x46bc7e[_0x54b13f(0x171)]||_0xcb2c31[_0x54b13f(0x17d)]!==_0x46bc7e[_0x54b13f(0x171)]||_0xcb2c31[_0x54b13f(0x184)]!==_0x46bc7e[_0x54b13f(0x171)]||_0x18d8f9!==_0x46bc7e['version']||!sameFiles(_0x3539c5,_0xcb2c31[_0x54b13f(0x15c)])||digestFiles(_0x15bf93,_0x3539c5)!==_0xcb2c31[_0x54b13f(0x16e)])throw new Error('Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest');return{'packageVersion':_0x46bc7e[_0x54b13f(0x171)],'skillVersion':_0x18d8f9,'root':_0x15bf93,'manifest':_0xcb2c31};}function installedSkillPath(_0x2217f9){const _0x18d71c=a328_0x2a65a0,_0x5de06b=resolveInstalledSkill(SKILL_NAME,{'home':_0x2217f9});if(_0x5de06b[_0x18d71c(0x175)]==='present')return{'state':_0x18d71c(0x169),'path':dirname(_0x5de06b[_0x18d71c(0x183)])};if(_0x5de06b[_0x18d71c(0x175)]==='absent')return{'state':_0x18d71c(0x194)};return{'state':_0x18d71c(0x193),'reason':_0x5de06b['reason']};}export function inspectInstalledBuiltinSkillVersion(_0x11ae5b,_0x85f465={}){const _0xd3e497=a328_0x2a65a0,_0x52689c=installedSkillPath(_0x85f465[_0xd3e497(0x16d)]??homedir());if(_0x52689c['state']===_0xd3e497(0x194))return{'state':_0xd3e497(0x194),'expectedVersion':_0x11ae5b,'repairCommand':REPAIR_COMMAND};if(_0x52689c['state']===_0xd3e497(0x193))return{'state':_0xd3e497(0x193),'expectedVersion':_0x11ae5b,'reason':_0x52689c[_0xd3e497(0x197)],'repairCommand':REPAIR_COMMAND};try{const _0x3a70b1=frontmatterValue(readFileSync(join(_0x52689c[_0xd3e497(0x183)],'SKILL.md'),_0xd3e497(0x16f)),_0xd3e497(0x171));return{'state':_0x3a70b1===_0x11ae5b?_0xd3e497(0x18f):'version_mismatch','expectedVersion':_0x11ae5b,'skillVersion':_0x3a70b1,'installedPath':_0x52689c[_0xd3e497(0x183)],'repairCommand':REPAIR_COMMAND};}catch(_0x14dc4c){return{'state':_0xd3e497(0x193),'expectedVersion':_0x11ae5b,'installedPath':_0x52689c[_0xd3e497(0x183)],'reason':_0x14dc4c instanceof Error?_0x14dc4c[_0xd3e497(0x180)]:String(_0x14dc4c),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x3243ad={}){const _0x13a37f=a328_0x2a65a0,_0x4314a6=_0x3243ad[_0x13a37f(0x17c)]??DEFAULT_PACKAGE_ROOT;let _0x253acd;try{_0x253acd=readSource(_0x4314a6);}catch(_0x42b597){return{'state':_0x13a37f(0x193),'packageVersion':'unknown','reason':_0x42b597 instanceof Error?_0x42b597[_0x13a37f(0x180)]:String(_0x42b597),'repairCommand':REPAIR_COMMAND};}const _0x3d6d4e=installedSkillPath(_0x3243ad[_0x13a37f(0x16d)]??homedir());if(_0x3d6d4e[_0x13a37f(0x175)]===_0x13a37f(0x194))return{'state':_0x13a37f(0x194),'packageVersion':_0x253acd[_0x13a37f(0x17d)],'repairCommand':REPAIR_COMMAND};if(_0x3d6d4e[_0x13a37f(0x175)]===_0x13a37f(0x193))return{'state':'unverifiable','packageVersion':_0x253acd[_0x13a37f(0x17d)],'reason':_0x3d6d4e['reason'],'repairCommand':REPAIR_COMMAND};try{const _0xb5e653=frontmatterValue(readFileSync(join(_0x3d6d4e[_0x13a37f(0x183)],'SKILL.md'),_0x13a37f(0x16f)),'version');if(_0xb5e653!==_0x253acd[_0x13a37f(0x184)])return{'state':_0x13a37f(0x18d),'packageVersion':_0x253acd[_0x13a37f(0x17d)],'skillVersion':_0xb5e653,'installedPath':_0x3d6d4e[_0x13a37f(0x183)],'repairCommand':REPAIR_COMMAND};const _0x52b531=listFiles(_0x3d6d4e[_0x13a37f(0x183)]),_0x37b3d0=digestFiles(_0x3d6d4e[_0x13a37f(0x183)],_0x52b531);return{'state':sameFiles(_0x52b531,_0x253acd[_0x13a37f(0x164)][_0x13a37f(0x15c)])&&_0x37b3d0===_0x253acd[_0x13a37f(0x164)]['digest']?_0x13a37f(0x18f):'content_mismatch','packageVersion':_0x253acd[_0x13a37f(0x17d)],'skillVersion':_0xb5e653,'installedPath':_0x3d6d4e[_0x13a37f(0x183)],'digest':_0x37b3d0,'repairCommand':REPAIR_COMMAND};}catch(_0xda7167){return{'state':_0x13a37f(0x193),'packageVersion':_0x253acd['packageVersion'],'installedPath':_0x3d6d4e[_0x13a37f(0x183)],'reason':_0xda7167 instanceof Error?_0xda7167[_0x13a37f(0x180)]:String(_0xda7167),'repairCommand':REPAIR_COMMAND};}}function failure(_0x44df84,_0x309c21,_0x330930,_0x443158){const _0x1001c0=a328_0x2a65a0;return{'ok':![],'code':_0x44df84,'packageVersion':_0x309c21['packageVersion'],'skillVersion':_0x309c21['skillVersion'],'installedPath':_0x443158,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x330930 instanceof Error?_0x330930[_0x1001c0(0x180)]:String(_0x330930)};}export function installBuiltinSkill(_0x2b5fc8={}){const _0x333049=a328_0x2a65a0,_0x50511c=_0x2b5fc8[_0x333049(0x17c)]??DEFAULT_PACKAGE_ROOT,_0x33e77d=_0x2b5fc8['home']??homedir();let _0x4922a8;try{_0x4922a8=readSource(_0x50511c);}catch(_0x1ab0eb){return failure(_0x333049(0x19c),{'packageVersion':_0x333049(0x18b),'skillVersion':_0x333049(0x18b)},_0x1ab0eb);}const _0x27e0e0=inspectBuiltinSkill({'packageRoot':_0x50511c,'home':_0x33e77d}),_0x3366cc=runNpxSkillsAddGlobal(_0x50511c,_0x4922a8[_0x333049(0x18a)],{'stdio':_0x2b5fc8['stdio']??_0x333049(0x179),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x33e77d}});if(_0x3366cc['skipped'])return{'ok':!![],'packageVersion':_0x4922a8[_0x333049(0x17d)],'skillVersion':_0x4922a8['skillVersion'],'installedPath':_0x27e0e0[_0x333049(0x195)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x3366cc['ok'])return failure(_0x333049(0x181),_0x4922a8,_0x3366cc[_0x333049(0x187)]??_0x333049(0x177)+_0x3366cc[_0x333049(0x190)]);const _0x174ce5=inspectBuiltinSkill({'packageRoot':_0x50511c,'home':_0x33e77d});if(_0x174ce5[_0x333049(0x175)]!==_0x333049(0x18f)){const _0x3084c4=_0x174ce5[_0x333049(0x197)]??_0x333049(0x17b)+_0x174ce5['state'];return failure(_0x333049(0x165),_0x4922a8,_0x3366cc[_0x333049(0x160)]?_0x3084c4+'\x0a'+_0x3366cc[_0x333049(0x160)][_0x333049(0x174)]:_0x3084c4,_0x174ce5[_0x333049(0x195)]);}return _0x3366cc['partialFailure']&&(debug(_0x333049(0x166),_0x3366cc[_0x333049(0x160)][_0x333049(0x174)]),console[_0x333049(0x15b)]('CLI\x20Built-in\x20Skill\x20'+_0x4922a8[_0x333049(0x184)]+_0x333049(0x17f)+_0x3366cc[_0x333049(0x160)][_0x333049(0x18e)]+_0x333049(0x19f))),{'ok':!![],'packageVersion':_0x4922a8['packageVersion'],'skillVersion':_0x4922a8['skillVersion'],'installedPath':_0x174ce5['installedPath'],'changed':_0x27e0e0[_0x333049(0x175)]!==_0x333049(0x18f),'repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
1
- (function(_0x585975,_0x3d8b83){const _0x1a6163=a329_0x1c92,_0xfe728a=_0x585975();while(!![]){try{const _0x1a362d=-parseInt(_0x1a6163(0x13e))/0x1+parseInt(_0x1a6163(0x13a))/0x2+-parseInt(_0x1a6163(0x145))/0x3*(parseInt(_0x1a6163(0x137))/0x4)+parseInt(_0x1a6163(0x13c))/0x5+parseInt(_0x1a6163(0x140))/0x6*(parseInt(_0x1a6163(0x151))/0x7)+-parseInt(_0x1a6163(0x144))/0x8*(parseInt(_0x1a6163(0x146))/0x9)+parseInt(_0x1a6163(0x13b))/0xa;if(_0x1a362d===_0x3d8b83)break;else _0xfe728a['push'](_0xfe728a['shift']());}catch(_0x3425c9){_0xfe728a['push'](_0xfe728a['shift']());}}}(a329_0x3f05,0xeef63));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(_0x3703ce){const _0x5e7000=a329_0x1c92,_0x30d53a=[];for(const [_0x448d43,_0x46d0e9]of Object['entries'](_0x3703ce)){if(_0x46d0e9===!![]){const _0x3660ac=_0x448d43[_0x5e7000(0x152)](/([A-Z])/g,_0x5e7000(0x14a))[_0x5e7000(0x139)]();_0x30d53a[_0x5e7000(0x14c)](_0x3660ac);}}return _0x30d53a;}function a329_0x3f05(){const _0x58b587=['Error:\x20Unsupported\x20command:\x20','log','cwd','76PTfyQq','help','toLowerCase','3131868aPjylq','3004240ABXOQm','6296515RLfJZy','argv','1603649YXROOG','\x0aAvailable\x20commands:','6HfHQdU','includes','add','from','8bHQFcv','9753oQzobF','13317687aFJold','exit','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','enable-bff-save','-$1','error','push','skill','setLogPath','slice','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','6988009fzhQtM','replace','Public\x20Open\x20Skill\x20source:\x20','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'];a329_0x3f05=function(){return _0x58b587;};return a329_0x3f05();}export function parseDynamicFlags(){const _0x5925c6=a329_0x1c92,_0x27d276=[];for(let _0x3d6631=0x3;_0x3d6631<process[_0x5925c6(0x13d)]['length'];_0x3d6631++){const _0x37e12b=process[_0x5925c6(0x13d)][_0x3d6631];if(_0x37e12b&&_0x37e12b['startsWith']('--')){const _0x5c70ce=_0x37e12b[_0x5925c6(0x14f)](0x2);_0x5c70ce&&!_0x5c70ce[_0x5925c6(0x141)]('=')&&_0x27d276['push'](_0x5c70ce);}}return _0x27d276;}export function getAllProvidedFlags(_0x49b149){const _0x4a9b0e=a329_0x1c92,_0x47b5f6=camelCaseFlagsToKebab(_0x49b149),_0x1b5bb5=parseDynamicFlags(),_0x3a73c0=new Set([..._0x47b5f6,..._0x1b5bb5]);return Array[_0x4a9b0e(0x143)](_0x3a73c0);}export function normalizeLegacyBffSaveFlags(_0x508f03){const _0x2aaf40=a329_0x1c92,_0x2882d4=new Set(_0x508f03);return _0x2882d4['has']('dangerously-bff-save')&&_0x2882d4[_0x2aaf40(0x142)](_0x2aaf40(0x149)),Array[_0x2aaf40(0x143)](_0x2882d4);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a329_0x1c92(_0xc897c0,_0x4967d7){_0xc897c0=_0xc897c0-0x136;const _0x3f05ce=a329_0x3f05();let _0x1c9274=_0x3f05ce[_0xc897c0];return _0x1c9274;}export async function skillsCommand(_0x294444,_0x45188f,_0x224e66){const _0x31ad4c=a329_0x1c92;logger[_0x31ad4c(0x14e)](process[_0x31ad4c(0x136)]());if(_0x224e66?.[_0x31ad4c(0x138)]||_0x294444==='--help'){showHelp();return;}console[_0x31ad4c(0x14b)](_0x31ad4c(0x155)+(_0x294444||'(empty)')),console[_0x31ad4c(0x156)](_0x31ad4c(0x13f)),console[_0x31ad4c(0x156)]('\x20\x20'+CLI_BIN_NAME+_0x31ad4c(0x150)),console[_0x31ad4c(0x156)](''),console[_0x31ad4c(0x156)](_0x31ad4c(0x153)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x31ad4c(0x14b)](_0x31ad4c(0x14d),'Unsupported\x20command:\x20'+_0x294444),process[_0x31ad4c(0x147)](0x1);}function showHelp(){const _0x4b0ae0=a329_0x1c92;console[_0x4b0ae0(0x156)](_0x4b0ae0(0x154)+CLI_BIN_NAME+_0x4b0ae0(0x148)+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 a329_0x10b3(_0x310a4b,_0x2efaf8){_0x310a4b=_0x310a4b-0x18e;const _0x4d50ee=a329_0x4d50();let _0x10b3e0=_0x4d50ee[_0x310a4b];return _0x10b3e0;}(function(_0x2abac0,_0x44b78e){const _0x4a4711=a329_0x10b3,_0x57f06e=_0x2abac0();while(!![]){try{const _0x21368a=-parseInt(_0x4a4711(0x19f))/0x1*(parseInt(_0x4a4711(0x198))/0x2)+-parseInt(_0x4a4711(0x197))/0x3*(parseInt(_0x4a4711(0x1ab))/0x4)+parseInt(_0x4a4711(0x18f))/0x5*(parseInt(_0x4a4711(0x19a))/0x6)+-parseInt(_0x4a4711(0x193))/0x7+-parseInt(_0x4a4711(0x1a6))/0x8+-parseInt(_0x4a4711(0x1a0))/0x9*(parseInt(_0x4a4711(0x19b))/0xa)+parseInt(_0x4a4711(0x1ac))/0xb;if(_0x21368a===_0x44b78e)break;else _0x57f06e['push'](_0x57f06e['shift']());}catch(_0x57ac9d){_0x57f06e['push'](_0x57f06e['shift']());}}}(a329_0x4d50,0x726aa));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(_0xc01d3){const _0x372505=a329_0x10b3,_0x2d97ea=[];for(const [_0x1a8fc5,_0x443984]of Object['entries'](_0xc01d3)){if(_0x443984===!![]){const _0x895ed7=_0x1a8fc5['replace'](/([A-Z])/g,'-$1')[_0x372505(0x191)]();_0x2d97ea[_0x372505(0x192)](_0x895ed7);}}return _0x2d97ea;}export function parseDynamicFlags(){const _0x14b54e=a329_0x10b3,_0x23eec8=[];for(let _0x24fbcf=0x3;_0x24fbcf<process['argv']['length'];_0x24fbcf++){const _0x5d7ca4=process['argv'][_0x24fbcf];if(_0x5d7ca4&&_0x5d7ca4[_0x14b54e(0x1af)]('--')){const _0x5a9f03=_0x5d7ca4[_0x14b54e(0x1a5)](0x2);_0x5a9f03&&!_0x5a9f03[_0x14b54e(0x1a1)]('=')&&_0x23eec8[_0x14b54e(0x192)](_0x5a9f03);}}return _0x23eec8;}export function getAllProvidedFlags(_0x6b157d){const _0x2e0c19=a329_0x10b3,_0x4c487e=camelCaseFlagsToKebab(_0x6b157d),_0x1b34b2=parseDynamicFlags(),_0x3b4787=new Set([..._0x4c487e,..._0x1b34b2]);return Array[_0x2e0c19(0x1a3)](_0x3b4787);}export function normalizeLegacyBffSaveFlags(_0x1db008){const _0xca6151=a329_0x10b3,_0x190e7b=new Set(_0x1db008);return _0x190e7b[_0xca6151(0x1a9)](_0xca6151(0x199))&&_0x190e7b[_0xca6151(0x195)](_0xca6151(0x196)),Array[_0xca6151(0x1a3)](_0x190e7b);}function a329_0x4d50(){const _0x88118=['setLogPath','slice','5850128DhQPXR','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','\x0aAvailable\x20commands:','has','cwd','4pYMDFe','21801087NIigph','(empty)','log','startsWith','error','2175335lQkyCn','--help','toLowerCase','push','798623zLMpSf','skill','add','enable-bff-save','173583cNJSfh','42046cRMRtU','dangerously-bff-save','12ptdZjr','791380atsDou','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','help','29RhYfVk','99lRgVSY','includes','Public\x20Open\x20Skill\x20source:\x20','from'];a329_0x4d50=function(){return _0x88118;};return a329_0x4d50();}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x2113cd,_0x16148c,_0x55b75b){const _0x4de322=a329_0x10b3;logger[_0x4de322(0x1a4)](process[_0x4de322(0x1aa)]());if(_0x55b75b?.[_0x4de322(0x19e)]||_0x2113cd===_0x4de322(0x190)){showHelp();return;}console[_0x4de322(0x18e)]('Error:\x20Unsupported\x20command:\x20'+(_0x2113cd||_0x4de322(0x1ad))),console[_0x4de322(0x1ae)](_0x4de322(0x1a8)),console['log']('\x20\x20'+CLI_BIN_NAME+'\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill'),console[_0x4de322(0x1ae)](''),console[_0x4de322(0x1ae)](_0x4de322(0x1a2)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x4de322(0x18e)](_0x4de322(0x194),'Unsupported\x20command:\x20'+_0x2113cd),process['exit'](0x1);}function showHelp(){const _0x2ac63a=a329_0x10b3;console['log'](_0x2ac63a(0x1a7)+CLI_BIN_NAME+_0x2ac63a(0x19d)+SKILLS_INSTALL_COMMAND_LINE+_0x2ac63a(0x19c));}
@@ -1 +1 @@
1
- const a330_0x140d3d=a330_0x51a8;(function(_0x4d6c33,_0x2ba1bc){const _0x303935=a330_0x51a8,_0x3da83d=_0x4d6c33();while(!![]){try{const _0x16a35e=-parseInt(_0x303935(0x1eb))/0x1+parseInt(_0x303935(0x1d1))/0x2*(parseInt(_0x303935(0x1d3))/0x3)+-parseInt(_0x303935(0x1dd))/0x4*(parseInt(_0x303935(0x1f9))/0x5)+-parseInt(_0x303935(0x1d9))/0x6+parseInt(_0x303935(0x1c4))/0x7*(parseInt(_0x303935(0x1c9))/0x8)+parseInt(_0x303935(0x1d6))/0x9*(parseInt(_0x303935(0x1ec))/0xa)+parseInt(_0x303935(0x1f0))/0xb*(parseInt(_0x303935(0x1e7))/0xc);if(_0x16a35e===_0x2ba1bc)break;else _0x3da83d['push'](_0x3da83d['shift']());}catch(_0x577b22){_0x3da83d['push'](_0x3da83d['shift']());}}}(a330_0x11e5,0xb2467));import{execaSync}from'execa';import{resolveInstalledSkill}from'../skills/skill-presence.js';function a330_0x51a8(_0x238049,_0x37e336){_0x238049=_0x238049-0x1c2;const _0x11e551=a330_0x11e5();let _0x51a808=_0x11e551[_0x238049];return _0x51a808;}export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a330_0x140d3d(0x1e6);export const NPX_SKILLS_SUBCOMMAND_ADD=a330_0x140d3d(0x1ca);export const NPX_SKILLS_FLAG_SKILL='--skill';function a330_0x11e5(){const _0x2a7a03=['unknown','inherit','unverifiable','exitCode','70FLgJlE','log','trim','35854eMIkkh','npx','!\x20Could\x20not\x20verify\x20\x22','present','message','24uqpEmD','add','filter','signal','Installer\x20reported\x20','PERMISSION_DENIED','warn','npx\x20terminated\x20by\x20signal\x20','298vluGIh','absent','3666pMepWP','NPX_NOT_FOUND','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','242316MSQOiW','npx\x20failed\x20to\x20start','EACCES','8209128VzgwZq','SPAWN_FAILED','EPERM','join','31828ZcMYve','SKILL_NOT_INSTALLED','shortMessage','expectedSkillName','state','Skill\x20\x22','failed','stdout','\x20failed\x20target(s)','skills@latest','36SmipUr','stdio','code','INSTALL_PARTIAL','1248180Ebnsbs','340fnEsTZ','ENOENT','stderr','\x22\x20install\x20state:\x20','8598777DoYuEn','partialFailure','skill','pipe','push'];a330_0x11e5=function(){return _0x2a7a03;};return a330_0x11e5();}export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const RABETBASE_GLOBAL_SKILL_NAME='rabetbase';export const RABETBASE_SKILL_GIT_SOURCE=a330_0x140d3d(0x1d5);export function resolveGlobalSkillName(_0x266687){switch(_0x266687['trim']()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x385812){const _0x47a1e8=a330_0x140d3d,_0x299270=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x385812&&_0x299270[_0x47a1e8(0x1f4)](NPX_SKILLS_FLAG_SKILL,_0x385812),_0x299270;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a330_0x140d3d(0x1c5),...buildNpxSkillsAddArgv()][a330_0x140d3d(0x1dc)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a330_0x140d3d(0x1c5),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(_0x3bc3b1,_0x49be6a,_0x4e0eff){return{'ok':![],'status':_0x49be6a,'code':_0x3bc3b1,'error':'['+_0x3bc3b1+']\x20'+_0x4e0eff};}function execaOptions(_0x322b20,_0x3e383e){const _0x2c43a3={...process.env};return delete _0x2c43a3['npm_config_global'],delete _0x2c43a3['NPM_CONFIG_GLOBAL'],{'cwd':_0x322b20,'stdio':_0x3e383e,'env':_0x2c43a3,'extendEnv':![],'shell':![],'reject':![],..._0x3e383e==='pipe'?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeExecaResult(_0x3e2848,_0x52e07c,_0x3651d0){const _0x56fdb6=a330_0x140d3d,_0x4ee103=[_0x3e2848[_0x56fdb6(0x1e4)]?String(_0x3e2848['stdout']):'',_0x3e2848[_0x56fdb6(0x1ee)]?String(_0x3e2848['stderr']):''][_0x56fdb6(0x1cb)](Boolean)[_0x56fdb6(0x1dc)]('\x0a')[_0x56fdb6(0x1c3)](),_0xeb16db=_0x3e2848[_0x56fdb6(0x1f8)]??null;if(_0x3e2848[_0x56fdb6(0x1e9)]){const _0x1acfdf=_0x3e2848[_0x56fdb6(0x1e9)]===_0x56fdb6(0x1ed)?_0x56fdb6(0x1d4):_0x3e2848[_0x56fdb6(0x1e9)]===_0x56fdb6(0x1db)||_0x3e2848[_0x56fdb6(0x1e9)]===_0x56fdb6(0x1d8)?_0x56fdb6(0x1ce):_0x56fdb6(0x1da);return failure(_0x1acfdf,_0xeb16db,_0x3e2848['shortMessage']??_0x3e2848[_0x56fdb6(0x1c8)]??_0x3e2848[_0x56fdb6(0x1e9)]);}if(_0x3e2848[_0x56fdb6(0x1cc)])return failure('CHILD_TERMINATED',_0xeb16db,_0x56fdb6(0x1d0)+_0x3e2848[_0x56fdb6(0x1cc)]);if(_0x3e2848[_0x56fdb6(0x1e3)]&&_0xeb16db===null)return failure('SPAWN_FAILED',_0xeb16db,_0x3e2848[_0x56fdb6(0x1df)]??_0x3e2848[_0x56fdb6(0x1c8)]??_0x56fdb6(0x1d7));if(_0xeb16db!==0x0)return failure('CHILD_EXIT_NONZERO',_0xeb16db,_0x4ee103||_0x3e2848[_0x56fdb6(0x1df)]||'exit\x20'+(_0xeb16db??_0x56fdb6(0x1f5)));const _0x3a857a=_0x52e07c?resolveInstalledSkill(_0x52e07c,_0x3651d0):undefined,_0x47d2a6=_0x4ee103['match'](/Failed to install\s+(\d+)/i);if(_0x47d2a6&&Number(_0x47d2a6[0x1])>0x0){const _0x289888=_0x56fdb6(0x1cd)+_0x47d2a6[0x1]+_0x56fdb6(0x1e5)+(_0x4ee103?':\x0a'+_0x4ee103:'');if(_0x3a857a?.[_0x56fdb6(0x1e1)]===_0x56fdb6(0x1c7))return{'ok':!![],'status':0x0,'partialFailure':{'count':Number(_0x47d2a6[0x1]),'output':_0x4ee103}};return failure(_0x56fdb6(0x1ea),0x0,_0x289888);}if(_0x3a857a){if(_0x3a857a[_0x56fdb6(0x1e1)]===_0x56fdb6(0x1d2))return failure(_0x56fdb6(0x1de),0x0,_0x56fdb6(0x1e2)+_0x52e07c+'\x22\x20not\x20found\x20after\x20install\x20(checked\x20'+_0x3a857a['checked'][_0x56fdb6(0x1dc)](',\x20')+')');_0x3a857a[_0x56fdb6(0x1e1)]===_0x56fdb6(0x1f7)&&console[_0x56fdb6(0x1cf)](_0x56fdb6(0x1c6)+_0x52e07c+_0x56fdb6(0x1ef)+_0x3a857a['reason']);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x8d8c87,_0x1ad7cb){const _0x337398=a330_0x140d3d;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1137a2=_0x1ad7cb?.[_0x337398(0x1e8)]??_0x337398(0x1f6),_0x2a807a=buildNpxSkillsAddArgv(_0x1ad7cb?.[_0x337398(0x1f2)]),_0x28d242=[_0x337398(0x1c5),..._0x2a807a][_0x337398(0x1dc)]('\x20');console[_0x337398(0x1c2)]('*\x20'+_0x28d242);const _0x10ff7e=execaSync(_0x337398(0x1c5),_0x2a807a,execaOptions(_0x8d8c87,_0x1137a2));return normalizeExecaResult(_0x10ff7e);}export function runNpxSkillsAddGlobal(_0x570cff,_0x3c46b0,_0x59de73){const _0xb441b7=a330_0x140d3d;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x13d1dc=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3c46b0,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x400f38=[_0xb441b7(0x1c5),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3c46b0,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0xb441b7(0x1dc)]('\x20');console['log']('*\x20'+_0x400f38);const _0x1bf7ac=execaSync(_0xb441b7(0x1c5),_0x13d1dc,execaOptions(_0x570cff,_0xb441b7(0x1f3))),_0x15c47e=normalizeExecaResult(_0x1bf7ac,_0x59de73?.[_0xb441b7(0x1e0)]??resolveGlobalSkillName(_0x3c46b0),_0x59de73?.['presence']);if(_0x59de73?.['stdio']!==_0xb441b7(0x1f3)&&!_0x15c47e[_0xb441b7(0x1f1)]){const _0x33a8a1=[_0x1bf7ac[_0xb441b7(0x1e4)],_0x1bf7ac[_0xb441b7(0x1ee)]]['filter'](Boolean)[_0xb441b7(0x1dc)]('\x0a')[_0xb441b7(0x1c3)]();if(_0x33a8a1)console[_0xb441b7(0x1c2)](_0x33a8a1);}return _0x15c47e;}
1
+ const a330_0x33a181=a330_0x5b24;(function(_0x15fcdd,_0x1f87d7){const _0x2102d4=a330_0x5b24,_0xff5c2e=_0x15fcdd();while(!![]){try{const _0x59c392=parseInt(_0x2102d4(0x162))/0x1+-parseInt(_0x2102d4(0x16f))/0x2+parseInt(_0x2102d4(0x152))/0x3+-parseInt(_0x2102d4(0x156))/0x4+parseInt(_0x2102d4(0x178))/0x5*(parseInt(_0x2102d4(0x163))/0x6)+parseInt(_0x2102d4(0x17a))/0x7+-parseInt(_0x2102d4(0x176))/0x8*(parseInt(_0x2102d4(0x164))/0x9);if(_0x59c392===_0x1f87d7)break;else _0xff5c2e['push'](_0xff5c2e['shift']());}catch(_0x1329ef){_0xff5c2e['push'](_0xff5c2e['shift']());}}}(a330_0x36d6,0x581c8));import{execaSync}from'execa';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='add';export const NPX_SKILLS_FLAG_SKILL=a330_0x33a181(0x179);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const RABETBASE_GLOBAL_SKILL_NAME=a330_0x33a181(0x159);export const RABETBASE_SKILL_GIT_SOURCE='git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git';export function resolveGlobalSkillName(_0x58868c){switch(_0x58868c['trim']()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x4e940b){const _0x165c92=a330_0x33a181,_0x336549=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x4e940b&&_0x336549[_0x165c92(0x17d)](NPX_SKILLS_FLAG_SKILL,_0x4e940b),_0x336549;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a330_0x33a181(0x157),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a330_0x33a181(0x15f)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function a330_0x36d6(){const _0x56e86d=['log','presence','EPERM','CHILD_EXIT_NONZERO','join','unverifiable','CHILD_TERMINATED','690925kFtVzp','3285336yQAjZO','15651EwllWB','expectedSkillName','absent','state','message','exit\x20','filter','stdout','exitCode','ENOENT','shortMessage','1291534TbSRbV','npx\x20terminated\x20by\x20signal\x20','SPAWN_FAILED','skill','warn','stdio','NPX_NOT_FOUND','2584iDUSMX','!\x20Could\x20not\x20verify\x20\x22','5KrUVtB','--skill','1229487ejmBIq','checked','trim','push','pipe','PERMISSION_DENIED','code','reason','Skill\x20\x22','present','1653123Fomwsv','stderr','EACCES','unknown','1587180rwGpDD','npx','signal','rabetbase','npx\x20failed\x20to\x20start'];a330_0x36d6=function(){return _0x56e86d;};return a330_0x36d6();}function failure(_0x59616c,_0x136164,_0x380092){return{'ok':![],'status':_0x136164,'code':_0x59616c,'error':'['+_0x59616c+']\x20'+_0x380092};}function execaOptions(_0x1f896a,_0x542b90){const _0x1ae250=a330_0x33a181,_0x4ef605={...process.env};return delete _0x4ef605['npm_config_global'],delete _0x4ef605['NPM_CONFIG_GLOBAL'],{'cwd':_0x1f896a,'stdio':_0x542b90,'env':_0x4ef605,'extendEnv':![],'shell':![],'reject':![],..._0x542b90===_0x1ae250(0x17e)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeExecaResult(_0x33b660,_0x7f09fd,_0x154968){const _0x53465c=a330_0x33a181,_0x4e0ee7=[_0x33b660[_0x53465c(0x16b)]?String(_0x33b660[_0x53465c(0x16b)]):'',_0x33b660['stderr']?String(_0x33b660[_0x53465c(0x153)]):''][_0x53465c(0x16a)](Boolean)['join']('\x0a')['trim'](),_0x17c831=_0x33b660[_0x53465c(0x16c)]??null;if(_0x33b660[_0x53465c(0x14e)]){const _0x3eef47=_0x33b660[_0x53465c(0x14e)]===_0x53465c(0x16d)?_0x53465c(0x175):_0x33b660[_0x53465c(0x14e)]===_0x53465c(0x15d)||_0x33b660[_0x53465c(0x14e)]===_0x53465c(0x154)?_0x53465c(0x17f):_0x53465c(0x171);return failure(_0x3eef47,_0x17c831,_0x33b660[_0x53465c(0x16e)]??_0x33b660['message']??_0x33b660[_0x53465c(0x14e)]);}if(_0x33b660[_0x53465c(0x158)])return failure(_0x53465c(0x161),_0x17c831,_0x53465c(0x170)+_0x33b660[_0x53465c(0x158)]);if(_0x33b660['failed']&&_0x17c831===null)return failure(_0x53465c(0x171),_0x17c831,_0x33b660[_0x53465c(0x16e)]??_0x33b660[_0x53465c(0x168)]??_0x53465c(0x15a));if(_0x17c831!==0x0)return failure(_0x53465c(0x15e),_0x17c831,_0x4e0ee7||_0x33b660[_0x53465c(0x16e)]||_0x53465c(0x169)+(_0x17c831??_0x53465c(0x155)));const _0x311c3a=_0x7f09fd?resolveInstalledSkill(_0x7f09fd,_0x154968):undefined,_0x193a24=_0x4e0ee7['match'](/Failed to install\s+(\d+)/i);if(_0x193a24&&Number(_0x193a24[0x1])>0x0){const _0x179778='Installer\x20reported\x20'+_0x193a24[0x1]+'\x20failed\x20target(s)'+(_0x4e0ee7?':\x0a'+_0x4e0ee7:'');if(_0x311c3a?.[_0x53465c(0x167)]===_0x53465c(0x151))return{'ok':!![],'status':0x0,'partialFailure':{'count':Number(_0x193a24[0x1]),'output':_0x4e0ee7}};return failure('INSTALL_PARTIAL',0x0,_0x179778);}if(_0x311c3a){if(_0x311c3a[_0x53465c(0x167)]===_0x53465c(0x166))return failure('SKILL_NOT_INSTALLED',0x0,_0x53465c(0x150)+_0x7f09fd+'\x22\x20not\x20found\x20after\x20install\x20(checked\x20'+_0x311c3a[_0x53465c(0x17b)][_0x53465c(0x15f)](',\x20')+')');_0x311c3a['state']===_0x53465c(0x160)&&console[_0x53465c(0x173)](_0x53465c(0x177)+_0x7f09fd+'\x22\x20install\x20state:\x20'+_0x311c3a[_0x53465c(0x14f)]);}return{'ok':!![],'status':0x0};}function a330_0x5b24(_0x3f8e1f,_0x147046){_0x3f8e1f=_0x3f8e1f-0x14e;const _0x36d6b0=a330_0x36d6();let _0x5b249c=_0x36d6b0[_0x3f8e1f];return _0x5b249c;}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x390ccd,_0x25ff18){const _0xb10ab9=a330_0x33a181;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xbe38d2=_0x25ff18?.[_0xb10ab9(0x174)]??'inherit',_0x377abe=buildNpxSkillsAddArgv(_0x25ff18?.[_0xb10ab9(0x172)]),_0x241f8c=[_0xb10ab9(0x157),..._0x377abe]['join']('\x20');console[_0xb10ab9(0x15b)]('*\x20'+_0x241f8c);const _0x2c0a8f=execaSync(_0xb10ab9(0x157),_0x377abe,execaOptions(_0x390ccd,_0xbe38d2));return normalizeExecaResult(_0x2c0a8f);}export function runNpxSkillsAddGlobal(_0x58b19e,_0x592a97,_0x1ad94a){const _0x135bc2=a330_0x33a181;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x66e1ab=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x592a97,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x2c373b=[_0x135bc2(0x157),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x592a97,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console[_0x135bc2(0x15b)]('*\x20'+_0x2c373b);const _0x588f08=execaSync('npx',_0x66e1ab,execaOptions(_0x58b19e,_0x135bc2(0x17e))),_0xd6c396=normalizeExecaResult(_0x588f08,_0x1ad94a?.[_0x135bc2(0x165)]??resolveGlobalSkillName(_0x592a97),_0x1ad94a?.[_0x135bc2(0x15c)]);if(_0x1ad94a?.['stdio']!=='pipe'&&!_0xd6c396['partialFailure']){const _0x48002a=[_0x588f08['stdout'],_0x588f08[_0x135bc2(0x153)]]['filter'](Boolean)[_0x135bc2(0x15f)]('\x0a')[_0x135bc2(0x17c)]();if(_0x48002a)console[_0x135bc2(0x15b)](_0x48002a);}return _0xd6c396;}