@lovrabet/rabetbase-cli 2.4.5-beta.1 → 2.4.5

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 (292) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/members-list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app-config/delete.js +1 -1
  25. package/lib/commands/app-config/get.js +1 -1
  26. package/lib/commands/app-config/index.js +1 -1
  27. package/lib/commands/app-config/list.js +1 -1
  28. package/lib/commands/app-config/set.js +1 -1
  29. package/lib/commands/app-config/shared.js +1 -1
  30. package/lib/commands/auth/index.js +1 -1
  31. package/lib/commands/bff/create.js +1 -1
  32. package/lib/commands/bff/delete.js +1 -1
  33. package/lib/commands/bff/detail.js +1 -1
  34. package/lib/commands/bff/index.js +1 -1
  35. package/lib/commands/bff/list.js +1 -1
  36. package/lib/commands/bff/pull.js +1 -1
  37. package/lib/commands/bff/push.js +1 -1
  38. package/lib/commands/bff/status.js +1 -1
  39. package/lib/commands/cli-skill/index.js +1 -1
  40. package/lib/commands/cli-update.js +1 -1
  41. package/lib/commands/codegen/index.js +1 -1
  42. package/lib/commands/codegen/sdk.js +1 -1
  43. package/lib/commands/codegen/sql.js +1 -1
  44. package/lib/commands/common/app-registry.js +1 -1
  45. package/lib/commands/common/app-selector.js +1 -1
  46. package/lib/commands/common/async-task.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -1
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/business-groups.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff-refresh-start.js +1 -1
  88. package/lib/commands/db/diff-refresh-status.js +1 -1
  89. package/lib/commands/db/diff.js +1 -1
  90. package/lib/commands/db/index.js +1 -1
  91. package/lib/commands/db/list.js +1 -1
  92. package/lib/commands/db/shared.js +1 -1
  93. package/lib/commands/db/tables.js +1 -1
  94. package/lib/commands/db/test.js +1 -1
  95. package/lib/commands/db/update.js +1 -1
  96. package/lib/commands/doctor.js +1 -1
  97. package/lib/commands/file/index.js +1 -1
  98. package/lib/commands/init/index.js +1 -1
  99. package/lib/commands/issue/index.js +1 -1
  100. package/lib/commands/issue/nudge.js +1 -1
  101. package/lib/commands/issue/report.js +1 -1
  102. package/lib/commands/issue/shared.js +1 -1
  103. package/lib/commands/kb/create.js +1 -1
  104. package/lib/commands/kb/delete.js +1 -1
  105. package/lib/commands/kb/detail.js +1 -1
  106. package/lib/commands/kb/index.js +1 -1
  107. package/lib/commands/kb/list.js +1 -1
  108. package/lib/commands/kb/shared.js +1 -1
  109. package/lib/commands/kb/update.js +1 -1
  110. package/lib/commands/logs/index.js +1 -1
  111. package/lib/commands/menu/asset-update.js +1 -1
  112. package/lib/commands/menu/delete.js +1 -1
  113. package/lib/commands/menu/external-link-create.js +1 -1
  114. package/lib/commands/menu/external-link-update.js +1 -1
  115. package/lib/commands/menu/group-create.js +1 -1
  116. package/lib/commands/menu/group-update.js +1 -1
  117. package/lib/commands/menu/index.js +1 -1
  118. package/lib/commands/menu/list.js +1 -1
  119. package/lib/commands/menu/move.js +1 -1
  120. package/lib/commands/menu/regroup-start.js +1 -1
  121. package/lib/commands/menu/rename.js +1 -1
  122. package/lib/commands/menu/shared/compare-table.js +1 -1
  123. package/lib/commands/menu/shared/delete-plan.js +1 -1
  124. package/lib/commands/menu/shared/facts.js +1 -1
  125. package/lib/commands/menu/shared/index.js +1 -1
  126. package/lib/commands/menu/shared/inquirer.js +1 -1
  127. package/lib/commands/menu/shared/local-pages.js +1 -1
  128. package/lib/commands/menu/shared/logic.js +1 -1
  129. package/lib/commands/menu/shared/mutations.js +1 -1
  130. package/lib/commands/menu/shared/service.js +1 -1
  131. package/lib/commands/menu/shared/sync-core.js +1 -1
  132. package/lib/commands/menu/shared/update-core.js +1 -1
  133. package/lib/commands/menu/shared/valid-url.js +1 -1
  134. package/lib/commands/menu/sync.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/generate-start.js +1 -1
  143. package/lib/commands/page/generate-status.js +1 -1
  144. package/lib/commands/page/index.js +1 -1
  145. package/lib/commands/page/pull.js +1 -1
  146. package/lib/commands/page/push.js +1 -1
  147. package/lib/commands/page/react/create.js +1 -1
  148. package/lib/commands/page/react/detail.js +1 -1
  149. package/lib/commands/page/react/list.js +1 -1
  150. package/lib/commands/page/react/publish.js +1 -1
  151. package/lib/commands/page/react/shared.js +1 -1
  152. package/lib/commands/page/react/syntax.js +1 -1
  153. package/lib/commands/page/react/template.js +1 -1
  154. package/lib/commands/page/react/update.js +1 -1
  155. package/lib/commands/page/relation-audit.js +1 -1
  156. package/lib/commands/page/restore.js +1 -1
  157. package/lib/commands/page/shared.js +1 -1
  158. package/lib/commands/page/standard-page-status.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/schema.js +1 -1
  206. package/lib/constant/cdn.js +1 -1
  207. package/lib/constant/cli.js +1 -1
  208. package/lib/constant/defaults.js +1 -1
  209. package/lib/constant/domain.js +1 -1
  210. package/lib/constant/env.js +1 -1
  211. package/lib/constant/output.js +1 -1
  212. package/lib/constant/paths.js +1 -1
  213. package/lib/constant/risk.js +1 -1
  214. package/lib/context/app-resolver.js +1 -1
  215. package/lib/context/auth-resolver.js +1 -1
  216. package/lib/context/config-loader.js +1 -1
  217. package/lib/context.js +1 -1
  218. package/lib/core/alias-resolver.js +1 -1
  219. package/lib/core/api-client.js +1 -1
  220. package/lib/core/bff/config.js +1 -1
  221. package/lib/core/bff/file-system.js +1 -1
  222. package/lib/core/bff/hash.js +1 -1
  223. package/lib/core/bff/lock.js +1 -1
  224. package/lib/core/bff/utils.js +1 -1
  225. package/lib/core/db-resolver.js +1 -1
  226. package/lib/core/page/file-system.js +1 -1
  227. package/lib/core/page/hash.js +1 -1
  228. package/lib/core/page/lock.js +1 -1
  229. package/lib/core/sql-index-auditor.js +1 -1
  230. package/lib/core/sql-sync/config.js +1 -1
  231. package/lib/core/sql-sync/file-system.js +1 -1
  232. package/lib/core/sql-sync/hash.js +1 -1
  233. package/lib/core/sql-sync/lock.js +1 -1
  234. package/lib/core/sql-sync/utils.js +1 -1
  235. package/lib/core/sql-validator.js +1 -1
  236. package/lib/errors.js +1 -1
  237. package/lib/framework/build-all-flags.js +1 -1
  238. package/lib/framework/error-output.js +1 -1
  239. package/lib/framework/explicit-yes.js +1 -1
  240. package/lib/framework/flags.js +1 -1
  241. package/lib/framework/help.js +1 -1
  242. package/lib/framework/index.js +1 -1
  243. package/lib/framework/output.js +1 -1
  244. package/lib/framework/response.js +1 -1
  245. package/lib/framework/runner-alias.js +1 -1
  246. package/lib/framework/runner.js +1 -1
  247. package/lib/framework/schema-export.js +1 -1
  248. package/lib/framework/types.js +1 -1
  249. package/lib/generated/build-info.d.ts +4 -4
  250. package/lib/generated/build-info.js +1 -1
  251. package/lib/help.js +1 -1
  252. package/lib/postinstall.js +1 -1
  253. package/lib/runtime/confirmation.js +1 -1
  254. package/lib/runtime/event.js +1 -1
  255. package/lib/runtime/index.js +1 -1
  256. package/lib/runtime/queue.js +1 -1
  257. package/lib/runtime/resolve.js +1 -1
  258. package/lib/skills/builtin-skill.js +1 -1
  259. package/lib/skills/main.js +1 -1
  260. package/lib/skills/npx-skills-add.js +1 -1
  261. package/lib/skills/skill-presence.js +1 -1
  262. package/lib/telemetry/cli-command-trace.js +1 -1
  263. package/lib/telemetry/cli-help-trace.js +1 -1
  264. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  265. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  266. package/lib/telemetry/send-cli-trace-log.js +1 -1
  267. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  268. package/lib/utils/ai_config.js +1 -1
  269. package/lib/utils/apply-jq-filter.js +1 -1
  270. package/lib/utils/cdn-config.js +1 -1
  271. package/lib/utils/check-sdk-version.js +1 -1
  272. package/lib/utils/cli-version-check.js +1 -1
  273. package/lib/utils/cli-version-policy.js +1 -1
  274. package/lib/utils/config.js +1 -1
  275. package/lib/utils/entity-with-id.js +1 -1
  276. package/lib/utils/file-utils.js +1 -1
  277. package/lib/utils/guides-cdn.js +1 -1
  278. package/lib/utils/http-client.js +1 -1
  279. package/lib/utils/is-non-interactive.js +1 -1
  280. package/lib/utils/logger.js +1 -1
  281. package/lib/utils/params.js +1 -1
  282. package/lib/utils/platform.js +1 -1
  283. package/lib/utils/rules-cdn.js +1 -1
  284. package/lib/utils/sleep.js +1 -1
  285. package/lib/utils/template-replacer.js +1 -1
  286. package/lib/utils/update-notice.js +1 -1
  287. package/lib/utils/version.js +1 -1
  288. package/lib/utils/with-active-cookie.js +1 -1
  289. package/lib/utils/write-cli-side-channel.js +1 -1
  290. package/package.json +1 -1
  291. package/skills/rabetbase/SKILL.md +1 -1
  292. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x17ef2c,_0x1294bf){const _0x529780=a249_0x3377,_0x4d32e1=_0x17ef2c();while(!![]){try{const _0x4812e6=-parseInt(_0x529780(0x199))/0x1+parseInt(_0x529780(0x17c))/0x2+parseInt(_0x529780(0x185))/0x3*(parseInt(_0x529780(0x179))/0x4)+-parseInt(_0x529780(0x19f))/0x5+-parseInt(_0x529780(0x17e))/0x6+-parseInt(_0x529780(0x1aa))/0x7*(-parseInt(_0x529780(0x1ac))/0x8)+parseInt(_0x529780(0x1b1))/0x9;if(_0x4812e6===_0x1294bf)break;else _0x4d32e1['push'](_0x4d32e1['shift']());}catch(_0x560fec){_0x4d32e1['push'](_0x4d32e1['shift']());}}}(a249_0x4737,0x8e0ce));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 a249_0x461578}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';function a249_0x3377(_0x23327a,_0x22fe16){_0x23327a=_0x23327a-0x171;const _0x473701=a249_0x4737();let _0x33774a=_0x473701[_0x23327a];return _0x33774a;}function a249_0x4737(){const _0x2d9f10=['A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','pretty','validation','object','replace','selectedAppName','resolveApiDomain','confirmHighRisk','required','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','explicitAppName','risk','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','641856RXavCB','High-risk\x20operation\x20`','resolve','requiresAppCode','find','_notice','2730895xTMXjV','../core/api-client.js','defaultVerbose','Edit\x20the\x20config\x20file\x20manually','name','doctor','trim','includes','verbose','../constant/domain.js','catch','21IwNGAE','format','1429816atKASI','../constant/env.js','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','isNonInteractive','LOVRABET_APPCODE','687969FrVFbd','rawFlags','resolveCookie','Set\x20appcode\x20via\x20`','\x0a\x20\x20','value','currentApp','service','command','hint','rejectedFlags','mergedCli','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','none','pageSize','2196520iiQmkh','Current\x20resolved\x20appcode\x20is\x20\x22','hasFormat','302924xniLEO','map','554826egEcRk','execute','schema','appcode','apiDir','appCode','RABETBASE_APPCODE','6pQsvdG','⚠\x20\x20High-risk\x20operation:\x20','some','cancelled','production','riskLevel','configMissing'];a249_0x4737=function(){return _0x2d9f10;};return a249_0x4737();}import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x525256){const _0x4cf01f=a249_0x3377;return typeof _0x525256==='string'&&_0x525256[_0x4cf01f(0x1a5)]()?_0x525256['trim']():undefined;}function resolveEnvAppCode(){const _0x4efe7f=a249_0x3377,_0x21ed56=stringFlag(process.env.RABETBASE_APPCODE);if(_0x21ed56)return{'name':_0x4efe7f(0x184),'value':_0x21ed56};const _0x1a4d63=stringFlag(process.env.LOVRABET_APPCODE);if(_0x1a4d63)return{'name':_0x4efe7f(0x1b0),'value':_0x1a4d63};return undefined;}function hasExplicitAppCode(_0x51c96f,_0x70de6f){const _0x44c7a7=a249_0x3377;return!!(stringFlag(_0x51c96f[_0x44c7a7(0x181)])||stringFlag(_0x70de6f[_0x44c7a7(0x181)]));}function assertEnvAppCodeNotIgnored(_0x4f8816,_0x5b96f8,_0x372370){const _0xc03761=a249_0x3377;if(!_0x5b96f8||_0x372370||_0x4f8816===_0x5b96f8[_0xc03761(0x1b6)])return;const _0x4014b6=_0x4f8816?_0xc03761(0x17a)+_0x4f8816+'\x22.':_0xc03761(0x1ae);throw CliErrors[_0xc03761(0x18e)](_0x5b96f8[_0xc03761(0x1a3)]+'='+_0x5b96f8[_0xc03761(0x1b6)]+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x4014b6+'\x20'+(_0xc03761(0x195)+_0x5b96f8['name']+'\x22.'));}export function createPipelineEnv(_0x3703d5,_0x2dcb15,_0x2edc1c=[]){const _0x5af990=a249_0x3377;return{'rawFlags':_0x2dcb15,'args':_0x2edc1c,'resolveAppCode':()=>_0x3703d5[_0x5af990(0x183)],'resolveCookie':()=>_0x3703d5['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a249_0x461578(_0x2dcb15),'defaultFormat':_0x3703d5['format'],'defaultPageSize':_0x3703d5[_0x5af990(0x178)],'defaultVerbose':_0x3703d5[_0x5af990(0x1a7)],'apiDir':_0x3703d5[_0x5af990(0x182)],'riskLevel':_0x3703d5[_0x5af990(0x18a)],'selectedAppName':_0x3703d5[_0x5af990(0x196)],'mergedCli':{'defaultApp':_0x3703d5['defaultApp'],'currentApp':_0x3703d5[_0x5af990(0x1b7)],'appCode':_0x3703d5[_0x5af990(0x183)],'apps':_0x3703d5['apps']}};}export function createRabetbaseRunnerAdapter(_0x3cc873={}){const _0x267d78=a249_0x3377;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x3f7c56=>PIPELINE_FLAG_NAMES['has'](_0x3f7c56[_0x267d78(0x1a3)]))[_0x267d78(0x17d)](({name:_0x1dec4e,type:_0x3d965e,description:_0x44f432})=>({'name':_0x1dec4e,'type':_0x3d965e,'description':_0x44f432})),'formatOutput':_0x3cc873['formatOutput']??formatOutput,'getCommandLabel'(_0x5b2a04){const _0x5ad433=_0x267d78;return CLI_BIN_NAME+'\x20'+_0x5b2a04[_0x5ad433(0x171)]+'\x20'+_0x5b2a04[_0x5ad433(0x172)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x247403,{def:_0x50c946}){const _0x58a8eb=_0x267d78,_0x46d064=_0x247403[_0x58a8eb(0x1a6)](_0x58a8eb(0x1a2))?'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.':_0x58a8eb(0x18c)+_0x50c946[_0x58a8eb(0x197)]+'\x22\x20if\x20this\x20operation\x20is\x20intended.\x20'+'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.';return CliErrors['validation'](_0x247403+_0x58a8eb(0x1b5)+_0x46d064);}},async 'prepare'(_0x448c81,_0x5ac337,_0x257458,_0xcb08f2){const _0x51dbe0=_0x267d78,_0x1de363=_0x5ac337[_0x51dbe0(0x182)]||DEFAULT_API_DIR;resolveAliasToCode(_0x448c81,_0x257458,_0x1de363,_0xcb08f2);const _0x49129c=resolveCommandAuthMode(_0x448c81);let _0x214d87='';if(_0x49129c!==_0x51dbe0(0x177)){_0x214d87=_0x5ac337[_0x51dbe0(0x1b3)]()||'';if(!_0x214d87){if(_0x49129c===_0x51dbe0(0x194))throw CliErrors['authRequired']();}else{const {setActiveCookie:_0x5a1981}=await import(_0x51dbe0(0x1a0));_0x5a1981(_0x214d87);}}const _0x1965f=_0x5ac337['resolveAppCode']()??'';if(_0x448c81[_0x51dbe0(0x19c)]!==![]){assertEnvAppCodeNotIgnored(_0x1965f,resolveEnvAppCode(),hasExplicitAppCode(_0x257458,_0x5ac337[_0x51dbe0(0x1b2)]));if(!_0x1965f)throw CliErrors[_0x51dbe0(0x18b)](_0x51dbe0(0x1b4)+CLI_BIN_NAME+_0x51dbe0(0x176));}return{'defaults':{'booleans':{'verbose':_0x5ac337[_0x51dbe0(0x1a1)]},'numbers':{'pagesize':_0x5ac337['defaultPageSize']}},'extras':{'appCode':_0x1965f,'cookie':_0x214d87,'apiDomain':_0x5ac337[_0x51dbe0(0x192)](),'apiDir':_0x1de363,'selectedAppName':_0x5ac337[_0x51dbe0(0x191)],'mergedCli':_0x5ac337[_0x51dbe0(0x175)]}};},'confirmHighRisk':_0x3cc873[_0x267d78(0x193)]??(async({env:_0x20365a,commandLabel:_0x2c11cd})=>{const _0x217fe7=_0x267d78;if(_0x20365a[_0x217fe7(0x1af)])throw CliErrors['validation'](_0x217fe7(0x19a)+_0x2c11cd+_0x217fe7(0x198));await requireConfirmationPrompt({'lines':[_0x217fe7(0x186)+_0x2c11cd,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x340cec=>CliErrors[_0x217fe7(0x188)](_0x340cec)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x517a12=a249_0x3377,{clearActiveCookie:_0x426f0a}=await import(_0x517a12(0x1a0));_0x426f0a();}export async function finalizeRabetbaseRuntimeState(){const _0xa8d413=a249_0x3377;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x405fe9},{initEnv:_0x1dbb1c}]=await Promise['all']([import(_0xa8d413(0x1a8)),import(_0xa8d413(0x1ad))]);_0x405fe9(),_0x1dbb1c(_0xa8d413(0x189));}}export async function runCommand(_0x566792,_0x53db31,_0x3720fc=terminalRunnerAdapter){assertRejectedFlags(_0x566792,_0x53db31['rawFlags']),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x566792)?withUpdateNotice(_0x566792):_0x566792,_0x53db31,_0x3720fc);}function assertRejectedFlags(_0x407ce5,_0x3ec7e5){const _0x3a3f0b=a249_0x3377;for(const _0x140af6 of _0x407ce5[_0x3a3f0b(0x174)]??[]){const _0x21018a=GLOBAL_FLAGS[_0x3a3f0b(0x19d)](_0x30b8b5=>_0x30b8b5[_0x3a3f0b(0x1a3)]===_0x140af6[_0x3a3f0b(0x1a3)]),_0x3d1bd8=new Set([_0x140af6['name'],toCamelCase(_0x140af6[_0x3a3f0b(0x1a3)]),_0x21018a?.['meowKey']]),_0x3b679f=[..._0x3d1bd8][_0x3a3f0b(0x187)](_0x4815c6=>{if(!_0x4815c6)return![];const _0x3cab4f=_0x3ec7e5[_0x4815c6];return _0x3cab4f!==undefined&&_0x3cab4f!==null&&_0x3cab4f!==![];});if(_0x3b679f)throw CliErrors[_0x3a3f0b(0x18e)](_0x140af6['message'],_0x140af6[_0x3a3f0b(0x173)]);}}function toCamelCase(_0x5a3c5b){const _0x333e00=a249_0x3377;return _0x5a3c5b[_0x333e00(0x190)](/-([a-z])/g,(_0x581d6d,_0x4c577e)=>_0x4c577e['toUpperCase']());}function shouldAttachUpdateNotice(_0x5bfd8a){const _0x26036d=a249_0x3377;if(_0x5bfd8a[_0x26036d(0x17b)]===![])return![];return!['update',_0x26036d(0x180),_0x26036d(0x1a4)][_0x26036d(0x1a6)](_0x5bfd8a[_0x26036d(0x171)]);}function withUpdateNotice(_0x2e72fa){return{..._0x2e72fa,async 'execute'(_0x105cb3){const _0x22d6ce=a249_0x3377,_0x531d21=shouldResolveUpdateNotice(_0x105cb3)?resolveLatestUpdateNotice()[_0x22d6ce(0x1a9)](()=>null):Promise[_0x22d6ce(0x19b)](null),_0x4da091=await _0x2e72fa[_0x22d6ce(0x17f)](_0x105cb3);return attachUpdateNotice(_0x4da091,await _0x531d21);}};}function shouldResolveUpdateNotice(_0x345c22){const _0x34e0d=a249_0x3377;return _0x345c22[_0x34e0d(0x1ab)]===_0x34e0d(0x18d)&&!_0x345c22['nonInteractive'];}function attachUpdateNotice(_0x4c305c,_0x4926b2){const _0x366419=a249_0x3377;if(!_0x4926b2||!_0x4c305c||typeof _0x4c305c!==_0x366419(0x18f))return _0x4c305c;const _0x5a0d31=_0x4c305c,_0x4b7e99=typeof _0x5a0d31[_0x366419(0x19e)]==='object'&&_0x5a0d31[_0x366419(0x19e)]!==null?_0x5a0d31['_notice']:{};return{..._0x5a0d31,'_notice':{..._0x4b7e99,'update':_0x4926b2}};}
1
+ (function(_0x3e78ee,_0x1001a8){const _0x408afc=a249_0x18fd,_0x5f5b2c=_0x3e78ee();while(!![]){try{const _0x4f2bc6=-parseInt(_0x408afc(0xb4))/0x1+parseInt(_0x408afc(0xea))/0x2*(-parseInt(_0x408afc(0xb1))/0x3)+parseInt(_0x408afc(0xaf))/0x4*(parseInt(_0x408afc(0xd0))/0x5)+parseInt(_0x408afc(0xd4))/0x6*(-parseInt(_0x408afc(0xc2))/0x7)+-parseInt(_0x408afc(0xd7))/0x8*(parseInt(_0x408afc(0xa5))/0x9)+parseInt(_0x408afc(0xe0))/0xa+parseInt(_0x408afc(0xc9))/0xb*(parseInt(_0x408afc(0xba))/0xc);if(_0x4f2bc6===_0x1001a8)break;else _0x5f5b2c['push'](_0x5f5b2c['shift']());}catch(_0xdcc0d8){_0x5f5b2c['push'](_0x5f5b2c['shift']());}}}(a249_0x5096,0x209a3));function a249_0x18fd(_0x37b608,_0xc0d17e){_0x37b608=_0x37b608-0xa1;const _0x50960b=a249_0x5096();let _0x18fd05=_0x50960b[_0x37b608];return _0x18fd05;}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 a249_0x122218}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x20dd86){const _0x4a4e8f=a249_0x18fd;return typeof _0x20dd86===_0x4a4e8f(0xa8)&&_0x20dd86[_0x4a4e8f(0xa9)]()?_0x20dd86[_0x4a4e8f(0xa9)]():undefined;}function resolveEnvAppCode(){const _0x2463f3=a249_0x18fd,_0x534a86=stringFlag(process.env.RABETBASE_APPCODE);if(_0x534a86)return{'name':_0x2463f3(0xa2),'value':_0x534a86};const _0x57e706=stringFlag(process.env.LOVRABET_APPCODE);if(_0x57e706)return{'name':'LOVRABET_APPCODE','value':_0x57e706};return undefined;}function hasExplicitAppCode(_0x137ae9,_0x41cb25){const _0x155c45=a249_0x18fd;return!!(stringFlag(_0x137ae9['appcode'])||stringFlag(_0x41cb25[_0x155c45(0xe3)]));}function assertEnvAppCodeNotIgnored(_0x5d82a7,_0x5cb25e,_0x4cbc59){const _0x337cdc=a249_0x18fd;if(!_0x5cb25e||_0x4cbc59||_0x5d82a7===_0x5cb25e[_0x337cdc(0xb8)])return;const _0x4ae174=_0x5d82a7?_0x337cdc(0xcf)+_0x5d82a7+'\x22.':_0x337cdc(0xe2);throw CliErrors[_0x337cdc(0xe7)](_0x5cb25e[_0x337cdc(0xcd)]+'='+_0x5cb25e[_0x337cdc(0xb8)]+_0x337cdc(0xa1)+_0x4ae174+'\x20'+(_0x337cdc(0xce)+_0x5cb25e[_0x337cdc(0xcd)]+'\x22.'));}export function createPipelineEnv(_0x1d1a17,_0x2ac139,_0x1e9d63=[]){const _0x1c9fbb=a249_0x18fd;return{'rawFlags':_0x2ac139,'args':_0x1e9d63,'resolveAppCode':()=>_0x1d1a17[_0x1c9fbb(0xb7)],'resolveCookie':()=>_0x1d1a17['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a249_0x122218(_0x2ac139),'defaultFormat':_0x1d1a17[_0x1c9fbb(0xe5)],'defaultPageSize':_0x1d1a17[_0x1c9fbb(0xe1)],'defaultVerbose':_0x1d1a17['verbose'],'apiDir':_0x1d1a17[_0x1c9fbb(0xab)],'riskLevel':_0x1d1a17[_0x1c9fbb(0xb5)],'selectedAppName':_0x1d1a17['explicitAppName'],'mergedCli':{'defaultApp':_0x1d1a17[_0x1c9fbb(0xac)],'currentApp':_0x1d1a17['currentApp'],'appCode':_0x1d1a17[_0x1c9fbb(0xb7)],'apps':_0x1d1a17['apps']}};}export function createRabetbaseRunnerAdapter(_0x4ac4a9={}){const _0x57e960=a249_0x18fd;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x57e960(0xa7)](_0x8ad591=>PIPELINE_FLAG_NAMES[_0x57e960(0xc0)](_0x8ad591[_0x57e960(0xcd)]))['map'](({name:_0x51b673,type:_0x3d25a1,description:_0x2060d0})=>({'name':_0x51b673,'type':_0x3d25a1,'description':_0x2060d0})),'formatOutput':_0x4ac4a9[_0x57e960(0xa6)]??formatOutput,'getCommandLabel'(_0x259ba1){const _0xcf935c=_0x57e960;return CLI_BIN_NAME+'\x20'+_0x259ba1['service']+'\x20'+_0x259ba1[_0xcf935c(0xc4)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x413499,{def:_0x30b73e}){const _0x415742=_0x57e960,_0x3ff6d5=_0x413499[_0x415742(0xb6)](_0x415742(0xe4))?_0x415742(0xc6):_0x415742(0xd1)+_0x30b73e[_0x415742(0xa3)]+_0x415742(0xae)+_0x415742(0xc6);return CliErrors['validation'](_0x413499+_0x415742(0xda)+_0x3ff6d5);}},async 'prepare'(_0x57d806,_0x11e4e9,_0x33e2df,_0x122ba7){const _0x9aacf3=_0x57e960,_0x20f4a5=_0x11e4e9[_0x9aacf3(0xab)]||DEFAULT_API_DIR;resolveAliasToCode(_0x57d806,_0x33e2df,_0x20f4a5,_0x122ba7);const _0x36290a=resolveCommandAuthMode(_0x57d806);let _0x4042b5='';if(_0x36290a!=='none'){_0x4042b5=_0x11e4e9[_0x9aacf3(0xd8)]()||'';if(!_0x4042b5){if(_0x36290a==='required')throw CliErrors[_0x9aacf3(0xc5)]();}else{const {setActiveCookie:_0x3960aa}=await import(_0x9aacf3(0xdf));_0x3960aa(_0x4042b5);}}const _0x413158=_0x11e4e9[_0x9aacf3(0xaa)]()??'';if(_0x57d806['requiresAppCode']!==![]){assertEnvAppCodeNotIgnored(_0x413158,resolveEnvAppCode(),hasExplicitAppCode(_0x33e2df,_0x11e4e9['rawFlags']));if(!_0x413158)throw CliErrors[_0x9aacf3(0xad)](_0x9aacf3(0xdd)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}return{'defaults':{'booleans':{'verbose':_0x11e4e9[_0x9aacf3(0xdb)]},'numbers':{'pagesize':_0x11e4e9[_0x9aacf3(0xd6)]}},'extras':{'appCode':_0x413158,'cookie':_0x4042b5,'apiDomain':_0x11e4e9['resolveApiDomain'](),'apiDir':_0x20f4a5,'selectedAppName':_0x11e4e9[_0x9aacf3(0xca)],'mergedCli':_0x11e4e9[_0x9aacf3(0xe9)]}};},'confirmHighRisk':_0x4ac4a9[_0x57e960(0xbb)]??(async({env:_0x3cf054,commandLabel:_0x13761b})=>{const _0x24e7d5=_0x57e960;if(_0x3cf054[_0x24e7d5(0xdc)])throw CliErrors[_0x24e7d5(0xe7)](_0x24e7d5(0xc7)+_0x13761b+_0x24e7d5(0xb2));await requireConfirmationPrompt({'lines':[_0x24e7d5(0xbf)+_0x13761b,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x5d1525=>CliErrors[_0x24e7d5(0xd3)](_0x5d1525)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0xf276a6=a249_0x18fd,{clearActiveCookie:_0x372b8f}=await import(_0xf276a6(0xdf));_0x372b8f();}export async function finalizeRabetbaseRuntimeState(){const _0x1e6694=a249_0x18fd;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x5d6f4d},{initEnv:_0x3940d9}]=await Promise[_0x1e6694(0xc8)]([import(_0x1e6694(0xbe)),import(_0x1e6694(0xd9))]);_0x5d6f4d(),_0x3940d9(_0x1e6694(0xb3));}}export async function runCommand(_0xbcffbc,_0x55ebc1,_0x1266dc=terminalRunnerAdapter){const _0x46e6a3=a249_0x18fd;assertRejectedFlags(_0xbcffbc,_0x55ebc1[_0x46e6a3(0xd5)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0xbcffbc)?withUpdateNotice(_0xbcffbc):_0xbcffbc,_0x55ebc1,_0x1266dc);}function a249_0x5096(){const _0x415046=['\x0a\x20\x20','defaultVerbose','isNonInteractive','Set\x20appcode\x20via\x20`','nonInteractive','../core/api-client.js','294440lNUfMd','pageSize','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','appcode','Edit\x20the\x20config\x20file\x20manually','format','object','validation','hasFormat','mergedCli','5314uiaoLx','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','RABETBASE_APPCODE','risk','toUpperCase','9mLUbfT','formatOutput','filter','string','trim','resolveAppCode','apiDir','defaultApp','configMissing','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','670856KGMlBX','catch','57ueCteE','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','production','38945tHpTer','riskLevel','includes','appCode','value','_notice','1638012ObtFcW','confirmHighRisk','pretty','some','../constant/domain.js','⚠\x20\x20High-risk\x20operation:\x20','has','execute','105KMtFct','replace','command','authRequired','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','High-risk\x20operation\x20`','all','33ikngcD','selectedAppName','find','doctor','name','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','Current\x20resolved\x20appcode\x20is\x20\x22','5zCXVQq','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','schema','cancelled','74484jfqAmx','rawFlags','defaultPageSize','1579872QwxVTp','resolveCookie','../constant/env.js'];a249_0x5096=function(){return _0x415046;};return a249_0x5096();}function assertRejectedFlags(_0x2e3a14,_0x4cd821){const _0x3db6e3=a249_0x18fd;for(const _0x4966f9 of _0x2e3a14['rejectedFlags']??[]){const _0x191d8d=GLOBAL_FLAGS[_0x3db6e3(0xcb)](_0x1d8f69=>_0x1d8f69[_0x3db6e3(0xcd)]===_0x4966f9[_0x3db6e3(0xcd)]),_0x124fdb=new Set([_0x4966f9[_0x3db6e3(0xcd)],toCamelCase(_0x4966f9['name']),_0x191d8d?.['meowKey']]),_0x407edf=[..._0x124fdb][_0x3db6e3(0xbd)](_0xb1a045=>{if(!_0xb1a045)return![];const _0x36a28f=_0x4cd821[_0xb1a045];return _0x36a28f!==undefined&&_0x36a28f!==null&&_0x36a28f!==![];});if(_0x407edf)throw CliErrors[_0x3db6e3(0xe7)](_0x4966f9['message'],_0x4966f9['hint']);}}function toCamelCase(_0xb5f3f7){const _0x11cd3b=a249_0x18fd;return _0xb5f3f7[_0x11cd3b(0xc3)](/-([a-z])/g,(_0x87ade9,_0x4462e3)=>_0x4462e3[_0x11cd3b(0xa4)]());}function shouldAttachUpdateNotice(_0x13ad93){const _0x503737=a249_0x18fd;if(_0x13ad93[_0x503737(0xe8)]===![])return![];return!['update',_0x503737(0xd2),_0x503737(0xcc)][_0x503737(0xb6)](_0x13ad93['service']);}function withUpdateNotice(_0x14d929){return{..._0x14d929,async 'execute'(_0x90817){const _0x3d047f=a249_0x18fd,_0x1ed06c=shouldResolveUpdateNotice(_0x90817)?resolveLatestUpdateNotice()[_0x3d047f(0xb0)](()=>null):Promise['resolve'](null),_0x5c28a9=await _0x14d929[_0x3d047f(0xc1)](_0x90817);return attachUpdateNotice(_0x5c28a9,await _0x1ed06c);}};}function shouldResolveUpdateNotice(_0x1f8352){const _0x5d3e4b=a249_0x18fd;return _0x1f8352[_0x5d3e4b(0xe5)]===_0x5d3e4b(0xbc)&&!_0x1f8352[_0x5d3e4b(0xde)];}function attachUpdateNotice(_0x41666f,_0x279ea9){const _0x240df3=a249_0x18fd;if(!_0x279ea9||!_0x41666f||typeof _0x41666f!==_0x240df3(0xe6))return _0x41666f;const _0x53e119=_0x41666f,_0x4e2299=typeof _0x53e119['_notice']===_0x240df3(0xe6)&&_0x53e119[_0x240df3(0xb9)]!==null?_0x53e119['_notice']:{};return{..._0x53e119,'_notice':{..._0x4e2299,'update':_0x279ea9}};}
@@ -1 +1 @@
1
- function a250_0x3b06(){const _0xa142d3=['935037YewGto','4305zTQdlU','397974aadqnx','696569iOTbgt','../commands/registry.js','964596HJBZxt','7wkIpFI','12308240ubLdbx','1524tXERjy','139557BJFKRm','15pYlLrw','1716nXiYGD','88hGMxQi'];a250_0x3b06=function(){return _0xa142d3;};return a250_0x3b06();}(function(_0x25fcad,_0xd35250){const _0x42fc48=a250_0x1c38,_0x1707f2=_0x25fcad();while(!![]){try{const _0x2ece30=parseInt(_0x42fc48(0x186))/0x1+-parseInt(_0x42fc48(0x17e))/0x2*(-parseInt(_0x42fc48(0x184))/0x3)+-parseInt(_0x42fc48(0x17b))/0x4*(-parseInt(_0x42fc48(0x180))/0x5)+parseInt(_0x42fc48(0x185))/0x6*(-parseInt(_0x42fc48(0x17c))/0x7)+parseInt(_0x42fc48(0x182))/0x8*(-parseInt(_0x42fc48(0x183))/0x9)+parseInt(_0x42fc48(0x17d))/0xa+-parseInt(_0x42fc48(0x17f))/0xb*(parseInt(_0x42fc48(0x181))/0xc);if(_0x2ece30===_0xd35250)break;else _0x1707f2['push'](_0x1707f2['shift']());}catch(_0x154036){_0x1707f2['push'](_0x1707f2['shift']());}}}(a250_0x3b06,0xb0015));import{buildSchemaPayload as a250_0x357214}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a250_0x1c38(_0x4a51d0,_0x2ed232){_0x4a51d0=_0x4a51d0-0x17a;const _0x3b06e7=a250_0x3b06();let _0x1c38d8=_0x3b06e7[_0x4a51d0];return _0x1c38d8;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x5eae75=a250_0x1c38,{serviceRegistry:_0xbe8ee5,findDefinition:_0x784e2e}=await import(_0x5eae75(0x17a));return a250_0x357214({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0xbe8ee5,'buildAllFlags':buildAllFlags,'findDefinition':_0x784e2e});}
1
+ (function(_0x476304,_0x534fd9){const _0x53717a=a250_0x530c,_0x4091e7=_0x476304();while(!![]){try{const _0xd260ad=-parseInt(_0x53717a(0xa5))/0x1*(-parseInt(_0x53717a(0xa2))/0x2)+-parseInt(_0x53717a(0xaa))/0x3+-parseInt(_0x53717a(0xa8))/0x4+parseInt(_0x53717a(0xa6))/0x5+parseInt(_0x53717a(0xab))/0x6+-parseInt(_0x53717a(0xa7))/0x7*(-parseInt(_0x53717a(0xa9))/0x8)+parseInt(_0x53717a(0xac))/0x9*(-parseInt(_0x53717a(0xa3))/0xa);if(_0xd260ad===_0x534fd9)break;else _0x4091e7['push'](_0x4091e7['shift']());}catch(_0x5cf371){_0x4091e7['push'](_0x4091e7['shift']());}}}(a250_0x3d61,0x20973));import{buildSchemaPayload as a250_0x9d73f7}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x3f35bd=a250_0x530c,{serviceRegistry:_0x495d56,findDefinition:_0x342419}=await import(_0x3f35bd(0xa4));return a250_0x9d73f7({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x495d56,'buildAllFlags':buildAllFlags,'findDefinition':_0x342419});}function a250_0x530c(_0x9aee4e,_0x4df24){_0x9aee4e=_0x9aee4e-0xa2;const _0x3d6166=a250_0x3d61();let _0x530c2c=_0x3d6166[_0x9aee4e];return _0x530c2c;}function a250_0x3d61(){const _0x34e255=['217802XWLufp','158230dFNxZR','../commands/registry.js','1qOWIQP','565885qCpJkm','7UYlNfm','105740gybFVC','718072LlPAiX','263628mGlEIh','375294GnVDdg','72bUKDAV'];a250_0x3d61=function(){return _0x34e255;};return a250_0x3d61();}
@@ -1 +1 @@
1
- function a251_0x1808(_0x24c8a9,_0x3bd8bb){_0x24c8a9=_0x24c8a9-0xc6;var _0x25f80e=a251_0x25f8();var _0x1808e7=_0x25f80e[_0x24c8a9];return _0x1808e7;}(function(_0x3d0f8e,_0x1e2f1a){var _0x287ade=a251_0x1808,_0xd4ea85=_0x3d0f8e();while(!![]){try{var _0x4baf4f=parseInt(_0x287ade(0xc7))/0x1*(-parseInt(_0x287ade(0xcc))/0x2)+-parseInt(_0x287ade(0xc6))/0x3+-parseInt(_0x287ade(0xcb))/0x4+-parseInt(_0x287ade(0xce))/0x5+parseInt(_0x287ade(0xca))/0x6*(parseInt(_0x287ade(0xc9))/0x7)+parseInt(_0x287ade(0xc8))/0x8+parseInt(_0x287ade(0xcd))/0x9;if(_0x4baf4f===_0x1e2f1a)break;else _0xd4ea85['push'](_0xd4ea85['shift']());}catch(_0x541f85){_0xd4ea85['push'](_0xd4ea85['shift']());}}}(a251_0x25f8,0x783e8));function a251_0x25f8(){var _0x348955=['7tAeJce','4081332LpGMBP','2807232CkhYwP','70VembKt','6423345KElJZA','4457180GpwlUn','136917evTrtx','5466NYWVoQ','7430288ukrBpf'];a251_0x25f8=function(){return _0x348955;};return a251_0x25f8();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
1
+ (function(_0xb58450,_0x16fa43){var _0x2092a8=a251_0x523e,_0x28b0f8=_0xb58450();while(!![]){try{var _0x5b0cb6=parseInt(_0x2092a8(0x13c))/0x1+parseInt(_0x2092a8(0x13b))/0x2+-parseInt(_0x2092a8(0x13e))/0x3+-parseInt(_0x2092a8(0x13f))/0x4*(parseInt(_0x2092a8(0x139))/0x5)+parseInt(_0x2092a8(0x13a))/0x6+-parseInt(_0x2092a8(0x13d))/0x7+parseInt(_0x2092a8(0x138))/0x8;if(_0x5b0cb6===_0x16fa43)break;else _0x28b0f8['push'](_0x28b0f8['shift']());}catch(_0x272d6a){_0x28b0f8['push'](_0x28b0f8['shift']());}}}(a251_0xd911,0x9df46));function a251_0x523e(_0x14bd7c,_0xbe0517){_0x14bd7c=_0x14bd7c-0x138;var _0xd9113=a251_0xd911();var _0x523eda=_0xd9113[_0x14bd7c];return _0x523eda;}function a251_0xd911(){var _0x153209=['196mMqoKX','12025056VZphqV','114535bIfhyb','5608572zSBHWG','775242btjazn','310035TsjwQX','8527960OUczUF','443535lBfWFe'];a251_0xd911=function(){return _0x153209;};return a251_0xd911();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "2.4.5-beta.1";
2
- export declare const GIT_TAG = "v2.4.5-beta.1";
3
- export declare const GIT_COMMIT = "1cde729";
4
- export declare const BUILD_TIME = "2026-08-15T05:04:32.680Z";
1
+ export declare const VERSION = "2.4.5";
2
+ export declare const GIT_TAG = "v2.4.5";
3
+ export declare const GIT_COMMIT = "384c40e";
4
+ export declare const BUILD_TIME = "2026-08-15T05:10:00.841Z";
@@ -1 +1 @@
1
- function a252_0x29a1(){const _0x2d0c5a=['109110bqnDrD','618504QugmEt','439816zNSPEp','10212147FTFsZx','199956HJJbVa','126HhvbgJ','2.4.5-beta.1','95CYbdfT','4gGnaOp','v2.4.5-beta.1','1cde729','1103079qnomtM','32086VQqqBL','28epBOSO'];a252_0x29a1=function(){return _0x2d0c5a;};return a252_0x29a1();}const a252_0x273e25=a252_0x283d;function a252_0x283d(_0x286cb5,_0x56197b){_0x286cb5=_0x286cb5-0x94;const _0x29a1ad=a252_0x29a1();let _0x283ded=_0x29a1ad[_0x286cb5];return _0x283ded;}(function(_0x576e46,_0x4565c3){const _0x484567=a252_0x283d,_0x3bdb12=_0x576e46();while(!![]){try{const _0x144e85=-parseInt(_0x484567(0x97))/0x1*(-parseInt(_0x484567(0x9b))/0x2)+parseInt(_0x484567(0x9a))/0x3+parseInt(_0x484567(0x9f))/0x4+parseInt(_0x484567(0x96))/0x5*(-parseInt(_0x484567(0xa1))/0x6)+-parseInt(_0x484567(0x9c))/0x7*(parseInt(_0x484567(0x9e))/0x8)+-parseInt(_0x484567(0x94))/0x9*(parseInt(_0x484567(0x9d))/0xa)+parseInt(_0x484567(0xa0))/0xb;if(_0x144e85===_0x4565c3)break;else _0x3bdb12['push'](_0x3bdb12['shift']());}catch(_0x12954e){_0x3bdb12['push'](_0x3bdb12['shift']());}}}(a252_0x29a1,0x5b8d4));export const VERSION=a252_0x273e25(0x95);export const GIT_TAG=a252_0x273e25(0x98);export const GIT_COMMIT=a252_0x273e25(0x99);export const BUILD_TIME='2026-08-15T05:04:32.680Z';
1
+ const a252_0x169178=a252_0x120a;(function(_0x55d7a8,_0x43c7c1){const _0x429210=a252_0x120a,_0x3c29c1=_0x55d7a8();while(!![]){try{const _0x241495=parseInt(_0x429210(0x9a))/0x1*(-parseInt(_0x429210(0x97))/0x2)+parseInt(_0x429210(0x98))/0x3+parseInt(_0x429210(0x9c))/0x4+parseInt(_0x429210(0x96))/0x5*(-parseInt(_0x429210(0x9d))/0x6)+parseInt(_0x429210(0x9e))/0x7+-parseInt(_0x429210(0x99))/0x8*(parseInt(_0x429210(0x9b))/0x9)+-parseInt(_0x429210(0x9f))/0xa;if(_0x241495===_0x43c7c1)break;else _0x3c29c1['push'](_0x3c29c1['shift']());}catch(_0x26f39a){_0x3c29c1['push'](_0x3c29c1['shift']());}}}(a252_0x4f68,0xb1694));export const VERSION='2.4.5';export const GIT_TAG=a252_0x169178(0x95);export const GIT_COMMIT='384c40e';function a252_0x120a(_0x3bd943,_0x2bebc2){_0x3bd943=_0x3bd943-0x95;const _0x4f68f0=a252_0x4f68();let _0x120a01=_0x4f68f0[_0x3bd943];return _0x120a01;}function a252_0x4f68(){const _0x3b117d=['2913980cocmCi','v2.4.5','76235VHdRMe','34682Ledwhp','529881KXRmdH','5072ttKrNQ','12ffMpdu','14409PPYLzk','4932932ZNxLIn','102PrDRLO','7633773PNebhn'];a252_0x4f68=function(){return _0x3b117d;};return a252_0x4f68();}export const BUILD_TIME='2026-08-15T05:10:00.841Z';
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a253_0xdaea(){var _0x1649d4=['1292553IOqrzG','30376753oSIJNN','\x20\x20Use\x20','\x20to\x20view\x20available\x20commands.','834376RtWisl','2ocXKne','bold','\x20--help','15aLTIuN','985420MkLJZo','1493706nucXDa','272KoOMDP','378280qUMJnM','2291943rbETXp','green','50JuVqZh','log'];a253_0xdaea=function(){return _0x1649d4;};return a253_0xdaea();}function a253_0x82ef(_0x391037,_0x5840bb){_0x391037=_0x391037-0x14b;var _0xdaeade=a253_0xdaea();var _0x82efdf=_0xdaeade[_0x391037];return _0x82efdf;}(function(_0x472fc1,_0x235ff7){var _0x12e6e5=a253_0x82ef,_0x1ed067=_0x472fc1();while(!![]){try{var _0x2c2941=parseInt(_0x12e6e5(0x152))/0x1+-parseInt(_0x12e6e5(0x153))/0x2*(-parseInt(_0x12e6e5(0x15b))/0x3)+-parseInt(_0x12e6e5(0x157))/0x4*(-parseInt(_0x12e6e5(0x156))/0x5)+parseInt(_0x12e6e5(0x158))/0x6+parseInt(_0x12e6e5(0x15a))/0x7*(parseInt(_0x12e6e5(0x159))/0x8)+parseInt(_0x12e6e5(0x14e))/0x9*(-parseInt(_0x12e6e5(0x14c))/0xa)+-parseInt(_0x12e6e5(0x14f))/0xb;if(_0x2c2941===_0x235ff7)break;else _0x1ed067['push'](_0x1ed067['shift']());}catch(_0x19b0b6){_0x1ed067['push'](_0x1ed067['shift']());}}}(a253_0xdaea,0xe67fd));import a253_0x1d7eeb from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x504325=a253_0x82ef;console[_0x504325(0x14d)](),console['log'](a253_0x1d7eeb[_0x504325(0x14b)][_0x504325(0x154)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x504325(0x14d)](),console[_0x504325(0x14d)](_0x504325(0x150)+a253_0x1d7eeb['green'][_0x504325(0x154)](CLI_BIN_NAME+_0x504325(0x155))+_0x504325(0x151)),console[_0x504325(0x14d)]();}
1
+ (function(_0x16bf13,_0x427d54){var _0x36bb34=a253_0x27da,_0xe4dc36=_0x16bf13();while(!![]){try{var _0x3170c1=parseInt(_0x36bb34(0x1a5))/0x1*(parseInt(_0x36bb34(0x1a1))/0x2)+parseInt(_0x36bb34(0x1a6))/0x3+parseInt(_0x36bb34(0x199))/0x4*(-parseInt(_0x36bb34(0x1a0))/0x5)+-parseInt(_0x36bb34(0x19b))/0x6*(-parseInt(_0x36bb34(0x1a4))/0x7)+-parseInt(_0x36bb34(0x19a))/0x8+-parseInt(_0x36bb34(0x19d))/0x9*(parseInt(_0x36bb34(0x1a3))/0xa)+parseInt(_0x36bb34(0x19e))/0xb;if(_0x3170c1===_0x427d54)break;else _0xe4dc36['push'](_0xe4dc36['shift']());}catch(_0xb436c6){_0xe4dc36['push'](_0xe4dc36['shift']());}}}(a253_0xa684,0xa2c88));import a253_0x461210 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0xf612a4=a253_0x27da;console['log'](),console[_0xf612a4(0x1a2)](a253_0x461210[_0xf612a4(0x19f)][_0xf612a4(0x1a7)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0xf612a4(0x1a2)](),console[_0xf612a4(0x1a2)](_0xf612a4(0x19c)+a253_0x461210[_0xf612a4(0x19f)][_0xf612a4(0x1a7)](CLI_BIN_NAME+'\x20--help')+'\x20to\x20view\x20available\x20commands.'),console['log']();}function a253_0x27da(_0x28cc40,_0x146164){_0x28cc40=_0x28cc40-0x199;var _0xa6845f=a253_0xa684();var _0x27daff=_0xa6845f[_0x28cc40];return _0x27daff;}function a253_0xa684(){var _0x5ac6dc=['215292tHSYFV','bold','4iyzuHn','7124552yAliOG','6BAOwZu','\x20\x20Use\x20','38529UMWYNS','17565042njiafb','green','1567165Adqpnq','4KZRLol','log','1930PenhEM','4244051YyZcRe','211058weMUcW'];a253_0xa684=function(){return _0x5ac6dc;};return a253_0xa684();}
@@ -1 +1 @@
1
- (function(_0x108b5c,_0x4b7f90){const _0x4233aa=a254_0x3280,_0x322eca=_0x108b5c();while(!![]){try{const _0x6ab5b7=-parseInt(_0x4233aa(0x1ca))/0x1+parseInt(_0x4233aa(0x1b9))/0x2*(-parseInt(_0x4233aa(0x1bf))/0x3)+parseInt(_0x4233aa(0x1c3))/0x4+parseInt(_0x4233aa(0x1b5))/0x5*(parseInt(_0x4233aa(0x1c4))/0x6)+-parseInt(_0x4233aa(0x1b7))/0x7*(parseInt(_0x4233aa(0x1c8))/0x8)+parseInt(_0x4233aa(0x1b8))/0x9*(-parseInt(_0x4233aa(0x1be))/0xa)+parseInt(_0x4233aa(0x1bb))/0xb;if(_0x6ab5b7===_0x4b7f90)break;else _0x322eca['push'](_0x322eca['shift']());}catch(_0x313b89){_0x322eca['push'](_0x322eca['shift']());}}}(a254_0x5770,0x96fd0));function a254_0x5770(){const _0x1f06dc=['repairCommand','3086744IKmFvf','110892tnmozR','\x20at\x20','changed','code','8wHKGPc','skillVersion','288099UsPkhp','already\x20current','installed','installedPath','Rabetbase\x20Built-in\x20Skill\x20','110WNuAqv','SOURCE_INVALID','7943404AiZJhA','9IyFVTH','16fPNuZG','log','19377160PXwDGA','\x20via\x20skills@latest','Repair\x20with:\x20','1819390uUIsIB','268722XMUaRa','Installation\x20failed','[BUILTIN_SKILL_INSTALL_'];a254_0x5770=function(){return _0x1f06dc;};return a254_0x5770();}function a254_0x3280(_0x27cb10,_0xfd64a4){_0x27cb10=_0x27cb10-0x1b4;const _0x57709c=a254_0x5770();let _0x32802b=_0x57709c[_0x27cb10];return _0x32802b;}import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0xe0cd75={}){const _0x42e852=a254_0x3280,_0x2055c7=installBuiltinSkill(_0xe0cd75);if(_0x2055c7['ok']){const _0x324502=_0x2055c7[_0x42e852(0x1c6)]?_0x42e852(0x1cc):_0x42e852(0x1cb),_0x1e2b08=_0x2055c7[_0x42e852(0x1cd)]?_0x42e852(0x1c5)+_0x2055c7['installedPath']:_0x42e852(0x1bc);return console[_0x42e852(0x1ba)](_0x42e852(0x1b4)+_0x2055c7[_0x42e852(0x1c9)]+'\x20'+_0x324502+_0x1e2b08),_0x2055c7;}const _0xb1b077=_0x42e852(0x1c1)+(_0x2055c7[_0x42e852(0x1c7)]??'FAILED')+']\x20'+(_0x2055c7['error']??_0x42e852(0x1c0))+'.\x20'+(_0x42e852(0x1bd)+_0x2055c7[_0x42e852(0x1c2)]);if(_0x2055c7['code']===_0x42e852(0x1b6))throw new Error(_0xb1b077);return console['warn'](_0xb1b077),_0x2055c7;}
1
+ (function(_0xad09f5,_0x72e3da){const _0x4ebf7f=a254_0x1be5,_0x5cf7c4=_0xad09f5();while(!![]){try{const _0xc177ff=-parseInt(_0x4ebf7f(0x1c1))/0x1*(-parseInt(_0x4ebf7f(0x1c2))/0x2)+-parseInt(_0x4ebf7f(0x1c7))/0x3+-parseInt(_0x4ebf7f(0x1bd))/0x4*(parseInt(_0x4ebf7f(0x1b4))/0x5)+parseInt(_0x4ebf7f(0x1b7))/0x6*(parseInt(_0x4ebf7f(0x1bb))/0x7)+parseInt(_0x4ebf7f(0x1b9))/0x8*(parseInt(_0x4ebf7f(0x1b6))/0x9)+-parseInt(_0x4ebf7f(0x1bc))/0xa*(parseInt(_0x4ebf7f(0x1c6))/0xb)+parseInt(_0x4ebf7f(0x1c4))/0xc*(-parseInt(_0x4ebf7f(0x1b2))/0xd);if(_0xc177ff===_0x72e3da)break;else _0x5cf7c4['push'](_0x5cf7c4['shift']());}catch(_0x11f829){_0x5cf7c4['push'](_0x5cf7c4['shift']());}}}(a254_0x5500,0xe411a));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a254_0x1be5(_0x4c8092,_0x2a54da){_0x4c8092=_0x4c8092-0x1b2;const _0x55003c=a254_0x5500();let _0x1be5b7=_0x55003c[_0x4c8092];return _0x1be5b7;}export async function runPostinstall(_0x5ebfd4={}){const _0x47f0a5=a254_0x1be5,_0x41da4d=installBuiltinSkill(_0x5ebfd4);if(_0x41da4d['ok']){const _0x117032=_0x41da4d[_0x47f0a5(0x1c3)]?_0x47f0a5(0x1b8):_0x47f0a5(0x1c0),_0x55c096=_0x41da4d[_0x47f0a5(0x1ca)]?_0x47f0a5(0x1ba)+_0x41da4d['installedPath']:_0x47f0a5(0x1c8);return console['log']('Rabetbase\x20Built-in\x20Skill\x20'+_0x41da4d[_0x47f0a5(0x1be)]+'\x20'+_0x117032+_0x55c096),_0x41da4d;}const _0x4d224d='[BUILTIN_SKILL_INSTALL_'+(_0x41da4d['code']??_0x47f0a5(0x1b5))+']\x20'+(_0x41da4d[_0x47f0a5(0x1c9)]??_0x47f0a5(0x1cb))+'.\x20'+('Repair\x20with:\x20'+_0x41da4d[_0x47f0a5(0x1b3)]);if(_0x41da4d['code']===_0x47f0a5(0x1bf))throw new Error(_0x4d224d);return console[_0x47f0a5(0x1c5)](_0x4d224d),_0x41da4d;}function a254_0x5500(){const _0x4c0080=['skillVersion','SOURCE_INVALID','already\x20current','8faEifB','311496MkALxr','changed','68124PBWkCQ','warn','716936iuMqOW','4924035MWNZQA','\x20via\x20skills@latest','error','installedPath','Installation\x20failed','1313NtfQQg','repairCommand','4290xTWRPo','FAILED','549QhdUKa','6186yqJXAc','installed','170648KURbwY','\x20at\x20','8057BHKypb','60lBXlLR','904rvLnFK'];a254_0x5500=function(){return _0x4c0080;};return a254_0x5500();}
@@ -1 +1 @@
1
- function a255_0x5ea6(){const _0x289bfe=['risk','replace','6355602UAMUPF',';该操作可能覆盖、删除或明显影响线上运行行为。','high-risk-write','write','845970qqTzKE',';该操作可能创建或修改业务数据或本地配置。','33sbVRaf','486138ninVwg','70PPJfii','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','688820cVasfE','1605639GPatHv','374zBFOBd','8EReJty','confirmationDescription','将执行写入操作\x20','592264NuPksR','slice','1402313kPSARw','trim'];a255_0x5ea6=function(){return _0x289bfe;};return a255_0x5ea6();}(function(_0x46cef6,_0xa28265){const _0x167438=a255_0x12aa,_0x15a76b=_0x46cef6();while(!![]){try{const _0x26bd79=parseInt(_0x167438(0x165))/0x1+-parseInt(_0x167438(0x157))/0x2+parseInt(_0x167438(0x159))/0x3*(parseInt(_0x167438(0x163))/0x4)+parseInt(_0x167438(0x15b))/0x5*(parseInt(_0x167438(0x15a))/0x6)+parseInt(_0x167438(0x15e))/0x7+-parseInt(_0x167438(0x160))/0x8*(parseInt(_0x167438(0x169))/0x9)+-parseInt(_0x167438(0x15d))/0xa*(parseInt(_0x167438(0x15f))/0xb);if(_0x26bd79===_0xa28265)break;else _0x15a76b['push'](_0x15a76b['shift']());}catch(_0x5573d1){_0x15a76b['push'](_0x15a76b['shift']());}}}(a255_0x5ea6,0xe17c3));const DESCRIPTION_MAX_LENGTH=0x1f4;function a255_0x12aa(_0x295edc,_0x15f233){_0x295edc=_0x295edc-0x157;const _0x5ea6f5=a255_0x5ea6();let _0x12aad2=_0x5ea6f5[_0x295edc];return _0x12aad2;}export function buildRabetbaseConfirmationRequest(_0xbb39a1,_0xca5f79,_0x18f68a){const _0x859d60=a255_0x12aa,_0x1b5ff8=normalizeText(_0xbb39a1[_0x859d60(0x161)],DESCRIPTION_MAX_LENGTH),_0x35a5be=_0x1b5ff8||normalizeText(defaultDescription(requireWriteRisk(_0xbb39a1),_0xca5f79),DESCRIPTION_MAX_LENGTH);return{'operation':_0xca5f79,'risk':requireWriteRisk(_0xbb39a1),'description':_0x35a5be,..._0x18f68a?{'signal':_0x18f68a}:{}};}function requireWriteRisk(_0x7c6c69){const _0x372148=a255_0x12aa;if(_0x7c6c69[_0x372148(0x167)]===_0x372148(0x16c)||_0x7c6c69['risk']===_0x372148(0x16b))return _0x7c6c69[_0x372148(0x167)];throw new Error(_0x372148(0x15c));}function defaultDescription(_0x485970,_0x4cb7c6){const _0x5623a6=a255_0x12aa;if(_0x485970==='high-risk-write')return'将执行高风险写入操作\x20'+_0x4cb7c6+_0x5623a6(0x16a);return _0x5623a6(0x162)+_0x4cb7c6+_0x5623a6(0x158);}function normalizeText(_0x44af56,_0x359715){const _0x5a4d02=a255_0x12aa;if(typeof _0x44af56!=='string')return'';return _0x44af56[_0x5a4d02(0x168)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x5a4d02(0x168)](/\s+/g,'\x20')[_0x5a4d02(0x166)]()[_0x5a4d02(0x164)](0x0,_0x359715);}
1
+ function a255_0x52ce(_0x15476f,_0x584c84){_0x15476f=_0x15476f-0x12c;const _0x4f5bea=a255_0x4f5b();let _0x52ce93=_0x4f5bea[_0x15476f];return _0x52ce93;}(function(_0x20da13,_0x3ea487){const _0x240648=a255_0x52ce,_0x2b7f46=_0x20da13();while(!![]){try{const _0x257ac0=parseInt(_0x240648(0x13c))/0x1+-parseInt(_0x240648(0x136))/0x2*(parseInt(_0x240648(0x13d))/0x3)+parseInt(_0x240648(0x133))/0x4+-parseInt(_0x240648(0x140))/0x5+-parseInt(_0x240648(0x13b))/0x6+parseInt(_0x240648(0x134))/0x7*(-parseInt(_0x240648(0x130))/0x8)+parseInt(_0x240648(0x13f))/0x9*(parseInt(_0x240648(0x12e))/0xa);if(_0x257ac0===_0x3ea487)break;else _0x2b7f46['push'](_0x2b7f46['shift']());}catch(_0x5731ab){_0x2b7f46['push'](_0x2b7f46['shift']());}}}(a255_0x4f5b,0x592a7));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x33857d,_0x327fda,_0x40c105){const _0x10e181=a255_0x52ce,_0x27bee7=normalizeText(_0x33857d[_0x10e181(0x131)],DESCRIPTION_MAX_LENGTH),_0x44fbb3=_0x27bee7||normalizeText(defaultDescription(requireWriteRisk(_0x33857d),_0x327fda),DESCRIPTION_MAX_LENGTH);return{'operation':_0x327fda,'risk':requireWriteRisk(_0x33857d),'description':_0x44fbb3,..._0x40c105?{'signal':_0x40c105}:{}};}function a255_0x4f5b(){const _0x8dfd5=['confirmationDescription','trim','649664xyyMFZ','27328ZJGYXq','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','189890QYgbRf','将执行写入操作\x20','high-risk-write',';该操作可能覆盖、删除或明显影响线上运行行为。','将执行高风险写入操作\x20','1201830JTmjDL','489414xLIhFA','18WfQFlB','slice','13595463BuJWes','2891395lmFYWP','write','string','replace','10cqPRjA','risk','920wyCnPM'];a255_0x4f5b=function(){return _0x8dfd5;};return a255_0x4f5b();}function requireWriteRisk(_0x367e79){const _0x4e4251=a255_0x52ce;if(_0x367e79['risk']===_0x4e4251(0x141)||_0x367e79[_0x4e4251(0x12f)]==='high-risk-write')return _0x367e79[_0x4e4251(0x12f)];throw new Error(_0x4e4251(0x135));}function defaultDescription(_0x40889e,_0x2515bb){const _0x24f81b=a255_0x52ce;if(_0x40889e===_0x24f81b(0x138))return _0x24f81b(0x13a)+_0x2515bb+_0x24f81b(0x139);return _0x24f81b(0x137)+_0x2515bb+';该操作可能创建或修改业务数据或本地配置。';}function normalizeText(_0x385203,_0x2d2185){const _0x991220=a255_0x52ce;if(typeof _0x385203!==_0x991220(0x12c))return'';return _0x385203[_0x991220(0x12d)](/[\u0000-\u001f\u007f]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x991220(0x132)]()[_0x991220(0x13e)](0x0,_0x2d2185);}
@@ -1 +1 @@
1
- function a256_0x11c4(_0x1a30b1,_0x344821){_0x1a30b1=_0x1a30b1-0xbc;var _0xe27c65=a256_0xe27c();var _0x11c4dd=_0xe27c65[_0x1a30b1];return _0x11c4dd;}(function(_0x2a88ef,_0x3f21f5){var _0x18b393=a256_0x11c4,_0x568832=_0x2a88ef();while(!![]){try{var _0x1bc7c1=parseInt(_0x18b393(0xbd))/0x1+-parseInt(_0x18b393(0xc6))/0x2*(-parseInt(_0x18b393(0xc7))/0x3)+-parseInt(_0x18b393(0xc1))/0x4*(-parseInt(_0x18b393(0xcb))/0x5)+parseInt(_0x18b393(0xc9))/0x6+parseInt(_0x18b393(0xbc))/0x7*(parseInt(_0x18b393(0xcd))/0x8)+-parseInt(_0x18b393(0xca))/0x9+-parseInt(_0x18b393(0xc2))/0xa;if(_0x1bc7c1===_0x3f21f5)break;else _0x568832['push'](_0x568832['shift']());}catch(_0xdf497){_0x568832['push'](_0x568832['shift']());}}}(a256_0xe27c,0x2e915));export function canonicalRabetbaseOperation(_0x3fbc74){var _0x55177d=a256_0x11c4;return[_0x3fbc74[_0x55177d(0xbe)],..._0x3fbc74[_0x55177d(0xc0)][_0x55177d(0xcc)]()['split'](/\s+/)][_0x55177d(0xbf)](Boolean)['join']('.');}export function createRabetbaseWriteMetadata(_0x117d62,_0x2cbc72,_0x5dfa79,_0x50ecaa){var _0x3c8e13=a256_0x11c4;if(_0x50ecaa||_0x5dfa79['ok']!==!![]||_0x117d62[_0x3c8e13(0xc3)]!==_0x3c8e13(0xc5)&&_0x117d62[_0x3c8e13(0xc3)]!==_0x3c8e13(0xc8))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x3c8e13(0xc4),'operation':_0x2cbc72,'risk':_0x117d62[_0x3c8e13(0xc3)]}}};}function a256_0xe27c(){var _0x3e2c8d=['rabetbase.write.completed','write','286jXHImN','141UATDpp','high-risk-write','1013346TVvCeh','94698csjLla','169770qHmqkH','trim','36472BxcTSh','539CnhmRI','358016JYAzLK','service','filter','command','44WKLktq','10569020UoGxKD','risk'];a256_0xe27c=function(){return _0x3e2c8d;};return a256_0xe27c();}
1
+ (function(_0x151e1f,_0x5f2c8f){var _0x15f7f3=a256_0xe842,_0xa4cc77=_0x151e1f();while(!![]){try{var _0x522515=-parseInt(_0x15f7f3(0x146))/0x1*(-parseInt(_0x15f7f3(0x143))/0x2)+-parseInt(_0x15f7f3(0x14c))/0x3+-parseInt(_0x15f7f3(0x147))/0x4*(parseInt(_0x15f7f3(0x14a))/0x5)+-parseInt(_0x15f7f3(0x149))/0x6+parseInt(_0x15f7f3(0x142))/0x7+-parseInt(_0x15f7f3(0x144))/0x8+parseInt(_0x15f7f3(0x148))/0x9;if(_0x522515===_0x5f2c8f)break;else _0xa4cc77['push'](_0xa4cc77['shift']());}catch(_0x55c112){_0xa4cc77['push'](_0xa4cc77['shift']());}}}(a256_0x17a2,0xb417f));export function canonicalRabetbaseOperation(_0x1192b9){var _0x34ff8b=a256_0xe842;return[_0x1192b9['service'],..._0x1192b9[_0x34ff8b(0x140)][_0x34ff8b(0x13f)]()[_0x34ff8b(0x141)](/\s+/)][_0x34ff8b(0x13e)](Boolean)['join']('.');}function a256_0x17a2(){var _0x27215f=['command','split','8274462ROgMLH','2cOZuYc','5827568OlJttn','risk','1396601FbbeEg','348POxRGa','19170567VTOyUo','6010656YzFvQo','75830OsWVNN','rabetbase.write.completed','2764209pSITue','filter','trim'];a256_0x17a2=function(){return _0x27215f;};return a256_0x17a2();}function a256_0xe842(_0x508243,_0x2d5da9){_0x508243=_0x508243-0x13e;var _0x17a2ac=a256_0x17a2();var _0xe8429f=_0x17a2ac[_0x508243];return _0xe8429f;}export function createRabetbaseWriteMetadata(_0x4356d5,_0x7f0fe4,_0x22fbd2,_0xdfe96){var _0xeb1cd2=a256_0xe842;if(_0xdfe96||_0x22fbd2['ok']!==!![]||_0x4356d5['risk']!=='write'&&_0x4356d5[_0xeb1cd2(0x145)]!=='high-risk-write')return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0xeb1cd2(0x14b),'operation':_0x7f0fe4,'risk':_0x4356d5[_0xeb1cd2(0x145)]}}};}
@@ -1 +1 @@
1
- function a257_0x484e(_0x14102a,_0x161894){_0x14102a=_0x14102a-0xff;const _0x55a282=a257_0x55a2();let _0x484e40=_0x55a282[_0x14102a];return _0x484e40;}(function(_0x5d247e,_0x2230f9){const _0x1e9029=a257_0x484e,_0x57adef=_0x5d247e();while(!![]){try{const _0x816910=-parseInt(_0x1e9029(0xff))/0x1+parseInt(_0x1e9029(0x114))/0x2+-parseInt(_0x1e9029(0x10d))/0x3*(parseInt(_0x1e9029(0x101))/0x4)+parseInt(_0x1e9029(0x10e))/0x5+parseInt(_0x1e9029(0x11b))/0x6+parseInt(_0x1e9029(0x109))/0x7+parseInt(_0x1e9029(0x104))/0x8;if(_0x816910===_0x2230f9)break;else _0x57adef['push'](_0x57adef['shift']());}catch(_0x465a8b){_0x57adef['push'](_0x57adef['shift']());}}}(a257_0x55a2,0x92609));function a257_0x55a2(){const _0x5551b5=['stringify','presentation','execute','definition','2158152egTVgH','dryRun','confirmation','risk','rawFlags','data','command','13464YYLLRy','high-risk-write','reason','present','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','yes','889411KmdUZT','args','3184BCiiUN','result','signal','712NqoKKP','isNonInteractive','write','message','confirm','3572303bowQih','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','format','aborted','426YfzHJz','51330xtrKbR','riskLevel'];a257_0x55a2=function(){return _0x5551b5;};return a257_0x55a2();}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:_0x406ba6,command:_0x1e2e0e,risk:_0x8053e8,dryRun:_0x16dc42}){const _0x2b52cb=a257_0x484e;return JSON[_0x2b52cb(0x110)]({'ok':_0x406ba6['ok'],'command':_0x1e2e0e,'risk':_0x8053e8,..._0x16dc42?{'dryRun':!![]}:{},..._0x406ba6[_0x2b52cb(0x119)]!==undefined?{'data':_0x406ba6[_0x2b52cb(0x119)]}:{},..._0x406ba6[_0x2b52cb(0x107)]?{'message':_0x406ba6[_0x2b52cb(0x107)]}:{}});}};export async function invokeRabetbase(_0x44dd70,_0x1e750a){const _0x9e2d2d=a257_0x484e;throwIfAborted(_0x1e750a[_0x9e2d2d(0x103)]);const _0x33e1d6=await resolveRabetbaseInvocation(_0x44dd70),_0x15aab5=canonicalRabetbaseOperation(_0x33e1d6[_0x9e2d2d(0x113)]);return await confirmWriteBeforeQueue(_0x33e1d6[_0x9e2d2d(0x113)],_0x33e1d6[_0x9e2d2d(0x118)],_0x15aab5,_0x1e750a),runSerialized(async()=>{const _0x7cfa63=_0x9e2d2d,_0x3414d2={};try{throwIfAborted(_0x1e750a[_0x7cfa63(0x103)]);const _0x416fef=buildConfigFromFlags(_0x33e1d6[_0x7cfa63(0x118)]);await initGlobalEnvironment(_0x416fef);const _0x1b9de3=createPipelineEnv(_0x416fef,{..._0x33e1d6[_0x7cfa63(0x118)],'yes':_0x33e1d6[_0x7cfa63(0x113)]['risk']===_0x7cfa63(0x11c)?!![]:_0x33e1d6[_0x7cfa63(0x118)][_0x7cfa63(0x120)],'nonInteractive':!![]},_0x33e1d6[_0x7cfa63(0x100)]);_0x1b9de3[_0x7cfa63(0x105)]=!![],_0x1b9de3[_0x7cfa63(0x10f)]='high-risk-write';const _0x571e68=withAbortSignal(_0x33e1d6[_0x7cfa63(0x113)],_0x1e750a[_0x7cfa63(0x103)]),_0x293a51=createRabetbaseRunnerAdapter({'formatOutput'(_0x15d9b4,_0x4c9a38){const _0x304401=_0x7cfa63;_0x3414d2[_0x304401(0x102)]=_0x15d9b4,_0x3414d2['command']=_0x4c9a38[_0x304401(0x11a)],_0x3414d2['risk']=_0x4c9a38[_0x304401(0x117)],_0x3414d2[_0x304401(0x10b)]=_0x4c9a38[_0x304401(0x10b)],_0x3414d2[_0x304401(0x115)]=_0x4c9a38[_0x304401(0x115)]===!![];},async 'confirmHighRisk'(){const _0x221755=_0x7cfa63;throw new Error(_0x221755(0x11f));}});await runCommand(_0x571e68,_0x1b9de3,_0x293a51);if(!_0x3414d2[_0x7cfa63(0x102)]||!_0x3414d2['command']||!_0x3414d2[_0x7cfa63(0x117)]||!_0x3414d2[_0x7cfa63(0x10b)])throw new Error(_0x7cfa63(0x10a));const _0x5159c5=_0x3414d2['dryRun']===!![],_0x4fd82b=_0x1e750a[_0x7cfa63(0x111)]??defaultPresentation,_0xff9030={'result':_0x3414d2['result'],'command':_0x3414d2[_0x7cfa63(0x11a)],'operation':_0x15aab5,'risk':_0x3414d2[_0x7cfa63(0x117)],'format':_0x3414d2[_0x7cfa63(0x10b)],'dryRun':_0x5159c5},_0x184146=createRabetbaseWriteMetadata(_0x33e1d6[_0x7cfa63(0x113)],_0x15aab5,_0x3414d2[_0x7cfa63(0x102)],_0x5159c5);let _0x2d5807;try{_0x2d5807=await _0x4fd82b[_0x7cfa63(0x11e)](_0xff9030);}catch(_0xc3a6db){if(!_0x184146||_0x4fd82b===defaultPresentation)throw _0xc3a6db;_0x2d5807=await defaultPresentation[_0x7cfa63(0x11e)](_0xff9030);}return{'operation':_0x15aab5,'risk':_0x3414d2[_0x7cfa63(0x117)],'mode':_0x5159c5?'dry-run':_0x7cfa63(0x112),'result':_0x3414d2['result'],'output':_0x2d5807,..._0x184146?{'metadata':_0x184146}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x490dc4,_0x4202ee,_0x3788cf,_0x46209b){const _0x5c3757=a257_0x484e;if(_0x4202ee[_0x5c3757(0x115)]===!![]||_0x490dc4[_0x5c3757(0x117)]!==_0x5c3757(0x106)&&_0x490dc4[_0x5c3757(0x117)]!==_0x5c3757(0x11c))return;await _0x46209b[_0x5c3757(0x116)][_0x5c3757(0x108)](buildRabetbaseConfirmationRequest(_0x490dc4,_0x3788cf,_0x46209b[_0x5c3757(0x103)]));}function withAbortSignal(_0x23b355,_0x3239ca){return{..._0x23b355,async 'execute'(_0x8c2cd5){return throwIfAborted(_0x3239ca),_0x23b355['execute'](_0x8c2cd5);}};}function throwIfAborted(_0x5dd549){const _0x321ea3=a257_0x484e;if(_0x5dd549?.[_0x321ea3(0x10c)])throw _0x5dd549[_0x321ea3(0x11d)]instanceof Error?_0x5dd549[_0x321ea3(0x11d)]:new DOMException('Rabetbase\x20invocation\x20aborted.','AbortError');}
1
+ (function(_0x94f1a3,_0x209f64){const _0xd6e8b0=a257_0xa096,_0x21ace2=_0x94f1a3();while(!![]){try{const _0xb6068=-parseInt(_0xd6e8b0(0x10c))/0x1*(parseInt(_0xd6e8b0(0x100))/0x2)+-parseInt(_0xd6e8b0(0xf9))/0x3+parseInt(_0xd6e8b0(0xed))/0x4*(-parseInt(_0xd6e8b0(0xfc))/0x5)+-parseInt(_0xd6e8b0(0xf2))/0x6*(-parseInt(_0xd6e8b0(0xe9))/0x7)+-parseInt(_0xd6e8b0(0xf0))/0x8*(parseInt(_0xd6e8b0(0xef))/0x9)+-parseInt(_0xd6e8b0(0xfd))/0xa+parseInt(_0xd6e8b0(0xff))/0xb;if(_0xb6068===_0x209f64)break;else _0x21ace2['push'](_0x21ace2['shift']());}catch(_0x25d654){_0x21ace2['push'](_0x21ace2['shift']());}}}(a257_0x2a57,0xb3cd2));function a257_0xa096(_0x86fe12,_0x3149f1){_0x86fe12=_0x86fe12-0xe9;const _0x2a5774=a257_0x2a57();let _0xa09651=_0x2a5774[_0x86fe12];return _0xa09651;}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:_0x34f822,command:_0x28b113,risk:_0x1d75be,dryRun:_0x162e21}){const _0x334124=a257_0xa096;return JSON[_0x334124(0xf3)]({'ok':_0x34f822['ok'],'command':_0x28b113,'risk':_0x1d75be,..._0x162e21?{'dryRun':!![]}:{},..._0x34f822[_0x334124(0xfa)]!==undefined?{'data':_0x34f822[_0x334124(0xfa)]}:{},..._0x34f822['message']?{'message':_0x34f822[_0x334124(0xfe)]}:{}});}};function a257_0x2a57(){const _0x9fac19=['2795FGGSNv','13711160ywEabp','message','49409162EHFyiP','58AIRpXf','write','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','riskLevel','AbortError','signal','command','args','high-risk-write','isNonInteractive','definition','format','22254ncMaZC','rawFlags','1298178CZKUwK','execute','dry-run','aborted','6492nDoWqw','confirmation','44271arfojn','1880jFWxAX','risk','42CnshsO','stringify','dryRun','yes','result','present','confirm','2921250VDWpei','data','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.'];a257_0x2a57=function(){return _0x9fac19;};return a257_0x2a57();}export async function invokeRabetbase(_0x3563f5,_0x116d0a){const _0x6384b8=a257_0xa096;throwIfAborted(_0x116d0a[_0x6384b8(0x105)]);const _0x2f3f03=await resolveRabetbaseInvocation(_0x3563f5),_0x3c667c=canonicalRabetbaseOperation(_0x2f3f03[_0x6384b8(0x10a)]);return await confirmWriteBeforeQueue(_0x2f3f03[_0x6384b8(0x10a)],_0x2f3f03['rawFlags'],_0x3c667c,_0x116d0a),runSerialized(async()=>{const _0x38570b=_0x6384b8,_0x3098b7={};try{throwIfAborted(_0x116d0a[_0x38570b(0x105)]);const _0x32eb6f=buildConfigFromFlags(_0x2f3f03['rawFlags']);await initGlobalEnvironment(_0x32eb6f);const _0x3068c7=createPipelineEnv(_0x32eb6f,{..._0x2f3f03['rawFlags'],'yes':_0x2f3f03['definition'][_0x38570b(0xf1)]===_0x38570b(0x108)?!![]:_0x2f3f03[_0x38570b(0x10d)][_0x38570b(0xf5)],'nonInteractive':!![]},_0x2f3f03[_0x38570b(0x107)]);_0x3068c7[_0x38570b(0x109)]=!![],_0x3068c7[_0x38570b(0x103)]='high-risk-write';const _0x108978=withAbortSignal(_0x2f3f03[_0x38570b(0x10a)],_0x116d0a[_0x38570b(0x105)]),_0x13e240=createRabetbaseRunnerAdapter({'formatOutput'(_0x363001,_0x14405d){const _0xae3774=_0x38570b;_0x3098b7[_0xae3774(0xf6)]=_0x363001,_0x3098b7[_0xae3774(0x106)]=_0x14405d[_0xae3774(0x106)],_0x3098b7['risk']=_0x14405d[_0xae3774(0xf1)],_0x3098b7[_0xae3774(0x10b)]=_0x14405d[_0xae3774(0x10b)],_0x3098b7[_0xae3774(0xf4)]=_0x14405d[_0xae3774(0xf4)]===!![];},async 'confirmHighRisk'(){const _0x3c9b8d=_0x38570b;throw new Error(_0x3c9b8d(0xfb));}});await runCommand(_0x108978,_0x3068c7,_0x13e240);if(!_0x3098b7[_0x38570b(0xf6)]||!_0x3098b7['command']||!_0x3098b7[_0x38570b(0xf1)]||!_0x3098b7['format'])throw new Error(_0x38570b(0x102));const _0x276e86=_0x3098b7[_0x38570b(0xf4)]===!![],_0xb4a616=_0x116d0a['presentation']??defaultPresentation,_0x9c0e42={'result':_0x3098b7[_0x38570b(0xf6)],'command':_0x3098b7['command'],'operation':_0x3c667c,'risk':_0x3098b7[_0x38570b(0xf1)],'format':_0x3098b7[_0x38570b(0x10b)],'dryRun':_0x276e86},_0x1ff223=createRabetbaseWriteMetadata(_0x2f3f03['definition'],_0x3c667c,_0x3098b7[_0x38570b(0xf6)],_0x276e86);let _0x2f1d71;try{_0x2f1d71=await _0xb4a616[_0x38570b(0xf7)](_0x9c0e42);}catch(_0x544c0b){if(!_0x1ff223||_0xb4a616===defaultPresentation)throw _0x544c0b;_0x2f1d71=await defaultPresentation[_0x38570b(0xf7)](_0x9c0e42);}return{'operation':_0x3c667c,'risk':_0x3098b7[_0x38570b(0xf1)],'mode':_0x276e86?_0x38570b(0xeb):_0x38570b(0xea),'result':_0x3098b7[_0x38570b(0xf6)],'output':_0x2f1d71,..._0x1ff223?{'metadata':_0x1ff223}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x1ee92a,_0x4c27df,_0xe598c5,_0x479a0){const _0x22ceca=a257_0xa096;if(_0x4c27df[_0x22ceca(0xf4)]===!![]||_0x1ee92a[_0x22ceca(0xf1)]!==_0x22ceca(0x101)&&_0x1ee92a[_0x22ceca(0xf1)]!=='high-risk-write')return;await _0x479a0[_0x22ceca(0xee)][_0x22ceca(0xf8)](buildRabetbaseConfirmationRequest(_0x1ee92a,_0xe598c5,_0x479a0[_0x22ceca(0x105)]));}function withAbortSignal(_0x1e84fe,_0x23f90a){return{..._0x1e84fe,async 'execute'(_0x5261bd){return throwIfAborted(_0x23f90a),_0x1e84fe['execute'](_0x5261bd);}};}function throwIfAborted(_0x53793b){const _0x16ddda=a257_0xa096;if(_0x53793b?.[_0x16ddda(0xec)])throw _0x53793b['reason']instanceof Error?_0x53793b['reason']:new DOMException('Rabetbase\x20invocation\x20aborted.',_0x16ddda(0x104));}
@@ -1 +1 @@
1
- function a258_0x28c4(){const _0x332a08=['223983kJjtbf','525rZPgKN','11jciEeG','resolve','724MFDdJD','77623jeIHrN','62862WNmsgw','7421610GJQHYL','712vSwUEJ','15880656VMlQZE','catch','1367715eezZiZ','8xzAVaf','3462szSfEX'];a258_0x28c4=function(){return _0x332a08;};return a258_0x28c4();}const a258_0x36e939=a258_0x2007;function a258_0x2007(_0x30fd37,_0x303e52){_0x30fd37=_0x30fd37-0xaf;const _0x28c4d5=a258_0x28c4();let _0x2007dd=_0x28c4d5[_0x30fd37];return _0x2007dd;}(function(_0x5e5841,_0x5a3a7c){const _0x5ce5b2=a258_0x2007,_0x3a60a0=_0x5e5841();while(!![]){try{const _0x3f163b=parseInt(_0x5ce5b2(0xbb))/0x1*(parseInt(_0x5ce5b2(0xb6))/0x2)+parseInt(_0x5ce5b2(0xb4))/0x3*(parseInt(_0x5ce5b2(0xb5))/0x4)+-parseInt(_0x5ce5b2(0xb8))/0x5*(parseInt(_0x5ce5b2(0xaf))/0x6)+-parseInt(_0x5ce5b2(0xbc))/0x7*(parseInt(_0x5ce5b2(0xb1))/0x8)+parseInt(_0x5ce5b2(0xb7))/0x9+-parseInt(_0x5ce5b2(0xb0))/0xa*(parseInt(_0x5ce5b2(0xb9))/0xb)+parseInt(_0x5ce5b2(0xb2))/0xc;if(_0x3f163b===_0x5a3a7c)break;else _0x3a60a0['push'](_0x3a60a0['shift']());}catch(_0x122f97){_0x3a60a0['push'](_0x3a60a0['shift']());}}}(a258_0x28c4,0xa7082));let tail=Promise[a258_0x36e939(0xba)]();export async function runSerialized(_0x5d0509){const _0x23753a=a258_0x36e939,_0x5aba67=tail;let _0x4e09a8;tail=new Promise(_0x157be0=>{_0x4e09a8=_0x157be0;}),await _0x5aba67[_0x23753a(0xb3)](()=>undefined);try{return await _0x5d0509();}finally{_0x4e09a8();}}
1
+ const a258_0x2e911a=a258_0x6980;(function(_0x3e63da,_0x2a7554){const _0x1b9b91=a258_0x6980,_0x1be6fc=_0x3e63da();while(!![]){try{const _0x58591c=parseInt(_0x1b9b91(0x133))/0x1*(parseInt(_0x1b9b91(0x132))/0x2)+-parseInt(_0x1b9b91(0x134))/0x3+-parseInt(_0x1b9b91(0x135))/0x4*(parseInt(_0x1b9b91(0x12d))/0x5)+parseInt(_0x1b9b91(0x12f))/0x6+parseInt(_0x1b9b91(0x130))/0x7+parseInt(_0x1b9b91(0x131))/0x8+parseInt(_0x1b9b91(0x12c))/0x9*(-parseInt(_0x1b9b91(0x136))/0xa);if(_0x58591c===_0x2a7554)break;else _0x1be6fc['push'](_0x1be6fc['shift']());}catch(_0x33e96b){_0x1be6fc['push'](_0x1be6fc['shift']());}}}(a258_0x48ac,0x752b3));let tail=Promise[a258_0x2e911a(0x12e)]();function a258_0x6980(_0x359094,_0x389b2f){_0x359094=_0x359094-0x12c;const _0x48ac84=a258_0x48ac();let _0x698050=_0x48ac84[_0x359094];return _0x698050;}function a258_0x48ac(){const _0x303241=['3312936Qbzgbb','484ejIgPI','2507oHLQPU','1841145yxutvy','21548CXByFw','40WnLTAM','catch','1745262noBcKQ','730fEHovX','resolve','4504248xCWYcM','6190051xiWyrW'];a258_0x48ac=function(){return _0x303241;};return a258_0x48ac();}export async function runSerialized(_0x5415c8){const _0x29da73=a258_0x2e911a,_0x97a8b2=tail;let _0x1a0aef;tail=new Promise(_0x4b810d=>{_0x1a0aef=_0x4b810d;}),await _0x97a8b2[_0x29da73(0x137)](()=>undefined);try{return await _0x5415c8();}finally{_0x1a0aef();}}
@@ -1 +1 @@
1
- (function(_0x4fb680,_0x2fb050){const _0x340d6d=a259_0x518d,_0x401095=_0x4fb680();while(!![]){try{const _0x4cb344=-parseInt(_0x340d6d(0x117))/0x1+parseInt(_0x340d6d(0x125))/0x2+-parseInt(_0x340d6d(0x124))/0x3+parseInt(_0x340d6d(0x11b))/0x4*(parseInt(_0x340d6d(0x115))/0x5)+parseInt(_0x340d6d(0x119))/0x6+parseInt(_0x340d6d(0x123))/0x7+parseInt(_0x340d6d(0x116))/0x8*(parseInt(_0x340d6d(0x121))/0x9);if(_0x4cb344===_0x2fb050)break;else _0x401095['push'](_0x401095['shift']());}catch(_0x53890c){_0x401095['push'](_0x401095['shift']());}}}(a259_0x3647,0x8b507));function a259_0x518d(_0x1f1fdf,_0x447453){_0x1f1fdf=_0x1f1fdf-0x114;const _0x3647b4=a259_0x3647();let _0x518d53=_0x3647b4[_0x1f1fdf];return _0x518d53;}import a259_0x419afc from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveRabetbaseInvocation(_0x1ff698){const _0x1e9d39=a259_0x518d,_0x30065f=a259_0x419afc('',{'importMeta':import.meta,'argv':[..._0x1ff698],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x5a44ca=[..._0x30065f[_0x1e9d39(0x11d)]],_0x5a0620=_0x30065f[_0x1e9d39(0x127)],_0x279451=_0x5a44ca[0x0];if(!_0x279451)throw CliErrors[_0x1e9d39(0x11a)]('Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.');const _0x47974a=resolveRemovedCommand(_0x279451,_0x5a44ca[0x1]);if(_0x47974a)throw CliErrors[_0x1e9d39(0x11a)](_0x47974a[_0x1e9d39(0x11f)],_0x47974a[_0x1e9d39(0x122)]);if(_0x279451===_0x1e9d39(0x120))throw CliErrors[_0x1e9d39(0x11a)](_0x1e9d39(0x11e),'Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.');if(!isKnownService(_0x279451))throw CliErrors[_0x1e9d39(0x114)](_0x5a44ca[_0x1e9d39(0x126)]('\x20'));const _0x54f1fc=getServiceEntry(_0x279451),_0x6379a3=_0x5a44ca[0x1],_0x38709b=_0x6379a3||_0x54f1fc['defaultCommand'];if(!_0x38709b){if(_0x54f1fc[_0x1e9d39(0x118)])return{'definition':_0x54f1fc['wildcardDef'],'rawFlags':_0x5a0620,'args':[]};throw CliErrors[_0x1e9d39(0x11a)]('Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x279451+'\x22.');}const _0x253904=findDefinition(_0x279451,_0x38709b);if(_0x253904)return{'definition':_0x253904,'rawFlags':_0x5a0620,'args':_0x5a44ca[_0x1e9d39(0x11c)](0x2)};if(_0x54f1fc[_0x1e9d39(0x118)])return{'definition':_0x54f1fc[_0x1e9d39(0x118)],'rawFlags':_0x5a0620,'args':[_0x38709b,..._0x5a44ca[_0x1e9d39(0x11c)](0x2)]};throw CliErrors[_0x1e9d39(0x114)](_0x279451+'\x20'+_0x38709b);}function a259_0x3647(){const _0x4dc2cf=['slice','input','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','message','run','27uCigoR','hint','2082038EZzcIq','2614203MtcTBJ','512360RQOvPv','join','flags','unknownCommand','30TpUzXc','24320fEkOif','937623EoYXbq','wildcardDef','5822790NFEorw','validation','564304CcWEZP'];a259_0x3647=function(){return _0x4dc2cf;};return a259_0x3647();}
1
+ (function(_0x2e0342,_0x125d7f){const _0x15320b=a259_0x23d6,_0x414f03=_0x2e0342();while(!![]){try{const _0x1fa60a=parseInt(_0x15320b(0x12c))/0x1*(parseInt(_0x15320b(0x11d))/0x2)+-parseInt(_0x15320b(0x11b))/0x3*(-parseInt(_0x15320b(0x128))/0x4)+parseInt(_0x15320b(0x121))/0x5*(-parseInt(_0x15320b(0x119))/0x6)+parseInt(_0x15320b(0x115))/0x7*(-parseInt(_0x15320b(0x127))/0x8)+parseInt(_0x15320b(0x129))/0x9+-parseInt(_0x15320b(0x11c))/0xa*(-parseInt(_0x15320b(0x122))/0xb)+parseInt(_0x15320b(0x125))/0xc*(-parseInt(_0x15320b(0x124))/0xd);if(_0x1fa60a===_0x125d7f)break;else _0x414f03['push'](_0x414f03['shift']());}catch(_0x3fe27c){_0x414f03['push'](_0x414f03['shift']());}}}(a259_0x4392,0xe863f));import a259_0x32c3cb from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a259_0x23d6(_0x12b851,_0x467d8f){_0x12b851=_0x12b851-0x115;const _0x439271=a259_0x4392();let _0x23d6ab=_0x439271[_0x12b851];return _0x23d6ab;}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a259_0x4392(){const _0x5531c7=['3vqFYCu','6330taIiDV','6CjyarI','input','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','hint','4417005BlaxOs','20515kfgDXc','join','117OJqLjE','2044092GpTLzs','message','8006648ZhnoBu','2100976vxWGAI','11500875rCXolT','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','461836SVeFPh','flags','7JBehaO','wildcardDef','validation','run','6JLhMDm','slice'];a259_0x4392=function(){return _0x5531c7;};return a259_0x4392();}export async function resolveRabetbaseInvocation(_0x2cc09d){const _0x1f8505=a259_0x23d6,_0x5f3760=a259_0x32c3cb('',{'importMeta':import.meta,'argv':[..._0x2cc09d],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x4be6ef=[..._0x5f3760[_0x1f8505(0x11e)]],_0x1b96dc=_0x5f3760[_0x1f8505(0x12d)],_0x41d9da=_0x4be6ef[0x0];if(!_0x41d9da)throw CliErrors['validation'](_0x1f8505(0x12a));const _0x144bbf=resolveRemovedCommand(_0x41d9da,_0x4be6ef[0x1]);if(_0x144bbf)throw CliErrors[_0x1f8505(0x117)](_0x144bbf[_0x1f8505(0x126)],_0x144bbf[_0x1f8505(0x120)]);if(_0x41d9da===_0x1f8505(0x118))throw CliErrors['validation'](_0x1f8505(0x11f),_0x1f8505(0x12b));if(!isKnownService(_0x41d9da))throw CliErrors['unknownCommand'](_0x4be6ef[_0x1f8505(0x123)]('\x20'));const _0x3e1afd=getServiceEntry(_0x41d9da),_0x1ab5bc=_0x4be6ef[0x1],_0x5c57d3=_0x1ab5bc||_0x3e1afd['defaultCommand'];if(!_0x5c57d3){if(_0x3e1afd[_0x1f8505(0x116)])return{'definition':_0x3e1afd[_0x1f8505(0x116)],'rawFlags':_0x1b96dc,'args':[]};throw CliErrors[_0x1f8505(0x117)]('Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x41d9da+'\x22.');}const _0x2d000d=findDefinition(_0x41d9da,_0x5c57d3);if(_0x2d000d)return{'definition':_0x2d000d,'rawFlags':_0x1b96dc,'args':_0x4be6ef[_0x1f8505(0x11a)](0x2)};if(_0x3e1afd[_0x1f8505(0x116)])return{'definition':_0x3e1afd[_0x1f8505(0x116)],'rawFlags':_0x1b96dc,'args':[_0x5c57d3,..._0x4be6ef[_0x1f8505(0x11a)](0x2)]};throw CliErrors['unknownCommand'](_0x41d9da+'\x20'+_0x5c57d3);}
@@ -1 +1 @@
1
- const a261_0x133cb9=a261_0x7901;(function(_0x2c1ea5,_0x23d586){const _0x5ba3f7=a261_0x7901,_0x15e262=_0x2c1ea5();while(!![]){try{const _0x4f9cfc=parseInt(_0x5ba3f7(0x1a3))/0x1+-parseInt(_0x5ba3f7(0x197))/0x2+parseInt(_0x5ba3f7(0x199))/0x3+-parseInt(_0x5ba3f7(0x1a7))/0x4*(-parseInt(_0x5ba3f7(0x1cc))/0x5)+-parseInt(_0x5ba3f7(0x1af))/0x6+parseInt(_0x5ba3f7(0x1c6))/0x7+parseInt(_0x5ba3f7(0x1ba))/0x8;if(_0x4f9cfc===_0x23d586)break;else _0x15e262['push'](_0x15e262['shift']());}catch(_0x26acf4){_0x15e262['push'](_0x15e262['shift']());}}}(a261_0xbcb5,0xcdc84));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a261_0x133cb9(0x1b3),SKILL_NAME=a261_0x133cb9(0x1ce);function frontmatterValue(_0x20d536,_0x40b938){const _0x4258a7=a261_0x133cb9;return _0x20d536[_0x4258a7(0x1b8)](new RegExp('^'+_0x40b938+':\x5cs*(.+)$','m'))?.[0x1]?.['trim']()??'';}function listFiles(_0x102899,_0x251c56=_0x102899){const _0x2ecb60=a261_0x133cb9;return readdirSync(_0x251c56,{'withFileTypes':!![]})[_0x2ecb60(0x1c4)](_0xe8eae1=>{const _0x19c70a=_0x2ecb60,_0x5a3181=join(_0x251c56,_0xe8eae1[_0x19c70a(0x1b5)]),_0x1fedbb=lstatSync(_0x5a3181);if(_0x1fedbb[_0x19c70a(0x1b0)]())throw new Error(_0x19c70a(0x1cb)+_0x5a3181);if(_0x1fedbb[_0x19c70a(0x195)]())return listFiles(_0x102899,_0x5a3181);if(!_0x1fedbb['isFile']())throw new Error(_0x19c70a(0x1ca)+_0x5a3181);return[relative(_0x102899,_0x5a3181)[_0x19c70a(0x1c0)](sep)[_0x19c70a(0x1ab)]('/')];})[_0x2ecb60(0x1b1)]((_0x53a66d,_0x38083a)=>_0x53a66d<_0x38083a?-0x1:_0x53a66d>_0x38083a?0x1:0x0);}function digestFiles(_0x3d6b12,_0x41c621){const _0xf4979b=a261_0x133cb9,_0x61e5c7=createHash('sha256');for(const _0x3ebef8 of _0x41c621){if(_0x3ebef8['startsWith']('/')||_0x3ebef8[_0xf4979b(0x1c0)]('/')[_0xf4979b(0x1a8)]('..')||_0x3ebef8['includes']('\x5c'))throw new Error(_0xf4979b(0x1cf)+_0x3ebef8);_0x61e5c7[_0xf4979b(0x1a9)](_0x3ebef8),_0x61e5c7[_0xf4979b(0x1a9)]('\x00'),_0x61e5c7[_0xf4979b(0x1a9)](readFileSync(join(_0x3d6b12,..._0x3ebef8['split']('/')))),_0x61e5c7['update']('\x00');}return _0x61e5c7[_0xf4979b(0x1c9)](_0xf4979b(0x1c5));}function sameFiles(_0x12dcc5,_0x593a48){const _0x39b006=a261_0x133cb9;return _0x12dcc5[_0x39b006(0x1aa)]===_0x593a48['length']&&_0x12dcc5[_0x39b006(0x1c8)]((_0x3250c5,_0x4790b8)=>_0x3250c5===_0x593a48[_0x4790b8]);}function readSource(_0x456388){const _0x357e68=a261_0x133cb9,_0x43a514=JSON['parse'](readFileSync(join(_0x456388,_0x357e68(0x1ac)),_0x357e68(0x196))),_0x174659=JSON[_0x357e68(0x1b4)](readFileSync(join(_0x456388,_0x357e68(0x1be),_0x357e68(0x19a)),'utf8')),_0x559dfc=join(_0x456388,_0x357e68(0x1be),SKILL_NAME),_0x397ba9=frontmatterValue(readFileSync(join(_0x559dfc,_0x357e68(0x1a4)),_0x357e68(0x196)),'version'),_0x1887f1=listFiles(_0x559dfc);if(_0x174659['schemaVersion']!==0x1||_0x174659[_0x357e68(0x1b5)]!==SKILL_NAME||!_0x43a514[_0x357e68(0x19b)]||_0x174659['packageVersion']!==_0x43a514[_0x357e68(0x19b)]||_0x174659[_0x357e68(0x1bb)]!==_0x43a514[_0x357e68(0x19b)]||_0x397ba9!==_0x43a514['version']||!sameFiles(_0x1887f1,_0x174659[_0x357e68(0x1c2)])||digestFiles(_0x559dfc,_0x1887f1)!==_0x174659[_0x357e68(0x1c9)])throw new Error(_0x357e68(0x1a6));return{'packageVersion':_0x43a514['version'],'skillVersion':_0x397ba9,'root':_0x559dfc,'manifest':_0x174659};}function a261_0x7901(_0x3bcf67,_0x4e8d57){_0x3bcf67=_0x3bcf67-0x195;const _0xbcb507=a261_0xbcb5();let _0x7901e7=_0xbcb507[_0x3bcf67];return _0x7901e7;}function a261_0xbcb5(){const _0x2d0e98=['1102659apBFQT','rabetbase.manifest.json','version','message','root','SOURCE_INVALID','current','unknown','home','manifest','102945cEpakv','SKILL.md','packageRoot','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','124DWCpPD','includes','update','length','join','package.json','unverifiable','reason','10089408flGjIe','isSymbolicLink','sort','pipe','rabetbase\x20cli-skill\x20install','parse','name','Installed\x20Skill\x20state\x20is\x20','packageVersion','match','stdio','10774488BuBQxW','skillVersion','INSTALL_FAILED','skills@latest\x20exited\x20','skills','state','split','installedPath','files','present','flatMap','hex','9562924mVoFyI','version_mismatch','every','digest','Unsupported\x20Skill\x20entry:\x20','Symbolic\x20link\x20is\x20not\x20allowed:\x20','67830GyTodl','path','rabetbase','Unsafe\x20manifest\x20path:\x20','isDirectory','utf8','2159070VLoGPX','missing'];a261_0xbcb5=function(){return _0x2d0e98;};return a261_0xbcb5();}function installedSkillPath(_0x2ab013){const _0x48a01a=a261_0x133cb9,_0x3d1448=resolveInstalledSkill(SKILL_NAME,{'home':_0x2ab013});if(_0x3d1448[_0x48a01a(0x1bf)]===_0x48a01a(0x1c3))return{'state':_0x48a01a(0x1c3),'path':dirname(_0x3d1448[_0x48a01a(0x1cd)])};if(_0x3d1448['state']==='absent')return{'state':_0x48a01a(0x198)};return{'state':'unverifiable','reason':_0x3d1448[_0x48a01a(0x1ae)]};}export function inspectInstalledBuiltinSkillVersion(_0x374e0b,_0x530c86={}){const _0x48428a=a261_0x133cb9,_0x5847a2=installedSkillPath(_0x530c86[_0x48428a(0x1a1)]??homedir());if(_0x5847a2[_0x48428a(0x1bf)]===_0x48428a(0x198))return{'state':_0x48428a(0x198),'expectedVersion':_0x374e0b,'repairCommand':REPAIR_COMMAND};if(_0x5847a2[_0x48428a(0x1bf)]==='unverifiable')return{'state':_0x48428a(0x1ad),'expectedVersion':_0x374e0b,'reason':_0x5847a2[_0x48428a(0x1ae)],'repairCommand':REPAIR_COMMAND};try{const _0xab4d86=frontmatterValue(readFileSync(join(_0x5847a2[_0x48428a(0x1cd)],'SKILL.md'),_0x48428a(0x196)),_0x48428a(0x19b));return{'state':_0xab4d86===_0x374e0b?_0x48428a(0x19f):'version_mismatch','expectedVersion':_0x374e0b,'skillVersion':_0xab4d86,'installedPath':_0x5847a2[_0x48428a(0x1cd)],'repairCommand':REPAIR_COMMAND};}catch(_0x164ef0){return{'state':_0x48428a(0x1ad),'expectedVersion':_0x374e0b,'installedPath':_0x5847a2[_0x48428a(0x1cd)],'reason':_0x164ef0 instanceof Error?_0x164ef0[_0x48428a(0x19c)]:String(_0x164ef0),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0xaaac0e={}){const _0x31954e=a261_0x133cb9,_0x1a6fab=_0xaaac0e[_0x31954e(0x1a5)]??DEFAULT_PACKAGE_ROOT;let _0x58ad72;try{_0x58ad72=readSource(_0x1a6fab);}catch(_0x3297cb){return{'state':_0x31954e(0x1ad),'packageVersion':_0x31954e(0x1a0),'reason':_0x3297cb instanceof Error?_0x3297cb['message']:String(_0x3297cb),'repairCommand':REPAIR_COMMAND};}const _0x19a417=installedSkillPath(_0xaaac0e[_0x31954e(0x1a1)]??homedir());if(_0x19a417[_0x31954e(0x1bf)]===_0x31954e(0x198))return{'state':_0x31954e(0x198),'packageVersion':_0x58ad72[_0x31954e(0x1b7)],'repairCommand':REPAIR_COMMAND};if(_0x19a417[_0x31954e(0x1bf)]===_0x31954e(0x1ad))return{'state':_0x31954e(0x1ad),'packageVersion':_0x58ad72[_0x31954e(0x1b7)],'reason':_0x19a417[_0x31954e(0x1ae)],'repairCommand':REPAIR_COMMAND};try{const _0x585b03=frontmatterValue(readFileSync(join(_0x19a417[_0x31954e(0x1cd)],'SKILL.md'),_0x31954e(0x196)),'version');if(_0x585b03!==_0x58ad72[_0x31954e(0x1bb)])return{'state':_0x31954e(0x1c7),'packageVersion':_0x58ad72[_0x31954e(0x1b7)],'skillVersion':_0x585b03,'installedPath':_0x19a417[_0x31954e(0x1cd)],'repairCommand':REPAIR_COMMAND};const _0xde1b24=listFiles(_0x19a417[_0x31954e(0x1cd)]),_0x4e2ca0=digestFiles(_0x19a417[_0x31954e(0x1cd)],_0xde1b24);return{'state':sameFiles(_0xde1b24,_0x58ad72[_0x31954e(0x1a2)][_0x31954e(0x1c2)])&&_0x4e2ca0===_0x58ad72[_0x31954e(0x1a2)][_0x31954e(0x1c9)]?_0x31954e(0x19f):'content_mismatch','packageVersion':_0x58ad72['packageVersion'],'skillVersion':_0x585b03,'installedPath':_0x19a417[_0x31954e(0x1cd)],'digest':_0x4e2ca0,'repairCommand':REPAIR_COMMAND};}catch(_0x2eedb4){return{'state':'unverifiable','packageVersion':_0x58ad72[_0x31954e(0x1b7)],'installedPath':_0x19a417[_0x31954e(0x1cd)],'reason':_0x2eedb4 instanceof Error?_0x2eedb4[_0x31954e(0x19c)]:String(_0x2eedb4),'repairCommand':REPAIR_COMMAND};}}function failure(_0x2aadb1,_0x4bf93d,_0x4684d0,_0x5c5bdd){const _0x421c21=a261_0x133cb9;return{'ok':![],'code':_0x2aadb1,'packageVersion':_0x4bf93d[_0x421c21(0x1b7)],'skillVersion':_0x4bf93d['skillVersion'],'installedPath':_0x5c5bdd,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x4684d0 instanceof Error?_0x4684d0['message']:String(_0x4684d0)};}export function installBuiltinSkill(_0x5c5102={}){const _0x31ec3a=a261_0x133cb9,_0x3929da=_0x5c5102[_0x31ec3a(0x1a5)]??DEFAULT_PACKAGE_ROOT,_0x41bc67=_0x5c5102[_0x31ec3a(0x1a1)]??homedir();let _0x221c96;try{_0x221c96=readSource(_0x3929da);}catch(_0xef6ae0){return failure(_0x31ec3a(0x19e),{'packageVersion':_0x31ec3a(0x1a0),'skillVersion':'unknown'},_0xef6ae0);}const _0x27a553=inspectBuiltinSkill({'packageRoot':_0x3929da,'home':_0x41bc67}),_0xcdbe5f=runNpxSkillsAddGlobal(_0x3929da,_0x221c96[_0x31ec3a(0x19d)],{'stdio':_0x5c5102[_0x31ec3a(0x1b9)]??_0x31ec3a(0x1b2),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x41bc67}});if(_0xcdbe5f['skipped'])return{'ok':!![],'packageVersion':_0x221c96[_0x31ec3a(0x1b7)],'skillVersion':_0x221c96[_0x31ec3a(0x1bb)],'installedPath':_0x27a553[_0x31ec3a(0x1c1)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0xcdbe5f['ok'])return failure(_0x31ec3a(0x1bc),_0x221c96,_0xcdbe5f['error']??_0x31ec3a(0x1bd)+_0xcdbe5f['status']);const _0x2f17ce=inspectBuiltinSkill({'packageRoot':_0x3929da,'home':_0x41bc67});if(_0x2f17ce['state']!==_0x31ec3a(0x19f))return failure('VERIFY_FAILED',_0x221c96,_0x2f17ce[_0x31ec3a(0x1ae)]??_0x31ec3a(0x1b6)+_0x2f17ce[_0x31ec3a(0x1bf)],_0x2f17ce['installedPath']);return{'ok':!![],'packageVersion':_0x221c96['packageVersion'],'skillVersion':_0x221c96[_0x31ec3a(0x1bb)],'installedPath':_0x2f17ce[_0x31ec3a(0x1c1)],'changed':_0x27a553[_0x31ec3a(0x1bf)]!==_0x31ec3a(0x19f),'repairCommand':REPAIR_COMMAND};}
1
+ const a261_0x5db183=a261_0x2345;function a261_0x2345(_0x30ab6b,_0x4d367d){_0x30ab6b=_0x30ab6b-0x120;const _0x337114=a261_0x3371();let _0x2345bb=_0x337114[_0x30ab6b];return _0x2345bb;}(function(_0x54876b,_0x22996e){const _0x45de8a=a261_0x2345,_0x4f9051=_0x54876b();while(!![]){try{const _0x57db70=-parseInt(_0x45de8a(0x140))/0x1*(parseInt(_0x45de8a(0x13a))/0x2)+parseInt(_0x45de8a(0x142))/0x3+-parseInt(_0x45de8a(0x129))/0x4*(-parseInt(_0x45de8a(0x158))/0x5)+-parseInt(_0x45de8a(0x15a))/0x6*(parseInt(_0x45de8a(0x138))/0x7)+parseInt(_0x45de8a(0x152))/0x8*(-parseInt(_0x45de8a(0x159))/0x9)+parseInt(_0x45de8a(0x13d))/0xa+-parseInt(_0x45de8a(0x153))/0xb*(parseInt(_0x45de8a(0x121))/0xc);if(_0x57db70===_0x22996e)break;else _0x4f9051['push'](_0x4f9051['shift']());}catch(_0x5a9d8f){_0x4f9051['push'](_0x4f9051['shift']());}}}(a261_0x3371,0xcd277));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a261_0x5db183(0x15f),SKILL_NAME=a261_0x5db183(0x139);function frontmatterValue(_0x24f3ce,_0x5c8fd4){const _0x5dac4e=a261_0x5db183;return _0x24f3ce[_0x5dac4e(0x124)](new RegExp('^'+_0x5c8fd4+_0x5dac4e(0x150),'m'))?.[0x1]?.['trim']()??'';}function listFiles(_0x203785,_0x2b768e=_0x203785){const _0x166c45=a261_0x5db183;return readdirSync(_0x2b768e,{'withFileTypes':!![]})[_0x166c45(0x130)](_0x189780=>{const _0x121ea9=_0x166c45,_0x24ca5e=join(_0x2b768e,_0x189780[_0x121ea9(0x12d)]),_0x55940c=lstatSync(_0x24ca5e);if(_0x55940c[_0x121ea9(0x147)]())throw new Error(_0x121ea9(0x14c)+_0x24ca5e);if(_0x55940c['isDirectory']())return listFiles(_0x203785,_0x24ca5e);if(!_0x55940c[_0x121ea9(0x133)]())throw new Error(_0x121ea9(0x134)+_0x24ca5e);return[relative(_0x203785,_0x24ca5e)[_0x121ea9(0x136)](sep)[_0x121ea9(0x15b)]('/')];})[_0x166c45(0x14b)]((_0x3a43ba,_0x2e1e80)=>_0x3a43ba<_0x2e1e80?-0x1:_0x3a43ba>_0x2e1e80?0x1:0x0);}function digestFiles(_0x218243,_0x73b7bd){const _0x3ea5b6=a261_0x5db183,_0x47beb4=createHash('sha256');for(const _0x4664d9 of _0x73b7bd){if(_0x4664d9[_0x3ea5b6(0x151)]('/')||_0x4664d9['split']('/')[_0x3ea5b6(0x15c)]('..')||_0x4664d9[_0x3ea5b6(0x15c)]('\x5c'))throw new Error(_0x3ea5b6(0x13f)+_0x4664d9);_0x47beb4[_0x3ea5b6(0x161)](_0x4664d9),_0x47beb4[_0x3ea5b6(0x161)]('\x00'),_0x47beb4[_0x3ea5b6(0x161)](readFileSync(join(_0x218243,..._0x4664d9[_0x3ea5b6(0x136)]('/')))),_0x47beb4[_0x3ea5b6(0x161)]('\x00');}return _0x47beb4['digest'](_0x3ea5b6(0x160));}function a261_0x3371(){const _0x43696e=['path','message','schemaVersion','5400vAdPbL','manifest','version','match','unknown','pipe','digest','error','1377276pHeunE','files','absent','reason','name','every','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','flatMap','installedPath','packageRoot','isFile','Unsupported\x20Skill\x20entry:\x20','length','split','unverifiable','68978xnsDfB','rabetbase','34yFJlgp','state','parse','14849090eQbcFJ','root','Unsafe\x20manifest\x20path:\x20','54437nWzglL','skillVersion','3152133KSFCLO','stdio','present','skills@latest\x20exited\x20','SKILL.md','isSymbolicLink','version_mismatch','utf8','rabetbase.manifest.json','sort','Symbolic\x20link\x20is\x20not\x20allowed:\x20','home','current','status',':\x5cs*(.+)$','startsWith','8lhmlvW','7359MeuKnz','skills','INSTALL_FAILED','SOURCE_INVALID','skipped','15PBlJin','3849309PYcVns','654vLnbPN','join','includes','missing','packageVersion','rabetbase\x20cli-skill\x20install','hex','update'];a261_0x3371=function(){return _0x43696e;};return a261_0x3371();}function sameFiles(_0x1d8704,_0x3b9ec3){const _0x34746c=a261_0x5db183;return _0x1d8704[_0x34746c(0x135)]===_0x3b9ec3[_0x34746c(0x135)]&&_0x1d8704[_0x34746c(0x12e)]((_0x435b66,_0x390057)=>_0x435b66===_0x3b9ec3[_0x390057]);}function readSource(_0x30db36){const _0x58d353=a261_0x5db183,_0xe5418d=JSON[_0x58d353(0x13c)](readFileSync(join(_0x30db36,'package.json'),_0x58d353(0x149))),_0x1eb18a=JSON['parse'](readFileSync(join(_0x30db36,'skills',_0x58d353(0x14a)),_0x58d353(0x149))),_0xc5a821=join(_0x30db36,_0x58d353(0x154),SKILL_NAME),_0x3d93c1=frontmatterValue(readFileSync(join(_0xc5a821,_0x58d353(0x146)),_0x58d353(0x149)),_0x58d353(0x123)),_0x13131b=listFiles(_0xc5a821);if(_0x1eb18a[_0x58d353(0x120)]!==0x1||_0x1eb18a[_0x58d353(0x12d)]!==SKILL_NAME||!_0xe5418d[_0x58d353(0x123)]||_0x1eb18a[_0x58d353(0x15e)]!==_0xe5418d[_0x58d353(0x123)]||_0x1eb18a[_0x58d353(0x141)]!==_0xe5418d['version']||_0x3d93c1!==_0xe5418d[_0x58d353(0x123)]||!sameFiles(_0x13131b,_0x1eb18a[_0x58d353(0x12a)])||digestFiles(_0xc5a821,_0x13131b)!==_0x1eb18a[_0x58d353(0x127)])throw new Error(_0x58d353(0x12f));return{'packageVersion':_0xe5418d['version'],'skillVersion':_0x3d93c1,'root':_0xc5a821,'manifest':_0x1eb18a};}function installedSkillPath(_0x309bad){const _0x3a3c1d=a261_0x5db183,_0x75fa71=resolveInstalledSkill(SKILL_NAME,{'home':_0x309bad});if(_0x75fa71[_0x3a3c1d(0x13b)]===_0x3a3c1d(0x144))return{'state':_0x3a3c1d(0x144),'path':dirname(_0x75fa71[_0x3a3c1d(0x162)])};if(_0x75fa71[_0x3a3c1d(0x13b)]===_0x3a3c1d(0x12b))return{'state':_0x3a3c1d(0x15d)};return{'state':_0x3a3c1d(0x137),'reason':_0x75fa71[_0x3a3c1d(0x12c)]};}export function inspectInstalledBuiltinSkillVersion(_0x530353,_0x2c33c4={}){const _0x22d3f2=a261_0x5db183,_0x4653e9=installedSkillPath(_0x2c33c4[_0x22d3f2(0x14d)]??homedir());if(_0x4653e9[_0x22d3f2(0x13b)]===_0x22d3f2(0x15d))return{'state':_0x22d3f2(0x15d),'expectedVersion':_0x530353,'repairCommand':REPAIR_COMMAND};if(_0x4653e9[_0x22d3f2(0x13b)]===_0x22d3f2(0x137))return{'state':_0x22d3f2(0x137),'expectedVersion':_0x530353,'reason':_0x4653e9[_0x22d3f2(0x12c)],'repairCommand':REPAIR_COMMAND};try{const _0x4cb617=frontmatterValue(readFileSync(join(_0x4653e9[_0x22d3f2(0x162)],_0x22d3f2(0x146)),_0x22d3f2(0x149)),_0x22d3f2(0x123));return{'state':_0x4cb617===_0x530353?_0x22d3f2(0x14e):'version_mismatch','expectedVersion':_0x530353,'skillVersion':_0x4cb617,'installedPath':_0x4653e9[_0x22d3f2(0x162)],'repairCommand':REPAIR_COMMAND};}catch(_0xafd1c1){return{'state':'unverifiable','expectedVersion':_0x530353,'installedPath':_0x4653e9['path'],'reason':_0xafd1c1 instanceof Error?_0xafd1c1['message']:String(_0xafd1c1),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x22e13f={}){const _0x2e273a=a261_0x5db183,_0x1ff509=_0x22e13f[_0x2e273a(0x132)]??DEFAULT_PACKAGE_ROOT;let _0x5c14db;try{_0x5c14db=readSource(_0x1ff509);}catch(_0x4b3bf4){return{'state':'unverifiable','packageVersion':_0x2e273a(0x125),'reason':_0x4b3bf4 instanceof Error?_0x4b3bf4[_0x2e273a(0x163)]:String(_0x4b3bf4),'repairCommand':REPAIR_COMMAND};}const _0x1cb508=installedSkillPath(_0x22e13f[_0x2e273a(0x14d)]??homedir());if(_0x1cb508[_0x2e273a(0x13b)]==='missing')return{'state':_0x2e273a(0x15d),'packageVersion':_0x5c14db[_0x2e273a(0x15e)],'repairCommand':REPAIR_COMMAND};if(_0x1cb508[_0x2e273a(0x13b)]==='unverifiable')return{'state':_0x2e273a(0x137),'packageVersion':_0x5c14db['packageVersion'],'reason':_0x1cb508[_0x2e273a(0x12c)],'repairCommand':REPAIR_COMMAND};try{const _0x2e3af1=frontmatterValue(readFileSync(join(_0x1cb508[_0x2e273a(0x162)],'SKILL.md'),_0x2e273a(0x149)),'version');if(_0x2e3af1!==_0x5c14db[_0x2e273a(0x141)])return{'state':_0x2e273a(0x148),'packageVersion':_0x5c14db[_0x2e273a(0x15e)],'skillVersion':_0x2e3af1,'installedPath':_0x1cb508[_0x2e273a(0x162)],'repairCommand':REPAIR_COMMAND};const _0x56e784=listFiles(_0x1cb508[_0x2e273a(0x162)]),_0x32c3af=digestFiles(_0x1cb508['path'],_0x56e784);return{'state':sameFiles(_0x56e784,_0x5c14db[_0x2e273a(0x122)][_0x2e273a(0x12a)])&&_0x32c3af===_0x5c14db['manifest'][_0x2e273a(0x127)]?_0x2e273a(0x14e):'content_mismatch','packageVersion':_0x5c14db[_0x2e273a(0x15e)],'skillVersion':_0x2e3af1,'installedPath':_0x1cb508[_0x2e273a(0x162)],'digest':_0x32c3af,'repairCommand':REPAIR_COMMAND};}catch(_0x1bb064){return{'state':_0x2e273a(0x137),'packageVersion':_0x5c14db[_0x2e273a(0x15e)],'installedPath':_0x1cb508[_0x2e273a(0x162)],'reason':_0x1bb064 instanceof Error?_0x1bb064[_0x2e273a(0x163)]:String(_0x1bb064),'repairCommand':REPAIR_COMMAND};}}function failure(_0x5f238d,_0xe760e9,_0x322f0f,_0x2ba205){const _0x7cd544=a261_0x5db183;return{'ok':![],'code':_0x5f238d,'packageVersion':_0xe760e9[_0x7cd544(0x15e)],'skillVersion':_0xe760e9[_0x7cd544(0x141)],'installedPath':_0x2ba205,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x322f0f instanceof Error?_0x322f0f[_0x7cd544(0x163)]:String(_0x322f0f)};}export function installBuiltinSkill(_0x44cd12={}){const _0x22e23d=a261_0x5db183,_0x598c7e=_0x44cd12[_0x22e23d(0x132)]??DEFAULT_PACKAGE_ROOT,_0x412e73=_0x44cd12[_0x22e23d(0x14d)]??homedir();let _0x2c3b55;try{_0x2c3b55=readSource(_0x598c7e);}catch(_0x495ba7){return failure(_0x22e23d(0x156),{'packageVersion':_0x22e23d(0x125),'skillVersion':'unknown'},_0x495ba7);}const _0x4dfdeb=inspectBuiltinSkill({'packageRoot':_0x598c7e,'home':_0x412e73}),_0x52a0b3=runNpxSkillsAddGlobal(_0x598c7e,_0x2c3b55[_0x22e23d(0x13e)],{'stdio':_0x44cd12[_0x22e23d(0x143)]??_0x22e23d(0x126),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x412e73}});if(_0x52a0b3[_0x22e23d(0x157)])return{'ok':!![],'packageVersion':_0x2c3b55[_0x22e23d(0x15e)],'skillVersion':_0x2c3b55['skillVersion'],'installedPath':_0x4dfdeb[_0x22e23d(0x131)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x52a0b3['ok'])return failure(_0x22e23d(0x155),_0x2c3b55,_0x52a0b3[_0x22e23d(0x128)]??_0x22e23d(0x145)+_0x52a0b3[_0x22e23d(0x14f)]);const _0x583871=inspectBuiltinSkill({'packageRoot':_0x598c7e,'home':_0x412e73});if(_0x583871[_0x22e23d(0x13b)]!==_0x22e23d(0x14e))return failure('VERIFY_FAILED',_0x2c3b55,_0x583871[_0x22e23d(0x12c)]??'Installed\x20Skill\x20state\x20is\x20'+_0x583871[_0x22e23d(0x13b)],_0x583871[_0x22e23d(0x131)]);return{'ok':!![],'packageVersion':_0x2c3b55[_0x22e23d(0x15e)],'skillVersion':_0x2c3b55[_0x22e23d(0x141)],'installedPath':_0x583871[_0x22e23d(0x131)],'changed':_0x4dfdeb[_0x22e23d(0x13b)]!==_0x22e23d(0x14e),'repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
1
- function a262_0x2690(){const _0x180891=['(empty)','error','toLowerCase','startsWith','5XWPSBL','cwd','entries','1555461laOsYK','10vIXXeY','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','enable-bff-save','100145PEgJHy','help','8256672ToEfhT','不支持的命令:\x20','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','Public\x20Open\x20Skill\x20source:\x20','Error:\x20Unsupported\x20command:\x20','11936810enyJKw','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','argv','234777fXuiXp','7498414FqHtgC','log','44SDTErK','433741JiXZtx','from','push','exit','dangerously-bff-save','8DsBlKE'];a262_0x2690=function(){return _0x180891;};return a262_0x2690();}(function(_0x4e3741,_0x4c798d){const _0x26d57a=a262_0x574c,_0x221ee2=_0x4e3741();while(!![]){try{const _0x29c8e1=-parseInt(_0x26d57a(0x102))/0x1*(parseInt(_0x26d57a(0xff))/0x2)+parseInt(_0x26d57a(0x10d))/0x3*(parseInt(_0x26d57a(0x110))/0x4)+-parseInt(_0x26d57a(0xfb))/0x5*(parseInt(_0x26d57a(0x104))/0x6)+parseInt(_0x26d57a(0x111))/0x7+parseInt(_0x26d57a(0x116))/0x8*(-parseInt(_0x26d57a(0xfe))/0x9)+parseInt(_0x26d57a(0x109))/0xa+parseInt(_0x26d57a(0x10e))/0xb;if(_0x29c8e1===_0x4c798d)break;else _0x221ee2['push'](_0x221ee2['shift']());}catch(_0x3b62b1){_0x221ee2['push'](_0x221ee2['shift']());}}}(a262_0x2690,0xb6bd5));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 a262_0x574c(_0x247786,_0x2337e0){_0x247786=_0x247786-0xfa;const _0x269076=a262_0x2690();let _0x574cea=_0x269076[_0x247786];return _0x574cea;}export function camelCaseFlagsToKebab(_0x26cb56){const _0x1f964d=a262_0x574c,_0x2bd724=[];for(const [_0x27bc1c,_0x69adc2]of Object[_0x1f964d(0xfd)](_0x26cb56)){if(_0x69adc2===!![]){const _0x2c8d14=_0x27bc1c['replace'](/([A-Z])/g,'-$1')[_0x1f964d(0x119)]();_0x2bd724[_0x1f964d(0x113)](_0x2c8d14);}}return _0x2bd724;}export function parseDynamicFlags(){const _0x396d71=a262_0x574c,_0x41047f=[];for(let _0x48b4ad=0x3;_0x48b4ad<process['argv']['length'];_0x48b4ad++){const _0x575d77=process[_0x396d71(0x10c)][_0x48b4ad];if(_0x575d77&&_0x575d77[_0x396d71(0xfa)]('--')){const _0x50b930=_0x575d77['slice'](0x2);_0x50b930&&!_0x50b930['includes']('=')&&_0x41047f[_0x396d71(0x113)](_0x50b930);}}return _0x41047f;}export function getAllProvidedFlags(_0x37f702){const _0x363b3c=a262_0x574c,_0x191ae8=camelCaseFlagsToKebab(_0x37f702),_0x32a246=parseDynamicFlags(),_0x53126c=new Set([..._0x191ae8,..._0x32a246]);return Array[_0x363b3c(0x112)](_0x53126c);}export function normalizeLegacyBffSaveFlags(_0x45f205){const _0x3db083=a262_0x574c,_0x4d0e4f=new Set(_0x45f205);return _0x4d0e4f['has'](_0x3db083(0x115))&&_0x4d0e4f['add'](_0x3db083(0x101)),Array[_0x3db083(0x112)](_0x4d0e4f);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x167ae7,_0x492a3a,_0x43e372){const _0x23a4b6=a262_0x574c;logger['setLogPath'](process[_0x23a4b6(0xfc)]());if(_0x43e372?.[_0x23a4b6(0x103)]||_0x167ae7==='--help'){showHelp();return;}console[_0x23a4b6(0x118)](_0x23a4b6(0x108)+(_0x167ae7||_0x23a4b6(0x117))),console[_0x23a4b6(0x10f)]('\x0aAvailable\x20commands:'),console[_0x23a4b6(0x10f)]('\x20\x20'+CLI_BIN_NAME+_0x23a4b6(0x10b)),console['log'](''),console[_0x23a4b6(0x10f)](_0x23a4b6(0x107)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x23a4b6(0x118)]('skill',_0x23a4b6(0x105)+_0x167ae7),process[_0x23a4b6(0x114)](0x1);}function showHelp(){const _0xf9a36=a262_0x574c;console[_0xf9a36(0x10f)](_0xf9a36(0x100)+CLI_BIN_NAME+_0xf9a36(0x106)+SKILLS_INSTALL_COMMAND_LINE+_0xf9a36(0x10a));}
1
+ (function(_0x3631fa,_0x808d0){const _0x41b784=a262_0x12bc,_0x1934c3=_0x3631fa();while(!![]){try{const _0xcc3f7d=-parseInt(_0x41b784(0xc1))/0x1+-parseInt(_0x41b784(0xb2))/0x2*(parseInt(_0x41b784(0xcd))/0x3)+-parseInt(_0x41b784(0xc0))/0x4+parseInt(_0x41b784(0xc8))/0x5+-parseInt(_0x41b784(0xba))/0x6*(parseInt(_0x41b784(0xb6))/0x7)+parseInt(_0x41b784(0xaf))/0x8+parseInt(_0x41b784(0xb9))/0x9;if(_0xcc3f7d===_0x808d0)break;else _0x1934c3['push'](_0x1934c3['shift']());}catch(_0x1ae22e){_0x1934c3['push'](_0x1934c3['shift']());}}}(a262_0x6766,0x1e0a0));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a262_0x12bc(_0x421440,_0x5d978e){_0x421440=_0x421440-0xaf;const _0x676658=a262_0x6766();let _0x12bca7=_0x676658[_0x421440];return _0x12bca7;}import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x5f381f){const _0x5aa09b=a262_0x12bc,_0x72c66a=[];for(const [_0x5ab8ca,_0xb7f18]of Object[_0x5aa09b(0xcb)](_0x5f381f)){if(_0xb7f18===!![]){const _0x439f6d=_0x5ab8ca['replace'](/([A-Z])/g,'-$1')['toLowerCase']();_0x72c66a[_0x5aa09b(0xc7)](_0x439f6d);}}return _0x72c66a;}export function parseDynamicFlags(){const _0x33d68f=a262_0x12bc,_0x55bf35=[];for(let _0x3c487c=0x3;_0x3c487c<process['argv'][_0x33d68f(0xcf)];_0x3c487c++){const _0x1d5def=process['argv'][_0x3c487c];if(_0x1d5def&&_0x1d5def[_0x33d68f(0xb7)]('--')){const _0x2b0ebb=_0x1d5def[_0x33d68f(0xc5)](0x2);_0x2b0ebb&&!_0x2b0ebb[_0x33d68f(0xc9)]('=')&&_0x55bf35[_0x33d68f(0xc7)](_0x2b0ebb);}}return _0x55bf35;}function a262_0x6766(){const _0x5e8d6e=['\x0aAvailable\x20commands:','3bAmGPI','(empty)','length','has','1811472RHaeVk','skill','log','370538NTxHRO','help','Error:\x20Unsupported\x20command:\x20','error','158018rFqolM','startsWith','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','4136400AHbDKK','42ICSMFR','不支持的命令:\x20','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','enable-bff-save','dangerously-bff-save','169500jysSPo','243872scTult','from','exit','add','slice','setLogPath','push','332700nVARfk','includes','--help','entries'];a262_0x6766=function(){return _0x5e8d6e;};return a262_0x6766();}export function getAllProvidedFlags(_0x16e580){const _0x40c2b0=a262_0x12bc,_0x633dcc=camelCaseFlagsToKebab(_0x16e580),_0x7f1f2d=parseDynamicFlags(),_0x3ded19=new Set([..._0x633dcc,..._0x7f1f2d]);return Array[_0x40c2b0(0xc2)](_0x3ded19);}export function normalizeLegacyBffSaveFlags(_0x1aec4c){const _0x3ac468=a262_0x12bc,_0x3a8151=new Set(_0x1aec4c);return _0x3a8151[_0x3ac468(0xd0)](_0x3ac468(0xbf))&&_0x3a8151[_0x3ac468(0xc4)](_0x3ac468(0xbe)),Array[_0x3ac468(0xc2)](_0x3a8151);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x46eebd,_0x4d2232,_0x5e9fae){const _0x4652d7=a262_0x12bc;logger[_0x4652d7(0xc6)](process['cwd']());if(_0x5e9fae?.[_0x4652d7(0xb3)]||_0x46eebd===_0x4652d7(0xca)){showHelp();return;}console[_0x4652d7(0xb5)](_0x4652d7(0xb4)+(_0x46eebd||_0x4652d7(0xce))),console['log'](_0x4652d7(0xcc)),console[_0x4652d7(0xb1)]('\x20\x20'+CLI_BIN_NAME+_0x4652d7(0xb8)),console[_0x4652d7(0xb1)](''),console[_0x4652d7(0xb1)]('Public\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0x4652d7(0xb5)](_0x4652d7(0xb0),_0x4652d7(0xbb)+_0x46eebd),process[_0x4652d7(0xc3)](0x1);}function showHelp(){const _0x7fb1a3=a262_0x12bc;console[_0x7fb1a3(0xb1)]('\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x7fb1a3(0xbd)+SKILLS_INSTALL_COMMAND_LINE+_0x7fb1a3(0xbc));}
@@ -1 +1 @@
1
- const a263_0x4b6db1=a263_0x124c;(function(_0x4dc1e1,_0x5c9d44){const _0x5519df=a263_0x124c,_0x62e791=_0x4dc1e1();while(!![]){try{const _0x48a743=parseInt(_0x5519df(0x107))/0x1+-parseInt(_0x5519df(0x115))/0x2+-parseInt(_0x5519df(0xf8))/0x3*(parseInt(_0x5519df(0xfc))/0x4)+parseInt(_0x5519df(0xeb))/0x5*(parseInt(_0x5519df(0xf9))/0x6)+parseInt(_0x5519df(0xfd))/0x7+parseInt(_0x5519df(0x10b))/0x8*(parseInt(_0x5519df(0xe9))/0x9)+-parseInt(_0x5519df(0x118))/0xa;if(_0x48a743===_0x5c9d44)break;else _0x62e791['push'](_0x62e791['shift']());}catch(_0x5616bc){_0x62e791['push'](_0x62e791['shift']());}}}(a263_0x1f1c,0x4deca));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';function a263_0x1f1c(){const _0x1ab870=['inherit','signal','state','422911DBszEr','remove','trim','absent','16arveby','EACCES','ENOENT','NPM_CONFIG_GLOBAL','stdout','pipe','yes','INSTALL_PARTIAL','stderr','Skill\x20\x22','588722OMswpy','EPERM','npx','11022530JKjYHW','lovrabet/rabetbase','Installer\x20reported\x20','npm_config_global','unknown','code','\x20failed\x20target(s)','2475855MwhUNa','CHILD_TERMINATED','5qttRuj','NPX_NOT_FOUND','skills@latest','lovrabet/lovrabet-skill','unverifiable','stdio','npx\x20terminated\x20by\x20signal\x20','\x22\x20install\x20state:\x20','SPAWN_FAILED','SKILL_NOT_INSTALLED','join','rabetbase','warn','3ngwqRo','3685386MpgOtM','!\x20Could\x20not\x20verify\x20\x22','expectedSkillName','309592ByWwvi','1441006xffEXQ','error','toString','status','message','presence','push'];a263_0x1f1c=function(){return _0x1ab870;};return a263_0x1f1c();}export const NPX_SKILLS_CLI=a263_0x4b6db1(0xed);export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL='--skill';function a263_0x124c(_0x3e2815,_0x46ac30){_0x3e2815=_0x3e2815-0xe5;const _0x1f1c3d=a263_0x1f1c();let _0x124ccd=_0x1f1c3d[_0x3e2815];return _0x124ccd;}export const RABETBASE_SKILL_SOURCE=a263_0x4b6db1(0x119);export const LEGACY_RABETBASE_SKILL_SOURCE=a263_0x4b6db1(0xee);export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export const RABETBASE_GLOBAL_SKILL_NAME=a263_0x4b6db1(0xf6);export const RABETBASE_SKILL_GIT_SOURCE='git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git';export function resolveGlobalSkillName(_0x3db049){const _0x1b34eb=a263_0x4b6db1;switch(_0x3db049[_0x1b34eb(0x109)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x1f8082){const _0x21a55=a263_0x4b6db1,_0xff3b7d=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x1f8082&&_0xff3b7d[_0x21a55(0x103)](NPX_SKILLS_FLAG_SKILL,_0x1f8082),_0xff3b7d;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a263_0x4b6db1(0x117),...buildNpxSkillsAddArgv()][a263_0x4b6db1(0xf5)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a263_0x4b6db1(0x117),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x451569,_0x494c33,_0x1ac9e4){return{'ok':![],'status':_0x494c33,'code':_0x451569,'error':'['+_0x451569+']\x20'+_0x1ac9e4};}function spawnOptions(_0x44c362,_0x17fd05){const _0xebf965=a263_0x4b6db1,_0x4f6f16={...process.env};return delete _0x4f6f16[_0xebf965(0xe5)],delete _0x4f6f16[_0xebf965(0x10e)],{'cwd':_0x44c362,'stdio':_0x17fd05,'env':_0x4f6f16,'shell':![],..._0x17fd05===_0xebf965(0x110)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x1ef5d1,_0x1fe048,_0x109f69,_0x3ea05e){const _0x5e21ae=a263_0x4b6db1,_0x5a6d25=[_0x1ef5d1['stdout']?_0x1ef5d1[_0x5e21ae(0x10f)][_0x5e21ae(0xff)]():'',_0x1ef5d1['stderr']?_0x1ef5d1[_0x5e21ae(0x113)][_0x5e21ae(0xff)]():'']['filter'](Boolean)[_0x5e21ae(0xf5)]('\x0a')[_0x5e21ae(0x109)]();_0x3ea05e!==_0x5e21ae(0x110)&&_0x5a6d25&&console['log'](_0x5a6d25);if(_0x1ef5d1[_0x5e21ae(0xfe)]){const _0x39fab8=_0x1ef5d1[_0x5e21ae(0xfe)],_0x19e788=_0x39fab8[_0x5e21ae(0xe7)]===_0x5e21ae(0x10d)?_0x5e21ae(0xec):_0x39fab8[_0x5e21ae(0xe7)]===_0x5e21ae(0x116)||_0x39fab8['code']===_0x5e21ae(0x10c)?'PERMISSION_DENIED':_0x5e21ae(0xf3);return failure(_0x19e788,_0x1ef5d1[_0x5e21ae(0x100)],_0x39fab8[_0x5e21ae(0x101)]);}if(_0x1ef5d1[_0x5e21ae(0x105)])return failure(_0x5e21ae(0xea),_0x1ef5d1[_0x5e21ae(0x100)],_0x5e21ae(0xf1)+_0x1ef5d1[_0x5e21ae(0x105)]);if(_0x1ef5d1[_0x5e21ae(0x100)]!==0x0)return failure('CHILD_EXIT_NONZERO',_0x1ef5d1[_0x5e21ae(0x100)],_0x5a6d25||'exit\x20'+(_0x1ef5d1[_0x5e21ae(0x100)]??_0x5e21ae(0xe6)));const _0x351cec=_0x1fe048?resolveInstalledSkill(_0x1fe048,_0x109f69):undefined,_0xb958a1=_0x5a6d25['match'](/Failed to install\s+(\d+)/i);if(_0xb958a1&&Number(_0xb958a1[0x1])>0x0){const _0x17a957=_0x5e21ae(0x11a)+_0xb958a1[0x1]+_0x5e21ae(0xe8)+(_0x5a6d25?':\x0a'+_0x5a6d25:'');if(_0x351cec?.[_0x5e21ae(0x106)]==='present')return console[_0x5e21ae(0xf7)]('!\x20'+_0x17a957),{'ok':!![],'status':0x0};return failure(_0x5e21ae(0x112),0x0,_0x17a957);}if(_0x351cec){if(_0x351cec[_0x5e21ae(0x106)]===_0x5e21ae(0x10a))return failure(_0x5e21ae(0xf4),0x0,_0x5e21ae(0x114)+_0x1fe048+'\x22\x20not\x20found\x20after\x20install\x20(checked\x20'+_0x351cec['checked'][_0x5e21ae(0xf5)](',\x20')+')');_0x351cec[_0x5e21ae(0x106)]===_0x5e21ae(0xef)&&console[_0x5e21ae(0xf7)](_0x5e21ae(0xfa)+_0x1fe048+_0x5e21ae(0xf2)+_0x351cec['reason']);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x26e688,_0x22b98f){const _0x31b2dc=a263_0x4b6db1;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x54be44=_0x22b98f?.[_0x31b2dc(0xf0)]??_0x31b2dc(0x104),_0xefffe1=resolveNpmBin(_0x31b2dc(0x117)),_0x28a30b=buildNpxSkillsAddArgv(_0x22b98f?.['skill']),_0x44787d=[_0x31b2dc(0x117),..._0x28a30b][_0x31b2dc(0xf5)]('\x20');console['log']('*\x20'+_0x44787d);const _0x3c6a15=spawnSync(_0xefffe1,_0x28a30b,spawnOptions(_0x26e688,_0x54be44));return normalizeSpawnResult(_0x3c6a15,undefined,undefined,_0x54be44);}export function runNpxSkillsRemove(_0x32ffdd,_0xc721cb,_0x1d241e=LEGACY_RABETBASE_SKILL_SOURCE){const _0x363318=a263_0x4b6db1;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x26a052=_0xc721cb?.['stdio']??'inherit',_0x1c3d86=resolveNpmBin(_0x363318(0x117)),_0x4c7987=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x363318(0x108),_0x1d241e,NPX_SKILLS_FLAG_SKILL,_0xc721cb?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0xc721cb?.[_0x363318(0x111)]?['-y']:[]],_0xb32ffa=[_0x1c3d86,..._0x4c7987][_0x363318(0xf5)]('\x20');console['log']('*\x20'+_0xb32ffa);const _0x12ec6c=spawnSync(_0x1c3d86,_0x4c7987,spawnOptions(_0x32ffdd,_0x26a052));return normalizeSpawnResult(_0x12ec6c,undefined,undefined,_0x26a052);}export function runNpxSkillsAddGlobal(_0x114679,_0x5e298c,_0x5df697){const _0x36ebc4=a263_0x4b6db1;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5f40de=resolveNpmBin('npx'),_0x4191de=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5e298c,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x57cab9=[_0x36ebc4(0x117),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5e298c,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x36ebc4(0xf5)]('\x20');console['log']('*\x20'+_0x57cab9);const _0xb43150=spawnSync(_0x5f40de,_0x4191de,spawnOptions(_0x114679,_0x36ebc4(0x110)));return normalizeSpawnResult(_0xb43150,_0x5df697?.[_0x36ebc4(0xfb)]??resolveGlobalSkillName(_0x5e298c),_0x5df697?.[_0x36ebc4(0x102)],_0x5df697?.['stdio']);}
1
+ const a263_0x207a37=a263_0x3a95;(function(_0xdb3a23,_0x40ab3b){const _0x5b3010=a263_0x3a95,_0x2d05ae=_0xdb3a23();while(!![]){try{const _0x339215=parseInt(_0x5b3010(0xfd))/0x1*(parseInt(_0x5b3010(0xeb))/0x2)+-parseInt(_0x5b3010(0xf1))/0x3*(parseInt(_0x5b3010(0xdc))/0x4)+parseInt(_0x5b3010(0xd5))/0x5+parseInt(_0x5b3010(0xe8))/0x6*(parseInt(_0x5b3010(0xda))/0x7)+parseInt(_0x5b3010(0xee))/0x8*(-parseInt(_0x5b3010(0xe5))/0x9)+-parseInt(_0x5b3010(0xcd))/0xa*(parseInt(_0x5b3010(0xdd))/0xb)+parseInt(_0x5b3010(0xef))/0xc;if(_0x339215===_0x40ab3b)break;else _0x2d05ae['push'](_0x2d05ae['shift']());}catch(_0x55b26e){_0x2d05ae['push'](_0x2d05ae['shift']());}}}(a263_0x2946,0x8a14b));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=a263_0x207a37(0xfc);export const NPX_SKILLS_SUBCOMMAND_ADD=a263_0x207a37(0xe0);export const NPX_SKILLS_FLAG_SKILL=a263_0x207a37(0xde);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a263_0x207a37(0xd8);export const DEFAULT_RABETBASE_SKILL_NAME=a263_0x207a37(0xce);export const RABETBASE_GLOBAL_SKILL_NAME='rabetbase';export const RABETBASE_SKILL_GIT_SOURCE=a263_0x207a37(0xdb);export function resolveGlobalSkillName(_0x29de9a){const _0x11f9fc=a263_0x207a37;switch(_0x29de9a[_0x11f9fc(0xd3)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x226e92){const _0x27649b=a263_0x207a37,_0x5a21fb=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x226e92&&_0x5a21fb[_0x27649b(0xe9)](NPX_SKILLS_FLAG_SKILL,_0x226e92),_0x5a21fb;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a263_0x207a37(0xd4),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x1dadeb,_0x1e76fe,_0x52e862){return{'ok':![],'status':_0x1e76fe,'code':_0x1dadeb,'error':'['+_0x1dadeb+']\x20'+_0x52e862};}function spawnOptions(_0x55501c,_0xe0a7e8){const _0x1c256f=a263_0x207a37,_0x2a1409={...process.env};return delete _0x2a1409[_0x1c256f(0xf3)],delete _0x2a1409[_0x1c256f(0xc9)],{'cwd':_0x55501c,'stdio':_0xe0a7e8,'env':_0x2a1409,'shell':![],..._0xe0a7e8===_0x1c256f(0xe7)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x470541,_0x56527c,_0x256f0f,_0x3b9a9a){const _0x3d7c94=a263_0x207a37,_0xaafed8=[_0x470541[_0x3d7c94(0xcf)]?_0x470541[_0x3d7c94(0xcf)][_0x3d7c94(0xf7)]():'',_0x470541['stderr']?_0x470541['stderr'][_0x3d7c94(0xf7)]():''][_0x3d7c94(0xf9)](Boolean)[_0x3d7c94(0xc8)]('\x0a')[_0x3d7c94(0xd3)]();_0x3b9a9a!==_0x3d7c94(0xe7)&&_0xaafed8&&console['log'](_0xaafed8);if(_0x470541[_0x3d7c94(0xf8)]){const _0x10767d=_0x470541['error'],_0x1780c7=_0x10767d[_0x3d7c94(0xe3)]===_0x3d7c94(0xf6)?_0x3d7c94(0xfa):_0x10767d['code']===_0x3d7c94(0x100)||_0x10767d[_0x3d7c94(0xe3)]===_0x3d7c94(0xd2)?_0x3d7c94(0xcb):_0x3d7c94(0xcc);return failure(_0x1780c7,_0x470541['status'],_0x10767d['message']);}if(_0x470541[_0x3d7c94(0xe6)])return failure('CHILD_TERMINATED',_0x470541[_0x3d7c94(0xd9)],_0x3d7c94(0xca)+_0x470541['signal']);if(_0x470541['status']!==0x0)return failure(_0x3d7c94(0xd6),_0x470541['status'],_0xaafed8||'exit\x20'+(_0x470541[_0x3d7c94(0xd9)]??_0x3d7c94(0xf4)));const _0x27d5e4=_0x56527c?resolveInstalledSkill(_0x56527c,_0x256f0f):undefined,_0x467fe0=_0xaafed8['match'](/Failed to install\s+(\d+)/i);if(_0x467fe0&&Number(_0x467fe0[0x1])>0x0){const _0x5da3dd='Installer\x20reported\x20'+_0x467fe0[0x1]+_0x3d7c94(0xdf)+(_0xaafed8?':\x0a'+_0xaafed8:'');if(_0x27d5e4?.['state']===_0x3d7c94(0xe2))return console['warn']('!\x20'+_0x5da3dd),{'ok':!![],'status':0x0};return failure(_0x3d7c94(0xf5),0x0,_0x5da3dd);}if(_0x27d5e4){if(_0x27d5e4[_0x3d7c94(0xf2)]===_0x3d7c94(0xed))return failure('SKILL_NOT_INSTALLED',0x0,'Skill\x20\x22'+_0x56527c+_0x3d7c94(0xec)+_0x27d5e4[_0x3d7c94(0xfe)]['join'](',\x20')+')');_0x27d5e4['state']===_0x3d7c94(0xd7)&&console[_0x3d7c94(0xd1)](_0x3d7c94(0xfb)+_0x56527c+_0x3d7c94(0xd0)+_0x27d5e4[_0x3d7c94(0xea)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0xc8820c,_0x54804a){const _0x2892d2=a263_0x207a37;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x481320=_0x54804a?.[_0x2892d2(0xe1)]??'inherit',_0xeb9d7e=resolveNpmBin(_0x2892d2(0xd4)),_0x5c7ace=buildNpxSkillsAddArgv(_0x54804a?.[_0x2892d2(0xe4)]),_0x54ef35=[_0x2892d2(0xd4),..._0x5c7ace][_0x2892d2(0xc8)]('\x20');console[_0x2892d2(0xf0)]('*\x20'+_0x54ef35);const _0x413bb5=spawnSync(_0xeb9d7e,_0x5c7ace,spawnOptions(_0xc8820c,_0x481320));return normalizeSpawnResult(_0x413bb5,undefined,undefined,_0x481320);}function a263_0x3a95(_0x1da10c,_0x3eaaf6){_0x1da10c=_0x1da10c-0xc8;const _0x2946bd=a263_0x2946();let _0x3a954b=_0x2946bd[_0x1da10c];return _0x3a954b;}export function runNpxSkillsRemove(_0x386af3,_0x1cabee,_0x5f5ca0=LEGACY_RABETBASE_SKILL_SOURCE){const _0x14c3f5=a263_0x207a37;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5e2603=_0x1cabee?.[_0x14c3f5(0xe1)]??_0x14c3f5(0xff),_0x175b68=resolveNpmBin(_0x14c3f5(0xd4)),_0x6664d0=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x5f5ca0,NPX_SKILLS_FLAG_SKILL,_0x1cabee?.[_0x14c3f5(0xe4)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x1cabee?.['yes']?['-y']:[]],_0x3b992d=[_0x175b68,..._0x6664d0][_0x14c3f5(0xc8)]('\x20');console[_0x14c3f5(0xf0)]('*\x20'+_0x3b992d);const _0x33c67a=spawnSync(_0x175b68,_0x6664d0,spawnOptions(_0x386af3,_0x5e2603));return normalizeSpawnResult(_0x33c67a,undefined,undefined,_0x5e2603);}function a263_0x2946(){const _0x4c3cc5=['11912364MopfkV','log','81vZJNJb','state','npm_config_global','unknown','INSTALL_PARTIAL','ENOENT','toString','error','filter','NPX_NOT_FOUND','!\x20Could\x20not\x20verify\x20\x22','skills@latest','1wweLYG','checked','inherit','EPERM','join','NPM_CONFIG_GLOBAL','npx\x20terminated\x20by\x20signal\x20','PERMISSION_DENIED','SPAWN_FAILED','2057420Qfmyex','Lovrabet','stdout','\x22\x20install\x20state:\x20','warn','EACCES','trim','npx','2165755osAeYW','CHILD_EXIT_NONZERO','unverifiable','lovrabet/lovrabet-skill','status','150262HMdbra','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','58268BEviui','11eCImqI','--skill','\x20failed\x20target(s)','add','stdio','present','code','skill','189MDWNRo','signal','pipe','12orySco','push','reason','1488382WlaijH','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','absent','399368xVFgNM'];a263_0x2946=function(){return _0x4c3cc5;};return a263_0x2946();}export function runNpxSkillsAddGlobal(_0x432e3d,_0x5af451,_0x17e6af){const _0x29d751=a263_0x207a37;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x420179=resolveNpmBin('npx'),_0x5dddf7=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5af451,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x39b645=[_0x29d751(0xd4),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5af451,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x29d751(0xc8)]('\x20');console[_0x29d751(0xf0)]('*\x20'+_0x39b645);const _0xd4d7fe=spawnSync(_0x420179,_0x5dddf7,spawnOptions(_0x432e3d,_0x29d751(0xe7)));return normalizeSpawnResult(_0xd4d7fe,_0x17e6af?.['expectedSkillName']??resolveGlobalSkillName(_0x5af451),_0x17e6af?.['presence'],_0x17e6af?.[_0x29d751(0xe1)]);}
@@ -1 +1 @@
1
- const a264_0x36659a=a264_0x7490;(function(_0x310c5a,_0xacc811){const _0x1c086d=a264_0x7490,_0x20dfb1=_0x310c5a();while(!![]){try{const _0x1f6a7b=-parseInt(_0x1c086d(0x112))/0x1*(-parseInt(_0x1c086d(0x125))/0x2)+-parseInt(_0x1c086d(0x127))/0x3*(-parseInt(_0x1c086d(0x117))/0x4)+-parseInt(_0x1c086d(0x120))/0x5*(parseInt(_0x1c086d(0x11f))/0x6)+parseInt(_0x1c086d(0x113))/0x7*(parseInt(_0x1c086d(0x118))/0x8)+-parseInt(_0x1c086d(0x11e))/0x9+parseInt(_0x1c086d(0x12a))/0xa*(parseInt(_0x1c086d(0x12d))/0xb)+-parseInt(_0x1c086d(0x11a))/0xc;if(_0x1f6a7b===_0xacc811)break;else _0x20dfb1['push'](_0x20dfb1['shift']());}catch(_0x185bac){_0x20dfb1['push'](_0x20dfb1['shift']());}}}(a264_0x3254,0x2764a));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';function a264_0x7490(_0x290168,_0x4a56e5){_0x290168=_0x290168-0x10d;const _0x325446=a264_0x3254();let _0x74908b=_0x325446[_0x290168];return _0x74908b;}function a264_0x3254(){const _0x3d5f99=['.agents','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','lockFile','19MmSjfY','691432LaQJmE','recorded','map','version','48PvDwKH','16ZBBIui','\x20records\x20\x22','5050776LscaBd','\x20uses\x20unsupported\x20version\x20','unverifiable','present','239895ExBZVV','210IiCsJl','28735cATkAP','skills','home','globalSkillsDirs','\x20has\x20no\x20skills\x20map','19246khEhIK','message','55281TaXbpd','reason','join','71910JAArRi','absent','find','319suOjFf','utf8','not-recorded','\x20is\x20unreadable:\x20','unusable','parse'];a264_0x3254=function(){return _0x3d5f99;};return a264_0x3254();}import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a264_0x36659a(0x10f),'.skill-lock.json');export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents',a264_0x36659a(0x121)),join('.claude',a264_0x36659a(0x121))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x39c439,_0x133208){const _0x413921=a264_0x36659a;if(!existsSync(_0x39c439))return{'kind':_0x413921(0x12f)};let _0x3e8087;try{_0x3e8087=JSON[_0x413921(0x10e)](readFileSync(_0x39c439,_0x413921(0x12e)));}catch(_0xc489fd){return{'kind':_0x413921(0x10d),'reason':_0x39c439+_0x413921(0x130)+_0xc489fd[_0x413921(0x126)]};}const _0x546da2=_0x3e8087;if(typeof _0x546da2?.[_0x413921(0x116)]!=='number'||!SUPPORTED_LOCK_VERSIONS['includes'](_0x546da2[_0x413921(0x116)]))return{'kind':_0x413921(0x10d),'reason':_0x39c439+_0x413921(0x11b)+String(_0x546da2?.[_0x413921(0x116)])};if(!_0x546da2[_0x413921(0x121)]||typeof _0x546da2[_0x413921(0x121)]!=='object')return{'kind':_0x413921(0x10d),'reason':_0x39c439+_0x413921(0x124)};return _0x546da2['skills'][_0x133208]?{'kind':_0x413921(0x114)}:{'kind':_0x413921(0x12f)};}export function resolveInstalledSkill(_0x164cc7,_0x166d88){const _0xa6373d=a264_0x36659a,_0x30192f=_0x166d88?.[_0xa6373d(0x122)]??homedir(),_0x4f6ba4=_0x166d88?.[_0xa6373d(0x123)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0xa6373d(0x115)](_0x540ce2=>join(_0x30192f,_0x540ce2)),_0x2024ae=_0x166d88?.[_0xa6373d(0x111)]??join(_0x30192f,SKILL_LOCK_RELATIVE_PATH),_0xca36a2=_0x4f6ba4['map'](_0x4d56fe=>join(_0x4d56fe,_0x164cc7,'SKILL.md')),_0x3a0f82=_0xca36a2[_0xa6373d(0x12c)](_0x1ab317=>existsSync(_0x1ab317));if(_0x3a0f82)return{'state':_0xa6373d(0x11d),'path':_0x3a0f82};const _0x5db1c4=readLockLookup(_0x2024ae,_0x164cc7);if(_0x5db1c4['kind']===_0xa6373d(0x10d))return{'state':_0xa6373d(0x11c),'reason':_0x5db1c4[_0xa6373d(0x128)]};if(_0x5db1c4['kind']===_0xa6373d(0x114))return{'state':_0xa6373d(0x11c),'reason':_0x2024ae+_0xa6373d(0x119)+_0x164cc7+_0xa6373d(0x110)+('('+_0xca36a2[_0xa6373d(0x129)](',\x20')+')')};return{'state':_0xa6373d(0x12b),'checked':_0xca36a2};}
1
+ const a264_0x63c369=a264_0x1051;(function(_0x383b10,_0x12d2a4){const _0x634736=a264_0x1051,_0x4633b7=_0x383b10();while(!![]){try{const _0x490375=parseInt(_0x634736(0x1ad))/0x1+parseInt(_0x634736(0x1b5))/0x2+parseInt(_0x634736(0x1a0))/0x3*(-parseInt(_0x634736(0x199))/0x4)+-parseInt(_0x634736(0x1b6))/0x5*(-parseInt(_0x634736(0x1ac))/0x6)+parseInt(_0x634736(0x196))/0x7*(parseInt(_0x634736(0x1a4))/0x8)+-parseInt(_0x634736(0x19b))/0x9+-parseInt(_0x634736(0x1a1))/0xa;if(_0x490375===_0x12d2a4)break;else _0x4633b7['push'](_0x4633b7['shift']());}catch(_0x3d85a7){_0x4633b7['push'](_0x4633b7['shift']());}}}(a264_0x627a,0x9af8a));import{existsSync,readFileSync}from'node:fs';function a264_0x627a(){const _0x54ac73=['find','version','\x20uses\x20unsupported\x20version\x20','2231280AtLtuW','39095puTjyB','\x20has\x20no\x20skills\x20map','reason','301UJFokr','home','message','100zHebSm','number','10021167ZeLRew','skills','.agents','kind','unverifiable','77358qcqxTR','14807010MHFJHv','parse','absent','210968BWtfhM','.claude','\x20records\x20\x22','unusable','join','object','lockFile','\x20is\x20unreadable:\x20','594ihgubx','849902vEjhVg','not-recorded','recorded','map','.skill-lock.json'];a264_0x627a=function(){return _0x54ac73;};return a264_0x627a();}import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join('.agents',a264_0x63c369(0x1b1));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a264_0x63c369(0x19d),'skills'),join(a264_0x63c369(0x1a5),a264_0x63c369(0x19c))];const SUPPORTED_LOCK_VERSIONS=[0x3];function a264_0x1051(_0x4928de,_0x183736){_0x4928de=_0x4928de-0x195;const _0x627a8b=a264_0x627a();let _0x1051a4=_0x627a8b[_0x4928de];return _0x1051a4;}function readLockLookup(_0x3a19f1,_0x1d9f2d){const _0x3f6297=a264_0x63c369;if(!existsSync(_0x3a19f1))return{'kind':'not-recorded'};let _0x46c4a8;try{_0x46c4a8=JSON[_0x3f6297(0x1a2)](readFileSync(_0x3a19f1,'utf8'));}catch(_0xea9a33){return{'kind':_0x3f6297(0x1a7),'reason':_0x3a19f1+_0x3f6297(0x1ab)+_0xea9a33[_0x3f6297(0x198)]};}const _0x45be23=_0x46c4a8;if(typeof _0x45be23?.[_0x3f6297(0x1b3)]!==_0x3f6297(0x19a)||!SUPPORTED_LOCK_VERSIONS['includes'](_0x45be23[_0x3f6297(0x1b3)]))return{'kind':_0x3f6297(0x1a7),'reason':_0x3a19f1+_0x3f6297(0x1b4)+String(_0x45be23?.[_0x3f6297(0x1b3)])};if(!_0x45be23[_0x3f6297(0x19c)]||typeof _0x45be23[_0x3f6297(0x19c)]!==_0x3f6297(0x1a9))return{'kind':'unusable','reason':_0x3a19f1+_0x3f6297(0x1b7)};return _0x45be23[_0x3f6297(0x19c)][_0x1d9f2d]?{'kind':'recorded'}:{'kind':_0x3f6297(0x1ae)};}export function resolveInstalledSkill(_0x48ea74,_0x3868bf){const _0x5d56ac=a264_0x63c369,_0x1d5220=_0x3868bf?.[_0x5d56ac(0x197)]??homedir(),_0x13bf91=_0x3868bf?.['globalSkillsDirs']??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x5d56ac(0x1b0)](_0x4b29e1=>join(_0x1d5220,_0x4b29e1)),_0x1fe1d8=_0x3868bf?.[_0x5d56ac(0x1aa)]??join(_0x1d5220,SKILL_LOCK_RELATIVE_PATH),_0x4defc6=_0x13bf91[_0x5d56ac(0x1b0)](_0x101c6b=>join(_0x101c6b,_0x48ea74,'SKILL.md')),_0x35f8ad=_0x4defc6[_0x5d56ac(0x1b2)](_0x312683=>existsSync(_0x312683));if(_0x35f8ad)return{'state':'present','path':_0x35f8ad};const _0x371216=readLockLookup(_0x1fe1d8,_0x48ea74);if(_0x371216[_0x5d56ac(0x19e)]===_0x5d56ac(0x1a7))return{'state':'unverifiable','reason':_0x371216[_0x5d56ac(0x195)]};if(_0x371216[_0x5d56ac(0x19e)]===_0x5d56ac(0x1af))return{'state':_0x5d56ac(0x19f),'reason':_0x1fe1d8+_0x5d56ac(0x1a6)+_0x48ea74+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0x4defc6[_0x5d56ac(0x1a8)](',\x20')+')')};return{'state':_0x5d56ac(0x1a3),'checked':_0x4defc6};}
@@ -1 +1 @@
1
- function a265_0x494d(){const _0x264c60=['88LIOibh','4OqBbOT','[REDACTED]','rabetbase.command','400tHSyqr','16SyqtDH','error','3805vgUNJp','command','message','test','604719jsDzwY','2252187wliEYB','entries','service','3075490KuXxWd','durationMs','1289708DLhaFP','some','stringify','1006265zPyBBR','2770326ReDRUV'];a265_0x494d=function(){return _0x264c60;};return a265_0x494d();}(function(_0x13c434,_0x1e8437){const _0xc594c0=a265_0x3a58,_0x321f15=_0x13c434();while(!![]){try{const _0x255e5e=parseInt(_0xc594c0(0x11d))/0x1*(-parseInt(_0xc594c0(0x11a))/0x2)+-parseInt(_0xc594c0(0x10c))/0x3*(parseInt(_0xc594c0(0x117))/0x4)+parseInt(_0xc594c0(0x114))/0x5+-parseInt(_0xc594c0(0x115))/0x6+parseInt(_0xc594c0(0x111))/0x7*(-parseInt(_0xc594c0(0x11b))/0x8)+parseInt(_0xc594c0(0x10b))/0x9+parseInt(_0xc594c0(0x10f))/0xa*(parseInt(_0xc594c0(0x116))/0xb);if(_0x255e5e===_0x1e8437)break;else _0x321f15['push'](_0x321f15['shift']());}catch(_0x301cb6){_0x321f15['push'](_0x321f15['shift']());}}}(a265_0x494d,0x5e752));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 a265_0x3a58(_0x79033,_0x4838a9){_0x79033=_0x79033-0x10b;const _0x494d54=a265_0x494d();let _0x3a58be=_0x494d54[_0x79033];return _0x3a58be;}function isSensitiveKey(_0x90498c){const _0x251d8c=a265_0x3a58;return SENSITIVE_PATTERNS[_0x251d8c(0x112)](_0x5c8081=>_0x5c8081[_0x251d8c(0x120)](_0x90498c));}function sanitizeFlags(_0x25bf1a){const _0x52ff82=a265_0x3a58,_0x2a28ef={};for(const [_0x3611ea,_0x2225ca]of Object[_0x52ff82(0x10d)](_0x25bf1a)){isSensitiveKey(_0x3611ea)?_0x2a28ef[_0x3611ea]=_0x2225ca!=null&&_0x2225ca!==''?_0x52ff82(0x118):_0x2225ca:_0x2a28ef[_0x3611ea]=_0x2225ca;}return _0x2a28ef;}export async function reportCommandTrace(_0x3934d5){const _0x1c6b9b=a265_0x3a58;try{const _0x4eebd4=sanitizeFlags(_0x3934d5['flags']);await sendCliTraceLog({'spanName':_0x1c6b9b(0x119),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x3934d5[_0x1c6b9b(0x10e)],'command.name':_0x3934d5[_0x1c6b9b(0x11e)],'command.flags':JSON[_0x1c6b9b(0x113)](_0x4eebd4),..._0x3934d5[_0x1c6b9b(0x110)]!=null?{'command.duration_ms':_0x3934d5[_0x1c6b9b(0x110)]}:{},..._0x3934d5[_0x1c6b9b(0x11c)]?{'command.error':_0x3934d5[_0x1c6b9b(0x11c)]instanceof Error?_0x3934d5[_0x1c6b9b(0x11c)][_0x1c6b9b(0x11f)]:String(_0x3934d5[_0x1c6b9b(0x11c)])}:{}}});}catch{}}
1
+ (function(_0xfe2276,_0x34879d){const _0x4630af=a265_0x5139,_0x395fe7=_0xfe2276();while(!![]){try{const _0x201b5d=-parseInt(_0x4630af(0x6d))/0x1+-parseInt(_0x4630af(0x7e))/0x2+-parseInt(_0x4630af(0x79))/0x3*(-parseInt(_0x4630af(0x7c))/0x4)+parseInt(_0x4630af(0x6c))/0x5*(parseInt(_0x4630af(0x6e))/0x6)+-parseInt(_0x4630af(0x75))/0x7*(-parseInt(_0x4630af(0x6f))/0x8)+-parseInt(_0x4630af(0x78))/0x9*(parseInt(_0x4630af(0x7d))/0xa)+-parseInt(_0x4630af(0x7f))/0xb*(-parseInt(_0x4630af(0x73))/0xc);if(_0x201b5d===_0x34879d)break;else _0x395fe7['push'](_0x395fe7['shift']());}catch(_0xe0cf51){_0x395fe7['push'](_0x395fe7['shift']());}}}(a265_0x5aea,0x83dc4));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a265_0x5aea(){const _0xb9dfe3=['324007iUwKRA','6253182CvUeBz','24VBkNmY','service','command','entries','146436gBnwOg','[REDACTED]','946281OkKfHs','test','flags','1551276xKwzSP','13839ZHdkhY','stringify','error','284kaPLpv','60AISOHz','2121338SOXBma','1067vqZHhK','message','durationMs','5hBjURF'];a265_0x5aea=function(){return _0xb9dfe3;};return a265_0x5aea();}import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x5f2288){const _0xb997d8=a265_0x5139;return SENSITIVE_PATTERNS['some'](_0x4626db=>_0x4626db[_0xb997d8(0x76)](_0x5f2288));}function a265_0x5139(_0x31a611,_0x53f3ee){_0x31a611=_0x31a611-0x6b;const _0x5aeacd=a265_0x5aea();let _0x5139d8=_0x5aeacd[_0x31a611];return _0x5139d8;}function sanitizeFlags(_0x400fa8){const _0x40ab28=a265_0x5139,_0x54b425={};for(const [_0x5db959,_0x30c17d]of Object[_0x40ab28(0x72)](_0x400fa8)){isSensitiveKey(_0x5db959)?_0x54b425[_0x5db959]=_0x30c17d!=null&&_0x30c17d!==''?_0x40ab28(0x74):_0x30c17d:_0x54b425[_0x5db959]=_0x30c17d;}return _0x54b425;}export async function reportCommandTrace(_0x5f067c){const _0x243f9d=a265_0x5139;try{const _0xf9f7f3=sanitizeFlags(_0x5f067c[_0x243f9d(0x77)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x5f067c[_0x243f9d(0x70)],'command.name':_0x5f067c[_0x243f9d(0x71)],'command.flags':JSON[_0x243f9d(0x7a)](_0xf9f7f3),..._0x5f067c[_0x243f9d(0x6b)]!=null?{'command.duration_ms':_0x5f067c['durationMs']}:{},..._0x5f067c[_0x243f9d(0x7b)]?{'command.error':_0x5f067c[_0x243f9d(0x7b)]instanceof Error?_0x5f067c['error'][_0x243f9d(0x80)]:String(_0x5f067c[_0x243f9d(0x7b)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a266_0x4ef1(_0x363be0,_0x10d655){_0x363be0=_0x363be0-0x7a;var _0x744a84=a266_0x744a();var _0x4ef1cc=_0x744a84[_0x363be0];return _0x4ef1cc;}function a266_0x744a(){var _0x2e4906=['14jaXaDG','626055IJJuBD','99228fEOQzX','5775824bzqsST','63vjQVEE','Failed\x20to\x20report\x20CLI\x20help\x20trace:','error','318mdxPZa','service','1557192Qlhqyr','131090qtwGkJ','9803610FArGQG','cli.help','1203381dLJMcR'];a266_0x744a=function(){return _0x2e4906;};return a266_0x744a();}(function(_0x293cb8,_0x3bc059){var _0x20022d=a266_0x4ef1,_0x1878a5=_0x293cb8();while(!![]){try{var _0x1580a7=parseInt(_0x20022d(0x7b))/0x1+parseInt(_0x20022d(0x83))/0x2+-parseInt(_0x20022d(0x7e))/0x3*(-parseInt(_0x20022d(0x7c))/0x4)+-parseInt(_0x20022d(0x84))/0x5*(-parseInt(_0x20022d(0x81))/0x6)+parseInt(_0x20022d(0x7a))/0x7*(-parseInt(_0x20022d(0x7d))/0x8)+-parseInt(_0x20022d(0x87))/0x9+-parseInt(_0x20022d(0x85))/0xa;if(_0x1580a7===_0x3bc059)break;else _0x1878a5['push'](_0x1878a5['shift']());}catch(_0x58b3e1){_0x1878a5['push'](_0x1878a5['shift']());}}}(a266_0x744a,0xb8d86));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x5c0ae1,_0xb3b29d){var _0xd5f35=a266_0x4ef1;try{await sendCliTraceLog({'spanName':_0xd5f35(0x86),'logData':{'rabetbase.help.kind':_0x5c0ae1,..._0xb3b29d?.[_0xd5f35(0x82)]&&{'rabetbase.help.service':_0xb3b29d[_0xd5f35(0x82)]}}});}catch(_0x17ed16){console[_0xd5f35(0x80)](_0xd5f35(0x7f),_0x17ed16);}}
1
+ (function(_0x45db18,_0x54d348){var _0x40223a=a266_0x3370,_0x503ae0=_0x45db18();while(!![]){try{var _0x4c6ce2=-parseInt(_0x40223a(0x1d7))/0x1*(parseInt(_0x40223a(0x1d6))/0x2)+parseInt(_0x40223a(0x1d3))/0x3+-parseInt(_0x40223a(0x1de))/0x4*(parseInt(_0x40223a(0x1d5))/0x5)+-parseInt(_0x40223a(0x1d4))/0x6+parseInt(_0x40223a(0x1d1))/0x7*(-parseInt(_0x40223a(0x1dd))/0x8)+parseInt(_0x40223a(0x1d0))/0x9+-parseInt(_0x40223a(0x1d8))/0xa*(-parseInt(_0x40223a(0x1dc))/0xb);if(_0x4c6ce2===_0x54d348)break;else _0x503ae0['push'](_0x503ae0['shift']());}catch(_0x2ef685){_0x503ae0['push'](_0x503ae0['shift']());}}}(a266_0x41ac,0xb3a75));function a266_0x41ac(){var _0x40819d=['2632ztkuuF','4wQagSf','646335EDSMTS','19243jdESUp','cli.help','1983531UqQzNu','1350582qwMAxG','6759615IVsxkP','102056idRitp','12pjeOPJ','7460HnzazB','Failed\x20to\x20report\x20CLI\x20help\x20trace:','service','error','45661AEIZTR'];a266_0x41ac=function(){return _0x40819d;};return a266_0x41ac();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a266_0x3370(_0x15766c,_0x4d854d){_0x15766c=_0x15766c-0x1d0;var _0x41ac9e=a266_0x41ac();var _0x3370cb=_0x41ac9e[_0x15766c];return _0x3370cb;}export async function reportCliHelpTrace(_0x33d7af,_0x7f646a){var _0x23f8d1=a266_0x3370;try{await sendCliTraceLog({'spanName':_0x23f8d1(0x1d2),'logData':{'rabetbase.help.kind':_0x33d7af,..._0x7f646a?.['service']&&{'rabetbase.help.service':_0x7f646a[_0x23f8d1(0x1da)]}}});}catch(_0x140464){console[_0x23f8d1(0x1db)](_0x23f8d1(0x1d9),_0x140464);}}
@@ -1 +1 @@
1
- (function(_0x3d595,_0xad4bb7){const _0x35ff66=a267_0x2c2c,_0xc5b594=_0x3d595();while(!![]){try{const _0x5b9ae8=-parseInt(_0x35ff66(0x12e))/0x1+-parseInt(_0x35ff66(0x12a))/0x2*(-parseInt(_0x35ff66(0x131))/0x3)+parseInt(_0x35ff66(0x12c))/0x4+parseInt(_0x35ff66(0x128))/0x5*(-parseInt(_0x35ff66(0x125))/0x6)+-parseInt(_0x35ff66(0x132))/0x7+-parseInt(_0x35ff66(0x124))/0x8+parseInt(_0x35ff66(0x129))/0x9;if(_0x5b9ae8===_0xad4bb7)break;else _0xc5b594['push'](_0xc5b594['shift']());}catch(_0x13b8ed){_0xc5b594['push'](_0xc5b594['shift']());}}}(a267_0x51d8,0x98f85));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a267_0x2c2c(_0x35e38c,_0x146472){_0x35e38c=_0x35e38c-0x123;const _0x51d879=a267_0x51d8();let _0x2c2c4c=_0x51d879[_0x35e38c];return _0x2c2c4c;}import{getConfigAppCode}from'../utils/config.js';function a267_0x51d8(){const _0x11faf8=['6201726TcmiQH','nickname','unknown','5qOZrMs','20956761GmbAQS','2fyrvMK','daily','5011400JYOheC','tenant_code','615902oqBSAr','email','tenant','2001189AlZwoh','6208909iVjOhb','user','8682936mAKRCO'];a267_0x51d8=function(){return _0x11faf8;};return a267_0x51d8();}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x1ffed8=a267_0x2c2c,_0x5d5964=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x1ec2ad=_0x5d5964?.[_0x1ffed8(0x123)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x1ffed8(0x127)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x1ffed8(0x12b):'production')}),setUserContext({'id':_0x1ec2ad?.['id'],'username':_0x1ec2ad?.['username'],'nickname':_0x1ec2ad?.[_0x1ffed8(0x126)],'email':_0x1ec2ad?.[_0x1ffed8(0x12f)],'tenantCode':_0x1ec2ad?.[_0x1ffed8(0x130)]?.[_0x1ffed8(0x12d)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x5d5964;}
1
+ (function(_0x4b87c3,_0x57aeb9){const _0x32bc17=a267_0x3336,_0x5dd07f=_0x4b87c3();while(!![]){try{const _0x12ca30=-parseInt(_0x32bc17(0x89))/0x1+-parseInt(_0x32bc17(0x93))/0x2+-parseInt(_0x32bc17(0x8c))/0x3*(-parseInt(_0x32bc17(0x97))/0x4)+parseInt(_0x32bc17(0x8d))/0x5+-parseInt(_0x32bc17(0x94))/0x6+-parseInt(_0x32bc17(0x96))/0x7*(-parseInt(_0x32bc17(0x90))/0x8)+parseInt(_0x32bc17(0x87))/0x9;if(_0x12ca30===_0x57aeb9)break;else _0x5dd07f['push'](_0x5dd07f['shift']());}catch(_0x3fd28c){_0x5dd07f['push'](_0x5dd07f['shift']());}}}(a267_0x5840,0x87acd));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';function a267_0x3336(_0x49851f,_0x3476d9){_0x49851f=_0x49851f-0x87;const _0x5840ec=a267_0x5840();let _0x33361a=_0x5840ec[_0x49851f];return _0x33361a;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];function a267_0x5840(){const _0xa96f04=['daily','98etMOSp','4MmApDh','14883444YccueJ','tenant_code','81752UZnAde','username','production','302793RPCXOG','539445SPtlYu','user','email','47904bqMpXF','tenant','unknown','961530RICrxE','4968756YondcZ'];a267_0x5840=function(){return _0xa96f04;};return a267_0x5840();}export async function ensureCliOtelTraceConfig(){const _0x5e9155=a267_0x3336,_0x2b1914=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x3e01ba=_0x2b1914?.[_0x5e9155(0x8e)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x5e9155(0x92)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x5e9155(0x95):_0x5e9155(0x8b))}),setUserContext({'id':_0x3e01ba?.['id'],'username':_0x3e01ba?.[_0x5e9155(0x8a)],'nickname':_0x3e01ba?.['nickname'],'email':_0x3e01ba?.[_0x5e9155(0x8f)],'tenantCode':_0x3e01ba?.[_0x5e9155(0x91)]?.[_0x5e9155(0x88)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x2b1914;}
@@ -1 +1 @@
1
- (function(_0x7b8096,_0x147c5b){const _0x2a9105=a268_0x50c3,_0x37ebfc=_0x7b8096();while(!![]){try{const _0x54f922=-parseInt(_0x2a9105(0x10a))/0x1*(-parseInt(_0x2a9105(0x103))/0x2)+-parseInt(_0x2a9105(0x10e))/0x3*(-parseInt(_0x2a9105(0x106))/0x4)+-parseInt(_0x2a9105(0x107))/0x5+parseInt(_0x2a9105(0x100))/0x6*(-parseInt(_0x2a9105(0x10d))/0x7)+parseInt(_0x2a9105(0x101))/0x8+-parseInt(_0x2a9105(0x108))/0x9+-parseInt(_0x2a9105(0x10b))/0xa*(-parseInt(_0x2a9105(0x104))/0xb);if(_0x54f922===_0x147c5b)break;else _0x37ebfc['push'](_0x37ebfc['shift']());}catch(_0x48e246){_0x37ebfc['push'](_0x37ebfc['shift']());}}}(a268_0x526e,0x91d64));import{shutdownTraces}from'@lovrabet/otel-logger';function a268_0x50c3(_0x2fc47e,_0x594b9f){_0x2fc47e=_0x2fc47e-0x100;const _0x526ea5=a268_0x526e();let _0x50c3de=_0x526ea5[_0x2fc47e];return _0x50c3de;}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x5a226c=a268_0x50c3;process[_0x5a226c(0x109)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x4f3008=()=>{const _0x38c8a7=_0x5a226c;void flushOtelNodeIfUsed()[_0x38c8a7(0x102)](()=>process['exit'](0x0));};process[_0x5a226c(0x109)](_0x5a226c(0x105),_0x4f3008),process[_0x5a226c(0x109)](_0x5a226c(0x10c),_0x4f3008);}function a268_0x526e(){const _0x431b4f=['59507DXvSdu','6ADUjdL','594osYHCK','2268752SariyD','then','1272756FwcJYk','821579FnSbBs','SIGINT','506324VkWFFk','1022660JPArCb','7194312jFzVVc','once','1BZpOUC','170rXQroZ','SIGTERM'];a268_0x526e=function(){return _0x431b4f;};return a268_0x526e();}export async function exitWithOtelShutdown(_0x5af5c4){await flushOtelNodeIfUsed(),process['exit'](_0x5af5c4);}
1
+ (function(_0x1bba21,_0xb15dcc){const _0x4f888d=a268_0x5bd6,_0x482599=_0x1bba21();while(!![]){try{const _0x22ff35=parseInt(_0x4f888d(0xd9))/0x1*(parseInt(_0x4f888d(0xcf))/0x2)+-parseInt(_0x4f888d(0xd1))/0x3*(parseInt(_0x4f888d(0xd0))/0x4)+-parseInt(_0x4f888d(0xd8))/0x5*(-parseInt(_0x4f888d(0xd2))/0x6)+parseInt(_0x4f888d(0xcd))/0x7+-parseInt(_0x4f888d(0xda))/0x8+parseInt(_0x4f888d(0xd4))/0x9+-parseInt(_0x4f888d(0xd6))/0xa;if(_0x22ff35===_0xb15dcc)break;else _0x482599['push'](_0x482599['shift']());}catch(_0x250b42){_0x482599['push'](_0x482599['shift']());}}}(a268_0x1443,0xaf650));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a268_0x5bd6(_0x4a0930,_0x48cdb2){_0x4a0930=_0x4a0930-0xcc;const _0x144366=a268_0x1443();let _0x5bd6d5=_0x144366[_0x4a0930];return _0x5bd6d5;}export function registerOtelShutdownOnExit(){const _0x52e0bf=a268_0x5bd6;process[_0x52e0bf(0xce)](_0x52e0bf(0xcc),()=>{void flushOtelNodeIfUsed();});const _0x1cafef=()=>{const _0xec668=_0x52e0bf;void flushOtelNodeIfUsed()[_0xec668(0xd7)](()=>process[_0xec668(0xd3)](0x0));};process[_0x52e0bf(0xce)]('SIGINT',_0x1cafef),process['once'](_0x52e0bf(0xd5),_0x1cafef);}function a268_0x1443(){const _0xe91591=['beforeExit','2637446bSjGKo','once','2LkHwdH','1958644OiDAoz','3Iawyyl','1700310lMKVjC','exit','5713884cJdCxR','SIGTERM','18584620ByuRtx','then','15HosQqi','1368773XDVwab','1312344RHoVch'];a268_0x1443=function(){return _0xe91591;};return a268_0x1443();}export async function exitWithOtelShutdown(_0x4a8aa0){const _0x543caa=a268_0x5bd6;await flushOtelNodeIfUsed(),process[_0x543caa(0xd3)](_0x4a8aa0);}
@@ -1 +1 @@
1
- function a269_0x3873(_0x81dddd,_0x38babb){_0x81dddd=_0x81dddd-0x70;const _0x18c267=a269_0x18c2();let _0x387359=_0x18c267[_0x81dddd];return _0x387359;}(function(_0x4fc937,_0xb2239b){const _0x3e1177=a269_0x3873,_0x2c36d6=_0x4fc937();while(!![]){try{const _0x2bc952=parseInt(_0x3e1177(0x7d))/0x1+-parseInt(_0x3e1177(0x7c))/0x2+-parseInt(_0x3e1177(0x7e))/0x3*(-parseInt(_0x3e1177(0x78))/0x4)+parseInt(_0x3e1177(0x75))/0x5*(parseInt(_0x3e1177(0x79))/0x6)+-parseInt(_0x3e1177(0x70))/0x7*(-parseInt(_0x3e1177(0x74))/0x8)+-parseInt(_0x3e1177(0x7a))/0x9+-parseInt(_0x3e1177(0x76))/0xa*(parseInt(_0x3e1177(0x77))/0xb);if(_0x2bc952===_0xb2239b)break;else _0x2c36d6['push'](_0x2c36d6['shift']());}catch(_0x2bbd72){_0x2c36d6['push'](_0x2c36d6['shift']());}}}(a269_0x18c2,0x635f9));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a269_0x18c2(){const _0x1f948b=['61770BffIKu','572Zrjajk','12eIGNSZ','4783962yEKEpH','5344533pOvFRm','manual','800744olNROL','93360jQLUDl','411771yaRKgW','434TXJEbo','logData','spanName','traceparent','54192XaetNN','5WwRanF'];a269_0x18c2=function(){return _0x1f948b;};return a269_0x18c2();}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';export async function sendCliTraceLog(_0x24df52){const _0x327a41=a269_0x3873;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x24df52['traceName']??DEFAULT_TRACE_NAME,'version':_0x24df52['version']??getCliVersion(),'spanName':_0x24df52[_0x327a41(0x72)],'eventType':_0x327a41(0x7b),'logData':_0x24df52[_0x327a41(0x71)],..._0x24df52[_0x327a41(0x73)]&&{'traceparent':_0x24df52[_0x327a41(0x73)]}});}
1
+ const a269_0x2198b6=a269_0x2af4;function a269_0x544c(){const _0x45573f=['7964883wDkeFC','9345nxxVwm','version','3821600nKEVPG','7138145MVivSf','142YJHKBh','6vnpJPC','rabetbase-cli','19790UXAnyx','spanName','930268JJzIMY','64LeIdJz','traceName','manual','logData','707624SDRYVQ','traceparent'];a269_0x544c=function(){return _0x45573f;};return a269_0x544c();}(function(_0x37c999,_0x245b30){const _0x5583f3=a269_0x2af4,_0x409301=_0x37c999();while(!![]){try{const _0x1bef0d=-parseInt(_0x5583f3(0x1f7))/0x1+parseInt(_0x5583f3(0x1f2))/0x2*(parseInt(_0x5583f3(0x1ee))/0x3)+parseInt(_0x5583f3(0x1f8))/0x4*(-parseInt(_0x5583f3(0x1f5))/0x5)+parseInt(_0x5583f3(0x1f3))/0x6*(parseInt(_0x5583f3(0x1f1))/0x7)+-parseInt(_0x5583f3(0x1eb))/0x8+parseInt(_0x5583f3(0x1ed))/0x9+-parseInt(_0x5583f3(0x1f0))/0xa;if(_0x1bef0d===_0x245b30)break;else _0x409301['push'](_0x409301['shift']());}catch(_0x2b30a6){_0x409301['push'](_0x409301['shift']());}}}(a269_0x544c,0xa18ae));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a269_0x2198b6(0x1f4);function a269_0x2af4(_0x544450,_0x2730dd){_0x544450=_0x544450-0x1eb;const _0x544c7c=a269_0x544c();let _0x2af496=_0x544c7c[_0x544450];return _0x2af496;}export async function sendCliTraceLog(_0x183abc){const _0x57348f=a269_0x2198b6;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x183abc[_0x57348f(0x1f9)]??DEFAULT_TRACE_NAME,'version':_0x183abc[_0x57348f(0x1ef)]??getCliVersion(),'spanName':_0x183abc[_0x57348f(0x1f6)],'eventType':_0x57348f(0x1fa),'logData':_0x183abc[_0x57348f(0x1fb)],..._0x183abc['traceparent']&&{'traceparent':_0x183abc[_0x57348f(0x1ec)]}});}
@@ -1 +1 @@
1
- function a270_0xddb5(){const _0xa80837=['truncated','4pVtZdY','platform-issue-log-collect','originalBytes','1362430wLOgmO','redactionCount','sanitize','1335850ygxpWu','join','2835992wnjJAY','1614QOKSJM','issue.log.collect','7840IHFqjX','title','1031883OxqKrF','3505374cvAMOh','626529zXdazq'];a270_0xddb5=function(){return _0xa80837;};return a270_0xddb5();}const a270_0x1e7cac=a270_0x2f89;(function(_0x458d79,_0x453c44){const _0x3dc7d1=a270_0x2f89,_0x102cb1=_0x458d79();while(!![]){try{const _0x3ead69=parseInt(_0x3dc7d1(0xbc))/0x1+-parseInt(_0x3dc7d1(0xc1))/0x2+-parseInt(_0x3dc7d1(0xba))/0x3+-parseInt(_0x3dc7d1(0xbe))/0x4*(parseInt(_0x3dc7d1(0xb3))/0x5)+parseInt(_0x3dc7d1(0xb6))/0x6*(parseInt(_0x3dc7d1(0xb8))/0x7)+parseInt(_0x3dc7d1(0xb5))/0x8+parseInt(_0x3dc7d1(0xbb))/0x9;if(_0x3ead69===_0x453c44)break;else _0x102cb1['push'](_0x102cb1['shift']());}catch(_0x2fa6ba){_0x102cb1['push'](_0x102cb1['shift']());}}}(a270_0xddb5,0x5ca38));function a270_0x2f89(_0x1c16e2,_0x1953fe){_0x1c16e2=_0x1c16e2-0xb2;const _0xddb510=a270_0xddb5();let _0x2f891c=_0xddb510[_0x1c16e2];return _0x2f891c;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a270_0x1e7cac(0xbf);export const PLATFORM_ISSUE_SPAN_NAME=a270_0x1e7cac(0xb7);export async function sendPlatformIssueCollectLog(_0x2df55d){const _0x384ddf=a270_0x1e7cac;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x2df55d[_0x384ddf(0xb9)],'issue.description':_0x2df55d['description'],..._0x2df55d[_0x384ddf(0xb2)]?{'issue.description_original_bytes':_0x2df55d['sanitize'][_0x384ddf(0xc0)],'issue.description_truncated':_0x2df55d[_0x384ddf(0xb2)][_0x384ddf(0xbd)],'issue.description_redactions':_0x2df55d[_0x384ddf(0xb2)][_0x384ddf(0xc2)],'issue.description_redaction_kinds':_0x2df55d[_0x384ddf(0xb2)]['redactionKinds'][_0x384ddf(0xb4)](',')}:{}}});}
1
+ const a270_0x2ae8ce=a270_0x4ef6;(function(_0xe97320,_0x257f92){const _0x4a30d0=a270_0x4ef6,_0x313b3f=_0xe97320();while(!![]){try{const _0xeb401c=-parseInt(_0x4a30d0(0xe7))/0x1+parseInt(_0x4a30d0(0xe8))/0x2*(parseInt(_0x4a30d0(0xf7))/0x3)+-parseInt(_0x4a30d0(0xf2))/0x4*(parseInt(_0x4a30d0(0xf5))/0x5)+-parseInt(_0x4a30d0(0xf0))/0x6+parseInt(_0x4a30d0(0xf4))/0x7*(parseInt(_0x4a30d0(0xe9))/0x8)+parseInt(_0x4a30d0(0xea))/0x9*(parseInt(_0x4a30d0(0xeb))/0xa)+parseInt(_0x4a30d0(0xe5))/0xb;if(_0xeb401c===_0x257f92)break;else _0x313b3f['push'](_0x313b3f['shift']());}catch(_0x2503ba){_0x313b3f['push'](_0x313b3f['shift']());}}}(a270_0x2b08,0x9da64));function a270_0x2b08(){const _0x4b4e07=['7442072LccERw','sanitize','993466rQLyeZ','1182JqXaeU','136RJxUKo','74880ocYVDm','600UJHaSY','issue.log.collect','redactionCount','description','redactionKinds','42522JQRaBX','join','118744kefkWZ','title','340732zJhPgc','65uHGQWY','originalBytes','147zvTLxC','truncated'];a270_0x2b08=function(){return _0x4b4e07;};return a270_0x2b08();}function a270_0x4ef6(_0x1123e8,_0x1114b6){_0x1123e8=_0x1123e8-0xe4;const _0x2b085d=a270_0x2b08();let _0x4ef654=_0x2b085d[_0x1123e8];return _0x4ef654;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a270_0x2ae8ce(0xec);export async function sendPlatformIssueCollectLog(_0x584712){const _0x443c4e=a270_0x2ae8ce;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x584712[_0x443c4e(0xf3)],'issue.description':_0x584712[_0x443c4e(0xee)],..._0x584712[_0x443c4e(0xe6)]?{'issue.description_original_bytes':_0x584712[_0x443c4e(0xe6)][_0x443c4e(0xf6)],'issue.description_truncated':_0x584712[_0x443c4e(0xe6)][_0x443c4e(0xe4)],'issue.description_redactions':_0x584712['sanitize'][_0x443c4e(0xed)],'issue.description_redaction_kinds':_0x584712[_0x443c4e(0xe6)][_0x443c4e(0xef)][_0x443c4e(0xf1)](',')}:{}}});}