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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) 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/delete.js +1 -1
  52. package/lib/commands/dataset/detail.js +1 -1
  53. package/lib/commands/dataset/field-update.js +1 -1
  54. package/lib/commands/dataset/index.js +1 -1
  55. package/lib/commands/dataset/link-create.js +1 -1
  56. package/lib/commands/dataset/link-delete.js +1 -1
  57. package/lib/commands/dataset/link-shared.js +1 -1
  58. package/lib/commands/dataset/link-update.js +1 -1
  59. package/lib/commands/dataset/links.js +1 -1
  60. package/lib/commands/dataset/list.js +1 -1
  61. package/lib/commands/dataset/operations.js +1 -1
  62. package/lib/commands/db/analyze-cancel.js +1 -1
  63. package/lib/commands/db/analyze-start.js +1 -1
  64. package/lib/commands/db/analyze-status.js +1 -1
  65. package/lib/commands/db/create.js +1 -1
  66. package/lib/commands/db/delete.js +1 -1
  67. package/lib/commands/db/detail.js +1 -1
  68. package/lib/commands/db/diff.js +1 -1
  69. package/lib/commands/db/index.js +1 -1
  70. package/lib/commands/db/list.js +1 -1
  71. package/lib/commands/db/shared.js +1 -1
  72. package/lib/commands/db/tables.js +1 -1
  73. package/lib/commands/db/test.js +1 -1
  74. package/lib/commands/db/update.js +1 -1
  75. package/lib/commands/doctor.js +1 -1
  76. package/lib/commands/init/index.js +1 -1
  77. package/lib/commands/issue/index.js +1 -1
  78. package/lib/commands/issue/report.js +1 -1
  79. package/lib/commands/logs/index.js +1 -1
  80. package/lib/commands/menu/index.js +1 -1
  81. package/lib/commands/menu/shared/compare-table.js +1 -1
  82. package/lib/commands/menu/shared/index.js +1 -1
  83. package/lib/commands/menu/shared/inquirer.js +1 -1
  84. package/lib/commands/menu/shared/local-pages.js +1 -1
  85. package/lib/commands/menu/shared/logic.js +1 -1
  86. package/lib/commands/menu/shared/service.js +1 -1
  87. package/lib/commands/menu/shared/sync-core.js +1 -1
  88. package/lib/commands/menu/shared/update-core.js +1 -1
  89. package/lib/commands/menu/shared/valid-url.js +1 -1
  90. package/lib/commands/menu/sync.js +1 -1
  91. package/lib/commands/menu/update.js +1 -1
  92. package/lib/commands/page/generate-start.js +1 -1
  93. package/lib/commands/page/generate-status.js +1 -1
  94. package/lib/commands/page/index.js +1 -1
  95. package/lib/commands/page/pull.js +1 -1
  96. package/lib/commands/page/push.js +1 -1
  97. package/lib/commands/page/shared.js +1 -1
  98. package/lib/commands/page/standard-page-status.js +1 -1
  99. package/lib/commands/page/sync.js +1 -1
  100. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  101. package/lib/commands/project/create/format-elapsed.js +1 -1
  102. package/lib/commands/project/create/main.js +1 -1
  103. package/lib/commands/project/create/non-interactive.js +1 -1
  104. package/lib/commands/project/create/project-template-path.js +1 -1
  105. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  106. package/lib/commands/project/create/use-format-code.js +1 -1
  107. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  108. package/lib/commands/project/index.js +1 -1
  109. package/lib/commands/project/init.js +1 -1
  110. package/lib/commands/project/upgrade.js +1 -1
  111. package/lib/commands/registry.js +1 -1
  112. package/lib/commands/run/index.js +1 -1
  113. package/lib/commands/schema.js +1 -1
  114. package/lib/commands/skill/index.js +1 -1
  115. package/lib/commands/sql/create.js +1 -1
  116. package/lib/commands/sql/delete.js +1 -1
  117. package/lib/commands/sql/detail.js +1 -1
  118. package/lib/commands/sql/exec.js +1 -1
  119. package/lib/commands/sql/index.js +1 -1
  120. package/lib/commands/sql/list.js +1 -1
  121. package/lib/commands/sql/pull.js +1 -1
  122. package/lib/commands/sql/push.js +1 -1
  123. package/lib/commands/sql/save.js +1 -1
  124. package/lib/commands/sql/shared.js +1 -1
  125. package/lib/commands/sql/status.js +1 -1
  126. package/lib/commands/sql/validate.js +1 -1
  127. package/lib/config/schema.js +1 -1
  128. package/lib/constant/cdn.js +1 -1
  129. package/lib/constant/cli.js +1 -1
  130. package/lib/constant/defaults.js +1 -1
  131. package/lib/constant/domain.js +1 -1
  132. package/lib/constant/env.js +1 -1
  133. package/lib/constant/output.js +1 -1
  134. package/lib/constant/paths.js +1 -1
  135. package/lib/constant/risk.js +1 -1
  136. package/lib/context.js +1 -1
  137. package/lib/core/alias-resolver.js +1 -1
  138. package/lib/core/api-client.js +1 -1
  139. package/lib/core/bff/config.js +1 -1
  140. package/lib/core/bff/file-system.js +1 -1
  141. package/lib/core/bff/hash.js +1 -1
  142. package/lib/core/bff/lock.js +1 -1
  143. package/lib/core/bff/utils.js +1 -1
  144. package/lib/core/db-resolver.js +1 -1
  145. package/lib/core/page/file-system.js +1 -1
  146. package/lib/core/page/hash.js +1 -1
  147. package/lib/core/page/lock.js +1 -1
  148. package/lib/core/sql-sync/config.js +1 -1
  149. package/lib/core/sql-sync/file-system.js +1 -1
  150. package/lib/core/sql-sync/hash.js +1 -1
  151. package/lib/core/sql-sync/lock.js +1 -1
  152. package/lib/core/sql-sync/utils.js +1 -1
  153. package/lib/core/sql-validator.js +1 -1
  154. package/lib/errors.js +1 -1
  155. package/lib/framework/build-all-flags.js +1 -1
  156. package/lib/framework/flags.js +1 -1
  157. package/lib/framework/help.js +1 -1
  158. package/lib/framework/index.js +1 -1
  159. package/lib/framework/output.js +1 -1
  160. package/lib/framework/response.js +1 -1
  161. package/lib/framework/runner-alias.js +1 -1
  162. package/lib/framework/runner.js +1 -1
  163. package/lib/framework/schema-export.js +1 -1
  164. package/lib/framework/types.js +1 -1
  165. package/lib/generated/build-info.js +1 -1
  166. package/lib/help.js +1 -1
  167. package/lib/skills/main.js +1 -1
  168. package/lib/skills/npx-skills-add.js +1 -1
  169. package/lib/telemetry/cli-command-trace.js +1 -1
  170. package/lib/telemetry/cli-help-trace.js +1 -1
  171. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  172. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  173. package/lib/telemetry/send-cli-trace-log.js +1 -1
  174. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  175. package/lib/utils/ai_config.js +1 -1
  176. package/lib/utils/apply-jq-filter.js +1 -1
  177. package/lib/utils/cdn-config.js +1 -1
  178. package/lib/utils/check-sdk-version.js +1 -1
  179. package/lib/utils/cli-version-check.js +1 -1
  180. package/lib/utils/cli-version-policy.js +1 -1
  181. package/lib/utils/config.js +1 -1
  182. package/lib/utils/copy-directory.js +1 -1
  183. package/lib/utils/entity-with-id.js +1 -1
  184. package/lib/utils/file-utils.js +1 -1
  185. package/lib/utils/guides-cdn.js +1 -1
  186. package/lib/utils/http-client.js +1 -1
  187. package/lib/utils/is-non-interactive.js +1 -1
  188. package/lib/utils/logger.js +1 -1
  189. package/lib/utils/params.js +1 -1
  190. package/lib/utils/platform.js +1 -1
  191. package/lib/utils/rules-cdn.js +1 -1
  192. package/lib/utils/sleep.js +1 -1
  193. package/lib/utils/template-replacer.js +1 -1
  194. package/lib/utils/version.js +1 -1
  195. package/lib/utils/with-active-cookie.js +1 -1
  196. package/lib/utils/write-cli-side-channel.js +1 -1
  197. package/package.json +2 -1
@@ -1 +1 @@
1
- (function(_0x58d592,_0x392103){const _0x32312a=a152_0x48a8,_0x3a65f3=_0x58d592();while(!![]){try{const _0x4349f3=-parseInt(_0x32312a(0x179))/0x1*(parseInt(_0x32312a(0x17f))/0x2)+parseInt(_0x32312a(0x17c))/0x3*(-parseInt(_0x32312a(0x17e))/0x4)+parseInt(_0x32312a(0x17a))/0x5*(-parseInt(_0x32312a(0x176))/0x6)+parseInt(_0x32312a(0x17b))/0x7*(-parseInt(_0x32312a(0x177))/0x8)+-parseInt(_0x32312a(0x178))/0x9*(parseInt(_0x32312a(0x174))/0xa)+-parseInt(_0x32312a(0x181))/0xb+parseInt(_0x32312a(0x184))/0xc*(parseInt(_0x32312a(0x182))/0xd);if(_0x4349f3===_0x392103)break;else _0x3a65f3['push'](_0x3a65f3['shift']());}catch(_0x247bde){_0x3a65f3['push'](_0x3a65f3['shift']());}}}(a152_0x51bf,0xa74d8));function a152_0x51bf(){const _0x42fa8b=['530414mVHeAU','digest','6971778FUpFKD','3900wPCkAG','md5','215844htWcgF','500YWkTwA','hex','174fnODRB','5315552kcOPOk','212931wLsOyH','2porWTb','198305ZZfTva','7NPynSU','1857LCyFyF','createHash','3548DIecTo'];a152_0x51bf=function(){return _0x42fa8b;};return a152_0x51bf();}import{readFile}from'node:fs/promises';import a152_0x3e41d1 from'node:crypto';function a152_0x48a8(_0x59ff7c,_0x17a07f){_0x59ff7c=_0x59ff7c-0x174;const _0x51bf6b=a152_0x51bf();let _0x48a886=_0x51bf6b[_0x59ff7c];return _0x48a886;}export function computeSqlContentHash(_0x4b7373){const _0x4ba70b=a152_0x48a8;return a152_0x3e41d1[_0x4ba70b(0x17d)](_0x4ba70b(0x183))['update'](_0x4b7373)[_0x4ba70b(0x180)](_0x4ba70b(0x175));}export async function computeSqlFileHash(_0x159252){const _0xce596b=await readFile(_0x159252,'utf8');return computeSqlContentHash(_0xce596b);}
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 +1 @@
1
- (function(_0x3711f1,_0x2e7aa4){const _0x13757f=a153_0x5b70,_0x4d3756=_0x3711f1();while(!![]){try{const _0x13b463=parseInt(_0x13757f(0x128))/0x1+parseInt(_0x13757f(0x127))/0x2*(parseInt(_0x13757f(0x121))/0x3)+parseInt(_0x13757f(0x131))/0x4+parseInt(_0x13757f(0x12b))/0x5+-parseInt(_0x13757f(0x12c))/0x6+-parseInt(_0x13757f(0x124))/0x7*(-parseInt(_0x13757f(0x125))/0x8)+parseInt(_0x13757f(0x12a))/0x9*(-parseInt(_0x13757f(0x123))/0xa);if(_0x13b463===_0x2e7aa4)break;else _0x4d3756['push'](_0x4d3756['shift']());}catch(_0x298954){_0x4d3756['push'](_0x4d3756['shift']());}}}(a153_0xe6ad,0xad56e));function a153_0xe6ad(){const _0x591520=[':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','5431940GdrsaX','apps','sqls','code','1080651JubumO','lastSync','2530fHRNlB','2738232EMKfJG','24PTdcgM','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','6bHObTp','494351awcAgO','parse','144405cEyLUq','6908120WQPyTq','4312536yjgDwl','ENOENT','utf8','sqlRoot'];a153_0xe6ad=function(){return _0x591520;};return a153_0xe6ad();}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x3e3946,_0x42e1bc,_0x4762d6,_0x94bd5b){const _0x28a57c=a153_0x5b70,_0x20ebdd=_0x3e3946??createEmptySqlLock();let _0x243c4d=_0x20ebdd[_0x28a57c(0x132)][_0x42e1bc];if(!_0x243c4d)return _0x243c4d={'sqlRoot':_0x4762d6,'lastSync':'','sqls':{}},_0x20ebdd[_0x28a57c(0x132)][_0x42e1bc]=_0x243c4d,{'lockData':_0x20ebdd,'appLock':_0x243c4d};if(!_0x243c4d[_0x28a57c(0x12f)])_0x243c4d['sqlRoot']=_0x4762d6;else{if(_0x243c4d['sqlRoot']!==_0x4762d6)throw new Error(_0x94bd5b+_0x28a57c(0x130)+_0x4762d6+'\x22\x20vs\x20lock\x20\x22'+_0x243c4d[_0x28a57c(0x12f)]+'\x22.\x20'+_0x28a57c(0x126));}return!_0x243c4d[_0x28a57c(0x133)]&&(_0x243c4d['sqls']={}),!_0x243c4d[_0x28a57c(0x122)]&&(_0x243c4d[_0x28a57c(0x122)]=''),{'lockData':_0x20ebdd,'appLock':_0x243c4d};}export async function readSqlLockFile(_0x3cbc20){const _0x1737d9=a153_0x5b70;try{const _0x3192bd=await readFile(_0x3cbc20,_0x1737d9(0x12e));return JSON[_0x1737d9(0x129)](_0x3192bd);}catch(_0x34e511){if(_0x34e511[_0x1737d9(0x134)]===_0x1737d9(0x12d))return null;throw new Error('Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'+String(_0x34e511));}}function a153_0x5b70(_0x40d7b0,_0x2a1057){_0x40d7b0=_0x40d7b0-0x121;const _0xe6adac=a153_0xe6ad();let _0x5b7057=_0xe6adac[_0x40d7b0];return _0x5b7057;}export async function writeSqlLockFile(_0x79f9a6,_0xb9cc7d){const _0x51beef=a153_0x5b70;await mkdir(dirname(_0x79f9a6),{'recursive':!![]}),await writeFile(_0x79f9a6,JSON['stringify'](_0xb9cc7d,null,0x2),_0x51beef(0x12e));}
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 +1 @@
1
- function a155_0x7dcd(_0x5191ed,_0xb0c197){_0x5191ed=_0x5191ed-0x1ec;const _0x5af550=a155_0x5af5();let _0x7dcdbf=_0x5af550[_0x5191ed];return _0x7dcdbf;}function a155_0x5af5(){const _0xcf9bd8=['3130237dEuaDh','db-','8qNHWps','136oRjuet','.sql','20069mttvrV','mybatisXml','299710ZBVIoL','658142mqZmgm','unknown-sql','2476284glvMyc','18LXuraJ','1174570AmPxhA','test','replace','110624ArDTXv','3FedneM'];a155_0x5af5=function(){return _0xcf9bd8;};return a155_0x5af5();}(function(_0x3b51c5,_0x5798c9){const _0x586d48=a155_0x7dcd,_0x5b089b=_0x3b51c5();while(!![]){try{const _0x22865a=parseInt(_0x586d48(0x1f5))/0x1+-parseInt(_0x586d48(0x1ee))/0x2*(-parseInt(_0x586d48(0x1f6))/0x3)+-parseInt(_0x586d48(0x1f9))/0x4*(-parseInt(_0x586d48(0x1ed))/0x5)+-parseInt(_0x586d48(0x1f0))/0x6+parseInt(_0x586d48(0x1fc))/0x7*(parseInt(_0x586d48(0x1fa))/0x8)+parseInt(_0x586d48(0x1f1))/0x9*(-parseInt(_0x586d48(0x1f2))/0xa)+parseInt(_0x586d48(0x1f7))/0xb;if(_0x22865a===_0x5798c9)break;else _0x5b089b['push'](_0x5b089b['shift']());}catch(_0x3d200d){_0x5b089b['push'](_0x5b089b['shift']());}}}(a155_0x5af5,0x3be09));export function detectSqlMode(_0x5947c4){const _0x5d9b9c=a155_0x7dcd,_0x175d71=_0x5947c4['trimStart']();if(/^<(select|insert|update|delete)\b/i[_0x5d9b9c(0x1f3)](_0x175d71))return'mybatisXml';return'sql';}export function getSqlFileExtension(_0x178fa7){const _0x25d434=a155_0x7dcd;return _0x178fa7===_0x25d434(0x1ec)?'.xml':_0x25d434(0x1fb);}export function buildDefaultSqlFileName(_0x585de5,_0x1db0f6){return''+_0x585de5+getSqlFileExtension(_0x1db0f6);}export function sanitizeSqlPathSegment(_0x374e83,_0x3ecb5f){const _0x8c07ee=a155_0x7dcd,_0x1b4367=String(_0x374e83??'')['trim'](),_0x9441fa=_0x1b4367['replace'](/[<>:"/\\|?*\u0000-\u001F]/g,'-')['replace'](/\s+/g,'-')[_0x8c07ee(0x1f4)](/-+/g,'-')[_0x8c07ee(0x1f4)](/^\.+/,'')['replace'](/\.+$/,'')['replace'](/^-+/,'')['replace'](/-+$/,'');return _0x9441fa||_0x3ecb5f;}export function buildDbDirectoryName(_0x25814c,_0x46235c){const _0x4a952e=a155_0x7dcd;return sanitizeSqlPathSegment(_0x25814c,_0x46235c!=null?_0x4a952e(0x1f8)+_0x46235c:'unknown-db');}export function buildSqlRelativePath(_0x5c6290,_0x4c2439,_0x17a6ae,_0x3d6c37,_0x447ad1){const _0x4837a8=a155_0x7dcd,_0xc6e69c=buildDbDirectoryName(_0x17a6ae,_0x447ad1),_0x568868=sanitizeSqlPathSegment(_0x5c6290,_0x4837a8(0x1ef)),_0x4ea7b3=sanitizeSqlPathSegment(_0x4c2439,_0x568868);return _0xc6e69c+'/'+_0x568868+'_'+_0x4ea7b3+getSqlFileExtension(_0x3d6c37);}
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 +1 @@
1
- function a156_0x1bc5(){const _0x44d3ee=['16gxEjan','from','154GwnpNB','SELECT','UNKNOWN','350obvpZf','92zWADNm','join','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','isDangerous','type','WITH','toUpperCase','reason','10392310HJzZoM','test','push','55302WOugjY','unknown\x20table(s)','SQL\x20content\x20is\x20empty','add','split','match','trim','1438360zqJvrv','length','startsWith','matchAll','38190JYAiGy','DELETE','DDL','7794fawnuI','4089213CulXzR','15679279MzPADx','replace','UPDATE','includes','INSERT','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT'];a156_0x1bc5=function(){return _0x44d3ee;};return a156_0x1bc5();}(function(_0x2b1643,_0x38f8a0){const _0x6348b6=a156_0x5b44,_0x31d379=_0x2b1643();while(!![]){try{const _0x32ffbb=-parseInt(_0x6348b6(0x1db))/0x1*(-parseInt(_0x6348b6(0x1e6))/0x2)+-parseInt(_0x6348b6(0x1f5))/0x3*(parseInt(_0x6348b6(0x1ea))/0x4)+parseInt(_0x6348b6(0x1e9))/0x5*(-parseInt(_0x6348b6(0x1d8))/0x6)+-parseInt(_0x6348b6(0x1d4))/0x7+-parseInt(_0x6348b6(0x1e4))/0x8*(-parseInt(_0x6348b6(0x1dc))/0x9)+-parseInt(_0x6348b6(0x1f2))/0xa+parseInt(_0x6348b6(0x1dd))/0xb;if(_0x32ffbb===_0x38f8a0)break;else _0x31d379['push'](_0x31d379['shift']());}catch(_0x13adda){_0x31d379['push'](_0x31d379['shift']());}}}(a156_0x1bc5,0xc831e));export function detectSqlType(_0x51c2ad){const _0x3f5e4e=a156_0x5b44;if(!_0x51c2ad?.[_0x3f5e4e(0x1d3)]())return{'type':_0x3f5e4e(0x1e8),'isSelectOnly':![],'isDangerous':![],'reason':_0x3f5e4e(0x1cf)};const _0x7fdbe2=_0x51c2ad['replace'](/#\{[^}]*\}/g,'?')[_0x3f5e4e(0x1de)](/\$\{[^}]*\}/g,'?')[_0x3f5e4e(0x1de)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x3f5e4e(0x1de)](/\/\*[\s\S]*?\*\//g,'')[_0x3f5e4e(0x1d3)](),_0x1ec0de=_0x7fdbe2[_0x3f5e4e(0x1d1)]('\x0a');let _0x47c85e='';for(const _0x2141d8 of _0x1ec0de){const _0xb4b742=_0x2141d8[_0x3f5e4e(0x1d3)]();if(!_0xb4b742||_0xb4b742[_0x3f5e4e(0x1d6)]('--')||_0xb4b742[_0x3f5e4e(0x1d6)]('/*'))continue;_0x47c85e=_0xb4b742;break;}const _0x112269=_0x47c85e[_0x3f5e4e(0x1f0)]();if(_0x112269[_0x3f5e4e(0x1d6)]('SELECT')||_0x112269['startsWith'](_0x3f5e4e(0x1ef))){const _0x50f9db=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x3f5e4e(0x1f3)](_0x7fdbe2);return{'type':_0x3f5e4e(0x1e7),'isSelectOnly':!_0x50f9db,'isDangerous':_0x50f9db,'reason':_0x50f9db?_0x3f5e4e(0x1e3):undefined};}if(_0x112269['startsWith'](_0x3f5e4e(0x1e1)))return{'type':'INSERT','isSelectOnly':![],'isDangerous':![]};if(_0x112269[_0x3f5e4e(0x1d6)](_0x3f5e4e(0x1df)))return{'type':_0x3f5e4e(0x1df),'isSelectOnly':![],'isDangerous':![]};if(_0x112269[_0x3f5e4e(0x1d6)]('DELETE'))return{'type':_0x3f5e4e(0x1d9),'isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x112269))return{'type':_0x3f5e4e(0x1da),'isSelectOnly':![],'isDangerous':!![],'reason':_0x3f5e4e(0x1ec)};return{'type':_0x3f5e4e(0x1e8),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x13beca){const _0x603787=a156_0x5b44,_0x58e3a0=_0x13beca[_0x603787(0x1de)](/#\{[^}]*\}/g,'?')[_0x603787(0x1de)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0x603787(0x1de)](/--.*$/gm,'')[_0x603787(0x1de)](/\/\*[\s\S]*?\*\//g,''),_0x29f16a=[],_0x415129=_0x58e3a0['match'](/FROM\s+([^\s,)(]+)/i);if(_0x415129?.[0x1])_0x29f16a['push'](_0x415129[0x1][_0x603787(0x1de)](/[`"]/g,''));for(const _0x29f12b of _0x58e3a0[_0x603787(0x1d7)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x3b0042=_0x29f12b[0x1]?.[_0x603787(0x1de)](/[`"]/g,'');if(_0x3b0042&&!_0x29f16a[_0x603787(0x1e0)](_0x3b0042))_0x29f16a['push'](_0x3b0042);}const _0x38f69e=_0x58e3a0[_0x603787(0x1d2)](/INTO\s+([^\s(]+)/i);if(_0x38f69e?.[0x1]){const _0x17e6a1=_0x38f69e[0x1][_0x603787(0x1de)](/[`"]/g,'');if(!_0x29f16a[_0x603787(0x1e0)](_0x17e6a1))_0x29f16a[_0x603787(0x1f4)](_0x17e6a1);}const _0x15bf3a=_0x58e3a0['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x15bf3a?.[0x1]){const _0x1a26f2=_0x15bf3a[0x1][_0x603787(0x1de)](/[`"]/g,'');if(!_0x29f16a[_0x603787(0x1e0)](_0x1a26f2))_0x29f16a[_0x603787(0x1f4)](_0x1a26f2);}return _0x29f16a;}function extractParameters(_0xe46ef5){const _0x533cd1=a156_0x5b44,_0x470d47=new Set();for(const _0x107e61 of _0xe46ef5[_0x533cd1(0x1d7)](/#\{(\w+)\}/g))if(_0x107e61[0x1])_0x470d47[_0x533cd1(0x1d0)](_0x107e61[0x1]);for(const _0x3c1ddd of _0xe46ef5['matchAll'](/\$\{(\w+)\}/g))if(_0x3c1ddd[0x1])_0x470d47[_0x533cd1(0x1d0)](_0x3c1ddd[0x1]);return Array[_0x533cd1(0x1e5)](_0x470d47);}function a156_0x5b44(_0x178773,_0x34316a){_0x178773=_0x178773-0x1ce;const _0x1bc581=a156_0x1bc5();let _0x5b4487=_0x1bc581[_0x178773];return _0x5b4487;}export function validateSql(_0x2cab7d){const _0x3ae4bd=a156_0x5b44,_0x49b65e=detectSqlType(_0x2cab7d),_0x420fed=extractTables(_0x2cab7d),_0x2507f6=extractParameters(_0x2cab7d);if(_0x49b65e[_0x3ae4bd(0x1ed)])return{'valid':![],'sqlType':_0x49b65e,'tables':_0x420fed,'parameters':_0x2507f6,'message':_0x49b65e[_0x3ae4bd(0x1f1)]||_0x49b65e[_0x3ae4bd(0x1ee)]+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x49b65e[_0x3ae4bd(0x1ee)]===_0x3ae4bd(0x1e8))return{'valid':![],'sqlType':_0x49b65e,'tables':_0x420fed,'parameters':_0x2507f6,'message':_0x3ae4bd(0x1e2)};return{'valid':!![],'sqlType':_0x49b65e,'tables':_0x420fed,'parameters':_0x2507f6,'message':_0x49b65e['type']+'\x20query\x20targeting\x20'+(_0x420fed[_0x3ae4bd(0x1d5)]?_0x420fed[_0x3ae4bd(0x1eb)](',\x20'):_0x3ae4bd(0x1ce))+(_0x2507f6[_0x3ae4bd(0x1d5)]?'\x20with\x20parameters:\x20'+_0x2507f6[_0x3ae4bd(0x1eb)](',\x20'):'')};}
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'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- function a157_0x34e6(_0x131be3,_0x2c7c8b){_0x131be3=_0x131be3-0x180;const _0x326c96=a157_0x326c();let _0x34e642=_0x326c96[_0x131be3];return _0x34e642;}const a157_0xc6cce2=a157_0x34e6;(function(_0x55c54c,_0x1c21aa){const _0x56490d=a157_0x34e6,_0x143ce9=_0x55c54c();while(!![]){try{const _0xc6eb80=parseInt(_0x56490d(0x18d))/0x1+parseInt(_0x56490d(0x18c))/0x2*(-parseInt(_0x56490d(0x186))/0x3)+-parseInt(_0x56490d(0x190))/0x4+parseInt(_0x56490d(0x18e))/0x5*(parseInt(_0x56490d(0x187))/0x6)+-parseInt(_0x56490d(0x188))/0x7*(parseInt(_0x56490d(0x184))/0x8)+parseInt(_0x56490d(0x18a))/0x9+parseInt(_0x56490d(0x182))/0xa*(-parseInt(_0x56490d(0x191))/0xb);if(_0xc6eb80===_0x1c21aa)break;else _0x143ce9['push'](_0x143ce9['shift']());}catch(_0x5178d2){_0x143ce9['push'](_0x143ce9['shift']());}}}(a157_0x326c,0x80688));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a157_0x326c(){const _0x25f38a=['\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','8rpfuMZ','\x20auth`\x20to\x20login\x20first.','3CsvRkV','5575332hhZlOB','6433637SMmWIZ','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','3668580LiSfPL','\x0a\x20\x20\x20\x20\x20\x20\x20','626294XqRFol','838583kyXWPE','5rBoUmx','Set\x20appcode\x20via\x20`','208072aEcCJh','1859XeRXmF','join','Run\x20`','21610abtrGM'];a157_0x326c=function(){return _0x25f38a;};return a157_0x326c();}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a157_0xc6cce2(0x181)+CLI_BIN_NAME+a157_0xc6cce2(0x185),'configMissingHint':[a157_0xc6cce2(0x18f)+CLI_BIN_NAME+a157_0xc6cce2(0x183),'Tip:\x20`'+CLI_BIN_NAME+a157_0xc6cce2(0x189)][a157_0xc6cce2(0x180)](a157_0xc6cce2(0x18b)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
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 +1 @@
1
- function a158_0x31ba(){var _0xfa9a97=['88855uSwnJp','48ZpwADe','8pfQJGT','4551379wWywcJ','234YVmNiN','88017auAuUS','1840366llUbIR','80VTdpvj','3273030LCNMFw','50094RqXFbI','403784RBdktV'];a158_0x31ba=function(){return _0xfa9a97;};return a158_0x31ba();}(function(_0x31246f,_0x51e3d7){var _0xeb6f81=a158_0x20f2,_0x298559=_0x31246f();while(!![]){try{var _0x72cc9c=-parseInt(_0xeb6f81(0x1c1))/0x1+-parseInt(_0xeb6f81(0x1c2))/0x2+-parseInt(_0xeb6f81(0x1bd))/0x3*(-parseInt(_0xeb6f81(0x1c4))/0x4)+parseInt(_0xeb6f81(0x1c3))/0x5*(-parseInt(_0xeb6f81(0x1bc))/0x6)+-parseInt(_0xeb6f81(0x1bb))/0x7+-parseInt(_0xeb6f81(0x1ba))/0x8*(-parseInt(_0xeb6f81(0x1c0))/0x9)+parseInt(_0xeb6f81(0x1bf))/0xa*(parseInt(_0xeb6f81(0x1be))/0xb);if(_0x72cc9c===_0x51e3d7)break;else _0x298559['push'](_0x298559['shift']());}catch(_0x3814a7){_0x298559['push'](_0x298559['shift']());}}}(a158_0x31ba,0x700b6));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a158_0x20f2(_0x2378ea,_0x5d8001){_0x2378ea=_0x2378ea-0x1ba;var _0x31ba88=a158_0x31ba();var _0x20f2d8=_0x31ba88[_0x2378ea];return _0x20f2d8;}import{buildAllFlags as a158_0x53e551}from'@lovrabet/cli-framework';export function buildAllFlags(_0x56c01e){return a158_0x53e551(_0x56c01e,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
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 +1 @@
1
- function a159_0x5bc0(){const _0x321fb7=['4636324gCsalv','4607472BbuYRZ','validateFlags','6pyidVP','55QfbHsH','15335xXQgfC','6129660uxEchF','432079JIgBIU','36fpdGLi','1529943oFFOme','236GuWOMu','2XHBblo','357520MBvePI'];a159_0x5bc0=function(){return _0x321fb7;};return a159_0x5bc0();}const a159_0x5a212b=a159_0x2a60;function a159_0x2a60(_0x463b8b,_0x59a17c){_0x463b8b=_0x463b8b-0x11b;const _0x5bc009=a159_0x5bc0();let _0x2a60ab=_0x5bc009[_0x463b8b];return _0x2a60ab;}(function(_0x1cf8eb,_0x26734c){const _0x52d8d7=a159_0x2a60,_0x591a13=_0x1cf8eb();while(!![]){try{const _0x4e4d85=-parseInt(_0x52d8d7(0x11e))/0x1*(parseInt(_0x52d8d7(0x122))/0x2)+-parseInt(_0x52d8d7(0x120))/0x3+parseInt(_0x52d8d7(0x121))/0x4*(-parseInt(_0x52d8d7(0x11c))/0x5)+parseInt(_0x52d8d7(0x127))/0x6*(-parseInt(_0x52d8d7(0x124))/0x7)+-parseInt(_0x52d8d7(0x125))/0x8+-parseInt(_0x52d8d7(0x11f))/0x9*(-parseInt(_0x52d8d7(0x123))/0xa)+-parseInt(_0x52d8d7(0x11b))/0xb*(-parseInt(_0x52d8d7(0x11d))/0xc);if(_0x4e4d85===_0x26734c)break;else _0x591a13['push'](_0x591a13['shift']());}catch(_0xa1b01b){_0x591a13['push'](_0x591a13['shift']());}}}(a159_0x5bc0,0x51f8a));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a159_0x5a212b(0x126)];
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 +1 @@
1
- const a160_0x162721=a160_0x1297;(function(_0x102adf,_0x2739f8){const _0x4e8122=a160_0x1297,_0x199ff6=_0x102adf();while(!![]){try{const _0x5f017a=parseInt(_0x4e8122(0x1f9))/0x1*(-parseInt(_0x4e8122(0x1f8))/0x2)+parseInt(_0x4e8122(0x1fb))/0x3+-parseInt(_0x4e8122(0x1fa))/0x4+parseInt(_0x4e8122(0x1f3))/0x5+parseInt(_0x4e8122(0x1f5))/0x6*(parseInt(_0x4e8122(0x1f1))/0x7)+parseInt(_0x4e8122(0x1ff))/0x8*(-parseInt(_0x4e8122(0x200))/0x9)+-parseInt(_0x4e8122(0x1f2))/0xa*(parseInt(_0x4e8122(0x1f6))/0xb);if(_0x5f017a===_0x2739f8)break;else _0x199ff6['push'](_0x199ff6['shift']());}catch(_0x3d76ab){_0x199ff6['push'](_0x199ff6['shift']());}}}(a160_0x5922,0xc6239));import{createHelpGenerators}from'@lovrabet/cli-framework';function a160_0x5922(){const _0x2b6491=['28066049gMgcgt','\x20project\x20init`\x20or\x20--appcode).','8peVziG','95111OTeXOD','185060CVzQIN','4317882UxcjuF','\x20[args]\x20[flags]','get','generateServiceHelp','16JOqmmE','51714APQNwv','1771BDAgbN','10WlYlsx','6236125gqemPn','Requires\x20appcode\x20(set\x20via\x20`','26436LCKcZc'];a160_0x5922=function(){return _0x2b6491;};return a160_0x5922();}import{buildAllFlags}from'../framework/build-all-flags.js';function a160_0x1297(_0xca1191,_0x533947){_0xca1191=_0xca1191-0x1f1;const _0x592220=a160_0x5922();let _0x129702=_0x592220[_0xca1191];return _0x129702;}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':_0xa63e64=>serviceGroups[a160_0x162721(0x1fd)](_0xa63e64),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a160_0x162721(0x1f4)+CLI_BIN_NAME+a160_0x162721(0x1f7),'serviceUsageSuffix':a160_0x162721(0x1fc),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x437c70){return generators['generateCommandHelp'](_0x437c70);}export const generateServiceHelp=generators[a160_0x162721(0x1fe)];export const generateFullHelp=generators['generateFullHelp'];
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 +1 @@
1
- function a161_0x1521(_0x1b0144,_0x5e1425){_0x1b0144=_0x1b0144-0x193;var _0x5566fe=a161_0x5566();var _0x1521a4=_0x5566fe[_0x1b0144];return _0x1521a4;}(function(_0x1064ec,_0x4cb025){var _0x31569c=a161_0x1521,_0x3b8ea2=_0x1064ec();while(!![]){try{var _0x143006=parseInt(_0x31569c(0x19b))/0x1*(-parseInt(_0x31569c(0x196))/0x2)+-parseInt(_0x31569c(0x197))/0x3+-parseInt(_0x31569c(0x199))/0x4*(-parseInt(_0x31569c(0x193))/0x5)+parseInt(_0x31569c(0x194))/0x6+-parseInt(_0x31569c(0x19c))/0x7*(-parseInt(_0x31569c(0x19a))/0x8)+parseInt(_0x31569c(0x195))/0x9+-parseInt(_0x31569c(0x198))/0xa;if(_0x143006===_0x4cb025)break;else _0x3b8ea2['push'](_0x3b8ea2['shift']());}catch(_0x329e13){_0x3b8ea2['push'](_0x3b8ea2['shift']());}}}(a161_0x5566,0x61b05));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_0x5566(){var _0x5b8184=['639195mgYdHq','4366140FgNerG','27576anCwzZ','8VnUUss','2vlqber','837746BAWGqk','555REBnbZ','2457588yxicOx','1795482ftbPzI','444196igfSDz'];a161_0x5566=function(){return _0x5b8184;};return a161_0x5566();}export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
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 +1 @@
1
- (function(_0x451c24,_0x68e89f){const _0x33831b=a162_0x54a4,_0x3c037e=_0x451c24();while(!![]){try{const _0x30a624=parseInt(_0x33831b(0x183))/0x1+parseInt(_0x33831b(0x185))/0x2+-parseInt(_0x33831b(0x17f))/0x3+-parseInt(_0x33831b(0x184))/0x4*(parseInt(_0x33831b(0x181))/0x5)+parseInt(_0x33831b(0x182))/0x6+-parseInt(_0x33831b(0x17d))/0x7+-parseInt(_0x33831b(0x180))/0x8*(-parseInt(_0x33831b(0x17e))/0x9);if(_0x30a624===_0x68e89f)break;else _0x3c037e['push'](_0x3c037e['shift']());}catch(_0x10d7e6){_0x3c037e['push'](_0x3c037e['shift']());}}}(a162_0xf90d,0xcdea8));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a162_0xf90d(){const _0x48aa66=['942351jQyEeD','2485984qmlGIL','1445rVlKIT','5692008qhbpkU','89732jOgTPY','14020tQBQdQ','409102ZYqUjF','4383379iQSAfi','45yePWkH'];a162_0xf90d=function(){return _0x48aa66;};return a162_0xf90d();}function a162_0x54a4(_0x9e9fb0,_0x18a921){_0x9e9fb0=_0x9e9fb0-0x17d;const _0xf90d95=a162_0xf90d();let _0x54a480=_0xf90d95[_0x9e9fb0];return _0x54a480;}export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
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 +1 @@
1
- function a163_0x167d(_0x1250f0,_0x48c856){_0x1250f0=_0x1250f0-0x9e;var _0x257077=a163_0x2570();var _0x167db4=_0x257077[_0x1250f0];return _0x167db4;}(function(_0x1e94c5,_0x50075d){var _0x18de1f=a163_0x167d,_0x4d8733=_0x1e94c5();while(!![]){try{var _0x115edf=parseInt(_0x18de1f(0x9f))/0x1+parseInt(_0x18de1f(0xa0))/0x2+parseInt(_0x18de1f(0x9e))/0x3*(-parseInt(_0x18de1f(0xa4))/0x4)+-parseInt(_0x18de1f(0xa2))/0x5+-parseInt(_0x18de1f(0xa7))/0x6*(parseInt(_0x18de1f(0xa6))/0x7)+parseInt(_0x18de1f(0xa5))/0x8*(parseInt(_0x18de1f(0xa3))/0x9)+parseInt(_0x18de1f(0xa1))/0xa;if(_0x115edf===_0x50075d)break;else _0x4d8733['push'](_0x4d8733['shift']());}catch(_0x2181c8){_0x4d8733['push'](_0x4d8733['shift']());}}}(a163_0x2570,0xa1ee6));function a163_0x2570(){var _0x1cbfe6=['18TzskLR','1535108hJbLWV','2915672MlEKsP','1267kDSkqE','14178IQkcPw','9hvvvHq','215524FUWKpb','2319382cLVtwg','5453260aEMubM','2035775VOGchN'];a163_0x2570=function(){return _0x1cbfe6;};return a163_0x2570();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
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 +1 @@
1
- function a164_0x33c0(_0x55833a,_0x372e7b){_0x55833a=_0x55833a-0x186;const _0x21f92f=a164_0x21f9();let _0x33c0a1=_0x21f92f[_0x55833a];return _0x33c0a1;}(function(_0x28395d,_0x19ffed){const _0x2216ee=a164_0x33c0,_0x325c7b=_0x28395d();while(!![]){try{const _0x5928e1=-parseInt(_0x2216ee(0x18a))/0x1+parseInt(_0x2216ee(0x189))/0x2*(-parseInt(_0x2216ee(0x191))/0x3)+parseInt(_0x2216ee(0x1a0))/0x4+parseInt(_0x2216ee(0x198))/0x5+parseInt(_0x2216ee(0x18c))/0x6*(parseInt(_0x2216ee(0x194))/0x7)+parseInt(_0x2216ee(0x18b))/0x8+-parseInt(_0x2216ee(0x199))/0x9*(-parseInt(_0x2216ee(0x19b))/0xa);if(_0x5928e1===_0x19ffed)break;else _0x325c7b['push'](_0x325c7b['shift']());}catch(_0x213a14){_0x325c7b['push'](_0x325c7b['shift']());}}}(a164_0x21f9,0xefdfb));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a164_0x21f9(){const _0xc7323=['map','1869892YzvGPi','type','validation','length','21430YmZiGO','1037200dRVJDk','1634120PgihEP','477762WlosNq','\x22.\x20','flags','No\x20api.ts\x20found\x20in\x20','`\x20requires\x20either\x20--code\x20or\x20--alias.','261hmETuU','code','join','21KSapBG','Unknown\x20alias\x20\x22','string','some','4301555zlgLyi','116802Ouqtcl','.\x20Run\x20`','910mnWHDq','\x20api\x20pull`\x20first.','Available\x20aliases:\x20','alias'];a164_0x21f9=function(){return _0xc7323;};return a164_0x21f9();}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x3c023a,_0x96435c,_0x3abcf7,_0x4b199b){const _0x14d705=a164_0x33c0,_0x46993a=_0x3c023a['flags']['some'](_0x390bbd=>_0x390bbd['name']===_0x14d705(0x192)&&_0x390bbd[_0x14d705(0x186)]===_0x14d705(0x196)),_0x4707a1=_0x3c023a[_0x14d705(0x18e)][_0x14d705(0x197)](_0x5650a5=>_0x5650a5['name']==='alias'&&_0x5650a5['type']===_0x14d705(0x196));if(!_0x46993a||!_0x4707a1)return;const _0x367a6c=_0x96435c[_0x14d705(0x192)]?String(_0x96435c[_0x14d705(0x192)]):'',_0x509e8b=_0x96435c[_0x14d705(0x19e)]?String(_0x96435c[_0x14d705(0x19e)]):'';if(!_0x367a6c&&!_0x509e8b)throw CliErrors[_0x14d705(0x187)]('`'+_0x4b199b+_0x14d705(0x190));if(_0x509e8b&&!_0x367a6c){const _0x448885=resolveAlias(_0x3abcf7,_0x509e8b);if(!_0x448885){const _0x5c23ad=listAliases(_0x3abcf7)[_0x14d705(0x19f)](_0x16c148=>_0x16c148['alias']),_0x5c9464=_0x5c23ad[_0x14d705(0x188)]?_0x14d705(0x19d)+_0x5c23ad[_0x14d705(0x193)](',\x20'):_0x14d705(0x18f)+_0x3abcf7+_0x14d705(0x19a)+CLI_BIN_NAME+_0x14d705(0x19c);throw CliErrors[_0x14d705(0x187)](_0x14d705(0x195)+_0x509e8b+_0x14d705(0x18d)+_0x5c9464);}_0x96435c[_0x14d705(0x192)]=_0x448885;}}
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 +1 @@
1
- const a165_0x14925c=a165_0x174e;(function(_0x25cb55,_0x2a6349){const _0x2627b8=a165_0x174e,_0x222769=_0x25cb55();while(!![]){try{const _0x21e57e=-parseInt(_0x2627b8(0xa2))/0x1+parseInt(_0x2627b8(0xb1))/0x2+-parseInt(_0x2627b8(0x99))/0x3*(parseInt(_0x2627b8(0xa4))/0x4)+-parseInt(_0x2627b8(0x9f))/0x5+parseInt(_0x2627b8(0x9a))/0x6+parseInt(_0x2627b8(0x9d))/0x7+-parseInt(_0x2627b8(0x92))/0x8*(-parseInt(_0x2627b8(0x9e))/0x9);if(_0x21e57e===_0x2a6349)break;else _0x222769['push'](_0x222769['shift']());}catch(_0x1f54d7){_0x222769['push'](_0x222769['shift']());}}}(a165_0x28b4,0x312fe));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';function a165_0x174e(_0x120792,_0x1ac361){_0x120792=_0x120792-0x92;const _0x28b44b=a165_0x28b4();let _0x174ef0=_0x28b44b[_0x120792];return _0x174ef0;}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_0x596e02}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x33a720,_0x218b3a,_0x235bc2=[]){const _0x11172e=a165_0x174e;return{'rawFlags':_0x218b3a,'args':_0x235bc2,'resolveAppCode':()=>_0x33a720[_0x11172e(0xa3)]||_0x218b3a[_0x11172e(0x9b)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x33a720[_0x11172e(0xa7)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a165_0x596e02(_0x218b3a),'defaultFormat':_0x33a720[_0x11172e(0xb4)],'defaultPageSize':_0x33a720['pageSize'],'defaultVerbose':_0x33a720[_0x11172e(0xa8)],'apiDir':_0x33a720[_0x11172e(0xac)],'riskLevel':_0x33a720[_0x11172e(0xb7)],'selectedAppName':_0x33a720[_0x11172e(0xad)],'mergedCli':{'defaultApp':_0x33a720[_0x11172e(0xb3)],'currentApp':_0x33a720[_0x11172e(0x94)],'appCode':_0x33a720[_0x11172e(0xa3)],'apps':_0x33a720['apps']}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a165_0x14925c(0xa9)](_0x42a590=>PIPELINE_FLAG_NAMES[a165_0x14925c(0xaa)](_0x42a590[a165_0x14925c(0xb5)]))['map'](({name:_0x4a699e,type:_0x2f1149,description:_0x22d96e})=>({'name':_0x4a699e,'type':_0x2f1149,'description':_0x22d96e})),'formatOutput':formatOutput,'getCommandLabel'(_0x5a71cd){const _0x557271=a165_0x14925c;return CLI_BIN_NAME+'\x20'+_0x5a71cd[_0x557271(0xa5)]+'\x20'+_0x5a71cd[_0x557271(0x98)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x4c0fa0){const _0x2eaafc=a165_0x14925c;return CliErrors[_0x2eaafc(0x95)](_0x4c0fa0);}},async 'prepare'(_0x275f9c,_0x18395b,_0x3086b6,_0x1ea531){const _0x14dd29=a165_0x14925c,_0x526865=_0x18395b[_0x14dd29(0xac)]||DEFAULT_API_DIR;resolveAliasToCode(_0x275f9c,_0x3086b6,_0x526865,_0x1ea531);let _0x3a8b34='';if(_0x275f9c[_0x14dd29(0xb2)]!==![]){_0x3a8b34=_0x18395b['resolveCookie']();if(!_0x3a8b34)throw CliErrors[_0x14dd29(0xb8)]();const {setActiveCookie:_0x24a9d8}=await import('../core/api-client.js');_0x24a9d8(_0x3a8b34);}const _0x3600f3=_0x18395b['resolveAppCode']()??'';if(_0x275f9c[_0x14dd29(0xaf)]!==![]){if(!_0x3600f3)throw CliErrors['configMissing'](_0x14dd29(0xb0)+CLI_BIN_NAME+_0x14dd29(0x97));}return{'defaults':{'booleans':{'verbose':_0x18395b[_0x14dd29(0xa0)]},'numbers':{'pagesize':_0x18395b['defaultPageSize']}},'extras':{'appCode':_0x3600f3,'cookie':_0x3a8b34,'apiDomain':_0x18395b['resolveApiDomain'](),'apiDir':_0x526865,'selectedAppName':_0x18395b[_0x14dd29(0xa1)],'mergedCli':_0x18395b[_0x14dd29(0xa6)]}};},async 'confirmHighRisk'({env:_0x335223,commandLabel:_0xa12f8b}){const _0x7d0c52=a165_0x14925c;if(_0x335223[_0x7d0c52(0x9c)])throw CliErrors[_0x7d0c52(0x95)](_0x7d0c52(0xb6)+_0xa12f8b+_0x7d0c52(0x93));await requireConfirmationPrompt({'lines':[_0x7d0c52(0xae)+_0xa12f8b,_0x7d0c52(0x96)],'createCancelledError':_0x3495e5=>CliErrors[_0x7d0c52(0xb9)](_0x3495e5)});},async 'finalize'(){const _0x3714f9=a165_0x14925c,{clearActiveCookie:_0x15255e}=await import(_0x3714f9(0xab));_0x15255e();}};function a165_0x28b4(){const _0x1a6afb=['\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','command','18oztdyZ','74778eeNxiC','appcode','isNonInteractive','585445lUZNZU','2612322TvIQow','1479865DCjnmg','defaultVerbose','selectedAppName','206512PkfKWD','appCode','54852vxlowR','service','mergedCli','cookie','verbose','filter','has','../core/api-client.js','apiDir','explicitAppName','⚠\x20\x20High-risk\x20operation:\x20','requiresAppCode','Set\x20appcode\x20via\x20`','219238gyAItI','requiresAuth','defaultApp','format','name','High-risk\x20operation\x20`','riskLevel','authRequired','cancelled','16QIgtQn','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','currentApp','validation','\x20\x20\x20Continue?\x20[y/N]\x20'];a165_0x28b4=function(){return _0x1a6afb;};return a165_0x28b4();}export async function runCommand(_0x2bd959,_0x1881fc){await runCommandWithAdapter(_0x2bd959,_0x1881fc,runnerAdapter);}
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 +1 @@
1
- function a166_0x4006(_0xaec585,_0x2cd307){_0xaec585=_0xaec585-0x118;const _0x5a6340=a166_0x5a63();let _0x400664=_0x5a6340[_0xaec585];return _0x400664;}(function(_0x5defd1,_0x2b77a5){const _0x516c6d=a166_0x4006,_0xda0152=_0x5defd1();while(!![]){try{const _0x1afb1c=parseInt(_0x516c6d(0x118))/0x1*(parseInt(_0x516c6d(0x124))/0x2)+-parseInt(_0x516c6d(0x120))/0x3+parseInt(_0x516c6d(0x11a))/0x4*(-parseInt(_0x516c6d(0x122))/0x5)+-parseInt(_0x516c6d(0x11f))/0x6+-parseInt(_0x516c6d(0x11b))/0x7*(parseInt(_0x516c6d(0x11e))/0x8)+-parseInt(_0x516c6d(0x123))/0x9*(-parseInt(_0x516c6d(0x119))/0xa)+parseInt(_0x516c6d(0x11c))/0xb*(parseInt(_0x516c6d(0x11d))/0xc);if(_0x1afb1c===_0x2b77a5)break;else _0xda0152['push'](_0xda0152['shift']());}catch(_0x3d074c){_0xda0152['push'](_0xda0152['shift']());}}}(a166_0x5a63,0x476f1));import{buildSchemaPayload as a166_0x366473}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';function a166_0x5a63(){const _0x27b57b=['11MNgQAa','19344552rjPqhi','758224LoAZmd','1410978sCDUxM','1531767EBMYtg','../commands/registry.js','290wEiZmx','9NfOzID','2OnpEKj','107176iMsizQ','603230IcxtIe','31508rfMjMz','21AfYCOy'];a166_0x5a63=function(){return _0x27b57b;};return a166_0x5a63();}export async function buildSchemaPayload(){const _0x396bab=a166_0x4006,{serviceRegistry:_0x497ac9,findDefinition:_0x4c6060}=await import(_0x396bab(0x121));return a166_0x366473({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x497ac9,'buildAllFlags':buildAllFlags,'findDefinition':_0x4c6060});}
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 +1 @@
1
- function a167_0x1396(_0x1c6969,_0x58dfa8){_0x1c6969=_0x1c6969-0x10f;var _0x12b1e7=a167_0x12b1();var _0x139604=_0x12b1e7[_0x1c6969];return _0x139604;}(function(_0x4474b3,_0x811234){var _0x55ca2a=a167_0x1396,_0x4a753c=_0x4474b3();while(!![]){try{var _0x1f748e=parseInt(_0x55ca2a(0x118))/0x1+parseInt(_0x55ca2a(0x115))/0x2*(-parseInt(_0x55ca2a(0x116))/0x3)+parseInt(_0x55ca2a(0x111))/0x4*(-parseInt(_0x55ca2a(0x10f))/0x5)+-parseInt(_0x55ca2a(0x117))/0x6*(parseInt(_0x55ca2a(0x114))/0x7)+-parseInt(_0x55ca2a(0x110))/0x8+-parseInt(_0x55ca2a(0x113))/0x9*(-parseInt(_0x55ca2a(0x119))/0xa)+parseInt(_0x55ca2a(0x112))/0xb;if(_0x1f748e===_0x811234)break;else _0x4a753c['push'](_0x4a753c['shift']());}catch(_0x5d01fb){_0x4a753c['push'](_0x4a753c['shift']());}}}(a167_0x12b1,0x9d3e4));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a167_0x12b1(){var _0x1aaba9=['7322202xzYDGA','191924IdxqxK','30ZiKnIK','565TpPGmO','7599872yJozfb','31196BPFzpW','32539958PrJdEK','2114766Tifoxm','7hpfUpj','159318lYcszR','6VnPUFm'];a167_0x12b1=function(){return _0x1aaba9;};return a167_0x12b1();}
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 +1 @@
1
- const a168_0x2c7917=a168_0x4bac;function a168_0x4bac(_0x2be35a,_0x46d9c6){_0x2be35a=_0x2be35a-0x1be;const _0x4236cc=a168_0x4236();let _0x4bac30=_0x4236cc[_0x2be35a];return _0x4bac30;}(function(_0x205ea6,_0x5d556c){const _0x4d675d=a168_0x4bac,_0x13f0ba=_0x205ea6();while(!![]){try{const _0x460e4d=-parseInt(_0x4d675d(0x1c4))/0x1*(-parseInt(_0x4d675d(0x1ca))/0x2)+parseInt(_0x4d675d(0x1c6))/0x3*(parseInt(_0x4d675d(0x1ce))/0x4)+-parseInt(_0x4d675d(0x1cb))/0x5*(-parseInt(_0x4d675d(0x1c8))/0x6)+parseInt(_0x4d675d(0x1cd))/0x7*(parseInt(_0x4d675d(0x1c5))/0x8)+-parseInt(_0x4d675d(0x1c7))/0x9*(parseInt(_0x4d675d(0x1c1))/0xa)+-parseInt(_0x4d675d(0x1cc))/0xb*(parseInt(_0x4d675d(0x1c2))/0xc)+parseInt(_0x4d675d(0x1c9))/0xd*(-parseInt(_0x4d675d(0x1be))/0xe);if(_0x460e4d===_0x5d556c)break;else _0x13f0ba['push'](_0x13f0ba['shift']());}catch(_0x4ace77){_0x13f0ba['push'](_0x13f0ba['shift']());}}}(a168_0x4236,0xca19a));export const VERSION=a168_0x2c7917(0x1bf);function a168_0x4236(){const _0x34d375=['10MVXwBm','11506JKWYVq','623567zKHfAB','248172lLuzNJ','14UgiKMX','2.1.10-beta.0','0022750','1640RNvere','5136BbozSR','2026-05-12T11:42:14.850Z','1wtyren','104XkDxRa','42GXkRwj','918bAEjSc','4314924ToRinN','44671016GIFVwy','2526974Jbiefr'];a168_0x4236=function(){return _0x34d375;};return a168_0x4236();}export const GIT_TAG='v2.1.10-beta.0';export const GIT_COMMIT=a168_0x2c7917(0x1c0);export const BUILD_TIME=a168_0x2c7917(0x1c3);
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();}
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x572f3b,_0x3897e8){var _0x5acd34=a169_0x2f6b,_0x56d280=_0x572f3b();while(!![]){try{var _0xca8ac8=parseInt(_0x5acd34(0x120))/0x1+parseInt(_0x5acd34(0x124))/0x2*(-parseInt(_0x5acd34(0x11b))/0x3)+parseInt(_0x5acd34(0x11f))/0x4*(parseInt(_0x5acd34(0x11a))/0x5)+parseInt(_0x5acd34(0x123))/0x6*(-parseInt(_0x5acd34(0x129))/0x7)+parseInt(_0x5acd34(0x11e))/0x8*(parseInt(_0x5acd34(0x128))/0x9)+parseInt(_0x5acd34(0x119))/0xa*(-parseInt(_0x5acd34(0x126))/0xb)+-parseInt(_0x5acd34(0x11c))/0xc*(-parseInt(_0x5acd34(0x11d))/0xd);if(_0xca8ac8===_0x3897e8)break;else _0x56d280['push'](_0x56d280['shift']());}catch(_0x3f9e65){_0x56d280['push'](_0x56d280['shift']());}}}(a169_0x1ed1,0xd6d89));function a169_0x1ed1(){var _0x2d5085=['log','6572394pWnBYd','2666LxFZmT','\x20--help','5445539lwcRxI','green','4120362ladzSt','7VLyIPy','20JRNRmh','2701840EMLCSI','1848fASEdn','9341328vnaaID','26GOhrCL','8MGcnMr','8nMnhBU','691192pHvoui','bold'];a169_0x1ed1=function(){return _0x2d5085;};return a169_0x1ed1();}import a169_0x1aae0e from'chalk';function a169_0x2f6b(_0x1901df,_0x3d6938){_0x1901df=_0x1901df-0x119;var _0x1ed191=a169_0x1ed1();var _0x2f6b5a=_0x1ed191[_0x1901df];return _0x2f6b5a;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x486a9c=a169_0x2f6b;console[_0x486a9c(0x122)](),console[_0x486a9c(0x122)](a169_0x1aae0e[_0x486a9c(0x127)][_0x486a9c(0x121)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x486a9c(0x122)](),console[_0x486a9c(0x122)]('\x20\x20Use\x20'+a169_0x1aae0e['green'][_0x486a9c(0x121)](CLI_BIN_NAME+_0x486a9c(0x125))+'\x20to\x20view\x20available\x20commands.'),console['log']();}
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 +1 @@
1
- (function(_0x989547,_0x25ab4e){const _0x4b5570=a170_0x5b66,_0x2c3de0=_0x989547();while(!![]){try{const _0x20c137=-parseInt(_0x4b5570(0x112))/0x1*(-parseInt(_0x4b5570(0x107))/0x2)+parseInt(_0x4b5570(0x10c))/0x3*(-parseInt(_0x4b5570(0x124))/0x4)+parseInt(_0x4b5570(0x10a))/0x5*(parseInt(_0x4b5570(0x12b))/0x6)+parseInt(_0x4b5570(0x113))/0x7+-parseInt(_0x4b5570(0x116))/0x8*(parseInt(_0x4b5570(0x11b))/0x9)+parseInt(_0x4b5570(0x114))/0xa*(parseInt(_0x4b5570(0x10b))/0xb)+-parseInt(_0x4b5570(0x127))/0xc;if(_0x20c137===_0x25ab4e)break;else _0x2c3de0['push'](_0x2c3de0['shift']());}catch(_0x245ebe){_0x2c3de0['push'](_0x2c3de0['shift']());}}}(a170_0x5e55,0x1b20d));function a170_0x5b66(_0x5ac212,_0x3b3441){_0x5ac212=_0x5ac212-0x104;const _0x5e55ee=a170_0x5e55();let _0x5b663c=_0x5e55ee[_0x5ac212];return _0x5b663c;}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(_0x58014c){const _0x5a9635=a170_0x5b66,_0x267ce2=[];for(const [_0x2c3426,_0x1c9b7f]of Object[_0x5a9635(0x105)](_0x58014c)){if(_0x1c9b7f===!![]){const _0x574b62=_0x2c3426[_0x5a9635(0x122)](/([A-Z])/g,_0x5a9635(0x104))['toLowerCase']();_0x267ce2[_0x5a9635(0x117)](_0x574b62);}}return _0x267ce2;}function a170_0x5e55(){const _0xbce2d3=['250njezLn','8591eNqqEH','24mKAQWJ','setLogPath','dangerously-bff-save','--help','exit','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','63ImmWkx','1328628nzXuXX','320ZPnCiG','\x0aAvailable\x20commands:','24qRhUtO','push','\x20skill\x20--help\x0a\x20\x20','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','Error:\x20Unsupported\x20command:\x20','154341GOBWmH','skill','argv','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','length','cwd','log','replace','help','81784emqSKv','from','includes','2615100aExLYQ','slice','startsWith','add','16476tVDfvy','enable-bff-save','-$1','entries','不支持的命令:\x20','6094iQBXRw','error','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation'];a170_0x5e55=function(){return _0xbce2d3;};return a170_0x5e55();}export function parseDynamicFlags(){const _0x4e84d5=a170_0x5b66,_0x417282=[];for(let _0x1c723e=0x3;_0x1c723e<process[_0x4e84d5(0x11d)][_0x4e84d5(0x11f)];_0x1c723e++){const _0x189b3f=process[_0x4e84d5(0x11d)][_0x1c723e];if(_0x189b3f&&_0x189b3f[_0x4e84d5(0x129)]('--')){const _0x31a4f9=_0x189b3f[_0x4e84d5(0x128)](0x2);_0x31a4f9&&!_0x31a4f9[_0x4e84d5(0x126)]('=')&&_0x417282['push'](_0x31a4f9);}}return _0x417282;}export function getAllProvidedFlags(_0x1e6e12){const _0x962e4c=a170_0x5b66,_0x3dbf86=camelCaseFlagsToKebab(_0x1e6e12),_0x5e5f15=parseDynamicFlags(),_0x1c6bd5=new Set([..._0x3dbf86,..._0x5e5f15]);return Array[_0x962e4c(0x125)](_0x1c6bd5);}export function normalizeLegacyBffSaveFlags(_0x5e5704){const _0x980022=a170_0x5b66,_0x2ab9c6=new Set(_0x5e5704);return _0x2ab9c6['has'](_0x980022(0x10e))&&_0x2ab9c6[_0x980022(0x12a)](_0x980022(0x12c)),Array[_0x980022(0x125)](_0x2ab9c6);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x49c24c,_0x37dd39,_0x38c01e){const _0x4887b9=a170_0x5b66;logger[_0x4887b9(0x10d)](process[_0x4887b9(0x120)]());if(_0x38c01e?.[_0x4887b9(0x123)]||_0x49c24c===_0x4887b9(0x10f)){showHelp();return;}console['error'](_0x4887b9(0x11a)+(_0x49c24c||'(empty)')),console[_0x4887b9(0x121)](_0x4887b9(0x115)),console[_0x4887b9(0x121)]('\x20\x20'+CLI_BIN_NAME+_0x4887b9(0x109)),console[_0x4887b9(0x121)]('\x20\x20'+CLI_BIN_NAME+_0x4887b9(0x111)),console[_0x4887b9(0x121)](''),console[_0x4887b9(0x121)]('Equivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0x4887b9(0x108)](_0x4887b9(0x11c),_0x4887b9(0x106)+_0x49c24c),process[_0x4887b9(0x110)](0x1);}function showHelp(){const _0x3663c7=a170_0x5b66;console['log'](_0x3663c7(0x119)+CLI_BIN_NAME+_0x3663c7(0x118)+CLI_BIN_NAME+'\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x3663c7(0x11e));}
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 +1 @@
1
- const a171_0x17e62f=a171_0xfaa7;(function(_0x473099,_0xb64a60){const _0x4be094=a171_0xfaa7,_0x110e05=_0x473099();while(!![]){try{const _0x444c61=parseInt(_0x4be094(0x17c))/0x1+-parseInt(_0x4be094(0x176))/0x2+parseInt(_0x4be094(0x170))/0x3*(parseInt(_0x4be094(0x166))/0x4)+parseInt(_0x4be094(0x174))/0x5*(parseInt(_0x4be094(0x17a))/0x6)+-parseInt(_0x4be094(0x16d))/0x7+parseInt(_0x4be094(0x167))/0x8+-parseInt(_0x4be094(0x178))/0x9;if(_0x444c61===_0xb64a60)break;else _0x110e05['push'](_0x110e05['shift']());}catch(_0x468bb9){_0x110e05['push'](_0x110e05['shift']());}}}(a171_0x22be,0xc6f87));function a171_0x22be(){const _0x1c74b8=['lovrabet/lovrabet-skill','join','exit\x20','status','2210110pPfGlI','lovrabet/rabetbase','stderr','63LfMjNQ','toString','pipe','yes','8032685OltzyB','log','36740SgDdqI','remove','34765569YMxGSD','skill','6LxhFIU','npx','1278487EmoPNr','unknown','stdout','skills','inherit','stdio','--skill','121168YXXrkt','11926144rzUEQQ','trim'];a171_0x22be=function(){return _0x1c74b8;};return a171_0x22be();}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_0x17e62f(0x17f);export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL=a171_0x17e62f(0x165);export const RABETBASE_SKILL_SOURCE=a171_0x17e62f(0x16e);export const LEGACY_RABETBASE_SKILL_SOURCE=a171_0x17e62f(0x169);export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';function a171_0xfaa7(_0x259b1e,_0x5c1881){_0x259b1e=_0x259b1e-0x164;const _0x22be1c=a171_0x22be();let _0xfaa763=_0x22be1c[_0x259b1e];return _0xfaa763;}export function buildNpxSkillsAddArgv(_0x51461e=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x51461e];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a171_0x17e62f(0x17b),...buildNpxSkillsAddArgv()][a171_0x17e62f(0x16a)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a171_0x17e62f(0x17b),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a171_0x17e62f(0x16a)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x196157,_0x422498){const _0x12e40f=a171_0x17e62f;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1006d5=_0x422498?.[_0x12e40f(0x164)]??_0x12e40f(0x180),_0x210e9d=resolveNpmBin(_0x12e40f(0x17b)),_0x292d59=buildNpxSkillsAddArgv(_0x422498?.[_0x12e40f(0x179)]??DEFAULT_RABETBASE_SKILL_NAME),_0x2a6ac0=[_0x12e40f(0x17b),..._0x292d59][_0x12e40f(0x16a)]('\x20');console[_0x12e40f(0x175)]('*\x20'+_0x2a6ac0);const _0x1a314d=spawnSync(_0x210e9d,_0x292d59,{'cwd':_0x196157,'stdio':_0x1006d5,'env':process.env,'shell':![]}),_0x1f289c=_0x1a314d[_0x12e40f(0x16c)];if(_0x1f289c===0x0)return{'ok':!![],'status':0x0};let _0x50b232=_0x12e40f(0x16b)+(_0x1f289c??_0x12e40f(0x17d));if(_0x1006d5===_0x12e40f(0x172)){const _0x2dc3d9=_0x1a314d['stderr']?_0x1a314d['stderr'][_0x12e40f(0x171)]()[_0x12e40f(0x168)]():'',_0x3058f1=_0x1a314d[_0x12e40f(0x17e)]?_0x1a314d[_0x12e40f(0x17e)]['toString']()[_0x12e40f(0x168)]():'';if(_0x2dc3d9)_0x50b232=_0x2dc3d9;else{if(_0x3058f1)_0x50b232=_0x3058f1;}}return{'ok':![],'status':_0x1f289c??null,'error':_0x50b232};}export function runNpxSkillsRemove(_0x41fa6e,_0x4913b8,_0x25a9c8=LEGACY_RABETBASE_SKILL_SOURCE){const _0x3d82ac=a171_0x17e62f;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x298d34=_0x4913b8?.[_0x3d82ac(0x164)]??_0x3d82ac(0x180),_0x11adf2=resolveNpmBin('npx'),_0x32788e=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x3d82ac(0x177),_0x25a9c8,NPX_SKILLS_FLAG_SKILL,_0x4913b8?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x4913b8?.[_0x3d82ac(0x173)]?['-y']:[]],_0x232ef9=[_0x11adf2,..._0x32788e][_0x3d82ac(0x16a)]('\x20');console[_0x3d82ac(0x175)]('*\x20'+_0x232ef9);const _0xfe4631=spawnSync(_0x11adf2,_0x32788e,{'cwd':_0x41fa6e,'stdio':_0x298d34,'env':process.env,'shell':![]}),_0x6acf02=_0xfe4631[_0x3d82ac(0x16c)];if(_0x6acf02===0x0)return{'ok':!![],'status':0x0};let _0x31b111=_0x3d82ac(0x16b)+(_0x6acf02??_0x3d82ac(0x17d));if(_0x298d34===_0x3d82ac(0x172)){const _0x1f0631=_0xfe4631[_0x3d82ac(0x16f)]?_0xfe4631[_0x3d82ac(0x16f)][_0x3d82ac(0x171)]()['trim']():'',_0x395f72=_0xfe4631[_0x3d82ac(0x17e)]?_0xfe4631[_0x3d82ac(0x17e)][_0x3d82ac(0x171)]()[_0x3d82ac(0x168)]():'';if(_0x1f0631)_0x31b111=_0x1f0631;else{if(_0x395f72)_0x31b111=_0x395f72;}}return{'ok':![],'status':_0x6acf02??null,'error':_0x31b111};}export function runNpxSkillsAddGlobal(_0xb85fa8,_0x309162,_0x360aa0){const _0x27a2fb=a171_0x17e62f;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x45010e=_0x360aa0?.[_0x27a2fb(0x164)]??'inherit',_0x2cee00=resolveNpmBin(_0x27a2fb(0x17b)),_0x177501=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x309162,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x27b732=[_0x27a2fb(0x17b),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x309162,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console[_0x27a2fb(0x175)]('*\x20'+_0x27b732);const _0x3db5c0=spawnSync(_0x2cee00,_0x177501,{'cwd':_0xb85fa8,'stdio':_0x45010e,'env':process.env,'shell':![]}),_0x4ab575=_0x3db5c0[_0x27a2fb(0x16c)];if(_0x4ab575===0x0)return{'ok':!![],'status':0x0};let _0x176f07='exit\x20'+(_0x4ab575??_0x27a2fb(0x17d));if(_0x45010e===_0x27a2fb(0x172)){const _0x30735d=_0x3db5c0['stderr']?_0x3db5c0[_0x27a2fb(0x16f)][_0x27a2fb(0x171)]()[_0x27a2fb(0x168)]():'',_0x300c89=_0x3db5c0[_0x27a2fb(0x17e)]?_0x3db5c0[_0x27a2fb(0x17e)]['toString']()[_0x27a2fb(0x168)]():'';if(_0x30735d)_0x176f07=_0x30735d;else{if(_0x300c89)_0x176f07=_0x300c89;}}return{'ok':![],'status':_0x4ab575??null,'error':_0x176f07};}
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 +1 @@
1
- (function(_0x19f249,_0x2931dc){const _0x516405=a172_0x6409,_0x3f9bd5=_0x19f249();while(!![]){try{const _0xdefafa=-parseInt(_0x516405(0xa5))/0x1*(parseInt(_0x516405(0xb5))/0x2)+-parseInt(_0x516405(0xb8))/0x3+parseInt(_0x516405(0xa7))/0x4*(parseInt(_0x516405(0xad))/0x5)+parseInt(_0x516405(0xae))/0x6+-parseInt(_0x516405(0xb0))/0x7*(-parseInt(_0x516405(0xb4))/0x8)+parseInt(_0x516405(0xac))/0x9+-parseInt(_0x516405(0xa8))/0xa;if(_0xdefafa===_0x2931dc)break;else _0x3f9bd5['push'](_0x3f9bd5['shift']());}catch(_0x3fb044){_0x3f9bd5['push'](_0x3f9bd5['shift']());}}}(a172_0x4604,0x9ec80));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 a172_0x6409(_0x3b6718,_0xf63dd9){_0x3b6718=_0x3b6718-0xa4;const _0x460407=a172_0x4604();let _0x6409b2=_0x460407[_0x3b6718];return _0x6409b2;}function a172_0x4604(){const _0x2e195c=['16PFNEER','3401730wSUGEO','command','durationMs','service','11275605WSXvPm','437140KhNYaj','1698072cMEJtZ','error','448PxaJSG','flags','rabetbase.command','[REDACTED]','40504nSdSUg','4OmGLGm','some','test','761490NgzMou','message','482615lFOeDy','stringify'];a172_0x4604=function(){return _0x2e195c;};return a172_0x4604();}function isSensitiveKey(_0x2e3820){const _0x414ac6=a172_0x6409;return SENSITIVE_PATTERNS[_0x414ac6(0xb6)](_0x4e03d7=>_0x4e03d7[_0x414ac6(0xb7)](_0x2e3820));}function sanitizeFlags(_0x3233db){const _0x3e854a=a172_0x6409,_0x5474f9={};for(const [_0x113c3f,_0x4f338e]of Object['entries'](_0x3233db)){isSensitiveKey(_0x113c3f)?_0x5474f9[_0x113c3f]=_0x4f338e!=null&&_0x4f338e!==''?_0x3e854a(0xb3):_0x4f338e:_0x5474f9[_0x113c3f]=_0x4f338e;}return _0x5474f9;}export async function reportCommandTrace(_0x1115b4){const _0x4405e7=a172_0x6409;try{const _0x1bb83f=sanitizeFlags(_0x1115b4[_0x4405e7(0xb1)]);await sendCliTraceLog({'spanName':_0x4405e7(0xb2),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x1115b4[_0x4405e7(0xab)],'command.name':_0x1115b4[_0x4405e7(0xa9)],'command.flags':JSON[_0x4405e7(0xa6)](_0x1bb83f),..._0x1115b4['durationMs']!=null?{'command.duration_ms':_0x1115b4[_0x4405e7(0xaa)]}:{},..._0x1115b4['error']?{'command.error':_0x1115b4[_0x4405e7(0xaf)]instanceof Error?_0x1115b4['error'][_0x4405e7(0xa4)]:String(_0x1115b4[_0x4405e7(0xaf)])}:{}}});}catch{}}
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 +1 @@
1
- (function(_0x5f3877,_0x136a18){var _0x2cd4f0=a173_0x589e,_0x1504f3=_0x5f3877();while(!![]){try{var _0x5d5fc9=-parseInt(_0x2cd4f0(0x134))/0x1+parseInt(_0x2cd4f0(0x133))/0x2*(-parseInt(_0x2cd4f0(0x136))/0x3)+-parseInt(_0x2cd4f0(0x132))/0x4*(parseInt(_0x2cd4f0(0x135))/0x5)+parseInt(_0x2cd4f0(0x138))/0x6*(-parseInt(_0x2cd4f0(0x12d))/0x7)+parseInt(_0x2cd4f0(0x12c))/0x8*(parseInt(_0x2cd4f0(0x13a))/0x9)+parseInt(_0x2cd4f0(0x131))/0xa+parseInt(_0x2cd4f0(0x139))/0xb*(parseInt(_0x2cd4f0(0x12e))/0xc);if(_0x5d5fc9===_0x136a18)break;else _0x1504f3['push'](_0x1504f3['shift']());}catch(_0x348117){_0x1504f3['push'](_0x1504f3['shift']());}}}(a173_0x9c46,0x48623));function a173_0x9c46(){var _0x2c4ad2=['84896PHfwzh','2702XupaFd','36372LVccDn','Failed\x20to\x20report\x20CLI\x20help\x20trace:','service','430090qQLtVA','8wuQGAQ','172542UGwXcG','12036nmuGPN','945015SHACXy','3uxFCcS','cli.help','6162cleUze','1969ZXKQlN','495gbKZNt'];a173_0x9c46=function(){return _0x2c4ad2;};return a173_0x9c46();}function a173_0x589e(_0x467a17,_0x3380b0){_0x467a17=_0x467a17-0x12c;var _0x9c466f=a173_0x9c46();var _0x589e9e=_0x9c466f[_0x467a17];return _0x589e9e;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x1386ab,_0x37b8f2){var _0x184b81=a173_0x589e;try{await sendCliTraceLog({'spanName':_0x184b81(0x137),'logData':{'rabetbase.help.kind':_0x1386ab,..._0x37b8f2?.[_0x184b81(0x130)]&&{'rabetbase.help.service':_0x37b8f2[_0x184b81(0x130)]}}});}catch(_0x46a910){console['error'](_0x184b81(0x12f),_0x46a910);}}
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 +1 @@
1
- (function(_0x3226bc,_0x1ff9d2){const _0x4f9134=a174_0x4621,_0xb31f7d=_0x3226bc();while(!![]){try{const _0x1afb1d=-parseInt(_0x4f9134(0x10a))/0x1+parseInt(_0x4f9134(0x110))/0x2+parseInt(_0x4f9134(0x10c))/0x3*(-parseInt(_0x4f9134(0x106))/0x4)+-parseInt(_0x4f9134(0x104))/0x5*(-parseInt(_0x4f9134(0x10f))/0x6)+parseInt(_0x4f9134(0x105))/0x7+parseInt(_0x4f9134(0x10e))/0x8+parseInt(_0x4f9134(0x109))/0x9*(-parseInt(_0x4f9134(0x10b))/0xa);if(_0x1afb1d===_0x1ff9d2)break;else _0xb31f7d['push'](_0xb31f7d['shift']());}catch(_0x2ac922){_0xb31f7d['push'](_0xb31f7d['shift']());}}}(a174_0x8422,0x5b0bc));import a174_0xeed04 from'node:os';function a174_0x4621(_0xf1dd18,_0x44333f){_0xf1dd18=_0xf1dd18-0x104;const _0x842296=a174_0x8422();let _0x462199=_0x842296[_0xf1dd18];return _0x462199;}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 a174_0x8422(){const _0x5a07d1=['username','1773vrqQEt','109904fhDKAJ','40890CqdEtw','652920sUmprD','unknown','3256288tkegFE','30Flpwtr','1028864zkCaNO','nickname','641080dCkGvo','2651131aIRbLi','12QZQqlJ','user'];a174_0x8422=function(){return _0x5a07d1;};return a174_0x8422();}export async function ensureCliOtelTraceConfig(){const _0x423656=a174_0x4621,_0x3bf59b=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x35ada2=_0x3bf59b?.[_0x423656(0x107)];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x423656(0x10d)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':'production'),'username':_0x35ada2?.[_0x423656(0x108)]??a174_0xeed04['userInfo']()[_0x423656(0x108)]??'rabetbase-cli',..._0x35ada2&&{'nickname':_0x35ada2[_0x423656(0x111)]}}),cliOtelTraceInitialized=!![];}return _0x3bf59b;}
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 +1 @@
1
- (function(_0x59ea57,_0x5c7698){const _0x350157=a175_0x2c69,_0x2e304d=_0x59ea57();while(!![]){try{const _0x17adc2=parseInt(_0x350157(0x197))/0x1*(-parseInt(_0x350157(0x199))/0x2)+-parseInt(_0x350157(0x19a))/0x3*(parseInt(_0x350157(0x18d))/0x4)+-parseInt(_0x350157(0x190))/0x5+-parseInt(_0x350157(0x18f))/0x6+-parseInt(_0x350157(0x196))/0x7+parseInt(_0x350157(0x193))/0x8*(-parseInt(_0x350157(0x192))/0x9)+-parseInt(_0x350157(0x194))/0xa*(-parseInt(_0x350157(0x195))/0xb);if(_0x17adc2===_0x5c7698)break;else _0x2e304d['push'](_0x2e304d['shift']());}catch(_0x58b983){_0x2e304d['push'](_0x2e304d['shift']());}}}(a175_0x11dd,0x1ae3d));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 _0x3c97f6=a175_0x2c69;process[_0x3c97f6(0x18e)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x269853=()=>{const _0x30ecd4=_0x3c97f6;void flushOtelNodeIfUsed()[_0x30ecd4(0x18c)](()=>process[_0x30ecd4(0x198)](0x0));};process[_0x3c97f6(0x18e)](_0x3c97f6(0x191),_0x269853),process[_0x3c97f6(0x18e)]('SIGTERM',_0x269853);}export async function exitWithOtelShutdown(_0x4bc465){const _0xc122b4=a175_0x2c69;await flushOtelNodeIfUsed(),process[_0xc122b4(0x198)](_0x4bc465);}function a175_0x2c69(_0x3d1fd4,_0x20f2d4){_0x3d1fd4=_0x3d1fd4-0x18c;const _0x11dd1a=a175_0x11dd();let _0x2c69b1=_0x11dd1a[_0x3d1fd4];return _0x2c69b1;}function a175_0x11dd(){const _0x138d2d=['20JqsZZH','once','383538EnPhMf','1010610OaFjqJ','SIGINT','957393VlEzHj','8VVXKYb','8670910EVjERU','11MjMVtK','1245405TwTGrf','1XlFstN','exit','181816ZtXWTO','69423AIIGaK','then'];a175_0x11dd=function(){return _0x138d2d;};return a175_0x11dd();}
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 +1 @@
1
- function a176_0x2093(_0x2f1c34,_0x45c7a5){_0x2f1c34=_0x2f1c34-0x1dd;const _0x50fd98=a176_0x50fd();let _0x20931f=_0x50fd98[_0x2f1c34];return _0x20931f;}const a176_0x236000=a176_0x2093;(function(_0x5850ff,_0x1048b4){const _0x3056d1=a176_0x2093,_0x4af3d1=_0x5850ff();while(!![]){try{const _0x1b73dd=parseInt(_0x3056d1(0x1e8))/0x1*(parseInt(_0x3056d1(0x1ec))/0x2)+parseInt(_0x3056d1(0x1e4))/0x3*(parseInt(_0x3056d1(0x1e6))/0x4)+-parseInt(_0x3056d1(0x1e2))/0x5+-parseInt(_0x3056d1(0x1e7))/0x6+parseInt(_0x3056d1(0x1de))/0x7*(-parseInt(_0x3056d1(0x1e9))/0x8)+parseInt(_0x3056d1(0x1e0))/0x9+parseInt(_0x3056d1(0x1ed))/0xa*(parseInt(_0x3056d1(0x1df))/0xb);if(_0x1b73dd===_0x1048b4)break;else _0x4af3d1['push'](_0x4af3d1['shift']());}catch(_0x5c1d85){_0x4af3d1['push'](_0x4af3d1['shift']());}}}(a176_0x50fd,0x436ee));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a176_0x50fd(){const _0x470e5b=['version','215356BgstnM','10oougvh','traceName','841134QHPEaO','6429709OaTPlY','2754936QkTaeV','spanName','2695530aFlvuR','traceparent','2067MoQXof','rabetbase-cli','764gZPoDo','1166556BqXsCm','1PzKPUf','8FsMeHb','manual'];a176_0x50fd=function(){return _0x470e5b;};return a176_0x50fd();}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a176_0x236000(0x1e5);export async function sendCliTraceLog(_0xec9873){const _0x505770=a176_0x236000;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0xec9873[_0x505770(0x1dd)]??DEFAULT_TRACE_NAME,'version':_0xec9873[_0x505770(0x1eb)]??getCliVersion(),'spanName':_0xec9873[_0x505770(0x1e1)],'eventType':_0x505770(0x1ea),'logData':_0xec9873['logData'],..._0xec9873[_0x505770(0x1e3)]&&{'traceparent':_0xec9873[_0x505770(0x1e3)]}});}
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 +1 @@
1
- function a177_0x3169(){const _0x368774=['4112820INoZDz','description','1441400yaIVCY','45WqnkIQ','598658oyqpBO','platform-issue-log-collect','324roAcnE','title','546WnhoMZ','756255RXEHzS','3536159pJMMYi','3aIHpAf','53046jFbEFn','13850igAjVU','12pChYVW'];a177_0x3169=function(){return _0x368774;};return a177_0x3169();}const a177_0x3579f7=a177_0x215c;function a177_0x215c(_0xccf6ef,_0x2c9fc0){_0xccf6ef=_0xccf6ef-0x19f;const _0x316939=a177_0x3169();let _0x215c56=_0x316939[_0xccf6ef];return _0x215c56;}(function(_0xc88064,_0x3c7f02){const _0x2991f9=a177_0x215c,_0x375485=_0xc88064();while(!![]){try{const _0x42436e=parseInt(_0x2991f9(0x1ad))/0x1+-parseInt(_0x2991f9(0x1a8))/0x2*(-parseInt(_0x2991f9(0x1a0))/0x3)+parseInt(_0x2991f9(0x1aa))/0x4*(-parseInt(_0x2991f9(0x1a2))/0x5)+-parseInt(_0x2991f9(0x1a1))/0x6*(-parseInt(_0x2991f9(0x1ac))/0x7)+-parseInt(_0x2991f9(0x1a6))/0x8*(parseInt(_0x2991f9(0x1a7))/0x9)+-parseInt(_0x2991f9(0x1a4))/0xa+parseInt(_0x2991f9(0x19f))/0xb*(parseInt(_0x2991f9(0x1a3))/0xc);if(_0x42436e===_0x3c7f02)break;else _0x375485['push'](_0x375485['shift']());}catch(_0x19dab2){_0x375485['push'](_0x375485['shift']());}}}(a177_0x3169,0x816cc));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a177_0x3579f7(0x1a9);export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';export async function sendPlatformIssueCollectLog(_0x8926bf){const _0x22d99a=a177_0x3579f7;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x8926bf[_0x22d99a(0x1ab)],'issue.description':_0x8926bf[_0x22d99a(0x1a5)]}});}
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)]}});}