@lovrabet/rabetbase-cli 2.3.16-beta.5 → 2.3.16-beta.7

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 (278) 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/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff.js +1 -1
  87. package/lib/commands/db/index.js +1 -1
  88. package/lib/commands/db/list.js +1 -1
  89. package/lib/commands/db/shared.js +1 -1
  90. package/lib/commands/db/tables.js +1 -1
  91. package/lib/commands/db/test.js +1 -1
  92. package/lib/commands/db/update.js +1 -1
  93. package/lib/commands/doctor.js +1 -1
  94. package/lib/commands/file/index.js +1 -1
  95. package/lib/commands/init/index.js +1 -1
  96. package/lib/commands/issue/index.js +1 -1
  97. package/lib/commands/issue/nudge.js +1 -1
  98. package/lib/commands/issue/report.js +1 -1
  99. package/lib/commands/issue/shared.js +1 -1
  100. package/lib/commands/kb/create.js +1 -1
  101. package/lib/commands/kb/delete.js +1 -1
  102. package/lib/commands/kb/detail.js +1 -1
  103. package/lib/commands/kb/index.js +1 -1
  104. package/lib/commands/kb/list.js +1 -1
  105. package/lib/commands/kb/shared.js +1 -1
  106. package/lib/commands/kb/update.js +1 -1
  107. package/lib/commands/logs/index.js +1 -1
  108. package/lib/commands/menu/asset-update.js +1 -1
  109. package/lib/commands/menu/delete.js +1 -1
  110. package/lib/commands/menu/external-link-create.js +1 -1
  111. package/lib/commands/menu/external-link-update.js +1 -1
  112. package/lib/commands/menu/group-create.js +1 -1
  113. package/lib/commands/menu/group-update.js +1 -1
  114. package/lib/commands/menu/index.js +1 -1
  115. package/lib/commands/menu/list.js +1 -1
  116. package/lib/commands/menu/move.js +1 -1
  117. package/lib/commands/menu/regroup-start.js +1 -1
  118. package/lib/commands/menu/rename.js +1 -1
  119. package/lib/commands/menu/shared/compare-table.js +1 -1
  120. package/lib/commands/menu/shared/delete-plan.js +1 -1
  121. package/lib/commands/menu/shared/facts.js +1 -1
  122. package/lib/commands/menu/shared/index.js +1 -1
  123. package/lib/commands/menu/shared/inquirer.js +1 -1
  124. package/lib/commands/menu/shared/local-pages.js +1 -1
  125. package/lib/commands/menu/shared/logic.js +1 -1
  126. package/lib/commands/menu/shared/mutations.js +1 -1
  127. package/lib/commands/menu/shared/service.js +1 -1
  128. package/lib/commands/menu/shared/sync-core.js +1 -1
  129. package/lib/commands/menu/shared/update-core.js +1 -1
  130. package/lib/commands/menu/shared/valid-url.js +1 -1
  131. package/lib/commands/menu/sync.js +1 -1
  132. package/lib/commands/notification/config-list.js +1 -1
  133. package/lib/commands/notification/index.js +1 -1
  134. package/lib/commands/ocr/index.js +1 -1
  135. package/lib/commands/page/generate-start.js +1 -1
  136. package/lib/commands/page/generate-status.js +1 -1
  137. package/lib/commands/page/index.js +1 -1
  138. package/lib/commands/page/pull.js +1 -1
  139. package/lib/commands/page/push.js +1 -1
  140. package/lib/commands/page/relation-audit.js +1 -1
  141. package/lib/commands/page/restore.js +1 -1
  142. package/lib/commands/page/shared.js +1 -1
  143. package/lib/commands/page/standard-page-status.js +1 -1
  144. package/lib/commands/page/sync.js +1 -1
  145. package/lib/commands/permit/index.js +1 -1
  146. package/lib/commands/permit/page-get.js +1 -1
  147. package/lib/commands/permit/page-set.js +1 -1
  148. package/lib/commands/permit/role-apis-set.js +1 -1
  149. package/lib/commands/permit/role-menus-set.js +1 -1
  150. package/lib/commands/permit/role-menus.js +1 -1
  151. package/lib/commands/permit/shared.js +1 -1
  152. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  153. package/lib/commands/project/create/format-elapsed.js +1 -1
  154. package/lib/commands/project/create/main.js +1 -1
  155. package/lib/commands/project/create/non-interactive.js +1 -1
  156. package/lib/commands/project/create/project-template-path.js +1 -1
  157. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  158. package/lib/commands/project/create/use-format-code.js +1 -1
  159. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  160. package/lib/commands/project/index.js +1 -1
  161. package/lib/commands/project/upgrade.js +1 -1
  162. package/lib/commands/registry.js +1 -1
  163. package/lib/commands/role/create.js +1 -1
  164. package/lib/commands/role/delete.js +1 -1
  165. package/lib/commands/role/detail.js +1 -1
  166. package/lib/commands/role/index.js +1 -1
  167. package/lib/commands/role/list.js +1 -1
  168. package/lib/commands/role/shared.js +1 -1
  169. package/lib/commands/role/update.js +1 -1
  170. package/lib/commands/role/user-add.js +1 -1
  171. package/lib/commands/role/user-remove.js +1 -1
  172. package/lib/commands/role/user-resolve.js +1 -1
  173. package/lib/commands/run/index.js +1 -1
  174. package/lib/commands/schema.js +1 -1
  175. package/lib/commands/sql/create.js +1 -1
  176. package/lib/commands/sql/delete.js +1 -1
  177. package/lib/commands/sql/detail.js +1 -1
  178. package/lib/commands/sql/exec.js +1 -1
  179. package/lib/commands/sql/index.js +1 -1
  180. package/lib/commands/sql/list.js +1 -1
  181. package/lib/commands/sql/pull.js +1 -1
  182. package/lib/commands/sql/push.js +1 -1
  183. package/lib/commands/sql/shared.js +1 -1
  184. package/lib/commands/sql/status.js +1 -1
  185. package/lib/commands/sql/validate.js +1 -1
  186. package/lib/commands/task/index.js +1 -1
  187. package/lib/commands/task/status.js +1 -1
  188. package/lib/commands/tenant/index.js +1 -1
  189. package/lib/commands/tenant/members-list.js +1 -1
  190. package/lib/commands/tenant/shared.js +1 -1
  191. package/lib/commands/workspace/add.js +1 -1
  192. package/lib/commands/workspace/index.js +1 -1
  193. package/lib/commands/workspace/remove.js +1 -1
  194. package/lib/config/schema.js +1 -1
  195. package/lib/constant/cdn.js +1 -1
  196. package/lib/constant/cli.js +1 -1
  197. package/lib/constant/defaults.js +1 -1
  198. package/lib/constant/domain.js +1 -1
  199. package/lib/constant/env.js +1 -1
  200. package/lib/constant/output.js +1 -1
  201. package/lib/constant/paths.js +1 -1
  202. package/lib/constant/risk.js +1 -1
  203. package/lib/context/app-resolver.js +1 -1
  204. package/lib/context/auth-resolver.js +1 -1
  205. package/lib/context/config-loader.js +1 -1
  206. package/lib/context.js +1 -1
  207. package/lib/core/alias-resolver.js +1 -1
  208. package/lib/core/api-client.js +1 -1
  209. package/lib/core/bff/config.js +1 -1
  210. package/lib/core/bff/file-system.js +1 -1
  211. package/lib/core/bff/hash.js +1 -1
  212. package/lib/core/bff/lock.js +1 -1
  213. package/lib/core/bff/utils.js +1 -1
  214. package/lib/core/db-resolver.js +1 -1
  215. package/lib/core/page/file-system.js +1 -1
  216. package/lib/core/page/hash.js +1 -1
  217. package/lib/core/page/lock.js +1 -1
  218. package/lib/core/sql-index-auditor.js +1 -1
  219. package/lib/core/sql-sync/config.js +1 -1
  220. package/lib/core/sql-sync/file-system.js +1 -1
  221. package/lib/core/sql-sync/hash.js +1 -1
  222. package/lib/core/sql-sync/lock.js +1 -1
  223. package/lib/core/sql-sync/utils.js +1 -1
  224. package/lib/core/sql-validator.js +1 -1
  225. package/lib/errors.js +1 -1
  226. package/lib/framework/build-all-flags.js +1 -1
  227. package/lib/framework/error-output.js +1 -1
  228. package/lib/framework/explicit-yes.js +1 -1
  229. package/lib/framework/flags.js +1 -1
  230. package/lib/framework/help.js +1 -1
  231. package/lib/framework/index.js +1 -1
  232. package/lib/framework/output.js +1 -1
  233. package/lib/framework/response.js +1 -1
  234. package/lib/framework/runner-alias.js +1 -1
  235. package/lib/framework/runner.js +1 -1
  236. package/lib/framework/schema-export.js +1 -1
  237. package/lib/framework/types.js +1 -1
  238. package/lib/generated/build-info.d.ts +4 -4
  239. package/lib/generated/build-info.js +1 -1
  240. package/lib/help.js +1 -1
  241. package/lib/runtime/confirmation.js +1 -1
  242. package/lib/runtime/event.js +1 -1
  243. package/lib/runtime/index.js +1 -1
  244. package/lib/runtime/queue.js +1 -1
  245. package/lib/runtime/resolve.js +1 -1
  246. package/lib/skills/main.js +1 -1
  247. package/lib/skills/npx-skills-add.js +1 -1
  248. package/lib/skills/skill-presence.js +1 -1
  249. package/lib/telemetry/cli-command-trace.js +1 -1
  250. package/lib/telemetry/cli-help-trace.js +1 -1
  251. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  252. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  253. package/lib/telemetry/send-cli-trace-log.js +1 -1
  254. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  255. package/lib/utils/ai_config.js +1 -1
  256. package/lib/utils/apply-jq-filter.js +1 -1
  257. package/lib/utils/cdn-config.js +1 -1
  258. package/lib/utils/check-sdk-version.js +1 -1
  259. package/lib/utils/cli-version-check.js +1 -1
  260. package/lib/utils/cli-version-policy.js +1 -1
  261. package/lib/utils/config.js +1 -1
  262. package/lib/utils/copy-directory.js +1 -1
  263. package/lib/utils/entity-with-id.js +1 -1
  264. package/lib/utils/file-utils.js +1 -1
  265. package/lib/utils/guides-cdn.js +1 -1
  266. package/lib/utils/http-client.js +1 -1
  267. package/lib/utils/is-non-interactive.js +1 -1
  268. package/lib/utils/logger.js +1 -1
  269. package/lib/utils/params.js +1 -1
  270. package/lib/utils/platform.js +1 -1
  271. package/lib/utils/rules-cdn.js +1 -1
  272. package/lib/utils/sleep.js +1 -1
  273. package/lib/utils/template-replacer.js +1 -1
  274. package/lib/utils/update-notice.js +1 -1
  275. package/lib/utils/version.js +1 -1
  276. package/lib/utils/with-active-cookie.js +1 -1
  277. package/lib/utils/write-cli-side-channel.js +1 -1
  278. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x43171d,_0x29e607){const _0x5ad467=a235_0x5d6d,_0x3044a5=_0x43171d();while(!![]){try{const _0xf8645f=-parseInt(_0x5ad467(0x12b))/0x1*(parseInt(_0x5ad467(0x133))/0x2)+parseInt(_0x5ad467(0x135))/0x3*(parseInt(_0x5ad467(0x134))/0x4)+-parseInt(_0x5ad467(0x142))/0x5*(-parseInt(_0x5ad467(0x13f))/0x6)+parseInt(_0x5ad467(0x13a))/0x7+-parseInt(_0x5ad467(0x140))/0x8+-parseInt(_0x5ad467(0x145))/0x9+parseInt(_0x5ad467(0x139))/0xa*(-parseInt(_0x5ad467(0x12c))/0xb);if(_0xf8645f===_0x29e607)break;else _0x3044a5['push'](_0x3044a5['shift']());}catch(_0xecad75){_0x3044a5['push'](_0x3044a5['shift']());}}}(a235_0x2579,0xb811d));function a235_0x5d6d(_0x30a2cd,_0x341b86){_0x30a2cd=_0x30a2cd-0x12b;const _0x25790c=a235_0x2579();let _0x5d6d88=_0x25790c[_0x30a2cd];return _0x5d6d88;}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a235_0x2579(){const _0x16d5bf=['stdout','endsWith','442330HcsEAs','815458VXJFyl','jqFilter','stringify','hint','url','4320588bSkLeb','1326504obNknD','risk','5ZgbxOS','message','json','3343302grtXwP','write','705803UbZzzk','77QLrXYJ','update','error','pretty','format','trim','code','2yXfRql','16244BbXAFm','1086bsSgWZ','_notice'];a235_0x2579=function(){return _0x16d5bf;};return a235_0x2579();}import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0xd22b08,_0x40fb7c){const _0x31d791=a235_0x5d6d,_0xe33d42=_0xd22b08[_0x31d791(0x136)],{_notice:_0x8bd63f,..._0x38d01d}=_0xd22b08;void _0x8bd63f,baseFormatOutput(_0x38d01d,_0x40fb7c),_0x40fb7c[_0x31d791(0x130)]===_0x31d791(0x12f)&&printPrettyNotice(_0xe33d42);}export function formatCliError(_0x25bf61,_0x1ee673){const _0x2d79f1=a235_0x5d6d;if(_0x1ee673[_0x2d79f1(0x130)]===_0x2d79f1(0x12f))return![];const _0x429d64=_0x25bf61['data'],_0x3c6042={'ok':![],'command':_0x1ee673['command'],'risk':_0x1ee673[_0x2d79f1(0x141)],'data':_0x429d64??null,'error':{'code':_0x25bf61[_0x2d79f1(0x132)],'message':_0x25bf61[_0x2d79f1(0x143)],..._0x25bf61[_0x2d79f1(0x13d)]?{'hint':_0x25bf61[_0x2d79f1(0x13d)]}:{}}},_0x4ff94e=_0x1ee673[_0x2d79f1(0x130)]===_0x2d79f1(0x144)?JSON[_0x2d79f1(0x13c)](_0x3c6042,null,0x2):JSON[_0x2d79f1(0x13c)](_0x3c6042);let _0x304e8f=_0x4ff94e;if(_0x1ee673[_0x2d79f1(0x13b)]?.[_0x2d79f1(0x131)]())try{_0x304e8f=applyJqFilter(_0x4ff94e,_0x1ee673[_0x2d79f1(0x13b)]);}catch(_0x45ffb4){const _0x5d1a22=_0x45ffb4 instanceof CliError?_0x45ffb4:CliErrors['validation']('jq:\x20'+(_0x45ffb4 instanceof Error?_0x45ffb4[_0x2d79f1(0x143)]:String(_0x45ffb4))),_0x4d8512={..._0x3c6042,'error':{'code':_0x5d1a22[_0x2d79f1(0x132)],'message':_0x5d1a22[_0x2d79f1(0x143)],..._0x5d1a22[_0x2d79f1(0x13d)]?{'hint':_0x5d1a22['hint']}:{},'cause':_0x3c6042[_0x2d79f1(0x12e)]}};_0x304e8f=_0x1ee673['format']===_0x2d79f1(0x144)?JSON[_0x2d79f1(0x13c)](_0x4d8512,null,0x2):JSON[_0x2d79f1(0x13c)](_0x4d8512);}return process[_0x2d79f1(0x137)][_0x2d79f1(0x146)](_0x304e8f[_0x2d79f1(0x138)]('\x0a')?_0x304e8f:_0x304e8f+'\x0a'),!![];}function printPrettyNotice(_0x146078){const _0x30a599=a235_0x5d6d;if(!_0x146078?.[_0x30a599(0x12d)])return;console[_0x30a599(0x12e)](_0x146078[_0x30a599(0x12d)][_0x30a599(0x143)]+'\x20('+_0x146078[_0x30a599(0x12d)][_0x30a599(0x13e)]+')');}
1
+ function a235_0x28ec(){const _0x1e6e6c=['pretty','jq:\x20','trim','code','data','2772904ZKZRON','489340zeJbDP','256143VmlOAB','168294uuzwvr','stringify','_notice','url','json','format','validation','4bxqFXd','182532AJVlTc','jqFilter','message','hint','endsWith','error','stdout','update','145952zWIuXR','664668zwdILm','write','risk'];a235_0x28ec=function(){return _0x1e6e6c;};return a235_0x28ec();}(function(_0x140de8,_0x24f180){const _0x3424f5=a235_0x23b9,_0x14f8db=_0x140de8();while(!![]){try{const _0x2060be=-parseInt(_0x3424f5(0x16f))/0x1+-parseInt(_0x3424f5(0x182))/0x2*(parseInt(_0x3424f5(0x17a))/0x3)+parseInt(_0x3424f5(0x170))/0x4+-parseInt(_0x3424f5(0x179))/0x5+parseInt(_0x3424f5(0x183))/0x6+-parseInt(_0x3424f5(0x17b))/0x7+parseInt(_0x3424f5(0x178))/0x8;if(_0x2060be===_0x24f180)break;else _0x14f8db['push'](_0x14f8db['shift']());}catch(_0x3130b1){_0x14f8db['push'](_0x14f8db['shift']());}}}(a235_0x28ec,0x19882));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a235_0x23b9(_0x23e365,_0xd00066){_0x23e365=_0x23e365-0x16b;const _0x28ec73=a235_0x28ec();let _0x23b9c2=_0x28ec73[_0x23e365];return _0x23b9c2;}export function formatOutput(_0x4dc423,_0x293b08){const _0xf2ccbf=a235_0x23b9,_0x1360b0=_0x4dc423[_0xf2ccbf(0x17d)],{_notice:_0x3b36de,..._0x66ece3}=_0x4dc423;void _0x3b36de,baseFormatOutput(_0x66ece3,_0x293b08),_0x293b08[_0xf2ccbf(0x180)]===_0xf2ccbf(0x173)&&printPrettyNotice(_0x1360b0);}export function formatCliError(_0x3a5052,_0x15e143){const _0x4f1012=a235_0x23b9;if(_0x15e143[_0x4f1012(0x180)]===_0x4f1012(0x173))return![];const _0x4fca2a=_0x3a5052[_0x4f1012(0x177)],_0x2ec819={'ok':![],'command':_0x15e143['command'],'risk':_0x15e143[_0x4f1012(0x172)],'data':_0x4fca2a??null,'error':{'code':_0x3a5052['code'],'message':_0x3a5052[_0x4f1012(0x185)],..._0x3a5052[_0x4f1012(0x186)]?{'hint':_0x3a5052['hint']}:{}}},_0x4a08df=_0x15e143[_0x4f1012(0x180)]===_0x4f1012(0x17f)?JSON[_0x4f1012(0x17c)](_0x2ec819,null,0x2):JSON['stringify'](_0x2ec819);let _0x355e65=_0x4a08df;if(_0x15e143[_0x4f1012(0x184)]?.[_0x4f1012(0x175)]())try{_0x355e65=applyJqFilter(_0x4a08df,_0x15e143[_0x4f1012(0x184)]);}catch(_0x27a090){const _0x3eb608=_0x27a090 instanceof CliError?_0x27a090:CliErrors[_0x4f1012(0x181)](_0x4f1012(0x174)+(_0x27a090 instanceof Error?_0x27a090[_0x4f1012(0x185)]:String(_0x27a090))),_0x58aeda={..._0x2ec819,'error':{'code':_0x3eb608[_0x4f1012(0x176)],'message':_0x3eb608[_0x4f1012(0x185)],..._0x3eb608[_0x4f1012(0x186)]?{'hint':_0x3eb608[_0x4f1012(0x186)]}:{},'cause':_0x2ec819['error']}};_0x355e65=_0x15e143[_0x4f1012(0x180)]===_0x4f1012(0x17f)?JSON[_0x4f1012(0x17c)](_0x58aeda,null,0x2):JSON[_0x4f1012(0x17c)](_0x58aeda);}return process[_0x4f1012(0x16d)][_0x4f1012(0x171)](_0x355e65[_0x4f1012(0x16b)]('\x0a')?_0x355e65:_0x355e65+'\x0a'),!![];}function printPrettyNotice(_0x65cece){const _0x192a6f=a235_0x23b9;if(!_0x65cece?.['update'])return;console[_0x192a6f(0x16c)](_0x65cece[_0x192a6f(0x16e)][_0x192a6f(0x185)]+'\x20('+_0x65cece['update'][_0x192a6f(0x17e)]+')');}
@@ -1 +1 @@
1
- function a236_0x4d74(){var _0x47471a=['465114ZmQwKk','14sVkwGU','135IlmIEX','7213328oYTDSw','64970QleJan','1065570NIkIpY','8RcapJF','2514230FmhDdW','982374TcKpwh','2075285IWlQMG'];a236_0x4d74=function(){return _0x47471a;};return a236_0x4d74();}(function(_0x518d2e,_0xc6c645){var _0x3ac50d=a236_0x44ee,_0x5c2e1c=_0x518d2e();while(!![]){try{var _0x4e004f=parseInt(_0x3ac50d(0x151))/0x1+-parseInt(_0x3ac50d(0x153))/0x2+-parseInt(_0x3ac50d(0x154))/0x3*(-parseInt(_0x3ac50d(0x152))/0x4)+-parseInt(_0x3ac50d(0x14b))/0x5+parseInt(_0x3ac50d(0x14c))/0x6*(-parseInt(_0x3ac50d(0x14d))/0x7)+parseInt(_0x3ac50d(0x14f))/0x8+-parseInt(_0x3ac50d(0x14e))/0x9*(parseInt(_0x3ac50d(0x150))/0xa);if(_0x4e004f===_0xc6c645)break;else _0x5c2e1c['push'](_0x5c2e1c['shift']());}catch(_0x176b4a){_0x5c2e1c['push'](_0x5c2e1c['shift']());}}}(a236_0x4d74,0xaa48f));function a236_0x44ee(_0xe73f9b,_0x20c5c5){_0xe73f9b=_0xe73f9b-0x14b;var _0x4d7473=a236_0x4d74();var _0x44ee2a=_0x4d7473[_0xe73f9b];return _0x44ee2a;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ function a236_0x59f7(_0x4342d9,_0x30efce){_0x4342d9=_0x4342d9-0x1be;var _0x5d2a96=a236_0x5d2a();var _0x59f7ef=_0x5d2a96[_0x4342d9];return _0x59f7ef;}(function(_0x37c0c9,_0x4ecca6){var _0x123e4e=a236_0x59f7,_0x477392=_0x37c0c9();while(!![]){try{var _0x2a70f3=-parseInt(_0x123e4e(0x1c4))/0x1+-parseInt(_0x123e4e(0x1c5))/0x2+parseInt(_0x123e4e(0x1bf))/0x3+-parseInt(_0x123e4e(0x1c2))/0x4*(-parseInt(_0x123e4e(0x1be))/0x5)+parseInt(_0x123e4e(0x1c1))/0x6+-parseInt(_0x123e4e(0x1c3))/0x7*(-parseInt(_0x123e4e(0x1c6))/0x8)+-parseInt(_0x123e4e(0x1c0))/0x9;if(_0x2a70f3===_0x4ecca6)break;else _0x477392['push'](_0x477392['shift']());}catch(_0x57a964){_0x477392['push'](_0x477392['shift']());}}}(a236_0x5d2a,0x2a1eb));function a236_0x5d2a(){var _0x4858ea=['127545OJBJGi','439308EsioSj','1354032GlllgI','240798ozoaqc','52HYBcbv','203dAdjRi','157162bRqgAH','270754XTuyIr','26848ELQGLr'];a236_0x5d2a=function(){return _0x4858ea;};return a236_0x5d2a();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- function a237_0x20e6(_0x147699,_0xe0aff4){_0x147699=_0x147699-0x6b;const _0xf946ff=a237_0xf946();let _0x20e606=_0xf946ff[_0x147699];return _0x20e606;}(function(_0x1ece07,_0x2e575b){const _0x15e3af=a237_0x20e6,_0x4e9ada=_0x1ece07();while(!![]){try{const _0x11edcd=-parseInt(_0x15e3af(0x75))/0x1*(parseInt(_0x15e3af(0x7e))/0x2)+-parseInt(_0x15e3af(0x7f))/0x3*(-parseInt(_0x15e3af(0x6d))/0x4)+-parseInt(_0x15e3af(0x7c))/0x5+parseInt(_0x15e3af(0x81))/0x6*(parseInt(_0x15e3af(0x76))/0x7)+parseInt(_0x15e3af(0x79))/0x8*(-parseInt(_0x15e3af(0x85))/0x9)+parseInt(_0x15e3af(0x6b))/0xa*(-parseInt(_0x15e3af(0x7b))/0xb)+parseInt(_0x15e3af(0x73))/0xc*(parseInt(_0x15e3af(0x84))/0xd);if(_0x11edcd===_0x2e575b)break;else _0x4e9ada['push'](_0x4e9ada['shift']());}catch(_0x4ff19b){_0x4e9ada['push'](_0x4e9ada['shift']());}}}(a237_0xf946,0xe572e));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x290c0f,_0x209389,_0xf1582f,_0x559f56){const _0x56fb7a=a237_0x20e6,_0x4a766e=_0x290c0f[_0x56fb7a(0x78)]['some'](_0x367fa1=>_0x367fa1[_0x56fb7a(0x74)]===_0x56fb7a(0x82)&&_0x367fa1['type']===_0x56fb7a(0x80)),_0x354900=_0x290c0f[_0x56fb7a(0x78)][_0x56fb7a(0x6e)](_0xbc4dd2=>_0xbc4dd2['name']==='alias'&&_0xbc4dd2['type']==='string');if(!_0x4a766e||!_0x354900)return;const _0x253747=_0x209389[_0x56fb7a(0x82)]?String(_0x209389[_0x56fb7a(0x82)]):'',_0x350549=_0x209389[_0x56fb7a(0x77)]?String(_0x209389[_0x56fb7a(0x77)]):'';if(!_0x253747&&!_0x350549)throw CliErrors[_0x56fb7a(0x7a)]('`'+_0x559f56+_0x56fb7a(0x6f));if(_0x350549&&!_0x253747){const _0x50f41f=resolveAlias(_0xf1582f,_0x350549);if(!_0x50f41f){const _0x209c76=listAliases(_0xf1582f)[_0x56fb7a(0x6c)](_0xb858fb=>_0xb858fb[_0x56fb7a(0x77)]),_0x31258c=_0x209c76[_0x56fb7a(0x83)]?_0x56fb7a(0x71)+_0x209c76[_0x56fb7a(0x72)](',\x20'):_0x56fb7a(0x7d)+_0xf1582f+'.\x20Run\x20`'+CLI_BIN_NAME+_0x56fb7a(0x70);throw CliErrors[_0x56fb7a(0x7a)]('Unknown\x20alias\x20\x22'+_0x350549+'\x22.\x20'+_0x31258c);}_0x209389[_0x56fb7a(0x82)]=_0x50f41f;}}function a237_0xf946(){const _0x5bf502=['922028GnGYfL','some','`\x20requires\x20either\x20--code\x20or\x20--alias.','\x20api\x20pull`\x20first.','Available\x20aliases:\x20','join','156oLnEXW','name','1bxZpxh','21qYYRSw','alias','flags','56kiWDky','validation','1283029IXgyTk','8384750oDqAZZ','No\x20api.ts\x20found\x20in\x20','2648702rXlmnG','9VeyEyM','string','2920716wLPZWn','code','length','3152227DswohC','102798FfdtqS','110teZVLH','map'];a237_0xf946=function(){return _0x5bf502;};return a237_0xf946();}
1
+ (function(_0x111af6,_0x1942bd){const _0x25d9e3=a237_0x204c,_0x4bef54=_0x111af6();while(!![]){try{const _0xd825ca=parseInt(_0x25d9e3(0x199))/0x1+parseInt(_0x25d9e3(0x194))/0x2*(-parseInt(_0x25d9e3(0x190))/0x3)+parseInt(_0x25d9e3(0x1a6))/0x4*(-parseInt(_0x25d9e3(0x1a5))/0x5)+-parseInt(_0x25d9e3(0x198))/0x6+-parseInt(_0x25d9e3(0x19d))/0x7+parseInt(_0x25d9e3(0x19c))/0x8+parseInt(_0x25d9e3(0x193))/0x9;if(_0xd825ca===_0x1942bd)break;else _0x4bef54['push'](_0x4bef54['shift']());}catch(_0x389e53){_0x4bef54['push'](_0x4bef54['shift']());}}}(a237_0x350c,0x98d10));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a237_0x204c(_0x467a85,_0x36612f){_0x467a85=_0x467a85-0x18f;const _0x350c7f=a237_0x350c();let _0x204c06=_0x350c7f[_0x467a85];return _0x204c06;}function a237_0x350c(){const _0x277eaf=['No\x20api.ts\x20found\x20in\x20','.\x20Run\x20`','45LmXDSz','89524HIliYW','validation','15zZHFbq','Unknown\x20alias\x20\x22','string','14372235MKcKjo','241784gzwbda','alias','code','type','6342084eUAwjR','102687sdAPYF','`\x20requires\x20either\x20--code\x20or\x20--alias.','join','6449032KONKPg','118244IYlACA','name','flags','some','\x22.\x20','map'];a237_0x350c=function(){return _0x277eaf;};return a237_0x350c();}export function resolveAliasToCode(_0x474e7d,_0xdcafb2,_0x41b87a,_0x5de342){const _0x396cce=a237_0x204c,_0x17bb91=_0x474e7d[_0x396cce(0x19f)][_0x396cce(0x1a0)](_0x5d76e9=>_0x5d76e9['name']===_0x396cce(0x196)&&_0x5d76e9[_0x396cce(0x197)]===_0x396cce(0x192)),_0x1b80f7=_0x474e7d[_0x396cce(0x19f)][_0x396cce(0x1a0)](_0x43a690=>_0x43a690[_0x396cce(0x19e)]===_0x396cce(0x195)&&_0x43a690[_0x396cce(0x197)]===_0x396cce(0x192));if(!_0x17bb91||!_0x1b80f7)return;const _0x4a5cd0=_0xdcafb2[_0x396cce(0x196)]?String(_0xdcafb2[_0x396cce(0x196)]):'',_0xcc8d5b=_0xdcafb2['alias']?String(_0xdcafb2[_0x396cce(0x195)]):'';if(!_0x4a5cd0&&!_0xcc8d5b)throw CliErrors['validation']('`'+_0x5de342+_0x396cce(0x19a));if(_0xcc8d5b&&!_0x4a5cd0){const _0x4f3ee5=resolveAlias(_0x41b87a,_0xcc8d5b);if(!_0x4f3ee5){const _0x1e345c=listAliases(_0x41b87a)[_0x396cce(0x1a2)](_0x2752b7=>_0x2752b7[_0x396cce(0x195)]),_0x3b93bf=_0x1e345c['length']?'Available\x20aliases:\x20'+_0x1e345c[_0x396cce(0x19b)](',\x20'):_0x396cce(0x1a3)+_0x41b87a+_0x396cce(0x1a4)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x396cce(0x18f)](_0x396cce(0x191)+_0xcc8d5b+_0x396cce(0x1a1)+_0x3b93bf);}_0xdcafb2[_0x396cce(0x196)]=_0x4f3ee5;}}
@@ -1 +1 @@
1
- (function(_0x1442bd,_0x526cfc){const _0x360b47=a238_0x41f5,_0x196d14=_0x1442bd();while(!![]){try{const _0x26aa53=-parseInt(_0x360b47(0x152))/0x1*(parseInt(_0x360b47(0x149))/0x2)+-parseInt(_0x360b47(0x151))/0x3*(-parseInt(_0x360b47(0x148))/0x4)+parseInt(_0x360b47(0x12d))/0x5*(parseInt(_0x360b47(0x118))/0x6)+-parseInt(_0x360b47(0x12f))/0x7*(-parseInt(_0x360b47(0x123))/0x8)+-parseInt(_0x360b47(0x11b))/0x9+-parseInt(_0x360b47(0x134))/0xa+parseInt(_0x360b47(0x114))/0xb;if(_0x26aa53===_0x526cfc)break;else _0x196d14['push'](_0x196d14['shift']());}catch(_0x27651e){_0x196d14['push'](_0x196d14['shift']());}}}(a238_0x22ef,0x7fc7f));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';function a238_0x22ef(){const _0x58f9d9=['includes','11672672ElAYzl','resolveCookie','update','production','834KJGaAD','doctor','configMissing','8986698vMYWvG','hasFormat','isNonInteractive','meowKey','replace','rawFlags','explicitAppName','cookie','72MuDpYP','selectedAppName','defaultApp','cancelled','filter','has','formatOutput','trim','find','nonInteractive','24755ZvTZTm','../core/api-client.js','681926FGBIPH','Set\x20appcode\x20via\x20`','schema','some','currentApp','6380520ceDQhv','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','apps','mergedCli','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','string','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','LOVRABET_APPCODE','appcode','_notice','High-risk\x20operation\x20`','riskLevel','apiDir','Current\x20resolved\x20appcode\x20is\x20\x22','value','defaultVerbose','pretty','validation','requiresAppCode','name','1797912IfboFH','29536IYXyoY','appCode','none','../constant/env.js','message','resolveApiDomain','hint','service','3nPuWXB','62bawjhd','all','../constant/domain.js','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','required','verbose','authRequired','defaultPageSize','format','map','catch'];a238_0x22ef=function(){return _0x58f9d9;};return a238_0x22ef();}import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a238_0x5b038e}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x2ac527){const _0x401d57=a238_0x41f5;return typeof _0x2ac527===_0x401d57(0x139)&&_0x2ac527[_0x401d57(0x12a)]()?_0x2ac527[_0x401d57(0x12a)]():undefined;}function resolveEnvAppCode(){const _0x14130a=a238_0x41f5,_0x4685fb=stringFlag(process.env.RABETBASE_APPCODE);if(_0x4685fb)return{'name':'RABETBASE_APPCODE','value':_0x4685fb};const _0x5f7702=stringFlag(process.env.LOVRABET_APPCODE);if(_0x5f7702)return{'name':_0x14130a(0x13b),'value':_0x5f7702};return undefined;}function hasExplicitAppCode(_0x19b1d4,_0x6cf503){const _0x48a71e=a238_0x41f5;return!!(stringFlag(_0x19b1d4[_0x48a71e(0x13c)])||stringFlag(_0x6cf503[_0x48a71e(0x13c)]));}function assertEnvAppCodeNotIgnored(_0x24db5e,_0xa3737e,_0x2e6797){const _0x4c979b=a238_0x41f5;if(!_0xa3737e||_0x2e6797||_0x24db5e===_0xa3737e[_0x4c979b(0x142)])return;const _0x3a48ee=_0x24db5e?_0x4c979b(0x141)+_0x24db5e+'\x22.':_0x4c979b(0x135);throw CliErrors[_0x4c979b(0x145)](_0xa3737e['name']+'='+_0xa3737e['value']+_0x4c979b(0x138)+_0x3a48ee+'\x20'+(_0x4c979b(0x155)+_0xa3737e[_0x4c979b(0x147)]+'\x22.'));}export function createPipelineEnv(_0x1d159a,_0x15edeb,_0x593597=[]){const _0x3de639=a238_0x41f5;return{'rawFlags':_0x15edeb,'args':_0x593597,'resolveAppCode':()=>_0x1d159a[_0x3de639(0x14a)],'resolveCookie':()=>_0x1d159a[_0x3de639(0x122)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a238_0x5b038e(_0x15edeb),'defaultFormat':_0x1d159a['format'],'defaultPageSize':_0x1d159a['pageSize'],'defaultVerbose':_0x1d159a[_0x3de639(0x157)],'apiDir':_0x1d159a[_0x3de639(0x140)],'riskLevel':_0x1d159a[_0x3de639(0x13f)],'selectedAppName':_0x1d159a[_0x3de639(0x121)],'mergedCli':{'defaultApp':_0x1d159a[_0x3de639(0x125)],'currentApp':_0x1d159a[_0x3de639(0x133)],'appCode':_0x1d159a['appCode'],'apps':_0x1d159a[_0x3de639(0x136)]}};}export function createRabetbaseRunnerAdapter(_0x2f3620={}){const _0x500803=a238_0x41f5;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x500803(0x127)](_0x3c60a5=>PIPELINE_FLAG_NAMES[_0x500803(0x128)](_0x3c60a5[_0x500803(0x147)]))[_0x500803(0x111)](({name:_0x2932b1,type:_0x5f5857,description:_0x266ff6})=>({'name':_0x2932b1,'type':_0x5f5857,'description':_0x266ff6})),'formatOutput':_0x2f3620[_0x500803(0x129)]??formatOutput,'getCommandLabel'(_0x5b4214){const _0x379943=_0x500803;return CLI_BIN_NAME+'\x20'+_0x5b4214[_0x379943(0x150)]+'\x20'+_0x5b4214['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x1ee9ea){return CliErrors['validation'](_0x1ee9ea);}},async 'prepare'(_0xe73148,_0x5f2f74,_0x489c2b,_0xac7af8){const _0x25100f=_0x500803,_0x4c4af0=_0x5f2f74['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0xe73148,_0x489c2b,_0x4c4af0,_0xac7af8);const _0x499b06=resolveCommandAuthMode(_0xe73148);let _0x3b1562='';if(_0x499b06!==_0x25100f(0x14b)){_0x3b1562=_0x5f2f74[_0x25100f(0x115)]()||'';if(!_0x3b1562){if(_0x499b06===_0x25100f(0x156))throw CliErrors[_0x25100f(0x158)]();}else{const {setActiveCookie:_0x50fed0}=await import(_0x25100f(0x12e));_0x50fed0(_0x3b1562);}}const _0x4cc08a=_0x5f2f74['resolveAppCode']()??'';if(_0xe73148[_0x25100f(0x146)]!==![]){assertEnvAppCodeNotIgnored(_0x4cc08a,resolveEnvAppCode(),hasExplicitAppCode(_0x489c2b,_0x5f2f74[_0x25100f(0x120)]));if(!_0x4cc08a)throw CliErrors[_0x25100f(0x11a)](_0x25100f(0x130)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}return{'defaults':{'booleans':{'verbose':_0x5f2f74[_0x25100f(0x143)]},'numbers':{'pagesize':_0x5f2f74[_0x25100f(0x159)]}},'extras':{'appCode':_0x4cc08a,'cookie':_0x3b1562,'apiDomain':_0x5f2f74[_0x25100f(0x14e)](),'apiDir':_0x4c4af0,'selectedAppName':_0x5f2f74[_0x25100f(0x124)],'mergedCli':_0x5f2f74[_0x25100f(0x137)]}};},'confirmHighRisk':_0x2f3620['confirmHighRisk']??(async({env:_0x3415b2,commandLabel:_0x267b90})=>{const _0x39a996=_0x500803;if(_0x3415b2[_0x39a996(0x11d)])throw CliErrors['validation'](_0x39a996(0x13e)+_0x267b90+_0x39a996(0x13a));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x267b90,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x16d182=>CliErrors[_0x39a996(0x126)](_0x16d182)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();function a238_0x41f5(_0xf7f1a1,_0x3aafba){_0xf7f1a1=_0xf7f1a1-0x110;const _0x22ef60=a238_0x22ef();let _0x41f592=_0x22ef60[_0xf7f1a1];return _0x41f592;}async function clearRabetbaseCommandState(){const _0x1a1b60=a238_0x41f5,{clearActiveCookie:_0x367a13}=await import(_0x1a1b60(0x12e));_0x367a13();}export async function finalizeRabetbaseRuntimeState(){const _0x298b9d=a238_0x41f5;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x5290f0},{initEnv:_0x2c2fbd}]=await Promise[_0x298b9d(0x153)]([import(_0x298b9d(0x154)),import(_0x298b9d(0x14c))]);_0x5290f0(),_0x2c2fbd(_0x298b9d(0x117));}}export async function runCommand(_0x487dc6,_0x54a6fa,_0x4364ae=terminalRunnerAdapter){const _0x56372d=a238_0x41f5;assertRejectedFlags(_0x487dc6,_0x54a6fa[_0x56372d(0x120)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x487dc6)?withUpdateNotice(_0x487dc6):_0x487dc6,_0x54a6fa,_0x4364ae);}function assertRejectedFlags(_0x165d49,_0x3aeae4){const _0x1eca05=a238_0x41f5;for(const _0x3fc169 of _0x165d49['rejectedFlags']??[]){const _0xf6a8e3=GLOBAL_FLAGS[_0x1eca05(0x12b)](_0x406dd1=>_0x406dd1[_0x1eca05(0x147)]===_0x3fc169[_0x1eca05(0x147)]),_0x381a33=new Set([_0x3fc169[_0x1eca05(0x147)],toCamelCase(_0x3fc169['name']),_0xf6a8e3?.[_0x1eca05(0x11e)]]),_0x532e18=[..._0x381a33][_0x1eca05(0x132)](_0x55008b=>{if(!_0x55008b)return![];const _0x5147bb=_0x3aeae4[_0x55008b];return _0x5147bb!==undefined&&_0x5147bb!==null&&_0x5147bb!==![];});if(_0x532e18)throw CliErrors[_0x1eca05(0x145)](_0x3fc169[_0x1eca05(0x14d)],_0x3fc169[_0x1eca05(0x14f)]);}}function toCamelCase(_0x30396d){const _0x4f94f5=a238_0x41f5;return _0x30396d[_0x4f94f5(0x11f)](/-([a-z])/g,(_0x5d5c17,_0x51fbc9)=>_0x51fbc9['toUpperCase']());}function shouldAttachUpdateNotice(_0x202562){const _0x19791b=a238_0x41f5;if(_0x202562[_0x19791b(0x11c)]===![])return![];return![_0x19791b(0x116),_0x19791b(0x131),_0x19791b(0x119)][_0x19791b(0x113)](_0x202562['service']);}function withUpdateNotice(_0x501fc4){return{..._0x501fc4,async 'execute'(_0x2ed87f){const _0x329661=a238_0x41f5,_0x2d765b=shouldResolveUpdateNotice(_0x2ed87f)?resolveLatestUpdateNotice()[_0x329661(0x112)](()=>null):Promise['resolve'](null),_0x58676a=await _0x501fc4['execute'](_0x2ed87f);return attachUpdateNotice(_0x58676a,await _0x2d765b);}};}function shouldResolveUpdateNotice(_0x1d9372){const _0x59fe3c=a238_0x41f5;return _0x1d9372[_0x59fe3c(0x110)]===_0x59fe3c(0x144)&&!_0x1d9372[_0x59fe3c(0x12c)];}function attachUpdateNotice(_0x21c4c6,_0x13e049){const _0x148f9e=a238_0x41f5;if(!_0x13e049||!_0x21c4c6||typeof _0x21c4c6!=='object')return _0x21c4c6;const _0x267a1d=_0x21c4c6,_0x5e5c8f=typeof _0x267a1d[_0x148f9e(0x13d)]==='object'&&_0x267a1d['_notice']!==null?_0x267a1d[_0x148f9e(0x13d)]:{};return{..._0x267a1d,'_notice':{..._0x5e5c8f,'update':_0x13e049}};}
1
+ (function(_0x2ec994,_0x41d4f5){const _0x1e03d1=a238_0x3453,_0x6240da=_0x2ec994();while(!![]){try{const _0x214ae9=parseInt(_0x1e03d1(0xfa))/0x1*(-parseInt(_0x1e03d1(0x117))/0x2)+-parseInt(_0x1e03d1(0x10a))/0x3+parseInt(_0x1e03d1(0xf2))/0x4+-parseInt(_0x1e03d1(0x121))/0x5+parseInt(_0x1e03d1(0x11e))/0x6*(parseInt(_0x1e03d1(0x11b))/0x7)+-parseInt(_0x1e03d1(0xdf))/0x8*(-parseInt(_0x1e03d1(0x10f))/0x9)+parseInt(_0x1e03d1(0x113))/0xa*(parseInt(_0x1e03d1(0x103))/0xb);if(_0x214ae9===_0x41d4f5)break;else _0x6240da['push'](_0x6240da['shift']());}catch(_0xc58f1d){_0x6240da['push'](_0x6240da['shift']());}}}(a238_0x5849,0x24c96));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';function a238_0x3453(_0x43ed45,_0x144289){_0x43ed45=_0x43ed45-0xdc;const _0x58493e=a238_0x5849();let _0x34535d=_0x58493e[_0x43ed45];return _0x34535d;}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 a238_0x76d9fc}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x17ee13){const _0x47f17d=a238_0x3453;return typeof _0x17ee13===_0x47f17d(0x106)&&_0x17ee13[_0x47f17d(0x118)]()?_0x17ee13[_0x47f17d(0x118)]():undefined;}function resolveEnvAppCode(){const _0x3f8183=stringFlag(process.env.RABETBASE_APPCODE);if(_0x3f8183)return{'name':'RABETBASE_APPCODE','value':_0x3f8183};const _0x1e421d=stringFlag(process.env.LOVRABET_APPCODE);if(_0x1e421d)return{'name':'LOVRABET_APPCODE','value':_0x1e421d};return undefined;}function hasExplicitAppCode(_0x208640,_0x73da2){const _0x1c5432=a238_0x3453;return!!(stringFlag(_0x208640[_0x1c5432(0xe4)])||stringFlag(_0x73da2[_0x1c5432(0xe4)]));}function assertEnvAppCodeNotIgnored(_0x3baf4f,_0x1a3ab8,_0x12ed60){const _0x3a0d4e=a238_0x3453;if(!_0x1a3ab8||_0x12ed60||_0x3baf4f===_0x1a3ab8[_0x3a0d4e(0xdd)])return;const _0xee51da=_0x3baf4f?_0x3a0d4e(0x115)+_0x3baf4f+'\x22.':_0x3a0d4e(0xe8);throw CliErrors[_0x3a0d4e(0xfc)](_0x1a3ab8[_0x3a0d4e(0xf8)]+'='+_0x1a3ab8[_0x3a0d4e(0xdd)]+_0x3a0d4e(0xe5)+_0xee51da+'\x20'+(_0x3a0d4e(0x120)+_0x1a3ab8[_0x3a0d4e(0xf8)]+'\x22.'));}export function createPipelineEnv(_0x39e9c0,_0x5ca3d8,_0x461a5e=[]){const _0x50d726=a238_0x3453;return{'rawFlags':_0x5ca3d8,'args':_0x461a5e,'resolveAppCode':()=>_0x39e9c0[_0x50d726(0x11d)],'resolveCookie':()=>_0x39e9c0[_0x50d726(0x102)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a238_0x76d9fc(_0x5ca3d8),'defaultFormat':_0x39e9c0[_0x50d726(0x108)],'defaultPageSize':_0x39e9c0[_0x50d726(0x123)],'defaultVerbose':_0x39e9c0[_0x50d726(0xe0)],'apiDir':_0x39e9c0[_0x50d726(0x101)],'riskLevel':_0x39e9c0[_0x50d726(0x100)],'selectedAppName':_0x39e9c0['explicitAppName'],'mergedCli':{'defaultApp':_0x39e9c0[_0x50d726(0x111)],'currentApp':_0x39e9c0[_0x50d726(0x11c)],'appCode':_0x39e9c0['appCode'],'apps':_0x39e9c0[_0x50d726(0x110)]}};}export function createRabetbaseRunnerAdapter(_0xab8781={}){const _0x40ccb4=a238_0x3453;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x40ccb4(0x124)](_0x4d3722=>PIPELINE_FLAG_NAMES['has'](_0x4d3722[_0x40ccb4(0xf8)]))[_0x40ccb4(0xee)](({name:_0x35253f,type:_0x522811,description:_0x41d5b5})=>({'name':_0x35253f,'type':_0x522811,'description':_0x41d5b5})),'formatOutput':_0xab8781[_0x40ccb4(0xe1)]??formatOutput,'getCommandLabel'(_0x30ce65){const _0x76c257=_0x40ccb4;return CLI_BIN_NAME+'\x20'+_0x30ce65[_0x76c257(0x119)]+'\x20'+_0x30ce65[_0x76c257(0xff)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x380d2a){const _0x55d295=_0x40ccb4;return CliErrors[_0x55d295(0xfc)](_0x380d2a);}},async 'prepare'(_0x2ea3b3,_0xaee37b,_0x101d2f,_0x508780){const _0x5226de=_0x40ccb4,_0x1be991=_0xaee37b[_0x5226de(0x101)]||DEFAULT_API_DIR;resolveAliasToCode(_0x2ea3b3,_0x101d2f,_0x1be991,_0x508780);const _0x289c92=resolveCommandAuthMode(_0x2ea3b3);let _0x29681a='';if(_0x289c92!==_0x5226de(0xf7)){_0x29681a=_0xaee37b[_0x5226de(0x116)]()||'';if(!_0x29681a){if(_0x289c92===_0x5226de(0xe7))throw CliErrors[_0x5226de(0xec)]();}else{const {setActiveCookie:_0x15db4e}=await import(_0x5226de(0x11f));_0x15db4e(_0x29681a);}}const _0x567906=_0xaee37b[_0x5226de(0xef)]()??'';if(_0x2ea3b3[_0x5226de(0x104)]!==![]){assertEnvAppCodeNotIgnored(_0x567906,resolveEnvAppCode(),hasExplicitAppCode(_0x101d2f,_0xaee37b[_0x5226de(0xfd)]));if(!_0x567906)throw CliErrors[_0x5226de(0x10e)](_0x5226de(0xde)+CLI_BIN_NAME+_0x5226de(0xe3));}return{'defaults':{'booleans':{'verbose':_0xaee37b['defaultVerbose']},'numbers':{'pagesize':_0xaee37b['defaultPageSize']}},'extras':{'appCode':_0x567906,'cookie':_0x29681a,'apiDomain':_0xaee37b[_0x5226de(0x122)](),'apiDir':_0x1be991,'selectedAppName':_0xaee37b[_0x5226de(0xe2)],'mergedCli':_0xaee37b[_0x5226de(0xf5)]}};},'confirmHighRisk':_0xab8781[_0x40ccb4(0xf3)]??(async({env:_0x56d865,commandLabel:_0x3e178b})=>{const _0x3a59ea=_0x40ccb4;if(_0x56d865[_0x3a59ea(0x11a)])throw CliErrors[_0x3a59ea(0xfc)]('High-risk\x20operation\x20`'+_0x3e178b+_0x3a59ea(0xfe));await requireConfirmationPrompt({'lines':[_0x3a59ea(0xe6)+_0x3e178b,_0x3a59ea(0xea)],'createCancelledError':_0x4654db=>CliErrors['cancelled'](_0x4654db)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x4f74e5=a238_0x3453,{clearActiveCookie:_0x318f93}=await import(_0x4f74e5(0x11f));_0x318f93();}function a238_0x5849(){const _0x5c5945=['resolveApiDomain','pageSize','filter','includes','value','Set\x20appcode\x20via\x20`','62392yqnSNY','verbose','formatOutput','selectedAppName','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','appcode','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','⚠\x20\x20High-risk\x20operation:\x20','required','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','message','\x20\x20\x20Continue?\x20[y/N]\x20','hint','authRequired','object','map','resolveAppCode','replace','catch','453060gVfBVS','confirmHighRisk','hasFormat','mergedCli','../constant/domain.js','none','name','find','5ALUPyx','update','validation','rawFlags','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','command','riskLevel','apiDir','cookie','3521474cIZtfq','requiresAppCode','doctor','string','all','format','../constant/env.js','762915gWoNPO','resolve','pretty','_notice','configMissing','72ePwzbp','apps','defaultApp','rejectedFlags','10jGPkUq','some','Current\x20resolved\x20appcode\x20is\x20\x22','resolveCookie','68342lQASfM','trim','service','isNonInteractive','7XtJtWP','currentApp','appCode','1523190deDSAC','../core/api-client.js','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','869090WSgogA'];a238_0x5849=function(){return _0x5c5945;};return a238_0x5849();}export async function finalizeRabetbaseRuntimeState(){const _0x51efee=a238_0x3453;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x48be3d},{initEnv:_0x2c89d6}]=await Promise[_0x51efee(0x107)]([import(_0x51efee(0xf6)),import(_0x51efee(0x109))]);_0x48be3d(),_0x2c89d6('production');}}export async function runCommand(_0x44a8d8,_0x45658f,_0x4ff2ce=terminalRunnerAdapter){const _0x19fc0c=a238_0x3453;assertRejectedFlags(_0x44a8d8,_0x45658f[_0x19fc0c(0xfd)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x44a8d8)?withUpdateNotice(_0x44a8d8):_0x44a8d8,_0x45658f,_0x4ff2ce);}function assertRejectedFlags(_0xba9312,_0x28258f){const _0x1cd40b=a238_0x3453;for(const _0x575163 of _0xba9312[_0x1cd40b(0x112)]??[]){const _0xde6eaf=GLOBAL_FLAGS[_0x1cd40b(0xf9)](_0x2bc5a1=>_0x2bc5a1[_0x1cd40b(0xf8)]===_0x575163[_0x1cd40b(0xf8)]),_0x4acc71=new Set([_0x575163[_0x1cd40b(0xf8)],toCamelCase(_0x575163[_0x1cd40b(0xf8)]),_0xde6eaf?.['meowKey']]),_0x4f1457=[..._0x4acc71][_0x1cd40b(0x114)](_0x30769f=>{if(!_0x30769f)return![];const _0x40a6b0=_0x28258f[_0x30769f];return _0x40a6b0!==undefined&&_0x40a6b0!==null&&_0x40a6b0!==![];});if(_0x4f1457)throw CliErrors['validation'](_0x575163[_0x1cd40b(0xe9)],_0x575163[_0x1cd40b(0xeb)]);}}function toCamelCase(_0x3e1644){const _0xaa8f82=a238_0x3453;return _0x3e1644[_0xaa8f82(0xf0)](/-([a-z])/g,(_0x4adf99,_0x1a43f6)=>_0x1a43f6['toUpperCase']());}function shouldAttachUpdateNotice(_0x12b799){const _0x1db5a0=a238_0x3453;if(_0x12b799[_0x1db5a0(0xf4)]===![])return![];return![_0x1db5a0(0xfb),'schema',_0x1db5a0(0x105)][_0x1db5a0(0xdc)](_0x12b799['service']);}function withUpdateNotice(_0x1de7e6){return{..._0x1de7e6,async 'execute'(_0x4e7555){const _0x426245=a238_0x3453,_0x2f18df=shouldResolveUpdateNotice(_0x4e7555)?resolveLatestUpdateNotice()[_0x426245(0xf1)](()=>null):Promise[_0x426245(0x10b)](null),_0x4228ba=await _0x1de7e6['execute'](_0x4e7555);return attachUpdateNotice(_0x4228ba,await _0x2f18df);}};}function shouldResolveUpdateNotice(_0x5cbd28){const _0x4976ab=a238_0x3453;return _0x5cbd28[_0x4976ab(0x108)]===_0x4976ab(0x10c)&&!_0x5cbd28['nonInteractive'];}function attachUpdateNotice(_0x3e830e,_0xa4a083){const _0x35d5a6=a238_0x3453;if(!_0xa4a083||!_0x3e830e||typeof _0x3e830e!==_0x35d5a6(0xed))return _0x3e830e;const _0x1a5364=_0x3e830e,_0x189693=typeof _0x1a5364[_0x35d5a6(0x10d)]==='object'&&_0x1a5364['_notice']!==null?_0x1a5364['_notice']:{};return{..._0x1a5364,'_notice':{..._0x189693,'update':_0xa4a083}};}
@@ -1 +1 @@
1
- (function(_0x16a98d,_0x5341c9){const _0x2a61da=a239_0x599f,_0xf33e9d=_0x16a98d();while(!![]){try{const _0x335797=-parseInt(_0x2a61da(0x13b))/0x1*(parseInt(_0x2a61da(0x13e))/0x2)+-parseInt(_0x2a61da(0x141))/0x3+-parseInt(_0x2a61da(0x142))/0x4*(parseInt(_0x2a61da(0x13d))/0x5)+-parseInt(_0x2a61da(0x13c))/0x6+-parseInt(_0x2a61da(0x143))/0x7+-parseInt(_0x2a61da(0x13f))/0x8+parseInt(_0x2a61da(0x144))/0x9;if(_0x335797===_0x5341c9)break;else _0xf33e9d['push'](_0xf33e9d['shift']());}catch(_0x3cf07c){_0xf33e9d['push'](_0xf33e9d['shift']());}}}(a239_0x43de,0xb129b));import{buildSchemaPayload as a239_0x58927c}from'@lovrabet/cli-framework';function a239_0x599f(_0xff17b8,_0x189df7){_0xff17b8=_0xff17b8-0x13b;const _0x43de0c=a239_0x43de();let _0x599f9e=_0x43de0c[_0xff17b8];return _0x599f9e;}import{buildAllFlags}from'../framework/build-all-flags.js';function a239_0x43de(){const _0x2591a1=['4KQFJGP','4069506phZijK','51339582eYBimx','1ehNdDN','7993824CikREJ','6220555pfkPWn','442286ZqAgPD','6935960OuhyOd','../commands/registry.js','2198484iDrevU'];a239_0x43de=function(){return _0x2591a1;};return a239_0x43de();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x14979e=a239_0x599f,{serviceRegistry:_0x31278f,findDefinition:_0x2dff3d}=await import(_0x14979e(0x140));return a239_0x58927c({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x31278f,'buildAllFlags':buildAllFlags,'findDefinition':_0x2dff3d});}
1
+ function a239_0xcd18(){const _0x37df17=['2038385Oyxabz','1023979OVxXqT','../commands/registry.js','1021296ZMucWr','4765390vlCeVo','2825826mtiLOy','3204087tBgWaD','1962012lyzzHn'];a239_0xcd18=function(){return _0x37df17;};return a239_0xcd18();}(function(_0x35d7d8,_0x4dc173){const _0x593de0=a239_0x2b34,_0x56e92d=_0x35d7d8();while(!![]){try{const _0x394011=parseInt(_0x593de0(0x11b))/0x1+parseInt(_0x593de0(0x11d))/0x2+parseInt(_0x593de0(0x118))/0x3+-parseInt(_0x593de0(0x119))/0x4+-parseInt(_0x593de0(0x11a))/0x5+-parseInt(_0x593de0(0x117))/0x6+-parseInt(_0x593de0(0x11e))/0x7;if(_0x394011===_0x4dc173)break;else _0x56e92d['push'](_0x56e92d['shift']());}catch(_0x3a4498){_0x56e92d['push'](_0x56e92d['shift']());}}}(a239_0xcd18,0x86f1f));import{buildSchemaPayload as a239_0x4c47d6}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a239_0x2b34(_0x4a2f38,_0xdc8b3){_0x4a2f38=_0x4a2f38-0x117;const _0xcd181e=a239_0xcd18();let _0x2b344c=_0xcd181e[_0x4a2f38];return _0x2b344c;}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x4c734b=a239_0x2b34,{serviceRegistry:_0x487c20,findDefinition:_0x77f8c0}=await import(_0x4c734b(0x11c));return a239_0x4c47d6({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x487c20,'buildAllFlags':buildAllFlags,'findDefinition':_0x77f8c0});}
@@ -1 +1 @@
1
- function a240_0x123a(){var _0x59f882=['12939Ojjswg','817515ozghwQ','62774860PBFWUK','4398003JvIXws','16FTSikX','13180153fkexxk','1194724KfqxXq','3090uOFQcf','626aaLFvq','48HOxvQw'];a240_0x123a=function(){return _0x59f882;};return a240_0x123a();}function a240_0x1824(_0x55a57a,_0xbf27b0){_0x55a57a=_0x55a57a-0x78;var _0x123a6c=a240_0x123a();var _0x1824fa=_0x123a6c[_0x55a57a];return _0x1824fa;}(function(_0x5e76ac,_0x2062fb){var _0x576574=a240_0x1824,_0xf01254=_0x5e76ac();while(!![]){try{var _0x9c828c=-parseInt(_0x576574(0x79))/0x1+-parseInt(_0x576574(0x80))/0x2*(parseInt(_0x576574(0x78))/0x3)+-parseInt(_0x576574(0x7e))/0x4+-parseInt(_0x576574(0x7f))/0x5*(-parseInt(_0x576574(0x81))/0x6)+-parseInt(_0x576574(0x7d))/0x7+-parseInt(_0x576574(0x7c))/0x8*(parseInt(_0x576574(0x7b))/0x9)+parseInt(_0x576574(0x7a))/0xa;if(_0x9c828c===_0x2062fb)break;else _0xf01254['push'](_0xf01254['shift']());}catch(_0x1fc96c){_0xf01254['push'](_0xf01254['shift']());}}}(a240_0x123a,0xe9694));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
1
+ function a240_0x487e(){var _0x5d5be1=['3956070pPNMsm','2518264FnggmQ','1399QnuYWk','598gkrdnS','9ZbORSD','2302784ZfIXlq','47931HnUYTM','132jTBDDR','1074290umEQNR','2793930iAXlFu','7naPhvM'];a240_0x487e=function(){return _0x5d5be1;};return a240_0x487e();}(function(_0x910ed8,_0x1f44ec){var _0x46b4b4=a240_0x1029,_0x40e44f=_0x910ed8();while(!![]){try{var _0x1a30c3=-parseInt(_0x46b4b4(0xa0))/0x1*(-parseInt(_0x46b4b4(0xa1))/0x2)+parseInt(_0x46b4b4(0x99))/0x3*(-parseInt(_0x46b4b4(0x9a))/0x4)+-parseInt(_0x46b4b4(0x9b))/0x5+-parseInt(_0x46b4b4(0x9c))/0x6*(-parseInt(_0x46b4b4(0x9d))/0x7)+parseInt(_0x46b4b4(0x9f))/0x8+parseInt(_0x46b4b4(0x97))/0x9*(-parseInt(_0x46b4b4(0x9e))/0xa)+parseInt(_0x46b4b4(0x98))/0xb;if(_0x1a30c3===_0x1f44ec)break;else _0x40e44f['push'](_0x40e44f['shift']());}catch(_0x3ef2aa){_0x40e44f['push'](_0x40e44f['shift']());}}}(a240_0x487e,0x42029));function a240_0x1029(_0xa71340,_0x33bae5){_0xa71340=_0xa71340-0x97;var _0x487ef8=a240_0x487e();var _0x1029eb=_0x487ef8[_0xa71340];return _0x1029eb;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "2.3.16-beta.5";
2
- export declare const GIT_TAG = "v2.3.16-beta.5";
3
- export declare const GIT_COMMIT = "8d08075";
4
- export declare const BUILD_TIME = "2026-08-10T16:33:24.074Z";
1
+ export declare const VERSION = "2.3.16-beta.7";
2
+ export declare const GIT_TAG = "v2.3.16-beta.7";
3
+ export declare const GIT_COMMIT = "def3a65";
4
+ export declare const BUILD_TIME = "2026-08-11T07:40:49.851Z";
@@ -1 +1 @@
1
- function a241_0x5ef7(){const _0x109aee=['27129cShfgi','2618484bXVNaf','207YusXDZ','v2.3.16-beta.5','4IuYfhq','8532230YqZLbX','242753MGhGXe','8d08075','2042780LznNdi','5opuxxQ','2026-08-10T16:33:24.074Z','2304330uovbin','102VpRIUa','121496PZwNcY','2.3.16-beta.5'];a241_0x5ef7=function(){return _0x109aee;};return a241_0x5ef7();}const a241_0x81a5be=a241_0x469e;function a241_0x469e(_0x37f459,_0x1da62e){_0x37f459=_0x37f459-0x177;const _0x5ef72b=a241_0x5ef7();let _0x469e4f=_0x5ef72b[_0x37f459];return _0x469e4f;}(function(_0x2ad4fe,_0x43b7dc){const _0x106d4e=a241_0x469e,_0xdc5c06=_0x2ad4fe();while(!![]){try{const _0x18b306=-parseInt(_0x106d4e(0x177))/0x1*(-parseInt(_0x106d4e(0x17b))/0x2)+parseInt(_0x106d4e(0x182))/0x3+-parseInt(_0x106d4e(0x17f))/0x4*(parseInt(_0x106d4e(0x180))/0x5)+parseInt(_0x106d4e(0x183))/0x6*(parseInt(_0x106d4e(0x17d))/0x7)+-parseInt(_0x106d4e(0x184))/0x8*(-parseInt(_0x106d4e(0x179))/0x9)+-parseInt(_0x106d4e(0x17c))/0xa+parseInt(_0x106d4e(0x178))/0xb;if(_0x18b306===_0x43b7dc)break;else _0xdc5c06['push'](_0xdc5c06['shift']());}catch(_0x112385){_0xdc5c06['push'](_0xdc5c06['shift']());}}}(a241_0x5ef7,0x9b1ca));export const VERSION=a241_0x81a5be(0x185);export const GIT_TAG=a241_0x81a5be(0x17a);export const GIT_COMMIT=a241_0x81a5be(0x17e);export const BUILD_TIME=a241_0x81a5be(0x181);
1
+ const a241_0x291e48=a241_0x3a6c;(function(_0x3c20e8,_0x468a46){const _0x39181c=a241_0x3a6c,_0x4a8cbc=_0x3c20e8();while(!![]){try{const _0x10b461=parseInt(_0x39181c(0x182))/0x1+parseInt(_0x39181c(0x17e))/0x2*(-parseInt(_0x39181c(0x17d))/0x3)+-parseInt(_0x39181c(0x17a))/0x4*(parseInt(_0x39181c(0x17c))/0x5)+-parseInt(_0x39181c(0x181))/0x6+parseInt(_0x39181c(0x183))/0x7+parseInt(_0x39181c(0x175))/0x8*(-parseInt(_0x39181c(0x180))/0x9)+-parseInt(_0x39181c(0x179))/0xa*(-parseInt(_0x39181c(0x178))/0xb);if(_0x10b461===_0x468a46)break;else _0x4a8cbc['push'](_0x4a8cbc['shift']());}catch(_0x253694){_0x4a8cbc['push'](_0x4a8cbc['shift']());}}}(a241_0x275a,0xa8ee9));export const VERSION=a241_0x291e48(0x17b);function a241_0x275a(){const _0x4f92e7=['225406QJFexC','1797173znhqHk','56pBixHj','def3a65','2026-08-11T07:40:49.851Z','10347502zcViPB','20MdKGdf','3332088kvobay','2.3.16-beta.7','5GIvRuN','627kPxGOb','366Jnzpkf','v2.3.16-beta.7','842715SgVPVX','869100tkLtbu'];a241_0x275a=function(){return _0x4f92e7;};return a241_0x275a();}function a241_0x3a6c(_0x42db8c,_0x21e320){_0x42db8c=_0x42db8c-0x175;const _0x275abe=a241_0x275a();let _0x3a6cc6=_0x275abe[_0x42db8c];return _0x3a6cc6;}export const GIT_TAG=a241_0x291e48(0x17f);export const GIT_COMMIT=a241_0x291e48(0x176);export const BUILD_TIME=a241_0x291e48(0x177);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a242_0x4a3b(){var _0x4454f4=['2200504IeQECD','log','6OBgNVo','12NyyaVs','4905441ptIhiO','\x20to\x20view\x20available\x20commands.','1667364fSLyUI','369280ivfAYU','1839905nmJCEV','bold','green','2786924cCPnyR','4gTvhYj','61178gpapIe','\x20\x20Use\x20'];a242_0x4a3b=function(){return _0x4454f4;};return a242_0x4a3b();}(function(_0x174ffe,_0x113035){var _0x35d28d=a242_0x90f8,_0x155207=_0x174ffe();while(!![]){try{var _0x16b6d8=parseInt(_0x35d28d(0x73))/0x1*(parseInt(_0x35d28d(0x6e))/0x2)+parseInt(_0x35d28d(0x76))/0x3+parseInt(_0x35d28d(0x6d))/0x4*(-parseInt(_0x35d28d(0x69))/0x5)+-parseInt(_0x35d28d(0x72))/0x6*(parseInt(_0x35d28d(0x6c))/0x7)+-parseInt(_0x35d28d(0x70))/0x8+parseInt(_0x35d28d(0x74))/0x9+-parseInt(_0x35d28d(0x68))/0xa;if(_0x16b6d8===_0x113035)break;else _0x155207['push'](_0x155207['shift']());}catch(_0x1c8dff){_0x155207['push'](_0x155207['shift']());}}}(a242_0x4a3b,0x5f2a9));import a242_0x423bb9 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a242_0x90f8(_0x22194d,_0xb728be){_0x22194d=_0x22194d-0x68;var _0x4a3b23=a242_0x4a3b();var _0x90f8c6=_0x4a3b23[_0x22194d];return _0x90f8c6;}export function showHelp(){var _0x400245=a242_0x90f8;console[_0x400245(0x71)](),console[_0x400245(0x71)](a242_0x423bb9[_0x400245(0x6b)][_0x400245(0x6a)]('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console[_0x400245(0x71)](_0x400245(0x6f)+a242_0x423bb9[_0x400245(0x6b)]['bold'](CLI_BIN_NAME+'\x20--help')+_0x400245(0x75)),console[_0x400245(0x71)]();}
1
+ function a242_0x11ce(){var _0x3da90d=['green','1267340mbsHVs','4246xzMduf','1wvvFGV','8aHtwQd','3jlaBTm','4705947ECTZMm','\x20--help','4094900gycXkR','\x20\x20Use\x20','1505063YKbiZf','bold','750472xkeZrN','log','\x20to\x20view\x20available\x20commands.','3229950EieQfO','13440XhUUNP'];a242_0x11ce=function(){return _0x3da90d;};return a242_0x11ce();}(function(_0x18411a,_0x1f5465){var _0x855f48=a242_0x1009,_0x1d71a4=_0x18411a();while(!![]){try{var _0x299e1e=-parseInt(_0x855f48(0xa7))/0x1*(parseInt(_0x855f48(0x9f))/0x2)+parseInt(_0x855f48(0x98))/0x3*(parseInt(_0x855f48(0xa5))/0x4)+parseInt(_0x855f48(0x9b))/0x5+-parseInt(_0x855f48(0xa2))/0x6+parseInt(_0x855f48(0x9d))/0x7*(parseInt(_0x855f48(0x97))/0x8)+-parseInt(_0x855f48(0x99))/0x9+-parseInt(_0x855f48(0xa3))/0xa*(-parseInt(_0x855f48(0xa6))/0xb);if(_0x299e1e===_0x1f5465)break;else _0x1d71a4['push'](_0x1d71a4['shift']());}catch(_0x29e37f){_0x1d71a4['push'](_0x1d71a4['shift']());}}}(a242_0x11ce,0x69c0c));import a242_0x56721d from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a242_0x1009(_0x53e369,_0x43878b){_0x53e369=_0x53e369-0x97;var _0x11ceae=a242_0x11ce();var _0x10099e=_0x11ceae[_0x53e369];return _0x10099e;}export function showHelp(){var _0x458183=a242_0x1009;console[_0x458183(0xa0)](),console[_0x458183(0xa0)](a242_0x56721d[_0x458183(0xa4)][_0x458183(0x9e)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x458183(0xa0)](),console['log'](_0x458183(0x9c)+a242_0x56721d[_0x458183(0xa4)]['bold'](CLI_BIN_NAME+_0x458183(0x9a))+_0x458183(0xa1)),console[_0x458183(0xa0)]();}
@@ -1 +1 @@
1
- (function(_0x58f992,_0x22f22d){const _0x520cc1=a243_0x1aa1,_0x2973d9=_0x58f992();while(!![]){try{const _0x344d73=parseInt(_0x520cc1(0xb5))/0x1+parseInt(_0x520cc1(0xaf))/0x2+parseInt(_0x520cc1(0xb0))/0x3+parseInt(_0x520cc1(0xbe))/0x4*(parseInt(_0x520cc1(0xb3))/0x5)+-parseInt(_0x520cc1(0xa9))/0x6*(-parseInt(_0x520cc1(0xba))/0x7)+-parseInt(_0x520cc1(0xac))/0x8*(-parseInt(_0x520cc1(0xab))/0x9)+parseInt(_0x520cc1(0xb4))/0xa*(-parseInt(_0x520cc1(0xb1))/0xb);if(_0x344d73===_0x22f22d)break;else _0x2973d9['push'](_0x2973d9['shift']());}catch(_0x4e770e){_0x2973d9['push'](_0x2973d9['shift']());}}}(a243_0x7ded,0xe40ba));function a243_0x7ded(){const _0x104895=['2091864IxsqRz',';该操作可能覆盖、删除或明显影响线上运行行为。','54xtygXE','high-risk-write','5328DfiYcg','160yvoFuM','write',';该操作可能创建或修改业务数据或本地配置。','813842MmoRPd','3255441YFvwON','23606wwRHnr','trim','15CQltce','12850xqWFoS','150833aWNZRt','string','slice','将执行写入操作\x20','risk','364035OGCcxF','confirmationDescription','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','replace'];a243_0x7ded=function(){return _0x104895;};return a243_0x7ded();}const DESCRIPTION_MAX_LENGTH=0x1f4;function a243_0x1aa1(_0x1afa38,_0x1b6077){_0x1afa38=_0x1afa38-0xa9;const _0x7ded8c=a243_0x7ded();let _0x1aa149=_0x7ded8c[_0x1afa38];return _0x1aa149;}export function buildRabetbaseConfirmationRequest(_0x2d325e,_0x417181,_0x3043e6){const _0x577225=a243_0x1aa1,_0x3ad610=normalizeText(_0x2d325e[_0x577225(0xbb)],DESCRIPTION_MAX_LENGTH),_0x5750cf=_0x3ad610||normalizeText(defaultDescription(requireWriteRisk(_0x2d325e),_0x417181),DESCRIPTION_MAX_LENGTH);return{'operation':_0x417181,'risk':requireWriteRisk(_0x2d325e),'description':_0x5750cf,..._0x3043e6?{'signal':_0x3043e6}:{}};}function requireWriteRisk(_0x5921d0){const _0x492b05=a243_0x1aa1;if(_0x5921d0['risk']===_0x492b05(0xad)||_0x5921d0[_0x492b05(0xb9)]===_0x492b05(0xaa))return _0x5921d0[_0x492b05(0xb9)];throw new Error(_0x492b05(0xbc));}function defaultDescription(_0x148b66,_0x309044){const _0x4a31b0=a243_0x1aa1;if(_0x148b66===_0x4a31b0(0xaa))return'将执行高风险写入操作\x20'+_0x309044+_0x4a31b0(0xbf);return _0x4a31b0(0xb8)+_0x309044+_0x4a31b0(0xae);}function normalizeText(_0x5c3328,_0x31c68e){const _0x2178b6=a243_0x1aa1;if(typeof _0x5c3328!==_0x2178b6(0xb6))return'';return _0x5c3328[_0x2178b6(0xbd)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x2178b6(0xbd)](/\s+/g,'\x20')[_0x2178b6(0xb2)]()[_0x2178b6(0xb7)](0x0,_0x31c68e);}
1
+ (function(_0x17be3a,_0x3b04b5){const _0x3c5f9e=a243_0x2494,_0x238d5c=_0x17be3a();while(!![]){try{const _0x2de29b=-parseInt(_0x3c5f9e(0x162))/0x1+parseInt(_0x3c5f9e(0x158))/0x2+-parseInt(_0x3c5f9e(0x159))/0x3*(parseInt(_0x3c5f9e(0x15c))/0x4)+parseInt(_0x3c5f9e(0x157))/0x5+-parseInt(_0x3c5f9e(0x151))/0x6*(parseInt(_0x3c5f9e(0x152))/0x7)+-parseInt(_0x3c5f9e(0x165))/0x8*(-parseInt(_0x3c5f9e(0x153))/0x9)+-parseInt(_0x3c5f9e(0x15b))/0xa*(parseInt(_0x3c5f9e(0x161))/0xb);if(_0x2de29b===_0x3b04b5)break;else _0x238d5c['push'](_0x238d5c['shift']());}catch(_0x2ef252){_0x238d5c['push'](_0x238d5c['shift']());}}}(a243_0x1284,0xa5bb2));const DESCRIPTION_MAX_LENGTH=0x1f4;function a243_0x2494(_0x4a85b2,_0x3c6845){_0x4a85b2=_0x4a85b2-0x14e;const _0x128457=a243_0x1284();let _0x2494f2=_0x128457[_0x4a85b2];return _0x2494f2;}export function buildRabetbaseConfirmationRequest(_0x15c139,_0x1bdbd5,_0x13778e){const _0x5bca83=a243_0x2494,_0x4d06cf=normalizeText(_0x15c139[_0x5bca83(0x14f)],DESCRIPTION_MAX_LENGTH),_0x438ae1=_0x4d06cf||normalizeText(defaultDescription(requireWriteRisk(_0x15c139),_0x1bdbd5),DESCRIPTION_MAX_LENGTH);return{'operation':_0x1bdbd5,'risk':requireWriteRisk(_0x15c139),'description':_0x438ae1,..._0x13778e?{'signal':_0x13778e}:{}};}function a243_0x1284(){const _0x4962ad=['20FYcOWN','860jiIGbn','trim','将执行高风险写入操作\x20','replace','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','1248731SBCVoe','8191KgykIf','write',';该操作可能创建或修改业务数据或本地配置。','3064qAcfFz',';该操作可能覆盖、删除或明显影响线上运行行为。','confirmationDescription','high-risk-write','114AZJcOF','253337uuLnVL','9351VOdOym','将执行写入操作\x20','string','slice','2933950TshkeT','1717258WasLoZ','3372geUjtz','risk'];a243_0x1284=function(){return _0x4962ad;};return a243_0x1284();}function requireWriteRisk(_0x18c0fe){const _0x41835d=a243_0x2494;if(_0x18c0fe[_0x41835d(0x15a)]===_0x41835d(0x163)||_0x18c0fe[_0x41835d(0x15a)]===_0x41835d(0x150))return _0x18c0fe[_0x41835d(0x15a)];throw new Error(_0x41835d(0x160));}function defaultDescription(_0x49a2e6,_0x2963e0){const _0x2469d3=a243_0x2494;if(_0x49a2e6==='high-risk-write')return _0x2469d3(0x15e)+_0x2963e0+_0x2469d3(0x14e);return _0x2469d3(0x154)+_0x2963e0+_0x2469d3(0x164);}function normalizeText(_0x955544,_0x438712){const _0x3381af=a243_0x2494;if(typeof _0x955544!==_0x3381af(0x155))return'';return _0x955544[_0x3381af(0x15f)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x3381af(0x15f)](/\s+/g,'\x20')[_0x3381af(0x15d)]()[_0x3381af(0x156)](0x0,_0x438712);}
@@ -1 +1 @@
1
- function a244_0x26a3(){var _0x3cffda=['217BJanJa','rabetbase.write.completed','88566KrmTrQ','command','1724JOcuCj','211624JKtENs','652524guiLIT','risk','1815gFMIOd','high-risk-write','786186xyLgwS','join','write','30sFKMOF','service','trim','filter','16180002ZngAZs','split','29584280toUNgk'];a244_0x26a3=function(){return _0x3cffda;};return a244_0x26a3();}(function(_0x20ac1e,_0x381c8a){var _0x521163=a244_0x3ade,_0x1e24b2=_0x20ac1e();while(!![]){try{var _0x3a5d29=-parseInt(_0x521163(0x170))/0x1+parseInt(_0x521163(0x17e))/0x2*(-parseInt(_0x521163(0x182))/0x3)+parseInt(_0x521163(0x180))/0x4+-parseInt(_0x521163(0x173))/0x5*(-parseInt(_0x521163(0x17c))/0x6)+-parseInt(_0x521163(0x17a))/0x7*(-parseInt(_0x521163(0x17f))/0x8)+-parseInt(_0x521163(0x177))/0x9+parseInt(_0x521163(0x179))/0xa;if(_0x3a5d29===_0x381c8a)break;else _0x1e24b2['push'](_0x1e24b2['shift']());}catch(_0x1e3d1c){_0x1e24b2['push'](_0x1e24b2['shift']());}}}(a244_0x26a3,0xe1c16));export function canonicalRabetbaseOperation(_0x568e78){var _0x3a3d11=a244_0x3ade;return[_0x568e78[_0x3a3d11(0x174)],..._0x568e78[_0x3a3d11(0x17d)][_0x3a3d11(0x175)]()[_0x3a3d11(0x178)](/\s+/)][_0x3a3d11(0x176)](Boolean)[_0x3a3d11(0x171)]('.');}function a244_0x3ade(_0xf896d0,_0x5aa1e1){_0xf896d0=_0xf896d0-0x170;var _0x26a391=a244_0x26a3();var _0x3ade33=_0x26a391[_0xf896d0];return _0x3ade33;}export function createRabetbaseWriteMetadata(_0x4b2a02,_0x32a07d,_0x2733c4,_0x2a36f8){var _0x5d8011=a244_0x3ade;if(_0x2a36f8||_0x2733c4['ok']!==!![]||_0x4b2a02[_0x5d8011(0x181)]!==_0x5d8011(0x172)&&_0x4b2a02[_0x5d8011(0x181)]!==_0x5d8011(0x183))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x5d8011(0x17b),'operation':_0x32a07d,'risk':_0x4b2a02[_0x5d8011(0x181)]}}};}
1
+ (function(_0x51838e,_0xd6aab0){var _0x32be53=a244_0x1153,_0x16b307=_0x51838e();while(!![]){try{var _0x1247b1=-parseInt(_0x32be53(0xde))/0x1*(parseInt(_0x32be53(0xd8))/0x2)+-parseInt(_0x32be53(0xe0))/0x3+-parseInt(_0x32be53(0xdd))/0x4+-parseInt(_0x32be53(0xda))/0x5*(parseInt(_0x32be53(0xd2))/0x6)+-parseInt(_0x32be53(0xd4))/0x7+-parseInt(_0x32be53(0xd7))/0x8+parseInt(_0x32be53(0xe1))/0x9*(parseInt(_0x32be53(0xdc))/0xa);if(_0x1247b1===_0xd6aab0)break;else _0x16b307['push'](_0x16b307['shift']());}catch(_0x25cc9a){_0x16b307['push'](_0x16b307['shift']());}}}(a244_0xc2d3,0x9234b));export function canonicalRabetbaseOperation(_0x14c0c1){var _0x13b91e=a244_0x1153;return[_0x14c0c1['service'],..._0x14c0c1[_0x13b91e(0xd5)]['trim']()[_0x13b91e(0xdf)](/\s+/)]['filter'](Boolean)[_0x13b91e(0xd9)]('.');}function a244_0xc2d3(){var _0x17d078=['9052376jOBdJh','975722RLqUOK','join','3988060kRgrom','risk','250UpxMMp','3278604HJsWVu','1JOxNqW','split','2780007UyZkDy','1818459RBjFwY','high-risk-write','6yuCHDG','write','2023532Rqqcra','command','rabetbase.write.completed'];a244_0xc2d3=function(){return _0x17d078;};return a244_0xc2d3();}function a244_0x1153(_0x3b89c0,_0x19c734){_0x3b89c0=_0x3b89c0-0xd2;var _0xc2d344=a244_0xc2d3();var _0x11532d=_0xc2d344[_0x3b89c0];return _0x11532d;}export function createRabetbaseWriteMetadata(_0x1cbc74,_0xd33a7,_0x2ef0a7,_0x39e128){var _0x3b928f=a244_0x1153;if(_0x39e128||_0x2ef0a7['ok']!==!![]||_0x1cbc74[_0x3b928f(0xdb)]!==_0x3b928f(0xd3)&&_0x1cbc74[_0x3b928f(0xdb)]!==_0x3b928f(0xe2))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x3b928f(0xd6),'operation':_0xd33a7,'risk':_0x1cbc74[_0x3b928f(0xdb)]}}};}
@@ -1 +1 @@
1
- (function(_0x3bde3e,_0x1c0aff){const _0xfd94c8=a245_0x2fe9,_0x3c80f4=_0x3bde3e();while(!![]){try{const _0x3878c3=parseInt(_0xfd94c8(0x167))/0x1*(-parseInt(_0xfd94c8(0x16d))/0x2)+parseInt(_0xfd94c8(0x15e))/0x3+-parseInt(_0xfd94c8(0x174))/0x4+parseInt(_0xfd94c8(0x16f))/0x5+-parseInt(_0xfd94c8(0x171))/0x6+-parseInt(_0xfd94c8(0x16b))/0x7*(parseInt(_0xfd94c8(0x177))/0x8)+parseInt(_0xfd94c8(0x175))/0x9*(parseInt(_0xfd94c8(0x16e))/0xa);if(_0x3878c3===_0x1c0aff)break;else _0x3c80f4['push'](_0x3c80f4['shift']());}catch(_0x18f00f){_0x3c80f4['push'](_0x3c80f4['shift']());}}}(a245_0x37db,0x342f8));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:_0x5da534,command:_0x126ea5,risk:_0x144d64,dryRun:_0x2a38d2}){const _0xbc7121=a245_0x2fe9;return JSON[_0xbc7121(0x173)]({'ok':_0x5da534['ok'],'command':_0x126ea5,'risk':_0x144d64,..._0x2a38d2?{'dryRun':!![]}:{},..._0x5da534[_0xbc7121(0x16c)]!==undefined?{'data':_0x5da534[_0xbc7121(0x16c)]}:{},..._0x5da534['message']?{'message':_0x5da534[_0xbc7121(0x176)]}:{}});}};function a245_0x2fe9(_0x2f8276,_0x7ea3f6){_0x2f8276=_0x2f8276-0x15a;const _0x37db69=a245_0x37db();let _0x2fe9c5=_0x37db69[_0x2f8276];return _0x2fe9c5;}export async function invokeRabetbase(_0x578686,_0x200c75){const _0x2658c8=a245_0x2fe9;throwIfAborted(_0x200c75['signal']);const _0x702f09=await resolveRabetbaseInvocation(_0x578686),_0x223c32=canonicalRabetbaseOperation(_0x702f09[_0x2658c8(0x163)]);return await confirmWriteBeforeQueue(_0x702f09[_0x2658c8(0x163)],_0x702f09[_0x2658c8(0x17b)],_0x223c32,_0x200c75),runSerialized(async()=>{const _0x228d99=_0x2658c8,_0x17f213={};try{throwIfAborted(_0x200c75['signal']);const _0x3d2c00=buildConfigFromFlags(_0x702f09[_0x228d99(0x17b)]);await initGlobalEnvironment(_0x3d2c00);const _0x4c06dd=createPipelineEnv(_0x3d2c00,{..._0x702f09[_0x228d99(0x17b)],'yes':_0x702f09['definition']['risk']==='high-risk-write'?!![]:_0x702f09[_0x228d99(0x17b)][_0x228d99(0x15d)],'nonInteractive':!![]},_0x702f09[_0x228d99(0x162)]);_0x4c06dd[_0x228d99(0x15c)]=!![],_0x4c06dd[_0x228d99(0x166)]='high-risk-write';const _0x2e5117=withAbortSignal(_0x702f09[_0x228d99(0x163)],_0x200c75[_0x228d99(0x15f)]),_0x421bc4=createRabetbaseRunnerAdapter({'formatOutput'(_0x58e51d,_0x5cc5ca){const _0x443e4c=_0x228d99;_0x17f213[_0x443e4c(0x161)]=_0x58e51d,_0x17f213['command']=_0x5cc5ca['command'],_0x17f213['risk']=_0x5cc5ca[_0x443e4c(0x164)],_0x17f213[_0x443e4c(0x178)]=_0x5cc5ca['format'],_0x17f213[_0x443e4c(0x179)]=_0x5cc5ca['dryRun']===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.');}});await runCommand(_0x2e5117,_0x4c06dd,_0x421bc4);if(!_0x17f213['result']||!_0x17f213[_0x228d99(0x16a)]||!_0x17f213[_0x228d99(0x164)]||!_0x17f213['format'])throw new Error(_0x228d99(0x17c));const _0x329df3=_0x17f213[_0x228d99(0x179)]===!![],_0x31a74b=_0x200c75[_0x228d99(0x160)]??defaultPresentation,_0x5e4714={'result':_0x17f213[_0x228d99(0x161)],'command':_0x17f213[_0x228d99(0x16a)],'operation':_0x223c32,'risk':_0x17f213['risk'],'format':_0x17f213[_0x228d99(0x178)],'dryRun':_0x329df3},_0x3b7093=createRabetbaseWriteMetadata(_0x702f09[_0x228d99(0x163)],_0x223c32,_0x17f213[_0x228d99(0x161)],_0x329df3);let _0x54b466;try{_0x54b466=await _0x31a74b['present'](_0x5e4714);}catch(_0x218b51){if(!_0x3b7093||_0x31a74b===defaultPresentation)throw _0x218b51;_0x54b466=await defaultPresentation[_0x228d99(0x165)](_0x5e4714);}return{'operation':_0x223c32,'risk':_0x17f213[_0x228d99(0x164)],'mode':_0x329df3?_0x228d99(0x15a):'execute','result':_0x17f213[_0x228d99(0x161)],'output':_0x54b466,..._0x3b7093?{'metadata':_0x3b7093}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x21152f,_0x5c5176,_0x1a63e8,_0xd897){const _0x2f0141=a245_0x2fe9;if(_0x5c5176[_0x2f0141(0x179)]===!![]||_0x21152f['risk']!==_0x2f0141(0x168)&&_0x21152f[_0x2f0141(0x164)]!=='high-risk-write')return;await _0xd897[_0x2f0141(0x172)][_0x2f0141(0x17e)](buildRabetbaseConfirmationRequest(_0x21152f,_0x1a63e8,_0xd897[_0x2f0141(0x15f)]));}function withAbortSignal(_0x250010,_0x7e3b3f){return{..._0x250010,async 'execute'(_0x1a4c2b){const _0x247a80=a245_0x2fe9;return throwIfAborted(_0x7e3b3f),_0x250010[_0x247a80(0x17d)](_0x1a4c2b);}};}function a245_0x37db(){const _0x17577c=['args','definition','risk','present','riskLevel','4jlmCNa','write','AbortError','command','799827WcROlq','data','141148xcrryH','110UFOXiJ','2112265tAbbbk','aborted','1582560hxfYNB','confirmation','stringify','1243912HWRPWk','633159VfWxzk','message','24qilfcM','format','dryRun','Rabetbase\x20invocation\x20aborted.','rawFlags','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','execute','confirm','dry-run','reason','isNonInteractive','yes','651765PANxWm','signal','presentation','result'];a245_0x37db=function(){return _0x17577c;};return a245_0x37db();}function throwIfAborted(_0x29570b){const _0x1b59e0=a245_0x2fe9;if(_0x29570b?.[_0x1b59e0(0x170)])throw _0x29570b[_0x1b59e0(0x15b)]instanceof Error?_0x29570b['reason']:new DOMException(_0x1b59e0(0x17a),_0x1b59e0(0x169));}
1
+ (function(_0x3ecd6c,_0x5ee52b){const _0xf12755=a245_0x5af8,_0x3a8cfb=_0x3ecd6c();while(!![]){try{const _0x2ca8b8=parseInt(_0xf12755(0x1eb))/0x1*(parseInt(_0xf12755(0x1f6))/0x2)+-parseInt(_0xf12755(0x1e8))/0x3+-parseInt(_0xf12755(0x1d8))/0x4+parseInt(_0xf12755(0x1e9))/0x5*(-parseInt(_0xf12755(0x1f8))/0x6)+-parseInt(_0xf12755(0x1f7))/0x7*(parseInt(_0xf12755(0x1e6))/0x8)+parseInt(_0xf12755(0x1f3))/0x9*(-parseInt(_0xf12755(0x1ee))/0xa)+parseInt(_0xf12755(0x1de))/0xb;if(_0x2ca8b8===_0x5ee52b)break;else _0x3a8cfb['push'](_0x3a8cfb['shift']());}catch(_0x3f3658){_0x3a8cfb['push'](_0x3a8cfb['shift']());}}}(a245_0x3a0a,0xa35a9));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';function a245_0x3a0a(){const _0x2d9a05=['data','command','confirm','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','args','message','confirmation','12824jyZqNN','riskLevel','597516lbBuaw','4722715TUaWcn','aborted','103saMkfz','result','dryRun','151390oShLaI','reason','execute','definition','risk','621DXouro','high-risk-write','stringify','25646sGMiej','4725AWCorF','6bQfvxe','AbortError','828272IIWhaw','rawFlags','signal','Rabetbase\x20invocation\x20aborted.','format','present','31082997yNiOef'];a245_0x3a0a=function(){return _0x2d9a05;};return a245_0x3a0a();}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:_0x4f30ec,command:_0x5a70fe,risk:_0x2e09a7,dryRun:_0x55e9f8}){const _0x1a18a8=a245_0x5af8;return JSON[_0x1a18a8(0x1f5)]({'ok':_0x4f30ec['ok'],'command':_0x5a70fe,'risk':_0x2e09a7,..._0x55e9f8?{'dryRun':!![]}:{},..._0x4f30ec[_0x1a18a8(0x1df)]!==undefined?{'data':_0x4f30ec[_0x1a18a8(0x1df)]}:{},..._0x4f30ec[_0x1a18a8(0x1e4)]?{'message':_0x4f30ec[_0x1a18a8(0x1e4)]}:{}});}};export async function invokeRabetbase(_0x5954c5,_0x534d25){const _0x318857=a245_0x5af8;throwIfAborted(_0x534d25[_0x318857(0x1da)]);const _0x33f13f=await resolveRabetbaseInvocation(_0x5954c5),_0x69f2c7=canonicalRabetbaseOperation(_0x33f13f['definition']);return await confirmWriteBeforeQueue(_0x33f13f[_0x318857(0x1f1)],_0x33f13f['rawFlags'],_0x69f2c7,_0x534d25),runSerialized(async()=>{const _0x34909b=_0x318857,_0x1964b4={};try{throwIfAborted(_0x534d25[_0x34909b(0x1da)]);const _0x14db35=buildConfigFromFlags(_0x33f13f[_0x34909b(0x1d9)]);await initGlobalEnvironment(_0x14db35);const _0x2a1ddf=createPipelineEnv(_0x14db35,{..._0x33f13f[_0x34909b(0x1d9)],'yes':_0x33f13f[_0x34909b(0x1f1)]['risk']===_0x34909b(0x1f4)?!![]:_0x33f13f[_0x34909b(0x1d9)]['yes'],'nonInteractive':!![]},_0x33f13f[_0x34909b(0x1e3)]);_0x2a1ddf['isNonInteractive']=!![],_0x2a1ddf[_0x34909b(0x1e7)]=_0x34909b(0x1f4);const _0x13b5e2=withAbortSignal(_0x33f13f[_0x34909b(0x1f1)],_0x534d25[_0x34909b(0x1da)]),_0x1723d1=createRabetbaseRunnerAdapter({'formatOutput'(_0x58e935,_0x26789c){const _0x47aeea=_0x34909b;_0x1964b4[_0x47aeea(0x1ec)]=_0x58e935,_0x1964b4[_0x47aeea(0x1e0)]=_0x26789c[_0x47aeea(0x1e0)],_0x1964b4['risk']=_0x26789c[_0x47aeea(0x1f2)],_0x1964b4[_0x47aeea(0x1dc)]=_0x26789c[_0x47aeea(0x1dc)],_0x1964b4[_0x47aeea(0x1ed)]=_0x26789c[_0x47aeea(0x1ed)]===!![];},async 'confirmHighRisk'(){const _0x24638f=_0x34909b;throw new Error(_0x24638f(0x1e2));}});await runCommand(_0x13b5e2,_0x2a1ddf,_0x1723d1);if(!_0x1964b4[_0x34909b(0x1ec)]||!_0x1964b4['command']||!_0x1964b4[_0x34909b(0x1f2)]||!_0x1964b4[_0x34909b(0x1dc)])throw new Error('Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.');const _0x3ce108=_0x1964b4[_0x34909b(0x1ed)]===!![],_0x21f8e6=_0x534d25['presentation']??defaultPresentation,_0x313551={'result':_0x1964b4[_0x34909b(0x1ec)],'command':_0x1964b4[_0x34909b(0x1e0)],'operation':_0x69f2c7,'risk':_0x1964b4[_0x34909b(0x1f2)],'format':_0x1964b4[_0x34909b(0x1dc)],'dryRun':_0x3ce108},_0x50a39d=createRabetbaseWriteMetadata(_0x33f13f[_0x34909b(0x1f1)],_0x69f2c7,_0x1964b4['result'],_0x3ce108);let _0x56fac8;try{_0x56fac8=await _0x21f8e6[_0x34909b(0x1dd)](_0x313551);}catch(_0x2110a6){if(!_0x50a39d||_0x21f8e6===defaultPresentation)throw _0x2110a6;_0x56fac8=await defaultPresentation[_0x34909b(0x1dd)](_0x313551);}return{'operation':_0x69f2c7,'risk':_0x1964b4['risk'],'mode':_0x3ce108?'dry-run':_0x34909b(0x1f0),'result':_0x1964b4['result'],'output':_0x56fac8,..._0x50a39d?{'metadata':_0x50a39d}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x1e5704,_0x2efcbc,_0x200596,_0x448dfe){const _0x225a9a=a245_0x5af8;if(_0x2efcbc[_0x225a9a(0x1ed)]===!![]||_0x1e5704[_0x225a9a(0x1f2)]!=='write'&&_0x1e5704[_0x225a9a(0x1f2)]!=='high-risk-write')return;await _0x448dfe[_0x225a9a(0x1e5)][_0x225a9a(0x1e1)](buildRabetbaseConfirmationRequest(_0x1e5704,_0x200596,_0x448dfe[_0x225a9a(0x1da)]));}function withAbortSignal(_0x472791,_0x189e4c){return{..._0x472791,async 'execute'(_0x5bb466){const _0x1b22c4=a245_0x5af8;return throwIfAborted(_0x189e4c),_0x472791[_0x1b22c4(0x1f0)](_0x5bb466);}};}function a245_0x5af8(_0x5a23f8,_0x1296ae){_0x5a23f8=_0x5a23f8-0x1d7;const _0x3a0a32=a245_0x3a0a();let _0x5af806=_0x3a0a32[_0x5a23f8];return _0x5af806;}function throwIfAborted(_0x157ef4){const _0x5b0ce8=a245_0x5af8;if(_0x157ef4?.[_0x5b0ce8(0x1ea)])throw _0x157ef4['reason']instanceof Error?_0x157ef4[_0x5b0ce8(0x1ef)]:new DOMException(_0x5b0ce8(0x1db),_0x5b0ce8(0x1d7));}
@@ -1 +1 @@
1
- const a246_0x403396=a246_0x46e2;(function(_0x1ec4ff,_0x20e4bc){const _0x1f8956=a246_0x46e2,_0x1cbf02=_0x1ec4ff();while(!![]){try{const _0xb0ce92=parseInt(_0x1f8956(0x1ad))/0x1+parseInt(_0x1f8956(0x1aa))/0x2*(parseInt(_0x1f8956(0x1b0))/0x3)+parseInt(_0x1f8956(0x1ab))/0x4+parseInt(_0x1f8956(0x1b1))/0x5+-parseInt(_0x1f8956(0x1ac))/0x6+-parseInt(_0x1f8956(0x1ae))/0x7+parseInt(_0x1f8956(0x1a9))/0x8;if(_0xb0ce92===_0x20e4bc)break;else _0x1cbf02['push'](_0x1cbf02['shift']());}catch(_0x3fc2a1){_0x1cbf02['push'](_0x1cbf02['shift']());}}}(a246_0x3209,0x39d3d));function a246_0x46e2(_0x320de1,_0x49dfc3){_0x320de1=_0x320de1-0x1a9;const _0x320917=a246_0x3209();let _0x46e2a8=_0x320917[_0x320de1];return _0x46e2a8;}let tail=Promise[a246_0x403396(0x1af)]();function a246_0x3209(){const _0x443e93=['catch','452088cURSmg','2boOuLV','114700MqFkZW','521784ygeGfI','85472cFmLly','3223815JeapaD','resolve','436881ukwqTO','2340425xGByKV'];a246_0x3209=function(){return _0x443e93;};return a246_0x3209();}export async function runSerialized(_0x3694e4){const _0xafaea8=a246_0x403396,_0x3a4714=tail;let _0xc6db40;tail=new Promise(_0x543d39=>{_0xc6db40=_0x543d39;}),await _0x3a4714[_0xafaea8(0x1b2)](()=>undefined);try{return await _0x3694e4();}finally{_0xc6db40();}}
1
+ (function(_0x46fe8b,_0x3dbc4c){const _0x58e382=a246_0x4e36,_0x3e862f=_0x46fe8b();while(!![]){try{const _0x116010=-parseInt(_0x58e382(0x1aa))/0x1*(-parseInt(_0x58e382(0x1ae))/0x2)+parseInt(_0x58e382(0x1ac))/0x3*(-parseInt(_0x58e382(0x1ab))/0x4)+parseInt(_0x58e382(0x1a9))/0x5*(parseInt(_0x58e382(0x1a5))/0x6)+parseInt(_0x58e382(0x1a8))/0x7+parseInt(_0x58e382(0x1b0))/0x8*(-parseInt(_0x58e382(0x1af))/0x9)+parseInt(_0x58e382(0x1a6))/0xa+-parseInt(_0x58e382(0x1a7))/0xb*(parseInt(_0x58e382(0x1ad))/0xc);if(_0x116010===_0x3dbc4c)break;else _0x3e862f['push'](_0x3e862f['shift']());}catch(_0x5e794a){_0x3e862f['push'](_0x3e862f['shift']());}}}(a246_0x4f89,0x3997d));function a246_0x4e36(_0x5f4e72,_0x25007f){_0x5f4e72=_0x5f4e72-0x1a4;const _0x4f89c0=a246_0x4f89();let _0x4e36ba=_0x4f89c0[_0x5f4e72];return _0x4e36ba;}let tail=Promise['resolve']();export async function runSerialized(_0x2dedd2){const _0x25a1d2=a246_0x4e36,_0x10cbb2=tail;let _0xdd9320;tail=new Promise(_0x5cb780=>{_0xdd9320=_0x5cb780;}),await _0x10cbb2[_0x25a1d2(0x1a4)](()=>undefined);try{return await _0x2dedd2();}finally{_0xdd9320();}}function a246_0x4f89(){const _0x351126=['639doFeBl','23632IQyrCy','catch','18dImQBk','843190LBzPMt','88638QfLFNY','1567237biodjW','258155uIkUJV','16pdiDvE','22232MAJUoF','36VYFFdK','408bTArIV','40400MEjpFU'];a246_0x4f89=function(){return _0x351126;};return a246_0x4f89();}
@@ -1 +1 @@
1
- function a247_0x1e07(){const _0x1d2cd0=['unknownCommand','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','wildcardDef','168151uXxsjC','slice','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','18843168vSGdEE','validation','4910915cnlNbx','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','1209764RmLLtU','join','411132qnmfJY','defaultCommand','6343272SBpvqc','message','run','5935895LYyPXK','6eOfbiq','hint'];a247_0x1e07=function(){return _0x1d2cd0;};return a247_0x1e07();}(function(_0x570c41,_0x142c26){const _0x3700bb=a247_0x4287,_0x4cb522=_0x570c41();while(!![]){try{const _0x109934=parseInt(_0x3700bb(0x174))/0x1+-parseInt(_0x3700bb(0x169))/0x2+parseInt(_0x3700bb(0x16f))/0x3*(-parseInt(_0x3700bb(0x167))/0x4)+parseInt(_0x3700bb(0x179))/0x5+-parseInt(_0x3700bb(0x16b))/0x6+-parseInt(_0x3700bb(0x16e))/0x7+parseInt(_0x3700bb(0x177))/0x8;if(_0x109934===_0x142c26)break;else _0x4cb522['push'](_0x4cb522['shift']());}catch(_0x5960e3){_0x4cb522['push'](_0x4cb522['shift']());}}}(a247_0x1e07,0xc0e45));import a247_0x25f076 from'meow';function a247_0x4287(_0x4d10d3,_0x7d8597){_0x4d10d3=_0x4d10d3-0x167;const _0x1e07e8=a247_0x1e07();let _0x4287e1=_0x1e07e8[_0x4d10d3];return _0x4287e1;}import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveRabetbaseInvocation(_0x57d6b6){const _0x61185a=a247_0x4287,_0x238271=a247_0x25f076('',{'importMeta':import.meta,'argv':[..._0x57d6b6],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x273739=[..._0x238271['input']],_0x7426a5=_0x238271['flags'],_0x27f369=_0x273739[0x0];if(!_0x27f369)throw CliErrors[_0x61185a(0x178)](_0x61185a(0x176));const _0x3cc895=resolveRemovedCommand(_0x27f369,_0x273739[0x1]);if(_0x3cc895)throw CliErrors[_0x61185a(0x178)](_0x3cc895[_0x61185a(0x16c)],_0x3cc895[_0x61185a(0x170)]);if(_0x27f369===_0x61185a(0x16d))throw CliErrors[_0x61185a(0x178)](_0x61185a(0x17a),'Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.');if(!isKnownService(_0x27f369))throw CliErrors['unknownCommand'](_0x273739[_0x61185a(0x168)]('\x20'));const _0x4bf40b=getServiceEntry(_0x27f369),_0x469749=_0x273739[0x1],_0x24636c=_0x469749||_0x4bf40b[_0x61185a(0x16a)];if(!_0x24636c){if(_0x4bf40b[_0x61185a(0x173)])return{'definition':_0x4bf40b['wildcardDef'],'rawFlags':_0x7426a5,'args':[]};throw CliErrors[_0x61185a(0x178)](_0x61185a(0x172)+_0x27f369+'\x22.');}const _0x3c30c2=findDefinition(_0x27f369,_0x24636c);if(_0x3c30c2)return{'definition':_0x3c30c2,'rawFlags':_0x7426a5,'args':_0x273739[_0x61185a(0x175)](0x2)};if(_0x4bf40b[_0x61185a(0x173)])return{'definition':_0x4bf40b[_0x61185a(0x173)],'rawFlags':_0x7426a5,'args':[_0x24636c,..._0x273739[_0x61185a(0x175)](0x2)]};throw CliErrors[_0x61185a(0x171)](_0x27f369+'\x20'+_0x24636c);}
1
+ (function(_0x18f55b,_0x4fa618){const _0x5235c2=a247_0x3dd0,_0x44e9bf=_0x18f55b();while(!![]){try{const _0xbf3fca=-parseInt(_0x5235c2(0x13d))/0x1+parseInt(_0x5235c2(0x13b))/0x2*(parseInt(_0x5235c2(0x13e))/0x3)+-parseInt(_0x5235c2(0x14a))/0x4*(-parseInt(_0x5235c2(0x14e))/0x5)+parseInt(_0x5235c2(0x149))/0x6*(parseInt(_0x5235c2(0x145))/0x7)+-parseInt(_0x5235c2(0x142))/0x8+parseInt(_0x5235c2(0x147))/0x9+-parseInt(_0x5235c2(0x13f))/0xa*(-parseInt(_0x5235c2(0x143))/0xb);if(_0xbf3fca===_0x4fa618)break;else _0x44e9bf['push'](_0x44e9bf['shift']());}catch(_0x178ec3){_0x44e9bf['push'](_0x44e9bf['shift']());}}}(a247_0x5d94,0xf0021));import a247_0x49e7da from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a247_0x3dd0(_0xf166a6,_0x36dbc5){_0xf166a6=_0xf166a6-0x13b;const _0x5d94b3=a247_0x5d94();let _0x3dd048=_0x5d94b3[_0xf166a6];return _0x3dd048;}function a247_0x5d94(){const _0xfe64ee=['183xIcauS','109160gXQjtB','input','defaultCommand','14312160UJYnLc','407pYukug','validation','828086QTjERb','flags','12081519SMXcIS','wildcardDef','6hlRWep','503988tFMSuX','join','run','slice','10UypaCP','28746IbsNsh','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','221235nTFXsH'];a247_0x5d94=function(){return _0xfe64ee;};return a247_0x5d94();}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveRabetbaseInvocation(_0x30ff3d){const _0x31f800=a247_0x3dd0,_0x56131b=a247_0x49e7da('',{'importMeta':import.meta,'argv':[..._0x30ff3d],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x2e5192=[..._0x56131b[_0x31f800(0x140)]],_0x5816c6=_0x56131b[_0x31f800(0x146)],_0x2c0eb6=_0x2e5192[0x0];if(!_0x2c0eb6)throw CliErrors[_0x31f800(0x144)]('Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.');const _0x5e34ec=resolveRemovedCommand(_0x2c0eb6,_0x2e5192[0x1]);if(_0x5e34ec)throw CliErrors[_0x31f800(0x144)](_0x5e34ec['message'],_0x5e34ec['hint']);if(_0x2c0eb6===_0x31f800(0x14c))throw CliErrors['validation']('`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.');if(!isKnownService(_0x2c0eb6))throw CliErrors['unknownCommand'](_0x2e5192[_0x31f800(0x14b)]('\x20'));const _0x5d3137=getServiceEntry(_0x2c0eb6),_0xf1801e=_0x2e5192[0x1],_0x525547=_0xf1801e||_0x5d3137[_0x31f800(0x141)];if(!_0x525547){if(_0x5d3137['wildcardDef'])return{'definition':_0x5d3137['wildcardDef'],'rawFlags':_0x5816c6,'args':[]};throw CliErrors[_0x31f800(0x144)](_0x31f800(0x13c)+_0x2c0eb6+'\x22.');}const _0x41258b=findDefinition(_0x2c0eb6,_0x525547);if(_0x41258b)return{'definition':_0x41258b,'rawFlags':_0x5816c6,'args':_0x2e5192[_0x31f800(0x14d)](0x2)};if(_0x5d3137[_0x31f800(0x148)])return{'definition':_0x5d3137['wildcardDef'],'rawFlags':_0x5816c6,'args':[_0x525547,..._0x2e5192[_0x31f800(0x14d)](0x2)]};throw CliErrors['unknownCommand'](_0x2c0eb6+'\x20'+_0x525547);}
@@ -1 +1 @@
1
- (function(_0x3351a4,_0x3e20f8){const _0x302123=a249_0x3d97,_0x245198=_0x3351a4();while(!![]){try{const _0x56e8bc=-parseInt(_0x302123(0x7c))/0x1+parseInt(_0x302123(0x75))/0x2*(-parseInt(_0x302123(0x94))/0x3)+parseInt(_0x302123(0x81))/0x4+parseInt(_0x302123(0x87))/0x5+-parseInt(_0x302123(0x84))/0x6*(-parseInt(_0x302123(0x91))/0x7)+-parseInt(_0x302123(0x76))/0x8*(parseInt(_0x302123(0x83))/0x9)+parseInt(_0x302123(0x8f))/0xa;if(_0x56e8bc===_0x3e20f8)break;else _0x245198['push'](_0x245198['shift']());}catch(_0x48b2a4){_0x245198['push'](_0x245198['shift']());}}}(a249_0x4d32,0xc23c7));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 a249_0x3d97(_0xe4815d,_0x10bfe9){_0xe4815d=_0xe4815d-0x74;const _0x4d3248=a249_0x4d32();let _0x3d9762=_0x4d3248[_0xe4815d];return _0x3d9762;}export function camelCaseFlagsToKebab(_0x1af16e){const _0x562944=a249_0x3d97,_0x49ef8d=[];for(const [_0x3a9ed2,_0x512044]of Object[_0x562944(0x89)](_0x1af16e)){if(_0x512044===!![]){const _0x4b94d8=_0x3a9ed2[_0x562944(0x85)](/([A-Z])/g,_0x562944(0x8e))[_0x562944(0x7a)]();_0x49ef8d['push'](_0x4b94d8);}}return _0x49ef8d;}export function parseDynamicFlags(){const _0x5d7a57=a249_0x3d97,_0x4035b7=[];for(let _0x5b256b=0x3;_0x5b256b<process[_0x5d7a57(0x88)][_0x5d7a57(0x8b)];_0x5b256b++){const _0x28de6b=process['argv'][_0x5b256b];if(_0x28de6b&&_0x28de6b[_0x5d7a57(0x7d)]('--')){const _0x37454d=_0x28de6b[_0x5d7a57(0x95)](0x2);_0x37454d&&!_0x37454d['includes']('=')&&_0x4035b7[_0x5d7a57(0x8c)](_0x37454d);}}return _0x4035b7;}export function getAllProvidedFlags(_0x3a4161){const _0x17092e=camelCaseFlagsToKebab(_0x3a4161),_0x3dfacc=parseDynamicFlags(),_0x5cae50=new Set([..._0x17092e,..._0x3dfacc]);return Array['from'](_0x5cae50);}export function normalizeLegacyBffSaveFlags(_0x26ed70){const _0x1cc169=a249_0x3d97,_0x464cb7=new Set(_0x26ed70);return _0x464cb7[_0x1cc169(0x7f)](_0x1cc169(0x74))&&_0x464cb7[_0x1cc169(0x78)]('enable-bff-save'),Array[_0x1cc169(0x7e)](_0x464cb7);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x58c960,_0x5ed1bb,_0x508e9e){const _0x43a52f=a249_0x3d97;logger['setLogPath'](process[_0x43a52f(0x79)]());if(_0x508e9e?.[_0x43a52f(0x7b)]||_0x58c960===_0x43a52f(0x8a)){showHelp();return;}console['error']('Error:\x20Unsupported\x20command:\x20'+(_0x58c960||_0x43a52f(0x77))),console[_0x43a52f(0x8d)]('\x0aAvailable\x20commands:'),console[_0x43a52f(0x8d)]('\x20\x20'+CLI_BIN_NAME+'\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill'),console[_0x43a52f(0x8d)](''),console['log'](_0x43a52f(0x93)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x43a52f(0x80)](_0x43a52f(0x92),_0x43a52f(0x82)+_0x58c960),process[_0x43a52f(0x86)](0x1);}function a249_0x4d32(){const _0x377993=['不支持的命令:\x20','5256PEKEfg','6VSfiqW','replace','exit','3884015FdjOry','argv','entries','--help','length','push','log','-$1','24081120HhHTLB','\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20','1576442hzxouS','skill','Equivalent\x20command:\x20','129501IIBrRJ','slice','dangerously-bff-save','26ATsUnE','19696LaEBXl','(empty)','add','cwd','toLowerCase','help','902828GGYjCx','startsWith','from','has','error','1149108kLmayM'];a249_0x4d32=function(){return _0x377993;};return a249_0x4d32();}function showHelp(){const _0x4944f1=a249_0x3d97;console[_0x4944f1(0x8d)]('\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x4944f1(0x90)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a');}
1
+ (function(_0x44269b,_0x209933){const _0x53bfb3=a249_0x3c94,_0x388e6d=_0x44269b();while(!![]){try{const _0x2bddda=parseInt(_0x53bfb3(0xb3))/0x1+parseInt(_0x53bfb3(0x9a))/0x2+parseInt(_0x53bfb3(0xb7))/0x3+-parseInt(_0x53bfb3(0x9e))/0x4+-parseInt(_0x53bfb3(0xa3))/0x5*(parseInt(_0x53bfb3(0xb6))/0x6)+parseInt(_0x53bfb3(0xb4))/0x7+-parseInt(_0x53bfb3(0xb1))/0x8;if(_0x2bddda===_0x209933)break;else _0x388e6d['push'](_0x388e6d['shift']());}catch(_0x3ea15b){_0x388e6d['push'](_0x388e6d['shift']());}}}(a249_0x47be,0x4b33d));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x3f8d5b){const _0x3938aa=a249_0x3c94,_0x784f04=[];for(const [_0x383e93,_0x3980b4]of Object[_0x3938aa(0x9d)](_0x3f8d5b)){if(_0x3980b4===!![]){const _0xe7f1f5=_0x383e93[_0x3938aa(0xad)](/([A-Z])/g,'-$1')['toLowerCase']();_0x784f04['push'](_0xe7f1f5);}}return _0x784f04;}function a249_0x47be(){const _0xf76bea=['exit','slice','setLogPath','966845vFuWml','help','skill','includes','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','add','Equivalent\x20command:\x20','startsWith','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','error','replace','\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20','enable-bff-save','不支持的命令:\x20','2379232IKmiUV','--help','303387CdeXxZ','2375912iVzNcO','dangerously-bff-save','12CpPWOa','903549nCBErY','argv','\x0aAvailable\x20commands:','log','cwd','328312QssjVI','push','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','entries','463884sZxjlK','(empty)'];a249_0x47be=function(){return _0xf76bea;};return a249_0x47be();}export function parseDynamicFlags(){const _0x3f5a92=a249_0x3c94,_0x401381=[];for(let _0x588e88=0x3;_0x588e88<process[_0x3f5a92(0xb8)]['length'];_0x588e88++){const _0x54a4b3=process[_0x3f5a92(0xb8)][_0x588e88];if(_0x54a4b3&&_0x54a4b3[_0x3f5a92(0xaa)]('--')){const _0x524de8=_0x54a4b3[_0x3f5a92(0xa1)](0x2);_0x524de8&&!_0x524de8[_0x3f5a92(0xa6)]('=')&&_0x401381[_0x3f5a92(0x9b)](_0x524de8);}}return _0x401381;}export function getAllProvidedFlags(_0x46f7b2){const _0x4b4f1e=camelCaseFlagsToKebab(_0x46f7b2),_0x2e558c=parseDynamicFlags(),_0x575f35=new Set([..._0x4b4f1e,..._0x2e558c]);return Array['from'](_0x575f35);}function a249_0x3c94(_0x2f14a2,_0x235904){_0x2f14a2=_0x2f14a2-0x97;const _0x47be4e=a249_0x47be();let _0x3c947e=_0x47be4e[_0x2f14a2];return _0x3c947e;}export function normalizeLegacyBffSaveFlags(_0x1c02aa){const _0x4ea100=a249_0x3c94,_0x5ae1fc=new Set(_0x1c02aa);return _0x5ae1fc['has'](_0x4ea100(0xb5))&&_0x5ae1fc[_0x4ea100(0xa8)](_0x4ea100(0xaf)),Array['from'](_0x5ae1fc);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x1fd70a,_0x327fd7,_0xf421e5){const _0x3c193f=a249_0x3c94;logger[_0x3c193f(0xa2)](process[_0x3c193f(0x99)]());if(_0xf421e5?.[_0x3c193f(0xa4)]||_0x1fd70a===_0x3c193f(0xb2)){showHelp();return;}console[_0x3c193f(0xac)]('Error:\x20Unsupported\x20command:\x20'+(_0x1fd70a||_0x3c193f(0x9f))),console[_0x3c193f(0x98)](_0x3c193f(0x97)),console[_0x3c193f(0x98)]('\x20\x20'+CLI_BIN_NAME+_0x3c193f(0xa7)),console[_0x3c193f(0x98)](''),console[_0x3c193f(0x98)](_0x3c193f(0xa9)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x3c193f(0xac)](_0x3c193f(0xa5),_0x3c193f(0xb0)+_0x1fd70a),process[_0x3c193f(0xa0)](0x1);}function showHelp(){const _0x1293a0=a249_0x3c94;console[_0x1293a0(0x98)](_0x1293a0(0xab)+CLI_BIN_NAME+_0x1293a0(0xae)+SKILLS_INSTALL_COMMAND_LINE+_0x1293a0(0x9c));}
@@ -1 +1 @@
1
- const a250_0x203e75=a250_0x3ddc;(function(_0x2d37e4,_0x176321){const _0x452477=a250_0x3ddc,_0x3ab933=_0x2d37e4();while(!![]){try{const _0x17bb3c=-parseInt(_0x452477(0x14f))/0x1*(parseInt(_0x452477(0x133))/0x2)+-parseInt(_0x452477(0x14c))/0x3*(-parseInt(_0x452477(0x149))/0x4)+-parseInt(_0x452477(0x142))/0x5+-parseInt(_0x452477(0x148))/0x6+-parseInt(_0x452477(0x12a))/0x7+-parseInt(_0x452477(0x159))/0x8+parseInt(_0x452477(0x155))/0x9;if(_0x17bb3c===_0x176321)break;else _0x3ab933['push'](_0x3ab933['shift']());}catch(_0x56816b){_0x3ab933['push'](_0x3ab933['shift']());}}}(a250_0x39cc,0xd9b87));import{spawnSync}from'node:child_process';function a250_0x39cc(){const _0x16b931=['PERMISSION_DENIED','rabetbase','skills','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','8257606sBmaba','state','join','\x20failed\x20target(s)','SPAWN_FAILED','EPERM','ENOENT','npx','checked','2305054DOYVTb','npx\x20terminated\x20by\x20signal\x20','match','\x22\x20install\x20state:\x20','stderr','NPX_NOT_FOUND','Skill\x20\x22','CHILD_TERMINATED','Installer\x20reported\x20','remove','exit\x20','unknown','INSTALL_PARTIAL','log','stdio','7418600OawhXr','add','lovrabet/lovrabet-skill','lovrabet/rabetbase','signal','--skill','1024734YVSsgY','4oSijsl','stdout','code','1744185zcPJQH','filter','skill','1tgvSSv','reason','unverifiable','push','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','error','50751864AIMTOP','EACCES','yes','pipe','10736112Vxkfrt','status','warn','trim','inherit'];a250_0x39cc=function(){return _0x16b931;};return a250_0x39cc();}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=a250_0x203e75(0x160);export const NPX_SKILLS_SUBCOMMAND_ADD=a250_0x203e75(0x143);export const NPX_SKILLS_FLAG_SKILL=a250_0x203e75(0x147);export const RABETBASE_SKILL_SOURCE=a250_0x203e75(0x145);export const LEGACY_RABETBASE_SKILL_SOURCE=a250_0x203e75(0x144);export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export const RABETBASE_GLOBAL_SKILL_NAME=a250_0x203e75(0x15f);export const RABETBASE_SKILL_GIT_SOURCE=a250_0x203e75(0x153);export function resolveGlobalSkillName(_0x28be02){const _0x220fed=a250_0x203e75;switch(_0x28be02[_0x220fed(0x15c)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x384a21){const _0x5ea196=a250_0x203e75,_0x3d82f8=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x384a21&&_0x3d82f8[_0x5ea196(0x152)](NPX_SKILLS_FLAG_SKILL,_0x384a21),_0x3d82f8;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a250_0x203e75(0x131),...buildNpxSkillsAddArgv()][a250_0x203e75(0x12c)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a250_0x203e75(0x131),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a250_0x203e75(0x12c)]('\x20');function a250_0x3ddc(_0xb97142,_0x5db43b){_0xb97142=_0xb97142-0x129;const _0x39cc86=a250_0x39cc();let _0x3ddcce=_0x39cc86[_0xb97142];return _0x3ddcce;}const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x1885ac,_0xd5e327,_0x4ec450){return{'ok':![],'status':_0xd5e327,'code':_0x1885ac,'error':'['+_0x1885ac+']\x20'+_0x4ec450};}function spawnOptions(_0x507306,_0x5c602b){return{'cwd':_0x507306,'stdio':_0x5c602b,'env':process.env,'shell':![],..._0x5c602b==='pipe'?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x1b63f8,_0x2afb01,_0x317be0,_0x10294b){const _0x217c34=a250_0x203e75,_0x15c6ff=[_0x1b63f8[_0x217c34(0x14a)]?_0x1b63f8[_0x217c34(0x14a)]['toString']():'',_0x1b63f8[_0x217c34(0x137)]?_0x1b63f8[_0x217c34(0x137)]['toString']():''][_0x217c34(0x14d)](Boolean)['join']('\x0a')[_0x217c34(0x15c)]();_0x10294b!==_0x217c34(0x158)&&_0x15c6ff&&console[_0x217c34(0x140)](_0x15c6ff);if(_0x1b63f8[_0x217c34(0x154)]){const _0x585aea=_0x1b63f8[_0x217c34(0x154)],_0xa8b26f=_0x585aea[_0x217c34(0x14b)]===_0x217c34(0x130)?_0x217c34(0x138):_0x585aea[_0x217c34(0x14b)]===_0x217c34(0x12f)||_0x585aea[_0x217c34(0x14b)]===_0x217c34(0x156)?_0x217c34(0x15e):_0x217c34(0x12e);return failure(_0xa8b26f,_0x1b63f8[_0x217c34(0x15a)],_0x585aea['message']);}if(_0x1b63f8[_0x217c34(0x146)])return failure(_0x217c34(0x13a),_0x1b63f8['status'],_0x217c34(0x134)+_0x1b63f8['signal']);if(_0x1b63f8[_0x217c34(0x15a)]!==0x0)return failure('CHILD_EXIT_NONZERO',_0x1b63f8[_0x217c34(0x15a)],_0x15c6ff||_0x217c34(0x13d)+(_0x1b63f8[_0x217c34(0x15a)]??_0x217c34(0x13e)));const _0x2666b3=_0x15c6ff[_0x217c34(0x135)](/Failed to install\s+(\d+)/i);if(_0x2666b3&&Number(_0x2666b3[0x1])>0x0)return failure(_0x217c34(0x13f),0x0,_0x217c34(0x13b)+_0x2666b3[0x1]+_0x217c34(0x12d)+(_0x15c6ff?':\x0a'+_0x15c6ff:''));if(_0x2afb01){const _0x5123df=resolveInstalledSkill(_0x2afb01,_0x317be0);if(_0x5123df[_0x217c34(0x12b)]==='absent')return failure('SKILL_NOT_INSTALLED',0x0,_0x217c34(0x139)+_0x2afb01+_0x217c34(0x129)+_0x5123df[_0x217c34(0x132)][_0x217c34(0x12c)](',\x20')+')');_0x5123df[_0x217c34(0x12b)]===_0x217c34(0x151)&&console[_0x217c34(0x15b)]('!\x20Could\x20not\x20verify\x20\x22'+_0x2afb01+_0x217c34(0x136)+_0x5123df[_0x217c34(0x150)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x3524ca,_0x3707da){const _0x2b07ae=a250_0x203e75;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x47b97f=_0x3707da?.['stdio']??'inherit',_0x581a96=resolveNpmBin('npx'),_0x5edfdc=buildNpxSkillsAddArgv(_0x3707da?.[_0x2b07ae(0x14e)]),_0x5bcf80=[_0x2b07ae(0x131),..._0x5edfdc]['join']('\x20');console[_0x2b07ae(0x140)]('*\x20'+_0x5bcf80);const _0x22b186=spawnSync(_0x581a96,_0x5edfdc,spawnOptions(_0x3524ca,_0x47b97f));return normalizeSpawnResult(_0x22b186,undefined,undefined,_0x47b97f);}export function runNpxSkillsRemove(_0x51bdab,_0x25a0a1,_0x28aae4=LEGACY_RABETBASE_SKILL_SOURCE){const _0x507a5a=a250_0x203e75;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x2a25af=_0x25a0a1?.['stdio']??_0x507a5a(0x15d),_0x2a0e58=resolveNpmBin(_0x507a5a(0x131)),_0x1fb0a6=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x507a5a(0x13c),_0x28aae4,NPX_SKILLS_FLAG_SKILL,_0x25a0a1?.[_0x507a5a(0x14e)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x25a0a1?.[_0x507a5a(0x157)]?['-y']:[]],_0x387d64=[_0x2a0e58,..._0x1fb0a6][_0x507a5a(0x12c)]('\x20');console[_0x507a5a(0x140)]('*\x20'+_0x387d64);const _0x12aebc=spawnSync(_0x2a0e58,_0x1fb0a6,spawnOptions(_0x51bdab,_0x2a25af));return normalizeSpawnResult(_0x12aebc,undefined,undefined,_0x2a25af);}export function runNpxSkillsAddGlobal(_0x227639,_0x23c93b,_0x2d9ed0){const _0x337f36=a250_0x203e75;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x24b899=resolveNpmBin(_0x337f36(0x131)),_0x5c8b77=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x23c93b,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x301b77=[_0x337f36(0x131),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x23c93b,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console[_0x337f36(0x140)]('*\x20'+_0x301b77);const _0x345805=spawnSync(_0x24b899,_0x5c8b77,spawnOptions(_0x227639,'pipe'));return normalizeSpawnResult(_0x345805,resolveGlobalSkillName(_0x23c93b),_0x2d9ed0?.['presence'],_0x2d9ed0?.[_0x337f36(0x141)]);}
1
+ const a250_0x41eb70=a250_0x5af7;(function(_0x178b4f,_0x36fed7){const _0x4774f0=a250_0x5af7,_0x1268a0=_0x178b4f();while(!![]){try{const _0x46446b=parseInt(_0x4774f0(0x16b))/0x1+-parseInt(_0x4774f0(0x170))/0x2+-parseInt(_0x4774f0(0x15b))/0x3+-parseInt(_0x4774f0(0x15f))/0x4+parseInt(_0x4774f0(0x182))/0x5*(parseInt(_0x4774f0(0x171))/0x6)+-parseInt(_0x4774f0(0x174))/0x7*(-parseInt(_0x4774f0(0x18b))/0x8)+-parseInt(_0x4774f0(0x17a))/0x9*(-parseInt(_0x4774f0(0x165))/0xa);if(_0x46446b===_0x36fed7)break;else _0x1268a0['push'](_0x1268a0['shift']());}catch(_0x306af9){_0x1268a0['push'](_0x1268a0['shift']());}}}(a250_0x384a,0x8fa99));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=a250_0x41eb70(0x18c);export const NPX_SKILLS_SUBCOMMAND_ADD=a250_0x41eb70(0x183);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME=a250_0x41eb70(0x15c);export const RABETBASE_GLOBAL_SKILL_NAME=a250_0x41eb70(0x16f);function a250_0x5af7(_0x51e955,_0x36aa9c){_0x51e955=_0x51e955-0x15b;const _0x384a43=a250_0x384a();let _0x5af725=_0x384a43[_0x51e955];return _0x5af725;}export const RABETBASE_SKILL_GIT_SOURCE=a250_0x41eb70(0x161);export function resolveGlobalSkillName(_0x23c794){const _0x4bf3bc=a250_0x41eb70;switch(_0x23c794[_0x4bf3bc(0x168)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x29d651){const _0x1a8a7c=a250_0x41eb70,_0x425b31=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x29d651&&_0x425b31[_0x1a8a7c(0x181)](NPX_SKILLS_FLAG_SKILL,_0x29d651),_0x425b31;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a250_0x41eb70(0x17e),...buildNpxSkillsAddArgv()][a250_0x41eb70(0x186)]('\x20');function a250_0x384a(){const _0x5716a7=['add','skill','stdout','join','log','checked','NPX_NOT_FOUND','absent','8iDUwPg','skills','pipe','CHILD_EXIT_NONZERO','INSTALL_PARTIAL','1879971uRvSwi','Lovrabet','CHILD_TERMINATED','warn','729116AGqgSo','unknown','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','stderr','filter','Installer\x20reported\x20','16530kfFLmP','remove','state','trim','toString','inherit','18765SnFMLJ','yes','status','message','rabetbase','1577148qKXROk','314772XeyOej','code','unverifiable','5882989pQWohA','!\x20Could\x20not\x20verify\x20\x22','Skill\x20\x22','presence','exit\x20','SKILL_NOT_INSTALLED','4653ujHbpM','signal','stdio','error','npx','ENOENT','\x22\x20install\x20state:\x20','push','45znlPNZ'];a250_0x384a=function(){return _0x5716a7;};return a250_0x384a();}export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a250_0x41eb70(0x186)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x345e2f,_0x3cc8f7,_0x245763){return{'ok':![],'status':_0x3cc8f7,'code':_0x345e2f,'error':'['+_0x345e2f+']\x20'+_0x245763};}function spawnOptions(_0x117498,_0x5d6e48){const _0x102109=a250_0x41eb70;return{'cwd':_0x117498,'stdio':_0x5d6e48,'env':process.env,'shell':![],..._0x5d6e48===_0x102109(0x18d)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x2e8936,_0x20e8c8,_0x33c206,_0x4646ff){const _0x28646a=a250_0x41eb70,_0x21bb9f=[_0x2e8936[_0x28646a(0x185)]?_0x2e8936[_0x28646a(0x185)][_0x28646a(0x169)]():'',_0x2e8936[_0x28646a(0x162)]?_0x2e8936[_0x28646a(0x162)][_0x28646a(0x169)]():''][_0x28646a(0x163)](Boolean)[_0x28646a(0x186)]('\x0a')[_0x28646a(0x168)]();_0x4646ff!==_0x28646a(0x18d)&&_0x21bb9f&&console[_0x28646a(0x187)](_0x21bb9f);if(_0x2e8936[_0x28646a(0x17d)]){const _0x37f8e6=_0x2e8936[_0x28646a(0x17d)],_0x481011=_0x37f8e6['code']===_0x28646a(0x17f)?_0x28646a(0x189):_0x37f8e6[_0x28646a(0x172)]==='EPERM'||_0x37f8e6[_0x28646a(0x172)]==='EACCES'?'PERMISSION_DENIED':'SPAWN_FAILED';return failure(_0x481011,_0x2e8936[_0x28646a(0x16d)],_0x37f8e6[_0x28646a(0x16e)]);}if(_0x2e8936[_0x28646a(0x17b)])return failure(_0x28646a(0x15d),_0x2e8936[_0x28646a(0x16d)],'npx\x20terminated\x20by\x20signal\x20'+_0x2e8936['signal']);if(_0x2e8936[_0x28646a(0x16d)]!==0x0)return failure(_0x28646a(0x18e),_0x2e8936[_0x28646a(0x16d)],_0x21bb9f||_0x28646a(0x178)+(_0x2e8936[_0x28646a(0x16d)]??_0x28646a(0x160)));const _0x54bbcf=_0x21bb9f['match'](/Failed to install\s+(\d+)/i);if(_0x54bbcf&&Number(_0x54bbcf[0x1])>0x0)return failure(_0x28646a(0x18f),0x0,_0x28646a(0x164)+_0x54bbcf[0x1]+'\x20failed\x20target(s)'+(_0x21bb9f?':\x0a'+_0x21bb9f:''));if(_0x20e8c8){const _0x88c3a5=resolveInstalledSkill(_0x20e8c8,_0x33c206);if(_0x88c3a5[_0x28646a(0x167)]===_0x28646a(0x18a))return failure(_0x28646a(0x179),0x0,_0x28646a(0x176)+_0x20e8c8+'\x22\x20not\x20found\x20after\x20install\x20(checked\x20'+_0x88c3a5[_0x28646a(0x188)][_0x28646a(0x186)](',\x20')+')');_0x88c3a5[_0x28646a(0x167)]===_0x28646a(0x173)&&console[_0x28646a(0x15e)](_0x28646a(0x175)+_0x20e8c8+_0x28646a(0x180)+_0x88c3a5['reason']);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x4a5a9a,_0x216261){const _0x530e68=a250_0x41eb70;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5a7cbb=_0x216261?.[_0x530e68(0x17c)]??_0x530e68(0x16a),_0xa72960=resolveNpmBin(_0x530e68(0x17e)),_0x434995=buildNpxSkillsAddArgv(_0x216261?.['skill']),_0x193035=['npx',..._0x434995][_0x530e68(0x186)]('\x20');console[_0x530e68(0x187)]('*\x20'+_0x193035);const _0x1806ad=spawnSync(_0xa72960,_0x434995,spawnOptions(_0x4a5a9a,_0x5a7cbb));return normalizeSpawnResult(_0x1806ad,undefined,undefined,_0x5a7cbb);}export function runNpxSkillsRemove(_0x11142e,_0x206a1f,_0x382398=LEGACY_RABETBASE_SKILL_SOURCE){const _0xc78ae5=a250_0x41eb70;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5b7a20=_0x206a1f?.[_0xc78ae5(0x17c)]??_0xc78ae5(0x16a),_0x2bfbee=resolveNpmBin(_0xc78ae5(0x17e)),_0x58dbd2=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0xc78ae5(0x166),_0x382398,NPX_SKILLS_FLAG_SKILL,_0x206a1f?.[_0xc78ae5(0x184)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x206a1f?.[_0xc78ae5(0x16c)]?['-y']:[]],_0x59f776=[_0x2bfbee,..._0x58dbd2]['join']('\x20');console[_0xc78ae5(0x187)]('*\x20'+_0x59f776);const _0x16cbf8=spawnSync(_0x2bfbee,_0x58dbd2,spawnOptions(_0x11142e,_0x5b7a20));return normalizeSpawnResult(_0x16cbf8,undefined,undefined,_0x5b7a20);}export function runNpxSkillsAddGlobal(_0x1eb216,_0x351e0a,_0x10408c){const _0x28f5ee=a250_0x41eb70;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xa50359=resolveNpmBin(_0x28f5ee(0x17e)),_0x1a694c=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x351e0a,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x353451=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x351e0a,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x28f5ee(0x186)]('\x20');console[_0x28f5ee(0x187)]('*\x20'+_0x353451);const _0xfa3590=spawnSync(_0xa50359,_0x1a694c,spawnOptions(_0x1eb216,_0x28f5ee(0x18d)));return normalizeSpawnResult(_0xfa3590,resolveGlobalSkillName(_0x351e0a),_0x10408c?.[_0x28f5ee(0x177)],_0x10408c?.['stdio']);}
@@ -1 +1 @@
1
- const a251_0x4a55ed=a251_0x229b;(function(_0x3b73cb,_0x10b0ef){const _0x9d7d41=a251_0x229b,_0x595e90=_0x3b73cb();while(!![]){try{const _0x2c92c2=-parseInt(_0x9d7d41(0xf7))/0x1+parseInt(_0x9d7d41(0x102))/0x2+-parseInt(_0x9d7d41(0xf5))/0x3*(parseInt(_0x9d7d41(0x10d))/0x4)+parseInt(_0x9d7d41(0xf8))/0x5+-parseInt(_0x9d7d41(0xfe))/0x6+parseInt(_0x9d7d41(0x107))/0x7*(-parseInt(_0x9d7d41(0x105))/0x8)+parseInt(_0x9d7d41(0x10a))/0x9*(parseInt(_0x9d7d41(0xfa))/0xa);if(_0x2c92c2===_0x10b0ef)break;else _0x595e90['push'](_0x595e90['shift']());}catch(_0x3cb214){_0x595e90['push'](_0x595e90['shift']());}}}(a251_0x29cb,0xe2d3d));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a251_0x4a55ed(0xee),a251_0x4a55ed(0x108));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a251_0x4a55ed(0xee),a251_0x4a55ed(0x10e)),join(a251_0x4a55ed(0xff),a251_0x4a55ed(0x10e))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x5c0dc3,_0x296e2a){const _0x236b35=a251_0x4a55ed;if(!existsSync(_0x5c0dc3))return{'kind':_0x236b35(0xe9)};let _0x5ef8fe;try{_0x5ef8fe=JSON[_0x236b35(0xfb)](readFileSync(_0x5c0dc3,_0x236b35(0x101)));}catch(_0x35bc21){return{'kind':_0x236b35(0xf1),'reason':_0x5c0dc3+_0x236b35(0xeb)+_0x35bc21[_0x236b35(0x106)]};}const _0x4c48dc=_0x5ef8fe;if(typeof _0x4c48dc?.[_0x236b35(0xea)]!==_0x236b35(0xf6)||!SUPPORTED_LOCK_VERSIONS[_0x236b35(0x104)](_0x4c48dc[_0x236b35(0xea)]))return{'kind':_0x236b35(0xf1),'reason':_0x5c0dc3+_0x236b35(0x103)+String(_0x4c48dc?.['version'])};if(!_0x4c48dc['skills']||typeof _0x4c48dc[_0x236b35(0x10e)]!==_0x236b35(0x100))return{'kind':'unusable','reason':_0x5c0dc3+_0x236b35(0xf3)};return _0x4c48dc[_0x236b35(0x10e)][_0x296e2a]?{'kind':_0x236b35(0xed)}:{'kind':_0x236b35(0xe9)};}function a251_0x229b(_0x113bf4,_0x3a7d57){_0x113bf4=_0x113bf4-0xe9;const _0x29cb18=a251_0x29cb();let _0x229be4=_0x29cb18[_0x113bf4];return _0x229be4;}export function resolveInstalledSkill(_0x53df7d,_0x93e753){const _0x10d0ca=a251_0x4a55ed,_0x17ca46=_0x93e753?.[_0x10d0ca(0xef)]??homedir(),_0x1e7eb1=_0x93e753?.[_0x10d0ca(0x10c)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x10d0ca(0xf4)](_0x1bedf0=>join(_0x17ca46,_0x1bedf0)),_0x5d189c=_0x93e753?.[_0x10d0ca(0xfc)]??join(_0x17ca46,SKILL_LOCK_RELATIVE_PATH),_0x2740d3=_0x1e7eb1[_0x10d0ca(0xf4)](_0x4fcdc2=>join(_0x4fcdc2,_0x53df7d,_0x10d0ca(0x10b))),_0x4535f4=_0x2740d3[_0x10d0ca(0xfd)](_0x179d75=>existsSync(_0x179d75));if(_0x4535f4)return{'state':_0x10d0ca(0xec),'path':_0x4535f4};const _0x163a58=readLockLookup(_0x5d189c,_0x53df7d);if(_0x163a58[_0x10d0ca(0xf2)]===_0x10d0ca(0xf1))return{'state':_0x10d0ca(0x109),'reason':_0x163a58[_0x10d0ca(0xf9)]};if(_0x163a58[_0x10d0ca(0xf2)]==='recorded')return{'state':_0x10d0ca(0x109),'reason':_0x5d189c+'\x20records\x20\x22'+_0x53df7d+_0x10d0ca(0xf0)+('('+_0x2740d3['join'](',\x20')+')')};return{'state':'absent','checked':_0x2740d3};}function a251_0x29cb(){const _0x248a3e=['not-recorded','version','\x20is\x20unreadable:\x20','present','recorded','.agents','home','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','unusable','kind','\x20has\x20no\x20skills\x20map','map','3eOWXBD','number','148521EYiWda','524925LGAUuV','reason','38864860kIVxjQ','parse','lockFile','find','4165782tbVrcO','.claude','object','utf8','1352184RGkJUA','\x20uses\x20unsupported\x20version\x20','includes','112OzHeub','message','581749FLsXIv','.skill-lock.json','unverifiable','9qNWvEj','SKILL.md','globalSkillsDirs','6928648kzwlxy','skills'];a251_0x29cb=function(){return _0x248a3e;};return a251_0x29cb();}
1
+ const a251_0x2a7b70=a251_0x4b23;(function(_0x30f3d0,_0xebe93e){const _0x14675e=a251_0x4b23,_0x38f35e=_0x30f3d0();while(!![]){try{const _0x3a84ed=parseInt(_0x14675e(0xd8))/0x1+-parseInt(_0x14675e(0xf5))/0x2*(-parseInt(_0x14675e(0xea))/0x3)+-parseInt(_0x14675e(0xdb))/0x4+-parseInt(_0x14675e(0xf9))/0x5+-parseInt(_0x14675e(0xf3))/0x6*(parseInt(_0x14675e(0xda))/0x7)+-parseInt(_0x14675e(0xdd))/0x8*(-parseInt(_0x14675e(0xd9))/0x9)+parseInt(_0x14675e(0xd6))/0xa*(parseInt(_0x14675e(0xe4))/0xb);if(_0x3a84ed===_0xebe93e)break;else _0x38f35e['push'](_0x38f35e['shift']());}catch(_0x521aa9){_0x38f35e['push'](_0x38f35e['shift']());}}}(a251_0x3424,0xbb29f));function a251_0x4b23(_0x26d553,_0x57635d){_0x26d553=_0x26d553-0xd5;const _0x342463=a251_0x3424();let _0x4b2344=_0x342463[_0x26d553];return _0x4b2344;}import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';function a251_0x3424(){const _0x4e4216=['join','recorded','includes','number','635226oElHqd','.claude','1524AILUWT','parse','.skill-lock.json','message','3415645ZHArfn','kind','2540330CYlRNV','present','426515nQodAI','27fTzMLH','56vasayr','420260PNUSqZ','skills','1837608lKHoyP','object','\x20records\x20\x22','reason','\x20uses\x20unsupported\x20version\x20','lockFile','home','55OijETc','unverifiable','globalSkillsDirs','absent','version','map','63rQaoje','SKILL.md','\x20has\x20no\x20skills\x20map','not-recorded','unusable'];a251_0x3424=function(){return _0x4e4216;};return a251_0x3424();}export const SKILL_LOCK_RELATIVE_PATH=join('.agents',a251_0x2a7b70(0xf7));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents',a251_0x2a7b70(0xdc)),join(a251_0x2a7b70(0xf4),a251_0x2a7b70(0xdc))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x18b456,_0x2dda60){const _0x200df0=a251_0x2a7b70;if(!existsSync(_0x18b456))return{'kind':_0x200df0(0xed)};let _0x29b786;try{_0x29b786=JSON[_0x200df0(0xf6)](readFileSync(_0x18b456,'utf8'));}catch(_0x4082b9){return{'kind':_0x200df0(0xee),'reason':_0x18b456+'\x20is\x20unreadable:\x20'+_0x4082b9[_0x200df0(0xf8)]};}const _0x36096b=_0x29b786;if(typeof _0x36096b?.[_0x200df0(0xe8)]!==_0x200df0(0xf2)||!SUPPORTED_LOCK_VERSIONS[_0x200df0(0xf1)](_0x36096b[_0x200df0(0xe8)]))return{'kind':_0x200df0(0xee),'reason':_0x18b456+_0x200df0(0xe1)+String(_0x36096b?.[_0x200df0(0xe8)])};if(!_0x36096b[_0x200df0(0xdc)]||typeof _0x36096b['skills']!==_0x200df0(0xde))return{'kind':_0x200df0(0xee),'reason':_0x18b456+_0x200df0(0xec)};return _0x36096b[_0x200df0(0xdc)][_0x2dda60]?{'kind':'recorded'}:{'kind':'not-recorded'};}export function resolveInstalledSkill(_0x359765,_0x718c4){const _0xe391fe=a251_0x2a7b70,_0x847419=_0x718c4?.[_0xe391fe(0xe3)]??homedir(),_0x110619=_0x718c4?.[_0xe391fe(0xe6)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0xe391fe(0xe9)](_0x17e131=>join(_0x847419,_0x17e131)),_0x42dd0c=_0x718c4?.[_0xe391fe(0xe2)]??join(_0x847419,SKILL_LOCK_RELATIVE_PATH),_0x3fcae6=_0x110619['map'](_0x12fb2e=>join(_0x12fb2e,_0x359765,_0xe391fe(0xeb))),_0x10c0d5=_0x3fcae6['find'](_0x4c66d8=>existsSync(_0x4c66d8));if(_0x10c0d5)return{'state':_0xe391fe(0xd7),'path':_0x10c0d5};const _0x549d76=readLockLookup(_0x42dd0c,_0x359765);if(_0x549d76[_0xe391fe(0xd5)]===_0xe391fe(0xee))return{'state':_0xe391fe(0xe5),'reason':_0x549d76[_0xe391fe(0xe0)]};if(_0x549d76['kind']===_0xe391fe(0xf0))return{'state':'unverifiable','reason':_0x42dd0c+_0xe391fe(0xdf)+_0x359765+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0x3fcae6[_0xe391fe(0xef)](',\x20')+')')};return{'state':_0xe391fe(0xe7),'checked':_0x3fcae6};}
@@ -1 +1 @@
1
- (function(_0x285aff,_0x482a63){const _0x27f49c=a252_0x3469,_0x4f578=_0x285aff();while(!![]){try{const _0x1cf627=parseInt(_0x27f49c(0x1aa))/0x1*(-parseInt(_0x27f49c(0x1b7))/0x2)+parseInt(_0x27f49c(0x1b5))/0x3*(parseInt(_0x27f49c(0x1ae))/0x4)+parseInt(_0x27f49c(0x1b8))/0x5*(parseInt(_0x27f49c(0x1b0))/0x6)+parseInt(_0x27f49c(0x1bf))/0x7+-parseInt(_0x27f49c(0x1b9))/0x8*(parseInt(_0x27f49c(0x1b2))/0x9)+-parseInt(_0x27f49c(0x1b4))/0xa+-parseInt(_0x27f49c(0x1af))/0xb*(parseInt(_0x27f49c(0x1ac))/0xc);if(_0x1cf627===_0x482a63)break;else _0x4f578['push'](_0x4f578['shift']());}catch(_0x53c6f2){_0x4f578['push'](_0x4f578['shift']());}}}(a252_0xda64,0x76c93));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a252_0x3469(_0x299947,_0x3e1baa){_0x299947=_0x299947-0x1a9;const _0xda64ea=a252_0xda64();let _0x3469b5=_0xda64ea[_0x299947];return _0x3469b5;}function a252_0xda64(){const _0x211638=['stringify','3013722DiwEZJ','[REDACTED]','7521650WFYYkh','699GVcybR','message','480TZByne','5BZBFVC','8waLSxI','durationMs','error','test','entries','some','6410803pcFAcf','service','741DWOdHW','command','156pQxYdV','flags','8524bkBzkm','113465jLSaUT','2838918ynAZtA'];a252_0xda64=function(){return _0x211638;};return a252_0xda64();}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(_0x38222d){const _0x20e7e2=a252_0x3469;return SENSITIVE_PATTERNS[_0x20e7e2(0x1be)](_0x1ccf16=>_0x1ccf16[_0x20e7e2(0x1bc)](_0x38222d));}function sanitizeFlags(_0x186017){const _0x2d58a0=a252_0x3469,_0x946872={};for(const [_0x4d2bb4,_0x5796a1]of Object[_0x2d58a0(0x1bd)](_0x186017)){isSensitiveKey(_0x4d2bb4)?_0x946872[_0x4d2bb4]=_0x5796a1!=null&&_0x5796a1!==''?_0x2d58a0(0x1b3):_0x5796a1:_0x946872[_0x4d2bb4]=_0x5796a1;}return _0x946872;}export async function reportCommandTrace(_0x44d634){const _0x23e710=a252_0x3469;try{const _0x2b6d28=sanitizeFlags(_0x44d634[_0x23e710(0x1ad)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x44d634[_0x23e710(0x1a9)],'command.name':_0x44d634[_0x23e710(0x1ab)],'command.flags':JSON[_0x23e710(0x1b1)](_0x2b6d28),..._0x44d634[_0x23e710(0x1ba)]!=null?{'command.duration_ms':_0x44d634[_0x23e710(0x1ba)]}:{},..._0x44d634['error']?{'command.error':_0x44d634[_0x23e710(0x1bb)]instanceof Error?_0x44d634[_0x23e710(0x1bb)][_0x23e710(0x1b6)]:String(_0x44d634[_0x23e710(0x1bb)])}:{}}});}catch{}}
1
+ function a252_0x2e29(_0x29a251,_0x5d6328){_0x29a251=_0x29a251-0x103;const _0x4c954c=a252_0x4c95();let _0x2e29e3=_0x4c954c[_0x29a251];return _0x2e29e3;}function a252_0x4c95(){const _0x5d32d4=['1146212wMClQJ','stringify','test','236120CPTGiV','some','entries','rabetbase.command','[REDACTED]','987309tLLqsO','687312WlqMYg','28eMrjYj','2465815OOOFNP','flags','37203mYCzNN','3rFFTZy','service','durationMs','error','1918035BrJsmT'];a252_0x4c95=function(){return _0x5d32d4;};return a252_0x4c95();}(function(_0x54d598,_0xdb4146){const _0x562076=a252_0x2e29,_0x388aae=_0x54d598();while(!![]){try{const _0x14cb94=parseInt(_0x562076(0x114))/0x1*(parseInt(_0x562076(0x111))/0x2)+parseInt(_0x562076(0x115))/0x3*(parseInt(_0x562076(0x107))/0x4)+-parseInt(_0x562076(0x112))/0x5+parseInt(_0x562076(0x110))/0x6+-parseInt(_0x562076(0x106))/0x7+parseInt(_0x562076(0x10a))/0x8+parseInt(_0x562076(0x10f))/0x9;if(_0x14cb94===_0xdb4146)break;else _0x388aae['push'](_0x388aae['shift']());}catch(_0x5af473){_0x388aae['push'](_0x388aae['shift']());}}}(a252_0x4c95,0x47c6b));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0xc11b02){const _0x194e4b=a252_0x2e29;return SENSITIVE_PATTERNS[_0x194e4b(0x10b)](_0x98e670=>_0x98e670[_0x194e4b(0x109)](_0xc11b02));}function sanitizeFlags(_0x2793a4){const _0x43ac33=a252_0x2e29,_0x8bd3f4={};for(const [_0x1ac427,_0x3005a7]of Object[_0x43ac33(0x10c)](_0x2793a4)){isSensitiveKey(_0x1ac427)?_0x8bd3f4[_0x1ac427]=_0x3005a7!=null&&_0x3005a7!==''?_0x43ac33(0x10e):_0x3005a7:_0x8bd3f4[_0x1ac427]=_0x3005a7;}return _0x8bd3f4;}export async function reportCommandTrace(_0x2cd8a1){const _0x1ffb5b=a252_0x2e29;try{const _0x3b9639=sanitizeFlags(_0x2cd8a1[_0x1ffb5b(0x113)]);await sendCliTraceLog({'spanName':_0x1ffb5b(0x10d),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x2cd8a1[_0x1ffb5b(0x103)],'command.name':_0x2cd8a1['command'],'command.flags':JSON[_0x1ffb5b(0x108)](_0x3b9639),..._0x2cd8a1[_0x1ffb5b(0x104)]!=null?{'command.duration_ms':_0x2cd8a1[_0x1ffb5b(0x104)]}:{},..._0x2cd8a1[_0x1ffb5b(0x105)]?{'command.error':_0x2cd8a1['error']instanceof Error?_0x2cd8a1['error']['message']:String(_0x2cd8a1['error'])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x3884e9,_0x256baa){var _0x2da24e=a253_0x2b90,_0x358ad3=_0x3884e9();while(!![]){try{var _0x519768=-parseInt(_0x2da24e(0x12e))/0x1+parseInt(_0x2da24e(0x133))/0x2+parseInt(_0x2da24e(0x12d))/0x3*(-parseInt(_0x2da24e(0x136))/0x4)+parseInt(_0x2da24e(0x12b))/0x5*(parseInt(_0x2da24e(0x129))/0x6)+-parseInt(_0x2da24e(0x12a))/0x7+-parseInt(_0x2da24e(0x130))/0x8*(parseInt(_0x2da24e(0x12f))/0x9)+parseInt(_0x2da24e(0x134))/0xa;if(_0x519768===_0x256baa)break;else _0x358ad3['push'](_0x358ad3['shift']());}catch(_0x43e5ae){_0x358ad3['push'](_0x358ad3['shift']());}}}(a253_0x1079,0xb093c));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a253_0x2b90(_0x15bbd2,_0x37fbd2){_0x15bbd2=_0x15bbd2-0x129;var _0x107937=a253_0x1079();var _0x2b90eb=_0x107937[_0x15bbd2];return _0x2b90eb;}export async function reportCliHelpTrace(_0x1902f7,_0x1c21e8){var _0x38c79a=a253_0x2b90;try{await sendCliTraceLog({'spanName':_0x38c79a(0x131),'logData':{'rabetbase.help.kind':_0x1902f7,..._0x1c21e8?.[_0x38c79a(0x12c)]&&{'rabetbase.help.service':_0x1c21e8[_0x38c79a(0x12c)]}}});}catch(_0x5367da){console[_0x38c79a(0x132)](_0x38c79a(0x135),_0x5367da);}}function a253_0x1079(){var _0x479f19=['1010wbXlZr','service','299391MzbxFa','747489vSWadJ','36162kPAKUY','2568oxlbPj','cli.help','error','92928Smwemu','35278570eqXJfJ','Failed\x20to\x20report\x20CLI\x20help\x20trace:','4rRHJjK','21174BLxPvv','9987985JSQMCR'];a253_0x1079=function(){return _0x479f19;};return a253_0x1079();}
1
+ function a253_0x3b73(_0x8541c5,_0x2ac757){_0x8541c5=_0x8541c5-0x1d2;var _0x23935a=a253_0x2393();var _0x3b7335=_0x23935a[_0x8541c5];return _0x3b7335;}function a253_0x2393(){var _0x5e37e1=['14PUSqNK','198984aEbTQh','8bQugNK','error','64254VwGytY','61280726iQJvtV','Failed\x20to\x20report\x20CLI\x20help\x20trace:','11683YpTLHm','143HYxOlO','20VqIeer','service','1799514dOLAjm','2205219juhkDa','283736XPVyhs','4ZgVFyo','6168sJWFYU','95Cnbaph'];a253_0x2393=function(){return _0x5e37e1;};return a253_0x2393();}(function(_0x3e20cd,_0x535bc9){var _0x3a4edd=a253_0x3b73,_0xb5afb7=_0x3e20cd();while(!![]){try{var _0x3cd73f=-parseInt(_0x3a4edd(0x1dd))/0x1*(parseInt(_0x3a4edd(0x1d7))/0x2)+parseInt(_0x3a4edd(0x1d6))/0x3*(-parseInt(_0x3a4edd(0x1d8))/0x4)+-parseInt(_0x3a4edd(0x1da))/0x5*(parseInt(_0x3a4edd(0x1df))/0x6)+-parseInt(_0x3a4edd(0x1e2))/0x7*(parseInt(_0x3a4edd(0x1d9))/0x8)+-parseInt(_0x3a4edd(0x1d5))/0x9*(parseInt(_0x3a4edd(0x1d3))/0xa)+-parseInt(_0x3a4edd(0x1d2))/0xb*(parseInt(_0x3a4edd(0x1dc))/0xc)+-parseInt(_0x3a4edd(0x1e0))/0xd*(-parseInt(_0x3a4edd(0x1db))/0xe);if(_0x3cd73f===_0x535bc9)break;else _0xb5afb7['push'](_0xb5afb7['shift']());}catch(_0x2ed5ce){_0xb5afb7['push'](_0xb5afb7['shift']());}}}(a253_0x2393,0xb436d));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x4b59d3,_0x451226){var _0x530d55=a253_0x3b73;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x4b59d3,..._0x451226?.[_0x530d55(0x1d4)]&&{'rabetbase.help.service':_0x451226[_0x530d55(0x1d4)]}}});}catch(_0x16d706){console[_0x530d55(0x1de)](_0x530d55(0x1e1),_0x16d706);}}
@@ -1 +1 @@
1
- (function(_0xea1005,_0xe0c7d4){const _0xd3faaa=a254_0x1387,_0x34c337=_0xea1005();while(!![]){try{const _0x203603=parseInt(_0xd3faaa(0xf6))/0x1*(-parseInt(_0xd3faaa(0xff))/0x2)+parseInt(_0xd3faaa(0xf5))/0x3+parseInt(_0xd3faaa(0xf3))/0x4*(-parseInt(_0xd3faaa(0xfe))/0x5)+-parseInt(_0xd3faaa(0xfc))/0x6+-parseInt(_0xd3faaa(0xfa))/0x7+parseInt(_0xd3faaa(0x100))/0x8+parseInt(_0xd3faaa(0xf4))/0x9;if(_0x203603===_0xe0c7d4)break;else _0x34c337['push'](_0x34c337['shift']());}catch(_0x4060f9){_0x34c337['push'](_0x34c337['shift']());}}}(a254_0x416c,0xa0f3c));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 a254_0x1387(_0x51a057,_0x4f0c89){_0x51a057=_0x51a057-0xf3;const _0x416ce0=a254_0x416c();let _0x138735=_0x416ce0[_0x51a057];return _0x138735;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';function a254_0x416c(){const _0x15118e=['22503825PSrRmv','1974381vOAvWG','1VrFful','nickname','production','username','9214072EVYdug','user','325692upxxWZ','daily','4081090VhIuXi','1802074JcqCOi','4708328FzjCFv','email','4pEFuJj'];a254_0x416c=function(){return _0x15118e;};return a254_0x416c();}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x57d194=a254_0x1387,_0x45a305=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x110a07=_0x45a305?.[_0x57d194(0xfb)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x57d194(0xfd):_0x57d194(0xf8))}),setUserContext({'id':_0x110a07?.['id'],'username':_0x110a07?.[_0x57d194(0xf9)],'nickname':_0x110a07?.[_0x57d194(0xf7)],'email':_0x110a07?.[_0x57d194(0x101)],'tenantCode':_0x110a07?.['tenant']?.['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x45a305;}
1
+ (function(_0xa5c641,_0x3b7250){const _0xe9d804=a254_0x543d,_0x4cbf81=_0xa5c641();while(!![]){try{const _0x337e7a=parseInt(_0xe9d804(0x161))/0x1*(-parseInt(_0xe9d804(0x167))/0x2)+-parseInt(_0xe9d804(0x165))/0x3*(parseInt(_0xe9d804(0x16b))/0x4)+parseInt(_0xe9d804(0x163))/0x5+-parseInt(_0xe9d804(0x164))/0x6+-parseInt(_0xe9d804(0x16a))/0x7+-parseInt(_0xe9d804(0x15e))/0x8+parseInt(_0xe9d804(0x15f))/0x9*(parseInt(_0xe9d804(0x166))/0xa);if(_0x337e7a===_0x3b7250)break;else _0x4cbf81['push'](_0x4cbf81['shift']());}catch(_0x3b9e41){_0x4cbf81['push'](_0x4cbf81['shift']());}}}(a254_0x2a0b,0xe34a6));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a254_0x2a0b(){const _0x465c82=['production','2QLuPXE','daily','3271585FySPoo','2914968AzPIuA','27774jMBhLE','149100GVgteQ','183036NOahLq','username','email','699377RQUGfy','76AiDxYr','tenant_code','4423584UdxlPB','1071SVwWeQ'];a254_0x2a0b=function(){return _0x465c82;};return a254_0x2a0b();}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';function a254_0x543d(_0x485e22,_0x21ffc6){_0x485e22=_0x485e22-0x15e;const _0x2a0b72=a254_0x2a0b();let _0x543d8c=_0x2a0b72[_0x485e22];return _0x543d8c;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x508609=a254_0x543d,_0x5c5281=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x40cfcc=_0x5c5281?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x508609(0x162):_0x508609(0x160))}),setUserContext({'id':_0x40cfcc?.['id'],'username':_0x40cfcc?.[_0x508609(0x168)],'nickname':_0x40cfcc?.['nickname'],'email':_0x40cfcc?.[_0x508609(0x169)],'tenantCode':_0x40cfcc?.['tenant']?.[_0x508609(0x16c)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x5c5281;}
@@ -1 +1 @@
1
- function a255_0x5c92(){const _0x406153=['22lyvGfe','SIGTERM','36806uyXxAd','once','exit','1664676eGNRFy','5615916sznmYF','then','5028792DFAAmR','SIGINT','4xJtmum','97EjTIFu','16rLmnHH','322994dRqWvN','874525EVstqf','27488030kLDQKJ'];a255_0x5c92=function(){return _0x406153;};return a255_0x5c92();}(function(_0x59ad5a,_0xb395fe){const _0x4886ce=a255_0x1c9c,_0x5b07d0=_0x59ad5a();while(!![]){try{const _0x516437=-parseInt(_0x4886ce(0x8a))/0x1*(parseInt(_0x4886ce(0x81))/0x2)+-parseInt(_0x4886ce(0x87))/0x3+parseInt(_0x4886ce(0x89))/0x4*(parseInt(_0x4886ce(0x8d))/0x5)+-parseInt(_0x4886ce(0x85))/0x6+-parseInt(_0x4886ce(0x8c))/0x7*(parseInt(_0x4886ce(0x8b))/0x8)+-parseInt(_0x4886ce(0x84))/0x9+parseInt(_0x4886ce(0x8e))/0xa*(parseInt(_0x4886ce(0x7f))/0xb);if(_0x516437===_0xb395fe)break;else _0x5b07d0['push'](_0x5b07d0['shift']());}catch(_0x495707){_0x5b07d0['push'](_0x5b07d0['shift']());}}}(a255_0x5c92,0xf3a22));function a255_0x1c9c(_0xd7c9ef,_0x1bfad9){_0xd7c9ef=_0xd7c9ef-0x7f;const _0x5c92c3=a255_0x5c92();let _0x1c9cc8=_0x5c92c3[_0xd7c9ef];return _0x1c9cc8;}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;}export function registerOtelShutdownOnExit(){const _0x44d287=a255_0x1c9c;process[_0x44d287(0x82)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x29be7c=()=>{const _0x244e84=_0x44d287;void flushOtelNodeIfUsed()[_0x244e84(0x86)](()=>process[_0x244e84(0x83)](0x0));};process[_0x44d287(0x82)](_0x44d287(0x88),_0x29be7c),process[_0x44d287(0x82)](_0x44d287(0x80),_0x29be7c);}export async function exitWithOtelShutdown(_0x26d89b){const _0x3b44e4=a255_0x1c9c;await flushOtelNodeIfUsed(),process[_0x3b44e4(0x83)](_0x26d89b);}
1
+ (function(_0x193a31,_0x3ec521){const _0x17e601=a255_0x5513,_0x2734ca=_0x193a31();while(!![]){try{const _0x3b02f3=-parseInt(_0x17e601(0xc9))/0x1+-parseInt(_0x17e601(0xce))/0x2*(-parseInt(_0x17e601(0xc6))/0x3)+parseInt(_0x17e601(0xc3))/0x4*(parseInt(_0x17e601(0xc5))/0x5)+-parseInt(_0x17e601(0xc8))/0x6+-parseInt(_0x17e601(0xd3))/0x7*(parseInt(_0x17e601(0xc7))/0x8)+parseInt(_0x17e601(0xd2))/0x9+-parseInt(_0x17e601(0xcd))/0xa*(-parseInt(_0x17e601(0xd1))/0xb);if(_0x3b02f3===_0x3ec521)break;else _0x2734ca['push'](_0x2734ca['shift']());}catch(_0x36882f){_0x2734ca['push'](_0x2734ca['shift']());}}}(a255_0x1d8c,0x8c1f1));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a255_0x5513(_0xde4e49,_0xcf8aac){_0xde4e49=_0xde4e49-0xc3;const _0x1d8cbe=a255_0x1d8c();let _0x5513d4=_0x1d8cbe[_0xde4e49];return _0x5513d4;}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a255_0x1d8c(){const _0xb3dcfe=['2480255UyVJHp','3BqCROE','7880VUohcw','5183364KRjJZk','371041gwpzfP','beforeExit','once','SIGINT','1170700bUxfbc','1217694sKYuuB','exit','SIGTERM','88rMWetC','8128071OASTwa','8071HfBFJm','4UGpgAQ','then'];a255_0x1d8c=function(){return _0xb3dcfe;};return a255_0x1d8c();}export function registerOtelShutdownOnExit(){const _0x4ff895=a255_0x5513;process[_0x4ff895(0xcb)](_0x4ff895(0xca),()=>{void flushOtelNodeIfUsed();});const _0x2a357f=()=>{const _0x498080=_0x4ff895;void flushOtelNodeIfUsed()[_0x498080(0xc4)](()=>process[_0x498080(0xcf)](0x0));};process[_0x4ff895(0xcb)](_0x4ff895(0xcc),_0x2a357f),process[_0x4ff895(0xcb)](_0x4ff895(0xd0),_0x2a357f);}export async function exitWithOtelShutdown(_0x41f6f7){const _0x5b9301=a255_0x5513;await flushOtelNodeIfUsed(),process[_0x5b9301(0xcf)](_0x41f6f7);}
@@ -1 +1 @@
1
- const a256_0x1a34ca=a256_0x183a;function a256_0x183a(_0x11356b,_0x3c15e0){_0x11356b=_0x11356b-0x1b2;const _0x26539c=a256_0x2653();let _0x183ab9=_0x26539c[_0x11356b];return _0x183ab9;}(function(_0x2e6d64,_0x33e5be){const _0x711219=a256_0x183a,_0x356aa7=_0x2e6d64();while(!![]){try{const _0x2a3eca=-parseInt(_0x711219(0x1b6))/0x1*(parseInt(_0x711219(0x1be))/0x2)+-parseInt(_0x711219(0x1b8))/0x3*(parseInt(_0x711219(0x1c0))/0x4)+-parseInt(_0x711219(0x1c1))/0x5*(-parseInt(_0x711219(0x1bd))/0x6)+-parseInt(_0x711219(0x1bf))/0x7+-parseInt(_0x711219(0x1b9))/0x8+-parseInt(_0x711219(0x1ba))/0x9*(-parseInt(_0x711219(0x1bc))/0xa)+-parseInt(_0x711219(0x1c2))/0xb*(-parseInt(_0x711219(0x1b4))/0xc);if(_0x2a3eca===_0x33e5be)break;else _0x356aa7['push'](_0x356aa7['shift']());}catch(_0x3910bd){_0x356aa7['push'](_0x356aa7['shift']());}}}(a256_0x2653,0xf0452));import{sendTraceLog}from'@lovrabet/otel-logger';function a256_0x2653(){const _0x219554=['9287844shJiNc','spanName','80YEOGWg','version','3adlHxO','1218000PNcNHU','54bUwuwv','traceparent','410140DmcdKM','6cQYAzN','37738PAfzAc','1737435XtoYwu','5694724ITBvPE','8748785jbtaIB','33eZjxwf','logData','traceName','rabetbase-cli'];a256_0x2653=function(){return _0x219554;};return a256_0x2653();}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a256_0x1a34ca(0x1b3);export async function sendCliTraceLog(_0x4510c0){const _0x1b6427=a256_0x1a34ca;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x4510c0[_0x1b6427(0x1b2)]??DEFAULT_TRACE_NAME,'version':_0x4510c0[_0x1b6427(0x1b7)]??getCliVersion(),'spanName':_0x4510c0[_0x1b6427(0x1b5)],'eventType':'manual','logData':_0x4510c0[_0x1b6427(0x1c3)],..._0x4510c0[_0x1b6427(0x1bb)]&&{'traceparent':_0x4510c0[_0x1b6427(0x1bb)]}});}
1
+ const a256_0x38617b=a256_0x1b43;function a256_0xc8c5(){const _0x3ea9ff=['10732sJAAUs','manual','version','1050864czOYiC','16083fwISpu','spanName','678cClyiG','traceparent','1227350mbBfLS','759493xIqkfZ','18SYTmsD','35965liQAHF','logData','234mDoEln','rabetbase-cli','24GUYuxi','10499593FZASFt','4cBLQLz','44tJQMaz'];a256_0xc8c5=function(){return _0x3ea9ff;};return a256_0xc8c5();}(function(_0x115ee9,_0x3b18da){const _0x26dbe1=a256_0x1b43,_0x44c428=_0x115ee9();while(!![]){try{const _0x10966a=parseInt(_0x26dbe1(0x13b))/0x1*(parseInt(_0x26dbe1(0x135))/0x2)+-parseInt(_0x26dbe1(0x144))/0x3*(-parseInt(_0x26dbe1(0x137))/0x4)+parseInt(_0x26dbe1(0x142))/0x5*(parseInt(_0x26dbe1(0x13d))/0x6)+-parseInt(_0x26dbe1(0x140))/0x7*(parseInt(_0x26dbe1(0x133))/0x8)+parseInt(_0x26dbe1(0x141))/0x9*(parseInt(_0x26dbe1(0x13f))/0xa)+parseInt(_0x26dbe1(0x136))/0xb*(parseInt(_0x26dbe1(0x13a))/0xc)+-parseInt(_0x26dbe1(0x134))/0xd;if(_0x10966a===_0x3b18da)break;else _0x44c428['push'](_0x44c428['shift']());}catch(_0x41c450){_0x44c428['push'](_0x44c428['shift']());}}}(a256_0xc8c5,0x7e2f1));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a256_0x1b43(_0x2be728,_0x51177f){_0x2be728=_0x2be728-0x132;const _0xc8c53f=a256_0xc8c5();let _0x1b43af=_0xc8c53f[_0x2be728];return _0x1b43af;}const DEFAULT_TRACE_NAME=a256_0x38617b(0x132);export async function sendCliTraceLog(_0x4fae69){const _0xc38ea2=a256_0x38617b;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x4fae69['traceName']??DEFAULT_TRACE_NAME,'version':_0x4fae69[_0xc38ea2(0x139)]??getCliVersion(),'spanName':_0x4fae69[_0xc38ea2(0x13c)],'eventType':_0xc38ea2(0x138),'logData':_0x4fae69[_0xc38ea2(0x143)],..._0x4fae69[_0xc38ea2(0x13e)]&&{'traceparent':_0x4fae69[_0xc38ea2(0x13e)]}});}
@@ -1 +1 @@
1
- const a257_0x368c5b=a257_0x4b99;function a257_0x2e70(){const _0x3d6c11=['originalBytes','join','324371sXwbwU','redactionKinds','948114JnTyzq','platform-issue-log-collect','description','2946840DJPMCS','redactionCount','4349118KVNxCB','sanitize','2228196YtxQAh','9433445SHJSpX','4416720zcSjBG','issue.log.collect','truncated'];a257_0x2e70=function(){return _0x3d6c11;};return a257_0x2e70();}(function(_0x4bd38f,_0xdbfe52){const _0xb694fb=a257_0x4b99,_0x3d9417=_0x4bd38f();while(!![]){try{const _0x4c9fd0=-parseInt(_0xb694fb(0x1b5))/0x1+parseInt(_0xb694fb(0x1ae))/0x2+parseInt(_0xb694fb(0x1a7))/0x3+parseInt(_0xb694fb(0x1b0))/0x4+parseInt(_0xb694fb(0x1aa))/0x5+-parseInt(_0xb694fb(0x1ac))/0x6+-parseInt(_0xb694fb(0x1af))/0x7;if(_0x4c9fd0===_0xdbfe52)break;else _0x3d9417['push'](_0x3d9417['shift']());}catch(_0x2289f8){_0x3d9417['push'](_0x3d9417['shift']());}}}(a257_0x2e70,0xb1729));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a257_0x4b99(_0x5b1396,_0x21a816){_0x5b1396=_0x5b1396-0x1a6;const _0x2e70a9=a257_0x2e70();let _0x4b9962=_0x2e70a9[_0x5b1396];return _0x4b9962;}export const PLATFORM_ISSUE_TRACE_NAME=a257_0x368c5b(0x1a8);export const PLATFORM_ISSUE_SPAN_NAME=a257_0x368c5b(0x1b1);export async function sendPlatformIssueCollectLog(_0x462deb){const _0x35e7d3=a257_0x368c5b;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x462deb['title'],'issue.description':_0x462deb[_0x35e7d3(0x1a9)],..._0x462deb['sanitize']?{'issue.description_original_bytes':_0x462deb[_0x35e7d3(0x1ad)][_0x35e7d3(0x1b3)],'issue.description_truncated':_0x462deb['sanitize'][_0x35e7d3(0x1b2)],'issue.description_redactions':_0x462deb[_0x35e7d3(0x1ad)][_0x35e7d3(0x1ab)],'issue.description_redaction_kinds':_0x462deb[_0x35e7d3(0x1ad)][_0x35e7d3(0x1a6)][_0x35e7d3(0x1b4)](',')}:{}}});}
1
+ function a257_0x5cd9(_0x28f036,_0x49ce0e){_0x28f036=_0x28f036-0x130;const _0x5541bc=a257_0x5541();let _0x5cd964=_0x5541bc[_0x28f036];return _0x5cd964;}function a257_0x5541(){const _0x3d3c61=['issue.log.collect','sanitize','redactionCount','12569784AIahKe','1972524NgeOFS','12845NosNKI','2590974wAjpAi','616aehLtO','440568bqPrTy','description','467196lpNxHX','6632836pISekP','platform-issue-log-collect'];a257_0x5541=function(){return _0x3d3c61;};return a257_0x5541();}const a257_0x1d1526=a257_0x5cd9;(function(_0x2e798c,_0x4c5158){const _0x33b9bd=a257_0x5cd9,_0x70bbe2=_0x2e798c();while(!![]){try{const _0x51f3e2=-parseInt(_0x33b9bd(0x133))/0x1+parseInt(_0x33b9bd(0x135))/0x2+-parseInt(_0x33b9bd(0x13c))/0x3+-parseInt(_0x33b9bd(0x132))/0x4*(-parseInt(_0x33b9bd(0x130))/0x5)+parseInt(_0x33b9bd(0x131))/0x6+-parseInt(_0x33b9bd(0x136))/0x7+parseInt(_0x33b9bd(0x13b))/0x8;if(_0x51f3e2===_0x4c5158)break;else _0x70bbe2['push'](_0x70bbe2['shift']());}catch(_0x5c15b2){_0x70bbe2['push'](_0x70bbe2['shift']());}}}(a257_0x5541,0x8f39c));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a257_0x1d1526(0x137);export const PLATFORM_ISSUE_SPAN_NAME=a257_0x1d1526(0x138);export async function sendPlatformIssueCollectLog(_0x342631){const _0x404989=a257_0x1d1526;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x342631['title'],'issue.description':_0x342631[_0x404989(0x134)],..._0x342631['sanitize']?{'issue.description_original_bytes':_0x342631[_0x404989(0x139)]['originalBytes'],'issue.description_truncated':_0x342631[_0x404989(0x139)]['truncated'],'issue.description_redactions':_0x342631[_0x404989(0x139)][_0x404989(0x13a)],'issue.description_redaction_kinds':_0x342631[_0x404989(0x139)]['redactionKinds']['join'](',')}:{}}});}