@lovrabet/rabetbase-cli 2.1.10-beta.2 → 2.1.10-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) 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/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -0
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/field-update.js +1 -1
  55. package/lib/commands/dataset/index.js +1 -1
  56. package/lib/commands/dataset/link-create.js +1 -1
  57. package/lib/commands/dataset/link-delete.js +1 -1
  58. package/lib/commands/dataset/link-shared.js +1 -1
  59. package/lib/commands/dataset/link-update.js +1 -1
  60. package/lib/commands/dataset/links.js +1 -1
  61. package/lib/commands/dataset/list.js +1 -1
  62. package/lib/commands/dataset/operations.js +1 -1
  63. package/lib/commands/db/analyze-cancel.js +1 -1
  64. package/lib/commands/db/analyze-start.js +1 -1
  65. package/lib/commands/db/analyze-status.js +1 -1
  66. package/lib/commands/db/create.js +1 -1
  67. package/lib/commands/db/delete.js +1 -1
  68. package/lib/commands/db/detail.js +1 -1
  69. package/lib/commands/db/diff.js +1 -1
  70. package/lib/commands/db/index.js +1 -1
  71. package/lib/commands/db/list.js +1 -1
  72. package/lib/commands/db/shared.js +1 -1
  73. package/lib/commands/db/tables.js +1 -1
  74. package/lib/commands/db/test.js +1 -1
  75. package/lib/commands/db/update.js +1 -1
  76. package/lib/commands/doctor.js +1 -1
  77. package/lib/commands/init/index.js +1 -1
  78. package/lib/commands/issue/index.js +1 -1
  79. package/lib/commands/issue/report.js +1 -1
  80. package/lib/commands/logs/index.js +1 -1
  81. package/lib/commands/menu/index.js +1 -1
  82. package/lib/commands/menu/shared/compare-table.js +1 -1
  83. package/lib/commands/menu/shared/index.js +1 -1
  84. package/lib/commands/menu/shared/inquirer.js +1 -1
  85. package/lib/commands/menu/shared/local-pages.js +1 -1
  86. package/lib/commands/menu/shared/logic.js +1 -1
  87. package/lib/commands/menu/shared/service.js +1 -1
  88. package/lib/commands/menu/shared/sync-core.js +1 -1
  89. package/lib/commands/menu/shared/update-core.js +1 -1
  90. package/lib/commands/menu/shared/valid-url.js +1 -1
  91. package/lib/commands/menu/sync.js +1 -1
  92. package/lib/commands/menu/update.js +1 -1
  93. package/lib/commands/page/generate-start.js +1 -1
  94. package/lib/commands/page/generate-status.js +1 -1
  95. package/lib/commands/page/index.js +1 -1
  96. package/lib/commands/page/pull.js +1 -1
  97. package/lib/commands/page/push.js +1 -1
  98. package/lib/commands/page/shared.js +1 -1
  99. package/lib/commands/page/standard-page-status.js +1 -1
  100. package/lib/commands/page/sync.js +1 -1
  101. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  102. package/lib/commands/project/create/format-elapsed.js +1 -1
  103. package/lib/commands/project/create/main.js +1 -1
  104. package/lib/commands/project/create/non-interactive.js +1 -1
  105. package/lib/commands/project/create/project-template-path.js +1 -1
  106. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  107. package/lib/commands/project/create/use-format-code.js +1 -1
  108. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  109. package/lib/commands/project/index.js +1 -1
  110. package/lib/commands/project/init.js +1 -1
  111. package/lib/commands/project/upgrade.js +1 -1
  112. package/lib/commands/registry.js +1 -1
  113. package/lib/commands/run/index.js +1 -1
  114. package/lib/commands/schema.js +1 -1
  115. package/lib/commands/skill/index.js +1 -1
  116. package/lib/commands/sql/create.js +1 -1
  117. package/lib/commands/sql/delete.js +1 -1
  118. package/lib/commands/sql/detail.js +1 -1
  119. package/lib/commands/sql/exec.js +1 -1
  120. package/lib/commands/sql/index.js +1 -1
  121. package/lib/commands/sql/list.js +1 -1
  122. package/lib/commands/sql/pull.js +1 -1
  123. package/lib/commands/sql/push.js +1 -1
  124. package/lib/commands/sql/save.js +1 -1
  125. package/lib/commands/sql/shared.js +1 -1
  126. package/lib/commands/sql/status.js +1 -1
  127. package/lib/commands/sql/validate.js +1 -1
  128. package/lib/config/schema.js +1 -1
  129. package/lib/constant/cdn.js +1 -1
  130. package/lib/constant/cli.js +1 -1
  131. package/lib/constant/defaults.js +1 -1
  132. package/lib/constant/domain.js +1 -1
  133. package/lib/constant/env.js +1 -1
  134. package/lib/constant/output.js +1 -1
  135. package/lib/constant/paths.js +1 -1
  136. package/lib/constant/risk.js +1 -1
  137. package/lib/context.js +1 -1
  138. package/lib/core/alias-resolver.js +1 -1
  139. package/lib/core/api-client.js +1 -1
  140. package/lib/core/bff/config.js +1 -1
  141. package/lib/core/bff/file-system.js +1 -1
  142. package/lib/core/bff/hash.js +1 -1
  143. package/lib/core/bff/lock.js +1 -1
  144. package/lib/core/bff/utils.js +1 -1
  145. package/lib/core/db-resolver.js +1 -1
  146. package/lib/core/page/file-system.js +1 -1
  147. package/lib/core/page/hash.js +1 -1
  148. package/lib/core/page/lock.js +1 -1
  149. package/lib/core/sql-sync/config.js +1 -1
  150. package/lib/core/sql-sync/file-system.js +1 -1
  151. package/lib/core/sql-sync/hash.js +1 -1
  152. package/lib/core/sql-sync/lock.js +1 -1
  153. package/lib/core/sql-sync/utils.js +1 -1
  154. package/lib/core/sql-validator.js +1 -1
  155. package/lib/errors.js +1 -1
  156. package/lib/framework/build-all-flags.js +1 -1
  157. package/lib/framework/flags.js +1 -1
  158. package/lib/framework/help.js +1 -1
  159. package/lib/framework/index.js +1 -1
  160. package/lib/framework/output.js +1 -1
  161. package/lib/framework/response.js +1 -1
  162. package/lib/framework/runner-alias.js +1 -1
  163. package/lib/framework/runner.js +1 -1
  164. package/lib/framework/schema-export.js +1 -1
  165. package/lib/framework/types.js +1 -1
  166. package/lib/generated/build-info.js +1 -1
  167. package/lib/help.js +1 -1
  168. package/lib/skills/main.js +1 -1
  169. package/lib/skills/npx-skills-add.js +1 -1
  170. package/lib/telemetry/cli-command-trace.js +1 -1
  171. package/lib/telemetry/cli-help-trace.js +1 -1
  172. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  173. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  174. package/lib/telemetry/send-cli-trace-log.js +1 -1
  175. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  176. package/lib/utils/ai_config.js +1 -1
  177. package/lib/utils/apply-jq-filter.js +1 -1
  178. package/lib/utils/cdn-config.js +1 -1
  179. package/lib/utils/check-sdk-version.js +1 -1
  180. package/lib/utils/cli-version-check.js +1 -1
  181. package/lib/utils/cli-version-policy.js +1 -1
  182. package/lib/utils/config.js +1 -1
  183. package/lib/utils/copy-directory.js +1 -1
  184. package/lib/utils/entity-with-id.js +1 -1
  185. package/lib/utils/file-utils.js +1 -1
  186. package/lib/utils/guides-cdn.js +1 -1
  187. package/lib/utils/http-client.js +1 -1
  188. package/lib/utils/is-non-interactive.js +1 -1
  189. package/lib/utils/logger.js +1 -1
  190. package/lib/utils/params.js +1 -1
  191. package/lib/utils/platform.js +1 -1
  192. package/lib/utils/rules-cdn.js +1 -1
  193. package/lib/utils/sleep.js +1 -1
  194. package/lib/utils/template-replacer.js +1 -1
  195. package/lib/utils/version.js +1 -1
  196. package/lib/utils/with-active-cookie.js +1 -1
  197. package/lib/utils/write-cli-side-channel.js +1 -1
  198. package/package.json +1 -2
@@ -1 +1 @@
1
- (function(_0x23c027,_0x4171ba){const _0x955ca8=a152_0x1ae8,_0x889e21=_0x23c027();while(!![]){try{const _0x2a234e=-parseInt(_0x955ca8(0xf8))/0x1+-parseInt(_0x955ca8(0xf2))/0x2*(-parseInt(_0x955ca8(0xea))/0x3)+-parseInt(_0x955ca8(0xef))/0x4+parseInt(_0x955ca8(0xee))/0x5*(-parseInt(_0x955ca8(0xf5))/0x6)+-parseInt(_0x955ca8(0xf7))/0x7+parseInt(_0x955ca8(0xf6))/0x8+-parseInt(_0x955ca8(0xec))/0x9*(-parseInt(_0x955ca8(0xf1))/0xa);if(_0x2a234e===_0x4171ba)break;else _0x889e21['push'](_0x889e21['shift']());}catch(_0x5539ed){_0x889e21['push'](_0x889e21['shift']());}}}(a152_0x554f,0xa6850));import{readFile}from'node:fs/promises';function a152_0x1ae8(_0x21fc0d,_0x373a1a){_0x21fc0d=_0x21fc0d-0xea;const _0x554f07=a152_0x554f();let _0x1ae8bf=_0x554f07[_0x21fc0d];return _0x1ae8bf;}import a152_0x23858f from'node:crypto';function a152_0x554f(){const _0x3a0a72=['createHash','20646JCcxNO','md5','560OTxNxy','5309116GCKWax','update','10150KjPBrC','9004zTxMSL','hex','digest','27564YuvIyN','9261904UpNFpB','5227138EKFAqS','1251003gsZMxX','690tBuDio'];a152_0x554f=function(){return _0x3a0a72;};return a152_0x554f();}export function computeSqlContentHash(_0x32f7b2){const _0x3302a2=a152_0x1ae8;return a152_0x23858f[_0x3302a2(0xeb)](_0x3302a2(0xed))[_0x3302a2(0xf0)](_0x32f7b2)[_0x3302a2(0xf4)](_0x3302a2(0xf3));}export async function computeSqlFileHash(_0xbdd8de){const _0x3175f3=await readFile(_0xbdd8de,'utf8');return computeSqlContentHash(_0x3175f3);}
1
+ (function(_0x2d8ea2,_0x2e521b){const _0x5d7e31=a153_0x30be,_0x223423=_0x2d8ea2();while(!![]){try{const _0x280426=parseInt(_0x5d7e31(0x1b1))/0x1*(-parseInt(_0x5d7e31(0x1b7))/0x2)+parseInt(_0x5d7e31(0x1b4))/0x3*(parseInt(_0x5d7e31(0x1b0))/0x4)+parseInt(_0x5d7e31(0x1b8))/0x5+parseInt(_0x5d7e31(0x1b5))/0x6*(parseInt(_0x5d7e31(0x1b2))/0x7)+-parseInt(_0x5d7e31(0x1af))/0x8+parseInt(_0x5d7e31(0x1b3))/0x9*(-parseInt(_0x5d7e31(0x1ae))/0xa)+-parseInt(_0x5d7e31(0x1b6))/0xb;if(_0x280426===_0x2e521b)break;else _0x223423['push'](_0x223423['shift']());}catch(_0xa11232){_0x223423['push'](_0x223423['shift']());}}}(a153_0x3e81,0x9d319));import{readFile}from'node:fs/promises';import a153_0x24ed06 from'node:crypto';export function computeSqlContentHash(_0x430401){const _0x4cd689=a153_0x30be;return a153_0x24ed06['createHash'](_0x4cd689(0x1ac))['update'](_0x430401)[_0x4cd689(0x1ad)]('hex');}function a153_0x30be(_0x3d3730,_0x3489d1){_0x3d3730=_0x3d3730-0x1ac;const _0x3e81e4=a153_0x3e81();let _0x30be0e=_0x3e81e4[_0x3d3730];return _0x30be0e;}export async function computeSqlFileHash(_0x1ba40b){const _0x1022aa=await readFile(_0x1ba40b,'utf8');return computeSqlContentHash(_0x1022aa);}function a153_0x3e81(){const _0x3b5d09=['9237118FkKzPU','7766PegKSM','6189585dTtbPQ','md5','digest','7872390eTCWbB','6030304eykrHn','164yBgPqa','10WhdDGh','91WHtVmh','9qagWEo','66288dYWprf','424434uCOwzm'];a153_0x3e81=function(){return _0x3b5d09;};return a153_0x3e81();}
@@ -1 +1 @@
1
- function a153_0x4318(){const _0x49a081=['stringify','\x22\x20vs\x20lock\x20\x22','sqls','1659888uFFCwg','utf8','13704PsSSqq','parse','769668KKDPxz','code',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','3738QJmVFG','12xJhAEf','\x22.\x20','sqlRoot','2918430Aqmbmh','apps','1893740hqKxPs','ENOENT','1601062lmydQh','lastSync','324794dzNxpZ'];a153_0x4318=function(){return _0x49a081;};return a153_0x4318();}function a153_0x1966(_0x148704,_0x162b05){_0x148704=_0x148704-0x16c;const _0x43180a=a153_0x4318();let _0x19660d=_0x43180a[_0x148704];return _0x19660d;}(function(_0xa26a83,_0xa4def8){const _0x372f27=a153_0x1966,_0x32aff8=_0xa26a83();while(!![]){try{const _0x48d7dd=parseInt(_0x372f27(0x17d))/0x1+-parseInt(_0x372f27(0x17b))/0x2+parseInt(_0x372f27(0x170))/0x3+-parseInt(_0x372f27(0x174))/0x4*(-parseInt(_0x372f27(0x179))/0x5)+parseInt(_0x372f27(0x16c))/0x6+parseInt(_0x372f27(0x173))/0x7*(-parseInt(_0x372f27(0x16e))/0x8)+parseInt(_0x372f27(0x177))/0x9;if(_0x48d7dd===_0xa4def8)break;else _0x32aff8['push'](_0x32aff8['shift']());}catch(_0x5dd976){_0x32aff8['push'](_0x32aff8['shift']());}}}(a153_0x4318,0x93467));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x53b549,_0x2e67b4,_0x106b2e,_0x3ecdad){const _0x5e48b2=a153_0x1966,_0x24ee1d=_0x53b549??createEmptySqlLock();let _0x32ee32=_0x24ee1d['apps'][_0x2e67b4];if(!_0x32ee32)return _0x32ee32={'sqlRoot':_0x106b2e,'lastSync':'','sqls':{}},_0x24ee1d[_0x5e48b2(0x178)][_0x2e67b4]=_0x32ee32,{'lockData':_0x24ee1d,'appLock':_0x32ee32};if(!_0x32ee32[_0x5e48b2(0x176)])_0x32ee32['sqlRoot']=_0x106b2e;else{if(_0x32ee32[_0x5e48b2(0x176)]!==_0x106b2e)throw new Error(_0x3ecdad+_0x5e48b2(0x172)+_0x106b2e+_0x5e48b2(0x17f)+_0x32ee32[_0x5e48b2(0x176)]+_0x5e48b2(0x175)+'Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x32ee32[_0x5e48b2(0x180)]&&(_0x32ee32[_0x5e48b2(0x180)]={}),!_0x32ee32[_0x5e48b2(0x17c)]&&(_0x32ee32[_0x5e48b2(0x17c)]=''),{'lockData':_0x24ee1d,'appLock':_0x32ee32};}export async function readSqlLockFile(_0x2f6a97){const _0x5f56bb=a153_0x1966;try{const _0x177872=await readFile(_0x2f6a97,_0x5f56bb(0x16d));return JSON[_0x5f56bb(0x16f)](_0x177872);}catch(_0x33c58c){if(_0x33c58c[_0x5f56bb(0x171)]===_0x5f56bb(0x17a))return null;throw new Error('Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'+String(_0x33c58c));}}export async function writeSqlLockFile(_0x4424aa,_0x3f418a){const _0x5f5a3b=a153_0x1966;await mkdir(dirname(_0x4424aa),{'recursive':!![]}),await writeFile(_0x4424aa,JSON[_0x5f5a3b(0x17e)](_0x3f418a,null,0x2),_0x5f5a3b(0x16d));}
1
+ function a154_0x290c(_0x274496,_0x4726fa){_0x274496=_0x274496-0x7d;const _0x2c2137=a154_0x2c21();let _0x290ca9=_0x2c2137[_0x274496];return _0x290ca9;}(function(_0x1175e,_0x135b41){const _0x2cf650=a154_0x290c,_0x5ee14d=_0x1175e();while(!![]){try{const _0x688882=parseInt(_0x2cf650(0x8c))/0x1+parseInt(_0x2cf650(0x8d))/0x2+parseInt(_0x2cf650(0x81))/0x3+parseInt(_0x2cf650(0x86))/0x4+parseInt(_0x2cf650(0x89))/0x5*(-parseInt(_0x2cf650(0x8b))/0x6)+-parseInt(_0x2cf650(0x88))/0x7+-parseInt(_0x2cf650(0x92))/0x8;if(_0x688882===_0x135b41)break;else _0x5ee14d['push'](_0x5ee14d['shift']());}catch(_0x5c0fad){_0x5ee14d['push'](_0x5ee14d['shift']());}}}(a154_0x2c21,0xb78a9));function a154_0x2c21(){const _0xd65e1c=['Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','code','\x22.\x20','1248108VXZPxV','ENOENT','3134810RxXwKF','615430rJvpCu','apps','48xdSxIp','548005feJITq','1220836LLGheH','parse','utf8','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','sqls','1013704SwXEej','lastSync','stringify','sqlRoot','\x22\x20vs\x20lock\x20\x22','2521698kUtsYK'];a154_0x2c21=function(){return _0xd65e1c;};return a154_0x2c21();}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x456fe8,_0x2d9d9d,_0x39bd0c,_0x593fbd){const _0x2f6253=a154_0x290c,_0x3b3dae=_0x456fe8??createEmptySqlLock();let _0x3ae08a=_0x3b3dae['apps'][_0x2d9d9d];if(!_0x3ae08a)return _0x3ae08a={'sqlRoot':_0x39bd0c,'lastSync':'','sqls':{}},_0x3b3dae[_0x2f6253(0x8a)][_0x2d9d9d]=_0x3ae08a,{'lockData':_0x3b3dae,'appLock':_0x3ae08a};if(!_0x3ae08a[_0x2f6253(0x7f)])_0x3ae08a[_0x2f6253(0x7f)]=_0x39bd0c;else{if(_0x3ae08a[_0x2f6253(0x7f)]!==_0x39bd0c)throw new Error(_0x593fbd+_0x2f6253(0x83)+_0x39bd0c+_0x2f6253(0x80)+_0x3ae08a[_0x2f6253(0x7f)]+_0x2f6253(0x85)+_0x2f6253(0x82));}return!_0x3ae08a[_0x2f6253(0x91)]&&(_0x3ae08a[_0x2f6253(0x91)]={}),!_0x3ae08a['lastSync']&&(_0x3ae08a[_0x2f6253(0x7d)]=''),{'lockData':_0x3b3dae,'appLock':_0x3ae08a};}export async function readSqlLockFile(_0xdf42db){const _0x6352e8=a154_0x290c;try{const _0x32bea1=await readFile(_0xdf42db,'utf8');return JSON[_0x6352e8(0x8e)](_0x32bea1);}catch(_0xc166f2){if(_0xc166f2[_0x6352e8(0x84)]===_0x6352e8(0x87))return null;throw new Error(_0x6352e8(0x90)+String(_0xc166f2));}}export async function writeSqlLockFile(_0x202101,_0x1c65e9){const _0x9f6356=a154_0x290c;await mkdir(dirname(_0x202101),{'recursive':!![]}),await writeFile(_0x202101,JSON[_0x9f6356(0x7e)](_0x1c65e9,null,0x2),_0x9f6356(0x8f));}
@@ -1 +1 @@
1
- function a155_0x5caf(){const _0x6bf9af=['trimStart','21048libukr','243575niStqT','replace','.sql','118788UgUJkK','82wQlcNS','5ALDXOl','db-','625266xWQBAz','unknown-sql','29632ERWEfQ','trim','801756GilXhd','10axHHFP','15617HuTImc','mybatisXml','test','.xml'];a155_0x5caf=function(){return _0x6bf9af;};return a155_0x5caf();}(function(_0x2e7db4,_0x3724e4){const _0x4ff019=a155_0x483c,_0x2e8021=_0x2e7db4();while(!![]){try{const _0x205424=-parseInt(_0x4ff019(0x1d4))/0x1+-parseInt(_0x4ff019(0x1c5))/0x2*(-parseInt(_0x4ff019(0x1d3))/0x3)+parseInt(_0x4ff019(0x1c4))/0x4+parseInt(_0x4ff019(0x1c6))/0x5*(parseInt(_0x4ff019(0x1cc))/0x6)+parseInt(_0x4ff019(0x1ce))/0x7+parseInt(_0x4ff019(0x1ca))/0x8+-parseInt(_0x4ff019(0x1c8))/0x9*(parseInt(_0x4ff019(0x1cd))/0xa);if(_0x205424===_0x3724e4)break;else _0x2e8021['push'](_0x2e8021['shift']());}catch(_0x2dcdbe){_0x2e8021['push'](_0x2e8021['shift']());}}}(a155_0x5caf,0x231f9));function a155_0x483c(_0x5a28f6,_0x47ee1d){_0x5a28f6=_0x5a28f6-0x1c4;const _0x5caf95=a155_0x5caf();let _0x483cf6=_0x5caf95[_0x5a28f6];return _0x483cf6;}export function detectSqlMode(_0x4ed181){const _0x1365e6=a155_0x483c,_0x278c11=_0x4ed181[_0x1365e6(0x1d2)]();if(/^<(select|insert|update|delete)\b/i[_0x1365e6(0x1d0)](_0x278c11))return _0x1365e6(0x1cf);return'sql';}export function getSqlFileExtension(_0x26d08f){const _0x21aac8=a155_0x483c;return _0x26d08f===_0x21aac8(0x1cf)?_0x21aac8(0x1d1):_0x21aac8(0x1d6);}export function buildDefaultSqlFileName(_0x3c8af0,_0x525527){return''+_0x3c8af0+getSqlFileExtension(_0x525527);}export function sanitizeSqlPathSegment(_0x4965a9,_0xa64f37){const _0x5be87d=a155_0x483c,_0x31c1be=String(_0x4965a9??'')[_0x5be87d(0x1cb)](),_0xe721b0=_0x31c1be[_0x5be87d(0x1d5)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')['replace'](/\s+/g,'-')['replace'](/-+/g,'-')[_0x5be87d(0x1d5)](/^\.+/,'')[_0x5be87d(0x1d5)](/\.+$/,'')['replace'](/^-+/,'')['replace'](/-+$/,'');return _0xe721b0||_0xa64f37;}export function buildDbDirectoryName(_0x5c432a,_0x4963a4){const _0x426add=a155_0x483c;return sanitizeSqlPathSegment(_0x5c432a,_0x4963a4!=null?_0x426add(0x1c7)+_0x4963a4:'unknown-db');}export function buildSqlRelativePath(_0x5d4306,_0x182695,_0x22e7a0,_0x2e0bee,_0x1c76e6){const _0x1d3340=a155_0x483c,_0x3922b0=buildDbDirectoryName(_0x22e7a0,_0x1c76e6),_0xa300e=sanitizeSqlPathSegment(_0x5d4306,_0x1d3340(0x1c9)),_0x85cc26=sanitizeSqlPathSegment(_0x182695,_0xa300e);return _0x3922b0+'/'+_0xa300e+'_'+_0x85cc26+getSqlFileExtension(_0x2e0bee);}
1
+ (function(_0x188ce7,_0x3b8033){const _0x327c37=a156_0x3e88,_0x502a34=_0x188ce7();while(!![]){try{const _0x56fafa=-parseInt(_0x327c37(0x106))/0x1*(-parseInt(_0x327c37(0x10e))/0x2)+parseInt(_0x327c37(0x118))/0x3*(parseInt(_0x327c37(0x10a))/0x4)+-parseInt(_0x327c37(0x10b))/0x5+parseInt(_0x327c37(0x112))/0x6+parseInt(_0x327c37(0x115))/0x7*(parseInt(_0x327c37(0x10c))/0x8)+-parseInt(_0x327c37(0x108))/0x9*(parseInt(_0x327c37(0x117))/0xa)+parseInt(_0x327c37(0x105))/0xb;if(_0x56fafa===_0x3b8033)break;else _0x502a34['push'](_0x502a34['shift']());}catch(_0x227659){_0x502a34['push'](_0x502a34['shift']());}}}(a156_0x402e,0x5c91c));function a156_0x3e88(_0x22e9ae,_0xcfbdb9){_0x22e9ae=_0x22e9ae-0x105;const _0x402ee0=a156_0x402e();let _0x3e880a=_0x402ee0[_0x22e9ae];return _0x3e880a;}export function detectSqlMode(_0xd24b1b){const _0x57527d=a156_0x3e88,_0x31d448=_0xd24b1b['trimStart']();if(/^<(select|insert|update|delete)\b/i[_0x57527d(0x109)](_0x31d448))return _0x57527d(0x114);return _0x57527d(0x107);}export function getSqlFileExtension(_0x478b44){const _0x24c59b=a156_0x3e88;return _0x478b44===_0x24c59b(0x114)?_0x24c59b(0x116):_0x24c59b(0x119);}export function buildDefaultSqlFileName(_0x18ecc8,_0x2e322e){return''+_0x18ecc8+getSqlFileExtension(_0x2e322e);}export function sanitizeSqlPathSegment(_0x15174e,_0xb72d65){const _0x20c977=a156_0x3e88,_0x340d53=String(_0x15174e??'')[_0x20c977(0x113)](),_0x1b7f2b=_0x340d53[_0x20c977(0x10f)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x20c977(0x10f)](/\s+/g,'-')[_0x20c977(0x10f)](/-+/g,'-')[_0x20c977(0x10f)](/^\.+/,'')[_0x20c977(0x10f)](/\.+$/,'')[_0x20c977(0x10f)](/^-+/,'')[_0x20c977(0x10f)](/-+$/,'');return _0x1b7f2b||_0xb72d65;}function a156_0x402e(){const _0x159f93=['test','4YxVizH','1852635banPNq','8iNpxyW','unknown-db','4ISpRUB','replace','unknown-sql','db-','2970714EvIWbA','trim','mybatisXml','1737253edRrzn','.xml','10WKMyCh','374730OFYsDR','.sql','4113659nWJCyF','51289xUvGhq','sql','5355576vOqwco'];a156_0x402e=function(){return _0x159f93;};return a156_0x402e();}export function buildDbDirectoryName(_0x2c55c9,_0x21c41e){const _0x329a91=a156_0x3e88;return sanitizeSqlPathSegment(_0x2c55c9,_0x21c41e!=null?_0x329a91(0x111)+_0x21c41e:_0x329a91(0x10d));}export function buildSqlRelativePath(_0x4010fe,_0x168466,_0xa7accc,_0x5197fa,_0x84a474){const _0x157c13=a156_0x3e88,_0x2ec80b=buildDbDirectoryName(_0xa7accc,_0x84a474),_0x1c9237=sanitizeSqlPathSegment(_0x4010fe,_0x157c13(0x110)),_0x272ebe=sanitizeSqlPathSegment(_0x168466,_0x1c9237);return _0x2ec80b+'/'+_0x1c9237+'_'+_0x272ebe+getSqlFileExtension(_0x5197fa);}
@@ -1 +1 @@
1
- function a156_0x3e62(){const _0x178e68=['SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','add','push','trim','reason','join','\x20with\x20parameters:\x20','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','startsWith','DDL','69133uBrQCX','70vLBWcT','13595780iRdcRF','4503644VFSIaW','WITH','match','\x20query\x20targeting\x20','557278vytzYp','SELECT','1107000Zfqxkt','test','5XfARvM','toUpperCase','INSERT','unknown\x20table(s)','SQL\x20content\x20is\x20empty','105Cxpfxa','136920LiOhgF','785460UqzUMw','12YHbhCS','replace','DELETE','type','length','includes','UPDATE','isDangerous','UNKNOWN','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','matchAll'];a156_0x3e62=function(){return _0x178e68;};return a156_0x3e62();}(function(_0x48f970,_0x23d7a4){const _0x3ecade=a156_0x5ae1,_0x2516f0=_0x48f970();while(!![]){try{const _0x164f05=parseInt(_0x3ecade(0x146))/0x1+parseInt(_0x3ecade(0x14d))/0x2*(-parseInt(_0x3ecade(0x159))/0x3)+parseInt(_0x3ecade(0x149))/0x4+-parseInt(_0x3ecade(0x151))/0x5*(parseInt(_0x3ecade(0x158))/0x6)+parseInt(_0x3ecade(0x156))/0x7*(parseInt(_0x3ecade(0x157))/0x8)+-parseInt(_0x3ecade(0x14f))/0x9*(parseInt(_0x3ecade(0x147))/0xa)+parseInt(_0x3ecade(0x148))/0xb;if(_0x164f05===_0x23d7a4)break;else _0x2516f0['push'](_0x2516f0['shift']());}catch(_0x53f776){_0x2516f0['push'](_0x2516f0['shift']());}}}(a156_0x3e62,0x8dea3));export function detectSqlType(_0x1317f0){const _0x429969=a156_0x5ae1;if(!_0x1317f0?.[_0x429969(0x167)]())return{'type':_0x429969(0x161),'isSelectOnly':![],'isDangerous':![],'reason':_0x429969(0x155)};const _0x4d1fd1=_0x1317f0[_0x429969(0x15a)](/#\{[^}]*\}/g,'?')[_0x429969(0x15a)](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')[_0x429969(0x15a)](/\/\*[\s\S]*?\*\//g,'')[_0x429969(0x167)](),_0x3a4666=_0x4d1fd1['split']('\x0a');let _0x139110='';for(const _0x229281 of _0x3a4666){const _0x3d8c73=_0x229281['trim']();if(!_0x3d8c73||_0x3d8c73[_0x429969(0x16c)]('--')||_0x3d8c73[_0x429969(0x16c)]('/*'))continue;_0x139110=_0x3d8c73;break;}const _0x10c1f5=_0x139110[_0x429969(0x152)]();if(_0x10c1f5[_0x429969(0x16c)](_0x429969(0x14e))||_0x10c1f5['startsWith'](_0x429969(0x14a))){const _0xfd18bf=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x429969(0x150)](_0x4d1fd1);return{'type':_0x429969(0x14e),'isSelectOnly':!_0xfd18bf,'isDangerous':_0xfd18bf,'reason':_0xfd18bf?_0x429969(0x164):undefined};}if(_0x10c1f5[_0x429969(0x16c)](_0x429969(0x153)))return{'type':_0x429969(0x153),'isSelectOnly':![],'isDangerous':![]};if(_0x10c1f5[_0x429969(0x16c)](_0x429969(0x15f)))return{'type':_0x429969(0x15f),'isSelectOnly':![],'isDangerous':![]};if(_0x10c1f5[_0x429969(0x16c)](_0x429969(0x15b)))return{'type':_0x429969(0x15b),'isSelectOnly':![],'isDangerous':!![],'reason':_0x429969(0x162)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x429969(0x150)](_0x10c1f5))return{'type':_0x429969(0x16d),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x429969(0x161),'isSelectOnly':![],'isDangerous':![]};}function a156_0x5ae1(_0x27cbe1,_0x25b555){_0x27cbe1=_0x27cbe1-0x146;const _0x3e622c=a156_0x3e62();let _0x5ae1c2=_0x3e622c[_0x27cbe1];return _0x5ae1c2;}function extractTables(_0x1fa288){const _0x41a03a=a156_0x5ae1,_0x1952a1=_0x1fa288['replace'](/#\{[^}]*\}/g,'?')[_0x41a03a(0x15a)](/\$\{[^}]*\}/g,'?')[_0x41a03a(0x15a)](/'[^']*'/g,'\x27\x27')[_0x41a03a(0x15a)](/--.*$/gm,'')[_0x41a03a(0x15a)](/\/\*[\s\S]*?\*\//g,''),_0x117607=[],_0x32cf07=_0x1952a1[_0x41a03a(0x14b)](/FROM\s+([^\s,)(]+)/i);if(_0x32cf07?.[0x1])_0x117607[_0x41a03a(0x166)](_0x32cf07[0x1][_0x41a03a(0x15a)](/[`"]/g,''));for(const _0x22aebe of _0x1952a1['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x37bf2c=_0x22aebe[0x1]?.[_0x41a03a(0x15a)](/[`"]/g,'');if(_0x37bf2c&&!_0x117607[_0x41a03a(0x15e)](_0x37bf2c))_0x117607[_0x41a03a(0x166)](_0x37bf2c);}const _0x3b68e1=_0x1952a1[_0x41a03a(0x14b)](/INTO\s+([^\s(]+)/i);if(_0x3b68e1?.[0x1]){const _0x17f7e7=_0x3b68e1[0x1]['replace'](/[`"]/g,'');if(!_0x117607[_0x41a03a(0x15e)](_0x17f7e7))_0x117607[_0x41a03a(0x166)](_0x17f7e7);}const _0x323ece=_0x1952a1[_0x41a03a(0x14b)](/UPDATE\s+([^\s,)(]+)/i);if(_0x323ece?.[0x1]){const _0x2d65ff=_0x323ece[0x1][_0x41a03a(0x15a)](/[`"]/g,'');if(!_0x117607[_0x41a03a(0x15e)](_0x2d65ff))_0x117607[_0x41a03a(0x166)](_0x2d65ff);}return _0x117607;}function extractParameters(_0x514dc6){const _0xd54194=a156_0x5ae1,_0x248f74=new Set();for(const _0x4deba6 of _0x514dc6['matchAll'](/#\{(\w+)\}/g))if(_0x4deba6[0x1])_0x248f74[_0xd54194(0x165)](_0x4deba6[0x1]);for(const _0x6291fb of _0x514dc6[_0xd54194(0x163)](/\$\{(\w+)\}/g))if(_0x6291fb[0x1])_0x248f74['add'](_0x6291fb[0x1]);return Array['from'](_0x248f74);}export function validateSql(_0x31901d){const _0x223749=a156_0x5ae1,_0x5206c0=detectSqlType(_0x31901d),_0x55093c=extractTables(_0x31901d),_0x104bc0=extractParameters(_0x31901d);if(_0x5206c0[_0x223749(0x160)])return{'valid':![],'sqlType':_0x5206c0,'tables':_0x55093c,'parameters':_0x104bc0,'message':_0x5206c0[_0x223749(0x168)]||_0x5206c0[_0x223749(0x15c)]+_0x223749(0x16b)};if(_0x5206c0['type']==='UNKNOWN')return{'valid':![],'sqlType':_0x5206c0,'tables':_0x55093c,'parameters':_0x104bc0,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x5206c0,'tables':_0x55093c,'parameters':_0x104bc0,'message':_0x5206c0['type']+_0x223749(0x14c)+(_0x55093c[_0x223749(0x15d)]?_0x55093c[_0x223749(0x169)](',\x20'):_0x223749(0x154))+(_0x104bc0[_0x223749(0x15d)]?_0x223749(0x16a)+_0x104bc0[_0x223749(0x169)](',\x20'):'')};}
1
+ (function(_0x24946a,_0x5b7459){const _0x5ef81f=a157_0x3c71,_0x4d3d6b=_0x24946a();while(!![]){try{const _0x7e8589=parseInt(_0x5ef81f(0x128))/0x1+parseInt(_0x5ef81f(0x104))/0x2+parseInt(_0x5ef81f(0x115))/0x3+-parseInt(_0x5ef81f(0x11f))/0x4+parseInt(_0x5ef81f(0x10b))/0x5+parseInt(_0x5ef81f(0x111))/0x6*(-parseInt(_0x5ef81f(0x113))/0x7)+-parseInt(_0x5ef81f(0x11b))/0x8;if(_0x7e8589===_0x5b7459)break;else _0x4d3d6b['push'](_0x4d3d6b['shift']());}catch(_0x4f8b6e){_0x4d3d6b['push'](_0x4d3d6b['shift']());}}}(a157_0x2dc4,0x45f29));function a157_0x3c71(_0x415a40,_0x24752c){_0x415a40=_0x415a40-0x104;const _0x2dc411=a157_0x2dc4();let _0x3c71ca=_0x2dc411[_0x415a40];return _0x3c71ca;}export function detectSqlType(_0x14207d){const _0x7ac84e=a157_0x3c71;if(!_0x14207d?.[_0x7ac84e(0x126)]())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':'SQL\x20content\x20is\x20empty'};const _0x2d7074=_0x14207d[_0x7ac84e(0x125)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x7ac84e(0x125)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x7ac84e(0x125)](/\/\*[\s\S]*?\*\//g,'')['trim'](),_0x52a566=_0x2d7074[_0x7ac84e(0x11c)]('\x0a');let _0x396994='';for(const _0x4074f0 of _0x52a566){const _0x12eb29=_0x4074f0[_0x7ac84e(0x126)]();if(!_0x12eb29||_0x12eb29[_0x7ac84e(0x127)]('--')||_0x12eb29[_0x7ac84e(0x127)]('/*'))continue;_0x396994=_0x12eb29;break;}const _0x217cae=_0x396994[_0x7ac84e(0x11e)]();if(_0x217cae[_0x7ac84e(0x127)]('SELECT')||_0x217cae[_0x7ac84e(0x127)](_0x7ac84e(0x110))){const _0x58f4ae=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x7ac84e(0x108)](_0x2d7074);return{'type':_0x7ac84e(0x119),'isSelectOnly':!_0x58f4ae,'isDangerous':_0x58f4ae,'reason':_0x58f4ae?_0x7ac84e(0x10c):undefined};}if(_0x217cae[_0x7ac84e(0x127)](_0x7ac84e(0x117)))return{'type':'INSERT','isSelectOnly':![],'isDangerous':![]};if(_0x217cae[_0x7ac84e(0x127)](_0x7ac84e(0x122)))return{'type':_0x7ac84e(0x122),'isSelectOnly':![],'isDangerous':![]};if(_0x217cae[_0x7ac84e(0x127)](_0x7ac84e(0x11d)))return{'type':_0x7ac84e(0x11d),'isSelectOnly':![],'isDangerous':!![],'reason':_0x7ac84e(0x123)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x7ac84e(0x108)](_0x217cae))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':_0x7ac84e(0x11a)};return{'type':_0x7ac84e(0x105),'isSelectOnly':![],'isDangerous':![]};}function a157_0x2dc4(){const _0x55a56=['join','1046997ZWLrVb','match','1241934RFZJPA','push','INSERT','unknown\x20table(s)','SELECT','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','1339720EKXurq','split','DELETE','toUpperCase','1909428ZxyPtY','type','matchAll','UPDATE','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','replace','trim','startsWith','340929IWppRR','320140aQaQap','UNKNOWN','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','length','test','reason','includes','829605TkZaJA','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','isDangerous','from','add','WITH','6qcMJvU'];a157_0x2dc4=function(){return _0x55a56;};return a157_0x2dc4();}function extractTables(_0x4a4ad8){const _0x194238=a157_0x3c71,_0x51e239=_0x4a4ad8[_0x194238(0x125)](/#\{[^}]*\}/g,'?')[_0x194238(0x125)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0x194238(0x125)](/--.*$/gm,'')[_0x194238(0x125)](/\/\*[\s\S]*?\*\//g,''),_0x5c6909=[],_0x1d6daa=_0x51e239[_0x194238(0x114)](/FROM\s+([^\s,)(]+)/i);if(_0x1d6daa?.[0x1])_0x5c6909['push'](_0x1d6daa[0x1]['replace'](/[`"]/g,''));for(const _0x5e0b64 of _0x51e239[_0x194238(0x121)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0xfc3977=_0x5e0b64[0x1]?.[_0x194238(0x125)](/[`"]/g,'');if(_0xfc3977&&!_0x5c6909[_0x194238(0x10a)](_0xfc3977))_0x5c6909['push'](_0xfc3977);}const _0x1eb454=_0x51e239[_0x194238(0x114)](/INTO\s+([^\s(]+)/i);if(_0x1eb454?.[0x1]){const _0x5ea247=_0x1eb454[0x1][_0x194238(0x125)](/[`"]/g,'');if(!_0x5c6909[_0x194238(0x10a)](_0x5ea247))_0x5c6909[_0x194238(0x116)](_0x5ea247);}const _0x4ca118=_0x51e239['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x4ca118?.[0x1]){const _0x218815=_0x4ca118[0x1]['replace'](/[`"]/g,'');if(!_0x5c6909[_0x194238(0x10a)](_0x218815))_0x5c6909[_0x194238(0x116)](_0x218815);}return _0x5c6909;}function extractParameters(_0x36a06e){const _0x5ebfc3=a157_0x3c71,_0x15da6a=new Set();for(const _0xfd8381 of _0x36a06e[_0x5ebfc3(0x121)](/#\{(\w+)\}/g))if(_0xfd8381[0x1])_0x15da6a['add'](_0xfd8381[0x1]);for(const _0x278039 of _0x36a06e[_0x5ebfc3(0x121)](/\$\{(\w+)\}/g))if(_0x278039[0x1])_0x15da6a[_0x5ebfc3(0x10f)](_0x278039[0x1]);return Array[_0x5ebfc3(0x10e)](_0x15da6a);}export function validateSql(_0x106122){const _0x325897=a157_0x3c71,_0x46b808=detectSqlType(_0x106122),_0x1c8efa=extractTables(_0x106122),_0x7a04f1=extractParameters(_0x106122);if(_0x46b808[_0x325897(0x10d)])return{'valid':![],'sqlType':_0x46b808,'tables':_0x1c8efa,'parameters':_0x7a04f1,'message':_0x46b808[_0x325897(0x109)]||_0x46b808['type']+_0x325897(0x124)};if(_0x46b808['type']==='UNKNOWN')return{'valid':![],'sqlType':_0x46b808,'tables':_0x1c8efa,'parameters':_0x7a04f1,'message':_0x325897(0x106)};return{'valid':!![],'sqlType':_0x46b808,'tables':_0x1c8efa,'parameters':_0x7a04f1,'message':_0x46b808[_0x325897(0x120)]+'\x20query\x20targeting\x20'+(_0x1c8efa['length']?_0x1c8efa[_0x325897(0x112)](',\x20'):_0x325897(0x118))+(_0x7a04f1[_0x325897(0x107)]?'\x20with\x20parameters:\x20'+_0x7a04f1[_0x325897(0x112)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a157_0x38935c=a157_0x173d;(function(_0x1735d9,_0x28e77b){const _0x30864d=a157_0x173d,_0x54c37f=_0x1735d9();while(!![]){try{const _0x50d9d5=parseInt(_0x30864d(0x104))/0x1+parseInt(_0x30864d(0xfd))/0x2+parseInt(_0x30864d(0x102))/0x3+parseInt(_0x30864d(0x105))/0x4*(parseInt(_0x30864d(0x103))/0x5)+-parseInt(_0x30864d(0x106))/0x6+-parseInt(_0x30864d(0xf9))/0x7+parseInt(_0x30864d(0xfe))/0x8*(-parseInt(_0x30864d(0x101))/0x9);if(_0x50d9d5===_0x28e77b)break;else _0x54c37f['push'](_0x54c37f['shift']());}catch(_0xc8721b){_0x54c37f['push'](_0x54c37f['shift']());}}}(a157_0x4858,0xae69e));function a157_0x4858(){const _0x18c676=['4775FEytRm','482899kAQnBF','1964VrFdRw','4941228SehWwg','Set\x20appcode\x20via\x20`','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','3819417uKchID','\x0a\x20\x20\x20\x20\x20\x20\x20','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','Tip:\x20`','2172560bUdpbz','1784sysdtw','Run\x20`','join','27135TsHsAN','2153484vAbjKH'];a157_0x4858=function(){return _0x18c676;};return a157_0x4858();}function a157_0x173d(_0x5262f3,_0x4a7bd2){_0x5262f3=_0x5262f3-0xf8;const _0x4858ec=a157_0x4858();let _0x173d06=_0x4858ec[_0x5262f3];return _0x173d06;}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a157_0x38935c(0xff)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':[a157_0x38935c(0x107)+CLI_BIN_NAME+a157_0x38935c(0xf8),a157_0x38935c(0xfc)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.'][a157_0x38935c(0x100)](a157_0x38935c(0xfa)),'notInProjectHint':a157_0x38935c(0xfb)});
1
+ const a158_0x2d0d3a=a158_0x2602;function a158_0x2602(_0x501571,_0x17328a){_0x501571=_0x501571-0x71;const _0x5db3d6=a158_0x5db3();let _0x260232=_0x5db3d6[_0x501571];return _0x260232;}(function(_0x5c2c26,_0x59844f){const _0x1bec9f=a158_0x2602,_0x568c60=_0x5c2c26();while(!![]){try{const _0x1d7f10=-parseInt(_0x1bec9f(0x7d))/0x1*(-parseInt(_0x1bec9f(0x7a))/0x2)+parseInt(_0x1bec9f(0x78))/0x3+-parseInt(_0x1bec9f(0x7b))/0x4+-parseInt(_0x1bec9f(0x72))/0x5*(parseInt(_0x1bec9f(0x79))/0x6)+-parseInt(_0x1bec9f(0x75))/0x7+-parseInt(_0x1bec9f(0x76))/0x8+parseInt(_0x1bec9f(0x77))/0x9;if(_0x1d7f10===_0x59844f)break;else _0x568c60['push'](_0x568c60['shift']());}catch(_0x22bc96){_0x568c60['push'](_0x568c60['shift']());}}}(a158_0x5db3,0x22000));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a158_0x2d0d3a(0x74)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a158_0x2d0d3a(0x71),a158_0x2d0d3a(0x7e)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.'][a158_0x2d0d3a(0x7c)]('\x0a\x20\x20\x20\x20\x20\x20\x20'),'notInProjectHint':a158_0x2d0d3a(0x73)});function a158_0x5db3(){const _0x1e7674=['4471785GAoHNQ','167949TsXYKm','366gJHciF','2ToGgUp','13724ksXRba','join','76786VmDcHD','Tip:\x20`','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','20370hNuTrC','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','Run\x20`','906808qykDCU','871048PChnky'];a158_0x5db3=function(){return _0x1e7674;};return a158_0x5db3();}
@@ -1 +1 @@
1
- function a158_0x33f2(_0x20f2e6,_0x15bb58){_0x20f2e6=_0x20f2e6-0x1a2;var _0x4b59c2=a158_0x4b59();var _0x33f218=_0x4b59c2[_0x20f2e6];return _0x33f218;}(function(_0x13105a,_0x3a2bfd){var _0x56c07e=a158_0x33f2,_0x173d1a=_0x13105a();while(!![]){try{var _0x2841df=parseInt(_0x56c07e(0x1a5))/0x1+parseInt(_0x56c07e(0x1a2))/0x2+-parseInt(_0x56c07e(0x1a7))/0x3*(parseInt(_0x56c07e(0x1a6))/0x4)+parseInt(_0x56c07e(0x1a3))/0x5+parseInt(_0x56c07e(0x1a8))/0x6+parseInt(_0x56c07e(0x1a4))/0x7+-parseInt(_0x56c07e(0x1a9))/0x8;if(_0x2841df===_0x3a2bfd)break;else _0x173d1a['push'](_0x173d1a['shift']());}catch(_0x98cc37){_0x173d1a['push'](_0x173d1a['shift']());}}}(a158_0x4b59,0x5a228));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a158_0x5bd0a5}from'@lovrabet/cli-framework';export function buildAllFlags(_0x4c2f79){return a158_0x5bd0a5(_0x4c2f79,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}function a158_0x4b59(){var _0x510ae1=['56vsguua','84081wLDTHH','2487672WBVtLM','8578712BKogvZ','142898HmLoyz','2925845HBUnUi','2502920tGHaNc','405119jeUVtC'];a158_0x4b59=function(){return _0x510ae1;};return a158_0x4b59();}
1
+ (function(_0x2f7739,_0x386a6e){var _0x527216=a159_0x54d6,_0x56bd85=_0x2f7739();while(!![]){try{var _0x53ccd4=-parseInt(_0x527216(0xd7))/0x1+-parseInt(_0x527216(0xd8))/0x2+-parseInt(_0x527216(0xd2))/0x3+-parseInt(_0x527216(0xd5))/0x4+parseInt(_0x527216(0xd6))/0x5+-parseInt(_0x527216(0xd0))/0x6*(parseInt(_0x527216(0xd3))/0x7)+parseInt(_0x527216(0xd4))/0x8*(parseInt(_0x527216(0xd1))/0x9);if(_0x53ccd4===_0x386a6e)break;else _0x56bd85['push'](_0x56bd85['shift']());}catch(_0x1e7f32){_0x56bd85['push'](_0x56bd85['shift']());}}}(a159_0xba93,0xbe8b4));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a159_0x3842b1}from'@lovrabet/cli-framework';function a159_0xba93(){var _0x508e6a=['33382188MybdaI','4277601qMKeZs','1398859lBiqXq','8hKjKHj','2429364BbRSUt','1054085RScxUX','552501OECvJx','707870RYSBEo','6wJfokH'];a159_0xba93=function(){return _0x508e6a;};return a159_0xba93();}function a159_0x54d6(_0x1ddc8c,_0x414a62){_0x1ddc8c=_0x1ddc8c-0xd0;var _0xba93e=a159_0xba93();var _0x54d6fd=_0xba93e[_0x1ddc8c];return _0x54d6fd;}export function buildAllFlags(_0xfc0069){return a159_0x3842b1(_0xfc0069,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- const a159_0x182cc1=a159_0x1385;(function(_0x17c4b9,_0x32dd4a){const _0x3a1f38=a159_0x1385,_0x4a4d25=_0x17c4b9();while(!![]){try{const _0x155b60=parseInt(_0x3a1f38(0xfe))/0x1+-parseInt(_0x3a1f38(0x102))/0x2+-parseInt(_0x3a1f38(0x106))/0x3+-parseInt(_0x3a1f38(0x104))/0x4+-parseInt(_0x3a1f38(0xff))/0x5*(parseInt(_0x3a1f38(0x100))/0x6)+-parseInt(_0x3a1f38(0x105))/0x7*(parseInt(_0x3a1f38(0xfd))/0x8)+-parseInt(_0x3a1f38(0xfc))/0x9*(-parseInt(_0x3a1f38(0x107))/0xa);if(_0x155b60===_0x32dd4a)break;else _0x4a4d25['push'](_0x4a4d25['shift']());}catch(_0x4c5ce4){_0x4a4d25['push'](_0x4a4d25['shift']());}}}(a159_0x3c23,0xb9519));import{createFlagHelpers}from'@lovrabet/cli-framework';function a159_0x3c23(){const _0x3feb7f=['774IpDJlI','parseFlags','813560qwoezZ','validateFlags','4996316LZBSIq','18018lYeESn','4190454mUZHZy','5710ObNRkG','84069MwETRv','3800mZGdqK','326976fgSkcn','24275VUWsmF'];a159_0x3c23=function(){return _0x3feb7f;};return a159_0x3c23();}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a159_0x1385(_0x203a3f,_0x1631fe){_0x203a3f=_0x203a3f-0xfc;const _0x3c23c7=a159_0x3c23();let _0x1385c5=_0x3c23c7[_0x203a3f];return _0x1385c5;}export const parseFlags=helpers[a159_0x182cc1(0x101)];export const validateFlags=helpers[a159_0x182cc1(0x103)];
1
+ const a160_0x33415f=a160_0x34c9;(function(_0x454f69,_0x2f572c){const _0x30b6f0=a160_0x34c9,_0x57a4d5=_0x454f69();while(!![]){try{const _0x459a3c=-parseInt(_0x30b6f0(0x1b6))/0x1+parseInt(_0x30b6f0(0x1b4))/0x2*(-parseInt(_0x30b6f0(0x1b2))/0x3)+parseInt(_0x30b6f0(0x1b7))/0x4+-parseInt(_0x30b6f0(0x1b3))/0x5*(-parseInt(_0x30b6f0(0x1b9))/0x6)+parseInt(_0x30b6f0(0x1b0))/0x7*(-parseInt(_0x30b6f0(0x1b1))/0x8)+-parseInt(_0x30b6f0(0x1b8))/0x9+-parseInt(_0x30b6f0(0x1af))/0xa*(-parseInt(_0x30b6f0(0x1b5))/0xb);if(_0x459a3c===_0x2f572c)break;else _0x57a4d5['push'](_0x57a4d5['shift']());}catch(_0x1a9ae2){_0x57a4d5['push'](_0x57a4d5['shift']());}}}(a160_0x2cfd,0x967a2));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a160_0x2cfd(){const _0x2da1a9=['4017072eZmTBI','7622847WqYiRf','54jkVuxR','parseFlags','validateFlags','60gcHXCs','9149hVtoWs','4808HeMEou','3YcenKb','36230IhdDfd','2434318UKagRj','5002679XRNFTx','332213bfKfqR'];a160_0x2cfd=function(){return _0x2da1a9;};return a160_0x2cfd();}export const parseFlags=helpers[a160_0x33415f(0x1ad)];function a160_0x34c9(_0x2cdaa0,_0x20cbe7){_0x2cdaa0=_0x2cdaa0-0x1ad;const _0x2cfdda=a160_0x2cfd();let _0x34c904=_0x2cfdda[_0x2cdaa0];return _0x34c904;}export const validateFlags=helpers[a160_0x33415f(0x1ae)];
@@ -1 +1 @@
1
- const a160_0x49ce87=a160_0x3687;(function(_0xe734ed,_0x3bc764){const _0x5c6334=a160_0x3687,_0x27f3e8=_0xe734ed();while(!![]){try{const _0x321cb2=parseInt(_0x5c6334(0x8b))/0x1+parseInt(_0x5c6334(0x8a))/0x2*(-parseInt(_0x5c6334(0x86))/0x3)+parseInt(_0x5c6334(0x85))/0x4+-parseInt(_0x5c6334(0x82))/0x5+parseInt(_0x5c6334(0x83))/0x6+parseInt(_0x5c6334(0x8f))/0x7+-parseInt(_0x5c6334(0x87))/0x8;if(_0x321cb2===_0x3bc764)break;else _0x27f3e8['push'](_0x27f3e8['shift']());}catch(_0x1a7d62){_0x27f3e8['push'](_0x27f3e8['shift']());}}}(a160_0x3c8b,0x2a738));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a160_0x3687(_0x1674cb,_0x336da8){_0x1674cb=_0x1674cb-0x81;const _0x3c8b68=a160_0x3c8b();let _0x3687bd=_0x3c8b68[_0x1674cb];return _0x3687bd;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x5e8e2b=>serviceGroups[a160_0x49ce87(0x8d)](_0x5e8e2b),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a160_0x49ce87(0x84)+CLI_BIN_NAME+a160_0x49ce87(0x8e),'serviceUsageSuffix':a160_0x49ce87(0x89),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x2e5016){const _0x2e326c=a160_0x49ce87;return generators[_0x2e326c(0x8c)](_0x2e5016);}function a160_0x3c8b(){const _0x5f166d=['1946980yTHOod','generateFullHelp','530645ekPBlf','633630UolIac','Requires\x20appcode\x20(set\x20via\x20`','1154928ROAvfq','719733JDbfTp','2408488qaDtof','generateServiceHelp','\x20[args]\x20[flags]','2NESwCe','148504LUtBWi','generateCommandHelp','get','\x20project\x20init`\x20or\x20--appcode).'];a160_0x3c8b=function(){return _0x5f166d;};return a160_0x3c8b();}export const generateServiceHelp=generators[a160_0x49ce87(0x88)];export const generateFullHelp=generators[a160_0x49ce87(0x81)];
1
+ const a161_0x24842f=a161_0xb97c;(function(_0x4aaa50,_0x12e6bc){const _0xa67a0e=a161_0xb97c,_0x56dc4d=_0x4aaa50();while(!![]){try{const _0x70873b=-parseInt(_0xa67a0e(0xfa))/0x1+-parseInt(_0xa67a0e(0x103))/0x2+parseInt(_0xa67a0e(0x101))/0x3*(parseInt(_0xa67a0e(0x102))/0x4)+-parseInt(_0xa67a0e(0xf7))/0x5*(parseInt(_0xa67a0e(0xfb))/0x6)+parseInt(_0xa67a0e(0x100))/0x7+parseInt(_0xa67a0e(0xfc))/0x8*(parseInt(_0xa67a0e(0xf8))/0x9)+parseInt(_0xa67a0e(0xf9))/0xa;if(_0x70873b===_0x12e6bc)break;else _0x56dc4d['push'](_0x56dc4d['shift']());}catch(_0x2c597d){_0x56dc4d['push'](_0x56dc4d['shift']());}}}(a161_0x583c,0x79632));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x173416=>serviceGroups['get'](_0x173416),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a161_0x24842f(0xff)+CLI_BIN_NAME+'\x20project\x20init`\x20or\x20--appcode).','serviceUsageSuffix':a161_0x24842f(0x104),'includeWildcardExtraInFullHelp':!![]});function a161_0xb97c(_0x1ec6db,_0x545bf2){_0x1ec6db=_0x1ec6db-0xf7;const _0x583c13=a161_0x583c();let _0xb97c5f=_0x583c13[_0x1ec6db];return _0xb97c5f;}export function generateCommandHelp(_0x5e7a37){const _0x5da75c=a161_0x24842f;return generators[_0x5da75c(0xfd)](_0x5e7a37);}export const generateServiceHelp=generators[a161_0x24842f(0x105)];export const generateFullHelp=generators[a161_0x24842f(0xfe)];function a161_0x583c(){const _0x224aaa=['633494VsBbrp','\x20[args]\x20[flags]','generateServiceHelp','645vkQuci','298674zsGwfV','7522100ZmAZNf','522309mBBcUr','39126vTKMWl','152LpBDZL','generateCommandHelp','generateFullHelp','Requires\x20appcode\x20(set\x20via\x20`','1893563aqjqRo','786321UusAJL','8mQDqdQ'];a161_0x583c=function(){return _0x224aaa;};return a161_0x583c();}
@@ -1 +1 @@
1
- (function(_0xc36427,_0x1cfb59){var _0x32defd=a161_0x59ca,_0x17a0cf=_0xc36427();while(!![]){try{var _0x1729ba=parseInt(_0x32defd(0x13f))/0x1*(parseInt(_0x32defd(0x13e))/0x2)+parseInt(_0x32defd(0x13d))/0x3+-parseInt(_0x32defd(0x144))/0x4*(parseInt(_0x32defd(0x145))/0x5)+parseInt(_0x32defd(0x140))/0x6*(parseInt(_0x32defd(0x146))/0x7)+parseInt(_0x32defd(0x141))/0x8*(-parseInt(_0x32defd(0x147))/0x9)+-parseInt(_0x32defd(0x142))/0xa*(parseInt(_0x32defd(0x148))/0xb)+parseInt(_0x32defd(0x143))/0xc;if(_0x1729ba===_0x1cfb59)break;else _0x17a0cf['push'](_0x17a0cf['shift']());}catch(_0x53b189){_0x17a0cf['push'](_0x17a0cf['shift']());}}}(a161_0x4292,0x693e3));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a161_0x59ca(_0x6cd931,_0x4acce3){_0x6cd931=_0x6cd931-0x13d;var _0x4292c2=a161_0x4292();var _0x59ca55=_0x4292c2[_0x6cd931];return _0x59ca55;}function a161_0x4292(){var _0x214286=['860740GjDrNT','11353968LtSMDs','70316xfylDp','125vJMVTh','41027etUvlb','38745hbAFbD','44OPGEQl','1379154JNKLRj','11962ECQPCF','73lWtqCH','186blQqTz','1504SiSQpA'];a161_0x4292=function(){return _0x214286;};return a161_0x4292();}export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0xcad6eb,_0x215153){var _0x571d35=a162_0x2a16,_0x458eac=_0xcad6eb();while(!![]){try{var _0x1739dc=parseInt(_0x571d35(0x1bc))/0x1+parseInt(_0x571d35(0x1c1))/0x2+parseInt(_0x571d35(0x1bb))/0x3*(parseInt(_0x571d35(0x1bf))/0x4)+-parseInt(_0x571d35(0x1be))/0x5*(-parseInt(_0x571d35(0x1c2))/0x6)+-parseInt(_0x571d35(0x1bd))/0x7+-parseInt(_0x571d35(0x1c3))/0x8+-parseInt(_0x571d35(0x1c0))/0x9*(parseInt(_0x571d35(0x1c4))/0xa);if(_0x1739dc===_0x215153)break;else _0x458eac['push'](_0x458eac['shift']());}catch(_0xf1d54c){_0x458eac['push'](_0x458eac['shift']());}}}(a162_0x44d2,0xaecfb));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';function a162_0x2a16(_0x2c3b63,_0x264a4a){_0x2c3b63=_0x2c3b63-0x1bb;var _0x44d2e3=a162_0x44d2();var _0x2a16e0=_0x44d2e3[_0x2c3b63];return _0x2a16e0;}function a162_0x44d2(){var _0x56f2d8=['597460SsyFFq','9XczfCh','589016BFEbGg','5691196WBQztk','3923465rJexvp','1437564MQIlOg','189JXBAxq','1963860jlSYVn','6ixTxql','5200728mWbHCb'];a162_0x44d2=function(){return _0x56f2d8;};return a162_0x44d2();}export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0xc0e6ec,_0x3007c9){const _0xf5f572=a162_0x5ccc,_0xfb132e=_0xc0e6ec();while(!![]){try{const _0x3af224=parseInt(_0xf5f572(0x197))/0x1*(-parseInt(_0xf5f572(0x19b))/0x2)+parseInt(_0xf5f572(0x19d))/0x3+parseInt(_0xf5f572(0x198))/0x4*(parseInt(_0xf5f572(0x19a))/0x5)+-parseInt(_0xf5f572(0x196))/0x6*(parseInt(_0xf5f572(0x195))/0x7)+parseInt(_0xf5f572(0x1a0))/0x8*(parseInt(_0xf5f572(0x19e))/0x9)+-parseInt(_0xf5f572(0x19c))/0xa*(parseInt(_0xf5f572(0x199))/0xb)+parseInt(_0xf5f572(0x19f))/0xc;if(_0x3af224===_0x3007c9)break;else _0xfb132e['push'](_0xfb132e['shift']());}catch(_0xff8174){_0xfb132e['push'](_0xfb132e['shift']());}}}(a162_0x46c2,0x40102));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a162_0x46c2(){const _0x2d950c=['2cbNsYl','2040cnySWI','1438305QYTLGT','161010MNFlOX','2041284gSHciV','8zJWNcI','28wvOaoA','374076hNqeMa','21703ItdQvy','1163956HwRShG','22913lCGQIV','5NlHXAW'];a162_0x46c2=function(){return _0x2d950c;};return a162_0x46c2();}function a162_0x5ccc(_0x3f3f9c,_0x32f352){_0x3f3f9c=_0x3f3f9c-0x195;const _0x46c2dd=a162_0x46c2();let _0x5ccc14=_0x46c2dd[_0x3f3f9c];return _0x5ccc14;}import{CliErrors}from'../errors.js';export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
1
+ (function(_0x23d1dc,_0x500b41){const _0x2adf4c=a163_0x1e7e,_0x14d4eb=_0x23d1dc();while(!![]){try{const _0x99a398=parseInt(_0x2adf4c(0x184))/0x1+-parseInt(_0x2adf4c(0x17f))/0x2+-parseInt(_0x2adf4c(0x181))/0x3*(-parseInt(_0x2adf4c(0x180))/0x4)+-parseInt(_0x2adf4c(0x185))/0x5*(-parseInt(_0x2adf4c(0x183))/0x6)+parseInt(_0x2adf4c(0x17e))/0x7*(parseInt(_0x2adf4c(0x17d))/0x8)+-parseInt(_0x2adf4c(0x187))/0x9*(parseInt(_0x2adf4c(0x182))/0xa)+-parseInt(_0x2adf4c(0x186))/0xb*(parseInt(_0x2adf4c(0x17c))/0xc);if(_0x99a398===_0x500b41)break;else _0x14d4eb['push'](_0x14d4eb['shift']());}catch(_0xade387){_0x14d4eb['push'](_0x14d4eb['shift']());}}}(a163_0x3ff3,0x70d85));function a163_0x3ff3(){const _0x20a90a=['12632eILKEX','3430cOhxUW','316978KIqcuV','258392mehYRZ','15nTUgyK','4705610lvLHRc','534828bPUxBH','572759YRafyU','5yEoQRA','7340674ZpjftI','9fWlxfQ','12sfMIrM'];a163_0x3ff3=function(){return _0x20a90a;};return a163_0x3ff3();}function a163_0x1e7e(_0x2c87b1,_0x1d0545){_0x2c87b1=_0x2c87b1-0x17c;const _0x3ff358=a163_0x3ff3();let _0x1e7e7e=_0x3ff358[_0x2c87b1];return _0x1e7e7e;}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
@@ -1 +1 @@
1
- function a163_0x63df(_0x4ce9ee,_0x21de21){_0x4ce9ee=_0x4ce9ee-0x1b3;var _0x29e581=a163_0x29e5();var _0x63dfd6=_0x29e581[_0x4ce9ee];return _0x63dfd6;}function a163_0x29e5(){var _0x34cd1f=['68236MUyQOQ','192rSpiWE','16035UbMmGQ','985760JdTmBG','6905295lFqDVz','13531rhbyLc','13453850dmMbqM','1956yWfQZo','601755ycXSXa','11TGcsyn'];a163_0x29e5=function(){return _0x34cd1f;};return a163_0x29e5();}(function(_0x4cfd7f,_0x3f7b50){var _0x1e4b38=a163_0x63df,_0xbe2b1b=_0x4cfd7f();while(!![]){try{var _0x47664b=-parseInt(_0x1e4b38(0x1b3))/0x1*(-parseInt(_0x1e4b38(0x1b4))/0x2)+-parseInt(_0x1e4b38(0x1bc))/0x3+parseInt(_0x1e4b38(0x1b5))/0x4*(parseInt(_0x1e4b38(0x1b6))/0x5)+parseInt(_0x1e4b38(0x1bb))/0x6*(parseInt(_0x1e4b38(0x1b9))/0x7)+parseInt(_0x1e4b38(0x1b7))/0x8+parseInt(_0x1e4b38(0x1b8))/0x9+-parseInt(_0x1e4b38(0x1ba))/0xa;if(_0x47664b===_0x3f7b50)break;else _0xbe2b1b['push'](_0xbe2b1b['shift']());}catch(_0x3e94e2){_0xbe2b1b['push'](_0xbe2b1b['shift']());}}}(a163_0x29e5,0x7b059));export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ function a164_0x1a1c(_0x519e45,_0x312492){_0x519e45=_0x519e45-0x6d;var _0x4f8ae1=a164_0x4f8a();var _0x1a1c7c=_0x4f8ae1[_0x519e45];return _0x1a1c7c;}(function(_0x1fd095,_0x1d2725){var _0x14aa97=a164_0x1a1c,_0x3fa953=_0x1fd095();while(!![]){try{var _0x529d57=parseInt(_0x14aa97(0x78))/0x1*(parseInt(_0x14aa97(0x71))/0x2)+parseInt(_0x14aa97(0x6d))/0x3+parseInt(_0x14aa97(0x77))/0x4*(parseInt(_0x14aa97(0x6e))/0x5)+parseInt(_0x14aa97(0x72))/0x6+parseInt(_0x14aa97(0x74))/0x7*(parseInt(_0x14aa97(0x76))/0x8)+-parseInt(_0x14aa97(0x6f))/0x9*(parseInt(_0x14aa97(0x73))/0xa)+-parseInt(_0x14aa97(0x75))/0xb*(parseInt(_0x14aa97(0x70))/0xc);if(_0x529d57===_0x1d2725)break;else _0x3fa953['push'](_0x3fa953['shift']());}catch(_0xcaced){_0x3fa953['push'](_0x3fa953['shift']());}}}(a164_0x4f8a,0xc6728));function a164_0x4f8a(){var _0x269053=['352FVHTSA','184PUEBbZ','8olWLDI','3svxvMJ','3437511NCJKij','229465MNEhoz','18ZSfibh','994716HoeJlu','928918gbyoXs','4031982uGwjgl','2143290sFAKkG','179893ofObPm'];a164_0x4f8a=function(){return _0x269053;};return a164_0x4f8a();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x4cd15d,_0x2bfb2b){const _0x302633=a164_0x9d50,_0x452733=_0x4cd15d();while(!![]){try{const _0x314e0f=-parseInt(_0x302633(0x1e3))/0x1*(parseInt(_0x302633(0x1ee))/0x2)+-parseInt(_0x302633(0x1e5))/0x3*(parseInt(_0x302633(0x1e4))/0x4)+-parseInt(_0x302633(0x1dc))/0x5*(parseInt(_0x302633(0x1ea))/0x6)+-parseInt(_0x302633(0x1d6))/0x7+-parseInt(_0x302633(0x1df))/0x8+-parseInt(_0x302633(0x1d4))/0x9*(parseInt(_0x302633(0x1d5))/0xa)+parseInt(_0x302633(0x1e8))/0xb*(parseInt(_0x302633(0x1d7))/0xc);if(_0x314e0f===_0x2bfb2b)break;else _0x452733['push'](_0x452733['shift']());}catch(_0x424b54){_0x452733['push'](_0x452733['shift']());}}}(a164_0x454f,0xb2515));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a164_0x454f(){const _0x19850b=['22RRqKZh','string','752550scQivk','length','alias','join','2830892PQfXWZ','.\x20Run\x20`','9nfOHGt','151330aQMbMB','3500735fhRQsV','28700004BPctqh','name','Available\x20aliases:\x20','map','validation','50bEHKDC','flags','type','3271080zRwUbX','some','code','Unknown\x20alias\x20\x22','1gFvbel','306084aUebKR','18NqFuiL','No\x20api.ts\x20found\x20in\x20','\x22.\x20'];a164_0x454f=function(){return _0x19850b;};return a164_0x454f();}import{CLI_BIN_NAME}from'../constant/cli.js';function a164_0x9d50(_0x39195c,_0x4d0ad1){_0x39195c=_0x39195c-0x1d3;const _0x454fa0=a164_0x454f();let _0x9d508b=_0x454fa0[_0x39195c];return _0x9d508b;}export function resolveAliasToCode(_0x2be879,_0x274d5f,_0x3e5665,_0x3ba186){const _0x472f0a=a164_0x9d50,_0xd574c3=_0x2be879['flags'][_0x472f0a(0x1e0)](_0x1f0459=>_0x1f0459['name']===_0x472f0a(0x1e1)&&_0x1f0459[_0x472f0a(0x1de)]==='string'),_0x2cf133=_0x2be879[_0x472f0a(0x1dd)]['some'](_0x31c989=>_0x31c989[_0x472f0a(0x1d8)]===_0x472f0a(0x1ec)&&_0x31c989['type']===_0x472f0a(0x1e9));if(!_0xd574c3||!_0x2cf133)return;const _0x28a312=_0x274d5f[_0x472f0a(0x1e1)]?String(_0x274d5f[_0x472f0a(0x1e1)]):'',_0x1018d5=_0x274d5f[_0x472f0a(0x1ec)]?String(_0x274d5f[_0x472f0a(0x1ec)]):'';if(!_0x28a312&&!_0x1018d5)throw CliErrors[_0x472f0a(0x1db)]('`'+_0x3ba186+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x1018d5&&!_0x28a312){const _0x302856=resolveAlias(_0x3e5665,_0x1018d5);if(!_0x302856){const _0x18584a=listAliases(_0x3e5665)[_0x472f0a(0x1da)](_0x4e93ba=>_0x4e93ba[_0x472f0a(0x1ec)]),_0x5aabd0=_0x18584a[_0x472f0a(0x1eb)]?_0x472f0a(0x1d9)+_0x18584a[_0x472f0a(0x1ed)](',\x20'):_0x472f0a(0x1e6)+_0x3e5665+_0x472f0a(0x1d3)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x472f0a(0x1db)](_0x472f0a(0x1e2)+_0x1018d5+_0x472f0a(0x1e7)+_0x5aabd0);}_0x274d5f[_0x472f0a(0x1e1)]=_0x302856;}}
1
+ (function(_0x26af79,_0x4159c2){const _0x1eeff0=a165_0x2cb8,_0x563a19=_0x26af79();while(!![]){try{const _0x2d5c2a=-parseInt(_0x1eeff0(0x1ac))/0x1+parseInt(_0x1eeff0(0x1be))/0x2+parseInt(_0x1eeff0(0x1b5))/0x3*(parseInt(_0x1eeff0(0x1b6))/0x4)+parseInt(_0x1eeff0(0x1a9))/0x5*(parseInt(_0x1eeff0(0x1b0))/0x6)+parseInt(_0x1eeff0(0x1bd))/0x7*(parseInt(_0x1eeff0(0x1bf))/0x8)+parseInt(_0x1eeff0(0x1ad))/0x9*(-parseInt(_0x1eeff0(0x1ab))/0xa)+-parseInt(_0x1eeff0(0x1af))/0xb;if(_0x2d5c2a===_0x4159c2)break;else _0x563a19['push'](_0x563a19['shift']());}catch(_0x2b193c){_0x563a19['push'](_0x563a19['shift']());}}}(a165_0x1aaf,0x2ed9c));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a165_0x2cb8(_0x1d7336,_0x21cf12){_0x1d7336=_0x1d7336-0x1a8;const _0x1aaf4c=a165_0x1aaf();let _0x2cb89c=_0x1aaf4c[_0x1d7336];return _0x2cb89c;}import{CLI_BIN_NAME}from'../constant/cli.js';function a165_0x1aaf(){const _0x2120c6=['1790TSYlkf','138206vPeUwO','1206ZqeBjT','Available\x20aliases:\x20','3387329JvyyZK','4086NAehJK','code','name','validation','No\x20api.ts\x20found\x20in\x20','3JVmcIM','668596aEayqd','alias','.\x20Run\x20`','\x20api\x20pull`\x20first.','type','some','length','2186373OpecpU','354190gAoJIQ','8DqxkgY','flags','string','40UBghgJ','`\x20requires\x20either\x20--code\x20or\x20--alias.'];a165_0x1aaf=function(){return _0x2120c6;};return a165_0x1aaf();}export function resolveAliasToCode(_0x3cbc9f,_0x1284e5,_0x2d622f,_0x15277d){const _0x49ffb5=a165_0x2cb8,_0x2d88d2=_0x3cbc9f[_0x49ffb5(0x1c0)]['some'](_0x2b5d4e=>_0x2b5d4e[_0x49ffb5(0x1b2)]===_0x49ffb5(0x1b1)&&_0x2b5d4e[_0x49ffb5(0x1ba)]===_0x49ffb5(0x1a8)),_0x3dc889=_0x3cbc9f[_0x49ffb5(0x1c0)][_0x49ffb5(0x1bb)](_0x436657=>_0x436657[_0x49ffb5(0x1b2)]===_0x49ffb5(0x1b7)&&_0x436657[_0x49ffb5(0x1ba)]===_0x49ffb5(0x1a8));if(!_0x2d88d2||!_0x3dc889)return;const _0x3de46e=_0x1284e5[_0x49ffb5(0x1b1)]?String(_0x1284e5[_0x49ffb5(0x1b1)]):'',_0x4d7b37=_0x1284e5[_0x49ffb5(0x1b7)]?String(_0x1284e5[_0x49ffb5(0x1b7)]):'';if(!_0x3de46e&&!_0x4d7b37)throw CliErrors[_0x49ffb5(0x1b3)]('`'+_0x15277d+_0x49ffb5(0x1aa));if(_0x4d7b37&&!_0x3de46e){const _0x1b317d=resolveAlias(_0x2d622f,_0x4d7b37);if(!_0x1b317d){const _0x142511=listAliases(_0x2d622f)['map'](_0x3bddb0=>_0x3bddb0[_0x49ffb5(0x1b7)]),_0x1dd96e=_0x142511[_0x49ffb5(0x1bc)]?_0x49ffb5(0x1ae)+_0x142511['join'](',\x20'):_0x49ffb5(0x1b4)+_0x2d622f+_0x49ffb5(0x1b8)+CLI_BIN_NAME+_0x49ffb5(0x1b9);throw CliErrors[_0x49ffb5(0x1b3)]('Unknown\x20alias\x20\x22'+_0x4d7b37+'\x22.\x20'+_0x1dd96e);}_0x1284e5[_0x49ffb5(0x1b1)]=_0x1b317d;}}
@@ -1 +1 @@
1
- const a165_0x2ccb18=a165_0x511a;(function(_0x5dc051,_0x4aa172){const _0x81081d=a165_0x511a,_0x4c396b=_0x5dc051();while(!![]){try{const _0x5af3f1=parseInt(_0x81081d(0x103))/0x1*(-parseInt(_0x81081d(0x11c))/0x2)+parseInt(_0x81081d(0xfe))/0x3+-parseInt(_0x81081d(0x11a))/0x4+parseInt(_0x81081d(0x100))/0x5+-parseInt(_0x81081d(0x101))/0x6*(-parseInt(_0x81081d(0x11b))/0x7)+parseInt(_0x81081d(0xfd))/0x8*(parseInt(_0x81081d(0x102))/0x9)+-parseInt(_0x81081d(0x114))/0xa;if(_0x5af3f1===_0x4aa172)break;else _0x4c396b['push'](_0x4c396b['shift']());}catch(_0x10c965){_0x4c396b['push'](_0x4c396b['shift']());}}}(a165_0x3bdf,0x609ea));function a165_0x3bdf(){const _0x463e9a=['870eGpQth','1038618taHmby','3862PVaVSR','has','requiresAppCode','appcode','pageSize','selectedAppName','name','configMissing','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','requiresAuth','cookie','validation','apps','isNonInteractive','defaultApp','riskLevel','defaultPageSize','10573390zUWnfA','resolveAppCode','resolveApiDomain','Set\x20appcode\x20via\x20`','explicitAppName','defaultVerbose','1405716XcDPQo','35273MftjRF','96dmXIFt','\x20\x20\x20Continue?\x20[y/N]\x20','High-risk\x20operation\x20`','authRequired','verbose','apiDir','cancelled','filter','command','8lKXvpz','2071338jVyHbR','service','2266975mrRaci'];a165_0x3bdf=function(){return _0x463e9a;};return a165_0x3bdf();}import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a165_0x3efa47}from'../utils/is-non-interactive.js';function a165_0x511a(_0x2ff370,_0x2b6890){_0x2ff370=_0x2ff370-0xf8;const _0x3bdfdc=a165_0x3bdf();let _0x511a5a=_0x3bdfdc[_0x2ff370];return _0x511a5a;}import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x5d8302,_0x594584,_0x3a897d=[]){const _0xad6266=a165_0x511a;return{'rawFlags':_0x594584,'args':_0x3a897d,'resolveAppCode':()=>_0x5d8302['appCode']||_0x594584[_0xad6266(0x106)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x5d8302[_0xad6266(0x10d)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a165_0x3efa47(_0x594584),'defaultFormat':_0x5d8302['format'],'defaultPageSize':_0x5d8302[_0xad6266(0x107)],'defaultVerbose':_0x5d8302[_0xad6266(0xf8)],'apiDir':_0x5d8302[_0xad6266(0xf9)],'riskLevel':_0x5d8302[_0xad6266(0x112)],'selectedAppName':_0x5d8302[_0xad6266(0x118)],'mergedCli':{'defaultApp':_0x5d8302[_0xad6266(0x111)],'currentApp':_0x5d8302['currentApp'],'appCode':_0x5d8302['appCode'],'apps':_0x5d8302[_0xad6266(0x10f)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a165_0x2ccb18(0xfb)](_0x532cee=>PIPELINE_FLAG_NAMES[a165_0x2ccb18(0x104)](_0x532cee[a165_0x2ccb18(0x109)]))['map'](({name:_0x278e4d,type:_0x2d5585,description:_0x49bed4})=>({'name':_0x278e4d,'type':_0x2d5585,'description':_0x49bed4})),'formatOutput':formatOutput,'getCommandLabel'(_0xad6e7a){const _0x2c09ee=a165_0x2ccb18;return CLI_BIN_NAME+'\x20'+_0xad6e7a[_0x2c09ee(0xff)]+'\x20'+_0xad6e7a[_0x2c09ee(0xfc)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x96159){const _0x18380d=a165_0x2ccb18;return CliErrors[_0x18380d(0x10e)](_0x96159);}},async 'prepare'(_0x4a9649,_0x274ce2,_0x3d19e0,_0x3f3d19){const _0x31c098=a165_0x2ccb18,_0xbeb4d0=_0x274ce2['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x4a9649,_0x3d19e0,_0xbeb4d0,_0x3f3d19);let _0x465937='';if(_0x4a9649[_0x31c098(0x10c)]!==![]){_0x465937=_0x274ce2['resolveCookie']();if(!_0x465937)throw CliErrors[_0x31c098(0x11f)]();const {setActiveCookie:_0x2044cb}=await import('../core/api-client.js');_0x2044cb(_0x465937);}const _0x2a8def=_0x274ce2[_0x31c098(0x115)]()??'';if(_0x4a9649[_0x31c098(0x105)]!==![]){if(!_0x2a8def)throw CliErrors[_0x31c098(0x10a)](_0x31c098(0x117)+CLI_BIN_NAME+_0x31c098(0x10b));}return{'defaults':{'booleans':{'verbose':_0x274ce2[_0x31c098(0x119)]},'numbers':{'pagesize':_0x274ce2[_0x31c098(0x113)]}},'extras':{'appCode':_0x2a8def,'cookie':_0x465937,'apiDomain':_0x274ce2[_0x31c098(0x116)](),'apiDir':_0xbeb4d0,'selectedAppName':_0x274ce2[_0x31c098(0x108)],'mergedCli':_0x274ce2['mergedCli']}};},async 'confirmHighRisk'({env:_0x2e8547,commandLabel:_0x1f7273}){const _0x3c07f0=a165_0x2ccb18;if(_0x2e8547[_0x3c07f0(0x110)])throw CliErrors[_0x3c07f0(0x10e)](_0x3c07f0(0x11e)+_0x1f7273+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x1f7273,_0x3c07f0(0x11d)],'createCancelledError':_0x335603=>CliErrors[_0x3c07f0(0xfa)](_0x335603)});},async 'finalize'(){const {clearActiveCookie:_0x44549a}=await import('../core/api-client.js');_0x44549a();}};export async function runCommand(_0x1afe36,_0x247d3c){await runCommandWithAdapter(_0x1afe36,_0x247d3c,runnerAdapter);}
1
+ function a166_0x2e03(_0x2aa753,_0x136d17){_0x2aa753=_0x2aa753-0x80;const _0x551012=a166_0x5510();let _0x2e03ac=_0x551012[_0x2aa753];return _0x2e03ac;}const a166_0x444270=a166_0x2e03;(function(_0x29e586,_0x308bd4){const _0x15f1f5=a166_0x2e03,_0x867591=_0x29e586();while(!![]){try{const _0x3cba5a=parseInt(_0x15f1f5(0x81))/0x1+parseInt(_0x15f1f5(0xa1))/0x2+-parseInt(_0x15f1f5(0x92))/0x3+-parseInt(_0x15f1f5(0x91))/0x4+parseInt(_0x15f1f5(0x83))/0x5*(parseInt(_0x15f1f5(0x9b))/0x6)+parseInt(_0x15f1f5(0xa0))/0x7+-parseInt(_0x15f1f5(0xa5))/0x8*(parseInt(_0x15f1f5(0x9d))/0x9);if(_0x3cba5a===_0x308bd4)break;else _0x867591['push'](_0x867591['shift']());}catch(_0x53b4fe){_0x867591['push'](_0x867591['shift']());}}}(a166_0x5510,0xc1faf));import{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 a166_0x5510(){const _0x52f338=['explicitAppName','service','defaultVerbose','defaultPageSize','command','defaultApp','1014236SDTGUP','2519640gfDfLd','mergedCli','resolveApiDomain','isNonInteractive','cancelled','resolveCookie','apps','authRequired','map','6PVPJpY','requiresAppCode','9Skbtka','../core/api-client.js','configMissing','7145845lpYXZF','506566BZdSyr','cookie','appcode','pageSize','17565776QOzikW','currentApp','High-risk\x20operation\x20`','1412711kgkgKA','validation','6984375SGgJLK','\x20\x20\x20Continue?\x20[y/N]\x20','appCode','requiresAuth','name','has','riskLevel','Set\x20appcode\x20via\x20`'];a166_0x5510=function(){return _0x52f338;};return a166_0x5510();}import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a166_0x32d1bc}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x11494e,_0x3a42d3,_0x50e32e=[]){const _0x3d7603=a166_0x2e03;return{'rawFlags':_0x3a42d3,'args':_0x50e32e,'resolveAppCode':()=>_0x11494e[_0x3d7603(0x85)]||_0x3a42d3[_0x3d7603(0xa3)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x11494e[_0x3d7603(0xa2)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a166_0x32d1bc(_0x3a42d3),'defaultFormat':_0x11494e['format'],'defaultPageSize':_0x11494e[_0x3d7603(0xa4)],'defaultVerbose':_0x11494e['verbose'],'apiDir':_0x11494e['apiDir'],'riskLevel':_0x11494e[_0x3d7603(0x89)],'selectedAppName':_0x11494e[_0x3d7603(0x8b)],'mergedCli':{'defaultApp':_0x11494e[_0x3d7603(0x90)],'currentApp':_0x11494e[_0x3d7603(0xa6)],'appCode':_0x11494e[_0x3d7603(0x85)],'apps':_0x11494e[_0x3d7603(0x98)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0xb7e76b=>PIPELINE_FLAG_NAMES[a166_0x444270(0x88)](_0xb7e76b[a166_0x444270(0x87)]))[a166_0x444270(0x9a)](({name:_0x178382,type:_0x5b2758,description:_0x480ffe})=>({'name':_0x178382,'type':_0x5b2758,'description':_0x480ffe})),'formatOutput':formatOutput,'getCommandLabel'(_0x56d734){const _0x1991e0=a166_0x444270;return CLI_BIN_NAME+'\x20'+_0x56d734[_0x1991e0(0x8c)]+'\x20'+_0x56d734[_0x1991e0(0x8f)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x1d117f){const _0x54d3a7=a166_0x444270;return CliErrors[_0x54d3a7(0x82)](_0x1d117f);}},async 'prepare'(_0x5253f1,_0x151dc4,_0x308527,_0x27650a){const _0x3188e5=a166_0x444270,_0x1ef07b=_0x151dc4['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x5253f1,_0x308527,_0x1ef07b,_0x27650a);let _0x2ff9ab='';if(_0x5253f1[_0x3188e5(0x86)]!==![]){_0x2ff9ab=_0x151dc4[_0x3188e5(0x97)]();if(!_0x2ff9ab)throw CliErrors[_0x3188e5(0x99)]();const {setActiveCookie:_0x541d27}=await import(_0x3188e5(0x9e));_0x541d27(_0x2ff9ab);}const _0x1355d8=_0x151dc4['resolveAppCode']()??'';if(_0x5253f1[_0x3188e5(0x9c)]!==![]){if(!_0x1355d8)throw CliErrors[_0x3188e5(0x9f)](_0x3188e5(0x8a)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}return{'defaults':{'booleans':{'verbose':_0x151dc4[_0x3188e5(0x8d)]},'numbers':{'pagesize':_0x151dc4[_0x3188e5(0x8e)]}},'extras':{'appCode':_0x1355d8,'cookie':_0x2ff9ab,'apiDomain':_0x151dc4[_0x3188e5(0x94)](),'apiDir':_0x1ef07b,'selectedAppName':_0x151dc4['selectedAppName'],'mergedCli':_0x151dc4[_0x3188e5(0x93)]}};},async 'confirmHighRisk'({env:_0x441d05,commandLabel:_0x128ebc}){const _0x107e4a=a166_0x444270;if(_0x441d05[_0x107e4a(0x95)])throw CliErrors[_0x107e4a(0x82)](_0x107e4a(0x80)+_0x128ebc+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x128ebc,_0x107e4a(0x84)],'createCancelledError':_0x6e99a6=>CliErrors[_0x107e4a(0x96)](_0x6e99a6)});},async 'finalize'(){const _0x84cce=a166_0x444270,{clearActiveCookie:_0x53824f}=await import(_0x84cce(0x9e));_0x53824f();}};export async function runCommand(_0x33f41d,_0x2e08cf){await runCommandWithAdapter(_0x33f41d,_0x2e08cf,runnerAdapter);}
@@ -1 +1 @@
1
- (function(_0x35284c,_0x1f45e1){const _0x579130=a166_0x48a9,_0x594c3c=_0x35284c();while(!![]){try{const _0x1fe8f7=-parseInt(_0x579130(0xea))/0x1*(-parseInt(_0x579130(0xee))/0x2)+-parseInt(_0x579130(0xef))/0x3+-parseInt(_0x579130(0xf2))/0x4+-parseInt(_0x579130(0xf1))/0x5+parseInt(_0x579130(0xf3))/0x6*(parseInt(_0x579130(0xf0))/0x7)+parseInt(_0x579130(0xeb))/0x8+parseInt(_0x579130(0xed))/0x9;if(_0x1fe8f7===_0x1f45e1)break;else _0x594c3c['push'](_0x594c3c['shift']());}catch(_0x3a67e6){_0x594c3c['push'](_0x594c3c['shift']());}}}(a166_0x336c,0xe5731));import{buildSchemaPayload as a166_0x4b09e1}from'@lovrabet/cli-framework';function a166_0x48a9(_0x26e5b3,_0x5f0e1e){_0x26e5b3=_0x26e5b3-0xea;const _0x336cc6=a166_0x336c();let _0x48a9d1=_0x336cc6[_0x26e5b3];return _0x48a9d1;}import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x1e8e28=a166_0x48a9,{serviceRegistry:_0x915fb1,findDefinition:_0x28442c}=await import(_0x1e8e28(0xec));return a166_0x4b09e1({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x915fb1,'buildAllFlags':buildAllFlags,'findDefinition':_0x28442c});}function a166_0x336c(){const _0x4f20b8=['1PIdHMJ','5105576DqzOrj','../commands/registry.js','14965281LAyDzr','3409064zlgtXM','2890698LYwfUH','63jDbatk','6492295zLyskx','3244812PrDaZQ','5010NgwRZi'];a166_0x336c=function(){return _0x4f20b8;};return a166_0x336c();}
1
+ (function(_0x36256b,_0x27046b){const _0x129590=a167_0x533f,_0x6e5091=_0x36256b();while(!![]){try{const _0x2e379d=-parseInt(_0x129590(0x115))/0x1+parseInt(_0x129590(0x10c))/0x2+-parseInt(_0x129590(0x10d))/0x3*(parseInt(_0x129590(0x10e))/0x4)+-parseInt(_0x129590(0x114))/0x5*(-parseInt(_0x129590(0x111))/0x6)+-parseInt(_0x129590(0x113))/0x7*(parseInt(_0x129590(0x116))/0x8)+parseInt(_0x129590(0x110))/0x9*(parseInt(_0x129590(0x10b))/0xa)+-parseInt(_0x129590(0x112))/0xb;if(_0x2e379d===_0x27046b)break;else _0x6e5091['push'](_0x6e5091['shift']());}catch(_0x312a93){_0x6e5091['push'](_0x6e5091['shift']());}}}(a167_0x53af,0xda799));import{buildSchemaPayload as a167_0x5c1443}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 a167_0x53af(){const _0x1c5ca0=['572zcBjYF','../commands/registry.js','197874nlIpDk','1098RbVfbU','2059101BKEaqk','2254dxGfjq','42115OIJDAH','264591UilMMf','16472rJGdYg','730JgbLkT','396056WzlqKV','28002kBIcpX'];a167_0x53af=function(){return _0x1c5ca0;};return a167_0x53af();}import{getCliVersion}from'../utils/version.js';function a167_0x533f(_0x55dba1,_0x182dcb){_0x55dba1=_0x55dba1-0x10b;const _0x53afc8=a167_0x53af();let _0x533f20=_0x53afc8[_0x55dba1];return _0x533f20;}export async function buildSchemaPayload(){const _0x4823da=a167_0x533f,{serviceRegistry:_0xbd8d82,findDefinition:_0x43cafe}=await import(_0x4823da(0x10f));return a167_0x5c1443({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0xbd8d82,'buildAllFlags':buildAllFlags,'findDefinition':_0x43cafe});}
@@ -1 +1 @@
1
- (function(_0xba72b,_0xddf95d){var _0x366ed4=a167_0x3ed1,_0x5b9700=_0xba72b();while(!![]){try{var _0xe6c5fb=parseInt(_0x366ed4(0x6f))/0x1+parseInt(_0x366ed4(0x6a))/0x2*(-parseInt(_0x366ed4(0x66))/0x3)+parseInt(_0x366ed4(0x67))/0x4*(parseInt(_0x366ed4(0x68))/0x5)+-parseInt(_0x366ed4(0x69))/0x6*(parseInt(_0x366ed4(0x6b))/0x7)+-parseInt(_0x366ed4(0x6d))/0x8+parseInt(_0x366ed4(0x6c))/0x9*(parseInt(_0x366ed4(0x70))/0xa)+parseInt(_0x366ed4(0x6e))/0xb;if(_0xe6c5fb===_0xddf95d)break;else _0x5b9700['push'](_0x5b9700['shift']());}catch(_0x32787b){_0x5b9700['push'](_0x5b9700['shift']());}}}(a167_0x4e99,0xd4393));function a167_0x3ed1(_0x187eea,_0x37b8d9){_0x187eea=_0x187eea-0x66;var _0x4e999f=a167_0x4e99();var _0x3ed1cf=_0x4e999f[_0x187eea];return _0x3ed1cf;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a167_0x4e99(){var _0x3b9c01=['76060GZEesG','19506bNryAO','4248516pUurdd','5hDiYNl','42plFkNZ','166Btzdtc','1091762DYAWBl','72tTTgRA','12059168GUVWRC','25331603XnoShy','582241sxhMAo'];a167_0x4e99=function(){return _0x3b9c01;};return a167_0x4e99();}
1
+ function a168_0x4dbf(_0x3b2b7d,_0x519d47){_0x3b2b7d=_0x3b2b7d-0x1d3;var _0x2ccc7c=a168_0x2ccc();var _0x4dbf1a=_0x2ccc7c[_0x3b2b7d];return _0x4dbf1a;}(function(_0x39fd10,_0x288f58){var _0x228701=a168_0x4dbf,_0x3808e0=_0x39fd10();while(!![]){try{var _0x569cf9=parseInt(_0x228701(0x1db))/0x1*(-parseInt(_0x228701(0x1d6))/0x2)+parseInt(_0x228701(0x1dc))/0x3*(parseInt(_0x228701(0x1d3))/0x4)+-parseInt(_0x228701(0x1d5))/0x5+parseInt(_0x228701(0x1da))/0x6*(-parseInt(_0x228701(0x1d9))/0x7)+parseInt(_0x228701(0x1d8))/0x8*(parseInt(_0x228701(0x1d4))/0x9)+parseInt(_0x228701(0x1dd))/0xa+parseInt(_0x228701(0x1d7))/0xb;if(_0x569cf9===_0x288f58)break;else _0x3808e0['push'](_0x3808e0['shift']());}catch(_0x2f5510){_0x3808e0['push'](_0x3808e0['shift']());}}}(a168_0x2ccc,0xe47fe));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a168_0x2ccc(){var _0x15b5d2=['4999137VsqTcf','1783064oEREcj','567nnQaFz','60132TRhWiX','764474LgDvLk','6BYEjVu','7135600GCHLGT','1546084XkPetV','72LqpScX','2237345yJZbZR','4XURLAb'];a168_0x2ccc=function(){return _0x15b5d2;};return a168_0x2ccc();}
@@ -1 +1 @@
1
- const a168_0x459f60=a168_0x22b3;(function(_0x1997c9,_0x1254c0){const _0x5e9794=a168_0x22b3,_0x214928=_0x1997c9();while(!![]){try{const _0xaebde9=parseInt(_0x5e9794(0x19d))/0x1*(parseInt(_0x5e9794(0x19a))/0x2)+-parseInt(_0x5e9794(0x1a0))/0x3*(parseInt(_0x5e9794(0x19b))/0x4)+-parseInt(_0x5e9794(0x195))/0x5*(parseInt(_0x5e9794(0x199))/0x6)+-parseInt(_0x5e9794(0x19e))/0x7+parseInt(_0x5e9794(0x19c))/0x8*(parseInt(_0x5e9794(0x1a1))/0x9)+parseInt(_0x5e9794(0x19f))/0xa+-parseInt(_0x5e9794(0x196))/0xb;if(_0xaebde9===_0x1254c0)break;else _0x214928['push'](_0x214928['shift']());}catch(_0x1ebd62){_0x214928['push'](_0x214928['shift']());}}}(a168_0x4e46,0x2a447));function a168_0x22b3(_0x3feead,_0x4a5e18){_0x3feead=_0x3feead-0x194;const _0x4e469c=a168_0x4e46();let _0x22b3ce=_0x4e469c[_0x3feead];return _0x22b3ce;}export const VERSION=a168_0x459f60(0x194);export const GIT_TAG='v2.1.10-beta.2';export const GIT_COMMIT=a168_0x459f60(0x198);export const BUILD_TIME=a168_0x459f60(0x197);function a168_0x4e46(){const _0x5b9ffc=['250194SIyjEF','3326570qbXGGd','182901qpMpGV','109584nUTGZF','2.1.10-beta.2','1152910UIHLXk','834757KLzbmJ','2026-05-13T05:38:46.302Z','d80d161','6sCizRl','2FmIlrL','20jCbqVE','224yapvQx','146588aQIJfM'];a168_0x4e46=function(){return _0x5b9ffc;};return a168_0x4e46();}
1
+ const a169_0x17c08d=a169_0x16cc;(function(_0x35ac18,_0x3bc9c5){const _0x27a687=a169_0x16cc,_0x2bbbb8=_0x35ac18();while(!![]){try{const _0x49c269=parseInt(_0x27a687(0x94))/0x1*(parseInt(_0x27a687(0x90))/0x2)+parseInt(_0x27a687(0x97))/0x3+parseInt(_0x27a687(0x9c))/0x4*(parseInt(_0x27a687(0x92))/0x5)+-parseInt(_0x27a687(0x91))/0x6+parseInt(_0x27a687(0x9d))/0x7*(-parseInt(_0x27a687(0x95))/0x8)+-parseInt(_0x27a687(0x8f))/0x9+-parseInt(_0x27a687(0x99))/0xa*(-parseInt(_0x27a687(0x9a))/0xb);if(_0x49c269===_0x3bc9c5)break;else _0x2bbbb8['push'](_0x2bbbb8['shift']());}catch(_0x50bcb3){_0x2bbbb8['push'](_0x2bbbb8['shift']());}}}(a169_0x7f86,0x1ac15));function a169_0x16cc(_0x490e5e,_0x6262a6){_0x490e5e=_0x490e5e-0x8f;const _0x7f860e=a169_0x7f86();let _0x16ccdc=_0x7f860e[_0x490e5e];return _0x16ccdc;}export const VERSION=a169_0x17c08d(0x98);export const GIT_TAG=a169_0x17c08d(0x9b);function a169_0x7f86(){const _0x3740cf=['2026-05-13T15:02:09.279Z','334473VdSWdJ','2.1.10-beta.4','10VRdlBi','3180221UJImau','v2.1.10-beta.4','1596twpuGz','344645OQCgJo','1208430STPfBH','8gviLmf','1273566smbmIU','55wEtEiv','56c47f3','25091JREoOv','8hPOldA'];a169_0x7f86=function(){return _0x3740cf;};return a169_0x7f86();}export const GIT_COMMIT=a169_0x17c08d(0x93);export const BUILD_TIME=a169_0x17c08d(0x96);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a169_0x1675(_0x44afbb,_0x48b4b5){_0x44afbb=_0x44afbb-0x153;var _0x33890f=a169_0x3389();var _0x1675ab=_0x33890f[_0x44afbb];return _0x1675ab;}(function(_0x8164e4,_0x20fe42){var _0x1898b9=a169_0x1675,_0x332e8e=_0x8164e4();while(!![]){try{var _0x451d26=parseInt(_0x1898b9(0x15a))/0x1*(parseInt(_0x1898b9(0x153))/0x2)+parseInt(_0x1898b9(0x159))/0x3*(parseInt(_0x1898b9(0x157))/0x4)+-parseInt(_0x1898b9(0x162))/0x5*(-parseInt(_0x1898b9(0x158))/0x6)+-parseInt(_0x1898b9(0x154))/0x7*(parseInt(_0x1898b9(0x15e))/0x8)+-parseInt(_0x1898b9(0x160))/0x9+parseInt(_0x1898b9(0x164))/0xa*(parseInt(_0x1898b9(0x163))/0xb)+parseInt(_0x1898b9(0x155))/0xc*(parseInt(_0x1898b9(0x165))/0xd);if(_0x451d26===_0x20fe42)break;else _0x332e8e['push'](_0x332e8e['shift']());}catch(_0x41a5cd){_0x332e8e['push'](_0x332e8e['shift']());}}}(a169_0x3389,0x18ebc));function a169_0x3389(){var _0x5bbe91=['\x20to\x20view\x20available\x20commands.','32xbeLmW','\x20--help','75627lMTxVg','\x20\x20Use\x20','408235qBJsVA','11iJjbRo','308250SDTbEf','13jVZeMw','4edavwa','282359jQuFhT','429708lutMoC','bold','344kOMWua','6hRfkpQ','720FohToN','51453gOfMQO','log','green'];a169_0x3389=function(){return _0x5bbe91;};return a169_0x3389();}import a169_0x5b2289 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x343dc7=a169_0x1675;console['log'](),console['log'](a169_0x5b2289['green']['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console[_0x343dc7(0x15b)](_0x343dc7(0x161)+a169_0x5b2289[_0x343dc7(0x15c)][_0x343dc7(0x156)](CLI_BIN_NAME+_0x343dc7(0x15f))+_0x343dc7(0x15d)),console[_0x343dc7(0x15b)]();}
1
+ (function(_0x1e5243,_0xcea539){var _0xd65e76=a170_0xa211,_0x14746f=_0x1e5243();while(!![]){try{var _0x50b077=parseInt(_0xd65e76(0xde))/0x1+-parseInt(_0xd65e76(0xdf))/0x2+parseInt(_0xd65e76(0xe3))/0x3+-parseInt(_0xd65e76(0xdb))/0x4*(parseInt(_0xd65e76(0xe1))/0x5)+parseInt(_0xd65e76(0xdc))/0x6*(parseInt(_0xd65e76(0xd9))/0x7)+-parseInt(_0xd65e76(0xe0))/0x8+parseInt(_0xd65e76(0xe5))/0x9*(parseInt(_0xd65e76(0xda))/0xa);if(_0x50b077===_0xcea539)break;else _0x14746f['push'](_0x14746f['shift']());}catch(_0xfd9097){_0x14746f['push'](_0x14746f['shift']());}}}(a170_0x18c2,0xa6fce));import a170_0x17eac2 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a170_0x18c2(){var _0x4be992=['520540LRhPkQ','2314132idXcoI','10226272EFizqu','1303615cGTYcq','\x20\x20Use\x20','1187412dLlWSS','log','306THieyZ','green','3723055FjOGTT','568190nwpvjF','4HXrCnW','6RKIqOi','\x20--help'];a170_0x18c2=function(){return _0x4be992;};return a170_0x18c2();}function a170_0xa211(_0x24d89d,_0x4d3da1){_0x24d89d=_0x24d89d-0xd9;var _0x18c248=a170_0x18c2();var _0xa211ab=_0x18c248[_0x24d89d];return _0xa211ab;}export function showHelp(){var _0xa1d7d4=a170_0xa211;console[_0xa1d7d4(0xe4)](),console[_0xa1d7d4(0xe4)](a170_0x17eac2[_0xa1d7d4(0xe6)]['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console[_0xa1d7d4(0xe4)](),console[_0xa1d7d4(0xe4)](_0xa1d7d4(0xe2)+a170_0x17eac2['green']['bold'](CLI_BIN_NAME+_0xa1d7d4(0xdd))+'\x20to\x20view\x20available\x20commands.'),console[_0xa1d7d4(0xe4)]();}
@@ -1 +1 @@
1
- (function(_0x27a337,_0x31ddb5){const _0x2366b1=a170_0x498a,_0x382884=_0x27a337();while(!![]){try{const _0x4fcfec=-parseInt(_0x2366b1(0xfa))/0x1*(-parseInt(_0x2366b1(0x107))/0x2)+-parseInt(_0x2366b1(0x104))/0x3+parseInt(_0x2366b1(0xfd))/0x4*(parseInt(_0x2366b1(0xf8))/0x5)+-parseInt(_0x2366b1(0xf7))/0x6*(parseInt(_0x2366b1(0x113))/0x7)+parseInt(_0x2366b1(0x10a))/0x8+parseInt(_0x2366b1(0x114))/0x9+parseInt(_0x2366b1(0x101))/0xa;if(_0x4fcfec===_0x31ddb5)break;else _0x382884['push'](_0x382884['shift']());}catch(_0x37901f){_0x382884['push'](_0x382884['shift']());}}}(a170_0x1175,0x33b51));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 a170_0x1175(){const _0x1c50c3=['cwd','enable-bff-save','dangerously-bff-save','18gYQOEY','5wzUHOu','toLowerCase','6762eGSnxH','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','error','924888RWtrPW','--help','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','slice','560270eQNmnh','\x0aAvailable\x20commands:','entries','768192OCmlji','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','startsWith','12zukLYS','Error:\x20Unsupported\x20command:\x20','includes','1859160LpAeod','log','length','add','from','Equivalent\x20command:\x20','argv','push','exit','426979HVoiag','815688sjKMTc'];a170_0x1175=function(){return _0x1c50c3;};return a170_0x1175();}function a170_0x498a(_0x1c7f65,_0x42fc1d){_0x1c7f65=_0x1c7f65-0xf4;const _0x11758a=a170_0x1175();let _0x498a9a=_0x11758a[_0x1c7f65];return _0x498a9a;}export function camelCaseFlagsToKebab(_0x585512){const _0x33b0bf=a170_0x498a,_0x37b39f=[];for(const [_0x156cd4,_0x5d4616]of Object[_0x33b0bf(0x103)](_0x585512)){if(_0x5d4616===!![]){const _0x4e4a39=_0x156cd4['replace'](/([A-Z])/g,'-$1')[_0x33b0bf(0xf9)]();_0x37b39f[_0x33b0bf(0x111)](_0x4e4a39);}}return _0x37b39f;}export function parseDynamicFlags(){const _0x32d212=a170_0x498a,_0x13ace7=[];for(let _0x332c4a=0x3;_0x332c4a<process[_0x32d212(0x110)][_0x32d212(0x10c)];_0x332c4a++){const _0x474721=process[_0x32d212(0x110)][_0x332c4a];if(_0x474721&&_0x474721[_0x32d212(0x106)]('--')){const _0x5dc6a7=_0x474721[_0x32d212(0x100)](0x2);_0x5dc6a7&&!_0x5dc6a7[_0x32d212(0x109)]('=')&&_0x13ace7[_0x32d212(0x111)](_0x5dc6a7);}}return _0x13ace7;}export function getAllProvidedFlags(_0x5a4a25){const _0x356ab7=a170_0x498a,_0x568138=camelCaseFlagsToKebab(_0x5a4a25),_0x5a0a84=parseDynamicFlags(),_0x282b1f=new Set([..._0x568138,..._0x5a0a84]);return Array[_0x356ab7(0x10e)](_0x282b1f);}export function normalizeLegacyBffSaveFlags(_0x85fee2){const _0x520595=a170_0x498a,_0x509273=new Set(_0x85fee2);return _0x509273['has'](_0x520595(0xf6))&&_0x509273[_0x520595(0x10d)](_0x520595(0xf5)),Array['from'](_0x509273);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x17faa0,_0x7a57a0,_0x1d72d0){const _0x568eae=a170_0x498a;logger['setLogPath'](process[_0x568eae(0xf4)]());if(_0x1d72d0?.['help']||_0x17faa0===_0x568eae(0xfe)){showHelp();return;}console['error'](_0x568eae(0x108)+(_0x17faa0||'(empty)')),console[_0x568eae(0x10b)](_0x568eae(0x102)),console[_0x568eae(0x10b)]('\x20\x20'+CLI_BIN_NAME+_0x568eae(0xff)),console[_0x568eae(0x10b)]('\x20\x20'+CLI_BIN_NAME+_0x568eae(0x105)),console[_0x568eae(0x10b)](''),console[_0x568eae(0x10b)](_0x568eae(0x10f)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x568eae(0xfc)]('skill','不支持的命令:\x20'+_0x17faa0),process[_0x568eae(0x112)](0x1);}function showHelp(){const _0x1118da=a170_0x498a;console[_0x1118da(0x10b)](_0x1118da(0xfb)+CLI_BIN_NAME+'\x20skill\x20--help\x0a\x20\x20'+CLI_BIN_NAME+'\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a');}
1
+ (function(_0x2f3443,_0x1a51c6){const _0x29a235=a171_0x4f8a,_0x131820=_0x2f3443();while(!![]){try{const _0x110661=-parseInt(_0x29a235(0xb1))/0x1*(-parseInt(_0x29a235(0x9a))/0x2)+-parseInt(_0x29a235(0x97))/0x3*(parseInt(_0x29a235(0xb4))/0x4)+-parseInt(_0x29a235(0xa3))/0x5+-parseInt(_0x29a235(0xa6))/0x6+parseInt(_0x29a235(0xa5))/0x7+parseInt(_0x29a235(0x9c))/0x8*(-parseInt(_0x29a235(0xa4))/0x9)+-parseInt(_0x29a235(0xab))/0xa*(-parseInt(_0x29a235(0xa1))/0xb);if(_0x110661===_0x1a51c6)break;else _0x131820['push'](_0x131820['shift']());}catch(_0x4cabc3){_0x131820['push'](_0x131820['shift']());}}}(a171_0x55fc,0x87325));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(_0x32879e){const _0x437556=a171_0x4f8a,_0x274a42=[];for(const [_0x54891b,_0x369d44]of Object[_0x437556(0xb0)](_0x32879e)){if(_0x369d44===!![]){const _0x164dbd=_0x54891b[_0x437556(0xae)](/([A-Z])/g,_0x437556(0xa7))[_0x437556(0xad)]();_0x274a42[_0x437556(0x98)](_0x164dbd);}}return _0x274a42;}export function parseDynamicFlags(){const _0x3d2ad3=a171_0x4f8a,_0x14a0a7=[];for(let _0x348dfd=0x3;_0x348dfd<process[_0x3d2ad3(0x95)]['length'];_0x348dfd++){const _0xff846e=process[_0x3d2ad3(0x95)][_0x348dfd];if(_0xff846e&&_0xff846e[_0x3d2ad3(0x96)]('--')){const _0x43d350=_0xff846e['slice'](0x2);_0x43d350&&!_0x43d350[_0x3d2ad3(0xb3)]('=')&&_0x14a0a7[_0x3d2ad3(0x98)](_0x43d350);}}return _0x14a0a7;}export function getAllProvidedFlags(_0x35512a){const _0x4dc6c3=a171_0x4f8a,_0x39d61d=camelCaseFlagsToKebab(_0x35512a),_0x565efa=parseDynamicFlags(),_0x7fc2b7=new Set([..._0x39d61d,..._0x565efa]);return Array[_0x4dc6c3(0xb2)](_0x7fc2b7);}export function normalizeLegacyBffSaveFlags(_0x369714){const _0x10ca3b=a171_0x4f8a,_0x2f15ee=new Set(_0x369714);return _0x2f15ee['has']('dangerously-bff-save')&&_0x2f15ee[_0x10ca3b(0xb6)]('enable-bff-save'),Array[_0x10ca3b(0xb2)](_0x2f15ee);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a171_0x4f8a(_0x4e9aa1,_0x47a87b){_0x4e9aa1=_0x4e9aa1-0x95;const _0x55fc65=a171_0x55fc();let _0x4f8a3e=_0x55fc65[_0x4e9aa1];return _0x4f8a3e;}export async function skillsCommand(_0xcbe3c4,_0x15eebe,_0x3292a6){const _0x5d19cf=a171_0x4f8a;logger[_0x5d19cf(0xa9)](process[_0x5d19cf(0xa2)]());if(_0x3292a6?.[_0x5d19cf(0x9e)]||_0xcbe3c4===_0x5d19cf(0xb5)){showHelp();return;}console[_0x5d19cf(0x9b)](_0x5d19cf(0x9f)+(_0xcbe3c4||_0x5d19cf(0xa8))),console[_0x5d19cf(0xac)](_0x5d19cf(0x9d)),console[_0x5d19cf(0xac)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation'),console[_0x5d19cf(0xac)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console['log'](''),console['log'](_0x5d19cf(0xaa)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x5d19cf(0x9b)]('skill','不支持的命令:\x20'+_0xcbe3c4),process[_0x5d19cf(0xa0)](0x1);}function showHelp(){const _0x179894=a171_0x4f8a;console[_0x179894(0xac)](_0x179894(0xaf)+CLI_BIN_NAME+_0x179894(0x99)+CLI_BIN_NAME+'\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a');}function a171_0x55fc(){const _0x39d857=['25275MHjCNo','push','\x20skill\x20--help\x0a\x20\x20','32586qyUhPA','error','32kfkmlA','\x0aAvailable\x20commands:','help','Error:\x20Unsupported\x20command:\x20','exit','11666776nckCYZ','cwd','3156185HGZaeh','850284bDSMEO','6386765lkaVwL','1847766XMqeqJ','-$1','(empty)','setLogPath','Equivalent\x20command:\x20','10bEZUsk','log','toLowerCase','replace','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','entries','17qZgtrU','from','includes','180YwWNWH','--help','add','argv','startsWith'];a171_0x55fc=function(){return _0x39d857;};return a171_0x55fc();}
@@ -1 +1 @@
1
- const a171_0x315370=a171_0x560d;(function(_0x128773,_0x519b0e){const _0x5c3bb9=a171_0x560d,_0x2e7ca9=_0x128773();while(!![]){try{const _0x122f75=-parseInt(_0x5c3bb9(0xde))/0x1+parseInt(_0x5c3bb9(0xf6))/0x2*(parseInt(_0x5c3bb9(0xe0))/0x3)+-parseInt(_0x5c3bb9(0xf5))/0x4*(parseInt(_0x5c3bb9(0xe6))/0x5)+-parseInt(_0x5c3bb9(0xe3))/0x6+-parseInt(_0x5c3bb9(0xf9))/0x7*(parseInt(_0x5c3bb9(0xed))/0x8)+parseInt(_0x5c3bb9(0xf0))/0x9+parseInt(_0x5c3bb9(0xe1))/0xa;if(_0x122f75===_0x519b0e)break;else _0x2e7ca9['push'](_0x2e7ca9['shift']());}catch(_0x2b1f4b){_0x2e7ca9['push'](_0x2e7ca9['shift']());}}}(a171_0x4f07,0xaf641));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a171_0x315370(0xf7);export const NPX_SKILLS_SUBCOMMAND_ADD=a171_0x315370(0xe9);export const NPX_SKILLS_FLAG_SKILL=a171_0x315370(0xf1);export const RABETBASE_SKILL_SOURCE=a171_0x315370(0xe2);function a171_0x4f07(){const _0x7317e2=['status','add','skill','toString','unknown','8KSxCpx','stderr','log','10698858musMRD','--skill','stdio','push','join','19964jncVus','262lZfCHA','skills','stdout','1433257wsLNiS','trim','exit\x20','1415409WDknxl','inherit','31068OABgEP','21025710IcFpxo','lovrabet/rabetbase','7897194EZzQPK','npx','yes','995qgIPIJ','pipe'];a171_0x4f07=function(){return _0x7317e2;};return a171_0x4f07();}export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export function buildNpxSkillsAddArgv(_0x37b60e){const _0x5c0b45=a171_0x315370,_0x51df81=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x37b60e&&_0x51df81[_0x5c0b45(0xf3)](NPX_SKILLS_FLAG_SKILL,_0x37b60e),_0x51df81;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()][a171_0x315370(0xf4)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a171_0x315370(0xe4),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x1ebf5e,_0x1315ff){const _0x439ddc=a171_0x315370;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x284e25=_0x1315ff?.[_0x439ddc(0xf2)]??'inherit',_0x3288d7=resolveNpmBin(_0x439ddc(0xe4)),_0x3575ce=buildNpxSkillsAddArgv(_0x1315ff?.[_0x439ddc(0xea)]),_0x26b5ee=[_0x439ddc(0xe4),..._0x3575ce][_0x439ddc(0xf4)]('\x20');console[_0x439ddc(0xef)]('*\x20'+_0x26b5ee);const _0x4fc0a0=spawnSync(_0x3288d7,_0x3575ce,{'cwd':_0x1ebf5e,'stdio':_0x284e25,'env':process.env,'shell':![]}),_0x407f82=_0x4fc0a0['status'];if(_0x407f82===0x0)return{'ok':!![],'status':0x0};let _0x54b5c1=_0x439ddc(0xdd)+(_0x407f82??_0x439ddc(0xec));if(_0x284e25===_0x439ddc(0xe7)){const _0x5e523c=_0x4fc0a0[_0x439ddc(0xee)]?_0x4fc0a0[_0x439ddc(0xee)]['toString']()['trim']():'',_0x3c5348=_0x4fc0a0[_0x439ddc(0xf8)]?_0x4fc0a0[_0x439ddc(0xf8)][_0x439ddc(0xeb)]()[_0x439ddc(0xfa)]():'';if(_0x5e523c)_0x54b5c1=_0x5e523c;else{if(_0x3c5348)_0x54b5c1=_0x3c5348;}}return{'ok':![],'status':_0x407f82??null,'error':_0x54b5c1};}export function runNpxSkillsRemove(_0x11845d,_0xa603ff,_0x298ac5=LEGACY_RABETBASE_SKILL_SOURCE){const _0x6bad79=a171_0x315370;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xe50b56=_0xa603ff?.['stdio']??_0x6bad79(0xdf),_0x3fbdec=resolveNpmBin(_0x6bad79(0xe4)),_0x1f6bc9=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x298ac5,NPX_SKILLS_FLAG_SKILL,_0xa603ff?.[_0x6bad79(0xea)]??DEFAULT_RABETBASE_SKILL_NAME,..._0xa603ff?.[_0x6bad79(0xe5)]?['-y']:[]],_0x21c66c=[_0x3fbdec,..._0x1f6bc9][_0x6bad79(0xf4)]('\x20');console[_0x6bad79(0xef)]('*\x20'+_0x21c66c);const _0xbc1cbe=spawnSync(_0x3fbdec,_0x1f6bc9,{'cwd':_0x11845d,'stdio':_0xe50b56,'env':process.env,'shell':![]}),_0x22a978=_0xbc1cbe[_0x6bad79(0xe8)];if(_0x22a978===0x0)return{'ok':!![],'status':0x0};let _0x2186dc='exit\x20'+(_0x22a978??_0x6bad79(0xec));if(_0xe50b56===_0x6bad79(0xe7)){const _0x8fbe8a=_0xbc1cbe['stderr']?_0xbc1cbe[_0x6bad79(0xee)][_0x6bad79(0xeb)]()[_0x6bad79(0xfa)]():'',_0x457bc9=_0xbc1cbe['stdout']?_0xbc1cbe[_0x6bad79(0xf8)][_0x6bad79(0xeb)]()[_0x6bad79(0xfa)]():'';if(_0x8fbe8a)_0x2186dc=_0x8fbe8a;else{if(_0x457bc9)_0x2186dc=_0x457bc9;}}return{'ok':![],'status':_0x22a978??null,'error':_0x2186dc};}function a171_0x560d(_0x5a0a00,_0xb965ba){_0x5a0a00=_0x5a0a00-0xdd;const _0x4f075d=a171_0x4f07();let _0x560dc9=_0x4f075d[_0x5a0a00];return _0x560dc9;}export function runNpxSkillsAddGlobal(_0x47ff86,_0x576387,_0x9db515){const _0x16ce30=a171_0x315370;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x529c53=_0x9db515?.[_0x16ce30(0xf2)]??_0x16ce30(0xdf),_0x5c1c58=resolveNpmBin(_0x16ce30(0xe4)),_0x41a8c4=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x576387,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x3e28b1=[_0x16ce30(0xe4),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x576387,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console[_0x16ce30(0xef)]('*\x20'+_0x3e28b1);const _0x12786f=spawnSync(_0x5c1c58,_0x41a8c4,{'cwd':_0x47ff86,'stdio':_0x529c53,'env':process.env,'shell':![]}),_0x4b70d9=_0x12786f[_0x16ce30(0xe8)];if(_0x4b70d9===0x0)return{'ok':!![],'status':0x0};let _0x45542b='exit\x20'+(_0x4b70d9??'unknown');if(_0x529c53==='pipe'){const _0x53a1ca=_0x12786f[_0x16ce30(0xee)]?_0x12786f[_0x16ce30(0xee)]['toString']()[_0x16ce30(0xfa)]():'',_0x4dc30e=_0x12786f[_0x16ce30(0xf8)]?_0x12786f[_0x16ce30(0xf8)][_0x16ce30(0xeb)]()[_0x16ce30(0xfa)]():'';if(_0x53a1ca)_0x45542b=_0x53a1ca;else{if(_0x4dc30e)_0x45542b=_0x4dc30e;}}return{'ok':![],'status':_0x4b70d9??null,'error':_0x45542b};}
1
+ const a172_0x7ba69a=a172_0x125c;(function(_0x59e57d,_0x1b3c57){const _0x215732=a172_0x125c,_0x509bf9=_0x59e57d();while(!![]){try{const _0x59a56a=parseInt(_0x215732(0x18f))/0x1*(-parseInt(_0x215732(0x180))/0x2)+-parseInt(_0x215732(0x189))/0x3*(-parseInt(_0x215732(0x182))/0x4)+-parseInt(_0x215732(0x183))/0x5+-parseInt(_0x215732(0x190))/0x6+-parseInt(_0x215732(0x17d))/0x7*(-parseInt(_0x215732(0x175))/0x8)+-parseInt(_0x215732(0x177))/0x9+parseInt(_0x215732(0x188))/0xa*(parseInt(_0x215732(0x173))/0xb);if(_0x59a56a===_0x1b3c57)break;else _0x509bf9['push'](_0x509bf9['shift']());}catch(_0xd3d64f){_0x509bf9['push'](_0x509bf9['shift']());}}}(a172_0xa054,0x3fb9b));import{spawnSync}from'node:child_process';function a172_0x125c(_0x55b08f,_0x54dd70){_0x55b08f=_0x55b08f-0x173;const _0xa0547c=a172_0xa054();let _0x125c7b=_0xa0547c[_0x55b08f];return _0x125c7b;}import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';function a172_0xa054(){const _0x5de136=['skill','pipe','exit\x20','stdio','93429MFtSud','trim','--skill','281272ZOFJkv','log','1228yCgRwQ','1148135WIsoFh','add','Lovrabet','lovrabet/rabetbase','stderr','5140310akasUR','1266ntqclm','status','unknown','toString','push','inherit','1uCvtYq','1204260oaxLUz','11ThvOUw','stdout','280nfYjKK','npx','2508642DtaGyg','join'];a172_0xa054=function(){return _0x5de136;};return a172_0xa054();}export const NPX_SKILLS_CLI='skills';export const NPX_SKILLS_SUBCOMMAND_ADD=a172_0x7ba69a(0x184);export const NPX_SKILLS_FLAG_SKILL=a172_0x7ba69a(0x17f);export const RABETBASE_SKILL_SOURCE=a172_0x7ba69a(0x186);export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME=a172_0x7ba69a(0x185);export function buildNpxSkillsAddArgv(_0xb70f51){const _0x440e05=a172_0x7ba69a,_0x1b0ef0=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0xb70f51&&_0x1b0ef0[_0x440e05(0x18d)](NPX_SKILLS_FLAG_SKILL,_0xb70f51),_0x1b0ef0;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a172_0x7ba69a(0x176),...buildNpxSkillsAddArgv()][a172_0x7ba69a(0x178)]('\x20');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]['join']('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x1fe3c2,_0x380e14){const _0x4d914b=a172_0x7ba69a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x38b56e=_0x380e14?.[_0x4d914b(0x17c)]??_0x4d914b(0x18e),_0x267a0d=resolveNpmBin(_0x4d914b(0x176)),_0x23a848=buildNpxSkillsAddArgv(_0x380e14?.[_0x4d914b(0x179)]),_0x3580a1=['npx',..._0x23a848]['join']('\x20');console[_0x4d914b(0x181)]('*\x20'+_0x3580a1);const _0x7c7e9e=spawnSync(_0x267a0d,_0x23a848,{'cwd':_0x1fe3c2,'stdio':_0x38b56e,'env':process.env,'shell':![]}),_0x4f0993=_0x7c7e9e['status'];if(_0x4f0993===0x0)return{'ok':!![],'status':0x0};let _0x125a3e='exit\x20'+(_0x4f0993??_0x4d914b(0x18b));if(_0x38b56e===_0x4d914b(0x17a)){const _0x1430ec=_0x7c7e9e[_0x4d914b(0x187)]?_0x7c7e9e['stderr']['toString']()[_0x4d914b(0x17e)]():'',_0x409eed=_0x7c7e9e['stdout']?_0x7c7e9e[_0x4d914b(0x174)][_0x4d914b(0x18c)]()[_0x4d914b(0x17e)]():'';if(_0x1430ec)_0x125a3e=_0x1430ec;else{if(_0x409eed)_0x125a3e=_0x409eed;}}return{'ok':![],'status':_0x4f0993??null,'error':_0x125a3e};}export function runNpxSkillsRemove(_0x35990f,_0x4f4792,_0x35c527=LEGACY_RABETBASE_SKILL_SOURCE){const _0x2e9e13=a172_0x7ba69a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x43cac1=_0x4f4792?.[_0x2e9e13(0x17c)]??_0x2e9e13(0x18e),_0x26a321=resolveNpmBin(_0x2e9e13(0x176)),_0x14879d=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x35c527,NPX_SKILLS_FLAG_SKILL,_0x4f4792?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x4f4792?.['yes']?['-y']:[]],_0x1e7dd1=[_0x26a321,..._0x14879d][_0x2e9e13(0x178)]('\x20');console['log']('*\x20'+_0x1e7dd1);const _0x16ba38=spawnSync(_0x26a321,_0x14879d,{'cwd':_0x35990f,'stdio':_0x43cac1,'env':process.env,'shell':![]}),_0x221be5=_0x16ba38[_0x2e9e13(0x18a)];if(_0x221be5===0x0)return{'ok':!![],'status':0x0};let _0x19a11f=_0x2e9e13(0x17b)+(_0x221be5??'unknown');if(_0x43cac1==='pipe'){const _0x5b3e5d=_0x16ba38[_0x2e9e13(0x187)]?_0x16ba38['stderr'][_0x2e9e13(0x18c)]()['trim']():'',_0x5aa297=_0x16ba38[_0x2e9e13(0x174)]?_0x16ba38[_0x2e9e13(0x174)][_0x2e9e13(0x18c)]()[_0x2e9e13(0x17e)]():'';if(_0x5b3e5d)_0x19a11f=_0x5b3e5d;else{if(_0x5aa297)_0x19a11f=_0x5aa297;}}return{'ok':![],'status':_0x221be5??null,'error':_0x19a11f};}export function runNpxSkillsAddGlobal(_0x56e571,_0x262130,_0x4f5cb6){const _0x23e672=a172_0x7ba69a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3401d5=_0x4f5cb6?.['stdio']??_0x23e672(0x18e),_0x520f20=resolveNpmBin(_0x23e672(0x176)),_0x2bf074=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x262130,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x502df3=[_0x23e672(0x176),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x262130,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x23e672(0x178)]('\x20');console[_0x23e672(0x181)]('*\x20'+_0x502df3);const _0x59e170=spawnSync(_0x520f20,_0x2bf074,{'cwd':_0x56e571,'stdio':_0x3401d5,'env':process.env,'shell':![]}),_0x29cdcf=_0x59e170['status'];if(_0x29cdcf===0x0)return{'ok':!![],'status':0x0};let _0x2d1984='exit\x20'+(_0x29cdcf??_0x23e672(0x18b));if(_0x3401d5===_0x23e672(0x17a)){const _0x2c7129=_0x59e170[_0x23e672(0x187)]?_0x59e170[_0x23e672(0x187)]['toString']()[_0x23e672(0x17e)]():'',_0x1e3f41=_0x59e170[_0x23e672(0x174)]?_0x59e170[_0x23e672(0x174)]['toString']()[_0x23e672(0x17e)]():'';if(_0x2c7129)_0x2d1984=_0x2c7129;else{if(_0x1e3f41)_0x2d1984=_0x1e3f41;}}return{'ok':![],'status':_0x29cdcf??null,'error':_0x2d1984};}
@@ -1 +1 @@
1
- function a172_0x4b8d(){const _0x8277e8=['test','some','durationMs','6DaACwH','5238952eCkYHx','service','entries','command','error','428995QwdcDr','4177071ANrvbF','2194936xwNwMn','6980498QAwFsI','653376MAeieZ','1seErDa','stringify','117NENXXe','[REDACTED]','message','rabetbase.command','28767530HWWSVZ'];a172_0x4b8d=function(){return _0x8277e8;};return a172_0x4b8d();}function a172_0x2a0d(_0x2acf71,_0x22a7c9){_0x2acf71=_0x2acf71-0x1d6;const _0x4b8d3e=a172_0x4b8d();let _0x2a0d6b=_0x4b8d3e[_0x2acf71];return _0x2a0d6b;}(function(_0xb0d370,_0x36d248){const _0x3fd5e0=a172_0x2a0d,_0x28e3f9=_0xb0d370();while(!![]){try{const _0x2c92fa=-parseInt(_0x3fd5e0(0x1e5))/0x1*(-parseInt(_0x3fd5e0(0x1e2))/0x2)+parseInt(_0x3fd5e0(0x1e1))/0x3+parseInt(_0x3fd5e0(0x1db))/0x4+parseInt(_0x3fd5e0(0x1e0))/0x5*(parseInt(_0x3fd5e0(0x1da))/0x6)+parseInt(_0x3fd5e0(0x1e3))/0x7+-parseInt(_0x3fd5e0(0x1e4))/0x8*(parseInt(_0x3fd5e0(0x1e7))/0x9)+-parseInt(_0x3fd5e0(0x1d6))/0xa;if(_0x2c92fa===_0x36d248)break;else _0x28e3f9['push'](_0x28e3f9['shift']());}catch(_0x25476a){_0x28e3f9['push'](_0x28e3f9['shift']());}}}(a172_0x4b8d,0xe67d7));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];function isSensitiveKey(_0x12a6d8){const _0x35e05b=a172_0x2a0d;return SENSITIVE_PATTERNS[_0x35e05b(0x1d8)](_0x3e2dce=>_0x3e2dce[_0x35e05b(0x1d7)](_0x12a6d8));}function sanitizeFlags(_0x3b5c06){const _0x36f6f5=a172_0x2a0d,_0x33a40c={};for(const [_0x174479,_0xa01ea]of Object[_0x36f6f5(0x1dd)](_0x3b5c06)){isSensitiveKey(_0x174479)?_0x33a40c[_0x174479]=_0xa01ea!=null&&_0xa01ea!==''?_0x36f6f5(0x1e8):_0xa01ea:_0x33a40c[_0x174479]=_0xa01ea;}return _0x33a40c;}export async function reportCommandTrace(_0xb7e8bd){const _0x19f02b=a172_0x2a0d;try{const _0x2b6c15=sanitizeFlags(_0xb7e8bd['flags']);await sendCliTraceLog({'spanName':_0x19f02b(0x1ea),'logData':{'command.cli_version':getCliVersion(),'command.service':_0xb7e8bd[_0x19f02b(0x1dc)],'command.name':_0xb7e8bd[_0x19f02b(0x1de)],'command.flags':JSON[_0x19f02b(0x1e6)](_0x2b6c15),..._0xb7e8bd[_0x19f02b(0x1d9)]!=null?{'command.duration_ms':_0xb7e8bd['durationMs']}:{},..._0xb7e8bd[_0x19f02b(0x1df)]?{'command.error':_0xb7e8bd[_0x19f02b(0x1df)]instanceof Error?_0xb7e8bd['error'][_0x19f02b(0x1e9)]:String(_0xb7e8bd[_0x19f02b(0x1df)])}:{}}});}catch{}}
1
+ (function(_0x36f805,_0x489e6b){const _0x4462a3=a173_0x4619,_0x287ae3=_0x36f805();while(!![]){try{const _0x1a768c=parseInt(_0x4462a3(0x162))/0x1*(-parseInt(_0x4462a3(0x15d))/0x2)+parseInt(_0x4462a3(0x155))/0x3+parseInt(_0x4462a3(0x15f))/0x4*(parseInt(_0x4462a3(0x164))/0x5)+-parseInt(_0x4462a3(0x158))/0x6+-parseInt(_0x4462a3(0x156))/0x7*(parseInt(_0x4462a3(0x15e))/0x8)+parseInt(_0x4462a3(0x154))/0x9+parseInt(_0x4462a3(0x160))/0xa*(parseInt(_0x4462a3(0x157))/0xb);if(_0x1a768c===_0x489e6b)break;else _0x287ae3['push'](_0x287ae3['shift']());}catch(_0x2724be){_0x287ae3['push'](_0x287ae3['shift']());}}}(a173_0x55fa,0x83f9a));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];function a173_0x4619(_0x3395c0,_0x52e1df){_0x3395c0=_0x3395c0-0x153;const _0x55fa91=a173_0x55fa();let _0x4619ea=_0x55fa91[_0x3395c0];return _0x4619ea;}function a173_0x55fa(){const _0xe61659=['error','7688331vGijEE','107211khgXrc','35pWctmv','9710327RGaAgx','4942308CuIqEX','some','durationMs','entries','rabetbase.command','2ydVyIW','1383944xHnfeJ','4izTddU','10HObVsb','message','272037gUYFyK','service','3642685ObVDWS'];a173_0x55fa=function(){return _0xe61659;};return a173_0x55fa();}function isSensitiveKey(_0x3c5e29){const _0x2a4b43=a173_0x4619;return SENSITIVE_PATTERNS[_0x2a4b43(0x159)](_0x49f2d2=>_0x49f2d2['test'](_0x3c5e29));}function sanitizeFlags(_0x586dd7){const _0x3b2b06=a173_0x4619,_0x149e33={};for(const [_0x47ae7d,_0x3aefb9]of Object[_0x3b2b06(0x15b)](_0x586dd7)){isSensitiveKey(_0x47ae7d)?_0x149e33[_0x47ae7d]=_0x3aefb9!=null&&_0x3aefb9!==''?'[REDACTED]':_0x3aefb9:_0x149e33[_0x47ae7d]=_0x3aefb9;}return _0x149e33;}export async function reportCommandTrace(_0x4aa14f){const _0x4e5c60=a173_0x4619;try{const _0x3b75ec=sanitizeFlags(_0x4aa14f['flags']);await sendCliTraceLog({'spanName':_0x4e5c60(0x15c),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x4aa14f[_0x4e5c60(0x163)],'command.name':_0x4aa14f['command'],'command.flags':JSON['stringify'](_0x3b75ec),..._0x4aa14f[_0x4e5c60(0x15a)]!=null?{'command.duration_ms':_0x4aa14f[_0x4e5c60(0x15a)]}:{},..._0x4aa14f['error']?{'command.error':_0x4aa14f[_0x4e5c60(0x153)]instanceof Error?_0x4aa14f[_0x4e5c60(0x153)][_0x4e5c60(0x161)]:String(_0x4aa14f[_0x4e5c60(0x153)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a173_0x3270(_0x368205,_0x1d2b5e){_0x368205=_0x368205-0x1d4;var _0x6a3b02=a173_0x6a3b();var _0x327097=_0x6a3b02[_0x368205];return _0x327097;}function a173_0x6a3b(){var _0x1048e1=['76948OeWAzd','4EjmAWK','1072PSlPhM','191628ZvMXvl','25lgzSWj','218678xmuqqh','17983VDObtV','904940UziAyQ','service','error','376566kRgKia','Failed\x20to\x20report\x20CLI\x20help\x20trace:','1146984fKiWrs'];a173_0x6a3b=function(){return _0x1048e1;};return a173_0x6a3b();}(function(_0x4549fc,_0x584cf9){var _0x6be298=a173_0x3270,_0x3e50ef=_0x4549fc();while(!![]){try{var _0x1234b4=-parseInt(_0x6be298(0x1d4))/0x1*(-parseInt(_0x6be298(0x1dd))/0x2)+-parseInt(_0x6be298(0x1db))/0x3+parseInt(_0x6be298(0x1dc))/0x4*(-parseInt(_0x6be298(0x1e0))/0x5)+parseInt(_0x6be298(0x1d9))/0x6+parseInt(_0x6be298(0x1d5))/0x7*(parseInt(_0x6be298(0x1de))/0x8)+-parseInt(_0x6be298(0x1df))/0x9+-parseInt(_0x6be298(0x1d6))/0xa;if(_0x1234b4===_0x584cf9)break;else _0x3e50ef['push'](_0x3e50ef['shift']());}catch(_0xa70045){_0x3e50ef['push'](_0x3e50ef['shift']());}}}(a173_0x6a3b,0x3e070));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x99c400,_0x32684b){var _0xdf4d1e=a173_0x3270;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x99c400,..._0x32684b?.['service']&&{'rabetbase.help.service':_0x32684b[_0xdf4d1e(0x1d7)]}}});}catch(_0x2acd87){console[_0xdf4d1e(0x1d8)](_0xdf4d1e(0x1da),_0x2acd87);}}
1
+ function a174_0x11e7(){var _0x19c251=['10FIdkRn','189374WGFeyZ','2890944cgShDx','48AZWEta','service','173464CulWfc','5bVPPxs','error','Failed\x20to\x20report\x20CLI\x20help\x20trace:','286328HosAKz','2393744RlqJtz','3ZyjbxR','2226818jBqiyo','cli.help','129308rSMtzD'];a174_0x11e7=function(){return _0x19c251;};return a174_0x11e7();}(function(_0x5ca518,_0xb3411a){var _0x316cc4=a174_0x23a8,_0xae61d9=_0x5ca518();while(!![]){try{var _0x30314a=parseInt(_0x316cc4(0x87))/0x1+-parseInt(_0x316cc4(0x89))/0x2*(parseInt(_0x316cc4(0x84))/0x3)+-parseInt(_0x316cc4(0x8d))/0x4*(-parseInt(_0x316cc4(0x8e))/0x5)+-parseInt(_0x316cc4(0x8b))/0x6*(-parseInt(_0x316cc4(0x82))/0x7)+parseInt(_0x316cc4(0x83))/0x8+-parseInt(_0x316cc4(0x8a))/0x9+parseInt(_0x316cc4(0x88))/0xa*(-parseInt(_0x316cc4(0x85))/0xb);if(_0x30314a===_0xb3411a)break;else _0xae61d9['push'](_0xae61d9['shift']());}catch(_0x1ac8f0){_0xae61d9['push'](_0xae61d9['shift']());}}}(a174_0x11e7,0x2c22f));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a174_0x23a8(_0x3598a3,_0x126508){_0x3598a3=_0x3598a3-0x80;var _0x11e753=a174_0x11e7();var _0x23a86e=_0x11e753[_0x3598a3];return _0x23a86e;}export async function reportCliHelpTrace(_0x13c985,_0x45ea05){var _0x203dcd=a174_0x23a8;try{await sendCliTraceLog({'spanName':_0x203dcd(0x86),'logData':{'rabetbase.help.kind':_0x13c985,..._0x45ea05?.[_0x203dcd(0x8c)]&&{'rabetbase.help.service':_0x45ea05[_0x203dcd(0x8c)]}}});}catch(_0x252c0c){console[_0x203dcd(0x80)](_0x203dcd(0x81),_0x252c0c);}}
@@ -1 +1 @@
1
- (function(_0x8cad96,_0x2069e5){const _0x32e2a7=a174_0xedc0,_0x3a99fb=_0x8cad96();while(!![]){try{const _0x53d0f0=parseInt(_0x32e2a7(0x85))/0x1*(parseInt(_0x32e2a7(0x90))/0x2)+-parseInt(_0x32e2a7(0x87))/0x3*(parseInt(_0x32e2a7(0x8d))/0x4)+-parseInt(_0x32e2a7(0x89))/0x5+parseInt(_0x32e2a7(0x8f))/0x6+parseInt(_0x32e2a7(0x8b))/0x7+-parseInt(_0x32e2a7(0x88))/0x8+-parseInt(_0x32e2a7(0x86))/0x9*(-parseInt(_0x32e2a7(0x91))/0xa);if(_0x53d0f0===_0x2069e5)break;else _0x3a99fb['push'](_0x3a99fb['shift']());}catch(_0x16c09a){_0x3a99fb['push'](_0x3a99fb['shift']());}}}(a174_0x2d6a,0x18804));import a174_0x41dfd0 from'node:os';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setTraceConfig,getOtelLoggerVersion}from'@lovrabet/otel-logger';function a174_0x2d6a(){const _0x28d799=['username','348ToGSGT','daily','417342ljExDY','354pKGckX','20aSSCqS','userInfo','rabetbase-cli','nickname','51EElBLq','1259478bQlSft','3714LlmRCs','398352iiiCQg','837375UmCtTY','production','468041sMAJFI'];a174_0x2d6a=function(){return _0x28d799;};return a174_0x2d6a();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a174_0xedc0(_0x5b5be8,_0x1f5e76){_0x5b5be8=_0x5b5be8-0x83;const _0x2d6a8c=a174_0x2d6a();let _0xedc0d1=_0x2d6a8c[_0x5b5be8];return _0xedc0d1;}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0xc370e8=a174_0xedc0,_0x1f83d6=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x4a29d6=_0x1f83d6?.['user'];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0xc370e8(0x8e):_0xc370e8(0x8a)),'username':_0x4a29d6?.[_0xc370e8(0x8c)]??a174_0x41dfd0[_0xc370e8(0x92)]()[_0xc370e8(0x8c)]??_0xc370e8(0x83),..._0x4a29d6&&{'nickname':_0x4a29d6[_0xc370e8(0x84)]}}),cliOtelTraceInitialized=!![];}return _0x1f83d6;}
1
+ (function(_0x33e979,_0x22f71b){const _0x5a8096=a175_0x1abc,_0x2fac41=_0x33e979();while(!![]){try{const _0x59472b=parseInt(_0x5a8096(0x8c))/0x1+-parseInt(_0x5a8096(0x84))/0x2*(-parseInt(_0x5a8096(0x89))/0x3)+parseInt(_0x5a8096(0x8a))/0x4*(parseInt(_0x5a8096(0x8f))/0x5)+-parseInt(_0x5a8096(0x83))/0x6+-parseInt(_0x5a8096(0x88))/0x7+parseInt(_0x5a8096(0x82))/0x8+-parseInt(_0x5a8096(0x8d))/0x9*(parseInt(_0x5a8096(0x86))/0xa);if(_0x59472b===_0x22f71b)break;else _0x2fac41['push'](_0x2fac41['shift']());}catch(_0x401928){_0x2fac41['push'](_0x2fac41['shift']());}}}(a175_0x58d0,0x87722));function a175_0x58d0(){const _0x593ad2=['userInfo','18247ZCilRw','5646123bjCXDm','nickname','10KVXCYO','8253848ASAfNl','2101524MGOMpM','28umGpON','rabetbase-cli','20PfadWE','production','5986750ifrbLs','236211YrQfmU','1725376BWWsZk'];a175_0x58d0=function(){return _0x593ad2;};return a175_0x58d0();}import a175_0x170747 from'node:os';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setTraceConfig,getOtelLoggerVersion}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';let cliOtelTraceInitialized=![];function a175_0x1abc(_0x182ded,_0x256e58){_0x182ded=_0x182ded-0x82;const _0x58d06f=a175_0x58d0();let _0x1abcb4=_0x58d06f[_0x182ded];return _0x1abcb4;}export async function ensureCliOtelTraceConfig(){const _0x9dba6d=a175_0x1abc,_0x41369b=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x423c5d=_0x41369b?.['user'];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':_0x9dba6d(0x87)),'username':_0x423c5d?.['username']??a175_0x170747[_0x9dba6d(0x8b)]()['username']??_0x9dba6d(0x85),..._0x423c5d&&{'nickname':_0x423c5d[_0x9dba6d(0x8e)]}}),cliOtelTraceInitialized=!![];}return _0x41369b;}
@@ -1 +1 @@
1
- (function(_0x529713,_0x1575d6){const _0x5c8f3f=a175_0x5e7c,_0x4326fe=_0x529713();while(!![]){try{const _0x50fe6b=-parseInt(_0x5c8f3f(0xda))/0x1*(-parseInt(_0x5c8f3f(0xe0))/0x2)+-parseInt(_0x5c8f3f(0xdd))/0x3*(-parseInt(_0x5c8f3f(0xdf))/0x4)+-parseInt(_0x5c8f3f(0xe2))/0x5+-parseInt(_0x5c8f3f(0xe3))/0x6*(parseInt(_0x5c8f3f(0xd9))/0x7)+parseInt(_0x5c8f3f(0xdb))/0x8*(parseInt(_0x5c8f3f(0xe1))/0x9)+-parseInt(_0x5c8f3f(0xd6))/0xa*(parseInt(_0x5c8f3f(0xe6))/0xb)+-parseInt(_0x5c8f3f(0xe4))/0xc*(-parseInt(_0x5c8f3f(0xd7))/0xd);if(_0x50fe6b===_0x1575d6)break;else _0x4326fe['push'](_0x4326fe['shift']());}catch(_0x229be4){_0x4326fe['push'](_0x4326fe['shift']());}}}(a175_0x41d1,0x3bd7e));function a175_0x5e7c(_0xa76b1a,_0x486b1d){_0xa76b1a=_0xa76b1a-0xd6;const _0x41d178=a175_0x41d1();let _0x5e7cd9=_0x41d178[_0xa76b1a];return _0x5e7cd9;}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 _0x1bd20a=a175_0x5e7c;process[_0x1bd20a(0xdc)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x52e4a0=()=>{const _0x32fa10=_0x1bd20a;void flushOtelNodeIfUsed()['then'](()=>process[_0x32fa10(0xd8)](0x0));};process[_0x1bd20a(0xdc)](_0x1bd20a(0xe5),_0x52e4a0),process[_0x1bd20a(0xdc)](_0x1bd20a(0xde),_0x52e4a0);}export async function exitWithOtelShutdown(_0x4bcf9d){const _0x2ec5b8=a175_0x5e7c;await flushOtelNodeIfUsed(),process[_0x2ec5b8(0xd8)](_0x4bcf9d);}function a175_0x41d1(){const _0x53eae5=['22989XKfWUp','SIGTERM','56GepcmF','68poQLXH','11691KEymVZ','2433335nFvCMv','282tiKmTD','328824etwCQM','SIGINT','572CvyIMn','60340XQeECG','325jMXSkB','exit','39249lHUNRb','13059hOjoXQ','448RFsUfE','once'];a175_0x41d1=function(){return _0x53eae5;};return a175_0x41d1();}
1
+ (function(_0x583794,_0x493262){const _0x2c7eec=a176_0x13c3,_0x3e4c00=_0x583794();while(!![]){try{const _0x5c98b4=-parseInt(_0x2c7eec(0x1b4))/0x1*(-parseInt(_0x2c7eec(0x1ad))/0x2)+parseInt(_0x2c7eec(0x1a9))/0x3+parseInt(_0x2c7eec(0x1af))/0x4*(parseInt(_0x2c7eec(0x1a8))/0x5)+parseInt(_0x2c7eec(0x1aa))/0x6+-parseInt(_0x2c7eec(0x1ab))/0x7*(parseInt(_0x2c7eec(0x1b2))/0x8)+-parseInt(_0x2c7eec(0x1ac))/0x9+-parseInt(_0x2c7eec(0x1b3))/0xa*(-parseInt(_0x2c7eec(0x1b0))/0xb);if(_0x5c98b4===_0x493262)break;else _0x3e4c00['push'](_0x3e4c00['shift']());}catch(_0x1b4535){_0x3e4c00['push'](_0x3e4c00['shift']());}}}(a176_0x5e17,0x4fc74));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a176_0x5e17(){const _0x545af8=['1008144MSKCcW','exit','4BVyBFE','80839KRASEH','once','2072wWVWEG','760NBPIcQ','1egOiXc','then','SIGINT','439555XWGlBg','448101cHzrZE','511122MQdmSu','14350mqAnFA','4746051PNBEFm'];a176_0x5e17=function(){return _0x545af8;};return a176_0x5e17();}function a176_0x13c3(_0x1bf3dd,_0x1d709){_0x1bf3dd=_0x1bf3dd-0x1a7;const _0x5e1735=a176_0x5e17();let _0x13c356=_0x5e1735[_0x1bf3dd];return _0x13c356;}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x34c3be=a176_0x13c3;process[_0x34c3be(0x1b1)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x171ebf=()=>{const _0x873d27=_0x34c3be;void flushOtelNodeIfUsed()[_0x873d27(0x1b5)](()=>process[_0x873d27(0x1ae)](0x0));};process[_0x34c3be(0x1b1)](_0x34c3be(0x1a7),_0x171ebf),process[_0x34c3be(0x1b1)]('SIGTERM',_0x171ebf);}export async function exitWithOtelShutdown(_0x2cf2ec){const _0xe306a9=a176_0x13c3;await flushOtelNodeIfUsed(),process[_0xe306a9(0x1ae)](_0x2cf2ec);}
@@ -1 +1 @@
1
- const a176_0x4b852c=a176_0x3984;(function(_0x11ea6e,_0x111a60){const _0x3b760b=a176_0x3984,_0x58e0c9=_0x11ea6e();while(!![]){try{const _0x574580=-parseInt(_0x3b760b(0xf9))/0x1*(parseInt(_0x3b760b(0xf1))/0x2)+parseInt(_0x3b760b(0xf8))/0x3+parseInt(_0x3b760b(0xf3))/0x4+-parseInt(_0x3b760b(0xf0))/0x5*(parseInt(_0x3b760b(0xfa))/0x6)+parseInt(_0x3b760b(0xf7))/0x7+parseInt(_0x3b760b(0xf6))/0x8+-parseInt(_0x3b760b(0xf4))/0x9*(-parseInt(_0x3b760b(0xf5))/0xa);if(_0x574580===_0x111a60)break;else _0x58e0c9['push'](_0x58e0c9['shift']());}catch(_0x3ee9a0){_0x58e0c9['push'](_0x58e0c9['shift']());}}}(a176_0x3918,0x3eeaa));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a176_0x3984(_0x371403,_0x464490){_0x371403=_0x371403-0xf0;const _0x391813=a176_0x3918();let _0x39841e=_0x391813[_0x371403];return _0x39841e;}function a176_0x3918(){const _0x290b9c=['1448852apvMOf','583011MiMnMg','10TYIBpV','953880VSimhE','1116024kFlnvT','771009fpatPc','2itMwYO','1246908ySnvjw','traceparent','traceName','manual','spanName','logData','5KTEBPf','497138qYOxbO','rabetbase-cli'];a176_0x3918=function(){return _0x290b9c;};return a176_0x3918();}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a176_0x4b852c(0xf2);export async function sendCliTraceLog(_0x1ca4f3){const _0x5e8dad=a176_0x4b852c;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x1ca4f3[_0x5e8dad(0xfc)]??DEFAULT_TRACE_NAME,'version':_0x1ca4f3['version']??getCliVersion(),'spanName':_0x1ca4f3[_0x5e8dad(0xfe)],'eventType':_0x5e8dad(0xfd),'logData':_0x1ca4f3[_0x5e8dad(0xff)],..._0x1ca4f3[_0x5e8dad(0xfb)]&&{'traceparent':_0x1ca4f3[_0x5e8dad(0xfb)]}});}
1
+ (function(_0x1e0df6,_0x1d0e66){const _0x209a5f=a177_0x5064,_0x4ce68c=_0x1e0df6();while(!![]){try{const _0x2e3ace=parseInt(_0x209a5f(0xcd))/0x1*(parseInt(_0x209a5f(0xc1))/0x2)+parseInt(_0x209a5f(0xc9))/0x3+parseInt(_0x209a5f(0xc7))/0x4*(-parseInt(_0x209a5f(0xc6))/0x5)+parseInt(_0x209a5f(0xc4))/0x6*(parseInt(_0x209a5f(0xcb))/0x7)+parseInt(_0x209a5f(0xbf))/0x8*(-parseInt(_0x209a5f(0xc3))/0x9)+parseInt(_0x209a5f(0xc0))/0xa+-parseInt(_0x209a5f(0xca))/0xb*(-parseInt(_0x209a5f(0xc2))/0xc);if(_0x2e3ace===_0x1d0e66)break;else _0x4ce68c['push'](_0x4ce68c['shift']());}catch(_0x237428){_0x4ce68c['push'](_0x4ce68c['shift']());}}}(a177_0x3259,0xa6606));function a177_0x5064(_0x56d8e0,_0x2a1d47){_0x56d8e0=_0x56d8e0-0xbf;const _0x325954=a177_0x3259();let _0x506481=_0x325954[_0x56d8e0];return _0x506481;}import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';function a177_0x3259(){const _0x49f6bb=['8641OtktWa','24UHZiXA','1326030oXXwnU','136DCUwIg','167964lQYzmJ','2855691UgRFrW','279534uXRaZK','traceName','65yBKEoU','320708EyQCBc','traceparent','451443yDBroF','1089JnUVCl','63GzPpTD','logData'];a177_0x3259=function(){return _0x49f6bb;};return a177_0x3259();}export async function sendCliTraceLog(_0x18c2a9){const _0x56a94b=a177_0x5064;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x18c2a9[_0x56a94b(0xc5)]??DEFAULT_TRACE_NAME,'version':_0x18c2a9['version']??getCliVersion(),'spanName':_0x18c2a9['spanName'],'eventType':'manual','logData':_0x18c2a9[_0x56a94b(0xcc)],..._0x18c2a9[_0x56a94b(0xc8)]&&{'traceparent':_0x18c2a9[_0x56a94b(0xc8)]}});}
@@ -1 +1 @@
1
- const a177_0x5820ca=a177_0x1226;(function(_0x42cc13,_0x66e4b6){const _0x28aa07=a177_0x1226,_0x103753=_0x42cc13();while(!![]){try{const _0x465dcc=-parseInt(_0x28aa07(0x13d))/0x1*(parseInt(_0x28aa07(0x144))/0x2)+parseInt(_0x28aa07(0x142))/0x3*(parseInt(_0x28aa07(0x145))/0x4)+-parseInt(_0x28aa07(0x148))/0x5*(-parseInt(_0x28aa07(0x13e))/0x6)+parseInt(_0x28aa07(0x13f))/0x7*(parseInt(_0x28aa07(0x149))/0x8)+-parseInt(_0x28aa07(0x140))/0x9*(-parseInt(_0x28aa07(0x147))/0xa)+-parseInt(_0x28aa07(0x146))/0xb*(parseInt(_0x28aa07(0x14a))/0xc)+parseInt(_0x28aa07(0x141))/0xd*(-parseInt(_0x28aa07(0x143))/0xe);if(_0x465dcc===_0x66e4b6)break;else _0x103753['push'](_0x103753['shift']());}catch(_0x532ebc){_0x103753['push'](_0x103753['shift']());}}}(a177_0x5112,0xdb9a2));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a177_0x1226(_0x21658a,_0x2a925f){_0x21658a=_0x21658a-0x13b;const _0x51121f=a177_0x5112();let _0x1226f3=_0x51121f[_0x21658a];return _0x1226f3;}function a177_0x5112(){const _0x83a22b=['2aLYvgP','8SZFwRW','121FMbXRC','40wmdTlN','8841760JiXIzv','64ddNaPj','459660RGTqhs','issue.log.collect','description','1149597UiRcXY','6sKVaAu','10451tbXSJf','3703941FecSIO','6581653COJDCK','84768JFUxth','28SfQtKn'];a177_0x5112=function(){return _0x83a22b;};return a177_0x5112();}export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a177_0x5820ca(0x13b);export async function sendPlatformIssueCollectLog(_0x33bf42){const _0x467ca9=a177_0x5820ca;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x33bf42['title'],'issue.description':_0x33bf42[_0x467ca9(0x13c)]}});}
1
+ const a178_0x25f50a=a178_0x38b0;function a178_0x38b0(_0x5b4723,_0x43e454){_0x5b4723=_0x5b4723-0xf1;const _0x188287=a178_0x1882();let _0x38b057=_0x188287[_0x5b4723];return _0x38b057;}(function(_0x599caf,_0x24b16f){const _0x4dafc1=a178_0x38b0,_0xf8a4c=_0x599caf();while(!![]){try{const _0x277b9c=-parseInt(_0x4dafc1(0xfd))/0x1*(-parseInt(_0x4dafc1(0xf6))/0x2)+parseInt(_0x4dafc1(0xf3))/0x3*(parseInt(_0x4dafc1(0xfc))/0x4)+parseInt(_0x4dafc1(0xff))/0x5*(parseInt(_0x4dafc1(0xf5))/0x6)+-parseInt(_0x4dafc1(0xf7))/0x7*(-parseInt(_0x4dafc1(0xf4))/0x8)+-parseInt(_0x4dafc1(0xf9))/0x9+parseInt(_0x4dafc1(0xfe))/0xa*(-parseInt(_0x4dafc1(0xf8))/0xb)+-parseInt(_0x4dafc1(0xfb))/0xc;if(_0x277b9c===_0x24b16f)break;else _0xf8a4c['push'](_0xf8a4c['shift']());}catch(_0x1fe620){_0xf8a4c['push'](_0xf8a4c['shift']());}}}(a178_0x1882,0x5fadc));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a178_0x25f50a(0xf2);export const PLATFORM_ISSUE_SPAN_NAME=a178_0x25f50a(0xf1);export async function sendPlatformIssueCollectLog(_0x171c32){const _0x1e9182=a178_0x25f50a;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x171c32['title'],'issue.description':_0x171c32[_0x1e9182(0xfa)]}});}function a178_0x1882(){const _0x21c2ab=['issue.log.collect','platform-issue-log-collect','3huocBF','3184312MmbSKr','6GSdHph','142498nQnfmt','7iUeQUs','44bgAqpM','3375342yeqlca','description','7798608yjUicn','1989636LjDQsc','9PVMwTV','1644960nvLlgW','2690585tjZRjU'];a178_0x1882=function(){return _0x21c2ab;};return a178_0x1882();}