@lovrabet/rabetbase-cli 2.5.4-beta.4 → 2.5.4-beta.5

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 (388) hide show
  1. package/README.md +8 -2
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/api-group.js +1 -1
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.js +1 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/api/legacy-api-file.js +1 -1
  8. package/lib/api/model-registry-file.js +1 -1
  9. package/lib/api/model-registry-scaffold.js +1 -1
  10. package/lib/api/model-source.js +1 -1
  11. package/lib/auth/auth-server-ui.js +1 -1
  12. package/lib/auth/auth-server.js +1 -1
  13. package/lib/auth/constant.js +1 -1
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.js +1 -1
  16. package/lib/auth/is-session-valid.js +1 -1
  17. package/lib/auth/login-success-html.js +1 -1
  18. package/lib/auth/logout.js +1 -1
  19. package/lib/cli-flags.js +1 -1
  20. package/lib/cli.js +1 -1
  21. package/lib/commands/api/generate.js +1 -1
  22. package/lib/commands/api/index.js +1 -1
  23. package/lib/commands/api/list.js +1 -1
  24. package/lib/commands/api/pull.js +1 -1
  25. package/lib/commands/api/shared.js +1 -1
  26. package/lib/commands/app/detail.d.ts +2 -0
  27. package/lib/commands/app/detail.js +1 -0
  28. package/lib/commands/app/index.js +1 -1
  29. package/lib/commands/app/list.js +1 -1
  30. package/lib/commands/app/members-list.js +1 -1
  31. package/lib/commands/app/remote-directory.js +1 -1
  32. package/lib/commands/app/shared.js +1 -1
  33. package/lib/commands/app-config/delete.js +1 -1
  34. package/lib/commands/app-config/get.js +1 -1
  35. package/lib/commands/app-config/index.js +1 -1
  36. package/lib/commands/app-config/list.js +1 -1
  37. package/lib/commands/app-config/set.js +1 -1
  38. package/lib/commands/app-config/shared.js +1 -1
  39. package/lib/commands/auth/index.js +1 -1
  40. package/lib/commands/bff/create.js +1 -1
  41. package/lib/commands/bff/delete.js +1 -1
  42. package/lib/commands/bff/detail.js +1 -1
  43. package/lib/commands/bff/index.js +1 -1
  44. package/lib/commands/bff/list.js +1 -1
  45. package/lib/commands/bff/logs.js +1 -1
  46. package/lib/commands/bff/pull.js +1 -1
  47. package/lib/commands/bff/push.js +1 -1
  48. package/lib/commands/bff/status.js +1 -1
  49. package/lib/commands/cli-skill/index.js +1 -1
  50. package/lib/commands/cli-update.js +1 -1
  51. package/lib/commands/codegen/index.js +1 -1
  52. package/lib/commands/codegen/sdk.js +1 -1
  53. package/lib/commands/codegen/sql.js +1 -1
  54. package/lib/commands/common/app-registry.js +1 -1
  55. package/lib/commands/common/app-selector.js +1 -1
  56. package/lib/commands/common/async-task.js +1 -1
  57. package/lib/commands/common/dry-run.js +1 -1
  58. package/lib/commands/common/flags.js +1 -1
  59. package/lib/commands/common/local-file.js +1 -1
  60. package/lib/commands/common/validate.js +1 -1
  61. package/lib/commands/config/delete.js +1 -1
  62. package/lib/commands/config/get.js +1 -1
  63. package/lib/commands/config/index.js +1 -1
  64. package/lib/commands/config/init.js +1 -1
  65. package/lib/commands/config/list.js +1 -1
  66. package/lib/commands/config/set.js +1 -1
  67. package/lib/commands/config/shared.js +1 -1
  68. package/lib/commands/dataset/batch-design.js +1 -1
  69. package/lib/commands/dataset/business-group-update.js +1 -1
  70. package/lib/commands/dataset/business-groups.js +1 -1
  71. package/lib/commands/dataset/capability.js +1 -1
  72. package/lib/commands/dataset/cross-relation-create.js +1 -1
  73. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  74. package/lib/commands/dataset/cross-relation-list.js +1 -1
  75. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  76. package/lib/commands/dataset/cross-relation-update.js +1 -1
  77. package/lib/commands/dataset/delete.js +1 -1
  78. package/lib/commands/dataset/detail.js +1 -1
  79. package/lib/commands/dataset/extend-update.js +1 -1
  80. package/lib/commands/dataset/field-restore.js +1 -1
  81. package/lib/commands/dataset/field-update.js +1 -1
  82. package/lib/commands/dataset/generate.js +1 -1
  83. package/lib/commands/dataset/index.js +1 -1
  84. package/lib/commands/dataset/list.js +1 -1
  85. package/lib/commands/dataset/operations.js +1 -1
  86. package/lib/commands/dataset/relation-audit.js +1 -1
  87. package/lib/commands/dataset/relation-create.js +1 -1
  88. package/lib/commands/dataset/relation-delete.js +1 -1
  89. package/lib/commands/dataset/relation-shared.js +1 -1
  90. package/lib/commands/dataset/relation-update.js +1 -1
  91. package/lib/commands/dataset/relations.js +1 -1
  92. package/lib/commands/dataset/rename.js +1 -1
  93. package/lib/commands/dataset/restore.js +1 -1
  94. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  95. package/lib/commands/db/analysis-batching.js +1 -1
  96. package/lib/commands/db/analyze-batch-plan.js +1 -1
  97. package/lib/commands/db/analyze-cancel.js +1 -1
  98. package/lib/commands/db/analyze-start.js +1 -1
  99. package/lib/commands/db/analyze-status.js +1 -1
  100. package/lib/commands/db/create.js +1 -1
  101. package/lib/commands/db/delete.js +1 -1
  102. package/lib/commands/db/detail.js +1 -1
  103. package/lib/commands/db/diff-refresh-start.js +1 -1
  104. package/lib/commands/db/diff-refresh-status.js +1 -1
  105. package/lib/commands/db/diff.js +1 -1
  106. package/lib/commands/db/index.js +1 -1
  107. package/lib/commands/db/list.js +1 -1
  108. package/lib/commands/db/shared.js +1 -1
  109. package/lib/commands/db/table-diff-shared.js +1 -1
  110. package/lib/commands/db/tables.js +1 -1
  111. package/lib/commands/db/test.js +1 -1
  112. package/lib/commands/db/update.js +1 -1
  113. package/lib/commands/deployment/index.js +1 -1
  114. package/lib/commands/deployment/sync-all.js +1 -1
  115. package/lib/commands/deployment/sync-jobs.js +1 -1
  116. package/lib/commands/deployment/sync-status.js +1 -1
  117. package/lib/commands/doctor.js +1 -1
  118. package/lib/commands/file/index.js +1 -1
  119. package/lib/commands/flow/create.js +1 -1
  120. package/lib/commands/flow/detail.js +1 -1
  121. package/lib/commands/flow/index.js +1 -1
  122. package/lib/commands/flow/list.js +1 -1
  123. package/lib/commands/flow/publish.js +1 -1
  124. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  125. package/lib/commands/flow/runtime-role-list.js +1 -1
  126. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  127. package/lib/commands/flow/runtime-user-search.js +1 -1
  128. package/lib/commands/flow/shared.js +1 -1
  129. package/lib/commands/flow/update.js +1 -1
  130. package/lib/commands/flow/validate.js +1 -1
  131. package/lib/commands/instant-api-policy/current.js +1 -1
  132. package/lib/commands/instant-api-policy/index.js +1 -1
  133. package/lib/commands/instant-api-policy/init.js +1 -1
  134. package/lib/commands/instant-api-policy/publish.js +1 -1
  135. package/lib/commands/instant-api-policy/pull.js +1 -1
  136. package/lib/commands/instant-api-policy/revision.js +1 -1
  137. package/lib/commands/instant-api-policy/revisions.js +1 -1
  138. package/lib/commands/instant-api-policy/rollback.js +1 -1
  139. package/lib/commands/instant-api-policy/shared.js +1 -1
  140. package/lib/commands/instant-api-policy/validate.js +1 -1
  141. package/lib/commands/issue/index.js +1 -1
  142. package/lib/commands/issue/nudge.js +1 -1
  143. package/lib/commands/issue/report.js +1 -1
  144. package/lib/commands/issue/shared.js +1 -1
  145. package/lib/commands/kb/create.js +1 -1
  146. package/lib/commands/kb/delete.js +1 -1
  147. package/lib/commands/kb/detail.js +1 -1
  148. package/lib/commands/kb/index.js +1 -1
  149. package/lib/commands/kb/list.js +1 -1
  150. package/lib/commands/kb/search.js +1 -1
  151. package/lib/commands/kb/shared.js +1 -1
  152. package/lib/commands/kb/update.js +1 -1
  153. package/lib/commands/logs/index.js +1 -1
  154. package/lib/commands/menu/asset-update.js +1 -1
  155. package/lib/commands/menu/delete.js +1 -1
  156. package/lib/commands/menu/external-link-create.js +1 -1
  157. package/lib/commands/menu/external-link-update.js +1 -1
  158. package/lib/commands/menu/group-create.js +1 -1
  159. package/lib/commands/menu/group-update.js +1 -1
  160. package/lib/commands/menu/index.js +1 -1
  161. package/lib/commands/menu/list.js +1 -1
  162. package/lib/commands/menu/move.js +1 -1
  163. package/lib/commands/menu/regroup-start.js +1 -1
  164. package/lib/commands/menu/rename.js +1 -1
  165. package/lib/commands/menu/shared/compare-table.js +1 -1
  166. package/lib/commands/menu/shared/delete-plan.js +1 -1
  167. package/lib/commands/menu/shared/facts.js +1 -1
  168. package/lib/commands/menu/shared/index.js +1 -1
  169. package/lib/commands/menu/shared/inquirer.js +1 -1
  170. package/lib/commands/menu/shared/local-pages.d.ts +1 -1
  171. package/lib/commands/menu/shared/local-pages.js +1 -1
  172. package/lib/commands/menu/shared/logic.d.ts +3 -1
  173. package/lib/commands/menu/shared/logic.js +1 -1
  174. package/lib/commands/menu/shared/mutations.js +1 -1
  175. package/lib/commands/menu/shared/path.d.ts +2 -0
  176. package/lib/commands/menu/shared/path.js +1 -0
  177. package/lib/commands/menu/shared/service.d.ts +6 -1
  178. package/lib/commands/menu/shared/service.js +1 -1
  179. package/lib/commands/menu/shared/subapp-assets.d.ts +28 -0
  180. package/lib/commands/menu/shared/subapp-assets.js +1 -0
  181. package/lib/commands/menu/shared/sync-core.d.ts +2 -1
  182. package/lib/commands/menu/shared/sync-core.js +1 -1
  183. package/lib/commands/menu/shared/types.d.ts +14 -4
  184. package/lib/commands/menu/shared/update-core.js +1 -1
  185. package/lib/commands/menu/shared/valid-url.js +1 -1
  186. package/lib/commands/menu/subapp-assets-status.d.ts +2 -0
  187. package/lib/commands/menu/subapp-assets-status.js +1 -0
  188. package/lib/commands/menu/subapp-assets-update.d.ts +2 -0
  189. package/lib/commands/menu/subapp-assets-update.js +1 -0
  190. package/lib/commands/menu/sync.js +1 -1
  191. package/lib/commands/menu/visibility-update.js +1 -1
  192. package/lib/commands/notification/config-create.js +1 -1
  193. package/lib/commands/notification/config-delete.js +1 -1
  194. package/lib/commands/notification/config-list.js +1 -1
  195. package/lib/commands/notification/config-update.js +1 -1
  196. package/lib/commands/notification/index.js +1 -1
  197. package/lib/commands/notification/shared.js +1 -1
  198. package/lib/commands/ocr/index.js +1 -1
  199. package/lib/commands/page/create.js +1 -1
  200. package/lib/commands/page/custom/detail.js +1 -1
  201. package/lib/commands/page/custom/list.js +1 -1
  202. package/lib/commands/page/custom/publish.js +1 -1
  203. package/lib/commands/page/custom/shared.js +1 -1
  204. package/lib/commands/page/custom/syntax.js +1 -1
  205. package/lib/commands/page/custom/update.js +1 -1
  206. package/lib/commands/page/data-list-status.js +1 -1
  207. package/lib/commands/page/generate-start.js +1 -1
  208. package/lib/commands/page/generate-status.js +1 -1
  209. package/lib/commands/page/index.js +1 -1
  210. package/lib/commands/page/pull.js +1 -1
  211. package/lib/commands/page/push.js +1 -1
  212. package/lib/commands/page/relation-audit.js +1 -1
  213. package/lib/commands/page/restore.js +1 -1
  214. package/lib/commands/page/shared.js +1 -1
  215. package/lib/commands/page/sync.js +1 -1
  216. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  217. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  218. package/lib/commands/project/create/format-elapsed.js +1 -1
  219. package/lib/commands/project/create/main.js +1 -1
  220. package/lib/commands/project/create/materialize-project-template.js +1 -1
  221. package/lib/commands/project/create/project-name.js +1 -1
  222. package/lib/commands/project/create/project-template-archive.js +1 -1
  223. package/lib/commands/project/create/project-template-path.js +1 -1
  224. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  225. package/lib/commands/project/create/use-format-code.js +1 -1
  226. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  227. package/lib/commands/project/domain-routing-sync.js +1 -1
  228. package/lib/commands/project/index.js +1 -1
  229. package/lib/commands/project/upgrade.js +1 -1
  230. package/lib/commands/registry.js +1 -1
  231. package/lib/commands/role/delete.js +1 -1
  232. package/lib/commands/role/detail.js +1 -1
  233. package/lib/commands/role/index.js +1 -1
  234. package/lib/commands/role/list.js +1 -1
  235. package/lib/commands/role/shared.js +1 -1
  236. package/lib/commands/role/update.js +1 -1
  237. package/lib/commands/role/user-add.js +1 -1
  238. package/lib/commands/role/user-remove.js +1 -1
  239. package/lib/commands/role/user-resolve.js +1 -1
  240. package/lib/commands/rule/get.js +1 -1
  241. package/lib/commands/rule/index.js +1 -1
  242. package/lib/commands/rule/list.js +1 -1
  243. package/lib/commands/rule/set.js +1 -1
  244. package/lib/commands/rule/shared.js +1 -1
  245. package/lib/commands/run/index.js +1 -1
  246. package/lib/commands/schema.js +1 -1
  247. package/lib/commands/sql/create.js +1 -1
  248. package/lib/commands/sql/delete.js +1 -1
  249. package/lib/commands/sql/detail.js +1 -1
  250. package/lib/commands/sql/exec.js +1 -1
  251. package/lib/commands/sql/index.js +1 -1
  252. package/lib/commands/sql/list.js +1 -1
  253. package/lib/commands/sql/pull.js +1 -1
  254. package/lib/commands/sql/push.js +1 -1
  255. package/lib/commands/sql/shared.js +1 -1
  256. package/lib/commands/sql/status.js +1 -1
  257. package/lib/commands/sql/validate.js +1 -1
  258. package/lib/commands/task/index.js +1 -1
  259. package/lib/commands/task/status.js +1 -1
  260. package/lib/commands/tenant/index.js +1 -1
  261. package/lib/commands/tenant/members-list.js +1 -1
  262. package/lib/commands/tenant/shared.js +1 -1
  263. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  264. package/lib/commands/user-account/feishu-bind.js +1 -1
  265. package/lib/commands/user-account/index.js +1 -1
  266. package/lib/commands/workspace/add.js +1 -1
  267. package/lib/commands/workspace/index.js +1 -1
  268. package/lib/commands/workspace/remove.js +1 -1
  269. package/lib/config/domain-config.js +1 -1
  270. package/lib/config/project-domain-routing.js +1 -1
  271. package/lib/config/region-config.js +1 -1
  272. package/lib/config/schema.js +1 -1
  273. package/lib/constant/cdn.js +1 -1
  274. package/lib/constant/cli.js +1 -1
  275. package/lib/constant/defaults.js +1 -1
  276. package/lib/constant/domain.js +1 -1
  277. package/lib/constant/env.js +1 -1
  278. package/lib/constant/output.js +1 -1
  279. package/lib/constant/paths.js +1 -1
  280. package/lib/constant/region.js +1 -1
  281. package/lib/constant/risk.js +1 -1
  282. package/lib/constant/routing-profile.js +1 -1
  283. package/lib/context/app-resolver.js +1 -1
  284. package/lib/context/auth-resolver.js +1 -1
  285. package/lib/context/config-loader.js +1 -1
  286. package/lib/context.js +1 -1
  287. package/lib/core/alias-resolver.js +1 -1
  288. package/lib/core/api-client.d.ts +15 -0
  289. package/lib/core/api-client.js +1 -1
  290. package/lib/core/bff/config.js +1 -1
  291. package/lib/core/bff/file-system.js +1 -1
  292. package/lib/core/bff/hash.js +1 -1
  293. package/lib/core/bff/hook-directory.js +1 -1
  294. package/lib/core/bff/lock.js +1 -1
  295. package/lib/core/bff/utils.js +1 -1
  296. package/lib/core/cross-db-relation.js +1 -1
  297. package/lib/core/db-resolver.js +1 -1
  298. package/lib/core/flow-config.js +1 -1
  299. package/lib/core/instant-api-policy/config.js +1 -1
  300. package/lib/core/kb-search-client.js +1 -1
  301. package/lib/core/page/file-system.js +1 -1
  302. package/lib/core/page/hash.js +1 -1
  303. package/lib/core/page/lock.js +1 -1
  304. package/lib/core/page/lr-smart-jsx.js +1 -1
  305. package/lib/core/sql-index-auditor.js +1 -1
  306. package/lib/core/sql-sync/config.js +1 -1
  307. package/lib/core/sql-sync/file-system.js +1 -1
  308. package/lib/core/sql-sync/hash.js +1 -1
  309. package/lib/core/sql-sync/lock.js +1 -1
  310. package/lib/core/sql-sync/utils.js +1 -1
  311. package/lib/core/sql-validator.js +1 -1
  312. package/lib/errors.js +1 -1
  313. package/lib/framework/build-all-flags.js +1 -1
  314. package/lib/framework/error-output.js +1 -1
  315. package/lib/framework/explicit-yes.js +1 -1
  316. package/lib/framework/flags.js +1 -1
  317. package/lib/framework/help.js +1 -1
  318. package/lib/framework/index.js +1 -1
  319. package/lib/framework/output.js +1 -1
  320. package/lib/framework/response.js +1 -1
  321. package/lib/framework/runner-alias.js +1 -1
  322. package/lib/framework/runner.js +1 -1
  323. package/lib/framework/schema-export.js +1 -1
  324. package/lib/framework/supported-flags.js +1 -1
  325. package/lib/framework/types.js +1 -1
  326. package/lib/generated/build-info.d.ts +4 -4
  327. package/lib/generated/build-info.js +1 -1
  328. package/lib/generated/official-routing.js +1 -1
  329. package/lib/generated/routing-contract.js +1 -1
  330. package/lib/help.js +1 -1
  331. package/lib/postinstall.js +1 -1
  332. package/lib/runtime/confirmation.js +1 -1
  333. package/lib/runtime/event.js +1 -1
  334. package/lib/runtime/index.js +1 -1
  335. package/lib/runtime/queue.js +1 -1
  336. package/lib/runtime/resolve.js +1 -1
  337. package/lib/skills/builtin-skill.js +1 -1
  338. package/lib/skills/main.js +1 -1
  339. package/lib/skills/npx-skills-add.js +1 -1
  340. package/lib/skills/skill-presence.js +1 -1
  341. package/lib/telemetry/cli-command-trace.js +1 -1
  342. package/lib/telemetry/cli-help-trace.js +1 -1
  343. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  344. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  345. package/lib/telemetry/send-cli-trace-log.js +1 -1
  346. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  347. package/lib/utils/ai_config.js +1 -1
  348. package/lib/utils/apply-jq-filter.js +1 -1
  349. package/lib/utils/cdn-config.js +1 -1
  350. package/lib/utils/check-sdk-version.js +1 -1
  351. package/lib/utils/cli-version-check.js +1 -1
  352. package/lib/utils/cli-version-policy.js +1 -1
  353. package/lib/utils/config.js +1 -1
  354. package/lib/utils/entity-with-id.js +1 -1
  355. package/lib/utils/file-utils.js +1 -1
  356. package/lib/utils/guides-cdn.js +1 -1
  357. package/lib/utils/http-client.js +1 -1
  358. package/lib/utils/is-non-interactive.js +1 -1
  359. package/lib/utils/logger.js +1 -1
  360. package/lib/utils/params.js +1 -1
  361. package/lib/utils/platform.js +1 -1
  362. package/lib/utils/sleep.js +1 -1
  363. package/lib/utils/template-replacer.js +1 -1
  364. package/lib/utils/update-notice.js +1 -1
  365. package/lib/utils/version.js +1 -1
  366. package/lib/utils/with-active-cookie.js +1 -1
  367. package/lib/utils/write-cli-side-channel.js +1 -1
  368. package/package.json +1 -1
  369. package/skills/rabetbase/SKILL.md +21 -12
  370. package/skills/rabetbase/guides/backend-function.md +2 -7
  371. package/skills/rabetbase/guides/bff-creation-workflow.md +24 -23
  372. package/skills/rabetbase/guides/host-frontend-integration.md +62 -0
  373. package/skills/rabetbase/guides/independent-deployment.md +45 -0
  374. package/skills/rabetbase/guides/troubleshooting.md +9 -1
  375. package/skills/rabetbase/references/rabetbase-app-detail.md +31 -0
  376. package/skills/rabetbase/references/rabetbase-bff-detail.md +1 -1
  377. package/skills/rabetbase/references/rabetbase-bff-push.md +2 -2
  378. package/skills/rabetbase/references/rabetbase-data-list-status.md +1 -0
  379. package/skills/rabetbase/references/rabetbase-deployment-sync-all.md +5 -1
  380. package/skills/rabetbase/references/rabetbase-menu-asset-update.md +9 -7
  381. package/skills/rabetbase/references/rabetbase-menu-list.md +2 -2
  382. package/skills/rabetbase/references/rabetbase-menu-subapp-assets-status.md +19 -0
  383. package/skills/rabetbase/references/rabetbase-menu-subapp-assets-update.md +27 -0
  384. package/skills/rabetbase/references/rabetbase-menu-sync.md +40 -14
  385. package/skills/rabetbase/references/rabetbase-page-create.md +1 -1
  386. package/skills/rabetbase/references/rabetbase-page-generate-start.md +5 -3
  387. package/skills/rabetbase/references/rabetbase-page-generate-status.md +1 -0
  388. package/skills/rabetbase.manifest.json +8 -3
@@ -1 +1 @@
1
- function a307_0x36fa(_0x570f81,_0x1b2826){_0x570f81=_0x570f81-0x1d5;const _0x385bf7=a307_0x385b();let _0x36facf=_0x385bf7[_0x570f81];return _0x36facf;}(function(_0x306830,_0x11d8ee){const _0x5d393d=a307_0x36fa,_0x2ef979=_0x306830();while(!![]){try{const _0x358fa7=-parseInt(_0x5d393d(0x1da))/0x1+-parseInt(_0x5d393d(0x1eb))/0x2*(-parseInt(_0x5d393d(0x1e7))/0x3)+-parseInt(_0x5d393d(0x1e3))/0x4*(parseInt(_0x5d393d(0x1e8))/0x5)+parseInt(_0x5d393d(0x1df))/0x6+-parseInt(_0x5d393d(0x1ee))/0x7+parseInt(_0x5d393d(0x1e6))/0x8+-parseInt(_0x5d393d(0x1db))/0x9;if(_0x358fa7===_0x11d8ee)break;else _0x2ef979['push'](_0x2ef979['shift']());}catch(_0x5f2344){_0x2ef979['push'](_0x2ef979['shift']());}}}(a307_0x385b,0x2f537));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';function a307_0x385b(){const _0x2218a5=['.\x20Run\x20`','Unknown\x20alias\x20\x22','length','name','some','380606BdLQTi','1613790OWGolS','flags','Available\x20aliases:\x20','No\x20model\x20aliases\x20found\x20in\x20','2210316bzrisN','map','join','\x20api\x20pull`\x20first.','379492PzXARF','validation','alias','1795920SJkemZ','59181mzGVJf','10iXnxaC','filePath','code','38PLRZzc','type','string','169260EwYPuL','profileName'];a307_0x385b=function(){return _0x2218a5;};return a307_0x385b();}export function resolveAliasToCode(_0x50df31,_0xb9b292,_0x3c7479,_0x3ded04,_0x2159e3,_0x121478){const _0x5db6b4=a307_0x36fa,_0x1db724=_0x50df31[_0x5db6b4(0x1dc)][_0x5db6b4(0x1d9)](_0x5a8796=>_0x5a8796[_0x5db6b4(0x1d8)]===_0x5db6b4(0x1ea)&&_0x5a8796[_0x5db6b4(0x1ec)]===_0x5db6b4(0x1ed)),_0x22d735=_0x50df31['flags'][_0x5db6b4(0x1d9)](_0x49dc84=>_0x49dc84[_0x5db6b4(0x1d8)]==='alias'&&_0x49dc84[_0x5db6b4(0x1ec)]===_0x5db6b4(0x1ed));if(!_0x1db724||!_0x22d735)return;const _0xc30261=_0xb9b292[_0x5db6b4(0x1ea)]?String(_0xb9b292['code']):'',_0xe5a48d=_0xb9b292[_0x5db6b4(0x1e5)]?String(_0xb9b292['alias']):'';if(!_0xc30261&&!_0xe5a48d)throw CliErrors[_0x5db6b4(0x1e4)]('`'+_0x3ded04+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0xe5a48d&&!_0xc30261){const _0x6406b8=resolveApiModelSource(_0x3c7479,_0x2159e3,_0x121478),_0x134461=resolveAlias(_0x3c7479,_0xe5a48d,undefined,_0x6406b8[_0x5db6b4(0x1e9)],_0x6406b8[_0x5db6b4(0x1ef)]);if(!_0x134461){const _0x360acd=listAliases(_0x3c7479,undefined,_0x6406b8['filePath'],_0x6406b8['profileName'])[_0x5db6b4(0x1e0)](_0x44a135=>_0x44a135[_0x5db6b4(0x1e5)]),_0x31cbec=_0x360acd[_0x5db6b4(0x1d7)]?_0x5db6b4(0x1dd)+_0x360acd[_0x5db6b4(0x1e1)](',\x20'):_0x5db6b4(0x1de)+_0x3c7479+_0x5db6b4(0x1d5)+CLI_BIN_NAME+_0x5db6b4(0x1e2);throw CliErrors['validation'](_0x5db6b4(0x1d6)+_0xe5a48d+'\x22.\x20'+_0x31cbec);}_0xb9b292['code']=_0x134461;}}
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 +1 @@
1
- (function(_0x4fd1b1,_0x59a820){const _0x5902aa=a308_0x11fd,_0x6af4d9=_0x4fd1b1();while(!![]){try{const _0x1d5e5e=parseInt(_0x5902aa(0xef))/0x1+parseInt(_0x5902aa(0xfc))/0x2*(parseInt(_0x5902aa(0x125))/0x3)+-parseInt(_0x5902aa(0xf1))/0x4*(-parseInt(_0x5902aa(0x117))/0x5)+-parseInt(_0x5902aa(0x12f))/0x6+parseInt(_0x5902aa(0x140))/0x7*(parseInt(_0x5902aa(0xf4))/0x8)+parseInt(_0x5902aa(0x136))/0x9*(-parseInt(_0x5902aa(0x13f))/0xa)+-parseInt(_0x5902aa(0x139))/0xb;if(_0x1d5e5e===_0x59a820)break;else _0x6af4d9['push'](_0x6af4d9['shift']());}catch(_0x2ba85c){_0x6af4d9['push'](_0x6af4d9['shift']());}}}(a308_0x2411,0x69cbe));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';function a308_0x11fd(_0x2fe068,_0x5bc282){_0x2fe068=_0x2fe068-0xec;const _0x2411ba=a308_0x2411();let _0x11fd66=_0x2411ba[_0x2fe068];return _0x11fd66;}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 a308_0x2b811d}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x569a57){const _0x570576=a308_0x11fd;return typeof _0x569a57==='string'&&_0x569a57['trim']()?_0x569a57[_0x570576(0x143)]():undefined;}function resolveEnvAppCode(){const _0x10f4a3=a308_0x11fd,_0x4120bf=stringFlag(process.env.RABETBASE_APPCODE);if(_0x4120bf)return{'name':_0x10f4a3(0x12a),'value':_0x4120bf};const _0x26b348=stringFlag(process.env.LOVRABET_APPCODE);if(_0x26b348)return{'name':'LOVRABET_APPCODE','value':_0x26b348};return undefined;}function hasExplicitAppCode(_0x1ca2bd,_0x4dda99){const _0xee5dd5=a308_0x11fd;return!!(stringFlag(_0x1ca2bd[_0xee5dd5(0x137)])||stringFlag(_0x4dda99[_0xee5dd5(0x137)]));}function assertEnvAppCodeNotIgnored(_0x167e61,_0x77a092,_0x419b67){const _0x1a7975=a308_0x11fd;if(!_0x77a092||_0x419b67||_0x167e61===_0x77a092[_0x1a7975(0x130)])return;const _0xf13902=_0x167e61?_0x1a7975(0x109)+_0x167e61+'\x22.':_0x1a7975(0x121);throw CliErrors[_0x1a7975(0x111)](_0x77a092[_0x1a7975(0x11d)]+'='+_0x77a092[_0x1a7975(0x130)]+_0x1a7975(0x116)+_0xf13902+'\x20'+(_0x1a7975(0xf3)+_0x77a092[_0x1a7975(0x11d)]+'\x22.'));}export function createPipelineEnv(_0x3af570,_0x4d0ac4,_0x1ecbd5=[]){const _0x4c6ceb=a308_0x11fd;return{'rawFlags':_0x4d0ac4,'args':_0x1ecbd5,'resolveAppCode':()=>_0x3af570[_0x4c6ceb(0xee)],'resolveCookie':()=>_0x3af570[_0x4c6ceb(0x135)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a308_0x2b811d(_0x4d0ac4),'defaultFormat':_0x3af570[_0x4c6ceb(0xed)],'defaultPageSize':_0x3af570['pageSize'],'defaultVerbose':_0x3af570['verbose'],'apiDir':_0x3af570[_0x4c6ceb(0x141)],'riskLevel':_0x3af570[_0x4c6ceb(0x11a)],'selectedAppName':_0x3af570[_0x4c6ceb(0x104)],'mergedCli':{'defaultApp':_0x3af570[_0x4c6ceb(0x122)],'currentApp':_0x3af570['currentApp'],'appCode':_0x3af570[_0x4c6ceb(0xee)],'apps':_0x3af570[_0x4c6ceb(0xff)]}};}export function createRabetbaseRunnerAdapter(_0x4ead82={}){const _0x2eaff0=a308_0x11fd;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x2eaff0(0x127)](_0x27349d=>PIPELINE_FLAG_NAMES['has'](_0x27349d['name']))[_0x2eaff0(0x13c)](({name:_0x1290bc,type:_0x3f629f,description:_0x4f4021})=>({'name':_0x1290bc,'type':_0x3f629f,'description':_0x4f4021})),'formatOutput':_0x4ead82[_0x2eaff0(0x100)]??formatOutput,'getCommandLabel'(_0x12860c){const _0x5f09ee=_0x2eaff0;return CLI_BIN_NAME+'\x20'+_0x12860c['service']+'\x20'+_0x12860c[_0x5f09ee(0x13b)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x4cedf3,{def:_0xe35941}){const _0x42d5bf=_0x2eaff0,_0x4f891e=_0x4cedf3[_0x42d5bf(0x128)](_0x42d5bf(0x119))?_0x42d5bf(0x118):_0x42d5bf(0x12c)+_0xe35941['risk']+'\x22\x20if\x20this\x20operation\x20is\x20intended.\x20'+_0x42d5bf(0x118);return CliErrors[_0x42d5bf(0x111)](_0x4cedf3+_0x42d5bf(0x129)+_0x4f891e);}},async 'prepare'(_0x53ac5e,_0x3ffc87,_0xc4410c,_0x4769cf){const _0x4b7505=_0x2eaff0,_0x187d11=_0x3ffc87[_0x4b7505(0x141)]||DEFAULT_API_DIR,_0x2644c2=hasExplicitAppCode(_0xc4410c,_0x3ffc87[_0x4b7505(0x101)]),_0x5104b1=stringFlag(_0xc4410c[_0x4b7505(0x137)])||stringFlag(_0x3ffc87[_0x4b7505(0x101)]['appcode']),_0x2f3a04=_0x3ffc87[_0x4b7505(0xf0)]?.[_0x4b7505(0xff)]??{},_0x184252=_0x3ffc87['selectedAppName']||_0x3ffc87[_0x4b7505(0xf0)]?.[_0x4b7505(0x142)]||_0x3ffc87[_0x4b7505(0xf0)]?.[_0x4b7505(0x122)],_0x315607=_0x5104b1?Object[_0x4b7505(0x107)](_0x2f3a04)[_0x4b7505(0x127)](([,_0x52e387])=>_0x52e387['appcode']===_0x5104b1)[_0x4b7505(0x13c)](([_0x1bf364])=>_0x1bf364):[];if(_0x315607[_0x4b7505(0xf7)]>0x1&&!_0x3ffc87['selectedAppName'])throw CliErrors[_0x4b7505(0x111)](_0x4b7505(0xfe)+_0x5104b1+_0x4b7505(0x134)+_0x315607[_0x4b7505(0x113)](',\x20')+'.',_0x4b7505(0x11c));resolveAliasToCode(_0x53ac5e,_0xc4410c,_0x187d11,_0x4769cf,_0x3ffc87[_0x4b7505(0x11b)](),_0x184252);const _0x52701d=resolveCommandAuthMode(_0x53ac5e);let _0x182a24='';if(_0x52701d!==_0x4b7505(0x115)){_0x182a24=_0x3ffc87[_0x4b7505(0x13d)]()||'';if(!_0x182a24){if(_0x52701d===_0x4b7505(0x10f))throw CliErrors[_0x4b7505(0x105)]();}else{const {setActiveCookie:_0x467eb3}=await import(_0x4b7505(0x13e));_0x467eb3(_0x182a24);}}const _0x1b45dc=_0x3ffc87[_0x4b7505(0x11b)]()??'';if(_0x53ac5e[_0x4b7505(0x10b)]!==![]){if(!_0x2644c2&&_0x184252&&!_0x2f3a04[_0x184252]){const _0x29dabf=Object['keys'](_0x2f3a04);throw CliErrors[_0x4b7505(0x111)]('App\x20\x22'+_0x184252+_0x4b7505(0x132),_0x29dabf[_0x4b7505(0xf7)]>0x0?_0x4b7505(0x11e)+_0x29dabf[_0x4b7505(0x113)](',\x20')+_0x4b7505(0xf2)+CLI_BIN_NAME+_0x4b7505(0x10c):_0x4b7505(0x131)+CLI_BIN_NAME+_0x4b7505(0x10c));}assertEnvAppCodeNotIgnored(_0x1b45dc,resolveEnvAppCode(),_0x2644c2);if(!_0x1b45dc){const _0x55adc8=Object[_0x4b7505(0x12d)](_0x2f3a04);if(!_0x184252&&_0x55adc8[_0x4b7505(0xf7)]>0x1)throw CliErrors['configMissing']('Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`'+CLI_BIN_NAME+_0x4b7505(0x110)+_0x55adc8['join'](',\x20')+'.');throw CliErrors[_0x4b7505(0x10a)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}}return{'defaults':{'booleans':{'verbose':_0x3ffc87[_0x4b7505(0xf6)]},'numbers':{'pagesize':_0x3ffc87[_0x4b7505(0x138)]}},'extras':{'appCode':_0x1b45dc,'cookie':_0x182a24,'apiDomain':_0x3ffc87['resolveApiDomain'](),'apiDir':_0x187d11,'selectedAppName':_0x3ffc87[_0x4b7505(0xec)],'mergedCli':_0x3ffc87['mergedCli']}};},'confirmHighRisk':_0x4ead82[_0x2eaff0(0x120)]??(async({env:_0x404b73,commandLabel:_0x1bdd78})=>{const _0x51067d=_0x2eaff0;if(_0x404b73[_0x51067d(0x123)])throw CliErrors['validation'](_0x51067d(0x10e)+_0x1bdd78+_0x51067d(0x114));await requireConfirmationPrompt({'lines':[_0x51067d(0x102)+_0x1bdd78,_0x51067d(0xfa)],'createCancelledError':_0x3cf969=>CliErrors[_0x51067d(0xf9)](_0x3cf969)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x130bfb=a308_0x11fd,{clearActiveCookie:_0x289456}=await import(_0x130bfb(0x13e));_0x289456();}export async function finalizeRabetbaseRuntimeState(){try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x27e7c5},{initEnv:_0x3034c1}]=await Promise['all']([import('../constant/domain.js'),import('../constant/env.js')]);_0x27e7c5(),_0x3034c1('production');}}export async function runCommand(_0x4152e8,_0x287266,_0x3d440f=terminalRunnerAdapter){const _0x319920=a308_0x11fd;assertRejectedFlags(_0x4152e8,_0x287266[_0x319920(0x101)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x4152e8)?withUpdateNotice(_0x4152e8):_0x4152e8,_0x287266,_0x3d440f);}function assertRejectedFlags(_0x3adfb2,_0x1edddc){const _0x18e974=a308_0x11fd;for(const _0x5690ea of _0x3adfb2[_0x18e974(0x12e)]??[]){const _0x3d071a=GLOBAL_FLAGS[_0x18e974(0x11f)](_0x296932=>_0x296932[_0x18e974(0x11d)]===_0x5690ea[_0x18e974(0x11d)]),_0x1d4de5=new Set([_0x5690ea[_0x18e974(0x11d)],toCamelCase(_0x5690ea['name']),_0x3d071a?.[_0x18e974(0x10d)]]),_0x4cebae=[..._0x1d4de5][_0x18e974(0x106)](_0x1615bb=>{if(!_0x1615bb)return![];const _0x1c04c9=_0x1edddc[_0x1615bb];return _0x1c04c9!==undefined&&_0x1c04c9!==null&&_0x1c04c9!==![];});if(_0x4cebae)throw CliErrors[_0x18e974(0x111)](_0x5690ea[_0x18e974(0x133)],_0x5690ea[_0x18e974(0x103)]);}}function toCamelCase(_0x44125f){const _0x4dae91=a308_0x11fd;return _0x44125f[_0x4dae91(0xfb)](/-([a-z])/g,(_0x245c62,_0xcd8380)=>_0xcd8380[_0x4dae91(0xf8)]());}function shouldAttachUpdateNotice(_0x1d5548){const _0xc07285=a308_0x11fd;if(_0x1d5548[_0xc07285(0x108)]===![])return![];return![_0xc07285(0xf5),_0xc07285(0x112),'doctor'][_0xc07285(0x128)](_0x1d5548['service']);}function withUpdateNotice(_0x412a6c){return{..._0x412a6c,async 'execute'(_0x1f902){const _0x29a5b6=a308_0x11fd,_0x1e6712=shouldResolveUpdateNotice(_0x1f902)?resolveLatestUpdateNotice()[_0x29a5b6(0xfd)](()=>null):Promise[_0x29a5b6(0x124)](null),_0x543a6f=await _0x412a6c[_0x29a5b6(0x13a)](_0x1f902);return attachUpdateNotice(_0x543a6f,await _0x1e6712);}};}function shouldResolveUpdateNotice(_0xb68a0d){const _0x393229=a308_0x11fd;return _0xb68a0d[_0x393229(0xed)]==='pretty'&&!_0xb68a0d['nonInteractive'];}function attachUpdateNotice(_0x64020a,_0x43c455){const _0x406397=a308_0x11fd;if(!_0x43c455||!_0x64020a||typeof _0x64020a!=='object')return _0x64020a;const _0x379339=_0x64020a,_0x37a947=typeof _0x379339[_0x406397(0x126)]===_0x406397(0x12b)&&_0x379339[_0x406397(0x126)]!==null?_0x379339['_notice']:{};return{..._0x379339,'_notice':{..._0x37a947,'update':_0x43c455}};}function a308_0x2411(){const _0x16515c=['required','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','validation','schema','join','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','none','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','65tQCeQl','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','Edit\x20the\x20config\x20file\x20manually','riskLevel','resolveAppCode','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','name','Available:\x20','find','confirmHighRisk','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','defaultApp','isNonInteractive','resolve','3TjWQIo','_notice','filter','includes','\x0a\x20\x20','RABETBASE_APPCODE','object','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','keys','rejectedFlags','2343930WAmXoM','value','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','message','\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20','cookie','2990097smVXDC','appcode','defaultPageSize','19428981JaxuBa','execute','command','map','resolveCookie','../core/api-client.js','10JYCftR','101857hCXpPh','apiDir','currentApp','trim','selectedAppName','format','appCode','774358AgAhud','mergedCli','264284HtWCTW','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','472SXylTJ','update','defaultVerbose','length','toUpperCase','cancelled','\x20\x20\x20Continue?\x20[y/N]\x20','replace','861422WnWHYJ','catch','AppCode\x20\x22','apps','formatOutput','rawFlags','⚠\x20\x20High-risk\x20operation:\x20','hint','explicitAppName','authRequired','some','entries','hasFormat','Current\x20resolved\x20appcode\x20is\x20\x22','configMissing','requiresAppCode','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','meowKey','High-risk\x20operation\x20`'];a308_0x2411=function(){return _0x16515c;};return a308_0x2411();}
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 +1 @@
1
- (function(_0x2d1005,_0x8d950f){const _0x263dda=a309_0x5dcc,_0x49bad2=_0x2d1005();while(!![]){try{const _0xeb2b33=-parseInt(_0x263dda(0xb6))/0x1*(-parseInt(_0x263dda(0xae))/0x2)+-parseInt(_0x263dda(0xb0))/0x3*(parseInt(_0x263dda(0xb8))/0x4)+-parseInt(_0x263dda(0xaf))/0x5+-parseInt(_0x263dda(0xb4))/0x6*(-parseInt(_0x263dda(0xb1))/0x7)+-parseInt(_0x263dda(0xb5))/0x8+parseInt(_0x263dda(0xb9))/0x9*(parseInt(_0x263dda(0xb7))/0xa)+parseInt(_0x263dda(0xb2))/0xb*(parseInt(_0x263dda(0xb3))/0xc);if(_0xeb2b33===_0x8d950f)break;else _0x49bad2['push'](_0x49bad2['shift']());}catch(_0x51e4bb){_0x49bad2['push'](_0x49bad2['shift']());}}}(a309_0x1935,0xc7989));function a309_0x1935(){const _0x201098=['216yTMhcH','../commands/registry.js','2598902LMYGYy','4472795SIyBou','153NURfVB','21gaIoZe','11ZhnQNI','28126188jrbEKt','1367406UByosF','11299344jPMIuC','1yerEuh','530WGhMUH','94412DqcCco'];a309_0x1935=function(){return _0x201098;};return a309_0x1935();}import{buildSchemaPayload as a309_0x5f0ebf}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';import{getCliVersion}from'../utils/version.js';function a309_0x5dcc(_0x26206d,_0x5d6cd3){_0x26206d=_0x26206d-0xad;const _0x19357b=a309_0x1935();let _0x5dcc7d=_0x19357b[_0x26206d];return _0x5dcc7d;}export async function buildSchemaPayload(){const _0xade2ae=a309_0x5dcc,{serviceRegistry:_0x2ce2ee,findDefinition:_0x4f89b7}=await import(_0xade2ae(0xad));return a309_0x5f0ebf({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x2ce2ee,'buildAllFlags':buildAllFlags,'findDefinition':_0x4f89b7});}
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 +1 @@
1
- (function(_0x2f8e1c,_0x3070cb){const _0x349ea7=a310_0x10b7,_0x3769e1=_0x2f8e1c();while(!![]){try{const _0x111927=-parseInt(_0x349ea7(0x125))/0x1*(parseInt(_0x349ea7(0x124))/0x2)+-parseInt(_0x349ea7(0x117))/0x3*(-parseInt(_0x349ea7(0x11a))/0x4)+-parseInt(_0x349ea7(0x122))/0x5+parseInt(_0x349ea7(0x10d))/0x6*(-parseInt(_0x349ea7(0x112))/0x7)+-parseInt(_0x349ea7(0x108))/0x8+parseInt(_0x349ea7(0x118))/0x9*(parseInt(_0x349ea7(0x127))/0xa)+-parseInt(_0x349ea7(0x11b))/0xb*(-parseInt(_0x349ea7(0x114))/0xc);if(_0x111927===_0x3070cb)break;else _0x3769e1['push'](_0x3769e1['shift']());}catch(_0xcdf995){_0x3769e1['push'](_0x3769e1['shift']());}}}(a310_0x4c79,0x31bc2));import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0x50c215,_0x5d0efb){const _0x4b74f9=a310_0x10b7;if(!_0x50c215[_0x4b74f9(0x10e)])return;const _0x48c9d5=new Set([_0x4b74f9(0x11c),_0x4b74f9(0x120)]),_0x38fbff=GLOBAL_FLAGS[_0x4b74f9(0x109)](_0x3b7d0b=>PIPELINE_FLAG_NAMES[_0x4b74f9(0x10a)](_0x3b7d0b[_0x4b74f9(0x126)]));for(const _0x168910 of[..._0x50c215[_0x4b74f9(0x116)],..._0x38fbff]){addFlagCandidates(_0x48c9d5,_0x168910);}for(const [_0x2757ef,_0x14baff]of Object[_0x4b74f9(0x119)](_0x5d0efb)){if(!isExplicitValue(_0x14baff)||_0x48c9d5[_0x4b74f9(0x10a)](_0x2757ef))continue;const _0x3469c0=GLOBAL_FLAGS[_0x4b74f9(0x10b)](_0xb2844b=>_0xb2844b[_0x4b74f9(0x113)]===_0x2757ef)?.['name']??toKebabCase(_0x2757ef);throw CliErrors[_0x4b74f9(0x111)]('Unsupported\x20flag\x20--'+_0x3469c0+_0x4b74f9(0x121)+CLI_BIN_NAME+'\x20'+_0x50c215[_0x4b74f9(0x11f)]+'\x20'+_0x50c215[_0x4b74f9(0x115)]+'`.','Run\x20`'+CLI_BIN_NAME+'\x20'+_0x50c215['service']+'\x20'+_0x50c215[_0x4b74f9(0x115)]+_0x4b74f9(0x110));}}function a310_0x4c79(){const _0x56838e=['alias','1446840KrAhyE','filter','has','find','$1-$2','2202UvoGMv','strictFlags','add','\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.','validation','3857JcrDWA','meowKey','198540IVBulv','command','flags','3hUVhBT','2637TSqvZr','entries','1618684XWpekh','484uZEfCM','help','isArray','replace','service','version','\x20for\x20`','1646820PklBFw','length','13324NQjGcr','46DMapoG','name','3070PyRoEJ'];a310_0x4c79=function(){return _0x56838e;};return a310_0x4c79();}function addFlagCandidates(_0x4ebaeb,_0x34ca96){const _0x49c3aa=a310_0x10b7,_0xc590b7=_0x49c3aa(0x113)in _0x34ca96?[_0x34ca96['name'],_0x34ca96[_0x49c3aa(0x113)]]:[_0x34ca96[_0x49c3aa(0x126)],_0x34ca96[_0x49c3aa(0x128)]];for(const _0x3d9a58 of _0xc590b7){if(!_0x3d9a58)continue;_0x4ebaeb[_0x49c3aa(0x10f)](_0x3d9a58),_0x4ebaeb[_0x49c3aa(0x10f)](toCamelCase(_0x3d9a58));}}function isExplicitValue(_0x23a548){const _0x1a00fc=a310_0x10b7;return _0x23a548!==undefined&&_0x23a548!==null&&_0x23a548!==![]&&(!Array[_0x1a00fc(0x11d)](_0x23a548)||_0x23a548[_0x1a00fc(0x123)]>0x0);}function toCamelCase(_0x242543){const _0x590ec9=a310_0x10b7;return _0x242543[_0x590ec9(0x11e)](/-([a-z])/g,(_0x309ad2,_0x4ee5ba)=>_0x4ee5ba['toUpperCase']());}function a310_0x10b7(_0x153f88,_0x37a64b){_0x153f88=_0x153f88-0x108;const _0x4c79ac=a310_0x4c79();let _0x10b72a=_0x4c79ac[_0x153f88];return _0x10b72a;}function toKebabCase(_0x47c9cc){const _0x33a8a7=a310_0x10b7;return _0x47c9cc['replace'](/([a-z0-9])([A-Z])/g,_0x33a8a7(0x10c))['toLowerCase']();}
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 +1 @@
1
- (function(_0x1a8dc4,_0x16f9cb){var _0x2f988a=a311_0x4668,_0x3e1918=_0x1a8dc4();while(!![]){try{var _0x5cbac6=parseInt(_0x2f988a(0xc8))/0x1+parseInt(_0x2f988a(0xc9))/0x2+-parseInt(_0x2f988a(0xca))/0x3+parseInt(_0x2f988a(0xcc))/0x4*(parseInt(_0x2f988a(0xc7))/0x5)+parseInt(_0x2f988a(0xc4))/0x6+parseInt(_0x2f988a(0xcb))/0x7*(parseInt(_0x2f988a(0xc3))/0x8)+-parseInt(_0x2f988a(0xc6))/0x9*(parseInt(_0x2f988a(0xc5))/0xa);if(_0x5cbac6===_0x16f9cb)break;else _0x3e1918['push'](_0x3e1918['shift']());}catch(_0x32909f){_0x3e1918['push'](_0x3e1918['shift']());}}}(a311_0x25c6,0x7fad8));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';function a311_0x4668(_0x1cca58,_0x23bea3){_0x1cca58=_0x1cca58-0xc3;var _0x25c69f=a311_0x25c6();var _0x46685f=_0x25c69f[_0x1cca58];return _0x46685f;}function a311_0x25c6(){var _0x3e66b8=['144iVCYoN','35430jKiIxa','48829XYcuSR','1695318dHFgVx','1908009vvHiuF','2681WVAGsv','24JpODfS','2264NpbnTx','4524540CjYDQE','401570VNWHrC'];a311_0x25c6=function(){return _0x3e66b8;};return a311_0x25c6();}
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,4 +1,4 @@
1
- export declare const VERSION = "2.5.4-beta.4";
2
- export declare const GIT_TAG = "v2.5.4-beta.4";
3
- export declare const GIT_COMMIT = "18d4c36c";
4
- export declare const BUILD_TIME = "2026-09-24T04:16:41.101Z";
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 +1 @@
1
- const a312_0x43a638=a312_0x41a6;(function(_0x39f5db,_0x4b75b0){const _0x374fa1=a312_0x41a6,_0x1134e6=_0x39f5db();while(!![]){try{const _0x3ad58b=parseInt(_0x374fa1(0x9c))/0x1*(-parseInt(_0x374fa1(0x9d))/0x2)+-parseInt(_0x374fa1(0xa3))/0x3+parseInt(_0x374fa1(0x98))/0x4*(-parseInt(_0x374fa1(0x9a))/0x5)+-parseInt(_0x374fa1(0xa0))/0x6*(parseInt(_0x374fa1(0x9b))/0x7)+parseInt(_0x374fa1(0x9e))/0x8+parseInt(_0x374fa1(0x99))/0x9+parseInt(_0x374fa1(0xa4))/0xa*(parseInt(_0x374fa1(0xa5))/0xb);if(_0x3ad58b===_0x4b75b0)break;else _0x1134e6['push'](_0x1134e6['shift']());}catch(_0xdea4b1){_0x1134e6['push'](_0x1134e6['shift']());}}}(a312_0x2cbb,0x9c080));export const VERSION='2.5.4-beta.4';export const GIT_TAG=a312_0x43a638(0xa2);function a312_0x41a6(_0x46b066,_0x5eb851){_0x46b066=_0x46b066-0x98;const _0x2cbb65=a312_0x2cbb();let _0x41a6e4=_0x2cbb65[_0x46b066];return _0x41a6e4;}export const GIT_COMMIT=a312_0x43a638(0x9f);export const BUILD_TIME=a312_0x43a638(0xa1);function a312_0x2cbb(){const _0xa8e920=['29544kCzJCu','2026-09-24T04:16:41.101Z','v2.5.4-beta.4','2378463rMyglB','17381590NOwqkH','11NXwgVW','4kZBRtZ','3539286PHTHsQ','2269885qkMtwp','14SmYOwi','867589xtLZEJ','2PTbIhz','5055408iwsFGD','18d4c36c'];a312_0x2cbb=function(){return _0xa8e920;};return a312_0x2cbb();}
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 +1 @@
1
- const a313_0x2656ff=a313_0x46eb;(function(_0x46d345,_0x5b94bb){const _0x5c6dff=a313_0x46eb,_0x15b1f1=_0x46d345();while(!![]){try{const _0x1733f1=-parseInt(_0x5c6dff(0xb5))/0x1+-parseInt(_0x5c6dff(0xb7))/0x2*(parseInt(_0x5c6dff(0xb3))/0x3)+-parseInt(_0x5c6dff(0xd3))/0x4+-parseInt(_0x5c6dff(0xc0))/0x5+-parseInt(_0x5c6dff(0xc7))/0x6+parseInt(_0x5c6dff(0xc9))/0x7*(parseInt(_0x5c6dff(0xb8))/0x8)+parseInt(_0x5c6dff(0xb0))/0x9;if(_0x1733f1===_0x5b94bb)break;else _0x15b1f1['push'](_0x15b1f1['shift']());}catch(_0x4e4ef3){_0x15b1f1['push'](_0x15b1f1['shift']());}}}(a313_0x189d,0x1ffd2));export const ROUTING_CATALOG_DIGEST=a313_0x2656ff(0xbc);function a313_0x189d(){const _0x4428cd=['https://api.lovrabet.com','https://user-daily.lovrabet.com','https://daily-api.lovrabet.ai','https://api.lovrabet.id','https://daily.lovrabet.com','6940125IKLtTv','https://app.lovrabet.ai','https://skills-daily.lovrabet.com','162ABmhFN','https://daily-runtime.lovrabet.com','208614NlxTDB','https://daily-api.lovrabet.com','8682hHSslF','497784QOuAVC','Indonesia','https://skills-daily.lovrabet.ai','https://kb-service.lovrabet.id','57d346b80b12ca567af9d86dd7f8c02a0c27fe15d4944c8345add2cc6134c587','https://dev.lovrabet.ai','https://app.lovrabet.id','https://user.lovrabet.ai','487015iyrfYJ','https://api.lovrabet.ai','https://skills.lovrabet.com','https://daily.lovrabet.ai','https://daily-runtime.lovrabet.ai','indonesia','Global','1355490YQxkZa','global','21LJlMdF','https://user-daily.lovrabet.ai','https://g.lovrabet.ai','https://g.lovrabet.id','https://runtime.lovrabet.id','https://dev.lovrabet.com','https://dev.lovrabet.id','https://g.lovrabet.com','https://g.alicdn.com/code/lib','https://user.lovrabet.com','241688NfEpag','https://kb-service-daily.lovrabet.com','https://cdnjs.cloudflare.com/ajax/libs'];a313_0x189d=function(){return _0x4428cd;};return a313_0x189d();}export const DEFAULT_REGION='cn';function a313_0x46eb(_0x209f29,_0x1096c5){_0x209f29=_0x209f29-0xab;const _0x189d83=a313_0x189d();let _0x46eb8e=_0x189d83[_0x209f29];return _0x46eb8e;}export const REGION_VALUES=['cn','id',a313_0x2656ff(0xc8)];export const ENABLED_REGION_VALUES=['cn','id',a313_0x2656ff(0xc8)];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':'Mainland\x20China','aliases':['china'],'serviceDomains':{'production':{'user':a313_0x2656ff(0xd2),'api':a313_0x2656ff(0xab),'runtime':'https://runtime.lovrabet.com','skill':a313_0x2656ff(0xc2),'kb':a313_0x2656ff(0xab),'kbService':'https://kb-service.lovrabet.com','app':'https://app.lovrabet.com'},'daily':{'user':a313_0x2656ff(0xac),'api':a313_0x2656ff(0xb6),'runtime':a313_0x2656ff(0xb4),'skill':a313_0x2656ff(0xb2),'kb':a313_0x2656ff(0xb6),'kbService':a313_0x2656ff(0xd4),'app':a313_0x2656ff(0xaf)}},'cdn':{'libraries':a313_0x2656ff(0xd1),'lovrabet':a313_0x2656ff(0xd0)},'local':{'origin':a313_0x2656ff(0xce)}},'id':{'enabled':!![],'label':a313_0x2656ff(0xb9),'aliases':[a313_0x2656ff(0xc5)],'serviceDomains':{'production':{'user':'https://user.lovrabet.id','api':a313_0x2656ff(0xae),'runtime':a313_0x2656ff(0xcd),'skill':'https://skills.lovrabet.id','kb':a313_0x2656ff(0xae),'kbService':a313_0x2656ff(0xbb),'app':a313_0x2656ff(0xbe)}},'cdn':{'libraries':a313_0x2656ff(0xd5),'lovrabet':a313_0x2656ff(0xcc)},'local':{'origin':a313_0x2656ff(0xcf)}},'global':{'enabled':!![],'label':a313_0x2656ff(0xc6),'aliases':[],'serviceDomains':{'production':{'user':a313_0x2656ff(0xbf),'api':'https://api.lovrabet.ai','runtime':'https://runtime.lovrabet.ai','skill':'https://skills.lovrabet.ai','kb':a313_0x2656ff(0xc1),'app':a313_0x2656ff(0xb1)},'daily':{'user':a313_0x2656ff(0xca),'api':a313_0x2656ff(0xad),'runtime':a313_0x2656ff(0xc4),'skill':a313_0x2656ff(0xba),'kb':'https://daily-api.lovrabet.ai','app':a313_0x2656ff(0xc3)}},'cdn':{'libraries':'https://cdnjs.cloudflare.com/ajax/libs','lovrabet':a313_0x2656ff(0xcb)},'local':{'origin':a313_0x2656ff(0xbd)}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
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 +1 @@
1
- const a314_0x155f77=a314_0x40e5;(function(_0x44ac1f,_0x3670e6){const _0x5e7fa6=a314_0x40e5,_0x2c9c4b=_0x44ac1f();while(!![]){try{const _0x304784=parseInt(_0x5e7fa6(0xc5))/0x1*(-parseInt(_0x5e7fa6(0xc3))/0x2)+parseInt(_0x5e7fa6(0xc4))/0x3+parseInt(_0x5e7fa6(0xcb))/0x4*(parseInt(_0x5e7fa6(0xca))/0x5)+-parseInt(_0x5e7fa6(0xb9))/0x6+-parseInt(_0x5e7fa6(0xbc))/0x7*(parseInt(_0x5e7fa6(0xc1))/0x8)+-parseInt(_0x5e7fa6(0xc8))/0x9+parseInt(_0x5e7fa6(0xc0))/0xa;if(_0x304784===_0x3670e6)break;else _0x2c9c4b['push'](_0x2c9c4b['shift']());}catch(_0x3f22bb){_0x2c9c4b['push'](_0x2c9c4b['shift']());}}}(a314_0x1acd,0x544fb));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a314_0x155f77(0xcc);export const ENTERPRISE_ROUTING_PROTOCOL='lovrabet-routing/v1';export const ENTERPRISE_ROUTING_KIND=a314_0x155f77(0xbd);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain','apiDomain',a314_0x155f77(0xbb),a314_0x155f77(0xbf),a314_0x155f77(0xc2),'kbServiceDomain',a314_0x155f77(0xc9),a314_0x155f77(0xc6),a314_0x155f77(0xc7)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a314_0x155f77(0xb8),a314_0x155f77(0xbe),a314_0x155f77(0xbb),a314_0x155f77(0xbf),a314_0x155f77(0xc2),a314_0x155f77(0xc9)];function a314_0x40e5(_0x417073,_0x20ecd7){_0x417073=_0x417073-0xb8;const _0x1acdb6=a314_0x1acd();let _0x40e58c=_0x1acdb6[_0x417073];return _0x40e58c;}export const ENTERPRISE_ROUTING_CDN_FIELDS=['libraries','lovrabet'];function a314_0x1acd(){const _0xa41ba0=['libraries','runtimeDomain','170863AauNtc','enterprise','apiDomain','skillDomain','9516150VIZTXC','56WfAfgA','kbDomain','113548DSFdvD','1249725eYXAmO','8jngvnb','localDomain','certificateDomain','2380149DoEFcP','appDomain','1112755MmBaiB','8TflMoP','a03fe188b2b34518efc5668666c0001d20354882cd7dd70afec902dffe1329c3','userDomain','3470622TLvcHQ'];a314_0x1acd=function(){return _0xa41ba0;};return a314_0x1acd();}export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=[a314_0x155f77(0xba),'lovrabet'];
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)];
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x5d8e37,_0xe7c5c){var _0x16de60=a315_0x1da5,_0x119c7e=_0x5d8e37();while(!![]){try{var _0x44e18b=-parseInt(_0x16de60(0x79))/0x1+parseInt(_0x16de60(0x7a))/0x2+parseInt(_0x16de60(0x6f))/0x3*(parseInt(_0x16de60(0x6d))/0x4)+parseInt(_0x16de60(0x6c))/0x5*(parseInt(_0x16de60(0x78))/0x6)+-parseInt(_0x16de60(0x75))/0x7+-parseInt(_0x16de60(0x72))/0x8+parseInt(_0x16de60(0x74))/0x9*(parseInt(_0x16de60(0x76))/0xa);if(_0x44e18b===_0xe7c5c)break;else _0x119c7e['push'](_0x119c7e['shift']());}catch(_0x5422bb){_0x119c7e['push'](_0x119c7e['shift']());}}}(a315_0x5d9d,0x3562f));function a315_0x1da5(_0x3ae458,_0x17153d){_0x3ae458=_0x3ae458-0x6b;var _0x5d9d2c=a315_0x5d9d();var _0x1da54a=_0x5d9d2c[_0x3ae458];return _0x1da54a;}import a315_0x97c6ea from'chalk';function a315_0x5d9d(){var _0x48969a=['log','9GhfveX','1429211uljyHw','6991790NBOcDo','\x20--help','90366gxTMxp','362836XMiuWx','139004qsJjee','\x20to\x20view\x20available\x20commands.','10lJnwFI','223140Iomvtt','bold','6ffxxOR','\x20\x20Use\x20','green','997544VwAKUl'];a315_0x5d9d=function(){return _0x48969a;};return a315_0x5d9d();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x459203=a315_0x1da5;console['log'](),console[_0x459203(0x73)](a315_0x97c6ea[_0x459203(0x71)][_0x459203(0x6e)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x459203(0x73)](),console[_0x459203(0x73)](_0x459203(0x70)+a315_0x97c6ea['green'][_0x459203(0x6e)](CLI_BIN_NAME+_0x459203(0x77))+_0x459203(0x6b)),console[_0x459203(0x73)]();}
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 +1 @@
1
- function a316_0x3960(){const _0x48c0b2=['installed','133542rhrmxT','6516HCLfzi','FAILED','Installation\x20failed','log','358810mzLfhy','installedPath','Repair\x20with:\x20','490SKjlpf','skillVersion','343264CbUnvc','already\x20current','code','SOURCE_INVALID','140536vtAwOM','Rabetbase\x20Built-in\x20Skill\x20','[BUILTIN_SKILL_INSTALL_','warn','repairCommand','413397ziJyMt','\x20at\x20','701960XYiEja'];a316_0x3960=function(){return _0x48c0b2;};return a316_0x3960();}(function(_0xe96429,_0x3e3a85){const _0x39d3e1=a316_0x2634,_0x224747=_0xe96429();while(!![]){try{const _0x300ad6=-parseInt(_0x39d3e1(0x1e5))/0x1+parseInt(_0x39d3e1(0x1ea))/0x2+parseInt(_0x39d3e1(0x1e1))/0x3+-parseInt(_0x39d3e1(0x1d8))/0x4+parseInt(_0x39d3e1(0x1e3))/0x5+parseInt(_0x39d3e1(0x1e6))/0x6*(-parseInt(_0x39d3e1(0x1ed))/0x7)+-parseInt(_0x39d3e1(0x1dc))/0x8;if(_0x300ad6===_0x3e3a85)break;else _0x224747['push'](_0x224747['shift']());}catch(_0xbaa9e9){_0x224747['push'](_0x224747['shift']());}}}(a316_0x3960,0x2350b));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a316_0x2634(_0x2c5fac,_0x5f1c73){_0x2c5fac=_0x2c5fac-0x1d8;const _0x39609d=a316_0x3960();let _0x263469=_0x39609d[_0x2c5fac];return _0x263469;}export async function runPostinstall(_0x125d0a={}){const _0x56bb18=a316_0x2634,_0x18a631=installBuiltinSkill(_0x125d0a);if(_0x18a631['ok']){const _0x23fd35=_0x18a631['changed']?_0x56bb18(0x1e4):_0x56bb18(0x1d9),_0x5c07f2=_0x18a631[_0x56bb18(0x1eb)]?_0x56bb18(0x1e2)+_0x18a631[_0x56bb18(0x1eb)]:'\x20via\x20skills@latest';return console[_0x56bb18(0x1e9)](_0x56bb18(0x1dd)+_0x18a631[_0x56bb18(0x1ee)]+'\x20'+_0x23fd35+_0x5c07f2),_0x18a631;}const _0xe7c68f=_0x56bb18(0x1de)+(_0x18a631['code']??_0x56bb18(0x1e7))+']\x20'+(_0x18a631['error']??_0x56bb18(0x1e8))+'.\x20'+(_0x56bb18(0x1ec)+_0x18a631[_0x56bb18(0x1e0)]);if(_0x18a631[_0x56bb18(0x1da)]===_0x56bb18(0x1db))throw new Error(_0xe7c68f);return console[_0x56bb18(0x1df)](_0xe7c68f),_0x18a631;}
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 +1 @@
1
- function a317_0x52e4(){const _0x27c1e5=['replace','420DIybcw','confirmationDescription','38700axsQLm','10VjCNKw','6077892iLMSkh','.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','5368528mexbRz','7175Tqnffs','write','This\x20will\x20run\x20the\x20high-risk\x20write\x20','high-risk-write','1738359hYGFQD','2YMPyPF','string','35301QkDVqb','.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','risk','148gnoVdX','slice','This\x20will\x20run\x20the\x20write\x20','5144KZBZQL','trim','245957nTRnyC'];a317_0x52e4=function(){return _0x27c1e5;};return a317_0x52e4();}function a317_0x1ea9(_0x249574,_0x1f5624){_0x249574=_0x249574-0xed;const _0x52e408=a317_0x52e4();let _0x1ea946=_0x52e408[_0x249574];return _0x1ea946;}(function(_0x28558e,_0x304eef){const _0x586833=a317_0x1ea9,_0xf2dfdc=_0x28558e();while(!![]){try{const _0x35377f=-parseInt(_0x586833(0x102))/0x1*(-parseInt(_0x586833(0xf8))/0x2)+-parseInt(_0x586833(0xfa))/0x3*(-parseInt(_0x586833(0xfd))/0x4)+parseInt(_0x586833(0xee))/0x5*(parseInt(_0x586833(0x104))/0x6)+-parseInt(_0x586833(0xf3))/0x7*(parseInt(_0x586833(0x100))/0x8)+-parseInt(_0x586833(0xf7))/0x9*(parseInt(_0x586833(0xef))/0xa)+parseInt(_0x586833(0xf2))/0xb+-parseInt(_0x586833(0xf0))/0xc;if(_0x35377f===_0x304eef)break;else _0xf2dfdc['push'](_0xf2dfdc['shift']());}catch(_0xb235b7){_0xf2dfdc['push'](_0xf2dfdc['shift']());}}}(a317_0x52e4,0x560d3));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x4576fc,_0x4cc462,_0x273744){const _0x5b874c=a317_0x1ea9,_0x463edb=normalizeText(_0x4576fc[_0x5b874c(0xed)],DESCRIPTION_MAX_LENGTH),_0x1eec07=_0x463edb||normalizeText(defaultDescription(requireWriteRisk(_0x4576fc),_0x4cc462),DESCRIPTION_MAX_LENGTH);return{'operation':_0x4cc462,'risk':requireWriteRisk(_0x4576fc),'description':_0x1eec07,..._0x273744?{'signal':_0x273744}:{}};}function requireWriteRisk(_0x158ad9){const _0x5d6626=a317_0x1ea9;if(_0x158ad9[_0x5d6626(0xfc)]===_0x5d6626(0xf4)||_0x158ad9[_0x5d6626(0xfc)]===_0x5d6626(0xf6))return _0x158ad9[_0x5d6626(0xfc)];throw new Error('Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.');}function defaultDescription(_0x7c6044,_0x48c840){const _0x386bae=a317_0x1ea9;if(_0x7c6044===_0x386bae(0xf6))return _0x386bae(0xf5)+_0x48c840+_0x386bae(0xf1);return _0x386bae(0xff)+_0x48c840+_0x386bae(0xfb);}function normalizeText(_0x279c45,_0xfad09d){const _0xddd9ac=a317_0x1ea9;if(typeof _0x279c45!==_0xddd9ac(0xf9))return'';return _0x279c45[_0xddd9ac(0x103)](/[\u0000-\u001f\u007f]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0xddd9ac(0x101)]()[_0xddd9ac(0xfe)](0x0,_0xfad09d);}
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 +1 @@
1
- (function(_0x5b1b1c,_0x57bff9){const _0x134d3e=a318_0x5f1c,_0x3684bc=_0x5b1b1c();while(!![]){try{const _0x18e28a=parseInt(_0x134d3e(0x1d0))/0x1*(parseInt(_0x134d3e(0x1e3))/0x2)+parseInt(_0x134d3e(0x1e4))/0x3*(-parseInt(_0x134d3e(0x1cf))/0x4)+parseInt(_0x134d3e(0x1de))/0x5*(parseInt(_0x134d3e(0x1dd))/0x6)+-parseInt(_0x134d3e(0x1db))/0x7*(-parseInt(_0x134d3e(0x1d4))/0x8)+-parseInt(_0x134d3e(0x1e2))/0x9*(-parseInt(_0x134d3e(0x1e6))/0xa)+-parseInt(_0x134d3e(0x1d8))/0xb+parseInt(_0x134d3e(0x1e0))/0xc*(-parseInt(_0x134d3e(0x1e5))/0xd);if(_0x18e28a===_0x57bff9)break;else _0x3684bc['push'](_0x3684bc['shift']());}catch(_0x2217c6){_0x3684bc['push'](_0x3684bc['shift']());}}}(a318_0x5810,0x36c42));export function canonicalRabetbaseOperation(_0x22da9c){const _0x36640d=a318_0x5f1c;return[_0x22da9c[_0x36640d(0x1da)],..._0x22da9c[_0x36640d(0x1dc)][_0x36640d(0x1df)]()[_0x36640d(0x1d5)](/\s+/)][_0x36640d(0x1cd)](Boolean)[_0x36640d(0x1d7)]('.');}export function createRabetbaseWriteMetadata(_0x1153b3,_0x593beb,_0x166028,_0x15585b){const _0x49ba91=a318_0x5f1c;if(_0x15585b||_0x166028['ok']!==!![]||hasUnresolvedConflicts(_0x166028)||_0x1153b3[_0x49ba91(0x1e1)]!=='write'&&_0x1153b3['risk']!==_0x49ba91(0x1d3))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x49ba91(0x1d9),'operation':_0x593beb,'risk':_0x1153b3[_0x49ba91(0x1e1)]}}};}function a318_0x5f1c(_0x470d36,_0xc069e0){_0x470d36=_0x470d36-0x1cd;const _0x5810ff=a318_0x5810();let _0x5f1c95=_0x5810ff[_0x470d36];return _0x5f1c95;}function hasUnresolvedConflicts(_0x3882a3){const _0x470173=a318_0x5f1c,_0x2e77bc=_0x3882a3[_0x470173(0x1d6)];return Boolean(_0x2e77bc&&typeof _0x2e77bc===_0x470173(0x1ce)&&!Array['isArray'](_0x2e77bc)&&Array['isArray'](_0x2e77bc[_0x470173(0x1d2)])&&_0x2e77bc[_0x470173(0x1d2)][_0x470173(0x1d1)]>0x0);}function a318_0x5810(){const _0x129555=['156IxCZkX','risk','3930723gpQhYp','9256OfjStv','471RXFzzk','8567DvdRoa','10YVqPAa','filter','object','7868eNjYtK','5wtRZYF','length','conflicts','high-risk-write','40czzDLq','split','data','join','1238116VuKMzW','rabetbase.write.completed','service','44604eymXVi','command','6dtlkLM','812585HsaYqR','trim'];a318_0x5810=function(){return _0x129555;};return a318_0x5810();}
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 +1 @@
1
- (function(_0x1f2bd5,_0x1430d9){const _0x3dcd47=a319_0x1a2b,_0x3008b3=_0x1f2bd5();while(!![]){try{const _0x50be74=-parseInt(_0x3dcd47(0x127))/0x1+-parseInt(_0x3dcd47(0x119))/0x2*(-parseInt(_0x3dcd47(0x125))/0x3)+parseInt(_0x3dcd47(0x128))/0x4*(-parseInt(_0x3dcd47(0x121))/0x5)+-parseInt(_0x3dcd47(0x123))/0x6*(-parseInt(_0x3dcd47(0x120))/0x7)+parseInt(_0x3dcd47(0x133))/0x8*(-parseInt(_0x3dcd47(0x124))/0x9)+-parseInt(_0x3dcd47(0x11d))/0xa+parseInt(_0x3dcd47(0x11f))/0xb;if(_0x50be74===_0x1430d9)break;else _0x3008b3['push'](_0x3008b3['shift']());}catch(_0x505f5e){_0x3008b3['push'](_0x3008b3['shift']());}}}(a319_0x8bc8,0xf18a7));function a319_0x1a2b(_0x3d21bc,_0xdddd09){_0x3d21bc=_0x3d21bc-0x113;const _0x8bc8e6=a319_0x8bc8();let _0x1a2bd9=_0x8bc8e6[_0x3d21bc];return _0x1a2bd9;}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';function a319_0x8bc8(){const _0x5ca3a0=['dryRun','confirm','service','data','reason','isNonInteractive','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','format','signal','stringify','8bBzwAw','dry-run','command','args','confirmation','result','risk','riskLevel','present','presentation','yes','2gEztRD','AbortError','high-risk-write','execute','4740350QLqwkI','rawFlags','21114489nPJiVm','33677efKMDP','2535qyBVTv','definition','438IsYHvd','9715023yhktMA','3534459ImDWfm','message','486733NmTxKq','3308vsaHHQ'];a319_0x8bc8=function(){return _0x5ca3a0;};return a319_0x8bc8();}import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0xeb9459,command:_0xb6847f,risk:_0x1a4d1d,dryRun:_0x5e3a67}){const _0x47d080=a319_0x1a2b;return JSON[_0x47d080(0x132)]({'ok':_0xeb9459['ok'],'command':_0xb6847f,'risk':_0x1a4d1d,..._0x5e3a67?{'dryRun':!![]}:{},..._0xeb9459[_0x47d080(0x12c)]!==undefined?{'data':_0xeb9459[_0x47d080(0x12c)]}:{},..._0xeb9459[_0x47d080(0x126)]?{'message':_0xeb9459[_0x47d080(0x126)]}:{}});}};export async function invokeRabetbase(_0x4a6968,_0xb6eb62){const _0x59ee3d=a319_0x1a2b;throwIfAborted(_0xb6eb62['signal']);const _0xa88b00=await resolveRabetbaseInvocation(_0x4a6968),_0x5e53a2=canonicalRabetbaseOperation(_0xa88b00[_0x59ee3d(0x122)]);return await confirmWriteBeforeQueue(_0xa88b00[_0x59ee3d(0x122)],_0xa88b00[_0x59ee3d(0x11e)],_0x5e53a2,_0xb6eb62),runSerialized(async()=>{const _0x27c09f=_0x59ee3d,_0x4e8cd3={};try{throwIfAborted(_0xb6eb62[_0x27c09f(0x131)]);const _0x1d4335=buildConfigFromFlags(_0xa88b00[_0x27c09f(0x11e)]);!isRoutingRecoveryService(_0xa88b00[_0x27c09f(0x122)][_0x27c09f(0x12b)])&&await initGlobalEnvironment(_0x1d4335);const _0xc2aefa=createPipelineEnv(_0x1d4335,{..._0xa88b00[_0x27c09f(0x11e)],'yes':_0xa88b00[_0x27c09f(0x122)][_0x27c09f(0x114)]===_0x27c09f(0x11b)?!![]:_0xa88b00['rawFlags'][_0x27c09f(0x118)],'nonInteractive':!![]},_0xa88b00[_0x27c09f(0x136)]);_0xc2aefa[_0x27c09f(0x12e)]=!![],_0xc2aefa[_0x27c09f(0x115)]=_0x27c09f(0x11b);const _0xa31c73=withAbortSignal(_0xa88b00['definition'],_0xb6eb62[_0x27c09f(0x131)]),_0x34e98b=createRabetbaseRunnerAdapter({'formatOutput'(_0x166f7e,_0x2f27f2){const _0x38655b=_0x27c09f;_0x4e8cd3[_0x38655b(0x113)]=_0x166f7e,_0x4e8cd3[_0x38655b(0x135)]=_0x2f27f2[_0x38655b(0x135)],_0x4e8cd3[_0x38655b(0x114)]=_0x2f27f2[_0x38655b(0x114)],_0x4e8cd3[_0x38655b(0x130)]=_0x2f27f2[_0x38655b(0x130)],_0x4e8cd3['dryRun']=_0x2f27f2[_0x38655b(0x129)]===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.');}});await runCommand(_0xa31c73,_0xc2aefa,_0x34e98b);if(!_0x4e8cd3[_0x27c09f(0x113)]||!_0x4e8cd3[_0x27c09f(0x135)]||!_0x4e8cd3[_0x27c09f(0x114)]||!_0x4e8cd3[_0x27c09f(0x130)])throw new Error(_0x27c09f(0x12f));const _0x4f9116=_0x4e8cd3[_0x27c09f(0x129)]===!![],_0x41659=_0xb6eb62[_0x27c09f(0x117)]??defaultPresentation,_0x23ec08={'result':_0x4e8cd3[_0x27c09f(0x113)],'command':_0x4e8cd3[_0x27c09f(0x135)],'operation':_0x5e53a2,'risk':_0x4e8cd3[_0x27c09f(0x114)],'format':_0x4e8cd3[_0x27c09f(0x130)],'dryRun':_0x4f9116},_0x5e50a5=createRabetbaseWriteMetadata(_0xa88b00[_0x27c09f(0x122)],_0x5e53a2,_0x4e8cd3[_0x27c09f(0x113)],_0x4f9116);let _0x2bd6d5;try{_0x2bd6d5=await _0x41659[_0x27c09f(0x116)](_0x23ec08);}catch(_0x25ade0){if(!_0x5e50a5||_0x41659===defaultPresentation)throw _0x25ade0;_0x2bd6d5=await defaultPresentation[_0x27c09f(0x116)](_0x23ec08);}return{'operation':_0x5e53a2,'risk':_0x4e8cd3[_0x27c09f(0x114)],'mode':_0x4f9116?_0x27c09f(0x134):_0x27c09f(0x11c),'result':_0x4e8cd3['result'],'output':_0x2bd6d5,..._0x5e50a5?{'metadata':_0x5e50a5}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x2d30fb,_0x5010ff,_0x2fce6a,_0x4d8205){const _0x47d0b7=a319_0x1a2b;if(_0x5010ff[_0x47d0b7(0x129)]===!![]||_0x2d30fb[_0x47d0b7(0x114)]!=='write'&&_0x2d30fb['risk']!==_0x47d0b7(0x11b))return;await _0x4d8205[_0x47d0b7(0x137)][_0x47d0b7(0x12a)](buildRabetbaseConfirmationRequest(_0x2d30fb,_0x2fce6a,_0x4d8205[_0x47d0b7(0x131)]));}function withAbortSignal(_0x4c4ffd,_0x3c6fe6){return{..._0x4c4ffd,async 'execute'(_0x529ac2){const _0x595f8d=a319_0x1a2b;return throwIfAborted(_0x3c6fe6),_0x4c4ffd[_0x595f8d(0x11c)]({..._0x529ac2,'signal':_0x3c6fe6});}};}function throwIfAborted(_0x472eea){const _0xec3da2=a319_0x1a2b;if(_0x472eea?.['aborted'])throw _0x472eea[_0xec3da2(0x12d)]instanceof Error?_0x472eea[_0xec3da2(0x12d)]:new DOMException('Rabetbase\x20invocation\x20aborted.',_0xec3da2(0x11a));}
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 +1 @@
1
- const a320_0x36104e=a320_0x23a4;function a320_0x6111(){const _0x35d9e7=['72OcARLd','3135UMNhbP','1418912MVOknh','43564lZBpUR','3723012WsSdEv','195hBBiTz','8523641cRfubM','resolve','261728ydKsdv','8578510rVGjWw','238GbxwrW','catch'];a320_0x6111=function(){return _0x35d9e7;};return a320_0x6111();}(function(_0x50930b,_0xf8f798){const _0x382db1=a320_0x23a4,_0x398383=_0x50930b();while(!![]){try{const _0x180c76=parseInt(_0x382db1(0xce))/0x1+parseInt(_0x382db1(0xd0))/0x2*(-parseInt(_0x382db1(0xd3))/0x3)+parseInt(_0x382db1(0xd5))/0x4*(-parseInt(_0x382db1(0xcb))/0x5)+-parseInt(_0x382db1(0xd6))/0x6+parseInt(_0x382db1(0xcc))/0x7+parseInt(_0x382db1(0xd4))/0x8*(parseInt(_0x382db1(0xd2))/0x9)+-parseInt(_0x382db1(0xcf))/0xa;if(_0x180c76===_0xf8f798)break;else _0x398383['push'](_0x398383['shift']());}catch(_0x3dbd36){_0x398383['push'](_0x398383['shift']());}}}(a320_0x6111,0xd49be));function a320_0x23a4(_0x4539b5,_0x2157a2){_0x4539b5=_0x4539b5-0xcb;const _0x6111ac=a320_0x6111();let _0x23a402=_0x6111ac[_0x4539b5];return _0x23a402;}let tail=Promise[a320_0x36104e(0xcd)]();export async function runSerialized(_0x51db13){const _0x4f6ef0=a320_0x36104e,_0x68e92b=tail;let _0x4218d0;tail=new Promise(_0x11e6b2=>{_0x4218d0=_0x11e6b2;}),await _0x68e92b[_0x4f6ef0(0xd1)](()=>undefined);try{return await _0x51db13();}finally{_0x4218d0();}}
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 +1 @@
1
- function a321_0x5044(_0x421864,_0x5262b0){_0x421864=_0x421864-0x14c;const _0x2147fb=a321_0x2147();let _0x50448a=_0x2147fb[_0x421864];return _0x50448a;}(function(_0x26239d,_0x56f5a9){const _0x56950e=a321_0x5044,_0x49b5a0=_0x26239d();while(!![]){try{const _0x49e199=-parseInt(_0x56950e(0x160))/0x1*(-parseInt(_0x56950e(0x15d))/0x2)+-parseInt(_0x56950e(0x15c))/0x3+parseInt(_0x56950e(0x14d))/0x4+-parseInt(_0x56950e(0x15e))/0x5+-parseInt(_0x56950e(0x14e))/0x6*(parseInt(_0x56950e(0x159))/0x7)+-parseInt(_0x56950e(0x155))/0x8*(parseInt(_0x56950e(0x15b))/0x9)+-parseInt(_0x56950e(0x154))/0xa*(-parseInt(_0x56950e(0x156))/0xb);if(_0x49e199===_0x56f5a9)break;else _0x49b5a0['push'](_0x49b5a0['shift']());}catch(_0x1d7a55){_0x49b5a0['push'](_0x49b5a0['shift']());}}}(a321_0x2147,0xb6511));import a321_0x1272e4 from'meow';function a321_0x2147(){const _0x499463=['join','10790073XkqvTG','791412sUZSqe','1261150eFWgie','5020220rwaGlR','hint','1snqWau','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','5413712GNoALy','12678GyNDIK','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','wildcardDef','defaultCommand','validation','unknownCommand','2040190gKLjet','8QXmapC','77jWWeUP','input','flags','658SdgrUc'];a321_0x2147=function(){return _0x499463;};return a321_0x2147();}import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';export async function resolveRabetbaseInvocation(_0x3a857b){const _0x1b26d6=a321_0x5044,_0x5b213c=a321_0x1272e4('',{'importMeta':import.meta,'argv':[..._0x3a857b],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x2e9fe0=[..._0x5b213c[_0x1b26d6(0x157)]],_0x2cb846=_0x5b213c[_0x1b26d6(0x158)],_0x20a107=_0x2e9fe0[0x0];if(!_0x20a107)throw CliErrors['validation']('Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.');const _0xddbd07=resolveRemovedCommand(_0x20a107,_0x2e9fe0[0x1]);if(_0xddbd07)throw CliErrors['validation'](_0xddbd07['message'],_0xddbd07[_0x1b26d6(0x15f)]);if(_0x20a107==='run')throw CliErrors['validation'](_0x1b26d6(0x14f),_0x1b26d6(0x14c));if(!isKnownService(_0x20a107))throw CliErrors[_0x1b26d6(0x153)](_0x2e9fe0[_0x1b26d6(0x15a)]('\x20'));const _0xc4e0dc=getServiceEntry(_0x20a107),_0x28d383=_0x2e9fe0[0x1],_0x51332f=_0x28d383||_0xc4e0dc[_0x1b26d6(0x151)];if(!_0x51332f){if(_0xc4e0dc[_0x1b26d6(0x150)])return{'definition':_0xc4e0dc[_0x1b26d6(0x150)],'rawFlags':_0x2cb846,'args':[]};throw CliErrors[_0x1b26d6(0x152)](_0x1b26d6(0x161)+_0x20a107+'\x22.');}const _0x41bc75=findDefinition(_0x20a107,_0x51332f);if(_0x41bc75)return assertSupportedCommandFlags(_0x41bc75,_0x2cb846),{'definition':_0x41bc75,'rawFlags':_0x2cb846,'args':_0x2e9fe0['slice'](0x2)};if(_0xc4e0dc[_0x1b26d6(0x150)])return{'definition':_0xc4e0dc['wildcardDef'],'rawFlags':_0x2cb846,'args':[_0x51332f,..._0x2e9fe0['slice'](0x2)]};throw CliErrors[_0x1b26d6(0x153)](_0x20a107+'\x20'+_0x51332f);}
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 +1 @@
1
- const a323_0x46f6f0=a323_0xf07e;(function(_0x3d5b74,_0x5e2b81){const _0x52b4ab=a323_0xf07e,_0x55d21a=_0x3d5b74();while(!![]){try{const _0x1e4086=-parseInt(_0x52b4ab(0x1e6))/0x1*(parseInt(_0x52b4ab(0x203))/0x2)+parseInt(_0x52b4ab(0x20d))/0x3+-parseInt(_0x52b4ab(0x20c))/0x4*(-parseInt(_0x52b4ab(0x209))/0x5)+-parseInt(_0x52b4ab(0x1e7))/0x6*(-parseInt(_0x52b4ab(0x20f))/0x7)+-parseInt(_0x52b4ab(0x226))/0x8+parseInt(_0x52b4ab(0x1fa))/0x9+-parseInt(_0x52b4ab(0x20b))/0xa*(parseInt(_0x52b4ab(0x224))/0xb);if(_0x1e4086===_0x5e2b81)break;else _0x55d21a['push'](_0x55d21a['shift']());}catch(_0x282545){_0x55d21a['push'](_0x55d21a['shift']());}}}(a323_0x431a,0x91443));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 a323_0xf07e(_0xb7c37e,_0x79ca0d){_0xb7c37e=_0xb7c37e-0x1e3;const _0x431ab5=a323_0x431a();let _0xf07ed7=_0x431ab5[_0xb7c37e];return _0xf07ed7;}import{resolveInstalledSkill}from'../skills/skill-presence.js';function a323_0x431a(){const _0x199b04=['output','Installer\x20reported\x20partial\x20target\x20failures:\x0a%s','reason','join','Symbolic\x20link\x20is\x20not\x20allowed:\x20','VERIFY_FAILED','startsWith','202euHffl','files','\x20automatically\x20selected\x20installation\x20target(s)\x20could\x20not\x20be\x20installed.','skills@latest\x20exited\x20','root','flatMap','345atsyAD','count','470CoZdYO','38312GKHIjU','2551935dURBzj','Installed\x20Skill\x20state\x20is\x20','553210jeHYkt','update','missing','every','skillVersion','version','Unsupported\x20Skill\x20entry:\x20','unverifiable','skills','isSymbolicLink','trim','present','hex','isDirectory','status','sort','home','error','utf8','SKILL.md','digest','399091ihLvoB','length','4475272gUgGBo','schemaVersion','packageRoot','version_mismatch','path','message','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','parse','7234kzbZnx','84hgKLTw','rabetbase','content_mismatch','current','pipe','split','name','rabetbase\x20cli-skill\x20install','partialFailure','state','includes','packageVersion','rabetbase.manifest.json',':\x5cs*(.+)$','\x20verified;\x20','installedPath','match','unknown','stdio','8750826dvafak','package.json'];a323_0x431a=function(){return _0x199b04;};return a323_0x431a();}const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a323_0x46f6f0(0x1ee),SKILL_NAME=a323_0x46f6f0(0x1e8),debug=debuglog('rabetbase-skills');function frontmatterValue(_0x5e6f9d,_0x444afc){const _0x254cb5=a323_0x46f6f0;return _0x5e6f9d[_0x254cb5(0x1f7)](new RegExp('^'+_0x444afc+_0x254cb5(0x1f4),'m'))?.[0x1]?.[_0x254cb5(0x219)]()??'';}function listFiles(_0x13e11e,_0x4bb5f0=_0x13e11e){const _0x24bbac=a323_0x46f6f0;return readdirSync(_0x4bb5f0,{'withFileTypes':!![]})[_0x24bbac(0x208)](_0x16cd02=>{const _0xc025e1=_0x24bbac,_0x464033=join(_0x4bb5f0,_0x16cd02[_0xc025e1(0x1ed)]),_0xcc1f9e=lstatSync(_0x464033);if(_0xcc1f9e[_0xc025e1(0x218)]())throw new Error(_0xc025e1(0x200)+_0x464033);if(_0xcc1f9e[_0xc025e1(0x21c)]())return listFiles(_0x13e11e,_0x464033);if(!_0xcc1f9e['isFile']())throw new Error(_0xc025e1(0x215)+_0x464033);return[relative(_0x13e11e,_0x464033)[_0xc025e1(0x1ec)](sep)[_0xc025e1(0x1ff)]('/')];})[_0x24bbac(0x21e)]((_0x3402d9,_0x14056e)=>_0x3402d9<_0x14056e?-0x1:_0x3402d9>_0x14056e?0x1:0x0);}function digestFiles(_0x4008b4,_0x202015){const _0x49b9ae=a323_0x46f6f0,_0xbbfa19=createHash('sha256');for(const _0x14d034 of _0x202015){if(_0x14d034[_0x49b9ae(0x202)]('/')||_0x14d034[_0x49b9ae(0x1ec)]('/')[_0x49b9ae(0x1f1)]('..')||_0x14d034[_0x49b9ae(0x1f1)]('\x5c'))throw new Error('Unsafe\x20manifest\x20path:\x20'+_0x14d034);_0xbbfa19[_0x49b9ae(0x210)](_0x14d034),_0xbbfa19[_0x49b9ae(0x210)]('\x00'),_0xbbfa19['update'](readFileSync(join(_0x4008b4,..._0x14d034[_0x49b9ae(0x1ec)]('/')))),_0xbbfa19['update']('\x00');}return _0xbbfa19[_0x49b9ae(0x223)](_0x49b9ae(0x21b));}function sameFiles(_0x43613a,_0x3c3f40){const _0x51c31a=a323_0x46f6f0;return _0x43613a[_0x51c31a(0x225)]===_0x3c3f40['length']&&_0x43613a[_0x51c31a(0x212)]((_0x1714f1,_0x40683b)=>_0x1714f1===_0x3c3f40[_0x40683b]);}function readSource(_0x5e798e){const _0x4d8c1c=a323_0x46f6f0,_0x1d7dad=JSON['parse'](readFileSync(join(_0x5e798e,_0x4d8c1c(0x1fb)),_0x4d8c1c(0x221))),_0x3b6803=JSON[_0x4d8c1c(0x1e5)](readFileSync(join(_0x5e798e,_0x4d8c1c(0x217),_0x4d8c1c(0x1f3)),_0x4d8c1c(0x221))),_0x122018=join(_0x5e798e,_0x4d8c1c(0x217),SKILL_NAME),_0x5982f7=frontmatterValue(readFileSync(join(_0x122018,_0x4d8c1c(0x222)),_0x4d8c1c(0x221)),_0x4d8c1c(0x214)),_0x425785=listFiles(_0x122018);if(_0x3b6803[_0x4d8c1c(0x227)]!==0x1||_0x3b6803[_0x4d8c1c(0x1ed)]!==SKILL_NAME||!_0x1d7dad[_0x4d8c1c(0x214)]||_0x3b6803['packageVersion']!==_0x1d7dad['version']||_0x3b6803[_0x4d8c1c(0x213)]!==_0x1d7dad[_0x4d8c1c(0x214)]||_0x5982f7!==_0x1d7dad[_0x4d8c1c(0x214)]||!sameFiles(_0x425785,_0x3b6803[_0x4d8c1c(0x204)])||digestFiles(_0x122018,_0x425785)!==_0x3b6803['digest'])throw new Error(_0x4d8c1c(0x1e4));return{'packageVersion':_0x1d7dad[_0x4d8c1c(0x214)],'skillVersion':_0x5982f7,'root':_0x122018,'manifest':_0x3b6803};}function installedSkillPath(_0x11ca18){const _0x54468a=a323_0x46f6f0,_0x5657d8=resolveInstalledSkill(SKILL_NAME,{'home':_0x11ca18});if(_0x5657d8[_0x54468a(0x1f0)]===_0x54468a(0x21a))return{'state':_0x54468a(0x21a),'path':dirname(_0x5657d8[_0x54468a(0x22a)])};if(_0x5657d8[_0x54468a(0x1f0)]==='absent')return{'state':'missing'};return{'state':'unverifiable','reason':_0x5657d8[_0x54468a(0x1fe)]};}export function inspectInstalledBuiltinSkillVersion(_0x1714b5,_0x707a6={}){const _0x26fda1=a323_0x46f6f0,_0xc5fb8e=installedSkillPath(_0x707a6[_0x26fda1(0x21f)]??homedir());if(_0xc5fb8e['state']===_0x26fda1(0x211))return{'state':_0x26fda1(0x211),'expectedVersion':_0x1714b5,'repairCommand':REPAIR_COMMAND};if(_0xc5fb8e[_0x26fda1(0x1f0)]===_0x26fda1(0x216))return{'state':_0x26fda1(0x216),'expectedVersion':_0x1714b5,'reason':_0xc5fb8e[_0x26fda1(0x1fe)],'repairCommand':REPAIR_COMMAND};try{const _0x453a9d=frontmatterValue(readFileSync(join(_0xc5fb8e[_0x26fda1(0x22a)],'SKILL.md'),_0x26fda1(0x221)),_0x26fda1(0x214));return{'state':_0x453a9d===_0x1714b5?_0x26fda1(0x1ea):'version_mismatch','expectedVersion':_0x1714b5,'skillVersion':_0x453a9d,'installedPath':_0xc5fb8e[_0x26fda1(0x22a)],'repairCommand':REPAIR_COMMAND};}catch(_0x84b581){return{'state':_0x26fda1(0x216),'expectedVersion':_0x1714b5,'installedPath':_0xc5fb8e[_0x26fda1(0x22a)],'reason':_0x84b581 instanceof Error?_0x84b581[_0x26fda1(0x1e3)]:String(_0x84b581),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x5104d7={}){const _0x54db35=a323_0x46f6f0,_0x2f4906=_0x5104d7[_0x54db35(0x228)]??DEFAULT_PACKAGE_ROOT;let _0x1c5989;try{_0x1c5989=readSource(_0x2f4906);}catch(_0x5eaa56){return{'state':_0x54db35(0x216),'packageVersion':_0x54db35(0x1f8),'reason':_0x5eaa56 instanceof Error?_0x5eaa56[_0x54db35(0x1e3)]:String(_0x5eaa56),'repairCommand':REPAIR_COMMAND};}const _0xb42dd7=installedSkillPath(_0x5104d7[_0x54db35(0x21f)]??homedir());if(_0xb42dd7[_0x54db35(0x1f0)]===_0x54db35(0x211))return{'state':_0x54db35(0x211),'packageVersion':_0x1c5989[_0x54db35(0x1f2)],'repairCommand':REPAIR_COMMAND};if(_0xb42dd7[_0x54db35(0x1f0)]===_0x54db35(0x216))return{'state':_0x54db35(0x216),'packageVersion':_0x1c5989['packageVersion'],'reason':_0xb42dd7[_0x54db35(0x1fe)],'repairCommand':REPAIR_COMMAND};try{const _0x5aed05=frontmatterValue(readFileSync(join(_0xb42dd7['path'],'SKILL.md'),_0x54db35(0x221)),'version');if(_0x5aed05!==_0x1c5989[_0x54db35(0x213)])return{'state':_0x54db35(0x229),'packageVersion':_0x1c5989[_0x54db35(0x1f2)],'skillVersion':_0x5aed05,'installedPath':_0xb42dd7['path'],'repairCommand':REPAIR_COMMAND};const _0x538a55=listFiles(_0xb42dd7[_0x54db35(0x22a)]),_0x543353=digestFiles(_0xb42dd7[_0x54db35(0x22a)],_0x538a55);return{'state':sameFiles(_0x538a55,_0x1c5989['manifest']['files'])&&_0x543353===_0x1c5989['manifest'][_0x54db35(0x223)]?_0x54db35(0x1ea):_0x54db35(0x1e9),'packageVersion':_0x1c5989[_0x54db35(0x1f2)],'skillVersion':_0x5aed05,'installedPath':_0xb42dd7['path'],'digest':_0x543353,'repairCommand':REPAIR_COMMAND};}catch(_0x3a7f03){return{'state':_0x54db35(0x216),'packageVersion':_0x1c5989[_0x54db35(0x1f2)],'installedPath':_0xb42dd7[_0x54db35(0x22a)],'reason':_0x3a7f03 instanceof Error?_0x3a7f03[_0x54db35(0x1e3)]:String(_0x3a7f03),'repairCommand':REPAIR_COMMAND};}}function failure(_0x44f17d,_0x4853f1,_0x22a6c2,_0x290c9a){const _0x150fc1=a323_0x46f6f0;return{'ok':![],'code':_0x44f17d,'packageVersion':_0x4853f1[_0x150fc1(0x1f2)],'skillVersion':_0x4853f1['skillVersion'],'installedPath':_0x290c9a,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x22a6c2 instanceof Error?_0x22a6c2['message']:String(_0x22a6c2)};}export function installBuiltinSkill(_0x2ba271={}){const _0x1892ff=a323_0x46f6f0,_0xe11b4=_0x2ba271[_0x1892ff(0x228)]??DEFAULT_PACKAGE_ROOT,_0x20431b=_0x2ba271['home']??homedir();let _0x46917d;try{_0x46917d=readSource(_0xe11b4);}catch(_0x435154){return failure('SOURCE_INVALID',{'packageVersion':_0x1892ff(0x1f8),'skillVersion':'unknown'},_0x435154);}const _0x54ca42=inspectBuiltinSkill({'packageRoot':_0xe11b4,'home':_0x20431b}),_0x158eeb=runNpxSkillsAddGlobal(_0xe11b4,_0x46917d[_0x1892ff(0x207)],{'stdio':_0x2ba271[_0x1892ff(0x1f9)]??_0x1892ff(0x1eb),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x20431b}});if(_0x158eeb['skipped'])return{'ok':!![],'packageVersion':_0x46917d['packageVersion'],'skillVersion':_0x46917d[_0x1892ff(0x213)],'installedPath':_0x54ca42['installedPath'],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x158eeb['ok'])return failure('INSTALL_FAILED',_0x46917d,_0x158eeb[_0x1892ff(0x220)]??_0x1892ff(0x206)+_0x158eeb[_0x1892ff(0x21d)]);const _0x1c680e=inspectBuiltinSkill({'packageRoot':_0xe11b4,'home':_0x20431b});if(_0x1c680e[_0x1892ff(0x1f0)]!==_0x1892ff(0x1ea)){const _0x53d669=_0x1c680e[_0x1892ff(0x1fe)]??_0x1892ff(0x20e)+_0x1c680e[_0x1892ff(0x1f0)];return failure(_0x1892ff(0x201),_0x46917d,_0x158eeb[_0x1892ff(0x1ef)]?_0x53d669+'\x0a'+_0x158eeb[_0x1892ff(0x1ef)][_0x1892ff(0x1fc)]:_0x53d669,_0x1c680e[_0x1892ff(0x1f6)]);}return _0x158eeb[_0x1892ff(0x1ef)]&&(debug(_0x1892ff(0x1fd),_0x158eeb[_0x1892ff(0x1ef)][_0x1892ff(0x1fc)]),console['log']('CLI\x20Built-in\x20Skill\x20'+_0x46917d[_0x1892ff(0x213)]+_0x1892ff(0x1f5)+_0x158eeb[_0x1892ff(0x1ef)][_0x1892ff(0x20a)]+_0x1892ff(0x205))),{'ok':!![],'packageVersion':_0x46917d[_0x1892ff(0x1f2)],'skillVersion':_0x46917d['skillVersion'],'installedPath':_0x1c680e[_0x1892ff(0x1f6)],'changed':_0x54ca42[_0x1892ff(0x1f0)]!==_0x1892ff(0x1ea),'repairCommand':REPAIR_COMMAND};}
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 +1 @@
1
- (function(_0xc2bed5,_0x43a4e5){const _0x1c8bec=a324_0x47f8,_0xe449b7=_0xc2bed5();while(!![]){try{const _0x1d5e6c=parseInt(_0x1c8bec(0x1b5))/0x1+parseInt(_0x1c8bec(0x1c1))/0x2*(parseInt(_0x1c8bec(0x1bd))/0x3)+-parseInt(_0x1c8bec(0x1b6))/0x4*(-parseInt(_0x1c8bec(0x1ae))/0x5)+parseInt(_0x1c8bec(0x1be))/0x6*(parseInt(_0x1c8bec(0x1a5))/0x7)+-parseInt(_0x1c8bec(0x1b4))/0x8+parseInt(_0x1c8bec(0x1a4))/0x9+-parseInt(_0x1c8bec(0x1ab))/0xa*(parseInt(_0x1c8bec(0x1b2))/0xb);if(_0x1d5e6c===_0x43a4e5)break;else _0xe449b7['push'](_0xe449b7['shift']());}catch(_0x31b7ec){_0xe449b7['push'](_0xe449b7['shift']());}}}(a324_0xa0f4,0x73302));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(_0x4ee390){const _0xdc3327=a324_0x47f8,_0x426fa5=[];for(const [_0x3ad1b9,_0x4a887d]of Object['entries'](_0x4ee390)){if(_0x4a887d===!![]){const _0x30d5fe=_0x3ad1b9[_0xdc3327(0x1aa)](/([A-Z])/g,'-$1')[_0xdc3327(0x1a2)]();_0x426fa5[_0xdc3327(0x19f)](_0x30d5fe);}}return _0x426fa5;}function a324_0x47f8(_0x419fe5,_0x1d5116){_0x419fe5=_0x419fe5-0x19d;const _0xa0f42=a324_0xa0f4();let _0x47f823=_0xa0f42[_0x419fe5];return _0x47f823;}export function parseDynamicFlags(){const _0xb9d378=a324_0x47f8,_0x24809b=[];for(let _0x5d49d5=0x3;_0x5d49d5<process[_0xb9d378(0x1ba)]['length'];_0x5d49d5++){const _0xaada50=process[_0xb9d378(0x1ba)][_0x5d49d5];if(_0xaada50&&_0xaada50[_0xb9d378(0x1ad)]('--')){const _0x2cf779=_0xaada50[_0xb9d378(0x1b9)](0x2);_0x2cf779&&!_0x2cf779[_0xb9d378(0x1c0)]('=')&&_0x24809b['push'](_0x2cf779);}}return _0x24809b;}export function getAllProvidedFlags(_0x1531d2){const _0x24838c=camelCaseFlagsToKebab(_0x1531d2),_0x2c0d1f=parseDynamicFlags(),_0x3d766d=new Set([..._0x24838c,..._0x2c0d1f]);return Array['from'](_0x3d766d);}export function normalizeLegacyBffSaveFlags(_0x2e5d74){const _0x33c59f=a324_0x47f8,_0x3d6ea5=new Set(_0x2e5d74);return _0x3d6ea5['has']('dangerously-bff-save')&&_0x3d6ea5[_0x33c59f(0x1a6)](_0x33c59f(0x1b7)),Array[_0x33c59f(0x1a1)](_0x3d6ea5);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a324_0xa0f4(){const _0x11363f=['6185382UcqJoX','add','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','cwd','help','replace','10pkKzly','--help','startsWith','8705rHOXEO','\x0aAvailable\x20commands:','log','exit','11771287lLLzRN','skill','3933360BDxVoM','548944omqCjK','28ZhFUMj','enable-bff-save','Error:\x20Unsupported\x20command:\x20','slice','argv','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','setLogPath','15pGrXhL','6PWaHyY','error','includes','162312WyItMp','Unsupported\x20command:\x20','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','push','(empty)','from','toLowerCase','Public\x20Open\x20Skill\x20source:\x20','1647540gUfKPW'];a324_0xa0f4=function(){return _0x11363f;};return a324_0xa0f4();}export async function skillsCommand(_0x1678c6,_0x1deedc,_0x473c84){const _0x4d540a=a324_0x47f8;logger[_0x4d540a(0x1bc)](process[_0x4d540a(0x1a8)]());if(_0x473c84?.[_0x4d540a(0x1a9)]||_0x1678c6===_0x4d540a(0x1ac)){showHelp();return;}console[_0x4d540a(0x1bf)](_0x4d540a(0x1b8)+(_0x1678c6||_0x4d540a(0x1a0))),console['log'](_0x4d540a(0x1af)),console[_0x4d540a(0x1b0)]('\x20\x20'+CLI_BIN_NAME+_0x4d540a(0x19e)),console['log'](''),console[_0x4d540a(0x1b0)](_0x4d540a(0x1a3)+SKILLS_INSTALL_COMMAND_LINE),logger['error'](_0x4d540a(0x1b3),_0x4d540a(0x19d)+_0x1678c6),process[_0x4d540a(0x1b1)](0x1);}function showHelp(){const _0x6f9e42=a324_0x47f8;console[_0x6f9e42(0x1b0)]('\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x6f9e42(0x1bb)+SKILLS_INSTALL_COMMAND_LINE+_0x6f9e42(0x1a7));}
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 +1 @@
1
- const a325_0x1c3177=a325_0x15e0;(function(_0x37cfc9,_0x384319){const _0x1db0a9=a325_0x15e0,_0x5354dc=_0x37cfc9();while(!![]){try{const _0x424711=parseInt(_0x1db0a9(0xed))/0x1*(-parseInt(_0x1db0a9(0xf6))/0x2)+-parseInt(_0x1db0a9(0xc7))/0x3+parseInt(_0x1db0a9(0xce))/0x4+parseInt(_0x1db0a9(0xde))/0x5+-parseInt(_0x1db0a9(0xd5))/0x6+-parseInt(_0x1db0a9(0xf1))/0x7*(parseInt(_0x1db0a9(0xea))/0x8)+-parseInt(_0x1db0a9(0xba))/0x9*(-parseInt(_0x1db0a9(0xdf))/0xa);if(_0x424711===_0x384319)break;else _0x5354dc['push'](_0x5354dc['shift']());}catch(_0x262710){_0x5354dc['push'](_0x5354dc['shift']());}}}(a325_0x5e0b,0xa8fbb));import{execaSync}from'execa';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a325_0x1c3177(0xf5);export const NPX_SKILLS_SUBCOMMAND_ADD=a325_0x1c3177(0xbb);export const NPX_SKILLS_FLAG_SKILL=a325_0x1c3177(0xdd);export const RABETBASE_SKILL_SOURCE=a325_0x1c3177(0xbc);export const RABETBASE_GLOBAL_SKILL_NAME='rabetbase';export const RABETBASE_SKILL_GIT_SOURCE=a325_0x1c3177(0xc6);export function resolveGlobalSkillName(_0x50ea10){const _0x33d086=a325_0x1c3177;switch(_0x50ea10[_0x33d086(0xd7)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x1a1574){const _0x48a797=a325_0x1c3177,_0x1f1bf0=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x1a1574&&_0x1f1bf0[_0x48a797(0xe4)](NPX_SKILLS_FLAG_SKILL,_0x1a1574),_0x1f1bf0;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a325_0x1c3177(0xf2),...buildNpxSkillsAddArgv()][a325_0x1c3177(0xe5)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a325_0x1c3177(0xf2),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a325_0x1c3177(0xe5)]('\x20');function a325_0x5e0b(){const _0x3e24bc=['unverifiable','7AvPsId','state','SKILL_NOT_INSTALLED','code','21HZUctF','npx','checked','ENOENT','skills@latest','12842fJbzsb','54VJBcAM','add','lovrabet/rabetbase','INSTALL_PARTIAL','reason','inherit','shortMessage','exit\x20','npx\x20failed\x20to\x20start','\x22\x20install\x20state:\x20','stderr','absent','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','2150808aZpJXl','exitCode','signal','npx\x20terminated\x20by\x20signal\x20','log','stdio','warn','3671772GOyJhd','message','Skill\x20\x22','EACCES','PERMISSION_DENIED','\x20failed\x20target(s)','NPX_NOT_FOUND','106824VcNbwA','present','trim','CHILD_EXIT_NONZERO','Installer\x20reported\x20','!\x20Could\x20not\x20verify\x20\x22','npm_config_global','pipe','--skill','3267900nEPNRh','340770vvvSMj','CHILD_TERMINATED','SPAWN_FAILED','NPM_CONFIG_GLOBAL','stdout','push','join','failed','expectedSkillName','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','presence','811048RMmVvc','filter'];a325_0x5e0b=function(){return _0x3e24bc;};return a325_0x5e0b();}const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x4107c2,_0xf957a6,_0x1d3b05){return{'ok':![],'status':_0xf957a6,'code':_0x4107c2,'error':'['+_0x4107c2+']\x20'+_0x1d3b05};}function a325_0x15e0(_0x2e4302,_0x476d76){_0x2e4302=_0x2e4302-0xba;const _0x5e0bea=a325_0x5e0b();let _0x15e088=_0x5e0bea[_0x2e4302];return _0x15e088;}function execaOptions(_0x330cdf,_0x5a5be3){const _0x4d604b=a325_0x1c3177,_0x2e5d91={...process.env};return delete _0x2e5d91[_0x4d604b(0xdb)],delete _0x2e5d91[_0x4d604b(0xe2)],{'cwd':_0x330cdf,'stdio':_0x5a5be3,'env':_0x2e5d91,'extendEnv':![],'shell':![],'reject':![],..._0x5a5be3===_0x4d604b(0xdc)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeExecaResult(_0x470120,_0x28c2cd,_0x1e83e8){const _0x3fe962=a325_0x1c3177,_0xaf503e=[_0x470120['stdout']?String(_0x470120[_0x3fe962(0xe3)]):'',_0x470120['stderr']?String(_0x470120[_0x3fe962(0xc4)]):'']['filter'](Boolean)[_0x3fe962(0xe5)]('\x0a')[_0x3fe962(0xd7)](),_0x2a790e=_0x470120[_0x3fe962(0xc8)]??null;if(_0x470120[_0x3fe962(0xf0)]){const _0x5b4a4d=_0x470120[_0x3fe962(0xf0)]===_0x3fe962(0xf4)?_0x3fe962(0xd4):_0x470120[_0x3fe962(0xf0)]==='EPERM'||_0x470120[_0x3fe962(0xf0)]===_0x3fe962(0xd1)?_0x3fe962(0xd2):_0x3fe962(0xe1);return failure(_0x5b4a4d,_0x2a790e,_0x470120[_0x3fe962(0xc0)]??_0x470120[_0x3fe962(0xcf)]??_0x470120[_0x3fe962(0xf0)]);}if(_0x470120[_0x3fe962(0xc9)])return failure(_0x3fe962(0xe0),_0x2a790e,_0x3fe962(0xca)+_0x470120[_0x3fe962(0xc9)]);if(_0x470120[_0x3fe962(0xe6)]&&_0x2a790e===null)return failure('SPAWN_FAILED',_0x2a790e,_0x470120[_0x3fe962(0xc0)]??_0x470120[_0x3fe962(0xcf)]??_0x3fe962(0xc2));if(_0x2a790e!==0x0)return failure(_0x3fe962(0xd8),_0x2a790e,_0xaf503e||_0x470120[_0x3fe962(0xc0)]||_0x3fe962(0xc1)+(_0x2a790e??'unknown'));const _0x3ba843=_0x28c2cd?resolveInstalledSkill(_0x28c2cd,_0x1e83e8):undefined,_0x1236ee=_0xaf503e['match'](/Failed to install\s+(\d+)/i);if(_0x1236ee&&Number(_0x1236ee[0x1])>0x0){const _0x47d22e=_0x3fe962(0xd9)+_0x1236ee[0x1]+_0x3fe962(0xd3)+(_0xaf503e?':\x0a'+_0xaf503e:'');if(_0x3ba843?.[_0x3fe962(0xee)]===_0x3fe962(0xd6))return{'ok':!![],'status':0x0,'partialFailure':{'count':Number(_0x1236ee[0x1]),'output':_0xaf503e}};return failure(_0x3fe962(0xbd),0x0,_0x47d22e);}if(_0x3ba843){if(_0x3ba843[_0x3fe962(0xee)]===_0x3fe962(0xc5))return failure(_0x3fe962(0xef),0x0,_0x3fe962(0xd0)+_0x28c2cd+_0x3fe962(0xe8)+_0x3ba843[_0x3fe962(0xf3)][_0x3fe962(0xe5)](',\x20')+')');_0x3ba843[_0x3fe962(0xee)]===_0x3fe962(0xec)&&console[_0x3fe962(0xcd)](_0x3fe962(0xda)+_0x28c2cd+_0x3fe962(0xc3)+_0x3ba843[_0x3fe962(0xbe)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x1557b0,_0x148ec1){const _0x2338f8=a325_0x1c3177;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3885c4=_0x148ec1?.['stdio']??_0x2338f8(0xbf),_0x57eb7d=buildNpxSkillsAddArgv(_0x148ec1?.['skill']),_0x204c01=[_0x2338f8(0xf2),..._0x57eb7d][_0x2338f8(0xe5)]('\x20');console[_0x2338f8(0xcb)]('*\x20'+_0x204c01);const _0x1cbba4=execaSync(_0x2338f8(0xf2),_0x57eb7d,execaOptions(_0x1557b0,_0x3885c4));return normalizeExecaResult(_0x1cbba4);}export function runNpxSkillsAddGlobal(_0x463f26,_0x4d8546,_0x1bc807){const _0x53d7c1=a325_0x1c3177;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xe7bcaa=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4d8546,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x163ac1=[_0x53d7c1(0xf2),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4d8546,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x53d7c1(0xe5)]('\x20');console[_0x53d7c1(0xcb)]('*\x20'+_0x163ac1);const _0x51b567=execaSync(_0x53d7c1(0xf2),_0xe7bcaa,execaOptions(_0x463f26,_0x53d7c1(0xdc))),_0x2a3ff6=normalizeExecaResult(_0x51b567,_0x1bc807?.[_0x53d7c1(0xe7)]??resolveGlobalSkillName(_0x4d8546),_0x1bc807?.[_0x53d7c1(0xe9)]);if(_0x1bc807?.[_0x53d7c1(0xcc)]!==_0x53d7c1(0xdc)&&!_0x2a3ff6['partialFailure']){const _0x44363f=[_0x51b567[_0x53d7c1(0xe3)],_0x51b567['stderr']][_0x53d7c1(0xeb)](Boolean)[_0x53d7c1(0xe5)]('\x0a')[_0x53d7c1(0xd7)]();if(_0x44363f)console[_0x53d7c1(0xcb)](_0x44363f);}return _0x2a3ff6;}
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;}