@lovrabet/rabetbase-cli 2.5.0 → 2.5.1-beta.2

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 (332) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/api/generate-sdk-config-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.d.ts +7 -0
  7. package/lib/auth/auth-server.js +1 -1
  8. package/lib/auth/constant.js +1 -1
  9. package/lib/auth/get-cookie.js +1 -1
  10. package/lib/auth/get-session-user.js +1 -1
  11. package/lib/auth/is-session-valid.js +1 -1
  12. package/lib/auth/login-success-html.js +1 -1
  13. package/lib/auth/logout.js +1 -1
  14. package/lib/cli-flags.js +1 -1
  15. package/lib/cli.js +1 -1
  16. package/lib/commands/api/generate.js +1 -1
  17. package/lib/commands/api/index.js +1 -1
  18. package/lib/commands/api/list.js +1 -1
  19. package/lib/commands/api/pull.js +1 -1
  20. package/lib/commands/api/shared.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/members-list.js +1 -1
  24. package/lib/commands/app/remote-directory.js +1 -1
  25. package/lib/commands/app/shared.js +1 -1
  26. package/lib/commands/app-config/delete.js +1 -1
  27. package/lib/commands/app-config/get.js +1 -1
  28. package/lib/commands/app-config/index.js +1 -1
  29. package/lib/commands/app-config/list.js +1 -1
  30. package/lib/commands/app-config/set.js +1 -1
  31. package/lib/commands/app-config/shared.js +1 -1
  32. package/lib/commands/auth/index.js +1 -1
  33. package/lib/commands/bff/create.js +1 -1
  34. package/lib/commands/bff/delete.js +1 -1
  35. package/lib/commands/bff/detail.js +1 -1
  36. package/lib/commands/bff/index.js +1 -1
  37. package/lib/commands/bff/list.js +1 -1
  38. package/lib/commands/bff/pull.js +1 -1
  39. package/lib/commands/bff/push.js +1 -1
  40. package/lib/commands/bff/status.js +1 -1
  41. package/lib/commands/cli-skill/index.js +1 -1
  42. package/lib/commands/cli-update.js +1 -1
  43. package/lib/commands/codegen/index.js +1 -1
  44. package/lib/commands/codegen/sdk.js +1 -1
  45. package/lib/commands/codegen/sql.js +1 -1
  46. package/lib/commands/common/app-registry.js +1 -1
  47. package/lib/commands/common/app-selector.js +1 -1
  48. package/lib/commands/common/async-task.js +1 -1
  49. package/lib/commands/common/dry-run.js +1 -1
  50. package/lib/commands/common/flags.js +1 -1
  51. package/lib/commands/common/local-file.js +1 -1
  52. package/lib/commands/common/validate.js +1 -1
  53. package/lib/commands/config/delete.js +1 -1
  54. package/lib/commands/config/get.js +1 -1
  55. package/lib/commands/config/index.js +1 -1
  56. package/lib/commands/config/init.d.ts +1 -1
  57. package/lib/commands/config/init.js +1 -1
  58. package/lib/commands/config/list.js +1 -1
  59. package/lib/commands/config/set.js +1 -1
  60. package/lib/commands/config/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/business-groups.js +1 -1
  63. package/lib/commands/dataset/capability.js +1 -1
  64. package/lib/commands/dataset/delete.js +1 -1
  65. package/lib/commands/dataset/detail.js +1 -1
  66. package/lib/commands/dataset/extend-update.js +1 -1
  67. package/lib/commands/dataset/field-restore.d.ts +107 -0
  68. package/lib/commands/dataset/field-restore.js +1 -0
  69. package/lib/commands/dataset/field-update.js +1 -1
  70. package/lib/commands/dataset/generate.js +1 -1
  71. package/lib/commands/dataset/index.js +1 -1
  72. package/lib/commands/dataset/list.js +1 -1
  73. package/lib/commands/dataset/operations.js +1 -1
  74. package/lib/commands/dataset/relation-audit.js +1 -1
  75. package/lib/commands/dataset/relation-create.js +1 -1
  76. package/lib/commands/dataset/relation-delete.js +1 -1
  77. package/lib/commands/dataset/relation-shared.js +1 -1
  78. package/lib/commands/dataset/relation-update.js +1 -1
  79. package/lib/commands/dataset/relations.js +1 -1
  80. package/lib/commands/dataset/rename.js +1 -1
  81. package/lib/commands/dataset/restore.js +1 -1
  82. package/lib/commands/dataset/user-deleted-field-list.d.ts +36 -0
  83. package/lib/commands/dataset/user-deleted-field-list.js +1 -0
  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.d.ts +28 -0
  103. package/lib/commands/deployment/auto-sync.js +1 -0
  104. package/lib/commands/deployment/index.d.ts +2 -0
  105. package/lib/commands/deployment/index.js +1 -0
  106. package/lib/commands/deployment/sync.d.ts +2 -0
  107. package/lib/commands/deployment/sync.js +1 -0
  108. package/lib/commands/doctor.js +1 -1
  109. package/lib/commands/file/index.js +1 -1
  110. package/lib/commands/issue/index.js +1 -1
  111. package/lib/commands/issue/nudge.js +1 -1
  112. package/lib/commands/issue/report.js +1 -1
  113. package/lib/commands/issue/shared.js +1 -1
  114. package/lib/commands/kb/create.js +1 -1
  115. package/lib/commands/kb/delete.js +1 -1
  116. package/lib/commands/kb/detail.js +1 -1
  117. package/lib/commands/kb/index.js +1 -1
  118. package/lib/commands/kb/list.js +1 -1
  119. package/lib/commands/kb/search.js +1 -1
  120. package/lib/commands/kb/shared.js +1 -1
  121. package/lib/commands/kb/update.js +1 -1
  122. package/lib/commands/logs/index.js +1 -1
  123. package/lib/commands/menu/asset-update.js +1 -1
  124. package/lib/commands/menu/delete.js +1 -1
  125. package/lib/commands/menu/external-link-create.js +1 -1
  126. package/lib/commands/menu/external-link-update.js +1 -1
  127. package/lib/commands/menu/group-create.js +1 -1
  128. package/lib/commands/menu/group-update.js +1 -1
  129. package/lib/commands/menu/index.js +1 -1
  130. package/lib/commands/menu/list.js +1 -1
  131. package/lib/commands/menu/move.js +1 -1
  132. package/lib/commands/menu/regroup-start.js +1 -1
  133. package/lib/commands/menu/rename.js +1 -1
  134. package/lib/commands/menu/shared/compare-table.js +1 -1
  135. package/lib/commands/menu/shared/delete-plan.js +1 -1
  136. package/lib/commands/menu/shared/facts.js +1 -1
  137. package/lib/commands/menu/shared/index.js +1 -1
  138. package/lib/commands/menu/shared/inquirer.js +1 -1
  139. package/lib/commands/menu/shared/local-pages.js +1 -1
  140. package/lib/commands/menu/shared/logic.js +1 -1
  141. package/lib/commands/menu/shared/mutations.js +1 -1
  142. package/lib/commands/menu/shared/service.js +1 -1
  143. package/lib/commands/menu/shared/sync-core.js +1 -1
  144. package/lib/commands/menu/shared/update-core.js +1 -1
  145. package/lib/commands/menu/shared/valid-url.js +1 -1
  146. package/lib/commands/menu/sync.js +1 -1
  147. package/lib/commands/menu/visibility-update.js +1 -1
  148. package/lib/commands/notification/config-create.js +1 -1
  149. package/lib/commands/notification/config-delete.js +1 -1
  150. package/lib/commands/notification/config-list.js +1 -1
  151. package/lib/commands/notification/config-update.js +1 -1
  152. package/lib/commands/notification/index.js +1 -1
  153. package/lib/commands/notification/shared.js +1 -1
  154. package/lib/commands/ocr/index.js +1 -1
  155. package/lib/commands/page/create.js +1 -1
  156. package/lib/commands/page/custom/detail.js +1 -1
  157. package/lib/commands/page/custom/list.js +1 -1
  158. package/lib/commands/page/custom/publish.js +1 -1
  159. package/lib/commands/page/custom/shared.js +1 -1
  160. package/lib/commands/page/custom/syntax.js +1 -1
  161. package/lib/commands/page/custom/template.js +1 -1
  162. package/lib/commands/page/custom/update.js +1 -1
  163. package/lib/commands/page/data-list-status.js +1 -1
  164. package/lib/commands/page/generate-start.js +1 -1
  165. package/lib/commands/page/generate-status.js +1 -1
  166. package/lib/commands/page/index.js +1 -1
  167. package/lib/commands/page/pull.js +1 -1
  168. package/lib/commands/page/push.js +1 -1
  169. package/lib/commands/page/relation-audit.js +1 -1
  170. package/lib/commands/page/restore.js +1 -1
  171. package/lib/commands/page/shared.js +1 -1
  172. package/lib/commands/page/sync.js +1 -1
  173. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  174. package/lib/commands/project/create/format-elapsed.js +1 -1
  175. package/lib/commands/project/create/main.js +1 -1
  176. package/lib/commands/project/create/materialize-project-template.js +1 -1
  177. package/lib/commands/project/create/project-name.js +1 -1
  178. package/lib/commands/project/create/project-template-archive.js +1 -1
  179. package/lib/commands/project/create/project-template-path.js +1 -1
  180. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  181. package/lib/commands/project/create/use-format-code.js +1 -1
  182. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  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/run/index.js +1 -1
  196. package/lib/commands/schema.js +1 -1
  197. package/lib/commands/sql/create.js +1 -1
  198. package/lib/commands/sql/delete.js +1 -1
  199. package/lib/commands/sql/detail.js +1 -1
  200. package/lib/commands/sql/exec.js +1 -1
  201. package/lib/commands/sql/index.js +1 -1
  202. package/lib/commands/sql/list.js +1 -1
  203. package/lib/commands/sql/pull.js +1 -1
  204. package/lib/commands/sql/push.js +1 -1
  205. package/lib/commands/sql/shared.js +1 -1
  206. package/lib/commands/sql/status.js +1 -1
  207. package/lib/commands/sql/validate.js +1 -1
  208. package/lib/commands/task/index.js +1 -1
  209. package/lib/commands/task/status.js +1 -1
  210. package/lib/commands/tenant/index.js +1 -1
  211. package/lib/commands/tenant/members-list.js +1 -1
  212. package/lib/commands/tenant/shared.js +1 -1
  213. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  214. package/lib/commands/user-account/index.js +1 -1
  215. package/lib/commands/workspace/add.js +1 -1
  216. package/lib/commands/workspace/index.js +1 -1
  217. package/lib/commands/workspace/remove.js +1 -1
  218. package/lib/config/deployment-sync.d.ts +10 -0
  219. package/lib/config/deployment-sync.js +1 -0
  220. package/lib/config/domain-config.d.ts +1 -1
  221. package/lib/config/domain-config.js +1 -1
  222. package/lib/config/project-routing.d.ts +30 -0
  223. package/lib/config/project-routing.js +1 -0
  224. package/lib/config/schema.d.ts +1 -1
  225. package/lib/config/schema.js +1 -1
  226. package/lib/constant/cdn.js +1 -1
  227. package/lib/constant/cli.js +1 -1
  228. package/lib/constant/defaults.js +1 -1
  229. package/lib/constant/domain.d.ts +7 -2
  230. package/lib/constant/domain.js +1 -1
  231. package/lib/constant/env.js +1 -1
  232. package/lib/constant/output.js +1 -1
  233. package/lib/constant/paths.js +1 -1
  234. package/lib/constant/region.d.ts +2 -2
  235. package/lib/constant/region.js +1 -1
  236. package/lib/constant/risk.js +1 -1
  237. package/lib/constant/routing-profile.d.ts +115 -0
  238. package/lib/constant/routing-profile.js +1 -0
  239. package/lib/context/app-resolver.d.ts +2 -0
  240. package/lib/context/app-resolver.js +1 -1
  241. package/lib/context/auth-resolver.js +1 -1
  242. package/lib/context/config-loader.js +1 -1
  243. package/lib/context.js +1 -1
  244. package/lib/core/alias-resolver.js +1 -1
  245. package/lib/core/api-client.d.ts +35 -0
  246. package/lib/core/api-client.js +1 -1
  247. package/lib/core/bff/config.js +1 -1
  248. package/lib/core/bff/file-system.js +1 -1
  249. package/lib/core/bff/hash.js +1 -1
  250. package/lib/core/bff/lock.js +1 -1
  251. package/lib/core/bff/utils.js +1 -1
  252. package/lib/core/db-resolver.js +1 -1
  253. package/lib/core/page/file-system.js +1 -1
  254. package/lib/core/page/hash.js +1 -1
  255. package/lib/core/page/lock.js +1 -1
  256. package/lib/core/sql-index-auditor.js +1 -1
  257. package/lib/core/sql-sync/config.js +1 -1
  258. package/lib/core/sql-sync/file-system.js +1 -1
  259. package/lib/core/sql-sync/hash.js +1 -1
  260. package/lib/core/sql-sync/lock.js +1 -1
  261. package/lib/core/sql-sync/utils.js +1 -1
  262. package/lib/core/sql-validator.js +1 -1
  263. package/lib/errors.js +1 -1
  264. package/lib/framework/build-all-flags.js +1 -1
  265. package/lib/framework/error-output.js +1 -1
  266. package/lib/framework/explicit-yes.js +1 -1
  267. package/lib/framework/flags.js +1 -1
  268. package/lib/framework/help.js +1 -1
  269. package/lib/framework/index.js +1 -1
  270. package/lib/framework/output.js +1 -1
  271. package/lib/framework/response.js +1 -1
  272. package/lib/framework/runner-alias.js +1 -1
  273. package/lib/framework/runner.js +1 -1
  274. package/lib/framework/schema-export.js +1 -1
  275. package/lib/framework/types.d.ts +4 -0
  276. package/lib/framework/types.js +1 -1
  277. package/lib/generated/build-info.d.ts +4 -4
  278. package/lib/generated/build-info.js +1 -1
  279. package/lib/help.js +1 -1
  280. package/lib/postinstall.js +1 -1
  281. package/lib/runtime/confirmation.js +1 -1
  282. package/lib/runtime/event.js +1 -1
  283. package/lib/runtime/index.js +1 -1
  284. package/lib/runtime/queue.js +1 -1
  285. package/lib/runtime/resolve.js +1 -1
  286. package/lib/skills/builtin-skill.js +1 -1
  287. package/lib/skills/main.js +1 -1
  288. package/lib/skills/npx-skills-add.js +1 -1
  289. package/lib/skills/skill-presence.js +1 -1
  290. package/lib/telemetry/cli-command-trace.js +1 -1
  291. package/lib/telemetry/cli-help-trace.js +1 -1
  292. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  293. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  294. package/lib/telemetry/send-cli-trace-log.js +1 -1
  295. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  296. package/lib/utils/ai_config.js +1 -1
  297. package/lib/utils/apply-jq-filter.js +1 -1
  298. package/lib/utils/cdn-config.js +1 -1
  299. package/lib/utils/check-sdk-version.js +1 -1
  300. package/lib/utils/cli-version-check.js +1 -1
  301. package/lib/utils/cli-version-policy.js +1 -1
  302. package/lib/utils/config.js +1 -1
  303. package/lib/utils/entity-with-id.js +1 -1
  304. package/lib/utils/file-utils.js +1 -1
  305. package/lib/utils/guides-cdn.js +1 -1
  306. package/lib/utils/http-client.js +1 -1
  307. package/lib/utils/is-non-interactive.js +1 -1
  308. package/lib/utils/logger.js +1 -1
  309. package/lib/utils/params.js +1 -1
  310. package/lib/utils/platform.js +1 -1
  311. package/lib/utils/sleep.js +1 -1
  312. package/lib/utils/template-replacer.js +1 -1
  313. package/lib/utils/update-notice.js +1 -1
  314. package/lib/utils/version.js +1 -1
  315. package/lib/utils/with-active-cookie.js +1 -1
  316. package/lib/utils/write-cli-side-channel.js +1 -1
  317. package/package.json +1 -2
  318. package/skills/rabetbase/SKILL.md +20 -9
  319. package/skills/rabetbase/guides/frontend-development.md +2 -0
  320. package/skills/rabetbase/guides/sdk-client-generation.md +3 -2
  321. package/skills/rabetbase/guides/typescript-sdk.md +42 -0
  322. package/skills/rabetbase/references/rabetbase-api-pull.md +5 -3
  323. package/skills/rabetbase/references/rabetbase-config.md +9 -5
  324. package/skills/rabetbase/references/rabetbase-dataset-business-group-update.md +9 -9
  325. package/skills/rabetbase/references/rabetbase-dataset-business-groups.md +1 -1
  326. package/skills/rabetbase/references/rabetbase-dataset-field-restore.md +59 -0
  327. package/skills/rabetbase/references/rabetbase-dataset-user-deleted-field-list.md +47 -0
  328. package/skills/rabetbase/references/rabetbase-deployment-sync.md +92 -0
  329. package/skills/rabetbase/references/rabetbase-init.md +11 -5
  330. package/skills/rabetbase/references/rabetbase-project-create.md +6 -5
  331. package/skills/rabetbase.manifest.json +6 -3
  332. package/templates/README.md +13 -17
@@ -1 +1 @@
1
- (function(_0x359c9d,_0x3fe439){const _0x597607=a252_0x4180,_0x2c3383=_0x359c9d();while(!![]){try{const _0x4b4bb6=parseInt(_0x597607(0xa6))/0x1+parseInt(_0x597607(0xe3))/0x2*(parseInt(_0x597607(0xb7))/0x3)+-parseInt(_0x597607(0xcc))/0x4*(parseInt(_0x597607(0xbc))/0x5)+-parseInt(_0x597607(0x9b))/0x6*(parseInt(_0x597607(0xa8))/0x7)+parseInt(_0x597607(0xc4))/0x8+-parseInt(_0x597607(0xcb))/0x9+parseInt(_0x597607(0xe8))/0xa*(-parseInt(_0x597607(0xab))/0xb);if(_0x4b4bb6===_0x3fe439)break;else _0x2c3383['push'](_0x2c3383['shift']());}catch(_0x52af20){_0x2c3383['push'](_0x2c3383['shift']());}}}(a252_0x3b3c,0xdb794));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';function a252_0x3b3c(){const _0x28715b=['replace','8518392rpQbII','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','⚠\x20\x20High-risk\x20operation:\x20','authRequired','production','appCode','apiDir','8875863nwSqvl','4FivRtP','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','LOVRABET_APPCODE','cookie','rawFlags','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','nonInteractive','update','keys','currentApp','cancelled','name','resolveApiDomain','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','value','message','Available:\x20','appcode','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','defaultVerbose','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','108852djVJRy','toUpperCase','execute','catch','doctor','30qdlsDe','Edit\x20the\x20config\x20file\x20manually','\x0a\x20\x20','configMissing','meowKey','trim','format','Current\x20resolved\x20appcode\x20is\x20\x22','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','selectedAppName','verbose','rejectedFlags','11232jUPxXw','length','all','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','has','filter','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','../core/api-client.js','join','mergedCli','resolveAppCode','1543758aBYZyD','hasFormat','2093xkptWI','object','requiresAppCode','3137343qWTPaZ','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','pageSize','defaultApp','isNonInteractive','command','riskLevel','Set\x20appcode\x20via\x20`','apps','service','includes','_notice','69igMzNh','formatOutput','pretty','some','defaultPageSize','2799085IYivUz','string','confirmHighRisk','risk','validation','App\x20\x22','High-risk\x20operation\x20`'];a252_0x3b3c=function(){return _0x28715b;};return a252_0x3b3c();}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 a252_0x5834ca}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x40b371){const _0x3a5ffd=a252_0x4180;return typeof _0x40b371===_0x3a5ffd(0xbd)&&_0x40b371[_0x3a5ffd(0xed)]()?_0x40b371[_0x3a5ffd(0xed)]():undefined;}function resolveEnvAppCode(){const _0x2a6f39=a252_0x4180,_0x23f0a8=stringFlag(process.env.RABETBASE_APPCODE);if(_0x23f0a8)return{'name':'RABETBASE_APPCODE','value':_0x23f0a8};const _0x4e4fa2=stringFlag(process.env.LOVRABET_APPCODE);if(_0x4e4fa2)return{'name':_0x2a6f39(0xce),'value':_0x4e4fa2};return undefined;}function hasExplicitAppCode(_0xb17a96,_0x5ef680){const _0x2dad46=a252_0x4180;return!!(stringFlag(_0xb17a96['appcode'])||stringFlag(_0x5ef680[_0x2dad46(0xdf)]));}function assertEnvAppCodeNotIgnored(_0x5543b0,_0x3d193e,_0x3134ef){const _0x32aab2=a252_0x4180;if(!_0x3d193e||_0x3134ef||_0x5543b0===_0x3d193e['value'])return;const _0x297447=_0x5543b0?_0x32aab2(0xef)+_0x5543b0+'\x22.':_0x32aab2(0xa1);throw CliErrors[_0x32aab2(0xc0)](_0x3d193e[_0x32aab2(0xd8)]+'='+_0x3d193e[_0x32aab2(0xdc)]+_0x32aab2(0xf0)+_0x297447+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x3d193e[_0x32aab2(0xd8)]+'\x22.'));}export function createPipelineEnv(_0x9271d,_0x43ade6,_0x65ed5d=[]){const _0x1462f1=a252_0x4180;return{'rawFlags':_0x43ade6,'args':_0x65ed5d,'resolveAppCode':()=>_0x9271d[_0x1462f1(0xc9)],'resolveCookie':()=>_0x9271d[_0x1462f1(0xcf)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a252_0x5834ca(_0x43ade6),'defaultFormat':_0x9271d[_0x1462f1(0xee)],'defaultPageSize':_0x9271d[_0x1462f1(0xad)],'defaultVerbose':_0x9271d[_0x1462f1(0xf2)],'apiDir':_0x9271d[_0x1462f1(0xca)],'riskLevel':_0x9271d[_0x1462f1(0xb1)],'selectedAppName':_0x9271d['explicitAppName'],'mergedCli':{'defaultApp':_0x9271d[_0x1462f1(0xae)],'currentApp':_0x9271d['currentApp'],'appCode':_0x9271d[_0x1462f1(0xc9)],'apps':_0x9271d[_0x1462f1(0xb3)]}};}export function createRabetbaseRunnerAdapter(_0xda43e3={}){const _0x1266ee=a252_0x4180;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x1266ee(0xa0)](_0xa9de52=>PIPELINE_FLAG_NAMES[_0x1266ee(0x9f)](_0xa9de52[_0x1266ee(0xd8)]))['map'](({name:_0x3e0ea3,type:_0x4bb6cc,description:_0x12b84d})=>({'name':_0x3e0ea3,'type':_0x4bb6cc,'description':_0x12b84d})),'formatOutput':_0xda43e3[_0x1266ee(0xb8)]??formatOutput,'getCommandLabel'(_0x36e51e){const _0x47d025=_0x1266ee;return CLI_BIN_NAME+'\x20'+_0x36e51e[_0x47d025(0xb4)]+'\x20'+_0x36e51e[_0x47d025(0xb0)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x81975f,{def:_0x10b8bf}){const _0x3890b6=_0x1266ee,_0x24359c=_0x81975f[_0x3890b6(0xb5)](_0x3890b6(0xe9))?_0x3890b6(0xd1):_0x3890b6(0xe2)+_0x10b8bf[_0x3890b6(0xbf)]+_0x3890b6(0xd2)+'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.';return CliErrors[_0x3890b6(0xc0)](_0x81975f+_0x3890b6(0xea)+_0x24359c);}},async 'prepare'(_0x1df138,_0x1efdbe,_0x2eff15,_0x798ccc){const _0x24dbe2=_0x1266ee,_0x3fd2cd=_0x1efdbe[_0x24dbe2(0xca)]||DEFAULT_API_DIR;resolveAliasToCode(_0x1df138,_0x2eff15,_0x3fd2cd,_0x798ccc);const _0xa6e654=resolveCommandAuthMode(_0x1df138);let _0xec6742='';if(_0xa6e654!=='none'){_0xec6742=_0x1efdbe['resolveCookie']()||'';if(!_0xec6742){if(_0xa6e654==='required')throw CliErrors[_0x24dbe2(0xc7)]();}else{const {setActiveCookie:_0x108b53}=await import(_0x24dbe2(0xa2));_0x108b53(_0xec6742);}}const _0x292f3e=_0x1efdbe[_0x24dbe2(0xa5)]()??'';if(_0x1df138[_0x24dbe2(0xaa)]!==![]){const _0x537541=hasExplicitAppCode(_0x2eff15,_0x1efdbe[_0x24dbe2(0xd0)]),_0x25f05a=_0x1efdbe[_0x24dbe2(0xa4)]?.[_0x24dbe2(0xb3)]??{},_0x311720=_0x1efdbe['selectedAppName']||_0x1efdbe[_0x24dbe2(0xa4)]?.[_0x24dbe2(0xd6)]||_0x1efdbe[_0x24dbe2(0xa4)]?.['defaultApp'];if(!_0x537541&&_0x311720&&!_0x25f05a[_0x311720]){const _0x23024e=Object[_0x24dbe2(0xd5)](_0x25f05a);throw CliErrors[_0x24dbe2(0xc0)](_0x24dbe2(0xc1)+_0x311720+_0x24dbe2(0xc5),_0x23024e[_0x24dbe2(0x9c)]>0x0?_0x24dbe2(0xde)+_0x23024e[_0x24dbe2(0xa3)](',\x20')+_0x24dbe2(0xe0)+CLI_BIN_NAME+_0x24dbe2(0xac):_0x24dbe2(0xcd)+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.');}assertEnvAppCodeNotIgnored(_0x292f3e,resolveEnvAppCode(),_0x537541);if(!_0x292f3e){const _0x2a87ed=Object[_0x24dbe2(0xd5)](_0x25f05a);if(!_0x311720&&_0x2a87ed['length']>0x1)throw CliErrors[_0x24dbe2(0xeb)](_0x24dbe2(0xda)+CLI_BIN_NAME+_0x24dbe2(0x9e)+_0x2a87ed[_0x24dbe2(0xa3)](',\x20')+'.');throw CliErrors[_0x24dbe2(0xeb)](_0x24dbe2(0xb2)+CLI_BIN_NAME+_0x24dbe2(0xdb));}}return{'defaults':{'booleans':{'verbose':_0x1efdbe[_0x24dbe2(0xe1)]},'numbers':{'pagesize':_0x1efdbe[_0x24dbe2(0xbb)]}},'extras':{'appCode':_0x292f3e,'cookie':_0xec6742,'apiDomain':_0x1efdbe[_0x24dbe2(0xd9)](),'apiDir':_0x3fd2cd,'selectedAppName':_0x1efdbe[_0x24dbe2(0xf1)],'mergedCli':_0x1efdbe[_0x24dbe2(0xa4)]}};},'confirmHighRisk':_0xda43e3[_0x1266ee(0xbe)]??(async({env:_0x5d6bf8,commandLabel:_0x127506})=>{const _0x23749=_0x1266ee;if(_0x5d6bf8[_0x23749(0xaf)])throw CliErrors[_0x23749(0xc0)](_0x23749(0xc2)+_0x127506+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':[_0x23749(0xc6)+_0x127506,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x43b7b0=>CliErrors[_0x23749(0xd7)](_0x43b7b0)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x4fdfe9=a252_0x4180,{clearActiveCookie:_0x5933b3}=await import(_0x4fdfe9(0xa2));_0x5933b3();}export async function finalizeRabetbaseRuntimeState(){const _0x2d18ed=a252_0x4180;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x5462ad},{initEnv:_0x27dd4b}]=await Promise[_0x2d18ed(0x9d)]([import('../constant/domain.js'),import('../constant/env.js')]);_0x5462ad(),_0x27dd4b(_0x2d18ed(0xc8));}}export async function runCommand(_0x4f7571,_0x3bdb72,_0x2dc527=terminalRunnerAdapter){const _0x43c39b=a252_0x4180;assertRejectedFlags(_0x4f7571,_0x3bdb72[_0x43c39b(0xd0)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x4f7571)?withUpdateNotice(_0x4f7571):_0x4f7571,_0x3bdb72,_0x2dc527);}function assertRejectedFlags(_0x4a2bdd,_0x38f579){const _0x45d566=a252_0x4180;for(const _0x59869d of _0x4a2bdd[_0x45d566(0x9a)]??[]){const _0x20fbd0=GLOBAL_FLAGS['find'](_0x50c5a2=>_0x50c5a2[_0x45d566(0xd8)]===_0x59869d[_0x45d566(0xd8)]),_0x5a0e4b=new Set([_0x59869d[_0x45d566(0xd8)],toCamelCase(_0x59869d[_0x45d566(0xd8)]),_0x20fbd0?.[_0x45d566(0xec)]]),_0x38ba50=[..._0x5a0e4b][_0x45d566(0xba)](_0x2d2fcc=>{if(!_0x2d2fcc)return![];const _0x1be77b=_0x38f579[_0x2d2fcc];return _0x1be77b!==undefined&&_0x1be77b!==null&&_0x1be77b!==![];});if(_0x38ba50)throw CliErrors[_0x45d566(0xc0)](_0x59869d[_0x45d566(0xdd)],_0x59869d['hint']);}}function toCamelCase(_0xce7dca){const _0x466d4b=a252_0x4180;return _0xce7dca[_0x466d4b(0xc3)](/-([a-z])/g,(_0x3a2f95,_0x1082b6)=>_0x1082b6[_0x466d4b(0xe4)]());}function a252_0x4180(_0x1109c6,_0x4851d4){_0x1109c6=_0x1109c6-0x9a;const _0x3b3ca6=a252_0x3b3c();let _0x4180d8=_0x3b3ca6[_0x1109c6];return _0x4180d8;}function shouldAttachUpdateNotice(_0x42ac18){const _0x57fe8a=a252_0x4180;if(_0x42ac18[_0x57fe8a(0xa7)]===![])return![];return![_0x57fe8a(0xd4),'schema',_0x57fe8a(0xe7)][_0x57fe8a(0xb5)](_0x42ac18[_0x57fe8a(0xb4)]);}function withUpdateNotice(_0x5466c7){return{..._0x5466c7,async 'execute'(_0x1ed590){const _0x6ab267=a252_0x4180,_0x32ffdd=shouldResolveUpdateNotice(_0x1ed590)?resolveLatestUpdateNotice()[_0x6ab267(0xe6)](()=>null):Promise['resolve'](null),_0x5a6228=await _0x5466c7[_0x6ab267(0xe5)](_0x1ed590);return attachUpdateNotice(_0x5a6228,await _0x32ffdd);}};}function shouldResolveUpdateNotice(_0x4b5e27){const _0x1cd155=a252_0x4180;return _0x4b5e27[_0x1cd155(0xee)]===_0x1cd155(0xb9)&&!_0x4b5e27[_0x1cd155(0xd3)];}function attachUpdateNotice(_0x1f8fed,_0xd74489){const _0x131a8b=a252_0x4180;if(!_0xd74489||!_0x1f8fed||typeof _0x1f8fed!==_0x131a8b(0xa9))return _0x1f8fed;const _0xd82fbc=_0x1f8fed,_0x2d74ea=typeof _0xd82fbc[_0x131a8b(0xb6)]===_0x131a8b(0xa9)&&_0xd82fbc[_0x131a8b(0xb6)]!==null?_0xd82fbc[_0x131a8b(0xb6)]:{};return{..._0xd82fbc,'_notice':{..._0x2d74ea,'update':_0xd74489}};}
1
+ (function(_0x14118c,_0x4a5076){const _0x17817a=a260_0x1e71,_0x2431b5=_0x14118c();while(!![]){try{const _0x30ac51=parseInt(_0x17817a(0x180))/0x1+parseInt(_0x17817a(0x1b7))/0x2*(parseInt(_0x17817a(0x1ad))/0x3)+-parseInt(_0x17817a(0x197))/0x4+parseInt(_0x17817a(0x1a9))/0x5*(parseInt(_0x17817a(0x17b))/0x6)+parseInt(_0x17817a(0x1c2))/0x7*(-parseInt(_0x17817a(0x18e))/0x8)+parseInt(_0x17817a(0x1cc))/0x9*(parseInt(_0x17817a(0x1b9))/0xa)+parseInt(_0x17817a(0x19e))/0xb*(-parseInt(_0x17817a(0x1a1))/0xc);if(_0x30ac51===_0x4a5076)break;else _0x2431b5['push'](_0x2431b5['shift']());}catch(_0x2c77f0){_0x2431b5['push'](_0x2431b5['shift']());}}}(a260_0x3f3a,0x448f5));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 a260_0x2cb6d3}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x39d836){const _0x38baa6=a260_0x1e71;return typeof _0x39d836===_0x38baa6(0x1a2)&&_0x39d836[_0x38baa6(0x1cf)]()?_0x39d836[_0x38baa6(0x1cf)]():undefined;}function resolveEnvAppCode(){const _0x1e2872=a260_0x1e71,_0x2bade2=stringFlag(process.env.RABETBASE_APPCODE);if(_0x2bade2)return{'name':'RABETBASE_APPCODE','value':_0x2bade2};const _0x7fad52=stringFlag(process.env.LOVRABET_APPCODE);if(_0x7fad52)return{'name':_0x1e2872(0x1c8),'value':_0x7fad52};return undefined;}function a260_0x1e71(_0x175da8,_0x4222f9){_0x175da8=_0x175da8-0x177;const _0x3f3a94=a260_0x3f3a();let _0x1e717b=_0x3f3a94[_0x175da8];return _0x1e717b;}function hasExplicitAppCode(_0xcbde09,_0x3fbcf4){const _0xeee1e7=a260_0x1e71;return!!(stringFlag(_0xcbde09[_0xeee1e7(0x1ab)])||stringFlag(_0x3fbcf4[_0xeee1e7(0x1ab)]));}function assertEnvAppCodeNotIgnored(_0x240ac8,_0xd43546,_0x138975){const _0x5aa1f2=a260_0x1e71;if(!_0xd43546||_0x138975||_0x240ac8===_0xd43546['value'])return;const _0x467704=_0x240ac8?_0x5aa1f2(0x177)+_0x240ac8+'\x22.':_0x5aa1f2(0x1a6);throw CliErrors[_0x5aa1f2(0x1c5)](_0xd43546[_0x5aa1f2(0x1b4)]+'='+_0xd43546[_0x5aa1f2(0x1c1)]+_0x5aa1f2(0x1b5)+_0x467704+'\x20'+(_0x5aa1f2(0x17a)+_0xd43546[_0x5aa1f2(0x1b4)]+'\x22.'));}export function createPipelineEnv(_0x121822,_0x34c3e3,_0x57b81f=[]){const _0x40b6ba=a260_0x1e71;return{'rawFlags':_0x34c3e3,'args':_0x57b81f,'resolveAppCode':()=>_0x121822[_0x40b6ba(0x198)],'resolveCookie':()=>_0x121822[_0x40b6ba(0x1b2)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a260_0x2cb6d3(_0x34c3e3),'defaultFormat':_0x121822[_0x40b6ba(0x196)],'defaultPageSize':_0x121822[_0x40b6ba(0x1bd)],'defaultVerbose':_0x121822[_0x40b6ba(0x181)],'apiDir':_0x121822['apiDir'],'riskLevel':_0x121822[_0x40b6ba(0x17d)],'selectedAppName':_0x121822[_0x40b6ba(0x182)],'mergedCli':{'defaultApp':_0x121822[_0x40b6ba(0x1ac)],'currentApp':_0x121822[_0x40b6ba(0x19f)],'appCode':_0x121822[_0x40b6ba(0x198)],'apps':_0x121822[_0x40b6ba(0x194)]}};}export function createRabetbaseRunnerAdapter(_0x4d43f3={}){const _0x1e22f8=a260_0x1e71;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x1e22f8(0x17f)](_0x154990=>PIPELINE_FLAG_NAMES[_0x1e22f8(0x188)](_0x154990[_0x1e22f8(0x1b4)]))[_0x1e22f8(0x1a8)](({name:_0x4b483d,type:_0x4cd39b,description:_0x571081})=>({'name':_0x4b483d,'type':_0x4cd39b,'description':_0x571081})),'formatOutput':_0x4d43f3[_0x1e22f8(0x17c)]??formatOutput,'getCommandLabel'(_0x462087){const _0x55e70c=_0x1e22f8;return CLI_BIN_NAME+'\x20'+_0x462087[_0x55e70c(0x17e)]+'\x20'+_0x462087[_0x55e70c(0x189)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x3e92fb,{def:_0xbcae10}){const _0x5dda74=_0x1e22f8,_0x1a47b5=_0x3e92fb['includes']('Edit\x20the\x20config\x20file\x20manually')?_0x5dda74(0x187):_0x5dda74(0x18c)+_0xbcae10[_0x5dda74(0x19a)]+'\x22\x20if\x20this\x20operation\x20is\x20intended.\x20'+_0x5dda74(0x187);return CliErrors[_0x5dda74(0x1c5)](_0x3e92fb+_0x5dda74(0x192)+_0x1a47b5);}},async 'prepare'(_0x195676,_0xd27173,_0x3b1897,_0x3e442a){const _0x549330=_0x1e22f8,_0x140152=_0xd27173['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x195676,_0x3b1897,_0x140152,_0x3e442a);const _0x5b08de=resolveCommandAuthMode(_0x195676);let _0x3841d0='';if(_0x5b08de!==_0x549330(0x1d0)){_0x3841d0=_0xd27173[_0x549330(0x1b6)]()||'';if(!_0x3841d0){if(_0x5b08de==='required')throw CliErrors[_0x549330(0x1bf)]();}else{const {setActiveCookie:_0x270017}=await import(_0x549330(0x193));_0x270017(_0x3841d0);}}const _0x253d5e=_0xd27173[_0x549330(0x18f)]()??'';if(_0x195676[_0x549330(0x1c4)]!==![]){const _0x3043ed=hasExplicitAppCode(_0x3b1897,_0xd27173[_0x549330(0x1ce)]),_0xc88c99=_0xd27173[_0x549330(0x19b)]?.[_0x549330(0x194)]??{},_0x18ae13=_0xd27173['selectedAppName']||_0xd27173[_0x549330(0x19b)]?.[_0x549330(0x19f)]||_0xd27173[_0x549330(0x19b)]?.['defaultApp'];if(!_0x3043ed&&_0x18ae13&&!_0xc88c99[_0x18ae13]){const _0x16e0e0=Object['keys'](_0xc88c99);throw CliErrors[_0x549330(0x1c5)](_0x549330(0x1c7)+_0x18ae13+_0x549330(0x1c9),_0x16e0e0['length']>0x0?'Available:\x20'+_0x16e0e0[_0x549330(0x191)](',\x20')+_0x549330(0x1a7)+CLI_BIN_NAME+_0x549330(0x179):_0x549330(0x19d)+CLI_BIN_NAME+_0x549330(0x179));}assertEnvAppCodeNotIgnored(_0x253d5e,resolveEnvAppCode(),_0x3043ed);if(!_0x253d5e){const _0x4a669c=Object[_0x549330(0x186)](_0xc88c99);if(!_0x18ae13&&_0x4a669c[_0x549330(0x1c0)]>0x1)throw CliErrors[_0x549330(0x199)](_0x549330(0x1ca)+CLI_BIN_NAME+_0x549330(0x1a0)+_0x4a669c[_0x549330(0x191)](',\x20')+'.');throw CliErrors[_0x549330(0x199)](_0x549330(0x1cb)+CLI_BIN_NAME+_0x549330(0x1a3));}}return{'defaults':{'booleans':{'verbose':_0xd27173[_0x549330(0x18b)]},'numbers':{'pagesize':_0xd27173['defaultPageSize']}},'extras':{'appCode':_0x253d5e,'cookie':_0x3841d0,'apiDomain':_0xd27173[_0x549330(0x1a4)](),'apiDir':_0x140152,'selectedAppName':_0xd27173['selectedAppName'],'mergedCli':_0xd27173[_0x549330(0x19b)]}};},'confirmHighRisk':_0x4d43f3[_0x1e22f8(0x1bc)]??(async({env:_0x31dac5,commandLabel:_0x55f697})=>{const _0x55b2c7=_0x1e22f8;if(_0x31dac5[_0x55b2c7(0x1b3)])throw CliErrors[_0x55b2c7(0x1c5)]('High-risk\x20operation\x20`'+_0x55f697+_0x55b2c7(0x183));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x55f697,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x2d5d2b=>CliErrors[_0x55b2c7(0x1ae)](_0x2d5d2b)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x10f3aa=a260_0x1e71,{clearActiveCookie:_0x460fa8}=await import(_0x10f3aa(0x193));_0x460fa8();}function a260_0x3f3a(){const _0x391770=['object','schema','confirmHighRisk','pageSize','hint','authRequired','length','value','7mHNYPm','includes','requiresAppCode','validation','doctor','App\x20\x22','LOVRABET_APPCODE','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','Set\x20appcode\x20via\x20`','751671ONeNaa','catch','rawFlags','trim','none','Current\x20resolved\x20appcode\x20is\x20\x22','some','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','403674nlCGIP','formatOutput','riskLevel','service','filter','285618ySYyop','verbose','explicitAppName','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','meowKey','all','keys','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','has','command','hasFormat','defaultVerbose','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','production','844376BtpSsW','resolveAppCode','update','join','\x0a\x20\x20','../core/api-client.js','apps','find','format','2110464IGCPCj','appCode','configMissing','risk','mergedCli','resolve','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','11KSgPzj','currentApp','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','1932744PnYeIg','string','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','resolveApiDomain','replace','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','map','20tiJYJy','rejectedFlags','appcode','defaultApp','28797YTeUal','cancelled','pretty','_notice','message','cookie','isNonInteractive','name','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','resolveCookie','4ybuSSb','toUpperCase','60pqrMoE'];a260_0x3f3a=function(){return _0x391770;};return a260_0x3f3a();}export async function finalizeRabetbaseRuntimeState(){const _0x7a68b6=a260_0x1e71;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x2cddd8},{initEnv:_0xd25061}]=await Promise[_0x7a68b6(0x185)]([import('../constant/domain.js'),import('../constant/env.js')]);_0x2cddd8(),_0xd25061(_0x7a68b6(0x18d));}}export async function runCommand(_0xbe5c11,_0x5ebc2a,_0x1ea039=terminalRunnerAdapter){const _0x2b9714=a260_0x1e71;assertRejectedFlags(_0xbe5c11,_0x5ebc2a[_0x2b9714(0x1ce)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0xbe5c11)?withUpdateNotice(_0xbe5c11):_0xbe5c11,_0x5ebc2a,_0x1ea039);}function assertRejectedFlags(_0x436951,_0x2d917e){const _0x146d5e=a260_0x1e71;for(const _0x46829d of _0x436951[_0x146d5e(0x1aa)]??[]){const _0x25dfd5=GLOBAL_FLAGS[_0x146d5e(0x195)](_0x4259fd=>_0x4259fd[_0x146d5e(0x1b4)]===_0x46829d['name']),_0x1fb59a=new Set([_0x46829d['name'],toCamelCase(_0x46829d[_0x146d5e(0x1b4)]),_0x25dfd5?.[_0x146d5e(0x184)]]),_0x5973f2=[..._0x1fb59a][_0x146d5e(0x178)](_0x943f63=>{if(!_0x943f63)return![];const _0x5095e8=_0x2d917e[_0x943f63];return _0x5095e8!==undefined&&_0x5095e8!==null&&_0x5095e8!==![];});if(_0x5973f2)throw CliErrors[_0x146d5e(0x1c5)](_0x46829d[_0x146d5e(0x1b1)],_0x46829d[_0x146d5e(0x1be)]);}}function toCamelCase(_0x5723cd){const _0x484166=a260_0x1e71;return _0x5723cd[_0x484166(0x1a5)](/-([a-z])/g,(_0x3bcb2f,_0x1c7650)=>_0x1c7650[_0x484166(0x1b8)]());}function shouldAttachUpdateNotice(_0x5f4e97){const _0x5d7ab7=a260_0x1e71;if(_0x5f4e97[_0x5d7ab7(0x18a)]===![])return![];return![_0x5d7ab7(0x190),_0x5d7ab7(0x1bb),_0x5d7ab7(0x1c6)][_0x5d7ab7(0x1c3)](_0x5f4e97['service']);}function withUpdateNotice(_0x1c31f8){return{..._0x1c31f8,async 'execute'(_0x3008b9){const _0x3e811c=a260_0x1e71,_0x31d45f=shouldResolveUpdateNotice(_0x3008b9)?resolveLatestUpdateNotice()[_0x3e811c(0x1cd)](()=>null):Promise[_0x3e811c(0x19c)](null),_0x3c40bf=await _0x1c31f8['execute'](_0x3008b9);return attachUpdateNotice(_0x3c40bf,await _0x31d45f);}};}function shouldResolveUpdateNotice(_0x383373){const _0x19ca69=a260_0x1e71;return _0x383373['format']===_0x19ca69(0x1af)&&!_0x383373['nonInteractive'];}function attachUpdateNotice(_0x5acc21,_0xc804fe){const _0x2d6113=a260_0x1e71;if(!_0xc804fe||!_0x5acc21||typeof _0x5acc21!==_0x2d6113(0x1ba))return _0x5acc21;const _0x4229ef=_0x5acc21,_0x12a01b=typeof _0x4229ef[_0x2d6113(0x1b0)]===_0x2d6113(0x1ba)&&_0x4229ef[_0x2d6113(0x1b0)]!==null?_0x4229ef[_0x2d6113(0x1b0)]:{};return{..._0x4229ef,'_notice':{..._0x12a01b,'update':_0xc804fe}};}
@@ -1 +1 @@
1
- (function(_0x278318,_0x212431){const _0x9bfc7e=a253_0x460b,_0x342e76=_0x278318();while(!![]){try{const _0x27403e=-parseInt(_0x9bfc7e(0x1a1))/0x1*(-parseInt(_0x9bfc7e(0x1a4))/0x2)+-parseInt(_0x9bfc7e(0x1a0))/0x3+parseInt(_0x9bfc7e(0x1a2))/0x4+-parseInt(_0x9bfc7e(0x1a3))/0x5+-parseInt(_0x9bfc7e(0x19c))/0x6+parseInt(_0x9bfc7e(0x19f))/0x7*(parseInt(_0x9bfc7e(0x19a))/0x8)+-parseInt(_0x9bfc7e(0x19b))/0x9*(parseInt(_0x9bfc7e(0x19e))/0xa);if(_0x27403e===_0x212431)break;else _0x342e76['push'](_0x342e76['shift']());}catch(_0x18efa8){_0x342e76['push'](_0x342e76['shift']());}}}(a253_0x1d61,0xdbb9c));import{buildSchemaPayload as a253_0x5d2234}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a253_0x460b(_0x2b9ae7,_0x5219b3){_0x2b9ae7=_0x2b9ae7-0x19a;const _0x1d6158=a253_0x1d61();let _0x460b66=_0x1d6158[_0x2b9ae7];return _0x460b66;}import{getCliVersion}from'../utils/version.js';function a253_0x1d61(){const _0x4667e4=['67543gwJRPX','1470228YoLjnI','3VqrGmJ','5815244niaSXL','5407465jhwuVs','219794gQeWxv','1288ypOElm','5838948CQRxit','1299924QGDdvI','../commands/registry.js','10IdUmKJ'];a253_0x1d61=function(){return _0x4667e4;};return a253_0x1d61();}export async function buildSchemaPayload(){const _0x15250e=a253_0x460b,{serviceRegistry:_0x50ce44,findDefinition:_0x411a14}=await import(_0x15250e(0x19d));return a253_0x5d2234({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x50ce44,'buildAllFlags':buildAllFlags,'findDefinition':_0x411a14});}
1
+ (function(_0x1bf61b,_0x2bc2b4){const _0x4cc1ce=a261_0x3dc6,_0x4fe771=_0x1bf61b();while(!![]){try{const _0x3606ac=parseInt(_0x4cc1ce(0x176))/0x1+parseInt(_0x4cc1ce(0x177))/0x2+parseInt(_0x4cc1ce(0x179))/0x3+parseInt(_0x4cc1ce(0x17a))/0x4+-parseInt(_0x4cc1ce(0x174))/0x5+parseInt(_0x4cc1ce(0x173))/0x6+parseInt(_0x4cc1ce(0x178))/0x7*(-parseInt(_0x4cc1ce(0x175))/0x8);if(_0x3606ac===_0x2bc2b4)break;else _0x4fe771['push'](_0x4fe771['shift']());}catch(_0x44542f){_0x4fe771['push'](_0x4fe771['shift']());}}}(a261_0x5e24,0xe03d1));function a261_0x3dc6(_0x48a876,_0x20cd73){_0x48a876=_0x48a876-0x173;const _0x5e2496=a261_0x5e24();let _0x3dc6db=_0x5e2496[_0x48a876];return _0x3dc6db;}import{buildSchemaPayload as a261_0x5a647d}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 {serviceRegistry:_0x10885f,findDefinition:_0x199ed2}=await import('../commands/registry.js');return a261_0x5a647d({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x10885f,'buildAllFlags':buildAllFlags,'findDefinition':_0x199ed2});}function a261_0x5e24(){const _0x56022d=['5170335IfBVpv','5152928HPHQmK','6036138Knpxpm','9176830DhYamD','656VjxjbU','1717277aFFGEw','2940152mIhvBm','379981tVeBqF'];a261_0x5e24=function(){return _0x56022d;};return a261_0x5e24();}
@@ -7,6 +7,10 @@ export interface MergedCliSnapshot {
7
7
  appCode?: string;
8
8
  apps?: Record<string, {
9
9
  appcode?: string;
10
+ deploymentSync?: {
11
+ dbLinkId?: number;
12
+ targetEnv?: string;
13
+ };
10
14
  }>;
11
15
  }
12
16
  export interface RuntimeContextExtras {
@@ -1 +1 @@
1
- (function(_0x21cdcf,_0x4b1fac){var _0x5c6646=a254_0x338d,_0x5db091=_0x21cdcf();while(!![]){try{var _0x205a73=parseInt(_0x5c6646(0xd2))/0x1*(parseInt(_0x5c6646(0xd5))/0x2)+-parseInt(_0x5c6646(0xda))/0x3+-parseInt(_0x5c6646(0xd1))/0x4+-parseInt(_0x5c6646(0xd0))/0x5*(parseInt(_0x5c6646(0xd7))/0x6)+-parseInt(_0x5c6646(0xd4))/0x7*(parseInt(_0x5c6646(0xd8))/0x8)+parseInt(_0x5c6646(0xd3))/0x9*(-parseInt(_0x5c6646(0xd9))/0xa)+parseInt(_0x5c6646(0xd6))/0xb;if(_0x205a73===_0x4b1fac)break;else _0x5db091['push'](_0x5db091['shift']());}catch(_0x394483){_0x5db091['push'](_0x5db091['shift']());}}}(a254_0x1912,0x7917e));function a254_0x338d(_0x59d598,_0x2d3c77){_0x59d598=_0x59d598-0xd0;var _0x1912b0=a254_0x1912();var _0x338d67=_0x1912b0[_0x59d598];return _0x338d67;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';function a254_0x1912(){var _0x1ca4ca=['3600EMJdqa','518UeprqC','1002JGkAOM','22779009ujDpoq','155670odTHjc','14912NDERQz','4210WNinnh','1403382HycsKh','130SyRutF','512500ccaomc','4nAUgOp'];a254_0x1912=function(){return _0x1ca4ca;};return a254_0x1912();}
1
+ function a262_0x3de4(){var _0x52fce4=['41853QNiFfL','1117320megQXu','30958CHQzNx','2211800MaRJwO','6iisxyn','1229067iVlynm','5DpbLfI','237060GkQbFA','582165mSFIjU','4UeMBVQ'];a262_0x3de4=function(){return _0x52fce4;};return a262_0x3de4();}function a262_0x4a99(_0x1bf2e9,_0x58fd99){_0x1bf2e9=_0x1bf2e9-0xca;var _0x3de498=a262_0x3de4();var _0x4a99e3=_0x3de498[_0x1bf2e9];return _0x4a99e3;}(function(_0x48b036,_0x532380){var _0x3d573a=a262_0x4a99,_0x2a762a=_0x48b036();while(!![]){try{var _0x3701e0=-parseInt(_0x3d573a(0xd2))/0x1*(-parseInt(_0x3d573a(0xce))/0x2)+-parseInt(_0x3d573a(0xca))/0x3*(-parseInt(_0x3d573a(0xcb))/0x4)+parseInt(_0x3d573a(0xd3))/0x5+parseInt(_0x3d573a(0xd0))/0x6*(parseInt(_0x3d573a(0xcc))/0x7)+-parseInt(_0x3d573a(0xcd))/0x8+parseInt(_0x3d573a(0xd1))/0x9+-parseInt(_0x3d573a(0xcf))/0xa;if(_0x3701e0===_0x532380)break;else _0x2a762a['push'](_0x2a762a['shift']());}catch(_0x45cd46){_0x2a762a['push'](_0x2a762a['shift']());}}}(a262_0x3de4,0x188cf));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "2.5.0";
2
- export declare const GIT_TAG = "v2.5.0";
3
- export declare const GIT_COMMIT = "a77966c";
4
- export declare const BUILD_TIME = "2026-08-25T08:52:47.108Z";
1
+ export declare const VERSION = "2.5.1-beta.2";
2
+ export declare const GIT_TAG = "v2.5.1-beta.2";
3
+ export declare const GIT_COMMIT = "ecf0d54";
4
+ export declare const BUILD_TIME = "2026-08-28T10:27:10.981Z";
@@ -1 +1 @@
1
- const a255_0x21ebc2=a255_0x13dc;function a255_0x5cbf(){const _0x1feb86=['11sLQNwz','706520vnyIlN','6633gGQwFu','a77966c','2.5.0','4aznJQD','9908040abOBKn','568YonbUk','1475376JxfQmj','209066qfvQou','702387nSAawF','150150koPjzI','2FsBANY','2026-08-25T08:52:47.108Z'];a255_0x5cbf=function(){return _0x1feb86;};return a255_0x5cbf();}(function(_0x54def6,_0x5b5cab){const _0x210f33=a255_0x13dc,_0x376b31=_0x54def6();while(!![]){try{const _0x31444e=parseInt(_0x210f33(0x18e))/0x1*(-parseInt(_0x210f33(0x18b))/0x2)+-parseInt(_0x210f33(0x18c))/0x3*(parseInt(_0x210f33(0x195))/0x4)+-parseInt(_0x210f33(0x191))/0x5+-parseInt(_0x210f33(0x18d))/0x6+-parseInt(_0x210f33(0x18a))/0x7+parseInt(_0x210f33(0x189))/0x8*(-parseInt(_0x210f33(0x192))/0x9)+parseInt(_0x210f33(0x196))/0xa*(parseInt(_0x210f33(0x190))/0xb);if(_0x31444e===_0x5b5cab)break;else _0x376b31['push'](_0x376b31['shift']());}catch(_0x412a95){_0x376b31['push'](_0x376b31['shift']());}}}(a255_0x5cbf,0x1cda9));function a255_0x13dc(_0x2a8790,_0x361cba){_0x2a8790=_0x2a8790-0x189;const _0x5cbf2d=a255_0x5cbf();let _0x13dcf5=_0x5cbf2d[_0x2a8790];return _0x13dcf5;}export const VERSION=a255_0x21ebc2(0x194);export const GIT_TAG='v2.5.0';export const GIT_COMMIT=a255_0x21ebc2(0x193);export const BUILD_TIME=a255_0x21ebc2(0x18f);
1
+ const a263_0x389153=a263_0x29e3;(function(_0x2c0baa,_0x4ca648){const _0x5efb0b=a263_0x29e3,_0x329e20=_0x2c0baa();while(!![]){try{const _0x27ac43=parseInt(_0x5efb0b(0xd8))/0x1*(-parseInt(_0x5efb0b(0xd7))/0x2)+parseInt(_0x5efb0b(0xce))/0x3*(-parseInt(_0x5efb0b(0xcd))/0x4)+parseInt(_0x5efb0b(0xd5))/0x5*(-parseInt(_0x5efb0b(0xd1))/0x6)+-parseInt(_0x5efb0b(0xd6))/0x7*(-parseInt(_0x5efb0b(0xcf))/0x8)+-parseInt(_0x5efb0b(0xd3))/0x9+parseInt(_0x5efb0b(0xcc))/0xa+parseInt(_0x5efb0b(0xcb))/0xb;if(_0x27ac43===_0x4ca648)break;else _0x329e20['push'](_0x329e20['shift']());}catch(_0x4066ee){_0x329e20['push'](_0x329e20['shift']());}}}(a263_0x44dc,0xa4ec1));function a263_0x29e3(_0xa14d81,_0x41e9d0){_0xa14d81=_0xa14d81-0xcb;const _0x44dcd5=a263_0x44dc();let _0x29e305=_0x44dcd5[_0xa14d81];return _0x29e305;}export const VERSION=a263_0x389153(0xd9);function a263_0x44dc(){const _0xce1594=['10qieFIV','22799ZpnfrR','8dlqQYJ','157699wUjRui','2.5.1-beta.2','21632072sfIGPT','6548740GhCUfS','8orTpTn','500079TKXmrp','856nKrtUq','ecf0d54','843162bKWfIy','2026-08-28T10:27:10.981Z','9442512wEflJd','v2.5.1-beta.2'];a263_0x44dc=function(){return _0xce1594;};return a263_0x44dc();}export const GIT_TAG=a263_0x389153(0xd4);export const GIT_COMMIT=a263_0x389153(0xd0);export const BUILD_TIME=a263_0x389153(0xd2);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x345012,_0x5cc1ea){var _0x36f316=a256_0x23ed,_0x4172d1=_0x345012();while(!![]){try{var _0x4fb6cf=parseInt(_0x36f316(0xaa))/0x1+parseInt(_0x36f316(0xaf))/0x2+-parseInt(_0x36f316(0xab))/0x3+-parseInt(_0x36f316(0xa8))/0x4+-parseInt(_0x36f316(0xa5))/0x5+-parseInt(_0x36f316(0xa2))/0x6+parseInt(_0x36f316(0xac))/0x7*(parseInt(_0x36f316(0xa6))/0x8);if(_0x4fb6cf===_0x5cc1ea)break;else _0x4172d1['push'](_0x4172d1['shift']());}catch(_0x2c7921){_0x4172d1['push'](_0x4172d1['shift']());}}}(a256_0x45c1,0x33556));import a256_0x334936 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a256_0x23ed(_0x4fccf4,_0x1aafa1){_0x4fccf4=_0x4fccf4-0xa2;var _0x45c183=a256_0x45c1();var _0x23ed27=_0x45c183[_0x4fccf4];return _0x23ed27;}function a256_0x45c1(){var _0x5e5cad=['322750bESbXu','1057878mbbhff','green','\x20--help','1173160nFmWCh','197944IYLjSn','\x20to\x20view\x20available\x20commands.','393780CTEYoi','log','224954hsvLKS','1152672FTqFvB','203hIyzzz','bold','\x20\x20Use\x20'];a256_0x45c1=function(){return _0x5e5cad;};return a256_0x45c1();}export function showHelp(){var _0x2f78dc=a256_0x23ed;console[_0x2f78dc(0xa9)](),console[_0x2f78dc(0xa9)](a256_0x334936[_0x2f78dc(0xa3)][_0x2f78dc(0xad)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x2f78dc(0xa9)](),console['log'](_0x2f78dc(0xae)+a256_0x334936[_0x2f78dc(0xa3)][_0x2f78dc(0xad)](CLI_BIN_NAME+_0x2f78dc(0xa4))+_0x2f78dc(0xa7)),console[_0x2f78dc(0xa9)]();}
1
+ (function(_0x38957e,_0x4b57bf){var _0x22187f=a264_0x230b,_0x5d767d=_0x38957e();while(!![]){try{var _0x30f9a7=parseInt(_0x22187f(0x132))/0x1*(parseInt(_0x22187f(0x128))/0x2)+-parseInt(_0x22187f(0x12e))/0x3+parseInt(_0x22187f(0x12a))/0x4*(parseInt(_0x22187f(0x130))/0x5)+parseInt(_0x22187f(0x133))/0x6*(-parseInt(_0x22187f(0x12b))/0x7)+-parseInt(_0x22187f(0x129))/0x8+parseInt(_0x22187f(0x125))/0x9*(-parseInt(_0x22187f(0x126))/0xa)+parseInt(_0x22187f(0x12f))/0xb*(parseInt(_0x22187f(0x131))/0xc);if(_0x30f9a7===_0x4b57bf)break;else _0x5d767d['push'](_0x5d767d['shift']());}catch(_0x5d2f50){_0x5d767d['push'](_0x5d767d['shift']());}}}(a264_0x42f0,0x7fbf7));import a264_0x167a70 from'chalk';function a264_0x42f0(){var _0x232d6b=['log','549mEOXkt','113470DqTsyZ','\x20--help','722jtuhsx','368968NfOGfV','758276ORLnuV','5818820vLAfJP','green','bold','694878TcryIs','275SdXTXQ','25HFnLOi','657468XKFkJS','19QxJkFt','6juzYNk','\x20\x20Use\x20'];a264_0x42f0=function(){return _0x232d6b;};return a264_0x42f0();}function a264_0x230b(_0x1a3d6c,_0x1275fa){_0x1a3d6c=_0x1a3d6c-0x123;var _0x42f095=a264_0x42f0();var _0x230b55=_0x42f095[_0x1a3d6c];return _0x230b55;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x40dff6=a264_0x230b;console['log'](),console[_0x40dff6(0x124)](a264_0x167a70[_0x40dff6(0x12c)][_0x40dff6(0x12d)]('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console[_0x40dff6(0x124)](_0x40dff6(0x123)+a264_0x167a70['green'][_0x40dff6(0x12d)](CLI_BIN_NAME+_0x40dff6(0x127))+'\x20to\x20view\x20available\x20commands.'),console[_0x40dff6(0x124)]();}
@@ -1 +1 @@
1
- (function(_0x1468ce,_0x37be67){const _0x118f65=a257_0xbcb2,_0x328d07=_0x1468ce();while(!![]){try{const _0x58effc=-parseInt(_0x118f65(0x1d6))/0x1+parseInt(_0x118f65(0x1ca))/0x2*(parseInt(_0x118f65(0x1df))/0x3)+-parseInt(_0x118f65(0x1d5))/0x4*(-parseInt(_0x118f65(0x1e1))/0x5)+parseInt(_0x118f65(0x1de))/0x6+parseInt(_0x118f65(0x1d8))/0x7*(parseInt(_0x118f65(0x1cf))/0x8)+parseInt(_0x118f65(0x1d1))/0x9+parseInt(_0x118f65(0x1dc))/0xa*(-parseInt(_0x118f65(0x1d2))/0xb);if(_0x58effc===_0x37be67)break;else _0x328d07['push'](_0x328d07['shift']());}catch(_0x4ac8bf){_0x328d07['push'](_0x328d07['shift']());}}}(a257_0x315d,0xef461));function a257_0xbcb2(_0x2a6f25,_0x1feb93){_0x2a6f25=_0x2a6f25-0x1c7;const _0x315d2b=a257_0x315d();let _0xbcb2c1=_0x315d2b[_0x2a6f25];return _0xbcb2c1;}function a257_0x315d(){const _0x248f56=['2394084hBebmw','\x20via\x20skills@latest','Installation\x20failed','already\x20current','1357180VgfZim','log','6211608DUZgnt','3EyIxDa','Repair\x20with:\x20','8338795dYJmTy','changed','SOURCE_INVALID','code','skillVersion','738502nFZLig','Rabetbase\x20Built-in\x20Skill\x20','installedPath','FAILED','error','16WzxKOA','warn','5147685AroQFP','143JZvdva','[BUILTIN_SKILL_INSTALL_','\x20at\x20','4ABRwAa','1583868zDjFQj','repairCommand'];a257_0x315d=function(){return _0x248f56;};return a257_0x315d();}import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x18e360={}){const _0xa196a8=a257_0xbcb2,_0x39c254=installBuiltinSkill(_0x18e360);if(_0x39c254['ok']){const _0x5a6db3=_0x39c254[_0xa196a8(0x1e2)]?'installed':_0xa196a8(0x1db),_0x4723ab=_0x39c254[_0xa196a8(0x1cc)]?_0xa196a8(0x1d4)+_0x39c254[_0xa196a8(0x1cc)]:_0xa196a8(0x1d9);return console[_0xa196a8(0x1dd)](_0xa196a8(0x1cb)+_0x39c254[_0xa196a8(0x1c9)]+'\x20'+_0x5a6db3+_0x4723ab),_0x39c254;}const _0x4c5077=_0xa196a8(0x1d3)+(_0x39c254[_0xa196a8(0x1c8)]??_0xa196a8(0x1cd))+']\x20'+(_0x39c254[_0xa196a8(0x1ce)]??_0xa196a8(0x1da))+'.\x20'+(_0xa196a8(0x1e0)+_0x39c254[_0xa196a8(0x1d7)]);if(_0x39c254[_0xa196a8(0x1c8)]===_0xa196a8(0x1c7))throw new Error(_0x4c5077);return console[_0xa196a8(0x1d0)](_0x4c5077),_0x39c254;}
1
+ function a265_0xfe49(_0x5e112f,_0x422681){_0x5e112f=_0x5e112f-0x1b3;const _0x11a0bc=a265_0x11a0();let _0xfe49f8=_0x11a0bc[_0x5e112f];return _0xfe49f8;}(function(_0x553012,_0x2ecb5b){const _0x269992=a265_0xfe49,_0x5650cf=_0x553012();while(!![]){try{const _0x2fdede=-parseInt(_0x269992(0x1be))/0x1+-parseInt(_0x269992(0x1bf))/0x2*(-parseInt(_0x269992(0x1c5))/0x3)+-parseInt(_0x269992(0x1b8))/0x4*(parseInt(_0x269992(0x1c6))/0x5)+parseInt(_0x269992(0x1bb))/0x6+parseInt(_0x269992(0x1b5))/0x7*(-parseInt(_0x269992(0x1c0))/0x8)+parseInt(_0x269992(0x1c8))/0x9*(-parseInt(_0x269992(0x1c2))/0xa)+parseInt(_0x269992(0x1c4))/0xb;if(_0x2fdede===_0x2ecb5b)break;else _0x5650cf['push'](_0x5650cf['shift']());}catch(_0x228645){_0x5650cf['push'](_0x5650cf['shift']());}}}(a265_0x11a0,0x5945b));function a265_0x11a0(){const _0x3146d9=['1870dzNycz','installed','5787ObYUdo','Repair\x20with:\x20','warn','changed','installedPath','SOURCE_INVALID','852887kXnyhE','skillVersion','already\x20current','3532BDmOhU','error','\x20at\x20','1380996qYzcBS','\x20via\x20skills@latest','code','654195lmlpMH','2NUWjgD','32KWRuAt','Rabetbase\x20Built-in\x20Skill\x20','11140dbgmqF','FAILED','20492758qmtWwZ','1381854bzWdlZ'];a265_0x11a0=function(){return _0x3146d9;};return a265_0x11a0();}import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x444d84={}){const _0x1eafc1=a265_0xfe49,_0x118ace=installBuiltinSkill(_0x444d84);if(_0x118ace['ok']){const _0x5e8544=_0x118ace[_0x1eafc1(0x1cb)]?_0x1eafc1(0x1c7):_0x1eafc1(0x1b7),_0x45d98c=_0x118ace['installedPath']?_0x1eafc1(0x1ba)+_0x118ace[_0x1eafc1(0x1b3)]:_0x1eafc1(0x1bc);return console['log'](_0x1eafc1(0x1c1)+_0x118ace[_0x1eafc1(0x1b6)]+'\x20'+_0x5e8544+_0x45d98c),_0x118ace;}const _0x32ff72='[BUILTIN_SKILL_INSTALL_'+(_0x118ace[_0x1eafc1(0x1bd)]??_0x1eafc1(0x1c3))+']\x20'+(_0x118ace[_0x1eafc1(0x1b9)]??'Installation\x20failed')+'.\x20'+(_0x1eafc1(0x1c9)+_0x118ace['repairCommand']);if(_0x118ace[_0x1eafc1(0x1bd)]===_0x1eafc1(0x1b4))throw new Error(_0x32ff72);return console[_0x1eafc1(0x1ca)](_0x32ff72),_0x118ace;}
@@ -1 +1 @@
1
- (function(_0x5c1dfb,_0x9b40b8){const _0x5bc37d=a258_0x6539,_0x2de3e5=_0x5c1dfb();while(!![]){try{const _0x21f6f5=parseInt(_0x5bc37d(0x103))/0x1*(-parseInt(_0x5bc37d(0x10c))/0x2)+parseInt(_0x5bc37d(0x110))/0x3*(parseInt(_0x5bc37d(0x10f))/0x4)+-parseInt(_0x5bc37d(0xfb))/0x5+parseInt(_0x5bc37d(0x109))/0x6+parseInt(_0x5bc37d(0x107))/0x7+-parseInt(_0x5bc37d(0x105))/0x8+parseInt(_0x5bc37d(0x102))/0x9;if(_0x21f6f5===_0x9b40b8)break;else _0x2de3e5['push'](_0x2de3e5['shift']());}catch(_0x1d8f8e){_0x2de3e5['push'](_0x2de3e5['shift']());}}}(a258_0x4538,0xdca20));function a258_0x4538(){const _0x9dad6=['.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','3468588beXStW','risk','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','68cAkbqr','trim','write','293324WhmoVz','51tBwRuq','8501435KUamqJ','replace','This\x20will\x20run\x20the\x20write\x20','confirmationDescription','high-risk-write','slice','.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','25446501wQhLRT','28309gsrUus','This\x20will\x20run\x20the\x20high-risk\x20write\x20','9448608TqOPwQ','string','668269EpdnHz'];a258_0x4538=function(){return _0x9dad6;};return a258_0x4538();}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x20df52,_0x3989ef,_0x240867){const _0x84870=a258_0x6539,_0x5273e4=normalizeText(_0x20df52[_0x84870(0xfe)],DESCRIPTION_MAX_LENGTH),_0x13a5bc=_0x5273e4||normalizeText(defaultDescription(requireWriteRisk(_0x20df52),_0x3989ef),DESCRIPTION_MAX_LENGTH);return{'operation':_0x3989ef,'risk':requireWriteRisk(_0x20df52),'description':_0x13a5bc,..._0x240867?{'signal':_0x240867}:{}};}function requireWriteRisk(_0x37267e){const _0x296b46=a258_0x6539;if(_0x37267e[_0x296b46(0x10a)]===_0x296b46(0x10e)||_0x37267e[_0x296b46(0x10a)]===_0x296b46(0xff))return _0x37267e[_0x296b46(0x10a)];throw new Error(_0x296b46(0x10b));}function a258_0x6539(_0x256457,_0xd7e8af){_0x256457=_0x256457-0xfb;const _0x453864=a258_0x4538();let _0x653906=_0x453864[_0x256457];return _0x653906;}function defaultDescription(_0x47e8c7,_0x463576){const _0x8dda1d=a258_0x6539;if(_0x47e8c7==='high-risk-write')return _0x8dda1d(0x104)+_0x463576+_0x8dda1d(0x101);return _0x8dda1d(0xfd)+_0x463576+_0x8dda1d(0x108);}function normalizeText(_0x3d81d7,_0x2c5b7c){const _0x4c3671=a258_0x6539;if(typeof _0x3d81d7!==_0x4c3671(0x106))return'';return _0x3d81d7[_0x4c3671(0xfc)](/[\u0000-\u001f\u007f]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x4c3671(0x10d)]()[_0x4c3671(0x100)](0x0,_0x2c5b7c);}
1
+ function a266_0x2d99(){const _0x3a0f5c=['write','94135aCnLhi','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','6471464AdCfTY','confirmationDescription','replace','slice','1393546okYGUl','string','58965080gVuUSK','This\x20will\x20run\x20the\x20high-risk\x20write\x20','This\x20will\x20run\x20the\x20write\x20','risk','8006957DUccDz','540QWCDss','.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','1564983ayMsBo','2256206tFgQyT'];a266_0x2d99=function(){return _0x3a0f5c;};return a266_0x2d99();}(function(_0x390847,_0x5d81e0){const _0x3c6da0=a266_0x39b5,_0x2c91e0=_0x390847();while(!![]){try{const _0x132eab=-parseInt(_0x3c6da0(0xfb))/0x1+-parseInt(_0x3c6da0(0x105))/0x2+parseInt(_0x3c6da0(0x104))/0x3+-parseInt(_0x3c6da0(0xf7))/0x4+parseInt(_0x3c6da0(0xf4))/0x5*(-parseInt(_0x3c6da0(0x102))/0x6)+-parseInt(_0x3c6da0(0x101))/0x7+parseInt(_0x3c6da0(0xfd))/0x8;if(_0x132eab===_0x5d81e0)break;else _0x2c91e0['push'](_0x2c91e0['shift']());}catch(_0x248d9f){_0x2c91e0['push'](_0x2c91e0['shift']());}}}(a266_0x2d99,0xdf444));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x1761e4,_0x49b700,_0x2bc126){const _0x4a7cae=a266_0x39b5,_0x32436a=normalizeText(_0x1761e4[_0x4a7cae(0xf8)],DESCRIPTION_MAX_LENGTH),_0x1f917e=_0x32436a||normalizeText(defaultDescription(requireWriteRisk(_0x1761e4),_0x49b700),DESCRIPTION_MAX_LENGTH);return{'operation':_0x49b700,'risk':requireWriteRisk(_0x1761e4),'description':_0x1f917e,..._0x2bc126?{'signal':_0x2bc126}:{}};}function requireWriteRisk(_0x290d79){const _0x23f24b=a266_0x39b5;if(_0x290d79[_0x23f24b(0x100)]===_0x23f24b(0xf3)||_0x290d79[_0x23f24b(0x100)]==='high-risk-write')return _0x290d79[_0x23f24b(0x100)];throw new Error(_0x23f24b(0xf5));}function a266_0x39b5(_0x2e16d6,_0x51f1d5){_0x2e16d6=_0x2e16d6-0xf3;const _0x2d9997=a266_0x2d99();let _0x39b55d=_0x2d9997[_0x2e16d6];return _0x39b55d;}function defaultDescription(_0x5413f1,_0x14c957){const _0x3baed6=a266_0x39b5;if(_0x5413f1==='high-risk-write')return _0x3baed6(0xfe)+_0x14c957+_0x3baed6(0x103);return _0x3baed6(0xff)+_0x14c957+_0x3baed6(0xf6);}function normalizeText(_0x3fe086,_0xd3c3a0){const _0x2a7a64=a266_0x39b5;if(typeof _0x3fe086!==_0x2a7a64(0xfc))return'';return _0x3fe086[_0x2a7a64(0xf9)](/[\u0000-\u001f\u007f]+/g,'\x20')['replace'](/\s+/g,'\x20')['trim']()[_0x2a7a64(0xfa)](0x0,_0xd3c3a0);}
@@ -1 +1 @@
1
- function a259_0x48c0(_0x2b6dbe,_0x2fdfbd){_0x2b6dbe=_0x2b6dbe-0x19f;var _0x19131e=a259_0x1913();var _0x48c078=_0x19131e[_0x2b6dbe];return _0x48c078;}(function(_0x5ad9df,_0x28ada3){var _0x3d0dfe=a259_0x48c0,_0x572772=_0x5ad9df();while(!![]){try{var _0x48f5c8=-parseInt(_0x3d0dfe(0x1a0))/0x1*(parseInt(_0x3d0dfe(0x1a9))/0x2)+-parseInt(_0x3d0dfe(0x1ae))/0x3+parseInt(_0x3d0dfe(0x1a7))/0x4*(parseInt(_0x3d0dfe(0x1a3))/0x5)+-parseInt(_0x3d0dfe(0x1b0))/0x6*(parseInt(_0x3d0dfe(0x1ac))/0x7)+-parseInt(_0x3d0dfe(0x1a6))/0x8+parseInt(_0x3d0dfe(0x1a8))/0x9*(-parseInt(_0x3d0dfe(0x1af))/0xa)+parseInt(_0x3d0dfe(0x1a5))/0xb;if(_0x48f5c8===_0x28ada3)break;else _0x572772['push'](_0x572772['shift']());}catch(_0x3a300b){_0x572772['push'](_0x572772['shift']());}}}(a259_0x1913,0x7e154));function a259_0x1913(){var _0x38534e=['244uObree','14166xHQpfd','42134MaLioL','trim','risk','298039ooBMcb','filter','1680765NtErSQ','1310TdpxAO','114utMfMz','write','command','split','37Vviwmw','high-risk-write','service','37785NHOjvt','join','35171345CRQPzN','6296360QwjbCn'];a259_0x1913=function(){return _0x38534e;};return a259_0x1913();}export function canonicalRabetbaseOperation(_0x3d187f){var _0x3e4235=a259_0x48c0;return[_0x3d187f[_0x3e4235(0x1a2)],..._0x3d187f[_0x3e4235(0x1b2)][_0x3e4235(0x1aa)]()[_0x3e4235(0x19f)](/\s+/)][_0x3e4235(0x1ad)](Boolean)[_0x3e4235(0x1a4)]('.');}export function createRabetbaseWriteMetadata(_0x460b12,_0x3bdbd4,_0x104355,_0x299125){var _0x45a2ca=a259_0x48c0;if(_0x299125||_0x104355['ok']!==!![]||_0x460b12['risk']!==_0x45a2ca(0x1b1)&&_0x460b12['risk']!==_0x45a2ca(0x1a1))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':'rabetbase.write.completed','operation':_0x3bdbd4,'risk':_0x460b12[_0x45a2ca(0x1ab)]}}};}
1
+ function a267_0x2fc6(_0x158535,_0x241c48){_0x158535=_0x158535-0xac;var _0x53b808=a267_0x53b8();var _0x2fc6d1=_0x53b808[_0x158535];return _0x2fc6d1;}(function(_0x3e59f0,_0x402242){var _0x16dc70=a267_0x2fc6,_0x469291=_0x3e59f0();while(!![]){try{var _0x14586e=parseInt(_0x16dc70(0xb2))/0x1+parseInt(_0x16dc70(0xb6))/0x2*(parseInt(_0x16dc70(0xbf))/0x3)+-parseInt(_0x16dc70(0xba))/0x4*(-parseInt(_0x16dc70(0xb7))/0x5)+parseInt(_0x16dc70(0xbc))/0x6*(-parseInt(_0x16dc70(0xbe))/0x7)+parseInt(_0x16dc70(0xb1))/0x8*(-parseInt(_0x16dc70(0xae))/0x9)+parseInt(_0x16dc70(0xb5))/0xa+parseInt(_0x16dc70(0xaf))/0xb*(-parseInt(_0x16dc70(0xb0))/0xc);if(_0x14586e===_0x402242)break;else _0x469291['push'](_0x469291['shift']());}catch(_0x403e69){_0x469291['push'](_0x469291['shift']());}}}(a267_0x53b8,0x4049f));export function canonicalRabetbaseOperation(_0x1ff4b6){var _0x36c423=a267_0x2fc6;return[_0x1ff4b6[_0x36c423(0xb9)],..._0x1ff4b6[_0x36c423(0xb3)][_0x36c423(0xb4)]()[_0x36c423(0xad)](/\s+/)]['filter'](Boolean)[_0x36c423(0xbd)]('.');}export function createRabetbaseWriteMetadata(_0x3e566d,_0xfb7de9,_0x5a3a02,_0x556245){var _0x7c81f=a267_0x2fc6;if(_0x556245||_0x5a3a02['ok']!==!![]||_0x3e566d[_0x7c81f(0xb8)]!=='write'&&_0x3e566d[_0x7c81f(0xb8)]!==_0x7c81f(0xac))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x7c81f(0xbb),'operation':_0xfb7de9,'risk':_0x3e566d['risk']}}};}function a267_0x53b8(){var _0x59d1b0=['31782tWMJVf','join','56FkwaiV','384681viOKxr','high-risk-write','split','187281PwjCux','21362WzZFib','372lSAHDg','200bCCtid','419762bCSwFr','command','trim','2893640VBWroQ','2qYmhMv','81295rdXtxV','risk','service','12imIwYU','rabetbase.write.completed'];a267_0x53b8=function(){return _0x59d1b0;};return a267_0x53b8();}
@@ -1 +1 @@
1
- (function(_0x3a32be,_0x2a92d2){const _0xfb6758=a260_0x24b5,_0x646969=_0x3a32be();while(!![]){try{const _0x363f7a=-parseInt(_0xfb6758(0x13b))/0x1+-parseInt(_0xfb6758(0x147))/0x2*(-parseInt(_0xfb6758(0x123))/0x3)+-parseInt(_0xfb6758(0x13a))/0x4*(parseInt(_0xfb6758(0x13c))/0x5)+parseInt(_0xfb6758(0x12f))/0x6*(parseInt(_0xfb6758(0x132))/0x7)+-parseInt(_0xfb6758(0x125))/0x8*(-parseInt(_0xfb6758(0x137))/0x9)+parseInt(_0xfb6758(0x12a))/0xa*(-parseInt(_0xfb6758(0x130))/0xb)+parseInt(_0xfb6758(0x12d))/0xc*(parseInt(_0xfb6758(0x144))/0xd);if(_0x363f7a===_0x2a92d2)break;else _0x646969['push'](_0x646969['shift']());}catch(_0x5688b4){_0x646969['push'](_0x646969['shift']());}}}(a260_0x232a,0xdd9d1));function a260_0x232a(){const _0x566b7d=['signal','high-risk-write','dryRun','17950rLmMHM','definition','execute','192tPMyZp','dry-run','78BXpsEL','6941jNVJSy','riskLevel','973vRjywS','confirm','risk','aborted','message','279HRvKuA','command','confirmation','120844ABVzOZ','1640696WsXkcG','210KyWVCq','isNonInteractive','write','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','reason','rawFlags','stringify','AbortError','2792803XMVqXW','present','data','1634tJPbMA','Rabetbase\x20invocation\x20aborted.','result','12hqiHVd','presentation','389048MBahfZ','format'];a260_0x232a=function(){return _0x566b7d;};return a260_0x232a();}import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';function a260_0x24b5(_0x38d3ca,_0x111f01){_0x38d3ca=_0x38d3ca-0x123;const _0x232a21=a260_0x232a();let _0x24b5b6=_0x232a21[_0x38d3ca];return _0x24b5b6;}import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x371da5,command:_0x2d4bbe,risk:_0x7d53f0,dryRun:_0x338439}){const _0x40747b=a260_0x24b5;return JSON[_0x40747b(0x142)]({'ok':_0x371da5['ok'],'command':_0x2d4bbe,'risk':_0x7d53f0,..._0x338439?{'dryRun':!![]}:{},..._0x371da5[_0x40747b(0x146)]!==undefined?{'data':_0x371da5[_0x40747b(0x146)]}:{},..._0x371da5['message']?{'message':_0x371da5[_0x40747b(0x136)]}:{}});}};export async function invokeRabetbase(_0x295a1a,_0x1af237){const _0x29560a=a260_0x24b5;throwIfAborted(_0x1af237[_0x29560a(0x127)]);const _0x4d16d2=await resolveRabetbaseInvocation(_0x295a1a),_0x460a7f=canonicalRabetbaseOperation(_0x4d16d2[_0x29560a(0x12b)]);return await confirmWriteBeforeQueue(_0x4d16d2[_0x29560a(0x12b)],_0x4d16d2[_0x29560a(0x141)],_0x460a7f,_0x1af237),runSerialized(async()=>{const _0x1a29db=_0x29560a,_0x2c02aa={};try{throwIfAborted(_0x1af237['signal']);const _0x5da35b=buildConfigFromFlags(_0x4d16d2[_0x1a29db(0x141)]);await initGlobalEnvironment(_0x5da35b);const _0xc083bf=createPipelineEnv(_0x5da35b,{..._0x4d16d2[_0x1a29db(0x141)],'yes':_0x4d16d2[_0x1a29db(0x12b)][_0x1a29db(0x134)]===_0x1a29db(0x128)?!![]:_0x4d16d2['rawFlags']['yes'],'nonInteractive':!![]},_0x4d16d2['args']);_0xc083bf[_0x1a29db(0x13d)]=!![],_0xc083bf[_0x1a29db(0x131)]=_0x1a29db(0x128);const _0x26d439=withAbortSignal(_0x4d16d2['definition'],_0x1af237['signal']),_0x50acf4=createRabetbaseRunnerAdapter({'formatOutput'(_0x537eae,_0x12f422){const _0x5e69ee=_0x1a29db;_0x2c02aa[_0x5e69ee(0x149)]=_0x537eae,_0x2c02aa[_0x5e69ee(0x138)]=_0x12f422['command'],_0x2c02aa[_0x5e69ee(0x134)]=_0x12f422[_0x5e69ee(0x134)],_0x2c02aa['format']=_0x12f422[_0x5e69ee(0x126)],_0x2c02aa[_0x5e69ee(0x129)]=_0x12f422[_0x5e69ee(0x129)]===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.');}});await runCommand(_0x26d439,_0xc083bf,_0x50acf4);if(!_0x2c02aa[_0x1a29db(0x149)]||!_0x2c02aa['command']||!_0x2c02aa[_0x1a29db(0x134)]||!_0x2c02aa[_0x1a29db(0x126)])throw new Error(_0x1a29db(0x13f));const _0x558273=_0x2c02aa['dryRun']===!![],_0x37e006=_0x1af237[_0x1a29db(0x124)]??defaultPresentation,_0x3fa8d9={'result':_0x2c02aa['result'],'command':_0x2c02aa[_0x1a29db(0x138)],'operation':_0x460a7f,'risk':_0x2c02aa[_0x1a29db(0x134)],'format':_0x2c02aa['format'],'dryRun':_0x558273},_0x470564=createRabetbaseWriteMetadata(_0x4d16d2[_0x1a29db(0x12b)],_0x460a7f,_0x2c02aa[_0x1a29db(0x149)],_0x558273);let _0x4db3a4;try{_0x4db3a4=await _0x37e006['present'](_0x3fa8d9);}catch(_0x3b4336){if(!_0x470564||_0x37e006===defaultPresentation)throw _0x3b4336;_0x4db3a4=await defaultPresentation[_0x1a29db(0x145)](_0x3fa8d9);}return{'operation':_0x460a7f,'risk':_0x2c02aa[_0x1a29db(0x134)],'mode':_0x558273?_0x1a29db(0x12e):_0x1a29db(0x12c),'result':_0x2c02aa[_0x1a29db(0x149)],'output':_0x4db3a4,..._0x470564?{'metadata':_0x470564}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x2180df,_0x16b7bd,_0x328fed,_0x295e95){const _0x1fd009=a260_0x24b5;if(_0x16b7bd[_0x1fd009(0x129)]===!![]||_0x2180df['risk']!==_0x1fd009(0x13e)&&_0x2180df[_0x1fd009(0x134)]!==_0x1fd009(0x128))return;await _0x295e95[_0x1fd009(0x139)][_0x1fd009(0x133)](buildRabetbaseConfirmationRequest(_0x2180df,_0x328fed,_0x295e95[_0x1fd009(0x127)]));}function withAbortSignal(_0xfc6b52,_0x227303){return{..._0xfc6b52,async 'execute'(_0x381268){const _0x5ecb6f=a260_0x24b5;return throwIfAborted(_0x227303),_0xfc6b52[_0x5ecb6f(0x12c)](_0x381268);}};}function throwIfAborted(_0x1a8e8a){const _0x2c7183=a260_0x24b5;if(_0x1a8e8a?.[_0x2c7183(0x135)])throw _0x1a8e8a['reason']instanceof Error?_0x1a8e8a[_0x2c7183(0x140)]:new DOMException(_0x2c7183(0x148),_0x2c7183(0x143));}
1
+ (function(_0x1608f5,_0x261488){const _0x1e380e=a268_0x2bf2,_0x322685=_0x1608f5();while(!![]){try{const _0x6f989=parseInt(_0x1e380e(0xf1))/0x1+parseInt(_0x1e380e(0xe2))/0x2+-parseInt(_0x1e380e(0xe9))/0x3*(parseInt(_0x1e380e(0xe6))/0x4)+-parseInt(_0x1e380e(0xeb))/0x5*(parseInt(_0x1e380e(0xf9))/0x6)+-parseInt(_0x1e380e(0xf0))/0x7*(-parseInt(_0x1e380e(0xf6))/0x8)+parseInt(_0x1e380e(0xfb))/0x9+parseInt(_0x1e380e(0xec))/0xa*(-parseInt(_0x1e380e(0xe4))/0xb);if(_0x6f989===_0x261488)break;else _0x322685['push'](_0x322685['shift']());}catch(_0x5f2792){_0x322685['push'](_0x322685['shift']());}}}(a268_0xb617,0x468b3));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';function a268_0x2bf2(_0x44bdba,_0x2b6812){_0x44bdba=_0x44bdba-0xe0;const _0xb617f4=a268_0xb617();let _0x2bf2da=_0xb617f4[_0x44bdba];return _0x2bf2da;}import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x9e0b7a,command:_0x105bee,risk:_0x2f58f0,dryRun:_0x19ce7e}){const _0x48e84f=a268_0x2bf2;return JSON[_0x48e84f(0xe0)]({'ok':_0x9e0b7a['ok'],'command':_0x105bee,'risk':_0x2f58f0,..._0x19ce7e?{'dryRun':!![]}:{},..._0x9e0b7a['data']!==undefined?{'data':_0x9e0b7a[_0x48e84f(0xf2)]}:{},..._0x9e0b7a[_0x48e84f(0x103)]?{'message':_0x9e0b7a[_0x48e84f(0x103)]}:{}});}};export async function invokeRabetbase(_0x49bcf9,_0x18c847){const _0x54a826=a268_0x2bf2;throwIfAborted(_0x18c847[_0x54a826(0xe3)]);const _0x51e845=await resolveRabetbaseInvocation(_0x49bcf9),_0x1bda7a=canonicalRabetbaseOperation(_0x51e845[_0x54a826(0xed)]);return await confirmWriteBeforeQueue(_0x51e845[_0x54a826(0xed)],_0x51e845[_0x54a826(0xf5)],_0x1bda7a,_0x18c847),runSerialized(async()=>{const _0x375961=_0x54a826,_0x2a436f={};try{throwIfAborted(_0x18c847[_0x375961(0xe3)]);const _0x21b892=buildConfigFromFlags(_0x51e845['rawFlags']);await initGlobalEnvironment(_0x21b892);const _0x5cc726=createPipelineEnv(_0x21b892,{..._0x51e845[_0x375961(0xf5)],'yes':_0x51e845[_0x375961(0xed)]['risk']===_0x375961(0x104)?!![]:_0x51e845['rawFlags'][_0x375961(0x105)],'nonInteractive':!![]},_0x51e845[_0x375961(0x100)]);_0x5cc726['isNonInteractive']=!![],_0x5cc726[_0x375961(0xff)]='high-risk-write';const _0x3ce753=withAbortSignal(_0x51e845[_0x375961(0xed)],_0x18c847[_0x375961(0xe3)]),_0x17efd3=createRabetbaseRunnerAdapter({'formatOutput'(_0x4344d4,_0x2dd26d){const _0xfcdb89=_0x375961;_0x2a436f['result']=_0x4344d4,_0x2a436f['command']=_0x2dd26d['command'],_0x2a436f['risk']=_0x2dd26d['risk'],_0x2a436f[_0xfcdb89(0xe1)]=_0x2dd26d['format'],_0x2a436f[_0xfcdb89(0xfa)]=_0x2dd26d[_0xfcdb89(0xfa)]===!![];},async 'confirmHighRisk'(){const _0x3ee74d=_0x375961;throw new Error(_0x3ee74d(0xfe));}});await runCommand(_0x3ce753,_0x5cc726,_0x17efd3);if(!_0x2a436f[_0x375961(0xf8)]||!_0x2a436f['command']||!_0x2a436f['risk']||!_0x2a436f[_0x375961(0xe1)])throw new Error(_0x375961(0xf3));const _0x3f7fe7=_0x2a436f[_0x375961(0xfa)]===!![],_0x8b49ff=_0x18c847[_0x375961(0xfd)]??defaultPresentation,_0x445802={'result':_0x2a436f[_0x375961(0xf8)],'command':_0x2a436f[_0x375961(0xe7)],'operation':_0x1bda7a,'risk':_0x2a436f[_0x375961(0xfc)],'format':_0x2a436f[_0x375961(0xe1)],'dryRun':_0x3f7fe7},_0x3be11c=createRabetbaseWriteMetadata(_0x51e845[_0x375961(0xed)],_0x1bda7a,_0x2a436f[_0x375961(0xf8)],_0x3f7fe7);let _0x327bd7;try{_0x327bd7=await _0x8b49ff[_0x375961(0x102)](_0x445802);}catch(_0x28f396){if(!_0x3be11c||_0x8b49ff===defaultPresentation)throw _0x28f396;_0x327bd7=await defaultPresentation[_0x375961(0x102)](_0x445802);}return{'operation':_0x1bda7a,'risk':_0x2a436f[_0x375961(0xfc)],'mode':_0x3f7fe7?_0x375961(0xe5):_0x375961(0xea),'result':_0x2a436f[_0x375961(0xf8)],'output':_0x327bd7,..._0x3be11c?{'metadata':_0x3be11c}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}function a268_0xb617(){const _0x53e4d5=['present','message','high-risk-write','yes','stringify','format','859254aDzHDT','signal','11664796JiGEcK','dry-run','4udkBSA','command','Rabetbase\x20invocation\x20aborted.','529989NfhVTu','execute','1365QWFhvF','10nZuXgQ','definition','reason','confirmation','1219743mBmuUG','441956kuCaiB','data','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','aborted','rawFlags','24gobqNx','write','result','4014nYAjQQ','dryRun','2829177tCDzBo','risk','presentation','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','riskLevel','args','AbortError'];a268_0xb617=function(){return _0x53e4d5;};return a268_0xb617();}async function confirmWriteBeforeQueue(_0x73f44,_0x3ff766,_0x21e2bc,_0xde72bb){const _0x70bb5b=a268_0x2bf2;if(_0x3ff766[_0x70bb5b(0xfa)]===!![]||_0x73f44[_0x70bb5b(0xfc)]!==_0x70bb5b(0xf7)&&_0x73f44[_0x70bb5b(0xfc)]!=='high-risk-write')return;await _0xde72bb[_0x70bb5b(0xef)]['confirm'](buildRabetbaseConfirmationRequest(_0x73f44,_0x21e2bc,_0xde72bb[_0x70bb5b(0xe3)]));}function withAbortSignal(_0x5cc42a,_0x45c769){return{..._0x5cc42a,async 'execute'(_0x3f2dab){return throwIfAborted(_0x45c769),_0x5cc42a['execute'](_0x3f2dab);}};}function throwIfAborted(_0x32597c){const _0x2486fe=a268_0x2bf2;if(_0x32597c?.[_0x2486fe(0xf4)])throw _0x32597c[_0x2486fe(0xee)]instanceof Error?_0x32597c[_0x2486fe(0xee)]:new DOMException(_0x2486fe(0xe8),_0x2486fe(0x101));}
@@ -1 +1 @@
1
- function a261_0x19ea(_0x337d3b,_0x3af81c){_0x337d3b=_0x337d3b-0x1c2;const _0x1cdacd=a261_0x1cda();let _0x19ea7d=_0x1cdacd[_0x337d3b];return _0x19ea7d;}const a261_0x5d4f30=a261_0x19ea;(function(_0x4973fc,_0xa6a9b5){const _0x244fd1=a261_0x19ea,_0x5a9197=_0x4973fc();while(!![]){try{const _0x34c6ea=-parseInt(_0x244fd1(0x1c6))/0x1*(-parseInt(_0x244fd1(0x1c4))/0x2)+-parseInt(_0x244fd1(0x1c8))/0x3+-parseInt(_0x244fd1(0x1c5))/0x4+parseInt(_0x244fd1(0x1ce))/0x5*(parseInt(_0x244fd1(0x1c7))/0x6)+-parseInt(_0x244fd1(0x1cd))/0x7+parseInt(_0x244fd1(0x1ca))/0x8*(parseInt(_0x244fd1(0x1c2))/0x9)+-parseInt(_0x244fd1(0x1c9))/0xa*(-parseInt(_0x244fd1(0x1cc))/0xb);if(_0x34c6ea===_0xa6a9b5)break;else _0x5a9197['push'](_0x5a9197['shift']());}catch(_0x278b30){_0x5a9197['push'](_0x5a9197['shift']());}}}(a261_0x1cda,0x62ae6));function a261_0x1cda(){const _0x42bbda=['1394048RwViKJ','21lCsObb','354ikSLMH','165321QyfvHC','50EkRtLM','3228728YSdHIF','catch','463353ANHPGC','5434709VVrbUJ','53855pIEQPb','9xqzPGO','resolve','31858TYmMgW'];a261_0x1cda=function(){return _0x42bbda;};return a261_0x1cda();}let tail=Promise[a261_0x5d4f30(0x1c3)]();export async function runSerialized(_0x2e6f94){const _0x19449e=a261_0x5d4f30,_0x2762f0=tail;let _0x147552;tail=new Promise(_0x1ab2ca=>{_0x147552=_0x1ab2ca;}),await _0x2762f0[_0x19449e(0x1cb)](()=>undefined);try{return await _0x2e6f94();}finally{_0x147552();}}
1
+ function a269_0x2987(_0x4f41ac,_0x34ec8c){_0x4f41ac=_0x4f41ac-0x121;const _0x2a7c47=a269_0x2a7c();let _0x29872d=_0x2a7c47[_0x4f41ac];return _0x29872d;}(function(_0x146a8c,_0x2f5ab8){const _0x57f9f1=a269_0x2987,_0x319bfd=_0x146a8c();while(!![]){try{const _0x2acbc7=-parseInt(_0x57f9f1(0x122))/0x1+-parseInt(_0x57f9f1(0x127))/0x2+-parseInt(_0x57f9f1(0x129))/0x3*(parseInt(_0x57f9f1(0x125))/0x4)+parseInt(_0x57f9f1(0x126))/0x5+-parseInt(_0x57f9f1(0x123))/0x6+parseInt(_0x57f9f1(0x128))/0x7*(parseInt(_0x57f9f1(0x124))/0x8)+parseInt(_0x57f9f1(0x12a))/0x9*(parseInt(_0x57f9f1(0x121))/0xa);if(_0x2acbc7===_0x2f5ab8)break;else _0x319bfd['push'](_0x319bfd['shift']());}catch(_0x2efe77){_0x319bfd['push'](_0x319bfd['shift']());}}}(a269_0x2a7c,0x95062));let tail=Promise['resolve']();function a269_0x2a7c(){const _0x5dbd0f=['112ERZwDC','87EHOuMP','144JFjjyK','786810lNNqeE','731622jyjksh','1364376xCGkCJ','472488PdralF','115196OJlhOP','3425220VPevAY','968650WidRBI'];a269_0x2a7c=function(){return _0x5dbd0f;};return a269_0x2a7c();}export async function runSerialized(_0x4ef923){const _0x588878=tail;let _0x41e9a3;tail=new Promise(_0x5068d0=>{_0x41e9a3=_0x5068d0;}),await _0x588878['catch'](()=>undefined);try{return await _0x4ef923();}finally{_0x41e9a3();}}
@@ -1 +1 @@
1
- function a262_0x4b4a(_0xefe94b,_0x171dab){_0xefe94b=_0xefe94b-0x8a;const _0x48325c=a262_0x4832();let _0x4b4a8f=_0x48325c[_0xefe94b];return _0x4b4a8f;}(function(_0x274b7b,_0x1d96a7){const _0x42c5f6=a262_0x4b4a,_0x398094=_0x274b7b();while(!![]){try{const _0x56d7c4=parseInt(_0x42c5f6(0x96))/0x1+parseInt(_0x42c5f6(0x9b))/0x2+parseInt(_0x42c5f6(0x8a))/0x3+parseInt(_0x42c5f6(0x8b))/0x4+-parseInt(_0x42c5f6(0x92))/0x5+parseInt(_0x42c5f6(0x91))/0x6*(parseInt(_0x42c5f6(0xa0))/0x7)+parseInt(_0x42c5f6(0x9e))/0x8*(-parseInt(_0x42c5f6(0x8d))/0x9);if(_0x56d7c4===_0x1d96a7)break;else _0x398094['push'](_0x398094['shift']());}catch(_0x1a157f){_0x398094['push'](_0x398094['shift']());}}}(a262_0x4832,0x6a04d));import a262_0x3be618 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a262_0x4832(){const _0x3fd10b=['join','47080PKYFSe','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','message','88Tsgvls','hint','9429qiUaSS','flags','2579376ApCSeF','2220428ZDAHkU','wildcardDef','386910BYMVWz','input','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','246XnKfuj','3895725CAodYh','unknownCommand','validation','defaultCommand','192622yLFwyZ','slice','run','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.'];a262_0x4832=function(){return _0x3fd10b;};return a262_0x4832();}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveRabetbaseInvocation(_0x57af66){const _0x43fe83=a262_0x4b4a,_0xdc523a=a262_0x3be618('',{'importMeta':import.meta,'argv':[..._0x57af66],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x4b97c0=[..._0xdc523a[_0x43fe83(0x8e)]],_0x9a46a1=_0xdc523a[_0x43fe83(0xa1)],_0x189980=_0x4b97c0[0x0];if(!_0x189980)throw CliErrors['validation'](_0x43fe83(0x99));const _0xc471a8=resolveRemovedCommand(_0x189980,_0x4b97c0[0x1]);if(_0xc471a8)throw CliErrors['validation'](_0xc471a8[_0x43fe83(0x9d)],_0xc471a8[_0x43fe83(0x9f)]);if(_0x189980===_0x43fe83(0x98))throw CliErrors[_0x43fe83(0x94)](_0x43fe83(0x9c),_0x43fe83(0x8f));if(!isKnownService(_0x189980))throw CliErrors['unknownCommand'](_0x4b97c0[_0x43fe83(0x9a)]('\x20'));const _0x2eb942=getServiceEntry(_0x189980),_0x85f926=_0x4b97c0[0x1],_0x3b3dc1=_0x85f926||_0x2eb942[_0x43fe83(0x95)];if(!_0x3b3dc1){if(_0x2eb942['wildcardDef'])return{'definition':_0x2eb942['wildcardDef'],'rawFlags':_0x9a46a1,'args':[]};throw CliErrors['validation'](_0x43fe83(0x90)+_0x189980+'\x22.');}const _0x20a782=findDefinition(_0x189980,_0x3b3dc1);if(_0x20a782)return{'definition':_0x20a782,'rawFlags':_0x9a46a1,'args':_0x4b97c0[_0x43fe83(0x97)](0x2)};if(_0x2eb942[_0x43fe83(0x8c)])return{'definition':_0x2eb942[_0x43fe83(0x8c)],'rawFlags':_0x9a46a1,'args':[_0x3b3dc1,..._0x4b97c0['slice'](0x2)]};throw CliErrors[_0x43fe83(0x93)](_0x189980+'\x20'+_0x3b3dc1);}
1
+ function a270_0x248f(){const _0x4d1c57=['61185jLXRPT','slice','2238723PZZXLH','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','203SduPkB','4327988gRvlRR','run','validation','defaultCommand','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','8HKrXEJ','7255490ougWlv','unknownCommand','33226630ldhlkD','input','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','210965RkLBbS','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','89682OHfZAv','2cBfAja','wildcardDef','flags'];a270_0x248f=function(){return _0x4d1c57;};return a270_0x248f();}(function(_0xe1eabb,_0x1e1276){const _0xe83f32=a270_0x52e2,_0x31614f=_0xe1eabb();while(!![]){try{const _0x11c71c=parseInt(_0xe83f32(0x134))/0x1*(-parseInt(_0xe83f32(0x137))/0x2)+-parseInt(_0xe83f32(0x124))/0x3+-parseInt(_0xe83f32(0x129))/0x4+-parseInt(_0xe83f32(0x12f))/0x5+parseInt(_0xe83f32(0x136))/0x6*(parseInt(_0xe83f32(0x128))/0x7)+-parseInt(_0xe83f32(0x12e))/0x8*(parseInt(_0xe83f32(0x126))/0x9)+parseInt(_0xe83f32(0x131))/0xa;if(_0x11c71c===_0x1e1276)break;else _0x31614f['push'](_0x31614f['shift']());}catch(_0x52b6d0){_0x31614f['push'](_0x31614f['shift']());}}}(a270_0x248f,0xb560c));import a270_0x4d0e46 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a270_0x52e2(_0x5a793e,_0x3e3695){_0x5a793e=_0x5a793e-0x123;const _0x248f70=a270_0x248f();let _0x52e2c0=_0x248f70[_0x5a793e];return _0x52e2c0;}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveRabetbaseInvocation(_0x21e291){const _0x467a4c=a270_0x52e2,_0x31ca10=a270_0x4d0e46('',{'importMeta':import.meta,'argv':[..._0x21e291],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x26c33a=[..._0x31ca10[_0x467a4c(0x132)]],_0x1a4cea=_0x31ca10[_0x467a4c(0x123)],_0x44cd0b=_0x26c33a[0x0];if(!_0x44cd0b)throw CliErrors[_0x467a4c(0x12b)](_0x467a4c(0x135));const _0xe38dd3=resolveRemovedCommand(_0x44cd0b,_0x26c33a[0x1]);if(_0xe38dd3)throw CliErrors[_0x467a4c(0x12b)](_0xe38dd3['message'],_0xe38dd3['hint']);if(_0x44cd0b===_0x467a4c(0x12a))throw CliErrors[_0x467a4c(0x12b)](_0x467a4c(0x133),_0x467a4c(0x127));if(!isKnownService(_0x44cd0b))throw CliErrors[_0x467a4c(0x130)](_0x26c33a['join']('\x20'));const _0xaaae5b=getServiceEntry(_0x44cd0b),_0xf2e7a3=_0x26c33a[0x1],_0x3cb93a=_0xf2e7a3||_0xaaae5b[_0x467a4c(0x12c)];if(!_0x3cb93a){if(_0xaaae5b[_0x467a4c(0x138)])return{'definition':_0xaaae5b[_0x467a4c(0x138)],'rawFlags':_0x1a4cea,'args':[]};throw CliErrors[_0x467a4c(0x12b)](_0x467a4c(0x12d)+_0x44cd0b+'\x22.');}const _0x2b580d=findDefinition(_0x44cd0b,_0x3cb93a);if(_0x2b580d)return{'definition':_0x2b580d,'rawFlags':_0x1a4cea,'args':_0x26c33a[_0x467a4c(0x125)](0x2)};if(_0xaaae5b[_0x467a4c(0x138)])return{'definition':_0xaaae5b['wildcardDef'],'rawFlags':_0x1a4cea,'args':[_0x3cb93a,..._0x26c33a['slice'](0x2)]};throw CliErrors[_0x467a4c(0x130)](_0x44cd0b+'\x20'+_0x3cb93a);}
@@ -1 +1 @@
1
- const a264_0x2147dd=a264_0x529e;(function(_0x2fa37f,_0x1c4eb3){const _0x2864fb=a264_0x529e,_0x390b56=_0x2fa37f();while(!![]){try{const _0xf887bd=-parseInt(_0x2864fb(0x1e4))/0x1+parseInt(_0x2864fb(0x1f0))/0x2*(parseInt(_0x2864fb(0x1f8))/0x3)+parseInt(_0x2864fb(0x1ee))/0x4+-parseInt(_0x2864fb(0x1e8))/0x5+parseInt(_0x2864fb(0x1d4))/0x6*(parseInt(_0x2864fb(0x1cd))/0x7)+parseInt(_0x2864fb(0x1ce))/0x8+parseInt(_0x2864fb(0x1da))/0x9*(-parseInt(_0x2864fb(0x1dd))/0xa);if(_0xf887bd===_0x1c4eb3)break;else _0x390b56['push'](_0x390b56['shift']());}catch(_0xe3889e){_0x390b56['push'](_0x390b56['shift']());}}}(a264_0x192e,0x85ea1));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';function a264_0x192e(){const _0x3de0d3=['45378ceAjXw','message','INSTALL_FAILED','Unsafe\x20manifest\x20path:\x20','4284695UoZOCt','root','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','isFile','schemaVersion','includes','347132gHSHtA','missing','2TDazqy','unknown','error','skipped','rabetbase\x20cli-skill\x20install','utf8','name','installedPath','2263899bllPgg','startsWith','reason','digest','Symbolic\x20link\x20is\x20not\x20allowed:\x20','files','absent','SKILL.md','skillVersion','package.json','manifest','path','present','unverifiable','join','parse','568309yEnZnf','7398216QefCTS','current','split','version','flatMap','version_mismatch','72tnXQpo','isSymbolicLink','skills@latest\x20exited\x20','trim','home','packageVersion','1055133vUPzPw','state','update','110icsgjN','Installed\x20Skill\x20state\x20is\x20','sha256','VERIFY_FAILED','packageRoot','rabetbase.manifest.json','isDirectory'];a264_0x192e=function(){return _0x3de0d3;};return a264_0x192e();}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=a264_0x2147dd(0x1f4),SKILL_NAME='rabetbase';function a264_0x529e(_0x55959a,_0x25e06c){_0x55959a=_0x55959a-0x1ca;const _0x192e6b=a264_0x192e();let _0x529ef2=_0x192e6b[_0x55959a];return _0x529ef2;}function frontmatterValue(_0x498a1f,_0x43d302){const _0x5859a5=a264_0x2147dd;return _0x498a1f['match'](new RegExp('^'+_0x43d302+':\x5cs*(.+)$','m'))?.[0x1]?.[_0x5859a5(0x1d7)]()??'';}function listFiles(_0x36070e,_0x2f11e9=_0x36070e){const _0xdbb1f1=a264_0x2147dd;return readdirSync(_0x2f11e9,{'withFileTypes':!![]})[_0xdbb1f1(0x1d2)](_0x42ff31=>{const _0x298987=_0xdbb1f1,_0xd5f8c9=join(_0x2f11e9,_0x42ff31[_0x298987(0x1f6)]),_0x5df64c=lstatSync(_0xd5f8c9);if(_0x5df64c[_0x298987(0x1d5)]())throw new Error(_0x298987(0x1fc)+_0xd5f8c9);if(_0x5df64c[_0x298987(0x1e3)]())return listFiles(_0x36070e,_0xd5f8c9);if(!_0x5df64c[_0x298987(0x1eb)]())throw new Error('Unsupported\x20Skill\x20entry:\x20'+_0xd5f8c9);return[relative(_0x36070e,_0xd5f8c9)[_0x298987(0x1d0)](sep)[_0x298987(0x1cb)]('/')];})['sort']((_0x3ae4a2,_0x9e72a6)=>_0x3ae4a2<_0x9e72a6?-0x1:_0x3ae4a2>_0x9e72a6?0x1:0x0);}function digestFiles(_0x3851e9,_0x13bab8){const _0x3dcf5d=a264_0x2147dd,_0x1112bf=createHash(_0x3dcf5d(0x1df));for(const _0x2420c3 of _0x13bab8){if(_0x2420c3[_0x3dcf5d(0x1f9)]('/')||_0x2420c3['split']('/')[_0x3dcf5d(0x1ed)]('..')||_0x2420c3[_0x3dcf5d(0x1ed)]('\x5c'))throw new Error(_0x3dcf5d(0x1e7)+_0x2420c3);_0x1112bf[_0x3dcf5d(0x1dc)](_0x2420c3),_0x1112bf[_0x3dcf5d(0x1dc)]('\x00'),_0x1112bf[_0x3dcf5d(0x1dc)](readFileSync(join(_0x3851e9,..._0x2420c3[_0x3dcf5d(0x1d0)]('/')))),_0x1112bf[_0x3dcf5d(0x1dc)]('\x00');}return _0x1112bf[_0x3dcf5d(0x1fb)]('hex');}function sameFiles(_0x5eb156,_0x475e54){return _0x5eb156['length']===_0x475e54['length']&&_0x5eb156['every']((_0xdecc61,_0x5496ec)=>_0xdecc61===_0x475e54[_0x5496ec]);}function readSource(_0x471b8a){const _0x113e60=a264_0x2147dd,_0x5028a1=JSON[_0x113e60(0x1cc)](readFileSync(join(_0x471b8a,_0x113e60(0x201)),_0x113e60(0x1f5))),_0x1488ac=JSON[_0x113e60(0x1cc)](readFileSync(join(_0x471b8a,'skills',_0x113e60(0x1e2)),_0x113e60(0x1f5))),_0x1dfc98=join(_0x471b8a,'skills',SKILL_NAME),_0x3cbe32=frontmatterValue(readFileSync(join(_0x1dfc98,_0x113e60(0x1ff)),_0x113e60(0x1f5)),_0x113e60(0x1d1)),_0x1e1e87=listFiles(_0x1dfc98);if(_0x1488ac[_0x113e60(0x1ec)]!==0x1||_0x1488ac[_0x113e60(0x1f6)]!==SKILL_NAME||!_0x5028a1[_0x113e60(0x1d1)]||_0x1488ac[_0x113e60(0x1d9)]!==_0x5028a1[_0x113e60(0x1d1)]||_0x1488ac[_0x113e60(0x200)]!==_0x5028a1[_0x113e60(0x1d1)]||_0x3cbe32!==_0x5028a1[_0x113e60(0x1d1)]||!sameFiles(_0x1e1e87,_0x1488ac[_0x113e60(0x1fd)])||digestFiles(_0x1dfc98,_0x1e1e87)!==_0x1488ac[_0x113e60(0x1fb)])throw new Error(_0x113e60(0x1ea));return{'packageVersion':_0x5028a1['version'],'skillVersion':_0x3cbe32,'root':_0x1dfc98,'manifest':_0x1488ac};}function installedSkillPath(_0xbdb35){const _0x11a321=a264_0x2147dd,_0x28b05c=resolveInstalledSkill(SKILL_NAME,{'home':_0xbdb35});if(_0x28b05c['state']==='present')return{'state':_0x11a321(0x204),'path':dirname(_0x28b05c['path'])};if(_0x28b05c[_0x11a321(0x1db)]===_0x11a321(0x1fe))return{'state':_0x11a321(0x1ef)};return{'state':'unverifiable','reason':_0x28b05c[_0x11a321(0x1fa)]};}export function inspectInstalledBuiltinSkillVersion(_0x2f4bfc,_0x2ca282={}){const _0x1bfac4=a264_0x2147dd,_0x40346b=installedSkillPath(_0x2ca282[_0x1bfac4(0x1d8)]??homedir());if(_0x40346b[_0x1bfac4(0x1db)]==='missing')return{'state':_0x1bfac4(0x1ef),'expectedVersion':_0x2f4bfc,'repairCommand':REPAIR_COMMAND};if(_0x40346b['state']===_0x1bfac4(0x1ca))return{'state':'unverifiable','expectedVersion':_0x2f4bfc,'reason':_0x40346b['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x8306a7=frontmatterValue(readFileSync(join(_0x40346b[_0x1bfac4(0x203)],_0x1bfac4(0x1ff)),_0x1bfac4(0x1f5)),_0x1bfac4(0x1d1));return{'state':_0x8306a7===_0x2f4bfc?_0x1bfac4(0x1cf):_0x1bfac4(0x1d3),'expectedVersion':_0x2f4bfc,'skillVersion':_0x8306a7,'installedPath':_0x40346b[_0x1bfac4(0x203)],'repairCommand':REPAIR_COMMAND};}catch(_0x1fa58f){return{'state':_0x1bfac4(0x1ca),'expectedVersion':_0x2f4bfc,'installedPath':_0x40346b[_0x1bfac4(0x203)],'reason':_0x1fa58f instanceof Error?_0x1fa58f[_0x1bfac4(0x1e5)]:String(_0x1fa58f),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x473bba={}){const _0xdf9f14=a264_0x2147dd,_0x18b84d=_0x473bba['packageRoot']??DEFAULT_PACKAGE_ROOT;let _0x17d4fe;try{_0x17d4fe=readSource(_0x18b84d);}catch(_0x493df4){return{'state':'unverifiable','packageVersion':'unknown','reason':_0x493df4 instanceof Error?_0x493df4[_0xdf9f14(0x1e5)]:String(_0x493df4),'repairCommand':REPAIR_COMMAND};}const _0xb9f5c7=installedSkillPath(_0x473bba[_0xdf9f14(0x1d8)]??homedir());if(_0xb9f5c7[_0xdf9f14(0x1db)]===_0xdf9f14(0x1ef))return{'state':'missing','packageVersion':_0x17d4fe['packageVersion'],'repairCommand':REPAIR_COMMAND};if(_0xb9f5c7[_0xdf9f14(0x1db)]===_0xdf9f14(0x1ca))return{'state':_0xdf9f14(0x1ca),'packageVersion':_0x17d4fe[_0xdf9f14(0x1d9)],'reason':_0xb9f5c7['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x793453=frontmatterValue(readFileSync(join(_0xb9f5c7[_0xdf9f14(0x203)],'SKILL.md'),_0xdf9f14(0x1f5)),'version');if(_0x793453!==_0x17d4fe['skillVersion'])return{'state':_0xdf9f14(0x1d3),'packageVersion':_0x17d4fe[_0xdf9f14(0x1d9)],'skillVersion':_0x793453,'installedPath':_0xb9f5c7['path'],'repairCommand':REPAIR_COMMAND};const _0x42bc32=listFiles(_0xb9f5c7[_0xdf9f14(0x203)]),_0x5f0cc2=digestFiles(_0xb9f5c7['path'],_0x42bc32);return{'state':sameFiles(_0x42bc32,_0x17d4fe[_0xdf9f14(0x202)][_0xdf9f14(0x1fd)])&&_0x5f0cc2===_0x17d4fe[_0xdf9f14(0x202)]['digest']?_0xdf9f14(0x1cf):'content_mismatch','packageVersion':_0x17d4fe[_0xdf9f14(0x1d9)],'skillVersion':_0x793453,'installedPath':_0xb9f5c7[_0xdf9f14(0x203)],'digest':_0x5f0cc2,'repairCommand':REPAIR_COMMAND};}catch(_0x5de423){return{'state':_0xdf9f14(0x1ca),'packageVersion':_0x17d4fe['packageVersion'],'installedPath':_0xb9f5c7[_0xdf9f14(0x203)],'reason':_0x5de423 instanceof Error?_0x5de423[_0xdf9f14(0x1e5)]:String(_0x5de423),'repairCommand':REPAIR_COMMAND};}}function failure(_0x10bef9,_0x16abf0,_0x208e5d,_0x40c032){const _0xddfc3a=a264_0x2147dd;return{'ok':![],'code':_0x10bef9,'packageVersion':_0x16abf0[_0xddfc3a(0x1d9)],'skillVersion':_0x16abf0[_0xddfc3a(0x200)],'installedPath':_0x40c032,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x208e5d instanceof Error?_0x208e5d[_0xddfc3a(0x1e5)]:String(_0x208e5d)};}export function installBuiltinSkill(_0x4a195f={}){const _0x427da5=a264_0x2147dd,_0x671cf4=_0x4a195f[_0x427da5(0x1e1)]??DEFAULT_PACKAGE_ROOT,_0x4db92b=_0x4a195f[_0x427da5(0x1d8)]??homedir();let _0x2d0cef;try{_0x2d0cef=readSource(_0x671cf4);}catch(_0x5d21f3){return failure('SOURCE_INVALID',{'packageVersion':'unknown','skillVersion':_0x427da5(0x1f1)},_0x5d21f3);}const _0x32ae67=inspectBuiltinSkill({'packageRoot':_0x671cf4,'home':_0x4db92b}),_0x4f20b7=runNpxSkillsAddGlobal(_0x671cf4,_0x2d0cef[_0x427da5(0x1e9)],{'stdio':_0x4a195f['stdio']??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0x4db92b}});if(_0x4f20b7[_0x427da5(0x1f3)])return{'ok':!![],'packageVersion':_0x2d0cef[_0x427da5(0x1d9)],'skillVersion':_0x2d0cef['skillVersion'],'installedPath':_0x32ae67['installedPath'],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x4f20b7['ok'])return failure(_0x427da5(0x1e6),_0x2d0cef,_0x4f20b7[_0x427da5(0x1f2)]??_0x427da5(0x1d6)+_0x4f20b7['status']);const _0x18a040=inspectBuiltinSkill({'packageRoot':_0x671cf4,'home':_0x4db92b});if(_0x18a040[_0x427da5(0x1db)]!==_0x427da5(0x1cf))return failure(_0x427da5(0x1e0),_0x2d0cef,_0x18a040[_0x427da5(0x1fa)]??_0x427da5(0x1de)+_0x18a040[_0x427da5(0x1db)],_0x18a040[_0x427da5(0x1f7)]);return{'ok':!![],'packageVersion':_0x2d0cef[_0x427da5(0x1d9)],'skillVersion':_0x2d0cef[_0x427da5(0x200)],'installedPath':_0x18a040[_0x427da5(0x1f7)],'changed':_0x32ae67[_0x427da5(0x1db)]!==_0x427da5(0x1cf),'repairCommand':REPAIR_COMMAND};}
1
+ const a272_0x2b3ec6=a272_0x37cd;(function(_0x519b91,_0x387d7c){const _0x16fa3f=a272_0x37cd,_0x3e8c4d=_0x519b91();while(!![]){try{const _0x9f6931=parseInt(_0x16fa3f(0xbd))/0x1+parseInt(_0x16fa3f(0xc6))/0x2*(-parseInt(_0x16fa3f(0xd0))/0x3)+-parseInt(_0x16fa3f(0x9b))/0x4+parseInt(_0x16fa3f(0xcd))/0x5*(-parseInt(_0x16fa3f(0xd3))/0x6)+-parseInt(_0x16fa3f(0xd5))/0x7*(parseInt(_0x16fa3f(0x9c))/0x8)+-parseInt(_0x16fa3f(0xc7))/0x9+-parseInt(_0x16fa3f(0xa7))/0xa*(-parseInt(_0x16fa3f(0xa8))/0xb);if(_0x9f6931===_0x387d7c)break;else _0x3e8c4d['push'](_0x3e8c4d['shift']());}catch(_0x208bb3){_0x3e8c4d['push'](_0x3e8c4d['shift']());}}}(a272_0x5365,0xbd2eb));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';function a272_0x37cd(_0x1d223c,_0x50cb4f){_0x1d223c=_0x1d223c-0x9b;const _0x536517=a272_0x5365();let _0x37cd40=_0x536517[_0x1d223c];return _0x37cd40;}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=a272_0x2b3ec6(0xcb);function a272_0x5365(){const _0xf272c=['content_mismatch','906VnOumx','skills','12481ITxqJg','version','state','packageRoot','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','sort','SOURCE_INVALID','files','error','2046348rsRXug','4272oeaZLU','skillVersion','match','trim','hex','utf8','parse','package.json','version_mismatch','packageVersion','manifest','170NLGpTC','2987831dZXDhm','INSTALL_FAILED','Unsafe\x20manifest\x20path:\x20','missing','isFile','skipped','unverifiable','join','VERIFY_FAILED','root','installedPath','split','home','startsWith','update','length','pipe','SKILL.md',':\x5cs*(.+)$','Unsupported\x20Skill\x20entry:\x20','includes','837113DPcPkl','rabetbase.manifest.json','message','stdio','Symbolic\x20link\x20is\x20not\x20allowed:\x20','path','skills@latest\x20exited\x20','digest','present','30kvjTGS','5974362mGXNlq','absent','status','name','rabetbase','unknown','38410wVdEgR','sha256','isDirectory','278454TLMFvQ','reason'];a272_0x5365=function(){return _0xf272c;};return a272_0x5365();}function frontmatterValue(_0x1a6fd6,_0x6fc9a1){const _0x3bce0b=a272_0x2b3ec6;return _0x1a6fd6[_0x3bce0b(0x9e)](new RegExp('^'+_0x6fc9a1+_0x3bce0b(0xba),'m'))?.[0x1]?.[_0x3bce0b(0x9f)]()??'';}function listFiles(_0x3365f6,_0x45ea96=_0x3365f6){const _0x554db8=a272_0x2b3ec6;return readdirSync(_0x45ea96,{'withFileTypes':!![]})['flatMap'](_0x4dc99a=>{const _0x22b5d7=a272_0x37cd,_0xeb61de=join(_0x45ea96,_0x4dc99a[_0x22b5d7(0xca)]),_0x23bec8=lstatSync(_0xeb61de);if(_0x23bec8['isSymbolicLink']())throw new Error(_0x22b5d7(0xc1)+_0xeb61de);if(_0x23bec8[_0x22b5d7(0xcf)]())return listFiles(_0x3365f6,_0xeb61de);if(!_0x23bec8[_0x22b5d7(0xac)]())throw new Error(_0x22b5d7(0xbb)+_0xeb61de);return[relative(_0x3365f6,_0xeb61de)[_0x22b5d7(0xb3)](sep)[_0x22b5d7(0xaf)]('/')];})[_0x554db8(0xda)]((_0x55bb2b,_0x24eb30)=>_0x55bb2b<_0x24eb30?-0x1:_0x55bb2b>_0x24eb30?0x1:0x0);}function digestFiles(_0x35b612,_0x58e405){const _0x585b22=a272_0x2b3ec6,_0x349895=createHash(_0x585b22(0xce));for(const _0x2f028a of _0x58e405){if(_0x2f028a[_0x585b22(0xb5)]('/')||_0x2f028a[_0x585b22(0xb3)]('/')[_0x585b22(0xbc)]('..')||_0x2f028a[_0x585b22(0xbc)]('\x5c'))throw new Error(_0x585b22(0xaa)+_0x2f028a);_0x349895[_0x585b22(0xb6)](_0x2f028a),_0x349895['update']('\x00'),_0x349895['update'](readFileSync(join(_0x35b612,..._0x2f028a[_0x585b22(0xb3)]('/')))),_0x349895['update']('\x00');}return _0x349895[_0x585b22(0xc4)](_0x585b22(0xa0));}function sameFiles(_0x4df822,_0x3076c2){const _0x6db44e=a272_0x2b3ec6;return _0x4df822[_0x6db44e(0xb7)]===_0x3076c2[_0x6db44e(0xb7)]&&_0x4df822['every']((_0xfe8c54,_0x4c7b78)=>_0xfe8c54===_0x3076c2[_0x4c7b78]);}function readSource(_0x2eef70){const _0x2aa4f3=a272_0x2b3ec6,_0x2df45d=JSON[_0x2aa4f3(0xa2)](readFileSync(join(_0x2eef70,_0x2aa4f3(0xa3)),'utf8')),_0x459dc8=JSON[_0x2aa4f3(0xa2)](readFileSync(join(_0x2eef70,_0x2aa4f3(0xd4),_0x2aa4f3(0xbe)),'utf8')),_0x17fdbf=join(_0x2eef70,_0x2aa4f3(0xd4),SKILL_NAME),_0x966703=frontmatterValue(readFileSync(join(_0x17fdbf,_0x2aa4f3(0xb9)),_0x2aa4f3(0xa1)),_0x2aa4f3(0xd6)),_0x4acc4b=listFiles(_0x17fdbf);if(_0x459dc8['schemaVersion']!==0x1||_0x459dc8[_0x2aa4f3(0xca)]!==SKILL_NAME||!_0x2df45d[_0x2aa4f3(0xd6)]||_0x459dc8[_0x2aa4f3(0xa5)]!==_0x2df45d[_0x2aa4f3(0xd6)]||_0x459dc8[_0x2aa4f3(0x9d)]!==_0x2df45d[_0x2aa4f3(0xd6)]||_0x966703!==_0x2df45d[_0x2aa4f3(0xd6)]||!sameFiles(_0x4acc4b,_0x459dc8[_0x2aa4f3(0xdc)])||digestFiles(_0x17fdbf,_0x4acc4b)!==_0x459dc8['digest'])throw new Error(_0x2aa4f3(0xd9));return{'packageVersion':_0x2df45d[_0x2aa4f3(0xd6)],'skillVersion':_0x966703,'root':_0x17fdbf,'manifest':_0x459dc8};}function installedSkillPath(_0x359c64){const _0x56928e=a272_0x2b3ec6,_0x123945=resolveInstalledSkill(SKILL_NAME,{'home':_0x359c64});if(_0x123945['state']==='present')return{'state':_0x56928e(0xc5),'path':dirname(_0x123945[_0x56928e(0xc2)])};if(_0x123945['state']===_0x56928e(0xc8))return{'state':'missing'};return{'state':_0x56928e(0xae),'reason':_0x123945[_0x56928e(0xd1)]};}export function inspectInstalledBuiltinSkillVersion(_0x3e07d4,_0x21f215={}){const _0x256c56=a272_0x2b3ec6,_0x27b249=installedSkillPath(_0x21f215[_0x256c56(0xb4)]??homedir());if(_0x27b249[_0x256c56(0xd7)]===_0x256c56(0xab))return{'state':_0x256c56(0xab),'expectedVersion':_0x3e07d4,'repairCommand':REPAIR_COMMAND};if(_0x27b249[_0x256c56(0xd7)]===_0x256c56(0xae))return{'state':'unverifiable','expectedVersion':_0x3e07d4,'reason':_0x27b249[_0x256c56(0xd1)],'repairCommand':REPAIR_COMMAND};try{const _0x41fe97=frontmatterValue(readFileSync(join(_0x27b249[_0x256c56(0xc2)],_0x256c56(0xb9)),_0x256c56(0xa1)),_0x256c56(0xd6));return{'state':_0x41fe97===_0x3e07d4?'current':_0x256c56(0xa4),'expectedVersion':_0x3e07d4,'skillVersion':_0x41fe97,'installedPath':_0x27b249['path'],'repairCommand':REPAIR_COMMAND};}catch(_0x6a9bbd){return{'state':'unverifiable','expectedVersion':_0x3e07d4,'installedPath':_0x27b249[_0x256c56(0xc2)],'reason':_0x6a9bbd instanceof Error?_0x6a9bbd[_0x256c56(0xbf)]:String(_0x6a9bbd),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x3884a0={}){const _0x4a1110=a272_0x2b3ec6,_0x39ab5e=_0x3884a0[_0x4a1110(0xd8)]??DEFAULT_PACKAGE_ROOT;let _0x147317;try{_0x147317=readSource(_0x39ab5e);}catch(_0x5c6e37){return{'state':'unverifiable','packageVersion':_0x4a1110(0xcc),'reason':_0x5c6e37 instanceof Error?_0x5c6e37['message']:String(_0x5c6e37),'repairCommand':REPAIR_COMMAND};}const _0xb03b2a=installedSkillPath(_0x3884a0[_0x4a1110(0xb4)]??homedir());if(_0xb03b2a['state']===_0x4a1110(0xab))return{'state':_0x4a1110(0xab),'packageVersion':_0x147317[_0x4a1110(0xa5)],'repairCommand':REPAIR_COMMAND};if(_0xb03b2a['state']===_0x4a1110(0xae))return{'state':'unverifiable','packageVersion':_0x147317['packageVersion'],'reason':_0xb03b2a[_0x4a1110(0xd1)],'repairCommand':REPAIR_COMMAND};try{const _0x1ae1db=frontmatterValue(readFileSync(join(_0xb03b2a[_0x4a1110(0xc2)],_0x4a1110(0xb9)),_0x4a1110(0xa1)),_0x4a1110(0xd6));if(_0x1ae1db!==_0x147317[_0x4a1110(0x9d)])return{'state':_0x4a1110(0xa4),'packageVersion':_0x147317[_0x4a1110(0xa5)],'skillVersion':_0x1ae1db,'installedPath':_0xb03b2a['path'],'repairCommand':REPAIR_COMMAND};const _0x5658ac=listFiles(_0xb03b2a['path']),_0x557a30=digestFiles(_0xb03b2a[_0x4a1110(0xc2)],_0x5658ac);return{'state':sameFiles(_0x5658ac,_0x147317['manifest'][_0x4a1110(0xdc)])&&_0x557a30===_0x147317[_0x4a1110(0xa6)]['digest']?'current':_0x4a1110(0xd2),'packageVersion':_0x147317['packageVersion'],'skillVersion':_0x1ae1db,'installedPath':_0xb03b2a['path'],'digest':_0x557a30,'repairCommand':REPAIR_COMMAND};}catch(_0x33b7dd){return{'state':'unverifiable','packageVersion':_0x147317[_0x4a1110(0xa5)],'installedPath':_0xb03b2a[_0x4a1110(0xc2)],'reason':_0x33b7dd instanceof Error?_0x33b7dd['message']:String(_0x33b7dd),'repairCommand':REPAIR_COMMAND};}}function failure(_0x132d11,_0x1f5166,_0x5761e2,_0x136290){const _0x4ce8be=a272_0x2b3ec6;return{'ok':![],'code':_0x132d11,'packageVersion':_0x1f5166[_0x4ce8be(0xa5)],'skillVersion':_0x1f5166['skillVersion'],'installedPath':_0x136290,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x5761e2 instanceof Error?_0x5761e2[_0x4ce8be(0xbf)]:String(_0x5761e2)};}export function installBuiltinSkill(_0x4bace0={}){const _0x4d1b16=a272_0x2b3ec6,_0x228bfa=_0x4bace0[_0x4d1b16(0xd8)]??DEFAULT_PACKAGE_ROOT,_0x50b409=_0x4bace0[_0x4d1b16(0xb4)]??homedir();let _0x334c56;try{_0x334c56=readSource(_0x228bfa);}catch(_0x272451){return failure(_0x4d1b16(0xdb),{'packageVersion':_0x4d1b16(0xcc),'skillVersion':'unknown'},_0x272451);}const _0x1836bf=inspectBuiltinSkill({'packageRoot':_0x228bfa,'home':_0x50b409}),_0x549ea2=runNpxSkillsAddGlobal(_0x228bfa,_0x334c56[_0x4d1b16(0xb1)],{'stdio':_0x4bace0[_0x4d1b16(0xc0)]??_0x4d1b16(0xb8),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x50b409}});if(_0x549ea2[_0x4d1b16(0xad)])return{'ok':!![],'packageVersion':_0x334c56[_0x4d1b16(0xa5)],'skillVersion':_0x334c56[_0x4d1b16(0x9d)],'installedPath':_0x1836bf[_0x4d1b16(0xb2)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x549ea2['ok'])return failure(_0x4d1b16(0xa9),_0x334c56,_0x549ea2[_0x4d1b16(0xdd)]??_0x4d1b16(0xc3)+_0x549ea2[_0x4d1b16(0xc9)]);const _0x2cce4f=inspectBuiltinSkill({'packageRoot':_0x228bfa,'home':_0x50b409});if(_0x2cce4f[_0x4d1b16(0xd7)]!=='current')return failure(_0x4d1b16(0xb0),_0x334c56,_0x2cce4f[_0x4d1b16(0xd1)]??'Installed\x20Skill\x20state\x20is\x20'+_0x2cce4f['state'],_0x2cce4f[_0x4d1b16(0xb2)]);return{'ok':!![],'packageVersion':_0x334c56[_0x4d1b16(0xa5)],'skillVersion':_0x334c56[_0x4d1b16(0x9d)],'installedPath':_0x2cce4f[_0x4d1b16(0xb2)],'changed':_0x1836bf['state']!=='current','repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
1
- function a265_0x2159(_0x231715,_0x5ef9f4){_0x231715=_0x231715-0x191;const _0x3246fd=a265_0x3246();let _0x215990=_0x3246fd[_0x231715];return _0x215990;}(function(_0x611975,_0x2a9764){const _0x2f592c=a265_0x2159,_0x3dee1d=_0x611975();while(!![]){try{const _0x68c080=parseInt(_0x2f592c(0x1b3))/0x1+parseInt(_0x2f592c(0x1a8))/0x2*(parseInt(_0x2f592c(0x193))/0x3)+parseInt(_0x2f592c(0x1b5))/0x4+-parseInt(_0x2f592c(0x1a0))/0x5*(parseInt(_0x2f592c(0x19e))/0x6)+-parseInt(_0x2f592c(0x19c))/0x7*(parseInt(_0x2f592c(0x1af))/0x8)+parseInt(_0x2f592c(0x197))/0x9*(-parseInt(_0x2f592c(0x1b0))/0xa)+parseInt(_0x2f592c(0x1a5))/0xb*(parseInt(_0x2f592c(0x19b))/0xc);if(_0x68c080===_0x2a9764)break;else _0x3dee1d['push'](_0x3dee1d['shift']());}catch(_0x118943){_0x3dee1d['push'](_0x3dee1d['shift']());}}}(a265_0x3246,0xe4eb5));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(_0x54c97f){const _0x327a18=a265_0x2159,_0x2e1aa4=[];for(const [_0x1f6426,_0x5abe9d]of Object['entries'](_0x54c97f)){if(_0x5abe9d===!![]){const _0x3b5186=_0x1f6426[_0x327a18(0x195)](/([A-Z])/g,'-$1')[_0x327a18(0x1a1)]();_0x2e1aa4[_0x327a18(0x1a4)](_0x3b5186);}}return _0x2e1aa4;}export function parseDynamicFlags(){const _0x5e9b73=a265_0x2159,_0x4149ca=[];for(let _0x4fe9dd=0x3;_0x4fe9dd<process[_0x5e9b73(0x1aa)][_0x5e9b73(0x1b4)];_0x4fe9dd++){const _0x158999=process[_0x5e9b73(0x1aa)][_0x4fe9dd];if(_0x158999&&_0x158999['startsWith']('--')){const _0x5055b5=_0x158999['slice'](0x2);_0x5055b5&&!_0x5055b5['includes']('=')&&_0x4149ca[_0x5e9b73(0x1a4)](_0x5055b5);}}return _0x4149ca;}export function getAllProvidedFlags(_0x8d58a8){const _0x50734a=a265_0x2159,_0x409065=camelCaseFlagsToKebab(_0x8d58a8),_0x2a9803=parseDynamicFlags(),_0x354f56=new Set([..._0x409065,..._0x2a9803]);return Array[_0x50734a(0x191)](_0x354f56);}export function normalizeLegacyBffSaveFlags(_0x336d03){const _0x512c96=a265_0x2159,_0x290fbb=new Set(_0x336d03);return _0x290fbb[_0x512c96(0x1a3)](_0x512c96(0x19f))&&_0x290fbb[_0x512c96(0x1a2)](_0x512c96(0x19d)),Array[_0x512c96(0x191)](_0x290fbb);}function a265_0x3246(){const _0x5babbe=['exit','replace','(empty)','9WiBTuj','Unsupported\x20command:\x20','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','\x0aAvailable\x20commands:','156xmulzN','7483fexduQ','enable-bff-save','2122062eYmuGw','dangerously-bff-save','20VtvsGG','toLowerCase','add','has','push','185295vhDISk','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','Error:\x20Unsupported\x20command:\x20','1470dWVmRc','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','argv','cwd','help','--help','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','1328hHGpGi','2863090JoyjDW','log','skill','922314RQIgCm','length','2941980erAOUB','from','error','3834UDFWgY'];a265_0x3246=function(){return _0x5babbe;};return a265_0x3246();}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x5b9ea4,_0x5c410a,_0x4a230d){const _0x57e709=a265_0x2159;logger['setLogPath'](process[_0x57e709(0x1ab)]());if(_0x4a230d?.[_0x57e709(0x1ac)]||_0x5b9ea4===_0x57e709(0x1ad)){showHelp();return;}console[_0x57e709(0x192)](_0x57e709(0x1a7)+(_0x5b9ea4||_0x57e709(0x196))),console[_0x57e709(0x1b1)](_0x57e709(0x19a)),console[_0x57e709(0x1b1)]('\x20\x20'+CLI_BIN_NAME+_0x57e709(0x1a9)),console['log'](''),console['log']('Public\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0x57e709(0x192)](_0x57e709(0x1b2),_0x57e709(0x198)+_0x5b9ea4),process[_0x57e709(0x194)](0x1);}function showHelp(){const _0x2ba26a=a265_0x2159;console[_0x2ba26a(0x1b1)](_0x2ba26a(0x199)+CLI_BIN_NAME+_0x2ba26a(0x1a6)+SKILLS_INSTALL_COMMAND_LINE+_0x2ba26a(0x1ae));}
1
+ (function(_0x35c880,_0x117de7){const _0x37c1e7=a273_0x5949,_0x38532b=_0x35c880();while(!![]){try{const _0x2ca390=parseInt(_0x37c1e7(0xf9))/0x1+-parseInt(_0x37c1e7(0xe0))/0x2+-parseInt(_0x37c1e7(0xe7))/0x3+-parseInt(_0x37c1e7(0xe4))/0x4*(-parseInt(_0x37c1e7(0xec))/0x5)+parseInt(_0x37c1e7(0xe9))/0x6*(-parseInt(_0x37c1e7(0xf3))/0x7)+parseInt(_0x37c1e7(0xe2))/0x8*(-parseInt(_0x37c1e7(0xee))/0x9)+-parseInt(_0x37c1e7(0xe6))/0xa*(-parseInt(_0x37c1e7(0xea))/0xb);if(_0x2ca390===_0x117de7)break;else _0x38532b['push'](_0x38532b['shift']());}catch(_0x3227e7){_0x38532b['push'](_0x38532b['shift']());}}}(a273_0x4fb8,0xc1b72));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';function a273_0x4fb8(){const _0x598e09=['error','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','length','log','(empty)','slice','Unsupported\x20command:\x20','-$1','Error:\x20Unsupported\x20command:\x20','1043770DDmiFd','toLowerCase','8HvfvjR','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','1872PzPQJq','setLogPath','962430moFjUF','1938177JMbrsk','from','1841478itFhAx','99KAkxUR','Public\x20Open\x20Skill\x20source:\x20','13635BecjnI','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','1643184KqmQqJ','add','dangerously-bff-save','help','push','21ZyZnKt','enable-bff-save','\x0aAvailable\x20commands:','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','has','--help','922294txmQNN'];a273_0x4fb8=function(){return _0x598e09;};return a273_0x4fb8();}export function camelCaseFlagsToKebab(_0xe1a265){const _0xf5276a=a273_0x5949,_0x1f8664=[];for(const [_0x250b7a,_0x449aa2]of Object['entries'](_0xe1a265)){if(_0x449aa2===!![]){const _0x50d812=_0x250b7a['replace'](/([A-Z])/g,_0xf5276a(0xde))[_0xf5276a(0xe1)]();_0x1f8664[_0xf5276a(0xf2)](_0x50d812);}}return _0x1f8664;}function a273_0x5949(_0xedf0d9,_0x38f557){_0xedf0d9=_0xedf0d9-0xd8;const _0x4fb8fe=a273_0x4fb8();let _0x594939=_0x4fb8fe[_0xedf0d9];return _0x594939;}export function parseDynamicFlags(){const _0xe4a35f=a273_0x5949,_0x5ae7d7=[];for(let _0x494c9b=0x3;_0x494c9b<process['argv'][_0xe4a35f(0xd9)];_0x494c9b++){const _0x39af7b=process['argv'][_0x494c9b];if(_0x39af7b&&_0x39af7b['startsWith']('--')){const _0x30b46d=_0x39af7b[_0xe4a35f(0xdc)](0x2);_0x30b46d&&!_0x30b46d['includes']('=')&&_0x5ae7d7[_0xe4a35f(0xf2)](_0x30b46d);}}return _0x5ae7d7;}export function getAllProvidedFlags(_0x6d3417){const _0x58e217=camelCaseFlagsToKebab(_0x6d3417),_0x539bbe=parseDynamicFlags(),_0x1d6f22=new Set([..._0x58e217,..._0x539bbe]);return Array['from'](_0x1d6f22);}export function normalizeLegacyBffSaveFlags(_0xf7b4a9){const _0xe9587d=a273_0x5949,_0x156474=new Set(_0xf7b4a9);return _0x156474[_0xe9587d(0xf7)](_0xe9587d(0xf0))&&_0x156474[_0xe9587d(0xef)](_0xe9587d(0xf4)),Array[_0xe9587d(0xe8)](_0x156474);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x245a40,_0x48214d,_0x2fc9c4){const _0xbe64c2=a273_0x5949;logger[_0xbe64c2(0xe5)](process['cwd']());if(_0x2fc9c4?.[_0xbe64c2(0xf1)]||_0x245a40===_0xbe64c2(0xf8)){showHelp();return;}console[_0xbe64c2(0xfa)](_0xbe64c2(0xdf)+(_0x245a40||_0xbe64c2(0xdb))),console['log'](_0xbe64c2(0xf5)),console[_0xbe64c2(0xda)]('\x20\x20'+CLI_BIN_NAME+_0xbe64c2(0xe3)),console['log'](''),console[_0xbe64c2(0xda)](_0xbe64c2(0xeb)+SKILLS_INSTALL_COMMAND_LINE),logger[_0xbe64c2(0xfa)]('skill',_0xbe64c2(0xdd)+_0x245a40),process['exit'](0x1);}function showHelp(){const _0x32b4b0=a273_0x5949;console['log'](_0x32b4b0(0xed)+CLI_BIN_NAME+_0x32b4b0(0xd8)+SKILLS_INSTALL_COMMAND_LINE+_0x32b4b0(0xf6));}
@@ -1 +1 @@
1
- const a266_0x13b220=a266_0x1f0a;(function(_0x44d798,_0xeeeb){const _0x263c1b=a266_0x1f0a,_0x6167f7=_0x44d798();while(!![]){try{const _0x287d85=parseInt(_0x263c1b(0x15c))/0x1+parseInt(_0x263c1b(0x16c))/0x2*(parseInt(_0x263c1b(0x149))/0x3)+parseInt(_0x263c1b(0x15d))/0x4+-parseInt(_0x263c1b(0x148))/0x5+-parseInt(_0x263c1b(0x157))/0x6*(parseInt(_0x263c1b(0x160))/0x7)+parseInt(_0x263c1b(0x179))/0x8+-parseInt(_0x263c1b(0x159))/0x9;if(_0x287d85===_0xeeeb)break;else _0x6167f7['push'](_0x6167f7['shift']());}catch(_0x268e23){_0x6167f7['push'](_0x6167f7['shift']());}}}(a266_0xa076,0x43bac));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=a266_0x13b220(0x145);export const NPX_SKILLS_SUBCOMMAND_ADD=a266_0x13b220(0x16a);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a266_0x13b220(0x154);function a266_0xa076(){const _0x137e3b=['message','rabetbase','lovrabet/lovrabet-skill','error','filter','37356qnxsCu','Skill\x20\x22','6011991FDyFjb','join','unknown','157304VwenmT','1965816QbggEN','npm_config_global','PERMISSION_DENIED','7rclShj','inherit','status','stderr','NPX_NOT_FOUND','exit\x20','EPERM','stdout','EACCES','Installer\x20reported\x20','add','state','2JLTJny','present','CHILD_EXIT_NONZERO','reason','pipe','skill','absent','toString','ENOENT','expectedSkillName','warn','stdio','\x20failed\x20target(s)','4364648yevLGy','remove','npx\x20terminated\x20by\x20signal\x20','!\x20Could\x20not\x20verify\x20\x22','skills@latest','unverifiable','code','2736905paCnYG','914061Gcojpf','SPAWN_FAILED','CHILD_TERMINATED','SKILL_NOT_INSTALLED','NPM_CONFIG_GLOBAL','npx','push','log','signal'];a266_0xa076=function(){return _0x137e3b;};return a266_0xa076();}export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export const RABETBASE_GLOBAL_SKILL_NAME=a266_0x13b220(0x153);export const RABETBASE_SKILL_GIT_SOURCE='git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git';export function resolveGlobalSkillName(_0x188fbf){switch(_0x188fbf['trim']()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x32c04b){const _0x16d55d=a266_0x13b220,_0x5a846c=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x32c04b&&_0x5a846c[_0x16d55d(0x14f)](NPX_SKILLS_FLAG_SKILL,_0x32c04b),_0x5a846c;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a266_0x13b220(0x14e),...buildNpxSkillsAddArgv()][a266_0x13b220(0x15a)]('\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][a266_0x13b220(0x15a)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x1fe02b,_0x441c85,_0x262fd0){return{'ok':![],'status':_0x441c85,'code':_0x1fe02b,'error':'['+_0x1fe02b+']\x20'+_0x262fd0};}function a266_0x1f0a(_0x5b45ae,_0x359f0a){_0x5b45ae=_0x5b45ae-0x143;const _0xa07644=a266_0xa076();let _0x1f0a26=_0xa07644[_0x5b45ae];return _0x1f0a26;}function spawnOptions(_0x377a58,_0x8e61e){const _0x25c052=a266_0x13b220,_0x546655={...process.env};return delete _0x546655[_0x25c052(0x15e)],delete _0x546655[_0x25c052(0x14d)],{'cwd':_0x377a58,'stdio':_0x8e61e,'env':_0x546655,'shell':![],..._0x8e61e===_0x25c052(0x170)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x41b2ad,_0x243622,_0x3a0ed3,_0x61daa1){const _0x53e75d=a266_0x13b220,_0x30dba9=[_0x41b2ad[_0x53e75d(0x167)]?_0x41b2ad['stdout'][_0x53e75d(0x173)]():'',_0x41b2ad[_0x53e75d(0x163)]?_0x41b2ad[_0x53e75d(0x163)][_0x53e75d(0x173)]():''][_0x53e75d(0x156)](Boolean)[_0x53e75d(0x15a)]('\x0a')['trim']();_0x61daa1!==_0x53e75d(0x170)&&_0x30dba9&&console[_0x53e75d(0x150)](_0x30dba9);if(_0x41b2ad[_0x53e75d(0x155)]){const _0x217b5d=_0x41b2ad[_0x53e75d(0x155)],_0x34b527=_0x217b5d[_0x53e75d(0x147)]===_0x53e75d(0x174)?_0x53e75d(0x164):_0x217b5d[_0x53e75d(0x147)]===_0x53e75d(0x166)||_0x217b5d[_0x53e75d(0x147)]===_0x53e75d(0x168)?_0x53e75d(0x15f):_0x53e75d(0x14a);return failure(_0x34b527,_0x41b2ad[_0x53e75d(0x162)],_0x217b5d[_0x53e75d(0x152)]);}if(_0x41b2ad['signal'])return failure(_0x53e75d(0x14b),_0x41b2ad[_0x53e75d(0x162)],_0x53e75d(0x143)+_0x41b2ad[_0x53e75d(0x151)]);if(_0x41b2ad[_0x53e75d(0x162)]!==0x0)return failure(_0x53e75d(0x16e),_0x41b2ad[_0x53e75d(0x162)],_0x30dba9||_0x53e75d(0x165)+(_0x41b2ad[_0x53e75d(0x162)]??_0x53e75d(0x15b)));const _0x3a038e=_0x243622?resolveInstalledSkill(_0x243622,_0x3a0ed3):undefined,_0x7e6ac1=_0x30dba9['match'](/Failed to install\s+(\d+)/i);if(_0x7e6ac1&&Number(_0x7e6ac1[0x1])>0x0){const _0x2c79bd=_0x53e75d(0x169)+_0x7e6ac1[0x1]+_0x53e75d(0x178)+(_0x30dba9?':\x0a'+_0x30dba9:'');if(_0x3a038e?.[_0x53e75d(0x16b)]===_0x53e75d(0x16d))return console['warn']('!\x20'+_0x2c79bd),{'ok':!![],'status':0x0};return failure('INSTALL_PARTIAL',0x0,_0x2c79bd);}if(_0x3a038e){if(_0x3a038e[_0x53e75d(0x16b)]===_0x53e75d(0x172))return failure(_0x53e75d(0x14c),0x0,_0x53e75d(0x158)+_0x243622+'\x22\x20not\x20found\x20after\x20install\x20(checked\x20'+_0x3a038e['checked']['join'](',\x20')+')');_0x3a038e[_0x53e75d(0x16b)]===_0x53e75d(0x146)&&console[_0x53e75d(0x176)](_0x53e75d(0x144)+_0x243622+'\x22\x20install\x20state:\x20'+_0x3a038e[_0x53e75d(0x16f)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x261a3a,_0x10726e){const _0x70bb81=a266_0x13b220;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5340c5=_0x10726e?.[_0x70bb81(0x177)]??_0x70bb81(0x161),_0x2085da=resolveNpmBin(_0x70bb81(0x14e)),_0x4726b6=buildNpxSkillsAddArgv(_0x10726e?.[_0x70bb81(0x171)]),_0x587d79=['npx',..._0x4726b6]['join']('\x20');console[_0x70bb81(0x150)]('*\x20'+_0x587d79);const _0x2b3e1b=spawnSync(_0x2085da,_0x4726b6,spawnOptions(_0x261a3a,_0x5340c5));return normalizeSpawnResult(_0x2b3e1b,undefined,undefined,_0x5340c5);}export function runNpxSkillsRemove(_0x255854,_0x35c095,_0x46ee3f=LEGACY_RABETBASE_SKILL_SOURCE){const _0x2021b3=a266_0x13b220;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1a8edd=_0x35c095?.['stdio']??_0x2021b3(0x161),_0x2f4a30=resolveNpmBin(_0x2021b3(0x14e)),_0x4d2739=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x2021b3(0x17a),_0x46ee3f,NPX_SKILLS_FLAG_SKILL,_0x35c095?.[_0x2021b3(0x171)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x35c095?.['yes']?['-y']:[]],_0x52bea0=[_0x2f4a30,..._0x4d2739][_0x2021b3(0x15a)]('\x20');console[_0x2021b3(0x150)]('*\x20'+_0x52bea0);const _0x3c95dd=spawnSync(_0x2f4a30,_0x4d2739,spawnOptions(_0x255854,_0x1a8edd));return normalizeSpawnResult(_0x3c95dd,undefined,undefined,_0x1a8edd);}export function runNpxSkillsAddGlobal(_0x55f1ce,_0x110116,_0x4bd32d){const _0x4d16f5=a266_0x13b220;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x20e610=resolveNpmBin(_0x4d16f5(0x14e)),_0x5c6b7b=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x110116,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x36bb93=['npx',NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x110116,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x4d16f5(0x15a)]('\x20');console[_0x4d16f5(0x150)]('*\x20'+_0x36bb93);const _0x51160e=spawnSync(_0x20e610,_0x5c6b7b,spawnOptions(_0x55f1ce,_0x4d16f5(0x170)));return normalizeSpawnResult(_0x51160e,_0x4bd32d?.[_0x4d16f5(0x175)]??resolveGlobalSkillName(_0x110116),_0x4bd32d?.['presence'],_0x4bd32d?.[_0x4d16f5(0x177)]);}
1
+ const a274_0x21d758=a274_0x1e86;(function(_0x52c19b,_0x3add0d){const _0x119dd1=a274_0x1e86,_0x1e65dc=_0x52c19b();while(!![]){try{const _0x4d0d1d=parseInt(_0x119dd1(0x21c))/0x1+-parseInt(_0x119dd1(0x215))/0x2*(-parseInt(_0x119dd1(0x21f))/0x3)+-parseInt(_0x119dd1(0x208))/0x4*(parseInt(_0x119dd1(0x1ff))/0x5)+parseInt(_0x119dd1(0x229))/0x6+-parseInt(_0x119dd1(0x21d))/0x7*(parseInt(_0x119dd1(0x202))/0x8)+parseInt(_0x119dd1(0x22a))/0x9+-parseInt(_0x119dd1(0x1f7))/0xa*(-parseInt(_0x119dd1(0x21a))/0xb);if(_0x4d0d1d===_0x3add0d)break;else _0x1e65dc['push'](_0x1e65dc['shift']());}catch(_0x5d300f){_0x1e65dc['push'](_0x1e65dc['shift']());}}}(a274_0x495c,0x5db0b));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=a274_0x21d758(0x1f8);export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL=a274_0x21d758(0x222);export const RABETBASE_SKILL_SOURCE=a274_0x21d758(0x212);export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME=a274_0x21d758(0x227);function a274_0x495c(){const _0x42df0b=['CHILD_EXIT_NONZERO','2844472CONJwS','checked','state','rabetbase','status','match','\x22\x20install\x20state:\x20','SKILL_NOT_INSTALLED','toString','expectedSkillName','lovrabet/rabetbase','push','stdout','11306ZGCVlr','ENOENT','EPERM','PERMISSION_DENIED','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','2673781zyjOWG','trim','215493ZuJxkK','17297vMcBSK','stdio','78EAwNWH','inherit','SPAWN_FAILED','--skill','message','NPM_CONFIG_GLOBAL','npm_config_global','NPX_NOT_FOUND','Lovrabet','signal','3545700oAntGv','2932776kbhOlH','\x20failed\x20target(s)','warn','filter','error','skill','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','10izrkut','skills@latest','npx','Installer\x20reported\x20','join','code','unknown','absent','5UwLjva','pipe','unverifiable','1384fzREeL','INSTALL_PARTIAL','log','EACCES','!\x20Could\x20not\x20verify\x20\x22'];a274_0x495c=function(){return _0x42df0b;};return a274_0x495c();}export const RABETBASE_GLOBAL_SKILL_NAME=a274_0x21d758(0x20b);export const RABETBASE_SKILL_GIT_SOURCE=a274_0x21d758(0x1f6);export function resolveGlobalSkillName(_0xc63ec){switch(_0xc63ec['trim']()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}function a274_0x1e86(_0x2b2b96,_0x34425a){_0x2b2b96=_0x2b2b96-0x1f1;const _0x495c5c=a274_0x495c();let _0x1e8653=_0x495c5c[_0x2b2b96];return _0x1e8653;}export function buildNpxSkillsAddArgv(_0x509df9){const _0x383a5c=a274_0x21d758,_0xce34b8=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x509df9&&_0xce34b8[_0x383a5c(0x213)](NPX_SKILLS_FLAG_SKILL,_0x509df9),_0xce34b8;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a274_0x21d758(0x1f9),...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a274_0x21d758(0x1f9),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(_0x1d7f4b,_0x360c69,_0x464da7){return{'ok':![],'status':_0x360c69,'code':_0x1d7f4b,'error':'['+_0x1d7f4b+']\x20'+_0x464da7};}function spawnOptions(_0x5a07de,_0x315249){const _0x57491d=a274_0x21d758,_0x542567={...process.env};return delete _0x542567[_0x57491d(0x225)],delete _0x542567[_0x57491d(0x224)],{'cwd':_0x5a07de,'stdio':_0x315249,'env':_0x542567,'shell':![],..._0x315249===_0x57491d(0x200)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x195889,_0x516e44,_0x20d39e,_0x2ea240){const _0x532f67=a274_0x21d758,_0xee3082=[_0x195889[_0x532f67(0x214)]?_0x195889[_0x532f67(0x214)][_0x532f67(0x210)]():'',_0x195889['stderr']?_0x195889['stderr'][_0x532f67(0x210)]():''][_0x532f67(0x1f3)](Boolean)[_0x532f67(0x1fb)]('\x0a')[_0x532f67(0x21b)]();_0x2ea240!==_0x532f67(0x200)&&_0xee3082&&console[_0x532f67(0x204)](_0xee3082);if(_0x195889['error']){const _0x4e176c=_0x195889[_0x532f67(0x1f4)],_0x1de934=_0x4e176c['code']===_0x532f67(0x216)?_0x532f67(0x226):_0x4e176c[_0x532f67(0x1fc)]===_0x532f67(0x217)||_0x4e176c[_0x532f67(0x1fc)]===_0x532f67(0x205)?_0x532f67(0x218):_0x532f67(0x221);return failure(_0x1de934,_0x195889[_0x532f67(0x20c)],_0x4e176c[_0x532f67(0x223)]);}if(_0x195889['signal'])return failure('CHILD_TERMINATED',_0x195889[_0x532f67(0x20c)],'npx\x20terminated\x20by\x20signal\x20'+_0x195889[_0x532f67(0x228)]);if(_0x195889[_0x532f67(0x20c)]!==0x0)return failure(_0x532f67(0x207),_0x195889['status'],_0xee3082||'exit\x20'+(_0x195889[_0x532f67(0x20c)]??_0x532f67(0x1fd)));const _0x3f8d63=_0x516e44?resolveInstalledSkill(_0x516e44,_0x20d39e):undefined,_0x50ae4d=_0xee3082[_0x532f67(0x20d)](/Failed to install\s+(\d+)/i);if(_0x50ae4d&&Number(_0x50ae4d[0x1])>0x0){const _0x11f5c1=_0x532f67(0x1fa)+_0x50ae4d[0x1]+_0x532f67(0x1f1)+(_0xee3082?':\x0a'+_0xee3082:'');if(_0x3f8d63?.['state']==='present')return console[_0x532f67(0x1f2)]('!\x20'+_0x11f5c1),{'ok':!![],'status':0x0};return failure(_0x532f67(0x203),0x0,_0x11f5c1);}if(_0x3f8d63){if(_0x3f8d63['state']===_0x532f67(0x1fe))return failure(_0x532f67(0x20f),0x0,'Skill\x20\x22'+_0x516e44+_0x532f67(0x219)+_0x3f8d63[_0x532f67(0x209)]['join'](',\x20')+')');_0x3f8d63[_0x532f67(0x20a)]===_0x532f67(0x201)&&console[_0x532f67(0x1f2)](_0x532f67(0x206)+_0x516e44+_0x532f67(0x20e)+_0x3f8d63['reason']);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x356b54,_0x2cef5f){const _0x457421=a274_0x21d758;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x17c1c7=_0x2cef5f?.['stdio']??_0x457421(0x220),_0x12ec0c=resolveNpmBin(_0x457421(0x1f9)),_0x4dee1b=buildNpxSkillsAddArgv(_0x2cef5f?.[_0x457421(0x1f5)]),_0x341fea=[_0x457421(0x1f9),..._0x4dee1b][_0x457421(0x1fb)]('\x20');console['log']('*\x20'+_0x341fea);const _0x21c109=spawnSync(_0x12ec0c,_0x4dee1b,spawnOptions(_0x356b54,_0x17c1c7));return normalizeSpawnResult(_0x21c109,undefined,undefined,_0x17c1c7);}export function runNpxSkillsRemove(_0x3ea2a6,_0x55be1c,_0x419307=LEGACY_RABETBASE_SKILL_SOURCE){const _0x591a42=a274_0x21d758;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5464e6=_0x55be1c?.[_0x591a42(0x21e)]??_0x591a42(0x220),_0x16eb4b=resolveNpmBin(_0x591a42(0x1f9)),_0x1041ba=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x419307,NPX_SKILLS_FLAG_SKILL,_0x55be1c?.[_0x591a42(0x1f5)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x55be1c?.['yes']?['-y']:[]],_0x1b5782=[_0x16eb4b,..._0x1041ba][_0x591a42(0x1fb)]('\x20');console[_0x591a42(0x204)]('*\x20'+_0x1b5782);const _0x1fb1b1=spawnSync(_0x16eb4b,_0x1041ba,spawnOptions(_0x3ea2a6,_0x5464e6));return normalizeSpawnResult(_0x1fb1b1,undefined,undefined,_0x5464e6);}export function runNpxSkillsAddGlobal(_0x59ef7c,_0x3d93bf,_0x2f6c75){const _0x1ac581=a274_0x21d758;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4e061c=resolveNpmBin(_0x1ac581(0x1f9)),_0xd2e968=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3d93bf,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x26d148=[_0x1ac581(0x1f9),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3d93bf,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x1ac581(0x1fb)]('\x20');console[_0x1ac581(0x204)]('*\x20'+_0x26d148);const _0x5c7b94=spawnSync(_0x4e061c,_0xd2e968,spawnOptions(_0x59ef7c,_0x1ac581(0x200)));return normalizeSpawnResult(_0x5c7b94,_0x2f6c75?.[_0x1ac581(0x211)]??resolveGlobalSkillName(_0x3d93bf),_0x2f6c75?.['presence'],_0x2f6c75?.['stdio']);}
@@ -1 +1 @@
1
- const a267_0x5724ba=a267_0x187d;(function(_0xbadd1e,_0x20af62){const _0x478e12=a267_0x187d,_0x3023f1=_0xbadd1e();while(!![]){try{const _0x119cae=parseInt(_0x478e12(0x9e))/0x1+-parseInt(_0x478e12(0xb1))/0x2+-parseInt(_0x478e12(0xa8))/0x3*(-parseInt(_0x478e12(0x94))/0x4)+-parseInt(_0x478e12(0x98))/0x5+parseInt(_0x478e12(0xac))/0x6+-parseInt(_0x478e12(0xa1))/0x7*(parseInt(_0x478e12(0xa0))/0x8)+parseInt(_0x478e12(0xa7))/0x9;if(_0x119cae===_0x20af62)break;else _0x3023f1['push'](_0x3023f1['shift']());}catch(_0x32405b){_0x3023f1['push'](_0x3023f1['shift']());}}}(a267_0x30a1,0xd3a2c));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';function a267_0x30a1(){const _0x237856=['unusable','map','\x20has\x20no\x20skills\x20map','lockFile','join','127321infxtV','.agents','16rKCFhE','1384586dHomkX','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','reason','number','.claude','message','17726283EYnXqR','1299HvknZg','skills','parse','recorded','2146704Oihoup','present','utf8','SKILL.md','\x20records\x20\x22','1828670pVrAGX','kind','\x20is\x20unreadable:\x20','5304OdHRSa','unverifiable','not-recorded','.skill-lock.json','4260295bAIFIP'];a267_0x30a1=function(){return _0x237856;};return a267_0x30a1();}import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a267_0x5724ba(0x9f),a267_0x5724ba(0x97));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a267_0x5724ba(0x9f),a267_0x5724ba(0xa9)),join(a267_0x5724ba(0xa5),a267_0x5724ba(0xa9))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x4b997f,_0xb380e1){const _0x51fb11=a267_0x5724ba;if(!existsSync(_0x4b997f))return{'kind':_0x51fb11(0x96)};let _0x5094b9;try{_0x5094b9=JSON[_0x51fb11(0xaa)](readFileSync(_0x4b997f,_0x51fb11(0xae)));}catch(_0x274801){return{'kind':_0x51fb11(0x99),'reason':_0x4b997f+_0x51fb11(0x93)+_0x274801[_0x51fb11(0xa6)]};}const _0x230696=_0x5094b9;if(typeof _0x230696?.['version']!==_0x51fb11(0xa4)||!SUPPORTED_LOCK_VERSIONS['includes'](_0x230696['version']))return{'kind':'unusable','reason':_0x4b997f+'\x20uses\x20unsupported\x20version\x20'+String(_0x230696?.['version'])};if(!_0x230696['skills']||typeof _0x230696[_0x51fb11(0xa9)]!=='object')return{'kind':'unusable','reason':_0x4b997f+_0x51fb11(0x9b)};return _0x230696[_0x51fb11(0xa9)][_0xb380e1]?{'kind':'recorded'}:{'kind':_0x51fb11(0x96)};}function a267_0x187d(_0x37e68c,_0x520a03){_0x37e68c=_0x37e68c-0x93;const _0x30a1cf=a267_0x30a1();let _0x187d4d=_0x30a1cf[_0x37e68c];return _0x187d4d;}export function resolveInstalledSkill(_0x113818,_0x4df0db){const _0x5289db=a267_0x5724ba,_0x1dd19b=_0x4df0db?.['home']??homedir(),_0x15b181=_0x4df0db?.['globalSkillsDirs']??GLOBAL_SKILLS_DIR_RELATIVE_PATHS['map'](_0x290077=>join(_0x1dd19b,_0x290077)),_0x2abf38=_0x4df0db?.[_0x5289db(0x9c)]??join(_0x1dd19b,SKILL_LOCK_RELATIVE_PATH),_0x3b27a9=_0x15b181[_0x5289db(0x9a)](_0x1382e2=>join(_0x1382e2,_0x113818,_0x5289db(0xaf))),_0x1c9ada=_0x3b27a9['find'](_0x528de0=>existsSync(_0x528de0));if(_0x1c9ada)return{'state':_0x5289db(0xad),'path':_0x1c9ada};const _0x5d8e9a=readLockLookup(_0x2abf38,_0x113818);if(_0x5d8e9a[_0x5289db(0xb2)]===_0x5289db(0x99))return{'state':'unverifiable','reason':_0x5d8e9a[_0x5289db(0xa3)]};if(_0x5d8e9a[_0x5289db(0xb2)]===_0x5289db(0xab))return{'state':_0x5289db(0x95),'reason':_0x2abf38+_0x5289db(0xb0)+_0x113818+_0x5289db(0xa2)+('('+_0x3b27a9[_0x5289db(0x9d)](',\x20')+')')};return{'state':'absent','checked':_0x3b27a9};}
1
+ const a275_0x13b834=a275_0x4603;(function(_0x32dc66,_0x493f92){const _0x3a3f54=a275_0x4603,_0x1008a0=_0x32dc66();while(!![]){try{const _0x42c367=-parseInt(_0x3a3f54(0xc9))/0x1*(parseInt(_0x3a3f54(0xd7))/0x2)+parseInt(_0x3a3f54(0xc5))/0x3*(parseInt(_0x3a3f54(0xcc))/0x4)+parseInt(_0x3a3f54(0xcb))/0x5*(parseInt(_0x3a3f54(0xd0))/0x6)+parseInt(_0x3a3f54(0xde))/0x7+parseInt(_0x3a3f54(0xd5))/0x8*(parseInt(_0x3a3f54(0xd3))/0x9)+-parseInt(_0x3a3f54(0xdf))/0xa*(parseInt(_0x3a3f54(0xc1))/0xb)+parseInt(_0x3a3f54(0xca))/0xc;if(_0x42c367===_0x493f92)break;else _0x1008a0['push'](_0x1008a0['shift']());}catch(_0x498c85){_0x1008a0['push'](_0x1008a0['shift']());}}}(a275_0x5227,0x273ea));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a275_0x13b834(0xdb),a275_0x13b834(0xc2));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a275_0x13b834(0xdb),a275_0x13b834(0xc6)),join('.claude',a275_0x13b834(0xc6))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x36c5f6,_0x54b2c7){const _0x2ced0f=a275_0x13b834;if(!existsSync(_0x36c5f6))return{'kind':'not-recorded'};let _0x4398a3;try{_0x4398a3=JSON[_0x2ced0f(0xc8)](readFileSync(_0x36c5f6,_0x2ced0f(0xd4)));}catch(_0x1fbb01){return{'kind':'unusable','reason':_0x36c5f6+'\x20is\x20unreadable:\x20'+_0x1fbb01['message']};}const _0x4b7b7c=_0x4398a3;if(typeof _0x4b7b7c?.['version']!==_0x2ced0f(0xc3)||!SUPPORTED_LOCK_VERSIONS['includes'](_0x4b7b7c[_0x2ced0f(0xce)]))return{'kind':'unusable','reason':_0x36c5f6+_0x2ced0f(0xd1)+String(_0x4b7b7c?.['version'])};if(!_0x4b7b7c[_0x2ced0f(0xc6)]||typeof _0x4b7b7c[_0x2ced0f(0xc6)]!==_0x2ced0f(0xd6))return{'kind':_0x2ced0f(0xdc),'reason':_0x36c5f6+_0x2ced0f(0xc7)};return _0x4b7b7c[_0x2ced0f(0xc6)][_0x54b2c7]?{'kind':_0x2ced0f(0xc4)}:{'kind':_0x2ced0f(0xd2)};}function a275_0x5227(){const _0x517c68=['SKILL.md','version','join','343074pjHmiE','\x20uses\x20unsupported\x20version\x20','not-recorded','1062297xOYfiA','utf8','16NnitaZ','object','2XjVmwb','absent','unverifiable','lockFile','.agents','unusable','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','1177897jGgxrv','3040580oOTuUb','present','reason','\x20records\x20\x22','11BFnckC','.skill-lock.json','number','recorded','15XvvbIo','skills','\x20has\x20no\x20skills\x20map','parse','271177GysdaS','196128zhwnWa','25leUCiy','23524TtSgwN'];a275_0x5227=function(){return _0x517c68;};return a275_0x5227();}function a275_0x4603(_0x52d04b,_0x2336da){_0x52d04b=_0x52d04b-0xc1;const _0x522730=a275_0x5227();let _0x4603d9=_0x522730[_0x52d04b];return _0x4603d9;}export function resolveInstalledSkill(_0x1f0dbb,_0x38b1ae){const _0x12ca93=a275_0x13b834,_0x1b17e4=_0x38b1ae?.['home']??homedir(),_0x1e5786=_0x38b1ae?.['globalSkillsDirs']??GLOBAL_SKILLS_DIR_RELATIVE_PATHS['map'](_0x2e5962=>join(_0x1b17e4,_0x2e5962)),_0x23db46=_0x38b1ae?.[_0x12ca93(0xda)]??join(_0x1b17e4,SKILL_LOCK_RELATIVE_PATH),_0x514678=_0x1e5786['map'](_0x51760a=>join(_0x51760a,_0x1f0dbb,_0x12ca93(0xcd))),_0x4695a8=_0x514678['find'](_0x1d32d4=>existsSync(_0x1d32d4));if(_0x4695a8)return{'state':_0x12ca93(0xe0),'path':_0x4695a8};const _0x26bb24=readLockLookup(_0x23db46,_0x1f0dbb);if(_0x26bb24['kind']===_0x12ca93(0xdc))return{'state':'unverifiable','reason':_0x26bb24[_0x12ca93(0xe1)]};if(_0x26bb24['kind']===_0x12ca93(0xc4))return{'state':_0x12ca93(0xd9),'reason':_0x23db46+_0x12ca93(0xe2)+_0x1f0dbb+_0x12ca93(0xdd)+('('+_0x514678[_0x12ca93(0xcf)](',\x20')+')')};return{'state':_0x12ca93(0xd8),'checked':_0x514678};}
@@ -1 +1 @@
1
- (function(_0x4a6dcd,_0x32cbab){const _0x48ad8c=a268_0x80cb,_0x47ac93=_0x4a6dcd();while(!![]){try{const _0x464f4e=parseInt(_0x48ad8c(0x1ed))/0x1+parseInt(_0x48ad8c(0x1fe))/0x2*(parseInt(_0x48ad8c(0x1f8))/0x3)+-parseInt(_0x48ad8c(0x1ec))/0x4*(parseInt(_0x48ad8c(0x1f5))/0x5)+-parseInt(_0x48ad8c(0x1f4))/0x6*(-parseInt(_0x48ad8c(0x1f9))/0x7)+parseInt(_0x48ad8c(0x1fc))/0x8+parseInt(_0x48ad8c(0x1ee))/0x9*(parseInt(_0x48ad8c(0x1f0))/0xa)+-parseInt(_0x48ad8c(0x1fd))/0xb;if(_0x464f4e===_0x32cbab)break;else _0x47ac93['push'](_0x47ac93['shift']());}catch(_0x17d65b){_0x47ac93['push'](_0x47ac93['shift']());}}}(a268_0x583b,0xd2da2));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x1c2ad0){const _0x997ec5=a268_0x80cb;return SENSITIVE_PATTERNS['some'](_0x1f8268=>_0x1f8268[_0x997ec5(0x1ef)](_0x1c2ad0));}function sanitizeFlags(_0x582716){const _0x421520={};for(const [_0x241bb,_0x41c0a1]of Object['entries'](_0x582716)){isSensitiveKey(_0x241bb)?_0x421520[_0x241bb]=_0x41c0a1!=null&&_0x41c0a1!==''?'[REDACTED]':_0x41c0a1:_0x421520[_0x241bb]=_0x41c0a1;}return _0x421520;}function a268_0x80cb(_0x1cedf9,_0x2efa70){_0x1cedf9=_0x1cedf9-0x1ec;const _0x583b2d=a268_0x583b();let _0x80cbe9=_0x583b2d[_0x1cedf9];return _0x80cbe9;}function a268_0x583b(){const _0x1c13c2=['597534sGHupx','810DGzmgA','test','79650zBsaXz','flags','error','stringify','6330714qoDyLe','227540okATMg','command','rabetbase.command','3WPtwnd','7SEudhF','service','durationMs','8334544TeHJyI','21798260RkUacx','506266jTrVYl','72rTsFcP'];a268_0x583b=function(){return _0x1c13c2;};return a268_0x583b();}export async function reportCommandTrace(_0x5c82a1){const _0x4e7a68=a268_0x80cb;try{const _0x3ad220=sanitizeFlags(_0x5c82a1[_0x4e7a68(0x1f1)]);await sendCliTraceLog({'spanName':_0x4e7a68(0x1f7),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x5c82a1[_0x4e7a68(0x1fa)],'command.name':_0x5c82a1[_0x4e7a68(0x1f6)],'command.flags':JSON[_0x4e7a68(0x1f3)](_0x3ad220),..._0x5c82a1['durationMs']!=null?{'command.duration_ms':_0x5c82a1[_0x4e7a68(0x1fb)]}:{},..._0x5c82a1['error']?{'command.error':_0x5c82a1[_0x4e7a68(0x1f2)]instanceof Error?_0x5c82a1[_0x4e7a68(0x1f2)]['message']:String(_0x5c82a1['error'])}:{}}});}catch{}}
1
+ (function(_0x142308,_0x11439){const _0x3de41d=a276_0x52db,_0x17a6cf=_0x142308();while(!![]){try{const _0x411522=parseInt(_0x3de41d(0x78))/0x1*(-parseInt(_0x3de41d(0x6b))/0x2)+parseInt(_0x3de41d(0x71))/0x3+parseInt(_0x3de41d(0x70))/0x4*(-parseInt(_0x3de41d(0x7d))/0x5)+-parseInt(_0x3de41d(0x6a))/0x6+parseInt(_0x3de41d(0x72))/0x7*(-parseInt(_0x3de41d(0x7c))/0x8)+parseInt(_0x3de41d(0x76))/0x9+-parseInt(_0x3de41d(0x6d))/0xa*(-parseInt(_0x3de41d(0x7a))/0xb);if(_0x411522===_0x11439)break;else _0x17a6cf['push'](_0x17a6cf['shift']());}catch(_0x2ea115){_0x17a6cf['push'](_0x17a6cf['shift']());}}}(a276_0x444e,0x47217));function a276_0x52db(_0x20eaaa,_0x310369){_0x20eaaa=_0x20eaaa-0x6a;const _0x444ea0=a276_0x444e();let _0x52db4d=_0x444ea0[_0x20eaaa];return _0x52db4d;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function a276_0x444e(){const _0x539f39=['command','durationMs','message','2667492icEIgF','stringify','564467kYlmDx','rabetbase.command','9999LMFFnl','error','168jwHujA','5lbMuYA','3043308UHEfMl','2ebqJAZ','service','18410VkDDby','entries','[REDACTED]','1815548zGgZst','729567UIUxiR','132041TWjpQo'];a276_0x444e=function(){return _0x539f39;};return a276_0x444e();}function isSensitiveKey(_0xb15688){return SENSITIVE_PATTERNS['some'](_0x20c5d1=>_0x20c5d1['test'](_0xb15688));}function sanitizeFlags(_0x4f0a59){const _0x160f51=a276_0x52db,_0x2d1097={};for(const [_0x14df48,_0x4760d5]of Object[_0x160f51(0x6e)](_0x4f0a59)){isSensitiveKey(_0x14df48)?_0x2d1097[_0x14df48]=_0x4760d5!=null&&_0x4760d5!==''?_0x160f51(0x6f):_0x4760d5:_0x2d1097[_0x14df48]=_0x4760d5;}return _0x2d1097;}export async function reportCommandTrace(_0x2f3875){const _0x169b26=a276_0x52db;try{const _0x287102=sanitizeFlags(_0x2f3875['flags']);await sendCliTraceLog({'spanName':_0x169b26(0x79),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x2f3875[_0x169b26(0x6c)],'command.name':_0x2f3875[_0x169b26(0x73)],'command.flags':JSON[_0x169b26(0x77)](_0x287102),..._0x2f3875[_0x169b26(0x74)]!=null?{'command.duration_ms':_0x2f3875['durationMs']}:{},..._0x2f3875[_0x169b26(0x7b)]?{'command.error':_0x2f3875[_0x169b26(0x7b)]instanceof Error?_0x2f3875[_0x169b26(0x7b)][_0x169b26(0x75)]:String(_0x2f3875[_0x169b26(0x7b)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a269_0x70ca(_0x44b9b2,_0x4ed8a6){_0x44b9b2=_0x44b9b2-0x14b;var _0x13670b=a269_0x1367();var _0x70ca13=_0x13670b[_0x44b9b2];return _0x70ca13;}(function(_0x52c0d4,_0x5d91cf){var _0xd120a=a269_0x70ca,_0x590f71=_0x52c0d4();while(!![]){try{var _0x3aa773=parseInt(_0xd120a(0x152))/0x1*(-parseInt(_0xd120a(0x157))/0x2)+-parseInt(_0xd120a(0x14f))/0x3+parseInt(_0xd120a(0x154))/0x4+parseInt(_0xd120a(0x153))/0x5*(parseInt(_0xd120a(0x14b))/0x6)+parseInt(_0xd120a(0x14d))/0x7*(parseInt(_0xd120a(0x14c))/0x8)+parseInt(_0xd120a(0x14e))/0x9*(parseInt(_0xd120a(0x155))/0xa)+-parseInt(_0xd120a(0x156))/0xb;if(_0x3aa773===_0x5d91cf)break;else _0x590f71['push'](_0x590f71['shift']());}catch(_0x510bb1){_0x590f71['push'](_0x590f71['shift']());}}}(a269_0x1367,0x5d9db));function a269_0x1367(){var _0x1db382=['service','282XFIhdq','8PltvUn','1711115cQYUEj','729SGeOnh','2254548LABDAi','error','cli.help','1OFAjTd','58955JjrXaM','1647272otRWXH','76630DVWaKE','7549355npAlsm','19742yxnEEa'];a269_0x1367=function(){return _0x1db382;};return a269_0x1367();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x4ac104,_0x11f29e){var _0x306858=a269_0x70ca;try{await sendCliTraceLog({'spanName':_0x306858(0x151),'logData':{'rabetbase.help.kind':_0x4ac104,..._0x11f29e?.[_0x306858(0x158)]&&{'rabetbase.help.service':_0x11f29e[_0x306858(0x158)]}}});}catch(_0x38b1df){console[_0x306858(0x150)]('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x38b1df);}}
1
+ function a277_0x4a2d(_0x1fa6f4,_0x1c80ae){_0x1fa6f4=_0x1fa6f4-0x137;var _0x1e13be=a277_0x1e13();var _0x4a2d3c=_0x1e13be[_0x1fa6f4];return _0x4a2d3c;}(function(_0x329f79,_0x16e345){var _0x83e5a4=a277_0x4a2d,_0x5c2f1f=_0x329f79();while(!![]){try{var _0x3a31bd=-parseInt(_0x83e5a4(0x13a))/0x1+parseInt(_0x83e5a4(0x13b))/0x2*(parseInt(_0x83e5a4(0x13c))/0x3)+-parseInt(_0x83e5a4(0x143))/0x4*(parseInt(_0x83e5a4(0x142))/0x5)+-parseInt(_0x83e5a4(0x141))/0x6+-parseInt(_0x83e5a4(0x138))/0x7*(parseInt(_0x83e5a4(0x140))/0x8)+parseInt(_0x83e5a4(0x144))/0x9+-parseInt(_0x83e5a4(0x137))/0xa*(-parseInt(_0x83e5a4(0x13d))/0xb);if(_0x3a31bd===_0x16e345)break;else _0x5c2f1f['push'](_0x5c2f1f['shift']());}catch(_0x5e7b8b){_0x5c2f1f['push'](_0x5c2f1f['shift']());}}}(a277_0x1e13,0x4b473));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x38bcfb,_0x3b8217){var _0x13ad6b=a277_0x4a2d;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x38bcfb,..._0x3b8217?.[_0x13ad6b(0x13f)]&&{'rabetbase.help.service':_0x3b8217[_0x13ad6b(0x13f)]}}});}catch(_0x81e1){console[_0x13ad6b(0x13e)](_0x13ad6b(0x139),_0x81e1);}}function a277_0x1e13(){var _0x2d38b6=['473gUDUaZ','error','service','107200dLyVYp','2835228ZwCbFQ','48885LUckDs','92sgqLku','3326112zKLEbT','109070SdbPfL','35yfcwON','Failed\x20to\x20report\x20CLI\x20help\x20trace:','352825nSrjAz','1174008XKHBad','3uwSAjm'];a277_0x1e13=function(){return _0x2d38b6;};return a277_0x1e13();}
@@ -1 +1 @@
1
- (function(_0x478a44,_0x27e8b6){const _0x13f062=a270_0x89a8,_0x44f8a0=_0x478a44();while(!![]){try{const _0x5d8af8=-parseInt(_0x13f062(0x124))/0x1+-parseInt(_0x13f062(0x123))/0x2+-parseInt(_0x13f062(0x11f))/0x3+parseInt(_0x13f062(0x11e))/0x4+-parseInt(_0x13f062(0x11b))/0x5*(-parseInt(_0x13f062(0x118))/0x6)+-parseInt(_0x13f062(0x11d))/0x7+-parseInt(_0x13f062(0x122))/0x8*(-parseInt(_0x13f062(0x120))/0x9);if(_0x5d8af8===_0x27e8b6)break;else _0x44f8a0['push'](_0x44f8a0['shift']());}catch(_0x4628bc){_0x44f8a0['push'](_0x44f8a0['shift']());}}}(a270_0x2f89,0x7e028));function a270_0x89a8(_0x1a582c,_0x38dc09){_0x1a582c=_0x1a582c-0x117;const _0x2f894b=a270_0x2f89();let _0x89a8d6=_0x2f894b[_0x1a582c];return _0x89a8d6;}import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a270_0x2f89(){const _0x32ddf6=['2493684jOhnmn','153jBKhTw','daily','410536DhOmJj','342230YyXEzy','66068qzlHHF','email','107766jSkGve','tenant_code','production','235yvlBas','nickname','1548148MhyhbF','356620mdHfZN'];a270_0x2f89=function(){return _0x32ddf6;};return a270_0x2f89();}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0xa6d4bd=a270_0x89a8,_0x43337c=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x2c87cd=_0x43337c?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0xa6d4bd(0x121):_0xa6d4bd(0x11a))}),setUserContext({'id':_0x2c87cd?.['id'],'username':_0x2c87cd?.['username'],'nickname':_0x2c87cd?.[_0xa6d4bd(0x11c)],'email':_0x2c87cd?.[_0xa6d4bd(0x117)],'tenantCode':_0x2c87cd?.['tenant']?.[_0xa6d4bd(0x119)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x43337c;}
1
+ (function(_0x174798,_0x3250f6){const _0x5b9e55=a278_0x4693,_0x2af99e=_0x174798();while(!![]){try{const _0x55b9e4=-parseInt(_0x5b9e55(0x1c2))/0x1+-parseInt(_0x5b9e55(0x1c1))/0x2+-parseInt(_0x5b9e55(0x1c5))/0x3*(parseInt(_0x5b9e55(0x1c9))/0x4)+-parseInt(_0x5b9e55(0x1c6))/0x5+-parseInt(_0x5b9e55(0x1c7))/0x6+-parseInt(_0x5b9e55(0x1c3))/0x7*(-parseInt(_0x5b9e55(0x1ca))/0x8)+parseInt(_0x5b9e55(0x1c4))/0x9*(parseInt(_0x5b9e55(0x1cb))/0xa);if(_0x55b9e4===_0x3250f6)break;else _0x2af99e['push'](_0x2af99e['shift']());}catch(_0x5bbdf7){_0x2af99e['push'](_0x2af99e['shift']());}}}(a278_0x10c4,0xe7905));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';function a278_0x4693(_0x36351a,_0x10a75c){_0x36351a=_0x36351a-0x1c0;const _0x10c490=a278_0x10c4();let _0x4693a4=_0x10c490[_0x36351a];return _0x4693a4;}function a278_0x10c4(){const _0x2afad3=['1561434cMKqps','tenant_code','1784iyHlBS','14326008NVWhNg','70nJTJGQ','user','unknown','nickname','2853162PPaYjH','782386YYCXIm','7behZCV','5918751IsYTEf','9708WUAgYw','7666385FbcZhR'];a278_0x10c4=function(){return _0x2afad3;};return a278_0x10c4();}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x2c88ef=a278_0x4693,_0x459b98=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x3ce08a=_0x459b98?.[_0x2c88ef(0x1cc)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x2c88ef(0x1cd)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':'production')}),setUserContext({'id':_0x3ce08a?.['id'],'username':_0x3ce08a?.['username'],'nickname':_0x3ce08a?.[_0x2c88ef(0x1c0)],'email':_0x3ce08a?.['email'],'tenantCode':_0x3ce08a?.['tenant']?.[_0x2c88ef(0x1c8)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x459b98;}