@lovrabet/rabetbase-cli 2.5.1-beta.3 → 2.5.1-beta.4

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 (311) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/api/generate-sdk-config-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/delete.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/init.d.ts +1 -1
  56. package/lib/commands/config/init.js +1 -1
  57. package/lib/commands/config/list.js +1 -1
  58. package/lib/commands/config/set.js +1 -1
  59. package/lib/commands/config/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-restore.js +1 -1
  67. package/lib/commands/dataset/field-update.js +1 -1
  68. package/lib/commands/dataset/generate.js +1 -1
  69. package/lib/commands/dataset/index.js +1 -1
  70. package/lib/commands/dataset/list.js +1 -1
  71. package/lib/commands/dataset/operations.js +1 -1
  72. package/lib/commands/dataset/relation-audit.js +1 -1
  73. package/lib/commands/dataset/relation-create.js +1 -1
  74. package/lib/commands/dataset/relation-delete.js +1 -1
  75. package/lib/commands/dataset/relation-shared.js +1 -1
  76. package/lib/commands/dataset/relation-update.js +1 -1
  77. package/lib/commands/dataset/relations.js +1 -1
  78. package/lib/commands/dataset/rename.js +1 -1
  79. package/lib/commands/dataset/restore.js +1 -1
  80. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  81. package/lib/commands/db/analysis-batching.js +1 -1
  82. package/lib/commands/db/analyze-batch-plan.js +1 -1
  83. package/lib/commands/db/analyze-cancel.js +1 -1
  84. package/lib/commands/db/analyze-start.js +1 -1
  85. package/lib/commands/db/analyze-status.js +1 -1
  86. package/lib/commands/db/create.js +1 -1
  87. package/lib/commands/db/delete.js +1 -1
  88. package/lib/commands/db/detail.js +1 -1
  89. package/lib/commands/db/diff-refresh-start.js +1 -1
  90. package/lib/commands/db/diff-refresh-status.js +1 -1
  91. package/lib/commands/db/diff.js +1 -1
  92. package/lib/commands/db/index.js +1 -1
  93. package/lib/commands/db/list.js +1 -1
  94. package/lib/commands/db/shared.js +1 -1
  95. package/lib/commands/db/table-diff-shared.js +1 -1
  96. package/lib/commands/db/tables.js +1 -1
  97. package/lib/commands/db/test.js +1 -1
  98. package/lib/commands/db/update.js +1 -1
  99. package/lib/commands/deployment/auto-sync.js +1 -1
  100. package/lib/commands/deployment/index.js +1 -1
  101. package/lib/commands/deployment/sync.js +1 -1
  102. package/lib/commands/doctor.js +1 -1
  103. package/lib/commands/file/index.js +1 -1
  104. package/lib/commands/issue/index.js +1 -1
  105. package/lib/commands/issue/nudge.js +1 -1
  106. package/lib/commands/issue/report.js +1 -1
  107. package/lib/commands/issue/shared.js +1 -1
  108. package/lib/commands/kb/create.js +1 -1
  109. package/lib/commands/kb/delete.js +1 -1
  110. package/lib/commands/kb/detail.js +1 -1
  111. package/lib/commands/kb/index.js +1 -1
  112. package/lib/commands/kb/list.js +1 -1
  113. package/lib/commands/kb/search.js +1 -1
  114. package/lib/commands/kb/shared.js +1 -1
  115. package/lib/commands/kb/update.js +1 -1
  116. package/lib/commands/logs/index.js +1 -1
  117. package/lib/commands/menu/asset-update.js +1 -1
  118. package/lib/commands/menu/delete.js +1 -1
  119. package/lib/commands/menu/external-link-create.js +1 -1
  120. package/lib/commands/menu/external-link-update.js +1 -1
  121. package/lib/commands/menu/group-create.js +1 -1
  122. package/lib/commands/menu/group-update.js +1 -1
  123. package/lib/commands/menu/index.js +1 -1
  124. package/lib/commands/menu/list.js +1 -1
  125. package/lib/commands/menu/move.js +1 -1
  126. package/lib/commands/menu/regroup-start.js +1 -1
  127. package/lib/commands/menu/rename.js +1 -1
  128. package/lib/commands/menu/shared/compare-table.js +1 -1
  129. package/lib/commands/menu/shared/delete-plan.js +1 -1
  130. package/lib/commands/menu/shared/facts.js +1 -1
  131. package/lib/commands/menu/shared/index.js +1 -1
  132. package/lib/commands/menu/shared/inquirer.js +1 -1
  133. package/lib/commands/menu/shared/local-pages.js +1 -1
  134. package/lib/commands/menu/shared/logic.js +1 -1
  135. package/lib/commands/menu/shared/mutations.js +1 -1
  136. package/lib/commands/menu/shared/service.js +1 -1
  137. package/lib/commands/menu/shared/sync-core.js +1 -1
  138. package/lib/commands/menu/shared/update-core.js +1 -1
  139. package/lib/commands/menu/shared/valid-url.js +1 -1
  140. package/lib/commands/menu/sync.js +1 -1
  141. package/lib/commands/menu/visibility-update.js +1 -1
  142. package/lib/commands/notification/config-create.js +1 -1
  143. package/lib/commands/notification/config-delete.js +1 -1
  144. package/lib/commands/notification/config-list.js +1 -1
  145. package/lib/commands/notification/config-update.js +1 -1
  146. package/lib/commands/notification/index.js +1 -1
  147. package/lib/commands/notification/shared.js +1 -1
  148. package/lib/commands/ocr/index.js +1 -1
  149. package/lib/commands/page/create.js +1 -1
  150. package/lib/commands/page/custom/detail.js +1 -1
  151. package/lib/commands/page/custom/list.js +1 -1
  152. package/lib/commands/page/custom/publish.js +1 -1
  153. package/lib/commands/page/custom/shared.js +1 -1
  154. package/lib/commands/page/custom/syntax.js +1 -1
  155. package/lib/commands/page/custom/template.js +1 -1
  156. package/lib/commands/page/custom/update.js +1 -1
  157. package/lib/commands/page/data-list-status.js +1 -1
  158. package/lib/commands/page/generate-start.js +1 -1
  159. package/lib/commands/page/generate-status.js +1 -1
  160. package/lib/commands/page/index.js +1 -1
  161. package/lib/commands/page/pull.js +1 -1
  162. package/lib/commands/page/push.js +1 -1
  163. package/lib/commands/page/relation-audit.js +1 -1
  164. package/lib/commands/page/restore.js +1 -1
  165. package/lib/commands/page/shared.js +1 -1
  166. package/lib/commands/page/sync.js +1 -1
  167. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  168. package/lib/commands/project/create/format-elapsed.js +1 -1
  169. package/lib/commands/project/create/main.js +1 -1
  170. package/lib/commands/project/create/materialize-project-template.js +1 -1
  171. package/lib/commands/project/create/project-name.js +1 -1
  172. package/lib/commands/project/create/project-template-archive.js +1 -1
  173. package/lib/commands/project/create/project-template-path.js +1 -1
  174. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  175. package/lib/commands/project/create/use-format-code.js +1 -1
  176. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  177. package/lib/commands/project/index.js +1 -1
  178. package/lib/commands/project/upgrade.js +1 -1
  179. package/lib/commands/registry.js +1 -1
  180. package/lib/commands/role/delete.js +1 -1
  181. package/lib/commands/role/detail.js +1 -1
  182. package/lib/commands/role/index.js +1 -1
  183. package/lib/commands/role/list.js +1 -1
  184. package/lib/commands/role/shared.js +1 -1
  185. package/lib/commands/role/update.js +1 -1
  186. package/lib/commands/role/user-add.js +1 -1
  187. package/lib/commands/role/user-remove.js +1 -1
  188. package/lib/commands/role/user-resolve.js +1 -1
  189. package/lib/commands/run/index.js +1 -1
  190. package/lib/commands/schema.js +1 -1
  191. package/lib/commands/sql/create.js +1 -1
  192. package/lib/commands/sql/delete.js +1 -1
  193. package/lib/commands/sql/detail.js +1 -1
  194. package/lib/commands/sql/exec.js +1 -1
  195. package/lib/commands/sql/index.js +1 -1
  196. package/lib/commands/sql/list.js +1 -1
  197. package/lib/commands/sql/pull.js +1 -1
  198. package/lib/commands/sql/push.js +1 -1
  199. package/lib/commands/sql/shared.js +1 -1
  200. package/lib/commands/sql/status.js +1 -1
  201. package/lib/commands/sql/validate.js +1 -1
  202. package/lib/commands/task/index.js +1 -1
  203. package/lib/commands/task/status.js +1 -1
  204. package/lib/commands/tenant/index.js +1 -1
  205. package/lib/commands/tenant/members-list.js +1 -1
  206. package/lib/commands/tenant/shared.js +1 -1
  207. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  208. package/lib/commands/user-account/index.js +1 -1
  209. package/lib/commands/workspace/add.js +1 -1
  210. package/lib/commands/workspace/index.js +1 -1
  211. package/lib/commands/workspace/remove.js +1 -1
  212. package/lib/config/deployment-sync.js +1 -1
  213. package/lib/config/domain-config.d.ts +1 -1
  214. package/lib/config/domain-config.js +1 -1
  215. package/lib/config/project-routing.js +1 -1
  216. package/lib/config/schema.d.ts +1 -1
  217. package/lib/config/schema.js +1 -1
  218. package/lib/constant/cdn.js +1 -1
  219. package/lib/constant/cli.js +1 -1
  220. package/lib/constant/defaults.js +1 -1
  221. package/lib/constant/domain.d.ts +0 -2
  222. package/lib/constant/domain.js +1 -1
  223. package/lib/constant/env.js +1 -1
  224. package/lib/constant/output.js +1 -1
  225. package/lib/constant/paths.js +1 -1
  226. package/lib/constant/region.js +1 -1
  227. package/lib/constant/risk.js +1 -1
  228. package/lib/constant/routing-profile.js +1 -1
  229. package/lib/context/app-resolver.js +1 -1
  230. package/lib/context/auth-resolver.js +1 -1
  231. package/lib/context/config-loader.js +1 -1
  232. package/lib/context.js +1 -1
  233. package/lib/core/alias-resolver.js +1 -1
  234. package/lib/core/api-client.js +1 -1
  235. package/lib/core/bff/config.js +1 -1
  236. package/lib/core/bff/file-system.js +1 -1
  237. package/lib/core/bff/hash.js +1 -1
  238. package/lib/core/bff/lock.js +1 -1
  239. package/lib/core/bff/utils.js +1 -1
  240. package/lib/core/db-resolver.js +1 -1
  241. package/lib/core/kb-search-client.js +1 -1
  242. package/lib/core/page/file-system.js +1 -1
  243. package/lib/core/page/hash.js +1 -1
  244. package/lib/core/page/lock.js +1 -1
  245. package/lib/core/sql-index-auditor.js +1 -1
  246. package/lib/core/sql-sync/config.js +1 -1
  247. package/lib/core/sql-sync/file-system.js +1 -1
  248. package/lib/core/sql-sync/hash.js +1 -1
  249. package/lib/core/sql-sync/lock.js +1 -1
  250. package/lib/core/sql-sync/utils.js +1 -1
  251. package/lib/core/sql-validator.js +1 -1
  252. package/lib/errors.js +1 -1
  253. package/lib/framework/build-all-flags.js +1 -1
  254. package/lib/framework/error-output.js +1 -1
  255. package/lib/framework/explicit-yes.js +1 -1
  256. package/lib/framework/flags.js +1 -1
  257. package/lib/framework/help.js +1 -1
  258. package/lib/framework/index.js +1 -1
  259. package/lib/framework/output.js +1 -1
  260. package/lib/framework/response.js +1 -1
  261. package/lib/framework/runner-alias.js +1 -1
  262. package/lib/framework/runner.js +1 -1
  263. package/lib/framework/schema-export.js +1 -1
  264. package/lib/framework/types.js +1 -1
  265. package/lib/generated/build-info.d.ts +4 -4
  266. package/lib/generated/build-info.js +1 -1
  267. package/lib/help.js +1 -1
  268. package/lib/postinstall.js +1 -1
  269. package/lib/runtime/confirmation.js +1 -1
  270. package/lib/runtime/event.js +1 -1
  271. package/lib/runtime/index.js +1 -1
  272. package/lib/runtime/queue.js +1 -1
  273. package/lib/runtime/resolve.js +1 -1
  274. package/lib/skills/builtin-skill.js +1 -1
  275. package/lib/skills/main.js +1 -1
  276. package/lib/skills/npx-skills-add.js +1 -1
  277. package/lib/skills/skill-presence.js +1 -1
  278. package/lib/telemetry/cli-command-trace.js +1 -1
  279. package/lib/telemetry/cli-help-trace.js +1 -1
  280. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  281. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  282. package/lib/telemetry/send-cli-trace-log.js +1 -1
  283. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  284. package/lib/utils/ai_config.js +1 -1
  285. package/lib/utils/apply-jq-filter.js +1 -1
  286. package/lib/utils/cdn-config.js +1 -1
  287. package/lib/utils/check-sdk-version.js +1 -1
  288. package/lib/utils/cli-version-check.js +1 -1
  289. package/lib/utils/cli-version-policy.js +1 -1
  290. package/lib/utils/config.js +1 -1
  291. package/lib/utils/entity-with-id.js +1 -1
  292. package/lib/utils/file-utils.js +1 -1
  293. package/lib/utils/guides-cdn.js +1 -1
  294. package/lib/utils/http-client.js +1 -1
  295. package/lib/utils/is-non-interactive.js +1 -1
  296. package/lib/utils/logger.js +1 -1
  297. package/lib/utils/params.js +1 -1
  298. package/lib/utils/platform.js +1 -1
  299. package/lib/utils/sleep.js +1 -1
  300. package/lib/utils/template-replacer.js +1 -1
  301. package/lib/utils/update-notice.js +1 -1
  302. package/lib/utils/version.js +1 -1
  303. package/lib/utils/with-active-cookie.js +1 -1
  304. package/lib/utils/write-cli-side-channel.js +1 -1
  305. package/package.json +1 -1
  306. package/skills/rabetbase/SKILL.md +1 -1
  307. package/skills/rabetbase/references/rabetbase-config.md +2 -5
  308. package/skills/rabetbase/references/rabetbase-doctor.md +1 -1
  309. package/skills/rabetbase/references/rabetbase-init.md +0 -2
  310. package/skills/rabetbase/references/rabetbase-kb.md +3 -2
  311. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x1bffcf,_0xcccf5e){const _0x2eb3fd=a258_0x12d6,_0x25e539=_0x1bffcf();while(!![]){try{const _0x4d7aa4=-parseInt(_0x2eb3fd(0x153))/0x1*(-parseInt(_0x2eb3fd(0x169))/0x2)+-parseInt(_0x2eb3fd(0x156))/0x3*(parseInt(_0x2eb3fd(0x150))/0x4)+parseInt(_0x2eb3fd(0x164))/0x5+-parseInt(_0x2eb3fd(0x166))/0x6*(-parseInt(_0x2eb3fd(0x161))/0x7)+-parseInt(_0x2eb3fd(0x14e))/0x8+parseInt(_0x2eb3fd(0x168))/0x9+parseInt(_0x2eb3fd(0x15e))/0xa;if(_0x4d7aa4===_0xcccf5e)break;else _0x25e539['push'](_0x25e539['shift']());}catch(_0xee51c4){_0x25e539['push'](_0x25e539['shift']());}}}(a258_0x1b1f,0x397df));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a258_0x1b1f(){const _0x24507a=['1495143Ncasiv','6FKYqsZ','3207880ScJrXR','risk','20156XsjJdF','_notice','jqFilter','35253vVgroM','format','stringify','87bXFJsd','pretty','trim','write','hint','command','url','error','729900FOJaOC','message','update','2996cKzlRA','validation','code','814755eTSbuw','json','3852uVCBFW','stdout'];a258_0x1b1f=function(){return _0x24507a;};return a258_0x1b1f();}import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';function a258_0x12d6(_0x1da1e7,_0x577338){_0x1da1e7=_0x1da1e7-0x14e;const _0x1b1fe4=a258_0x1b1f();let _0x12d66=_0x1b1fe4[_0x1da1e7];return _0x12d66;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x598bde,_0x4988b4){const _0x15c91c=a258_0x12d6,_0x53bd48=_0x598bde[_0x15c91c(0x151)],{_notice:_0x14d3c1,..._0x1cb70a}=_0x598bde;void _0x14d3c1,baseFormatOutput(_0x1cb70a,_0x4988b4),_0x4988b4[_0x15c91c(0x154)]===_0x15c91c(0x157)&&printPrettyNotice(_0x53bd48);}export function formatCliError(_0x2093e6,_0x9ba271){const _0x11d3b7=a258_0x12d6;if(_0x9ba271[_0x11d3b7(0x154)]===_0x11d3b7(0x157))return![];const _0xbf48bd=_0x2093e6['data'],_0x13a366={'ok':![],'command':_0x9ba271[_0x11d3b7(0x15b)],'risk':_0x9ba271[_0x11d3b7(0x14f)],'data':_0xbf48bd??null,'error':{'code':_0x2093e6[_0x11d3b7(0x163)],'message':_0x2093e6[_0x11d3b7(0x15f)],..._0x2093e6[_0x11d3b7(0x15a)]?{'hint':_0x2093e6[_0x11d3b7(0x15a)]}:{}}},_0x4f79c0=_0x9ba271[_0x11d3b7(0x154)]===_0x11d3b7(0x165)?JSON[_0x11d3b7(0x155)](_0x13a366,null,0x2):JSON[_0x11d3b7(0x155)](_0x13a366);let _0x4effeb=_0x4f79c0;if(_0x9ba271[_0x11d3b7(0x152)]?.[_0x11d3b7(0x158)]())try{_0x4effeb=applyJqFilter(_0x4f79c0,_0x9ba271['jqFilter']);}catch(_0x1528c2){const _0x34fe40=_0x1528c2 instanceof CliError?_0x1528c2:CliErrors[_0x11d3b7(0x162)]('jq:\x20'+(_0x1528c2 instanceof Error?_0x1528c2[_0x11d3b7(0x15f)]:String(_0x1528c2))),_0x587a99={..._0x13a366,'error':{'code':_0x34fe40['code'],'message':_0x34fe40[_0x11d3b7(0x15f)],..._0x34fe40[_0x11d3b7(0x15a)]?{'hint':_0x34fe40[_0x11d3b7(0x15a)]}:{},'cause':_0x13a366['error']}};_0x4effeb=_0x9ba271[_0x11d3b7(0x154)]===_0x11d3b7(0x165)?JSON[_0x11d3b7(0x155)](_0x587a99,null,0x2):JSON[_0x11d3b7(0x155)](_0x587a99);}return process[_0x11d3b7(0x167)][_0x11d3b7(0x159)](_0x4effeb['endsWith']('\x0a')?_0x4effeb:_0x4effeb+'\x0a'),!![];}function printPrettyNotice(_0x551d12){const _0x31cb08=a258_0x12d6;if(!_0x551d12?.[_0x31cb08(0x160)])return;console[_0x31cb08(0x15d)](_0x551d12['update'][_0x31cb08(0x15f)]+'\x20('+_0x551d12[_0x31cb08(0x160)][_0x31cb08(0x15c)]+')');}
1
+ function a258_0x4c0d(_0x3e5e49,_0x493b00){_0x3e5e49=_0x3e5e49-0xc9;const _0x120dd8=a258_0x120d();let _0x4c0d8a=_0x120dd8[_0x3e5e49];return _0x4c0d8a;}(function(_0xd0b0c8,_0x51aab5){const _0x22bee3=a258_0x4c0d,_0x1c05f2=_0xd0b0c8();while(!![]){try{const _0x3a0413=-parseInt(_0x22bee3(0xdf))/0x1*(-parseInt(_0x22bee3(0xcf))/0x2)+parseInt(_0x22bee3(0xcb))/0x3*(parseInt(_0x22bee3(0xdb))/0x4)+-parseInt(_0x22bee3(0xe1))/0x5*(-parseInt(_0x22bee3(0xe4))/0x6)+-parseInt(_0x22bee3(0xcd))/0x7*(parseInt(_0x22bee3(0xe2))/0x8)+-parseInt(_0x22bee3(0xd4))/0x9*(parseInt(_0x22bee3(0xcc))/0xa)+-parseInt(_0x22bee3(0xda))/0xb+parseInt(_0x22bee3(0xd7))/0xc*(parseInt(_0x22bee3(0xce))/0xd);if(_0x3a0413===_0x51aab5)break;else _0x1c05f2['push'](_0x1c05f2['shift']());}catch(_0x272509){_0x1c05f2['push'](_0x1c05f2['shift']());}}}(a258_0x120d,0x3f1df));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x4df5d6,_0x519523){const _0x63925b=a258_0x4c0d,_0x3ca3d9=_0x4df5d6[_0x63925b(0xd6)],{_notice:_0x255857,..._0x24ab2b}=_0x4df5d6;void _0x255857,baseFormatOutput(_0x24ab2b,_0x519523),_0x519523['format']==='pretty'&&printPrettyNotice(_0x3ca3d9);}function a258_0x120d(){const _0x233d3c=['hint','message','3vOJNPZ','556090eAWiSG','133ouFiyR','185263CxRfVi','54206HdLIkL','command','risk','stdout','stringify','9dXSkYE','code','_notice','180LzcyxI','format','error','2450294WwXGRw','304108aCqUAF','json','trim','validation','3AGBHvP','jq:\x20','2118190uvrkip','108568XoLzQH','pretty','6FknAVB','update','write','jqFilter'];a258_0x120d=function(){return _0x233d3c;};return a258_0x120d();}export function formatCliError(_0x5c1ba2,_0x3f9ead){const _0x4932c9=a258_0x4c0d;if(_0x3f9ead[_0x4932c9(0xd8)]===_0x4932c9(0xe3))return![];const _0x3e162d=_0x5c1ba2['data'],_0x3794d5={'ok':![],'command':_0x3f9ead[_0x4932c9(0xd0)],'risk':_0x3f9ead[_0x4932c9(0xd1)],'data':_0x3e162d??null,'error':{'code':_0x5c1ba2[_0x4932c9(0xd5)],'message':_0x5c1ba2['message'],..._0x5c1ba2[_0x4932c9(0xc9)]?{'hint':_0x5c1ba2[_0x4932c9(0xc9)]}:{}}},_0x1d2c4a=_0x3f9ead['format']===_0x4932c9(0xdc)?JSON[_0x4932c9(0xd3)](_0x3794d5,null,0x2):JSON[_0x4932c9(0xd3)](_0x3794d5);let _0x62d073=_0x1d2c4a;if(_0x3f9ead['jqFilter']?.[_0x4932c9(0xdd)]())try{_0x62d073=applyJqFilter(_0x1d2c4a,_0x3f9ead[_0x4932c9(0xe7)]);}catch(_0x9f64c7){const _0x22a060=_0x9f64c7 instanceof CliError?_0x9f64c7:CliErrors[_0x4932c9(0xde)](_0x4932c9(0xe0)+(_0x9f64c7 instanceof Error?_0x9f64c7[_0x4932c9(0xca)]:String(_0x9f64c7))),_0x54fd62={..._0x3794d5,'error':{'code':_0x22a060[_0x4932c9(0xd5)],'message':_0x22a060[_0x4932c9(0xca)],..._0x22a060[_0x4932c9(0xc9)]?{'hint':_0x22a060[_0x4932c9(0xc9)]}:{},'cause':_0x3794d5[_0x4932c9(0xd9)]}};_0x62d073=_0x3f9ead['format']===_0x4932c9(0xdc)?JSON['stringify'](_0x54fd62,null,0x2):JSON[_0x4932c9(0xd3)](_0x54fd62);}return process[_0x4932c9(0xd2)][_0x4932c9(0xe6)](_0x62d073['endsWith']('\x0a')?_0x62d073:_0x62d073+'\x0a'),!![];}function printPrettyNotice(_0x88c1dc){const _0x508bfe=a258_0x4c0d;if(!_0x88c1dc?.['update'])return;console[_0x508bfe(0xd9)](_0x88c1dc[_0x508bfe(0xe5)][_0x508bfe(0xca)]+'\x20('+_0x88c1dc['update']['url']+')');}
@@ -1 +1 @@
1
- function a259_0x4644(_0x55b189,_0x3ca2df){_0x55b189=_0x55b189-0x11c;var _0x239eba=a259_0x239e();var _0x464413=_0x239eba[_0x55b189];return _0x464413;}(function(_0x4f0854,_0x1369ad){var _0x5a88c9=a259_0x4644,_0x42dae4=_0x4f0854();while(!![]){try{var _0x4135fe=-parseInt(_0x5a88c9(0x11f))/0x1*(-parseInt(_0x5a88c9(0x124))/0x2)+-parseInt(_0x5a88c9(0x121))/0x3*(-parseInt(_0x5a88c9(0x11e))/0x4)+-parseInt(_0x5a88c9(0x126))/0x5*(parseInt(_0x5a88c9(0x11c))/0x6)+-parseInt(_0x5a88c9(0x127))/0x7*(-parseInt(_0x5a88c9(0x120))/0x8)+-parseInt(_0x5a88c9(0x122))/0x9*(parseInt(_0x5a88c9(0x125))/0xa)+-parseInt(_0x5a88c9(0x123))/0xb+parseInt(_0x5a88c9(0x11d))/0xc;if(_0x4135fe===_0x1369ad)break;else _0x42dae4['push'](_0x42dae4['shift']());}catch(_0x257b19){_0x42dae4['push'](_0x42dae4['shift']());}}}(a259_0x239e,0x93bd2));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a259_0x239e(){var _0x120c3d=['5517PvynxR','4012987FrnXPn','2LwlAiE','1510HjTnLZ','25tcuSAZ','28mQvXqa','940902wlzjEe','10697868hIQEQB','690996EHwgxN','178649YIlysm','1207432iPHBXM','3JvpoYH'];a259_0x239e=function(){return _0x120c3d;};return a259_0x239e();}
1
+ (function(_0x21047a,_0x2af238){var _0x4b53e0=a259_0x3514,_0x243337=_0x21047a();while(!![]){try{var _0x2bf17b=parseInt(_0x4b53e0(0xa3))/0x1+parseInt(_0x4b53e0(0xa8))/0x2+parseInt(_0x4b53e0(0xa4))/0x3*(-parseInt(_0x4b53e0(0xa6))/0x4)+-parseInt(_0x4b53e0(0xa7))/0x5+parseInt(_0x4b53e0(0xa2))/0x6+parseInt(_0x4b53e0(0xaa))/0x7*(-parseInt(_0x4b53e0(0xab))/0x8)+-parseInt(_0x4b53e0(0xa9))/0x9*(parseInt(_0x4b53e0(0xa5))/0xa);if(_0x2bf17b===_0x2af238)break;else _0x243337['push'](_0x243337['shift']());}catch(_0xbf7b46){_0x243337['push'](_0x243337['shift']());}}}(a259_0x3cbc,0x833a9));function a259_0x3cbc(){var _0x44c43d=['745430WLZdxJ','938205YnyJlQ','21tPAYJz','543944tmUXIF','6035532nEdsZz','699051ERyHdl','642729sQzrPs','10YvRujk','4xRHjoq','5088540uyRNSu'];a259_0x3cbc=function(){return _0x44c43d;};return a259_0x3cbc();}function a259_0x3514(_0x3b44a4,_0x549c40){_0x3b44a4=_0x3b44a4-0xa2;var _0x3cbc4a=a259_0x3cbc();var _0x351405=_0x3cbc4a[_0x3b44a4];return _0x351405;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- function a260_0xc15c(_0x47908b,_0x9cf8f7){_0x47908b=_0x47908b-0xc8;const _0x2d5dc3=a260_0x2d5d();let _0xc15c18=_0x2d5dc3[_0x47908b];return _0xc15c18;}(function(_0xb157a3,_0x51e0b3){const _0x30a2fb=a260_0xc15c,_0x5da872=_0xb157a3();while(!![]){try{const _0xa85b22=-parseInt(_0x30a2fb(0xd8))/0x1+-parseInt(_0x30a2fb(0xd7))/0x2+-parseInt(_0x30a2fb(0xde))/0x3+-parseInt(_0x30a2fb(0xd4))/0x4+parseInt(_0x30a2fb(0xdf))/0x5+parseInt(_0x30a2fb(0xdd))/0x6+parseInt(_0x30a2fb(0xc8))/0x7;if(_0xa85b22===_0x51e0b3)break;else _0x5da872['push'](_0x5da872['shift']());}catch(_0x3990bf){_0x5da872['push'](_0x5da872['shift']());}}}(a260_0x2d5d,0x8c240));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a260_0x2d5d(){const _0x27ac9b=['16072280nbLexj','length','`\x20requires\x20either\x20--code\x20or\x20--alias.','No\x20api.ts\x20found\x20in\x20','\x20api\x20pull`\x20first.','code','map','join','alias','validation','type','\x22.\x20','221640zfNpWB','.\x20Run\x20`','flags','1663484nlNFhY','582413BJwiuA','string','name','some','Available\x20aliases:\x20','3649986oijxZM','3202410boeHvE','1033400vcrLJH'];a260_0x2d5d=function(){return _0x27ac9b;};return a260_0x2d5d();}export function resolveAliasToCode(_0x4e959a,_0x428485,_0x501881,_0x360cc8){const _0x4a1d53=a260_0xc15c,_0x39b8da=_0x4e959a[_0x4a1d53(0xd6)][_0x4a1d53(0xdb)](_0x5d3564=>_0x5d3564['name']===_0x4a1d53(0xcd)&&_0x5d3564[_0x4a1d53(0xd2)]==='string'),_0x153f30=_0x4e959a['flags'][_0x4a1d53(0xdb)](_0x55e334=>_0x55e334[_0x4a1d53(0xda)]===_0x4a1d53(0xd0)&&_0x55e334[_0x4a1d53(0xd2)]===_0x4a1d53(0xd9));if(!_0x39b8da||!_0x153f30)return;const _0x4980e7=_0x428485['code']?String(_0x428485[_0x4a1d53(0xcd)]):'',_0x5ad7f3=_0x428485[_0x4a1d53(0xd0)]?String(_0x428485['alias']):'';if(!_0x4980e7&&!_0x5ad7f3)throw CliErrors[_0x4a1d53(0xd1)]('`'+_0x360cc8+_0x4a1d53(0xca));if(_0x5ad7f3&&!_0x4980e7){const _0x12ea42=resolveAlias(_0x501881,_0x5ad7f3);if(!_0x12ea42){const _0x3ad6cf=listAliases(_0x501881)[_0x4a1d53(0xce)](_0x147f99=>_0x147f99['alias']),_0x5d09c6=_0x3ad6cf[_0x4a1d53(0xc9)]?_0x4a1d53(0xdc)+_0x3ad6cf[_0x4a1d53(0xcf)](',\x20'):_0x4a1d53(0xcb)+_0x501881+_0x4a1d53(0xd5)+CLI_BIN_NAME+_0x4a1d53(0xcc);throw CliErrors[_0x4a1d53(0xd1)]('Unknown\x20alias\x20\x22'+_0x5ad7f3+_0x4a1d53(0xd3)+_0x5d09c6);}_0x428485['code']=_0x12ea42;}}
1
+ function a260_0x4219(){const _0x1bcedd=['636320kvgzlU','join','3plDFAK','map','length','3206016PAokMB','some','No\x20api.ts\x20found\x20in\x20','35480yCJmex','270488Aebehs','9aWTFif','505608qZRoGl','type','831550SBPwrt','code','flags','\x20api\x20pull`\x20first.','`\x20requires\x20either\x20--code\x20or\x20--alias.','151926KfTVvt','Available\x20aliases:\x20','2qJDyPc','56vTlZRs','Unknown\x20alias\x20\x22','.\x20Run\x20`','validation','\x22.\x20','name','alias','string'];a260_0x4219=function(){return _0x1bcedd;};return a260_0x4219();}(function(_0x391573,_0x366a44){const _0x519fbd=a260_0x3d26,_0x4681ef=_0x391573();while(!![]){try{const _0x4fd608=-parseInt(_0x519fbd(0x1b5))/0x1*(parseInt(_0x519fbd(0x1a4))/0x2)+-parseInt(_0x519fbd(0x1af))/0x3*(-parseInt(_0x519fbd(0x1b6))/0x4)+parseInt(_0x519fbd(0x19d))/0x5+parseInt(_0x519fbd(0x1a2))/0x6*(parseInt(_0x519fbd(0x1a5))/0x7)+parseInt(_0x519fbd(0x19b))/0x8*(parseInt(_0x519fbd(0x19a))/0x9)+-parseInt(_0x519fbd(0x1ad))/0xa+-parseInt(_0x519fbd(0x1b2))/0xb;if(_0x4fd608===_0x366a44)break;else _0x4681ef['push'](_0x4681ef['shift']());}catch(_0x4bf616){_0x4681ef['push'](_0x4681ef['shift']());}}}(a260_0x4219,0x1aa4d));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a260_0x3d26(_0x3a2b4a,_0x3cb8f7){_0x3a2b4a=_0x3a2b4a-0x19a;const _0x421971=a260_0x4219();let _0x3d26ec=_0x421971[_0x3a2b4a];return _0x3d26ec;}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x2bcb50,_0x1528a0,_0x2565b2,_0x4db0a4){const _0x9d060=a260_0x3d26,_0x17218e=_0x2bcb50['flags'][_0x9d060(0x1b3)](_0x21ea12=>_0x21ea12[_0x9d060(0x1aa)]==='code'&&_0x21ea12[_0x9d060(0x19c)]==='string'),_0x38f9f1=_0x2bcb50[_0x9d060(0x19f)][_0x9d060(0x1b3)](_0x178212=>_0x178212[_0x9d060(0x1aa)]===_0x9d060(0x1ab)&&_0x178212[_0x9d060(0x19c)]===_0x9d060(0x1ac));if(!_0x17218e||!_0x38f9f1)return;const _0x3c4ff8=_0x1528a0[_0x9d060(0x19e)]?String(_0x1528a0[_0x9d060(0x19e)]):'',_0x30b5e2=_0x1528a0['alias']?String(_0x1528a0[_0x9d060(0x1ab)]):'';if(!_0x3c4ff8&&!_0x30b5e2)throw CliErrors[_0x9d060(0x1a8)]('`'+_0x4db0a4+_0x9d060(0x1a1));if(_0x30b5e2&&!_0x3c4ff8){const _0x41ffb9=resolveAlias(_0x2565b2,_0x30b5e2);if(!_0x41ffb9){const _0x1b6d39=listAliases(_0x2565b2)[_0x9d060(0x1b0)](_0x23a65a=>_0x23a65a[_0x9d060(0x1ab)]),_0x276068=_0x1b6d39[_0x9d060(0x1b1)]?_0x9d060(0x1a3)+_0x1b6d39[_0x9d060(0x1ae)](',\x20'):_0x9d060(0x1b4)+_0x2565b2+_0x9d060(0x1a7)+CLI_BIN_NAME+_0x9d060(0x1a0);throw CliErrors['validation'](_0x9d060(0x1a6)+_0x30b5e2+_0x9d060(0x1a9)+_0x276068);}_0x1528a0['code']=_0x41ffb9;}}
@@ -1 +1 @@
1
- (function(_0x3cadf3,_0x2470a6){const _0x255884=a261_0x24dd,_0x5cd325=_0x3cadf3();while(!![]){try{const _0x2e642d=parseInt(_0x255884(0xbd))/0x1+parseInt(_0x255884(0x8d))/0x2+parseInt(_0x255884(0xa4))/0x3+parseInt(_0x255884(0x83))/0x4+-parseInt(_0x255884(0xa2))/0x5+parseInt(_0x255884(0xad))/0x6+-parseInt(_0x255884(0xa7))/0x7;if(_0x2e642d===_0x2470a6)break;else _0x5cd325['push'](_0x5cd325['shift']());}catch(_0x5c2d4d){_0x5cd325['push'](_0x5cd325['shift']());}}}(a261_0xf807,0xee37f));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a261_0x320a7a}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x15751e){const _0x19d1bf=a261_0x24dd;return typeof _0x15751e===_0x19d1bf(0x90)&&_0x15751e[_0x19d1bf(0x9d)]()?_0x15751e['trim']():undefined;}function resolveEnvAppCode(){const _0x157a35=a261_0x24dd,_0x965be7=stringFlag(process.env.RABETBASE_APPCODE);if(_0x965be7)return{'name':_0x157a35(0x89),'value':_0x965be7};const _0xe83d3c=stringFlag(process.env.LOVRABET_APPCODE);if(_0xe83d3c)return{'name':_0x157a35(0x9f),'value':_0xe83d3c};return undefined;}function hasExplicitAppCode(_0x35d8e5,_0x81b34b){const _0x4da62e=a261_0x24dd;return!!(stringFlag(_0x35d8e5[_0x4da62e(0x81)])||stringFlag(_0x81b34b[_0x4da62e(0x81)]));}function assertEnvAppCodeNotIgnored(_0x2357b1,_0x51438c,_0xcb019e){const _0x891371=a261_0x24dd;if(!_0x51438c||_0xcb019e||_0x2357b1===_0x51438c[_0x891371(0x7d)])return;const _0x421ca4=_0x2357b1?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x2357b1+'\x22.':_0x891371(0x7f);throw CliErrors['validation'](_0x51438c[_0x891371(0xb9)]+'='+_0x51438c['value']+_0x891371(0xb1)+_0x421ca4+'\x20'+(_0x891371(0xb8)+_0x51438c[_0x891371(0xb9)]+'\x22.'));}export function createPipelineEnv(_0x16b62f,_0x2cf00f,_0x522a31=[]){const _0x33086d=a261_0x24dd;return{'rawFlags':_0x2cf00f,'args':_0x522a31,'resolveAppCode':()=>_0x16b62f[_0x33086d(0xa6)],'resolveCookie':()=>_0x16b62f[_0x33086d(0xa1)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a261_0x320a7a(_0x2cf00f),'defaultFormat':_0x16b62f[_0x33086d(0xbf)],'defaultPageSize':_0x16b62f[_0x33086d(0x79)],'defaultVerbose':_0x16b62f[_0x33086d(0xb3)],'apiDir':_0x16b62f[_0x33086d(0x99)],'riskLevel':_0x16b62f['riskLevel'],'selectedAppName':_0x16b62f[_0x33086d(0xb5)],'mergedCli':{'defaultApp':_0x16b62f[_0x33086d(0x91)],'currentApp':_0x16b62f[_0x33086d(0xbe)],'appCode':_0x16b62f[_0x33086d(0xa6)],'apps':_0x16b62f[_0x33086d(0x94)]}};}export function createRabetbaseRunnerAdapter(_0x429aa5={}){const _0x103184=a261_0x24dd;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x220257=>PIPELINE_FLAG_NAMES[_0x103184(0x98)](_0x220257[_0x103184(0xb9)]))[_0x103184(0x93)](({name:_0x2d648f,type:_0xcc9b40,description:_0x3c8afe})=>({'name':_0x2d648f,'type':_0xcc9b40,'description':_0x3c8afe})),'formatOutput':_0x429aa5['formatOutput']??formatOutput,'getCommandLabel'(_0xef9825){const _0x429530=_0x103184;return CLI_BIN_NAME+'\x20'+_0xef9825[_0x429530(0x82)]+'\x20'+_0xef9825['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x5cedd1,{def:_0x191a44}){const _0x1e9a24=_0x103184,_0x3ad4d8=_0x5cedd1[_0x1e9a24(0x8e)]('Edit\x20the\x20config\x20file\x20manually')?'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.':_0x1e9a24(0x86)+_0x191a44['risk']+_0x1e9a24(0xaa)+_0x1e9a24(0x80);return CliErrors[_0x1e9a24(0x8a)](_0x5cedd1+_0x1e9a24(0xb2)+_0x3ad4d8);}},async 'prepare'(_0x1f7a8b,_0x11212a,_0x1c464d,_0x5e2f0b){const _0x103e15=_0x103184,_0xb37b9a=_0x11212a[_0x103e15(0x99)]||DEFAULT_API_DIR;resolveAliasToCode(_0x1f7a8b,_0x1c464d,_0xb37b9a,_0x5e2f0b);const _0x28a3c0=resolveCommandAuthMode(_0x1f7a8b);let _0x483271='';if(_0x28a3c0!==_0x103e15(0x71)){_0x483271=_0x11212a[_0x103e15(0x85)]()||'';if(!_0x483271){if(_0x28a3c0===_0x103e15(0xb6))throw CliErrors[_0x103e15(0xbc)]();}else{const {setActiveCookie:_0x3bb31f}=await import(_0x103e15(0x96));_0x3bb31f(_0x483271);}}const _0x483397=_0x11212a[_0x103e15(0x95)]()??'';if(_0x1f7a8b['requiresAppCode']!==![]){const _0x63768c=hasExplicitAppCode(_0x1c464d,_0x11212a['rawFlags']),_0x10f2f1=_0x11212a[_0x103e15(0xac)]?.[_0x103e15(0x94)]??{},_0x5a0524=_0x11212a['selectedAppName']||_0x11212a['mergedCli']?.[_0x103e15(0xbe)]||_0x11212a[_0x103e15(0xac)]?.[_0x103e15(0x91)];if(!_0x63768c&&_0x5a0524&&!_0x10f2f1[_0x5a0524]){const _0x4aa221=Object[_0x103e15(0xa5)](_0x10f2f1);throw CliErrors[_0x103e15(0x8a)](_0x103e15(0xb4)+_0x5a0524+_0x103e15(0x6d),_0x4aa221['length']>0x0?_0x103e15(0x7e)+_0x4aa221[_0x103e15(0xba)](',\x20')+_0x103e15(0x72)+CLI_BIN_NAME+_0x103e15(0x9b):_0x103e15(0x87)+CLI_BIN_NAME+_0x103e15(0x9b));}assertEnvAppCodeNotIgnored(_0x483397,resolveEnvAppCode(),_0x63768c);if(!_0x483397){const _0x5964ff=Object[_0x103e15(0xa5)](_0x10f2f1);if(!_0x5a0524&&_0x5964ff[_0x103e15(0x70)]>0x1)throw CliErrors[_0x103e15(0x9e)]('Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`'+CLI_BIN_NAME+_0x103e15(0xaf)+_0x5964ff['join'](',\x20')+'.');throw CliErrors[_0x103e15(0x9e)](_0x103e15(0x8f)+CLI_BIN_NAME+_0x103e15(0xb0));}}return{'defaults':{'booleans':{'verbose':_0x11212a[_0x103e15(0xab)]},'numbers':{'pagesize':_0x11212a['defaultPageSize']}},'extras':{'appCode':_0x483397,'cookie':_0x483271,'apiDomain':_0x11212a[_0x103e15(0xa0)](),'apiDir':_0xb37b9a,'selectedAppName':_0x11212a[_0x103e15(0x88)],'mergedCli':_0x11212a['mergedCli']}};},'confirmHighRisk':_0x429aa5[_0x103184(0x6c)]??(async({env:_0x3c3d2a,commandLabel:_0x3f97f3})=>{const _0x5abb80=_0x103184;if(_0x3c3d2a['isNonInteractive'])throw CliErrors[_0x5abb80(0x8a)](_0x5abb80(0x76)+_0x3f97f3+_0x5abb80(0x97));await requireConfirmationPrompt({'lines':[_0x5abb80(0x92)+_0x3f97f3,_0x5abb80(0x75)],'createCancelledError':_0x3d8722=>CliErrors['cancelled'](_0x3d8722)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();function a261_0xf807(){const _0x557f68=['validation','some','pretty','3449612PuDjcJ','includes','Set\x20appcode\x20via\x20`','string','defaultApp','⚠\x20\x20High-risk\x20operation:\x20','map','apps','resolveAppCode','../core/api-client.js','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','has','apiDir','object','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','rejectedFlags','trim','configMissing','LOVRABET_APPCODE','resolveApiDomain','cookie','1396665regfsX','meowKey','4258191rEuYdS','keys','appCode','44103493EozJei','../constant/env.js','hint','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','defaultVerbose','mergedCli','9114750dAIrtZ','find','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','\x0a\x20\x20','verbose','App\x20\x22','explicitAppName','required','hasFormat','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','name','join','production','authRequired','1184422MNpJei','currentApp','format','confirmHighRisk','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','replace','schema','length','none','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','all','update','\x20\x20\x20Continue?\x20[y/N]\x20','High-risk\x20operation\x20`','catch','resolve','pageSize','toUpperCase','rawFlags','execute','value','Available:\x20','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','appcode','service','6831300FTcXoZ','_notice','resolveCookie','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','selectedAppName','RABETBASE_APPCODE'];a261_0xf807=function(){return _0x557f68;};return a261_0xf807();}async function clearRabetbaseCommandState(){const _0x5f753d=a261_0x24dd,{clearActiveCookie:_0x30fcda}=await import(_0x5f753d(0x96));_0x30fcda();}export async function finalizeRabetbaseRuntimeState(){const _0x297817=a261_0x24dd;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x2dbc12},{initEnv:_0x3c13ea}]=await Promise[_0x297817(0x73)]([import('../constant/domain.js'),import(_0x297817(0xa8))]);_0x2dbc12(),_0x3c13ea(_0x297817(0xbb));}}export async function runCommand(_0x2ab599,_0x51eafe,_0x256c7e=terminalRunnerAdapter){const _0x3e2d9d=a261_0x24dd;assertRejectedFlags(_0x2ab599,_0x51eafe[_0x3e2d9d(0x7b)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x2ab599)?withUpdateNotice(_0x2ab599):_0x2ab599,_0x51eafe,_0x256c7e);}function assertRejectedFlags(_0x5d31ff,_0x51a6c5){const _0xf0fd31=a261_0x24dd;for(const _0x1a021e of _0x5d31ff[_0xf0fd31(0x9c)]??[]){const _0x2bcfb5=GLOBAL_FLAGS[_0xf0fd31(0xae)](_0x124f5a=>_0x124f5a['name']===_0x1a021e[_0xf0fd31(0xb9)]),_0x3b0231=new Set([_0x1a021e[_0xf0fd31(0xb9)],toCamelCase(_0x1a021e[_0xf0fd31(0xb9)]),_0x2bcfb5?.[_0xf0fd31(0xa3)]]),_0x11d386=[..._0x3b0231][_0xf0fd31(0x8b)](_0x94ff6d=>{if(!_0x94ff6d)return![];const _0x58c15b=_0x51a6c5[_0x94ff6d];return _0x58c15b!==undefined&&_0x58c15b!==null&&_0x58c15b!==![];});if(_0x11d386)throw CliErrors[_0xf0fd31(0x8a)](_0x1a021e['message'],_0x1a021e[_0xf0fd31(0xa9)]);}}function toCamelCase(_0x4ae7a5){const _0x6a54cc=a261_0x24dd;return _0x4ae7a5[_0x6a54cc(0x6e)](/-([a-z])/g,(_0x2f783a,_0x3d4bdc)=>_0x3d4bdc[_0x6a54cc(0x7a)]());}function shouldAttachUpdateNotice(_0x5e3d3c){const _0x377b6a=a261_0x24dd;if(_0x5e3d3c[_0x377b6a(0xb7)]===![])return![];return![_0x377b6a(0x74),_0x377b6a(0x6f),'doctor'][_0x377b6a(0x8e)](_0x5e3d3c[_0x377b6a(0x82)]);}function withUpdateNotice(_0x4dc4d1){return{..._0x4dc4d1,async 'execute'(_0x45af3d){const _0x5024c8=a261_0x24dd,_0x24db47=shouldResolveUpdateNotice(_0x45af3d)?resolveLatestUpdateNotice()[_0x5024c8(0x77)](()=>null):Promise[_0x5024c8(0x78)](null),_0x59034a=await _0x4dc4d1[_0x5024c8(0x7c)](_0x45af3d);return attachUpdateNotice(_0x59034a,await _0x24db47);}};}function shouldResolveUpdateNotice(_0x1edf34){const _0x2bcc1b=a261_0x24dd;return _0x1edf34[_0x2bcc1b(0xbf)]===_0x2bcc1b(0x8c)&&!_0x1edf34['nonInteractive'];}function a261_0x24dd(_0x365ad7,_0x467b37){_0x365ad7=_0x365ad7-0x6c;const _0xf8071f=a261_0xf807();let _0x24dd46=_0xf8071f[_0x365ad7];return _0x24dd46;}function attachUpdateNotice(_0x44631b,_0x463cbb){const _0x3119c7=a261_0x24dd;if(!_0x463cbb||!_0x44631b||typeof _0x44631b!==_0x3119c7(0x9a))return _0x44631b;const _0x22e610=_0x44631b,_0xeea6b4=typeof _0x22e610[_0x3119c7(0x84)]==='object'&&_0x22e610[_0x3119c7(0x84)]!==null?_0x22e610['_notice']:{};return{..._0x22e610,'_notice':{..._0xeea6b4,'update':_0x463cbb}};}
1
+ (function(_0x23db60,_0x3bf3da){const _0x226e7e=a261_0x5833,_0x1c61b7=_0x23db60();while(!![]){try{const _0x196177=parseInt(_0x226e7e(0x1bc))/0x1+parseInt(_0x226e7e(0x192))/0x2*(parseInt(_0x226e7e(0x190))/0x3)+parseInt(_0x226e7e(0x18d))/0x4+-parseInt(_0x226e7e(0x19a))/0x5*(-parseInt(_0x226e7e(0x1c5))/0x6)+-parseInt(_0x226e7e(0x196))/0x7+parseInt(_0x226e7e(0x1b6))/0x8+-parseInt(_0x226e7e(0x1d7))/0x9;if(_0x196177===_0x3bf3da)break;else _0x1c61b7['push'](_0x1c61b7['shift']());}catch(_0x1bc0c1){_0x1c61b7['push'](_0x1c61b7['shift']());}}}(a261_0x562e,0x8bec7));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a261_0x4eb80b}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x10b206){const _0x4e530b=a261_0x5833;return typeof _0x10b206==='string'&&_0x10b206[_0x4e530b(0x1b7)]()?_0x10b206[_0x4e530b(0x1b7)]():undefined;}function resolveEnvAppCode(){const _0x106e61=a261_0x5833,_0x3fa7c4=stringFlag(process.env.RABETBASE_APPCODE);if(_0x3fa7c4)return{'name':_0x106e61(0x1b8),'value':_0x3fa7c4};const _0x513f34=stringFlag(process.env.LOVRABET_APPCODE);if(_0x513f34)return{'name':_0x106e61(0x1a8),'value':_0x513f34};return undefined;}function hasExplicitAppCode(_0x560481,_0x3fa55b){const _0xc7d664=a261_0x5833;return!!(stringFlag(_0x560481[_0xc7d664(0x1c6)])||stringFlag(_0x3fa55b[_0xc7d664(0x1c6)]));}function assertEnvAppCodeNotIgnored(_0x27b5f6,_0x1ac6f8,_0x5daffb){const _0x12aa8f=a261_0x5833;if(!_0x1ac6f8||_0x5daffb||_0x27b5f6===_0x1ac6f8['value'])return;const _0x330248=_0x27b5f6?_0x12aa8f(0x19b)+_0x27b5f6+'\x22.':_0x12aa8f(0x1ae);throw CliErrors[_0x12aa8f(0x1d2)](_0x1ac6f8[_0x12aa8f(0x1c8)]+'='+_0x1ac6f8[_0x12aa8f(0x1ba)]+_0x12aa8f(0x1d9)+_0x330248+'\x20'+(_0x12aa8f(0x1bf)+_0x1ac6f8[_0x12aa8f(0x1c8)]+'\x22.'));}export function createPipelineEnv(_0x226aab,_0x3b6f41,_0x2d96a2=[]){const _0x4d583c=a261_0x5833;return{'rawFlags':_0x3b6f41,'args':_0x2d96a2,'resolveAppCode':()=>_0x226aab[_0x4d583c(0x1d5)],'resolveCookie':()=>_0x226aab['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a261_0x4eb80b(_0x3b6f41),'defaultFormat':_0x226aab[_0x4d583c(0x197)],'defaultPageSize':_0x226aab[_0x4d583c(0x1c9)],'defaultVerbose':_0x226aab[_0x4d583c(0x18e)],'apiDir':_0x226aab[_0x4d583c(0x19f)],'riskLevel':_0x226aab[_0x4d583c(0x1a5)],'selectedAppName':_0x226aab['explicitAppName'],'mergedCli':{'defaultApp':_0x226aab[_0x4d583c(0x1c1)],'currentApp':_0x226aab['currentApp'],'appCode':_0x226aab[_0x4d583c(0x1d5)],'apps':_0x226aab[_0x4d583c(0x18f)]}};}export function createRabetbaseRunnerAdapter(_0xd9539e={}){const _0x4975cc=a261_0x5833;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0xbff4e4=>PIPELINE_FLAG_NAMES['has'](_0xbff4e4[_0x4975cc(0x1c8)]))[_0x4975cc(0x1cb)](({name:_0xd5b2a,type:_0x4f536e,description:_0x23fbc4})=>({'name':_0xd5b2a,'type':_0x4f536e,'description':_0x23fbc4})),'formatOutput':_0xd9539e[_0x4975cc(0x1a3)]??formatOutput,'getCommandLabel'(_0x4c73f6){const _0x4b5e35=_0x4975cc;return CLI_BIN_NAME+'\x20'+_0x4c73f6[_0x4b5e35(0x1ac)]+'\x20'+_0x4c73f6['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x3c330c,{def:_0x31f69f}){const _0x12c620=_0x4975cc,_0x1d8381=_0x3c330c['includes'](_0x12c620(0x19d))?_0x12c620(0x1da):'A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22'+_0x31f69f['risk']+_0x12c620(0x1bb)+_0x12c620(0x1da);return CliErrors[_0x12c620(0x1d2)](_0x3c330c+_0x12c620(0x198)+_0x1d8381);}},async 'prepare'(_0x5a0789,_0x38368d,_0x1abe30,_0x2ace9c){const _0x416bb7=_0x4975cc,_0x1a21dc=_0x38368d[_0x416bb7(0x19f)]||DEFAULT_API_DIR;resolveAliasToCode(_0x5a0789,_0x1abe30,_0x1a21dc,_0x2ace9c);const _0x4de7db=resolveCommandAuthMode(_0x5a0789);let _0x20dc45='';if(_0x4de7db!==_0x416bb7(0x1a9)){_0x20dc45=_0x38368d[_0x416bb7(0x193)]()||'';if(!_0x20dc45){if(_0x4de7db===_0x416bb7(0x1aa))throw CliErrors[_0x416bb7(0x1ce)]();}else{const {setActiveCookie:_0x15a6ba}=await import('../core/api-client.js');_0x15a6ba(_0x20dc45);}}const _0x2752b0=_0x38368d[_0x416bb7(0x1c3)]()??'';if(_0x5a0789['requiresAppCode']!==![]){const _0x1c8217=hasExplicitAppCode(_0x1abe30,_0x38368d['rawFlags']),_0x8cfd2c=_0x38368d[_0x416bb7(0x1c7)]?.[_0x416bb7(0x18f)]??{},_0x1eea18=_0x38368d[_0x416bb7(0x1b5)]||_0x38368d[_0x416bb7(0x1c7)]?.['currentApp']||_0x38368d[_0x416bb7(0x1c7)]?.[_0x416bb7(0x1c1)];if(!_0x1c8217&&_0x1eea18&&!_0x8cfd2c[_0x1eea18]){const _0x81605f=Object['keys'](_0x8cfd2c);throw CliErrors[_0x416bb7(0x1d2)]('App\x20\x22'+_0x1eea18+_0x416bb7(0x1a1),_0x81605f['length']>0x0?_0x416bb7(0x18c)+_0x81605f[_0x416bb7(0x1cd)](',\x20')+'.\x20Use\x20--app/--appcode,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x416bb7(0x19c):_0x416bb7(0x1d8)+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.');}assertEnvAppCodeNotIgnored(_0x2752b0,resolveEnvAppCode(),_0x1c8217);if(!_0x2752b0){const _0x91a0ab=Object[_0x416bb7(0x1b0)](_0x8cfd2c);if(!_0x1eea18&&_0x91a0ab[_0x416bb7(0x1d0)]>0x1)throw CliErrors['configMissing']('Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20'+_0x91a0ab[_0x416bb7(0x1cd)](',\x20')+'.');throw CliErrors['configMissing'](_0x416bb7(0x1b3)+CLI_BIN_NAME+_0x416bb7(0x1c2));}}return{'defaults':{'booleans':{'verbose':_0x38368d[_0x416bb7(0x1a7)]},'numbers':{'pagesize':_0x38368d[_0x416bb7(0x1a2)]}},'extras':{'appCode':_0x2752b0,'cookie':_0x20dc45,'apiDomain':_0x38368d[_0x416bb7(0x1b1)](),'apiDir':_0x1a21dc,'selectedAppName':_0x38368d[_0x416bb7(0x1b5)],'mergedCli':_0x38368d['mergedCli']}};},'confirmHighRisk':_0xd9539e[_0x4975cc(0x1bd)]??(async({env:_0x2abd8d,commandLabel:_0x4e15f8})=>{const _0x1f377e=_0x4975cc;if(_0x2abd8d[_0x1f377e(0x1b2)])throw CliErrors[_0x1f377e(0x1d2)](_0x1f377e(0x1a0)+_0x4e15f8+_0x1f377e(0x199));await requireConfirmationPrompt({'lines':[_0x1f377e(0x1b4)+_0x4e15f8,_0x1f377e(0x1ab)],'createCancelledError':_0x3c90a3=>CliErrors[_0x1f377e(0x1d1)](_0x3c90a3)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const {clearActiveCookie:_0x1d3e12}=await import('../core/api-client.js');_0x1d3e12();}function a261_0x5833(_0x22b1d6,_0xf4840c){_0x22b1d6=_0x22b1d6-0x18c;const _0x562ea5=a261_0x562e();let _0x58332b=_0x562ea5[_0x22b1d6];return _0x58332b;}export async function finalizeRabetbaseRuntimeState(){const _0x180564=a261_0x5833;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x30e6fe},{initEnv:_0x93ec2d}]=await Promise[_0x180564(0x1be)]([import(_0x180564(0x1d6)),import(_0x180564(0x1ca))]);_0x30e6fe(),_0x93ec2d(_0x180564(0x1a6));}}export async function runCommand(_0x410301,_0x3d58b0,_0x2fff2a=terminalRunnerAdapter){assertRejectedFlags(_0x410301,_0x3d58b0['rawFlags']),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x410301)?withUpdateNotice(_0x410301):_0x410301,_0x3d58b0,_0x2fff2a);}function assertRejectedFlags(_0x76279f,_0x392488){const _0xcc498=a261_0x5833;for(const _0x57f0e5 of _0x76279f['rejectedFlags']??[]){const _0x17c951=GLOBAL_FLAGS[_0xcc498(0x195)](_0x5e85b1=>_0x5e85b1['name']===_0x57f0e5[_0xcc498(0x1c8)]),_0x859165=new Set([_0x57f0e5[_0xcc498(0x1c8)],toCamelCase(_0x57f0e5[_0xcc498(0x1c8)]),_0x17c951?.['meowKey']]),_0x46aeea=[..._0x859165][_0xcc498(0x1b9)](_0x3fa7b7=>{if(!_0x3fa7b7)return![];const _0x10c7a7=_0x392488[_0x3fa7b7];return _0x10c7a7!==undefined&&_0x10c7a7!==null&&_0x10c7a7!==![];});if(_0x46aeea)throw CliErrors[_0xcc498(0x1d2)](_0x57f0e5[_0xcc498(0x1ad)],_0x57f0e5[_0xcc498(0x1cc)]);}}function toCamelCase(_0xad5dbf){const _0x2cafea=a261_0x5833;return _0xad5dbf[_0x2cafea(0x1d4)](/-([a-z])/g,(_0x2c7989,_0x6cf06b)=>_0x6cf06b['toUpperCase']());}function shouldAttachUpdateNotice(_0x22d28b){const _0x3774fe=a261_0x5833;if(_0x22d28b['hasFormat']===![])return![];return![_0x3774fe(0x1af),'schema',_0x3774fe(0x1c0)]['includes'](_0x22d28b[_0x3774fe(0x1ac)]);}function withUpdateNotice(_0xb1ed88){return{..._0xb1ed88,async 'execute'(_0x39e976){const _0x22e03e=a261_0x5833,_0x29920f=shouldResolveUpdateNotice(_0x39e976)?resolveLatestUpdateNotice()[_0x22e03e(0x1cf)](()=>null):Promise[_0x22e03e(0x191)](null),_0x21a46f=await _0xb1ed88[_0x22e03e(0x1c4)](_0x39e976);return attachUpdateNotice(_0x21a46f,await _0x29920f);}};}function shouldResolveUpdateNotice(_0x157a17){const _0x6c610b=a261_0x5833;return _0x157a17[_0x6c610b(0x197)]===_0x6c610b(0x19e)&&!_0x157a17[_0x6c610b(0x1a4)];}function attachUpdateNotice(_0x310bdb,_0x257310){const _0x60a62=a261_0x5833;if(!_0x257310||!_0x310bdb||typeof _0x310bdb!==_0x60a62(0x1d3))return _0x310bdb;const _0xe3149e=_0x310bdb,_0x2b3da0=typeof _0xe3149e['_notice']===_0x60a62(0x1d3)&&_0xe3149e[_0x60a62(0x194)]!==null?_0xe3149e[_0x60a62(0x194)]:{};return{..._0xe3149e,'_notice':{..._0x2b3da0,'update':_0x257310}};}function a261_0x562e(){const _0x35e2d6=['\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','resolveAppCode','execute','6IRJgPh','appcode','mergedCli','name','pageSize','../constant/env.js','map','hint','join','authRequired','catch','length','cancelled','validation','object','replace','appCode','../constant/domain.js','3936006SoNMry','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','Available:\x20','616968MrCYtr','verbose','apps','2187grjsxf','resolve','1470WDtUTd','resolveCookie','_notice','find','5713232nwpfiK','format','\x0a\x20\x20','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','848755rIZPrC','Current\x20resolved\x20appcode\x20is\x20\x22','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','Edit\x20the\x20config\x20file\x20manually','pretty','apiDir','High-risk\x20operation\x20`','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','defaultPageSize','formatOutput','nonInteractive','riskLevel','production','defaultVerbose','LOVRABET_APPCODE','none','required','\x20\x20\x20Continue?\x20[y/N]\x20','service','message','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','update','keys','resolveApiDomain','isNonInteractive','Set\x20appcode\x20via\x20`','⚠\x20\x20High-risk\x20operation:\x20','selectedAppName','6550472KWfflq','trim','RABETBASE_APPCODE','some','value','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','148020FsJEVe','confirmHighRisk','all','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','doctor','defaultApp'];a261_0x562e=function(){return _0x35e2d6;};return a261_0x562e();}
@@ -1 +1 @@
1
- (function(_0xa429e,_0x1707b1){const _0x27d45e=a262_0x594c,_0x2b6624=_0xa429e();while(!![]){try{const _0xa8a3ef=parseInt(_0x27d45e(0x117))/0x1+parseInt(_0x27d45e(0x118))/0x2*(-parseInt(_0x27d45e(0x116))/0x3)+-parseInt(_0x27d45e(0x11c))/0x4+-parseInt(_0x27d45e(0x11a))/0x5+parseInt(_0x27d45e(0x119))/0x6*(-parseInt(_0x27d45e(0x11b))/0x7)+-parseInt(_0x27d45e(0x115))/0x8*(parseInt(_0x27d45e(0x113))/0x9)+parseInt(_0x27d45e(0x114))/0xa*(parseInt(_0x27d45e(0x11d))/0xb);if(_0xa8a3ef===_0x1707b1)break;else _0x2b6624['push'](_0x2b6624['shift']());}catch(_0x5521aa){_0x2b6624['push'](_0x2b6624['shift']());}}}(a262_0x29b8,0xf16be));import{buildSchemaPayload as a262_0x1910cc}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a262_0x594c(_0x2f980a,_0x2b1310){_0x2f980a=_0x2f980a-0x113;const _0x29b863=a262_0x29b8();let _0x594cde=_0x29b863[_0x2f980a];return _0x594cde;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';function a262_0x29b8(){const _0x27b2e9=['816447lhdxGo','2vyzlKq','97308WGrYpB','2472455xVBzAm','679aaASWg','126916loyBny','49057690XNmBmB','23211mCXWjv','10gqtoxf','3208UQbFye','3461490fhwMqU'];a262_0x29b8=function(){return _0x27b2e9;};return a262_0x29b8();}export async function buildSchemaPayload(){const {serviceRegistry:_0x587f6d,findDefinition:_0x119346}=await import('../commands/registry.js');return a262_0x1910cc({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x587f6d,'buildAllFlags':buildAllFlags,'findDefinition':_0x119346});}
1
+ function a262_0x28ae(){const _0x364205=['14AaAxIT','7028iNXrap','13602EBusab','10637MLYoKU','2269452rTrhQe','2706354pGCykq','9910aWNBxh','149215ZWoltL','705OunJYa','13038TIMrGd','1624IGNakp','../commands/registry.js'];a262_0x28ae=function(){return _0x364205;};return a262_0x28ae();}(function(_0x3d95d3,_0x3735e6){const _0x2c4b2a=a262_0x56e0,_0x47d90a=_0x3d95d3();while(!![]){try{const _0x150cf2=-parseInt(_0x2c4b2a(0x12d))/0x1+parseInt(_0x2c4b2a(0x132))/0x2*(-parseInt(_0x2c4b2a(0x128))/0x3)+-parseInt(_0x2c4b2a(0x12a))/0x4+parseInt(_0x2c4b2a(0x12e))/0x5*(-parseInt(_0x2c4b2a(0x12f))/0x6)+-parseInt(_0x2c4b2a(0x127))/0x7*(-parseInt(_0x2c4b2a(0x130))/0x8)+parseInt(_0x2c4b2a(0x12b))/0x9+-parseInt(_0x2c4b2a(0x12c))/0xa*(-parseInt(_0x2c4b2a(0x129))/0xb);if(_0x150cf2===_0x3735e6)break;else _0x47d90a['push'](_0x47d90a['shift']());}catch(_0x28de75){_0x47d90a['push'](_0x47d90a['shift']());}}}(a262_0x28ae,0x63a2a));function a262_0x56e0(_0x24daff,_0x24b99d){_0x24daff=_0x24daff-0x127;const _0x28ae9e=a262_0x28ae();let _0x56e002=_0x28ae9e[_0x24daff];return _0x56e002;}import{buildSchemaPayload as a262_0x37b7d1}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0xf78825=a262_0x56e0,{serviceRegistry:_0x52941b,findDefinition:_0x84969b}=await import(_0xf78825(0x131));return a262_0x37b7d1({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x52941b,'buildAllFlags':buildAllFlags,'findDefinition':_0x84969b});}
@@ -1 +1 @@
1
- (function(_0x5c55f2,_0x4263de){var _0x2bed6b=a263_0x4195,_0x34fb6a=_0x5c55f2();while(!![]){try{var _0x451f1f=-parseInt(_0x2bed6b(0xe5))/0x1*(parseInt(_0x2bed6b(0xea))/0x2)+parseInt(_0x2bed6b(0xe9))/0x3+-parseInt(_0x2bed6b(0xe7))/0x4+parseInt(_0x2bed6b(0xe3))/0x5+parseInt(_0x2bed6b(0xe4))/0x6*(-parseInt(_0x2bed6b(0xe8))/0x7)+parseInt(_0x2bed6b(0xec))/0x8*(-parseInt(_0x2bed6b(0xeb))/0x9)+parseInt(_0x2bed6b(0xe6))/0xa;if(_0x451f1f===_0x4263de)break;else _0x34fb6a['push'](_0x34fb6a['shift']());}catch(_0x287bd8){_0x34fb6a['push'](_0x34fb6a['shift']());}}}(a263_0x47f1,0xbeadf));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';function a263_0x4195(_0x29a688,_0x4f79ac){_0x29a688=_0x29a688-0xe3;var _0x47f1cd=a263_0x47f1();var _0x4195af=_0x47f1cd[_0x29a688];return _0x4195af;}function a263_0x47f1(){var _0x5090e9=['30593860dncSQM','4319960yolmHj','10099299zZDqZG','3641715PGYwAm','16598QWmJgQ','283401yQscdg','152bQFZzO','5944910bcLweb','6kOqXzv','188rjrCxh'];a263_0x47f1=function(){return _0x5090e9;};return a263_0x47f1();}
1
+ (function(_0x1f6cb0,_0x70a965){var _0x44893f=a263_0x2840,_0x3f28f9=_0x1f6cb0();while(!![]){try{var _0x46a735=parseInt(_0x44893f(0xa6))/0x1*(-parseInt(_0x44893f(0xae))/0x2)+parseInt(_0x44893f(0xa7))/0x3*(parseInt(_0x44893f(0xac))/0x4)+-parseInt(_0x44893f(0xad))/0x5+-parseInt(_0x44893f(0xaf))/0x6+parseInt(_0x44893f(0xa9))/0x7+-parseInt(_0x44893f(0xa8))/0x8*(-parseInt(_0x44893f(0xab))/0x9)+parseInt(_0x44893f(0xaa))/0xa;if(_0x46a735===_0x70a965)break;else _0x3f28f9['push'](_0x3f28f9['shift']());}catch(_0xf6a556){_0x3f28f9['push'](_0x3f28f9['shift']());}}}(a263_0x4acc,0x3f699));function a263_0x4acc(){var _0x2980db=['22833RjHaas','41188EylhNq','2038120kfGEXt','501102WuNilQ','255342EdgwXq','1JloOWD','66IZOeTP','88UmtnRw','2989350EIjRnw','2789780YHYocH'];a263_0x4acc=function(){return _0x2980db;};return a263_0x4acc();}function a263_0x2840(_0xf4215b,_0x487726){_0xf4215b=_0xf4215b-0xa6;var _0x4accec=a263_0x4acc();var _0x2840fa=_0x4accec[_0xf4215b];return _0x2840fa;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "2.5.1-beta.3";
2
- export declare const GIT_TAG = "v2.5.1-beta.3";
3
- export declare const GIT_COMMIT = "91a6914";
4
- export declare const BUILD_TIME = "2026-08-29T17:41:18.890Z";
1
+ export declare const VERSION = "2.5.1-beta.4";
2
+ export declare const GIT_TAG = "v2.5.1-beta.4";
3
+ export declare const GIT_COMMIT = "81bc862";
4
+ export declare const BUILD_TIME = "2026-08-30T11:04:24.543Z";
@@ -1 +1 @@
1
- const a264_0x280385=a264_0xd6c9;(function(_0x4ef122,_0x3e2653){const _0x15d62d=a264_0xd6c9,_0x1b6a8c=_0x4ef122();while(!![]){try{const _0x216198=-parseInt(_0x15d62d(0xca))/0x1*(-parseInt(_0x15d62d(0xce))/0x2)+-parseInt(_0x15d62d(0xc2))/0x3*(-parseInt(_0x15d62d(0xd0))/0x4)+-parseInt(_0x15d62d(0xc3))/0x5+-parseInt(_0x15d62d(0xc4))/0x6*(-parseInt(_0x15d62d(0xc5))/0x7)+-parseInt(_0x15d62d(0xc6))/0x8+parseInt(_0x15d62d(0xcb))/0x9*(-parseInt(_0x15d62d(0xc7))/0xa)+parseInt(_0x15d62d(0xcd))/0xb*(parseInt(_0x15d62d(0xc9))/0xc);if(_0x216198===_0x3e2653)break;else _0x1b6a8c['push'](_0x1b6a8c['shift']());}catch(_0x29bd4f){_0x1b6a8c['push'](_0x1b6a8c['shift']());}}}(a264_0x2430,0x8fa61));export const VERSION=a264_0x280385(0xc8);function a264_0xd6c9(_0x300325,_0x2c9ef5){_0x300325=_0x300325-0xc2;const _0x243018=a264_0x2430();let _0xd6c94a=_0x243018[_0x300325];return _0xd6c94a;}export const GIT_TAG=a264_0x280385(0xcc);function a264_0x2430(){const _0x25852a=['36qQUuzN','230969XjToNE','99sLfREd','v2.5.1-beta.3','820809OJJTeR','10xvecQY','91a6914','17716vrFwUm','339vAtuwb','5728575pZgoxa','48OOvPPU','672637bqncTN','1160224DkAsYj','698890zYBwga','2.5.1-beta.3'];a264_0x2430=function(){return _0x25852a;};return a264_0x2430();}export const GIT_COMMIT=a264_0x280385(0xcf);export const BUILD_TIME='2026-08-29T17:41:18.890Z';
1
+ const a264_0x16965b=a264_0x54b8;(function(_0x470feb,_0x3a5780){const _0x243bb5=a264_0x54b8,_0x4a4a5b=_0x470feb();while(!![]){try{const _0xe9da62=parseInt(_0x243bb5(0x10c))/0x1+-parseInt(_0x243bb5(0x105))/0x2+parseInt(_0x243bb5(0x10b))/0x3+-parseInt(_0x243bb5(0x110))/0x4+parseInt(_0x243bb5(0x10a))/0x5*(parseInt(_0x243bb5(0x106))/0x6)+-parseInt(_0x243bb5(0x10d))/0x7*(-parseInt(_0x243bb5(0x107))/0x8)+parseInt(_0x243bb5(0x109))/0x9*(-parseInt(_0x243bb5(0x10f))/0xa);if(_0xe9da62===_0x3a5780)break;else _0x4a4a5b['push'](_0x4a4a5b['shift']());}catch(_0x3d8af4){_0x4a4a5b['push'](_0x4a4a5b['shift']());}}}(a264_0xba2c,0x5a3ed));export const VERSION=a264_0x16965b(0x111);export const GIT_TAG=a264_0x16965b(0x10e);function a264_0x54b8(_0x3c9131,_0x1f2a42){_0x3c9131=_0x3c9131-0x105;const _0xba2cb1=a264_0xba2c();let _0x54b860=_0xba2cb1[_0x3c9131];return _0x54b860;}export const GIT_COMMIT=a264_0x16965b(0x108);function a264_0xba2c(){const _0x36356f=['209058iQZPHO','30OiYmYp','1504izlSZS','81bc862','9679329VNksSH','430120qUMUnw','1053039bMFjEr','671121YJUzmd','14546rMUnCa','v2.5.1-beta.4','10OvcMQu','1173052FpvMBM','2.5.1-beta.4'];a264_0xba2c=function(){return _0x36356f;};return a264_0xba2c();}export const BUILD_TIME='2026-08-30T11:04:24.543Z';
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a265_0x2a00(_0x779d97,_0x183f04){_0x779d97=_0x779d97-0xdb;var _0x16de09=a265_0x16de();var _0x2a007c=_0x16de09[_0x779d97];return _0x2a007c;}(function(_0x5be23f,_0x17ad92){var _0x1ae9f3=a265_0x2a00,_0xc3f937=_0x5be23f();while(!![]){try{var _0x4bfc83=-parseInt(_0x1ae9f3(0xde))/0x1*(-parseInt(_0x1ae9f3(0xe4))/0x2)+-parseInt(_0x1ae9f3(0xea))/0x3+-parseInt(_0x1ae9f3(0xe2))/0x4*(-parseInt(_0x1ae9f3(0xe1))/0x5)+parseInt(_0x1ae9f3(0xdf))/0x6+-parseInt(_0x1ae9f3(0xe0))/0x7*(parseInt(_0x1ae9f3(0xec))/0x8)+parseInt(_0x1ae9f3(0xe7))/0x9*(-parseInt(_0x1ae9f3(0xdd))/0xa)+parseInt(_0x1ae9f3(0xdc))/0xb*(parseInt(_0x1ae9f3(0xe8))/0xc);if(_0x4bfc83===_0x17ad92)break;else _0xc3f937['push'](_0xc3f937['shift']());}catch(_0xe49dcb){_0xc3f937['push'](_0xc3f937['shift']());}}}(a265_0x16de,0x88431));import a265_0x50fb54 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a265_0x16de(){var _0x2ae81f=['3gBDKku','2619204kxIjIO','5975830zBvnTD','612205jcdEGC','4wqGItw','\x20--help','54484OzzVle','\x20\x20Use\x20','log','29772mLRvkC','2892ctQHoE','\x20to\x20view\x20available\x20commands.','845229nFzqxT','bold','8ghxcBH','green','95315OIngFe','3130UVROks'];a265_0x16de=function(){return _0x2ae81f;};return a265_0x16de();}export function showHelp(){var _0x467115=a265_0x2a00;console[_0x467115(0xe6)](),console['log'](a265_0x50fb54['green'][_0x467115(0xeb)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x467115(0xe6)](),console[_0x467115(0xe6)](_0x467115(0xe5)+a265_0x50fb54[_0x467115(0xdb)][_0x467115(0xeb)](CLI_BIN_NAME+_0x467115(0xe3))+_0x467115(0xe9)),console[_0x467115(0xe6)]();}
1
+ (function(_0x8dd73e,_0x55a1e6){var _0x5e62d2=a265_0xebd9,_0x4e028e=_0x8dd73e();while(!![]){try{var _0x3476e4=parseInt(_0x5e62d2(0x173))/0x1+-parseInt(_0x5e62d2(0x174))/0x2+-parseInt(_0x5e62d2(0x179))/0x3*(parseInt(_0x5e62d2(0x170))/0x4)+-parseInt(_0x5e62d2(0x17b))/0x5+parseInt(_0x5e62d2(0x176))/0x6+parseInt(_0x5e62d2(0x17a))/0x7*(-parseInt(_0x5e62d2(0x17d))/0x8)+parseInt(_0x5e62d2(0x16f))/0x9;if(_0x3476e4===_0x55a1e6)break;else _0x4e028e['push'](_0x4e028e['shift']());}catch(_0x534dea){_0x4e028e['push'](_0x4e028e['shift']());}}}(a265_0x4251,0xcabf0));import a265_0x537a9e from'chalk';function a265_0x4251(){var _0x1529ba=['bold','35859WlXiNo','4993331oijqhS','2601045MMnwOS','\x20\x20Use\x20','16FYofSD','36484452jjdTuy','476ZvBYQL','green','log','51343hoCOeK','1399168RSnDSZ','\x20--help','4764858YTZWeR','\x20to\x20view\x20available\x20commands.'];a265_0x4251=function(){return _0x1529ba;};return a265_0x4251();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a265_0xebd9(_0x5cd4a2,_0x14c394){_0x5cd4a2=_0x5cd4a2-0x16f;var _0x4251df=a265_0x4251();var _0xebd91b=_0x4251df[_0x5cd4a2];return _0xebd91b;}export function showHelp(){var _0xf0c34f=a265_0xebd9;console['log'](),console[_0xf0c34f(0x172)](a265_0x537a9e[_0xf0c34f(0x171)]['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console[_0xf0c34f(0x172)](),console[_0xf0c34f(0x172)](_0xf0c34f(0x17c)+a265_0x537a9e[_0xf0c34f(0x171)][_0xf0c34f(0x178)](CLI_BIN_NAME+_0xf0c34f(0x175))+_0xf0c34f(0x177)),console[_0xf0c34f(0x172)]();}
@@ -1 +1 @@
1
- (function(_0x4ffc75,_0xb13a64){const _0x21da09=a266_0x72cb,_0x52c0cb=_0x4ffc75();while(!![]){try{const _0x41ecdf=parseInt(_0x21da09(0xd9))/0x1+parseInt(_0x21da09(0xd8))/0x2+-parseInt(_0x21da09(0xdd))/0x3+parseInt(_0x21da09(0xe0))/0x4+-parseInt(_0x21da09(0xdf))/0x5*(parseInt(_0x21da09(0xdc))/0x6)+parseInt(_0x21da09(0xe1))/0x7*(-parseInt(_0x21da09(0xd7))/0x8)+-parseInt(_0x21da09(0xe2))/0x9*(-parseInt(_0x21da09(0xd6))/0xa);if(_0x41ecdf===_0xb13a64)break;else _0x52c0cb['push'](_0x52c0cb['shift']());}catch(_0x846503){_0x52c0cb['push'](_0x52c0cb['shift']());}}}(a266_0x4085,0xb6646));function a266_0x72cb(_0x22dea1,_0x17fd42){_0x22dea1=_0x22dea1-0xd2;const _0x408507=a266_0x4085();let _0x72cbd9=_0x408507[_0x22dea1];return _0x72cbd9;}function a266_0x4085(){const _0x416418=['warn','changed','Installation\x20failed','1559120wLviPi','8WmLSqg','2849276kqLfGn','590028ugoSVL','installed','\x20at\x20','173190buOOqb','1613196VGhQYc','code','100Qudhbs','972476FTycfY','3861109HeZTAX','9SauGRT','[BUILTIN_SKILL_INSTALL_','log','skillVersion','installedPath'];a266_0x4085=function(){return _0x416418;};return a266_0x4085();}import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x375b3a={}){const _0x420829=a266_0x72cb,_0x4a608b=installBuiltinSkill(_0x375b3a);if(_0x4a608b['ok']){const _0x51fd9e=_0x4a608b[_0x420829(0xd4)]?_0x420829(0xda):'already\x20current',_0x340131=_0x4a608b[_0x420829(0xd2)]?_0x420829(0xdb)+_0x4a608b[_0x420829(0xd2)]:'\x20via\x20skills@latest';return console[_0x420829(0xe4)]('Rabetbase\x20Built-in\x20Skill\x20'+_0x4a608b[_0x420829(0xe5)]+'\x20'+_0x51fd9e+_0x340131),_0x4a608b;}const _0x38f5ec=_0x420829(0xe3)+(_0x4a608b[_0x420829(0xde)]??'FAILED')+']\x20'+(_0x4a608b['error']??_0x420829(0xd5))+'.\x20'+('Repair\x20with:\x20'+_0x4a608b['repairCommand']);if(_0x4a608b[_0x420829(0xde)]==='SOURCE_INVALID')throw new Error(_0x38f5ec);return console[_0x420829(0xd3)](_0x38f5ec),_0x4a608b;}
1
+ (function(_0x2cafa6,_0x5ae3cb){const _0x5e837b=a266_0x176f,_0xd0cc9d=_0x2cafa6();while(!![]){try{const _0x3a67ee=parseInt(_0x5e837b(0x150))/0x1*(parseInt(_0x5e837b(0x14b))/0x2)+parseInt(_0x5e837b(0x14d))/0x3+parseInt(_0x5e837b(0x143))/0x4*(-parseInt(_0x5e837b(0x14c))/0x5)+parseInt(_0x5e837b(0x152))/0x6*(-parseInt(_0x5e837b(0x14a))/0x7)+parseInt(_0x5e837b(0x149))/0x8+-parseInt(_0x5e837b(0x154))/0x9*(-parseInt(_0x5e837b(0x142))/0xa)+parseInt(_0x5e837b(0x146))/0xb*(-parseInt(_0x5e837b(0x151))/0xc);if(_0x3a67ee===_0x5ae3cb)break;else _0xd0cc9d['push'](_0xd0cc9d['shift']());}catch(_0x15c895){_0xd0cc9d['push'](_0xd0cc9d['shift']());}}}(a266_0x5c5f,0x2d301));import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x51e6aa={}){const _0x3892e5=a266_0x176f,_0x36e548=installBuiltinSkill(_0x51e6aa);if(_0x36e548['ok']){const _0x5e21e4=_0x36e548[_0x3892e5(0x14f)]?'installed':_0x3892e5(0x148),_0x5e4739=_0x36e548['installedPath']?'\x20at\x20'+_0x36e548[_0x3892e5(0x144)]:'\x20via\x20skills@latest';return console['log']('Rabetbase\x20Built-in\x20Skill\x20'+_0x36e548[_0x3892e5(0x145)]+'\x20'+_0x5e21e4+_0x5e4739),_0x36e548;}const _0xbce063='[BUILTIN_SKILL_INSTALL_'+(_0x36e548[_0x3892e5(0x155)]??_0x3892e5(0x147))+']\x20'+(_0x36e548[_0x3892e5(0x156)]??_0x3892e5(0x141))+'.\x20'+(_0x3892e5(0x140)+_0x36e548['repairCommand']);if(_0x36e548[_0x3892e5(0x155)]===_0x3892e5(0x14e))throw new Error(_0xbce063);return console[_0x3892e5(0x153)](_0xbce063),_0x36e548;}function a266_0x176f(_0x3e1d57,_0x5dc08d){_0x3e1d57=_0x3e1d57-0x140;const _0x5c5f43=a266_0x5c5f();let _0x176f4a=_0x5c5f43[_0x3e1d57];return _0x176f4a;}function a266_0x5c5f(){const _0x16848a=['15BzOISV','563238HtZyiV','SOURCE_INVALID','changed','3013eXcPfC','12GvOQJt','498BIWPrj','warn','153GukYtY','code','error','Repair\x20with:\x20','Installation\x20failed','2950FLjLeu','297244OCUodF','installedPath','skillVersion','1580469gNgFXm','FAILED','already\x20current','1857656WNvgPz','11165scleUc','172GlXXSP'];a266_0x5c5f=function(){return _0x16848a;};return a266_0x5c5f();}
@@ -1 +1 @@
1
- function a267_0x5916(_0x353468,_0x221b23){_0x353468=_0x353468-0x13f;const _0xc9268f=a267_0xc926();let _0x591692=_0xc9268f[_0x353468];return _0x591692;}(function(_0x1c9e93,_0x3092e6){const _0x21673b=a267_0x5916,_0x3ac77a=_0x1c9e93();while(!![]){try{const _0x2699be=-parseInt(_0x21673b(0x14c))/0x1*(-parseInt(_0x21673b(0x140))/0x2)+-parseInt(_0x21673b(0x150))/0x3+parseInt(_0x21673b(0x14b))/0x4+-parseInt(_0x21673b(0x142))/0x5*(-parseInt(_0x21673b(0x149))/0x6)+-parseInt(_0x21673b(0x152))/0x7+parseInt(_0x21673b(0x141))/0x8*(parseInt(_0x21673b(0x14a))/0x9)+parseInt(_0x21673b(0x147))/0xa;if(_0x2699be===_0x3092e6)break;else _0x3ac77a['push'](_0x3ac77a['shift']());}catch(_0x46b9b7){_0x3ac77a['push'](_0x3ac77a['shift']());}}}(a267_0xc926,0x1a461));const DESCRIPTION_MAX_LENGTH=0x1f4;function a267_0xc926(){const _0x592b2d=['427RDrLmY','.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','slice','This\x20will\x20run\x20the\x20write\x20','574437JaEOKs','high-risk-write','1122079yQqnEc','trim','replace','494rlcNqI','9432kpsYZo','266520xYQkjE','string','write','risk','This\x20will\x20run\x20the\x20high-risk\x20write\x20','1391930ChfMtw','confirmationDescription','18tcIEbg','45vbcTBp','195696kmfFYN'];a267_0xc926=function(){return _0x592b2d;};return a267_0xc926();}export function buildRabetbaseConfirmationRequest(_0x34d96a,_0x3e54b4,_0xd51a81){const _0x2374a5=a267_0x5916,_0x3f2d86=normalizeText(_0x34d96a[_0x2374a5(0x148)],DESCRIPTION_MAX_LENGTH),_0x400ec3=_0x3f2d86||normalizeText(defaultDescription(requireWriteRisk(_0x34d96a),_0x3e54b4),DESCRIPTION_MAX_LENGTH);return{'operation':_0x3e54b4,'risk':requireWriteRisk(_0x34d96a),'description':_0x400ec3,..._0xd51a81?{'signal':_0xd51a81}:{}};}function requireWriteRisk(_0x349656){const _0x2dcaa8=a267_0x5916;if(_0x349656[_0x2dcaa8(0x145)]===_0x2dcaa8(0x144)||_0x349656[_0x2dcaa8(0x145)]==='high-risk-write')return _0x349656['risk'];throw new Error('Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.');}function defaultDescription(_0x57aaae,_0x2e40f4){const _0x310146=a267_0x5916;if(_0x57aaae===_0x310146(0x151))return _0x310146(0x146)+_0x2e40f4+_0x310146(0x14d);return _0x310146(0x14f)+_0x2e40f4+'.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.';}function normalizeText(_0x437845,_0x12f230){const _0xda4cd2=a267_0x5916;if(typeof _0x437845!==_0xda4cd2(0x143))return'';return _0x437845[_0xda4cd2(0x13f)](/[\u0000-\u001f\u007f]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0xda4cd2(0x153)]()[_0xda4cd2(0x14e)](0x0,_0x12f230);}
1
+ (function(_0x4e78da,_0x2656a6){const _0x32137a=a267_0xe715,_0x54a71e=_0x4e78da();while(!![]){try{const _0x43ac1a=parseInt(_0x32137a(0x190))/0x1*(parseInt(_0x32137a(0x194))/0x2)+-parseInt(_0x32137a(0x196))/0x3*(parseInt(_0x32137a(0x18e))/0x4)+parseInt(_0x32137a(0x192))/0x5+-parseInt(_0x32137a(0x191))/0x6+-parseInt(_0x32137a(0x197))/0x7+-parseInt(_0x32137a(0x189))/0x8*(parseInt(_0x32137a(0x185))/0x9)+parseInt(_0x32137a(0x186))/0xa;if(_0x43ac1a===_0x2656a6)break;else _0x54a71e['push'](_0x54a71e['shift']());}catch(_0x11bbf8){_0x54a71e['push'](_0x54a71e['shift']());}}}(a267_0x2b50,0x8c4c9));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x2ec8f9,_0x436ceb,_0x49a4c1){const _0x54b493=a267_0xe715,_0x352326=normalizeText(_0x2ec8f9[_0x54b493(0x198)],DESCRIPTION_MAX_LENGTH),_0x3b9a54=_0x352326||normalizeText(defaultDescription(requireWriteRisk(_0x2ec8f9),_0x436ceb),DESCRIPTION_MAX_LENGTH);return{'operation':_0x436ceb,'risk':requireWriteRisk(_0x2ec8f9),'description':_0x3b9a54,..._0x49a4c1?{'signal':_0x49a4c1}:{}};}function requireWriteRisk(_0x1a602d){const _0x5f30a8=a267_0xe715;if(_0x1a602d[_0x5f30a8(0x193)]===_0x5f30a8(0x18a)||_0x1a602d[_0x5f30a8(0x193)]===_0x5f30a8(0x184))return _0x1a602d[_0x5f30a8(0x193)];throw new Error('Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.');}function a267_0x2b50(){const _0x5f0c38=['This\x20will\x20run\x20the\x20high-risk\x20write\x20','711160qzSZuN','This\x20will\x20run\x20the\x20write\x20','31MCYmhy','2669484TsEQXQ','3714820VKicJH','risk','4328CLipLa','.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','6GUTkLS','4943323elsehv','confirmationDescription','high-risk-write','3186QusNFM','13435160jAXpdQ','.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','string','1632iQgNpT','write','trim','replace'];a267_0x2b50=function(){return _0x5f0c38;};return a267_0x2b50();}function a267_0xe715(_0x83387,_0x554a4a){_0x83387=_0x83387-0x184;const _0x2b50df=a267_0x2b50();let _0xe7157d=_0x2b50df[_0x83387];return _0xe7157d;}function defaultDescription(_0xaffbc9,_0x13864a){const _0x298233=a267_0xe715;if(_0xaffbc9===_0x298233(0x184))return _0x298233(0x18d)+_0x13864a+_0x298233(0x195);return _0x298233(0x18f)+_0x13864a+_0x298233(0x187);}function normalizeText(_0x4eff6c,_0x2a82eb){const _0xd098a5=a267_0xe715;if(typeof _0x4eff6c!==_0xd098a5(0x188))return'';return _0x4eff6c[_0xd098a5(0x18c)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0xd098a5(0x18c)](/\s+/g,'\x20')[_0xd098a5(0x18b)]()['slice'](0x0,_0x2a82eb);}
@@ -1 +1 @@
1
- function a268_0x3750(_0x29a7c3,_0x1dd8d4){_0x29a7c3=_0x29a7c3-0xe5;var _0x24f9df=a268_0x24f9();var _0x3750c2=_0x24f9df[_0x29a7c3];return _0x3750c2;}(function(_0x40ac25,_0x2222aa){var _0x19cadd=a268_0x3750,_0x129bbd=_0x40ac25();while(!![]){try{var _0x4c2f73=-parseInt(_0x19cadd(0xef))/0x1+parseInt(_0x19cadd(0xf0))/0x2+parseInt(_0x19cadd(0xec))/0x3+parseInt(_0x19cadd(0xe8))/0x4*(-parseInt(_0x19cadd(0xf4))/0x5)+parseInt(_0x19cadd(0xf1))/0x6+-parseInt(_0x19cadd(0xe9))/0x7+-parseInt(_0x19cadd(0xeb))/0x8*(-parseInt(_0x19cadd(0xee))/0x9);if(_0x4c2f73===_0x2222aa)break;else _0x129bbd['push'](_0x129bbd['shift']());}catch(_0x5d972c){_0x129bbd['push'](_0x129bbd['shift']());}}}(a268_0x24f9,0x6c1a5));export function canonicalRabetbaseOperation(_0x3e2a88){var _0x17adcd=a268_0x3750;return[_0x3e2a88['service'],..._0x3e2a88['command'][_0x17adcd(0xe6)]()[_0x17adcd(0xed)](/\s+/)][_0x17adcd(0xf2)](Boolean)['join']('.');}export function createRabetbaseWriteMetadata(_0x3b16a3,_0x333269,_0x539b8d,_0x2bd396){var _0x2af803=a268_0x3750;if(_0x2bd396||_0x539b8d['ok']!==!![]||_0x3b16a3[_0x2af803(0xf3)]!==_0x2af803(0xe5)&&_0x3b16a3[_0x2af803(0xf3)]!==_0x2af803(0xe7))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x2af803(0xea),'operation':_0x333269,'risk':_0x3b16a3['risk']}}};}function a268_0x24f9(){var _0x162cdc=['2708pBdriF','620851eDjsJk','rabetbase.write.completed','8JcYFcy','1251501MXaIaX','split','993330SjiACQ','32195LuCcGK','103164NiHZnC','1268118tvHkBA','filter','risk','1675JRyDSv','write','trim','high-risk-write'];a268_0x24f9=function(){return _0x162cdc;};return a268_0x24f9();}
1
+ (function(_0x2e38f6,_0x3ca84c){var _0x2c7c46=a268_0x2c09,_0x10c579=_0x2e38f6();while(!![]){try{var _0x9ff8d7=-parseInt(_0x2c7c46(0xc0))/0x1*(-parseInt(_0x2c7c46(0xc4))/0x2)+parseInt(_0x2c7c46(0xcc))/0x3+-parseInt(_0x2c7c46(0xbd))/0x4+parseInt(_0x2c7c46(0xcb))/0x5*(-parseInt(_0x2c7c46(0xc8))/0x6)+parseInt(_0x2c7c46(0xcd))/0x7*(parseInt(_0x2c7c46(0xc3))/0x8)+parseInt(_0x2c7c46(0xca))/0x9+-parseInt(_0x2c7c46(0xc1))/0xa*(parseInt(_0x2c7c46(0xbf))/0xb);if(_0x9ff8d7===_0x3ca84c)break;else _0x10c579['push'](_0x10c579['shift']());}catch(_0x1a6992){_0x10c579['push'](_0x10c579['shift']());}}}(a268_0x5055,0x65d15));function a268_0x2c09(_0x269e72,_0x355dc6){_0x269e72=_0x269e72-0xbd;var _0x5055c4=a268_0x5055();var _0x2c09a7=_0x5055c4[_0x269e72];return _0x2c09a7;}function a268_0x5055(){var _0x50b6e7=['4545642rZdRBk','rabetbase.write.completed','5562909rhXPCd','5uozHwE','1908012fOeqKZ','904988KVGpGs','join','1346884AsPaGE','high-risk-write','2574qNaEhe','418GmFRta','2610xCXwfH','command','16bBCutD','286mSqcRi','split','risk','write'];a268_0x5055=function(){return _0x50b6e7;};return a268_0x5055();}export function canonicalRabetbaseOperation(_0x183d27){var _0x2f68e5=a268_0x2c09;return[_0x183d27['service'],..._0x183d27[_0x2f68e5(0xc2)]['trim']()[_0x2f68e5(0xc5)](/\s+/)]['filter'](Boolean)[_0x2f68e5(0xce)]('.');}export function createRabetbaseWriteMetadata(_0xfab217,_0x91add,_0x5ac01f,_0x2a21fe){var _0xd3644b=a268_0x2c09;if(_0x2a21fe||_0x5ac01f['ok']!==!![]||_0xfab217['risk']!==_0xd3644b(0xc7)&&_0xfab217[_0xd3644b(0xc6)]!==_0xd3644b(0xbe))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0xd3644b(0xc9),'operation':_0x91add,'risk':_0xfab217['risk']}}};}
@@ -1 +1 @@
1
- (function(_0x449255,_0x1e9fb3){const _0x578988=a269_0x4461,_0x173326=_0x449255();while(!![]){try{const _0x288109=-parseInt(_0x578988(0xe9))/0x1*(-parseInt(_0x578988(0xef))/0x2)+-parseInt(_0x578988(0xf5))/0x3+parseInt(_0x578988(0xf3))/0x4*(parseInt(_0x578988(0xf4))/0x5)+-parseInt(_0x578988(0x102))/0x6+-parseInt(_0x578988(0xe4))/0x7*(-parseInt(_0x578988(0x100))/0x8)+parseInt(_0x578988(0xf2))/0x9*(-parseInt(_0x578988(0xeb))/0xa)+parseInt(_0x578988(0x106))/0xb;if(_0x288109===_0x1e9fb3)break;else _0x173326['push'](_0x173326['shift']());}catch(_0x5a8037){_0x173326['push'](_0x173326['shift']());}}}(a269_0x8a87,0x7b4fc));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';function a269_0x4461(_0x1ca0e0,_0x1dffd4){_0x1ca0e0=_0x1ca0e0-0xe4;const _0x8a8763=a269_0x8a87();let _0x4461be=_0x8a8763[_0x1ca0e0];return _0x4461be;}import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';function a269_0x8a87(){const _0x77523a=['10LZTnAf','yes','definition','aborted','1726pQIiqp','present','data','4727385yPYaUA','163808sIvBhq','5ZiNGUs','2790618KtQHPZ','presentation','signal','command','dryRun','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','riskLevel','isNonInteractive','format','write','high-risk-write','48UirYda','confirm','4079172iVuyYr','message','reason','AbortError','12734172NrZgBX','903833yMUEzJ','rawFlags','Rabetbase\x20invocation\x20aborted.','result','confirmation','773aQIoki','risk'];a269_0x8a87=function(){return _0x77523a;};return a269_0x8a87();}import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x20c2e5,command:_0x4f9518,risk:_0x4a2c8d,dryRun:_0x3b1f91}){const _0x27f7b6=a269_0x4461;return JSON['stringify']({'ok':_0x20c2e5['ok'],'command':_0x4f9518,'risk':_0x4a2c8d,..._0x3b1f91?{'dryRun':!![]}:{},..._0x20c2e5[_0x27f7b6(0xf1)]!==undefined?{'data':_0x20c2e5[_0x27f7b6(0xf1)]}:{},..._0x20c2e5[_0x27f7b6(0x103)]?{'message':_0x20c2e5['message']}:{}});}};export async function invokeRabetbase(_0x11470f,_0x3dcd60){const _0xd65542=a269_0x4461;throwIfAborted(_0x3dcd60['signal']);const _0x3ec9b4=await resolveRabetbaseInvocation(_0x11470f),_0x371ff0=canonicalRabetbaseOperation(_0x3ec9b4[_0xd65542(0xed)]);return await confirmWriteBeforeQueue(_0x3ec9b4[_0xd65542(0xed)],_0x3ec9b4[_0xd65542(0xe5)],_0x371ff0,_0x3dcd60),runSerialized(async()=>{const _0x1ed153=_0xd65542,_0x333640={};try{throwIfAborted(_0x3dcd60[_0x1ed153(0xf7)]);const _0x512bd8=buildConfigFromFlags(_0x3ec9b4[_0x1ed153(0xe5)]);await initGlobalEnvironment(_0x512bd8);const _0x205b6e=createPipelineEnv(_0x512bd8,{..._0x3ec9b4[_0x1ed153(0xe5)],'yes':_0x3ec9b4[_0x1ed153(0xed)][_0x1ed153(0xea)]===_0x1ed153(0xff)?!![]:_0x3ec9b4['rawFlags'][_0x1ed153(0xec)],'nonInteractive':!![]},_0x3ec9b4['args']);_0x205b6e[_0x1ed153(0xfc)]=!![],_0x205b6e[_0x1ed153(0xfb)]=_0x1ed153(0xff);const _0x259735=withAbortSignal(_0x3ec9b4[_0x1ed153(0xed)],_0x3dcd60[_0x1ed153(0xf7)]),_0x6d1386=createRabetbaseRunnerAdapter({'formatOutput'(_0x1d81f8,_0x37d1e2){const _0x584e78=_0x1ed153;_0x333640[_0x584e78(0xe7)]=_0x1d81f8,_0x333640[_0x584e78(0xf8)]=_0x37d1e2[_0x584e78(0xf8)],_0x333640['risk']=_0x37d1e2[_0x584e78(0xea)],_0x333640['format']=_0x37d1e2[_0x584e78(0xfd)],_0x333640[_0x584e78(0xf9)]=_0x37d1e2[_0x584e78(0xf9)]===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.');}});await runCommand(_0x259735,_0x205b6e,_0x6d1386);if(!_0x333640[_0x1ed153(0xe7)]||!_0x333640[_0x1ed153(0xf8)]||!_0x333640[_0x1ed153(0xea)]||!_0x333640[_0x1ed153(0xfd)])throw new Error(_0x1ed153(0xfa));const _0x20e47a=_0x333640[_0x1ed153(0xf9)]===!![],_0x37c201=_0x3dcd60[_0x1ed153(0xf6)]??defaultPresentation,_0x10d711={'result':_0x333640[_0x1ed153(0xe7)],'command':_0x333640[_0x1ed153(0xf8)],'operation':_0x371ff0,'risk':_0x333640[_0x1ed153(0xea)],'format':_0x333640[_0x1ed153(0xfd)],'dryRun':_0x20e47a},_0x33d8d8=createRabetbaseWriteMetadata(_0x3ec9b4['definition'],_0x371ff0,_0x333640[_0x1ed153(0xe7)],_0x20e47a);let _0x3336fe;try{_0x3336fe=await _0x37c201[_0x1ed153(0xf0)](_0x10d711);}catch(_0x38ce9f){if(!_0x33d8d8||_0x37c201===defaultPresentation)throw _0x38ce9f;_0x3336fe=await defaultPresentation[_0x1ed153(0xf0)](_0x10d711);}return{'operation':_0x371ff0,'risk':_0x333640[_0x1ed153(0xea)],'mode':_0x20e47a?'dry-run':'execute','result':_0x333640[_0x1ed153(0xe7)],'output':_0x3336fe,..._0x33d8d8?{'metadata':_0x33d8d8}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x15b414,_0x4b4197,_0x5beec4,_0x198b85){const _0x4f5e80=a269_0x4461;if(_0x4b4197[_0x4f5e80(0xf9)]===!![]||_0x15b414[_0x4f5e80(0xea)]!==_0x4f5e80(0xfe)&&_0x15b414[_0x4f5e80(0xea)]!==_0x4f5e80(0xff))return;await _0x198b85[_0x4f5e80(0xe8)][_0x4f5e80(0x101)](buildRabetbaseConfirmationRequest(_0x15b414,_0x5beec4,_0x198b85['signal']));}function withAbortSignal(_0x199eea,_0x505c2d){return{..._0x199eea,async 'execute'(_0x1c553e){return throwIfAborted(_0x505c2d),_0x199eea['execute']({..._0x1c553e,'signal':_0x505c2d});}};}function throwIfAborted(_0x502be2){const _0x55753e=a269_0x4461;if(_0x502be2?.[_0x55753e(0xee)])throw _0x502be2[_0x55753e(0x104)]instanceof Error?_0x502be2[_0x55753e(0x104)]:new DOMException(_0x55753e(0xe6),_0x55753e(0x105));}
1
+ (function(_0x414e93,_0x90b795){const _0x1a7730=a269_0x1c2a,_0x263805=_0x414e93();while(!![]){try{const _0x4938a4=-parseInt(_0x1a7730(0x137))/0x1+-parseInt(_0x1a7730(0x151))/0x2+parseInt(_0x1a7730(0x141))/0x3*(-parseInt(_0x1a7730(0x13a))/0x4)+-parseInt(_0x1a7730(0x14b))/0x5*(-parseInt(_0x1a7730(0x145))/0x6)+parseInt(_0x1a7730(0x138))/0x7+parseInt(_0x1a7730(0x13e))/0x8*(parseInt(_0x1a7730(0x156))/0x9)+-parseInt(_0x1a7730(0x144))/0xa*(-parseInt(_0x1a7730(0x14f))/0xb);if(_0x4938a4===_0x90b795)break;else _0x263805['push'](_0x263805['shift']());}catch(_0x2753d8){_0x263805['push'](_0x263805['shift']());}}}(a269_0x422c,0x46568));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';function a269_0x422c(){const _0x4de912=['545904auurYd','903315QBYHVk','riskLevel','212QTtXZm','execute','Rabetbase\x20invocation\x20aborted.','isNonInteractive','16TzOWFr','high-risk-write','presentation','9042FNktWv','aborted','reason','9361490EdPSIx','30ievyJx','data','present','yes','AbortError','signal','88430hpaggp','command','rawFlags','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','11VOhBxF','args','1069496Mipkme','message','confirmation','format','write','1686933TZQDIz','result','dry-run','definition','dryRun','confirm','risk','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.'];a269_0x422c=function(){return _0x4de912;};return a269_0x422c();}import{runSerialized}from'../runtime/queue.js';function a269_0x1c2a(_0x35977f,_0x27cf77){_0x35977f=_0x35977f-0x136;const _0x422c6e=a269_0x422c();let _0x1c2a0c=_0x422c6e[_0x35977f];return _0x1c2a0c;}import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x29addf,command:_0xd22858,risk:_0x219f00,dryRun:_0x210722}){const _0x55b28e=a269_0x1c2a;return JSON['stringify']({'ok':_0x29addf['ok'],'command':_0xd22858,'risk':_0x219f00,..._0x210722?{'dryRun':!![]}:{},..._0x29addf[_0x55b28e(0x146)]!==undefined?{'data':_0x29addf[_0x55b28e(0x146)]}:{},..._0x29addf[_0x55b28e(0x152)]?{'message':_0x29addf[_0x55b28e(0x152)]}:{}});}};export async function invokeRabetbase(_0x53549b,_0x1fc270){const _0x16cd7e=a269_0x1c2a;throwIfAborted(_0x1fc270['signal']);const _0x5a37c7=await resolveRabetbaseInvocation(_0x53549b),_0x2a8406=canonicalRabetbaseOperation(_0x5a37c7[_0x16cd7e(0x159)]);return await confirmWriteBeforeQueue(_0x5a37c7[_0x16cd7e(0x159)],_0x5a37c7[_0x16cd7e(0x14d)],_0x2a8406,_0x1fc270),runSerialized(async()=>{const _0x2c29b3=_0x16cd7e,_0x50cf52={};try{throwIfAborted(_0x1fc270[_0x2c29b3(0x14a)]);const _0xb1ae9b=buildConfigFromFlags(_0x5a37c7[_0x2c29b3(0x14d)]);await initGlobalEnvironment(_0xb1ae9b);const _0x5992cd=createPipelineEnv(_0xb1ae9b,{..._0x5a37c7[_0x2c29b3(0x14d)],'yes':_0x5a37c7['definition']['risk']===_0x2c29b3(0x13f)?!![]:_0x5a37c7[_0x2c29b3(0x14d)][_0x2c29b3(0x148)],'nonInteractive':!![]},_0x5a37c7[_0x2c29b3(0x150)]);_0x5992cd[_0x2c29b3(0x13d)]=!![],_0x5992cd[_0x2c29b3(0x139)]=_0x2c29b3(0x13f);const _0xfd3925=withAbortSignal(_0x5a37c7[_0x2c29b3(0x159)],_0x1fc270[_0x2c29b3(0x14a)]),_0x4ffc42=createRabetbaseRunnerAdapter({'formatOutput'(_0x164857,_0x2a02cc){const _0x577e47=_0x2c29b3;_0x50cf52[_0x577e47(0x157)]=_0x164857,_0x50cf52['command']=_0x2a02cc['command'],_0x50cf52[_0x577e47(0x15c)]=_0x2a02cc[_0x577e47(0x15c)],_0x50cf52[_0x577e47(0x154)]=_0x2a02cc[_0x577e47(0x154)],_0x50cf52[_0x577e47(0x15a)]=_0x2a02cc[_0x577e47(0x15a)]===!![];},async 'confirmHighRisk'(){const _0x19c193=_0x2c29b3;throw new Error(_0x19c193(0x136));}});await runCommand(_0xfd3925,_0x5992cd,_0x4ffc42);if(!_0x50cf52[_0x2c29b3(0x157)]||!_0x50cf52[_0x2c29b3(0x14c)]||!_0x50cf52[_0x2c29b3(0x15c)]||!_0x50cf52[_0x2c29b3(0x154)])throw new Error(_0x2c29b3(0x14e));const _0x2e8c41=_0x50cf52[_0x2c29b3(0x15a)]===!![],_0x4caaf7=_0x1fc270[_0x2c29b3(0x140)]??defaultPresentation,_0x1aa21c={'result':_0x50cf52[_0x2c29b3(0x157)],'command':_0x50cf52[_0x2c29b3(0x14c)],'operation':_0x2a8406,'risk':_0x50cf52[_0x2c29b3(0x15c)],'format':_0x50cf52[_0x2c29b3(0x154)],'dryRun':_0x2e8c41},_0x5f19c6=createRabetbaseWriteMetadata(_0x5a37c7['definition'],_0x2a8406,_0x50cf52['result'],_0x2e8c41);let _0x2a86af;try{_0x2a86af=await _0x4caaf7[_0x2c29b3(0x147)](_0x1aa21c);}catch(_0x2c4540){if(!_0x5f19c6||_0x4caaf7===defaultPresentation)throw _0x2c4540;_0x2a86af=await defaultPresentation[_0x2c29b3(0x147)](_0x1aa21c);}return{'operation':_0x2a8406,'risk':_0x50cf52[_0x2c29b3(0x15c)],'mode':_0x2e8c41?_0x2c29b3(0x158):_0x2c29b3(0x13b),'result':_0x50cf52['result'],'output':_0x2a86af,..._0x5f19c6?{'metadata':_0x5f19c6}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x266dda,_0x3cb005,_0x5ed74a,_0xa0856e){const _0x59a596=a269_0x1c2a;if(_0x3cb005[_0x59a596(0x15a)]===!![]||_0x266dda[_0x59a596(0x15c)]!==_0x59a596(0x155)&&_0x266dda[_0x59a596(0x15c)]!==_0x59a596(0x13f))return;await _0xa0856e[_0x59a596(0x153)][_0x59a596(0x15b)](buildRabetbaseConfirmationRequest(_0x266dda,_0x5ed74a,_0xa0856e[_0x59a596(0x14a)]));}function withAbortSignal(_0x588a2c,_0x5f305a){return{..._0x588a2c,async 'execute'(_0x18119d){return throwIfAborted(_0x5f305a),_0x588a2c['execute']({..._0x18119d,'signal':_0x5f305a});}};}function throwIfAborted(_0xc90ff6){const _0x586d57=a269_0x1c2a;if(_0xc90ff6?.[_0x586d57(0x142)])throw _0xc90ff6[_0x586d57(0x143)]instanceof Error?_0xc90ff6['reason']:new DOMException(_0x586d57(0x13c),_0x586d57(0x149));}
@@ -1 +1 @@
1
- (function(_0x1c839e,_0x3543fe){const _0x9b7e30=a270_0x1108,_0x245170=_0x1c839e();while(!![]){try{const _0x22d777=-parseInt(_0x9b7e30(0x141))/0x1+parseInt(_0x9b7e30(0x147))/0x2+parseInt(_0x9b7e30(0x13f))/0x3*(parseInt(_0x9b7e30(0x142))/0x4)+-parseInt(_0x9b7e30(0x13c))/0x5+-parseInt(_0x9b7e30(0x143))/0x6*(parseInt(_0x9b7e30(0x13e))/0x7)+-parseInt(_0x9b7e30(0x140))/0x8*(-parseInt(_0x9b7e30(0x146))/0x9)+-parseInt(_0x9b7e30(0x13d))/0xa*(-parseInt(_0x9b7e30(0x144))/0xb);if(_0x22d777===_0x3543fe)break;else _0x245170['push'](_0x245170['shift']());}catch(_0x5c5795){_0x245170['push'](_0x245170['shift']());}}}(a270_0x205e,0xb7722));function a270_0x205e(){const _0x251f65=['catch','1413hTMLTr','561090fMMpIL','6661810nPnjob','116170iVcntU','119721LmWTle','16209oyHGtK','3544ucKdMY','282216NIAYWc','436bSNcOb','180FtqQPG','1837TVxFIr'];a270_0x205e=function(){return _0x251f65;};return a270_0x205e();}function a270_0x1108(_0x4ade24,_0x53cea0){_0x4ade24=_0x4ade24-0x13c;const _0x205e70=a270_0x205e();let _0x110881=_0x205e70[_0x4ade24];return _0x110881;}let tail=Promise['resolve']();export async function runSerialized(_0x1333f1){const _0x21ab61=a270_0x1108,_0x1a2ea5=tail;let _0x3f06ee;tail=new Promise(_0x21f5d1=>{_0x3f06ee=_0x21f5d1;}),await _0x1a2ea5[_0x21ab61(0x145)](()=>undefined);try{return await _0x1333f1();}finally{_0x3f06ee();}}
1
+ function a270_0x465f(){const _0x7a84c9=['catch','6cqJAoP','27859260Lmcctc','5934830JhQCGY','14536njTUca','1464zINNjp','1023495NZZjnj','resolve','1356586icHtLm','114544UKXSjJ','10HmOFRD','4545ueObyH','2763vWnCgd'];a270_0x465f=function(){return _0x7a84c9;};return a270_0x465f();}function a270_0x3d1f(_0x5f34a7,_0x11cbf8){_0x5f34a7=_0x5f34a7-0x15c;const _0x465f6c=a270_0x465f();let _0x3d1f29=_0x465f6c[_0x5f34a7];return _0x3d1f29;}const a270_0x4bf627=a270_0x3d1f;(function(_0x358e4d,_0xe8bdbc){const _0x5b0b2b=a270_0x3d1f,_0x4a6921=_0x358e4d();while(!![]){try{const _0x4ec925=parseInt(_0x5b0b2b(0x162))/0x1*(-parseInt(_0x5b0b2b(0x161))/0x2)+-parseInt(_0x5b0b2b(0x15e))/0x3+-parseInt(_0x5b0b2b(0x15d))/0x4*(parseInt(_0x5b0b2b(0x163))/0x5)+parseInt(_0x5b0b2b(0x166))/0x6*(parseInt(_0x5b0b2b(0x160))/0x7)+parseInt(_0x5b0b2b(0x15c))/0x8*(-parseInt(_0x5b0b2b(0x164))/0x9)+-parseInt(_0x5b0b2b(0x168))/0xa+parseInt(_0x5b0b2b(0x167))/0xb;if(_0x4ec925===_0xe8bdbc)break;else _0x4a6921['push'](_0x4a6921['shift']());}catch(_0x17cd38){_0x4a6921['push'](_0x4a6921['shift']());}}}(a270_0x465f,0x50381));let tail=Promise[a270_0x4bf627(0x15f)]();export async function runSerialized(_0x4a4d8d){const _0x2515be=a270_0x4bf627,_0x235977=tail;let _0x994b3b;tail=new Promise(_0x152c6c=>{_0x994b3b=_0x152c6c;}),await _0x235977[_0x2515be(0x165)](()=>undefined);try{return await _0x4a4d8d();}finally{_0x994b3b();}}
@@ -1 +1 @@
1
- function a271_0x1870(){const _0x24b12f=['16220lVOlnS','input','8265904JKGbNI','6QaXQMP','10806RFrLdF','225352jvAobJ','defaultCommand','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','625QlrWEe','slice','join','validation','111KvPpKJ','20thnRGQ','flags','message','1568313vNVfsU','wildcardDef','unknownCommand','4984308Seqray','34906663TVSsfq'];a271_0x1870=function(){return _0x24b12f;};return a271_0x1870();}(function(_0x1b1f4d,_0x4f4724){const _0xb8e949=a271_0x3be5,_0x4e9f33=_0x1b1f4d();while(!![]){try{const _0x131ab3=-parseInt(_0xb8e949(0x15e))/0x1*(parseInt(_0xb8e949(0x160))/0x2)+parseInt(_0xb8e949(0x152))/0x3*(parseInt(_0xb8e949(0x15b))/0x4)+parseInt(_0xb8e949(0x163))/0x5*(parseInt(_0xb8e949(0x15f))/0x6)+-parseInt(_0xb8e949(0x159))/0x7+-parseInt(_0xb8e949(0x15d))/0x8+parseInt(_0xb8e949(0x156))/0x9*(-parseInt(_0xb8e949(0x153))/0xa)+parseInt(_0xb8e949(0x15a))/0xb;if(_0x131ab3===_0x4f4724)break;else _0x4e9f33['push'](_0x4e9f33['shift']());}catch(_0x549668){_0x4e9f33['push'](_0x4e9f33['shift']());}}}(a271_0x1870,0xbe191));function a271_0x3be5(_0x299f13,_0x51edc3){_0x299f13=_0x299f13-0x14f;const _0x18702f=a271_0x1870();let _0x3be533=_0x18702f[_0x299f13];return _0x3be533;}import a271_0x4dfd69 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveRabetbaseInvocation(_0x28315e){const _0x127224=a271_0x3be5,_0x477088=a271_0x4dfd69('',{'importMeta':import.meta,'argv':[..._0x28315e],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x135538=[..._0x477088[_0x127224(0x15c)]],_0x10eb85=_0x477088[_0x127224(0x154)],_0x2dbe6d=_0x135538[0x0];if(!_0x2dbe6d)throw CliErrors['validation']('Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.');const _0x2c6db2=resolveRemovedCommand(_0x2dbe6d,_0x135538[0x1]);if(_0x2c6db2)throw CliErrors[_0x127224(0x151)](_0x2c6db2[_0x127224(0x155)],_0x2c6db2['hint']);if(_0x2dbe6d==='run')throw CliErrors['validation']('`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.',_0x127224(0x162));if(!isKnownService(_0x2dbe6d))throw CliErrors[_0x127224(0x158)](_0x135538[_0x127224(0x150)]('\x20'));const _0x37644c=getServiceEntry(_0x2dbe6d),_0x1a2e92=_0x135538[0x1],_0x30f3d4=_0x1a2e92||_0x37644c[_0x127224(0x161)];if(!_0x30f3d4){if(_0x37644c[_0x127224(0x157)])return{'definition':_0x37644c[_0x127224(0x157)],'rawFlags':_0x10eb85,'args':[]};throw CliErrors[_0x127224(0x151)]('Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x2dbe6d+'\x22.');}const _0x5655aa=findDefinition(_0x2dbe6d,_0x30f3d4);if(_0x5655aa)return{'definition':_0x5655aa,'rawFlags':_0x10eb85,'args':_0x135538[_0x127224(0x14f)](0x2)};if(_0x37644c['wildcardDef'])return{'definition':_0x37644c['wildcardDef'],'rawFlags':_0x10eb85,'args':[_0x30f3d4,..._0x135538['slice'](0x2)]};throw CliErrors['unknownCommand'](_0x2dbe6d+'\x20'+_0x30f3d4);}
1
+ (function(_0x530ed1,_0x44f5e0){const _0x171f71=a271_0x253a,_0x1eac82=_0x530ed1();while(!![]){try{const _0x150d42=parseInt(_0x171f71(0x128))/0x1*(parseInt(_0x171f71(0x119))/0x2)+-parseInt(_0x171f71(0x126))/0x3*(-parseInt(_0x171f71(0x11a))/0x4)+-parseInt(_0x171f71(0x12a))/0x5+parseInt(_0x171f71(0x124))/0x6*(-parseInt(_0x171f71(0x127))/0x7)+parseInt(_0x171f71(0x12c))/0x8+parseInt(_0x171f71(0x11b))/0x9+-parseInt(_0x171f71(0x118))/0xa;if(_0x150d42===_0x44f5e0)break;else _0x1eac82['push'](_0x1eac82['shift']());}catch(_0x1a2085){_0x1eac82['push'](_0x1eac82['shift']());}}}(a271_0x3d66,0x3dc55));import a271_0x2a89d3 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a271_0x3d66(){const _0x5d43c7=['slice','wildcardDef','84RdnUQx','validation','1101xBIMvD','250845xiRLNP','59533inAbPL','unknownCommand','364335oUuKZw','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','3678088CfTYXq','message','input','2492150TKKbLI','6hcReXx','204nFAKqw','3777372rDBkqH','flags','defaultCommand','run','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','hint','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.'];a271_0x3d66=function(){return _0x5d43c7;};return a271_0x3d66();}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a271_0x253a(_0x13aa56,_0x4acd65){_0x13aa56=_0x13aa56-0x116;const _0x3d66ca=a271_0x3d66();let _0x253ad6=_0x3d66ca[_0x13aa56];return _0x253ad6;}export async function resolveRabetbaseInvocation(_0x1d5ec8){const _0x54c1a5=a271_0x253a,_0x572f8f=a271_0x2a89d3('',{'importMeta':import.meta,'argv':[..._0x1d5ec8],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x1fff4f=[..._0x572f8f[_0x54c1a5(0x117)]],_0x154f09=_0x572f8f[_0x54c1a5(0x11c)],_0x29a5c0=_0x1fff4f[0x0];if(!_0x29a5c0)throw CliErrors['validation'](_0x54c1a5(0x121));const _0x3b3e93=resolveRemovedCommand(_0x29a5c0,_0x1fff4f[0x1]);if(_0x3b3e93)throw CliErrors['validation'](_0x3b3e93[_0x54c1a5(0x116)],_0x3b3e93[_0x54c1a5(0x120)]);if(_0x29a5c0===_0x54c1a5(0x11e))throw CliErrors['validation']('`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.',_0x54c1a5(0x11f));if(!isKnownService(_0x29a5c0))throw CliErrors[_0x54c1a5(0x129)](_0x1fff4f['join']('\x20'));const _0x10c069=getServiceEntry(_0x29a5c0),_0x1ba777=_0x1fff4f[0x1],_0x28f27c=_0x1ba777||_0x10c069[_0x54c1a5(0x11d)];if(!_0x28f27c){if(_0x10c069[_0x54c1a5(0x123)])return{'definition':_0x10c069[_0x54c1a5(0x123)],'rawFlags':_0x154f09,'args':[]};throw CliErrors[_0x54c1a5(0x125)](_0x54c1a5(0x12b)+_0x29a5c0+'\x22.');}const _0x2a5f43=findDefinition(_0x29a5c0,_0x28f27c);if(_0x2a5f43)return{'definition':_0x2a5f43,'rawFlags':_0x154f09,'args':_0x1fff4f[_0x54c1a5(0x122)](0x2)};if(_0x10c069[_0x54c1a5(0x123)])return{'definition':_0x10c069[_0x54c1a5(0x123)],'rawFlags':_0x154f09,'args':[_0x28f27c,..._0x1fff4f['slice'](0x2)]};throw CliErrors['unknownCommand'](_0x29a5c0+'\x20'+_0x28f27c);}
@@ -1 +1 @@
1
- const a273_0x37aa01=a273_0x1074;(function(_0x1bc7a7,_0x497e3a){const _0x33ca99=a273_0x1074,_0x358f38=_0x1bc7a7();while(!![]){try{const _0x16ab04=-parseInt(_0x33ca99(0xdc))/0x1+-parseInt(_0x33ca99(0xcc))/0x2*(parseInt(_0x33ca99(0xd6))/0x3)+-parseInt(_0x33ca99(0xec))/0x4+parseInt(_0x33ca99(0xd8))/0x5+parseInt(_0x33ca99(0xc7))/0x6+parseInt(_0x33ca99(0xbe))/0x7+-parseInt(_0x33ca99(0xf6))/0x8*(parseInt(_0x33ca99(0xd3))/0x9);if(_0x16ab04===_0x497e3a)break;else _0x358f38['push'](_0x358f38['shift']());}catch(_0x30e496){_0x358f38['push'](_0x358f38['shift']());}}}(a273_0x4819,0x9d3eb));function a273_0x1074(_0x5b761f,_0x2409ec){_0x5b761f=_0x5b761f-0xb8;const _0x4819db=a273_0x4819();let _0x1074df=_0x4819db[_0x5b761f];return _0x1074df;}import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND='rabetbase\x20cli-skill\x20install',SKILL_NAME=a273_0x37aa01(0xcf);function frontmatterValue(_0x2c9427,_0x490c3f){const _0x32239d=a273_0x37aa01;return _0x2c9427[_0x32239d(0xca)](new RegExp('^'+_0x490c3f+_0x32239d(0xe6),'m'))?.[0x1]?.[_0x32239d(0xd4)]()??'';}function listFiles(_0x3d3bc7,_0x2a09e2=_0x3d3bc7){const _0x24e34f=a273_0x37aa01;return readdirSync(_0x2a09e2,{'withFileTypes':!![]})[_0x24e34f(0xf2)](_0x1e6e31=>{const _0x204c0a=_0x24e34f,_0x490d94=join(_0x2a09e2,_0x1e6e31[_0x204c0a(0xb9)]),_0xab89f=lstatSync(_0x490d94);if(_0xab89f[_0x204c0a(0xc4)]())throw new Error(_0x204c0a(0xc9)+_0x490d94);if(_0xab89f[_0x204c0a(0xe5)]())return listFiles(_0x3d3bc7,_0x490d94);if(!_0xab89f[_0x204c0a(0xd1)]())throw new Error(_0x204c0a(0xb8)+_0x490d94);return[relative(_0x3d3bc7,_0x490d94)[_0x204c0a(0xe0)](sep)['join']('/')];})[_0x24e34f(0xef)]((_0x88676b,_0x5552db)=>_0x88676b<_0x5552db?-0x1:_0x88676b>_0x5552db?0x1:0x0);}function digestFiles(_0x5a9380,_0x3a7fe4){const _0x12d9b0=a273_0x37aa01,_0x5a6d47=createHash(_0x12d9b0(0xda));for(const _0x160e54 of _0x3a7fe4){if(_0x160e54[_0x12d9b0(0xbd)]('/')||_0x160e54[_0x12d9b0(0xe0)]('/')[_0x12d9b0(0xd0)]('..')||_0x160e54[_0x12d9b0(0xd0)]('\x5c'))throw new Error(_0x12d9b0(0xdb)+_0x160e54);_0x5a6d47['update'](_0x160e54),_0x5a6d47[_0x12d9b0(0xc1)]('\x00'),_0x5a6d47[_0x12d9b0(0xc1)](readFileSync(join(_0x5a9380,..._0x160e54[_0x12d9b0(0xe0)]('/')))),_0x5a6d47[_0x12d9b0(0xc1)]('\x00');}return _0x5a6d47['digest'](_0x12d9b0(0xea));}function sameFiles(_0x5a00c5,_0x36f2c5){const _0xdc8c61=a273_0x37aa01;return _0x5a00c5[_0xdc8c61(0xde)]===_0x36f2c5[_0xdc8c61(0xde)]&&_0x5a00c5[_0xdc8c61(0xc5)]((_0x17f33a,_0x31f942)=>_0x17f33a===_0x36f2c5[_0x31f942]);}function readSource(_0x53126f){const _0x39f1b8=a273_0x37aa01,_0x3fb26f=JSON['parse'](readFileSync(join(_0x53126f,'package.json'),_0x39f1b8(0xe4))),_0x4e0d5a=JSON[_0x39f1b8(0xe1)](readFileSync(join(_0x53126f,'skills','rabetbase.manifest.json'),'utf8')),_0x2c06c9=join(_0x53126f,_0x39f1b8(0xc0),SKILL_NAME),_0xbbf03d=frontmatterValue(readFileSync(join(_0x2c06c9,'SKILL.md'),_0x39f1b8(0xe4)),'version'),_0xe682d6=listFiles(_0x2c06c9);if(_0x4e0d5a['schemaVersion']!==0x1||_0x4e0d5a[_0x39f1b8(0xb9)]!==SKILL_NAME||!_0x3fb26f['version']||_0x4e0d5a[_0x39f1b8(0xbb)]!==_0x3fb26f[_0x39f1b8(0xdf)]||_0x4e0d5a['skillVersion']!==_0x3fb26f[_0x39f1b8(0xdf)]||_0xbbf03d!==_0x3fb26f['version']||!sameFiles(_0xe682d6,_0x4e0d5a['files'])||digestFiles(_0x2c06c9,_0xe682d6)!==_0x4e0d5a['digest'])throw new Error(_0x39f1b8(0xce));return{'packageVersion':_0x3fb26f[_0x39f1b8(0xdf)],'skillVersion':_0xbbf03d,'root':_0x2c06c9,'manifest':_0x4e0d5a};}function installedSkillPath(_0x571e9c){const _0x468813=a273_0x37aa01,_0x39ae8a=resolveInstalledSkill(SKILL_NAME,{'home':_0x571e9c});if(_0x39ae8a[_0x468813(0xeb)]===_0x468813(0xf7))return{'state':_0x468813(0xf7),'path':dirname(_0x39ae8a['path'])};if(_0x39ae8a['state']===_0x468813(0xbc))return{'state':_0x468813(0xcd)};return{'state':'unverifiable','reason':_0x39ae8a[_0x468813(0xba)]};}export function inspectInstalledBuiltinSkillVersion(_0x296496,_0x471c9d={}){const _0x48de02=a273_0x37aa01,_0x21e6ce=installedSkillPath(_0x471c9d[_0x48de02(0xd2)]??homedir());if(_0x21e6ce[_0x48de02(0xeb)]===_0x48de02(0xcd))return{'state':_0x48de02(0xcd),'expectedVersion':_0x296496,'repairCommand':REPAIR_COMMAND};if(_0x21e6ce[_0x48de02(0xeb)]===_0x48de02(0xf3))return{'state':_0x48de02(0xf3),'expectedVersion':_0x296496,'reason':_0x21e6ce['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x4c74d0=frontmatterValue(readFileSync(join(_0x21e6ce[_0x48de02(0xed)],'SKILL.md'),'utf8'),_0x48de02(0xdf));return{'state':_0x4c74d0===_0x296496?_0x48de02(0xe3):_0x48de02(0xf0),'expectedVersion':_0x296496,'skillVersion':_0x4c74d0,'installedPath':_0x21e6ce[_0x48de02(0xed)],'repairCommand':REPAIR_COMMAND};}catch(_0x2400f8){return{'state':'unverifiable','expectedVersion':_0x296496,'installedPath':_0x21e6ce[_0x48de02(0xed)],'reason':_0x2400f8 instanceof Error?_0x2400f8[_0x48de02(0xc8)]:String(_0x2400f8),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x23472b={}){const _0x15ce09=a273_0x37aa01,_0x652153=_0x23472b[_0x15ce09(0xf1)]??DEFAULT_PACKAGE_ROOT;let _0x21d301;try{_0x21d301=readSource(_0x652153);}catch(_0x32b70a){return{'state':_0x15ce09(0xf3),'packageVersion':'unknown','reason':_0x32b70a instanceof Error?_0x32b70a[_0x15ce09(0xc8)]:String(_0x32b70a),'repairCommand':REPAIR_COMMAND};}const _0x55015d=installedSkillPath(_0x23472b[_0x15ce09(0xd2)]??homedir());if(_0x55015d[_0x15ce09(0xeb)]===_0x15ce09(0xcd))return{'state':_0x15ce09(0xcd),'packageVersion':_0x21d301[_0x15ce09(0xbb)],'repairCommand':REPAIR_COMMAND};if(_0x55015d[_0x15ce09(0xeb)]===_0x15ce09(0xf3))return{'state':_0x15ce09(0xf3),'packageVersion':_0x21d301[_0x15ce09(0xbb)],'reason':_0x55015d['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x3cdb0e=frontmatterValue(readFileSync(join(_0x55015d['path'],'SKILL.md'),'utf8'),'version');if(_0x3cdb0e!==_0x21d301[_0x15ce09(0xcb)])return{'state':'version_mismatch','packageVersion':_0x21d301['packageVersion'],'skillVersion':_0x3cdb0e,'installedPath':_0x55015d[_0x15ce09(0xed)],'repairCommand':REPAIR_COMMAND};const _0x5433c7=listFiles(_0x55015d['path']),_0x39da24=digestFiles(_0x55015d['path'],_0x5433c7);return{'state':sameFiles(_0x5433c7,_0x21d301[_0x15ce09(0xe2)][_0x15ce09(0xe8)])&&_0x39da24===_0x21d301['manifest'][_0x15ce09(0xd7)]?_0x15ce09(0xe3):_0x15ce09(0xe9),'packageVersion':_0x21d301[_0x15ce09(0xbb)],'skillVersion':_0x3cdb0e,'installedPath':_0x55015d['path'],'digest':_0x39da24,'repairCommand':REPAIR_COMMAND};}catch(_0x48fc13){return{'state':_0x15ce09(0xf3),'packageVersion':_0x21d301[_0x15ce09(0xbb)],'installedPath':_0x55015d[_0x15ce09(0xed)],'reason':_0x48fc13 instanceof Error?_0x48fc13[_0x15ce09(0xc8)]:String(_0x48fc13),'repairCommand':REPAIR_COMMAND};}}function failure(_0x322d61,_0x357304,_0x5b1d55,_0x5eb263){const _0x1f79a8=a273_0x37aa01;return{'ok':![],'code':_0x322d61,'packageVersion':_0x357304[_0x1f79a8(0xbb)],'skillVersion':_0x357304[_0x1f79a8(0xcb)],'installedPath':_0x5eb263,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x5b1d55 instanceof Error?_0x5b1d55[_0x1f79a8(0xc8)]:String(_0x5b1d55)};}export function installBuiltinSkill(_0x45fc28={}){const _0x3c2c13=a273_0x37aa01,_0x1d4f0d=_0x45fc28['packageRoot']??DEFAULT_PACKAGE_ROOT,_0x4a4a21=_0x45fc28[_0x3c2c13(0xd2)]??homedir();let _0x249f3a;try{_0x249f3a=readSource(_0x1d4f0d);}catch(_0x49e55e){return failure(_0x3c2c13(0xdd),{'packageVersion':_0x3c2c13(0xee),'skillVersion':_0x3c2c13(0xee)},_0x49e55e);}const _0x5334bd=inspectBuiltinSkill({'packageRoot':_0x1d4f0d,'home':_0x4a4a21}),_0x129dbd=runNpxSkillsAddGlobal(_0x1d4f0d,_0x249f3a[_0x3c2c13(0xd9)],{'stdio':_0x45fc28['stdio']??_0x3c2c13(0xc6),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x4a4a21}});if(_0x129dbd[_0x3c2c13(0xc2)])return{'ok':!![],'packageVersion':_0x249f3a[_0x3c2c13(0xbb)],'skillVersion':_0x249f3a[_0x3c2c13(0xcb)],'installedPath':_0x5334bd['installedPath'],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x129dbd['ok'])return failure(_0x3c2c13(0xe7),_0x249f3a,_0x129dbd['error']??_0x3c2c13(0xbf)+_0x129dbd[_0x3c2c13(0xc3)]);const _0x272b8a=inspectBuiltinSkill({'packageRoot':_0x1d4f0d,'home':_0x4a4a21});if(_0x272b8a['state']!=='current')return failure(_0x3c2c13(0xf5),_0x249f3a,_0x272b8a[_0x3c2c13(0xba)]??_0x3c2c13(0xd5)+_0x272b8a[_0x3c2c13(0xeb)],_0x272b8a['installedPath']);return{'ok':!![],'packageVersion':_0x249f3a['packageVersion'],'skillVersion':_0x249f3a[_0x3c2c13(0xcb)],'installedPath':_0x272b8a[_0x3c2c13(0xf4)],'changed':_0x5334bd[_0x3c2c13(0xeb)]!==_0x3c2c13(0xe3),'repairCommand':REPAIR_COMMAND};}function a273_0x4819(){const _0x3b3a3c=['VERIFY_FAILED','196136ZjrnjU','present','Unsupported\x20Skill\x20entry:\x20','name','reason','packageVersion','absent','startsWith','3100720WMBwuS','skills@latest\x20exited\x20','skills','update','skipped','status','isSymbolicLink','every','pipe','4673298HZOGcN','message','Symbolic\x20link\x20is\x20not\x20allowed:\x20','match','skillVersion','1206NESJSq','missing','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','rabetbase','includes','isFile','home','27zALbMX','trim','Installed\x20Skill\x20state\x20is\x20','2901dZZIBW','digest','3142840iJfLEu','root','sha256','Unsafe\x20manifest\x20path:\x20','217763RjiJgD','SOURCE_INVALID','length','version','split','parse','manifest','current','utf8','isDirectory',':\x5cs*(.+)$','INSTALL_FAILED','files','content_mismatch','hex','state','1327684xWIgTC','path','unknown','sort','version_mismatch','packageRoot','flatMap','unverifiable','installedPath'];a273_0x4819=function(){return _0x3b3a3c;};return a273_0x4819();}
1
+ const a273_0xae0b7b=a273_0x5929;(function(_0x1319ab,_0x412ca4){const _0x3b8b19=a273_0x5929,_0x1486b5=_0x1319ab();while(!![]){try{const _0x1d78eb=parseInt(_0x3b8b19(0x1d9))/0x1+parseInt(_0x3b8b19(0x1c6))/0x2*(-parseInt(_0x3b8b19(0x1dd))/0x3)+-parseInt(_0x3b8b19(0x1c7))/0x4*(parseInt(_0x3b8b19(0x1ad))/0x5)+parseInt(_0x3b8b19(0x1a3))/0x6+-parseInt(_0x3b8b19(0x1b4))/0x7+-parseInt(_0x3b8b19(0x1bf))/0x8+parseInt(_0x3b8b19(0x1d5))/0x9;if(_0x1d78eb===_0x412ca4)break;else _0x1486b5['push'](_0x1486b5['shift']());}catch(_0x4438b4){_0x1486b5['push'](_0x1486b5['shift']());}}}(a273_0x1538,0x7f935));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND='rabetbase\x20cli-skill\x20install',SKILL_NAME=a273_0xae0b7b(0x1c2);function a273_0x5929(_0x29cf5a,_0x111e8e){_0x29cf5a=_0x29cf5a-0x1a0;const _0x1538e6=a273_0x1538();let _0x592987=_0x1538e6[_0x29cf5a];return _0x592987;}function frontmatterValue(_0x3f7461,_0x59c3a9){const _0x42c0f5=a273_0xae0b7b;return _0x3f7461[_0x42c0f5(0x1ac)](new RegExp('^'+_0x59c3a9+_0x42c0f5(0x1ae),'m'))?.[0x1]?.[_0x42c0f5(0x1be)]()??'';}function listFiles(_0xfffea9,_0x4b6d2c=_0xfffea9){return readdirSync(_0x4b6d2c,{'withFileTypes':!![]})['flatMap'](_0x4bbb4a=>{const _0x23b9ff=a273_0x5929,_0x4a0e41=join(_0x4b6d2c,_0x4bbb4a['name']),_0x5ec7d9=lstatSync(_0x4a0e41);if(_0x5ec7d9[_0x23b9ff(0x1a2)]())throw new Error(_0x23b9ff(0x1a5)+_0x4a0e41);if(_0x5ec7d9[_0x23b9ff(0x1d0)]())return listFiles(_0xfffea9,_0x4a0e41);if(!_0x5ec7d9[_0x23b9ff(0x1b9)]())throw new Error(_0x23b9ff(0x1d6)+_0x4a0e41);return[relative(_0xfffea9,_0x4a0e41)[_0x23b9ff(0x1cb)](sep)[_0x23b9ff(0x1d8)]('/')];})['sort']((_0x5208f7,_0x363570)=>_0x5208f7<_0x363570?-0x1:_0x5208f7>_0x363570?0x1:0x0);}function digestFiles(_0x1ab0cc,_0x37e858){const _0x49dba7=a273_0xae0b7b,_0x5991a8=createHash(_0x49dba7(0x1cf));for(const _0x2c4b3a of _0x37e858){if(_0x2c4b3a[_0x49dba7(0x1da)]('/')||_0x2c4b3a[_0x49dba7(0x1cb)]('/')[_0x49dba7(0x1aa)]('..')||_0x2c4b3a[_0x49dba7(0x1aa)]('\x5c'))throw new Error(_0x49dba7(0x1c1)+_0x2c4b3a);_0x5991a8[_0x49dba7(0x1dc)](_0x2c4b3a),_0x5991a8[_0x49dba7(0x1dc)]('\x00'),_0x5991a8[_0x49dba7(0x1dc)](readFileSync(join(_0x1ab0cc,..._0x2c4b3a[_0x49dba7(0x1cb)]('/')))),_0x5991a8[_0x49dba7(0x1dc)]('\x00');}return _0x5991a8[_0x49dba7(0x1c8)](_0x49dba7(0x1a7));}function sameFiles(_0x4d14f5,_0x4a9354){const _0x1334b9=a273_0xae0b7b;return _0x4d14f5[_0x1334b9(0x1b1)]===_0x4a9354[_0x1334b9(0x1b1)]&&_0x4d14f5[_0x1334b9(0x1ba)]((_0x152266,_0x1fc322)=>_0x152266===_0x4a9354[_0x1fc322]);}function readSource(_0x53ca0f){const _0x4d801c=a273_0xae0b7b,_0x273be8=JSON[_0x4d801c(0x1d1)](readFileSync(join(_0x53ca0f,_0x4d801c(0x1b7)),_0x4d801c(0x1b3))),_0x7384ec=JSON[_0x4d801c(0x1d1)](readFileSync(join(_0x53ca0f,_0x4d801c(0x1c9),_0x4d801c(0x1ca)),'utf8')),_0x10f271=join(_0x53ca0f,'skills',SKILL_NAME),_0x9da857=frontmatterValue(readFileSync(join(_0x10f271,_0x4d801c(0x1ce)),_0x4d801c(0x1b3)),_0x4d801c(0x1a8)),_0x77eb22=listFiles(_0x10f271);if(_0x7384ec[_0x4d801c(0x1db)]!==0x1||_0x7384ec['name']!==SKILL_NAME||!_0x273be8[_0x4d801c(0x1a8)]||_0x7384ec['packageVersion']!==_0x273be8[_0x4d801c(0x1a8)]||_0x7384ec[_0x4d801c(0x1d3)]!==_0x273be8[_0x4d801c(0x1a8)]||_0x9da857!==_0x273be8[_0x4d801c(0x1a8)]||!sameFiles(_0x77eb22,_0x7384ec[_0x4d801c(0x1a0)])||digestFiles(_0x10f271,_0x77eb22)!==_0x7384ec['digest'])throw new Error('Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest');return{'packageVersion':_0x273be8['version'],'skillVersion':_0x9da857,'root':_0x10f271,'manifest':_0x7384ec};}function installedSkillPath(_0x54caa6){const _0x4728f5=a273_0xae0b7b,_0x338edb=resolveInstalledSkill(SKILL_NAME,{'home':_0x54caa6});if(_0x338edb[_0x4728f5(0x1b0)]===_0x4728f5(0x1c0))return{'state':_0x4728f5(0x1c0),'path':dirname(_0x338edb[_0x4728f5(0x1c5)])};if(_0x338edb[_0x4728f5(0x1b0)]===_0x4728f5(0x1a9))return{'state':_0x4728f5(0x1cd)};return{'state':_0x4728f5(0x1c3),'reason':_0x338edb[_0x4728f5(0x1af)]};}export function inspectInstalledBuiltinSkillVersion(_0x5d6b86,_0x19dc6e={}){const _0x26d48d=a273_0xae0b7b,_0x426faf=installedSkillPath(_0x19dc6e['home']??homedir());if(_0x426faf[_0x26d48d(0x1b0)]===_0x26d48d(0x1cd))return{'state':_0x26d48d(0x1cd),'expectedVersion':_0x5d6b86,'repairCommand':REPAIR_COMMAND};if(_0x426faf[_0x26d48d(0x1b0)]===_0x26d48d(0x1c3))return{'state':_0x26d48d(0x1c3),'expectedVersion':_0x5d6b86,'reason':_0x426faf['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x39ce68=frontmatterValue(readFileSync(join(_0x426faf[_0x26d48d(0x1c5)],_0x26d48d(0x1ce)),_0x26d48d(0x1b3)),_0x26d48d(0x1a8));return{'state':_0x39ce68===_0x5d6b86?_0x26d48d(0x1a4):'version_mismatch','expectedVersion':_0x5d6b86,'skillVersion':_0x39ce68,'installedPath':_0x426faf['path'],'repairCommand':REPAIR_COMMAND};}catch(_0x1f6cad){return{'state':_0x26d48d(0x1c3),'expectedVersion':_0x5d6b86,'installedPath':_0x426faf[_0x26d48d(0x1c5)],'reason':_0x1f6cad instanceof Error?_0x1f6cad['message']:String(_0x1f6cad),'repairCommand':REPAIR_COMMAND};}}function a273_0x1538(){const _0x479293=['current','Symbolic\x20link\x20is\x20not\x20allowed:\x20','SOURCE_INVALID','hex','version','absent','includes','stdio','match','5SAMwvM',':\x5cs*(.+)$','reason','state','length','INSTALL_FAILED','utf8','3361225sbGsGQ','status','version_mismatch','package.json','root','isFile','every','unknown','content_mismatch','error','trim','7486496PNjKrA','present','Unsafe\x20manifest\x20path:\x20','rabetbase','unverifiable','installedPath','path','300710XIDTSj','3003376FEWXxs','digest','skills','rabetbase.manifest.json','split','message','missing','SKILL.md','sha256','isDirectory','parse','pipe','skillVersion','skipped','19950894KsczzG','Unsupported\x20Skill\x20entry:\x20','Installed\x20Skill\x20state\x20is\x20','join','973909dNiKSf','startsWith','schemaVersion','update','15vRQIbU','packageVersion','files','home','isSymbolicLink','1502880WnbcTW'];a273_0x1538=function(){return _0x479293;};return a273_0x1538();}export function inspectBuiltinSkill(_0x5d9d3e={}){const _0x432f29=a273_0xae0b7b,_0x20d7f5=_0x5d9d3e['packageRoot']??DEFAULT_PACKAGE_ROOT;let _0x1621cb;try{_0x1621cb=readSource(_0x20d7f5);}catch(_0x3fbd19){return{'state':_0x432f29(0x1c3),'packageVersion':_0x432f29(0x1bb),'reason':_0x3fbd19 instanceof Error?_0x3fbd19[_0x432f29(0x1cc)]:String(_0x3fbd19),'repairCommand':REPAIR_COMMAND};}const _0x514679=installedSkillPath(_0x5d9d3e[_0x432f29(0x1a1)]??homedir());if(_0x514679[_0x432f29(0x1b0)]===_0x432f29(0x1cd))return{'state':_0x432f29(0x1cd),'packageVersion':_0x1621cb[_0x432f29(0x1de)],'repairCommand':REPAIR_COMMAND};if(_0x514679['state']===_0x432f29(0x1c3))return{'state':_0x432f29(0x1c3),'packageVersion':_0x1621cb[_0x432f29(0x1de)],'reason':_0x514679[_0x432f29(0x1af)],'repairCommand':REPAIR_COMMAND};try{const _0xa1aa77=frontmatterValue(readFileSync(join(_0x514679[_0x432f29(0x1c5)],_0x432f29(0x1ce)),_0x432f29(0x1b3)),_0x432f29(0x1a8));if(_0xa1aa77!==_0x1621cb[_0x432f29(0x1d3)])return{'state':_0x432f29(0x1b6),'packageVersion':_0x1621cb[_0x432f29(0x1de)],'skillVersion':_0xa1aa77,'installedPath':_0x514679[_0x432f29(0x1c5)],'repairCommand':REPAIR_COMMAND};const _0x2609e0=listFiles(_0x514679['path']),_0x2c9b43=digestFiles(_0x514679[_0x432f29(0x1c5)],_0x2609e0);return{'state':sameFiles(_0x2609e0,_0x1621cb['manifest'][_0x432f29(0x1a0)])&&_0x2c9b43===_0x1621cb['manifest'][_0x432f29(0x1c8)]?'current':_0x432f29(0x1bc),'packageVersion':_0x1621cb[_0x432f29(0x1de)],'skillVersion':_0xa1aa77,'installedPath':_0x514679[_0x432f29(0x1c5)],'digest':_0x2c9b43,'repairCommand':REPAIR_COMMAND};}catch(_0x35739c){return{'state':_0x432f29(0x1c3),'packageVersion':_0x1621cb[_0x432f29(0x1de)],'installedPath':_0x514679[_0x432f29(0x1c5)],'reason':_0x35739c instanceof Error?_0x35739c[_0x432f29(0x1cc)]:String(_0x35739c),'repairCommand':REPAIR_COMMAND};}}function failure(_0xf052c9,_0x438094,_0x12b958,_0x2c6503){const _0x56476f=a273_0xae0b7b;return{'ok':![],'code':_0xf052c9,'packageVersion':_0x438094[_0x56476f(0x1de)],'skillVersion':_0x438094[_0x56476f(0x1d3)],'installedPath':_0x2c6503,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x12b958 instanceof Error?_0x12b958[_0x56476f(0x1cc)]:String(_0x12b958)};}export function installBuiltinSkill(_0x1425a0={}){const _0x193ab0=a273_0xae0b7b,_0x3c2ca8=_0x1425a0['packageRoot']??DEFAULT_PACKAGE_ROOT,_0x33ab1d=_0x1425a0[_0x193ab0(0x1a1)]??homedir();let _0x3f81fc;try{_0x3f81fc=readSource(_0x3c2ca8);}catch(_0x4f1a94){return failure(_0x193ab0(0x1a6),{'packageVersion':_0x193ab0(0x1bb),'skillVersion':'unknown'},_0x4f1a94);}const _0x11c29b=inspectBuiltinSkill({'packageRoot':_0x3c2ca8,'home':_0x33ab1d}),_0x463af9=runNpxSkillsAddGlobal(_0x3c2ca8,_0x3f81fc[_0x193ab0(0x1b8)],{'stdio':_0x1425a0[_0x193ab0(0x1ab)]??_0x193ab0(0x1d2),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x33ab1d}});if(_0x463af9[_0x193ab0(0x1d4)])return{'ok':!![],'packageVersion':_0x3f81fc[_0x193ab0(0x1de)],'skillVersion':_0x3f81fc[_0x193ab0(0x1d3)],'installedPath':_0x11c29b[_0x193ab0(0x1c4)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x463af9['ok'])return failure(_0x193ab0(0x1b2),_0x3f81fc,_0x463af9[_0x193ab0(0x1bd)]??'skills@latest\x20exited\x20'+_0x463af9[_0x193ab0(0x1b5)]);const _0x2d2337=inspectBuiltinSkill({'packageRoot':_0x3c2ca8,'home':_0x33ab1d});if(_0x2d2337['state']!=='current')return failure('VERIFY_FAILED',_0x3f81fc,_0x2d2337[_0x193ab0(0x1af)]??_0x193ab0(0x1d7)+_0x2d2337[_0x193ab0(0x1b0)],_0x2d2337['installedPath']);return{'ok':!![],'packageVersion':_0x3f81fc['packageVersion'],'skillVersion':_0x3f81fc[_0x193ab0(0x1d3)],'installedPath':_0x2d2337[_0x193ab0(0x1c4)],'changed':_0x11c29b[_0x193ab0(0x1b0)]!==_0x193ab0(0x1a4),'repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
1
- function a274_0x3c13(){const _0x516d81=['startsWith','\x0aAvailable\x20commands:','1113935wZvcZL','Unsupported\x20command:\x20','791088jBrOTw','dangerously-bff-save','199608kwhxUR','exit','from','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','Public\x20Open\x20Skill\x20source:\x20','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','toLowerCase','cwd','8brYCuZ','slice','536020NBTNoE','--help','error','115608vqTVSH','6dBZdac','skill','entries','6LaHPwC','176454OIichb','44ejJpAp','add','argv','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','has','replace','log','1331659SFuBTt','push','help','length'];a274_0x3c13=function(){return _0x516d81;};return a274_0x3c13();}(function(_0x470939,_0x4af778){const _0x504ee2=a274_0x78cf,_0x24ec38=_0x470939();while(!![]){try{const _0x53bfc0=parseInt(_0x504ee2(0x159))/0x1+parseInt(_0x504ee2(0x142))/0x2*(-parseInt(_0x504ee2(0x146))/0x3)+-parseInt(_0x504ee2(0x157))/0x4+parseInt(_0x504ee2(0x155))/0x5*(parseInt(_0x504ee2(0x143))/0x6)+-parseInt(_0x504ee2(0x14f))/0x7+-parseInt(_0x504ee2(0x161))/0x8*(parseInt(_0x504ee2(0x147))/0x9)+-parseInt(_0x504ee2(0x163))/0xa*(-parseInt(_0x504ee2(0x148))/0xb);if(_0x53bfc0===_0x4af778)break;else _0x24ec38['push'](_0x24ec38['shift']());}catch(_0x206d6f){_0x24ec38['push'](_0x24ec38['shift']());}}}(a274_0x3c13,0x1bbac));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(_0x5afb0e){const _0xc47cba=a274_0x78cf,_0x4d2cce=[];for(const [_0x3c2c2b,_0xa0eb5]of Object[_0xc47cba(0x145)](_0x5afb0e)){if(_0xa0eb5===!![]){const _0x543682=_0x3c2c2b[_0xc47cba(0x14d)](/([A-Z])/g,'-$1')[_0xc47cba(0x15f)]();_0x4d2cce[_0xc47cba(0x150)](_0x543682);}}return _0x4d2cce;}export function parseDynamicFlags(){const _0x18f5d9=a274_0x78cf,_0x5e66f1=[];for(let _0x34e9db=0x3;_0x34e9db<process[_0x18f5d9(0x14a)][_0x18f5d9(0x152)];_0x34e9db++){const _0x4e4cad=process['argv'][_0x34e9db];if(_0x4e4cad&&_0x4e4cad[_0x18f5d9(0x153)]('--')){const _0x19bbd1=_0x4e4cad[_0x18f5d9(0x162)](0x2);_0x19bbd1&&!_0x19bbd1['includes']('=')&&_0x5e66f1['push'](_0x19bbd1);}}return _0x5e66f1;}export function getAllProvidedFlags(_0x388d92){const _0x534d48=a274_0x78cf,_0x3ba7c2=camelCaseFlagsToKebab(_0x388d92),_0x1ddd9b=parseDynamicFlags(),_0x416290=new Set([..._0x3ba7c2,..._0x1ddd9b]);return Array[_0x534d48(0x15b)](_0x416290);}export function normalizeLegacyBffSaveFlags(_0x1de85c){const _0xa0f7be=a274_0x78cf,_0x1b56b1=new Set(_0x1de85c);return _0x1b56b1[_0xa0f7be(0x14c)](_0xa0f7be(0x158))&&_0x1b56b1[_0xa0f7be(0x149)]('enable-bff-save'),Array[_0xa0f7be(0x15b)](_0x1b56b1);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0xb2af63,_0x117ad1,_0x4a4966){const _0x413118=a274_0x78cf;logger['setLogPath'](process[_0x413118(0x160)]());if(_0x4a4966?.[_0x413118(0x151)]||_0xb2af63===_0x413118(0x140)){showHelp();return;}console[_0x413118(0x141)]('Error:\x20Unsupported\x20command:\x20'+(_0xb2af63||'(empty)')),console[_0x413118(0x14e)](_0x413118(0x154)),console[_0x413118(0x14e)]('\x20\x20'+CLI_BIN_NAME+_0x413118(0x14b)),console[_0x413118(0x14e)](''),console['log'](_0x413118(0x15d)+SKILLS_INSTALL_COMMAND_LINE),logger['error'](_0x413118(0x144),_0x413118(0x156)+_0xb2af63),process[_0x413118(0x15a)](0x1);}function a274_0x78cf(_0x4e6f2a,_0x28ebd4){_0x4e6f2a=_0x4e6f2a-0x140;const _0x3c1392=a274_0x3c13();let _0x78cf04=_0x3c1392[_0x4e6f2a];return _0x78cf04;}function showHelp(){const _0x22235c=a274_0x78cf;console[_0x22235c(0x14e)]('\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x22235c(0x15e)+SKILLS_INSTALL_COMMAND_LINE+_0x22235c(0x15c));}
1
+ function a274_0x2608(_0x3a53d1,_0x46a8a7){_0x3a53d1=_0x3a53d1-0x1d7;const _0x5a40b9=a274_0x5a40();let _0x2608d5=_0x5a40b9[_0x3a53d1];return _0x2608d5;}(function(_0x319760,_0x123604){const _0x647189=a274_0x2608,_0x350616=_0x319760();while(!![]){try{const _0x711951=-parseInt(_0x647189(0x1ec))/0x1+parseInt(_0x647189(0x1f2))/0x2*(-parseInt(_0x647189(0x1d8))/0x3)+parseInt(_0x647189(0x1e1))/0x4*(-parseInt(_0x647189(0x1d7))/0x5)+parseInt(_0x647189(0x1e2))/0x6+-parseInt(_0x647189(0x1de))/0x7*(-parseInt(_0x647189(0x1dc))/0x8)+parseInt(_0x647189(0x1f5))/0x9*(-parseInt(_0x647189(0x1f3))/0xa)+parseInt(_0x647189(0x1e9))/0xb;if(_0x711951===_0x123604)break;else _0x350616['push'](_0x350616['shift']());}catch(_0x43ddd4){_0x350616['push'](_0x350616['shift']());}}}(a274_0x5a40,0x34299));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x1780f9){const _0x28daa3=a274_0x2608,_0x406b13=[];for(const [_0x39aed7,_0x1b724b]of Object[_0x28daa3(0x1e4)](_0x1780f9)){if(_0x1b724b===!![]){const _0x3f261b=_0x39aed7[_0x28daa3(0x1db)](/([A-Z])/g,_0x28daa3(0x1fb))[_0x28daa3(0x1f4)]();_0x406b13[_0x28daa3(0x1ea)](_0x3f261b);}}return _0x406b13;}export function parseDynamicFlags(){const _0x18ec2d=a274_0x2608,_0x7ed6b=[];for(let _0x4cf5d6=0x3;_0x4cf5d6<process['argv']['length'];_0x4cf5d6++){const _0x12998e=process[_0x18ec2d(0x1f8)][_0x4cf5d6];if(_0x12998e&&_0x12998e[_0x18ec2d(0x1f1)]('--')){const _0x156b44=_0x12998e[_0x18ec2d(0x1d9)](0x2);_0x156b44&&!_0x156b44[_0x18ec2d(0x1ed)]('=')&&_0x7ed6b[_0x18ec2d(0x1ea)](_0x156b44);}}return _0x7ed6b;}export function getAllProvidedFlags(_0x1857e8){const _0x202be5=a274_0x2608,_0x3354f6=camelCaseFlagsToKebab(_0x1857e8),_0x5e02b3=parseDynamicFlags(),_0x5ac887=new Set([..._0x3354f6,..._0x5e02b3]);return Array[_0x202be5(0x1fc)](_0x5ac887);}export function normalizeLegacyBffSaveFlags(_0x3d51ae){const _0x545f2f=a274_0x2608,_0x44fff1=new Set(_0x3d51ae);return _0x44fff1[_0x545f2f(0x1e6)](_0x545f2f(0x1ef))&&_0x44fff1[_0x545f2f(0x1f6)]('enable-bff-save'),Array[_0x545f2f(0x1fc)](_0x44fff1);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x504816,_0x33845,_0x58962b){const _0x12851c=a274_0x2608;logger[_0x12851c(0x1da)](process['cwd']());if(_0x58962b?.[_0x12851c(0x1ee)]||_0x504816===_0x12851c(0x1e5)){showHelp();return;}console['error'](_0x12851c(0x1e7)+(_0x504816||_0x12851c(0x1df))),console[_0x12851c(0x1dd)](_0x12851c(0x1f9)),console[_0x12851c(0x1dd)]('\x20\x20'+CLI_BIN_NAME+'\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill'),console[_0x12851c(0x1dd)](''),console[_0x12851c(0x1dd)](_0x12851c(0x1e8)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x12851c(0x1fa)](_0x12851c(0x1e3),_0x12851c(0x1f0)+_0x504816),process[_0x12851c(0x1f7)](0x1);}function a274_0x5a40(){const _0x1eba40=['18sRzTtz','add','exit','argv','\x0aAvailable\x20commands:','error','-$1','from','253560XuDWUo','184278OuxDGE','slice','setLogPath','replace','8wAKURf','log','2350999PIlpfi','(empty)','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','16CouplB','405684JXULCS','skill','entries','--help','has','Error:\x20Unsupported\x20command:\x20','Public\x20Open\x20Skill\x20source:\x20','9994204ikYJTk','push','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','299862hlsXCr','includes','help','dangerously-bff-save','Unsupported\x20command:\x20','startsWith','8riwtxu','1749820diJevC','toLowerCase'];a274_0x5a40=function(){return _0x1eba40;};return a274_0x5a40();}function showHelp(){const _0x59abac=a274_0x2608;console[_0x59abac(0x1dd)](_0x59abac(0x1e0)+CLI_BIN_NAME+_0x59abac(0x1eb)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a');}
@@ -1 +1 @@
1
- const a275_0x12b1d2=a275_0x2a93;(function(_0x3ab48f,_0x212b4d){const _0x56b2d3=a275_0x2a93,_0x342288=_0x3ab48f();while(!![]){try{const _0x8d0b24=parseInt(_0x56b2d3(0x1c7))/0x1*(parseInt(_0x56b2d3(0x1e9))/0x2)+-parseInt(_0x56b2d3(0x1d9))/0x3*(-parseInt(_0x56b2d3(0x1c6))/0x4)+-parseInt(_0x56b2d3(0x1d2))/0x5*(parseInt(_0x56b2d3(0x1ec))/0x6)+parseInt(_0x56b2d3(0x1e2))/0x7*(-parseInt(_0x56b2d3(0x1e0))/0x8)+-parseInt(_0x56b2d3(0x1bb))/0x9+parseInt(_0x56b2d3(0x1c2))/0xa+parseInt(_0x56b2d3(0x1bf))/0xb;if(_0x8d0b24===_0x212b4d)break;else _0x342288['push'](_0x342288['shift']());}catch(_0x3d4c48){_0x342288['push'](_0x342288['shift']());}}}(a275_0x5770,0x84667));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=a275_0x12b1d2(0x1d3);export const NPX_SKILLS_SUBCOMMAND_ADD=a275_0x12b1d2(0x1d0);function a275_0x2a93(_0x125b0c,_0x101c80){_0x125b0c=_0x125b0c-0x1b7;const _0x57702f=a275_0x5770();let _0x2a93a8=_0x57702f[_0x125b0c];return _0x2a93a8;}function a275_0x5770(){const _0x112c8e=['status','3123810EFHtOL','warn','presence','unknown','28VxKTmu','6iCmQdR','code','present','push','remove','state','Lovrabet','INSTALL_PARTIAL','\x22\x20install\x20state:\x20','add','match','352895IZrHTU','skills@latest','checked','exit\x20','stdout','skill','error','346641qRRkAi','pipe','Installer\x20reported\x20','stderr','ENOENT','npx\x20terminated\x20by\x20signal\x20','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','3129592oRRFcq','Skill\x20\x22','14xsPOZD','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','unverifiable','lovrabet/lovrabet-skill','\x20failed\x20target(s)','log','stdio','152158uEoMhu','EACCES','inherit','12CbFghL','npx','--skill','trim','expectedSkillName','join','!\x20Could\x20not\x20verify\x20\x22','1841931ssdXNJ','absent','toString','PERMISSION_DENIED','1021262hVAqnJ','EPERM'];a275_0x5770=function(){return _0x112c8e;};return a275_0x5770();}export const NPX_SKILLS_FLAG_SKILL=a275_0x12b1d2(0x1ee);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a275_0x12b1d2(0x1e5);export const DEFAULT_RABETBASE_SKILL_NAME=a275_0x12b1d2(0x1cd);export const RABETBASE_GLOBAL_SKILL_NAME='rabetbase';export const RABETBASE_SKILL_GIT_SOURCE=a275_0x12b1d2(0x1df);export function resolveGlobalSkillName(_0xca576b){const _0x262f1d=a275_0x12b1d2;switch(_0xca576b[_0x262f1d(0x1b7)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x1a66be){const _0x45f798=a275_0x12b1d2,_0x5ca218=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x1a66be&&_0x5ca218[_0x45f798(0x1ca)](NPX_SKILLS_FLAG_SKILL,_0x1a66be),_0x5ca218;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a275_0x12b1d2(0x1ed),...buildNpxSkillsAddArgv()][a275_0x12b1d2(0x1b9)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a275_0x12b1d2(0x1ed),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a275_0x12b1d2(0x1b9)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x1123ee,_0x12c3f2,_0x105e71){return{'ok':![],'status':_0x12c3f2,'code':_0x1123ee,'error':'['+_0x1123ee+']\x20'+_0x105e71};}function spawnOptions(_0x329ccb,_0x3c46c2){const _0x37edaf={...process.env};return delete _0x37edaf['npm_config_global'],delete _0x37edaf['NPM_CONFIG_GLOBAL'],{'cwd':_0x329ccb,'stdio':_0x3c46c2,'env':_0x37edaf,'shell':![],..._0x3c46c2==='pipe'?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x4c3eea,_0x50e31e,_0x3cb8d5,_0x2ddd37){const _0x541175=a275_0x12b1d2,_0x2f2f5c=[_0x4c3eea[_0x541175(0x1d6)]?_0x4c3eea[_0x541175(0x1d6)][_0x541175(0x1bd)]():'',_0x4c3eea[_0x541175(0x1dc)]?_0x4c3eea['stderr'][_0x541175(0x1bd)]():'']['filter'](Boolean)[_0x541175(0x1b9)]('\x0a')[_0x541175(0x1b7)]();_0x2ddd37!==_0x541175(0x1da)&&_0x2f2f5c&&console[_0x541175(0x1e7)](_0x2f2f5c);if(_0x4c3eea[_0x541175(0x1d8)]){const _0x2980cd=_0x4c3eea[_0x541175(0x1d8)],_0x5ed1ec=_0x2980cd[_0x541175(0x1c8)]===_0x541175(0x1dd)?'NPX_NOT_FOUND':_0x2980cd['code']===_0x541175(0x1c0)||_0x2980cd[_0x541175(0x1c8)]===_0x541175(0x1ea)?_0x541175(0x1be):'SPAWN_FAILED';return failure(_0x5ed1ec,_0x4c3eea[_0x541175(0x1c1)],_0x2980cd['message']);}if(_0x4c3eea['signal'])return failure('CHILD_TERMINATED',_0x4c3eea[_0x541175(0x1c1)],_0x541175(0x1de)+_0x4c3eea['signal']);if(_0x4c3eea[_0x541175(0x1c1)]!==0x0)return failure('CHILD_EXIT_NONZERO',_0x4c3eea['status'],_0x2f2f5c||_0x541175(0x1d5)+(_0x4c3eea[_0x541175(0x1c1)]??_0x541175(0x1c5)));const _0x19cada=_0x50e31e?resolveInstalledSkill(_0x50e31e,_0x3cb8d5):undefined,_0xb277e3=_0x2f2f5c[_0x541175(0x1d1)](/Failed to install\s+(\d+)/i);if(_0xb277e3&&Number(_0xb277e3[0x1])>0x0){const _0x51a0b8=_0x541175(0x1db)+_0xb277e3[0x1]+_0x541175(0x1e6)+(_0x2f2f5c?':\x0a'+_0x2f2f5c:'');if(_0x19cada?.[_0x541175(0x1cc)]===_0x541175(0x1c9))return console['warn']('!\x20'+_0x51a0b8),{'ok':!![],'status':0x0};return failure(_0x541175(0x1ce),0x0,_0x51a0b8);}if(_0x19cada){if(_0x19cada['state']===_0x541175(0x1bc))return failure('SKILL_NOT_INSTALLED',0x0,_0x541175(0x1e1)+_0x50e31e+_0x541175(0x1e3)+_0x19cada[_0x541175(0x1d4)][_0x541175(0x1b9)](',\x20')+')');_0x19cada['state']===_0x541175(0x1e4)&&console[_0x541175(0x1c3)](_0x541175(0x1ba)+_0x50e31e+_0x541175(0x1cf)+_0x19cada['reason']);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x4df6b4,_0x336bec){const _0x10a1ec=a275_0x12b1d2;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x544a72=_0x336bec?.[_0x10a1ec(0x1e8)]??_0x10a1ec(0x1eb),_0x3a5f49=resolveNpmBin('npx'),_0x4b5ac7=buildNpxSkillsAddArgv(_0x336bec?.['skill']),_0x1d55f9=[_0x10a1ec(0x1ed),..._0x4b5ac7]['join']('\x20');console[_0x10a1ec(0x1e7)]('*\x20'+_0x1d55f9);const _0x259d84=spawnSync(_0x3a5f49,_0x4b5ac7,spawnOptions(_0x4df6b4,_0x544a72));return normalizeSpawnResult(_0x259d84,undefined,undefined,_0x544a72);}export function runNpxSkillsRemove(_0x28fe8a,_0x1a7291,_0x48f34f=LEGACY_RABETBASE_SKILL_SOURCE){const _0x5c1294=a275_0x12b1d2;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4a8f4d=_0x1a7291?.['stdio']??'inherit',_0x40b746=resolveNpmBin(_0x5c1294(0x1ed)),_0x22b2df=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x5c1294(0x1cb),_0x48f34f,NPX_SKILLS_FLAG_SKILL,_0x1a7291?.[_0x5c1294(0x1d7)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x1a7291?.['yes']?['-y']:[]],_0xafc0c1=[_0x40b746,..._0x22b2df]['join']('\x20');console[_0x5c1294(0x1e7)]('*\x20'+_0xafc0c1);const _0x41c49f=spawnSync(_0x40b746,_0x22b2df,spawnOptions(_0x28fe8a,_0x4a8f4d));return normalizeSpawnResult(_0x41c49f,undefined,undefined,_0x4a8f4d);}export function runNpxSkillsAddGlobal(_0x226596,_0x56d23c,_0x247a4f){const _0x5109a6=a275_0x12b1d2;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x2db6c9=resolveNpmBin(_0x5109a6(0x1ed)),_0x208361=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x56d23c,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x22322b=[_0x5109a6(0x1ed),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x56d23c,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console[_0x5109a6(0x1e7)]('*\x20'+_0x22322b);const _0x857707=spawnSync(_0x2db6c9,_0x208361,spawnOptions(_0x226596,_0x5109a6(0x1da)));return normalizeSpawnResult(_0x857707,_0x247a4f?.[_0x5109a6(0x1b8)]??resolveGlobalSkillName(_0x56d23c),_0x247a4f?.[_0x5109a6(0x1c4)],_0x247a4f?.[_0x5109a6(0x1e8)]);}
1
+ const a275_0x1e93c9=a275_0x2461;(function(_0x381234,_0x1448ee){const _0x15a6bd=a275_0x2461,_0x1190cb=_0x381234();while(!![]){try{const _0x1644e9=-parseInt(_0x15a6bd(0x178))/0x1*(-parseInt(_0x15a6bd(0x17a))/0x2)+parseInt(_0x15a6bd(0x15b))/0x3+parseInt(_0x15a6bd(0x175))/0x4+parseInt(_0x15a6bd(0x15d))/0x5*(-parseInt(_0x15a6bd(0x165))/0x6)+parseInt(_0x15a6bd(0x162))/0x7*(-parseInt(_0x15a6bd(0x14f))/0x8)+-parseInt(_0x15a6bd(0x15a))/0x9*(-parseInt(_0x15a6bd(0x167))/0xa)+-parseInt(_0x15a6bd(0x168))/0xb;if(_0x1644e9===_0x1448ee)break;else _0x1190cb['push'](_0x1190cb['shift']());}catch(_0x4330d0){_0x1190cb['push'](_0x1190cb['shift']());}}}(a275_0x44c5,0x8ca53));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills@latest';export const NPX_SKILLS_SUBCOMMAND_ADD=a275_0x1e93c9(0x169);export const NPX_SKILLS_FLAG_SKILL=a275_0x1e93c9(0x16c);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a275_0x1e93c9(0x149);export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export const RABETBASE_GLOBAL_SKILL_NAME=a275_0x1e93c9(0x173);export const RABETBASE_SKILL_GIT_SOURCE=a275_0x1e93c9(0x16e);export function resolveGlobalSkillName(_0x2e1c19){const _0x2c71b1=a275_0x1e93c9;switch(_0x2e1c19[_0x2c71b1(0x151)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}function a275_0x44c5(){const _0x5c88f6=['8577250WmMjql','add','stdout','stdio','--skill','presence','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','EACCES','npx','filter','INSTALL_PARTIAL','rabetbase','stderr','1308220IsYSng','message','CHILD_TERMINATED','6022aHZLys','npx\x20terminated\x20by\x20signal\x20','202YWQvJd','expectedSkillName','status','pipe','warn','join','lovrabet/lovrabet-skill','skill','exit\x20','Installer\x20reported\x20','present','SKILL_NOT_INSTALLED','5849392nlpSti','error','trim','match','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','PERMISSION_DENIED','NPM_CONFIG_GLOBAL','code','state','npm_config_global','push','18GjNSzt','3016218NVQyok','checked','10iYYvGa','\x20failed\x20target(s)','Skill\x20\x22','signal','reason','7rgWsgD','log','inherit','2847402aqfPmE','ENOENT','5477290odOrpV'];a275_0x44c5=function(){return _0x5c88f6;};return a275_0x44c5();}export function buildNpxSkillsAddArgv(_0x446397){const _0x2a28dd=a275_0x1e93c9,_0x51abf2=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x446397&&_0x51abf2[_0x2a28dd(0x159)](NPX_SKILLS_FLAG_SKILL,_0x446397),_0x51abf2;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a275_0x1e93c9(0x170),...buildNpxSkillsAddArgv()][a275_0x1e93c9(0x148)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x15bed3,_0x314eea,_0xdac4da){return{'ok':![],'status':_0x314eea,'code':_0x15bed3,'error':'['+_0x15bed3+']\x20'+_0xdac4da};}function a275_0x2461(_0x4555cd,_0x5ca32a){_0x4555cd=_0x4555cd-0x148;const _0x44c5ec=a275_0x44c5();let _0x2461c6=_0x44c5ec[_0x4555cd];return _0x2461c6;}function spawnOptions(_0x5bbd9c,_0x41edba){const _0x4c80c4=a275_0x1e93c9,_0x43eb4a={...process.env};return delete _0x43eb4a[_0x4c80c4(0x158)],delete _0x43eb4a[_0x4c80c4(0x155)],{'cwd':_0x5bbd9c,'stdio':_0x41edba,'env':_0x43eb4a,'shell':![],..._0x41edba===_0x4c80c4(0x17d)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x520d04,_0x339ce8,_0x170f0c,_0x31ad47){const _0x36631f=a275_0x1e93c9,_0x42db86=[_0x520d04[_0x36631f(0x16a)]?_0x520d04[_0x36631f(0x16a)]['toString']():'',_0x520d04[_0x36631f(0x174)]?_0x520d04[_0x36631f(0x174)]['toString']():''][_0x36631f(0x171)](Boolean)[_0x36631f(0x148)]('\x0a')[_0x36631f(0x151)]();_0x31ad47!=='pipe'&&_0x42db86&&console[_0x36631f(0x163)](_0x42db86);if(_0x520d04[_0x36631f(0x150)]){const _0x3f4269=_0x520d04[_0x36631f(0x150)],_0x4ee147=_0x3f4269['code']===_0x36631f(0x166)?'NPX_NOT_FOUND':_0x3f4269[_0x36631f(0x156)]==='EPERM'||_0x3f4269['code']===_0x36631f(0x16f)?_0x36631f(0x154):'SPAWN_FAILED';return failure(_0x4ee147,_0x520d04['status'],_0x3f4269[_0x36631f(0x176)]);}if(_0x520d04[_0x36631f(0x160)])return failure(_0x36631f(0x177),_0x520d04['status'],_0x36631f(0x179)+_0x520d04[_0x36631f(0x160)]);if(_0x520d04[_0x36631f(0x17c)]!==0x0)return failure('CHILD_EXIT_NONZERO',_0x520d04['status'],_0x42db86||_0x36631f(0x14b)+(_0x520d04['status']??'unknown'));const _0x946fb8=_0x339ce8?resolveInstalledSkill(_0x339ce8,_0x170f0c):undefined,_0x58b526=_0x42db86[_0x36631f(0x152)](/Failed to install\s+(\d+)/i);if(_0x58b526&&Number(_0x58b526[0x1])>0x0){const _0x54df35=_0x36631f(0x14c)+_0x58b526[0x1]+_0x36631f(0x15e)+(_0x42db86?':\x0a'+_0x42db86:'');if(_0x946fb8?.[_0x36631f(0x157)]===_0x36631f(0x14d))return console[_0x36631f(0x17e)]('!\x20'+_0x54df35),{'ok':!![],'status':0x0};return failure(_0x36631f(0x172),0x0,_0x54df35);}if(_0x946fb8){if(_0x946fb8[_0x36631f(0x157)]==='absent')return failure(_0x36631f(0x14e),0x0,_0x36631f(0x15f)+_0x339ce8+_0x36631f(0x153)+_0x946fb8[_0x36631f(0x15c)]['join'](',\x20')+')');_0x946fb8[_0x36631f(0x157)]==='unverifiable'&&console[_0x36631f(0x17e)]('!\x20Could\x20not\x20verify\x20\x22'+_0x339ce8+'\x22\x20install\x20state:\x20'+_0x946fb8[_0x36631f(0x161)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x470c96,_0x1ccf01){const _0x19e1eb=a275_0x1e93c9;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x11db37=_0x1ccf01?.['stdio']??_0x19e1eb(0x164),_0x11f59c=resolveNpmBin(_0x19e1eb(0x170)),_0x11edee=buildNpxSkillsAddArgv(_0x1ccf01?.[_0x19e1eb(0x14a)]),_0x23cd82=[_0x19e1eb(0x170),..._0x11edee][_0x19e1eb(0x148)]('\x20');console[_0x19e1eb(0x163)]('*\x20'+_0x23cd82);const _0x271191=spawnSync(_0x11f59c,_0x11edee,spawnOptions(_0x470c96,_0x11db37));return normalizeSpawnResult(_0x271191,undefined,undefined,_0x11db37);}export function runNpxSkillsRemove(_0xf5c7a6,_0x345129,_0x3aeebc=LEGACY_RABETBASE_SKILL_SOURCE){const _0x154fa4=a275_0x1e93c9;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5b5aa0=_0x345129?.[_0x154fa4(0x16b)]??_0x154fa4(0x164),_0x334715=resolveNpmBin(_0x154fa4(0x170)),_0x539469=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x3aeebc,NPX_SKILLS_FLAG_SKILL,_0x345129?.[_0x154fa4(0x14a)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x345129?.['yes']?['-y']:[]],_0x44d818=[_0x334715,..._0x539469][_0x154fa4(0x148)]('\x20');console[_0x154fa4(0x163)]('*\x20'+_0x44d818);const _0x2e7f6e=spawnSync(_0x334715,_0x539469,spawnOptions(_0xf5c7a6,_0x5b5aa0));return normalizeSpawnResult(_0x2e7f6e,undefined,undefined,_0x5b5aa0);}export function runNpxSkillsAddGlobal(_0x4c27e4,_0x3b7855,_0x19ba67){const _0x4c25f9=a275_0x1e93c9;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x27a5f9=resolveNpmBin(_0x4c25f9(0x170)),_0x3c418e=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3b7855,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x587145=[_0x4c25f9(0x170),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3b7855,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x4c25f9(0x148)]('\x20');console[_0x4c25f9(0x163)]('*\x20'+_0x587145);const _0x290e03=spawnSync(_0x27a5f9,_0x3c418e,spawnOptions(_0x4c27e4,'pipe'));return normalizeSpawnResult(_0x290e03,_0x19ba67?.[_0x4c25f9(0x17b)]??resolveGlobalSkillName(_0x3b7855),_0x19ba67?.[_0x4c25f9(0x16d)],_0x19ba67?.[_0x4c25f9(0x16b)]);}
@@ -1 +1 @@
1
- const a276_0x362907=a276_0x9e63;(function(_0x325ca4,_0x2f8ee8){const _0x167399=a276_0x9e63,_0x3b4c51=_0x325ca4();while(!![]){try{const _0x381577=-parseInt(_0x167399(0x1e1))/0x1*(-parseInt(_0x167399(0x1f3))/0x2)+-parseInt(_0x167399(0x1db))/0x3+parseInt(_0x167399(0x1dc))/0x4+-parseInt(_0x167399(0x1ef))/0x5+-parseInt(_0x167399(0x1d6))/0x6+parseInt(_0x167399(0x1e0))/0x7*(parseInt(_0x167399(0x1d7))/0x8)+-parseInt(_0x167399(0x1d8))/0x9;if(_0x381577===_0x2f8ee8)break;else _0x3b4c51['push'](_0x3b4c51['shift']());}catch(_0x5f1a6e){_0x3b4c51['push'](_0x3b4c51['shift']());}}}(a276_0x38c8,0xbb541));function a276_0x38c8(){const _0x3e2f54=['.claude','join','6nwRoWM','lockFile','\x20uses\x20unsupported\x20version\x20','\x20has\x20no\x20skills\x20map','.skill-lock.json','message','number','reason','9083592fLYXHS','1648984lAlnJS','3277269VNQHGi','map','\x20is\x20unreadable:\x20','1575981AIFdTG','5746900cMGJfe','parse','kind','unusable','42DNCFyU','319715ZRXiHP','present','includes','\x20records\x20\x22','object','version','.agents','find','utf8','home','skills','recorded','not-recorded','unverifiable','2309555bfZhKQ','absent'];a276_0x38c8=function(){return _0x3e2f54;};return a276_0x38c8();}import{existsSync,readFileSync}from'node:fs';function a276_0x9e63(_0x33b6f5,_0x22b66d){_0x33b6f5=_0x33b6f5-0x1d2;const _0x38c844=a276_0x38c8();let _0x9e63d3=_0x38c844[_0x33b6f5];return _0x9e63d3;}import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a276_0x362907(0x1e7),a276_0x362907(0x1d2));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a276_0x362907(0x1e7),a276_0x362907(0x1eb)),join(a276_0x362907(0x1f1),a276_0x362907(0x1eb))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x6e08d3,_0x292024){const _0x2be865=a276_0x362907;if(!existsSync(_0x6e08d3))return{'kind':_0x2be865(0x1ed)};let _0x1c1a86;try{_0x1c1a86=JSON[_0x2be865(0x1dd)](readFileSync(_0x6e08d3,_0x2be865(0x1e9)));}catch(_0x436231){return{'kind':_0x2be865(0x1df),'reason':_0x6e08d3+_0x2be865(0x1da)+_0x436231[_0x2be865(0x1d3)]};}const _0x2c1d40=_0x1c1a86;if(typeof _0x2c1d40?.[_0x2be865(0x1e6)]!==_0x2be865(0x1d4)||!SUPPORTED_LOCK_VERSIONS[_0x2be865(0x1e3)](_0x2c1d40['version']))return{'kind':_0x2be865(0x1df),'reason':_0x6e08d3+_0x2be865(0x1f5)+String(_0x2c1d40?.[_0x2be865(0x1e6)])};if(!_0x2c1d40[_0x2be865(0x1eb)]||typeof _0x2c1d40['skills']!==_0x2be865(0x1e5))return{'kind':'unusable','reason':_0x6e08d3+_0x2be865(0x1f6)};return _0x2c1d40[_0x2be865(0x1eb)][_0x292024]?{'kind':'recorded'}:{'kind':'not-recorded'};}export function resolveInstalledSkill(_0x5a3e1e,_0x2ddce3){const _0x212fc6=a276_0x362907,_0xc92d1=_0x2ddce3?.[_0x212fc6(0x1ea)]??homedir(),_0x5198f6=_0x2ddce3?.['globalSkillsDirs']??GLOBAL_SKILLS_DIR_RELATIVE_PATHS['map'](_0x433150=>join(_0xc92d1,_0x433150)),_0x24b6af=_0x2ddce3?.[_0x212fc6(0x1f4)]??join(_0xc92d1,SKILL_LOCK_RELATIVE_PATH),_0xf6834e=_0x5198f6[_0x212fc6(0x1d9)](_0x3452ac=>join(_0x3452ac,_0x5a3e1e,'SKILL.md')),_0x17ca97=_0xf6834e[_0x212fc6(0x1e8)](_0x328bb0=>existsSync(_0x328bb0));if(_0x17ca97)return{'state':_0x212fc6(0x1e2),'path':_0x17ca97};const _0x49f181=readLockLookup(_0x24b6af,_0x5a3e1e);if(_0x49f181[_0x212fc6(0x1de)]===_0x212fc6(0x1df))return{'state':_0x212fc6(0x1ee),'reason':_0x49f181[_0x212fc6(0x1d5)]};if(_0x49f181['kind']===_0x212fc6(0x1ec))return{'state':_0x212fc6(0x1ee),'reason':_0x24b6af+_0x212fc6(0x1e4)+_0x5a3e1e+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0xf6834e[_0x212fc6(0x1f2)](',\x20')+')')};return{'state':_0x212fc6(0x1f0),'checked':_0xf6834e};}
1
+ const a276_0x4198cf=a276_0x85f0;(function(_0x10ab56,_0x2a0966){const _0x16991d=a276_0x85f0,_0x592df7=_0x10ab56();while(!![]){try{const _0x107fb1=-parseInt(_0x16991d(0x12e))/0x1*(parseInt(_0x16991d(0x139))/0x2)+parseInt(_0x16991d(0x133))/0x3*(-parseInt(_0x16991d(0x134))/0x4)+parseInt(_0x16991d(0x132))/0x5*(parseInt(_0x16991d(0x11c))/0x6)+-parseInt(_0x16991d(0x128))/0x7+-parseInt(_0x16991d(0x123))/0x8+-parseInt(_0x16991d(0x136))/0x9+-parseInt(_0x16991d(0x126))/0xa*(-parseInt(_0x16991d(0x122))/0xb);if(_0x107fb1===_0x2a0966)break;else _0x592df7['push'](_0x592df7['shift']());}catch(_0x847f8b){_0x592df7['push'](_0x592df7['shift']());}}}(a276_0x3cbb,0x74365));function a276_0x3cbb(){const _0x430921=['605510feCySH','map','2785916nWetpv','home','skills','present','join','globalSkillsDirs','63148rizGWN','lockFile','recorded','\x20is\x20unreadable:\x20','5WynGvI','1742163dqhlQp','4GkJxbP','absent','7628769cBbZod','object','unusable','2ADJSQt','\x20records\x20\x22','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','version','\x20has\x20no\x20skills\x20map','parse','unverifiable','3349332HtRaVf','kind','.agents','.claude','includes','number','363irTVXc','1527216JLGJHL','SKILL.md','find'];a276_0x3cbb=function(){return _0x430921;};return a276_0x3cbb();}function a276_0x85f0(_0x54a488,_0x524dac){_0x54a488=_0x54a488-0x11b;const _0x3cbbba=a276_0x3cbb();let _0x85f0e=_0x3cbbba[_0x54a488];return _0x85f0e;}import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a276_0x4198cf(0x11e),'.skill-lock.json');export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a276_0x4198cf(0x11e),a276_0x4198cf(0x12a)),join(a276_0x4198cf(0x11f),a276_0x4198cf(0x12a))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x4dba63,_0x1c786c){const _0x51bb15=a276_0x4198cf;if(!existsSync(_0x4dba63))return{'kind':'not-recorded'};let _0x7ebc5f;try{_0x7ebc5f=JSON[_0x51bb15(0x13e)](readFileSync(_0x4dba63,'utf8'));}catch(_0x24f69d){return{'kind':_0x51bb15(0x138),'reason':_0x4dba63+_0x51bb15(0x131)+_0x24f69d['message']};}const _0x189505=_0x7ebc5f;if(typeof _0x189505?.[_0x51bb15(0x13c)]!==_0x51bb15(0x121)||!SUPPORTED_LOCK_VERSIONS[_0x51bb15(0x120)](_0x189505[_0x51bb15(0x13c)]))return{'kind':_0x51bb15(0x138),'reason':_0x4dba63+'\x20uses\x20unsupported\x20version\x20'+String(_0x189505?.['version'])};if(!_0x189505[_0x51bb15(0x12a)]||typeof _0x189505[_0x51bb15(0x12a)]!==_0x51bb15(0x137))return{'kind':_0x51bb15(0x138),'reason':_0x4dba63+_0x51bb15(0x13d)};return _0x189505[_0x51bb15(0x12a)][_0x1c786c]?{'kind':_0x51bb15(0x130)}:{'kind':'not-recorded'};}export function resolveInstalledSkill(_0x159be8,_0x34955b){const _0x6199c3=a276_0x4198cf,_0x344965=_0x34955b?.[_0x6199c3(0x129)]??homedir(),_0x531bbc=_0x34955b?.[_0x6199c3(0x12d)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x6199c3(0x127)](_0x2cc3b1=>join(_0x344965,_0x2cc3b1)),_0x6c7e79=_0x34955b?.[_0x6199c3(0x12f)]??join(_0x344965,SKILL_LOCK_RELATIVE_PATH),_0x3918ff=_0x531bbc[_0x6199c3(0x127)](_0x57e466=>join(_0x57e466,_0x159be8,_0x6199c3(0x124))),_0x3209d8=_0x3918ff[_0x6199c3(0x125)](_0x4a3a1f=>existsSync(_0x4a3a1f));if(_0x3209d8)return{'state':_0x6199c3(0x12b),'path':_0x3209d8};const _0x4b48c9=readLockLookup(_0x6c7e79,_0x159be8);if(_0x4b48c9[_0x6199c3(0x11d)]===_0x6199c3(0x138))return{'state':'unverifiable','reason':_0x4b48c9['reason']};if(_0x4b48c9[_0x6199c3(0x11d)]===_0x6199c3(0x130))return{'state':_0x6199c3(0x11b),'reason':_0x6c7e79+_0x6199c3(0x13a)+_0x159be8+_0x6199c3(0x13b)+('('+_0x3918ff[_0x6199c3(0x12c)](',\x20')+')')};return{'state':_0x6199c3(0x135),'checked':_0x3918ff};}
@@ -1 +1 @@
1
- (function(_0x5ec4eb,_0x474d02){const _0x35fcde=a277_0x4a5d,_0x2b3c31=_0x5ec4eb();while(!![]){try{const _0x2db9d0=-parseInt(_0x35fcde(0x1f4))/0x1*(-parseInt(_0x35fcde(0x1fa))/0x2)+parseInt(_0x35fcde(0x1fd))/0x3*(parseInt(_0x35fcde(0x1f9))/0x4)+-parseInt(_0x35fcde(0x201))/0x5+parseInt(_0x35fcde(0x1ff))/0x6*(parseInt(_0x35fcde(0x1f5))/0x7)+parseInt(_0x35fcde(0x1f6))/0x8*(parseInt(_0x35fcde(0x1fb))/0x9)+-parseInt(_0x35fcde(0x1ed))/0xa+-parseInt(_0x35fcde(0x1fc))/0xb*(-parseInt(_0x35fcde(0x1fe))/0xc);if(_0x2db9d0===_0x474d02)break;else _0x2b3c31['push'](_0x2b3c31['shift']());}catch(_0x2d412c){_0x2b3c31['push'](_0x2b3c31['shift']());}}}(a277_0x92d5,0x89392));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a277_0x4a5d(_0x99b4c5,_0x46a708){_0x99b4c5=_0x99b4c5-0x1ec;const _0x92d5a4=a277_0x92d5();let _0x4a5d61=_0x92d5a4[_0x99b4c5];return _0x4a5d61;}import{getCliVersion}from'../utils/version.js';function a277_0x92d5(){const _0x7ef4af=['11pnDHZD','66393IEtaOd','9905316uigJMx','6cfFPzS','entries','4319590GNtxCZ','stringify','3498690zoXdkE','durationMs','rabetbase.command','command','[REDACTED]','test','flags','635VbOKCk','3575999MYSRGv','24qUZIUm','error','message','44ZvNlxt','302hftgbQ','300681RYFXSA'];a277_0x92d5=function(){return _0x7ef4af;};return a277_0x92d5();}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x5855d8){const _0x3d0caa=a277_0x4a5d;return SENSITIVE_PATTERNS['some'](_0xa662f2=>_0xa662f2[_0x3d0caa(0x1f2)](_0x5855d8));}function sanitizeFlags(_0x599ee0){const _0x21933a=a277_0x4a5d,_0x136d3f={};for(const [_0x29b1d8,_0x34af41]of Object[_0x21933a(0x200)](_0x599ee0)){isSensitiveKey(_0x29b1d8)?_0x136d3f[_0x29b1d8]=_0x34af41!=null&&_0x34af41!==''?_0x21933a(0x1f1):_0x34af41:_0x136d3f[_0x29b1d8]=_0x34af41;}return _0x136d3f;}export async function reportCommandTrace(_0x21ddb4){const _0x23e366=a277_0x4a5d;try{const _0xd21bea=sanitizeFlags(_0x21ddb4[_0x23e366(0x1f3)]);await sendCliTraceLog({'spanName':_0x23e366(0x1ef),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x21ddb4['service'],'command.name':_0x21ddb4[_0x23e366(0x1f0)],'command.flags':JSON[_0x23e366(0x1ec)](_0xd21bea),..._0x21ddb4[_0x23e366(0x1ee)]!=null?{'command.duration_ms':_0x21ddb4[_0x23e366(0x1ee)]}:{},..._0x21ddb4['error']?{'command.error':_0x21ddb4[_0x23e366(0x1f7)]instanceof Error?_0x21ddb4[_0x23e366(0x1f7)][_0x23e366(0x1f8)]:String(_0x21ddb4[_0x23e366(0x1f7)])}:{}}});}catch{}}
1
+ function a277_0x35e9(){const _0x48db22=['durationMs','966096NzxFhb','test','10811196DHthyb','[REDACTED]','command','73677vOoJUZ','320813pdpWlQ','error','4820655jwSbwF','stringify','rabetbase.command','message','1245732qGhwBy','6zogNQk','entries','2658845NOodip','40BrBzud'];a277_0x35e9=function(){return _0x48db22;};return a277_0x35e9();}(function(_0x53d088,_0x496703){const _0x5e7660=a277_0x2a47,_0x320af8=_0x53d088();while(!![]){try{const _0x44fe13=-parseInt(_0x5e7660(0x1db))/0x1*(parseInt(_0x5e7660(0x1e2))/0x2)+parseInt(_0x5e7660(0x1da))/0x3*(parseInt(_0x5e7660(0x1e5))/0x4)+-parseInt(_0x5e7660(0x1e4))/0x5+-parseInt(_0x5e7660(0x1e1))/0x6+parseInt(_0x5e7660(0x1dd))/0x7+parseInt(_0x5e7660(0x1e7))/0x8+parseInt(_0x5e7660(0x1e9))/0x9;if(_0x44fe13===_0x496703)break;else _0x320af8['push'](_0x320af8['shift']());}catch(_0x17c236){_0x320af8['push'](_0x320af8['shift']());}}}(a277_0x35e9,0x875bf));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 a277_0x2a47(_0x3dd099,_0x5bce83){_0x3dd099=_0x3dd099-0x1d9;const _0x35e919=a277_0x35e9();let _0x2a47cc=_0x35e919[_0x3dd099];return _0x2a47cc;}function isSensitiveKey(_0x3b6e39){const _0x523292=a277_0x2a47;return SENSITIVE_PATTERNS['some'](_0x4936d8=>_0x4936d8[_0x523292(0x1e8)](_0x3b6e39));}function sanitizeFlags(_0x34607d){const _0x332ad3=a277_0x2a47,_0x48d3c6={};for(const [_0x16929b,_0x24d70a]of Object[_0x332ad3(0x1e3)](_0x34607d)){isSensitiveKey(_0x16929b)?_0x48d3c6[_0x16929b]=_0x24d70a!=null&&_0x24d70a!==''?_0x332ad3(0x1ea):_0x24d70a:_0x48d3c6[_0x16929b]=_0x24d70a;}return _0x48d3c6;}export async function reportCommandTrace(_0x23fd2f){const _0x30af9e=a277_0x2a47;try{const _0x277d82=sanitizeFlags(_0x23fd2f['flags']);await sendCliTraceLog({'spanName':_0x30af9e(0x1df),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x23fd2f['service'],'command.name':_0x23fd2f[_0x30af9e(0x1d9)],'command.flags':JSON[_0x30af9e(0x1de)](_0x277d82),..._0x23fd2f[_0x30af9e(0x1e6)]!=null?{'command.duration_ms':_0x23fd2f[_0x30af9e(0x1e6)]}:{},..._0x23fd2f['error']?{'command.error':_0x23fd2f[_0x30af9e(0x1dc)]instanceof Error?_0x23fd2f[_0x30af9e(0x1dc)][_0x30af9e(0x1e0)]:String(_0x23fd2f[_0x30af9e(0x1dc)])}:{}}});}catch{}}