@lovrabet/rabetbase-cli 2.4.6-beta.1 → 2.4.6-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (298) 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/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/members-list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app-config/delete.js +1 -1
  25. package/lib/commands/app-config/get.js +1 -1
  26. package/lib/commands/app-config/index.js +1 -1
  27. package/lib/commands/app-config/list.js +1 -1
  28. package/lib/commands/app-config/set.js +1 -1
  29. package/lib/commands/app-config/shared.js +1 -1
  30. package/lib/commands/auth/index.js +1 -1
  31. package/lib/commands/bff/create.js +1 -1
  32. package/lib/commands/bff/delete.js +1 -1
  33. package/lib/commands/bff/detail.js +1 -1
  34. package/lib/commands/bff/index.js +1 -1
  35. package/lib/commands/bff/list.js +1 -1
  36. package/lib/commands/bff/pull.js +1 -1
  37. package/lib/commands/bff/push.js +1 -1
  38. package/lib/commands/bff/status.js +1 -1
  39. package/lib/commands/cli-skill/index.js +1 -1
  40. package/lib/commands/cli-update.js +1 -1
  41. package/lib/commands/codegen/index.js +1 -1
  42. package/lib/commands/codegen/sdk.js +1 -1
  43. package/lib/commands/codegen/sql.js +1 -1
  44. package/lib/commands/common/app-registry.js +1 -1
  45. package/lib/commands/common/app-selector.js +1 -1
  46. package/lib/commands/common/async-task.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -1
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/business-groups.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff-refresh-start.js +1 -1
  88. package/lib/commands/db/diff-refresh-status.js +1 -1
  89. package/lib/commands/db/diff.js +1 -1
  90. package/lib/commands/db/index.js +1 -1
  91. package/lib/commands/db/list.js +1 -1
  92. package/lib/commands/db/shared.js +1 -1
  93. package/lib/commands/db/tables.js +1 -1
  94. package/lib/commands/db/test.js +1 -1
  95. package/lib/commands/db/update.js +1 -1
  96. package/lib/commands/doctor.js +1 -1
  97. package/lib/commands/file/index.js +1 -1
  98. package/lib/commands/init/index.js +1 -1
  99. package/lib/commands/issue/index.js +1 -1
  100. package/lib/commands/issue/nudge.js +1 -1
  101. package/lib/commands/issue/report.js +1 -1
  102. package/lib/commands/issue/shared.js +1 -1
  103. package/lib/commands/kb/create.js +1 -1
  104. package/lib/commands/kb/delete.js +1 -1
  105. package/lib/commands/kb/detail.js +1 -1
  106. package/lib/commands/kb/index.js +1 -1
  107. package/lib/commands/kb/list.js +1 -1
  108. package/lib/commands/kb/shared.js +1 -1
  109. package/lib/commands/kb/update.js +1 -1
  110. package/lib/commands/logs/index.js +1 -1
  111. package/lib/commands/menu/asset-update.js +1 -1
  112. package/lib/commands/menu/delete.js +1 -1
  113. package/lib/commands/menu/external-link-create.js +1 -1
  114. package/lib/commands/menu/external-link-update.js +1 -1
  115. package/lib/commands/menu/group-create.js +1 -1
  116. package/lib/commands/menu/group-update.js +1 -1
  117. package/lib/commands/menu/index.js +1 -1
  118. package/lib/commands/menu/list.js +1 -1
  119. package/lib/commands/menu/move.js +1 -1
  120. package/lib/commands/menu/regroup-start.js +1 -1
  121. package/lib/commands/menu/rename.js +1 -1
  122. package/lib/commands/menu/shared/compare-table.js +1 -1
  123. package/lib/commands/menu/shared/delete-plan.js +1 -1
  124. package/lib/commands/menu/shared/facts.js +1 -1
  125. package/lib/commands/menu/shared/index.js +1 -1
  126. package/lib/commands/menu/shared/inquirer.js +1 -1
  127. package/lib/commands/menu/shared/local-pages.js +1 -1
  128. package/lib/commands/menu/shared/logic.js +1 -1
  129. package/lib/commands/menu/shared/mutations.d.ts +8 -7
  130. package/lib/commands/menu/shared/mutations.js +1 -1
  131. package/lib/commands/menu/shared/service.js +1 -1
  132. package/lib/commands/menu/shared/sync-core.js +1 -1
  133. package/lib/commands/menu/shared/types.d.ts +17 -2
  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.d.ts +2 -0
  138. package/lib/commands/menu/visibility-update.js +1 -0
  139. package/lib/commands/notification/config-create.js +1 -1
  140. package/lib/commands/notification/config-delete.js +1 -1
  141. package/lib/commands/notification/config-list.js +1 -1
  142. package/lib/commands/notification/config-update.js +1 -1
  143. package/lib/commands/notification/index.js +1 -1
  144. package/lib/commands/notification/shared.js +1 -1
  145. package/lib/commands/ocr/index.js +1 -1
  146. package/lib/commands/page/create.js +1 -1
  147. package/lib/commands/page/custom/detail.js +1 -1
  148. package/lib/commands/page/custom/list.js +1 -1
  149. package/lib/commands/page/custom/publish.js +1 -1
  150. package/lib/commands/page/custom/shared.js +1 -1
  151. package/lib/commands/page/custom/syntax.js +1 -1
  152. package/lib/commands/page/custom/template.js +1 -1
  153. package/lib/commands/page/custom/update.js +1 -1
  154. package/lib/commands/page/data-list-status.js +1 -1
  155. package/lib/commands/page/generate-start.js +1 -1
  156. package/lib/commands/page/generate-status.js +1 -1
  157. package/lib/commands/page/index.js +1 -1
  158. package/lib/commands/page/pull.js +1 -1
  159. package/lib/commands/page/push.js +1 -1
  160. package/lib/commands/page/relation-audit.js +1 -1
  161. package/lib/commands/page/restore.js +1 -1
  162. package/lib/commands/page/shared.js +1 -1
  163. package/lib/commands/page/sync.js +1 -1
  164. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  165. package/lib/commands/project/create/format-elapsed.js +1 -1
  166. package/lib/commands/project/create/main.js +1 -1
  167. package/lib/commands/project/create/materialize-project-template.js +1 -1
  168. package/lib/commands/project/create/project-name.js +1 -1
  169. package/lib/commands/project/create/project-template-archive.js +1 -1
  170. package/lib/commands/project/create/project-template-path.js +1 -1
  171. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  172. package/lib/commands/project/create/use-format-code.js +1 -1
  173. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  174. package/lib/commands/project/index.js +1 -1
  175. package/lib/commands/project/upgrade.js +1 -1
  176. package/lib/commands/registry.js +1 -1
  177. package/lib/commands/role/delete.js +1 -1
  178. package/lib/commands/role/detail.js +1 -1
  179. package/lib/commands/role/index.js +1 -1
  180. package/lib/commands/role/list.js +1 -1
  181. package/lib/commands/role/shared.js +1 -1
  182. package/lib/commands/role/update.js +1 -1
  183. package/lib/commands/role/user-add.js +1 -1
  184. package/lib/commands/role/user-remove.js +1 -1
  185. package/lib/commands/role/user-resolve.js +1 -1
  186. package/lib/commands/run/index.js +1 -1
  187. package/lib/commands/schema.js +1 -1
  188. package/lib/commands/sql/create.js +1 -1
  189. package/lib/commands/sql/delete.js +1 -1
  190. package/lib/commands/sql/detail.js +1 -1
  191. package/lib/commands/sql/exec.js +1 -1
  192. package/lib/commands/sql/index.js +1 -1
  193. package/lib/commands/sql/list.js +1 -1
  194. package/lib/commands/sql/pull.js +1 -1
  195. package/lib/commands/sql/push.js +1 -1
  196. package/lib/commands/sql/shared.js +1 -1
  197. package/lib/commands/sql/status.js +1 -1
  198. package/lib/commands/sql/validate.js +1 -1
  199. package/lib/commands/task/index.js +1 -1
  200. package/lib/commands/task/status.js +1 -1
  201. package/lib/commands/tenant/index.js +1 -1
  202. package/lib/commands/tenant/members-list.js +1 -1
  203. package/lib/commands/tenant/shared.js +1 -1
  204. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  205. package/lib/commands/user-account/index.js +1 -1
  206. package/lib/commands/workspace/add.js +1 -1
  207. package/lib/commands/workspace/index.js +1 -1
  208. package/lib/commands/workspace/remove.js +1 -1
  209. package/lib/config/schema.js +1 -1
  210. package/lib/constant/cdn.js +1 -1
  211. package/lib/constant/cli.js +1 -1
  212. package/lib/constant/defaults.js +1 -1
  213. package/lib/constant/domain.js +1 -1
  214. package/lib/constant/env.js +1 -1
  215. package/lib/constant/output.js +1 -1
  216. package/lib/constant/paths.js +1 -1
  217. package/lib/constant/risk.js +1 -1
  218. package/lib/context/app-resolver.js +1 -1
  219. package/lib/context/auth-resolver.js +1 -1
  220. package/lib/context/config-loader.js +1 -1
  221. package/lib/context.js +1 -1
  222. package/lib/core/alias-resolver.js +1 -1
  223. package/lib/core/api-client.js +1 -1
  224. package/lib/core/bff/config.js +1 -1
  225. package/lib/core/bff/file-system.js +1 -1
  226. package/lib/core/bff/hash.js +1 -1
  227. package/lib/core/bff/lock.js +1 -1
  228. package/lib/core/bff/utils.js +1 -1
  229. package/lib/core/db-resolver.js +1 -1
  230. package/lib/core/page/file-system.js +1 -1
  231. package/lib/core/page/hash.js +1 -1
  232. package/lib/core/page/lock.js +1 -1
  233. package/lib/core/sql-index-auditor.js +1 -1
  234. package/lib/core/sql-sync/config.js +1 -1
  235. package/lib/core/sql-sync/file-system.js +1 -1
  236. package/lib/core/sql-sync/hash.js +1 -1
  237. package/lib/core/sql-sync/lock.js +1 -1
  238. package/lib/core/sql-sync/utils.js +1 -1
  239. package/lib/core/sql-validator.js +1 -1
  240. package/lib/errors.js +1 -1
  241. package/lib/framework/build-all-flags.js +1 -1
  242. package/lib/framework/error-output.js +1 -1
  243. package/lib/framework/explicit-yes.js +1 -1
  244. package/lib/framework/flags.js +1 -1
  245. package/lib/framework/help.js +1 -1
  246. package/lib/framework/index.js +1 -1
  247. package/lib/framework/output.js +1 -1
  248. package/lib/framework/response.js +1 -1
  249. package/lib/framework/runner-alias.js +1 -1
  250. package/lib/framework/runner.js +1 -1
  251. package/lib/framework/schema-export.js +1 -1
  252. package/lib/framework/types.js +1 -1
  253. package/lib/generated/build-info.d.ts +4 -4
  254. package/lib/generated/build-info.js +1 -1
  255. package/lib/help.js +1 -1
  256. package/lib/postinstall.js +1 -1
  257. package/lib/runtime/confirmation.js +1 -1
  258. package/lib/runtime/event.js +1 -1
  259. package/lib/runtime/index.js +1 -1
  260. package/lib/runtime/queue.js +1 -1
  261. package/lib/runtime/resolve.js +1 -1
  262. package/lib/skills/builtin-skill.js +1 -1
  263. package/lib/skills/main.js +1 -1
  264. package/lib/skills/npx-skills-add.js +1 -1
  265. package/lib/skills/skill-presence.js +1 -1
  266. package/lib/telemetry/cli-command-trace.js +1 -1
  267. package/lib/telemetry/cli-help-trace.js +1 -1
  268. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  269. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  270. package/lib/telemetry/send-cli-trace-log.js +1 -1
  271. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  272. package/lib/utils/ai_config.js +1 -1
  273. package/lib/utils/apply-jq-filter.js +1 -1
  274. package/lib/utils/cdn-config.js +1 -1
  275. package/lib/utils/check-sdk-version.js +1 -1
  276. package/lib/utils/cli-version-check.js +1 -1
  277. package/lib/utils/cli-version-policy.js +1 -1
  278. package/lib/utils/config.js +1 -1
  279. package/lib/utils/entity-with-id.js +1 -1
  280. package/lib/utils/file-utils.js +1 -1
  281. package/lib/utils/guides-cdn.js +1 -1
  282. package/lib/utils/http-client.js +1 -1
  283. package/lib/utils/is-non-interactive.js +1 -1
  284. package/lib/utils/logger.js +1 -1
  285. package/lib/utils/params.js +1 -1
  286. package/lib/utils/platform.js +1 -1
  287. package/lib/utils/rules-cdn.js +1 -1
  288. package/lib/utils/sleep.js +1 -1
  289. package/lib/utils/template-replacer.js +1 -1
  290. package/lib/utils/update-notice.js +1 -1
  291. package/lib/utils/version.js +1 -1
  292. package/lib/utils/with-active-cookie.js +1 -1
  293. package/lib/utils/write-cli-side-channel.js +1 -1
  294. package/package.json +1 -1
  295. package/skills/rabetbase/SKILL.md +3 -2
  296. package/skills/rabetbase/references/rabetbase-menu-list.md +3 -1
  297. package/skills/rabetbase/references/rabetbase-menu-visibility-update.md +59 -0
  298. package/skills/rabetbase.manifest.json +4 -3
@@ -1 +1 @@
1
- (function(_0x31fda0,_0x42d04a){const _0x3a80d5=a249_0x541e,_0x3580de=_0x31fda0();while(!![]){try{const _0x189b25=parseInt(_0x3a80d5(0x1dd))/0x1*(-parseInt(_0x3a80d5(0x1c9))/0x2)+parseInt(_0x3a80d5(0x1bb))/0x3*(-parseInt(_0x3a80d5(0x1c4))/0x4)+-parseInt(_0x3a80d5(0x1ac))/0x5+parseInt(_0x3a80d5(0x1ea))/0x6+-parseInt(_0x3a80d5(0x1c6))/0x7+-parseInt(_0x3a80d5(0x1d0))/0x8*(parseInt(_0x3a80d5(0x1b7))/0x9)+-parseInt(_0x3a80d5(0x1bf))/0xa*(-parseInt(_0x3a80d5(0x1b5))/0xb);if(_0x189b25===_0x42d04a)break;else _0x3580de['push'](_0x3580de['shift']());}catch(_0x3cf770){_0x3580de['push'](_0x3580de['shift']());}}}(a249_0x344e,0x1aa74));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';function a249_0x541e(_0x52d829,_0x1afe4c){_0x52d829=_0x52d829-0x1a5;const _0x344e7b=a249_0x344e();let _0x541ea2=_0x344e7b[_0x52d829];return _0x541ea2;}import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a249_0x236332}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x36ccc8){const _0x2b64e6=a249_0x541e;return typeof _0x36ccc8===_0x2b64e6(0x1cc)&&_0x36ccc8[_0x2b64e6(0x1bc)]()?_0x36ccc8[_0x2b64e6(0x1bc)]():undefined;}function resolveEnvAppCode(){const _0x14a427=a249_0x541e,_0x3c05be=stringFlag(process.env.RABETBASE_APPCODE);if(_0x3c05be)return{'name':'RABETBASE_APPCODE','value':_0x3c05be};const _0x4323b1=stringFlag(process.env.LOVRABET_APPCODE);if(_0x4323b1)return{'name':_0x14a427(0x1ee),'value':_0x4323b1};return undefined;}function hasExplicitAppCode(_0x70c6fd,_0x9f3fce){const _0x32f424=a249_0x541e;return!!(stringFlag(_0x70c6fd[_0x32f424(0x1ab)])||stringFlag(_0x9f3fce[_0x32f424(0x1ab)]));}function assertEnvAppCodeNotIgnored(_0x4c252c,_0x2d6299,_0x660b34){const _0x270c46=a249_0x541e;if(!_0x2d6299||_0x660b34||_0x4c252c===_0x2d6299[_0x270c46(0x1b1)])return;const _0xdf37dc=_0x4c252c?_0x270c46(0x1a9)+_0x4c252c+'\x22.':'No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.';throw CliErrors[_0x270c46(0x1d1)](_0x2d6299['name']+'='+_0x2d6299[_0x270c46(0x1b1)]+_0x270c46(0x1af)+_0xdf37dc+'\x20'+(_0x270c46(0x1a8)+_0x2d6299['name']+'\x22.'));}export function createPipelineEnv(_0x35d2df,_0x4d8d87,_0x4c5e4a=[]){const _0xaca6f8=a249_0x541e;return{'rawFlags':_0x4d8d87,'args':_0x4c5e4a,'resolveAppCode':()=>_0x35d2df[_0xaca6f8(0x1e2)],'resolveCookie':()=>_0x35d2df[_0xaca6f8(0x1e5)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a249_0x236332(_0x4d8d87),'defaultFormat':_0x35d2df[_0xaca6f8(0x1f9)],'defaultPageSize':_0x35d2df[_0xaca6f8(0x1b8)],'defaultVerbose':_0x35d2df[_0xaca6f8(0x1f1)],'apiDir':_0x35d2df[_0xaca6f8(0x1d5)],'riskLevel':_0x35d2df[_0xaca6f8(0x1aa)],'selectedAppName':_0x35d2df[_0xaca6f8(0x1e6)],'mergedCli':{'defaultApp':_0x35d2df[_0xaca6f8(0x1a5)],'currentApp':_0x35d2df[_0xaca6f8(0x1b3)],'appCode':_0x35d2df['appCode'],'apps':_0x35d2df[_0xaca6f8(0x1e9)]}};}export function createRabetbaseRunnerAdapter(_0xb4543={}){const _0x2eff21=a249_0x541e;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x2eff21(0x1d7)](_0x45e405=>PIPELINE_FLAG_NAMES[_0x2eff21(0x1f5)](_0x45e405[_0x2eff21(0x1a7)]))[_0x2eff21(0x1ed)](({name:_0x1983a1,type:_0x354fa0,description:_0x47501f})=>({'name':_0x1983a1,'type':_0x354fa0,'description':_0x47501f})),'formatOutput':_0xb4543[_0x2eff21(0x1ae)]??formatOutput,'getCommandLabel'(_0x121e1d){const _0x5072d9=_0x2eff21;return CLI_BIN_NAME+'\x20'+_0x121e1d[_0x5072d9(0x1e4)]+'\x20'+_0x121e1d[_0x5072d9(0x1dc)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0xcbb1cb,{def:_0x3ffc5c}){const _0x6f83eb=_0x2eff21,_0x41a11e=_0xcbb1cb[_0x6f83eb(0x1a6)](_0x6f83eb(0x1db))?_0x6f83eb(0x1c2):_0x6f83eb(0x1e1)+_0x3ffc5c[_0x6f83eb(0x1e8)]+_0x6f83eb(0x1ba)+'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.';return CliErrors[_0x6f83eb(0x1d1)](_0xcbb1cb+_0x6f83eb(0x1d8)+_0x41a11e);}},async 'prepare'(_0x160949,_0x1cb410,_0x128dcb,_0x3708ba){const _0x2a8d63=_0x2eff21,_0x439933=_0x1cb410['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x160949,_0x128dcb,_0x439933,_0x3708ba);const _0x23abd3=resolveCommandAuthMode(_0x160949);let _0x487738='';if(_0x23abd3!==_0x2a8d63(0x1e0)){_0x487738=_0x1cb410['resolveCookie']()||'';if(!_0x487738){if(_0x23abd3===_0x2a8d63(0x1d3))throw CliErrors['authRequired']();}else{const {setActiveCookie:_0x194cd0}=await import(_0x2a8d63(0x1b6));_0x194cd0(_0x487738);}}const _0x4e460c=_0x1cb410[_0x2a8d63(0x1ec)]()??'';if(_0x160949[_0x2a8d63(0x1d9)]!==![]){assertEnvAppCodeNotIgnored(_0x4e460c,resolveEnvAppCode(),hasExplicitAppCode(_0x128dcb,_0x1cb410['rawFlags']));if(!_0x4e460c)throw CliErrors[_0x2a8d63(0x1cd)](_0x2a8d63(0x1f8)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}return{'defaults':{'booleans':{'verbose':_0x1cb410[_0x2a8d63(0x1c0)]},'numbers':{'pagesize':_0x1cb410[_0x2a8d63(0x1bd)]}},'extras':{'appCode':_0x4e460c,'cookie':_0x487738,'apiDomain':_0x1cb410[_0x2a8d63(0x1ca)](),'apiDir':_0x439933,'selectedAppName':_0x1cb410[_0x2a8d63(0x1df)],'mergedCli':_0x1cb410[_0x2a8d63(0x1de)]}};},'confirmHighRisk':_0xb4543[_0x2eff21(0x1b2)]??(async({env:_0x2ee019,commandLabel:_0x2c47b6})=>{const _0x2ed792=_0x2eff21;if(_0x2ee019[_0x2ed792(0x1ce)])throw CliErrors[_0x2ed792(0x1d1)](_0x2ed792(0x1f0)+_0x2c47b6+_0x2ed792(0x1c8));await requireConfirmationPrompt({'lines':[_0x2ed792(0x1b9)+_0x2c47b6,_0x2ed792(0x1be)],'createCancelledError':_0x526838=>CliErrors[_0x2ed792(0x1c1)](_0x526838)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const {clearActiveCookie:_0x1163e0}=await import('../core/api-client.js');_0x1163e0();}export async function finalizeRabetbaseRuntimeState(){const _0x5aec61=a249_0x541e;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x33cf9f},{initEnv:_0x450678}]=await Promise[_0x5aec61(0x1f7)]([import(_0x5aec61(0x1eb)),import(_0x5aec61(0x1e3))]);_0x33cf9f(),_0x450678(_0x5aec61(0x1ef));}}export async function runCommand(_0x53ccf5,_0x215419,_0x14c85d=terminalRunnerAdapter){const _0x2c5fb8=a249_0x541e;assertRejectedFlags(_0x53ccf5,_0x215419[_0x2c5fb8(0x1d2)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x53ccf5)?withUpdateNotice(_0x53ccf5):_0x53ccf5,_0x215419,_0x14c85d);}function a249_0x344e(){const _0x233650=['command','6xnCcOf','mergedCli','selectedAppName','none','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','appCode','../constant/env.js','service','cookie','explicitAppName','hasFormat','risk','apps','344268assWDm','../constant/domain.js','resolveAppCode','map','LOVRABET_APPCODE','production','High-risk\x20operation\x20`','verbose','schema','replace','resolve','has','some','all','Set\x20appcode\x20via\x20`','format','defaultApp','includes','name','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','Current\x20resolved\x20appcode\x20is\x20\x22','riskLevel','appcode','1019375CKtyqt','_notice','formatOutput','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','execute','value','confirmHighRisk','currentApp','doctor','11olEbzo','../core/api-client.js','3708mPImMt','pageSize','⚠\x20\x20High-risk\x20operation:\x20','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','36NTbGIz','trim','defaultPageSize','\x20\x20\x20Continue?\x20[y/N]\x20','7141130aLQWuC','defaultVerbose','cancelled','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','find','49464fgyuzk','hint','965426gnULJp','message','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','23182yWazee','resolveApiDomain','catch','string','configMissing','isNonInteractive','update','1992NIQaSK','validation','rawFlags','required','rejectedFlags','apiDir','nonInteractive','filter','\x0a\x20\x20','requiresAppCode','object','Edit\x20the\x20config\x20file\x20manually'];a249_0x344e=function(){return _0x233650;};return a249_0x344e();}function assertRejectedFlags(_0x10074d,_0x142595){const _0x122dc8=a249_0x541e;for(const _0x11cdc2 of _0x10074d[_0x122dc8(0x1d4)]??[]){const _0x157ba9=GLOBAL_FLAGS[_0x122dc8(0x1c3)](_0x397271=>_0x397271['name']===_0x11cdc2['name']),_0x1be4bf=new Set([_0x11cdc2[_0x122dc8(0x1a7)],toCamelCase(_0x11cdc2[_0x122dc8(0x1a7)]),_0x157ba9?.['meowKey']]),_0x1864dd=[..._0x1be4bf][_0x122dc8(0x1f6)](_0x408b7d=>{if(!_0x408b7d)return![];const _0x3d4caa=_0x142595[_0x408b7d];return _0x3d4caa!==undefined&&_0x3d4caa!==null&&_0x3d4caa!==![];});if(_0x1864dd)throw CliErrors['validation'](_0x11cdc2[_0x122dc8(0x1c7)],_0x11cdc2[_0x122dc8(0x1c5)]);}}function toCamelCase(_0x2bbc3b){const _0x37daea=a249_0x541e;return _0x2bbc3b[_0x37daea(0x1f3)](/-([a-z])/g,(_0xbda2ab,_0x157f16)=>_0x157f16['toUpperCase']());}function shouldAttachUpdateNotice(_0x3d79e1){const _0x5b3abe=a249_0x541e;if(_0x3d79e1[_0x5b3abe(0x1e7)]===![])return![];return![_0x5b3abe(0x1cf),_0x5b3abe(0x1f2),_0x5b3abe(0x1b4)]['includes'](_0x3d79e1[_0x5b3abe(0x1e4)]);}function withUpdateNotice(_0xa7d044){return{..._0xa7d044,async 'execute'(_0x6d6f1a){const _0x21a2bd=a249_0x541e,_0x5676c0=shouldResolveUpdateNotice(_0x6d6f1a)?resolveLatestUpdateNotice()[_0x21a2bd(0x1cb)](()=>null):Promise[_0x21a2bd(0x1f4)](null),_0x406746=await _0xa7d044[_0x21a2bd(0x1b0)](_0x6d6f1a);return attachUpdateNotice(_0x406746,await _0x5676c0);}};}function shouldResolveUpdateNotice(_0x4a83aa){const _0x1558ae=a249_0x541e;return _0x4a83aa['format']==='pretty'&&!_0x4a83aa[_0x1558ae(0x1d6)];}function attachUpdateNotice(_0x33a34b,_0x8c5730){const _0x399762=a249_0x541e;if(!_0x8c5730||!_0x33a34b||typeof _0x33a34b!==_0x399762(0x1da))return _0x33a34b;const _0x535077=_0x33a34b,_0x31fbc3=typeof _0x535077[_0x399762(0x1ad)]===_0x399762(0x1da)&&_0x535077[_0x399762(0x1ad)]!==null?_0x535077[_0x399762(0x1ad)]:{};return{..._0x535077,'_notice':{..._0x31fbc3,'update':_0x8c5730}};}
1
+ (function(_0x57f8f7,_0x5517fc){const _0x3779f1=a250_0x2737,_0x3f54cc=_0x57f8f7();while(!![]){try{const _0x1d956a=parseInt(_0x3779f1(0x18e))/0x1+-parseInt(_0x3779f1(0x162))/0x2*(-parseInt(_0x3779f1(0x18d))/0x3)+-parseInt(_0x3779f1(0x181))/0x4*(parseInt(_0x3779f1(0x17d))/0x5)+-parseInt(_0x3779f1(0x164))/0x6+-parseInt(_0x3779f1(0x15d))/0x7+parseInt(_0x3779f1(0x175))/0x8+-parseInt(_0x3779f1(0x182))/0x9;if(_0x1d956a===_0x5517fc)break;else _0x3f54cc['push'](_0x3f54cc['shift']());}catch(_0x291422){_0x3f54cc['push'](_0x3f54cc['shift']());}}}(a250_0x55a0,0x60caa));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';function a250_0x2737(_0x1d0ca0,_0x547967){_0x1d0ca0=_0x1d0ca0-0x153;const _0x55a008=a250_0x55a0();let _0x2737e5=_0x55a008[_0x1d0ca0];return _0x2737e5;}import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a250_0x5d13d9}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0xd8efd2){const _0x3e2cfc=a250_0x2737;return typeof _0xd8efd2===_0x3e2cfc(0x163)&&_0xd8efd2[_0x3e2cfc(0x165)]()?_0xd8efd2[_0x3e2cfc(0x165)]():undefined;}function resolveEnvAppCode(){const _0x510242=a250_0x2737,_0x170cad=stringFlag(process.env.RABETBASE_APPCODE);if(_0x170cad)return{'name':_0x510242(0x183),'value':_0x170cad};const _0x5f53bd=stringFlag(process.env.LOVRABET_APPCODE);if(_0x5f53bd)return{'name':_0x510242(0x15c),'value':_0x5f53bd};return undefined;}function hasExplicitAppCode(_0x26b527,_0xdb02c1){const _0x322f16=a250_0x2737;return!!(stringFlag(_0x26b527[_0x322f16(0x190)])||stringFlag(_0xdb02c1[_0x322f16(0x190)]));}function assertEnvAppCodeNotIgnored(_0x1ed768,_0x3e1695,_0x506ce2){const _0x5cdd3b=a250_0x2737;if(!_0x3e1695||_0x506ce2||_0x1ed768===_0x3e1695['value'])return;const _0x46fae4=_0x1ed768?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x1ed768+'\x22.':_0x5cdd3b(0x15b);throw CliErrors[_0x5cdd3b(0x154)](_0x3e1695['name']+'='+_0x3e1695['value']+_0x5cdd3b(0x196)+_0x46fae4+'\x20'+(_0x5cdd3b(0x17b)+_0x3e1695['name']+'\x22.'));}export function createPipelineEnv(_0x388f38,_0x498b57,_0x21b58f=[]){const _0x3edd23=a250_0x2737;return{'rawFlags':_0x498b57,'args':_0x21b58f,'resolveAppCode':()=>_0x388f38[_0x3edd23(0x15e)],'resolveCookie':()=>_0x388f38['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a250_0x5d13d9(_0x498b57),'defaultFormat':_0x388f38[_0x3edd23(0x198)],'defaultPageSize':_0x388f38[_0x3edd23(0x159)],'defaultVerbose':_0x388f38[_0x3edd23(0x178)],'apiDir':_0x388f38[_0x3edd23(0x155)],'riskLevel':_0x388f38[_0x3edd23(0x166)],'selectedAppName':_0x388f38[_0x3edd23(0x18f)],'mergedCli':{'defaultApp':_0x388f38[_0x3edd23(0x19c)],'currentApp':_0x388f38['currentApp'],'appCode':_0x388f38[_0x3edd23(0x15e)],'apps':_0x388f38[_0x3edd23(0x192)]}};}export function createRabetbaseRunnerAdapter(_0x7f72e5={}){const _0x1a2030=a250_0x2737;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x1a2030(0x191)](_0x45ef3a=>PIPELINE_FLAG_NAMES[_0x1a2030(0x17a)](_0x45ef3a[_0x1a2030(0x158)]))[_0x1a2030(0x187)](({name:_0x35ffcb,type:_0x2807cb,description:_0x5701eb})=>({'name':_0x35ffcb,'type':_0x2807cb,'description':_0x5701eb})),'formatOutput':_0x7f72e5[_0x1a2030(0x160)]??formatOutput,'getCommandLabel'(_0xa5c58c){const _0x3bd5d3=_0x1a2030;return CLI_BIN_NAME+'\x20'+_0xa5c58c[_0x3bd5d3(0x18c)]+'\x20'+_0xa5c58c[_0x3bd5d3(0x168)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x1875f9,{def:_0x1e00ad}){const _0x30bfdb=_0x1a2030,_0x498bea=_0x1875f9['includes'](_0x30bfdb(0x180))?_0x30bfdb(0x17f):_0x30bfdb(0x16d)+_0x1e00ad[_0x30bfdb(0x157)]+_0x30bfdb(0x16b)+_0x30bfdb(0x17f);return CliErrors[_0x30bfdb(0x154)](_0x1875f9+'\x0a\x20\x20'+_0x498bea);}},async 'prepare'(_0xd50179,_0x1f4c62,_0x1450fa,_0x20f836){const _0x1878e8=_0x1a2030,_0x1abbfa=_0x1f4c62[_0x1878e8(0x155)]||DEFAULT_API_DIR;resolveAliasToCode(_0xd50179,_0x1450fa,_0x1abbfa,_0x20f836);const _0x3de3f0=resolveCommandAuthMode(_0xd50179);let _0x2007fe='';if(_0x3de3f0!=='none'){_0x2007fe=_0x1f4c62[_0x1878e8(0x189)]()||'';if(!_0x2007fe){if(_0x3de3f0===_0x1878e8(0x16f))throw CliErrors[_0x1878e8(0x186)]();}else{const {setActiveCookie:_0x4f3db7}=await import(_0x1878e8(0x16e));_0x4f3db7(_0x2007fe);}}const _0xcabe43=_0x1f4c62[_0x1878e8(0x17c)]()??'';if(_0xd50179[_0x1878e8(0x176)]!==![]){assertEnvAppCodeNotIgnored(_0xcabe43,resolveEnvAppCode(),hasExplicitAppCode(_0x1450fa,_0x1f4c62[_0x1878e8(0x199)]));if(!_0xcabe43)throw CliErrors[_0x1878e8(0x161)](_0x1878e8(0x18b)+CLI_BIN_NAME+_0x1878e8(0x185));}return{'defaults':{'booleans':{'verbose':_0x1f4c62[_0x1878e8(0x188)]},'numbers':{'pagesize':_0x1f4c62['defaultPageSize']}},'extras':{'appCode':_0xcabe43,'cookie':_0x2007fe,'apiDomain':_0x1f4c62[_0x1878e8(0x172)](),'apiDir':_0x1abbfa,'selectedAppName':_0x1f4c62[_0x1878e8(0x15f)],'mergedCli':_0x1f4c62[_0x1878e8(0x173)]}};},'confirmHighRisk':_0x7f72e5['confirmHighRisk']??(async({env:_0x4dc40b,commandLabel:_0x279408})=>{const _0x2afe59=_0x1a2030;if(_0x4dc40b[_0x2afe59(0x170)])throw CliErrors[_0x2afe59(0x154)]('High-risk\x20operation\x20`'+_0x279408+_0x2afe59(0x153));await requireConfirmationPrompt({'lines':[_0x2afe59(0x19a)+_0x279408,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x113cea=>CliErrors[_0x2afe59(0x193)](_0x113cea)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const {clearActiveCookie:_0x3148a8}=await import('../core/api-client.js');_0x3148a8();}export async function finalizeRabetbaseRuntimeState(){const _0x6a0361=a250_0x2737;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x5b4cea},{initEnv:_0xff9c50}]=await Promise['all']([import(_0x6a0361(0x17e)),import(_0x6a0361(0x195))]);_0x5b4cea(),_0xff9c50(_0x6a0361(0x197));}}function a250_0x55a0(){const _0x118dd1=['authRequired','map','defaultVerbose','resolveCookie','execute','Set\x20appcode\x20via\x20`','service','3TJQeFZ','602439LmjxjV','explicitAppName','appcode','filter','apps','cancelled','_notice','../constant/env.js','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','production','format','rawFlags','⚠\x20\x20High-risk\x20operation:\x20','message','defaultApp','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','validation','apiDir','find','risk','name','pageSize','toUpperCase','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','LOVRABET_APPCODE','4525920JoSJIe','appCode','selectedAppName','formatOutput','configMissing','215044GkUguh','string','580506VkzMCD','trim','riskLevel','meowKey','command','object','nonInteractive','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','includes','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','../core/api-client.js','required','isNonInteractive','update','resolveApiDomain','mergedCli','replace','6014144wxlVIL','requiresAppCode','hint','verbose','doctor','has','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','resolveAppCode','35KgXrnK','../constant/domain.js','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','Edit\x20the\x20config\x20file\x20manually','89384twcneJ','1489842xOXNMN','RABETBASE_APPCODE','resolve','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.'];a250_0x55a0=function(){return _0x118dd1;};return a250_0x55a0();}export async function runCommand(_0x94c9fa,_0x5253ad,_0x504b25=terminalRunnerAdapter){const _0x49052b=a250_0x2737;assertRejectedFlags(_0x94c9fa,_0x5253ad[_0x49052b(0x199)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x94c9fa)?withUpdateNotice(_0x94c9fa):_0x94c9fa,_0x5253ad,_0x504b25);}function assertRejectedFlags(_0x3f24a6,_0x473cc5){const _0x3501a1=a250_0x2737;for(const _0x27ae4e of _0x3f24a6['rejectedFlags']??[]){const _0x466550=GLOBAL_FLAGS[_0x3501a1(0x156)](_0x6b7911=>_0x6b7911['name']===_0x27ae4e[_0x3501a1(0x158)]),_0x34f548=new Set([_0x27ae4e[_0x3501a1(0x158)],toCamelCase(_0x27ae4e[_0x3501a1(0x158)]),_0x466550?.[_0x3501a1(0x167)]]),_0xb27d53=[..._0x34f548]['some'](_0x3677cc=>{if(!_0x3677cc)return![];const _0x357f08=_0x473cc5[_0x3677cc];return _0x357f08!==undefined&&_0x357f08!==null&&_0x357f08!==![];});if(_0xb27d53)throw CliErrors[_0x3501a1(0x154)](_0x27ae4e[_0x3501a1(0x19b)],_0x27ae4e[_0x3501a1(0x177)]);}}function toCamelCase(_0x37d970){const _0x252d02=a250_0x2737;return _0x37d970[_0x252d02(0x174)](/-([a-z])/g,(_0x31a747,_0x4ed9e9)=>_0x4ed9e9[_0x252d02(0x15a)]());}function shouldAttachUpdateNotice(_0x1d6ab8){const _0x5ea33d=a250_0x2737;if(_0x1d6ab8['hasFormat']===![])return![];return![_0x5ea33d(0x171),'schema',_0x5ea33d(0x179)][_0x5ea33d(0x16c)](_0x1d6ab8[_0x5ea33d(0x18c)]);}function withUpdateNotice(_0x10566f){return{..._0x10566f,async 'execute'(_0x2b192a){const _0x26cb2c=a250_0x2737,_0x7addb9=shouldResolveUpdateNotice(_0x2b192a)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x26cb2c(0x184)](null),_0x496f14=await _0x10566f[_0x26cb2c(0x18a)](_0x2b192a);return attachUpdateNotice(_0x496f14,await _0x7addb9);}};}function shouldResolveUpdateNotice(_0xce8ed5){const _0x1ccff4=a250_0x2737;return _0xce8ed5[_0x1ccff4(0x198)]==='pretty'&&!_0xce8ed5[_0x1ccff4(0x16a)];}function attachUpdateNotice(_0x1837e6,_0x53f2b2){const _0x391c3c=a250_0x2737;if(!_0x53f2b2||!_0x1837e6||typeof _0x1837e6!==_0x391c3c(0x169))return _0x1837e6;const _0x178925=_0x1837e6,_0x384175=typeof _0x178925['_notice']===_0x391c3c(0x169)&&_0x178925[_0x391c3c(0x194)]!==null?_0x178925['_notice']:{};return{..._0x178925,'_notice':{..._0x384175,'update':_0x53f2b2}};}
@@ -1 +1 @@
1
- (function(_0x5664f5,_0x49a20e){const _0x35885d=a250_0x42b0,_0x2a2d97=_0x5664f5();while(!![]){try{const _0x157b9f=parseInt(_0x35885d(0xbc))/0x1+-parseInt(_0x35885d(0xc1))/0x2*(-parseInt(_0x35885d(0xbf))/0x3)+-parseInt(_0x35885d(0xc0))/0x4*(parseInt(_0x35885d(0xb7))/0x5)+-parseInt(_0x35885d(0xbd))/0x6+-parseInt(_0x35885d(0xbb))/0x7+-parseInt(_0x35885d(0xb9))/0x8*(-parseInt(_0x35885d(0xbe))/0x9)+parseInt(_0x35885d(0xba))/0xa;if(_0x157b9f===_0x49a20e)break;else _0x2a2d97['push'](_0x2a2d97['shift']());}catch(_0x17b6e9){_0x2a2d97['push'](_0x2a2d97['shift']());}}}(a250_0x4ddd,0x82673));function a250_0x42b0(_0x32b285,_0x57b683){_0x32b285=_0x32b285-0xb7;const _0x4ddd3e=a250_0x4ddd();let _0x42b095=_0x4ddd3e[_0x32b285];return _0x42b095;}import{buildSchemaPayload as a250_0x382df0}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';function a250_0x4ddd(){const _0x5cc1f7=['467110MELdOR','264230lPhqgD','4183044TAYzFX','9phtxna','471YwgvpG','1282648deDXUj','9566nhhGcg','15UlmvSe','../commands/registry.js','5698552dUUasN','5325410iZAuth'];a250_0x4ddd=function(){return _0x5cc1f7;};return a250_0x4ddd();}export async function buildSchemaPayload(){const _0x3a9a92=a250_0x42b0,{serviceRegistry:_0x450dd2,findDefinition:_0x3cebd6}=await import(_0x3a9a92(0xb8));return a250_0x382df0({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x450dd2,'buildAllFlags':buildAllFlags,'findDefinition':_0x3cebd6});}
1
+ (function(_0x49b316,_0x43ae69){const _0x45300c=a251_0x2ed9,_0x4faaef=_0x49b316();while(!![]){try{const _0x34e7c3=-parseInt(_0x45300c(0x173))/0x1+-parseInt(_0x45300c(0x171))/0x2+parseInt(_0x45300c(0x179))/0x3*(-parseInt(_0x45300c(0x178))/0x4)+-parseInt(_0x45300c(0x174))/0x5*(-parseInt(_0x45300c(0x175))/0x6)+parseInt(_0x45300c(0x170))/0x7+-parseInt(_0x45300c(0x177))/0x8+-parseInt(_0x45300c(0x172))/0x9*(parseInt(_0x45300c(0x16f))/0xa);if(_0x34e7c3===_0x43ae69)break;else _0x4faaef['push'](_0x4faaef['shift']());}catch(_0x38e286){_0x4faaef['push'](_0x4faaef['shift']());}}}(a251_0x2bee,0x8158b));import{buildSchemaPayload as a251_0x545161}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a251_0x2ed9(_0x1af9b7,_0x246704){_0x1af9b7=_0x1af9b7-0x16f;const _0x2bee0e=a251_0x2bee();let _0x2ed9a1=_0x2bee0e[_0x1af9b7];return _0x2ed9a1;}function a251_0x2bee(){const _0x23623e=['2891660ODYDTw','6051990NDuNMS','318582Mykdzr','9miZOwZ','59650wygrUB','2210965AqTvCj','6HcePTk','../commands/registry.js','2131968QidOBM','9428yQMfow','3GUBFcx'];a251_0x2bee=function(){return _0x23623e;};return a251_0x2bee();}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0xb82e88=a251_0x2ed9,{serviceRegistry:_0x3a8451,findDefinition:_0x51ee06}=await import(_0xb82e88(0x176));return a251_0x545161({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x3a8451,'buildAllFlags':buildAllFlags,'findDefinition':_0x51ee06});}
@@ -1 +1 @@
1
- (function(_0x12347b,_0x2f7368){var _0x842d00=a251_0x85de,_0x5586b0=_0x12347b();while(!![]){try{var _0x4df726=-parseInt(_0x842d00(0x171))/0x1*(-parseInt(_0x842d00(0x177))/0x2)+-parseInt(_0x842d00(0x176))/0x3+parseInt(_0x842d00(0x16f))/0x4+parseInt(_0x842d00(0x16e))/0x5*(-parseInt(_0x842d00(0x172))/0x6)+parseInt(_0x842d00(0x174))/0x7+-parseInt(_0x842d00(0x173))/0x8*(-parseInt(_0x842d00(0x170))/0x9)+-parseInt(_0x842d00(0x175))/0xa;if(_0x4df726===_0x2f7368)break;else _0x5586b0['push'](_0x5586b0['shift']());}catch(_0x30d54b){_0x5586b0['push'](_0x5586b0['shift']());}}}(a251_0x43a6,0x9312a));function a251_0x85de(_0x4a68ac,_0x415d9e){_0x4a68ac=_0x4a68ac-0x16e;var _0x43a66e=a251_0x43a6();var _0x85de10=_0x43a66e[_0x4a68ac];return _0x85de10;}function a251_0x43a6(){var _0x13176a=['2FdZcHt','120sLBadW','2650276nLSULi','18kKdXFO','164621tTdNmk','227226qMDpBo','1796216faPIHS','6606684xhLFQF','5309490kbswxV','533379zLoOZv'];a251_0x43a6=function(){return _0x13176a;};return a251_0x43a6();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
1
+ function a252_0x4824(_0x3d61bb,_0x60b6e5){_0x3d61bb=_0x3d61bb-0x1ca;var _0x5a90f8=a252_0x5a90();var _0x482437=_0x5a90f8[_0x3d61bb];return _0x482437;}function a252_0x5a90(){var _0xaa1dd=['463388LHQZWm','3jkfJpQ','488CCFboO','471552VqDxhJ','3104016owPBOs','231687BWOIoT','1993346LizDWQ','2575985uEpSGO','2124255mHsbfT'];a252_0x5a90=function(){return _0xaa1dd;};return a252_0x5a90();}(function(_0x470ed2,_0x4cd698){var _0x59d4c5=a252_0x4824,_0x208640=_0x470ed2();while(!![]){try{var _0x49f450=parseInt(_0x59d4c5(0x1ca))/0x1+parseInt(_0x59d4c5(0x1d0))/0x2*(parseInt(_0x59d4c5(0x1cb))/0x3)+-parseInt(_0x59d4c5(0x1cd))/0x4+parseInt(_0x59d4c5(0x1d1))/0x5+parseInt(_0x59d4c5(0x1ce))/0x6+-parseInt(_0x59d4c5(0x1d2))/0x7+-parseInt(_0x59d4c5(0x1cc))/0x8*(parseInt(_0x59d4c5(0x1cf))/0x9);if(_0x49f450===_0x4cd698)break;else _0x208640['push'](_0x208640['shift']());}catch(_0x7a4532){_0x208640['push'](_0x208640['shift']());}}}(a252_0x5a90,0x7a4b6));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "2.4.6-beta.1";
2
- export declare const GIT_TAG = "v2.4.6-beta.1";
3
- export declare const GIT_COMMIT = "5941c82";
4
- export declare const BUILD_TIME = "2026-08-15T10:03:56.982Z";
1
+ export declare const VERSION = "2.4.6-beta.2";
2
+ export declare const GIT_TAG = "v2.4.6-beta.2";
3
+ export declare const GIT_COMMIT = "35318b1";
4
+ export declare const BUILD_TIME = "2026-08-17T01:39:21.684Z";
@@ -1 +1 @@
1
- const a252_0x1c0f15=a252_0x5997;function a252_0x5997(_0x4af745,_0x5de1d3){_0x4af745=_0x4af745-0xcd;const _0x3161e1=a252_0x3161();let _0x599779=_0x3161e1[_0x4af745];return _0x599779;}(function(_0x5290cc,_0x3a7ca5){const _0x485800=a252_0x5997,_0x45747d=_0x5290cc();while(!![]){try{const _0x38f860=-parseInt(_0x485800(0xd1))/0x1+parseInt(_0x485800(0xd6))/0x2*(parseInt(_0x485800(0xd0))/0x3)+parseInt(_0x485800(0xd4))/0x4+parseInt(_0x485800(0xce))/0x5+-parseInt(_0x485800(0xd3))/0x6+parseInt(_0x485800(0xd8))/0x7*(parseInt(_0x485800(0xd7))/0x8)+-parseInt(_0x485800(0xcf))/0x9;if(_0x38f860===_0x3a7ca5)break;else _0x45747d['push'](_0x45747d['shift']());}catch(_0x314dc8){_0x45747d['push'](_0x45747d['shift']());}}}(a252_0x3161,0xaed3b));export const VERSION=a252_0x1c0f15(0xd2);export const GIT_TAG='v2.4.6-beta.1';function a252_0x3161(){const _0x5348b7=['3920970bFAWUe','5011216ERWDmw','5941c82','506cDruTO','720XVmMtX','69111EHhkUr','2026-08-15T10:03:56.982Z','1548760pqAuFV','10633014NfTffj','4533XsHQFs','282377Fpjinh','2.4.6-beta.1'];a252_0x3161=function(){return _0x5348b7;};return a252_0x3161();}export const GIT_COMMIT=a252_0x1c0f15(0xd5);export const BUILD_TIME=a252_0x1c0f15(0xcd);
1
+ const a253_0x2582bb=a253_0x17db;(function(_0x3c4e06,_0x1255c5){const _0x3f9bf9=a253_0x17db,_0x54e82f=_0x3c4e06();while(!![]){try{const _0x343ad7=-parseInt(_0x3f9bf9(0x140))/0x1*(-parseInt(_0x3f9bf9(0x144))/0x2)+parseInt(_0x3f9bf9(0x149))/0x3*(-parseInt(_0x3f9bf9(0x148))/0x4)+-parseInt(_0x3f9bf9(0x147))/0x5*(-parseInt(_0x3f9bf9(0x14c))/0x6)+-parseInt(_0x3f9bf9(0x13f))/0x7*(parseInt(_0x3f9bf9(0x146))/0x8)+parseInt(_0x3f9bf9(0x14b))/0x9+-parseInt(_0x3f9bf9(0x143))/0xa+-parseInt(_0x3f9bf9(0x13d))/0xb*(-parseInt(_0x3f9bf9(0x141))/0xc);if(_0x343ad7===_0x1255c5)break;else _0x54e82f['push'](_0x54e82f['shift']());}catch(_0x51276f){_0x54e82f['push'](_0x54e82f['shift']());}}}(a253_0x52e0,0x732e1));function a253_0x17db(_0x327ea7,_0xbf7f8f){_0x327ea7=_0x327ea7-0x13d;const _0x52e041=a253_0x52e0();let _0x17db8c=_0x52e041[_0x327ea7];return _0x17db8c;}export const VERSION=a253_0x2582bb(0x13e);export const GIT_TAG=a253_0x2582bb(0x142);export const GIT_COMMIT=a253_0x2582bb(0x14a);function a253_0x52e0(){const _0x169e49=['3UYOraa','35318b1','59823ahVoZA','6wFZgXd','4119643xuDmEY','2.4.6-beta.2','2104186XuEtRc','46515eylCiw','24BTRdpc','v2.4.6-beta.2','5136780WmRIiy','2mwdfRI','2026-08-17T01:39:21.684Z','8runOMw','2942475oedgxx','418520PQqweW'];a253_0x52e0=function(){return _0x169e49;};return a253_0x52e0();}export const BUILD_TIME=a253_0x2582bb(0x145);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x4bad53,_0x27a240){var _0x3e1da8=a253_0x27ea,_0x38fa9e=_0x4bad53();while(!![]){try{var _0x3c5c9f=-parseInt(_0x3e1da8(0x1b9))/0x1*(-parseInt(_0x3e1da8(0x1b4))/0x2)+-parseInt(_0x3e1da8(0x1ab))/0x3*(parseInt(_0x3e1da8(0x1ae))/0x4)+-parseInt(_0x3e1da8(0x1b5))/0x5*(-parseInt(_0x3e1da8(0x1ad))/0x6)+parseInt(_0x3e1da8(0x1b1))/0x7+-parseInt(_0x3e1da8(0x1b8))/0x8*(parseInt(_0x3e1da8(0x1b0))/0x9)+parseInt(_0x3e1da8(0x1aa))/0xa+-parseInt(_0x3e1da8(0x1ac))/0xb;if(_0x3c5c9f===_0x27a240)break;else _0x38fa9e['push'](_0x38fa9e['shift']());}catch(_0x329cd8){_0x38fa9e['push'](_0x38fa9e['shift']());}}}(a253_0x5055,0x6f72f));import a253_0x5d97d3 from'chalk';function a253_0x5055(){var _0x2f7eda=['\x20\x20Use\x20','333zxFNCw','1989596lmoozi','green','log','12XivcOF','3131365ojmsBl','bold','\x20--help','98840lhcwEe','4618jzSYtS','\x20to\x20view\x20available\x20commands.','5038310uajvou','3DxTGlw','4675484PocAUH','6AbyjCC','413464KcMRVh'];a253_0x5055=function(){return _0x2f7eda;};return a253_0x5055();}function a253_0x27ea(_0x361777,_0x438140){_0x361777=_0x361777-0x1a9;var _0x505577=a253_0x5055();var _0x27ea46=_0x505577[_0x361777];return _0x27ea46;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x5f5a6e=a253_0x27ea;console[_0x5f5a6e(0x1b3)](),console[_0x5f5a6e(0x1b3)](a253_0x5d97d3[_0x5f5a6e(0x1b2)][_0x5f5a6e(0x1b6)]('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console[_0x5f5a6e(0x1b3)](_0x5f5a6e(0x1af)+a253_0x5d97d3[_0x5f5a6e(0x1b2)]['bold'](CLI_BIN_NAME+_0x5f5a6e(0x1b7))+_0x5f5a6e(0x1a9)),console[_0x5f5a6e(0x1b3)]();}
1
+ (function(_0x3de2a1,_0x54c62b){var _0xb5a60d=a254_0x5d85,_0x1ae62c=_0x3de2a1();while(!![]){try{var _0x20a8a3=parseInt(_0xb5a60d(0x152))/0x1*(parseInt(_0xb5a60d(0x14f))/0x2)+parseInt(_0xb5a60d(0x154))/0x3*(parseInt(_0xb5a60d(0x151))/0x4)+parseInt(_0xb5a60d(0x149))/0x5*(parseInt(_0xb5a60d(0x146))/0x6)+-parseInt(_0xb5a60d(0x14e))/0x7+-parseInt(_0xb5a60d(0x155))/0x8*(parseInt(_0xb5a60d(0x153))/0x9)+parseInt(_0xb5a60d(0x14b))/0xa+parseInt(_0xb5a60d(0x150))/0xb;if(_0x20a8a3===_0x54c62b)break;else _0x1ae62c['push'](_0x1ae62c['shift']());}catch(_0x162d3d){_0x1ae62c['push'](_0x1ae62c['shift']());}}}(a254_0x1eb1,0xd7ec7));function a254_0x5d85(_0x381459,_0x38dcaf){_0x381459=_0x381459-0x146;var _0x1eb1ad=a254_0x1eb1();var _0x5d855e=_0x1eb1ad[_0x381459];return _0x5d855e;}import a254_0x26105c from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x113643=a254_0x5d85;console['log'](),console[_0x113643(0x14c)](a254_0x26105c[_0x113643(0x14d)][_0x113643(0x147)]('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console['log'](_0x113643(0x148)+a254_0x26105c[_0x113643(0x14d)][_0x113643(0x147)](CLI_BIN_NAME+_0x113643(0x14a))+'\x20to\x20view\x20available\x20commands.'),console[_0x113643(0x14c)]();}function a254_0x1eb1(){var _0x2a0f37=['1864vtRnJd','9190062VTEvab','bold','\x20\x20Use\x20','5mxLRvk','\x20--help','5561750PfZHLP','log','green','11035332xMlsbU','64474sofHlq','6285719ZObRBy','1961700TkHDDg','11WUxDnx','59247PFbPmX','6iftIKt'];a254_0x1eb1=function(){return _0x2a0f37;};return a254_0x1eb1();}
@@ -1 +1 @@
1
- (function(_0x506383,_0x254620){const _0x5e44f6=a254_0x422a,_0x4a6ee7=_0x506383();while(!![]){try{const _0x53fb33=-parseInt(_0x5e44f6(0x183))/0x1+-parseInt(_0x5e44f6(0x191))/0x2+parseInt(_0x5e44f6(0x18e))/0x3+parseInt(_0x5e44f6(0x187))/0x4*(-parseInt(_0x5e44f6(0x18b))/0x5)+parseInt(_0x5e44f6(0x18d))/0x6+parseInt(_0x5e44f6(0x188))/0x7+parseInt(_0x5e44f6(0x190))/0x8;if(_0x53fb33===_0x254620)break;else _0x4a6ee7['push'](_0x4a6ee7['shift']());}catch(_0x343232){_0x4a6ee7['push'](_0x4a6ee7['shift']());}}}(a254_0x15fe,0x2724b));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a254_0x422a(_0xffa84b,_0x1c388f){_0xffa84b=_0xffa84b-0x17c;const _0x15fe7d=a254_0x15fe();let _0x422a23=_0x15fe7d[_0xffa84b];return _0x422a23;}function a254_0x15fe(){const _0x5c29d8=['code','installedPath','SOURCE_INVALID','\x20at\x20','Installation\x20failed','warn','176350RlUYes','[BUILTIN_SKILL_INSTALL_','skillVersion','already\x20current','164NbMgeL','958580OakPtq','\x20via\x20skills@latest','installed','35470NMAfsM','error','1081500NrmINr','312480mGHTGo','log','3928152jvqKni','569668bmUHav','changed','FAILED'];a254_0x15fe=function(){return _0x5c29d8;};return a254_0x15fe();}export async function runPostinstall(_0x5be52a={}){const _0x480c49=a254_0x422a,_0x495731=installBuiltinSkill(_0x5be52a);if(_0x495731['ok']){const _0x5bf502=_0x495731[_0x480c49(0x192)]?_0x480c49(0x18a):_0x480c49(0x186),_0x13180a=_0x495731[_0x480c49(0x17e)]?_0x480c49(0x180)+_0x495731['installedPath']:_0x480c49(0x189);return console[_0x480c49(0x18f)]('Rabetbase\x20Built-in\x20Skill\x20'+_0x495731[_0x480c49(0x185)]+'\x20'+_0x5bf502+_0x13180a),_0x495731;}const _0x24055e=_0x480c49(0x184)+(_0x495731[_0x480c49(0x17d)]??_0x480c49(0x17c))+']\x20'+(_0x495731[_0x480c49(0x18c)]??_0x480c49(0x181))+'.\x20'+('Repair\x20with:\x20'+_0x495731['repairCommand']);if(_0x495731[_0x480c49(0x17d)]===_0x480c49(0x17f))throw new Error(_0x24055e);return console[_0x480c49(0x182)](_0x24055e),_0x495731;}
1
+ (function(_0x4e097e,_0x296145){const _0x24b42a=a255_0x1bd0,_0x32c07b=_0x4e097e();while(!![]){try{const _0x251852=-parseInt(_0x24b42a(0xb4))/0x1+-parseInt(_0x24b42a(0xa5))/0x2+-parseInt(_0x24b42a(0xa7))/0x3+parseInt(_0x24b42a(0xa6))/0x4*(parseInt(_0x24b42a(0xaa))/0x5)+-parseInt(_0x24b42a(0xb2))/0x6*(-parseInt(_0x24b42a(0xb3))/0x7)+parseInt(_0x24b42a(0xb5))/0x8*(-parseInt(_0x24b42a(0xac))/0x9)+parseInt(_0x24b42a(0xba))/0xa;if(_0x251852===_0x296145)break;else _0x32c07b['push'](_0x32c07b['shift']());}catch(_0x24aa99){_0x32c07b['push'](_0x32c07b['shift']());}}}(a255_0x279e,0x77773));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a255_0x1bd0(_0x4fa226,_0x29d1f9){_0x4fa226=_0x4fa226-0xa5;const _0x279ef1=a255_0x279e();let _0x1bd0d6=_0x279ef1[_0x4fa226];return _0x1bd0d6;}function a255_0x279e(){const _0x2dd074=['code','70826yncGUT','144CjsUhF','2602731GTAUjb','repairCommand','Rabetbase\x20Built-in\x20Skill\x20','56495HDwhjE','Repair\x20with:\x20','447399YqcEjX','changed','SOURCE_INVALID','log','error','\x20at\x20','127866WIVsFZ','77HfubQV','33455EMTQfJ','88HrBBao','warn','\x20via\x20skills@latest','installed','Installation\x20failed','13314120FBTRyD','[BUILTIN_SKILL_INSTALL_'];a255_0x279e=function(){return _0x2dd074;};return a255_0x279e();}export async function runPostinstall(_0x58d581={}){const _0x2754c9=a255_0x1bd0,_0x447f5d=installBuiltinSkill(_0x58d581);if(_0x447f5d['ok']){const _0x5d7f6b=_0x447f5d[_0x2754c9(0xad)]?_0x2754c9(0xb8):'already\x20current',_0x3dcd9e=_0x447f5d['installedPath']?_0x2754c9(0xb1)+_0x447f5d['installedPath']:_0x2754c9(0xb7);return console[_0x2754c9(0xaf)](_0x2754c9(0xa9)+_0x447f5d['skillVersion']+'\x20'+_0x5d7f6b+_0x3dcd9e),_0x447f5d;}const _0x393679=_0x2754c9(0xbb)+(_0x447f5d[_0x2754c9(0xbc)]??'FAILED')+']\x20'+(_0x447f5d[_0x2754c9(0xb0)]??_0x2754c9(0xb9))+'.\x20'+(_0x2754c9(0xab)+_0x447f5d[_0x2754c9(0xa8)]);if(_0x447f5d[_0x2754c9(0xbc)]===_0x2754c9(0xae))throw new Error(_0x393679);return console[_0x2754c9(0xb6)](_0x393679),_0x447f5d;}
@@ -1 +1 @@
1
- (function(_0x582f1f,_0x251d48){const _0x1c0723=a255_0x10d9,_0x1728e5=_0x582f1f();while(!![]){try{const _0x59bbd5=parseInt(_0x1c0723(0xa5))/0x1+parseInt(_0x1c0723(0xab))/0x2*(parseInt(_0x1c0723(0xb0))/0x3)+-parseInt(_0x1c0723(0xa6))/0x4*(-parseInt(_0x1c0723(0xa2))/0x5)+parseInt(_0x1c0723(0xa4))/0x6+-parseInt(_0x1c0723(0xa9))/0x7+-parseInt(_0x1c0723(0xae))/0x8+-parseInt(_0x1c0723(0xad))/0x9*(parseInt(_0x1c0723(0xac))/0xa);if(_0x59bbd5===_0x251d48)break;else _0x1728e5['push'](_0x1728e5['shift']());}catch(_0x1f09cb){_0x1728e5['push'](_0x1728e5['shift']());}}}(a255_0x4e54,0xba31e));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x2f90ff,_0x230b49,_0x4eac1){const _0x5ccb11=a255_0x10d9,_0x2d6fa3=normalizeText(_0x2f90ff[_0x5ccb11(0xb2)],DESCRIPTION_MAX_LENGTH),_0x9c0802=_0x2d6fa3||normalizeText(defaultDescription(requireWriteRisk(_0x2f90ff),_0x230b49),DESCRIPTION_MAX_LENGTH);return{'operation':_0x230b49,'risk':requireWriteRisk(_0x2f90ff),'description':_0x9c0802,..._0x4eac1?{'signal':_0x4eac1}:{}};}function a255_0x10d9(_0x5a0652,_0x22326b){_0x5a0652=_0x5a0652-0xa0;const _0x4e54fc=a255_0x4e54();let _0x10d986=_0x4e54fc[_0x5a0652];return _0x10d986;}function requireWriteRisk(_0x5bb0cd){const _0x1003ed=a255_0x10d9;if(_0x5bb0cd[_0x1003ed(0xaf)]===_0x1003ed(0xa8)||_0x5bb0cd['risk']==='high-risk-write')return _0x5bb0cd[_0x1003ed(0xaf)];throw new Error(_0x1003ed(0xa0));}function defaultDescription(_0x3b703e,_0x54160b){const _0x3903ac=a255_0x10d9;if(_0x3b703e===_0x3903ac(0xb4))return _0x3903ac(0xb3)+_0x54160b+';该操作可能覆盖、删除或明显影响线上运行行为。';return _0x3903ac(0xa1)+_0x54160b+_0x3903ac(0xa3);}function a255_0x4e54(){const _0x347854=['1646778NLfXal','slice','308842HwgYGS','10167320GKAMrI','9JQCxVV','658568lHHtDt','risk','6RmrRUU','string','confirmationDescription','将执行高风险写入操作\x20','high-risk-write','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','将执行写入操作\x20','5gCzkWm',';该操作可能创建或修改业务数据或本地配置。','1392006AMruxS','839597bMfeRp','2866084LAHcGd','replace','write'];a255_0x4e54=function(){return _0x347854;};return a255_0x4e54();}function normalizeText(_0x46db0a,_0x1f76e2){const _0x11c592=a255_0x10d9;if(typeof _0x46db0a!==_0x11c592(0xb1))return'';return _0x46db0a['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x11c592(0xa7)](/\s+/g,'\x20')['trim']()[_0x11c592(0xaa)](0x0,_0x1f76e2);}
1
+ (function(_0x30457f,_0x55552d){const _0x8db10a=a256_0x3c44,_0x355190=_0x30457f();while(!![]){try{const _0x3f19f1=parseInt(_0x8db10a(0x1cd))/0x1*(parseInt(_0x8db10a(0x1d1))/0x2)+-parseInt(_0x8db10a(0x1e1))/0x3*(-parseInt(_0x8db10a(0x1db))/0x4)+parseInt(_0x8db10a(0x1ce))/0x5+parseInt(_0x8db10a(0x1d9))/0x6+-parseInt(_0x8db10a(0x1dc))/0x7+-parseInt(_0x8db10a(0x1d4))/0x8*(parseInt(_0x8db10a(0x1d6))/0x9)+parseInt(_0x8db10a(0x1cf))/0xa*(-parseInt(_0x8db10a(0x1d7))/0xb);if(_0x3f19f1===_0x55552d)break;else _0x355190['push'](_0x355190['shift']());}catch(_0x6a31f7){_0x355190['push'](_0x355190['shift']());}}}(a256_0x76b6,0xef106));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x2c9c43,_0x52e3da,_0x31de13){const _0x25128d=a256_0x3c44,_0x50e9c6=normalizeText(_0x2c9c43[_0x25128d(0x1d0)],DESCRIPTION_MAX_LENGTH),_0x5cb97b=_0x50e9c6||normalizeText(defaultDescription(requireWriteRisk(_0x2c9c43),_0x52e3da),DESCRIPTION_MAX_LENGTH);return{'operation':_0x52e3da,'risk':requireWriteRisk(_0x2c9c43),'description':_0x5cb97b,..._0x31de13?{'signal':_0x31de13}:{}};}function a256_0x3c44(_0x39cc80,_0x4beabe){_0x39cc80=_0x39cc80-0x1cc;const _0x76b69e=a256_0x76b6();let _0x3c44ba=_0x76b69e[_0x39cc80];return _0x3c44ba;}function requireWriteRisk(_0x552970){const _0x564dac=a256_0x3c44;if(_0x552970['risk']===_0x564dac(0x1dd)||_0x552970[_0x564dac(0x1d5)]===_0x564dac(0x1df))return _0x552970['risk'];throw new Error(_0x564dac(0x1cc));}function defaultDescription(_0x177439,_0x1ef974){const _0xa67f75=a256_0x3c44;if(_0x177439===_0xa67f75(0x1df))return'将执行高风险写入操作\x20'+_0x1ef974+_0xa67f75(0x1d2);return _0xa67f75(0x1de)+_0x1ef974+_0xa67f75(0x1e2);}function a256_0x76b6(){const _0x56a210=['10691928gzAlpo','trim','4Pdfgux','4857223bsGjNh','write','将执行写入操作\x20','high-risk-write','string','1980144LksYNS',';该操作可能创建或修改业务数据或本地配置。','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','65909kDKyIP','1793315TWDpVN','2287790DcipNJ','confirmationDescription','2wwHPIx',';该操作可能覆盖、删除或明显影响线上运行行为。','slice','318168fEpCOg','risk','63bqOhKn','44hIdCoL','replace'];a256_0x76b6=function(){return _0x56a210;};return a256_0x76b6();}function normalizeText(_0x2fb20d,_0x95ab8c){const _0x371992=a256_0x3c44;if(typeof _0x2fb20d!==_0x371992(0x1e0))return'';return _0x2fb20d['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x371992(0x1d8)](/\s+/g,'\x20')[_0x371992(0x1da)]()[_0x371992(0x1d3)](0x0,_0x95ab8c);}
@@ -1 +1 @@
1
- (function(_0x5025c6,_0x1f8e63){var _0x271840=a256_0x37de,_0xc14063=_0x5025c6();while(!![]){try{var _0x2a8415=parseInt(_0x271840(0x11f))/0x1+parseInt(_0x271840(0x128))/0x2+parseInt(_0x271840(0x12d))/0x3+parseInt(_0x271840(0x12b))/0x4+-parseInt(_0x271840(0x129))/0x5+-parseInt(_0x271840(0x126))/0x6*(-parseInt(_0x271840(0x120))/0x7)+-parseInt(_0x271840(0x122))/0x8*(parseInt(_0x271840(0x12c))/0x9);if(_0x2a8415===_0x1f8e63)break;else _0xc14063['push'](_0xc14063['shift']());}catch(_0x3dcc1f){_0xc14063['push'](_0xc14063['shift']());}}}(a256_0x2318,0x4293e));export function canonicalRabetbaseOperation(_0x4822fd){var _0x159aa5=a256_0x37de;return[_0x4822fd[_0x159aa5(0x12a)],..._0x4822fd[_0x159aa5(0x127)][_0x159aa5(0x124)]()['split'](/\s+/)][_0x159aa5(0x123)](Boolean)['join']('.');}function a256_0x2318(){var _0x262706=['374174gCZCxt','13307moOeEI','write','17528gPRSJB','filter','trim','risk','1614SrWLKS','command','402340ZjUbip','1842590wqKKrb','service','1400848Pawrzy','5454dNUqXe','1596123FwNHKW'];a256_0x2318=function(){return _0x262706;};return a256_0x2318();}function a256_0x37de(_0x3e9d8d,_0x3bbaad){_0x3e9d8d=_0x3e9d8d-0x11f;var _0x23187b=a256_0x2318();var _0x37deb0=_0x23187b[_0x3e9d8d];return _0x37deb0;}export function createRabetbaseWriteMetadata(_0x4e7d2c,_0x199ba9,_0x129a60,_0x214eed){var _0xa4d98f=a256_0x37de;if(_0x214eed||_0x129a60['ok']!==!![]||_0x4e7d2c[_0xa4d98f(0x125)]!==_0xa4d98f(0x121)&&_0x4e7d2c[_0xa4d98f(0x125)]!=='high-risk-write')return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':'rabetbase.write.completed','operation':_0x199ba9,'risk':_0x4e7d2c[_0xa4d98f(0x125)]}}};}
1
+ function a257_0x1b14(_0x1e5a63,_0x45d2e0){_0x1e5a63=_0x1e5a63-0x157;var _0x4e8425=a257_0x4e84();var _0x1b1420=_0x4e8425[_0x1e5a63];return _0x1b1420;}(function(_0x5300af,_0x40ec4b){var _0x2d2f75=a257_0x1b14,_0x1e65f4=_0x5300af();while(!![]){try{var _0x186378=-parseInt(_0x2d2f75(0x168))/0x1+parseInt(_0x2d2f75(0x15a))/0x2*(parseInt(_0x2d2f75(0x164))/0x3)+parseInt(_0x2d2f75(0x166))/0x4*(-parseInt(_0x2d2f75(0x163))/0x5)+parseInt(_0x2d2f75(0x15f))/0x6+parseInt(_0x2d2f75(0x167))/0x7*(-parseInt(_0x2d2f75(0x162))/0x8)+-parseInt(_0x2d2f75(0x169))/0x9+parseInt(_0x2d2f75(0x15e))/0xa*(parseInt(_0x2d2f75(0x165))/0xb);if(_0x186378===_0x40ec4b)break;else _0x1e65f4['push'](_0x1e65f4['shift']());}catch(_0x4771a7){_0x1e65f4['push'](_0x1e65f4['shift']());}}}(a257_0x4e84,0xecf2d));export function canonicalRabetbaseOperation(_0x2794fe){var _0x101ea9=a257_0x1b14;return[_0x2794fe[_0x101ea9(0x159)],..._0x2794fe['command'][_0x101ea9(0x15d)]()[_0x101ea9(0x157)](/\s+/)][_0x101ea9(0x158)](Boolean)[_0x101ea9(0x15c)]('.');}export function createRabetbaseWriteMetadata(_0xf6cddc,_0x544045,_0x2d0b61,_0x19c718){var _0x3f3eab=a257_0x1b14;if(_0x19c718||_0x2d0b61['ok']!==!![]||_0xf6cddc['risk']!==_0x3f3eab(0x15b)&&_0xf6cddc[_0x3f3eab(0x161)]!==_0x3f3eab(0x160))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':'rabetbase.write.completed','operation':_0x544045,'risk':_0xf6cddc[_0x3f3eab(0x161)]}}};}function a257_0x4e84(){var _0x3de1fb=['1048ZRitfq','5vKfjYU','60nUCudn','913IXhSpm','4719452AgmuZy','33159FlVwld','1237523idfiBX','16540290LSKvHj','split','filter','service','109218AWtnFq','write','join','trim','378710uYKyes','9664866ZdrVKn','high-risk-write','risk'];a257_0x4e84=function(){return _0x3de1fb;};return a257_0x4e84();}
@@ -1 +1 @@
1
- function a257_0x3974(){const _0x3e9361=['60xVhzph','rawFlags','confirm','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','dryRun','AbortError','aborted','542160mwtxsE','1534761Ydhqdc','risk','result','10hLeklf','execute','68020uHciGa','message','definition','4864908aHrhtZ','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','9544NJilVk','5138tOUzKn','command','11ejWmmI','write','reason','data','riskLevel','isNonInteractive','962756fKWkbf','high-risk-write','3LZSqeN','340018eAAgxY','dry-run','present','confirmation','signal','yes','args','format','Rabetbase\x20invocation\x20aborted.'];a257_0x3974=function(){return _0x3e9361;};return a257_0x3974();}(function(_0x29a4b4,_0x143952){const _0x502089=a257_0x3c55,_0x28f859=_0x29a4b4();while(!![]){try{const _0x38d420=-parseInt(_0x502089(0x80))/0x1+-parseInt(_0x502089(0x97))/0x2*(-parseInt(_0x502089(0x96))/0x3)+parseInt(_0x502089(0x94))/0x4+-parseInt(_0x502089(0x86))/0x5*(-parseInt(_0x502089(0x79))/0x6)+parseInt(_0x502089(0x8c))/0x7*(parseInt(_0x502089(0x8b))/0x8)+parseInt(_0x502089(0x81))/0x9*(parseInt(_0x502089(0x84))/0xa)+-parseInt(_0x502089(0x8e))/0xb*(parseInt(_0x502089(0x89))/0xc);if(_0x38d420===_0x143952)break;else _0x28f859['push'](_0x28f859['shift']());}catch(_0x51cdfc){_0x28f859['push'](_0x28f859['shift']());}}}(a257_0x3974,0x9d8f0));function a257_0x3c55(_0x462796,_0x274992){_0x462796=_0x462796-0x72;const _0x3974a1=a257_0x3974();let _0x3c5553=_0x3974a1[_0x462796];return _0x3c5553;}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';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0xd5fad4,command:_0x258ef0,risk:_0x4daa88,dryRun:_0x27ec05}){const _0x7d29af=a257_0x3c55;return JSON['stringify']({'ok':_0xd5fad4['ok'],'command':_0x258ef0,'risk':_0x4daa88,..._0x27ec05?{'dryRun':!![]}:{},..._0xd5fad4[_0x7d29af(0x91)]!==undefined?{'data':_0xd5fad4[_0x7d29af(0x91)]}:{},..._0xd5fad4[_0x7d29af(0x87)]?{'message':_0xd5fad4[_0x7d29af(0x87)]}:{}});}};export async function invokeRabetbase(_0x19569e,_0x50dd3e){const _0x3f5513=a257_0x3c55;throwIfAborted(_0x50dd3e[_0x3f5513(0x74)]);const _0x32e1d2=await resolveRabetbaseInvocation(_0x19569e),_0x3fbb49=canonicalRabetbaseOperation(_0x32e1d2['definition']);return await confirmWriteBeforeQueue(_0x32e1d2[_0x3f5513(0x88)],_0x32e1d2[_0x3f5513(0x7a)],_0x3fbb49,_0x50dd3e),runSerialized(async()=>{const _0x4759db=_0x3f5513,_0x2cc322={};try{throwIfAborted(_0x50dd3e[_0x4759db(0x74)]);const _0x3bb674=buildConfigFromFlags(_0x32e1d2[_0x4759db(0x7a)]);await initGlobalEnvironment(_0x3bb674);const _0xeabd29=createPipelineEnv(_0x3bb674,{..._0x32e1d2['rawFlags'],'yes':_0x32e1d2['definition']['risk']===_0x4759db(0x95)?!![]:_0x32e1d2[_0x4759db(0x7a)][_0x4759db(0x75)],'nonInteractive':!![]},_0x32e1d2[_0x4759db(0x76)]);_0xeabd29[_0x4759db(0x93)]=!![],_0xeabd29[_0x4759db(0x92)]=_0x4759db(0x95);const _0x5406ea=withAbortSignal(_0x32e1d2[_0x4759db(0x88)],_0x50dd3e['signal']),_0x9c0cc7=createRabetbaseRunnerAdapter({'formatOutput'(_0x35c7cb,_0x2af478){const _0x173dcb=_0x4759db;_0x2cc322[_0x173dcb(0x83)]=_0x35c7cb,_0x2cc322[_0x173dcb(0x8d)]=_0x2af478[_0x173dcb(0x8d)],_0x2cc322[_0x173dcb(0x82)]=_0x2af478[_0x173dcb(0x82)],_0x2cc322['format']=_0x2af478[_0x173dcb(0x77)],_0x2cc322[_0x173dcb(0x7d)]=_0x2af478[_0x173dcb(0x7d)]===!![];},async 'confirmHighRisk'(){const _0x41cbd4=_0x4759db;throw new Error(_0x41cbd4(0x8a));}});await runCommand(_0x5406ea,_0xeabd29,_0x9c0cc7);if(!_0x2cc322[_0x4759db(0x83)]||!_0x2cc322[_0x4759db(0x8d)]||!_0x2cc322[_0x4759db(0x82)]||!_0x2cc322[_0x4759db(0x77)])throw new Error(_0x4759db(0x7c));const _0x1eb6ed=_0x2cc322['dryRun']===!![],_0x3ebcab=_0x50dd3e['presentation']??defaultPresentation,_0x27c354={'result':_0x2cc322[_0x4759db(0x83)],'command':_0x2cc322[_0x4759db(0x8d)],'operation':_0x3fbb49,'risk':_0x2cc322[_0x4759db(0x82)],'format':_0x2cc322[_0x4759db(0x77)],'dryRun':_0x1eb6ed},_0x152436=createRabetbaseWriteMetadata(_0x32e1d2['definition'],_0x3fbb49,_0x2cc322[_0x4759db(0x83)],_0x1eb6ed);let _0x54652e;try{_0x54652e=await _0x3ebcab[_0x4759db(0x72)](_0x27c354);}catch(_0x5469c0){if(!_0x152436||_0x3ebcab===defaultPresentation)throw _0x5469c0;_0x54652e=await defaultPresentation['present'](_0x27c354);}return{'operation':_0x3fbb49,'risk':_0x2cc322[_0x4759db(0x82)],'mode':_0x1eb6ed?_0x4759db(0x98):_0x4759db(0x85),'result':_0x2cc322[_0x4759db(0x83)],'output':_0x54652e,..._0x152436?{'metadata':_0x152436}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x32ab1e,_0x2f886c,_0x37ad62,_0x1ead5c){const _0x196003=a257_0x3c55;if(_0x2f886c[_0x196003(0x7d)]===!![]||_0x32ab1e['risk']!==_0x196003(0x8f)&&_0x32ab1e[_0x196003(0x82)]!==_0x196003(0x95))return;await _0x1ead5c[_0x196003(0x73)][_0x196003(0x7b)](buildRabetbaseConfirmationRequest(_0x32ab1e,_0x37ad62,_0x1ead5c[_0x196003(0x74)]));}function withAbortSignal(_0x2daf2d,_0x392f71){return{..._0x2daf2d,async 'execute'(_0x30de65){const _0x5c178e=a257_0x3c55;return throwIfAborted(_0x392f71),_0x2daf2d[_0x5c178e(0x85)](_0x30de65);}};}function throwIfAborted(_0x500cb2){const _0xf790ff=a257_0x3c55;if(_0x500cb2?.[_0xf790ff(0x7f)])throw _0x500cb2[_0xf790ff(0x90)]instanceof Error?_0x500cb2['reason']:new DOMException(_0xf790ff(0x78),_0xf790ff(0x7e));}
1
+ (function(_0x483678,_0x29cd0b){const _0x5947ad=a258_0x107d,_0x938e24=_0x483678();while(!![]){try{const _0x3d6866=-parseInt(_0x5947ad(0xd7))/0x1*(-parseInt(_0x5947ad(0xf5))/0x2)+-parseInt(_0x5947ad(0xe8))/0x3*(parseInt(_0x5947ad(0xed))/0x4)+-parseInt(_0x5947ad(0xe0))/0x5+parseInt(_0x5947ad(0xe9))/0x6*(parseInt(_0x5947ad(0xf0))/0x7)+parseInt(_0x5947ad(0xdc))/0x8+parseInt(_0x5947ad(0xfa))/0x9+-parseInt(_0x5947ad(0xe5))/0xa*(parseInt(_0x5947ad(0xf9))/0xb);if(_0x3d6866===_0x29cd0b)break;else _0x938e24['push'](_0x938e24['shift']());}catch(_0x34272f){_0x938e24['push'](_0x938e24['shift']());}}}(a258_0x2bb7,0xca401));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';function a258_0x107d(_0x367353,_0x360ea7){_0x367353=_0x367353-0xd7;const _0x2bb740=a258_0x2bb7();let _0x107d28=_0x2bb740[_0x367353];return _0x107d28;}function a258_0x2bb7(){const _0xc06f32=['confirm','8303752tIHLhc','format','dry-run','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','1478340XHLvce','result','aborted','presentation','write','8917890nKEPyq','isNonInteractive','command','73434RDZXLj','6Cvedmg','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','definition','data','84GBZmaa','reason','present','4210801TCxqZh','rawFlags','AbortError','risk','riskLevel','1832238THTKZc','execute','high-risk-write','dryRun','22QsHDWu','7794630BSzeiq','1xZYWRK','message','confirmation','signal'];a258_0x2bb7=function(){return _0xc06f32;};return a258_0x2bb7();}import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x5e3ded,command:_0x104ccc,risk:_0x2bdad9,dryRun:_0x5701d9}){const _0x45864c=a258_0x107d;return JSON['stringify']({'ok':_0x5e3ded['ok'],'command':_0x104ccc,'risk':_0x2bdad9,..._0x5701d9?{'dryRun':!![]}:{},..._0x5e3ded[_0x45864c(0xec)]!==undefined?{'data':_0x5e3ded[_0x45864c(0xec)]}:{},..._0x5e3ded['message']?{'message':_0x5e3ded[_0x45864c(0xd8)]}:{}});}};export async function invokeRabetbase(_0x373c7d,_0x3c63bb){const _0x2bd8a2=a258_0x107d;throwIfAborted(_0x3c63bb[_0x2bd8a2(0xda)]);const _0x19593a=await resolveRabetbaseInvocation(_0x373c7d),_0xbcab95=canonicalRabetbaseOperation(_0x19593a['definition']);return await confirmWriteBeforeQueue(_0x19593a[_0x2bd8a2(0xeb)],_0x19593a[_0x2bd8a2(0xf1)],_0xbcab95,_0x3c63bb),runSerialized(async()=>{const _0x5d09ca=_0x2bd8a2,_0x30a95f={};try{throwIfAborted(_0x3c63bb[_0x5d09ca(0xda)]);const _0xc9c9a3=buildConfigFromFlags(_0x19593a['rawFlags']);await initGlobalEnvironment(_0xc9c9a3);const _0x7b4af9=createPipelineEnv(_0xc9c9a3,{..._0x19593a[_0x5d09ca(0xf1)],'yes':_0x19593a[_0x5d09ca(0xeb)][_0x5d09ca(0xf3)]===_0x5d09ca(0xf7)?!![]:_0x19593a[_0x5d09ca(0xf1)]['yes'],'nonInteractive':!![]},_0x19593a['args']);_0x7b4af9[_0x5d09ca(0xe6)]=!![],_0x7b4af9[_0x5d09ca(0xf4)]=_0x5d09ca(0xf7);const _0x2f428c=withAbortSignal(_0x19593a[_0x5d09ca(0xeb)],_0x3c63bb['signal']),_0x1ac91b=createRabetbaseRunnerAdapter({'formatOutput'(_0x1458fa,_0x5a1362){const _0x8790fa=_0x5d09ca;_0x30a95f[_0x8790fa(0xe1)]=_0x1458fa,_0x30a95f[_0x8790fa(0xe7)]=_0x5a1362[_0x8790fa(0xe7)],_0x30a95f[_0x8790fa(0xf3)]=_0x5a1362[_0x8790fa(0xf3)],_0x30a95f[_0x8790fa(0xdd)]=_0x5a1362['format'],_0x30a95f[_0x8790fa(0xf8)]=_0x5a1362[_0x8790fa(0xf8)]===!![];},async 'confirmHighRisk'(){const _0x48994c=_0x5d09ca;throw new Error(_0x48994c(0xea));}});await runCommand(_0x2f428c,_0x7b4af9,_0x1ac91b);if(!_0x30a95f[_0x5d09ca(0xe1)]||!_0x30a95f[_0x5d09ca(0xe7)]||!_0x30a95f[_0x5d09ca(0xf3)]||!_0x30a95f['format'])throw new Error(_0x5d09ca(0xdf));const _0x5ae995=_0x30a95f[_0x5d09ca(0xf8)]===!![],_0x59f9f9=_0x3c63bb[_0x5d09ca(0xe3)]??defaultPresentation,_0x26f8ad={'result':_0x30a95f[_0x5d09ca(0xe1)],'command':_0x30a95f[_0x5d09ca(0xe7)],'operation':_0xbcab95,'risk':_0x30a95f[_0x5d09ca(0xf3)],'format':_0x30a95f[_0x5d09ca(0xdd)],'dryRun':_0x5ae995},_0x14e9d0=createRabetbaseWriteMetadata(_0x19593a[_0x5d09ca(0xeb)],_0xbcab95,_0x30a95f[_0x5d09ca(0xe1)],_0x5ae995);let _0x3fb530;try{_0x3fb530=await _0x59f9f9['present'](_0x26f8ad);}catch(_0x50703f){if(!_0x14e9d0||_0x59f9f9===defaultPresentation)throw _0x50703f;_0x3fb530=await defaultPresentation[_0x5d09ca(0xef)](_0x26f8ad);}return{'operation':_0xbcab95,'risk':_0x30a95f[_0x5d09ca(0xf3)],'mode':_0x5ae995?_0x5d09ca(0xde):_0x5d09ca(0xf6),'result':_0x30a95f[_0x5d09ca(0xe1)],'output':_0x3fb530,..._0x14e9d0?{'metadata':_0x14e9d0}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x3d2b6c,_0x22afdf,_0x264bf8,_0x5185c8){const _0x548410=a258_0x107d;if(_0x22afdf[_0x548410(0xf8)]===!![]||_0x3d2b6c[_0x548410(0xf3)]!==_0x548410(0xe4)&&_0x3d2b6c[_0x548410(0xf3)]!==_0x548410(0xf7))return;await _0x5185c8[_0x548410(0xd9)][_0x548410(0xdb)](buildRabetbaseConfirmationRequest(_0x3d2b6c,_0x264bf8,_0x5185c8[_0x548410(0xda)]));}function withAbortSignal(_0x52b112,_0x2db501){return{..._0x52b112,async 'execute'(_0x22574a){const _0x3a0866=a258_0x107d;return throwIfAborted(_0x2db501),_0x52b112[_0x3a0866(0xf6)](_0x22574a);}};}function throwIfAborted(_0x532060){const _0x4377b6=a258_0x107d;if(_0x532060?.[_0x4377b6(0xe2)])throw _0x532060[_0x4377b6(0xee)]instanceof Error?_0x532060[_0x4377b6(0xee)]:new DOMException('Rabetbase\x20invocation\x20aborted.',_0x4377b6(0xf2));}
@@ -1 +1 @@
1
- const a258_0x3c3c1a=a258_0x4422;function a258_0x44ce(){const _0x3f38b3=['276fSBzGu','2424cLZUMe','27leIVLc','15PzWaRW','4lTHUiZ','117447khjCgH','2833080yUbwih','78395PWAmWr','1247214WuxOlu','resolve','21QMHcGE','266156ThgWfV','19411rpbxGk','6711783KymLLz'];a258_0x44ce=function(){return _0x3f38b3;};return a258_0x44ce();}(function(_0xe8b4aa,_0x2846ea){const _0x39ba53=a258_0x4422,_0x3554ea=_0xe8b4aa();while(!![]){try{const _0x487cae=parseInt(_0x39ba53(0x1ee))/0x1*(-parseInt(_0x39ba53(0x1eb))/0x2)+parseInt(_0x39ba53(0x1f1))/0x3*(parseInt(_0x39ba53(0x1f2))/0x4)+-parseInt(_0x39ba53(0x1ea))/0x5*(parseInt(_0x39ba53(0x1ef))/0x6)+parseInt(_0x39ba53(0x1f3))/0x7*(-parseInt(_0x39ba53(0x1e8))/0x8)+-parseInt(_0x39ba53(0x1e9))/0x9*(-parseInt(_0x39ba53(0x1ed))/0xa)+parseInt(_0x39ba53(0x1ec))/0xb*(parseInt(_0x39ba53(0x1e7))/0xc)+parseInt(_0x39ba53(0x1f4))/0xd;if(_0x487cae===_0x2846ea)break;else _0x3554ea['push'](_0x3554ea['shift']());}catch(_0x21aed8){_0x3554ea['push'](_0x3554ea['shift']());}}}(a258_0x44ce,0x6f8ef));let tail=Promise[a258_0x3c3c1a(0x1f0)]();function a258_0x4422(_0x5b6081,_0xbac1f7){_0x5b6081=_0x5b6081-0x1e7;const _0x44ce9d=a258_0x44ce();let _0x442243=_0x44ce9d[_0x5b6081];return _0x442243;}export async function runSerialized(_0x642655){const _0x3f05ea=tail;let _0x9dff9f;tail=new Promise(_0x700d5d=>{_0x9dff9f=_0x700d5d;}),await _0x3f05ea['catch'](()=>undefined);try{return await _0x642655();}finally{_0x9dff9f();}}
1
+ function a259_0x1500(){const _0x28916a=['10wOljzb','52648owrEqG','810134hJWqop','477AqORFt','resolve','8WVizEt','10121771OLepvT','1968662ITETWu','2399127ABArCC','431571DTOwAf','935095tANnrQ','54ClxaVM','catch'];a259_0x1500=function(){return _0x28916a;};return a259_0x1500();}const a259_0x41c9fd=a259_0x189d;function a259_0x189d(_0x533df6,_0x4b5e94){_0x533df6=_0x533df6-0x1e3;const _0x1500ad=a259_0x1500();let _0x189d8c=_0x1500ad[_0x533df6];return _0x189d8c;}(function(_0x50aec5,_0x101fe8){const _0xd34ba=a259_0x189d,_0x3ae133=_0x50aec5();while(!![]){try{const _0x1e8366=-parseInt(_0xd34ba(0x1ec))/0x1+-parseInt(_0xd34ba(0x1e4))/0x2+parseInt(_0xd34ba(0x1e5))/0x3+parseInt(_0xd34ba(0x1ef))/0x4*(parseInt(_0xd34ba(0x1e7))/0x5)+parseInt(_0xd34ba(0x1e8))/0x6*(parseInt(_0xd34ba(0x1e6))/0x7)+parseInt(_0xd34ba(0x1eb))/0x8*(-parseInt(_0xd34ba(0x1ed))/0x9)+-parseInt(_0xd34ba(0x1ea))/0xa*(-parseInt(_0xd34ba(0x1e3))/0xb);if(_0x1e8366===_0x101fe8)break;else _0x3ae133['push'](_0x3ae133['shift']());}catch(_0x58a766){_0x3ae133['push'](_0x3ae133['shift']());}}}(a259_0x1500,0x7b6b7));let tail=Promise[a259_0x41c9fd(0x1ee)]();export async function runSerialized(_0x1a0b45){const _0x4a078a=a259_0x41c9fd,_0x2eea9e=tail;let _0x19cf45;tail=new Promise(_0x121d7c=>{_0x19cf45=_0x121d7c;}),await _0x2eea9e[_0x4a078a(0x1e9)](()=>undefined);try{return await _0x1a0b45();}finally{_0x19cf45();}}
@@ -1 +1 @@
1
- function a259_0xf866(_0x31d10c,_0x5f1a62){_0x31d10c=_0x31d10c-0xe3;const _0x5c9c0f=a259_0x5c9c();let _0xf86694=_0x5c9c0f[_0x31d10c];return _0xf86694;}(function(_0x7d46bf,_0x43b4d5){const _0x27a136=a259_0xf866,_0x53f4e3=_0x7d46bf();while(!![]){try{const _0x50a8f7=-parseInt(_0x27a136(0xe7))/0x1*(parseInt(_0x27a136(0xe8))/0x2)+parseInt(_0x27a136(0xfd))/0x3*(parseInt(_0x27a136(0xfb))/0x4)+-parseInt(_0x27a136(0xf6))/0x5*(-parseInt(_0x27a136(0xfe))/0x6)+parseInt(_0x27a136(0xef))/0x7*(-parseInt(_0x27a136(0xfc))/0x8)+-parseInt(_0x27a136(0xf5))/0x9*(parseInt(_0x27a136(0xf8))/0xa)+parseInt(_0x27a136(0xec))/0xb*(parseInt(_0x27a136(0xf2))/0xc)+-parseInt(_0x27a136(0xf1))/0xd*(parseInt(_0x27a136(0xf3))/0xe);if(_0x50a8f7===_0x43b4d5)break;else _0x53f4e3['push'](_0x53f4e3['shift']());}catch(_0x393a0e){_0x53f4e3['push'](_0x53f4e3['shift']());}}}(a259_0x5c9c,0x75a59));import a259_0x1e47bd from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a259_0x5c9c(){const _0x22c3f9=['flags','wildcardDef','unknownCommand','188639eGLoMq','join','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','14pDVYGX','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','41548fAIVnH','432hFWGZj','28YpQIpw','hint','33102VsxxSP','3701350CFRRqH','run','200ndpPRa','defaultCommand','slice','4xvVOXf','1911680anONtb','148737NAreZq','6cEIBjH','validation','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','message','967DNWywf','760NFqdsT'];a259_0x5c9c=function(){return _0x22c3f9;};return a259_0x5c9c();}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveRabetbaseInvocation(_0x326dfd){const _0x2cbfeb=a259_0xf866,_0x58ee93=a259_0x1e47bd('',{'importMeta':import.meta,'argv':[..._0x326dfd],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x2a436f=[..._0x58ee93['input']],_0x407ca4=_0x58ee93[_0x2cbfeb(0xe9)],_0x5f0beb=_0x2a436f[0x0];if(!_0x5f0beb)throw CliErrors[_0x2cbfeb(0xe3)](_0x2cbfeb(0xee));const _0xb62936=resolveRemovedCommand(_0x5f0beb,_0x2a436f[0x1]);if(_0xb62936)throw CliErrors['validation'](_0xb62936[_0x2cbfeb(0xe6)],_0xb62936[_0x2cbfeb(0xf4)]);if(_0x5f0beb===_0x2cbfeb(0xf7))throw CliErrors['validation'](_0x2cbfeb(0xe5),_0x2cbfeb(0xf0));if(!isKnownService(_0x5f0beb))throw CliErrors[_0x2cbfeb(0xeb)](_0x2a436f[_0x2cbfeb(0xed)]('\x20'));const _0x1fb4b0=getServiceEntry(_0x5f0beb),_0x3d8b99=_0x2a436f[0x1],_0x57627c=_0x3d8b99||_0x1fb4b0[_0x2cbfeb(0xf9)];if(!_0x57627c){if(_0x1fb4b0['wildcardDef'])return{'definition':_0x1fb4b0[_0x2cbfeb(0xea)],'rawFlags':_0x407ca4,'args':[]};throw CliErrors[_0x2cbfeb(0xe3)](_0x2cbfeb(0xe4)+_0x5f0beb+'\x22.');}const _0x5375bd=findDefinition(_0x5f0beb,_0x57627c);if(_0x5375bd)return{'definition':_0x5375bd,'rawFlags':_0x407ca4,'args':_0x2a436f[_0x2cbfeb(0xfa)](0x2)};if(_0x1fb4b0[_0x2cbfeb(0xea)])return{'definition':_0x1fb4b0[_0x2cbfeb(0xea)],'rawFlags':_0x407ca4,'args':[_0x57627c,..._0x2a436f[_0x2cbfeb(0xfa)](0x2)]};throw CliErrors[_0x2cbfeb(0xeb)](_0x5f0beb+'\x20'+_0x57627c);}
1
+ (function(_0x1f6779,_0x1ebcea){const _0x37e762=a260_0x32c4,_0x12f358=_0x1f6779();while(!![]){try{const _0x156581=-parseInt(_0x37e762(0xe1))/0x1*(-parseInt(_0x37e762(0xe3))/0x2)+-parseInt(_0x37e762(0xe5))/0x3+-parseInt(_0x37e762(0xe7))/0x4+-parseInt(_0x37e762(0xe6))/0x5*(parseInt(_0x37e762(0xde))/0x6)+parseInt(_0x37e762(0xe4))/0x7+parseInt(_0x37e762(0xeb))/0x8*(parseInt(_0x37e762(0xdb))/0x9)+-parseInt(_0x37e762(0xef))/0xa*(-parseInt(_0x37e762(0xe8))/0xb);if(_0x156581===_0x1ebcea)break;else _0x12f358['push'](_0x12f358['shift']());}catch(_0x3f5afc){_0x12f358['push'](_0x12f358['shift']());}}}(a260_0x5b6c,0x87eed));import a260_0x272d52 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';function a260_0x5b6c(){const _0x257f45=['670yibVaX','2898MKbuGA','slice','run','5898IbbiKR','defaultCommand','flags','569fUVIem','wildcardDef','2450qJqaMW','740845DYiwra','2963052DzqjMh','5515wBNUGY','3385172gngvpd','398057qiTXFV','message','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','6152rtqEJg','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','validation','input'];a260_0x5b6c=function(){return _0x257f45;};return a260_0x5b6c();}function a260_0x32c4(_0x297d46,_0x3fa4cc){_0x297d46=_0x297d46-0xdb;const _0x5b6cd8=a260_0x5b6c();let _0x32c432=_0x5b6cd8[_0x297d46];return _0x32c432;}import{CliErrors}from'../errors.js';export async function resolveRabetbaseInvocation(_0x514bbc){const _0x56c12b=a260_0x32c4,_0x270a0a=a260_0x272d52('',{'importMeta':import.meta,'argv':[..._0x514bbc],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x36573f=[..._0x270a0a[_0x56c12b(0xee)]],_0x2e1285=_0x270a0a[_0x56c12b(0xe0)],_0x5a527c=_0x36573f[0x0];if(!_0x5a527c)throw CliErrors[_0x56c12b(0xed)](_0x56c12b(0xea));const _0x251cb0=resolveRemovedCommand(_0x5a527c,_0x36573f[0x1]);if(_0x251cb0)throw CliErrors['validation'](_0x251cb0[_0x56c12b(0xe9)],_0x251cb0['hint']);if(_0x5a527c===_0x56c12b(0xdd))throw CliErrors[_0x56c12b(0xed)]('`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.',_0x56c12b(0xec));if(!isKnownService(_0x5a527c))throw CliErrors['unknownCommand'](_0x36573f['join']('\x20'));const _0x4c69e1=getServiceEntry(_0x5a527c),_0x4ef8cc=_0x36573f[0x1],_0x1243c4=_0x4ef8cc||_0x4c69e1[_0x56c12b(0xdf)];if(!_0x1243c4){if(_0x4c69e1[_0x56c12b(0xe2)])return{'definition':_0x4c69e1[_0x56c12b(0xe2)],'rawFlags':_0x2e1285,'args':[]};throw CliErrors[_0x56c12b(0xed)]('Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x5a527c+'\x22.');}const _0xc6a0a4=findDefinition(_0x5a527c,_0x1243c4);if(_0xc6a0a4)return{'definition':_0xc6a0a4,'rawFlags':_0x2e1285,'args':_0x36573f['slice'](0x2)};if(_0x4c69e1[_0x56c12b(0xe2)])return{'definition':_0x4c69e1[_0x56c12b(0xe2)],'rawFlags':_0x2e1285,'args':[_0x1243c4,..._0x36573f[_0x56c12b(0xdc)](0x2)]};throw CliErrors['unknownCommand'](_0x5a527c+'\x20'+_0x1243c4);}
@@ -1 +1 @@
1
- const a261_0x550d97=a261_0x164c;(function(_0x2920c6,_0x16b772){const _0x2c0561=a261_0x164c,_0x3e3842=_0x2920c6();while(!![]){try{const _0x2a4856=-parseInt(_0x2c0561(0xa8))/0x1+-parseInt(_0x2c0561(0xa7))/0x2*(parseInt(_0x2c0561(0xaf))/0x3)+-parseInt(_0x2c0561(0x9f))/0x4*(-parseInt(_0x2c0561(0xb8))/0x5)+parseInt(_0x2c0561(0xaa))/0x6+-parseInt(_0x2c0561(0xa6))/0x7+parseInt(_0x2c0561(0x9d))/0x8*(-parseInt(_0x2c0561(0xb7))/0x9)+parseInt(_0x2c0561(0xba))/0xa*(parseInt(_0x2c0561(0x8b))/0xb);if(_0x2a4856===_0x16b772)break;else _0x3e3842['push'](_0x3e3842['shift']());}catch(_0x21a5c4){_0x3e3842['push'](_0x3e3842['shift']());}}}(a261_0x443e,0x81cd3));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=a261_0x550d97(0x95),SKILL_NAME=a261_0x550d97(0x9c);function a261_0x443e(){const _0x68edeb=['unverifiable','current','VERIFY_FAILED','flatMap','absent','skipped','length','packageVersion','error','skills','state','startsWith','214379YEVrbZ','skills@latest\x20exited\x20','present','installedPath','home','includes','split','name','schemaVersion','package.json','rabetbase\x20cli-skill\x20install','packageRoot','root',':\x5cs*(.+)$','skillVersion','Symbolic\x20link\x20is\x20not\x20allowed:\x20','reason','rabetbase','8FRwOcP','files','52KVTZpG','INSTALL_FAILED','isFile','path','manifest','digest','version_mismatch','3878420UgscVF','7578FQHEOU','560316AtaYrN','hex','342540JaFmRb','parse','utf8','unknown','Installed\x20Skill\x20state\x20is\x20','153RdTFqh','update','Unsafe\x20manifest\x20path:\x20','version','message','missing','sha256','SOURCE_INVALID','5346801fAzxKW','141890MoyXYa','join','1030plnIhr','SKILL.md','sort','trim'];a261_0x443e=function(){return _0x68edeb;};return a261_0x443e();}function frontmatterValue(_0x20ec3b,_0x21a7a1){const _0xcefaf4=a261_0x550d97;return _0x20ec3b['match'](new RegExp('^'+_0x21a7a1+_0xcefaf4(0x98),'m'))?.[0x1]?.[_0xcefaf4(0xbd)]()??'';}function listFiles(_0x3a6ed0,_0x544aa3=_0x3a6ed0){const _0x910995=a261_0x550d97;return readdirSync(_0x544aa3,{'withFileTypes':!![]})[_0x910995(0xc1)](_0x4fe0ac=>{const _0x3874f2=_0x910995,_0x254681=join(_0x544aa3,_0x4fe0ac[_0x3874f2(0x92)]),_0x41b47d=lstatSync(_0x254681);if(_0x41b47d['isSymbolicLink']())throw new Error(_0x3874f2(0x9a)+_0x254681);if(_0x41b47d['isDirectory']())return listFiles(_0x3a6ed0,_0x254681);if(!_0x41b47d[_0x3874f2(0xa1)]())throw new Error('Unsupported\x20Skill\x20entry:\x20'+_0x254681);return[relative(_0x3a6ed0,_0x254681)[_0x3874f2(0x91)](sep)[_0x3874f2(0xb9)]('/')];})[_0x910995(0xbc)]((_0x37beac,_0x504058)=>_0x37beac<_0x504058?-0x1:_0x37beac>_0x504058?0x1:0x0);}function digestFiles(_0x4c324f,_0x5a835d){const _0x45a248=a261_0x550d97,_0x5893f6=createHash(_0x45a248(0xb5));for(const _0x376cc6 of _0x5a835d){if(_0x376cc6[_0x45a248(0xc9)]('/')||_0x376cc6[_0x45a248(0x91)]('/')[_0x45a248(0x90)]('..')||_0x376cc6[_0x45a248(0x90)]('\x5c'))throw new Error(_0x45a248(0xb1)+_0x376cc6);_0x5893f6[_0x45a248(0xb0)](_0x376cc6),_0x5893f6[_0x45a248(0xb0)]('\x00'),_0x5893f6[_0x45a248(0xb0)](readFileSync(join(_0x4c324f,..._0x376cc6['split']('/')))),_0x5893f6['update']('\x00');}return _0x5893f6[_0x45a248(0xa4)](_0x45a248(0xa9));}function a261_0x164c(_0x2230f7,_0x234689){_0x2230f7=_0x2230f7-0x8b;const _0x443ebc=a261_0x443e();let _0x164c1e=_0x443ebc[_0x2230f7];return _0x164c1e;}function sameFiles(_0x22d86b,_0x88068b){const _0x2f6552=a261_0x550d97;return _0x22d86b['length']===_0x88068b[_0x2f6552(0xc4)]&&_0x22d86b['every']((_0x30868d,_0x4fae5b)=>_0x30868d===_0x88068b[_0x4fae5b]);}function readSource(_0x27cb13){const _0x46d5b8=a261_0x550d97,_0xe8abb=JSON[_0x46d5b8(0xab)](readFileSync(join(_0x27cb13,_0x46d5b8(0x94)),_0x46d5b8(0xac))),_0x5cfee6=JSON['parse'](readFileSync(join(_0x27cb13,_0x46d5b8(0xc7),'rabetbase.manifest.json'),_0x46d5b8(0xac))),_0x55041f=join(_0x27cb13,_0x46d5b8(0xc7),SKILL_NAME),_0x2b4e97=frontmatterValue(readFileSync(join(_0x55041f,_0x46d5b8(0xbb)),_0x46d5b8(0xac)),'version'),_0x5456a1=listFiles(_0x55041f);if(_0x5cfee6[_0x46d5b8(0x93)]!==0x1||_0x5cfee6[_0x46d5b8(0x92)]!==SKILL_NAME||!_0xe8abb[_0x46d5b8(0xb2)]||_0x5cfee6[_0x46d5b8(0xc5)]!==_0xe8abb[_0x46d5b8(0xb2)]||_0x5cfee6[_0x46d5b8(0x99)]!==_0xe8abb['version']||_0x2b4e97!==_0xe8abb[_0x46d5b8(0xb2)]||!sameFiles(_0x5456a1,_0x5cfee6[_0x46d5b8(0x9e)])||digestFiles(_0x55041f,_0x5456a1)!==_0x5cfee6['digest'])throw new Error('Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest');return{'packageVersion':_0xe8abb[_0x46d5b8(0xb2)],'skillVersion':_0x2b4e97,'root':_0x55041f,'manifest':_0x5cfee6};}function installedSkillPath(_0x533276){const _0x1714d8=a261_0x550d97,_0x5d1c74=resolveInstalledSkill(SKILL_NAME,{'home':_0x533276});if(_0x5d1c74[_0x1714d8(0xc8)]===_0x1714d8(0x8d))return{'state':_0x1714d8(0x8d),'path':dirname(_0x5d1c74['path'])};if(_0x5d1c74[_0x1714d8(0xc8)]===_0x1714d8(0xc2))return{'state':_0x1714d8(0xb4)};return{'state':_0x1714d8(0xbe),'reason':_0x5d1c74[_0x1714d8(0x9b)]};}export function inspectInstalledBuiltinSkillVersion(_0x3768b4,_0x4d8906={}){const _0x52255e=a261_0x550d97,_0x49f331=installedSkillPath(_0x4d8906[_0x52255e(0x8f)]??homedir());if(_0x49f331[_0x52255e(0xc8)]===_0x52255e(0xb4))return{'state':_0x52255e(0xb4),'expectedVersion':_0x3768b4,'repairCommand':REPAIR_COMMAND};if(_0x49f331['state']===_0x52255e(0xbe))return{'state':'unverifiable','expectedVersion':_0x3768b4,'reason':_0x49f331[_0x52255e(0x9b)],'repairCommand':REPAIR_COMMAND};try{const _0x5e7575=frontmatterValue(readFileSync(join(_0x49f331['path'],_0x52255e(0xbb)),_0x52255e(0xac)),'version');return{'state':_0x5e7575===_0x3768b4?_0x52255e(0xbf):_0x52255e(0xa5),'expectedVersion':_0x3768b4,'skillVersion':_0x5e7575,'installedPath':_0x49f331[_0x52255e(0xa2)],'repairCommand':REPAIR_COMMAND};}catch(_0x4f8d7f){return{'state':_0x52255e(0xbe),'expectedVersion':_0x3768b4,'installedPath':_0x49f331['path'],'reason':_0x4f8d7f instanceof Error?_0x4f8d7f[_0x52255e(0xb3)]:String(_0x4f8d7f),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x2257cb={}){const _0x1ca4f0=a261_0x550d97,_0x54e2a9=_0x2257cb['packageRoot']??DEFAULT_PACKAGE_ROOT;let _0x33a373;try{_0x33a373=readSource(_0x54e2a9);}catch(_0x316b91){return{'state':'unverifiable','packageVersion':_0x1ca4f0(0xad),'reason':_0x316b91 instanceof Error?_0x316b91['message']:String(_0x316b91),'repairCommand':REPAIR_COMMAND};}const _0xc38f4e=installedSkillPath(_0x2257cb[_0x1ca4f0(0x8f)]??homedir());if(_0xc38f4e[_0x1ca4f0(0xc8)]===_0x1ca4f0(0xb4))return{'state':_0x1ca4f0(0xb4),'packageVersion':_0x33a373[_0x1ca4f0(0xc5)],'repairCommand':REPAIR_COMMAND};if(_0xc38f4e[_0x1ca4f0(0xc8)]===_0x1ca4f0(0xbe))return{'state':'unverifiable','packageVersion':_0x33a373[_0x1ca4f0(0xc5)],'reason':_0xc38f4e[_0x1ca4f0(0x9b)],'repairCommand':REPAIR_COMMAND};try{const _0x54a4f8=frontmatterValue(readFileSync(join(_0xc38f4e[_0x1ca4f0(0xa2)],_0x1ca4f0(0xbb)),'utf8'),_0x1ca4f0(0xb2));if(_0x54a4f8!==_0x33a373[_0x1ca4f0(0x99)])return{'state':_0x1ca4f0(0xa5),'packageVersion':_0x33a373[_0x1ca4f0(0xc5)],'skillVersion':_0x54a4f8,'installedPath':_0xc38f4e[_0x1ca4f0(0xa2)],'repairCommand':REPAIR_COMMAND};const _0x288974=listFiles(_0xc38f4e[_0x1ca4f0(0xa2)]),_0x55c1e9=digestFiles(_0xc38f4e['path'],_0x288974);return{'state':sameFiles(_0x288974,_0x33a373['manifest'][_0x1ca4f0(0x9e)])&&_0x55c1e9===_0x33a373[_0x1ca4f0(0xa3)]['digest']?_0x1ca4f0(0xbf):'content_mismatch','packageVersion':_0x33a373[_0x1ca4f0(0xc5)],'skillVersion':_0x54a4f8,'installedPath':_0xc38f4e[_0x1ca4f0(0xa2)],'digest':_0x55c1e9,'repairCommand':REPAIR_COMMAND};}catch(_0x46e2ad){return{'state':_0x1ca4f0(0xbe),'packageVersion':_0x33a373[_0x1ca4f0(0xc5)],'installedPath':_0xc38f4e['path'],'reason':_0x46e2ad instanceof Error?_0x46e2ad[_0x1ca4f0(0xb3)]:String(_0x46e2ad),'repairCommand':REPAIR_COMMAND};}}function failure(_0xe11f2d,_0x22ff49,_0x432632,_0x4a7a35){const _0x5a76bb=a261_0x550d97;return{'ok':![],'code':_0xe11f2d,'packageVersion':_0x22ff49[_0x5a76bb(0xc5)],'skillVersion':_0x22ff49['skillVersion'],'installedPath':_0x4a7a35,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x432632 instanceof Error?_0x432632['message']:String(_0x432632)};}export function installBuiltinSkill(_0x37259c={}){const _0x504234=a261_0x550d97,_0x419697=_0x37259c[_0x504234(0x96)]??DEFAULT_PACKAGE_ROOT,_0x5a34eb=_0x37259c['home']??homedir();let _0x11b526;try{_0x11b526=readSource(_0x419697);}catch(_0x4ca8c9){return failure(_0x504234(0xb6),{'packageVersion':_0x504234(0xad),'skillVersion':_0x504234(0xad)},_0x4ca8c9);}const _0x103baa=inspectBuiltinSkill({'packageRoot':_0x419697,'home':_0x5a34eb}),_0x1e4a9c=runNpxSkillsAddGlobal(_0x419697,_0x11b526[_0x504234(0x97)],{'stdio':_0x37259c['stdio']??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0x5a34eb}});if(_0x1e4a9c[_0x504234(0xc3)])return{'ok':!![],'packageVersion':_0x11b526[_0x504234(0xc5)],'skillVersion':_0x11b526[_0x504234(0x99)],'installedPath':_0x103baa[_0x504234(0x8e)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x1e4a9c['ok'])return failure(_0x504234(0xa0),_0x11b526,_0x1e4a9c[_0x504234(0xc6)]??_0x504234(0x8c)+_0x1e4a9c['status']);const _0x3ba421=inspectBuiltinSkill({'packageRoot':_0x419697,'home':_0x5a34eb});if(_0x3ba421[_0x504234(0xc8)]!==_0x504234(0xbf))return failure(_0x504234(0xc0),_0x11b526,_0x3ba421[_0x504234(0x9b)]??_0x504234(0xae)+_0x3ba421[_0x504234(0xc8)],_0x3ba421[_0x504234(0x8e)]);return{'ok':!![],'packageVersion':_0x11b526[_0x504234(0xc5)],'skillVersion':_0x11b526[_0x504234(0x99)],'installedPath':_0x3ba421['installedPath'],'changed':_0x103baa[_0x504234(0xc8)]!==_0x504234(0xbf),'repairCommand':REPAIR_COMMAND};}
1
+ const a262_0x15ea5d=a262_0x424f;(function(_0x4f9512,_0x388323){const _0x1dd664=a262_0x424f,_0x3c1071=_0x4f9512();while(!![]){try{const _0x437664=parseInt(_0x1dd664(0x16e))/0x1*(-parseInt(_0x1dd664(0x17d))/0x2)+-parseInt(_0x1dd664(0x19d))/0x3+-parseInt(_0x1dd664(0x197))/0x4*(parseInt(_0x1dd664(0x176))/0x5)+-parseInt(_0x1dd664(0x183))/0x6+-parseInt(_0x1dd664(0x195))/0x7+-parseInt(_0x1dd664(0x18b))/0x8+-parseInt(_0x1dd664(0x16b))/0x9*(-parseInt(_0x1dd664(0x196))/0xa);if(_0x437664===_0x388323)break;else _0x3c1071['push'](_0x3c1071['shift']());}catch(_0x516bc9){_0x3c1071['push'](_0x3c1071['shift']());}}}(a262_0x1ea3,0x7126a));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';function a262_0x424f(_0xb06262,_0xf451a4){_0xb06262=_0xb06262-0x163;const _0x1ea31a=a262_0x1ea3();let _0x424fd1=_0x1ea31a[_0xb06262];return _0x424fd1;}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=a262_0x15ea5d(0x172),SKILL_NAME=a262_0x15ea5d(0x199);function frontmatterValue(_0x521602,_0x54f58d){const _0x4fc134=a262_0x15ea5d;return _0x521602[_0x4fc134(0x18a)](new RegExp('^'+_0x54f58d+_0x4fc134(0x1a0),'m'))?.[0x1]?.['trim']()??'';}function listFiles(_0x41aa47,_0x5bb0c6=_0x41aa47){const _0x434b7f=a262_0x15ea5d;return readdirSync(_0x5bb0c6,{'withFileTypes':!![]})[_0x434b7f(0x17b)](_0x3f5e38=>{const _0xd0b931=_0x434b7f,_0x2c5bb8=join(_0x5bb0c6,_0x3f5e38[_0xd0b931(0x168)]),_0x1823a2=lstatSync(_0x2c5bb8);if(_0x1823a2[_0xd0b931(0x18e)]())throw new Error(_0xd0b931(0x180)+_0x2c5bb8);if(_0x1823a2[_0xd0b931(0x193)]())return listFiles(_0x41aa47,_0x2c5bb8);if(!_0x1823a2[_0xd0b931(0x175)]())throw new Error(_0xd0b931(0x184)+_0x2c5bb8);return[relative(_0x41aa47,_0x2c5bb8)[_0xd0b931(0x19e)](sep)[_0xd0b931(0x16a)]('/')];})[_0x434b7f(0x171)]((_0x4d56ee,_0x1055c7)=>_0x4d56ee<_0x1055c7?-0x1:_0x4d56ee>_0x1055c7?0x1:0x0);}function digestFiles(_0x242d25,_0x3b7df5){const _0x27b956=a262_0x15ea5d,_0x43c2f9=createHash(_0x27b956(0x164));for(const _0x267931 of _0x3b7df5){if(_0x267931[_0x27b956(0x166)]('/')||_0x267931['split']('/')[_0x27b956(0x19f)]('..')||_0x267931[_0x27b956(0x19f)]('\x5c'))throw new Error('Unsafe\x20manifest\x20path:\x20'+_0x267931);_0x43c2f9['update'](_0x267931),_0x43c2f9[_0x27b956(0x17f)]('\x00'),_0x43c2f9[_0x27b956(0x17f)](readFileSync(join(_0x242d25,..._0x267931['split']('/')))),_0x43c2f9['update']('\x00');}return _0x43c2f9['digest']('hex');}function sameFiles(_0x55e7f4,_0x50389b){const _0x1f72a9=a262_0x15ea5d;return _0x55e7f4['length']===_0x50389b[_0x1f72a9(0x169)]&&_0x55e7f4[_0x1f72a9(0x187)]((_0x464bef,_0x3ab812)=>_0x464bef===_0x50389b[_0x3ab812]);}function readSource(_0x597109){const _0x1838f5=a262_0x15ea5d,_0xd66a18=JSON[_0x1838f5(0x19a)](readFileSync(join(_0x597109,_0x1838f5(0x177)),'utf8')),_0x173373=JSON[_0x1838f5(0x19a)](readFileSync(join(_0x597109,_0x1838f5(0x170),_0x1838f5(0x179)),'utf8')),_0xc26154=join(_0x597109,'skills',SKILL_NAME),_0xb6ce9d=frontmatterValue(readFileSync(join(_0xc26154,'SKILL.md'),_0x1838f5(0x19c)),_0x1838f5(0x198)),_0x25727f=listFiles(_0xc26154);if(_0x173373['schemaVersion']!==0x1||_0x173373[_0x1838f5(0x168)]!==SKILL_NAME||!_0xd66a18[_0x1838f5(0x198)]||_0x173373[_0x1838f5(0x17e)]!==_0xd66a18[_0x1838f5(0x198)]||_0x173373['skillVersion']!==_0xd66a18['version']||_0xb6ce9d!==_0xd66a18[_0x1838f5(0x198)]||!sameFiles(_0x25727f,_0x173373['files'])||digestFiles(_0xc26154,_0x25727f)!==_0x173373[_0x1838f5(0x165)])throw new Error(_0x1838f5(0x174));return{'packageVersion':_0xd66a18['version'],'skillVersion':_0xb6ce9d,'root':_0xc26154,'manifest':_0x173373};}function installedSkillPath(_0x1d6607){const _0x1c82da=a262_0x15ea5d,_0xb9ea67=resolveInstalledSkill(SKILL_NAME,{'home':_0x1d6607});if(_0xb9ea67[_0x1c82da(0x188)]==='present')return{'state':'present','path':dirname(_0xb9ea67[_0x1c82da(0x194)])};if(_0xb9ea67[_0x1c82da(0x188)]===_0x1c82da(0x186))return{'state':_0x1c82da(0x16d)};return{'state':_0x1c82da(0x163),'reason':_0xb9ea67[_0x1c82da(0x17a)]};}export function inspectInstalledBuiltinSkillVersion(_0x56b7ea,_0x44231f={}){const _0x4982c1=a262_0x15ea5d,_0xf95ce6=installedSkillPath(_0x44231f[_0x4982c1(0x18d)]??homedir());if(_0xf95ce6[_0x4982c1(0x188)]==='missing')return{'state':_0x4982c1(0x16d),'expectedVersion':_0x56b7ea,'repairCommand':REPAIR_COMMAND};if(_0xf95ce6[_0x4982c1(0x188)]===_0x4982c1(0x163))return{'state':_0x4982c1(0x163),'expectedVersion':_0x56b7ea,'reason':_0xf95ce6['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x1360bf=frontmatterValue(readFileSync(join(_0xf95ce6['path'],_0x4982c1(0x189)),_0x4982c1(0x19c)),_0x4982c1(0x198));return{'state':_0x1360bf===_0x56b7ea?_0x4982c1(0x191):_0x4982c1(0x1a1),'expectedVersion':_0x56b7ea,'skillVersion':_0x1360bf,'installedPath':_0xf95ce6[_0x4982c1(0x194)],'repairCommand':REPAIR_COMMAND};}catch(_0x232fda){return{'state':_0x4982c1(0x163),'expectedVersion':_0x56b7ea,'installedPath':_0xf95ce6[_0x4982c1(0x194)],'reason':_0x232fda instanceof Error?_0x232fda[_0x4982c1(0x167)]:String(_0x232fda),'repairCommand':REPAIR_COMMAND};}}function a262_0x1ea3(){const _0xbcac9d=['version_mismatch','pipe','SOURCE_INVALID','INSTALL_FAILED','unverifiable','sha256','digest','startsWith','message','name','length','join','9DLeuPH','skillVersion','missing','262934KCjBoB','skills@latest\x20exited\x20','skills','sort','rabetbase\x20cli-skill\x20install','root','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','isFile','54525MbZmTJ','package.json','packageRoot','rabetbase.manifest.json','reason','flatMap','Installed\x20Skill\x20state\x20is\x20','2NSbjKU','packageVersion','update','Symbolic\x20link\x20is\x20not\x20allowed:\x20','installedPath','error','2599008iZJKgJ','Unsupported\x20Skill\x20entry:\x20','content_mismatch','absent','every','state','SKILL.md','match','1013616rDdgYn','status','home','isSymbolicLink','VERIFY_FAILED','stdio','current','unknown','isDirectory','path','6390328DbYrxv','39278270bySZuv','316wFGjJd','version','rabetbase','parse','manifest','utf8','2601474YjnMdC','split','includes',':\x5cs*(.+)$'];a262_0x1ea3=function(){return _0xbcac9d;};return a262_0x1ea3();}export function inspectBuiltinSkill(_0x4106a0={}){const _0x15a976=a262_0x15ea5d,_0x3a506b=_0x4106a0[_0x15a976(0x178)]??DEFAULT_PACKAGE_ROOT;let _0x2f3fdf;try{_0x2f3fdf=readSource(_0x3a506b);}catch(_0x4a3274){return{'state':_0x15a976(0x163),'packageVersion':_0x15a976(0x192),'reason':_0x4a3274 instanceof Error?_0x4a3274[_0x15a976(0x167)]:String(_0x4a3274),'repairCommand':REPAIR_COMMAND};}const _0x15f641=installedSkillPath(_0x4106a0[_0x15a976(0x18d)]??homedir());if(_0x15f641[_0x15a976(0x188)]===_0x15a976(0x16d))return{'state':'missing','packageVersion':_0x2f3fdf[_0x15a976(0x17e)],'repairCommand':REPAIR_COMMAND};if(_0x15f641['state']===_0x15a976(0x163))return{'state':'unverifiable','packageVersion':_0x2f3fdf[_0x15a976(0x17e)],'reason':_0x15f641[_0x15a976(0x17a)],'repairCommand':REPAIR_COMMAND};try{const _0x51d2b4=frontmatterValue(readFileSync(join(_0x15f641[_0x15a976(0x194)],_0x15a976(0x189)),_0x15a976(0x19c)),_0x15a976(0x198));if(_0x51d2b4!==_0x2f3fdf[_0x15a976(0x16c)])return{'state':'version_mismatch','packageVersion':_0x2f3fdf[_0x15a976(0x17e)],'skillVersion':_0x51d2b4,'installedPath':_0x15f641['path'],'repairCommand':REPAIR_COMMAND};const _0x4695ca=listFiles(_0x15f641[_0x15a976(0x194)]),_0x1ca77a=digestFiles(_0x15f641[_0x15a976(0x194)],_0x4695ca);return{'state':sameFiles(_0x4695ca,_0x2f3fdf[_0x15a976(0x19b)]['files'])&&_0x1ca77a===_0x2f3fdf[_0x15a976(0x19b)][_0x15a976(0x165)]?'current':_0x15a976(0x185),'packageVersion':_0x2f3fdf[_0x15a976(0x17e)],'skillVersion':_0x51d2b4,'installedPath':_0x15f641['path'],'digest':_0x1ca77a,'repairCommand':REPAIR_COMMAND};}catch(_0x55f99b){return{'state':'unverifiable','packageVersion':_0x2f3fdf[_0x15a976(0x17e)],'installedPath':_0x15f641[_0x15a976(0x194)],'reason':_0x55f99b instanceof Error?_0x55f99b[_0x15a976(0x167)]:String(_0x55f99b),'repairCommand':REPAIR_COMMAND};}}function failure(_0x1e6d19,_0xafd63f,_0x2d7d6e,_0x4ff146){const _0x5f2699=a262_0x15ea5d;return{'ok':![],'code':_0x1e6d19,'packageVersion':_0xafd63f[_0x5f2699(0x17e)],'skillVersion':_0xafd63f[_0x5f2699(0x16c)],'installedPath':_0x4ff146,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x2d7d6e instanceof Error?_0x2d7d6e['message']:String(_0x2d7d6e)};}export function installBuiltinSkill(_0x38d304={}){const _0x1f6dbc=a262_0x15ea5d,_0x492f92=_0x38d304['packageRoot']??DEFAULT_PACKAGE_ROOT,_0x9fa3a8=_0x38d304['home']??homedir();let _0x1d411d;try{_0x1d411d=readSource(_0x492f92);}catch(_0x515057){return failure(_0x1f6dbc(0x1a3),{'packageVersion':_0x1f6dbc(0x192),'skillVersion':_0x1f6dbc(0x192)},_0x515057);}const _0x5d3d76=inspectBuiltinSkill({'packageRoot':_0x492f92,'home':_0x9fa3a8}),_0x5c6595=runNpxSkillsAddGlobal(_0x492f92,_0x1d411d[_0x1f6dbc(0x173)],{'stdio':_0x38d304[_0x1f6dbc(0x190)]??_0x1f6dbc(0x1a2),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x9fa3a8}});if(_0x5c6595['skipped'])return{'ok':!![],'packageVersion':_0x1d411d['packageVersion'],'skillVersion':_0x1d411d[_0x1f6dbc(0x16c)],'installedPath':_0x5d3d76[_0x1f6dbc(0x181)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x5c6595['ok'])return failure(_0x1f6dbc(0x1a4),_0x1d411d,_0x5c6595[_0x1f6dbc(0x182)]??_0x1f6dbc(0x16f)+_0x5c6595[_0x1f6dbc(0x18c)]);const _0xffc58a=inspectBuiltinSkill({'packageRoot':_0x492f92,'home':_0x9fa3a8});if(_0xffc58a['state']!==_0x1f6dbc(0x191))return failure(_0x1f6dbc(0x18f),_0x1d411d,_0xffc58a[_0x1f6dbc(0x17a)]??_0x1f6dbc(0x17c)+_0xffc58a[_0x1f6dbc(0x188)],_0xffc58a[_0x1f6dbc(0x181)]);return{'ok':!![],'packageVersion':_0x1d411d[_0x1f6dbc(0x17e)],'skillVersion':_0x1d411d[_0x1f6dbc(0x16c)],'installedPath':_0xffc58a['installedPath'],'changed':_0x5d3d76[_0x1f6dbc(0x188)]!==_0x1f6dbc(0x191),'repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
1
- (function(_0x143195,_0x1c0423){const _0x273ac7=a262_0x5ef0,_0x221e16=_0x143195();while(!![]){try{const _0x3dd508=parseInt(_0x273ac7(0x16e))/0x1*(parseInt(_0x273ac7(0x15f))/0x2)+parseInt(_0x273ac7(0x173))/0x3*(parseInt(_0x273ac7(0x169))/0x4)+-parseInt(_0x273ac7(0x176))/0x5+-parseInt(_0x273ac7(0x172))/0x6*(parseInt(_0x273ac7(0x168))/0x7)+parseInt(_0x273ac7(0x174))/0x8+parseInt(_0x273ac7(0x171))/0x9*(-parseInt(_0x273ac7(0x15b))/0xa)+parseInt(_0x273ac7(0x17a))/0xb*(parseInt(_0x273ac7(0x162))/0xc);if(_0x3dd508===_0x1c0423)break;else _0x221e16['push'](_0x221e16['shift']());}catch(_0x20fc33){_0x221e16['push'](_0x221e16['shift']());}}}(a262_0x572d,0x33464));function a262_0x572d(){const _0x24cafa=['39310wIdibn','log','-$1','skill','15128PgPdwO','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','setLogPath','708puphKA','error','不支持的命令:\x20','replace','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','add','38437CVglAj','188388yLqOgs','--help','argv','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','push','17lmWeba','from','has','36EOJnOH','18CEMirm','18oHFHVE','843696mqnysM','help','1876230MiacJy','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','toLowerCase','enable-bff-save','18799vHZCCd','(empty)','entries'];a262_0x572d=function(){return _0x24cafa;};return a262_0x572d();}import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a262_0x5ef0(_0xd9ea11,_0x43cbe3){_0xd9ea11=_0xd9ea11-0x15b;const _0x572d93=a262_0x572d();let _0x5ef0c0=_0x572d93[_0xd9ea11];return _0x5ef0c0;}import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x3e9993){const _0x36dc08=a262_0x5ef0,_0x591e89=[];for(const [_0xd488f6,_0x251e72]of Object[_0x36dc08(0x17c)](_0x3e9993)){if(_0x251e72===!![]){const _0xadbc0=_0xd488f6[_0x36dc08(0x165)](/([A-Z])/g,_0x36dc08(0x15d))[_0x36dc08(0x178)]();_0x591e89[_0x36dc08(0x16d)](_0xadbc0);}}return _0x591e89;}export function parseDynamicFlags(){const _0x105eb5=a262_0x5ef0,_0x5afd4f=[];for(let _0x46fbc1=0x3;_0x46fbc1<process[_0x105eb5(0x16b)]['length'];_0x46fbc1++){const _0x8b92ca=process[_0x105eb5(0x16b)][_0x46fbc1];if(_0x8b92ca&&_0x8b92ca['startsWith']('--')){const _0x5acc98=_0x8b92ca['slice'](0x2);_0x5acc98&&!_0x5acc98['includes']('=')&&_0x5afd4f['push'](_0x5acc98);}}return _0x5afd4f;}export function getAllProvidedFlags(_0x49dc51){const _0x18f49f=a262_0x5ef0,_0x16a4cc=camelCaseFlagsToKebab(_0x49dc51),_0x2232d4=parseDynamicFlags(),_0x20e099=new Set([..._0x16a4cc,..._0x2232d4]);return Array[_0x18f49f(0x16f)](_0x20e099);}export function normalizeLegacyBffSaveFlags(_0x27f839){const _0x2a2292=a262_0x5ef0,_0x358e09=new Set(_0x27f839);return _0x358e09[_0x2a2292(0x170)]('dangerously-bff-save')&&_0x358e09[_0x2a2292(0x167)](_0x2a2292(0x179)),Array['from'](_0x358e09);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x35465f,_0x2aae91,_0x263b3c){const _0x186b07=a262_0x5ef0;logger[_0x186b07(0x161)](process['cwd']());if(_0x263b3c?.[_0x186b07(0x175)]||_0x35465f===_0x186b07(0x16a)){showHelp();return;}console[_0x186b07(0x163)]('Error:\x20Unsupported\x20command:\x20'+(_0x35465f||_0x186b07(0x17b))),console['log']('\x0aAvailable\x20commands:'),console[_0x186b07(0x15c)]('\x20\x20'+CLI_BIN_NAME+_0x186b07(0x166)),console[_0x186b07(0x15c)](''),console[_0x186b07(0x15c)]('Public\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0x186b07(0x163)](_0x186b07(0x15e),_0x186b07(0x164)+_0x35465f),process['exit'](0x1);}function showHelp(){const _0x2e7ecd=a262_0x5ef0;console[_0x2e7ecd(0x15c)](_0x2e7ecd(0x160)+CLI_BIN_NAME+_0x2e7ecd(0x177)+SKILLS_INSTALL_COMMAND_LINE+_0x2e7ecd(0x16c));}
1
+ (function(_0x570c81,_0x2dba30){const _0x324aa4=a263_0x3935,_0x266289=_0x570c81();while(!![]){try{const _0x3f3edd=parseInt(_0x324aa4(0x1f0))/0x1+-parseInt(_0x324aa4(0x1ee))/0x2*(parseInt(_0x324aa4(0x1f1))/0x3)+parseInt(_0x324aa4(0x1d6))/0x4*(parseInt(_0x324aa4(0x1ec))/0x5)+parseInt(_0x324aa4(0x1da))/0x6+parseInt(_0x324aa4(0x1f2))/0x7*(-parseInt(_0x324aa4(0x1e7))/0x8)+parseInt(_0x324aa4(0x1e4))/0x9*(parseInt(_0x324aa4(0x1fc))/0xa)+parseInt(_0x324aa4(0x1dd))/0xb*(parseInt(_0x324aa4(0x1fe))/0xc);if(_0x3f3edd===_0x2dba30)break;else _0x266289['push'](_0x266289['shift']());}catch(_0x542be9){_0x266289['push'](_0x266289['shift']());}}}(a263_0x4cc3,0xa3ab5));function a263_0x4cc3(){const _0x27d3cf=['1198283pbElEt','3AWfwZI','4174583TjLfHV','skill','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','replace','enable-bff-save','不支持的命令:\x20','has','startsWith','log','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','12280ynarAq','toLowerCase','440388qIARWU','Error:\x20Unsupported\x20command:\x20','setLogPath','60WDzaCa','\x0aAvailable\x20commands:','error','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','639396mNXCte','from','--help','220LgjHxu','argv','cwd','length','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','-$1','slice','36LszwAt','Public\x20Open\x20Skill\x20source:\x20','push','16oXIoQu','(empty)','includes','exit','help','325355KBQzNW','entries','2313358HKtgZL','dangerously-bff-save'];a263_0x4cc3=function(){return _0x27d3cf;};return a263_0x4cc3();}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(_0x44e828){const _0x5b378c=a263_0x3935,_0x1cf654=[];for(const [_0xf51f45,_0x2de822]of Object[_0x5b378c(0x1ed)](_0x44e828)){if(_0x2de822===!![]){const _0x56a9d7=_0xf51f45[_0x5b378c(0x1f5)](/([A-Z])/g,_0x5b378c(0x1e2))[_0x5b378c(0x1fd)]();_0x1cf654[_0x5b378c(0x1e6)](_0x56a9d7);}}return _0x1cf654;}export function parseDynamicFlags(){const _0x5bd006=a263_0x3935,_0x25727a=[];for(let _0x1ba425=0x3;_0x1ba425<process[_0x5bd006(0x1de)][_0x5bd006(0x1e0)];_0x1ba425++){const _0x510da1=process['argv'][_0x1ba425];if(_0x510da1&&_0x510da1[_0x5bd006(0x1f9)]('--')){const _0x4fad3d=_0x510da1[_0x5bd006(0x1e3)](0x2);_0x4fad3d&&!_0x4fad3d[_0x5bd006(0x1e9)]('=')&&_0x25727a[_0x5bd006(0x1e6)](_0x4fad3d);}}return _0x25727a;}export function getAllProvidedFlags(_0x45259f){const _0x782f8e=a263_0x3935,_0x500b49=camelCaseFlagsToKebab(_0x45259f),_0x83176c=parseDynamicFlags(),_0x12a494=new Set([..._0x500b49,..._0x83176c]);return Array[_0x782f8e(0x1db)](_0x12a494);}export function normalizeLegacyBffSaveFlags(_0x1598d5){const _0x537d3e=a263_0x3935,_0x21e41e=new Set(_0x1598d5);return _0x21e41e[_0x537d3e(0x1f8)](_0x537d3e(0x1ef))&&_0x21e41e['add'](_0x537d3e(0x1f6)),Array[_0x537d3e(0x1db)](_0x21e41e);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a263_0x3935(_0x16ef4c,_0x2716e6){_0x16ef4c=_0x16ef4c-0x1d5;const _0x4cc32f=a263_0x4cc3();let _0x3935d1=_0x4cc32f[_0x16ef4c];return _0x3935d1;}export async function skillsCommand(_0x1dec40,_0x30c411,_0x281b80){const _0x1a5547=a263_0x3935;logger[_0x1a5547(0x1d5)](process[_0x1a5547(0x1df)]());if(_0x281b80?.[_0x1a5547(0x1eb)]||_0x1dec40===_0x1a5547(0x1dc)){showHelp();return;}console[_0x1a5547(0x1d8)](_0x1a5547(0x1ff)+(_0x1dec40||_0x1a5547(0x1e8))),console[_0x1a5547(0x1fa)](_0x1a5547(0x1d7)),console[_0x1a5547(0x1fa)]('\x20\x20'+CLI_BIN_NAME+_0x1a5547(0x1f4)),console[_0x1a5547(0x1fa)](''),console[_0x1a5547(0x1fa)](_0x1a5547(0x1e5)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x1a5547(0x1d8)](_0x1a5547(0x1f3),_0x1a5547(0x1f7)+_0x1dec40),process[_0x1a5547(0x1ea)](0x1);}function showHelp(){const _0x52d9e2=a263_0x3935;console[_0x52d9e2(0x1fa)](_0x52d9e2(0x1d9)+CLI_BIN_NAME+_0x52d9e2(0x1fb)+SKILLS_INSTALL_COMMAND_LINE+_0x52d9e2(0x1e1));}
@@ -1 +1 @@
1
- const a263_0x3b3afb=a263_0x2ebd;(function(_0x5eb185,_0x4b8f95){const _0x490cf6=a263_0x2ebd,_0x2a2b0f=_0x5eb185();while(!![]){try{const _0x1ce4ad=parseInt(_0x490cf6(0xf9))/0x1*(-parseInt(_0x490cf6(0x129))/0x2)+parseInt(_0x490cf6(0x132))/0x3*(-parseInt(_0x490cf6(0x10c))/0x4)+parseInt(_0x490cf6(0x122))/0x5*(parseInt(_0x490cf6(0x116))/0x6)+-parseInt(_0x490cf6(0x107))/0x7+-parseInt(_0x490cf6(0xfd))/0x8+parseInt(_0x490cf6(0x126))/0x9+-parseInt(_0x490cf6(0x10d))/0xa*(-parseInt(_0x490cf6(0x105))/0xb);if(_0x1ce4ad===_0x4b8f95)break;else _0x2a2b0f['push'](_0x2a2b0f['shift']());}catch(_0x1e3de9){_0x2a2b0f['push'](_0x2a2b0f['shift']());}}}(a263_0x565c,0x92f35));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=a263_0x3b3afb(0x10f);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a263_0x3b3afb(0xff);export const LEGACY_RABETBASE_SKILL_SOURCE=a263_0x3b3afb(0x106);export const DEFAULT_RABETBASE_SKILL_NAME=a263_0x3b3afb(0x11a);export const RABETBASE_GLOBAL_SKILL_NAME=a263_0x3b3afb(0x114);export const RABETBASE_SKILL_GIT_SOURCE=a263_0x3b3afb(0x108);export function resolveGlobalSkillName(_0x346857){const _0x3b6a8a=a263_0x3b3afb;switch(_0x346857[_0x3b6a8a(0x128)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x2ae706){const _0x3ca5ee=a263_0x3b3afb,_0x1f7608=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x2ae706&&_0x1f7608[_0x3ca5ee(0x11e)](NPX_SKILLS_FLAG_SKILL,_0x2ae706),_0x1f7608;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function a263_0x2ebd(_0x2e067d,_0x1373f1){_0x2e067d=_0x2e067d-0xf9;const _0x565cb4=a263_0x565c();let _0x2ebd86=_0x565cb4[_0x2e067d];return _0x2ebd86;}function failure(_0x8d4d2b,_0x2f5e73,_0x18750c){return{'ok':![],'status':_0x2f5e73,'code':_0x8d4d2b,'error':'['+_0x8d4d2b+']\x20'+_0x18750c};}function a263_0x565c(){const _0x643d25=['6725768rYKNSb','toString','lovrabet/rabetbase','warn','EACCES','NPM_CONFIG_GLOBAL','Skill\x20\x22','error','33AuHtFz','lovrabet/lovrabet-skill','3467296Siexzz','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','join','remove','absent','4572woJecd','4266730trMMVg','stdio','add','pipe','ENOENT','stderr','npm_config_global','rabetbase','filter','6eaiBOJ','presence','stdout','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','Lovrabet','npx\x20terminated\x20by\x20signal\x20','SPAWN_FAILED','checked','push','inherit','NPX_NOT_FOUND','unverifiable','4383445jwudaT','code','exit\x20','yes','6172722NPVhGI','Installer\x20reported\x20','trim','306wkNwHv','INSTALL_PARTIAL','reason','\x22\x20install\x20state:\x20','message','npx','expectedSkillName','skill','status','1329QLiKox','2603RVcEXo','state','log','PERMISSION_DENIED'];a263_0x565c=function(){return _0x643d25;};return a263_0x565c();}function spawnOptions(_0x3cb223,_0x2b6730){const _0x1394aa=a263_0x3b3afb,_0x26ac0d={...process.env};return delete _0x26ac0d[_0x1394aa(0x113)],delete _0x26ac0d[_0x1394aa(0x102)],{'cwd':_0x3cb223,'stdio':_0x2b6730,'env':_0x26ac0d,'shell':![],..._0x2b6730===_0x1394aa(0x110)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x2ffaf4,_0x3e149d,_0xfc187,_0xc03c82){const _0x3738ba=a263_0x3b3afb,_0x6415b1=[_0x2ffaf4[_0x3738ba(0x118)]?_0x2ffaf4[_0x3738ba(0x118)]['toString']():'',_0x2ffaf4['stderr']?_0x2ffaf4[_0x3738ba(0x112)][_0x3738ba(0xfe)]():''][_0x3738ba(0x115)](Boolean)[_0x3738ba(0x109)]('\x0a')[_0x3738ba(0x128)]();_0xc03c82!=='pipe'&&_0x6415b1&&console['log'](_0x6415b1);if(_0x2ffaf4[_0x3738ba(0x104)]){const _0x18f0cf=_0x2ffaf4[_0x3738ba(0x104)],_0x4ff37e=_0x18f0cf['code']===_0x3738ba(0x111)?_0x3738ba(0x120):_0x18f0cf[_0x3738ba(0x123)]==='EPERM'||_0x18f0cf[_0x3738ba(0x123)]===_0x3738ba(0x101)?_0x3738ba(0xfc):_0x3738ba(0x11c);return failure(_0x4ff37e,_0x2ffaf4[_0x3738ba(0x131)],_0x18f0cf[_0x3738ba(0x12d)]);}if(_0x2ffaf4['signal'])return failure('CHILD_TERMINATED',_0x2ffaf4[_0x3738ba(0x131)],_0x3738ba(0x11b)+_0x2ffaf4['signal']);if(_0x2ffaf4['status']!==0x0)return failure('CHILD_EXIT_NONZERO',_0x2ffaf4[_0x3738ba(0x131)],_0x6415b1||_0x3738ba(0x124)+(_0x2ffaf4['status']??'unknown'));const _0x1fc82f=_0x3e149d?resolveInstalledSkill(_0x3e149d,_0xfc187):undefined,_0x56483d=_0x6415b1['match'](/Failed to install\s+(\d+)/i);if(_0x56483d&&Number(_0x56483d[0x1])>0x0){const _0x21363d=_0x3738ba(0x127)+_0x56483d[0x1]+'\x20failed\x20target(s)'+(_0x6415b1?':\x0a'+_0x6415b1:'');if(_0x1fc82f?.['state']==='present')return console[_0x3738ba(0x100)]('!\x20'+_0x21363d),{'ok':!![],'status':0x0};return failure(_0x3738ba(0x12a),0x0,_0x21363d);}if(_0x1fc82f){if(_0x1fc82f[_0x3738ba(0xfa)]===_0x3738ba(0x10b))return failure('SKILL_NOT_INSTALLED',0x0,_0x3738ba(0x103)+_0x3e149d+_0x3738ba(0x119)+_0x1fc82f[_0x3738ba(0x11d)][_0x3738ba(0x109)](',\x20')+')');_0x1fc82f[_0x3738ba(0xfa)]===_0x3738ba(0x121)&&console[_0x3738ba(0x100)]('!\x20Could\x20not\x20verify\x20\x22'+_0x3e149d+_0x3738ba(0x12c)+_0x1fc82f[_0x3738ba(0x12b)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x2ed90b,_0xf0a169){const _0x42d64c=a263_0x3b3afb;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3ac280=_0xf0a169?.[_0x42d64c(0x10e)]??'inherit',_0x3c1769=resolveNpmBin(_0x42d64c(0x12e)),_0xa43fc8=buildNpxSkillsAddArgv(_0xf0a169?.[_0x42d64c(0x130)]),_0x39d38c=[_0x42d64c(0x12e),..._0xa43fc8]['join']('\x20');console[_0x42d64c(0xfb)]('*\x20'+_0x39d38c);const _0x31879d=spawnSync(_0x3c1769,_0xa43fc8,spawnOptions(_0x2ed90b,_0x3ac280));return normalizeSpawnResult(_0x31879d,undefined,undefined,_0x3ac280);}export function runNpxSkillsRemove(_0x5daa0a,_0x44c718,_0x113cbc=LEGACY_RABETBASE_SKILL_SOURCE){const _0x2fa6f6=a263_0x3b3afb;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xbe2fe=_0x44c718?.['stdio']??_0x2fa6f6(0x11f),_0x2ddf2c=resolveNpmBin(_0x2fa6f6(0x12e)),_0x456871=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x2fa6f6(0x10a),_0x113cbc,NPX_SKILLS_FLAG_SKILL,_0x44c718?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x44c718?.[_0x2fa6f6(0x125)]?['-y']:[]],_0x32b347=[_0x2ddf2c,..._0x456871][_0x2fa6f6(0x109)]('\x20');console['log']('*\x20'+_0x32b347);const _0x4093ed=spawnSync(_0x2ddf2c,_0x456871,spawnOptions(_0x5daa0a,_0xbe2fe));return normalizeSpawnResult(_0x4093ed,undefined,undefined,_0xbe2fe);}export function runNpxSkillsAddGlobal(_0x4284c1,_0x49b701,_0x2d58f1){const _0x225bce=a263_0x3b3afb;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x2c1c19=resolveNpmBin(_0x225bce(0x12e)),_0x56778b=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x49b701,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x1443ed=[_0x225bce(0x12e),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x49b701,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x225bce(0x109)]('\x20');console[_0x225bce(0xfb)]('*\x20'+_0x1443ed);const _0x22cdf5=spawnSync(_0x2c1c19,_0x56778b,spawnOptions(_0x4284c1,_0x225bce(0x110)));return normalizeSpawnResult(_0x22cdf5,_0x2d58f1?.[_0x225bce(0x12f)]??resolveGlobalSkillName(_0x49b701),_0x2d58f1?.[_0x225bce(0x117)],_0x2d58f1?.[_0x225bce(0x10e)]);}
1
+ const a264_0x3bbd39=a264_0x2973;(function(_0x514e7a,_0x2255a2){const _0x2751df=a264_0x2973,_0x2700fa=_0x514e7a();while(!![]){try{const _0x2e4934=-parseInt(_0x2751df(0x19f))/0x1+parseInt(_0x2751df(0x1a1))/0x2*(parseInt(_0x2751df(0x1b1))/0x3)+parseInt(_0x2751df(0x18b))/0x4*(parseInt(_0x2751df(0x1a7))/0x5)+parseInt(_0x2751df(0x1b0))/0x6+parseInt(_0x2751df(0x1a5))/0x7+-parseInt(_0x2751df(0x1a6))/0x8*(-parseInt(_0x2751df(0x1ab))/0x9)+-parseInt(_0x2751df(0x1a0))/0xa*(parseInt(_0x2751df(0x1af))/0xb);if(_0x2e4934===_0x2255a2)break;else _0x2700fa['push'](_0x2700fa['shift']());}catch(_0x3196f7){_0x2700fa['push'](_0x2700fa['shift']());}}}(a264_0x28de,0x5ba1a));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=a264_0x3bbd39(0x1bd);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a264_0x3bbd39(0x1ac);export const LEGACY_RABETBASE_SKILL_SOURCE=a264_0x3bbd39(0x1b3);export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export const RABETBASE_GLOBAL_SKILL_NAME=a264_0x3bbd39(0x1b4);export const RABETBASE_SKILL_GIT_SOURCE='git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git';function a264_0x28de(){const _0x1067c2=['status','yes','unknown','CHILD_EXIT_NONZERO','stdout','npm_config_global','state','skill','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','273154IdnQcs','20bcNZCx','3296qNAtWQ','trim','EPERM','ENOENT','2259376WISLDw','255952hCvPnr','5LWXoEn','warn','\x22\x20install\x20state:\x20','code','18zUhlVd','lovrabet/rabetbase','stderr','reason','6388349XLOWeg','4018158aIpKHn','474RPwHQo','npx','lovrabet/lovrabet-skill','rabetbase','present','Skill\x20\x22','log','message','match','pipe','error','SPAWN_FAILED','add','toString','stdio','!\x20Could\x20not\x20verify\x20\x22','1972644tBsgfb','exit\x20','signal','INSTALL_PARTIAL','join','absent','SKILL_NOT_INSTALLED','expectedSkillName','npx\x20terminated\x20by\x20signal\x20','Installer\x20reported\x20','push'];a264_0x28de=function(){return _0x1067c2;};return a264_0x28de();}export function resolveGlobalSkillName(_0x3f79fb){const _0x476e95=a264_0x3bbd39;switch(_0x3f79fb[_0x476e95(0x1a2)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x53d41d){const _0x4bd91b=a264_0x3bbd39,_0x20aeac=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x53d41d&&_0x20aeac[_0x4bd91b(0x195)](NPX_SKILLS_FLAG_SKILL,_0x53d41d),_0x20aeac;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a264_0x3bbd39(0x1b2),...buildNpxSkillsAddArgv()][a264_0x3bbd39(0x18f)]('\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][a264_0x3bbd39(0x18f)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x49e047,_0x37cca7,_0x4c5bf7){return{'ok':![],'status':_0x37cca7,'code':_0x49e047,'error':'['+_0x49e047+']\x20'+_0x4c5bf7};}function spawnOptions(_0x5b2d71,_0x4b2e54){const _0x8fd08d=a264_0x3bbd39,_0x5f592e={...process.env};return delete _0x5f592e[_0x8fd08d(0x19b)],delete _0x5f592e['NPM_CONFIG_GLOBAL'],{'cwd':_0x5b2d71,'stdio':_0x4b2e54,'env':_0x5f592e,'shell':![],..._0x4b2e54===_0x8fd08d(0x1ba)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x2eacce,_0x436bb6,_0x487bf5,_0x2e0e02){const _0x5131ff=a264_0x3bbd39,_0x2bf1a4=[_0x2eacce[_0x5131ff(0x19a)]?_0x2eacce[_0x5131ff(0x19a)][_0x5131ff(0x188)]():'',_0x2eacce[_0x5131ff(0x1ad)]?_0x2eacce[_0x5131ff(0x1ad)][_0x5131ff(0x188)]():'']['filter'](Boolean)[_0x5131ff(0x18f)]('\x0a')['trim']();_0x2e0e02!==_0x5131ff(0x1ba)&&_0x2bf1a4&&console[_0x5131ff(0x1b7)](_0x2bf1a4);if(_0x2eacce['error']){const _0x2c0ffa=_0x2eacce[_0x5131ff(0x1bb)],_0xe98aae=_0x2c0ffa['code']===_0x5131ff(0x1a4)?'NPX_NOT_FOUND':_0x2c0ffa[_0x5131ff(0x1aa)]===_0x5131ff(0x1a3)||_0x2c0ffa[_0x5131ff(0x1aa)]==='EACCES'?'PERMISSION_DENIED':_0x5131ff(0x1bc);return failure(_0xe98aae,_0x2eacce[_0x5131ff(0x196)],_0x2c0ffa[_0x5131ff(0x1b8)]);}if(_0x2eacce[_0x5131ff(0x18d)])return failure('CHILD_TERMINATED',_0x2eacce['status'],_0x5131ff(0x193)+_0x2eacce['signal']);if(_0x2eacce[_0x5131ff(0x196)]!==0x0)return failure(_0x5131ff(0x199),_0x2eacce[_0x5131ff(0x196)],_0x2bf1a4||_0x5131ff(0x18c)+(_0x2eacce[_0x5131ff(0x196)]??_0x5131ff(0x198)));const _0xcabbb0=_0x436bb6?resolveInstalledSkill(_0x436bb6,_0x487bf5):undefined,_0x27b23d=_0x2bf1a4[_0x5131ff(0x1b9)](/Failed to install\s+(\d+)/i);if(_0x27b23d&&Number(_0x27b23d[0x1])>0x0){const _0xe6bbc3=_0x5131ff(0x194)+_0x27b23d[0x1]+'\x20failed\x20target(s)'+(_0x2bf1a4?':\x0a'+_0x2bf1a4:'');if(_0xcabbb0?.['state']===_0x5131ff(0x1b5))return console[_0x5131ff(0x1a8)]('!\x20'+_0xe6bbc3),{'ok':!![],'status':0x0};return failure(_0x5131ff(0x18e),0x0,_0xe6bbc3);}if(_0xcabbb0){if(_0xcabbb0[_0x5131ff(0x19c)]===_0x5131ff(0x190))return failure(_0x5131ff(0x191),0x0,_0x5131ff(0x1b6)+_0x436bb6+_0x5131ff(0x19e)+_0xcabbb0['checked']['join'](',\x20')+')');_0xcabbb0[_0x5131ff(0x19c)]==='unverifiable'&&console[_0x5131ff(0x1a8)](_0x5131ff(0x18a)+_0x436bb6+_0x5131ff(0x1a9)+_0xcabbb0[_0x5131ff(0x1ae)]);}return{'ok':!![],'status':0x0};}function a264_0x2973(_0x368cf4,_0x39f691){_0x368cf4=_0x368cf4-0x188;const _0x28de84=a264_0x28de();let _0x297352=_0x28de84[_0x368cf4];return _0x297352;}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x4d43b5,_0x3af4ec){const _0x3d3c8c=a264_0x3bbd39;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5e5c82=_0x3af4ec?.[_0x3d3c8c(0x189)]??'inherit',_0x3a531f=resolveNpmBin('npx'),_0x413fe5=buildNpxSkillsAddArgv(_0x3af4ec?.[_0x3d3c8c(0x19d)]),_0x11e6bd=['npx',..._0x413fe5][_0x3d3c8c(0x18f)]('\x20');console['log']('*\x20'+_0x11e6bd);const _0x12b3f6=spawnSync(_0x3a531f,_0x413fe5,spawnOptions(_0x4d43b5,_0x5e5c82));return normalizeSpawnResult(_0x12b3f6,undefined,undefined,_0x5e5c82);}export function runNpxSkillsRemove(_0x5df657,_0x151c66,_0x3b0156=LEGACY_RABETBASE_SKILL_SOURCE){const _0x1eca78=a264_0x3bbd39;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x554e81=_0x151c66?.[_0x1eca78(0x189)]??'inherit',_0x4779b5=resolveNpmBin(_0x1eca78(0x1b2)),_0x577554=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x3b0156,NPX_SKILLS_FLAG_SKILL,_0x151c66?.[_0x1eca78(0x19d)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x151c66?.[_0x1eca78(0x197)]?['-y']:[]],_0x20aba4=[_0x4779b5,..._0x577554]['join']('\x20');console['log']('*\x20'+_0x20aba4);const _0x23a8e3=spawnSync(_0x4779b5,_0x577554,spawnOptions(_0x5df657,_0x554e81));return normalizeSpawnResult(_0x23a8e3,undefined,undefined,_0x554e81);}export function runNpxSkillsAddGlobal(_0x316902,_0xbc5db4,_0x360f14){const _0x2795e3=a264_0x3bbd39;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3d4e8c=resolveNpmBin('npx'),_0x23e9fe=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0xbc5db4,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x30a214=[_0x2795e3(0x1b2),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0xbc5db4,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x2795e3(0x18f)]('\x20');console['log']('*\x20'+_0x30a214);const _0x2eba35=spawnSync(_0x3d4e8c,_0x23e9fe,spawnOptions(_0x316902,'pipe'));return normalizeSpawnResult(_0x2eba35,_0x360f14?.[_0x2795e3(0x192)]??resolveGlobalSkillName(_0xbc5db4),_0x360f14?.['presence'],_0x360f14?.[_0x2795e3(0x189)]);}
@@ -1 +1 @@
1
- const a264_0x236b48=a264_0x6413;(function(_0x3147d4,_0x251ccd){const _0x515031=a264_0x6413,_0x367a77=_0x3147d4();while(!![]){try{const _0x33facc=-parseInt(_0x515031(0x7c))/0x1*(-parseInt(_0x515031(0x76))/0x2)+-parseInt(_0x515031(0x78))/0x3+parseInt(_0x515031(0x85))/0x4*(parseInt(_0x515031(0x6c))/0x5)+-parseInt(_0x515031(0x8c))/0x6+-parseInt(_0x515031(0x89))/0x7*(-parseInt(_0x515031(0x8e))/0x8)+-parseInt(_0x515031(0x8b))/0x9*(-parseInt(_0x515031(0x80))/0xa)+-parseInt(_0x515031(0x6d))/0xb*(parseInt(_0x515031(0x83))/0xc);if(_0x33facc===_0x251ccd)break;else _0x367a77['push'](_0x367a77['shift']());}catch(_0x3919b4){_0x367a77['push'](_0x367a77['shift']());}}}(a264_0x3e7d,0x2f67e));import{existsSync,readFileSync}from'node:fs';function a264_0x3e7d(){const _0x1912c0=['.agents','4qqkUHN','unverifiable','660738dAlwxU','reason','not-recorded','\x20has\x20no\x20skills\x20map','109512FzVzgP','.skill-lock.json','lockFile','globalSkillsDirs','2608710ImNMec','recorded','version','36852GYPLxh','\x20is\x20unreadable:\x20','52pONQiu','map','SKILL.md','unusable','10661JuTcDm','number','9KgBVCv','2294400SjemfI','home','1680rSRadW','object','join','\x20uses\x20unsupported\x20version\x20','message','1245XJpaTu','22TRWfEy','parse','.claude','find','kind','skills','utf8','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'];a264_0x3e7d=function(){return _0x1912c0;};return a264_0x3e7d();}import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a264_0x236b48(0x75),a264_0x236b48(0x7d));function a264_0x6413(_0x2f5849,_0xfb4ad2){_0x2f5849=_0x2f5849-0x6c;const _0x3e7d82=a264_0x3e7d();let _0x6413a8=_0x3e7d82[_0x2f5849];return _0x6413a8;}export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a264_0x236b48(0x75),a264_0x236b48(0x72)),join(a264_0x236b48(0x6f),'skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x3dd027,_0x22092e){const _0x4c44df=a264_0x236b48;if(!existsSync(_0x3dd027))return{'kind':_0x4c44df(0x7a)};let _0x916fea;try{_0x916fea=JSON[_0x4c44df(0x6e)](readFileSync(_0x3dd027,_0x4c44df(0x73)));}catch(_0x2183d4){return{'kind':_0x4c44df(0x88),'reason':_0x3dd027+_0x4c44df(0x84)+_0x2183d4[_0x4c44df(0x92)]};}const _0x594b71=_0x916fea;if(typeof _0x594b71?.[_0x4c44df(0x82)]!==_0x4c44df(0x8a)||!SUPPORTED_LOCK_VERSIONS['includes'](_0x594b71[_0x4c44df(0x82)]))return{'kind':_0x4c44df(0x88),'reason':_0x3dd027+_0x4c44df(0x91)+String(_0x594b71?.[_0x4c44df(0x82)])};if(!_0x594b71['skills']||typeof _0x594b71[_0x4c44df(0x72)]!==_0x4c44df(0x8f))return{'kind':_0x4c44df(0x88),'reason':_0x3dd027+_0x4c44df(0x7b)};return _0x594b71['skills'][_0x22092e]?{'kind':_0x4c44df(0x81)}:{'kind':_0x4c44df(0x7a)};}export function resolveInstalledSkill(_0x171891,_0xab17db){const _0x3f7e6c=a264_0x236b48,_0x4d9e4b=_0xab17db?.[_0x3f7e6c(0x8d)]??homedir(),_0x10f045=_0xab17db?.[_0x3f7e6c(0x7f)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x3f7e6c(0x86)](_0xebd96d=>join(_0x4d9e4b,_0xebd96d)),_0x36fb90=_0xab17db?.[_0x3f7e6c(0x7e)]??join(_0x4d9e4b,SKILL_LOCK_RELATIVE_PATH),_0x3218fb=_0x10f045[_0x3f7e6c(0x86)](_0x1ef2e3=>join(_0x1ef2e3,_0x171891,_0x3f7e6c(0x87))),_0x1eafcc=_0x3218fb[_0x3f7e6c(0x70)](_0x16f1dc=>existsSync(_0x16f1dc));if(_0x1eafcc)return{'state':'present','path':_0x1eafcc};const _0x471901=readLockLookup(_0x36fb90,_0x171891);if(_0x471901[_0x3f7e6c(0x71)]===_0x3f7e6c(0x88))return{'state':_0x3f7e6c(0x77),'reason':_0x471901[_0x3f7e6c(0x79)]};if(_0x471901[_0x3f7e6c(0x71)]===_0x3f7e6c(0x81))return{'state':_0x3f7e6c(0x77),'reason':_0x36fb90+'\x20records\x20\x22'+_0x171891+_0x3f7e6c(0x74)+('('+_0x3218fb[_0x3f7e6c(0x90)](',\x20')+')')};return{'state':'absent','checked':_0x3218fb};}
1
+ function a265_0x3f4c(_0x340f6f,_0x38dbeb){_0x340f6f=_0x340f6f-0x112;const _0x1d368d=a265_0x1d36();let _0x3f4c6d=_0x1d368d[_0x340f6f];return _0x3f4c6d;}const a265_0xcc088f=a265_0x3f4c;(function(_0x3df682,_0x56ff20){const _0x1eb44a=a265_0x3f4c,_0x22a1b8=_0x3df682();while(!![]){try{const _0x220e1f=parseInt(_0x1eb44a(0x116))/0x1+parseInt(_0x1eb44a(0x118))/0x2*(-parseInt(_0x1eb44a(0x133))/0x3)+parseInt(_0x1eb44a(0x125))/0x4+parseInt(_0x1eb44a(0x129))/0x5+parseInt(_0x1eb44a(0x115))/0x6+-parseInt(_0x1eb44a(0x122))/0x7*(-parseInt(_0x1eb44a(0x126))/0x8)+-parseInt(_0x1eb44a(0x12b))/0x9;if(_0x220e1f===_0x56ff20)break;else _0x22a1b8['push'](_0x22a1b8['shift']());}catch(_0x378d79){_0x22a1b8['push'](_0x22a1b8['shift']());}}}(a265_0x1d36,0x4a3a0));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join('.agents','.skill-lock.json');export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a265_0xcc088f(0x11c),a265_0xcc088f(0x113)),join(a265_0xcc088f(0x121),'skills')];function a265_0x1d36(){const _0x4c346b=['message','\x20records\x20\x22','1030932cjwFew','10192vKesTU','SKILL.md','version','668630rJZdES','object','3569742tIOnTv','join','number','includes','utf8','reason','\x20uses\x20unsupported\x20version\x20','not-recorded','1197918OPVijg','unusable','skills','globalSkillsDirs','798516POLikE','151189KMwHWz','parse','2PLvKXw','find','home','unverifiable','.agents','map','recorded','present','kind','.claude','2331CtSOdV'];a265_0x1d36=function(){return _0x4c346b;};return a265_0x1d36();}const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x1c8142,_0x54ab26){const _0x139028=a265_0xcc088f;if(!existsSync(_0x1c8142))return{'kind':_0x139028(0x132)};let _0x33c95e;try{_0x33c95e=JSON[_0x139028(0x117)](readFileSync(_0x1c8142,_0x139028(0x12f)));}catch(_0x57410a){return{'kind':'unusable','reason':_0x1c8142+'\x20is\x20unreadable:\x20'+_0x57410a[_0x139028(0x123)]};}const _0x17c99f=_0x33c95e;if(typeof _0x17c99f?.[_0x139028(0x128)]!==_0x139028(0x12d)||!SUPPORTED_LOCK_VERSIONS[_0x139028(0x12e)](_0x17c99f[_0x139028(0x128)]))return{'kind':_0x139028(0x112),'reason':_0x1c8142+_0x139028(0x131)+String(_0x17c99f?.['version'])};if(!_0x17c99f[_0x139028(0x113)]||typeof _0x17c99f[_0x139028(0x113)]!==_0x139028(0x12a))return{'kind':_0x139028(0x112),'reason':_0x1c8142+'\x20has\x20no\x20skills\x20map'};return _0x17c99f[_0x139028(0x113)][_0x54ab26]?{'kind':'recorded'}:{'kind':_0x139028(0x132)};}export function resolveInstalledSkill(_0x278f3b,_0xfc398b){const _0x4c3da5=a265_0xcc088f,_0x6a1e48=_0xfc398b?.[_0x4c3da5(0x11a)]??homedir(),_0x3d2aa2=_0xfc398b?.[_0x4c3da5(0x114)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS['map'](_0x549483=>join(_0x6a1e48,_0x549483)),_0x43ed1f=_0xfc398b?.['lockFile']??join(_0x6a1e48,SKILL_LOCK_RELATIVE_PATH),_0x47431a=_0x3d2aa2[_0x4c3da5(0x11d)](_0x2b8420=>join(_0x2b8420,_0x278f3b,_0x4c3da5(0x127))),_0x5add15=_0x47431a[_0x4c3da5(0x119)](_0x219509=>existsSync(_0x219509));if(_0x5add15)return{'state':_0x4c3da5(0x11f),'path':_0x5add15};const _0x49ca87=readLockLookup(_0x43ed1f,_0x278f3b);if(_0x49ca87[_0x4c3da5(0x120)]===_0x4c3da5(0x112))return{'state':_0x4c3da5(0x11b),'reason':_0x49ca87[_0x4c3da5(0x130)]};if(_0x49ca87[_0x4c3da5(0x120)]===_0x4c3da5(0x11e))return{'state':_0x4c3da5(0x11b),'reason':_0x43ed1f+_0x4c3da5(0x124)+_0x278f3b+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0x47431a[_0x4c3da5(0x12c)](',\x20')+')')};return{'state':'absent','checked':_0x47431a};}
@@ -1 +1 @@
1
- (function(_0x3e4fb7,_0x2f7701){const _0x45b837=a265_0x46d1,_0x3e0b59=_0x3e4fb7();while(!![]){try{const _0x27681d=-parseInt(_0x45b837(0x1c3))/0x1+parseInt(_0x45b837(0x1c9))/0x2+-parseInt(_0x45b837(0x1d1))/0x3+-parseInt(_0x45b837(0x1c7))/0x4*(parseInt(_0x45b837(0x1c8))/0x5)+-parseInt(_0x45b837(0x1cc))/0x6+parseInt(_0x45b837(0x1ce))/0x7+parseInt(_0x45b837(0x1cb))/0x8*(parseInt(_0x45b837(0x1c5))/0x9);if(_0x27681d===_0x2f7701)break;else _0x3e0b59['push'](_0x3e0b59['shift']());}catch(_0x58c358){_0x3e0b59['push'](_0x3e0b59['shift']());}}}(a265_0x4e7c,0xe020f));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(_0x3acfc4){const _0x1c209c=a265_0x46d1;return SENSITIVE_PATTERNS[_0x1c209c(0x1cd)](_0x1c5139=>_0x1c5139['test'](_0x3acfc4));}function a265_0x4e7c(){const _0x4e8f62=['781443NpNUFj','error','1112233BCylqn','stringify','22671JufdqM','durationMs','5082492VetfUb','5crwNkW','3401478GgQkuG','[REDACTED]','5000CKnydv','5780868ajDmEF','some','8748124BmOsdr','message','flags'];a265_0x4e7c=function(){return _0x4e8f62;};return a265_0x4e7c();}function a265_0x46d1(_0x17f41e,_0x36791f){_0x17f41e=_0x17f41e-0x1c2;const _0x4e7c1e=a265_0x4e7c();let _0x46d19d=_0x4e7c1e[_0x17f41e];return _0x46d19d;}function sanitizeFlags(_0x4a7937){const _0xae304d=a265_0x46d1,_0x235a12={};for(const [_0x13729d,_0x467ee1]of Object['entries'](_0x4a7937)){isSensitiveKey(_0x13729d)?_0x235a12[_0x13729d]=_0x467ee1!=null&&_0x467ee1!==''?_0xae304d(0x1ca):_0x467ee1:_0x235a12[_0x13729d]=_0x467ee1;}return _0x235a12;}export async function reportCommandTrace(_0x1a6e17){const _0x483baf=a265_0x46d1;try{const _0x9e3f10=sanitizeFlags(_0x1a6e17[_0x483baf(0x1d0)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x1a6e17['service'],'command.name':_0x1a6e17['command'],'command.flags':JSON[_0x483baf(0x1c4)](_0x9e3f10),..._0x1a6e17[_0x483baf(0x1c6)]!=null?{'command.duration_ms':_0x1a6e17[_0x483baf(0x1c6)]}:{},..._0x1a6e17[_0x483baf(0x1c2)]?{'command.error':_0x1a6e17[_0x483baf(0x1c2)]instanceof Error?_0x1a6e17[_0x483baf(0x1c2)][_0x483baf(0x1cf)]:String(_0x1a6e17[_0x483baf(0x1c2)])}:{}}});}catch{}}
1
+ (function(_0x47c743,_0x9d20ab){const _0x252ed4=a266_0x296d,_0x592d2d=_0x47c743();while(!![]){try{const _0x2560bf=-parseInt(_0x252ed4(0x15c))/0x1+parseInt(_0x252ed4(0x165))/0x2+parseInt(_0x252ed4(0x167))/0x3*(-parseInt(_0x252ed4(0x162))/0x4)+-parseInt(_0x252ed4(0x163))/0x5*(-parseInt(_0x252ed4(0x15d))/0x6)+parseInt(_0x252ed4(0x169))/0x7*(parseInt(_0x252ed4(0x16b))/0x8)+-parseInt(_0x252ed4(0x16c))/0x9+-parseInt(_0x252ed4(0x164))/0xa;if(_0x2560bf===_0x9d20ab)break;else _0x592d2d['push'](_0x592d2d['shift']());}catch(_0x5b08c7){_0x592d2d['push'](_0x592d2d['shift']());}}}(a266_0x59c9,0x7291f));function a266_0x296d(_0x359901,_0x4eb5aa){_0x359901=_0x359901-0x15b;const _0x59c9c4=a266_0x59c9();let _0x296da9=_0x59c9c4[_0x359901];return _0x296da9;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a266_0x59c9(){const _0x3b2b38=['7LBLBGv','stringify','2713376UvxsLr','3430593usvVbR','flags','91451tdcyyi','5375406fvQRCD','error','test','[REDACTED]','command','12eNtEDl','5cBNQyx','9388140qZeLga','1802274JcYKTp','durationMs','255489TshEXC','some'];a266_0x59c9=function(){return _0x3b2b38;};return a266_0x59c9();}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(_0x2c777f){const _0x42bbf8=a266_0x296d;return SENSITIVE_PATTERNS[_0x42bbf8(0x168)](_0x45539b=>_0x45539b[_0x42bbf8(0x15f)](_0x2c777f));}function sanitizeFlags(_0x332f3e){const _0x55557e=a266_0x296d,_0x5d10a8={};for(const [_0x151641,_0x5ee087]of Object['entries'](_0x332f3e)){isSensitiveKey(_0x151641)?_0x5d10a8[_0x151641]=_0x5ee087!=null&&_0x5ee087!==''?_0x55557e(0x160):_0x5ee087:_0x5d10a8[_0x151641]=_0x5ee087;}return _0x5d10a8;}export async function reportCommandTrace(_0x1204b4){const _0x4cc0a4=a266_0x296d;try{const _0x15e38c=sanitizeFlags(_0x1204b4[_0x4cc0a4(0x15b)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x1204b4['service'],'command.name':_0x1204b4[_0x4cc0a4(0x161)],'command.flags':JSON[_0x4cc0a4(0x16a)](_0x15e38c),..._0x1204b4[_0x4cc0a4(0x166)]!=null?{'command.duration_ms':_0x1204b4[_0x4cc0a4(0x166)]}:{},..._0x1204b4[_0x4cc0a4(0x15e)]?{'command.error':_0x1204b4['error']instanceof Error?_0x1204b4[_0x4cc0a4(0x15e)]['message']:String(_0x1204b4[_0x4cc0a4(0x15e)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a266_0x2233(_0xbe7f0,_0x1f6bde){_0xbe7f0=_0xbe7f0-0xae;var _0x3b9191=a266_0x3b91();var _0x223304=_0x3b9191[_0xbe7f0];return _0x223304;}(function(_0x23b5c6,_0x35e2b3){var _0x245956=a266_0x2233,_0x59e8b2=_0x23b5c6();while(!![]){try{var _0x392790=-parseInt(_0x245956(0xb5))/0x1+parseInt(_0x245956(0xaf))/0x2+-parseInt(_0x245956(0xae))/0x3*(-parseInt(_0x245956(0xb3))/0x4)+-parseInt(_0x245956(0xb2))/0x5+parseInt(_0x245956(0xb4))/0x6*(-parseInt(_0x245956(0xb8))/0x7)+-parseInt(_0x245956(0xb1))/0x8+parseInt(_0x245956(0xb0))/0x9;if(_0x392790===_0x35e2b3)break;else _0x59e8b2['push'](_0x59e8b2['shift']());}catch(_0x5e0de6){_0x59e8b2['push'](_0x59e8b2['shift']());}}}(a266_0x3b91,0x76f34));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x327ac3,_0x3a5001){var _0x530a03=a266_0x2233;try{await sendCliTraceLog({'spanName':_0x530a03(0xb6),'logData':{'rabetbase.help.kind':_0x327ac3,..._0x3a5001?.[_0x530a03(0xb7)]&&{'rabetbase.help.service':_0x3a5001[_0x530a03(0xb7)]}}});}catch(_0x238bcb){console['error']('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x238bcb);}}function a266_0x3b91(){var _0x274608=['36hQNDLa','12pRkyaW','745899sfNrrQ','cli.help','service','45514LqpdFZ','187134PmnLaB','1802776tEUpSs','6564060CjbwDv','1534016CRJKxZ','3771275YFXePQ'];a266_0x3b91=function(){return _0x274608;};return a266_0x3b91();}
1
+ (function(_0x181bb0,_0x44b216){var _0x59e624=a267_0x86d3,_0xf9af33=_0x181bb0();while(!![]){try{var _0x30e826=parseInt(_0x59e624(0x133))/0x1*(-parseInt(_0x59e624(0x12f))/0x2)+parseInt(_0x59e624(0x139))/0x3+parseInt(_0x59e624(0x130))/0x4+-parseInt(_0x59e624(0x12c))/0x5+parseInt(_0x59e624(0x12d))/0x6*(-parseInt(_0x59e624(0x135))/0x7)+parseInt(_0x59e624(0x138))/0x8*(parseInt(_0x59e624(0x137))/0x9)+parseInt(_0x59e624(0x131))/0xa;if(_0x30e826===_0x44b216)break;else _0xf9af33['push'](_0xf9af33['shift']());}catch(_0x335bd7){_0xf9af33['push'](_0xf9af33['shift']());}}}(a267_0x5a32,0x4d3d0));function a267_0x5a32(){var _0x196ef9=['1327500pobQSh','665320TBYnlG','Failed\x20to\x20report\x20CLI\x20help\x20trace:','5908BixBQP','error','154Ynchhg','service','6273PRySgU','6824iaiNwy','1514190QWlLvl','2634770YNfskM','91452eeZPpU','cli.help','108mDMJMU'];a267_0x5a32=function(){return _0x196ef9;};return a267_0x5a32();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a267_0x86d3(_0x1cadb0,_0x1cec1b){_0x1cadb0=_0x1cadb0-0x12c;var _0x5a325a=a267_0x5a32();var _0x86d382=_0x5a325a[_0x1cadb0];return _0x86d382;}export async function reportCliHelpTrace(_0x59028d,_0x13a25d){var _0x3644f0=a267_0x86d3;try{await sendCliTraceLog({'spanName':_0x3644f0(0x12e),'logData':{'rabetbase.help.kind':_0x59028d,..._0x13a25d?.['service']&&{'rabetbase.help.service':_0x13a25d[_0x3644f0(0x136)]}}});}catch(_0x2c11a8){console[_0x3644f0(0x134)](_0x3644f0(0x132),_0x2c11a8);}}
@@ -1 +1 @@
1
- (function(_0x580b2d,_0x52c0eb){const _0x50ec81=a267_0x2645,_0x44de9d=_0x580b2d();while(!![]){try{const _0x28946b=parseInt(_0x50ec81(0x171))/0x1*(parseInt(_0x50ec81(0x173))/0x2)+-parseInt(_0x50ec81(0x179))/0x3+parseInt(_0x50ec81(0x177))/0x4+-parseInt(_0x50ec81(0x17b))/0x5*(-parseInt(_0x50ec81(0x170))/0x6)+-parseInt(_0x50ec81(0x172))/0x7+-parseInt(_0x50ec81(0x17c))/0x8*(parseInt(_0x50ec81(0x175))/0x9)+parseInt(_0x50ec81(0x17e))/0xa;if(_0x28946b===_0x52c0eb)break;else _0x44de9d['push'](_0x44de9d['shift']());}catch(_0x2f8fd0){_0x44de9d['push'](_0x44de9d['shift']());}}}(a267_0x1441,0x75e2c));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';function a267_0x1441(){const _0x3b8901=['1107PVClJL','username','1193404fbYzut','daily','2858547azNRAN','email','4595Xogsgk','37096RTDHFC','tenant','15497170uqVqHv','production','unknown','1158wqrarJ','539254khhGcD','3910403ezkGMS','2nKUQoH','tenant_code'];a267_0x1441=function(){return _0x3b8901;};return a267_0x1441();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';function a267_0x2645(_0x229704,_0x540b32){_0x229704=_0x229704-0x170;const _0x1441d1=a267_0x1441();let _0x26457d=_0x1441d1[_0x229704];return _0x26457d;}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x2c26fb=a267_0x2645,_0x2002ea=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x509da2=_0x2002ea?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x2c26fb(0x180)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x2c26fb(0x178):_0x2c26fb(0x17f))}),setUserContext({'id':_0x509da2?.['id'],'username':_0x509da2?.[_0x2c26fb(0x176)],'nickname':_0x509da2?.['nickname'],'email':_0x509da2?.[_0x2c26fb(0x17a)],'tenantCode':_0x509da2?.[_0x2c26fb(0x17d)]?.[_0x2c26fb(0x174)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x2002ea;}
1
+ (function(_0x22363,_0x12f29e){const _0x1b3175=a268_0x4583,_0x259a5d=_0x22363();while(!![]){try{const _0x44c2e7=parseInt(_0x1b3175(0x18d))/0x1*(parseInt(_0x1b3175(0x186))/0x2)+-parseInt(_0x1b3175(0x183))/0x3*(parseInt(_0x1b3175(0x190))/0x4)+parseInt(_0x1b3175(0x185))/0x5+parseInt(_0x1b3175(0x189))/0x6+-parseInt(_0x1b3175(0x18b))/0x7*(-parseInt(_0x1b3175(0x192))/0x8)+-parseInt(_0x1b3175(0x18c))/0x9*(-parseInt(_0x1b3175(0x191))/0xa)+-parseInt(_0x1b3175(0x18a))/0xb*(parseInt(_0x1b3175(0x184))/0xc);if(_0x44c2e7===_0x12f29e)break;else _0x259a5d['push'](_0x259a5d['shift']());}catch(_0x2ccbbc){_0x259a5d['push'](_0x259a5d['shift']());}}}(a268_0x49e6,0x39413));function a268_0x49e6(){const _0x265f01=['1793412ePEijc','10855669EvottD','500493NKFQpr','97515nfgXMw','1UYAPzh','username','tenant','12znkCDj','140nbgcum','8svXaRa','119331TSRuyh','12UyXSDO','1917215XpzorZ','870382iwYJef','production','email'];a268_0x49e6=function(){return _0x265f01;};return a268_0x49e6();}import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';function a268_0x4583(_0x5d87cb,_0x506c7a){_0x5d87cb=_0x5d87cb-0x183;const _0x49e60c=a268_0x49e6();let _0x4583ae=_0x49e60c[_0x5d87cb];return _0x4583ae;}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x5370d5=a268_0x4583,_0x5ce1ca=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x2dff39=_0x5ce1ca?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':_0x5370d5(0x187))}),setUserContext({'id':_0x2dff39?.['id'],'username':_0x2dff39?.[_0x5370d5(0x18e)],'nickname':_0x2dff39?.['nickname'],'email':_0x2dff39?.[_0x5370d5(0x188)],'tenantCode':_0x2dff39?.[_0x5370d5(0x18f)]?.['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x5ce1ca;}
@@ -1 +1 @@
1
- (function(_0x2d0580,_0x51254a){const _0x1a359d=a268_0x3678,_0x42bf67=_0x2d0580();while(!![]){try{const _0x1435b7=-parseInt(_0x1a359d(0xc1))/0x1+-parseInt(_0x1a359d(0xce))/0x2+-parseInt(_0x1a359d(0xcf))/0x3+parseInt(_0x1a359d(0xcd))/0x4*(parseInt(_0x1a359d(0xc4))/0x5)+parseInt(_0x1a359d(0xc2))/0x6*(parseInt(_0x1a359d(0xca))/0x7)+-parseInt(_0x1a359d(0xcc))/0x8+parseInt(_0x1a359d(0xcb))/0x9*(parseInt(_0x1a359d(0xc7))/0xa);if(_0x1435b7===_0x51254a)break;else _0x42bf67['push'](_0x42bf67['shift']());}catch(_0x269495){_0x42bf67['push'](_0x42bf67['shift']());}}}(a268_0x2650,0xd90c2));function a268_0x3678(_0x38fd17,_0x9f2d24){_0x38fd17=_0x38fd17-0xc1;const _0x2650c0=a268_0x2650();let _0x3678f5=_0x2650c0[_0x38fd17];return _0x3678f5;}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a268_0x2650(){const _0xb24034=['105Eqofab','9nujaZf','5964344TtgDnw','2189228SfOhHG','610420pbByfD','1842543csMSja','253796BOTYkg','413970MROITf','SIGTERM','10tadlDE','then','once','6782170eMNUzS','SIGINT','exit'];a268_0x2650=function(){return _0xb24034;};return a268_0x2650();}export function registerOtelShutdownOnExit(){const _0xe20d2d=a268_0x3678;process[_0xe20d2d(0xc6)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x42b576=()=>{const _0x23c0a1=_0xe20d2d;void flushOtelNodeIfUsed()[_0x23c0a1(0xc5)](()=>process[_0x23c0a1(0xc9)](0x0));};process[_0xe20d2d(0xc6)](_0xe20d2d(0xc8),_0x42b576),process[_0xe20d2d(0xc6)](_0xe20d2d(0xc3),_0x42b576);}export async function exitWithOtelShutdown(_0x45d5e2){const _0x4f0384=a268_0x3678;await flushOtelNodeIfUsed(),process[_0x4f0384(0xc9)](_0x45d5e2);}
1
+ (function(_0x2464ae,_0x484a3a){const _0x246e5d=a269_0xb501,_0x403846=_0x2464ae();while(!![]){try{const _0x3192ca=-parseInt(_0x246e5d(0x12c))/0x1+-parseInt(_0x246e5d(0x127))/0x2*(parseInt(_0x246e5d(0x133))/0x3)+parseInt(_0x246e5d(0x126))/0x4+-parseInt(_0x246e5d(0x128))/0x5+-parseInt(_0x246e5d(0x12e))/0x6+-parseInt(_0x246e5d(0x130))/0x7+-parseInt(_0x246e5d(0x12d))/0x8*(-parseInt(_0x246e5d(0x134))/0x9);if(_0x3192ca===_0x484a3a)break;else _0x403846['push'](_0x403846['shift']());}catch(_0xf3ec29){_0x403846['push'](_0x403846['shift']());}}}(a269_0x291e,0x3409a));import{shutdownTraces}from'@lovrabet/otel-logger';function a269_0x291e(){const _0x290102=['24144DKxivF','once','2808694tEhkPL','beforeExit','then','93kMAnAD','5365917lnxiMz','910756AgrvtG','23974oWeZCG','1992340YGHykV','SIGINT','exit','SIGTERM','31638YUIMtd','16aOCkFN'];a269_0x291e=function(){return _0x290102;};return a269_0x291e();}function a269_0xb501(_0x180fe2,_0x1fa467){_0x180fe2=_0x180fe2-0x126;const _0x291e26=a269_0x291e();let _0xb5016=_0x291e26[_0x180fe2];return _0xb5016;}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x5b7320=a269_0xb501;process['once'](_0x5b7320(0x131),()=>{void flushOtelNodeIfUsed();});const _0x5c2b0a=()=>{const _0x890c53=_0x5b7320;void flushOtelNodeIfUsed()[_0x890c53(0x132)](()=>process[_0x890c53(0x12a)](0x0));};process[_0x5b7320(0x12f)](_0x5b7320(0x129),_0x5c2b0a),process[_0x5b7320(0x12f)](_0x5b7320(0x12b),_0x5c2b0a);}export async function exitWithOtelShutdown(_0x18447e){const _0x59cb29=a269_0xb501;await flushOtelNodeIfUsed(),process[_0x59cb29(0x12a)](_0x18447e);}
@@ -1 +1 @@
1
- const a269_0x33bf87=a269_0x46ba;(function(_0x19180d,_0x438f23){const _0x34a9cb=a269_0x46ba,_0x368db1=_0x19180d();while(!![]){try{const _0x4d8902=-parseInt(_0x34a9cb(0xeb))/0x1*(-parseInt(_0x34a9cb(0xef))/0x2)+-parseInt(_0x34a9cb(0xed))/0x3*(parseInt(_0x34a9cb(0xf0))/0x4)+parseInt(_0x34a9cb(0xf6))/0x5*(-parseInt(_0x34a9cb(0xf5))/0x6)+-parseInt(_0x34a9cb(0xf8))/0x7*(parseInt(_0x34a9cb(0xee))/0x8)+parseInt(_0x34a9cb(0xf4))/0x9+parseInt(_0x34a9cb(0xec))/0xa+-parseInt(_0x34a9cb(0xf3))/0xb*(-parseInt(_0x34a9cb(0xf2))/0xc);if(_0x4d8902===_0x438f23)break;else _0x368db1['push'](_0x368db1['shift']());}catch(_0x1b9440){_0x368db1['push'](_0x368db1['shift']());}}}(a269_0x47d0,0xc2302));import{sendTraceLog}from'@lovrabet/otel-logger';function a269_0x46ba(_0x509676,_0x5c476a){_0x509676=_0x509676-0xe9;const _0x47d06c=a269_0x47d0();let _0x46ba97=_0x47d06c[_0x509676];return _0x46ba97;}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a269_0x47d0(){const _0x115ae3=['rabetbase-cli','1281KklNfO','version','spanName','355363sygmCT','7172640KlPDEX','2062209AdtpHi','57800yFxrkB','2huwlRs','4CFTxBC','traceparent','302148yrbGBe','253CrSPGM','10404504qjWejr','1212wNGenk','70aeXXtW'];a269_0x47d0=function(){return _0x115ae3;};return a269_0x47d0();}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a269_0x33bf87(0xf7);export async function sendCliTraceLog(_0x1c2d59){const _0x2b4a4c=a269_0x33bf87;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x1c2d59['traceName']??DEFAULT_TRACE_NAME,'version':_0x1c2d59[_0x2b4a4c(0xe9)]??getCliVersion(),'spanName':_0x1c2d59[_0x2b4a4c(0xea)],'eventType':'manual','logData':_0x1c2d59['logData'],..._0x1c2d59[_0x2b4a4c(0xf1)]&&{'traceparent':_0x1c2d59[_0x2b4a4c(0xf1)]}});}
1
+ const a270_0x3abd74=a270_0x3a06;function a270_0x3a06(_0x2f4a7c,_0x4adc5e){_0x2f4a7c=_0x2f4a7c-0x192;const _0x3984f1=a270_0x3984();let _0x3a06ea=_0x3984f1[_0x2f4a7c];return _0x3a06ea;}function a270_0x3984(){const _0x35d97c=['traceName','4496iarpYU','28nNsYJk','6988869mpCSOh','manual','53180UvsGuY','192417pZkkaM','286198DINnjC','rabetbase-cli','logData','traceparent','6496LkhgXY','320NeIsnG','322921kTUMJp','version','48IMxbIp','759260Mtqypf'];a270_0x3984=function(){return _0x35d97c;};return a270_0x3984();}(function(_0x1e919c,_0x39920d){const _0x269047=a270_0x3a06,_0x6cdd5e=_0x1e919c();while(!![]){try{const _0x85ed81=-parseInt(_0x269047(0x19a))/0x1+-parseInt(_0x269047(0x1a0))/0x2*(parseInt(_0x269047(0x193))/0x3)+-parseInt(_0x269047(0x19d))/0x4+parseInt(_0x269047(0x192))/0x5*(-parseInt(_0x269047(0x19c))/0x6)+parseInt(_0x269047(0x198))/0x7*(parseInt(_0x269047(0x19f))/0x8)+parseInt(_0x269047(0x1a1))/0x9+-parseInt(_0x269047(0x199))/0xa*(-parseInt(_0x269047(0x194))/0xb);if(_0x85ed81===_0x39920d)break;else _0x6cdd5e['push'](_0x6cdd5e['shift']());}catch(_0x48a8d8){_0x6cdd5e['push'](_0x6cdd5e['shift']());}}}(a270_0x3984,0x9b003));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a270_0x3abd74(0x195);export async function sendCliTraceLog(_0x10a7bf){const _0x4d5cf5=a270_0x3abd74;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x10a7bf[_0x4d5cf5(0x19e)]??DEFAULT_TRACE_NAME,'version':_0x10a7bf[_0x4d5cf5(0x19b)]??getCliVersion(),'spanName':_0x10a7bf['spanName'],'eventType':_0x4d5cf5(0x1a2),'logData':_0x10a7bf[_0x4d5cf5(0x196)],..._0x10a7bf[_0x4d5cf5(0x197)]&&{'traceparent':_0x10a7bf['traceparent']}});}