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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (296) 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.js +1 -1
  56. package/lib/commands/config/list.js +1 -1
  57. package/lib/commands/config/set.js +1 -1
  58. package/lib/commands/config/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/business-groups.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff-refresh-start.js +1 -1
  87. package/lib/commands/db/diff-refresh-status.js +1 -1
  88. package/lib/commands/db/diff.js +1 -1
  89. package/lib/commands/db/index.js +1 -1
  90. package/lib/commands/db/list.js +1 -1
  91. package/lib/commands/db/shared.js +1 -1
  92. package/lib/commands/db/tables.js +1 -1
  93. package/lib/commands/db/test.js +1 -1
  94. package/lib/commands/db/update.js +1 -1
  95. package/lib/commands/doctor.js +1 -1
  96. package/lib/commands/file/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/kb/create.js +1 -1
  102. package/lib/commands/kb/delete.js +1 -1
  103. package/lib/commands/kb/detail.js +1 -1
  104. package/lib/commands/kb/index.js +1 -1
  105. package/lib/commands/kb/list.js +1 -1
  106. package/lib/commands/kb/search.js +1 -1
  107. package/lib/commands/kb/shared.js +1 -1
  108. package/lib/commands/kb/update.js +1 -1
  109. package/lib/commands/logs/index.js +1 -1
  110. package/lib/commands/menu/asset-update.js +1 -1
  111. package/lib/commands/menu/delete.js +1 -1
  112. package/lib/commands/menu/external-link-create.js +1 -1
  113. package/lib/commands/menu/external-link-update.js +1 -1
  114. package/lib/commands/menu/group-create.js +1 -1
  115. package/lib/commands/menu/group-update.js +1 -1
  116. package/lib/commands/menu/index.js +1 -1
  117. package/lib/commands/menu/list.js +1 -1
  118. package/lib/commands/menu/move.js +1 -1
  119. package/lib/commands/menu/regroup-start.js +1 -1
  120. package/lib/commands/menu/rename.js +1 -1
  121. package/lib/commands/menu/shared/compare-table.js +1 -1
  122. package/lib/commands/menu/shared/delete-plan.js +1 -1
  123. package/lib/commands/menu/shared/facts.js +1 -1
  124. package/lib/commands/menu/shared/index.js +1 -1
  125. package/lib/commands/menu/shared/inquirer.js +1 -1
  126. package/lib/commands/menu/shared/local-pages.js +1 -1
  127. package/lib/commands/menu/shared/logic.js +1 -1
  128. package/lib/commands/menu/shared/mutations.js +1 -1
  129. package/lib/commands/menu/shared/service.js +1 -1
  130. package/lib/commands/menu/shared/sync-core.js +1 -1
  131. package/lib/commands/menu/shared/update-core.js +1 -1
  132. package/lib/commands/menu/shared/valid-url.js +1 -1
  133. package/lib/commands/menu/sync.js +1 -1
  134. package/lib/commands/menu/visibility-update.js +1 -1
  135. package/lib/commands/notification/config-create.js +1 -1
  136. package/lib/commands/notification/config-delete.js +1 -1
  137. package/lib/commands/notification/config-list.js +1 -1
  138. package/lib/commands/notification/config-update.js +1 -1
  139. package/lib/commands/notification/index.js +1 -1
  140. package/lib/commands/notification/shared.js +1 -1
  141. package/lib/commands/ocr/index.js +1 -1
  142. package/lib/commands/page/create.js +1 -1
  143. package/lib/commands/page/custom/detail.js +1 -1
  144. package/lib/commands/page/custom/list.js +1 -1
  145. package/lib/commands/page/custom/publish.js +1 -1
  146. package/lib/commands/page/custom/shared.js +1 -1
  147. package/lib/commands/page/custom/syntax.js +1 -1
  148. package/lib/commands/page/custom/template.js +1 -1
  149. package/lib/commands/page/custom/update.js +1 -1
  150. package/lib/commands/page/data-list-status.js +1 -1
  151. package/lib/commands/page/generate-start.js +1 -1
  152. package/lib/commands/page/generate-status.js +1 -1
  153. package/lib/commands/page/index.js +1 -1
  154. package/lib/commands/page/pull.js +1 -1
  155. package/lib/commands/page/push.js +1 -1
  156. package/lib/commands/page/relation-audit.js +1 -1
  157. package/lib/commands/page/restore.js +1 -1
  158. package/lib/commands/page/shared.js +1 -1
  159. package/lib/commands/page/sync.js +1 -1
  160. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  161. package/lib/commands/project/create/format-elapsed.js +1 -1
  162. package/lib/commands/project/create/main.js +1 -1
  163. package/lib/commands/project/create/materialize-project-template.js +1 -1
  164. package/lib/commands/project/create/project-name.js +1 -1
  165. package/lib/commands/project/create/project-template-archive.js +1 -1
  166. package/lib/commands/project/create/project-template-path.js +1 -1
  167. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  168. package/lib/commands/project/create/use-format-code.js +1 -1
  169. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  170. package/lib/commands/project/index.js +1 -1
  171. package/lib/commands/project/upgrade.js +1 -1
  172. package/lib/commands/registry.js +1 -1
  173. package/lib/commands/role/delete.js +1 -1
  174. package/lib/commands/role/detail.js +1 -1
  175. package/lib/commands/role/index.js +1 -1
  176. package/lib/commands/role/list.js +1 -1
  177. package/lib/commands/role/shared.js +1 -1
  178. package/lib/commands/role/update.js +1 -1
  179. package/lib/commands/role/user-add.js +1 -1
  180. package/lib/commands/role/user-remove.js +1 -1
  181. package/lib/commands/role/user-resolve.js +1 -1
  182. package/lib/commands/run/index.js +1 -1
  183. package/lib/commands/schema.js +1 -1
  184. package/lib/commands/sql/create.js +1 -1
  185. package/lib/commands/sql/delete.js +1 -1
  186. package/lib/commands/sql/detail.js +1 -1
  187. package/lib/commands/sql/exec.js +1 -1
  188. package/lib/commands/sql/index.js +1 -1
  189. package/lib/commands/sql/list.js +1 -1
  190. package/lib/commands/sql/pull.js +1 -1
  191. package/lib/commands/sql/push.js +1 -1
  192. package/lib/commands/sql/shared.js +1 -1
  193. package/lib/commands/sql/status.js +1 -1
  194. package/lib/commands/sql/validate.js +1 -1
  195. package/lib/commands/task/index.js +1 -1
  196. package/lib/commands/task/status.js +1 -1
  197. package/lib/commands/tenant/index.js +1 -1
  198. package/lib/commands/tenant/members-list.js +1 -1
  199. package/lib/commands/tenant/shared.js +1 -1
  200. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  201. package/lib/commands/user-account/index.js +1 -1
  202. package/lib/commands/workspace/add.js +1 -1
  203. package/lib/commands/workspace/index.js +1 -1
  204. package/lib/commands/workspace/remove.js +1 -1
  205. package/lib/config/domain-config.js +1 -1
  206. package/lib/config/schema.js +1 -1
  207. package/lib/constant/cdn.js +1 -1
  208. package/lib/constant/cli.js +1 -1
  209. package/lib/constant/defaults.js +1 -1
  210. package/lib/constant/domain.js +1 -1
  211. package/lib/constant/env.js +1 -1
  212. package/lib/constant/output.js +1 -1
  213. package/lib/constant/paths.js +1 -1
  214. package/lib/constant/region.js +1 -1
  215. package/lib/constant/risk.js +1 -1
  216. package/lib/context/app-resolver.js +1 -1
  217. package/lib/context/auth-resolver.js +1 -1
  218. package/lib/context/config-loader.js +1 -1
  219. package/lib/context.js +1 -1
  220. package/lib/core/alias-resolver.js +1 -1
  221. package/lib/core/api-client.js +1 -1
  222. package/lib/core/bff/config.js +1 -1
  223. package/lib/core/bff/file-system.js +1 -1
  224. package/lib/core/bff/hash.js +1 -1
  225. package/lib/core/bff/lock.js +1 -1
  226. package/lib/core/bff/utils.js +1 -1
  227. package/lib/core/db-resolver.js +1 -1
  228. package/lib/core/page/file-system.js +1 -1
  229. package/lib/core/page/hash.js +1 -1
  230. package/lib/core/page/lock.js +1 -1
  231. package/lib/core/sql-index-auditor.js +1 -1
  232. package/lib/core/sql-sync/config.js +1 -1
  233. package/lib/core/sql-sync/file-system.js +1 -1
  234. package/lib/core/sql-sync/hash.js +1 -1
  235. package/lib/core/sql-sync/lock.js +1 -1
  236. package/lib/core/sql-sync/utils.js +1 -1
  237. package/lib/core/sql-validator.js +1 -1
  238. package/lib/errors.js +1 -1
  239. package/lib/framework/build-all-flags.js +1 -1
  240. package/lib/framework/error-output.js +1 -1
  241. package/lib/framework/explicit-yes.js +1 -1
  242. package/lib/framework/flags.js +1 -1
  243. package/lib/framework/help.js +1 -1
  244. package/lib/framework/index.js +1 -1
  245. package/lib/framework/output.js +1 -1
  246. package/lib/framework/response.js +1 -1
  247. package/lib/framework/runner-alias.js +1 -1
  248. package/lib/framework/runner.js +1 -1
  249. package/lib/framework/schema-export.js +1 -1
  250. package/lib/framework/types.js +1 -1
  251. package/lib/generated/build-info.d.ts +4 -4
  252. package/lib/generated/build-info.js +1 -1
  253. package/lib/help.js +1 -1
  254. package/lib/postinstall.js +1 -1
  255. package/lib/runtime/confirmation.js +1 -1
  256. package/lib/runtime/event.js +1 -1
  257. package/lib/runtime/index.js +1 -1
  258. package/lib/runtime/queue.js +1 -1
  259. package/lib/runtime/resolve.js +1 -1
  260. package/lib/skills/builtin-skill.js +1 -1
  261. package/lib/skills/main.js +1 -1
  262. package/lib/skills/npx-skills-add.js +1 -1
  263. package/lib/skills/skill-presence.js +1 -1
  264. package/lib/telemetry/cli-command-trace.js +1 -1
  265. package/lib/telemetry/cli-help-trace.js +1 -1
  266. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  267. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  268. package/lib/telemetry/send-cli-trace-log.js +1 -1
  269. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  270. package/lib/utils/ai_config.js +1 -1
  271. package/lib/utils/apply-jq-filter.js +1 -1
  272. package/lib/utils/cdn-config.js +1 -1
  273. package/lib/utils/check-sdk-version.js +1 -1
  274. package/lib/utils/cli-version-check.js +1 -1
  275. package/lib/utils/cli-version-policy.js +1 -1
  276. package/lib/utils/config.js +1 -1
  277. package/lib/utils/entity-with-id.js +1 -1
  278. package/lib/utils/file-utils.js +1 -1
  279. package/lib/utils/guides-cdn.js +1 -1
  280. package/lib/utils/http-client.js +1 -1
  281. package/lib/utils/is-non-interactive.js +1 -1
  282. package/lib/utils/logger.js +1 -1
  283. package/lib/utils/params.js +1 -1
  284. package/lib/utils/platform.js +1 -1
  285. package/lib/utils/sleep.js +1 -1
  286. package/lib/utils/template-replacer.js +1 -1
  287. package/lib/utils/update-notice.js +1 -1
  288. package/lib/utils/version.js +1 -1
  289. package/lib/utils/with-active-cookie.js +1 -1
  290. package/lib/utils/write-cli-side-channel.js +1 -1
  291. package/package.json +1 -1
  292. package/skills/rabetbase/SKILL.md +1 -1
  293. package/skills/rabetbase/references/rabetbase-config.md +1 -1
  294. package/skills/rabetbase/references/rabetbase-dataset-business-group-update.md +17 -6
  295. package/skills/rabetbase/references/rabetbase-kb.md +1 -1
  296. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x3c2171,_0x2fc64e){const _0x3d77f3=a248_0x37ad,_0x2b6b6e=_0x3c2171();while(!![]){try{const _0x3b80ae=parseInt(_0x3d77f3(0x125))/0x1+-parseInt(_0x3d77f3(0x11c))/0x2+parseInt(_0x3d77f3(0x122))/0x3+-parseInt(_0x3d77f3(0x134))/0x4*(-parseInt(_0x3d77f3(0x123))/0x5)+parseInt(_0x3d77f3(0x12a))/0x6*(parseInt(_0x3d77f3(0x136))/0x7)+-parseInt(_0x3d77f3(0x12f))/0x8*(-parseInt(_0x3d77f3(0x129))/0x9)+-parseInt(_0x3d77f3(0x137))/0xa;if(_0x3b80ae===_0x2fc64e)break;else _0x2b6b6e['push'](_0x2b6b6e['shift']());}catch(_0x50d8bc){_0x2b6b6e['push'](_0x2b6b6e['shift']());}}}(a248_0x46e6,0x2e69f));function a248_0x37ad(_0x3961dc,_0x8fdfa3){_0x3961dc=_0x3961dc-0x11b;const _0x46e6a6=a248_0x46e6();let _0x37adce=_0x46e6a6[_0x3961dc];return _0x37adce;}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(_0x3c4e3f,_0x2b77ce){const _0xe73357=a248_0x37ad,_0x355df1=_0x3c4e3f[_0xe73357(0x133)],{_notice:_0x25cb06,..._0x1fd6de}=_0x3c4e3f;void _0x25cb06,baseFormatOutput(_0x1fd6de,_0x2b77ce),_0x2b77ce[_0xe73357(0x11e)]==='pretty'&&printPrettyNotice(_0x355df1);}function a248_0x46e6(){const _0x2d0a4a=['330260KfmHPK','endsWith','format','code','risk','jqFilter','561540MrvYcj','5KxXMVH','validation','111891FyTAbG','trim','data','stdout','660987JxpabG','1542PeGMhy','update','command','json','url','32FTJimA','pretty','write','error','_notice','500012KSVMUK','hint','119RWMCrP','3669740ArxQAc','stringify','message'];a248_0x46e6=function(){return _0x2d0a4a;};return a248_0x46e6();}export function formatCliError(_0xaaf295,_0x4027b1){const _0x1515f4=a248_0x37ad;if(_0x4027b1[_0x1515f4(0x11e)]===_0x1515f4(0x130))return![];const _0x4d51f8=_0xaaf295[_0x1515f4(0x127)],_0x46ee13={'ok':![],'command':_0x4027b1[_0x1515f4(0x12c)],'risk':_0x4027b1[_0x1515f4(0x120)],'data':_0x4d51f8??null,'error':{'code':_0xaaf295[_0x1515f4(0x11f)],'message':_0xaaf295[_0x1515f4(0x11b)],..._0xaaf295[_0x1515f4(0x135)]?{'hint':_0xaaf295[_0x1515f4(0x135)]}:{}}},_0x5a9c36=_0x4027b1[_0x1515f4(0x11e)]==='json'?JSON['stringify'](_0x46ee13,null,0x2):JSON[_0x1515f4(0x138)](_0x46ee13);let _0x375f41=_0x5a9c36;if(_0x4027b1[_0x1515f4(0x121)]?.[_0x1515f4(0x126)]())try{_0x375f41=applyJqFilter(_0x5a9c36,_0x4027b1[_0x1515f4(0x121)]);}catch(_0x5bc458){const _0x1cb62a=_0x5bc458 instanceof CliError?_0x5bc458:CliErrors[_0x1515f4(0x124)]('jq:\x20'+(_0x5bc458 instanceof Error?_0x5bc458[_0x1515f4(0x11b)]:String(_0x5bc458))),_0x3a0843={..._0x46ee13,'error':{'code':_0x1cb62a[_0x1515f4(0x11f)],'message':_0x1cb62a[_0x1515f4(0x11b)],..._0x1cb62a[_0x1515f4(0x135)]?{'hint':_0x1cb62a['hint']}:{},'cause':_0x46ee13[_0x1515f4(0x132)]}};_0x375f41=_0x4027b1[_0x1515f4(0x11e)]===_0x1515f4(0x12d)?JSON[_0x1515f4(0x138)](_0x3a0843,null,0x2):JSON['stringify'](_0x3a0843);}return process[_0x1515f4(0x128)][_0x1515f4(0x131)](_0x375f41[_0x1515f4(0x11d)]('\x0a')?_0x375f41:_0x375f41+'\x0a'),!![];}function printPrettyNotice(_0x57aa6a){const _0x51b5df=a248_0x37ad;if(!_0x57aa6a?.['update'])return;console[_0x51b5df(0x132)](_0x57aa6a[_0x51b5df(0x12b)]['message']+'\x20('+_0x57aa6a[_0x51b5df(0x12b)][_0x51b5df(0x12e)]+')');}
1
+ function a248_0x59d7(_0x3f19b3,_0x234ae3){_0x3f19b3=_0x3f19b3-0x1d1;const _0x2ff748=a248_0x2ff7();let _0x59d710=_0x2ff748[_0x3f19b3];return _0x59d710;}(function(_0x314f58,_0x3a5ffa){const _0x42f527=a248_0x59d7,_0x4f717d=_0x314f58();while(!![]){try{const _0x497c8c=parseInt(_0x42f527(0x1ef))/0x1+parseInt(_0x42f527(0x1e9))/0x2+-parseInt(_0x42f527(0x1dc))/0x3*(-parseInt(_0x42f527(0x1e6))/0x4)+-parseInt(_0x42f527(0x1ed))/0x5*(parseInt(_0x42f527(0x1e0))/0x6)+-parseInt(_0x42f527(0x1d7))/0x7*(-parseInt(_0x42f527(0x1eb))/0x8)+parseInt(_0x42f527(0x1d9))/0x9*(parseInt(_0x42f527(0x1df))/0xa)+-parseInt(_0x42f527(0x1d3))/0xb*(parseInt(_0x42f527(0x1d4))/0xc);if(_0x497c8c===_0x3a5ffa)break;else _0x4f717d['push'](_0x4f717d['shift']());}catch(_0x4156f4){_0x4f717d['push'](_0x4f717d['shift']());}}}(a248_0x2ff7,0x7e84e));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(_0x509826,_0x5d34c4){const _0x19038f=a248_0x59d7,_0x7dd80a=_0x509826[_0x19038f(0x1e1)],{_notice:_0x4989a0,..._0x15d2c5}=_0x509826;void _0x4989a0,baseFormatOutput(_0x15d2c5,_0x5d34c4),_0x5d34c4[_0x19038f(0x1e3)]===_0x19038f(0x1d6)&&printPrettyNotice(_0x7dd80a);}export function formatCliError(_0x278fe2,_0x467b42){const _0x557661=a248_0x59d7;if(_0x467b42['format']===_0x557661(0x1d6))return![];const _0x3aaf62=_0x278fe2[_0x557661(0x1e5)],_0x49590e={'ok':![],'command':_0x467b42[_0x557661(0x1d1)],'risk':_0x467b42[_0x557661(0x1ea)],'data':_0x3aaf62??null,'error':{'code':_0x278fe2[_0x557661(0x1e7)],'message':_0x278fe2[_0x557661(0x1de)],..._0x278fe2[_0x557661(0x1e8)]?{'hint':_0x278fe2[_0x557661(0x1e8)]}:{}}},_0x274fd4=_0x467b42[_0x557661(0x1e3)]===_0x557661(0x1d5)?JSON['stringify'](_0x49590e,null,0x2):JSON[_0x557661(0x1da)](_0x49590e);let _0x11288a=_0x274fd4;if(_0x467b42[_0x557661(0x1ee)]?.[_0x557661(0x1ec)]())try{_0x11288a=applyJqFilter(_0x274fd4,_0x467b42[_0x557661(0x1ee)]);}catch(_0x313b30){const _0x5d9c5f=_0x313b30 instanceof CliError?_0x313b30:CliErrors['validation'](_0x557661(0x1e2)+(_0x313b30 instanceof Error?_0x313b30[_0x557661(0x1de)]:String(_0x313b30))),_0x22fc4d={..._0x49590e,'error':{'code':_0x5d9c5f['code'],'message':_0x5d9c5f[_0x557661(0x1de)],..._0x5d9c5f['hint']?{'hint':_0x5d9c5f[_0x557661(0x1e8)]}:{},'cause':_0x49590e[_0x557661(0x1d2)]}};_0x11288a=_0x467b42[_0x557661(0x1e3)]===_0x557661(0x1d5)?JSON[_0x557661(0x1da)](_0x22fc4d,null,0x2):JSON['stringify'](_0x22fc4d);}return process['stdout'][_0x557661(0x1dd)](_0x11288a[_0x557661(0x1db)]('\x0a')?_0x11288a:_0x11288a+'\x0a'),!![];}function printPrettyNotice(_0x4db81c){const _0x253e9e=a248_0x59d7;if(!_0x4db81c?.['update'])return;console['error'](_0x4db81c['update'][_0x253e9e(0x1de)]+'\x20('+_0x4db81c[_0x253e9e(0x1e4)][_0x253e9e(0x1d8)]+')');}function a248_0x2ff7(){const _0xb2948b=['2104eEaLxk','trim','10oBGrsh','jqFilter','140404voYRUm','command','error','11MyYdCX','15453804zBGrvY','json','pretty','18809rFHGwF','url','1172331nAxrMi','stringify','endsWith','408qrIqXu','write','message','10aDEKWB','1098186VMYYsl','_notice','jq:\x20','format','update','data','14220FYMIEU','code','hint','1422554Kwmzee','risk'];a248_0x2ff7=function(){return _0xb2948b;};return a248_0x2ff7();}
@@ -1 +1 @@
1
- (function(_0x450e1a,_0x35c9af){var _0x190048=a249_0x392a,_0x571852=_0x450e1a();while(!![]){try{var _0x51f759=parseInt(_0x190048(0x188))/0x1*(parseInt(_0x190048(0x190))/0x2)+parseInt(_0x190048(0x18d))/0x3*(-parseInt(_0x190048(0x192))/0x4)+parseInt(_0x190048(0x18e))/0x5*(parseInt(_0x190048(0x18b))/0x6)+-parseInt(_0x190048(0x18f))/0x7+-parseInt(_0x190048(0x193))/0x8*(parseInt(_0x190048(0x189))/0x9)+parseInt(_0x190048(0x18c))/0xa*(parseInt(_0x190048(0x191))/0xb)+-parseInt(_0x190048(0x18a))/0xc;if(_0x51f759===_0x35c9af)break;else _0x571852['push'](_0x571852['shift']());}catch(_0x533da0){_0x571852['push'](_0x571852['shift']());}}}(a249_0x137b,0xb9b70));function a249_0x392a(_0x2e8b19,_0x49904f){_0x2e8b19=_0x2e8b19-0x188;var _0x137bae=a249_0x137b();var _0x392a8e=_0x137bae[_0x2e8b19];return _0x392a8e;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a249_0x137b(){var _0x593a5c=['2ltsgjD','130185EStCEW','2862572YNlfGS','1667752KedCMT','1413011DHBGaf','18MvzszN','13664976pYWEuG','6848802jiDEGJ','470wJqbWN','3IYBBAb','5jPPsSF','550942OVeljI'];a249_0x137b=function(){return _0x593a5c;};return a249_0x137b();}
1
+ (function(_0x5b9d1a,_0x3e5921){var _0x425003=a249_0x42ed,_0x1d51be=_0x5b9d1a();while(!![]){try{var _0x15e7a0=-parseInt(_0x425003(0x1e0))/0x1*(parseInt(_0x425003(0x1e2))/0x2)+-parseInt(_0x425003(0x1db))/0x3+parseInt(_0x425003(0x1e4))/0x4*(parseInt(_0x425003(0x1dc))/0x5)+parseInt(_0x425003(0x1df))/0x6*(-parseInt(_0x425003(0x1e3))/0x7)+-parseInt(_0x425003(0x1e1))/0x8*(parseInt(_0x425003(0x1de))/0x9)+parseInt(_0x425003(0x1da))/0xa*(-parseInt(_0x425003(0x1dd))/0xb)+parseInt(_0x425003(0x1e5))/0xc;if(_0x15e7a0===_0x3e5921)break;else _0x1d51be['push'](_0x1d51be['shift']());}catch(_0x1c370a){_0x1d51be['push'](_0x1d51be['shift']());}}}(a249_0x1c52,0x2b14b));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a249_0x42ed(_0xf47dfd,_0x50ec5d){_0xf47dfd=_0xf47dfd-0x1da;var _0x1c525c=a249_0x1c52();var _0x42ed5a=_0x1c525c[_0xf47dfd];return _0x42ed5a;}function a249_0x1c52(){var _0x273a70=['62874fXyzBT','24AMgrdD','12262908lnlbcT','10XfDmdJ','499458paqtbE','137035lsfmok','2908543WdyFWC','1118115VfBhfG','66KeDKcq','33103FFRnqm','16WRFXkI','14jbqhXy'];a249_0x1c52=function(){return _0x273a70;};return a249_0x1c52();}
@@ -1 +1 @@
1
- function a250_0x24e9(_0x269a50,_0x33fcf1){_0x269a50=_0x269a50-0x15a;const _0x436f44=a250_0x436f();let _0x24e9e0=_0x436f44[_0x269a50];return _0x24e9e0;}(function(_0x155d81,_0x147061){const _0x406da7=a250_0x24e9,_0x4e73dc=_0x155d81();while(!![]){try{const _0x9881e6=parseInt(_0x406da7(0x16f))/0x1*(-parseInt(_0x406da7(0x16e))/0x2)+-parseInt(_0x406da7(0x15d))/0x3*(-parseInt(_0x406da7(0x16a))/0x4)+parseInt(_0x406da7(0x166))/0x5+-parseInt(_0x406da7(0x15a))/0x6+parseInt(_0x406da7(0x165))/0x7+-parseInt(_0x406da7(0x161))/0x8+-parseInt(_0x406da7(0x163))/0x9*(parseInt(_0x406da7(0x172))/0xa);if(_0x9881e6===_0x147061)break;else _0x4e73dc['push'](_0x4e73dc['shift']());}catch(_0x22ddcf){_0x4e73dc['push'](_0x4e73dc['shift']());}}}(a250_0x436f,0x51235));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a250_0x436f(){const _0x331d6c=['type','flags','730HaZywg','\x22.\x20','3936450nOIYRR','join','code','12381qxZOwf','map','\x20api\x20pull`\x20first.','validation','468584rjHQXi','string','13599IaPbsJ','Unknown\x20alias\x20\x22','3757628EOohcq','2294540BwXUsg','name','length','alias','404NanYSG','some','No\x20api.ts\x20found\x20in\x20','.\x20Run\x20`','2fFcWTB','255247VelNkF'];a250_0x436f=function(){return _0x331d6c;};return a250_0x436f();}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x519d0c,_0x4d2beb,_0x19421f,_0x2124ee){const _0x45a9c8=a250_0x24e9,_0x413a8f=_0x519d0c[_0x45a9c8(0x171)][_0x45a9c8(0x16b)](_0x2bca5f=>_0x2bca5f['name']==='code'&&_0x2bca5f[_0x45a9c8(0x170)]===_0x45a9c8(0x162)),_0x12b2a3=_0x519d0c[_0x45a9c8(0x171)]['some'](_0x132aa4=>_0x132aa4[_0x45a9c8(0x167)]===_0x45a9c8(0x169)&&_0x132aa4[_0x45a9c8(0x170)]===_0x45a9c8(0x162));if(!_0x413a8f||!_0x12b2a3)return;const _0x2281af=_0x4d2beb[_0x45a9c8(0x15c)]?String(_0x4d2beb[_0x45a9c8(0x15c)]):'',_0x1e3bc7=_0x4d2beb[_0x45a9c8(0x169)]?String(_0x4d2beb[_0x45a9c8(0x169)]):'';if(!_0x2281af&&!_0x1e3bc7)throw CliErrors[_0x45a9c8(0x160)]('`'+_0x2124ee+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x1e3bc7&&!_0x2281af){const _0x24fd15=resolveAlias(_0x19421f,_0x1e3bc7);if(!_0x24fd15){const _0x42e30c=listAliases(_0x19421f)[_0x45a9c8(0x15e)](_0x507a71=>_0x507a71[_0x45a9c8(0x169)]),_0x3d5271=_0x42e30c[_0x45a9c8(0x168)]?'Available\x20aliases:\x20'+_0x42e30c[_0x45a9c8(0x15b)](',\x20'):_0x45a9c8(0x16c)+_0x19421f+_0x45a9c8(0x16d)+CLI_BIN_NAME+_0x45a9c8(0x15f);throw CliErrors[_0x45a9c8(0x160)](_0x45a9c8(0x164)+_0x1e3bc7+_0x45a9c8(0x173)+_0x3d5271);}_0x4d2beb[_0x45a9c8(0x15c)]=_0x24fd15;}}
1
+ (function(_0x12548f,_0x3b4cc3){const _0x2193bb=a250_0x42ae,_0x45b520=_0x12548f();while(!![]){try{const _0x2cd9eb=-parseInt(_0x2193bb(0xf7))/0x1*(-parseInt(_0x2193bb(0xf1))/0x2)+-parseInt(_0x2193bb(0xfc))/0x3*(parseInt(_0x2193bb(0x102))/0x4)+parseInt(_0x2193bb(0xec))/0x5+-parseInt(_0x2193bb(0xf2))/0x6*(parseInt(_0x2193bb(0x103))/0x7)+-parseInt(_0x2193bb(0xf9))/0x8+-parseInt(_0x2193bb(0xfe))/0x9*(-parseInt(_0x2193bb(0x104))/0xa)+parseInt(_0x2193bb(0xf3))/0xb;if(_0x2cd9eb===_0x3b4cc3)break;else _0x45b520['push'](_0x45b520['shift']());}catch(_0x556728){_0x45b520['push'](_0x45b520['shift']());}}}(a250_0x450f,0xb3791));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x149663,_0x50066d,_0x3b5ac0,_0x18b874){const _0x4927ed=a250_0x42ae,_0x4aaf3d=_0x149663['flags'][_0x4927ed(0xf4)](_0x27e747=>_0x27e747[_0x4927ed(0x101)]===_0x4927ed(0xfa)&&_0x27e747[_0x4927ed(0xff)]===_0x4927ed(0xf0)),_0x4a8527=_0x149663[_0x4927ed(0xed)][_0x4927ed(0xf4)](_0x1b46a6=>_0x1b46a6[_0x4927ed(0x101)]===_0x4927ed(0xef)&&_0x1b46a6[_0x4927ed(0xff)]===_0x4927ed(0xf0));if(!_0x4aaf3d||!_0x4a8527)return;const _0x3ef412=_0x50066d[_0x4927ed(0xfa)]?String(_0x50066d['code']):'',_0xab3276=_0x50066d['alias']?String(_0x50066d[_0x4927ed(0xef)]):'';if(!_0x3ef412&&!_0xab3276)throw CliErrors['validation']('`'+_0x18b874+_0x4927ed(0xf6));if(_0xab3276&&!_0x3ef412){const _0x29958d=resolveAlias(_0x3b5ac0,_0xab3276);if(!_0x29958d){const _0x173d2d=listAliases(_0x3b5ac0)['map'](_0x35e1da=>_0x35e1da['alias']),_0x2f7c78=_0x173d2d[_0x4927ed(0xfb)]?_0x4927ed(0xee)+_0x173d2d[_0x4927ed(0x100)](',\x20'):_0x4927ed(0xfd)+_0x3b5ac0+_0x4927ed(0xf5)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x4927ed(0xf8)]('Unknown\x20alias\x20\x22'+_0xab3276+'\x22.\x20'+_0x2f7c78);}_0x50066d[_0x4927ed(0xfa)]=_0x29958d;}}function a250_0x42ae(_0x63562e,_0x2cbffe){_0x63562e=_0x63562e-0xec;const _0x450f0d=a250_0x450f();let _0x42ae9e=_0x450f0d[_0x63562e];return _0x42ae9e;}function a250_0x450f(){const _0x46f3cf=['2LNJLdS','validation','11705848wDouSv','code','length','4953UGstqH','No\x20api.ts\x20found\x20in\x20','10486845atdwkk','type','join','name','3088kmVqOK','14XqdDFe','10fcgoPc','425780ygaHUl','flags','Available\x20aliases:\x20','alias','string','860204jZLAHb','3964566JYRvIr','29522691omUAXc','some','.\x20Run\x20`','`\x20requires\x20either\x20--code\x20or\x20--alias.'];a250_0x450f=function(){return _0x46f3cf;};return a250_0x450f();}
@@ -1 +1 @@
1
- (function(_0x2b54f6,_0x10958e){const _0x46f01a=a251_0x23ac,_0x70488e=_0x2b54f6();while(!![]){try{const _0x4cd9ec=-parseInt(_0x46f01a(0x15b))/0x1*(parseInt(_0x46f01a(0x18a))/0x2)+-parseInt(_0x46f01a(0x16e))/0x3+parseInt(_0x46f01a(0x174))/0x4+-parseInt(_0x46f01a(0x162))/0x5+parseInt(_0x46f01a(0x17b))/0x6+-parseInt(_0x46f01a(0x180))/0x7*(parseInt(_0x46f01a(0x184))/0x8)+parseInt(_0x46f01a(0x198))/0x9;if(_0x4cd9ec===_0x10958e)break;else _0x70488e['push'](_0x70488e['shift']());}catch(_0x459ad8){_0x70488e['push'](_0x70488e['shift']());}}}(a251_0x25be,0x93722));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';function a251_0x25be(){const _0x2a3b45=['defaultVerbose','nonInteractive','3223731JFMvvH','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','join','../core/api-client.js','8MmtNuG','\x0a\x20\x20','object','includes','appCode','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','230018HxHcDt','apiDir','keys','apps','resolveAppCode','none','explicitAppName','formatOutput','message','pageSize','currentApp','required','rejectedFlags','schema','2271942VXKDUT','mergedCli','string','toUpperCase','catch','hasFormat','length','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','name','value','rawFlags','validation','meowKey','verbose','1GKwpWu','defaultPageSize','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','update','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','hint','replace','606085MPOFrO','Available:\x20','_notice','App\x20\x22','format','map','service','trim','resolve','cancelled','command','resolveApiDomain','753675GPZHtK','all','pretty','risk','High-risk\x20operation\x20`','selectedAppName','1137944tfdUVJ','production','some','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','filter','authRequired','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','6089988FGIwdK','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','appcode'];a251_0x25be=function(){return _0x2a3b45;};return a251_0x25be();}import{DEFAULT_API_DIR}from'../constant/paths.js';function a251_0x23ac(_0x388078,_0x2684c5){_0x388078=_0x388078-0x156;const _0x25bef3=a251_0x25be();let _0x23ac21=_0x25bef3[_0x388078];return _0x23ac21;}import{isNonInteractive as a251_0x575a06}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x5e385e){const _0x36ce70=a251_0x23ac;return typeof _0x5e385e===_0x36ce70(0x19a)&&_0x5e385e[_0x36ce70(0x169)]()?_0x5e385e[_0x36ce70(0x169)]():undefined;}function resolveEnvAppCode(){const _0x87a449=stringFlag(process.env.RABETBASE_APPCODE);if(_0x87a449)return{'name':'RABETBASE_APPCODE','value':_0x87a449};const _0x5dd8a8=stringFlag(process.env.LOVRABET_APPCODE);if(_0x5dd8a8)return{'name':'LOVRABET_APPCODE','value':_0x5dd8a8};return undefined;}function hasExplicitAppCode(_0x509ce3,_0x3eea4f){const _0x169fb4=a251_0x23ac;return!!(stringFlag(_0x509ce3[_0x169fb4(0x17d)])||stringFlag(_0x3eea4f[_0x169fb4(0x17d)]));}function assertEnvAppCodeNotIgnored(_0x5a00a7,_0x3aba99,_0x2a3dfc){const _0x2b37a5=a251_0x23ac;if(!_0x3aba99||_0x2a3dfc||_0x5a00a7===_0x3aba99[_0x2b37a5(0x156)])return;const _0x23e79b=_0x5a00a7?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x5a00a7+'\x22.':'No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.';throw CliErrors[_0x2b37a5(0x158)](_0x3aba99[_0x2b37a5(0x1a0)]+'='+_0x3aba99['value']+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x23e79b+'\x20'+(_0x2b37a5(0x17a)+_0x3aba99[_0x2b37a5(0x1a0)]+'\x22.'));}export function createPipelineEnv(_0x36522d,_0x5dbfc5,_0x49afb8=[]){const _0x161744=a251_0x23ac;return{'rawFlags':_0x5dbfc5,'args':_0x49afb8,'resolveAppCode':()=>_0x36522d['appCode'],'resolveCookie':()=>_0x36522d['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a251_0x575a06(_0x5dbfc5),'defaultFormat':_0x36522d[_0x161744(0x166)],'defaultPageSize':_0x36522d[_0x161744(0x193)],'defaultVerbose':_0x36522d[_0x161744(0x15a)],'apiDir':_0x36522d[_0x161744(0x18b)],'riskLevel':_0x36522d['riskLevel'],'selectedAppName':_0x36522d[_0x161744(0x190)],'mergedCli':{'defaultApp':_0x36522d['defaultApp'],'currentApp':_0x36522d['currentApp'],'appCode':_0x36522d[_0x161744(0x188)],'apps':_0x36522d['apps']}};}export function createRabetbaseRunnerAdapter(_0x26e6ab={}){const _0x2f5d81=a251_0x23ac;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x2f5d81(0x178)](_0x2b0194=>PIPELINE_FLAG_NAMES['has'](_0x2b0194[_0x2f5d81(0x1a0)]))[_0x2f5d81(0x167)](({name:_0x120788,type:_0x4228ed,description:_0x2ffcb2})=>({'name':_0x120788,'type':_0x4228ed,'description':_0x2ffcb2})),'formatOutput':_0x26e6ab[_0x2f5d81(0x191)]??formatOutput,'getCommandLabel'(_0x2dc7ff){const _0x48fea4=_0x2f5d81;return CLI_BIN_NAME+'\x20'+_0x2dc7ff['service']+'\x20'+_0x2dc7ff[_0x48fea4(0x16c)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x1c7f40,{def:_0x96031f}){const _0x971e8e=_0x2f5d81,_0x1321f6=_0x1c7f40[_0x971e8e(0x187)]('Edit\x20the\x20config\x20file\x20manually')?'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.':_0x971e8e(0x177)+_0x96031f[_0x971e8e(0x171)]+_0x971e8e(0x15f)+_0x971e8e(0x189);return CliErrors[_0x971e8e(0x158)](_0x1c7f40+_0x971e8e(0x185)+_0x1321f6);}},async 'prepare'(_0x56c26f,_0x39e896,_0x4b53f5,_0x40abe8){const _0x115dee=_0x2f5d81,_0x171b4a=_0x39e896[_0x115dee(0x18b)]||DEFAULT_API_DIR;resolveAliasToCode(_0x56c26f,_0x4b53f5,_0x171b4a,_0x40abe8);const _0x39133e=resolveCommandAuthMode(_0x56c26f);let _0xdfe9e3='';if(_0x39133e!==_0x115dee(0x18f)){_0xdfe9e3=_0x39e896['resolveCookie']()||'';if(!_0xdfe9e3){if(_0x39133e===_0x115dee(0x195))throw CliErrors[_0x115dee(0x179)]();}else{const {setActiveCookie:_0x4f11cc}=await import(_0x115dee(0x183));_0x4f11cc(_0xdfe9e3);}}const _0x23c9fe=_0x39e896[_0x115dee(0x18e)]()??'';if(_0x56c26f['requiresAppCode']!==![]){const _0x5e7733=hasExplicitAppCode(_0x4b53f5,_0x39e896['rawFlags']),_0x47abe1=_0x39e896[_0x115dee(0x199)]?.[_0x115dee(0x18d)]??{},_0x526bb4=_0x39e896['selectedAppName']||_0x39e896[_0x115dee(0x199)]?.[_0x115dee(0x194)]||_0x39e896[_0x115dee(0x199)]?.['defaultApp'];if(!_0x5e7733&&_0x526bb4&&!_0x47abe1[_0x526bb4]){const _0x4523a9=Object[_0x115dee(0x18c)](_0x47abe1);throw CliErrors[_0x115dee(0x158)](_0x115dee(0x165)+_0x526bb4+'\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.',_0x4523a9[_0x115dee(0x19e)]>0x0?_0x115dee(0x163)+_0x4523a9[_0x115dee(0x182)](',\x20')+'.\x20Use\x20--app/--appcode,\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.':_0x115dee(0x181)+CLI_BIN_NAME+_0x115dee(0x19f));}assertEnvAppCodeNotIgnored(_0x23c9fe,resolveEnvAppCode(),_0x5e7733);if(!_0x23c9fe){const _0x46d4ba=Object[_0x115dee(0x18c)](_0x47abe1);if(!_0x526bb4&&_0x46d4ba[_0x115dee(0x19e)]>0x1)throw CliErrors['configMissing'](_0x115dee(0x17c)+CLI_BIN_NAME+_0x115dee(0x15d)+_0x46d4ba[_0x115dee(0x182)](',\x20')+'.');throw CliErrors['configMissing']('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}}return{'defaults':{'booleans':{'verbose':_0x39e896[_0x115dee(0x17e)]},'numbers':{'pagesize':_0x39e896[_0x115dee(0x15c)]}},'extras':{'appCode':_0x23c9fe,'cookie':_0xdfe9e3,'apiDomain':_0x39e896[_0x115dee(0x16d)](),'apiDir':_0x171b4a,'selectedAppName':_0x39e896[_0x115dee(0x173)],'mergedCli':_0x39e896[_0x115dee(0x199)]}};},'confirmHighRisk':_0x26e6ab['confirmHighRisk']??(async({env:_0x4185b7,commandLabel:_0x20305d})=>{const _0x442604=_0x2f5d81;if(_0x4185b7['isNonInteractive'])throw CliErrors[_0x442604(0x158)](_0x442604(0x172)+_0x20305d+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x20305d,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x5aaee8=>CliErrors[_0x442604(0x16b)](_0x5aaee8)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x3836e4=a251_0x23ac,{clearActiveCookie:_0x1f8e19}=await import(_0x3836e4(0x183));_0x1f8e19();}export async function finalizeRabetbaseRuntimeState(){const _0x1c2ad9=a251_0x23ac;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x355396},{initEnv:_0x3f554d}]=await Promise[_0x1c2ad9(0x16f)]([import('../constant/domain.js'),import('../constant/env.js')]);_0x355396(),_0x3f554d(_0x1c2ad9(0x175));}}export async function runCommand(_0xae9c66,_0x4acd9c,_0x1e8622=terminalRunnerAdapter){const _0x3e92c1=a251_0x23ac;assertRejectedFlags(_0xae9c66,_0x4acd9c[_0x3e92c1(0x157)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0xae9c66)?withUpdateNotice(_0xae9c66):_0xae9c66,_0x4acd9c,_0x1e8622);}function assertRejectedFlags(_0x2b8b1c,_0x3cb59c){const _0x2f8b12=a251_0x23ac;for(const _0x2fe63d of _0x2b8b1c[_0x2f8b12(0x196)]??[]){const _0x5444e4=GLOBAL_FLAGS['find'](_0x37e9ea=>_0x37e9ea[_0x2f8b12(0x1a0)]===_0x2fe63d[_0x2f8b12(0x1a0)]),_0x4212b2=new Set([_0x2fe63d['name'],toCamelCase(_0x2fe63d[_0x2f8b12(0x1a0)]),_0x5444e4?.[_0x2f8b12(0x159)]]),_0x3a372b=[..._0x4212b2][_0x2f8b12(0x176)](_0x388f62=>{if(!_0x388f62)return![];const _0xad1f7c=_0x3cb59c[_0x388f62];return _0xad1f7c!==undefined&&_0xad1f7c!==null&&_0xad1f7c!==![];});if(_0x3a372b)throw CliErrors[_0x2f8b12(0x158)](_0x2fe63d[_0x2f8b12(0x192)],_0x2fe63d[_0x2f8b12(0x160)]);}}function toCamelCase(_0x5ccbcd){const _0x3ef2c1=a251_0x23ac;return _0x5ccbcd[_0x3ef2c1(0x161)](/-([a-z])/g,(_0x465d44,_0x3f5fbe)=>_0x3f5fbe[_0x3ef2c1(0x19b)]());}function shouldAttachUpdateNotice(_0x5ffbe4){const _0x15e25b=a251_0x23ac;if(_0x5ffbe4[_0x15e25b(0x19d)]===![])return![];return![_0x15e25b(0x15e),_0x15e25b(0x197),'doctor'][_0x15e25b(0x187)](_0x5ffbe4[_0x15e25b(0x168)]);}function withUpdateNotice(_0x211095){return{..._0x211095,async 'execute'(_0xa956a){const _0x2bbcf8=a251_0x23ac,_0xa8b3bc=shouldResolveUpdateNotice(_0xa956a)?resolveLatestUpdateNotice()[_0x2bbcf8(0x19c)](()=>null):Promise[_0x2bbcf8(0x16a)](null),_0x3c6e6b=await _0x211095['execute'](_0xa956a);return attachUpdateNotice(_0x3c6e6b,await _0xa8b3bc);}};}function shouldResolveUpdateNotice(_0x5d5d23){const _0xb6b860=a251_0x23ac;return _0x5d5d23[_0xb6b860(0x166)]===_0xb6b860(0x170)&&!_0x5d5d23[_0xb6b860(0x17f)];}function attachUpdateNotice(_0x17a333,_0x35e7f5){const _0x2c06a8=a251_0x23ac;if(!_0x35e7f5||!_0x17a333||typeof _0x17a333!==_0x2c06a8(0x186))return _0x17a333;const _0x412236=_0x17a333,_0x9ac227=typeof _0x412236[_0x2c06a8(0x164)]===_0x2c06a8(0x186)&&_0x412236[_0x2c06a8(0x164)]!==null?_0x412236['_notice']:{};return{..._0x412236,'_notice':{..._0x9ac227,'update':_0x35e7f5}};}
1
+ (function(_0x134d81,_0xf4f8fb){const _0x3c8341=a251_0x164b,_0x5a6ccf=_0x134d81();while(!![]){try{const _0x2b7f3c=parseInt(_0x3c8341(0x1d8))/0x1*(parseInt(_0x3c8341(0x1fe))/0x2)+parseInt(_0x3c8341(0x1ef))/0x3*(-parseInt(_0x3c8341(0x1db))/0x4)+parseInt(_0x3c8341(0x1e5))/0x5+-parseInt(_0x3c8341(0x1e0))/0x6+-parseInt(_0x3c8341(0x1f7))/0x7*(-parseInt(_0x3c8341(0x1ff))/0x8)+parseInt(_0x3c8341(0x1ea))/0x9*(-parseInt(_0x3c8341(0x21b))/0xa)+parseInt(_0x3c8341(0x219))/0xb*(parseInt(_0x3c8341(0x1d5))/0xc);if(_0x2b7f3c===_0xf4f8fb)break;else _0x5a6ccf['push'](_0x5a6ccf['shift']());}catch(_0x4de5d5){_0x5a6ccf['push'](_0x5a6ccf['shift']());}}}(a251_0x3de7,0x867a5));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 a251_0x10ab79}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x2ca706){const _0xdefb5f=a251_0x164b;return typeof _0x2ca706==='string'&&_0x2ca706['trim']()?_0x2ca706[_0xdefb5f(0x1da)]():undefined;}function resolveEnvAppCode(){const _0x288e8e=a251_0x164b,_0xbe1a38=stringFlag(process.env.RABETBASE_APPCODE);if(_0xbe1a38)return{'name':_0x288e8e(0x213),'value':_0xbe1a38};const _0x251b65=stringFlag(process.env.LOVRABET_APPCODE);if(_0x251b65)return{'name':_0x288e8e(0x1ec),'value':_0x251b65};return undefined;}function hasExplicitAppCode(_0x3d402f,_0x28b188){const _0x440ec0=a251_0x164b;return!!(stringFlag(_0x3d402f[_0x440ec0(0x20c)])||stringFlag(_0x28b188['appcode']));}function assertEnvAppCodeNotIgnored(_0x3cf2a9,_0x3176e7,_0x32f03b){const _0x5b6a67=a251_0x164b;if(!_0x3176e7||_0x32f03b||_0x3cf2a9===_0x3176e7['value'])return;const _0x696b31=_0x3cf2a9?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x3cf2a9+'\x22.':_0x5b6a67(0x1fc);throw CliErrors[_0x5b6a67(0x200)](_0x3176e7[_0x5b6a67(0x1d4)]+'='+_0x3176e7['value']+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x696b31+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x3176e7[_0x5b6a67(0x1d4)]+'\x22.'));}export function createPipelineEnv(_0x446bc9,_0x51984f,_0x33e58c=[]){const _0x3a4d29=a251_0x164b;return{'rawFlags':_0x51984f,'args':_0x33e58c,'resolveAppCode':()=>_0x446bc9[_0x3a4d29(0x20e)],'resolveCookie':()=>_0x446bc9['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a251_0x10ab79(_0x51984f),'defaultFormat':_0x446bc9[_0x3a4d29(0x20b)],'defaultPageSize':_0x446bc9[_0x3a4d29(0x1e6)],'defaultVerbose':_0x446bc9[_0x3a4d29(0x20d)],'apiDir':_0x446bc9[_0x3a4d29(0x1df)],'riskLevel':_0x446bc9[_0x3a4d29(0x207)],'selectedAppName':_0x446bc9[_0x3a4d29(0x1fa)],'mergedCli':{'defaultApp':_0x446bc9[_0x3a4d29(0x1e9)],'currentApp':_0x446bc9['currentApp'],'appCode':_0x446bc9[_0x3a4d29(0x20e)],'apps':_0x446bc9[_0x3a4d29(0x1ce)]}};}export function createRabetbaseRunnerAdapter(_0x7ca00f={}){const _0x30a520=a251_0x164b;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x30a520(0x1fb)](_0x1f8cd9=>PIPELINE_FLAG_NAMES[_0x30a520(0x1cd)](_0x1f8cd9['name']))[_0x30a520(0x221)](({name:_0x38da93,type:_0x4966ad,description:_0x415034})=>({'name':_0x38da93,'type':_0x4966ad,'description':_0x415034})),'formatOutput':_0x7ca00f[_0x30a520(0x21f)]??formatOutput,'getCommandLabel'(_0x3391a4){const _0x27ad1d=_0x30a520;return CLI_BIN_NAME+'\x20'+_0x3391a4[_0x27ad1d(0x21a)]+'\x20'+_0x3391a4['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x3082e5,{def:_0x3d2d21}){const _0x57d69f=_0x30a520,_0x56610f=_0x3082e5[_0x57d69f(0x217)]('Edit\x20the\x20config\x20file\x20manually')?'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.':_0x57d69f(0x1d0)+_0x3d2d21[_0x57d69f(0x1f8)]+_0x57d69f(0x211)+_0x57d69f(0x1eb);return CliErrors[_0x57d69f(0x200)](_0x3082e5+'\x0a\x20\x20'+_0x56610f);}},async 'prepare'(_0x2220dc,_0x4adef0,_0x138714,_0x287bbc){const _0x3c3722=_0x30a520,_0xb24c10=_0x4adef0[_0x3c3722(0x1df)]||DEFAULT_API_DIR;resolveAliasToCode(_0x2220dc,_0x138714,_0xb24c10,_0x287bbc);const _0x1e2245=resolveCommandAuthMode(_0x2220dc);let _0x18985b='';if(_0x1e2245!==_0x3c3722(0x1d9)){_0x18985b=_0x4adef0[_0x3c3722(0x208)]()||'';if(!_0x18985b){if(_0x1e2245==='required')throw CliErrors[_0x3c3722(0x206)]();}else{const {setActiveCookie:_0x1576ef}=await import('../core/api-client.js');_0x1576ef(_0x18985b);}}const _0x2d2648=_0x4adef0[_0x3c3722(0x212)]()??'';if(_0x2220dc[_0x3c3722(0x203)]!==![]){const _0x312451=hasExplicitAppCode(_0x138714,_0x4adef0[_0x3c3722(0x1f4)]),_0x503d1a=_0x4adef0[_0x3c3722(0x204)]?.[_0x3c3722(0x1ce)]??{},_0xa416d2=_0x4adef0['selectedAppName']||_0x4adef0[_0x3c3722(0x204)]?.[_0x3c3722(0x1f9)]||_0x4adef0[_0x3c3722(0x204)]?.[_0x3c3722(0x1e9)];if(!_0x312451&&_0xa416d2&&!_0x503d1a[_0xa416d2]){const _0x5bd355=Object['keys'](_0x503d1a);throw CliErrors[_0x3c3722(0x200)](_0x3c3722(0x1f0)+_0xa416d2+_0x3c3722(0x1f3),_0x5bd355['length']>0x0?_0x3c3722(0x1ee)+_0x5bd355[_0x3c3722(0x1e3)](',\x20')+'.\x20Use\x20--app/--appcode,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x3c3722(0x215):_0x3c3722(0x210)+CLI_BIN_NAME+_0x3c3722(0x215));}assertEnvAppCodeNotIgnored(_0x2d2648,resolveEnvAppCode(),_0x312451);if(!_0x2d2648){const _0x23947e=Object[_0x3c3722(0x1e7)](_0x503d1a);if(!_0xa416d2&&_0x23947e[_0x3c3722(0x216)]>0x1)throw CliErrors['configMissing'](_0x3c3722(0x1fd)+CLI_BIN_NAME+_0x3c3722(0x20a)+_0x23947e[_0x3c3722(0x1e3)](',\x20')+'.');throw CliErrors[_0x3c3722(0x1cc)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x3c3722(0x21d));}}return{'defaults':{'booleans':{'verbose':_0x4adef0[_0x3c3722(0x1d3)]},'numbers':{'pagesize':_0x4adef0[_0x3c3722(0x1cf)]}},'extras':{'appCode':_0x2d2648,'cookie':_0x18985b,'apiDomain':_0x4adef0[_0x3c3722(0x1d7)](),'apiDir':_0xb24c10,'selectedAppName':_0x4adef0[_0x3c3722(0x205)],'mergedCli':_0x4adef0[_0x3c3722(0x204)]}};},'confirmHighRisk':_0x7ca00f[_0x30a520(0x202)]??(async({env:_0x2c8bda,commandLabel:_0x1defd6})=>{const _0x22fcf6=_0x30a520;if(_0x2c8bda[_0x22fcf6(0x1e1)])throw CliErrors['validation'](_0x22fcf6(0x1dd)+_0x1defd6+_0x22fcf6(0x1d2));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x1defd6,_0x22fcf6(0x1e2)],'createCancelledError':_0x54d327=>CliErrors['cancelled'](_0x54d327)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();function a251_0x3de7(){const _0x3d21b9=['\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','format','appcode','verbose','appCode','message','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','resolveAppCode','RABETBASE_APPCODE','_notice','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','length','includes','all','44gspGvV','service','246190acWGjb','production','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','object','formatOutput','rejectedFlags','map','../constant/domain.js','configMissing','has','apps','defaultPageSize','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','execute','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','defaultVerbose','name','2916192DTPJHG','nonInteractive','resolveApiDomain','70TEHMMC','none','trim','92kKjqtn','resolve','High-risk\x20operation\x20`','doctor','apiDir','6511956rvojqk','isNonInteractive','\x20\x20\x20Continue?\x20[y/N]\x20','join','update','3538835ehFUSj','pageSize','keys','replace','defaultApp','72DmQIdm','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','LOVRABET_APPCODE','schema','Available:\x20','124569ogLjCg','App\x20\x22','hasFormat','hint','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','rawFlags','pretty','../constant/env.js','7bIfGrM','risk','currentApp','explicitAppName','filter','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','30366TnLNex','363896XvThXe','validation','catch','confirmHighRisk','requiresAppCode','mergedCli','selectedAppName','authRequired','riskLevel','resolveCookie','find'];a251_0x3de7=function(){return _0x3d21b9;};return a251_0x3de7();}async function clearRabetbaseCommandState(){const {clearActiveCookie:_0x5f581b}=await import('../core/api-client.js');_0x5f581b();}export async function finalizeRabetbaseRuntimeState(){const _0x127bdc=a251_0x164b;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x5df0e6},{initEnv:_0x184e34}]=await Promise[_0x127bdc(0x218)]([import(_0x127bdc(0x1cb)),import(_0x127bdc(0x1f6))]);_0x5df0e6(),_0x184e34(_0x127bdc(0x21c));}}export async function runCommand(_0x11c6fe,_0x471340,_0x3f5eec=terminalRunnerAdapter){const _0xcf3f48=a251_0x164b;assertRejectedFlags(_0x11c6fe,_0x471340[_0xcf3f48(0x1f4)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x11c6fe)?withUpdateNotice(_0x11c6fe):_0x11c6fe,_0x471340,_0x3f5eec);}function assertRejectedFlags(_0x39d2b2,_0x78abbb){const _0x21bfc9=a251_0x164b;for(const _0x2f7873 of _0x39d2b2[_0x21bfc9(0x220)]??[]){const _0x4cea8e=GLOBAL_FLAGS[_0x21bfc9(0x209)](_0x389089=>_0x389089[_0x21bfc9(0x1d4)]===_0x2f7873['name']),_0x4f38bd=new Set([_0x2f7873[_0x21bfc9(0x1d4)],toCamelCase(_0x2f7873[_0x21bfc9(0x1d4)]),_0x4cea8e?.['meowKey']]),_0x30ad85=[..._0x4f38bd]['some'](_0x74c186=>{if(!_0x74c186)return![];const _0x287145=_0x78abbb[_0x74c186];return _0x287145!==undefined&&_0x287145!==null&&_0x287145!==![];});if(_0x30ad85)throw CliErrors[_0x21bfc9(0x200)](_0x2f7873[_0x21bfc9(0x20f)],_0x2f7873[_0x21bfc9(0x1f2)]);}}function toCamelCase(_0x128ef8){const _0x1e6c12=a251_0x164b;return _0x128ef8[_0x1e6c12(0x1e8)](/-([a-z])/g,(_0x1c0738,_0x45c976)=>_0x45c976['toUpperCase']());}function shouldAttachUpdateNotice(_0x1e5252){const _0x14132f=a251_0x164b;if(_0x1e5252[_0x14132f(0x1f1)]===![])return![];return![_0x14132f(0x1e4),_0x14132f(0x1ed),_0x14132f(0x1de)][_0x14132f(0x217)](_0x1e5252['service']);}function withUpdateNotice(_0x7376a5){return{..._0x7376a5,async 'execute'(_0x5c5573){const _0x3f906f=a251_0x164b,_0x5be25d=shouldResolveUpdateNotice(_0x5c5573)?resolveLatestUpdateNotice()[_0x3f906f(0x201)](()=>null):Promise[_0x3f906f(0x1dc)](null),_0x52bec0=await _0x7376a5[_0x3f906f(0x1d1)](_0x5c5573);return attachUpdateNotice(_0x52bec0,await _0x5be25d);}};}function a251_0x164b(_0x3ea169,_0x100d97){_0x3ea169=_0x3ea169-0x1cb;const _0x3de7a4=a251_0x3de7();let _0x164b97=_0x3de7a4[_0x3ea169];return _0x164b97;}function shouldResolveUpdateNotice(_0x21cf5d){const _0x11752a=a251_0x164b;return _0x21cf5d[_0x11752a(0x20b)]===_0x11752a(0x1f5)&&!_0x21cf5d[_0x11752a(0x1d6)];}function attachUpdateNotice(_0x3c9aa8,_0x255764){const _0x3595a7=a251_0x164b;if(!_0x255764||!_0x3c9aa8||typeof _0x3c9aa8!==_0x3595a7(0x21e))return _0x3c9aa8;const _0x4b6b2c=_0x3c9aa8,_0xbf88d5=typeof _0x4b6b2c[_0x3595a7(0x214)]===_0x3595a7(0x21e)&&_0x4b6b2c[_0x3595a7(0x214)]!==null?_0x4b6b2c[_0x3595a7(0x214)]:{};return{..._0x4b6b2c,'_notice':{..._0xbf88d5,'update':_0x255764}};}
@@ -1 +1 @@
1
- (function(_0x40c8c7,_0x2da808){const _0x44a16a=a252_0x240d,_0x55f64f=_0x40c8c7();while(!![]){try{const _0x39a114=parseInt(_0x44a16a(0x94))/0x1*(-parseInt(_0x44a16a(0x9a))/0x2)+parseInt(_0x44a16a(0x9c))/0x3+parseInt(_0x44a16a(0x9b))/0x4+-parseInt(_0x44a16a(0x98))/0x5*(parseInt(_0x44a16a(0x97))/0x6)+parseInt(_0x44a16a(0x92))/0x7+-parseInt(_0x44a16a(0x99))/0x8*(-parseInt(_0x44a16a(0x93))/0x9)+-parseInt(_0x44a16a(0x95))/0xa;if(_0x39a114===_0x2da808)break;else _0x55f64f['push'](_0x55f64f['shift']());}catch(_0x45e44e){_0x55f64f['push'](_0x55f64f['shift']());}}}(a252_0xc99d,0x1a01f));import{buildSchemaPayload as a252_0x554847}from'@lovrabet/cli-framework';function a252_0x240d(_0x5232f9,_0x2a3045){_0x5232f9=_0x5232f9-0x92;const _0xc99d40=a252_0xc99d();let _0x240d5f=_0xc99d40[_0x5232f9];return _0x240d5f;}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 _0x5c6b51=a252_0x240d,{serviceRegistry:_0x3250d5,findDefinition:_0x2fe58f}=await import(_0x5c6b51(0x96));return a252_0x554847({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x3250d5,'buildAllFlags':buildAllFlags,'findDefinition':_0x2fe58f});}function a252_0xc99d(){const _0x3d7c47=['506766gouPqb','1360821MhaadK','24318UuvVoa','7runXbl','1761150xfoRUU','../commands/registry.js','12BZhUeA','372055LShNUF','40FGSScL','35578lgKUha','716608pknLHL'];a252_0xc99d=function(){return _0x3d7c47;};return a252_0xc99d();}
1
+ (function(_0x25ce2d,_0x42e63f){const _0x47e784=a252_0x2cc8,_0x23ddae=_0x25ce2d();while(!![]){try{const _0x4bfb69=parseInt(_0x47e784(0x1d2))/0x1+-parseInt(_0x47e784(0x1d5))/0x2+parseInt(_0x47e784(0x1da))/0x3+-parseInt(_0x47e784(0x1d1))/0x4*(parseInt(_0x47e784(0x1d8))/0x5)+parseInt(_0x47e784(0x1d6))/0x6*(-parseInt(_0x47e784(0x1d4))/0x7)+-parseInt(_0x47e784(0x1d3))/0x8+-parseInt(_0x47e784(0x1d7))/0x9*(-parseInt(_0x47e784(0x1d9))/0xa);if(_0x4bfb69===_0x42e63f)break;else _0x23ddae['push'](_0x23ddae['shift']());}catch(_0x18c022){_0x23ddae['push'](_0x23ddae['shift']());}}}(a252_0x204b,0xea875));import{buildSchemaPayload as a252_0x5e8856}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a252_0x2cc8(_0x4529f9,_0x2caab3){_0x4529f9=_0x4529f9-0x1d1;const _0x204bb7=a252_0x204b();let _0x2cc8e0=_0x204bb7[_0x4529f9];return _0x2cc8e0;}function a252_0x204b(){const _0x21d2c2=['48280GTIJAr','4801002pFLgRD','../commands/registry.js','5321032auKnQA','1822675KGDONb','11036864HHBChU','56oXHkoc','3584052BvKPDg','324318wnYsaf','4608JpFHYD','5dxFGyE'];a252_0x204b=function(){return _0x21d2c2;};return a252_0x204b();}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x3f984d=a252_0x2cc8,{serviceRegistry:_0xaaefae,findDefinition:_0xadfafa}=await import(_0x3f984d(0x1db));return a252_0x5e8856({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0xaaefae,'buildAllFlags':buildAllFlags,'findDefinition':_0xadfafa});}
@@ -1 +1 @@
1
- function a253_0x188c(){var _0x56e461=['410817VANyqu','951392KoZuyd','4759551aAUePB','33755xnuavU','724TZmuHd','2634TNmUmJ','500289xoRyJB','670OnqXGl','12AMtisM','13545EplTaj','125483ywGDOt'];a253_0x188c=function(){return _0x56e461;};return a253_0x188c();}(function(_0x361059,_0x4daba2){var _0x5e88de=a253_0x3435,_0x29f705=_0x361059();while(!![]){try{var _0x466303=parseInt(_0x5e88de(0x1df))/0x1*(-parseInt(_0x5e88de(0x1dd))/0x2)+-parseInt(_0x5e88de(0x1db))/0x3+-parseInt(_0x5e88de(0x1d9))/0x4*(parseInt(_0x5e88de(0x1d8))/0x5)+-parseInt(_0x5e88de(0x1da))/0x6*(-parseInt(_0x5e88de(0x1de))/0x7)+parseInt(_0x5e88de(0x1e1))/0x8+-parseInt(_0x5e88de(0x1e2))/0x9+parseInt(_0x5e88de(0x1dc))/0xa*(parseInt(_0x5e88de(0x1e0))/0xb);if(_0x466303===_0x4daba2)break;else _0x29f705['push'](_0x29f705['shift']());}catch(_0x3aa8b1){_0x29f705['push'](_0x29f705['shift']());}}}(a253_0x188c,0xc35cf));function a253_0x3435(_0x460512,_0x5e7b8e){_0x460512=_0x460512-0x1d8;var _0x188c38=a253_0x188c();var _0x343532=_0x188c38[_0x460512];return _0x343532;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
1
+ function a253_0x2ed2(_0x1d7cc7,_0x1656de){_0x1d7cc7=_0x1d7cc7-0x72;var _0x2fc9cb=a253_0x2fc9();var _0x2ed234=_0x2fc9cb[_0x1d7cc7];return _0x2ed234;}(function(_0x4beac7,_0x107291){var _0x3a0b15=a253_0x2ed2,_0x465d28=_0x4beac7();while(!![]){try{var _0x50c5a4=-parseInt(_0x3a0b15(0x7c))/0x1*(parseInt(_0x3a0b15(0x73))/0x2)+parseInt(_0x3a0b15(0x74))/0x3*(parseInt(_0x3a0b15(0x77))/0x4)+-parseInt(_0x3a0b15(0x78))/0x5*(-parseInt(_0x3a0b15(0x76))/0x6)+parseInt(_0x3a0b15(0x79))/0x7*(parseInt(_0x3a0b15(0x72))/0x8)+parseInt(_0x3a0b15(0x7a))/0x9*(parseInt(_0x3a0b15(0x7d))/0xa)+parseInt(_0x3a0b15(0x7b))/0xb+-parseInt(_0x3a0b15(0x75))/0xc;if(_0x50c5a4===_0x107291)break;else _0x465d28['push'](_0x465d28['shift']());}catch(_0x8b3c03){_0x465d28['push'](_0x465d28['shift']());}}}(a253_0x2fc9,0xe2881));function a253_0x2fc9(){var _0x42320a=['3909521BaHHxZ','692XcApRm','33460IXcEun','2216htTKuN','3910JACBXa','3ubJXmT','18611928SaFgiv','4711914mJzrND','2222992EKeQdg','5cUkDii','24703IuOFjr','3114UAAuJb'];a253_0x2fc9=function(){return _0x42320a;};return a253_0x2fc9();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "2.5.0-beta.1";
2
- export declare const GIT_TAG = "v2.5.0-beta.1";
3
- export declare const GIT_COMMIT = "298f150";
4
- export declare const BUILD_TIME = "2026-08-21T16:11:55.840Z";
1
+ export declare const VERSION = "2.5.0-beta.2";
2
+ export declare const GIT_TAG = "v2.5.0-beta.2";
3
+ export declare const GIT_COMMIT = "4cb6c32";
4
+ export declare const BUILD_TIME = "2026-08-22T03:18:32.454Z";
@@ -1 +1 @@
1
- const a254_0x13e0ed=a254_0x2604;(function(_0x26888d,_0x4ef970){const _0x505bb3=a254_0x2604,_0x3dd6f3=_0x26888d();while(!![]){try{const _0x528d73=parseInt(_0x505bb3(0x16b))/0x1+-parseInt(_0x505bb3(0x166))/0x2+parseInt(_0x505bb3(0x16e))/0x3*(parseInt(_0x505bb3(0x163))/0x4)+-parseInt(_0x505bb3(0x16c))/0x5*(parseInt(_0x505bb3(0x168))/0x6)+parseInt(_0x505bb3(0x16a))/0x7*(parseInt(_0x505bb3(0x16f))/0x8)+-parseInt(_0x505bb3(0x167))/0x9+-parseInt(_0x505bb3(0x169))/0xa*(-parseInt(_0x505bb3(0x16d))/0xb);if(_0x528d73===_0x4ef970)break;else _0x3dd6f3['push'](_0x3dd6f3['shift']());}catch(_0x1c57ba){_0x3dd6f3['push'](_0x3dd6f3['shift']());}}}(a254_0x5adb,0xf10b0));function a254_0x2604(_0x4c7981,_0x261ce0){_0x4c7981=_0x4c7981-0x162;const _0x5adb9a=a254_0x5adb();let _0x26045e=_0x5adb9a[_0x4c7981];return _0x26045e;}export const VERSION=a254_0x13e0ed(0x165);export const GIT_TAG='v2.5.0-beta.1';export const GIT_COMMIT=a254_0x13e0ed(0x164);function a254_0x5adb(){const _0x136389=['1883654NhcorK','5QmkOKh','11VjPBfj','3153ZCaGRa','4616008ZJFfjG','2026-08-21T16:11:55.840Z','4156CSSsov','298f150','2.5.0-beta.1','1531260RrXKlp','13866048fcYavF','5324874PLOGCn','6284490jQKPgR','7Qerhyd'];a254_0x5adb=function(){return _0x136389;};return a254_0x5adb();}export const BUILD_TIME=a254_0x13e0ed(0x162);
1
+ function a254_0x1010(){const _0x1c9fea=['1WHRUOh','4cb6c32','141354pamyqP','21841794PeGzxu','7061060APcFgz','7972416AZPawC','12328169NgHXMz','3164Ahncks','3063DWxpuJ','2026-08-22T03:18:32.454Z','4938636ZqZOtw'];a254_0x1010=function(){return _0x1c9fea;};return a254_0x1010();}function a254_0x21b1(_0x41f844,_0x704e46){_0x41f844=_0x41f844-0x10b;const _0x10107a=a254_0x1010();let _0x21b176=_0x10107a[_0x41f844];return _0x21b176;}const a254_0x2db08d=a254_0x21b1;(function(_0x34a9dc,_0x11b5ba){const _0x25b246=a254_0x21b1,_0x3eaa26=_0x34a9dc();while(!![]){try{const _0x4f6692=-parseInt(_0x25b246(0x115))/0x1*(parseInt(_0x25b246(0x10c))/0x2)+-parseInt(_0x25b246(0x112))/0x3*(-parseInt(_0x25b246(0x111))/0x4)+parseInt(_0x25b246(0x10e))/0x5+-parseInt(_0x25b246(0x114))/0x6+-parseInt(_0x25b246(0x110))/0x7+-parseInt(_0x25b246(0x10f))/0x8+parseInt(_0x25b246(0x10d))/0x9;if(_0x4f6692===_0x11b5ba)break;else _0x3eaa26['push'](_0x3eaa26['shift']());}catch(_0x7d4c20){_0x3eaa26['push'](_0x3eaa26['shift']());}}}(a254_0x1010,0xf2f73));export const VERSION='2.5.0-beta.2';export const GIT_TAG='v2.5.0-beta.2';export const GIT_COMMIT=a254_0x2db08d(0x10b);export const BUILD_TIME=a254_0x2db08d(0x113);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x1d12a0,_0x3811e5){var _0x459b83=a255_0x2caf,_0x3e27a0=_0x1d12a0();while(!![]){try{var _0x28d854=parseInt(_0x459b83(0xaf))/0x1+-parseInt(_0x459b83(0xb0))/0x2+parseInt(_0x459b83(0xb3))/0x3+-parseInt(_0x459b83(0xb7))/0x4+parseInt(_0x459b83(0xb2))/0x5+-parseInt(_0x459b83(0xb5))/0x6+parseInt(_0x459b83(0xb1))/0x7;if(_0x28d854===_0x3811e5)break;else _0x3e27a0['push'](_0x3e27a0['shift']());}catch(_0x512df8){_0x3e27a0['push'](_0x3e27a0['shift']());}}}(a255_0x365c,0x4c90c));import a255_0x48350f from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a255_0x2caf(_0x453459,_0x565fa0){_0x453459=_0x453459-0xac;var _0x365c77=a255_0x365c();var _0x2caf51=_0x365c77[_0x453459];return _0x2caf51;}function a255_0x365c(){var _0x540e90=['\x20\x20Use\x20','1909292qIzCuE','\x20to\x20view\x20available\x20commands.','log','green','79828VFuLcP','474620MYrPUg','5556894IrDFKv','1718935WOEZON','1174503GZdgeC','bold','3484278EMCkJc'];a255_0x365c=function(){return _0x540e90;};return a255_0x365c();}export function showHelp(){var _0xe16a54=a255_0x2caf;console[_0xe16a54(0xad)](),console['log'](a255_0x48350f[_0xe16a54(0xae)]['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console[_0xe16a54(0xad)](),console[_0xe16a54(0xad)](_0xe16a54(0xb6)+a255_0x48350f[_0xe16a54(0xae)][_0xe16a54(0xb4)](CLI_BIN_NAME+'\x20--help')+_0xe16a54(0xac)),console['log']();}
1
+ (function(_0x246c5b,_0x1f23f2){var _0x79e908=a255_0x47f6,_0x43f402=_0x246c5b();while(!![]){try{var _0x2241a4=-parseInt(_0x79e908(0xa1))/0x1+parseInt(_0x79e908(0x9d))/0x2*(-parseInt(_0x79e908(0x9c))/0x3)+-parseInt(_0x79e908(0x97))/0x4+parseInt(_0x79e908(0x96))/0x5+-parseInt(_0x79e908(0x99))/0x6+-parseInt(_0x79e908(0x9f))/0x7*(parseInt(_0x79e908(0x9a))/0x8)+parseInt(_0x79e908(0xa0))/0x9*(parseInt(_0x79e908(0x95))/0xa);if(_0x2241a4===_0x1f23f2)break;else _0x43f402['push'](_0x43f402['shift']());}catch(_0x289934){_0x43f402['push'](_0x43f402['shift']());}}}(a255_0x1a2e,0x49d7a));import a255_0x150b6f from'chalk';function a255_0x1a2e(){var _0x32764d=['40KfZFeZ','green','13653ISbgzS','38remNUc','log','401296ymLYyQ','3720753ISCSQa','187720PjiqJd','30naihpK','1307620QgFHpl','2389244kEVUwM','\x20\x20Use\x20','247062ulCgML'];a255_0x1a2e=function(){return _0x32764d;};return a255_0x1a2e();}function a255_0x47f6(_0xfd9f0a,_0x345cd6){_0xfd9f0a=_0xfd9f0a-0x95;var _0x1a2e5f=a255_0x1a2e();var _0x47f669=_0x1a2e5f[_0xfd9f0a];return _0x47f669;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x9b7cf9=a255_0x47f6;console[_0x9b7cf9(0x9e)](),console[_0x9b7cf9(0x9e)](a255_0x150b6f[_0x9b7cf9(0x9b)]['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x9b7cf9(0x9e)](),console[_0x9b7cf9(0x9e)](_0x9b7cf9(0x98)+a255_0x150b6f[_0x9b7cf9(0x9b)]['bold'](CLI_BIN_NAME+'\x20--help')+'\x20to\x20view\x20available\x20commands.'),console[_0x9b7cf9(0x9e)]();}
@@ -1 +1 @@
1
- function a256_0x3429(){const _0x59ccdc=['Rabetbase\x20Built-in\x20Skill\x20','log','repairCommand','code','10910XmMRSq','changed','[BUILTIN_SKILL_INSTALL_','3249NqCCOG','skillVersion','already\x20current','479248szfYWv','SOURCE_INVALID','warn','Repair\x20with:\x20','262KDLhst','84FYShfY','534501nsLNRQ','355356ujFLsb','2841435rOCRql','22101zxTLXw','installedPath','\x20via\x20skills@latest','4247356GMEUns','error'];a256_0x3429=function(){return _0x59ccdc;};return a256_0x3429();}function a256_0x1253(_0x315c90,_0x1be650){_0x315c90=_0x315c90-0xdb;const _0x342936=a256_0x3429();let _0x12536f=_0x342936[_0x315c90];return _0x12536f;}(function(_0x329c40,_0x2900ea){const _0x218677=a256_0x1253,_0x104c84=_0x329c40();while(!![]){try{const _0xf5137=-parseInt(_0x218677(0xe9))/0x1+parseInt(_0x218677(0xe7))/0x2*(parseInt(_0x218677(0xec))/0x3)+parseInt(_0x218677(0xef))/0x4+-parseInt(_0x218677(0xeb))/0x5+parseInt(_0x218677(0xea))/0x6*(-parseInt(_0x218677(0xe8))/0x7)+parseInt(_0x218677(0xe3))/0x8+-parseInt(_0x218677(0xe0))/0x9*(-parseInt(_0x218677(0xdd))/0xa);if(_0xf5137===_0x2900ea)break;else _0x104c84['push'](_0x104c84['shift']());}catch(_0x4e6876){_0x104c84['push'](_0x104c84['shift']());}}}(a256_0x3429,0xa2e25));import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x5c8f46={}){const _0x3b9600=a256_0x1253,_0x4a313c=installBuiltinSkill(_0x5c8f46);if(_0x4a313c['ok']){const _0x5c24e0=_0x4a313c[_0x3b9600(0xde)]?'installed':_0x3b9600(0xe2),_0xc06348=_0x4a313c[_0x3b9600(0xed)]?'\x20at\x20'+_0x4a313c[_0x3b9600(0xed)]:_0x3b9600(0xee);return console[_0x3b9600(0xf2)](_0x3b9600(0xf1)+_0x4a313c[_0x3b9600(0xe1)]+'\x20'+_0x5c24e0+_0xc06348),_0x4a313c;}const _0x2f7456=_0x3b9600(0xdf)+(_0x4a313c[_0x3b9600(0xdc)]??'FAILED')+']\x20'+(_0x4a313c[_0x3b9600(0xf0)]??'Installation\x20failed')+'.\x20'+(_0x3b9600(0xe6)+_0x4a313c[_0x3b9600(0xdb)]);if(_0x4a313c[_0x3b9600(0xdc)]===_0x3b9600(0xe4))throw new Error(_0x2f7456);return console[_0x3b9600(0xe5)](_0x2f7456),_0x4a313c;}
1
+ (function(_0x1e8fda,_0x282067){const _0xd3614f=a256_0x5029,_0x4bf433=_0x1e8fda();while(!![]){try{const _0x2e062c=-parseInt(_0xd3614f(0x102))/0x1+parseInt(_0xd3614f(0x10e))/0x2*(-parseInt(_0xd3614f(0x10b))/0x3)+-parseInt(_0xd3614f(0x105))/0x4+parseInt(_0xd3614f(0x110))/0x5+-parseInt(_0xd3614f(0x112))/0x6+parseInt(_0xd3614f(0x103))/0x7+-parseInt(_0xd3614f(0x106))/0x8*(-parseInt(_0xd3614f(0x115))/0x9);if(_0x2e062c===_0x282067)break;else _0x4bf433['push'](_0x4bf433['shift']());}catch(_0x3cb419){_0x4bf433['push'](_0x4bf433['shift']());}}}(a256_0x3bda,0x2cc90));function a256_0x3bda(){const _0x43648e=['SOURCE_INVALID','1557rgNrDS','code','log','812Osrcga','installedPath','864000koUCZy','error','833586DfreXi','\x20via\x20skills@latest','Rabetbase\x20Built-in\x20Skill\x20','99GNHiyk','changed','warn','324381VUuwEz','2419900LWXOXJ','installed','1425420txswhz','505688oxtIGF','Repair\x20with:\x20','already\x20current','Installation\x20failed'];a256_0x3bda=function(){return _0x43648e;};return a256_0x3bda();}import{installBuiltinSkill}from'./skills/builtin-skill.js';function a256_0x5029(_0x817311,_0x2daada){_0x817311=_0x817311-0x100;const _0x3bdaaf=a256_0x3bda();let _0x502987=_0x3bdaaf[_0x817311];return _0x502987;}export async function runPostinstall(_0x239653={}){const _0x104e5=a256_0x5029,_0x259b38=installBuiltinSkill(_0x239653);if(_0x259b38['ok']){const _0x381a52=_0x259b38[_0x104e5(0x100)]?_0x104e5(0x104):_0x104e5(0x108),_0x29a80e=_0x259b38[_0x104e5(0x10f)]?'\x20at\x20'+_0x259b38['installedPath']:_0x104e5(0x113);return console[_0x104e5(0x10d)](_0x104e5(0x114)+_0x259b38['skillVersion']+'\x20'+_0x381a52+_0x29a80e),_0x259b38;}const _0x2ed65e='[BUILTIN_SKILL_INSTALL_'+(_0x259b38['code']??'FAILED')+']\x20'+(_0x259b38[_0x104e5(0x111)]??_0x104e5(0x109))+'.\x20'+(_0x104e5(0x107)+_0x259b38['repairCommand']);if(_0x259b38[_0x104e5(0x10c)]===_0x104e5(0x10a))throw new Error(_0x2ed65e);return console[_0x104e5(0x101)](_0x2ed65e),_0x259b38;}
@@ -1 +1 @@
1
- (function(_0x494193,_0x5965bd){const _0x2cb89e=a257_0x1417,_0x471ef4=_0x494193();while(!![]){try{const _0x4db2da=parseInt(_0x2cb89e(0x99))/0x1*(parseInt(_0x2cb89e(0xa5))/0x2)+-parseInt(_0x2cb89e(0xa4))/0x3*(-parseInt(_0x2cb89e(0x97))/0x4)+-parseInt(_0x2cb89e(0x9f))/0x5+-parseInt(_0x2cb89e(0x96))/0x6*(-parseInt(_0x2cb89e(0xa6))/0x7)+parseInt(_0x2cb89e(0xa1))/0x8+parseInt(_0x2cb89e(0x98))/0x9*(-parseInt(_0x2cb89e(0x9c))/0xa)+parseInt(_0x2cb89e(0xa0))/0xb*(-parseInt(_0x2cb89e(0x9e))/0xc);if(_0x4db2da===_0x5965bd)break;else _0x471ef4['push'](_0x471ef4['shift']());}catch(_0x109f5c){_0x471ef4['push'](_0x471ef4['shift']());}}}(a257_0x3d17,0x27303));function a257_0x1417(_0x2fec86,_0x3e07dc){_0x2fec86=_0x2fec86-0x96;const _0x3d1709=a257_0x3d17();let _0x14176b=_0x3d1709[_0x2fec86];return _0x14176b;}function a257_0x3d17(){const _0x357a2b=['271896NFhnKS','1390355zfezlU','55bNqrRU','1685896toZgvo','This\x20will\x20run\x20the\x20write\x20','trim','80151bfColt','40ZEOYRd','144970uSgKJb','risk','replace','high-risk-write','72NrSOFX','4DfgytR','4302hxDNip','12401VZAIol','.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','write','3810HaOrEa','string'];a257_0x3d17=function(){return _0x357a2b;};return a257_0x3d17();}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x21386d,_0x4f8a99,_0x5bfe59){const _0x2b2439=normalizeText(_0x21386d['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0x3d34cf=_0x2b2439||normalizeText(defaultDescription(requireWriteRisk(_0x21386d),_0x4f8a99),DESCRIPTION_MAX_LENGTH);return{'operation':_0x4f8a99,'risk':requireWriteRisk(_0x21386d),'description':_0x3d34cf,..._0x5bfe59?{'signal':_0x5bfe59}:{}};}function requireWriteRisk(_0x116a15){const _0x1b8ca2=a257_0x1417;if(_0x116a15[_0x1b8ca2(0xa7)]===_0x1b8ca2(0x9b)||_0x116a15[_0x1b8ca2(0xa7)]===_0x1b8ca2(0xa9))return _0x116a15['risk'];throw new Error('Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.');}function defaultDescription(_0x4a1970,_0x39c39b){const _0x264871=a257_0x1417;if(_0x4a1970===_0x264871(0xa9))return'This\x20will\x20run\x20the\x20high-risk\x20write\x20'+_0x39c39b+'.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.';return _0x264871(0xa2)+_0x39c39b+_0x264871(0x9a);}function normalizeText(_0x4a6211,_0x192b81){const _0x2540d0=a257_0x1417;if(typeof _0x4a6211!==_0x2540d0(0x9d))return'';return _0x4a6211[_0x2540d0(0xa8)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x2540d0(0xa8)](/\s+/g,'\x20')[_0x2540d0(0xa3)]()['slice'](0x0,_0x192b81);}
1
+ (function(_0x5c281f,_0x470bec){const _0x2d4c6a=a257_0x36b4,_0x52e5a1=_0x5c281f();while(!![]){try{const _0x2614e8=-parseInt(_0x2d4c6a(0xc1))/0x1*(-parseInt(_0x2d4c6a(0xc4))/0x2)+parseInt(_0x2d4c6a(0xc6))/0x3*(-parseInt(_0x2d4c6a(0xc0))/0x4)+-parseInt(_0x2d4c6a(0xcf))/0x5*(-parseInt(_0x2d4c6a(0xc9))/0x6)+-parseInt(_0x2d4c6a(0xc5))/0x7*(-parseInt(_0x2d4c6a(0xd0))/0x8)+-parseInt(_0x2d4c6a(0xc3))/0x9+-parseInt(_0x2d4c6a(0xcd))/0xa+-parseInt(_0x2d4c6a(0xc8))/0xb*(parseInt(_0x2d4c6a(0xd2))/0xc);if(_0x2614e8===_0x470bec)break;else _0x52e5a1['push'](_0x52e5a1['shift']());}catch(_0x16c164){_0x52e5a1['push'](_0x52e5a1['shift']());}}}(a257_0x5914,0x79205));const DESCRIPTION_MAX_LENGTH=0x1f4;function a257_0x5914(){const _0x5d8eb8=['1558291wMKVrq','27sDlHtm','write','242KYlZjX','12svXRqo','.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','string','This\x20will\x20run\x20the\x20write\x20','7820150byYpJX','high-risk-write','1878615rMDwbS','32KqiMDj','This\x20will\x20run\x20the\x20high-risk\x20write\x20','333276ZMbxQc','risk','slice','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','11940DZGoev','219CBnqaO','replace','5915574jEfFky','8506AUmOnb'];a257_0x5914=function(){return _0x5d8eb8;};return a257_0x5914();}export function buildRabetbaseConfirmationRequest(_0x128d2c,_0x13e800,_0x1d42a0){const _0xf2a3eb=normalizeText(_0x128d2c['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0x537393=_0xf2a3eb||normalizeText(defaultDescription(requireWriteRisk(_0x128d2c),_0x13e800),DESCRIPTION_MAX_LENGTH);return{'operation':_0x13e800,'risk':requireWriteRisk(_0x128d2c),'description':_0x537393,..._0x1d42a0?{'signal':_0x1d42a0}:{}};}function requireWriteRisk(_0x4a4405){const _0x185ff9=a257_0x36b4;if(_0x4a4405[_0x185ff9(0xd3)]===_0x185ff9(0xc7)||_0x4a4405[_0x185ff9(0xd3)]===_0x185ff9(0xce))return _0x4a4405[_0x185ff9(0xd3)];throw new Error(_0x185ff9(0xbf));}function defaultDescription(_0x39ec10,_0x44301f){const _0x15a038=a257_0x36b4;if(_0x39ec10==='high-risk-write')return _0x15a038(0xd1)+_0x44301f+_0x15a038(0xca);return _0x15a038(0xcc)+_0x44301f+'.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.';}function a257_0x36b4(_0x16c3fa,_0x23e009){_0x16c3fa=_0x16c3fa-0xbf;const _0x59147b=a257_0x5914();let _0x36b473=_0x59147b[_0x16c3fa];return _0x36b473;}function normalizeText(_0x465e57,_0x147260){const _0x1a8900=a257_0x36b4;if(typeof _0x465e57!==_0x1a8900(0xcb))return'';return _0x465e57[_0x1a8900(0xc2)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x1a8900(0xc2)](/\s+/g,'\x20')['trim']()[_0x1a8900(0xd4)](0x0,_0x147260);}
@@ -1 +1 @@
1
- function a258_0xef74(_0x344eb0,_0x5294c0){_0x344eb0=_0x344eb0-0xc4;var _0x593f86=a258_0x593f();var _0xef7474=_0x593f86[_0x344eb0];return _0xef7474;}function a258_0x593f(){var _0x163653=['15NYFCPK','186175NsOjEa','filter','8CsmGWs','join','risk','25553340adOHMt','high-risk-write','1699516HyXaIC','252NKDGGs','3160908stxFwv','831528fHEpoJ','1424040IKLujy','31341ltcMxu','service'];a258_0x593f=function(){return _0x163653;};return a258_0x593f();}(function(_0x204183,_0x3bd9d9){var _0x294c59=a258_0xef74,_0x119802=_0x204183();while(!![]){try{var _0x4d83aa=parseInt(_0x294c59(0xca))/0x1+parseInt(_0x294c59(0xd2))/0x2*(-parseInt(_0x294c59(0xc7))/0x3)+-parseInt(_0x294c59(0xc6))/0x4+parseInt(_0x294c59(0xc9))/0x5*(-parseInt(_0x294c59(0xc5))/0x6)+-parseInt(_0x294c59(0xd1))/0x7+parseInt(_0x294c59(0xcc))/0x8*(parseInt(_0x294c59(0xc4))/0x9)+parseInt(_0x294c59(0xcf))/0xa;if(_0x4d83aa===_0x3bd9d9)break;else _0x119802['push'](_0x119802['shift']());}catch(_0x5aa5d5){_0x119802['push'](_0x119802['shift']());}}}(a258_0x593f,0xb9fed));export function canonicalRabetbaseOperation(_0x11b566){var _0x34baa3=a258_0xef74;return[_0x11b566[_0x34baa3(0xc8)],..._0x11b566['command']['trim']()['split'](/\s+/)][_0x34baa3(0xcb)](Boolean)[_0x34baa3(0xcd)]('.');}export function createRabetbaseWriteMetadata(_0x4dd43c,_0x238127,_0x5085bc,_0x706973){var _0x2c5900=a258_0xef74;if(_0x706973||_0x5085bc['ok']!==!![]||_0x4dd43c[_0x2c5900(0xce)]!=='write'&&_0x4dd43c[_0x2c5900(0xce)]!==_0x2c5900(0xd0))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':'rabetbase.write.completed','operation':_0x238127,'risk':_0x4dd43c[_0x2c5900(0xce)]}}};}
1
+ (function(_0x18665b,_0x20a979){var _0x38b5ac=a258_0x32e9,_0x493f4e=_0x18665b();while(!![]){try{var _0x253f75=-parseInt(_0x38b5ac(0x148))/0x1+parseInt(_0x38b5ac(0x14b))/0x2+parseInt(_0x38b5ac(0x154))/0x3+-parseInt(_0x38b5ac(0x155))/0x4*(-parseInt(_0x38b5ac(0x14c))/0x5)+parseInt(_0x38b5ac(0x151))/0x6*(parseInt(_0x38b5ac(0x14f))/0x7)+-parseInt(_0x38b5ac(0x14a))/0x8+parseInt(_0x38b5ac(0x149))/0x9*(parseInt(_0x38b5ac(0x157))/0xa);if(_0x253f75===_0x20a979)break;else _0x493f4e['push'](_0x493f4e['shift']());}catch(_0x889cdf){_0x493f4e['push'](_0x493f4e['shift']());}}}(a258_0x23c0,0x74121));function a258_0x23c0(){var _0x511c5f=['878943lyEHaZ','6966EwazIt','3942560vPvkGL','198878jVZIui','5ZxGFzw','command','trim','150094XAknUN','high-risk-write','48wAaPfC','rabetbase.write.completed','join','1364193aRoYFV','3027712pDshbe','filter','4710BaIpsj','risk','service'];a258_0x23c0=function(){return _0x511c5f;};return a258_0x23c0();}function a258_0x32e9(_0x36b6f6,_0x43ede3){_0x36b6f6=_0x36b6f6-0x148;var _0x23c020=a258_0x23c0();var _0x32e976=_0x23c020[_0x36b6f6];return _0x32e976;}export function canonicalRabetbaseOperation(_0x588988){var _0x1d21cc=a258_0x32e9;return[_0x588988[_0x1d21cc(0x159)],..._0x588988[_0x1d21cc(0x14d)][_0x1d21cc(0x14e)]()['split'](/\s+/)][_0x1d21cc(0x156)](Boolean)[_0x1d21cc(0x153)]('.');}export function createRabetbaseWriteMetadata(_0xe924ef,_0x512359,_0x57b25d,_0x281727){var _0x59083f=a258_0x32e9;if(_0x281727||_0x57b25d['ok']!==!![]||_0xe924ef[_0x59083f(0x158)]!=='write'&&_0xe924ef['risk']!==_0x59083f(0x150))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x59083f(0x152),'operation':_0x512359,'risk':_0xe924ef[_0x59083f(0x158)]}}};}
@@ -1 +1 @@
1
- (function(_0x59f137,_0x5b9046){const _0x4ea4de=a259_0x385f,_0x48c900=_0x59f137();while(!![]){try{const _0x19d982=-parseInt(_0x4ea4de(0xd5))/0x1*(-parseInt(_0x4ea4de(0xdf))/0x2)+parseInt(_0x4ea4de(0xe1))/0x3+parseInt(_0x4ea4de(0xd2))/0x4+parseInt(_0x4ea4de(0xcd))/0x5+parseInt(_0x4ea4de(0xcb))/0x6*(-parseInt(_0x4ea4de(0xe3))/0x7)+-parseInt(_0x4ea4de(0xd7))/0x8+parseInt(_0x4ea4de(0xd3))/0x9;if(_0x19d982===_0x5b9046)break;else _0x48c900['push'](_0x48c900['shift']());}catch(_0x181ae8){_0x48c900['push'](_0x48c900['shift']());}}}(a259_0x9130,0x89a3e));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';function a259_0x385f(_0x29f900,_0x276144){_0x29f900=_0x29f900-0xc4;const _0x913035=a259_0x9130();let _0x385fb7=_0x913035[_0x29f900];return _0x385fb7;}import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';function a259_0x9130(){const _0x1f7fe0=['risk','dry-run','execute','4882TaRIhD','AbortError','499143aOKVks','result','16688RgHnuu','presentation','rawFlags','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','riskLevel','high-risk-write','definition','isNonInteractive','format','2832opDjaz','confirm','3394350pAMSeU','data','signal','present','confirmation','897896CozmIS','3140811MXstzm','message','417lQyfYL','stringify','5980632STIcav','aborted','yes','dryRun','command'];a259_0x9130=function(){return _0x1f7fe0;};return a259_0x9130();}import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x203ddb,command:_0x102310,risk:_0xdd1f78,dryRun:_0x22ff38}){const _0x3fade5=a259_0x385f;return JSON[_0x3fade5(0xd6)]({'ok':_0x203ddb['ok'],'command':_0x102310,'risk':_0xdd1f78,..._0x22ff38?{'dryRun':!![]}:{},..._0x203ddb[_0x3fade5(0xce)]!==undefined?{'data':_0x203ddb[_0x3fade5(0xce)]}:{},..._0x203ddb[_0x3fade5(0xd4)]?{'message':_0x203ddb['message']}:{}});}};export async function invokeRabetbase(_0x476359,_0x375336){const _0x2cba65=a259_0x385f;throwIfAborted(_0x375336[_0x2cba65(0xcf)]);const _0x3a07b4=await resolveRabetbaseInvocation(_0x476359),_0x4996be=canonicalRabetbaseOperation(_0x3a07b4[_0x2cba65(0xc8)]);return await confirmWriteBeforeQueue(_0x3a07b4[_0x2cba65(0xc8)],_0x3a07b4[_0x2cba65(0xc4)],_0x4996be,_0x375336),runSerialized(async()=>{const _0x34f3e9=_0x2cba65,_0xad78a2={};try{throwIfAborted(_0x375336[_0x34f3e9(0xcf)]);const _0x62a37f=buildConfigFromFlags(_0x3a07b4[_0x34f3e9(0xc4)]);await initGlobalEnvironment(_0x62a37f);const _0x353e00=createPipelineEnv(_0x62a37f,{..._0x3a07b4[_0x34f3e9(0xc4)],'yes':_0x3a07b4[_0x34f3e9(0xc8)][_0x34f3e9(0xdc)]===_0x34f3e9(0xc7)?!![]:_0x3a07b4['rawFlags'][_0x34f3e9(0xd9)],'nonInteractive':!![]},_0x3a07b4['args']);_0x353e00[_0x34f3e9(0xc9)]=!![],_0x353e00[_0x34f3e9(0xc6)]=_0x34f3e9(0xc7);const _0x574b01=withAbortSignal(_0x3a07b4[_0x34f3e9(0xc8)],_0x375336[_0x34f3e9(0xcf)]),_0x439dbd=createRabetbaseRunnerAdapter({'formatOutput'(_0x4cda89,_0x57dbd0){const _0x29e2e4=_0x34f3e9;_0xad78a2['result']=_0x4cda89,_0xad78a2[_0x29e2e4(0xdb)]=_0x57dbd0[_0x29e2e4(0xdb)],_0xad78a2['risk']=_0x57dbd0[_0x29e2e4(0xdc)],_0xad78a2[_0x29e2e4(0xca)]=_0x57dbd0['format'],_0xad78a2['dryRun']=_0x57dbd0[_0x29e2e4(0xda)]===!![];},async 'confirmHighRisk'(){const _0xb46d16=_0x34f3e9;throw new Error(_0xb46d16(0xc5));}});await runCommand(_0x574b01,_0x353e00,_0x439dbd);if(!_0xad78a2[_0x34f3e9(0xe2)]||!_0xad78a2[_0x34f3e9(0xdb)]||!_0xad78a2['risk']||!_0xad78a2[_0x34f3e9(0xca)])throw new Error('Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.');const _0x1a2e54=_0xad78a2[_0x34f3e9(0xda)]===!![],_0x3f6f2d=_0x375336[_0x34f3e9(0xe4)]??defaultPresentation,_0x188ed5={'result':_0xad78a2[_0x34f3e9(0xe2)],'command':_0xad78a2[_0x34f3e9(0xdb)],'operation':_0x4996be,'risk':_0xad78a2[_0x34f3e9(0xdc)],'format':_0xad78a2[_0x34f3e9(0xca)],'dryRun':_0x1a2e54},_0x59a920=createRabetbaseWriteMetadata(_0x3a07b4[_0x34f3e9(0xc8)],_0x4996be,_0xad78a2[_0x34f3e9(0xe2)],_0x1a2e54);let _0x39e9ff;try{_0x39e9ff=await _0x3f6f2d[_0x34f3e9(0xd0)](_0x188ed5);}catch(_0x2c492d){if(!_0x59a920||_0x3f6f2d===defaultPresentation)throw _0x2c492d;_0x39e9ff=await defaultPresentation[_0x34f3e9(0xd0)](_0x188ed5);}return{'operation':_0x4996be,'risk':_0xad78a2[_0x34f3e9(0xdc)],'mode':_0x1a2e54?_0x34f3e9(0xdd):_0x34f3e9(0xde),'result':_0xad78a2['result'],'output':_0x39e9ff,..._0x59a920?{'metadata':_0x59a920}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x453ec0,_0x1aa04e,_0x4c50fc,_0x1e704b){const _0x5df4a5=a259_0x385f;if(_0x1aa04e[_0x5df4a5(0xda)]===!![]||_0x453ec0['risk']!=='write'&&_0x453ec0[_0x5df4a5(0xdc)]!==_0x5df4a5(0xc7))return;await _0x1e704b[_0x5df4a5(0xd1)][_0x5df4a5(0xcc)](buildRabetbaseConfirmationRequest(_0x453ec0,_0x4c50fc,_0x1e704b['signal']));}function withAbortSignal(_0x24d00d,_0x558e18){return{..._0x24d00d,async 'execute'(_0x21e79a){const _0x3c92b8=a259_0x385f;return throwIfAborted(_0x558e18),_0x24d00d[_0x3c92b8(0xde)](_0x21e79a);}};}function throwIfAborted(_0x4fd342){const _0x4f914b=a259_0x385f;if(_0x4fd342?.[_0x4f914b(0xd8)])throw _0x4fd342['reason']instanceof Error?_0x4fd342['reason']:new DOMException('Rabetbase\x20invocation\x20aborted.',_0x4f914b(0xe0));}
1
+ (function(_0x2e0933,_0x4d8ed5){const _0x308bd5=a259_0x4751,_0x3d2a9a=_0x2e0933();while(!![]){try{const _0x14df4d=-parseInt(_0x308bd5(0x7b))/0x1*(-parseInt(_0x308bd5(0x80))/0x2)+parseInt(_0x308bd5(0x64))/0x3+parseInt(_0x308bd5(0x7f))/0x4+-parseInt(_0x308bd5(0x69))/0x5*(parseInt(_0x308bd5(0x7d))/0x6)+-parseInt(_0x308bd5(0x71))/0x7*(-parseInt(_0x308bd5(0x85))/0x8)+parseInt(_0x308bd5(0x74))/0x9*(-parseInt(_0x308bd5(0x6d))/0xa)+parseInt(_0x308bd5(0x78))/0xb*(-parseInt(_0x308bd5(0x6b))/0xc);if(_0x14df4d===_0x4d8ed5)break;else _0x3d2a9a['push'](_0x3d2a9a['shift']());}catch(_0x2989e5){_0x3d2a9a['push'](_0x3d2a9a['shift']());}}}(a259_0x5174,0x6ee35));function a259_0x5174(){const _0x14119f=['274CJtMWy','present','command','confirm','confirmation','66296NEozvv','signal','presentation','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','risk','dryRun','2660409gPwqZV','rawFlags','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','high-risk-write','Rabetbase\x20invocation\x20aborted.','25UxlwSb','AbortError','12eYDOzL','execute','1094230eJidUM','definition','riskLevel','dry-run','595xLwzmj','message','yes','63CYcFYJ','result','data','format','7886813zfgWaT','reason','args','4807AvSYCM','aborted','1045326NOQSmr','stringify','2233956QKKiRX'];a259_0x5174=function(){return _0x14119f;};return a259_0x5174();}import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x320993,command:_0x9af039,risk:_0x139207,dryRun:_0x4170db}){const _0xadbf=a259_0x4751;return JSON[_0xadbf(0x7e)]({'ok':_0x320993['ok'],'command':_0x9af039,'risk':_0x139207,..._0x4170db?{'dryRun':!![]}:{},..._0x320993[_0xadbf(0x76)]!==undefined?{'data':_0x320993[_0xadbf(0x76)]}:{},..._0x320993[_0xadbf(0x72)]?{'message':_0x320993['message']}:{}});}};export async function invokeRabetbase(_0xbe29ee,_0x3e5818){const _0x43a45d=a259_0x4751;throwIfAborted(_0x3e5818[_0x43a45d(0x86)]);const _0x597454=await resolveRabetbaseInvocation(_0xbe29ee),_0x2cf0b5=canonicalRabetbaseOperation(_0x597454[_0x43a45d(0x6e)]);return await confirmWriteBeforeQueue(_0x597454[_0x43a45d(0x6e)],_0x597454[_0x43a45d(0x65)],_0x2cf0b5,_0x3e5818),runSerialized(async()=>{const _0x2b63b9=_0x43a45d,_0x1333e7={};try{throwIfAborted(_0x3e5818[_0x2b63b9(0x86)]);const _0x518350=buildConfigFromFlags(_0x597454['rawFlags']);await initGlobalEnvironment(_0x518350);const _0x1b228d=createPipelineEnv(_0x518350,{..._0x597454[_0x2b63b9(0x65)],'yes':_0x597454[_0x2b63b9(0x6e)][_0x2b63b9(0x89)]===_0x2b63b9(0x67)?!![]:_0x597454[_0x2b63b9(0x65)][_0x2b63b9(0x73)],'nonInteractive':!![]},_0x597454[_0x2b63b9(0x7a)]);_0x1b228d['isNonInteractive']=!![],_0x1b228d[_0x2b63b9(0x6f)]=_0x2b63b9(0x67);const _0x265b32=withAbortSignal(_0x597454[_0x2b63b9(0x6e)],_0x3e5818[_0x2b63b9(0x86)]),_0x2199a2=createRabetbaseRunnerAdapter({'formatOutput'(_0x2d81bc,_0x5a5767){const _0xa5472a=_0x2b63b9;_0x1333e7['result']=_0x2d81bc,_0x1333e7[_0xa5472a(0x82)]=_0x5a5767[_0xa5472a(0x82)],_0x1333e7['risk']=_0x5a5767[_0xa5472a(0x89)],_0x1333e7[_0xa5472a(0x77)]=_0x5a5767[_0xa5472a(0x77)],_0x1333e7[_0xa5472a(0x8a)]=_0x5a5767[_0xa5472a(0x8a)]===!![];},async 'confirmHighRisk'(){const _0x352e46=_0x2b63b9;throw new Error(_0x352e46(0x88));}});await runCommand(_0x265b32,_0x1b228d,_0x2199a2);if(!_0x1333e7[_0x2b63b9(0x75)]||!_0x1333e7[_0x2b63b9(0x82)]||!_0x1333e7[_0x2b63b9(0x89)]||!_0x1333e7[_0x2b63b9(0x77)])throw new Error(_0x2b63b9(0x66));const _0x417d68=_0x1333e7['dryRun']===!![],_0xc8f391=_0x3e5818[_0x2b63b9(0x87)]??defaultPresentation,_0x459e25={'result':_0x1333e7[_0x2b63b9(0x75)],'command':_0x1333e7[_0x2b63b9(0x82)],'operation':_0x2cf0b5,'risk':_0x1333e7[_0x2b63b9(0x89)],'format':_0x1333e7[_0x2b63b9(0x77)],'dryRun':_0x417d68},_0x4d7b3a=createRabetbaseWriteMetadata(_0x597454[_0x2b63b9(0x6e)],_0x2cf0b5,_0x1333e7[_0x2b63b9(0x75)],_0x417d68);let _0x5a2f02;try{_0x5a2f02=await _0xc8f391[_0x2b63b9(0x81)](_0x459e25);}catch(_0x54ec8b){if(!_0x4d7b3a||_0xc8f391===defaultPresentation)throw _0x54ec8b;_0x5a2f02=await defaultPresentation[_0x2b63b9(0x81)](_0x459e25);}return{'operation':_0x2cf0b5,'risk':_0x1333e7[_0x2b63b9(0x89)],'mode':_0x417d68?_0x2b63b9(0x70):'execute','result':_0x1333e7[_0x2b63b9(0x75)],'output':_0x5a2f02,..._0x4d7b3a?{'metadata':_0x4d7b3a}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}function a259_0x4751(_0x57e6fd,_0xbb8f2d){_0x57e6fd=_0x57e6fd-0x64;const _0x51746e=a259_0x5174();let _0x475111=_0x51746e[_0x57e6fd];return _0x475111;}async function confirmWriteBeforeQueue(_0x458dcd,_0x370f48,_0x1483b5,_0x5881ff){const _0x274ef5=a259_0x4751;if(_0x370f48['dryRun']===!![]||_0x458dcd[_0x274ef5(0x89)]!=='write'&&_0x458dcd[_0x274ef5(0x89)]!==_0x274ef5(0x67))return;await _0x5881ff[_0x274ef5(0x84)][_0x274ef5(0x83)](buildRabetbaseConfirmationRequest(_0x458dcd,_0x1483b5,_0x5881ff['signal']));}function withAbortSignal(_0x43e8b2,_0x2f90b8){return{..._0x43e8b2,async 'execute'(_0x1562aa){const _0x43f0f3=a259_0x4751;return throwIfAborted(_0x2f90b8),_0x43e8b2[_0x43f0f3(0x6c)](_0x1562aa);}};}function throwIfAborted(_0x27822f){const _0x12aeac=a259_0x4751;if(_0x27822f?.[_0x12aeac(0x7c)])throw _0x27822f[_0x12aeac(0x79)]instanceof Error?_0x27822f[_0x12aeac(0x79)]:new DOMException(_0x12aeac(0x68),_0x12aeac(0x6a));}
@@ -1 +1 @@
1
- function a260_0xd1d5(){const _0x4ce85d=['522550maVuiM','8764oMfqyF','275uprXci','249138LXFUvw','8vGCEqC','catch','21onefYh','138982VSazXy','82426UbWfIc','resolve','5491683YPuvRf','547205moYgfl','63QjhGrT'];a260_0xd1d5=function(){return _0x4ce85d;};return a260_0xd1d5();}const a260_0x1025ef=a260_0x1e06;(function(_0x86de55,_0x20d7f1){const _0x135f90=a260_0x1e06,_0x333908=_0x86de55();while(!![]){try{const _0x21cd3d=-parseInt(_0x135f90(0xcd))/0x1+-parseInt(_0x135f90(0xce))/0x2+parseInt(_0x135f90(0xc5))/0x3*(-parseInt(_0x135f90(0xc7))/0x4)+parseInt(_0x135f90(0xc4))/0x5+-parseInt(_0x135f90(0xc9))/0x6*(parseInt(_0x135f90(0xcc))/0x7)+-parseInt(_0x135f90(0xca))/0x8*(parseInt(_0x135f90(0xc3))/0x9)+parseInt(_0x135f90(0xc6))/0xa*(parseInt(_0x135f90(0xc8))/0xb);if(_0x21cd3d===_0x20d7f1)break;else _0x333908['push'](_0x333908['shift']());}catch(_0x3b0c54){_0x333908['push'](_0x333908['shift']());}}}(a260_0xd1d5,0x6f0c6));function a260_0x1e06(_0x38fa26,_0x3151f3){_0x38fa26=_0x38fa26-0xc2;const _0xd1d54=a260_0xd1d5();let _0x1e0603=_0xd1d54[_0x38fa26];return _0x1e0603;}let tail=Promise[a260_0x1025ef(0xc2)]();export async function runSerialized(_0x164ce1){const _0x9b9e49=a260_0x1025ef,_0x169fba=tail;let _0x153b65;tail=new Promise(_0x129ba1=>{_0x153b65=_0x129ba1;}),await _0x169fba[_0x9b9e49(0xcb)](()=>undefined);try{return await _0x164ce1();}finally{_0x153b65();}}
1
+ (function(_0x233adf,_0xc535da){const _0x2c2a43=a260_0x10c5,_0xdc1bec=_0x233adf();while(!![]){try{const _0x3809b5=-parseInt(_0x2c2a43(0x1d4))/0x1*(-parseInt(_0x2c2a43(0x1d3))/0x2)+-parseInt(_0x2c2a43(0x1d7))/0x3*(parseInt(_0x2c2a43(0x1d8))/0x4)+parseInt(_0x2c2a43(0x1d5))/0x5*(-parseInt(_0x2c2a43(0x1cd))/0x6)+-parseInt(_0x2c2a43(0x1d1))/0x7+-parseInt(_0x2c2a43(0x1ce))/0x8+parseInt(_0x2c2a43(0x1d0))/0x9+-parseInt(_0x2c2a43(0x1d6))/0xa*(-parseInt(_0x2c2a43(0x1cf))/0xb);if(_0x3809b5===_0xc535da)break;else _0xdc1bec['push'](_0xdc1bec['shift']());}catch(_0x136f9a){_0xdc1bec['push'](_0xdc1bec['shift']());}}}(a260_0x40e2,0x66ed2));function a260_0x40e2(){const _0x9c1c3f=['4778586oWIZzf','4483409tVKroR','catch','842IrIccn','1753XZRqaZ','120515JLCSoQ','60380wAhlXR','15BKkIxi','430620zJrYzu','84eaaxhj','1267064absuPj','1507kpeprp'];a260_0x40e2=function(){return _0x9c1c3f;};return a260_0x40e2();}function a260_0x10c5(_0x4f011e,_0x57e774){_0x4f011e=_0x4f011e-0x1cd;const _0x40e2c1=a260_0x40e2();let _0x10c53a=_0x40e2c1[_0x4f011e];return _0x10c53a;}let tail=Promise['resolve']();export async function runSerialized(_0x36ae79){const _0x4d2494=a260_0x10c5,_0x16f931=tail;let _0x223c3b;tail=new Promise(_0x1a6692=>{_0x223c3b=_0x1a6692;}),await _0x16f931[_0x4d2494(0x1d2)](()=>undefined);try{return await _0x36ae79();}finally{_0x223c3b();}}
@@ -1 +1 @@
1
- (function(_0x2d08c6,_0x2bb21b){const _0x1a5c3c=a261_0x2dc2,_0x58d492=_0x2d08c6();while(!![]){try{const _0x382132=parseInt(_0x1a5c3c(0xb4))/0x1*(parseInt(_0x1a5c3c(0xc2))/0x2)+-parseInt(_0x1a5c3c(0xb1))/0x3+parseInt(_0x1a5c3c(0xb9))/0x4+parseInt(_0x1a5c3c(0xb6))/0x5+-parseInt(_0x1a5c3c(0xbc))/0x6*(parseInt(_0x1a5c3c(0xbe))/0x7)+-parseInt(_0x1a5c3c(0xbb))/0x8+-parseInt(_0x1a5c3c(0xc0))/0x9;if(_0x382132===_0x2bb21b)break;else _0x58d492['push'](_0x58d492['shift']());}catch(_0x255b05){_0x58d492['push'](_0x58d492['shift']());}}}(a261_0x4828,0x82807));import a261_0x358728 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a261_0x2dc2(_0x496733,_0x2bb9f5){_0x496733=_0x496733-0xaf;const _0x48284a=a261_0x4828();let _0x2dc217=_0x48284a[_0x496733];return _0x2dc217;}function a261_0x4828(){const _0x3fd890=['slice','1046348nPfywo','hint','3979856LdxoUz','210258QFTGlC','message','21xGNndW','run','2665323Umersq','join','16Wpvdkf','validation','input','flags','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','1231620vtDDKB','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','unknownCommand','86159qqOAgR','wildcardDef','4464870DyoviT','defaultCommand'];a261_0x4828=function(){return _0x3fd890;};return a261_0x4828();}export async function resolveRabetbaseInvocation(_0x3c728d){const _0xc23659=a261_0x2dc2,_0x3983c9=a261_0x358728('',{'importMeta':import.meta,'argv':[..._0x3c728d],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x2e9180=[..._0x3983c9[_0xc23659(0xc4)]],_0x3e5bfe=_0x3983c9[_0xc23659(0xaf)],_0x1ac610=_0x2e9180[0x0];if(!_0x1ac610)throw CliErrors['validation'](_0xc23659(0xb0));const _0x1069f2=resolveRemovedCommand(_0x1ac610,_0x2e9180[0x1]);if(_0x1069f2)throw CliErrors[_0xc23659(0xc3)](_0x1069f2[_0xc23659(0xbd)],_0x1069f2[_0xc23659(0xba)]);if(_0x1ac610===_0xc23659(0xbf))throw CliErrors[_0xc23659(0xc3)](_0xc23659(0xb2),'Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.');if(!isKnownService(_0x1ac610))throw CliErrors['unknownCommand'](_0x2e9180[_0xc23659(0xc1)]('\x20'));const _0x57e46e=getServiceEntry(_0x1ac610),_0x119d24=_0x2e9180[0x1],_0x4a5539=_0x119d24||_0x57e46e[_0xc23659(0xb7)];if(!_0x4a5539){if(_0x57e46e['wildcardDef'])return{'definition':_0x57e46e[_0xc23659(0xb5)],'rawFlags':_0x3e5bfe,'args':[]};throw CliErrors[_0xc23659(0xc3)]('Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x1ac610+'\x22.');}const _0x187642=findDefinition(_0x1ac610,_0x4a5539);if(_0x187642)return{'definition':_0x187642,'rawFlags':_0x3e5bfe,'args':_0x2e9180['slice'](0x2)};if(_0x57e46e[_0xc23659(0xb5)])return{'definition':_0x57e46e[_0xc23659(0xb5)],'rawFlags':_0x3e5bfe,'args':[_0x4a5539,..._0x2e9180[_0xc23659(0xb8)](0x2)]};throw CliErrors[_0xc23659(0xb3)](_0x1ac610+'\x20'+_0x4a5539);}
1
+ function a261_0x36d9(){const _0x70fd21=['input','16831750CJenTm','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','unknownCommand','join','222246udCxTU','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','message','12cxwEnz','208855iyXdWN','run','8ehbiQN','108aDrKfY','validation','148698ErdMLX','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','defaultCommand','1235511gzZFgd','273623aPNEJV','slice','wildcardDef','2345715XChPPb'];a261_0x36d9=function(){return _0x70fd21;};return a261_0x36d9();}(function(_0x40cb36,_0x3219b4){const _0x496921=a261_0x366e,_0x13b480=_0x40cb36();while(!![]){try{const _0x12fc28=-parseInt(_0x496921(0x115))/0x1+parseInt(_0x496921(0x11a))/0x2+-parseInt(_0x496921(0x127))/0x3*(-parseInt(_0x496921(0x114))/0x4)+-parseInt(_0x496921(0x121))/0x5+-parseInt(_0x496921(0x118))/0x6*(parseInt(_0x496921(0x11e))/0x7)+-parseInt(_0x496921(0x117))/0x8*(parseInt(_0x496921(0x11d))/0x9)+parseInt(_0x496921(0x123))/0xa;if(_0x12fc28===_0x3219b4)break;else _0x13b480['push'](_0x13b480['shift']());}catch(_0x23811a){_0x13b480['push'](_0x13b480['shift']());}}}(a261_0x36d9,0x7085b));import a261_0x4744af from'meow';function a261_0x366e(_0x41cee4,_0x14c469){_0x41cee4=_0x41cee4-0x114;const _0x36d92c=a261_0x36d9();let _0x366ec7=_0x36d92c[_0x41cee4];return _0x366ec7;}import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveRabetbaseInvocation(_0xe3044){const _0x70463a=a261_0x366e,_0x5859f0=a261_0x4744af('',{'importMeta':import.meta,'argv':[..._0xe3044],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x5b80ee=[..._0x5859f0[_0x70463a(0x122)]],_0x519c0a=_0x5859f0['flags'],_0x598e19=_0x5b80ee[0x0];if(!_0x598e19)throw CliErrors[_0x70463a(0x119)](_0x70463a(0x128));const _0x348ec4=resolveRemovedCommand(_0x598e19,_0x5b80ee[0x1]);if(_0x348ec4)throw CliErrors[_0x70463a(0x119)](_0x348ec4[_0x70463a(0x129)],_0x348ec4['hint']);if(_0x598e19===_0x70463a(0x116))throw CliErrors[_0x70463a(0x119)](_0x70463a(0x124),_0x70463a(0x11b));if(!isKnownService(_0x598e19))throw CliErrors['unknownCommand'](_0x5b80ee[_0x70463a(0x126)]('\x20'));const _0x5b8b77=getServiceEntry(_0x598e19),_0x4a62bb=_0x5b80ee[0x1],_0x3270e2=_0x4a62bb||_0x5b8b77[_0x70463a(0x11c)];if(!_0x3270e2){if(_0x5b8b77['wildcardDef'])return{'definition':_0x5b8b77[_0x70463a(0x120)],'rawFlags':_0x519c0a,'args':[]};throw CliErrors[_0x70463a(0x119)]('Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x598e19+'\x22.');}const _0x2fd5e4=findDefinition(_0x598e19,_0x3270e2);if(_0x2fd5e4)return{'definition':_0x2fd5e4,'rawFlags':_0x519c0a,'args':_0x5b80ee[_0x70463a(0x11f)](0x2)};if(_0x5b8b77[_0x70463a(0x120)])return{'definition':_0x5b8b77[_0x70463a(0x120)],'rawFlags':_0x519c0a,'args':[_0x3270e2,..._0x5b80ee[_0x70463a(0x11f)](0x2)]};throw CliErrors[_0x70463a(0x125)](_0x598e19+'\x20'+_0x3270e2);}
@@ -1 +1 @@
1
- const a263_0x55e1f=a263_0x5cc8;function a263_0x5cc8(_0x211ba8,_0x44c581){_0x211ba8=_0x211ba8-0x134;const _0x4c9ed6=a263_0x4c9e();let _0x5cc82d=_0x4c9ed6[_0x211ba8];return _0x5cc82d;}(function(_0xe1ee34,_0x976dd){const _0x54a1ad=a263_0x5cc8,_0x305df0=_0xe1ee34();while(!![]){try{const _0x1d45f2=parseInt(_0x54a1ad(0x15b))/0x1+parseInt(_0x54a1ad(0x152))/0x2*(parseInt(_0x54a1ad(0x144))/0x3)+-parseInt(_0x54a1ad(0x138))/0x4*(parseInt(_0x54a1ad(0x171))/0x5)+parseInt(_0x54a1ad(0x13d))/0x6*(parseInt(_0x54a1ad(0x137))/0x7)+-parseInt(_0x54a1ad(0x139))/0x8*(parseInt(_0x54a1ad(0x150))/0x9)+-parseInt(_0x54a1ad(0x14d))/0xa+parseInt(_0x54a1ad(0x13b))/0xb*(parseInt(_0x54a1ad(0x172))/0xc);if(_0x1d45f2===_0x976dd)break;else _0x305df0['push'](_0x305df0['shift']());}catch(_0x4b6ef1){_0x305df0['push'](_0x305df0['shift']());}}}(a263_0x4c9e,0x27208));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=a263_0x55e1f(0x153);function frontmatterValue(_0x245c0f,_0x145b1e){const _0x3d64ea=a263_0x55e1f;return _0x245c0f[_0x3d64ea(0x160)](new RegExp('^'+_0x145b1e+_0x3d64ea(0x15f),'m'))?.[0x1]?.[_0x3d64ea(0x136)]()??'';}function listFiles(_0x1d8a29,_0x2f1a2a=_0x1d8a29){const _0xcdc2a6=a263_0x55e1f;return readdirSync(_0x2f1a2a,{'withFileTypes':!![]})[_0xcdc2a6(0x13f)](_0x3cc40d=>{const _0x2484a6=_0xcdc2a6,_0x31c9eb=join(_0x2f1a2a,_0x3cc40d['name']),_0x4c759b=lstatSync(_0x31c9eb);if(_0x4c759b[_0x2484a6(0x16d)]())throw new Error(_0x2484a6(0x157)+_0x31c9eb);if(_0x4c759b['isDirectory']())return listFiles(_0x1d8a29,_0x31c9eb);if(!_0x4c759b[_0x2484a6(0x15d)]())throw new Error(_0x2484a6(0x14a)+_0x31c9eb);return[relative(_0x1d8a29,_0x31c9eb)[_0x2484a6(0x13e)](sep)[_0x2484a6(0x156)]('/')];})[_0xcdc2a6(0x173)]((_0x36508f,_0x39633e)=>_0x36508f<_0x39633e?-0x1:_0x36508f>_0x39633e?0x1:0x0);}function a263_0x4c9e(){const _0x16310e=['packageVersion','438eGxIKZ','current','stdio','length','unknown','skills@latest\x20exited\x20','Unsupported\x20Skill\x20entry:\x20','root','reason','2870100AXJyzG','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','packageRoot','37863CQtVOK','unverifiable','718fkCEvk','rabetbase','sha256','name','join','Symbolic\x20link\x20is\x20not\x20allowed:\x20','status','present','state','26756iOdMNV','skillVersion','isFile','INSTALL_FAILED',':\x5cs*(.+)$','match','schemaVersion','digest','rabetbase.manifest.json','skills','path','missing','update','message','pipe','parse','installedPath','version','isSymbolicLink','utf8','files','package.json','5WfqhHF','4078968mTUeot','sort','Unsafe\x20manifest\x20path:\x20','includes','manifest','trim','1003618jKVlNp','1130444GPoHQK','328XIEhqy','SKILL.md','22vZGAlm','home','6IwbfQl','split','flatMap','version_mismatch','content_mismatch','VERIFY_FAILED'];a263_0x4c9e=function(){return _0x16310e;};return a263_0x4c9e();}function digestFiles(_0xf64762,_0x12b04e){const _0x45457c=a263_0x55e1f,_0x5956d7=createHash(_0x45457c(0x154));for(const _0x530889 of _0x12b04e){if(_0x530889['startsWith']('/')||_0x530889['split']('/')[_0x45457c(0x134)]('..')||_0x530889[_0x45457c(0x134)]('\x5c'))throw new Error(_0x45457c(0x174)+_0x530889);_0x5956d7['update'](_0x530889),_0x5956d7[_0x45457c(0x167)]('\x00'),_0x5956d7[_0x45457c(0x167)](readFileSync(join(_0xf64762,..._0x530889[_0x45457c(0x13e)]('/')))),_0x5956d7['update']('\x00');}return _0x5956d7['digest']('hex');}function sameFiles(_0x27ddb4,_0x21b38c){const _0x3e859a=a263_0x55e1f;return _0x27ddb4[_0x3e859a(0x147)]===_0x21b38c[_0x3e859a(0x147)]&&_0x27ddb4['every']((_0x5391fb,_0x5e70f4)=>_0x5391fb===_0x21b38c[_0x5e70f4]);}function readSource(_0x84f571){const _0x394152=a263_0x55e1f,_0x1738c2=JSON[_0x394152(0x16a)](readFileSync(join(_0x84f571,_0x394152(0x170)),'utf8')),_0x2dd76a=JSON[_0x394152(0x16a)](readFileSync(join(_0x84f571,'skills',_0x394152(0x163)),_0x394152(0x16e))),_0x3e291d=join(_0x84f571,_0x394152(0x164),SKILL_NAME),_0x21c845=frontmatterValue(readFileSync(join(_0x3e291d,'SKILL.md'),_0x394152(0x16e)),_0x394152(0x16c)),_0x5627aa=listFiles(_0x3e291d);if(_0x2dd76a[_0x394152(0x161)]!==0x1||_0x2dd76a[_0x394152(0x155)]!==SKILL_NAME||!_0x1738c2[_0x394152(0x16c)]||_0x2dd76a['packageVersion']!==_0x1738c2['version']||_0x2dd76a[_0x394152(0x15c)]!==_0x1738c2['version']||_0x21c845!==_0x1738c2['version']||!sameFiles(_0x5627aa,_0x2dd76a[_0x394152(0x16f)])||digestFiles(_0x3e291d,_0x5627aa)!==_0x2dd76a[_0x394152(0x162)])throw new Error(_0x394152(0x14e));return{'packageVersion':_0x1738c2[_0x394152(0x16c)],'skillVersion':_0x21c845,'root':_0x3e291d,'manifest':_0x2dd76a};}function installedSkillPath(_0x29a817){const _0x229a65=a263_0x55e1f,_0x1a7bc7=resolveInstalledSkill(SKILL_NAME,{'home':_0x29a817});if(_0x1a7bc7['state']==='present')return{'state':_0x229a65(0x159),'path':dirname(_0x1a7bc7[_0x229a65(0x165)])};if(_0x1a7bc7[_0x229a65(0x15a)]==='absent')return{'state':'missing'};return{'state':'unverifiable','reason':_0x1a7bc7[_0x229a65(0x14c)]};}export function inspectInstalledBuiltinSkillVersion(_0xb0da73,_0x1c4e20={}){const _0x134395=a263_0x55e1f,_0xe460bd=installedSkillPath(_0x1c4e20['home']??homedir());if(_0xe460bd[_0x134395(0x15a)]===_0x134395(0x166))return{'state':_0x134395(0x166),'expectedVersion':_0xb0da73,'repairCommand':REPAIR_COMMAND};if(_0xe460bd['state']==='unverifiable')return{'state':'unverifiable','expectedVersion':_0xb0da73,'reason':_0xe460bd[_0x134395(0x14c)],'repairCommand':REPAIR_COMMAND};try{const _0x279901=frontmatterValue(readFileSync(join(_0xe460bd[_0x134395(0x165)],_0x134395(0x13a)),'utf8'),'version');return{'state':_0x279901===_0xb0da73?_0x134395(0x145):_0x134395(0x140),'expectedVersion':_0xb0da73,'skillVersion':_0x279901,'installedPath':_0xe460bd[_0x134395(0x165)],'repairCommand':REPAIR_COMMAND};}catch(_0x590c12){return{'state':'unverifiable','expectedVersion':_0xb0da73,'installedPath':_0xe460bd[_0x134395(0x165)],'reason':_0x590c12 instanceof Error?_0x590c12[_0x134395(0x168)]:String(_0x590c12),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x563a7a={}){const _0x74d121=a263_0x55e1f,_0x16b492=_0x563a7a['packageRoot']??DEFAULT_PACKAGE_ROOT;let _0x51067c;try{_0x51067c=readSource(_0x16b492);}catch(_0x1a5eb7){return{'state':'unverifiable','packageVersion':'unknown','reason':_0x1a5eb7 instanceof Error?_0x1a5eb7[_0x74d121(0x168)]:String(_0x1a5eb7),'repairCommand':REPAIR_COMMAND};}const _0x34f43f=installedSkillPath(_0x563a7a[_0x74d121(0x13c)]??homedir());if(_0x34f43f[_0x74d121(0x15a)]===_0x74d121(0x166))return{'state':_0x74d121(0x166),'packageVersion':_0x51067c['packageVersion'],'repairCommand':REPAIR_COMMAND};if(_0x34f43f[_0x74d121(0x15a)]===_0x74d121(0x151))return{'state':_0x74d121(0x151),'packageVersion':_0x51067c[_0x74d121(0x143)],'reason':_0x34f43f[_0x74d121(0x14c)],'repairCommand':REPAIR_COMMAND};try{const _0x19cb12=frontmatterValue(readFileSync(join(_0x34f43f['path'],_0x74d121(0x13a)),_0x74d121(0x16e)),'version');if(_0x19cb12!==_0x51067c['skillVersion'])return{'state':_0x74d121(0x140),'packageVersion':_0x51067c['packageVersion'],'skillVersion':_0x19cb12,'installedPath':_0x34f43f[_0x74d121(0x165)],'repairCommand':REPAIR_COMMAND};const _0x5e5664=listFiles(_0x34f43f[_0x74d121(0x165)]),_0x4d25de=digestFiles(_0x34f43f[_0x74d121(0x165)],_0x5e5664);return{'state':sameFiles(_0x5e5664,_0x51067c[_0x74d121(0x135)]['files'])&&_0x4d25de===_0x51067c[_0x74d121(0x135)][_0x74d121(0x162)]?_0x74d121(0x145):_0x74d121(0x141),'packageVersion':_0x51067c['packageVersion'],'skillVersion':_0x19cb12,'installedPath':_0x34f43f[_0x74d121(0x165)],'digest':_0x4d25de,'repairCommand':REPAIR_COMMAND};}catch(_0xdb0f2e){return{'state':'unverifiable','packageVersion':_0x51067c['packageVersion'],'installedPath':_0x34f43f[_0x74d121(0x165)],'reason':_0xdb0f2e instanceof Error?_0xdb0f2e[_0x74d121(0x168)]:String(_0xdb0f2e),'repairCommand':REPAIR_COMMAND};}}function failure(_0x37ccdc,_0x442c98,_0x4c5140,_0x4da830){const _0x144a39=a263_0x55e1f;return{'ok':![],'code':_0x37ccdc,'packageVersion':_0x442c98[_0x144a39(0x143)],'skillVersion':_0x442c98['skillVersion'],'installedPath':_0x4da830,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x4c5140 instanceof Error?_0x4c5140[_0x144a39(0x168)]:String(_0x4c5140)};}export function installBuiltinSkill(_0x4cb8ce={}){const _0x5bc0bc=a263_0x55e1f,_0x46c2cd=_0x4cb8ce[_0x5bc0bc(0x14f)]??DEFAULT_PACKAGE_ROOT,_0x176d17=_0x4cb8ce['home']??homedir();let _0x200629;try{_0x200629=readSource(_0x46c2cd);}catch(_0xf6c170){return failure('SOURCE_INVALID',{'packageVersion':_0x5bc0bc(0x148),'skillVersion':_0x5bc0bc(0x148)},_0xf6c170);}const _0x1c5eb9=inspectBuiltinSkill({'packageRoot':_0x46c2cd,'home':_0x176d17}),_0x406cc9=runNpxSkillsAddGlobal(_0x46c2cd,_0x200629[_0x5bc0bc(0x14b)],{'stdio':_0x4cb8ce[_0x5bc0bc(0x146)]??_0x5bc0bc(0x169),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x176d17}});if(_0x406cc9['skipped'])return{'ok':!![],'packageVersion':_0x200629[_0x5bc0bc(0x143)],'skillVersion':_0x200629[_0x5bc0bc(0x15c)],'installedPath':_0x1c5eb9[_0x5bc0bc(0x16b)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x406cc9['ok'])return failure(_0x5bc0bc(0x15e),_0x200629,_0x406cc9['error']??_0x5bc0bc(0x149)+_0x406cc9[_0x5bc0bc(0x158)]);const _0x585a24=inspectBuiltinSkill({'packageRoot':_0x46c2cd,'home':_0x176d17});if(_0x585a24[_0x5bc0bc(0x15a)]!==_0x5bc0bc(0x145))return failure(_0x5bc0bc(0x142),_0x200629,_0x585a24[_0x5bc0bc(0x14c)]??'Installed\x20Skill\x20state\x20is\x20'+_0x585a24[_0x5bc0bc(0x15a)],_0x585a24['installedPath']);return{'ok':!![],'packageVersion':_0x200629[_0x5bc0bc(0x143)],'skillVersion':_0x200629['skillVersion'],'installedPath':_0x585a24[_0x5bc0bc(0x16b)],'changed':_0x1c5eb9[_0x5bc0bc(0x15a)]!=='current','repairCommand':REPAIR_COMMAND};}
1
+ const a263_0x5c5fb0=a263_0x5b46;(function(_0xe60467,_0x32cac4){const _0x176abc=a263_0x5b46,_0x38d5c5=_0xe60467();while(!![]){try{const _0x3a712a=-parseInt(_0x176abc(0x98))/0x1+parseInt(_0x176abc(0x8f))/0x2*(parseInt(_0x176abc(0x93))/0x3)+-parseInt(_0x176abc(0xba))/0x4+-parseInt(_0x176abc(0xb0))/0x5+parseInt(_0x176abc(0xbb))/0x6*(parseInt(_0x176abc(0x87))/0x7)+parseInt(_0x176abc(0x8b))/0x8+parseInt(_0x176abc(0x8e))/0x9;if(_0x3a712a===_0x32cac4)break;else _0x38d5c5['push'](_0x38d5c5['shift']());}catch(_0x1f36ec){_0x38d5c5['push'](_0x38d5c5['shift']());}}}(a263_0x1521,0xc4a3e));function a263_0x1521(){const _0x1cbfcb=['digest','includes','schemaVersion','Unsafe\x20manifest\x20path:\x20','version_mismatch','SKILL.md','unknown','files','startsWith','status','Symbolic\x20link\x20is\x20not\x20allowed:\x20','package.json','utf8','trim','skills@latest\x20exited\x20','skills','flatMap',':\x5cs*(.+)$','skipped','Installed\x20Skill\x20state\x20is\x20','root','4604985rIcMRR','reason','split','message','name','INSTALL_FAILED','content_mismatch','SOURCE_INVALID','join','path','1080440vmKTTG','12jwroPf','packageRoot','skillVersion','present','state','length','unverifiable','isFile','sha256','packageVersion','4715144fngSMZ','match','home','installedPath','1782672JlMssA','version','every','1981620wXiGcW','8JftZFA','manifest','rabetbase.manifest.json','current','902532zdKhje','missing','rabetbase\x20cli-skill\x20install','hex','update','997029zEGjiZ','stdio','absent'];a263_0x1521=function(){return _0x1cbfcb;};return a263_0x1521();}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=a263_0x5c5fb0(0x95),SKILL_NAME='rabetbase';function frontmatterValue(_0x48afb3,_0x52ec0c){const _0x73d029=a263_0x5c5fb0;return _0x48afb3[_0x73d029(0x88)](new RegExp('^'+_0x52ec0c+_0x73d029(0xac),'m'))?.[0x1]?.[_0x73d029(0xa8)]()??'';}function listFiles(_0xe103a3,_0x2c2794=_0xe103a3){const _0x135bbd=a263_0x5c5fb0;return readdirSync(_0x2c2794,{'withFileTypes':!![]})[_0x135bbd(0xab)](_0x4f13e7=>{const _0x1b40ea=_0x135bbd,_0x3120d8=join(_0x2c2794,_0x4f13e7[_0x1b40ea(0xb4)]),_0x1b892d=lstatSync(_0x3120d8);if(_0x1b892d['isSymbolicLink']())throw new Error(_0x1b40ea(0xa5)+_0x3120d8);if(_0x1b892d['isDirectory']())return listFiles(_0xe103a3,_0x3120d8);if(!_0x1b892d[_0x1b40ea(0x84)]())throw new Error('Unsupported\x20Skill\x20entry:\x20'+_0x3120d8);return[relative(_0xe103a3,_0x3120d8)[_0x1b40ea(0xb2)](sep)[_0x1b40ea(0xb8)]('/')];})['sort']((_0x136413,_0x584b51)=>_0x136413<_0x584b51?-0x1:_0x136413>_0x584b51?0x1:0x0);}function digestFiles(_0x41aa22,_0x7e68b3){const _0x264687=a263_0x5c5fb0,_0x39315a=createHash(_0x264687(0x85));for(const _0x5b7b4a of _0x7e68b3){if(_0x5b7b4a[_0x264687(0xa3)]('/')||_0x5b7b4a['split']('/')[_0x264687(0x9c)]('..')||_0x5b7b4a['includes']('\x5c'))throw new Error(_0x264687(0x9e)+_0x5b7b4a);_0x39315a[_0x264687(0x97)](_0x5b7b4a),_0x39315a[_0x264687(0x97)]('\x00'),_0x39315a['update'](readFileSync(join(_0x41aa22,..._0x5b7b4a[_0x264687(0xb2)]('/')))),_0x39315a['update']('\x00');}return _0x39315a['digest'](_0x264687(0x96));}function sameFiles(_0x48a7d9,_0x135e63){const _0x166f71=a263_0x5c5fb0;return _0x48a7d9[_0x166f71(0xc0)]===_0x135e63[_0x166f71(0xc0)]&&_0x48a7d9[_0x166f71(0x8d)]((_0x512ec0,_0x5571e7)=>_0x512ec0===_0x135e63[_0x5571e7]);}function readSource(_0x1e2af6){const _0x2178ff=a263_0x5c5fb0,_0x30a57b=JSON['parse'](readFileSync(join(_0x1e2af6,_0x2178ff(0xa6)),_0x2178ff(0xa7))),_0x1d7197=JSON['parse'](readFileSync(join(_0x1e2af6,_0x2178ff(0xaa),_0x2178ff(0x91)),'utf8')),_0x280511=join(_0x1e2af6,_0x2178ff(0xaa),SKILL_NAME),_0x2c548f=frontmatterValue(readFileSync(join(_0x280511,_0x2178ff(0xa0)),_0x2178ff(0xa7)),'version'),_0x3479f6=listFiles(_0x280511);if(_0x1d7197[_0x2178ff(0x9d)]!==0x1||_0x1d7197['name']!==SKILL_NAME||!_0x30a57b[_0x2178ff(0x8c)]||_0x1d7197[_0x2178ff(0x86)]!==_0x30a57b[_0x2178ff(0x8c)]||_0x1d7197['skillVersion']!==_0x30a57b[_0x2178ff(0x8c)]||_0x2c548f!==_0x30a57b['version']||!sameFiles(_0x3479f6,_0x1d7197[_0x2178ff(0xa2)])||digestFiles(_0x280511,_0x3479f6)!==_0x1d7197[_0x2178ff(0x9b)])throw new Error('Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest');return{'packageVersion':_0x30a57b[_0x2178ff(0x8c)],'skillVersion':_0x2c548f,'root':_0x280511,'manifest':_0x1d7197};}function installedSkillPath(_0x4206bd){const _0x45afed=a263_0x5c5fb0,_0x3346f0=resolveInstalledSkill(SKILL_NAME,{'home':_0x4206bd});if(_0x3346f0[_0x45afed(0xbf)]===_0x45afed(0xbe))return{'state':_0x45afed(0xbe),'path':dirname(_0x3346f0[_0x45afed(0xb9)])};if(_0x3346f0[_0x45afed(0xbf)]===_0x45afed(0x9a))return{'state':'missing'};return{'state':_0x45afed(0x83),'reason':_0x3346f0[_0x45afed(0xb1)]};}function a263_0x5b46(_0x462f11,_0x1d4a21){_0x462f11=_0x462f11-0x83;const _0x15216c=a263_0x1521();let _0x5b4619=_0x15216c[_0x462f11];return _0x5b4619;}export function inspectInstalledBuiltinSkillVersion(_0x129892,_0x39c3c0={}){const _0x233edf=a263_0x5c5fb0,_0x26cf5e=installedSkillPath(_0x39c3c0[_0x233edf(0x89)]??homedir());if(_0x26cf5e[_0x233edf(0xbf)]===_0x233edf(0x94))return{'state':_0x233edf(0x94),'expectedVersion':_0x129892,'repairCommand':REPAIR_COMMAND};if(_0x26cf5e[_0x233edf(0xbf)]==='unverifiable')return{'state':_0x233edf(0x83),'expectedVersion':_0x129892,'reason':_0x26cf5e[_0x233edf(0xb1)],'repairCommand':REPAIR_COMMAND};try{const _0x28c455=frontmatterValue(readFileSync(join(_0x26cf5e[_0x233edf(0xb9)],_0x233edf(0xa0)),_0x233edf(0xa7)),_0x233edf(0x8c));return{'state':_0x28c455===_0x129892?'current':'version_mismatch','expectedVersion':_0x129892,'skillVersion':_0x28c455,'installedPath':_0x26cf5e[_0x233edf(0xb9)],'repairCommand':REPAIR_COMMAND};}catch(_0x27ab7e){return{'state':_0x233edf(0x83),'expectedVersion':_0x129892,'installedPath':_0x26cf5e[_0x233edf(0xb9)],'reason':_0x27ab7e instanceof Error?_0x27ab7e[_0x233edf(0xb3)]:String(_0x27ab7e),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x49c1be={}){const _0x2029fa=a263_0x5c5fb0,_0x1be3ee=_0x49c1be['packageRoot']??DEFAULT_PACKAGE_ROOT;let _0x22208c;try{_0x22208c=readSource(_0x1be3ee);}catch(_0xba0b1f){return{'state':_0x2029fa(0x83),'packageVersion':_0x2029fa(0xa1),'reason':_0xba0b1f instanceof Error?_0xba0b1f[_0x2029fa(0xb3)]:String(_0xba0b1f),'repairCommand':REPAIR_COMMAND};}const _0x24a403=installedSkillPath(_0x49c1be[_0x2029fa(0x89)]??homedir());if(_0x24a403[_0x2029fa(0xbf)]===_0x2029fa(0x94))return{'state':_0x2029fa(0x94),'packageVersion':_0x22208c[_0x2029fa(0x86)],'repairCommand':REPAIR_COMMAND};if(_0x24a403[_0x2029fa(0xbf)]===_0x2029fa(0x83))return{'state':_0x2029fa(0x83),'packageVersion':_0x22208c[_0x2029fa(0x86)],'reason':_0x24a403[_0x2029fa(0xb1)],'repairCommand':REPAIR_COMMAND};try{const _0x7260d4=frontmatterValue(readFileSync(join(_0x24a403[_0x2029fa(0xb9)],_0x2029fa(0xa0)),_0x2029fa(0xa7)),'version');if(_0x7260d4!==_0x22208c[_0x2029fa(0xbd)])return{'state':_0x2029fa(0x9f),'packageVersion':_0x22208c['packageVersion'],'skillVersion':_0x7260d4,'installedPath':_0x24a403[_0x2029fa(0xb9)],'repairCommand':REPAIR_COMMAND};const _0x49615c=listFiles(_0x24a403[_0x2029fa(0xb9)]),_0x4c0f10=digestFiles(_0x24a403[_0x2029fa(0xb9)],_0x49615c);return{'state':sameFiles(_0x49615c,_0x22208c[_0x2029fa(0x90)][_0x2029fa(0xa2)])&&_0x4c0f10===_0x22208c[_0x2029fa(0x90)][_0x2029fa(0x9b)]?_0x2029fa(0x92):_0x2029fa(0xb6),'packageVersion':_0x22208c[_0x2029fa(0x86)],'skillVersion':_0x7260d4,'installedPath':_0x24a403[_0x2029fa(0xb9)],'digest':_0x4c0f10,'repairCommand':REPAIR_COMMAND};}catch(_0x56a73b){return{'state':'unverifiable','packageVersion':_0x22208c[_0x2029fa(0x86)],'installedPath':_0x24a403['path'],'reason':_0x56a73b instanceof Error?_0x56a73b['message']:String(_0x56a73b),'repairCommand':REPAIR_COMMAND};}}function failure(_0x101a03,_0x860514,_0x29331e,_0x2f1a5c){const _0x25b75e=a263_0x5c5fb0;return{'ok':![],'code':_0x101a03,'packageVersion':_0x860514[_0x25b75e(0x86)],'skillVersion':_0x860514['skillVersion'],'installedPath':_0x2f1a5c,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x29331e instanceof Error?_0x29331e['message']:String(_0x29331e)};}export function installBuiltinSkill(_0x4fecf0={}){const _0xc02718=a263_0x5c5fb0,_0x595d74=_0x4fecf0[_0xc02718(0xbc)]??DEFAULT_PACKAGE_ROOT,_0x5b408e=_0x4fecf0[_0xc02718(0x89)]??homedir();let _0x3c4281;try{_0x3c4281=readSource(_0x595d74);}catch(_0x546ab8){return failure(_0xc02718(0xb7),{'packageVersion':_0xc02718(0xa1),'skillVersion':_0xc02718(0xa1)},_0x546ab8);}const _0x5049ef=inspectBuiltinSkill({'packageRoot':_0x595d74,'home':_0x5b408e}),_0xd99cd8=runNpxSkillsAddGlobal(_0x595d74,_0x3c4281[_0xc02718(0xaf)],{'stdio':_0x4fecf0[_0xc02718(0x99)]??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0x5b408e}});if(_0xd99cd8[_0xc02718(0xad)])return{'ok':!![],'packageVersion':_0x3c4281[_0xc02718(0x86)],'skillVersion':_0x3c4281[_0xc02718(0xbd)],'installedPath':_0x5049ef['installedPath'],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0xd99cd8['ok'])return failure(_0xc02718(0xb5),_0x3c4281,_0xd99cd8['error']??_0xc02718(0xa9)+_0xd99cd8[_0xc02718(0xa4)]);const _0x1b4e91=inspectBuiltinSkill({'packageRoot':_0x595d74,'home':_0x5b408e});if(_0x1b4e91[_0xc02718(0xbf)]!==_0xc02718(0x92))return failure('VERIFY_FAILED',_0x3c4281,_0x1b4e91[_0xc02718(0xb1)]??_0xc02718(0xae)+_0x1b4e91[_0xc02718(0xbf)],_0x1b4e91[_0xc02718(0x8a)]);return{'ok':!![],'packageVersion':_0x3c4281[_0xc02718(0x86)],'skillVersion':_0x3c4281['skillVersion'],'installedPath':_0x1b4e91[_0xc02718(0x8a)],'changed':_0x5049ef[_0xc02718(0xbf)]!=='current','repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
1
- (function(_0x145466,_0x2dc335){const _0x436c0b=a264_0x18c6,_0x43dd43=_0x145466();while(!![]){try{const _0x11f80f=-parseInt(_0x436c0b(0x1d9))/0x1*(-parseInt(_0x436c0b(0x1e5))/0x2)+-parseInt(_0x436c0b(0x1d8))/0x3*(parseInt(_0x436c0b(0x1d6))/0x4)+-parseInt(_0x436c0b(0x1df))/0x5*(parseInt(_0x436c0b(0x1e8))/0x6)+parseInt(_0x436c0b(0x1eb))/0x7+-parseInt(_0x436c0b(0x1e9))/0x8+parseInt(_0x436c0b(0x1f3))/0x9*(-parseInt(_0x436c0b(0x1db))/0xa)+parseInt(_0x436c0b(0x1ec))/0xb*(parseInt(_0x436c0b(0x1ef))/0xc);if(_0x11f80f===_0x2dc335)break;else _0x43dd43['push'](_0x43dd43['shift']());}catch(_0x3c29c5){_0x43dd43['push'](_0x43dd43['shift']());}}}(a264_0x266d,0xe6d6e));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';function a264_0x266d(){const _0x367193=['Error:\x20Unsupported\x20command:\x20','add','12iheuUi','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','toLowerCase','exit','18UDmiCQ','skill','(empty)','Unsupported\x20command:\x20','4540392MwpQpd','\x0aAvailable\x20commands:','3hvNvwr','7SpkkMA','from','3615280GdSrad','push','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','slice','741150crqEtO','Public\x20Open\x20Skill\x20source:\x20','enable-bff-save','log','error','-$1','47522yrFCNK','argv','includes','54LGozmG','7886024kpPogB','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','12948607FKNPBB','34181037tyCbeH'];a264_0x266d=function(){return _0x367193;};return a264_0x266d();}export function camelCaseFlagsToKebab(_0x54aa94){const _0x5d985d=a264_0x18c6,_0x2e928b=[];for(const [_0x432cac,_0x5de156]of Object['entries'](_0x54aa94)){if(_0x5de156===!![]){const _0xfe7057=_0x432cac['replace'](/([A-Z])/g,_0x5d985d(0x1e4))[_0x5d985d(0x1f1)]();_0x2e928b[_0x5d985d(0x1dc)](_0xfe7057);}}return _0x2e928b;}export function parseDynamicFlags(){const _0x28ce89=a264_0x18c6,_0x2e2411=[];for(let _0x562b42=0x3;_0x562b42<process[_0x28ce89(0x1e6)]['length'];_0x562b42++){const _0x2616f8=process[_0x28ce89(0x1e6)][_0x562b42];if(_0x2616f8&&_0x2616f8['startsWith']('--')){const _0x20c4dc=_0x2616f8[_0x28ce89(0x1de)](0x2);_0x20c4dc&&!_0x20c4dc[_0x28ce89(0x1e7)]('=')&&_0x2e2411[_0x28ce89(0x1dc)](_0x20c4dc);}}return _0x2e2411;}export function getAllProvidedFlags(_0x377890){const _0x5baec7=a264_0x18c6,_0xc414e7=camelCaseFlagsToKebab(_0x377890),_0x44a40a=parseDynamicFlags(),_0x26ad3a=new Set([..._0xc414e7,..._0x44a40a]);return Array[_0x5baec7(0x1da)](_0x26ad3a);}export function normalizeLegacyBffSaveFlags(_0x14aaa0){const _0x529022=a264_0x18c6,_0x5c9157=new Set(_0x14aaa0);return _0x5c9157['has']('dangerously-bff-save')&&_0x5c9157[_0x529022(0x1ee)](_0x529022(0x1e1)),Array[_0x529022(0x1da)](_0x5c9157);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x3e6951,_0x1ef87a,_0x214954){const _0x2df0f6=a264_0x18c6;logger['setLogPath'](process['cwd']());if(_0x214954?.['help']||_0x3e6951==='--help'){showHelp();return;}console[_0x2df0f6(0x1e3)](_0x2df0f6(0x1ed)+(_0x3e6951||_0x2df0f6(0x1d4))),console[_0x2df0f6(0x1e2)](_0x2df0f6(0x1d7)),console[_0x2df0f6(0x1e2)]('\x20\x20'+CLI_BIN_NAME+_0x2df0f6(0x1f0)),console[_0x2df0f6(0x1e2)](''),console['log'](_0x2df0f6(0x1e0)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x2df0f6(0x1e3)](_0x2df0f6(0x1d3),_0x2df0f6(0x1d5)+_0x3e6951),process[_0x2df0f6(0x1f2)](0x1);}function a264_0x18c6(_0x1adfa2,_0x2cfc07){_0x1adfa2=_0x1adfa2-0x1d3;const _0x266d24=a264_0x266d();let _0x18c60e=_0x266d24[_0x1adfa2];return _0x18c60e;}function showHelp(){const _0x80a0e1=a264_0x18c6;console[_0x80a0e1(0x1e2)]('\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x80a0e1(0x1ea)+SKILLS_INSTALL_COMMAND_LINE+_0x80a0e1(0x1dd));}
1
+ (function(_0x433651,_0x4418af){const _0x4164d5=a264_0x3109,_0x147f91=_0x433651();while(!![]){try{const _0x35303b=parseInt(_0x4164d5(0x7f))/0x1*(parseInt(_0x4164d5(0x73))/0x2)+-parseInt(_0x4164d5(0x82))/0x3+-parseInt(_0x4164d5(0x81))/0x4+parseInt(_0x4164d5(0x78))/0x5*(parseInt(_0x4164d5(0x87))/0x6)+parseInt(_0x4164d5(0x6f))/0x7*(-parseInt(_0x4164d5(0x7c))/0x8)+-parseInt(_0x4164d5(0x74))/0x9+parseInt(_0x4164d5(0x88))/0xa;if(_0x35303b===_0x4418af)break;else _0x147f91['push'](_0x147f91['shift']());}catch(_0x6dfbc8){_0x147f91['push'](_0x147f91['shift']());}}}(a264_0x30ce,0xab5c5));import{logger}from'../utils/logger.js';function a264_0x30ce(){const _0x1d550b=['2164fgKKUx','8982279yvoaHy','argv','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','slice','9235yWUISM','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','(empty)','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','1112UQVPwb','exit','dangerously-bff-save','227qgFUSw','\x0aAvailable\x20commands:','3329908eaCipW','3931398bvkXQO','push','error','startsWith','setLogPath','2148FXSmDa','37857340hfwffy','-$1','Error:\x20Unsupported\x20command:\x20','entries','log','enable-bff-save','toLowerCase','from','42791Fqzhta','--help','help','has'];a264_0x30ce=function(){return _0x1d550b;};return a264_0x30ce();}import{CLI_BIN_NAME}from'../constant/cli.js';function a264_0x3109(_0x11e1fe,_0x436469){_0x11e1fe=_0x11e1fe-0x6c;const _0x30cede=a264_0x30ce();let _0x310958=_0x30cede[_0x11e1fe];return _0x310958;}import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x160853){const _0x3474b2=a264_0x3109,_0x22353f=[];for(const [_0x22cc36,_0x31c747]of Object[_0x3474b2(0x8b)](_0x160853)){if(_0x31c747===!![]){const _0x4f8f4b=_0x22cc36['replace'](/([A-Z])/g,_0x3474b2(0x89))[_0x3474b2(0x6d)]();_0x22353f[_0x3474b2(0x83)](_0x4f8f4b);}}return _0x22353f;}export function parseDynamicFlags(){const _0x1ee08b=a264_0x3109,_0x466b84=[];for(let _0x5e3c5b=0x3;_0x5e3c5b<process[_0x1ee08b(0x75)]['length'];_0x5e3c5b++){const _0x3909a0=process[_0x1ee08b(0x75)][_0x5e3c5b];if(_0x3909a0&&_0x3909a0[_0x1ee08b(0x85)]('--')){const _0x557701=_0x3909a0[_0x1ee08b(0x77)](0x2);_0x557701&&!_0x557701['includes']('=')&&_0x466b84[_0x1ee08b(0x83)](_0x557701);}}return _0x466b84;}export function getAllProvidedFlags(_0x59dbe3){const _0x548600=camelCaseFlagsToKebab(_0x59dbe3),_0x2a64f7=parseDynamicFlags(),_0xc93070=new Set([..._0x548600,..._0x2a64f7]);return Array['from'](_0xc93070);}export function normalizeLegacyBffSaveFlags(_0x125fbb){const _0x48a274=a264_0x3109,_0x4fff37=new Set(_0x125fbb);return _0x4fff37[_0x48a274(0x72)](_0x48a274(0x7e))&&_0x4fff37['add'](_0x48a274(0x6c)),Array[_0x48a274(0x6e)](_0x4fff37);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x2bae48,_0xd92085,_0x2a0132){const _0xd95c69=a264_0x3109;logger[_0xd95c69(0x86)](process['cwd']());if(_0x2a0132?.[_0xd95c69(0x71)]||_0x2bae48===_0xd95c69(0x70)){showHelp();return;}console[_0xd95c69(0x84)](_0xd95c69(0x8a)+(_0x2bae48||_0xd95c69(0x7a))),console[_0xd95c69(0x8c)](_0xd95c69(0x80)),console[_0xd95c69(0x8c)]('\x20\x20'+CLI_BIN_NAME+_0xd95c69(0x79)),console[_0xd95c69(0x8c)](''),console[_0xd95c69(0x8c)]('Public\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0xd95c69(0x84)]('skill','Unsupported\x20command:\x20'+_0x2bae48),process[_0xd95c69(0x7d)](0x1);}function showHelp(){const _0x1f7cfd=a264_0x3109;console[_0x1f7cfd(0x8c)](_0x1f7cfd(0x76)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x1f7cfd(0x7b));}
@@ -1 +1 @@
1
- function a265_0x2faf(){const _0x3d7b31=['824NivdLP','\x22\x20install\x20state:\x20','skills@latest','stderr','8217CFKOxB','npx','207105wFaMuu','expectedSkillName','CHILD_TERMINATED','npm_config_global','\x20failed\x20target(s)','presence','add','signal','CHILD_EXIT_NONZERO','lovrabet/lovrabet-skill','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','SKILL_NOT_INSTALLED','reason','2701208QStYKT','warn','EPERM','log','stdout','EACCES','INSTALL_PARTIAL','1629YHXvHn','lovrabet/rabetbase','checked','7685450DNLhSV','12ZWUSty','ENOENT','skill','346YkFKAX','Skill\x20\x22','exit\x20','status','PERMISSION_DENIED','--skill','trim','state','NPM_CONFIG_GLOBAL','NPX_NOT_FOUND','511385yCuGpo','yes','unknown','code','pipe','remove','stdio','toString','join','2056209BHdiDE','rabetbase','message'];a265_0x2faf=function(){return _0x3d7b31;};return a265_0x2faf();}const a265_0x50a6c2=a265_0x2ef6;(function(_0x311620,_0x157a68){const _0x1b0d13=a265_0x2ef6,_0x238e55=_0x311620();while(!![]){try{const _0x253460=-parseInt(_0x1b0d13(0x1b9))/0x1*(parseInt(_0x1b0d13(0x1c0))/0x2)+parseInt(_0x1b0d13(0x19c))/0x3+-parseInt(_0x1b0d13(0x1b2))/0x4+-parseInt(_0x1b0d13(0x1a5))/0x5*(parseInt(_0x1b0d13(0x1bd))/0x6)+parseInt(_0x1b0d13(0x193))/0x7+-parseInt(_0x1b0d13(0x19f))/0x8*(parseInt(_0x1b0d13(0x1a3))/0x9)+parseInt(_0x1b0d13(0x1bc))/0xa;if(_0x253460===_0x157a68)break;else _0x238e55['push'](_0x238e55['shift']());}catch(_0x1cee3e){_0x238e55['push'](_0x238e55['shift']());}}}(a265_0x2faf,0x5ff2b));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=a265_0x50a6c2(0x1a1);export const NPX_SKILLS_SUBCOMMAND_ADD=a265_0x50a6c2(0x1ab);function a265_0x2ef6(_0x4e87f7,_0x15a771){_0x4e87f7=_0x4e87f7-0x191;const _0x2faf26=a265_0x2faf();let _0x2ef6c6=_0x2faf26[_0x4e87f7];return _0x2ef6c6;}export const NPX_SKILLS_FLAG_SKILL=a265_0x50a6c2(0x1c5);export const RABETBASE_SKILL_SOURCE=a265_0x50a6c2(0x1ba);export const LEGACY_RABETBASE_SKILL_SOURCE=a265_0x50a6c2(0x1ae);export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export const RABETBASE_GLOBAL_SKILL_NAME=a265_0x50a6c2(0x19d);export const RABETBASE_SKILL_GIT_SOURCE=a265_0x50a6c2(0x1af);export function resolveGlobalSkillName(_0x3cceeb){const _0x161a66=a265_0x50a6c2;switch(_0x3cceeb[_0x161a66(0x1c6)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x2961c4){const _0x434b72=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x2961c4&&_0x434b72['push'](NPX_SKILLS_FLAG_SKILL,_0x2961c4),_0x434b72;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a265_0x50a6c2(0x1a4),...buildNpxSkillsAddArgv()][a265_0x50a6c2(0x19b)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a265_0x50a6c2(0x1a4),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a265_0x50a6c2(0x19b)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x31ce71,_0x124594,_0x2976dd){return{'ok':![],'status':_0x124594,'code':_0x31ce71,'error':'['+_0x31ce71+']\x20'+_0x2976dd};}function spawnOptions(_0x42261a,_0x61195b){const _0x20b3ab=a265_0x50a6c2,_0x5bedaa={...process.env};return delete _0x5bedaa[_0x20b3ab(0x1a8)],delete _0x5bedaa[_0x20b3ab(0x191)],{'cwd':_0x42261a,'stdio':_0x61195b,'env':_0x5bedaa,'shell':![],..._0x61195b===_0x20b3ab(0x197)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0xee5d07,_0x3cddad,_0x503e53,_0x5b9b0e){const _0xf50411=a265_0x50a6c2,_0x533402=[_0xee5d07[_0xf50411(0x1b6)]?_0xee5d07[_0xf50411(0x1b6)][_0xf50411(0x19a)]():'',_0xee5d07[_0xf50411(0x1a2)]?_0xee5d07['stderr'][_0xf50411(0x19a)]():'']['filter'](Boolean)[_0xf50411(0x19b)]('\x0a')['trim']();_0x5b9b0e!==_0xf50411(0x197)&&_0x533402&&console[_0xf50411(0x1b5)](_0x533402);if(_0xee5d07['error']){const _0x24d968=_0xee5d07['error'],_0x434271=_0x24d968['code']===_0xf50411(0x1be)?_0xf50411(0x192):_0x24d968['code']===_0xf50411(0x1b4)||_0x24d968[_0xf50411(0x196)]===_0xf50411(0x1b7)?_0xf50411(0x1c4):'SPAWN_FAILED';return failure(_0x434271,_0xee5d07[_0xf50411(0x1c3)],_0x24d968[_0xf50411(0x19e)]);}if(_0xee5d07[_0xf50411(0x1ac)])return failure(_0xf50411(0x1a7),_0xee5d07[_0xf50411(0x1c3)],'npx\x20terminated\x20by\x20signal\x20'+_0xee5d07[_0xf50411(0x1ac)]);if(_0xee5d07[_0xf50411(0x1c3)]!==0x0)return failure(_0xf50411(0x1ad),_0xee5d07[_0xf50411(0x1c3)],_0x533402||_0xf50411(0x1c2)+(_0xee5d07[_0xf50411(0x1c3)]??_0xf50411(0x195)));const _0x336ed5=_0x3cddad?resolveInstalledSkill(_0x3cddad,_0x503e53):undefined,_0x24bf12=_0x533402['match'](/Failed to install\s+(\d+)/i);if(_0x24bf12&&Number(_0x24bf12[0x1])>0x0){const _0x2b7f35='Installer\x20reported\x20'+_0x24bf12[0x1]+_0xf50411(0x1a9)+(_0x533402?':\x0a'+_0x533402:'');if(_0x336ed5?.[_0xf50411(0x1c7)]==='present')return console[_0xf50411(0x1b3)]('!\x20'+_0x2b7f35),{'ok':!![],'status':0x0};return failure(_0xf50411(0x1b8),0x0,_0x2b7f35);}if(_0x336ed5){if(_0x336ed5[_0xf50411(0x1c7)]==='absent')return failure(_0xf50411(0x1b0),0x0,_0xf50411(0x1c1)+_0x3cddad+'\x22\x20not\x20found\x20after\x20install\x20(checked\x20'+_0x336ed5[_0xf50411(0x1bb)][_0xf50411(0x19b)](',\x20')+')');_0x336ed5['state']==='unverifiable'&&console[_0xf50411(0x1b3)]('!\x20Could\x20not\x20verify\x20\x22'+_0x3cddad+_0xf50411(0x1a0)+_0x336ed5[_0xf50411(0x1b1)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x1c9895,_0x2a9a11){const _0x3b5cbc=a265_0x50a6c2;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4c63d0=_0x2a9a11?.['stdio']??'inherit',_0x3a51e6=resolveNpmBin('npx'),_0xbc8012=buildNpxSkillsAddArgv(_0x2a9a11?.[_0x3b5cbc(0x1bf)]),_0x2245bb=[_0x3b5cbc(0x1a4),..._0xbc8012][_0x3b5cbc(0x19b)]('\x20');console['log']('*\x20'+_0x2245bb);const _0x457709=spawnSync(_0x3a51e6,_0xbc8012,spawnOptions(_0x1c9895,_0x4c63d0));return normalizeSpawnResult(_0x457709,undefined,undefined,_0x4c63d0);}export function runNpxSkillsRemove(_0x868f7f,_0x12b033,_0x5b456b=LEGACY_RABETBASE_SKILL_SOURCE){const _0x82a14f=a265_0x50a6c2;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x22692e=_0x12b033?.[_0x82a14f(0x199)]??'inherit',_0x272c4f=resolveNpmBin(_0x82a14f(0x1a4)),_0x555b2f=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x82a14f(0x198),_0x5b456b,NPX_SKILLS_FLAG_SKILL,_0x12b033?.[_0x82a14f(0x1bf)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x12b033?.[_0x82a14f(0x194)]?['-y']:[]],_0x4e250a=[_0x272c4f,..._0x555b2f]['join']('\x20');console[_0x82a14f(0x1b5)]('*\x20'+_0x4e250a);const _0x1153ee=spawnSync(_0x272c4f,_0x555b2f,spawnOptions(_0x868f7f,_0x22692e));return normalizeSpawnResult(_0x1153ee,undefined,undefined,_0x22692e);}export function runNpxSkillsAddGlobal(_0x1c3435,_0x417179,_0x9f4020){const _0x2d9239=a265_0x50a6c2;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x50d45a=resolveNpmBin(_0x2d9239(0x1a4)),_0x406d8a=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x417179,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x3eda45=[_0x2d9239(0x1a4),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x417179,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console[_0x2d9239(0x1b5)]('*\x20'+_0x3eda45);const _0x2b6f11=spawnSync(_0x50d45a,_0x406d8a,spawnOptions(_0x1c3435,_0x2d9239(0x197)));return normalizeSpawnResult(_0x2b6f11,_0x9f4020?.[_0x2d9239(0x1a6)]??resolveGlobalSkillName(_0x417179),_0x9f4020?.[_0x2d9239(0x1aa)],_0x9f4020?.[_0x2d9239(0x199)]);}
1
+ const a265_0x4271e1=a265_0x19af;(function(_0x3ba24b,_0x2fb559){const _0x1b9954=a265_0x19af,_0x163207=_0x3ba24b();while(!![]){try{const _0x4eb336=parseInt(_0x1b9954(0x182))/0x1+parseInt(_0x1b9954(0x15d))/0x2*(-parseInt(_0x1b9954(0x17e))/0x3)+parseInt(_0x1b9954(0x165))/0x4*(parseInt(_0x1b9954(0x17a))/0x5)+-parseInt(_0x1b9954(0x177))/0x6+-parseInt(_0x1b9954(0x180))/0x7*(-parseInt(_0x1b9954(0x17b))/0x8)+-parseInt(_0x1b9954(0x157))/0x9+-parseInt(_0x1b9954(0x16b))/0xa*(parseInt(_0x1b9954(0x15e))/0xb);if(_0x4eb336===_0x2fb559)break;else _0x163207['push'](_0x163207['shift']());}catch(_0x2a74e2){_0x163207['push'](_0x163207['shift']());}}}(a265_0x2fcc,0x2626b));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=a265_0x4271e1(0x14e);export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL=a265_0x4271e1(0x174);export const RABETBASE_SKILL_SOURCE=a265_0x4271e1(0x162);export const LEGACY_RABETBASE_SKILL_SOURCE=a265_0x4271e1(0x173);export const DEFAULT_RABETBASE_SKILL_NAME=a265_0x4271e1(0x166);export const RABETBASE_GLOBAL_SKILL_NAME=a265_0x4271e1(0x183);export const RABETBASE_SKILL_GIT_SOURCE=a265_0x4271e1(0x14c);export function resolveGlobalSkillName(_0x11f06f){const _0x24c9b1=a265_0x4271e1;switch(_0x11f06f[_0x24c9b1(0x15c)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}function a265_0x19af(_0xf599fd,_0x4a96b9){_0xf599fd=_0xf599fd-0x14c;const _0x2fcc65=a265_0x2fcc();let _0x19af1b=_0x2fcc65[_0xf599fd];return _0x19af1b;}export function buildNpxSkillsAddArgv(_0x25d7e9){const _0x5da028=a265_0x4271e1,_0x1766c3=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x25d7e9&&_0x1766c3[_0x5da028(0x160)](NPX_SKILLS_FLAG_SKILL,_0x25d7e9),_0x1766c3;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a265_0x4271e1(0x151),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a265_0x4271e1(0x17c)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x3d8ffe,_0x7b353d,_0xaa5e6a){return{'ok':![],'status':_0x7b353d,'code':_0x3d8ffe,'error':'['+_0x3d8ffe+']\x20'+_0xaa5e6a};}function spawnOptions(_0x1b13d7,_0x55cfd7){const _0x1d5c13=a265_0x4271e1,_0x56455e={...process.env};return delete _0x56455e['npm_config_global'],delete _0x56455e[_0x1d5c13(0x152)],{'cwd':_0x1b13d7,'stdio':_0x55cfd7,'env':_0x56455e,'shell':![],..._0x55cfd7==='pipe'?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x4a506d,_0xd04ee7,_0x194b96,_0xd9ca67){const _0x5c527a=a265_0x4271e1,_0x3712d4=[_0x4a506d[_0x5c527a(0x178)]?_0x4a506d[_0x5c527a(0x178)]['toString']():'',_0x4a506d['stderr']?_0x4a506d[_0x5c527a(0x181)]['toString']():''][_0x5c527a(0x16e)](Boolean)[_0x5c527a(0x17c)]('\x0a')[_0x5c527a(0x15c)]();_0xd9ca67!==_0x5c527a(0x164)&&_0x3712d4&&console[_0x5c527a(0x15b)](_0x3712d4);if(_0x4a506d['error']){const _0x405133=_0x4a506d[_0x5c527a(0x16f)],_0x3263e1=_0x405133[_0x5c527a(0x150)]==='ENOENT'?'NPX_NOT_FOUND':_0x405133[_0x5c527a(0x150)]===_0x5c527a(0x16d)||_0x405133['code']===_0x5c527a(0x186)?_0x5c527a(0x155):_0x5c527a(0x158);return failure(_0x3263e1,_0x4a506d[_0x5c527a(0x16a)],_0x405133['message']);}if(_0x4a506d[_0x5c527a(0x153)])return failure(_0x5c527a(0x14d),_0x4a506d[_0x5c527a(0x16a)],_0x5c527a(0x154)+_0x4a506d[_0x5c527a(0x153)]);if(_0x4a506d['status']!==0x0)return failure(_0x5c527a(0x15f),_0x4a506d[_0x5c527a(0x16a)],_0x3712d4||_0x5c527a(0x17d)+(_0x4a506d['status']??_0x5c527a(0x17f)));const _0x1777d8=_0xd04ee7?resolveInstalledSkill(_0xd04ee7,_0x194b96):undefined,_0x4289b4=_0x3712d4[_0x5c527a(0x187)](/Failed to install\s+(\d+)/i);if(_0x4289b4&&Number(_0x4289b4[0x1])>0x0){const _0x735b52='Installer\x20reported\x20'+_0x4289b4[0x1]+_0x5c527a(0x159)+(_0x3712d4?':\x0a'+_0x3712d4:'');if(_0x1777d8?.[_0x5c527a(0x184)]===_0x5c527a(0x179))return console[_0x5c527a(0x175)]('!\x20'+_0x735b52),{'ok':!![],'status':0x0};return failure('INSTALL_PARTIAL',0x0,_0x735b52);}if(_0x1777d8){if(_0x1777d8[_0x5c527a(0x184)]===_0x5c527a(0x169))return failure(_0x5c527a(0x156),0x0,_0x5c527a(0x171)+_0xd04ee7+_0x5c527a(0x15a)+_0x1777d8[_0x5c527a(0x161)][_0x5c527a(0x17c)](',\x20')+')');_0x1777d8[_0x5c527a(0x184)]===_0x5c527a(0x185)&&console[_0x5c527a(0x175)](_0x5c527a(0x168)+_0xd04ee7+_0x5c527a(0x163)+_0x1777d8['reason']);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x3f9067,_0x1da6ef){const _0x3b06ad=a265_0x4271e1;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5a401a=_0x1da6ef?.['stdio']??_0x3b06ad(0x176),_0x45b1b7=resolveNpmBin(_0x3b06ad(0x151)),_0x7af881=buildNpxSkillsAddArgv(_0x1da6ef?.[_0x3b06ad(0x16c)]),_0x5d059d=[_0x3b06ad(0x151),..._0x7af881][_0x3b06ad(0x17c)]('\x20');console[_0x3b06ad(0x15b)]('*\x20'+_0x5d059d);const _0x1dae24=spawnSync(_0x45b1b7,_0x7af881,spawnOptions(_0x3f9067,_0x5a401a));return normalizeSpawnResult(_0x1dae24,undefined,undefined,_0x5a401a);}export function runNpxSkillsRemove(_0x5cd495,_0x3e9c57,_0x229155=LEGACY_RABETBASE_SKILL_SOURCE){const _0x9d48c=a265_0x4271e1;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x539bc2=_0x3e9c57?.['stdio']??'inherit',_0x26605e=resolveNpmBin(_0x9d48c(0x151)),_0x200bff=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x9d48c(0x167),_0x229155,NPX_SKILLS_FLAG_SKILL,_0x3e9c57?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x3e9c57?.[_0x9d48c(0x14f)]?['-y']:[]],_0x3a359c=[_0x26605e,..._0x200bff][_0x9d48c(0x17c)]('\x20');console['log']('*\x20'+_0x3a359c);const _0x23ecc9=spawnSync(_0x26605e,_0x200bff,spawnOptions(_0x5cd495,_0x539bc2));return normalizeSpawnResult(_0x23ecc9,undefined,undefined,_0x539bc2);}function a265_0x2fcc(){const _0x14dd02=['23930JvhEBD','skill','EPERM','filter','error','presence','Skill\x20\x22','expectedSkillName','lovrabet/lovrabet-skill','--skill','warn','inherit','621318yzjkMW','stdout','present','485HzGCOc','38328dmTuDK','join','exit\x20','3yqaJUF','unknown','315FXBHQs','stderr','230603pdSaqd','rabetbase','state','unverifiable','EACCES','match','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','CHILD_TERMINATED','skills@latest','yes','code','npx','NPM_CONFIG_GLOBAL','signal','npx\x20terminated\x20by\x20signal\x20','PERMISSION_DENIED','SKILL_NOT_INSTALLED','2125692SoBhFm','SPAWN_FAILED','\x20failed\x20target(s)','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','log','trim','186236xuYkcu','583eguZBk','CHILD_EXIT_NONZERO','push','checked','lovrabet/rabetbase','\x22\x20install\x20state:\x20','pipe','11124eimGHM','Lovrabet','remove','!\x20Could\x20not\x20verify\x20\x22','absent','status'];a265_0x2fcc=function(){return _0x14dd02;};return a265_0x2fcc();}export function runNpxSkillsAddGlobal(_0x2d62fb,_0x2b64ea,_0x2a11ed){const _0x31775c=a265_0x4271e1;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5895bb=resolveNpmBin(_0x31775c(0x151)),_0x1145f4=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x2b64ea,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x33b016=[_0x31775c(0x151),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x2b64ea,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x31775c(0x17c)]('\x20');console['log']('*\x20'+_0x33b016);const _0x2427af=spawnSync(_0x5895bb,_0x1145f4,spawnOptions(_0x2d62fb,_0x31775c(0x164)));return normalizeSpawnResult(_0x2427af,_0x2a11ed?.[_0x31775c(0x172)]??resolveGlobalSkillName(_0x2b64ea),_0x2a11ed?.[_0x31775c(0x170)],_0x2a11ed?.['stdio']);}
@@ -1 +1 @@
1
- const a266_0x2adddf=a266_0x492e;(function(_0x22d02d,_0x359ff1){const _0x1f71d6=a266_0x492e,_0x199b2f=_0x22d02d();while(!![]){try{const _0x39a6ce=-parseInt(_0x1f71d6(0xcf))/0x1*(parseInt(_0x1f71d6(0xad))/0x2)+-parseInt(_0x1f71d6(0xcd))/0x3+-parseInt(_0x1f71d6(0xc6))/0x4*(-parseInt(_0x1f71d6(0xbb))/0x5)+parseInt(_0x1f71d6(0xba))/0x6*(-parseInt(_0x1f71d6(0xab))/0x7)+parseInt(_0x1f71d6(0xc8))/0x8+parseInt(_0x1f71d6(0xc7))/0x9*(-parseInt(_0x1f71d6(0xc0))/0xa)+parseInt(_0x1f71d6(0xc5))/0xb;if(_0x39a6ce===_0x359ff1)break;else _0x199b2f['push'](_0x199b2f['shift']());}catch(_0x5ddb10){_0x199b2f['push'](_0x199b2f['shift']());}}}(a266_0x2b7f,0xc6bfb));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';function a266_0x2b7f(){const _0x1de7ec=['includes','unusable','recorded','6cNKgWl','501595VIOYse','globalSkillsDirs','message','present','join','2121680aLfyGS','kind','lockFile','.agents','object','38175896gXXSyU','8aPQxjZ','18UWeblY','1531504tWniYe','map','reason','version','utf8','1792149uGDYnv','absent','184693cjUldt','skills','7723471YdISmp','.claude','10PzBAsK','\x20uses\x20unsupported\x20version\x20','unverifiable','not-recorded','\x20records\x20\x22','number','SKILL.md','.skill-lock.json','find','home'];a266_0x2b7f=function(){return _0x1de7ec;};return a266_0x2b7f();}export const SKILL_LOCK_RELATIVE_PATH=join(a266_0x2adddf(0xc3),a266_0x2adddf(0xb4));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a266_0x2adddf(0xc3),a266_0x2adddf(0xd0)),join(a266_0x2adddf(0xac),a266_0x2adddf(0xd0))];function a266_0x492e(_0x255037,_0x2cd8ae){_0x255037=_0x255037-0xab;const _0x2b7fd4=a266_0x2b7f();let _0x492ea5=_0x2b7fd4[_0x255037];return _0x492ea5;}const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0xc5a1ad,_0x390c39){const _0x33c073=a266_0x2adddf;if(!existsSync(_0xc5a1ad))return{'kind':_0x33c073(0xb0)};let _0x18240b;try{_0x18240b=JSON['parse'](readFileSync(_0xc5a1ad,_0x33c073(0xcc)));}catch(_0x2155f3){return{'kind':_0x33c073(0xb8),'reason':_0xc5a1ad+'\x20is\x20unreadable:\x20'+_0x2155f3[_0x33c073(0xbd)]};}const _0x26d907=_0x18240b;if(typeof _0x26d907?.[_0x33c073(0xcb)]!==_0x33c073(0xb2)||!SUPPORTED_LOCK_VERSIONS[_0x33c073(0xb7)](_0x26d907[_0x33c073(0xcb)]))return{'kind':_0x33c073(0xb8),'reason':_0xc5a1ad+_0x33c073(0xae)+String(_0x26d907?.[_0x33c073(0xcb)])};if(!_0x26d907[_0x33c073(0xd0)]||typeof _0x26d907['skills']!==_0x33c073(0xc4))return{'kind':_0x33c073(0xb8),'reason':_0xc5a1ad+'\x20has\x20no\x20skills\x20map'};return _0x26d907['skills'][_0x390c39]?{'kind':_0x33c073(0xb9)}:{'kind':_0x33c073(0xb0)};}export function resolveInstalledSkill(_0x540c97,_0x314544){const _0x587075=a266_0x2adddf,_0x35ee71=_0x314544?.[_0x587075(0xb6)]??homedir(),_0x5435f6=_0x314544?.[_0x587075(0xbc)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x587075(0xc9)](_0x452a1b=>join(_0x35ee71,_0x452a1b)),_0x138748=_0x314544?.[_0x587075(0xc2)]??join(_0x35ee71,SKILL_LOCK_RELATIVE_PATH),_0xc198e1=_0x5435f6[_0x587075(0xc9)](_0x31d579=>join(_0x31d579,_0x540c97,_0x587075(0xb3))),_0x205bd6=_0xc198e1[_0x587075(0xb5)](_0x294dc1=>existsSync(_0x294dc1));if(_0x205bd6)return{'state':_0x587075(0xbe),'path':_0x205bd6};const _0x5edb08=readLockLookup(_0x138748,_0x540c97);if(_0x5edb08[_0x587075(0xc1)]==='unusable')return{'state':'unverifiable','reason':_0x5edb08[_0x587075(0xca)]};if(_0x5edb08[_0x587075(0xc1)]===_0x587075(0xb9))return{'state':_0x587075(0xaf),'reason':_0x138748+_0x587075(0xb1)+_0x540c97+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0xc198e1[_0x587075(0xbf)](',\x20')+')')};return{'state':_0x587075(0xce),'checked':_0xc198e1};}
1
+ const a266_0x4a83ca=a266_0xb944;(function(_0x5476f5,_0x3cd67a){const _0x4eae03=a266_0xb944,_0x412f0e=_0x5476f5();while(!![]){try{const _0x5369f3=-parseInt(_0x4eae03(0x1b2))/0x1*(parseInt(_0x4eae03(0x1a0))/0x2)+-parseInt(_0x4eae03(0x1b0))/0x3*(parseInt(_0x4eae03(0x197))/0x4)+parseInt(_0x4eae03(0x196))/0x5*(parseInt(_0x4eae03(0x1a6))/0x6)+-parseInt(_0x4eae03(0x19f))/0x7*(parseInt(_0x4eae03(0x1a7))/0x8)+parseInt(_0x4eae03(0x1a1))/0x9*(-parseInt(_0x4eae03(0x19d))/0xa)+-parseInt(_0x4eae03(0x1ad))/0xb+parseInt(_0x4eae03(0x19a))/0xc*(parseInt(_0x4eae03(0x19e))/0xd);if(_0x5369f3===_0x3cd67a)break;else _0x412f0e['push'](_0x412f0e['shift']());}catch(_0x420c89){_0x412f0e['push'](_0x412f0e['shift']());}}}(a266_0x1adc,0x29b9a));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';function a266_0xb944(_0x23aee8,_0x26af41){_0x23aee8=_0x23aee8-0x192;const _0x1adcdf=a266_0x1adc();let _0xb944c4=_0x1adcdf[_0x23aee8];return _0xb944c4;}export const SKILL_LOCK_RELATIVE_PATH=join(a266_0x4a83ca(0x1a5),'.skill-lock.json');function a266_0x1adc(){const _0x50ea50=['skills','.agents','22062ouYtCu','8zjpBjh','kind','unusable','number','utf8','reason','1135068uhpiCd','.claude','SKILL.md','12aPgtDg','globalSkillsDirs','3UARWyh','version','join','unverifiable','includes','message','430jMYgzc','82724CRxYbD','\x20uses\x20unsupported\x20version\x20','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','5533260cFIZKD','\x20records\x20\x22','not-recorded','2590dpJlMA','13KEzpRi','562135qKowza','152038oTjyTv','3897AqHbvD','recorded','\x20is\x20unreadable:\x20'];a266_0x1adc=function(){return _0x50ea50;};return a266_0x1adc();}export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a266_0x4a83ca(0x1a5),a266_0x4a83ca(0x1a4)),join(a266_0x4a83ca(0x1ae),'skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x17aa8f,_0x56edea){const _0x17ac7a=a266_0x4a83ca;if(!existsSync(_0x17aa8f))return{'kind':'not-recorded'};let _0x1cab48;try{_0x1cab48=JSON['parse'](readFileSync(_0x17aa8f,_0x17ac7a(0x1ab)));}catch(_0x4ca1f5){return{'kind':'unusable','reason':_0x17aa8f+_0x17ac7a(0x1a3)+_0x4ca1f5[_0x17ac7a(0x195)]};}const _0x140f70=_0x1cab48;if(typeof _0x140f70?.[_0x17ac7a(0x1b3)]!==_0x17ac7a(0x1aa)||!SUPPORTED_LOCK_VERSIONS[_0x17ac7a(0x194)](_0x140f70['version']))return{'kind':_0x17ac7a(0x1a9),'reason':_0x17aa8f+_0x17ac7a(0x198)+String(_0x140f70?.[_0x17ac7a(0x1b3)])};if(!_0x140f70[_0x17ac7a(0x1a4)]||typeof _0x140f70['skills']!=='object')return{'kind':_0x17ac7a(0x1a9),'reason':_0x17aa8f+'\x20has\x20no\x20skills\x20map'};return _0x140f70['skills'][_0x56edea]?{'kind':_0x17ac7a(0x1a2)}:{'kind':_0x17ac7a(0x19c)};}export function resolveInstalledSkill(_0x14043c,_0x2f47f4){const _0x162fb0=a266_0x4a83ca,_0x3b03c7=_0x2f47f4?.['home']??homedir(),_0x336a88=_0x2f47f4?.[_0x162fb0(0x1b1)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS['map'](_0x25a675=>join(_0x3b03c7,_0x25a675)),_0x528448=_0x2f47f4?.['lockFile']??join(_0x3b03c7,SKILL_LOCK_RELATIVE_PATH),_0x190735=_0x336a88['map'](_0x2e9b7c=>join(_0x2e9b7c,_0x14043c,_0x162fb0(0x1af))),_0x3ab9b7=_0x190735['find'](_0x5bdba7=>existsSync(_0x5bdba7));if(_0x3ab9b7)return{'state':'present','path':_0x3ab9b7};const _0x3a7332=readLockLookup(_0x528448,_0x14043c);if(_0x3a7332[_0x162fb0(0x1a8)]===_0x162fb0(0x1a9))return{'state':'unverifiable','reason':_0x3a7332[_0x162fb0(0x1ac)]};if(_0x3a7332['kind']==='recorded')return{'state':_0x162fb0(0x193),'reason':_0x528448+_0x162fb0(0x19b)+_0x14043c+_0x162fb0(0x199)+('('+_0x190735[_0x162fb0(0x192)](',\x20')+')')};return{'state':'absent','checked':_0x190735};}
@@ -1 +1 @@
1
- (function(_0x582030,_0x30be50){const _0x58c4ea=a267_0x3b15,_0xbf5504=_0x582030();while(!![]){try{const _0x481adc=parseInt(_0x58c4ea(0xf3))/0x1+-parseInt(_0x58c4ea(0xf6))/0x2*(parseInt(_0x58c4ea(0xf8))/0x3)+-parseInt(_0x58c4ea(0xf1))/0x4+parseInt(_0x58c4ea(0xf0))/0x5+-parseInt(_0x58c4ea(0xeb))/0x6+parseInt(_0x58c4ea(0xee))/0x7+parseInt(_0x58c4ea(0xea))/0x8;if(_0x481adc===_0x30be50)break;else _0xbf5504['push'](_0xbf5504['shift']());}catch(_0x312c25){_0xbf5504['push'](_0xbf5504['shift']());}}}(a267_0x3733,0x63be1));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 a267_0x3b15(_0x1e6823,_0x4e09aa){_0x1e6823=_0x1e6823-0xe8;const _0x37336b=a267_0x3733();let _0x3b1588=_0x37336b[_0x1e6823];return _0x3b1588;}function a267_0x3733(){const _0x1a96f5=['message','error','5257944QDClzF','2775936XmWNvb','test','[REDACTED]','2804207VxPvsR','some','67380cPqsHL','975720gWDbSn','service','81954gdJWWs','durationMs','entries','2LIxjLI','stringify','114429EBYoFA'];a267_0x3733=function(){return _0x1a96f5;};return a267_0x3733();}function isSensitiveKey(_0xd3d49c){const _0x574655=a267_0x3b15;return SENSITIVE_PATTERNS[_0x574655(0xef)](_0x2e8905=>_0x2e8905[_0x574655(0xec)](_0xd3d49c));}function sanitizeFlags(_0x43c41a){const _0x322d15=a267_0x3b15,_0x3c649e={};for(const [_0x34b1f5,_0x4aff]of Object[_0x322d15(0xf5)](_0x43c41a)){isSensitiveKey(_0x34b1f5)?_0x3c649e[_0x34b1f5]=_0x4aff!=null&&_0x4aff!==''?_0x322d15(0xed):_0x4aff:_0x3c649e[_0x34b1f5]=_0x4aff;}return _0x3c649e;}export async function reportCommandTrace(_0x1148d6){const _0x4aa244=a267_0x3b15;try{const _0x1c3b8e=sanitizeFlags(_0x1148d6['flags']);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x1148d6[_0x4aa244(0xf2)],'command.name':_0x1148d6['command'],'command.flags':JSON[_0x4aa244(0xf7)](_0x1c3b8e),..._0x1148d6['durationMs']!=null?{'command.duration_ms':_0x1148d6[_0x4aa244(0xf4)]}:{},..._0x1148d6[_0x4aa244(0xe9)]?{'command.error':_0x1148d6[_0x4aa244(0xe9)]instanceof Error?_0x1148d6['error'][_0x4aa244(0xe8)]:String(_0x1148d6['error'])}:{}}});}catch{}}
1
+ function a267_0x38a3(){const _0x24b775=['6586881xOYyqG','1818585XLFFPp','message','durationMs','6843685oMNMXW','stringify','rabetbase.command','88162jMQLYF','8035764UdAMub','10MXiHbc','1708868SkUDAV','20275389YWvvEn','test','some','command','[REDACTED]','error','8WDyzPs','service'];a267_0x38a3=function(){return _0x24b775;};return a267_0x38a3();}(function(_0x334cf0,_0x339cd0){const _0x148e6f=a267_0x41c0,_0x40805e=_0x334cf0();while(!![]){try{const _0x6c6e2f=-parseInt(_0x148e6f(0x178))/0x1*(-parseInt(_0x148e6f(0x176))/0x2)+-parseInt(_0x148e6f(0x170))/0x3+-parseInt(_0x148e6f(0x179))/0x4+parseInt(_0x148e6f(0x173))/0x5+parseInt(_0x148e6f(0x177))/0x6+-parseInt(_0x148e6f(0x16f))/0x7*(-parseInt(_0x148e6f(0x180))/0x8)+-parseInt(_0x148e6f(0x17a))/0x9;if(_0x6c6e2f===_0x339cd0)break;else _0x40805e['push'](_0x40805e['shift']());}catch(_0x2200be){_0x40805e['push'](_0x40805e['shift']());}}}(a267_0x38a3,0xc4307));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a267_0x41c0(_0x488725,_0x55a6f6){_0x488725=_0x488725-0x16f;const _0x38a3b5=a267_0x38a3();let _0x41c05e=_0x38a3b5[_0x488725];return _0x41c05e;}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x4303f2){const _0xd93027=a267_0x41c0;return SENSITIVE_PATTERNS[_0xd93027(0x17c)](_0x1eb0bd=>_0x1eb0bd[_0xd93027(0x17b)](_0x4303f2));}function sanitizeFlags(_0x1468b7){const _0x3e22a0=a267_0x41c0,_0x7cfed4={};for(const [_0x10c5e8,_0x361527]of Object['entries'](_0x1468b7)){isSensitiveKey(_0x10c5e8)?_0x7cfed4[_0x10c5e8]=_0x361527!=null&&_0x361527!==''?_0x3e22a0(0x17e):_0x361527:_0x7cfed4[_0x10c5e8]=_0x361527;}return _0x7cfed4;}export async function reportCommandTrace(_0x436474){const _0xf0f94c=a267_0x41c0;try{const _0xf7b671=sanitizeFlags(_0x436474['flags']);await sendCliTraceLog({'spanName':_0xf0f94c(0x175),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x436474[_0xf0f94c(0x181)],'command.name':_0x436474[_0xf0f94c(0x17d)],'command.flags':JSON[_0xf0f94c(0x174)](_0xf7b671),..._0x436474[_0xf0f94c(0x172)]!=null?{'command.duration_ms':_0x436474[_0xf0f94c(0x172)]}:{},..._0x436474[_0xf0f94c(0x17f)]?{'command.error':_0x436474['error']instanceof Error?_0x436474[_0xf0f94c(0x17f)][_0xf0f94c(0x171)]:String(_0x436474['error'])}:{}}});}catch{}}