@lovrabet/rabetbase-cli 2.1.7-beta.9 → 2.1.8

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 (196) 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/index.js +1 -1
  54. package/lib/commands/dataset/link-create.js +1 -1
  55. package/lib/commands/dataset/link-delete.js +1 -1
  56. package/lib/commands/dataset/link-shared.js +1 -1
  57. package/lib/commands/dataset/link-update.js +1 -1
  58. package/lib/commands/dataset/links.js +1 -1
  59. package/lib/commands/dataset/list.js +1 -1
  60. package/lib/commands/dataset/operations.js +1 -1
  61. package/lib/commands/db/analyze-cancel.js +1 -1
  62. package/lib/commands/db/analyze-start.js +1 -1
  63. package/lib/commands/db/analyze-status.js +1 -1
  64. package/lib/commands/db/create.js +1 -1
  65. package/lib/commands/db/delete.js +1 -1
  66. package/lib/commands/db/detail.js +1 -1
  67. package/lib/commands/db/diff.js +1 -1
  68. package/lib/commands/db/index.js +1 -1
  69. package/lib/commands/db/list.js +1 -1
  70. package/lib/commands/db/shared.js +1 -1
  71. package/lib/commands/db/tables.js +1 -1
  72. package/lib/commands/db/test.js +1 -1
  73. package/lib/commands/db/update.js +1 -1
  74. package/lib/commands/doctor.js +1 -1
  75. package/lib/commands/init/index.js +1 -1
  76. package/lib/commands/issue/index.js +1 -1
  77. package/lib/commands/issue/report.js +1 -1
  78. package/lib/commands/logs/index.js +1 -1
  79. package/lib/commands/menu/index.js +1 -1
  80. package/lib/commands/menu/shared/compare-table.js +1 -1
  81. package/lib/commands/menu/shared/index.js +1 -1
  82. package/lib/commands/menu/shared/inquirer.js +1 -1
  83. package/lib/commands/menu/shared/local-pages.js +1 -1
  84. package/lib/commands/menu/shared/logic.js +1 -1
  85. package/lib/commands/menu/shared/service.js +1 -1
  86. package/lib/commands/menu/shared/sync-core.js +1 -1
  87. package/lib/commands/menu/shared/update-core.js +1 -1
  88. package/lib/commands/menu/shared/valid-url.js +1 -1
  89. package/lib/commands/menu/sync.js +1 -1
  90. package/lib/commands/menu/update.js +1 -1
  91. package/lib/commands/page/generate-start.js +1 -1
  92. package/lib/commands/page/generate-status.js +1 -1
  93. package/lib/commands/page/index.js +1 -1
  94. package/lib/commands/page/pull.js +1 -1
  95. package/lib/commands/page/push.js +1 -1
  96. package/lib/commands/page/shared.js +1 -1
  97. package/lib/commands/page/standard-page-status.js +1 -1
  98. package/lib/commands/page/sync.js +1 -1
  99. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  100. package/lib/commands/project/create/format-elapsed.js +1 -1
  101. package/lib/commands/project/create/main.js +1 -1
  102. package/lib/commands/project/create/non-interactive.js +1 -1
  103. package/lib/commands/project/create/project-template-path.js +1 -1
  104. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  105. package/lib/commands/project/create/use-format-code.js +1 -1
  106. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  107. package/lib/commands/project/index.js +1 -1
  108. package/lib/commands/project/init.js +1 -1
  109. package/lib/commands/project/upgrade.js +1 -1
  110. package/lib/commands/registry.js +1 -1
  111. package/lib/commands/run/index.js +1 -1
  112. package/lib/commands/schema.js +1 -1
  113. package/lib/commands/skill/index.js +1 -1
  114. package/lib/commands/sql/create.js +1 -1
  115. package/lib/commands/sql/delete.js +1 -1
  116. package/lib/commands/sql/detail.js +1 -1
  117. package/lib/commands/sql/exec.js +1 -1
  118. package/lib/commands/sql/index.js +1 -1
  119. package/lib/commands/sql/list.js +1 -1
  120. package/lib/commands/sql/pull.js +1 -1
  121. package/lib/commands/sql/push.js +1 -1
  122. package/lib/commands/sql/save.js +1 -1
  123. package/lib/commands/sql/shared.js +1 -1
  124. package/lib/commands/sql/status.js +1 -1
  125. package/lib/commands/sql/validate.js +1 -1
  126. package/lib/config/schema.js +1 -1
  127. package/lib/constant/cdn.js +1 -1
  128. package/lib/constant/cli.js +1 -1
  129. package/lib/constant/defaults.js +1 -1
  130. package/lib/constant/domain.js +1 -1
  131. package/lib/constant/env.js +1 -1
  132. package/lib/constant/output.js +1 -1
  133. package/lib/constant/paths.js +1 -1
  134. package/lib/constant/risk.js +1 -1
  135. package/lib/context.js +1 -1
  136. package/lib/core/alias-resolver.js +1 -1
  137. package/lib/core/api-client.js +1 -1
  138. package/lib/core/bff/config.js +1 -1
  139. package/lib/core/bff/file-system.js +1 -1
  140. package/lib/core/bff/hash.js +1 -1
  141. package/lib/core/bff/lock.js +1 -1
  142. package/lib/core/bff/utils.js +1 -1
  143. package/lib/core/db-resolver.js +1 -1
  144. package/lib/core/page/file-system.js +1 -1
  145. package/lib/core/page/hash.js +1 -1
  146. package/lib/core/page/lock.js +1 -1
  147. package/lib/core/sql-sync/config.js +1 -1
  148. package/lib/core/sql-sync/file-system.js +1 -1
  149. package/lib/core/sql-sync/hash.js +1 -1
  150. package/lib/core/sql-sync/lock.js +1 -1
  151. package/lib/core/sql-sync/utils.js +1 -1
  152. package/lib/core/sql-validator.js +1 -1
  153. package/lib/errors.js +1 -1
  154. package/lib/framework/build-all-flags.js +1 -1
  155. package/lib/framework/flags.js +1 -1
  156. package/lib/framework/help.js +1 -1
  157. package/lib/framework/index.js +1 -1
  158. package/lib/framework/output.js +1 -1
  159. package/lib/framework/response.js +1 -1
  160. package/lib/framework/runner-alias.js +1 -1
  161. package/lib/framework/runner.js +1 -1
  162. package/lib/framework/schema-export.js +1 -1
  163. package/lib/framework/types.js +1 -1
  164. package/lib/generated/build-info.js +1 -1
  165. package/lib/help.js +1 -1
  166. package/lib/skills/main.js +1 -1
  167. package/lib/skills/npx-skills-add.js +1 -1
  168. package/lib/telemetry/cli-command-trace.js +1 -1
  169. package/lib/telemetry/cli-help-trace.js +1 -1
  170. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  171. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  172. package/lib/telemetry/send-cli-trace-log.js +1 -1
  173. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  174. package/lib/utils/ai_config.js +1 -1
  175. package/lib/utils/apply-jq-filter.js +1 -1
  176. package/lib/utils/cdn-config.js +1 -1
  177. package/lib/utils/check-sdk-version.js +1 -1
  178. package/lib/utils/cli-version-check.js +1 -1
  179. package/lib/utils/cli-version-policy.js +1 -1
  180. package/lib/utils/config.js +1 -1
  181. package/lib/utils/copy-directory.js +1 -1
  182. package/lib/utils/entity-with-id.js +1 -1
  183. package/lib/utils/file-utils.js +1 -1
  184. package/lib/utils/guides-cdn.js +1 -1
  185. package/lib/utils/http-client.js +1 -1
  186. package/lib/utils/is-non-interactive.js +1 -1
  187. package/lib/utils/logger.js +1 -1
  188. package/lib/utils/params.js +1 -1
  189. package/lib/utils/platform.js +1 -1
  190. package/lib/utils/rules-cdn.js +1 -1
  191. package/lib/utils/sleep.js +1 -1
  192. package/lib/utils/template-replacer.js +1 -1
  193. package/lib/utils/version.js +1 -1
  194. package/lib/utils/with-active-cookie.js +1 -1
  195. package/lib/utils/write-cli-side-channel.js +1 -1
  196. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0xb068ed,_0x4609c0){const _0x4121b6=a151_0x421f,_0x64b9b9=_0xb068ed();while(!![]){try{const _0x5a60c8=-parseInt(_0x4121b6(0x1b1))/0x1*(-parseInt(_0x4121b6(0x1bd))/0x2)+-parseInt(_0x4121b6(0x1bb))/0x3*(-parseInt(_0x4121b6(0x1bc))/0x4)+-parseInt(_0x4121b6(0x1ba))/0x5*(parseInt(_0x4121b6(0x1b7))/0x6)+parseInt(_0x4121b6(0x1b3))/0x7*(-parseInt(_0x4121b6(0x1b6))/0x8)+parseInt(_0x4121b6(0x1b0))/0x9*(parseInt(_0x4121b6(0x1be))/0xa)+-parseInt(_0x4121b6(0x1b2))/0xb*(parseInt(_0x4121b6(0x1b9))/0xc)+-parseInt(_0x4121b6(0x1b4))/0xd*(-parseInt(_0x4121b6(0x1c0))/0xe);if(_0x5a60c8===_0x4609c0)break;else _0x64b9b9['push'](_0x64b9b9['shift']());}catch(_0x541558){_0x64b9b9['push'](_0x64b9b9['shift']());}}}(a151_0x49dc,0xde7c3));function a151_0x421f(_0x2763e0,_0x464b58){_0x2763e0=_0x2763e0-0x1af;const _0x49dc8c=a151_0x49dc();let _0x421f60=_0x49dc8c[_0x2763e0];return _0x421f60;}import{readFile}from'node:fs/promises';import a151_0x490e8e from'node:crypto';export function computeSqlContentHash(_0x4f71bd){const _0x5cf186=a151_0x421f;return a151_0x490e8e[_0x5cf186(0x1bf)]('md5')[_0x5cf186(0x1af)](_0x4f71bd)[_0x5cf186(0x1b8)](_0x5cf186(0x1b5));}function a151_0x49dc(){const _0x42b720=['createHash','5968564BaugSh','update','954uFZvSb','1crQazk','19305077DqJsjx','7vykXdT','65qmTrwg','hex','2397592HKMyWw','283002bCUvvS','digest','12pTqtYr','165kgZaVJ','6ANOAxC','2060484dChVyq','647080ISMzyd','97840eSNpdv'];a151_0x49dc=function(){return _0x42b720;};return a151_0x49dc();}export async function computeSqlFileHash(_0x3e457b){const _0x228374=await readFile(_0x3e457b,'utf8');return computeSqlContentHash(_0x228374);}
1
+ function a151_0x3600(_0x2dc668,_0x306312){_0x2dc668=_0x2dc668-0x1ab;const _0x11afe5=a151_0x11af();let _0x360005=_0x11afe5[_0x2dc668];return _0x360005;}(function(_0xd5c7bb,_0x3396ec){const _0x6b1b92=a151_0x3600,_0x43b097=_0xd5c7bb();while(!![]){try{const _0x3b226a=-parseInt(_0x6b1b92(0x1b7))/0x1*(-parseInt(_0x6b1b92(0x1ad))/0x2)+parseInt(_0x6b1b92(0x1b2))/0x3+parseInt(_0x6b1b92(0x1b6))/0x4*(parseInt(_0x6b1b92(0x1b5))/0x5)+parseInt(_0x6b1b92(0x1b3))/0x6*(parseInt(_0x6b1b92(0x1ab))/0x7)+-parseInt(_0x6b1b92(0x1b0))/0x8+parseInt(_0x6b1b92(0x1ae))/0x9*(-parseInt(_0x6b1b92(0x1af))/0xa)+-parseInt(_0x6b1b92(0x1b4))/0xb*(parseInt(_0x6b1b92(0x1ba))/0xc);if(_0x3b226a===_0x3396ec)break;else _0x43b097['push'](_0x43b097['shift']());}catch(_0x44cac7){_0x43b097['push'](_0x43b097['shift']());}}}(a151_0x11af,0x68882));import{readFile}from'node:fs/promises';function a151_0x11af(){const _0x145efc=['18211TYavGZ','utf8','digest','21394356ijzmmw','49jwkyhl','update','62ibueWJ','4527jcZeIj','1880GEhmEb','421672izPLyV','createHash','1967835ANHIlv','718056ZRPoJt','11JZDpDz','5KtkgBM','1200320OrsjRT'];a151_0x11af=function(){return _0x145efc;};return a151_0x11af();}import a151_0x397670 from'node:crypto';export function computeSqlContentHash(_0x1873af){const _0x37c99b=a151_0x3600;return a151_0x397670[_0x37c99b(0x1b1)]('md5')[_0x37c99b(0x1ac)](_0x1873af)[_0x37c99b(0x1b9)]('hex');}export async function computeSqlFileHash(_0x35bca7){const _0x453d3d=a151_0x3600,_0x1073ce=await readFile(_0x35bca7,_0x453d3d(0x1b8));return computeSqlContentHash(_0x1073ce);}
@@ -1 +1 @@
1
- (function(_0x2ea1d6,_0x52b4af){const _0x2a6a4d=a152_0x434c,_0x5e09b1=_0x2ea1d6();while(!![]){try{const _0x2b328f=parseInt(_0x2a6a4d(0x104))/0x1*(-parseInt(_0x2a6a4d(0x112))/0x2)+parseInt(_0x2a6a4d(0x111))/0x3*(parseInt(_0x2a6a4d(0x106))/0x4)+parseInt(_0x2a6a4d(0x108))/0x5+parseInt(_0x2a6a4d(0x10a))/0x6+-parseInt(_0x2a6a4d(0x10e))/0x7+-parseInt(_0x2a6a4d(0x110))/0x8*(parseInt(_0x2a6a4d(0x10b))/0x9)+parseInt(_0x2a6a4d(0x105))/0xa;if(_0x2b328f===_0x52b4af)break;else _0x5e09b1['push'](_0x5e09b1['shift']());}catch(_0x5b1185){_0x5e09b1['push'](_0x5e09b1['shift']());}}}(a152_0x2a71,0xa6b49));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x2edae8,_0x105638,_0x483736,_0x50df1a){const _0x162b38=a152_0x434c,_0x457396=_0x2edae8??createEmptySqlLock();let _0x8ac532=_0x457396['apps'][_0x105638];if(!_0x8ac532)return _0x8ac532={'sqlRoot':_0x483736,'lastSync':'','sqls':{}},_0x457396['apps'][_0x105638]=_0x8ac532,{'lockData':_0x457396,'appLock':_0x8ac532};if(!_0x8ac532['sqlRoot'])_0x8ac532[_0x162b38(0x109)]=_0x483736;else{if(_0x8ac532[_0x162b38(0x109)]!==_0x483736)throw new Error(_0x50df1a+_0x162b38(0xff)+_0x483736+_0x162b38(0x100)+_0x8ac532[_0x162b38(0x109)]+'\x22.\x20'+_0x162b38(0x103));}return!_0x8ac532[_0x162b38(0x10c)]&&(_0x8ac532[_0x162b38(0x10c)]={}),!_0x8ac532[_0x162b38(0x107)]&&(_0x8ac532['lastSync']=''),{'lockData':_0x457396,'appLock':_0x8ac532};}function a152_0x2a71(){const _0x28767b=['140yglbKC','lastSync','698830ovYBvs','sqlRoot','7467684iILPlg','13743vUVSPG','sqls','ENOENT','6956047PZjqGg','code','3416uwsyCx','19137gkuiGU','122NrtFDu',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','\x22\x20vs\x20lock\x20\x22','stringify','utf8','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','5071QgOQMo','10302610gTcrLY'];a152_0x2a71=function(){return _0x28767b;};return a152_0x2a71();}export async function readSqlLockFile(_0x2cced1){const _0x60158d=a152_0x434c;try{const _0x188611=await readFile(_0x2cced1,_0x60158d(0x102));return JSON['parse'](_0x188611);}catch(_0x11b640){if(_0x11b640[_0x60158d(0x10f)]===_0x60158d(0x10d))return null;throw new Error('Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'+String(_0x11b640));}}function a152_0x434c(_0x904dec,_0x4d41ee){_0x904dec=_0x904dec-0xff;const _0x2a71a6=a152_0x2a71();let _0x434c3b=_0x2a71a6[_0x904dec];return _0x434c3b;}export async function writeSqlLockFile(_0x5b9f32,_0x27b6ea){const _0x5c83bd=a152_0x434c;await mkdir(dirname(_0x5b9f32),{'recursive':!![]}),await writeFile(_0x5b9f32,JSON[_0x5c83bd(0x101)](_0x27b6ea,null,0x2),'utf8');}
1
+ (function(_0x4f4c62,_0x11df57){const _0x1991c8=a152_0x593c,_0x9dc9eb=_0x4f4c62();while(!![]){try{const _0x281f53=-parseInt(_0x1991c8(0x149))/0x1+-parseInt(_0x1991c8(0x137))/0x2+parseInt(_0x1991c8(0x147))/0x3*(parseInt(_0x1991c8(0x148))/0x4)+-parseInt(_0x1991c8(0x13e))/0x5+parseInt(_0x1991c8(0x13f))/0x6+parseInt(_0x1991c8(0x13b))/0x7*(-parseInt(_0x1991c8(0x139))/0x8)+-parseInt(_0x1991c8(0x144))/0x9*(-parseInt(_0x1991c8(0x140))/0xa);if(_0x281f53===_0x11df57)break;else _0x9dc9eb['push'](_0x9dc9eb['shift']());}catch(_0x3e617f){_0x9dc9eb['push'](_0x9dc9eb['shift']());}}}(a152_0x444b,0x1f93e));import{mkdir,readFile,writeFile}from'node:fs/promises';function a152_0x444b(){const _0x285203=['296WbarJK','58376DKCWWK','sqls','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','403464EujLsD','apps','48MMKNmm','lastSync','149443iTRCpy','utf8','\x22\x20vs\x20lock\x20\x22','1203625QeQLbd','1055718SfZGvr','240yzCcOp','code','ENOENT',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','198333rISHQj','sqlRoot','stringify','2166JyQbAY'];a152_0x444b=function(){return _0x285203;};return a152_0x444b();}import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0xd4fba4,_0x4a2f06,_0xa56759,_0x6c271a){const _0x231ce=a152_0x593c,_0x6529b7=_0xd4fba4??createEmptySqlLock();let _0x56dabc=_0x6529b7[_0x231ce(0x138)][_0x4a2f06];if(!_0x56dabc)return _0x56dabc={'sqlRoot':_0xa56759,'lastSync':'','sqls':{}},_0x6529b7[_0x231ce(0x138)][_0x4a2f06]=_0x56dabc,{'lockData':_0x6529b7,'appLock':_0x56dabc};if(!_0x56dabc['sqlRoot'])_0x56dabc[_0x231ce(0x145)]=_0xa56759;else{if(_0x56dabc[_0x231ce(0x145)]!==_0xa56759)throw new Error(_0x6c271a+_0x231ce(0x143)+_0xa56759+_0x231ce(0x13d)+_0x56dabc[_0x231ce(0x145)]+'\x22.\x20'+_0x231ce(0x136));}return!_0x56dabc[_0x231ce(0x14a)]&&(_0x56dabc[_0x231ce(0x14a)]={}),!_0x56dabc[_0x231ce(0x13a)]&&(_0x56dabc[_0x231ce(0x13a)]=''),{'lockData':_0x6529b7,'appLock':_0x56dabc};}export async function readSqlLockFile(_0x207eb3){const _0x2073ea=a152_0x593c;try{const _0x4c25c2=await readFile(_0x207eb3,'utf8');return JSON['parse'](_0x4c25c2);}catch(_0x2e98db){if(_0x2e98db[_0x2073ea(0x141)]===_0x2073ea(0x142))return null;throw new Error('Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'+String(_0x2e98db));}}function a152_0x593c(_0x15dc61,_0x37ebe4){_0x15dc61=_0x15dc61-0x136;const _0x444bc4=a152_0x444b();let _0x593cb0=_0x444bc4[_0x15dc61];return _0x593cb0;}export async function writeSqlLockFile(_0x282ccd,_0x2729a5){const _0x4e37df=a152_0x593c;await mkdir(dirname(_0x282ccd),{'recursive':!![]}),await writeFile(_0x282ccd,JSON[_0x4e37df(0x146)](_0x2729a5,null,0x2),_0x4e37df(0x13c));}
@@ -1 +1 @@
1
- (function(_0x1c2b99,_0x591d2d){const _0x5c8e04=a154_0x20d8,_0x5ebb85=_0x1c2b99();while(!![]){try{const _0x9b0338=-parseInt(_0x5c8e04(0x1f0))/0x1+parseInt(_0x5c8e04(0x1e9))/0x2+-parseInt(_0x5c8e04(0x1fa))/0x3+-parseInt(_0x5c8e04(0x1f6))/0x4*(parseInt(_0x5c8e04(0x1f9))/0x5)+parseInt(_0x5c8e04(0x1f1))/0x6*(parseInt(_0x5c8e04(0x1ea))/0x7)+-parseInt(_0x5c8e04(0x1ef))/0x8+parseInt(_0x5c8e04(0x1fb))/0x9*(parseInt(_0x5c8e04(0x1ed))/0xa);if(_0x9b0338===_0x591d2d)break;else _0x5ebb85['push'](_0x5ebb85['shift']());}catch(_0x5f0a8e){_0x5ebb85['push'](_0x5ebb85['shift']());}}}(a154_0x43ff,0x1bcfc));function a154_0x43ff(){const _0x300b75=['17966HsNCxw','287IbdKGW','db-','.sql','3983040IPIFjW','unknown-sql','558352OXLhTC','87972eokYfy','6312yIblue','.xml','sql','trim','replace','4DDVZKd','unknown-db','trimStart','434990SXiGXX','275217vPufFz','9boDKNP'];a154_0x43ff=function(){return _0x300b75;};return a154_0x43ff();}export function detectSqlMode(_0x413dc8){const _0x3f6c42=a154_0x20d8,_0x396a3c=_0x413dc8[_0x3f6c42(0x1f8)]();if(/^<(select|insert|update|delete)\b/i['test'](_0x396a3c))return'mybatisXml';return _0x3f6c42(0x1f3);}function a154_0x20d8(_0x11e6f3,_0x3b5c96){_0x11e6f3=_0x11e6f3-0x1e9;const _0x43ff14=a154_0x43ff();let _0x20d8e2=_0x43ff14[_0x11e6f3];return _0x20d8e2;}export function getSqlFileExtension(_0x176f4b){const _0x41257b=a154_0x20d8;return _0x176f4b==='mybatisXml'?_0x41257b(0x1f2):_0x41257b(0x1ec);}export function buildDefaultSqlFileName(_0x13e540,_0x3dc4e7){return''+_0x13e540+getSqlFileExtension(_0x3dc4e7);}export function sanitizeSqlPathSegment(_0x5df6de,_0xcf7e57){const _0xef67aa=a154_0x20d8,_0x2a27a6=String(_0x5df6de??'')[_0xef67aa(0x1f4)](),_0x45b7cd=_0x2a27a6[_0xef67aa(0x1f5)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')['replace'](/\s+/g,'-')[_0xef67aa(0x1f5)](/-+/g,'-')['replace'](/^\.+/,'')['replace'](/\.+$/,'')['replace'](/^-+/,'')[_0xef67aa(0x1f5)](/-+$/,'');return _0x45b7cd||_0xcf7e57;}export function buildDbDirectoryName(_0x21fd6a,_0x58c7ce){const _0x4c49fd=a154_0x20d8;return sanitizeSqlPathSegment(_0x21fd6a,_0x58c7ce!=null?_0x4c49fd(0x1eb)+_0x58c7ce:_0x4c49fd(0x1f7));}export function buildSqlRelativePath(_0x2f9a57,_0x53c0e0,_0x4ac6ff,_0x44a191,_0x451a71){const _0x3d123b=a154_0x20d8,_0x122dbf=buildDbDirectoryName(_0x4ac6ff,_0x451a71),_0x15b46b=sanitizeSqlPathSegment(_0x2f9a57,_0x3d123b(0x1ee)),_0x4103e1=sanitizeSqlPathSegment(_0x53c0e0,_0x15b46b);return _0x122dbf+'/'+_0x15b46b+'_'+_0x4103e1+getSqlFileExtension(_0x44a191);}
1
+ (function(_0x1f4bd1,_0x3d27d3){const _0x3f3c75=a154_0x5023,_0x3f6ae3=_0x1f4bd1();while(!![]){try{const _0x131256=-parseInt(_0x3f3c75(0xfa))/0x1+-parseInt(_0x3f3c75(0xf8))/0x2+-parseInt(_0x3f3c75(0xef))/0x3*(-parseInt(_0x3f3c75(0xec))/0x4)+parseInt(_0x3f3c75(0xfd))/0x5*(parseInt(_0x3f3c75(0xee))/0x6)+parseInt(_0x3f3c75(0xfc))/0x7*(-parseInt(_0x3f3c75(0xf6))/0x8)+parseInt(_0x3f3c75(0xf0))/0x9*(-parseInt(_0x3f3c75(0xf1))/0xa)+parseInt(_0x3f3c75(0xfb))/0xb;if(_0x131256===_0x3d27d3)break;else _0x3f6ae3['push'](_0x3f6ae3['shift']());}catch(_0x5703ce){_0x3f6ae3['push'](_0x3f6ae3['shift']());}}}(a154_0x4e3a,0xcd511));function a154_0x4e3a(){const _0x443589=['1216116BNQFhx','43322796uniijA','14gmHvhG','2473690sMBMFM','unknown-db','4273804yTiTBS','replace','6CZfEaM','3PuPLpv','199296fWElqV','560ldBvKf','mybatisXml','.sql','trim','.xml','3756208exGUum','sql','2530832RVmSDG','unknown-sql'];a154_0x4e3a=function(){return _0x443589;};return a154_0x4e3a();}export function detectSqlMode(_0x137863){const _0x4b6693=a154_0x5023,_0x422d90=_0x137863['trimStart']();if(/^<(select|insert|update|delete)\b/i['test'](_0x422d90))return _0x4b6693(0xf2);return _0x4b6693(0xf7);}export function getSqlFileExtension(_0x296e7a){const _0x343681=a154_0x5023;return _0x296e7a==='mybatisXml'?_0x343681(0xf5):_0x343681(0xf3);}function a154_0x5023(_0x23a5fa,_0x5b8b34){_0x23a5fa=_0x23a5fa-0xeb;const _0x4e3a81=a154_0x4e3a();let _0x50236d=_0x4e3a81[_0x23a5fa];return _0x50236d;}export function buildDefaultSqlFileName(_0x16b954,_0x62cb68){return''+_0x16b954+getSqlFileExtension(_0x62cb68);}export function sanitizeSqlPathSegment(_0x2e350e,_0xaac6a3){const _0x55b10c=a154_0x5023,_0x3468fe=String(_0x2e350e??'')[_0x55b10c(0xf4)](),_0x319b25=_0x3468fe[_0x55b10c(0xed)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x55b10c(0xed)](/\s+/g,'-')[_0x55b10c(0xed)](/-+/g,'-')[_0x55b10c(0xed)](/^\.+/,'')[_0x55b10c(0xed)](/\.+$/,'')[_0x55b10c(0xed)](/^-+/,'')[_0x55b10c(0xed)](/-+$/,'');return _0x319b25||_0xaac6a3;}export function buildDbDirectoryName(_0x2f1af5,_0x259bbe){const _0x322c21=a154_0x5023;return sanitizeSqlPathSegment(_0x2f1af5,_0x259bbe!=null?'db-'+_0x259bbe:_0x322c21(0xeb));}export function buildSqlRelativePath(_0x2de23b,_0x20f903,_0x4091b1,_0x823fa,_0x464eac){const _0x4174b6=a154_0x5023,_0x4a91c1=buildDbDirectoryName(_0x4091b1,_0x464eac),_0x30ff3e=sanitizeSqlPathSegment(_0x2de23b,_0x4174b6(0xf9)),_0x34c904=sanitizeSqlPathSegment(_0x20f903,_0x30ff3e);return _0x4a91c1+'/'+_0x30ff3e+'_'+_0x34c904+getSqlFileExtension(_0x823fa);}
@@ -1 +1 @@
1
- (function(_0x752081,_0x37c4fc){const _0x58012a=a155_0x4b9f,_0xe65ea6=_0x752081();while(!![]){try{const _0x9ecfcb=-parseInt(_0x58012a(0x1e2))/0x1*(parseInt(_0x58012a(0x1e8))/0x2)+parseInt(_0x58012a(0x1dd))/0x3+parseInt(_0x58012a(0x1f2))/0x4*(-parseInt(_0x58012a(0x1df))/0x5)+-parseInt(_0x58012a(0x1f6))/0x6+parseInt(_0x58012a(0x1e5))/0x7+parseInt(_0x58012a(0x1dc))/0x8+-parseInt(_0x58012a(0x1e4))/0x9;if(_0x9ecfcb===_0x37c4fc)break;else _0xe65ea6['push'](_0xe65ea6['shift']());}catch(_0x443090){_0xe65ea6['push'](_0xe65ea6['shift']());}}}(a155_0x8171,0xa4238));function a155_0x4b9f(_0x3a6c66,_0x30a8ca){_0x3a6c66=_0x3a6c66-0x1da;const _0x8171a6=a155_0x8171();let _0x4b9fa0=_0x8171a6[_0x3a6c66];return _0x4b9fa0;}export function detectSqlType(_0x4be9dc){const _0x225a1e=a155_0x4b9f;if(!_0x4be9dc?.[_0x225a1e(0x1e6)]())return{'type':_0x225a1e(0x200),'isSelectOnly':![],'isDangerous':![],'reason':_0x225a1e(0x1fd)};const _0x184ca6=_0x4be9dc[_0x225a1e(0x1fc)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x225a1e(0x1fc)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x225a1e(0x1fc)](/\/\*[\s\S]*?\*\//g,'')[_0x225a1e(0x1e6)](),_0x431800=_0x184ca6[_0x225a1e(0x1f5)]('\x0a');let _0x225037='';for(const _0x1d2ea5 of _0x431800){const _0x5bcfdc=_0x1d2ea5[_0x225a1e(0x1e6)]();if(!_0x5bcfdc||_0x5bcfdc['startsWith']('--')||_0x5bcfdc[_0x225a1e(0x1ed)]('/*'))continue;_0x225037=_0x5bcfdc;break;}const _0x293797=_0x225037[_0x225a1e(0x1f8)]();if(_0x293797['startsWith'](_0x225a1e(0x1ff))||_0x293797[_0x225a1e(0x1ed)](_0x225a1e(0x1ee))){const _0x21ad29=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x225a1e(0x1fa)](_0x184ca6);return{'type':_0x225a1e(0x1ff),'isSelectOnly':!_0x21ad29,'isDangerous':_0x21ad29,'reason':_0x21ad29?_0x225a1e(0x1db):undefined};}if(_0x293797[_0x225a1e(0x1ed)](_0x225a1e(0x1de)))return{'type':_0x225a1e(0x1de),'isSelectOnly':![],'isDangerous':![]};if(_0x293797[_0x225a1e(0x1ed)](_0x225a1e(0x1e1)))return{'type':_0x225a1e(0x1e1),'isSelectOnly':![],'isDangerous':![]};if(_0x293797[_0x225a1e(0x1ed)]('DELETE'))return{'type':_0x225a1e(0x1eb),'isSelectOnly':![],'isDangerous':!![],'reason':_0x225a1e(0x1f7)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x293797))return{'type':_0x225a1e(0x1fe),'isSelectOnly':![],'isDangerous':!![],'reason':_0x225a1e(0x1f9)};return{'type':_0x225a1e(0x200),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x4605b3){const _0x1fca28=a155_0x4b9f,_0x5a6bed=_0x4605b3[_0x1fca28(0x1fc)](/#\{[^}]*\}/g,'?')[_0x1fca28(0x1fc)](/\$\{[^}]*\}/g,'?')[_0x1fca28(0x1fc)](/'[^']*'/g,'\x27\x27')[_0x1fca28(0x1fc)](/--.*$/gm,'')[_0x1fca28(0x1fc)](/\/\*[\s\S]*?\*\//g,''),_0x2960a1=[],_0x3764a5=_0x5a6bed['match'](/FROM\s+([^\s,)(]+)/i);if(_0x3764a5?.[0x1])_0x2960a1[_0x1fca28(0x1e9)](_0x3764a5[0x1][_0x1fca28(0x1fc)](/[`"]/g,''));for(const _0xf64d72 of _0x5a6bed['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x5229ee=_0xf64d72[0x1]?.['replace'](/[`"]/g,'');if(_0x5229ee&&!_0x2960a1[_0x1fca28(0x1f1)](_0x5229ee))_0x2960a1['push'](_0x5229ee);}const _0x518f5b=_0x5a6bed[_0x1fca28(0x1f3)](/INTO\s+([^\s(]+)/i);if(_0x518f5b?.[0x1]){const _0x208449=_0x518f5b[0x1]['replace'](/[`"]/g,'');if(!_0x2960a1[_0x1fca28(0x1f1)](_0x208449))_0x2960a1[_0x1fca28(0x1e9)](_0x208449);}const _0x30395b=_0x5a6bed[_0x1fca28(0x1f3)](/UPDATE\s+([^\s,)(]+)/i);if(_0x30395b?.[0x1]){const _0xd30a1e=_0x30395b[0x1][_0x1fca28(0x1fc)](/[`"]/g,'');if(!_0x2960a1[_0x1fca28(0x1f1)](_0xd30a1e))_0x2960a1[_0x1fca28(0x1e9)](_0xd30a1e);}return _0x2960a1;}function extractParameters(_0x1a8d01){const _0x46c93d=a155_0x4b9f,_0x5e87d5=new Set();for(const _0x3a1893 of _0x1a8d01[_0x46c93d(0x1f0)](/#\{(\w+)\}/g))if(_0x3a1893[0x1])_0x5e87d5[_0x46c93d(0x1ec)](_0x3a1893[0x1]);for(const _0x44278e of _0x1a8d01[_0x46c93d(0x1f0)](/\$\{(\w+)\}/g))if(_0x44278e[0x1])_0x5e87d5['add'](_0x44278e[0x1]);return Array['from'](_0x5e87d5);}export function validateSql(_0xb2b4a4){const _0x2111d9=a155_0x4b9f,_0x579197=detectSqlType(_0xb2b4a4),_0x55a719=extractTables(_0xb2b4a4),_0x11a59e=extractParameters(_0xb2b4a4);if(_0x579197[_0x2111d9(0x1e0)])return{'valid':![],'sqlType':_0x579197,'tables':_0x55a719,'parameters':_0x11a59e,'message':_0x579197['reason']||_0x579197[_0x2111d9(0x1da)]+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x579197[_0x2111d9(0x1da)]===_0x2111d9(0x200))return{'valid':![],'sqlType':_0x579197,'tables':_0x55a719,'parameters':_0x11a59e,'message':_0x2111d9(0x1fb)};return{'valid':!![],'sqlType':_0x579197,'tables':_0x55a719,'parameters':_0x11a59e,'message':_0x579197[_0x2111d9(0x1da)]+_0x2111d9(0x1ef)+(_0x55a719['length']?_0x55a719[_0x2111d9(0x1ea)](',\x20'):_0x2111d9(0x1f4))+(_0x11a59e[_0x2111d9(0x1e7)]?_0x2111d9(0x1e3)+_0x11a59e[_0x2111d9(0x1ea)](',\x20'):'')};}function a155_0x8171(){const _0x1ce972=['5057718MLozXZ','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','toUpperCase','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','test','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','replace','SQL\x20content\x20is\x20empty','DDL','SELECT','UNKNOWN','type','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','10368544yqTlDz','3445866yEGomA','INSERT','40UzcQmG','isDangerous','UPDATE','32KmdYBt','\x20with\x20parameters:\x20','10732599mCzKTH','8283282wPGyeM','trim','length','17770uqsxLB','push','join','DELETE','add','startsWith','WITH','\x20query\x20targeting\x20','matchAll','includes','317960fSHBQf','match','unknown\x20table(s)','split'];a155_0x8171=function(){return _0x1ce972;};return a155_0x8171();}
1
+ (function(_0x5984bc,_0x2784e1){const _0x202b9a=a155_0x2933,_0x242bd4=_0x5984bc();while(!![]){try{const _0x5b9500=-parseInt(_0x202b9a(0x159))/0x1+parseInt(_0x202b9a(0x16f))/0x2+parseInt(_0x202b9a(0x178))/0x3+-parseInt(_0x202b9a(0x16b))/0x4*(parseInt(_0x202b9a(0x17b))/0x5)+-parseInt(_0x202b9a(0x171))/0x6+parseInt(_0x202b9a(0x15b))/0x7*(-parseInt(_0x202b9a(0x16d))/0x8)+parseInt(_0x202b9a(0x15a))/0x9*(parseInt(_0x202b9a(0x168))/0xa);if(_0x5b9500===_0x2784e1)break;else _0x242bd4['push'](_0x242bd4['shift']());}catch(_0x1a8575){_0x242bd4['push'](_0x242bd4['shift']());}}}(a155_0x4c98,0x43349));export function detectSqlType(_0x16147f){const _0x566d3b=a155_0x2933;if(!_0x16147f?.[_0x566d3b(0x173)]())return{'type':_0x566d3b(0x169),'isSelectOnly':![],'isDangerous':![],'reason':_0x566d3b(0x172)};const _0x3ed2b6=_0x16147f['replace'](/#\{[^}]*\}/g,'?')[_0x566d3b(0x175)](/\$\{[^}]*\}/g,'?')[_0x566d3b(0x175)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x566d3b(0x175)](/\/\*[\s\S]*?\*\//g,'')[_0x566d3b(0x173)](),_0x444a2a=_0x3ed2b6['split']('\x0a');let _0x185f37='';for(const _0x4aaac3 of _0x444a2a){const _0x1a7094=_0x4aaac3[_0x566d3b(0x173)]();if(!_0x1a7094||_0x1a7094[_0x566d3b(0x167)]('--')||_0x1a7094[_0x566d3b(0x167)]('/*'))continue;_0x185f37=_0x1a7094;break;}const _0x600ad4=_0x185f37[_0x566d3b(0x17a)]();if(_0x600ad4[_0x566d3b(0x167)](_0x566d3b(0x160))||_0x600ad4['startsWith'](_0x566d3b(0x17e))){const _0x23e30b=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i['test'](_0x3ed2b6);return{'type':_0x566d3b(0x160),'isSelectOnly':!_0x23e30b,'isDangerous':_0x23e30b,'reason':_0x23e30b?_0x566d3b(0x164):undefined};}if(_0x600ad4['startsWith']('INSERT'))return{'type':_0x566d3b(0x176),'isSelectOnly':![],'isDangerous':![]};if(_0x600ad4[_0x566d3b(0x167)]('UPDATE'))return{'type':_0x566d3b(0x166),'isSelectOnly':![],'isDangerous':![]};if(_0x600ad4[_0x566d3b(0x167)](_0x566d3b(0x161)))return{'type':_0x566d3b(0x161),'isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x566d3b(0x180)](_0x600ad4))return{'type':_0x566d3b(0x15d),'isSelectOnly':![],'isDangerous':!![],'reason':_0x566d3b(0x165)};return{'type':_0x566d3b(0x169),'isSelectOnly':![],'isDangerous':![]};}function a155_0x4c98(){const _0x202fd1=['828918uvgLMM','includes','toUpperCase','20SlPcfR','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','type','WITH','add','test','370339meNmPC','9HQXAwV','101633XiPEop','isDangerous','DDL','\x20with\x20parameters:\x20','\x20query\x20targeting\x20','SELECT','DELETE','from','push','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','UPDATE','startsWith','18023930LrBOVO','UNKNOWN','match','462284JiGLSk','unknown\x20table(s)','288QhrocV','reason','27756lDjDLM','matchAll','2771982rbEKvN','SQL\x20content\x20is\x20empty','trim','length','replace','INSERT','join'];a155_0x4c98=function(){return _0x202fd1;};return a155_0x4c98();}function extractTables(_0x49a8e9){const _0x5c9bb4=a155_0x2933,_0x4d4a23=_0x49a8e9[_0x5c9bb4(0x175)](/#\{[^}]*\}/g,'?')[_0x5c9bb4(0x175)](/\$\{[^}]*\}/g,'?')[_0x5c9bb4(0x175)](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')[_0x5c9bb4(0x175)](/\/\*[\s\S]*?\*\//g,''),_0x4d0842=[],_0xda8397=_0x4d4a23[_0x5c9bb4(0x16a)](/FROM\s+([^\s,)(]+)/i);if(_0xda8397?.[0x1])_0x4d0842['push'](_0xda8397[0x1][_0x5c9bb4(0x175)](/[`"]/g,''));for(const _0x5bf8b5 of _0x4d4a23[_0x5c9bb4(0x170)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x474e91=_0x5bf8b5[0x1]?.[_0x5c9bb4(0x175)](/[`"]/g,'');if(_0x474e91&&!_0x4d0842[_0x5c9bb4(0x179)](_0x474e91))_0x4d0842[_0x5c9bb4(0x163)](_0x474e91);}const _0x1b8e4a=_0x4d4a23[_0x5c9bb4(0x16a)](/INTO\s+([^\s(]+)/i);if(_0x1b8e4a?.[0x1]){const _0x1f1bfe=_0x1b8e4a[0x1][_0x5c9bb4(0x175)](/[`"]/g,'');if(!_0x4d0842[_0x5c9bb4(0x179)](_0x1f1bfe))_0x4d0842[_0x5c9bb4(0x163)](_0x1f1bfe);}const _0x5f3644=_0x4d4a23[_0x5c9bb4(0x16a)](/UPDATE\s+([^\s,)(]+)/i);if(_0x5f3644?.[0x1]){const _0x3a2eac=_0x5f3644[0x1][_0x5c9bb4(0x175)](/[`"]/g,'');if(!_0x4d0842[_0x5c9bb4(0x179)](_0x3a2eac))_0x4d0842[_0x5c9bb4(0x163)](_0x3a2eac);}return _0x4d0842;}function a155_0x2933(_0x3fed7c,_0x464d38){_0x3fed7c=_0x3fed7c-0x159;const _0x4c9845=a155_0x4c98();let _0x2933b6=_0x4c9845[_0x3fed7c];return _0x2933b6;}function extractParameters(_0x4b891d){const _0x57191a=a155_0x2933,_0x1212b0=new Set();for(const _0xde1497 of _0x4b891d[_0x57191a(0x170)](/#\{(\w+)\}/g))if(_0xde1497[0x1])_0x1212b0[_0x57191a(0x17f)](_0xde1497[0x1]);for(const _0x386518 of _0x4b891d[_0x57191a(0x170)](/\$\{(\w+)\}/g))if(_0x386518[0x1])_0x1212b0[_0x57191a(0x17f)](_0x386518[0x1]);return Array[_0x57191a(0x162)](_0x1212b0);}export function validateSql(_0x38ea4f){const _0x5b7f08=a155_0x2933,_0x44558c=detectSqlType(_0x38ea4f),_0x2bfb25=extractTables(_0x38ea4f),_0x22d906=extractParameters(_0x38ea4f);if(_0x44558c[_0x5b7f08(0x15c)])return{'valid':![],'sqlType':_0x44558c,'tables':_0x2bfb25,'parameters':_0x22d906,'message':_0x44558c[_0x5b7f08(0x16e)]||_0x44558c[_0x5b7f08(0x17d)]+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x44558c[_0x5b7f08(0x17d)]===_0x5b7f08(0x169))return{'valid':![],'sqlType':_0x44558c,'tables':_0x2bfb25,'parameters':_0x22d906,'message':_0x5b7f08(0x17c)};return{'valid':!![],'sqlType':_0x44558c,'tables':_0x2bfb25,'parameters':_0x22d906,'message':_0x44558c[_0x5b7f08(0x17d)]+_0x5b7f08(0x15f)+(_0x2bfb25[_0x5b7f08(0x174)]?_0x2bfb25['join'](',\x20'):_0x5b7f08(0x16c))+(_0x22d906['length']?_0x5b7f08(0x15e)+_0x22d906[_0x5b7f08(0x177)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a156_0x53c8f0=a156_0x5033;(function(_0x37f5e0,_0x20f8f8){const _0x2ab92e=a156_0x5033,_0x2fc89f=_0x37f5e0();while(!![]){try{const _0x1bddb0=-parseInt(_0x2ab92e(0x9e))/0x1+parseInt(_0x2ab92e(0x9b))/0x2+-parseInt(_0x2ab92e(0xa2))/0x3*(parseInt(_0x2ab92e(0x99))/0x4)+parseInt(_0x2ab92e(0x96))/0x5+parseInt(_0x2ab92e(0x9f))/0x6+-parseInt(_0x2ab92e(0x97))/0x7*(-parseInt(_0x2ab92e(0xa4))/0x8)+-parseInt(_0x2ab92e(0x9d))/0x9;if(_0x1bddb0===_0x20f8f8)break;else _0x2fc89f['push'](_0x2fc89f['shift']());}catch(_0x2a348e){_0x2fc89f['push'](_0x2fc89f['shift']());}}}(a156_0x10da,0x5de9f));function a156_0x10da(){const _0x19fb55=['\x0a\x20\x20\x20\x20\x20\x20\x20','536170dmjpPd','707bhCfOJ','Set\x20appcode\x20via\x20`','9396gqeDNP','Run\x20`','1366758UAHTSg','Tip:\x20`','9177516PCfLUl','121572QYUsHk','3581616XEicma','join','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','111LJOoQM','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','17848tEDKHG','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.'];a156_0x10da=function(){return _0x19fb55;};return a156_0x10da();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a156_0x5033(_0x4ac4dc,_0x2a5291){_0x4ac4dc=_0x4ac4dc-0x95;const _0x10dacc=a156_0x10da();let _0x503318=_0x10dacc[_0x4ac4dc];return _0x503318;}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a156_0x53c8f0(0x9a)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':[a156_0x53c8f0(0x98)+CLI_BIN_NAME+a156_0x53c8f0(0xa1),a156_0x53c8f0(0x9c)+CLI_BIN_NAME+a156_0x53c8f0(0xa5)][a156_0x53c8f0(0xa0)](a156_0x53c8f0(0x95)),'notInProjectHint':a156_0x53c8f0(0xa3)});
1
+ const a156_0xc44008=a156_0x23cd;(function(_0x2b4e59,_0x3cde6c){const _0x5582e7=a156_0x23cd,_0x51eb5c=_0x2b4e59();while(!![]){try{const _0x1cd606=-parseInt(_0x5582e7(0x9f))/0x1+-parseInt(_0x5582e7(0x9c))/0x2+-parseInt(_0x5582e7(0x95))/0x3*(parseInt(_0x5582e7(0x94))/0x4)+parseInt(_0x5582e7(0x9d))/0x5+parseInt(_0x5582e7(0x99))/0x6*(parseInt(_0x5582e7(0x9b))/0x7)+-parseInt(_0x5582e7(0x9a))/0x8+-parseInt(_0x5582e7(0x96))/0x9*(-parseInt(_0x5582e7(0x97))/0xa);if(_0x1cd606===_0x3cde6c)break;else _0x51eb5c['push'](_0x51eb5c['shift']());}catch(_0x5a1d4f){_0x51eb5c['push'](_0x51eb5c['shift']());}}}(a156_0x5105,0x60663));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a156_0x23cd(_0x401d63,_0x54ddcd){_0x401d63=_0x401d63-0x91;const _0x510547=a156_0x5105();let _0x23cdc1=_0x510547[_0x401d63];return _0x23cdc1;}function a156_0x5105(){const _0xf3fe9e=['9VrxBkQ','17373690pOTpsN','\x20auth`\x20to\x20login\x20first.','1089372nLssHb','5587048qRZmqX','21VWrgkG','1149678yXhBpr','1714890ZwRWeZ','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','559932YsJudN','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','Tip:\x20`','join','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','317624flXZEn','15VKiMAz'];a156_0x5105=function(){return _0xf3fe9e;};return a156_0x5105();}import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+a156_0xc44008(0x98),'configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a156_0xc44008(0x93),a156_0xc44008(0x91)+CLI_BIN_NAME+a156_0xc44008(0xa0)][a156_0xc44008(0x92)]('\x0a\x20\x20\x20\x20\x20\x20\x20'),'notInProjectHint':a156_0xc44008(0x9e)});
@@ -1 +1 @@
1
- (function(_0xc4edce,_0x7966f0){var _0x25e596=a157_0x11fc,_0x48c7c3=_0xc4edce();while(!![]){try{var _0x38cebd=-parseInt(_0x25e596(0xeb))/0x1+-parseInt(_0x25e596(0xed))/0x2+parseInt(_0x25e596(0xf0))/0x3+-parseInt(_0x25e596(0xee))/0x4*(parseInt(_0x25e596(0xf1))/0x5)+parseInt(_0x25e596(0xec))/0x6*(parseInt(_0x25e596(0xe7))/0x7)+parseInt(_0x25e596(0xe8))/0x8*(parseInt(_0x25e596(0xef))/0x9)+parseInt(_0x25e596(0xea))/0xa*(-parseInt(_0x25e596(0xe9))/0xb);if(_0x38cebd===_0x7966f0)break;else _0x48c7c3['push'](_0x48c7c3['shift']());}catch(_0x1e438e){_0x48c7c3['push'](_0x48c7c3['shift']());}}}(a157_0x1537,0x94734));function a157_0x1537(){var _0x434ebf=['1873506NHPwlV','175QPUGNj','183603EAJeON','745208rENmcH','11iMZvtU','12599830MGsfCu','117712hqoFah','138kiBWZI','716378EqbHcH','188eyoNJv','108bNxLMj'];a157_0x1537=function(){return _0x434ebf;};return a157_0x1537();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a157_0x11fc(_0x4be358,_0x245df6){_0x4be358=_0x4be358-0xe7;var _0x1537fb=a157_0x1537();var _0x11fc0f=_0x1537fb[_0x4be358];return _0x11fc0f;}import{buildAllFlags as a157_0x4c0360}from'@lovrabet/cli-framework';export function buildAllFlags(_0x8b2bca){return a157_0x4c0360(_0x8b2bca,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ (function(_0x1e10d8,_0x448e3a){var _0x15a5fd=a157_0x2364,_0x579712=_0x1e10d8();while(!![]){try{var _0x59744f=parseInt(_0x15a5fd(0x13f))/0x1*(parseInt(_0x15a5fd(0x139))/0x2)+parseInt(_0x15a5fd(0x142))/0x3*(parseInt(_0x15a5fd(0x140))/0x4)+-parseInt(_0x15a5fd(0x141))/0x5+-parseInt(_0x15a5fd(0x13a))/0x6+parseInt(_0x15a5fd(0x143))/0x7+parseInt(_0x15a5fd(0x13e))/0x8*(parseInt(_0x15a5fd(0x13c))/0x9)+-parseInt(_0x15a5fd(0x13b))/0xa*(-parseInt(_0x15a5fd(0x13d))/0xb);if(_0x59744f===_0x448e3a)break;else _0x579712['push'](_0x579712['shift']());}catch(_0x481ac9){_0x579712['push'](_0x579712['shift']());}}}(a157_0x3149,0x97d92));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a157_0x3149(){var _0x577ac1=['1195030dOfLSJ','2154tkCGNY','105203BrzGPj','162468QACBoU','7340568qXbRsk','3590jsoTin','191502bRlmXb','36861dnwTID','64kOInOa','4VpkQHx','2068kBWfUm'];a157_0x3149=function(){return _0x577ac1;};return a157_0x3149();}function a157_0x2364(_0xbadf60,_0x1dc466){_0xbadf60=_0xbadf60-0x139;var _0x3149c3=a157_0x3149();var _0x236480=_0x3149c3[_0xbadf60];return _0x236480;}import{buildAllFlags as a157_0x5dca30}from'@lovrabet/cli-framework';export function buildAllFlags(_0x779b6b){return a157_0x5dca30(_0x779b6b,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- const a158_0x290426=a158_0xe952;(function(_0x4299e2,_0x337080){const _0x341108=a158_0xe952,_0x1dd79d=_0x4299e2();while(!![]){try{const _0xade2d=-parseInt(_0x341108(0x1cc))/0x1*(-parseInt(_0x341108(0x1c9))/0x2)+-parseInt(_0x341108(0x1d4))/0x3*(-parseInt(_0x341108(0x1d1))/0x4)+-parseInt(_0x341108(0x1d3))/0x5*(-parseInt(_0x341108(0x1c8))/0x6)+-parseInt(_0x341108(0x1c6))/0x7*(-parseInt(_0x341108(0x1c7))/0x8)+parseInt(_0x341108(0x1cd))/0x9+parseInt(_0x341108(0x1d2))/0xa*(-parseInt(_0x341108(0x1ce))/0xb)+parseInt(_0x341108(0x1cf))/0xc*(-parseInt(_0x341108(0x1cb))/0xd);if(_0xade2d===_0x337080)break;else _0x1dd79d['push'](_0x1dd79d['shift']());}catch(_0x2b61e1){_0x1dd79d['push'](_0x1dd79d['shift']());}}}(a158_0x5b96,0x4eda2));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a158_0xe952(_0x47df43,_0x33f955){_0x47df43=_0x47df43-0x1c6;const _0x5b9628=a158_0x5b96();let _0xe95209=_0x5b9628[_0x47df43];return _0xe95209;}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a158_0x290426(0x1ca)];export const validateFlags=helpers[a158_0x290426(0x1d0)];function a158_0x5b96(){const _0x2d3cd4=['105KKgxkB','6IwsKXb','377951YnwRuC','24rhGLfX','29166sHOwiU','4zZecJA','parseFlags','1337713oDdwLE','29594LVNLcS','5709888uuhhgG','7091821fDktll','12bszTCD','validateFlags','225820tpzBTt','10mTUHSF'];a158_0x5b96=function(){return _0x2d3cd4;};return a158_0x5b96();}
1
+ function a158_0x493e(_0x427183,_0x2d3332){_0x427183=_0x427183-0x74;const _0x38c57d=a158_0x38c5();let _0x493e34=_0x38c57d[_0x427183];return _0x493e34;}const a158_0x30478a=a158_0x493e;(function(_0x2cb9f6,_0x4a849e){const _0x2bc43a=a158_0x493e,_0x22a3a=_0x2cb9f6();while(!![]){try{const _0xf6b2c4=-parseInt(_0x2bc43a(0x7b))/0x1*(parseInt(_0x2bc43a(0x7f))/0x2)+parseInt(_0x2bc43a(0x78))/0x3*(-parseInt(_0x2bc43a(0x7c))/0x4)+parseInt(_0x2bc43a(0x74))/0x5+-parseInt(_0x2bc43a(0x75))/0x6*(-parseInt(_0x2bc43a(0x76))/0x7)+parseInt(_0x2bc43a(0x79))/0x8*(parseInt(_0x2bc43a(0x80))/0x9)+-parseInt(_0x2bc43a(0x7a))/0xa+-parseInt(_0x2bc43a(0x7d))/0xb;if(_0xf6b2c4===_0x4a849e)break;else _0x22a3a['push'](_0x22a3a['shift']());}catch(_0x4e5445){_0x22a3a['push'](_0x22a3a['shift']());}}}(a158_0x38c5,0xb7149));function a158_0x38c5(){const _0x3e7dd7=['146312INLmxP','9489020ZkKoaR','44aSneXJ','900eWULyL','4194047BbdAWo','parseFlags','13532iCihhD','342PgCFrk','5803505lshPjV','1416IahWAq','23114oDGsDG','validateFlags','3429phvSGO'];a158_0x38c5=function(){return _0x3e7dd7;};return a158_0x38c5();}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a158_0x30478a(0x7e)];export const validateFlags=helpers[a158_0x30478a(0x77)];
@@ -1 +1 @@
1
- const a159_0x159835=a159_0xfb78;(function(_0x5854f2,_0x56860b){const _0x30d607=a159_0xfb78,_0x5aa7a9=_0x5854f2();while(!![]){try{const _0x275d72=parseInt(_0x30d607(0x1f5))/0x1+-parseInt(_0x30d607(0x1f9))/0x2*(-parseInt(_0x30d607(0x1f0))/0x3)+-parseInt(_0x30d607(0x1ee))/0x4*(-parseInt(_0x30d607(0x1fb))/0x5)+-parseInt(_0x30d607(0x1fa))/0x6*(parseInt(_0x30d607(0x1f4))/0x7)+parseInt(_0x30d607(0x1ef))/0x8*(-parseInt(_0x30d607(0x1f6))/0x9)+-parseInt(_0x30d607(0x1f7))/0xa*(parseInt(_0x30d607(0x1ed))/0xb)+-parseInt(_0x30d607(0x1f1))/0xc*(-parseInt(_0x30d607(0x1f2))/0xd);if(_0x275d72===_0x56860b)break;else _0x5aa7a9['push'](_0x5aa7a9['shift']());}catch(_0x30494f){_0x5aa7a9['push'](_0x5aa7a9['shift']());}}}(a159_0x3015,0x52a71));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x48a83a=>serviceGroups['get'](_0x48a83a),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a159_0x159835(0x1f3)+CLI_BIN_NAME+a159_0x159835(0x1f8),'serviceUsageSuffix':'\x20[args]\x20[flags]','includeWildcardExtraInFullHelp':!![]});function a159_0x3015(){const _0x5948de=['470847EebaxP','Requires\x20appcode\x20(set\x20via\x20`','154isSopM','124447SihBEd','21609yNXVpW','37130mOpcdh','\x20project\x20init`\x20or\x20--appcode).','460468UQyhcw','99642PMbfUN','8620iOERXm','583KfxHyQ','328ZMVWuL','824RuKNrY','3BPwDcc','216xQsuSA'];a159_0x3015=function(){return _0x5948de;};return a159_0x3015();}function a159_0xfb78(_0xac5cb,_0x2c3f3b){_0xac5cb=_0xac5cb-0x1ed;const _0x301544=a159_0x3015();let _0xfb78e3=_0x301544[_0xac5cb];return _0xfb78e3;}export function generateCommandHelp(_0x8d6713){return generators['generateCommandHelp'](_0x8d6713);}export const generateServiceHelp=generators['generateServiceHelp'];export const generateFullHelp=generators['generateFullHelp'];
1
+ const a159_0x45b874=a159_0x5e2c;(function(_0xb94b23,_0x4a04e4){const _0x2f9e1a=a159_0x5e2c,_0x832ee5=_0xb94b23();while(!![]){try{const _0x5442b3=parseInt(_0x2f9e1a(0xe2))/0x1+-parseInt(_0x2f9e1a(0xe3))/0x2*(parseInt(_0x2f9e1a(0xe6))/0x3)+-parseInt(_0x2f9e1a(0xdd))/0x4+parseInt(_0x2f9e1a(0xe4))/0x5+-parseInt(_0x2f9e1a(0xe7))/0x6*(parseInt(_0x2f9e1a(0xdc))/0x7)+parseInt(_0x2f9e1a(0xe8))/0x8*(-parseInt(_0x2f9e1a(0xde))/0x9)+parseInt(_0x2f9e1a(0xdf))/0xa;if(_0x5442b3===_0x4a04e4)break;else _0x832ee5['push'](_0x832ee5['shift']());}catch(_0x56d108){_0x832ee5['push'](_0x832ee5['shift']());}}}(a159_0x53dc,0x81179));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a159_0x53dc(){const _0x54ad5e=['835668Jcxfqd','705242fpKyLE','2156095QrFKOW','\x20project\x20init`\x20or\x20--appcode).','3hPmToh','42FKDMxF','72iHSfcR','\x20[args]\x20[flags]','Requires\x20appcode\x20(set\x20via\x20`','generateFullHelp','11529ShiQra','2276484bqArwU','981324ISjLKH','11764690QSPpgs','generateServiceHelp','generateCommandHelp'];a159_0x53dc=function(){return _0x54ad5e;};return a159_0x53dc();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a159_0x5e2c(_0x4ef57d,_0x2274bf){_0x4ef57d=_0x4ef57d-0xdc;const _0x53dcf9=a159_0x53dc();let _0x5e2ceb=_0x53dcf9[_0x4ef57d];return _0x5e2ceb;}const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x358539=>serviceGroups['get'](_0x358539),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a159_0x45b874(0xea)+CLI_BIN_NAME+a159_0x45b874(0xe5),'serviceUsageSuffix':a159_0x45b874(0xe9),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x598fae){const _0x4a1080=a159_0x45b874;return generators[_0x4a1080(0xe1)](_0x598fae);}export const generateServiceHelp=generators[a159_0x45b874(0xe0)];export const generateFullHelp=generators[a159_0x45b874(0xeb)];
@@ -1 +1 @@
1
- (function(_0x5e1c75,_0xc417d4){var _0x7e464e=a160_0x8083,_0x29ec5d=_0x5e1c75();while(!![]){try{var _0x1177a5=parseInt(_0x7e464e(0x1cb))/0x1*(parseInt(_0x7e464e(0x1d0))/0x2)+parseInt(_0x7e464e(0x1d4))/0x3*(-parseInt(_0x7e464e(0x1cf))/0x4)+parseInt(_0x7e464e(0x1d1))/0x5+parseInt(_0x7e464e(0x1d3))/0x6*(parseInt(_0x7e464e(0x1cc))/0x7)+-parseInt(_0x7e464e(0x1cd))/0x8*(parseInt(_0x7e464e(0x1ca))/0x9)+-parseInt(_0x7e464e(0x1d2))/0xa+parseInt(_0x7e464e(0x1ce))/0xb;if(_0x1177a5===_0xc417d4)break;else _0x29ec5d['push'](_0x29ec5d['shift']());}catch(_0x4b8109){_0x29ec5d['push'](_0x29ec5d['shift']());}}}(a160_0x269e,0xb3703));export{runCommand}from'../framework/runner.js';function a160_0x8083(_0x3fe224,_0x53c36a){_0x3fe224=_0x3fe224-0x1ca;var _0x269e6b=a160_0x269e();var _0x80834=_0x269e6b[_0x3fe224];return _0x80834;}function a160_0x269e(){var _0x1f0643=['907845plripU','4400780SZHCyC','82950SHrGZp','18FgthgS','9aboQvT','7FCbgIT','595FuZsyb','6426912wVaPBN','10551442ysuSzF','902788sBHoeg','290482BRcIgM'];a160_0x269e=function(){return _0x1f0643;};return a160_0x269e();}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x4a6c37,_0x5ba9f8){var _0x34bc68=a160_0x21a6,_0x5f6477=_0x4a6c37();while(!![]){try{var _0x343ddf=parseInt(_0x34bc68(0x69))/0x1+parseInt(_0x34bc68(0x6b))/0x2+-parseInt(_0x34bc68(0x66))/0x3*(-parseInt(_0x34bc68(0x6a))/0x4)+parseInt(_0x34bc68(0x65))/0x5*(-parseInt(_0x34bc68(0x6c))/0x6)+parseInt(_0x34bc68(0x64))/0x7+-parseInt(_0x34bc68(0x68))/0x8+-parseInt(_0x34bc68(0x67))/0x9*(parseInt(_0x34bc68(0x6d))/0xa);if(_0x343ddf===_0x5ba9f8)break;else _0x5f6477['push'](_0x5f6477['shift']());}catch(_0x413ee5){_0x5f6477['push'](_0x5f6477['shift']());}}}(a160_0x53d8,0x1d623));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 a160_0x21a6(_0x69c1ab,_0x22ad6c){_0x69c1ab=_0x69c1ab-0x64;var _0x53d815=a160_0x53d8();var _0x21a64d=_0x53d815[_0x69c1ab];return _0x21a64d;}export{extractList,extractPaging}from'../framework/response.js';function a160_0x53d8(){var _0x42053c=['42Vurffn','1261640fgmTuE','1427727jJsqdu','136690DWPFab','126402XDzxvQ','9byLWMW','1186600iitfDd','147301tcJKMf','20XXrwPg','48556ouGDGK'];a160_0x53d8=function(){return _0x42053c;};return a160_0x53d8();}export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- function a161_0x1901(_0x56ca29,_0x3cd0b8){_0x56ca29=_0x56ca29-0x12a;const _0x1db380=a161_0x1db3();let _0x190153=_0x1db380[_0x56ca29];return _0x190153;}(function(_0x458319,_0x35b0c6){const _0x695eec=a161_0x1901,_0x2b48f5=_0x458319();while(!![]){try{const _0x1eacea=-parseInt(_0x695eec(0x135))/0x1+-parseInt(_0x695eec(0x12b))/0x2*(-parseInt(_0x695eec(0x132))/0x3)+parseInt(_0x695eec(0x134))/0x4+parseInt(_0x695eec(0x133))/0x5*(parseInt(_0x695eec(0x12f))/0x6)+-parseInt(_0x695eec(0x12d))/0x7*(parseInt(_0x695eec(0x12e))/0x8)+-parseInt(_0x695eec(0x130))/0x9*(-parseInt(_0x695eec(0x12c))/0xa)+parseInt(_0x695eec(0x12a))/0xb*(parseInt(_0x695eec(0x131))/0xc);if(_0x1eacea===_0x35b0c6)break;else _0x2b48f5['push'](_0x2b48f5['shift']());}catch(_0x2738be){_0x2b48f5['push'](_0x2b48f5['shift']());}}}(a161_0x1db3,0xd4a0b));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a161_0x1db3(){const _0x7f1a23=['482504LQiiHl','11vutZwY','100678pwdMak','590RRuRJZ','2825641iPdFBO','24gFaWuY','659898PpNPDb','19863aiJiaq','17033268NfEkkU','9HtsEBQ','15oexYiJ','2135192eyWdFW'];a161_0x1db3=function(){return _0x7f1a23;};return a161_0x1db3();}
1
+ (function(_0x3a8a19,_0x23a572){const _0x237892=a161_0x12b9,_0x141986=_0x3a8a19();while(!![]){try{const _0x3557e7=-parseInt(_0x237892(0x6a))/0x1+-parseInt(_0x237892(0x6c))/0x2+parseInt(_0x237892(0x73))/0x3*(-parseInt(_0x237892(0x75))/0x4)+-parseInt(_0x237892(0x6f))/0x5*(-parseInt(_0x237892(0x6b))/0x6)+parseInt(_0x237892(0x70))/0x7*(parseInt(_0x237892(0x71))/0x8)+-parseInt(_0x237892(0x72))/0x9*(-parseInt(_0x237892(0x74))/0xa)+parseInt(_0x237892(0x6d))/0xb*(parseInt(_0x237892(0x6e))/0xc);if(_0x3557e7===_0x23a572)break;else _0x141986['push'](_0x141986['shift']());}catch(_0x282494){_0x141986['push'](_0x141986['shift']());}}}(a161_0xff91,0x4463e));function a161_0xff91(){const _0x19956b=['849COGRGh','2026210YxOHAx','4912dVuWMF','142082IQuaqv','36enXWJJ','788462dZtjnI','640541zWtieH','12GuUlxn','391015UCoioG','14wBMnkc','925088NWwWnV','18ykVjvz'];a161_0xff91=function(){return _0x19956b;};return a161_0xff91();}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a161_0x12b9(_0x15e04e,_0x2901a0){_0x15e04e=_0x15e04e-0x6a;const _0xff91cc=a161_0xff91();let _0x12b9fc=_0xff91cc[_0x15e04e];return _0x12b9fc;}export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
@@ -1 +1 @@
1
- function a162_0x42b5(_0x32ed46,_0x437631){_0x32ed46=_0x32ed46-0xc4;var _0x73f65a=a162_0x73f6();var _0x42b52e=_0x73f65a[_0x32ed46];return _0x42b52e;}(function(_0x25f0a0,_0x26ae56){var _0x29045d=a162_0x42b5,_0x5c4179=_0x25f0a0();while(!![]){try{var _0x45bf56=parseInt(_0x29045d(0xcb))/0x1+parseInt(_0x29045d(0xc7))/0x2+-parseInt(_0x29045d(0xc9))/0x3*(parseInt(_0x29045d(0xcc))/0x4)+-parseInt(_0x29045d(0xc8))/0x5+-parseInt(_0x29045d(0xc4))/0x6+parseInt(_0x29045d(0xca))/0x7+-parseInt(_0x29045d(0xc6))/0x8*(parseInt(_0x29045d(0xc5))/0x9);if(_0x45bf56===_0x26ae56)break;else _0x5c4179['push'](_0x5c4179['shift']());}catch(_0x10095b){_0x5c4179['push'](_0x5c4179['shift']());}}}(a162_0x73f6,0x3b450));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a162_0x73f6(){var _0x39b2b1=['74072JWmOxz','573936gizRty','1082205RfPILT','3uxcRId','2887220bPYCIJ','307016pTdMzN','418772CJstFO','2155266IWkqQt','81rHRryo'];a162_0x73f6=function(){return _0x39b2b1;};return a162_0x73f6();}
1
+ function a162_0x530c(_0x59b275,_0x339998){_0x59b275=_0x59b275-0x13a;var _0x313c93=a162_0x313c();var _0x530c07=_0x313c93[_0x59b275];return _0x530c07;}(function(_0x5bd0d7,_0x22e550){var _0x214996=a162_0x530c,_0x931777=_0x5bd0d7();while(!![]){try{var _0x3445d6=-parseInt(_0x214996(0x13e))/0x1*(parseInt(_0x214996(0x146))/0x2)+-parseInt(_0x214996(0x13a))/0x3*(-parseInt(_0x214996(0x13f))/0x4)+-parseInt(_0x214996(0x140))/0x5*(-parseInt(_0x214996(0x143))/0x6)+parseInt(_0x214996(0x13d))/0x7*(parseInt(_0x214996(0x142))/0x8)+-parseInt(_0x214996(0x141))/0x9*(parseInt(_0x214996(0x13c))/0xa)+parseInt(_0x214996(0x13b))/0xb+parseInt(_0x214996(0x144))/0xc*(-parseInt(_0x214996(0x145))/0xd);if(_0x3445d6===_0x22e550)break;else _0x931777['push'](_0x931777['shift']());}catch(_0x123ad1){_0x931777['push'](_0x931777['shift']());}}}(a162_0x313c,0x331dd));function a162_0x313c(){var _0x31cae6=['25620FLRoZa','169tTeLzy','1994XqokTV','61530NxYvDq','3082090uEYyJG','10rDiAnK','14OTNVGa','407ZyHiCR','56wQOGmP','205pWAGGl','879642vSZhDY','315568ATZgBh','13818DaonZM'];a162_0x313c=function(){return _0x31cae6;};return a162_0x313c();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- function a163_0x3527(){const _0x145401=['.\x20Run\x20`','name','27917604rveGQi','code','26521IksUBi','No\x20api.ts\x20found\x20in\x20','485yzGFrF','string','19cVVQtx','join','length','6993171aISLwd','validation','alias','17762iECQuG','map','152EVqhcO','Unknown\x20alias\x20\x22','some','type','6126bfoQTn','\x20api\x20pull`\x20first.','21eKbDFJ','8373oovrHT','\x22.\x20','flags','1615056lvjjAj','570OUcaDc'];a163_0x3527=function(){return _0x145401;};return a163_0x3527();}(function(_0xb17a16,_0x55c288){const _0x3dfe46=a163_0x2989,_0x55e235=_0xb17a16();while(!![]){try{const _0xd8e74d=parseInt(_0x3dfe46(0x1e7))/0x1*(-parseInt(_0x3dfe46(0x1ed))/0x2)+-parseInt(_0x3dfe46(0x1f6))/0x3*(-parseInt(_0x3dfe46(0x1ef))/0x4)+-parseInt(_0x3dfe46(0x201))/0x5*(parseInt(_0x3dfe46(0x1f3))/0x6)+-parseInt(_0x3dfe46(0x1f5))/0x7*(parseInt(_0x3dfe46(0x1f9))/0x8)+-parseInt(_0x3dfe46(0x1ea))/0x9+-parseInt(_0x3dfe46(0x1fa))/0xa*(parseInt(_0x3dfe46(0x1ff))/0xb)+parseInt(_0x3dfe46(0x1fd))/0xc;if(_0xd8e74d===_0x55c288)break;else _0x55e235['push'](_0x55e235['shift']());}catch(_0x56f2d8){_0x55e235['push'](_0x55e235['shift']());}}}(a163_0x3527,0x9d631));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a163_0x2989(_0x1dcf23,_0x386cfc){_0x1dcf23=_0x1dcf23-0x1e7;const _0x3527d4=a163_0x3527();let _0x2989b2=_0x3527d4[_0x1dcf23];return _0x2989b2;}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x5a212a,_0x457474,_0x4fb7db,_0x29bdd7){const _0x2f2ded=a163_0x2989,_0x290c5d=_0x5a212a[_0x2f2ded(0x1f8)][_0x2f2ded(0x1f1)](_0x5691af=>_0x5691af[_0x2f2ded(0x1fc)]===_0x2f2ded(0x1fe)&&_0x5691af[_0x2f2ded(0x1f2)]===_0x2f2ded(0x202)),_0x27d635=_0x5a212a[_0x2f2ded(0x1f8)]['some'](_0x19d753=>_0x19d753[_0x2f2ded(0x1fc)]===_0x2f2ded(0x1ec)&&_0x19d753[_0x2f2ded(0x1f2)]===_0x2f2ded(0x202));if(!_0x290c5d||!_0x27d635)return;const _0x502c57=_0x457474[_0x2f2ded(0x1fe)]?String(_0x457474[_0x2f2ded(0x1fe)]):'',_0x3d430a=_0x457474[_0x2f2ded(0x1ec)]?String(_0x457474[_0x2f2ded(0x1ec)]):'';if(!_0x502c57&&!_0x3d430a)throw CliErrors[_0x2f2ded(0x1eb)]('`'+_0x29bdd7+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x3d430a&&!_0x502c57){const _0x4314e4=resolveAlias(_0x4fb7db,_0x3d430a);if(!_0x4314e4){const _0x404045=listAliases(_0x4fb7db)[_0x2f2ded(0x1ee)](_0x8e1203=>_0x8e1203[_0x2f2ded(0x1ec)]),_0x4a7a2b=_0x404045[_0x2f2ded(0x1e9)]?'Available\x20aliases:\x20'+_0x404045[_0x2f2ded(0x1e8)](',\x20'):_0x2f2ded(0x200)+_0x4fb7db+_0x2f2ded(0x1fb)+CLI_BIN_NAME+_0x2f2ded(0x1f4);throw CliErrors[_0x2f2ded(0x1eb)](_0x2f2ded(0x1f0)+_0x3d430a+_0x2f2ded(0x1f7)+_0x4a7a2b);}_0x457474[_0x2f2ded(0x1fe)]=_0x4314e4;}}
1
+ function a163_0x4853(_0x4f325c,_0x44521b){_0x4f325c=_0x4f325c-0x165;const _0x100525=a163_0x1005();let _0x48531f=_0x100525[_0x4f325c];return _0x48531f;}(function(_0x3083b7,_0x58eaef){const _0x167575=a163_0x4853,_0xc61b04=_0x3083b7();while(!![]){try{const _0x1ecf38=parseInt(_0x167575(0x16b))/0x1*(parseInt(_0x167575(0x168))/0x2)+parseInt(_0x167575(0x171))/0x3*(parseInt(_0x167575(0x170))/0x4)+-parseInt(_0x167575(0x17d))/0x5+parseInt(_0x167575(0x173))/0x6+-parseInt(_0x167575(0x176))/0x7+parseInt(_0x167575(0x17c))/0x8*(parseInt(_0x167575(0x16c))/0x9)+-parseInt(_0x167575(0x16f))/0xa*(parseInt(_0x167575(0x16a))/0xb);if(_0x1ecf38===_0x58eaef)break;else _0xc61b04['push'](_0xc61b04['shift']());}catch(_0x2bf87a){_0xc61b04['push'](_0xc61b04['shift']());}}}(a163_0x1005,0x72c37));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a163_0x1005(){const _0x41ad75=['Available\x20aliases:\x20','string','alias','validation','2944COAAnB','941235DCLcOK','No\x20api.ts\x20found\x20in\x20','code','some','33148hGilaV','type','27643KZuHHW','43KsLKPE','12699TsBzub','.\x20Run\x20`','name','5330AgkQpC','408344hilWvr','21SgOfbh','flags','1054752XiVAPE','\x20api\x20pull`\x20first.','Unknown\x20alias\x20\x22','872039qBqRIt','map'];a163_0x1005=function(){return _0x41ad75;};return a163_0x1005();}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x1a09e5,_0x43f56b,_0x70d753,_0x50e034){const _0x260f6e=a163_0x4853,_0x2c7b6d=_0x1a09e5[_0x260f6e(0x172)][_0x260f6e(0x167)](_0x397b7f=>_0x397b7f[_0x260f6e(0x16e)]===_0x260f6e(0x166)&&_0x397b7f[_0x260f6e(0x169)]===_0x260f6e(0x179)),_0x121912=_0x1a09e5[_0x260f6e(0x172)][_0x260f6e(0x167)](_0x473289=>_0x473289[_0x260f6e(0x16e)]===_0x260f6e(0x17a)&&_0x473289[_0x260f6e(0x169)]===_0x260f6e(0x179));if(!_0x2c7b6d||!_0x121912)return;const _0x2de2e7=_0x43f56b[_0x260f6e(0x166)]?String(_0x43f56b['code']):'',_0x54a251=_0x43f56b[_0x260f6e(0x17a)]?String(_0x43f56b[_0x260f6e(0x17a)]):'';if(!_0x2de2e7&&!_0x54a251)throw CliErrors[_0x260f6e(0x17b)]('`'+_0x50e034+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x54a251&&!_0x2de2e7){const _0x178d36=resolveAlias(_0x70d753,_0x54a251);if(!_0x178d36){const _0x3f1807=listAliases(_0x70d753)[_0x260f6e(0x177)](_0x118c8a=>_0x118c8a[_0x260f6e(0x17a)]),_0x49a94d=_0x3f1807['length']?_0x260f6e(0x178)+_0x3f1807['join'](',\x20'):_0x260f6e(0x165)+_0x70d753+_0x260f6e(0x16d)+CLI_BIN_NAME+_0x260f6e(0x174);throw CliErrors[_0x260f6e(0x17b)](_0x260f6e(0x175)+_0x54a251+'\x22.\x20'+_0x49a94d);}_0x43f56b[_0x260f6e(0x166)]=_0x178d36;}}
@@ -1 +1 @@
1
- const a164_0x5a7da3=a164_0xcb02;(function(_0x1abb35,_0x1c1b4f){const _0x4e66f2=a164_0xcb02,_0x595200=_0x1abb35();while(!![]){try{const _0x5e62f9=-parseInt(_0x4e66f2(0xe9))/0x1+-parseInt(_0x4e66f2(0xea))/0x2+-parseInt(_0x4e66f2(0xe6))/0x3+-parseInt(_0x4e66f2(0xe5))/0x4*(parseInt(_0x4e66f2(0xe1))/0x5)+parseInt(_0x4e66f2(0xec))/0x6+parseInt(_0x4e66f2(0xf5))/0x7*(-parseInt(_0x4e66f2(0x104))/0x8)+-parseInt(_0x4e66f2(0xf3))/0x9*(-parseInt(_0x4e66f2(0xef))/0xa);if(_0x5e62f9===_0x1c1b4f)break;else _0x595200['push'](_0x595200['shift']());}catch(_0x52b9d2){_0x595200['push'](_0x595200['shift']());}}}(a164_0xd190,0xf175d));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';function a164_0xd190(){const _0x345d09=['mergedCli','selectedAppName','defaultVerbose','pageSize','isNonInteractive','High-risk\x20operation\x20`','../core/api-client.js','2744REKiHW','appcode','apps','57220SrgDAb','riskLevel','format','has','516hgBUcH','646920IovUdD','authRequired','validation','654301OYuDaB','2043906ZmMpeM','service','4878702rpiuDN','appCode','\x20\x20\x20Continue?\x20[y/N]\x20','110rkzeNV','currentApp','apiDir','map','3179772CmTUhI','requiresAuth','6986cHrdaw','explicitAppName','requiresAppCode','verbose','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','resolveAppCode','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','defaultApp'];a164_0xd190=function(){return _0x345d09;};return a164_0xd190();}function a164_0xcb02(_0x394518,_0x1d0e67){_0x394518=_0x394518-0xe1;const _0xd1900=a164_0xd190();let _0xcb0202=_0xd1900[_0x394518];return _0xcb0202;}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 a164_0x522aa5}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x229a8a,_0x21e8ed,_0x2814d3=[]){const _0xfe24a1=a164_0xcb02;return{'rawFlags':_0x21e8ed,'args':_0x2814d3,'resolveAppCode':()=>_0x229a8a[_0xfe24a1(0xed)]||_0x21e8ed[_0xfe24a1(0x105)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x229a8a['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a164_0x522aa5(_0x21e8ed),'defaultFormat':_0x229a8a[_0xfe24a1(0xe3)],'defaultPageSize':_0x229a8a[_0xfe24a1(0x100)],'defaultVerbose':_0x229a8a[_0xfe24a1(0xf8)],'apiDir':_0x229a8a[_0xfe24a1(0xf1)],'riskLevel':_0x229a8a[_0xfe24a1(0xe2)],'selectedAppName':_0x229a8a[_0xfe24a1(0xf6)],'mergedCli':{'defaultApp':_0x229a8a[_0xfe24a1(0xfc)],'currentApp':_0x229a8a[_0xfe24a1(0xf0)],'appCode':_0x229a8a['appCode'],'apps':_0x229a8a[_0xfe24a1(0x106)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x2375bb=>PIPELINE_FLAG_NAMES[a164_0x5a7da3(0xe4)](_0x2375bb['name']))[a164_0x5a7da3(0xf2)](({name:_0x2ead7e,type:_0x668434,description:_0x572055})=>({'name':_0x2ead7e,'type':_0x668434,'description':_0x572055})),'formatOutput':formatOutput,'getCommandLabel'(_0x2e2c17){const _0x1c47fe=a164_0x5a7da3;return CLI_BIN_NAME+'\x20'+_0x2e2c17[_0x1c47fe(0xeb)]+'\x20'+_0x2e2c17['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x4e493a){const _0x4ad6aa=a164_0x5a7da3;return CliErrors[_0x4ad6aa(0xe8)](_0x4e493a);}},async 'prepare'(_0x4f4724,_0x39a227,_0x2cb1df,_0x2381ad){const _0x7fa033=a164_0x5a7da3,_0x4f0ea5=_0x39a227[_0x7fa033(0xf1)]||DEFAULT_API_DIR;resolveAliasToCode(_0x4f4724,_0x2cb1df,_0x4f0ea5,_0x2381ad);let _0x6afdb7='';if(_0x4f4724[_0x7fa033(0xf4)]!==![]){_0x6afdb7=_0x39a227['resolveCookie']();if(!_0x6afdb7)throw CliErrors[_0x7fa033(0xe7)]();const {setActiveCookie:_0xaac8}=await import(_0x7fa033(0x103));_0xaac8(_0x6afdb7);}const _0xa2e950=_0x39a227[_0x7fa033(0xfa)]()??'';if(_0x4f4724[_0x7fa033(0xf7)]!==![]){if(!_0xa2e950)throw CliErrors['configMissing']('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x7fa033(0xf9));}return{'defaults':{'booleans':{'verbose':_0x39a227[_0x7fa033(0xff)]},'numbers':{'pagesize':_0x39a227['defaultPageSize']}},'extras':{'appCode':_0xa2e950,'cookie':_0x6afdb7,'apiDomain':_0x39a227['resolveApiDomain'](),'apiDir':_0x4f0ea5,'selectedAppName':_0x39a227[_0x7fa033(0xfe)],'mergedCli':_0x39a227[_0x7fa033(0xfd)]}};},async 'confirmHighRisk'({env:_0x332126,commandLabel:_0x4397f5}){const _0x47782d=a164_0x5a7da3;if(_0x332126[_0x47782d(0x101)])throw CliErrors[_0x47782d(0xe8)](_0x47782d(0x102)+_0x4397f5+_0x47782d(0xfb));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x4397f5,_0x47782d(0xee)],'createCancelledError':_0x56dbbd=>CliErrors['cancelled'](_0x56dbbd)});},async 'finalize'(){const _0x4f0b59=a164_0x5a7da3,{clearActiveCookie:_0x345c67}=await import(_0x4f0b59(0x103));_0x345c67();}};export async function runCommand(_0x992b2b,_0x1ba1b5){await runCommandWithAdapter(_0x992b2b,_0x1ba1b5,runnerAdapter);}
1
+ const a164_0x1f7b8f=a164_0xd6d4;(function(_0x3421ca,_0x1af1c2){const _0x411b82=a164_0xd6d4,_0x323633=_0x3421ca();while(!![]){try{const _0xddc645=-parseInt(_0x411b82(0x12b))/0x1*(-parseInt(_0x411b82(0x139))/0x2)+parseInt(_0x411b82(0x126))/0x3+parseInt(_0x411b82(0x11f))/0x4+parseInt(_0x411b82(0x115))/0x5+parseInt(_0x411b82(0x11e))/0x6*(-parseInt(_0x411b82(0x114))/0x7)+parseInt(_0x411b82(0x129))/0x8*(parseInt(_0x411b82(0x128))/0x9)+-parseInt(_0x411b82(0x12f))/0xa*(parseInt(_0x411b82(0x12d))/0xb);if(_0xddc645===_0x1af1c2)break;else _0x323633['push'](_0x323633['shift']());}catch(_0x8ed440){_0x323633['push'](_0x323633['shift']());}}}(a164_0x4bea,0x76b06));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';function a164_0x4bea(){const _0x84c1b=['defaultApp','cookie','28VXhhqQ','1141805epsJOD','validation','Set\x20appcode\x20via\x20`','resolveCookie','High-risk\x20operation\x20`','selectedAppName','isNonInteractive','explicitAppName','requiresAppCode','217104bKZnVd','301404OKdCpf','mergedCli','command','authRequired','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','verbose','apiDir','1293279Ussxww','format','7947xtiout','224jXbqBL','defaultPageSize','564JdHRvf','defaultVerbose','957HuwjvM','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','52970wBZooT','appCode','name','requiresAuth','has','resolveAppCode','map','⚠\x20\x20High-risk\x20operation:\x20','filter','\x20\x20\x20Continue?\x20[y/N]\x20','1178WDcRQJ','resolveApiDomain','service','apps','../core/api-client.js','currentApp'];a164_0x4bea=function(){return _0x84c1b;};return a164_0x4bea();}import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a164_0x52986f}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';function a164_0xd6d4(_0x46184c,_0x5d6f7e){_0x46184c=_0x46184c-0x10f;const _0x4beafa=a164_0x4bea();let _0xd6d481=_0x4beafa[_0x46184c];return _0xd6d481;}export function createPipelineEnv(_0x3f3612,_0x3b0c6e,_0x184b68=[]){const _0xdf3fee=a164_0xd6d4;return{'rawFlags':_0x3b0c6e,'args':_0x184b68,'resolveAppCode':()=>_0x3f3612['appCode']||_0x3b0c6e['appcode']||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x3f3612[_0xdf3fee(0x113)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a164_0x52986f(_0x3b0c6e),'defaultFormat':_0x3f3612[_0xdf3fee(0x127)],'defaultPageSize':_0x3f3612['pageSize'],'defaultVerbose':_0x3f3612[_0xdf3fee(0x124)],'apiDir':_0x3f3612[_0xdf3fee(0x125)],'riskLevel':_0x3f3612['riskLevel'],'selectedAppName':_0x3f3612[_0xdf3fee(0x11c)],'mergedCli':{'defaultApp':_0x3f3612[_0xdf3fee(0x112)],'currentApp':_0x3f3612[_0xdf3fee(0x111)],'appCode':_0x3f3612[_0xdf3fee(0x130)],'apps':_0x3f3612[_0xdf3fee(0x10f)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a164_0x1f7b8f(0x137)](_0xad1e3b=>PIPELINE_FLAG_NAMES[a164_0x1f7b8f(0x133)](_0xad1e3b[a164_0x1f7b8f(0x131)]))[a164_0x1f7b8f(0x135)](({name:_0x49f5b5,type:_0x381cd3,description:_0x28722b})=>({'name':_0x49f5b5,'type':_0x381cd3,'description':_0x28722b})),'formatOutput':formatOutput,'getCommandLabel'(_0x21b2ed){const _0x27ab0a=a164_0x1f7b8f;return CLI_BIN_NAME+'\x20'+_0x21b2ed[_0x27ab0a(0x13b)]+'\x20'+_0x21b2ed[_0x27ab0a(0x121)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x23a9ff){return CliErrors['validation'](_0x23a9ff);}},async 'prepare'(_0x53a8cb,_0x2a7808,_0x4328f9,_0x438137){const _0xf22f5c=a164_0x1f7b8f,_0x5e8dba=_0x2a7808['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x53a8cb,_0x4328f9,_0x5e8dba,_0x438137);let _0x1524da='';if(_0x53a8cb[_0xf22f5c(0x132)]!==![]){_0x1524da=_0x2a7808[_0xf22f5c(0x118)]();if(!_0x1524da)throw CliErrors[_0xf22f5c(0x122)]();const {setActiveCookie:_0x14e931}=await import(_0xf22f5c(0x110));_0x14e931(_0x1524da);}const _0x33a07e=_0x2a7808[_0xf22f5c(0x134)]()??'';if(_0x53a8cb[_0xf22f5c(0x11d)]!==![]){if(!_0x33a07e)throw CliErrors['configMissing'](_0xf22f5c(0x117)+CLI_BIN_NAME+_0xf22f5c(0x12e));}return{'defaults':{'booleans':{'verbose':_0x2a7808[_0xf22f5c(0x12c)]},'numbers':{'pagesize':_0x2a7808[_0xf22f5c(0x12a)]}},'extras':{'appCode':_0x33a07e,'cookie':_0x1524da,'apiDomain':_0x2a7808[_0xf22f5c(0x13a)](),'apiDir':_0x5e8dba,'selectedAppName':_0x2a7808[_0xf22f5c(0x11a)],'mergedCli':_0x2a7808[_0xf22f5c(0x120)]}};},async 'confirmHighRisk'({env:_0x10482b,commandLabel:_0xd070ff}){const _0x2f5904=a164_0x1f7b8f;if(_0x10482b[_0x2f5904(0x11b)])throw CliErrors[_0x2f5904(0x116)](_0x2f5904(0x119)+_0xd070ff+_0x2f5904(0x123));await requireConfirmationPrompt({'lines':[_0x2f5904(0x136)+_0xd070ff,_0x2f5904(0x138)],'createCancelledError':_0x2078b7=>CliErrors['cancelled'](_0x2078b7)});},async 'finalize'(){const _0x7f9846=a164_0x1f7b8f,{clearActiveCookie:_0x85e1d6}=await import(_0x7f9846(0x110));_0x85e1d6();}};export async function runCommand(_0x35f010,_0x314b5b){await runCommandWithAdapter(_0x35f010,_0x314b5b,runnerAdapter);}
@@ -1 +1 @@
1
- function a165_0x4349(_0x53cef8,_0x1e0123){_0x53cef8=_0x53cef8-0x118;const _0x1afaca=a165_0x1afa();let _0x43499e=_0x1afaca[_0x53cef8];return _0x43499e;}(function(_0x2bec7f,_0x4418c4){const _0x4100db=a165_0x4349,_0x2b334d=_0x2bec7f();while(!![]){try{const _0x4d97e4=parseInt(_0x4100db(0x118))/0x1*(parseInt(_0x4100db(0x11f))/0x2)+-parseInt(_0x4100db(0x124))/0x3*(parseInt(_0x4100db(0x11c))/0x4)+-parseInt(_0x4100db(0x11e))/0x5*(parseInt(_0x4100db(0x11d))/0x6)+-parseInt(_0x4100db(0x120))/0x7*(parseInt(_0x4100db(0x121))/0x8)+-parseInt(_0x4100db(0x122))/0x9+parseInt(_0x4100db(0x119))/0xa+parseInt(_0x4100db(0x11a))/0xb*(parseInt(_0x4100db(0x11b))/0xc);if(_0x4d97e4===_0x4418c4)break;else _0x2b334d['push'](_0x2b334d['shift']());}catch(_0x717b39){_0x2b334d['push'](_0x2b334d['shift']());}}}(a165_0x1afa,0x71838));import{buildSchemaPayload as a165_0x19af7c}from'@lovrabet/cli-framework';function a165_0x1afa(){const _0x377619=['4072090hTboQm','51843UZhiUX','3156sNVAVo','268WQXivV','146532rIDbQn','55AzkhIB','114FhQBmb','7esRmGb','4842848qjJFzj','1221048YdEdes','../commands/registry.js','33198naECel','9988HZBYCu'];a165_0x1afa=function(){return _0x377619;};return a165_0x1afa();}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 _0x647d86=a165_0x4349,{serviceRegistry:_0x380863,findDefinition:_0x34b9c5}=await import(_0x647d86(0x123));return a165_0x19af7c({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x380863,'buildAllFlags':buildAllFlags,'findDefinition':_0x34b9c5});}
1
+ (function(_0xbb1733,_0x4455a9){const _0x5006bc=a165_0x41bf,_0x329a0b=_0xbb1733();while(!![]){try{const _0x4745e9=-parseInt(_0x5006bc(0x114))/0x1*(-parseInt(_0x5006bc(0x10e))/0x2)+parseInt(_0x5006bc(0x112))/0x3+-parseInt(_0x5006bc(0x113))/0x4+-parseInt(_0x5006bc(0x10d))/0x5+-parseInt(_0x5006bc(0x111))/0x6*(-parseInt(_0x5006bc(0x10c))/0x7)+-parseInt(_0x5006bc(0x110))/0x8+parseInt(_0x5006bc(0x10b))/0x9;if(_0x4745e9===_0x4455a9)break;else _0x329a0b['push'](_0x329a0b['shift']());}catch(_0x27a7e0){_0x329a0b['push'](_0x329a0b['shift']());}}}(a165_0x334a,0x23955));import{buildSchemaPayload as a165_0x4e8b46}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a165_0x41bf(_0x37058a,_0x59ce39){_0x37058a=_0x37058a-0x10b;const _0x334a16=a165_0x334a();let _0x41bfac=_0x334a16[_0x37058a];return _0x41bfac;}import{getCliVersion}from'../utils/version.js';function a165_0x334a(){const _0x329029=['477048syhDqh','23fGlyoK','2160612ZqSXFG','24003hTXkXv','1420710xFnGvm','16314UOFIml','../commands/registry.js','1238128xNdJBJ','96QAqlrx','664128AhEliA'];a165_0x334a=function(){return _0x329029;};return a165_0x334a();}export async function buildSchemaPayload(){const _0x117e4f=a165_0x41bf,{serviceRegistry:_0x60a712,findDefinition:_0x4cae3d}=await import(_0x117e4f(0x10f));return a165_0x4e8b46({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x60a712,'buildAllFlags':buildAllFlags,'findDefinition':_0x4cae3d});}
@@ -1 +1 @@
1
- (function(_0x3ac8a6,_0x445d45){var _0x238fc4=a166_0x48c4,_0xf91524=_0x3ac8a6();while(!![]){try{var _0x34639a=parseInt(_0x238fc4(0x185))/0x1*(-parseInt(_0x238fc4(0x183))/0x2)+parseInt(_0x238fc4(0x186))/0x3+-parseInt(_0x238fc4(0x187))/0x4*(-parseInt(_0x238fc4(0x182))/0x5)+parseInt(_0x238fc4(0x189))/0x6+parseInt(_0x238fc4(0x188))/0x7*(-parseInt(_0x238fc4(0x184))/0x8)+-parseInt(_0x238fc4(0x18b))/0x9+-parseInt(_0x238fc4(0x18a))/0xa*(-parseInt(_0x238fc4(0x18c))/0xb);if(_0x34639a===_0x445d45)break;else _0xf91524['push'](_0xf91524['shift']());}catch(_0x27513c){_0xf91524['push'](_0xf91524['shift']());}}}(a166_0x30ca,0x44ecc));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a166_0x48c4(_0x4fb682,_0x5a6048){_0x4fb682=_0x4fb682-0x182;var _0x30ca71=a166_0x30ca();var _0x48c472=_0x30ca71[_0x4fb682];return _0x48c472;}function a166_0x30ca(){var _0xdaac3c=['1742629EAVQBA','1468482azsKCw','1920kHymME','2687247NyBRMC','59224mNToxI','10EzTzbn','2YUHSaV','16ckFYRp','344676rQijuZ','232164hNBdqb','135212TMbZec'];a166_0x30ca=function(){return _0xdaac3c;};return a166_0x30ca();}
1
+ (function(_0x32bf62,_0x25e8c7){var _0x46050a=a166_0x42ce,_0x53a1c0=_0x32bf62();while(!![]){try{var _0x26f895=parseInt(_0x46050a(0x72))/0x1*(parseInt(_0x46050a(0x73))/0x2)+parseInt(_0x46050a(0x71))/0x3+-parseInt(_0x46050a(0x77))/0x4*(parseInt(_0x46050a(0x76))/0x5)+-parseInt(_0x46050a(0x6d))/0x6*(-parseInt(_0x46050a(0x70))/0x7)+parseInt(_0x46050a(0x6e))/0x8+-parseInt(_0x46050a(0x75))/0x9*(parseInt(_0x46050a(0x6f))/0xa)+-parseInt(_0x46050a(0x74))/0xb;if(_0x26f895===_0x25e8c7)break;else _0x53a1c0['push'](_0x53a1c0['shift']());}catch(_0x2a547e){_0x53a1c0['push'](_0x53a1c0['shift']());}}}(a166_0x1ffd,0x73e91));function a166_0x42ce(_0x284b7e,_0x3e5377){_0x284b7e=_0x284b7e-0x6d;var _0x1ffd6d=a166_0x1ffd();var _0x42ced0=_0x1ffd6d[_0x284b7e];return _0x42ced0;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a166_0x1ffd(){var _0x55eaf7=['151134eXBuON','1679240nwJIaN','344030NEFEGE','133YfNeGL','857997zqzFHK','943313ZNaIqk','2qePjIx','5961439rXHQpe','99BvDQFV','45mpXEOY','232292eyXVZh'];a166_0x1ffd=function(){return _0x55eaf7;};return a166_0x1ffd();}
@@ -1 +1 @@
1
- function a167_0x22d9(){const _0x59f871=['5lewaac','1929024hbIztY','4079448FEIBZY','2FLhcLk','1304bRjYoj','2.1.7-beta.9','3350736WZljih','44632jNCeqB','13058610VCLIiW','578188LvJcTE','764232aSxftX'];a167_0x22d9=function(){return _0x59f871;};return a167_0x22d9();}const a167_0x719deb=a167_0x44ff;(function(_0x485d8d,_0x1d785a){const _0x4435dc=a167_0x44ff,_0x25ced8=_0x485d8d();while(!![]){try{const _0x3feb2d=-parseInt(_0x4435dc(0x1d5))/0x1*(-parseInt(_0x4435dc(0x1d0))/0x2)+-parseInt(_0x4435dc(0x1d3))/0x3+parseInt(_0x4435dc(0x1d1))/0x4+parseInt(_0x4435dc(0x1d2))/0x5*(parseInt(_0x4435dc(0x1d4))/0x6)+-parseInt(_0x4435dc(0x1d9))/0x7*(parseInt(_0x4435dc(0x1d6))/0x8)+-parseInt(_0x4435dc(0x1d8))/0x9+parseInt(_0x4435dc(0x1cf))/0xa;if(_0x3feb2d===_0x1d785a)break;else _0x25ced8['push'](_0x25ced8['shift']());}catch(_0x4870e4){_0x25ced8['push'](_0x25ced8['shift']());}}}(a167_0x22d9,0xaafff));export const VERSION=a167_0x719deb(0x1d7);function a167_0x44ff(_0x1563e8,_0xc3275){_0x1563e8=_0x1563e8-0x1cf;const _0x22d9fa=a167_0x22d9();let _0x44ffba=_0x22d9fa[_0x1563e8];return _0x44ffba;}export const GIT_TAG='v2.1.7-beta.9';export const GIT_COMMIT='8ab0b5f';export const BUILD_TIME='2026-04-27T07:52:19.343Z';
1
+ const a167_0x1bd427=a167_0x2dd8;(function(_0x359342,_0x2b2134){const _0xfec3ee=a167_0x2dd8,_0x2a4d41=_0x359342();while(!![]){try{const _0x146954=parseInt(_0xfec3ee(0x1b2))/0x1*(parseInt(_0xfec3ee(0x1bb))/0x2)+-parseInt(_0xfec3ee(0x1b9))/0x3*(-parseInt(_0xfec3ee(0x1bc))/0x4)+-parseInt(_0xfec3ee(0x1b8))/0x5*(-parseInt(_0xfec3ee(0x1b4))/0x6)+-parseInt(_0xfec3ee(0x1b0))/0x7*(parseInt(_0xfec3ee(0x1b5))/0x8)+-parseInt(_0xfec3ee(0x1b7))/0x9+parseInt(_0xfec3ee(0x1b1))/0xa*(parseInt(_0xfec3ee(0x1ba))/0xb)+-parseInt(_0xfec3ee(0x1b6))/0xc;if(_0x146954===_0x2b2134)break;else _0x2a4d41['push'](_0x2a4d41['shift']());}catch(_0x2fdfcd){_0x2a4d41['push'](_0x2a4d41['shift']());}}}(a167_0x4e33,0x98c57));export const VERSION='2.1.8';function a167_0x2dd8(_0x1f775c,_0x30ed77){_0x1f775c=_0x1f775c-0x1af;const _0x4e33ff=a167_0x4e33();let _0x2dd86a=_0x4e33ff[_0x1f775c];return _0x2dd86a;}function a167_0x4e33(){const _0x1e1038=['1668viWDzl','80120iAgwcF','6756624CgAzIo','9123156pqaOQA','11870ECnuKx','3oXAWFE','6861811ClBvGe','404990amLaTI','890452qNNYQp','v2.1.8','91TmoSHR','20RwQrBT','1BIOqGv','2026-04-27T11:22:09.326Z'];a167_0x4e33=function(){return _0x1e1038;};return a167_0x4e33();}export const GIT_TAG=a167_0x1bd427(0x1af);export const GIT_COMMIT='982a6ce';export const BUILD_TIME=a167_0x1bd427(0x1b3);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a168_0x1e03(){var _0x4932c9=['log','12355uyUpNH','3161760zsXjDr','3MdMBWJ','green','50nxJbda','783910jaTZZo','95025jYfMix','2100AbYSHH','12irqnuM','bold','16265892lZlnxr','\x20to\x20view\x20available\x20commands.','970470GqUiCn','171852eFeGNl','11YUehjZ','\x20--help'];a168_0x1e03=function(){return _0x4932c9;};return a168_0x1e03();}(function(_0x44d0d6,_0x66f765){var _0x3d757b=a168_0x31fa,_0x36a394=_0x44d0d6();while(!![]){try{var _0x258a8c=-parseInt(_0x3d757b(0x1ae))/0x1+-parseInt(_0x3d757b(0x1b6))/0x2*(-parseInt(_0x3d757b(0x1ab))/0x3)+-parseInt(_0x3d757b(0x1b1))/0x4*(-parseInt(_0x3d757b(0x1af))/0x5)+-parseInt(_0x3d757b(0x1b0))/0x6*(-parseInt(_0x3d757b(0x1a9))/0x7)+-parseInt(_0x3d757b(0x1aa))/0x8+-parseInt(_0x3d757b(0x1b5))/0x9*(parseInt(_0x3d757b(0x1ad))/0xa)+parseInt(_0x3d757b(0x1b7))/0xb*(parseInt(_0x3d757b(0x1b3))/0xc);if(_0x258a8c===_0x66f765)break;else _0x36a394['push'](_0x36a394['shift']());}catch(_0x2a376f){_0x36a394['push'](_0x36a394['shift']());}}}(a168_0x1e03,0x6124e));import a168_0x1b968b from'chalk';function a168_0x31fa(_0x521c9a,_0x1cd0fc){_0x521c9a=_0x521c9a-0x1a8;var _0x1e03d7=a168_0x1e03();var _0x31fad7=_0x1e03d7[_0x521c9a];return _0x31fad7;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x2991bb=a168_0x31fa;console['log'](),console['log'](a168_0x1b968b[_0x2991bb(0x1ac)][_0x2991bb(0x1b2)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x2991bb(0x1a8)](),console[_0x2991bb(0x1a8)]('\x20\x20Use\x20'+a168_0x1b968b[_0x2991bb(0x1ac)][_0x2991bb(0x1b2)](CLI_BIN_NAME+_0x2991bb(0x1b8))+_0x2991bb(0x1b4)),console[_0x2991bb(0x1a8)]();}
1
+ (function(_0xad2b9e,_0x1d2878){var _0x2ea44d=a168_0x4c5c,_0x73a4f3=_0xad2b9e();while(!![]){try{var _0x3aa94e=-parseInt(_0x2ea44d(0x168))/0x1+parseInt(_0x2ea44d(0x165))/0x2+-parseInt(_0x2ea44d(0x163))/0x3+parseInt(_0x2ea44d(0x167))/0x4+-parseInt(_0x2ea44d(0x162))/0x5+parseInt(_0x2ea44d(0x169))/0x6+parseInt(_0x2ea44d(0x15e))/0x7*(parseInt(_0x2ea44d(0x15d))/0x8);if(_0x3aa94e===_0x1d2878)break;else _0x73a4f3['push'](_0x73a4f3['shift']());}catch(_0x3a62f1){_0x73a4f3['push'](_0x73a4f3['shift']());}}}(a168_0x2015,0xd9f4e));function a168_0x2015(){var _0x46bfaf=['green','bold','\x20to\x20view\x20available\x20commands.','4084580xwzSQV','4192455BJnEmN','\x20\x20Use\x20','2133094URjqHu','\x20--help','2713752SktYdI','1189768ziqyWm','1327098mdjQVi','log','47688CaFjzS','2737SLLFEx'];a168_0x2015=function(){return _0x46bfaf;};return a168_0x2015();}import a168_0x308230 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a168_0x4c5c(_0x275926,_0x2f0609){_0x275926=_0x275926-0x15d;var _0x20151c=a168_0x2015();var _0x4c5c36=_0x20151c[_0x275926];return _0x4c5c36;}export function showHelp(){var _0x56e7f6=a168_0x4c5c;console['log'](),console[_0x56e7f6(0x16a)](a168_0x308230[_0x56e7f6(0x15f)]['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x56e7f6(0x16a)](),console[_0x56e7f6(0x16a)](_0x56e7f6(0x164)+a168_0x308230['green'][_0x56e7f6(0x160)](CLI_BIN_NAME+_0x56e7f6(0x166))+_0x56e7f6(0x161)),console[_0x56e7f6(0x16a)]();}
@@ -1 +1 @@
1
- (function(_0x42bee0,_0x5f1cd3){const _0x7ede03=a169_0x61ba,_0x3e509=_0x42bee0();while(!![]){try{const _0x55a794=parseInt(_0x7ede03(0x1b3))/0x1*(-parseInt(_0x7ede03(0x1c3))/0x2)+parseInt(_0x7ede03(0x1bd))/0x3+-parseInt(_0x7ede03(0x1d3))/0x4+-parseInt(_0x7ede03(0x1c7))/0x5*(parseInt(_0x7ede03(0x1ca))/0x6)+-parseInt(_0x7ede03(0x1d2))/0x7*(-parseInt(_0x7ede03(0x1c6))/0x8)+parseInt(_0x7ede03(0x1b7))/0x9*(parseInt(_0x7ede03(0x1b5))/0xa)+parseInt(_0x7ede03(0x1d0))/0xb;if(_0x55a794===_0x5f1cd3)break;else _0x3e509['push'](_0x3e509['shift']());}catch(_0x4c3499){_0x3e509['push'](_0x3e509['shift']());}}}(a169_0x510a,0x5d19e));function a169_0x510a(){const _0x5e3889=['push','3207174SUdkyP','error','-$1','Error:\x20Unsupported\x20command:\x20','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','(empty)','3553132IcSbrJ','cwd','2520091gDlCmX','2190020YJftct','entries','\x0aAvailable\x20commands:','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','Equivalent\x20command:\x20','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','25137kKsXHE','skill','1370rmWNXo','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','23751BFjZFi','dangerously-bff-save','length','startsWith','includes','argv','2010534btngtj','exit','help','\x20skill\x20--help\x0a\x20\x20','from','log','20JSNjkA','replace','slice','8KlyIxL','5gcEIoC','不支持的命令:\x20'];a169_0x510a=function(){return _0x5e3889;};return a169_0x510a();}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(_0x44a1ac){const _0x7cacb9=a169_0x61ba,_0x5719c5=[];for(const [_0x4b6cda,_0x16e983]of Object[_0x7cacb9(0x1ae)](_0x44a1ac)){if(_0x16e983===!![]){const _0x3b0e18=_0x4b6cda[_0x7cacb9(0x1c4)](/([A-Z])/g,_0x7cacb9(0x1cc))['toLowerCase']();_0x5719c5['push'](_0x3b0e18);}}return _0x5719c5;}export function parseDynamicFlags(){const _0x51e60b=a169_0x61ba,_0x3159df=[];for(let _0x52dc3f=0x3;_0x52dc3f<process[_0x51e60b(0x1bc)][_0x51e60b(0x1b9)];_0x52dc3f++){const _0x5686c5=process[_0x51e60b(0x1bc)][_0x52dc3f];if(_0x5686c5&&_0x5686c5[_0x51e60b(0x1ba)]('--')){const _0x9ad52a=_0x5686c5[_0x51e60b(0x1c5)](0x2);_0x9ad52a&&!_0x9ad52a[_0x51e60b(0x1bb)]('=')&&_0x3159df[_0x51e60b(0x1c9)](_0x9ad52a);}}return _0x3159df;}export function getAllProvidedFlags(_0x5da035){const _0x47aa5a=a169_0x61ba,_0x556cfe=camelCaseFlagsToKebab(_0x5da035),_0x26275a=parseDynamicFlags(),_0xd97f85=new Set([..._0x556cfe,..._0x26275a]);return Array[_0x47aa5a(0x1c1)](_0xd97f85);}export function normalizeLegacyBffSaveFlags(_0xadc52c){const _0x291ffb=a169_0x61ba,_0x375e19=new Set(_0xadc52c);return _0x375e19['has'](_0x291ffb(0x1b8))&&_0x375e19['add']('enable-bff-save'),Array[_0x291ffb(0x1c1)](_0x375e19);}function a169_0x61ba(_0x59cc59,_0x2e7f50){_0x59cc59=_0x59cc59-0x1ae;const _0x510a43=a169_0x510a();let _0x61ba40=_0x510a43[_0x59cc59];return _0x61ba40;}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x5f245c,_0x56325a,_0x11355a){const _0x3af9d3=a169_0x61ba;logger['setLogPath'](process[_0x3af9d3(0x1d1)]());if(_0x11355a?.[_0x3af9d3(0x1bf)]||_0x5f245c==='--help'){showHelp();return;}console['error'](_0x3af9d3(0x1cd)+(_0x5f245c||_0x3af9d3(0x1cf))),console['log'](_0x3af9d3(0x1af)),console[_0x3af9d3(0x1c2)]('\x20\x20'+CLI_BIN_NAME+_0x3af9d3(0x1b6)),console[_0x3af9d3(0x1c2)]('\x20\x20'+CLI_BIN_NAME+_0x3af9d3(0x1b2)),console[_0x3af9d3(0x1c2)](''),console[_0x3af9d3(0x1c2)](_0x3af9d3(0x1b1)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x3af9d3(0x1cb)](_0x3af9d3(0x1b4),_0x3af9d3(0x1c8)+_0x5f245c),process[_0x3af9d3(0x1be)](0x1);}function showHelp(){const _0xf5e98f=a169_0x61ba;console['log'](_0xf5e98f(0x1b0)+CLI_BIN_NAME+_0xf5e98f(0x1c0)+CLI_BIN_NAME+_0xf5e98f(0x1ce)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a');}
1
+ (function(_0x46c7df,_0x43477b){const _0x19ea86=a169_0xeea5,_0x150ff2=_0x46c7df();while(!![]){try{const _0xed1405=-parseInt(_0x19ea86(0x1c4))/0x1+parseInt(_0x19ea86(0x1ce))/0x2+-parseInt(_0x19ea86(0x1c2))/0x3+-parseInt(_0x19ea86(0x1cc))/0x4+parseInt(_0x19ea86(0x1ab))/0x5*(-parseInt(_0x19ea86(0x1bd))/0x6)+-parseInt(_0x19ea86(0x1ae))/0x7*(parseInt(_0x19ea86(0x1b0))/0x8)+-parseInt(_0x19ea86(0x1b4))/0x9*(-parseInt(_0x19ea86(0x1bb))/0xa);if(_0xed1405===_0x43477b)break;else _0x150ff2['push'](_0x150ff2['shift']());}catch(_0xa12cf0){_0x150ff2['push'](_0x150ff2['shift']());}}}(a169_0x47fd,0xcc7a0));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(_0x427510){const _0x10471c=a169_0xeea5,_0xd80645=[];for(const [_0x4ba530,_0x1194cd]of Object[_0x10471c(0x1bf)](_0x427510)){if(_0x1194cd===!![]){const _0x399514=_0x4ba530['replace'](/([A-Z])/g,_0x10471c(0x1c7))[_0x10471c(0x1c0)]();_0xd80645[_0x10471c(0x1ad)](_0x399514);}}return _0xd80645;}export function parseDynamicFlags(){const _0x3618fd=a169_0xeea5,_0x1a37aa=[];for(let _0x58074b=0x3;_0x58074b<process[_0x3618fd(0x1b5)][_0x3618fd(0x1cd)];_0x58074b++){const _0x7d4a83=process['argv'][_0x58074b];if(_0x7d4a83&&_0x7d4a83[_0x3618fd(0x1cb)]('--')){const _0xc59436=_0x7d4a83[_0x3618fd(0x1b8)](0x2);_0xc59436&&!_0xc59436['includes']('=')&&_0x1a37aa[_0x3618fd(0x1ad)](_0xc59436);}}return _0x1a37aa;}function a169_0xeea5(_0x1dd25e,_0x792708){_0x1dd25e=_0x1dd25e-0x1ab;const _0x47fdea=a169_0x47fd();let _0xeea505=_0x47fdea[_0x1dd25e];return _0xeea505;}export function getAllProvidedFlags(_0x298bba){const _0x119cd7=a169_0xeea5,_0x3934fc=camelCaseFlagsToKebab(_0x298bba),_0xfc9ff8=parseDynamicFlags(),_0x4ed569=new Set([..._0x3934fc,..._0xfc9ff8]);return Array[_0x119cd7(0x1b1)](_0x4ed569);}export function normalizeLegacyBffSaveFlags(_0xe68617){const _0x72488=a169_0xeea5,_0x36e204=new Set(_0xe68617);return _0x36e204[_0x72488(0x1c3)](_0x72488(0x1c6))&&_0x36e204['add']('enable-bff-save'),Array[_0x72488(0x1b1)](_0x36e204);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x29e992,_0x4a30c5,_0x1a11a3){const _0x48f66a=a169_0xeea5;logger['setLogPath'](process[_0x48f66a(0x1c9)]());if(_0x1a11a3?.['help']||_0x29e992===_0x48f66a(0x1ca)){showHelp();return;}console['error'](_0x48f66a(0x1b2)+(_0x29e992||'(empty)')),console[_0x48f66a(0x1b7)](_0x48f66a(0x1bc)),console[_0x48f66a(0x1b7)]('\x20\x20'+CLI_BIN_NAME+_0x48f66a(0x1af)),console[_0x48f66a(0x1b7)]('\x20\x20'+CLI_BIN_NAME+_0x48f66a(0x1c8)),console[_0x48f66a(0x1b7)](''),console[_0x48f66a(0x1b7)](_0x48f66a(0x1b3)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x48f66a(0x1b6)](_0x48f66a(0x1ba),_0x48f66a(0x1be)+_0x29e992),process[_0x48f66a(0x1c5)](0x1);}function showHelp(){const _0x36afd4=a169_0xeea5;console['log'](_0x36afd4(0x1ac)+CLI_BIN_NAME+'\x20skill\x20--help\x0a\x20\x20'+CLI_BIN_NAME+_0x36afd4(0x1b9)+SKILLS_INSTALL_COMMAND_LINE+_0x36afd4(0x1c1));}function a169_0x47fd(){const _0x17bbd1=['Error:\x20Unsupported\x20command:\x20','Equivalent\x20command:\x20','17838tTUsEf','argv','error','log','slice','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','skill','25630VRNKTq','\x0aAvailable\x20commands:','5393634dRckFY','不支持的命令:\x20','entries','toLowerCase','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','3750438nRuEKM','has','382mynaNN','exit','dangerously-bff-save','-$1','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','cwd','--help','startsWith','6226220YgBKca','length','213622YvNccq','5BRHGQJ','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','push','4501833KUsxzL','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','8sMMoRn','from'];a169_0x47fd=function(){return _0x17bbd1;};return a169_0x47fd();}
@@ -1 +1 @@
1
- const a170_0x4ff58c=a170_0x233e;(function(_0x1d441c,_0x15fc3d){const _0x437ff8=a170_0x233e,_0x592793=_0x1d441c();while(!![]){try{const _0x1d2ec6=-parseInt(_0x437ff8(0x161))/0x1*(-parseInt(_0x437ff8(0x157))/0x2)+parseInt(_0x437ff8(0x14f))/0x3*(-parseInt(_0x437ff8(0x14e))/0x4)+-parseInt(_0x437ff8(0x15c))/0x5+parseInt(_0x437ff8(0x163))/0x6+parseInt(_0x437ff8(0x154))/0x7+parseInt(_0x437ff8(0x166))/0x8+parseInt(_0x437ff8(0x15a))/0x9;if(_0x1d2ec6===_0x15fc3d)break;else _0x592793['push'](_0x592793['shift']());}catch(_0x110471){_0x592793['push'](_0x592793['shift']());}}}(a170_0x3421,0x19305));import{spawnSync}from'node:child_process';function a170_0x3421(){const _0x362c23=['log','158276zXkwQd','15WXWRCu','lovrabet/rabetbase','stderr','skill','inherit','23863WTghLG','npx','remove','2998LuKCdh','yes','Lovrabet','1507923NTvNej','join','336630KtAVkC','trim','exit\x20','--skill','add','78jYnjKw','unknown','161886RCCyyf','skills','pipe','427880IqHvLN','toString','stdio','stdout','status'];a170_0x3421=function(){return _0x362c23;};return a170_0x3421();}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=a170_0x4ff58c(0x164);export const NPX_SKILLS_SUBCOMMAND_ADD=a170_0x4ff58c(0x160);export const NPX_SKILLS_FLAG_SKILL=a170_0x4ff58c(0x15f);export const RABETBASE_SKILL_SOURCE=a170_0x4ff58c(0x150);export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME=a170_0x4ff58c(0x159);export function buildNpxSkillsAddArgv(_0x342f54=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x342f54];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a170_0x4ff58c(0x155),...buildNpxSkillsAddArgv()]['join']('\x20');function a170_0x233e(_0x5d7796,_0x5a6b6e){_0x5d7796=_0x5d7796-0x14c;const _0x34216a=a170_0x3421();let _0x233e06=_0x34216a[_0x5d7796];return _0x233e06;}export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a170_0x4ff58c(0x155),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a170_0x4ff58c(0x15b)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x298fce,_0x26f28b){const _0x2dad13=a170_0x4ff58c;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x420684=_0x26f28b?.['stdio']??_0x2dad13(0x153),_0x2d0836=resolveNpmBin(_0x2dad13(0x155)),_0x4ca104=buildNpxSkillsAddArgv(_0x26f28b?.['skill']??DEFAULT_RABETBASE_SKILL_NAME),_0x41448f=[_0x2dad13(0x155),..._0x4ca104][_0x2dad13(0x15b)]('\x20');console[_0x2dad13(0x14d)]('*\x20'+_0x41448f);const _0x4331f3=spawnSync(_0x2d0836,_0x4ca104,{'cwd':_0x298fce,'stdio':_0x420684,'env':process.env,'shell':![]}),_0x3e9014=_0x4331f3[_0x2dad13(0x14c)];if(_0x3e9014===0x0)return{'ok':!![],'status':0x0};let _0x394ec3=_0x2dad13(0x15e)+(_0x3e9014??_0x2dad13(0x162));if(_0x420684===_0x2dad13(0x165)){const _0x3a550d=_0x4331f3[_0x2dad13(0x151)]?_0x4331f3[_0x2dad13(0x151)][_0x2dad13(0x167)]()['trim']():'',_0x56eb23=_0x4331f3[_0x2dad13(0x169)]?_0x4331f3[_0x2dad13(0x169)][_0x2dad13(0x167)]()[_0x2dad13(0x15d)]():'';if(_0x3a550d)_0x394ec3=_0x3a550d;else{if(_0x56eb23)_0x394ec3=_0x56eb23;}}return{'ok':![],'status':_0x3e9014??null,'error':_0x394ec3};}export function runNpxSkillsRemove(_0x11c373,_0x3a6b6e,_0xbacfc1=LEGACY_RABETBASE_SKILL_SOURCE){const _0x3613db=a170_0x4ff58c;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x360e42=_0x3a6b6e?.[_0x3613db(0x168)]??_0x3613db(0x153),_0x777e30=resolveNpmBin(_0x3613db(0x155)),_0x137a11=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x3613db(0x156),_0xbacfc1,NPX_SKILLS_FLAG_SKILL,_0x3a6b6e?.[_0x3613db(0x152)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x3a6b6e?.[_0x3613db(0x158)]?['-y']:[]],_0x17d89e=[_0x777e30,..._0x137a11]['join']('\x20');console['log']('*\x20'+_0x17d89e);const _0x2aba81=spawnSync(_0x777e30,_0x137a11,{'cwd':_0x11c373,'stdio':_0x360e42,'env':process.env,'shell':![]}),_0x5d3578=_0x2aba81[_0x3613db(0x14c)];if(_0x5d3578===0x0)return{'ok':!![],'status':0x0};let _0x4fd547=_0x3613db(0x15e)+(_0x5d3578??'unknown');if(_0x360e42===_0x3613db(0x165)){const _0x496ba4=_0x2aba81[_0x3613db(0x151)]?_0x2aba81[_0x3613db(0x151)][_0x3613db(0x167)]()[_0x3613db(0x15d)]():'',_0x3fd44b=_0x2aba81['stdout']?_0x2aba81['stdout'][_0x3613db(0x167)]()[_0x3613db(0x15d)]():'';if(_0x496ba4)_0x4fd547=_0x496ba4;else{if(_0x3fd44b)_0x4fd547=_0x3fd44b;}}return{'ok':![],'status':_0x5d3578??null,'error':_0x4fd547};}export function runNpxSkillsAddGlobal(_0x30a69d,_0x53212e,_0x3dab12){const _0x2bea7c=a170_0x4ff58c;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xd9f868=_0x3dab12?.['stdio']??'inherit',_0x553fee=resolveNpmBin(_0x2bea7c(0x155)),_0x57e67a=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x53212e,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x26a694=[_0x2bea7c(0x155),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x53212e,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x2bea7c(0x15b)]('\x20');console['log']('*\x20'+_0x26a694);const _0x495e6=spawnSync(_0x553fee,_0x57e67a,{'cwd':_0x30a69d,'stdio':_0xd9f868,'env':process.env,'shell':![]}),_0x5dfa41=_0x495e6['status'];if(_0x5dfa41===0x0)return{'ok':!![],'status':0x0};let _0x3c2252=_0x2bea7c(0x15e)+(_0x5dfa41??_0x2bea7c(0x162));if(_0xd9f868===_0x2bea7c(0x165)){const _0x32b4c3=_0x495e6[_0x2bea7c(0x151)]?_0x495e6[_0x2bea7c(0x151)][_0x2bea7c(0x167)]()[_0x2bea7c(0x15d)]():'',_0x3988ea=_0x495e6[_0x2bea7c(0x169)]?_0x495e6['stdout'][_0x2bea7c(0x167)]()['trim']():'';if(_0x32b4c3)_0x3c2252=_0x32b4c3;else{if(_0x3988ea)_0x3c2252=_0x3988ea;}}return{'ok':![],'status':_0x5dfa41??null,'error':_0x3c2252};}
1
+ const a170_0x5c0712=a170_0x26d3;(function(_0x515093,_0x2fd98f){const _0x2a3d9c=a170_0x26d3,_0x5f4998=_0x515093();while(!![]){try{const _0x8f0a7=-parseInt(_0x2a3d9c(0xf0))/0x1+-parseInt(_0x2a3d9c(0xfe))/0x2*(parseInt(_0x2a3d9c(0xff))/0x3)+-parseInt(_0x2a3d9c(0xf3))/0x4+-parseInt(_0x2a3d9c(0xe6))/0x5*(-parseInt(_0x2a3d9c(0xe8))/0x6)+parseInt(_0x2a3d9c(0xf7))/0x7+-parseInt(_0x2a3d9c(0xe5))/0x8*(-parseInt(_0x2a3d9c(0xef))/0x9)+-parseInt(_0x2a3d9c(0xfa))/0xa*(-parseInt(_0x2a3d9c(0xf9))/0xb);if(_0x8f0a7===_0x2fd98f)break;else _0x5f4998['push'](_0x5f4998['shift']());}catch(_0x1db64b){_0x5f4998['push'](_0x5f4998['shift']());}}}(a170_0x37b6,0xafb1e));import{spawnSync}from'node:child_process';function a170_0x26d3(_0x513569,_0x125aab){_0x513569=_0x513569-0xe5;const _0x37b690=a170_0x37b6();let _0x26d313=_0x37b690[_0x513569];return _0x26d313;}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=a170_0x5c0712(0xe7);export const NPX_SKILLS_SUBCOMMAND_ADD=a170_0x5c0712(0xec);function a170_0x37b6(){const _0x245d72=['skill','stderr','6BvJxlu','686253siNuWG','Lovrabet','stdout','stdio','280chpcIX','608030PmlVTt','skills','66RymgMF','npx','pipe','exit\x20','add','log','--skill','17811AEusUt','531271SRmtkH','toString','lovrabet/rabetbase','4357568pdoEap','join','inherit','unknown','3702727sWekLe','status','77vNFvIz','1558100NNdaXF','trim'];a170_0x37b6=function(){return _0x245d72;};return a170_0x37b6();}export const NPX_SKILLS_FLAG_SKILL=a170_0x5c0712(0xee);export const RABETBASE_SKILL_SOURCE=a170_0x5c0712(0xf2);export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME=a170_0x5c0712(0x100);export function buildNpxSkillsAddArgv(_0x3f0817=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x3f0817];}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()][a170_0x5c0712(0xf4)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a170_0x5c0712(0xe9),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(_0xa2fb72,_0x518601){const _0x34328b=a170_0x5c0712;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x28c8ac=_0x518601?.[_0x34328b(0x102)]??_0x34328b(0xf5),_0x15d545=resolveNpmBin(_0x34328b(0xe9)),_0x1ccda4=buildNpxSkillsAddArgv(_0x518601?.[_0x34328b(0xfc)]??DEFAULT_RABETBASE_SKILL_NAME),_0x378a13=[_0x34328b(0xe9),..._0x1ccda4][_0x34328b(0xf4)]('\x20');console[_0x34328b(0xed)]('*\x20'+_0x378a13);const _0x3c1990=spawnSync(_0x15d545,_0x1ccda4,{'cwd':_0xa2fb72,'stdio':_0x28c8ac,'env':process.env,'shell':![]}),_0x3b37c6=_0x3c1990[_0x34328b(0xf8)];if(_0x3b37c6===0x0)return{'ok':!![],'status':0x0};let _0x585adc=_0x34328b(0xeb)+(_0x3b37c6??_0x34328b(0xf6));if(_0x28c8ac===_0x34328b(0xea)){const _0x54fbf2=_0x3c1990[_0x34328b(0xfd)]?_0x3c1990[_0x34328b(0xfd)][_0x34328b(0xf1)]()['trim']():'',_0x4c515f=_0x3c1990[_0x34328b(0x101)]?_0x3c1990[_0x34328b(0x101)][_0x34328b(0xf1)]()[_0x34328b(0xfb)]():'';if(_0x54fbf2)_0x585adc=_0x54fbf2;else{if(_0x4c515f)_0x585adc=_0x4c515f;}}return{'ok':![],'status':_0x3b37c6??null,'error':_0x585adc};}export function runNpxSkillsRemove(_0x23955b,_0x4437d2,_0x2acffd=LEGACY_RABETBASE_SKILL_SOURCE){const _0x1106f6=a170_0x5c0712;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x41aee6=_0x4437d2?.[_0x1106f6(0x102)]??'inherit',_0x140a7d=resolveNpmBin(_0x1106f6(0xe9)),_0x11f21f=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x2acffd,NPX_SKILLS_FLAG_SKILL,_0x4437d2?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x4437d2?.['yes']?['-y']:[]],_0x481b55=[_0x140a7d,..._0x11f21f][_0x1106f6(0xf4)]('\x20');console['log']('*\x20'+_0x481b55);const _0x1fd727=spawnSync(_0x140a7d,_0x11f21f,{'cwd':_0x23955b,'stdio':_0x41aee6,'env':process.env,'shell':![]}),_0x2cafe6=_0x1fd727[_0x1106f6(0xf8)];if(_0x2cafe6===0x0)return{'ok':!![],'status':0x0};let _0x2d48ad='exit\x20'+(_0x2cafe6??'unknown');if(_0x41aee6==='pipe'){const _0x5e1a55=_0x1fd727['stderr']?_0x1fd727[_0x1106f6(0xfd)]['toString']()[_0x1106f6(0xfb)]():'',_0x8f224=_0x1fd727[_0x1106f6(0x101)]?_0x1fd727[_0x1106f6(0x101)][_0x1106f6(0xf1)]()[_0x1106f6(0xfb)]():'';if(_0x5e1a55)_0x2d48ad=_0x5e1a55;else{if(_0x8f224)_0x2d48ad=_0x8f224;}}return{'ok':![],'status':_0x2cafe6??null,'error':_0x2d48ad};}export function runNpxSkillsAddGlobal(_0x4765bc,_0x4e0e13,_0x1c2f8c){const _0x1dc539=a170_0x5c0712;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x17c5c9=_0x1c2f8c?.[_0x1dc539(0x102)]??_0x1dc539(0xf5),_0x422a16=resolveNpmBin(_0x1dc539(0xe9)),_0x29ce46=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4e0e13,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x4dac41=[_0x1dc539(0xe9),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4e0e13,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x1dc539(0xf4)]('\x20');console['log']('*\x20'+_0x4dac41);const _0x5e393c=spawnSync(_0x422a16,_0x29ce46,{'cwd':_0x4765bc,'stdio':_0x17c5c9,'env':process.env,'shell':![]}),_0x121da1=_0x5e393c['status'];if(_0x121da1===0x0)return{'ok':!![],'status':0x0};let _0x29a66f='exit\x20'+(_0x121da1??_0x1dc539(0xf6));if(_0x17c5c9===_0x1dc539(0xea)){const _0x2cd5a0=_0x5e393c[_0x1dc539(0xfd)]?_0x5e393c[_0x1dc539(0xfd)][_0x1dc539(0xf1)]()[_0x1dc539(0xfb)]():'',_0x4caf59=_0x5e393c['stdout']?_0x5e393c['stdout'][_0x1dc539(0xf1)]()[_0x1dc539(0xfb)]():'';if(_0x2cd5a0)_0x29a66f=_0x2cd5a0;else{if(_0x4caf59)_0x29a66f=_0x4caf59;}}return{'ok':![],'status':_0x121da1??null,'error':_0x29a66f};}
@@ -1 +1 @@
1
- (function(_0x36cd0d,_0x4d5d08){const _0x534b0d=a171_0x31c4,_0x34df12=_0x36cd0d();while(!![]){try{const _0x518bdc=-parseInt(_0x534b0d(0x1d5))/0x1+parseInt(_0x534b0d(0x1d7))/0x2*(parseInt(_0x534b0d(0x1cc))/0x3)+parseInt(_0x534b0d(0x1d2))/0x4*(-parseInt(_0x534b0d(0x1d1))/0x5)+parseInt(_0x534b0d(0x1ce))/0x6+-parseInt(_0x534b0d(0x1c8))/0x7+parseInt(_0x534b0d(0x1d9))/0x8+parseInt(_0x534b0d(0x1cd))/0x9;if(_0x518bdc===_0x4d5d08)break;else _0x34df12['push'](_0x34df12['shift']());}catch(_0x1ed6a6){_0x34df12['push'](_0x34df12['shift']());}}}(a171_0x3b21,0x98fdd));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(_0x2c6365){const _0xbc37f0=a171_0x31c4;return SENSITIVE_PATTERNS[_0xbc37f0(0x1cf)](_0x4d9da4=>_0x4d9da4[_0xbc37f0(0x1ca)](_0x2c6365));}function a171_0x3b21(){const _0x2e6734=['3266215xsnXdw','4wxeTfY','durationMs','error','309397YvPhDw','rabetbase.command','673108dmlxRc','stringify','2328272YWFmUo','8741705hwQAPc','service','test','flags','3jFZTSh','14926356kyAtKk','3312216vbxyis','some','message'];a171_0x3b21=function(){return _0x2e6734;};return a171_0x3b21();}function sanitizeFlags(_0x2c38e0){const _0x5c2c29={};for(const [_0x7e6793,_0x19a27b]of Object['entries'](_0x2c38e0)){isSensitiveKey(_0x7e6793)?_0x5c2c29[_0x7e6793]=_0x19a27b!=null&&_0x19a27b!==''?'[REDACTED]':_0x19a27b:_0x5c2c29[_0x7e6793]=_0x19a27b;}return _0x5c2c29;}function a171_0x31c4(_0x15a46d,_0x233e04){_0x15a46d=_0x15a46d-0x1c8;const _0x3b215f=a171_0x3b21();let _0x31c4b6=_0x3b215f[_0x15a46d];return _0x31c4b6;}export async function reportCommandTrace(_0x4dc4e5){const _0x574b33=a171_0x31c4;try{const _0x4b5a86=sanitizeFlags(_0x4dc4e5[_0x574b33(0x1cb)]);await sendCliTraceLog({'spanName':_0x574b33(0x1d6),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x4dc4e5[_0x574b33(0x1c9)],'command.name':_0x4dc4e5['command'],'command.flags':JSON[_0x574b33(0x1d8)](_0x4b5a86),..._0x4dc4e5[_0x574b33(0x1d3)]!=null?{'command.duration_ms':_0x4dc4e5['durationMs']}:{},..._0x4dc4e5[_0x574b33(0x1d4)]?{'command.error':_0x4dc4e5[_0x574b33(0x1d4)]instanceof Error?_0x4dc4e5[_0x574b33(0x1d4)][_0x574b33(0x1d0)]:String(_0x4dc4e5[_0x574b33(0x1d4)])}:{}}});}catch{}}
1
+ (function(_0x3898f5,_0x1660a9){const _0x25be70=a171_0x3a13,_0x1ba622=_0x3898f5();while(!![]){try{const _0x341739=-parseInt(_0x25be70(0x109))/0x1*(parseInt(_0x25be70(0x111))/0x2)+parseInt(_0x25be70(0x107))/0x3*(parseInt(_0x25be70(0x115))/0x4)+parseInt(_0x25be70(0x10b))/0x5*(-parseInt(_0x25be70(0x10d))/0x6)+parseInt(_0x25be70(0x10e))/0x7+parseInt(_0x25be70(0x106))/0x8*(-parseInt(_0x25be70(0x117))/0x9)+-parseInt(_0x25be70(0x108))/0xa+parseInt(_0x25be70(0x10a))/0xb;if(_0x341739===_0x1660a9)break;else _0x1ba622['push'](_0x1ba622['shift']());}catch(_0x5184c8){_0x1ba622['push'](_0x1ba622['shift']());}}}(a171_0x4250,0x8bb91));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a171_0x4250(){const _0x4efcf1=['service','649742vVLntM','durationMs','flags','rabetbase.command','4pMxYwe','message','9ImvGrA','339864SelKYh','2313276SHsJkS','2265950VzoJNC','3BJFdvc','16657949oZAgnU','10375jHZEYJ','error','2724cVKzNk','3308165WlMUHR','stringify'];a171_0x4250=function(){return _0x4efcf1;};return a171_0x4250();}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 a171_0x3a13(_0x4e0ee4,_0x4f8fe6){_0x4e0ee4=_0x4e0ee4-0x106;const _0x425020=a171_0x4250();let _0x3a13b8=_0x425020[_0x4e0ee4];return _0x3a13b8;}function isSensitiveKey(_0x2d1e7c){return SENSITIVE_PATTERNS['some'](_0x245c2f=>_0x245c2f['test'](_0x2d1e7c));}function sanitizeFlags(_0x5046cb){const _0x450277={};for(const [_0x5e2885,_0x28256e]of Object['entries'](_0x5046cb)){isSensitiveKey(_0x5e2885)?_0x450277[_0x5e2885]=_0x28256e!=null&&_0x28256e!==''?'[REDACTED]':_0x28256e:_0x450277[_0x5e2885]=_0x28256e;}return _0x450277;}export async function reportCommandTrace(_0x31c2a0){const _0x28dabb=a171_0x3a13;try{const _0x36752f=sanitizeFlags(_0x31c2a0[_0x28dabb(0x113)]);await sendCliTraceLog({'spanName':_0x28dabb(0x114),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x31c2a0[_0x28dabb(0x110)],'command.name':_0x31c2a0['command'],'command.flags':JSON[_0x28dabb(0x10f)](_0x36752f),..._0x31c2a0[_0x28dabb(0x112)]!=null?{'command.duration_ms':_0x31c2a0[_0x28dabb(0x112)]}:{},..._0x31c2a0[_0x28dabb(0x10c)]?{'command.error':_0x31c2a0[_0x28dabb(0x10c)]instanceof Error?_0x31c2a0[_0x28dabb(0x10c)][_0x28dabb(0x116)]:String(_0x31c2a0['error'])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a172_0xab1a(){var _0x4b2b6b=['5tXbxYZ','93646gBBYYC','503042yAJBLe','error','Failed\x20to\x20report\x20CLI\x20help\x20trace:','service','1012101mmBZwS','90kBYxjp','1345912LXJwuN','96QpPLCQ','66941039KtfYcf','20iKGqOC','9713335DoIKEJ','cli.help','16753540KVJgpX'];a172_0xab1a=function(){return _0x4b2b6b;};return a172_0xab1a();}(function(_0x317044,_0x197d9c){var _0x21b340=a172_0x4338,_0x4576bc=_0x317044();while(!![]){try{var _0x3db1c6=-parseInt(_0x21b340(0x14d))/0x1*(parseInt(_0x21b340(0x14f))/0x2)+-parseInt(_0x21b340(0x153))/0x3*(parseInt(_0x21b340(0x158))/0x4)+-parseInt(_0x21b340(0x14a))/0x5+-parseInt(_0x21b340(0x156))/0x6*(parseInt(_0x21b340(0x14e))/0x7)+parseInt(_0x21b340(0x155))/0x8*(-parseInt(_0x21b340(0x154))/0x9)+parseInt(_0x21b340(0x14c))/0xa+parseInt(_0x21b340(0x157))/0xb;if(_0x3db1c6===_0x197d9c)break;else _0x4576bc['push'](_0x4576bc['shift']());}catch(_0x408930){_0x4576bc['push'](_0x4576bc['shift']());}}}(a172_0xab1a,0xee9ce));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a172_0x4338(_0x3ad054,_0x5d5d49){_0x3ad054=_0x3ad054-0x14a;var _0xab1a5f=a172_0xab1a();var _0x4338d0=_0xab1a5f[_0x3ad054];return _0x4338d0;}export async function reportCliHelpTrace(_0x5beb02,_0x35d2a4){var _0x341858=a172_0x4338;try{await sendCliTraceLog({'spanName':_0x341858(0x14b),'logData':{'rabetbase.help.kind':_0x5beb02,..._0x35d2a4?.[_0x341858(0x152)]&&{'rabetbase.help.service':_0x35d2a4[_0x341858(0x152)]}}});}catch(_0x2af054){console[_0x341858(0x150)](_0x341858(0x151),_0x2af054);}}
1
+ (function(_0x3ec6c1,_0x500ddf){var _0x5aad6d=a172_0x3d98,_0x860eb9=_0x3ec6c1();while(!![]){try{var _0x1d40a6=parseInt(_0x5aad6d(0x1d9))/0x1*(parseInt(_0x5aad6d(0x1e2))/0x2)+parseInt(_0x5aad6d(0x1d6))/0x3+parseInt(_0x5aad6d(0x1de))/0x4*(parseInt(_0x5aad6d(0x1d7))/0x5)+parseInt(_0x5aad6d(0x1d8))/0x6+-parseInt(_0x5aad6d(0x1dc))/0x7+parseInt(_0x5aad6d(0x1e1))/0x8*(parseInt(_0x5aad6d(0x1e3))/0x9)+parseInt(_0x5aad6d(0x1da))/0xa*(-parseInt(_0x5aad6d(0x1e0))/0xb);if(_0x1d40a6===_0x500ddf)break;else _0x860eb9['push'](_0x860eb9['shift']());}catch(_0x42e8c6){_0x860eb9['push'](_0x860eb9['shift']());}}}(a172_0x1225,0x83b66));function a172_0x3d98(_0xd4f50,_0xcc2c76){_0xd4f50=_0xd4f50-0x1d6;var _0x122510=a172_0x1225();var _0x3d9892=_0x122510[_0xd4f50];return _0x3d9892;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x31e2db,_0x171b8b){var _0x20042f=a172_0x3d98;try{await sendCliTraceLog({'spanName':_0x20042f(0x1db),'logData':{'rabetbase.help.kind':_0x31e2db,..._0x171b8b?.[_0x20042f(0x1df)]&&{'rabetbase.help.service':_0x171b8b[_0x20042f(0x1df)]}}});}catch(_0x14a5e0){console['error'](_0x20042f(0x1dd),_0x14a5e0);}}function a172_0x1225(){var _0x3c6c85=['service','16126ShCZNO','712840gEGUQR','2eAoPXL','18MooTwy','592089VxohtP','238100LbahRu','1694916GqFSKV','520235QcgQIV','1230bqAZsh','cli.help','7209454vxxzXF','Failed\x20to\x20report\x20CLI\x20help\x20trace:','48OuTzDL'];a172_0x1225=function(){return _0x3c6c85;};return a172_0x1225();}
@@ -1 +1 @@
1
- (function(_0x1257e0,_0x2cf51e){const _0x4954fd=a173_0xb427,_0x598345=_0x1257e0();while(!![]){try{const _0x1e48af=parseInt(_0x4954fd(0xb7))/0x1+-parseInt(_0x4954fd(0xb2))/0x2+parseInt(_0x4954fd(0xbc))/0x3*(-parseInt(_0x4954fd(0xaf))/0x4)+-parseInt(_0x4954fd(0xb4))/0x5*(-parseInt(_0x4954fd(0xb6))/0x6)+-parseInt(_0x4954fd(0xb3))/0x7+-parseInt(_0x4954fd(0xb8))/0x8+parseInt(_0x4954fd(0xb9))/0x9;if(_0x1e48af===_0x2cf51e)break;else _0x598345['push'](_0x598345['shift']());}catch(_0x4d0a7e){_0x598345['push'](_0x598345['shift']());}}}(a173_0x8bd9,0x7c4de));import a173_0x5e339c from'node:os';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a173_0x8bd9(){const _0x210cce=['128286ecmLGM','350873wBUlDD','7070048OqPeKN','21928500vICKZi','rabetbase-cli','nickname','56460dZnWxP','92cOzgDr','username','daily','1535742WxlFQx','6145496vrftAw','160hoKLNA','production'];a173_0x8bd9=function(){return _0x210cce;};return a173_0x8bd9();}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setTraceConfig,getOtelLoggerVersion}from'@lovrabet/otel-logger';function a173_0xb427(_0x20acde,_0x18be3c){_0x20acde=_0x20acde-0xaf;const _0x8bd93c=a173_0x8bd9();let _0xb427e1=_0x8bd93c[_0x20acde];return _0xb427e1;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x50d1f0=a173_0xb427,_0x1b8c01=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0xfe7288=_0x1b8c01?.['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'?_0x50d1f0(0xb1):_0x50d1f0(0xb5)),'username':_0xfe7288?.[_0x50d1f0(0xb0)]??a173_0x5e339c['userInfo']()['username']??_0x50d1f0(0xba),..._0xfe7288&&{'nickname':_0xfe7288[_0x50d1f0(0xbb)]}}),cliOtelTraceInitialized=!![];}return _0x1b8c01;}
1
+ function a173_0x3457(){const _0x3bd5e7=['username','production','2658iqNRPa','userInfo','27ToVaBo','7930432GadktR','unknown','7484067EAXque','2125095wONbkE','385296OhYNeg','9884DLuLOD','19345060QvCqbq','daily','12vTxaXP','rabetbase-cli','user','nickname','36310JSvrQC'];a173_0x3457=function(){return _0x3bd5e7;};return a173_0x3457();}(function(_0x5cee69,_0x65ec86){const _0xeb6914=a173_0x20c4,_0x4140a8=_0x5cee69();while(!![]){try{const _0x2922f1=parseInt(_0xeb6914(0x11a))/0x1*(parseInt(_0xeb6914(0x127))/0x2)+parseInt(_0xeb6914(0x123))/0x3*(parseInt(_0xeb6914(0x11f))/0x4)+parseInt(_0xeb6914(0x11e))/0x5+-parseInt(_0xeb6914(0x12a))/0x6*(parseInt(_0xeb6914(0x120))/0x7)+parseInt(_0xeb6914(0x11b))/0x8+parseInt(_0xeb6914(0x11d))/0x9+-parseInt(_0xeb6914(0x121))/0xa;if(_0x2922f1===_0x65ec86)break;else _0x4140a8['push'](_0x4140a8['shift']());}catch(_0x3fb260){_0x4140a8['push'](_0x4140a8['shift']());}}}(a173_0x3457,0x89891));import a173_0xf62995 from'node:os';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a173_0x20c4(_0x111095,_0x287413){_0x111095=_0x111095-0x119;const _0x3457d2=a173_0x3457();let _0x20c4bd=_0x3457d2[_0x111095];return _0x20c4bd;}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=![];export async function ensureCliOtelTraceConfig(){const _0x184762=a173_0x20c4,_0x31d7d8=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x19ead6=_0x31d7d8?.[_0x184762(0x125)];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x184762(0x11c)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x184762(0x122):_0x184762(0x129)),'username':_0x19ead6?.[_0x184762(0x128)]??a173_0xf62995[_0x184762(0x119)]()[_0x184762(0x128)]??_0x184762(0x124),..._0x19ead6&&{'nickname':_0x19ead6[_0x184762(0x126)]}}),cliOtelTraceInitialized=!![];}return _0x31d7d8;}
@@ -1 +1 @@
1
- (function(_0xf9ca4d,_0x56a80b){const _0x19e00d=a174_0x1723,_0x1e88c2=_0xf9ca4d();while(!![]){try{const _0x4c0b11=parseInt(_0x19e00d(0x12b))/0x1+-parseInt(_0x19e00d(0x128))/0x2*(parseInt(_0x19e00d(0x125))/0x3)+-parseInt(_0x19e00d(0x122))/0x4+-parseInt(_0x19e00d(0x11e))/0x5*(parseInt(_0x19e00d(0x121))/0x6)+parseInt(_0x19e00d(0x12c))/0x7*(parseInt(_0x19e00d(0x11f))/0x8)+parseInt(_0x19e00d(0x12d))/0x9+-parseInt(_0x19e00d(0x127))/0xa*(-parseInt(_0x19e00d(0x126))/0xb);if(_0x4c0b11===_0x56a80b)break;else _0x1e88c2['push'](_0x1e88c2['shift']());}catch(_0x471426){_0x1e88c2['push'](_0x1e88c2['shift']());}}}(a174_0x53e2,0x6fa6e));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a174_0x1723(_0x41b12b,_0x5177e0){_0x41b12b=_0x41b12b-0x11e;const _0x53e21d=a174_0x53e2();let _0x172387=_0x53e21d[_0x41b12b];return _0x172387;}export function registerOtelShutdownOnExit(){const _0x23f1c6=a174_0x1723;process[_0x23f1c6(0x12a)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x356caa=()=>{const _0x476986=_0x23f1c6;void flushOtelNodeIfUsed()[_0x476986(0x129)](()=>process[_0x476986(0x120)](0x0));};process[_0x23f1c6(0x12a)](_0x23f1c6(0x124),_0x356caa),process[_0x23f1c6(0x12a)](_0x23f1c6(0x123),_0x356caa);}function a174_0x53e2(){const _0x79a010=['once','171862CDLpSM','42yHQKZF','7442640oRKUJa','190CbWanz','12944pciHid','exit','104784UnrMFd','932036YppaGm','SIGTERM','SIGINT','61776yjquNz','1125289oNTkCc','70KnlmYZ','36XaCBQO','then'];a174_0x53e2=function(){return _0x79a010;};return a174_0x53e2();}export async function exitWithOtelShutdown(_0x2f6016){await flushOtelNodeIfUsed(),process['exit'](_0x2f6016);}
1
+ (function(_0x27aaa2,_0x18e8e1){const _0x179934=a174_0x1287,_0x21fdef=_0x27aaa2();while(!![]){try{const _0x30ddd2=parseInt(_0x179934(0xe3))/0x1+parseInt(_0x179934(0xe1))/0x2+parseInt(_0x179934(0xde))/0x3*(parseInt(_0x179934(0xda))/0x4)+-parseInt(_0x179934(0xd9))/0x5+-parseInt(_0x179934(0xdb))/0x6*(-parseInt(_0x179934(0xe2))/0x7)+parseInt(_0x179934(0xe5))/0x8+-parseInt(_0x179934(0xdd))/0x9*(parseInt(_0x179934(0xe4))/0xa);if(_0x30ddd2===_0x18e8e1)break;else _0x21fdef['push'](_0x21fdef['shift']());}catch(_0x220196){_0x21fdef['push'](_0x21fdef['shift']());}}}(a174_0x14bc,0x4f17a));import{shutdownTraces}from'@lovrabet/otel-logger';function a174_0x14bc(){const _0x1e0fdf=['45BTHlTl','3bBxBlj','beforeExit','once','4584KkRiyo','7pFUGSK','596398vvyKRN','41390bEuHdu','582976lWjVjt','3210575tVbwiN','1208668lUjioM','78258DIrAHB','SIGTERM'];a174_0x14bc=function(){return _0x1e0fdf;};return a174_0x14bc();}function a174_0x1287(_0xd41fad,_0x44c549){_0xd41fad=_0xd41fad-0xd9;const _0x14bc47=a174_0x14bc();let _0x128724=_0x14bc47[_0xd41fad];return _0x128724;}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0xd9e216=a174_0x1287;process[_0xd9e216(0xe0)](_0xd9e216(0xdf),()=>{void flushOtelNodeIfUsed();});const _0x1c1b72=()=>{void flushOtelNodeIfUsed()['then'](()=>process['exit'](0x0));};process[_0xd9e216(0xe0)]('SIGINT',_0x1c1b72),process[_0xd9e216(0xe0)](_0xd9e216(0xdc),_0x1c1b72);}export async function exitWithOtelShutdown(_0xa2f09e){await flushOtelNodeIfUsed(),process['exit'](_0xa2f09e);}
@@ -1 +1 @@
1
- const a175_0x56638=a175_0xda65;(function(_0x46222d,_0x1b7ebb){const _0x25fd0b=a175_0xda65,_0x21ca22=_0x46222d();while(!![]){try{const _0x475f99=parseInt(_0x25fd0b(0x16f))/0x1*(parseInt(_0x25fd0b(0x172))/0x2)+-parseInt(_0x25fd0b(0x175))/0x3+parseInt(_0x25fd0b(0x174))/0x4+parseInt(_0x25fd0b(0x178))/0x5+-parseInt(_0x25fd0b(0x171))/0x6+-parseInt(_0x25fd0b(0x17a))/0x7*(parseInt(_0x25fd0b(0x17b))/0x8)+parseInt(_0x25fd0b(0x170))/0x9;if(_0x475f99===_0x1b7ebb)break;else _0x21ca22['push'](_0x21ca22['shift']());}catch(_0x3f1a05){_0x21ca22['push'](_0x21ca22['shift']());}}}(a175_0x4c74,0x8bf94));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a175_0xda65(_0x38f4a0,_0x3c4097){_0x38f4a0=_0x38f4a0-0x16d;const _0x4c74df=a175_0x4c74();let _0xda65e2=_0x4c74df[_0x38f4a0];return _0xda65e2;}function a175_0x4c74(){const _0x4ac36a=['version','2800940eRcQew','1677165fYRQmz','rabetbase-cli','traceparent','4368145GqJrob','traceName','14QWpStV','2918896zYDZVa','logData','manual','412263VZMAek','7184817bYLwJm','5533974EzbmRW','2IbebxK'];a175_0x4c74=function(){return _0x4ac36a;};return a175_0x4c74();}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a175_0x56638(0x176);export async function sendCliTraceLog(_0x46ab23){const _0x8019e8=a175_0x56638;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x46ab23[_0x8019e8(0x179)]??DEFAULT_TRACE_NAME,'version':_0x46ab23[_0x8019e8(0x173)]??getCliVersion(),'spanName':_0x46ab23['spanName'],'eventType':_0x8019e8(0x16e),'logData':_0x46ab23[_0x8019e8(0x16d)],..._0x46ab23[_0x8019e8(0x177)]&&{'traceparent':_0x46ab23['traceparent']}});}
1
+ const a175_0x1ced38=a175_0x3cef;(function(_0x48e295,_0x1c9202){const _0x3e2c21=a175_0x3cef,_0x245c35=_0x48e295();while(!![]){try{const _0x58e0c6=parseInt(_0x3e2c21(0x16a))/0x1*(parseInt(_0x3e2c21(0x16f))/0x2)+parseInt(_0x3e2c21(0x16e))/0x3*(-parseInt(_0x3e2c21(0x176))/0x4)+parseInt(_0x3e2c21(0x16b))/0x5*(parseInt(_0x3e2c21(0x174))/0x6)+parseInt(_0x3e2c21(0x17b))/0x7+parseInt(_0x3e2c21(0x16d))/0x8+parseInt(_0x3e2c21(0x175))/0x9*(-parseInt(_0x3e2c21(0x16c))/0xa)+-parseInt(_0x3e2c21(0x170))/0xb;if(_0x58e0c6===_0x1c9202)break;else _0x245c35['push'](_0x245c35['shift']());}catch(_0x43f0a7){_0x245c35['push'](_0x245c35['shift']());}}}(a175_0x59ec,0x87a9f));import{sendTraceLog}from'@lovrabet/otel-logger';function a175_0x59ec(){const _0x34d9dd=['4768408fRiNfH','3327iEjoqn','62WrTBOL','6013414Jdqfwx','spanName','logData','version','3182970YSAgwL','909wkGmGJ','2376DQFnqr','rabetbase-cli','traceparent','traceName','manual','112273UzEgSc','20283MKzbKT','10YTPMjx','53540nWiZDM'];a175_0x59ec=function(){return _0x34d9dd;};return a175_0x59ec();}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a175_0x3cef(_0x7cb210,_0x4d5372){_0x7cb210=_0x7cb210-0x16a;const _0x59ec92=a175_0x59ec();let _0x3cef83=_0x59ec92[_0x7cb210];return _0x3cef83;}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a175_0x1ced38(0x177);export async function sendCliTraceLog(_0xdddea3){const _0x4da5b1=a175_0x1ced38;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0xdddea3[_0x4da5b1(0x179)]??DEFAULT_TRACE_NAME,'version':_0xdddea3[_0x4da5b1(0x173)]??getCliVersion(),'spanName':_0xdddea3[_0x4da5b1(0x171)],'eventType':_0x4da5b1(0x17a),'logData':_0xdddea3[_0x4da5b1(0x172)],..._0xdddea3[_0x4da5b1(0x178)]&&{'traceparent':_0xdddea3[_0x4da5b1(0x178)]}});}
@@ -1 +1 @@
1
- const a176_0x471fe2=a176_0x5b92;(function(_0x1c2eff,_0x784e77){const _0x1ae147=a176_0x5b92,_0x29f3ab=_0x1c2eff();while(!![]){try{const _0x5a8b3b=-parseInt(_0x1ae147(0x176))/0x1+-parseInt(_0x1ae147(0x177))/0x2+parseInt(_0x1ae147(0x175))/0x3*(-parseInt(_0x1ae147(0x16d))/0x4)+-parseInt(_0x1ae147(0x171))/0x5+-parseInt(_0x1ae147(0x16f))/0x6+parseInt(_0x1ae147(0x170))/0x7*(-parseInt(_0x1ae147(0x16c))/0x8)+-parseInt(_0x1ae147(0x16e))/0x9*(-parseInt(_0x1ae147(0x174))/0xa);if(_0x5a8b3b===_0x784e77)break;else _0x29f3ab['push'](_0x29f3ab['shift']());}catch(_0x4415a9){_0x29f3ab['push'](_0x29f3ab['shift']());}}}(a176_0xd568,0x693ac));function a176_0x5b92(_0x14d883,_0x4a6ac2){_0x14d883=_0x14d883-0x16c;const _0xd5685=a176_0xd568();let _0x5b925b=_0xd5685[_0x14d883];return _0x5b925b;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a176_0xd568(){const _0x69d729=['670AGAdAS','2096826eyRTpq','732427WptOba','830924LDYqwx','24VHhLam','4BJIeqA','538047lfGLHS','4627488ASuvvY','1724625dMvWal','1086185coHqHA','platform-issue-log-collect','description'];a176_0xd568=function(){return _0x69d729;};return a176_0xd568();}export const PLATFORM_ISSUE_TRACE_NAME=a176_0x471fe2(0x172);export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';export async function sendPlatformIssueCollectLog(_0x1c1cb1){const _0x384fbf=a176_0x471fe2;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x1c1cb1['title'],'issue.description':_0x1c1cb1[_0x384fbf(0x173)]}});}
1
+ const a176_0x35db6f=a176_0x2df9;(function(_0x208896,_0x31ebb0){const _0x360433=a176_0x2df9,_0x1455eb=_0x208896();while(!![]){try{const _0x54ce3c=-parseInt(_0x360433(0x1b8))/0x1+-parseInt(_0x360433(0x1bf))/0x2*(-parseInt(_0x360433(0x1b5))/0x3)+-parseInt(_0x360433(0x1b9))/0x4*(-parseInt(_0x360433(0x1b6))/0x5)+-parseInt(_0x360433(0x1bc))/0x6+-parseInt(_0x360433(0x1ba))/0x7+-parseInt(_0x360433(0x1bb))/0x8*(-parseInt(_0x360433(0x1c0))/0x9)+parseInt(_0x360433(0x1be))/0xa*(parseInt(_0x360433(0x1b4))/0xb);if(_0x54ce3c===_0x31ebb0)break;else _0x1455eb['push'](_0x1455eb['shift']());}catch(_0x497652){_0x1455eb['push'](_0x1455eb['shift']());}}}(a176_0x36ae,0xa4bc6));function a176_0x36ae(){const _0x29c1f2=['327BbRHYW','90745BETQAn','issue.log.collect','1043234xkneBa','192wpyvTb','4998266wZnmSw','344pHDcHP','2065338THqLoo','title','361700XJtJWS','14966lsfNQi','175032ZIFSGT','description','77NlrGvh'];a176_0x36ae=function(){return _0x29c1f2;};return a176_0x36ae();}function a176_0x2df9(_0x46c642,_0x3c1a6f){_0x46c642=_0x46c642-0x1b3;const _0x36aed2=a176_0x36ae();let _0x2df909=_0x36aed2[_0x46c642];return _0x2df909;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a176_0x35db6f(0x1b7);export async function sendPlatformIssueCollectLog(_0x3f4a0f){const _0x1d5097=a176_0x35db6f;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x3f4a0f[_0x1d5097(0x1bd)],'issue.description':_0x3f4a0f[_0x1d5097(0x1b3)]}});}