@lovrabet/rabetbase-cli 2.5.1-beta.4 → 2.5.1-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 (346) hide show
  1. package/README.md +75 -1
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.d.ts +0 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/auth/auth-server-ui.js +1 -1
  8. package/lib/auth/auth-server.js +1 -1
  9. package/lib/auth/constant.js +1 -1
  10. package/lib/auth/get-cookie.js +1 -1
  11. package/lib/auth/get-session-user.js +1 -1
  12. package/lib/auth/is-session-valid.js +1 -1
  13. package/lib/auth/login-success-html.js +1 -1
  14. package/lib/auth/logout.js +1 -1
  15. package/lib/cli-flags.js +1 -1
  16. package/lib/cli.js +1 -1
  17. package/lib/commands/api/generate.js +1 -1
  18. package/lib/commands/api/index.js +1 -1
  19. package/lib/commands/api/list.js +1 -1
  20. package/lib/commands/api/pull.js +1 -1
  21. package/lib/commands/api/shared.js +1 -1
  22. package/lib/commands/app/index.js +1 -1
  23. package/lib/commands/app/list.js +1 -1
  24. package/lib/commands/app/members-list.js +1 -1
  25. package/lib/commands/app/remote-directory.js +1 -1
  26. package/lib/commands/app/shared.js +1 -1
  27. package/lib/commands/app-config/delete.js +1 -1
  28. package/lib/commands/app-config/get.js +1 -1
  29. package/lib/commands/app-config/index.js +1 -1
  30. package/lib/commands/app-config/list.js +1 -1
  31. package/lib/commands/app-config/set.js +1 -1
  32. package/lib/commands/app-config/shared.js +1 -1
  33. package/lib/commands/auth/index.js +1 -1
  34. package/lib/commands/bff/create.js +1 -1
  35. package/lib/commands/bff/delete.js +1 -1
  36. package/lib/commands/bff/detail.js +1 -1
  37. package/lib/commands/bff/index.js +1 -1
  38. package/lib/commands/bff/list.js +1 -1
  39. package/lib/commands/bff/pull.js +1 -1
  40. package/lib/commands/bff/push.js +1 -1
  41. package/lib/commands/bff/status.js +1 -1
  42. package/lib/commands/cli-skill/index.js +1 -1
  43. package/lib/commands/cli-update.js +1 -1
  44. package/lib/commands/codegen/index.js +1 -1
  45. package/lib/commands/codegen/sdk.js +1 -1
  46. package/lib/commands/codegen/sql.js +1 -1
  47. package/lib/commands/common/app-registry.js +1 -1
  48. package/lib/commands/common/app-selector.js +1 -1
  49. package/lib/commands/common/async-task.js +1 -1
  50. package/lib/commands/common/dry-run.js +1 -1
  51. package/lib/commands/common/flags.d.ts +2 -0
  52. package/lib/commands/common/flags.js +1 -1
  53. package/lib/commands/common/local-file.js +1 -1
  54. package/lib/commands/common/validate.js +1 -1
  55. package/lib/commands/config/delete.js +1 -1
  56. package/lib/commands/config/get.js +1 -1
  57. package/lib/commands/config/index.js +1 -1
  58. package/lib/commands/config/init.d.ts +2 -0
  59. package/lib/commands/config/init.js +1 -1
  60. package/lib/commands/config/list.js +1 -1
  61. package/lib/commands/config/set.js +1 -1
  62. package/lib/commands/config/shared.js +1 -1
  63. package/lib/commands/dataset/business-group-update.js +1 -1
  64. package/lib/commands/dataset/business-groups.js +1 -1
  65. package/lib/commands/dataset/capability.js +1 -1
  66. package/lib/commands/dataset/delete.js +1 -1
  67. package/lib/commands/dataset/detail.js +1 -1
  68. package/lib/commands/dataset/extend-update.js +1 -1
  69. package/lib/commands/dataset/field-restore.js +1 -1
  70. package/lib/commands/dataset/field-update.js +1 -1
  71. package/lib/commands/dataset/generate.js +1 -1
  72. package/lib/commands/dataset/index.js +1 -1
  73. package/lib/commands/dataset/list.js +1 -1
  74. package/lib/commands/dataset/operations.js +1 -1
  75. package/lib/commands/dataset/relation-audit.js +1 -1
  76. package/lib/commands/dataset/relation-create.js +1 -1
  77. package/lib/commands/dataset/relation-delete.js +1 -1
  78. package/lib/commands/dataset/relation-shared.js +1 -1
  79. package/lib/commands/dataset/relation-update.js +1 -1
  80. package/lib/commands/dataset/relations.js +1 -1
  81. package/lib/commands/dataset/rename.js +1 -1
  82. package/lib/commands/dataset/restore.js +1 -1
  83. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  84. package/lib/commands/db/analysis-batching.js +1 -1
  85. package/lib/commands/db/analyze-batch-plan.js +1 -1
  86. package/lib/commands/db/analyze-cancel.js +1 -1
  87. package/lib/commands/db/analyze-start.js +1 -1
  88. package/lib/commands/db/analyze-status.js +1 -1
  89. package/lib/commands/db/create.js +1 -1
  90. package/lib/commands/db/delete.js +1 -1
  91. package/lib/commands/db/detail.js +1 -1
  92. package/lib/commands/db/diff-refresh-start.js +1 -1
  93. package/lib/commands/db/diff-refresh-status.js +1 -1
  94. package/lib/commands/db/diff.js +1 -1
  95. package/lib/commands/db/index.js +1 -1
  96. package/lib/commands/db/list.js +1 -1
  97. package/lib/commands/db/shared.js +1 -1
  98. package/lib/commands/db/table-diff-shared.js +1 -1
  99. package/lib/commands/db/tables.js +1 -1
  100. package/lib/commands/db/test.js +1 -1
  101. package/lib/commands/db/update.js +1 -1
  102. package/lib/commands/deployment/auto-sync.js +1 -1
  103. package/lib/commands/deployment/index.js +1 -1
  104. package/lib/commands/deployment/sync.js +1 -1
  105. package/lib/commands/doctor.js +1 -1
  106. package/lib/commands/file/index.js +1 -1
  107. package/lib/commands/issue/index.js +1 -1
  108. package/lib/commands/issue/nudge.js +1 -1
  109. package/lib/commands/issue/report.js +1 -1
  110. package/lib/commands/issue/shared.js +1 -1
  111. package/lib/commands/kb/create.js +1 -1
  112. package/lib/commands/kb/delete.js +1 -1
  113. package/lib/commands/kb/detail.js +1 -1
  114. package/lib/commands/kb/index.js +1 -1
  115. package/lib/commands/kb/list.js +1 -1
  116. package/lib/commands/kb/search.js +1 -1
  117. package/lib/commands/kb/shared.js +1 -1
  118. package/lib/commands/kb/update.js +1 -1
  119. package/lib/commands/logs/index.js +1 -1
  120. package/lib/commands/menu/asset-update.js +1 -1
  121. package/lib/commands/menu/delete.js +1 -1
  122. package/lib/commands/menu/external-link-create.js +1 -1
  123. package/lib/commands/menu/external-link-update.js +1 -1
  124. package/lib/commands/menu/group-create.js +1 -1
  125. package/lib/commands/menu/group-update.js +1 -1
  126. package/lib/commands/menu/index.js +1 -1
  127. package/lib/commands/menu/list.js +1 -1
  128. package/lib/commands/menu/move.js +1 -1
  129. package/lib/commands/menu/regroup-start.js +1 -1
  130. package/lib/commands/menu/rename.js +1 -1
  131. package/lib/commands/menu/shared/compare-table.js +1 -1
  132. package/lib/commands/menu/shared/delete-plan.js +1 -1
  133. package/lib/commands/menu/shared/facts.js +1 -1
  134. package/lib/commands/menu/shared/index.js +1 -1
  135. package/lib/commands/menu/shared/inquirer.js +1 -1
  136. package/lib/commands/menu/shared/local-pages.js +1 -1
  137. package/lib/commands/menu/shared/logic.js +1 -1
  138. package/lib/commands/menu/shared/mutations.js +1 -1
  139. package/lib/commands/menu/shared/service.js +1 -1
  140. package/lib/commands/menu/shared/sync-core.js +1 -1
  141. package/lib/commands/menu/shared/update-core.js +1 -1
  142. package/lib/commands/menu/shared/valid-url.js +1 -1
  143. package/lib/commands/menu/sync.js +1 -1
  144. package/lib/commands/menu/visibility-update.js +1 -1
  145. package/lib/commands/notification/config-create.js +1 -1
  146. package/lib/commands/notification/config-delete.js +1 -1
  147. package/lib/commands/notification/config-list.js +1 -1
  148. package/lib/commands/notification/config-update.js +1 -1
  149. package/lib/commands/notification/index.js +1 -1
  150. package/lib/commands/notification/shared.js +1 -1
  151. package/lib/commands/ocr/index.js +1 -1
  152. package/lib/commands/page/create.js +1 -1
  153. package/lib/commands/page/custom/detail.js +1 -1
  154. package/lib/commands/page/custom/list.js +1 -1
  155. package/lib/commands/page/custom/publish.js +1 -1
  156. package/lib/commands/page/custom/shared.js +1 -1
  157. package/lib/commands/page/custom/syntax.js +1 -1
  158. package/lib/commands/page/custom/template.js +1 -1
  159. package/lib/commands/page/custom/update.js +1 -1
  160. package/lib/commands/page/data-list-status.js +1 -1
  161. package/lib/commands/page/generate-start.js +1 -1
  162. package/lib/commands/page/generate-status.js +1 -1
  163. package/lib/commands/page/index.js +1 -1
  164. package/lib/commands/page/pull.js +1 -1
  165. package/lib/commands/page/push.js +1 -1
  166. package/lib/commands/page/relation-audit.js +1 -1
  167. package/lib/commands/page/restore.js +1 -1
  168. package/lib/commands/page/shared.js +1 -1
  169. package/lib/commands/page/sync.js +1 -1
  170. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  171. package/lib/commands/project/create/format-elapsed.js +1 -1
  172. package/lib/commands/project/create/main.d.ts +1 -0
  173. package/lib/commands/project/create/main.js +1 -1
  174. package/lib/commands/project/create/materialize-project-template.js +1 -1
  175. package/lib/commands/project/create/project-name.js +1 -1
  176. package/lib/commands/project/create/project-template-archive.js +1 -1
  177. package/lib/commands/project/create/project-template-path.js +1 -1
  178. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  179. package/lib/commands/project/create/use-format-code.js +1 -1
  180. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  181. package/lib/commands/project/domain-routing-sync.d.ts +2 -0
  182. package/lib/commands/project/domain-routing-sync.js +1 -0
  183. package/lib/commands/project/index.js +1 -1
  184. package/lib/commands/project/upgrade.js +1 -1
  185. package/lib/commands/registry.js +1 -1
  186. package/lib/commands/role/delete.js +1 -1
  187. package/lib/commands/role/detail.js +1 -1
  188. package/lib/commands/role/index.js +1 -1
  189. package/lib/commands/role/list.js +1 -1
  190. package/lib/commands/role/shared.js +1 -1
  191. package/lib/commands/role/update.js +1 -1
  192. package/lib/commands/role/user-add.js +1 -1
  193. package/lib/commands/role/user-remove.js +1 -1
  194. package/lib/commands/role/user-resolve.js +1 -1
  195. package/lib/commands/rule/get.d.ts +2 -0
  196. package/lib/commands/rule/get.js +1 -0
  197. package/lib/commands/rule/index.d.ts +2 -0
  198. package/lib/commands/rule/index.js +1 -0
  199. package/lib/commands/rule/list.d.ts +2 -0
  200. package/lib/commands/rule/list.js +1 -0
  201. package/lib/commands/rule/set.d.ts +2 -0
  202. package/lib/commands/rule/set.js +1 -0
  203. package/lib/commands/rule/shared.d.ts +43 -0
  204. package/lib/commands/rule/shared.js +1 -0
  205. package/lib/commands/run/index.js +1 -1
  206. package/lib/commands/schema.js +1 -1
  207. package/lib/commands/sql/create.js +1 -1
  208. package/lib/commands/sql/delete.js +1 -1
  209. package/lib/commands/sql/detail.js +1 -1
  210. package/lib/commands/sql/exec.js +1 -1
  211. package/lib/commands/sql/index.js +1 -1
  212. package/lib/commands/sql/list.js +1 -1
  213. package/lib/commands/sql/pull.js +1 -1
  214. package/lib/commands/sql/push.js +1 -1
  215. package/lib/commands/sql/shared.js +1 -1
  216. package/lib/commands/sql/status.js +1 -1
  217. package/lib/commands/sql/validate.js +1 -1
  218. package/lib/commands/task/index.js +1 -1
  219. package/lib/commands/task/status.js +1 -1
  220. package/lib/commands/tenant/index.js +1 -1
  221. package/lib/commands/tenant/members-list.js +1 -1
  222. package/lib/commands/tenant/shared.js +1 -1
  223. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  224. package/lib/commands/user-account/index.js +1 -1
  225. package/lib/commands/workspace/add.js +1 -1
  226. package/lib/commands/workspace/index.js +1 -1
  227. package/lib/commands/workspace/remove.js +1 -1
  228. package/lib/config/deployment-sync.js +1 -1
  229. package/lib/config/domain-config.d.ts +37 -1
  230. package/lib/config/domain-config.js +1 -1
  231. package/lib/config/project-domain-routing.d.ts +27 -0
  232. package/lib/config/project-domain-routing.js +1 -0
  233. package/lib/config/schema.d.ts +1 -1
  234. package/lib/config/schema.js +1 -1
  235. package/lib/constant/cdn.js +1 -1
  236. package/lib/constant/cli.js +1 -1
  237. package/lib/constant/defaults.js +1 -1
  238. package/lib/constant/domain.d.ts +10 -4
  239. package/lib/constant/domain.js +1 -1
  240. package/lib/constant/env.js +1 -1
  241. package/lib/constant/output.js +1 -1
  242. package/lib/constant/paths.js +1 -1
  243. package/lib/constant/region.d.ts +4 -1
  244. package/lib/constant/region.js +1 -1
  245. package/lib/constant/risk.js +1 -1
  246. package/lib/constant/routing-profile.d.ts +43 -49
  247. package/lib/constant/routing-profile.js +1 -1
  248. package/lib/context/app-resolver.js +1 -1
  249. package/lib/context/auth-resolver.js +1 -1
  250. package/lib/context/config-loader.js +1 -1
  251. package/lib/context.d.ts +2 -0
  252. package/lib/context.js +1 -1
  253. package/lib/core/alias-resolver.js +1 -1
  254. package/lib/core/api-client.d.ts +37 -0
  255. package/lib/core/api-client.js +1 -1
  256. package/lib/core/bff/config.js +1 -1
  257. package/lib/core/bff/file-system.js +1 -1
  258. package/lib/core/bff/hash.js +1 -1
  259. package/lib/core/bff/lock.js +1 -1
  260. package/lib/core/bff/utils.js +1 -1
  261. package/lib/core/db-resolver.js +1 -1
  262. package/lib/core/page/file-system.js +1 -1
  263. package/lib/core/page/hash.js +1 -1
  264. package/lib/core/page/lock.js +1 -1
  265. package/lib/core/sql-index-auditor.js +1 -1
  266. package/lib/core/sql-sync/config.js +1 -1
  267. package/lib/core/sql-sync/file-system.js +1 -1
  268. package/lib/core/sql-sync/hash.js +1 -1
  269. package/lib/core/sql-sync/lock.js +1 -1
  270. package/lib/core/sql-sync/utils.js +1 -1
  271. package/lib/core/sql-validator.js +1 -1
  272. package/lib/errors.js +1 -1
  273. package/lib/framework/build-all-flags.js +1 -1
  274. package/lib/framework/error-output.js +1 -1
  275. package/lib/framework/explicit-yes.js +1 -1
  276. package/lib/framework/flags.js +1 -1
  277. package/lib/framework/help.js +1 -1
  278. package/lib/framework/index.js +1 -1
  279. package/lib/framework/output.js +1 -1
  280. package/lib/framework/response.js +1 -1
  281. package/lib/framework/runner-alias.js +1 -1
  282. package/lib/framework/runner.js +1 -1
  283. package/lib/framework/schema-export.js +1 -1
  284. package/lib/framework/types.d.ts +0 -1
  285. package/lib/framework/types.js +1 -1
  286. package/lib/generated/build-info.d.ts +4 -4
  287. package/lib/generated/build-info.js +1 -1
  288. package/lib/generated/official-routing.d.ts +83 -0
  289. package/lib/generated/official-routing.js +1 -0
  290. package/lib/generated/routing-contract.d.ts +9 -0
  291. package/lib/generated/routing-contract.js +1 -0
  292. package/lib/help.js +1 -1
  293. package/lib/postinstall.js +1 -1
  294. package/lib/runtime/confirmation.js +1 -1
  295. package/lib/runtime/event.js +1 -1
  296. package/lib/runtime/index.js +1 -1
  297. package/lib/runtime/queue.js +1 -1
  298. package/lib/runtime/resolve.js +1 -1
  299. package/lib/skills/builtin-skill.js +1 -1
  300. package/lib/skills/main.js +1 -1
  301. package/lib/skills/npx-skills-add.js +1 -1
  302. package/lib/skills/skill-presence.js +1 -1
  303. package/lib/telemetry/cli-command-trace.js +1 -1
  304. package/lib/telemetry/cli-help-trace.js +1 -1
  305. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  306. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  307. package/lib/telemetry/send-cli-trace-log.js +1 -1
  308. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  309. package/lib/types/index.d.ts +0 -1
  310. package/lib/utils/ai_config.js +1 -1
  311. package/lib/utils/apply-jq-filter.js +1 -1
  312. package/lib/utils/cdn-config.js +1 -1
  313. package/lib/utils/check-sdk-version.js +1 -1
  314. package/lib/utils/cli-version-check.js +1 -1
  315. package/lib/utils/cli-version-policy.js +1 -1
  316. package/lib/utils/config.js +1 -1
  317. package/lib/utils/entity-with-id.js +1 -1
  318. package/lib/utils/file-utils.js +1 -1
  319. package/lib/utils/guides-cdn.js +1 -1
  320. package/lib/utils/http-client.js +1 -1
  321. package/lib/utils/is-non-interactive.js +1 -1
  322. package/lib/utils/logger.js +1 -1
  323. package/lib/utils/params.js +1 -1
  324. package/lib/utils/platform.js +1 -1
  325. package/lib/utils/sleep.js +1 -1
  326. package/lib/utils/template-replacer.js +1 -1
  327. package/lib/utils/update-notice.js +1 -1
  328. package/lib/utils/version.js +1 -1
  329. package/lib/utils/with-active-cookie.js +1 -1
  330. package/lib/utils/write-cli-side-channel.js +1 -1
  331. package/package.json +2 -1
  332. package/skills/rabetbase/SKILL.md +16 -13
  333. package/skills/rabetbase/guides/sdk-client-generation.md +10 -8
  334. package/skills/rabetbase/references/rabetbase-api-pull.md +16 -11
  335. package/skills/rabetbase/references/rabetbase-config.md +4 -4
  336. package/skills/rabetbase/references/rabetbase-doctor.md +2 -1
  337. package/skills/rabetbase/references/rabetbase-init.md +32 -8
  338. package/skills/rabetbase/references/rabetbase-kb.md +7 -8
  339. package/skills/rabetbase/references/rabetbase-project-create.md +33 -8
  340. package/skills/rabetbase/references/rabetbase-project-domain-routing-sync.md +28 -0
  341. package/skills/rabetbase/references/rabetbase-rule.md +49 -0
  342. package/skills/rabetbase.manifest.json +5 -3
  343. package/lib/config/project-routing.d.ts +0 -30
  344. package/lib/config/project-routing.js +0 -1
  345. package/lib/core/kb-search-client.d.ts +0 -30
  346. package/lib/core/kb-search-client.js +0 -1
@@ -1 +1 @@
1
- (function(_0x23db60,_0x3bf3da){const _0x226e7e=a261_0x5833,_0x1c61b7=_0x23db60();while(!![]){try{const _0x196177=parseInt(_0x226e7e(0x1bc))/0x1+parseInt(_0x226e7e(0x192))/0x2*(parseInt(_0x226e7e(0x190))/0x3)+parseInt(_0x226e7e(0x18d))/0x4+-parseInt(_0x226e7e(0x19a))/0x5*(-parseInt(_0x226e7e(0x1c5))/0x6)+-parseInt(_0x226e7e(0x196))/0x7+parseInt(_0x226e7e(0x1b6))/0x8+-parseInt(_0x226e7e(0x1d7))/0x9;if(_0x196177===_0x3bf3da)break;else _0x1c61b7['push'](_0x1c61b7['shift']());}catch(_0x1bc0c1){_0x1c61b7['push'](_0x1c61b7['shift']());}}}(a261_0x562e,0x8bec7));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 a261_0x4eb80b}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x10b206){const _0x4e530b=a261_0x5833;return typeof _0x10b206==='string'&&_0x10b206[_0x4e530b(0x1b7)]()?_0x10b206[_0x4e530b(0x1b7)]():undefined;}function resolveEnvAppCode(){const _0x106e61=a261_0x5833,_0x3fa7c4=stringFlag(process.env.RABETBASE_APPCODE);if(_0x3fa7c4)return{'name':_0x106e61(0x1b8),'value':_0x3fa7c4};const _0x513f34=stringFlag(process.env.LOVRABET_APPCODE);if(_0x513f34)return{'name':_0x106e61(0x1a8),'value':_0x513f34};return undefined;}function hasExplicitAppCode(_0x560481,_0x3fa55b){const _0xc7d664=a261_0x5833;return!!(stringFlag(_0x560481[_0xc7d664(0x1c6)])||stringFlag(_0x3fa55b[_0xc7d664(0x1c6)]));}function assertEnvAppCodeNotIgnored(_0x27b5f6,_0x1ac6f8,_0x5daffb){const _0x12aa8f=a261_0x5833;if(!_0x1ac6f8||_0x5daffb||_0x27b5f6===_0x1ac6f8['value'])return;const _0x330248=_0x27b5f6?_0x12aa8f(0x19b)+_0x27b5f6+'\x22.':_0x12aa8f(0x1ae);throw CliErrors[_0x12aa8f(0x1d2)](_0x1ac6f8[_0x12aa8f(0x1c8)]+'='+_0x1ac6f8[_0x12aa8f(0x1ba)]+_0x12aa8f(0x1d9)+_0x330248+'\x20'+(_0x12aa8f(0x1bf)+_0x1ac6f8[_0x12aa8f(0x1c8)]+'\x22.'));}export function createPipelineEnv(_0x226aab,_0x3b6f41,_0x2d96a2=[]){const _0x4d583c=a261_0x5833;return{'rawFlags':_0x3b6f41,'args':_0x2d96a2,'resolveAppCode':()=>_0x226aab[_0x4d583c(0x1d5)],'resolveCookie':()=>_0x226aab['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a261_0x4eb80b(_0x3b6f41),'defaultFormat':_0x226aab[_0x4d583c(0x197)],'defaultPageSize':_0x226aab[_0x4d583c(0x1c9)],'defaultVerbose':_0x226aab[_0x4d583c(0x18e)],'apiDir':_0x226aab[_0x4d583c(0x19f)],'riskLevel':_0x226aab[_0x4d583c(0x1a5)],'selectedAppName':_0x226aab['explicitAppName'],'mergedCli':{'defaultApp':_0x226aab[_0x4d583c(0x1c1)],'currentApp':_0x226aab['currentApp'],'appCode':_0x226aab[_0x4d583c(0x1d5)],'apps':_0x226aab[_0x4d583c(0x18f)]}};}export function createRabetbaseRunnerAdapter(_0xd9539e={}){const _0x4975cc=a261_0x5833;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0xbff4e4=>PIPELINE_FLAG_NAMES['has'](_0xbff4e4[_0x4975cc(0x1c8)]))[_0x4975cc(0x1cb)](({name:_0xd5b2a,type:_0x4f536e,description:_0x23fbc4})=>({'name':_0xd5b2a,'type':_0x4f536e,'description':_0x23fbc4})),'formatOutput':_0xd9539e[_0x4975cc(0x1a3)]??formatOutput,'getCommandLabel'(_0x4c73f6){const _0x4b5e35=_0x4975cc;return CLI_BIN_NAME+'\x20'+_0x4c73f6[_0x4b5e35(0x1ac)]+'\x20'+_0x4c73f6['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x3c330c,{def:_0x31f69f}){const _0x12c620=_0x4975cc,_0x1d8381=_0x3c330c['includes'](_0x12c620(0x19d))?_0x12c620(0x1da):'A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22'+_0x31f69f['risk']+_0x12c620(0x1bb)+_0x12c620(0x1da);return CliErrors[_0x12c620(0x1d2)](_0x3c330c+_0x12c620(0x198)+_0x1d8381);}},async 'prepare'(_0x5a0789,_0x38368d,_0x1abe30,_0x2ace9c){const _0x416bb7=_0x4975cc,_0x1a21dc=_0x38368d[_0x416bb7(0x19f)]||DEFAULT_API_DIR;resolveAliasToCode(_0x5a0789,_0x1abe30,_0x1a21dc,_0x2ace9c);const _0x4de7db=resolveCommandAuthMode(_0x5a0789);let _0x20dc45='';if(_0x4de7db!==_0x416bb7(0x1a9)){_0x20dc45=_0x38368d[_0x416bb7(0x193)]()||'';if(!_0x20dc45){if(_0x4de7db===_0x416bb7(0x1aa))throw CliErrors[_0x416bb7(0x1ce)]();}else{const {setActiveCookie:_0x15a6ba}=await import('../core/api-client.js');_0x15a6ba(_0x20dc45);}}const _0x2752b0=_0x38368d[_0x416bb7(0x1c3)]()??'';if(_0x5a0789['requiresAppCode']!==![]){const _0x1c8217=hasExplicitAppCode(_0x1abe30,_0x38368d['rawFlags']),_0x8cfd2c=_0x38368d[_0x416bb7(0x1c7)]?.[_0x416bb7(0x18f)]??{},_0x1eea18=_0x38368d[_0x416bb7(0x1b5)]||_0x38368d[_0x416bb7(0x1c7)]?.['currentApp']||_0x38368d[_0x416bb7(0x1c7)]?.[_0x416bb7(0x1c1)];if(!_0x1c8217&&_0x1eea18&&!_0x8cfd2c[_0x1eea18]){const _0x81605f=Object['keys'](_0x8cfd2c);throw CliErrors[_0x416bb7(0x1d2)]('App\x20\x22'+_0x1eea18+_0x416bb7(0x1a1),_0x81605f['length']>0x0?_0x416bb7(0x18c)+_0x81605f[_0x416bb7(0x1cd)](',\x20')+'.\x20Use\x20--app/--appcode,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x416bb7(0x19c):_0x416bb7(0x1d8)+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.');}assertEnvAppCodeNotIgnored(_0x2752b0,resolveEnvAppCode(),_0x1c8217);if(!_0x2752b0){const _0x91a0ab=Object[_0x416bb7(0x1b0)](_0x8cfd2c);if(!_0x1eea18&&_0x91a0ab[_0x416bb7(0x1d0)]>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+'\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20'+_0x91a0ab[_0x416bb7(0x1cd)](',\x20')+'.');throw CliErrors['configMissing'](_0x416bb7(0x1b3)+CLI_BIN_NAME+_0x416bb7(0x1c2));}}return{'defaults':{'booleans':{'verbose':_0x38368d[_0x416bb7(0x1a7)]},'numbers':{'pagesize':_0x38368d[_0x416bb7(0x1a2)]}},'extras':{'appCode':_0x2752b0,'cookie':_0x20dc45,'apiDomain':_0x38368d[_0x416bb7(0x1b1)](),'apiDir':_0x1a21dc,'selectedAppName':_0x38368d[_0x416bb7(0x1b5)],'mergedCli':_0x38368d['mergedCli']}};},'confirmHighRisk':_0xd9539e[_0x4975cc(0x1bd)]??(async({env:_0x2abd8d,commandLabel:_0x4e15f8})=>{const _0x1f377e=_0x4975cc;if(_0x2abd8d[_0x1f377e(0x1b2)])throw CliErrors[_0x1f377e(0x1d2)](_0x1f377e(0x1a0)+_0x4e15f8+_0x1f377e(0x199));await requireConfirmationPrompt({'lines':[_0x1f377e(0x1b4)+_0x4e15f8,_0x1f377e(0x1ab)],'createCancelledError':_0x3c90a3=>CliErrors[_0x1f377e(0x1d1)](_0x3c90a3)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const {clearActiveCookie:_0x1d3e12}=await import('../core/api-client.js');_0x1d3e12();}function a261_0x5833(_0x22b1d6,_0xf4840c){_0x22b1d6=_0x22b1d6-0x18c;const _0x562ea5=a261_0x562e();let _0x58332b=_0x562ea5[_0x22b1d6];return _0x58332b;}export async function finalizeRabetbaseRuntimeState(){const _0x180564=a261_0x5833;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x30e6fe},{initEnv:_0x93ec2d}]=await Promise[_0x180564(0x1be)]([import(_0x180564(0x1d6)),import(_0x180564(0x1ca))]);_0x30e6fe(),_0x93ec2d(_0x180564(0x1a6));}}export async function runCommand(_0x410301,_0x3d58b0,_0x2fff2a=terminalRunnerAdapter){assertRejectedFlags(_0x410301,_0x3d58b0['rawFlags']),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x410301)?withUpdateNotice(_0x410301):_0x410301,_0x3d58b0,_0x2fff2a);}function assertRejectedFlags(_0x76279f,_0x392488){const _0xcc498=a261_0x5833;for(const _0x57f0e5 of _0x76279f['rejectedFlags']??[]){const _0x17c951=GLOBAL_FLAGS[_0xcc498(0x195)](_0x5e85b1=>_0x5e85b1['name']===_0x57f0e5[_0xcc498(0x1c8)]),_0x859165=new Set([_0x57f0e5[_0xcc498(0x1c8)],toCamelCase(_0x57f0e5[_0xcc498(0x1c8)]),_0x17c951?.['meowKey']]),_0x46aeea=[..._0x859165][_0xcc498(0x1b9)](_0x3fa7b7=>{if(!_0x3fa7b7)return![];const _0x10c7a7=_0x392488[_0x3fa7b7];return _0x10c7a7!==undefined&&_0x10c7a7!==null&&_0x10c7a7!==![];});if(_0x46aeea)throw CliErrors[_0xcc498(0x1d2)](_0x57f0e5[_0xcc498(0x1ad)],_0x57f0e5[_0xcc498(0x1cc)]);}}function toCamelCase(_0xad5dbf){const _0x2cafea=a261_0x5833;return _0xad5dbf[_0x2cafea(0x1d4)](/-([a-z])/g,(_0x2c7989,_0x6cf06b)=>_0x6cf06b['toUpperCase']());}function shouldAttachUpdateNotice(_0x22d28b){const _0x3774fe=a261_0x5833;if(_0x22d28b['hasFormat']===![])return![];return![_0x3774fe(0x1af),'schema',_0x3774fe(0x1c0)]['includes'](_0x22d28b[_0x3774fe(0x1ac)]);}function withUpdateNotice(_0xb1ed88){return{..._0xb1ed88,async 'execute'(_0x39e976){const _0x22e03e=a261_0x5833,_0x29920f=shouldResolveUpdateNotice(_0x39e976)?resolveLatestUpdateNotice()[_0x22e03e(0x1cf)](()=>null):Promise[_0x22e03e(0x191)](null),_0x21a46f=await _0xb1ed88[_0x22e03e(0x1c4)](_0x39e976);return attachUpdateNotice(_0x21a46f,await _0x29920f);}};}function shouldResolveUpdateNotice(_0x157a17){const _0x6c610b=a261_0x5833;return _0x157a17[_0x6c610b(0x197)]===_0x6c610b(0x19e)&&!_0x157a17[_0x6c610b(0x1a4)];}function attachUpdateNotice(_0x310bdb,_0x257310){const _0x60a62=a261_0x5833;if(!_0x257310||!_0x310bdb||typeof _0x310bdb!==_0x60a62(0x1d3))return _0x310bdb;const _0xe3149e=_0x310bdb,_0x2b3da0=typeof _0xe3149e['_notice']===_0x60a62(0x1d3)&&_0xe3149e[_0x60a62(0x194)]!==null?_0xe3149e[_0x60a62(0x194)]:{};return{..._0xe3149e,'_notice':{..._0x2b3da0,'update':_0x257310}};}function a261_0x562e(){const _0x35e2d6=['\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','resolveAppCode','execute','6IRJgPh','appcode','mergedCli','name','pageSize','../constant/env.js','map','hint','join','authRequired','catch','length','cancelled','validation','object','replace','appCode','../constant/domain.js','3936006SoNMry','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','Available:\x20','616968MrCYtr','verbose','apps','2187grjsxf','resolve','1470WDtUTd','resolveCookie','_notice','find','5713232nwpfiK','format','\x0a\x20\x20','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','848755rIZPrC','Current\x20resolved\x20appcode\x20is\x20\x22','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','Edit\x20the\x20config\x20file\x20manually','pretty','apiDir','High-risk\x20operation\x20`','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','defaultPageSize','formatOutput','nonInteractive','riskLevel','production','defaultVerbose','LOVRABET_APPCODE','none','required','\x20\x20\x20Continue?\x20[y/N]\x20','service','message','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','update','keys','resolveApiDomain','isNonInteractive','Set\x20appcode\x20via\x20`','⚠\x20\x20High-risk\x20operation:\x20','selectedAppName','6550472KWfflq','trim','RABETBASE_APPCODE','some','value','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','148020FsJEVe','confirmHighRisk','all','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','doctor','defaultApp'];a261_0x562e=function(){return _0x35e2d6;};return a261_0x562e();}
1
+ (function(_0x4a00c5,_0x38af6f){const _0x490b93=a266_0x16a9,_0x25d799=_0x4a00c5();while(!![]){try{const _0xc4c4f6=parseInt(_0x490b93(0x1bc))/0x1*(parseInt(_0x490b93(0x19a))/0x2)+-parseInt(_0x490b93(0x188))/0x3+-parseInt(_0x490b93(0x1ab))/0x4+parseInt(_0x490b93(0x186))/0x5*(parseInt(_0x490b93(0x178))/0x6)+-parseInt(_0x490b93(0x184))/0x7*(-parseInt(_0x490b93(0x1a3))/0x8)+parseInt(_0x490b93(0x18d))/0x9*(-parseInt(_0x490b93(0x19e))/0xa)+parseInt(_0x490b93(0x1a2))/0xb;if(_0xc4c4f6===_0x38af6f)break;else _0x25d799['push'](_0x25d799['shift']());}catch(_0x49af5c){_0x25d799['push'](_0x25d799['shift']());}}}(a266_0x3990,0xd1343));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';function a266_0x16a9(_0x398d4d,_0x48e6ae){_0x398d4d=_0x398d4d-0x171;const _0x3990cf=a266_0x3990();let _0x16a984=_0x3990cf[_0x398d4d];return _0x16a984;}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 a266_0x44e33d}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x20e0c3){const _0x4447a2=a266_0x16a9;return typeof _0x20e0c3==='string'&&_0x20e0c3[_0x4447a2(0x1af)]()?_0x20e0c3[_0x4447a2(0x1af)]():undefined;}function resolveEnvAppCode(){const _0x5863c9=a266_0x16a9,_0x338019=stringFlag(process.env.RABETBASE_APPCODE);if(_0x338019)return{'name':_0x5863c9(0x1b8),'value':_0x338019};const _0x514b14=stringFlag(process.env.LOVRABET_APPCODE);if(_0x514b14)return{'name':'LOVRABET_APPCODE','value':_0x514b14};return undefined;}function hasExplicitAppCode(_0x3fd4b7,_0x32bde7){return!!(stringFlag(_0x3fd4b7['appcode'])||stringFlag(_0x32bde7['appcode']));}function assertEnvAppCodeNotIgnored(_0x1ad73a,_0x79de40,_0x364cf5){const _0x27b313=a266_0x16a9;if(!_0x79de40||_0x364cf5||_0x1ad73a===_0x79de40['value'])return;const _0x5a78ca=_0x1ad73a?_0x27b313(0x1b3)+_0x1ad73a+'\x22.':_0x27b313(0x172);throw CliErrors[_0x27b313(0x1a4)](_0x79de40[_0x27b313(0x171)]+'='+_0x79de40[_0x27b313(0x180)]+_0x27b313(0x1a1)+_0x5a78ca+'\x20'+(_0x27b313(0x1b9)+_0x79de40[_0x27b313(0x171)]+'\x22.'));}export function createPipelineEnv(_0x216946,_0x5954b6,_0x5da586=[]){const _0x20d7aa=a266_0x16a9;return{'rawFlags':_0x5954b6,'args':_0x5da586,'resolveAppCode':()=>_0x216946[_0x20d7aa(0x1a7)],'resolveCookie':()=>_0x216946[_0x20d7aa(0x18e)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a266_0x44e33d(_0x5954b6),'defaultFormat':_0x216946[_0x20d7aa(0x181)],'defaultPageSize':_0x216946[_0x20d7aa(0x176)],'defaultVerbose':_0x216946[_0x20d7aa(0x183)],'apiDir':_0x216946[_0x20d7aa(0x197)],'riskLevel':_0x216946['riskLevel'],'selectedAppName':_0x216946[_0x20d7aa(0x1b7)],'mergedCli':{'defaultApp':_0x216946[_0x20d7aa(0x198)],'currentApp':_0x216946[_0x20d7aa(0x17d)],'appCode':_0x216946['appCode'],'apps':_0x216946[_0x20d7aa(0x17c)]}};}export function createRabetbaseRunnerAdapter(_0x226fab={}){const _0x5b5ef3=a266_0x16a9;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x365d4b=>PIPELINE_FLAG_NAMES[_0x5b5ef3(0x1b4)](_0x365d4b[_0x5b5ef3(0x171)]))['map'](({name:_0xf2b425,type:_0x2da03d,description:_0x172351})=>({'name':_0xf2b425,'type':_0x2da03d,'description':_0x172351})),'formatOutput':_0x226fab[_0x5b5ef3(0x1bd)]??formatOutput,'getCommandLabel'(_0x374f7d){const _0x41bb94=_0x5b5ef3;return CLI_BIN_NAME+'\x20'+_0x374f7d[_0x41bb94(0x190)]+'\x20'+_0x374f7d[_0x41bb94(0x196)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x36e455,{def:_0xbc3b00}){const _0x577cc1=_0x5b5ef3,_0x251aa9=_0x36e455['includes'](_0x577cc1(0x175))?_0x577cc1(0x1a5):_0x577cc1(0x1ac)+_0xbc3b00[_0x577cc1(0x1b6)]+_0x577cc1(0x194)+_0x577cc1(0x1a5);return CliErrors[_0x577cc1(0x1a4)](_0x36e455+_0x577cc1(0x18b)+_0x251aa9);}},async 'prepare'(_0x1ed10d,_0x442662,_0x1b90eb,_0x4aa54b){const _0x4d200c=_0x5b5ef3,_0x5dd954=_0x442662['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x1ed10d,_0x1b90eb,_0x5dd954,_0x4aa54b);const _0x4114d3=resolveCommandAuthMode(_0x1ed10d);let _0x19669a='';if(_0x4114d3!==_0x4d200c(0x182)){_0x19669a=_0x442662[_0x4d200c(0x1ad)]()||'';if(!_0x19669a){if(_0x4114d3==='required')throw CliErrors['authRequired']();}else{const {setActiveCookie:_0x3bc638}=await import(_0x4d200c(0x18f));_0x3bc638(_0x19669a);}}const _0x1b805e=_0x442662[_0x4d200c(0x1b2)]()??'';if(_0x1ed10d[_0x4d200c(0x177)]!==![]){const _0x1bb8a3=hasExplicitAppCode(_0x1b90eb,_0x442662[_0x4d200c(0x1b1)]),_0x228784=_0x442662[_0x4d200c(0x1a0)]?.[_0x4d200c(0x17c)]??{},_0x28642b=_0x442662['selectedAppName']||_0x442662['mergedCli']?.[_0x4d200c(0x17d)]||_0x442662[_0x4d200c(0x1a0)]?.['defaultApp'];if(!_0x1bb8a3&&_0x28642b&&!_0x228784[_0x28642b]){const _0x17a401=Object[_0x4d200c(0x17f)](_0x228784);throw CliErrors['validation'](_0x4d200c(0x193)+_0x28642b+_0x4d200c(0x1b5),_0x17a401[_0x4d200c(0x1aa)]>0x0?_0x4d200c(0x173)+_0x17a401[_0x4d200c(0x174)](',\x20')+'.\x20Use\x20--app/--appcode,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x4d200c(0x19b):'Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x4d200c(0x19b));}assertEnvAppCodeNotIgnored(_0x1b805e,resolveEnvAppCode(),_0x1bb8a3);if(!_0x1b805e){const _0x4cf781=Object[_0x4d200c(0x17f)](_0x228784);if(!_0x28642b&&_0x4cf781[_0x4d200c(0x1aa)]>0x1)throw CliErrors[_0x4d200c(0x1a8)](_0x4d200c(0x1c4)+CLI_BIN_NAME+_0x4d200c(0x192)+_0x4cf781['join'](',\x20')+'.');throw CliErrors[_0x4d200c(0x1a8)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x4d200c(0x19c));}}return{'defaults':{'booleans':{'verbose':_0x442662[_0x4d200c(0x19d)]},'numbers':{'pagesize':_0x442662[_0x4d200c(0x1ba)]}},'extras':{'appCode':_0x1b805e,'cookie':_0x19669a,'apiDomain':_0x442662[_0x4d200c(0x191)](),'apiDir':_0x5dd954,'selectedAppName':_0x442662['selectedAppName'],'mergedCli':_0x442662[_0x4d200c(0x1a0)]}};},'confirmHighRisk':_0x226fab[_0x5b5ef3(0x1b0)]??(async({env:_0x45622e,commandLabel:_0x51012a})=>{const _0x4ebe0b=_0x5b5ef3;if(_0x45622e[_0x4ebe0b(0x17e)])throw CliErrors[_0x4ebe0b(0x1a4)](_0x4ebe0b(0x1ae)+_0x51012a+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':[_0x4ebe0b(0x17a)+_0x51012a,_0x4ebe0b(0x17b)],'createCancelledError':_0xa0a26f=>CliErrors[_0x4ebe0b(0x185)](_0xa0a26f)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x4b9896=a266_0x16a9,{clearActiveCookie:_0x1f2647}=await import(_0x4b9896(0x18f));_0x1f2647();}export async function finalizeRabetbaseRuntimeState(){const _0x447c4e=a266_0x16a9;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x39d261},{initEnv:_0x101890}]=await Promise[_0x447c4e(0x179)]([import(_0x447c4e(0x199)),import(_0x447c4e(0x1a6))]);_0x39d261(),_0x101890(_0x447c4e(0x1c0));}}export async function runCommand(_0x483d74,_0x4878e9,_0x514d82=terminalRunnerAdapter){assertRejectedFlags(_0x483d74,_0x4878e9['rawFlags']),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x483d74)?withUpdateNotice(_0x483d74):_0x483d74,_0x4878e9,_0x514d82);}function assertRejectedFlags(_0x2e51c9,_0x5a8e47){const _0x8acb7f=a266_0x16a9;for(const _0x5d03f2 of _0x2e51c9['rejectedFlags']??[]){const _0x530838=GLOBAL_FLAGS[_0x8acb7f(0x19f)](_0x3cb422=>_0x3cb422[_0x8acb7f(0x171)]===_0x5d03f2[_0x8acb7f(0x171)]),_0x3512c7=new Set([_0x5d03f2[_0x8acb7f(0x171)],toCamelCase(_0x5d03f2[_0x8acb7f(0x171)]),_0x530838?.['meowKey']]),_0x5f47d2=[..._0x3512c7][_0x8acb7f(0x189)](_0x8b80b=>{if(!_0x8b80b)return![];const _0x247afe=_0x5a8e47[_0x8b80b];return _0x247afe!==undefined&&_0x247afe!==null&&_0x247afe!==![];});if(_0x5f47d2)throw CliErrors['validation'](_0x5d03f2['message'],_0x5d03f2[_0x8acb7f(0x1c5)]);}}function a266_0x3990(){const _0x197af2=['requiresAppCode','6yKrtZf','all','⚠\x20\x20High-risk\x20operation:\x20','\x20\x20\x20Continue?\x20[y/N]\x20','apps','currentApp','isNonInteractive','keys','value','format','none','verbose','7GsFESA','cancelled','605215ylzPHO','_notice','3402528yCkGsd','some','includes','\x0a\x20\x20','update','22977uqSHJs','cookie','../core/api-client.js','service','resolveApiDomain','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','App\x20\x22','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','resolve','command','apiDir','defaultApp','../constant/domain.js','1341782WQVlgB','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','defaultVerbose','890gpmULB','find','mergedCli','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','16398536ZZPaxp','287792WfdeVR','validation','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','../constant/env.js','appCode','configMissing','schema','length','3085132NkzLEI','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','resolveCookie','High-risk\x20operation\x20`','trim','confirmHighRisk','rawFlags','resolveAppCode','Current\x20resolved\x20appcode\x20is\x20\x22','has','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','risk','explicitAppName','RABETBASE_APPCODE','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','defaultPageSize','execute','2ZPKozq','formatOutput','pretty','catch','production','doctor','replace','hasFormat','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','hint','name','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','Available:\x20','join','Edit\x20the\x20config\x20file\x20manually','pageSize'];a266_0x3990=function(){return _0x197af2;};return a266_0x3990();}function toCamelCase(_0x2f91f7){const _0x23a345=a266_0x16a9;return _0x2f91f7[_0x23a345(0x1c2)](/-([a-z])/g,(_0x5027f9,_0x4ae3d5)=>_0x4ae3d5['toUpperCase']());}function shouldAttachUpdateNotice(_0x1baea3){const _0x5102f0=a266_0x16a9;if(_0x1baea3[_0x5102f0(0x1c3)]===![])return![];return![_0x5102f0(0x18c),_0x5102f0(0x1a9),_0x5102f0(0x1c1)][_0x5102f0(0x18a)](_0x1baea3[_0x5102f0(0x190)]);}function withUpdateNotice(_0x1532b4){return{..._0x1532b4,async 'execute'(_0xadfa58){const _0x1235f6=a266_0x16a9,_0x10e9ea=shouldResolveUpdateNotice(_0xadfa58)?resolveLatestUpdateNotice()[_0x1235f6(0x1bf)](()=>null):Promise[_0x1235f6(0x195)](null),_0x7a4250=await _0x1532b4[_0x1235f6(0x1bb)](_0xadfa58);return attachUpdateNotice(_0x7a4250,await _0x10e9ea);}};}function shouldResolveUpdateNotice(_0x136b2f){const _0x39ca6c=a266_0x16a9;return _0x136b2f[_0x39ca6c(0x181)]===_0x39ca6c(0x1be)&&!_0x136b2f['nonInteractive'];}function attachUpdateNotice(_0x27ce86,_0x76bce9){const _0x9a52bc=a266_0x16a9;if(!_0x76bce9||!_0x27ce86||typeof _0x27ce86!=='object')return _0x27ce86;const _0x319ff2=_0x27ce86,_0x1d8d39=typeof _0x319ff2[_0x9a52bc(0x187)]==='object'&&_0x319ff2[_0x9a52bc(0x187)]!==null?_0x319ff2[_0x9a52bc(0x187)]:{};return{..._0x319ff2,'_notice':{..._0x1d8d39,'update':_0x76bce9}};}
@@ -1 +1 @@
1
- function a262_0x28ae(){const _0x364205=['14AaAxIT','7028iNXrap','13602EBusab','10637MLYoKU','2269452rTrhQe','2706354pGCykq','9910aWNBxh','149215ZWoltL','705OunJYa','13038TIMrGd','1624IGNakp','../commands/registry.js'];a262_0x28ae=function(){return _0x364205;};return a262_0x28ae();}(function(_0x3d95d3,_0x3735e6){const _0x2c4b2a=a262_0x56e0,_0x47d90a=_0x3d95d3();while(!![]){try{const _0x150cf2=-parseInt(_0x2c4b2a(0x12d))/0x1+parseInt(_0x2c4b2a(0x132))/0x2*(-parseInt(_0x2c4b2a(0x128))/0x3)+-parseInt(_0x2c4b2a(0x12a))/0x4+parseInt(_0x2c4b2a(0x12e))/0x5*(-parseInt(_0x2c4b2a(0x12f))/0x6)+-parseInt(_0x2c4b2a(0x127))/0x7*(-parseInt(_0x2c4b2a(0x130))/0x8)+parseInt(_0x2c4b2a(0x12b))/0x9+-parseInt(_0x2c4b2a(0x12c))/0xa*(-parseInt(_0x2c4b2a(0x129))/0xb);if(_0x150cf2===_0x3735e6)break;else _0x47d90a['push'](_0x47d90a['shift']());}catch(_0x28de75){_0x47d90a['push'](_0x47d90a['shift']());}}}(a262_0x28ae,0x63a2a));function a262_0x56e0(_0x24daff,_0x24b99d){_0x24daff=_0x24daff-0x127;const _0x28ae9e=a262_0x28ae();let _0x56e002=_0x28ae9e[_0x24daff];return _0x56e002;}import{buildSchemaPayload as a262_0x37b7d1}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';export async function buildSchemaPayload(){const _0xf78825=a262_0x56e0,{serviceRegistry:_0x52941b,findDefinition:_0x84969b}=await import(_0xf78825(0x131));return a262_0x37b7d1({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x52941b,'buildAllFlags':buildAllFlags,'findDefinition':_0x84969b});}
1
+ function a267_0x4181(_0x149904,_0xa062e7){_0x149904=_0x149904-0x116;const _0x364399=a267_0x3643();let _0x418154=_0x364399[_0x149904];return _0x418154;}(function(_0x49e191,_0x3e0244){const _0x27319d=a267_0x4181,_0x27519e=_0x49e191();while(!![]){try{const _0x1be42f=-parseInt(_0x27319d(0x11d))/0x1*(-parseInt(_0x27319d(0x116))/0x2)+parseInt(_0x27319d(0x11c))/0x3*(-parseInt(_0x27319d(0x117))/0x4)+parseInt(_0x27319d(0x11f))/0x5+-parseInt(_0x27319d(0x119))/0x6+-parseInt(_0x27319d(0x11e))/0x7+parseInt(_0x27319d(0x11a))/0x8+parseInt(_0x27319d(0x118))/0x9;if(_0x1be42f===_0x3e0244)break;else _0x27519e['push'](_0x27519e['shift']());}catch(_0x36f511){_0x27519e['push'](_0x27519e['shift']());}}}(a267_0x3643,0x6f8e3));import{buildSchemaPayload as a267_0x65c9d8}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a267_0x3643(){const _0x184fb4=['576423TvQkRO','1ydWUQW','5087579GFBrIo','3201680vKaGEj','480468gWhlnE','8xlzoKO','8996877YlEPdf','2567568LTRthR','925720zkfJtL','../commands/registry.js'];a267_0x3643=function(){return _0x184fb4;};return a267_0x3643();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x976885=a267_0x4181,{serviceRegistry:_0x1fee25,findDefinition:_0x2577eb}=await import(_0x976885(0x11b));return a267_0x65c9d8({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x1fee25,'buildAllFlags':buildAllFlags,'findDefinition':_0x2577eb});}
@@ -20,7 +20,6 @@ export interface RuntimeContextExtras {
20
20
  apiDir: string;
21
21
  selectedAppName?: string;
22
22
  mergedCli?: MergedCliSnapshot;
23
- signal?: AbortSignal;
24
23
  }
25
24
  export type RuntimeContext = CoreRuntimeContext<RuntimeContextExtras>;
26
25
  export interface RuntimeUpdateNotice {
@@ -1 +1 @@
1
- (function(_0x1f6cb0,_0x70a965){var _0x44893f=a263_0x2840,_0x3f28f9=_0x1f6cb0();while(!![]){try{var _0x46a735=parseInt(_0x44893f(0xa6))/0x1*(-parseInt(_0x44893f(0xae))/0x2)+parseInt(_0x44893f(0xa7))/0x3*(parseInt(_0x44893f(0xac))/0x4)+-parseInt(_0x44893f(0xad))/0x5+-parseInt(_0x44893f(0xaf))/0x6+parseInt(_0x44893f(0xa9))/0x7+-parseInt(_0x44893f(0xa8))/0x8*(-parseInt(_0x44893f(0xab))/0x9)+parseInt(_0x44893f(0xaa))/0xa;if(_0x46a735===_0x70a965)break;else _0x3f28f9['push'](_0x3f28f9['shift']());}catch(_0xf6a556){_0x3f28f9['push'](_0x3f28f9['shift']());}}}(a263_0x4acc,0x3f699));function a263_0x4acc(){var _0x2980db=['22833RjHaas','41188EylhNq','2038120kfGEXt','501102WuNilQ','255342EdgwXq','1JloOWD','66IZOeTP','88UmtnRw','2989350EIjRnw','2789780YHYocH'];a263_0x4acc=function(){return _0x2980db;};return a263_0x4acc();}function a263_0x2840(_0xf4215b,_0x487726){_0xf4215b=_0xf4215b-0xa6;var _0x4accec=a263_0x4acc();var _0x2840fa=_0x4accec[_0xf4215b];return _0x2840fa;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
1
+ function a268_0x3d19(_0x65f282,_0x513a8f){_0x65f282=_0x65f282-0x75;var _0x45e73b=a268_0x45e7();var _0x3d19ab=_0x45e73b[_0x65f282];return _0x3d19ab;}function a268_0x45e7(){var _0x46c87c=['1612197azIghy','641128COYOOa','1616820ZTImJV','1030778RuuvHx','10100etJhGh','1412fGeulM','1838656DGjjab','7738144cxoLOf'];a268_0x45e7=function(){return _0x46c87c;};return a268_0x45e7();}(function(_0x5d608e,_0x14c3f0){var _0xcf23=a268_0x3d19,_0xcc0eed=_0x5d608e();while(!![]){try{var _0x4ed4d4=parseInt(_0xcf23(0x7c))/0x1+parseInt(_0xcf23(0x79))/0x2+parseInt(_0xcf23(0x7b))/0x3+-parseInt(_0xcf23(0x78))/0x4*(parseInt(_0xcf23(0x77))/0x5)+parseInt(_0xcf23(0x75))/0x6+-parseInt(_0xcf23(0x76))/0x7+-parseInt(_0xcf23(0x7a))/0x8;if(_0x4ed4d4===_0x14c3f0)break;else _0xcc0eed['push'](_0xcc0eed['shift']());}catch(_0x1077b6){_0xcc0eed['push'](_0xcc0eed['shift']());}}}(a268_0x45e7,0x83c5f));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "2.5.1-beta.4";
2
- export declare const GIT_TAG = "v2.5.1-beta.4";
3
- export declare const GIT_COMMIT = "81bc862";
4
- export declare const BUILD_TIME = "2026-08-30T11:04:24.543Z";
1
+ export declare const VERSION = "2.5.1-beta.5";
2
+ export declare const GIT_TAG = "v2.5.1-beta.5";
3
+ export declare const GIT_COMMIT = "8896b011";
4
+ export declare const BUILD_TIME = "2026-08-31T02:13:32.165Z";
@@ -1 +1 @@
1
- const a264_0x16965b=a264_0x54b8;(function(_0x470feb,_0x3a5780){const _0x243bb5=a264_0x54b8,_0x4a4a5b=_0x470feb();while(!![]){try{const _0xe9da62=parseInt(_0x243bb5(0x10c))/0x1+-parseInt(_0x243bb5(0x105))/0x2+parseInt(_0x243bb5(0x10b))/0x3+-parseInt(_0x243bb5(0x110))/0x4+parseInt(_0x243bb5(0x10a))/0x5*(parseInt(_0x243bb5(0x106))/0x6)+-parseInt(_0x243bb5(0x10d))/0x7*(-parseInt(_0x243bb5(0x107))/0x8)+parseInt(_0x243bb5(0x109))/0x9*(-parseInt(_0x243bb5(0x10f))/0xa);if(_0xe9da62===_0x3a5780)break;else _0x4a4a5b['push'](_0x4a4a5b['shift']());}catch(_0x3d8af4){_0x4a4a5b['push'](_0x4a4a5b['shift']());}}}(a264_0xba2c,0x5a3ed));export const VERSION=a264_0x16965b(0x111);export const GIT_TAG=a264_0x16965b(0x10e);function a264_0x54b8(_0x3c9131,_0x1f2a42){_0x3c9131=_0x3c9131-0x105;const _0xba2cb1=a264_0xba2c();let _0x54b860=_0xba2cb1[_0x3c9131];return _0x54b860;}export const GIT_COMMIT=a264_0x16965b(0x108);function a264_0xba2c(){const _0x36356f=['209058iQZPHO','30OiYmYp','1504izlSZS','81bc862','9679329VNksSH','430120qUMUnw','1053039bMFjEr','671121YJUzmd','14546rMUnCa','v2.5.1-beta.4','10OvcMQu','1173052FpvMBM','2.5.1-beta.4'];a264_0xba2c=function(){return _0x36356f;};return a264_0xba2c();}export const BUILD_TIME='2026-08-30T11:04:24.543Z';
1
+ function a269_0x47db(){const _0x5b83ac=['1404235zJCkwf','6726JxsgVE','2026-08-31T02:13:32.165Z','13425KsfcRk','v2.5.1-beta.5','8896b011','72NJPvXE','27qWNeYC','1177444NGwfCN','1626uIRMDM','2135973hwmiud','2.5.1-beta.5','1862890uZnqDG','7286096RRJKJO'];a269_0x47db=function(){return _0x5b83ac;};return a269_0x47db();}const a269_0x40d7c5=a269_0x46d2;(function(_0xaeb6da,_0x838803){const _0x5f3d6b=a269_0x46d2,_0x246248=_0xaeb6da();while(!![]){try{const _0x5f544e=parseInt(_0x5f3d6b(0x17e))/0x1*(parseInt(_0x5f3d6b(0x178))/0x2)+parseInt(_0x5f3d6b(0x181))/0x3+-parseInt(_0x5f3d6b(0x17f))/0x4+-parseInt(_0x5f3d6b(0x17a))/0x5*(-parseInt(_0x5f3d6b(0x180))/0x6)+-parseInt(_0x5f3d6b(0x185))/0x7+parseInt(_0x5f3d6b(0x184))/0x8+parseInt(_0x5f3d6b(0x17d))/0x9*(-parseInt(_0x5f3d6b(0x183))/0xa);if(_0x5f544e===_0x838803)break;else _0x246248['push'](_0x246248['shift']());}catch(_0x4c0c27){_0x246248['push'](_0x246248['shift']());}}}(a269_0x47db,0x6f4e7));function a269_0x46d2(_0x1d80f0,_0x1d050d){_0x1d80f0=_0x1d80f0-0x178;const _0x47db0f=a269_0x47db();let _0x46d229=_0x47db0f[_0x1d80f0];return _0x46d229;}export const VERSION=a269_0x40d7c5(0x182);export const GIT_TAG=a269_0x40d7c5(0x17b);export const GIT_COMMIT=a269_0x40d7c5(0x17c);export const BUILD_TIME=a269_0x40d7c5(0x179);
@@ -0,0 +1,83 @@
1
+ export declare const ROUTING_CATALOG_DIGEST: "ad100799ce7bf5b9cb94d2b350b42d3b42aa5956faea0e371c7bd8abc2b8c75b";
2
+ export declare const DEFAULT_REGION: "cn";
3
+ export declare const REGION_VALUES: readonly ["cn", "id", "global"];
4
+ export declare const ENABLED_REGION_VALUES: readonly ["cn", "id"];
5
+ export declare const OFFICIAL_ROUTING_PROFILES: {
6
+ readonly cn: {
7
+ readonly enabled: true;
8
+ readonly label: "Mainland China";
9
+ readonly aliases: readonly ["china"];
10
+ readonly serviceDomains: {
11
+ readonly production: {
12
+ readonly user: "https://user.lovrabet.com";
13
+ readonly api: "https://api.lovrabet.com";
14
+ readonly runtime: "https://runtime.lovrabet.com";
15
+ readonly skill: "https://skills.lovrabet.com";
16
+ readonly kb: "https://api.lovrabet.com";
17
+ readonly app: "https://app.lovrabet.com";
18
+ };
19
+ readonly daily: {
20
+ readonly user: "https://user-daily.lovrabet.com";
21
+ readonly api: "https://daily-api.lovrabet.com";
22
+ readonly runtime: "https://daily-runtime.lovrabet.com";
23
+ readonly skill: "https://skills-daily.lovrabet.com";
24
+ readonly kb: "https://daily-api.lovrabet.com";
25
+ readonly app: "https://daily.lovrabet.com";
26
+ };
27
+ };
28
+ readonly cdn: {
29
+ readonly libraries: "https://g.alicdn.com/code/lib";
30
+ readonly lovrabet: "https://g.lovrabet.com";
31
+ };
32
+ readonly local: {
33
+ readonly origin: "https://dev.lovrabet.com";
34
+ };
35
+ };
36
+ readonly id: {
37
+ readonly enabled: true;
38
+ readonly label: "Indonesia";
39
+ readonly aliases: readonly ["indonesia"];
40
+ readonly serviceDomains: {
41
+ readonly production: {
42
+ readonly user: "https://user.lovrabet.id";
43
+ readonly api: "https://api.lovrabet.id";
44
+ readonly runtime: "https://runtime.lovrabet.id";
45
+ readonly skill: "https://skills.lovrabet.id";
46
+ readonly kb: "https://api.lovrabet.id";
47
+ readonly app: "https://app.lovrabet.id";
48
+ };
49
+ };
50
+ readonly cdn: {
51
+ readonly libraries: "https://cdnjs.cloudflare.com/ajax/libs";
52
+ readonly lovrabet: "https://g.lovrabet.id";
53
+ };
54
+ readonly local: {
55
+ readonly origin: "https://dev.lovrabet.id";
56
+ };
57
+ };
58
+ readonly global: {
59
+ readonly enabled: false;
60
+ readonly label: "Global";
61
+ readonly aliases: readonly [];
62
+ readonly serviceDomains: {
63
+ readonly production: {
64
+ readonly user: "https://user.lovrabet.ai";
65
+ readonly api: "https://api.lovrabet.ai";
66
+ readonly runtime: "https://runtime.lovrabet.ai";
67
+ readonly skill: "https://skills.lovrabet.ai";
68
+ readonly kb: "https://api.lovrabet.ai";
69
+ readonly app: "https://app.lovrabet.ai";
70
+ };
71
+ };
72
+ readonly cdn: {
73
+ readonly libraries: "https://cdnjs.cloudflare.com/ajax/libs";
74
+ };
75
+ readonly local: {
76
+ readonly origin: "https://dev.lovrabet.ai";
77
+ };
78
+ };
79
+ };
80
+ export declare const REGION_ALIASES: {
81
+ readonly china: "cn";
82
+ readonly indonesia: "id";
83
+ };
@@ -0,0 +1 @@
1
+ const a270_0x59432c=a270_0x1cf6;function a270_0x1cf6(_0x4b9662,_0x17d5c2){_0x4b9662=_0x4b9662-0x192;const _0xda081c=a270_0xda08();let _0x1cf603=_0xda081c[_0x4b9662];return _0x1cf603;}(function(_0x2277b3,_0x50729b){const _0x151fff=a270_0x1cf6,_0x358c0b=_0x2277b3();while(!![]){try{const _0x49b23f=-parseInt(_0x151fff(0x1b6))/0x1*(-parseInt(_0x151fff(0x1af))/0x2)+-parseInt(_0x151fff(0x1a5))/0x3+-parseInt(_0x151fff(0x1ae))/0x4*(parseInt(_0x151fff(0x197))/0x5)+-parseInt(_0x151fff(0x194))/0x6*(parseInt(_0x151fff(0x1a7))/0x7)+-parseInt(_0x151fff(0x1a6))/0x8+-parseInt(_0x151fff(0x19a))/0x9*(-parseInt(_0x151fff(0x1b8))/0xa)+-parseInt(_0x151fff(0x1b4))/0xb*(-parseInt(_0x151fff(0x1a0))/0xc);if(_0x49b23f===_0x50729b)break;else _0x358c0b['push'](_0x358c0b['shift']());}catch(_0x46f7d8){_0x358c0b['push'](_0x358c0b['shift']());}}}(a270_0xda08,0x8dad2));export const ROUTING_CATALOG_DIGEST=a270_0x59432c(0x1b3);export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a270_0x59432c(0x1ab)];export const ENABLED_REGION_VALUES=['cn','id'];function a270_0xda08(){const _0x38b9a1=['https://runtime.lovrabet.ai','https://g.lovrabet.com','https://dev.lovrabet.id','1803372chWxLb','4268272cxfpzW','2213967OKwkDB','https://daily-runtime.lovrabet.com','china','https://api.lovrabet.ai','global','https://app.lovrabet.com','https://user-daily.lovrabet.com','16qwmDcq','181850zfeCbk','Indonesia','https://runtime.lovrabet.com','https://api.lovrabet.id','ad100799ce7bf5b9cb94d2b350b42d3b42aa5956faea0e371c7bd8abc2b8c75b','11ZzpTaE','https://g.alicdn.com/code/lib','5XTSAnQ','https://skills.lovrabet.com','10zZwjqw','https://app.lovrabet.ai','https://api.lovrabet.com','https://dev.lovrabet.ai','Mainland\x20China','12KViZuB','https://user.lovrabet.id','https://g.lovrabet.id','1411760uKDSjF','https://cdnjs.cloudflare.com/ajax/libs','https://runtime.lovrabet.id','9544968WOqLYN','https://daily-api.lovrabet.com','https://skills.lovrabet.ai','https://dev.lovrabet.com','indonesia','Global','23541084gJMlcH','https://daily.lovrabet.com'];a270_0xda08=function(){return _0x38b9a1;};return a270_0xda08();}export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a270_0x59432c(0x193),'aliases':[a270_0x59432c(0x1a9)],'serviceDomains':{'production':{'user':'https://user.lovrabet.com','api':a270_0x59432c(0x1ba),'runtime':a270_0x59432c(0x1b1),'skill':a270_0x59432c(0x1b7),'kb':'https://api.lovrabet.com','app':a270_0x59432c(0x1ac)},'daily':{'user':a270_0x59432c(0x1ad),'api':'https://daily-api.lovrabet.com','runtime':a270_0x59432c(0x1a8),'skill':'https://skills-daily.lovrabet.com','kb':a270_0x59432c(0x19b),'app':a270_0x59432c(0x1a1)}},'cdn':{'libraries':a270_0x59432c(0x1b5),'lovrabet':a270_0x59432c(0x1a3)},'local':{'origin':a270_0x59432c(0x19d)}},'id':{'enabled':!![],'label':a270_0x59432c(0x1b0),'aliases':[a270_0x59432c(0x19e)],'serviceDomains':{'production':{'user':a270_0x59432c(0x195),'api':a270_0x59432c(0x1b2),'runtime':a270_0x59432c(0x199),'skill':'https://skills.lovrabet.id','kb':a270_0x59432c(0x1b2),'app':'https://app.lovrabet.id'}},'cdn':{'libraries':a270_0x59432c(0x198),'lovrabet':a270_0x59432c(0x196)},'local':{'origin':a270_0x59432c(0x1a4)}},'global':{'enabled':![],'label':a270_0x59432c(0x19f),'aliases':[],'serviceDomains':{'production':{'user':'https://user.lovrabet.ai','api':a270_0x59432c(0x1aa),'runtime':a270_0x59432c(0x1a2),'skill':a270_0x59432c(0x19c),'kb':a270_0x59432c(0x1aa),'app':a270_0x59432c(0x1b9)}},'cdn':{'libraries':'https://cdnjs.cloudflare.com/ajax/libs'},'local':{'origin':a270_0x59432c(0x192)}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
@@ -0,0 +1,9 @@
1
+ export declare const ENTERPRISE_ROUTING_SCHEMA_DIGEST: "0bc465ada0b5c1621a0dfd5441b91b5d7c69d95ef7417f07cc7afd3548593d8a";
2
+ export declare const ENTERPRISE_ROUTING_PROTOCOL: "lovrabet-routing/v1";
3
+ export declare const ENTERPRISE_ROUTING_KIND: "enterprise";
4
+ export declare const ENTERPRISE_ROUTING_TOP_LEVEL_FIELDS: readonly ["protocol", "kind", "domains", "cdn"];
5
+ export declare const ENTERPRISE_ROUTING_CONSUMERS: readonly ["rabetbase-cli", "lovrabet-cli", "lovrabet-node-sdk"];
6
+ export declare const ENTERPRISE_ROUTING_DOMAIN_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "appDomain", "localDomain", "certificateDomain"];
7
+ export declare const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "appDomain"];
8
+ export declare const ENTERPRISE_ROUTING_CDN_FIELDS: readonly ["libraries", "lovrabet"];
9
+ export declare const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS: readonly ["libraries", "lovrabet"];
@@ -0,0 +1 @@
1
+ const a271_0x583180=a271_0x5ee7;function a271_0x5ee7(_0x5521bf,_0x2aef39){_0x5521bf=_0x5521bf-0x14d;const _0x9c969b=a271_0x9c96();let _0x5ee7b0=_0x9c969b[_0x5521bf];return _0x5ee7b0;}(function(_0x307cc1,_0x212818){const _0x5cdff2=a271_0x5ee7,_0x46dce1=_0x307cc1();while(!![]){try{const _0x1add76=-parseInt(_0x5cdff2(0x15d))/0x1*(parseInt(_0x5cdff2(0x167))/0x2)+parseInt(_0x5cdff2(0x169))/0x3*(parseInt(_0x5cdff2(0x156))/0x4)+parseInt(_0x5cdff2(0x15b))/0x5*(parseInt(_0x5cdff2(0x162))/0x6)+parseInt(_0x5cdff2(0x155))/0x7+-parseInt(_0x5cdff2(0x15e))/0x8+parseInt(_0x5cdff2(0x152))/0x9*(-parseInt(_0x5cdff2(0x165))/0xa)+-parseInt(_0x5cdff2(0x158))/0xb*(-parseInt(_0x5cdff2(0x150))/0xc);if(_0x1add76===_0x212818)break;else _0x46dce1['push'](_0x46dce1['shift']());}catch(_0x1ccf65){_0x46dce1['push'](_0x46dce1['shift']());}}}(a271_0x9c96,0x5f750));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a271_0x583180(0x157);export const ENTERPRISE_ROUTING_PROTOCOL=a271_0x583180(0x15a);export const ENTERPRISE_ROUTING_KIND='enterprise';export const ENTERPRISE_ROUTING_TOP_LEVEL_FIELDS=[a271_0x583180(0x168),a271_0x583180(0x163),a271_0x583180(0x14d),'cdn'];export const ENTERPRISE_ROUTING_CONSUMERS=[a271_0x583180(0x160),'lovrabet-cli',a271_0x583180(0x161)];export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a271_0x583180(0x151),a271_0x583180(0x153),'runtimeDomain','skillDomain',a271_0x583180(0x154),a271_0x583180(0x15c),a271_0x583180(0x164),a271_0x583180(0x15f)];function a271_0x9c96(){const _0x532718=['4UERaZJ','0bc465ada0b5c1621a0dfd5441b91b5d7c69d95ef7417f07cc7afd3548593d8a','1536381sDwxOW','libraries','lovrabet-routing/v1','14975dQfcwi','appDomain','1dRxyvo','6027192XSjrWF','certificateDomain','rabetbase-cli','lovrabet-node-sdk','564ZXnbxd','kind','localDomain','10lSuscD','skillDomain','415218YVBpPJ','protocol','1948362OVZSRl','domains','lovrabet','runtimeDomain','12YYXZmJ','userDomain','2810097YBwqIG','apiDomain','kbDomain','4155046afsnTz'];a271_0x9c96=function(){return _0x532718;};return a271_0x9c96();}export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a271_0x583180(0x151),a271_0x583180(0x153),a271_0x583180(0x14f),a271_0x583180(0x166),a271_0x583180(0x154),a271_0x583180(0x15c)];export const ENTERPRISE_ROUTING_CDN_FIELDS=[a271_0x583180(0x159),'lovrabet'];export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=['libraries',a271_0x583180(0x14e)];
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x8dd73e,_0x55a1e6){var _0x5e62d2=a265_0xebd9,_0x4e028e=_0x8dd73e();while(!![]){try{var _0x3476e4=parseInt(_0x5e62d2(0x173))/0x1+-parseInt(_0x5e62d2(0x174))/0x2+-parseInt(_0x5e62d2(0x179))/0x3*(parseInt(_0x5e62d2(0x170))/0x4)+-parseInt(_0x5e62d2(0x17b))/0x5+parseInt(_0x5e62d2(0x176))/0x6+parseInt(_0x5e62d2(0x17a))/0x7*(-parseInt(_0x5e62d2(0x17d))/0x8)+parseInt(_0x5e62d2(0x16f))/0x9;if(_0x3476e4===_0x55a1e6)break;else _0x4e028e['push'](_0x4e028e['shift']());}catch(_0x534dea){_0x4e028e['push'](_0x4e028e['shift']());}}}(a265_0x4251,0xcabf0));import a265_0x537a9e from'chalk';function a265_0x4251(){var _0x1529ba=['bold','35859WlXiNo','4993331oijqhS','2601045MMnwOS','\x20\x20Use\x20','16FYofSD','36484452jjdTuy','476ZvBYQL','green','log','51343hoCOeK','1399168RSnDSZ','\x20--help','4764858YTZWeR','\x20to\x20view\x20available\x20commands.'];a265_0x4251=function(){return _0x1529ba;};return a265_0x4251();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a265_0xebd9(_0x5cd4a2,_0x14c394){_0x5cd4a2=_0x5cd4a2-0x16f;var _0x4251df=a265_0x4251();var _0xebd91b=_0x4251df[_0x5cd4a2];return _0xebd91b;}export function showHelp(){var _0xf0c34f=a265_0xebd9;console['log'](),console[_0xf0c34f(0x172)](a265_0x537a9e[_0xf0c34f(0x171)]['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console[_0xf0c34f(0x172)](),console[_0xf0c34f(0x172)](_0xf0c34f(0x17c)+a265_0x537a9e[_0xf0c34f(0x171)][_0xf0c34f(0x178)](CLI_BIN_NAME+_0xf0c34f(0x175))+_0xf0c34f(0x177)),console[_0xf0c34f(0x172)]();}
1
+ (function(_0x2db91a,_0x495499){var _0x584979=a272_0x3c0a,_0x438fd0=_0x2db91a();while(!![]){try{var _0x4a374b=-parseInt(_0x584979(0x8b))/0x1+parseInt(_0x584979(0x95))/0x2*(parseInt(_0x584979(0x97))/0x3)+parseInt(_0x584979(0x8e))/0x4*(parseInt(_0x584979(0x98))/0x5)+parseInt(_0x584979(0x90))/0x6+parseInt(_0x584979(0x8d))/0x7+parseInt(_0x584979(0x93))/0x8*(parseInt(_0x584979(0x96))/0x9)+parseInt(_0x584979(0x91))/0xa*(-parseInt(_0x584979(0x8c))/0xb);if(_0x4a374b===_0x495499)break;else _0x438fd0['push'](_0x438fd0['shift']());}catch(_0x4794ec){_0x438fd0['push'](_0x438fd0['shift']());}}}(a272_0x262f,0x4f8b8));import a272_0x38f2e6 from'chalk';function a272_0x3c0a(_0x20ecce,_0x5d5264){_0x20ecce=_0x20ecce-0x8a;var _0x262faf=a272_0x262f();var _0x3c0ae6=_0x262faf[_0x20ecce];return _0x3c0ae6;}function a272_0x262f(){var _0x345cf1=['378784yaAmLk','983576zslrTN','955157yyNvNI','8nBHZZh','green','975396ocfbGY','70DpYBhB','\x20--help','32iJRMqz','bold','416918NBOnyc','11916ZXsgNA','9cFNUWZ','1002055NpTeBr','log','\x20\x20Use\x20'];a272_0x262f=function(){return _0x345cf1;};return a272_0x262f();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0xb9726=a272_0x3c0a;console['log'](),console['log'](a272_0x38f2e6[_0xb9726(0x8f)][_0xb9726(0x94)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0xb9726(0x99)](),console[_0xb9726(0x99)](_0xb9726(0x8a)+a272_0x38f2e6[_0xb9726(0x8f)][_0xb9726(0x94)](CLI_BIN_NAME+_0xb9726(0x92))+'\x20to\x20view\x20available\x20commands.'),console[_0xb9726(0x99)]();}
@@ -1 +1 @@
1
- (function(_0x2cafa6,_0x5ae3cb){const _0x5e837b=a266_0x176f,_0xd0cc9d=_0x2cafa6();while(!![]){try{const _0x3a67ee=parseInt(_0x5e837b(0x150))/0x1*(parseInt(_0x5e837b(0x14b))/0x2)+parseInt(_0x5e837b(0x14d))/0x3+parseInt(_0x5e837b(0x143))/0x4*(-parseInt(_0x5e837b(0x14c))/0x5)+parseInt(_0x5e837b(0x152))/0x6*(-parseInt(_0x5e837b(0x14a))/0x7)+parseInt(_0x5e837b(0x149))/0x8+-parseInt(_0x5e837b(0x154))/0x9*(-parseInt(_0x5e837b(0x142))/0xa)+parseInt(_0x5e837b(0x146))/0xb*(-parseInt(_0x5e837b(0x151))/0xc);if(_0x3a67ee===_0x5ae3cb)break;else _0xd0cc9d['push'](_0xd0cc9d['shift']());}catch(_0x15c895){_0xd0cc9d['push'](_0xd0cc9d['shift']());}}}(a266_0x5c5f,0x2d301));import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x51e6aa={}){const _0x3892e5=a266_0x176f,_0x36e548=installBuiltinSkill(_0x51e6aa);if(_0x36e548['ok']){const _0x5e21e4=_0x36e548[_0x3892e5(0x14f)]?'installed':_0x3892e5(0x148),_0x5e4739=_0x36e548['installedPath']?'\x20at\x20'+_0x36e548[_0x3892e5(0x144)]:'\x20via\x20skills@latest';return console['log']('Rabetbase\x20Built-in\x20Skill\x20'+_0x36e548[_0x3892e5(0x145)]+'\x20'+_0x5e21e4+_0x5e4739),_0x36e548;}const _0xbce063='[BUILTIN_SKILL_INSTALL_'+(_0x36e548[_0x3892e5(0x155)]??_0x3892e5(0x147))+']\x20'+(_0x36e548[_0x3892e5(0x156)]??_0x3892e5(0x141))+'.\x20'+(_0x3892e5(0x140)+_0x36e548['repairCommand']);if(_0x36e548[_0x3892e5(0x155)]===_0x3892e5(0x14e))throw new Error(_0xbce063);return console[_0x3892e5(0x153)](_0xbce063),_0x36e548;}function a266_0x176f(_0x3e1d57,_0x5dc08d){_0x3e1d57=_0x3e1d57-0x140;const _0x5c5f43=a266_0x5c5f();let _0x176f4a=_0x5c5f43[_0x3e1d57];return _0x176f4a;}function a266_0x5c5f(){const _0x16848a=['15BzOISV','563238HtZyiV','SOURCE_INVALID','changed','3013eXcPfC','12GvOQJt','498BIWPrj','warn','153GukYtY','code','error','Repair\x20with:\x20','Installation\x20failed','2950FLjLeu','297244OCUodF','installedPath','skillVersion','1580469gNgFXm','FAILED','already\x20current','1857656WNvgPz','11165scleUc','172GlXXSP'];a266_0x5c5f=function(){return _0x16848a;};return a266_0x5c5f();}
1
+ (function(_0x3f0da1,_0x1aff86){const _0xbca5e=a273_0x4352,_0x506917=_0x3f0da1();while(!![]){try{const _0x390eac=parseInt(_0xbca5e(0xa8))/0x1+parseInt(_0xbca5e(0x99))/0x2*(parseInt(_0xbca5e(0xa4))/0x3)+-parseInt(_0xbca5e(0x9f))/0x4*(parseInt(_0xbca5e(0xa2))/0x5)+parseInt(_0xbca5e(0xa1))/0x6*(parseInt(_0xbca5e(0x9e))/0x7)+-parseInt(_0xbca5e(0xad))/0x8*(parseInt(_0xbca5e(0x97))/0x9)+-parseInt(_0xbca5e(0xb1))/0xa*(-parseInt(_0xbca5e(0xaf))/0xb)+-parseInt(_0xbca5e(0xa5))/0xc*(parseInt(_0xbca5e(0xa3))/0xd);if(_0x390eac===_0x1aff86)break;else _0x506917['push'](_0x506917['shift']());}catch(_0x3933bf){_0x506917['push'](_0x506917['shift']());}}}(a273_0x294b,0x97082));function a273_0x294b(){const _0x3d5e2b=['36VZLjuN','Installation\x20failed','5572722QRPhXt','142835NyhfIp','13DnUIxA','51kGDzzL','20488524lWGSQM','warn','\x20at\x20','1205003zVnOoz','installedPath','Repair\x20with:\x20','installed','changed','99744eStMJj','code','5237221OyeqVA','repairCommand','10yhlXtz','\x20via\x20skills@latest','594fylnys','log','93658peJkDj','FAILED','already\x20current','SOURCE_INVALID','error','7gYgbNQ'];a273_0x294b=function(){return _0x3d5e2b;};return a273_0x294b();}function a273_0x4352(_0x26a495,_0xb6d6c){_0x26a495=_0x26a495-0x97;const _0x294b9c=a273_0x294b();let _0x43520d=_0x294b9c[_0x26a495];return _0x43520d;}import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x198f5a={}){const _0x333e81=a273_0x4352,_0x173c11=installBuiltinSkill(_0x198f5a);if(_0x173c11['ok']){const _0x12a748=_0x173c11[_0x333e81(0xac)]?_0x333e81(0xab):_0x333e81(0x9b),_0x7ed9e=_0x173c11['installedPath']?_0x333e81(0xa7)+_0x173c11[_0x333e81(0xa9)]:_0x333e81(0xb2);return console[_0x333e81(0x98)]('Rabetbase\x20Built-in\x20Skill\x20'+_0x173c11['skillVersion']+'\x20'+_0x12a748+_0x7ed9e),_0x173c11;}const _0x2f6ec6='[BUILTIN_SKILL_INSTALL_'+(_0x173c11[_0x333e81(0xae)]??_0x333e81(0x9a))+']\x20'+(_0x173c11[_0x333e81(0x9d)]??_0x333e81(0xa0))+'.\x20'+(_0x333e81(0xaa)+_0x173c11[_0x333e81(0xb0)]);if(_0x173c11[_0x333e81(0xae)]===_0x333e81(0x9c))throw new Error(_0x2f6ec6);return console[_0x333e81(0xa6)](_0x2f6ec6),_0x173c11;}
@@ -1 +1 @@
1
- (function(_0x4e78da,_0x2656a6){const _0x32137a=a267_0xe715,_0x54a71e=_0x4e78da();while(!![]){try{const _0x43ac1a=parseInt(_0x32137a(0x190))/0x1*(parseInt(_0x32137a(0x194))/0x2)+-parseInt(_0x32137a(0x196))/0x3*(parseInt(_0x32137a(0x18e))/0x4)+parseInt(_0x32137a(0x192))/0x5+-parseInt(_0x32137a(0x191))/0x6+-parseInt(_0x32137a(0x197))/0x7+-parseInt(_0x32137a(0x189))/0x8*(parseInt(_0x32137a(0x185))/0x9)+parseInt(_0x32137a(0x186))/0xa;if(_0x43ac1a===_0x2656a6)break;else _0x54a71e['push'](_0x54a71e['shift']());}catch(_0x11bbf8){_0x54a71e['push'](_0x54a71e['shift']());}}}(a267_0x2b50,0x8c4c9));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x2ec8f9,_0x436ceb,_0x49a4c1){const _0x54b493=a267_0xe715,_0x352326=normalizeText(_0x2ec8f9[_0x54b493(0x198)],DESCRIPTION_MAX_LENGTH),_0x3b9a54=_0x352326||normalizeText(defaultDescription(requireWriteRisk(_0x2ec8f9),_0x436ceb),DESCRIPTION_MAX_LENGTH);return{'operation':_0x436ceb,'risk':requireWriteRisk(_0x2ec8f9),'description':_0x3b9a54,..._0x49a4c1?{'signal':_0x49a4c1}:{}};}function requireWriteRisk(_0x1a602d){const _0x5f30a8=a267_0xe715;if(_0x1a602d[_0x5f30a8(0x193)]===_0x5f30a8(0x18a)||_0x1a602d[_0x5f30a8(0x193)]===_0x5f30a8(0x184))return _0x1a602d[_0x5f30a8(0x193)];throw new Error('Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.');}function a267_0x2b50(){const _0x5f0c38=['This\x20will\x20run\x20the\x20high-risk\x20write\x20','711160qzSZuN','This\x20will\x20run\x20the\x20write\x20','31MCYmhy','2669484TsEQXQ','3714820VKicJH','risk','4328CLipLa','.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','6GUTkLS','4943323elsehv','confirmationDescription','high-risk-write','3186QusNFM','13435160jAXpdQ','.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','string','1632iQgNpT','write','trim','replace'];a267_0x2b50=function(){return _0x5f0c38;};return a267_0x2b50();}function a267_0xe715(_0x83387,_0x554a4a){_0x83387=_0x83387-0x184;const _0x2b50df=a267_0x2b50();let _0xe7157d=_0x2b50df[_0x83387];return _0xe7157d;}function defaultDescription(_0xaffbc9,_0x13864a){const _0x298233=a267_0xe715;if(_0xaffbc9===_0x298233(0x184))return _0x298233(0x18d)+_0x13864a+_0x298233(0x195);return _0x298233(0x18f)+_0x13864a+_0x298233(0x187);}function normalizeText(_0x4eff6c,_0x2a82eb){const _0xd098a5=a267_0xe715;if(typeof _0x4eff6c!==_0xd098a5(0x188))return'';return _0x4eff6c[_0xd098a5(0x18c)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0xd098a5(0x18c)](/\s+/g,'\x20')[_0xd098a5(0x18b)]()['slice'](0x0,_0x2a82eb);}
1
+ (function(_0x5384f0,_0xc69752){const _0x396eb3=a274_0x5523,_0x4efb1b=_0x5384f0();while(!![]){try{const _0x246af9=-parseInt(_0x396eb3(0x98))/0x1*(parseInt(_0x396eb3(0xa0))/0x2)+-parseInt(_0x396eb3(0x91))/0x3+-parseInt(_0x396eb3(0x9e))/0x4*(parseInt(_0x396eb3(0x9b))/0x5)+-parseInt(_0x396eb3(0x93))/0x6*(parseInt(_0x396eb3(0x9d))/0x7)+parseInt(_0x396eb3(0xa3))/0x8+parseInt(_0x396eb3(0xa1))/0x9*(-parseInt(_0x396eb3(0xa2))/0xa)+parseInt(_0x396eb3(0x95))/0xb;if(_0x246af9===_0xc69752)break;else _0x4efb1b['push'](_0x4efb1b['shift']());}catch(_0x378ea5){_0x4efb1b['push'](_0x4efb1b['shift']());}}}(a274_0x393c,0xab25a));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x597635,_0xf30ca8,_0x15f7b4){const _0x128112=a274_0x5523,_0x13a9cc=normalizeText(_0x597635[_0x128112(0x9a)],DESCRIPTION_MAX_LENGTH),_0xd0c3e9=_0x13a9cc||normalizeText(defaultDescription(requireWriteRisk(_0x597635),_0xf30ca8),DESCRIPTION_MAX_LENGTH);return{'operation':_0xf30ca8,'risk':requireWriteRisk(_0x597635),'description':_0xd0c3e9,..._0x15f7b4?{'signal':_0x15f7b4}:{}};}function requireWriteRisk(_0xcbeb0c){const _0x3b2b76=a274_0x5523;if(_0xcbeb0c['risk']===_0x3b2b76(0x94)||_0xcbeb0c[_0x3b2b76(0x99)]===_0x3b2b76(0x97))return _0xcbeb0c[_0x3b2b76(0x99)];throw new Error(_0x3b2b76(0x9f));}function defaultDescription(_0x4a7e73,_0x2fccb3){const _0x1a3ffe=a274_0x5523;if(_0x4a7e73===_0x1a3ffe(0x97))return _0x1a3ffe(0x9c)+_0x2fccb3+_0x1a3ffe(0x90);return'This\x20will\x20run\x20the\x20write\x20'+_0x2fccb3+'.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.';}function normalizeText(_0x2b29b3,_0x1c6624){const _0x40985a=a274_0x5523;if(typeof _0x2b29b3!==_0x40985a(0x96))return'';return _0x2b29b3[_0x40985a(0x92)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x40985a(0x92)](/\s+/g,'\x20')['trim']()['slice'](0x0,_0x1c6624);}function a274_0x5523(_0x34b98f,_0x5af1c1){_0x34b98f=_0x34b98f-0x90;const _0x393cd4=a274_0x393c();let _0x55237a=_0x393cd4[_0x34b98f];return _0x55237a;}function a274_0x393c(){const _0x3b1e36=['high-risk-write','5001rgBihs','risk','confirmationDescription','11705MIcaNI','This\x20will\x20run\x20the\x20high-risk\x20write\x20','7hTtemn','1228NUWzRR','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','276vyIxWh','36wjsplV','74380CVXUBp','700808XEDwrV','.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','4186389WRKnYk','replace','1337346vpmcfH','write','40373828twhXaq','string'];a274_0x393c=function(){return _0x3b1e36;};return a274_0x393c();}
@@ -1 +1 @@
1
- (function(_0x2e38f6,_0x3ca84c){var _0x2c7c46=a268_0x2c09,_0x10c579=_0x2e38f6();while(!![]){try{var _0x9ff8d7=-parseInt(_0x2c7c46(0xc0))/0x1*(-parseInt(_0x2c7c46(0xc4))/0x2)+parseInt(_0x2c7c46(0xcc))/0x3+-parseInt(_0x2c7c46(0xbd))/0x4+parseInt(_0x2c7c46(0xcb))/0x5*(-parseInt(_0x2c7c46(0xc8))/0x6)+parseInt(_0x2c7c46(0xcd))/0x7*(parseInt(_0x2c7c46(0xc3))/0x8)+parseInt(_0x2c7c46(0xca))/0x9+-parseInt(_0x2c7c46(0xc1))/0xa*(parseInt(_0x2c7c46(0xbf))/0xb);if(_0x9ff8d7===_0x3ca84c)break;else _0x10c579['push'](_0x10c579['shift']());}catch(_0x1a6992){_0x10c579['push'](_0x10c579['shift']());}}}(a268_0x5055,0x65d15));function a268_0x2c09(_0x269e72,_0x355dc6){_0x269e72=_0x269e72-0xbd;var _0x5055c4=a268_0x5055();var _0x2c09a7=_0x5055c4[_0x269e72];return _0x2c09a7;}function a268_0x5055(){var _0x50b6e7=['4545642rZdRBk','rabetbase.write.completed','5562909rhXPCd','5uozHwE','1908012fOeqKZ','904988KVGpGs','join','1346884AsPaGE','high-risk-write','2574qNaEhe','418GmFRta','2610xCXwfH','command','16bBCutD','286mSqcRi','split','risk','write'];a268_0x5055=function(){return _0x50b6e7;};return a268_0x5055();}export function canonicalRabetbaseOperation(_0x183d27){var _0x2f68e5=a268_0x2c09;return[_0x183d27['service'],..._0x183d27[_0x2f68e5(0xc2)]['trim']()[_0x2f68e5(0xc5)](/\s+/)]['filter'](Boolean)[_0x2f68e5(0xce)]('.');}export function createRabetbaseWriteMetadata(_0xfab217,_0x91add,_0x5ac01f,_0x2a21fe){var _0xd3644b=a268_0x2c09;if(_0x2a21fe||_0x5ac01f['ok']!==!![]||_0xfab217['risk']!==_0xd3644b(0xc7)&&_0xfab217[_0xd3644b(0xc6)]!==_0xd3644b(0xbe))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0xd3644b(0xc9),'operation':_0x91add,'risk':_0xfab217['risk']}}};}
1
+ (function(_0x2c8146,_0x9a228){var _0x1c8ef5=a275_0x2d7a,_0x136d0e=_0x2c8146();while(!![]){try{var _0x187fba=parseInt(_0x1c8ef5(0x1cb))/0x1*(parseInt(_0x1c8ef5(0x1d5))/0x2)+-parseInt(_0x1c8ef5(0x1d1))/0x3*(parseInt(_0x1c8ef5(0x1d7))/0x4)+parseInt(_0x1c8ef5(0x1d3))/0x5+parseInt(_0x1c8ef5(0x1cc))/0x6*(parseInt(_0x1c8ef5(0x1ce))/0x7)+parseInt(_0x1c8ef5(0x1c8))/0x8*(-parseInt(_0x1c8ef5(0x1d0))/0x9)+-parseInt(_0x1c8ef5(0x1c7))/0xa+-parseInt(_0x1c8ef5(0x1cf))/0xb*(-parseInt(_0x1c8ef5(0x1ca))/0xc);if(_0x187fba===_0x9a228)break;else _0x136d0e['push'](_0x136d0e['shift']());}catch(_0x408d2d){_0x136d0e['push'](_0x136d0e['shift']());}}}(a275_0x1146,0x61548));export function canonicalRabetbaseOperation(_0x4a7e3a){var _0x339527=a275_0x2d7a;return[_0x4a7e3a[_0x339527(0x1c5)],..._0x4a7e3a[_0x339527(0x1d2)][_0x339527(0x1d6)]()[_0x339527(0x1c9)](/\s+/)][_0x339527(0x1cd)](Boolean)['join']('.');}function a275_0x1146(){var _0x34d916=['12YStDZZ','1614leDeuY','731274pbdDMQ','filter','14VXgeuU','4311428enajfn','414bkAeZq','3FeJIRp','command','2221725BKInfD','risk','322WczeXl','trim','63636IYqGrm','service','write','7586740lWfjEp','28984rXyyLk','split'];a275_0x1146=function(){return _0x34d916;};return a275_0x1146();}function a275_0x2d7a(_0x39c63d,_0x429d46){_0x39c63d=_0x39c63d-0x1c5;var _0x11461b=a275_0x1146();var _0x2d7a9b=_0x11461b[_0x39c63d];return _0x2d7a9b;}export function createRabetbaseWriteMetadata(_0x541a42,_0x59b8e1,_0x561192,_0xfa96ef){var _0x21343a=a275_0x2d7a;if(_0xfa96ef||_0x561192['ok']!==!![]||_0x541a42['risk']!==_0x21343a(0x1c6)&&_0x541a42['risk']!=='high-risk-write')return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':'rabetbase.write.completed','operation':_0x59b8e1,'risk':_0x541a42[_0x21343a(0x1d4)]}}};}
@@ -1 +1 @@
1
- (function(_0x414e93,_0x90b795){const _0x1a7730=a269_0x1c2a,_0x263805=_0x414e93();while(!![]){try{const _0x4938a4=-parseInt(_0x1a7730(0x137))/0x1+-parseInt(_0x1a7730(0x151))/0x2+parseInt(_0x1a7730(0x141))/0x3*(-parseInt(_0x1a7730(0x13a))/0x4)+-parseInt(_0x1a7730(0x14b))/0x5*(-parseInt(_0x1a7730(0x145))/0x6)+parseInt(_0x1a7730(0x138))/0x7+parseInt(_0x1a7730(0x13e))/0x8*(parseInt(_0x1a7730(0x156))/0x9)+-parseInt(_0x1a7730(0x144))/0xa*(-parseInt(_0x1a7730(0x14f))/0xb);if(_0x4938a4===_0x90b795)break;else _0x263805['push'](_0x263805['shift']());}catch(_0x2753d8){_0x263805['push'](_0x263805['shift']());}}}(a269_0x422c,0x46568));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';function a269_0x422c(){const _0x4de912=['545904auurYd','903315QBYHVk','riskLevel','212QTtXZm','execute','Rabetbase\x20invocation\x20aborted.','isNonInteractive','16TzOWFr','high-risk-write','presentation','9042FNktWv','aborted','reason','9361490EdPSIx','30ievyJx','data','present','yes','AbortError','signal','88430hpaggp','command','rawFlags','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','11VOhBxF','args','1069496Mipkme','message','confirmation','format','write','1686933TZQDIz','result','dry-run','definition','dryRun','confirm','risk','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.'];a269_0x422c=function(){return _0x4de912;};return a269_0x422c();}import{runSerialized}from'../runtime/queue.js';function a269_0x1c2a(_0x35977f,_0x27cf77){_0x35977f=_0x35977f-0x136;const _0x422c6e=a269_0x422c();let _0x1c2a0c=_0x422c6e[_0x35977f];return _0x1c2a0c;}import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x29addf,command:_0xd22858,risk:_0x219f00,dryRun:_0x210722}){const _0x55b28e=a269_0x1c2a;return JSON['stringify']({'ok':_0x29addf['ok'],'command':_0xd22858,'risk':_0x219f00,..._0x210722?{'dryRun':!![]}:{},..._0x29addf[_0x55b28e(0x146)]!==undefined?{'data':_0x29addf[_0x55b28e(0x146)]}:{},..._0x29addf[_0x55b28e(0x152)]?{'message':_0x29addf[_0x55b28e(0x152)]}:{}});}};export async function invokeRabetbase(_0x53549b,_0x1fc270){const _0x16cd7e=a269_0x1c2a;throwIfAborted(_0x1fc270['signal']);const _0x5a37c7=await resolveRabetbaseInvocation(_0x53549b),_0x2a8406=canonicalRabetbaseOperation(_0x5a37c7[_0x16cd7e(0x159)]);return await confirmWriteBeforeQueue(_0x5a37c7[_0x16cd7e(0x159)],_0x5a37c7[_0x16cd7e(0x14d)],_0x2a8406,_0x1fc270),runSerialized(async()=>{const _0x2c29b3=_0x16cd7e,_0x50cf52={};try{throwIfAborted(_0x1fc270[_0x2c29b3(0x14a)]);const _0xb1ae9b=buildConfigFromFlags(_0x5a37c7[_0x2c29b3(0x14d)]);await initGlobalEnvironment(_0xb1ae9b);const _0x5992cd=createPipelineEnv(_0xb1ae9b,{..._0x5a37c7[_0x2c29b3(0x14d)],'yes':_0x5a37c7['definition']['risk']===_0x2c29b3(0x13f)?!![]:_0x5a37c7[_0x2c29b3(0x14d)][_0x2c29b3(0x148)],'nonInteractive':!![]},_0x5a37c7[_0x2c29b3(0x150)]);_0x5992cd[_0x2c29b3(0x13d)]=!![],_0x5992cd[_0x2c29b3(0x139)]=_0x2c29b3(0x13f);const _0xfd3925=withAbortSignal(_0x5a37c7[_0x2c29b3(0x159)],_0x1fc270[_0x2c29b3(0x14a)]),_0x4ffc42=createRabetbaseRunnerAdapter({'formatOutput'(_0x164857,_0x2a02cc){const _0x577e47=_0x2c29b3;_0x50cf52[_0x577e47(0x157)]=_0x164857,_0x50cf52['command']=_0x2a02cc['command'],_0x50cf52[_0x577e47(0x15c)]=_0x2a02cc[_0x577e47(0x15c)],_0x50cf52[_0x577e47(0x154)]=_0x2a02cc[_0x577e47(0x154)],_0x50cf52[_0x577e47(0x15a)]=_0x2a02cc[_0x577e47(0x15a)]===!![];},async 'confirmHighRisk'(){const _0x19c193=_0x2c29b3;throw new Error(_0x19c193(0x136));}});await runCommand(_0xfd3925,_0x5992cd,_0x4ffc42);if(!_0x50cf52[_0x2c29b3(0x157)]||!_0x50cf52[_0x2c29b3(0x14c)]||!_0x50cf52[_0x2c29b3(0x15c)]||!_0x50cf52[_0x2c29b3(0x154)])throw new Error(_0x2c29b3(0x14e));const _0x2e8c41=_0x50cf52[_0x2c29b3(0x15a)]===!![],_0x4caaf7=_0x1fc270[_0x2c29b3(0x140)]??defaultPresentation,_0x1aa21c={'result':_0x50cf52[_0x2c29b3(0x157)],'command':_0x50cf52[_0x2c29b3(0x14c)],'operation':_0x2a8406,'risk':_0x50cf52[_0x2c29b3(0x15c)],'format':_0x50cf52[_0x2c29b3(0x154)],'dryRun':_0x2e8c41},_0x5f19c6=createRabetbaseWriteMetadata(_0x5a37c7['definition'],_0x2a8406,_0x50cf52['result'],_0x2e8c41);let _0x2a86af;try{_0x2a86af=await _0x4caaf7[_0x2c29b3(0x147)](_0x1aa21c);}catch(_0x2c4540){if(!_0x5f19c6||_0x4caaf7===defaultPresentation)throw _0x2c4540;_0x2a86af=await defaultPresentation[_0x2c29b3(0x147)](_0x1aa21c);}return{'operation':_0x2a8406,'risk':_0x50cf52[_0x2c29b3(0x15c)],'mode':_0x2e8c41?_0x2c29b3(0x158):_0x2c29b3(0x13b),'result':_0x50cf52['result'],'output':_0x2a86af,..._0x5f19c6?{'metadata':_0x5f19c6}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x266dda,_0x3cb005,_0x5ed74a,_0xa0856e){const _0x59a596=a269_0x1c2a;if(_0x3cb005[_0x59a596(0x15a)]===!![]||_0x266dda[_0x59a596(0x15c)]!==_0x59a596(0x155)&&_0x266dda[_0x59a596(0x15c)]!==_0x59a596(0x13f))return;await _0xa0856e[_0x59a596(0x153)][_0x59a596(0x15b)](buildRabetbaseConfirmationRequest(_0x266dda,_0x5ed74a,_0xa0856e[_0x59a596(0x14a)]));}function withAbortSignal(_0x588a2c,_0x5f305a){return{..._0x588a2c,async 'execute'(_0x18119d){return throwIfAborted(_0x5f305a),_0x588a2c['execute']({..._0x18119d,'signal':_0x5f305a});}};}function throwIfAborted(_0xc90ff6){const _0x586d57=a269_0x1c2a;if(_0xc90ff6?.[_0x586d57(0x142)])throw _0xc90ff6[_0x586d57(0x143)]instanceof Error?_0xc90ff6['reason']:new DOMException(_0x586d57(0x13c),_0x586d57(0x149));}
1
+ function a276_0x543b(){const _0xf70bc0=['stringify','write','37250ZrCgju','args','24962crKumA','message','result','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','855RBYFcA','1631410dxocQK','rawFlags','execute','507216vbnbxk','high-risk-write','isNonInteractive','format','dryRun','presentation','reason','data','1272VPmpra','dry-run','risk','14780cFgluj','signal','command','riskLevel','present','633nmHmlH','AbortError','confirm','confirmation','aborted','5672WagxLg','22386782egTBRv','definition','14nySZZv'];a276_0x543b=function(){return _0xf70bc0;};return a276_0x543b();}(function(_0x38e375,_0x35e53c){const _0x430712=a276_0x4562,_0x3fab37=_0x38e375();while(!![]){try{const _0x50a1fe=parseInt(_0x430712(0x1b0))/0x1+-parseInt(_0x430712(0x1b5))/0x2+parseInt(_0x430712(0x1a3))/0x3*(parseInt(_0x430712(0x1a8))/0x4)+parseInt(_0x430712(0x1c3))/0x5*(-parseInt(_0x430712(0x1c0))/0x6)+-parseInt(_0x430712(0x1ab))/0x7*(parseInt(_0x430712(0x1b8))/0x8)+parseInt(_0x430712(0x1b4))/0x9*(-parseInt(_0x430712(0x1ae))/0xa)+parseInt(_0x430712(0x1a9))/0xb;if(_0x50a1fe===_0x35e53c)break;else _0x3fab37['push'](_0x3fab37['shift']());}catch(_0x32e78a){_0x3fab37['push'](_0x3fab37['shift']());}}}(a276_0x543b,0x6a82a));import{buildConfigFromFlags,initGlobalEnvironment,isRoutingRecoveryService}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';function a276_0x4562(_0x18a7cb,_0x5ddf48){_0x18a7cb=_0x18a7cb-0x19f;const _0x543b9c=a276_0x543b();let _0x4562cd=_0x543b9c[_0x18a7cb];return _0x4562cd;}import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x25c0d5,command:_0x384b4f,risk:_0xa06907,dryRun:_0x46f42f}){const _0x26cfa9=a276_0x4562;return JSON[_0x26cfa9(0x1ac)]({'ok':_0x25c0d5['ok'],'command':_0x384b4f,'risk':_0xa06907,..._0x46f42f?{'dryRun':!![]}:{},..._0x25c0d5[_0x26cfa9(0x1bf)]!==undefined?{'data':_0x25c0d5[_0x26cfa9(0x1bf)]}:{},..._0x25c0d5[_0x26cfa9(0x1b1)]?{'message':_0x25c0d5[_0x26cfa9(0x1b1)]}:{}});}};export async function invokeRabetbase(_0x3bdf22,_0x260d62){const _0x2b6728=a276_0x4562;throwIfAborted(_0x260d62['signal']);const _0x5b976d=await resolveRabetbaseInvocation(_0x3bdf22),_0x5e0e6e=canonicalRabetbaseOperation(_0x5b976d['definition']);return await confirmWriteBeforeQueue(_0x5b976d[_0x2b6728(0x1aa)],_0x5b976d[_0x2b6728(0x1b6)],_0x5e0e6e,_0x260d62),runSerialized(async()=>{const _0x39248c=_0x2b6728,_0x504bc4={};try{throwIfAborted(_0x260d62[_0x39248c(0x19f)]);const _0x51aa11=buildConfigFromFlags(_0x5b976d[_0x39248c(0x1b6)]);!isRoutingRecoveryService(_0x5b976d[_0x39248c(0x1aa)]['service'])&&await initGlobalEnvironment(_0x51aa11);const _0x215da9=createPipelineEnv(_0x51aa11,{..._0x5b976d['rawFlags'],'yes':_0x5b976d[_0x39248c(0x1aa)][_0x39248c(0x1c2)]===_0x39248c(0x1b9)?!![]:_0x5b976d[_0x39248c(0x1b6)]['yes'],'nonInteractive':!![]},_0x5b976d[_0x39248c(0x1af)]);_0x215da9[_0x39248c(0x1ba)]=!![],_0x215da9[_0x39248c(0x1a1)]=_0x39248c(0x1b9);const _0x5c2def=withAbortSignal(_0x5b976d[_0x39248c(0x1aa)],_0x260d62[_0x39248c(0x19f)]),_0x763bb8=createRabetbaseRunnerAdapter({'formatOutput'(_0x2271a5,_0x2d7e04){const _0x26eeca=_0x39248c;_0x504bc4[_0x26eeca(0x1b2)]=_0x2271a5,_0x504bc4[_0x26eeca(0x1a0)]=_0x2d7e04[_0x26eeca(0x1a0)],_0x504bc4[_0x26eeca(0x1c2)]=_0x2d7e04[_0x26eeca(0x1c2)],_0x504bc4[_0x26eeca(0x1bb)]=_0x2d7e04[_0x26eeca(0x1bb)],_0x504bc4[_0x26eeca(0x1bc)]=_0x2d7e04['dryRun']===!![];},async 'confirmHighRisk'(){const _0x1405aa=_0x39248c;throw new Error(_0x1405aa(0x1b3));}});await runCommand(_0x5c2def,_0x215da9,_0x763bb8);if(!_0x504bc4[_0x39248c(0x1b2)]||!_0x504bc4[_0x39248c(0x1a0)]||!_0x504bc4['risk']||!_0x504bc4[_0x39248c(0x1bb)])throw new Error('Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.');const _0x3df783=_0x504bc4['dryRun']===!![],_0x5236a3=_0x260d62[_0x39248c(0x1bd)]??defaultPresentation,_0xaaf8c8={'result':_0x504bc4[_0x39248c(0x1b2)],'command':_0x504bc4[_0x39248c(0x1a0)],'operation':_0x5e0e6e,'risk':_0x504bc4[_0x39248c(0x1c2)],'format':_0x504bc4['format'],'dryRun':_0x3df783},_0x54d3c1=createRabetbaseWriteMetadata(_0x5b976d[_0x39248c(0x1aa)],_0x5e0e6e,_0x504bc4[_0x39248c(0x1b2)],_0x3df783);let _0x4fede5;try{_0x4fede5=await _0x5236a3['present'](_0xaaf8c8);}catch(_0x163c4b){if(!_0x54d3c1||_0x5236a3===defaultPresentation)throw _0x163c4b;_0x4fede5=await defaultPresentation[_0x39248c(0x1a2)](_0xaaf8c8);}return{'operation':_0x5e0e6e,'risk':_0x504bc4[_0x39248c(0x1c2)],'mode':_0x3df783?_0x39248c(0x1c1):_0x39248c(0x1b7),'result':_0x504bc4[_0x39248c(0x1b2)],'output':_0x4fede5,..._0x54d3c1?{'metadata':_0x54d3c1}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x173b95,_0x5c10fd,_0x12b406,_0x441cea){const _0x5c9ce9=a276_0x4562;if(_0x5c10fd['dryRun']===!![]||_0x173b95['risk']!==_0x5c9ce9(0x1ad)&&_0x173b95[_0x5c9ce9(0x1c2)]!==_0x5c9ce9(0x1b9))return;await _0x441cea[_0x5c9ce9(0x1a6)][_0x5c9ce9(0x1a5)](buildRabetbaseConfirmationRequest(_0x173b95,_0x12b406,_0x441cea[_0x5c9ce9(0x19f)]));}function withAbortSignal(_0x503155,_0x2818d3){return{..._0x503155,async 'execute'(_0x330481){return throwIfAborted(_0x2818d3),_0x503155['execute'](_0x330481);}};}function throwIfAborted(_0x14342f){const _0x32d5ce=a276_0x4562;if(_0x14342f?.[_0x32d5ce(0x1a7)])throw _0x14342f['reason']instanceof Error?_0x14342f[_0x32d5ce(0x1be)]:new DOMException('Rabetbase\x20invocation\x20aborted.',_0x32d5ce(0x1a4));}
@@ -1 +1 @@
1
- function a270_0x465f(){const _0x7a84c9=['catch','6cqJAoP','27859260Lmcctc','5934830JhQCGY','14536njTUca','1464zINNjp','1023495NZZjnj','resolve','1356586icHtLm','114544UKXSjJ','10HmOFRD','4545ueObyH','2763vWnCgd'];a270_0x465f=function(){return _0x7a84c9;};return a270_0x465f();}function a270_0x3d1f(_0x5f34a7,_0x11cbf8){_0x5f34a7=_0x5f34a7-0x15c;const _0x465f6c=a270_0x465f();let _0x3d1f29=_0x465f6c[_0x5f34a7];return _0x3d1f29;}const a270_0x4bf627=a270_0x3d1f;(function(_0x358e4d,_0xe8bdbc){const _0x5b0b2b=a270_0x3d1f,_0x4a6921=_0x358e4d();while(!![]){try{const _0x4ec925=parseInt(_0x5b0b2b(0x162))/0x1*(-parseInt(_0x5b0b2b(0x161))/0x2)+-parseInt(_0x5b0b2b(0x15e))/0x3+-parseInt(_0x5b0b2b(0x15d))/0x4*(parseInt(_0x5b0b2b(0x163))/0x5)+parseInt(_0x5b0b2b(0x166))/0x6*(parseInt(_0x5b0b2b(0x160))/0x7)+parseInt(_0x5b0b2b(0x15c))/0x8*(-parseInt(_0x5b0b2b(0x164))/0x9)+-parseInt(_0x5b0b2b(0x168))/0xa+parseInt(_0x5b0b2b(0x167))/0xb;if(_0x4ec925===_0xe8bdbc)break;else _0x4a6921['push'](_0x4a6921['shift']());}catch(_0x17cd38){_0x4a6921['push'](_0x4a6921['shift']());}}}(a270_0x465f,0x50381));let tail=Promise[a270_0x4bf627(0x15f)]();export async function runSerialized(_0x4a4d8d){const _0x2515be=a270_0x4bf627,_0x235977=tail;let _0x994b3b;tail=new Promise(_0x152c6c=>{_0x994b3b=_0x152c6c;}),await _0x235977[_0x2515be(0x165)](()=>undefined);try{return await _0x4a4d8d();}finally{_0x994b3b();}}
1
+ const a277_0x49de64=a277_0xa29b;function a277_0xa29b(_0x2af303,_0xf04129){_0x2af303=_0x2af303-0xa4;const _0x46d42f=a277_0x46d4();let _0xa29b30=_0x46d42f[_0x2af303];return _0xa29b30;}(function(_0x28e935,_0x5c4a88){const _0x366b00=a277_0xa29b,_0x2df0a2=_0x28e935();while(!![]){try{const _0x3b3a9b=-parseInt(_0x366b00(0xa7))/0x1*(-parseInt(_0x366b00(0xa4))/0x2)+parseInt(_0x366b00(0xab))/0x3*(parseInt(_0x366b00(0xa5))/0x4)+-parseInt(_0x366b00(0xa9))/0x5*(parseInt(_0x366b00(0xa6))/0x6)+-parseInt(_0x366b00(0xad))/0x7*(parseInt(_0x366b00(0xac))/0x8)+-parseInt(_0x366b00(0xaa))/0x9*(-parseInt(_0x366b00(0xae))/0xa)+parseInt(_0x366b00(0xaf))/0xb+-parseInt(_0x366b00(0xa8))/0xc;if(_0x3b3a9b===_0x5c4a88)break;else _0x2df0a2['push'](_0x2df0a2['shift']());}catch(_0x51015d){_0x2df0a2['push'](_0x2df0a2['shift']());}}}(a277_0x46d4,0xaf3f3));function a277_0x46d4(){const _0x33f173=['12tfsDaq','281054yKCaZp','12828720TpDfpU','1237180uFUyep','15237VuTyEN','159uVVjch','8752GALiBE','5803AJtRjH','2230rtbyxX','3478508gCANnI','resolve','8aglmxu','103448CSTjWU'];a277_0x46d4=function(){return _0x33f173;};return a277_0x46d4();}let tail=Promise[a277_0x49de64(0xb0)]();export async function runSerialized(_0x318069){const _0x32a10e=tail;let _0x9d58f9;tail=new Promise(_0x35684e=>{_0x9d58f9=_0x35684e;}),await _0x32a10e['catch'](()=>undefined);try{return await _0x318069();}finally{_0x9d58f9();}}
@@ -1 +1 @@
1
- (function(_0x530ed1,_0x44f5e0){const _0x171f71=a271_0x253a,_0x1eac82=_0x530ed1();while(!![]){try{const _0x150d42=parseInt(_0x171f71(0x128))/0x1*(parseInt(_0x171f71(0x119))/0x2)+-parseInt(_0x171f71(0x126))/0x3*(-parseInt(_0x171f71(0x11a))/0x4)+-parseInt(_0x171f71(0x12a))/0x5+parseInt(_0x171f71(0x124))/0x6*(-parseInt(_0x171f71(0x127))/0x7)+parseInt(_0x171f71(0x12c))/0x8+parseInt(_0x171f71(0x11b))/0x9+-parseInt(_0x171f71(0x118))/0xa;if(_0x150d42===_0x44f5e0)break;else _0x1eac82['push'](_0x1eac82['shift']());}catch(_0x1a2085){_0x1eac82['push'](_0x1eac82['shift']());}}}(a271_0x3d66,0x3dc55));import a271_0x2a89d3 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a271_0x3d66(){const _0x5d43c7=['slice','wildcardDef','84RdnUQx','validation','1101xBIMvD','250845xiRLNP','59533inAbPL','unknownCommand','364335oUuKZw','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','3678088CfTYXq','message','input','2492150TKKbLI','6hcReXx','204nFAKqw','3777372rDBkqH','flags','defaultCommand','run','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','hint','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.'];a271_0x3d66=function(){return _0x5d43c7;};return a271_0x3d66();}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a271_0x253a(_0x13aa56,_0x4acd65){_0x13aa56=_0x13aa56-0x116;const _0x3d66ca=a271_0x3d66();let _0x253ad6=_0x3d66ca[_0x13aa56];return _0x253ad6;}export async function resolveRabetbaseInvocation(_0x1d5ec8){const _0x54c1a5=a271_0x253a,_0x572f8f=a271_0x2a89d3('',{'importMeta':import.meta,'argv':[..._0x1d5ec8],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x1fff4f=[..._0x572f8f[_0x54c1a5(0x117)]],_0x154f09=_0x572f8f[_0x54c1a5(0x11c)],_0x29a5c0=_0x1fff4f[0x0];if(!_0x29a5c0)throw CliErrors['validation'](_0x54c1a5(0x121));const _0x3b3e93=resolveRemovedCommand(_0x29a5c0,_0x1fff4f[0x1]);if(_0x3b3e93)throw CliErrors['validation'](_0x3b3e93[_0x54c1a5(0x116)],_0x3b3e93[_0x54c1a5(0x120)]);if(_0x29a5c0===_0x54c1a5(0x11e))throw CliErrors['validation']('`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.',_0x54c1a5(0x11f));if(!isKnownService(_0x29a5c0))throw CliErrors[_0x54c1a5(0x129)](_0x1fff4f['join']('\x20'));const _0x10c069=getServiceEntry(_0x29a5c0),_0x1ba777=_0x1fff4f[0x1],_0x28f27c=_0x1ba777||_0x10c069[_0x54c1a5(0x11d)];if(!_0x28f27c){if(_0x10c069[_0x54c1a5(0x123)])return{'definition':_0x10c069[_0x54c1a5(0x123)],'rawFlags':_0x154f09,'args':[]};throw CliErrors[_0x54c1a5(0x125)](_0x54c1a5(0x12b)+_0x29a5c0+'\x22.');}const _0x2a5f43=findDefinition(_0x29a5c0,_0x28f27c);if(_0x2a5f43)return{'definition':_0x2a5f43,'rawFlags':_0x154f09,'args':_0x1fff4f[_0x54c1a5(0x122)](0x2)};if(_0x10c069[_0x54c1a5(0x123)])return{'definition':_0x10c069[_0x54c1a5(0x123)],'rawFlags':_0x154f09,'args':[_0x28f27c,..._0x1fff4f['slice'](0x2)]};throw CliErrors['unknownCommand'](_0x29a5c0+'\x20'+_0x28f27c);}
1
+ (function(_0xa92c49,_0x4fbc8e){const _0x3b8451=a278_0x2024,_0x1ece20=_0xa92c49();while(!![]){try{const _0x3f4686=-parseInt(_0x3b8451(0x1a0))/0x1*(-parseInt(_0x3b8451(0x1a5))/0x2)+parseInt(_0x3b8451(0x1a7))/0x3*(-parseInt(_0x3b8451(0x19e))/0x4)+parseInt(_0x3b8451(0x199))/0x5*(-parseInt(_0x3b8451(0x1a6))/0x6)+parseInt(_0x3b8451(0x1a4))/0x7+parseInt(_0x3b8451(0x1a8))/0x8+-parseInt(_0x3b8451(0x19b))/0x9*(parseInt(_0x3b8451(0x19a))/0xa)+-parseInt(_0x3b8451(0x1a2))/0xb;if(_0x3f4686===_0x4fbc8e)break;else _0x1ece20['push'](_0x1ece20['shift']());}catch(_0x5a7965){_0x1ece20['push'](_0x1ece20['shift']());}}}(a278_0x4ccd,0x1f400));import a278_0x5ebe8f from'meow';function a278_0x2024(_0x42ffe0,_0x1efedd){_0x42ffe0=_0x42ffe0-0x196;const _0x4ccd46=a278_0x4ccd();let _0x202416=_0x4ccd46[_0x42ffe0];return _0x202416;}import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';function a278_0x4ccd(){const _0x23bb1d=['flags','1543073VLGSAe','204598iwFSPc','6iGTENp','23889uWFeHs','1838088iHcSLw','defaultCommand','run','input','unknownCommand','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','wildcardDef','slice','1075315cGzHjy','3080UndHUd','1818NfToAG','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','join','8NmoDSv','validation','2PkIKza','message','2569523zGjENG'];a278_0x4ccd=function(){return _0x23bb1d;};return a278_0x4ccd();}import{CliErrors}from'../errors.js';export async function resolveRabetbaseInvocation(_0x13ca05){const _0x5d3b50=a278_0x2024,_0x35a152=a278_0x5ebe8f('',{'importMeta':import.meta,'argv':[..._0x13ca05],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0xc0af3d=[..._0x35a152[_0x5d3b50(0x1ab)]],_0x263983=_0x35a152[_0x5d3b50(0x1a3)],_0x6b1cbe=_0xc0af3d[0x0];if(!_0x6b1cbe)throw CliErrors[_0x5d3b50(0x19f)](_0x5d3b50(0x19c));const _0xc675db=resolveRemovedCommand(_0x6b1cbe,_0xc0af3d[0x1]);if(_0xc675db)throw CliErrors[_0x5d3b50(0x19f)](_0xc675db[_0x5d3b50(0x1a1)],_0xc675db['hint']);if(_0x6b1cbe===_0x5d3b50(0x1aa))throw CliErrors[_0x5d3b50(0x19f)](_0x5d3b50(0x196),_0x5d3b50(0x1ad));if(!isKnownService(_0x6b1cbe))throw CliErrors['unknownCommand'](_0xc0af3d[_0x5d3b50(0x19d)]('\x20'));const _0x2e5142=getServiceEntry(_0x6b1cbe),_0x16b95e=_0xc0af3d[0x1],_0x4b00ec=_0x16b95e||_0x2e5142[_0x5d3b50(0x1a9)];if(!_0x4b00ec){if(_0x2e5142[_0x5d3b50(0x197)])return{'definition':_0x2e5142[_0x5d3b50(0x197)],'rawFlags':_0x263983,'args':[]};throw CliErrors[_0x5d3b50(0x19f)]('Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x6b1cbe+'\x22.');}const _0x18d449=findDefinition(_0x6b1cbe,_0x4b00ec);if(_0x18d449)return{'definition':_0x18d449,'rawFlags':_0x263983,'args':_0xc0af3d['slice'](0x2)};if(_0x2e5142[_0x5d3b50(0x197)])return{'definition':_0x2e5142[_0x5d3b50(0x197)],'rawFlags':_0x263983,'args':[_0x4b00ec,..._0xc0af3d[_0x5d3b50(0x198)](0x2)]};throw CliErrors[_0x5d3b50(0x1ac)](_0x6b1cbe+'\x20'+_0x4b00ec);}
@@ -1 +1 @@
1
- const a273_0xae0b7b=a273_0x5929;(function(_0x1319ab,_0x412ca4){const _0x3b8b19=a273_0x5929,_0x1486b5=_0x1319ab();while(!![]){try{const _0x1d78eb=parseInt(_0x3b8b19(0x1d9))/0x1+parseInt(_0x3b8b19(0x1c6))/0x2*(-parseInt(_0x3b8b19(0x1dd))/0x3)+-parseInt(_0x3b8b19(0x1c7))/0x4*(parseInt(_0x3b8b19(0x1ad))/0x5)+parseInt(_0x3b8b19(0x1a3))/0x6+-parseInt(_0x3b8b19(0x1b4))/0x7+-parseInt(_0x3b8b19(0x1bf))/0x8+parseInt(_0x3b8b19(0x1d5))/0x9;if(_0x1d78eb===_0x412ca4)break;else _0x1486b5['push'](_0x1486b5['shift']());}catch(_0x4438b4){_0x1486b5['push'](_0x1486b5['shift']());}}}(a273_0x1538,0x7f935));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND='rabetbase\x20cli-skill\x20install',SKILL_NAME=a273_0xae0b7b(0x1c2);function a273_0x5929(_0x29cf5a,_0x111e8e){_0x29cf5a=_0x29cf5a-0x1a0;const _0x1538e6=a273_0x1538();let _0x592987=_0x1538e6[_0x29cf5a];return _0x592987;}function frontmatterValue(_0x3f7461,_0x59c3a9){const _0x42c0f5=a273_0xae0b7b;return _0x3f7461[_0x42c0f5(0x1ac)](new RegExp('^'+_0x59c3a9+_0x42c0f5(0x1ae),'m'))?.[0x1]?.[_0x42c0f5(0x1be)]()??'';}function listFiles(_0xfffea9,_0x4b6d2c=_0xfffea9){return readdirSync(_0x4b6d2c,{'withFileTypes':!![]})['flatMap'](_0x4bbb4a=>{const _0x23b9ff=a273_0x5929,_0x4a0e41=join(_0x4b6d2c,_0x4bbb4a['name']),_0x5ec7d9=lstatSync(_0x4a0e41);if(_0x5ec7d9[_0x23b9ff(0x1a2)]())throw new Error(_0x23b9ff(0x1a5)+_0x4a0e41);if(_0x5ec7d9[_0x23b9ff(0x1d0)]())return listFiles(_0xfffea9,_0x4a0e41);if(!_0x5ec7d9[_0x23b9ff(0x1b9)]())throw new Error(_0x23b9ff(0x1d6)+_0x4a0e41);return[relative(_0xfffea9,_0x4a0e41)[_0x23b9ff(0x1cb)](sep)[_0x23b9ff(0x1d8)]('/')];})['sort']((_0x5208f7,_0x363570)=>_0x5208f7<_0x363570?-0x1:_0x5208f7>_0x363570?0x1:0x0);}function digestFiles(_0x1ab0cc,_0x37e858){const _0x49dba7=a273_0xae0b7b,_0x5991a8=createHash(_0x49dba7(0x1cf));for(const _0x2c4b3a of _0x37e858){if(_0x2c4b3a[_0x49dba7(0x1da)]('/')||_0x2c4b3a[_0x49dba7(0x1cb)]('/')[_0x49dba7(0x1aa)]('..')||_0x2c4b3a[_0x49dba7(0x1aa)]('\x5c'))throw new Error(_0x49dba7(0x1c1)+_0x2c4b3a);_0x5991a8[_0x49dba7(0x1dc)](_0x2c4b3a),_0x5991a8[_0x49dba7(0x1dc)]('\x00'),_0x5991a8[_0x49dba7(0x1dc)](readFileSync(join(_0x1ab0cc,..._0x2c4b3a[_0x49dba7(0x1cb)]('/')))),_0x5991a8[_0x49dba7(0x1dc)]('\x00');}return _0x5991a8[_0x49dba7(0x1c8)](_0x49dba7(0x1a7));}function sameFiles(_0x4d14f5,_0x4a9354){const _0x1334b9=a273_0xae0b7b;return _0x4d14f5[_0x1334b9(0x1b1)]===_0x4a9354[_0x1334b9(0x1b1)]&&_0x4d14f5[_0x1334b9(0x1ba)]((_0x152266,_0x1fc322)=>_0x152266===_0x4a9354[_0x1fc322]);}function readSource(_0x53ca0f){const _0x4d801c=a273_0xae0b7b,_0x273be8=JSON[_0x4d801c(0x1d1)](readFileSync(join(_0x53ca0f,_0x4d801c(0x1b7)),_0x4d801c(0x1b3))),_0x7384ec=JSON[_0x4d801c(0x1d1)](readFileSync(join(_0x53ca0f,_0x4d801c(0x1c9),_0x4d801c(0x1ca)),'utf8')),_0x10f271=join(_0x53ca0f,'skills',SKILL_NAME),_0x9da857=frontmatterValue(readFileSync(join(_0x10f271,_0x4d801c(0x1ce)),_0x4d801c(0x1b3)),_0x4d801c(0x1a8)),_0x77eb22=listFiles(_0x10f271);if(_0x7384ec[_0x4d801c(0x1db)]!==0x1||_0x7384ec['name']!==SKILL_NAME||!_0x273be8[_0x4d801c(0x1a8)]||_0x7384ec['packageVersion']!==_0x273be8[_0x4d801c(0x1a8)]||_0x7384ec[_0x4d801c(0x1d3)]!==_0x273be8[_0x4d801c(0x1a8)]||_0x9da857!==_0x273be8[_0x4d801c(0x1a8)]||!sameFiles(_0x77eb22,_0x7384ec[_0x4d801c(0x1a0)])||digestFiles(_0x10f271,_0x77eb22)!==_0x7384ec['digest'])throw new Error('Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest');return{'packageVersion':_0x273be8['version'],'skillVersion':_0x9da857,'root':_0x10f271,'manifest':_0x7384ec};}function installedSkillPath(_0x54caa6){const _0x4728f5=a273_0xae0b7b,_0x338edb=resolveInstalledSkill(SKILL_NAME,{'home':_0x54caa6});if(_0x338edb[_0x4728f5(0x1b0)]===_0x4728f5(0x1c0))return{'state':_0x4728f5(0x1c0),'path':dirname(_0x338edb[_0x4728f5(0x1c5)])};if(_0x338edb[_0x4728f5(0x1b0)]===_0x4728f5(0x1a9))return{'state':_0x4728f5(0x1cd)};return{'state':_0x4728f5(0x1c3),'reason':_0x338edb[_0x4728f5(0x1af)]};}export function inspectInstalledBuiltinSkillVersion(_0x5d6b86,_0x19dc6e={}){const _0x26d48d=a273_0xae0b7b,_0x426faf=installedSkillPath(_0x19dc6e['home']??homedir());if(_0x426faf[_0x26d48d(0x1b0)]===_0x26d48d(0x1cd))return{'state':_0x26d48d(0x1cd),'expectedVersion':_0x5d6b86,'repairCommand':REPAIR_COMMAND};if(_0x426faf[_0x26d48d(0x1b0)]===_0x26d48d(0x1c3))return{'state':_0x26d48d(0x1c3),'expectedVersion':_0x5d6b86,'reason':_0x426faf['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x39ce68=frontmatterValue(readFileSync(join(_0x426faf[_0x26d48d(0x1c5)],_0x26d48d(0x1ce)),_0x26d48d(0x1b3)),_0x26d48d(0x1a8));return{'state':_0x39ce68===_0x5d6b86?_0x26d48d(0x1a4):'version_mismatch','expectedVersion':_0x5d6b86,'skillVersion':_0x39ce68,'installedPath':_0x426faf['path'],'repairCommand':REPAIR_COMMAND};}catch(_0x1f6cad){return{'state':_0x26d48d(0x1c3),'expectedVersion':_0x5d6b86,'installedPath':_0x426faf[_0x26d48d(0x1c5)],'reason':_0x1f6cad instanceof Error?_0x1f6cad['message']:String(_0x1f6cad),'repairCommand':REPAIR_COMMAND};}}function a273_0x1538(){const _0x479293=['current','Symbolic\x20link\x20is\x20not\x20allowed:\x20','SOURCE_INVALID','hex','version','absent','includes','stdio','match','5SAMwvM',':\x5cs*(.+)$','reason','state','length','INSTALL_FAILED','utf8','3361225sbGsGQ','status','version_mismatch','package.json','root','isFile','every','unknown','content_mismatch','error','trim','7486496PNjKrA','present','Unsafe\x20manifest\x20path:\x20','rabetbase','unverifiable','installedPath','path','300710XIDTSj','3003376FEWXxs','digest','skills','rabetbase.manifest.json','split','message','missing','SKILL.md','sha256','isDirectory','parse','pipe','skillVersion','skipped','19950894KsczzG','Unsupported\x20Skill\x20entry:\x20','Installed\x20Skill\x20state\x20is\x20','join','973909dNiKSf','startsWith','schemaVersion','update','15vRQIbU','packageVersion','files','home','isSymbolicLink','1502880WnbcTW'];a273_0x1538=function(){return _0x479293;};return a273_0x1538();}export function inspectBuiltinSkill(_0x5d9d3e={}){const _0x432f29=a273_0xae0b7b,_0x20d7f5=_0x5d9d3e['packageRoot']??DEFAULT_PACKAGE_ROOT;let _0x1621cb;try{_0x1621cb=readSource(_0x20d7f5);}catch(_0x3fbd19){return{'state':_0x432f29(0x1c3),'packageVersion':_0x432f29(0x1bb),'reason':_0x3fbd19 instanceof Error?_0x3fbd19[_0x432f29(0x1cc)]:String(_0x3fbd19),'repairCommand':REPAIR_COMMAND};}const _0x514679=installedSkillPath(_0x5d9d3e[_0x432f29(0x1a1)]??homedir());if(_0x514679[_0x432f29(0x1b0)]===_0x432f29(0x1cd))return{'state':_0x432f29(0x1cd),'packageVersion':_0x1621cb[_0x432f29(0x1de)],'repairCommand':REPAIR_COMMAND};if(_0x514679['state']===_0x432f29(0x1c3))return{'state':_0x432f29(0x1c3),'packageVersion':_0x1621cb[_0x432f29(0x1de)],'reason':_0x514679[_0x432f29(0x1af)],'repairCommand':REPAIR_COMMAND};try{const _0xa1aa77=frontmatterValue(readFileSync(join(_0x514679[_0x432f29(0x1c5)],_0x432f29(0x1ce)),_0x432f29(0x1b3)),_0x432f29(0x1a8));if(_0xa1aa77!==_0x1621cb[_0x432f29(0x1d3)])return{'state':_0x432f29(0x1b6),'packageVersion':_0x1621cb[_0x432f29(0x1de)],'skillVersion':_0xa1aa77,'installedPath':_0x514679[_0x432f29(0x1c5)],'repairCommand':REPAIR_COMMAND};const _0x2609e0=listFiles(_0x514679['path']),_0x2c9b43=digestFiles(_0x514679[_0x432f29(0x1c5)],_0x2609e0);return{'state':sameFiles(_0x2609e0,_0x1621cb['manifest'][_0x432f29(0x1a0)])&&_0x2c9b43===_0x1621cb['manifest'][_0x432f29(0x1c8)]?'current':_0x432f29(0x1bc),'packageVersion':_0x1621cb[_0x432f29(0x1de)],'skillVersion':_0xa1aa77,'installedPath':_0x514679[_0x432f29(0x1c5)],'digest':_0x2c9b43,'repairCommand':REPAIR_COMMAND};}catch(_0x35739c){return{'state':_0x432f29(0x1c3),'packageVersion':_0x1621cb[_0x432f29(0x1de)],'installedPath':_0x514679[_0x432f29(0x1c5)],'reason':_0x35739c instanceof Error?_0x35739c[_0x432f29(0x1cc)]:String(_0x35739c),'repairCommand':REPAIR_COMMAND};}}function failure(_0xf052c9,_0x438094,_0x12b958,_0x2c6503){const _0x56476f=a273_0xae0b7b;return{'ok':![],'code':_0xf052c9,'packageVersion':_0x438094[_0x56476f(0x1de)],'skillVersion':_0x438094[_0x56476f(0x1d3)],'installedPath':_0x2c6503,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x12b958 instanceof Error?_0x12b958[_0x56476f(0x1cc)]:String(_0x12b958)};}export function installBuiltinSkill(_0x1425a0={}){const _0x193ab0=a273_0xae0b7b,_0x3c2ca8=_0x1425a0['packageRoot']??DEFAULT_PACKAGE_ROOT,_0x33ab1d=_0x1425a0[_0x193ab0(0x1a1)]??homedir();let _0x3f81fc;try{_0x3f81fc=readSource(_0x3c2ca8);}catch(_0x4f1a94){return failure(_0x193ab0(0x1a6),{'packageVersion':_0x193ab0(0x1bb),'skillVersion':'unknown'},_0x4f1a94);}const _0x11c29b=inspectBuiltinSkill({'packageRoot':_0x3c2ca8,'home':_0x33ab1d}),_0x463af9=runNpxSkillsAddGlobal(_0x3c2ca8,_0x3f81fc[_0x193ab0(0x1b8)],{'stdio':_0x1425a0[_0x193ab0(0x1ab)]??_0x193ab0(0x1d2),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x33ab1d}});if(_0x463af9[_0x193ab0(0x1d4)])return{'ok':!![],'packageVersion':_0x3f81fc[_0x193ab0(0x1de)],'skillVersion':_0x3f81fc[_0x193ab0(0x1d3)],'installedPath':_0x11c29b[_0x193ab0(0x1c4)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x463af9['ok'])return failure(_0x193ab0(0x1b2),_0x3f81fc,_0x463af9[_0x193ab0(0x1bd)]??'skills@latest\x20exited\x20'+_0x463af9[_0x193ab0(0x1b5)]);const _0x2d2337=inspectBuiltinSkill({'packageRoot':_0x3c2ca8,'home':_0x33ab1d});if(_0x2d2337['state']!=='current')return failure('VERIFY_FAILED',_0x3f81fc,_0x2d2337[_0x193ab0(0x1af)]??_0x193ab0(0x1d7)+_0x2d2337[_0x193ab0(0x1b0)],_0x2d2337['installedPath']);return{'ok':!![],'packageVersion':_0x3f81fc['packageVersion'],'skillVersion':_0x3f81fc[_0x193ab0(0x1d3)],'installedPath':_0x2d2337[_0x193ab0(0x1c4)],'changed':_0x11c29b[_0x193ab0(0x1b0)]!==_0x193ab0(0x1a4),'repairCommand':REPAIR_COMMAND};}
1
+ (function(_0x5c8841,_0x5c96f3){const _0x341026=a280_0xc703,_0x5656ea=_0x5c8841();while(!![]){try{const _0x1d8d01=parseInt(_0x341026(0xe0))/0x1+-parseInt(_0x341026(0xff))/0x2*(-parseInt(_0x341026(0xf8))/0x3)+-parseInt(_0x341026(0xd4))/0x4*(parseInt(_0x341026(0xd6))/0x5)+-parseInt(_0x341026(0xcd))/0x6*(parseInt(_0x341026(0xec))/0x7)+-parseInt(_0x341026(0x105))/0x8*(-parseInt(_0x341026(0xfe))/0x9)+-parseInt(_0x341026(0xc8))/0xa+parseInt(_0x341026(0xdb))/0xb*(parseInt(_0x341026(0xf5))/0xc);if(_0x1d8d01===_0x5c96f3)break;else _0x5656ea['push'](_0x5656ea['shift']());}catch(_0x17ae15){_0x5656ea['push'](_0x5656ea['shift']());}}}(a280_0x17a7,0xe4d79));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND='rabetbase\x20cli-skill\x20install',SKILL_NAME='rabetbase';function frontmatterValue(_0x15fa0d,_0x217f45){const _0x1b2505=a280_0xc703;return _0x15fa0d[_0x1b2505(0xd5)](new RegExp('^'+_0x217f45+':\x5cs*(.+)$','m'))?.[0x1]?.[_0x1b2505(0xf6)]()??'';}function listFiles(_0x5197bf,_0x3cd95b=_0x5197bf){const _0x7cc968=a280_0xc703;return readdirSync(_0x3cd95b,{'withFileTypes':!![]})[_0x7cc968(0xf0)](_0xf415eb=>{const _0x157b82=_0x7cc968,_0x453088=join(_0x3cd95b,_0xf415eb[_0x157b82(0xda)]),_0x225bb6=lstatSync(_0x453088);if(_0x225bb6[_0x157b82(0xd9)]())throw new Error(_0x157b82(0xd1)+_0x453088);if(_0x225bb6[_0x157b82(0xdc)]())return listFiles(_0x5197bf,_0x453088);if(!_0x225bb6['isFile']())throw new Error(_0x157b82(0xef)+_0x453088);return[relative(_0x5197bf,_0x453088)['split'](sep)[_0x157b82(0xd3)]('/')];})[_0x7cc968(0xf7)]((_0x33204f,_0x584731)=>_0x33204f<_0x584731?-0x1:_0x33204f>_0x584731?0x1:0x0);}function digestFiles(_0x36b836,_0x596b32){const _0x3a657a=a280_0xc703,_0x24cf3b=createHash(_0x3a657a(0xf2));for(const _0x3b7128 of _0x596b32){if(_0x3b7128[_0x3a657a(0xc6)]('/')||_0x3b7128['split']('/')[_0x3a657a(0xfa)]('..')||_0x3b7128['includes']('\x5c'))throw new Error(_0x3a657a(0x100)+_0x3b7128);_0x24cf3b[_0x3a657a(0xdd)](_0x3b7128),_0x24cf3b['update']('\x00'),_0x24cf3b[_0x3a657a(0xdd)](readFileSync(join(_0x36b836,..._0x3b7128[_0x3a657a(0xd0)]('/')))),_0x24cf3b[_0x3a657a(0xdd)]('\x00');}return _0x24cf3b['digest'](_0x3a657a(0xc9));}function sameFiles(_0x4ae74e,_0x3ed879){const _0x4241d7=a280_0xc703;return _0x4ae74e[_0x4241d7(0x106)]===_0x3ed879[_0x4241d7(0x106)]&&_0x4ae74e[_0x4241d7(0xd2)]((_0x5ea9c4,_0x433306)=>_0x5ea9c4===_0x3ed879[_0x433306]);}function readSource(_0x31ec26){const _0x22d89f=a280_0xc703,_0x98808d=JSON[_0x22d89f(0xed)](readFileSync(join(_0x31ec26,_0x22d89f(0xe6)),_0x22d89f(0xca))),_0xea83eb=JSON[_0x22d89f(0xed)](readFileSync(join(_0x31ec26,_0x22d89f(0xcc),_0x22d89f(0xe8)),_0x22d89f(0xca))),_0x344bc2=join(_0x31ec26,'skills',SKILL_NAME),_0x577dfe=frontmatterValue(readFileSync(join(_0x344bc2,_0x22d89f(0xeb)),_0x22d89f(0xca)),_0x22d89f(0x102)),_0x3bb273=listFiles(_0x344bc2);if(_0xea83eb[_0x22d89f(0xe2)]!==0x1||_0xea83eb[_0x22d89f(0xda)]!==SKILL_NAME||!_0x98808d[_0x22d89f(0x102)]||_0xea83eb[_0x22d89f(0xe4)]!==_0x98808d[_0x22d89f(0x102)]||_0xea83eb[_0x22d89f(0xf4)]!==_0x98808d[_0x22d89f(0x102)]||_0x577dfe!==_0x98808d[_0x22d89f(0x102)]||!sameFiles(_0x3bb273,_0xea83eb[_0x22d89f(0xe9)])||digestFiles(_0x344bc2,_0x3bb273)!==_0xea83eb['digest'])throw new Error(_0x22d89f(0xd8));return{'packageVersion':_0x98808d['version'],'skillVersion':_0x577dfe,'root':_0x344bc2,'manifest':_0xea83eb};}function installedSkillPath(_0x28242a){const _0x4c564c=a280_0xc703,_0x5968cf=resolveInstalledSkill(SKILL_NAME,{'home':_0x28242a});if(_0x5968cf[_0x4c564c(0x101)]===_0x4c564c(0xde))return{'state':_0x4c564c(0xde),'path':dirname(_0x5968cf['path'])};if(_0x5968cf['state']===_0x4c564c(0xe3))return{'state':_0x4c564c(0xe5)};return{'state':_0x4c564c(0xce),'reason':_0x5968cf[_0x4c564c(0xe1)]};}export function inspectInstalledBuiltinSkillVersion(_0x3c612b,_0x2d5fe9={}){const _0x885137=a280_0xc703,_0xef9da0=installedSkillPath(_0x2d5fe9[_0x885137(0xe7)]??homedir());if(_0xef9da0[_0x885137(0x101)]===_0x885137(0xe5))return{'state':_0x885137(0xe5),'expectedVersion':_0x3c612b,'repairCommand':REPAIR_COMMAND};if(_0xef9da0['state']==='unverifiable')return{'state':_0x885137(0xce),'expectedVersion':_0x3c612b,'reason':_0xef9da0[_0x885137(0xe1)],'repairCommand':REPAIR_COMMAND};try{const _0x4ca36b=frontmatterValue(readFileSync(join(_0xef9da0[_0x885137(0xf1)],_0x885137(0xeb)),_0x885137(0xca)),_0x885137(0x102));return{'state':_0x4ca36b===_0x3c612b?_0x885137(0xf3):_0x885137(0x103),'expectedVersion':_0x3c612b,'skillVersion':_0x4ca36b,'installedPath':_0xef9da0[_0x885137(0xf1)],'repairCommand':REPAIR_COMMAND};}catch(_0x2a8e32){return{'state':_0x885137(0xce),'expectedVersion':_0x3c612b,'installedPath':_0xef9da0['path'],'reason':_0x2a8e32 instanceof Error?_0x2a8e32['message']:String(_0x2a8e32),'repairCommand':REPAIR_COMMAND};}}function a280_0x17a7(){const _0x12f645=['match','5pyHLWs','status','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','isSymbolicLink','name','3560227eSlKmT','isDirectory','update','present','Installed\x20Skill\x20state\x20is\x20','1280801JlBEin','reason','schemaVersion','absent','packageVersion','missing','package.json','home','rabetbase.manifest.json','files','VERIFY_FAILED','SKILL.md','773493egkRDj','parse','unknown','Unsupported\x20Skill\x20entry:\x20','flatMap','path','sha256','current','skillVersion','36IFNbwT','trim','sort','3HSSmuw','error','includes','skipped','root','packageRoot','363123JKuDEW','2057480hWHJwU','Unsafe\x20manifest\x20path:\x20','state','version','version_mismatch','installedPath','24EIPLWu','length','startsWith','message','12394340GoGthU','hex','utf8','stdio','skills','54yXIVUu','unverifiable','manifest','split','Symbolic\x20link\x20is\x20not\x20allowed:\x20','every','join','921164RqqTLM'];a280_0x17a7=function(){return _0x12f645;};return a280_0x17a7();}export function inspectBuiltinSkill(_0x5551b3={}){const _0x4380fe=a280_0xc703,_0x179fa1=_0x5551b3[_0x4380fe(0xfd)]??DEFAULT_PACKAGE_ROOT;let _0x5d6c6e;try{_0x5d6c6e=readSource(_0x179fa1);}catch(_0x59e6ec){return{'state':_0x4380fe(0xce),'packageVersion':_0x4380fe(0xee),'reason':_0x59e6ec instanceof Error?_0x59e6ec[_0x4380fe(0xc7)]:String(_0x59e6ec),'repairCommand':REPAIR_COMMAND};}const _0x8b0777=installedSkillPath(_0x5551b3[_0x4380fe(0xe7)]??homedir());if(_0x8b0777['state']===_0x4380fe(0xe5))return{'state':_0x4380fe(0xe5),'packageVersion':_0x5d6c6e[_0x4380fe(0xe4)],'repairCommand':REPAIR_COMMAND};if(_0x8b0777[_0x4380fe(0x101)]===_0x4380fe(0xce))return{'state':_0x4380fe(0xce),'packageVersion':_0x5d6c6e['packageVersion'],'reason':_0x8b0777['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x1b9f60=frontmatterValue(readFileSync(join(_0x8b0777[_0x4380fe(0xf1)],_0x4380fe(0xeb)),_0x4380fe(0xca)),_0x4380fe(0x102));if(_0x1b9f60!==_0x5d6c6e['skillVersion'])return{'state':'version_mismatch','packageVersion':_0x5d6c6e[_0x4380fe(0xe4)],'skillVersion':_0x1b9f60,'installedPath':_0x8b0777[_0x4380fe(0xf1)],'repairCommand':REPAIR_COMMAND};const _0x55e66b=listFiles(_0x8b0777[_0x4380fe(0xf1)]),_0x3c40a7=digestFiles(_0x8b0777['path'],_0x55e66b);return{'state':sameFiles(_0x55e66b,_0x5d6c6e[_0x4380fe(0xcf)]['files'])&&_0x3c40a7===_0x5d6c6e[_0x4380fe(0xcf)]['digest']?'current':'content_mismatch','packageVersion':_0x5d6c6e[_0x4380fe(0xe4)],'skillVersion':_0x1b9f60,'installedPath':_0x8b0777[_0x4380fe(0xf1)],'digest':_0x3c40a7,'repairCommand':REPAIR_COMMAND};}catch(_0x1cf4e9){return{'state':_0x4380fe(0xce),'packageVersion':_0x5d6c6e[_0x4380fe(0xe4)],'installedPath':_0x8b0777[_0x4380fe(0xf1)],'reason':_0x1cf4e9 instanceof Error?_0x1cf4e9[_0x4380fe(0xc7)]:String(_0x1cf4e9),'repairCommand':REPAIR_COMMAND};}}function a280_0xc703(_0x495ec7,_0x47c14a){_0x495ec7=_0x495ec7-0xc6;const _0x17a7e7=a280_0x17a7();let _0xc70334=_0x17a7e7[_0x495ec7];return _0xc70334;}function failure(_0x267e4a,_0x38d8a3,_0x361b7a,_0x3a2df0){const _0x13bc73=a280_0xc703;return{'ok':![],'code':_0x267e4a,'packageVersion':_0x38d8a3['packageVersion'],'skillVersion':_0x38d8a3['skillVersion'],'installedPath':_0x3a2df0,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x361b7a instanceof Error?_0x361b7a[_0x13bc73(0xc7)]:String(_0x361b7a)};}export function installBuiltinSkill(_0x1f3f12={}){const _0xf4d240=a280_0xc703,_0x432c8e=_0x1f3f12[_0xf4d240(0xfd)]??DEFAULT_PACKAGE_ROOT,_0xc8e27b=_0x1f3f12[_0xf4d240(0xe7)]??homedir();let _0x12bcd1;try{_0x12bcd1=readSource(_0x432c8e);}catch(_0x5473c3){return failure('SOURCE_INVALID',{'packageVersion':'unknown','skillVersion':_0xf4d240(0xee)},_0x5473c3);}const _0x4e8b35=inspectBuiltinSkill({'packageRoot':_0x432c8e,'home':_0xc8e27b}),_0x169052=runNpxSkillsAddGlobal(_0x432c8e,_0x12bcd1[_0xf4d240(0xfc)],{'stdio':_0x1f3f12[_0xf4d240(0xcb)]??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0xc8e27b}});if(_0x169052[_0xf4d240(0xfb)])return{'ok':!![],'packageVersion':_0x12bcd1[_0xf4d240(0xe4)],'skillVersion':_0x12bcd1[_0xf4d240(0xf4)],'installedPath':_0x4e8b35[_0xf4d240(0x104)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x169052['ok'])return failure('INSTALL_FAILED',_0x12bcd1,_0x169052[_0xf4d240(0xf9)]??'skills@latest\x20exited\x20'+_0x169052[_0xf4d240(0xd7)]);const _0x4600ad=inspectBuiltinSkill({'packageRoot':_0x432c8e,'home':_0xc8e27b});if(_0x4600ad[_0xf4d240(0x101)]!=='current')return failure(_0xf4d240(0xea),_0x12bcd1,_0x4600ad[_0xf4d240(0xe1)]??_0xf4d240(0xdf)+_0x4600ad[_0xf4d240(0x101)],_0x4600ad[_0xf4d240(0x104)]);return{'ok':!![],'packageVersion':_0x12bcd1[_0xf4d240(0xe4)],'skillVersion':_0x12bcd1[_0xf4d240(0xf4)],'installedPath':_0x4600ad[_0xf4d240(0x104)],'changed':_0x4e8b35[_0xf4d240(0x101)]!=='current','repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
1
- function a274_0x2608(_0x3a53d1,_0x46a8a7){_0x3a53d1=_0x3a53d1-0x1d7;const _0x5a40b9=a274_0x5a40();let _0x2608d5=_0x5a40b9[_0x3a53d1];return _0x2608d5;}(function(_0x319760,_0x123604){const _0x647189=a274_0x2608,_0x350616=_0x319760();while(!![]){try{const _0x711951=-parseInt(_0x647189(0x1ec))/0x1+parseInt(_0x647189(0x1f2))/0x2*(-parseInt(_0x647189(0x1d8))/0x3)+parseInt(_0x647189(0x1e1))/0x4*(-parseInt(_0x647189(0x1d7))/0x5)+parseInt(_0x647189(0x1e2))/0x6+-parseInt(_0x647189(0x1de))/0x7*(-parseInt(_0x647189(0x1dc))/0x8)+parseInt(_0x647189(0x1f5))/0x9*(-parseInt(_0x647189(0x1f3))/0xa)+parseInt(_0x647189(0x1e9))/0xb;if(_0x711951===_0x123604)break;else _0x350616['push'](_0x350616['shift']());}catch(_0x43ddd4){_0x350616['push'](_0x350616['shift']());}}}(a274_0x5a40,0x34299));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(_0x1780f9){const _0x28daa3=a274_0x2608,_0x406b13=[];for(const [_0x39aed7,_0x1b724b]of Object[_0x28daa3(0x1e4)](_0x1780f9)){if(_0x1b724b===!![]){const _0x3f261b=_0x39aed7[_0x28daa3(0x1db)](/([A-Z])/g,_0x28daa3(0x1fb))[_0x28daa3(0x1f4)]();_0x406b13[_0x28daa3(0x1ea)](_0x3f261b);}}return _0x406b13;}export function parseDynamicFlags(){const _0x18ec2d=a274_0x2608,_0x7ed6b=[];for(let _0x4cf5d6=0x3;_0x4cf5d6<process['argv']['length'];_0x4cf5d6++){const _0x12998e=process[_0x18ec2d(0x1f8)][_0x4cf5d6];if(_0x12998e&&_0x12998e[_0x18ec2d(0x1f1)]('--')){const _0x156b44=_0x12998e[_0x18ec2d(0x1d9)](0x2);_0x156b44&&!_0x156b44[_0x18ec2d(0x1ed)]('=')&&_0x7ed6b[_0x18ec2d(0x1ea)](_0x156b44);}}return _0x7ed6b;}export function getAllProvidedFlags(_0x1857e8){const _0x202be5=a274_0x2608,_0x3354f6=camelCaseFlagsToKebab(_0x1857e8),_0x5e02b3=parseDynamicFlags(),_0x5ac887=new Set([..._0x3354f6,..._0x5e02b3]);return Array[_0x202be5(0x1fc)](_0x5ac887);}export function normalizeLegacyBffSaveFlags(_0x3d51ae){const _0x545f2f=a274_0x2608,_0x44fff1=new Set(_0x3d51ae);return _0x44fff1[_0x545f2f(0x1e6)](_0x545f2f(0x1ef))&&_0x44fff1[_0x545f2f(0x1f6)]('enable-bff-save'),Array[_0x545f2f(0x1fc)](_0x44fff1);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x504816,_0x33845,_0x58962b){const _0x12851c=a274_0x2608;logger[_0x12851c(0x1da)](process['cwd']());if(_0x58962b?.[_0x12851c(0x1ee)]||_0x504816===_0x12851c(0x1e5)){showHelp();return;}console['error'](_0x12851c(0x1e7)+(_0x504816||_0x12851c(0x1df))),console[_0x12851c(0x1dd)](_0x12851c(0x1f9)),console[_0x12851c(0x1dd)]('\x20\x20'+CLI_BIN_NAME+'\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill'),console[_0x12851c(0x1dd)](''),console[_0x12851c(0x1dd)](_0x12851c(0x1e8)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x12851c(0x1fa)](_0x12851c(0x1e3),_0x12851c(0x1f0)+_0x504816),process[_0x12851c(0x1f7)](0x1);}function a274_0x5a40(){const _0x1eba40=['18sRzTtz','add','exit','argv','\x0aAvailable\x20commands:','error','-$1','from','253560XuDWUo','184278OuxDGE','slice','setLogPath','replace','8wAKURf','log','2350999PIlpfi','(empty)','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','16CouplB','405684JXULCS','skill','entries','--help','has','Error:\x20Unsupported\x20command:\x20','Public\x20Open\x20Skill\x20source:\x20','9994204ikYJTk','push','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','299862hlsXCr','includes','help','dangerously-bff-save','Unsupported\x20command:\x20','startsWith','8riwtxu','1749820diJevC','toLowerCase'];a274_0x5a40=function(){return _0x1eba40;};return a274_0x5a40();}function showHelp(){const _0x59abac=a274_0x2608;console[_0x59abac(0x1dd)](_0x59abac(0x1e0)+CLI_BIN_NAME+_0x59abac(0x1eb)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a');}
1
+ function a281_0x22d8(_0x269ef2,_0x5c866b){_0x269ef2=_0x269ef2-0x1ab;const _0x54e4f9=a281_0x54e4();let _0x22d8e3=_0x54e4f9[_0x269ef2];return _0x22d8e3;}(function(_0x5c9dda,_0xde5e25){const _0x3ca43a=a281_0x22d8,_0x294c72=_0x5c9dda();while(!![]){try{const _0x5e0578=-parseInt(_0x3ca43a(0x1cd))/0x1+-parseInt(_0x3ca43a(0x1ca))/0x2+-parseInt(_0x3ca43a(0x1b6))/0x3+-parseInt(_0x3ca43a(0x1c4))/0x4+parseInt(_0x3ca43a(0x1b8))/0x5+-parseInt(_0x3ca43a(0x1b3))/0x6*(-parseInt(_0x3ca43a(0x1ba))/0x7)+parseInt(_0x3ca43a(0x1c1))/0x8;if(_0x5e0578===_0xde5e25)break;else _0x294c72['push'](_0x294c72['shift']());}catch(_0x1da9eb){_0x294c72['push'](_0x294c72['shift']());}}}(a281_0x54e4,0x97c40));function a281_0x54e4(){const _0x38ae64=['\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','from','toLowerCase','replace','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','19172496vEGwQe','skill','error','3980656ZzOass','dangerously-bff-save','Error:\x20Unsupported\x20command:\x20','add','--help','(empty)','422408OQNYyb','push','slice','665326TbOGzF','startsWith','has','length','exit','Unsupported\x20command:\x20','-$1','Public\x20Open\x20Skill\x20source:\x20','help','1311918zbQTqO','setLogPath','cwd','2612259XuuBLk','log','1557790iwhFUF','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','21dsgmdC','argv'];a281_0x54e4=function(){return _0x38ae64;};return a281_0x54e4();}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(_0x4c75b6){const _0x22261e=a281_0x22d8,_0x122a50=[];for(const [_0x4eb357,_0x23fb02]of Object['entries'](_0x4c75b6)){if(_0x23fb02===!![]){const _0x22703e=_0x4eb357[_0x22261e(0x1bf)](/([A-Z])/g,_0x22261e(0x1b0))[_0x22261e(0x1be)]();_0x122a50['push'](_0x22703e);}}return _0x122a50;}export function parseDynamicFlags(){const _0x1744ff=a281_0x22d8,_0x3a486b=[];for(let _0x38b5a1=0x3;_0x38b5a1<process[_0x1744ff(0x1bb)][_0x1744ff(0x1ad)];_0x38b5a1++){const _0x597aad=process[_0x1744ff(0x1bb)][_0x38b5a1];if(_0x597aad&&_0x597aad[_0x1744ff(0x1ab)]('--')){const _0x28bbe8=_0x597aad[_0x1744ff(0x1cc)](0x2);_0x28bbe8&&!_0x28bbe8['includes']('=')&&_0x3a486b[_0x1744ff(0x1cb)](_0x28bbe8);}}return _0x3a486b;}export function getAllProvidedFlags(_0x29b911){const _0x26653e=a281_0x22d8,_0xa9d9da=camelCaseFlagsToKebab(_0x29b911),_0x2030f2=parseDynamicFlags(),_0x2f72b1=new Set([..._0xa9d9da,..._0x2030f2]);return Array[_0x26653e(0x1bd)](_0x2f72b1);}export function normalizeLegacyBffSaveFlags(_0x44192){const _0x50f227=a281_0x22d8,_0x388843=new Set(_0x44192);return _0x388843[_0x50f227(0x1ac)](_0x50f227(0x1c5))&&_0x388843[_0x50f227(0x1c7)]('enable-bff-save'),Array[_0x50f227(0x1bd)](_0x388843);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0xcc8a1e,_0x22a44b,_0x1c2c05){const _0x4aca79=a281_0x22d8;logger[_0x4aca79(0x1b4)](process[_0x4aca79(0x1b5)]());if(_0x1c2c05?.[_0x4aca79(0x1b2)]||_0xcc8a1e===_0x4aca79(0x1c8)){showHelp();return;}console[_0x4aca79(0x1c3)](_0x4aca79(0x1c6)+(_0xcc8a1e||_0x4aca79(0x1c9))),console['log']('\x0aAvailable\x20commands:'),console[_0x4aca79(0x1b7)]('\x20\x20'+CLI_BIN_NAME+_0x4aca79(0x1bc)),console[_0x4aca79(0x1b7)](''),console[_0x4aca79(0x1b7)](_0x4aca79(0x1b1)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x4aca79(0x1c3)](_0x4aca79(0x1c2),_0x4aca79(0x1af)+_0xcc8a1e),process[_0x4aca79(0x1ae)](0x1);}function showHelp(){const _0x100a1d=a281_0x22d8;console['log']('\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x100a1d(0x1b9)+SKILLS_INSTALL_COMMAND_LINE+_0x100a1d(0x1c0));}
@@ -1 +1 @@
1
- const a275_0x1e93c9=a275_0x2461;(function(_0x381234,_0x1448ee){const _0x15a6bd=a275_0x2461,_0x1190cb=_0x381234();while(!![]){try{const _0x1644e9=-parseInt(_0x15a6bd(0x178))/0x1*(-parseInt(_0x15a6bd(0x17a))/0x2)+parseInt(_0x15a6bd(0x15b))/0x3+parseInt(_0x15a6bd(0x175))/0x4+parseInt(_0x15a6bd(0x15d))/0x5*(-parseInt(_0x15a6bd(0x165))/0x6)+parseInt(_0x15a6bd(0x162))/0x7*(-parseInt(_0x15a6bd(0x14f))/0x8)+-parseInt(_0x15a6bd(0x15a))/0x9*(-parseInt(_0x15a6bd(0x167))/0xa)+-parseInt(_0x15a6bd(0x168))/0xb;if(_0x1644e9===_0x1448ee)break;else _0x1190cb['push'](_0x1190cb['shift']());}catch(_0x4330d0){_0x1190cb['push'](_0x1190cb['shift']());}}}(a275_0x44c5,0x8ca53));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills@latest';export const NPX_SKILLS_SUBCOMMAND_ADD=a275_0x1e93c9(0x169);export const NPX_SKILLS_FLAG_SKILL=a275_0x1e93c9(0x16c);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a275_0x1e93c9(0x149);export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export const RABETBASE_GLOBAL_SKILL_NAME=a275_0x1e93c9(0x173);export const RABETBASE_SKILL_GIT_SOURCE=a275_0x1e93c9(0x16e);export function resolveGlobalSkillName(_0x2e1c19){const _0x2c71b1=a275_0x1e93c9;switch(_0x2e1c19[_0x2c71b1(0x151)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}function a275_0x44c5(){const _0x5c88f6=['8577250WmMjql','add','stdout','stdio','--skill','presence','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','EACCES','npx','filter','INSTALL_PARTIAL','rabetbase','stderr','1308220IsYSng','message','CHILD_TERMINATED','6022aHZLys','npx\x20terminated\x20by\x20signal\x20','202YWQvJd','expectedSkillName','status','pipe','warn','join','lovrabet/lovrabet-skill','skill','exit\x20','Installer\x20reported\x20','present','SKILL_NOT_INSTALLED','5849392nlpSti','error','trim','match','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','PERMISSION_DENIED','NPM_CONFIG_GLOBAL','code','state','npm_config_global','push','18GjNSzt','3016218NVQyok','checked','10iYYvGa','\x20failed\x20target(s)','Skill\x20\x22','signal','reason','7rgWsgD','log','inherit','2847402aqfPmE','ENOENT','5477290odOrpV'];a275_0x44c5=function(){return _0x5c88f6;};return a275_0x44c5();}export function buildNpxSkillsAddArgv(_0x446397){const _0x2a28dd=a275_0x1e93c9,_0x51abf2=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x446397&&_0x51abf2[_0x2a28dd(0x159)](NPX_SKILLS_FLAG_SKILL,_0x446397),_0x51abf2;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a275_0x1e93c9(0x170),...buildNpxSkillsAddArgv()][a275_0x1e93c9(0x148)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x15bed3,_0x314eea,_0xdac4da){return{'ok':![],'status':_0x314eea,'code':_0x15bed3,'error':'['+_0x15bed3+']\x20'+_0xdac4da};}function a275_0x2461(_0x4555cd,_0x5ca32a){_0x4555cd=_0x4555cd-0x148;const _0x44c5ec=a275_0x44c5();let _0x2461c6=_0x44c5ec[_0x4555cd];return _0x2461c6;}function spawnOptions(_0x5bbd9c,_0x41edba){const _0x4c80c4=a275_0x1e93c9,_0x43eb4a={...process.env};return delete _0x43eb4a[_0x4c80c4(0x158)],delete _0x43eb4a[_0x4c80c4(0x155)],{'cwd':_0x5bbd9c,'stdio':_0x41edba,'env':_0x43eb4a,'shell':![],..._0x41edba===_0x4c80c4(0x17d)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x520d04,_0x339ce8,_0x170f0c,_0x31ad47){const _0x36631f=a275_0x1e93c9,_0x42db86=[_0x520d04[_0x36631f(0x16a)]?_0x520d04[_0x36631f(0x16a)]['toString']():'',_0x520d04[_0x36631f(0x174)]?_0x520d04[_0x36631f(0x174)]['toString']():''][_0x36631f(0x171)](Boolean)[_0x36631f(0x148)]('\x0a')[_0x36631f(0x151)]();_0x31ad47!=='pipe'&&_0x42db86&&console[_0x36631f(0x163)](_0x42db86);if(_0x520d04[_0x36631f(0x150)]){const _0x3f4269=_0x520d04[_0x36631f(0x150)],_0x4ee147=_0x3f4269['code']===_0x36631f(0x166)?'NPX_NOT_FOUND':_0x3f4269[_0x36631f(0x156)]==='EPERM'||_0x3f4269['code']===_0x36631f(0x16f)?_0x36631f(0x154):'SPAWN_FAILED';return failure(_0x4ee147,_0x520d04['status'],_0x3f4269[_0x36631f(0x176)]);}if(_0x520d04[_0x36631f(0x160)])return failure(_0x36631f(0x177),_0x520d04['status'],_0x36631f(0x179)+_0x520d04[_0x36631f(0x160)]);if(_0x520d04[_0x36631f(0x17c)]!==0x0)return failure('CHILD_EXIT_NONZERO',_0x520d04['status'],_0x42db86||_0x36631f(0x14b)+(_0x520d04['status']??'unknown'));const _0x946fb8=_0x339ce8?resolveInstalledSkill(_0x339ce8,_0x170f0c):undefined,_0x58b526=_0x42db86[_0x36631f(0x152)](/Failed to install\s+(\d+)/i);if(_0x58b526&&Number(_0x58b526[0x1])>0x0){const _0x54df35=_0x36631f(0x14c)+_0x58b526[0x1]+_0x36631f(0x15e)+(_0x42db86?':\x0a'+_0x42db86:'');if(_0x946fb8?.[_0x36631f(0x157)]===_0x36631f(0x14d))return console[_0x36631f(0x17e)]('!\x20'+_0x54df35),{'ok':!![],'status':0x0};return failure(_0x36631f(0x172),0x0,_0x54df35);}if(_0x946fb8){if(_0x946fb8[_0x36631f(0x157)]==='absent')return failure(_0x36631f(0x14e),0x0,_0x36631f(0x15f)+_0x339ce8+_0x36631f(0x153)+_0x946fb8[_0x36631f(0x15c)]['join'](',\x20')+')');_0x946fb8[_0x36631f(0x157)]==='unverifiable'&&console[_0x36631f(0x17e)]('!\x20Could\x20not\x20verify\x20\x22'+_0x339ce8+'\x22\x20install\x20state:\x20'+_0x946fb8[_0x36631f(0x161)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x470c96,_0x1ccf01){const _0x19e1eb=a275_0x1e93c9;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x11db37=_0x1ccf01?.['stdio']??_0x19e1eb(0x164),_0x11f59c=resolveNpmBin(_0x19e1eb(0x170)),_0x11edee=buildNpxSkillsAddArgv(_0x1ccf01?.[_0x19e1eb(0x14a)]),_0x23cd82=[_0x19e1eb(0x170),..._0x11edee][_0x19e1eb(0x148)]('\x20');console[_0x19e1eb(0x163)]('*\x20'+_0x23cd82);const _0x271191=spawnSync(_0x11f59c,_0x11edee,spawnOptions(_0x470c96,_0x11db37));return normalizeSpawnResult(_0x271191,undefined,undefined,_0x11db37);}export function runNpxSkillsRemove(_0xf5c7a6,_0x345129,_0x3aeebc=LEGACY_RABETBASE_SKILL_SOURCE){const _0x154fa4=a275_0x1e93c9;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5b5aa0=_0x345129?.[_0x154fa4(0x16b)]??_0x154fa4(0x164),_0x334715=resolveNpmBin(_0x154fa4(0x170)),_0x539469=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x3aeebc,NPX_SKILLS_FLAG_SKILL,_0x345129?.[_0x154fa4(0x14a)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x345129?.['yes']?['-y']:[]],_0x44d818=[_0x334715,..._0x539469][_0x154fa4(0x148)]('\x20');console[_0x154fa4(0x163)]('*\x20'+_0x44d818);const _0x2e7f6e=spawnSync(_0x334715,_0x539469,spawnOptions(_0xf5c7a6,_0x5b5aa0));return normalizeSpawnResult(_0x2e7f6e,undefined,undefined,_0x5b5aa0);}export function runNpxSkillsAddGlobal(_0x4c27e4,_0x3b7855,_0x19ba67){const _0x4c25f9=a275_0x1e93c9;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x27a5f9=resolveNpmBin(_0x4c25f9(0x170)),_0x3c418e=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3b7855,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x587145=[_0x4c25f9(0x170),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3b7855,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x4c25f9(0x148)]('\x20');console[_0x4c25f9(0x163)]('*\x20'+_0x587145);const _0x290e03=spawnSync(_0x27a5f9,_0x3c418e,spawnOptions(_0x4c27e4,'pipe'));return normalizeSpawnResult(_0x290e03,_0x19ba67?.[_0x4c25f9(0x17b)]??resolveGlobalSkillName(_0x3b7855),_0x19ba67?.[_0x4c25f9(0x16d)],_0x19ba67?.[_0x4c25f9(0x16b)]);}
1
+ const a282_0x43a55e=a282_0x5021;(function(_0xb3074d,_0x5b3b00){const _0x304a3e=a282_0x5021,_0x375faf=_0xb3074d();while(!![]){try{const _0x25d1ed=-parseInt(_0x304a3e(0xd5))/0x1*(-parseInt(_0x304a3e(0xd0))/0x2)+-parseInt(_0x304a3e(0xdb))/0x3*(-parseInt(_0x304a3e(0xda))/0x4)+parseInt(_0x304a3e(0xe7))/0x5*(-parseInt(_0x304a3e(0xf2))/0x6)+parseInt(_0x304a3e(0xc1))/0x7*(-parseInt(_0x304a3e(0xcc))/0x8)+-parseInt(_0x304a3e(0xd6))/0x9*(parseInt(_0x304a3e(0xea))/0xa)+-parseInt(_0x304a3e(0xdc))/0xb*(parseInt(_0x304a3e(0xd7))/0xc)+-parseInt(_0x304a3e(0xe5))/0xd*(-parseInt(_0x304a3e(0xbb))/0xe);if(_0x25d1ed===_0x5b3b00)break;else _0x375faf['push'](_0x375faf['shift']());}catch(_0x5bb0dc){_0x375faf['push'](_0x375faf['shift']());}}}(a282_0x8cd7,0xd621d));function a282_0x5021(_0x297feb,_0xb8df95){_0x297feb=_0x297feb-0xb5;const _0x8cd766=a282_0x8cd7();let _0x502171=_0x8cd766[_0x297feb];return _0x502171;}import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a282_0x43a55e(0xe6);export const NPX_SKILLS_SUBCOMMAND_ADD=a282_0x43a55e(0xc7);export const NPX_SKILLS_FLAG_SKILL=a282_0x43a55e(0xbc);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a282_0x43a55e(0xbf);export const DEFAULT_RABETBASE_SKILL_NAME=a282_0x43a55e(0xd9);export const RABETBASE_GLOBAL_SKILL_NAME='rabetbase';export const RABETBASE_SKILL_GIT_SOURCE=a282_0x43a55e(0xe8);export function resolveGlobalSkillName(_0x2267f6){switch(_0x2267f6['trim']()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x131c45){const _0x2c9e61=a282_0x43a55e,_0x3682be=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x131c45&&_0x3682be[_0x2c9e61(0xc3)](NPX_SKILLS_FLAG_SKILL,_0x131c45),_0x3682be;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a282_0x43a55e(0xba),...buildNpxSkillsAddArgv()][a282_0x43a55e(0xf3)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a282_0x43a55e(0xba),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a282_0x43a55e(0xf3)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x208b61,_0x332d6c,_0x536065){return{'ok':![],'status':_0x332d6c,'code':_0x208b61,'error':'['+_0x208b61+']\x20'+_0x536065};}function spawnOptions(_0x5c7dbc,_0x36dfdc){const _0x4f2e50=a282_0x43a55e,_0x53f90f={...process.env};return delete _0x53f90f[_0x4f2e50(0xdd)],delete _0x53f90f[_0x4f2e50(0xf5)],{'cwd':_0x5c7dbc,'stdio':_0x36dfdc,'env':_0x53f90f,'shell':![],..._0x36dfdc===_0x4f2e50(0xdf)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0xc51511,_0x2b8bab,_0x3c034d,_0x4b3c5e){const _0x1e22be=a282_0x43a55e,_0x440761=[_0xc51511[_0x1e22be(0xf0)]?_0xc51511[_0x1e22be(0xf0)]['toString']():'',_0xc51511[_0x1e22be(0xb5)]?_0xc51511[_0x1e22be(0xb5)][_0x1e22be(0xd1)]():''][_0x1e22be(0xe0)](Boolean)[_0x1e22be(0xf3)]('\x0a')[_0x1e22be(0xbe)]();_0x4b3c5e!==_0x1e22be(0xdf)&&_0x440761&&console[_0x1e22be(0xe9)](_0x440761);if(_0xc51511[_0x1e22be(0xcd)]){const _0xeeb237=_0xc51511[_0x1e22be(0xcd)],_0x1b2f7c=_0xeeb237[_0x1e22be(0xca)]===_0x1e22be(0xf6)?_0x1e22be(0xc8):_0xeeb237[_0x1e22be(0xca)]===_0x1e22be(0xec)||_0xeeb237['code']==='EACCES'?_0x1e22be(0xcb):'SPAWN_FAILED';return failure(_0x1b2f7c,_0xc51511[_0x1e22be(0xce)],_0xeeb237[_0x1e22be(0xc5)]);}if(_0xc51511[_0x1e22be(0xb6)])return failure('CHILD_TERMINATED',_0xc51511[_0x1e22be(0xce)],_0x1e22be(0xf1)+_0xc51511['signal']);if(_0xc51511[_0x1e22be(0xce)]!==0x0)return failure(_0x1e22be(0xc0),_0xc51511[_0x1e22be(0xce)],_0x440761||_0x1e22be(0xe4)+(_0xc51511['status']??_0x1e22be(0xbd)));const _0x43c445=_0x2b8bab?resolveInstalledSkill(_0x2b8bab,_0x3c034d):undefined,_0x50f1d9=_0x440761[_0x1e22be(0xf7)](/Failed to install\s+(\d+)/i);if(_0x50f1d9&&Number(_0x50f1d9[0x1])>0x0){const _0x22b69e=_0x1e22be(0xcf)+_0x50f1d9[0x1]+_0x1e22be(0xc6)+(_0x440761?':\x0a'+_0x440761:'');if(_0x43c445?.[_0x1e22be(0xef)]==='present')return console[_0x1e22be(0xb7)]('!\x20'+_0x22b69e),{'ok':!![],'status':0x0};return failure(_0x1e22be(0xed),0x0,_0x22b69e);}if(_0x43c445){if(_0x43c445['state']===_0x1e22be(0xe1))return failure(_0x1e22be(0xd8),0x0,_0x1e22be(0xb8)+_0x2b8bab+_0x1e22be(0xd3)+_0x43c445[_0x1e22be(0xd4)][_0x1e22be(0xf3)](',\x20')+')');_0x43c445[_0x1e22be(0xef)]===_0x1e22be(0xc2)&&console['warn'](_0x1e22be(0xf4)+_0x2b8bab+_0x1e22be(0xe2)+_0x43c445[_0x1e22be(0xe3)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0xb34e8a,_0x191b38){const _0xfc00fc=a282_0x43a55e;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xff3586=_0x191b38?.['stdio']??'inherit',_0x2929d6=resolveNpmBin('npx'),_0x26af2b=buildNpxSkillsAddArgv(_0x191b38?.['skill']),_0x18db91=[_0xfc00fc(0xba),..._0x26af2b]['join']('\x20');console[_0xfc00fc(0xe9)]('*\x20'+_0x18db91);const _0x3fd548=spawnSync(_0x2929d6,_0x26af2b,spawnOptions(_0xb34e8a,_0xff3586));return normalizeSpawnResult(_0x3fd548,undefined,undefined,_0xff3586);}function a282_0x8cd7(){const _0x3502f7=['NPX_NOT_FOUND','stdio','code','PERMISSION_DENIED','8392ixpNuP','error','status','Installer\x20reported\x20','10buCEfU','toString','presence','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','checked','75836IDEBpt','585omUbHM','16038552jJTaFC','SKILL_NOT_INSTALLED','Lovrabet','85628HxrQsv','3vrvFEf','11stEExv','npm_config_global','yes','pipe','filter','absent','\x22\x20install\x20state:\x20','reason','exit\x20','95563Ydgddj','skills@latest','5WFvoPT','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','log','183010SPoytI','skill','EPERM','INSTALL_PARTIAL','inherit','state','stdout','npx\x20terminated\x20by\x20signal\x20','8591448DwJytI','join','!\x20Could\x20not\x20verify\x20\x22','NPM_CONFIG_GLOBAL','ENOENT','match','stderr','signal','warn','Skill\x20\x22','expectedSkillName','npx','11704YQOLsq','--skill','unknown','trim','lovrabet/lovrabet-skill','CHILD_EXIT_NONZERO','11417HOrkUx','unverifiable','push','remove','message','\x20failed\x20target(s)','add'];a282_0x8cd7=function(){return _0x3502f7;};return a282_0x8cd7();}export function runNpxSkillsRemove(_0x58b2aa,_0x22278e,_0x4f3172=LEGACY_RABETBASE_SKILL_SOURCE){const _0x4719c3=a282_0x43a55e;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5a096f=_0x22278e?.[_0x4719c3(0xc9)]??_0x4719c3(0xee),_0x2cd65f=resolveNpmBin(_0x4719c3(0xba)),_0x150a71=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x4719c3(0xc4),_0x4f3172,NPX_SKILLS_FLAG_SKILL,_0x22278e?.[_0x4719c3(0xeb)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x22278e?.[_0x4719c3(0xde)]?['-y']:[]],_0x26b697=[_0x2cd65f,..._0x150a71][_0x4719c3(0xf3)]('\x20');console[_0x4719c3(0xe9)]('*\x20'+_0x26b697);const _0x5af72f=spawnSync(_0x2cd65f,_0x150a71,spawnOptions(_0x58b2aa,_0x5a096f));return normalizeSpawnResult(_0x5af72f,undefined,undefined,_0x5a096f);}export function runNpxSkillsAddGlobal(_0x148389,_0x322c0a,_0x2fd7b8){const _0x46cfa7=a282_0x43a55e;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x173fa0=resolveNpmBin(_0x46cfa7(0xba)),_0x1475d7=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x322c0a,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x54ca3d=[_0x46cfa7(0xba),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x322c0a,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x46cfa7(0xf3)]('\x20');console[_0x46cfa7(0xe9)]('*\x20'+_0x54ca3d);const _0x34bfcf=spawnSync(_0x173fa0,_0x1475d7,spawnOptions(_0x148389,_0x46cfa7(0xdf)));return normalizeSpawnResult(_0x34bfcf,_0x2fd7b8?.[_0x46cfa7(0xb9)]??resolveGlobalSkillName(_0x322c0a),_0x2fd7b8?.[_0x46cfa7(0xd2)],_0x2fd7b8?.['stdio']);}