@lovrabet/rabetbase-cli 2.1.13 → 2.1.14-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 (202) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/extend-update.js +1 -0
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/link-create.js +1 -1
  58. package/lib/commands/dataset/link-delete.js +1 -1
  59. package/lib/commands/dataset/link-shared.js +1 -1
  60. package/lib/commands/dataset/link-update.js +1 -1
  61. package/lib/commands/dataset/links.js +1 -1
  62. package/lib/commands/dataset/list.js +1 -1
  63. package/lib/commands/dataset/operations.js +1 -1
  64. package/lib/commands/dataset/rename.js +1 -0
  65. package/lib/commands/db/analyze-cancel.js +1 -1
  66. package/lib/commands/db/analyze-start.js +1 -1
  67. package/lib/commands/db/analyze-status.js +1 -1
  68. package/lib/commands/db/create.js +1 -1
  69. package/lib/commands/db/delete.js +1 -1
  70. package/lib/commands/db/detail.js +1 -1
  71. package/lib/commands/db/diff.js +1 -1
  72. package/lib/commands/db/index.js +1 -1
  73. package/lib/commands/db/list.js +1 -1
  74. package/lib/commands/db/shared.js +1 -1
  75. package/lib/commands/db/tables.js +1 -1
  76. package/lib/commands/db/test.js +1 -1
  77. package/lib/commands/db/update.js +1 -1
  78. package/lib/commands/doctor.js +1 -1
  79. package/lib/commands/init/index.js +1 -1
  80. package/lib/commands/issue/index.js +1 -1
  81. package/lib/commands/issue/nudge.js +1 -1
  82. package/lib/commands/issue/report.js +1 -1
  83. package/lib/commands/issue/shared.js +1 -1
  84. package/lib/commands/logs/index.js +1 -1
  85. package/lib/commands/menu/index.js +1 -1
  86. package/lib/commands/menu/shared/compare-table.js +1 -1
  87. package/lib/commands/menu/shared/index.js +1 -1
  88. package/lib/commands/menu/shared/inquirer.js +1 -1
  89. package/lib/commands/menu/shared/local-pages.js +1 -1
  90. package/lib/commands/menu/shared/logic.js +1 -1
  91. package/lib/commands/menu/shared/service.js +1 -1
  92. package/lib/commands/menu/shared/sync-core.js +1 -1
  93. package/lib/commands/menu/shared/update-core.js +1 -1
  94. package/lib/commands/menu/shared/valid-url.js +1 -1
  95. package/lib/commands/menu/sync.js +1 -1
  96. package/lib/commands/menu/update.js +1 -1
  97. package/lib/commands/page/generate-start.js +1 -1
  98. package/lib/commands/page/generate-status.js +1 -1
  99. package/lib/commands/page/index.js +1 -1
  100. package/lib/commands/page/pull.js +1 -1
  101. package/lib/commands/page/push.js +1 -1
  102. package/lib/commands/page/shared.js +1 -1
  103. package/lib/commands/page/standard-page-status.js +1 -1
  104. package/lib/commands/page/sync.js +1 -1
  105. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  106. package/lib/commands/project/create/format-elapsed.js +1 -1
  107. package/lib/commands/project/create/main.js +1 -1
  108. package/lib/commands/project/create/non-interactive.js +1 -1
  109. package/lib/commands/project/create/project-template-path.js +1 -1
  110. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  111. package/lib/commands/project/create/use-format-code.js +1 -1
  112. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  113. package/lib/commands/project/index.js +1 -1
  114. package/lib/commands/project/init.js +1 -1
  115. package/lib/commands/project/upgrade.js +1 -1
  116. package/lib/commands/registry.js +1 -1
  117. package/lib/commands/run/index.js +1 -1
  118. package/lib/commands/schema.js +1 -1
  119. package/lib/commands/skill/index.js +1 -1
  120. package/lib/commands/sql/create.js +1 -1
  121. package/lib/commands/sql/delete.js +1 -1
  122. package/lib/commands/sql/detail.js +1 -1
  123. package/lib/commands/sql/exec.js +1 -1
  124. package/lib/commands/sql/index.js +1 -1
  125. package/lib/commands/sql/list.js +1 -1
  126. package/lib/commands/sql/pull.js +1 -1
  127. package/lib/commands/sql/push.js +1 -1
  128. package/lib/commands/sql/save.js +1 -1
  129. package/lib/commands/sql/shared.js +1 -1
  130. package/lib/commands/sql/status.js +1 -1
  131. package/lib/commands/sql/validate.js +1 -1
  132. package/lib/config/schema.js +1 -1
  133. package/lib/constant/cdn.js +1 -1
  134. package/lib/constant/cli.js +1 -1
  135. package/lib/constant/defaults.js +1 -1
  136. package/lib/constant/domain.js +1 -1
  137. package/lib/constant/env.js +1 -1
  138. package/lib/constant/output.js +1 -1
  139. package/lib/constant/paths.js +1 -1
  140. package/lib/constant/risk.js +1 -1
  141. package/lib/context.js +1 -1
  142. package/lib/core/alias-resolver.js +1 -1
  143. package/lib/core/api-client.js +1 -1
  144. package/lib/core/bff/config.js +1 -1
  145. package/lib/core/bff/file-system.js +1 -1
  146. package/lib/core/bff/hash.js +1 -1
  147. package/lib/core/bff/lock.js +1 -1
  148. package/lib/core/bff/utils.js +1 -1
  149. package/lib/core/db-resolver.js +1 -1
  150. package/lib/core/page/file-system.js +1 -1
  151. package/lib/core/page/hash.js +1 -1
  152. package/lib/core/page/lock.js +1 -1
  153. package/lib/core/sql-sync/config.js +1 -1
  154. package/lib/core/sql-sync/file-system.js +1 -1
  155. package/lib/core/sql-sync/hash.js +1 -1
  156. package/lib/core/sql-sync/lock.js +1 -1
  157. package/lib/core/sql-sync/utils.js +1 -1
  158. package/lib/core/sql-validator.js +1 -1
  159. package/lib/errors.js +1 -1
  160. package/lib/framework/build-all-flags.js +1 -1
  161. package/lib/framework/flags.js +1 -1
  162. package/lib/framework/help.js +1 -1
  163. package/lib/framework/index.js +1 -1
  164. package/lib/framework/output.js +1 -1
  165. package/lib/framework/response.js +1 -1
  166. package/lib/framework/runner-alias.js +1 -1
  167. package/lib/framework/runner.js +1 -1
  168. package/lib/framework/schema-export.js +1 -1
  169. package/lib/framework/types.js +1 -1
  170. package/lib/generated/build-info.js +1 -1
  171. package/lib/help.js +1 -1
  172. package/lib/skills/main.js +1 -1
  173. package/lib/skills/npx-skills-add.js +1 -1
  174. package/lib/telemetry/cli-command-trace.js +1 -1
  175. package/lib/telemetry/cli-help-trace.js +1 -1
  176. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  177. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  178. package/lib/telemetry/send-cli-trace-log.js +1 -1
  179. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  180. package/lib/utils/ai_config.js +1 -1
  181. package/lib/utils/apply-jq-filter.js +1 -1
  182. package/lib/utils/cdn-config.js +1 -1
  183. package/lib/utils/check-sdk-version.js +1 -1
  184. package/lib/utils/cli-version-check.js +1 -1
  185. package/lib/utils/cli-version-policy.js +1 -1
  186. package/lib/utils/config.js +1 -1
  187. package/lib/utils/copy-directory.js +1 -1
  188. package/lib/utils/entity-with-id.js +1 -1
  189. package/lib/utils/file-utils.js +1 -1
  190. package/lib/utils/guides-cdn.js +1 -1
  191. package/lib/utils/http-client.js +1 -1
  192. package/lib/utils/is-non-interactive.js +1 -1
  193. package/lib/utils/logger.js +1 -1
  194. package/lib/utils/params.js +1 -1
  195. package/lib/utils/platform.js +1 -1
  196. package/lib/utils/rules-cdn.js +1 -1
  197. package/lib/utils/sleep.js +1 -1
  198. package/lib/utils/template-replacer.js +1 -1
  199. package/lib/utils/version.js +1 -1
  200. package/lib/utils/with-active-cookie.js +1 -1
  201. package/lib/utils/write-cli-side-channel.js +1 -1
  202. package/package.json +1 -1
@@ -1 +1 @@
1
- const a143_0x7be83c=a143_0x3e1e;(function(_0x1c3ed2,_0x1b4663){const _0x41c11d=a143_0x3e1e,_0x35b152=_0x1c3ed2();while(!![]){try{const _0x3e13c7=-parseInt(_0x41c11d(0xe9))/0x1*(parseInt(_0x41c11d(0xda))/0x2)+parseInt(_0x41c11d(0xf2))/0x3*(-parseInt(_0x41c11d(0xd8))/0x4)+-parseInt(_0x41c11d(0xd2))/0x5*(-parseInt(_0x41c11d(0xd0))/0x6)+-parseInt(_0x41c11d(0xdd))/0x7+parseInt(_0x41c11d(0xd1))/0x8*(-parseInt(_0x41c11d(0xde))/0x9)+-parseInt(_0x41c11d(0xd7))/0xa+-parseInt(_0x41c11d(0xe8))/0xb*(-parseInt(_0x41c11d(0xdf))/0xc);if(_0x3e13c7===_0x1b4663)break;else _0x35b152['push'](_0x35b152['shift']());}catch(_0x134ed4){_0x35b152['push'](_0x35b152['shift']());}}}(a143_0x494d,0x6550b));import{access,mkdir,readdir,stat}from'node:fs/promises';import{constants}from'node:fs';function a143_0x494d(){const _0x423cbf=['set','407qKDnwv','1gZCGwP','datasetCode','functionNode','afterScriptId','scriptsRootDir','push','ENOENT','operationType','beforeScriptId','215427fmfGhv','code','scriptType','after','F_OK','HOOK/','ENDPOINT','252HyiCjA','95096OZkRFO','62530qOaqPU','alias','map','name','functionName','2829290MvdBMm','20ufelkK','endsWith','1121378YptPJE','.js','HOOK','1286488sDdvFI','153jSTiSj','479436lBkRGa','isDirectory','before','replace','COMMON','isFile','all','trim'];a143_0x494d=function(){return _0x423cbf;};return a143_0x494d();}import{dirname,join}from'node:path';import{findHookLocationByRemoteId,snakeToCamel}from'../../core/bff/utils.js';export const SUPPORTED_BFF_TYPES=['COMMON',a143_0x7be83c(0xf8),a143_0x7be83c(0xdc)];export function normalizeBffType(_0x37fbed){const _0x97dcf5=a143_0x7be83c;if(!_0x37fbed)return undefined;const _0x37ef93=_0x37fbed[_0x97dcf5(0xe6)]()['toUpperCase']();return SUPPORTED_BFF_TYPES['includes'](_0x37ef93)?_0x37ef93:undefined;}async function scanJsFilesRecursively(_0x18a7f2,_0x908511){const _0x45c2bb=a143_0x7be83c,_0x572d79=[];try{const _0x4fb6b5=await readdir(_0x18a7f2,{'withFileTypes':!![]});for(const _0x44bd85 of _0x4fb6b5){const _0x1a1888=join(_0x18a7f2,_0x44bd85[_0x45c2bb(0xd5)]);if(_0x44bd85[_0x45c2bb(0xe0)]())_0x572d79[_0x45c2bb(0xee)](...await scanJsFilesRecursively(_0x1a1888,_0x908511+'/'+_0x44bd85['name']));else _0x44bd85[_0x45c2bb(0xe4)]()&&_0x44bd85[_0x45c2bb(0xd5)][_0x45c2bb(0xd9)](_0x45c2bb(0xdb))&&_0x572d79[_0x45c2bb(0xee)]({'lockKey':_0x908511+'/'+_0x44bd85['name']['replace'](/\.js$/,''),'filePath':_0x1a1888});}}catch(_0x45b515){if(_0x45b515[_0x45c2bb(0xf3)]!==_0x45c2bb(0xef))throw _0x45b515;}return _0x572d79;}async function scanFlatFunctions(_0x3730fd,_0x56a2fd){const _0x164e23=a143_0x7be83c,_0x47db4e=join(_0x3730fd['scriptsRootDir'],_0x56a2fd),_0x3f19f3=await scanJsFilesRecursively(_0x47db4e,_0x56a2fd);return _0x3f19f3[_0x164e23(0xd4)](({lockKey:_0x15485d,filePath:_0x13cab8})=>({'type':_0x56a2fd,'name':_0x15485d['split']('/')['at'](-0x1)??'','filePath':_0x13cab8,'lockKey':_0x15485d}));}async function scanHookFunctions(_0x3f212e){const _0x5126d2=a143_0x7be83c,_0x4084a2=join(_0x3f212e[_0x5126d2(0xed)],'HOOK'),_0x57caba=[];try{const _0x165e2e=await readdir(_0x4084a2,{'withFileTypes':!![]});for(const _0x2f631e of _0x165e2e){if(!_0x2f631e[_0x5126d2(0xe0)]())continue;const _0x28de98=_0x2f631e[_0x5126d2(0xd5)],_0x425cb9=join(_0x4084a2,_0x28de98),_0x23e3e8=await readdir(_0x425cb9,{'withFileTypes':!![]});for(const _0x4d35c9 of _0x23e3e8){if(!_0x4d35c9[_0x5126d2(0xe0)]())continue;const _0x1382ad=_0x4d35c9[_0x5126d2(0xd5)],_0x37aa47=join(_0x425cb9,_0x1382ad),_0x10afaf=await readdir(_0x37aa47,{'withFileTypes':!![]});for(const _0x51b18a of _0x10afaf){if(!_0x51b18a['isDirectory']())continue;const _0x4f301c=_0x51b18a[_0x5126d2(0xd5)],_0x59e811=join(_0x37aa47,_0x4f301c),_0x2d7294=await readdir(_0x59e811,{'withFileTypes':!![]});for(const _0x461be1 of _0x2d7294){if(!_0x461be1['isFile']()||!_0x461be1[_0x5126d2(0xd5)][_0x5126d2(0xd9)](_0x5126d2(0xdb)))continue;const _0xb3cd68=_0x461be1['name'][_0x5126d2(0xe2)](/\.js$/,'');_0x57caba[_0x5126d2(0xee)]({'type':_0x5126d2(0xdc),'name':_0xb3cd68,'filePath':join(_0x59e811,_0x461be1[_0x5126d2(0xd5)]),'lockKey':_0x5126d2(0xf7)+_0x28de98+'/'+_0x1382ad+'/'+_0x4f301c+'/'+_0xb3cd68,'alias':_0x28de98,'operationType':_0x1382ad,'functionNode':_0x4f301c});}}}}}catch(_0x510fc1){if(_0x510fc1['code']!==_0x5126d2(0xef))throw _0x510fc1;}return _0x57caba;}export async function scanLocalBffFunctions(_0x4f7bdd,_0x3d3807){const _0x3422f6=a143_0x7be83c;if(_0x3d3807===_0x3422f6(0xe3)||_0x3d3807===_0x3422f6(0xf8))return scanFlatFunctions(_0x4f7bdd,_0x3d3807);if(_0x3d3807===_0x3422f6(0xdc))return scanHookFunctions(_0x4f7bdd);const [_0x1d69fd,_0x2c345a,_0x30852e]=await Promise[_0x3422f6(0xe5)]([scanFlatFunctions(_0x4f7bdd,'COMMON'),scanFlatFunctions(_0x4f7bdd,'ENDPOINT'),scanHookFunctions(_0x4f7bdd)]);return[..._0x1d69fd,..._0x2c345a,..._0x30852e];}export function resolveLocalFilePathFromLockKey(_0xa4fa48,_0x56e1a5){const _0x563a76=a143_0x7be83c;return join(_0xa4fa48['scriptsRootDir'],..._0x56e1a5['split']('/'))+_0x563a76(0xdb);}export function createHookLocationMap(_0x46b05d){const _0x7edb7b=a143_0x7be83c,_0x39a71e=new Map();for(const _0x2e70f3 of _0x46b05d){_0x2e70f3[_0x7edb7b(0xf1)]&&_0x39a71e[_0x7edb7b(0xe7)](_0x2e70f3[_0x7edb7b(0xf1)],{'datasetCode':_0x2e70f3[_0x7edb7b(0xea)],'operationType':snakeToCamel(_0x2e70f3[_0x7edb7b(0xf0)]),'functionNode':_0x7edb7b(0xe1)}),_0x2e70f3[_0x7edb7b(0xec)]&&_0x39a71e[_0x7edb7b(0xe7)](_0x2e70f3[_0x7edb7b(0xec)],{'datasetCode':_0x2e70f3[_0x7edb7b(0xea)],'operationType':snakeToCamel(_0x2e70f3['operationType']),'functionNode':_0x7edb7b(0xf5)});}return _0x39a71e;}export function resolveRemoteScriptTarget(_0x54d5e6,_0x488f15,_0xacea5,_0x41a703,_0x443324){const _0x112067=a143_0x7be83c,_0x1874cd=normalizeBffType(_0x488f15[_0x112067(0xf4)]);if(!_0x1874cd||!_0x488f15[_0x112067(0xd6)])return null;if(_0x1874cd===_0x112067(0xdc)){const _0x1c4d52=(_0x488f15['id']?_0xacea5['get'](_0x488f15['id']):undefined)??findHookLocationByRemoteId(_0x41a703,_0x488f15['id']);if(!_0x1c4d52)return null;const _0x493ba6=_0x1c4d52[_0x112067(0xd3)]||_0x443324['get'](_0x1c4d52['datasetCode']),_0x4e4a3d=_0x493ba6??_0x1c4d52[_0x112067(0xea)],_0x5de1bc={..._0x1c4d52,'alias':_0x493ba6},_0x5f3e69=_0x112067(0xf7)+_0x4e4a3d+'/'+_0x5de1bc[_0x112067(0xf0)]+'/'+_0x5de1bc[_0x112067(0xeb)]+'/'+_0x488f15['functionName'];return{'lockKey':_0x5f3e69,'filePath':resolveLocalFilePathFromLockKey(_0x54d5e6,_0x5f3e69),'type':'HOOK','hookLocation':_0x5de1bc};}const _0x4dbbc6=_0x1874cd+'/'+_0x488f15[_0x112067(0xd6)];return{'lockKey':_0x4dbbc6,'filePath':resolveLocalFilePathFromLockKey(_0x54d5e6,_0x4dbbc6),'type':_0x1874cd};}export async function ensureParentDirectory(_0x3c172d){await mkdir(dirname(_0x3c172d),{'recursive':!![]});}export async function fileExists(_0x278d15){const _0x26ef26=a143_0x7be83c;try{return await access(_0x278d15,constants[_0x26ef26(0xf6)]),!![];}catch{return![];}}function a143_0x3e1e(_0x115e10,_0x159f4e){_0x115e10=_0x115e10-0xd0;const _0x494dc2=a143_0x494d();let _0x3e1e0e=_0x494dc2[_0x115e10];return _0x3e1e0e;}export async function directoryExists(_0x2ba5f4){const _0x2a0c89=a143_0x7be83c;try{const _0x562696=await stat(_0x2ba5f4);return _0x562696[_0x2a0c89(0xe0)]();}catch{return![];}}
1
+ const a145_0x4bd13=a145_0x4141;(function(_0x1b8a37,_0x5e72cb){const _0x5ef3fd=a145_0x4141,_0xe59c74=_0x1b8a37();while(!![]){try{const _0x1a763e=-parseInt(_0x5ef3fd(0x131))/0x1*(-parseInt(_0x5ef3fd(0x13b))/0x2)+parseInt(_0x5ef3fd(0x136))/0x3+-parseInt(_0x5ef3fd(0x11b))/0x4+parseInt(_0x5ef3fd(0x12a))/0x5+parseInt(_0x5ef3fd(0x135))/0x6*(-parseInt(_0x5ef3fd(0x120))/0x7)+parseInt(_0x5ef3fd(0x121))/0x8*(parseInt(_0x5ef3fd(0x132))/0x9)+-parseInt(_0x5ef3fd(0x137))/0xa;if(_0x1a763e===_0x5e72cb)break;else _0xe59c74['push'](_0xe59c74['shift']());}catch(_0x28c203){_0xe59c74['push'](_0xe59c74['shift']());}}}(a145_0x5a60,0x3f0f3));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';function a145_0x4141(_0x321efc,_0x263c49){_0x321efc=_0x321efc-0x114;const _0x5a6043=a145_0x5a60();let _0x41411e=_0x5a6043[_0x321efc];return _0x41411e;}export const SUPPORTED_BFF_TYPES=[a145_0x4bd13(0x12b),a145_0x4bd13(0x128),a145_0x4bd13(0x122)];export function normalizeBffType(_0x2a2061){const _0x442e93=a145_0x4bd13;if(!_0x2a2061)return undefined;const _0x24b4f5=_0x2a2061[_0x442e93(0x123)]()[_0x442e93(0x13a)]();return SUPPORTED_BFF_TYPES['includes'](_0x24b4f5)?_0x24b4f5:undefined;}async function scanJsFilesRecursively(_0x1c9cb5,_0x53b9d6){const _0x4887d3=a145_0x4bd13,_0x5b259a=[];try{const _0x102012=await readdir(_0x1c9cb5,{'withFileTypes':!![]});for(const _0x36e2fa of _0x102012){const _0xcd1f31=join(_0x1c9cb5,_0x36e2fa[_0x4887d3(0x133)]);if(_0x36e2fa[_0x4887d3(0x11e)]())_0x5b259a[_0x4887d3(0x134)](...await scanJsFilesRecursively(_0xcd1f31,_0x53b9d6+'/'+_0x36e2fa[_0x4887d3(0x133)]));else _0x36e2fa[_0x4887d3(0x12e)]()&&_0x36e2fa[_0x4887d3(0x133)][_0x4887d3(0x12d)](_0x4887d3(0x116))&&_0x5b259a[_0x4887d3(0x134)]({'lockKey':_0x53b9d6+'/'+_0x36e2fa[_0x4887d3(0x133)][_0x4887d3(0x130)](/\.js$/,''),'filePath':_0xcd1f31});}}catch(_0x35d5a3){if(_0x35d5a3[_0x4887d3(0x12f)]!==_0x4887d3(0x129))throw _0x35d5a3;}return _0x5b259a;}async function scanFlatFunctions(_0x436fdb,_0x285773){const _0x448954=a145_0x4bd13,_0x4bd141=join(_0x436fdb[_0x448954(0x127)],_0x285773),_0x3085c3=await scanJsFilesRecursively(_0x4bd141,_0x285773);return _0x3085c3[_0x448954(0x115)](({lockKey:_0x2d0a20,filePath:_0x59b60e})=>({'type':_0x285773,'name':_0x2d0a20[_0x448954(0x138)]('/')['at'](-0x1)??'','filePath':_0x59b60e,'lockKey':_0x2d0a20}));}async function scanHookFunctions(_0x397e82){const _0x8e08c6=a145_0x4bd13,_0x4fd26=join(_0x397e82[_0x8e08c6(0x127)],_0x8e08c6(0x122)),_0x31358c=[];try{const _0x2801d4=await readdir(_0x4fd26,{'withFileTypes':!![]});for(const _0x52cb04 of _0x2801d4){if(!_0x52cb04[_0x8e08c6(0x11e)]())continue;const _0x2df2bb=_0x52cb04[_0x8e08c6(0x133)],_0x28ad06=join(_0x4fd26,_0x2df2bb),_0x2ac8d8=await readdir(_0x28ad06,{'withFileTypes':!![]});for(const _0x589151 of _0x2ac8d8){if(!_0x589151[_0x8e08c6(0x11e)]())continue;const _0x49e894=_0x589151[_0x8e08c6(0x133)],_0x1590d2=join(_0x28ad06,_0x49e894),_0x28f8b8=await readdir(_0x1590d2,{'withFileTypes':!![]});for(const _0x4ecabc of _0x28f8b8){if(!_0x4ecabc['isDirectory']())continue;const _0x5ca417=_0x4ecabc[_0x8e08c6(0x133)],_0x3cde88=join(_0x1590d2,_0x5ca417),_0x255a5f=await readdir(_0x3cde88,{'withFileTypes':!![]});for(const _0x20a0a0 of _0x255a5f){if(!_0x20a0a0['isFile']()||!_0x20a0a0[_0x8e08c6(0x133)]['endsWith']('.js'))continue;const _0x153b6d=_0x20a0a0[_0x8e08c6(0x133)][_0x8e08c6(0x130)](/\.js$/,'');_0x31358c[_0x8e08c6(0x134)]({'type':'HOOK','name':_0x153b6d,'filePath':join(_0x3cde88,_0x20a0a0['name']),'lockKey':_0x8e08c6(0x114)+_0x2df2bb+'/'+_0x49e894+'/'+_0x5ca417+'/'+_0x153b6d,'alias':_0x2df2bb,'operationType':_0x49e894,'functionNode':_0x5ca417});}}}}}catch(_0x569a4e){if(_0x569a4e[_0x8e08c6(0x12f)]!==_0x8e08c6(0x129))throw _0x569a4e;}return _0x31358c;}export async function scanLocalBffFunctions(_0x5abe8d,_0x52ea34){const _0x14fee3=a145_0x4bd13;if(_0x52ea34===_0x14fee3(0x12b)||_0x52ea34===_0x14fee3(0x128))return scanFlatFunctions(_0x5abe8d,_0x52ea34);if(_0x52ea34===_0x14fee3(0x122))return scanHookFunctions(_0x5abe8d);const [_0x11d903,_0x40614e,_0x2235da]=await Promise['all']([scanFlatFunctions(_0x5abe8d,_0x14fee3(0x12b)),scanFlatFunctions(_0x5abe8d,_0x14fee3(0x128)),scanHookFunctions(_0x5abe8d)]);return[..._0x11d903,..._0x40614e,..._0x2235da];}export function resolveLocalFilePathFromLockKey(_0x5564e6,_0x49e6a2){const _0xc030a7=a145_0x4bd13;return join(_0x5564e6['scriptsRootDir'],..._0x49e6a2['split']('/'))+_0xc030a7(0x116);}export function createHookLocationMap(_0x551283){const _0x33b1ca=a145_0x4bd13,_0x3ad76d=new Map();for(const _0x50eccc of _0x551283){_0x50eccc[_0x33b1ca(0x139)]&&_0x3ad76d[_0x33b1ca(0x117)](_0x50eccc[_0x33b1ca(0x139)],{'datasetCode':_0x50eccc['datasetCode'],'operationType':snakeToCamel(_0x50eccc['operationType']),'functionNode':_0x33b1ca(0x11d)}),_0x50eccc['afterScriptId']&&_0x3ad76d[_0x33b1ca(0x117)](_0x50eccc[_0x33b1ca(0x125)],{'datasetCode':_0x50eccc[_0x33b1ca(0x11c)],'operationType':snakeToCamel(_0x50eccc['operationType']),'functionNode':_0x33b1ca(0x119)});}return _0x3ad76d;}export function resolveRemoteScriptTarget(_0x4051f5,_0x1f208f,_0x5dd08c,_0x511359,_0xd702ac){const _0x4a0702=a145_0x4bd13,_0x19bdd2=normalizeBffType(_0x1f208f['scriptType']);if(!_0x19bdd2||!_0x1f208f[_0x4a0702(0x124)])return null;if(_0x19bdd2==='HOOK'){const _0x3ecc3c=(_0x1f208f['id']?_0x5dd08c[_0x4a0702(0x11f)](_0x1f208f['id']):undefined)??findHookLocationByRemoteId(_0x511359,_0x1f208f['id']);if(!_0x3ecc3c)return null;const _0x44a694=_0x3ecc3c[_0x4a0702(0x118)]||_0xd702ac[_0x4a0702(0x11f)](_0x3ecc3c['datasetCode']),_0xa313a6=_0x44a694??_0x3ecc3c[_0x4a0702(0x11c)],_0x230df8={..._0x3ecc3c,'alias':_0x44a694},_0x2c4682='HOOK/'+_0xa313a6+'/'+_0x230df8[_0x4a0702(0x11a)]+'/'+_0x230df8[_0x4a0702(0x12c)]+'/'+_0x1f208f[_0x4a0702(0x124)];return{'lockKey':_0x2c4682,'filePath':resolveLocalFilePathFromLockKey(_0x4051f5,_0x2c4682),'type':'HOOK','hookLocation':_0x230df8};}const _0x3dce67=_0x19bdd2+'/'+_0x1f208f[_0x4a0702(0x124)];return{'lockKey':_0x3dce67,'filePath':resolveLocalFilePathFromLockKey(_0x4051f5,_0x3dce67),'type':_0x19bdd2};}function a145_0x5a60(){const _0xf40600=['F_OK','scriptsRootDir','ENDPOINT','ENOENT','2320380HUWEnm','COMMON','functionNode','endsWith','isFile','code','replace','41SyzeXQ','2053251ZCoDBm','name','push','127188fhasKP','1026264JGUMAH','4505840udirbU','split','beforeScriptId','toUpperCase','9930FafAtD','HOOK/','map','.js','set','alias','after','operationType','1417480mXXLXS','datasetCode','before','isDirectory','get','133CrHawc','16GDKITt','HOOK','trim','functionName','afterScriptId'];a145_0x5a60=function(){return _0xf40600;};return a145_0x5a60();}export async function ensureParentDirectory(_0x142fc2){await mkdir(dirname(_0x142fc2),{'recursive':!![]});}export async function fileExists(_0x22654f){const _0xc86643=a145_0x4bd13;try{return await access(_0x22654f,constants[_0xc86643(0x126)]),!![];}catch{return![];}}export async function directoryExists(_0xb7d08c){const _0x3f48a9=a145_0x4bd13;try{const _0x26deb7=await stat(_0xb7d08c);return _0x26deb7[_0x3f48a9(0x11e)]();}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x2bfe88,_0x20f43d){const _0x45b137=a144_0x384d,_0x911b0c=_0x2bfe88();while(!![]){try{const _0xb92bf5=-parseInt(_0x45b137(0xe5))/0x1+parseInt(_0x45b137(0xeb))/0x2*(parseInt(_0x45b137(0xe8))/0x3)+-parseInt(_0x45b137(0xe7))/0x4*(-parseInt(_0x45b137(0xe9))/0x5)+-parseInt(_0x45b137(0xe6))/0x6+parseInt(_0x45b137(0xec))/0x7+-parseInt(_0x45b137(0xee))/0x8*(-parseInt(_0x45b137(0xef))/0x9)+-parseInt(_0x45b137(0xea))/0xa*(parseInt(_0x45b137(0xf0))/0xb);if(_0xb92bf5===_0x20f43d)break;else _0x911b0c['push'](_0x911b0c['shift']());}catch(_0x209e2b){_0x911b0c['push'](_0x911b0c['shift']());}}}(a144_0x4795,0x3ca79));import{readFile}from'node:fs/promises';import a144_0x2d95f0 from'node:crypto';export function computeContentHash(_0x586cad){const _0x24f75e=a144_0x384d;return a144_0x2d95f0['createHash']('md5')[_0x24f75e(0xed)](_0x586cad)[_0x24f75e(0xe2)](_0x24f75e(0xe3));}function a144_0x384d(_0x8ff149,_0x5c3bf1){_0x8ff149=_0x8ff149-0xe2;const _0x4795f4=a144_0x4795();let _0x384d2f=_0x4795f4[_0x8ff149];return _0x384d2f;}export async function computeFileHash(_0x169c08){const _0x4dc089=a144_0x384d,_0x33be25=await readFile(_0x169c08,_0x4dc089(0xe4));return computeContentHash(_0x33be25);}function a144_0x4795(){const _0x23c2b0=['hex','utf8','189821kkvHXf','1953072hzksaD','124764hSgVXr','5709QuRrEj','30frwPjn','50jVPeAV','502IKTeTT','1472072FFPdTH','update','392024eJONDo','72hJqGDj','1107359nOUchP','digest'];a144_0x4795=function(){return _0x23c2b0;};return a144_0x4795();}
1
+ (function(_0x71b562,_0x5cf3cf){const _0x58b497=a146_0x2472,_0x478584=_0x71b562();while(!![]){try{const _0x446d05=parseInt(_0x58b497(0x15d))/0x1*(-parseInt(_0x58b497(0x152))/0x2)+-parseInt(_0x58b497(0x15b))/0x3*(-parseInt(_0x58b497(0x15f))/0x4)+parseInt(_0x58b497(0x15e))/0x5*(-parseInt(_0x58b497(0x15c))/0x6)+-parseInt(_0x58b497(0x15a))/0x7+-parseInt(_0x58b497(0x154))/0x8*(-parseInt(_0x58b497(0x157))/0x9)+-parseInt(_0x58b497(0x159))/0xa*(-parseInt(_0x58b497(0x158))/0xb)+parseInt(_0x58b497(0x153))/0xc;if(_0x446d05===_0x5cf3cf)break;else _0x478584['push'](_0x478584['shift']());}catch(_0x222092){_0x478584['push'](_0x478584['shift']());}}}(a146_0x28eb,0xe4949));import{readFile}from'node:fs/promises';function a146_0x28eb(){const _0x1fffae=['createHash','2403297LfLGQZ','2805MHAeEv','30050WgbUMD','7114051zPJUpQ','886317GIQKEJ','13326Jjmdwp','417976ikqJkZ','2685OdndeC','4UcVHsK','digest','utf8','md5','8GfkGva','35451912iqCZuH','24BKStXX','hex'];a146_0x28eb=function(){return _0x1fffae;};return a146_0x28eb();}import a146_0xe8f022 from'node:crypto';function a146_0x2472(_0x2e763e,_0x1a5dee){_0x2e763e=_0x2e763e-0x14f;const _0x28eb68=a146_0x28eb();let _0x247205=_0x28eb68[_0x2e763e];return _0x247205;}export function computeContentHash(_0x41bb1e){const _0x52227a=a146_0x2472;return a146_0xe8f022[_0x52227a(0x156)](_0x52227a(0x151))['update'](_0x41bb1e)[_0x52227a(0x14f)](_0x52227a(0x155));}export async function computeFileHash(_0x412030){const _0x403725=a146_0x2472,_0x4dd2b0=await readFile(_0x412030,_0x403725(0x150));return computeContentHash(_0x4dd2b0);}
@@ -1 +1 @@
1
- function a145_0x5b80(){const _0x530a2d=['7XvOAHa','\x22\x20vs\x20lock\x20\x22','\x22.\x20','8EQVBHP','object','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','apps','scriptsRoot','663460Mfcsdd','1476603VuolPR','Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20','lastSync','parse','954265xpXEoD','functions','utf8',':\x20scriptsRoot\x20mismatch\x20—\x20','810102dlwDHn','820348dlhnhD','12071727pSYgLp','330678NNhPup'];a145_0x5b80=function(){return _0x530a2d;};return a145_0x5b80();}(function(_0x2854e1,_0x5aae16){const _0x4aeaa0=a145_0x29f5,_0x4472e0=_0x2854e1();while(!![]){try{const _0x252f36=parseInt(_0x4aeaa0(0x15a))/0x1+parseInt(_0x4aeaa0(0x15e))/0x2+parseInt(_0x4aeaa0(0x156))/0x3+-parseInt(_0x4aeaa0(0x15f))/0x4+parseInt(_0x4aeaa0(0x155))/0x5+parseInt(_0x4aeaa0(0x161))/0x6*(parseInt(_0x4aeaa0(0x162))/0x7)+-parseInt(_0x4aeaa0(0x165))/0x8*(parseInt(_0x4aeaa0(0x160))/0x9);if(_0x252f36===_0x5aae16)break;else _0x4472e0['push'](_0x4472e0['shift']());}catch(_0x383bb8){_0x4472e0['push'](_0x4472e0['shift']());}}}(a145_0x5b80,0x78584));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x23dc5d,_0x599fb1,_0x3f4c01,_0xe21706){const _0x1ad107=a145_0x29f5,_0x3e7710={'apps':_0x23dc5d[_0x1ad107(0x153)]&&typeof _0x23dc5d[_0x1ad107(0x153)]===_0x1ad107(0x166)?_0x23dc5d[_0x1ad107(0x153)]:{}};let _0x5a0ecc=_0x3e7710[_0x1ad107(0x153)][_0x599fb1];if(!_0x5a0ecc)return _0x5a0ecc={'scriptsRoot':_0x3f4c01,'lastSync':'','functions':{}},_0x3e7710[_0x1ad107(0x153)][_0x599fb1]=_0x5a0ecc,{'lockData':_0x3e7710,'appLock':_0x5a0ecc};if(!_0x5a0ecc['scriptsRoot'])_0x5a0ecc[_0x1ad107(0x154)]=_0x3f4c01;else{if(_0x5a0ecc[_0x1ad107(0x154)]!==_0x3f4c01)throw new Error(_0xe21706+_0x1ad107(0x15d)+('current\x20\x22'+_0x3f4c01+_0x1ad107(0x163)+_0x5a0ecc['scriptsRoot']+_0x1ad107(0x164))+_0x1ad107(0x152));}return!_0x5a0ecc[_0x1ad107(0x15b)]&&(_0x5a0ecc[_0x1ad107(0x15b)]={}),!_0x5a0ecc['lastSync']&&(_0x5a0ecc[_0x1ad107(0x158)]=''),{'lockData':_0x3e7710,'appLock':_0x5a0ecc};}export async function readBffLockFile(_0x57aa09){const _0x5c2705=a145_0x29f5;try{const _0x1b02af=await readFile(_0x57aa09,_0x5c2705(0x15c)),_0x157c59=JSON[_0x5c2705(0x159)](_0x1b02af);return{'apps':_0x157c59[_0x5c2705(0x153)]&&typeof _0x157c59['apps']===_0x5c2705(0x166)?_0x157c59[_0x5c2705(0x153)]:{}};}catch(_0x2f381b){if(_0x2f381b['code']==='ENOENT')return null;throw new Error(_0x5c2705(0x157)+String(_0x2f381b));}}function a145_0x29f5(_0x169024,_0x35edb5){_0x169024=_0x169024-0x152;const _0x5b8023=a145_0x5b80();let _0x29f5c6=_0x5b8023[_0x169024];return _0x29f5c6;}export async function writeBffLockFile(_0x4baf10,_0x43cb43){const _0x185f40=a145_0x29f5;await mkdir(dirname(_0x4baf10),{'recursive':!![]}),await writeFile(_0x4baf10,JSON['stringify'](_0x43cb43,null,0x2),_0x185f40(0x15c));}
1
+ (function(_0x2e4a33,_0x1a6609){const _0x8a51b6=a147_0x1208,_0x17d05e=_0x2e4a33();while(!![]){try{const _0x16aeac=-parseInt(_0x8a51b6(0x10c))/0x1*(-parseInt(_0x8a51b6(0x103))/0x2)+-parseInt(_0x8a51b6(0xfe))/0x3+parseInt(_0x8a51b6(0x104))/0x4*(parseInt(_0x8a51b6(0x108))/0x5)+-parseInt(_0x8a51b6(0xff))/0x6+parseInt(_0x8a51b6(0x10a))/0x7*(-parseInt(_0x8a51b6(0x10d))/0x8)+-parseInt(_0x8a51b6(0x10b))/0x9+parseInt(_0x8a51b6(0xfc))/0xa;if(_0x16aeac===_0x1a6609)break;else _0x17d05e['push'](_0x17d05e['shift']());}catch(_0x1ea2e2){_0x17d05e['push'](_0x17d05e['shift']());}}}(a147_0x31ac,0x3d758));function a147_0x31ac(){const _0x3d722f=['675478mMGSmz','1218680DOmEPM','functions','apps','\x22.\x20','5dVpEaB','parse','7oGEzJB','3782736odlcMO','1NvGhlF','3762672ALbpCZ','\x22\x20vs\x20lock\x20\x22','code','ENOENT','9885030DrIjEw','scriptsRoot','734412lVTyCC','1462404NBrHJU','Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20','stringify','object'];a147_0x31ac=function(){return _0x3d722f;};return a147_0x31ac();}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}function a147_0x1208(_0x4ba4fd,_0x3a3d96){_0x4ba4fd=_0x4ba4fd-0xfc;const _0x31ac8e=a147_0x31ac();let _0x1208c7=_0x31ac8e[_0x4ba4fd];return _0x1208c7;}export function ensureLockScope(_0x29348a,_0x56932a,_0x5d34a1,_0x51bfa3){const _0x374677=a147_0x1208,_0x1bfda7={'apps':_0x29348a['apps']&&typeof _0x29348a[_0x374677(0x106)]===_0x374677(0x102)?_0x29348a[_0x374677(0x106)]:{}};let _0x3af0e4=_0x1bfda7[_0x374677(0x106)][_0x56932a];if(!_0x3af0e4)return _0x3af0e4={'scriptsRoot':_0x5d34a1,'lastSync':'','functions':{}},_0x1bfda7[_0x374677(0x106)][_0x56932a]=_0x3af0e4,{'lockData':_0x1bfda7,'appLock':_0x3af0e4};if(!_0x3af0e4[_0x374677(0xfd)])_0x3af0e4['scriptsRoot']=_0x5d34a1;else{if(_0x3af0e4[_0x374677(0xfd)]!==_0x5d34a1)throw new Error(_0x51bfa3+':\x20scriptsRoot\x20mismatch\x20—\x20'+('current\x20\x22'+_0x5d34a1+_0x374677(0x10e)+_0x3af0e4[_0x374677(0xfd)]+_0x374677(0x107))+'Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x3af0e4[_0x374677(0x105)]&&(_0x3af0e4[_0x374677(0x105)]={}),!_0x3af0e4['lastSync']&&(_0x3af0e4['lastSync']=''),{'lockData':_0x1bfda7,'appLock':_0x3af0e4};}export async function readBffLockFile(_0x5c3040){const _0x5ade41=a147_0x1208;try{const _0x268d6b=await readFile(_0x5c3040,'utf8'),_0x57f179=JSON[_0x5ade41(0x109)](_0x268d6b);return{'apps':_0x57f179[_0x5ade41(0x106)]&&typeof _0x57f179[_0x5ade41(0x106)]===_0x5ade41(0x102)?_0x57f179[_0x5ade41(0x106)]:{}};}catch(_0x10c504){if(_0x10c504[_0x5ade41(0x10f)]===_0x5ade41(0x110))return null;throw new Error(_0x5ade41(0x100)+String(_0x10c504));}}export async function writeBffLockFile(_0x766559,_0x2c6d3b){const _0x511648=a147_0x1208;await mkdir(dirname(_0x766559),{'recursive':!![]}),await writeFile(_0x766559,JSON[_0x511648(0x101)](_0x2c6d3b,null,0x2),'utf8');}
@@ -1 +1 @@
1
- (function(_0x404bb3,_0x313d89){const _0x169d1f=a147_0x41fa,_0x5b4478=_0x404bb3();while(!![]){try{const _0x43802e=-parseInt(_0x169d1f(0x141))/0x1+parseInt(_0x169d1f(0x151))/0x2+-parseInt(_0x169d1f(0x14d))/0x3*(-parseInt(_0x169d1f(0x154))/0x4)+parseInt(_0x169d1f(0x149))/0x5+parseInt(_0x169d1f(0x14b))/0x6+-parseInt(_0x169d1f(0x14c))/0x7+-parseInt(_0x169d1f(0x146))/0x8;if(_0x43802e===_0x313d89)break;else _0x5b4478['push'](_0x5b4478['shift']());}catch(_0x87c1b6){_0x5b4478['push'](_0x5b4478['shift']());}}}(a147_0x29c0,0xd7992));export function snakeToCamel(_0x48d792){const _0x2d4d05=a147_0x41fa;return _0x48d792[_0x2d4d05(0x144)]()[_0x2d4d05(0x145)](/_([a-z])/g,(_0x4721fa,_0x336e89)=>_0x336e89[_0x2d4d05(0x150)]());}export function findHookLocationByRemoteId(_0x13db6b,_0x2708df){const _0x3f98a5=a147_0x41fa;if(!_0x2708df)return undefined;for(const _0x306389 of Object[_0x3f98a5(0x14e)](_0x13db6b)){if(_0x306389[_0x3f98a5(0x14f)]===_0x2708df&&_0x306389[_0x3f98a5(0x147)]&&_0x306389[_0x3f98a5(0x152)]&&_0x306389[_0x3f98a5(0x148)])return{'datasetCode':_0x306389[_0x3f98a5(0x147)],'operationType':_0x306389[_0x3f98a5(0x152)],'functionNode':_0x306389[_0x3f98a5(0x148)]};}return undefined;}function a147_0x29c0(){const _0x47b60c=['match','4dYvRMJ','trim','535408OljvDO','test','after','toLowerCase','replace','18660512GdfJyV','datasetCode','functionNode','4622270KRMalA','before','9500412LdzRXD','2265340CJYJZK','1415235jwGmYz','values','remoteId','toUpperCase','2190162gYUQoW','operationType'];a147_0x29c0=function(){return _0x47b60c;};return a147_0x29c0();}export function extractScriptDescription(_0x23dd45){const _0x201c66=a147_0x41fa,_0x1196a4=_0x23dd45[_0x201c66(0x153)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x1196a4?.[0x1]?.['trim']()||undefined;}function a147_0x41fa(_0x3d1952,_0x267594){_0x3d1952=_0x3d1952-0x141;const _0x29c023=a147_0x29c0();let _0x41fa5d=_0x29c023[_0x3d1952];return _0x41fa5d;}export function isValidBffFunctionName(_0x35a083){const _0x94a6da=a147_0x41fa;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x94a6da(0x142)](_0x35a083);}export function normalizeHookFunctionNode(_0x50b59e){const _0x555502=a147_0x41fa;if(!_0x50b59e)return undefined;const _0x2c759b=_0x50b59e[_0x555502(0x155)]()[_0x555502(0x144)]();if(_0x2c759b===_0x555502(0x14a)||_0x2c759b===_0x555502(0x143))return _0x2c759b;return undefined;}
1
+ function a149_0x3c42(_0xd328f4,_0x3a8f6d){_0xd328f4=_0xd328f4-0x136;const _0x2eceed=a149_0x2ece();let _0x3c420a=_0x2eceed[_0xd328f4];return _0x3c420a;}(function(_0x18ef32,_0x35a9d6){const _0x48c159=a149_0x3c42,_0xfa96c7=_0x18ef32();while(!![]){try{const _0x4877b5=-parseInt(_0x48c159(0x145))/0x1+parseInt(_0x48c159(0x13c))/0x2*(-parseInt(_0x48c159(0x13e))/0x3)+-parseInt(_0x48c159(0x141))/0x4+parseInt(_0x48c159(0x13f))/0x5+parseInt(_0x48c159(0x13d))/0x6+-parseInt(_0x48c159(0x146))/0x7*(parseInt(_0x48c159(0x13a))/0x8)+parseInt(_0x48c159(0x137))/0x9;if(_0x4877b5===_0x35a9d6)break;else _0xfa96c7['push'](_0xfa96c7['shift']());}catch(_0x45f555){_0xfa96c7['push'](_0xfa96c7['shift']());}}}(a149_0x2ece,0xefa29));function a149_0x2ece(){const _0x3d3da8=['8192712fFAHxb','4308384dSnjZj','2998930NCqMKD','replace','1470476UMQpsH','after','values','toLowerCase','297815CLcJBv','7dxQAVA','operationType','trim','27213192bZAHCs','toUpperCase','datasetCode','15246552EOnhiC','functionNode','2EblXvj'];a149_0x2ece=function(){return _0x3d3da8;};return a149_0x2ece();}export function snakeToCamel(_0x19a657){const _0x208e10=a149_0x3c42;return _0x19a657[_0x208e10(0x144)]()[_0x208e10(0x140)](/_([a-z])/g,(_0x450540,_0x15dbdc)=>_0x15dbdc[_0x208e10(0x138)]());}export function findHookLocationByRemoteId(_0x2d60cd,_0x4260db){const _0xb71dc6=a149_0x3c42;if(!_0x4260db)return undefined;for(const _0x3c0020 of Object[_0xb71dc6(0x143)](_0x2d60cd)){if(_0x3c0020['remoteId']===_0x4260db&&_0x3c0020[_0xb71dc6(0x139)]&&_0x3c0020[_0xb71dc6(0x147)]&&_0x3c0020['functionNode'])return{'datasetCode':_0x3c0020[_0xb71dc6(0x139)],'operationType':_0x3c0020[_0xb71dc6(0x147)],'functionNode':_0x3c0020[_0xb71dc6(0x13b)]};}return undefined;}export function extractScriptDescription(_0x4d7cc2){const _0x5e14d1=a149_0x3c42,_0x3dd546=_0x4d7cc2['match'](/\[\s*脚本描述\s*]\s*(.+)/);return _0x3dd546?.[0x1]?.[_0x5e14d1(0x136)]()||undefined;}export function isValidBffFunctionName(_0x37eaa6){return/^[A-Za-z_$][A-Za-z0-9_$]*$/['test'](_0x37eaa6);}export function normalizeHookFunctionNode(_0x4da947){const _0x9ad92f=a149_0x3c42;if(!_0x4da947)return undefined;const _0x583d20=_0x4da947[_0x9ad92f(0x136)]()[_0x9ad92f(0x144)]();if(_0x583d20==='before'||_0x583d20===_0x9ad92f(0x142))return _0x583d20;return undefined;}
@@ -1 +1 @@
1
- (function(_0x3ba020,_0x573fa7){const _0x33fc8a=a148_0x44c0,_0x2e3c22=_0x3ba020();while(!![]){try{const _0x416e38=-parseInt(_0x33fc8a(0x109))/0x1*(parseInt(_0x33fc8a(0xf3))/0x2)+parseInt(_0x33fc8a(0x10e))/0x3+-parseInt(_0x33fc8a(0x10c))/0x4+parseInt(_0x33fc8a(0xff))/0x5+-parseInt(_0x33fc8a(0xfd))/0x6+-parseInt(_0x33fc8a(0x10b))/0x7*(parseInt(_0x33fc8a(0xfe))/0x8)+parseInt(_0x33fc8a(0xf5))/0x9;if(_0x416e38===_0x573fa7)break;else _0x2e3c22['push'](_0x2e3c22['shift']());}catch(_0x1efdc0){_0x2e3c22['push'](_0x2e3c22['shift']());}}}(a148_0x848c,0x6ef95));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x468f15){const _0x20666d=a148_0x44c0;if(cache['has'](_0x468f15))return cache['get'](_0x468f15);const _0x3366e5=await listDatasets(_0x468f15),_0x454429=new Map();for(const _0x6c992a of _0x3366e5){const _0x2a4b12=_0x6c992a[_0x20666d(0x105)];_0x2a4b12?.[_0x20666d(0x103)]!=null&&_0x454429[_0x20666d(0xf8)](_0x2a4b12['dbId'],_0x2a4b12[_0x20666d(0xf7)]??_0x20666d(0xf4)+_0x2a4b12[_0x20666d(0x103)]);}const _0x1083c9=[..._0x454429[_0x20666d(0xf1)]()][_0x20666d(0x107)](([_0x587617,_0x556dc4])=>({'dbId':_0x587617,'dbName':_0x556dc4}));return cache['set'](_0x468f15,_0x1083c9),_0x1083c9;}function a148_0x848c(){const _0x37aadc=['join','isNaN','dbId','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','dbtableConfig','\x22.\x20Available:\x20','map','find','9foqIFh','No\x20database\x20matching\x20\x22','7CXDDVE','688460OtZHxD','filter','1077063vucBZe','\x22\x20matches\x20multiple\x20databases:\x20','entries','\x22\x20under\x20app\x20\x22','8018AjWnMw','db-','6188661DsALps','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','dbName','set','toLowerCase','includes','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','length','707898tRMkXs','5590776nFcdhN','2164625mppNKm','.\x20Be\x20more\x20specific.'];a148_0x848c=function(){return _0x37aadc;};return a148_0x848c();}export async function resolveDb(_0x47a41b,_0x5c9eec){const _0x32e753=a148_0x44c0,_0x1e55be=await listDatabases(_0x47a41b);if(_0x1e55be[_0x32e753(0xfc)]===0x0)return{'resolved':[],'error':'No\x20linked\x20databases\x20found\x20under\x20app\x20\x22'+_0x47a41b+_0x32e753(0x104)};if(!_0x5c9eec)return{'resolved':_0x1e55be};const _0x38b00e=Number(_0x5c9eec);if(!Number[_0x32e753(0x102)](_0x38b00e)){const _0x258d83=_0x1e55be[_0x32e753(0x108)](_0x32e85b=>_0x32e85b['dbId']===_0x38b00e);if(_0x258d83)return{'resolved':[_0x258d83]};}const _0x400601=_0x5c9eec[_0x32e753(0xf9)](),_0x4093c7=_0x1e55be[_0x32e753(0x10d)](_0x217872=>_0x217872[_0x32e753(0xf7)][_0x32e753(0xf9)]()[_0x32e753(0xfa)](_0x400601));if(_0x4093c7['length']>0x0)return{'resolved':_0x4093c7};const _0x29b46f=_0x1e55be[_0x32e753(0x107)](_0x48b263=>_0x48b263[_0x32e753(0xf7)]+'\x20('+_0x48b263[_0x32e753(0x103)]+')')[_0x32e753(0x101)](',\x20');return{'resolved':[],'error':_0x32e753(0x10a)+_0x5c9eec+_0x32e753(0xf2)+_0x47a41b+_0x32e753(0x106)+_0x29b46f+_0x32e753(0xf6)};}export async function resolveOneDb(_0x2f97f2,_0x384a52){const _0x1ac431=a148_0x44c0,{resolved:_0x110238,error:_0x258765}=await resolveDb(_0x2f97f2,_0x384a52);if(_0x258765)return{'db':null,'error':_0x258765};if(_0x110238[_0x1ac431(0xfc)]===0x1)return{'db':_0x110238[0x0]};if(!_0x384a52){const _0x594535=_0x110238[_0x1ac431(0x107)](_0x27a8c5=>_0x27a8c5[_0x1ac431(0xf7)]+'\x20('+_0x27a8c5[_0x1ac431(0x103)]+')')[_0x1ac431(0x101)](',\x20');return{'db':null,'error':_0x1ac431(0xfb)+_0x594535};}const _0x3b19a7=_0x110238[_0x1ac431(0x107)](_0x47f659=>_0x47f659[_0x1ac431(0xf7)]+'\x20('+_0x47f659[_0x1ac431(0x103)]+')')['join'](',\x20');return{'db':null,'error':'\x22'+_0x384a52+_0x1ac431(0xf0)+_0x3b19a7+_0x1ac431(0x100)};}function a148_0x44c0(_0x32909d,_0x5ed610){_0x32909d=_0x32909d-0xf0;const _0x848c7e=a148_0x848c();let _0x44c0e0=_0x848c7e[_0x32909d];return _0x44c0e0;}export async function getDbName(_0x878c5f,_0x45e87c){const _0x3f3cc5=a148_0x44c0,_0x38f2a6=await listDatabases(_0x878c5f);return _0x38f2a6[_0x3f3cc5(0x108)](_0x3d5e89=>_0x3d5e89[_0x3f3cc5(0x103)]===_0x45e87c)?.[_0x3f3cc5(0xf7)];}
1
+ (function(_0x49be8c,_0x32e840){const _0x592d79=a150_0x17a0,_0x22faab=_0x49be8c();while(!![]){try{const _0x1ab318=parseInt(_0x592d79(0x18e))/0x1*(parseInt(_0x592d79(0x198))/0x2)+-parseInt(_0x592d79(0x192))/0x3*(-parseInt(_0x592d79(0x18d))/0x4)+-parseInt(_0x592d79(0x19d))/0x5*(parseInt(_0x592d79(0x19c))/0x6)+-parseInt(_0x592d79(0x195))/0x7+parseInt(_0x592d79(0x191))/0x8*(parseInt(_0x592d79(0x185))/0x9)+parseInt(_0x592d79(0x186))/0xa+-parseInt(_0x592d79(0x197))/0xb;if(_0x1ab318===_0x32e840)break;else _0x22faab['push'](_0x22faab['shift']());}catch(_0x3ff5e7){_0x22faab['push'](_0x22faab['shift']());}}}(a150_0x362f,0x945da));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0xa2fa22){const _0x1399d6=a150_0x17a0;if(cache[_0x1399d6(0x18f)](_0xa2fa22))return cache['get'](_0xa2fa22);const _0x3c3a8e=await listDatasets(_0xa2fa22),_0x55bdd2=new Map();for(const _0xc309fa of _0x3c3a8e){const _0x2e1644=_0xc309fa[_0x1399d6(0x19e)];_0x2e1644?.['dbId']!=null&&_0x55bdd2[_0x1399d6(0x19b)](_0x2e1644['dbId'],_0x2e1644[_0x1399d6(0x18a)]??_0x1399d6(0x194)+_0x2e1644['dbId']);}const _0x12bf90=[..._0x55bdd2[_0x1399d6(0x189)]()][_0x1399d6(0x187)](([_0x224f3e,_0x1b8a2b])=>({'dbId':_0x224f3e,'dbName':_0x1b8a2b}));return cache[_0x1399d6(0x19b)](_0xa2fa22,_0x12bf90),_0x12bf90;}export async function resolveDb(_0x765ad9,_0x90504b){const _0x4a378b=a150_0x17a0,_0x4016d5=await listDatabases(_0x765ad9);if(_0x4016d5['length']===0x0)return{'resolved':[],'error':'No\x20linked\x20databases\x20found\x20under\x20app\x20\x22'+_0x765ad9+'\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.'};if(!_0x90504b)return{'resolved':_0x4016d5};const _0x1f783e=Number(_0x90504b);if(!Number[_0x4a378b(0x188)](_0x1f783e)){const _0xfb206e=_0x4016d5['find'](_0x12597b=>_0x12597b['dbId']===_0x1f783e);if(_0xfb206e)return{'resolved':[_0xfb206e]};}const _0x40a88f=_0x90504b['toLowerCase'](),_0x460ee6=_0x4016d5[_0x4a378b(0x19a)](_0x128970=>_0x128970[_0x4a378b(0x18a)][_0x4a378b(0x1a0)]()['includes'](_0x40a88f));if(_0x460ee6[_0x4a378b(0x18c)]>0x0)return{'resolved':_0x460ee6};const _0x1c9232=_0x4016d5[_0x4a378b(0x187)](_0xe873e3=>_0xe873e3[_0x4a378b(0x18a)]+'\x20('+_0xe873e3[_0x4a378b(0x1a1)]+')')['join'](',\x20');return{'resolved':[],'error':'No\x20database\x20matching\x20\x22'+_0x90504b+_0x4a378b(0x1a2)+_0x765ad9+_0x4a378b(0x193)+_0x1c9232+_0x4a378b(0x18b)};}function a150_0x362f(){const _0x16fc0b=['Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','toLowerCase','dbId','\x22\x20under\x20app\x20\x22','2250549GXhFeA','10638180asUDpz','map','isNaN','entries','dbName','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','length','56jpCHni','1LTSlCO','has','join','8zupNbr','36852mnfimb','\x22.\x20Available:\x20','db-','2122806mjwKck','\x22\x20matches\x20multiple\x20databases:\x20','11451462XaERdF','1383240qEMIbz','find','filter','set','58818zCUsQA','115cSVhuR','dbtableConfig'];a150_0x362f=function(){return _0x16fc0b;};return a150_0x362f();}export async function resolveOneDb(_0x30d08f,_0x4f7dea){const _0x300835=a150_0x17a0,{resolved:_0x15edff,error:_0x44644a}=await resolveDb(_0x30d08f,_0x4f7dea);if(_0x44644a)return{'db':null,'error':_0x44644a};if(_0x15edff[_0x300835(0x18c)]===0x1)return{'db':_0x15edff[0x0]};if(!_0x4f7dea){const _0x26c99d=_0x15edff[_0x300835(0x187)](_0x52c2e8=>_0x52c2e8[_0x300835(0x18a)]+'\x20('+_0x52c2e8[_0x300835(0x1a1)]+')')[_0x300835(0x190)](',\x20');return{'db':null,'error':_0x300835(0x19f)+_0x26c99d};}const _0xbeacca=_0x15edff[_0x300835(0x187)](_0x50ad07=>_0x50ad07['dbName']+'\x20('+_0x50ad07['dbId']+')')[_0x300835(0x190)](',\x20');return{'db':null,'error':'\x22'+_0x4f7dea+_0x300835(0x196)+_0xbeacca+'.\x20Be\x20more\x20specific.'};}function a150_0x17a0(_0x12a935,_0x148266){_0x12a935=_0x12a935-0x185;const _0x362f97=a150_0x362f();let _0x17a0bb=_0x362f97[_0x12a935];return _0x17a0bb;}export async function getDbName(_0x2ca3ea,_0x34bc06){const _0x2d9242=a150_0x17a0,_0x38e821=await listDatabases(_0x2ca3ea);return _0x38e821[_0x2d9242(0x199)](_0x149813=>_0x149813['dbId']===_0x34bc06)?.['dbName'];}
@@ -1 +1 @@
1
- function a149_0x1df7(){const _0x232d18=['.json','159601oMVdns','8brGqux','.rabetbase','608600Ghcxwf','8620045GkeHcq','toUpperCase','2442212soVrUm','3784326ibDPRl','appPagesDir','3619980oQFrOe','page.lock.json','390620OwTuso','page','cwd','297ALjRWo'];a149_0x1df7=function(){return _0x232d18;};return a149_0x1df7();}const a149_0x1233ca=a149_0x3fe9;(function(_0x45e250,_0xc0cd8){const _0x6f2da0=a149_0x3fe9,_0x7ea8d9=_0x45e250();while(!![]){try{const _0x2f5a8d=parseInt(_0x6f2da0(0x125))/0x1+parseInt(_0x6f2da0(0x12b))/0x2+-parseInt(_0x6f2da0(0x11e))/0x3+-parseInt(_0x6f2da0(0x126))/0x4*(parseInt(_0x6f2da0(0x120))/0x5)+-parseInt(_0x6f2da0(0x12c))/0x6+-parseInt(_0x6f2da0(0x129))/0x7+parseInt(_0x6f2da0(0x128))/0x8*(parseInt(_0x6f2da0(0x123))/0x9);if(_0x2f5a8d===_0xc0cd8)break;else _0x7ea8d9['push'](_0x7ea8d9['shift']());}catch(_0x2654d2){_0x7ea8d9['push'](_0x7ea8d9['shift']());}}}(a149_0x1df7,0xa2a06));import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x2d43a9,_0x2d668c=process[a149_0x1233ca(0x122)]()){const _0x3171aa=a149_0x1233ca,_0x15f256=resolve(_0x2d668c),_0x53ba2a=join(_0x15f256,'.rabetbase',_0x3171aa(0x121));return{'projectRoot':_0x15f256,'pagesBaseDir':_0x53ba2a,'appPagesDir':join(_0x53ba2a,_0x2d43a9),'lockFilePath':join(_0x15f256,_0x3171aa(0x127),_0x3171aa(0x11f))};}export function buildPageFileName(_0x3db4a8,_0x10820b){const _0x1b8da3=a149_0x1233ca;return _0x3db4a8+'-'+String(_0x10820b)[_0x1b8da3(0x12a)]()+_0x1b8da3(0x124);}function a149_0x3fe9(_0xf9cbd6,_0x78d415){_0xf9cbd6=_0xf9cbd6-0x11e;const _0x1df7ae=a149_0x1df7();let _0x3fe903=_0x1df7ae[_0xf9cbd6];return _0x3fe903;}export function resolvePageFilePath(_0x129f61,_0x31882e,_0x213979){const _0x5192c9=a149_0x1233ca;return join(_0x129f61[_0x5192c9(0x12d)],buildPageFileName(_0x31882e,_0x213979));}export async function ensureParentDirectory(_0xebbc){await mkdir(dirname(_0xebbc),{'recursive':!![]});}export async function fileExists(_0x221d0b){try{return await access(_0x221d0b,constants['F_OK']),!![];}catch{return![];}}
1
+ const a151_0x17ede8=a151_0x52f4;(function(_0x17ba7e,_0x481109){const _0x39d7b4=a151_0x52f4,_0x300a17=_0x17ba7e();while(!![]){try{const _0x21f53c=-parseInt(_0x39d7b4(0x1b0))/0x1+parseInt(_0x39d7b4(0x1b2))/0x2+parseInt(_0x39d7b4(0x1a7))/0x3*(parseInt(_0x39d7b4(0x1ad))/0x4)+parseInt(_0x39d7b4(0x1af))/0x5+-parseInt(_0x39d7b4(0x1a8))/0x6*(-parseInt(_0x39d7b4(0x1b1))/0x7)+parseInt(_0x39d7b4(0x1b3))/0x8+parseInt(_0x39d7b4(0x1a9))/0x9*(-parseInt(_0x39d7b4(0x1aa))/0xa);if(_0x21f53c===_0x481109)break;else _0x300a17['push'](_0x300a17['shift']());}catch(_0x433ed4){_0x300a17['push'](_0x300a17['shift']());}}}(a151_0x2739,0xc18bd));import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x3de31b,_0x6a2622=process[a151_0x17ede8(0x1b4)]()){const _0x31923f=resolve(_0x6a2622),_0x518d8c=join(_0x31923f,'.rabetbase','page');return{'projectRoot':_0x31923f,'pagesBaseDir':_0x518d8c,'appPagesDir':join(_0x518d8c,_0x3de31b),'lockFilePath':join(_0x31923f,'.rabetbase','page.lock.json')};}export function buildPageFileName(_0x5020d8,_0x18bfcc){const _0x119950=a151_0x17ede8;return _0x5020d8+'-'+String(_0x18bfcc)[_0x119950(0x1ae)]()+'.json';}function a151_0x2739(){const _0x51e0ca=['46683NexFMb','1330772MzfWvv','7113976nSClwE','cwd','6lNfwoe','354WzSfES','10146555rbYlbv','10awWmua','appPagesDir','F_OK','231632woqgvh','toUpperCase','2319160kWzdYv','607592JZGdhO'];a151_0x2739=function(){return _0x51e0ca;};return a151_0x2739();}export function resolvePageFilePath(_0xf6f354,_0x35df84,_0x17345c){const _0x9de2be=a151_0x17ede8;return join(_0xf6f354[_0x9de2be(0x1ab)],buildPageFileName(_0x35df84,_0x17345c));}function a151_0x52f4(_0x9268a4,_0x58b5ff){_0x9268a4=_0x9268a4-0x1a7;const _0x273967=a151_0x2739();let _0x52f4fe=_0x273967[_0x9268a4];return _0x52f4fe;}export async function ensureParentDirectory(_0x7e9a0b){await mkdir(dirname(_0x7e9a0b),{'recursive':!![]});}export async function fileExists(_0x1de033){const _0x42a6d7=a151_0x17ede8;try{return await access(_0x1de033,constants[_0x42a6d7(0x1ac)]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x375898,_0x1b103f){const _0x104277=a150_0x96db,_0x466b17=_0x375898();while(!![]){try{const _0x53c2be=parseInt(_0x104277(0x7a))/0x1+-parseInt(_0x104277(0x79))/0x2+parseInt(_0x104277(0x7b))/0x3+parseInt(_0x104277(0x7c))/0x4+parseInt(_0x104277(0x77))/0x5+-parseInt(_0x104277(0x74))/0x6*(-parseInt(_0x104277(0x76))/0x7)+-parseInt(_0x104277(0x73))/0x8*(parseInt(_0x104277(0x72))/0x9);if(_0x53c2be===_0x1b103f)break;else _0x466b17['push'](_0x466b17['shift']());}catch(_0x40eacb){_0x466b17['push'](_0x466b17['shift']());}}}(a150_0x3a71,0x8179f));function a150_0x96db(_0x478852,_0x8ec012){_0x478852=_0x478852-0x72;const _0x3a7123=a150_0x3a71();let _0x96dbd6=_0x3a7123[_0x478852];return _0x96dbd6;}import a150_0x92cac1 from'node:crypto';function a150_0x3a71(){const _0x5808a0=['utf8','287iKYvAb','258030qeJMtq','digest','1185782ASufEs','135003TBuJit','1061859mYyCIR','3746556cOqjIX','createHash','hex','md5','289989Zkukpf','96MSURNe','4782rdjfRt'];a150_0x3a71=function(){return _0x5808a0;};return a150_0x3a71();}import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x50ba34){return JSON['stringify'](JSON['parse'](_0x50ba34),null,0x2)+'\x0a';}export function computePageContentHash(_0x3ce5cb){const _0x5b57f6=a150_0x96db;return a150_0x92cac1[_0x5b57f6(0x7d)](_0x5b57f6(0x7f))['update'](_0x3ce5cb)[_0x5b57f6(0x78)](_0x5b57f6(0x7e));}export function computeSerializedSchemaHash(_0xb50699){return computePageContentHash(serializePageSchemaForFile(_0xb50699));}export async function computePageFileHash(_0x1aa884){const _0x342469=a150_0x96db,_0x4a6c3f=await readFile(_0x1aa884,_0x342469(0x75));return computePageContentHash(_0x4a6c3f);}
1
+ (function(_0x40eeb3,_0x41ce8c){const _0x5b89c7=a152_0x4c90,_0x5c6227=_0x40eeb3();while(!![]){try{const _0x40af89=parseInt(_0x5b89c7(0x1cd))/0x1*(parseInt(_0x5b89c7(0x1cf))/0x2)+-parseInt(_0x5b89c7(0x1d1))/0x3+parseInt(_0x5b89c7(0x1cb))/0x4*(-parseInt(_0x5b89c7(0x1ca))/0x5)+parseInt(_0x5b89c7(0x1ce))/0x6+-parseInt(_0x5b89c7(0x1d5))/0x7+-parseInt(_0x5b89c7(0x1d6))/0x8+parseInt(_0x5b89c7(0x1cc))/0x9;if(_0x40af89===_0x41ce8c)break;else _0x5c6227['push'](_0x5c6227['shift']());}catch(_0x1846ba){_0x5c6227['push'](_0x5c6227['shift']());}}}(a152_0x4111,0x7b7e3));import a152_0x312e89 from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x48f92d){const _0xcee503=a152_0x4c90;return JSON['stringify'](JSON[_0xcee503(0x1c9)](_0x48f92d),null,0x2)+'\x0a';}export function computePageContentHash(_0x1111ed){const _0x37128b=a152_0x4c90;return a152_0x312e89[_0x37128b(0x1d4)](_0x37128b(0x1d3))[_0x37128b(0x1c7)](_0x1111ed)[_0x37128b(0x1d0)](_0x37128b(0x1d2));}export function computeSerializedSchemaHash(_0x18f719){return computePageContentHash(serializePageSchemaForFile(_0x18f719));}function a152_0x4c90(_0xd58887,_0x54abdd){_0xd58887=_0xd58887-0x1c7;const _0x4111c8=a152_0x4111();let _0x4c900c=_0x4111c8[_0xd58887];return _0x4c900c;}export async function computePageFileHash(_0x353388){const _0x353d9c=a152_0x4c90,_0x2234fa=await readFile(_0x353388,_0x353d9c(0x1c8));return computePageContentHash(_0x2234fa);}function a152_0x4111(){const _0x59d8bd=['1uemFcL','650640itkPdd','365098KABIbt','digest','1304505kyyjpk','hex','md5','createHash','3241798ILzsKO','5576160BRDbWk','update','utf8','parse','1375MGSzYv','6984bucsWx','20609613gTNOHK'];a152_0x4111=function(){return _0x59d8bd;};return a152_0x4111();}
@@ -1 +1 @@
1
- (function(_0x111017,_0x516d93){const _0x2135da=a151_0x2b82,_0x3eb362=_0x111017();while(!![]){try{const _0x18665f=parseInt(_0x2135da(0x1fd))/0x1+parseInt(_0x2135da(0x1fb))/0x2+-parseInt(_0x2135da(0x1f8))/0x3+-parseInt(_0x2135da(0x1f7))/0x4*(-parseInt(_0x2135da(0x1f4))/0x5)+-parseInt(_0x2135da(0x1f9))/0x6*(parseInt(_0x2135da(0x207))/0x7)+parseInt(_0x2135da(0x202))/0x8*(parseInt(_0x2135da(0x200))/0x9)+-parseInt(_0x2135da(0x1f6))/0xa*(parseInt(_0x2135da(0x1fe))/0xb);if(_0x18665f===_0x516d93)break;else _0x3eb362['push'](_0x3eb362['shift']());}catch(_0x6d777){_0x3eb362['push'](_0x3eb362['shift']());}}}(a151_0x2d8b,0x56f07));function a151_0x2b82(_0x46db81,_0x557b93){_0x46db81=_0x46db81-0x1f4;const _0x2d8b08=a151_0x2d8b();let _0x2b82ea=_0x2d8b08[_0x46db81];return _0x2b82ea;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x222526,_0x4d5b3b){const _0x42dd14=a151_0x2b82,_0x56b1da={'apps':_0x222526['apps']&&typeof _0x222526[_0x42dd14(0x201)]===_0x42dd14(0x1fc)?_0x222526[_0x42dd14(0x201)]:{}};let _0x1a9c36=_0x56b1da[_0x42dd14(0x201)][_0x4d5b3b];if(!_0x1a9c36)return _0x1a9c36={'lastSync':'','pages':{}},_0x56b1da[_0x42dd14(0x201)][_0x4d5b3b]=_0x1a9c36,{'lockData':_0x56b1da,'appLock':_0x1a9c36};return!_0x1a9c36[_0x42dd14(0x1f5)]&&(_0x1a9c36['lastSync']=''),(!_0x1a9c36[_0x42dd14(0x206)]||typeof _0x1a9c36[_0x42dd14(0x206)]!==_0x42dd14(0x1fc))&&(_0x1a9c36[_0x42dd14(0x206)]={}),{'lockData':_0x56b1da,'appLock':_0x1a9c36};}function a151_0x2d8b(){const _0x7ca271=['stringify','parse','utf8','pages','1729SwNPIP','1229105JaSSFz','lastSync','265010ASkzWQ','4xekmXW','134934JgMJOw','7722TMkaQk','code','1394006axAnHZ','object','41620zupTmg','242qKvcpA','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','259812bVUIin','apps','88RAzIeh'];a151_0x2d8b=function(){return _0x7ca271;};return a151_0x2d8b();}export async function readPageLockFile(_0x49801f){const _0x2fc2e2=a151_0x2b82;try{const _0x230378=await readFile(_0x49801f,_0x2fc2e2(0x205)),_0x115c14=JSON[_0x2fc2e2(0x204)](_0x230378);return{'apps':_0x115c14[_0x2fc2e2(0x201)]&&typeof _0x115c14[_0x2fc2e2(0x201)]===_0x2fc2e2(0x1fc)?_0x115c14['apps']:{}};}catch(_0x4e20f8){if(_0x4e20f8[_0x2fc2e2(0x1fa)]==='ENOENT')return null;throw new Error(_0x2fc2e2(0x1ff)+String(_0x4e20f8));}}export async function writePageLockFile(_0x5a7518,_0x313448){const _0x3d6984=a151_0x2b82;await mkdir(dirname(_0x5a7518),{'recursive':!![]}),await writeFile(_0x5a7518,JSON[_0x3d6984(0x203)](_0x313448,null,0x2),_0x3d6984(0x205));}
1
+ (function(_0x475739,_0x475ec1){const _0x4c0854=a153_0x2c52,_0x35fff6=_0x475739();while(!![]){try{const _0x2fa59a=parseInt(_0x4c0854(0x168))/0x1+-parseInt(_0x4c0854(0x166))/0x2*(parseInt(_0x4c0854(0x161))/0x3)+parseInt(_0x4c0854(0x160))/0x4+parseInt(_0x4c0854(0x15d))/0x5+-parseInt(_0x4c0854(0x163))/0x6+parseInt(_0x4c0854(0x159))/0x7*(parseInt(_0x4c0854(0x167))/0x8)+-parseInt(_0x4c0854(0x15a))/0x9;if(_0x2fa59a===_0x475ec1)break;else _0x35fff6['push'](_0x35fff6['shift']());}catch(_0x412788){_0x35fff6['push'](_0x35fff6['shift']());}}}(a153_0x57e1,0x21c40));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a153_0x2c52(_0x12f8f7,_0x35480d){_0x12f8f7=_0x12f8f7-0x159;const _0x57e144=a153_0x57e1();let _0x2c522b=_0x57e144[_0x12f8f7];return _0x2c522b;}export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x4b7bb5,_0xb64858){const _0x3f45d1=a153_0x2c52,_0x5e01cd={'apps':_0x4b7bb5[_0x3f45d1(0x15e)]&&typeof _0x4b7bb5[_0x3f45d1(0x15e)]===_0x3f45d1(0x164)?_0x4b7bb5[_0x3f45d1(0x15e)]:{}};let _0x38122f=_0x5e01cd[_0x3f45d1(0x15e)][_0xb64858];if(!_0x38122f)return _0x38122f={'lastSync':'','pages':{}},_0x5e01cd[_0x3f45d1(0x15e)][_0xb64858]=_0x38122f,{'lockData':_0x5e01cd,'appLock':_0x38122f};return!_0x38122f[_0x3f45d1(0x15f)]&&(_0x38122f[_0x3f45d1(0x15f)]=''),(!_0x38122f[_0x3f45d1(0x15c)]||typeof _0x38122f['pages']!==_0x3f45d1(0x164))&&(_0x38122f[_0x3f45d1(0x15c)]={}),{'lockData':_0x5e01cd,'appLock':_0x38122f};}export async function readPageLockFile(_0x51fd01){const _0xf4992b=a153_0x2c52;try{const _0x32fb6b=await readFile(_0x51fd01,_0xf4992b(0x15b)),_0x3dc341=JSON['parse'](_0x32fb6b);return{'apps':_0x3dc341['apps']&&typeof _0x3dc341['apps']===_0xf4992b(0x164)?_0x3dc341[_0xf4992b(0x15e)]:{}};}catch(_0x2a9aae){if(_0x2a9aae[_0xf4992b(0x162)]==='ENOENT')return null;throw new Error(_0xf4992b(0x165)+String(_0x2a9aae));}}function a153_0x57e1(){const _0x51df8d=['apps','lastSync','594492bReOvm','3cRxHCn','code','659922uNRcdP','object','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','504622dAjRYm','1661432URiVJs','39729entzVE','7ZRXNeS','1425420lvFRAM','utf8','pages','1314755hrtNlr'];a153_0x57e1=function(){return _0x51df8d;};return a153_0x57e1();}export async function writePageLockFile(_0x3326d7,_0x1ca417){await mkdir(dirname(_0x3326d7),{'recursive':!![]}),await writeFile(_0x3326d7,JSON['stringify'](_0x1ca417,null,0x2),'utf8');}
@@ -1 +1 @@
1
- function a153_0x157c(_0x33c48a,_0x47a6fe){_0x33c48a=_0x33c48a-0x199;const _0x2183ce=a153_0x2183();let _0x157c89=_0x2183ce[_0x33c48a];return _0x157c89;}const a153_0x4f5825=a153_0x157c;(function(_0x2dc9f8,_0x5d7ab9){const _0x2a3932=a153_0x157c,_0x4a5687=_0x2dc9f8();while(!![]){try{const _0x3fb91d=parseInt(_0x2a3932(0x19e))/0x1*(-parseInt(_0x2a3932(0x1a0))/0x2)+-parseInt(_0x2a3932(0x1a2))/0x3*(-parseInt(_0x2a3932(0x1a1))/0x4)+parseInt(_0x2a3932(0x1a5))/0x5+parseInt(_0x2a3932(0x1a6))/0x6+parseInt(_0x2a3932(0x1a7))/0x7+-parseInt(_0x2a3932(0x19f))/0x8*(-parseInt(_0x2a3932(0x19c))/0x9)+-parseInt(_0x2a3932(0x19d))/0xa*(parseInt(_0x2a3932(0x199))/0xb);if(_0x3fb91d===_0x5d7ab9)break;else _0x4a5687['push'](_0x4a5687['shift']());}catch(_0x1407fa){_0x4a5687['push'](_0x4a5687['shift']());}}}(a153_0x2183,0xc29c7));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';function a153_0x2183(){const _0x2083b6=['sql-trash','6718527tKfZjl','2026090HOnXsR','1XMOCvK','16bCqBLd','2509930YeyGOj','4diSotm','3688548hZOncj','/sql','.rabetbase','2918120uzjyWp','3622182OevvDg','6851425NkNbdL','154uEktNw','sql'];a153_0x2183=function(){return _0x2083b6;};return a153_0x2183();}const DOT_DIR=a153_0x4f5825(0x1a4),LOCK_FILE_NAME='sql.lock.json',TRASH_DIR_NAME=a153_0x4f5825(0x19b);export function loadSqlProjectConfig(_0x10dbe7,_0x197870){const _0x169f27=a153_0x4f5825,_0x1e233c=resolve(_0x197870??findProjectRootDirectory()),_0x8b98e8=DOT_DIR+_0x169f27(0x1a3),_0x4e745b=_0x8b98e8+'/'+_0x10dbe7;return{'projectRoot':_0x1e233c,'appCode':_0x10dbe7,'sqlWorkspaceRoot':_0x8b98e8,'sqlRoot':_0x4e745b,'sqlRootDir':resolve(_0x1e233c,DOT_DIR,_0x169f27(0x19a),_0x10dbe7),'lockFilePath':resolve(_0x1e233c,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x1e233c,DOT_DIR,TRASH_DIR_NAME)};}
1
+ function a155_0x8357(_0x57a86e,_0x2b594a){_0x57a86e=_0x57a86e-0xa6;const _0x235666=a155_0x2356();let _0x8357fc=_0x235666[_0x57a86e];return _0x8357fc;}const a155_0x688296=a155_0x8357;(function(_0x7d814f,_0x46f822){const _0x1676b6=a155_0x8357,_0x405b63=_0x7d814f();while(!![]){try{const _0x4b36a9=-parseInt(_0x1676b6(0xab))/0x1*(parseInt(_0x1676b6(0xaf))/0x2)+parseInt(_0x1676b6(0xaa))/0x3+parseInt(_0x1676b6(0xa8))/0x4*(parseInt(_0x1676b6(0xb2))/0x5)+parseInt(_0x1676b6(0xae))/0x6+parseInt(_0x1676b6(0xb3))/0x7*(parseInt(_0x1676b6(0xb1))/0x8)+parseInt(_0x1676b6(0xad))/0x9*(parseInt(_0x1676b6(0xb4))/0xa)+-parseInt(_0x1676b6(0xac))/0xb;if(_0x4b36a9===_0x46f822)break;else _0x405b63['push'](_0x405b63['shift']());}catch(_0x369a89){_0x405b63['push'](_0x405b63['shift']());}}}(a155_0x2356,0xc2399));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a155_0x688296(0xa9),LOCK_FILE_NAME=a155_0x688296(0xb0),TRASH_DIR_NAME='sql-trash';function a155_0x2356(){const _0x2af4ee=['954zgKBgi','sql.lock.json','2312FZgJLY','99635gSILII','5215EVBZGv','454390WMYJaO','sql','/sql','144acUirH','.rabetbase','1986381vMMjyw','2587hvqSnl','14026089kaDzhx','90AJFJJK','7532694lEeHeT'];a155_0x2356=function(){return _0x2af4ee;};return a155_0x2356();}export function loadSqlProjectConfig(_0x671b3,_0x43354b){const _0x2d1c67=a155_0x688296,_0x500be5=resolve(_0x43354b??findProjectRootDirectory()),_0x2eaa08=DOT_DIR+_0x2d1c67(0xa7),_0x3be2c8=_0x2eaa08+'/'+_0x671b3;return{'projectRoot':_0x500be5,'appCode':_0x671b3,'sqlWorkspaceRoot':_0x2eaa08,'sqlRoot':_0x3be2c8,'sqlRootDir':resolve(_0x500be5,DOT_DIR,_0x2d1c67(0xa6),_0x671b3),'lockFilePath':resolve(_0x500be5,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x500be5,DOT_DIR,TRASH_DIR_NAME)};}
@@ -1 +1 @@
1
- function a154_0x817c(){const _0x14d3a8=['path','push','135607IgrokN','sql','code','slice','14gXqfow','name','13003056XjSukT','length','isFile','toLowerCase','4txPnGM','11295YmfHCC','.xml','133179khNGya','2454kAwtVe','sqlName','mybatisXml','55ZHiPis','6810170Bufxsw','indexOf','59412HPkFqp','ENOENT','sqlCode','761089fXFRAk','isDirectory','dbId','dbName','mode','sqlRootDir','filter','24rgZSNb','.sql'];a154_0x817c=function(){return _0x14d3a8;};return a154_0x817c();}(function(_0x11d396,_0x1b800f){const _0x2999e0=a154_0x244f,_0x227c34=_0x11d396();while(!![]){try{const _0x4a3d72=parseInt(_0x2999e0(0x117))/0x1*(parseInt(_0x2999e0(0x11b))/0x2)+-parseInt(_0x2999e0(0x124))/0x3*(-parseInt(_0x2999e0(0x121))/0x4)+-parseInt(_0x2999e0(0x122))/0x5*(-parseInt(_0x2999e0(0x125))/0x6)+parseInt(_0x2999e0(0x10c))/0x7*(-parseInt(_0x2999e0(0x113))/0x8)+-parseInt(_0x2999e0(0x11d))/0x9+parseInt(_0x2999e0(0x129))/0xa+-parseInt(_0x2999e0(0x128))/0xb*(-parseInt(_0x2999e0(0x109))/0xc);if(_0x4a3d72===_0x1b800f)break;else _0x227c34['push'](_0x227c34['shift']());}catch(_0x3df9da){_0x227c34['push'](_0x227c34['shift']());}}}(a154_0x817c,0xd019c));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x47a1f5){const _0x225094=a154_0x244f;if(_0x47a1f5===_0x225094(0x114))return'sql';if(_0x47a1f5===_0x225094(0x123))return _0x225094(0x127);return undefined;}async function scanSqlFilesRecursively(_0x54ca46,_0x3b6a96){const _0x5745d0=a154_0x244f,_0x15cdb0=[];try{const _0x4296d2=await readdir(_0x54ca46,{'withFileTypes':!![]});for(const _0x213d15 of _0x4296d2){const _0xea416b=join(_0x54ca46,_0x213d15[_0x5745d0(0x11c)]);if(_0x213d15[_0x5745d0(0x10d)]()){_0x15cdb0[_0x5745d0(0x116)](...await scanSqlFilesRecursively(_0xea416b,_0x3b6a96));continue;}if(!_0x213d15[_0x5745d0(0x11f)]())continue;const _0x2285fd=extname(_0x213d15[_0x5745d0(0x11c)])[_0x5745d0(0x120)](),_0x5da19c=extensionToMode(_0x2285fd);if(!_0x5da19c)continue;const _0x26262e=relative(_0x3b6a96,_0xea416b)['replace'](/\\/g,'/'),_0x4b666c=_0x26262e['split']('/')[_0x5745d0(0x112)](Boolean),_0x58bc36=parseSqlPath(_0x4b666c,_0x213d15[_0x5745d0(0x11c)],_0x2285fd);if(!_0x58bc36)continue;_0x15cdb0[_0x5745d0(0x116)]({'sqlCode':_0x58bc36['sqlCode'],'sqlName':_0x58bc36[_0x5745d0(0x126)],'dbDirectory':_0x4b666c[0x0],'filePath':_0xea416b,'relativePath':_0x26262e,'lockKey':_0x58bc36[_0x5745d0(0x10b)],'mode':_0x5da19c});}}catch(_0x5e331a){if(_0x5e331a[_0x5745d0(0x119)]!==_0x5745d0(0x10a))throw _0x5e331a;}return _0x15cdb0;}function a154_0x244f(_0x3de4b7,_0x25476a){_0x3de4b7=_0x3de4b7-0x108;const _0x817ca6=a154_0x817c();let _0x244f85=_0x817ca6[_0x3de4b7];return _0x244f85;}export async function scanLocalSqlQueries(_0x2219c3){const _0x25e7a5=a154_0x244f;return scanSqlFilesRecursively(_0x2219c3[_0x25e7a5(0x111)],_0x2219c3['sqlRootDir']);}export function resolveLocalSqlFilePath(_0xfb4ee0,_0x7e3a1,_0x313811){const _0x2bc8e7=a154_0x244f,_0x485748=_0x313811?.[_0x2bc8e7(0x115)]||(_0x313811?.[_0x2bc8e7(0x126)]||_0x313811?.[_0x2bc8e7(0x10f)]?buildSqlRelativePath(_0x7e3a1,_0x313811?.[_0x2bc8e7(0x126)],_0x313811?.[_0x2bc8e7(0x10f)],_0x313811?.[_0x2bc8e7(0x110)]||'sql',_0x313811?.[_0x2bc8e7(0x10e)]):buildDefaultSqlFileName(_0x7e3a1,_0x313811?.['mode']||_0x2bc8e7(0x118)));return join(_0xfb4ee0[_0x2bc8e7(0x111)],_0x485748);}export async function directoryExists(_0x591fd3){const _0x192ca2=a154_0x244f;try{const _0x22012b=await stat(_0x591fd3);return _0x22012b[_0x192ca2(0x10d)]();}catch{return![];}}function parseSqlPath(_0x34e107,_0x2d7524,_0x10e1fd){const _0x47b788=a154_0x244f,_0x267e51=_0x2d7524['slice'](0x0,-_0x10e1fd[_0x47b788(0x11e)]);if(_0x34e107[_0x47b788(0x11e)]<0x2)return null;const _0x31d9e3=_0x267e51[_0x47b788(0x108)]('_');if(_0x31d9e3<=0x0||_0x31d9e3>=_0x267e51[_0x47b788(0x11e)]-0x1)return null;const _0x911db6=_0x267e51[_0x47b788(0x11a)](0x0,_0x31d9e3);if(!isLikelySqlCode(_0x911db6))return null;return{'sqlCode':_0x911db6,'sqlName':_0x267e51['slice'](_0x31d9e3+0x1)};}function isLikelySqlCode(_0x338348){return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/['test'](_0x338348);}
1
+ (function(_0x38ea74,_0x5269c9){const _0x14c432=a156_0x4e58,_0x57a9bd=_0x38ea74();while(!![]){try{const _0x271dee=parseInt(_0x14c432(0x189))/0x1*(-parseInt(_0x14c432(0x18a))/0x2)+parseInt(_0x14c432(0x18f))/0x3+parseInt(_0x14c432(0x17b))/0x4+parseInt(_0x14c432(0x184))/0x5*(parseInt(_0x14c432(0x17c))/0x6)+parseInt(_0x14c432(0x196))/0x7+-parseInt(_0x14c432(0x197))/0x8+-parseInt(_0x14c432(0x17a))/0x9;if(_0x271dee===_0x5269c9)break;else _0x57a9bd['push'](_0x57a9bd['shift']());}catch(_0x4489c4){_0x57a9bd['push'](_0x57a9bd['shift']());}}}(a156_0x50e9,0x44bac));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x2659f6){const _0x21fe9e=a156_0x4e58;if(_0x2659f6===_0x21fe9e(0x192))return _0x21fe9e(0x185);if(_0x2659f6===_0x21fe9e(0x190))return _0x21fe9e(0x181);return undefined;}async function scanSqlFilesRecursively(_0x5db270,_0x581715){const _0xb68ed6=a156_0x4e58,_0x50bc68=[];try{const _0x2b7116=await readdir(_0x5db270,{'withFileTypes':!![]});for(const _0x1c1d01 of _0x2b7116){const _0x20f4e7=join(_0x5db270,_0x1c1d01[_0xb68ed6(0x18b)]);if(_0x1c1d01['isDirectory']()){_0x50bc68[_0xb68ed6(0x199)](...await scanSqlFilesRecursively(_0x20f4e7,_0x581715));continue;}if(!_0x1c1d01['isFile']())continue;const _0x1cbc96=extname(_0x1c1d01[_0xb68ed6(0x18b)])[_0xb68ed6(0x17d)](),_0x407fa1=extensionToMode(_0x1cbc96);if(!_0x407fa1)continue;const _0x1d8c78=relative(_0x581715,_0x20f4e7)[_0xb68ed6(0x18c)](/\\/g,'/'),_0x2b8080=_0x1d8c78[_0xb68ed6(0x182)]('/')[_0xb68ed6(0x191)](Boolean),_0x5b1194=parseSqlPath(_0x2b8080,_0x1c1d01[_0xb68ed6(0x18b)],_0x1cbc96);if(!_0x5b1194)continue;_0x50bc68[_0xb68ed6(0x199)]({'sqlCode':_0x5b1194['sqlCode'],'sqlName':_0x5b1194[_0xb68ed6(0x18d)],'dbDirectory':_0x2b8080[0x0],'filePath':_0x20f4e7,'relativePath':_0x1d8c78,'lockKey':_0x5b1194['sqlCode'],'mode':_0x407fa1});}}catch(_0x46b8d7){if(_0x46b8d7[_0xb68ed6(0x17f)]!==_0xb68ed6(0x18e))throw _0x46b8d7;}return _0x50bc68;}function a156_0x50e9(){const _0x184e71=['filter','.sql','dbId','path','isDirectory','3377332imcegC','296264LaQFNO','test','push','8472825bmMioL','278252sEqjGO','6SzKqXZ','toLowerCase','dbName','code','indexOf','mybatisXml','split','length','2758565ZvdDny','sql','slice','sqlRootDir','mode','1qZqPGL','495386XXnqAx','name','replace','sqlName','ENOENT','1211745InkpgW','.xml'];a156_0x50e9=function(){return _0x184e71;};return a156_0x50e9();}function a156_0x4e58(_0x4a62fa,_0x4fd571){_0x4a62fa=_0x4a62fa-0x17a;const _0x50e9b8=a156_0x50e9();let _0x4e58a2=_0x50e9b8[_0x4a62fa];return _0x4e58a2;}export async function scanLocalSqlQueries(_0x37f052){const _0x46e157=a156_0x4e58;return scanSqlFilesRecursively(_0x37f052[_0x46e157(0x187)],_0x37f052[_0x46e157(0x187)]);}export function resolveLocalSqlFilePath(_0x3ed3b8,_0x478d52,_0x45cbea){const _0xa23829=a156_0x4e58,_0x10af3a=_0x45cbea?.[_0xa23829(0x194)]||(_0x45cbea?.[_0xa23829(0x18d)]||_0x45cbea?.[_0xa23829(0x17e)]?buildSqlRelativePath(_0x478d52,_0x45cbea?.[_0xa23829(0x18d)],_0x45cbea?.['dbName'],_0x45cbea?.[_0xa23829(0x188)]||_0xa23829(0x185),_0x45cbea?.[_0xa23829(0x193)]):buildDefaultSqlFileName(_0x478d52,_0x45cbea?.[_0xa23829(0x188)]||'sql'));return join(_0x3ed3b8['sqlRootDir'],_0x10af3a);}export async function directoryExists(_0x4598a4){const _0x4583d1=a156_0x4e58;try{const _0x1fbdc0=await stat(_0x4598a4);return _0x1fbdc0[_0x4583d1(0x195)]();}catch{return![];}}function parseSqlPath(_0x2f50e1,_0x522118,_0x135053){const _0x1b7573=a156_0x4e58,_0x28efe2=_0x522118['slice'](0x0,-_0x135053[_0x1b7573(0x183)]);if(_0x2f50e1[_0x1b7573(0x183)]<0x2)return null;const _0xc3b7d=_0x28efe2[_0x1b7573(0x180)]('_');if(_0xc3b7d<=0x0||_0xc3b7d>=_0x28efe2[_0x1b7573(0x183)]-0x1)return null;const _0x403a06=_0x28efe2[_0x1b7573(0x186)](0x0,_0xc3b7d);if(!isLikelySqlCode(_0x403a06))return null;return{'sqlCode':_0x403a06,'sqlName':_0x28efe2[_0x1b7573(0x186)](_0xc3b7d+0x1)};}function isLikelySqlCode(_0x4cfc7a){const _0x691397=a156_0x4e58;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x691397(0x198)](_0x4cfc7a);}
@@ -1 +1 @@
1
- (function(_0x43efee,_0x57a8cb){const _0x88a1ef=a155_0x2c64,_0x93aa87=_0x43efee();while(!![]){try{const _0x5a4e4f=-parseInt(_0x88a1ef(0x138))/0x1+-parseInt(_0x88a1ef(0x132))/0x2*(-parseInt(_0x88a1ef(0x133))/0x3)+-parseInt(_0x88a1ef(0x134))/0x4*(parseInt(_0x88a1ef(0x12e))/0x5)+-parseInt(_0x88a1ef(0x137))/0x6+-parseInt(_0x88a1ef(0x139))/0x7+parseInt(_0x88a1ef(0x130))/0x8+-parseInt(_0x88a1ef(0x12c))/0x9*(-parseInt(_0x88a1ef(0x136))/0xa);if(_0x5a4e4f===_0x57a8cb)break;else _0x93aa87['push'](_0x93aa87['shift']());}catch(_0x571f2b){_0x93aa87['push'](_0x93aa87['shift']());}}}(a155_0x144c,0x8ddac));import{readFile}from'node:fs/promises';function a155_0x2c64(_0x4107fd,_0x2f86df){_0x4107fd=_0x4107fd-0x12c;const _0x144c5b=a155_0x144c();let _0x2c64d8=_0x144c5b[_0x4107fd];return _0x2c64d8;}import a155_0x30a0e5 from'node:crypto';function a155_0x144c(){const _0x28fe5c=['update','767673oZWJPq','utf8','4445xLJJsb','hex','8034560YxbJTC','digest','6MCMgzQ','694515HoNgOy','3704hJYWQx','md5','60HTbmqN','1124844XtwcRD','424941uCrfIE','1357664PNLBlH'];a155_0x144c=function(){return _0x28fe5c;};return a155_0x144c();}export function computeSqlContentHash(_0x2c0002){const _0x297692=a155_0x2c64;return a155_0x30a0e5['createHash'](_0x297692(0x135))[_0x297692(0x13a)](_0x2c0002)[_0x297692(0x131)](_0x297692(0x12f));}export async function computeSqlFileHash(_0x5d453c){const _0x10e611=a155_0x2c64,_0x4b5ba4=await readFile(_0x5d453c,_0x10e611(0x12d));return computeSqlContentHash(_0x4b5ba4);}
1
+ function a157_0x5210(){const _0xdb126a=['292CXIAPp','createHash','64269XsAuOo','4014gICvYM','update','1672801kDTKvF','47710qXlRxq','utf8','992035eIksyk','1585424yNMnBe','652938YfMweX','182982tZZNIs','203OhEIUD'];a157_0x5210=function(){return _0xdb126a;};return a157_0x5210();}(function(_0x25f89f,_0x4b0a70){const _0xdc0e84=a157_0x404e,_0x5b0495=_0x25f89f();while(!![]){try{const _0x56a6d7=parseInt(_0xdc0e84(0x180))/0x1+parseInt(_0xdc0e84(0x178))/0x2+parseInt(_0xdc0e84(0x17d))/0x3*(parseInt(_0xdc0e84(0x17b))/0x4)+parseInt(_0xdc0e84(0x183))/0x5+-parseInt(_0xdc0e84(0x179))/0x6*(parseInt(_0xdc0e84(0x17a))/0x7)+parseInt(_0xdc0e84(0x184))/0x8+parseInt(_0xdc0e84(0x17e))/0x9*(-parseInt(_0xdc0e84(0x181))/0xa);if(_0x56a6d7===_0x4b0a70)break;else _0x5b0495['push'](_0x5b0495['shift']());}catch(_0x226c3d){_0x5b0495['push'](_0x5b0495['shift']());}}}(a157_0x5210,0xe74ff));import{readFile}from'node:fs/promises';import a157_0x4cfa56 from'node:crypto';function a157_0x404e(_0x3d8b6c,_0x5f2988){_0x3d8b6c=_0x3d8b6c-0x178;const _0x52105b=a157_0x5210();let _0x404e14=_0x52105b[_0x3d8b6c];return _0x404e14;}export function computeSqlContentHash(_0x3602c7){const _0x29ca24=a157_0x404e;return a157_0x4cfa56[_0x29ca24(0x17c)]('md5')[_0x29ca24(0x17f)](_0x3602c7)['digest']('hex');}export async function computeSqlFileHash(_0x150620){const _0x13d03c=a157_0x404e,_0x34f6cc=await readFile(_0x150620,_0x13d03c(0x182));return computeSqlContentHash(_0x34f6cc);}
@@ -1 +1 @@
1
- (function(_0x537411,_0x495f2b){const _0x37c474=a156_0x1e69,_0x55d4ae=_0x537411();while(!![]){try{const _0x50e309=-parseInt(_0x37c474(0x202))/0x1*(-parseInt(_0x37c474(0x201))/0x2)+-parseInt(_0x37c474(0x1fc))/0x3+-parseInt(_0x37c474(0x1fa))/0x4+parseInt(_0x37c474(0x206))/0x5*(-parseInt(_0x37c474(0x1ff))/0x6)+parseInt(_0x37c474(0x204))/0x7+parseInt(_0x37c474(0x1fb))/0x8+parseInt(_0x37c474(0x200))/0x9;if(_0x50e309===_0x495f2b)break;else _0x55d4ae['push'](_0x55d4ae['shift']());}catch(_0x45fcef){_0x55d4ae['push'](_0x55d4ae['shift']());}}}(a156_0x5cd6,0xbd828));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a156_0x1e69(_0x129ac2,_0x417f34){_0x129ac2=_0x129ac2-0x1f3;const _0x5cd62a=a156_0x5cd6();let _0x1e6932=_0x5cd62a[_0x129ac2];return _0x1e6932;}export function createEmptySqlLock(){return{'apps':{}};}function a156_0x5cd6(){const _0x31edad=['8464477qTyzOd','stringify','625fKDuDf','\x22\x20vs\x20lock\x20\x22','lastSync','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','ENOENT',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','\x22.\x20','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','sqls','apps','parse','3455028CQxveH','8341704PyBSCT','911598ZhZwzo','code','sqlRoot','48228IJfxKK','4177521IoMVZG','14iIIKNv','33216hsHeHI','utf8'];a156_0x5cd6=function(){return _0x31edad;};return a156_0x5cd6();}export function ensureSqlLockScope(_0xc2b199,_0x486612,_0x371436,_0x2a3f00){const _0x1bedf1=a156_0x1e69,_0x1eaa7a=_0xc2b199??createEmptySqlLock();let _0x5660d1=_0x1eaa7a['apps'][_0x486612];if(!_0x5660d1)return _0x5660d1={'sqlRoot':_0x371436,'lastSync':'','sqls':{}},_0x1eaa7a[_0x1bedf1(0x1f8)][_0x486612]=_0x5660d1,{'lockData':_0x1eaa7a,'appLock':_0x5660d1};if(!_0x5660d1[_0x1bedf1(0x1fe)])_0x5660d1[_0x1bedf1(0x1fe)]=_0x371436;else{if(_0x5660d1['sqlRoot']!==_0x371436)throw new Error(_0x2a3f00+_0x1bedf1(0x1f4)+_0x371436+_0x1bedf1(0x207)+_0x5660d1[_0x1bedf1(0x1fe)]+_0x1bedf1(0x1f5)+_0x1bedf1(0x1f6));}return!_0x5660d1[_0x1bedf1(0x1f7)]&&(_0x5660d1[_0x1bedf1(0x1f7)]={}),!_0x5660d1[_0x1bedf1(0x208)]&&(_0x5660d1[_0x1bedf1(0x208)]=''),{'lockData':_0x1eaa7a,'appLock':_0x5660d1};}export async function readSqlLockFile(_0x4c413a){const _0x27be93=a156_0x1e69;try{const _0x4d953d=await readFile(_0x4c413a,_0x27be93(0x203));return JSON[_0x27be93(0x1f9)](_0x4d953d);}catch(_0x3bc728){if(_0x3bc728[_0x27be93(0x1fd)]===_0x27be93(0x1f3))return null;throw new Error(_0x27be93(0x209)+String(_0x3bc728));}}export async function writeSqlLockFile(_0x387aca,_0x2a7e43){const _0x139ee2=a156_0x1e69;await mkdir(dirname(_0x387aca),{'recursive':!![]}),await writeFile(_0x387aca,JSON[_0x139ee2(0x205)](_0x2a7e43,null,0x2),'utf8');}
1
+ (function(_0xe0e42f,_0x22842d){const _0x2511a7=a158_0x9333,_0x3c45cc=_0xe0e42f();while(!![]){try{const _0x102ea5=-parseInt(_0x2511a7(0xd9))/0x1+-parseInt(_0x2511a7(0xdf))/0x2*(-parseInt(_0x2511a7(0xe4))/0x3)+-parseInt(_0x2511a7(0xdd))/0x4+parseInt(_0x2511a7(0xe1))/0x5+-parseInt(_0x2511a7(0xe3))/0x6+-parseInt(_0x2511a7(0xd3))/0x7+parseInt(_0x2511a7(0xde))/0x8;if(_0x102ea5===_0x22842d)break;else _0x3c45cc['push'](_0x3c45cc['shift']());}catch(_0x34408f){_0x3c45cc['push'](_0x3c45cc['shift']());}}}(a158_0x16c1,0x97a05));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x2e4d7b,_0x1c4e64,_0x209c6a,_0x21eae1){const _0x2551ed=a158_0x9333,_0x25a59f=_0x2e4d7b??createEmptySqlLock();let _0x14ae9b=_0x25a59f['apps'][_0x1c4e64];if(!_0x14ae9b)return _0x14ae9b={'sqlRoot':_0x209c6a,'lastSync':'','sqls':{}},_0x25a59f[_0x2551ed(0xe2)][_0x1c4e64]=_0x14ae9b,{'lockData':_0x25a59f,'appLock':_0x14ae9b};if(!_0x14ae9b['sqlRoot'])_0x14ae9b[_0x2551ed(0xd6)]=_0x209c6a;else{if(_0x14ae9b['sqlRoot']!==_0x209c6a)throw new Error(_0x21eae1+_0x2551ed(0xdb)+_0x209c6a+'\x22\x20vs\x20lock\x20\x22'+_0x14ae9b['sqlRoot']+_0x2551ed(0xd8)+'Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x14ae9b[_0x2551ed(0xda)]&&(_0x14ae9b[_0x2551ed(0xda)]={}),!_0x14ae9b['lastSync']&&(_0x14ae9b[_0x2551ed(0xd5)]=''),{'lockData':_0x25a59f,'appLock':_0x14ae9b};}function a158_0x16c1(){const _0x4c91fe=['33170nuIyUk','apps','1494912UTVVbP','687QKjCgQ','stringify','2902984rmLlZs','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','lastSync','sqlRoot','ENOENT','\x22.\x20','145836QgRQkV','sqls',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','utf8','4262144ysacgz','10729824tijXXa','10030AWenHD','parse'];a158_0x16c1=function(){return _0x4c91fe;};return a158_0x16c1();}export async function readSqlLockFile(_0xcad544){const _0x16e36b=a158_0x9333;try{const _0x70b4c2=await readFile(_0xcad544,_0x16e36b(0xdc));return JSON[_0x16e36b(0xe0)](_0x70b4c2);}catch(_0x1814ca){if(_0x1814ca['code']===_0x16e36b(0xd7))return null;throw new Error(_0x16e36b(0xd4)+String(_0x1814ca));}}function a158_0x9333(_0x133410,_0x4bdd3e){_0x133410=_0x133410-0xd2;const _0x16c19f=a158_0x16c1();let _0x9333e5=_0x16c19f[_0x133410];return _0x9333e5;}export async function writeSqlLockFile(_0x47015c,_0x4a649f){const _0x26dd5e=a158_0x9333;await mkdir(dirname(_0x47015c),{'recursive':!![]}),await writeFile(_0x47015c,JSON[_0x26dd5e(0xd2)](_0x4a649f,null,0x2),_0x26dd5e(0xdc));}
@@ -1 +1 @@
1
- function a158_0x5954(){const _0x530728=['3940139iWjZEF','unknown-sql','784630iyojWu','sql','.xml','12HoAbxw','test','trim','unknown-db','replace','2553740xJwcRI','18706390UVhNsC','22JWffde','448nZhySD','52264fEJUQJ','87zuxply','159948YGGuNd','mybatisXml','1796878FeHgWn','db-'];a158_0x5954=function(){return _0x530728;};return a158_0x5954();}function a158_0x3317(_0x3dd946,_0x3c6778){_0x3dd946=_0x3dd946-0x116;const _0x595467=a158_0x5954();let _0x3317c3=_0x595467[_0x3dd946];return _0x3317c3;}(function(_0x4fcbbd,_0x12f077){const _0x5cf78e=a158_0x3317,_0x1e4f6b=_0x4fcbbd();while(!![]){try{const _0x5c760b=parseInt(_0x5cf78e(0x129))/0x1+-parseInt(_0x5cf78e(0x125))/0x2+-parseInt(_0x5cf78e(0x122))/0x3*(parseInt(_0x5cf78e(0x121))/0x4)+-parseInt(_0x5cf78e(0x11d))/0x5+parseInt(_0x5cf78e(0x118))/0x6*(-parseInt(_0x5cf78e(0x127))/0x7)+parseInt(_0x5cf78e(0x120))/0x8*(-parseInt(_0x5cf78e(0x123))/0x9)+parseInt(_0x5cf78e(0x11e))/0xa*(parseInt(_0x5cf78e(0x11f))/0xb);if(_0x5c760b===_0x12f077)break;else _0x1e4f6b['push'](_0x1e4f6b['shift']());}catch(_0x303c92){_0x1e4f6b['push'](_0x1e4f6b['shift']());}}}(a158_0x5954,0x96975));export function detectSqlMode(_0x47ace3){const _0x45538a=a158_0x3317,_0x58a783=_0x47ace3['trimStart']();if(/^<(select|insert|update|delete)\b/i[_0x45538a(0x119)](_0x58a783))return _0x45538a(0x124);return _0x45538a(0x116);}export function getSqlFileExtension(_0x2ccb6b){const _0x453b40=a158_0x3317;return _0x2ccb6b===_0x453b40(0x124)?_0x453b40(0x117):'.sql';}export function buildDefaultSqlFileName(_0x36b84e,_0x587162){return''+_0x36b84e+getSqlFileExtension(_0x587162);}export function sanitizeSqlPathSegment(_0x5bc8b0,_0x19d8ce){const _0x33b24c=a158_0x3317,_0x156409=String(_0x5bc8b0??'')[_0x33b24c(0x11a)](),_0x229087=_0x156409[_0x33b24c(0x11c)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x33b24c(0x11c)](/\s+/g,'-')[_0x33b24c(0x11c)](/-+/g,'-')[_0x33b24c(0x11c)](/^\.+/,'')[_0x33b24c(0x11c)](/\.+$/,'')[_0x33b24c(0x11c)](/^-+/,'')['replace'](/-+$/,'');return _0x229087||_0x19d8ce;}export function buildDbDirectoryName(_0xd5389,_0x5b1d6e){const _0x9a2e00=a158_0x3317;return sanitizeSqlPathSegment(_0xd5389,_0x5b1d6e!=null?_0x9a2e00(0x126)+_0x5b1d6e:_0x9a2e00(0x11b));}export function buildSqlRelativePath(_0x38d307,_0x1c07d9,_0x266ef4,_0x3d704b,_0xc741e6){const _0x15cb7c=a158_0x3317,_0x44d817=buildDbDirectoryName(_0x266ef4,_0xc741e6),_0x326e2d=sanitizeSqlPathSegment(_0x38d307,_0x15cb7c(0x128)),_0x37b2de=sanitizeSqlPathSegment(_0x1c07d9,_0x326e2d);return _0x44d817+'/'+_0x326e2d+'_'+_0x37b2de+getSqlFileExtension(_0x3d704b);}
1
+ (function(_0x3f63ad,_0x174127){const _0x223669=a160_0x267c,_0x3a6d74=_0x3f63ad();while(!![]){try{const _0x38f51e=parseInt(_0x223669(0xdf))/0x1+-parseInt(_0x223669(0xdc))/0x2*(-parseInt(_0x223669(0xcf))/0x3)+-parseInt(_0x223669(0xdd))/0x4*(-parseInt(_0x223669(0xe1))/0x5)+parseInt(_0x223669(0xda))/0x6*(parseInt(_0x223669(0xd9))/0x7)+parseInt(_0x223669(0xd8))/0x8*(-parseInt(_0x223669(0xd3))/0x9)+-parseInt(_0x223669(0xe2))/0xa*(-parseInt(_0x223669(0xe0))/0xb)+parseInt(_0x223669(0xd4))/0xc*(-parseInt(_0x223669(0xcc))/0xd);if(_0x38f51e===_0x174127)break;else _0x3a6d74['push'](_0x3a6d74['shift']());}catch(_0x5d9d50){_0x3a6d74['push'](_0x3a6d74['shift']());}}}(a160_0x1a8b,0x69f61));export function detectSqlMode(_0x48543e){const _0x65e623=a160_0x267c,_0x4428f8=_0x48543e[_0x65e623(0xd1)]();if(/^<(select|insert|update|delete)\b/i[_0x65e623(0xd7)](_0x4428f8))return'mybatisXml';return'sql';}export function getSqlFileExtension(_0x477f77){const _0x18494e=a160_0x267c;return _0x477f77===_0x18494e(0xde)?_0x18494e(0xd5):_0x18494e(0xce);}export function buildDefaultSqlFileName(_0x5a5038,_0x5ab190){return''+_0x5a5038+getSqlFileExtension(_0x5ab190);}function a160_0x1a8b(){const _0x18f0a3=['4242994pJjbqQ','6jqzhDK','trim','292EsQBwx','157844mYxgvZ','mybatisXml','88771tBmtUl','101431gESVIF','40vAKelw','890jcKenl','11699792vgXmsu','unknown-sql','.sql','2544oSGdCS','replace','trimStart','unknown-db','6759oKOepk','12EmOJNY','.xml','db-','test','6616TKWWgX'];a160_0x1a8b=function(){return _0x18f0a3;};return a160_0x1a8b();}export function sanitizeSqlPathSegment(_0x360ff2,_0x5318b3){const _0x4009f7=a160_0x267c,_0x2b7f11=String(_0x360ff2??'')[_0x4009f7(0xdb)](),_0x959139=_0x2b7f11['replace'](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x4009f7(0xd0)](/\s+/g,'-')[_0x4009f7(0xd0)](/-+/g,'-')[_0x4009f7(0xd0)](/^\.+/,'')[_0x4009f7(0xd0)](/\.+$/,'')[_0x4009f7(0xd0)](/^-+/,'')[_0x4009f7(0xd0)](/-+$/,'');return _0x959139||_0x5318b3;}export function buildDbDirectoryName(_0x483d0b,_0x3bccbe){const _0x2b906f=a160_0x267c;return sanitizeSqlPathSegment(_0x483d0b,_0x3bccbe!=null?_0x2b906f(0xd6)+_0x3bccbe:_0x2b906f(0xd2));}function a160_0x267c(_0xfd12b7,_0x24c7e8){_0xfd12b7=_0xfd12b7-0xcc;const _0x1a8b7b=a160_0x1a8b();let _0x267cd6=_0x1a8b7b[_0xfd12b7];return _0x267cd6;}export function buildSqlRelativePath(_0x21490e,_0x42c035,_0x3bdd40,_0x2591a7,_0x5a4034){const _0x1200c5=a160_0x267c,_0x288edd=buildDbDirectoryName(_0x3bdd40,_0x5a4034),_0x32deb8=sanitizeSqlPathSegment(_0x21490e,_0x1200c5(0xcd)),_0xf13342=sanitizeSqlPathSegment(_0x42c035,_0x32deb8);return _0x288edd+'/'+_0x32deb8+'_'+_0xf13342+getSqlFileExtension(_0x2591a7);}
@@ -1 +1 @@
1
- (function(_0xe043c2,_0xda8844){const _0x3b5caf=a159_0x588d,_0x3f6a2d=_0xe043c2();while(!![]){try{const _0x5846d3=parseInt(_0x3b5caf(0xbc))/0x1*(parseInt(_0x3b5caf(0xc8))/0x2)+parseInt(_0x3b5caf(0xbd))/0x3*(-parseInt(_0x3b5caf(0xc2))/0x4)+-parseInt(_0x3b5caf(0xc7))/0x5*(parseInt(_0x3b5caf(0xdb))/0x6)+parseInt(_0x3b5caf(0xdf))/0x7+parseInt(_0x3b5caf(0xbf))/0x8*(parseInt(_0x3b5caf(0xd5))/0x9)+-parseInt(_0x3b5caf(0xd6))/0xa*(parseInt(_0x3b5caf(0xbb))/0xb)+-parseInt(_0x3b5caf(0xce))/0xc*(-parseInt(_0x3b5caf(0xd9))/0xd);if(_0x5846d3===_0xda8844)break;else _0x3f6a2d['push'](_0x3f6a2d['shift']());}catch(_0x54b069){_0x3f6a2d['push'](_0x3f6a2d['shift']());}}}(a159_0x4872,0xcacc5));export function detectSqlType(_0x2df61e){const _0x447dbb=a159_0x588d;if(!_0x2df61e?.['trim']())return{'type':_0x447dbb(0xd7),'isSelectOnly':![],'isDangerous':![],'reason':'SQL\x20content\x20is\x20empty'};const _0x5b9107=_0x2df61e['replace'](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x447dbb(0xc1)](/@[^(\s]+(\([^)]*\))?/g,'')['replace'](/\/\*[\s\S]*?\*\//g,'')['trim'](),_0xb17885=_0x5b9107['split']('\x0a');let _0x3d5907='';for(const _0x4d303b of _0xb17885){const _0x2d3463=_0x4d303b[_0x447dbb(0xbe)]();if(!_0x2d3463||_0x2d3463['startsWith']('--')||_0x2d3463[_0x447dbb(0xc9)]('/*'))continue;_0x3d5907=_0x2d3463;break;}const _0x41d96c=_0x3d5907[_0x447dbb(0xc6)]();if(_0x41d96c[_0x447dbb(0xc9)](_0x447dbb(0xd1))||_0x41d96c[_0x447dbb(0xc9)](_0x447dbb(0xd4))){const _0x484d87=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x447dbb(0xde)](_0x5b9107);return{'type':'SELECT','isSelectOnly':!_0x484d87,'isDangerous':_0x484d87,'reason':_0x484d87?_0x447dbb(0xdc):undefined};}if(_0x41d96c[_0x447dbb(0xc9)](_0x447dbb(0xda)))return{'type':_0x447dbb(0xda),'isSelectOnly':![],'isDangerous':![]};if(_0x41d96c['startsWith']('UPDATE'))return{'type':'UPDATE','isSelectOnly':![],'isDangerous':![]};if(_0x41d96c['startsWith'](_0x447dbb(0xcd)))return{'type':_0x447dbb(0xcd),'isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x447dbb(0xde)](_0x41d96c))return{'type':_0x447dbb(0xca),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x447dbb(0xd7),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x2f7ed3){const _0x59e331=a159_0x588d,_0x44d673=_0x2f7ed3[_0x59e331(0xc1)](/#\{[^}]*\}/g,'?')[_0x59e331(0xc1)](/\$\{[^}]*\}/g,'?')[_0x59e331(0xc1)](/'[^']*'/g,'\x27\x27')[_0x59e331(0xc1)](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x1132e2=[],_0x31382a=_0x44d673['match'](/FROM\s+([^\s,)(]+)/i);if(_0x31382a?.[0x1])_0x1132e2[_0x59e331(0xd8)](_0x31382a[0x1]['replace'](/[`"]/g,''));for(const _0x339014 of _0x44d673['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x124e98=_0x339014[0x1]?.['replace'](/[`"]/g,'');if(_0x124e98&&!_0x1132e2[_0x59e331(0xc3)](_0x124e98))_0x1132e2[_0x59e331(0xd8)](_0x124e98);}const _0x5ebcc7=_0x44d673['match'](/INTO\s+([^\s(]+)/i);if(_0x5ebcc7?.[0x1]){const _0x1ef1ef=_0x5ebcc7[0x1]['replace'](/[`"]/g,'');if(!_0x1132e2[_0x59e331(0xc3)](_0x1ef1ef))_0x1132e2[_0x59e331(0xd8)](_0x1ef1ef);}const _0x2a888f=_0x44d673[_0x59e331(0xcc)](/UPDATE\s+([^\s,)(]+)/i);if(_0x2a888f?.[0x1]){const _0x55c21d=_0x2a888f[0x1]['replace'](/[`"]/g,'');if(!_0x1132e2[_0x59e331(0xc3)](_0x55c21d))_0x1132e2[_0x59e331(0xd8)](_0x55c21d);}return _0x1132e2;}function extractParameters(_0x2cd413){const _0x19ea64=a159_0x588d,_0x384dbd=new Set();for(const _0x9b07e4 of _0x2cd413[_0x19ea64(0xcb)](/#\{(\w+)\}/g))if(_0x9b07e4[0x1])_0x384dbd[_0x19ea64(0xc4)](_0x9b07e4[0x1]);for(const _0x32f620 of _0x2cd413[_0x19ea64(0xcb)](/\$\{(\w+)\}/g))if(_0x32f620[0x1])_0x384dbd['add'](_0x32f620[0x1]);return Array[_0x19ea64(0xc5)](_0x384dbd);}export function validateSql(_0x300d2a){const _0x47146e=a159_0x588d,_0x561986=detectSqlType(_0x300d2a),_0x2a9214=extractTables(_0x300d2a),_0x66a31c=extractParameters(_0x300d2a);if(_0x561986[_0x47146e(0xd0)])return{'valid':![],'sqlType':_0x561986,'tables':_0x2a9214,'parameters':_0x66a31c,'message':_0x561986['reason']||_0x561986[_0x47146e(0xd2)]+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x561986[_0x47146e(0xd2)]===_0x47146e(0xd7))return{'valid':![],'sqlType':_0x561986,'tables':_0x2a9214,'parameters':_0x66a31c,'message':_0x47146e(0xdd)};return{'valid':!![],'sqlType':_0x561986,'tables':_0x2a9214,'parameters':_0x66a31c,'message':_0x561986[_0x47146e(0xd2)]+_0x47146e(0xc0)+(_0x2a9214['length']?_0x2a9214['join'](',\x20'):_0x47146e(0xcf))+(_0x66a31c['length']?'\x20with\x20parameters:\x20'+_0x66a31c[_0x47146e(0xd3)](',\x20'):'')};}function a159_0x588d(_0x14c859,_0x12b39a){_0x14c859=_0x14c859-0xbb;const _0x487267=a159_0x4872();let _0x588d81=_0x487267[_0x14c859];return _0x588d81;}function a159_0x4872(){const _0x411d27=['matchAll','match','DELETE','32820FbRrXr','unknown\x20table(s)','isDangerous','SELECT','type','join','WITH','1930059QLnoWH','313510DvWCOm','UNKNOWN','push','5200sCufoD','INSERT','1530924bersEG','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','test','1053521TIYWuT','484zwGxwX','454UQBSdy','26967wQzMaS','trim','56WRBHtC','\x20query\x20targeting\x20','replace','268YXAupr','includes','add','from','toUpperCase','25IGPeMV','5914KZHZnC','startsWith','DDL'];a159_0x4872=function(){return _0x411d27;};return a159_0x4872();}
1
+ (function(_0x53ec36,_0x804bf0){const _0x3c07e8=a161_0x20a9,_0x43475f=_0x53ec36();while(!![]){try{const _0x16f81b=-parseInt(_0x3c07e8(0x1e9))/0x1*(parseInt(_0x3c07e8(0x1e2))/0x2)+-parseInt(_0x3c07e8(0x1e5))/0x3*(parseInt(_0x3c07e8(0x1da))/0x4)+-parseInt(_0x3c07e8(0x1d8))/0x5*(-parseInt(_0x3c07e8(0x1e8))/0x6)+parseInt(_0x3c07e8(0x1ef))/0x7*(-parseInt(_0x3c07e8(0x1f2))/0x8)+-parseInt(_0x3c07e8(0x1f7))/0x9+-parseInt(_0x3c07e8(0x1db))/0xa+parseInt(_0x3c07e8(0x1ea))/0xb*(parseInt(_0x3c07e8(0x1d6))/0xc);if(_0x16f81b===_0x804bf0)break;else _0x43475f['push'](_0x43475f['shift']());}catch(_0x12c5a6){_0x43475f['push'](_0x43475f['shift']());}}}(a161_0x5131,0x8ad5d));function a161_0x20a9(_0x181468,_0x581fa1){_0x181468=_0x181468-0x1d1;const _0x513173=a161_0x5131();let _0x20a967=_0x513173[_0x181468];return _0x20a967;}export function detectSqlType(_0x5cf23e){const _0x4bd7ee=a161_0x20a9;if(!_0x5cf23e?.[_0x4bd7ee(0x1d3)]())return{'type':_0x4bd7ee(0x1df),'isSelectOnly':![],'isDangerous':![],'reason':_0x4bd7ee(0x1f8)};const _0x3a416a=_0x5cf23e['replace'](/#\{[^}]*\}/g,'?')[_0x4bd7ee(0x1d2)](/\$\{[^}]*\}/g,'?')[_0x4bd7ee(0x1d2)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x4bd7ee(0x1d2)](/\/\*[\s\S]*?\*\//g,'')[_0x4bd7ee(0x1d3)](),_0x2d7e56=_0x3a416a[_0x4bd7ee(0x1d5)]('\x0a');let _0x305a68='';for(const _0x51b203 of _0x2d7e56){const _0x4e5cd1=_0x51b203[_0x4bd7ee(0x1d3)]();if(!_0x4e5cd1||_0x4e5cd1[_0x4bd7ee(0x1dd)]('--')||_0x4e5cd1[_0x4bd7ee(0x1dd)]('/*'))continue;_0x305a68=_0x4e5cd1;break;}const _0x2ec706=_0x305a68[_0x4bd7ee(0x1f9)]();if(_0x2ec706[_0x4bd7ee(0x1dd)]('SELECT')||_0x2ec706[_0x4bd7ee(0x1dd)]('WITH')){const _0x2b5df1=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x4bd7ee(0x1d9)](_0x3a416a);return{'type':_0x4bd7ee(0x1ec),'isSelectOnly':!_0x2b5df1,'isDangerous':_0x2b5df1,'reason':_0x2b5df1?_0x4bd7ee(0x1e7):undefined};}if(_0x2ec706['startsWith'](_0x4bd7ee(0x1e1)))return{'type':_0x4bd7ee(0x1e1),'isSelectOnly':![],'isDangerous':![]};if(_0x2ec706['startsWith'](_0x4bd7ee(0x1f3)))return{'type':'UPDATE','isSelectOnly':![],'isDangerous':![]};if(_0x2ec706['startsWith'](_0x4bd7ee(0x1f5)))return{'type':_0x4bd7ee(0x1f5),'isSelectOnly':![],'isDangerous':!![],'reason':_0x4bd7ee(0x1f4)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x4bd7ee(0x1d9)](_0x2ec706))return{'type':_0x4bd7ee(0x1d1),'isSelectOnly':![],'isDangerous':!![],'reason':_0x4bd7ee(0x1e0)};return{'type':_0x4bd7ee(0x1df),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x150cc1){const _0x12ce93=a161_0x20a9,_0xfb5a1c=_0x150cc1[_0x12ce93(0x1d2)](/#\{[^}]*\}/g,'?')[_0x12ce93(0x1d2)](/\$\{[^}]*\}/g,'?')[_0x12ce93(0x1d2)](/'[^']*'/g,'\x27\x27')[_0x12ce93(0x1d2)](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x3695a0=[],_0x1f7e5a=_0xfb5a1c[_0x12ce93(0x1de)](/FROM\s+([^\s,)(]+)/i);if(_0x1f7e5a?.[0x1])_0x3695a0[_0x12ce93(0x1f6)](_0x1f7e5a[0x1][_0x12ce93(0x1d2)](/[`"]/g,''));for(const _0x265135 of _0xfb5a1c[_0x12ce93(0x1d7)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x521f54=_0x265135[0x1]?.[_0x12ce93(0x1d2)](/[`"]/g,'');if(_0x521f54&&!_0x3695a0[_0x12ce93(0x1e6)](_0x521f54))_0x3695a0[_0x12ce93(0x1f6)](_0x521f54);}const _0x3ccfb6=_0xfb5a1c[_0x12ce93(0x1de)](/INTO\s+([^\s(]+)/i);if(_0x3ccfb6?.[0x1]){const _0x31973f=_0x3ccfb6[0x1]['replace'](/[`"]/g,'');if(!_0x3695a0[_0x12ce93(0x1e6)](_0x31973f))_0x3695a0['push'](_0x31973f);}const _0x134aef=_0xfb5a1c['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x134aef?.[0x1]){const _0x489127=_0x134aef[0x1][_0x12ce93(0x1d2)](/[`"]/g,'');if(!_0x3695a0[_0x12ce93(0x1e6)](_0x489127))_0x3695a0[_0x12ce93(0x1f6)](_0x489127);}return _0x3695a0;}function extractParameters(_0x445fd2){const _0x186d90=a161_0x20a9,_0x599134=new Set();for(const _0x51c638 of _0x445fd2['matchAll'](/#\{(\w+)\}/g))if(_0x51c638[0x1])_0x599134[_0x186d90(0x1eb)](_0x51c638[0x1]);for(const _0x1929a7 of _0x445fd2[_0x186d90(0x1d7)](/\$\{(\w+)\}/g))if(_0x1929a7[0x1])_0x599134['add'](_0x1929a7[0x1]);return Array['from'](_0x599134);}function a161_0x5131(){const _0x13d54f=['toUpperCase','type','DDL','replace','trim','isDangerous','split','272760tHwAlC','matchAll','491945fZyDRz','test','576364HglPGN','413350aCREvH','\x20with\x20parameters:\x20','startsWith','match','UNKNOWN','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','INSERT','159166olLDep','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','3wawjfk','includes','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','24FkhQmA','1MlpsGF','671WCCyoS','add','SELECT','join','length','39599xaZxSk','reason','unknown\x20table(s)','40IRZmIZ','UPDATE','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','DELETE','push','8263107WJIjxH','SQL\x20content\x20is\x20empty'];a161_0x5131=function(){return _0x13d54f;};return a161_0x5131();}export function validateSql(_0x1dd0bc){const _0x37d865=a161_0x20a9,_0x4a0c9c=detectSqlType(_0x1dd0bc),_0x25ab8b=extractTables(_0x1dd0bc),_0xb3c67c=extractParameters(_0x1dd0bc);if(_0x4a0c9c[_0x37d865(0x1d4)])return{'valid':![],'sqlType':_0x4a0c9c,'tables':_0x25ab8b,'parameters':_0xb3c67c,'message':_0x4a0c9c[_0x37d865(0x1f0)]||_0x4a0c9c[_0x37d865(0x1fa)]+_0x37d865(0x1e3)};if(_0x4a0c9c[_0x37d865(0x1fa)]===_0x37d865(0x1df))return{'valid':![],'sqlType':_0x4a0c9c,'tables':_0x25ab8b,'parameters':_0xb3c67c,'message':_0x37d865(0x1e4)};return{'valid':!![],'sqlType':_0x4a0c9c,'tables':_0x25ab8b,'parameters':_0xb3c67c,'message':_0x4a0c9c[_0x37d865(0x1fa)]+'\x20query\x20targeting\x20'+(_0x25ab8b[_0x37d865(0x1ee)]?_0x25ab8b[_0x37d865(0x1ed)](',\x20'):_0x37d865(0x1f1))+(_0xb3c67c[_0x37d865(0x1ee)]?_0x37d865(0x1dc)+_0xb3c67c[_0x37d865(0x1ed)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a160_0x52120c=a160_0x1b3a;(function(_0x267830,_0x486c5f){const _0xe1da9=a160_0x1b3a,_0x50b16f=_0x267830();while(!![]){try{const _0x440344=-parseInt(_0xe1da9(0x175))/0x1+parseInt(_0xe1da9(0x172))/0x2*(parseInt(_0xe1da9(0x17a))/0x3)+parseInt(_0xe1da9(0x17c))/0x4*(parseInt(_0xe1da9(0x16b))/0x5)+-parseInt(_0xe1da9(0x16c))/0x6+parseInt(_0xe1da9(0x179))/0x7*(-parseInt(_0xe1da9(0x178))/0x8)+-parseInt(_0xe1da9(0x177))/0x9+parseInt(_0xe1da9(0x16f))/0xa*(parseInt(_0xe1da9(0x16d))/0xb);if(_0x440344===_0x486c5f)break;else _0x50b16f['push'](_0x50b16f['shift']());}catch(_0x5bc868){_0x50b16f['push'](_0x50b16f['shift']());}}}(a160_0x4a9b,0x36fed));function a160_0x4a9b(){const _0x43bc95=['Run\x20`','345320gzvxgO','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','1250712ipNCFV','488hgDBrd','3227qIGsfQ','3PVNvYK','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','1196fHKyNr','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','5305UtvWev','1310028DquBtR','539kjlpYI','Tip:\x20`','44780ofzGCj','Set\x20appcode\x20via\x20`','\x0a\x20\x20\x20\x20\x20\x20\x20','838694NsfiIS','\x20auth`\x20to\x20login\x20first.'];a160_0x4a9b=function(){return _0x43bc95;};return a160_0x4a9b();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a160_0x1b3a(_0x250e36,_0x33ea31){_0x250e36=_0x250e36-0x16b;const _0x4a9bf9=a160_0x4a9b();let _0x1b3ab0=_0x4a9bf9[_0x250e36];return _0x1b3ab0;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a160_0x52120c(0x174)+CLI_BIN_NAME+a160_0x52120c(0x173),'configMissingHint':[a160_0x52120c(0x170)+CLI_BIN_NAME+a160_0x52120c(0x176),a160_0x52120c(0x16e)+CLI_BIN_NAME+a160_0x52120c(0x17b)]['join'](a160_0x52120c(0x171)),'notInProjectHint':a160_0x52120c(0x17d)});
1
+ const a162_0x14bf65=a162_0x1ba3;(function(_0x38758d,_0x1bc0a6){const _0x626d96=a162_0x1ba3,_0x29b235=_0x38758d();while(!![]){try{const _0x3be26a=-parseInt(_0x626d96(0x135))/0x1+-parseInt(_0x626d96(0x133))/0x2+-parseInt(_0x626d96(0x139))/0x3+parseInt(_0x626d96(0x13a))/0x4+-parseInt(_0x626d96(0x13c))/0x5*(-parseInt(_0x626d96(0x13d))/0x6)+-parseInt(_0x626d96(0x13b))/0x7*(parseInt(_0x626d96(0x131))/0x8)+parseInt(_0x626d96(0x134))/0x9*(parseInt(_0x626d96(0x130))/0xa);if(_0x3be26a===_0x1bc0a6)break;else _0x29b235['push'](_0x29b235['shift']());}catch(_0x38f3c4){_0x29b235['push'](_0x29b235['shift']());}}}(a162_0x3247,0x61736));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a162_0x3247(){const _0x51eb2d=['15VqsYda','489690owMnsA','join','Tip:\x20`','Run\x20`','10GlLSBP','32rGGBuL','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','1085596plaXyH','18240633uJZkNm','573091NukZGU','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','\x20auth`\x20to\x20login\x20first.','Set\x20appcode\x20via\x20`','2073474zkQnPm','963340WZppYW','535871NCFXKY'];a162_0x3247=function(){return _0x51eb2d;};return a162_0x3247();}import{CLI_BIN_NAME}from'./constant/cli.js';function a162_0x1ba3(_0x3c957b,_0xe3c715){_0x3c957b=_0x3c957b-0x130;const _0x324790=a162_0x3247();let _0x1ba302=_0x324790[_0x3c957b];return _0x1ba302;}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a162_0x14bf65(0x140)+CLI_BIN_NAME+a162_0x14bf65(0x137),'configMissingHint':[a162_0x14bf65(0x138)+CLI_BIN_NAME+a162_0x14bf65(0x132),a162_0x14bf65(0x13f)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.'][a162_0x14bf65(0x13e)]('\x0a\x20\x20\x20\x20\x20\x20\x20'),'notInProjectHint':a162_0x14bf65(0x136)});
@@ -1 +1 @@
1
- (function(_0x45ef03,_0x2510ed){var _0x38267f=a161_0xd06e,_0x4d0d0c=_0x45ef03();while(!![]){try{var _0x2a891b=parseInt(_0x38267f(0x9e))/0x1*(parseInt(_0x38267f(0xa9))/0x2)+-parseInt(_0x38267f(0xa6))/0x3*(parseInt(_0x38267f(0xa2))/0x4)+parseInt(_0x38267f(0xa5))/0x5+parseInt(_0x38267f(0xa1))/0x6*(-parseInt(_0x38267f(0xa7))/0x7)+parseInt(_0x38267f(0xa4))/0x8*(-parseInt(_0x38267f(0xa0))/0x9)+parseInt(_0x38267f(0xa8))/0xa+parseInt(_0x38267f(0xa3))/0xb*(parseInt(_0x38267f(0x9f))/0xc);if(_0x2a891b===_0x2510ed)break;else _0x4d0d0c['push'](_0x4d0d0c['shift']());}catch(_0x235325){_0x4d0d0c['push'](_0x4d0d0c['shift']());}}}(a161_0x5e02,0x862c1));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a161_0xd06e(_0x19edca,_0x2f189a){_0x19edca=_0x19edca-0x9e;var _0x5e0297=a161_0x5e02();var _0xd06e9d=_0x5e0297[_0x19edca];return _0xd06e9d;}import{buildAllFlags as a161_0x376f2e}from'@lovrabet/cli-framework';function a161_0x5e02(){var _0x777cd8=['129mJyick','7161609csUbRZ','5671300GYjNIU','70ENZZIJ','22171RYkfqA','60yPUagT','5400tAOcku','6PRWEik','68028zAcQwu','2279453ICWPwJ','5464PNjbdn','1672635NqBxkb'];a161_0x5e02=function(){return _0x777cd8;};return a161_0x5e02();}export function buildAllFlags(_0x4030a6){return a161_0x376f2e(_0x4030a6,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ function a163_0x192e(){var _0x4245dc=['6jFZiTr','5535jTweDL','843304QKjxpR','1829044KHXTqu','334047KThghe','20NJkInl','2562549YqoqlZ','167045yDyEjZ','489PgbCOE','5144blBKOI','4004TnnkJd'];a163_0x192e=function(){return _0x4245dc;};return a163_0x192e();}function a163_0x2cc8(_0x5913f8,_0x38480a){_0x5913f8=_0x5913f8-0x12a;var _0x192e63=a163_0x192e();var _0x2cc81b=_0x192e63[_0x5913f8];return _0x2cc81b;}(function(_0x172bb7,_0x5cc9ed){var _0xb33d87=a163_0x2cc8,_0x1cf6f4=_0x172bb7();while(!![]){try{var _0x581d4c=-parseInt(_0xb33d87(0x12f))/0x1+-parseInt(_0xb33d87(0x12d))/0x2+-parseInt(_0xb33d87(0x133))/0x3*(parseInt(_0xb33d87(0x12a))/0x4)+-parseInt(_0xb33d87(0x132))/0x5*(-parseInt(_0xb33d87(0x12b))/0x6)+parseInt(_0xb33d87(0x12e))/0x7+-parseInt(_0xb33d87(0x134))/0x8*(-parseInt(_0xb33d87(0x12c))/0x9)+-parseInt(_0xb33d87(0x130))/0xa*(-parseInt(_0xb33d87(0x131))/0xb);if(_0x581d4c===_0x5cc9ed)break;else _0x1cf6f4['push'](_0x1cf6f4['shift']());}catch(_0x5c2c4b){_0x1cf6f4['push'](_0x1cf6f4['shift']());}}}(a163_0x192e,0x39e92));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a163_0xecc028}from'@lovrabet/cli-framework';export function buildAllFlags(_0xf8c7b4){return a163_0xecc028(_0xf8c7b4,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- function a162_0x2241(_0x2d61d7,_0x22c650){_0x2d61d7=_0x2d61d7-0x85;const _0x5106ad=a162_0x5106();let _0x224140=_0x5106ad[_0x2d61d7];return _0x224140;}function a162_0x5106(){const _0x2324c0=['5575coAGyj','211060AzweqW','2844gvTKmC','4022166yccGzL','374DLWIZZ','validateFlags','5537178BDRHds','428136ZqIDXr','2112498FXSZmH','294ClnYcc','1214oyMgYI','147EjNLcL'];a162_0x5106=function(){return _0x2324c0;};return a162_0x5106();}const a162_0x4ebbdd=a162_0x2241;(function(_0x1f86fa,_0xfd9ca6){const _0xb15cb7=a162_0x2241,_0xb15178=_0x1f86fa();while(!![]){try{const _0x761097=parseInt(_0xb15cb7(0x86))/0x1*(parseInt(_0xb15cb7(0x87))/0x2)+-parseInt(_0xb15cb7(0x85))/0x3+-parseInt(_0xb15cb7(0x8b))/0x4*(parseInt(_0xb15cb7(0x89))/0x5)+parseInt(_0xb15cb7(0x8c))/0x6+-parseInt(_0xb15cb7(0x88))/0x7*(-parseInt(_0xb15cb7(0x90))/0x8)+-parseInt(_0xb15cb7(0x8f))/0x9+-parseInt(_0xb15cb7(0x8a))/0xa*(-parseInt(_0xb15cb7(0x8d))/0xb);if(_0x761097===_0xfd9ca6)break;else _0xb15178['push'](_0xb15178['shift']());}catch(_0xcaf539){_0xb15178['push'](_0xb15178['shift']());}}}(a162_0x5106,0x8d23b));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a162_0x4ebbdd(0x8e)];
1
+ const a164_0x294578=a164_0x2734;(function(_0x1704da,_0x5764ad){const _0x429241=a164_0x2734,_0x43303b=_0x1704da();while(!![]){try{const _0xe23ca=parseInt(_0x429241(0x166))/0x1+-parseInt(_0x429241(0x16a))/0x2*(parseInt(_0x429241(0x167))/0x3)+parseInt(_0x429241(0x160))/0x4*(-parseInt(_0x429241(0x165))/0x5)+parseInt(_0x429241(0x164))/0x6+-parseInt(_0x429241(0x168))/0x7+parseInt(_0x429241(0x163))/0x8+parseInt(_0x429241(0x161))/0x9;if(_0xe23ca===_0x5764ad)break;else _0x43303b['push'](_0x43303b['shift']());}catch(_0x4ef370){_0x43303b['push'](_0x43303b['shift']());}}}(a164_0x3bc9,0x881ea));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a164_0x2734(_0x4f8127,_0x33f8a1){_0x4f8127=_0x4f8127-0x160;const _0x3bc99a=a164_0x3bc9();let _0x273487=_0x3bc99a[_0x4f8127];return _0x273487;}export const parseFlags=helpers[a164_0x294578(0x162)];export const validateFlags=helpers[a164_0x294578(0x169)];function a164_0x3bc9(){const _0x378226=['1083014KUsddt','2913YbZsfv','7048223VmohbW','validateFlags','832GneRrz','91792WjxAus','5469102WDqKuh','parseFlags','3691384yFzWFi','3303552aVmJbd','160haxnSS'];a164_0x3bc9=function(){return _0x378226;};return a164_0x3bc9();}
@@ -1 +1 @@
1
- const a163_0x5ca747=a163_0x20bd;(function(_0x35afee,_0x4f05c9){const _0x34da2e=a163_0x20bd,_0x5850bb=_0x35afee();while(!![]){try{const _0x412d3d=parseInt(_0x34da2e(0x18e))/0x1*(parseInt(_0x34da2e(0x18f))/0x2)+-parseInt(_0x34da2e(0x197))/0x3+-parseInt(_0x34da2e(0x195))/0x4+-parseInt(_0x34da2e(0x193))/0x5+-parseInt(_0x34da2e(0x194))/0x6*(parseInt(_0x34da2e(0x189))/0x7)+parseInt(_0x34da2e(0x196))/0x8*(parseInt(_0x34da2e(0x190))/0x9)+-parseInt(_0x34da2e(0x198))/0xa*(-parseInt(_0x34da2e(0x191))/0xb);if(_0x412d3d===_0x4f05c9)break;else _0x5850bb['push'](_0x5850bb['shift']());}catch(_0x26c75d){_0x5850bb['push'](_0x5850bb['shift']());}}}(a163_0x4c3f,0xeec78));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a163_0x20bd(_0x6884fc,_0x27a223){_0x6884fc=_0x6884fc-0x189;const _0x4c3f97=a163_0x4c3f();let _0x20bd16=_0x4c3f97[_0x6884fc];return _0x20bd16;}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':_0x4eb6a9=>serviceGroups[a163_0x5ca747(0x18a)](_0x4eb6a9),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a163_0x5ca747(0x192)+CLI_BIN_NAME+'\x20project\x20init`\x20or\x20--appcode).','serviceUsageSuffix':'\x20[args]\x20[flags]','includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x4946cb){const _0x55fc2d=a163_0x5ca747;return generators[_0x55fc2d(0x18c)](_0x4946cb);}export const generateServiceHelp=generators[a163_0x5ca747(0x18d)];function a163_0x4c3f(){const _0x160646=['1512WVLLGW','44lmnjPJ','Requires\x20appcode\x20(set\x20via\x20`','2461895KYoEHX','78GGFDau','248312HuwNTa','77464VEEpGI','4994025QmxSkX','3263020NBsSRW','747019SIXOim','get','generateFullHelp','generateCommandHelp','generateServiceHelp','150231yrCSEY','22OnPHDe'];a163_0x4c3f=function(){return _0x160646;};return a163_0x4c3f();}export const generateFullHelp=generators[a163_0x5ca747(0x18b)];
1
+ const a165_0x348856=a165_0x5907;(function(_0x3e74b9,_0x9eb8a8){const _0x4f1825=a165_0x5907,_0x3d545d=_0x3e74b9();while(!![]){try{const _0x2e7e8c=parseInt(_0x4f1825(0xc1))/0x1+-parseInt(_0x4f1825(0xc6))/0x2+-parseInt(_0x4f1825(0xc3))/0x3+parseInt(_0x4f1825(0xc0))/0x4+-parseInt(_0x4f1825(0xcd))/0x5*(parseInt(_0x4f1825(0xc8))/0x6)+-parseInt(_0x4f1825(0xc5))/0x7*(-parseInt(_0x4f1825(0xc2))/0x8)+-parseInt(_0x4f1825(0xbf))/0x9*(-parseInt(_0x4f1825(0xc4))/0xa);if(_0x2e7e8c===_0x9eb8a8)break;else _0x3d545d['push'](_0x3d545d['shift']());}catch(_0x1bdba0){_0x3d545d['push'](_0x3d545d['shift']());}}}(a165_0x4717,0x26400));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':_0x16085d=>serviceGroups['get'](_0x16085d),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a165_0x348856(0xc7)+CLI_BIN_NAME+a165_0x348856(0xcb),'serviceUsageSuffix':a165_0x348856(0xca),'includeWildcardExtraInFullHelp':!![]});function a165_0x4717(){const _0x49e03b=['16737MnVUFx','436346KuiPFN','Requires\x20appcode\x20(set\x20via\x20`','186SVJCOg','generateFullHelp','\x20[args]\x20[flags]','\x20project\x20init`\x20or\x20--appcode).','generateCommandHelp','7890aedVUq','generateServiceHelp','333EnNrua','243684viVjje','27584LWjLQI','32PeMozD','295644BopvEa','114660xjtTNN'];a165_0x4717=function(){return _0x49e03b;};return a165_0x4717();}function a165_0x5907(_0x1878df,_0x3d0d14){_0x1878df=_0x1878df-0xbf;const _0x4717b1=a165_0x4717();let _0x590775=_0x4717b1[_0x1878df];return _0x590775;}export function generateCommandHelp(_0x109183){const _0x370d4b=a165_0x348856;return generators[_0x370d4b(0xcc)](_0x109183);}export const generateServiceHelp=generators[a165_0x348856(0xce)];export const generateFullHelp=generators[a165_0x348856(0xc9)];
@@ -1 +1 @@
1
- (function(_0x278965,_0x4baa03){var _0x247439=a164_0x2f78,_0x25ac63=_0x278965();while(!![]){try{var _0x243412=parseInt(_0x247439(0xae))/0x1+parseInt(_0x247439(0xac))/0x2+parseInt(_0x247439(0xa8))/0x3+-parseInt(_0x247439(0xa9))/0x4+parseInt(_0x247439(0xa7))/0x5*(parseInt(_0x247439(0xaf))/0x6)+parseInt(_0x247439(0xad))/0x7*(parseInt(_0x247439(0xaa))/0x8)+-parseInt(_0x247439(0xab))/0x9;if(_0x243412===_0x4baa03)break;else _0x25ac63['push'](_0x25ac63['shift']());}catch(_0x4f080d){_0x25ac63['push'](_0x25ac63['shift']());}}}(a164_0x35b5,0xa4620));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 a164_0x2f78(_0x2b2027,_0x43120a){_0x2b2027=_0x2b2027-0xa7;var _0x35b525=a164_0x35b5();var _0x2f7806=_0x35b525[_0x2b2027];return _0x2f7806;}export{extractList,extractPaging}from'../framework/response.js';function a164_0x35b5(){var _0x5a87ed=['7fudgxh','409707lSvaNf','4490742NinjTH','5YCDBeU','2804610IvThKr','4494232gTlyQp','4624376iTijhW','10134711NOPybY','503736NcVcAV'];a164_0x35b5=function(){return _0x5a87ed;};return a164_0x35b5();}export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x448991,_0x304c40){var _0x23f2dc=a166_0x48ad,_0x1c5a7f=_0x448991();while(!![]){try{var _0x41f0fc=parseInt(_0x23f2dc(0x1c7))/0x1*(-parseInt(_0x23f2dc(0x1c3))/0x2)+-parseInt(_0x23f2dc(0x1c8))/0x3+parseInt(_0x23f2dc(0x1c5))/0x4+-parseInt(_0x23f2dc(0x1c4))/0x5+-parseInt(_0x23f2dc(0x1c9))/0x6+parseInt(_0x23f2dc(0x1c1))/0x7*(parseInt(_0x23f2dc(0x1c2))/0x8)+parseInt(_0x23f2dc(0x1c6))/0x9;if(_0x41f0fc===_0x304c40)break;else _0x1c5a7f['push'](_0x1c5a7f['shift']());}catch(_0x46c5e7){_0x1c5a7f['push'](_0x1c5a7f['shift']());}}}(a166_0x57db,0xd8cf1));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a166_0x57db(){var _0x20e6ab=['100904JGlbnv','9514krAURs','5483350KOJXQc','5855776wFOcyz','23753691YUZSDE','311qgmVLI','1539111GFOrMD','5902464nmeRrP','476Jticut'];a166_0x57db=function(){return _0x20e6ab;};return a166_0x57db();}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';function a166_0x48ad(_0x429c5f,_0x41197b){_0x429c5f=_0x429c5f-0x1c1;var _0x57dbbe=a166_0x57db();var _0x48ad74=_0x57dbbe[_0x429c5f];return _0x48ad74;}export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x12af75,_0x1be803){const _0x317b17=a165_0x1bf6,_0x2a614b=_0x12af75();while(!![]){try{const _0x1c0688=-parseInt(_0x317b17(0x151))/0x1+-parseInt(_0x317b17(0x14d))/0x2*(-parseInt(_0x317b17(0x152))/0x3)+parseInt(_0x317b17(0x154))/0x4+-parseInt(_0x317b17(0x14f))/0x5+-parseInt(_0x317b17(0x150))/0x6+parseInt(_0x317b17(0x155))/0x7+-parseInt(_0x317b17(0x153))/0x8*(-parseInt(_0x317b17(0x14e))/0x9);if(_0x1c0688===_0x1be803)break;else _0x2a614b['push'](_0x2a614b['shift']());}catch(_0x4570b8){_0x2a614b['push'](_0x2a614b['shift']());}}}(a165_0x8f04,0x1f17f));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a165_0x1bf6(_0x373a84,_0x2f5268){_0x373a84=_0x373a84-0x14d;const _0x8f04e8=a165_0x8f04();let _0x1bf668=_0x8f04e8[_0x373a84];return _0x1bf668;}function a165_0x8f04(){const _0x186904=['1263285TsGeUC','813072tRMhoW','48555XzdKzx','99069wZuAtB','424tvYxpU','605248sBgWMG','411719HGkGhQ','10IFFKDI','32067QRUQQk'];a165_0x8f04=function(){return _0x186904;};return a165_0x8f04();}
1
+ (function(_0xa42372,_0x5c4b14){const _0x30861c=a167_0xcea1,_0x5ce5a0=_0xa42372();while(!![]){try{const _0x663565=-parseInt(_0x30861c(0x116))/0x1*(parseInt(_0x30861c(0x113))/0x2)+parseInt(_0x30861c(0x110))/0x3+-parseInt(_0x30861c(0x10f))/0x4*(parseInt(_0x30861c(0x118))/0x5)+parseInt(_0x30861c(0x10e))/0x6+-parseInt(_0x30861c(0x117))/0x7*(-parseInt(_0x30861c(0x115))/0x8)+parseInt(_0x30861c(0x112))/0x9*(-parseInt(_0x30861c(0x114))/0xa)+-parseInt(_0x30861c(0x111))/0xb*(-parseInt(_0x30861c(0x119))/0xc);if(_0x663565===_0x5c4b14)break;else _0x5ce5a0['push'](_0x5ce5a0['shift']());}catch(_0xd905e9){_0x5ce5a0['push'](_0x5ce5a0['shift']());}}}(a167_0x5f24,0xa8d18));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a167_0xcea1(_0x577521,_0x367f38){_0x577521=_0x577521-0x10e;const _0x5f24bf=a167_0x5f24();let _0xcea162=_0x5f24bf[_0x577521];return _0xcea162;}function a167_0x5f24(){const _0x98d1a1=['2888KGpQee','3020121FfdNIP','935ZJCTux','10080297fMghfo','2MhDWrS','10pmciOu','15192gfyAgK','54146xtztNu','343tVnaKt','5165gZNtkX','84300MRXfYo','5487612JyBiVo'];a167_0x5f24=function(){return _0x98d1a1;};return a167_0x5f24();}
@@ -1 +1 @@
1
- (function(_0x416f08,_0x128396){var _0xc96f73=a166_0xe800,_0x27ce7b=_0x416f08();while(!![]){try{var _0x2fa397=-parseInt(_0xc96f73(0x180))/0x1+-parseInt(_0xc96f73(0x181))/0x2*(-parseInt(_0xc96f73(0x185))/0x3)+parseInt(_0xc96f73(0x17c))/0x4*(-parseInt(_0xc96f73(0x17b))/0x5)+parseInt(_0xc96f73(0x17e))/0x6*(-parseInt(_0xc96f73(0x17f))/0x7)+parseInt(_0xc96f73(0x182))/0x8+-parseInt(_0xc96f73(0x183))/0x9*(parseInt(_0xc96f73(0x17d))/0xa)+parseInt(_0xc96f73(0x184))/0xb;if(_0x2fa397===_0x128396)break;else _0x27ce7b['push'](_0x27ce7b['shift']());}catch(_0x48f613){_0x27ce7b['push'](_0x27ce7b['shift']());}}}(a166_0xe9b1,0x9e29e));function a166_0xe800(_0x19bf64,_0x592965){_0x19bf64=_0x19bf64-0x17b;var _0xe9b19f=a166_0xe9b1();var _0xe800e6=_0xe9b19f[_0x19bf64];return _0xe800e6;}function a166_0xe9b1(){var _0x42e383=['2575581qvmkXy','2330MYMEJY','212zdOEAA','9129290qawaZu','6GbKTsR','5667053iVpYFw','443581CdgKSI','2ikeqyQ','4024736SzlITL','9GOnxqD','16247066SucSfk'];a166_0xe9b1=function(){return _0x42e383;};return a166_0xe9b1();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ function a168_0x2c01(_0x668873,_0x4bf6e3){_0x668873=_0x668873-0x191;var _0x523b6d=a168_0x523b();var _0x2c0102=_0x523b6d[_0x668873];return _0x2c0102;}(function(_0x5565dc,_0x3b1b5d){var _0x1de95a=a168_0x2c01,_0x4ead0f=_0x5565dc();while(!![]){try{var _0xafad7c=-parseInt(_0x1de95a(0x19b))/0x1*(parseInt(_0x1de95a(0x195))/0x2)+parseInt(_0x1de95a(0x19a))/0x3*(-parseInt(_0x1de95a(0x193))/0x4)+parseInt(_0x1de95a(0x191))/0x5+-parseInt(_0x1de95a(0x197))/0x6+parseInt(_0x1de95a(0x198))/0x7*(-parseInt(_0x1de95a(0x199))/0x8)+parseInt(_0x1de95a(0x194))/0x9*(-parseInt(_0x1de95a(0x192))/0xa)+parseInt(_0x1de95a(0x196))/0xb;if(_0xafad7c===_0x3b1b5d)break;else _0x4ead0f['push'](_0x4ead0f['shift']());}catch(_0x116816){_0x4ead0f['push'](_0x4ead0f['shift']());}}}(a168_0x523b,0xbc799));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a168_0x523b(){var _0x571965=['4gOcHCW','873AtfSGY','64586bdxpko','48648941btwiKR','5766528gPUxjs','2760429xuusMu','8sloYjX','3119079zhVqDd','44mJiyXz','2528775Kkkxlw','35090saUOwM'];a168_0x523b=function(){return _0x571965;};return a168_0x523b();}
@@ -1 +1 @@
1
- (function(_0xb97823,_0x259479){const _0x28fec2=a167_0x1f44,_0x1b22be=_0xb97823();while(!![]){try{const _0x5e0a66=parseInt(_0x28fec2(0x182))/0x1+parseInt(_0x28fec2(0x185))/0x2+-parseInt(_0x28fec2(0x195))/0x3*(parseInt(_0x28fec2(0x17f))/0x4)+parseInt(_0x28fec2(0x188))/0x5*(parseInt(_0x28fec2(0x18c))/0x6)+parseInt(_0x28fec2(0x18e))/0x7*(-parseInt(_0x28fec2(0x18d))/0x8)+-parseInt(_0x28fec2(0x186))/0x9+parseInt(_0x28fec2(0x190))/0xa;if(_0x5e0a66===_0x259479)break;else _0x1b22be['push'](_0x1b22be['shift']());}catch(_0x5d7b0c){_0x1b22be['push'](_0x1b22be['shift']());}}}(a167_0x4f57,0xe55d6));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a167_0x4f57(){const _0x25b059=['.\x20Run\x20`','305605qTFvFp','name','Available\x20aliases:\x20','map','30AaeoGz','67344CwWGkf','161wsgvqr','length','18157030EnZsFq','Unknown\x20alias\x20\x22','some','No\x20api.ts\x20found\x20in\x20','type','3sVTbwc','join','7274764nIhWNY','alias','string','594570CVDdeM','validation','code','2974686KyMotx','11262942PIOhHF'];a167_0x4f57=function(){return _0x25b059;};return a167_0x4f57();}function a167_0x1f44(_0x4b3cbc,_0x5c01f0){_0x4b3cbc=_0x4b3cbc-0x17f;const _0x4f57ec=a167_0x4f57();let _0x1f44d2=_0x4f57ec[_0x4b3cbc];return _0x1f44d2;}export function resolveAliasToCode(_0x3979d1,_0x214058,_0x5aaeca,_0x2d5f51){const _0x33293c=a167_0x1f44,_0x217c18=_0x3979d1['flags'][_0x33293c(0x192)](_0x12f528=>_0x12f528[_0x33293c(0x189)]===_0x33293c(0x184)&&_0x12f528['type']===_0x33293c(0x181)),_0x4705a1=_0x3979d1['flags']['some'](_0x4fbbad=>_0x4fbbad['name']===_0x33293c(0x180)&&_0x4fbbad[_0x33293c(0x194)]===_0x33293c(0x181));if(!_0x217c18||!_0x4705a1)return;const _0x14241d=_0x214058[_0x33293c(0x184)]?String(_0x214058[_0x33293c(0x184)]):'',_0x22e034=_0x214058['alias']?String(_0x214058[_0x33293c(0x180)]):'';if(!_0x14241d&&!_0x22e034)throw CliErrors[_0x33293c(0x183)]('`'+_0x2d5f51+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x22e034&&!_0x14241d){const _0x960716=resolveAlias(_0x5aaeca,_0x22e034);if(!_0x960716){const _0x3a152a=listAliases(_0x5aaeca)[_0x33293c(0x18b)](_0x4055f6=>_0x4055f6[_0x33293c(0x180)]),_0x3bf18b=_0x3a152a[_0x33293c(0x18f)]?_0x33293c(0x18a)+_0x3a152a[_0x33293c(0x196)](',\x20'):_0x33293c(0x193)+_0x5aaeca+_0x33293c(0x187)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors['validation'](_0x33293c(0x191)+_0x22e034+'\x22.\x20'+_0x3bf18b);}_0x214058['code']=_0x960716;}}
1
+ function a169_0x5bc8(){const _0x5a7ca9=['48WrjpAC','2414382ZKzIOF','alias','43672ERqhUu','913512tuQill','\x20api\x20pull`\x20first.','Available\x20aliases:\x20','flags','type','2301873POwCey','154865dUNLoo','string','\x22.\x20','length','join','3205584recmeh','some','code','.\x20Run\x20`','52bIgrZL','name','validation','2676KoYsSf','`\x20requires\x20either\x20--code\x20or\x20--alias.','No\x20api.ts\x20found\x20in\x20','map'];a169_0x5bc8=function(){return _0x5a7ca9;};return a169_0x5bc8();}(function(_0x540a94,_0x29af54){const _0x5607ea=a169_0x5d4e,_0x10b4ad=_0x540a94();while(!![]){try{const _0x4953c0=parseInt(_0x5607ea(0x97))/0x1+-parseInt(_0x5607ea(0x90))/0x2*(-parseInt(_0x5607ea(0x94))/0x3)+parseInt(_0x5607ea(0x8d))/0x4*(parseInt(_0x5607ea(0x84))/0x5)+-parseInt(_0x5607ea(0x95))/0x6+-parseInt(_0x5607ea(0x83))/0x7+parseInt(_0x5607ea(0x98))/0x8+parseInt(_0x5607ea(0x89))/0x9;if(_0x4953c0===_0x29af54)break;else _0x10b4ad['push'](_0x10b4ad['shift']());}catch(_0x17236f){_0x10b4ad['push'](_0x10b4ad['shift']());}}}(a169_0x5bc8,0x3280a));function a169_0x5d4e(_0x3ed5ef,_0x5cba1d){_0x3ed5ef=_0x3ed5ef-0x83;const _0x5bc876=a169_0x5bc8();let _0x5d4e81=_0x5bc876[_0x3ed5ef];return _0x5d4e81;}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x39b319,_0x244844,_0x3ef127,_0x43e8dc){const _0x3e45ee=a169_0x5d4e,_0x399167=_0x39b319[_0x3e45ee(0x9b)][_0x3e45ee(0x8a)](_0xce28e2=>_0xce28e2[_0x3e45ee(0x8e)]===_0x3e45ee(0x8b)&&_0xce28e2[_0x3e45ee(0x9c)]==='string'),_0x3bd5b3=_0x39b319[_0x3e45ee(0x9b)][_0x3e45ee(0x8a)](_0x2fd02f=>_0x2fd02f[_0x3e45ee(0x8e)]===_0x3e45ee(0x96)&&_0x2fd02f[_0x3e45ee(0x9c)]===_0x3e45ee(0x85));if(!_0x399167||!_0x3bd5b3)return;const _0x428744=_0x244844['code']?String(_0x244844[_0x3e45ee(0x8b)]):'',_0x34cb7f=_0x244844['alias']?String(_0x244844[_0x3e45ee(0x96)]):'';if(!_0x428744&&!_0x34cb7f)throw CliErrors['validation']('`'+_0x43e8dc+_0x3e45ee(0x91));if(_0x34cb7f&&!_0x428744){const _0x41fa08=resolveAlias(_0x3ef127,_0x34cb7f);if(!_0x41fa08){const _0x390fa4=listAliases(_0x3ef127)[_0x3e45ee(0x93)](_0x53e717=>_0x53e717['alias']),_0xa14762=_0x390fa4[_0x3e45ee(0x87)]?_0x3e45ee(0x9a)+_0x390fa4[_0x3e45ee(0x88)](',\x20'):_0x3e45ee(0x92)+_0x3ef127+_0x3e45ee(0x8c)+CLI_BIN_NAME+_0x3e45ee(0x99);throw CliErrors[_0x3e45ee(0x8f)]('Unknown\x20alias\x20\x22'+_0x34cb7f+_0x3e45ee(0x86)+_0xa14762);}_0x244844[_0x3e45ee(0x8b)]=_0x41fa08;}}
@@ -1 +1 @@
1
- const a168_0x41801c=a168_0x2ec4;function a168_0x2ec4(_0x1a94df,_0x76b596){_0x1a94df=_0x1a94df-0x1f4;const _0x565149=a168_0x5651();let _0x2ec4f8=_0x565149[_0x1a94df];return _0x2ec4f8;}(function(_0x55345a,_0x40705f){const _0x5b107a=a168_0x2ec4,_0x1bc50c=_0x55345a();while(!![]){try{const _0x495f7f=parseInt(_0x5b107a(0x1ff))/0x1*(parseInt(_0x5b107a(0x20b))/0x2)+parseInt(_0x5b107a(0x207))/0x3+parseInt(_0x5b107a(0x1f8))/0x4*(-parseInt(_0x5b107a(0x202))/0x5)+parseInt(_0x5b107a(0x21d))/0x6*(parseInt(_0x5b107a(0x1f9))/0x7)+parseInt(_0x5b107a(0x212))/0x8+parseInt(_0x5b107a(0x200))/0x9*(-parseInt(_0x5b107a(0x217))/0xa)+-parseInt(_0x5b107a(0x21a))/0xb;if(_0x495f7f===_0x40705f)break;else _0x1bc50c['push'](_0x1bc50c['shift']());}catch(_0x36a725){_0x1bc50c['push'](_0x1bc50c['shift']());}}}(a168_0x5651,0x9af00));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a168_0xad278}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x66796e,_0x46dad4,_0x7b7765=[]){const _0x43b6c4=a168_0x2ec4;return{'rawFlags':_0x46dad4,'args':_0x7b7765,'resolveAppCode':()=>_0x66796e['appCode']||_0x46dad4[_0x43b6c4(0x1fa)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x66796e['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a168_0xad278(_0x46dad4),'defaultFormat':_0x66796e[_0x43b6c4(0x201)],'defaultPageSize':_0x66796e[_0x43b6c4(0x1fd)],'defaultVerbose':_0x66796e[_0x43b6c4(0x214)],'apiDir':_0x66796e[_0x43b6c4(0x20c)],'riskLevel':_0x66796e[_0x43b6c4(0x215)],'selectedAppName':_0x66796e[_0x43b6c4(0x1fe)],'mergedCli':{'defaultApp':_0x66796e[_0x43b6c4(0x20d)],'currentApp':_0x66796e['currentApp'],'appCode':_0x66796e[_0x43b6c4(0x218)],'apps':_0x66796e['apps']}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a168_0x41801c(0x20f)](_0x5438bf=>PIPELINE_FLAG_NAMES[a168_0x41801c(0x204)](_0x5438bf[a168_0x41801c(0x1f4)]))[a168_0x41801c(0x213)](({name:_0x231863,type:_0x27676b,description:_0x52902d})=>({'name':_0x231863,'type':_0x27676b,'description':_0x52902d})),'formatOutput':formatOutput,'getCommandLabel'(_0x5a585b){const _0x4cc0d4=a168_0x41801c;return CLI_BIN_NAME+'\x20'+_0x5a585b[_0x4cc0d4(0x219)]+'\x20'+_0x5a585b[_0x4cc0d4(0x203)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x3e1806){const _0x41049f=a168_0x41801c;return CliErrors[_0x41049f(0x20a)](_0x3e1806);}},async 'prepare'(_0x39ac8f,_0x59d2af,_0x2c1822,_0x35cdd0){const _0x3074e6=a168_0x41801c,_0x27cabf=_0x59d2af['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x39ac8f,_0x2c1822,_0x27cabf,_0x35cdd0);let _0x30645b='';if(_0x39ac8f[_0x3074e6(0x206)]!==![]){_0x30645b=_0x59d2af['resolveCookie']();if(!_0x30645b)throw CliErrors[_0x3074e6(0x209)]();const {setActiveCookie:_0x2dda64}=await import(_0x3074e6(0x1fb));_0x2dda64(_0x30645b);}const _0x4d5868=_0x59d2af['resolveAppCode']()??'';if(_0x39ac8f[_0x3074e6(0x210)]!==![]){if(!_0x4d5868)throw CliErrors[_0x3074e6(0x1f6)](_0x3074e6(0x1f7)+CLI_BIN_NAME+_0x3074e6(0x21c));}return{'defaults':{'booleans':{'verbose':_0x59d2af[_0x3074e6(0x211)]},'numbers':{'pagesize':_0x59d2af['defaultPageSize']}},'extras':{'appCode':_0x4d5868,'cookie':_0x30645b,'apiDomain':_0x59d2af[_0x3074e6(0x216)](),'apiDir':_0x27cabf,'selectedAppName':_0x59d2af[_0x3074e6(0x1fc)],'mergedCli':_0x59d2af[_0x3074e6(0x21b)]}};},async 'confirmHighRisk'({env:_0x37f817,commandLabel:_0x14f0c4}){const _0x3e3639=a168_0x41801c;if(_0x37f817[_0x3e3639(0x20e)])throw CliErrors['validation'](_0x3e3639(0x208)+_0x14f0c4+_0x3e3639(0x21e));await requireConfirmationPrompt({'lines':[_0x3e3639(0x1f5)+_0x14f0c4,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x7c2b25=>CliErrors[_0x3e3639(0x205)](_0x7c2b25)});},async 'finalize'(){const _0x2b0bc6=a168_0x41801c,{clearActiveCookie:_0x2e6de7}=await import(_0x2b0bc6(0x1fb));_0x2e6de7();}};function a168_0x5651(){const _0xcd3a1e=['pageSize','explicitAppName','72158OpHEUR','45sVlTvW','format','5NIrLNr','command','has','cancelled','requiresAuth','2052969FnqhfW','High-risk\x20operation\x20`','authRequired','validation','20rAnfAv','apiDir','defaultApp','isNonInteractive','filter','requiresAppCode','defaultVerbose','7345912rUJQDz','map','verbose','riskLevel','resolveApiDomain','1161400DrFiRU','appCode','service','16992173WQmUGC','mergedCli','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','6XYVmez','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','name','⚠\x20\x20High-risk\x20operation:\x20','configMissing','Set\x20appcode\x20via\x20`','1255684DWTjYG','5248922JavMsd','appcode','../core/api-client.js','selectedAppName'];a168_0x5651=function(){return _0xcd3a1e;};return a168_0x5651();}export async function runCommand(_0xe3cc5c,_0x1940e7){await runCommandWithAdapter(_0xe3cc5c,_0x1940e7,runnerAdapter);}
1
+ const a170_0x4d7a20=a170_0x3f71;(function(_0x55781f,_0x399118){const _0x1297b3=a170_0x3f71,_0x4c2ed8=_0x55781f();while(!![]){try{const _0x1083bf=parseInt(_0x1297b3(0xe9))/0x1+-parseInt(_0x1297b3(0xf9))/0x2+-parseInt(_0x1297b3(0xe7))/0x3+parseInt(_0x1297b3(0xed))/0x4+-parseInt(_0x1297b3(0xf3))/0x5*(-parseInt(_0x1297b3(0xe5))/0x6)+parseInt(_0x1297b3(0xf7))/0x7+-parseInt(_0x1297b3(0xf6))/0x8;if(_0x1083bf===_0x399118)break;else _0x4c2ed8['push'](_0x4c2ed8['shift']());}catch(_0x426faf){_0x4c2ed8['push'](_0x4c2ed8['shift']());}}}(a170_0x31f2,0x962e2));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';function a170_0x3f71(_0x3aa565,_0x29878b){_0x3aa565=_0x3aa565-0xd7;const _0x31f290=a170_0x31f2();let _0x3f7101=_0x31f290[_0x3aa565];return _0x3f7101;}import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a170_0x39abac}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x2d7e20,_0x41fe19,_0x5aa2bf=[]){const _0x13a4a1=a170_0x3f71;return{'rawFlags':_0x41fe19,'args':_0x5aa2bf,'resolveAppCode':()=>_0x2d7e20['appCode']||_0x41fe19[_0x13a4a1(0xe8)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x2d7e20[_0x13a4a1(0xf2)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a170_0x39abac(_0x41fe19),'defaultFormat':_0x2d7e20['format'],'defaultPageSize':_0x2d7e20[_0x13a4a1(0xe6)],'defaultVerbose':_0x2d7e20['verbose'],'apiDir':_0x2d7e20[_0x13a4a1(0xde)],'riskLevel':_0x2d7e20[_0x13a4a1(0xdc)],'selectedAppName':_0x2d7e20['explicitAppName'],'mergedCli':{'defaultApp':_0x2d7e20[_0x13a4a1(0xf5)],'currentApp':_0x2d7e20[_0x13a4a1(0xd7)],'appCode':_0x2d7e20[_0x13a4a1(0xe3)],'apps':_0x2d7e20['apps']}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x2530ae=>PIPELINE_FLAG_NAMES[a170_0x4d7a20(0xdb)](_0x2530ae[a170_0x4d7a20(0xe4)]))[a170_0x4d7a20(0xd8)](({name:_0x7e9f70,type:_0x30604c,description:_0x29a12c})=>({'name':_0x7e9f70,'type':_0x30604c,'description':_0x29a12c})),'formatOutput':formatOutput,'getCommandLabel'(_0xa06751){const _0x1b8700=a170_0x4d7a20;return CLI_BIN_NAME+'\x20'+_0xa06751['service']+'\x20'+_0xa06751[_0x1b8700(0xeb)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x111136){const _0x368d99=a170_0x4d7a20;return CliErrors[_0x368d99(0xf4)](_0x111136);}},async 'prepare'(_0x5eafb7,_0x2fe6ea,_0x4b7578,_0x20e450){const _0x3f3503=a170_0x4d7a20,_0x2f2f0d=_0x2fe6ea['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x5eafb7,_0x4b7578,_0x2f2f0d,_0x20e450);let _0x39ffb0='';if(_0x5eafb7[_0x3f3503(0xec)]!==![]){_0x39ffb0=_0x2fe6ea['resolveCookie']();if(!_0x39ffb0)throw CliErrors[_0x3f3503(0xe2)]();const {setActiveCookie:_0x448e05}=await import(_0x3f3503(0xf1));_0x448e05(_0x39ffb0);}const _0x6df6da=_0x2fe6ea[_0x3f3503(0xea)]()??'';if(_0x5eafb7[_0x3f3503(0xdd)]!==![]){if(!_0x6df6da)throw CliErrors[_0x3f3503(0xe1)](_0x3f3503(0xf8)+CLI_BIN_NAME+_0x3f3503(0xee));}return{'defaults':{'booleans':{'verbose':_0x2fe6ea[_0x3f3503(0xe0)]},'numbers':{'pagesize':_0x2fe6ea[_0x3f3503(0xd9)]}},'extras':{'appCode':_0x6df6da,'cookie':_0x39ffb0,'apiDomain':_0x2fe6ea[_0x3f3503(0xef)](),'apiDir':_0x2f2f0d,'selectedAppName':_0x2fe6ea[_0x3f3503(0xdf)],'mergedCli':_0x2fe6ea[_0x3f3503(0xf0)]}};},async 'confirmHighRisk'({env:_0x5d58c8,commandLabel:_0x5b1218}){const _0x5d4ea7=a170_0x4d7a20;if(_0x5d58c8['isNonInteractive'])throw CliErrors['validation']('High-risk\x20operation\x20`'+_0x5b1218+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':[_0x5d4ea7(0xda)+_0x5b1218,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x3f6ed=>CliErrors['cancelled'](_0x3f6ed)});},async 'finalize'(){const {clearActiveCookie:_0x19cdad}=await import('../core/api-client.js');_0x19cdad();}};function a170_0x31f2(){const _0x7e9432=['1357002lPiKaI','currentApp','map','defaultPageSize','⚠\x20\x20High-risk\x20operation:\x20','has','riskLevel','requiresAppCode','apiDir','selectedAppName','defaultVerbose','configMissing','authRequired','appCode','name','60QCfmNk','pageSize','1914516gqMMfj','appcode','961350ExpKhF','resolveAppCode','command','requiresAuth','3104428eyVApN','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','resolveApiDomain','mergedCli','../core/api-client.js','cookie','589135mqRicZ','validation','defaultApp','17519936gYBrMV','8442532yzyVFI','Set\x20appcode\x20via\x20`'];a170_0x31f2=function(){return _0x7e9432;};return a170_0x31f2();}export async function runCommand(_0x1bfc37,_0x23732b){await runCommandWithAdapter(_0x1bfc37,_0x23732b,runnerAdapter);}
@@ -1 +1 @@
1
- (function(_0x47bb70,_0x506349){const _0x4af725=a169_0x70d2,_0x456f14=_0x47bb70();while(!![]){try{const _0x51ddb2=parseInt(_0x4af725(0x1cc))/0x1+-parseInt(_0x4af725(0x1cd))/0x2*(parseInt(_0x4af725(0x1cf))/0x3)+-parseInt(_0x4af725(0x1c9))/0x4*(parseInt(_0x4af725(0x1cb))/0x5)+-parseInt(_0x4af725(0x1d3))/0x6*(parseInt(_0x4af725(0x1ce))/0x7)+-parseInt(_0x4af725(0x1d1))/0x8*(-parseInt(_0x4af725(0x1ca))/0x9)+-parseInt(_0x4af725(0x1d2))/0xa+parseInt(_0x4af725(0x1d0))/0xb;if(_0x51ddb2===_0x506349)break;else _0x456f14['push'](_0x456f14['shift']());}catch(_0x129a87){_0x456f14['push'](_0x456f14['shift']());}}}(a169_0x48d4,0xd6ff4));import{buildSchemaPayload as a169_0x28217b}from'@lovrabet/cli-framework';function a169_0x70d2(_0xe466bc,_0x53ec06){_0xe466bc=_0xe466bc-0x1c9;const _0x48d4dc=a169_0x48d4();let _0x70d230=_0x48d4dc[_0xe466bc];return _0x70d230;}import{buildAllFlags}from'../framework/build-all-flags.js';function a169_0x48d4(){const _0x52f396=['189JhqMax','4763133FDRXey','52851777bDWEEt','224DGpUKj','16645130QnXjte','34548OdXLIe','824OPbSVy','244548gdUMfV','35235kBXiEQ','174477xtinNX','2AyygUs'];a169_0x48d4=function(){return _0x52f396;};return a169_0x48d4();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x5e4bbb,findDefinition:_0x156172}=await import('../commands/registry.js');return a169_0x28217b({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x5e4bbb,'buildAllFlags':buildAllFlags,'findDefinition':_0x156172});}
1
+ (function(_0x1db51f,_0x49ecf0){const _0x2b4cdc=a171_0x5231,_0xfb9b43=_0x1db51f();while(!![]){try{const _0x52fbe3=parseInt(_0x2b4cdc(0x1bd))/0x1+-parseInt(_0x2b4cdc(0x1bc))/0x2+parseInt(_0x2b4cdc(0x1bb))/0x3+parseInt(_0x2b4cdc(0x1c3))/0x4*(parseInt(_0x2b4cdc(0x1c2))/0x5)+-parseInt(_0x2b4cdc(0x1be))/0x6+parseInt(_0x2b4cdc(0x1c4))/0x7*(parseInt(_0x2b4cdc(0x1c0))/0x8)+parseInt(_0x2b4cdc(0x1bf))/0x9*(-parseInt(_0x2b4cdc(0x1c1))/0xa);if(_0x52fbe3===_0x49ecf0)break;else _0xfb9b43['push'](_0xfb9b43['shift']());}catch(_0x518752){_0xfb9b43['push'](_0xfb9b43['shift']());}}}(a171_0xe90a,0x63575));import{buildSchemaPayload as a171_0x53c46e}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x34ebed,findDefinition:_0x53dd03}=await import('../commands/registry.js');return a171_0x53c46e({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x34ebed,'buildAllFlags':buildAllFlags,'findDefinition':_0x53dd03});}function a171_0x5231(_0x534096,_0x3f8d28){_0x534096=_0x534096-0x1bb;const _0xe90ad=a171_0xe90a();let _0x523169=_0xe90ad[_0x534096];return _0x523169;}function a171_0xe90a(){const _0x270219=['271788ZVUtll','580849UFqSme','2766186tjZtwX','9cDASYE','2863912jEqmIW','3713660apvDLf','85380JpqPyN','68JcYHot','7PbCoet','438186uVDZSR'];a171_0xe90a=function(){return _0x270219;};return a171_0xe90a();}