@lovrabet/rabetbase-cli 2.5.0-beta.6 → 2.5.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (312) 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-update.js +1 -1
  68. package/lib/commands/dataset/generate.js +1 -1
  69. package/lib/commands/dataset/index.js +1 -1
  70. package/lib/commands/dataset/list.js +1 -1
  71. package/lib/commands/dataset/operations.js +1 -1
  72. package/lib/commands/dataset/relation-audit.js +1 -1
  73. package/lib/commands/dataset/relation-create.js +1 -1
  74. package/lib/commands/dataset/relation-delete.js +1 -1
  75. package/lib/commands/dataset/relation-shared.js +1 -1
  76. package/lib/commands/dataset/relation-update.js +1 -1
  77. package/lib/commands/dataset/relations.js +1 -1
  78. package/lib/commands/dataset/rename.js +1 -1
  79. package/lib/commands/dataset/restore.js +1 -1
  80. package/lib/commands/db/analysis-batching.js +1 -1
  81. package/lib/commands/db/analyze-batch-plan.js +1 -1
  82. package/lib/commands/db/analyze-cancel.js +1 -1
  83. package/lib/commands/db/analyze-start.js +1 -1
  84. package/lib/commands/db/analyze-status.js +1 -1
  85. package/lib/commands/db/create.js +1 -1
  86. package/lib/commands/db/delete.js +1 -1
  87. package/lib/commands/db/detail.js +1 -1
  88. package/lib/commands/db/diff-refresh-start.js +1 -1
  89. package/lib/commands/db/diff-refresh-status.js +1 -1
  90. package/lib/commands/db/diff.js +1 -1
  91. package/lib/commands/db/index.js +1 -1
  92. package/lib/commands/db/list.js +1 -1
  93. package/lib/commands/db/shared.js +1 -1
  94. package/lib/commands/db/table-diff-shared.js +1 -1
  95. package/lib/commands/db/tables.js +1 -1
  96. package/lib/commands/db/test.js +1 -1
  97. package/lib/commands/db/update.js +1 -1
  98. package/lib/commands/doctor.js +1 -1
  99. package/lib/commands/file/index.js +1 -1
  100. package/lib/commands/issue/index.js +1 -1
  101. package/lib/commands/issue/nudge.js +1 -1
  102. package/lib/commands/issue/report.js +1 -1
  103. package/lib/commands/issue/shared.js +1 -1
  104. package/lib/commands/kb/create.js +1 -1
  105. package/lib/commands/kb/delete.js +1 -1
  106. package/lib/commands/kb/detail.js +1 -1
  107. package/lib/commands/kb/index.js +1 -1
  108. package/lib/commands/kb/list.js +1 -1
  109. package/lib/commands/kb/search.js +1 -1
  110. package/lib/commands/kb/shared.js +1 -1
  111. package/lib/commands/kb/update.js +1 -1
  112. package/lib/commands/logs/index.js +1 -1
  113. package/lib/commands/menu/asset-update.js +1 -1
  114. package/lib/commands/menu/delete.js +1 -1
  115. package/lib/commands/menu/external-link-create.js +1 -1
  116. package/lib/commands/menu/external-link-update.js +1 -1
  117. package/lib/commands/menu/group-create.js +1 -1
  118. package/lib/commands/menu/group-update.js +1 -1
  119. package/lib/commands/menu/index.js +1 -1
  120. package/lib/commands/menu/list.js +1 -1
  121. package/lib/commands/menu/move.js +1 -1
  122. package/lib/commands/menu/regroup-start.js +1 -1
  123. package/lib/commands/menu/rename.js +1 -1
  124. package/lib/commands/menu/shared/compare-table.js +1 -1
  125. package/lib/commands/menu/shared/delete-plan.js +1 -1
  126. package/lib/commands/menu/shared/facts.js +1 -1
  127. package/lib/commands/menu/shared/index.js +1 -1
  128. package/lib/commands/menu/shared/inquirer.js +1 -1
  129. package/lib/commands/menu/shared/local-pages.js +1 -1
  130. package/lib/commands/menu/shared/logic.js +1 -1
  131. package/lib/commands/menu/shared/mutations.js +1 -1
  132. package/lib/commands/menu/shared/service.js +1 -1
  133. package/lib/commands/menu/shared/sync-core.js +1 -1
  134. package/lib/commands/menu/shared/update-core.js +1 -1
  135. package/lib/commands/menu/shared/valid-url.js +1 -1
  136. package/lib/commands/menu/sync.js +1 -1
  137. package/lib/commands/menu/visibility-update.js +1 -1
  138. package/lib/commands/notification/config-create.js +1 -1
  139. package/lib/commands/notification/config-delete.js +1 -1
  140. package/lib/commands/notification/config-list.js +1 -1
  141. package/lib/commands/notification/config-update.js +1 -1
  142. package/lib/commands/notification/index.js +1 -1
  143. package/lib/commands/notification/shared.js +1 -1
  144. package/lib/commands/ocr/index.js +1 -1
  145. package/lib/commands/page/create.js +1 -1
  146. package/lib/commands/page/custom/detail.js +1 -1
  147. package/lib/commands/page/custom/list.js +1 -1
  148. package/lib/commands/page/custom/publish.js +1 -1
  149. package/lib/commands/page/custom/shared.js +1 -1
  150. package/lib/commands/page/custom/syntax.js +1 -1
  151. package/lib/commands/page/custom/template.js +1 -1
  152. package/lib/commands/page/custom/update.js +1 -1
  153. package/lib/commands/page/data-list-status.js +1 -1
  154. package/lib/commands/page/generate-start.js +1 -1
  155. package/lib/commands/page/generate-status.js +1 -1
  156. package/lib/commands/page/index.js +1 -1
  157. package/lib/commands/page/pull.js +1 -1
  158. package/lib/commands/page/push.js +1 -1
  159. package/lib/commands/page/relation-audit.js +1 -1
  160. package/lib/commands/page/restore.js +1 -1
  161. package/lib/commands/page/shared.js +1 -1
  162. package/lib/commands/page/sync.js +1 -1
  163. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  164. package/lib/commands/project/create/format-elapsed.js +1 -1
  165. package/lib/commands/project/create/main.js +1 -1
  166. package/lib/commands/project/create/materialize-project-template.js +1 -1
  167. package/lib/commands/project/create/project-name.js +1 -1
  168. package/lib/commands/project/create/project-template-archive.js +1 -1
  169. package/lib/commands/project/create/project-template-path.js +1 -1
  170. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  171. package/lib/commands/project/create/use-format-code.js +1 -1
  172. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  173. package/lib/commands/project/index.js +1 -1
  174. package/lib/commands/project/upgrade.js +1 -1
  175. package/lib/commands/registry.js +1 -1
  176. package/lib/commands/role/delete.js +1 -1
  177. package/lib/commands/role/detail.js +1 -1
  178. package/lib/commands/role/index.js +1 -1
  179. package/lib/commands/role/list.js +1 -1
  180. package/lib/commands/role/shared.js +1 -1
  181. package/lib/commands/role/update.js +1 -1
  182. package/lib/commands/role/user-add.js +1 -1
  183. package/lib/commands/role/user-remove.js +1 -1
  184. package/lib/commands/role/user-resolve.js +1 -1
  185. package/lib/commands/run/index.js +1 -1
  186. package/lib/commands/schema.js +1 -1
  187. package/lib/commands/sql/create.js +1 -1
  188. package/lib/commands/sql/delete.js +1 -1
  189. package/lib/commands/sql/detail.js +1 -1
  190. package/lib/commands/sql/exec.js +1 -1
  191. package/lib/commands/sql/index.js +1 -1
  192. package/lib/commands/sql/list.js +1 -1
  193. package/lib/commands/sql/pull.js +1 -1
  194. package/lib/commands/sql/push.js +1 -1
  195. package/lib/commands/sql/shared.js +1 -1
  196. package/lib/commands/sql/status.js +1 -1
  197. package/lib/commands/sql/validate.js +1 -1
  198. package/lib/commands/task/index.js +1 -1
  199. package/lib/commands/task/status.js +1 -1
  200. package/lib/commands/tenant/index.js +1 -1
  201. package/lib/commands/tenant/members-list.js +1 -1
  202. package/lib/commands/tenant/shared.js +1 -1
  203. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  204. package/lib/commands/user-account/index.js +1 -1
  205. package/lib/commands/workspace/add.js +1 -1
  206. package/lib/commands/workspace/index.js +1 -1
  207. package/lib/commands/workspace/remove.js +1 -1
  208. package/lib/config/domain-config.d.ts +1 -1
  209. package/lib/config/domain-config.js +1 -1
  210. package/lib/config/project-routing.d.ts +30 -0
  211. package/lib/config/project-routing.js +1 -0
  212. package/lib/config/schema.d.ts +1 -1
  213. package/lib/config/schema.js +1 -1
  214. package/lib/constant/cdn.js +1 -1
  215. package/lib/constant/cli.js +1 -1
  216. package/lib/constant/defaults.js +1 -1
  217. package/lib/constant/domain.d.ts +7 -2
  218. package/lib/constant/domain.js +1 -1
  219. package/lib/constant/env.js +1 -1
  220. package/lib/constant/output.js +1 -1
  221. package/lib/constant/paths.js +1 -1
  222. package/lib/constant/region.d.ts +2 -2
  223. package/lib/constant/region.js +1 -1
  224. package/lib/constant/risk.js +1 -1
  225. package/lib/constant/routing-profile.d.ts +115 -0
  226. package/lib/constant/routing-profile.js +1 -0
  227. package/lib/context/app-resolver.js +1 -1
  228. package/lib/context/auth-resolver.js +1 -1
  229. package/lib/context/config-loader.js +1 -1
  230. package/lib/context.js +1 -1
  231. package/lib/core/alias-resolver.js +1 -1
  232. package/lib/core/api-client.js +1 -1
  233. package/lib/core/bff/config.js +1 -1
  234. package/lib/core/bff/file-system.js +1 -1
  235. package/lib/core/bff/hash.js +1 -1
  236. package/lib/core/bff/lock.js +1 -1
  237. package/lib/core/bff/utils.js +1 -1
  238. package/lib/core/db-resolver.js +1 -1
  239. package/lib/core/page/file-system.js +1 -1
  240. package/lib/core/page/hash.js +1 -1
  241. package/lib/core/page/lock.js +1 -1
  242. package/lib/core/sql-index-auditor.js +1 -1
  243. package/lib/core/sql-sync/config.js +1 -1
  244. package/lib/core/sql-sync/file-system.js +1 -1
  245. package/lib/core/sql-sync/hash.js +1 -1
  246. package/lib/core/sql-sync/lock.js +1 -1
  247. package/lib/core/sql-sync/utils.js +1 -1
  248. package/lib/core/sql-validator.js +1 -1
  249. package/lib/errors.js +1 -1
  250. package/lib/framework/build-all-flags.js +1 -1
  251. package/lib/framework/error-output.js +1 -1
  252. package/lib/framework/explicit-yes.js +1 -1
  253. package/lib/framework/flags.js +1 -1
  254. package/lib/framework/help.js +1 -1
  255. package/lib/framework/index.js +1 -1
  256. package/lib/framework/output.js +1 -1
  257. package/lib/framework/response.js +1 -1
  258. package/lib/framework/runner-alias.js +1 -1
  259. package/lib/framework/runner.js +1 -1
  260. package/lib/framework/schema-export.js +1 -1
  261. package/lib/framework/types.js +1 -1
  262. package/lib/generated/build-info.d.ts +4 -4
  263. package/lib/generated/build-info.js +1 -1
  264. package/lib/help.js +1 -1
  265. package/lib/postinstall.js +1 -1
  266. package/lib/runtime/confirmation.js +1 -1
  267. package/lib/runtime/event.js +1 -1
  268. package/lib/runtime/index.js +1 -1
  269. package/lib/runtime/queue.js +1 -1
  270. package/lib/runtime/resolve.js +1 -1
  271. package/lib/skills/builtin-skill.js +1 -1
  272. package/lib/skills/main.js +1 -1
  273. package/lib/skills/npx-skills-add.js +1 -1
  274. package/lib/skills/skill-presence.js +1 -1
  275. package/lib/telemetry/cli-command-trace.js +1 -1
  276. package/lib/telemetry/cli-help-trace.js +1 -1
  277. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  278. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  279. package/lib/telemetry/send-cli-trace-log.js +1 -1
  280. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  281. package/lib/utils/ai_config.js +1 -1
  282. package/lib/utils/apply-jq-filter.js +1 -1
  283. package/lib/utils/cdn-config.js +1 -1
  284. package/lib/utils/check-sdk-version.js +1 -1
  285. package/lib/utils/cli-version-check.js +1 -1
  286. package/lib/utils/cli-version-policy.js +1 -1
  287. package/lib/utils/config.js +1 -1
  288. package/lib/utils/entity-with-id.js +1 -1
  289. package/lib/utils/file-utils.js +1 -1
  290. package/lib/utils/guides-cdn.js +1 -1
  291. package/lib/utils/http-client.js +1 -1
  292. package/lib/utils/is-non-interactive.js +1 -1
  293. package/lib/utils/logger.js +1 -1
  294. package/lib/utils/params.js +1 -1
  295. package/lib/utils/platform.js +1 -1
  296. package/lib/utils/sleep.js +1 -1
  297. package/lib/utils/template-replacer.js +1 -1
  298. package/lib/utils/update-notice.js +1 -1
  299. package/lib/utils/version.js +1 -1
  300. package/lib/utils/with-active-cookie.js +1 -1
  301. package/lib/utils/write-cli-side-channel.js +1 -1
  302. package/package.json +1 -2
  303. package/skills/rabetbase/SKILL.md +10 -5
  304. package/skills/rabetbase/guides/frontend-development.md +2 -0
  305. package/skills/rabetbase/guides/sdk-client-generation.md +3 -2
  306. package/skills/rabetbase/guides/typescript-sdk.md +42 -0
  307. package/skills/rabetbase/references/rabetbase-api-pull.md +5 -3
  308. package/skills/rabetbase/references/rabetbase-config.md +9 -5
  309. package/skills/rabetbase/references/rabetbase-init.md +11 -5
  310. package/skills/rabetbase/references/rabetbase-project-create.md +6 -5
  311. package/skills/rabetbase.manifest.json +3 -3
  312. package/templates/README.md +13 -17
@@ -1 +1 @@
1
- (function(_0x5f05ea,_0x5b8035){const _0x5aef0d=a251_0x24a8,_0x4a819b=_0x5f05ea();while(!![]){try{const _0x260c88=-parseInt(_0x5aef0d(0x1d9))/0x1*(parseInt(_0x5aef0d(0x1e5))/0x2)+-parseInt(_0x5aef0d(0x1d4))/0x3*(-parseInt(_0x5aef0d(0x1d8))/0x4)+-parseInt(_0x5aef0d(0x1da))/0x5*(-parseInt(_0x5aef0d(0x1d6))/0x6)+parseInt(_0x5aef0d(0x1ce))/0x7+parseInt(_0x5aef0d(0x1e3))/0x8*(parseInt(_0x5aef0d(0x1e4))/0x9)+-parseInt(_0x5aef0d(0x1d0))/0xa+parseInt(_0x5aef0d(0x1dc))/0xb;if(_0x260c88===_0x5b8035)break;else _0x4a819b['push'](_0x4a819b['shift']());}catch(_0x4e1278){_0x4a819b['push'](_0x4a819b['shift']());}}}(a251_0x444f,0x42458));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x62ddf7,_0x20c396,_0x18fbf7,_0x495291){const _0x87c5ba=a251_0x24a8,_0xc070e9=_0x62ddf7[_0x87c5ba(0x1df)][_0x87c5ba(0x1de)](_0x5753c5=>_0x5753c5[_0x87c5ba(0x1d1)]===_0x87c5ba(0x1e6)&&_0x5753c5[_0x87c5ba(0x1dd)]===_0x87c5ba(0x1e7)),_0x5d4faf=_0x62ddf7[_0x87c5ba(0x1df)][_0x87c5ba(0x1de)](_0x582d08=>_0x582d08[_0x87c5ba(0x1d1)]===_0x87c5ba(0x1d7)&&_0x582d08[_0x87c5ba(0x1dd)]===_0x87c5ba(0x1e7));if(!_0xc070e9||!_0x5d4faf)return;const _0x52ac4f=_0x20c396[_0x87c5ba(0x1e6)]?String(_0x20c396[_0x87c5ba(0x1e6)]):'',_0x40e5df=_0x20c396[_0x87c5ba(0x1d7)]?String(_0x20c396[_0x87c5ba(0x1d7)]):'';if(!_0x52ac4f&&!_0x40e5df)throw CliErrors['validation']('`'+_0x495291+_0x87c5ba(0x1d5));if(_0x40e5df&&!_0x52ac4f){const _0x57bc18=resolveAlias(_0x18fbf7,_0x40e5df);if(!_0x57bc18){const _0x4939ad=listAliases(_0x18fbf7)[_0x87c5ba(0x1cf)](_0x16d8ff=>_0x16d8ff[_0x87c5ba(0x1d7)]),_0x17231a=_0x4939ad['length']?_0x87c5ba(0x1e0)+_0x4939ad[_0x87c5ba(0x1db)](',\x20'):_0x87c5ba(0x1d2)+_0x18fbf7+_0x87c5ba(0x1d3)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x87c5ba(0x1e1)]('Unknown\x20alias\x20\x22'+_0x40e5df+_0x87c5ba(0x1e2)+_0x17231a);}_0x20c396[_0x87c5ba(0x1e6)]=_0x57bc18;}}function a251_0x24a8(_0x106c11,_0x1309e0){_0x106c11=_0x106c11-0x1ce;const _0x444fad=a251_0x444f();let _0x24a84d=_0x444fad[_0x106c11];return _0x24a84d;}function a251_0x444f(){const _0x289a0a=['join','4239543hZnsHB','type','some','flags','Available\x20aliases:\x20','validation','\x22.\x20','192webXhf','50733YHQSdq','55422Nhwvtn','code','string','1048012HUDBHc','map','3209540GmDwbI','name','No\x20api.ts\x20found\x20in\x20','.\x20Run\x20`','9FbsEvz','`\x20requires\x20either\x20--code\x20or\x20--alias.','252xUSseC','alias','119660MlcvuC','8HgNJWR','6420Xpbfrl'];a251_0x444f=function(){return _0x289a0a;};return a251_0x444f();}
1
+ (function(_0xa91668,_0x55e8e4){const _0x5fc4e6=a253_0x575c,_0x346e67=_0xa91668();while(!![]){try{const _0x296a35=-parseInt(_0x5fc4e6(0x1ae))/0x1+parseInt(_0x5fc4e6(0x1a4))/0x2*(parseInt(_0x5fc4e6(0x19b))/0x3)+parseInt(_0x5fc4e6(0x19c))/0x4*(parseInt(_0x5fc4e6(0x1ad))/0x5)+parseInt(_0x5fc4e6(0x1a5))/0x6*(-parseInt(_0x5fc4e6(0x1b1))/0x7)+parseInt(_0x5fc4e6(0x1af))/0x8+-parseInt(_0x5fc4e6(0x1a2))/0x9*(-parseInt(_0x5fc4e6(0x1a3))/0xa)+-parseInt(_0x5fc4e6(0x19e))/0xb;if(_0x296a35===_0x55e8e4)break;else _0x346e67['push'](_0x346e67['shift']());}catch(_0x2bae3e){_0x346e67['push'](_0x346e67['shift']());}}}(a253_0x11f3,0xca50f));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a253_0x575c(_0xb6d5cd,_0x2b1297){_0xb6d5cd=_0xb6d5cd-0x198;const _0x11f37e=a253_0x11f3();let _0x575c7e=_0x11f37e[_0xb6d5cd];return _0x575c7e;}export function resolveAliasToCode(_0x4b5933,_0xec66cb,_0x9d3f7f,_0x5f2a79){const _0x16a6bf=a253_0x575c,_0x2e4101=_0x4b5933['flags'][_0x16a6bf(0x1a7)](_0x43f22f=>_0x43f22f[_0x16a6bf(0x19a)]===_0x16a6bf(0x1a6)&&_0x43f22f[_0x16a6bf(0x199)]===_0x16a6bf(0x1ab)),_0x295258=_0x4b5933[_0x16a6bf(0x1ac)][_0x16a6bf(0x1a7)](_0x287841=>_0x287841[_0x16a6bf(0x19a)]===_0x16a6bf(0x198)&&_0x287841[_0x16a6bf(0x199)]==='string');if(!_0x2e4101||!_0x295258)return;const _0x3143a6=_0xec66cb[_0x16a6bf(0x1a6)]?String(_0xec66cb['code']):'',_0xcf7c2c=_0xec66cb['alias']?String(_0xec66cb[_0x16a6bf(0x198)]):'';if(!_0x3143a6&&!_0xcf7c2c)throw CliErrors[_0x16a6bf(0x1a9)]('`'+_0x5f2a79+_0x16a6bf(0x19f));if(_0xcf7c2c&&!_0x3143a6){const _0x1ce95e=resolveAlias(_0x9d3f7f,_0xcf7c2c);if(!_0x1ce95e){const _0x2ecbf5=listAliases(_0x9d3f7f)[_0x16a6bf(0x19d)](_0x42cdc1=>_0x42cdc1['alias']),_0x54e2ae=_0x2ecbf5[_0x16a6bf(0x1b2)]?'Available\x20aliases:\x20'+_0x2ecbf5[_0x16a6bf(0x1a8)](',\x20'):_0x16a6bf(0x1b3)+_0x9d3f7f+_0x16a6bf(0x1a1)+CLI_BIN_NAME+_0x16a6bf(0x1a0);throw CliErrors['validation'](_0x16a6bf(0x1aa)+_0xcf7c2c+_0x16a6bf(0x1b0)+_0x54e2ae);}_0xec66cb['code']=_0x1ce95e;}}function a253_0x11f3(){const _0x47dbbd=['Unknown\x20alias\x20\x22','string','flags','5XzVPxG','228842yPTwLK','303528WfJHQU','\x22.\x20','164801XLLzTT','length','No\x20api.ts\x20found\x20in\x20','alias','type','name','3eohNAh','6586588xigszT','map','5393993rCGDNR','`\x20requires\x20either\x20--code\x20or\x20--alias.','\x20api\x20pull`\x20first.','.\x20Run\x20`','2025711Lhqvjs','20RRXFRs','1039334zgTAgs','282PgnhpE','code','some','join','validation'];a253_0x11f3=function(){return _0x47dbbd;};return a253_0x11f3();}
@@ -1 +1 @@
1
- (function(_0x5fad65,_0xc92334){const _0x26a026=a252_0x395c,_0x49cc5b=_0x5fad65();while(!![]){try{const _0x6a0fee=-parseInt(_0x26a026(0xfe))/0x1+-parseInt(_0x26a026(0x105))/0x2+parseInt(_0x26a026(0x11e))/0x3+-parseInt(_0x26a026(0x139))/0x4*(-parseInt(_0x26a026(0x10f))/0x5)+-parseInt(_0x26a026(0x115))/0x6+-parseInt(_0x26a026(0x131))/0x7*(parseInt(_0x26a026(0x102))/0x8)+parseInt(_0x26a026(0x11c))/0x9;if(_0x6a0fee===_0xc92334)break;else _0x49cc5b['push'](_0x49cc5b['shift']());}catch(_0x1230fd){_0x49cc5b['push'](_0x49cc5b['shift']());}}}(a252_0x4952,0x9cd89));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';function a252_0x395c(_0x4a3e08,_0x587760){_0x4a3e08=_0x4a3e08-0xf4;const _0x4952de=a252_0x4952();let _0x395cb2=_0x4952de[_0x4a3e08];return _0x395cb2;}function a252_0x4952(){const _0x291303=['some','formatOutput','explicitAppName','length','300139bMfmmB','service','confirmHighRisk','appCode','LOVRABET_APPCODE','App\x20\x22','authRequired','../constant/env.js','4irtIZX','selectedAppName','apiDir','object','has','catch','map','hasFormat','mergedCli','filter','resolveAppCode','apps','resolveCookie','appcode','string','trim','production','462932tSgRVF','hint','required','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','160yoKTkI','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','schema','2563134ejrijg','defaultApp','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','defaultPageSize','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','cancelled','risk','cookie','../core/api-client.js','nonInteractive','577790DijBxt','format','currentApp','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','name','includes','1282704mCZIwk','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','\x0a\x20\x20','Set\x20appcode\x20via\x20`','verbose','join','requiresAppCode','24020505PvnTTD','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','2021283ccWuQW','⚠\x20\x20High-risk\x20operation:\x20','validation','none','message','resolveApiDomain','rawFlags','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','value','toUpperCase','all','keys','resolve','RABETBASE_APPCODE','_notice'];a252_0x4952=function(){return _0x291303;};return a252_0x4952();}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_0x5c34b0}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x41447c){const _0x50026b=a252_0x395c;return typeof _0x41447c===_0x50026b(0xfb)&&_0x41447c[_0x50026b(0xfc)]()?_0x41447c[_0x50026b(0xfc)]():undefined;}function resolveEnvAppCode(){const _0x5f2bc6=a252_0x395c,_0x34f65c=stringFlag(process.env.RABETBASE_APPCODE);if(_0x34f65c)return{'name':_0x5f2bc6(0x12b),'value':_0x34f65c};const _0x574538=stringFlag(process.env.LOVRABET_APPCODE);if(_0x574538)return{'name':_0x5f2bc6(0x135),'value':_0x574538};return undefined;}function hasExplicitAppCode(_0x531c96,_0x2c5665){const _0x1d5e84=a252_0x395c;return!!(stringFlag(_0x531c96[_0x1d5e84(0xfa)])||stringFlag(_0x2c5665['appcode']));}function assertEnvAppCodeNotIgnored(_0x40be51,_0x2fc8d3,_0x55c443){const _0x15d737=a252_0x395c;if(!_0x2fc8d3||_0x55c443||_0x40be51===_0x2fc8d3[_0x15d737(0x126)])return;const _0x250747=_0x40be51?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x40be51+'\x22.':'No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.';throw CliErrors[_0x15d737(0x120)](_0x2fc8d3[_0x15d737(0x113)]+'='+_0x2fc8d3[_0x15d737(0x126)]+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x250747+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x2fc8d3['name']+'\x22.'));}export function createPipelineEnv(_0x5df6b8,_0x17cc7e,_0x550b28=[]){const _0x587443=a252_0x395c;return{'rawFlags':_0x17cc7e,'args':_0x550b28,'resolveAppCode':()=>_0x5df6b8[_0x587443(0x134)],'resolveCookie':()=>_0x5df6b8[_0x587443(0x10c)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a252_0x5c34b0(_0x17cc7e),'defaultFormat':_0x5df6b8[_0x587443(0x110)],'defaultPageSize':_0x5df6b8['pageSize'],'defaultVerbose':_0x5df6b8[_0x587443(0x119)],'apiDir':_0x5df6b8[_0x587443(0x13b)],'riskLevel':_0x5df6b8['riskLevel'],'selectedAppName':_0x5df6b8[_0x587443(0x12f)],'mergedCli':{'defaultApp':_0x5df6b8[_0x587443(0x106)],'currentApp':_0x5df6b8[_0x587443(0x111)],'appCode':_0x5df6b8['appCode'],'apps':_0x5df6b8[_0x587443(0xf8)]}};}export function createRabetbaseRunnerAdapter(_0x3da1a7={}){const _0x3cc5de=a252_0x395c;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x3cc5de(0xf6)](_0x11fc9a=>PIPELINE_FLAG_NAMES[_0x3cc5de(0x13d)](_0x11fc9a[_0x3cc5de(0x113)]))[_0x3cc5de(0x13f)](({name:_0x324885,type:_0x23e324,description:_0x536db8})=>({'name':_0x324885,'type':_0x23e324,'description':_0x536db8})),'formatOutput':_0x3da1a7[_0x3cc5de(0x12e)]??formatOutput,'getCommandLabel'(_0x375395){const _0x2a7fc6=_0x3cc5de;return CLI_BIN_NAME+'\x20'+_0x375395[_0x2a7fc6(0x132)]+'\x20'+_0x375395['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x3cb765,{def:_0x4d908c}){const _0x55f7b5=_0x3cc5de,_0x48ece0=_0x3cb765[_0x55f7b5(0x114)]('Edit\x20the\x20config\x20file\x20manually')?_0x55f7b5(0x125):_0x55f7b5(0x112)+_0x4d908c[_0x55f7b5(0x10b)]+_0x55f7b5(0x101)+_0x55f7b5(0x125);return CliErrors[_0x55f7b5(0x120)](_0x3cb765+_0x55f7b5(0x117)+_0x48ece0);}},async 'prepare'(_0x2f4742,_0x5a39b2,_0x373ee5,_0x14f257){const _0x5a2075=_0x3cc5de,_0x3dfd91=_0x5a39b2[_0x5a2075(0x13b)]||DEFAULT_API_DIR;resolveAliasToCode(_0x2f4742,_0x373ee5,_0x3dfd91,_0x14f257);const _0x2cfabe=resolveCommandAuthMode(_0x2f4742);let _0x1445f2='';if(_0x2cfabe!==_0x5a2075(0x121)){_0x1445f2=_0x5a39b2[_0x5a2075(0xf9)]()||'';if(!_0x1445f2){if(_0x2cfabe===_0x5a2075(0x100))throw CliErrors[_0x5a2075(0x137)]();}else{const {setActiveCookie:_0x2357ef}=await import(_0x5a2075(0x10d));_0x2357ef(_0x1445f2);}}const _0x22d80f=_0x5a39b2[_0x5a2075(0xf7)]()??'';if(_0x2f4742[_0x5a2075(0x11b)]!==![]){const _0x5e95a5=hasExplicitAppCode(_0x373ee5,_0x5a39b2['rawFlags']),_0x20f687=_0x5a39b2['mergedCli']?.[_0x5a2075(0xf8)]??{},_0x42f5a7=_0x5a39b2[_0x5a2075(0x13a)]||_0x5a39b2[_0x5a2075(0xf5)]?.[_0x5a2075(0x111)]||_0x5a39b2[_0x5a2075(0xf5)]?.['defaultApp'];if(!_0x5e95a5&&_0x42f5a7&&!_0x20f687[_0x42f5a7]){const _0x4baed3=Object[_0x5a2075(0x129)](_0x20f687);throw CliErrors['validation'](_0x5a2075(0x136)+_0x42f5a7+_0x5a2075(0x109),_0x4baed3['length']>0x0?'Available:\x20'+_0x4baed3[_0x5a2075(0x11a)](',\x20')+'.\x20Use\x20--app/--appcode,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x5a2075(0x116):'Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x5a2075(0x116));}assertEnvAppCodeNotIgnored(_0x22d80f,resolveEnvAppCode(),_0x5e95a5);if(!_0x22d80f){const _0x1c08d7=Object[_0x5a2075(0x129)](_0x20f687);if(!_0x42f5a7&&_0x1c08d7[_0x5a2075(0x130)]>0x1)throw CliErrors['configMissing'](_0x5a2075(0x107)+CLI_BIN_NAME+_0x5a2075(0x103)+_0x1c08d7[_0x5a2075(0x11a)](',\x20')+'.');throw CliErrors['configMissing'](_0x5a2075(0x118)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}}return{'defaults':{'booleans':{'verbose':_0x5a39b2['defaultVerbose']},'numbers':{'pagesize':_0x5a39b2[_0x5a2075(0x108)]}},'extras':{'appCode':_0x22d80f,'cookie':_0x1445f2,'apiDomain':_0x5a39b2[_0x5a2075(0x123)](),'apiDir':_0x3dfd91,'selectedAppName':_0x5a39b2[_0x5a2075(0x13a)],'mergedCli':_0x5a39b2[_0x5a2075(0xf5)]}};},'confirmHighRisk':_0x3da1a7[_0x3cc5de(0x133)]??(async({env:_0x3921e9,commandLabel:_0x5e6cc7})=>{const _0x12e42a=_0x3cc5de;if(_0x3921e9['isNonInteractive'])throw CliErrors[_0x12e42a(0x120)]('High-risk\x20operation\x20`'+_0x5e6cc7+_0x12e42a(0x11d));await requireConfirmationPrompt({'lines':[_0x12e42a(0x11f)+_0x5e6cc7,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x39c6a2=>CliErrors[_0x12e42a(0x10a)](_0x39c6a2)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const {clearActiveCookie:_0x16ab48}=await import('../core/api-client.js');_0x16ab48();}export async function finalizeRabetbaseRuntimeState(){const _0x3043e2=a252_0x395c;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x2119c8},{initEnv:_0xf28cb4}]=await Promise[_0x3043e2(0x128)]([import('../constant/domain.js'),import(_0x3043e2(0x138))]);_0x2119c8(),_0xf28cb4(_0x3043e2(0xfd));}}export async function runCommand(_0x2ab24a,_0x19697d,_0x499cf3=terminalRunnerAdapter){const _0x505544=a252_0x395c;assertRejectedFlags(_0x2ab24a,_0x19697d[_0x505544(0x124)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x2ab24a)?withUpdateNotice(_0x2ab24a):_0x2ab24a,_0x19697d,_0x499cf3);}function assertRejectedFlags(_0x3c34cf,_0x129b50){const _0x44a86b=a252_0x395c;for(const _0x4bec12 of _0x3c34cf['rejectedFlags']??[]){const _0x3ade16=GLOBAL_FLAGS['find'](_0x41ce45=>_0x41ce45[_0x44a86b(0x113)]===_0x4bec12[_0x44a86b(0x113)]),_0x5ce1ac=new Set([_0x4bec12['name'],toCamelCase(_0x4bec12['name']),_0x3ade16?.['meowKey']]),_0x321ed7=[..._0x5ce1ac][_0x44a86b(0x12d)](_0x440f96=>{if(!_0x440f96)return![];const _0x4c4f9f=_0x129b50[_0x440f96];return _0x4c4f9f!==undefined&&_0x4c4f9f!==null&&_0x4c4f9f!==![];});if(_0x321ed7)throw CliErrors[_0x44a86b(0x120)](_0x4bec12[_0x44a86b(0x122)],_0x4bec12[_0x44a86b(0xff)]);}}function toCamelCase(_0x15bba2){const _0x3b355e=a252_0x395c;return _0x15bba2['replace'](/-([a-z])/g,(_0x56ab1d,_0x3ec13c)=>_0x3ec13c[_0x3b355e(0x127)]());}function shouldAttachUpdateNotice(_0x3d5ff0){const _0x5404d4=a252_0x395c;if(_0x3d5ff0[_0x5404d4(0xf4)]===![])return![];return!['update',_0x5404d4(0x104),'doctor'][_0x5404d4(0x114)](_0x3d5ff0[_0x5404d4(0x132)]);}function withUpdateNotice(_0x4f6abf){return{..._0x4f6abf,async 'execute'(_0x5eb068){const _0x69b33f=a252_0x395c,_0x2f96f2=shouldResolveUpdateNotice(_0x5eb068)?resolveLatestUpdateNotice()[_0x69b33f(0x13e)](()=>null):Promise[_0x69b33f(0x12a)](null),_0x65fa7c=await _0x4f6abf['execute'](_0x5eb068);return attachUpdateNotice(_0x65fa7c,await _0x2f96f2);}};}function shouldResolveUpdateNotice(_0x5e24a1){const _0x3c6973=a252_0x395c;return _0x5e24a1['format']==='pretty'&&!_0x5e24a1[_0x3c6973(0x10e)];}function attachUpdateNotice(_0xbd797b,_0x5ab224){const _0x2fd523=a252_0x395c;if(!_0x5ab224||!_0xbd797b||typeof _0xbd797b!=='object')return _0xbd797b;const _0x217e89=_0xbd797b,_0x4f3b97=typeof _0x217e89[_0x2fd523(0x12c)]===_0x2fd523(0x13c)&&_0x217e89[_0x2fd523(0x12c)]!==null?_0x217e89[_0x2fd523(0x12c)]:{};return{..._0x217e89,'_notice':{..._0x4f3b97,'update':_0x5ab224}};}
1
+ (function(_0x40082b,_0xebdfdb){const _0x30ca86=a254_0x3459,_0x23aa2f=_0x40082b();while(!![]){try{const _0x1cc844=-parseInt(_0x30ca86(0xcc))/0x1*(-parseInt(_0x30ca86(0xb0))/0x2)+-parseInt(_0x30ca86(0xd0))/0x3*(parseInt(_0x30ca86(0xd5))/0x4)+-parseInt(_0x30ca86(0xc4))/0x5*(-parseInt(_0x30ca86(0xa5))/0x6)+-parseInt(_0x30ca86(0xd4))/0x7+-parseInt(_0x30ca86(0xa3))/0x8+-parseInt(_0x30ca86(0xa8))/0x9*(parseInt(_0x30ca86(0xaa))/0xa)+parseInt(_0x30ca86(0xf7))/0xb;if(_0x1cc844===_0xebdfdb)break;else _0x23aa2f['push'](_0x23aa2f['shift']());}catch(_0x57697d){_0x23aa2f['push'](_0x23aa2f['shift']());}}}(a254_0x3e9e,0x677d0));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';function a254_0x3459(_0x279b65,_0xc025c0){_0x279b65=_0x279b65-0xa3;const _0x3e9ef8=a254_0x3e9e();let _0x3459a6=_0x3e9ef8[_0x279b65];return _0x3459a6;}import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a254_0x519cad}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x1c8626){const _0x4c05c6=a254_0x3459;return typeof _0x1c8626===_0x4c05c6(0xcd)&&_0x1c8626['trim']()?_0x1c8626['trim']():undefined;}function resolveEnvAppCode(){const _0x2c07db=a254_0x3459,_0x704b75=stringFlag(process.env.RABETBASE_APPCODE);if(_0x704b75)return{'name':'RABETBASE_APPCODE','value':_0x704b75};const _0x2ec89a=stringFlag(process.env.LOVRABET_APPCODE);if(_0x2ec89a)return{'name':_0x2c07db(0xc7),'value':_0x2ec89a};return undefined;}function hasExplicitAppCode(_0x1c6052,_0x3617fd){const _0x1784cf=a254_0x3459;return!!(stringFlag(_0x1c6052[_0x1784cf(0xa9)])||stringFlag(_0x3617fd['appcode']));}function assertEnvAppCodeNotIgnored(_0x21f5a4,_0x262ede,_0x36ce1c){const _0x52dbfe=a254_0x3459;if(!_0x262ede||_0x36ce1c||_0x21f5a4===_0x262ede[_0x52dbfe(0xc3)])return;const _0x13d991=_0x21f5a4?_0x52dbfe(0xdc)+_0x21f5a4+'\x22.':_0x52dbfe(0xb7);throw CliErrors[_0x52dbfe(0xeb)](_0x262ede[_0x52dbfe(0xd1)]+'='+_0x262ede['value']+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x13d991+'\x20'+(_0x52dbfe(0xe8)+_0x262ede[_0x52dbfe(0xd1)]+'\x22.'));}export function createPipelineEnv(_0x2acab1,_0x18fc9d,_0x282c31=[]){const _0x586136=a254_0x3459;return{'rawFlags':_0x18fc9d,'args':_0x282c31,'resolveAppCode':()=>_0x2acab1[_0x586136(0xc2)],'resolveCookie':()=>_0x2acab1['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a254_0x519cad(_0x18fc9d),'defaultFormat':_0x2acab1['format'],'defaultPageSize':_0x2acab1['pageSize'],'defaultVerbose':_0x2acab1[_0x586136(0xb9)],'apiDir':_0x2acab1[_0x586136(0xa4)],'riskLevel':_0x2acab1['riskLevel'],'selectedAppName':_0x2acab1['explicitAppName'],'mergedCli':{'defaultApp':_0x2acab1[_0x586136(0xe9)],'currentApp':_0x2acab1[_0x586136(0xef)],'appCode':_0x2acab1[_0x586136(0xc2)],'apps':_0x2acab1[_0x586136(0xbb)]}};}export function createRabetbaseRunnerAdapter(_0x5b93e8={}){const _0x2efdeb=a254_0x3459;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x2efdeb(0xe4)](_0x3bdb88=>PIPELINE_FLAG_NAMES[_0x2efdeb(0xe0)](_0x3bdb88[_0x2efdeb(0xd1)]))[_0x2efdeb(0xb4)](({name:_0x49baf8,type:_0xd5ba80,description:_0x27ea7d})=>({'name':_0x49baf8,'type':_0xd5ba80,'description':_0x27ea7d})),'formatOutput':_0x5b93e8[_0x2efdeb(0xb8)]??formatOutput,'getCommandLabel'(_0x4ab4c1){const _0x2666ca=_0x2efdeb;return CLI_BIN_NAME+'\x20'+_0x4ab4c1['service']+'\x20'+_0x4ab4c1[_0x2666ca(0xf4)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x1de006,{def:_0xfeb64d}){const _0x4e7ae8=_0x2efdeb,_0x5662d1=_0x1de006[_0x4e7ae8(0xf5)](_0x4e7ae8(0xdf))?_0x4e7ae8(0xdb):_0x4e7ae8(0xe6)+_0xfeb64d[_0x4e7ae8(0xac)]+_0x4e7ae8(0xb1)+_0x4e7ae8(0xdb);return CliErrors[_0x4e7ae8(0xeb)](_0x1de006+'\x0a\x20\x20'+_0x5662d1);}},async 'prepare'(_0x2831ba,_0x2eb146,_0x40e7a5,_0x2a310b){const _0x547f08=_0x2efdeb,_0x168901=_0x2eb146[_0x547f08(0xa4)]||DEFAULT_API_DIR;resolveAliasToCode(_0x2831ba,_0x40e7a5,_0x168901,_0x2a310b);const _0xa94179=resolveCommandAuthMode(_0x2831ba);let _0x5171e4='';if(_0xa94179!==_0x547f08(0xcf)){_0x5171e4=_0x2eb146[_0x547f08(0xd7)]()||'';if(!_0x5171e4){if(_0xa94179===_0x547f08(0xa7))throw CliErrors[_0x547f08(0xb2)]();}else{const {setActiveCookie:_0x7db893}=await import(_0x547f08(0xbf));_0x7db893(_0x5171e4);}}const _0x4d709b=_0x2eb146[_0x547f08(0xde)]()??'';if(_0x2831ba[_0x547f08(0xe7)]!==![]){const _0x4d4490=hasExplicitAppCode(_0x40e7a5,_0x2eb146['rawFlags']),_0x54d418=_0x2eb146[_0x547f08(0xf2)]?.[_0x547f08(0xbb)]??{},_0x73a20d=_0x2eb146['selectedAppName']||_0x2eb146[_0x547f08(0xf2)]?.[_0x547f08(0xef)]||_0x2eb146[_0x547f08(0xf2)]?.[_0x547f08(0xe9)];if(!_0x4d4490&&_0x73a20d&&!_0x54d418[_0x73a20d]){const _0x5d2a41=Object[_0x547f08(0xb5)](_0x54d418);throw CliErrors[_0x547f08(0xeb)](_0x547f08(0xab)+_0x73a20d+'\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.',_0x5d2a41[_0x547f08(0xda)]>0x0?_0x547f08(0xd2)+_0x5d2a41[_0x547f08(0xba)](',\x20')+_0x547f08(0xa6)+CLI_BIN_NAME+_0x547f08(0xf0):_0x547f08(0xc1)+CLI_BIN_NAME+_0x547f08(0xf0));}assertEnvAppCodeNotIgnored(_0x4d709b,resolveEnvAppCode(),_0x4d4490);if(!_0x4d709b){const _0x2fd2be=Object[_0x547f08(0xb5)](_0x54d418);if(!_0x73a20d&&_0x2fd2be[_0x547f08(0xda)]>0x1)throw CliErrors[_0x547f08(0xb3)](_0x547f08(0xc9)+CLI_BIN_NAME+_0x547f08(0xce)+_0x2fd2be[_0x547f08(0xba)](',\x20')+'.');throw CliErrors[_0x547f08(0xb3)](_0x547f08(0xc0)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}}return{'defaults':{'booleans':{'verbose':_0x2eb146[_0x547f08(0xad)]},'numbers':{'pagesize':_0x2eb146[_0x547f08(0xe1)]}},'extras':{'appCode':_0x4d709b,'cookie':_0x5171e4,'apiDomain':_0x2eb146[_0x547f08(0xd3)](),'apiDir':_0x168901,'selectedAppName':_0x2eb146[_0x547f08(0xbe)],'mergedCli':_0x2eb146[_0x547f08(0xf2)]}};},'confirmHighRisk':_0x5b93e8['confirmHighRisk']??(async({env:_0x55e382,commandLabel:_0x28c782})=>{const _0x535538=_0x2efdeb;if(_0x55e382[_0x535538(0xae)])throw CliErrors[_0x535538(0xeb)]('High-risk\x20operation\x20`'+_0x28c782+_0x535538(0xd9));await requireConfirmationPrompt({'lines':[_0x535538(0xd8)+_0x28c782,_0x535538(0xc8)],'createCancelledError':_0x12c406=>CliErrors[_0x535538(0xbd)](_0x12c406)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();function a254_0x3e9e(){const _0x3278c3=['resolveApiDomain','223622NOZOZV','2043636TUtNAd','execute','resolveCookie','⚠\x20\x20High-risk\x20operation:\x20','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','length','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','Current\x20resolved\x20appcode\x20is\x20\x22','all','resolveAppCode','Edit\x20the\x20config\x20file\x20manually','has','defaultPageSize','../constant/domain.js','hint','filter','pretty','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','requiresAppCode','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','defaultApp','some','validation','_notice','update','doctor','currentApp','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','object','mergedCli','resolve','command','includes','find','1654675HPexKb','4685552NWqQAf','apiDir','42kodHlJ','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','required','35163JpCsAd','appcode','310NrEFzD','App\x20\x22','risk','defaultVerbose','isNonInteractive','schema','51888HmBjhS','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','authRequired','configMissing','map','keys','hasFormat','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','formatOutput','verbose','join','apps','format','cancelled','selectedAppName','../core/api-client.js','Set\x20appcode\x20via\x20`','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','appCode','value','513475BCqKFC','rejectedFlags','replace','LOVRABET_APPCODE','\x20\x20\x20Continue?\x20[y/N]\x20','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','service','production','31tnCzuy','string','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','none','3DDcrRW','name','Available:\x20'];a254_0x3e9e=function(){return _0x3278c3;};return a254_0x3e9e();}async function clearRabetbaseCommandState(){const {clearActiveCookie:_0x19015e}=await import('../core/api-client.js');_0x19015e();}export async function finalizeRabetbaseRuntimeState(){const _0x27f150=a254_0x3459;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x153e4a},{initEnv:_0x16c5cb}]=await Promise[_0x27f150(0xdd)]([import(_0x27f150(0xe2)),import('../constant/env.js')]);_0x153e4a(),_0x16c5cb(_0x27f150(0xcb));}}export async function runCommand(_0xa70df3,_0x32942e,_0x3ec5b6=terminalRunnerAdapter){assertRejectedFlags(_0xa70df3,_0x32942e['rawFlags']),await runCommandWithAdapter(shouldAttachUpdateNotice(_0xa70df3)?withUpdateNotice(_0xa70df3):_0xa70df3,_0x32942e,_0x3ec5b6);}function assertRejectedFlags(_0x372a2f,_0x31f60d){const _0x78e5ef=a254_0x3459;for(const _0x5e3a88 of _0x372a2f[_0x78e5ef(0xc5)]??[]){const _0xfb588=GLOBAL_FLAGS[_0x78e5ef(0xf6)](_0x29a15b=>_0x29a15b[_0x78e5ef(0xd1)]===_0x5e3a88['name']),_0x4de8af=new Set([_0x5e3a88[_0x78e5ef(0xd1)],toCamelCase(_0x5e3a88['name']),_0xfb588?.['meowKey']]),_0x53c620=[..._0x4de8af][_0x78e5ef(0xea)](_0x34a4db=>{if(!_0x34a4db)return![];const _0x4d2c72=_0x31f60d[_0x34a4db];return _0x4d2c72!==undefined&&_0x4d2c72!==null&&_0x4d2c72!==![];});if(_0x53c620)throw CliErrors[_0x78e5ef(0xeb)](_0x5e3a88['message'],_0x5e3a88[_0x78e5ef(0xe3)]);}}function toCamelCase(_0x51a28d){const _0x297d6f=a254_0x3459;return _0x51a28d[_0x297d6f(0xc6)](/-([a-z])/g,(_0x1d22f9,_0x3142de)=>_0x3142de['toUpperCase']());}function shouldAttachUpdateNotice(_0x5542a2){const _0x1fec05=a254_0x3459;if(_0x5542a2[_0x1fec05(0xb6)]===![])return![];return![_0x1fec05(0xed),_0x1fec05(0xaf),_0x1fec05(0xee)]['includes'](_0x5542a2[_0x1fec05(0xca)]);}function withUpdateNotice(_0x398aa9){return{..._0x398aa9,async 'execute'(_0x5d04f7){const _0x3cb5f8=a254_0x3459,_0x80e0fd=shouldResolveUpdateNotice(_0x5d04f7)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x3cb5f8(0xf3)](null),_0x2282af=await _0x398aa9[_0x3cb5f8(0xd6)](_0x5d04f7);return attachUpdateNotice(_0x2282af,await _0x80e0fd);}};}function shouldResolveUpdateNotice(_0x245ec6){const _0x1f9614=a254_0x3459;return _0x245ec6[_0x1f9614(0xbc)]===_0x1f9614(0xe5)&&!_0x245ec6['nonInteractive'];}function attachUpdateNotice(_0x1dc249,_0x140a34){const _0x457d9e=a254_0x3459;if(!_0x140a34||!_0x1dc249||typeof _0x1dc249!=='object')return _0x1dc249;const _0x4e484c=_0x1dc249,_0x43cdca=typeof _0x4e484c[_0x457d9e(0xec)]===_0x457d9e(0xf1)&&_0x4e484c[_0x457d9e(0xec)]!==null?_0x4e484c[_0x457d9e(0xec)]:{};return{..._0x4e484c,'_notice':{..._0x43cdca,'update':_0x140a34}};}
@@ -1 +1 @@
1
- (function(_0x254215,_0x167756){const _0x10231b=a253_0x353e,_0x406ab1=_0x254215();while(!![]){try{const _0x3d53d6=parseInt(_0x10231b(0x107))/0x1+parseInt(_0x10231b(0x10d))/0x2*(-parseInt(_0x10231b(0x110))/0x3)+-parseInt(_0x10231b(0x108))/0x4*(-parseInt(_0x10231b(0x105))/0x5)+-parseInt(_0x10231b(0x10e))/0x6*(-parseInt(_0x10231b(0x109))/0x7)+-parseInt(_0x10231b(0x112))/0x8*(-parseInt(_0x10231b(0x10c))/0x9)+parseInt(_0x10231b(0x10b))/0xa*(-parseInt(_0x10231b(0x10a))/0xb)+-parseInt(_0x10231b(0x106))/0xc*(-parseInt(_0x10231b(0x10f))/0xd);if(_0x3d53d6===_0x167756)break;else _0x406ab1['push'](_0x406ab1['shift']());}catch(_0x44bdae){_0x406ab1['push'](_0x406ab1['shift']());}}}(a253_0x5170,0x201eb));import{buildSchemaPayload as a253_0x47fa7b}from'@lovrabet/cli-framework';function a253_0x353e(_0x1dc483,_0x30cc4e){_0x1dc483=_0x1dc483-0x105;const _0x517001=a253_0x5170();let _0x353e1e=_0x517001[_0x1dc483];return _0x353e1e;}import{buildAllFlags}from'../framework/build-all-flags.js';function a253_0x5170(){const _0x3dd484=['10iwFNxb','9khynTF','18566euXxkw','6MUUuCj','5876wpbzkp','6DNoRwE','../commands/registry.js','445336iAntvi','5HhSHjB','1164HzNXpG','81255hYgQMc','30948gqvIrp','1503481fRpIIv','2784727XtCwgR'];a253_0x5170=function(){return _0x3dd484;};return a253_0x5170();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x379c6a=a253_0x353e,{serviceRegistry:_0x118ddc,findDefinition:_0x2aea43}=await import(_0x379c6a(0x111));return a253_0x47fa7b({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x118ddc,'buildAllFlags':buildAllFlags,'findDefinition':_0x2aea43});}
1
+ (function(_0x53293b,_0x4c503c){const _0x46cfd0=a255_0x3961,_0x12cf2b=_0x53293b();while(!![]){try{const _0x1b9e13=-parseInt(_0x46cfd0(0xcc))/0x1*(parseInt(_0x46cfd0(0xca))/0x2)+-parseInt(_0x46cfd0(0xc7))/0x3*(parseInt(_0x46cfd0(0xcd))/0x4)+parseInt(_0x46cfd0(0xc6))/0x5+parseInt(_0x46cfd0(0xcb))/0x6*(parseInt(_0x46cfd0(0xcf))/0x7)+-parseInt(_0x46cfd0(0xc4))/0x8+parseInt(_0x46cfd0(0xc5))/0x9+parseInt(_0x46cfd0(0xce))/0xa*(parseInt(_0x46cfd0(0xc8))/0xb);if(_0x1b9e13===_0x4c503c)break;else _0x12cf2b['push'](_0x12cf2b['shift']());}catch(_0x4299c2){_0x12cf2b['push'](_0x12cf2b['shift']());}}}(a255_0x3baf,0x93d55));function a255_0x3961(_0x228294,_0x395d0a){_0x228294=_0x228294-0xc4;const _0x3baf02=a255_0x3baf();let _0x3961a0=_0x3baf02[_0x228294];return _0x3961a0;}import{buildSchemaPayload as a255_0x2ef410}from'@lovrabet/cli-framework';function a255_0x3baf(){const _0x31e67a=['../commands/registry.js','184uPGbXt','6486YSAILY','9311adwCgv','20VqqbVD','4273690yAHIfa','3304JKDeUM','6938248iSSrMV','2610945fSAVxo','4962045zrORvY','447261zLDleJ','33rpibfk'];a255_0x3baf=function(){return _0x31e67a;};return a255_0x3baf();}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 _0x5cb14c=a255_0x3961,{serviceRegistry:_0x2f229e,findDefinition:_0x3bcb07}=await import(_0x5cb14c(0xc9));return a255_0x2ef410({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x2f229e,'buildAllFlags':buildAllFlags,'findDefinition':_0x3bcb07});}
@@ -1 +1 @@
1
- (function(_0x12440c,_0x28fa3b){var _0x10e78c=a254_0x3d69,_0x583824=_0x12440c();while(!![]){try{var _0x36966a=parseInt(_0x10e78c(0xc7))/0x1+-parseInt(_0x10e78c(0xcc))/0x2*(parseInt(_0x10e78c(0xcd))/0x3)+-parseInt(_0x10e78c(0xca))/0x4+-parseInt(_0x10e78c(0xc9))/0x5+parseInt(_0x10e78c(0xc5))/0x6*(-parseInt(_0x10e78c(0xc4))/0x7)+parseInt(_0x10e78c(0xc6))/0x8+-parseInt(_0x10e78c(0xc8))/0x9*(-parseInt(_0x10e78c(0xcb))/0xa);if(_0x36966a===_0x28fa3b)break;else _0x583824['push'](_0x583824['shift']());}catch(_0x35846a){_0x583824['push'](_0x583824['shift']());}}}(a254_0x5533,0xd9dd7));function a254_0x3d69(_0x151a39,_0x2f08f9){_0x151a39=_0x151a39-0xc4;var _0x553300=a254_0x5533();var _0x3d6978=_0x553300[_0x151a39];return _0x3d6978;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';function a254_0x5533(){var _0x34035e=['36spujXd','154415veDDhP','6768536NsSnMh','8596070XztgVO','214730WcDsNa','33yWcITO','63lNHtfO','673422VAIPtS','5475568eSQyIl','683666Cgibyq'];a254_0x5533=function(){return _0x34035e;};return a254_0x5533();}
1
+ (function(_0x3f220d,_0x4f7c0a){var _0x19cf8f=a256_0x3dab,_0x2ecb01=_0x3f220d();while(!![]){try{var _0x550133=-parseInt(_0x19cf8f(0x7b))/0x1*(parseInt(_0x19cf8f(0x82))/0x2)+parseInt(_0x19cf8f(0x7f))/0x3+parseInt(_0x19cf8f(0x7a))/0x4*(-parseInt(_0x19cf8f(0x7e))/0x5)+-parseInt(_0x19cf8f(0x79))/0x6+-parseInt(_0x19cf8f(0x83))/0x7*(-parseInt(_0x19cf8f(0x7d))/0x8)+-parseInt(_0x19cf8f(0x81))/0x9*(parseInt(_0x19cf8f(0x80))/0xa)+parseInt(_0x19cf8f(0x7c))/0xb;if(_0x550133===_0x4f7c0a)break;else _0x2ecb01['push'](_0x2ecb01['shift']());}catch(_0x3418f6){_0x2ecb01['push'](_0x2ecb01['shift']());}}}(a256_0x204f,0xe0c55));function a256_0x204f(){var _0x3b5f35=['1190bqUedh','276836MyiNUR','5887566VbQyWO','8RxeibM','192HIdBhh','14750043fhhVsW','88KZQTeD','792335TejRFX','4778511iWWLmA','5178410jvVEmj','18vjwTBv'];a256_0x204f=function(){return _0x3b5f35;};return a256_0x204f();}function a256_0x3dab(_0x2392fd,_0x26fcf9){_0x2392fd=_0x2392fd-0x79;var _0x204fcb=a256_0x204f();var _0x3dabcb=_0x204fcb[_0x2392fd];return _0x3dabcb;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "2.5.0-beta.6";
2
- export declare const GIT_TAG = "v2.5.0-beta.6";
3
- export declare const GIT_COMMIT = "1d08333";
4
- export declare const BUILD_TIME = "2026-08-22T13:24:48.705Z";
1
+ export declare const VERSION = "2.5.1-beta.1";
2
+ export declare const GIT_TAG = "v2.5.1-beta.1";
3
+ export declare const GIT_COMMIT = "e0818008";
4
+ export declare const BUILD_TIME = "2026-08-26T12:07:30.585Z";
@@ -1 +1 @@
1
- const a255_0x505520=a255_0x3e1c;(function(_0x5ef51b,_0x1f2704){const _0x2ac1aa=a255_0x3e1c,_0x503042=_0x5ef51b();while(!![]){try{const _0x291240=parseInt(_0x2ac1aa(0x1e5))/0x1*(parseInt(_0x2ac1aa(0x1da))/0x2)+-parseInt(_0x2ac1aa(0x1e7))/0x3*(-parseInt(_0x2ac1aa(0x1df))/0x4)+-parseInt(_0x2ac1aa(0x1e4))/0x5*(parseInt(_0x2ac1aa(0x1e3))/0x6)+parseInt(_0x2ac1aa(0x1dd))/0x7*(parseInt(_0x2ac1aa(0x1e2))/0x8)+parseInt(_0x2ac1aa(0x1dc))/0x9*(parseInt(_0x2ac1aa(0x1e0))/0xa)+parseInt(_0x2ac1aa(0x1de))/0xb+parseInt(_0x2ac1aa(0x1db))/0xc*(-parseInt(_0x2ac1aa(0x1e6))/0xd);if(_0x291240===_0x1f2704)break;else _0x503042['push'](_0x503042['shift']());}catch(_0x88b45f){_0x503042['push'](_0x503042['shift']());}}}(a255_0x3965,0xc653d));export const VERSION='2.5.0-beta.6';export const GIT_TAG=a255_0x505520(0x1e1);export const GIT_COMMIT='1d08333';export const BUILD_TIME='2026-08-22T13:24:48.705Z';function a255_0x3e1c(_0x4e71eb,_0x13c0ae){_0x4e71eb=_0x4e71eb-0x1da;const _0x39651b=a255_0x3965();let _0x3e1c81=_0x39651b[_0x4e71eb];return _0x3e1c81;}function a255_0x3965(){const _0x66ce0b=['1oKdlei','19259604Mfozma','17448HrKYvM','998440PuzGfe','24ftwHoa','9hEdBwH','259vZUTXf','16853969npbpYJ','8rguvze','9208120eYpTgN','v2.5.0-beta.6','204576YkLRQn','807852AKjawk','5APBMLs'];a255_0x3965=function(){return _0x66ce0b;};return a255_0x3965();}
1
+ function a257_0x69fa(_0x2971da,_0x1ee5b8){_0x2971da=_0x2971da-0x1bb;const _0x3614c7=a257_0x3614();let _0x69fad0=_0x3614c7[_0x2971da];return _0x69fad0;}const a257_0x2697c4=a257_0x69fa;(function(_0x486341,_0x23dd74){const _0x343b64=a257_0x69fa,_0x18540b=_0x486341();while(!![]){try{const _0x5bb1bf=parseInt(_0x343b64(0x1bc))/0x1+-parseInt(_0x343b64(0x1c5))/0x2*(-parseInt(_0x343b64(0x1c2))/0x3)+parseInt(_0x343b64(0x1bf))/0x4*(-parseInt(_0x343b64(0x1c3))/0x5)+parseInt(_0x343b64(0x1c0))/0x6*(-parseInt(_0x343b64(0x1bb))/0x7)+-parseInt(_0x343b64(0x1c6))/0x8+-parseInt(_0x343b64(0x1c4))/0x9+parseInt(_0x343b64(0x1be))/0xa;if(_0x5bb1bf===_0x23dd74)break;else _0x18540b['push'](_0x18540b['shift']());}catch(_0x37f4bb){_0x18540b['push'](_0x18540b['shift']());}}}(a257_0x3614,0x5ebb8));export const VERSION=a257_0x2697c4(0x1bd);export const GIT_TAG='v2.5.1-beta.1';export const GIT_COMMIT='e0818008';export const BUILD_TIME=a257_0x2697c4(0x1c1);function a257_0x3614(){const _0x14a0b9=['1379cXCvoS','561639XNJBxi','2.5.1-beta.1','7250180gPOWSg','1241876uNGTnm','2946FJLPYD','2026-08-26T12:07:30.585Z','3gqrlvx','5rwmGIU','2706147gPobnz','890582oWsxFM','5088360vzjtvD'];a257_0x3614=function(){return _0x14a0b9;};return a257_0x3614();}
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x475bae,_0x5677b9){var _0x387fb5=a256_0x4541,_0x3df6fb=_0x475bae();while(!![]){try{var _0x4c5b7a=-parseInt(_0x387fb5(0x11c))/0x1*(parseInt(_0x387fb5(0x11a))/0x2)+-parseInt(_0x387fb5(0x11e))/0x3*(-parseInt(_0x387fb5(0x112))/0x4)+parseInt(_0x387fb5(0x120))/0x5*(parseInt(_0x387fb5(0x116))/0x6)+parseInt(_0x387fb5(0x113))/0x7*(parseInt(_0x387fb5(0x114))/0x8)+parseInt(_0x387fb5(0x11b))/0x9+-parseInt(_0x387fb5(0x121))/0xa+parseInt(_0x387fb5(0x117))/0xb;if(_0x4c5b7a===_0x5677b9)break;else _0x3df6fb['push'](_0x3df6fb['shift']());}catch(_0x264756){_0x3df6fb['push'](_0x3df6fb['shift']());}}}(a256_0x1bb5,0x6a69c));import a256_0x359c19 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a256_0x4541(_0x3a2869,_0x21830a){_0x3a2869=_0x3a2869-0x112;var _0x1bb576=a256_0x1bb5();var _0x454150=_0x1bb576[_0x3a2869];return _0x454150;}export function showHelp(){var _0x56c673=a256_0x4541;console['log'](),console['log'](a256_0x359c19[_0x56c673(0x118)][_0x56c673(0x11f)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x56c673(0x11d)](),console[_0x56c673(0x11d)](_0x56c673(0x119)+a256_0x359c19[_0x56c673(0x118)]['bold'](CLI_BIN_NAME+'\x20--help')+_0x56c673(0x115)),console[_0x56c673(0x11d)]();}function a256_0x1bb5(){var _0x4314c3=['10ovaVia','7787430eUGSkU','4QgbIxE','3276qxdzgD','2032cVRzBJ','\x20to\x20view\x20available\x20commands.','1272162vXLYnJ','2321913pbXxtN','green','\x20\x20Use\x20','1350526JzvpTC','2686077nHWiYf','1ISKJjf','log','2512236uYtIxf','bold'];a256_0x1bb5=function(){return _0x4314c3;};return a256_0x1bb5();}
1
+ (function(_0x19bd31,_0x56dc71){var _0x54afa7=a258_0x2c89,_0x520622=_0x19bd31();while(!![]){try{var _0x2d2025=-parseInt(_0x54afa7(0x87))/0x1*(-parseInt(_0x54afa7(0x85))/0x2)+parseInt(_0x54afa7(0x8e))/0x3+parseInt(_0x54afa7(0x8a))/0x4+parseInt(_0x54afa7(0x8c))/0x5+-parseInt(_0x54afa7(0x89))/0x6+parseInt(_0x54afa7(0x83))/0x7*(-parseInt(_0x54afa7(0x8d))/0x8)+-parseInt(_0x54afa7(0x82))/0x9*(parseInt(_0x54afa7(0x84))/0xa);if(_0x2d2025===_0x56dc71)break;else _0x520622['push'](_0x520622['shift']());}catch(_0x158d10){_0x520622['push'](_0x520622['shift']());}}}(a258_0x2010,0xa620e));import a258_0x3fdc80 from'chalk';function a258_0x2010(){var _0x4176a1=['10186808XKaxmR','2133783LTQeLT','log','9LbaNNT','7kCyiRK','6438940jEpqcg','2NdbSWb','\x20to\x20view\x20available\x20commands.','1189813aCfsPK','bold','4387152FdBopd','1066532hxPcqJ','\x20\x20Use\x20','5805960mxeeHV'];a258_0x2010=function(){return _0x4176a1;};return a258_0x2010();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a258_0x2c89(_0x4510ca,_0x1eba2c){_0x4510ca=_0x4510ca-0x81;var _0x20100a=a258_0x2010();var _0x2c895d=_0x20100a[_0x4510ca];return _0x2c895d;}export function showHelp(){var _0x4782c4=a258_0x2c89;console['log'](),console[_0x4782c4(0x81)](a258_0x3fdc80['green'][_0x4782c4(0x88)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x4782c4(0x81)](),console['log'](_0x4782c4(0x8b)+a258_0x3fdc80['green'][_0x4782c4(0x88)](CLI_BIN_NAME+'\x20--help')+_0x4782c4(0x86)),console[_0x4782c4(0x81)]();}
@@ -1 +1 @@
1
- (function(_0x49af21,_0x47e5cc){const _0x7ef11f=a257_0x4ee8,_0x5671b0=_0x49af21();while(!![]){try{const _0x4478d5=-parseInt(_0x7ef11f(0x15e))/0x1+parseInt(_0x7ef11f(0x16e))/0x2+parseInt(_0x7ef11f(0x16b))/0x3+-parseInt(_0x7ef11f(0x16f))/0x4*(-parseInt(_0x7ef11f(0x161))/0x5)+-parseInt(_0x7ef11f(0x172))/0x6*(-parseInt(_0x7ef11f(0x16c))/0x7)+-parseInt(_0x7ef11f(0x170))/0x8+-parseInt(_0x7ef11f(0x15d))/0x9*(parseInt(_0x7ef11f(0x16a))/0xa);if(_0x4478d5===_0x47e5cc)break;else _0x5671b0['push'](_0x5671b0['shift']());}catch(_0x506a79){_0x5671b0['push'](_0x5671b0['shift']());}}}(a257_0x10b4,0xf00ac));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a257_0x4ee8(_0x3632a3,_0xf2f545){_0x3632a3=_0x3632a3-0x15c;const _0x10b4eb=a257_0x10b4();let _0x4ee86e=_0x10b4eb[_0x3632a3];return _0x4ee86e;}export async function runPostinstall(_0xa9aedd={}){const _0xd6e6f6=a257_0x4ee8,_0x3f7f3c=installBuiltinSkill(_0xa9aedd);if(_0x3f7f3c['ok']){const _0x1483a2=_0x3f7f3c['changed']?_0xd6e6f6(0x15f):_0xd6e6f6(0x168),_0x157ac0=_0x3f7f3c[_0xd6e6f6(0x15c)]?_0xd6e6f6(0x171)+_0x3f7f3c[_0xd6e6f6(0x15c)]:_0xd6e6f6(0x16d);return console[_0xd6e6f6(0x163)](_0xd6e6f6(0x169)+_0x3f7f3c[_0xd6e6f6(0x173)]+'\x20'+_0x1483a2+_0x157ac0),_0x3f7f3c;}const _0x538043=_0xd6e6f6(0x166)+(_0x3f7f3c[_0xd6e6f6(0x162)]??'FAILED')+']\x20'+(_0x3f7f3c['error']??_0xd6e6f6(0x160))+'.\x20'+('Repair\x20with:\x20'+_0x3f7f3c[_0xd6e6f6(0x164)]);if(_0x3f7f3c['code']===_0xd6e6f6(0x165))throw new Error(_0x538043);return console[_0xd6e6f6(0x167)](_0x538043),_0x3f7f3c;}function a257_0x10b4(){const _0x281ff2=['84xebjWn','\x20via\x20skills@latest','3488360fvTBjN','2543468MmqxAH','1125792BTagsi','\x20at\x20','330222iRBQsp','skillVersion','installedPath','342jWpXcK','1068427AcAliU','installed','Installation\x20failed','10ISWiYm','code','log','repairCommand','SOURCE_INVALID','[BUILTIN_SKILL_INSTALL_','warn','already\x20current','Rabetbase\x20Built-in\x20Skill\x20','752310VtjvyG','4124349uLEAlR'];a257_0x10b4=function(){return _0x281ff2;};return a257_0x10b4();}
1
+ (function(_0x4e3627,_0x570058){const _0x5de96c=a259_0x1316,_0x2f7537=_0x4e3627();while(!![]){try{const _0x31c8e0=parseInt(_0x5de96c(0x176))/0x1*(parseInt(_0x5de96c(0x16a))/0x2)+-parseInt(_0x5de96c(0x175))/0x3+parseInt(_0x5de96c(0x163))/0x4+-parseInt(_0x5de96c(0x164))/0x5+-parseInt(_0x5de96c(0x16d))/0x6+parseInt(_0x5de96c(0x171))/0x7*(-parseInt(_0x5de96c(0x16f))/0x8)+-parseInt(_0x5de96c(0x165))/0x9*(-parseInt(_0x5de96c(0x161))/0xa);if(_0x31c8e0===_0x570058)break;else _0x2f7537['push'](_0x2f7537['shift']());}catch(_0x1252f6){_0x2f7537['push'](_0x2f7537['shift']());}}}(a259_0x5a82,0xe5125));function a259_0x5a82(){const _0x46caa7=['installed','40BGCrGi','installedPath','731927EbaBfw','[BUILTIN_SKILL_INSTALL_','log','Repair\x20with:\x20','4490850ouUydD','111cefMEn','repairCommand','warn','error','\x20at\x20','changed','36230120AefQwv','Installation\x20failed','4052364dkmdvk','8678160gqIenO','9suFnSa','FAILED','skillVersion','Rabetbase\x20Built-in\x20Skill\x20','already\x20current','5218bFrtPY','code','\x20via\x20skills@latest','1392228jfPonh'];a259_0x5a82=function(){return _0x46caa7;};return a259_0x5a82();}function a259_0x1316(_0x4c77aa,_0x3842ff){_0x4c77aa=_0x4c77aa-0x15d;const _0x5a82a0=a259_0x5a82();let _0x131670=_0x5a82a0[_0x4c77aa];return _0x131670;}import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x4b0942={}){const _0x33de72=a259_0x1316,_0xf5e8a1=installBuiltinSkill(_0x4b0942);if(_0xf5e8a1['ok']){const _0x28b793=_0xf5e8a1[_0x33de72(0x160)]?_0x33de72(0x16e):_0x33de72(0x169),_0x3a5258=_0xf5e8a1[_0x33de72(0x170)]?_0x33de72(0x15f)+_0xf5e8a1['installedPath']:_0x33de72(0x16c);return console[_0x33de72(0x173)](_0x33de72(0x168)+_0xf5e8a1[_0x33de72(0x167)]+'\x20'+_0x28b793+_0x3a5258),_0xf5e8a1;}const _0x2c357c=_0x33de72(0x172)+(_0xf5e8a1[_0x33de72(0x16b)]??_0x33de72(0x166))+']\x20'+(_0xf5e8a1[_0x33de72(0x15e)]??_0x33de72(0x162))+'.\x20'+(_0x33de72(0x174)+_0xf5e8a1[_0x33de72(0x177)]);if(_0xf5e8a1[_0x33de72(0x16b)]==='SOURCE_INVALID')throw new Error(_0x2c357c);return console[_0x33de72(0x15d)](_0x2c357c),_0xf5e8a1;}
@@ -1 +1 @@
1
- (function(_0x227c0b,_0x2c7659){const _0xf2391b=a258_0x668e,_0x1416d4=_0x227c0b();while(!![]){try{const _0x4cbed7=parseInt(_0xf2391b(0xa0))/0x1+-parseInt(_0xf2391b(0x9c))/0x2+parseInt(_0xf2391b(0xa3))/0x3*(-parseInt(_0xf2391b(0x93))/0x4)+parseInt(_0xf2391b(0x95))/0x5*(-parseInt(_0xf2391b(0x9a))/0x6)+-parseInt(_0xf2391b(0x99))/0x7+-parseInt(_0xf2391b(0x9b))/0x8+parseInt(_0xf2391b(0x9e))/0x9;if(_0x4cbed7===_0x2c7659)break;else _0x1416d4['push'](_0x1416d4['shift']());}catch(_0xa00e10){_0x1416d4['push'](_0x1416d4['shift']());}}}(a258_0x499a,0x5ddaa));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x1f841f,_0x181151,_0x46df74){const _0x13d7c6=a258_0x668e,_0x256503=normalizeText(_0x1f841f[_0x13d7c6(0xa1)],DESCRIPTION_MAX_LENGTH),_0x401ba1=_0x256503||normalizeText(defaultDescription(requireWriteRisk(_0x1f841f),_0x181151),DESCRIPTION_MAX_LENGTH);return{'operation':_0x181151,'risk':requireWriteRisk(_0x1f841f),'description':_0x401ba1,..._0x46df74?{'signal':_0x46df74}:{}};}function requireWriteRisk(_0x1aa853){const _0x23d473=a258_0x668e;if(_0x1aa853[_0x23d473(0xa4)]==='write'||_0x1aa853['risk']===_0x23d473(0x96))return _0x1aa853[_0x23d473(0xa4)];throw new Error(_0x23d473(0x9f));}function defaultDescription(_0x3071ab,_0x182597){const _0x44e243=a258_0x668e;if(_0x3071ab==='high-risk-write')return'This\x20will\x20run\x20the\x20high-risk\x20write\x20'+_0x182597+'.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.';return _0x44e243(0xa2)+_0x182597+_0x44e243(0x94);}function a258_0x668e(_0x315257,_0x8dabf7){_0x315257=_0x315257-0x93;const _0x499a79=a258_0x499a();let _0x668ea6=_0x499a79[_0x315257];return _0x668ea6;}function normalizeText(_0x4028e1,_0x4dd360){const _0x7d3b49=a258_0x668e;if(typeof _0x4028e1!=='string')return'';return _0x4028e1[_0x7d3b49(0x98)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x7d3b49(0x98)](/\s+/g,'\x20')[_0x7d3b49(0x97)]()[_0x7d3b49(0x9d)](0x0,_0x4dd360);}function a258_0x499a(){const _0x5a8919=['.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','30pkXbJv','high-risk-write','trim','replace','3434473xnOlnR','147486raIBWl','6120264EphIYa','1500460WaCKqk','slice','23139765dfUdoa','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','459126CwGXQt','confirmationDescription','This\x20will\x20run\x20the\x20write\x20','1477191RsQnHB','risk','4lckrUA'];a258_0x499a=function(){return _0x5a8919;};return a258_0x499a();}
1
+ function a260_0x49a8(){const _0x525b1f=['33suxFKL','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','risk','1887916lFopeP','trim','77gdsgMU','.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','write','664758YUWhuq','340080SEGsQK','high-risk-write','replace','1366580KvkDCQ','213258YihOwb','slice','string','confirmationDescription','This\x20will\x20run\x20the\x20write\x20','This\x20will\x20run\x20the\x20high-risk\x20write\x20','994050CQRZwm','395141lypuVa','2wLAPrJ','40BeAtEU'];a260_0x49a8=function(){return _0x525b1f;};return a260_0x49a8();}(function(_0x53753c,_0x281cf9){const _0x344e58=a260_0xbcb7,_0x2bda98=_0x53753c();while(!![]){try{const _0x313939=-parseInt(_0x344e58(0x1b7))/0x1*(-parseInt(_0x344e58(0x1b8))/0x2)+parseInt(_0x344e58(0x1c3))/0x3+parseInt(_0x344e58(0x1bd))/0x4+-parseInt(_0x344e58(0x1c6))/0x5+-parseInt(_0x344e58(0x1c7))/0x6*(parseInt(_0x344e58(0x1bf))/0x7)+parseInt(_0x344e58(0x1b9))/0x8*(-parseInt(_0x344e58(0x1c2))/0x9)+parseInt(_0x344e58(0x1b6))/0xa*(parseInt(_0x344e58(0x1ba))/0xb);if(_0x313939===_0x281cf9)break;else _0x2bda98['push'](_0x2bda98['shift']());}catch(_0x5ab5cd){_0x2bda98['push'](_0x2bda98['shift']());}}}(a260_0x49a8,0x3bd68));function a260_0xbcb7(_0xb13fc0,_0x3f8581){_0xb13fc0=_0xb13fc0-0x1b5;const _0x49a8b4=a260_0x49a8();let _0xbcb7d7=_0x49a8b4[_0xb13fc0];return _0xbcb7d7;}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0xfd08ff,_0xb1bc88,_0x1ba5d6){const _0x42b205=a260_0xbcb7,_0x5a068c=normalizeText(_0xfd08ff[_0x42b205(0x1ca)],DESCRIPTION_MAX_LENGTH),_0x2be3c8=_0x5a068c||normalizeText(defaultDescription(requireWriteRisk(_0xfd08ff),_0xb1bc88),DESCRIPTION_MAX_LENGTH);return{'operation':_0xb1bc88,'risk':requireWriteRisk(_0xfd08ff),'description':_0x2be3c8,..._0x1ba5d6?{'signal':_0x1ba5d6}:{}};}function requireWriteRisk(_0x35a6f7){const _0x44cd56=a260_0xbcb7;if(_0x35a6f7[_0x44cd56(0x1bc)]===_0x44cd56(0x1c1)||_0x35a6f7['risk']===_0x44cd56(0x1c4))return _0x35a6f7[_0x44cd56(0x1bc)];throw new Error(_0x44cd56(0x1bb));}function defaultDescription(_0x55a21b,_0x3a396d){const _0x22460a=a260_0xbcb7;if(_0x55a21b==='high-risk-write')return _0x22460a(0x1b5)+_0x3a396d+_0x22460a(0x1c0);return _0x22460a(0x1cb)+_0x3a396d+'.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.';}function normalizeText(_0x200ccf,_0x19b563){const _0x5d2c15=a260_0xbcb7;if(typeof _0x200ccf!==_0x5d2c15(0x1c9))return'';return _0x200ccf[_0x5d2c15(0x1c5)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x5d2c15(0x1c5)](/\s+/g,'\x20')[_0x5d2c15(0x1be)]()[_0x5d2c15(0x1c8)](0x0,_0x19b563);}
@@ -1 +1 @@
1
- (function(_0x19a87b,_0x161b91){var _0x343301=a259_0x3789,_0x31ec8a=_0x19a87b();while(!![]){try{var _0x5f5286=parseInt(_0x343301(0x7f))/0x1*(parseInt(_0x343301(0x7b))/0x2)+-parseInt(_0x343301(0x6f))/0x3+-parseInt(_0x343301(0x6e))/0x4*(-parseInt(_0x343301(0x75))/0x5)+parseInt(_0x343301(0x81))/0x6*(-parseInt(_0x343301(0x74))/0x7)+parseInt(_0x343301(0x73))/0x8*(-parseInt(_0x343301(0x7d))/0x9)+-parseInt(_0x343301(0x71))/0xa*(parseInt(_0x343301(0x7c))/0xb)+parseInt(_0x343301(0x76))/0xc;if(_0x5f5286===_0x161b91)break;else _0x31ec8a['push'](_0x31ec8a['shift']());}catch(_0x140ede){_0x31ec8a['push'](_0x31ec8a['shift']());}}}(a259_0x1c39,0x6b6dc));export function canonicalRabetbaseOperation(_0x3f16bb){var _0x5ba1f5=a259_0x3789;return[_0x3f16bb[_0x5ba1f5(0x7a)],..._0x3f16bb[_0x5ba1f5(0x79)][_0x5ba1f5(0x70)]()[_0x5ba1f5(0x80)](/\s+/)][_0x5ba1f5(0x78)](Boolean)[_0x5ba1f5(0x77)]('.');}export function createRabetbaseWriteMetadata(_0xb43e,_0x152b16,_0x4fec62,_0x3fd861){var _0x18d804=a259_0x3789;if(_0x3fd861||_0x4fec62['ok']!==!![]||_0xb43e[_0x18d804(0x7e)]!==_0x18d804(0x72)&&_0xb43e[_0x18d804(0x7e)]!=='high-risk-write')return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':'rabetbase.write.completed','operation':_0x152b16,'risk':_0xb43e[_0x18d804(0x7e)]}}};}function a259_0x3789(_0x441951,_0x444f4f){_0x441951=_0x441951-0x6e;var _0x1c39a9=a259_0x1c39();var _0x3789ef=_0x1c39a9[_0x441951];return _0x3789ef;}function a259_0x1c39(){var _0x3ec4b0=['15VyJQof','6553560uaHuJp','join','filter','command','service','229760GQoVoG','22396vNwBzb','9cmrWGt','risk','6fyKbMI','split','165288tXtZUU','1115968RxEKjD','1624545zJINpq','trim','220fvUCiP','write','2638424AVYNhR','182hedvrB'];a259_0x1c39=function(){return _0x3ec4b0;};return a259_0x1c39();}
1
+ (function(_0x58ccf9,_0x1d0f94){var _0x1ca6bc=a261_0x1ee0,_0x362a79=_0x58ccf9();while(!![]){try{var _0x2fa46f=-parseInt(_0x1ca6bc(0xa9))/0x1*(-parseInt(_0x1ca6bc(0xac))/0x2)+-parseInt(_0x1ca6bc(0xaa))/0x3*(-parseInt(_0x1ca6bc(0x9f))/0x4)+-parseInt(_0x1ca6bc(0xae))/0x5+parseInt(_0x1ca6bc(0xaf))/0x6+-parseInt(_0x1ca6bc(0xab))/0x7+parseInt(_0x1ca6bc(0xa7))/0x8*(parseInt(_0x1ca6bc(0xa6))/0x9)+-parseInt(_0x1ca6bc(0xa5))/0xa;if(_0x2fa46f===_0x1d0f94)break;else _0x362a79['push'](_0x362a79['shift']());}catch(_0x41090d){_0x362a79['push'](_0x362a79['shift']());}}}(a261_0x3645,0x9b9e3));function a261_0x1ee0(_0x485001,_0x6897ec){_0x485001=_0x485001-0x9e;var _0x36456c=a261_0x3645();var _0x1ee00b=_0x36456c[_0x485001];return _0x1ee00b;}function a261_0x3645(){var _0x4d4d8b=['513676ClipRT','split','command','risk','filter','high-risk-write','21524790UWvESm','11003409VmLePk','8dPMLOq','service','17467yfepwN','27QpvbDz','1323322tuOhPp','76cnHAgZ','trim','6312770UbDHBr','7196232jBEzDE','write'];a261_0x3645=function(){return _0x4d4d8b;};return a261_0x3645();}export function canonicalRabetbaseOperation(_0xe8051b){var _0x447549=a261_0x1ee0;return[_0xe8051b[_0x447549(0xa8)],..._0xe8051b[_0x447549(0xa1)][_0x447549(0xad)]()[_0x447549(0xa0)](/\s+/)][_0x447549(0xa3)](Boolean)['join']('.');}export function createRabetbaseWriteMetadata(_0x57401f,_0x333e88,_0xe4964,_0x4945cd){var _0xd3cd65=a261_0x1ee0;if(_0x4945cd||_0xe4964['ok']!==!![]||_0x57401f['risk']!==_0xd3cd65(0x9e)&&_0x57401f[_0xd3cd65(0xa2)]!==_0xd3cd65(0xa4))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':'rabetbase.write.completed','operation':_0x333e88,'risk':_0x57401f[_0xd3cd65(0xa2)]}}};}
@@ -1 +1 @@
1
- (function(_0x464885,_0xfdd097){const _0x1fec02=a260_0x2c4d,_0x2b631a=_0x464885();while(!![]){try{const _0x4461ca=parseInt(_0x1fec02(0xe0))/0x1+parseInt(_0x1fec02(0xd6))/0x2+parseInt(_0x1fec02(0xcd))/0x3+-parseInt(_0x1fec02(0xe5))/0x4*(parseInt(_0x1fec02(0xe4))/0x5)+parseInt(_0x1fec02(0xe7))/0x6+-parseInt(_0x1fec02(0xe1))/0x7+-parseInt(_0x1fec02(0xdf))/0x8*(parseInt(_0x1fec02(0xe8))/0x9);if(_0x4461ca===_0xfdd097)break;else _0x2b631a['push'](_0x2b631a['shift']());}catch(_0x5ada9e){_0x2b631a['push'](_0x2b631a['shift']());}}}(a260_0x4368,0xb8a4d));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';function a260_0x2c4d(_0x20f064,_0x10fc89){_0x20f064=_0x20f064-0xc9;const _0x43683c=a260_0x4368();let _0x2c4df7=_0x43683c[_0x20f064];return _0x2c4df7;}function a260_0x4368(){const _0x52c9ee=['2375968kXaAUc','reason','presentation','execute','format','dryRun','rawFlags','data','signal','472VRmgZD','1090218CNYOoC','9003904HuQWkv','Rabetbase\x20invocation\x20aborted.','confirm','5RaWXqt','74732BwdYFb','aborted','5741520kRAqDw','284454KXZBlZ','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','command','dry-run','riskLevel','2072664lvmTjR','args','present','definition','yes','result','risk','high-risk-write','message'];a260_0x4368=function(){return _0x52c9ee;};return a260_0x4368();}import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x5f3f37,command:_0x3e4a4a,risk:_0x232f0f,dryRun:_0x536944}){const _0x433407=a260_0x2c4d;return JSON['stringify']({'ok':_0x5f3f37['ok'],'command':_0x3e4a4a,'risk':_0x232f0f,..._0x536944?{'dryRun':!![]}:{},..._0x5f3f37[_0x433407(0xdd)]!==undefined?{'data':_0x5f3f37['data']}:{},..._0x5f3f37[_0x433407(0xd5)]?{'message':_0x5f3f37[_0x433407(0xd5)]}:{}});}};export async function invokeRabetbase(_0x272b9c,_0x216748){const _0x527341=a260_0x2c4d;throwIfAborted(_0x216748[_0x527341(0xde)]);const _0x347a26=await resolveRabetbaseInvocation(_0x272b9c),_0x3483d0=canonicalRabetbaseOperation(_0x347a26['definition']);return await confirmWriteBeforeQueue(_0x347a26[_0x527341(0xd0)],_0x347a26[_0x527341(0xdc)],_0x3483d0,_0x216748),runSerialized(async()=>{const _0x55c06b=_0x527341,_0x3fd23a={};try{throwIfAborted(_0x216748[_0x55c06b(0xde)]);const _0x3670a3=buildConfigFromFlags(_0x347a26[_0x55c06b(0xdc)]);await initGlobalEnvironment(_0x3670a3);const _0x44ddb1=createPipelineEnv(_0x3670a3,{..._0x347a26[_0x55c06b(0xdc)],'yes':_0x347a26[_0x55c06b(0xd0)][_0x55c06b(0xd3)]===_0x55c06b(0xd4)?!![]:_0x347a26[_0x55c06b(0xdc)][_0x55c06b(0xd1)],'nonInteractive':!![]},_0x347a26[_0x55c06b(0xce)]);_0x44ddb1['isNonInteractive']=!![],_0x44ddb1[_0x55c06b(0xcc)]=_0x55c06b(0xd4);const _0x26a140=withAbortSignal(_0x347a26[_0x55c06b(0xd0)],_0x216748[_0x55c06b(0xde)]),_0x3c5181=createRabetbaseRunnerAdapter({'formatOutput'(_0xd12b31,_0x28e6c4){const _0xccb508=_0x55c06b;_0x3fd23a[_0xccb508(0xd2)]=_0xd12b31,_0x3fd23a[_0xccb508(0xca)]=_0x28e6c4[_0xccb508(0xca)],_0x3fd23a[_0xccb508(0xd3)]=_0x28e6c4['risk'],_0x3fd23a[_0xccb508(0xda)]=_0x28e6c4[_0xccb508(0xda)],_0x3fd23a[_0xccb508(0xdb)]=_0x28e6c4[_0xccb508(0xdb)]===!![];},async 'confirmHighRisk'(){const _0x2d983e=_0x55c06b;throw new Error(_0x2d983e(0xc9));}});await runCommand(_0x26a140,_0x44ddb1,_0x3c5181);if(!_0x3fd23a[_0x55c06b(0xd2)]||!_0x3fd23a['command']||!_0x3fd23a[_0x55c06b(0xd3)]||!_0x3fd23a[_0x55c06b(0xda)])throw new Error('Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.');const _0x34b566=_0x3fd23a['dryRun']===!![],_0x5aed10=_0x216748[_0x55c06b(0xd8)]??defaultPresentation,_0x3b3f32={'result':_0x3fd23a[_0x55c06b(0xd2)],'command':_0x3fd23a[_0x55c06b(0xca)],'operation':_0x3483d0,'risk':_0x3fd23a[_0x55c06b(0xd3)],'format':_0x3fd23a[_0x55c06b(0xda)],'dryRun':_0x34b566},_0x1cd858=createRabetbaseWriteMetadata(_0x347a26[_0x55c06b(0xd0)],_0x3483d0,_0x3fd23a['result'],_0x34b566);let _0x587f33;try{_0x587f33=await _0x5aed10[_0x55c06b(0xcf)](_0x3b3f32);}catch(_0x1c5e7f){if(!_0x1cd858||_0x5aed10===defaultPresentation)throw _0x1c5e7f;_0x587f33=await defaultPresentation[_0x55c06b(0xcf)](_0x3b3f32);}return{'operation':_0x3483d0,'risk':_0x3fd23a[_0x55c06b(0xd3)],'mode':_0x34b566?_0x55c06b(0xcb):_0x55c06b(0xd9),'result':_0x3fd23a['result'],'output':_0x587f33,..._0x1cd858?{'metadata':_0x1cd858}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x2427d3,_0x255fd4,_0x333b17,_0x1aedb0){const _0x3fa6ff=a260_0x2c4d;if(_0x255fd4['dryRun']===!![]||_0x2427d3[_0x3fa6ff(0xd3)]!=='write'&&_0x2427d3['risk']!==_0x3fa6ff(0xd4))return;await _0x1aedb0['confirmation'][_0x3fa6ff(0xe3)](buildRabetbaseConfirmationRequest(_0x2427d3,_0x333b17,_0x1aedb0[_0x3fa6ff(0xde)]));}function withAbortSignal(_0x425928,_0xf468a){return{..._0x425928,async 'execute'(_0x3a2dca){const _0x2446d7=a260_0x2c4d;return throwIfAborted(_0xf468a),_0x425928[_0x2446d7(0xd9)](_0x3a2dca);}};}function throwIfAborted(_0x332dd1){const _0x1104ba=a260_0x2c4d;if(_0x332dd1?.[_0x1104ba(0xe6)])throw _0x332dd1['reason']instanceof Error?_0x332dd1[_0x1104ba(0xd7)]:new DOMException(_0x1104ba(0xe2),'AbortError');}
1
+ (function(_0x13db90,_0x350181){const _0x362650=a262_0x540f,_0x244183=_0x13db90();while(!![]){try{const _0x75591f=-parseInt(_0x362650(0x1a8))/0x1+parseInt(_0x362650(0x1b2))/0x2*(-parseInt(_0x362650(0x1a3))/0x3)+parseInt(_0x362650(0x1a9))/0x4+parseInt(_0x362650(0x1ad))/0x5*(-parseInt(_0x362650(0x1b6))/0x6)+parseInt(_0x362650(0x19e))/0x7*(parseInt(_0x362650(0x1bd))/0x8)+-parseInt(_0x362650(0x19f))/0x9+parseInt(_0x362650(0x1aa))/0xa*(parseInt(_0x362650(0x1b3))/0xb);if(_0x75591f===_0x350181)break;else _0x244183['push'](_0x244183['shift']());}catch(_0x1fc80e){_0x244183['push'](_0x244183['shift']());}}}(a262_0xcb8e,0x390a1));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';function a262_0xcb8e(){const _0x1c25aa=['reason','write','77dCyHNS','1583901sSZEHp','confirmation','data','aborted','18fNRfYA','dryRun','dry-run','riskLevel','execute','397260ukTbHp','1242540VKjeSo','14390FxgEhV','result','high-risk-write','5Fgwlmh','args','yes','AbortError','signal','2076etKIzi','2167KZwhIa','risk','command','972816dkAlRO','present','presentation','Rabetbase\x20invocation\x20aborted.','format','definition','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','277184LUQRzi','isNonInteractive','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','message','rawFlags'];a262_0xcb8e=function(){return _0x1c25aa;};return a262_0xcb8e();}function a262_0x540f(_0x8d7d96,_0x164633){_0x8d7d96=_0x8d7d96-0x19a;const _0xcb8e18=a262_0xcb8e();let _0x540fe5=_0xcb8e18[_0x8d7d96];return _0x540fe5;}import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x153b4b,command:_0x210ae6,risk:_0x507ccb,dryRun:_0x4891ae}){const _0x3953fe=a262_0x540f;return JSON['stringify']({'ok':_0x153b4b['ok'],'command':_0x210ae6,'risk':_0x507ccb,..._0x4891ae?{'dryRun':!![]}:{},..._0x153b4b[_0x3953fe(0x1a1)]!==undefined?{'data':_0x153b4b['data']}:{},..._0x153b4b[_0x3953fe(0x19a)]?{'message':_0x153b4b[_0x3953fe(0x19a)]}:{}});}};export async function invokeRabetbase(_0x48030e,_0x170a38){const _0x1accf8=a262_0x540f;throwIfAborted(_0x170a38['signal']);const _0x37db81=await resolveRabetbaseInvocation(_0x48030e),_0x16d248=canonicalRabetbaseOperation(_0x37db81[_0x1accf8(0x1bb)]);return await confirmWriteBeforeQueue(_0x37db81[_0x1accf8(0x1bb)],_0x37db81[_0x1accf8(0x19b)],_0x16d248,_0x170a38),runSerialized(async()=>{const _0xa7c624=_0x1accf8,_0x5af312={};try{throwIfAborted(_0x170a38[_0xa7c624(0x1b1)]);const _0x1046b2=buildConfigFromFlags(_0x37db81['rawFlags']);await initGlobalEnvironment(_0x1046b2);const _0x4f4355=createPipelineEnv(_0x1046b2,{..._0x37db81[_0xa7c624(0x19b)],'yes':_0x37db81[_0xa7c624(0x1bb)]['risk']===_0xa7c624(0x1ac)?!![]:_0x37db81[_0xa7c624(0x19b)][_0xa7c624(0x1af)],'nonInteractive':!![]},_0x37db81[_0xa7c624(0x1ae)]);_0x4f4355[_0xa7c624(0x1be)]=!![],_0x4f4355[_0xa7c624(0x1a6)]=_0xa7c624(0x1ac);const _0x2e8f51=withAbortSignal(_0x37db81[_0xa7c624(0x1bb)],_0x170a38[_0xa7c624(0x1b1)]),_0x6ddc30=createRabetbaseRunnerAdapter({'formatOutput'(_0x4b80dd,_0x8c2894){const _0x2c0b59=_0xa7c624;_0x5af312[_0x2c0b59(0x1ab)]=_0x4b80dd,_0x5af312[_0x2c0b59(0x1b5)]=_0x8c2894['command'],_0x5af312[_0x2c0b59(0x1b4)]=_0x8c2894[_0x2c0b59(0x1b4)],_0x5af312['format']=_0x8c2894['format'],_0x5af312[_0x2c0b59(0x1a4)]=_0x8c2894['dryRun']===!![];},async 'confirmHighRisk'(){const _0xb89f07=_0xa7c624;throw new Error(_0xb89f07(0x1bf));}});await runCommand(_0x2e8f51,_0x4f4355,_0x6ddc30);if(!_0x5af312[_0xa7c624(0x1ab)]||!_0x5af312[_0xa7c624(0x1b5)]||!_0x5af312[_0xa7c624(0x1b4)]||!_0x5af312[_0xa7c624(0x1ba)])throw new Error(_0xa7c624(0x1bc));const _0x4c97cb=_0x5af312['dryRun']===!![],_0x23b692=_0x170a38[_0xa7c624(0x1b8)]??defaultPresentation,_0x4ee0e6={'result':_0x5af312[_0xa7c624(0x1ab)],'command':_0x5af312[_0xa7c624(0x1b5)],'operation':_0x16d248,'risk':_0x5af312['risk'],'format':_0x5af312[_0xa7c624(0x1ba)],'dryRun':_0x4c97cb},_0x557c65=createRabetbaseWriteMetadata(_0x37db81[_0xa7c624(0x1bb)],_0x16d248,_0x5af312[_0xa7c624(0x1ab)],_0x4c97cb);let _0x2edd3a;try{_0x2edd3a=await _0x23b692[_0xa7c624(0x1b7)](_0x4ee0e6);}catch(_0x409d47){if(!_0x557c65||_0x23b692===defaultPresentation)throw _0x409d47;_0x2edd3a=await defaultPresentation[_0xa7c624(0x1b7)](_0x4ee0e6);}return{'operation':_0x16d248,'risk':_0x5af312[_0xa7c624(0x1b4)],'mode':_0x4c97cb?_0xa7c624(0x1a5):'execute','result':_0x5af312[_0xa7c624(0x1ab)],'output':_0x2edd3a,..._0x557c65?{'metadata':_0x557c65}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x4cd78b,_0x71268e,_0x21dd46,_0x3cb1f3){const _0x2a37cc=a262_0x540f;if(_0x71268e['dryRun']===!![]||_0x4cd78b[_0x2a37cc(0x1b4)]!==_0x2a37cc(0x19d)&&_0x4cd78b['risk']!==_0x2a37cc(0x1ac))return;await _0x3cb1f3[_0x2a37cc(0x1a0)]['confirm'](buildRabetbaseConfirmationRequest(_0x4cd78b,_0x21dd46,_0x3cb1f3[_0x2a37cc(0x1b1)]));}function withAbortSignal(_0x128f84,_0x1cd62f){return{..._0x128f84,async 'execute'(_0x42e678){const _0x1cbd38=a262_0x540f;return throwIfAborted(_0x1cd62f),_0x128f84[_0x1cbd38(0x1a7)](_0x42e678);}};}function throwIfAborted(_0x3e7c79){const _0x4b25f0=a262_0x540f;if(_0x3e7c79?.[_0x4b25f0(0x1a2)])throw _0x3e7c79[_0x4b25f0(0x19c)]instanceof Error?_0x3e7c79[_0x4b25f0(0x19c)]:new DOMException(_0x4b25f0(0x1b9),_0x4b25f0(0x1b0));}
@@ -1 +1 @@
1
- const a261_0x10bb0f=a261_0x5ce7;(function(_0x434d52,_0xfb0bb6){const _0x50f56c=a261_0x5ce7,_0x508987=_0x434d52();while(!![]){try{const _0xfc6a5c=parseInt(_0x50f56c(0x19a))/0x1+parseInt(_0x50f56c(0x195))/0x2*(-parseInt(_0x50f56c(0x198))/0x3)+-parseInt(_0x50f56c(0x18f))/0x4+-parseInt(_0x50f56c(0x193))/0x5*(parseInt(_0x50f56c(0x194))/0x6)+parseInt(_0x50f56c(0x196))/0x7+parseInt(_0x50f56c(0x192))/0x8*(parseInt(_0x50f56c(0x191))/0x9)+parseInt(_0x50f56c(0x190))/0xa;if(_0xfc6a5c===_0xfb0bb6)break;else _0x508987['push'](_0x508987['shift']());}catch(_0x21c691){_0x508987['push'](_0x508987['shift']());}}}(a261_0x4adf,0x3b841));function a261_0x5ce7(_0x5e2610,_0x544247){_0x5e2610=_0x5e2610-0x18f;const _0x4adfd5=a261_0x4adf();let _0x5ce70a=_0x4adfd5[_0x5e2610];return _0x5ce70a;}function a261_0x4adf(){const _0x24ff76=['3918339ctisqE','8jWnCad','475JtRSDf','21174jyltEw','2QhwLpn','2666412fcPOcG','catch','988440CnjpIU','resolve','76550unMNCQ','831440BZTdTx','2235350ETMLUH'];a261_0x4adf=function(){return _0x24ff76;};return a261_0x4adf();}let tail=Promise[a261_0x10bb0f(0x199)]();export async function runSerialized(_0x275f4f){const _0x6f4471=a261_0x10bb0f,_0xbaf9f4=tail;let _0x58bd3e;tail=new Promise(_0x13e30e=>{_0x58bd3e=_0x13e30e;}),await _0xbaf9f4[_0x6f4471(0x197)](()=>undefined);try{return await _0x275f4f();}finally{_0x58bd3e();}}
1
+ const a263_0x2da6c4=a263_0xf699;(function(_0x5459e2,_0x1968d1){const _0x225122=a263_0xf699,_0xf6ab1b=_0x5459e2();while(!![]){try{const _0x5a3267=-parseInt(_0x225122(0x145))/0x1*(parseInt(_0x225122(0x14d))/0x2)+parseInt(_0x225122(0x144))/0x3+-parseInt(_0x225122(0x14a))/0x4*(parseInt(_0x225122(0x149))/0x5)+-parseInt(_0x225122(0x147))/0x6*(-parseInt(_0x225122(0x14c))/0x7)+-parseInt(_0x225122(0x143))/0x8+-parseInt(_0x225122(0x148))/0x9+parseInt(_0x225122(0x142))/0xa*(parseInt(_0x225122(0x146))/0xb);if(_0x5a3267===_0x1968d1)break;else _0xf6ab1b['push'](_0xf6ab1b['shift']());}catch(_0x359f9a){_0xf6ab1b['push'](_0xf6ab1b['shift']());}}}(a263_0x28d8,0x493c4));function a263_0x28d8(){const _0x1cb132=['10IESyjZ','catch','110IFRUOf','3033976MCRTRl','317649rwcSPB','81095cLQMoV','1319439eqyItc','204XbSIaz','3286251xyvBhp','25wZKlAO','49724boHoxR','resolve','17843rKSDqW'];a263_0x28d8=function(){return _0x1cb132;};return a263_0x28d8();}let tail=Promise[a263_0x2da6c4(0x14b)]();function a263_0xf699(_0x5b8b36,_0x5429f2){_0x5b8b36=_0x5b8b36-0x141;const _0x28d8f7=a263_0x28d8();let _0xf69936=_0x28d8f7[_0x5b8b36];return _0xf69936;}export async function runSerialized(_0x19fd7c){const _0x4733fe=a263_0x2da6c4,_0x4aeb7f=tail;let _0x2d57b9;tail=new Promise(_0x16428d=>{_0x2d57b9=_0x16428d;}),await _0x4aeb7f[_0x4733fe(0x141)](()=>undefined);try{return await _0x19fd7c();}finally{_0x2d57b9();}}
@@ -1 +1 @@
1
- (function(_0x18c143,_0x742ae8){const _0x21166a=a262_0x5ec5,_0x185c85=_0x18c143();while(!![]){try{const _0x5c061b=parseInt(_0x21166a(0x1c7))/0x1*(-parseInt(_0x21166a(0x1c6))/0x2)+parseInt(_0x21166a(0x1c1))/0x3+parseInt(_0x21166a(0x1cb))/0x4*(-parseInt(_0x21166a(0x1cf))/0x5)+-parseInt(_0x21166a(0x1cd))/0x6*(parseInt(_0x21166a(0x1d0))/0x7)+-parseInt(_0x21166a(0x1c9))/0x8*(-parseInt(_0x21166a(0x1ca))/0x9)+parseInt(_0x21166a(0x1d1))/0xa+parseInt(_0x21166a(0x1c2))/0xb;if(_0x5c061b===_0x742ae8)break;else _0x185c85['push'](_0x185c85['shift']());}catch(_0x285f74){_0x185c85['push'](_0x185c85['shift']());}}}(a262_0x220f,0x22da0));import a262_0x1a07b2 from'meow';function a262_0x5ec5(_0x458601,_0xdf2ff8){_0x458601=_0x458601-0x1b9;const _0x220fc2=a262_0x220f();let _0x5ec562=_0x220fc2[_0x458601];return _0x5ec562;}import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';function a262_0x220f(){const _0x333449=['message','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','hint','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','validation','287748pIHwzl','3478893jMwuyb','wildcardDef','slice','defaultCommand','560338kGOmnW','1SHcFcK','unknownCommand','944NeeTca','10044ckoVTN','2104kOpBym','run','6USGxbC','flags','1370lIKRTC','789796UmjNGu','1360060ckMUbA','join','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'];a262_0x220f=function(){return _0x333449;};return a262_0x220f();}import{CliErrors}from'../errors.js';export async function resolveRabetbaseInvocation(_0x4cb7cc){const _0x2e2e5a=a262_0x5ec5,_0x13ccf8=a262_0x1a07b2('',{'importMeta':import.meta,'argv':[..._0x4cb7cc],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x2449ea=[..._0x13ccf8['input']],_0x458b2e=_0x13ccf8[_0x2e2e5a(0x1ce)],_0x23286b=_0x2449ea[0x0];if(!_0x23286b)throw CliErrors[_0x2e2e5a(0x1c0)](_0x2e2e5a(0x1bf));const _0x5da68a=resolveRemovedCommand(_0x23286b,_0x2449ea[0x1]);if(_0x5da68a)throw CliErrors['validation'](_0x5da68a[_0x2e2e5a(0x1bb)],_0x5da68a[_0x2e2e5a(0x1bd)]);if(_0x23286b===_0x2e2e5a(0x1cc))throw CliErrors[_0x2e2e5a(0x1c0)](_0x2e2e5a(0x1bc),_0x2e2e5a(0x1be));if(!isKnownService(_0x23286b))throw CliErrors[_0x2e2e5a(0x1c8)](_0x2449ea[_0x2e2e5a(0x1b9)]('\x20'));const _0x5745c9=getServiceEntry(_0x23286b),_0x4db417=_0x2449ea[0x1],_0x5dc3da=_0x4db417||_0x5745c9[_0x2e2e5a(0x1c5)];if(!_0x5dc3da){if(_0x5745c9[_0x2e2e5a(0x1c3)])return{'definition':_0x5745c9[_0x2e2e5a(0x1c3)],'rawFlags':_0x458b2e,'args':[]};throw CliErrors[_0x2e2e5a(0x1c0)](_0x2e2e5a(0x1ba)+_0x23286b+'\x22.');}const _0x32f8f9=findDefinition(_0x23286b,_0x5dc3da);if(_0x32f8f9)return{'definition':_0x32f8f9,'rawFlags':_0x458b2e,'args':_0x2449ea['slice'](0x2)};if(_0x5745c9[_0x2e2e5a(0x1c3)])return{'definition':_0x5745c9[_0x2e2e5a(0x1c3)],'rawFlags':_0x458b2e,'args':[_0x5dc3da,..._0x2449ea[_0x2e2e5a(0x1c4)](0x2)]};throw CliErrors[_0x2e2e5a(0x1c8)](_0x23286b+'\x20'+_0x5dc3da);}
1
+ (function(_0x5aba54,_0xbc6470){const _0x2fffc6=a264_0x4711,_0x60103d=_0x5aba54();while(!![]){try{const _0x23751a=-parseInt(_0x2fffc6(0x1d6))/0x1*(-parseInt(_0x2fffc6(0x1c8))/0x2)+-parseInt(_0x2fffc6(0x1d3))/0x3+parseInt(_0x2fffc6(0x1d2))/0x4+-parseInt(_0x2fffc6(0x1d1))/0x5+-parseInt(_0x2fffc6(0x1cc))/0x6+parseInt(_0x2fffc6(0x1c7))/0x7+parseInt(_0x2fffc6(0x1d0))/0x8*(-parseInt(_0x2fffc6(0x1c5))/0x9);if(_0x23751a===_0xbc6470)break;else _0x60103d['push'](_0x60103d['shift']());}catch(_0x1f8f2e){_0x60103d['push'](_0x60103d['shift']());}}}(a264_0x3d20,0xcb670));function a264_0x4711(_0x3e9f0c,_0x3efad3){_0x3e9f0c=_0x3e9f0c-0x1c0;const _0x3d2069=a264_0x3d20();let _0x4711ba=_0x3d2069[_0x3e9f0c];return _0x4711ba;}import a264_0x5aa04e from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a264_0x3d20(){const _0x1e684c=['1SHqVoR','validation','input','unknownCommand','flags','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','9cAJavV','join','10194086PQDEJF','2476386xeGByX','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','run','wildcardDef','581334rBwTTe','message','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','12813904avTMJs','1724725VUmTuo','5063552BlLglT','3251013LLbjsc','hint','slice'];a264_0x3d20=function(){return _0x1e684c;};return a264_0x3d20();}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveRabetbaseInvocation(_0x27b5f2){const _0x5ec43b=a264_0x4711,_0xa6ac77=a264_0x5aa04e('',{'importMeta':import.meta,'argv':[..._0x27b5f2],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x1f242d=[..._0xa6ac77[_0x5ec43b(0x1c1)]],_0x3383ef=_0xa6ac77[_0x5ec43b(0x1c3)],_0x35b8b9=_0x1f242d[0x0];if(!_0x35b8b9)throw CliErrors[_0x5ec43b(0x1c0)](_0x5ec43b(0x1ce));const _0x139549=resolveRemovedCommand(_0x35b8b9,_0x1f242d[0x1]);if(_0x139549)throw CliErrors[_0x5ec43b(0x1c0)](_0x139549[_0x5ec43b(0x1cd)],_0x139549[_0x5ec43b(0x1d4)]);if(_0x35b8b9===_0x5ec43b(0x1ca))throw CliErrors[_0x5ec43b(0x1c0)](_0x5ec43b(0x1c4),_0x5ec43b(0x1c9));if(!isKnownService(_0x35b8b9))throw CliErrors[_0x5ec43b(0x1c2)](_0x1f242d[_0x5ec43b(0x1c6)]('\x20'));const _0x420b92=getServiceEntry(_0x35b8b9),_0x594595=_0x1f242d[0x1],_0x18cdf4=_0x594595||_0x420b92['defaultCommand'];if(!_0x18cdf4){if(_0x420b92[_0x5ec43b(0x1cb)])return{'definition':_0x420b92['wildcardDef'],'rawFlags':_0x3383ef,'args':[]};throw CliErrors[_0x5ec43b(0x1c0)](_0x5ec43b(0x1cf)+_0x35b8b9+'\x22.');}const _0x1095d6=findDefinition(_0x35b8b9,_0x18cdf4);if(_0x1095d6)return{'definition':_0x1095d6,'rawFlags':_0x3383ef,'args':_0x1f242d[_0x5ec43b(0x1d5)](0x2)};if(_0x420b92[_0x5ec43b(0x1cb)])return{'definition':_0x420b92[_0x5ec43b(0x1cb)],'rawFlags':_0x3383ef,'args':[_0x18cdf4,..._0x1f242d[_0x5ec43b(0x1d5)](0x2)]};throw CliErrors[_0x5ec43b(0x1c2)](_0x35b8b9+'\x20'+_0x18cdf4);}
@@ -1 +1 @@
1
- const a264_0x576255=a264_0xd0a8;(function(_0x3b6779,_0x15e372){const _0x4e18dc=a264_0xd0a8,_0x3ebb86=_0x3b6779();while(!![]){try{const _0xdd2e70=parseInt(_0x4e18dc(0x1d8))/0x1*(-parseInt(_0x4e18dc(0x1eb))/0x2)+parseInt(_0x4e18dc(0x1dd))/0x3*(parseInt(_0x4e18dc(0x1e3))/0x4)+parseInt(_0x4e18dc(0x1ea))/0x5*(-parseInt(_0x4e18dc(0x1e7))/0x6)+-parseInt(_0x4e18dc(0x1d5))/0x7*(parseInt(_0x4e18dc(0x1ac))/0x8)+-parseInt(_0x4e18dc(0x1e2))/0x9+-parseInt(_0x4e18dc(0x1dc))/0xa+parseInt(_0x4e18dc(0x1e8))/0xb*(parseInt(_0x4e18dc(0x1b9))/0xc);if(_0xdd2e70===_0x15e372)break;else _0x3ebb86['push'](_0x3ebb86['shift']());}catch(_0xb5f1fc){_0x3ebb86['push'](_0x3ebb86['shift']());}}}(a264_0x46a8,0x54964));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a264_0x576255(0x1ae),SKILL_NAME=a264_0x576255(0x1ad);function frontmatterValue(_0x2bb81e,_0x30aebe){const _0x400490=a264_0x576255;return _0x2bb81e[_0x400490(0x1df)](new RegExp('^'+_0x30aebe+_0x400490(0x1b6),'m'))?.[0x1]?.[_0x400490(0x1d6)]()??'';}function listFiles(_0x247d4b,_0x52d9ca=_0x247d4b){return readdirSync(_0x52d9ca,{'withFileTypes':!![]})['flatMap'](_0x41ab24=>{const _0x124299=a264_0xd0a8,_0xc2d1af=join(_0x52d9ca,_0x41ab24[_0x124299(0x1c4)]),_0x2971e4=lstatSync(_0xc2d1af);if(_0x2971e4[_0x124299(0x1be)]())throw new Error(_0x124299(0x1cb)+_0xc2d1af);if(_0x2971e4[_0x124299(0x1b2)]())return listFiles(_0x247d4b,_0xc2d1af);if(!_0x2971e4['isFile']())throw new Error(_0x124299(0x1c0)+_0xc2d1af);return[relative(_0x247d4b,_0xc2d1af)[_0x124299(0x1c8)](sep)['join']('/')];})['sort']((_0x2cc9ad,_0x256ea2)=>_0x2cc9ad<_0x256ea2?-0x1:_0x2cc9ad>_0x256ea2?0x1:0x0);}function digestFiles(_0x54fe49,_0x145893){const _0x4cf6c6=a264_0x576255,_0x5f4b7e=createHash(_0x4cf6c6(0x1b0));for(const _0x439e56 of _0x145893){if(_0x439e56[_0x4cf6c6(0x1e6)]('/')||_0x439e56['split']('/')[_0x4cf6c6(0x1af)]('..')||_0x439e56[_0x4cf6c6(0x1af)]('\x5c'))throw new Error(_0x4cf6c6(0x1d1)+_0x439e56);_0x5f4b7e['update'](_0x439e56),_0x5f4b7e[_0x4cf6c6(0x1e1)]('\x00'),_0x5f4b7e[_0x4cf6c6(0x1e1)](readFileSync(join(_0x54fe49,..._0x439e56['split']('/')))),_0x5f4b7e[_0x4cf6c6(0x1e1)]('\x00');}return _0x5f4b7e[_0x4cf6c6(0x1e5)]('hex');}function sameFiles(_0x440519,_0x502e72){const _0x363008=a264_0x576255;return _0x440519['length']===_0x502e72[_0x363008(0x1c2)]&&_0x440519[_0x363008(0x1c9)]((_0x5a5dfe,_0x2f85e9)=>_0x5a5dfe===_0x502e72[_0x2f85e9]);}function readSource(_0x581bb0){const _0x3f1a3f=a264_0x576255,_0x133dbb=JSON[_0x3f1a3f(0x1cd)](readFileSync(join(_0x581bb0,'package.json'),_0x3f1a3f(0x1b3))),_0x5e3b4e=JSON['parse'](readFileSync(join(_0x581bb0,_0x3f1a3f(0x1b7),_0x3f1a3f(0x1e4)),_0x3f1a3f(0x1b3))),_0x3c52b2=join(_0x581bb0,_0x3f1a3f(0x1b7),SKILL_NAME),_0x2d4061=frontmatterValue(readFileSync(join(_0x3c52b2,'SKILL.md'),'utf8'),_0x3f1a3f(0x1de)),_0x51bd92=listFiles(_0x3c52b2);if(_0x5e3b4e[_0x3f1a3f(0x1c6)]!==0x1||_0x5e3b4e[_0x3f1a3f(0x1c4)]!==SKILL_NAME||!_0x133dbb[_0x3f1a3f(0x1de)]||_0x5e3b4e[_0x3f1a3f(0x1d9)]!==_0x133dbb[_0x3f1a3f(0x1de)]||_0x5e3b4e[_0x3f1a3f(0x1d2)]!==_0x133dbb[_0x3f1a3f(0x1de)]||_0x2d4061!==_0x133dbb[_0x3f1a3f(0x1de)]||!sameFiles(_0x51bd92,_0x5e3b4e[_0x3f1a3f(0x1ce)])||digestFiles(_0x3c52b2,_0x51bd92)!==_0x5e3b4e[_0x3f1a3f(0x1e5)])throw new Error('Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest');return{'packageVersion':_0x133dbb['version'],'skillVersion':_0x2d4061,'root':_0x3c52b2,'manifest':_0x5e3b4e};}function installedSkillPath(_0x306e43){const _0x498b4e=a264_0x576255,_0x522284=resolveInstalledSkill(SKILL_NAME,{'home':_0x306e43});if(_0x522284['state']==='present')return{'state':_0x498b4e(0x1bc),'path':dirname(_0x522284[_0x498b4e(0x1ca)])};if(_0x522284[_0x498b4e(0x1c5)]===_0x498b4e(0x1e0))return{'state':'missing'};return{'state':'unverifiable','reason':_0x522284['reason']};}export function inspectInstalledBuiltinSkillVersion(_0x157193,_0x390a98={}){const _0x51e2a3=a264_0x576255,_0x5c7f58=installedSkillPath(_0x390a98[_0x51e2a3(0x1b1)]??homedir());if(_0x5c7f58['state']==='missing')return{'state':_0x51e2a3(0x1e9),'expectedVersion':_0x157193,'repairCommand':REPAIR_COMMAND};if(_0x5c7f58[_0x51e2a3(0x1c5)]===_0x51e2a3(0x1c1))return{'state':'unverifiable','expectedVersion':_0x157193,'reason':_0x5c7f58[_0x51e2a3(0x1bb)],'repairCommand':REPAIR_COMMAND};try{const _0x69b967=frontmatterValue(readFileSync(join(_0x5c7f58[_0x51e2a3(0x1ca)],'SKILL.md'),_0x51e2a3(0x1b3)),_0x51e2a3(0x1de));return{'state':_0x69b967===_0x157193?_0x51e2a3(0x1c3):_0x51e2a3(0x1cf),'expectedVersion':_0x157193,'skillVersion':_0x69b967,'installedPath':_0x5c7f58['path'],'repairCommand':REPAIR_COMMAND};}catch(_0x350b76){return{'state':_0x51e2a3(0x1c1),'expectedVersion':_0x157193,'installedPath':_0x5c7f58[_0x51e2a3(0x1ca)],'reason':_0x350b76 instanceof Error?_0x350b76[_0x51e2a3(0x1bf)]:String(_0x350b76),'repairCommand':REPAIR_COMMAND};}}function a264_0x46a8(){const _0x7e0957=['version_mismatch','INSTALL_FAILED','Unsafe\x20manifest\x20path:\x20','skillVersion','skills@latest\x20exited\x20','stdio','7063DCBjpE','trim','content_mismatch','1zIxUZi','packageVersion','error','SOURCE_INVALID','5316730ZUWPuT','481599tGINwl','version','match','absent','update','5954868osHSUP','4QOlODw','rabetbase.manifest.json','digest','startsWith','12MXgEfF','528tMqbhJ','missing','1064680ElatfD','922082drfJzC','1560xmLqLl','rabetbase','rabetbase\x20cli-skill\x20install','includes','sha256','home','isDirectory','utf8','packageRoot','Installed\x20Skill\x20state\x20is\x20',':\x5cs*(.+)$','skills','unknown','615732JSTpwA','skipped','reason','present','installedPath','isSymbolicLink','message','Unsupported\x20Skill\x20entry:\x20','unverifiable','length','current','name','state','schemaVersion','manifest','split','every','path','Symbolic\x20link\x20is\x20not\x20allowed:\x20','root','parse','files'];a264_0x46a8=function(){return _0x7e0957;};return a264_0x46a8();}export function inspectBuiltinSkill(_0xa08b25={}){const _0x12d0e4=a264_0x576255,_0x459dde=_0xa08b25[_0x12d0e4(0x1b4)]??DEFAULT_PACKAGE_ROOT;let _0x5c0eed;try{_0x5c0eed=readSource(_0x459dde);}catch(_0xdd18c9){return{'state':_0x12d0e4(0x1c1),'packageVersion':_0x12d0e4(0x1b8),'reason':_0xdd18c9 instanceof Error?_0xdd18c9['message']:String(_0xdd18c9),'repairCommand':REPAIR_COMMAND};}const _0x1995e4=installedSkillPath(_0xa08b25[_0x12d0e4(0x1b1)]??homedir());if(_0x1995e4['state']==='missing')return{'state':_0x12d0e4(0x1e9),'packageVersion':_0x5c0eed['packageVersion'],'repairCommand':REPAIR_COMMAND};if(_0x1995e4[_0x12d0e4(0x1c5)]==='unverifiable')return{'state':_0x12d0e4(0x1c1),'packageVersion':_0x5c0eed[_0x12d0e4(0x1d9)],'reason':_0x1995e4[_0x12d0e4(0x1bb)],'repairCommand':REPAIR_COMMAND};try{const _0x8df6e5=frontmatterValue(readFileSync(join(_0x1995e4[_0x12d0e4(0x1ca)],'SKILL.md'),'utf8'),_0x12d0e4(0x1de));if(_0x8df6e5!==_0x5c0eed['skillVersion'])return{'state':_0x12d0e4(0x1cf),'packageVersion':_0x5c0eed['packageVersion'],'skillVersion':_0x8df6e5,'installedPath':_0x1995e4[_0x12d0e4(0x1ca)],'repairCommand':REPAIR_COMMAND};const _0x39d9f4=listFiles(_0x1995e4[_0x12d0e4(0x1ca)]),_0x158d38=digestFiles(_0x1995e4[_0x12d0e4(0x1ca)],_0x39d9f4);return{'state':sameFiles(_0x39d9f4,_0x5c0eed[_0x12d0e4(0x1c7)]['files'])&&_0x158d38===_0x5c0eed[_0x12d0e4(0x1c7)][_0x12d0e4(0x1e5)]?_0x12d0e4(0x1c3):_0x12d0e4(0x1d7),'packageVersion':_0x5c0eed['packageVersion'],'skillVersion':_0x8df6e5,'installedPath':_0x1995e4['path'],'digest':_0x158d38,'repairCommand':REPAIR_COMMAND};}catch(_0x2961e0){return{'state':_0x12d0e4(0x1c1),'packageVersion':_0x5c0eed[_0x12d0e4(0x1d9)],'installedPath':_0x1995e4[_0x12d0e4(0x1ca)],'reason':_0x2961e0 instanceof Error?_0x2961e0['message']:String(_0x2961e0),'repairCommand':REPAIR_COMMAND};}}function a264_0xd0a8(_0xfa210f,_0x26b007){_0xfa210f=_0xfa210f-0x1ac;const _0x46a85f=a264_0x46a8();let _0xd0a833=_0x46a85f[_0xfa210f];return _0xd0a833;}function failure(_0x48270d,_0x3ba372,_0x4bb3c3,_0x44ffbf){const _0x383d24=a264_0x576255;return{'ok':![],'code':_0x48270d,'packageVersion':_0x3ba372[_0x383d24(0x1d9)],'skillVersion':_0x3ba372[_0x383d24(0x1d2)],'installedPath':_0x44ffbf,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x4bb3c3 instanceof Error?_0x4bb3c3['message']:String(_0x4bb3c3)};}export function installBuiltinSkill(_0xdb876a={}){const _0x5bd9c3=a264_0x576255,_0x52925b=_0xdb876a['packageRoot']??DEFAULT_PACKAGE_ROOT,_0x20653c=_0xdb876a[_0x5bd9c3(0x1b1)]??homedir();let _0x4c704a;try{_0x4c704a=readSource(_0x52925b);}catch(_0x265db0){return failure(_0x5bd9c3(0x1db),{'packageVersion':_0x5bd9c3(0x1b8),'skillVersion':_0x5bd9c3(0x1b8)},_0x265db0);}const _0x2d670e=inspectBuiltinSkill({'packageRoot':_0x52925b,'home':_0x20653c}),_0x37df30=runNpxSkillsAddGlobal(_0x52925b,_0x4c704a[_0x5bd9c3(0x1cc)],{'stdio':_0xdb876a[_0x5bd9c3(0x1d4)]??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0x20653c}});if(_0x37df30[_0x5bd9c3(0x1ba)])return{'ok':!![],'packageVersion':_0x4c704a[_0x5bd9c3(0x1d9)],'skillVersion':_0x4c704a['skillVersion'],'installedPath':_0x2d670e[_0x5bd9c3(0x1bd)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x37df30['ok'])return failure(_0x5bd9c3(0x1d0),_0x4c704a,_0x37df30[_0x5bd9c3(0x1da)]??_0x5bd9c3(0x1d3)+_0x37df30['status']);const _0x48e224=inspectBuiltinSkill({'packageRoot':_0x52925b,'home':_0x20653c});if(_0x48e224['state']!==_0x5bd9c3(0x1c3))return failure('VERIFY_FAILED',_0x4c704a,_0x48e224['reason']??_0x5bd9c3(0x1b5)+_0x48e224[_0x5bd9c3(0x1c5)],_0x48e224[_0x5bd9c3(0x1bd)]);return{'ok':!![],'packageVersion':_0x4c704a[_0x5bd9c3(0x1d9)],'skillVersion':_0x4c704a[_0x5bd9c3(0x1d2)],'installedPath':_0x48e224[_0x5bd9c3(0x1bd)],'changed':_0x2d670e[_0x5bd9c3(0x1c5)]!==_0x5bd9c3(0x1c3),'repairCommand':REPAIR_COMMAND};}
1
+ const a266_0xdcfb55=a266_0x31e3;(function(_0x4ef00a,_0x21d76e){const _0x27798a=a266_0x31e3,_0x428053=_0x4ef00a();while(!![]){try{const _0x4dedb4=-parseInt(_0x27798a(0x1a7))/0x1*(-parseInt(_0x27798a(0x1af))/0x2)+parseInt(_0x27798a(0x1b2))/0x3*(-parseInt(_0x27798a(0x1a6))/0x4)+parseInt(_0x27798a(0x1ab))/0x5+parseInt(_0x27798a(0x1c3))/0x6*(parseInt(_0x27798a(0x1c0))/0x7)+parseInt(_0x27798a(0x1e2))/0x8*(parseInt(_0x27798a(0x1a9))/0x9)+parseInt(_0x27798a(0x1d3))/0xa*(-parseInt(_0x27798a(0x1e1))/0xb)+parseInt(_0x27798a(0x1b9))/0xc*(parseInt(_0x27798a(0x1da))/0xd);if(_0x4dedb4===_0x21d76e)break;else _0x428053['push'](_0x428053['shift']());}catch(_0x73cb7b){_0x428053['push'](_0x428053['shift']());}}}(a266_0x24a1,0xcdde9));function a266_0x24a1(){const _0x5d0e92=['INSTALL_FAILED','utf8','root','manifest','trim','reason','hex','current','8192190GrISag','missing','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','Unsafe\x20manifest\x20path:\x20','rabetbase','match','version_mismatch','97721mdDkuZ','files','unverifiable','isDirectory','unknown','pipe','includes','11UyFSUT','232kFQNDI','schemaVersion','packageRoot','Unsupported\x20Skill\x20entry:\x20','isFile','rabetbase.manifest.json','Symbolic\x20link\x20is\x20not\x20allowed:\x20','369524SmItlA','1758GLPImj','skillVersion','160074FstCGL','SKILL.md','598205dTOjbS','skills@latest\x20exited\x20','packageVersion','version','12zowCRz','installedPath','status','45GJVNor',':\x5cs*(.+)$','sha256','SOURCE_INVALID','update','absent','name','2040oWZuie','home','path','package.json','flatMap','stdio','skills','95977TcdXzh','split','skipped','492tiRxzy','digest','VERIFY_FAILED','parse','message','rabetbase\x20cli-skill\x20install','state','startsWith'];a266_0x24a1=function(){return _0x5d0e92;};return a266_0x24a1();}import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a266_0xdcfb55(0x1c8),SKILL_NAME=a266_0xdcfb55(0x1d7);function frontmatterValue(_0x22bf17,_0x1cb557){const _0x60e012=a266_0xdcfb55;return _0x22bf17[_0x60e012(0x1d8)](new RegExp('^'+_0x1cb557+_0x60e012(0x1b3),'m'))?.[0x1]?.[_0x60e012(0x1cf)]()??'';}function listFiles(_0x2679fb,_0x3c6ff9=_0x2679fb){const _0x2a5716=a266_0xdcfb55;return readdirSync(_0x3c6ff9,{'withFileTypes':!![]})[_0x2a5716(0x1bd)](_0x1d4f86=>{const _0x25a3ee=_0x2a5716,_0x590b14=join(_0x3c6ff9,_0x1d4f86[_0x25a3ee(0x1b8)]),_0x355bf2=lstatSync(_0x590b14);if(_0x355bf2['isSymbolicLink']())throw new Error(_0x25a3ee(0x1a5)+_0x590b14);if(_0x355bf2[_0x25a3ee(0x1dd)]())return listFiles(_0x2679fb,_0x590b14);if(!_0x355bf2[_0x25a3ee(0x1e6)]())throw new Error(_0x25a3ee(0x1e5)+_0x590b14);return[relative(_0x2679fb,_0x590b14)['split'](sep)['join']('/')];})['sort']((_0x4d36e4,_0x2db50e)=>_0x4d36e4<_0x2db50e?-0x1:_0x4d36e4>_0x2db50e?0x1:0x0);}function digestFiles(_0x49c9aa,_0x3b560b){const _0x2825a6=a266_0xdcfb55,_0x23b625=createHash(_0x2825a6(0x1b4));for(const _0x424d28 of _0x3b560b){if(_0x424d28[_0x2825a6(0x1ca)]('/')||_0x424d28[_0x2825a6(0x1c1)]('/')[_0x2825a6(0x1e0)]('..')||_0x424d28[_0x2825a6(0x1e0)]('\x5c'))throw new Error(_0x2825a6(0x1d6)+_0x424d28);_0x23b625[_0x2825a6(0x1b6)](_0x424d28),_0x23b625[_0x2825a6(0x1b6)]('\x00'),_0x23b625['update'](readFileSync(join(_0x49c9aa,..._0x424d28[_0x2825a6(0x1c1)]('/')))),_0x23b625[_0x2825a6(0x1b6)]('\x00');}return _0x23b625[_0x2825a6(0x1c4)](_0x2825a6(0x1d1));}function sameFiles(_0x53cb1a,_0x3f4e69){return _0x53cb1a['length']===_0x3f4e69['length']&&_0x53cb1a['every']((_0x40f80b,_0x4f9313)=>_0x40f80b===_0x3f4e69[_0x4f9313]);}function readSource(_0x88135e){const _0x397c85=a266_0xdcfb55,_0x1bf898=JSON[_0x397c85(0x1c6)](readFileSync(join(_0x88135e,_0x397c85(0x1bc)),_0x397c85(0x1cc))),_0x1df1bb=JSON['parse'](readFileSync(join(_0x88135e,'skills',_0x397c85(0x1a4)),_0x397c85(0x1cc))),_0x2e85e0=join(_0x88135e,_0x397c85(0x1bf),SKILL_NAME),_0x488b9f=frontmatterValue(readFileSync(join(_0x2e85e0,_0x397c85(0x1aa)),_0x397c85(0x1cc)),_0x397c85(0x1ae)),_0x32ebe2=listFiles(_0x2e85e0);if(_0x1df1bb[_0x397c85(0x1e3)]!==0x1||_0x1df1bb[_0x397c85(0x1b8)]!==SKILL_NAME||!_0x1bf898[_0x397c85(0x1ae)]||_0x1df1bb[_0x397c85(0x1ad)]!==_0x1bf898[_0x397c85(0x1ae)]||_0x1df1bb[_0x397c85(0x1a8)]!==_0x1bf898[_0x397c85(0x1ae)]||_0x488b9f!==_0x1bf898['version']||!sameFiles(_0x32ebe2,_0x1df1bb[_0x397c85(0x1db)])||digestFiles(_0x2e85e0,_0x32ebe2)!==_0x1df1bb['digest'])throw new Error(_0x397c85(0x1d5));return{'packageVersion':_0x1bf898[_0x397c85(0x1ae)],'skillVersion':_0x488b9f,'root':_0x2e85e0,'manifest':_0x1df1bb};}function installedSkillPath(_0x2a779a){const _0x1674c4=a266_0xdcfb55,_0x1b7a05=resolveInstalledSkill(SKILL_NAME,{'home':_0x2a779a});if(_0x1b7a05[_0x1674c4(0x1c9)]==='present')return{'state':'present','path':dirname(_0x1b7a05[_0x1674c4(0x1bb)])};if(_0x1b7a05[_0x1674c4(0x1c9)]===_0x1674c4(0x1b7))return{'state':_0x1674c4(0x1d4)};return{'state':_0x1674c4(0x1dc),'reason':_0x1b7a05['reason']};}export function inspectInstalledBuiltinSkillVersion(_0x2ec6b9,_0x5b2fcf={}){const _0x5cecb5=a266_0xdcfb55,_0x340d10=installedSkillPath(_0x5b2fcf[_0x5cecb5(0x1ba)]??homedir());if(_0x340d10['state']===_0x5cecb5(0x1d4))return{'state':_0x5cecb5(0x1d4),'expectedVersion':_0x2ec6b9,'repairCommand':REPAIR_COMMAND};if(_0x340d10[_0x5cecb5(0x1c9)]===_0x5cecb5(0x1dc))return{'state':'unverifiable','expectedVersion':_0x2ec6b9,'reason':_0x340d10[_0x5cecb5(0x1d0)],'repairCommand':REPAIR_COMMAND};try{const _0x3dd6bb=frontmatterValue(readFileSync(join(_0x340d10[_0x5cecb5(0x1bb)],'SKILL.md'),_0x5cecb5(0x1cc)),_0x5cecb5(0x1ae));return{'state':_0x3dd6bb===_0x2ec6b9?_0x5cecb5(0x1d2):_0x5cecb5(0x1d9),'expectedVersion':_0x2ec6b9,'skillVersion':_0x3dd6bb,'installedPath':_0x340d10[_0x5cecb5(0x1bb)],'repairCommand':REPAIR_COMMAND};}catch(_0xf6978c){return{'state':_0x5cecb5(0x1dc),'expectedVersion':_0x2ec6b9,'installedPath':_0x340d10[_0x5cecb5(0x1bb)],'reason':_0xf6978c instanceof Error?_0xf6978c[_0x5cecb5(0x1c7)]:String(_0xf6978c),'repairCommand':REPAIR_COMMAND};}}function a266_0x31e3(_0x45606a,_0xa9c528){_0x45606a=_0x45606a-0x1a4;const _0x24a189=a266_0x24a1();let _0x31e353=_0x24a189[_0x45606a];return _0x31e353;}export function inspectBuiltinSkill(_0x25da20={}){const _0x352e8c=a266_0xdcfb55,_0x50033b=_0x25da20[_0x352e8c(0x1e4)]??DEFAULT_PACKAGE_ROOT;let _0x4ca15c;try{_0x4ca15c=readSource(_0x50033b);}catch(_0x1f57c1){return{'state':_0x352e8c(0x1dc),'packageVersion':_0x352e8c(0x1de),'reason':_0x1f57c1 instanceof Error?_0x1f57c1['message']:String(_0x1f57c1),'repairCommand':REPAIR_COMMAND};}const _0x5567ae=installedSkillPath(_0x25da20['home']??homedir());if(_0x5567ae[_0x352e8c(0x1c9)]===_0x352e8c(0x1d4))return{'state':_0x352e8c(0x1d4),'packageVersion':_0x4ca15c['packageVersion'],'repairCommand':REPAIR_COMMAND};if(_0x5567ae[_0x352e8c(0x1c9)]==='unverifiable')return{'state':_0x352e8c(0x1dc),'packageVersion':_0x4ca15c[_0x352e8c(0x1ad)],'reason':_0x5567ae[_0x352e8c(0x1d0)],'repairCommand':REPAIR_COMMAND};try{const _0x44ec3f=frontmatterValue(readFileSync(join(_0x5567ae['path'],_0x352e8c(0x1aa)),_0x352e8c(0x1cc)),'version');if(_0x44ec3f!==_0x4ca15c[_0x352e8c(0x1a8)])return{'state':_0x352e8c(0x1d9),'packageVersion':_0x4ca15c[_0x352e8c(0x1ad)],'skillVersion':_0x44ec3f,'installedPath':_0x5567ae[_0x352e8c(0x1bb)],'repairCommand':REPAIR_COMMAND};const _0x3e2abb=listFiles(_0x5567ae['path']),_0x56014a=digestFiles(_0x5567ae[_0x352e8c(0x1bb)],_0x3e2abb);return{'state':sameFiles(_0x3e2abb,_0x4ca15c[_0x352e8c(0x1ce)][_0x352e8c(0x1db)])&&_0x56014a===_0x4ca15c[_0x352e8c(0x1ce)][_0x352e8c(0x1c4)]?'current':'content_mismatch','packageVersion':_0x4ca15c['packageVersion'],'skillVersion':_0x44ec3f,'installedPath':_0x5567ae['path'],'digest':_0x56014a,'repairCommand':REPAIR_COMMAND};}catch(_0x328e4c){return{'state':_0x352e8c(0x1dc),'packageVersion':_0x4ca15c[_0x352e8c(0x1ad)],'installedPath':_0x5567ae[_0x352e8c(0x1bb)],'reason':_0x328e4c instanceof Error?_0x328e4c['message']:String(_0x328e4c),'repairCommand':REPAIR_COMMAND};}}function failure(_0x1c741c,_0x5e1c6b,_0x201120,_0x21a45a){const _0x4478e4=a266_0xdcfb55;return{'ok':![],'code':_0x1c741c,'packageVersion':_0x5e1c6b[_0x4478e4(0x1ad)],'skillVersion':_0x5e1c6b[_0x4478e4(0x1a8)],'installedPath':_0x21a45a,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x201120 instanceof Error?_0x201120[_0x4478e4(0x1c7)]:String(_0x201120)};}export function installBuiltinSkill(_0x475e45={}){const _0x2e19af=a266_0xdcfb55,_0x391499=_0x475e45[_0x2e19af(0x1e4)]??DEFAULT_PACKAGE_ROOT,_0x267966=_0x475e45[_0x2e19af(0x1ba)]??homedir();let _0x3e9279;try{_0x3e9279=readSource(_0x391499);}catch(_0x259495){return failure(_0x2e19af(0x1b5),{'packageVersion':_0x2e19af(0x1de),'skillVersion':_0x2e19af(0x1de)},_0x259495);}const _0x38507d=inspectBuiltinSkill({'packageRoot':_0x391499,'home':_0x267966}),_0x55b6f6=runNpxSkillsAddGlobal(_0x391499,_0x3e9279[_0x2e19af(0x1cd)],{'stdio':_0x475e45[_0x2e19af(0x1be)]??_0x2e19af(0x1df),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x267966}});if(_0x55b6f6[_0x2e19af(0x1c2)])return{'ok':!![],'packageVersion':_0x3e9279[_0x2e19af(0x1ad)],'skillVersion':_0x3e9279['skillVersion'],'installedPath':_0x38507d[_0x2e19af(0x1b0)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x55b6f6['ok'])return failure(_0x2e19af(0x1cb),_0x3e9279,_0x55b6f6['error']??_0x2e19af(0x1ac)+_0x55b6f6[_0x2e19af(0x1b1)]);const _0x25a8f1=inspectBuiltinSkill({'packageRoot':_0x391499,'home':_0x267966});if(_0x25a8f1[_0x2e19af(0x1c9)]!==_0x2e19af(0x1d2))return failure(_0x2e19af(0x1c5),_0x3e9279,_0x25a8f1[_0x2e19af(0x1d0)]??'Installed\x20Skill\x20state\x20is\x20'+_0x25a8f1[_0x2e19af(0x1c9)],_0x25a8f1['installedPath']);return{'ok':!![],'packageVersion':_0x3e9279[_0x2e19af(0x1ad)],'skillVersion':_0x3e9279[_0x2e19af(0x1a8)],'installedPath':_0x25a8f1[_0x2e19af(0x1b0)],'changed':_0x38507d['state']!==_0x2e19af(0x1d2),'repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
1
- function a265_0x254d(){const _0x47a606=['1232019vIyDGm','add','length','-$1','Error:\x20Unsupported\x20command:\x20','792478yNykUj','cwd','1895467wFrXOm','entries','264JMerJj','144IcVBgd','enable-bff-save','slice','argv','4534480JtWjjM','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','--help','10kvhrBG','Unsupported\x20command:\x20','exit','109488RFPqsw','push','includes','error','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','log','toLowerCase','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','dangerously-bff-save','2tnNwHM','Public\x20Open\x20Skill\x20source:\x20','replace','help','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','has','103940MknUEf','50014118lKKaCS','\x0aAvailable\x20commands:','from'];a265_0x254d=function(){return _0x47a606;};return a265_0x254d();}(function(_0x2773c7,_0x4b7b3c){const _0x89dd21=a265_0x876c,_0x295e3d=_0x2773c7();while(!![]){try{const _0x1e3976=parseInt(_0x89dd21(0x8f))/0x1*(-parseInt(_0x89dd21(0x9e))/0x2)+-parseInt(_0x89dd21(0xa3))/0x3*(parseInt(_0x89dd21(0x86))/0x4)+-parseInt(_0x89dd21(0x95))/0x5*(parseInt(_0x89dd21(0xa2))/0x6)+-parseInt(_0x89dd21(0xa0))/0x7+-parseInt(_0x89dd21(0x80))/0x8+-parseInt(_0x89dd21(0x99))/0x9*(-parseInt(_0x89dd21(0x83))/0xa)+parseInt(_0x89dd21(0x96))/0xb;if(_0x1e3976===_0x4b7b3c)break;else _0x295e3d['push'](_0x295e3d['shift']());}catch(_0x45dd09){_0x295e3d['push'](_0x295e3d['shift']());}}}(a265_0x254d,0xc96c8));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(_0x517efa){const _0x4640fb=a265_0x876c,_0x43a929=[];for(const [_0x2df720,_0x244bc8]of Object[_0x4640fb(0xa1)](_0x517efa)){if(_0x244bc8===!![]){const _0x4eb7b2=_0x2df720[_0x4640fb(0x91)](/([A-Z])/g,_0x4640fb(0x9c))[_0x4640fb(0x8c)]();_0x43a929['push'](_0x4eb7b2);}}return _0x43a929;}export function parseDynamicFlags(){const _0x5ce09a=a265_0x876c,_0x31aa89=[];for(let _0x356054=0x3;_0x356054<process[_0x5ce09a(0x7f)][_0x5ce09a(0x9b)];_0x356054++){const _0x18b125=process[_0x5ce09a(0x7f)][_0x356054];if(_0x18b125&&_0x18b125['startsWith']('--')){const _0xd42342=_0x18b125[_0x5ce09a(0x7e)](0x2);_0xd42342&&!_0xd42342[_0x5ce09a(0x88)]('=')&&_0x31aa89[_0x5ce09a(0x87)](_0xd42342);}}return _0x31aa89;}function a265_0x876c(_0x5924b4,_0x2230aa){_0x5924b4=_0x5924b4-0x7d;const _0x254d8f=a265_0x254d();let _0x876c40=_0x254d8f[_0x5924b4];return _0x876c40;}export function getAllProvidedFlags(_0x19be9a){const _0x57a431=a265_0x876c,_0x4a976d=camelCaseFlagsToKebab(_0x19be9a),_0x229787=parseDynamicFlags(),_0x4da105=new Set([..._0x4a976d,..._0x229787]);return Array[_0x57a431(0x98)](_0x4da105);}export function normalizeLegacyBffSaveFlags(_0x3db532){const _0x1496f9=a265_0x876c,_0xad7d8=new Set(_0x3db532);return _0xad7d8[_0x1496f9(0x94)](_0x1496f9(0x8e))&&_0xad7d8[_0x1496f9(0x9a)](_0x1496f9(0x7d)),Array[_0x1496f9(0x98)](_0xad7d8);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x36bac4,_0x284e51,_0x83518c){const _0x549d76=a265_0x876c;logger['setLogPath'](process[_0x549d76(0x9f)]());if(_0x83518c?.[_0x549d76(0x92)]||_0x36bac4===_0x549d76(0x82)){showHelp();return;}console[_0x549d76(0x89)](_0x549d76(0x9d)+(_0x36bac4||'(empty)')),console['log'](_0x549d76(0x97)),console[_0x549d76(0x8b)]('\x20\x20'+CLI_BIN_NAME+_0x549d76(0x8d)),console[_0x549d76(0x8b)](''),console[_0x549d76(0x8b)](_0x549d76(0x90)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x549d76(0x89)]('skill',_0x549d76(0x84)+_0x36bac4),process[_0x549d76(0x85)](0x1);}function showHelp(){const _0x50bf77=a265_0x876c;console[_0x50bf77(0x8b)](_0x50bf77(0x8a)+CLI_BIN_NAME+_0x50bf77(0x93)+SKILLS_INSTALL_COMMAND_LINE+_0x50bf77(0x81));}
1
+ (function(_0x433a65,_0x145139){const _0x48a70b=a267_0x26ca,_0x182d14=_0x433a65();while(!![]){try{const _0x1554c7=-parseInt(_0x48a70b(0xff))/0x1*(parseInt(_0x48a70b(0xfc))/0x2)+-parseInt(_0x48a70b(0x11f))/0x3*(-parseInt(_0x48a70b(0x103))/0x4)+-parseInt(_0x48a70b(0x11a))/0x5*(-parseInt(_0x48a70b(0x10e))/0x6)+-parseInt(_0x48a70b(0xfb))/0x7*(parseInt(_0x48a70b(0x119))/0x8)+-parseInt(_0x48a70b(0x108))/0x9*(-parseInt(_0x48a70b(0x114))/0xa)+-parseInt(_0x48a70b(0x10a))/0xb+-parseInt(_0x48a70b(0x101))/0xc*(-parseInt(_0x48a70b(0x11b))/0xd);if(_0x1554c7===_0x145139)break;else _0x182d14['push'](_0x182d14['shift']());}catch(_0x3d234c){_0x182d14['push'](_0x182d14['shift']());}}}(a267_0x483a,0xd584d));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(_0xebf316){const _0x3179bd=a267_0x26ca,_0x57fb74=[];for(const [_0x54103e,_0x2204f5]of Object['entries'](_0xebf316)){if(_0x2204f5===!![]){const _0x1b987d=_0x54103e[_0x3179bd(0x117)](/([A-Z])/g,'-$1')[_0x3179bd(0x107)]();_0x57fb74[_0x3179bd(0x115)](_0x1b987d);}}return _0x57fb74;}function a267_0x26ca(_0x308f40,_0x571704){_0x308f40=_0x308f40-0xf8;const _0x483a9b=a267_0x483a();let _0x26caf1=_0x483a9b[_0x308f40];return _0x26caf1;}export function parseDynamicFlags(){const _0x1d24c4=a267_0x26ca,_0xf30df1=[];for(let _0xb16c3c=0x3;_0xb16c3c<process[_0x1d24c4(0x11d)][_0x1d24c4(0x104)];_0xb16c3c++){const _0x24b666=process['argv'][_0xb16c3c];if(_0x24b666&&_0x24b666[_0x1d24c4(0xf8)]('--')){const _0x50aa58=_0x24b666[_0x1d24c4(0x10d)](0x2);_0x50aa58&&!_0x50aa58[_0x1d24c4(0x109)]('=')&&_0xf30df1[_0x1d24c4(0x115)](_0x50aa58);}}return _0xf30df1;}export function getAllProvidedFlags(_0x7bd955){const _0x5b3a7a=a267_0x26ca,_0x2755e0=camelCaseFlagsToKebab(_0x7bd955),_0x162262=parseDynamicFlags(),_0x53e479=new Set([..._0x2755e0,..._0x162262]);return Array[_0x5b3a7a(0x11e)](_0x53e479);}function a267_0x483a(){const _0x11b75a=['Unsupported\x20command:\x20','154ViNGmu','12670wRrJXR','has','Public\x20Open\x20Skill\x20source:\x20','151TZAXFY','\x0aAvailable\x20commands:','9012xrESTI','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','8tSdukx','length','cwd','enable-bff-save','toLowerCase','14513157PpPgEB','includes','9996547rKZUue','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','dangerously-bff-save','slice','15762haaXxx','add','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','error','help','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','10JqXLKl','push','setLogPath','replace','Error:\x20Unsupported\x20command:\x20','395128XYrmub','1085mHlpIo','3159bdjzwR','(empty)','argv','from','2192118TIBcsL','startsWith','log'];a267_0x483a=function(){return _0x11b75a;};return a267_0x483a();}export function normalizeLegacyBffSaveFlags(_0x37bf8c){const _0x5c0b2e=a267_0x26ca,_0x1b8c17=new Set(_0x37bf8c);return _0x1b8c17[_0x5c0b2e(0xfd)](_0x5c0b2e(0x10c))&&_0x1b8c17[_0x5c0b2e(0x10f)](_0x5c0b2e(0x106)),Array[_0x5c0b2e(0x11e)](_0x1b8c17);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x2f41fb,_0x44dec0,_0x18e01c){const _0x1fbef3=a267_0x26ca;logger[_0x1fbef3(0x116)](process[_0x1fbef3(0x105)]());if(_0x18e01c?.[_0x1fbef3(0x112)]||_0x2f41fb==='--help'){showHelp();return;}console[_0x1fbef3(0x111)](_0x1fbef3(0x118)+(_0x2f41fb||_0x1fbef3(0x11c))),console['log'](_0x1fbef3(0x100)),console['log']('\x20\x20'+CLI_BIN_NAME+_0x1fbef3(0x102)),console[_0x1fbef3(0xf9)](''),console['log'](_0x1fbef3(0xfe)+SKILLS_INSTALL_COMMAND_LINE),logger['error']('skill',_0x1fbef3(0xfa)+_0x2f41fb),process['exit'](0x1);}function showHelp(){const _0x35b683=a267_0x26ca;console[_0x35b683(0xf9)](_0x35b683(0x10b)+CLI_BIN_NAME+_0x35b683(0x110)+SKILLS_INSTALL_COMMAND_LINE+_0x35b683(0x113));}
@@ -1 +1 @@
1
- const a266_0x53a05a=a266_0xc9aa;(function(_0x4bbcd4,_0x3c701a){const _0x9b005=a266_0xc9aa,_0x3c39a1=_0x4bbcd4();while(!![]){try{const _0x201831=-parseInt(_0x9b005(0x114))/0x1+-parseInt(_0x9b005(0x13c))/0x2*(parseInt(_0x9b005(0x13d))/0x3)+parseInt(_0x9b005(0x128))/0x4*(-parseInt(_0x9b005(0x11b))/0x5)+-parseInt(_0x9b005(0x118))/0x6+parseInt(_0x9b005(0x126))/0x7*(-parseInt(_0x9b005(0x13b))/0x8)+-parseInt(_0x9b005(0x136))/0x9+parseInt(_0x9b005(0x12f))/0xa;if(_0x201831===_0x3c701a)break;else _0x3c39a1['push'](_0x3c39a1['shift']());}catch(_0x363e42){_0x3c39a1['push'](_0x3c39a1['shift']());}}}(a266_0x4f2c,0x75fd4));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_0x53a05a(0x11e);function a266_0xc9aa(_0x5b96d4,_0x34cfb8){_0x5b96d4=_0x5b96d4-0x10a;const _0x4f2c59=a266_0x4f2c();let _0xc9aaab=_0x4f2c59[_0x5b96d4];return _0xc9aaab;}export const NPX_SKILLS_SUBCOMMAND_ADD=a266_0x53a05a(0x137);function a266_0x4f2c(){const _0x6c998f=['1669338ToRycG','add','unknown','Lovrabet','yes','1304UUJhus','1363300NbeVcl','3GxthHV','message','match','INSTALL_PARTIAL','--skill','filter','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','EPERM','stdout','unverifiable','error','expectedSkillName','SKILL_NOT_INSTALLED','inherit','468531Wmmffr','toString','!\x20Could\x20not\x20verify\x20\x22','presence','3554208agtwIH','push','\x22\x20install\x20state:\x20','261110QbfeLb','PERMISSION_DENIED','lovrabet/lovrabet-skill','skills@latest','EACCES','ENOENT','warn','CHILD_EXIT_NONZERO','CHILD_TERMINATED','\x20failed\x20target(s)','state','36904XQBhny','join','12WJWDjD','absent','npx','stdio','skill','signal','status','34273170yUHqVu','log','stderr','remove','pipe','code','reason'];a266_0x4f2c=function(){return _0x6c998f;};return a266_0x4f2c();}export const NPX_SKILLS_FLAG_SKILL=a266_0x53a05a(0x10a);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a266_0x53a05a(0x11d);export const DEFAULT_RABETBASE_SKILL_NAME=a266_0x53a05a(0x139);export const RABETBASE_GLOBAL_SKILL_NAME='rabetbase';export const RABETBASE_SKILL_GIT_SOURCE='git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git';export function resolveGlobalSkillName(_0x593044){switch(_0x593044['trim']()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x7da8c5){const _0x1bbe7e=a266_0x53a05a,_0x2f2bb9=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x7da8c5&&_0x2f2bb9[_0x1bbe7e(0x119)](NPX_SKILLS_FLAG_SKILL,_0x7da8c5),_0x2f2bb9;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a266_0x53a05a(0x12a),...buildNpxSkillsAddArgv()][a266_0x53a05a(0x127)]('\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_0x53a05a(0x127)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x3c885d,_0x36208d,_0x1a8ee7){return{'ok':![],'status':_0x36208d,'code':_0x3c885d,'error':'['+_0x3c885d+']\x20'+_0x1a8ee7};}function spawnOptions(_0x552ff5,_0x46c9ed){const _0x1f0957=a266_0x53a05a,_0x2996b3={...process.env};return delete _0x2996b3['npm_config_global'],delete _0x2996b3['NPM_CONFIG_GLOBAL'],{'cwd':_0x552ff5,'stdio':_0x46c9ed,'env':_0x2996b3,'shell':![],..._0x46c9ed===_0x1f0957(0x133)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x4db4df,_0x214bae,_0x30f3cd,_0x24c072){const _0x5e8c56=a266_0x53a05a,_0x425637=[_0x4db4df[_0x5e8c56(0x10e)]?_0x4db4df[_0x5e8c56(0x10e)][_0x5e8c56(0x115)]():'',_0x4db4df[_0x5e8c56(0x131)]?_0x4db4df['stderr'][_0x5e8c56(0x115)]():''][_0x5e8c56(0x10b)](Boolean)[_0x5e8c56(0x127)]('\x0a')['trim']();_0x24c072!=='pipe'&&_0x425637&&console[_0x5e8c56(0x130)](_0x425637);if(_0x4db4df[_0x5e8c56(0x110)]){const _0x275f80=_0x4db4df['error'],_0x43861f=_0x275f80[_0x5e8c56(0x134)]===_0x5e8c56(0x120)?'NPX_NOT_FOUND':_0x275f80['code']===_0x5e8c56(0x10d)||_0x275f80[_0x5e8c56(0x134)]===_0x5e8c56(0x11f)?_0x5e8c56(0x11c):'SPAWN_FAILED';return failure(_0x43861f,_0x4db4df[_0x5e8c56(0x12e)],_0x275f80[_0x5e8c56(0x13e)]);}if(_0x4db4df[_0x5e8c56(0x12d)])return failure(_0x5e8c56(0x123),_0x4db4df['status'],'npx\x20terminated\x20by\x20signal\x20'+_0x4db4df[_0x5e8c56(0x12d)]);if(_0x4db4df[_0x5e8c56(0x12e)]!==0x0)return failure(_0x5e8c56(0x122),_0x4db4df['status'],_0x425637||'exit\x20'+(_0x4db4df[_0x5e8c56(0x12e)]??_0x5e8c56(0x138)));const _0x24d02e=_0x214bae?resolveInstalledSkill(_0x214bae,_0x30f3cd):undefined,_0x57c729=_0x425637[_0x5e8c56(0x13f)](/Failed to install\s+(\d+)/i);if(_0x57c729&&Number(_0x57c729[0x1])>0x0){const _0x578277='Installer\x20reported\x20'+_0x57c729[0x1]+_0x5e8c56(0x124)+(_0x425637?':\x0a'+_0x425637:'');if(_0x24d02e?.[_0x5e8c56(0x125)]==='present')return console[_0x5e8c56(0x121)]('!\x20'+_0x578277),{'ok':!![],'status':0x0};return failure(_0x5e8c56(0x140),0x0,_0x578277);}if(_0x24d02e){if(_0x24d02e[_0x5e8c56(0x125)]===_0x5e8c56(0x129))return failure(_0x5e8c56(0x112),0x0,'Skill\x20\x22'+_0x214bae+_0x5e8c56(0x10c)+_0x24d02e['checked']['join'](',\x20')+')');_0x24d02e['state']===_0x5e8c56(0x10f)&&console[_0x5e8c56(0x121)](_0x5e8c56(0x116)+_0x214bae+_0x5e8c56(0x11a)+_0x24d02e[_0x5e8c56(0x135)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x4e8a56,_0x27f4c8){const _0xf2468f=a266_0x53a05a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3a725e=_0x27f4c8?.[_0xf2468f(0x12b)]??_0xf2468f(0x113),_0x584ee0=resolveNpmBin(_0xf2468f(0x12a)),_0x26eb51=buildNpxSkillsAddArgv(_0x27f4c8?.['skill']),_0x70ae2f=['npx',..._0x26eb51][_0xf2468f(0x127)]('\x20');console[_0xf2468f(0x130)]('*\x20'+_0x70ae2f);const _0x14e953=spawnSync(_0x584ee0,_0x26eb51,spawnOptions(_0x4e8a56,_0x3a725e));return normalizeSpawnResult(_0x14e953,undefined,undefined,_0x3a725e);}export function runNpxSkillsRemove(_0x226c56,_0x95b26b,_0x3b1bf3=LEGACY_RABETBASE_SKILL_SOURCE){const _0x579c92=a266_0x53a05a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x13af8e=_0x95b26b?.[_0x579c92(0x12b)]??'inherit',_0x309d3b=resolveNpmBin(_0x579c92(0x12a)),_0x409f45=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x579c92(0x132),_0x3b1bf3,NPX_SKILLS_FLAG_SKILL,_0x95b26b?.[_0x579c92(0x12c)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x95b26b?.[_0x579c92(0x13a)]?['-y']:[]],_0x287d22=[_0x309d3b,..._0x409f45][_0x579c92(0x127)]('\x20');console[_0x579c92(0x130)]('*\x20'+_0x287d22);const _0x59fa31=spawnSync(_0x309d3b,_0x409f45,spawnOptions(_0x226c56,_0x13af8e));return normalizeSpawnResult(_0x59fa31,undefined,undefined,_0x13af8e);}export function runNpxSkillsAddGlobal(_0x27e761,_0x4ac489,_0xf3a9f){const _0x4b0740=a266_0x53a05a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x456466=resolveNpmBin(_0x4b0740(0x12a)),_0x59e8b6=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4ac489,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x59d362=[_0x4b0740(0x12a),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4ac489,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console['log']('*\x20'+_0x59d362);const _0x33f77d=spawnSync(_0x456466,_0x59e8b6,spawnOptions(_0x27e761,_0x4b0740(0x133)));return normalizeSpawnResult(_0x33f77d,_0xf3a9f?.[_0x4b0740(0x111)]??resolveGlobalSkillName(_0x4ac489),_0xf3a9f?.[_0x4b0740(0x117)],_0xf3a9f?.[_0x4b0740(0x12b)]);}
1
+ const a268_0x3dba16=a268_0x61ee;function a268_0x4104(){const _0x4d5ba0=['warn','pipe','ENOENT','276IMSwOC','stdio','skill','log','EPERM','unknown','--skill','1010300fKoNWx','280220tePNbY','toString','1656SZtMaZ','npx','stderr','code','SKILL_NOT_INSTALLED','error','919146mPGZXS','exit\x20','INSTALL_PARTIAL','status','445515RrEKBa','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','checked','match','rabetbase','remove','PERMISSION_DENIED','message','trim','2784424uUmGiR','CHILD_EXIT_NONZERO','presence','stdout','inherit','lovrabet/rabetbase','Installer\x20reported\x20','present','join','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','state','NPM_CONFIG_GLOBAL','unverifiable','\x20failed\x20target(s)','yes','Lovrabet','expectedSkillName','196250CcRtSC','!\x20Could\x20not\x20verify\x20\x22','\x22\x20install\x20state:\x20','Skill\x20\x22','push'];a268_0x4104=function(){return _0x4d5ba0;};return a268_0x4104();}(function(_0x5946c5,_0xa488b6){const _0x11bf36=a268_0x61ee,_0x1a80a6=_0x5946c5();while(!![]){try{const _0x3423a0=parseInt(_0x11bf36(0x99))/0x1+parseInt(_0x11bf36(0xa9))/0x2+-parseInt(_0x11bf36(0xa1))/0x3*(-parseInt(_0x11bf36(0xab))/0x4)+parseInt(_0x11bf36(0xa8))/0x5+-parseInt(_0x11bf36(0xb1))/0x6+parseInt(_0x11bf36(0xb5))/0x7+-parseInt(_0x11bf36(0xbe))/0x8;if(_0x3423a0===_0xa488b6)break;else _0x1a80a6['push'](_0x1a80a6['shift']());}catch(_0x39f273){_0x1a80a6['push'](_0x1a80a6['shift']());}}}(a268_0x4104,0x21e9d));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills@latest';export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL=a268_0x3dba16(0xa7);export const RABETBASE_SKILL_SOURCE=a268_0x3dba16(0xc3);export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME=a268_0x3dba16(0x97);export const RABETBASE_GLOBAL_SKILL_NAME=a268_0x3dba16(0xb9);export const RABETBASE_SKILL_GIT_SOURCE=a268_0x3dba16(0xb6);export function resolveGlobalSkillName(_0x35f8b7){const _0x293793=a268_0x3dba16;switch(_0x35f8b7[_0x293793(0xbd)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x2080ac){const _0x5f2a12=a268_0x3dba16,_0x2dfa3e=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x2080ac&&_0x2dfa3e[_0x5f2a12(0x9d)](NPX_SKILLS_FLAG_SKILL,_0x2080ac),_0x2dfa3e;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a268_0x3dba16(0xac),...buildNpxSkillsAddArgv()][a268_0x3dba16(0xc6)]('\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][a268_0x3dba16(0xc6)]('\x20');function a268_0x61ee(_0x4b1bd3,_0x52b869){_0x4b1bd3=_0x4b1bd3-0x95;const _0x410472=a268_0x4104();let _0x61ee72=_0x410472[_0x4b1bd3];return _0x61ee72;}const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x363ae0,_0x442b5a,_0x46a82b){return{'ok':![],'status':_0x442b5a,'code':_0x363ae0,'error':'['+_0x363ae0+']\x20'+_0x46a82b};}function spawnOptions(_0x2a60e4,_0x330b60){const _0x67a3e9=a268_0x3dba16,_0x39d2b3={...process.env};return delete _0x39d2b3['npm_config_global'],delete _0x39d2b3[_0x67a3e9(0xc9)],{'cwd':_0x2a60e4,'stdio':_0x330b60,'env':_0x39d2b3,'shell':![],..._0x330b60===_0x67a3e9(0x9f)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x5a0f16,_0x246f34,_0x51eca0,_0x29e296){const _0x586d1b=a268_0x3dba16,_0x342fcf=[_0x5a0f16[_0x586d1b(0xc1)]?_0x5a0f16[_0x586d1b(0xc1)]['toString']():'',_0x5a0f16[_0x586d1b(0xad)]?_0x5a0f16[_0x586d1b(0xad)][_0x586d1b(0xaa)]():'']['filter'](Boolean)[_0x586d1b(0xc6)]('\x0a')[_0x586d1b(0xbd)]();_0x29e296!==_0x586d1b(0x9f)&&_0x342fcf&&console[_0x586d1b(0xa4)](_0x342fcf);if(_0x5a0f16['error']){const _0x25baf9=_0x5a0f16[_0x586d1b(0xb0)],_0x148fda=_0x25baf9[_0x586d1b(0xae)]===_0x586d1b(0xa0)?'NPX_NOT_FOUND':_0x25baf9[_0x586d1b(0xae)]===_0x586d1b(0xa5)||_0x25baf9['code']==='EACCES'?_0x586d1b(0xbb):'SPAWN_FAILED';return failure(_0x148fda,_0x5a0f16['status'],_0x25baf9[_0x586d1b(0xbc)]);}if(_0x5a0f16['signal'])return failure('CHILD_TERMINATED',_0x5a0f16[_0x586d1b(0xb4)],'npx\x20terminated\x20by\x20signal\x20'+_0x5a0f16['signal']);if(_0x5a0f16['status']!==0x0)return failure(_0x586d1b(0xbf),_0x5a0f16['status'],_0x342fcf||_0x586d1b(0xb2)+(_0x5a0f16['status']??_0x586d1b(0xa6)));const _0x565cd6=_0x246f34?resolveInstalledSkill(_0x246f34,_0x51eca0):undefined,_0x4a6d16=_0x342fcf[_0x586d1b(0xb8)](/Failed to install\s+(\d+)/i);if(_0x4a6d16&&Number(_0x4a6d16[0x1])>0x0){const _0x33f00d=_0x586d1b(0xc4)+_0x4a6d16[0x1]+_0x586d1b(0x95)+(_0x342fcf?':\x0a'+_0x342fcf:'');if(_0x565cd6?.[_0x586d1b(0xc8)]===_0x586d1b(0xc5))return console[_0x586d1b(0x9e)]('!\x20'+_0x33f00d),{'ok':!![],'status':0x0};return failure(_0x586d1b(0xb3),0x0,_0x33f00d);}if(_0x565cd6){if(_0x565cd6[_0x586d1b(0xc8)]==='absent')return failure(_0x586d1b(0xaf),0x0,_0x586d1b(0x9c)+_0x246f34+_0x586d1b(0xc7)+_0x565cd6[_0x586d1b(0xb7)][_0x586d1b(0xc6)](',\x20')+')');_0x565cd6['state']===_0x586d1b(0xca)&&console['warn'](_0x586d1b(0x9a)+_0x246f34+_0x586d1b(0x9b)+_0x565cd6['reason']);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0xbe0066,_0x4ee7ce){const _0x1a387f=a268_0x3dba16;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5b546=_0x4ee7ce?.[_0x1a387f(0xa2)]??_0x1a387f(0xc2),_0x3dbf96=resolveNpmBin(_0x1a387f(0xac)),_0x3e225a=buildNpxSkillsAddArgv(_0x4ee7ce?.[_0x1a387f(0xa3)]),_0x1002d2=['npx',..._0x3e225a][_0x1a387f(0xc6)]('\x20');console[_0x1a387f(0xa4)]('*\x20'+_0x1002d2);const _0x2fbf7e=spawnSync(_0x3dbf96,_0x3e225a,spawnOptions(_0xbe0066,_0x5b546));return normalizeSpawnResult(_0x2fbf7e,undefined,undefined,_0x5b546);}export function runNpxSkillsRemove(_0x30c943,_0x316f19,_0x1f47a1=LEGACY_RABETBASE_SKILL_SOURCE){const _0x25e6f6=a268_0x3dba16;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x324e47=_0x316f19?.[_0x25e6f6(0xa2)]??_0x25e6f6(0xc2),_0x3d13ca=resolveNpmBin('npx'),_0x2794c3=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x25e6f6(0xba),_0x1f47a1,NPX_SKILLS_FLAG_SKILL,_0x316f19?.[_0x25e6f6(0xa3)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x316f19?.[_0x25e6f6(0x96)]?['-y']:[]],_0x206e3d=[_0x3d13ca,..._0x2794c3][_0x25e6f6(0xc6)]('\x20');console['log']('*\x20'+_0x206e3d);const _0x2b03fa=spawnSync(_0x3d13ca,_0x2794c3,spawnOptions(_0x30c943,_0x324e47));return normalizeSpawnResult(_0x2b03fa,undefined,undefined,_0x324e47);}export function runNpxSkillsAddGlobal(_0x4dc865,_0x54d55b,_0x3658c5){const _0x1c516d=a268_0x3dba16;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x131ccd=resolveNpmBin(_0x1c516d(0xac)),_0x410f3a=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x54d55b,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x4477ac=[_0x1c516d(0xac),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x54d55b,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console[_0x1c516d(0xa4)]('*\x20'+_0x4477ac);const _0x4deeb9=spawnSync(_0x131ccd,_0x410f3a,spawnOptions(_0x4dc865,_0x1c516d(0x9f)));return normalizeSpawnResult(_0x4deeb9,_0x3658c5?.[_0x1c516d(0x98)]??resolveGlobalSkillName(_0x54d55b),_0x3658c5?.[_0x1c516d(0xc0)],_0x3658c5?.[_0x1c516d(0xa2)]);}
@@ -1 +1 @@
1
- const a267_0x38423b=a267_0xbb09;(function(_0xdee6b0,_0x496a42){const _0x5381d4=a267_0xbb09,_0x4e48d3=_0xdee6b0();while(!![]){try{const _0x89f62f=parseInt(_0x5381d4(0x1a0))/0x1*(parseInt(_0x5381d4(0x198))/0x2)+parseInt(_0x5381d4(0x1bb))/0x3*(-parseInt(_0x5381d4(0x1a5))/0x4)+-parseInt(_0x5381d4(0x1ac))/0x5+-parseInt(_0x5381d4(0x1b3))/0x6*(-parseInt(_0x5381d4(0x19f))/0x7)+-parseInt(_0x5381d4(0x199))/0x8*(parseInt(_0x5381d4(0x19d))/0x9)+parseInt(_0x5381d4(0x1b5))/0xa+parseInt(_0x5381d4(0x1ab))/0xb;if(_0x89f62f===_0x496a42)break;else _0x4e48d3['push'](_0x4e48d3['shift']());}catch(_0x5e47d5){_0x4e48d3['push'](_0x4e48d3['shift']());}}}(a267_0x2c4a,0xa5388));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a267_0x38423b(0x1a1),'.skill-lock.json');function a267_0x2c4a(){const _0x2e8276=['utf8','not-recorded','present','10029294XSfqJQ','4145975SVOjgQ','kind','join','reason','skills','\x20records\x20\x22','SKILL.md','6285030upMJdT','\x20has\x20no\x20skills\x20map','9143460hBCgdo','unusable','find','globalSkillsDirs','\x20is\x20unreadable:\x20','lockFile','6WAWXkd','absent','250MMQoDR','555848HBrUJr','message','home','recorded','162rAhzdt','version','7DMAFmt','5774qBTGYI','.agents','unverifiable','includes','parse','1677516uJjQhF','map','number'];a267_0x2c4a=function(){return _0x2e8276;};return a267_0x2c4a();}export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a267_0x38423b(0x1a1),'skills'),join('.claude',a267_0x38423b(0x1b0))];function a267_0xbb09(_0x4e6c60,_0x58bb3f){_0x4e6c60=_0x4e6c60-0x198;const _0x2c4ad4=a267_0x2c4a();let _0xbb0965=_0x2c4ad4[_0x4e6c60];return _0xbb0965;}const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x20dea2,_0xc3c32b){const _0x5c3890=a267_0x38423b;if(!existsSync(_0x20dea2))return{'kind':_0x5c3890(0x1a9)};let _0x3dde33;try{_0x3dde33=JSON[_0x5c3890(0x1a4)](readFileSync(_0x20dea2,_0x5c3890(0x1a8)));}catch(_0x24c4f5){return{'kind':_0x5c3890(0x1b6),'reason':_0x20dea2+_0x5c3890(0x1b9)+_0x24c4f5[_0x5c3890(0x19a)]};}const _0x30e43b=_0x3dde33;if(typeof _0x30e43b?.[_0x5c3890(0x19e)]!==_0x5c3890(0x1a7)||!SUPPORTED_LOCK_VERSIONS[_0x5c3890(0x1a3)](_0x30e43b[_0x5c3890(0x19e)]))return{'kind':_0x5c3890(0x1b6),'reason':_0x20dea2+'\x20uses\x20unsupported\x20version\x20'+String(_0x30e43b?.[_0x5c3890(0x19e)])};if(!_0x30e43b[_0x5c3890(0x1b0)]||typeof _0x30e43b[_0x5c3890(0x1b0)]!=='object')return{'kind':'unusable','reason':_0x20dea2+_0x5c3890(0x1b4)};return _0x30e43b[_0x5c3890(0x1b0)][_0xc3c32b]?{'kind':_0x5c3890(0x19c)}:{'kind':_0x5c3890(0x1a9)};}export function resolveInstalledSkill(_0x49df72,_0x2def3e){const _0x590c64=a267_0x38423b,_0x21718e=_0x2def3e?.[_0x590c64(0x19b)]??homedir(),_0x53961d=_0x2def3e?.[_0x590c64(0x1b8)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x590c64(0x1a6)](_0x222daa=>join(_0x21718e,_0x222daa)),_0x2dfb9d=_0x2def3e?.[_0x590c64(0x1ba)]??join(_0x21718e,SKILL_LOCK_RELATIVE_PATH),_0x52fe8d=_0x53961d['map'](_0x96eaa0=>join(_0x96eaa0,_0x49df72,_0x590c64(0x1b2))),_0x162c9c=_0x52fe8d[_0x590c64(0x1b7)](_0x418972=>existsSync(_0x418972));if(_0x162c9c)return{'state':_0x590c64(0x1aa),'path':_0x162c9c};const _0x26b5e4=readLockLookup(_0x2dfb9d,_0x49df72);if(_0x26b5e4[_0x590c64(0x1ad)]===_0x590c64(0x1b6))return{'state':_0x590c64(0x1a2),'reason':_0x26b5e4[_0x590c64(0x1af)]};if(_0x26b5e4[_0x590c64(0x1ad)]===_0x590c64(0x19c))return{'state':_0x590c64(0x1a2),'reason':_0x2dfb9d+_0x590c64(0x1b1)+_0x49df72+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0x52fe8d[_0x590c64(0x1ae)](',\x20')+')')};return{'state':_0x590c64(0x1bc),'checked':_0x52fe8d};}
1
+ const a269_0x24d5fe=a269_0x5c4d;function a269_0x239a(){const _0x4be722=['message','38lFvJNZ','5188908VDftkU','not-recorded','.claude','8dWnpAZ','\x20uses\x20unsupported\x20version\x20','map','2158580MPKYJF','home','\x20records\x20\x22','reason','absent','skills','1302063hpAzvh','8473640ygiKzs','includes','find','object','728566SLDXRB','5pIQKOA','209691BDDzkl','version','unverifiable','kind','recorded','unusable','.agents','76299AJxNfb','join','.skill-lock.json'];a269_0x239a=function(){return _0x4be722;};return a269_0x239a();}(function(_0xdb97,_0x46ecf0){const _0x1721b5=a269_0x5c4d,_0x3133a6=_0xdb97();while(!![]){try{const _0x47b26c=-parseInt(_0x1721b5(0xb5))/0x1+-parseInt(_0x1721b5(0xc2))/0x2*(-parseInt(_0x1721b5(0xbe))/0x3)+parseInt(_0x1721b5(0xaa))/0x4*(parseInt(_0x1721b5(0xb6))/0x5)+parseInt(_0x1721b5(0xc3))/0x6+parseInt(_0x1721b5(0xb0))/0x7+-parseInt(_0x1721b5(0xa7))/0x8*(parseInt(_0x1721b5(0xb7))/0x9)+-parseInt(_0x1721b5(0xb1))/0xa;if(_0x47b26c===_0x46ecf0)break;else _0x3133a6['push'](_0x3133a6['shift']());}catch(_0x2e15fe){_0x3133a6['push'](_0x3133a6['shift']());}}}(a269_0x239a,0x73d66));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a269_0x24d5fe(0xbd),a269_0x24d5fe(0xc0));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a269_0x24d5fe(0xbd),a269_0x24d5fe(0xaf)),join(a269_0x24d5fe(0xa6),a269_0x24d5fe(0xaf))];function a269_0x5c4d(_0x2e82ba,_0x12ce63){_0x2e82ba=_0x2e82ba-0xa5;const _0x239adc=a269_0x239a();let _0x5c4d92=_0x239adc[_0x2e82ba];return _0x5c4d92;}const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x1ac8f4,_0x2b6f49){const _0x2ad676=a269_0x24d5fe;if(!existsSync(_0x1ac8f4))return{'kind':_0x2ad676(0xa5)};let _0x127a41;try{_0x127a41=JSON['parse'](readFileSync(_0x1ac8f4,'utf8'));}catch(_0x796502){return{'kind':_0x2ad676(0xbc),'reason':_0x1ac8f4+'\x20is\x20unreadable:\x20'+_0x796502[_0x2ad676(0xc1)]};}const _0x4b4549=_0x127a41;if(typeof _0x4b4549?.[_0x2ad676(0xb8)]!=='number'||!SUPPORTED_LOCK_VERSIONS[_0x2ad676(0xb2)](_0x4b4549[_0x2ad676(0xb8)]))return{'kind':_0x2ad676(0xbc),'reason':_0x1ac8f4+_0x2ad676(0xa8)+String(_0x4b4549?.[_0x2ad676(0xb8)])};if(!_0x4b4549['skills']||typeof _0x4b4549[_0x2ad676(0xaf)]!==_0x2ad676(0xb4))return{'kind':_0x2ad676(0xbc),'reason':_0x1ac8f4+'\x20has\x20no\x20skills\x20map'};return _0x4b4549[_0x2ad676(0xaf)][_0x2b6f49]?{'kind':_0x2ad676(0xbb)}:{'kind':_0x2ad676(0xa5)};}export function resolveInstalledSkill(_0x27d123,_0x503562){const _0x372888=a269_0x24d5fe,_0x508fd9=_0x503562?.[_0x372888(0xab)]??homedir(),_0x14e973=_0x503562?.['globalSkillsDirs']??GLOBAL_SKILLS_DIR_RELATIVE_PATHS['map'](_0x25167a=>join(_0x508fd9,_0x25167a)),_0x3a23e2=_0x503562?.['lockFile']??join(_0x508fd9,SKILL_LOCK_RELATIVE_PATH),_0x426ee9=_0x14e973[_0x372888(0xa9)](_0x2bbf17=>join(_0x2bbf17,_0x27d123,'SKILL.md')),_0x447f82=_0x426ee9[_0x372888(0xb3)](_0x319042=>existsSync(_0x319042));if(_0x447f82)return{'state':'present','path':_0x447f82};const _0x385ae3=readLockLookup(_0x3a23e2,_0x27d123);if(_0x385ae3['kind']===_0x372888(0xbc))return{'state':_0x372888(0xb9),'reason':_0x385ae3[_0x372888(0xad)]};if(_0x385ae3[_0x372888(0xba)]===_0x372888(0xbb))return{'state':_0x372888(0xb9),'reason':_0x3a23e2+_0x372888(0xac)+_0x27d123+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0x426ee9[_0x372888(0xbf)](',\x20')+')')};return{'state':_0x372888(0xae),'checked':_0x426ee9};}
@@ -1 +1 @@
1
- (function(_0x466171,_0x285304){const _0x43e7f2=a268_0x1aaa,_0x5f4ed3=_0x466171();while(!![]){try{const _0xe2d1b7=parseInt(_0x43e7f2(0x10c))/0x1*(parseInt(_0x43e7f2(0x105))/0x2)+-parseInt(_0x43e7f2(0x107))/0x3+parseInt(_0x43e7f2(0x10b))/0x4*(parseInt(_0x43e7f2(0x10e))/0x5)+parseInt(_0x43e7f2(0x110))/0x6+parseInt(_0x43e7f2(0x106))/0x7*(-parseInt(_0x43e7f2(0x10a))/0x8)+-parseInt(_0x43e7f2(0x112))/0x9+parseInt(_0x43e7f2(0x103))/0xa;if(_0xe2d1b7===_0x285304)break;else _0x5f4ed3['push'](_0x5f4ed3['shift']());}catch(_0x9f31a2){_0x5f4ed3['push'](_0x5f4ed3['shift']());}}}(a268_0x20b9,0x33c9e));function a268_0x20b9(){const _0x5e7a79=['32635RdQrrZ','[REDACTED]','30RXqRYd','error','1786398jAwCKE','some','3534237SUsFPL','message','flags','4995510TlCNyA','rabetbase.command','2uZWcIT','19103IxUxrV','556236QRjAit','service','command','592mfpZBR','108172GtosPT'];a268_0x20b9=function(){return _0x5e7a79;};return a268_0x20b9();}function a268_0x1aaa(_0x24e203,_0x3a687c){_0x24e203=_0x24e203-0x101;const _0x20b9d0=a268_0x20b9();let _0x1aaa9e=_0x20b9d0[_0x24e203];return _0x1aaa9e;}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(_0x4fae98){const _0x2f8d2b=a268_0x1aaa;return SENSITIVE_PATTERNS[_0x2f8d2b(0x111)](_0x18a36f=>_0x18a36f['test'](_0x4fae98));}function sanitizeFlags(_0x14c73c){const _0x289d86=a268_0x1aaa,_0x3e0c88={};for(const [_0x3c97ed,_0x90e52d]of Object['entries'](_0x14c73c)){isSensitiveKey(_0x3c97ed)?_0x3e0c88[_0x3c97ed]=_0x90e52d!=null&&_0x90e52d!==''?_0x289d86(0x10d):_0x90e52d:_0x3e0c88[_0x3c97ed]=_0x90e52d;}return _0x3e0c88;}export async function reportCommandTrace(_0x1310bc){const _0x5d4346=a268_0x1aaa;try{const _0x58eed=sanitizeFlags(_0x1310bc[_0x5d4346(0x102)]);await sendCliTraceLog({'spanName':_0x5d4346(0x104),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x1310bc[_0x5d4346(0x108)],'command.name':_0x1310bc[_0x5d4346(0x109)],'command.flags':JSON['stringify'](_0x58eed),..._0x1310bc['durationMs']!=null?{'command.duration_ms':_0x1310bc['durationMs']}:{},..._0x1310bc[_0x5d4346(0x10f)]?{'command.error':_0x1310bc['error']instanceof Error?_0x1310bc[_0x5d4346(0x10f)][_0x5d4346(0x101)]:String(_0x1310bc[_0x5d4346(0x10f)])}:{}}});}catch{}}
1
+ (function(_0x361159,_0x2b3ee9){const _0x3a9a40=a270_0x3973,_0xa229dd=_0x361159();while(!![]){try{const _0x3398cc=-parseInt(_0x3a9a40(0x102))/0x1*(-parseInt(_0x3a9a40(0x10b))/0x2)+parseInt(_0x3a9a40(0x10c))/0x3*(-parseInt(_0x3a9a40(0x103))/0x4)+-parseInt(_0x3a9a40(0xfa))/0x5+parseInt(_0x3a9a40(0xff))/0x6+parseInt(_0x3a9a40(0x106))/0x7+parseInt(_0x3a9a40(0xfb))/0x8*(parseInt(_0x3a9a40(0x109))/0x9)+parseInt(_0x3a9a40(0xfc))/0xa*(-parseInt(_0x3a9a40(0x107))/0xb);if(_0x3398cc===_0x2b3ee9)break;else _0xa229dd['push'](_0xa229dd['shift']());}catch(_0x15f4f2){_0xa229dd['push'](_0xa229dd['shift']());}}}(a270_0x1667,0xb55a5));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(_0x2d611d){return SENSITIVE_PATTERNS['some'](_0xe4cac2=>_0xe4cac2['test'](_0x2d611d));}function sanitizeFlags(_0x1b36d1){const _0x4e20da=a270_0x3973,_0x23f1e6={};for(const [_0x4e2e0d,_0x91cdbc]of Object[_0x4e20da(0xf9)](_0x1b36d1)){isSensitiveKey(_0x4e2e0d)?_0x23f1e6[_0x4e2e0d]=_0x91cdbc!=null&&_0x91cdbc!==''?_0x4e20da(0x105):_0x91cdbc:_0x23f1e6[_0x4e2e0d]=_0x91cdbc;}return _0x23f1e6;}function a270_0x3973(_0x4f55e1,_0x537d61){_0x4f55e1=_0x4f55e1-0xf9;const _0x1667c6=a270_0x1667();let _0x397342=_0x1667c6[_0x4f55e1];return _0x397342;}export async function reportCommandTrace(_0x45fe14){const _0x59de61=a270_0x3973;try{const _0x35517d=sanitizeFlags(_0x45fe14[_0x59de61(0xfe)]);await sendCliTraceLog({'spanName':_0x59de61(0x108),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x45fe14[_0x59de61(0x100)],'command.name':_0x45fe14['command'],'command.flags':JSON[_0x59de61(0xfd)](_0x35517d),..._0x45fe14[_0x59de61(0x104)]!=null?{'command.duration_ms':_0x45fe14[_0x59de61(0x104)]}:{},..._0x45fe14['error']?{'command.error':_0x45fe14[_0x59de61(0x101)]instanceof Error?_0x45fe14[_0x59de61(0x101)][_0x59de61(0x10a)]:String(_0x45fe14['error'])}:{}}});}catch{}}function a270_0x1667(){const _0x35d97e=['[REDACTED]','3285898zTRqCK','4246ATRvCW','rabetbase.command','3483cwapVQ','message','259006EXlyTS','261pYpoqw','entries','3573230GuCiLp','16872pkQxDo','40390jTciBL','stringify','flags','7712016YCzcDd','service','error','5UDfPsZ','9284SpPCxA','durationMs'];a270_0x1667=function(){return _0x35d97e;};return a270_0x1667();}
@@ -1 +1 @@
1
- (function(_0x2ee971,_0x1bb08a){var _0x4ae584=a269_0x4f35,_0x5bcf7d=_0x2ee971();while(!![]){try{var _0x3b0455=-parseInt(_0x4ae584(0xe7))/0x1*(-parseInt(_0x4ae584(0xe1))/0x2)+-parseInt(_0x4ae584(0xe5))/0x3*(-parseInt(_0x4ae584(0xe8))/0x4)+-parseInt(_0x4ae584(0xde))/0x5*(-parseInt(_0x4ae584(0xe2))/0x6)+parseInt(_0x4ae584(0xe6))/0x7+-parseInt(_0x4ae584(0xe4))/0x8+-parseInt(_0x4ae584(0xea))/0x9*(parseInt(_0x4ae584(0xe9))/0xa)+parseInt(_0x4ae584(0xdc))/0xb;if(_0x3b0455===_0x1bb08a)break;else _0x5bcf7d['push'](_0x5bcf7d['shift']());}catch(_0x3a6667){_0x5bcf7d['push'](_0x5bcf7d['shift']());}}}(a269_0x28df,0xb1891));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a269_0x4f35(_0xfbf1ae,_0x48ef5b){_0xfbf1ae=_0xfbf1ae-0xdc;var _0x28dfbc=a269_0x28df();var _0x4f35c9=_0x28dfbc[_0xfbf1ae];return _0x4f35c9;}function a269_0x28df(){var _0x38fa0b=['894YRosSx','712530EyLNWf','6QOvAla','696kqLkSm','3367130MiYOoK','9HlUbcW','5549247PWkoMF','cli.help','5jUqxSg','Failed\x20to\x20report\x20CLI\x20help\x20trace:','service','296890xIfAWf','3776586puHAmz','error','8914576wicHkx'];a269_0x28df=function(){return _0x38fa0b;};return a269_0x28df();}export async function reportCliHelpTrace(_0x440d22,_0x47c826){var _0x4f941d=a269_0x4f35;try{await sendCliTraceLog({'spanName':_0x4f941d(0xdd),'logData':{'rabetbase.help.kind':_0x440d22,..._0x47c826?.[_0x4f941d(0xe0)]&&{'rabetbase.help.service':_0x47c826[_0x4f941d(0xe0)]}}});}catch(_0x198507){console[_0x4f941d(0xe3)](_0x4f941d(0xdf),_0x198507);}}
1
+ function a271_0x5e8b(_0x5a9ba0,_0x42ce29){_0x5a9ba0=_0x5a9ba0-0x81;var _0x16a78d=a271_0x16a7();var _0x5e8b2a=_0x16a78d[_0x5a9ba0];return _0x5e8b2a;}(function(_0x33d7c7,_0x41059b){var _0x55dac7=a271_0x5e8b,_0x3dd000=_0x33d7c7();while(!![]){try{var _0x394a0f=-parseInt(_0x55dac7(0x8b))/0x1+-parseInt(_0x55dac7(0x84))/0x2*(-parseInt(_0x55dac7(0x81))/0x3)+-parseInt(_0x55dac7(0x85))/0x4+parseInt(_0x55dac7(0x87))/0x5+parseInt(_0x55dac7(0x8c))/0x6*(parseInt(_0x55dac7(0x83))/0x7)+-parseInt(_0x55dac7(0x89))/0x8+parseInt(_0x55dac7(0x82))/0x9*(parseInt(_0x55dac7(0x88))/0xa);if(_0x394a0f===_0x41059b)break;else _0x3dd000['push'](_0x3dd000['shift']());}catch(_0x3b1908){_0x3dd000['push'](_0x3dd000['shift']());}}}(a271_0x16a7,0x6b935));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x2afefa,_0x1323e9){var _0xc8b8ce=a271_0x5e8b;try{await sendCliTraceLog({'spanName':_0xc8b8ce(0x86),'logData':{'rabetbase.help.kind':_0x2afefa,..._0x1323e9?.[_0xc8b8ce(0x8a)]&&{'rabetbase.help.service':_0x1323e9[_0xc8b8ce(0x8a)]}}});}catch(_0x23455e){console['error']('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x23455e);}}function a271_0x16a7(){var _0x4920e=['6393664jUqQQo','service','841297sGHwdk','2070AizrdY','172068hNgJxD','54ekPVcX','7602bhVeXm','12QAesHl','3475224VeEWKO','cli.help','840020NWejoy','3438550zItrGq'];a271_0x16a7=function(){return _0x4920e;};return a271_0x16a7();}
@@ -1 +1 @@
1
- function a270_0x51a9(){const _0x276d34=['tenant','71578wqoBVy','production','7uNnysI','37510XXRJhw','nickname','1742664AAVvaH','user','6774376aeYEmm','email','4668jnMrMT','6XZSOoo','5402946yuAHai','9ycIdAy','6MobiQx','3506270saYabC','1966800DMuVLU'];a270_0x51a9=function(){return _0x276d34;};return a270_0x51a9();}(function(_0x5208a3,_0x3fd09b){const _0x5a315b=a270_0xd742,_0xe8b035=_0x5208a3();while(!![]){try{const _0xd2b094=-parseInt(_0x5a315b(0x17f))/0x1*(-parseInt(_0x5a315b(0x17b))/0x2)+-parseInt(_0x5a315b(0x189))/0x3*(-parseInt(_0x5a315b(0x184))/0x4)+-parseInt(_0x5a315b(0x17d))/0x5+parseInt(_0x5a315b(0x18a))/0x6*(-parseInt(_0x5a315b(0x181))/0x7)+parseInt(_0x5a315b(0x186))/0x8*(-parseInt(_0x5a315b(0x17a))/0x9)+parseInt(_0x5a315b(0x17c))/0xa+-parseInt(_0x5a315b(0x182))/0xb*(-parseInt(_0x5a315b(0x188))/0xc);if(_0xd2b094===_0x3fd09b)break;else _0xe8b035['push'](_0xe8b035['shift']());}catch(_0x13a8f6){_0xe8b035['push'](_0xe8b035['shift']());}}}(a270_0x51a9,0x97fc7));function a270_0xd742(_0x19ec22,_0x21d95a){_0x19ec22=_0x19ec22-0x17a;const _0x51a9b6=a270_0x51a9();let _0xd74279=_0x51a9b6[_0x19ec22];return _0xd74279;}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';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x308f60=a270_0xd742,_0x2ad42f=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x33d8af=_0x2ad42f?.[_0x308f60(0x185)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':_0x308f60(0x180))}),setUserContext({'id':_0x33d8af?.['id'],'username':_0x33d8af?.['username'],'nickname':_0x33d8af?.[_0x308f60(0x183)],'email':_0x33d8af?.[_0x308f60(0x187)],'tenantCode':_0x33d8af?.[_0x308f60(0x17e)]?.['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x2ad42f;}
1
+ (function(_0x1e8495,_0x318187){const _0x45743f=a272_0x168d,_0x447889=_0x1e8495();while(!![]){try{const _0x2e7f4a=-parseInt(_0x45743f(0x12b))/0x1+-parseInt(_0x45743f(0x12c))/0x2+parseInt(_0x45743f(0x136))/0x3+parseInt(_0x45743f(0x132))/0x4+parseInt(_0x45743f(0x130))/0x5+-parseInt(_0x45743f(0x135))/0x6*(-parseInt(_0x45743f(0x134))/0x7)+-parseInt(_0x45743f(0x137))/0x8;if(_0x2e7f4a===_0x318187)break;else _0x447889['push'](_0x447889['shift']());}catch(_0x161e84){_0x447889['push'](_0x447889['shift']());}}}(a272_0x25ba,0x8af1e));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';function a272_0x168d(_0x2c3fde,_0x6edba5){_0x2c3fde=_0x2c3fde-0x129;const _0x25baaa=a272_0x25ba();let _0x168d64=_0x25baaa[_0x2c3fde];return _0x168d64;}import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x4b4d02=a272_0x168d,_0x3e7ea8=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x1ca544=_0x3e7ea8?.[_0x4b4d02(0x129)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x4b4d02(0x138)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x4b4d02(0x12a):_0x4b4d02(0x133))}),setUserContext({'id':_0x1ca544?.['id'],'username':_0x1ca544?.['username'],'nickname':_0x1ca544?.[_0x4b4d02(0x131)],'email':_0x1ca544?.[_0x4b4d02(0x12e)],'tenantCode':_0x1ca544?.[_0x4b4d02(0x12d)]?.[_0x4b4d02(0x12f)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x3e7ea8;}function a272_0x25ba(){const _0x53e1f1=['tenant_code','1999735yfWkgq','nickname','1601616XCZRwV','production','28MWZldz','1392576gDHkLa','3164979sXbwvQ','4460136Ahxrgb','unknown','user','daily','789463SrRkLZ','1735260MmQval','tenant','email'];a272_0x25ba=function(){return _0x53e1f1;};return a272_0x25ba();}
@@ -1 +1 @@
1
- (function(_0x5d4be8,_0x247060){const _0x36612c=a271_0x53ae,_0x55c608=_0x5d4be8();while(!![]){try{const _0x4e6c4a=-parseInt(_0x36612c(0xd8))/0x1*(-parseInt(_0x36612c(0xd7))/0x2)+-parseInt(_0x36612c(0xdb))/0x3+parseInt(_0x36612c(0xd5))/0x4+parseInt(_0x36612c(0xdf))/0x5*(-parseInt(_0x36612c(0xd9))/0x6)+parseInt(_0x36612c(0xda))/0x7+-parseInt(_0x36612c(0xe0))/0x8+parseInt(_0x36612c(0xe1))/0x9;if(_0x4e6c4a===_0x247060)break;else _0x55c608['push'](_0x55c608['shift']());}catch(_0x4c9170){_0x55c608['push'](_0x55c608['shift']());}}}(a271_0x47d5,0x32e8e));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a271_0x53ae(_0x46835b,_0x49d6b0){_0x46835b=_0x46835b-0xd5;const _0x47d562=a271_0x47d5();let _0x53ae8a=_0x47d562[_0x46835b];return _0x53ae8a;}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x26dd23=a271_0x53ae;process['once'](_0x26dd23(0xdd),()=>{void flushOtelNodeIfUsed();});const _0x441d57=()=>{const _0x46f2f9=_0x26dd23;void flushOtelNodeIfUsed()['then'](()=>process[_0x46f2f9(0xdc)](0x0));};process['once'](_0x26dd23(0xd6),_0x441d57),process[_0x26dd23(0xde)]('SIGTERM',_0x441d57);}export async function exitWithOtelShutdown(_0x2e30a6){await flushOtelNodeIfUsed(),process['exit'](_0x2e30a6);}function a271_0x47d5(){const _0x49e92c=['beforeExit','once','25BwDKOu','2977344yzKFeH','3064221OFWWTy','1218188liuAIg','SIGINT','579356sMWvpP','1honlNA','301998vQUOMP','38472uuCkkt','323493lFPmfl','exit'];a271_0x47d5=function(){return _0x49e92c;};return a271_0x47d5();}
1
+ (function(_0x37c564,_0x369269){const _0x591db9=a273_0x32c1,_0xbd90f7=_0x37c564();while(!![]){try{const _0x5b4b15=parseInt(_0x591db9(0x129))/0x1*(-parseInt(_0x591db9(0x123))/0x2)+parseInt(_0x591db9(0x126))/0x3+-parseInt(_0x591db9(0x121))/0x4+-parseInt(_0x591db9(0x11d))/0x5*(-parseInt(_0x591db9(0x11e))/0x6)+parseInt(_0x591db9(0x125))/0x7*(-parseInt(_0x591db9(0x127))/0x8)+parseInt(_0x591db9(0x122))/0x9+parseInt(_0x591db9(0x12a))/0xa*(parseInt(_0x591db9(0x11f))/0xb);if(_0x5b4b15===_0x369269)break;else _0xbd90f7['push'](_0xbd90f7['shift']());}catch(_0x25432b){_0xbd90f7['push'](_0xbd90f7['shift']());}}}(a273_0x3860,0x5df57));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a273_0x32c1(_0x41815f,_0x33d571){_0x41815f=_0x41815f-0x11d;const _0x38602b=a273_0x3860();let _0x32c1d5=_0x38602b[_0x41815f];return _0x32c1d5;}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x523843=a273_0x32c1;process[_0x523843(0x124)](_0x523843(0x128),()=>{void flushOtelNodeIfUsed();});const _0x184986=()=>{const _0x2b6e47=_0x523843;void flushOtelNodeIfUsed()['then'](()=>process[_0x2b6e47(0x120)](0x0));};process['once']('SIGINT',_0x184986),process[_0x523843(0x124)]('SIGTERM',_0x184986);}function a273_0x3860(){const _0x4d54aa=['4isjlud','once','67816hJWkdP','1835724OrDpTh','536NvwYxF','beforeExit','256511iMbgCr','20tuzqvP','251885CfSXaR','78oSvipb','3037210NTzsRk','exit','2944724KzRWsa','4177125LNQpib'];a273_0x3860=function(){return _0x4d54aa;};return a273_0x3860();}export async function exitWithOtelShutdown(_0x36f997){const _0xb8b1e0=a273_0x32c1;await flushOtelNodeIfUsed(),process[_0xb8b1e0(0x120)](_0x36f997);}