@lovrabet/rabetbase-cli 2.3.5 → 2.3.6

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 (239) 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/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/validate.js +1 -1
  50. package/lib/commands/config/get.js +1 -1
  51. package/lib/commands/config/index.js +1 -1
  52. package/lib/commands/config/list.js +1 -1
  53. package/lib/commands/config/set.js +1 -1
  54. package/lib/commands/config/shared.js +1 -1
  55. package/lib/commands/data/filter.js +1 -1
  56. package/lib/commands/data/getOne.js +1 -1
  57. package/lib/commands/data/index.js +1 -1
  58. package/lib/commands/data/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/capability.js +1 -1
  61. package/lib/commands/dataset/delete.js +1 -1
  62. package/lib/commands/dataset/detail.js +1 -1
  63. package/lib/commands/dataset/extend-update.js +1 -1
  64. package/lib/commands/dataset/field-update.js +1 -1
  65. package/lib/commands/dataset/generate.js +1 -1
  66. package/lib/commands/dataset/index.js +1 -1
  67. package/lib/commands/dataset/list.js +1 -1
  68. package/lib/commands/dataset/operations.js +1 -1
  69. package/lib/commands/dataset/relation-audit.js +1 -1
  70. package/lib/commands/dataset/relation-create.js +1 -1
  71. package/lib/commands/dataset/relation-delete.js +1 -1
  72. package/lib/commands/dataset/relation-shared.js +1 -1
  73. package/lib/commands/dataset/relation-update.js +1 -1
  74. package/lib/commands/dataset/relations.js +1 -1
  75. package/lib/commands/dataset/rename.js +1 -1
  76. package/lib/commands/dataset/restore.js +1 -1
  77. package/lib/commands/db/analyze-cancel.js +1 -1
  78. package/lib/commands/db/analyze-start.js +1 -1
  79. package/lib/commands/db/analyze-status.js +1 -1
  80. package/lib/commands/db/create.js +1 -1
  81. package/lib/commands/db/delete.js +1 -1
  82. package/lib/commands/db/detail.js +1 -1
  83. package/lib/commands/db/diff.js +1 -1
  84. package/lib/commands/db/index.js +1 -1
  85. package/lib/commands/db/list.js +1 -1
  86. package/lib/commands/db/shared.js +1 -1
  87. package/lib/commands/db/tables.js +1 -1
  88. package/lib/commands/db/test.js +1 -1
  89. package/lib/commands/db/update.js +1 -1
  90. package/lib/commands/doctor.js +1 -1
  91. package/lib/commands/init/index.js +1 -1
  92. package/lib/commands/issue/index.js +1 -1
  93. package/lib/commands/issue/nudge.js +1 -1
  94. package/lib/commands/issue/report.js +1 -1
  95. package/lib/commands/issue/shared.js +1 -1
  96. package/lib/commands/logs/index.js +1 -1
  97. package/lib/commands/menu/index.js +1 -1
  98. package/lib/commands/menu/list.js +1 -1
  99. package/lib/commands/menu/shared/compare-table.js +1 -1
  100. package/lib/commands/menu/shared/index.js +1 -1
  101. package/lib/commands/menu/shared/inquirer.js +1 -1
  102. package/lib/commands/menu/shared/local-pages.js +1 -1
  103. package/lib/commands/menu/shared/logic.js +1 -1
  104. package/lib/commands/menu/shared/service.js +1 -1
  105. package/lib/commands/menu/shared/sync-core.js +1 -1
  106. package/lib/commands/menu/shared/update-core.js +1 -1
  107. package/lib/commands/menu/shared/valid-url.js +1 -1
  108. package/lib/commands/menu/sync.js +1 -1
  109. package/lib/commands/menu/update.js +1 -1
  110. package/lib/commands/page/generate-start.js +1 -1
  111. package/lib/commands/page/generate-status.js +1 -1
  112. package/lib/commands/page/index.js +1 -1
  113. package/lib/commands/page/pull.js +1 -1
  114. package/lib/commands/page/push.js +1 -1
  115. package/lib/commands/page/relation-audit.js +1 -1
  116. package/lib/commands/page/shared.js +1 -1
  117. package/lib/commands/page/standard-page-status.js +1 -1
  118. package/lib/commands/page/sync.js +1 -1
  119. package/lib/commands/permit/index.js +1 -1
  120. package/lib/commands/permit/page-get.js +1 -1
  121. package/lib/commands/permit/page-set.js +1 -1
  122. package/lib/commands/permit/role-apis-set.js +1 -1
  123. package/lib/commands/permit/role-menus-set.js +1 -1
  124. package/lib/commands/permit/role-menus.js +1 -1
  125. package/lib/commands/permit/shared.js +1 -1
  126. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  127. package/lib/commands/project/create/format-elapsed.js +1 -1
  128. package/lib/commands/project/create/main.js +1 -1
  129. package/lib/commands/project/create/non-interactive.js +1 -1
  130. package/lib/commands/project/create/project-template-path.js +1 -1
  131. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  132. package/lib/commands/project/create/use-format-code.js +1 -1
  133. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  134. package/lib/commands/project/index.js +1 -1
  135. package/lib/commands/project/init.js +1 -1
  136. package/lib/commands/project/upgrade.js +1 -1
  137. package/lib/commands/registry.js +1 -1
  138. package/lib/commands/role/create.js +1 -1
  139. package/lib/commands/role/delete.js +1 -1
  140. package/lib/commands/role/detail.js +1 -1
  141. package/lib/commands/role/index.js +1 -1
  142. package/lib/commands/role/list.js +1 -1
  143. package/lib/commands/role/shared.js +1 -1
  144. package/lib/commands/role/update.js +1 -1
  145. package/lib/commands/role/user-add.js +1 -1
  146. package/lib/commands/role/user-remove.js +1 -1
  147. package/lib/commands/role/user-resolve.js +1 -1
  148. package/lib/commands/run/index.js +1 -1
  149. package/lib/commands/schema.js +1 -1
  150. package/lib/commands/sql/create.js +1 -1
  151. package/lib/commands/sql/delete.js +1 -1
  152. package/lib/commands/sql/detail.js +1 -1
  153. package/lib/commands/sql/exec.js +1 -1
  154. package/lib/commands/sql/index.js +1 -1
  155. package/lib/commands/sql/list.js +1 -1
  156. package/lib/commands/sql/pull.js +1 -1
  157. package/lib/commands/sql/push.js +1 -1
  158. package/lib/commands/sql/save.js +1 -1
  159. package/lib/commands/sql/shared.js +1 -1
  160. package/lib/commands/sql/status.js +1 -1
  161. package/lib/commands/sql/validate.js +1 -1
  162. package/lib/commands/workspace/add.js +1 -1
  163. package/lib/commands/workspace/index.js +1 -1
  164. package/lib/commands/workspace/remove.js +1 -1
  165. package/lib/config/schema.js +1 -1
  166. package/lib/constant/cdn.js +1 -1
  167. package/lib/constant/cli.js +1 -1
  168. package/lib/constant/defaults.js +1 -1
  169. package/lib/constant/domain.js +1 -1
  170. package/lib/constant/env.js +1 -1
  171. package/lib/constant/output.js +1 -1
  172. package/lib/constant/paths.js +1 -1
  173. package/lib/constant/risk.js +1 -1
  174. package/lib/context/app-resolver.js +1 -1
  175. package/lib/context/auth-resolver.js +1 -1
  176. package/lib/context/config-loader.js +1 -1
  177. package/lib/context.js +1 -1
  178. package/lib/core/alias-resolver.js +1 -1
  179. package/lib/core/api-client.js +1 -1
  180. package/lib/core/bff/config.js +1 -1
  181. package/lib/core/bff/file-system.js +1 -1
  182. package/lib/core/bff/hash.js +1 -1
  183. package/lib/core/bff/lock.js +1 -1
  184. package/lib/core/bff/utils.js +1 -1
  185. package/lib/core/db-resolver.js +1 -1
  186. package/lib/core/page/file-system.js +1 -1
  187. package/lib/core/page/hash.js +1 -1
  188. package/lib/core/page/lock.js +1 -1
  189. package/lib/core/sql-sync/config.js +1 -1
  190. package/lib/core/sql-sync/file-system.js +1 -1
  191. package/lib/core/sql-sync/hash.js +1 -1
  192. package/lib/core/sql-sync/lock.js +1 -1
  193. package/lib/core/sql-sync/utils.js +1 -1
  194. package/lib/core/sql-validator.js +1 -1
  195. package/lib/errors.js +1 -1
  196. package/lib/framework/build-all-flags.js +1 -1
  197. package/lib/framework/flags.js +1 -1
  198. package/lib/framework/help.js +1 -1
  199. package/lib/framework/index.js +1 -1
  200. package/lib/framework/output.js +1 -1
  201. package/lib/framework/response.js +1 -1
  202. package/lib/framework/runner-alias.js +1 -1
  203. package/lib/framework/runner.js +1 -1
  204. package/lib/framework/schema-export.js +1 -1
  205. package/lib/framework/types.js +1 -1
  206. package/lib/generated/build-info.js +1 -1
  207. package/lib/help.js +1 -1
  208. package/lib/skills/main.js +1 -1
  209. package/lib/skills/npx-skills-add.js +1 -1
  210. package/lib/telemetry/cli-command-trace.js +1 -1
  211. package/lib/telemetry/cli-help-trace.js +1 -1
  212. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  213. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  214. package/lib/telemetry/send-cli-trace-log.js +1 -1
  215. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  216. package/lib/utils/ai_config.js +1 -1
  217. package/lib/utils/apply-jq-filter.js +1 -1
  218. package/lib/utils/cdn-config.js +1 -1
  219. package/lib/utils/check-sdk-version.js +1 -1
  220. package/lib/utils/cli-version-check.js +1 -1
  221. package/lib/utils/cli-version-policy.js +1 -1
  222. package/lib/utils/config.js +1 -1
  223. package/lib/utils/copy-directory.js +1 -1
  224. package/lib/utils/entity-with-id.js +1 -1
  225. package/lib/utils/file-utils.js +1 -1
  226. package/lib/utils/guides-cdn.js +1 -1
  227. package/lib/utils/http-client.js +1 -1
  228. package/lib/utils/is-non-interactive.js +1 -1
  229. package/lib/utils/logger.js +1 -1
  230. package/lib/utils/params.js +1 -1
  231. package/lib/utils/platform.js +1 -1
  232. package/lib/utils/rules-cdn.js +1 -1
  233. package/lib/utils/sleep.js +1 -1
  234. package/lib/utils/template-replacer.js +1 -1
  235. package/lib/utils/update-notice.js +1 -1
  236. package/lib/utils/version.js +1 -1
  237. package/lib/utils/with-active-cookie.js +1 -1
  238. package/lib/utils/write-cli-side-channel.js +1 -1
  239. package/package.json +1 -1
@@ -1 +1 @@
1
- function a185_0x3a7c(){const _0x142cdf=['18849960qAScHE','datasetCode','after','test','trim','toLowerCase','remoteId','7262328NYoFpZ','operationType','match','57274PRlOtq','before','36980bRFTBM','21jwqnuO','1798776BBTHfu','7GiIHPL','1374AkdqiB','functionNode','5431748BYakZO','toUpperCase','4850262AEcGxX'];a185_0x3a7c=function(){return _0x142cdf;};return a185_0x3a7c();}function a185_0x1daa(_0x24b6dc,_0xea7a4){_0x24b6dc=_0x24b6dc-0x167;const _0x3a7cc9=a185_0x3a7c();let _0x1daaff=_0x3a7cc9[_0x24b6dc];return _0x1daaff;}(function(_0x5722c3,_0x5e7af3){const _0x2ea6fd=a185_0x1daa,_0x1c8891=_0x5722c3();while(!![]){try{const _0x11cbeb=parseInt(_0x2ea6fd(0x173))/0x1*(parseInt(_0x2ea6fd(0x170))/0x2)+-parseInt(_0x2ea6fd(0x17a))/0x3+parseInt(_0x2ea6fd(0x178))/0x4+parseInt(_0x2ea6fd(0x172))/0x5*(parseInt(_0x2ea6fd(0x176))/0x6)+-parseInt(_0x2ea6fd(0x175))/0x7*(-parseInt(_0x2ea6fd(0x16d))/0x8)+-parseInt(_0x2ea6fd(0x174))/0x9+-parseInt(_0x2ea6fd(0x17b))/0xa;if(_0x11cbeb===_0x5e7af3)break;else _0x1c8891['push'](_0x1c8891['shift']());}catch(_0x437ac2){_0x1c8891['push'](_0x1c8891['shift']());}}}(a185_0x3a7c,0xd1c27));export function snakeToCamel(_0x58b110){const _0x1e6f77=a185_0x1daa;return _0x58b110[_0x1e6f77(0x16b)]()['replace'](/_([a-z])/g,(_0x5da01c,_0x25711c)=>_0x25711c[_0x1e6f77(0x179)]());}export function findHookLocationByRemoteId(_0x5873a3,_0x5ea2e1){const _0x323ffe=a185_0x1daa;if(!_0x5ea2e1)return undefined;for(const _0x4d2b8e of Object['values'](_0x5873a3)){if(_0x4d2b8e[_0x323ffe(0x16c)]===_0x5ea2e1&&_0x4d2b8e[_0x323ffe(0x167)]&&_0x4d2b8e[_0x323ffe(0x16e)]&&_0x4d2b8e[_0x323ffe(0x177)])return{'datasetCode':_0x4d2b8e[_0x323ffe(0x167)],'operationType':_0x4d2b8e['operationType'],'functionNode':_0x4d2b8e['functionNode']};}return undefined;}export function extractScriptDescription(_0x2f20de){const _0x33f575=a185_0x1daa,_0x11b52f=_0x2f20de[_0x33f575(0x16f)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x11b52f?.[0x1]?.[_0x33f575(0x16a)]()||undefined;}export function isValidBffFunctionName(_0x4acf9e){const _0x1f7dfa=a185_0x1daa;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x1f7dfa(0x169)](_0x4acf9e);}export function normalizeHookFunctionNode(_0xbaf7d5){const _0x5e0742=a185_0x1daa;if(!_0xbaf7d5)return undefined;const _0x5b3b39=_0xbaf7d5[_0x5e0742(0x16a)]()[_0x5e0742(0x16b)]();if(_0x5b3b39===_0x5e0742(0x171)||_0x5b3b39===_0x5e0742(0x168))return _0x5b3b39;return undefined;}
1
+ (function(_0x5786db,_0x1e9f75){const _0x5692a9=a185_0x45a2,_0x37c30e=_0x5786db();while(!![]){try{const _0x5a1148=-parseInt(_0x5692a9(0x1bd))/0x1+-parseInt(_0x5692a9(0x1c4))/0x2+parseInt(_0x5692a9(0x1b9))/0x3*(parseInt(_0x5692a9(0x1c5))/0x4)+-parseInt(_0x5692a9(0x1bc))/0x5*(parseInt(_0x5692a9(0x1c0))/0x6)+-parseInt(_0x5692a9(0x1b8))/0x7*(-parseInt(_0x5692a9(0x1b6))/0x8)+parseInt(_0x5692a9(0x1c2))/0x9*(parseInt(_0x5692a9(0x1ba))/0xa)+-parseInt(_0x5692a9(0x1c7))/0xb;if(_0x5a1148===_0x1e9f75)break;else _0x37c30e['push'](_0x37c30e['shift']());}catch(_0x1d0780){_0x37c30e['push'](_0x37c30e['shift']());}}}(a185_0x1bda,0x46186));export function snakeToCamel(_0x386a28){const _0x61f71b=a185_0x45a2;return _0x386a28['toLowerCase']()[_0x61f71b(0x1c9)](/_([a-z])/g,(_0x4feff6,_0x2d8e31)=>_0x2d8e31['toUpperCase']());}function a185_0x1bda(){const _0x29872e=['test','708466DUBJpi','functionNode','replace','1080TOwBOc','before','19593HGTTIV','35625pmDiVE','325830gudmWi','toLowerCase','16370HmKlgl','34596KuYFSf','after','values','690GaRhxI','operationType','63UoXMBr','datasetCode','209148OuWVXX','88pGMqKU'];a185_0x1bda=function(){return _0x29872e;};return a185_0x1bda();}export function findHookLocationByRemoteId(_0x3b82df,_0x2ea73d){const _0x3d0899=a185_0x45a2;if(!_0x2ea73d)return undefined;for(const _0x2c7815 of Object[_0x3d0899(0x1bf)](_0x3b82df)){if(_0x2c7815['remoteId']===_0x2ea73d&&_0x2c7815['datasetCode']&&_0x2c7815['operationType']&&_0x2c7815[_0x3d0899(0x1c8)])return{'datasetCode':_0x2c7815[_0x3d0899(0x1c3)],'operationType':_0x2c7815[_0x3d0899(0x1c1)],'functionNode':_0x2c7815[_0x3d0899(0x1c8)]};}return undefined;}function a185_0x45a2(_0x4e42e8,_0x4458e0){_0x4e42e8=_0x4e42e8-0x1b6;const _0x1bdaf=a185_0x1bda();let _0x45a2d3=_0x1bdaf[_0x4e42e8];return _0x45a2d3;}export function extractScriptDescription(_0x60ac60){const _0x249354=_0x60ac60['match'](/\[\s*脚本描述\s*]\s*(.+)/);return _0x249354?.[0x1]?.['trim']()||undefined;}export function isValidBffFunctionName(_0x1fcf0c){const _0xba6bd4=a185_0x45a2;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0xba6bd4(0x1c6)](_0x1fcf0c);}export function normalizeHookFunctionNode(_0x1993e7){const _0x55920c=a185_0x45a2;if(!_0x1993e7)return undefined;const _0x411980=_0x1993e7['trim']()[_0x55920c(0x1bb)]();if(_0x411980===_0x55920c(0x1b7)||_0x411980===_0x55920c(0x1be))return _0x411980;return undefined;}
@@ -1 +1 @@
1
- (function(_0x374e4d,_0x5d56a4){const _0x168dfc=a186_0x2842,_0x42cc8b=_0x374e4d();while(!![]){try{const _0x15002e=parseInt(_0x168dfc(0x200))/0x1+parseInt(_0x168dfc(0x1fc))/0x2+parseInt(_0x168dfc(0x1f2))/0x3+-parseInt(_0x168dfc(0x1f7))/0x4*(parseInt(_0x168dfc(0x20c))/0x5)+-parseInt(_0x168dfc(0x205))/0x6*(-parseInt(_0x168dfc(0x1f1))/0x7)+-parseInt(_0x168dfc(0x1ef))/0x8*(parseInt(_0x168dfc(0x20b))/0x9)+-parseInt(_0x168dfc(0x1fd))/0xa;if(_0x15002e===_0x5d56a4)break;else _0x42cc8b['push'](_0x42cc8b['shift']());}catch(_0x1ef795){_0x42cc8b['push'](_0x42cc8b['shift']());}}}(a186_0x3026,0xe4b1d));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x364092){const _0x113f6b=a186_0x2842;if(cache[_0x113f6b(0x1f0)](_0x364092))return cache[_0x113f6b(0x1f3)](_0x364092);const _0xe6ca66=await listDatasets(_0x364092),_0xeeb16a=new Map();for(const _0x1e42be of _0xe6ca66){const _0x213af6=_0x1e42be['dbtableConfig'];_0x213af6?.['dbId']!=null&&_0xeeb16a[_0x113f6b(0x1f9)](_0x213af6[_0x113f6b(0x203)],_0x213af6[_0x113f6b(0x20d)]??_0x113f6b(0x1fb)+_0x213af6[_0x113f6b(0x203)]);}const _0x10b86b=[..._0xeeb16a[_0x113f6b(0x20a)]()][_0x113f6b(0x207)](([_0x3137d7,_0x3ff799])=>({'dbId':_0x3137d7,'dbName':_0x3ff799}));return cache[_0x113f6b(0x1f9)](_0x364092,_0x10b86b),_0x10b86b;}function a186_0x3026(){const _0x3b7933=['4kuCnDm','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','set','isNaN','db-','2294980gQugYw','623380Klohmb','\x22\x20under\x20app\x20\x22','length','489505mQKCjP','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','join','dbId','toLowerCase','150aJcVYd','filter','map','\x22\x20matches\x20multiple\x20databases:\x20','\x22.\x20Available:\x20','entries','15021QKTFKH','3523610TYfVWG','dbName','find','.\x20Be\x20more\x20specific.','6368eTXqJY','has','70945FlVJVl','3425841amDJOD','get','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','includes','No\x20database\x20matching\x20\x22'];a186_0x3026=function(){return _0x3b7933;};return a186_0x3026();}function a186_0x2842(_0x31d5b7,_0x17366a){_0x31d5b7=_0x31d5b7-0x1ee;const _0x30267d=a186_0x3026();let _0x2842fa=_0x30267d[_0x31d5b7];return _0x2842fa;}export async function resolveDb(_0x5219c2,_0x4b1ab9){const _0x34a2e5=a186_0x2842,_0x102af7=await listDatabases(_0x5219c2);if(_0x102af7[_0x34a2e5(0x1ff)]===0x0)return{'resolved':[],'error':_0x34a2e5(0x201)+_0x5219c2+_0x34a2e5(0x1f8)};if(!_0x4b1ab9)return{'resolved':_0x102af7};const _0x4c499a=Number(_0x4b1ab9);if(!Number[_0x34a2e5(0x1fa)](_0x4c499a)){const _0x586d81=_0x102af7[_0x34a2e5(0x20e)](_0x427ab8=>_0x427ab8['dbId']===_0x4c499a);if(_0x586d81)return{'resolved':[_0x586d81]};}const _0x100531=_0x4b1ab9[_0x34a2e5(0x204)](),_0x41c2ea=_0x102af7[_0x34a2e5(0x206)](_0xc8dff1=>_0xc8dff1[_0x34a2e5(0x20d)][_0x34a2e5(0x204)]()[_0x34a2e5(0x1f5)](_0x100531));if(_0x41c2ea['length']>0x0)return{'resolved':_0x41c2ea};const _0x157579=_0x102af7[_0x34a2e5(0x207)](_0xb70ae5=>_0xb70ae5[_0x34a2e5(0x20d)]+'\x20('+_0xb70ae5[_0x34a2e5(0x203)]+')')[_0x34a2e5(0x202)](',\x20');return{'resolved':[],'error':_0x34a2e5(0x1f6)+_0x4b1ab9+_0x34a2e5(0x1fe)+_0x5219c2+_0x34a2e5(0x209)+_0x157579+'.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.'};}export async function resolveOneDb(_0x183850,_0x4014d6){const _0x4b4ac2=a186_0x2842,{resolved:_0x197aa9,error:_0x1d4e18}=await resolveDb(_0x183850,_0x4014d6);if(_0x1d4e18)return{'db':null,'error':_0x1d4e18};if(_0x197aa9[_0x4b4ac2(0x1ff)]===0x1)return{'db':_0x197aa9[0x0]};if(!_0x4014d6){const _0x236faa=_0x197aa9['map'](_0x36bfb7=>_0x36bfb7['dbName']+'\x20('+_0x36bfb7[_0x4b4ac2(0x203)]+')')[_0x4b4ac2(0x202)](',\x20');return{'db':null,'error':_0x4b4ac2(0x1f4)+_0x236faa};}const _0x51b245=_0x197aa9['map'](_0x56a485=>_0x56a485[_0x4b4ac2(0x20d)]+'\x20('+_0x56a485['dbId']+')')[_0x4b4ac2(0x202)](',\x20');return{'db':null,'error':'\x22'+_0x4014d6+_0x4b4ac2(0x208)+_0x51b245+_0x4b4ac2(0x1ee)};}export async function getDbName(_0x50e1e5,_0x40c09e){const _0x565a05=a186_0x2842,_0x564054=await listDatabases(_0x50e1e5);return _0x564054[_0x565a05(0x20e)](_0x15612c=>_0x15612c['dbId']===_0x40c09e)?.[_0x565a05(0x20d)];}
1
+ (function(_0x33c332,_0x1e0509){const _0x327df3=a186_0x5deb,_0x419d66=_0x33c332();while(!![]){try{const _0x2b26a=-parseInt(_0x327df3(0x1fb))/0x1+-parseInt(_0x327df3(0x1f4))/0x2+parseInt(_0x327df3(0x1f8))/0x3+-parseInt(_0x327df3(0x1f1))/0x4*(parseInt(_0x327df3(0x1ff))/0x5)+parseInt(_0x327df3(0x200))/0x6+-parseInt(_0x327df3(0x1f5))/0x7+parseInt(_0x327df3(0x1f9))/0x8;if(_0x2b26a===_0x1e0509)break;else _0x419d66['push'](_0x419d66['shift']());}catch(_0x3478e2){_0x419d66['push'](_0x419d66['shift']());}}}(a186_0x1d7e,0x53bd2));function a186_0x5deb(_0x85a314,_0x2409bb){_0x85a314=_0x85a314-0x1f0;const _0x1d7e3a=a186_0x1d7e();let _0x5deb73=_0x1d7e3a[_0x85a314];return _0x5deb73;}function a186_0x1d7e(){const _0x19c031=['get','join','set','db-','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','685364wkAwGb','toLowerCase','.\x20Be\x20more\x20specific.','1049622kETvUC','2224145Irefqy','map','\x22.\x20Available:\x20','818754qKLyPh','11616752SYsfGe','isNaN','678289PcJSWk','includes','dbName','\x22\x20matches\x20multiple\x20databases:\x20','5fUEdgQ','1860948rnfAux','entries','dbtableConfig','dbId','length','find','filter','No\x20database\x20matching\x20\x22'];a186_0x1d7e=function(){return _0x19c031;};return a186_0x1d7e();}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x147443){const _0x4c2c29=a186_0x5deb;if(cache['has'](_0x147443))return cache[_0x4c2c29(0x208)](_0x147443);const _0x403928=await listDatasets(_0x147443),_0x13c725=new Map();for(const _0x36e07a of _0x403928){const _0x5296b8=_0x36e07a[_0x4c2c29(0x202)];_0x5296b8?.[_0x4c2c29(0x203)]!=null&&_0x13c725[_0x4c2c29(0x20a)](_0x5296b8[_0x4c2c29(0x203)],_0x5296b8[_0x4c2c29(0x1fd)]??_0x4c2c29(0x20b)+_0x5296b8['dbId']);}const _0x4b52ae=[..._0x13c725[_0x4c2c29(0x201)]()][_0x4c2c29(0x1f6)](([_0x17b872,_0x3a40b7])=>({'dbId':_0x17b872,'dbName':_0x3a40b7}));return cache['set'](_0x147443,_0x4b52ae),_0x4b52ae;}export async function resolveDb(_0x552b0c,_0x3d2ca5){const _0x1a4825=a186_0x5deb,_0x44a7a5=await listDatabases(_0x552b0c);if(_0x44a7a5[_0x1a4825(0x204)]===0x0)return{'resolved':[],'error':'No\x20linked\x20databases\x20found\x20under\x20app\x20\x22'+_0x552b0c+'\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.'};if(!_0x3d2ca5)return{'resolved':_0x44a7a5};const _0x452f98=Number(_0x3d2ca5);if(!Number[_0x1a4825(0x1fa)](_0x452f98)){const _0x36fb92=_0x44a7a5[_0x1a4825(0x205)](_0x12e271=>_0x12e271[_0x1a4825(0x203)]===_0x452f98);if(_0x36fb92)return{'resolved':[_0x36fb92]};}const _0x559c06=_0x3d2ca5[_0x1a4825(0x1f2)](),_0x42a884=_0x44a7a5[_0x1a4825(0x206)](_0x4e6cfc=>_0x4e6cfc[_0x1a4825(0x1fd)]['toLowerCase']()[_0x1a4825(0x1fc)](_0x559c06));if(_0x42a884[_0x1a4825(0x204)]>0x0)return{'resolved':_0x42a884};const _0x12035f=_0x44a7a5['map'](_0x38371c=>_0x38371c[_0x1a4825(0x1fd)]+'\x20('+_0x38371c[_0x1a4825(0x203)]+')')[_0x1a4825(0x209)](',\x20');return{'resolved':[],'error':_0x1a4825(0x207)+_0x3d2ca5+'\x22\x20under\x20app\x20\x22'+_0x552b0c+_0x1a4825(0x1f7)+_0x12035f+_0x1a4825(0x1f0)};}export async function resolveOneDb(_0x24424e,_0xeb84d0){const _0x6c41ed=a186_0x5deb,{resolved:_0x50fd9c,error:_0xf98a64}=await resolveDb(_0x24424e,_0xeb84d0);if(_0xf98a64)return{'db':null,'error':_0xf98a64};if(_0x50fd9c[_0x6c41ed(0x204)]===0x1)return{'db':_0x50fd9c[0x0]};if(!_0xeb84d0){const _0x1f444f=_0x50fd9c[_0x6c41ed(0x1f6)](_0x3c6206=>_0x3c6206[_0x6c41ed(0x1fd)]+'\x20('+_0x3c6206[_0x6c41ed(0x203)]+')')['join'](',\x20');return{'db':null,'error':_0x6c41ed(0x20c)+_0x1f444f};}const _0x36a9f9=_0x50fd9c['map'](_0x23f936=>_0x23f936[_0x6c41ed(0x1fd)]+'\x20('+_0x23f936['dbId']+')')[_0x6c41ed(0x209)](',\x20');return{'db':null,'error':'\x22'+_0xeb84d0+_0x6c41ed(0x1fe)+_0x36a9f9+_0x6c41ed(0x1f3)};}export async function getDbName(_0x4a1d17,_0xdd1021){const _0x27d2b6=a186_0x5deb,_0x567cbf=await listDatabases(_0x4a1d17);return _0x567cbf[_0x27d2b6(0x205)](_0x6b17d6=>_0x6b17d6[_0x27d2b6(0x203)]===_0xdd1021)?.['dbName'];}
@@ -1 +1 @@
1
- const a187_0x169ebf=a187_0x520f;(function(_0x3ed9bf,_0xc3cd13){const _0x2ad6e6=a187_0x520f,_0x20a778=_0x3ed9bf();while(!![]){try{const _0x243203=parseInt(_0x2ad6e6(0x200))/0x1*(-parseInt(_0x2ad6e6(0x1f0))/0x2)+-parseInt(_0x2ad6e6(0x1f4))/0x3+-parseInt(_0x2ad6e6(0x1f1))/0x4+-parseInt(_0x2ad6e6(0x1f9))/0x5*(-parseInt(_0x2ad6e6(0x1ef))/0x6)+-parseInt(_0x2ad6e6(0x1f3))/0x7+parseInt(_0x2ad6e6(0x1fc))/0x8*(-parseInt(_0x2ad6e6(0x1fb))/0x9)+-parseInt(_0x2ad6e6(0x1f7))/0xa*(-parseInt(_0x2ad6e6(0x1f5))/0xb);if(_0x243203===_0xc3cd13)break;else _0x20a778['push'](_0x20a778['shift']());}catch(_0x2ca464){_0x20a778['push'](_0x20a778['shift']());}}}(a187_0x2d81,0x3a300));import{constants}from'node:fs';function a187_0x2d81(){const _0x2ced69=['24KbLaPy','.json','cwd','appPagesDir','139060IlyVfH','84072NHeQkx','4rGvvZI','141104TcUOgL','page.lock.json','745759Lwkhqu','772056FMDXAu','2620871gUSwcN','toUpperCase','50CqiPwd','page','10kyxHtE','.rabetbase','911124chPuaC'];a187_0x2d81=function(){return _0x2ced69;};return a187_0x2d81();}import{access,mkdir}from'node:fs/promises';function a187_0x520f(_0x5d4c99,_0x25ef31){_0x5d4c99=_0x5d4c99-0x1ef;const _0x2d81e4=a187_0x2d81();let _0x520f9a=_0x2d81e4[_0x5d4c99];return _0x520f9a;}import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x1995ac,_0x4cb46f=process[a187_0x169ebf(0x1fe)]()){const _0x3e4ba0=a187_0x169ebf,_0x4ec8a7=resolve(_0x4cb46f),_0x583d82=join(_0x4ec8a7,'.rabetbase',_0x3e4ba0(0x1f8));return{'projectRoot':_0x4ec8a7,'pagesBaseDir':_0x583d82,'appPagesDir':join(_0x583d82,_0x1995ac),'lockFilePath':join(_0x4ec8a7,_0x3e4ba0(0x1fa),_0x3e4ba0(0x1f2))};}export function buildPageFileName(_0x4568b1,_0x43241d){const _0x5b20d5=a187_0x169ebf;return _0x4568b1+'-'+String(_0x43241d)[_0x5b20d5(0x1f6)]()+_0x5b20d5(0x1fd);}export function resolvePageFilePath(_0x2fdf05,_0x389880,_0x2dbc30){const _0x5b01e7=a187_0x169ebf;return join(_0x2fdf05[_0x5b01e7(0x1ff)],buildPageFileName(_0x389880,_0x2dbc30));}export async function ensureParentDirectory(_0x5a1449){await mkdir(dirname(_0x5a1449),{'recursive':!![]});}export async function fileExists(_0x1713b5){try{return await access(_0x1713b5,constants['F_OK']),!![];}catch{return![];}}
1
+ function a187_0x445d(_0x28b55d,_0x4affa2){_0x28b55d=_0x28b55d-0x166;const _0x526e90=a187_0x526e();let _0x445d22=_0x526e90[_0x28b55d];return _0x445d22;}(function(_0x53f4ba,_0x2588bf){const _0x184902=a187_0x445d,_0x1f598d=_0x53f4ba();while(!![]){try{const _0x3b6857=parseInt(_0x184902(0x16b))/0x1+-parseInt(_0x184902(0x169))/0x2*(parseInt(_0x184902(0x172))/0x3)+-parseInt(_0x184902(0x16f))/0x4*(parseInt(_0x184902(0x176))/0x5)+parseInt(_0x184902(0x167))/0x6*(-parseInt(_0x184902(0x174))/0x7)+-parseInt(_0x184902(0x16a))/0x8*(-parseInt(_0x184902(0x16e))/0x9)+parseInt(_0x184902(0x173))/0xa*(parseInt(_0x184902(0x168))/0xb)+-parseInt(_0x184902(0x170))/0xc*(parseInt(_0x184902(0x16d))/0xd);if(_0x3b6857===_0x2588bf)break;else _0x1f598d['push'](_0x1f598d['shift']());}catch(_0x11c158){_0x1f598d['push'](_0x1f598d['shift']());}}}(a187_0x526e,0xdd653));import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x172bc0,_0x5d4092=process['cwd']()){const _0x3d4c73=a187_0x445d,_0x2c8457=resolve(_0x5d4092),_0x43c152=join(_0x2c8457,'.rabetbase',_0x3d4c73(0x171));return{'projectRoot':_0x2c8457,'pagesBaseDir':_0x43c152,'appPagesDir':join(_0x43c152,_0x172bc0),'lockFilePath':join(_0x2c8457,'.rabetbase',_0x3d4c73(0x16c))};}function a187_0x526e(){const _0x5be9c5=['page','1263etPMqI','10FvvCTY','7adjLRs','appPagesDir','2617715qmXGVk','toUpperCase','2661174eGhVKL','5452139bdbGDi','5234zlInqD','8dzFxdy','1690025UfCSHs','page.lock.json','55601EqNUtm','7263882LYIuXr','4UtEdOX','48YBANqH'];a187_0x526e=function(){return _0x5be9c5;};return a187_0x526e();}export function buildPageFileName(_0x2e9f77,_0x57aeab){const _0x1cfe20=a187_0x445d;return _0x2e9f77+'-'+String(_0x57aeab)[_0x1cfe20(0x166)]()+'.json';}export function resolvePageFilePath(_0x318cba,_0x196e97,_0x45f21b){const _0x561a2f=a187_0x445d;return join(_0x318cba[_0x561a2f(0x175)],buildPageFileName(_0x196e97,_0x45f21b));}export async function ensureParentDirectory(_0x296e62){await mkdir(dirname(_0x296e62),{'recursive':!![]});}export async function fileExists(_0x5bc791){try{return await access(_0x5bc791,constants['F_OK']),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x5237e5,_0x1c3be2){const _0x1d86eb=a188_0x5f35,_0x3f66b3=_0x5237e5();while(!![]){try{const _0xf9ec14=-parseInt(_0x1d86eb(0x114))/0x1+-parseInt(_0x1d86eb(0x10a))/0x2*(parseInt(_0x1d86eb(0x110))/0x3)+parseInt(_0x1d86eb(0x10d))/0x4*(-parseInt(_0x1d86eb(0x10e))/0x5)+parseInt(_0x1d86eb(0x116))/0x6*(parseInt(_0x1d86eb(0x10c))/0x7)+-parseInt(_0x1d86eb(0x107))/0x8*(parseInt(_0x1d86eb(0x109))/0x9)+parseInt(_0x1d86eb(0x10b))/0xa+parseInt(_0x1d86eb(0x115))/0xb;if(_0xf9ec14===_0x1c3be2)break;else _0x3f66b3['push'](_0x3f66b3['shift']());}catch(_0x3529e1){_0x3f66b3['push'](_0x3f66b3['shift']());}}}(a188_0x4f03,0x43459));import a188_0x2eb0a6 from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x4bdb0){const _0x3d1a02=a188_0x5f35;return JSON['stringify'](JSON[_0x3d1a02(0x111)](_0x4bdb0),null,0x2)+'\x0a';}export function computePageContentHash(_0x5b5dcf){const _0x5ed30a=a188_0x5f35;return a188_0x2eb0a6[_0x5ed30a(0x108)](_0x5ed30a(0x113))[_0x5ed30a(0x112)](_0x5b5dcf)[_0x5ed30a(0x106)](_0x5ed30a(0x10f));}export function computeSerializedSchemaHash(_0xda17c0){return computePageContentHash(serializePageSchemaForFile(_0xda17c0));}function a188_0x4f03(){const _0x3e2d57=['8BmTOhL','createHash','4947786cNTDpK','32008DHjwuP','155370lQIGci','141134ZCBAFm','8msvuJR','566095RxONhG','hex','48OWsTFu','parse','update','md5','182984sXyLIr','12013870itCDdy','114ixZsmC','utf8','digest'];a188_0x4f03=function(){return _0x3e2d57;};return a188_0x4f03();}function a188_0x5f35(_0x4a6fda,_0x51375e){_0x4a6fda=_0x4a6fda-0x106;const _0x4f03d4=a188_0x4f03();let _0x5f351b=_0x4f03d4[_0x4a6fda];return _0x5f351b;}export async function computePageFileHash(_0x414ee5){const _0x59a77e=a188_0x5f35,_0x441616=await readFile(_0x414ee5,_0x59a77e(0x117));return computePageContentHash(_0x441616);}
1
+ function a188_0x319b(_0x2cff62,_0x42650b){_0x2cff62=_0x2cff62-0xe8;const _0xc5030c=a188_0xc503();let _0x319b80=_0xc5030c[_0x2cff62];return _0x319b80;}(function(_0x2174e6,_0x2b9587){const _0xc580bd=a188_0x319b,_0x210442=_0x2174e6();while(!![]){try{const _0x476f49=-parseInt(_0xc580bd(0xe9))/0x1+-parseInt(_0xc580bd(0xf6))/0x2+-parseInt(_0xc580bd(0xf0))/0x3+parseInt(_0xc580bd(0xee))/0x4+parseInt(_0xc580bd(0xeb))/0x5*(-parseInt(_0xc580bd(0xf5))/0x6)+-parseInt(_0xc580bd(0xed))/0x7+parseInt(_0xc580bd(0xf4))/0x8*(parseInt(_0xc580bd(0xf3))/0x9);if(_0x476f49===_0x2b9587)break;else _0x210442['push'](_0x210442['shift']());}catch(_0x134730){_0x210442['push'](_0x210442['shift']());}}}(a188_0xc503,0x758bf));function a188_0xc503(){const _0x2a6c1a=['utf8','15690sdENyT','md5','4760609UFcAsG','1745032RDVMju','parse','416706cROFYR','digest','update','27081HfelaL','6664xLRZOI','1182VPIDiH','792500ZRSofj','hex','createHash','stringify','627859uTcCtH'];a188_0xc503=function(){return _0x2a6c1a;};return a188_0xc503();}import a188_0x14f6df from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x15df59){const _0x3197ac=a188_0x319b;return JSON[_0x3197ac(0xe8)](JSON[_0x3197ac(0xef)](_0x15df59),null,0x2)+'\x0a';}export function computePageContentHash(_0x367a9d){const _0x3a9392=a188_0x319b;return a188_0x14f6df[_0x3a9392(0xf8)](_0x3a9392(0xec))[_0x3a9392(0xf2)](_0x367a9d)[_0x3a9392(0xf1)](_0x3a9392(0xf7));}export function computeSerializedSchemaHash(_0x55bc3c){return computePageContentHash(serializePageSchemaForFile(_0x55bc3c));}export async function computePageFileHash(_0x58696e){const _0x4b5ce7=a188_0x319b,_0x1045e1=await readFile(_0x58696e,_0x4b5ce7(0xea));return computePageContentHash(_0x1045e1);}
@@ -1 +1 @@
1
- (function(_0x5d39e0,_0x27b7c3){const _0x16c8a4=a189_0x38e9,_0x2e465c=_0x5d39e0();while(!![]){try{const _0x481a88=-parseInt(_0x16c8a4(0x176))/0x1+-parseInt(_0x16c8a4(0x17a))/0x2*(parseInt(_0x16c8a4(0x17f))/0x3)+-parseInt(_0x16c8a4(0x185))/0x4*(parseInt(_0x16c8a4(0x178))/0x5)+parseInt(_0x16c8a4(0x17d))/0x6*(-parseInt(_0x16c8a4(0x184))/0x7)+parseInt(_0x16c8a4(0x180))/0x8+parseInt(_0x16c8a4(0x17c))/0x9+parseInt(_0x16c8a4(0x189))/0xa;if(_0x481a88===_0x27b7c3)break;else _0x2e465c['push'](_0x2e465c['shift']());}catch(_0x10b657){_0x2e465c['push'](_0x2e465c['shift']());}}}(a189_0x1265,0x6c429));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a189_0x38e9(_0x396af7,_0x4feef2){_0x396af7=_0x396af7-0x176;const _0x1265eb=a189_0x1265();let _0x38e928=_0x1265eb[_0x396af7];return _0x38e928;}export function createEmptyPageLock(){return{'apps':{}};}function a189_0x1265(){const _0x15dc48=['5015896FVSpDl','parse','object','lastSync','2377410WYGWeg','33776iNhpmH','code','utf8','ENOENT','9379470cbbuxZ','223250FdOEzA','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','235IoMprr','pages','160XmOXSu','stringify','6158943RXcBOB','6fBrfDn','apps','31728SXJILE'];a189_0x1265=function(){return _0x15dc48;};return a189_0x1265();}export function ensurePageLockScope(_0x2761bc,_0x314439){const _0x39f3ea=a189_0x38e9,_0x3d01c1={'apps':_0x2761bc[_0x39f3ea(0x17e)]&&typeof _0x2761bc[_0x39f3ea(0x17e)]===_0x39f3ea(0x182)?_0x2761bc[_0x39f3ea(0x17e)]:{}};let _0x5cf3f3=_0x3d01c1[_0x39f3ea(0x17e)][_0x314439];if(!_0x5cf3f3)return _0x5cf3f3={'lastSync':'','pages':{}},_0x3d01c1[_0x39f3ea(0x17e)][_0x314439]=_0x5cf3f3,{'lockData':_0x3d01c1,'appLock':_0x5cf3f3};return!_0x5cf3f3[_0x39f3ea(0x183)]&&(_0x5cf3f3['lastSync']=''),(!_0x5cf3f3['pages']||typeof _0x5cf3f3[_0x39f3ea(0x179)]!==_0x39f3ea(0x182))&&(_0x5cf3f3[_0x39f3ea(0x179)]={}),{'lockData':_0x3d01c1,'appLock':_0x5cf3f3};}export async function readPageLockFile(_0x4c80cd){const _0x302eaa=a189_0x38e9;try{const _0x212d60=await readFile(_0x4c80cd,'utf8'),_0x2df792=JSON[_0x302eaa(0x181)](_0x212d60);return{'apps':_0x2df792[_0x302eaa(0x17e)]&&typeof _0x2df792[_0x302eaa(0x17e)]===_0x302eaa(0x182)?_0x2df792['apps']:{}};}catch(_0x2662f8){if(_0x2662f8[_0x302eaa(0x186)]===_0x302eaa(0x188))return null;throw new Error(_0x302eaa(0x177)+String(_0x2662f8));}}export async function writePageLockFile(_0x409e68,_0x2952f7){const _0x156018=a189_0x38e9;await mkdir(dirname(_0x409e68),{'recursive':!![]}),await writeFile(_0x409e68,JSON[_0x156018(0x17b)](_0x2952f7,null,0x2),_0x156018(0x187));}
1
+ function a189_0x26f6(){const _0x4f876c=['4326064bMsvPT','2622630sUjfXw','parse','698670tcsABH','pages','5xLJbGx','395756mbDVlf','1037822RAbMyd','object','ENOENT','utf8','3671164ORXbmN','code','1001128KgEXAT','apps','lastSync','Failed\x20to\x20read\x20page\x20lock\x20file:\x20'];a189_0x26f6=function(){return _0x4f876c;};return a189_0x26f6();}(function(_0x3fb2e7,_0x3307dd){const _0xeb6f74=a189_0x3a7c,_0x1d3167=_0x3fb2e7();while(!![]){try{const _0xf355b6=parseInt(_0xeb6f74(0x1b9))/0x1+-parseInt(_0xeb6f74(0x1ba))/0x2+-parseInt(_0xeb6f74(0x1b6))/0x3+parseInt(_0xeb6f74(0x1c0))/0x4*(parseInt(_0xeb6f74(0x1b8))/0x5)+parseInt(_0xeb6f74(0x1c5))/0x6+-parseInt(_0xeb6f74(0x1be))/0x7+parseInt(_0xeb6f74(0x1c4))/0x8;if(_0xf355b6===_0x3307dd)break;else _0x1d3167['push'](_0x1d3167['shift']());}catch(_0x4cf004){_0x1d3167['push'](_0x1d3167['shift']());}}}(a189_0x26f6,0x54e00));function a189_0x3a7c(_0x25f688,_0x4200a7){_0x25f688=_0x25f688-0x1b5;const _0x26f6e3=a189_0x26f6();let _0x3a7c24=_0x26f6e3[_0x25f688];return _0x3a7c24;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x5f05e4,_0x271b25){const _0x5ae1df=a189_0x3a7c,_0x4243de={'apps':_0x5f05e4['apps']&&typeof _0x5f05e4[_0x5ae1df(0x1c1)]==='object'?_0x5f05e4[_0x5ae1df(0x1c1)]:{}};let _0x7da092=_0x4243de[_0x5ae1df(0x1c1)][_0x271b25];if(!_0x7da092)return _0x7da092={'lastSync':'','pages':{}},_0x4243de['apps'][_0x271b25]=_0x7da092,{'lockData':_0x4243de,'appLock':_0x7da092};return!_0x7da092[_0x5ae1df(0x1c2)]&&(_0x7da092[_0x5ae1df(0x1c2)]=''),(!_0x7da092[_0x5ae1df(0x1b7)]||typeof _0x7da092[_0x5ae1df(0x1b7)]!==_0x5ae1df(0x1bb))&&(_0x7da092[_0x5ae1df(0x1b7)]={}),{'lockData':_0x4243de,'appLock':_0x7da092};}export async function readPageLockFile(_0x5d7301){const _0x1b84a4=a189_0x3a7c;try{const _0x54f05a=await readFile(_0x5d7301,_0x1b84a4(0x1bd)),_0x43bfd8=JSON[_0x1b84a4(0x1b5)](_0x54f05a);return{'apps':_0x43bfd8[_0x1b84a4(0x1c1)]&&typeof _0x43bfd8[_0x1b84a4(0x1c1)]===_0x1b84a4(0x1bb)?_0x43bfd8[_0x1b84a4(0x1c1)]:{}};}catch(_0xdadec5){if(_0xdadec5[_0x1b84a4(0x1bf)]===_0x1b84a4(0x1bc))return null;throw new Error(_0x1b84a4(0x1c3)+String(_0xdadec5));}}export async function writePageLockFile(_0x48d9d1,_0x36532b){await mkdir(dirname(_0x48d9d1),{'recursive':!![]}),await writeFile(_0x48d9d1,JSON['stringify'](_0x36532b,null,0x2),'utf8');}
@@ -1 +1 @@
1
- const a191_0x40bafc=a191_0x5481;(function(_0x18c302,_0x570817){const _0x40d9e0=a191_0x5481,_0x3ac2d4=_0x18c302();while(!![]){try{const _0x448b0d=-parseInt(_0x40d9e0(0xcb))/0x1*(-parseInt(_0x40d9e0(0xcc))/0x2)+parseInt(_0x40d9e0(0xc8))/0x3*(-parseInt(_0x40d9e0(0xd0))/0x4)+-parseInt(_0x40d9e0(0xd1))/0x5+parseInt(_0x40d9e0(0xc9))/0x6*(parseInt(_0x40d9e0(0xcf))/0x7)+-parseInt(_0x40d9e0(0xcd))/0x8+parseInt(_0x40d9e0(0xd3))/0x9*(parseInt(_0x40d9e0(0xd6))/0xa)+parseInt(_0x40d9e0(0xd2))/0xb;if(_0x448b0d===_0x570817)break;else _0x3ac2d4['push'](_0x3ac2d4['shift']());}catch(_0x487c8f){_0x3ac2d4['push'](_0x3ac2d4['shift']());}}}(a191_0x5d42,0xa7617));function a191_0x5d42(){const _0x3cb3fb=['660149AMSzyo','36HdduEN','2611755OKbRpK','11450549TxOndd','549JgTNbG','sql-trash','/sql','83290aSzPeZ','sql','411993LDKirc','30hSQSlA','sql.lock.json','119534hyjYLk','12aHnfWC','2350768NjCfzE','.rabetbase'];a191_0x5d42=function(){return _0x3cb3fb;};return a191_0x5d42();}import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a191_0x40bafc(0xce),LOCK_FILE_NAME=a191_0x40bafc(0xca),TRASH_DIR_NAME=a191_0x40bafc(0xd4);function a191_0x5481(_0x50a690,_0x44847e){_0x50a690=_0x50a690-0xc7;const _0x5d42eb=a191_0x5d42();let _0x548106=_0x5d42eb[_0x50a690];return _0x548106;}export function loadSqlProjectConfig(_0x2b5b30,_0x1ba580){const _0x2952d2=a191_0x40bafc,_0x55374f=resolve(_0x1ba580??findProjectRootDirectory()),_0x42a291=DOT_DIR+_0x2952d2(0xd5),_0xf07bd7=_0x42a291+'/'+_0x2b5b30;return{'projectRoot':_0x55374f,'appCode':_0x2b5b30,'sqlWorkspaceRoot':_0x42a291,'sqlRoot':_0xf07bd7,'sqlRootDir':resolve(_0x55374f,DOT_DIR,_0x2952d2(0xc7),_0x2b5b30),'lockFilePath':resolve(_0x55374f,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x55374f,DOT_DIR,TRASH_DIR_NAME)};}
1
+ function a191_0x4b89(_0x191b9b,_0x5586c4){_0x191b9b=_0x191b9b-0x90;const _0x4536ea=a191_0x4536();let _0x4b8919=_0x4536ea[_0x191b9b];return _0x4b8919;}const a191_0x191925=a191_0x4b89;(function(_0x3a1939,_0x16bcfa){const _0x380472=a191_0x4b89,_0x27cd89=_0x3a1939();while(!![]){try{const _0x200e41=parseInt(_0x380472(0x95))/0x1*(-parseInt(_0x380472(0x96))/0x2)+-parseInt(_0x380472(0x9b))/0x3+-parseInt(_0x380472(0x97))/0x4*(-parseInt(_0x380472(0x9d))/0x5)+parseInt(_0x380472(0x90))/0x6*(-parseInt(_0x380472(0x94))/0x7)+parseInt(_0x380472(0x98))/0x8*(-parseInt(_0x380472(0x9f))/0x9)+-parseInt(_0x380472(0x9c))/0xa+-parseInt(_0x380472(0x91))/0xb*(-parseInt(_0x380472(0x92))/0xc);if(_0x200e41===_0x16bcfa)break;else _0x27cd89['push'](_0x27cd89['shift']());}catch(_0x108fa0){_0x27cd89['push'](_0x27cd89['shift']());}}}(a191_0x4536,0x52aeb));function a191_0x4536(){const _0x219930=['5FLDmzC','.rabetbase','279MyHzdm','137886ljBOva','338239DXxrle','720IrusQX','sql.lock.json','35prdRwA','262bEmxGe','3236UFAGkD','2590088gngOZx','119752GQBBAo','sql-trash','/sql','1847592AMMpOy','5350710tqnBvX'];a191_0x4536=function(){return _0x219930;};return a191_0x4536();}import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a191_0x191925(0x9e),LOCK_FILE_NAME=a191_0x191925(0x93),TRASH_DIR_NAME=a191_0x191925(0x99);export function loadSqlProjectConfig(_0x404a2c,_0x2b4d5c){const _0x25fe05=a191_0x191925,_0x154567=resolve(_0x2b4d5c??findProjectRootDirectory()),_0x55d55e=DOT_DIR+_0x25fe05(0x9a),_0x5404d2=_0x55d55e+'/'+_0x404a2c;return{'projectRoot':_0x154567,'appCode':_0x404a2c,'sqlWorkspaceRoot':_0x55d55e,'sqlRoot':_0x5404d2,'sqlRootDir':resolve(_0x154567,DOT_DIR,'sql',_0x404a2c),'lockFilePath':resolve(_0x154567,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x154567,DOT_DIR,TRASH_DIR_NAME)};}
@@ -1 +1 @@
1
- (function(_0x343117,_0x367ced){const _0x1b4754=a192_0x529f,_0x446051=_0x343117();while(!![]){try{const _0x461f9f=-parseInt(_0x1b4754(0x16e))/0x1*(parseInt(_0x1b4754(0x188))/0x2)+parseInt(_0x1b4754(0x184))/0x3*(parseInt(_0x1b4754(0x17d))/0x4)+parseInt(_0x1b4754(0x17c))/0x5+-parseInt(_0x1b4754(0x17f))/0x6+parseInt(_0x1b4754(0x181))/0x7+-parseInt(_0x1b4754(0x17a))/0x8*(parseInt(_0x1b4754(0x17b))/0x9)+-parseInt(_0x1b4754(0x183))/0xa*(-parseInt(_0x1b4754(0x178))/0xb);if(_0x461f9f===_0x367ced)break;else _0x446051['push'](_0x446051['shift']());}catch(_0x193a31){_0x446051['push'](_0x446051['shift']());}}}(a192_0x6507,0x5c2e9));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x3ff044){const _0x257c6d=a192_0x529f;if(_0x3ff044===_0x257c6d(0x180))return _0x257c6d(0x186);if(_0x3ff044===_0x257c6d(0x189))return'mybatisXml';return undefined;}async function scanSqlFilesRecursively(_0x37922a,_0x47b3cc){const _0x1c0d28=a192_0x529f,_0x468f92=[];try{const _0x28755c=await readdir(_0x37922a,{'withFileTypes':!![]});for(const _0x4dc6ee of _0x28755c){const _0xd7f0ea=join(_0x37922a,_0x4dc6ee['name']);if(_0x4dc6ee[_0x1c0d28(0x182)]()){_0x468f92[_0x1c0d28(0x170)](...await scanSqlFilesRecursively(_0xd7f0ea,_0x47b3cc));continue;}if(!_0x4dc6ee[_0x1c0d28(0x16f)]())continue;const _0x4f9d40=extname(_0x4dc6ee[_0x1c0d28(0x173)])[_0x1c0d28(0x169)](),_0x4c227b=extensionToMode(_0x4f9d40);if(!_0x4c227b)continue;const _0x518e31=relative(_0x47b3cc,_0xd7f0ea)[_0x1c0d28(0x16a)](/\\/g,'/'),_0x28b597=_0x518e31[_0x1c0d28(0x16b)]('/')[_0x1c0d28(0x16c)](Boolean),_0x33105a=parseSqlPath(_0x28b597,_0x4dc6ee['name'],_0x4f9d40);if(!_0x33105a)continue;_0x468f92[_0x1c0d28(0x170)]({'sqlCode':_0x33105a[_0x1c0d28(0x187)],'sqlName':_0x33105a[_0x1c0d28(0x179)],'dbDirectory':_0x28b597[0x0],'filePath':_0xd7f0ea,'relativePath':_0x518e31,'lockKey':_0x33105a['sqlCode'],'mode':_0x4c227b});}}catch(_0x503cf8){if(_0x503cf8[_0x1c0d28(0x171)]!==_0x1c0d28(0x175))throw _0x503cf8;}return _0x468f92;}function a192_0x529f(_0x6a01ee,_0x3fb451){_0x6a01ee=_0x6a01ee-0x169;const _0x65070e=a192_0x6507();let _0x529fbd=_0x65070e[_0x6a01ee];return _0x529fbd;}export async function scanLocalSqlQueries(_0x531e7d){const _0x143062=a192_0x529f;return scanSqlFilesRecursively(_0x531e7d[_0x143062(0x185)],_0x531e7d[_0x143062(0x185)]);}export function resolveLocalSqlFilePath(_0x1a5726,_0xfe378a,_0x5a4d7c){const _0x434c8a=a192_0x529f,_0xeeab7a=_0x5a4d7c?.[_0x434c8a(0x172)]||(_0x5a4d7c?.['sqlName']||_0x5a4d7c?.['dbName']?buildSqlRelativePath(_0xfe378a,_0x5a4d7c?.['sqlName'],_0x5a4d7c?.['dbName'],_0x5a4d7c?.[_0x434c8a(0x17e)]||'sql',_0x5a4d7c?.['dbId']):buildDefaultSqlFileName(_0xfe378a,_0x5a4d7c?.[_0x434c8a(0x17e)]||_0x434c8a(0x186)));return join(_0x1a5726[_0x434c8a(0x185)],_0xeeab7a);}function a192_0x6507(){const _0x3db473=['mode','1647504NhLGoD','.sql','2043496VTsmDy','isDirectory','105290IYbcEc','177pTbFXF','sqlRootDir','sql','sqlCode','242rplRvO','.xml','toLowerCase','replace','split','filter','slice','2282yWTQvH','isFile','push','code','path','name','length','ENOENT','test','indexOf','242mlkHpW','sqlName','16YZANae','59544rvyZtW','451610SAUats','22212kQnZZj'];a192_0x6507=function(){return _0x3db473;};return a192_0x6507();}export async function directoryExists(_0x3c2edf){try{const _0x3b1194=await stat(_0x3c2edf);return _0x3b1194['isDirectory']();}catch{return![];}}function parseSqlPath(_0x1bdc19,_0x28f24,_0x1c8e57){const _0x29ebba=a192_0x529f,_0x3e1757=_0x28f24[_0x29ebba(0x16d)](0x0,-_0x1c8e57[_0x29ebba(0x174)]);if(_0x1bdc19[_0x29ebba(0x174)]<0x2)return null;const _0x4053bf=_0x3e1757[_0x29ebba(0x177)]('_');if(_0x4053bf<=0x0||_0x4053bf>=_0x3e1757[_0x29ebba(0x174)]-0x1)return null;const _0x29ebbb=_0x3e1757[_0x29ebba(0x16d)](0x0,_0x4053bf);if(!isLikelySqlCode(_0x29ebbb))return null;return{'sqlCode':_0x29ebbb,'sqlName':_0x3e1757[_0x29ebba(0x16d)](_0x4053bf+0x1)};}function isLikelySqlCode(_0x5c5915){const _0xcbfa29=a192_0x529f;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0xcbfa29(0x176)](_0x5c5915);}
1
+ (function(_0x3b6dfb,_0x41a251){const _0x2404ec=a192_0xf857,_0x37d7f5=_0x3b6dfb();while(!![]){try{const _0x32c126=parseInt(_0x2404ec(0x1dd))/0x1+parseInt(_0x2404ec(0x1de))/0x2*(parseInt(_0x2404ec(0x1e7))/0x3)+-parseInt(_0x2404ec(0x1c8))/0x4*(parseInt(_0x2404ec(0x1ce))/0x5)+parseInt(_0x2404ec(0x1d1))/0x6+parseInt(_0x2404ec(0x1c9))/0x7+parseInt(_0x2404ec(0x1d6))/0x8*(parseInt(_0x2404ec(0x1db))/0x9)+parseInt(_0x2404ec(0x1ca))/0xa*(-parseInt(_0x2404ec(0x1d2))/0xb);if(_0x32c126===_0x41a251)break;else _0x37d7f5['push'](_0x37d7f5['shift']());}catch(_0xe6ae2d){_0x37d7f5['push'](_0x37d7f5['shift']());}}}(a192_0x89ab,0xf37c8));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0xb7f830){const _0x32b0fd=a192_0xf857;if(_0xb7f830===_0x32b0fd(0x1cb))return _0x32b0fd(0x1c6);if(_0xb7f830===_0x32b0fd(0x1c7))return _0x32b0fd(0x1c5);return undefined;}function a192_0x89ab(){const _0x268465=['mode','21351NTAVWi','mybatisXml','sql','.xml','40LVRmYj','6552602WEceni','100ZJLyfR','.sql','test','slice','127980FTJYSy','dbId','push','8673360qdehrI','6062936JcHWmX','split','length','replace','2127304ZCchug','toLowerCase','sqlRootDir','name','ENOENT','63LNmkTA','filter','1938409OuAGYv','164aesSTG','isDirectory','dbName','sqlName','indexOf','code','sqlCode','path'];a192_0x89ab=function(){return _0x268465;};return a192_0x89ab();}async function scanSqlFilesRecursively(_0x261d99,_0x1243a5){const _0x1ba168=a192_0xf857,_0x2dfcab=[];try{const _0x2bc41c=await readdir(_0x261d99,{'withFileTypes':!![]});for(const _0x2f47ef of _0x2bc41c){const _0x18cfc0=join(_0x261d99,_0x2f47ef[_0x1ba168(0x1d9)]);if(_0x2f47ef['isDirectory']()){_0x2dfcab[_0x1ba168(0x1d0)](...await scanSqlFilesRecursively(_0x18cfc0,_0x1243a5));continue;}if(!_0x2f47ef['isFile']())continue;const _0x49ffb7=extname(_0x2f47ef[_0x1ba168(0x1d9)])[_0x1ba168(0x1d7)](),_0x6b4948=extensionToMode(_0x49ffb7);if(!_0x6b4948)continue;const _0x33e266=relative(_0x1243a5,_0x18cfc0)[_0x1ba168(0x1d5)](/\\/g,'/'),_0x416920=_0x33e266[_0x1ba168(0x1d3)]('/')[_0x1ba168(0x1dc)](Boolean),_0xb930d1=parseSqlPath(_0x416920,_0x2f47ef['name'],_0x49ffb7);if(!_0xb930d1)continue;_0x2dfcab[_0x1ba168(0x1d0)]({'sqlCode':_0xb930d1[_0x1ba168(0x1e4)],'sqlName':_0xb930d1[_0x1ba168(0x1e1)],'dbDirectory':_0x416920[0x0],'filePath':_0x18cfc0,'relativePath':_0x33e266,'lockKey':_0xb930d1[_0x1ba168(0x1e4)],'mode':_0x6b4948});}}catch(_0x2f4586){if(_0x2f4586[_0x1ba168(0x1e3)]!==_0x1ba168(0x1da))throw _0x2f4586;}return _0x2dfcab;}export async function scanLocalSqlQueries(_0x3593c2){const _0x210b3a=a192_0xf857;return scanSqlFilesRecursively(_0x3593c2[_0x210b3a(0x1d8)],_0x3593c2[_0x210b3a(0x1d8)]);}export function resolveLocalSqlFilePath(_0x3a2fea,_0x4d0945,_0x572622){const _0x5b92f9=a192_0xf857,_0x1fb965=_0x572622?.[_0x5b92f9(0x1e5)]||(_0x572622?.['sqlName']||_0x572622?.[_0x5b92f9(0x1e0)]?buildSqlRelativePath(_0x4d0945,_0x572622?.[_0x5b92f9(0x1e1)],_0x572622?.['dbName'],_0x572622?.[_0x5b92f9(0x1e6)]||_0x5b92f9(0x1c6),_0x572622?.[_0x5b92f9(0x1cf)]):buildDefaultSqlFileName(_0x4d0945,_0x572622?.[_0x5b92f9(0x1e6)]||_0x5b92f9(0x1c6)));return join(_0x3a2fea[_0x5b92f9(0x1d8)],_0x1fb965);}function a192_0xf857(_0x307ab0,_0x386e72){_0x307ab0=_0x307ab0-0x1c5;const _0x89ab4b=a192_0x89ab();let _0xf8576f=_0x89ab4b[_0x307ab0];return _0xf8576f;}export async function directoryExists(_0x16e864){const _0x3ad6dc=a192_0xf857;try{const _0x40ce00=await stat(_0x16e864);return _0x40ce00[_0x3ad6dc(0x1df)]();}catch{return![];}}function parseSqlPath(_0x4a2fef,_0x430d01,_0x5700c8){const _0x2463ca=a192_0xf857,_0x21da7a=_0x430d01[_0x2463ca(0x1cd)](0x0,-_0x5700c8[_0x2463ca(0x1d4)]);if(_0x4a2fef[_0x2463ca(0x1d4)]<0x2)return null;const _0x6df44=_0x21da7a[_0x2463ca(0x1e2)]('_');if(_0x6df44<=0x0||_0x6df44>=_0x21da7a['length']-0x1)return null;const _0x483d6e=_0x21da7a['slice'](0x0,_0x6df44);if(!isLikelySqlCode(_0x483d6e))return null;return{'sqlCode':_0x483d6e,'sqlName':_0x21da7a[_0x2463ca(0x1cd)](_0x6df44+0x1)};}function isLikelySqlCode(_0x301f82){const _0x37db3d=a192_0xf857;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x37db3d(0x1cc)](_0x301f82);}
@@ -1 +1 @@
1
- (function(_0x1145da,_0x2c7656){const _0x308112=a193_0x432f,_0x3b4865=_0x1145da();while(!![]){try{const _0x424ca6=-parseInt(_0x308112(0x14f))/0x1+-parseInt(_0x308112(0x14b))/0x2+-parseInt(_0x308112(0x14c))/0x3+parseInt(_0x308112(0x148))/0x4*(parseInt(_0x308112(0x147))/0x5)+parseInt(_0x308112(0x14a))/0x6+-parseInt(_0x308112(0x145))/0x7+parseInt(_0x308112(0x146))/0x8;if(_0x424ca6===_0x2c7656)break;else _0x3b4865['push'](_0x3b4865['shift']());}catch(_0x151e44){_0x3b4865['push'](_0x3b4865['shift']());}}}(a193_0x5dee,0xdf1cc));import{readFile}from'node:fs/promises';import a193_0x432161 from'node:crypto';export function computeSqlContentHash(_0xf5ae63){const _0x30cc68=a193_0x432f;return a193_0x432161['createHash'](_0x30cc68(0x14d))[_0x30cc68(0x149)](_0xf5ae63)[_0x30cc68(0x14e)](_0x30cc68(0x150));}export async function computeSqlFileHash(_0x2db612){const _0x51e281=await readFile(_0x2db612,'utf8');return computeSqlContentHash(_0x51e281);}function a193_0x432f(_0x2ab31e,_0x3db06c){_0x2ab31e=_0x2ab31e-0x145;const _0x5dee51=a193_0x5dee();let _0x432fbc=_0x5dee51[_0x2ab31e];return _0x432fbc;}function a193_0x5dee(){const _0x4c8ab7=['5505175cPTnLh','4ejQmoY','update','3074196tQLkaC','2776458yqOeDz','1174041lSyBMu','md5','digest','1041942wdiANt','hex','12693604xwNTKf','31482856tAnDWX'];a193_0x5dee=function(){return _0x4c8ab7;};return a193_0x5dee();}
1
+ function a193_0x1d50(_0x2c2b5b,_0x171964){_0x2c2b5b=_0x2c2b5b-0x1eb;const _0xc71f86=a193_0xc71f();let _0x1d5087=_0xc71f86[_0x2c2b5b];return _0x1d5087;}(function(_0x215682,_0x561998){const _0x5a6eec=a193_0x1d50,_0x4cb18b=_0x215682();while(!![]){try{const _0x4ba6f4=-parseInt(_0x5a6eec(0x1f5))/0x1*(-parseInt(_0x5a6eec(0x1ef))/0x2)+-parseInt(_0x5a6eec(0x1fa))/0x3*(parseInt(_0x5a6eec(0x1f6))/0x4)+-parseInt(_0x5a6eec(0x1eb))/0x5*(-parseInt(_0x5a6eec(0x1f9))/0x6)+parseInt(_0x5a6eec(0x1f1))/0x7+parseInt(_0x5a6eec(0x1f4))/0x8+parseInt(_0x5a6eec(0x1ec))/0x9*(parseInt(_0x5a6eec(0x1ed))/0xa)+parseInt(_0x5a6eec(0x1f0))/0xb*(-parseInt(_0x5a6eec(0x1f2))/0xc);if(_0x4ba6f4===_0x561998)break;else _0x4cb18b['push'](_0x4cb18b['shift']());}catch(_0x359e81){_0x4cb18b['push'](_0x4cb18b['shift']());}}}(a193_0xc71f,0xdbdae));import{readFile}from'node:fs/promises';function a193_0xc71f(){const _0xead24a=['91011OtZVsq','115NMelvZ','23742fwiHnU','4100Uvvdoj','update','36HwRcOg','319CavQCB','2477615pNELLn','1088124uaPjuP','hex','1398296ztwfzN','34994WpOCcG','16SkQZld','createHash','digest','368166BtUFXb'];a193_0xc71f=function(){return _0xead24a;};return a193_0xc71f();}import a193_0x5f2f40 from'node:crypto';export function computeSqlContentHash(_0x62e6b4){const _0x2285a9=a193_0x1d50;return a193_0x5f2f40[_0x2285a9(0x1f7)]('md5')[_0x2285a9(0x1ee)](_0x62e6b4)[_0x2285a9(0x1f8)](_0x2285a9(0x1f3));}export async function computeSqlFileHash(_0x4dbe68){const _0x496a7d=await readFile(_0x4dbe68,'utf8');return computeSqlContentHash(_0x496a7d);}
@@ -1 +1 @@
1
- (function(_0x2fdc6a,_0x87fdfd){const _0x229546=a194_0x53e2,_0x4a540f=_0x2fdc6a();while(!![]){try{const _0x2b42c2=-parseInt(_0x229546(0x144))/0x1+-parseInt(_0x229546(0x14a))/0x2+parseInt(_0x229546(0x13b))/0x3*(-parseInt(_0x229546(0x14e))/0x4)+-parseInt(_0x229546(0x139))/0x5*(parseInt(_0x229546(0x148))/0x6)+-parseInt(_0x229546(0x142))/0x7*(parseInt(_0x229546(0x13f))/0x8)+parseInt(_0x229546(0x14b))/0x9+parseInt(_0x229546(0x147))/0xa;if(_0x2b42c2===_0x87fdfd)break;else _0x4a540f['push'](_0x4a540f['shift']());}catch(_0x4a6aa4){_0x4a540f['push'](_0x4a540f['shift']());}}}(a194_0x28ee,0x3f3b8));function a194_0x28ee(){const _0x478ad0=['ENOENT','192lNvocz','stringify','parse','46326sxyPMV','lastSync','476442PIeOxy','code','utf8','15481500WPCbPk','6fBpwwl','\x22.\x20','774212coMmYf','884574EIBrrx','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','152FFGEPz','936270oSavrZ','sqlRoot','14037tuaJhP','\x22\x20vs\x20lock\x20\x22','apps'];a194_0x28ee=function(){return _0x478ad0;};return a194_0x28ee();}function a194_0x53e2(_0x3dfc70,_0x4bb56a){_0x3dfc70=_0x3dfc70-0x139;const _0x28ee99=a194_0x28ee();let _0x53e2ec=_0x28ee99[_0x3dfc70];return _0x53e2ec;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x234f35,_0x230bad,_0x2ac922,_0x2302e3){const _0x204663=a194_0x53e2,_0x1bfaec=_0x234f35??createEmptySqlLock();let _0x1c1e02=_0x1bfaec[_0x204663(0x13d)][_0x230bad];if(!_0x1c1e02)return _0x1c1e02={'sqlRoot':_0x2ac922,'lastSync':'','sqls':{}},_0x1bfaec[_0x204663(0x13d)][_0x230bad]=_0x1c1e02,{'lockData':_0x1bfaec,'appLock':_0x1c1e02};if(!_0x1c1e02['sqlRoot'])_0x1c1e02[_0x204663(0x13a)]=_0x2ac922;else{if(_0x1c1e02[_0x204663(0x13a)]!==_0x2ac922)throw new Error(_0x2302e3+':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22'+_0x2ac922+_0x204663(0x13c)+_0x1c1e02['sqlRoot']+_0x204663(0x149)+_0x204663(0x14d));}return!_0x1c1e02['sqls']&&(_0x1c1e02['sqls']={}),!_0x1c1e02[_0x204663(0x143)]&&(_0x1c1e02[_0x204663(0x143)]=''),{'lockData':_0x1bfaec,'appLock':_0x1c1e02};}export async function readSqlLockFile(_0x52ea9f){const _0x2649a4=a194_0x53e2;try{const _0x35f108=await readFile(_0x52ea9f,_0x2649a4(0x146));return JSON[_0x2649a4(0x141)](_0x35f108);}catch(_0x4dc56a){if(_0x4dc56a[_0x2649a4(0x145)]===_0x2649a4(0x13e))return null;throw new Error(_0x2649a4(0x14c)+String(_0x4dc56a));}}export async function writeSqlLockFile(_0x37bf3d,_0x127253){const _0x4cd34d=a194_0x53e2;await mkdir(dirname(_0x37bf3d),{'recursive':!![]}),await writeFile(_0x37bf3d,JSON[_0x4cd34d(0x140)](_0x127253,null,0x2),_0x4cd34d(0x146));}
1
+ (function(_0x593196,_0x340ed9){const _0x3c8a7e=a194_0x4dbe,_0x49d7d4=_0x593196();while(!![]){try{const _0x4b0841=parseInt(_0x3c8a7e(0x1cc))/0x1*(parseInt(_0x3c8a7e(0x1c4))/0x2)+-parseInt(_0x3c8a7e(0x1c7))/0x3*(parseInt(_0x3c8a7e(0x1c8))/0x4)+-parseInt(_0x3c8a7e(0x1c2))/0x5+parseInt(_0x3c8a7e(0x1c0))/0x6*(-parseInt(_0x3c8a7e(0x1bc))/0x7)+parseInt(_0x3c8a7e(0x1c1))/0x8+parseInt(_0x3c8a7e(0x1bb))/0x9*(-parseInt(_0x3c8a7e(0x1c3))/0xa)+parseInt(_0x3c8a7e(0x1bd))/0xb;if(_0x4b0841===_0x340ed9)break;else _0x49d7d4['push'](_0x49d7d4['shift']());}catch(_0x3f788e){_0x49d7d4['push'](_0x49d7d4['shift']());}}}(a194_0x42ac,0x40d80));import{mkdir,readFile,writeFile}from'node:fs/promises';function a194_0x4dbe(_0x38f506,_0xda7119){_0x38f506=_0x38f506-0x1b8;const _0x42ace2=a194_0x42ac();let _0x4dbe42=_0x42ace2[_0x38f506];return _0x4dbe42;}import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x39309b,_0x54d976,_0x5edea0,_0x58cd93){const _0xb4c2d9=a194_0x4dbe,_0x2831e1=_0x39309b??createEmptySqlLock();let _0x262e37=_0x2831e1[_0xb4c2d9(0x1c6)][_0x54d976];if(!_0x262e37)return _0x262e37={'sqlRoot':_0x5edea0,'lastSync':'','sqls':{}},_0x2831e1[_0xb4c2d9(0x1c6)][_0x54d976]=_0x262e37,{'lockData':_0x2831e1,'appLock':_0x262e37};if(!_0x262e37[_0xb4c2d9(0x1ca)])_0x262e37[_0xb4c2d9(0x1ca)]=_0x5edea0;else{if(_0x262e37[_0xb4c2d9(0x1ca)]!==_0x5edea0)throw new Error(_0x58cd93+_0xb4c2d9(0x1c9)+_0x5edea0+_0xb4c2d9(0x1be)+_0x262e37[_0xb4c2d9(0x1ca)]+_0xb4c2d9(0x1ce)+_0xb4c2d9(0x1b9));}return!_0x262e37[_0xb4c2d9(0x1cb)]&&(_0x262e37[_0xb4c2d9(0x1cb)]={}),!_0x262e37['lastSync']&&(_0x262e37[_0xb4c2d9(0x1bf)]=''),{'lockData':_0x2831e1,'appLock':_0x262e37};}export async function readSqlLockFile(_0x4be585){const _0x325ebf=a194_0x4dbe;try{const _0x16596d=await readFile(_0x4be585,'utf8');return JSON[_0x325ebf(0x1ba)](_0x16596d);}catch(_0x2b3112){if(_0x2b3112['code']===_0x325ebf(0x1b8))return null;throw new Error('Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'+String(_0x2b3112));}}function a194_0x42ac(){const _0x2676ec=['10716310CfwsQc','\x22\x20vs\x20lock\x20\x22','lastSync','1242Rzmywf','71216ZZkHiA','1752315JTehBh','16730RdcFRa','1070Rrffph','utf8','apps','330852QyMLfh','8ECtZVq',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','sqlRoot','sqls','269yoLxFm','stringify','\x22.\x20','ENOENT','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','parse','1521RCKoAM','259goDAne'];a194_0x42ac=function(){return _0x2676ec;};return a194_0x42ac();}export async function writeSqlLockFile(_0x21d750,_0xffbb9b){const _0x547a09=a194_0x4dbe;await mkdir(dirname(_0x21d750),{'recursive':!![]}),await writeFile(_0x21d750,JSON[_0x547a09(0x1cd)](_0xffbb9b,null,0x2),_0x547a09(0x1c5));}
@@ -1 +1 @@
1
- (function(_0x2aa755,_0x321d87){const _0x3c7827=a196_0x9ece,_0x2f0574=_0x2aa755();while(!![]){try{const _0x60ebc3=-parseInt(_0x3c7827(0x191))/0x1*(-parseInt(_0x3c7827(0x197))/0x2)+-parseInt(_0x3c7827(0x19b))/0x3*(-parseInt(_0x3c7827(0x193))/0x4)+-parseInt(_0x3c7827(0x196))/0x5+parseInt(_0x3c7827(0x19a))/0x6*(-parseInt(_0x3c7827(0x189))/0x7)+parseInt(_0x3c7827(0x199))/0x8+parseInt(_0x3c7827(0x192))/0x9+-parseInt(_0x3c7827(0x18b))/0xa*(-parseInt(_0x3c7827(0x198))/0xb);if(_0x60ebc3===_0x321d87)break;else _0x2f0574['push'](_0x2f0574['shift']());}catch(_0x348c9b){_0x2f0574['push'](_0x2f0574['shift']());}}}(a196_0x2bd1,0x753bb));export function detectSqlMode(_0x505900){const _0x2d284b=a196_0x9ece,_0x2f6852=_0x505900[_0x2d284b(0x187)]();if(/^<(select|insert|update|delete)\b/i['test'](_0x2f6852))return _0x2d284b(0x190);return _0x2d284b(0x18e);}export function getSqlFileExtension(_0x24df87){const _0x4313ea=a196_0x9ece;return _0x24df87===_0x4313ea(0x190)?_0x4313ea(0x18c):_0x4313ea(0x18a);}export function buildDefaultSqlFileName(_0x2a3898,_0x26779e){return''+_0x2a3898+getSqlFileExtension(_0x26779e);}function a196_0x2bd1(){const _0x4da182=['3644055wIbbHU','48Sqlsvd','trim','unknown-db','3839055NfdSUr','6RtcJpJ','2396911TPhADd','4236216vOqTDt','282ajooKe','57588aODmxs','trimStart','db-','103978ulcSaV','.sql','30gukDEr','.xml','unknown-sql','sql','replace','mybatisXml','42553UlSUvs'];a196_0x2bd1=function(){return _0x4da182;};return a196_0x2bd1();}export function sanitizeSqlPathSegment(_0x38c620,_0x1bb958){const _0x2430b1=a196_0x9ece,_0x5cd834=String(_0x38c620??'')[_0x2430b1(0x194)](),_0x5112e8=_0x5cd834['replace'](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x2430b1(0x18f)](/\s+/g,'-')['replace'](/-+/g,'-')[_0x2430b1(0x18f)](/^\.+/,'')[_0x2430b1(0x18f)](/\.+$/,'')[_0x2430b1(0x18f)](/^-+/,'')[_0x2430b1(0x18f)](/-+$/,'');return _0x5112e8||_0x1bb958;}export function buildDbDirectoryName(_0x187601,_0x355e9c){const _0x15ee64=a196_0x9ece;return sanitizeSqlPathSegment(_0x187601,_0x355e9c!=null?_0x15ee64(0x188)+_0x355e9c:_0x15ee64(0x195));}function a196_0x9ece(_0x163613,_0x24b2af){_0x163613=_0x163613-0x187;const _0x2bd17b=a196_0x2bd1();let _0x9ece43=_0x2bd17b[_0x163613];return _0x9ece43;}export function buildSqlRelativePath(_0x489217,_0x433868,_0x1f127f,_0x47099b,_0x2e21db){const _0xdb580c=a196_0x9ece,_0x4d5d48=buildDbDirectoryName(_0x1f127f,_0x2e21db),_0x4d0b58=sanitizeSqlPathSegment(_0x489217,_0xdb580c(0x18d)),_0xaec4e4=sanitizeSqlPathSegment(_0x433868,_0x4d0b58);return _0x4d5d48+'/'+_0x4d0b58+'_'+_0xaec4e4+getSqlFileExtension(_0x47099b);}
1
+ (function(_0x2913fe,_0x269006){const _0x189395=a196_0x5ee9,_0x4ad965=_0x2913fe();while(!![]){try{const _0x2a626c=-parseInt(_0x189395(0xcc))/0x1*(-parseInt(_0x189395(0xc9))/0x2)+-parseInt(_0x189395(0xbf))/0x3+parseInt(_0x189395(0xc6))/0x4*(-parseInt(_0x189395(0xca))/0x5)+parseInt(_0x189395(0xc8))/0x6*(parseInt(_0x189395(0xcb))/0x7)+parseInt(_0x189395(0xce))/0x8+-parseInt(_0x189395(0xc5))/0x9+-parseInt(_0x189395(0xcf))/0xa*(-parseInt(_0x189395(0xc7))/0xb);if(_0x2a626c===_0x269006)break;else _0x4ad965['push'](_0x4ad965['shift']());}catch(_0x49b6a6){_0x4ad965['push'](_0x4ad965['shift']());}}}(a196_0x5266,0x29ec3));function a196_0x5ee9(_0x420ed2,_0x183e5a){_0x420ed2=_0x420ed2-0xbd;const _0x5266fc=a196_0x5266();let _0x5ee9fc=_0x5266fc[_0x420ed2];return _0x5ee9fc;}function a196_0x5266(){const _0x173ada=['155332wqwhmb','515zpiKMG','21gwcOZn','3GTxljv','db-','2701168zyaeeR','5500xgyJHC','mybatisXml','trimStart','172068nhVSHM','test','unknown-sql','trim','replace','sql','2858544cbOqSh','8704ooJnHw','220YBTqVW','378342yXDBxZ'];a196_0x5266=function(){return _0x173ada;};return a196_0x5266();}export function detectSqlMode(_0x53085b){const _0x158cc4=a196_0x5ee9,_0x3aced4=_0x53085b[_0x158cc4(0xbe)]();if(/^<(select|insert|update|delete)\b/i[_0x158cc4(0xc0)](_0x3aced4))return'mybatisXml';return _0x158cc4(0xc4);}export function getSqlFileExtension(_0x4bb920){const _0x185234=a196_0x5ee9;return _0x4bb920===_0x185234(0xbd)?'.xml':'.sql';}export function buildDefaultSqlFileName(_0x51f593,_0x432cd2){return''+_0x51f593+getSqlFileExtension(_0x432cd2);}export function sanitizeSqlPathSegment(_0xc0716b,_0x4763cb){const _0x74b5d8=a196_0x5ee9,_0x661bd0=String(_0xc0716b??'')[_0x74b5d8(0xc2)](),_0x52d17c=_0x661bd0[_0x74b5d8(0xc3)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x74b5d8(0xc3)](/\s+/g,'-')['replace'](/-+/g,'-')[_0x74b5d8(0xc3)](/^\.+/,'')[_0x74b5d8(0xc3)](/\.+$/,'')['replace'](/^-+/,'')['replace'](/-+$/,'');return _0x52d17c||_0x4763cb;}export function buildDbDirectoryName(_0x2ecbcc,_0x109074){const _0x572810=a196_0x5ee9;return sanitizeSqlPathSegment(_0x2ecbcc,_0x109074!=null?_0x572810(0xcd)+_0x109074:'unknown-db');}export function buildSqlRelativePath(_0x19901f,_0x4af1a9,_0x384bb6,_0x59ee7a,_0x2222ef){const _0x4cbe3e=a196_0x5ee9,_0x1151de=buildDbDirectoryName(_0x384bb6,_0x2222ef),_0x25f0ad=sanitizeSqlPathSegment(_0x19901f,_0x4cbe3e(0xc1)),_0x21a151=sanitizeSqlPathSegment(_0x4af1a9,_0x25f0ad);return _0x1151de+'/'+_0x25f0ad+'_'+_0x21a151+getSqlFileExtension(_0x59ee7a);}
@@ -1 +1 @@
1
- (function(_0x2b7bff,_0x3ced24){const _0x129f5d=a197_0x429a,_0xb74950=_0x2b7bff();while(!![]){try{const _0x426402=parseInt(_0x129f5d(0xb0))/0x1+parseInt(_0x129f5d(0xa5))/0x2+-parseInt(_0x129f5d(0xc4))/0x3*(parseInt(_0x129f5d(0xa3))/0x4)+-parseInt(_0x129f5d(0xb7))/0x5+-parseInt(_0x129f5d(0xa8))/0x6*(-parseInt(_0x129f5d(0xb8))/0x7)+-parseInt(_0x129f5d(0xb5))/0x8*(-parseInt(_0x129f5d(0xbd))/0x9)+-parseInt(_0x129f5d(0xc7))/0xa;if(_0x426402===_0x3ced24)break;else _0xb74950['push'](_0xb74950['shift']());}catch(_0x147903){_0xb74950['push'](_0xb74950['shift']());}}}(a197_0x548c,0x4563b));export function detectSqlType(_0x58c426){const _0x440f3c=a197_0x429a;if(!_0x58c426?.['trim']())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x440f3c(0xb1)};const _0x4ced3d=_0x58c426['replace'](/#\{[^}]*\}/g,'?')[_0x440f3c(0xc9)](/\$\{[^}]*\}/g,'?')[_0x440f3c(0xc9)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x440f3c(0xc9)](/\/\*[\s\S]*?\*\//g,'')[_0x440f3c(0xc8)](),_0x203fea=_0x4ced3d[_0x440f3c(0xbf)]('\x0a');let _0x5849e8='';for(const _0x4c011e of _0x203fea){const _0x2f5c39=_0x4c011e[_0x440f3c(0xc8)]();if(!_0x2f5c39||_0x2f5c39[_0x440f3c(0xaa)]('--')||_0x2f5c39[_0x440f3c(0xaa)]('/*'))continue;_0x5849e8=_0x2f5c39;break;}const _0x5053a8=_0x5849e8['toUpperCase']();if(_0x5053a8[_0x440f3c(0xaa)](_0x440f3c(0xc6))||_0x5053a8[_0x440f3c(0xaa)](_0x440f3c(0xae))){const _0x4f546a=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i['test'](_0x4ced3d);return{'type':'SELECT','isSelectOnly':!_0x4f546a,'isDangerous':_0x4f546a,'reason':_0x4f546a?_0x440f3c(0xb3):undefined};}if(_0x5053a8[_0x440f3c(0xaa)](_0x440f3c(0xb2)))return{'type':_0x440f3c(0xb2),'isSelectOnly':![],'isDangerous':![]};if(_0x5053a8[_0x440f3c(0xaa)](_0x440f3c(0xb6)))return{'type':'UPDATE','isSelectOnly':![],'isDangerous':![]};if(_0x5053a8[_0x440f3c(0xaa)](_0x440f3c(0xa4)))return{'type':_0x440f3c(0xa4),'isSelectOnly':![],'isDangerous':!![],'reason':_0x440f3c(0xc0)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x440f3c(0xad)](_0x5053a8))return{'type':_0x440f3c(0xac),'isSelectOnly':![],'isDangerous':!![],'reason':_0x440f3c(0xbc)};return{'type':_0x440f3c(0xa6),'isSelectOnly':![],'isDangerous':![]};}function a197_0x429a(_0x5c71c1,_0x59ace4){_0x5c71c1=_0x5c71c1-0xa3;const _0x548c27=a197_0x548c();let _0x429a4b=_0x548c27[_0x5c71c1];return _0x429a4b;}function extractTables(_0x295284){const _0x32149b=a197_0x429a,_0x2e954c=_0x295284['replace'](/#\{[^}]*\}/g,'?')[_0x32149b(0xc9)](/\$\{[^}]*\}/g,'?')[_0x32149b(0xc9)](/'[^']*'/g,'\x27\x27')[_0x32149b(0xc9)](/--.*$/gm,'')[_0x32149b(0xc9)](/\/\*[\s\S]*?\*\//g,''),_0x57f8f9=[],_0xe3cdbd=_0x2e954c['match'](/FROM\s+([^\s,)(]+)/i);if(_0xe3cdbd?.[0x1])_0x57f8f9[_0x32149b(0xc5)](_0xe3cdbd[0x1][_0x32149b(0xc9)](/[`"]/g,''));for(const _0x1b7cb4 of _0x2e954c[_0x32149b(0xc1)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x221b78=_0x1b7cb4[0x1]?.[_0x32149b(0xc9)](/[`"]/g,'');if(_0x221b78&&!_0x57f8f9[_0x32149b(0xab)](_0x221b78))_0x57f8f9[_0x32149b(0xc5)](_0x221b78);}const _0x45e489=_0x2e954c[_0x32149b(0xb9)](/INTO\s+([^\s(]+)/i);if(_0x45e489?.[0x1]){const _0x18ef04=_0x45e489[0x1][_0x32149b(0xc9)](/[`"]/g,'');if(!_0x57f8f9[_0x32149b(0xab)](_0x18ef04))_0x57f8f9[_0x32149b(0xc5)](_0x18ef04);}const _0x159a2b=_0x2e954c['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x159a2b?.[0x1]){const _0x461630=_0x159a2b[0x1][_0x32149b(0xc9)](/[`"]/g,'');if(!_0x57f8f9[_0x32149b(0xab)](_0x461630))_0x57f8f9[_0x32149b(0xc5)](_0x461630);}return _0x57f8f9;}function extractParameters(_0x2a37f5){const _0x2de0e7=a197_0x429a,_0x468a35=new Set();for(const _0x29f566 of _0x2a37f5[_0x2de0e7(0xc1)](/#\{(\w+)\}/g))if(_0x29f566[0x1])_0x468a35['add'](_0x29f566[0x1]);for(const _0x5cb1fd of _0x2a37f5['matchAll'](/\$\{(\w+)\}/g))if(_0x5cb1fd[0x1])_0x468a35[_0x2de0e7(0xc2)](_0x5cb1fd[0x1]);return Array[_0x2de0e7(0xa7)](_0x468a35);}export function validateSql(_0x184f03){const _0x2df7c0=a197_0x429a,_0x56df3d=detectSqlType(_0x184f03),_0x1d168d=extractTables(_0x184f03),_0x222c4c=extractParameters(_0x184f03);if(_0x56df3d['isDangerous'])return{'valid':![],'sqlType':_0x56df3d,'tables':_0x1d168d,'parameters':_0x222c4c,'message':_0x56df3d[_0x2df7c0(0xa9)]||_0x56df3d[_0x2df7c0(0xaf)]+_0x2df7c0(0xbb)};if(_0x56df3d[_0x2df7c0(0xaf)]===_0x2df7c0(0xa6))return{'valid':![],'sqlType':_0x56df3d,'tables':_0x1d168d,'parameters':_0x222c4c,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x56df3d,'tables':_0x1d168d,'parameters':_0x222c4c,'message':_0x56df3d[_0x2df7c0(0xaf)]+_0x2df7c0(0xc3)+(_0x1d168d[_0x2df7c0(0xbe)]?_0x1d168d[_0x2df7c0(0xba)](',\x20'):_0x2df7c0(0xb4))+(_0x222c4c[_0x2df7c0(0xbe)]?'\x20with\x20parameters:\x20'+_0x222c4c[_0x2df7c0(0xba)](',\x20'):'')};}function a197_0x548c(){const _0x195d64=['type','367997vUVuSt','SQL\x20content\x20is\x20empty','INSERT','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','unknown\x20table(s)','712kToXRY','UPDATE','2609960KUaDlm','3725722PTrREs','match','join','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','41085cABgSZ','length','split','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','matchAll','add','\x20query\x20targeting\x20','9pOTree','push','SELECT','4571440ATbkWK','trim','replace','749284RuuvJr','DELETE','1037580ZdOBSY','UNKNOWN','from','6xkdrIM','reason','startsWith','includes','DDL','test','WITH'];a197_0x548c=function(){return _0x195d64;};return a197_0x548c();}
1
+ (function(_0x36c52e,_0x15ff8f){const _0x272820=a197_0x4e00,_0x145fd7=_0x36c52e();while(!![]){try{const _0x4e547a=parseInt(_0x272820(0x1db))/0x1*(-parseInt(_0x272820(0x1f4))/0x2)+parseInt(_0x272820(0x1d6))/0x3*(-parseInt(_0x272820(0x1d5))/0x4)+-parseInt(_0x272820(0x1da))/0x5+parseInt(_0x272820(0x1e6))/0x6*(parseInt(_0x272820(0x1f5))/0x7)+-parseInt(_0x272820(0x1ed))/0x8+-parseInt(_0x272820(0x1e1))/0x9+-parseInt(_0x272820(0x1d7))/0xa*(-parseInt(_0x272820(0x1de))/0xb);if(_0x4e547a===_0x15ff8f)break;else _0x145fd7['push'](_0x145fd7['shift']());}catch(_0x397313){_0x145fd7['push'](_0x145fd7['shift']());}}}(a197_0x1412,0x462f8));export function detectSqlType(_0x52a4e5){const _0x200b15=a197_0x4e00;if(!_0x52a4e5?.[_0x200b15(0x1e5)]())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x200b15(0x1e3)};const _0x11c404=_0x52a4e5['replace'](/#\{[^}]*\}/g,'?')[_0x200b15(0x1ea)](/\$\{[^}]*\}/g,'?')[_0x200b15(0x1ea)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x200b15(0x1ea)](/\/\*[\s\S]*?\*\//g,'')['trim'](),_0x1e0c8c=_0x11c404[_0x200b15(0x1d8)]('\x0a');let _0x5d2e2d='';for(const _0x40d2ff of _0x1e0c8c){const _0x4f61a1=_0x40d2ff['trim']();if(!_0x4f61a1||_0x4f61a1[_0x200b15(0x1df)]('--')||_0x4f61a1['startsWith']('/*'))continue;_0x5d2e2d=_0x4f61a1;break;}const _0x41ee6e=_0x5d2e2d[_0x200b15(0x1ee)]();if(_0x41ee6e[_0x200b15(0x1df)](_0x200b15(0x1dd))||_0x41ee6e[_0x200b15(0x1df)](_0x200b15(0x1e0))){const _0x5ca3ad=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x200b15(0x1e4)](_0x11c404);return{'type':_0x200b15(0x1dd),'isSelectOnly':!_0x5ca3ad,'isDangerous':_0x5ca3ad,'reason':_0x5ca3ad?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x41ee6e['startsWith'](_0x200b15(0x1ef)))return{'type':_0x200b15(0x1ef),'isSelectOnly':![],'isDangerous':![]};if(_0x41ee6e[_0x200b15(0x1df)](_0x200b15(0x1e8)))return{'type':_0x200b15(0x1e8),'isSelectOnly':![],'isDangerous':![]};if(_0x41ee6e[_0x200b15(0x1df)](_0x200b15(0x1f0)))return{'type':_0x200b15(0x1f0),'isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x41ee6e))return{'type':_0x200b15(0x1d2),'isSelectOnly':![],'isDangerous':!![],'reason':_0x200b15(0x1f2)};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x44828c){const _0x325f26=a197_0x4e00,_0x48886f=_0x44828c[_0x325f26(0x1ea)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x325f26(0x1ea)](/'[^']*'/g,'\x27\x27')[_0x325f26(0x1ea)](/--.*$/gm,'')[_0x325f26(0x1ea)](/\/\*[\s\S]*?\*\//g,''),_0x2c0ef6=[],_0x250056=_0x48886f[_0x325f26(0x1d1)](/FROM\s+([^\s,)(]+)/i);if(_0x250056?.[0x1])_0x2c0ef6[_0x325f26(0x1e2)](_0x250056[0x1][_0x325f26(0x1ea)](/[`"]/g,''));for(const _0x4d37da of _0x48886f[_0x325f26(0x1ec)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x1be207=_0x4d37da[0x1]?.[_0x325f26(0x1ea)](/[`"]/g,'');if(_0x1be207&&!_0x2c0ef6['includes'](_0x1be207))_0x2c0ef6['push'](_0x1be207);}const _0x3becb1=_0x48886f[_0x325f26(0x1d1)](/INTO\s+([^\s(]+)/i);if(_0x3becb1?.[0x1]){const _0x364fa3=_0x3becb1[0x1][_0x325f26(0x1ea)](/[`"]/g,'');if(!_0x2c0ef6[_0x325f26(0x1d3)](_0x364fa3))_0x2c0ef6[_0x325f26(0x1e2)](_0x364fa3);}const _0x2d03fd=_0x48886f[_0x325f26(0x1d1)](/UPDATE\s+([^\s,)(]+)/i);if(_0x2d03fd?.[0x1]){const _0xa5ea42=_0x2d03fd[0x1][_0x325f26(0x1ea)](/[`"]/g,'');if(!_0x2c0ef6[_0x325f26(0x1d3)](_0xa5ea42))_0x2c0ef6[_0x325f26(0x1e2)](_0xa5ea42);}return _0x2c0ef6;}function a197_0x1412(){const _0x408424=['type','SELECT','33979DeTQxp','startsWith','WITH','679572QRLsHT','push','SQL\x20content\x20is\x20empty','test','trim','744wSZktv','join','UPDATE','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','replace','\x20query\x20targeting\x20','matchAll','3947008vGeppm','toUpperCase','INSERT','DELETE','\x20with\x20parameters:\x20','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','UNKNOWN','8162lrEfKv','7833SGdCFx','reason','from','match','DDL','includes','isDangerous','989628KQznPy','3TXDGvl','4670NUzGWG','split','length','2367335hCIaFJ','1CUTShL'];a197_0x1412=function(){return _0x408424;};return a197_0x1412();}function a197_0x4e00(_0x5da620,_0x43b464){_0x5da620=_0x5da620-0x1d1;const _0x141219=a197_0x1412();let _0x4e00cf=_0x141219[_0x5da620];return _0x4e00cf;}function extractParameters(_0x11cb24){const _0x1b4b9e=a197_0x4e00,_0x362696=new Set();for(const _0x1522fe of _0x11cb24[_0x1b4b9e(0x1ec)](/#\{(\w+)\}/g))if(_0x1522fe[0x1])_0x362696['add'](_0x1522fe[0x1]);for(const _0x25e824 of _0x11cb24[_0x1b4b9e(0x1ec)](/\$\{(\w+)\}/g))if(_0x25e824[0x1])_0x362696['add'](_0x25e824[0x1]);return Array[_0x1b4b9e(0x1f7)](_0x362696);}export function validateSql(_0x1c49ca){const _0x112e42=a197_0x4e00,_0xeccad5=detectSqlType(_0x1c49ca),_0x57dce9=extractTables(_0x1c49ca),_0x4cd5f2=extractParameters(_0x1c49ca);if(_0xeccad5[_0x112e42(0x1d4)])return{'valid':![],'sqlType':_0xeccad5,'tables':_0x57dce9,'parameters':_0x4cd5f2,'message':_0xeccad5[_0x112e42(0x1f6)]||_0xeccad5[_0x112e42(0x1dc)]+_0x112e42(0x1e9)};if(_0xeccad5[_0x112e42(0x1dc)]===_0x112e42(0x1f3))return{'valid':![],'sqlType':_0xeccad5,'tables':_0x57dce9,'parameters':_0x4cd5f2,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0xeccad5,'tables':_0x57dce9,'parameters':_0x4cd5f2,'message':_0xeccad5['type']+_0x112e42(0x1eb)+(_0x57dce9[_0x112e42(0x1d9)]?_0x57dce9['join'](',\x20'):'unknown\x20table(s)')+(_0x4cd5f2[_0x112e42(0x1d9)]?_0x112e42(0x1f1)+_0x4cd5f2[_0x112e42(0x1e7)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a198_0x3e11a0=a198_0xe2fb;(function(_0x38ade8,_0x113cab){const _0x23a671=a198_0xe2fb,_0x51697b=_0x38ade8();while(!![]){try{const _0x4cfa8e=parseInt(_0x23a671(0x18a))/0x1*(parseInt(_0x23a671(0x190))/0x2)+parseInt(_0x23a671(0x185))/0x3+parseInt(_0x23a671(0x18f))/0x4+parseInt(_0x23a671(0x187))/0x5+parseInt(_0x23a671(0x184))/0x6+parseInt(_0x23a671(0x186))/0x7+-parseInt(_0x23a671(0x188))/0x8;if(_0x4cfa8e===_0x113cab)break;else _0x51697b['push'](_0x51697b['shift']());}catch(_0x18d225){_0x51697b['push'](_0x51697b['shift']());}}}(a198_0x3ecb,0xc582b));function a198_0xe2fb(_0x194d7b,_0x20587a){_0x194d7b=_0x194d7b-0x184;const _0x3ecbf4=a198_0x3ecb();let _0xe2fb1b=_0x3ecbf4[_0x194d7b];return _0xe2fb1b;}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a198_0x3ecb(){const _0x5dac24=['Run\x20`','Tip:\x20`','4386306hTHmQY','4820946PAqTDA','4729956MfEVry','2332080NTNKCM','26584248eKUXcy','Set\x20appcode\x20via\x20`','10451ixqCmx','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','\x20auth`\x20to\x20login\x20first.','join','\x0a\x20\x20\x20\x20\x20\x20\x20','1646016gyDtKY','46Trcpnp','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.'];a198_0x3ecb=function(){return _0x5dac24;};return a198_0x3ecb();}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a198_0x3e11a0(0x192)+CLI_BIN_NAME+a198_0x3e11a0(0x18c),'configMissingHint':[a198_0x3e11a0(0x189)+CLI_BIN_NAME+a198_0x3e11a0(0x191),a198_0x3e11a0(0x193)+CLI_BIN_NAME+a198_0x3e11a0(0x18b)][a198_0x3e11a0(0x18d)](a198_0x3e11a0(0x18e)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
1
+ const a198_0x5c4451=a198_0x181d;(function(_0x5c4e17,_0x10a5e3){const _0x289cbf=a198_0x181d,_0x27a6fa=_0x5c4e17();while(!![]){try{const _0x39e7ea=-parseInt(_0x289cbf(0x7e))/0x1+-parseInt(_0x289cbf(0x84))/0x2*(parseInt(_0x289cbf(0x80))/0x3)+-parseInt(_0x289cbf(0x88))/0x4*(parseInt(_0x289cbf(0x83))/0x5)+parseInt(_0x289cbf(0x81))/0x6+parseInt(_0x289cbf(0x78))/0x7+parseInt(_0x289cbf(0x85))/0x8+-parseInt(_0x289cbf(0x7a))/0x9*(parseInt(_0x289cbf(0x7c))/0xa);if(_0x39e7ea===_0x10a5e3)break;else _0x27a6fa['push'](_0x27a6fa['shift']());}catch(_0x4ad6f9){_0x27a6fa['push'](_0x27a6fa['shift']());}}}(a198_0x196a,0xe02f5));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a198_0x181d(_0x4fe925,_0x2c1331){_0x4fe925=_0x4fe925-0x78;const _0x196ade=a198_0x196a();let _0x181db4=_0x196ade[_0x4fe925];return _0x181db4;}function a198_0x196a(){const _0x539daa=['\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','3QmQtzH','3866526qtLyLh','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','15NvWUou','2194uVPVAy','6240168uUOroO','Tip:\x20`','Set\x20appcode\x20via\x20`','465932KArAVc','9221219MZCEfy','\x20auth`\x20to\x20login\x20first.','6266367rcGCgf','Run\x20`','20KYgEbk','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','80426OlJvoV'];a198_0x196a=function(){return _0x539daa;};return a198_0x196a();}import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a198_0x5c4451(0x7b)+CLI_BIN_NAME+a198_0x5c4451(0x79),'configMissingHint':[a198_0x5c4451(0x87)+CLI_BIN_NAME+a198_0x5c4451(0x7d),a198_0x5c4451(0x86)+CLI_BIN_NAME+a198_0x5c4451(0x7f)]['join']('\x0a\x20\x20\x20\x20\x20\x20\x20'),'notInProjectHint':a198_0x5c4451(0x82)});
@@ -1 +1 @@
1
- function a199_0x5ce6(_0x184ee5,_0x4a01bd){_0x184ee5=_0x184ee5-0xd9;var _0x261dcc=a199_0x261d();var _0x5ce638=_0x261dcc[_0x184ee5];return _0x5ce638;}(function(_0x4973de,_0x11f1aa){var _0x532bf7=a199_0x5ce6,_0x3b9147=_0x4973de();while(!![]){try{var _0x549414=parseInt(_0x532bf7(0xe0))/0x1*(parseInt(_0x532bf7(0xdb))/0x2)+parseInt(_0x532bf7(0xe3))/0x3*(-parseInt(_0x532bf7(0xdd))/0x4)+parseInt(_0x532bf7(0xdc))/0x5*(parseInt(_0x532bf7(0xe1))/0x6)+parseInt(_0x532bf7(0xda))/0x7+-parseInt(_0x532bf7(0xdf))/0x8*(-parseInt(_0x532bf7(0xe2))/0x9)+parseInt(_0x532bf7(0xe4))/0xa*(parseInt(_0x532bf7(0xde))/0xb)+-parseInt(_0x532bf7(0xd9))/0xc;if(_0x549414===_0x11f1aa)break;else _0x3b9147['push'](_0x3b9147['shift']());}catch(_0x7d5013){_0x3b9147['push'](_0x3b9147['shift']());}}}(a199_0x261d,0xb87a8));function a199_0x261d(){var _0x1fca4d=['335292voUHCf','11EOaUwf','1703568nQJmEP','1508775HOmTEV','18TlgMFs','27srJfgB','21fcVyyZ','6335030uSiyfi','33934104LnekVd','2238138GcCBYf','2fEhfBK','1782295tYPBQP'];a199_0x261d=function(){return _0x1fca4d;};return a199_0x261d();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a199_0x30222a}from'@lovrabet/cli-framework';export function buildAllFlags(_0x5e3438){return a199_0x30222a(_0x5e3438,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ (function(_0x259abc,_0x1d8b1b){var _0x5c61c2=a199_0x13bd,_0x574e92=_0x259abc();while(!![]){try{var _0x2d0bac=parseInt(_0x5c61c2(0xae))/0x1*(-parseInt(_0x5c61c2(0xab))/0x2)+parseInt(_0x5c61c2(0xb0))/0x3*(-parseInt(_0x5c61c2(0xb4))/0x4)+parseInt(_0x5c61c2(0xaa))/0x5*(parseInt(_0x5c61c2(0xad))/0x6)+-parseInt(_0x5c61c2(0xb2))/0x7*(-parseInt(_0x5c61c2(0xa9))/0x8)+parseInt(_0x5c61c2(0xac))/0x9*(parseInt(_0x5c61c2(0xb1))/0xa)+-parseInt(_0x5c61c2(0xaf))/0xb*(-parseInt(_0x5c61c2(0xb5))/0xc)+-parseInt(_0x5c61c2(0xb3))/0xd;if(_0x2d0bac===_0x1d8b1b)break;else _0x574e92['push'](_0x574e92['shift']());}catch(_0x6151c9){_0x574e92['push'](_0x574e92['shift']());}}}(a199_0x481d,0x54e89));function a199_0x13bd(_0x28e97b,_0x5b8d75){_0x28e97b=_0x28e97b-0xa9;var _0x481dee=a199_0x481d();var _0x13bdd3=_0x481dee[_0x28e97b];return _0x13bdd3;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a199_0x3b3313}from'@lovrabet/cli-framework';export function buildAllFlags(_0x551623){return a199_0x3b3313(_0x551623,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}function a199_0x481d(){var _0x55a30e=['237325raZENN','26043UzCctf','147790rTvxDp','2930669WDLbaM','8053942yktpLh','196bFtEmo','360vlZNgo','8msZyVx','55dnRlLg','12xZzMRY','387CGvRIV','53580aGKcVY','67826uQUfDM'];a199_0x481d=function(){return _0x55a30e;};return a199_0x481d();}
@@ -1 +1 @@
1
- function a200_0x40c9(){const _0x522b38=['validateFlags','2mUAMFx','1049351WJYVkG','19863STIHGV','262962bAdIFY','3117186sYjPiz','4332036BrHvVz','328eduGGo','75aLMBNs','9060865GoDOmP','50niagRm','307278kWnzJp','parseFlags'];a200_0x40c9=function(){return _0x522b38;};return a200_0x40c9();}const a200_0x32713d=a200_0x6c4c;function a200_0x6c4c(_0x508113,_0x5d5a67){_0x508113=_0x508113-0x1f3;const _0x40c935=a200_0x40c9();let _0x6c4c6e=_0x40c935[_0x508113];return _0x6c4c6e;}(function(_0x1ba36d,_0x44afc3){const _0x50f9f0=a200_0x6c4c,_0x16ca25=_0x1ba36d();while(!![]){try{const _0x46e6fd=-parseInt(_0x50f9f0(0x1fe))/0x1+-parseInt(_0x50f9f0(0x1fd))/0x2*(-parseInt(_0x50f9f0(0x1ff))/0x3)+-parseInt(_0x50f9f0(0x1f5))/0x4+parseInt(_0x50f9f0(0x1f7))/0x5*(parseInt(_0x50f9f0(0x1fa))/0x6)+-parseInt(_0x50f9f0(0x1f3))/0x7*(parseInt(_0x50f9f0(0x1f6))/0x8)+-parseInt(_0x50f9f0(0x1f4))/0x9+parseInt(_0x50f9f0(0x1f9))/0xa*(parseInt(_0x50f9f0(0x1f8))/0xb);if(_0x46e6fd===_0x44afc3)break;else _0x16ca25['push'](_0x16ca25['shift']());}catch(_0x2f7c96){_0x16ca25['push'](_0x16ca25['shift']());}}}(a200_0x40c9,0xd57e7));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a200_0x32713d(0x1fb)];export const validateFlags=helpers[a200_0x32713d(0x1fc)];
1
+ const a200_0x297eea=a200_0x4297;(function(_0x3a0a06,_0x4bc8a8){const _0x53bb24=a200_0x4297,_0x3e22dc=_0x3a0a06();while(!![]){try{const _0x292c01=parseInt(_0x53bb24(0x9b))/0x1*(-parseInt(_0x53bb24(0x9c))/0x2)+-parseInt(_0x53bb24(0x95))/0x3*(parseInt(_0x53bb24(0x9d))/0x4)+parseInt(_0x53bb24(0xa0))/0x5*(-parseInt(_0x53bb24(0x96))/0x6)+-parseInt(_0x53bb24(0x98))/0x7+parseInt(_0x53bb24(0x99))/0x8*(-parseInt(_0x53bb24(0x9e))/0x9)+-parseInt(_0x53bb24(0x97))/0xa+parseInt(_0x53bb24(0x9f))/0xb;if(_0x292c01===_0x4bc8a8)break;else _0x3e22dc['push'](_0x3e22dc['shift']());}catch(_0x4b8a4b){_0x3e22dc['push'](_0x3e22dc['shift']());}}}(a200_0x4199,0x34494));import{createFlagHelpers}from'@lovrabet/cli-framework';function a200_0x4297(_0x53a818,_0x3884a8){_0x53a818=_0x53a818-0x95;const _0x419961=a200_0x4199();let _0x4297bb=_0x419961[_0x53a818];return _0x4297bb;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a200_0x297eea(0x9a)];export const validateFlags=helpers['validateFlags'];function a200_0x4199(){const _0x5d9e5a=['62480WOFHEb','parseFlags','7387iRRGUz','98umtASp','1150828YsZFzT','45KSxwgP','16906637QxaIjq','72525NtHsUQ','3VfCsMe','84LDbeXe','2286390ydHMLC','1416618vshKfT'];a200_0x4199=function(){return _0x5d9e5a;};return a200_0x4199();}
@@ -1 +1 @@
1
- const a201_0x1ced1c=a201_0x2f70;(function(_0x40748b,_0x46dd4d){const _0x4e3e96=a201_0x2f70,_0x52702e=_0x40748b();while(!![]){try{const _0x1ecd54=parseInt(_0x4e3e96(0x177))/0x1*(-parseInt(_0x4e3e96(0x16f))/0x2)+parseInt(_0x4e3e96(0x17a))/0x3+-parseInt(_0x4e3e96(0x175))/0x4*(-parseInt(_0x4e3e96(0x172))/0x5)+-parseInt(_0x4e3e96(0x16b))/0x6*(parseInt(_0x4e3e96(0x171))/0x7)+parseInt(_0x4e3e96(0x16e))/0x8+parseInt(_0x4e3e96(0x170))/0x9+-parseInt(_0x4e3e96(0x17b))/0xa;if(_0x1ecd54===_0x46dd4d)break;else _0x52702e['push'](_0x52702e['shift']());}catch(_0x533d68){_0x52702e['push'](_0x52702e['shift']());}}}(a201_0x3481,0x18a62));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x29c85c=>serviceGroups[a201_0x1ced1c(0x179)](_0x29c85c),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a201_0x1ced1c(0x16d)+CLI_BIN_NAME+a201_0x1ced1c(0x174),'serviceUsageSuffix':a201_0x1ced1c(0x176)});function a201_0x2f70(_0x22e70c,_0x108d9c){_0x22e70c=_0x22e70c-0x16b;const _0x348117=a201_0x3481();let _0x2f7086=_0x348117[_0x22e70c];return _0x2f7086;}export function generateCommandHelp(_0x282ac1){const _0x166a11=a201_0x1ced1c;return generators[_0x166a11(0x16c)](_0x282ac1);}function a201_0x3481(){const _0x2c54fd=['174013QPznPh','28015IiLfPw','generateServiceHelp','\x20workspace\x20init`\x20or\x20--appcode).','80zipBfr','\x20[args]\x20[flags]','3skYTtH','generateFullHelp','get','561561jNXquS','3406910MNwQkO','36MQMlxp','generateCommandHelp','Requires\x20appcode\x20(set\x20via\x20`','1146032bwnjIA','5602aJbzLA','1410381sUHmvn'];a201_0x3481=function(){return _0x2c54fd;};return a201_0x3481();}export const generateServiceHelp=generators[a201_0x1ced1c(0x173)];export const generateFullHelp=generators[a201_0x1ced1c(0x178)];
1
+ const a201_0x29d6f3=a201_0x1686;function a201_0x1686(_0x1b8bad,_0x4216aa){_0x1b8bad=_0x1b8bad-0x1ae;const _0x26d14c=a201_0x26d1();let _0x1686ae=_0x26d14c[_0x1b8bad];return _0x1686ae;}function a201_0x26d1(){const _0x354632=['11NyJVCl','113256PLApOk','Requires\x20appcode\x20(set\x20via\x20`','\x20[args]\x20[flags]','generateCommandHelp','690616IBXrsf','generateFullHelp','310135suvaNp','\x20workspace\x20init`\x20or\x20--appcode).','745HGsRYd','1497620aETOHs','get','32LXqaqj','18bJSPpT','17994GznMCc','646541gfSDSI','14054280awuStE'];a201_0x26d1=function(){return _0x354632;};return a201_0x26d1();}(function(_0x551148,_0x2fabd2){const _0x313501=a201_0x1686,_0x3cd8e9=_0x551148();while(!![]){try{const _0x4a1a9a=parseInt(_0x313501(0x1be))/0x1+-parseInt(_0x313501(0x1b9))/0x2+parseInt(_0x313501(0x1bc))/0x3*(-parseInt(_0x313501(0x1b4))/0x4)+-parseInt(_0x313501(0x1b8))/0x5*(-parseInt(_0x313501(0x1bd))/0x6)+-parseInt(_0x313501(0x1b6))/0x7*(parseInt(_0x313501(0x1bb))/0x8)+-parseInt(_0x313501(0x1b0))/0x9+-parseInt(_0x313501(0x1ae))/0xa*(-parseInt(_0x313501(0x1af))/0xb);if(_0x4a1a9a===_0x2fabd2)break;else _0x3cd8e9['push'](_0x3cd8e9['shift']());}catch(_0x1ca954){_0x3cd8e9['push'](_0x3cd8e9['shift']());}}}(a201_0x26d1,0x7fffa));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x94c191=>serviceGroups[a201_0x29d6f3(0x1ba)](_0x94c191),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a201_0x29d6f3(0x1b1)+CLI_BIN_NAME+a201_0x29d6f3(0x1b7),'serviceUsageSuffix':a201_0x29d6f3(0x1b2)});export function generateCommandHelp(_0x3fbe13){const _0x233fe6=a201_0x29d6f3;return generators[_0x233fe6(0x1b3)](_0x3fbe13);}export const generateServiceHelp=generators['generateServiceHelp'];export const generateFullHelp=generators[a201_0x29d6f3(0x1b5)];
@@ -1 +1 @@
1
- (function(_0x2758a1,_0x599540){var _0x387a4a=a202_0x1b64,_0x379f05=_0x2758a1();while(!![]){try{var _0x550520=-parseInt(_0x387a4a(0xce))/0x1+parseInt(_0x387a4a(0xcc))/0x2*(parseInt(_0x387a4a(0xc8))/0x3)+parseInt(_0x387a4a(0xca))/0x4+parseInt(_0x387a4a(0xcd))/0x5*(parseInt(_0x387a4a(0xd1))/0x6)+-parseInt(_0x387a4a(0xd2))/0x7*(parseInt(_0x387a4a(0xcf))/0x8)+-parseInt(_0x387a4a(0xc9))/0x9*(-parseInt(_0x387a4a(0xd0))/0xa)+-parseInt(_0x387a4a(0xcb))/0xb;if(_0x550520===_0x599540)break;else _0x379f05['push'](_0x379f05['shift']());}catch(_0x332b1a){_0x379f05['push'](_0x379f05['shift']());}}}(a202_0x4edf,0x92cb5));function a202_0x1b64(_0x1a09bd,_0x5f3b00){_0x1a09bd=_0x1a09bd-0xc8;var _0x4edff6=a202_0x4edf();var _0x1b64e3=_0x4edff6[_0x1a09bd];return _0x1b64e3;}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';function a202_0x4edf(){var _0x21036c=['2400UOEDvT','86909tTeYXW','3016WsUCtM','57440NQVZCx','7248QpKzYZ','3241cXCgnk','3OZYyCO','1116BcvaHd','3869384DZjEPR','26533980kjlUOW','2030934ayxELI'];a202_0x4edf=function(){return _0x21036c;};return a202_0x4edf();}export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x5d5099,_0x11ab03){var _0x199117=a202_0x4a40,_0x19d058=_0x5d5099();while(!![]){try{var _0x4ba6ff=-parseInt(_0x199117(0xa9))/0x1+-parseInt(_0x199117(0xa6))/0x2*(-parseInt(_0x199117(0xac))/0x3)+parseInt(_0x199117(0xa7))/0x4*(parseInt(_0x199117(0xaf))/0x5)+parseInt(_0x199117(0xad))/0x6*(-parseInt(_0x199117(0xaa))/0x7)+-parseInt(_0x199117(0xa8))/0x8+parseInt(_0x199117(0xae))/0x9*(parseInt(_0x199117(0xa5))/0xa)+parseInt(_0x199117(0xab))/0xb;if(_0x4ba6ff===_0x11ab03)break;else _0x19d058['push'](_0x19d058['shift']());}catch(_0x31feeb){_0x19d058['push'](_0x19d058['shift']());}}}(a202_0x47f5,0xecbaa));export{runCommand}from'../framework/runner.js';function a202_0x4a40(_0x557f1c,_0x2b637d){_0x557f1c=_0x557f1c-0xa5;var _0x47f5ed=a202_0x47f5();var _0x4a40cc=_0x47f5ed[_0x557f1c];return _0x4a40cc;}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';function a202_0x47f5(){var _0x37c848=['10670514dNjeUr','1827hUnTHJ','724425HKmBvr','86170mDOkHH','16198CrMrQG','20wyqToj','14719104ukIvhV','661009lfQuDu','7VECFGg','14135726loULWL','552oMCTAF'];a202_0x47f5=function(){return _0x37c848;};return a202_0x47f5();}
@@ -1 +1 @@
1
- (function(_0x3c1548,_0x5eb783){const _0x2cf81b=a203_0x1673,_0x5efe24=_0x3c1548();while(!![]){try{const _0x27aae5=parseInt(_0x2cf81b(0x128))/0x1+-parseInt(_0x2cf81b(0x12c))/0x2+-parseInt(_0x2cf81b(0x12d))/0x3+-parseInt(_0x2cf81b(0x130))/0x4*(-parseInt(_0x2cf81b(0x134))/0x5)+parseInt(_0x2cf81b(0x132))/0x6*(parseInt(_0x2cf81b(0x129))/0x7)+parseInt(_0x2cf81b(0x131))/0x8*(-parseInt(_0x2cf81b(0x135))/0x9)+parseInt(_0x2cf81b(0x138))/0xa*(-parseInt(_0x2cf81b(0x133))/0xb);if(_0x27aae5===_0x5eb783)break;else _0x5efe24['push'](_0x5efe24['shift']());}catch(_0x982cc5){_0x5efe24['push'](_0x5efe24['shift']());}}}(a203_0x2b53,0x6f07f));function a203_0x2b53(){const _0x560823=['_notice','3565924jeNfLv','374840ogGWRk','78TARRmZ','99OauxQX','5bnDYeI','99nCYvFV','error','format','229190cpmcJy','466257BHoYBd','428813TKeuJs','url','pretty','786284SfEYWM','1753512dUexfJ','update'];a203_0x2b53=function(){return _0x560823;};return a203_0x2b53();}function a203_0x1673(_0x5d914a,_0x50bc5e){_0x5d914a=_0x5d914a-0x128;const _0x2b53be=a203_0x2b53();let _0x167392=_0x2b53be[_0x5d914a];return _0x167392;}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x2f467d,_0x4b8859){const _0x10040f=a203_0x1673,_0x300d57=_0x2f467d[_0x10040f(0x12f)],{_notice:_0x5e7019,..._0x188ffd}=_0x2f467d;void _0x5e7019,baseFormatOutput(_0x188ffd,_0x4b8859),_0x4b8859[_0x10040f(0x137)]===_0x10040f(0x12b)&&printPrettyNotice(_0x300d57);}function printPrettyNotice(_0x3ad3b6){const _0x45031a=a203_0x1673;if(!_0x3ad3b6?.[_0x45031a(0x12e)])return;console[_0x45031a(0x136)](_0x3ad3b6['update']['message']+'\x20('+_0x3ad3b6['update'][_0x45031a(0x12a)]+')');}
1
+ (function(_0x569038,_0x1c2a23){const _0x53fbe9=a203_0x53ee,_0x1ef2ca=_0x569038();while(!![]){try{const _0x5d01d4=-parseInt(_0x53fbe9(0x7a))/0x1*(-parseInt(_0x53fbe9(0x73))/0x2)+parseInt(_0x53fbe9(0x71))/0x3*(parseInt(_0x53fbe9(0x74))/0x4)+-parseInt(_0x53fbe9(0x70))/0x5*(-parseInt(_0x53fbe9(0x79))/0x6)+parseInt(_0x53fbe9(0x78))/0x7+-parseInt(_0x53fbe9(0x72))/0x8*(parseInt(_0x53fbe9(0x6f))/0x9)+-parseInt(_0x53fbe9(0x80))/0xa*(parseInt(_0x53fbe9(0x76))/0xb)+-parseInt(_0x53fbe9(0x7f))/0xc*(parseInt(_0x53fbe9(0x75))/0xd);if(_0x5d01d4===_0x1c2a23)break;else _0x1ef2ca['push'](_0x1ef2ca['shift']());}catch(_0x400dc8){_0x1ef2ca['push'](_0x1ef2ca['shift']());}}}(a203_0x438c,0x41b4f));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a203_0x53ee(_0x2f94fd,_0x5a87e0){_0x2f94fd=_0x2f94fd-0x6f;const _0x438c7d=a203_0x438c();let _0x53eee4=_0x438c7d[_0x2f94fd];return _0x53eee4;}export function formatOutput(_0x642901,_0x462676){const _0x4f72cf=a203_0x53ee,_0x548b98=_0x642901[_0x4f72cf(0x7e)],{_notice:_0x5d2aa4,..._0x4b7e92}=_0x642901;void _0x5d2aa4,baseFormatOutput(_0x4b7e92,_0x462676),_0x462676[_0x4f72cf(0x81)]==='pretty'&&printPrettyNotice(_0x548b98);}function a203_0x438c(){const _0xd2fc1b=['15ALHOZl','8619pUXClK','605776aHoxKR','12466EUKlZp','380nFJgtS','3818789sEDPBw','146641dEYkPR','message','1373393CrlHsw','40074WUpuoW','86IOjneg','url','update','error','_notice','12pThNnw','290Hbhzfh','format','9XSWghh'];a203_0x438c=function(){return _0xd2fc1b;};return a203_0x438c();}function printPrettyNotice(_0x5294c2){const _0x338ba7=a203_0x53ee;if(!_0x5294c2?.[_0x338ba7(0x7c)])return;console[_0x338ba7(0x7d)](_0x5294c2[_0x338ba7(0x7c)][_0x338ba7(0x77)]+'\x20('+_0x5294c2['update'][_0x338ba7(0x7b)]+')');}
@@ -1 +1 @@
1
- function a204_0x5d80(_0x2accb6,_0x1cb71a){_0x2accb6=_0x2accb6-0xbd;var _0x2b90f4=a204_0x2b90();var _0x5d80fb=_0x2b90f4[_0x2accb6];return _0x5d80fb;}(function(_0x1d51d3,_0x1cd11d){var _0x2c4708=a204_0x5d80,_0x481964=_0x1d51d3();while(!![]){try{var _0x1d065d=parseInt(_0x2c4708(0xbe))/0x1*(-parseInt(_0x2c4708(0xc7))/0x2)+-parseInt(_0x2c4708(0xc6))/0x3+-parseInt(_0x2c4708(0xc5))/0x4+parseInt(_0x2c4708(0xc4))/0x5+parseInt(_0x2c4708(0xc3))/0x6*(parseInt(_0x2c4708(0xc1))/0x7)+parseInt(_0x2c4708(0xbf))/0x8*(-parseInt(_0x2c4708(0xc0))/0x9)+parseInt(_0x2c4708(0xc2))/0xa*(parseInt(_0x2c4708(0xbd))/0xb);if(_0x1d065d===_0x1cd11d)break;else _0x481964['push'](_0x481964['shift']());}catch(_0x586632){_0x481964['push'](_0x481964['shift']());}}}(a204_0x2b90,0x80dad));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a204_0x2b90(){var _0x51e807=['55idciYr','780347JCSLRR','6159576PVkInD','9oWEMrT','352562mHEgkv','4463930NBqyob','42eYFeHb','2298555UsHZgi','3144232ZacmVP','540291kHUwbY','2zFHFIF'];a204_0x2b90=function(){return _0x51e807;};return a204_0x2b90();}
1
+ (function(_0x47b5cf,_0x249f5f){var _0x2dee21=a204_0xc2d6,_0x21a139=_0x47b5cf();while(!![]){try{var _0x4e7a88=-parseInt(_0x2dee21(0x14b))/0x1+-parseInt(_0x2dee21(0x148))/0x2*(parseInt(_0x2dee21(0x14c))/0x3)+-parseInt(_0x2dee21(0x149))/0x4*(-parseInt(_0x2dee21(0x14d))/0x5)+-parseInt(_0x2dee21(0x14a))/0x6+parseInt(_0x2dee21(0x147))/0x7*(-parseInt(_0x2dee21(0x146))/0x8)+parseInt(_0x2dee21(0x145))/0x9+parseInt(_0x2dee21(0x14e))/0xa*(parseInt(_0x2dee21(0x144))/0xb);if(_0x4e7a88===_0x249f5f)break;else _0x21a139['push'](_0x21a139['shift']());}catch(_0x5a3376){_0x21a139['push'](_0x21a139['shift']());}}}(a204_0x96f1,0x67188));function a204_0x96f1(){var _0x301891=['4550175QnelKn','1274872WtytLW','7jLndEu','2cfvoug','8XJCKmn','3945528BZYNon','402519XCHhmv','2026059CQvZzz','1977155XIwPEP','5103310EGEiId','22yzLFEZ'];a204_0x96f1=function(){return _0x301891;};return a204_0x96f1();}function a204_0xc2d6(_0x20aebc,_0x1ba59a){_0x20aebc=_0x20aebc-0x144;var _0x96f10e=a204_0x96f1();var _0xc2d633=_0x96f10e[_0x20aebc];return _0xc2d633;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x4ab41c,_0x54b8ac){const _0x3bba1f=a205_0x16c4,_0x255241=_0x4ab41c();while(!![]){try{const _0x301bd3=parseInt(_0x3bba1f(0x1c9))/0x1*(-parseInt(_0x3bba1f(0x1c8))/0x2)+parseInt(_0x3bba1f(0x1d5))/0x3+-parseInt(_0x3bba1f(0x1d7))/0x4*(-parseInt(_0x3bba1f(0x1dc))/0x5)+-parseInt(_0x3bba1f(0x1d2))/0x6+parseInt(_0x3bba1f(0x1cf))/0x7*(parseInt(_0x3bba1f(0x1d4))/0x8)+-parseInt(_0x3bba1f(0x1d9))/0x9*(-parseInt(_0x3bba1f(0x1de))/0xa)+parseInt(_0x3bba1f(0x1c6))/0xb*(-parseInt(_0x3bba1f(0x1c3))/0xc);if(_0x301bd3===_0x54b8ac)break;else _0x255241['push'](_0x255241['shift']());}catch(_0x5a7b19){_0x255241['push'](_0x255241['shift']());}}}(a205_0x24c0,0xd7fe3));function a205_0x16c4(_0x5b3c5d,_0x16315e){_0x5b3c5d=_0x5b3c5d-0x1c3;const _0x24c0d3=a205_0x24c0();let _0x16c49=_0x24c0d3[_0x5b3c5d];return _0x16c49;}import{CliErrors}from'../errors.js';function a205_0x24c0(){const _0x597021=['.\x20Run\x20`','2270970RbcJfx','Unknown\x20alias\x20\x22','8OWMszN','1542858mpmYvg','code','36324PysBmO','\x22.\x20','9inDJVA','name','string','575GLCnFZ','map','8957990jgRdbQ','1737732RaTXOI','flags','\x20api\x20pull`\x20first.','110jOAxWq','validation','94302SphYdt','21KnCjaj','some','`\x20requires\x20either\x20--code\x20or\x20--alias.','alias','No\x20api.ts\x20found\x20in\x20','length','8729581EedXJQ','type'];a205_0x24c0=function(){return _0x597021;};return a205_0x24c0();}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x5c0fd5,_0x1fb595,_0x36d485,_0x351c2d){const _0x4d7899=a205_0x16c4,_0x557d1a=_0x5c0fd5[_0x4d7899(0x1c4)]['some'](_0x5dddd6=>_0x5dddd6['name']===_0x4d7899(0x1d6)&&_0x5dddd6[_0x4d7899(0x1d0)]===_0x4d7899(0x1db)),_0x45fb94=_0x5c0fd5[_0x4d7899(0x1c4)][_0x4d7899(0x1ca)](_0x1603d8=>_0x1603d8[_0x4d7899(0x1da)]===_0x4d7899(0x1cc)&&_0x1603d8['type']===_0x4d7899(0x1db));if(!_0x557d1a||!_0x45fb94)return;const _0x1f37ee=_0x1fb595[_0x4d7899(0x1d6)]?String(_0x1fb595[_0x4d7899(0x1d6)]):'',_0x4a97ef=_0x1fb595['alias']?String(_0x1fb595['alias']):'';if(!_0x1f37ee&&!_0x4a97ef)throw CliErrors[_0x4d7899(0x1c7)]('`'+_0x351c2d+_0x4d7899(0x1cb));if(_0x4a97ef&&!_0x1f37ee){const _0x1c94ba=resolveAlias(_0x36d485,_0x4a97ef);if(!_0x1c94ba){const _0x46599e=listAliases(_0x36d485)[_0x4d7899(0x1dd)](_0x6de5d6=>_0x6de5d6[_0x4d7899(0x1cc)]),_0x3a24ca=_0x46599e[_0x4d7899(0x1ce)]?'Available\x20aliases:\x20'+_0x46599e['join'](',\x20'):_0x4d7899(0x1cd)+_0x36d485+_0x4d7899(0x1d1)+CLI_BIN_NAME+_0x4d7899(0x1c5);throw CliErrors[_0x4d7899(0x1c7)](_0x4d7899(0x1d3)+_0x4a97ef+_0x4d7899(0x1d8)+_0x3a24ca);}_0x1fb595[_0x4d7899(0x1d6)]=_0x1c94ba;}}
1
+ (function(_0x4307a3,_0x4e3f77){const _0x452e19=a205_0x1039,_0x65db7a=_0x4307a3();while(!![]){try{const _0x393385=-parseInt(_0x452e19(0x185))/0x1+-parseInt(_0x452e19(0x183))/0x2*(parseInt(_0x452e19(0x190))/0x3)+parseInt(_0x452e19(0x186))/0x4*(-parseInt(_0x452e19(0x187))/0x5)+parseInt(_0x452e19(0x17d))/0x6*(-parseInt(_0x452e19(0x191))/0x7)+parseInt(_0x452e19(0x18f))/0x8+parseInt(_0x452e19(0x181))/0x9+-parseInt(_0x452e19(0x17c))/0xa*(-parseInt(_0x452e19(0x189))/0xb);if(_0x393385===_0x4e3f77)break;else _0x65db7a['push'](_0x65db7a['shift']());}catch(_0x264a26){_0x65db7a['push'](_0x65db7a['shift']());}}}(a205_0xc74f,0xb3e96));function a205_0xc74f(){const _0x4ac6e4=['8499152ZjFvwf','3eGOxDI','14iVIFFX','string','\x22.\x20','code','map','Available\x20aliases:\x20','some','130phvWGL','1950660nOdgpk','flags','.\x20Run\x20`','validation','6630498JtWzfe','length','1789466KHjPGA','type','639628dMkjTn','945852ntSADe','20ndFKsZ','Unknown\x20alias\x20\x22','1750045zbegQW','\x20api\x20pull`\x20first.','No\x20api.ts\x20found\x20in\x20','alias','join','`\x20requires\x20either\x20--code\x20or\x20--alias.'];a205_0xc74f=function(){return _0x4ac6e4;};return a205_0xc74f();}import{CliErrors}from'../errors.js';function a205_0x1039(_0x235aad,_0x590720){_0x235aad=_0x235aad-0x177;const _0xc74f3c=a205_0xc74f();let _0x103963=_0xc74f3c[_0x235aad];return _0x103963;}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0xcadde5,_0xdc360e,_0x48b0ed,_0x54b3cf){const _0x1250d0=a205_0x1039,_0x5e9ce1=_0xcadde5[_0x1250d0(0x17e)][_0x1250d0(0x17b)](_0x2e4d16=>_0x2e4d16['name']==='code'&&_0x2e4d16[_0x1250d0(0x184)]===_0x1250d0(0x192)),_0x4c85a4=_0xcadde5[_0x1250d0(0x17e)]['some'](_0x5995c3=>_0x5995c3['name']===_0x1250d0(0x18c)&&_0x5995c3[_0x1250d0(0x184)]===_0x1250d0(0x192));if(!_0x5e9ce1||!_0x4c85a4)return;const _0xd8b994=_0xdc360e['code']?String(_0xdc360e[_0x1250d0(0x178)]):'',_0x4e5917=_0xdc360e[_0x1250d0(0x18c)]?String(_0xdc360e[_0x1250d0(0x18c)]):'';if(!_0xd8b994&&!_0x4e5917)throw CliErrors['validation']('`'+_0x54b3cf+_0x1250d0(0x18e));if(_0x4e5917&&!_0xd8b994){const _0x31597d=resolveAlias(_0x48b0ed,_0x4e5917);if(!_0x31597d){const _0x460f80=listAliases(_0x48b0ed)[_0x1250d0(0x179)](_0x54d2da=>_0x54d2da[_0x1250d0(0x18c)]),_0x45b071=_0x460f80[_0x1250d0(0x182)]?_0x1250d0(0x17a)+_0x460f80[_0x1250d0(0x18d)](',\x20'):_0x1250d0(0x18b)+_0x48b0ed+_0x1250d0(0x17f)+CLI_BIN_NAME+_0x1250d0(0x18a);throw CliErrors[_0x1250d0(0x180)](_0x1250d0(0x188)+_0x4e5917+_0x1250d0(0x177)+_0x45b071);}_0xdc360e[_0x1250d0(0x178)]=_0x31597d;}}
@@ -1 +1 @@
1
- const a206_0x235aa4=a206_0x52ca;(function(_0x3cb16e,_0x52a778){const _0x5bb2fe=a206_0x52ca,_0x3b9fb4=_0x3cb16e();while(!![]){try{const _0x27fc9d=-parseInt(_0x5bb2fe(0x9d))/0x1+-parseInt(_0x5bb2fe(0x82))/0x2+-parseInt(_0x5bb2fe(0x97))/0x3*(parseInt(_0x5bb2fe(0x96))/0x4)+parseInt(_0x5bb2fe(0xa0))/0x5+-parseInt(_0x5bb2fe(0x7c))/0x6+parseInt(_0x5bb2fe(0x8c))/0x7+parseInt(_0x5bb2fe(0xb1))/0x8*(parseInt(_0x5bb2fe(0xab))/0x9);if(_0x27fc9d===_0x52a778)break;else _0x3b9fb4['push'](_0x3b9fb4['shift']());}catch(_0x533ff8){_0x3b9fb4['push'](_0x3b9fb4['shift']());}}}(a206_0x428e,0xdc362));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';function a206_0x52ca(_0xcc1923,_0x26462e){_0xcc1923=_0xcc1923-0x79;const _0x428eec=a206_0x428e();let _0x52caa7=_0x428eec[_0xcc1923];return _0x52caa7;}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';function a206_0x428e(){const _0x600b95=['107695DDahdG','riskLevel','cancelled','6192670wmzcKu','\x20\x20\x20Continue?\x20[y/N]\x20','Current\x20resolved\x20appcode\x20is\x20\x22','../core/api-client.js','selectedAppName','apiDir','execute','defaultApp','update','Set\x20appcode\x20via\x20`','object','54351hFJdBE','_notice','resolveApiDomain','explicitAppName','format','verbose','2224LnciCN','name','trim','configMissing','none','2114292UHiIif','defaultPageSize','isNonInteractive','mergedCli','apps','pretty','3592910mWaHSB','includes','defaultVerbose','schema','map','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','requiresAppCode','service','pageSize','catch','5766355JBvIpI','command','RABETBASE_APPCODE','rawFlags','resolveCookie','currentApp','string','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','⚠\x20\x20High-risk\x20operation:\x20','validation','2330492MMIKqq','3WZTtwz','authRequired','appcode','nonInteractive','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','value'];a206_0x428e=function(){return _0x600b95;};return a206_0x428e();}import{isNonInteractive as a206_0x4e6426}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x8d5fb6){const _0x4c61a2=a206_0x52ca;return typeof _0x8d5fb6===_0x4c61a2(0x92)&&_0x8d5fb6[_0x4c61a2(0x79)]()?_0x8d5fb6[_0x4c61a2(0x79)]():undefined;}function resolveEnvAppCode(){const _0x5ec88c=a206_0x52ca,_0xee5fb5=stringFlag(process.env.RABETBASE_APPCODE);if(_0xee5fb5)return{'name':_0x5ec88c(0x8e),'value':_0xee5fb5};const _0x142c3d=stringFlag(process.env.LOVRABET_APPCODE);if(_0x142c3d)return{'name':'LOVRABET_APPCODE','value':_0x142c3d};return undefined;}function hasExplicitAppCode(_0x73e577,_0x241830){const _0xd0b6ba=a206_0x52ca;return!!(stringFlag(_0x73e577[_0xd0b6ba(0x99)])||stringFlag(_0x241830[_0xd0b6ba(0x99)]));}function assertEnvAppCodeNotIgnored(_0x38620f,_0x38216e,_0x4eccf1){const _0x2574f2=a206_0x52ca;if(!_0x38216e||_0x4eccf1||_0x38620f===_0x38216e[_0x2574f2(0x9c)])return;const _0x4eef00=_0x38620f?_0x2574f2(0xa2)+_0x38620f+'\x22.':'No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.';throw CliErrors[_0x2574f2(0x95)](_0x38216e[_0x2574f2(0xb2)]+'='+_0x38216e[_0x2574f2(0x9c)]+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x4eef00+'\x20'+(_0x2574f2(0x87)+_0x38216e['name']+'\x22.'));}export function createPipelineEnv(_0x5276be,_0x3f02ed,_0x49759b=[]){const _0x2b7f1b=a206_0x52ca;return{'rawFlags':_0x3f02ed,'args':_0x49759b,'resolveAppCode':()=>_0x5276be['appCode'],'resolveCookie':()=>_0x5276be['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a206_0x4e6426(_0x3f02ed),'defaultFormat':_0x5276be[_0x2b7f1b(0xaf)],'defaultPageSize':_0x5276be[_0x2b7f1b(0x8a)],'defaultVerbose':_0x5276be[_0x2b7f1b(0xb0)],'apiDir':_0x5276be[_0x2b7f1b(0xa5)],'riskLevel':_0x5276be[_0x2b7f1b(0x9e)],'selectedAppName':_0x5276be[_0x2b7f1b(0xae)],'mergedCli':{'defaultApp':_0x5276be[_0x2b7f1b(0xa7)],'currentApp':_0x5276be[_0x2b7f1b(0x91)],'appCode':_0x5276be['appCode'],'apps':_0x5276be[_0x2b7f1b(0x80)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x19af44=>PIPELINE_FLAG_NAMES['has'](_0x19af44['name']))[a206_0x235aa4(0x86)](({name:_0x24f2de,type:_0x4ebd86,description:_0x5082f4})=>({'name':_0x24f2de,'type':_0x4ebd86,'description':_0x5082f4})),'formatOutput':formatOutput,'getCommandLabel'(_0x53dd79){const _0x502981=a206_0x235aa4;return CLI_BIN_NAME+'\x20'+_0x53dd79[_0x502981(0x89)]+'\x20'+_0x53dd79[_0x502981(0x8d)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x1fc244){const _0x120c25=a206_0x235aa4;return CliErrors[_0x120c25(0x95)](_0x1fc244);}},async 'prepare'(_0x42aabf,_0x409e14,_0x43fe20,_0x4efcc6){const _0x43b236=a206_0x235aa4,_0xf51536=_0x409e14[_0x43b236(0xa5)]||DEFAULT_API_DIR;resolveAliasToCode(_0x42aabf,_0x43fe20,_0xf51536,_0x4efcc6);const _0x1c54f3=resolveCommandAuthMode(_0x42aabf);let _0x32b65f='';if(_0x1c54f3!==_0x43b236(0x7b)){_0x32b65f=_0x409e14[_0x43b236(0x90)]()||'';if(!_0x32b65f){if(_0x1c54f3==='required')throw CliErrors[_0x43b236(0x98)]();}else{const {setActiveCookie:_0x5a4415}=await import(_0x43b236(0xa3));_0x5a4415(_0x32b65f);}}const _0x657707=_0x409e14['resolveAppCode']()??'';if(_0x42aabf[_0x43b236(0x88)]!==![]){assertEnvAppCodeNotIgnored(_0x657707,resolveEnvAppCode(),hasExplicitAppCode(_0x43fe20,_0x409e14[_0x43b236(0x8f)]));if(!_0x657707)throw CliErrors[_0x43b236(0x7a)](_0x43b236(0xa9)+CLI_BIN_NAME+_0x43b236(0x93));}return{'defaults':{'booleans':{'verbose':_0x409e14[_0x43b236(0x84)]},'numbers':{'pagesize':_0x409e14[_0x43b236(0x7d)]}},'extras':{'appCode':_0x657707,'cookie':_0x32b65f,'apiDomain':_0x409e14[_0x43b236(0xad)](),'apiDir':_0xf51536,'selectedAppName':_0x409e14[_0x43b236(0xa4)],'mergedCli':_0x409e14[_0x43b236(0x7f)]}};},async 'confirmHighRisk'({env:_0x333245,commandLabel:_0x3a87bb}){const _0x22c2e4=a206_0x235aa4;if(_0x333245[_0x22c2e4(0x7e)])throw CliErrors[_0x22c2e4(0x95)]('High-risk\x20operation\x20`'+_0x3a87bb+_0x22c2e4(0x9b));await requireConfirmationPrompt({'lines':[_0x22c2e4(0x94)+_0x3a87bb,_0x22c2e4(0xa1)],'createCancelledError':_0x3215d8=>CliErrors[_0x22c2e4(0x9f)](_0x3215d8)});},async 'finalize'(){const {clearActiveCookie:_0xd36dcf}=await import('../core/api-client.js');_0xd36dcf();}};export async function runCommand(_0x14df1b,_0x5dd9d7){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x14df1b)?withUpdateNotice(_0x14df1b):_0x14df1b,_0x5dd9d7,runnerAdapter);}function shouldAttachUpdateNotice(_0x44c146){const _0x22da7c=a206_0x235aa4;if(_0x44c146['hasFormat']===![])return![];return![_0x22da7c(0xa8),_0x22da7c(0x85),'doctor'][_0x22da7c(0x83)](_0x44c146[_0x22da7c(0x89)]);}function withUpdateNotice(_0x311a1b){return{..._0x311a1b,async 'execute'(_0x2ad909){const _0x17ae3c=a206_0x52ca,_0x2b3f4e=shouldResolveUpdateNotice(_0x2ad909)?resolveLatestUpdateNotice()[_0x17ae3c(0x8b)](()=>null):Promise['resolve'](null),_0x4bd0b5=await _0x311a1b[_0x17ae3c(0xa6)](_0x2ad909);return attachUpdateNotice(_0x4bd0b5,await _0x2b3f4e);}};}function shouldResolveUpdateNotice(_0x18ef3a){const _0xe7725=a206_0x235aa4;return _0x18ef3a[_0xe7725(0xaf)]===_0xe7725(0x81)&&!_0x18ef3a[_0xe7725(0x9a)];}function attachUpdateNotice(_0x4e4aea,_0x52d6d6){const _0x5eed2f=a206_0x235aa4;if(!_0x52d6d6||!_0x4e4aea||typeof _0x4e4aea!==_0x5eed2f(0xaa))return _0x4e4aea;const _0x3ae6bf=_0x4e4aea,_0x364020=typeof _0x3ae6bf[_0x5eed2f(0xac)]===_0x5eed2f(0xaa)&&_0x3ae6bf['_notice']!==null?_0x3ae6bf['_notice']:{};return{..._0x3ae6bf,'_notice':{..._0x364020,'update':_0x52d6d6}};}
1
+ const a206_0x5b75d4=a206_0x3e13;(function(_0x512e43,_0xca385b){const _0x83437a=a206_0x3e13,_0x24ce9b=_0x512e43();while(!![]){try{const _0x439568=parseInt(_0x83437a(0x7f))/0x1*(-parseInt(_0x83437a(0xb1))/0x2)+parseInt(_0x83437a(0x95))/0x3*(parseInt(_0x83437a(0x86))/0x4)+-parseInt(_0x83437a(0xa7))/0x5+parseInt(_0x83437a(0x9b))/0x6*(parseInt(_0x83437a(0xb2))/0x7)+-parseInt(_0x83437a(0xaa))/0x8+parseInt(_0x83437a(0x83))/0x9*(-parseInt(_0x83437a(0x99))/0xa)+parseInt(_0x83437a(0x7b))/0xb*(parseInt(_0x83437a(0x81))/0xc);if(_0x439568===_0xca385b)break;else _0x24ce9b['push'](_0x24ce9b['shift']());}catch(_0x455125){_0x24ce9b['push'](_0x24ce9b['shift']());}}}(a206_0xe379,0x2d043));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';function a206_0x3e13(_0x31f52e,_0x454f66){_0x31f52e=_0x31f52e-0x7a;const _0xe379b0=a206_0xe379();let _0x3e1325=_0xe379b0[_0x31f52e];return _0x3e1325;}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 a206_0x32ff89}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x222750){const _0x140aba=a206_0x3e13;return typeof _0x222750==='string'&&_0x222750[_0x140aba(0xb0)]()?_0x222750[_0x140aba(0xb0)]():undefined;}function resolveEnvAppCode(){const _0x1670ac=a206_0x3e13,_0x56a019=stringFlag(process.env.RABETBASE_APPCODE);if(_0x56a019)return{'name':'RABETBASE_APPCODE','value':_0x56a019};const _0x5c34c1=stringFlag(process.env.LOVRABET_APPCODE);if(_0x5c34c1)return{'name':_0x1670ac(0x94),'value':_0x5c34c1};return undefined;}function hasExplicitAppCode(_0x35acf7,_0x2dfaad){const _0x22d3b3=a206_0x3e13;return!!(stringFlag(_0x35acf7[_0x22d3b3(0xac)])||stringFlag(_0x2dfaad['appcode']));}function assertEnvAppCodeNotIgnored(_0x32372f,_0x4532c0,_0x3b7d38){const _0x416f86=a206_0x3e13;if(!_0x4532c0||_0x3b7d38||_0x32372f===_0x4532c0[_0x416f86(0x88)])return;const _0x3e6e4f=_0x32372f?_0x416f86(0x85)+_0x32372f+'\x22.':_0x416f86(0xb3);throw CliErrors[_0x416f86(0x8d)](_0x4532c0[_0x416f86(0xb6)]+'='+_0x4532c0[_0x416f86(0x88)]+_0x416f86(0x7d)+_0x3e6e4f+'\x20'+(_0x416f86(0x9c)+_0x4532c0[_0x416f86(0xb6)]+'\x22.'));}function a206_0xe379(){const _0x3523df=['../core/api-client.js','authRequired','High-risk\x20operation\x20`','explicitAppName','doctor','1625025ovdTtf','execute','mergedCli','2879992cTJgMu','includes','appcode','has','nonInteractive','resolve','trim','4EwUpMT','1337tLHlOE','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','cancelled','currentApp','name','required','44CTjyKx','defaultApp','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','object','62740uahajF','Set\x20appcode\x20via\x20`','2806584WiTvan','defaultPageSize','1827feWrhI','map','Current\x20resolved\x20appcode\x20is\x20\x22','212piGqey','command','value','schema','resolveCookie','_notice','filter','validation','cookie','format','⚠\x20\x20High-risk\x20operation:\x20','riskLevel','selectedAppName','configMissing','LOVRABET_APPCODE','5931sEnryJ','service','hasFormat','verbose','13990uxsRFM','requiresAppCode','7494JXaPBY','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','apps','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','rawFlags','appCode','catch'];a206_0xe379=function(){return _0x3523df;};return a206_0xe379();}export function createPipelineEnv(_0x28a07f,_0x40e964,_0x43e7a3=[]){const _0x28db81=a206_0x3e13;return{'rawFlags':_0x40e964,'args':_0x43e7a3,'resolveAppCode':()=>_0x28a07f[_0x28db81(0xa0)],'resolveCookie':()=>_0x28a07f[_0x28db81(0x8e)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a206_0x32ff89(_0x40e964),'defaultFormat':_0x28a07f['format'],'defaultPageSize':_0x28a07f['pageSize'],'defaultVerbose':_0x28a07f[_0x28db81(0x98)],'apiDir':_0x28a07f['apiDir'],'riskLevel':_0x28a07f[_0x28db81(0x91)],'selectedAppName':_0x28a07f[_0x28db81(0xa5)],'mergedCli':{'defaultApp':_0x28a07f[_0x28db81(0x7c)],'currentApp':_0x28a07f[_0x28db81(0xb5)],'appCode':_0x28a07f[_0x28db81(0xa0)],'apps':_0x28a07f[_0x28db81(0x9d)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a206_0x5b75d4(0x8c)](_0x21015b=>PIPELINE_FLAG_NAMES[a206_0x5b75d4(0xad)](_0x21015b[a206_0x5b75d4(0xb6)]))[a206_0x5b75d4(0x84)](({name:_0x490238,type:_0x5b8543,description:_0x4ba0cc})=>({'name':_0x490238,'type':_0x5b8543,'description':_0x4ba0cc})),'formatOutput':formatOutput,'getCommandLabel'(_0x597f84){const _0x36dcdc=a206_0x5b75d4;return CLI_BIN_NAME+'\x20'+_0x597f84[_0x36dcdc(0x96)]+'\x20'+_0x597f84[_0x36dcdc(0x87)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x2e8e9e){return CliErrors['validation'](_0x2e8e9e);}},async 'prepare'(_0x1c77ab,_0x460a54,_0x4f8155,_0x13a5fc){const _0x2c2884=a206_0x5b75d4,_0x5bf874=_0x460a54['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x1c77ab,_0x4f8155,_0x5bf874,_0x13a5fc);const _0x13076e=resolveCommandAuthMode(_0x1c77ab);let _0x3ca67c='';if(_0x13076e!=='none'){_0x3ca67c=_0x460a54[_0x2c2884(0x8a)]()||'';if(!_0x3ca67c){if(_0x13076e===_0x2c2884(0x7a))throw CliErrors[_0x2c2884(0xa3)]();}else{const {setActiveCookie:_0xab4281}=await import(_0x2c2884(0xa2));_0xab4281(_0x3ca67c);}}const _0x42b2cb=_0x460a54['resolveAppCode']()??'';if(_0x1c77ab[_0x2c2884(0x9a)]!==![]){assertEnvAppCodeNotIgnored(_0x42b2cb,resolveEnvAppCode(),hasExplicitAppCode(_0x4f8155,_0x460a54[_0x2c2884(0x9f)]));if(!_0x42b2cb)throw CliErrors[_0x2c2884(0x93)](_0x2c2884(0x80)+CLI_BIN_NAME+_0x2c2884(0x9e));}return{'defaults':{'booleans':{'verbose':_0x460a54['defaultVerbose']},'numbers':{'pagesize':_0x460a54[_0x2c2884(0x82)]}},'extras':{'appCode':_0x42b2cb,'cookie':_0x3ca67c,'apiDomain':_0x460a54['resolveApiDomain'](),'apiDir':_0x5bf874,'selectedAppName':_0x460a54[_0x2c2884(0x92)],'mergedCli':_0x460a54[_0x2c2884(0xa9)]}};},async 'confirmHighRisk'({env:_0x26af62,commandLabel:_0x348919}){const _0x2ece14=a206_0x5b75d4;if(_0x26af62['isNonInteractive'])throw CliErrors[_0x2ece14(0x8d)](_0x2ece14(0xa4)+_0x348919+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':[_0x2ece14(0x90)+_0x348919,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x2dfd81=>CliErrors[_0x2ece14(0xb4)](_0x2dfd81)});},async 'finalize'(){const _0x574b51=a206_0x5b75d4,{clearActiveCookie:_0x36ee27}=await import(_0x574b51(0xa2));_0x36ee27();}};export async function runCommand(_0x4f9936,_0x29833f){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x4f9936)?withUpdateNotice(_0x4f9936):_0x4f9936,_0x29833f,runnerAdapter);}function shouldAttachUpdateNotice(_0x49bca1){const _0x96c699=a206_0x5b75d4;if(_0x49bca1[_0x96c699(0x97)]===![])return![];return!['update',_0x96c699(0x89),_0x96c699(0xa6)][_0x96c699(0xab)](_0x49bca1['service']);}function withUpdateNotice(_0x465860){return{..._0x465860,async 'execute'(_0x12fa3a){const _0x115c81=a206_0x3e13,_0x56491c=shouldResolveUpdateNotice(_0x12fa3a)?resolveLatestUpdateNotice()[_0x115c81(0xa1)](()=>null):Promise[_0x115c81(0xaf)](null),_0x1173f8=await _0x465860[_0x115c81(0xa8)](_0x12fa3a);return attachUpdateNotice(_0x1173f8,await _0x56491c);}};}function shouldResolveUpdateNotice(_0x5514c5){const _0x1e8030=a206_0x5b75d4;return _0x5514c5[_0x1e8030(0x8f)]==='pretty'&&!_0x5514c5[_0x1e8030(0xae)];}function attachUpdateNotice(_0x29a1b9,_0x205c85){const _0x128245=a206_0x5b75d4;if(!_0x205c85||!_0x29a1b9||typeof _0x29a1b9!==_0x128245(0x7e))return _0x29a1b9;const _0x366c05=_0x29a1b9,_0x33a25a=typeof _0x366c05['_notice']===_0x128245(0x7e)&&_0x366c05[_0x128245(0x8b)]!==null?_0x366c05[_0x128245(0x8b)]:{};return{..._0x366c05,'_notice':{..._0x33a25a,'update':_0x205c85}};}
@@ -1 +1 @@
1
- (function(_0x2e3dca,_0x5d7225){const _0x320f5f=a207_0x4668,_0x2ebb4=_0x2e3dca();while(!![]){try{const _0x320acd=parseInt(_0x320f5f(0xe1))/0x1*(-parseInt(_0x320f5f(0xdd))/0x2)+parseInt(_0x320f5f(0xdb))/0x3+-parseInt(_0x320f5f(0xe2))/0x4*(-parseInt(_0x320f5f(0xe0))/0x5)+parseInt(_0x320f5f(0xe4))/0x6+-parseInt(_0x320f5f(0xe3))/0x7*(-parseInt(_0x320f5f(0xe5))/0x8)+parseInt(_0x320f5f(0xdc))/0x9*(-parseInt(_0x320f5f(0xd9))/0xa)+parseInt(_0x320f5f(0xdf))/0xb*(-parseInt(_0x320f5f(0xde))/0xc);if(_0x320acd===_0x5d7225)break;else _0x2ebb4['push'](_0x2ebb4['shift']());}catch(_0x1c1b9d){_0x2ebb4['push'](_0x2ebb4['shift']());}}}(a207_0x2554,0xa2207));import{buildSchemaPayload as a207_0x39ad31}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a207_0x4668(_0x5dde8e,_0x535fa5){_0x5dde8e=_0x5dde8e-0xd9;const _0x2554e8=a207_0x2554();let _0x46689f=_0x2554e8[_0x5dde8e];return _0x46689f;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x168385=a207_0x4668,{serviceRegistry:_0x315324,findDefinition:_0x4face6}=await import(_0x168385(0xda));return a207_0x39ad31({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x315324,'buildAllFlags':buildAllFlags,'findDefinition':_0x4face6});}function a207_0x2554(){const _0x8feec=['2930BsQMIt','../commands/registry.js','2170002NGYAnS','12546ibAagH','1248330Ifdjoc','18348wmXmzS','11462xjihCV','265jBBPXQ','1mbNrnN','85076yXBEzm','62783ClbUvV','6429456LRRLXk','328liSwde'];a207_0x2554=function(){return _0x8feec;};return a207_0x2554();}
1
+ (function(_0x10fd23,_0xa1ac46){const _0x3db06d=a207_0x485f,_0x43f609=_0x10fd23();while(!![]){try{const _0x4acade=parseInt(_0x3db06d(0xfd))/0x1*(-parseInt(_0x3db06d(0x105))/0x2)+-parseInt(_0x3db06d(0xfe))/0x3+parseInt(_0x3db06d(0x101))/0x4+parseInt(_0x3db06d(0x100))/0x5+-parseInt(_0x3db06d(0xfb))/0x6*(parseInt(_0x3db06d(0xff))/0x7)+parseInt(_0x3db06d(0x102))/0x8*(-parseInt(_0x3db06d(0x104))/0x9)+parseInt(_0x3db06d(0x103))/0xa;if(_0x4acade===_0xa1ac46)break;else _0x43f609['push'](_0x43f609['shift']());}catch(_0xe8a34b){_0x43f609['push'](_0x43f609['shift']());}}}(a207_0x49ce,0xb2a32));import{buildSchemaPayload as a207_0x1cf899}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 a207_0x485f(_0x10a97d,_0x4ceb06){_0x10a97d=_0x10a97d-0xfb;const _0x49cee=a207_0x49ce();let _0x485fee=_0x49cee[_0x10a97d];return _0x485fee;}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x49bfac=a207_0x485f,{serviceRegistry:_0x1c903c,findDefinition:_0x51a4a0}=await import(_0x49bfac(0xfc));return a207_0x1cf899({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x1c903c,'buildAllFlags':buildAllFlags,'findDefinition':_0x51a4a0});}function a207_0x49ce(){const _0x28a854=['31559130XLylaY','73251DYzsHi','416408APfZEE','2166GhNXKc','../commands/registry.js','4aJYiLt','3973260CphpsF','14546WNbHlS','3857900tSuSqt','3762352HWqNuv','1208QxbHOB'];a207_0x49ce=function(){return _0x28a854;};return a207_0x49ce();}
@@ -1 +1 @@
1
- function a208_0x560d(){var _0xd06fbc=['599672kLNYhV','1714145fzhgYp','18659208INeBVH','810JTyTON','1083814tpMnKw','31115FAQDco','552711ekCvtn','1590777vsguYP'];a208_0x560d=function(){return _0xd06fbc;};return a208_0x560d();}function a208_0x4245(_0x3bda0d,_0x3ab094){_0x3bda0d=_0x3bda0d-0x12c;var _0x560d88=a208_0x560d();var _0x424568=_0x560d88[_0x3bda0d];return _0x424568;}(function(_0x18abd9,_0x16d8c3){var _0x360b8a=a208_0x4245,_0x11117a=_0x18abd9();while(!![]){try{var _0x38dca3=-parseInt(_0x360b8a(0x131))/0x1+-parseInt(_0x360b8a(0x12f))/0x2+-parseInt(_0x360b8a(0x132))/0x3+-parseInt(_0x360b8a(0x133))/0x4+parseInt(_0x360b8a(0x12c))/0x5+-parseInt(_0x360b8a(0x12e))/0x6*(parseInt(_0x360b8a(0x130))/0x7)+parseInt(_0x360b8a(0x12d))/0x8;if(_0x38dca3===_0x16d8c3)break;else _0x11117a['push'](_0x11117a['shift']());}catch(_0x11039a){_0x11117a['push'](_0x11117a['shift']());}}}(a208_0x560d,0x49548));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
1
+ function a208_0x5b2c(){var _0x9df7e0=['70WfQOaG','4976019EyuqDs','4410565IDPBEQ','2937700pNdUIy','2030lSgArZ','1440564GWopkm','1212vPMhIN','440261lXWXFF','518720oFrxSn'];a208_0x5b2c=function(){return _0x9df7e0;};return a208_0x5b2c();}(function(_0x157451,_0x5ab15f){var _0x3d0d75=a208_0x1417,_0x458b35=_0x157451();while(!![]){try{var _0x14d72d=-parseInt(_0x3d0d75(0xf8))/0x1+parseInt(_0x3d0d75(0xf5))/0x2*(parseInt(_0x3d0d75(0xf7))/0x3)+parseInt(_0x3d0d75(0xf4))/0x4+parseInt(_0x3d0d75(0xf3))/0x5+parseInt(_0x3d0d75(0xf6))/0x6+parseInt(_0x3d0d75(0xfa))/0x7*(-parseInt(_0x3d0d75(0xf9))/0x8)+-parseInt(_0x3d0d75(0xfb))/0x9;if(_0x14d72d===_0x5ab15f)break;else _0x458b35['push'](_0x458b35['shift']());}catch(_0x4473dc){_0x458b35['push'](_0x458b35['shift']());}}}(a208_0x5b2c,0x989f4));function a208_0x1417(_0x981a0d,_0x4940f4){_0x981a0d=_0x981a0d-0xf3;var _0x5b2c06=a208_0x5b2c();var _0x141769=_0x5b2c06[_0x981a0d];return _0x141769;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- const a209_0x3b1fb2=a209_0x2d22;(function(_0x30e86c,_0x280414){const _0x2b7910=a209_0x2d22,_0x42df10=_0x30e86c();while(!![]){try{const _0xe9cb63=-parseInt(_0x2b7910(0x15a))/0x1*(-parseInt(_0x2b7910(0x164))/0x2)+parseInt(_0x2b7910(0x165))/0x3+parseInt(_0x2b7910(0x161))/0x4*(parseInt(_0x2b7910(0x15f))/0x5)+parseInt(_0x2b7910(0x166))/0x6+-parseInt(_0x2b7910(0x15d))/0x7*(-parseInt(_0x2b7910(0x160))/0x8)+parseInt(_0x2b7910(0x163))/0x9+parseInt(_0x2b7910(0x162))/0xa*(-parseInt(_0x2b7910(0x15b))/0xb);if(_0xe9cb63===_0x280414)break;else _0x42df10['push'](_0x42df10['shift']());}catch(_0x243886){_0x42df10['push'](_0x42df10['shift']());}}}(a209_0x3fab,0xe8d05));function a209_0x3fab(){const _0x1f1eff=['816297VaQTom','9823596PGEbqc','a39e59e','11471UNIJrl','3924272pvbJFc','2.3.5','21zEBNAw','v2.3.5-beta.1','40eNUedB','103568inbzLm','791512FiEiAk','100cGPlKO','8805843aTauAZ','2xATfNh'];a209_0x3fab=function(){return _0x1f1eff;};return a209_0x3fab();}export const VERSION=a209_0x3b1fb2(0x15c);export const GIT_TAG=a209_0x3b1fb2(0x15e);function a209_0x2d22(_0x222b57,_0x4c8bae){_0x222b57=_0x222b57-0x15a;const _0x3fabd6=a209_0x3fab();let _0x2d2226=_0x3fabd6[_0x222b57];return _0x2d2226;}export const GIT_COMMIT=a209_0x3b1fb2(0x167);export const BUILD_TIME='2026-07-14T15:32:16.705Z';
1
+ function a209_0x3320(){const _0x46ac6e=['2.3.6','3kxLOll','2026-07-16T11:50:11.784Z','28341530KuWUAg','8748000yeggZF','3024048rlyEPy','6BKeCnh','541750qXMSav','48632tTrtXR','4729915mGzHnU','b1289b6','986728pajohs','266DZmNhx'];a209_0x3320=function(){return _0x46ac6e;};return a209_0x3320();}const a209_0x3b5175=a209_0x23a6;(function(_0xad4ade,_0x1b3419){const _0x17852a=a209_0x23a6,_0x2d7b6a=_0xad4ade();while(!![]){try{const _0x32ad18=-parseInt(_0x17852a(0x12a))/0x1+-parseInt(_0x17852a(0x133))/0x2*(parseInt(_0x17852a(0x12d))/0x3)+-parseInt(_0x17852a(0x131))/0x4+parseInt(_0x17852a(0x128))/0x5*(-parseInt(_0x17852a(0x132))/0x6)+-parseInt(_0x17852a(0x12b))/0x7*(parseInt(_0x17852a(0x127))/0x8)+parseInt(_0x17852a(0x130))/0x9+parseInt(_0x17852a(0x12f))/0xa;if(_0x32ad18===_0x1b3419)break;else _0x2d7b6a['push'](_0x2d7b6a['shift']());}catch(_0x30649d){_0x2d7b6a['push'](_0x2d7b6a['shift']());}}}(a209_0x3320,0x96481));function a209_0x23a6(_0x302f8d,_0xcafdc7){_0x302f8d=_0x302f8d-0x127;const _0x332033=a209_0x3320();let _0x23a60b=_0x332033[_0x302f8d];return _0x23a60b;}export const VERSION=a209_0x3b5175(0x12c);export const GIT_TAG='v2.3.6-beta.1';export const GIT_COMMIT=a209_0x3b5175(0x129);export const BUILD_TIME=a209_0x3b5175(0x12e);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a210_0x371d(_0x219984,_0x40b6cd){_0x219984=_0x219984-0x147;var _0xe1d29c=a210_0xe1d2();var _0x371d3b=_0xe1d29c[_0x219984];return _0x371d3b;}(function(_0xed4b0c,_0x29eecd){var _0x3ff54b=a210_0x371d,_0x3c61cc=_0xed4b0c();while(!![]){try{var _0xa8e330=-parseInt(_0x3ff54b(0x152))/0x1+-parseInt(_0x3ff54b(0x14b))/0x2+-parseInt(_0x3ff54b(0x147))/0x3*(parseInt(_0x3ff54b(0x154))/0x4)+-parseInt(_0x3ff54b(0x14f))/0x5*(-parseInt(_0x3ff54b(0x155))/0x6)+parseInt(_0x3ff54b(0x14e))/0x7*(parseInt(_0x3ff54b(0x14c))/0x8)+parseInt(_0x3ff54b(0x150))/0x9*(-parseInt(_0x3ff54b(0x156))/0xa)+parseInt(_0x3ff54b(0x14d))/0xb;if(_0xa8e330===_0x29eecd)break;else _0x3c61cc['push'](_0x3c61cc['shift']());}catch(_0x509f3f){_0x3c61cc['push'](_0x3c61cc['shift']());}}}(a210_0xe1d2,0x7706e));import a210_0x2bd6c1 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x17f773=a210_0x371d;console['log'](),console['log'](a210_0x2bd6c1[_0x17f773(0x151)][_0x17f773(0x14a)]('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console[_0x17f773(0x153)](_0x17f773(0x148)+a210_0x2bd6c1[_0x17f773(0x151)][_0x17f773(0x14a)](CLI_BIN_NAME+_0x17f773(0x149))+'\x20to\x20view\x20available\x20commands.'),console[_0x17f773(0x153)]();}function a210_0xe1d2(){var _0x20126d=['1380QVsnco','\x20\x20Use\x20','\x20--help','bold','148450VkurEB','80344TvzlEa','21383703FXVKTR','140jBdvRn','15130TSQyBA','63URMHsC','green','782333VDrcLv','log','2200rzmgRP','132EUdvhN','877590wVUjYP'];a210_0xe1d2=function(){return _0x20126d;};return a210_0xe1d2();}
1
+ function a210_0x4950(_0x409d08,_0x40bef9){_0x409d08=_0x409d08-0x121;var _0x3cb5bb=a210_0x3cb5();var _0x49506c=_0x3cb5bb[_0x409d08];return _0x49506c;}function a210_0x3cb5(){var _0xd6596e=['5269689onnbqn','176IJrlbz','log','3kyzEsg','77489yXCCJC','4191474dsjQSM','green','185720BcrEvQ','bold','10aytZPw','8kEmZMo','715892lyZjqo','4374468vDnTXP','\x20\x20Use\x20','2386645EuRxxu'];a210_0x3cb5=function(){return _0xd6596e;};return a210_0x3cb5();}(function(_0x1346b9,_0x5cff9e){var _0x1c63c9=a210_0x4950,_0x59a940=_0x1346b9();while(!![]){try{var _0x32457c=-parseInt(_0x1c63c9(0x128))/0x1*(parseInt(_0x1c63c9(0x12d))/0x2)+parseInt(_0x1c63c9(0x127))/0x3*(-parseInt(_0x1c63c9(0x12f))/0x4)+parseInt(_0x1c63c9(0x123))/0x5+parseInt(_0x1c63c9(0x129))/0x6+parseInt(_0x1c63c9(0x121))/0x7+parseInt(_0x1c63c9(0x12e))/0x8*(-parseInt(_0x1c63c9(0x124))/0x9)+-parseInt(_0x1c63c9(0x12b))/0xa*(parseInt(_0x1c63c9(0x125))/0xb);if(_0x32457c===_0x5cff9e)break;else _0x59a940['push'](_0x59a940['shift']());}catch(_0x523ae5){_0x59a940['push'](_0x59a940['shift']());}}}(a210_0x3cb5,0x55dfd));import a210_0x28a54e from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0xf858f=a210_0x4950;console[_0xf858f(0x126)](),console[_0xf858f(0x126)](a210_0x28a54e[_0xf858f(0x12a)][_0xf858f(0x12c)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0xf858f(0x126)](),console[_0xf858f(0x126)](_0xf858f(0x122)+a210_0x28a54e[_0xf858f(0x12a)]['bold'](CLI_BIN_NAME+'\x20--help')+'\x20to\x20view\x20available\x20commands.'),console[_0xf858f(0x126)]();}