@lovrabet/rabetbase-cli 2.5.4-beta.5 → 2.5.5-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (379) 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 +2 -1
  357. package/skills/rabetbase/SKILL.md +1 -1
  358. package/skills/rabetbase-page-generation/SKILL.md +35 -0
  359. package/skills/rabetbase-page-generation/references/component-baseline.md +18 -0
  360. package/skills/rabetbase-page-generation/references/generation.md +77 -0
  361. package/skills/rabetbase-page-generation/templates/onepage/build.mjs +63 -0
  362. package/skills/rabetbase-page-generation/templates/onepage/create/README.md +20 -0
  363. package/skills/rabetbase-page-generation/templates/onepage/create/index.jsx +4 -0
  364. package/skills/rabetbase-page-generation/templates/onepage/create/preview.png +0 -0
  365. package/skills/rabetbase-page-generation/templates/onepage/detail/README.md +20 -0
  366. package/skills/rabetbase-page-generation/templates/onepage/detail/index.jsx +194 -0
  367. package/skills/rabetbase-page-generation/templates/onepage/detail/preview.png +0 -0
  368. package/skills/rabetbase-page-generation/templates/onepage/list/README.md +20 -0
  369. package/skills/rabetbase-page-generation/templates/onepage/list/index.jsx +717 -0
  370. package/skills/rabetbase-page-generation/templates/onepage/list/preview.png +0 -0
  371. package/skills/rabetbase-page-generation/templates/onepage/shared/editor.jsx +395 -0
  372. package/skills/rabetbase-page-generation/templates/onepage/shared/model.js +141 -0
  373. package/skills/rabetbase-page-generation/templates/onepage/shared/page.css +377 -0
  374. package/skills/rabetbase-page-generation/templates/onepage/shared/record-layout.jsx +90 -0
  375. package/skills/rabetbase-page-generation/templates/onepage/shared/responsive.jsx +70 -0
  376. package/skills/rabetbase-page-generation/templates/onepage/update/README.md +21 -0
  377. package/skills/rabetbase-page-generation/templates/onepage/update/index.jsx +4 -0
  378. package/skills/rabetbase-page-generation/templates/onepage/update/preview.png +0 -0
  379. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x5b3cd8,_0x128436){const _0x3432c5=a312_0x587e,_0xc7feae=_0x5b3cd8();while(!![]){try{const _0x1a8091=-parseInt(_0x3432c5(0x1e0))/0x1*(parseInt(_0x3432c5(0x1d8))/0x2)+parseInt(_0x3432c5(0x1e3))/0x3*(parseInt(_0x3432c5(0x1d1))/0x4)+-parseInt(_0x3432c5(0x1da))/0x5+-parseInt(_0x3432c5(0x1d2))/0x6+-parseInt(_0x3432c5(0x1e7))/0x7+parseInt(_0x3432c5(0x1e5))/0x8+parseInt(_0x3432c5(0x1ea))/0x9;if(_0x1a8091===_0x128436)break;else _0xc7feae['push'](_0xc7feae['shift']());}catch(_0xb21191){_0xc7feae['push'](_0xc7feae['shift']());}}}(a312_0x16a8,0xc2da7));function a312_0x587e(_0x1196c3,_0xa901c7){_0x1196c3=_0x1196c3-0x1d1;const _0x16a846=a312_0x16a8();let _0x587e6b=_0x16a846[_0x1196c3];return _0x587e6b;}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a312_0x16a8(){const _0xb92ed9=['alias','name','922030dKnWcl','length','1255215QyujTi','some','`\x20requires\x20either\x20--code\x20or\x20--alias.','code','string','filePath','2JAsKZX','Available\x20aliases:\x20','validation','16599zQrkXH','flags','2885024HWboJU','type','6161820OvTrTW','join','map','26824563DyNxIs','\x20api\x20pull`\x20first.','profileName','24deOKYm','3137286fUWNiN','Unknown\x20alias\x20\x22','\x22.\x20','No\x20model\x20aliases\x20found\x20in\x20'];a312_0x16a8=function(){return _0xb92ed9;};return a312_0x16a8();}import{resolveApiModelSource}from'../api/model-source.js';export function resolveAliasToCode(_0x11c967,_0x273d10,_0x5749a0,_0x105892,_0x3ade7c,_0x135194){const _0x44f8ff=a312_0x587e,_0x2e1c81=_0x11c967[_0x44f8ff(0x1e4)][_0x44f8ff(0x1db)](_0x45d2ce=>_0x45d2ce[_0x44f8ff(0x1d7)]===_0x44f8ff(0x1dd)&&_0x45d2ce['type']===_0x44f8ff(0x1de)),_0x887b97=_0x11c967[_0x44f8ff(0x1e4)]['some'](_0x41562f=>_0x41562f[_0x44f8ff(0x1d7)]===_0x44f8ff(0x1d6)&&_0x41562f[_0x44f8ff(0x1e6)]==='string');if(!_0x2e1c81||!_0x887b97)return;const _0x50108c=_0x273d10['code']?String(_0x273d10['code']):'',_0x2e03fd=_0x273d10[_0x44f8ff(0x1d6)]?String(_0x273d10[_0x44f8ff(0x1d6)]):'';if(!_0x50108c&&!_0x2e03fd)throw CliErrors['validation']('`'+_0x105892+_0x44f8ff(0x1dc));if(_0x2e03fd&&!_0x50108c){const _0x3e7262=resolveApiModelSource(_0x5749a0,_0x3ade7c,_0x135194),_0x44e5b9=resolveAlias(_0x5749a0,_0x2e03fd,undefined,_0x3e7262[_0x44f8ff(0x1df)],_0x3e7262['profileName']);if(!_0x44e5b9){const _0x14a1c5=listAliases(_0x5749a0,undefined,_0x3e7262['filePath'],_0x3e7262[_0x44f8ff(0x1ec)])[_0x44f8ff(0x1e9)](_0x58ad74=>_0x58ad74['alias']),_0x25891d=_0x14a1c5[_0x44f8ff(0x1d9)]?_0x44f8ff(0x1e1)+_0x14a1c5[_0x44f8ff(0x1e8)](',\x20'):_0x44f8ff(0x1d5)+_0x5749a0+'.\x20Run\x20`'+CLI_BIN_NAME+_0x44f8ff(0x1eb);throw CliErrors[_0x44f8ff(0x1e2)](_0x44f8ff(0x1d3)+_0x2e03fd+_0x44f8ff(0x1d4)+_0x25891d);}_0x273d10['code']=_0x44e5b9;}}
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 +1 @@
1
- (function(_0x3e1a42,_0xfad02f){const _0x22620b=a313_0x11e1,_0x1ca08b=_0x3e1a42();while(!![]){try{const _0x58f7b9=-parseInt(_0x22620b(0x15d))/0x1+-parseInt(_0x22620b(0x17f))/0x2+-parseInt(_0x22620b(0x154))/0x3+-parseInt(_0x22620b(0x19b))/0x4*(parseInt(_0x22620b(0x167))/0x5)+-parseInt(_0x22620b(0x166))/0x6*(-parseInt(_0x22620b(0x155))/0x7)+parseInt(_0x22620b(0x152))/0x8+parseInt(_0x22620b(0x158))/0x9;if(_0x58f7b9===_0xfad02f)break;else _0x1ca08b['push'](_0x1ca08b['shift']());}catch(_0x1d77ed){_0x1ca08b['push'](_0x1ca08b['shift']());}}}(a313_0x5b64,0x45df8));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a313_0x3928e4}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x27309b){const _0x4ca260=a313_0x11e1;return typeof _0x27309b===_0x4ca260(0x18d)&&_0x27309b[_0x4ca260(0x188)]()?_0x27309b[_0x4ca260(0x188)]():undefined;}function resolveEnvAppCode(){const _0x360cb3=a313_0x11e1,_0x301088=stringFlag(process.env.RABETBASE_APPCODE);if(_0x301088)return{'name':_0x360cb3(0x157),'value':_0x301088};const _0x47d69c=stringFlag(process.env.LOVRABET_APPCODE);if(_0x47d69c)return{'name':'LOVRABET_APPCODE','value':_0x47d69c};return undefined;}function hasExplicitAppCode(_0x135c42,_0x1d6301){const _0x1021c9=a313_0x11e1;return!!(stringFlag(_0x135c42[_0x1021c9(0x14b)])||stringFlag(_0x1d6301[_0x1021c9(0x14b)]));}function assertEnvAppCodeNotIgnored(_0x2b856c,_0x433b97,_0x21b313){const _0x414d32=a313_0x11e1;if(!_0x433b97||_0x21b313||_0x2b856c===_0x433b97['value'])return;const _0x1c315f=_0x2b856c?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x2b856c+'\x22.':_0x414d32(0x187);throw CliErrors[_0x414d32(0x14f)](_0x433b97[_0x414d32(0x185)]+'='+_0x433b97[_0x414d32(0x162)]+_0x414d32(0x165)+_0x1c315f+'\x20'+(_0x414d32(0x173)+_0x433b97[_0x414d32(0x185)]+'\x22.'));}export function createPipelineEnv(_0x321c76,_0x3ed994,_0xfee05e=[]){const _0x42932e=a313_0x11e1;return{'rawFlags':_0x3ed994,'args':_0xfee05e,'resolveAppCode':()=>_0x321c76[_0x42932e(0x18f)],'resolveCookie':()=>_0x321c76[_0x42932e(0x164)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a313_0x3928e4(_0x3ed994),'defaultFormat':_0x321c76[_0x42932e(0x171)],'defaultPageSize':_0x321c76[_0x42932e(0x16b)],'defaultVerbose':_0x321c76[_0x42932e(0x150)],'apiDir':_0x321c76[_0x42932e(0x153)],'riskLevel':_0x321c76[_0x42932e(0x18a)],'selectedAppName':_0x321c76['explicitAppName'],'mergedCli':{'defaultApp':_0x321c76[_0x42932e(0x199)],'currentApp':_0x321c76[_0x42932e(0x17d)],'appCode':_0x321c76[_0x42932e(0x18f)],'apps':_0x321c76['apps']}};}export function createRabetbaseRunnerAdapter(_0x5acdd2={}){const _0x1c52c5=a313_0x11e1;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x1c52c5(0x184)](_0x29dacb=>PIPELINE_FLAG_NAMES[_0x1c52c5(0x196)](_0x29dacb[_0x1c52c5(0x185)]))['map'](({name:_0x5848c0,type:_0x2e9b8d,description:_0x283ec0})=>({'name':_0x5848c0,'type':_0x2e9b8d,'description':_0x283ec0})),'formatOutput':_0x5acdd2[_0x1c52c5(0x151)]??formatOutput,'getCommandLabel'(_0x372e64){const _0x808645=_0x1c52c5;return CLI_BIN_NAME+'\x20'+_0x372e64[_0x808645(0x18b)]+'\x20'+_0x372e64[_0x808645(0x161)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x41596f,{def:_0x3e7c04}){const _0x1b6e71=_0x1c52c5,_0xac04e1=_0x41596f[_0x1b6e71(0x15a)](_0x1b6e71(0x163))?_0x1b6e71(0x194):_0x1b6e71(0x17a)+_0x3e7c04[_0x1b6e71(0x14d)]+_0x1b6e71(0x160)+_0x1b6e71(0x194);return CliErrors[_0x1b6e71(0x14f)](_0x41596f+_0x1b6e71(0x19d)+_0xac04e1);}},async 'prepare'(_0x132386,_0x186739,_0x31ee41,_0x5d8fd3){const _0x2b034e=_0x1c52c5,_0x9e37f2=_0x186739[_0x2b034e(0x153)]||DEFAULT_API_DIR,_0x5f23b6=hasExplicitAppCode(_0x31ee41,_0x186739[_0x2b034e(0x17e)]),_0x239ef2=stringFlag(_0x31ee41['appcode'])||stringFlag(_0x186739[_0x2b034e(0x17e)]['appcode']),_0x45e757=_0x186739['mergedCli']?.[_0x2b034e(0x180)]??{},_0x3b7da3=_0x186739[_0x2b034e(0x195)]||_0x186739[_0x2b034e(0x17c)]?.[_0x2b034e(0x17d)]||_0x186739[_0x2b034e(0x17c)]?.[_0x2b034e(0x199)],_0x3cd9f6=_0x239ef2?Object[_0x2b034e(0x16a)](_0x45e757)['filter'](([,_0x411180])=>_0x411180[_0x2b034e(0x14b)]===_0x239ef2)['map'](([_0x229655])=>_0x229655):[];if(_0x3cd9f6[_0x2b034e(0x19f)]>0x1&&!_0x186739[_0x2b034e(0x195)])throw CliErrors['validation']('AppCode\x20\x22'+_0x239ef2+_0x2b034e(0x19c)+_0x3cd9f6['join'](',\x20')+'.',_0x2b034e(0x176));resolveAliasToCode(_0x132386,_0x31ee41,_0x9e37f2,_0x5d8fd3,_0x186739[_0x2b034e(0x15f)](),_0x3b7da3);const _0x1f6adb=resolveCommandAuthMode(_0x132386);let _0x2a4239='';if(_0x1f6adb!==_0x2b034e(0x14a)){_0x2a4239=_0x186739[_0x2b034e(0x148)]()||'';if(!_0x2a4239){if(_0x1f6adb==='required')throw CliErrors['authRequired']();}else{const {setActiveCookie:_0x37cfd0}=await import(_0x2b034e(0x17b));_0x37cfd0(_0x2a4239);}}const _0x29c800=_0x186739[_0x2b034e(0x15f)]()??'';if(_0x132386[_0x2b034e(0x193)]!==![]){if(!_0x5f23b6&&_0x3b7da3&&!_0x45e757[_0x3b7da3]){const _0x9c559b=Object[_0x2b034e(0x18c)](_0x45e757);throw CliErrors['validation'](_0x2b034e(0x14c)+_0x3b7da3+_0x2b034e(0x189),_0x9c559b[_0x2b034e(0x19f)]>0x0?'Available:\x20'+_0x9c559b['join'](',\x20')+_0x2b034e(0x15c)+CLI_BIN_NAME+_0x2b034e(0x18e):_0x2b034e(0x16c)+CLI_BIN_NAME+_0x2b034e(0x18e));}assertEnvAppCodeNotIgnored(_0x29c800,resolveEnvAppCode(),_0x5f23b6);if(!_0x29c800){const _0x573dfa=Object[_0x2b034e(0x18c)](_0x45e757);if(!_0x3b7da3&&_0x573dfa['length']>0x1)throw CliErrors[_0x2b034e(0x178)](_0x2b034e(0x175)+CLI_BIN_NAME+_0x2b034e(0x19a)+_0x573dfa[_0x2b034e(0x19e)](',\x20')+'.');throw CliErrors[_0x2b034e(0x178)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}}return{'defaults':{'booleans':{'verbose':_0x186739[_0x2b034e(0x179)]},'numbers':{'pagesize':_0x186739[_0x2b034e(0x16e)]}},'extras':{'appCode':_0x29c800,'cookie':_0x2a4239,'apiDomain':_0x186739[_0x2b034e(0x149)](),'apiDir':_0x9e37f2,'selectedAppName':_0x186739[_0x2b034e(0x195)],'mergedCli':_0x186739[_0x2b034e(0x17c)]}};},'confirmHighRisk':_0x5acdd2[_0x1c52c5(0x174)]??(async({env:_0x26c46b,commandLabel:_0x18fe3c})=>{const _0x4f0d22=_0x1c52c5;if(_0x26c46b['isNonInteractive'])throw CliErrors[_0x4f0d22(0x14f)](_0x4f0d22(0x182)+_0x18fe3c+_0x4f0d22(0x186));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x18fe3c,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x15702e=>CliErrors[_0x4f0d22(0x156)](_0x15702e)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}function a313_0x5b64(){const _0x9c06b5=['2008736JFvLYI','apiDir','1087698gUfsXh','256375VwIGJo','cancelled','RABETBASE_APPCODE','7166223KxSvNe','doctor','includes','object','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','368506HzUJlg','find','resolveAppCode','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','command','value','Edit\x20the\x20config\x20file\x20manually','cookie','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','60BTUowe','66565kcDutR','hasFormat','replace','entries','pageSize','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','execute','defaultPageSize','toUpperCase','meowKey','format','pretty','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','confirmHighRisk','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','schema','configMissing','defaultVerbose','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','../core/api-client.js','mergedCli','currentApp','rawFlags','632878Zhvfsi','apps','_notice','High-risk\x20operation\x20`','rejectedFlags','filter','name','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','trim','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','riskLevel','service','keys','string','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','appCode','catch','message','all','requiresAppCode','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','selectedAppName','has','resolve','some','defaultApp','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','24DImlWf','\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20','\x0a\x20\x20','join','length','production','resolveCookie','resolveApiDomain','none','appcode','App\x20\x22','risk','hint','validation','verbose','formatOutput'];a313_0x5b64=function(){return _0x9c06b5;};return a313_0x5b64();}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x501d01=a313_0x11e1,{clearActiveCookie:_0x5edcc7}=await import(_0x501d01(0x17b));_0x5edcc7();}export async function finalizeRabetbaseRuntimeState(){const _0x459812=a313_0x11e1;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x4c7ae1},{initEnv:_0x5ab7a6}]=await Promise[_0x459812(0x192)]([import('../constant/domain.js'),import('../constant/env.js')]);_0x4c7ae1(),_0x5ab7a6(_0x459812(0x147));}}export async function runCommand(_0x558356,_0x475bb2,_0x46585a=terminalRunnerAdapter){const _0x4fae95=a313_0x11e1;assertRejectedFlags(_0x558356,_0x475bb2[_0x4fae95(0x17e)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x558356)?withUpdateNotice(_0x558356):_0x558356,_0x475bb2,_0x46585a);}function assertRejectedFlags(_0xd350d9,_0x378266){const _0x4b6067=a313_0x11e1;for(const _0x2c1c77 of _0xd350d9[_0x4b6067(0x183)]??[]){const _0x2e32ea=GLOBAL_FLAGS[_0x4b6067(0x15e)](_0x22dcb5=>_0x22dcb5['name']===_0x2c1c77['name']),_0x3d46c6=new Set([_0x2c1c77['name'],toCamelCase(_0x2c1c77[_0x4b6067(0x185)]),_0x2e32ea?.[_0x4b6067(0x170)]]),_0x17101e=[..._0x3d46c6][_0x4b6067(0x198)](_0x1e4693=>{if(!_0x1e4693)return![];const _0x2d6d8b=_0x378266[_0x1e4693];return _0x2d6d8b!==undefined&&_0x2d6d8b!==null&&_0x2d6d8b!==![];});if(_0x17101e)throw CliErrors[_0x4b6067(0x14f)](_0x2c1c77[_0x4b6067(0x191)],_0x2c1c77[_0x4b6067(0x14e)]);}}function toCamelCase(_0x18260a){const _0x22bc35=a313_0x11e1;return _0x18260a[_0x22bc35(0x169)](/-([a-z])/g,(_0x526ba0,_0x4292ed)=>_0x4292ed[_0x22bc35(0x16f)]());}function shouldAttachUpdateNotice(_0x248c1c){const _0x2b03e1=a313_0x11e1;if(_0x248c1c[_0x2b03e1(0x168)]===![])return![];return!['update',_0x2b03e1(0x177),_0x2b03e1(0x159)]['includes'](_0x248c1c[_0x2b03e1(0x18b)]);}function withUpdateNotice(_0x189bbb){return{..._0x189bbb,async 'execute'(_0x5441cf){const _0x4fd3b1=a313_0x11e1,_0x554266=shouldResolveUpdateNotice(_0x5441cf)?resolveLatestUpdateNotice()[_0x4fd3b1(0x190)](()=>null):Promise[_0x4fd3b1(0x197)](null),_0x1b047e=await _0x189bbb[_0x4fd3b1(0x16d)](_0x5441cf);return attachUpdateNotice(_0x1b047e,await _0x554266);}};}function shouldResolveUpdateNotice(_0x48d4b7){const _0x50206c=a313_0x11e1;return _0x48d4b7[_0x50206c(0x171)]===_0x50206c(0x172)&&!_0x48d4b7['nonInteractive'];}function a313_0x11e1(_0x8f4cf6,_0x4ff76e){_0x8f4cf6=_0x8f4cf6-0x147;const _0x5b642c=a313_0x5b64();let _0x11e1e6=_0x5b642c[_0x8f4cf6];return _0x11e1e6;}function attachUpdateNotice(_0x345331,_0x1df947){const _0x1c46b6=a313_0x11e1;if(!_0x1df947||!_0x345331||typeof _0x345331!==_0x1c46b6(0x15b))return _0x345331;const _0x28e97c=_0x345331,_0x4c53fc=typeof _0x28e97c['_notice']==='object'&&_0x28e97c[_0x1c46b6(0x181)]!==null?_0x28e97c[_0x1c46b6(0x181)]:{};return{..._0x28e97c,'_notice':{..._0x4c53fc,'update':_0x1df947}};}
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 +1 @@
1
- (function(_0x32ac32,_0x54e892){const _0x5c88a9=a314_0x3f99,_0x46107b=_0x32ac32();while(!![]){try{const _0x302ba1=-parseInt(_0x5c88a9(0x100))/0x1+-parseInt(_0x5c88a9(0xf9))/0x2+-parseInt(_0x5c88a9(0x102))/0x3*(-parseInt(_0x5c88a9(0x101))/0x4)+-parseInt(_0x5c88a9(0xfc))/0x5*(parseInt(_0x5c88a9(0xfa))/0x6)+parseInt(_0x5c88a9(0xff))/0x7+-parseInt(_0x5c88a9(0xfe))/0x8*(parseInt(_0x5c88a9(0xfb))/0x9)+parseInt(_0x5c88a9(0xfd))/0xa;if(_0x302ba1===_0x54e892)break;else _0x46107b['push'](_0x46107b['shift']());}catch(_0x41ac6f){_0x46107b['push'](_0x46107b['shift']());}}}(a314_0x351f,0xd25ff));import{buildSchemaPayload as a314_0x25bb80}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a314_0x3f99(_0x12296e,_0x5959eb){_0x12296e=_0x12296e-0xf9;const _0x351f09=a314_0x351f();let _0x3f9983=_0x351f09[_0x12296e];return _0x3f9983;}function a314_0x351f(){const _0x99b752=['990010kbAjlv','67493DCllia','8zCFUlf','1991877RzcMrG','2057482RMIEZP','6SDZBRa','18NTcKJF','5438765EMGfUy','23177060uWhSuY','2965488gtEEvf'];a314_0x351f=function(){return _0x99b752;};return a314_0x351f();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x3a13b3,findDefinition:_0x2fe5c5}=await import('../commands/registry.js');return a314_0x25bb80({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x3a13b3,'buildAllFlags':buildAllFlags,'findDefinition':_0x2fe5c5});}
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 +1 @@
1
- function a315_0x559b(_0x3db5e8,_0x5b5c7c){_0x3db5e8=_0x3db5e8-0x16b;const _0x319ab6=a315_0x319a();let _0x559b2e=_0x319ab6[_0x3db5e8];return _0x559b2e;}(function(_0x4bb5c3,_0x2a65e0){const _0x31f2f1=a315_0x559b,_0x30822f=_0x4bb5c3();while(!![]){try{const _0x557a20=parseInt(_0x31f2f1(0x173))/0x1+-parseInt(_0x31f2f1(0x178))/0x2+-parseInt(_0x31f2f1(0x16e))/0x3*(-parseInt(_0x31f2f1(0x16f))/0x4)+-parseInt(_0x31f2f1(0x17f))/0x5*(parseInt(_0x31f2f1(0x185))/0x6)+-parseInt(_0x31f2f1(0x175))/0x7+-parseInt(_0x31f2f1(0x170))/0x8+-parseInt(_0x31f2f1(0x16c))/0x9*(-parseInt(_0x31f2f1(0x171))/0xa);if(_0x557a20===_0x2a65e0)break;else _0x30822f['push'](_0x30822f['shift']());}catch(_0x10fa76){_0x30822f['push'](_0x30822f['shift']());}}}(a315_0x319a,0xc2a04));import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0x1ee3f8,_0x3885ae){const _0x18d3f6=a315_0x559b;if(!_0x1ee3f8['strictFlags'])return;const _0x13d817=new Set([_0x18d3f6(0x182),_0x18d3f6(0x180)]),_0x360efa=GLOBAL_FLAGS[_0x18d3f6(0x17e)](_0x572ae2=>PIPELINE_FLAG_NAMES[_0x18d3f6(0x172)](_0x572ae2[_0x18d3f6(0x174)]));for(const _0x2893d3 of[..._0x1ee3f8['flags'],..._0x360efa]){addFlagCandidates(_0x13d817,_0x2893d3);}for(const [_0x4a274c,_0x40e9ce]of Object['entries'](_0x3885ae)){if(!isExplicitValue(_0x40e9ce)||_0x13d817['has'](_0x4a274c))continue;const _0x4d9a9b=GLOBAL_FLAGS[_0x18d3f6(0x176)](_0x43ef81=>_0x43ef81[_0x18d3f6(0x16d)]===_0x4a274c)?.[_0x18d3f6(0x174)]??toKebabCase(_0x4a274c);throw CliErrors[_0x18d3f6(0x186)]('Unsupported\x20flag\x20--'+_0x4d9a9b+'\x20for\x20`'+CLI_BIN_NAME+'\x20'+_0x1ee3f8[_0x18d3f6(0x17d)]+'\x20'+_0x1ee3f8[_0x18d3f6(0x16b)]+'`.',_0x18d3f6(0x17a)+CLI_BIN_NAME+'\x20'+_0x1ee3f8[_0x18d3f6(0x17d)]+'\x20'+_0x1ee3f8['command']+'\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.');}}function addFlagCandidates(_0x438635,_0x5e4c2c){const _0x1227d1=a315_0x559b,_0x5b4718=_0x1227d1(0x16d)in _0x5e4c2c?[_0x5e4c2c[_0x1227d1(0x174)],_0x5e4c2c[_0x1227d1(0x16d)]]:[_0x5e4c2c['name'],_0x5e4c2c[_0x1227d1(0x17c)]];for(const _0x2fec35 of _0x5b4718){if(!_0x2fec35)continue;_0x438635[_0x1227d1(0x177)](_0x2fec35),_0x438635['add'](toCamelCase(_0x2fec35));}}function isExplicitValue(_0x563eb8){const _0x326c36=a315_0x559b;return _0x563eb8!==undefined&&_0x563eb8!==null&&_0x563eb8!==![]&&(!Array[_0x326c36(0x179)](_0x563eb8)||_0x563eb8[_0x326c36(0x183)]>0x0);}function a315_0x319a(){const _0x378a31=['filter','5uJJAvr','version','$1-$2','help','length','replace','7947366eTeJIr','validation','command','224892AQJtqn','meowKey','540417nriUGp','24XZOqDM','7991768JArTTn','1030ooXjZZ','has','966593vaJOkx','name','8692670PXUWyx','find','add','517322WLxKbx','isArray','Run\x20`','toLowerCase','alias','service'];a315_0x319a=function(){return _0x378a31;};return a315_0x319a();}function toCamelCase(_0x245acf){return _0x245acf['replace'](/-([a-z])/g,(_0x3521c2,_0x482d79)=>_0x482d79['toUpperCase']());}function toKebabCase(_0x2c93fe){const _0x1878d3=a315_0x559b;return _0x2c93fe[_0x1878d3(0x184)](/([a-z0-9])([A-Z])/g,_0x1878d3(0x181))[_0x1878d3(0x17b)]();}
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 +1 @@
1
- (function(_0xd0b8ec,_0x3c3d7a){var _0x1f209d=a316_0x5809,_0x2090b7=_0xd0b8ec();while(!![]){try{var _0x56010e=parseInt(_0x1f209d(0x123))/0x1*(-parseInt(_0x1f209d(0x11c))/0x2)+parseInt(_0x1f209d(0x11a))/0x3+parseInt(_0x1f209d(0x11e))/0x4+-parseInt(_0x1f209d(0x120))/0x5*(-parseInt(_0x1f209d(0x124))/0x6)+-parseInt(_0x1f209d(0x121))/0x7*(parseInt(_0x1f209d(0x11b))/0x8)+-parseInt(_0x1f209d(0x122))/0x9*(parseInt(_0x1f209d(0x11f))/0xa)+parseInt(_0x1f209d(0x125))/0xb*(parseInt(_0x1f209d(0x11d))/0xc);if(_0x56010e===_0x3c3d7a)break;else _0x2090b7['push'](_0x2090b7['shift']());}catch(_0x4eab82){_0x2090b7['push'](_0x2090b7['shift']());}}}(a316_0x4df9,0x94416));function a316_0x5809(_0x51d8a6,_0x42e10d){_0x51d8a6=_0x51d8a6-0x11a;var _0x4df9f7=a316_0x4df9();var _0x580954=_0x4df9f7[_0x51d8a6];return _0x580954;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';function a316_0x4df9(){var _0x1d457b=['82332qThllI','5646BQFwwe','3705493MyhJiJ','2527437XPvBLo','872HfPSeA','6BOneFl','12YZLqNy','3016636mBvucM','10vxGMzV','100wPFzzc','55258itkvGr','2138625KrRakt'];a316_0x4df9=function(){return _0x1d457b;};return a316_0x4df9();}
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,4 +1,4 @@
1
- export declare const VERSION = "2.5.4-beta.5";
2
- export declare const GIT_TAG = "v2.5.4-beta.5";
3
- export declare const GIT_COMMIT = "ec2ea154";
4
- export declare const BUILD_TIME = "2026-09-29T02:37:27.911Z";
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 +1 @@
1
- const a317_0x1476c1=a317_0x1448;(function(_0x5985a3,_0x473832){const _0x42e87a=a317_0x1448,_0x3f29f4=_0x5985a3();while(!![]){try{const _0x4fc678=parseInt(_0x42e87a(0x17b))/0x1*(parseInt(_0x42e87a(0x180))/0x2)+parseInt(_0x42e87a(0x186))/0x3+-parseInt(_0x42e87a(0x179))/0x4*(-parseInt(_0x42e87a(0x181))/0x5)+-parseInt(_0x42e87a(0x17c))/0x6*(-parseInt(_0x42e87a(0x17e))/0x7)+-parseInt(_0x42e87a(0x178))/0x8*(parseInt(_0x42e87a(0x182))/0x9)+-parseInt(_0x42e87a(0x17f))/0xa+-parseInt(_0x42e87a(0x17a))/0xb*(parseInt(_0x42e87a(0x183))/0xc);if(_0x4fc678===_0x473832)break;else _0x3f29f4['push'](_0x3f29f4['shift']());}catch(_0x5dcd63){_0x3f29f4['push'](_0x3f29f4['shift']());}}}(a317_0x36cd,0xd74fc));function a317_0x36cd(){const _0x36cae9=['16387yyVidV','9824700WqvQLx','14822gocEGb','1880nJxawY','596907pyJroy','2240196SYiBMV','v2.5.4-beta.5','2026-09-29T02:37:27.911Z','2159994LRdacQ','16FoZtlJ','9188ZpeaNc','77AkFEZP','47GLzxYt','3516ovPfrp','ec2ea154'];a317_0x36cd=function(){return _0x36cae9;};return a317_0x36cd();}export const VERSION='2.5.4-beta.5';export const GIT_TAG=a317_0x1476c1(0x184);function a317_0x1448(_0x144f53,_0x4a50ce){_0x144f53=_0x144f53-0x178;const _0x36cd53=a317_0x36cd();let _0x144848=_0x36cd53[_0x144f53];return _0x144848;}export const GIT_COMMIT=a317_0x1476c1(0x17d);export const BUILD_TIME=a317_0x1476c1(0x185);
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 +1 @@
1
- const a318_0x58d9e7=a318_0x413e;(function(_0x3ed4f8,_0x28f5fa){const _0x2c52a3=a318_0x413e,_0x81b391=_0x3ed4f8();while(!![]){try{const _0x159dc4=parseInt(_0x2c52a3(0xa4))/0x1*(parseInt(_0x2c52a3(0xaa))/0x2)+parseInt(_0x2c52a3(0x86))/0x3*(parseInt(_0x2c52a3(0x9d))/0x4)+parseInt(_0x2c52a3(0xa6))/0x5*(-parseInt(_0x2c52a3(0x85))/0x6)+-parseInt(_0x2c52a3(0x97))/0x7*(parseInt(_0x2c52a3(0x8d))/0x8)+-parseInt(_0x2c52a3(0x9c))/0x9+-parseInt(_0x2c52a3(0xae))/0xa+parseInt(_0x2c52a3(0x9f))/0xb;if(_0x159dc4===_0x28f5fa)break;else _0x81b391['push'](_0x81b391['shift']());}catch(_0x4ce664){_0x81b391['push'](_0x81b391['shift']());}}}(a318_0x9ab8,0x2821f));export const ROUTING_CATALOG_DIGEST=a318_0x58d9e7(0x99);export const DEFAULT_REGION='cn';function a318_0x9ab8(){const _0x4d9953=['https://kb-service.lovrabet.id','10639387nBhkqQ','https://g.lovrabet.ai','https://g.alicdn.com/code/lib','https://dev.lovrabet.ai','https://daily-runtime.lovrabet.com','157JqfiTC','https://cdnjs.cloudflare.com/ajax/libs','5odFJgz','https://dev.lovrabet.com','https://app.lovrabet.ai','Global','1724okueio','https://api.lovrabet.id','https://api.lovrabet.com','Mainland\x20China','2854600bNUpsz','https://skills.lovrabet.id','757338WQHYrR','3iwivTD','https://api.lovrabet.ai','https://dev.lovrabet.id','https://g.lovrabet.id','https://daily-runtime.lovrabet.ai','https://user.lovrabet.ai','https://runtime.lovrabet.com','2040EWevUb','https://skills.lovrabet.com','https://app.lovrabet.id','https://g.lovrabet.com','https://runtime.lovrabet.id','indonesia','https://runtime.lovrabet.ai','https://skills.lovrabet.ai','https://user-daily.lovrabet.ai','https://daily.lovrabet.ai','8533ahozFb','Indonesia','57d346b80b12ca567af9d86dd7f8c02a0c27fe15d4944c8345add2cc6134c587','https://daily-api.lovrabet.com','global','2919969TszhkN','435204MAmhyf'];a318_0x9ab8=function(){return _0x4d9953;};return a318_0x9ab8();}export const REGION_VALUES=['cn','id','global'];export const ENABLED_REGION_VALUES=['cn','id',a318_0x58d9e7(0x9b)];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a318_0x58d9e7(0xad),'aliases':['china'],'serviceDomains':{'production':{'user':'https://user.lovrabet.com','api':'https://api.lovrabet.com','runtime':a318_0x58d9e7(0x8c),'skill':a318_0x58d9e7(0x8e),'kb':a318_0x58d9e7(0xac),'kbService':'https://kb-service.lovrabet.com','app':'https://app.lovrabet.com'},'daily':{'user':'https://user-daily.lovrabet.com','api':a318_0x58d9e7(0x9a),'runtime':a318_0x58d9e7(0xa3),'skill':'https://skills-daily.lovrabet.com','kb':a318_0x58d9e7(0x9a),'kbService':'https://kb-service-daily.lovrabet.com','app':'https://daily.lovrabet.com'}},'cdn':{'libraries':a318_0x58d9e7(0xa1),'lovrabet':a318_0x58d9e7(0x90)},'local':{'origin':a318_0x58d9e7(0xa7)}},'id':{'enabled':!![],'label':a318_0x58d9e7(0x98),'aliases':[a318_0x58d9e7(0x92)],'serviceDomains':{'production':{'user':'https://user.lovrabet.id','api':a318_0x58d9e7(0xab),'runtime':a318_0x58d9e7(0x91),'skill':a318_0x58d9e7(0xaf),'kb':a318_0x58d9e7(0xab),'kbService':a318_0x58d9e7(0x9e),'app':a318_0x58d9e7(0x8f)}},'cdn':{'libraries':a318_0x58d9e7(0xa5),'lovrabet':a318_0x58d9e7(0x89)},'local':{'origin':a318_0x58d9e7(0x88)}},'global':{'enabled':!![],'label':a318_0x58d9e7(0xa9),'aliases':[],'serviceDomains':{'production':{'user':a318_0x58d9e7(0x8b),'api':a318_0x58d9e7(0x87),'runtime':a318_0x58d9e7(0x93),'skill':a318_0x58d9e7(0x94),'kb':'https://api.lovrabet.ai','app':a318_0x58d9e7(0xa8)},'daily':{'user':a318_0x58d9e7(0x95),'api':'https://daily-api.lovrabet.ai','runtime':a318_0x58d9e7(0x8a),'skill':'https://skills-daily.lovrabet.ai','kb':'https://daily-api.lovrabet.ai','app':a318_0x58d9e7(0x96)}},'cdn':{'libraries':a318_0x58d9e7(0xa5),'lovrabet':a318_0x58d9e7(0xa0)},'local':{'origin':a318_0x58d9e7(0xa2)}}};function a318_0x413e(_0x531a57,_0xad9d31){_0x531a57=_0x531a57-0x85;const _0x9ab847=a318_0x9ab8();let _0x413e0f=_0x9ab847[_0x531a57];return _0x413e0f;}export const REGION_ALIASES={'china':'cn','indonesia':'id'};
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 +1 @@
1
- const a319_0x2139b4=a319_0x44dc;(function(_0x9112b,_0x4d4a6c){const _0x1d2abc=a319_0x44dc,_0x34c3ea=_0x9112b();while(!![]){try{const _0x1412b0=parseInt(_0x1d2abc(0x173))/0x1+parseInt(_0x1d2abc(0x16e))/0x2+parseInt(_0x1d2abc(0x17a))/0x3+-parseInt(_0x1d2abc(0x180))/0x4*(parseInt(_0x1d2abc(0x17b))/0x5)+-parseInt(_0x1d2abc(0x17e))/0x6+-parseInt(_0x1d2abc(0x16d))/0x7*(-parseInt(_0x1d2abc(0x182))/0x8)+parseInt(_0x1d2abc(0x175))/0x9*(-parseInt(_0x1d2abc(0x170))/0xa);if(_0x1412b0===_0x4d4a6c)break;else _0x34c3ea['push'](_0x34c3ea['shift']());}catch(_0x20e292){_0x34c3ea['push'](_0x34c3ea['shift']());}}}(a319_0x381e,0x6f869));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a319_0x2139b4(0x177);export const ENTERPRISE_ROUTING_PROTOCOL=a319_0x2139b4(0x16f);export const ENTERPRISE_ROUTING_KIND=a319_0x2139b4(0x16c);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a319_0x2139b4(0x176),'apiDomain',a319_0x2139b4(0x181),a319_0x2139b4(0x17d),a319_0x2139b4(0x17f),a319_0x2139b4(0x171),a319_0x2139b4(0x178),a319_0x2139b4(0x17c),a319_0x2139b4(0x172)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a319_0x2139b4(0x176),a319_0x2139b4(0x174),a319_0x2139b4(0x181),a319_0x2139b4(0x17d),'kbDomain',a319_0x2139b4(0x178)];function a319_0x381e(){const _0x1eadac=['lovrabet-routing/v1','170UxumSF','kbServiceDomain','certificateDomain','758815SbpGZD','apiDomain','9306hosVwT','userDomain','a03fe188b2b34518efc5668666c0001d20354882cd7dd70afec902dffe1329c3','appDomain','lovrabet','416007liHpJs','178725BVULXQ','localDomain','skillDomain','3869226iiTWwK','kbDomain','96ofvJXo','runtimeDomain','3672tGKERi','libraries','enterprise','5397FLiSAp','1451530gxxTFH'];a319_0x381e=function(){return _0x1eadac;};return a319_0x381e();}export const ENTERPRISE_ROUTING_CDN_FIELDS=['libraries',a319_0x2139b4(0x179)];function a319_0x44dc(_0x34c9dc,_0x5a4fab){_0x34c9dc=_0x34c9dc-0x16c;const _0x381edc=a319_0x381e();let _0x44dc22=_0x381edc[_0x34c9dc];return _0x44dc22;}export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=[a319_0x2139b4(0x183),a319_0x2139b4(0x179)];
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)];
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x3e4142,_0x45573b){var _0x31e7f5=a320_0xd666,_0x45dfdd=_0x3e4142();while(!![]){try{var _0x16d50f=-parseInt(_0x31e7f5(0xf6))/0x1+-parseInt(_0x31e7f5(0xf2))/0x2*(parseInt(_0x31e7f5(0xf7))/0x3)+-parseInt(_0x31e7f5(0xf5))/0x4+parseInt(_0x31e7f5(0xf1))/0x5+-parseInt(_0x31e7f5(0xf8))/0x6*(parseInt(_0x31e7f5(0xef))/0x7)+parseInt(_0x31e7f5(0xfa))/0x8+-parseInt(_0x31e7f5(0xfc))/0x9*(-parseInt(_0x31e7f5(0xf0))/0xa);if(_0x16d50f===_0x45573b)break;else _0x45dfdd['push'](_0x45dfdd['shift']());}catch(_0xecfacd){_0x45dfdd['push'](_0x45dfdd['shift']());}}}(a320_0x1a43,0x5988e));function a320_0x1a43(){var _0x1aa2fa=['log','4396976ceZmTH','\x20--help','11262681cbmrBH','\x20to\x20view\x20available\x20commands.','\x20\x20Use\x20','7SHWUAm','10EDdmHk','2591955wSFsKq','6FSXnPw','green','bold','2864972TLaojZ','590507MiGoqi','586491qdyGbz','356682txEuqf'];a320_0x1a43=function(){return _0x1aa2fa;};return a320_0x1a43();}import a320_0x6189b6 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a320_0xd666(_0x49f9ea,_0x2c9233){_0x49f9ea=_0x49f9ea-0xed;var _0x1a4312=a320_0x1a43();var _0xd66605=_0x1a4312[_0x49f9ea];return _0xd66605;}export function showHelp(){var _0x43c908=a320_0xd666;console['log'](),console[_0x43c908(0xf9)](a320_0x6189b6[_0x43c908(0xf3)][_0x43c908(0xf4)]('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console['log'](_0x43c908(0xee)+a320_0x6189b6['green']['bold'](CLI_BIN_NAME+_0x43c908(0xfb))+_0x43c908(0xed)),console[_0x43c908(0xf9)]();}
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 +1 @@
1
- (function(_0x112f36,_0x414724){const _0x4e179d=a321_0x43c6,_0x34ca6d=_0x112f36();while(!![]){try{const _0x5407c5=parseInt(_0x4e179d(0x1f6))/0x1+-parseInt(_0x4e179d(0x1fa))/0x2*(-parseInt(_0x4e179d(0x1f1))/0x3)+-parseInt(_0x4e179d(0x1ed))/0x4*(parseInt(_0x4e179d(0x1eb))/0x5)+-parseInt(_0x4e179d(0x1fb))/0x6*(-parseInt(_0x4e179d(0x1ec))/0x7)+-parseInt(_0x4e179d(0x1f0))/0x8*(-parseInt(_0x4e179d(0x1fc))/0x9)+-parseInt(_0x4e179d(0x1ea))/0xa+-parseInt(_0x4e179d(0x1e6))/0xb*(-parseInt(_0x4e179d(0x1f7))/0xc);if(_0x5407c5===_0x414724)break;else _0x34ca6d['push'](_0x34ca6d['shift']());}catch(_0x24d941){_0x34ca6d['push'](_0x34ca6d['shift']());}}}(a321_0x549c,0x62da4));import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x301cf9={}){const _0x2ce846=a321_0x43c6,_0x3e999d=installBuiltinSkill(_0x301cf9);if(_0x3e999d['ok']){const _0x31a1de=_0x3e999d['changed']?_0x2ce846(0x1ef):_0x2ce846(0x1f2),_0x5210ac=_0x3e999d[_0x2ce846(0x1e5)]?_0x2ce846(0x1f5)+_0x3e999d[_0x2ce846(0x1e5)]:_0x2ce846(0x1f3);return console[_0x2ce846(0x1e2)]('Rabetbase\x20Built-in\x20Skill\x20'+_0x3e999d[_0x2ce846(0x1e4)]+'\x20'+_0x31a1de+_0x5210ac),_0x3e999d;}const _0x52789f=_0x2ce846(0x1e8)+(_0x3e999d[_0x2ce846(0x1f9)]??_0x2ce846(0x1f8))+']\x20'+(_0x3e999d[_0x2ce846(0x1e7)]??_0x2ce846(0x1e1))+'.\x20'+(_0x2ce846(0x1e3)+_0x3e999d[_0x2ce846(0x1f4)]);if(_0x3e999d['code']===_0x2ce846(0x1e9))throw new Error(_0x52789f);return console[_0x2ce846(0x1ee)](_0x52789f),_0x3e999d;}function a321_0x43c6(_0x1c86d0,_0x18ca1f){_0x1c86d0=_0x1c86d0-0x1e1;const _0x549c8a=a321_0x549c();let _0x43c679=_0x549c8a[_0x1c86d0];return _0x43c679;}function a321_0x549c(){const _0x332faf=['error','[BUILTIN_SKILL_INSTALL_','SOURCE_INVALID','2650130IHaqcg','726815knaeYS','868BlgNFh','16rpClTG','warn','installed','232264RnSSUd','5703UEUVBf','already\x20current','\x20via\x20skills@latest','repairCommand','\x20at\x20','197223asQlur','12uZkWdL','FAILED','code','626uiwnCA','11874fvZbVW','36LMNiVB','Installation\x20failed','log','Repair\x20with:\x20','skillVersion','installedPath','1073611FVulvI'];a321_0x549c=function(){return _0x332faf;};return a321_0x549c();}
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 +1 @@
1
- (function(_0x181ff8,_0x490100){const _0x55b8e0=a322_0x2423,_0x2f032c=_0x181ff8();while(!![]){try{const _0x50ec2f=-parseInt(_0x55b8e0(0x189))/0x1*(-parseInt(_0x55b8e0(0x18a))/0x2)+parseInt(_0x55b8e0(0x17f))/0x3+-parseInt(_0x55b8e0(0x182))/0x4*(-parseInt(_0x55b8e0(0x179))/0x5)+parseInt(_0x55b8e0(0x186))/0x6*(-parseInt(_0x55b8e0(0x17c))/0x7)+parseInt(_0x55b8e0(0x17a))/0x8*(-parseInt(_0x55b8e0(0x17e))/0x9)+parseInt(_0x55b8e0(0x178))/0xa+-parseInt(_0x55b8e0(0x185))/0xb;if(_0x50ec2f===_0x490100)break;else _0x2f032c['push'](_0x2f032c['shift']());}catch(_0xdf9a02){_0x2f032c['push'](_0x2f032c['shift']());}}}(a322_0xa515,0xbc69a));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x258ce1,_0x331801,_0x38416b){const _0x11d144=a322_0x2423,_0x38f3b8=normalizeText(_0x258ce1[_0x11d144(0x184)],DESCRIPTION_MAX_LENGTH),_0x3eb60a=_0x38f3b8||normalizeText(defaultDescription(requireWriteRisk(_0x258ce1),_0x331801),DESCRIPTION_MAX_LENGTH);return{'operation':_0x331801,'risk':requireWriteRisk(_0x258ce1),'description':_0x3eb60a,..._0x38416b?{'signal':_0x38416b}:{}};}function a322_0xa515(){const _0x54b7c4=['6051635NqhDbj','164240mFVXVP','This\x20will\x20run\x20the\x20write\x20','11417oSyuyf','replace','468tzVAKf','321468aBLlFF','string','high-risk-write','4vpFbDy','risk','confirmationDescription','12739848oiiWvm','78RYBwOq','write','This\x20will\x20run\x20the\x20high-risk\x20write\x20','892rMFvFE','3038HuoTcm','trim','3462380rWvixT'];a322_0xa515=function(){return _0x54b7c4;};return a322_0xa515();}function requireWriteRisk(_0x4e7546){const _0x388e19=a322_0x2423;if(_0x4e7546[_0x388e19(0x183)]===_0x388e19(0x187)||_0x4e7546[_0x388e19(0x183)]===_0x388e19(0x181))return _0x4e7546[_0x388e19(0x183)];throw new Error('Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.');}function defaultDescription(_0x4afbb6,_0x42bd17){const _0x5e33f9=a322_0x2423;if(_0x4afbb6===_0x5e33f9(0x181))return _0x5e33f9(0x188)+_0x42bd17+'.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.';return _0x5e33f9(0x17b)+_0x42bd17+'.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.';}function a322_0x2423(_0x228ba7,_0x244dfc){_0x228ba7=_0x228ba7-0x178;const _0xa51542=a322_0xa515();let _0x242366=_0xa51542[_0x228ba7];return _0x242366;}function normalizeText(_0x2a03ba,_0x18db19){const _0x3258d8=a322_0x2423;if(typeof _0x2a03ba!==_0x3258d8(0x180))return'';return _0x2a03ba[_0x3258d8(0x17d)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x3258d8(0x17d)](/\s+/g,'\x20')[_0x3258d8(0x18b)]()['slice'](0x0,_0x18db19);}
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 +1 @@
1
- function a323_0x115b(_0x30126a,_0x110fda){_0x30126a=_0x30126a-0x120;const _0x5c68f5=a323_0x5c68();let _0x115b86=_0x5c68f5[_0x30126a];return _0x115b86;}(function(_0xf6014e,_0x41301c){const _0x527c44=a323_0x115b,_0x3a25b2=_0xf6014e();while(!![]){try{const _0x2e0702=-parseInt(_0x527c44(0x130))/0x1+-parseInt(_0x527c44(0x12c))/0x2+-parseInt(_0x527c44(0x133))/0x3*(-parseInt(_0x527c44(0x12a))/0x4)+-parseInt(_0x527c44(0x12e))/0x5+-parseInt(_0x527c44(0x123))/0x6*(-parseInt(_0x527c44(0x131))/0x7)+-parseInt(_0x527c44(0x135))/0x8*(parseInt(_0x527c44(0x126))/0x9)+parseInt(_0x527c44(0x121))/0xa*(parseInt(_0x527c44(0x120))/0xb);if(_0x2e0702===_0x41301c)break;else _0x3a25b2['push'](_0x3a25b2['shift']());}catch(_0x427692){_0x3a25b2['push'](_0x3a25b2['shift']());}}}(a323_0x5c68,0x91b27));export function canonicalRabetbaseOperation(_0x495303){const _0x381b20=a323_0x115b;return[_0x495303['service'],..._0x495303[_0x381b20(0x122)][_0x381b20(0x125)]()['split'](/\s+/)][_0x381b20(0x129)](Boolean)['join']('.');}export function createRabetbaseWriteMetadata(_0xefce25,_0x5edf21,_0x635fbe,_0x542f45){const _0x5ddb7f=a323_0x115b;if(_0x542f45||_0x635fbe['ok']!==!![]||hasUnresolvedConflicts(_0x635fbe)||_0xefce25[_0x5ddb7f(0x127)]!==_0x5ddb7f(0x12b)&&_0xefce25[_0x5ddb7f(0x127)]!==_0x5ddb7f(0x12f))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x5ddb7f(0x134),'operation':_0x5edf21,'risk':_0xefce25[_0x5ddb7f(0x127)]}}};}function hasUnresolvedConflicts(_0x5f3352){const _0x24b4d0=a323_0x115b,_0x200a79=_0x5f3352[_0x24b4d0(0x124)];return Boolean(_0x200a79&&typeof _0x200a79===_0x24b4d0(0x132)&&!Array[_0x24b4d0(0x128)](_0x200a79)&&Array[_0x24b4d0(0x128)](_0x200a79[_0x24b4d0(0x12d)])&&_0x200a79['conflicts']['length']>0x0);}function a323_0x5c68(){const _0x5f5096=['1029372hsTIHU','conflicts','159960dGmVlN','high-risk-write','223808PzHZKD','23296UTGOPU','object','3VKkCZP','rabetbase.write.completed','296Gmzzkr','321101HwUfsj','110sVVcPn','command','828lcBcKG','data','trim','101862NlFLgX','risk','isArray','filter','4022648mSlBWY','write'];a323_0x5c68=function(){return _0x5f5096;};return a323_0x5c68();}
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 +1 @@
1
- function a324_0x12fa(_0x3a6e9d,_0x436d1e){_0x3a6e9d=_0x3a6e9d-0x123;const _0x4f4b23=a324_0x4f4b();let _0x12fa87=_0x4f4b23[_0x3a6e9d];return _0x12fa87;}(function(_0x3b9b0e,_0x1cc2f5){const _0x5e35c8=a324_0x12fa,_0xb32d01=_0x3b9b0e();while(!![]){try{const _0xef6f19=parseInt(_0x5e35c8(0x138))/0x1*(-parseInt(_0x5e35c8(0x143))/0x2)+-parseInt(_0x5e35c8(0x123))/0x3+parseInt(_0x5e35c8(0x149))/0x4*(parseInt(_0x5e35c8(0x135))/0x5)+parseInt(_0x5e35c8(0x145))/0x6*(parseInt(_0x5e35c8(0x126))/0x7)+parseInt(_0x5e35c8(0x12c))/0x8*(-parseInt(_0x5e35c8(0x134))/0x9)+-parseInt(_0x5e35c8(0x128))/0xa*(-parseInt(_0x5e35c8(0x148))/0xb)+parseInt(_0x5e35c8(0x127))/0xc*(parseInt(_0x5e35c8(0x144))/0xd);if(_0xef6f19===_0x1cc2f5)break;else _0xb32d01['push'](_0xb32d01['shift']());}catch(_0x5b0080){_0xb32d01['push'](_0xb32d01['shift']());}}}(a324_0x4f4b,0xa82c8));import{buildConfigFromFlags,initGlobalEnvironment,isRoutingRecoveryService}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';function a324_0x4f4b(){const _0x501011=['data','7483nPpxHo','12AZdnnM','112070dZCwdm','command','Rabetbase\x20invocation\x20aborted.','confirmation','8mkKSnw','format','risk','execute','dry-run','definition','service','dryRun','3824649tswNld','405cPAJFA','result','high-risk-write','39oSvJsR','rawFlags','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','signal','present','args','yes','AbortError','confirm','message','presentation','40318wHCeal','27336569SbdOLc','894ySUVOL','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','isNonInteractive','121JQGkKp','35212KsqiBt','write','3595236vePOhW','reason'];a324_0x4f4b=function(){return _0x501011;};return a324_0x4f4b();}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:_0x5e6e3f,command:_0x30f3e7,risk:_0x226b67,dryRun:_0x475e7e}){const _0x243e0c=a324_0x12fa;return JSON['stringify']({'ok':_0x5e6e3f['ok'],'command':_0x30f3e7,'risk':_0x226b67,..._0x475e7e?{'dryRun':!![]}:{},..._0x5e6e3f[_0x243e0c(0x125)]!==undefined?{'data':_0x5e6e3f[_0x243e0c(0x125)]}:{},..._0x5e6e3f['message']?{'message':_0x5e6e3f[_0x243e0c(0x141)]}:{}});}};export async function invokeRabetbase(_0x5acd58,_0x5e0baa){throwIfAborted(_0x5e0baa['signal']);const _0x22b5e5=await resolveRabetbaseInvocation(_0x5acd58),_0x55b2e2=canonicalRabetbaseOperation(_0x22b5e5['definition']);return await confirmWriteBeforeQueue(_0x22b5e5['definition'],_0x22b5e5['rawFlags'],_0x55b2e2,_0x5e0baa),runSerialized(async()=>{const _0x10672e=a324_0x12fa,_0x34ee7b={};try{throwIfAborted(_0x5e0baa['signal']);const _0x329351=buildConfigFromFlags(_0x22b5e5[_0x10672e(0x139)]);!isRoutingRecoveryService(_0x22b5e5['definition'][_0x10672e(0x132)])&&await initGlobalEnvironment(_0x329351);const _0x2cba76=createPipelineEnv(_0x329351,{..._0x22b5e5['rawFlags'],'yes':_0x22b5e5[_0x10672e(0x131)][_0x10672e(0x12e)]==='high-risk-write'?!![]:_0x22b5e5['rawFlags'][_0x10672e(0x13e)],'nonInteractive':!![]},_0x22b5e5[_0x10672e(0x13d)]);_0x2cba76[_0x10672e(0x147)]=!![],_0x2cba76['riskLevel']=_0x10672e(0x137);const _0x5df68e=withAbortSignal(_0x22b5e5[_0x10672e(0x131)],_0x5e0baa[_0x10672e(0x13b)]),_0x2109b0=createRabetbaseRunnerAdapter({'formatOutput'(_0x3fdaca,_0x8823dc){const _0x5e3ee0=_0x10672e;_0x34ee7b['result']=_0x3fdaca,_0x34ee7b[_0x5e3ee0(0x129)]=_0x8823dc[_0x5e3ee0(0x129)],_0x34ee7b[_0x5e3ee0(0x12e)]=_0x8823dc['risk'],_0x34ee7b[_0x5e3ee0(0x12d)]=_0x8823dc['format'],_0x34ee7b[_0x5e3ee0(0x133)]=_0x8823dc[_0x5e3ee0(0x133)]===!![];},async 'confirmHighRisk'(){const _0xbd8f0c=_0x10672e;throw new Error(_0xbd8f0c(0x13a));}});await runCommand(_0x5df68e,_0x2cba76,_0x2109b0);if(!_0x34ee7b[_0x10672e(0x136)]||!_0x34ee7b[_0x10672e(0x129)]||!_0x34ee7b[_0x10672e(0x12e)]||!_0x34ee7b['format'])throw new Error(_0x10672e(0x146));const _0x2d069a=_0x34ee7b['dryRun']===!![],_0x211ee7=_0x5e0baa[_0x10672e(0x142)]??defaultPresentation,_0x1028ca={'result':_0x34ee7b['result'],'command':_0x34ee7b['command'],'operation':_0x55b2e2,'risk':_0x34ee7b[_0x10672e(0x12e)],'format':_0x34ee7b[_0x10672e(0x12d)],'dryRun':_0x2d069a},_0x472297=createRabetbaseWriteMetadata(_0x22b5e5['definition'],_0x55b2e2,_0x34ee7b[_0x10672e(0x136)],_0x2d069a);let _0x5a7d2d;try{_0x5a7d2d=await _0x211ee7[_0x10672e(0x13c)](_0x1028ca);}catch(_0xadc781){if(!_0x472297||_0x211ee7===defaultPresentation)throw _0xadc781;_0x5a7d2d=await defaultPresentation['present'](_0x1028ca);}return{'operation':_0x55b2e2,'risk':_0x34ee7b[_0x10672e(0x12e)],'mode':_0x2d069a?_0x10672e(0x130):'execute','result':_0x34ee7b['result'],'output':_0x5a7d2d,..._0x472297?{'metadata':_0x472297}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x4ec65a,_0x4b894a,_0x57c64b,_0x4af88f){const _0x3880af=a324_0x12fa;if(_0x4b894a[_0x3880af(0x133)]===!![]||_0x4ec65a['risk']!==_0x3880af(0x14a)&&_0x4ec65a[_0x3880af(0x12e)]!=='high-risk-write')return;await _0x4af88f[_0x3880af(0x12b)][_0x3880af(0x140)](buildRabetbaseConfirmationRequest(_0x4ec65a,_0x57c64b,_0x4af88f['signal']));}function withAbortSignal(_0x4d3cfd,_0x102a26){return{..._0x4d3cfd,async 'execute'(_0x4a2329){const _0x67369b=a324_0x12fa;return throwIfAborted(_0x102a26),_0x4d3cfd[_0x67369b(0x12f)]({..._0x4a2329,'signal':_0x102a26});}};}function throwIfAborted(_0x5864db){const _0x187f48=a324_0x12fa;if(_0x5864db?.['aborted'])throw _0x5864db[_0x187f48(0x124)]instanceof Error?_0x5864db[_0x187f48(0x124)]:new DOMException(_0x187f48(0x12a),_0x187f48(0x13f));}
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 +1 @@
1
- function a325_0x50a7(_0x5640e7,_0x38e2c3){_0x5640e7=_0x5640e7-0x91;const _0x265b1a=a325_0x265b();let _0x50a7d7=_0x265b1a[_0x5640e7];return _0x50a7d7;}const a325_0x19934b=a325_0x50a7;(function(_0x3a54f0,_0x38e022){const _0x51a556=a325_0x50a7,_0x20b1b3=_0x3a54f0();while(!![]){try{const _0x4c69ce=parseInt(_0x51a556(0x9c))/0x1*(parseInt(_0x51a556(0x9a))/0x2)+parseInt(_0x51a556(0x93))/0x3+-parseInt(_0x51a556(0x96))/0x4+parseInt(_0x51a556(0x91))/0x5*(-parseInt(_0x51a556(0x99))/0x6)+parseInt(_0x51a556(0x9d))/0x7+-parseInt(_0x51a556(0x95))/0x8*(parseInt(_0x51a556(0x97))/0x9)+parseInt(_0x51a556(0x94))/0xa*(parseInt(_0x51a556(0x98))/0xb);if(_0x4c69ce===_0x38e022)break;else _0x20b1b3['push'](_0x20b1b3['shift']());}catch(_0x1b93a1){_0x20b1b3['push'](_0x20b1b3['shift']());}}}(a325_0x265b,0x797c3));let tail=Promise[a325_0x19934b(0x92)]();function a325_0x265b(){const _0x571a8b=['6130MOsPci','201160TwwXON','3555440uslmRc','72thxSYo','5269lRDmNn','11388IxjUnS','3486EHcvxo','catch','409PqRBAj','4916667ufMRMB','830KZummb','resolve','581388tbQRsa'];a325_0x265b=function(){return _0x571a8b;};return a325_0x265b();}export async function runSerialized(_0x5a84b7){const _0x26ced9=a325_0x19934b,_0x4880d4=tail;let _0x5530de;tail=new Promise(_0x5db12b=>{_0x5530de=_0x5db12b;}),await _0x4880d4[_0x26ced9(0x9b)](()=>undefined);try{return await _0x5a84b7();}finally{_0x5530de();}}
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 +1 @@
1
- (function(_0xda7214,_0x4abd46){const _0x2bc6c0=a326_0x1533,_0xc537f2=_0xda7214();while(!![]){try{const _0x495b91=-parseInt(_0x2bc6c0(0x1d6))/0x1+parseInt(_0x2bc6c0(0x1df))/0x2*(parseInt(_0x2bc6c0(0x1e6))/0x3)+-parseInt(_0x2bc6c0(0x1d8))/0x4*(parseInt(_0x2bc6c0(0x1eb))/0x5)+-parseInt(_0x2bc6c0(0x1d3))/0x6*(-parseInt(_0x2bc6c0(0x1e4))/0x7)+parseInt(_0x2bc6c0(0x1ea))/0x8+parseInt(_0x2bc6c0(0x1dc))/0x9*(-parseInt(_0x2bc6c0(0x1e9))/0xa)+-parseInt(_0x2bc6c0(0x1d4))/0xb*(parseInt(_0x2bc6c0(0x1e7))/0xc);if(_0x495b91===_0x4abd46)break;else _0xc537f2['push'](_0xc537f2['shift']());}catch(_0x2c2240){_0xc537f2['push'](_0xc537f2['shift']());}}}(a326_0x1b20,0x43094));import a326_0x1fde6a from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a326_0x1533(_0x2b1f23,_0x3eed6d){_0x2b1f23=_0x2b1f23-0x1d3;const _0x1b2086=a326_0x1b20();let _0x1533d0=_0x1b2086[_0x2b1f23];return _0x1533d0;}import{assertSupportedCommandFlags}from'../framework/supported-flags.js';export async function resolveRabetbaseInvocation(_0x1790d1){const _0x5bd831=a326_0x1533,_0x52749e=a326_0x1fde6a('',{'importMeta':import.meta,'argv':[..._0x1790d1],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x4b27bd=[..._0x52749e[_0x5bd831(0x1e2)]],_0x4dd219=_0x52749e[_0x5bd831(0x1dd)],_0xafcf1f=_0x4b27bd[0x0];if(!_0xafcf1f)throw CliErrors[_0x5bd831(0x1d7)](_0x5bd831(0x1da));const _0x317c23=resolveRemovedCommand(_0xafcf1f,_0x4b27bd[0x1]);if(_0x317c23)throw CliErrors['validation'](_0x317c23[_0x5bd831(0x1de)],_0x317c23[_0x5bd831(0x1e5)]);if(_0xafcf1f===_0x5bd831(0x1e3))throw CliErrors[_0x5bd831(0x1d7)](_0x5bd831(0x1db),'Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.');if(!isKnownService(_0xafcf1f))throw CliErrors[_0x5bd831(0x1d5)](_0x4b27bd[_0x5bd831(0x1d9)]('\x20'));const _0x11e425=getServiceEntry(_0xafcf1f),_0x24929d=_0x4b27bd[0x1],_0x400409=_0x24929d||_0x11e425[_0x5bd831(0x1e0)];if(!_0x400409){if(_0x11e425[_0x5bd831(0x1e1)])return{'definition':_0x11e425[_0x5bd831(0x1e1)],'rawFlags':_0x4dd219,'args':[]};throw CliErrors[_0x5bd831(0x1d7)](_0x5bd831(0x1e8)+_0xafcf1f+'\x22.');}const _0x469bae=findDefinition(_0xafcf1f,_0x400409);if(_0x469bae)return assertSupportedCommandFlags(_0x469bae,_0x4dd219),{'definition':_0x469bae,'rawFlags':_0x4dd219,'args':_0x4b27bd['slice'](0x2)};if(_0x11e425['wildcardDef'])return{'definition':_0x11e425[_0x5bd831(0x1e1)],'rawFlags':_0x4dd219,'args':[_0x400409,..._0x4b27bd['slice'](0x2)]};throw CliErrors[_0x5bd831(0x1d5)](_0xafcf1f+'\x20'+_0x400409);}function a326_0x1b20(){const _0x106462=['271605mydHab','60eXgVXN','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','4598470rDAePv','4048128nbLdxu','50KtDRSP','30NzzviY','1184282eiDaHF','unknownCommand','85364ZLywjg','validation','10708OHQtwA','join','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','9vItiEs','flags','message','8VWNtDT','defaultCommand','wildcardDef','input','run','723401OCJZdW','hint'];a326_0x1b20=function(){return _0x106462;};return a326_0x1b20();}
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 +1 @@
1
- const a328_0x10ba2b=a328_0x245b;(function(_0x2c2c2f,_0x3344d2){const _0xe5092c=a328_0x245b,_0x32e400=_0x2c2c2f();while(!![]){try{const _0x193918=parseInt(_0xe5092c(0x1a8))/0x1+-parseInt(_0xe5092c(0x1a6))/0x2+parseInt(_0xe5092c(0x1d4))/0x3+parseInt(_0xe5092c(0x199))/0x4*(-parseInt(_0xe5092c(0x1a0))/0x5)+parseInt(_0xe5092c(0x1b8))/0x6+-parseInt(_0xe5092c(0x1bd))/0x7+parseInt(_0xe5092c(0x1a9))/0x8;if(_0x193918===_0x3344d2)break;else _0x32e400['push'](_0x32e400['shift']());}catch(_0x53169e){_0x32e400['push'](_0x32e400['shift']());}}}(a328_0x27da,0x6dc98));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';function a328_0x245b(_0x4cc145,_0x480b48){_0x4cc145=_0x4cc145-0x196;const _0x27dafc=a328_0x27da();let _0x245b0f=_0x27dafc[_0x4cc145];return _0x245b0f;}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=a328_0x10ba2b(0x1b2),debug=debuglog(a328_0x10ba2b(0x1ba));function frontmatterValue(_0x4fc57f,_0x17f443){const _0x45dd6e=a328_0x10ba2b;return _0x4fc57f[_0x45dd6e(0x1a1)](new RegExp('^'+_0x17f443+_0x45dd6e(0x1d3),'m'))?.[0x1]?.['trim']()??'';}function listFiles(_0x11f6d7,_0x21d1cf=_0x11f6d7){const _0x39593f=a328_0x10ba2b;return readdirSync(_0x21d1cf,{'withFileTypes':!![]})[_0x39593f(0x1cc)](_0x5e3314=>{const _0x1980c3=_0x39593f,_0xa23b92=join(_0x21d1cf,_0x5e3314[_0x1980c3(0x1d5)]),_0x5d24c3=lstatSync(_0xa23b92);if(_0x5d24c3['isSymbolicLink']())throw new Error(_0x1980c3(0x1cb)+_0xa23b92);if(_0x5d24c3['isDirectory']())return listFiles(_0x11f6d7,_0xa23b92);if(!_0x5d24c3[_0x1980c3(0x1d6)]())throw new Error(_0x1980c3(0x1c0)+_0xa23b92);return[relative(_0x11f6d7,_0xa23b92)[_0x1980c3(0x1af)](sep)[_0x1980c3(0x1c2)]('/')];})[_0x39593f(0x1a4)]((_0x326d38,_0x45c030)=>_0x326d38<_0x45c030?-0x1:_0x326d38>_0x45c030?0x1:0x0);}function digestFiles(_0x5cdc45,_0xaa0947){const _0x45c1d5=a328_0x10ba2b,_0x1b2e96=createHash(_0x45c1d5(0x1da));for(const _0x570667 of _0xaa0947){if(_0x570667[_0x45c1d5(0x1ac)]('/')||_0x570667[_0x45c1d5(0x1af)]('/')[_0x45c1d5(0x1b1)]('..')||_0x570667[_0x45c1d5(0x1b1)]('\x5c'))throw new Error(_0x45c1d5(0x196)+_0x570667);_0x1b2e96[_0x45c1d5(0x19f)](_0x570667),_0x1b2e96['update']('\x00'),_0x1b2e96[_0x45c1d5(0x19f)](readFileSync(join(_0x5cdc45,..._0x570667[_0x45c1d5(0x1af)]('/')))),_0x1b2e96[_0x45c1d5(0x19f)]('\x00');}return _0x1b2e96[_0x45c1d5(0x19d)](_0x45c1d5(0x1ae));}function sameFiles(_0x1700fc,_0x23d242){const _0x1ed3f2=a328_0x10ba2b;return _0x1700fc[_0x1ed3f2(0x1c3)]===_0x23d242[_0x1ed3f2(0x1c3)]&&_0x1700fc[_0x1ed3f2(0x198)]((_0x1f5768,_0x303964)=>_0x1f5768===_0x23d242[_0x303964]);}function readSource(_0x4f895f){const _0x54281b=a328_0x10ba2b,_0x556114=JSON[_0x54281b(0x1c5)](readFileSync(join(_0x4f895f,_0x54281b(0x1a2)),_0x54281b(0x1bf))),_0xc8aed5=JSON[_0x54281b(0x1c5)](readFileSync(join(_0x4f895f,_0x54281b(0x1b6),_0x54281b(0x1cd)),_0x54281b(0x1bf))),_0x5bc8ca=join(_0x4f895f,_0x54281b(0x1b6),SKILL_NAME),_0x344dce=frontmatterValue(readFileSync(join(_0x5bc8ca,_0x54281b(0x1ce)),_0x54281b(0x1bf)),_0x54281b(0x1c7)),_0x4e7f1b=listFiles(_0x5bc8ca);if(_0xc8aed5[_0x54281b(0x19b)]!==0x1||_0xc8aed5['name']!==SKILL_NAME||!_0x556114[_0x54281b(0x1c7)]||_0xc8aed5[_0x54281b(0x1b3)]!==_0x556114[_0x54281b(0x1c7)]||_0xc8aed5[_0x54281b(0x1a5)]!==_0x556114[_0x54281b(0x1c7)]||_0x344dce!==_0x556114[_0x54281b(0x1c7)]||!sameFiles(_0x4e7f1b,_0xc8aed5[_0x54281b(0x1d7)])||digestFiles(_0x5bc8ca,_0x4e7f1b)!==_0xc8aed5['digest'])throw new Error(_0x54281b(0x1aa));return{'packageVersion':_0x556114[_0x54281b(0x1c7)],'skillVersion':_0x344dce,'root':_0x5bc8ca,'manifest':_0xc8aed5};}function installedSkillPath(_0x46e960){const _0x104e01=a328_0x10ba2b,_0xd8da6c=resolveInstalledSkill(SKILL_NAME,{'home':_0x46e960});if(_0xd8da6c['state']===_0x104e01(0x1c8))return{'state':_0x104e01(0x1c8),'path':dirname(_0xd8da6c[_0x104e01(0x1d0)])};if(_0xd8da6c['state']===_0x104e01(0x1c1))return{'state':_0x104e01(0x1db)};return{'state':_0x104e01(0x1d8),'reason':_0xd8da6c[_0x104e01(0x1c6)]};}function a328_0x27da(){const _0x33cf92=['partialFailure','1353555TBmoJN','SOURCE_INVALID','utf8','Unsupported\x20Skill\x20entry:\x20','absent','join','length','unknown','parse','reason','version','present','packageRoot','status','Symbolic\x20link\x20is\x20not\x20allowed:\x20','flatMap','rabetbase.manifest.json','SKILL.md','current','path','manifest','content_mismatch',':\x5cs*(.+)$','674748SpCrzP','name','isFile','files','unverifiable','skipped','sha256','missing','root','state','Unsafe\x20manifest\x20path:\x20','VERIFY_FAILED','every','796lOIgVi','message','schemaVersion','count','digest','Installed\x20Skill\x20state\x20is\x20','update','2485BSEFZS','match','package.json','INSTALL_FAILED','sort','skillVersion','84082gJTBtS','installedPath','31659YNXJvo','3632096JvfsGN','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','output','startsWith','stdio','hex','split','error','includes','rabetbase','packageVersion','log','\x20verified;\x20','skills','CLI\x20Built-in\x20Skill\x20','440460BxJtjx','home','rabetbase-skills','version_mismatch'];a328_0x27da=function(){return _0x33cf92;};return a328_0x27da();}export function inspectInstalledBuiltinSkillVersion(_0x77c3fd,_0x366205={}){const _0x2110e6=a328_0x10ba2b,_0x5d9a72=installedSkillPath(_0x366205[_0x2110e6(0x1b9)]??homedir());if(_0x5d9a72[_0x2110e6(0x1dd)]===_0x2110e6(0x1db))return{'state':_0x2110e6(0x1db),'expectedVersion':_0x77c3fd,'repairCommand':REPAIR_COMMAND};if(_0x5d9a72['state']===_0x2110e6(0x1d8))return{'state':_0x2110e6(0x1d8),'expectedVersion':_0x77c3fd,'reason':_0x5d9a72[_0x2110e6(0x1c6)],'repairCommand':REPAIR_COMMAND};try{const _0x2cf4ea=frontmatterValue(readFileSync(join(_0x5d9a72[_0x2110e6(0x1d0)],_0x2110e6(0x1ce)),_0x2110e6(0x1bf)),'version');return{'state':_0x2cf4ea===_0x77c3fd?_0x2110e6(0x1cf):_0x2110e6(0x1bb),'expectedVersion':_0x77c3fd,'skillVersion':_0x2cf4ea,'installedPath':_0x5d9a72[_0x2110e6(0x1d0)],'repairCommand':REPAIR_COMMAND};}catch(_0x36a78d){return{'state':_0x2110e6(0x1d8),'expectedVersion':_0x77c3fd,'installedPath':_0x5d9a72['path'],'reason':_0x36a78d instanceof Error?_0x36a78d[_0x2110e6(0x19a)]:String(_0x36a78d),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x2fa3e={}){const _0xea1510=a328_0x10ba2b,_0x64d306=_0x2fa3e[_0xea1510(0x1c9)]??DEFAULT_PACKAGE_ROOT;let _0x2c3d26;try{_0x2c3d26=readSource(_0x64d306);}catch(_0x597b9c){return{'state':_0xea1510(0x1d8),'packageVersion':_0xea1510(0x1c4),'reason':_0x597b9c instanceof Error?_0x597b9c[_0xea1510(0x19a)]:String(_0x597b9c),'repairCommand':REPAIR_COMMAND};}const _0x2106ec=installedSkillPath(_0x2fa3e['home']??homedir());if(_0x2106ec[_0xea1510(0x1dd)]===_0xea1510(0x1db))return{'state':_0xea1510(0x1db),'packageVersion':_0x2c3d26[_0xea1510(0x1b3)],'repairCommand':REPAIR_COMMAND};if(_0x2106ec[_0xea1510(0x1dd)]==='unverifiable')return{'state':_0xea1510(0x1d8),'packageVersion':_0x2c3d26[_0xea1510(0x1b3)],'reason':_0x2106ec[_0xea1510(0x1c6)],'repairCommand':REPAIR_COMMAND};try{const _0x19d7f1=frontmatterValue(readFileSync(join(_0x2106ec[_0xea1510(0x1d0)],_0xea1510(0x1ce)),_0xea1510(0x1bf)),_0xea1510(0x1c7));if(_0x19d7f1!==_0x2c3d26['skillVersion'])return{'state':'version_mismatch','packageVersion':_0x2c3d26[_0xea1510(0x1b3)],'skillVersion':_0x19d7f1,'installedPath':_0x2106ec[_0xea1510(0x1d0)],'repairCommand':REPAIR_COMMAND};const _0x1a188a=listFiles(_0x2106ec['path']),_0x46fa2d=digestFiles(_0x2106ec[_0xea1510(0x1d0)],_0x1a188a);return{'state':sameFiles(_0x1a188a,_0x2c3d26[_0xea1510(0x1d1)][_0xea1510(0x1d7)])&&_0x46fa2d===_0x2c3d26[_0xea1510(0x1d1)][_0xea1510(0x19d)]?_0xea1510(0x1cf):_0xea1510(0x1d2),'packageVersion':_0x2c3d26[_0xea1510(0x1b3)],'skillVersion':_0x19d7f1,'installedPath':_0x2106ec[_0xea1510(0x1d0)],'digest':_0x46fa2d,'repairCommand':REPAIR_COMMAND};}catch(_0x3e591e){return{'state':_0xea1510(0x1d8),'packageVersion':_0x2c3d26[_0xea1510(0x1b3)],'installedPath':_0x2106ec[_0xea1510(0x1d0)],'reason':_0x3e591e instanceof Error?_0x3e591e[_0xea1510(0x19a)]:String(_0x3e591e),'repairCommand':REPAIR_COMMAND};}}function failure(_0x446a8a,_0x6dabea,_0x10147d,_0x238076){const _0x18f983=a328_0x10ba2b;return{'ok':![],'code':_0x446a8a,'packageVersion':_0x6dabea[_0x18f983(0x1b3)],'skillVersion':_0x6dabea[_0x18f983(0x1a5)],'installedPath':_0x238076,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x10147d instanceof Error?_0x10147d['message']:String(_0x10147d)};}export function installBuiltinSkill(_0x58fb45={}){const _0x199e87=a328_0x10ba2b,_0x13b156=_0x58fb45[_0x199e87(0x1c9)]??DEFAULT_PACKAGE_ROOT,_0x173496=_0x58fb45[_0x199e87(0x1b9)]??homedir();let _0x3b3394;try{_0x3b3394=readSource(_0x13b156);}catch(_0x2fbd60){return failure(_0x199e87(0x1be),{'packageVersion':_0x199e87(0x1c4),'skillVersion':_0x199e87(0x1c4)},_0x2fbd60);}const _0xbddcc2=inspectBuiltinSkill({'packageRoot':_0x13b156,'home':_0x173496}),_0x5c26b1=runNpxSkillsAddGlobal(_0x13b156,_0x3b3394[_0x199e87(0x1dc)],{'stdio':_0x58fb45[_0x199e87(0x1ad)]??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0x173496}});if(_0x5c26b1[_0x199e87(0x1d9)])return{'ok':!![],'packageVersion':_0x3b3394[_0x199e87(0x1b3)],'skillVersion':_0x3b3394[_0x199e87(0x1a5)],'installedPath':_0xbddcc2[_0x199e87(0x1a7)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x5c26b1['ok'])return failure(_0x199e87(0x1a3),_0x3b3394,_0x5c26b1[_0x199e87(0x1b0)]??'skills@latest\x20exited\x20'+_0x5c26b1[_0x199e87(0x1ca)]);const _0x3bee0f=inspectBuiltinSkill({'packageRoot':_0x13b156,'home':_0x173496});if(_0x3bee0f[_0x199e87(0x1dd)]!==_0x199e87(0x1cf)){const _0x27e1da=_0x3bee0f[_0x199e87(0x1c6)]??_0x199e87(0x19e)+_0x3bee0f[_0x199e87(0x1dd)];return failure(_0x199e87(0x197),_0x3b3394,_0x5c26b1[_0x199e87(0x1bc)]?_0x27e1da+'\x0a'+_0x5c26b1['partialFailure'][_0x199e87(0x1ab)]:_0x27e1da,_0x3bee0f[_0x199e87(0x1a7)]);}return _0x5c26b1[_0x199e87(0x1bc)]&&(debug('Installer\x20reported\x20partial\x20target\x20failures:\x0a%s',_0x5c26b1[_0x199e87(0x1bc)][_0x199e87(0x1ab)]),console[_0x199e87(0x1b4)](_0x199e87(0x1b7)+_0x3b3394['skillVersion']+_0x199e87(0x1b5)+_0x5c26b1[_0x199e87(0x1bc)][_0x199e87(0x19c)]+'\x20automatically\x20selected\x20installation\x20target(s)\x20could\x20not\x20be\x20installed.')),{'ok':!![],'packageVersion':_0x3b3394[_0x199e87(0x1b3)],'skillVersion':_0x3b3394[_0x199e87(0x1a5)],'installedPath':_0x3bee0f[_0x199e87(0x1a7)],'changed':_0xbddcc2[_0x199e87(0x1dd)]!==_0x199e87(0x1cf),'repairCommand':REPAIR_COMMAND};}
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 +1 @@
1
- (function(_0x5e8ba7,_0xc1599c){const _0x3e6ecc=a329_0x5039,_0xe6e6=_0x5e8ba7();while(!![]){try{const _0x3507e0=parseInt(_0x3e6ecc(0x1c5))/0x1*(parseInt(_0x3e6ecc(0x1c3))/0x2)+parseInt(_0x3e6ecc(0x1da))/0x3+-parseInt(_0x3e6ecc(0x1be))/0x4*(-parseInt(_0x3e6ecc(0x1c9))/0x5)+parseInt(_0x3e6ecc(0x1bb))/0x6+parseInt(_0x3e6ecc(0x1d0))/0x7*(parseInt(_0x3e6ecc(0x1bc))/0x8)+parseInt(_0x3e6ecc(0x1d9))/0x9*(parseInt(_0x3e6ecc(0x1c4))/0xa)+-parseInt(_0x3e6ecc(0x1d1))/0xb;if(_0x3507e0===_0xc1599c)break;else _0xe6e6['push'](_0xe6e6['shift']());}catch(_0x52b44c){_0xe6e6['push'](_0xe6e6['shift']());}}}(a329_0x5d09,0x345b6));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(_0x30e8a3){const _0x2651f3=a329_0x5039,_0x212960=[];for(const [_0x38e4e6,_0x31a3aa]of Object[_0x2651f3(0x1cb)](_0x30e8a3)){if(_0x31a3aa===!![]){const _0x57496c=_0x38e4e6['replace'](/([A-Z])/g,'-$1')['toLowerCase']();_0x212960[_0x2651f3(0x1db)](_0x57496c);}}return _0x212960;}export function parseDynamicFlags(){const _0x43ab71=a329_0x5039,_0x331b7c=[];for(let _0xef4bf5=0x3;_0xef4bf5<process[_0x43ab71(0x1d2)][_0x43ab71(0x1c6)];_0xef4bf5++){const _0x3467c2=process[_0x43ab71(0x1d2)][_0xef4bf5];if(_0x3467c2&&_0x3467c2[_0x43ab71(0x1cd)]('--')){const _0x321489=_0x3467c2[_0x43ab71(0x1c0)](0x2);_0x321489&&!_0x321489[_0x43ab71(0x1c2)]('=')&&_0x331b7c[_0x43ab71(0x1db)](_0x321489);}}return _0x331b7c;}export function getAllProvidedFlags(_0x4a923e){const _0x510618=a329_0x5039,_0x2d5e67=camelCaseFlagsToKebab(_0x4a923e),_0x2cf74a=parseDynamicFlags(),_0x50da19=new Set([..._0x2d5e67,..._0x2cf74a]);return Array[_0x510618(0x1ba)](_0x50da19);}export function normalizeLegacyBffSaveFlags(_0x57b233){const _0x4c71f9=a329_0x5039,_0x152d4b=new Set(_0x57b233);return _0x152d4b[_0x4c71f9(0x1c8)](_0x4c71f9(0x1c1))&&_0x152d4b[_0x4c71f9(0x1d4)](_0x4c71f9(0x1bd)),Array[_0x4c71f9(0x1ba)](_0x152d4b);}function a329_0x5d09(){const _0x4d9bb2=['length','cwd','has','1685ISXaYp','setLogPath','entries','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','startsWith','Public\x20Open\x20Skill\x20source:\x20','--help','946547uooqnW','14947834GZnWBJ','argv','error','add','Error:\x20Unsupported\x20command:\x20','skill','(empty)','log','1656ZATyAQ','1044264msizpE','push','\x0aAvailable\x20commands:','from','1302672Lmbado','24GYbPMY','enable-bff-save','4520GJPqvO','help','slice','dangerously-bff-save','includes','18GHdmkK','3770QFYfVf','16923LGQFBj'];a329_0x5d09=function(){return _0x4d9bb2;};return a329_0x5d09();}function a329_0x5039(_0x5cc9fa,_0x113b39){_0x5cc9fa=_0x5cc9fa-0x1b9;const _0x5d0933=a329_0x5d09();let _0x503977=_0x5d0933[_0x5cc9fa];return _0x503977;}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x4014b5,_0x3a2e4c,_0x33e646){const _0x54758f=a329_0x5039;logger[_0x54758f(0x1ca)](process[_0x54758f(0x1c7)]());if(_0x33e646?.[_0x54758f(0x1bf)]||_0x4014b5===_0x54758f(0x1cf)){showHelp();return;}console[_0x54758f(0x1d3)](_0x54758f(0x1d5)+(_0x4014b5||_0x54758f(0x1d7))),console[_0x54758f(0x1d8)](_0x54758f(0x1b9)),console[_0x54758f(0x1d8)]('\x20\x20'+CLI_BIN_NAME+_0x54758f(0x1cc)),console[_0x54758f(0x1d8)](''),console['log'](_0x54758f(0x1ce)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x54758f(0x1d3)](_0x54758f(0x1d6),'Unsupported\x20command:\x20'+_0x4014b5),process['exit'](0x1);}function showHelp(){const _0x1c6a1a=a329_0x5039;console[_0x1c6a1a(0x1d8)]('\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a');}
1
+ (function(_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 +1 @@
1
- const a330_0x3cded0=a330_0x35db;(function(_0x6b41b6,_0x12e3b7){const _0x1a8559=a330_0x35db,_0x1c0a82=_0x6b41b6();while(!![]){try{const _0x40c398=-parseInt(_0x1a8559(0x133))/0x1+-parseInt(_0x1a8559(0x158))/0x2+-parseInt(_0x1a8559(0x157))/0x3*(-parseInt(_0x1a8559(0x132))/0x4)+parseInt(_0x1a8559(0x15b))/0x5+-parseInt(_0x1a8559(0x14c))/0x6*(parseInt(_0x1a8559(0x13e))/0x7)+parseInt(_0x1a8559(0x151))/0x8+parseInt(_0x1a8559(0x138))/0x9*(parseInt(_0x1a8559(0x131))/0xa);if(_0x40c398===_0x12e3b7)break;else _0x1c0a82['push'](_0x1c0a82['shift']());}catch(_0x5059f1){_0x1c0a82['push'](_0x1c0a82['shift']());}}}(a330_0x3cf7,0x43753));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';function a330_0x3cf7(){const _0x566d0c=['Installer\x20reported\x20','message','skill','join','npx\x20failed\x20to\x20start','9Kjcjix','1056102NPBQvb','checked','CHILD_TERMINATED','1472410tppILY','NPM_CONFIG_GLOBAL','shortMessage','signal','match','npx','push','--skill','EACCES','stdout','stdio','presence','unverifiable','code','failed','20MijxtH','9104HOqwLI','422411wrSsRC','npm_config_global','CHILD_EXIT_NONZERO','EPERM','\x22\x20install\x20state:\x20','3913731dnbAih','warn','SKILL_NOT_INSTALLED','npx\x20terminated\x20by\x20signal\x20','exitCode','partialFailure','7uUWJWP','absent','NPX_NOT_FOUND','stderr','log','exit\x20','filter','pipe','trim','reason','PERMISSION_DENIED','skills@latest','state','SPAWN_FAILED','2682228RYIzjQ','unknown','INSTALL_PARTIAL','ENOENT','rabetbase','4022232ENeyMG'];a330_0x3cf7=function(){return _0x566d0c;};return a330_0x3cf7();}export const NPX_SKILLS_CLI=a330_0x3cded0(0x149);export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL=a330_0x3cded0(0x162);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const RABETBASE_GLOBAL_SKILL_NAME=a330_0x3cded0(0x150);export const RABETBASE_SKILL_GIT_SOURCE='git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git';export function resolveGlobalSkillName(_0x2878e3){const _0x2f7414=a330_0x3cded0;switch(_0x2878e3[_0x2f7414(0x146)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x502945){const _0x2e6428=a330_0x3cded0,_0x5500ad=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x502945&&_0x5500ad[_0x2e6428(0x161)](NPX_SKILLS_FLAG_SKILL,_0x502945),_0x5500ad;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a330_0x3cded0(0x160),...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a330_0x3cded0(0x160),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(_0x2c5817,_0x2c94fa,_0x1e0120){return{'ok':![],'status':_0x2c94fa,'code':_0x2c5817,'error':'['+_0x2c5817+']\x20'+_0x1e0120};}function execaOptions(_0x46bc3c,_0x3bbe1a){const _0x4932b5=a330_0x3cded0,_0x335766={...process.env};return delete _0x335766[_0x4932b5(0x134)],delete _0x335766[_0x4932b5(0x15c)],{'cwd':_0x46bc3c,'stdio':_0x3bbe1a,'env':_0x335766,'extendEnv':![],'shell':![],'reject':![],..._0x3bbe1a===_0x4932b5(0x145)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeExecaResult(_0x2b3e1c,_0x7b75f0,_0x19be6a){const _0x4b71f8=a330_0x3cded0,_0x9c41a1=[_0x2b3e1c[_0x4b71f8(0x164)]?String(_0x2b3e1c[_0x4b71f8(0x164)]):'',_0x2b3e1c['stderr']?String(_0x2b3e1c[_0x4b71f8(0x141)]):''][_0x4b71f8(0x144)](Boolean)['join']('\x0a')['trim'](),_0x589b1f=_0x2b3e1c[_0x4b71f8(0x13c)]??null;if(_0x2b3e1c['code']){const _0x85a7d6=_0x2b3e1c['code']===_0x4b71f8(0x14f)?_0x4b71f8(0x140):_0x2b3e1c['code']===_0x4b71f8(0x136)||_0x2b3e1c['code']===_0x4b71f8(0x163)?_0x4b71f8(0x148):_0x4b71f8(0x14b);return failure(_0x85a7d6,_0x589b1f,_0x2b3e1c[_0x4b71f8(0x15d)]??_0x2b3e1c['message']??_0x2b3e1c[_0x4b71f8(0x168)]);}if(_0x2b3e1c['signal'])return failure(_0x4b71f8(0x15a),_0x589b1f,_0x4b71f8(0x13b)+_0x2b3e1c[_0x4b71f8(0x15e)]);if(_0x2b3e1c[_0x4b71f8(0x169)]&&_0x589b1f===null)return failure(_0x4b71f8(0x14b),_0x589b1f,_0x2b3e1c['shortMessage']??_0x2b3e1c[_0x4b71f8(0x153)]??_0x4b71f8(0x156));if(_0x589b1f!==0x0)return failure(_0x4b71f8(0x135),_0x589b1f,_0x9c41a1||_0x2b3e1c[_0x4b71f8(0x15d)]||_0x4b71f8(0x143)+(_0x589b1f??_0x4b71f8(0x14d)));const _0x46ca1f=_0x7b75f0?resolveInstalledSkill(_0x7b75f0,_0x19be6a):undefined,_0x10c780=_0x9c41a1[_0x4b71f8(0x15f)](/Failed to install\s+(\d+)/i);if(_0x10c780&&Number(_0x10c780[0x1])>0x0){const _0x157e56=_0x4b71f8(0x152)+_0x10c780[0x1]+'\x20failed\x20target(s)'+(_0x9c41a1?':\x0a'+_0x9c41a1:'');if(_0x46ca1f?.[_0x4b71f8(0x14a)]==='present')return{'ok':!![],'status':0x0,'partialFailure':{'count':Number(_0x10c780[0x1]),'output':_0x9c41a1}};return failure(_0x4b71f8(0x14e),0x0,_0x157e56);}if(_0x46ca1f){if(_0x46ca1f[_0x4b71f8(0x14a)]===_0x4b71f8(0x13f))return failure(_0x4b71f8(0x13a),0x0,'Skill\x20\x22'+_0x7b75f0+'\x22\x20not\x20found\x20after\x20install\x20(checked\x20'+_0x46ca1f[_0x4b71f8(0x159)][_0x4b71f8(0x155)](',\x20')+')');_0x46ca1f[_0x4b71f8(0x14a)]===_0x4b71f8(0x167)&&console[_0x4b71f8(0x139)]('!\x20Could\x20not\x20verify\x20\x22'+_0x7b75f0+_0x4b71f8(0x137)+_0x46ca1f[_0x4b71f8(0x147)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}function a330_0x35db(_0x4dc7f7,_0x34985a){_0x4dc7f7=_0x4dc7f7-0x131;const _0x3cf710=a330_0x3cf7();let _0x35db78=_0x3cf710[_0x4dc7f7];return _0x35db78;}export function runNpxSkillsAdd(_0xcd5f85,_0x381f13){const _0x15cbda=a330_0x3cded0;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3d04e0=_0x381f13?.[_0x15cbda(0x165)]??'inherit',_0x4a0c8e=buildNpxSkillsAddArgv(_0x381f13?.[_0x15cbda(0x154)]),_0x21de30=[_0x15cbda(0x160),..._0x4a0c8e][_0x15cbda(0x155)]('\x20');console['log']('*\x20'+_0x21de30);const _0x40415b=execaSync(_0x15cbda(0x160),_0x4a0c8e,execaOptions(_0xcd5f85,_0x3d04e0));return normalizeExecaResult(_0x40415b);}export function runNpxSkillsAddGlobal(_0x414103,_0x1f90d4,_0x5a9d11){const _0x718db2=a330_0x3cded0;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5d88f8=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x1f90d4,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x9cd235=[_0x718db2(0x160),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x1f90d4,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x718db2(0x155)]('\x20');console['log']('*\x20'+_0x9cd235);const _0x207941=execaSync('npx',_0x5d88f8,execaOptions(_0x414103,_0x718db2(0x145))),_0x5d2b1f=normalizeExecaResult(_0x207941,_0x5a9d11?.['expectedSkillName']??resolveGlobalSkillName(_0x1f90d4),_0x5a9d11?.[_0x718db2(0x166)]);if(_0x5a9d11?.['stdio']!==_0x718db2(0x145)&&!_0x5d2b1f[_0x718db2(0x13d)]){const _0x1c0185=[_0x207941[_0x718db2(0x164)],_0x207941[_0x718db2(0x141)]][_0x718db2(0x144)](Boolean)['join']('\x0a')[_0x718db2(0x146)]();if(_0x1c0185)console[_0x718db2(0x142)](_0x1c0185);}return _0x5d2b1f;}
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;}