@lovrabet/rabetbase-cli 2.3.9-beta.2 → 2.3.9-beta.3

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 (258) 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/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.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-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -0
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff.js +1 -1
  88. package/lib/commands/db/index.js +1 -1
  89. package/lib/commands/db/list.js +1 -1
  90. package/lib/commands/db/shared.js +1 -1
  91. package/lib/commands/db/tables.js +1 -1
  92. package/lib/commands/db/test.js +1 -1
  93. package/lib/commands/db/update.js +1 -1
  94. package/lib/commands/doctor.js +1 -1
  95. package/lib/commands/file/index.js +1 -1
  96. package/lib/commands/init/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/logs/index.js +1 -1
  102. package/lib/commands/menu/delete.js +1 -0
  103. package/lib/commands/menu/group-create.js +1 -0
  104. package/lib/commands/menu/group-update.js +1 -0
  105. package/lib/commands/menu/index.js +1 -1
  106. package/lib/commands/menu/list.js +1 -1
  107. package/lib/commands/menu/regroup-start.js +1 -0
  108. package/lib/commands/menu/shared/compare-table.js +1 -1
  109. package/lib/commands/menu/shared/delete-plan.js +1 -0
  110. package/lib/commands/menu/shared/facts.js +1 -0
  111. package/lib/commands/menu/shared/index.js +1 -1
  112. package/lib/commands/menu/shared/inquirer.js +1 -1
  113. package/lib/commands/menu/shared/local-pages.js +1 -1
  114. package/lib/commands/menu/shared/logic.js +1 -1
  115. package/lib/commands/menu/shared/mutations.js +1 -0
  116. package/lib/commands/menu/shared/service.js +1 -1
  117. package/lib/commands/menu/shared/sync-core.js +1 -1
  118. package/lib/commands/menu/shared/update-core.js +1 -1
  119. package/lib/commands/menu/shared/valid-url.js +1 -1
  120. package/lib/commands/menu/sync.js +1 -1
  121. package/lib/commands/menu/update.js +1 -1
  122. package/lib/commands/notification/config-list.js +1 -1
  123. package/lib/commands/notification/index.js +1 -1
  124. package/lib/commands/page/generate-start.js +1 -1
  125. package/lib/commands/page/generate-status.js +1 -1
  126. package/lib/commands/page/index.js +1 -1
  127. package/lib/commands/page/pull.js +1 -1
  128. package/lib/commands/page/push.js +1 -1
  129. package/lib/commands/page/relation-audit.js +1 -1
  130. package/lib/commands/page/shared.js +1 -1
  131. package/lib/commands/page/standard-page-status.js +1 -1
  132. package/lib/commands/page/sync.js +1 -1
  133. package/lib/commands/permit/index.js +1 -1
  134. package/lib/commands/permit/page-get.js +1 -1
  135. package/lib/commands/permit/page-set.js +1 -1
  136. package/lib/commands/permit/role-apis-set.js +1 -1
  137. package/lib/commands/permit/role-menus-set.js +1 -1
  138. package/lib/commands/permit/role-menus.js +1 -1
  139. package/lib/commands/permit/shared.js +1 -1
  140. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  141. package/lib/commands/project/create/format-elapsed.js +1 -1
  142. package/lib/commands/project/create/main.js +1 -1
  143. package/lib/commands/project/create/non-interactive.js +1 -1
  144. package/lib/commands/project/create/project-template-path.js +1 -1
  145. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  146. package/lib/commands/project/create/use-format-code.js +1 -1
  147. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  148. package/lib/commands/project/index.js +1 -1
  149. package/lib/commands/project/init.js +1 -1
  150. package/lib/commands/project/upgrade.js +1 -1
  151. package/lib/commands/registry.js +1 -1
  152. package/lib/commands/role/create.js +1 -1
  153. package/lib/commands/role/delete.js +1 -1
  154. package/lib/commands/role/detail.js +1 -1
  155. package/lib/commands/role/index.js +1 -1
  156. package/lib/commands/role/list.js +1 -1
  157. package/lib/commands/role/shared.js +1 -1
  158. package/lib/commands/role/update.js +1 -1
  159. package/lib/commands/role/user-add.js +1 -1
  160. package/lib/commands/role/user-remove.js +1 -1
  161. package/lib/commands/role/user-resolve.js +1 -1
  162. package/lib/commands/run/index.js +1 -1
  163. package/lib/commands/schema.js +1 -1
  164. package/lib/commands/sql/create.js +1 -1
  165. package/lib/commands/sql/delete.js +1 -1
  166. package/lib/commands/sql/detail.js +1 -1
  167. package/lib/commands/sql/exec.js +1 -1
  168. package/lib/commands/sql/index.js +1 -1
  169. package/lib/commands/sql/list.js +1 -1
  170. package/lib/commands/sql/pull.js +1 -1
  171. package/lib/commands/sql/push.js +1 -1
  172. package/lib/commands/sql/save.js +1 -1
  173. package/lib/commands/sql/shared.js +1 -1
  174. package/lib/commands/sql/status.js +1 -1
  175. package/lib/commands/sql/validate.js +1 -1
  176. package/lib/commands/task/index.js +1 -0
  177. package/lib/commands/task/status.js +1 -0
  178. package/lib/commands/workspace/add.js +1 -1
  179. package/lib/commands/workspace/index.js +1 -1
  180. package/lib/commands/workspace/remove.js +1 -1
  181. package/lib/config/schema.js +1 -1
  182. package/lib/constant/cdn.js +1 -1
  183. package/lib/constant/cli.js +1 -1
  184. package/lib/constant/defaults.js +1 -1
  185. package/lib/constant/domain.js +1 -1
  186. package/lib/constant/env.js +1 -1
  187. package/lib/constant/output.js +1 -1
  188. package/lib/constant/paths.js +1 -1
  189. package/lib/constant/risk.js +1 -1
  190. package/lib/context/app-resolver.js +1 -1
  191. package/lib/context/auth-resolver.js +1 -1
  192. package/lib/context/config-loader.js +1 -1
  193. package/lib/context.js +1 -1
  194. package/lib/core/alias-resolver.js +1 -1
  195. package/lib/core/api-client.js +1 -1
  196. package/lib/core/bff/config.js +1 -1
  197. package/lib/core/bff/file-system.js +1 -1
  198. package/lib/core/bff/hash.js +1 -1
  199. package/lib/core/bff/lock.js +1 -1
  200. package/lib/core/bff/utils.js +1 -1
  201. package/lib/core/db-resolver.js +1 -1
  202. package/lib/core/page/file-system.js +1 -1
  203. package/lib/core/page/hash.js +1 -1
  204. package/lib/core/page/lock.js +1 -1
  205. package/lib/core/sql-index-auditor.js +1 -0
  206. package/lib/core/sql-sync/config.js +1 -1
  207. package/lib/core/sql-sync/file-system.js +1 -1
  208. package/lib/core/sql-sync/hash.js +1 -1
  209. package/lib/core/sql-sync/lock.js +1 -1
  210. package/lib/core/sql-sync/utils.js +1 -1
  211. package/lib/core/sql-validator.js +1 -1
  212. package/lib/errors.js +1 -1
  213. package/lib/framework/build-all-flags.js +1 -1
  214. package/lib/framework/error-output.js +1 -0
  215. package/lib/framework/explicit-yes.js +1 -0
  216. package/lib/framework/flags.js +1 -1
  217. package/lib/framework/help.js +1 -1
  218. package/lib/framework/index.js +1 -1
  219. package/lib/framework/output.js +1 -1
  220. package/lib/framework/response.js +1 -1
  221. package/lib/framework/runner-alias.js +1 -1
  222. package/lib/framework/runner.js +1 -1
  223. package/lib/framework/schema-export.js +1 -1
  224. package/lib/framework/types.js +1 -1
  225. package/lib/generated/build-info.js +1 -1
  226. package/lib/help.js +1 -1
  227. package/lib/skills/main.js +1 -1
  228. package/lib/skills/npx-skills-add.js +1 -1
  229. package/lib/telemetry/cli-command-trace.js +1 -1
  230. package/lib/telemetry/cli-help-trace.js +1 -1
  231. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  232. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  233. package/lib/telemetry/send-cli-trace-log.js +1 -1
  234. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  235. package/lib/utils/ai_config.js +1 -1
  236. package/lib/utils/apply-jq-filter.js +1 -1
  237. package/lib/utils/cdn-config.js +1 -1
  238. package/lib/utils/check-sdk-version.js +1 -1
  239. package/lib/utils/cli-version-check.js +1 -1
  240. package/lib/utils/cli-version-policy.js +1 -1
  241. package/lib/utils/config.js +1 -1
  242. package/lib/utils/copy-directory.js +1 -1
  243. package/lib/utils/entity-with-id.js +1 -1
  244. package/lib/utils/file-utils.js +1 -1
  245. package/lib/utils/guides-cdn.js +1 -1
  246. package/lib/utils/http-client.js +1 -1
  247. package/lib/utils/is-non-interactive.js +1 -1
  248. package/lib/utils/logger.js +1 -1
  249. package/lib/utils/params.js +1 -1
  250. package/lib/utils/platform.js +1 -1
  251. package/lib/utils/rules-cdn.js +1 -1
  252. package/lib/utils/sleep.js +1 -1
  253. package/lib/utils/template-replacer.js +1 -1
  254. package/lib/utils/update-notice.js +1 -1
  255. package/lib/utils/version.js +1 -1
  256. package/lib/utils/with-active-cookie.js +1 -1
  257. package/lib/utils/write-cli-side-channel.js +1 -1
  258. package/package.json +1 -1
@@ -1 +1 @@
1
- const a193_0x4b5ec7=a193_0x721e;(function(_0x3c8036,_0x4596ed){const _0x20b03b=a193_0x721e,_0x449164=_0x3c8036();while(!![]){try{const _0x2bd5ff=-parseInt(_0x20b03b(0x122))/0x1*(parseInt(_0x20b03b(0x125))/0x2)+parseInt(_0x20b03b(0x12d))/0x3*(parseInt(_0x20b03b(0x129))/0x4)+parseInt(_0x20b03b(0x124))/0x5+-parseInt(_0x20b03b(0x123))/0x6*(-parseInt(_0x20b03b(0x128))/0x7)+-parseInt(_0x20b03b(0x126))/0x8*(-parseInt(_0x20b03b(0x12a))/0x9)+-parseInt(_0x20b03b(0x12c))/0xa*(parseInt(_0x20b03b(0x130))/0xb)+-parseInt(_0x20b03b(0x121))/0xc;if(_0x2bd5ff===_0x4596ed)break;else _0x449164['push'](_0x449164['shift']());}catch(_0x34dc45){_0x449164['push'](_0x449164['shift']());}}}(a193_0x413c,0x477d3));import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x5dbba8,_0x4c350b=process[a193_0x4b5ec7(0x127)]()){const _0x268306=a193_0x4b5ec7,_0x3f276d=resolve(_0x4c350b),_0x523fb2=join(_0x3f276d,'.rabetbase','page');return{'projectRoot':_0x3f276d,'pagesBaseDir':_0x523fb2,'appPagesDir':join(_0x523fb2,_0x5dbba8),'lockFilePath':join(_0x3f276d,'.rabetbase',_0x268306(0x12b))};}export function buildPageFileName(_0x30b4b7,_0x1b96ad){const _0x561f0d=a193_0x4b5ec7;return _0x30b4b7+'-'+String(_0x1b96ad)[_0x561f0d(0x12e)]()+_0x561f0d(0x12f);}function a193_0x721e(_0x26f23a,_0x5eb882){_0x26f23a=_0x26f23a-0x121;const _0x413c5c=a193_0x413c();let _0x721eb0=_0x413c5c[_0x26f23a];return _0x721eb0;}function a193_0x413c(){const _0x9c74a3=['4GhqZZS','18pEisnL','page.lock.json','10npRvSA','819429keQzFg','toUpperCase','.json','1360557PiiFwS','7237164LmZUDs','317KKnXjO','2531454iIlGWS','2283890xBJUaY','3334fKHCba','1584848ljzEir','cwd','7DBnGGB'];a193_0x413c=function(){return _0x9c74a3;};return a193_0x413c();}export function resolvePageFilePath(_0x3beca4,_0x2c616e,_0x34101c){return join(_0x3beca4['appPagesDir'],buildPageFileName(_0x2c616e,_0x34101c));}export async function ensureParentDirectory(_0x2b27d9){await mkdir(dirname(_0x2b27d9),{'recursive':!![]});}export async function fileExists(_0x33c297){try{return await access(_0x33c297,constants['F_OK']),!![];}catch{return![];}}
1
+ (function(_0x17b23a,_0x551dd0){const _0x2e4cbb=a203_0x35e6,_0x10b109=_0x17b23a();while(!![]){try{const _0x3a6099=parseInt(_0x2e4cbb(0x18d))/0x1+parseInt(_0x2e4cbb(0x18c))/0x2+-parseInt(_0x2e4cbb(0x189))/0x3*(-parseInt(_0x2e4cbb(0x181))/0x4)+parseInt(_0x2e4cbb(0x180))/0x5+parseInt(_0x2e4cbb(0x18b))/0x6*(-parseInt(_0x2e4cbb(0x188))/0x7)+parseInt(_0x2e4cbb(0x185))/0x8*(parseInt(_0x2e4cbb(0x184))/0x9)+-parseInt(_0x2e4cbb(0x182))/0xa;if(_0x3a6099===_0x551dd0)break;else _0x10b109['push'](_0x10b109['shift']());}catch(_0x28fc4c){_0x10b109['push'](_0x10b109['shift']());}}}(a203_0x1476,0x58369));import{constants}from'node:fs';function a203_0x35e6(_0x4434fe,_0x4d360c){_0x4434fe=_0x4434fe-0x180;const _0x1476a9=a203_0x1476();let _0x35e62c=_0x1476a9[_0x4434fe];return _0x35e62c;}import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x53548b,_0x189141=process['cwd']()){const _0x1e6786=a203_0x35e6,_0x33674e=resolve(_0x189141),_0x192411=join(_0x33674e,'.rabetbase','page');return{'projectRoot':_0x33674e,'pagesBaseDir':_0x192411,'appPagesDir':join(_0x192411,_0x53548b),'lockFilePath':join(_0x33674e,_0x1e6786(0x183),_0x1e6786(0x186))};}export function buildPageFileName(_0x410e59,_0x231b79){const _0x3f90d5=a203_0x35e6;return _0x410e59+'-'+String(_0x231b79)['toUpperCase']()+_0x3f90d5(0x18a);}function a203_0x1476(){const _0xb5d390=['489181ngLjpc','3177940aqqmUA','474184gMrHJY','16384800LtxvPG','.rabetbase','460953fcMRdP','80wUMIXj','page.lock.json','appPagesDir','3474163siPmBs','9cngCnZ','.json','6fpjNPX','1007066VMGKWK'];a203_0x1476=function(){return _0xb5d390;};return a203_0x1476();}export function resolvePageFilePath(_0x1f969a,_0x5c44f7,_0x5e975e){const _0x3ea6cd=a203_0x35e6;return join(_0x1f969a[_0x3ea6cd(0x187)],buildPageFileName(_0x5c44f7,_0x5e975e));}export async function ensureParentDirectory(_0x28c556){await mkdir(dirname(_0x28c556),{'recursive':!![]});}export async function fileExists(_0x9f62f5){try{return await access(_0x9f62f5,constants['F_OK']),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a194_0x4347(_0x459fa0,_0x25665c){_0x459fa0=_0x459fa0-0x194;const _0x55c046=a194_0x55c0();let _0x4347cb=_0x55c046[_0x459fa0];return _0x4347cb;}(function(_0x552e77,_0x5e5fc2){const _0x2ce44d=a194_0x4347,_0x5d11d1=_0x552e77();while(!![]){try{const _0x452862=parseInt(_0x2ce44d(0x198))/0x1+parseInt(_0x2ce44d(0x199))/0x2*(parseInt(_0x2ce44d(0x1a3))/0x3)+-parseInt(_0x2ce44d(0x195))/0x4*(parseInt(_0x2ce44d(0x194))/0x5)+parseInt(_0x2ce44d(0x19d))/0x6*(-parseInt(_0x2ce44d(0x1a0))/0x7)+parseInt(_0x2ce44d(0x197))/0x8+-parseInt(_0x2ce44d(0x19f))/0x9+parseInt(_0x2ce44d(0x1a2))/0xa;if(_0x452862===_0x5e5fc2)break;else _0x5d11d1['push'](_0x5d11d1['shift']());}catch(_0x48c524){_0x5d11d1['push'](_0x5d11d1['shift']());}}}(a194_0x55c0,0xb5018));import a194_0x553ac1 from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x4df58c){const _0x293bb9=a194_0x4347;return JSON[_0x293bb9(0x1a1)](JSON[_0x293bb9(0x196)](_0x4df58c),null,0x2)+'\x0a';}export function computePageContentHash(_0x46d4f5){const _0x3b4aed=a194_0x4347;return a194_0x553ac1[_0x3b4aed(0x19b)](_0x3b4aed(0x19e))['update'](_0x46d4f5)[_0x3b4aed(0x19c)](_0x3b4aed(0x19a));}function a194_0x55c0(){const _0xe0b462=['433736jkKvyO','parse','7692648XkRFwt','867168tEYShC','2lZNOER','hex','createHash','digest','6KXKhrj','md5','9538866lBwsqH','3520734ADZutq','stringify','4202970ACEVqD','3093288jKhJBU','45vXFvCA'];a194_0x55c0=function(){return _0xe0b462;};return a194_0x55c0();}export function computeSerializedSchemaHash(_0x420906){return computePageContentHash(serializePageSchemaForFile(_0x420906));}export async function computePageFileHash(_0x5cdb7d){const _0x3004db=await readFile(_0x5cdb7d,'utf8');return computePageContentHash(_0x3004db);}
1
+ (function(_0x4f06d4,_0x5dade4){const _0x383d3c=a204_0xf2cb,_0x276f95=_0x4f06d4();while(!![]){try{const _0x37c8a8=parseInt(_0x383d3c(0x13f))/0x1+-parseInt(_0x383d3c(0x14c))/0x2*(parseInt(_0x383d3c(0x141))/0x3)+-parseInt(_0x383d3c(0x146))/0x4+parseInt(_0x383d3c(0x14d))/0x5*(-parseInt(_0x383d3c(0x13e))/0x6)+-parseInt(_0x383d3c(0x140))/0x7*(parseInt(_0x383d3c(0x147))/0x8)+parseInt(_0x383d3c(0x149))/0x9*(-parseInt(_0x383d3c(0x148))/0xa)+-parseInt(_0x383d3c(0x14b))/0xb*(-parseInt(_0x383d3c(0x145))/0xc);if(_0x37c8a8===_0x5dade4)break;else _0x276f95['push'](_0x276f95['shift']());}catch(_0x49e131){_0x276f95['push'](_0x276f95['shift']());}}}(a204_0x2bd1,0x64d21));import a204_0x2d9d9e from'node:crypto';import{readFile}from'node:fs/promises';function a204_0x2bd1(){const _0x3aca9c=['createHash','11lOyBrV','1166812bIhWWE','15btQMpF','stringify','101922DzyKbZ','325688tquuXH','2394595QvrEDt','3PRyfyL','update','parse','md5','16304304gJcNZa','296084zoShjE','8pbYDrH','100430zlPbAO','198DyqoaE'];a204_0x2bd1=function(){return _0x3aca9c;};return a204_0x2bd1();}function a204_0xf2cb(_0x573fed,_0xc850c5){_0x573fed=_0x573fed-0x13e;const _0x2bd14f=a204_0x2bd1();let _0xf2cb58=_0x2bd14f[_0x573fed];return _0xf2cb58;}export function serializePageSchemaForFile(_0x5e99dc){const _0x5a5f68=a204_0xf2cb;return JSON[_0x5a5f68(0x14e)](JSON[_0x5a5f68(0x143)](_0x5e99dc),null,0x2)+'\x0a';}export function computePageContentHash(_0x4e27c1){const _0x16d8e1=a204_0xf2cb;return a204_0x2d9d9e[_0x16d8e1(0x14a)](_0x16d8e1(0x144))[_0x16d8e1(0x142)](_0x4e27c1)['digest']('hex');}export function computeSerializedSchemaHash(_0x4cceca){return computePageContentHash(serializePageSchemaForFile(_0x4cceca));}export async function computePageFileHash(_0x24cc0a){const _0x589a4e=await readFile(_0x24cc0a,'utf8');return computePageContentHash(_0x589a4e);}
@@ -1 +1 @@
1
- (function(_0x2daf80,_0x4cdbbf){const _0x21fe9a=a195_0x3aa8,_0x3a2ecb=_0x2daf80();while(!![]){try{const _0x1600b4=parseInt(_0x21fe9a(0xa1))/0x1+-parseInt(_0x21fe9a(0x9d))/0x2*(-parseInt(_0x21fe9a(0x9b))/0x3)+parseInt(_0x21fe9a(0xa7))/0x4*(parseInt(_0x21fe9a(0xaa))/0x5)+-parseInt(_0x21fe9a(0xa9))/0x6*(-parseInt(_0x21fe9a(0xa3))/0x7)+parseInt(_0x21fe9a(0xa8))/0x8*(parseInt(_0x21fe9a(0xaf))/0x9)+parseInt(_0x21fe9a(0xa5))/0xa*(-parseInt(_0x21fe9a(0x9e))/0xb)+-parseInt(_0x21fe9a(0x9a))/0xc*(parseInt(_0x21fe9a(0xa2))/0xd);if(_0x1600b4===_0x4cdbbf)break;else _0x3a2ecb['push'](_0x3a2ecb['shift']());}catch(_0x83190b){_0x3a2ecb['push'](_0x3a2ecb['shift']());}}}(a195_0xc306,0xd253c));function a195_0x3aa8(_0x124b91,_0x201a6e){_0x124b91=_0x124b91-0x9a;const _0xc306d0=a195_0xc306();let _0x3aa83a=_0xc306d0[_0x124b91];return _0x3aa83a;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x1c60d9,_0xb41269){const _0x1def0f=a195_0x3aa8,_0x430655={'apps':_0x1c60d9[_0x1def0f(0xb0)]&&typeof _0x1c60d9['apps']===_0x1def0f(0xa0)?_0x1c60d9[_0x1def0f(0xb0)]:{}};let _0x1cbbc0=_0x430655[_0x1def0f(0xb0)][_0xb41269];if(!_0x1cbbc0)return _0x1cbbc0={'lastSync':'','pages':{}},_0x430655[_0x1def0f(0xb0)][_0xb41269]=_0x1cbbc0,{'lockData':_0x430655,'appLock':_0x1cbbc0};return!_0x1cbbc0[_0x1def0f(0xad)]&&(_0x1cbbc0[_0x1def0f(0xad)]=''),(!_0x1cbbc0['pages']||typeof _0x1cbbc0[_0x1def0f(0xae)]!==_0x1def0f(0xa0))&&(_0x1cbbc0[_0x1def0f(0xae)]={}),{'lockData':_0x430655,'appLock':_0x1cbbc0};}export async function readPageLockFile(_0x3a4dfe){const _0x167d2b=a195_0x3aa8;try{const _0xd8311b=await readFile(_0x3a4dfe,_0x167d2b(0xac)),_0x4441b6=JSON[_0x167d2b(0x9c)](_0xd8311b);return{'apps':_0x4441b6[_0x167d2b(0xb0)]&&typeof _0x4441b6[_0x167d2b(0xb0)]==='object'?_0x4441b6['apps']:{}};}catch(_0x18fde6){if(_0x18fde6[_0x167d2b(0x9f)]===_0x167d2b(0xab))return null;throw new Error(_0x167d2b(0xa6)+String(_0x18fde6));}}export async function writePageLockFile(_0x19b5ab,_0x466a28){const _0x103102=a195_0x3aa8;await mkdir(dirname(_0x19b5ab),{'recursive':!![]}),await writeFile(_0x19b5ab,JSON[_0x103102(0xa4)](_0x466a28,null,0x2),_0x103102(0xac));}function a195_0xc306(){const _0x1e948c=['13381350yITssq','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','5246292XYXwFu','4744vQuCTp','1278tiaYsm','5hhGstk','ENOENT','utf8','lastSync','pages','20421FDJFNO','apps','804bKVqMN','123qPSdlx','parse','54718KsXIeK','11oiHgxL','code','object','254689XiNKtl','573170BTUcdN','36813WihmHS','stringify'];a195_0xc306=function(){return _0x1e948c;};return a195_0xc306();}
1
+ function a205_0x241f(){const _0x283203=['utf8','19242XMGydS','272186oaYXmE','2512FJKHzV','pages','ENOENT','parse','1976613KMVOAP','2230YmgQXH','2615768OZpczW','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','4654485cJrLDX','stringify','object','apps','lastSync','2239802qDpyBF','1995VIkdJK'];a205_0x241f=function(){return _0x283203;};return a205_0x241f();}(function(_0x43e28e,_0x3cbbe9){const _0x4ad711=a205_0x2708,_0x16e02f=_0x43e28e();while(!![]){try{const _0x3b2f0c=parseInt(_0x4ad711(0x155))/0x1+parseInt(_0x4ad711(0x151))/0x2+parseInt(_0x4ad711(0x15a))/0x3+parseInt(_0x4ad711(0x156))/0x4*(parseInt(_0x4ad711(0x15b))/0x5)+-parseInt(_0x4ad711(0x154))/0x6*(parseInt(_0x4ad711(0x152))/0x7)+-parseInt(_0x4ad711(0x15c))/0x8+-parseInt(_0x4ad711(0x14c))/0x9;if(_0x3b2f0c===_0x3cbbe9)break;else _0x16e02f['push'](_0x16e02f['shift']());}catch(_0x593b05){_0x16e02f['push'](_0x16e02f['shift']());}}}(a205_0x241f,0x8bdf3));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x362b20,_0x23512d){const _0x3aedfd=a205_0x2708,_0x1e522e={'apps':_0x362b20[_0x3aedfd(0x14f)]&&typeof _0x362b20['apps']===_0x3aedfd(0x14e)?_0x362b20[_0x3aedfd(0x14f)]:{}};let _0x36b1c2=_0x1e522e[_0x3aedfd(0x14f)][_0x23512d];if(!_0x36b1c2)return _0x36b1c2={'lastSync':'','pages':{}},_0x1e522e['apps'][_0x23512d]=_0x36b1c2,{'lockData':_0x1e522e,'appLock':_0x36b1c2};return!_0x36b1c2[_0x3aedfd(0x150)]&&(_0x36b1c2[_0x3aedfd(0x150)]=''),(!_0x36b1c2['pages']||typeof _0x36b1c2[_0x3aedfd(0x157)]!=='object')&&(_0x36b1c2[_0x3aedfd(0x157)]={}),{'lockData':_0x1e522e,'appLock':_0x36b1c2};}export async function readPageLockFile(_0x50b2ca){const _0x1c8d2a=a205_0x2708;try{const _0x4c7580=await readFile(_0x50b2ca,'utf8'),_0x42d2b5=JSON[_0x1c8d2a(0x159)](_0x4c7580);return{'apps':_0x42d2b5[_0x1c8d2a(0x14f)]&&typeof _0x42d2b5[_0x1c8d2a(0x14f)]==='object'?_0x42d2b5[_0x1c8d2a(0x14f)]:{}};}catch(_0x2539df){if(_0x2539df['code']===_0x1c8d2a(0x158))return null;throw new Error(_0x1c8d2a(0x14b)+String(_0x2539df));}}function a205_0x2708(_0x358aee,_0x5b6c16){_0x358aee=_0x358aee-0x14b;const _0x241fd5=a205_0x241f();let _0x27086e=_0x241fd5[_0x358aee];return _0x27086e;}export async function writePageLockFile(_0x188f0e,_0x3bdc62){const _0x477256=a205_0x2708;await mkdir(dirname(_0x188f0e),{'recursive':!![]}),await writeFile(_0x188f0e,JSON[_0x477256(0x14d)](_0x3bdc62,null,0x2),_0x477256(0x153));}
@@ -0,0 +1 @@
1
+ (function(_0x36609c,_0x22795f){const _0x59b861=a207_0x5760,_0x440617=_0x36609c();while(!![]){try{const _0x175b68=-parseInt(_0x59b861(0x170))/0x1*(-parseInt(_0x59b861(0x179))/0x2)+parseInt(_0x59b861(0x169))/0x3+-parseInt(_0x59b861(0x192))/0x4*(-parseInt(_0x59b861(0x168))/0x5)+-parseInt(_0x59b861(0x196))/0x6+-parseInt(_0x59b861(0x19e))/0x7*(parseInt(_0x59b861(0x181))/0x8)+-parseInt(_0x59b861(0x18a))/0x9+parseInt(_0x59b861(0x171))/0xa*(parseInt(_0x59b861(0x194))/0xb);if(_0x175b68===_0x22795f)break;else _0x440617['push'](_0x440617['shift']());}catch(_0xe5345f){_0x440617['push'](_0x440617['shift']());}}}(a207_0x1940,0x2b061));export function auditSqlJoinIndexes(_0x5f305f,_0x53a160){const _0x3ec05c=a207_0x5760,_0x4e6160=[],_0x298c94=extractJoinFacts(_0x5f305f)['map'](_0x3aa9aa=>{const _0x40c341=a207_0x5760;if(_0x3aa9aa[_0x40c341(0x167)]||_0x3aa9aa[_0x40c341(0x175)]['length']===0x0)return _0x4e6160[_0x40c341(0x18e)]({'code':_0x40c341(0x18d),'table':_0x3aa9aa[_0x40c341(0x19d)],'alias':_0x3aa9aa[_0x40c341(0x177)],'columns':_0x3aa9aa['columns'],'reason':_0x3aa9aa['unsupportedReason']??_0x40c341(0x18f)}),{'table':_0x3aa9aa[_0x40c341(0x19d)],'alias':_0x3aa9aa[_0x40c341(0x177)],'columns':_0x3aa9aa[_0x40c341(0x175)],'status':'unavailable'};const _0x4646de=resolveTableMetadata(_0x53a160,_0x3aa9aa[_0x40c341(0x19d)]),_0x2e4a9b=(_0x4646de?.[_0x40c341(0x16d)]??[])[_0x40c341(0x17b)](_0x177f3b=>({'index':_0x177f3b,'matchedPrefix':findEqualityPrefix(_0x177f3b[_0x40c341(0x175)],_0x3aa9aa[_0x40c341(0x175)])}))[_0x40c341(0x17e)](_0x2d99e1=>_0x2d99e1[_0x40c341(0x16b)][_0x40c341(0x191)]>0x0),_0x5ada15=_0x2e4a9b[_0x40c341(0x190)]((_0xd264f7,_0x504b81)=>!_0xd264f7||_0x504b81[_0x40c341(0x16b)][_0x40c341(0x191)]>_0xd264f7['matchedPrefix'][_0x40c341(0x191)]?_0x504b81:_0xd264f7,_0x2e4a9b[0x0]);if(_0x5ada15)return{'table':_0x3aa9aa[_0x40c341(0x19d)],'alias':_0x3aa9aa['alias'],'columns':_0x3aa9aa[_0x40c341(0x175)],'status':_0x40c341(0x19b),'matchedIndex':{..._0x5ada15['index'],'matchedPrefix':_0x5ada15[_0x40c341(0x16b)]}};const _0x4294c0=_0x4646de?.['indexes'][_0x40c341(0x17e)](_0x25688d=>_0x25688d[_0x40c341(0x175)][_0x40c341(0x16e)](_0x504e32=>_0x3aa9aa[_0x40c341(0x175)][_0x40c341(0x16e)](_0x275ed8=>columnNamesMatch(_0x504e32,_0x275ed8))))??[];if(_0x4294c0[_0x40c341(0x191)]>0x0)return _0x4e6160[_0x40c341(0x18e)]({'code':_0x40c341(0x166),'table':_0x3aa9aa[_0x40c341(0x19d)],'alias':_0x3aa9aa['alias'],'columns':_0x3aa9aa['columns'],'reason':_0x40c341(0x18b)}),{'table':_0x3aa9aa[_0x40c341(0x19d)],'alias':_0x3aa9aa[_0x40c341(0x177)],'columns':_0x3aa9aa[_0x40c341(0x175)],'status':'warning','candidateIndexes':_0x4294c0};if(_0x4646de&&_0x4646de['metadataAvailable']!==![]&&_0x4646de[_0x40c341(0x16d)][_0x40c341(0x191)]>0x0&&_0x3aa9aa[_0x40c341(0x175)][_0x40c341(0x191)]>0x0)return _0x4e6160[_0x40c341(0x18e)]({'code':_0x40c341(0x172),'table':_0x3aa9aa[_0x40c341(0x19d)],'alias':_0x3aa9aa[_0x40c341(0x177)],'columns':_0x3aa9aa[_0x40c341(0x175)],'reason':_0x40c341(0x178)}),{'table':_0x3aa9aa[_0x40c341(0x19d)],'alias':_0x3aa9aa[_0x40c341(0x177)],'columns':_0x3aa9aa[_0x40c341(0x175)],'status':'warning'};return _0x4e6160[_0x40c341(0x18e)]({'code':_0x40c341(0x16c),'table':_0x3aa9aa[_0x40c341(0x19d)],'alias':_0x3aa9aa[_0x40c341(0x177)],'columns':_0x3aa9aa[_0x40c341(0x175)],'reason':_0x4646de?_0x40c341(0x187):_0x40c341(0x180)}),{'table':_0x3aa9aa[_0x40c341(0x19d)],'alias':_0x3aa9aa[_0x40c341(0x177)],'columns':_0x3aa9aa['columns'],'status':'unavailable'};});return{'checked':_0x298c94[_0x3ec05c(0x191)]>0x0,'joins':_0x298c94,'warnings':_0x4e6160};}function extractJoinFacts(_0x105c69){const _0x19c631=a207_0x5760,_0x9a28b4=maskNestedQueries(stripSqlNoise(_0x105c69)),_0x564028=maskQuotedIdentifiers(_0x9a28b4),_0x2c5a4f=[],_0x12bec2=new Set(),_0x5bd278=/\b(?:(INNER|LEFT|RIGHT|FULL)(?:\s+OUTER)?\s+)?JOIN\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?\s+ON\s+([\s\S]*?)(?=\s+(?:(?:(?:INNER|LEFT|RIGHT|FULL)(?:\s+OUTER)?\s+)?JOIN\b|(?:WHERE|GROUP\s+BY|ORDER\s+BY|HAVING|LIMIT|UNION)\b)|;|$)/gi;for(const _0x165b2e of _0x9a28b4['matchAll'](_0x5bd278)){const _0x461e44=_0x165b2e[_0x19c631(0x1a2)]??0x0,_0x257295=_0x165b2e[0x0]['search'](/\bJOIN\b/i),_0x336e68=_0x461e44+Math[_0x19c631(0x19f)](0x0,_0x257295);if(!/^JOIN\b/i[_0x19c631(0x195)](_0x564028[_0x19c631(0x1a1)](_0x336e68)))continue;_0x12bec2[_0x19c631(0x185)](_0x336e68);const _0x58a01f=normalizeIdentifier(_0x165b2e[0x1]||_0x19c631(0x193)),_0xb3516b=normalizeIdentifier(_0x165b2e[0x2]??''),_0x47b284=normalizeIdentifier(_0x165b2e[0x3]||_0xb3516b[_0x19c631(0x186)]('.')['at'](-0x1)||_0xb3516b),_0x39c6c7=[],_0x38610e=_0xb3516b===_0x19c631(0x16a);let _0x3e0fe1=_0x58a01f===_0x19c631(0x16f)||_0x58a01f===_0x19c631(0x176)||_0x38610e,_0x4261f9=_0x3e0fe1?_0x38610e?_0x19c631(0x188):_0x58a01f[_0x19c631(0x184)]()+_0x19c631(0x174):undefined;const _0x5bffb2=stripOuterParentheses(_0x165b2e[0x4]??'');hasTopLevelKeyword(_0x5bffb2,'OR')&&(_0x3e0fe1=!![],_0x4261f9??=_0x19c631(0x18c));for(const _0x5c6c7b of splitTopLevelAnd(_0x5bffb2)){const _0xca6f31=stripOuterParentheses(_0x5c6c7b);if(hasTopLevelKeyword(_0xca6f31,'OR')){_0x3e0fe1=!![],_0x4261f9??=_0x19c631(0x18c);continue;}const _0x395fef=splitEquality(_0xca6f31);if(!_0x395fef){containsColumnReference(_0x5c6c7b,_0x47b284)&&(_0x3e0fe1=!![]);continue;}const _0x5b0af0=parseDirectColumnReference(_0x395fef[0x0],_0x47b284),_0x840416=parseDirectColumnReference(_0x395fef[0x1],_0x47b284),_0x44cbc6=containsColumnReference(_0x395fef[0x0],_0x47b284),_0x330910=containsColumnReference(_0x395fef[0x1],_0x47b284),_0x535018=_0x5b0af0&&!_0x330910?_0x5b0af0:_0x840416&&!_0x44cbc6?_0x840416:null;if(_0x535018&&!_0x39c6c7[_0x19c631(0x19c)](_0x535018))_0x39c6c7[_0x19c631(0x18e)](_0x535018);else!_0x535018&&containsColumnReference(_0x5c6c7b,_0x47b284)&&(_0x3e0fe1=!![]);}_0x2c5a4f[_0x19c631(0x18e)]({'table':_0xb3516b,'alias':_0x47b284,'columns':_0x39c6c7,'unsupportedPredicate':_0x3e0fe1,'unsupportedReason':_0x4261f9,'position':_0x336e68});}for(const _0x5ee2c3 of _0x564028[_0x19c631(0x17f)](/\bJOIN\b/gi)){const _0x562f38=_0x5ee2c3[_0x19c631(0x1a2)]??0x0;if(_0x12bec2[_0x19c631(0x182)](_0x562f38))continue;const _0x97978b=/^\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?/['exec'](_0x9a28b4[_0x19c631(0x1a1)](_0x562f38+_0x5ee2c3[0x0]['length'])),_0x5c618e=normalizeIdentifier(_0x97978b?.[0x1]||_0x19c631(0x17d)),_0x1b9ebd=normalizeIdentifier(_0x97978b?.[0x2]||''),_0x32c35f=isSqlClauseKeyword(_0x1b9ebd)?_0x5c618e['split']('.')['at'](-0x1)||_0x5c618e:_0x1b9ebd||_0x5c618e[_0x19c631(0x186)]('.')['at'](-0x1)||_0x5c618e;_0x2c5a4f[_0x19c631(0x18e)]({'table':_0x5c618e,'alias':_0x32c35f,'columns':[],'unsupportedPredicate':!![],'unsupportedReason':'Only\x20explicit\x20table\x20JOIN\x20clauses\x20with\x20an\x20ON\x20predicate\x20are\x20supported.','position':_0x562f38});}return _0x2c5a4f['sort']((_0x1417cd,_0x507ca2)=>_0x1417cd[_0x19c631(0x1a5)]-_0x507ca2['position']);}function stripSqlNoise(_0x168d5b){const _0x33e783=a207_0x5760,_0x735940=Array['from'](_0x168d5b),_0xaf2d64=(_0x1eb731,_0x3582a8)=>{for(let _0x4516db=_0x1eb731;_0x4516db<_0x3582a8;_0x4516db+=0x1){_0x735940[_0x4516db]!=='\x0a'&&_0x735940[_0x4516db]!=='\x0d'&&(_0x735940[_0x4516db]='\x20');}};for(let _0x3ba2b5=0x0;_0x3ba2b5<_0x735940['length'];_0x3ba2b5+=0x1){const _0xdd46aa=_0x735940[_0x3ba2b5],_0x161ddf=_0x735940[_0x3ba2b5+0x1];if(_0xdd46aa==='\x27'||_0xdd46aa==='\x22'||_0xdd46aa==='`'){const _0x1b68c2=_0xdd46aa,_0x45f918=_0x3ba2b5;_0x3ba2b5+=0x1;while(_0x3ba2b5<_0x735940[_0x33e783(0x191)]){if(_0x735940[_0x3ba2b5]==='\x5c'&&_0x3ba2b5+0x1<_0x735940[_0x33e783(0x191)]){_0x3ba2b5+=0x2;continue;}if(_0x735940[_0x3ba2b5]!==_0x1b68c2){_0x3ba2b5+=0x1;continue;}if(_0x735940[_0x3ba2b5+0x1]===_0x1b68c2){_0x3ba2b5+=0x2;continue;}break;}if(_0x1b68c2==='\x27')_0xaf2d64(_0x45f918,Math['min'](_0x3ba2b5+0x1,_0x735940['length']));continue;}if(_0xdd46aa==='-'&&_0x161ddf==='-'){const _0x1b770f=_0x3ba2b5;while(_0x3ba2b5<_0x735940[_0x33e783(0x191)]&&_0x735940[_0x3ba2b5]!=='\x0a')_0x3ba2b5+=0x1;_0xaf2d64(_0x1b770f,_0x3ba2b5);continue;}if(_0xdd46aa==='/'&&_0x161ddf==='*'){const _0x5380d1=_0x3ba2b5;_0x3ba2b5+=0x2;while(_0x3ba2b5<_0x735940['length']&&!(_0x735940[_0x3ba2b5]==='*'&&_0x735940[_0x3ba2b5+0x1]==='/')){_0x3ba2b5+=0x1;}_0x3ba2b5=Math[_0x33e783(0x1a4)](_0x3ba2b5+0x1,_0x735940['length']-0x1),_0xaf2d64(_0x5380d1,_0x3ba2b5+0x1);continue;}if(_0xdd46aa==='#'&&_0x161ddf!=='{'){const _0x16d9c3=_0x3ba2b5;while(_0x3ba2b5<_0x735940[_0x33e783(0x191)]&&_0x735940[_0x3ba2b5]!=='\x0a')_0x3ba2b5+=0x1;_0xaf2d64(_0x16d9c3,_0x3ba2b5);continue;}if((_0xdd46aa==='#'||_0xdd46aa==='$')&&_0x161ddf==='{'){const _0x287577=_0x3ba2b5;_0x3ba2b5+=0x2;while(_0x3ba2b5<_0x735940[_0x33e783(0x191)]&&_0x735940[_0x3ba2b5]!=='}')_0x3ba2b5+=0x1;_0xaf2d64(_0x287577,Math[_0x33e783(0x1a4)](_0x3ba2b5+0x1,_0x735940[_0x33e783(0x191)]));}}return _0x735940['join']('');}function a207_0x5760(_0x577016,_0x52591e){_0x577016=_0x577016-0x166;const _0x194061=a207_0x1940();let _0x57609f=_0x194061[_0x577016];return _0x57609f;}function maskQuotedIdentifiers(_0x3811c0){const _0x4d251b=a207_0x5760,_0x2fbcda=Array['from'](_0x3811c0);for(let _0x9649cc=0x0;_0x9649cc<_0x2fbcda['length'];_0x9649cc+=0x1){const _0x5d4ae3=_0x2fbcda[_0x9649cc];if(_0x5d4ae3!=='\x22'&&_0x5d4ae3!=='`')continue;_0x9649cc+=0x1;while(_0x9649cc<_0x2fbcda['length']){if(_0x2fbcda[_0x9649cc]===_0x5d4ae3){if(_0x2fbcda[_0x9649cc+0x1]===_0x5d4ae3){_0x2fbcda[_0x9649cc]='\x20',_0x2fbcda[_0x9649cc+0x1]='\x20',_0x9649cc+=0x2;continue;}break;}_0x2fbcda[_0x9649cc]='\x20',_0x9649cc+=0x1;}}return _0x2fbcda[_0x4d251b(0x197)]('');}function maskNestedQueries(_0x48a425){const _0x6b0400=a207_0x5760,_0x291e2b=Array['from'](_0x48a425);for(let _0x139f83=0x0;_0x139f83<_0x291e2b[_0x6b0400(0x191)];_0x139f83+=0x1){if(_0x291e2b[_0x139f83]!=='(')continue;const _0x274d20=_0x48a425[_0x6b0400(0x1a1)](_0x139f83+0x1);if(!/^\s*(?:SELECT|WITH)\b/i['test'](_0x274d20))continue;let _0x51e739=0x1,_0x3bed7b=_0x139f83+0x1;for(;_0x3bed7b<_0x291e2b[_0x6b0400(0x191)]&&_0x51e739>0x0;_0x3bed7b+=0x1){if(_0x291e2b[_0x3bed7b]==='(')_0x51e739+=0x1;if(_0x291e2b[_0x3bed7b]===')')_0x51e739-=0x1;}if(_0x51e739!==0x0)continue;for(let _0x4870d5=_0x139f83;_0x4870d5<_0x3bed7b;_0x4870d5+=0x1){_0x291e2b[_0x4870d5]='\x20';}const _0x445fc1=_0x6b0400(0x16a);for(let _0x154125=0x0;_0x154125<_0x445fc1[_0x6b0400(0x191)]&&_0x139f83+_0x154125<_0x3bed7b;_0x154125+=0x1){_0x291e2b[_0x139f83+_0x154125]=_0x445fc1[_0x154125];}_0x139f83=_0x3bed7b-0x1;}return _0x291e2b[_0x6b0400(0x197)]('');}function splitTopLevelAnd(_0x608899){const _0x111fc0=a207_0x5760,_0x32e923=[];let _0x4ed4be=0x0,_0x508337=0x0;for(let _0x588f37=0x0;_0x588f37<_0x608899['length'];_0x588f37+=0x1){const _0x5d6f55=_0x608899[_0x588f37];if(_0x5d6f55==='(')_0x4ed4be+=0x1;if(_0x5d6f55===')')_0x4ed4be=Math[_0x111fc0(0x19f)](0x0,_0x4ed4be-0x1);_0x4ed4be===0x0&&_0x608899[_0x111fc0(0x1a1)](_0x588f37)[_0x111fc0(0x17a)](/^AND\b/i)&&(_0x588f37===0x0||/\s/[_0x111fc0(0x195)](_0x608899[_0x588f37-0x1]??''))&&(_0x32e923['push'](_0x608899[_0x111fc0(0x1a1)](_0x508337,_0x588f37)[_0x111fc0(0x19a)]()),_0x588f37+=0x2,_0x508337=_0x588f37+0x1);}const _0x1b4cbd=_0x608899[_0x111fc0(0x1a1)](_0x508337)[_0x111fc0(0x19a)]();if(_0x1b4cbd)_0x32e923[_0x111fc0(0x18e)](_0x1b4cbd);return _0x32e923;}function a207_0x1940(){const _0x4bf5c1=['JOIN_INDEX_NOT_USABLE','unsupportedPredicate','2610iDEzZy','551565TmJuvA','__sq__','matchedPrefix','INDEX_METADATA_UNAVAILABLE','indexes','some','right','36081dzJiRT','2816060KopIDr','JOIN_INDEX_MISSING','startsWith','\x20JOIN\x20direction\x20is\x20not\x20supported\x20by\x20static\x20index\x20auditing.','columns','full','alias','No\x20reported\x20index\x20contains\x20the\x20JOIN\x20access\x20columns.','2DZNMkN','match','map','tableName','unknown','filter','matchAll','No\x20dataset\x20metadata\x20matched\x20the\x20JOIN\x20table.','1061488lYgHvP','has','(?:^|[^\x5cw$])','toUpperCase','add','split','The\x20dataset\x20returned\x20no\x20distinguishable\x20index\x20metadata.','Derived-table\x20JOIN\x20targets\x20are\x20not\x20supported.','toLowerCase','773568baqxOq','Relevant\x20columns\x20do\x20not\x20form\x20a\x20complete\x20leftmost\x20index\x20prefix.','OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.','JOIN_PREDICATE_UNSUPPORTED','push','Not\x20every\x20JOIN\x20target\x20predicate\x20could\x20be\x20audited\x20safely.','reduce','length','1544rrqQud','INNER','11AOUFVt','test','1052910flBrqM','join','inner','cross','trim','covered','includes','table','14MmCJeu','max','natural','slice','index','\x5cs*\x5c.\x5cs*[\x5cw$]+','min','position','replace'];a207_0x1940=function(){return _0x4bf5c1;};return a207_0x1940();}function hasTopLevelKeyword(_0x4ab839,_0x29ec02){const _0x12916a=a207_0x5760;let _0xef7caa=0x0;for(let _0x1362b3=0x0;_0x1362b3<_0x4ab839[_0x12916a(0x191)];_0x1362b3+=0x1){const _0x11ccde=_0x4ab839[_0x1362b3];if(_0x11ccde==='(')_0xef7caa+=0x1;if(_0x11ccde===')')_0xef7caa=Math['max'](0x0,_0xef7caa-0x1);if(_0xef7caa!==0x0)continue;const _0x2199ab=_0x4ab839[_0x12916a(0x1a1)](_0x1362b3,_0x1362b3+_0x29ec02['length']),_0x10f766=_0x4ab839[_0x1362b3-0x1]??'\x20',_0x5dd332=_0x4ab839[_0x1362b3+_0x29ec02[_0x12916a(0x191)]]??'\x20';if(_0x2199ab[_0x12916a(0x184)]()===_0x29ec02[_0x12916a(0x184)]()&&!/[\w$]/[_0x12916a(0x195)](_0x10f766)&&!/[\w$]/[_0x12916a(0x195)](_0x5dd332))return!![];}return![];}function splitEquality(_0x514eea){const _0x16e5ba=a207_0x5760,_0x214e83=stripOuterParentheses(_0x514eea);let _0x3fed52=0x0,_0x1ff967;for(let _0x5f359f=0x0;_0x5f359f<_0x214e83['length'];_0x5f359f+=0x1){const _0x121e9e=_0x214e83[_0x5f359f];if(_0x121e9e==='(')_0x3fed52+=0x1;if(_0x121e9e===')')_0x3fed52=Math['max'](0x0,_0x3fed52-0x1);const _0x2ba8e9=_0x214e83[_0x5f359f-0x1]??'',_0x27b845=_0x214e83[_0x5f359f+0x1]??'';if(_0x121e9e==='='&&_0x3fed52===0x0&&!/[!<>=:]/[_0x16e5ba(0x195)](_0x2ba8e9)&&_0x27b845!=='='){if(_0x1ff967!==undefined)return null;_0x1ff967=_0x5f359f;}}return _0x1ff967===undefined?null:[_0x214e83[_0x16e5ba(0x1a1)](0x0,_0x1ff967)[_0x16e5ba(0x19a)](),_0x214e83[_0x16e5ba(0x1a1)](_0x1ff967+0x1)['trim']()];}function parseDirectColumnReference(_0x5753a4,_0x469f44){const _0xf7a7b7=/^([`"]?[\w$]+[`"]?)\s*\.\s*([`"]?[\w$]+[`"]?)$/['exec'](stripOuterParentheses(_0x5753a4));if(!_0xf7a7b7)return null;if(normalizeIdentifier(_0xf7a7b7[0x1]??'')!==normalizeIdentifier(_0x469f44))return null;return normalizeIdentifier(_0xf7a7b7[0x2]??'');}function containsColumnReference(_0x50d4e7,_0xefb7ad){const _0xc0fd22=a207_0x5760,_0x2a4db5=_0x50d4e7[_0xc0fd22(0x1a6)](/[`"]/g,''),_0x50110f=_0xefb7ad[_0xc0fd22(0x1a6)](/[.*+?^${}()|[\]\\]/g,'\x5c$&');return new RegExp(_0xc0fd22(0x183)+_0x50110f+_0xc0fd22(0x1a3),'i')[_0xc0fd22(0x195)](_0x2a4db5);}function findEqualityPrefix(_0x2473af,_0x65798d){const _0x4f81f8=a207_0x5760,_0x47a73b=new Set(_0x65798d[_0x4f81f8(0x17b)](normalizeIdentifier)),_0x1a8d22=[];for(const _0x1e6be9 of _0x2473af){if(!_0x47a73b['has'](normalizeIdentifier(_0x1e6be9)))break;_0x1a8d22[_0x4f81f8(0x18e)](_0x1e6be9);}return _0x1a8d22;}function resolveTableMetadata(_0xfd4894,_0xfa49d){const _0x3140b8=a207_0x5760,_0x122487=normalizeIdentifier(_0xfa49d),_0x2c6d10=_0xfd4894[_0x3140b8(0x17e)](_0x3d3214=>normalizeIdentifier(_0x3d3214[_0x3140b8(0x17c)])===_0x122487);if(_0x2c6d10[_0x3140b8(0x191)]===0x1)return _0x2c6d10[0x0];const _0x83b0f4=_0x122487[_0x3140b8(0x19c)]('.'),_0x2ec545=_0x122487[_0x3140b8(0x186)]('.')['at'](-0x1),_0x3daa34=_0xfd4894[_0x3140b8(0x17e)](_0x4a6206=>{const _0x36d144=_0x3140b8,_0x5aebfd=normalizeIdentifier(_0x4a6206['tableName']);if(_0x83b0f4&&_0x5aebfd[_0x36d144(0x19c)]('.'))return![];return _0x5aebfd[_0x36d144(0x186)]('.')['at'](-0x1)===_0x2ec545;});return _0x3daa34['length']===0x1?_0x3daa34[0x0]:undefined;}function columnNamesMatch(_0x21b553,_0x502fa5){return normalizeIdentifier(_0x21b553)===normalizeIdentifier(_0x502fa5);}function normalizeIdentifier(_0x12f7bc){const _0x443bc0=a207_0x5760;return _0x12f7bc[_0x443bc0(0x1a6)](/[`"]/g,'')[_0x443bc0(0x19a)]()[_0x443bc0(0x189)]();}function isSqlClauseKeyword(_0x20b975){const _0x146c55=a207_0x5760;return new Set(['on','using','where',_0x146c55(0x197),_0x146c55(0x198),'left','right','full',_0x146c55(0x199),_0x146c55(0x1a0)])['has'](_0x20b975);}function stripOuterParentheses(_0x1430c6){const _0x29d38d=a207_0x5760;let _0x5c3a63=_0x1430c6[_0x29d38d(0x19a)]();while(_0x5c3a63[_0x29d38d(0x173)]('(')&&_0x5c3a63['endsWith'](')')){let _0xff669a=0x0,_0x5d4b4f=!![];for(let _0x59a0f4=0x0;_0x59a0f4<_0x5c3a63[_0x29d38d(0x191)];_0x59a0f4+=0x1){if(_0x5c3a63[_0x59a0f4]==='(')_0xff669a+=0x1;if(_0x5c3a63[_0x59a0f4]===')')_0xff669a-=0x1;if(_0xff669a===0x0&&_0x59a0f4<_0x5c3a63['length']-0x1){_0x5d4b4f=![];break;}}if(!_0x5d4b4f||_0xff669a!==0x0)break;_0x5c3a63=_0x5c3a63[_0x29d38d(0x1a1)](0x1,-0x1)[_0x29d38d(0x19a)]();}return _0x5c3a63;}
@@ -1 +1 @@
1
- const a197_0x4a077b=a197_0x2862;(function(_0x3dbb88,_0x4ff869){const _0x4e995f=a197_0x2862,_0x4923bb=_0x3dbb88();while(!![]){try{const _0x54422d=-parseInt(_0x4e995f(0x1bb))/0x1+-parseInt(_0x4e995f(0x1b1))/0x2+parseInt(_0x4e995f(0x1b5))/0x3*(parseInt(_0x4e995f(0x1b8))/0x4)+-parseInt(_0x4e995f(0x1b2))/0x5+parseInt(_0x4e995f(0x1bd))/0x6+-parseInt(_0x4e995f(0x1b6))/0x7+parseInt(_0x4e995f(0x1b4))/0x8;if(_0x54422d===_0x4ff869)break;else _0x4923bb['push'](_0x4923bb['shift']());}catch(_0x2fbb54){_0x4923bb['push'](_0x4923bb['shift']());}}}(a197_0x2914,0x896c0));function a197_0x2914(){const _0x391c4f=['sql','19727296iCcIwE','35502NLxRjp','4151266KcxOiU','.rabetbase','44DZPAnM','/sql','sql.lock.json','128082CKfvqQ','sql-trash','1262010aVxQvY','1266468dgHnWF','4445935cHFEPj'];a197_0x2914=function(){return _0x391c4f;};return a197_0x2914();}import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a197_0x4a077b(0x1b7),LOCK_FILE_NAME=a197_0x4a077b(0x1ba),TRASH_DIR_NAME=a197_0x4a077b(0x1bc);function a197_0x2862(_0x57737f,_0x255d14){_0x57737f=_0x57737f-0x1b1;const _0x291424=a197_0x2914();let _0x286244=_0x291424[_0x57737f];return _0x286244;}export function loadSqlProjectConfig(_0x473275,_0xeed624){const _0x267299=a197_0x4a077b,_0x255950=resolve(_0xeed624??findProjectRootDirectory()),_0x59e802=DOT_DIR+_0x267299(0x1b9),_0x59e286=_0x59e802+'/'+_0x473275;return{'projectRoot':_0x255950,'appCode':_0x473275,'sqlWorkspaceRoot':_0x59e802,'sqlRoot':_0x59e286,'sqlRootDir':resolve(_0x255950,DOT_DIR,_0x267299(0x1b3),_0x473275),'lockFilePath':resolve(_0x255950,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x255950,DOT_DIR,TRASH_DIR_NAME)};}
1
+ const a208_0x4301dd=a208_0x4352;function a208_0x5144(){const _0x10e8da=['5892754swEfnH','795184AqHzgU','151266xVrFRX','.rabetbase','sql','1719496FMbYVd','sql.lock.json','9743830dlJWWX','6SXpNek','165vHbpiM','3258afcDoE','12944eBIrrq','452826GfzosT'];a208_0x5144=function(){return _0x10e8da;};return a208_0x5144();}function a208_0x4352(_0x487aaf,_0x14ae12){_0x487aaf=_0x487aaf-0x12e;const _0x514412=a208_0x5144();let _0x43521f=_0x514412[_0x487aaf];return _0x43521f;}(function(_0x1827af,_0x47bc2c){const _0x556143=a208_0x4352,_0x2e5a35=_0x1827af();while(!![]){try{const _0x53d8aa=parseInt(_0x556143(0x133))/0x1+parseInt(_0x556143(0x131))/0x2+parseInt(_0x556143(0x13a))/0x3*(parseInt(_0x556143(0x137))/0x4)+-parseInt(_0x556143(0x12e))/0x5*(parseInt(_0x556143(0x134))/0x6)+-parseInt(_0x556143(0x132))/0x7+parseInt(_0x556143(0x130))/0x8*(-parseInt(_0x556143(0x12f))/0x9)+parseInt(_0x556143(0x139))/0xa;if(_0x53d8aa===_0x47bc2c)break;else _0x2e5a35['push'](_0x2e5a35['shift']());}catch(_0x147da6){_0x2e5a35['push'](_0x2e5a35['shift']());}}}(a208_0x5144,0x91903));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a208_0x4301dd(0x135),LOCK_FILE_NAME=a208_0x4301dd(0x138),TRASH_DIR_NAME='sql-trash';export function loadSqlProjectConfig(_0x43bb4f,_0xc75412){const _0x27f4cf=a208_0x4301dd,_0x5351dd=resolve(_0xc75412??findProjectRootDirectory()),_0x441e41=DOT_DIR+'/sql',_0x506484=_0x441e41+'/'+_0x43bb4f;return{'projectRoot':_0x5351dd,'appCode':_0x43bb4f,'sqlWorkspaceRoot':_0x441e41,'sqlRoot':_0x506484,'sqlRootDir':resolve(_0x5351dd,DOT_DIR,_0x27f4cf(0x136),_0x43bb4f),'lockFilePath':resolve(_0x5351dd,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x5351dd,DOT_DIR,TRASH_DIR_NAME)};}
@@ -1 +1 @@
1
- (function(_0x4bd3c2,_0xf7b101){const _0x1c7ae1=a198_0x3745,_0x2460c=_0x4bd3c2();while(!![]){try{const _0x32244a=-parseInt(_0x1c7ae1(0x18c))/0x1+-parseInt(_0x1c7ae1(0x182))/0x2+parseInt(_0x1c7ae1(0x190))/0x3+-parseInt(_0x1c7ae1(0x188))/0x4*(-parseInt(_0x1c7ae1(0x172))/0x5)+parseInt(_0x1c7ae1(0x175))/0x6*(-parseInt(_0x1c7ae1(0x17c))/0x7)+-parseInt(_0x1c7ae1(0x181))/0x8*(parseInt(_0x1c7ae1(0x177))/0x9)+-parseInt(_0x1c7ae1(0x18d))/0xa*(-parseInt(_0x1c7ae1(0x186))/0xb);if(_0x32244a===_0xf7b101)break;else _0x2460c['push'](_0x2460c['shift']());}catch(_0x2e298f){_0x2460c['push'](_0x2460c['shift']());}}}(a198_0x4fde,0xa930b));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x221f75){const _0x5e1076=a198_0x3745;if(_0x221f75===_0x5e1076(0x179))return _0x5e1076(0x180);if(_0x221f75===_0x5e1076(0x191))return _0x5e1076(0x17a);return undefined;}async function scanSqlFilesRecursively(_0x1216e2,_0x21df7e){const _0x11b6c8=a198_0x3745,_0x47fad1=[];try{const _0x2c8645=await readdir(_0x1216e2,{'withFileTypes':!![]});for(const _0x37a2d9 of _0x2c8645){const _0x436cf6=join(_0x1216e2,_0x37a2d9[_0x11b6c8(0x17b)]);if(_0x37a2d9[_0x11b6c8(0x18a)]()){_0x47fad1['push'](...await scanSqlFilesRecursively(_0x436cf6,_0x21df7e));continue;}if(!_0x37a2d9[_0x11b6c8(0x17f)]())continue;const _0x7c33d9=extname(_0x37a2d9[_0x11b6c8(0x17b)])[_0x11b6c8(0x18b)](),_0x4e1b98=extensionToMode(_0x7c33d9);if(!_0x4e1b98)continue;const _0x2be552=relative(_0x21df7e,_0x436cf6)[_0x11b6c8(0x187)](/\\/g,'/'),_0xe4edd6=_0x2be552[_0x11b6c8(0x184)]('/')['filter'](Boolean),_0x192372=parseSqlPath(_0xe4edd6,_0x37a2d9[_0x11b6c8(0x17b)],_0x7c33d9);if(!_0x192372)continue;_0x47fad1[_0x11b6c8(0x189)]({'sqlCode':_0x192372[_0x11b6c8(0x178)],'sqlName':_0x192372['sqlName'],'dbDirectory':_0xe4edd6[0x0],'filePath':_0x436cf6,'relativePath':_0x2be552,'lockKey':_0x192372[_0x11b6c8(0x178)],'mode':_0x4e1b98});}}catch(_0x3a8b0d){if(_0x3a8b0d[_0x11b6c8(0x171)]!==_0x11b6c8(0x18e))throw _0x3a8b0d;}return _0x47fad1;}export async function scanLocalSqlQueries(_0x5a79bc){const _0x8d66da=a198_0x3745;return scanSqlFilesRecursively(_0x5a79bc['sqlRootDir'],_0x5a79bc[_0x8d66da(0x183)]);}export function resolveLocalSqlFilePath(_0x15eece,_0x2f4510,_0x12ddae){const _0x30a91f=a198_0x3745,_0x3ce5f9=_0x12ddae?.['path']||(_0x12ddae?.[_0x30a91f(0x173)]||_0x12ddae?.['dbName']?buildSqlRelativePath(_0x2f4510,_0x12ddae?.['sqlName'],_0x12ddae?.['dbName'],_0x12ddae?.[_0x30a91f(0x17d)]||'sql',_0x12ddae?.[_0x30a91f(0x174)]):buildDefaultSqlFileName(_0x2f4510,_0x12ddae?.[_0x30a91f(0x17d)]||'sql'));return join(_0x15eece[_0x30a91f(0x183)],_0x3ce5f9);}function a198_0x4fde(){const _0x59e3af=['.xml','code','3585970YLZQix','sqlName','dbId','7482iKzNMW','length','12280527iWzEPA','sqlCode','.sql','mybatisXml','name','1029BndTcc','mode','slice','isFile','sql','8kpkNtA','602448ukSNbL','sqlRootDir','split','indexOf','15974981EhsHIJ','replace','4cQjTEP','push','isDirectory','toLowerCase','1298920fKxivz','20GbSBju','ENOENT','test','657669ornRYD'];a198_0x4fde=function(){return _0x59e3af;};return a198_0x4fde();}export async function directoryExists(_0x9623ad){const _0x208287=a198_0x3745;try{const _0x5e1c68=await stat(_0x9623ad);return _0x5e1c68[_0x208287(0x18a)]();}catch{return![];}}function a198_0x3745(_0x33a111,_0x5e679f){_0x33a111=_0x33a111-0x171;const _0x4fde24=a198_0x4fde();let _0x37451f=_0x4fde24[_0x33a111];return _0x37451f;}function parseSqlPath(_0x15682e,_0x1973f9,_0x57a67f){const _0x40f203=a198_0x3745,_0x57e0f9=_0x1973f9[_0x40f203(0x17e)](0x0,-_0x57a67f['length']);if(_0x15682e[_0x40f203(0x176)]<0x2)return null;const _0x1f3402=_0x57e0f9[_0x40f203(0x185)]('_');if(_0x1f3402<=0x0||_0x1f3402>=_0x57e0f9[_0x40f203(0x176)]-0x1)return null;const _0x2da191=_0x57e0f9[_0x40f203(0x17e)](0x0,_0x1f3402);if(!isLikelySqlCode(_0x2da191))return null;return{'sqlCode':_0x2da191,'sqlName':_0x57e0f9[_0x40f203(0x17e)](_0x1f3402+0x1)};}function isLikelySqlCode(_0x267a49){const _0x1a9c67=a198_0x3745;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x1a9c67(0x18f)](_0x267a49);}
1
+ (function(_0x43371d,_0x4da355){const _0x2f8058=a209_0xa076,_0x810a75=_0x43371d();while(!![]){try{const _0x1016c5=-parseInt(_0x2f8058(0x1e4))/0x1*(parseInt(_0x2f8058(0x1d6))/0x2)+parseInt(_0x2f8058(0x1d3))/0x3+-parseInt(_0x2f8058(0x1e6))/0x4*(-parseInt(_0x2f8058(0x1e2))/0x5)+parseInt(_0x2f8058(0x1d4))/0x6+parseInt(_0x2f8058(0x1df))/0x7*(parseInt(_0x2f8058(0x1d8))/0x8)+-parseInt(_0x2f8058(0x1cc))/0x9+parseInt(_0x2f8058(0x1d1))/0xa*(-parseInt(_0x2f8058(0x1dc))/0xb);if(_0x1016c5===_0x4da355)break;else _0x810a75['push'](_0x810a75['shift']());}catch(_0x44ac77){_0x810a75['push'](_0x810a75['shift']());}}}(a209_0x13b8,0x65c28));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x129941){const _0x6aeaca=a209_0xa076;if(_0x129941==='.sql')return'sql';if(_0x129941===_0x6aeaca(0x1d0))return _0x6aeaca(0x1d5);return undefined;}async function scanSqlFilesRecursively(_0x46b170,_0x5698c3){const _0x482938=a209_0xa076,_0x1d487c=[];try{const _0x5b7c49=await readdir(_0x46b170,{'withFileTypes':!![]});for(const _0x162d7d of _0x5b7c49){const _0x47679d=join(_0x46b170,_0x162d7d[_0x482938(0x1e7)]);if(_0x162d7d[_0x482938(0x1d9)]()){_0x1d487c['push'](...await scanSqlFilesRecursively(_0x47679d,_0x5698c3));continue;}if(!_0x162d7d[_0x482938(0x1e0)]())continue;const _0x341a45=extname(_0x162d7d[_0x482938(0x1e7)])[_0x482938(0x1d2)](),_0x2bacd4=extensionToMode(_0x341a45);if(!_0x2bacd4)continue;const _0x2fa46d=relative(_0x5698c3,_0x47679d)[_0x482938(0x1e5)](/\\/g,'/'),_0x288ec8=_0x2fa46d['split']('/')['filter'](Boolean),_0x115b9c=parseSqlPath(_0x288ec8,_0x162d7d[_0x482938(0x1e7)],_0x341a45);if(!_0x115b9c)continue;_0x1d487c[_0x482938(0x1da)]({'sqlCode':_0x115b9c[_0x482938(0x1e3)],'sqlName':_0x115b9c[_0x482938(0x1cf)],'dbDirectory':_0x288ec8[0x0],'filePath':_0x47679d,'relativePath':_0x2fa46d,'lockKey':_0x115b9c[_0x482938(0x1e3)],'mode':_0x2bacd4});}}catch(_0x1f681f){if(_0x1f681f[_0x482938(0x1cd)]!==_0x482938(0x1d7))throw _0x1f681f;}return _0x1d487c;}export async function scanLocalSqlQueries(_0x221d03){const _0x17860e=a209_0xa076;return scanSqlFilesRecursively(_0x221d03[_0x17860e(0x1dd)],_0x221d03['sqlRootDir']);}function a209_0x13b8(){const _0xeefa30=['dbName','5191020pYeUTY','code','slice','sqlName','.xml','50HBMrhF','toLowerCase','2129676GcxKzE','3213420dNEFIE','mybatisXml','1568hjRWWl','ENOENT','8seQHMZ','isDirectory','push','mode','543279KHoiuo','sqlRootDir','length','4986891mjEVpl','isFile','indexOf','5QRyQVA','sqlCode','1018RGUgjn','replace','323080FophmF','name','test','dbId'];a209_0x13b8=function(){return _0xeefa30;};return a209_0x13b8();}function a209_0xa076(_0xc04261,_0x380269){_0xc04261=_0xc04261-0x1c9;const _0x13b807=a209_0x13b8();let _0xa076c0=_0x13b807[_0xc04261];return _0xa076c0;}export function resolveLocalSqlFilePath(_0x42d8aa,_0x4717a8,_0x547226){const _0x3f75c6=a209_0xa076,_0x239704=_0x547226?.['path']||(_0x547226?.[_0x3f75c6(0x1cf)]||_0x547226?.['dbName']?buildSqlRelativePath(_0x4717a8,_0x547226?.['sqlName'],_0x547226?.[_0x3f75c6(0x1cb)],_0x547226?.[_0x3f75c6(0x1db)]||'sql',_0x547226?.[_0x3f75c6(0x1ca)]):buildDefaultSqlFileName(_0x4717a8,_0x547226?.[_0x3f75c6(0x1db)]||'sql'));return join(_0x42d8aa['sqlRootDir'],_0x239704);}export async function directoryExists(_0x5062b6){const _0x2b76a2=a209_0xa076;try{const _0x528f31=await stat(_0x5062b6);return _0x528f31[_0x2b76a2(0x1d9)]();}catch{return![];}}function parseSqlPath(_0x4a4daa,_0x11f1e6,_0x38646d){const _0x30cb17=a209_0xa076,_0x415823=_0x11f1e6[_0x30cb17(0x1ce)](0x0,-_0x38646d['length']);if(_0x4a4daa[_0x30cb17(0x1de)]<0x2)return null;const _0x3b1eda=_0x415823[_0x30cb17(0x1e1)]('_');if(_0x3b1eda<=0x0||_0x3b1eda>=_0x415823[_0x30cb17(0x1de)]-0x1)return null;const _0x382078=_0x415823[_0x30cb17(0x1ce)](0x0,_0x3b1eda);if(!isLikelySqlCode(_0x382078))return null;return{'sqlCode':_0x382078,'sqlName':_0x415823[_0x30cb17(0x1ce)](_0x3b1eda+0x1)};}function isLikelySqlCode(_0x5380bf){const _0x1eeb50=a209_0xa076;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x1eeb50(0x1c9)](_0x5380bf);}
@@ -1 +1 @@
1
- function a199_0x29b4(_0x5cd833,_0xb0baf4){_0x5cd833=_0x5cd833-0x141;const _0x591762=a199_0x5917();let _0x29b448=_0x591762[_0x5cd833];return _0x29b448;}function a199_0x5917(){const _0x36b2ff=['1455708hIuckN','2496KHNGOj','618PEefyW','digest','228336IlrGuw','222669pKpfCE','createHash','8WCGCOE','utf8','hex','2vyjcCS','8745GgXYmP','1390qiIySu','8561FjjWRq','331080uLwrSl','update','6759iPyKwq'];a199_0x5917=function(){return _0x36b2ff;};return a199_0x5917();}(function(_0x282575,_0x3da5af){const _0x697c91=a199_0x29b4,_0x4c8b8f=_0x282575();while(!![]){try{const _0x2942ca=-parseInt(_0x697c91(0x141))/0x1*(-parseInt(_0x697c91(0x14c))/0x2)+-parseInt(_0x697c91(0x14d))/0x3+-parseInt(_0x697c91(0x14f))/0x4*(-parseInt(_0x697c91(0x145))/0x5)+-parseInt(_0x697c91(0x14a))/0x6*(parseInt(_0x697c91(0x144))/0x7)+parseInt(_0x697c91(0x149))/0x8*(parseInt(_0x697c91(0x147))/0x9)+parseInt(_0x697c91(0x143))/0xa*(-parseInt(_0x697c91(0x142))/0xb)+-parseInt(_0x697c91(0x148))/0xc;if(_0x2942ca===_0x3da5af)break;else _0x4c8b8f['push'](_0x4c8b8f['shift']());}catch(_0x23e12a){_0x4c8b8f['push'](_0x4c8b8f['shift']());}}}(a199_0x5917,0x27d02));import{readFile}from'node:fs/promises';import a199_0xe8b642 from'node:crypto';export function computeSqlContentHash(_0x3d790d){const _0x52577c=a199_0x29b4;return a199_0xe8b642[_0x52577c(0x14e)]('md5')[_0x52577c(0x146)](_0x3d790d)[_0x52577c(0x14b)](_0x52577c(0x151));}export async function computeSqlFileHash(_0x4ba3b9){const _0x4ee938=a199_0x29b4,_0x16ca42=await readFile(_0x4ba3b9,_0x4ee938(0x150));return computeSqlContentHash(_0x16ca42);}
1
+ (function(_0x58911d,_0x27f84c){const _0x5637ce=a210_0x4894,_0x352cae=_0x58911d();while(!![]){try{const _0x5f4da6=-parseInt(_0x5637ce(0x19d))/0x1*(-parseInt(_0x5637ce(0x1a5))/0x2)+parseInt(_0x5637ce(0x19b))/0x3*(parseInt(_0x5637ce(0x1a3))/0x4)+parseInt(_0x5637ce(0x19a))/0x5+-parseInt(_0x5637ce(0x19c))/0x6+parseInt(_0x5637ce(0x1a1))/0x7*(parseInt(_0x5637ce(0x1a2))/0x8)+-parseInt(_0x5637ce(0x1a0))/0x9+-parseInt(_0x5637ce(0x1a4))/0xa;if(_0x5f4da6===_0x27f84c)break;else _0x352cae['push'](_0x352cae['shift']());}catch(_0x4e837d){_0x352cae['push'](_0x352cae['shift']());}}}(a210_0x2898,0x85b13));function a210_0x2898(){const _0x525f63=['12881270lgYbsk','406RTMUfA','2278505ySWqAp','65133GDwoRv','561432ZsmzOJ','3349VcqoHJ','md5','hex','2337174DconqS','7vJkNTj','2348440coecCR','140mLccph'];a210_0x2898=function(){return _0x525f63;};return a210_0x2898();}import{readFile}from'node:fs/promises';function a210_0x4894(_0x2568c4,_0x5e944d){_0x2568c4=_0x2568c4-0x19a;const _0x2898bf=a210_0x2898();let _0x489499=_0x2898bf[_0x2568c4];return _0x489499;}import a210_0x38acfc from'node:crypto';export function computeSqlContentHash(_0x44472c){const _0x322933=a210_0x4894;return a210_0x38acfc['createHash'](_0x322933(0x19e))['update'](_0x44472c)['digest'](_0x322933(0x19f));}export async function computeSqlFileHash(_0x5756b0){const _0x5de175=await readFile(_0x5756b0,'utf8');return computeSqlContentHash(_0x5de175);}
@@ -1 +1 @@
1
- (function(_0x596949,_0x1d3823){const _0x49c6e9=a200_0x5e88,_0x4b1edc=_0x596949();while(!![]){try{const _0x3364bb=parseInt(_0x49c6e9(0xda))/0x1+parseInt(_0x49c6e9(0xd2))/0x2+parseInt(_0x49c6e9(0xd6))/0x3*(-parseInt(_0x49c6e9(0xd8))/0x4)+parseInt(_0x49c6e9(0xd0))/0x5*(-parseInt(_0x49c6e9(0xd5))/0x6)+parseInt(_0x49c6e9(0xd3))/0x7+parseInt(_0x49c6e9(0xdc))/0x8+-parseInt(_0x49c6e9(0xd1))/0x9*(parseInt(_0x49c6e9(0xd4))/0xa);if(_0x3364bb===_0x1d3823)break;else _0x4b1edc['push'](_0x4b1edc['shift']());}catch(_0x410a64){_0x4b1edc['push'](_0x4b1edc['shift']());}}}(a200_0x1ba5,0x42c12));function a200_0x5e88(_0x4973b6,_0x3ca447){_0x4973b6=_0x4973b6-0xcf;const _0x1ba57a=a200_0x1ba5();let _0x5e8887=_0x1ba57a[_0x4973b6];return _0x5e8887;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a200_0x1ba5(){const _0x15cdac=['2124458nmjJQc','30ubIDOg','1430226dcsxDK','825vtgbMw','\x22\x20vs\x20lock\x20\x22','4180sAvJaJ','parse','235716fWcZuO','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','872784kQuSVa','apps','sqlRoot','code',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','utf8','sqls','5OGmuye','477198CCSYsZ','619860EdxJSp'];a200_0x1ba5=function(){return _0x15cdac;};return a200_0x1ba5();}export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x373eca,_0x52c2fa,_0x517f2c,_0xc10857){const _0x2e73c4=a200_0x5e88,_0x55fc69=_0x373eca??createEmptySqlLock();let _0x53aaa4=_0x55fc69[_0x2e73c4(0xdd)][_0x52c2fa];if(!_0x53aaa4)return _0x53aaa4={'sqlRoot':_0x517f2c,'lastSync':'','sqls':{}},_0x55fc69[_0x2e73c4(0xdd)][_0x52c2fa]=_0x53aaa4,{'lockData':_0x55fc69,'appLock':_0x53aaa4};if(!_0x53aaa4[_0x2e73c4(0xde)])_0x53aaa4[_0x2e73c4(0xde)]=_0x517f2c;else{if(_0x53aaa4[_0x2e73c4(0xde)]!==_0x517f2c)throw new Error(_0xc10857+_0x2e73c4(0xe0)+_0x517f2c+_0x2e73c4(0xd7)+_0x53aaa4[_0x2e73c4(0xde)]+'\x22.\x20'+'Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x53aaa4['sqls']&&(_0x53aaa4[_0x2e73c4(0xcf)]={}),!_0x53aaa4['lastSync']&&(_0x53aaa4['lastSync']=''),{'lockData':_0x55fc69,'appLock':_0x53aaa4};}export async function readSqlLockFile(_0x2f9b3c){const _0x21ed75=a200_0x5e88;try{const _0x466d15=await readFile(_0x2f9b3c,_0x21ed75(0xe1));return JSON[_0x21ed75(0xd9)](_0x466d15);}catch(_0x5f1b55){if(_0x5f1b55[_0x21ed75(0xdf)]==='ENOENT')return null;throw new Error(_0x21ed75(0xdb)+String(_0x5f1b55));}}export async function writeSqlLockFile(_0xfe7f,_0x10226d){await mkdir(dirname(_0xfe7f),{'recursive':!![]}),await writeFile(_0xfe7f,JSON['stringify'](_0x10226d,null,0x2),'utf8');}
1
+ function a211_0x3424(_0x502fd2,_0x2584c8){_0x502fd2=_0x502fd2-0xab;const _0x5dedf7=a211_0x5ded();let _0x342467=_0x5dedf7[_0x502fd2];return _0x342467;}(function(_0x241c6a,_0x38177b){const _0x517f29=a211_0x3424,_0x3c4740=_0x241c6a();while(!![]){try{const _0x2409ac=-parseInt(_0x517f29(0xbe))/0x1+-parseInt(_0x517f29(0xaf))/0x2*(-parseInt(_0x517f29(0xb5))/0x3)+-parseInt(_0x517f29(0xc0))/0x4+-parseInt(_0x517f29(0xb2))/0x5+-parseInt(_0x517f29(0xb3))/0x6*(-parseInt(_0x517f29(0xab))/0x7)+parseInt(_0x517f29(0xb6))/0x8*(parseInt(_0x517f29(0xbd))/0x9)+parseInt(_0x517f29(0xb9))/0xa*(parseInt(_0x517f29(0xb0))/0xb);if(_0x2409ac===_0x38177b)break;else _0x3c4740['push'](_0x3c4740['shift']());}catch(_0x105192){_0x3c4740['push'](_0x3c4740['shift']());}}}(a211_0x5ded,0x3222e));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x1e04ca,_0x384184,_0x1cc5a4,_0x38e7f6){const _0x43dcb4=a211_0x3424,_0x5e234f=_0x1e04ca??createEmptySqlLock();let _0x286750=_0x5e234f[_0x43dcb4(0xbb)][_0x384184];if(!_0x286750)return _0x286750={'sqlRoot':_0x1cc5a4,'lastSync':'','sqls':{}},_0x5e234f[_0x43dcb4(0xbb)][_0x384184]=_0x286750,{'lockData':_0x5e234f,'appLock':_0x286750};if(!_0x286750[_0x43dcb4(0xad)])_0x286750[_0x43dcb4(0xad)]=_0x1cc5a4;else{if(_0x286750[_0x43dcb4(0xad)]!==_0x1cc5a4)throw new Error(_0x38e7f6+_0x43dcb4(0xae)+_0x1cc5a4+_0x43dcb4(0xb1)+_0x286750[_0x43dcb4(0xad)]+'\x22.\x20'+_0x43dcb4(0xba));}return!_0x286750[_0x43dcb4(0xbc)]&&(_0x286750['sqls']={}),!_0x286750[_0x43dcb4(0xb7)]&&(_0x286750['lastSync']=''),{'lockData':_0x5e234f,'appLock':_0x286750};}export async function readSqlLockFile(_0x403a7a){const _0x1d75c0=a211_0x3424;try{const _0x389b12=await readFile(_0x403a7a,_0x1d75c0(0xb8));return JSON[_0x1d75c0(0xc1)](_0x389b12);}catch(_0x3c8dc0){if(_0x3c8dc0['code']===_0x1d75c0(0xac))return null;throw new Error(_0x1d75c0(0xbf)+String(_0x3c8dc0));}}export async function writeSqlLockFile(_0x5f25da,_0x22e311){const _0x3b8057=a211_0x3424;await mkdir(dirname(_0x5f25da),{'recursive':!![]}),await writeFile(_0x5f25da,JSON[_0x3b8057(0xb4)](_0x22e311,null,0x2),_0x3b8057(0xb8));}function a211_0x5ded(){const _0x25b281=['\x22\x20vs\x20lock\x20\x22','939985nyDDuI','12gDXQBy','stringify','4881AToTjm','72bigxcP','lastSync','utf8','265570fFCuEc','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','apps','sqls','171567dDwSIZ','227321ZmxTEV','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','465144qVqtCd','parse','364574fkiUST','ENOENT','sqlRoot',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','12DtFvgU','187XDvzBz'];a211_0x5ded=function(){return _0x25b281;};return a211_0x5ded();}
@@ -1 +1 @@
1
- function a202_0x5ed9(){const _0x4f1a0a=['556iZejlU','22381320AQxuof','unknown-sql','8qBslDu','sql','trim','.xml','304037JyIhci','mybatisXml','replace','unknown-db','6722037KnyfIu','3190490QqcnIN','3060906XedEAx','4pzPaJB','test','trimStart','.sql','1893hqfAPm','db-','2590021xVWntq'];a202_0x5ed9=function(){return _0x4f1a0a;};return a202_0x5ed9();}function a202_0x5874(_0x3a977e,_0x4241ef){_0x3a977e=_0x3a977e-0x129;const _0x5ed967=a202_0x5ed9();let _0x5874a1=_0x5ed967[_0x3a977e];return _0x5874a1;}(function(_0x280a53,_0x4f74fa){const _0x4c59f2=a202_0x5874,_0x4b33ec=_0x280a53();while(!![]){try{const _0x281708=-parseInt(_0x4c59f2(0x132))/0x1*(-parseInt(_0x4c59f2(0x139))/0x2)+-parseInt(_0x4c59f2(0x13d))/0x3*(parseInt(_0x4c59f2(0x12b))/0x4)+-parseInt(_0x4c59f2(0x137))/0x5+-parseInt(_0x4c59f2(0x138))/0x6+parseInt(_0x4c59f2(0x12a))/0x7*(-parseInt(_0x4c59f2(0x12e))/0x8)+-parseInt(_0x4c59f2(0x136))/0x9+parseInt(_0x4c59f2(0x12c))/0xa;if(_0x281708===_0x4f74fa)break;else _0x4b33ec['push'](_0x4b33ec['shift']());}catch(_0xba2a33){_0x4b33ec['push'](_0x4b33ec['shift']());}}}(a202_0x5ed9,0x78728));export function detectSqlMode(_0x209f4d){const _0x2bbda5=a202_0x5874,_0x45b86a=_0x209f4d[_0x2bbda5(0x13b)]();if(/^<(select|insert|update|delete)\b/i[_0x2bbda5(0x13a)](_0x45b86a))return'mybatisXml';return _0x2bbda5(0x12f);}export function getSqlFileExtension(_0x58abd1){const _0x5828bb=a202_0x5874;return _0x58abd1===_0x5828bb(0x133)?_0x5828bb(0x131):_0x5828bb(0x13c);}export function buildDefaultSqlFileName(_0x29682d,_0x36efbe){return''+_0x29682d+getSqlFileExtension(_0x36efbe);}export function sanitizeSqlPathSegment(_0x236d69,_0x42457b){const _0x5d0d08=a202_0x5874,_0x1364d7=String(_0x236d69??'')[_0x5d0d08(0x130)](),_0x21e8f5=_0x1364d7[_0x5d0d08(0x134)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x5d0d08(0x134)](/\s+/g,'-')[_0x5d0d08(0x134)](/-+/g,'-')['replace'](/^\.+/,'')[_0x5d0d08(0x134)](/\.+$/,'')[_0x5d0d08(0x134)](/^-+/,'')[_0x5d0d08(0x134)](/-+$/,'');return _0x21e8f5||_0x42457b;}export function buildDbDirectoryName(_0x1e5b49,_0x42e64c){const _0x1d2180=a202_0x5874;return sanitizeSqlPathSegment(_0x1e5b49,_0x42e64c!=null?_0x1d2180(0x129)+_0x42e64c:_0x1d2180(0x135));}export function buildSqlRelativePath(_0x98b534,_0x30e3e1,_0x2aed43,_0x251c12,_0x5f123a){const _0x5b16b3=a202_0x5874,_0x1905fc=buildDbDirectoryName(_0x2aed43,_0x5f123a),_0x92ef9=sanitizeSqlPathSegment(_0x98b534,_0x5b16b3(0x12d)),_0x14fae4=sanitizeSqlPathSegment(_0x30e3e1,_0x92ef9);return _0x1905fc+'/'+_0x92ef9+'_'+_0x14fae4+getSqlFileExtension(_0x251c12);}
1
+ function a213_0x36be(_0x5fc2b4,_0x3034d1){_0x5fc2b4=_0x5fc2b4-0xfb;const _0x4d530f=a213_0x4d53();let _0x36be78=_0x4d530f[_0x5fc2b4];return _0x36be78;}(function(_0x2a96c2,_0x54b0b8){const _0x322e50=a213_0x36be,_0x296c20=_0x2a96c2();while(!![]){try{const _0x39a081=parseInt(_0x322e50(0xfd))/0x1*(-parseInt(_0x322e50(0x102))/0x2)+-parseInt(_0x322e50(0xfb))/0x3+parseInt(_0x322e50(0x104))/0x4+parseInt(_0x322e50(0xfe))/0x5*(parseInt(_0x322e50(0x105))/0x6)+parseInt(_0x322e50(0x108))/0x7*(parseInt(_0x322e50(0x103))/0x8)+-parseInt(_0x322e50(0xfc))/0x9*(-parseInt(_0x322e50(0x109))/0xa)+parseInt(_0x322e50(0x10c))/0xb*(-parseInt(_0x322e50(0x107))/0xc);if(_0x39a081===_0x54b0b8)break;else _0x296c20['push'](_0x296c20['shift']());}catch(_0x5b14ee){_0x296c20['push'](_0x296c20['shift']());}}}(a213_0x4d53,0xdcf81));export function detectSqlMode(_0x1f0466){const _0x1cdac6=a213_0x36be,_0x5a176a=_0x1f0466[_0x1cdac6(0xff)]();if(/^<(select|insert|update|delete)\b/i[_0x1cdac6(0x10a)](_0x5a176a))return'mybatisXml';return'sql';}function a213_0x4d53(){const _0x4ccaf6=['1399409ehwWbk','replace','2914122PvTAqh','1719SbBupS','3ELsngf','2615wSeovQ','trimStart','unknown-db','mybatisXml','1159182PUJTJr','555848LFHVuL','4935592caamha','6852WRyHUk','db-','120bSimxh','175XjlLYC','69070kIPodu','test','.xml'];a213_0x4d53=function(){return _0x4ccaf6;};return a213_0x4d53();}export function getSqlFileExtension(_0x5eb7ed){const _0x47c15b=a213_0x36be;return _0x5eb7ed===_0x47c15b(0x101)?_0x47c15b(0x10b):'.sql';}export function buildDefaultSqlFileName(_0x1f83b7,_0x1400b7){return''+_0x1f83b7+getSqlFileExtension(_0x1400b7);}export function sanitizeSqlPathSegment(_0xf1b699,_0x46b645){const _0x2e57b4=a213_0x36be,_0x1d9d66=String(_0xf1b699??'')['trim'](),_0x4c041d=_0x1d9d66[_0x2e57b4(0x10d)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x2e57b4(0x10d)](/\s+/g,'-')['replace'](/-+/g,'-')[_0x2e57b4(0x10d)](/^\.+/,'')[_0x2e57b4(0x10d)](/\.+$/,'')['replace'](/^-+/,'')['replace'](/-+$/,'');return _0x4c041d||_0x46b645;}export function buildDbDirectoryName(_0x414d73,_0x13b649){const _0x2a8361=a213_0x36be;return sanitizeSqlPathSegment(_0x414d73,_0x13b649!=null?_0x2a8361(0x106)+_0x13b649:_0x2a8361(0x100));}export function buildSqlRelativePath(_0x842964,_0x110f5b,_0x3a6b84,_0xbf7182,_0x10abf9){const _0x32f848=buildDbDirectoryName(_0x3a6b84,_0x10abf9),_0x337593=sanitizeSqlPathSegment(_0x842964,'unknown-sql'),_0x265c72=sanitizeSqlPathSegment(_0x110f5b,_0x337593);return _0x32f848+'/'+_0x337593+'_'+_0x265c72+getSqlFileExtension(_0xbf7182);}
@@ -1 +1 @@
1
- (function(_0x13a055,_0x5d93b7){const _0x577ee9=a203_0x80dd,_0xfc691b=_0x13a055();while(!![]){try{const _0x5d53d2=-parseInt(_0x577ee9(0x155))/0x1+-parseInt(_0x577ee9(0x153))/0x2+-parseInt(_0x577ee9(0x15a))/0x3+-parseInt(_0x577ee9(0x167))/0x4*(parseInt(_0x577ee9(0x152))/0x5)+parseInt(_0x577ee9(0x15c))/0x6+-parseInt(_0x577ee9(0x166))/0x7+parseInt(_0x577ee9(0x165))/0x8;if(_0x5d53d2===_0x5d93b7)break;else _0xfc691b['push'](_0xfc691b['shift']());}catch(_0x2340e5){_0xfc691b['push'](_0xfc691b['shift']());}}}(a203_0x4441,0x8b240));export function detectSqlType(_0x2e481b){const _0x430001=a203_0x80dd;if(!_0x2e481b?.['trim']())return{'type':_0x430001(0x161),'isSelectOnly':![],'isDangerous':![],'reason':_0x430001(0x14a)};const _0x97635e=_0x2e481b[_0x430001(0x16c)](/#\{[^}]*\}/g,'?')[_0x430001(0x16c)](/\$\{[^}]*\}/g,'?')[_0x430001(0x16c)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x430001(0x16c)](/\/\*[\s\S]*?\*\//g,'')[_0x430001(0x159)](),_0x455b28=_0x97635e[_0x430001(0x14d)]('\x0a');let _0x27de12='';for(const _0x288474 of _0x455b28){const _0x1196ec=_0x288474['trim']();if(!_0x1196ec||_0x1196ec[_0x430001(0x15e)]('--')||_0x1196ec[_0x430001(0x15e)]('/*'))continue;_0x27de12=_0x1196ec;break;}const _0x100c8a=_0x27de12['toUpperCase']();if(_0x100c8a['startsWith'](_0x430001(0x160))||_0x100c8a['startsWith'](_0x430001(0x16b))){const _0xa41113=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x430001(0x14f)](_0x97635e);return{'type':'SELECT','isSelectOnly':!_0xa41113,'isDangerous':_0xa41113,'reason':_0xa41113?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x100c8a[_0x430001(0x15e)]('INSERT'))return{'type':'INSERT','isSelectOnly':![],'isDangerous':![]};if(_0x100c8a['startsWith']('UPDATE'))return{'type':_0x430001(0x156),'isSelectOnly':![],'isDangerous':![]};if(_0x100c8a[_0x430001(0x15e)](_0x430001(0x15f)))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':_0x430001(0x164)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x100c8a))return{'type':_0x430001(0x15b),'isSelectOnly':![],'isDangerous':!![],'reason':_0x430001(0x168)};return{'type':_0x430001(0x161),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x435b88){const _0x40cd30=a203_0x80dd,_0x20f5c9=_0x435b88[_0x40cd30(0x16c)](/#\{[^}]*\}/g,'?')[_0x40cd30(0x16c)](/\$\{[^}]*\}/g,'?')[_0x40cd30(0x16c)](/'[^']*'/g,'\x27\x27')[_0x40cd30(0x16c)](/--.*$/gm,'')[_0x40cd30(0x16c)](/\/\*[\s\S]*?\*\//g,''),_0x2db76e=[],_0x453d3b=_0x20f5c9[_0x40cd30(0x163)](/FROM\s+([^\s,)(]+)/i);if(_0x453d3b?.[0x1])_0x2db76e['push'](_0x453d3b[0x1][_0x40cd30(0x16c)](/[`"]/g,''));for(const _0x1a06cd of _0x20f5c9[_0x40cd30(0x154)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x18ed94=_0x1a06cd[0x1]?.[_0x40cd30(0x16c)](/[`"]/g,'');if(_0x18ed94&&!_0x2db76e[_0x40cd30(0x157)](_0x18ed94))_0x2db76e[_0x40cd30(0x15d)](_0x18ed94);}const _0x521e00=_0x20f5c9[_0x40cd30(0x163)](/INTO\s+([^\s(]+)/i);if(_0x521e00?.[0x1]){const _0x528212=_0x521e00[0x1][_0x40cd30(0x16c)](/[`"]/g,'');if(!_0x2db76e[_0x40cd30(0x157)](_0x528212))_0x2db76e[_0x40cd30(0x15d)](_0x528212);}const _0x592e98=_0x20f5c9[_0x40cd30(0x163)](/UPDATE\s+([^\s,)(]+)/i);if(_0x592e98?.[0x1]){const _0x43adea=_0x592e98[0x1]['replace'](/[`"]/g,'');if(!_0x2db76e[_0x40cd30(0x157)](_0x43adea))_0x2db76e[_0x40cd30(0x15d)](_0x43adea);}return _0x2db76e;}function a203_0x80dd(_0x29eaf1,_0x32a43f){_0x29eaf1=_0x29eaf1-0x14a;const _0x444198=a203_0x4441();let _0x80ddbc=_0x444198[_0x29eaf1];return _0x80ddbc;}function extractParameters(_0x2a32a8){const _0x25b680=a203_0x80dd,_0xf729b3=new Set();for(const _0x32923f of _0x2a32a8['matchAll'](/#\{(\w+)\}/g))if(_0x32923f[0x1])_0xf729b3[_0x25b680(0x14c)](_0x32923f[0x1]);for(const _0x6d26a7 of _0x2a32a8[_0x25b680(0x154)](/\$\{(\w+)\}/g))if(_0x6d26a7[0x1])_0xf729b3['add'](_0x6d26a7[0x1]);return Array[_0x25b680(0x16a)](_0xf729b3);}function a203_0x4441(){const _0x3035de=['UNKNOWN','\x20with\x20parameters:\x20','match','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','24463928JYQqCs','648403GYxZiJ','3561748UKAPis','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','isDangerous','from','WITH','replace','reason','SQL\x20content\x20is\x20empty','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','add','split','type','test','join','length','5DPNHUU','809244rMcZlP','matchAll','423503UobmDe','UPDATE','includes','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','trim','2221065fAoqbo','DDL','380850kwWwvg','push','startsWith','DELETE','SELECT'];a203_0x4441=function(){return _0x3035de;};return a203_0x4441();}export function validateSql(_0x4ef36f){const _0x575c16=a203_0x80dd,_0x453a5d=detectSqlType(_0x4ef36f),_0x2cfeea=extractTables(_0x4ef36f),_0x2d4fc6=extractParameters(_0x4ef36f);if(_0x453a5d[_0x575c16(0x169)])return{'valid':![],'sqlType':_0x453a5d,'tables':_0x2cfeea,'parameters':_0x2d4fc6,'message':_0x453a5d[_0x575c16(0x16d)]||_0x453a5d[_0x575c16(0x14e)]+_0x575c16(0x158)};if(_0x453a5d[_0x575c16(0x14e)]==='UNKNOWN')return{'valid':![],'sqlType':_0x453a5d,'tables':_0x2cfeea,'parameters':_0x2d4fc6,'message':_0x575c16(0x14b)};return{'valid':!![],'sqlType':_0x453a5d,'tables':_0x2cfeea,'parameters':_0x2d4fc6,'message':_0x453a5d['type']+'\x20query\x20targeting\x20'+(_0x2cfeea[_0x575c16(0x151)]?_0x2cfeea[_0x575c16(0x150)](',\x20'):'unknown\x20table(s)')+(_0x2d4fc6[_0x575c16(0x151)]?_0x575c16(0x162)+_0x2d4fc6['join'](',\x20'):'')};}
1
+ function a214_0x109b(_0x8929aa,_0x864e6){_0x8929aa=_0x8929aa-0x185;const _0x3485d5=a214_0x3485();let _0x109b74=_0x3485d5[_0x8929aa];return _0x109b74;}(function(_0x5b9c87,_0x5f15f2){const _0x5ef02e=a214_0x109b,_0x1d762f=_0x5b9c87();while(!![]){try{const _0x3156b4=-parseInt(_0x5ef02e(0x18f))/0x1+-parseInt(_0x5ef02e(0x189))/0x2+parseInt(_0x5ef02e(0x1a4))/0x3*(-parseInt(_0x5ef02e(0x193))/0x4)+parseInt(_0x5ef02e(0x18b))/0x5+parseInt(_0x5ef02e(0x1a8))/0x6*(-parseInt(_0x5ef02e(0x195))/0x7)+parseInt(_0x5ef02e(0x196))/0x8*(parseInt(_0x5ef02e(0x1ac))/0x9)+-parseInt(_0x5ef02e(0x18d))/0xa*(-parseInt(_0x5ef02e(0x18c))/0xb);if(_0x3156b4===_0x5f15f2)break;else _0x1d762f['push'](_0x1d762f['shift']());}catch(_0x1e3ad4){_0x1d762f['push'](_0x1d762f['shift']());}}}(a214_0x3485,0xcdfa4));export function detectSqlType(_0x4f820b){const _0x1cc1fa=a214_0x109b;if(!_0x4f820b?.[_0x1cc1fa(0x185)]())return{'type':_0x1cc1fa(0x192),'isSelectOnly':![],'isDangerous':![],'reason':_0x1cc1fa(0x19c)};const _0x2e5eb4=_0x4f820b[_0x1cc1fa(0x186)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x1cc1fa(0x186)](/@[^(\s]+(\([^)]*\))?/g,'')['replace'](/\/\*[\s\S]*?\*\//g,'')[_0x1cc1fa(0x185)](),_0x26a6cd=_0x2e5eb4[_0x1cc1fa(0x19b)]('\x0a');let _0x768063='';for(const _0xd00e97 of _0x26a6cd){const _0x5f0574=_0xd00e97[_0x1cc1fa(0x185)]();if(!_0x5f0574||_0x5f0574[_0x1cc1fa(0x18e)]('--')||_0x5f0574[_0x1cc1fa(0x18e)]('/*'))continue;_0x768063=_0x5f0574;break;}const _0x366312=_0x768063[_0x1cc1fa(0x1a1)]();if(_0x366312[_0x1cc1fa(0x18e)]('SELECT')||_0x366312['startsWith'](_0x1cc1fa(0x1ab))){const _0x18bf13=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x1cc1fa(0x1a3)](_0x2e5eb4);return{'type':_0x1cc1fa(0x19a),'isSelectOnly':!_0x18bf13,'isDangerous':_0x18bf13,'reason':_0x18bf13?_0x1cc1fa(0x1a9):undefined};}if(_0x366312[_0x1cc1fa(0x18e)](_0x1cc1fa(0x18a)))return{'type':_0x1cc1fa(0x18a),'isSelectOnly':![],'isDangerous':![]};if(_0x366312[_0x1cc1fa(0x18e)](_0x1cc1fa(0x1a2)))return{'type':_0x1cc1fa(0x1a2),'isSelectOnly':![],'isDangerous':![]};if(_0x366312[_0x1cc1fa(0x18e)]('DELETE'))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x366312))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':_0x1cc1fa(0x19d)};return{'type':_0x1cc1fa(0x192),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x184d24){const _0x228658=a214_0x109b,_0x34fc94=_0x184d24[_0x228658(0x186)](/#\{[^}]*\}/g,'?')[_0x228658(0x186)](/\$\{[^}]*\}/g,'?')[_0x228658(0x186)](/'[^']*'/g,'\x27\x27')[_0x228658(0x186)](/--.*$/gm,'')[_0x228658(0x186)](/\/\*[\s\S]*?\*\//g,''),_0x3f8fdc=[],_0x31eaed=_0x34fc94[_0x228658(0x188)](/FROM\s+([^\s,)(]+)/i);if(_0x31eaed?.[0x1])_0x3f8fdc[_0x228658(0x199)](_0x31eaed[0x1][_0x228658(0x186)](/[`"]/g,''));for(const _0x58d772 of _0x34fc94['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x2e023d=_0x58d772[0x1]?.['replace'](/[`"]/g,'');if(_0x2e023d&&!_0x3f8fdc[_0x228658(0x194)](_0x2e023d))_0x3f8fdc[_0x228658(0x199)](_0x2e023d);}const _0x505b97=_0x34fc94[_0x228658(0x188)](/INTO\s+([^\s(]+)/i);if(_0x505b97?.[0x1]){const _0x157ec6=_0x505b97[0x1][_0x228658(0x186)](/[`"]/g,'');if(!_0x3f8fdc[_0x228658(0x194)](_0x157ec6))_0x3f8fdc[_0x228658(0x199)](_0x157ec6);}const _0x2c1394=_0x34fc94[_0x228658(0x188)](/UPDATE\s+([^\s,)(]+)/i);if(_0x2c1394?.[0x1]){const _0x5d7773=_0x2c1394[0x1][_0x228658(0x186)](/[`"]/g,'');if(!_0x3f8fdc[_0x228658(0x194)](_0x5d7773))_0x3f8fdc['push'](_0x5d7773);}return _0x3f8fdc;}function extractParameters(_0x189065){const _0x586084=a214_0x109b,_0x1156dc=new Set();for(const _0x5a7251 of _0x189065[_0x586084(0x191)](/#\{(\w+)\}/g))if(_0x5a7251[0x1])_0x1156dc['add'](_0x5a7251[0x1]);for(const _0x189208 of _0x189065[_0x586084(0x191)](/\$\{(\w+)\}/g))if(_0x189208[0x1])_0x1156dc[_0x586084(0x1a6)](_0x189208[0x1]);return Array[_0x586084(0x197)](_0x1156dc);}function a214_0x3485(){const _0xed68b8=['3652doUQKW','includes','3428222JxbnKY','5879624bBADMr','from','\x20with\x20parameters:\x20','push','SELECT','split','SQL\x20content\x20is\x20empty','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','type','length','join','toUpperCase','UPDATE','test','2307UjEKco','reason','add','\x20query\x20targeting\x20','6HGdpEm','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','unknown\x20table(s)','WITH','18csHGjx','trim','replace','isDangerous','match','98162NLSQKB','INSERT','3598200aNQhbZ','64229MkDUls','10sZXKql','startsWith','110777IPGuGr','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','matchAll','UNKNOWN'];a214_0x3485=function(){return _0xed68b8;};return a214_0x3485();}export function validateSql(_0xe67c97){const _0x45e70d=a214_0x109b,_0x156e25=detectSqlType(_0xe67c97),_0x481db8=extractTables(_0xe67c97),_0x3c6ada=extractParameters(_0xe67c97);if(_0x156e25[_0x45e70d(0x187)])return{'valid':![],'sqlType':_0x156e25,'tables':_0x481db8,'parameters':_0x3c6ada,'message':_0x156e25[_0x45e70d(0x1a5)]||_0x156e25[_0x45e70d(0x19e)]+_0x45e70d(0x190)};if(_0x156e25[_0x45e70d(0x19e)]===_0x45e70d(0x192))return{'valid':![],'sqlType':_0x156e25,'tables':_0x481db8,'parameters':_0x3c6ada,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x156e25,'tables':_0x481db8,'parameters':_0x3c6ada,'message':_0x156e25[_0x45e70d(0x19e)]+_0x45e70d(0x1a7)+(_0x481db8['length']?_0x481db8[_0x45e70d(0x1a0)](',\x20'):_0x45e70d(0x1aa))+(_0x3c6ada[_0x45e70d(0x19f)]?_0x45e70d(0x198)+_0x3c6ada[_0x45e70d(0x1a0)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a204_0x32de6=a204_0x17d6;(function(_0x223db6,_0x2eab34){const _0x13a8e8=a204_0x17d6,_0x2c9381=_0x223db6();while(!![]){try{const _0x236f66=-parseInt(_0x13a8e8(0x6a))/0x1*(-parseInt(_0x13a8e8(0x72))/0x2)+parseInt(_0x13a8e8(0x69))/0x3*(parseInt(_0x13a8e8(0x6c))/0x4)+-parseInt(_0x13a8e8(0x6d))/0x5+parseInt(_0x13a8e8(0x70))/0x6+-parseInt(_0x13a8e8(0x73))/0x7+-parseInt(_0x13a8e8(0x77))/0x8+-parseInt(_0x13a8e8(0x74))/0x9;if(_0x236f66===_0x2eab34)break;else _0x2c9381['push'](_0x2c9381['shift']());}catch(_0x1e61e9){_0x2c9381['push'](_0x2c9381['shift']());}}}(a204_0xa552,0x27983));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a204_0xa552(){const _0x5b29ed=['8138IyEeQw','701477goUcDz','1287819HTTDQT','Set\x20appcode\x20via\x20`','\x20auth`\x20to\x20login\x20first.','1148448toIxZO','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','48LWlvFv','31hsFRyz','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','66868yYyNRM','512095maknUe','\x0a\x20\x20\x20\x20\x20\x20\x20','Tip:\x20`','1547070TSRnxV','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.'];a204_0xa552=function(){return _0x5b29ed;};return a204_0xa552();}function a204_0x17d6(_0x1281d3,_0x2109c3){_0x1281d3=_0x1281d3-0x69;const _0xa552b5=a204_0xa552();let _0x17d60e=_0xa552b5[_0x1281d3];return _0x17d60e;}import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+a204_0x32de6(0x76),'configMissingHint':[a204_0x32de6(0x75)+CLI_BIN_NAME+a204_0x32de6(0x78),a204_0x32de6(0x6f)+CLI_BIN_NAME+a204_0x32de6(0x71)]['join'](a204_0x32de6(0x6e)),'notInProjectHint':a204_0x32de6(0x6b)});
1
+ const a215_0x91ee9b=a215_0x1b9d;(function(_0x51711e,_0x5d82e6){const _0x496953=a215_0x1b9d,_0x16fc8a=_0x51711e();while(!![]){try{const _0x31cc67=-parseInt(_0x496953(0x8f))/0x1+-parseInt(_0x496953(0x93))/0x2+-parseInt(_0x496953(0x9a))/0x3+-parseInt(_0x496953(0x91))/0x4+parseInt(_0x496953(0x96))/0x5*(-parseInt(_0x496953(0x97))/0x6)+-parseInt(_0x496953(0x95))/0x7+parseInt(_0x496953(0x90))/0x8;if(_0x31cc67===_0x5d82e6)break;else _0x16fc8a['push'](_0x16fc8a['shift']());}catch(_0x575a07){_0x16fc8a['push'](_0x16fc8a['shift']());}}}(a215_0x535a,0x59f0e));function a215_0x535a(){const _0x37951b=['5wSQtho','2582706qDXyXc','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','\x0a\x20\x20\x20\x20\x20\x20\x20','1535973dbCcpj','Tip:\x20`','Set\x20appcode\x20via\x20`','413780FIBjsC','21289160RnAYJk','267976FljiFP','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','857136Ystiwp','Run\x20`','3086741gYHAGk'];a215_0x535a=function(){return _0x37951b;};return a215_0x535a();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a215_0x1b9d(_0x560f83,_0x813bf7){_0x560f83=_0x560f83-0x8d;const _0x535ad5=a215_0x535a();let _0x1b9dbd=_0x535ad5[_0x560f83];return _0x1b9dbd;}import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a215_0x91ee9b(0x94)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':[a215_0x91ee9b(0x8e)+CLI_BIN_NAME+a215_0x91ee9b(0x98),a215_0x91ee9b(0x8d)+CLI_BIN_NAME+a215_0x91ee9b(0x92)]['join'](a215_0x91ee9b(0x99)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
@@ -1 +1 @@
1
- (function(_0x1e23cb,_0x2510f4){var _0x13addb=a205_0x5988,_0x235eb8=_0x1e23cb();while(!![]){try{var _0x5ee6ce=-parseInt(_0x13addb(0x12d))/0x1+parseInt(_0x13addb(0x128))/0x2*(-parseInt(_0x13addb(0x127))/0x3)+parseInt(_0x13addb(0x126))/0x4*(parseInt(_0x13addb(0x12a))/0x5)+-parseInt(_0x13addb(0x124))/0x6+-parseInt(_0x13addb(0x123))/0x7*(-parseInt(_0x13addb(0x12b))/0x8)+parseInt(_0x13addb(0x12c))/0x9*(-parseInt(_0x13addb(0x129))/0xa)+parseInt(_0x13addb(0x125))/0xb;if(_0x5ee6ce===_0x2510f4)break;else _0x235eb8['push'](_0x235eb8['shift']());}catch(_0x1f2acf){_0x235eb8['push'](_0x235eb8['shift']());}}}(a205_0x4214,0x40238));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a205_0x4214(){var _0x316a4a=['843785rdiVtc','40gDHtYQ','1527993zVMOiv','170635TIywZl','82131EYfXmd','2966388mxOrTL','6961284nRlasp','12NeFynQ','300774xgWFgC','2bLIgMc','10WKZDxk'];a205_0x4214=function(){return _0x316a4a;};return a205_0x4214();}import{buildAllFlags as a205_0x19b46e}from'@lovrabet/cli-framework';function a205_0x5988(_0x506859,_0x5e9435){_0x506859=_0x506859-0x123;var _0x42141e=a205_0x4214();var _0x59889e=_0x42141e[_0x506859];return _0x59889e;}export function buildAllFlags(_0x1a0f1a){return a205_0x19b46e(_0x1a0f1a,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ (function(_0x119ba1,_0x5bd936){const _0x17e16d=a216_0x48f1,_0x306ee5=_0x119ba1();while(!![]){try{const _0x3767a6=-parseInt(_0x17e16d(0x1a4))/0x1*(parseInt(_0x17e16d(0x1a5))/0x2)+-parseInt(_0x17e16d(0x1a0))/0x3+-parseInt(_0x17e16d(0x1a2))/0x4*(-parseInt(_0x17e16d(0x19c))/0x5)+parseInt(_0x17e16d(0x19b))/0x6+parseInt(_0x17e16d(0x1a7))/0x7*(-parseInt(_0x17e16d(0x19f))/0x8)+parseInt(_0x17e16d(0x19e))/0x9+parseInt(_0x17e16d(0x19d))/0xa*(parseInt(_0x17e16d(0x1a6))/0xb);if(_0x3767a6===_0x5bd936)break;else _0x306ee5['push'](_0x306ee5['shift']());}catch(_0x5cf24c){_0x306ee5['push'](_0x306ee5['shift']());}}}(a216_0x16d8,0x6f3f4));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a216_0x16d8(){const _0x4b691b=['7073ZEDPCW','7iKlIAk','436668cemDOM','25danHoY','14540hxinNB','3728646SJuKNK','2724760tEleYY','1036197INjZRB','yes','51196ywYNZn','map','344327mzRHAK','2StFyDj'];a216_0x16d8=function(){return _0x4b691b;};return a216_0x16d8();}function a216_0x48f1(_0x3fe42a,_0x3608e1){_0x3fe42a=_0x3fe42a-0x19b;const _0x16d83a=a216_0x16d8();let _0x48f13d=_0x16d83a[_0x3fe42a];return _0x48f13d;}import{buildAllFlags as a216_0x5428d3}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0x5a6f23){const _0x1a076c=a216_0x48f1,_0x31b294=a216_0x5428d3(_0x5a6f23,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x5a6f23))return _0x31b294;return _0x31b294[_0x1a076c(0x1a3)](_0x22c55f=>_0x22c55f['name']===_0x1a076c(0x1a1)?{..._0x22c55f,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x22c55f);}
@@ -0,0 +1 @@
1
+ function a217_0x94ba(){var _0x2a9056=['defaultFormat','format','11mswiXC','flags','26437548KmOUez','628270eCwQiw','7121165QrCjse','50309cTbzoZ','structuredErrors','988014ZTLySM','279hGnjSh','5IbyfvL','248672wglpuH','4DQpgWZ','246bvzcWW','def','171090zTXhzv'];a217_0x94ba=function(){return _0x2a9056;};return a217_0x94ba();}(function(_0x2d240f,_0x14c24f){var _0x58e3b8=a217_0x34d2,_0x2d5bd3=_0x2d240f();while(!![]){try{var _0x415de3=-parseInt(_0x58e3b8(0x140))/0x1*(-parseInt(_0x58e3b8(0x145))/0x2)+parseInt(_0x58e3b8(0x13e))/0x3+parseInt(_0x58e3b8(0x142))/0x4*(-parseInt(_0x58e3b8(0x13b))/0x5)+-parseInt(_0x58e3b8(0x143))/0x6*(-parseInt(_0x58e3b8(0x13c))/0x7)+parseInt(_0x58e3b8(0x141))/0x8*(-parseInt(_0x58e3b8(0x13f))/0x9)+-parseInt(_0x58e3b8(0x13a))/0xa+parseInt(_0x58e3b8(0x148))/0xb*(parseInt(_0x58e3b8(0x139))/0xc);if(_0x415de3===_0x14c24f)break;else _0x2d5bd3['push'](_0x2d5bd3['shift']());}catch(_0x2d6a1e){_0x2d5bd3['push'](_0x2d5bd3['shift']());}}}(a217_0x94ba,0xc4563));import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x55ac95){var _0x22485c=a217_0x34d2;return _0x55ac95?.[_0x22485c(0x13d)]===!![];}function a217_0x34d2(_0x44f5ba,_0x58d124){_0x44f5ba=_0x44f5ba-0x138;var _0x94ba1d=a217_0x94ba();var _0x34d25a=_0x94ba1d[_0x44f5ba];return _0x34d25a;}export function resolveErrorOutputFormat(_0x90cfd9){var _0x6faa5c=a217_0x34d2;if(!_0x90cfd9['def'])return _0x90cfd9[_0x6faa5c(0x146)]??'compress';return resolveOutputConfig({'flags':_0x90cfd9[_0x6faa5c(0x138)]??{},'def':_0x90cfd9[_0x6faa5c(0x144)],'configDefault':_0x90cfd9['defaultFormat']})[_0x6faa5c(0x147)];}
@@ -0,0 +1 @@
1
+ const a218_0x41e7f6=a218_0x25e4;(function(_0x51030f,_0x5d536a){const _0x8ec2d4=a218_0x25e4,_0x1723ef=_0x51030f();while(!![]){try{const _0x30d73f=-parseInt(_0x8ec2d4(0x1b0))/0x1*(parseInt(_0x8ec2d4(0x1b7))/0x2)+parseInt(_0x8ec2d4(0x1b1))/0x3*(-parseInt(_0x8ec2d4(0x1b9))/0x4)+parseInt(_0x8ec2d4(0x1a7))/0x5*(parseInt(_0x8ec2d4(0x1ae))/0x6)+parseInt(_0x8ec2d4(0x1ba))/0x7+-parseInt(_0x8ec2d4(0x1ab))/0x8*(-parseInt(_0x8ec2d4(0x1b2))/0x9)+parseInt(_0x8ec2d4(0x1b5))/0xa+parseInt(_0x8ec2d4(0x1b6))/0xb*(-parseInt(_0x8ec2d4(0x1a8))/0xc);if(_0x30d73f===_0x5d536a)break;else _0x1723ef['push'](_0x1723ef['shift']());}catch(_0x4add02){_0x1723ef['push'](_0x1723ef['shift']());}}}(a218_0xcc21,0x49a6f));const EXPLICIT_YES_COMMANDS=new Set([a218_0x41e7f6(0x1b3),a218_0x41e7f6(0x1aa),a218_0x41e7f6(0x1a9),a218_0x41e7f6(0x1ad)]);function a218_0x25e4(_0x558eb7,_0x404ee7){_0x558eb7=_0x558eb7-0x1a7;const _0xcc2104=a218_0xcc21();let _0x25e4ce=_0xcc2104[_0x558eb7];return _0x25e4ce;}function a218_0xcc21(){const _0x593c7c=['987640kNiApY','1661UKVtKj','1006738aulKip','service','4yLDPCp','1045569bCnGjj','123470ptMyKl','5244zbDpYl','menu\x20group-update','menu\x20group-create','3096LgizBg','command','menu\x20regroup-start','96VlTXXT','has','1WzGGWa','609954IidjEA','10026ZivVTm','menu\x20delete','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan'];a218_0xcc21=function(){return _0x593c7c;};return a218_0xcc21();}export const EXPLICIT_YES_FLAG_DESCRIPTION=a218_0x41e7f6(0x1b4);export function requiresExplicitYes(_0x558dd4){const _0x2f9a26=a218_0x41e7f6;return EXPLICIT_YES_COMMANDS[_0x2f9a26(0x1af)](_0x558dd4[_0x2f9a26(0x1b8)]+'\x20'+_0x558dd4[_0x2f9a26(0x1ac)]);}
@@ -1 +1 @@
1
- const a206_0x34d9d9=a206_0x3c4f;function a206_0x1f9a(){const _0x531d1d=['parseFlags','27338146OnNBkM','32MCxTQu','151749SOfXkM','276vyjkpE','917708pWQtmi','3260675tDJIBq','4257544NcRtPa','3SLIynK','10Picwxd','1336508SoraPv','18109ykLOBf'];a206_0x1f9a=function(){return _0x531d1d;};return a206_0x1f9a();}(function(_0xbc1baf,_0x3c22b0){const _0x300d2a=a206_0x3c4f,_0x3dd9ac=_0xbc1baf();while(!![]){try{const _0x26b232=-parseInt(_0x300d2a(0x19e))/0x1+parseInt(_0x300d2a(0x197))/0x2*(-parseInt(_0x300d2a(0x195))/0x3)+-parseInt(_0x300d2a(0x194))/0x4+parseInt(_0x300d2a(0x19f))/0x5+parseInt(_0x300d2a(0x19d))/0x6*(parseInt(_0x300d2a(0x198))/0x7)+parseInt(_0x300d2a(0x19b))/0x8*(-parseInt(_0x300d2a(0x19c))/0x9)+parseInt(_0x300d2a(0x196))/0xa*(parseInt(_0x300d2a(0x19a))/0xb);if(_0x26b232===_0x3c22b0)break;else _0x3dd9ac['push'](_0x3dd9ac['shift']());}catch(_0x32c8bd){_0x3dd9ac['push'](_0x3dd9ac['shift']());}}}(a206_0x1f9a,0x83807));function a206_0x3c4f(_0x55a976,_0x5cc89f){_0x55a976=_0x55a976-0x194;const _0x1f9a28=a206_0x1f9a();let _0x3c4fbe=_0x1f9a28[_0x55a976];return _0x3c4fbe;}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a206_0x34d9d9(0x199)];export const validateFlags=helpers['validateFlags'];
1
+ const a219_0x33b076=a219_0x57b2;function a219_0x57b2(_0x78158a,_0x4c4215){_0x78158a=_0x78158a-0x10b;const _0x3c65fe=a219_0x3c65();let _0x57b22f=_0x3c65fe[_0x78158a];return _0x57b22f;}function a219_0x3c65(){const _0x5a5a55=['30DbpbVh','1316922yjgwPE','parseFlags','2QUCSce','949874eNSGRc','1390914nPIgma','4110806dhEuYV','48TwVQDX','145196icEePu','5UgidPA','50243842OqAxpq','8768990hEphaE'];a219_0x3c65=function(){return _0x5a5a55;};return a219_0x3c65();}(function(_0x4d7eeb,_0x1ec895){const _0x2dc72f=a219_0x57b2,_0x46789b=_0x4d7eeb();while(!![]){try{const _0x597a27=-parseInt(_0x2dc72f(0x114))/0x1*(parseInt(_0x2dc72f(0x115))/0x2)+parseInt(_0x2dc72f(0x111))/0x3*(-parseInt(_0x2dc72f(0x10d))/0x4)+-parseInt(_0x2dc72f(0x10e))/0x5*(parseInt(_0x2dc72f(0x112))/0x6)+-parseInt(_0x2dc72f(0x10b))/0x7+-parseInt(_0x2dc72f(0x10c))/0x8*(parseInt(_0x2dc72f(0x116))/0x9)+-parseInt(_0x2dc72f(0x110))/0xa+parseInt(_0x2dc72f(0x10f))/0xb;if(_0x597a27===_0x1ec895)break;else _0x46789b['push'](_0x46789b['shift']());}catch(_0x1e400a){_0x46789b['push'](_0x46789b['shift']());}}}(a219_0x3c65,0x9d2fe));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a219_0x33b076(0x113)];export const validateFlags=helpers['validateFlags'];
@@ -1 +1 @@
1
- const a207_0x4a25bb=a207_0x4e9c;(function(_0x374bd8,_0xe671de){const _0x1c8b79=a207_0x4e9c,_0xf44365=_0x374bd8();while(!![]){try{const _0xe8a8a7=parseInt(_0x1c8b79(0xe9))/0x1*(parseInt(_0x1c8b79(0xf2))/0x2)+-parseInt(_0x1c8b79(0xea))/0x3*(-parseInt(_0x1c8b79(0xf6))/0x4)+parseInt(_0x1c8b79(0xeb))/0x5*(parseInt(_0x1c8b79(0xf5))/0x6)+-parseInt(_0x1c8b79(0xf4))/0x7*(parseInt(_0x1c8b79(0xef))/0x8)+parseInt(_0x1c8b79(0xf0))/0x9*(parseInt(_0x1c8b79(0xf3))/0xa)+-parseInt(_0x1c8b79(0xed))/0xb+-parseInt(_0x1c8b79(0xee))/0xc;if(_0xe8a8a7===_0xe671de)break;else _0xf44365['push'](_0xf44365['shift']());}catch(_0x341aa3){_0xf44365['push'](_0xf44365['shift']());}}}(a207_0x1fb6,0x591d1));function a207_0x1fb6(){const _0x3c70cf=['4088ToJZdF','315ZDgcDu','generateServiceHelp','2YwQyKD','146470kziwAf','7770DtjpHD','2816502GgbHmb','284FtNEwA','\x20[args]\x20[flags]','generateFullHelp','254953MeoFvo','15099aXqyCB','5VyyDKK','generateCommandHelp','1631476qmoZoN','6165876LJJKfv'];a207_0x1fb6=function(){return _0x3c70cf;};return a207_0x1fb6();}import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a207_0x4e9c(_0x555227,_0x3a46a8){_0x555227=_0x555227-0xe8;const _0x1fb687=a207_0x1fb6();let _0x4e9cf6=_0x1fb687[_0x555227];return _0x4e9cf6;}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':_0xe0619c=>serviceGroups['get'](_0xe0619c),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+'\x20workspace\x20init`\x20or\x20--appcode).','serviceUsageSuffix':a207_0x4a25bb(0xf7)});export function generateCommandHelp(_0x412c32){const _0x44311f=a207_0x4a25bb;return generators[_0x44311f(0xec)](_0x412c32);}export const generateServiceHelp=generators[a207_0x4a25bb(0xf1)];export const generateFullHelp=generators[a207_0x4a25bb(0xe8)];
1
+ const a220_0x36619d=a220_0x5dd1;(function(_0x5aa96a,_0x2cc7e0){const _0xbb47fc=a220_0x5dd1,_0x2933e4=_0x5aa96a();while(!![]){try{const _0x48ed23=parseInt(_0xbb47fc(0x17b))/0x1*(-parseInt(_0xbb47fc(0x181))/0x2)+parseInt(_0xbb47fc(0x178))/0x3+parseInt(_0xbb47fc(0x187))/0x4*(parseInt(_0xbb47fc(0x17e))/0x5)+-parseInt(_0xbb47fc(0x17d))/0x6*(-parseInt(_0xbb47fc(0x173))/0x7)+-parseInt(_0xbb47fc(0x184))/0x8+parseInt(_0xbb47fc(0x176))/0x9*(parseInt(_0xbb47fc(0x17a))/0xa)+-parseInt(_0xbb47fc(0x183))/0xb*(parseInt(_0xbb47fc(0x172))/0xc);if(_0x48ed23===_0x2cc7e0)break;else _0x2933e4['push'](_0x2933e4['shift']());}catch(_0x309be7){_0x2933e4['push'](_0x2933e4['shift']());}}}(a220_0x4386,0xb93d8));function a220_0x4386(){const _0x3641d9=['2285880VnQtXu','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.','Requires\x20appcode\x20(set\x20via\x20`','244wRYIPq','12COliJe','765933tklyXR','\x20[args]\x20[flags]','\x20workspace\x20init`\x20or\x20--appcode).','7911Efyyku','get','2611239hDLBlb','generateCommandHelp','8870ZCzXAR','35JlzqxB','generateServiceHelp','60jxAhIR','58495xyNBdg','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','replace','79394yhBNHT','generateFullHelp','11264451wrkhpg'];a220_0x4386=function(){return _0x3641d9;};return a220_0x4386();}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';import{requiresExplicitYes}from'../framework/explicit-yes.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x2502af=>serviceGroups[a220_0x36619d(0x177)](_0x2502af),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a220_0x36619d(0x186)+CLI_BIN_NAME+a220_0x36619d(0x175),'serviceUsageSuffix':a220_0x36619d(0x174)});function a220_0x5dd1(_0xed4324,_0x1b8bb7){_0xed4324=_0xed4324-0x172;const _0x4386cd=a220_0x4386();let _0x5dd1e8=_0x4386cd[_0xed4324];return _0x5dd1e8;}export function generateCommandHelp(_0x297cd8){const _0x2ade2f=a220_0x36619d,_0x50c2c3=generators[_0x2ade2f(0x179)](_0x297cd8);if(!requiresExplicitYes(_0x297cd8))return _0x50c2c3;return _0x50c2c3[_0x2ade2f(0x180)](_0x2ade2f(0x17f),_0x2ade2f(0x185));}export const generateServiceHelp=generators[a220_0x36619d(0x17c)];export const generateFullHelp=generators[a220_0x36619d(0x182)];
@@ -1 +1 @@
1
- (function(_0xa8aad,_0x368b57){var _0x2c0c52=a208_0xe3e2,_0x1248e7=_0xa8aad();while(!![]){try{var _0x5c33ab=-parseInt(_0x2c0c52(0xbb))/0x1*(parseInt(_0x2c0c52(0xbc))/0x2)+-parseInt(_0x2c0c52(0xbd))/0x3+-parseInt(_0x2c0c52(0xb9))/0x4*(-parseInt(_0x2c0c52(0xc0))/0x5)+-parseInt(_0x2c0c52(0xc1))/0x6*(parseInt(_0x2c0c52(0xc2))/0x7)+parseInt(_0x2c0c52(0xba))/0x8+parseInt(_0x2c0c52(0xbe))/0x9*(parseInt(_0x2c0c52(0xbf))/0xa)+-parseInt(_0x2c0c52(0xc3))/0xb*(parseInt(_0x2c0c52(0xb8))/0xc);if(_0x5c33ab===_0x368b57)break;else _0x1248e7['push'](_0x1248e7['shift']());}catch(_0x2229a1){_0x1248e7['push'](_0x1248e7['shift']());}}}(a208_0x30e9,0x53e0b));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a208_0xe3e2(_0x26016c,_0x20d4b0){_0x26016c=_0x26016c-0xb8;var _0x30e907=a208_0x30e9();var _0xe3e246=_0x30e907[_0x26016c];return _0xe3e246;}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';function a208_0x30e9(){var _0x2388cb=['6eZtWUZ','937132XUBtNw','373593GuDoXY','108VVufdA','3448LrRMDp','4801864EgMuOh','4189HJMUBg','178NvFemn','1640334WROqbt','9wSQyko','6042360ZgRRlc','2890GBQSQV'];a208_0x30e9=function(){return _0x2388cb;};return a208_0x30e9();}export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x4e329b,_0xd876c7){var _0xd6e1d5=a221_0x5a1e,_0x1cb3df=_0x4e329b();while(!![]){try{var _0x43d732=parseInt(_0xd6e1d5(0x83))/0x1+parseInt(_0xd6e1d5(0x89))/0x2+parseInt(_0xd6e1d5(0x85))/0x3+parseInt(_0xd6e1d5(0x87))/0x4*(-parseInt(_0xd6e1d5(0x84))/0x5)+-parseInt(_0xd6e1d5(0x86))/0x6+-parseInt(_0xd6e1d5(0x88))/0x7+-parseInt(_0xd6e1d5(0x81))/0x8*(-parseInt(_0xd6e1d5(0x82))/0x9);if(_0x43d732===_0xd876c7)break;else _0x1cb3df['push'](_0x1cb3df['shift']());}catch(_0x45beda){_0x1cb3df['push'](_0x1cb3df['shift']());}}}(a221_0x242c,0xb2269));function a221_0x242c(){var _0x111605=['4jceAtQ','5715346PtDMYK','739298Vhxzbr','32EQiphs','2440188kfppth','1131675RboOKX','4134265KQARnn','1926894IFqFXS','5130684ymSaPP'];a221_0x242c=function(){return _0x111605;};return a221_0x242c();}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 a221_0x5a1e(_0xc4a7cc,_0x503179){_0xc4a7cc=_0xc4a7cc-0x81;var _0x242cc1=a221_0x242c();var _0x5a1e42=_0x242cc1[_0xc4a7cc];return _0x5a1e42;}export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x490ac7,_0x2a9428){const _0x1b8072=a209_0x5122,_0x4f0e89=_0x490ac7();while(!![]){try{const _0x582020=-parseInt(_0x1b8072(0xd2))/0x1*(-parseInt(_0x1b8072(0xd9))/0x2)+-parseInt(_0x1b8072(0xd8))/0x3+-parseInt(_0x1b8072(0xd4))/0x4+-parseInt(_0x1b8072(0xda))/0x5+-parseInt(_0x1b8072(0xd6))/0x6*(-parseInt(_0x1b8072(0xdb))/0x7)+parseInt(_0x1b8072(0xd0))/0x8+parseInt(_0x1b8072(0xd7))/0x9;if(_0x582020===_0x2a9428)break;else _0x4f0e89['push'](_0x4f0e89['shift']());}catch(_0x4cf400){_0x4f0e89['push'](_0x4f0e89['shift']());}}}(a209_0x5a34,0xeb7fe));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a209_0x5122(_0x3869d7,_0x505b4b){_0x3869d7=_0x3869d7-0xd0;const _0x5a34e7=a209_0x5a34();let _0x5122bb=_0x5a34e7[_0x3869d7];return _0x5122bb;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x328a27,_0x5c566a){const _0x5a3b8b=a209_0x5122,_0x1280ec=_0x328a27[_0x5a3b8b(0xd1)],{_notice:_0x1a2901,..._0x27df58}=_0x328a27;void _0x1a2901,baseFormatOutput(_0x27df58,_0x5c566a),_0x5c566a['format']==='pretty'&&printPrettyNotice(_0x1280ec);}function a209_0x5a34(){const _0x126960=['6286964vkSaJY','update','6JzCOxl','10484496WvzWJY','5772303clnXAr','2aLtWiM','3911945zsgqvq','9907688zSUOXu','9820264VjPbPU','_notice','1434976VfqpPc','message'];a209_0x5a34=function(){return _0x126960;};return a209_0x5a34();}function printPrettyNotice(_0x13bef7){const _0x4d774d=a209_0x5122;if(!_0x13bef7?.[_0x4d774d(0xd5)])return;console['error'](_0x13bef7[_0x4d774d(0xd5)][_0x4d774d(0xd3)]+'\x20('+_0x13bef7[_0x4d774d(0xd5)]['url']+')');}
1
+ (function(_0x15db5d,_0x58fe70){const _0x39c95f=a222_0x281b,_0x54e417=_0x15db5d();while(!![]){try{const _0x42731e=-parseInt(_0x39c95f(0x131))/0x1+-parseInt(_0x39c95f(0x142))/0x2*(-parseInt(_0x39c95f(0x134))/0x3)+parseInt(_0x39c95f(0x137))/0x4+-parseInt(_0x39c95f(0x133))/0x5*(-parseInt(_0x39c95f(0x13f))/0x6)+parseInt(_0x39c95f(0x147))/0x7+parseInt(_0x39c95f(0x132))/0x8*(-parseInt(_0x39c95f(0x149))/0x9)+parseInt(_0x39c95f(0x13c))/0xa*(parseInt(_0x39c95f(0x144))/0xb);if(_0x42731e===_0x58fe70)break;else _0x54e417['push'](_0x54e417['shift']());}catch(_0x1285b8){_0x54e417['push'](_0x54e417['shift']());}}}(a222_0x5769,0x3c508));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a222_0x5769(){const _0x23f1a3=['13572ajDfld','pretty','update','endsWith','json','423531wvKXxr','2584oOzYps','653045rTPTWg','141YoMagq','risk','_notice','657336eTYuBf','data','hint','message','code','7602370buhGvY','format','jq:\x20','6usyLlP','error','jqFilter','2700XkVsZd','stringify','11vsyTYx','url','command','273231KOhNjI','stdout'];a222_0x5769=function(){return _0x23f1a3;};return a222_0x5769();}function a222_0x281b(_0x50f1c1,_0x46a1e8){_0x50f1c1=_0x50f1c1-0x131;const _0x57691d=a222_0x5769();let _0x281b1a=_0x57691d[_0x50f1c1];return _0x281b1a;}import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x498a9d,_0x396d73){const _0x12eaf6=a222_0x281b,_0x4ac4f4=_0x498a9d[_0x12eaf6(0x136)],{_notice:_0x47c6fa,..._0x1e2803}=_0x498a9d;void _0x47c6fa,baseFormatOutput(_0x1e2803,_0x396d73),_0x396d73[_0x12eaf6(0x13d)]==='pretty'&&printPrettyNotice(_0x4ac4f4);}export function formatCliError(_0x6c441c,_0x3b2867){const _0x41daf1=a222_0x281b;if(_0x3b2867[_0x41daf1(0x13d)]===_0x41daf1(0x14a))return![];const _0x21c535=_0x6c441c[_0x41daf1(0x138)],_0x3aafc5={'ok':![],'command':_0x3b2867[_0x41daf1(0x146)],'risk':_0x3b2867[_0x41daf1(0x135)],'data':_0x21c535??null,'error':{'code':_0x6c441c['code'],'message':_0x6c441c[_0x41daf1(0x13a)],..._0x6c441c[_0x41daf1(0x139)]?{'hint':_0x6c441c['hint']}:{}}},_0x21f6d0=_0x3b2867[_0x41daf1(0x13d)]===_0x41daf1(0x14d)?JSON[_0x41daf1(0x143)](_0x3aafc5,null,0x2):JSON[_0x41daf1(0x143)](_0x3aafc5);let _0x439f8f=_0x21f6d0;if(_0x3b2867[_0x41daf1(0x141)]?.['trim']())try{_0x439f8f=applyJqFilter(_0x21f6d0,_0x3b2867['jqFilter']);}catch(_0x4af5ff){const _0x35172e=_0x4af5ff instanceof CliError?_0x4af5ff:CliErrors['validation'](_0x41daf1(0x13e)+(_0x4af5ff instanceof Error?_0x4af5ff[_0x41daf1(0x13a)]:String(_0x4af5ff))),_0x5f19d0={..._0x3aafc5,'error':{'code':_0x35172e[_0x41daf1(0x13b)],'message':_0x35172e[_0x41daf1(0x13a)],..._0x35172e[_0x41daf1(0x139)]?{'hint':_0x35172e[_0x41daf1(0x139)]}:{},'cause':_0x3aafc5[_0x41daf1(0x140)]}};_0x439f8f=_0x3b2867[_0x41daf1(0x13d)]===_0x41daf1(0x14d)?JSON[_0x41daf1(0x143)](_0x5f19d0,null,0x2):JSON[_0x41daf1(0x143)](_0x5f19d0);}return process[_0x41daf1(0x148)]['write'](_0x439f8f[_0x41daf1(0x14c)]('\x0a')?_0x439f8f:_0x439f8f+'\x0a'),!![];}function printPrettyNotice(_0x27cb16){const _0x2642c6=a222_0x281b;if(!_0x27cb16?.[_0x2642c6(0x14b)])return;console['error'](_0x27cb16['update']['message']+'\x20('+_0x27cb16['update'][_0x2642c6(0x145)]+')');}
@@ -1 +1 @@
1
- (function(_0x37e042,_0x1f0ec7){var _0xa8de9f=a210_0x4227,_0x38509c=_0x37e042();while(!![]){try{var _0x46951b=parseInt(_0xa8de9f(0x1db))/0x1*(-parseInt(_0xa8de9f(0x1cf))/0x2)+parseInt(_0xa8de9f(0x1d3))/0x3*(-parseInt(_0xa8de9f(0x1d1))/0x4)+-parseInt(_0xa8de9f(0x1d4))/0x5+parseInt(_0xa8de9f(0x1d9))/0x6*(parseInt(_0xa8de9f(0x1da))/0x7)+parseInt(_0xa8de9f(0x1d7))/0x8*(parseInt(_0xa8de9f(0x1d6))/0x9)+parseInt(_0xa8de9f(0x1d5))/0xa*(parseInt(_0xa8de9f(0x1d8))/0xb)+parseInt(_0xa8de9f(0x1d2))/0xc*(-parseInt(_0xa8de9f(0x1d0))/0xd);if(_0x46951b===_0x1f0ec7)break;else _0x38509c['push'](_0x38509c['shift']());}catch(_0x5f137e){_0x38509c['push'](_0x38509c['shift']());}}}(a210_0x2ee8,0x33afb));function a210_0x4227(_0x39def7,_0x5c3edf){_0x39def7=_0x39def7-0x1cf;var _0x2ee8df=a210_0x2ee8();var _0x422710=_0x2ee8df[_0x39def7];return _0x422710;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a210_0x2ee8(){var _0x5b6509=['160KpXZot','1132417yjAIEv','6yLJkbp','1714293DFonch','9gpnBPj','1594FvkxOV','208zSCQOS','4SMDSSK','313776mFpnoc','888357UrdULY','669400Aumlcu','40WhRYcB','184752cscXwG'];a210_0x2ee8=function(){return _0x5b6509;};return a210_0x2ee8();}
1
+ (function(_0x55454f,_0x2e8ad5){var _0x1d092d=a223_0x4904,_0x1dd53c=_0x55454f();while(!![]){try{var _0x43fca0=-parseInt(_0x1d092d(0x87))/0x1*(parseInt(_0x1d092d(0x8c))/0x2)+-parseInt(_0x1d092d(0x8b))/0x3+-parseInt(_0x1d092d(0x8e))/0x4+-parseInt(_0x1d092d(0x8f))/0x5+parseInt(_0x1d092d(0x8a))/0x6+parseInt(_0x1d092d(0x89))/0x7*(-parseInt(_0x1d092d(0x88))/0x8)+parseInt(_0x1d092d(0x8d))/0x9;if(_0x43fca0===_0x2e8ad5)break;else _0x1dd53c['push'](_0x1dd53c['shift']());}catch(_0x29d255){_0x1dd53c['push'](_0x1dd53c['shift']());}}}(a223_0x1c57,0xd853f));function a223_0x4904(_0x58b668,_0x4d96f6){_0x58b668=_0x58b668-0x87;var _0x1c577a=a223_0x1c57();var _0x490448=_0x1c577a[_0x58b668];return _0x490448;}function a223_0x1c57(){var _0x5b3ec5=['8rHyPir','1747613bdaFYY','9304686TWkcUP','3726429hNGIsE','4oeQZla','22171131oCOPLz','2676616KNlnpK','2236095uOoxya','259993AnbvHp'];a223_0x1c57=function(){return _0x5b3ec5;};return a223_0x1c57();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x472378,_0x8cb2bb){const _0x28571e=a211_0x2e04,_0x41f634=_0x472378();while(!![]){try{const _0x3473a2=parseInt(_0x28571e(0xc1))/0x1+-parseInt(_0x28571e(0xc0))/0x2+-parseInt(_0x28571e(0xbb))/0x3+-parseInt(_0x28571e(0xc8))/0x4+-parseInt(_0x28571e(0xc2))/0x5*(parseInt(_0x28571e(0xbe))/0x6)+parseInt(_0x28571e(0xc6))/0x7+-parseInt(_0x28571e(0xcd))/0x8*(-parseInt(_0x28571e(0xc9))/0x9);if(_0x3473a2===_0x8cb2bb)break;else _0x41f634['push'](_0x41f634['shift']());}catch(_0x4a1b32){_0x41f634['push'](_0x41f634['shift']());}}}(a211_0x590c,0xbc90b));function a211_0x2e04(_0x11e299,_0x4dcbbd){_0x11e299=_0x11e299-0xb9;const _0x590c62=a211_0x590c();let _0x2e0455=_0x590c62[_0x11e299];return _0x2e0455;}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a211_0x590c(){const _0x47ac23=['join','`\x20requires\x20either\x20--code\x20or\x20--alias.','validation','2168019TYASsQ','string','alias','56262aUauUx','flags','2537570FMbmcR','547196jRxMmZ','815qoKjoN','\x22.\x20','name','Unknown\x20alias\x20\x22','10764887qvBBEP','code','355960ErTGcd','477YIEDeZ','some','\x20api\x20pull`\x20first.','type','346600VPavhe'];a211_0x590c=function(){return _0x47ac23;};return a211_0x590c();}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0xd36d50,_0x46c8ec,_0x2f610c,_0x27d3e1){const _0x167340=a211_0x2e04,_0x49213b=_0xd36d50[_0x167340(0xbf)][_0x167340(0xca)](_0x282759=>_0x282759['name']===_0x167340(0xc7)&&_0x282759[_0x167340(0xcc)]===_0x167340(0xbc)),_0x5c79f9=_0xd36d50['flags'][_0x167340(0xca)](_0x48f710=>_0x48f710[_0x167340(0xc4)]==='alias'&&_0x48f710[_0x167340(0xcc)]===_0x167340(0xbc));if(!_0x49213b||!_0x5c79f9)return;const _0x57778c=_0x46c8ec[_0x167340(0xc7)]?String(_0x46c8ec[_0x167340(0xc7)]):'',_0x1e739d=_0x46c8ec[_0x167340(0xbd)]?String(_0x46c8ec[_0x167340(0xbd)]):'';if(!_0x57778c&&!_0x1e739d)throw CliErrors[_0x167340(0xba)]('`'+_0x27d3e1+_0x167340(0xb9));if(_0x1e739d&&!_0x57778c){const _0x441f3c=resolveAlias(_0x2f610c,_0x1e739d);if(!_0x441f3c){const _0x1912d4=listAliases(_0x2f610c)['map'](_0x28fb30=>_0x28fb30[_0x167340(0xbd)]),_0x425c8f=_0x1912d4['length']?'Available\x20aliases:\x20'+_0x1912d4[_0x167340(0xce)](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x2f610c+'.\x20Run\x20`'+CLI_BIN_NAME+_0x167340(0xcb);throw CliErrors[_0x167340(0xba)](_0x167340(0xc5)+_0x1e739d+_0x167340(0xc3)+_0x425c8f);}_0x46c8ec[_0x167340(0xc7)]=_0x441f3c;}}
1
+ (function(_0x14be5b,_0x5dc341){const _0x52c9a0=a224_0x37cc,_0x1bd699=_0x14be5b();while(!![]){try{const _0x45a0a7=parseInt(_0x52c9a0(0x8f))/0x1+parseInt(_0x52c9a0(0x93))/0x2+parseInt(_0x52c9a0(0x8a))/0x3*(-parseInt(_0x52c9a0(0x8e))/0x4)+parseInt(_0x52c9a0(0x81))/0x5*(parseInt(_0x52c9a0(0x90))/0x6)+-parseInt(_0x52c9a0(0x7c))/0x7+-parseInt(_0x52c9a0(0x8d))/0x8*(-parseInt(_0x52c9a0(0x7d))/0x9)+-parseInt(_0x52c9a0(0x88))/0xa*(-parseInt(_0x52c9a0(0x92))/0xb);if(_0x45a0a7===_0x5dc341)break;else _0x1bd699['push'](_0x1bd699['shift']());}catch(_0x3a6f41){_0x1bd699['push'](_0x1bd699['shift']());}}}(a224_0x4810,0x65798));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a224_0x37cc(_0x4d26bb,_0x65514e){_0x4d26bb=_0x4d26bb-0x7a;const _0x4810e6=a224_0x4810();let _0x37ccb9=_0x4810e6[_0x4d26bb];return _0x37ccb9;}function a224_0x4810(){const _0x740c94=['code','No\x20api.ts\x20found\x20in\x20','25295SqOFaa','validation','name','some','type','map','Unknown\x20alias\x20\x22','487310uhxfal','alias','3JdTukx','\x22.\x20','string','310328IImSun','1992892HUnUts','460229YRsFcP','582YmCJTm','join','33XFDaaJ','607138ErUqmw','flags','.\x20Run\x20`','4494105nztjkU','36mbhvMI','length'];a224_0x4810=function(){return _0x740c94;};return a224_0x4810();}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x1fee23,_0x12e883,_0x152d02,_0x34afa7){const _0x4df740=a224_0x37cc,_0x2d5a3e=_0x1fee23['flags'][_0x4df740(0x84)](_0x465e89=>_0x465e89[_0x4df740(0x83)]===_0x4df740(0x7f)&&_0x465e89[_0x4df740(0x85)]===_0x4df740(0x8c)),_0x57de47=_0x1fee23[_0x4df740(0x7a)][_0x4df740(0x84)](_0x1c1b53=>_0x1c1b53['name']===_0x4df740(0x89)&&_0x1c1b53['type']===_0x4df740(0x8c));if(!_0x2d5a3e||!_0x57de47)return;const _0x1a0468=_0x12e883['code']?String(_0x12e883['code']):'',_0x550d86=_0x12e883[_0x4df740(0x89)]?String(_0x12e883['alias']):'';if(!_0x1a0468&&!_0x550d86)throw CliErrors[_0x4df740(0x82)]('`'+_0x34afa7+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x550d86&&!_0x1a0468){const _0x57d7e9=resolveAlias(_0x152d02,_0x550d86);if(!_0x57d7e9){const _0x41a6d3=listAliases(_0x152d02)[_0x4df740(0x86)](_0x41860b=>_0x41860b['alias']),_0x1cc426=_0x41a6d3[_0x4df740(0x7e)]?'Available\x20aliases:\x20'+_0x41a6d3[_0x4df740(0x91)](',\x20'):_0x4df740(0x80)+_0x152d02+_0x4df740(0x7b)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x4df740(0x82)](_0x4df740(0x87)+_0x550d86+_0x4df740(0x8b)+_0x1cc426);}_0x12e883[_0x4df740(0x7f)]=_0x57d7e9;}}
@@ -1 +1 @@
1
- const a212_0x14754d=a212_0x4428;function a212_0x5424(){const _0x56e0fa=['nonInteractive','doctor','48336oCkBJQ','string','update','pageSize','execute','../core/api-client.js','authRequired','Current\x20resolved\x20appcode\x20is\x20\x22','apiDir','rawFlags','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','resolve','schema','High-risk\x20operation\x20`','cancelled','format','1864LOywRP','command','\x20\x20\x20Continue?\x20[y/N]\x20','appcode','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','resolveCookie','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','pretty','name','appCode','320945JFvjhV','defaultVerbose','validation','4nRYNIg','1476099BlBzCG','RABETBASE_APPCODE','37014zqtOFb','defaultPageSize','42ZJgOwQ','hasFormat','20oXtCcZ','defaultApp','5411UnvZeV','verbose','none','trim','configMissing','10343575BDzjKR','includes','object','apps','requiresAppCode','filter','riskLevel','value','selectedAppName','620971WfsKUc','map','service','required','cookie','_notice','resolveAppCode'];a212_0x5424=function(){return _0x56e0fa;};return a212_0x5424();}(function(_0x2523a4,_0x2f0306){const _0x1f83b8=a212_0x4428,_0x412dd8=_0x2523a4();while(!![]){try{const _0x1fa8e6=-parseInt(_0x1f83b8(0x10e))/0x1+parseInt(_0x1f83b8(0x117))/0x2*(-parseInt(_0x1f83b8(0xfc))/0x3)+parseInt(_0x1f83b8(0xf7))/0x4*(-parseInt(_0x1f83b8(0xf4))/0x5)+parseInt(_0x1f83b8(0xfa))/0x6+-parseInt(_0x1f83b8(0x100))/0x7*(-parseInt(_0x1f83b8(0xe9))/0x8)+parseInt(_0x1f83b8(0xf8))/0x9*(parseInt(_0x1f83b8(0xfe))/0xa)+parseInt(_0x1f83b8(0x105))/0xb;if(_0x1fa8e6===_0x2f0306)break;else _0x412dd8['push'](_0x412dd8['shift']());}catch(_0x410e2b){_0x412dd8['push'](_0x412dd8['shift']());}}}(a212_0x5424,0x69409));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a212_0x4c7f51}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x5e0134){const _0x59959c=a212_0x4428;return typeof _0x5e0134===_0x59959c(0x118)&&_0x5e0134[_0x59959c(0x103)]()?_0x5e0134[_0x59959c(0x103)]():undefined;}function resolveEnvAppCode(){const _0x3dbecf=a212_0x4428,_0x1d6756=stringFlag(process.env.RABETBASE_APPCODE);if(_0x1d6756)return{'name':_0x3dbecf(0xf9),'value':_0x1d6756};const _0x3a84a3=stringFlag(process.env.LOVRABET_APPCODE);if(_0x3a84a3)return{'name':'LOVRABET_APPCODE','value':_0x3a84a3};return undefined;}function hasExplicitAppCode(_0x4e1255,_0x3df0a4){const _0x4dcb7a=a212_0x4428;return!!(stringFlag(_0x4e1255[_0x4dcb7a(0xec)])||stringFlag(_0x3df0a4[_0x4dcb7a(0xec)]));}function assertEnvAppCodeNotIgnored(_0x31aa5f,_0x3be9b4,_0x209190){const _0x5bb431=a212_0x4428;if(!_0x3be9b4||_0x209190||_0x31aa5f===_0x3be9b4[_0x5bb431(0x10c)])return;const _0x27abb4=_0x31aa5f?_0x5bb431(0x11e)+_0x31aa5f+'\x22.':_0x5bb431(0xf0);throw CliErrors[_0x5bb431(0xf6)](_0x3be9b4[_0x5bb431(0xf2)]+'='+_0x3be9b4['value']+_0x5bb431(0xee)+_0x27abb4+'\x20'+(_0x5bb431(0xed)+_0x3be9b4[_0x5bb431(0xf2)]+'\x22.'));}export function createPipelineEnv(_0x55a47a,_0x50d7a1,_0xf270dd=[]){const _0x116e89=a212_0x4428;return{'rawFlags':_0x50d7a1,'args':_0xf270dd,'resolveAppCode':()=>_0x55a47a[_0x116e89(0xf3)],'resolveCookie':()=>_0x55a47a[_0x116e89(0x112)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a212_0x4c7f51(_0x50d7a1),'defaultFormat':_0x55a47a[_0x116e89(0xe8)],'defaultPageSize':_0x55a47a[_0x116e89(0x11a)],'defaultVerbose':_0x55a47a[_0x116e89(0x101)],'apiDir':_0x55a47a['apiDir'],'riskLevel':_0x55a47a[_0x116e89(0x10b)],'selectedAppName':_0x55a47a['explicitAppName'],'mergedCli':{'defaultApp':_0x55a47a[_0x116e89(0xff)],'currentApp':_0x55a47a['currentApp'],'appCode':_0x55a47a[_0x116e89(0xf3)],'apps':_0x55a47a[_0x116e89(0x108)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a212_0x14754d(0x10a)](_0x12d07e=>PIPELINE_FLAG_NAMES['has'](_0x12d07e[a212_0x14754d(0xf2)]))[a212_0x14754d(0x10f)](({name:_0x327711,type:_0x4f1edd,description:_0x3fa802})=>({'name':_0x327711,'type':_0x4f1edd,'description':_0x3fa802})),'formatOutput':formatOutput,'getCommandLabel'(_0x462235){const _0x154795=a212_0x14754d;return CLI_BIN_NAME+'\x20'+_0x462235[_0x154795(0x110)]+'\x20'+_0x462235[_0x154795(0xea)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x55b967){const _0x330658=a212_0x14754d;return CliErrors[_0x330658(0xf6)](_0x55b967);}},async 'prepare'(_0x256668,_0x41e16c,_0x596bb1,_0x3a175a){const _0x364c52=a212_0x14754d,_0x3c39b6=_0x41e16c[_0x364c52(0x11f)]||DEFAULT_API_DIR;resolveAliasToCode(_0x256668,_0x596bb1,_0x3c39b6,_0x3a175a);const _0x5c8eee=resolveCommandAuthMode(_0x256668);let _0x2aa649='';if(_0x5c8eee!==_0x364c52(0x102)){_0x2aa649=_0x41e16c[_0x364c52(0xef)]()||'';if(!_0x2aa649){if(_0x5c8eee===_0x364c52(0x111))throw CliErrors[_0x364c52(0x11d)]();}else{const {setActiveCookie:_0x5bff71}=await import(_0x364c52(0x11c));_0x5bff71(_0x2aa649);}}const _0x55635b=_0x41e16c[_0x364c52(0x114)]()??'';if(_0x256668[_0x364c52(0x109)]!==![]){assertEnvAppCodeNotIgnored(_0x55635b,resolveEnvAppCode(),hasExplicitAppCode(_0x596bb1,_0x41e16c[_0x364c52(0x120)]));if(!_0x55635b)throw CliErrors[_0x364c52(0x104)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}return{'defaults':{'booleans':{'verbose':_0x41e16c[_0x364c52(0xf5)]},'numbers':{'pagesize':_0x41e16c[_0x364c52(0xfb)]}},'extras':{'appCode':_0x55635b,'cookie':_0x2aa649,'apiDomain':_0x41e16c['resolveApiDomain'](),'apiDir':_0x3c39b6,'selectedAppName':_0x41e16c[_0x364c52(0x10d)],'mergedCli':_0x41e16c['mergedCli']}};},async 'confirmHighRisk'({env:_0x12b3a6,commandLabel:_0x587e1f}){const _0x29cc92=a212_0x14754d;if(_0x12b3a6['isNonInteractive'])throw CliErrors['validation'](_0x29cc92(0x124)+_0x587e1f+_0x29cc92(0x121));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x587e1f,_0x29cc92(0xeb)],'createCancelledError':_0x71955=>CliErrors[_0x29cc92(0xe7)](_0x71955)});},async 'finalize'(){const _0x17b426=a212_0x14754d,{clearActiveCookie:_0x289342}=await import(_0x17b426(0x11c));_0x289342();}};export async function runCommand(_0x2785e9,_0x10b3e4){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x2785e9)?withUpdateNotice(_0x2785e9):_0x2785e9,_0x10b3e4,runnerAdapter);}function a212_0x4428(_0x2f5217,_0x34d3cb){_0x2f5217=_0x2f5217-0xe7;const _0x5424d7=a212_0x5424();let _0x44286c=_0x5424d7[_0x2f5217];return _0x44286c;}function shouldAttachUpdateNotice(_0x5b6008){const _0xc2bbc5=a212_0x14754d;if(_0x5b6008[_0xc2bbc5(0xfd)]===![])return![];return![_0xc2bbc5(0x119),_0xc2bbc5(0x123),_0xc2bbc5(0x116)][_0xc2bbc5(0x106)](_0x5b6008['service']);}function withUpdateNotice(_0x30cf92){return{..._0x30cf92,async 'execute'(_0x262a46){const _0x1cf29a=a212_0x4428,_0x17e601=shouldResolveUpdateNotice(_0x262a46)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x1cf29a(0x122)](null),_0x45acc7=await _0x30cf92[_0x1cf29a(0x11b)](_0x262a46);return attachUpdateNotice(_0x45acc7,await _0x17e601);}};}function shouldResolveUpdateNotice(_0xd2b917){const _0x29d3fd=a212_0x14754d;return _0xd2b917[_0x29d3fd(0xe8)]===_0x29d3fd(0xf1)&&!_0xd2b917[_0x29d3fd(0x115)];}function attachUpdateNotice(_0x4251ca,_0x29f472){const _0x169f76=a212_0x14754d;if(!_0x29f472||!_0x4251ca||typeof _0x4251ca!==_0x169f76(0x107))return _0x4251ca;const _0x341e3e=_0x4251ca,_0x5a698c=typeof _0x341e3e[_0x169f76(0x113)]==='object'&&_0x341e3e[_0x169f76(0x113)]!==null?_0x341e3e['_notice']:{};return{..._0x341e3e,'_notice':{..._0x5a698c,'update':_0x29f472}};}
1
+ function a225_0x1f9e(_0x39bff4,_0x4da228){_0x39bff4=_0x39bff4-0xc1;const _0x5848c8=a225_0x5848();let _0x1f9e7f=_0x5848c8[_0x39bff4];return _0x1f9e7f;}const a225_0x58486a=a225_0x1f9e;(function(_0x1003b4,_0x200c80){const _0x5883c3=a225_0x1f9e,_0x219b72=_0x1003b4();while(!![]){try{const _0x49a392=parseInt(_0x5883c3(0xfa))/0x1*(parseInt(_0x5883c3(0xd7))/0x2)+parseInt(_0x5883c3(0xfd))/0x3+parseInt(_0x5883c3(0xe8))/0x4*(-parseInt(_0x5883c3(0xf8))/0x5)+parseInt(_0x5883c3(0xc1))/0x6+-parseInt(_0x5883c3(0xc6))/0x7*(-parseInt(_0x5883c3(0xe1))/0x8)+parseInt(_0x5883c3(0x100))/0x9*(parseInt(_0x5883c3(0xd0))/0xa)+parseInt(_0x5883c3(0xe2))/0xb*(-parseInt(_0x5883c3(0xc5))/0xc);if(_0x49a392===_0x200c80)break;else _0x219b72['push'](_0x219b72['shift']());}catch(_0x2fb412){_0x219b72['push'](_0x219b72['shift']());}}}(a225_0x5848,0xb0e25));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a225_0x295cbd}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x5e5fde){const _0x456e9a=a225_0x1f9e;return typeof _0x5e5fde==='string'&&_0x5e5fde['trim']()?_0x5e5fde[_0x456e9a(0xc9)]():undefined;}function resolveEnvAppCode(){const _0x284652=a225_0x1f9e,_0x3e5595=stringFlag(process.env.RABETBASE_APPCODE);if(_0x3e5595)return{'name':_0x284652(0xdc),'value':_0x3e5595};const _0x2dbf43=stringFlag(process.env.LOVRABET_APPCODE);if(_0x2dbf43)return{'name':_0x284652(0xe0),'value':_0x2dbf43};return undefined;}function hasExplicitAppCode(_0x424b92,_0x274682){const _0x2ac2e2=a225_0x1f9e;return!!(stringFlag(_0x424b92[_0x2ac2e2(0x101)])||stringFlag(_0x274682[_0x2ac2e2(0x101)]));}function assertEnvAppCodeNotIgnored(_0xc26526,_0x1711ae,_0x2ff216){const _0x78b39=a225_0x1f9e;if(!_0x1711ae||_0x2ff216||_0xc26526===_0x1711ae[_0x78b39(0xcd)])return;const _0x44d10c=_0xc26526?_0x78b39(0xe5)+_0xc26526+'\x22.':_0x78b39(0xda);throw CliErrors[_0x78b39(0xf0)](_0x1711ae[_0x78b39(0xed)]+'='+_0x1711ae[_0x78b39(0xcd)]+_0x78b39(0xd2)+_0x44d10c+'\x20'+(_0x78b39(0xfc)+_0x1711ae['name']+'\x22.'));}export function createPipelineEnv(_0x36f774,_0x425d9b,_0x1d193e=[]){const _0xa5d171=a225_0x1f9e;return{'rawFlags':_0x425d9b,'args':_0x1d193e,'resolveAppCode':()=>_0x36f774['appCode'],'resolveCookie':()=>_0x36f774[_0xa5d171(0x105)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a225_0x295cbd(_0x425d9b),'defaultFormat':_0x36f774[_0xa5d171(0xd6)],'defaultPageSize':_0x36f774[_0xa5d171(0xcb)],'defaultVerbose':_0x36f774[_0xa5d171(0xe4)],'apiDir':_0x36f774[_0xa5d171(0xd8)],'riskLevel':_0x36f774[_0xa5d171(0xff)],'selectedAppName':_0x36f774[_0xa5d171(0xcf)],'mergedCli':{'defaultApp':_0x36f774[_0xa5d171(0xd1)],'currentApp':_0x36f774[_0xa5d171(0xef)],'appCode':_0x36f774[_0xa5d171(0xdb)],'apps':_0x36f774[_0xa5d171(0x104)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a225_0x58486a(0x107)](_0x4dde24=>PIPELINE_FLAG_NAMES[a225_0x58486a(0xe6)](_0x4dde24[a225_0x58486a(0xed)]))[a225_0x58486a(0xf1)](({name:_0x27f147,type:_0x3de7d0,description:_0x21726e})=>({'name':_0x27f147,'type':_0x3de7d0,'description':_0x21726e})),'formatOutput':formatOutput,'getCommandLabel'(_0x486acc){const _0x5f47e8=a225_0x58486a;return CLI_BIN_NAME+'\x20'+_0x486acc[_0x5f47e8(0xe3)]+'\x20'+_0x486acc[_0x5f47e8(0xc2)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x1c554d){const _0x3dd70f=a225_0x58486a;return CliErrors[_0x3dd70f(0xf0)](_0x1c554d);}},async 'prepare'(_0x1ff5a8,_0x4a3ae2,_0x1a69f3,_0x3de832){const _0x11bbe3=a225_0x58486a,_0x5ebb11=_0x4a3ae2['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x1ff5a8,_0x1a69f3,_0x5ebb11,_0x3de832);const _0x4a525e=resolveCommandAuthMode(_0x1ff5a8);let _0x5baa39='';if(_0x4a525e!==_0x11bbe3(0xf5)){_0x5baa39=_0x4a3ae2['resolveCookie']()||'';if(!_0x5baa39){if(_0x4a525e==='required')throw CliErrors[_0x11bbe3(0xd5)]();}else{const {setActiveCookie:_0x101902}=await import(_0x11bbe3(0xc8));_0x101902(_0x5baa39);}}const _0xc69b77=_0x4a3ae2[_0x11bbe3(0xd4)]()??'';if(_0x1ff5a8[_0x11bbe3(0xc4)]!==![]){assertEnvAppCodeNotIgnored(_0xc69b77,resolveEnvAppCode(),hasExplicitAppCode(_0x1a69f3,_0x4a3ae2[_0x11bbe3(0xe7)]));if(!_0xc69b77)throw CliErrors[_0x11bbe3(0xec)](_0x11bbe3(0xd9)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}return{'defaults':{'booleans':{'verbose':_0x4a3ae2[_0x11bbe3(0xce)]},'numbers':{'pagesize':_0x4a3ae2[_0x11bbe3(0xea)]}},'extras':{'appCode':_0xc69b77,'cookie':_0x5baa39,'apiDomain':_0x4a3ae2[_0x11bbe3(0xeb)](),'apiDir':_0x5ebb11,'selectedAppName':_0x4a3ae2['selectedAppName'],'mergedCli':_0x4a3ae2[_0x11bbe3(0x108)]}};},async 'confirmHighRisk'({env:_0x385225,commandLabel:_0x23846f}){const _0x3a695b=a225_0x58486a;if(_0x385225[_0x3a695b(0xee)])throw CliErrors[_0x3a695b(0xf0)](_0x3a695b(0xf6)+_0x23846f+_0x3a695b(0xfe));await requireConfirmationPrompt({'lines':[_0x3a695b(0xf4)+_0x23846f,_0x3a695b(0xcc)],'createCancelledError':_0x564d69=>CliErrors[_0x3a695b(0xfb)](_0x564d69)});},async 'finalize'(){const _0xcb413b=a225_0x58486a,{clearActiveCookie:_0x9a6be1}=await import(_0xcb413b(0xc8));_0x9a6be1();}};export async function runCommand(_0x45f124,_0xb2d42e){const _0x22c279=a225_0x58486a;assertRejectedFlags(_0x45f124,_0xb2d42e[_0x22c279(0xe7)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x45f124)?withUpdateNotice(_0x45f124):_0x45f124,_0xb2d42e,runnerAdapter);}function assertRejectedFlags(_0x1ac90c,_0x2547b7){const _0x354f3e=a225_0x58486a;for(const _0x4be72c of _0x1ac90c['rejectedFlags']??[]){const _0x27fd79=GLOBAL_FLAGS[_0x354f3e(0xf3)](_0x3f4918=>_0x3f4918[_0x354f3e(0xed)]===_0x4be72c[_0x354f3e(0xed)]),_0x1e4741=new Set([_0x4be72c[_0x354f3e(0xed)],toCamelCase(_0x4be72c['name']),_0x27fd79?.[_0x354f3e(0x102)]]),_0x59bf69=[..._0x1e4741]['some'](_0x527b7c=>{if(!_0x527b7c)return![];const _0x54f64e=_0x2547b7[_0x527b7c];return _0x54f64e!==undefined&&_0x54f64e!==null&&_0x54f64e!==![];});if(_0x59bf69)throw CliErrors['validation'](_0x4be72c['message'],_0x4be72c['hint']);}}function toCamelCase(_0x3f042e){const _0x4acf5c=a225_0x58486a;return _0x3f042e[_0x4acf5c(0xc3)](/-([a-z])/g,(_0x43715d,_0x390995)=>_0x390995[_0x4acf5c(0xf9)]());}function shouldAttachUpdateNotice(_0x383035){const _0x346f67=a225_0x58486a;if(_0x383035[_0x346f67(0xf7)]===![])return![];return![_0x346f67(0xdd),_0x346f67(0xc7),_0x346f67(0x103)][_0x346f67(0xf2)](_0x383035[_0x346f67(0xe3)]);}function withUpdateNotice(_0x271474){return{..._0x271474,async 'execute'(_0x4e6e74){const _0x36da1a=a225_0x1f9e,_0x505961=shouldResolveUpdateNotice(_0x4e6e74)?resolveLatestUpdateNotice()[_0x36da1a(0xca)](()=>null):Promise[_0x36da1a(0xe9)](null),_0x5ef424=await _0x271474[_0x36da1a(0x106)](_0x4e6e74);return attachUpdateNotice(_0x5ef424,await _0x505961);}};}function a225_0x5848(){const _0xdf57b4=['resolve','defaultPageSize','resolveApiDomain','configMissing','name','isNonInteractive','currentApp','validation','map','includes','find','⚠\x20\x20High-risk\x20operation:\x20','none','High-risk\x20operation\x20`','hasFormat','104695qFrpQi','toUpperCase','1FKWOGs','cancelled','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','3112833GAelou','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','riskLevel','1023723qRlqnf','appcode','meowKey','doctor','apps','cookie','execute','filter','mergedCli','7162026rrhlVZ','command','replace','requiresAppCode','744ThUdJX','7YLycRT','schema','../core/api-client.js','trim','catch','pageSize','\x20\x20\x20Continue?\x20[y/N]\x20','value','defaultVerbose','explicitAppName','70lnfiHx','defaultApp','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','object','resolveAppCode','authRequired','format','2606494VCjHGe','apiDir','Set\x20appcode\x20via\x20`','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','appCode','RABETBASE_APPCODE','update','_notice','pretty','LOVRABET_APPCODE','920848hjhnGa','656524oILNzn','service','verbose','Current\x20resolved\x20appcode\x20is\x20\x22','has','rawFlags','4bQbHUs'];a225_0x5848=function(){return _0xdf57b4;};return a225_0x5848();}function shouldResolveUpdateNotice(_0x6a7833){const _0xf4ac30=a225_0x58486a;return _0x6a7833[_0xf4ac30(0xd6)]===_0xf4ac30(0xdf)&&!_0x6a7833['nonInteractive'];}function attachUpdateNotice(_0x22e90b,_0x4b7255){const _0xa5403f=a225_0x58486a;if(!_0x4b7255||!_0x22e90b||typeof _0x22e90b!==_0xa5403f(0xd3))return _0x22e90b;const _0x55e669=_0x22e90b,_0x21dddc=typeof _0x55e669['_notice']===_0xa5403f(0xd3)&&_0x55e669[_0xa5403f(0xde)]!==null?_0x55e669[_0xa5403f(0xde)]:{};return{..._0x55e669,'_notice':{..._0x21dddc,'update':_0x4b7255}};}
@@ -1 +1 @@
1
- (function(_0x52e26c,_0xb6b517){const _0x57ec22=a213_0x2a68,_0x3396d8=_0x52e26c();while(!![]){try{const _0x272e58=parseInt(_0x57ec22(0xbc))/0x1+parseInt(_0x57ec22(0xc2))/0x2*(parseInt(_0x57ec22(0xbd))/0x3)+-parseInt(_0x57ec22(0xbb))/0x4+parseInt(_0x57ec22(0xbf))/0x5+-parseInt(_0x57ec22(0xbe))/0x6*(parseInt(_0x57ec22(0xba))/0x7)+-parseInt(_0x57ec22(0xc1))/0x8+parseInt(_0x57ec22(0xb9))/0x9;if(_0x272e58===_0xb6b517)break;else _0x3396d8['push'](_0x3396d8['shift']());}catch(_0x44b709){_0x3396d8['push'](_0x3396d8['shift']());}}}(a213_0x124f,0xb22e1));function a213_0x124f(){const _0x3a9215=['6XifADW','5373215MOIFdF','../commands/registry.js','4669576YguRYw','12ScHexq','3316554KVYOet','5667942nYZLTj','1977704POGKMN','1077335rTZnSV','48585YFbCDt'];a213_0x124f=function(){return _0x3a9215;};return a213_0x124f();}import{buildSchemaPayload as a213_0x5220fe}from'@lovrabet/cli-framework';function a213_0x2a68(_0x1ac656,_0x585594){_0x1ac656=_0x1ac656-0xb9;const _0x124ff8=a213_0x124f();let _0x2a683d=_0x124ff8[_0x1ac656];return _0x2a683d;}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 _0x59505d=a213_0x2a68,{serviceRegistry:_0xfb220b,findDefinition:_0x58aaa8}=await import(_0x59505d(0xc0));return a213_0x5220fe({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0xfb220b,'buildAllFlags':buildAllFlags,'findDefinition':_0x58aaa8});}
1
+ (function(_0x57a822,_0x55d7ee){const _0x4b539b=a226_0x4c66,_0xa1da92=_0x57a822();while(!![]){try{const _0x47042d=parseInt(_0x4b539b(0x1a6))/0x1+-parseInt(_0x4b539b(0x1a9))/0x2+-parseInt(_0x4b539b(0x1ae))/0x3*(-parseInt(_0x4b539b(0x1af))/0x4)+-parseInt(_0x4b539b(0x1ac))/0x5+-parseInt(_0x4b539b(0x1ab))/0x6*(-parseInt(_0x4b539b(0x1aa))/0x7)+parseInt(_0x4b539b(0x1b0))/0x8*(parseInt(_0x4b539b(0x1a5))/0x9)+-parseInt(_0x4b539b(0x1ad))/0xa*(-parseInt(_0x4b539b(0x1a8))/0xb);if(_0x47042d===_0x55d7ee)break;else _0xa1da92['push'](_0xa1da92['shift']());}catch(_0x3cea8f){_0xa1da92['push'](_0xa1da92['shift']());}}}(a226_0x38bf,0x882e3));import{buildSchemaPayload as a226_0x22119f}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 a226_0x38bf(){const _0x5d114a=['3592tfudix','216OgkaFW','948564LPBbbj','../commands/registry.js','11qzetPA','1720426WrZjAR','301eyPPGn','15774yKmLFl','3833225NPhEAv','8398250scXINV','3309XvcOCE','988DXojTR'];a226_0x38bf=function(){return _0x5d114a;};return a226_0x38bf();}import{getCliVersion}from'../utils/version.js';function a226_0x4c66(_0x48c612,_0x2b81c8){_0x48c612=_0x48c612-0x1a5;const _0x38bf73=a226_0x38bf();let _0x4c669d=_0x38bf73[_0x48c612];return _0x4c669d;}export async function buildSchemaPayload(){const _0x1651cc=a226_0x4c66,{serviceRegistry:_0xb11549,findDefinition:_0x575404}=await import(_0x1651cc(0x1a7));return a226_0x22119f({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0xb11549,'buildAllFlags':buildAllFlags,'findDefinition':_0x575404});}
@@ -1 +1 @@
1
- function a214_0x45b2(_0x46f114,_0x3f1cca){_0x46f114=_0x46f114-0x19f;var _0x521473=a214_0x5214();var _0x45b297=_0x521473[_0x46f114];return _0x45b297;}(function(_0x2b14fb,_0x18b3fd){var _0x3ed71e=a214_0x45b2,_0x391e11=_0x2b14fb();while(!![]){try{var _0x56a77b=-parseInt(_0x3ed71e(0x1a6))/0x1*(parseInt(_0x3ed71e(0x19f))/0x2)+-parseInt(_0x3ed71e(0x1a3))/0x3+-parseInt(_0x3ed71e(0x1a2))/0x4+parseInt(_0x3ed71e(0x1a1))/0x5+-parseInt(_0x3ed71e(0x1a4))/0x6+-parseInt(_0x3ed71e(0x1a5))/0x7+parseInt(_0x3ed71e(0x1a0))/0x8;if(_0x56a77b===_0x18b3fd)break;else _0x391e11['push'](_0x391e11['shift']());}catch(_0x53b335){_0x391e11['push'](_0x391e11['shift']());}}}(a214_0x5214,0xc1d17));function a214_0x5214(){var _0x4cb11a=['3045795JUJynU','3206824wjvqPE','2935239hdNzrn','5867232GfOSED','1395695fjjSMG','38191OsawZa','2nhicZJ','25442296VJrMsh'];a214_0x5214=function(){return _0x4cb11a;};return a214_0x5214();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
1
+ function a227_0x36fe(_0x172920,_0x337aa5){_0x172920=_0x172920-0x1f3;var _0x3ea060=a227_0x3ea0();var _0x36fe5f=_0x3ea060[_0x172920];return _0x36fe5f;}(function(_0x20fd97,_0x4d514a){var _0x283310=a227_0x36fe,_0x380ac2=_0x20fd97();while(!![]){try{var _0x91ea84=-parseInt(_0x283310(0x1f3))/0x1+-parseInt(_0x283310(0x1f6))/0x2*(parseInt(_0x283310(0x1f5))/0x3)+-parseInt(_0x283310(0x1f7))/0x4+parseInt(_0x283310(0x1f4))/0x5+parseInt(_0x283310(0x1f8))/0x6+parseInt(_0x283310(0x1fb))/0x7*(-parseInt(_0x283310(0x1f9))/0x8)+parseInt(_0x283310(0x1fa))/0x9;if(_0x91ea84===_0x4d514a)break;else _0x380ac2['push'](_0x380ac2['shift']());}catch(_0x57833c){_0x380ac2['push'](_0x380ac2['shift']());}}}(a227_0x3ea0,0x882f0));function a227_0x3ea0(){var _0x42ffed=['22044033ghebpA','7LBuhWs','550105UDWJGs','320425MCopYq','3hODfGy','287366qlLqPo','2637992EuioZO','2762862dWhHEa','8502440MNEWRx'];a227_0x3ea0=function(){return _0x42ffed;};return a227_0x3ea0();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- const a215_0x210183=a215_0x2405;(function(_0x33cb40,_0x5d0955){const _0x4ceeb6=a215_0x2405,_0x3aec4d=_0x33cb40();while(!![]){try{const _0x236bd6=-parseInt(_0x4ceeb6(0xd7))/0x1+parseInt(_0x4ceeb6(0xd5))/0x2+-parseInt(_0x4ceeb6(0xd8))/0x3+-parseInt(_0x4ceeb6(0xd3))/0x4*(parseInt(_0x4ceeb6(0xd9))/0x5)+parseInt(_0x4ceeb6(0xd0))/0x6*(-parseInt(_0x4ceeb6(0xdb))/0x7)+parseInt(_0x4ceeb6(0xdc))/0x8*(parseInt(_0x4ceeb6(0xd6))/0x9)+parseInt(_0x4ceeb6(0xda))/0xa*(parseInt(_0x4ceeb6(0xd2))/0xb);if(_0x236bd6===_0x5d0955)break;else _0x3aec4d['push'](_0x3aec4d['shift']());}catch(_0x1936b3){_0x3aec4d['push'](_0x3aec4d['shift']());}}}(a215_0x4b0d,0x2dac2));export const VERSION=a215_0x210183(0xdd);function a215_0x4b0d(){const _0xd457dc=['4806RmVKGx','v2.3.9-beta.2','88RGtIEk','214692PcPjcb','2026-07-29T12:41:47.963Z','436092fQnind','371871vlpDVt','62970jCJpZz','1064178UmjRnA','10thiMZO','427260eQDKSo','1197kDqDfG','56qUgVPK','2.3.9-beta.2'];a215_0x4b0d=function(){return _0xd457dc;};return a215_0x4b0d();}export const GIT_TAG=a215_0x210183(0xd1);function a215_0x2405(_0x3eaf8f,_0x328359){_0x3eaf8f=_0x3eaf8f-0xd0;const _0x4b0d19=a215_0x4b0d();let _0x24052e=_0x4b0d19[_0x3eaf8f];return _0x24052e;}export const GIT_COMMIT='525dee9';export const BUILD_TIME=a215_0x210183(0xd4);
1
+ const a228_0x381bb7=a228_0x2a05;(function(_0x371f51,_0x595a51){const _0xdbca2b=a228_0x2a05,_0x116fe4=_0x371f51();while(!![]){try{const _0x31040a=-parseInt(_0xdbca2b(0x88))/0x1+parseInt(_0xdbca2b(0x86))/0x2+-parseInt(_0xdbca2b(0x8c))/0x3+-parseInt(_0xdbca2b(0x89))/0x4*(parseInt(_0xdbca2b(0x87))/0x5)+parseInt(_0xdbca2b(0x8a))/0x6+-parseInt(_0xdbca2b(0x84))/0x7*(parseInt(_0xdbca2b(0x81))/0x8)+parseInt(_0xdbca2b(0x80))/0x9*(parseInt(_0xdbca2b(0x83))/0xa);if(_0x31040a===_0x595a51)break;else _0x116fe4['push'](_0x116fe4['shift']());}catch(_0x51dd6c){_0x116fe4['push'](_0x116fe4['shift']());}}}(a228_0x2311,0xaea63));export const VERSION='2.3.9-beta.3';function a228_0x2a05(_0x1328b4,_0x242ddc){_0x1328b4=_0x1328b4-0x80;const _0x231194=a228_0x2311();let _0x2a056a=_0x231194[_0x1328b4];return _0x2a056a;}export const GIT_TAG=a228_0x381bb7(0x85);export const GIT_COMMIT=a228_0x381bb7(0x82);function a228_0x2311(){const _0x190830=['2855HLuQeG','1215244BYADwB','3368CLDABk','8337228GCTNxi','2026-07-30T11:38:52.477Z','3909891FvgClk','27mxYNfD','13296QTzdQf','04c0461','7897870hAduws','2149lmyfuj','v2.3.9-beta.3','932042HbVJNy'];a228_0x2311=function(){return _0x190830;};return a228_0x2311();}export const BUILD_TIME=a228_0x381bb7(0x8b);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a216_0x5203(_0xdb9d6e,_0x93bf56){_0xdb9d6e=_0xdb9d6e-0x110;var _0x12e96c=a216_0x12e9();var _0x520377=_0x12e96c[_0xdb9d6e];return _0x520377;}(function(_0x1079e1,_0x1a4722){var _0x45a4cf=a216_0x5203,_0x3c06b0=_0x1079e1();while(!![]){try{var _0x4bf8bc=-parseInt(_0x45a4cf(0x114))/0x1*(parseInt(_0x45a4cf(0x11a))/0x2)+parseInt(_0x45a4cf(0x111))/0x3+-parseInt(_0x45a4cf(0x11c))/0x4+-parseInt(_0x45a4cf(0x119))/0x5+-parseInt(_0x45a4cf(0x11e))/0x6*(-parseInt(_0x45a4cf(0x117))/0x7)+-parseInt(_0x45a4cf(0x113))/0x8*(-parseInt(_0x45a4cf(0x11d))/0x9)+-parseInt(_0x45a4cf(0x116))/0xa;if(_0x4bf8bc===_0x1a4722)break;else _0x3c06b0['push'](_0x3c06b0['shift']());}catch(_0x4d043f){_0x3c06b0['push'](_0x3c06b0['shift']());}}}(a216_0x12e9,0x56cda));function a216_0x12e9(){var _0x26a7f1=['18956HHKzTI','\x20--help','2106290glcwjw','7MidMWe','green','1025610uniIbA','48buKvzk','log','772648mFZFvF','9dOaCzw','627204hrqVQM','\x20\x20Use\x20','\x20to\x20view\x20available\x20commands.','2130273DCVgRF','bold','4838224axxjEa'];a216_0x12e9=function(){return _0x26a7f1;};return a216_0x12e9();}import a216_0x75df20 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x35c08a=a216_0x5203;console[_0x35c08a(0x11b)](),console[_0x35c08a(0x11b)](a216_0x75df20['green'][_0x35c08a(0x112)]('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console[_0x35c08a(0x11b)](_0x35c08a(0x11f)+a216_0x75df20[_0x35c08a(0x118)][_0x35c08a(0x112)](CLI_BIN_NAME+_0x35c08a(0x115))+_0x35c08a(0x110)),console[_0x35c08a(0x11b)]();}
1
+ function a229_0xce00(){var _0x336dd0=['\x20\x20Use\x20','2HtvyYc','4051707rtXgeY','3571337xvJWxu','2565959gmdMRd','green','1450395RGqIJa','307500OJbfli','\x20to\x20view\x20available\x20commands.','18FoCLjG','70tkhzAQ','18kUcEoz','2046936McNkkE','85920vdeQdq','log','bold'];a229_0xce00=function(){return _0x336dd0;};return a229_0xce00();}(function(_0x3a3f1c,_0x3cd77f){var _0x25adbd=a229_0x5ef8,_0x578ef3=_0x3a3f1c();while(!![]){try{var _0x334c30=parseInt(_0x25adbd(0x74))/0x1+-parseInt(_0x25adbd(0x7e))/0x2*(parseInt(_0x25adbd(0x7f))/0x3)+parseInt(_0x25adbd(0x79))/0x4+parseInt(_0x25adbd(0x73))/0x5*(-parseInt(_0x25adbd(0x76))/0x6)+parseInt(_0x25adbd(0x70))/0x7+-parseInt(_0x25adbd(0x7a))/0x8*(parseInt(_0x25adbd(0x78))/0x9)+-parseInt(_0x25adbd(0x77))/0xa*(-parseInt(_0x25adbd(0x71))/0xb);if(_0x334c30===_0x3cd77f)break;else _0x578ef3['push'](_0x578ef3['shift']());}catch(_0x4534ea){_0x578ef3['push'](_0x578ef3['shift']());}}}(a229_0xce00,0xafc96));import a229_0xc657b3 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a229_0x5ef8(_0x15c2be,_0x1ef3a3){_0x15c2be=_0x15c2be-0x70;var _0xce00ac=a229_0xce00();var _0x5ef843=_0xce00ac[_0x15c2be];return _0x5ef843;}export function showHelp(){var _0x3f29dc=a229_0x5ef8;console[_0x3f29dc(0x7b)](),console['log'](a229_0xc657b3[_0x3f29dc(0x72)][_0x3f29dc(0x7c)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x3f29dc(0x7b)](),console[_0x3f29dc(0x7b)](_0x3f29dc(0x7d)+a229_0xc657b3['green'][_0x3f29dc(0x7c)](CLI_BIN_NAME+'\x20--help')+_0x3f29dc(0x75)),console['log']();}