@lovrabet/rabetbase-cli 2.3.5-beta.1 → 2.3.6-beta.1

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
- const a181_0x2a2f78=a181_0x55bc;(function(_0x49c076,_0x295a9c){const _0x638632=a181_0x55bc,_0x54f4f8=_0x49c076();while(!![]){try{const _0x460b9e=parseInt(_0x638632(0x1b2))/0x1*(-parseInt(_0x638632(0x18e))/0x2)+-parseInt(_0x638632(0x1b3))/0x3+parseInt(_0x638632(0x19b))/0x4*(-parseInt(_0x638632(0x193))/0x5)+-parseInt(_0x638632(0x1a8))/0x6*(-parseInt(_0x638632(0x190))/0x7)+parseInt(_0x638632(0x18d))/0x8+parseInt(_0x638632(0x19d))/0x9+parseInt(_0x638632(0x1a2))/0xa*(parseInt(_0x638632(0x19a))/0xb);if(_0x460b9e===_0x295a9c)break;else _0x54f4f8['push'](_0x54f4f8['shift']());}catch(_0x18004f){_0x54f4f8['push'](_0x54f4f8['shift']());}}}(a181_0x28e7,0x8d29d));import{access,mkdir,readdir,stat}from'node:fs/promises';import{constants}from'node:fs';import{dirname,join}from'node:path';import{findHookLocationByRemoteId,snakeToCamel}from'../../core/bff/utils.js';export const SUPPORTED_BFF_TYPES=[a181_0x2a2f78(0x194),a181_0x2a2f78(0x1aa),'HOOK'];export function normalizeBffType(_0x914c3b){const _0xabbe84=a181_0x2a2f78;if(!_0x914c3b)return undefined;const _0x32966b=_0x914c3b[_0xabbe84(0x1ae)]()[_0xabbe84(0x18b)]();return SUPPORTED_BFF_TYPES['includes'](_0x32966b)?_0x32966b:undefined;}async function scanJsFilesRecursively(_0x5cce3d,_0x5c2cfe){const _0x55220e=a181_0x2a2f78,_0x5753c6=[];try{const _0x5e5306=await readdir(_0x5cce3d,{'withFileTypes':!![]});for(const _0x4b1daa of _0x5e5306){const _0x4fcbb5=join(_0x5cce3d,_0x4b1daa[_0x55220e(0x199)]);if(_0x4b1daa[_0x55220e(0x195)]())_0x5753c6[_0x55220e(0x197)](...await scanJsFilesRecursively(_0x4fcbb5,_0x5c2cfe+'/'+_0x4b1daa['name']));else _0x4b1daa[_0x55220e(0x18a)]()&&_0x4b1daa['name'][_0x55220e(0x19f)]('.js')&&_0x5753c6[_0x55220e(0x197)]({'lockKey':_0x5c2cfe+'/'+_0x4b1daa[_0x55220e(0x199)][_0x55220e(0x19c)](/\.js$/,''),'filePath':_0x4fcbb5});}}catch(_0x7dde7c){if(_0x7dde7c['code']!=='ENOENT')throw _0x7dde7c;}return _0x5753c6;}async function scanFlatFunctions(_0x2c1784,_0x4d8906){const _0x134ed1=a181_0x2a2f78,_0x1919e2=join(_0x2c1784[_0x134ed1(0x198)],_0x4d8906),_0x5d35ea=await scanJsFilesRecursively(_0x1919e2,_0x4d8906);return _0x5d35ea[_0x134ed1(0x192)](({lockKey:_0x2b4ac9,filePath:_0x191eec})=>({'type':_0x4d8906,'name':_0x2b4ac9['split']('/')['at'](-0x1)??'','filePath':_0x191eec,'lockKey':_0x2b4ac9}));}async function scanHookFunctions(_0x4400a3){const _0x14defb=a181_0x2a2f78,_0x31bc6d=join(_0x4400a3['scriptsRootDir'],_0x14defb(0x1a4)),_0x146b14=[];try{const _0x39cf68=await readdir(_0x31bc6d,{'withFileTypes':!![]});for(const _0xa17cee of _0x39cf68){if(!_0xa17cee[_0x14defb(0x195)]())continue;const _0x34ca41=_0xa17cee[_0x14defb(0x199)],_0x487923=join(_0x31bc6d,_0x34ca41),_0x49a852=await readdir(_0x487923,{'withFileTypes':!![]});for(const _0x4bda08 of _0x49a852){if(!_0x4bda08[_0x14defb(0x195)]())continue;const _0x46642c=_0x4bda08[_0x14defb(0x199)],_0x3bb4d0=join(_0x487923,_0x46642c),_0x4fc625=await readdir(_0x3bb4d0,{'withFileTypes':!![]});for(const _0x25e355 of _0x4fc625){if(!_0x25e355[_0x14defb(0x195)]())continue;const _0x427ace=_0x25e355[_0x14defb(0x199)],_0x3e4283=join(_0x3bb4d0,_0x427ace),_0x6bff08=await readdir(_0x3e4283,{'withFileTypes':!![]});for(const _0x4370fe of _0x6bff08){if(!_0x4370fe[_0x14defb(0x18a)]()||!_0x4370fe[_0x14defb(0x199)][_0x14defb(0x19f)]('.js'))continue;const _0x16cdfb=_0x4370fe[_0x14defb(0x199)][_0x14defb(0x19c)](/\.js$/,'');_0x146b14[_0x14defb(0x197)]({'type':_0x14defb(0x1a4),'name':_0x16cdfb,'filePath':join(_0x3e4283,_0x4370fe[_0x14defb(0x199)]),'lockKey':'HOOK/'+_0x34ca41+'/'+_0x46642c+'/'+_0x427ace+'/'+_0x16cdfb,'alias':_0x34ca41,'operationType':_0x46642c,'functionNode':_0x427ace});}}}}}catch(_0x3cdbe3){if(_0x3cdbe3[_0x14defb(0x1ab)]!==_0x14defb(0x1a1))throw _0x3cdbe3;}return _0x146b14;}export async function scanLocalBffFunctions(_0x1f86da,_0x1b0cbe){const _0x5c4c0a=a181_0x2a2f78;if(_0x1b0cbe===_0x5c4c0a(0x194)||_0x1b0cbe===_0x5c4c0a(0x1aa))return scanFlatFunctions(_0x1f86da,_0x1b0cbe);if(_0x1b0cbe===_0x5c4c0a(0x1a4))return scanHookFunctions(_0x1f86da);const [_0x37a75c,_0x497a47,_0x40416a]=await Promise[_0x5c4c0a(0x18f)]([scanFlatFunctions(_0x1f86da,_0x5c4c0a(0x194)),scanFlatFunctions(_0x1f86da,_0x5c4c0a(0x1aa)),scanHookFunctions(_0x1f86da)]);return[..._0x37a75c,..._0x497a47,..._0x40416a];}export function resolveLocalFilePathFromLockKey(_0x2c5abb,_0x55ed48){const _0x2ec321=a181_0x2a2f78;return join(_0x2c5abb[_0x2ec321(0x198)],..._0x55ed48[_0x2ec321(0x1a6)]('/'))+_0x2ec321(0x191);}export function createHookLocationMap(_0x18f8cc){const _0x4d8aa6=a181_0x2a2f78,_0x7e6d64=new Map();for(const _0x56c4b2 of _0x18f8cc){_0x56c4b2[_0x4d8aa6(0x1a3)]&&_0x7e6d64[_0x4d8aa6(0x19e)](_0x56c4b2['beforeScriptId'],{'datasetCode':_0x56c4b2[_0x4d8aa6(0x196)],'operationType':snakeToCamel(_0x56c4b2[_0x4d8aa6(0x1a5)]),'functionNode':'before'}),_0x56c4b2[_0x4d8aa6(0x1a9)]&&_0x7e6d64['set'](_0x56c4b2['afterScriptId'],{'datasetCode':_0x56c4b2[_0x4d8aa6(0x196)],'operationType':snakeToCamel(_0x56c4b2[_0x4d8aa6(0x1a5)]),'functionNode':_0x4d8aa6(0x1a0)});}return _0x7e6d64;}function a181_0x55bc(_0xdacbfb,_0x3ea7f4){_0xdacbfb=_0xdacbfb-0x18a;const _0x28e798=a181_0x28e7();let _0x55bcda=_0x28e798[_0xdacbfb];return _0x55bcda;}export function resolveRemoteScriptTarget(_0x15c7c4,_0x46561f,_0xd1f12d,_0x40eeee,_0x44b30e){const _0x360139=a181_0x2a2f78,_0x291b88=normalizeBffType(_0x46561f[_0x360139(0x1b0)]);if(!_0x291b88||!_0x46561f[_0x360139(0x1b1)])return null;if(_0x291b88===_0x360139(0x1a4)){const _0x17f00f=(_0x46561f['id']?_0xd1f12d[_0x360139(0x1af)](_0x46561f['id']):undefined)??findHookLocationByRemoteId(_0x40eeee,_0x46561f['id']);if(!_0x17f00f)return null;const _0x29396e=_0x17f00f[_0x360139(0x1a7)]||_0x44b30e['get'](_0x17f00f[_0x360139(0x196)]),_0x2a77c5=_0x29396e??_0x17f00f[_0x360139(0x196)],_0x3944e3={..._0x17f00f,'alias':_0x29396e},_0x1b2b26=_0x360139(0x18c)+_0x2a77c5+'/'+_0x3944e3[_0x360139(0x1a5)]+'/'+_0x3944e3[_0x360139(0x1ad)]+'/'+_0x46561f[_0x360139(0x1b1)];return{'lockKey':_0x1b2b26,'filePath':resolveLocalFilePathFromLockKey(_0x15c7c4,_0x1b2b26),'type':_0x360139(0x1a4),'hookLocation':_0x3944e3};}const _0x3aeb80=_0x291b88+'/'+_0x46561f[_0x360139(0x1b1)];return{'lockKey':_0x3aeb80,'filePath':resolveLocalFilePathFromLockKey(_0x15c7c4,_0x3aeb80),'type':_0x291b88};}export async function ensureParentDirectory(_0x2f71b2){await mkdir(dirname(_0x2f71b2),{'recursive':!![]});}function a181_0x28e7(){const _0x5a776d=['1621425NmQxwf','isFile','toUpperCase','HOOK/','8298312nybQnS','8UsbjmO','all','47453lhyLQV','.js','map','13065ugNlhm','COMMON','isDirectory','datasetCode','push','scriptsRootDir','name','41030LcTRFS','652ktlvnE','replace','8675802mfGkkJ','set','endsWith','after','ENOENT','560mmDwcI','beforeScriptId','HOOK','operationType','split','alias','240qKKzcw','afterScriptId','ENDPOINT','code','F_OK','functionNode','trim','get','scriptType','functionName','234177MuKJXT'];a181_0x28e7=function(){return _0x5a776d;};return a181_0x28e7();}export async function fileExists(_0x2a04a7){const _0x1deabf=a181_0x2a2f78;try{return await access(_0x2a04a7,constants[_0x1deabf(0x1ac)]),!![];}catch{return![];}}export async function directoryExists(_0x50a903){try{const _0x49533b=await stat(_0x50a903);return _0x49533b['isDirectory']();}catch{return![];}}
1
+ const a181_0x2ffeae=a181_0x2a7c;(function(_0x247d0f,_0x3b0416){const _0x31d2ee=a181_0x2a7c,_0x32be7f=_0x247d0f();while(!![]){try{const _0x58e2d0=-parseInt(_0x31d2ee(0x1f5))/0x1*(-parseInt(_0x31d2ee(0x205))/0x2)+parseInt(_0x31d2ee(0x200))/0x3*(-parseInt(_0x31d2ee(0x20e))/0x4)+-parseInt(_0x31d2ee(0x1f9))/0x5+-parseInt(_0x31d2ee(0x210))/0x6+parseInt(_0x31d2ee(0x1f4))/0x7+-parseInt(_0x31d2ee(0x204))/0x8+parseInt(_0x31d2ee(0x1f1))/0x9;if(_0x58e2d0===_0x3b0416)break;else _0x32be7f['push'](_0x32be7f['shift']());}catch(_0x352ac5){_0x32be7f['push'](_0x32be7f['shift']());}}}(a181_0x45a4,0x3146a));import{access,mkdir,readdir,stat}from'node:fs/promises';import{constants}from'node:fs';import{dirname,join}from'node:path';import{findHookLocationByRemoteId,snakeToCamel}from'../../core/bff/utils.js';export const SUPPORTED_BFF_TYPES=[a181_0x2ffeae(0x1f6),a181_0x2ffeae(0x1ff),a181_0x2ffeae(0x1fd)];export function normalizeBffType(_0x308acb){const _0x336d71=a181_0x2ffeae;if(!_0x308acb)return undefined;const _0xfc55de=_0x308acb[_0x336d71(0x20a)]()[_0x336d71(0x213)]();return SUPPORTED_BFF_TYPES['includes'](_0xfc55de)?_0xfc55de:undefined;}async function scanJsFilesRecursively(_0x36da50,_0x54dc6e){const _0x22acdc=a181_0x2ffeae,_0xa77d5=[];try{const _0xbd12b5=await readdir(_0x36da50,{'withFileTypes':!![]});for(const _0xfe77f2 of _0xbd12b5){const _0x456249=join(_0x36da50,_0xfe77f2[_0x22acdc(0x212)]);if(_0xfe77f2[_0x22acdc(0x1f0)]())_0xa77d5['push'](...await scanJsFilesRecursively(_0x456249,_0x54dc6e+'/'+_0xfe77f2[_0x22acdc(0x212)]));else _0xfe77f2[_0x22acdc(0x20b)]()&&_0xfe77f2[_0x22acdc(0x212)][_0x22acdc(0x1fe)](_0x22acdc(0x207))&&_0xa77d5[_0x22acdc(0x1f7)]({'lockKey':_0x54dc6e+'/'+_0xfe77f2['name'][_0x22acdc(0x215)](/\.js$/,''),'filePath':_0x456249});}}catch(_0x2d4923){if(_0x2d4923[_0x22acdc(0x214)]!==_0x22acdc(0x216))throw _0x2d4923;}return _0xa77d5;}async function scanFlatFunctions(_0x15f006,_0xdc43c0){const _0x1e3814=a181_0x2ffeae,_0x385736=join(_0x15f006['scriptsRootDir'],_0xdc43c0),_0x4b2e76=await scanJsFilesRecursively(_0x385736,_0xdc43c0);return _0x4b2e76[_0x1e3814(0x201)](({lockKey:_0x2ea811,filePath:_0x27d899})=>({'type':_0xdc43c0,'name':_0x2ea811[_0x1e3814(0x211)]('/')['at'](-0x1)??'','filePath':_0x27d899,'lockKey':_0x2ea811}));}function a181_0x2a7c(_0x1adaf0,_0x4162d0){_0x1adaf0=_0x1adaf0-0x1f0;const _0x45a490=a181_0x45a4();let _0x2a7c15=_0x45a490[_0x1adaf0];return _0x2a7c15;}async function scanHookFunctions(_0x103778){const _0x28dcbd=a181_0x2ffeae,_0x55b33c=join(_0x103778[_0x28dcbd(0x1f3)],_0x28dcbd(0x1fd)),_0x55d485=[];try{const _0x1f8b0f=await readdir(_0x55b33c,{'withFileTypes':!![]});for(const _0x35d459 of _0x1f8b0f){if(!_0x35d459[_0x28dcbd(0x1f0)]())continue;const _0x3bf6b2=_0x35d459[_0x28dcbd(0x212)],_0x308600=join(_0x55b33c,_0x3bf6b2),_0xf5ef18=await readdir(_0x308600,{'withFileTypes':!![]});for(const _0x453b9c of _0xf5ef18){if(!_0x453b9c[_0x28dcbd(0x1f0)]())continue;const _0x4f7150=_0x453b9c[_0x28dcbd(0x212)],_0x3399f3=join(_0x308600,_0x4f7150),_0x25fb18=await readdir(_0x3399f3,{'withFileTypes':!![]});for(const _0x31b5ae of _0x25fb18){if(!_0x31b5ae[_0x28dcbd(0x1f0)]())continue;const _0x4c5b12=_0x31b5ae[_0x28dcbd(0x212)],_0x59f9b6=join(_0x3399f3,_0x4c5b12),_0x1bc697=await readdir(_0x59f9b6,{'withFileTypes':!![]});for(const _0x3c52d4 of _0x1bc697){if(!_0x3c52d4['isFile']()||!_0x3c52d4[_0x28dcbd(0x212)]['endsWith'](_0x28dcbd(0x207)))continue;const _0x2e4f6a=_0x3c52d4[_0x28dcbd(0x212)][_0x28dcbd(0x215)](/\.js$/,'');_0x55d485[_0x28dcbd(0x1f7)]({'type':_0x28dcbd(0x1fd),'name':_0x2e4f6a,'filePath':join(_0x59f9b6,_0x3c52d4[_0x28dcbd(0x212)]),'lockKey':_0x28dcbd(0x1fb)+_0x3bf6b2+'/'+_0x4f7150+'/'+_0x4c5b12+'/'+_0x2e4f6a,'alias':_0x3bf6b2,'operationType':_0x4f7150,'functionNode':_0x4c5b12});}}}}}catch(_0x45017a){if(_0x45017a['code']!==_0x28dcbd(0x216))throw _0x45017a;}return _0x55d485;}export async function scanLocalBffFunctions(_0x3ad8d2,_0xfc0e04){const _0x3d88ca=a181_0x2ffeae;if(_0xfc0e04===_0x3d88ca(0x1f6)||_0xfc0e04===_0x3d88ca(0x1ff))return scanFlatFunctions(_0x3ad8d2,_0xfc0e04);if(_0xfc0e04===_0x3d88ca(0x1fd))return scanHookFunctions(_0x3ad8d2);const [_0x15fc59,_0x1bf5b2,_0x34dcff]=await Promise[_0x3d88ca(0x209)]([scanFlatFunctions(_0x3ad8d2,'COMMON'),scanFlatFunctions(_0x3ad8d2,'ENDPOINT'),scanHookFunctions(_0x3ad8d2)]);return[..._0x15fc59,..._0x1bf5b2,..._0x34dcff];}export function resolveLocalFilePathFromLockKey(_0x4def25,_0x28f209){const _0x28bd6e=a181_0x2ffeae;return join(_0x4def25[_0x28bd6e(0x1f3)],..._0x28f209[_0x28bd6e(0x211)]('/'))+_0x28bd6e(0x207);}function a181_0x45a4(){const _0x43c963=['set','HOOK','endsWith','ENDPOINT','6XpAzvF','map','operationType','before','1365456UkGtjp','99662lgLtno','scriptType','.js','alias','all','trim','isFile','F_OK','afterScriptId','559948iftyUZ','get','1276290urEjIa','split','name','toUpperCase','code','replace','ENOENT','isDirectory','8084061sHGbnH','functionName','scriptsRootDir','748972kcTcCA','5AFlGZw','COMMON','push','beforeScriptId','1945875cNclSu','datasetCode','HOOK/'];a181_0x45a4=function(){return _0x43c963;};return a181_0x45a4();}export function createHookLocationMap(_0x217665){const _0x17b988=a181_0x2ffeae,_0x194cf5=new Map();for(const _0x1179ce of _0x217665){_0x1179ce[_0x17b988(0x1f8)]&&_0x194cf5[_0x17b988(0x1fc)](_0x1179ce[_0x17b988(0x1f8)],{'datasetCode':_0x1179ce['datasetCode'],'operationType':snakeToCamel(_0x1179ce['operationType']),'functionNode':_0x17b988(0x203)}),_0x1179ce[_0x17b988(0x20d)]&&_0x194cf5[_0x17b988(0x1fc)](_0x1179ce[_0x17b988(0x20d)],{'datasetCode':_0x1179ce['datasetCode'],'operationType':snakeToCamel(_0x1179ce[_0x17b988(0x202)]),'functionNode':'after'});}return _0x194cf5;}export function resolveRemoteScriptTarget(_0x408940,_0x4343a5,_0x43e7d6,_0x4c05f8,_0x454383){const _0x4dd7b5=a181_0x2ffeae,_0x36904c=normalizeBffType(_0x4343a5[_0x4dd7b5(0x206)]);if(!_0x36904c||!_0x4343a5[_0x4dd7b5(0x1f2)])return null;if(_0x36904c==='HOOK'){const _0x1bfd16=(_0x4343a5['id']?_0x43e7d6[_0x4dd7b5(0x20f)](_0x4343a5['id']):undefined)??findHookLocationByRemoteId(_0x4c05f8,_0x4343a5['id']);if(!_0x1bfd16)return null;const _0xd76ce0=_0x1bfd16[_0x4dd7b5(0x208)]||_0x454383['get'](_0x1bfd16['datasetCode']),_0x2d3993=_0xd76ce0??_0x1bfd16[_0x4dd7b5(0x1fa)],_0x308471={..._0x1bfd16,'alias':_0xd76ce0},_0x2ee60f=_0x4dd7b5(0x1fb)+_0x2d3993+'/'+_0x308471[_0x4dd7b5(0x202)]+'/'+_0x308471['functionNode']+'/'+_0x4343a5['functionName'];return{'lockKey':_0x2ee60f,'filePath':resolveLocalFilePathFromLockKey(_0x408940,_0x2ee60f),'type':_0x4dd7b5(0x1fd),'hookLocation':_0x308471};}const _0x1db71e=_0x36904c+'/'+_0x4343a5['functionName'];return{'lockKey':_0x1db71e,'filePath':resolveLocalFilePathFromLockKey(_0x408940,_0x1db71e),'type':_0x36904c};}export async function ensureParentDirectory(_0x2f1643){await mkdir(dirname(_0x2f1643),{'recursive':!![]});}export async function fileExists(_0xaed77f){const _0x5b5942=a181_0x2ffeae;try{return await access(_0xaed77f,constants[_0x5b5942(0x20c)]),!![];}catch{return![];}}export async function directoryExists(_0x427815){const _0x39456b=a181_0x2ffeae;try{const _0x22fa52=await stat(_0x427815);return _0x22fa52[_0x39456b(0x1f0)]();}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x36e6f5,_0x41d559){const _0xf8417b=a182_0x4885,_0x143352=_0x36e6f5();while(!![]){try{const _0xbd183e=-parseInt(_0xf8417b(0x1bb))/0x1+parseInt(_0xf8417b(0x1b5))/0x2*(-parseInt(_0xf8417b(0x1b9))/0x3)+-parseInt(_0xf8417b(0x1b8))/0x4*(parseInt(_0xf8417b(0x1c2))/0x5)+-parseInt(_0xf8417b(0x1be))/0x6*(parseInt(_0xf8417b(0x1bf))/0x7)+parseInt(_0xf8417b(0x1bc))/0x8*(parseInt(_0xf8417b(0x1b4))/0x9)+parseInt(_0xf8417b(0x1bd))/0xa*(parseInt(_0xf8417b(0x1b3))/0xb)+parseInt(_0xf8417b(0x1ba))/0xc;if(_0xbd183e===_0x41d559)break;else _0x143352['push'](_0x143352['shift']());}catch(_0x4d33b6){_0x143352['push'](_0x143352['shift']());}}}(a182_0x2390,0x246ce));function a182_0x2390(){const _0x52977a=['145918BNtPEC','digest','createHash','102152MqiADD','6qmvPVE','5507880KpLHbE','50353sVxtRU','64BAmjdR','10vbrYkH','1087566vxUyyO','7MWarmB','md5','hex','35VUdeQd','1837550DvTQpa','89388iDPmBz'];a182_0x2390=function(){return _0x52977a;};return a182_0x2390();}import{readFile}from'node:fs/promises';function a182_0x4885(_0x37b5d6,_0x3e6b53){_0x37b5d6=_0x37b5d6-0x1b3;const _0x2390ae=a182_0x2390();let _0x4885b6=_0x2390ae[_0x37b5d6];return _0x4885b6;}import a182_0xd302a3 from'node:crypto';export function computeContentHash(_0x5b0559){const _0x4c3232=a182_0x4885;return a182_0xd302a3[_0x4c3232(0x1b7)](_0x4c3232(0x1c0))['update'](_0x5b0559)[_0x4c3232(0x1b6)](_0x4c3232(0x1c1));}export async function computeFileHash(_0x5d861e){const _0x251bb5=await readFile(_0x5d861e,'utf8');return computeContentHash(_0x251bb5);}
1
+ (function(_0x340f6e,_0x145ce2){const _0x383665=a182_0x1889,_0x5d6b58=_0x340f6e();while(!![]){try{const _0x4f9b8a=parseInt(_0x383665(0x147))/0x1+-parseInt(_0x383665(0x145))/0x2*(-parseInt(_0x383665(0x14a))/0x3)+-parseInt(_0x383665(0x151))/0x4*(parseInt(_0x383665(0x149))/0x5)+parseInt(_0x383665(0x152))/0x6+-parseInt(_0x383665(0x14c))/0x7+parseInt(_0x383665(0x150))/0x8*(-parseInt(_0x383665(0x14b))/0x9)+parseInt(_0x383665(0x146))/0xa*(parseInt(_0x383665(0x14f))/0xb);if(_0x4f9b8a===_0x145ce2)break;else _0x5d6b58['push'](_0x5d6b58['shift']());}catch(_0x1eb9d4){_0x5d6b58['push'](_0x5d6b58['shift']());}}}(a182_0xf6d5,0xf3d30));import{readFile}from'node:fs/promises';import a182_0x1ddf40 from'node:crypto';function a182_0xf6d5(){const _0x320453=['hex','5GfwLIt','2205UNXimI','6459417KWhiFP','11489793VTKFwT','createHash','digest','11ppmYTp','8PpWlDN','4942856TUsGmA','10223820thrubQ','update','utf8','md5','1286KxcWVQ','17015450YxumHp','715410MOfEyR'];a182_0xf6d5=function(){return _0x320453;};return a182_0xf6d5();}function a182_0x1889(_0x4afb4c,_0x4c95c7){_0x4afb4c=_0x4afb4c-0x142;const _0xf6d5d3=a182_0xf6d5();let _0x18895b=_0xf6d5d3[_0x4afb4c];return _0x18895b;}export function computeContentHash(_0xafdce7){const _0x35a035=a182_0x1889;return a182_0x1ddf40[_0x35a035(0x14d)](_0x35a035(0x144))[_0x35a035(0x142)](_0xafdce7)[_0x35a035(0x14e)](_0x35a035(0x148));}export async function computeFileHash(_0x4085be){const _0x3e219a=a182_0x1889,_0x37a011=await readFile(_0x4085be,_0x3e219a(0x143));return computeContentHash(_0x37a011);}
@@ -1 +1 @@
1
- (function(_0x5725c0,_0x5d7779){const _0x4e07e3=a183_0x54a0,_0x3d46f3=_0x5725c0();while(!![]){try{const _0x31f00b=parseInt(_0x4e07e3(0x87))/0x1*(-parseInt(_0x4e07e3(0x90))/0x2)+parseInt(_0x4e07e3(0x7f))/0x3*(-parseInt(_0x4e07e3(0x8f))/0x4)+parseInt(_0x4e07e3(0x8d))/0x5*(-parseInt(_0x4e07e3(0x91))/0x6)+-parseInt(_0x4e07e3(0x82))/0x7*(parseInt(_0x4e07e3(0x8e))/0x8)+parseInt(_0x4e07e3(0x7d))/0x9+parseInt(_0x4e07e3(0x7a))/0xa*(parseInt(_0x4e07e3(0x8b))/0xb)+parseInt(_0x4e07e3(0x89))/0xc;if(_0x31f00b===_0x5d7779)break;else _0x3d46f3['push'](_0x3d46f3['shift']());}catch(_0x59171d){_0x3d46f3['push'](_0x3d46f3['shift']());}}}(a183_0x49bc,0xaaed1));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x2e56b2,_0x1c309d,_0x21f104,_0x52d83a){const _0x58192d=a183_0x54a0,_0x31d89c={'apps':_0x2e56b2[_0x58192d(0x92)]&&typeof _0x2e56b2[_0x58192d(0x92)]===_0x58192d(0x86)?_0x2e56b2['apps']:{}};let _0x4368cd=_0x31d89c[_0x58192d(0x92)][_0x1c309d];if(!_0x4368cd)return _0x4368cd={'scriptsRoot':_0x21f104,'lastSync':'','functions':{}},_0x31d89c[_0x58192d(0x92)][_0x1c309d]=_0x4368cd,{'lockData':_0x31d89c,'appLock':_0x4368cd};if(!_0x4368cd[_0x58192d(0x81)])_0x4368cd[_0x58192d(0x81)]=_0x21f104;else{if(_0x4368cd[_0x58192d(0x81)]!==_0x21f104)throw new Error(_0x52d83a+_0x58192d(0x8c)+(_0x58192d(0x85)+_0x21f104+'\x22\x20vs\x20lock\x20\x22'+_0x4368cd[_0x58192d(0x81)]+'\x22.\x20')+_0x58192d(0x8a));}return!_0x4368cd[_0x58192d(0x88)]&&(_0x4368cd[_0x58192d(0x88)]={}),!_0x4368cd[_0x58192d(0x7e)]&&(_0x4368cd['lastSync']=''),{'lockData':_0x31d89c,'appLock':_0x4368cd};}function a183_0x54a0(_0x5448ad,_0x1900a1){_0x5448ad=_0x5448ad-0x79;const _0x49bc96=a183_0x49bc();let _0x54a0a1=_0x49bc96[_0x5448ad];return _0x54a0a1;}function a183_0x49bc(){const _0x5bfe54=['656150BiLpOY','2791976AMGXAQ','36772qPsnbo','20170yCcnPd','54XwFCZz','apps','code','140NPZJsX','stringify','utf8','2803815YqXxiS','lastSync','183QelOSl','parse','scriptsRoot','14wKBTyw','ENOENT','Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20','current\x20\x22','object','59MkUrgF','functions','40594128PZjPTo','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','31889pZCOHE',':\x20scriptsRoot\x20mismatch\x20—\x20'];a183_0x49bc=function(){return _0x5bfe54;};return a183_0x49bc();}export async function readBffLockFile(_0x2342f7){const _0x2efbcf=a183_0x54a0;try{const _0x3c47ed=await readFile(_0x2342f7,_0x2efbcf(0x7c)),_0x1dbdde=JSON[_0x2efbcf(0x80)](_0x3c47ed);return{'apps':_0x1dbdde[_0x2efbcf(0x92)]&&typeof _0x1dbdde[_0x2efbcf(0x92)]===_0x2efbcf(0x86)?_0x1dbdde[_0x2efbcf(0x92)]:{}};}catch(_0x151b03){if(_0x151b03[_0x2efbcf(0x79)]===_0x2efbcf(0x83))return null;throw new Error(_0x2efbcf(0x84)+String(_0x151b03));}}export async function writeBffLockFile(_0x4e28b8,_0x37751f){const _0x529966=a183_0x54a0;await mkdir(dirname(_0x4e28b8),{'recursive':!![]}),await writeFile(_0x4e28b8,JSON[_0x529966(0x7b)](_0x37751f,null,0x2),'utf8');}
1
+ function a183_0x25d8(){const _0x23f3df=['\x22.\x20','924684YvpxXt','scriptsRoot','1122021CoRmoF','1130965JCaUEg','6qZRVeM','2409924WkahJc','apps','122794vALbjl','63414eifywk','functions','ENOENT','current\x20\x22','56QYmuME','code','11erMZrs','783993yIBWvm','parse',':\x20scriptsRoot\x20mismatch\x20—\x20','6RMDdPQ','\x22\x20vs\x20lock\x20\x22','lastSync','object','10bwfXgi','stringify','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.'];a183_0x25d8=function(){return _0x23f3df;};return a183_0x25d8();}(function(_0x39d986,_0x769c4f){const _0x10c6b0=a183_0x33b3,_0x1a6a0f=_0x39d986();while(!![]){try{const _0xc86474=-parseInt(_0x10c6b0(0xf5))/0x1*(-parseInt(_0x10c6b0(0xeb))/0x2)+-parseInt(_0x10c6b0(0xf2))/0x3+parseInt(_0x10c6b0(0xfd))/0x4+-parseInt(_0x10c6b0(0x100))/0x5*(parseInt(_0x10c6b0(0x101))/0x6)+-parseInt(_0x10c6b0(0xea))/0x7*(parseInt(_0x10c6b0(0xef))/0x8)+-parseInt(_0x10c6b0(0xff))/0x9*(-parseInt(_0x10c6b0(0xf9))/0xa)+-parseInt(_0x10c6b0(0xf1))/0xb*(-parseInt(_0x10c6b0(0xe8))/0xc);if(_0xc86474===_0x769c4f)break;else _0x1a6a0f['push'](_0x1a6a0f['shift']());}catch(_0xcb12a2){_0x1a6a0f['push'](_0x1a6a0f['shift']());}}}(a183_0x25d8,0x2158f));import{mkdir,readFile,writeFile}from'node:fs/promises';function a183_0x33b3(_0x4203de,_0x4526b3){_0x4203de=_0x4203de-0xe8;const _0x25d8dd=a183_0x25d8();let _0x33b3eb=_0x25d8dd[_0x4203de];return _0x33b3eb;}import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x41e19e,_0x10408c,_0x35da31,_0xf01097){const _0x187f4c=a183_0x33b3,_0x5ba25b={'apps':_0x41e19e[_0x187f4c(0xe9)]&&typeof _0x41e19e['apps']===_0x187f4c(0xf8)?_0x41e19e[_0x187f4c(0xe9)]:{}};let _0x2b4b17=_0x5ba25b[_0x187f4c(0xe9)][_0x10408c];if(!_0x2b4b17)return _0x2b4b17={'scriptsRoot':_0x35da31,'lastSync':'','functions':{}},_0x5ba25b[_0x187f4c(0xe9)][_0x10408c]=_0x2b4b17,{'lockData':_0x5ba25b,'appLock':_0x2b4b17};if(!_0x2b4b17[_0x187f4c(0xfe)])_0x2b4b17[_0x187f4c(0xfe)]=_0x35da31;else{if(_0x2b4b17[_0x187f4c(0xfe)]!==_0x35da31)throw new Error(_0xf01097+_0x187f4c(0xf4)+(_0x187f4c(0xee)+_0x35da31+_0x187f4c(0xf6)+_0x2b4b17['scriptsRoot']+_0x187f4c(0xfc))+_0x187f4c(0xfb));}return!_0x2b4b17[_0x187f4c(0xec)]&&(_0x2b4b17[_0x187f4c(0xec)]={}),!_0x2b4b17[_0x187f4c(0xf7)]&&(_0x2b4b17[_0x187f4c(0xf7)]=''),{'lockData':_0x5ba25b,'appLock':_0x2b4b17};}export async function readBffLockFile(_0x5a94ed){const _0x5e3dc1=a183_0x33b3;try{const _0x473aba=await readFile(_0x5a94ed,'utf8'),_0x25110f=JSON[_0x5e3dc1(0xf3)](_0x473aba);return{'apps':_0x25110f[_0x5e3dc1(0xe9)]&&typeof _0x25110f[_0x5e3dc1(0xe9)]==='object'?_0x25110f[_0x5e3dc1(0xe9)]:{}};}catch(_0x162d40){if(_0x162d40[_0x5e3dc1(0xf0)]===_0x5e3dc1(0xed))return null;throw new Error('Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20'+String(_0x162d40));}}export async function writeBffLockFile(_0x38f9a1,_0x1b8410){const _0x379ac9=a183_0x33b3;await mkdir(dirname(_0x38f9a1),{'recursive':!![]}),await writeFile(_0x38f9a1,JSON[_0x379ac9(0xfa)](_0x1b8410,null,0x2),'utf8');}
@@ -1 +1 @@
1
- (function(_0x62ea1f,_0x325254){const _0x4daef6=a185_0x2773,_0x46b2e1=_0x62ea1f();while(!![]){try{const _0x14a9fa=parseInt(_0x4daef6(0x11d))/0x1+-parseInt(_0x4daef6(0x119))/0x2+-parseInt(_0x4daef6(0x11e))/0x3+parseInt(_0x4daef6(0x11b))/0x4+parseInt(_0x4daef6(0x11a))/0x5+parseInt(_0x4daef6(0x11f))/0x6+-parseInt(_0x4daef6(0x125))/0x7*(parseInt(_0x4daef6(0x123))/0x8);if(_0x14a9fa===_0x325254)break;else _0x46b2e1['push'](_0x46b2e1['shift']());}catch(_0x1768c5){_0x46b2e1['push'](_0x46b2e1['shift']());}}}(a185_0x5789,0x864a8));export function snakeToCamel(_0x481ae){const _0x3c1022=a185_0x2773;return _0x481ae['toLowerCase']()['replace'](/_([a-z])/g,(_0x4abf1d,_0x12b7de)=>_0x12b7de[_0x3c1022(0x124)]());}export function findHookLocationByRemoteId(_0x24e098,_0x2bd8b6){const _0x5ae8e3=a185_0x2773;if(!_0x2bd8b6)return undefined;for(const _0x3b75d8 of Object['values'](_0x24e098)){if(_0x3b75d8[_0x5ae8e3(0x126)]===_0x2bd8b6&&_0x3b75d8['datasetCode']&&_0x3b75d8[_0x5ae8e3(0x118)]&&_0x3b75d8['functionNode'])return{'datasetCode':_0x3b75d8['datasetCode'],'operationType':_0x3b75d8[_0x5ae8e3(0x118)],'functionNode':_0x3b75d8[_0x5ae8e3(0x121)]};}return undefined;}function a185_0x5789(){const _0x52fc6a=['1482750yvdSPv','4567560udlNEz','1578336KkPAqq','test','424256dgZHLh','172128YhvRVx','2149698jqKVkC','trim','functionNode','toLowerCase','494552eRgmJn','toUpperCase','84kKKSer','remoteId','operationType'];a185_0x5789=function(){return _0x52fc6a;};return a185_0x5789();}export function extractScriptDescription(_0x34624b){const _0x503638=a185_0x2773,_0x22792c=_0x34624b['match'](/\[\s*脚本描述\s*]\s*(.+)/);return _0x22792c?.[0x1]?.[_0x503638(0x120)]()||undefined;}function a185_0x2773(_0x3b405e,_0x2c31ee){_0x3b405e=_0x3b405e-0x118;const _0x5789f8=a185_0x5789();let _0x2773dc=_0x5789f8[_0x3b405e];return _0x2773dc;}export function isValidBffFunctionName(_0x200398){const _0xe28dd4=a185_0x2773;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0xe28dd4(0x11c)](_0x200398);}export function normalizeHookFunctionNode(_0x56d7aa){const _0x114e84=a185_0x2773;if(!_0x56d7aa)return undefined;const _0x347e08=_0x56d7aa[_0x114e84(0x120)]()[_0x114e84(0x122)]();if(_0x347e08==='before'||_0x347e08==='after')return _0x347e08;return undefined;}
1
+ (function(_0x3c67d7,_0x353edf){const _0x66db46=a185_0x2065,_0x353a63=_0x3c67d7();while(!![]){try{const _0x2a5edd=-parseInt(_0x66db46(0xe3))/0x1*(-parseInt(_0x66db46(0xd0))/0x2)+parseInt(_0x66db46(0xd8))/0x3+parseInt(_0x66db46(0xd5))/0x4*(parseInt(_0x66db46(0xcf))/0x5)+parseInt(_0x66db46(0xdb))/0x6*(-parseInt(_0x66db46(0xe1))/0x7)+-parseInt(_0x66db46(0xda))/0x8+parseInt(_0x66db46(0xd2))/0x9*(parseInt(_0x66db46(0xdd))/0xa)+-parseInt(_0x66db46(0xd4))/0xb*(parseInt(_0x66db46(0xdf))/0xc);if(_0x2a5edd===_0x353edf)break;else _0x353a63['push'](_0x353a63['shift']());}catch(_0x12e319){_0x353a63['push'](_0x353a63['shift']());}}}(a185_0x16ab,0x43739));export function snakeToCamel(_0x46f39f){const _0x747a2f=a185_0x2065;return _0x46f39f[_0x747a2f(0xe2)]()[_0x747a2f(0xe0)](/_([a-z])/g,(_0x13a1b3,_0x2646bb)=>_0x2646bb['toUpperCase']());}function a185_0x2065(_0x2a5950,_0x264b62){_0x2a5950=_0x2a5950-0xce;const _0x16abb1=a185_0x16ab();let _0x206535=_0x16abb1[_0x2a5950];return _0x206535;}export function findHookLocationByRemoteId(_0x1cb015,_0x598d0d){const _0x154459=a185_0x2065;if(!_0x598d0d)return undefined;for(const _0x209b87 of Object['values'](_0x1cb015)){if(_0x209b87[_0x154459(0xce)]===_0x598d0d&&_0x209b87[_0x154459(0xd3)]&&_0x209b87['operationType']&&_0x209b87[_0x154459(0xd9)])return{'datasetCode':_0x209b87['datasetCode'],'operationType':_0x209b87[_0x154459(0xd7)],'functionNode':_0x209b87[_0x154459(0xd9)]};}return undefined;}function a185_0x16ab(){const _0x2234d3=['toLowerCase','1nvfATU','remoteId','288290pEzKgT','897908EvpwpS','before','54aiuLVN','datasetCode','209IEhSmB','32eCIucS','test','operationType','1078989cQdasE','functionNode','3390464kzaMzV','3212748OfPYdb','match','528800EGXODa','trim','222072drLbQZ','replace','7rzSRXs'];a185_0x16ab=function(){return _0x2234d3;};return a185_0x16ab();}export function extractScriptDescription(_0x3f3094){const _0x1c3870=a185_0x2065,_0x360412=_0x3f3094[_0x1c3870(0xdc)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x360412?.[0x1]?.[_0x1c3870(0xde)]()||undefined;}export function isValidBffFunctionName(_0x139918){const _0x403994=a185_0x2065;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x403994(0xd6)](_0x139918);}export function normalizeHookFunctionNode(_0x726440){const _0x21ff5e=a185_0x2065;if(!_0x726440)return undefined;const _0x543b96=_0x726440['trim']()[_0x21ff5e(0xe2)]();if(_0x543b96===_0x21ff5e(0xd1)||_0x543b96==='after')return _0x543b96;return undefined;}
@@ -1 +1 @@
1
- function a186_0x7ffa(){const _0x2badf8=['574768TKJmbT','85tkhyvF','dbName','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','1244796bhtobv','5360qcjGaR','toLowerCase','2286462aSOaCb','294705rELQZp','filter','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','No\x20database\x20matching\x20\x22','get','.\x20Be\x20more\x20specific.','dbId','join','2bqtjJv','set','find','entries','25302DaApod','db-','9tiuLFJ','isNaN','length','\x22.\x20Available:\x20','42977pkcQni','map','1370PCivbG'];a186_0x7ffa=function(){return _0x2badf8;};return a186_0x7ffa();}(function(_0x59996e,_0x392156){const _0xd65d2a=a186_0x241a,_0x3ea454=_0x59996e();while(!![]){try{const _0x5a038f=parseInt(_0xd65d2a(0x1c7))/0x1*(-parseInt(_0xd65d2a(0x1c3))/0x2)+parseInt(_0xd65d2a(0x1bb))/0x3+-parseInt(_0xd65d2a(0x1b8))/0x4*(-parseInt(_0xd65d2a(0x1d1))/0x5)+parseInt(_0xd65d2a(0x1ba))/0x6+parseInt(_0xd65d2a(0x1b7))/0x7+-parseInt(_0xd65d2a(0x1d0))/0x8*(-parseInt(_0xd65d2a(0x1c9))/0x9)+-parseInt(_0xd65d2a(0x1cf))/0xa*(parseInt(_0xd65d2a(0x1cd))/0xb);if(_0x5a038f===_0x392156)break;else _0x3ea454['push'](_0x3ea454['shift']());}catch(_0x2789e5){_0x3ea454['push'](_0x3ea454['shift']());}}}(a186_0x7ffa,0x2eae5));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x20d160){const _0x9fd5fb=a186_0x241a;if(cache['has'](_0x20d160))return cache[_0x9fd5fb(0x1bf)](_0x20d160);const _0x4f2b2f=await listDatasets(_0x20d160),_0x1a4310=new Map();for(const _0x2f5593 of _0x4f2b2f){const _0x5a9d7a=_0x2f5593['dbtableConfig'];_0x5a9d7a?.[_0x9fd5fb(0x1c1)]!=null&&_0x1a4310[_0x9fd5fb(0x1c4)](_0x5a9d7a['dbId'],_0x5a9d7a['dbName']??_0x9fd5fb(0x1c8)+_0x5a9d7a[_0x9fd5fb(0x1c1)]);}const _0x33735b=[..._0x1a4310[_0x9fd5fb(0x1c6)]()][_0x9fd5fb(0x1ce)](([_0x333d3d,_0x15cede])=>({'dbId':_0x333d3d,'dbName':_0x15cede}));return cache[_0x9fd5fb(0x1c4)](_0x20d160,_0x33735b),_0x33735b;}export async function resolveDb(_0x594a89,_0x467625){const _0x2f7604=a186_0x241a,_0x5ef715=await listDatabases(_0x594a89);if(_0x5ef715[_0x2f7604(0x1cb)]===0x0)return{'resolved':[],'error':_0x2f7604(0x1bd)+_0x594a89+'\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.'};if(!_0x467625)return{'resolved':_0x5ef715};const _0x453fe1=Number(_0x467625);if(!Number[_0x2f7604(0x1ca)](_0x453fe1)){const _0x5d6fd8=_0x5ef715['find'](_0x497d4d=>_0x497d4d[_0x2f7604(0x1c1)]===_0x453fe1);if(_0x5d6fd8)return{'resolved':[_0x5d6fd8]};}const _0x5bc1ac=_0x467625[_0x2f7604(0x1b9)](),_0x20c629=_0x5ef715[_0x2f7604(0x1bc)](_0x5ec20c=>_0x5ec20c[_0x2f7604(0x1d2)][_0x2f7604(0x1b9)]()['includes'](_0x5bc1ac));if(_0x20c629[_0x2f7604(0x1cb)]>0x0)return{'resolved':_0x20c629};const _0x22d6d8=_0x5ef715[_0x2f7604(0x1ce)](_0x2358e3=>_0x2358e3[_0x2f7604(0x1d2)]+'\x20('+_0x2358e3['dbId']+')')[_0x2f7604(0x1c2)](',\x20');return{'resolved':[],'error':_0x2f7604(0x1be)+_0x467625+'\x22\x20under\x20app\x20\x22'+_0x594a89+_0x2f7604(0x1cc)+_0x22d6d8+_0x2f7604(0x1d3)};}export async function resolveOneDb(_0x3499f6,_0x537cbd){const _0xbbd8f1=a186_0x241a,{resolved:_0x3f0ae7,error:_0x5e95cd}=await resolveDb(_0x3499f6,_0x537cbd);if(_0x5e95cd)return{'db':null,'error':_0x5e95cd};if(_0x3f0ae7[_0xbbd8f1(0x1cb)]===0x1)return{'db':_0x3f0ae7[0x0]};if(!_0x537cbd){const _0x5a3d54=_0x3f0ae7['map'](_0x4913d0=>_0x4913d0[_0xbbd8f1(0x1d2)]+'\x20('+_0x4913d0[_0xbbd8f1(0x1c1)]+')')[_0xbbd8f1(0x1c2)](',\x20');return{'db':null,'error':'Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20'+_0x5a3d54};}const _0x315cd9=_0x3f0ae7[_0xbbd8f1(0x1ce)](_0x4136e5=>_0x4136e5[_0xbbd8f1(0x1d2)]+'\x20('+_0x4136e5[_0xbbd8f1(0x1c1)]+')')['join'](',\x20');return{'db':null,'error':'\x22'+_0x537cbd+'\x22\x20matches\x20multiple\x20databases:\x20'+_0x315cd9+_0xbbd8f1(0x1c0)};}function a186_0x241a(_0x227598,_0x224f04){_0x227598=_0x227598-0x1b7;const _0x7ffa39=a186_0x7ffa();let _0x241ac9=_0x7ffa39[_0x227598];return _0x241ac9;}export async function getDbName(_0x2358ff,_0x4a7afa){const _0x3b55e3=a186_0x241a,_0xefeab1=await listDatabases(_0x2358ff);return _0xefeab1[_0x3b55e3(0x1c5)](_0x1a20bc=>_0x1a20bc['dbId']===_0x4a7afa)?.['dbName'];}
1
+ (function(_0x57f188,_0x494f5b){const _0x34678c=a186_0x1c33,_0x2569c5=_0x57f188();while(!![]){try{const _0xf77ba3=parseInt(_0x34678c(0x15d))/0x1+parseInt(_0x34678c(0x161))/0x2+-parseInt(_0x34678c(0x152))/0x3+-parseInt(_0x34678c(0x163))/0x4+-parseInt(_0x34678c(0x160))/0x5+-parseInt(_0x34678c(0x164))/0x6*(parseInt(_0x34678c(0x155))/0x7)+parseInt(_0x34678c(0x15f))/0x8;if(_0xf77ba3===_0x494f5b)break;else _0x2569c5['push'](_0x2569c5['shift']());}catch(_0x1a32dd){_0x2569c5['push'](_0x2569c5['shift']());}}}(a186_0x220c,0x97960));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x27d92b){const _0x4d8364=a186_0x1c33;if(cache[_0x4d8364(0x166)](_0x27d92b))return cache['get'](_0x27d92b);const _0x214723=await listDatasets(_0x27d92b),_0x133fbe=new Map();for(const _0x5dcbde of _0x214723){const _0x3dfd9c=_0x5dcbde['dbtableConfig'];_0x3dfd9c?.[_0x4d8364(0x169)]!=null&&_0x133fbe[_0x4d8364(0x157)](_0x3dfd9c[_0x4d8364(0x169)],_0x3dfd9c[_0x4d8364(0x168)]??_0x4d8364(0x151)+_0x3dfd9c[_0x4d8364(0x169)]);}const _0xb89efe=[..._0x133fbe['entries']()][_0x4d8364(0x154)](([_0x38fc4a,_0x51f97a])=>({'dbId':_0x38fc4a,'dbName':_0x51f97a}));return cache[_0x4d8364(0x157)](_0x27d92b,_0xb89efe),_0xb89efe;}function a186_0x1c33(_0x53c7de,_0x2beb73){_0x53c7de=_0x53c7de-0x14f;const _0x220cf9=a186_0x220c();let _0x1c3346=_0x220cf9[_0x53c7de];return _0x1c3346;}export async function resolveDb(_0x51b993,_0x2b2e4d){const _0x434f93=a186_0x1c33,_0x3adee0=await listDatabases(_0x51b993);if(_0x3adee0['length']===0x0)return{'resolved':[],'error':_0x434f93(0x162)+_0x51b993+_0x434f93(0x150)};if(!_0x2b2e4d)return{'resolved':_0x3adee0};const _0x233d9c=Number(_0x2b2e4d);if(!Number[_0x434f93(0x14f)](_0x233d9c)){const _0xcf7728=_0x3adee0[_0x434f93(0x158)](_0x5bb28d=>_0x5bb28d[_0x434f93(0x169)]===_0x233d9c);if(_0xcf7728)return{'resolved':[_0xcf7728]};}const _0x3f7b77=_0x2b2e4d['toLowerCase'](),_0x36781a=_0x3adee0[_0x434f93(0x167)](_0x34e73c=>_0x34e73c[_0x434f93(0x168)]['toLowerCase']()[_0x434f93(0x159)](_0x3f7b77));if(_0x36781a[_0x434f93(0x15a)]>0x0)return{'resolved':_0x36781a};const _0x2ceac3=_0x3adee0['map'](_0x4a8989=>_0x4a8989['dbName']+'\x20('+_0x4a8989[_0x434f93(0x169)]+')')[_0x434f93(0x15c)](',\x20');return{'resolved':[],'error':_0x434f93(0x15b)+_0x2b2e4d+_0x434f93(0x165)+_0x51b993+'\x22.\x20Available:\x20'+_0x2ceac3+_0x434f93(0x156)};}function a186_0x220c(){const _0x7a5417=['dbId','isNaN','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','db-','207069cTFNVU','\x22\x20matches\x20multiple\x20databases:\x20','map','70DpNcDG','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','set','find','includes','length','No\x20database\x20matching\x20\x22','join','533052FDWUEE','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','12280560ZAcOZQ','5721255FfHhol','967762FlkjZA','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','1900492uzZigJ','145626UwVOfT','\x22\x20under\x20app\x20\x22','has','filter','dbName'];a186_0x220c=function(){return _0x7a5417;};return a186_0x220c();}export async function resolveOneDb(_0x564457,_0xc972fa){const _0x46df36=a186_0x1c33,{resolved:_0x5c9c74,error:_0x71909f}=await resolveDb(_0x564457,_0xc972fa);if(_0x71909f)return{'db':null,'error':_0x71909f};if(_0x5c9c74[_0x46df36(0x15a)]===0x1)return{'db':_0x5c9c74[0x0]};if(!_0xc972fa){const _0x2d2a9b=_0x5c9c74[_0x46df36(0x154)](_0x3d2a13=>_0x3d2a13['dbName']+'\x20('+_0x3d2a13['dbId']+')')[_0x46df36(0x15c)](',\x20');return{'db':null,'error':_0x46df36(0x15e)+_0x2d2a9b};}const _0x56f6a4=_0x5c9c74[_0x46df36(0x154)](_0x1199d2=>_0x1199d2[_0x46df36(0x168)]+'\x20('+_0x1199d2[_0x46df36(0x169)]+')')['join'](',\x20');return{'db':null,'error':'\x22'+_0xc972fa+_0x46df36(0x153)+_0x56f6a4+'.\x20Be\x20more\x20specific.'};}export async function getDbName(_0x14b857,_0x4d62f3){const _0x5d2b90=a186_0x1c33,_0x1caf22=await listDatabases(_0x14b857);return _0x1caf22[_0x5d2b90(0x158)](_0xa390bf=>_0xa390bf[_0x5d2b90(0x169)]===_0x4d62f3)?.[_0x5d2b90(0x168)];}
@@ -1 +1 @@
1
- const a187_0x16e875=a187_0x1030;(function(_0x114d50,_0x378849){const _0x42bac9=a187_0x1030,_0x2dcb6a=_0x114d50();while(!![]){try{const _0x4138d7=parseInt(_0x42bac9(0xb5))/0x1+-parseInt(_0x42bac9(0xb2))/0x2+-parseInt(_0x42bac9(0xbb))/0x3+-parseInt(_0x42bac9(0xbd))/0x4*(-parseInt(_0x42bac9(0xb7))/0x5)+-parseInt(_0x42bac9(0xad))/0x6+-parseInt(_0x42bac9(0xb6))/0x7*(-parseInt(_0x42bac9(0xb0))/0x8)+parseInt(_0x42bac9(0xaf))/0x9;if(_0x4138d7===_0x378849)break;else _0x2dcb6a['push'](_0x2dcb6a['shift']());}catch(_0x3dc749){_0x2dcb6a['push'](_0x2dcb6a['shift']());}}}(a187_0x33f1,0x2e975));import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';function a187_0x33f1(){const _0xc2a988=['184YvfpuT','1752912cSPjBn','page','3031227vIocTW','214216sxpXdu','appPagesDir','453734YEljRi','page.lock.json','.json','314625VcjgFA','14XaRRhB','4820MBnLmQ','F_OK','cwd','toUpperCase','118410LhaeCo','.rabetbase'];a187_0x33f1=function(){return _0xc2a988;};return a187_0x33f1();}export function loadPageProjectConfig(_0x9d450d,_0x10e0bd=process[a187_0x16e875(0xb9)]()){const _0x26da9d=a187_0x16e875,_0x354ec7=resolve(_0x10e0bd),_0xbb8a4=join(_0x354ec7,_0x26da9d(0xbc),_0x26da9d(0xae));return{'projectRoot':_0x354ec7,'pagesBaseDir':_0xbb8a4,'appPagesDir':join(_0xbb8a4,_0x9d450d),'lockFilePath':join(_0x354ec7,_0x26da9d(0xbc),_0x26da9d(0xb3))};}export function buildPageFileName(_0x296662,_0x34b974){const _0x56583a=a187_0x16e875;return _0x296662+'-'+String(_0x34b974)[_0x56583a(0xba)]()+_0x56583a(0xb4);}export function resolvePageFilePath(_0x565daa,_0x5b4ef8,_0xc3f587){const _0x46d7c3=a187_0x16e875;return join(_0x565daa[_0x46d7c3(0xb1)],buildPageFileName(_0x5b4ef8,_0xc3f587));}export async function ensureParentDirectory(_0x2503ff){await mkdir(dirname(_0x2503ff),{'recursive':!![]});}function a187_0x1030(_0x18e528,_0x2830e1){_0x18e528=_0x18e528-0xad;const _0x33f136=a187_0x33f1();let _0x1030b0=_0x33f136[_0x18e528];return _0x1030b0;}export async function fileExists(_0x4cf40b){const _0x1821b2=a187_0x16e875;try{return await access(_0x4cf40b,constants[_0x1821b2(0xb8)]),!![];}catch{return![];}}
1
+ const a187_0x4a0a17=a187_0x1228;function a187_0x2ca3(){const _0x215d89=['.rabetbase','8BdjCdx','cwd','3815651zDYsAL','7488774YGbdzV','79612vcGymV','9104870UINnBo','242538ujFpPY','toUpperCase','F_OK','42555wjJsqv','page.lock.json','15cIYwFI','938940GrmRqd','appPagesDir','page','600PmemTW'];a187_0x2ca3=function(){return _0x215d89;};return a187_0x2ca3();}(function(_0x146dc7,_0x19c4ae){const _0x12d503=a187_0x1228,_0x2eafdb=_0x146dc7();while(!![]){try{const _0x3f6faf=-parseInt(_0x12d503(0x1f9))/0x1*(parseInt(_0x12d503(0x1f2))/0x2)+parseInt(_0x12d503(0x1fa))/0x3+-parseInt(_0x12d503(0x1fd))/0x4*(parseInt(_0x12d503(0x1f7))/0x5)+-parseInt(_0x12d503(0x1f4))/0x6+parseInt(_0x12d503(0x1f0))/0x7*(parseInt(_0x12d503(0x1ee))/0x8)+parseInt(_0x12d503(0x1f1))/0x9+parseInt(_0x12d503(0x1f3))/0xa;if(_0x3f6faf===_0x19c4ae)break;else _0x2eafdb['push'](_0x2eafdb['shift']());}catch(_0x2ce321){_0x2eafdb['push'](_0x2eafdb['shift']());}}}(a187_0x2ca3,0xa7993));import{constants}from'node:fs';function a187_0x1228(_0x25a543,_0x324e8f){_0x25a543=_0x25a543-0x1ee;const _0x2ca3a0=a187_0x2ca3();let _0x122831=_0x2ca3a0[_0x25a543];return _0x122831;}import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x5983c0,_0x54bcce=process[a187_0x4a0a17(0x1ef)]()){const _0x16d2a9=a187_0x4a0a17,_0x5220de=resolve(_0x54bcce),_0x43bd90=join(_0x5220de,_0x16d2a9(0x1fe),_0x16d2a9(0x1fc));return{'projectRoot':_0x5220de,'pagesBaseDir':_0x43bd90,'appPagesDir':join(_0x43bd90,_0x5983c0),'lockFilePath':join(_0x5220de,_0x16d2a9(0x1fe),_0x16d2a9(0x1f8))};}export function buildPageFileName(_0x441528,_0x2caa2a){const _0x3fb3d2=a187_0x4a0a17;return _0x441528+'-'+String(_0x2caa2a)[_0x3fb3d2(0x1f5)]()+'.json';}export function resolvePageFilePath(_0x442b62,_0x17ad83,_0x238ce9){const _0x3e2d48=a187_0x4a0a17;return join(_0x442b62[_0x3e2d48(0x1fb)],buildPageFileName(_0x17ad83,_0x238ce9));}export async function ensureParentDirectory(_0x4da27c){await mkdir(dirname(_0x4da27c),{'recursive':!![]});}export async function fileExists(_0x398f0c){const _0x7cf086=a187_0x4a0a17;try{return await access(_0x398f0c,constants[_0x7cf086(0x1f6)]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0xd4c6c3,_0x35ded8){const _0x5bec3e=a188_0x5d2d,_0x441626=_0xd4c6c3();while(!![]){try{const _0x32c219=-parseInt(_0x5bec3e(0xcd))/0x1+-parseInt(_0x5bec3e(0xda))/0x2+parseInt(_0x5bec3e(0xd7))/0x3*(parseInt(_0x5bec3e(0xce))/0x4)+parseInt(_0x5bec3e(0xd6))/0x5+-parseInt(_0x5bec3e(0xd4))/0x6+parseInt(_0x5bec3e(0xd2))/0x7*(parseInt(_0x5bec3e(0xd8))/0x8)+parseInt(_0x5bec3e(0xd3))/0x9;if(_0x32c219===_0x35ded8)break;else _0x441626['push'](_0x441626['shift']());}catch(_0x3d7c07){_0x441626['push'](_0x441626['shift']());}}}(a188_0x54d9,0x7820a));function a188_0x5d2d(_0x5c2e0f,_0x15cc9d){_0x5c2e0f=_0x5c2e0f-0xcc;const _0x54d9dc=a188_0x54d9();let _0x5d2d62=_0x54d9dc[_0x5c2e0f];return _0x5d2d62;}function a188_0x54d9(){const _0x1b8111=['update','digest','utf8','2828phCnoK','9546957tIcjBn','5407794CWbOFV','md5','2260725krcZVc','685203GugcNN','10088GSlMEy','hex','162862imtwOI','createHash','775991JnLfIj','4RuEkVj'];a188_0x54d9=function(){return _0x1b8111;};return a188_0x54d9();}import a188_0x2dbe5b from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x14a62e){return JSON['stringify'](JSON['parse'](_0x14a62e),null,0x2)+'\x0a';}export function computePageContentHash(_0x5c0170){const _0x3ab5af=a188_0x5d2d;return a188_0x2dbe5b[_0x3ab5af(0xcc)](_0x3ab5af(0xd5))[_0x3ab5af(0xcf)](_0x5c0170)[_0x3ab5af(0xd0)](_0x3ab5af(0xd9));}export function computeSerializedSchemaHash(_0x230661){return computePageContentHash(serializePageSchemaForFile(_0x230661));}export async function computePageFileHash(_0x621bfc){const _0x2bd070=a188_0x5d2d,_0x385d0d=await readFile(_0x621bfc,_0x2bd070(0xd1));return computePageContentHash(_0x385d0d);}
1
+ (function(_0x5d6c19,_0x5cbee7){const _0xf0bc96=a188_0x2b68,_0x714326=_0x5d6c19();while(!![]){try{const _0x16c73f=-parseInt(_0xf0bc96(0x1a2))/0x1+-parseInt(_0xf0bc96(0x1a8))/0x2*(parseInt(_0xf0bc96(0x19c))/0x3)+-parseInt(_0xf0bc96(0x1a4))/0x4+parseInt(_0xf0bc96(0x1a6))/0x5*(-parseInt(_0xf0bc96(0x1a1))/0x6)+-parseInt(_0xf0bc96(0x1a7))/0x7*(parseInt(_0xf0bc96(0x19a))/0x8)+-parseInt(_0xf0bc96(0x19f))/0x9+-parseInt(_0xf0bc96(0x196))/0xa*(-parseInt(_0xf0bc96(0x19b))/0xb);if(_0x16c73f===_0x5cbee7)break;else _0x714326['push'](_0x714326['shift']());}catch(_0x2d1f40){_0x714326['push'](_0x714326['shift']());}}}(a188_0x2812,0x3a17d));function a188_0x2b68(_0xde8d1b,_0x275ed2){_0xde8d1b=_0xde8d1b-0x196;const _0x281281=a188_0x2812();let _0x2b681c=_0x281281[_0xde8d1b];return _0x2b681c;}import a188_0x3156d6 from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0xd947b4){const _0x8ba2b7=a188_0x2b68;return JSON[_0x8ba2b7(0x1a5)](JSON[_0x8ba2b7(0x198)](_0xd947b4),null,0x2)+'\x0a';}export function computePageContentHash(_0x1ab797){const _0x2221c3=a188_0x2b68;return a188_0x3156d6[_0x2221c3(0x19d)](_0x2221c3(0x199))[_0x2221c3(0x1a3)](_0x1ab797)[_0x2221c3(0x19e)](_0x2221c3(0x1a0));}export function computeSerializedSchemaHash(_0x44eef8){return computePageContentHash(serializePageSchemaForFile(_0x44eef8));}function a188_0x2812(){const _0x28e400=['13584sklcFZ','307477VJrHRD','update','1395216UdisDO','stringify','510LdPVqD','105RXKYuT','115652RoBdte','4872830nCwFiC','utf8','parse','md5','145512uCEGNG','33ShDPwv','3zdInpC','createHash','digest','54270QSBrLu','hex'];a188_0x2812=function(){return _0x28e400;};return a188_0x2812();}export async function computePageFileHash(_0x1560f8){const _0x15a2a0=a188_0x2b68,_0x4307a9=await readFile(_0x1560f8,_0x15a2a0(0x197));return computePageContentHash(_0x4307a9);}
@@ -1 +1 @@
1
- function a189_0x13e7(){const _0x493ecc=['52444CfIdgw','stringify','65783QemSsi','lastSync','78OAHTEj','35uAsnGe','object','222990egpQLz','apps','pages','561903JpSYNd','1622565NIeBfH','utf8','1408800CswkNK','parse','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','4LFqUwr','24479tsoLUn'];a189_0x13e7=function(){return _0x493ecc;};return a189_0x13e7();}(function(_0x148b39,_0x255f80){const _0xfbf9fc=a189_0x3de8,_0x345803=_0x148b39();while(!![]){try{const _0x279f57=-parseInt(_0xfbf9fc(0x118))/0x1*(parseInt(_0xfbf9fc(0x114))/0x2)+parseInt(_0xfbf9fc(0x10e))/0x3+parseInt(_0xfbf9fc(0x116))/0x4*(parseInt(_0xfbf9fc(0x11b))/0x5)+-parseInt(_0xfbf9fc(0x11a))/0x6*(parseInt(_0xfbf9fc(0x115))/0x7)+parseInt(_0xfbf9fc(0x111))/0x8+-parseInt(_0xfbf9fc(0x10f))/0x9+parseInt(_0xfbf9fc(0x11d))/0xa;if(_0x279f57===_0x255f80)break;else _0x345803['push'](_0x345803['shift']());}catch(_0x8ee22f){_0x345803['push'](_0x345803['shift']());}}}(a189_0x13e7,0x1d565));import{mkdir,readFile,writeFile}from'node:fs/promises';function a189_0x3de8(_0x4109fa,_0x1513be){_0x4109fa=_0x4109fa-0x10d;const _0x13e7cb=a189_0x13e7();let _0x3de8a3=_0x13e7cb[_0x4109fa];return _0x3de8a3;}import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x1a6c5c,_0x4b4972){const _0x2f3c31=a189_0x3de8,_0x4bbe11={'apps':_0x1a6c5c[_0x2f3c31(0x11e)]&&typeof _0x1a6c5c[_0x2f3c31(0x11e)]==='object'?_0x1a6c5c[_0x2f3c31(0x11e)]:{}};let _0x2253a0=_0x4bbe11[_0x2f3c31(0x11e)][_0x4b4972];if(!_0x2253a0)return _0x2253a0={'lastSync':'','pages':{}},_0x4bbe11[_0x2f3c31(0x11e)][_0x4b4972]=_0x2253a0,{'lockData':_0x4bbe11,'appLock':_0x2253a0};return!_0x2253a0[_0x2f3c31(0x119)]&&(_0x2253a0[_0x2f3c31(0x119)]=''),(!_0x2253a0['pages']||typeof _0x2253a0[_0x2f3c31(0x10d)]!==_0x2f3c31(0x11c))&&(_0x2253a0[_0x2f3c31(0x10d)]={}),{'lockData':_0x4bbe11,'appLock':_0x2253a0};}export async function readPageLockFile(_0xce0506){const _0x1e5b56=a189_0x3de8;try{const _0x1c80b0=await readFile(_0xce0506,_0x1e5b56(0x110)),_0x2d0a4a=JSON[_0x1e5b56(0x112)](_0x1c80b0);return{'apps':_0x2d0a4a[_0x1e5b56(0x11e)]&&typeof _0x2d0a4a['apps']===_0x1e5b56(0x11c)?_0x2d0a4a['apps']:{}};}catch(_0x3d94b5){if(_0x3d94b5['code']==='ENOENT')return null;throw new Error(_0x1e5b56(0x113)+String(_0x3d94b5));}}export async function writePageLockFile(_0x430680,_0x23e9c8){const _0x466b06=a189_0x3de8;await mkdir(dirname(_0x430680),{'recursive':!![]}),await writeFile(_0x430680,JSON[_0x466b06(0x117)](_0x23e9c8,null,0x2),'utf8');}
1
+ function a189_0x37fb(_0x21f635,_0x11c86e){_0x21f635=_0x21f635-0xdd;const _0x565dee=a189_0x565d();let _0x37fbb4=_0x565dee[_0x21f635];return _0x37fbb4;}(function(_0x19bc36,_0x4741eb){const _0x116087=a189_0x37fb,_0x203f4b=_0x19bc36();while(!![]){try{const _0x17fafa=-parseInt(_0x116087(0xe1))/0x1*(-parseInt(_0x116087(0xe4))/0x2)+-parseInt(_0x116087(0xf0))/0x3+-parseInt(_0x116087(0xe5))/0x4+-parseInt(_0x116087(0xee))/0x5*(parseInt(_0x116087(0xe9))/0x6)+-parseInt(_0x116087(0xec))/0x7+parseInt(_0x116087(0xe2))/0x8*(-parseInt(_0x116087(0xe7))/0x9)+parseInt(_0x116087(0xe3))/0xa*(parseInt(_0x116087(0xe6))/0xb);if(_0x17fafa===_0x4741eb)break;else _0x203f4b['push'](_0x203f4b['shift']());}catch(_0x8f84b7){_0x203f4b['push'](_0x203f4b['shift']());}}}(a189_0x565d,0x793f0));function a189_0x565d(){const _0x3f45af=['utf8','lastSync','object','41LPTgBK','6497016ZgHcNd','9250170OELUQd','34322RAkxdl','2405464YPjwmN','33zhJSkN','9yCUJXU','ENOENT','16938OJqUJV','code','apps','4305644uTyGZA','pages','365wbyTYA','stringify','2242092IJMfaO','Failed\x20to\x20read\x20page\x20lock\x20file:\x20'];a189_0x565d=function(){return _0x3f45af;};return a189_0x565d();}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x246c2f,_0x2aca66){const _0x359873=a189_0x37fb,_0x13eb27={'apps':_0x246c2f[_0x359873(0xeb)]&&typeof _0x246c2f[_0x359873(0xeb)]===_0x359873(0xe0)?_0x246c2f[_0x359873(0xeb)]:{}};let _0x5854d1=_0x13eb27[_0x359873(0xeb)][_0x2aca66];if(!_0x5854d1)return _0x5854d1={'lastSync':'','pages':{}},_0x13eb27['apps'][_0x2aca66]=_0x5854d1,{'lockData':_0x13eb27,'appLock':_0x5854d1};return!_0x5854d1[_0x359873(0xdf)]&&(_0x5854d1['lastSync']=''),(!_0x5854d1[_0x359873(0xed)]||typeof _0x5854d1[_0x359873(0xed)]!=='object')&&(_0x5854d1[_0x359873(0xed)]={}),{'lockData':_0x13eb27,'appLock':_0x5854d1};}export async function readPageLockFile(_0x49dac0){const _0x29942b=a189_0x37fb;try{const _0x1a5dc4=await readFile(_0x49dac0,_0x29942b(0xde)),_0x3e305a=JSON['parse'](_0x1a5dc4);return{'apps':_0x3e305a['apps']&&typeof _0x3e305a[_0x29942b(0xeb)]===_0x29942b(0xe0)?_0x3e305a[_0x29942b(0xeb)]:{}};}catch(_0x724cd1){if(_0x724cd1[_0x29942b(0xea)]===_0x29942b(0xe8))return null;throw new Error(_0x29942b(0xdd)+String(_0x724cd1));}}export async function writePageLockFile(_0x8317a9,_0x1a0fd6){const _0x4ffab6=a189_0x37fb;await mkdir(dirname(_0x8317a9),{'recursive':!![]}),await writeFile(_0x8317a9,JSON[_0x4ffab6(0xef)](_0x1a0fd6,null,0x2),'utf8');}
@@ -1 +1 @@
1
- const a191_0x521de2=a191_0x1036;(function(_0xe8d0aa,_0x588388){const _0x10ab8c=a191_0x1036,_0x198114=_0xe8d0aa();while(!![]){try{const _0x876bef=-parseInt(_0x10ab8c(0x119))/0x1*(-parseInt(_0x10ab8c(0x118))/0x2)+-parseInt(_0x10ab8c(0x11b))/0x3+-parseInt(_0x10ab8c(0x112))/0x4*(parseInt(_0x10ab8c(0x114))/0x5)+parseInt(_0x10ab8c(0x115))/0x6*(parseInt(_0x10ab8c(0x111))/0x7)+-parseInt(_0x10ab8c(0x113))/0x8+-parseInt(_0x10ab8c(0x117))/0x9+parseInt(_0x10ab8c(0x10f))/0xa;if(_0x876bef===_0x588388)break;else _0x198114['push'](_0x198114['shift']());}catch(_0x295007){_0x198114['push'](_0x198114['shift']());}}}(a191_0x56c6,0x9ae7b));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';function a191_0x56c6(){const _0x5e610d=['6RakaHl','199988oEkmPU','/sql','967005HaYkFj','sql','27466830HVNPLk','sql.lock.json','490iqGkvx','4avZUVm','7420944EQlbwj','3548795NEWkwS','38598Aelbfe','.rabetbase','10824786uEJoYl'];a191_0x56c6=function(){return _0x5e610d;};return a191_0x56c6();}function a191_0x1036(_0x129a90,_0x2d4b87){_0x129a90=_0x129a90-0x10e;const _0x56c6db=a191_0x56c6();let _0x1036e9=_0x56c6db[_0x129a90];return _0x1036e9;}const DOT_DIR=a191_0x521de2(0x116),LOCK_FILE_NAME=a191_0x521de2(0x110),TRASH_DIR_NAME='sql-trash';export function loadSqlProjectConfig(_0x4c9f96,_0x300765){const _0x4213f2=a191_0x521de2,_0xc04e6b=resolve(_0x300765??findProjectRootDirectory()),_0x32a03e=DOT_DIR+_0x4213f2(0x11a),_0x6aee87=_0x32a03e+'/'+_0x4c9f96;return{'projectRoot':_0xc04e6b,'appCode':_0x4c9f96,'sqlWorkspaceRoot':_0x32a03e,'sqlRoot':_0x6aee87,'sqlRootDir':resolve(_0xc04e6b,DOT_DIR,_0x4213f2(0x10e),_0x4c9f96),'lockFilePath':resolve(_0xc04e6b,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0xc04e6b,DOT_DIR,TRASH_DIR_NAME)};}
1
+ function a191_0x22c5(){const _0x5e9e16=['12UzchOK','sql.lock.json','276374dkXFlC','5324543WhjuGT','8PPzOEl','10150630EgAuhO','415095HLSTdl','2730720AUquzZ','.rabetbase','32nXXVdg','4812depqOu','sql-trash','10400706XmyzBO'];a191_0x22c5=function(){return _0x5e9e16;};return a191_0x22c5();}const a191_0x14f85b=a191_0x23a9;(function(_0x528ddd,_0x3be17e){const _0x1907e1=a191_0x23a9,_0x355866=_0x528ddd();while(!![]){try{const _0x138a7a=-parseInt(_0x1907e1(0x1fa))/0x1+-parseInt(_0x1907e1(0x1ff))/0x2+parseInt(_0x1907e1(0x1f6))/0x3*(parseInt(_0x1907e1(0x1f9))/0x4)+parseInt(_0x1907e1(0x1f7))/0x5+parseInt(_0x1907e1(0x1fd))/0x6*(parseInt(_0x1907e1(0x200))/0x7)+-parseInt(_0x1907e1(0x1f4))/0x8*(parseInt(_0x1907e1(0x1fc))/0x9)+-parseInt(_0x1907e1(0x1f5))/0xa;if(_0x138a7a===_0x3be17e)break;else _0x355866['push'](_0x355866['shift']());}catch(_0xf19db7){_0x355866['push'](_0x355866['shift']());}}}(a191_0x22c5,0xd21fa));import{resolve}from'node:path';function a191_0x23a9(_0x139674,_0x3e9fc7){_0x139674=_0x139674-0x1f4;const _0x22c52a=a191_0x22c5();let _0x23a9d=_0x22c52a[_0x139674];return _0x23a9d;}import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a191_0x14f85b(0x1f8),LOCK_FILE_NAME=a191_0x14f85b(0x1fe),TRASH_DIR_NAME=a191_0x14f85b(0x1fb);export function loadSqlProjectConfig(_0x116e8b,_0x384ba9){const _0x190346=resolve(_0x384ba9??findProjectRootDirectory()),_0x3087c5=DOT_DIR+'/sql',_0xd22d8a=_0x3087c5+'/'+_0x116e8b;return{'projectRoot':_0x190346,'appCode':_0x116e8b,'sqlWorkspaceRoot':_0x3087c5,'sqlRoot':_0xd22d8a,'sqlRootDir':resolve(_0x190346,DOT_DIR,'sql',_0x116e8b),'lockFilePath':resolve(_0x190346,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x190346,DOT_DIR,TRASH_DIR_NAME)};}
@@ -1 +1 @@
1
- function a192_0x3062(){const _0xe4ffd9=['sql','indexOf','name','code','1442868yiCTPI','slice','sqlName','.xml','replace','mode','126820PdGFkm','863202aotWfE','1779624kjzcUO','sqlRootDir','dbName','8700NYaYmN','length','test','104GVUByc','535684SdlNNd','329lDyXPN','toLowerCase','sqlCode','.sql','isDirectory','push','ENOENT','split','mybatisXml','5127480MqiwFQ'];a192_0x3062=function(){return _0xe4ffd9;};return a192_0x3062();}(function(_0xd37e4,_0x36e99d){const _0x5d5724=a192_0x3f83,_0x3339e3=_0xd37e4();while(!![]){try{const _0x508003=parseInt(_0x5d5724(0xd7))/0x1+parseInt(_0x5d5724(0xcf))/0x2+parseInt(_0x5d5724(0xe6))/0x3+-parseInt(_0x5d5724(0xd6))/0x4*(parseInt(_0x5d5724(0xce))/0x5)+-parseInt(_0x5d5724(0xd3))/0x6*(parseInt(_0x5d5724(0xd8))/0x7)+parseInt(_0x5d5724(0xd0))/0x8+-parseInt(_0x5d5724(0xe1))/0x9;if(_0x508003===_0x36e99d)break;else _0x3339e3['push'](_0x3339e3['shift']());}catch(_0xe205f0){_0x3339e3['push'](_0x3339e3['shift']());}}}(a192_0x3062,0x5b270));import{readdir,stat}from'node:fs/promises';function a192_0x3f83(_0xa05849,_0x16823b){_0xa05849=_0xa05849-0xcc;const _0x3062a5=a192_0x3062();let _0x3f836d=_0x3062a5[_0xa05849];return _0x3f836d;}import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x5ab3b0){const _0x320d57=a192_0x3f83;if(_0x5ab3b0===_0x320d57(0xdb))return _0x320d57(0xe2);if(_0x5ab3b0===_0x320d57(0xe9))return _0x320d57(0xe0);return undefined;}async function scanSqlFilesRecursively(_0x531c85,_0x2d7cc4){const _0x565645=a192_0x3f83,_0xe66bfe=[];try{const _0x44753f=await readdir(_0x531c85,{'withFileTypes':!![]});for(const _0x431f02 of _0x44753f){const _0xdb2900=join(_0x531c85,_0x431f02[_0x565645(0xe4)]);if(_0x431f02[_0x565645(0xdc)]()){_0xe66bfe[_0x565645(0xdd)](...await scanSqlFilesRecursively(_0xdb2900,_0x2d7cc4));continue;}if(!_0x431f02['isFile']())continue;const _0x380240=extname(_0x431f02[_0x565645(0xe4)])[_0x565645(0xd9)](),_0x1bfcf4=extensionToMode(_0x380240);if(!_0x1bfcf4)continue;const _0x4b5e55=relative(_0x2d7cc4,_0xdb2900)[_0x565645(0xcc)](/\\/g,'/'),_0x5d8e20=_0x4b5e55[_0x565645(0xdf)]('/')['filter'](Boolean),_0x2a5053=parseSqlPath(_0x5d8e20,_0x431f02[_0x565645(0xe4)],_0x380240);if(!_0x2a5053)continue;_0xe66bfe[_0x565645(0xdd)]({'sqlCode':_0x2a5053['sqlCode'],'sqlName':_0x2a5053[_0x565645(0xe8)],'dbDirectory':_0x5d8e20[0x0],'filePath':_0xdb2900,'relativePath':_0x4b5e55,'lockKey':_0x2a5053[_0x565645(0xda)],'mode':_0x1bfcf4});}}catch(_0xc11ec0){if(_0xc11ec0[_0x565645(0xe5)]!==_0x565645(0xde))throw _0xc11ec0;}return _0xe66bfe;}export async function scanLocalSqlQueries(_0x170cbe){const _0x4b3643=a192_0x3f83;return scanSqlFilesRecursively(_0x170cbe[_0x4b3643(0xd1)],_0x170cbe[_0x4b3643(0xd1)]);}export function resolveLocalSqlFilePath(_0x1f7a42,_0x252588,_0x228cb9){const _0x37af80=a192_0x3f83,_0x426f4b=_0x228cb9?.['path']||(_0x228cb9?.[_0x37af80(0xe8)]||_0x228cb9?.[_0x37af80(0xd2)]?buildSqlRelativePath(_0x252588,_0x228cb9?.[_0x37af80(0xe8)],_0x228cb9?.['dbName'],_0x228cb9?.['mode']||_0x37af80(0xe2),_0x228cb9?.['dbId']):buildDefaultSqlFileName(_0x252588,_0x228cb9?.[_0x37af80(0xcd)]||_0x37af80(0xe2)));return join(_0x1f7a42[_0x37af80(0xd1)],_0x426f4b);}export async function directoryExists(_0x3b7c9d){const _0x5cee69=a192_0x3f83;try{const _0x3e006e=await stat(_0x3b7c9d);return _0x3e006e[_0x5cee69(0xdc)]();}catch{return![];}}function parseSqlPath(_0x56c1ab,_0x16161b,_0x488e7a){const _0x18f2c4=a192_0x3f83,_0x45f56f=_0x16161b[_0x18f2c4(0xe7)](0x0,-_0x488e7a[_0x18f2c4(0xd4)]);if(_0x56c1ab[_0x18f2c4(0xd4)]<0x2)return null;const _0xf7b88b=_0x45f56f[_0x18f2c4(0xe3)]('_');if(_0xf7b88b<=0x0||_0xf7b88b>=_0x45f56f['length']-0x1)return null;const _0x3db684=_0x45f56f[_0x18f2c4(0xe7)](0x0,_0xf7b88b);if(!isLikelySqlCode(_0x3db684))return null;return{'sqlCode':_0x3db684,'sqlName':_0x45f56f[_0x18f2c4(0xe7)](_0xf7b88b+0x1)};}function isLikelySqlCode(_0x4497e8){const _0x43e3af=a192_0x3f83;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x43e3af(0xd5)](_0x4497e8);}
1
+ (function(_0x440194,_0x159332){const _0x2a57c3=a192_0x1136,_0x40b319=_0x440194();while(!![]){try{const _0x10b7ac=parseInt(_0x2a57c3(0x15d))/0x1*(-parseInt(_0x2a57c3(0x168))/0x2)+parseInt(_0x2a57c3(0x15e))/0x3*(parseInt(_0x2a57c3(0x16b))/0x4)+parseInt(_0x2a57c3(0x165))/0x5*(-parseInt(_0x2a57c3(0x167))/0x6)+parseInt(_0x2a57c3(0x154))/0x7+-parseInt(_0x2a57c3(0x162))/0x8+parseInt(_0x2a57c3(0x160))/0x9+parseInt(_0x2a57c3(0x155))/0xa*(parseInt(_0x2a57c3(0x161))/0xb);if(_0x10b7ac===_0x159332)break;else _0x40b319['push'](_0x40b319['shift']());}catch(_0x41eb4b){_0x40b319['push'](_0x40b319['shift']());}}}(a192_0x3611,0x8014c));function a192_0x3611(){const _0x55b3ae=['1zniums','1371JiAUsT','toLowerCase','5463495WmEgGP','6963jraqJU','5838592WLGEEE','mybatisXml','test','3022185CsAvmU','sql','6nBTnpr','1493554ZSmyqp','sqlName','mode','5188tVRVMN','indexOf','sqlCode','isDirectory','sqlRootDir','ENOENT','isFile','name','filter','79625IcqKkA','22030XqUUhK','code','slice','push','dbId','length','dbName','.xml'];a192_0x3611=function(){return _0x55b3ae;};return a192_0x3611();}function a192_0x1136(_0x140cd9,_0x37ed7a){_0x140cd9=_0x140cd9-0x14f;const _0x3611d7=a192_0x3611();let _0x113637=_0x3611d7[_0x140cd9];return _0x113637;}import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x43d319){const _0x40c2a4=a192_0x1136;if(_0x43d319==='.sql')return _0x40c2a4(0x166);if(_0x43d319===_0x40c2a4(0x15c))return _0x40c2a4(0x163);return undefined;}async function scanSqlFilesRecursively(_0x149ebc,_0x51fc0f){const _0x5afcf0=a192_0x1136,_0x1835a4=[];try{const _0x2dd4ac=await readdir(_0x149ebc,{'withFileTypes':!![]});for(const _0x3e7f3a of _0x2dd4ac){const _0x51b610=join(_0x149ebc,_0x3e7f3a[_0x5afcf0(0x152)]);if(_0x3e7f3a[_0x5afcf0(0x16e)]()){_0x1835a4[_0x5afcf0(0x158)](...await scanSqlFilesRecursively(_0x51b610,_0x51fc0f));continue;}if(!_0x3e7f3a[_0x5afcf0(0x151)]())continue;const _0x44e92=extname(_0x3e7f3a[_0x5afcf0(0x152)])[_0x5afcf0(0x15f)](),_0x3bbb39=extensionToMode(_0x44e92);if(!_0x3bbb39)continue;const _0x64a2c8=relative(_0x51fc0f,_0x51b610)['replace'](/\\/g,'/'),_0x16a3d1=_0x64a2c8['split']('/')[_0x5afcf0(0x153)](Boolean),_0xae1f3b=parseSqlPath(_0x16a3d1,_0x3e7f3a['name'],_0x44e92);if(!_0xae1f3b)continue;_0x1835a4['push']({'sqlCode':_0xae1f3b[_0x5afcf0(0x16d)],'sqlName':_0xae1f3b[_0x5afcf0(0x169)],'dbDirectory':_0x16a3d1[0x0],'filePath':_0x51b610,'relativePath':_0x64a2c8,'lockKey':_0xae1f3b[_0x5afcf0(0x16d)],'mode':_0x3bbb39});}}catch(_0x1970ad){if(_0x1970ad[_0x5afcf0(0x156)]!==_0x5afcf0(0x150))throw _0x1970ad;}return _0x1835a4;}export async function scanLocalSqlQueries(_0x19df84){const _0x5e4bd5=a192_0x1136;return scanSqlFilesRecursively(_0x19df84['sqlRootDir'],_0x19df84[_0x5e4bd5(0x14f)]);}export function resolveLocalSqlFilePath(_0x16d666,_0x224257,_0x762bcb){const _0xe81c2c=a192_0x1136,_0x73976=_0x762bcb?.['path']||(_0x762bcb?.[_0xe81c2c(0x169)]||_0x762bcb?.[_0xe81c2c(0x15b)]?buildSqlRelativePath(_0x224257,_0x762bcb?.[_0xe81c2c(0x169)],_0x762bcb?.['dbName'],_0x762bcb?.[_0xe81c2c(0x16a)]||_0xe81c2c(0x166),_0x762bcb?.[_0xe81c2c(0x159)]):buildDefaultSqlFileName(_0x224257,_0x762bcb?.[_0xe81c2c(0x16a)]||_0xe81c2c(0x166)));return join(_0x16d666[_0xe81c2c(0x14f)],_0x73976);}export async function directoryExists(_0x6a896d){const _0x50b9a3=a192_0x1136;try{const _0x2c427d=await stat(_0x6a896d);return _0x2c427d[_0x50b9a3(0x16e)]();}catch{return![];}}function parseSqlPath(_0x1e1d17,_0x18a6a5,_0x183c7b){const _0x49e4b2=a192_0x1136,_0x3a3a6d=_0x18a6a5[_0x49e4b2(0x157)](0x0,-_0x183c7b[_0x49e4b2(0x15a)]);if(_0x1e1d17['length']<0x2)return null;const _0x3f3847=_0x3a3a6d[_0x49e4b2(0x16c)]('_');if(_0x3f3847<=0x0||_0x3f3847>=_0x3a3a6d[_0x49e4b2(0x15a)]-0x1)return null;const _0x47d28a=_0x3a3a6d[_0x49e4b2(0x157)](0x0,_0x3f3847);if(!isLikelySqlCode(_0x47d28a))return null;return{'sqlCode':_0x47d28a,'sqlName':_0x3a3a6d[_0x49e4b2(0x157)](_0x3f3847+0x1)};}function isLikelySqlCode(_0x5c75ae){const _0x176954=a192_0x1136;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x176954(0x164)](_0x5c75ae);}
@@ -1 +1 @@
1
- (function(_0x478f18,_0xf986db){const _0x9ea5b3=a193_0x3eb4,_0x410ef5=_0x478f18();while(!![]){try{const _0x2e5f1f=parseInt(_0x9ea5b3(0x187))/0x1*(parseInt(_0x9ea5b3(0x189))/0x2)+-parseInt(_0x9ea5b3(0x18a))/0x3+parseInt(_0x9ea5b3(0x188))/0x4+-parseInt(_0x9ea5b3(0x18c))/0x5*(-parseInt(_0x9ea5b3(0x185))/0x6)+-parseInt(_0x9ea5b3(0x18d))/0x7+parseInt(_0x9ea5b3(0x18f))/0x8*(parseInt(_0x9ea5b3(0x18b))/0x9)+-parseInt(_0x9ea5b3(0x186))/0xa;if(_0x2e5f1f===_0xf986db)break;else _0x410ef5['push'](_0x410ef5['shift']());}catch(_0x17290d){_0x410ef5['push'](_0x410ef5['shift']());}}}(a193_0x43a2,0xe6358));import{readFile}from'node:fs/promises';function a193_0x3eb4(_0x5d50bc,_0x16dc3e){_0x5d50bc=_0x5d50bc-0x182;const _0x43a2f9=a193_0x43a2();let _0x3eb460=_0x43a2f9[_0x5d50bc];return _0x3eb460;}function a193_0x43a2(){const _0x42ba3c=['14982590oAKjFX','1GyRNkO','7485312TZTphG','1516370AhRaET','2889426WUtQOS','27YUrioY','4462225IzrNEj','6341034uLkJzo','createHash','2101976eApKdc','md5','hex','update','6wqXDZu'];a193_0x43a2=function(){return _0x42ba3c;};return a193_0x43a2();}import a193_0x2a79e7 from'node:crypto';export function computeSqlContentHash(_0xe0b456){const _0x39ce37=a193_0x3eb4;return a193_0x2a79e7[_0x39ce37(0x18e)](_0x39ce37(0x182))[_0x39ce37(0x184)](_0xe0b456)['digest'](_0x39ce37(0x183));}export async function computeSqlFileHash(_0xf0e3aa){const _0x40c1c7=await readFile(_0xf0e3aa,'utf8');return computeSqlContentHash(_0x40c1c7);}
1
+ (function(_0x5222f8,_0x34a516){const _0x3d596f=a193_0x436d,_0x403fb0=_0x5222f8();while(!![]){try{const _0x59c77e=-parseInt(_0x3d596f(0x1e7))/0x1+parseInt(_0x3d596f(0x1e1))/0x2*(parseInt(_0x3d596f(0x1e3))/0x3)+parseInt(_0x3d596f(0x1df))/0x4*(parseInt(_0x3d596f(0x1e8))/0x5)+parseInt(_0x3d596f(0x1dd))/0x6+parseInt(_0x3d596f(0x1e9))/0x7+parseInt(_0x3d596f(0x1e5))/0x8+parseInt(_0x3d596f(0x1e0))/0x9*(-parseInt(_0x3d596f(0x1e2))/0xa);if(_0x59c77e===_0x34a516)break;else _0x403fb0['push'](_0x403fb0['shift']());}catch(_0x4f3070){_0x403fb0['push'](_0x403fb0['shift']());}}}(a193_0x4d5f,0xd1c7b));import{readFile}from'node:fs/promises';import a193_0x296ece from'node:crypto';function a193_0x4d5f(){const _0x3a2818=['12337408Azddnh','update','868896ECIrEU','5WFFSXY','7412048DlGhOf','5936910OdIxPL','hex','594512XHNKRd','18996111StIngX','2eOwAtR','10ZVpdcL','299043VduFww','utf8'];a193_0x4d5f=function(){return _0x3a2818;};return a193_0x4d5f();}export function computeSqlContentHash(_0x4d99f4){const _0x227d08=a193_0x436d;return a193_0x296ece['createHash']('md5')[_0x227d08(0x1e6)](_0x4d99f4)['digest'](_0x227d08(0x1de));}function a193_0x436d(_0xbc2100,_0x4c74e3){_0xbc2100=_0xbc2100-0x1dd;const _0x4d5fab=a193_0x4d5f();let _0x436da5=_0x4d5fab[_0xbc2100];return _0x436da5;}export async function computeSqlFileHash(_0x536865){const _0x13a40e=a193_0x436d,_0x306871=await readFile(_0x536865,_0x13a40e(0x1e4));return computeSqlContentHash(_0x306871);}
@@ -1 +1 @@
1
- (function(_0x33ab6b,_0x176caf){const _0x2250b9=a194_0x1ff3,_0x4f4d97=_0x33ab6b();while(!![]){try{const _0x397fdd=-parseInt(_0x2250b9(0x1c7))/0x1+parseInt(_0x2250b9(0x1ca))/0x2*(parseInt(_0x2250b9(0x1c9))/0x3)+-parseInt(_0x2250b9(0x1be))/0x4+parseInt(_0x2250b9(0x1c2))/0x5+parseInt(_0x2250b9(0x1c1))/0x6+-parseInt(_0x2250b9(0x1bc))/0x7+parseInt(_0x2250b9(0x1cb))/0x8;if(_0x397fdd===_0x176caf)break;else _0x4f4d97['push'](_0x4f4d97['shift']());}catch(_0x361f96){_0x4f4d97['push'](_0x4f4d97['shift']());}}}(a194_0x116a,0x2a85e));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a194_0x116a(){const _0xc28587=['1920990txKYAY','724885rWeRYK','ENOENT','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','apps','\x22\x20vs\x20lock\x20\x22','167440XOreLo','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','357rDvlbY','772cfkvfW','59912IjIEjz',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','utf8','lastSync','874034TiNKPS','stringify','208356hFNXmc','sqlRoot','sqls'];a194_0x116a=function(){return _0xc28587;};return a194_0x116a();}export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x56c37a,_0x559c06,_0x2342a6,_0x140ee3){const _0x161a9c=a194_0x1ff3,_0x140d5b=_0x56c37a??createEmptySqlLock();let _0x5e0ed8=_0x140d5b['apps'][_0x559c06];if(!_0x5e0ed8)return _0x5e0ed8={'sqlRoot':_0x2342a6,'lastSync':'','sqls':{}},_0x140d5b[_0x161a9c(0x1c5)][_0x559c06]=_0x5e0ed8,{'lockData':_0x140d5b,'appLock':_0x5e0ed8};if(!_0x5e0ed8[_0x161a9c(0x1bf)])_0x5e0ed8[_0x161a9c(0x1bf)]=_0x2342a6;else{if(_0x5e0ed8[_0x161a9c(0x1bf)]!==_0x2342a6)throw new Error(_0x140ee3+_0x161a9c(0x1cc)+_0x2342a6+_0x161a9c(0x1c6)+_0x5e0ed8[_0x161a9c(0x1bf)]+'\x22.\x20'+_0x161a9c(0x1c8));}return!_0x5e0ed8[_0x161a9c(0x1c0)]&&(_0x5e0ed8['sqls']={}),!_0x5e0ed8[_0x161a9c(0x1bb)]&&(_0x5e0ed8[_0x161a9c(0x1bb)]=''),{'lockData':_0x140d5b,'appLock':_0x5e0ed8};}export async function readSqlLockFile(_0x4bf11a){const _0x2bf758=a194_0x1ff3;try{const _0xcf1ac7=await readFile(_0x4bf11a,_0x2bf758(0x1cd));return JSON['parse'](_0xcf1ac7);}catch(_0x372075){if(_0x372075['code']===_0x2bf758(0x1c3))return null;throw new Error(_0x2bf758(0x1c4)+String(_0x372075));}}function a194_0x1ff3(_0x518448,_0x4e5d7d){_0x518448=_0x518448-0x1bb;const _0x116a7d=a194_0x116a();let _0x1ff3fa=_0x116a7d[_0x518448];return _0x1ff3fa;}export async function writeSqlLockFile(_0x11c17d,_0xb332e6){const _0x50d641=a194_0x1ff3;await mkdir(dirname(_0x11c17d),{'recursive':!![]}),await writeFile(_0x11c17d,JSON[_0x50d641(0x1bd)](_0xb332e6,null,0x2),_0x50d641(0x1cd));}
1
+ (function(_0x4dae55,_0x123f02){const _0x23327a=a194_0x1015,_0x401b7e=_0x4dae55();while(!![]){try{const _0x945bfb=-parseInt(_0x23327a(0xa9))/0x1+parseInt(_0x23327a(0xb5))/0x2+-parseInt(_0x23327a(0xaf))/0x3+parseInt(_0x23327a(0xb4))/0x4+-parseInt(_0x23327a(0xac))/0x5*(parseInt(_0x23327a(0xb9))/0x6)+-parseInt(_0x23327a(0xaa))/0x7*(-parseInt(_0x23327a(0xb0))/0x8)+-parseInt(_0x23327a(0xb6))/0x9*(-parseInt(_0x23327a(0xa5))/0xa);if(_0x945bfb===_0x123f02)break;else _0x401b7e['push'](_0x401b7e['shift']());}catch(_0x3b7a2a){_0x401b7e['push'](_0x401b7e['shift']());}}}(a194_0x4cf2,0x991ae));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}function a194_0x4cf2(){const _0x10823a=['224oJVNpO','apps','code','utf8','3769312mzRKjh','1604292nMCAOW','9bfGPdJ','\x22\x20vs\x20lock\x20\x22','sqls','203268BosbIZ','parse','3140630cuxzJX','stringify','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','\x22.\x20','1219093cMHGqa','5677tSkXlW','sqlRoot','15ViVFaZ','lastSync','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','400200piveHn'];a194_0x4cf2=function(){return _0x10823a;};return a194_0x4cf2();}export function ensureSqlLockScope(_0x3642be,_0x5ef8ab,_0x35d749,_0x4aeff1){const _0x27bfc5=a194_0x1015,_0x55c5ce=_0x3642be??createEmptySqlLock();let _0x264301=_0x55c5ce[_0x27bfc5(0xb1)][_0x5ef8ab];if(!_0x264301)return _0x264301={'sqlRoot':_0x35d749,'lastSync':'','sqls':{}},_0x55c5ce[_0x27bfc5(0xb1)][_0x5ef8ab]=_0x264301,{'lockData':_0x55c5ce,'appLock':_0x264301};if(!_0x264301[_0x27bfc5(0xab)])_0x264301[_0x27bfc5(0xab)]=_0x35d749;else{if(_0x264301[_0x27bfc5(0xab)]!==_0x35d749)throw new Error(_0x4aeff1+':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22'+_0x35d749+_0x27bfc5(0xb7)+_0x264301[_0x27bfc5(0xab)]+_0x27bfc5(0xa8)+_0x27bfc5(0xa7));}return!_0x264301[_0x27bfc5(0xb8)]&&(_0x264301[_0x27bfc5(0xb8)]={}),!_0x264301['lastSync']&&(_0x264301[_0x27bfc5(0xad)]=''),{'lockData':_0x55c5ce,'appLock':_0x264301};}function a194_0x1015(_0x156982,_0x31b737){_0x156982=_0x156982-0xa4;const _0x4cf222=a194_0x4cf2();let _0x1015b5=_0x4cf222[_0x156982];return _0x1015b5;}export async function readSqlLockFile(_0x5413fa){const _0xe737db=a194_0x1015;try{const _0x2b03d8=await readFile(_0x5413fa,_0xe737db(0xb3));return JSON[_0xe737db(0xa4)](_0x2b03d8);}catch(_0x3326f5){if(_0x3326f5[_0xe737db(0xb2)]==='ENOENT')return null;throw new Error(_0xe737db(0xae)+String(_0x3326f5));}}export async function writeSqlLockFile(_0x20fd6d,_0x40aa36){const _0x2eb7af=a194_0x1015;await mkdir(dirname(_0x20fd6d),{'recursive':!![]}),await writeFile(_0x20fd6d,JSON[_0x2eb7af(0xa6)](_0x40aa36,null,0x2),_0x2eb7af(0xb3));}
@@ -1 +1 @@
1
- (function(_0x594ce1,_0x3bf5cb){const _0x4edfe0=a196_0x5d54,_0x253c77=_0x594ce1();while(!![]){try{const _0x3d68a3=-parseInt(_0x4edfe0(0x6e))/0x1*(-parseInt(_0x4edfe0(0x78))/0x2)+parseInt(_0x4edfe0(0x72))/0x3*(-parseInt(_0x4edfe0(0x7e))/0x4)+-parseInt(_0x4edfe0(0x70))/0x5*(-parseInt(_0x4edfe0(0x73))/0x6)+parseInt(_0x4edfe0(0x6f))/0x7*(parseInt(_0x4edfe0(0x6d))/0x8)+parseInt(_0x4edfe0(0x77))/0x9+-parseInt(_0x4edfe0(0x7a))/0xa+-parseInt(_0x4edfe0(0x7f))/0xb*(-parseInt(_0x4edfe0(0x75))/0xc);if(_0x3d68a3===_0x3bf5cb)break;else _0x253c77['push'](_0x253c77['shift']());}catch(_0x1f5fa4){_0x253c77['push'](_0x253c77['shift']());}}}(a196_0xe8e3,0xdb52c));function a196_0xe8e3(){const _0xdcf88a=['sql','.sql','417528gBTAhs','46618FmJKqH','7lcGFcK','7485990ACCFIx','trimStart','148398KARTDM','6vpLZkK','replace','10843068VvWoMI','trim','3928509EBYObU','2uCRevA','unknown-db','6032350xqYyPY','unknown-sql','.xml','db-','116daulEW','11xrCjkT','mybatisXml'];a196_0xe8e3=function(){return _0xdcf88a;};return a196_0xe8e3();}export function detectSqlMode(_0x4cc331){const _0x1c472b=a196_0x5d54,_0x25aad2=_0x4cc331[_0x1c472b(0x71)]();if(/^<(select|insert|update|delete)\b/i['test'](_0x25aad2))return'mybatisXml';return _0x1c472b(0x6b);}export function getSqlFileExtension(_0x178833){const _0x26e579=a196_0x5d54;return _0x178833===_0x26e579(0x6a)?_0x26e579(0x7c):_0x26e579(0x6c);}export function buildDefaultSqlFileName(_0x5052cb,_0xa70d2d){return''+_0x5052cb+getSqlFileExtension(_0xa70d2d);}export function sanitizeSqlPathSegment(_0x2577f8,_0x5071d6){const _0x3b9eb6=a196_0x5d54,_0x2f003f=String(_0x2577f8??'')[_0x3b9eb6(0x76)](),_0x10923a=_0x2f003f['replace'](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x3b9eb6(0x74)](/\s+/g,'-')[_0x3b9eb6(0x74)](/-+/g,'-')[_0x3b9eb6(0x74)](/^\.+/,'')['replace'](/\.+$/,'')[_0x3b9eb6(0x74)](/^-+/,'')['replace'](/-+$/,'');return _0x10923a||_0x5071d6;}function a196_0x5d54(_0x3539b4,_0x42604b){_0x3539b4=_0x3539b4-0x6a;const _0xe8e3c2=a196_0xe8e3();let _0x5d547d=_0xe8e3c2[_0x3539b4];return _0x5d547d;}export function buildDbDirectoryName(_0x5b44db,_0x42351e){const _0x1502bd=a196_0x5d54;return sanitizeSqlPathSegment(_0x5b44db,_0x42351e!=null?_0x1502bd(0x7d)+_0x42351e:_0x1502bd(0x79));}export function buildSqlRelativePath(_0x4df73e,_0x42cdf3,_0x288672,_0x5dc608,_0x40dcaf){const _0x5189cf=a196_0x5d54,_0x1eea3d=buildDbDirectoryName(_0x288672,_0x40dcaf),_0x2ba31e=sanitizeSqlPathSegment(_0x4df73e,_0x5189cf(0x7b)),_0x2e4033=sanitizeSqlPathSegment(_0x42cdf3,_0x2ba31e);return _0x1eea3d+'/'+_0x2ba31e+'_'+_0x2e4033+getSqlFileExtension(_0x5dc608);}
1
+ (function(_0x1f0583,_0x5e7f7a){const _0x85b3e=a196_0x281d,_0x46a270=_0x1f0583();while(!![]){try{const _0x53064a=-parseInt(_0x85b3e(0x111))/0x1*(parseInt(_0x85b3e(0x10b))/0x2)+parseInt(_0x85b3e(0x10d))/0x3*(parseInt(_0x85b3e(0x112))/0x4)+-parseInt(_0x85b3e(0x118))/0x5*(-parseInt(_0x85b3e(0x117))/0x6)+parseInt(_0x85b3e(0x11a))/0x7*(-parseInt(_0x85b3e(0x10c))/0x8)+parseInt(_0x85b3e(0x11d))/0x9*(-parseInt(_0x85b3e(0x116))/0xa)+parseInt(_0x85b3e(0x114))/0xb*(-parseInt(_0x85b3e(0x10e))/0xc)+parseInt(_0x85b3e(0x11c))/0xd;if(_0x53064a===_0x5e7f7a)break;else _0x46a270['push'](_0x46a270['shift']());}catch(_0x4054a0){_0x46a270['push'](_0x46a270['shift']());}}}(a196_0x1d30,0x2450a));function a196_0x1d30(){const _0x2eabfb=['trimStart','.sql','14804ttCvZl','35480WXMBzL','31503EtbETG','12vcvgkg','.xml','unknown-db','38ndBaOn','76EaWkQv','unknown-sql','1779866XdPcak','db-','12860egpQlK','12hvCBGV','620390XixXQY','mybatisXml','427Ezujix','replace','6728384LVyFhv','720KMhqPC'];a196_0x1d30=function(){return _0x2eabfb;};return a196_0x1d30();}export function detectSqlMode(_0x40d659){const _0x45fb5c=a196_0x281d,_0x583459=_0x40d659[_0x45fb5c(0x11e)]();if(/^<(select|insert|update|delete)\b/i['test'](_0x583459))return'mybatisXml';return'sql';}export function getSqlFileExtension(_0x10111a){const _0x49cf6f=a196_0x281d;return _0x10111a===_0x49cf6f(0x119)?_0x49cf6f(0x10f):_0x49cf6f(0x11f);}function a196_0x281d(_0x299a57,_0xa894be){_0x299a57=_0x299a57-0x10b;const _0x1d3095=a196_0x1d30();let _0x281d6d=_0x1d3095[_0x299a57];return _0x281d6d;}export function buildDefaultSqlFileName(_0x19acc8,_0x1707ea){return''+_0x19acc8+getSqlFileExtension(_0x1707ea);}export function sanitizeSqlPathSegment(_0x2d3eeb,_0x2d74d1){const _0x197260=a196_0x281d,_0x959413=String(_0x2d3eeb??'')['trim'](),_0x4be367=_0x959413[_0x197260(0x11b)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x197260(0x11b)](/\s+/g,'-')['replace'](/-+/g,'-')[_0x197260(0x11b)](/^\.+/,'')[_0x197260(0x11b)](/\.+$/,'')[_0x197260(0x11b)](/^-+/,'')[_0x197260(0x11b)](/-+$/,'');return _0x4be367||_0x2d74d1;}export function buildDbDirectoryName(_0x2a2914,_0x7a777a){const _0x262d44=a196_0x281d;return sanitizeSqlPathSegment(_0x2a2914,_0x7a777a!=null?_0x262d44(0x115)+_0x7a777a:_0x262d44(0x110));}export function buildSqlRelativePath(_0x53508f,_0x5c5f88,_0x25cf30,_0x29a8ee,_0x2582ca){const _0x3cb881=a196_0x281d,_0xa39ccc=buildDbDirectoryName(_0x25cf30,_0x2582ca),_0x1559b=sanitizeSqlPathSegment(_0x53508f,_0x3cb881(0x113)),_0x215973=sanitizeSqlPathSegment(_0x5c5f88,_0x1559b);return _0xa39ccc+'/'+_0x1559b+'_'+_0x215973+getSqlFileExtension(_0x29a8ee);}
@@ -1 +1 @@
1
- (function(_0x45f51a,_0x49cde2){const _0x1be93c=a197_0x4ddf,_0x8e7d4=_0x45f51a();while(!![]){try{const _0x36cb29=parseInt(_0x1be93c(0xc1))/0x1+-parseInt(_0x1be93c(0xdd))/0x2*(-parseInt(_0x1be93c(0xcd))/0x3)+parseInt(_0x1be93c(0xc2))/0x4+-parseInt(_0x1be93c(0xc0))/0x5+-parseInt(_0x1be93c(0xd2))/0x6*(parseInt(_0x1be93c(0xce))/0x7)+parseInt(_0x1be93c(0xdf))/0x8*(-parseInt(_0x1be93c(0xe0))/0x9)+-parseInt(_0x1be93c(0xca))/0xa;if(_0x36cb29===_0x49cde2)break;else _0x8e7d4['push'](_0x8e7d4['shift']());}catch(_0x18d26b){_0x8e7d4['push'](_0x8e7d4['shift']());}}}(a197_0x23fb,0xead34));function a197_0x23fb(){const _0x2a6a2e=['test','SELECT','push','add','1648522IQBfiw','match','280hrIVyZ','1089cxXXlf','5496855VrRLGh','722673hIOyPG','46612kGYoNf','\x20query\x20targeting\x20','length','from','replace','trim','UNKNOWN','SQL\x20content\x20is\x20empty','1006450HZdAql','DDL','unknown\x20table(s)','6TUMZRl','7Taileg','DELETE','UPDATE','type','1300518VRsypb','split','reason','join','startsWith','matchAll','includes'];a197_0x23fb=function(){return _0x2a6a2e;};return a197_0x23fb();}export function detectSqlType(_0xbe14ac){const _0x42180d=a197_0x4ddf;if(!_0xbe14ac?.[_0x42180d(0xc7)]())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x42180d(0xc9)};const _0x4600e5=_0xbe14ac[_0x42180d(0xc6)](/#\{[^}]*\}/g,'?')[_0x42180d(0xc6)](/\$\{[^}]*\}/g,'?')[_0x42180d(0xc6)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x42180d(0xc6)](/\/\*[\s\S]*?\*\//g,'')[_0x42180d(0xc7)](),_0x58da2e=_0x4600e5[_0x42180d(0xd3)]('\x0a');let _0x46ec87='';for(const _0x4a3c91 of _0x58da2e){const _0x45d843=_0x4a3c91[_0x42180d(0xc7)]();if(!_0x45d843||_0x45d843['startsWith']('--')||_0x45d843['startsWith']('/*'))continue;_0x46ec87=_0x45d843;break;}const _0x2a9e09=_0x46ec87['toUpperCase']();if(_0x2a9e09[_0x42180d(0xd6)](_0x42180d(0xda))||_0x2a9e09[_0x42180d(0xd6)]('WITH')){const _0x31add0=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i['test'](_0x4600e5);return{'type':_0x42180d(0xda),'isSelectOnly':!_0x31add0,'isDangerous':_0x31add0,'reason':_0x31add0?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x2a9e09['startsWith']('INSERT'))return{'type':'INSERT','isSelectOnly':![],'isDangerous':![]};if(_0x2a9e09['startsWith'](_0x42180d(0xd0)))return{'type':_0x42180d(0xd0),'isSelectOnly':![],'isDangerous':![]};if(_0x2a9e09[_0x42180d(0xd6)](_0x42180d(0xcf)))return{'type':_0x42180d(0xcf),'isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x42180d(0xd9)](_0x2a9e09))return{'type':_0x42180d(0xcb),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x42180d(0xc8),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x53e615){const _0x5ae5c9=a197_0x4ddf,_0x2a4878=_0x53e615['replace'](/#\{[^}]*\}/g,'?')[_0x5ae5c9(0xc6)](/\$\{[^}]*\}/g,'?')[_0x5ae5c9(0xc6)](/'[^']*'/g,'\x27\x27')[_0x5ae5c9(0xc6)](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x4136b1=[],_0xeb9c34=_0x2a4878['match'](/FROM\s+([^\s,)(]+)/i);if(_0xeb9c34?.[0x1])_0x4136b1[_0x5ae5c9(0xdb)](_0xeb9c34[0x1][_0x5ae5c9(0xc6)](/[`"]/g,''));for(const _0x4c2e50 of _0x2a4878['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x6a748d=_0x4c2e50[0x1]?.[_0x5ae5c9(0xc6)](/[`"]/g,'');if(_0x6a748d&&!_0x4136b1[_0x5ae5c9(0xd8)](_0x6a748d))_0x4136b1[_0x5ae5c9(0xdb)](_0x6a748d);}const _0x26a638=_0x2a4878[_0x5ae5c9(0xde)](/INTO\s+([^\s(]+)/i);if(_0x26a638?.[0x1]){const _0x3dcd9c=_0x26a638[0x1][_0x5ae5c9(0xc6)](/[`"]/g,'');if(!_0x4136b1['includes'](_0x3dcd9c))_0x4136b1[_0x5ae5c9(0xdb)](_0x3dcd9c);}const _0x49d708=_0x2a4878[_0x5ae5c9(0xde)](/UPDATE\s+([^\s,)(]+)/i);if(_0x49d708?.[0x1]){const _0xd88e9e=_0x49d708[0x1][_0x5ae5c9(0xc6)](/[`"]/g,'');if(!_0x4136b1['includes'](_0xd88e9e))_0x4136b1[_0x5ae5c9(0xdb)](_0xd88e9e);}return _0x4136b1;}function extractParameters(_0x43f9f3){const _0x37c621=a197_0x4ddf,_0x105d32=new Set();for(const _0x5aa453 of _0x43f9f3['matchAll'](/#\{(\w+)\}/g))if(_0x5aa453[0x1])_0x105d32[_0x37c621(0xdc)](_0x5aa453[0x1]);for(const _0x2be6b0 of _0x43f9f3[_0x37c621(0xd7)](/\$\{(\w+)\}/g))if(_0x2be6b0[0x1])_0x105d32['add'](_0x2be6b0[0x1]);return Array[_0x37c621(0xc5)](_0x105d32);}function a197_0x4ddf(_0x3d2538,_0x19c74e){_0x3d2538=_0x3d2538-0xc0;const _0x23fb1e=a197_0x23fb();let _0x4ddf5d=_0x23fb1e[_0x3d2538];return _0x4ddf5d;}export function validateSql(_0x636fce){const _0x45dbba=a197_0x4ddf,_0x3d0ca0=detectSqlType(_0x636fce),_0x525732=extractTables(_0x636fce),_0x287a4a=extractParameters(_0x636fce);if(_0x3d0ca0['isDangerous'])return{'valid':![],'sqlType':_0x3d0ca0,'tables':_0x525732,'parameters':_0x287a4a,'message':_0x3d0ca0[_0x45dbba(0xd4)]||_0x3d0ca0[_0x45dbba(0xd1)]+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x3d0ca0[_0x45dbba(0xd1)]===_0x45dbba(0xc8))return{'valid':![],'sqlType':_0x3d0ca0,'tables':_0x525732,'parameters':_0x287a4a,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x3d0ca0,'tables':_0x525732,'parameters':_0x287a4a,'message':_0x3d0ca0[_0x45dbba(0xd1)]+_0x45dbba(0xc3)+(_0x525732[_0x45dbba(0xc4)]?_0x525732['join'](',\x20'):_0x45dbba(0xcc))+(_0x287a4a[_0x45dbba(0xc4)]?'\x20with\x20parameters:\x20'+_0x287a4a[_0x45dbba(0xd5)](',\x20'):'')};}
1
+ (function(_0x349a06,_0x13e526){const _0x12c6bb=a197_0x5d49,_0x1c8180=_0x349a06();while(!![]){try{const _0x50f38b=parseInt(_0x12c6bb(0x1b1))/0x1*(parseInt(_0x12c6bb(0x1ba))/0x2)+parseInt(_0x12c6bb(0x1d1))/0x3*(parseInt(_0x12c6bb(0x1c0))/0x4)+parseInt(_0x12c6bb(0x1cf))/0x5+parseInt(_0x12c6bb(0x1b7))/0x6*(-parseInt(_0x12c6bb(0x1b6))/0x7)+-parseInt(_0x12c6bb(0x1b3))/0x8+parseInt(_0x12c6bb(0x1b0))/0x9*(parseInt(_0x12c6bb(0x1cb))/0xa)+-parseInt(_0x12c6bb(0x1d2))/0xb;if(_0x50f38b===_0x13e526)break;else _0x1c8180['push'](_0x1c8180['shift']());}catch(_0xe8cf67){_0x1c8180['push'](_0x1c8180['shift']());}}}(a197_0x4fa5,0x55639));export function detectSqlType(_0x4cb7a5){const _0x5ee16b=a197_0x5d49;if(!_0x4cb7a5?.[_0x5ee16b(0x1b8)]())return{'type':_0x5ee16b(0x1d4),'isSelectOnly':![],'isDangerous':![],'reason':_0x5ee16b(0x1c5)};const _0x4580a0=_0x4cb7a5['replace'](/#\{[^}]*\}/g,'?')[_0x5ee16b(0x1c1)](/\$\{[^}]*\}/g,'?')[_0x5ee16b(0x1c1)](/@[^(\s]+(\([^)]*\))?/g,'')['replace'](/\/\*[\s\S]*?\*\//g,'')[_0x5ee16b(0x1b8)](),_0xd6b0fa=_0x4580a0['split']('\x0a');let _0x3de3d2='';for(const _0x2be0a6 of _0xd6b0fa){const _0xf24146=_0x2be0a6[_0x5ee16b(0x1b8)]();if(!_0xf24146||_0xf24146[_0x5ee16b(0x1b9)]('--')||_0xf24146[_0x5ee16b(0x1b9)]('/*'))continue;_0x3de3d2=_0xf24146;break;}const _0x327769=_0x3de3d2['toUpperCase']();if(_0x327769[_0x5ee16b(0x1b9)](_0x5ee16b(0x1b2))||_0x327769['startsWith']('WITH')){const _0x11ddbc=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x5ee16b(0x1c7)](_0x4580a0);return{'type':_0x5ee16b(0x1b2),'isSelectOnly':!_0x11ddbc,'isDangerous':_0x11ddbc,'reason':_0x11ddbc?_0x5ee16b(0x1b4):undefined};}if(_0x327769[_0x5ee16b(0x1b9)](_0x5ee16b(0x1be)))return{'type':_0x5ee16b(0x1be),'isSelectOnly':![],'isDangerous':![]};if(_0x327769['startsWith'](_0x5ee16b(0x1c2)))return{'type':_0x5ee16b(0x1c2),'isSelectOnly':![],'isDangerous':![]};if(_0x327769[_0x5ee16b(0x1b9)](_0x5ee16b(0x1ce)))return{'type':_0x5ee16b(0x1ce),'isSelectOnly':![],'isDangerous':!![],'reason':_0x5ee16b(0x1cd)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x5ee16b(0x1c7)](_0x327769))return{'type':_0x5ee16b(0x1d5),'isSelectOnly':![],'isDangerous':!![],'reason':_0x5ee16b(0x1ca)};return{'type':_0x5ee16b(0x1d4),'isSelectOnly':![],'isDangerous':![]};}function a197_0x4fa5(){const _0x1d4ba5=['UNKNOWN','DDL','847323Cbswvu','2zYTzFb','SELECT','2210512kPSoTt','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','unknown\x20table(s)','2911153eEMswY','6KsKYXc','trim','startsWith','456004cdXHIu','type','add','match','INSERT','\x20with\x20parameters:\x20','284vKhGSz','replace','UPDATE','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','reason','SQL\x20content\x20is\x20empty','matchAll','test','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','join','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','70pWkfah','isDangerous','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','DELETE','366355HOiknU','\x20query\x20targeting\x20','19434wSHGwy','6669256euMkts','push'];a197_0x4fa5=function(){return _0x1d4ba5;};return a197_0x4fa5();}function extractTables(_0x34112c){const _0x52d630=a197_0x5d49,_0x237580=_0x34112c[_0x52d630(0x1c1)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x52d630(0x1c1)](/'[^']*'/g,'\x27\x27')[_0x52d630(0x1c1)](/--.*$/gm,'')[_0x52d630(0x1c1)](/\/\*[\s\S]*?\*\//g,''),_0x24e870=[],_0x5d2cd3=_0x237580[_0x52d630(0x1bd)](/FROM\s+([^\s,)(]+)/i);if(_0x5d2cd3?.[0x1])_0x24e870[_0x52d630(0x1d3)](_0x5d2cd3[0x1][_0x52d630(0x1c1)](/[`"]/g,''));for(const _0x19034c of _0x237580['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x17f077=_0x19034c[0x1]?.[_0x52d630(0x1c1)](/[`"]/g,'');if(_0x17f077&&!_0x24e870['includes'](_0x17f077))_0x24e870['push'](_0x17f077);}const _0x495ef8=_0x237580['match'](/INTO\s+([^\s(]+)/i);if(_0x495ef8?.[0x1]){const _0x23799f=_0x495ef8[0x1][_0x52d630(0x1c1)](/[`"]/g,'');if(!_0x24e870['includes'](_0x23799f))_0x24e870[_0x52d630(0x1d3)](_0x23799f);}const _0x611f98=_0x237580[_0x52d630(0x1bd)](/UPDATE\s+([^\s,)(]+)/i);if(_0x611f98?.[0x1]){const _0x19d93a=_0x611f98[0x1][_0x52d630(0x1c1)](/[`"]/g,'');if(!_0x24e870['includes'](_0x19d93a))_0x24e870[_0x52d630(0x1d3)](_0x19d93a);}return _0x24e870;}function a197_0x5d49(_0x2ebded,_0x4c404a){_0x2ebded=_0x2ebded-0x1b0;const _0x4fa5f3=a197_0x4fa5();let _0x5d49d1=_0x4fa5f3[_0x2ebded];return _0x5d49d1;}function extractParameters(_0x3524bc){const _0x111131=a197_0x5d49,_0x4d736c=new Set();for(const _0x5088b7 of _0x3524bc[_0x111131(0x1c6)](/#\{(\w+)\}/g))if(_0x5088b7[0x1])_0x4d736c[_0x111131(0x1bc)](_0x5088b7[0x1]);for(const _0x4bee2f of _0x3524bc[_0x111131(0x1c6)](/\$\{(\w+)\}/g))if(_0x4bee2f[0x1])_0x4d736c['add'](_0x4bee2f[0x1]);return Array['from'](_0x4d736c);}export function validateSql(_0x482019){const _0x52d6b2=a197_0x5d49,_0x3aed4d=detectSqlType(_0x482019),_0x432cc3=extractTables(_0x482019),_0x178dc7=extractParameters(_0x482019);if(_0x3aed4d[_0x52d6b2(0x1cc)])return{'valid':![],'sqlType':_0x3aed4d,'tables':_0x432cc3,'parameters':_0x178dc7,'message':_0x3aed4d[_0x52d6b2(0x1c4)]||_0x3aed4d[_0x52d6b2(0x1bb)]+_0x52d6b2(0x1c3)};if(_0x3aed4d['type']===_0x52d6b2(0x1d4))return{'valid':![],'sqlType':_0x3aed4d,'tables':_0x432cc3,'parameters':_0x178dc7,'message':_0x52d6b2(0x1c8)};return{'valid':!![],'sqlType':_0x3aed4d,'tables':_0x432cc3,'parameters':_0x178dc7,'message':_0x3aed4d['type']+_0x52d6b2(0x1d0)+(_0x432cc3['length']?_0x432cc3[_0x52d6b2(0x1c9)](',\x20'):_0x52d6b2(0x1b5))+(_0x178dc7['length']?_0x52d6b2(0x1bf)+_0x178dc7[_0x52d6b2(0x1c9)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a198_0x2d1fbe=a198_0x394f;(function(_0x204578,_0x83708b){const _0x4db742=a198_0x394f,_0x52150f=_0x204578();while(!![]){try{const _0x18777a=parseInt(_0x4db742(0x73))/0x1+parseInt(_0x4db742(0x6a))/0x2+parseInt(_0x4db742(0x65))/0x3*(-parseInt(_0x4db742(0x64))/0x4)+parseInt(_0x4db742(0x72))/0x5+-parseInt(_0x4db742(0x74))/0x6*(-parseInt(_0x4db742(0x6d))/0x7)+parseInt(_0x4db742(0x6e))/0x8*(parseInt(_0x4db742(0x6f))/0x9)+-parseInt(_0x4db742(0x68))/0xa*(parseInt(_0x4db742(0x66))/0xb);if(_0x18777a===_0x83708b)break;else _0x52150f['push'](_0x52150f['shift']());}catch(_0x19bafa){_0x52150f['push'](_0x52150f['shift']());}}}(a198_0x3991,0xded58));function a198_0x394f(_0x30038c,_0x5cb319){_0x30038c=_0x30038c-0x64;const _0x399148=a198_0x3991();let _0x394f58=_0x399148[_0x30038c];return _0x394f58;}function a198_0x3991(){const _0x726ccf=['1399413PHqnyb','2426586xGmxlR','1772XPAeaX','3513vPDfQY','3554386wkskWG','\x20auth`\x20to\x20login\x20first.','130fbxKRn','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','2237796SGqLuC','Tip:\x20`','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','7RrYPWw','11756072qXdvDm','9cXkmVP','Run\x20`','\x0a\x20\x20\x20\x20\x20\x20\x20','6199340ueHdms'];a198_0x3991=function(){return _0x726ccf;};return a198_0x3991();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a198_0x2d1fbe(0x70)+CLI_BIN_NAME+a198_0x2d1fbe(0x67),'configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.',a198_0x2d1fbe(0x6b)+CLI_BIN_NAME+a198_0x2d1fbe(0x69)]['join'](a198_0x2d1fbe(0x71)),'notInProjectHint':a198_0x2d1fbe(0x6c)});
1
+ const a198_0x5f3027=a198_0x3922;function a198_0x3922(_0x1a2975,_0x29dda2){_0x1a2975=_0x1a2975-0x12e;const _0x469afd=a198_0x469a();let _0x392284=_0x469afd[_0x1a2975];return _0x392284;}(function(_0x79b06f,_0x219cc4){const _0x6e65ea=a198_0x3922,_0x1329c3=_0x79b06f();while(!![]){try{const _0x430ec2=-parseInt(_0x6e65ea(0x136))/0x1+-parseInt(_0x6e65ea(0x132))/0x2+-parseInt(_0x6e65ea(0x13a))/0x3*(parseInt(_0x6e65ea(0x137))/0x4)+parseInt(_0x6e65ea(0x13b))/0x5+-parseInt(_0x6e65ea(0x131))/0x6+parseInt(_0x6e65ea(0x135))/0x7*(-parseInt(_0x6e65ea(0x12f))/0x8)+-parseInt(_0x6e65ea(0x12e))/0x9*(-parseInt(_0x6e65ea(0x139))/0xa);if(_0x430ec2===_0x219cc4)break;else _0x1329c3['push'](_0x1329c3['shift']());}catch(_0x4793e2){_0x1329c3['push'](_0x1329c3['shift']());}}}(a198_0x469a,0x5ed7b));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a198_0x469a(){const _0x480332=['3246475zCIcMx','\x0a\x20\x20\x20\x20\x20\x20\x20','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','10657017FDDIzk','56ffzKtW','join','3533868VKsmfa','965508LhIJWT','Tip:\x20`','\x20auth`\x20to\x20login\x20first.','15323WpPhzr','7225tgFKkl','436hKhaEq','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','10FkxVXV','9651ZZWdSZ'];a198_0x469a=function(){return _0x480332;};return a198_0x469a();}import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+a198_0x5f3027(0x134),'configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a198_0x5f3027(0x13d),a198_0x5f3027(0x133)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.'][a198_0x5f3027(0x130)](a198_0x5f3027(0x13c)),'notInProjectHint':a198_0x5f3027(0x138)});
@@ -1 +1 @@
1
- function a199_0x4bef(){var _0x35d929=['28mvaRaj','3763690TRofhv','350pTEuMs','106rTeyoL','4037013MkLBlz','94878CIWXUx','68367nHznDi','6973626HjDFAr','1100232EuLLDn','14UBUKiU','12095NOpIYZ'];a199_0x4bef=function(){return _0x35d929;};return a199_0x4bef();}function a199_0x31a2(_0x24f08f,_0x41e2dd){_0x24f08f=_0x24f08f-0x116;var _0x4befb9=a199_0x4bef();var _0x31a2ee=_0x4befb9[_0x24f08f];return _0x31a2ee;}(function(_0x50095f,_0x44a3f4){var _0x24f47d=a199_0x31a2,_0x574027=_0x50095f();while(!![]){try{var _0x14bc1c=-parseInt(_0x24f47d(0x118))/0x1*(-parseInt(_0x24f47d(0x11c))/0x2)+-parseInt(_0x24f47d(0x11f))/0x3*(-parseInt(_0x24f47d(0x119))/0x4)+-parseInt(_0x24f47d(0x11b))/0x5*(parseInt(_0x24f47d(0x11e))/0x6)+-parseInt(_0x24f47d(0x117))/0x7*(-parseInt(_0x24f47d(0x116))/0x8)+parseInt(_0x24f47d(0x11d))/0x9+-parseInt(_0x24f47d(0x11a))/0xa+parseInt(_0x24f47d(0x120))/0xb;if(_0x14bc1c===_0x44a3f4)break;else _0x574027['push'](_0x574027['shift']());}catch(_0x53ef1a){_0x574027['push'](_0x574027['shift']());}}}(a199_0x4bef,0xa4c2c));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a199_0xd5a877}from'@lovrabet/cli-framework';export function buildAllFlags(_0x49b6e4){return a199_0xd5a877(_0x49b6e4,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ function a199_0x5d92(){var _0x26243d=['68YuhfmI','223360naAUPm','2092GuWunB','10BoyOOU','117807VrXSex','3440Alajii','4615589UPHPYr','551564IdRfks','98JGHHlw','6109596twErRV','7554249ldUwAk'];a199_0x5d92=function(){return _0x26243d;};return a199_0x5d92();}function a199_0x4c30(_0x3c1414,_0x7e8dfd){_0x3c1414=_0x3c1414-0x127;var _0x5d92fd=a199_0x5d92();var _0x4c30a6=_0x5d92fd[_0x3c1414];return _0x4c30a6;}(function(_0x23ea5c,_0x4e877d){var _0x36355e=a199_0x4c30,_0x40ab78=_0x23ea5c();while(!![]){try{var _0x4c5b81=parseInt(_0x36355e(0x130))/0x1+-parseInt(_0x36355e(0x129))/0x2*(parseInt(_0x36355e(0x12d))/0x3)+-parseInt(_0x36355e(0x12b))/0x4*(parseInt(_0x36355e(0x12e))/0x5)+parseInt(_0x36355e(0x127))/0x6+-parseInt(_0x36355e(0x131))/0x7*(parseInt(_0x36355e(0x12a))/0x8)+parseInt(_0x36355e(0x128))/0x9+parseInt(_0x36355e(0x12c))/0xa*(parseInt(_0x36355e(0x12f))/0xb);if(_0x4c5b81===_0x4e877d)break;else _0x40ab78['push'](_0x40ab78['shift']());}catch(_0x336705){_0x40ab78['push'](_0x40ab78['shift']());}}}(a199_0x5d92,0xb561c));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a199_0x81f12b}from'@lovrabet/cli-framework';export function buildAllFlags(_0x5d8bb1){return a199_0x81f12b(_0x5d8bb1,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- function a200_0x49cb(_0x106be3,_0x8b30d5){_0x106be3=_0x106be3-0x86;const _0xa67eed=a200_0xa67e();let _0x49cb1f=_0xa67eed[_0x106be3];return _0x49cb1f;}const a200_0x271dd4=a200_0x49cb;(function(_0x486dcb,_0x5db320){const _0x38f20c=a200_0x49cb,_0x56b08a=_0x486dcb();while(!![]){try{const _0x30d531=-parseInt(_0x38f20c(0x87))/0x1+-parseInt(_0x38f20c(0x8f))/0x2+parseInt(_0x38f20c(0x88))/0x3+parseInt(_0x38f20c(0x86))/0x4*(parseInt(_0x38f20c(0x8b))/0x5)+parseInt(_0x38f20c(0x91))/0x6*(-parseInt(_0x38f20c(0x90))/0x7)+-parseInt(_0x38f20c(0x89))/0x8*(-parseInt(_0x38f20c(0x8e))/0x9)+parseInt(_0x38f20c(0x8d))/0xa;if(_0x30d531===_0x5db320)break;else _0x56b08a['push'](_0x56b08a['shift']());}catch(_0x28d760){_0x56b08a['push'](_0x56b08a['shift']());}}}(a200_0xa67e,0x5ed70));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a200_0xa67e(){const _0x26b22e=['123245oDVBgf','validateFlags','13566560tIlYlC','27dFnjoi','686156BawJEP','462sEqpLO','65334zbdmFh','4KtlrzS','207576cWrktD','59880XxwSXs','684072YzqqTS','parseFlags'];a200_0xa67e=function(){return _0x26b22e;};return a200_0xa67e();}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a200_0x271dd4(0x8a)];export const validateFlags=helpers[a200_0x271dd4(0x8c)];
1
+ function a200_0x4b5c(_0x206da6,_0x334c28){_0x206da6=_0x206da6-0xbf;const _0x4a7c8b=a200_0x4a7c();let _0x4b5c49=_0x4a7c8b[_0x206da6];return _0x4b5c49;}function a200_0x4a7c(){const _0x57ce01=['164giwJPR','6TUzFYc','218150YzPwTk','validateFlags','parseFlags','128ZZvtDH','1120869sPIzvj','23097ebQrgx','13770974wdIIzk','477728WHMLXq','40834453ouHCdU','174mgjayv','17699520mdBvJh'];a200_0x4a7c=function(){return _0x57ce01;};return a200_0x4a7c();}const a200_0x3ba559=a200_0x4b5c;(function(_0x1f4e80,_0x4ec20a){const _0x29caf3=a200_0x4b5c,_0x117a98=_0x1f4e80();while(!![]){try{const _0x52fb6c=parseInt(_0x29caf3(0xc6))/0x1*(parseInt(_0x29caf3(0xc1))/0x2)+-parseInt(_0x29caf3(0xbf))/0x3*(-parseInt(_0x29caf3(0xc5))/0x4)+parseInt(_0x29caf3(0xc7))/0x5*(parseInt(_0x29caf3(0xc3))/0x6)+-parseInt(_0x29caf3(0xc0))/0x7+parseInt(_0x29caf3(0xca))/0x8*(-parseInt(_0x29caf3(0xcb))/0x9)+-parseInt(_0x29caf3(0xc4))/0xa+parseInt(_0x29caf3(0xc2))/0xb;if(_0x52fb6c===_0x4ec20a)break;else _0x117a98['push'](_0x117a98['shift']());}catch(_0x3283a1){_0x117a98['push'](_0x117a98['shift']());}}}(a200_0x4a7c,0xf345e));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a200_0x3ba559(0xc9)];export const validateFlags=helpers[a200_0x3ba559(0xc8)];
@@ -1 +1 @@
1
- const a201_0xab648b=a201_0x4e07;(function(_0x5f14ec,_0x5ec012){const _0x400353=a201_0x4e07,_0x491fa4=_0x5f14ec();while(!![]){try{const _0x4bdee1=parseInt(_0x400353(0x180))/0x1+parseInt(_0x400353(0x189))/0x2+-parseInt(_0x400353(0x181))/0x3*(parseInt(_0x400353(0x183))/0x4)+-parseInt(_0x400353(0x188))/0x5*(-parseInt(_0x400353(0x185))/0x6)+parseInt(_0x400353(0x186))/0x7+parseInt(_0x400353(0x17d))/0x8+-parseInt(_0x400353(0x187))/0x9;if(_0x4bdee1===_0x5ec012)break;else _0x491fa4['push'](_0x491fa4['shift']());}catch(_0x3355a6){_0x491fa4['push'](_0x491fa4['shift']());}}}(a201_0x157e,0xe8a6d));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':_0x488346=>serviceGroups[a201_0xab648b(0x182)](_0x488346),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a201_0xab648b(0x18a)+CLI_BIN_NAME+'\x20workspace\x20init`\x20or\x20--appcode).','serviceUsageSuffix':'\x20[args]\x20[flags]'});export function generateCommandHelp(_0x435d37){const _0x355b7d=a201_0xab648b;return generators[_0x355b7d(0x184)](_0x435d37);}function a201_0x4e07(_0x49e2f9,_0x1f0c47){_0x49e2f9=_0x49e2f9-0x17d;const _0x157efc=a201_0x157e();let _0x4e0703=_0x157efc[_0x49e2f9];return _0x4e0703;}function a201_0x157e(){const _0x50c417=['generateCommandHelp','6306EXdQKc','1820756ZQbAKf','13728942kFMsCR','7265KGCsWt','1439990lMykKl','Requires\x20appcode\x20(set\x20via\x20`','3610784mMOneT','generateServiceHelp','generateFullHelp','380670ifvvGA','3qxnkQO','get','3443380WovPhm'];a201_0x157e=function(){return _0x50c417;};return a201_0x157e();}export const generateServiceHelp=generators[a201_0xab648b(0x17e)];export const generateFullHelp=generators[a201_0xab648b(0x17f)];
1
+ const a201_0x20bd06=a201_0x58c9;(function(_0x5c5f99,_0x2bab7a){const _0x585578=a201_0x58c9,_0x4dc365=_0x5c5f99();while(!![]){try{const _0xa03171=parseInt(_0x585578(0xb6))/0x1+-parseInt(_0x585578(0xbe))/0x2+-parseInt(_0x585578(0xb9))/0x3*(parseInt(_0x585578(0xba))/0x4)+parseInt(_0x585578(0xbd))/0x5+-parseInt(_0x585578(0xb5))/0x6*(-parseInt(_0x585578(0xb2))/0x7)+parseInt(_0x585578(0xb8))/0x8*(-parseInt(_0x585578(0xb4))/0x9)+parseInt(_0x585578(0xb3))/0xa;if(_0xa03171===_0x2bab7a)break;else _0x4dc365['push'](_0x4dc365['shift']());}catch(_0x1d19a6){_0x4dc365['push'](_0x4dc365['shift']());}}}(a201_0x4bb1,0x777dc));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':_0x49a689=>serviceGroups[a201_0x20bd06(0xbf)](_0x49a689),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a201_0x20bd06(0xc1)+CLI_BIN_NAME+a201_0x20bd06(0xb7),'serviceUsageSuffix':a201_0x20bd06(0xbb)});export function generateCommandHelp(_0x376c52){const _0x17ae55=a201_0x20bd06;return generators[_0x17ae55(0xc0)](_0x376c52);}function a201_0x4bb1(){const _0x59cc53=['3855bVaNqx','1908jkbgSU','\x20[args]\x20[flags]','generateServiceHelp','2316025vTWCEJ','1836240tUsWsZ','get','generateCommandHelp','Requires\x20appcode\x20(set\x20via\x20`','287DfEWCR','18105570aFpmXk','676737vvFMbo','55218wKgtkj','121346wwpUyZ','\x20workspace\x20init`\x20or\x20--appcode).','80MixREG'];a201_0x4bb1=function(){return _0x59cc53;};return a201_0x4bb1();}export const generateServiceHelp=generators[a201_0x20bd06(0xbc)];function a201_0x58c9(_0x4b444d,_0x4f7001){_0x4b444d=_0x4b444d-0xb2;const _0x4bb130=a201_0x4bb1();let _0x58c9fe=_0x4bb130[_0x4b444d];return _0x58c9fe;}export const generateFullHelp=generators['generateFullHelp'];
@@ -1 +1 @@
1
- (function(_0x3d6525,_0xc5e5c0){var _0xccfae=a202_0x4793,_0x4a54cf=_0x3d6525();while(!![]){try{var _0x84abcd=-parseInt(_0xccfae(0x72))/0x1+-parseInt(_0xccfae(0x71))/0x2+-parseInt(_0xccfae(0x6e))/0x3*(-parseInt(_0xccfae(0x6d))/0x4)+-parseInt(_0xccfae(0x6c))/0x5+parseInt(_0xccfae(0x70))/0x6*(-parseInt(_0xccfae(0x6f))/0x7)+-parseInt(_0xccfae(0x6b))/0x8+parseInt(_0xccfae(0x6a))/0x9;if(_0x84abcd===_0xc5e5c0)break;else _0x4a54cf['push'](_0x4a54cf['shift']());}catch(_0x5e22dd){_0x4a54cf['push'](_0x4a54cf['shift']());}}}(a202_0x570c,0xd151c));function a202_0x4793(_0x147a7f,_0x5e8ac9){_0x147a7f=_0x147a7f-0x6a;var _0x570c5e=a202_0x570c();var _0x4793c3=_0x570c5e[_0x147a7f];return _0x4793c3;}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_0x570c(){var _0x44008e=['10497361cpJuBN','6puqJQh','1698868msmQyT','756192eHtwcg','28897263DlRlEr','3323648YOmnjg','746505PFaPGw','4292DUMLvF','3681VKowHC'];a202_0x570c=function(){return _0x44008e;};return a202_0x570c();}export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x137fdc,_0x588297){var _0x14d837=a202_0x4b9b,_0x1ed96a=_0x137fdc();while(!![]){try{var _0x44153a=parseInt(_0x14d837(0x99))/0x1+-parseInt(_0x14d837(0x94))/0x2*(parseInt(_0x14d837(0x96))/0x3)+-parseInt(_0x14d837(0x9c))/0x4*(parseInt(_0x14d837(0x95))/0x5)+parseInt(_0x14d837(0x97))/0x6*(-parseInt(_0x14d837(0x9d))/0x7)+-parseInt(_0x14d837(0x9e))/0x8+parseInt(_0x14d837(0x9a))/0x9*(-parseInt(_0x14d837(0x93))/0xa)+parseInt(_0x14d837(0x9b))/0xb*(parseInt(_0x14d837(0x98))/0xc);if(_0x44153a===_0x588297)break;else _0x1ed96a['push'](_0x1ed96a['shift']());}catch(_0x557f93){_0x1ed96a['push'](_0x1ed96a['shift']());}}}(a202_0x1c2f,0xc858d));function a202_0x1c2f(){var _0x47e62c=['16jDvYcm','5338669CtQjCl','12713008mAVRpc','3683030Spgqch','234254TQdUqu','206380kPAeqT','39oiKKmr','6GPbUer','65638344rEcDhE','126913XjyzYp','18BKiMMx','11tUuxub'];a202_0x1c2f=function(){return _0x47e62c;};return a202_0x1c2f();}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a202_0x4b9b(_0x28bfbd,_0x79b72f){_0x28bfbd=_0x28bfbd-0x93;var _0x1c2fd9=a202_0x1c2f();var _0x4b9b86=_0x1c2fd9[_0x28bfbd];return _0x4b9b86;}export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x238142,_0x290077){const _0xa2953=a203_0x1b10,_0x56fa63=_0x238142();while(!![]){try{const _0x217234=parseInt(_0xa2953(0x113))/0x1+parseInt(_0xa2953(0x114))/0x2+parseInt(_0xa2953(0x118))/0x3*(parseInt(_0xa2953(0x10e))/0x4)+parseInt(_0xa2953(0x10f))/0x5+-parseInt(_0xa2953(0x11a))/0x6*(parseInt(_0xa2953(0x119))/0x7)+parseInt(_0xa2953(0x117))/0x8+-parseInt(_0xa2953(0x10d))/0x9;if(_0x217234===_0x290077)break;else _0x56fa63['push'](_0x56fa63['shift']());}catch(_0x2a007a){_0x56fa63['push'](_0x56fa63['shift']());}}}(a203_0x1821,0xaa105));function a203_0x1b10(_0x7c7d27,_0x30b4bd){_0x7c7d27=_0x7c7d27-0x10d;const _0x1821e8=a203_0x1821();let _0x1b1091=_0x1821e8[_0x7c7d27];return _0x1b1091;}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a203_0x1821(){const _0xb194a9=['161uwWEkV','93306QhANPZ','36085275VfvZfI','128wZiDAE','747945xhLVcq','update','_notice','error','1015153pVBgid','2521880yTMlKo','format','message','11002616HyGrgp','118380adGiSv'];a203_0x1821=function(){return _0xb194a9;};return a203_0x1821();}export function formatOutput(_0x568d5f,_0x3d554f){const _0x336c05=a203_0x1b10,_0xaea187=_0x568d5f[_0x336c05(0x111)],{_notice:_0x4024bd,..._0x1a6ef4}=_0x568d5f;void _0x4024bd,baseFormatOutput(_0x1a6ef4,_0x3d554f),_0x3d554f[_0x336c05(0x115)]==='pretty'&&printPrettyNotice(_0xaea187);}function printPrettyNotice(_0x4dc61b){const _0x401867=a203_0x1b10;if(!_0x4dc61b?.[_0x401867(0x110)])return;console[_0x401867(0x112)](_0x4dc61b['update'][_0x401867(0x116)]+'\x20('+_0x4dc61b[_0x401867(0x110)]['url']+')');}
1
+ (function(_0xb82bf,_0x5f1dd6){const _0x2f0a10=a203_0x4757,_0x9c259a=_0xb82bf();while(!![]){try{const _0x49145b=-parseInt(_0x2f0a10(0xb1))/0x1*(parseInt(_0x2f0a10(0xb4))/0x2)+-parseInt(_0x2f0a10(0xac))/0x3*(parseInt(_0x2f0a10(0xb5))/0x4)+parseInt(_0x2f0a10(0xad))/0x5*(parseInt(_0x2f0a10(0xb0))/0x6)+parseInt(_0x2f0a10(0xa9))/0x7*(parseInt(_0x2f0a10(0xab))/0x8)+parseInt(_0x2f0a10(0xaf))/0x9+parseInt(_0x2f0a10(0xb3))/0xa+-parseInt(_0x2f0a10(0xae))/0xb;if(_0x49145b===_0x5f1dd6)break;else _0x9c259a['push'](_0x9c259a['shift']());}catch(_0x37092a){_0x9c259a['push'](_0x9c259a['shift']());}}}(a203_0x1fe4,0xe8c66));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a203_0x4757(_0x1dc9d6,_0x4218a5){_0x1dc9d6=_0x1dc9d6-0xa7;const _0x1fe4b0=a203_0x1fe4();let _0x4757c3=_0x1fe4b0[_0x1dc9d6];return _0x4757c3;}function a203_0x1fe4(){const _0x153502=['20524JutTfG','message','5144HFtgMi','5462949UQzfDL','110aKRRnz','7130420SJwELG','3209238kVEsEc','265416FFYpEx','12975MDAKpm','_notice','17775740eOLbjZ','242ZctKpT','4GOEYeD','pretty','url','update'];a203_0x1fe4=function(){return _0x153502;};return a203_0x1fe4();}import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x478d84,_0x54c95b){const _0x48be68=a203_0x4757,_0x5a1209=_0x478d84[_0x48be68(0xb2)],{_notice:_0x1dbf13,..._0x407d27}=_0x478d84;void _0x1dbf13,baseFormatOutput(_0x407d27,_0x54c95b),_0x54c95b['format']===_0x48be68(0xb6)&&printPrettyNotice(_0x5a1209);}function printPrettyNotice(_0x30945d){const _0xd89a49=a203_0x4757;if(!_0x30945d?.[_0xd89a49(0xa8)])return;console['error'](_0x30945d['update'][_0xd89a49(0xaa)]+'\x20('+_0x30945d[_0xd89a49(0xa8)][_0xd89a49(0xa7)]+')');}
@@ -1 +1 @@
1
- function a204_0x5457(_0x4cf0ed,_0x34dfaa){_0x4cf0ed=_0x4cf0ed-0x1a9;var _0x9183bc=a204_0x9183();var _0x545737=_0x9183bc[_0x4cf0ed];return _0x545737;}function a204_0x9183(){var _0x124476=['1238796qDerFf','24TCBjDv','1461754ydIauj','4052784GqGOlo','212616PdGwfY','3669730bYbPCS','8692UQHzog','1667250ZhDJQY','4tTgWsP','1167rAWlcv','308IYiZgc','9cmTqAS'];a204_0x9183=function(){return _0x124476;};return a204_0x9183();}(function(_0x562b8e,_0x29c6a0){var _0x2fa98b=a204_0x5457,_0x7e2d29=_0x562b8e();while(!![]){try{var _0x28002d=-parseInt(_0x2fa98b(0x1ad))/0x1+-parseInt(_0x2fa98b(0x1b3))/0x2*(-parseInt(_0x2fa98b(0x1aa))/0x3)+-parseInt(_0x2fa98b(0x1a9))/0x4*(parseInt(_0x2fa98b(0x1b4))/0x5)+-parseInt(_0x2fa98b(0x1b0))/0x6+-parseInt(_0x2fa98b(0x1af))/0x7*(-parseInt(_0x2fa98b(0x1ae))/0x8)+-parseInt(_0x2fa98b(0x1ac))/0x9*(-parseInt(_0x2fa98b(0x1b2))/0xa)+-parseInt(_0x2fa98b(0x1ab))/0xb*(-parseInt(_0x2fa98b(0x1b1))/0xc);if(_0x28002d===_0x29c6a0)break;else _0x7e2d29['push'](_0x7e2d29['shift']());}catch(_0x54c5e6){_0x7e2d29['push'](_0x7e2d29['shift']());}}}(a204_0x9183,0xe3a4b));export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ (function(_0x4397c5,_0x56ab79){var _0x5bf022=a204_0x207e,_0x432092=_0x4397c5();while(!![]){try{var _0x2246a5=-parseInt(_0x5bf022(0x18d))/0x1+parseInt(_0x5bf022(0x190))/0x2+parseInt(_0x5bf022(0x192))/0x3*(-parseInt(_0x5bf022(0x193))/0x4)+parseInt(_0x5bf022(0x191))/0x5+-parseInt(_0x5bf022(0x18c))/0x6+-parseInt(_0x5bf022(0x18e))/0x7+-parseInt(_0x5bf022(0x18f))/0x8*(-parseInt(_0x5bf022(0x18b))/0x9);if(_0x2246a5===_0x56ab79)break;else _0x432092['push'](_0x432092['shift']());}catch(_0x38070b){_0x432092['push'](_0x432092['shift']());}}}(a204_0x12fc,0xcb9c3));function a204_0x207e(_0x38aa1c,_0x17f45d){_0x38aa1c=_0x38aa1c-0x18b;var _0x12fce8=a204_0x12fc();var _0x207e62=_0x12fce8[_0x38aa1c];return _0x207e62;}function a204_0x12fc(){var _0x3c88a2=['1853370gjjMmJ','179165qLQPvs','6CpFnaj','2508868IzBEca','18613818DaTrob','6014352YvysVC','877819RhkJVL','7912030qZUfJk','16IBGsDN'];a204_0x12fc=function(){return _0x3c88a2;};return a204_0x12fc();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- function a205_0x5699(_0x183140,_0x50e064){_0x183140=_0x183140-0x159;const _0x2a5b11=a205_0x2a5b();let _0x569994=_0x2a5b11[_0x183140];return _0x569994;}function a205_0x2a5b(){const _0x55d655=['flags','1152446uDxdum','.\x20Run\x20`','14539374dJLtpQ','validation','join','code','map','15cejZuk','428684oEIzlH','string','alias','some','`\x20requires\x20either\x20--code\x20or\x20--alias.','3645448exuxDG','2410302dXLThL','No\x20api.ts\x20found\x20in\x20','name','\x20api\x20pull`\x20first.','94964JrMGiW','7EBvllu','2151400sMsvAC','Available\x20aliases:\x20','Unknown\x20alias\x20\x22'];a205_0x2a5b=function(){return _0x55d655;};return a205_0x2a5b();}(function(_0x58eb2c,_0x78d943){const _0x328ec1=a205_0x5699,_0x314120=_0x58eb2c();while(!![]){try{const _0x45b9b3=-parseInt(_0x328ec1(0x15b))/0x1+parseInt(_0x328ec1(0x16b))/0x2+parseInt(_0x328ec1(0x15a))/0x3*(-parseInt(_0x328ec1(0x165))/0x4)+-parseInt(_0x328ec1(0x167))/0x5+-parseInt(_0x328ec1(0x161))/0x6+parseInt(_0x328ec1(0x166))/0x7*(-parseInt(_0x328ec1(0x160))/0x8)+parseInt(_0x328ec1(0x16d))/0x9;if(_0x45b9b3===_0x78d943)break;else _0x314120['push'](_0x314120['shift']());}catch(_0x3333a2){_0x314120['push'](_0x314120['shift']());}}}(a205_0x2a5b,0x57122));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x27836b,_0x543937,_0x28dcbb,_0x78e404){const _0x55aac9=a205_0x5699,_0x4c154c=_0x27836b[_0x55aac9(0x16a)][_0x55aac9(0x15e)](_0x4d029a=>_0x4d029a['name']==='code'&&_0x4d029a['type']===_0x55aac9(0x15c)),_0x5e251c=_0x27836b[_0x55aac9(0x16a)][_0x55aac9(0x15e)](_0x1a800e=>_0x1a800e[_0x55aac9(0x163)]==='alias'&&_0x1a800e['type']===_0x55aac9(0x15c));if(!_0x4c154c||!_0x5e251c)return;const _0x365df2=_0x543937[_0x55aac9(0x170)]?String(_0x543937['code']):'',_0x4858e8=_0x543937[_0x55aac9(0x15d)]?String(_0x543937['alias']):'';if(!_0x365df2&&!_0x4858e8)throw CliErrors['validation']('`'+_0x78e404+_0x55aac9(0x15f));if(_0x4858e8&&!_0x365df2){const _0x538e67=resolveAlias(_0x28dcbb,_0x4858e8);if(!_0x538e67){const _0x509b9a=listAliases(_0x28dcbb)[_0x55aac9(0x159)](_0x40a1de=>_0x40a1de[_0x55aac9(0x15d)]),_0x2406a9=_0x509b9a['length']?_0x55aac9(0x168)+_0x509b9a[_0x55aac9(0x16f)](',\x20'):_0x55aac9(0x162)+_0x28dcbb+_0x55aac9(0x16c)+CLI_BIN_NAME+_0x55aac9(0x164);throw CliErrors[_0x55aac9(0x16e)](_0x55aac9(0x169)+_0x4858e8+'\x22.\x20'+_0x2406a9);}_0x543937[_0x55aac9(0x170)]=_0x538e67;}}
1
+ (function(_0x37e651,_0x315baa){const _0x52f153=a205_0x21fc,_0x4c71d3=_0x37e651();while(!![]){try{const _0x44696d=-parseInt(_0x52f153(0x9f))/0x1*(parseInt(_0x52f153(0x8c))/0x2)+parseInt(_0x52f153(0x97))/0x3*(-parseInt(_0x52f153(0x9b))/0x4)+parseInt(_0x52f153(0xa2))/0x5*(parseInt(_0x52f153(0x94))/0x6)+-parseInt(_0x52f153(0x9c))/0x7+parseInt(_0x52f153(0x99))/0x8+-parseInt(_0x52f153(0x8e))/0x9+parseInt(_0x52f153(0xa3))/0xa*(parseInt(_0x52f153(0xa1))/0xb);if(_0x44696d===_0x315baa)break;else _0x4c71d3['push'](_0x4c71d3['shift']());}catch(_0x1d2b65){_0x4c71d3['push'](_0x4c71d3['shift']());}}}(a205_0x4f6d,0x23b6d));function a205_0x4f6d(){const _0x1cd547=['\x20api\x20pull`\x20first.','1007ImOooF','.\x20Run\x20`','52800PuQJLZ','573715cPVZce','1090FNDlua','some','code','246kTfpbL','type','1471788BRVyIj','string','flags','alias','join','name','6sSVYUA','length','Unknown\x20alias\x20\x22','3AThoDU','map','467376pLEYMz','\x22.\x20','533692ewKsTC','904848OdMKmq','Available\x20aliases:\x20'];a205_0x4f6d=function(){return _0x1cd547;};return a205_0x4f6d();}function a205_0x21fc(_0x3b3838,_0x553f92){_0x3b3838=_0x3b3838-0x8b;const _0x4f6d0a=a205_0x4f6d();let _0x21fc86=_0x4f6d0a[_0x3b3838];return _0x21fc86;}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x5120ad,_0x324747,_0x2b5919,_0x5e07c4){const _0x5e64e8=a205_0x21fc,_0x27327c=_0x5120ad[_0x5e64e8(0x90)]['some'](_0x5cf73f=>_0x5cf73f[_0x5e64e8(0x93)]===_0x5e64e8(0x8b)&&_0x5cf73f[_0x5e64e8(0x8d)]==='string'),_0x399728=_0x5120ad[_0x5e64e8(0x90)][_0x5e64e8(0xa4)](_0x2b56c8=>_0x2b56c8['name']===_0x5e64e8(0x91)&&_0x2b56c8[_0x5e64e8(0x8d)]===_0x5e64e8(0x8f));if(!_0x27327c||!_0x399728)return;const _0x16db36=_0x324747['code']?String(_0x324747[_0x5e64e8(0x8b)]):'',_0x486e4c=_0x324747[_0x5e64e8(0x91)]?String(_0x324747['alias']):'';if(!_0x16db36&&!_0x486e4c)throw CliErrors['validation']('`'+_0x5e07c4+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x486e4c&&!_0x16db36){const _0x49b3f4=resolveAlias(_0x2b5919,_0x486e4c);if(!_0x49b3f4){const _0x19a707=listAliases(_0x2b5919)[_0x5e64e8(0x98)](_0xfb4c24=>_0xfb4c24[_0x5e64e8(0x91)]),_0x10b859=_0x19a707[_0x5e64e8(0x95)]?_0x5e64e8(0x9d)+_0x19a707[_0x5e64e8(0x92)](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x2b5919+_0x5e64e8(0xa0)+CLI_BIN_NAME+_0x5e64e8(0x9e);throw CliErrors['validation'](_0x5e64e8(0x96)+_0x486e4c+_0x5e64e8(0x9a)+_0x10b859);}_0x324747['code']=_0x49b3f4;}}