@lovrabet/rabetbase-cli 2.1.14-beta.2 → 2.2.0-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 (209) 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 -1
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/list.js +1 -1
  58. package/lib/commands/dataset/operations.js +1 -1
  59. package/lib/commands/dataset/relation-create.js +1 -0
  60. package/lib/commands/dataset/relation-delete.js +1 -0
  61. package/lib/commands/dataset/relation-shared.js +1 -0
  62. package/lib/commands/dataset/relation-update.js +1 -0
  63. package/lib/commands/dataset/relations.js +1 -0
  64. package/lib/commands/dataset/rename.js +1 -1
  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/relation-audit.js +1 -0
  103. package/lib/commands/page/shared.js +1 -1
  104. package/lib/commands/page/standard-page-status.js +1 -1
  105. package/lib/commands/page/sync.js +1 -1
  106. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  107. package/lib/commands/project/create/format-elapsed.js +1 -1
  108. package/lib/commands/project/create/main.js +1 -1
  109. package/lib/commands/project/create/non-interactive.js +1 -1
  110. package/lib/commands/project/create/project-template-path.js +1 -1
  111. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  112. package/lib/commands/project/create/use-format-code.js +1 -1
  113. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  114. package/lib/commands/project/index.js +1 -1
  115. package/lib/commands/project/init.js +1 -1
  116. package/lib/commands/project/upgrade.js +1 -1
  117. package/lib/commands/registry.js +1 -1
  118. package/lib/commands/run/index.js +1 -1
  119. package/lib/commands/schema.js +1 -1
  120. package/lib/commands/skill/index.js +1 -1
  121. package/lib/commands/sql/create.js +1 -1
  122. package/lib/commands/sql/delete.js +1 -1
  123. package/lib/commands/sql/detail.js +1 -1
  124. package/lib/commands/sql/exec.js +1 -1
  125. package/lib/commands/sql/index.js +1 -1
  126. package/lib/commands/sql/list.js +1 -1
  127. package/lib/commands/sql/pull.js +1 -1
  128. package/lib/commands/sql/push.js +1 -1
  129. package/lib/commands/sql/save.js +1 -1
  130. package/lib/commands/sql/shared.js +1 -1
  131. package/lib/commands/sql/status.js +1 -1
  132. package/lib/commands/sql/validate.js +1 -1
  133. package/lib/config/schema.js +1 -1
  134. package/lib/constant/cdn.js +1 -1
  135. package/lib/constant/cli.js +1 -1
  136. package/lib/constant/defaults.js +1 -1
  137. package/lib/constant/domain.js +1 -1
  138. package/lib/constant/env.js +1 -1
  139. package/lib/constant/output.js +1 -1
  140. package/lib/constant/paths.js +1 -1
  141. package/lib/constant/risk.js +1 -1
  142. package/lib/context.js +1 -1
  143. package/lib/core/alias-resolver.js +1 -1
  144. package/lib/core/api-client.js +1 -1
  145. package/lib/core/bff/config.js +1 -1
  146. package/lib/core/bff/file-system.js +1 -1
  147. package/lib/core/bff/hash.js +1 -1
  148. package/lib/core/bff/lock.js +1 -1
  149. package/lib/core/bff/utils.js +1 -1
  150. package/lib/core/db-resolver.js +1 -1
  151. package/lib/core/page/file-system.js +1 -1
  152. package/lib/core/page/hash.js +1 -1
  153. package/lib/core/page/lock.js +1 -1
  154. package/lib/core/sql-sync/config.js +1 -1
  155. package/lib/core/sql-sync/file-system.js +1 -1
  156. package/lib/core/sql-sync/hash.js +1 -1
  157. package/lib/core/sql-sync/lock.js +1 -1
  158. package/lib/core/sql-sync/utils.js +1 -1
  159. package/lib/core/sql-validator.js +1 -1
  160. package/lib/errors.js +1 -1
  161. package/lib/framework/build-all-flags.js +1 -1
  162. package/lib/framework/flags.js +1 -1
  163. package/lib/framework/help.js +1 -1
  164. package/lib/framework/index.js +1 -1
  165. package/lib/framework/output.js +1 -1
  166. package/lib/framework/response.js +1 -1
  167. package/lib/framework/runner-alias.js +1 -1
  168. package/lib/framework/runner.js +1 -1
  169. package/lib/framework/schema-export.js +1 -1
  170. package/lib/framework/types.js +1 -1
  171. package/lib/generated/build-info.js +1 -1
  172. package/lib/help.js +1 -1
  173. package/lib/skills/main.js +1 -1
  174. package/lib/skills/npx-skills-add.js +1 -1
  175. package/lib/telemetry/cli-command-trace.js +1 -1
  176. package/lib/telemetry/cli-help-trace.js +1 -1
  177. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  178. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  179. package/lib/telemetry/send-cli-trace-log.js +1 -1
  180. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  181. package/lib/utils/ai_config.js +1 -1
  182. package/lib/utils/apply-jq-filter.js +1 -1
  183. package/lib/utils/cdn-config.js +1 -1
  184. package/lib/utils/check-sdk-version.js +1 -1
  185. package/lib/utils/cli-version-check.js +1 -1
  186. package/lib/utils/cli-version-policy.js +1 -1
  187. package/lib/utils/config.js +1 -1
  188. package/lib/utils/copy-directory.js +1 -1
  189. package/lib/utils/entity-with-id.js +1 -1
  190. package/lib/utils/file-utils.js +1 -1
  191. package/lib/utils/guides-cdn.js +1 -1
  192. package/lib/utils/http-client.js +1 -1
  193. package/lib/utils/is-non-interactive.js +1 -1
  194. package/lib/utils/logger.js +1 -1
  195. package/lib/utils/params.js +1 -1
  196. package/lib/utils/platform.js +1 -1
  197. package/lib/utils/rules-cdn.js +1 -1
  198. package/lib/utils/sleep.js +1 -1
  199. package/lib/utils/template-replacer.js +1 -1
  200. package/lib/utils/update-notice.js +1 -0
  201. package/lib/utils/version.js +1 -1
  202. package/lib/utils/with-active-cookie.js +1 -1
  203. package/lib/utils/write-cli-side-channel.js +1 -1
  204. package/package.json +1 -1
  205. package/lib/commands/dataset/link-create.js +0 -1
  206. package/lib/commands/dataset/link-delete.js +0 -1
  207. package/lib/commands/dataset/link-shared.js +0 -1
  208. package/lib/commands/dataset/link-update.js +0 -1
  209. package/lib/commands/dataset/links.js +0 -1
@@ -1 +1 @@
1
- const a145_0x2305bf=a145_0x2d2c;(function(_0xd41ab,_0x427c79){const _0xd76177=a145_0x2d2c,_0x189e24=_0xd41ab();while(!![]){try{const _0x4c2b35=parseInt(_0xd76177(0xc4))/0x1+parseInt(_0xd76177(0xcc))/0x2*(-parseInt(_0xd76177(0xb8))/0x3)+-parseInt(_0xd76177(0xbf))/0x4+parseInt(_0xd76177(0xc3))/0x5+-parseInt(_0xd76177(0xb4))/0x6*(-parseInt(_0xd76177(0xb1))/0x7)+-parseInt(_0xd76177(0xc1))/0x8*(-parseInt(_0xd76177(0xd3))/0x9)+-parseInt(_0xd76177(0xb3))/0xa*(parseInt(_0xd76177(0xb5))/0xb);if(_0x4c2b35===_0x427c79)break;else _0x189e24['push'](_0x189e24['shift']());}catch(_0x54f359){_0x189e24['push'](_0x189e24['shift']());}}}(a145_0x2239,0x74507));import{access,mkdir,readdir,stat}from'node:fs/promises';import{constants}from'node:fs';function a145_0x2d2c(_0x3bcabb,_0x14624a){_0x3bcabb=_0x3bcabb-0xaf;const _0x2239ab=a145_0x2239();let _0x2d2c68=_0x2239ab[_0x3bcabb];return _0x2d2c68;}import{dirname,join}from'node:path';import{findHookLocationByRemoteId,snakeToCamel}from'../../core/bff/utils.js';export const SUPPORTED_BFF_TYPES=[a145_0x2305bf(0xcb),'ENDPOINT',a145_0x2305bf(0xc0)];export function normalizeBffType(_0xb74623){const _0x557770=a145_0x2305bf;if(!_0xb74623)return undefined;const _0x1abdc0=_0xb74623['trim']()[_0x557770(0xd5)]();return SUPPORTED_BFF_TYPES['includes'](_0x1abdc0)?_0x1abdc0:undefined;}function a145_0x2239(){const _0x528cf8=['code','alias','F_OK','isDirectory','scriptsRootDir','COMMON','4cWHcII','afterScriptId','after','replace','beforeScriptId','ENDPOINT','isFile','3133377OShmDR','.js','toUpperCase','endsWith','operationType','2289TdFuXX','datasetCode','313710XdgCox','1188jDLgld','77WNkSDU','functionNode','push','71853wgPtxQ','HOOK/','name','set','functionName','get','split','1743176gaXUPQ','HOOK','16PAKoKt','all','404070MyAqcB','337850Pqjfoe','before'];a145_0x2239=function(){return _0x528cf8;};return a145_0x2239();}async function scanJsFilesRecursively(_0x2e438c,_0x3630bb){const _0x94ebdd=a145_0x2305bf,_0xce067e=[];try{const _0x5364ca=await readdir(_0x2e438c,{'withFileTypes':!![]});for(const _0x3dd3f9 of _0x5364ca){const _0x3ea3c9=join(_0x2e438c,_0x3dd3f9[_0x94ebdd(0xba)]);if(_0x3dd3f9[_0x94ebdd(0xc9)]())_0xce067e[_0x94ebdd(0xb7)](...await scanJsFilesRecursively(_0x3ea3c9,_0x3630bb+'/'+_0x3dd3f9[_0x94ebdd(0xba)]));else _0x3dd3f9[_0x94ebdd(0xd2)]()&&_0x3dd3f9[_0x94ebdd(0xba)][_0x94ebdd(0xaf)](_0x94ebdd(0xd4))&&_0xce067e[_0x94ebdd(0xb7)]({'lockKey':_0x3630bb+'/'+_0x3dd3f9['name'][_0x94ebdd(0xcf)](/\.js$/,''),'filePath':_0x3ea3c9});}}catch(_0x1b32f4){if(_0x1b32f4[_0x94ebdd(0xc6)]!=='ENOENT')throw _0x1b32f4;}return _0xce067e;}async function scanFlatFunctions(_0x40225b,_0x3fe288){const _0x500f15=a145_0x2305bf,_0x357f0a=join(_0x40225b[_0x500f15(0xca)],_0x3fe288),_0x1f6f91=await scanJsFilesRecursively(_0x357f0a,_0x3fe288);return _0x1f6f91['map'](({lockKey:_0x3989c3,filePath:_0x5578ac})=>({'type':_0x3fe288,'name':_0x3989c3[_0x500f15(0xbe)]('/')['at'](-0x1)??'','filePath':_0x5578ac,'lockKey':_0x3989c3}));}async function scanHookFunctions(_0x259a9c){const _0x390b24=a145_0x2305bf,_0x5c8e4a=join(_0x259a9c[_0x390b24(0xca)],_0x390b24(0xc0)),_0xc24326=[];try{const _0x3af446=await readdir(_0x5c8e4a,{'withFileTypes':!![]});for(const _0x15512b of _0x3af446){if(!_0x15512b[_0x390b24(0xc9)]())continue;const _0x28798b=_0x15512b[_0x390b24(0xba)],_0x27bcf6=join(_0x5c8e4a,_0x28798b),_0x8873d4=await readdir(_0x27bcf6,{'withFileTypes':!![]});for(const _0x291ad6 of _0x8873d4){if(!_0x291ad6[_0x390b24(0xc9)]())continue;const _0x1d5b12=_0x291ad6['name'],_0x5f13b0=join(_0x27bcf6,_0x1d5b12),_0x170f2c=await readdir(_0x5f13b0,{'withFileTypes':!![]});for(const _0x65e7ac of _0x170f2c){if(!_0x65e7ac[_0x390b24(0xc9)]())continue;const _0x582ea0=_0x65e7ac['name'],_0x42ae16=join(_0x5f13b0,_0x582ea0),_0x3179bf=await readdir(_0x42ae16,{'withFileTypes':!![]});for(const _0x45f76b of _0x3179bf){if(!_0x45f76b[_0x390b24(0xd2)]()||!_0x45f76b[_0x390b24(0xba)]['endsWith'](_0x390b24(0xd4)))continue;const _0x44c731=_0x45f76b[_0x390b24(0xba)][_0x390b24(0xcf)](/\.js$/,'');_0xc24326[_0x390b24(0xb7)]({'type':'HOOK','name':_0x44c731,'filePath':join(_0x42ae16,_0x45f76b[_0x390b24(0xba)]),'lockKey':_0x390b24(0xb9)+_0x28798b+'/'+_0x1d5b12+'/'+_0x582ea0+'/'+_0x44c731,'alias':_0x28798b,'operationType':_0x1d5b12,'functionNode':_0x582ea0});}}}}}catch(_0x36a6b1){if(_0x36a6b1[_0x390b24(0xc6)]!=='ENOENT')throw _0x36a6b1;}return _0xc24326;}export async function scanLocalBffFunctions(_0x1c3ccf,_0x584ad8){const _0x2f5835=a145_0x2305bf;if(_0x584ad8==='COMMON'||_0x584ad8==='ENDPOINT')return scanFlatFunctions(_0x1c3ccf,_0x584ad8);if(_0x584ad8===_0x2f5835(0xc0))return scanHookFunctions(_0x1c3ccf);const [_0x31dfeb,_0x429959,_0x101ecb]=await Promise[_0x2f5835(0xc2)]([scanFlatFunctions(_0x1c3ccf,_0x2f5835(0xcb)),scanFlatFunctions(_0x1c3ccf,_0x2f5835(0xd1)),scanHookFunctions(_0x1c3ccf)]);return[..._0x31dfeb,..._0x429959,..._0x101ecb];}export function resolveLocalFilePathFromLockKey(_0x1def8e,_0x2fbd56){const _0x1c693b=a145_0x2305bf;return join(_0x1def8e[_0x1c693b(0xca)],..._0x2fbd56[_0x1c693b(0xbe)]('/'))+_0x1c693b(0xd4);}export function createHookLocationMap(_0x37e7f8){const _0x54ed17=a145_0x2305bf,_0xb3a1d5=new Map();for(const _0x149274 of _0x37e7f8){_0x149274[_0x54ed17(0xd0)]&&_0xb3a1d5['set'](_0x149274[_0x54ed17(0xd0)],{'datasetCode':_0x149274[_0x54ed17(0xb2)],'operationType':snakeToCamel(_0x149274[_0x54ed17(0xb0)]),'functionNode':_0x54ed17(0xc5)}),_0x149274['afterScriptId']&&_0xb3a1d5[_0x54ed17(0xbb)](_0x149274[_0x54ed17(0xcd)],{'datasetCode':_0x149274[_0x54ed17(0xb2)],'operationType':snakeToCamel(_0x149274[_0x54ed17(0xb0)]),'functionNode':_0x54ed17(0xce)});}return _0xb3a1d5;}export function resolveRemoteScriptTarget(_0x1a7e22,_0x34d1d5,_0x5a062b,_0x3501c8,_0x3581d0){const _0x239b90=a145_0x2305bf,_0x312dfe=normalizeBffType(_0x34d1d5['scriptType']);if(!_0x312dfe||!_0x34d1d5['functionName'])return null;if(_0x312dfe===_0x239b90(0xc0)){const _0xe837b3=(_0x34d1d5['id']?_0x5a062b[_0x239b90(0xbd)](_0x34d1d5['id']):undefined)??findHookLocationByRemoteId(_0x3501c8,_0x34d1d5['id']);if(!_0xe837b3)return null;const _0x4a4df4=_0xe837b3[_0x239b90(0xc7)]||_0x3581d0[_0x239b90(0xbd)](_0xe837b3[_0x239b90(0xb2)]),_0x46b82f=_0x4a4df4??_0xe837b3['datasetCode'],_0x81f0ad={..._0xe837b3,'alias':_0x4a4df4},_0x211f55='HOOK/'+_0x46b82f+'/'+_0x81f0ad[_0x239b90(0xb0)]+'/'+_0x81f0ad[_0x239b90(0xb6)]+'/'+_0x34d1d5[_0x239b90(0xbc)];return{'lockKey':_0x211f55,'filePath':resolveLocalFilePathFromLockKey(_0x1a7e22,_0x211f55),'type':_0x239b90(0xc0),'hookLocation':_0x81f0ad};}const _0xd11796=_0x312dfe+'/'+_0x34d1d5[_0x239b90(0xbc)];return{'lockKey':_0xd11796,'filePath':resolveLocalFilePathFromLockKey(_0x1a7e22,_0xd11796),'type':_0x312dfe};}export async function ensureParentDirectory(_0x3d3605){await mkdir(dirname(_0x3d3605),{'recursive':!![]});}export async function fileExists(_0x11dbe3){const _0x2d4790=a145_0x2305bf;try{return await access(_0x11dbe3,constants[_0x2d4790(0xc8)]),!![];}catch{return![];}}export async function directoryExists(_0xb14e1){try{const _0x282099=await stat(_0xb14e1);return _0x282099['isDirectory']();}catch{return![];}}
1
+ const a146_0x1fac7f=a146_0x453e;(function(_0xebb213,_0x79205f){const _0x331e4a=a146_0x453e,_0x336089=_0xebb213();while(!![]){try{const _0x614441=-parseInt(_0x331e4a(0xdb))/0x1*(-parseInt(_0x331e4a(0xe2))/0x2)+parseInt(_0x331e4a(0xda))/0x3+-parseInt(_0x331e4a(0xf0))/0x4+parseInt(_0x331e4a(0xe1))/0x5*(parseInt(_0x331e4a(0xe6))/0x6)+-parseInt(_0x331e4a(0xec))/0x7+-parseInt(_0x331e4a(0xe8))/0x8*(parseInt(_0x331e4a(0xe0))/0x9)+-parseInt(_0x331e4a(0xd6))/0xa;if(_0x614441===_0x79205f)break;else _0x336089['push'](_0x336089['shift']());}catch(_0x3e868e){_0x336089['push'](_0x336089['shift']());}}}(a146_0x4321,0x83ebb));import{access,mkdir,readdir,stat}from'node:fs/promises';import{constants}from'node:fs';import{dirname,join}from'node:path';import{findHookLocationByRemoteId,snakeToCamel}from'../../core/bff/utils.js';export const SUPPORTED_BFF_TYPES=[a146_0x1fac7f(0xf1),a146_0x1fac7f(0xf5),a146_0x1fac7f(0xf8)];export function normalizeBffType(_0x2dc6c3){const _0x456f7e=a146_0x1fac7f;if(!_0x2dc6c3)return undefined;const _0x46baaa=_0x2dc6c3['trim']()['toUpperCase']();return SUPPORTED_BFF_TYPES[_0x456f7e(0xe5)](_0x46baaa)?_0x46baaa:undefined;}async function scanJsFilesRecursively(_0x34b2a1,_0x4595e9){const _0x27f8f2=a146_0x1fac7f,_0x489300=[];try{const _0x4cdca4=await readdir(_0x34b2a1,{'withFileTypes':!![]});for(const _0x2cb398 of _0x4cdca4){const _0x35b8fb=join(_0x34b2a1,_0x2cb398[_0x27f8f2(0xeb)]);if(_0x2cb398[_0x27f8f2(0xd9)]())_0x489300[_0x27f8f2(0xed)](...await scanJsFilesRecursively(_0x35b8fb,_0x4595e9+'/'+_0x2cb398[_0x27f8f2(0xeb)]));else _0x2cb398[_0x27f8f2(0xfd)]()&&_0x2cb398[_0x27f8f2(0xeb)][_0x27f8f2(0xdd)](_0x27f8f2(0xe7))&&_0x489300[_0x27f8f2(0xed)]({'lockKey':_0x4595e9+'/'+_0x2cb398[_0x27f8f2(0xeb)]['replace'](/\.js$/,''),'filePath':_0x35b8fb});}}catch(_0x371520){if(_0x371520['code']!==_0x27f8f2(0xf9))throw _0x371520;}return _0x489300;}async function scanFlatFunctions(_0x100450,_0x306e4f){const _0xd91be0=a146_0x1fac7f,_0x238dee=join(_0x100450[_0xd91be0(0xe9)],_0x306e4f),_0x30f6ad=await scanJsFilesRecursively(_0x238dee,_0x306e4f);return _0x30f6ad[_0xd91be0(0xf2)](({lockKey:_0x358372,filePath:_0x147007})=>({'type':_0x306e4f,'name':_0x358372[_0xd91be0(0xef)]('/')['at'](-0x1)??'','filePath':_0x147007,'lockKey':_0x358372}));}async function scanHookFunctions(_0x542836){const _0x1771e0=a146_0x1fac7f,_0x36972f=join(_0x542836['scriptsRootDir'],_0x1771e0(0xf8)),_0x30a0c3=[];try{const _0x72294=await readdir(_0x36972f,{'withFileTypes':!![]});for(const _0x2728a8 of _0x72294){if(!_0x2728a8[_0x1771e0(0xd9)]())continue;const _0x30aad4=_0x2728a8[_0x1771e0(0xeb)],_0x2e067e=join(_0x36972f,_0x30aad4),_0xe4dc95=await readdir(_0x2e067e,{'withFileTypes':!![]});for(const _0x11ebfb of _0xe4dc95){if(!_0x11ebfb[_0x1771e0(0xd9)]())continue;const _0x27b095=_0x11ebfb[_0x1771e0(0xeb)],_0x3b5aa5=join(_0x2e067e,_0x27b095),_0x363179=await readdir(_0x3b5aa5,{'withFileTypes':!![]});for(const _0x411e0e of _0x363179){if(!_0x411e0e[_0x1771e0(0xd9)]())continue;const _0x42cbe2=_0x411e0e[_0x1771e0(0xeb)],_0x1450bb=join(_0x3b5aa5,_0x42cbe2),_0x461468=await readdir(_0x1450bb,{'withFileTypes':!![]});for(const _0x345681 of _0x461468){if(!_0x345681['isFile']()||!_0x345681['name']['endsWith'](_0x1771e0(0xe7)))continue;const _0x79684=_0x345681['name'][_0x1771e0(0xf7)](/\.js$/,'');_0x30a0c3[_0x1771e0(0xed)]({'type':_0x1771e0(0xf8),'name':_0x79684,'filePath':join(_0x1450bb,_0x345681[_0x1771e0(0xeb)]),'lockKey':_0x1771e0(0xfb)+_0x30aad4+'/'+_0x27b095+'/'+_0x42cbe2+'/'+_0x79684,'alias':_0x30aad4,'operationType':_0x27b095,'functionNode':_0x42cbe2});}}}}}catch(_0xe99f98){if(_0xe99f98[_0x1771e0(0xea)]!==_0x1771e0(0xf9))throw _0xe99f98;}return _0x30a0c3;}export async function scanLocalBffFunctions(_0x437602,_0x512d7e){const _0x5a8065=a146_0x1fac7f;if(_0x512d7e==='COMMON'||_0x512d7e===_0x5a8065(0xf5))return scanFlatFunctions(_0x437602,_0x512d7e);if(_0x512d7e===_0x5a8065(0xf8))return scanHookFunctions(_0x437602);const [_0x12b55e,_0x1b52ea,_0x5bbca7]=await Promise[_0x5a8065(0xf6)]([scanFlatFunctions(_0x437602,_0x5a8065(0xf1)),scanFlatFunctions(_0x437602,_0x5a8065(0xf5)),scanHookFunctions(_0x437602)]);return[..._0x12b55e,..._0x1b52ea,..._0x5bbca7];}export function resolveLocalFilePathFromLockKey(_0x3773db,_0xc59c10){const _0x12d419=a146_0x1fac7f;return join(_0x3773db[_0x12d419(0xe9)],..._0xc59c10['split']('/'))+_0x12d419(0xe7);}export function createHookLocationMap(_0x466d92){const _0x1e2d60=a146_0x1fac7f,_0x502b68=new Map();for(const _0x1aeeed of _0x466d92){_0x1aeeed[_0x1e2d60(0xfa)]&&_0x502b68['set'](_0x1aeeed['beforeScriptId'],{'datasetCode':_0x1aeeed['datasetCode'],'operationType':snakeToCamel(_0x1aeeed['operationType']),'functionNode':_0x1e2d60(0xee)}),_0x1aeeed['afterScriptId']&&_0x502b68[_0x1e2d60(0xdc)](_0x1aeeed['afterScriptId'],{'datasetCode':_0x1aeeed[_0x1e2d60(0xe4)],'operationType':snakeToCamel(_0x1aeeed[_0x1e2d60(0xd7)]),'functionNode':_0x1e2d60(0xd8)});}return _0x502b68;}export function resolveRemoteScriptTarget(_0x4935e8,_0x124aa0,_0x53927b,_0x9baaf2,_0x4c93c3){const _0x5a07a1=a146_0x1fac7f,_0x313ace=normalizeBffType(_0x124aa0[_0x5a07a1(0xfc)]);if(!_0x313ace||!_0x124aa0['functionName'])return null;if(_0x313ace===_0x5a07a1(0xf8)){const _0x586d13=(_0x124aa0['id']?_0x53927b[_0x5a07a1(0xf4)](_0x124aa0['id']):undefined)??findHookLocationByRemoteId(_0x9baaf2,_0x124aa0['id']);if(!_0x586d13)return null;const _0x4337fc=_0x586d13[_0x5a07a1(0xe3)]||_0x4c93c3['get'](_0x586d13[_0x5a07a1(0xe4)]),_0x45b318=_0x4337fc??_0x586d13[_0x5a07a1(0xe4)],_0x215c57={..._0x586d13,'alias':_0x4337fc},_0x15f3d9=_0x5a07a1(0xfb)+_0x45b318+'/'+_0x215c57['operationType']+'/'+_0x215c57[_0x5a07a1(0xde)]+'/'+_0x124aa0[_0x5a07a1(0xf3)];return{'lockKey':_0x15f3d9,'filePath':resolveLocalFilePathFromLockKey(_0x4935e8,_0x15f3d9),'type':_0x5a07a1(0xf8),'hookLocation':_0x215c57};}const _0x192231=_0x313ace+'/'+_0x124aa0[_0x5a07a1(0xf3)];return{'lockKey':_0x192231,'filePath':resolveLocalFilePathFromLockKey(_0x4935e8,_0x192231),'type':_0x313ace};}export async function ensureParentDirectory(_0x5e38ae){await mkdir(dirname(_0x5e38ae),{'recursive':!![]});}function a146_0x4321(){const _0x35c0ff=['HOOK','ENOENT','beforeScriptId','HOOK/','scriptType','isFile','6746010EdzoDp','operationType','after','isDirectory','3112932EnBZNN','225482qLlSvn','set','endsWith','functionNode','F_OK','147627sTgMvQ','2895NyrsSe','2CcpxkE','alias','datasetCode','includes','4188iPNMyv','.js','24LxZFPb','scriptsRootDir','code','name','261191rSTDpQ','push','before','split','1463192ltSEKd','COMMON','map','functionName','get','ENDPOINT','all','replace'];a146_0x4321=function(){return _0x35c0ff;};return a146_0x4321();}function a146_0x453e(_0x2cf50e,_0x4e7f94){_0x2cf50e=_0x2cf50e-0xd6;const _0x4321cb=a146_0x4321();let _0x453ee3=_0x4321cb[_0x2cf50e];return _0x453ee3;}export async function fileExists(_0x4ef4ed){const _0x1b8868=a146_0x1fac7f;try{return await access(_0x4ef4ed,constants[_0x1b8868(0xdf)]),!![];}catch{return![];}}export async function directoryExists(_0x152254){try{const _0x1cfcc6=await stat(_0x152254);return _0x1cfcc6['isDirectory']();}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x1e158a,_0x1ec03c){const _0x505591=a146_0x2215,_0x57fcb9=_0x1e158a();while(!![]){try{const _0xa293be=parseInt(_0x505591(0x75))/0x1+parseInt(_0x505591(0x7c))/0x2+parseInt(_0x505591(0x74))/0x3*(-parseInt(_0x505591(0x72))/0x4)+-parseInt(_0x505591(0x78))/0x5*(parseInt(_0x505591(0x73))/0x6)+parseInt(_0x505591(0x7f))/0x7+parseInt(_0x505591(0x7e))/0x8+-parseInt(_0x505591(0x76))/0x9;if(_0xa293be===_0x1ec03c)break;else _0x57fcb9['push'](_0x57fcb9['shift']());}catch(_0xf629d5){_0x57fcb9['push'](_0x57fcb9['shift']());}}}(a146_0x1da9,0xcd895));import{readFile}from'node:fs/promises';import a146_0x4f02fb from'node:crypto';function a146_0x2215(_0x104079,_0x49e34c){_0x104079=_0x104079-0x71;const _0x1da9c0=a146_0x1da9();let _0x2215e4=_0x1da9c0[_0x104079];return _0x2215e4;}export function computeContentHash(_0x2ddb7c){const _0x3de7b1=a146_0x2215;return a146_0x4f02fb[_0x3de7b1(0x7b)](_0x3de7b1(0x77))[_0x3de7b1(0x79)](_0x2ddb7c)[_0x3de7b1(0x7d)](_0x3de7b1(0x71));}function a146_0x1da9(){const _0x69b627=['3463128fJtMCB','md5','3187215nRZEXZ','update','utf8','createHash','1669030RhCGnC','digest','10725432fxqDqT','8502459wMihhw','hex','4NgdJqw','12OXSHUl','3748119LTqYdQ','361097jZIlAn'];a146_0x1da9=function(){return _0x69b627;};return a146_0x1da9();}export async function computeFileHash(_0x46cb45){const _0x43ee7e=a146_0x2215,_0x40c1e5=await readFile(_0x46cb45,_0x43ee7e(0x7a));return computeContentHash(_0x40c1e5);}
1
+ (function(_0x38b43a,_0x47f8f2){const _0x430c03=a147_0x250c,_0x5d98ef=_0x38b43a();while(!![]){try{const _0x9a444c=parseInt(_0x430c03(0x165))/0x1*(-parseInt(_0x430c03(0x163))/0x2)+parseInt(_0x430c03(0x15f))/0x3*(parseInt(_0x430c03(0x162))/0x4)+parseInt(_0x430c03(0x15b))/0x5+-parseInt(_0x430c03(0x15a))/0x6*(parseInt(_0x430c03(0x15d))/0x7)+-parseInt(_0x430c03(0x160))/0x8+-parseInt(_0x430c03(0x164))/0x9*(-parseInt(_0x430c03(0x15e))/0xa)+parseInt(_0x430c03(0x159))/0xb;if(_0x9a444c===_0x47f8f2)break;else _0x5d98ef['push'](_0x5d98ef['shift']());}catch(_0x540f7e){_0x5d98ef['push'](_0x5d98ef['shift']());}}}(a147_0x1de4,0x78092));function a147_0x1de4(){const _0x1c5267=['6xTxPbe','944340QUxnUR','update','1393448eFzstF','120bGphNr','203799RXDqpe','7259560ABwyHf','md5','12pDxsNN','271076xxLSkr','622701RTNuzO','6XGYHCa','digest','13073148MuSHJz'];a147_0x1de4=function(){return _0x1c5267;};return a147_0x1de4();}import{readFile}from'node:fs/promises';function a147_0x250c(_0x4c9289,_0x3ecade){_0x4c9289=_0x4c9289-0x159;const _0x1de4c7=a147_0x1de4();let _0x250c6a=_0x1de4c7[_0x4c9289];return _0x250c6a;}import a147_0x2b12c2 from'node:crypto';export function computeContentHash(_0x17ab5c){const _0x1ea63d=a147_0x250c;return a147_0x2b12c2['createHash'](_0x1ea63d(0x161))[_0x1ea63d(0x15c)](_0x17ab5c)[_0x1ea63d(0x166)]('hex');}export async function computeFileHash(_0x5d78de){const _0x5eb145=await readFile(_0x5d78de,'utf8');return computeContentHash(_0x5eb145);}
@@ -1 +1 @@
1
- (function(_0x51b73c,_0x48078e){const _0xbfde80=a147_0xffd4,_0x5a699f=_0x51b73c();while(!![]){try{const _0xce8aab=-parseInt(_0xbfde80(0xc7))/0x1*(-parseInt(_0xbfde80(0xb4))/0x2)+-parseInt(_0xbfde80(0xb9))/0x3+parseInt(_0xbfde80(0xc0))/0x4*(-parseInt(_0xbfde80(0xb0))/0x5)+-parseInt(_0xbfde80(0xbd))/0x6+parseInt(_0xbfde80(0xb6))/0x7*(parseInt(_0xbfde80(0xc1))/0x8)+parseInt(_0xbfde80(0xb8))/0x9*(parseInt(_0xbfde80(0xaf))/0xa)+parseInt(_0xbfde80(0xb5))/0xb;if(_0xce8aab===_0x48078e)break;else _0x5a699f['push'](_0x5a699f['shift']());}catch(_0x4a7093){_0x5a699f['push'](_0x5a699f['shift']());}}}(a147_0x4339,0x7bfd7));function a147_0xffd4(_0x3d9a78,_0x2514f4){_0x3d9a78=_0x3d9a78-0xaf;const _0x4339a7=a147_0x4339();let _0xffd4b2=_0x4339a7[_0x3d9a78];return _0xffd4b2;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x382ccb,_0x58e7e5,_0x1f2938,_0x2f7311){const _0x259e76=a147_0xffd4,_0x2264c9={'apps':_0x382ccb[_0x259e76(0xbf)]&&typeof _0x382ccb[_0x259e76(0xbf)]===_0x259e76(0xc2)?_0x382ccb[_0x259e76(0xbf)]:{}};let _0x2c553d=_0x2264c9[_0x259e76(0xbf)][_0x58e7e5];if(!_0x2c553d)return _0x2c553d={'scriptsRoot':_0x1f2938,'lastSync':'','functions':{}},_0x2264c9['apps'][_0x58e7e5]=_0x2c553d,{'lockData':_0x2264c9,'appLock':_0x2c553d};if(!_0x2c553d[_0x259e76(0xbb)])_0x2c553d['scriptsRoot']=_0x1f2938;else{if(_0x2c553d[_0x259e76(0xbb)]!==_0x1f2938)throw new Error(_0x2f7311+_0x259e76(0xba)+(_0x259e76(0xc6)+_0x1f2938+_0x259e76(0xbe)+_0x2c553d[_0x259e76(0xbb)]+_0x259e76(0xb3))+'Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x2c553d[_0x259e76(0xc4)]&&(_0x2c553d[_0x259e76(0xc4)]={}),!_0x2c553d[_0x259e76(0xc5)]&&(_0x2c553d[_0x259e76(0xc5)]=''),{'lockData':_0x2264c9,'appLock':_0x2c553d};}export async function readBffLockFile(_0xa68ba6){const _0x30ae83=a147_0xffd4;try{const _0x504d79=await readFile(_0xa68ba6,'utf8'),_0x49aa32=JSON['parse'](_0x504d79);return{'apps':_0x49aa32[_0x30ae83(0xbf)]&&typeof _0x49aa32[_0x30ae83(0xbf)]===_0x30ae83(0xc2)?_0x49aa32[_0x30ae83(0xbf)]:{}};}catch(_0x584b0a){if(_0x584b0a[_0x30ae83(0xc3)]===_0x30ae83(0xb2))return null;throw new Error(_0x30ae83(0xbc)+String(_0x584b0a));}}export async function writeBffLockFile(_0xb90158,_0x10da88){const _0x5c4a5e=a147_0xffd4;await mkdir(dirname(_0xb90158),{'recursive':!![]}),await writeFile(_0xb90158,JSON[_0x5c4a5e(0xb7)](_0x10da88,null,0x2),_0x5c4a5e(0xb1));}function a147_0x4339(){const _0x39a6e3=['apps','8ZjjzFa','2826424svDfit','object','code','functions','lastSync','current\x20\x22','14102whIYkb','7632250hkWDde','753495GKFNvk','utf8','ENOENT','\x22.\x20','8zyYcsH','5447486ItcInc','7nBwnZq','stringify','9jMADxO','1780482Nhuuxj',':\x20scriptsRoot\x20mismatch\x20—\x20','scriptsRoot','Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20','1592442gHDeAe','\x22\x20vs\x20lock\x20\x22'];a147_0x4339=function(){return _0x39a6e3;};return a147_0x4339();}
1
+ function a148_0x54da(_0x1e0dd0,_0x4d0476){_0x1e0dd0=_0x1e0dd0-0x1db;const _0x337572=a148_0x3375();let _0x54da60=_0x337572[_0x1e0dd0];return _0x54da60;}(function(_0x466df2,_0x31cafe){const _0x44e6d0=a148_0x54da,_0x529400=_0x466df2();while(!![]){try{const _0x5417c3=-parseInt(_0x44e6d0(0x1eb))/0x1+-parseInt(_0x44e6d0(0x1e9))/0x2*(-parseInt(_0x44e6d0(0x1ed))/0x3)+-parseInt(_0x44e6d0(0x1de))/0x4+-parseInt(_0x44e6d0(0x1e8))/0x5*(parseInt(_0x44e6d0(0x1ea))/0x6)+-parseInt(_0x44e6d0(0x1db))/0x7+-parseInt(_0x44e6d0(0x1df))/0x8+-parseInt(_0x44e6d0(0x1ef))/0x9*(-parseInt(_0x44e6d0(0x1e4))/0xa);if(_0x5417c3===_0x31cafe)break;else _0x529400['push'](_0x529400['shift']());}catch(_0x560956){_0x529400['push'](_0x529400['shift']());}}}(a148_0x3375,0xc5b80));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a148_0x3375(){const _0x3d4815=['ENOENT','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','scriptsRoot','130TPqcEl','current\x20\x22','utf8','\x22\x20vs\x20lock\x20\x22','25hAuxUg','2056418pysHPt','722904OPDWIw','499856PQVbab',':\x20scriptsRoot\x20mismatch\x20—\x20','3ahiPsM','object','2104074vDqblK','stringify','apps','\x22.\x20','4926824gbBhZX','functions','code','4055172lEiTXG','3501360aVmVll','lastSync'];a148_0x3375=function(){return _0x3d4815;};return a148_0x3375();}export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x11bfa4,_0x4987eb,_0x121d84,_0xf3fc5e){const _0x2da4c5=a148_0x54da,_0x5d4703={'apps':_0x11bfa4[_0x2da4c5(0x1f1)]&&typeof _0x11bfa4[_0x2da4c5(0x1f1)]===_0x2da4c5(0x1ee)?_0x11bfa4[_0x2da4c5(0x1f1)]:{}};let _0x9b4f95=_0x5d4703[_0x2da4c5(0x1f1)][_0x4987eb];if(!_0x9b4f95)return _0x9b4f95={'scriptsRoot':_0x121d84,'lastSync':'','functions':{}},_0x5d4703[_0x2da4c5(0x1f1)][_0x4987eb]=_0x9b4f95,{'lockData':_0x5d4703,'appLock':_0x9b4f95};if(!_0x9b4f95[_0x2da4c5(0x1e3)])_0x9b4f95[_0x2da4c5(0x1e3)]=_0x121d84;else{if(_0x9b4f95[_0x2da4c5(0x1e3)]!==_0x121d84)throw new Error(_0xf3fc5e+_0x2da4c5(0x1ec)+(_0x2da4c5(0x1e5)+_0x121d84+_0x2da4c5(0x1e7)+_0x9b4f95[_0x2da4c5(0x1e3)]+_0x2da4c5(0x1f2))+_0x2da4c5(0x1e2));}return!_0x9b4f95['functions']&&(_0x9b4f95[_0x2da4c5(0x1dc)]={}),!_0x9b4f95[_0x2da4c5(0x1e0)]&&(_0x9b4f95[_0x2da4c5(0x1e0)]=''),{'lockData':_0x5d4703,'appLock':_0x9b4f95};}export async function readBffLockFile(_0x5f37b8){const _0x1b4bfe=a148_0x54da;try{const _0x11450f=await readFile(_0x5f37b8,_0x1b4bfe(0x1e6)),_0x575c7a=JSON['parse'](_0x11450f);return{'apps':_0x575c7a[_0x1b4bfe(0x1f1)]&&typeof _0x575c7a['apps']===_0x1b4bfe(0x1ee)?_0x575c7a[_0x1b4bfe(0x1f1)]:{}};}catch(_0x4a9ed8){if(_0x4a9ed8[_0x1b4bfe(0x1dd)]===_0x1b4bfe(0x1e1))return null;throw new Error('Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20'+String(_0x4a9ed8));}}export async function writeBffLockFile(_0x1eb58f,_0x2d911d){const _0x4ff130=a148_0x54da;await mkdir(dirname(_0x1eb58f),{'recursive':!![]}),await writeFile(_0x1eb58f,JSON[_0x4ff130(0x1f0)](_0x2d911d,null,0x2),_0x4ff130(0x1e6));}
@@ -1 +1 @@
1
- (function(_0x138fcf,_0x5c0438){const _0x116168=a149_0x1e33,_0x50dd03=_0x138fcf();while(!![]){try{const _0x385852=-parseInt(_0x116168(0x139))/0x1*(parseInt(_0x116168(0x13f))/0x2)+parseInt(_0x116168(0x132))/0x3*(parseInt(_0x116168(0x136))/0x4)+parseInt(_0x116168(0x13a))/0x5+parseInt(_0x116168(0x140))/0x6+parseInt(_0x116168(0x145))/0x7+parseInt(_0x116168(0x13e))/0x8*(-parseInt(_0x116168(0x143))/0x9)+parseInt(_0x116168(0x138))/0xa*(-parseInt(_0x116168(0x134))/0xb);if(_0x385852===_0x5c0438)break;else _0x50dd03['push'](_0x50dd03['shift']());}catch(_0x336e12){_0x50dd03['push'](_0x50dd03['shift']());}}}(a149_0x433b,0x5a847));export function snakeToCamel(_0x37a5ba){const _0x41d3db=a149_0x1e33;return _0x37a5ba[_0x41d3db(0x142)]()['replace'](/_([a-z])/g,(_0x17b507,_0x35911c)=>_0x35911c['toUpperCase']());}function a149_0x1e33(_0x4123fb,_0x6158dc){_0x4123fb=_0x4123fb-0x132;const _0x433bd9=a149_0x433b();let _0x1e335c=_0x433bd9[_0x4123fb];return _0x1e335c;}export function findHookLocationByRemoteId(_0x2ea8fe,_0x3a3aaf){const _0x5ef74e=a149_0x1e33;if(!_0x3a3aaf)return undefined;for(const _0x37037d of Object[_0x5ef74e(0x141)](_0x2ea8fe)){if(_0x37037d[_0x5ef74e(0x137)]===_0x3a3aaf&&_0x37037d[_0x5ef74e(0x13b)]&&_0x37037d[_0x5ef74e(0x135)]&&_0x37037d[_0x5ef74e(0x133)])return{'datasetCode':_0x37037d['datasetCode'],'operationType':_0x37037d['operationType'],'functionNode':_0x37037d[_0x5ef74e(0x133)]};}return undefined;}export function extractScriptDescription(_0x4f8a1a){const _0x3bb6a2=a149_0x1e33,_0x45fa8c=_0x4f8a1a[_0x3bb6a2(0x13d)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x45fa8c?.[0x1]?.[_0x3bb6a2(0x144)]()||undefined;}function a149_0x433b(){const _0x3894c7=['4006842wDiBue','63573ZvnadW','functionNode','18205DpVHgj','operationType','76RWvAur','remoteId','7270TiSNlw','147034dzttJE','2899555YkAWyE','datasetCode','before','match','56XHbltV','2bCjLJF','2331414yhumgH','values','toLowerCase','286119whbTEf','trim'];a149_0x433b=function(){return _0x3894c7;};return a149_0x433b();}export function isValidBffFunctionName(_0x33a61a){return/^[A-Za-z_$][A-Za-z0-9_$]*$/['test'](_0x33a61a);}export function normalizeHookFunctionNode(_0x451420){const _0x106ef0=a149_0x1e33;if(!_0x451420)return undefined;const _0x2d7f80=_0x451420[_0x106ef0(0x144)]()[_0x106ef0(0x142)]();if(_0x2d7f80===_0x106ef0(0x13c)||_0x2d7f80==='after')return _0x2d7f80;return undefined;}
1
+ function a150_0x2ebc(_0x56fcce,_0x32a1b1){_0x56fcce=_0x56fcce-0xd5;const _0x5b3fc3=a150_0x5b3f();let _0x2ebcdc=_0x5b3fc3[_0x56fcce];return _0x2ebcdc;}(function(_0x2c180d,_0x4ee434){const _0x55e473=a150_0x2ebc,_0x4945ef=_0x2c180d();while(!![]){try{const _0x538be8=-parseInt(_0x55e473(0xe4))/0x1*(parseInt(_0x55e473(0xd7))/0x2)+-parseInt(_0x55e473(0xdb))/0x3*(-parseInt(_0x55e473(0xde))/0x4)+-parseInt(_0x55e473(0xe5))/0x5*(-parseInt(_0x55e473(0xd8))/0x6)+parseInt(_0x55e473(0xe0))/0x7*(parseInt(_0x55e473(0xdf))/0x8)+-parseInt(_0x55e473(0xd6))/0x9+-parseInt(_0x55e473(0xe3))/0xa*(-parseInt(_0x55e473(0xea))/0xb)+-parseInt(_0x55e473(0xe1))/0xc*(parseInt(_0x55e473(0xdc))/0xd);if(_0x538be8===_0x4ee434)break;else _0x4945ef['push'](_0x4945ef['shift']());}catch(_0x533684){_0x4945ef['push'](_0x4945ef['shift']());}}}(a150_0x5b3f,0x60c8c));export function snakeToCamel(_0x50a822){const _0x278e18=a150_0x2ebc;return _0x50a822['toLowerCase']()[_0x278e18(0xd5)](/_([a-z])/g,(_0x329610,_0x52a6a6)=>_0x52a6a6['toUpperCase']());}export function findHookLocationByRemoteId(_0x191dcc,_0x36f0b9){const _0x4ee9f3=a150_0x2ebc;if(!_0x36f0b9)return undefined;for(const _0x3c3577 of Object[_0x4ee9f3(0xda)](_0x191dcc)){if(_0x3c3577[_0x4ee9f3(0xe8)]===_0x36f0b9&&_0x3c3577['datasetCode']&&_0x3c3577[_0x4ee9f3(0xe2)]&&_0x3c3577[_0x4ee9f3(0xdd)])return{'datasetCode':_0x3c3577['datasetCode'],'operationType':_0x3c3577[_0x4ee9f3(0xe2)],'functionNode':_0x3c3577[_0x4ee9f3(0xdd)]};}return undefined;}function a150_0x5b3f(){const _0x3162ab=['before','test','remoteId','toLowerCase','737JgKaAJ','after','replace','3338262lZiDZX','2ssAFiR','49782DiDkNX','trim','values','6aCeJfs','13eHvfvi','functionNode','653284XLxObc','808xqrgQB','2863AEQDvw','7457124zQPRRY','operationType','52340sSkTCz','84883UCCIZk','455edXiHz'];a150_0x5b3f=function(){return _0x3162ab;};return a150_0x5b3f();}export function extractScriptDescription(_0x316979){const _0x3325af=a150_0x2ebc,_0x53bff9=_0x316979['match'](/\[\s*脚本描述\s*]\s*(.+)/);return _0x53bff9?.[0x1]?.[_0x3325af(0xd9)]()||undefined;}export function isValidBffFunctionName(_0x26b7b6){const _0x12e15b=a150_0x2ebc;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x12e15b(0xe7)](_0x26b7b6);}export function normalizeHookFunctionNode(_0x212012){const _0x4dfa92=a150_0x2ebc;if(!_0x212012)return undefined;const _0x11218c=_0x212012[_0x4dfa92(0xd9)]()[_0x4dfa92(0xe9)]();if(_0x11218c===_0x4dfa92(0xe6)||_0x11218c===_0x4dfa92(0xeb))return _0x11218c;return undefined;}
@@ -1 +1 @@
1
- (function(_0x48d164,_0x1238a4){const _0x1d3d47=a150_0x5f47,_0x2abf5b=_0x48d164();while(!![]){try{const _0x33046e=-parseInt(_0x1d3d47(0x18f))/0x1+parseInt(_0x1d3d47(0x1a1))/0x2*(-parseInt(_0x1d3d47(0x191))/0x3)+-parseInt(_0x1d3d47(0x19e))/0x4*(-parseInt(_0x1d3d47(0x1a6))/0x5)+-parseInt(_0x1d3d47(0x1a5))/0x6*(parseInt(_0x1d3d47(0x199))/0x7)+parseInt(_0x1d3d47(0x18c))/0x8+parseInt(_0x1d3d47(0x18b))/0x9+-parseInt(_0x1d3d47(0x18d))/0xa;if(_0x33046e===_0x1238a4)break;else _0x2abf5b['push'](_0x2abf5b['shift']());}catch(_0x5d697b){_0x2abf5b['push'](_0x2abf5b['shift']());}}}(a150_0x2019,0x8cb07));import{listDatasets}from'../core/api-client.js';function a150_0x2019(){const _0x427bdc=['db-','.\x20Be\x20more\x20specific.','138320LwavZc','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','dbId','2vGNnax','\x22\x20matches\x20multiple\x20databases:\x20','join','has','3888174zmmHTY','65LXPTEC','dbtableConfig','get','includes','9251793dACaGM','4292888PBGpTc','2964050IBEMkB','map','456242HlfZlN','No\x20database\x20matching\x20\x22','111567zfFSLB','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','toLowerCase','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','dbName','\x22.\x20Available:\x20','\x22\x20under\x20app\x20\x22','find','7JXxAZo','filter','length'];a150_0x2019=function(){return _0x427bdc;};return a150_0x2019();}const cache=new Map();function a150_0x5f47(_0x4c9ea3,_0xac1a55){_0x4c9ea3=_0x4c9ea3-0x189;const _0x201961=a150_0x2019();let _0x5f471f=_0x201961[_0x4c9ea3];return _0x5f471f;}export async function listDatabases(_0x513fd6){const _0x479972=a150_0x5f47;if(cache[_0x479972(0x1a4)](_0x513fd6))return cache[_0x479972(0x189)](_0x513fd6);const _0x346629=await listDatasets(_0x513fd6),_0x488fcd=new Map();for(const _0x12f60b of _0x346629){const _0x2d2b75=_0x12f60b[_0x479972(0x1a7)];_0x2d2b75?.[_0x479972(0x1a0)]!=null&&_0x488fcd['set'](_0x2d2b75[_0x479972(0x1a0)],_0x2d2b75['dbName']??_0x479972(0x19c)+_0x2d2b75[_0x479972(0x1a0)]);}const _0x21065f=[..._0x488fcd['entries']()][_0x479972(0x18e)](([_0x423e31,_0x2c5338])=>({'dbId':_0x423e31,'dbName':_0x2c5338}));return cache['set'](_0x513fd6,_0x21065f),_0x21065f;}export async function resolveDb(_0xf0e69b,_0x4c60d8){const _0x18f3d3=a150_0x5f47,_0x4f367a=await listDatabases(_0xf0e69b);if(_0x4f367a[_0x18f3d3(0x19b)]===0x0)return{'resolved':[],'error':'No\x20linked\x20databases\x20found\x20under\x20app\x20\x22'+_0xf0e69b+_0x18f3d3(0x19f)};if(!_0x4c60d8)return{'resolved':_0x4f367a};const _0x86ccc2=Number(_0x4c60d8);if(!Number['isNaN'](_0x86ccc2)){const _0x31ed08=_0x4f367a[_0x18f3d3(0x198)](_0x4df156=>_0x4df156['dbId']===_0x86ccc2);if(_0x31ed08)return{'resolved':[_0x31ed08]};}const _0x459788=_0x4c60d8[_0x18f3d3(0x193)](),_0x4d45dd=_0x4f367a[_0x18f3d3(0x19a)](_0x23c916=>_0x23c916[_0x18f3d3(0x195)][_0x18f3d3(0x193)]()[_0x18f3d3(0x18a)](_0x459788));if(_0x4d45dd[_0x18f3d3(0x19b)]>0x0)return{'resolved':_0x4d45dd};const _0xe3655e=_0x4f367a[_0x18f3d3(0x18e)](_0x3604e2=>_0x3604e2[_0x18f3d3(0x195)]+'\x20('+_0x3604e2['dbId']+')')[_0x18f3d3(0x1a3)](',\x20');return{'resolved':[],'error':_0x18f3d3(0x190)+_0x4c60d8+_0x18f3d3(0x197)+_0xf0e69b+_0x18f3d3(0x196)+_0xe3655e+_0x18f3d3(0x194)};}export async function resolveOneDb(_0x5452cc,_0x13d1ae){const _0x2b1348=a150_0x5f47,{resolved:_0x4ef61d,error:_0x2527e1}=await resolveDb(_0x5452cc,_0x13d1ae);if(_0x2527e1)return{'db':null,'error':_0x2527e1};if(_0x4ef61d['length']===0x1)return{'db':_0x4ef61d[0x0]};if(!_0x13d1ae){const _0x13f2eb=_0x4ef61d[_0x2b1348(0x18e)](_0x1916d3=>_0x1916d3[_0x2b1348(0x195)]+'\x20('+_0x1916d3[_0x2b1348(0x1a0)]+')')[_0x2b1348(0x1a3)](',\x20');return{'db':null,'error':_0x2b1348(0x192)+_0x13f2eb};}const _0x47256d=_0x4ef61d['map'](_0x1b86ed=>_0x1b86ed[_0x2b1348(0x195)]+'\x20('+_0x1b86ed[_0x2b1348(0x1a0)]+')')[_0x2b1348(0x1a3)](',\x20');return{'db':null,'error':'\x22'+_0x13d1ae+_0x2b1348(0x1a2)+_0x47256d+_0x2b1348(0x19d)};}export async function getDbName(_0x49fae1,_0x18df6a){const _0x10d3bb=a150_0x5f47,_0x52f088=await listDatabases(_0x49fae1);return _0x52f088[_0x10d3bb(0x198)](_0x150837=>_0x150837[_0x10d3bb(0x1a0)]===_0x18df6a)?.[_0x10d3bb(0x195)];}
1
+ (function(_0x6de5c6,_0x3864e3){const _0x1627fd=a151_0x3839,_0x15954f=_0x6de5c6();while(!![]){try{const _0x5c6fd1=parseInt(_0x1627fd(0xf0))/0x1+-parseInt(_0x1627fd(0xd4))/0x2*(parseInt(_0x1627fd(0xd6))/0x3)+parseInt(_0x1627fd(0xdb))/0x4*(parseInt(_0x1627fd(0xd9))/0x5)+parseInt(_0x1627fd(0xd3))/0x6*(parseInt(_0x1627fd(0xde))/0x7)+-parseInt(_0x1627fd(0xe4))/0x8*(parseInt(_0x1627fd(0xeb))/0x9)+parseInt(_0x1627fd(0xda))/0xa+-parseInt(_0x1627fd(0xe1))/0xb*(parseInt(_0x1627fd(0xe2))/0xc);if(_0x5c6fd1===_0x3864e3)break;else _0x15954f['push'](_0x15954f['shift']());}catch(_0x30adfd){_0x15954f['push'](_0x15954f['shift']());}}}(a151_0xdb86,0x58b36));import{listDatasets}from'../core/api-client.js';const cache=new Map();function a151_0xdb86(){const _0x1e86fd=['5cZbeNk','2830250BIoJim','764268MmSzDE','dbId','set','4102lMLTYW','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','.\x20Be\x20more\x20specific.','483560lhMQdl','192dwgERe','dbName','3448zYnzBE','filter','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','map','dbtableConfig','\x22\x20under\x20app\x20\x22','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','6345NiCupJ','get','length','toLowerCase','isNaN','481039sJOcNS','No\x20database\x20matching\x20\x22','6948XEAjWU','75196aTslaE','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','21ducWLI','find','\x22\x20matches\x20multiple\x20databases:\x20'];a151_0xdb86=function(){return _0x1e86fd;};return a151_0xdb86();}export async function listDatabases(_0x545f56){const _0x2c2845=a151_0x3839;if(cache['has'](_0x545f56))return cache[_0x2c2845(0xec)](_0x545f56);const _0x51f99c=await listDatasets(_0x545f56),_0xd5b179=new Map();for(const _0xc37130 of _0x51f99c){const _0x2f85e5=_0xc37130[_0x2c2845(0xe8)];_0x2f85e5?.['dbId']!=null&&_0xd5b179[_0x2c2845(0xdd)](_0x2f85e5[_0x2c2845(0xdc)],_0x2f85e5['dbName']??'db-'+_0x2f85e5[_0x2c2845(0xdc)]);}const _0x10180e=[..._0xd5b179['entries']()][_0x2c2845(0xe7)](([_0x553b31,_0x7c507c])=>({'dbId':_0x553b31,'dbName':_0x7c507c}));return cache[_0x2c2845(0xdd)](_0x545f56,_0x10180e),_0x10180e;}export async function resolveDb(_0x1b5768,_0x45149d){const _0x584c5c=a151_0x3839,_0x3d853a=await listDatabases(_0x1b5768);if(_0x3d853a[_0x584c5c(0xed)]===0x0)return{'resolved':[],'error':_0x584c5c(0xea)+_0x1b5768+_0x584c5c(0xd5)};if(!_0x45149d)return{'resolved':_0x3d853a};const _0x34b1cf=Number(_0x45149d);if(!Number[_0x584c5c(0xef)](_0x34b1cf)){const _0x230dcd=_0x3d853a[_0x584c5c(0xd7)](_0x4eb9ac=>_0x4eb9ac[_0x584c5c(0xdc)]===_0x34b1cf);if(_0x230dcd)return{'resolved':[_0x230dcd]};}const _0x18c0ba=_0x45149d[_0x584c5c(0xee)](),_0xa2d1e7=_0x3d853a[_0x584c5c(0xe5)](_0x3d7e85=>_0x3d7e85[_0x584c5c(0xe3)]['toLowerCase']()['includes'](_0x18c0ba));if(_0xa2d1e7[_0x584c5c(0xed)]>0x0)return{'resolved':_0xa2d1e7};const _0x5ba6bf=_0x3d853a[_0x584c5c(0xe7)](_0x5efd31=>_0x5efd31[_0x584c5c(0xe3)]+'\x20('+_0x5efd31[_0x584c5c(0xdc)]+')')['join'](',\x20');return{'resolved':[],'error':_0x584c5c(0xf1)+_0x45149d+_0x584c5c(0xe9)+_0x1b5768+'\x22.\x20Available:\x20'+_0x5ba6bf+_0x584c5c(0xdf)};}function a151_0x3839(_0x21c50d,_0x27e4cd){_0x21c50d=_0x21c50d-0xd3;const _0xdb86bd=a151_0xdb86();let _0x3839ac=_0xdb86bd[_0x21c50d];return _0x3839ac;}export async function resolveOneDb(_0x2b1431,_0x58f5e4){const _0x2e975c=a151_0x3839,{resolved:_0x52f4ad,error:_0x53a09c}=await resolveDb(_0x2b1431,_0x58f5e4);if(_0x53a09c)return{'db':null,'error':_0x53a09c};if(_0x52f4ad['length']===0x1)return{'db':_0x52f4ad[0x0]};if(!_0x58f5e4){const _0x5f2b87=_0x52f4ad[_0x2e975c(0xe7)](_0x3eaac1=>_0x3eaac1[_0x2e975c(0xe3)]+'\x20('+_0x3eaac1[_0x2e975c(0xdc)]+')')['join'](',\x20');return{'db':null,'error':_0x2e975c(0xe6)+_0x5f2b87};}const _0x119a40=_0x52f4ad[_0x2e975c(0xe7)](_0x159758=>_0x159758[_0x2e975c(0xe3)]+'\x20('+_0x159758['dbId']+')')['join'](',\x20');return{'db':null,'error':'\x22'+_0x58f5e4+_0x2e975c(0xd8)+_0x119a40+_0x2e975c(0xe0)};}export async function getDbName(_0xa461a9,_0xcb651){const _0x10d945=a151_0x3839,_0x4833ad=await listDatabases(_0xa461a9);return _0x4833ad['find'](_0x3847e8=>_0x3847e8['dbId']===_0xcb651)?.[_0x10d945(0xe3)];}
@@ -1 +1 @@
1
- (function(_0x424fd6,_0x5bf90f){const _0xd68e5c=a151_0xeaae,_0x5215b3=_0x424fd6();while(!![]){try{const _0x111c21=-parseInt(_0xd68e5c(0xab))/0x1+-parseInt(_0xd68e5c(0xa2))/0x2+-parseInt(_0xd68e5c(0xa7))/0x3+parseInt(_0xd68e5c(0xa8))/0x4+parseInt(_0xd68e5c(0xa4))/0x5+-parseInt(_0xd68e5c(0xad))/0x6+-parseInt(_0xd68e5c(0xa6))/0x7*(-parseInt(_0xd68e5c(0xaa))/0x8);if(_0x111c21===_0x5bf90f)break;else _0x5215b3['push'](_0x5215b3['shift']());}catch(_0x39df02){_0x5215b3['push'](_0x5215b3['shift']());}}}(a151_0x3edb,0x863ae));function a151_0xeaae(_0x4e44a4,_0x4e5e97){_0x4e44a4=_0x4e44a4-0xa2;const _0x3edb38=a151_0x3edb();let _0xeaaef9=_0x3edb38[_0x4e44a4];return _0xeaaef9;}import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x4e30ee,_0x1c4233=process['cwd']()){const _0x2bdf3d=a151_0xeaae,_0x2fbd6d=resolve(_0x1c4233),_0x471484=join(_0x2fbd6d,_0x2bdf3d(0xa3),_0x2bdf3d(0xa9));return{'projectRoot':_0x2fbd6d,'pagesBaseDir':_0x471484,'appPagesDir':join(_0x471484,_0x4e30ee),'lockFilePath':join(_0x2fbd6d,'.rabetbase','page.lock.json')};}export function buildPageFileName(_0x25c970,_0x8a0e8a){const _0x259e9e=a151_0xeaae;return _0x25c970+'-'+String(_0x8a0e8a)[_0x259e9e(0xae)]()+'.json';}export function resolvePageFilePath(_0x55f200,_0x467cac,_0x560b56){const _0x5391f1=a151_0xeaae;return join(_0x55f200[_0x5391f1(0xa5)],buildPageFileName(_0x467cac,_0x560b56));}function a151_0x3edb(){const _0xe419df=['2367496EUooKM','page','392HJXkFs','116521XCbYsD','F_OK','323760woUfER','toUpperCase','217274qMViLp','.rabetbase','837330iPTRes','appPagesDir','162071NlWAty','3194739QGqIEp'];a151_0x3edb=function(){return _0xe419df;};return a151_0x3edb();}export async function ensureParentDirectory(_0x5c45e8){await mkdir(dirname(_0x5c45e8),{'recursive':!![]});}export async function fileExists(_0x482aed){const _0x2cd11e=a151_0xeaae;try{return await access(_0x482aed,constants[_0x2cd11e(0xac)]),!![];}catch{return![];}}
1
+ const a152_0x3bb178=a152_0x4976;(function(_0x817011,_0x16cfda){const _0xe41aa=a152_0x4976,_0x22ad7a=_0x817011();while(!![]){try{const _0x2e5469=parseInt(_0xe41aa(0xfa))/0x1+-parseInt(_0xe41aa(0x100))/0x2*(parseInt(_0xe41aa(0xff))/0x3)+-parseInt(_0xe41aa(0x101))/0x4*(parseInt(_0xe41aa(0xef))/0x5)+parseInt(_0xe41aa(0xf4))/0x6+-parseInt(_0xe41aa(0xf1))/0x7+-parseInt(_0xe41aa(0xf3))/0x8*(parseInt(_0xe41aa(0xf8))/0x9)+parseInt(_0xe41aa(0xfc))/0xa*(parseInt(_0xe41aa(0xfd))/0xb);if(_0x2e5469===_0x16cfda)break;else _0x22ad7a['push'](_0x22ad7a['shift']());}catch(_0x4ca93b){_0x22ad7a['push'](_0x22ad7a['shift']());}}}(a152_0x5653,0x6fcab));import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';function a152_0x5653(){const _0x44a977=['cwd','9681610pjoKdx','11LsrjNF','F_OK','243lRVecy','16586oPeFXf','144716bxsbQw','5sGuXhf','page','1910328kdnvnZ','page.lock.json','400392HRvYEB','3069324TPaQfZ','appPagesDir','.rabetbase','toUpperCase','117pRdOhV','.json','609637kmSSsj'];a152_0x5653=function(){return _0x44a977;};return a152_0x5653();}import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x26b0c7,_0x46d765=process[a152_0x3bb178(0xfb)]()){const _0x1b78c8=a152_0x3bb178,_0x4fd62f=resolve(_0x46d765),_0x56ba73=join(_0x4fd62f,_0x1b78c8(0xf6),_0x1b78c8(0xf0));return{'projectRoot':_0x4fd62f,'pagesBaseDir':_0x56ba73,'appPagesDir':join(_0x56ba73,_0x26b0c7),'lockFilePath':join(_0x4fd62f,_0x1b78c8(0xf6),_0x1b78c8(0xf2))};}export function buildPageFileName(_0x44686a,_0x3a37f2){const _0x8792df=a152_0x3bb178;return _0x44686a+'-'+String(_0x3a37f2)[_0x8792df(0xf7)]()+_0x8792df(0xf9);}export function resolvePageFilePath(_0x3bcb85,_0x391aee,_0x417d6b){const _0x80472c=a152_0x3bb178;return join(_0x3bcb85[_0x80472c(0xf5)],buildPageFileName(_0x391aee,_0x417d6b));}export async function ensureParentDirectory(_0x441be2){await mkdir(dirname(_0x441be2),{'recursive':!![]});}function a152_0x4976(_0x36022,_0x531926){_0x36022=_0x36022-0xef;const _0x5653b5=a152_0x5653();let _0x497690=_0x5653b5[_0x36022];return _0x497690;}export async function fileExists(_0x51ff0c){const _0x47adc2=a152_0x3bb178;try{return await access(_0x51ff0c,constants[_0x47adc2(0xfe)]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0xa370a8,_0x187115){const _0x35c41f=a152_0x1da8,_0x451659=_0xa370a8();while(!![]){try{const _0x3d6833=parseInt(_0x35c41f(0xf6))/0x1*(parseInt(_0x35c41f(0xf0))/0x2)+-parseInt(_0x35c41f(0xfe))/0x3+-parseInt(_0x35c41f(0xef))/0x4*(parseInt(_0x35c41f(0xfa))/0x5)+parseInt(_0x35c41f(0xf5))/0x6*(parseInt(_0x35c41f(0xf1))/0x7)+parseInt(_0x35c41f(0xee))/0x8+-parseInt(_0x35c41f(0x100))/0x9*(-parseInt(_0x35c41f(0xf2))/0xa)+-parseInt(_0x35c41f(0xf3))/0xb*(-parseInt(_0x35c41f(0xfd))/0xc);if(_0x3d6833===_0x187115)break;else _0x451659['push'](_0x451659['shift']());}catch(_0x4fa913){_0x451659['push'](_0x451659['shift']());}}}(a152_0x77e8,0x99065));import a152_0x561c72 from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x513807){const _0x138ee4=a152_0x1da8;return JSON[_0x138ee4(0xf9)](JSON[_0x138ee4(0xf7)](_0x513807),null,0x2)+'\x0a';}export function computePageContentHash(_0x1ecc0b){const _0x42bd49=a152_0x1da8;return a152_0x561c72[_0x42bd49(0xff)](_0x42bd49(0xf8))['update'](_0x1ecc0b)[_0x42bd49(0xfb)](_0x42bd49(0xf4));}function a152_0x1da8(_0x4e0f6e,_0x167e4b){_0x4e0f6e=_0x4e0f6e-0xee;const _0x77e8c6=a152_0x77e8();let _0x1da8e8=_0x77e8c6[_0x4e0f6e];return _0x1da8e8;}export function computeSerializedSchemaHash(_0x374b74){return computePageContentHash(serializePageSchemaForFile(_0x374b74));}function a152_0x77e8(){const _0x215fe7=['md5','stringify','40OVWlhr','digest','utf8','12imQmMS','3122268esnctS','createHash','45TJGqLK','1369504wxcQXT','568888cqwCKv','2UXPiem','1099UXtrlH','619340fwrbqz','7903137SkKpNC','hex','13518mgrvNI','1252275vMawLm','parse'];a152_0x77e8=function(){return _0x215fe7;};return a152_0x77e8();}export async function computePageFileHash(_0x24a56a){const _0x4f5009=a152_0x1da8,_0x54a981=await readFile(_0x24a56a,_0x4f5009(0xfc));return computePageContentHash(_0x54a981);}
1
+ (function(_0x2cffef,_0x5a0371){const _0x3653ec=a153_0x43e5,_0x5c5911=_0x2cffef();while(!![]){try{const _0x4d9f15=-parseInt(_0x3653ec(0xfa))/0x1+-parseInt(_0x3653ec(0xee))/0x2+-parseInt(_0x3653ec(0xf2))/0x3+-parseInt(_0x3653ec(0xf5))/0x4+parseInt(_0x3653ec(0xef))/0x5+parseInt(_0x3653ec(0xf7))/0x6+parseInt(_0x3653ec(0xf9))/0x7*(parseInt(_0x3653ec(0xf1))/0x8);if(_0x4d9f15===_0x5a0371)break;else _0x5c5911['push'](_0x5c5911['shift']());}catch(_0x11ed30){_0x5c5911['push'](_0x5c5911['shift']());}}}(a153_0x2f67,0x67be1));import a153_0x348c8c from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x49141a){const _0x45b570=a153_0x43e5;return JSON[_0x45b570(0xed)](JSON[_0x45b570(0xf3)](_0x49141a),null,0x2)+'\x0a';}export function computePageContentHash(_0x13143e){const _0x559f71=a153_0x43e5;return a153_0x348c8c['createHash'](_0x559f71(0xf8))['update'](_0x13143e)[_0x559f71(0xf0)](_0x559f71(0xf4));}function a153_0x43e5(_0x1969a4,_0x252c72){_0x1969a4=_0x1969a4-0xed;const _0x2f6737=a153_0x2f67();let _0x43e5ef=_0x2f6737[_0x1969a4];return _0x43e5ef;}export function computeSerializedSchemaHash(_0x37444e){return computePageContentHash(serializePageSchemaForFile(_0x37444e));}function a153_0x2f67(){const _0x2af9e3=['2128710AKuQzg','md5','33271DBfjad','579790YhtvWh','stringify','1211926UlyzTa','655810RFIsfb','digest','2776edjKzS','479751ycNPiQ','parse','hex','1458556lmvQWW','utf8'];a153_0x2f67=function(){return _0x2af9e3;};return a153_0x2f67();}export async function computePageFileHash(_0x2742d8){const _0x323eda=a153_0x43e5,_0x4f7528=await readFile(_0x2742d8,_0x323eda(0xf6));return computePageContentHash(_0x4f7528);}
@@ -1 +1 @@
1
- (function(_0x114bf1,_0x32fe4f){const _0x44b853=a153_0x3f4b,_0x1c809a=_0x114bf1();while(!![]){try{const _0x3d0c5b=parseInt(_0x44b853(0x1a9))/0x1+-parseInt(_0x44b853(0x1a3))/0x2*(-parseInt(_0x44b853(0x1a7))/0x3)+-parseInt(_0x44b853(0x1ad))/0x4+-parseInt(_0x44b853(0x19e))/0x5*(parseInt(_0x44b853(0x1ac))/0x6)+parseInt(_0x44b853(0x1ab))/0x7+parseInt(_0x44b853(0x1a0))/0x8+-parseInt(_0x44b853(0x1aa))/0x9*(parseInt(_0x44b853(0x1af))/0xa);if(_0x3d0c5b===_0x32fe4f)break;else _0x1c809a['push'](_0x1c809a['shift']());}catch(_0x40766e){_0x1c809a['push'](_0x1c809a['shift']());}}}(a153_0x4b4f,0x28e0f));function a153_0x3f4b(_0x1db449,_0xd2d032){_0x1db449=_0x1db449-0x19e;const _0x4b4fd8=a153_0x4b4f();let _0x3f4b21=_0x4b4fd8[_0x1db449];return _0x3f4b21;}function a153_0x4b4f(){const _0x496711=['ENOENT','lastSync','2SFPwgD','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','object','apps','803265jobPqZ','parse','309085AAwSOI','675BAOPOT','2091698ezhHjl','36EJwpkD','787488pchzQK','pages','61470moiRiI','160365Aftivj','utf8','1136960NTpWcW'];a153_0x4b4f=function(){return _0x496711;};return a153_0x4b4f();}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x52379d,_0x5eff7c){const _0x3eb184=a153_0x3f4b,_0x105a6a={'apps':_0x52379d[_0x3eb184(0x1a6)]&&typeof _0x52379d[_0x3eb184(0x1a6)]===_0x3eb184(0x1a5)?_0x52379d[_0x3eb184(0x1a6)]:{}};let _0x23c92c=_0x105a6a[_0x3eb184(0x1a6)][_0x5eff7c];if(!_0x23c92c)return _0x23c92c={'lastSync':'','pages':{}},_0x105a6a[_0x3eb184(0x1a6)][_0x5eff7c]=_0x23c92c,{'lockData':_0x105a6a,'appLock':_0x23c92c};return!_0x23c92c[_0x3eb184(0x1a2)]&&(_0x23c92c['lastSync']=''),(!_0x23c92c[_0x3eb184(0x1ae)]||typeof _0x23c92c['pages']!=='object')&&(_0x23c92c[_0x3eb184(0x1ae)]={}),{'lockData':_0x105a6a,'appLock':_0x23c92c};}export async function readPageLockFile(_0x425a7a){const _0x315575=a153_0x3f4b;try{const _0x349289=await readFile(_0x425a7a,_0x315575(0x19f)),_0x19d07b=JSON[_0x315575(0x1a8)](_0x349289);return{'apps':_0x19d07b['apps']&&typeof _0x19d07b[_0x315575(0x1a6)]==='object'?_0x19d07b[_0x315575(0x1a6)]:{}};}catch(_0x214531){if(_0x214531['code']===_0x315575(0x1a1))return null;throw new Error(_0x315575(0x1a4)+String(_0x214531));}}export async function writePageLockFile(_0x7d253b,_0x3b5281){const _0x3c1b6b=a153_0x3f4b;await mkdir(dirname(_0x7d253b),{'recursive':!![]}),await writeFile(_0x7d253b,JSON['stringify'](_0x3b5281,null,0x2),_0x3c1b6b(0x19f));}
1
+ (function(_0x2dec23,_0x5b08ea){const _0x11b7cd=a154_0x24ad,_0x4ba0ba=_0x2dec23();while(!![]){try{const _0x35c913=parseInt(_0x11b7cd(0xa7))/0x1+parseInt(_0x11b7cd(0xa9))/0x2+parseInt(_0x11b7cd(0xa5))/0x3+-parseInt(_0x11b7cd(0xb2))/0x4+parseInt(_0x11b7cd(0xa4))/0x5+-parseInt(_0x11b7cd(0xae))/0x6*(parseInt(_0x11b7cd(0xa8))/0x7)+parseInt(_0x11b7cd(0xa3))/0x8*(-parseInt(_0x11b7cd(0xa2))/0x9);if(_0x35c913===_0x5b08ea)break;else _0x4ba0ba['push'](_0x4ba0ba['shift']());}catch(_0x4e607f){_0x4ba0ba['push'](_0x4ba0ba['shift']());}}}(a154_0x2e69,0x86cf1));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x59684c,_0x280b55){const _0x2dda85=a154_0x24ad,_0x5965bc={'apps':_0x59684c[_0x2dda85(0xad)]&&typeof _0x59684c[_0x2dda85(0xad)]===_0x2dda85(0xa6)?_0x59684c[_0x2dda85(0xad)]:{}};let _0x2590f1=_0x5965bc[_0x2dda85(0xad)][_0x280b55];if(!_0x2590f1)return _0x2590f1={'lastSync':'','pages':{}},_0x5965bc['apps'][_0x280b55]=_0x2590f1,{'lockData':_0x5965bc,'appLock':_0x2590f1};return!_0x2590f1['lastSync']&&(_0x2590f1['lastSync']=''),(!_0x2590f1[_0x2dda85(0xaa)]||typeof _0x2590f1[_0x2dda85(0xaa)]!==_0x2dda85(0xa6))&&(_0x2590f1[_0x2dda85(0xaa)]={}),{'lockData':_0x5965bc,'appLock':_0x2590f1};}export async function readPageLockFile(_0x1446e7){const _0x31c38a=a154_0x24ad;try{const _0x42a037=await readFile(_0x1446e7,_0x31c38a(0xb1)),_0x5de49a=JSON['parse'](_0x42a037);return{'apps':_0x5de49a[_0x31c38a(0xad)]&&typeof _0x5de49a[_0x31c38a(0xad)]===_0x31c38a(0xa6)?_0x5de49a[_0x31c38a(0xad)]:{}};}catch(_0x2cc8a6){if(_0x2cc8a6[_0x31c38a(0xab)]===_0x31c38a(0xac))return null;throw new Error(_0x31c38a(0xaf)+String(_0x2cc8a6));}}function a154_0x2e69(){const _0x3f9143=['1507600BSFioW','pages','code','ENOENT','apps','3190734YqytpI','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','stringify','utf8','1511196jwkCDU','17390034BLAayo','8uWYxhu','4680965DUtGhR','1861365fHlGeb','object','1083543mlPBsd','7VvAhYG'];a154_0x2e69=function(){return _0x3f9143;};return a154_0x2e69();}function a154_0x24ad(_0x41de67,_0x4a8bc4){_0x41de67=_0x41de67-0xa2;const _0x2e695c=a154_0x2e69();let _0x24adb5=_0x2e695c[_0x41de67];return _0x24adb5;}export async function writePageLockFile(_0x46ea35,_0x467c2e){const _0x50eec2=a154_0x24ad;await mkdir(dirname(_0x46ea35),{'recursive':!![]}),await writeFile(_0x46ea35,JSON[_0x50eec2(0xb0)](_0x467c2e,null,0x2),_0x50eec2(0xb1));}
@@ -1 +1 @@
1
- const a155_0x451c67=a155_0x2dbc;function a155_0x2dbc(_0xdc4707,_0x17f513){_0xdc4707=_0xdc4707-0x1a0;const _0x5f3207=a155_0x5f32();let _0x2dbcc5=_0x5f3207[_0xdc4707];return _0x2dbcc5;}(function(_0x478461,_0x10ed51){const _0x1009f4=a155_0x2dbc,_0x15a127=_0x478461();while(!![]){try{const _0x102197=parseInt(_0x1009f4(0x1a2))/0x1+parseInt(_0x1009f4(0x1ab))/0x2+-parseInt(_0x1009f4(0x1a4))/0x3+-parseInt(_0x1009f4(0x1a0))/0x4+-parseInt(_0x1009f4(0x1a1))/0x5+-parseInt(_0x1009f4(0x1aa))/0x6*(-parseInt(_0x1009f4(0x1a7))/0x7)+parseInt(_0x1009f4(0x1a3))/0x8;if(_0x102197===_0x10ed51)break;else _0x15a127['push'](_0x15a127['shift']());}catch(_0x5c3066){_0x15a127['push'](_0x15a127['shift']());}}}(a155_0x5f32,0xd28a6));function a155_0x5f32(){const _0x20fede=['1554SBVGdR','1057316QFtMOF','2731088PBIwZX','5443615FNMMsP','1423682CumFXY','13613744KbsEaA','4408662RvaUof','/sql','sql','12145mgsmPO','.rabetbase','sql.lock.json'];a155_0x5f32=function(){return _0x20fede;};return a155_0x5f32();}import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a155_0x451c67(0x1a8),LOCK_FILE_NAME=a155_0x451c67(0x1a9),TRASH_DIR_NAME='sql-trash';export function loadSqlProjectConfig(_0x219b9c,_0x28a18d){const _0x6fba22=a155_0x451c67,_0xf94068=resolve(_0x28a18d??findProjectRootDirectory()),_0x1eff2f=DOT_DIR+_0x6fba22(0x1a5),_0xbb4277=_0x1eff2f+'/'+_0x219b9c;return{'projectRoot':_0xf94068,'appCode':_0x219b9c,'sqlWorkspaceRoot':_0x1eff2f,'sqlRoot':_0xbb4277,'sqlRootDir':resolve(_0xf94068,DOT_DIR,_0x6fba22(0x1a6),_0x219b9c),'lockFilePath':resolve(_0xf94068,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0xf94068,DOT_DIR,TRASH_DIR_NAME)};}
1
+ const a156_0x5d47fe=a156_0x4ef1;(function(_0x42a6c6,_0x171e24){const _0x4a8455=a156_0x4ef1,_0xeb7ad4=_0x42a6c6();while(!![]){try{const _0x3d4759=parseInt(_0x4a8455(0xf2))/0x1+-parseInt(_0x4a8455(0xf8))/0x2+parseInt(_0x4a8455(0xf7))/0x3+parseInt(_0x4a8455(0xef))/0x4+parseInt(_0x4a8455(0xf0))/0x5*(parseInt(_0x4a8455(0xf9))/0x6)+parseInt(_0x4a8455(0xfc))/0x7*(parseInt(_0x4a8455(0xf3))/0x8)+parseInt(_0x4a8455(0xf5))/0x9*(-parseInt(_0x4a8455(0xfa))/0xa);if(_0x3d4759===_0x171e24)break;else _0xeb7ad4['push'](_0xeb7ad4['shift']());}catch(_0x289c84){_0xeb7ad4['push'](_0xeb7ad4['shift']());}}}(a156_0x1863,0xafdf9));function a156_0x4ef1(_0x2e9ea1,_0x4ca6d3){_0x2e9ea1=_0x2e9ea1-0xef;const _0x1863da=a156_0x1863();let _0x4ef1a9=_0x1863da[_0x2e9ea1];return _0x4ef1a9;}import{resolve}from'node:path';function a156_0x1863(){const _0x2cf8df=['2815340uiiXDD','6449514YYALEU','10RxyAHe','/sql','244769zPfVvj','sql-trash','2396300lewiBv','5bYUAXO','sql','1361594bpNwev','136XysbQX','.rabetbase','21354561Dfrkcq','sql.lock.json','2612247EkPEtD'];a156_0x1863=function(){return _0x2cf8df;};return a156_0x1863();}import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a156_0x5d47fe(0xf4),LOCK_FILE_NAME=a156_0x5d47fe(0xf6),TRASH_DIR_NAME=a156_0x5d47fe(0xfd);export function loadSqlProjectConfig(_0x58b84b,_0x521150){const _0x2d8322=a156_0x5d47fe,_0x108c18=resolve(_0x521150??findProjectRootDirectory()),_0xb53360=DOT_DIR+_0x2d8322(0xfb),_0x17b1c8=_0xb53360+'/'+_0x58b84b;return{'projectRoot':_0x108c18,'appCode':_0x58b84b,'sqlWorkspaceRoot':_0xb53360,'sqlRoot':_0x17b1c8,'sqlRootDir':resolve(_0x108c18,DOT_DIR,_0x2d8322(0xf1),_0x58b84b),'lockFilePath':resolve(_0x108c18,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x108c18,DOT_DIR,TRASH_DIR_NAME)};}
@@ -1 +1 @@
1
- (function(_0x3c1fa3,_0x293004){const _0x30c0db=a156_0x5f2e,_0x21f6a9=_0x3c1fa3();while(!![]){try{const _0x1aec69=-parseInt(_0x30c0db(0x16e))/0x1+parseInt(_0x30c0db(0x175))/0x2+parseInt(_0x30c0db(0x168))/0x3+-parseInt(_0x30c0db(0x15f))/0x4*(-parseInt(_0x30c0db(0x172))/0x5)+-parseInt(_0x30c0db(0x177))/0x6*(parseInt(_0x30c0db(0x16a))/0x7)+-parseInt(_0x30c0db(0x164))/0x8*(-parseInt(_0x30c0db(0x165))/0x9)+-parseInt(_0x30c0db(0x16d))/0xa;if(_0x1aec69===_0x293004)break;else _0x21f6a9['push'](_0x21f6a9['shift']());}catch(_0x5e5435){_0x21f6a9['push'](_0x21f6a9['shift']());}}}(a156_0x2a9d,0x99251));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';function a156_0x2a9d(){const _0x5a1f86=['length','7HHWWLg','slice','ENOENT','23286900WcUxzh','379684AcjaOQ','isFile','mybatisXml','test','571910INtHHI','dbName','mode','828822AkaqNI','.sql','1237290QfgnpQ','.xml','sqlRootDir','filter','replace','name','code','sqlName','isDirectory','toLowerCase','36CbhshJ','sqlCode','split','indexOf','dbId','40uVViNf','1625544YBivmo','sql','push','3584823vUWEoI'];a156_0x2a9d=function(){return _0x5a1f86;};return a156_0x2a9d();}import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0xc2a281){const _0x403a15=a156_0x5f2e;if(_0xc2a281===_0x403a15(0x176))return'sql';if(_0xc2a281===_0x403a15(0x178))return _0x403a15(0x170);return undefined;}async function scanSqlFilesRecursively(_0x26b599,_0x71fdeb){const _0x2458e5=a156_0x5f2e,_0x52dbda=[];try{const _0x5186c7=await readdir(_0x26b599,{'withFileTypes':!![]});for(const _0x5aa86e of _0x5186c7){const _0x5af669=join(_0x26b599,_0x5aa86e[_0x2458e5(0x17c)]);if(_0x5aa86e[_0x2458e5(0x15d)]()){_0x52dbda[_0x2458e5(0x167)](...await scanSqlFilesRecursively(_0x5af669,_0x71fdeb));continue;}if(!_0x5aa86e[_0x2458e5(0x16f)]())continue;const _0x141386=extname(_0x5aa86e[_0x2458e5(0x17c)])[_0x2458e5(0x15e)](),_0x26348c=extensionToMode(_0x141386);if(!_0x26348c)continue;const _0x4483c3=relative(_0x71fdeb,_0x5af669)[_0x2458e5(0x17b)](/\\/g,'/'),_0xa7ea09=_0x4483c3[_0x2458e5(0x161)]('/')[_0x2458e5(0x17a)](Boolean),_0x2ae3dc=parseSqlPath(_0xa7ea09,_0x5aa86e[_0x2458e5(0x17c)],_0x141386);if(!_0x2ae3dc)continue;_0x52dbda[_0x2458e5(0x167)]({'sqlCode':_0x2ae3dc['sqlCode'],'sqlName':_0x2ae3dc[_0x2458e5(0x17e)],'dbDirectory':_0xa7ea09[0x0],'filePath':_0x5af669,'relativePath':_0x4483c3,'lockKey':_0x2ae3dc[_0x2458e5(0x160)],'mode':_0x26348c});}}catch(_0x55b454){if(_0x55b454[_0x2458e5(0x17d)]!==_0x2458e5(0x16c))throw _0x55b454;}return _0x52dbda;}function a156_0x5f2e(_0x5e2a13,_0x3db4c7){_0x5e2a13=_0x5e2a13-0x15d;const _0x2a9db9=a156_0x2a9d();let _0x5f2ea9=_0x2a9db9[_0x5e2a13];return _0x5f2ea9;}export async function scanLocalSqlQueries(_0x35219d){const _0xd76906=a156_0x5f2e;return scanSqlFilesRecursively(_0x35219d[_0xd76906(0x179)],_0x35219d[_0xd76906(0x179)]);}export function resolveLocalSqlFilePath(_0x27a6b0,_0x197992,_0x2ae513){const _0x209a83=a156_0x5f2e,_0x56cc61=_0x2ae513?.['path']||(_0x2ae513?.[_0x209a83(0x17e)]||_0x2ae513?.[_0x209a83(0x173)]?buildSqlRelativePath(_0x197992,_0x2ae513?.[_0x209a83(0x17e)],_0x2ae513?.[_0x209a83(0x173)],_0x2ae513?.['mode']||_0x209a83(0x166),_0x2ae513?.[_0x209a83(0x163)]):buildDefaultSqlFileName(_0x197992,_0x2ae513?.[_0x209a83(0x174)]||_0x209a83(0x166)));return join(_0x27a6b0[_0x209a83(0x179)],_0x56cc61);}export async function directoryExists(_0x190c74){const _0x40b700=a156_0x5f2e;try{const _0x27aff5=await stat(_0x190c74);return _0x27aff5[_0x40b700(0x15d)]();}catch{return![];}}function parseSqlPath(_0xf20a76,_0x491803,_0x43583){const _0x341c78=a156_0x5f2e,_0x57bba6=_0x491803[_0x341c78(0x16b)](0x0,-_0x43583[_0x341c78(0x169)]);if(_0xf20a76[_0x341c78(0x169)]<0x2)return null;const _0x270889=_0x57bba6[_0x341c78(0x162)]('_');if(_0x270889<=0x0||_0x270889>=_0x57bba6['length']-0x1)return null;const _0x27c673=_0x57bba6[_0x341c78(0x16b)](0x0,_0x270889);if(!isLikelySqlCode(_0x27c673))return null;return{'sqlCode':_0x27c673,'sqlName':_0x57bba6[_0x341c78(0x16b)](_0x270889+0x1)};}function isLikelySqlCode(_0x38790d){const _0x2f08de=a156_0x5f2e;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x2f08de(0x171)](_0x38790d);}
1
+ function a157_0x49e5(_0x40a64a,_0x46441b){_0x40a64a=_0x40a64a-0xb5;const _0x1eb09c=a157_0x1eb0();let _0x49e5aa=_0x1eb09c[_0x40a64a];return _0x49e5aa;}(function(_0x5e263c,_0x1f07e8){const _0x5760b2=a157_0x49e5,_0x540840=_0x5e263c();while(!![]){try{const _0x4ed356=parseInt(_0x5760b2(0xc1))/0x1*(parseInt(_0x5760b2(0xc7))/0x2)+-parseInt(_0x5760b2(0xb7))/0x3+parseInt(_0x5760b2(0xc2))/0x4+-parseInt(_0x5760b2(0xcb))/0x5+parseInt(_0x5760b2(0xbd))/0x6+-parseInt(_0x5760b2(0xbb))/0x7*(parseInt(_0x5760b2(0xb5))/0x8)+parseInt(_0x5760b2(0xcd))/0x9*(parseInt(_0x5760b2(0xc9))/0xa);if(_0x4ed356===_0x1f07e8)break;else _0x540840['push'](_0x540840['shift']());}catch(_0x4a3ab9){_0x540840['push'](_0x540840['shift']());}}}(a157_0x1eb0,0x688e5));function a157_0x1eb0(){const _0x4b89fb=['split','.sql','33848BXwcVW','isDirectory','1145907PfkxVP','test','sqlRootDir','sql','1043kZUHjM','toLowerCase','4874142kbSaFu','dbName','slice','dbId','47iRTrCR','1518752dVbFMd','sqlCode','length','isFile','filter','29362exMDik','push','1061260lfGAqA','mode','2737645EZRuTw','name','9eKxvCo','mybatisXml','.xml','replace','sqlName'];a157_0x1eb0=function(){return _0x4b89fb;};return a157_0x1eb0();}import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x24ee74){const _0x37d740=a157_0x49e5;if(_0x24ee74===_0x37d740(0xd3))return _0x37d740(0xba);if(_0x24ee74===_0x37d740(0xcf))return _0x37d740(0xce);return undefined;}async function scanSqlFilesRecursively(_0xcf09d4,_0x2e450f){const _0x1a912d=a157_0x49e5,_0x387b79=[];try{const _0x533558=await readdir(_0xcf09d4,{'withFileTypes':!![]});for(const _0x29489b of _0x533558){const _0x5a7cb7=join(_0xcf09d4,_0x29489b[_0x1a912d(0xcc)]);if(_0x29489b[_0x1a912d(0xb6)]()){_0x387b79[_0x1a912d(0xc8)](...await scanSqlFilesRecursively(_0x5a7cb7,_0x2e450f));continue;}if(!_0x29489b[_0x1a912d(0xc5)]())continue;const _0x145a3e=extname(_0x29489b[_0x1a912d(0xcc)])[_0x1a912d(0xbc)](),_0x250dcf=extensionToMode(_0x145a3e);if(!_0x250dcf)continue;const _0x4a9b42=relative(_0x2e450f,_0x5a7cb7)[_0x1a912d(0xd0)](/\\/g,'/'),_0x3fa08e=_0x4a9b42[_0x1a912d(0xd2)]('/')[_0x1a912d(0xc6)](Boolean),_0x7c1a06=parseSqlPath(_0x3fa08e,_0x29489b[_0x1a912d(0xcc)],_0x145a3e);if(!_0x7c1a06)continue;_0x387b79[_0x1a912d(0xc8)]({'sqlCode':_0x7c1a06[_0x1a912d(0xc3)],'sqlName':_0x7c1a06[_0x1a912d(0xd1)],'dbDirectory':_0x3fa08e[0x0],'filePath':_0x5a7cb7,'relativePath':_0x4a9b42,'lockKey':_0x7c1a06[_0x1a912d(0xc3)],'mode':_0x250dcf});}}catch(_0xa06e08){if(_0xa06e08['code']!=='ENOENT')throw _0xa06e08;}return _0x387b79;}export async function scanLocalSqlQueries(_0x3a09cb){return scanSqlFilesRecursively(_0x3a09cb['sqlRootDir'],_0x3a09cb['sqlRootDir']);}export function resolveLocalSqlFilePath(_0x372f9e,_0x29a86b,_0x3bad3d){const _0x574b4a=a157_0x49e5,_0x2a8ce4=_0x3bad3d?.['path']||(_0x3bad3d?.['sqlName']||_0x3bad3d?.[_0x574b4a(0xbe)]?buildSqlRelativePath(_0x29a86b,_0x3bad3d?.[_0x574b4a(0xd1)],_0x3bad3d?.['dbName'],_0x3bad3d?.[_0x574b4a(0xca)]||_0x574b4a(0xba),_0x3bad3d?.[_0x574b4a(0xc0)]):buildDefaultSqlFileName(_0x29a86b,_0x3bad3d?.['mode']||'sql'));return join(_0x372f9e[_0x574b4a(0xb9)],_0x2a8ce4);}export async function directoryExists(_0x124c3d){try{const _0x481dbc=await stat(_0x124c3d);return _0x481dbc['isDirectory']();}catch{return![];}}function parseSqlPath(_0x1bc33a,_0x4bda22,_0x480b3f){const _0x30ae74=a157_0x49e5,_0x1e17dd=_0x4bda22['slice'](0x0,-_0x480b3f[_0x30ae74(0xc4)]);if(_0x1bc33a[_0x30ae74(0xc4)]<0x2)return null;const _0x21884b=_0x1e17dd['indexOf']('_');if(_0x21884b<=0x0||_0x21884b>=_0x1e17dd[_0x30ae74(0xc4)]-0x1)return null;const _0x2a6da5=_0x1e17dd[_0x30ae74(0xbf)](0x0,_0x21884b);if(!isLikelySqlCode(_0x2a6da5))return null;return{'sqlCode':_0x2a6da5,'sqlName':_0x1e17dd[_0x30ae74(0xbf)](_0x21884b+0x1)};}function isLikelySqlCode(_0x582097){const _0x245121=a157_0x49e5;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x245121(0xb8)](_0x582097);}
@@ -1 +1 @@
1
- (function(_0x2ca627,_0x43dec4){const _0x265ddc=a157_0x29dc,_0x536813=_0x2ca627();while(!![]){try{const _0x1d883c=parseInt(_0x265ddc(0x110))/0x1+parseInt(_0x265ddc(0x118))/0x2*(-parseInt(_0x265ddc(0x10d))/0x3)+parseInt(_0x265ddc(0x117))/0x4+-parseInt(_0x265ddc(0x111))/0x5*(parseInt(_0x265ddc(0x115))/0x6)+parseInt(_0x265ddc(0x112))/0x7+-parseInt(_0x265ddc(0x10e))/0x8+parseInt(_0x265ddc(0x10f))/0x9*(parseInt(_0x265ddc(0x114))/0xa);if(_0x1d883c===_0x43dec4)break;else _0x536813['push'](_0x536813['shift']());}catch(_0x4d4bc3){_0x536813['push'](_0x536813['shift']());}}}(a157_0x250f,0x858c7));import{readFile}from'node:fs/promises';import a157_0x772c76 from'node:crypto';function a157_0x250f(){const _0x36db87=['591318ImoqUn','891978UPSsHI','48475stToQN','6304053EKlyFR','createHash','110ykpReP','408AvDUgY','md5','1559736fVkvhQ','438502SWcwGq','12KvJotI','6575472bbbgqs'];a157_0x250f=function(){return _0x36db87;};return a157_0x250f();}export function computeSqlContentHash(_0x2cb76a){const _0x392225=a157_0x29dc;return a157_0x772c76[_0x392225(0x113)](_0x392225(0x116))['update'](_0x2cb76a)['digest']('hex');}function a157_0x29dc(_0x2fbd8c,_0x1b448f){_0x2fbd8c=_0x2fbd8c-0x10d;const _0x250fc9=a157_0x250f();let _0x29dc0a=_0x250fc9[_0x2fbd8c];return _0x29dc0a;}export async function computeSqlFileHash(_0x33b397){const _0x45dd86=await readFile(_0x33b397,'utf8');return computeSqlContentHash(_0x45dd86);}
1
+ (function(_0x34e847,_0x272f3f){const _0x13f7d3=a158_0x30c5,_0x351678=_0x34e847();while(!![]){try{const _0x5b467d=-parseInt(_0x13f7d3(0x111))/0x1*(-parseInt(_0x13f7d3(0x103))/0x2)+-parseInt(_0x13f7d3(0x10f))/0x3*(-parseInt(_0x13f7d3(0x107))/0x4)+parseInt(_0x13f7d3(0x10c))/0x5*(parseInt(_0x13f7d3(0x106))/0x6)+parseInt(_0x13f7d3(0x10a))/0x7*(parseInt(_0x13f7d3(0x101))/0x8)+-parseInt(_0x13f7d3(0x10b))/0x9+parseInt(_0x13f7d3(0x108))/0xa*(-parseInt(_0x13f7d3(0x110))/0xb)+-parseInt(_0x13f7d3(0x10e))/0xc;if(_0x5b467d===_0x272f3f)break;else _0x351678['push'](_0x351678['shift']());}catch(_0x1ec25c){_0x351678['push'](_0x351678['shift']());}}}(a158_0x2a0a,0x20326));import{readFile}from'node:fs/promises';import a158_0x52a1fa from'node:crypto';function a158_0x2a0a(){const _0x5c0c9c=['149374SPXFqs','update','md5','1312764VCCiRl','4QYfZXL','10LwdUjf','hex','7jdStyJ','28683TmokEf','5SgSCdn','utf8','2947152zqHKCs','600045rWVCDq','2450723DveSeJ','1PidOgt','digest','879664kjbUpc','createHash'];a158_0x2a0a=function(){return _0x5c0c9c;};return a158_0x2a0a();}export function computeSqlContentHash(_0x247db3){const _0x11b200=a158_0x30c5;return a158_0x52a1fa[_0x11b200(0x102)](_0x11b200(0x105))[_0x11b200(0x104)](_0x247db3)[_0x11b200(0x112)](_0x11b200(0x109));}function a158_0x30c5(_0x38ac79,_0x4a6ee2){_0x38ac79=_0x38ac79-0x101;const _0x2a0ab3=a158_0x2a0a();let _0x30c522=_0x2a0ab3[_0x38ac79];return _0x30c522;}export async function computeSqlFileHash(_0x28e3e4){const _0x5f535f=a158_0x30c5,_0x2190d4=await readFile(_0x28e3e4,_0x5f535f(0x10d));return computeSqlContentHash(_0x2190d4);}
@@ -1 +1 @@
1
- function a158_0x327b(_0x42f5a0,_0x5d81b3){_0x42f5a0=_0x42f5a0-0x11d;const _0x1c1d93=a158_0x1c1d();let _0x327b75=_0x1c1d93[_0x42f5a0];return _0x327b75;}(function(_0x4dfe9d,_0x768def){const _0x1d4e69=a158_0x327b,_0x2a10e1=_0x4dfe9d();while(!![]){try{const _0x532f9d=-parseInt(_0x1d4e69(0x127))/0x1+-parseInt(_0x1d4e69(0x123))/0x2+parseInt(_0x1d4e69(0x129))/0x3+parseInt(_0x1d4e69(0x128))/0x4*(-parseInt(_0x1d4e69(0x122))/0x5)+-parseInt(_0x1d4e69(0x131))/0x6+-parseInt(_0x1d4e69(0x12d))/0x7*(-parseInt(_0x1d4e69(0x11d))/0x8)+parseInt(_0x1d4e69(0x11f))/0x9*(parseInt(_0x1d4e69(0x12b))/0xa);if(_0x532f9d===_0x768def)break;else _0x2a10e1['push'](_0x2a10e1['shift']());}catch(_0x525108){_0x2a10e1['push'](_0x2a10e1['shift']());}}}(a158_0x1c1d,0x755fd));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x4a4e1b,_0x4bde7c,_0x113e55,_0x106fd5){const _0x255f8d=a158_0x327b,_0x4c350d=_0x4a4e1b??createEmptySqlLock();let _0x15a348=_0x4c350d[_0x255f8d(0x121)][_0x4bde7c];if(!_0x15a348)return _0x15a348={'sqlRoot':_0x113e55,'lastSync':'','sqls':{}},_0x4c350d[_0x255f8d(0x121)][_0x4bde7c]=_0x15a348,{'lockData':_0x4c350d,'appLock':_0x15a348};if(!_0x15a348['sqlRoot'])_0x15a348[_0x255f8d(0x12c)]=_0x113e55;else{if(_0x15a348[_0x255f8d(0x12c)]!==_0x113e55)throw new Error(_0x106fd5+_0x255f8d(0x12a)+_0x113e55+_0x255f8d(0x130)+_0x15a348[_0x255f8d(0x12c)]+_0x255f8d(0x12e)+_0x255f8d(0x124));}return!_0x15a348['sqls']&&(_0x15a348['sqls']={}),!_0x15a348['lastSync']&&(_0x15a348['lastSync']=''),{'lockData':_0x4c350d,'appLock':_0x15a348};}export async function readSqlLockFile(_0x42c74a){const _0x4d6ddc=a158_0x327b;try{const _0x15dfcf=await readFile(_0x42c74a,'utf8');return JSON[_0x4d6ddc(0x126)](_0x15dfcf);}catch(_0x2eb6fb){if(_0x2eb6fb[_0x4d6ddc(0x11e)]===_0x4d6ddc(0x125))return null;throw new Error('Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'+String(_0x2eb6fb));}}export async function writeSqlLockFile(_0x58a973,_0x528f33){const _0x4b1357=a158_0x327b;await mkdir(dirname(_0x58a973),{'recursive':!![]}),await writeFile(_0x58a973,JSON[_0x4b1357(0x12f)](_0x528f33,null,0x2),_0x4b1357(0x120));}function a158_0x1c1d(){const _0xcab8e1=['2475470nkZWnA','728422PvMDQh','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','ENOENT','parse','603936lITaZf','4qDEoHS','2316159lTSWcc',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','320OrUadF','sqlRoot','7VVktII','\x22.\x20','stringify','\x22\x20vs\x20lock\x20\x22','1886190VUMMub','7366512dODIAt','code','159048URKGBc','utf8','apps'];a158_0x1c1d=function(){return _0xcab8e1;};return a158_0x1c1d();}
1
+ (function(_0x17e704,_0xf7fe3b){const _0x2e3046=a159_0x3d82,_0x1e6497=_0x17e704();while(!![]){try{const _0x274859=-parseInt(_0x2e3046(0x19f))/0x1+parseInt(_0x2e3046(0x1ae))/0x2*(parseInt(_0x2e3046(0x19d))/0x3)+parseInt(_0x2e3046(0x1a9))/0x4+parseInt(_0x2e3046(0x19e))/0x5+-parseInt(_0x2e3046(0x1a1))/0x6*(parseInt(_0x2e3046(0x1a7))/0x7)+-parseInt(_0x2e3046(0x1ab))/0x8*(parseInt(_0x2e3046(0x1ad))/0x9)+parseInt(_0x2e3046(0x1a5))/0xa*(parseInt(_0x2e3046(0x1a8))/0xb);if(_0x274859===_0xf7fe3b)break;else _0x1e6497['push'](_0x1e6497['shift']());}catch(_0x401539){_0x1e6497['push'](_0x1e6497['shift']());}}}(a159_0x2b70,0x42563));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}function a159_0x2b70(){const _0xaf3df=['Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','parse','17610QRcKnS','lastSync','81970HfHaFR','2596zlhgXl','345568CVdQvD','stringify','17928wVJUox','apps','657MkCizM','280954zAJbyt','\x22.\x20','utf8','sqlRoot','6vJcvEC','1644565DPaQkz','477477WwmmsH','sqls','102bBpQAG',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22'];a159_0x2b70=function(){return _0xaf3df;};return a159_0x2b70();}export function ensureSqlLockScope(_0x8ed11f,_0x510c17,_0x46b64a,_0x16eea8){const _0x24ed65=a159_0x3d82,_0x22f145=_0x8ed11f??createEmptySqlLock();let _0x1a3bb0=_0x22f145[_0x24ed65(0x1ac)][_0x510c17];if(!_0x1a3bb0)return _0x1a3bb0={'sqlRoot':_0x46b64a,'lastSync':'','sqls':{}},_0x22f145[_0x24ed65(0x1ac)][_0x510c17]=_0x1a3bb0,{'lockData':_0x22f145,'appLock':_0x1a3bb0};if(!_0x1a3bb0[_0x24ed65(0x19c)])_0x1a3bb0[_0x24ed65(0x19c)]=_0x46b64a;else{if(_0x1a3bb0['sqlRoot']!==_0x46b64a)throw new Error(_0x16eea8+_0x24ed65(0x1a2)+_0x46b64a+'\x22\x20vs\x20lock\x20\x22'+_0x1a3bb0[_0x24ed65(0x19c)]+_0x24ed65(0x1af)+_0x24ed65(0x1a3));}return!_0x1a3bb0[_0x24ed65(0x1a0)]&&(_0x1a3bb0[_0x24ed65(0x1a0)]={}),!_0x1a3bb0[_0x24ed65(0x1a6)]&&(_0x1a3bb0[_0x24ed65(0x1a6)]=''),{'lockData':_0x22f145,'appLock':_0x1a3bb0};}function a159_0x3d82(_0x3a6e26,_0x37e7c0){_0x3a6e26=_0x3a6e26-0x19b;const _0x2b7029=a159_0x2b70();let _0x3d820e=_0x2b7029[_0x3a6e26];return _0x3d820e;}export async function readSqlLockFile(_0x30f92b){const _0x3b1e6b=a159_0x3d82;try{const _0x5c4a17=await readFile(_0x30f92b,'utf8');return JSON[_0x3b1e6b(0x1a4)](_0x5c4a17);}catch(_0x4cd0a7){if(_0x4cd0a7['code']==='ENOENT')return null;throw new Error('Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'+String(_0x4cd0a7));}}export async function writeSqlLockFile(_0x5d5f43,_0x1cfbab){const _0x275cfb=a159_0x3d82;await mkdir(dirname(_0x5d5f43),{'recursive':!![]}),await writeFile(_0x5d5f43,JSON[_0x275cfb(0x1aa)](_0x1cfbab,null,0x2),_0x275cfb(0x19b));}
@@ -1 +1 @@
1
- (function(_0x564733,_0x46ded8){const _0x8bc5a0=a160_0x2628,_0x8c71d4=_0x564733();while(!![]){try{const _0x3bce95=parseInt(_0x8bc5a0(0x12d))/0x1*(parseInt(_0x8bc5a0(0x132))/0x2)+-parseInt(_0x8bc5a0(0x133))/0x3+parseInt(_0x8bc5a0(0x134))/0x4*(parseInt(_0x8bc5a0(0x136))/0x5)+parseInt(_0x8bc5a0(0x127))/0x6*(parseInt(_0x8bc5a0(0x131))/0x7)+-parseInt(_0x8bc5a0(0x137))/0x8+parseInt(_0x8bc5a0(0x12a))/0x9+parseInt(_0x8bc5a0(0x128))/0xa;if(_0x3bce95===_0x46ded8)break;else _0x8c71d4['push'](_0x8c71d4['shift']());}catch(_0x3a3844){_0x8c71d4['push'](_0x8c71d4['shift']());}}}(a160_0x1f4e,0x43436));export function detectSqlMode(_0x5f5052){const _0x476177=a160_0x2628,_0x2797fb=_0x5f5052[_0x476177(0x138)]();if(/^<(select|insert|update|delete)\b/i[_0x476177(0x12f)](_0x2797fb))return'mybatisXml';return _0x476177(0x130);}export function getSqlFileExtension(_0x4ec3ac){const _0x1cae89=a160_0x2628;return _0x4ec3ac===_0x1cae89(0x129)?'.xml':_0x1cae89(0x12e);}export function buildDefaultSqlFileName(_0xd322d9,_0x4b1ff2){return''+_0xd322d9+getSqlFileExtension(_0x4b1ff2);}export function sanitizeSqlPathSegment(_0x788cd1,_0x9e70a0){const _0x1614f3=a160_0x2628,_0x56ed0e=String(_0x788cd1??'')[_0x1614f3(0x135)](),_0x1aad07=_0x56ed0e[_0x1614f3(0x126)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x1614f3(0x126)](/\s+/g,'-')[_0x1614f3(0x126)](/-+/g,'-')[_0x1614f3(0x126)](/^\.+/,'')['replace'](/\.+$/,'')[_0x1614f3(0x126)](/^-+/,'')[_0x1614f3(0x126)](/-+$/,'');return _0x1aad07||_0x9e70a0;}function a160_0x1f4e(){const _0x14b3b5=['4DsxLjS','trim','77685qDCQxK','3384728RMcXtK','trimStart','replace','30YSlRFu','7270450WartMV','mybatisXml','222804jMslhi','unknown-db','unknown-sql','3rHtOHN','.sql','test','sql','177793olhCkj','78834QemDnw','941949XEoyKC'];a160_0x1f4e=function(){return _0x14b3b5;};return a160_0x1f4e();}function a160_0x2628(_0x1916da,_0x3a3775){_0x1916da=_0x1916da-0x126;const _0x1f4efb=a160_0x1f4e();let _0x2628e0=_0x1f4efb[_0x1916da];return _0x2628e0;}export function buildDbDirectoryName(_0x1dffbb,_0x491180){const _0x1c2819=a160_0x2628;return sanitizeSqlPathSegment(_0x1dffbb,_0x491180!=null?'db-'+_0x491180:_0x1c2819(0x12b));}export function buildSqlRelativePath(_0x2c915f,_0x3923b5,_0x5c29d8,_0x586c78,_0x3f31ca){const _0x1fd024=a160_0x2628,_0x111ab7=buildDbDirectoryName(_0x5c29d8,_0x3f31ca),_0x398959=sanitizeSqlPathSegment(_0x2c915f,_0x1fd024(0x12c)),_0x14d08b=sanitizeSqlPathSegment(_0x3923b5,_0x398959);return _0x111ab7+'/'+_0x398959+'_'+_0x14d08b+getSqlFileExtension(_0x586c78);}
1
+ function a161_0x5a67(_0x4d6287,_0x278e0e){_0x4d6287=_0x4d6287-0x10f;const _0x43396f=a161_0x4339();let _0x5a6733=_0x43396f[_0x4d6287];return _0x5a6733;}(function(_0x7ea224,_0x492763){const _0x27485e=a161_0x5a67,_0x372955=_0x7ea224();while(!![]){try{const _0x46a9d4=-parseInt(_0x27485e(0x11a))/0x1+parseInt(_0x27485e(0x11c))/0x2+parseInt(_0x27485e(0x119))/0x3*(parseInt(_0x27485e(0x10f))/0x4)+-parseInt(_0x27485e(0x110))/0x5+parseInt(_0x27485e(0x113))/0x6+parseInt(_0x27485e(0x116))/0x7+-parseInt(_0x27485e(0x114))/0x8*(-parseInt(_0x27485e(0x11d))/0x9);if(_0x46a9d4===_0x492763)break;else _0x372955['push'](_0x372955['shift']());}catch(_0x33f7ac){_0x372955['push'](_0x372955['shift']());}}}(a161_0x4339,0x5526b));export function detectSqlMode(_0x4566dd){const _0x2ecf21=a161_0x5a67,_0x4101e3=_0x4566dd[_0x2ecf21(0x11b)]();if(/^<(select|insert|update|delete)\b/i['test'](_0x4101e3))return'mybatisXml';return _0x2ecf21(0x111);}export function getSqlFileExtension(_0x2e8fb5){const _0x15134b=a161_0x5a67;return _0x2e8fb5==='mybatisXml'?_0x15134b(0x118):_0x15134b(0x112);}export function buildDefaultSqlFileName(_0x3f5976,_0x45adb3){return''+_0x3f5976+getSqlFileExtension(_0x45adb3);}export function sanitizeSqlPathSegment(_0x4f30c6,_0xa7eeef){const _0x5bf209=a161_0x5a67,_0xe46f81=String(_0x4f30c6??'')[_0x5bf209(0x117)](),_0xf5d910=_0xe46f81[_0x5bf209(0x115)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x5bf209(0x115)](/\s+/g,'-')['replace'](/-+/g,'-')['replace'](/^\.+/,'')['replace'](/\.+$/,'')[_0x5bf209(0x115)](/^-+/,'')[_0x5bf209(0x115)](/-+$/,'');return _0xf5d910||_0xa7eeef;}function a161_0x4339(){const _0x32ad29=['2442625yNdvFA','sql','.sql','1400304McWutU','411904faGKHD','replace','755643sUMbdq','trim','.xml','3dvXOxC','29749vJXQyt','trimStart','257400VGVqzY','36rtCkWL','unknown-sql','764272HKFlOk'];a161_0x4339=function(){return _0x32ad29;};return a161_0x4339();}export function buildDbDirectoryName(_0x4099f8,_0x1609bc){return sanitizeSqlPathSegment(_0x4099f8,_0x1609bc!=null?'db-'+_0x1609bc:'unknown-db');}export function buildSqlRelativePath(_0x21e02e,_0x4a29eb,_0x41dbec,_0x3e62b1,_0x153d1b){const _0x179d64=a161_0x5a67,_0xae86c0=buildDbDirectoryName(_0x41dbec,_0x153d1b),_0x39dfd3=sanitizeSqlPathSegment(_0x21e02e,_0x179d64(0x11e)),_0xb07cd8=sanitizeSqlPathSegment(_0x4a29eb,_0x39dfd3);return _0xae86c0+'/'+_0x39dfd3+'_'+_0xb07cd8+getSqlFileExtension(_0x3e62b1);}
@@ -1 +1 @@
1
- (function(_0x572e8b,_0x417fce){const _0x48d42d=a161_0x4e67,_0x13470e=_0x572e8b();while(!![]){try{const _0x2f73c6=parseInt(_0x48d42d(0x193))/0x1+-parseInt(_0x48d42d(0x17c))/0x2+-parseInt(_0x48d42d(0x183))/0x3*(-parseInt(_0x48d42d(0x18d))/0x4)+parseInt(_0x48d42d(0x16f))/0x5*(-parseInt(_0x48d42d(0x17e))/0x6)+parseInt(_0x48d42d(0x192))/0x7+-parseInt(_0x48d42d(0x16e))/0x8*(-parseInt(_0x48d42d(0x180))/0x9)+-parseInt(_0x48d42d(0x185))/0xa;if(_0x2f73c6===_0x417fce)break;else _0x13470e['push'](_0x13470e['shift']());}catch(_0x2e94d6){_0x13470e['push'](_0x13470e['shift']());}}}(a161_0x8f1d,0xb66e8));export function detectSqlType(_0x57dafb){const _0x8ff77c=a161_0x4e67;if(!_0x57dafb?.['trim']())return{'type':_0x8ff77c(0x18b),'isSelectOnly':![],'isDangerous':![],'reason':'SQL\x20content\x20is\x20empty'};const _0x44d324=_0x57dafb[_0x8ff77c(0x191)](/#\{[^}]*\}/g,'?')[_0x8ff77c(0x191)](/\$\{[^}]*\}/g,'?')[_0x8ff77c(0x191)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x8ff77c(0x191)](/\/\*[\s\S]*?\*\//g,'')['trim'](),_0x4df7cc=_0x44d324['split']('\x0a');let _0x1319de='';for(const _0x1aaabc of _0x4df7cc){const _0x4b4a45=_0x1aaabc['trim']();if(!_0x4b4a45||_0x4b4a45[_0x8ff77c(0x17d)]('--')||_0x4b4a45[_0x8ff77c(0x17d)]('/*'))continue;_0x1319de=_0x4b4a45;break;}const _0x15eaa7=_0x1319de[_0x8ff77c(0x179)]();if(_0x15eaa7['startsWith'](_0x8ff77c(0x190))||_0x15eaa7['startsWith'](_0x8ff77c(0x172))){const _0x5b031a=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x8ff77c(0x174)](_0x44d324);return{'type':_0x8ff77c(0x190),'isSelectOnly':!_0x5b031a,'isDangerous':_0x5b031a,'reason':_0x5b031a?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x15eaa7['startsWith'](_0x8ff77c(0x18a)))return{'type':_0x8ff77c(0x18a),'isSelectOnly':![],'isDangerous':![]};if(_0x15eaa7[_0x8ff77c(0x17d)](_0x8ff77c(0x18c)))return{'type':'UPDATE','isSelectOnly':![],'isDangerous':![]};if(_0x15eaa7[_0x8ff77c(0x17d)](_0x8ff77c(0x188)))return{'type':_0x8ff77c(0x188),'isSelectOnly':![],'isDangerous':!![],'reason':_0x8ff77c(0x175)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x8ff77c(0x174)](_0x15eaa7))return{'type':_0x8ff77c(0x17a),'isSelectOnly':![],'isDangerous':!![],'reason':_0x8ff77c(0x187)};return{'type':_0x8ff77c(0x18b),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x13bc67){const _0xc782b2=a161_0x4e67,_0x4a3227=_0x13bc67['replace'](/#\{[^}]*\}/g,'?')[_0xc782b2(0x191)](/\$\{[^}]*\}/g,'?')[_0xc782b2(0x191)](/'[^']*'/g,'\x27\x27')[_0xc782b2(0x191)](/--.*$/gm,'')[_0xc782b2(0x191)](/\/\*[\s\S]*?\*\//g,''),_0x50b604=[],_0x3daa08=_0x4a3227['match'](/FROM\s+([^\s,)(]+)/i);if(_0x3daa08?.[0x1])_0x50b604[_0xc782b2(0x184)](_0x3daa08[0x1][_0xc782b2(0x191)](/[`"]/g,''));for(const _0x5b105c of _0x4a3227[_0xc782b2(0x17f)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x33d072=_0x5b105c[0x1]?.[_0xc782b2(0x191)](/[`"]/g,'');if(_0x33d072&&!_0x50b604[_0xc782b2(0x173)](_0x33d072))_0x50b604[_0xc782b2(0x184)](_0x33d072);}const _0x19a32e=_0x4a3227[_0xc782b2(0x17b)](/INTO\s+([^\s(]+)/i);if(_0x19a32e?.[0x1]){const _0x404746=_0x19a32e[0x1][_0xc782b2(0x191)](/[`"]/g,'');if(!_0x50b604['includes'](_0x404746))_0x50b604[_0xc782b2(0x184)](_0x404746);}const _0x2f89e7=_0x4a3227['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x2f89e7?.[0x1]){const _0x13ce69=_0x2f89e7[0x1][_0xc782b2(0x191)](/[`"]/g,'');if(!_0x50b604[_0xc782b2(0x173)](_0x13ce69))_0x50b604[_0xc782b2(0x184)](_0x13ce69);}return _0x50b604;}function extractParameters(_0x54710f){const _0x170f44=a161_0x4e67,_0xfb6f41=new Set();for(const _0x2b7ef3 of _0x54710f[_0x170f44(0x17f)](/#\{(\w+)\}/g))if(_0x2b7ef3[0x1])_0xfb6f41[_0x170f44(0x177)](_0x2b7ef3[0x1]);for(const _0x2505ef of _0x54710f['matchAll'](/\$\{(\w+)\}/g))if(_0x2505ef[0x1])_0xfb6f41[_0x170f44(0x177)](_0x2505ef[0x1]);return Array['from'](_0xfb6f41);}function a161_0x4e67(_0x49ba97,_0x2a8f46){_0x49ba97=_0x49ba97-0x16e;const _0x8f1d28=a161_0x8f1d();let _0x4e6728=_0x8f1d28[_0x49ba97];return _0x4e6728;}function a161_0x8f1d(){const _0x31f988=['847189idiZoI','17624JSINxV','5556235wViGFD','unknown\x20table(s)','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','WITH','includes','test','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','isDangerous','add','\x20with\x20parameters:\x20','toUpperCase','DDL','match','215740EnDCrM','startsWith','6pnwWXc','matchAll','126TkOuEy','length','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','12qdBGaE','push','13223210DfHbYj','type','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','DELETE','\x20query\x20targeting\x20','INSERT','UNKNOWN','UPDATE','1098436GrKmnn','join','reason','SELECT','replace','9185477LHyyma'];a161_0x8f1d=function(){return _0x31f988;};return a161_0x8f1d();}export function validateSql(_0x6fea37){const _0x54d12d=a161_0x4e67,_0x38133e=detectSqlType(_0x6fea37),_0x8a8868=extractTables(_0x6fea37),_0x2dfb03=extractParameters(_0x6fea37);if(_0x38133e[_0x54d12d(0x176)])return{'valid':![],'sqlType':_0x38133e,'tables':_0x8a8868,'parameters':_0x2dfb03,'message':_0x38133e[_0x54d12d(0x18f)]||_0x38133e['type']+_0x54d12d(0x182)};if(_0x38133e[_0x54d12d(0x186)]===_0x54d12d(0x18b))return{'valid':![],'sqlType':_0x38133e,'tables':_0x8a8868,'parameters':_0x2dfb03,'message':_0x54d12d(0x171)};return{'valid':!![],'sqlType':_0x38133e,'tables':_0x8a8868,'parameters':_0x2dfb03,'message':_0x38133e['type']+_0x54d12d(0x189)+(_0x8a8868[_0x54d12d(0x181)]?_0x8a8868[_0x54d12d(0x18e)](',\x20'):_0x54d12d(0x170))+(_0x2dfb03[_0x54d12d(0x181)]?_0x54d12d(0x178)+_0x2dfb03[_0x54d12d(0x18e)](',\x20'):'')};}
1
+ (function(_0x387d5e,_0x3be06c){const _0x840d20=a162_0x1d25,_0x228323=_0x387d5e();while(!![]){try{const _0x33c712=parseInt(_0x840d20(0x1be))/0x1+-parseInt(_0x840d20(0x1c1))/0x2*(parseInt(_0x840d20(0x1c7))/0x3)+parseInt(_0x840d20(0x1db))/0x4+-parseInt(_0x840d20(0x1dd))/0x5*(parseInt(_0x840d20(0x1cc))/0x6)+-parseInt(_0x840d20(0x1d7))/0x7+-parseInt(_0x840d20(0x1d1))/0x8+parseInt(_0x840d20(0x1dc))/0x9;if(_0x33c712===_0x3be06c)break;else _0x228323['push'](_0x228323['shift']());}catch(_0x78c3d){_0x228323['push'](_0x228323['shift']());}}}(a162_0xc50d,0x38fd9));export function detectSqlType(_0x436d81){const _0x31941f=a162_0x1d25;if(!_0x436d81?.[_0x31941f(0x1ba)]())return{'type':_0x31941f(0x1ce),'isSelectOnly':![],'isDangerous':![],'reason':'SQL\x20content\x20is\x20empty'};const _0x56f689=_0x436d81['replace'](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x31941f(0x1d8)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x31941f(0x1d8)](/\/\*[\s\S]*?\*\//g,'')[_0x31941f(0x1ba)](),_0xa96eb6=_0x56f689[_0x31941f(0x1c9)]('\x0a');let _0x258efb='';for(const _0x528f61 of _0xa96eb6){const _0x278d43=_0x528f61['trim']();if(!_0x278d43||_0x278d43['startsWith']('--')||_0x278d43[_0x31941f(0x1b8)]('/*'))continue;_0x258efb=_0x278d43;break;}const _0x1b322c=_0x258efb[_0x31941f(0x1c4)]();if(_0x1b322c[_0x31941f(0x1b8)](_0x31941f(0x1d2))||_0x1b322c[_0x31941f(0x1b8)](_0x31941f(0x1ca))){const _0x4eb3a1=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x31941f(0x1d4)](_0x56f689);return{'type':_0x31941f(0x1d2),'isSelectOnly':!_0x4eb3a1,'isDangerous':_0x4eb3a1,'reason':_0x4eb3a1?_0x31941f(0x1c3):undefined};}if(_0x1b322c[_0x31941f(0x1b8)](_0x31941f(0x1d9)))return{'type':_0x31941f(0x1d9),'isSelectOnly':![],'isDangerous':![]};if(_0x1b322c[_0x31941f(0x1b8)](_0x31941f(0x1d6)))return{'type':_0x31941f(0x1d6),'isSelectOnly':![],'isDangerous':![]};if(_0x1b322c[_0x31941f(0x1b8)](_0x31941f(0x1bd)))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':_0x31941f(0x1bb)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x31941f(0x1d4)](_0x1b322c))return{'type':_0x31941f(0x1cb),'isSelectOnly':![],'isDangerous':!![],'reason':_0x31941f(0x1c2)};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x404698){const _0x394c5e=a162_0x1d25,_0x4792be=_0x404698[_0x394c5e(0x1d8)](/#\{[^}]*\}/g,'?')[_0x394c5e(0x1d8)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')[_0x394c5e(0x1d8)](/\/\*[\s\S]*?\*\//g,''),_0x16b82d=[],_0x2bc285=_0x4792be['match'](/FROM\s+([^\s,)(]+)/i);if(_0x2bc285?.[0x1])_0x16b82d[_0x394c5e(0x1d3)](_0x2bc285[0x1][_0x394c5e(0x1d8)](/[`"]/g,''));for(const _0x171532 of _0x4792be[_0x394c5e(0x1c8)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x27744f=_0x171532[0x1]?.['replace'](/[`"]/g,'');if(_0x27744f&&!_0x16b82d[_0x394c5e(0x1de)](_0x27744f))_0x16b82d['push'](_0x27744f);}const _0x32d74b=_0x4792be['match'](/INTO\s+([^\s(]+)/i);if(_0x32d74b?.[0x1]){const _0xcf7300=_0x32d74b[0x1][_0x394c5e(0x1d8)](/[`"]/g,'');if(!_0x16b82d[_0x394c5e(0x1de)](_0xcf7300))_0x16b82d[_0x394c5e(0x1d3)](_0xcf7300);}const _0x590222=_0x4792be[_0x394c5e(0x1d5)](/UPDATE\s+([^\s,)(]+)/i);if(_0x590222?.[0x1]){const _0x15ef96=_0x590222[0x1]['replace'](/[`"]/g,'');if(!_0x16b82d[_0x394c5e(0x1de)](_0x15ef96))_0x16b82d['push'](_0x15ef96);}return _0x16b82d;}function extractParameters(_0x354fb0){const _0x7a23e3=a162_0x1d25,_0x5cc1e6=new Set();for(const _0x1d8ec4 of _0x354fb0[_0x7a23e3(0x1c8)](/#\{(\w+)\}/g))if(_0x1d8ec4[0x1])_0x5cc1e6[_0x7a23e3(0x1c5)](_0x1d8ec4[0x1]);for(const _0x40fcef of _0x354fb0[_0x7a23e3(0x1c8)](/\$\{(\w+)\}/g))if(_0x40fcef[0x1])_0x5cc1e6['add'](_0x40fcef[0x1]);return Array[_0x7a23e3(0x1cf)](_0x5cc1e6);}function a162_0xc50d(){const _0x778881=['from','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','1256888VcPRZf','SELECT','push','test','match','UPDATE','619234kyHlCv','replace','INSERT','length','1140588FeCczt','6057306nyjkWT','85wyLhMv','includes','startsWith','\x20query\x20targeting\x20','trim','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','isDangerous','DELETE','146211SvFtwZ','type','reason','2KZKGyh','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','toUpperCase','add','join','1025376aEUSeO','matchAll','split','WITH','DDL','100092RQMXJx','\x20with\x20parameters:\x20','UNKNOWN'];a162_0xc50d=function(){return _0x778881;};return a162_0xc50d();}function a162_0x1d25(_0xcdae35,_0x265758){_0xcdae35=_0xcdae35-0x1b8;const _0xc50dc3=a162_0xc50d();let _0x1d2526=_0xc50dc3[_0xcdae35];return _0x1d2526;}export function validateSql(_0x30b4cd){const _0x1973bf=a162_0x1d25,_0x579ec8=detectSqlType(_0x30b4cd),_0x46bb79=extractTables(_0x30b4cd),_0x246881=extractParameters(_0x30b4cd);if(_0x579ec8[_0x1973bf(0x1bc)])return{'valid':![],'sqlType':_0x579ec8,'tables':_0x46bb79,'parameters':_0x246881,'message':_0x579ec8[_0x1973bf(0x1c0)]||_0x579ec8[_0x1973bf(0x1bf)]+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x579ec8[_0x1973bf(0x1bf)]===_0x1973bf(0x1ce))return{'valid':![],'sqlType':_0x579ec8,'tables':_0x46bb79,'parameters':_0x246881,'message':_0x1973bf(0x1d0)};return{'valid':!![],'sqlType':_0x579ec8,'tables':_0x46bb79,'parameters':_0x246881,'message':_0x579ec8[_0x1973bf(0x1bf)]+_0x1973bf(0x1b9)+(_0x46bb79[_0x1973bf(0x1da)]?_0x46bb79[_0x1973bf(0x1c6)](',\x20'):'unknown\x20table(s)')+(_0x246881[_0x1973bf(0x1da)]?_0x1973bf(0x1cd)+_0x246881[_0x1973bf(0x1c6)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a162_0x439019=a162_0x4be5;(function(_0xda01b1,_0x4b3098){const _0x4ae819=a162_0x4be5,_0x1972a0=_0xda01b1();while(!![]){try{const _0x3386f3=parseInt(_0x4ae819(0x164))/0x1*(-parseInt(_0x4ae819(0x167))/0x2)+-parseInt(_0x4ae819(0x168))/0x3*(-parseInt(_0x4ae819(0x16c))/0x4)+-parseInt(_0x4ae819(0x16e))/0x5*(parseInt(_0x4ae819(0x16a))/0x6)+-parseInt(_0x4ae819(0x16d))/0x7*(-parseInt(_0x4ae819(0x166))/0x8)+parseInt(_0x4ae819(0x16f))/0x9+-parseInt(_0x4ae819(0x165))/0xa+parseInt(_0x4ae819(0x173))/0xb;if(_0x3386f3===_0x4b3098)break;else _0x1972a0['push'](_0x1972a0['shift']());}catch(_0x4aeed3){_0x1972a0['push'](_0x1972a0['shift']());}}}(a162_0x1a5b,0x783af));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a162_0x4be5(_0x4261a8,_0xbddee1){_0x4261a8=_0x4261a8-0x163;const _0x1a5bb1=a162_0x1a5b();let _0x4be51e=_0x1a5bb1[_0x4261a8];return _0x4be51e;}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+a162_0x439019(0x172),'configMissingHint':[a162_0x439019(0x163)+CLI_BIN_NAME+a162_0x439019(0x171),a162_0x439019(0x169)+CLI_BIN_NAME+a162_0x439019(0x16b)]['join'](a162_0x439019(0x170)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});function a162_0x1a5b(){const _0x339d15=['Set\x20appcode\x20via\x20`','9650nvLICQ','233610PxSrLl','61232dcPort','180iYJssP','408BFIUsP','Tip:\x20`','90XRaxzx','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','2696pmSRvl','448vKvsOm','111160mLmmtP','6978942QZjxEy','\x0a\x20\x20\x20\x20\x20\x20\x20','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','\x20auth`\x20to\x20login\x20first.','3969306tjGfpI'];a162_0x1a5b=function(){return _0x339d15;};return a162_0x1a5b();}
1
+ function a163_0x5dd2(_0x305521,_0x362003){_0x305521=_0x305521-0x88;const _0xa04e10=a163_0xa04e();let _0x5dd244=_0xa04e10[_0x305521];return _0x5dd244;}const a163_0x33c194=a163_0x5dd2;(function(_0x2726c3,_0x13f24e){const _0x38dd3b=a163_0x5dd2,_0x511770=_0x2726c3();while(!![]){try{const _0x4825d7=parseInt(_0x38dd3b(0x99))/0x1+-parseInt(_0x38dd3b(0x8b))/0x2*(parseInt(_0x38dd3b(0x9a))/0x3)+parseInt(_0x38dd3b(0x93))/0x4*(parseInt(_0x38dd3b(0x98))/0x5)+-parseInt(_0x38dd3b(0x90))/0x6*(-parseInt(_0x38dd3b(0x8c))/0x7)+-parseInt(_0x38dd3b(0x8f))/0x8*(parseInt(_0x38dd3b(0x8a))/0x9)+parseInt(_0x38dd3b(0x9b))/0xa+parseInt(_0x38dd3b(0x8d))/0xb*(-parseInt(_0x38dd3b(0x8e))/0xc);if(_0x4825d7===_0x13f24e)break;else _0x511770['push'](_0x511770['shift']());}catch(_0x4de50d){_0x511770['push'](_0x511770['shift']());}}}(a163_0xa04e,0xf21ba));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a163_0xa04e(){const _0x3ec1de=['16433910ZBcFkB','\x0a\x20\x20\x20\x20\x20\x20\x20','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','27756oyNuLi','54554LaYtHW','1211ATkJXd','11KAVITM','33200724icMQQZ','4064FbuihS','28068sxADZc','Run\x20`','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','108VvdiGJ','join','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','Tip:\x20`','\x20auth`\x20to\x20login\x20first.','338515CxqIqK','1180792OwAazz','15PbXhet'];a163_0xa04e=function(){return _0x3ec1de;};return a163_0xa04e();}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a163_0x33c194(0x91)+CLI_BIN_NAME+a163_0x33c194(0x97),'configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a163_0x33c194(0x92),a163_0x33c194(0x96)+CLI_BIN_NAME+a163_0x33c194(0x89)][a163_0x33c194(0x94)](a163_0x33c194(0x88)),'notInProjectHint':a163_0x33c194(0x95)});
@@ -1 +1 @@
1
- (function(_0x5874ca,_0x21e81a){var _0x5aa54b=a163_0x156b,_0x1b8f3e=_0x5874ca();while(!![]){try{var _0x3b2cf4=-parseInt(_0x5aa54b(0x1e2))/0x1*(-parseInt(_0x5aa54b(0x1e1))/0x2)+parseInt(_0x5aa54b(0x1dd))/0x3*(-parseInt(_0x5aa54b(0x1d9))/0x4)+parseInt(_0x5aa54b(0x1e0))/0x5+parseInt(_0x5aa54b(0x1dc))/0x6*(parseInt(_0x5aa54b(0x1e3))/0x7)+parseInt(_0x5aa54b(0x1da))/0x8+-parseInt(_0x5aa54b(0x1df))/0x9*(-parseInt(_0x5aa54b(0x1d8))/0xa)+-parseInt(_0x5aa54b(0x1db))/0xb*(parseInt(_0x5aa54b(0x1de))/0xc);if(_0x3b2cf4===_0x21e81a)break;else _0x1b8f3e['push'](_0x1b8f3e['shift']());}catch(_0x458287){_0x1b8f3e['push'](_0x1b8f3e['shift']());}}}(a163_0x592a,0x69799));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a163_0x4a9fd2}from'@lovrabet/cli-framework';function a163_0x156b(_0x1927e3,_0x38f2a0){_0x1927e3=_0x1927e3-0x1d8;var _0x592a47=a163_0x592a();var _0x156bc6=_0x592a47[_0x1927e3];return _0x156bc6;}export function buildAllFlags(_0x159696){return a163_0x4a9fd2(_0x159696,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}function a163_0x592a(){var _0xbf126c=['5401OamAKH','372LnDTOi','83325lELBdD','19692ygGjKh','1978389bqcOBA','4262665ggkaKU','6bbPRYx','163340uVuSTZ','34678EAIQha','10KZAaao','104fMdIKJ','723072tCyYzv'];a163_0x592a=function(){return _0xbf126c;};return a163_0x592a();}
1
+ function a164_0x3ca8(){var _0x433b7d=['310116uePgLX','941eqmLlz','379505XlptMf','705441YcMLRH','858NibSHH','1771070gmaTDy','42PbFhBh','32cJtYTw','84JHKSzU','6DMeWYB','946917RExiMN','4615565snPQLk'];a164_0x3ca8=function(){return _0x433b7d;};return a164_0x3ca8();}(function(_0x6a96de,_0x381703){var _0x363fff=a164_0x5ef2,_0x57e63a=_0x6a96de();while(!![]){try{var _0x53c6df=-parseInt(_0x363fff(0x9a))/0x1*(-parseInt(_0x363fff(0x9d))/0x2)+-parseInt(_0x363fff(0x9f))/0x3*(-parseInt(_0x363fff(0x99))/0x4)+-parseInt(_0x363fff(0x98))/0x5*(parseInt(_0x363fff(0x96))/0x6)+-parseInt(_0x363fff(0x9b))/0x7+parseInt(_0x363fff(0xa0))/0x8*(parseInt(_0x363fff(0x97))/0x9)+parseInt(_0x363fff(0x9e))/0xa+parseInt(_0x363fff(0x9c))/0xb*(-parseInt(_0x363fff(0x95))/0xc);if(_0x53c6df===_0x381703)break;else _0x57e63a['push'](_0x57e63a['shift']());}catch(_0x5717fc){_0x57e63a['push'](_0x57e63a['shift']());}}}(a164_0x3ca8,0xa1549));function a164_0x5ef2(_0x2d6be1,_0xa72627){_0x2d6be1=_0x2d6be1-0x95;var _0x3ca8f4=a164_0x3ca8();var _0x5ef2c9=_0x3ca8f4[_0x2d6be1];return _0x5ef2c9;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a164_0x485f8d}from'@lovrabet/cli-framework';export function buildAllFlags(_0x3d5dfa){return a164_0x485f8d(_0x3d5dfa,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- function a164_0x28a5(){const _0x1ff768=['validateFlags','9kFfEZc','14751230XIXVUK','12BbgTcC','11296ryRwYc','64587468SJuYqX','7oHjCvm','5BWyGor','797128mneyMa','579oVyJda','5156070gSbTzC','1541796JfkiCa','1622248pYDngx'];a164_0x28a5=function(){return _0x1ff768;};return a164_0x28a5();}const a164_0x175787=a164_0x1d05;(function(_0x4922d1,_0x5ec34d){const _0x19bedd=a164_0x1d05,_0x4385e5=_0x4922d1();while(!![]){try{const _0x2adcc1=-parseInt(_0x19bedd(0x130))/0x1+parseInt(_0x19bedd(0x129))/0x2*(-parseInt(_0x19bedd(0x12e))/0x3)+-parseInt(_0x19bedd(0x12d))/0x4+-parseInt(_0x19bedd(0x12c))/0x5*(parseInt(_0x19bedd(0x12f))/0x6)+-parseInt(_0x19bedd(0x12b))/0x7*(-parseInt(_0x19bedd(0x131))/0x8)+-parseInt(_0x19bedd(0x133))/0x9*(parseInt(_0x19bedd(0x134))/0xa)+parseInt(_0x19bedd(0x12a))/0xb*(parseInt(_0x19bedd(0x128))/0xc);if(_0x2adcc1===_0x5ec34d)break;else _0x4385e5['push'](_0x4385e5['shift']());}catch(_0x6025c0){_0x4385e5['push'](_0x4385e5['shift']());}}}(a164_0x28a5,0xdddd7));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a164_0x1d05(_0x3dd132,_0xbce499){_0x3dd132=_0x3dd132-0x128;const _0x28a502=a164_0x28a5();let _0x1d052f=_0x28a502[_0x3dd132];return _0x1d052f;}export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a164_0x175787(0x132)];
1
+ const a165_0xb2b160=a165_0x761d;(function(_0x2f5b64,_0x1d00df){const _0xdfe65a=a165_0x761d,_0xa40714=_0x2f5b64();while(!![]){try{const _0x41705c=-parseInt(_0xdfe65a(0x73))/0x1*(parseInt(_0xdfe65a(0x77))/0x2)+-parseInt(_0xdfe65a(0x7a))/0x3*(-parseInt(_0xdfe65a(0x78))/0x4)+-parseInt(_0xdfe65a(0x6f))/0x5*(-parseInt(_0xdfe65a(0x71))/0x6)+parseInt(_0xdfe65a(0x72))/0x7+-parseInt(_0xdfe65a(0x76))/0x8*(-parseInt(_0xdfe65a(0x79))/0x9)+-parseInt(_0xdfe65a(0x74))/0xa+parseInt(_0xdfe65a(0x75))/0xb*(parseInt(_0xdfe65a(0x70))/0xc);if(_0x41705c===_0x1d00df)break;else _0xa40714['push'](_0xa40714['shift']());}catch(_0x1021da){_0xa40714['push'](_0xa40714['shift']());}}}(a165_0x535b,0xcc7bf));function a165_0x535b(){const _0x2cc26c=['65956SZHqgC','441zEPnhC','177yZtSPL','validateFlags','383905mMOrJp','420aDecnd','30lRpzMa','155659vHzpdN','34giVckV','13784820eXvefO','370425JgwHPo','168456lIlZtm','80786AjjeKg'];a165_0x535b=function(){return _0x2cc26c;};return a165_0x535b();}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];function a165_0x761d(_0x2167d1,_0x3f9a01){_0x2167d1=_0x2167d1-0x6f;const _0x535bd0=a165_0x535b();let _0x761df1=_0x535bd0[_0x2167d1];return _0x761df1;}export const validateFlags=helpers[a165_0xb2b160(0x7b)];
@@ -1 +1 @@
1
- const a165_0x26cfaf=a165_0x1865;(function(_0x5b5df6,_0x17a411){const _0x30e093=a165_0x1865,_0x323e04=_0x5b5df6();while(!![]){try{const _0x591a8d=parseInt(_0x30e093(0x1f3))/0x1+parseInt(_0x30e093(0x1e6))/0x2*(-parseInt(_0x30e093(0x1f5))/0x3)+-parseInt(_0x30e093(0x1e5))/0x4+-parseInt(_0x30e093(0x1f1))/0x5*(parseInt(_0x30e093(0x1ef))/0x6)+parseInt(_0x30e093(0x1f6))/0x7*(parseInt(_0x30e093(0x1f4))/0x8)+-parseInt(_0x30e093(0x1e7))/0x9*(parseInt(_0x30e093(0x1ee))/0xa)+parseInt(_0x30e093(0x1ea))/0xb;if(_0x591a8d===_0x17a411)break;else _0x323e04['push'](_0x323e04['shift']());}catch(_0x1aed39){_0x323e04['push'](_0x323e04['shift']());}}}(a165_0xa02a,0x5b4a3));import{createHelpGenerators}from'@lovrabet/cli-framework';function a165_0xa02a(){const _0x575903=['9uSfdiJ','generateCommandHelp','generateFullHelp','24982848AHXdZU','get','generateServiceHelp','\x20project\x20init`\x20or\x20--appcode).','3664630AFAoki','72yuVVaf','\x20[args]\x20[flags]','282690TKTeGc','Requires\x20appcode\x20(set\x20via\x20`','198924YDsQyO','424qmFjHf','15EVFecl','27545zDcWtw','2909020EyWQlY','213020UcdUos'];a165_0xa02a=function(){return _0x575903;};return a165_0xa02a();}import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a165_0x1865(_0x39891c,_0xe8587a){_0x39891c=_0x39891c-0x1e5;const _0xa02a74=a165_0xa02a();let _0x18651a=_0xa02a74[_0x39891c];return _0x18651a;}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':_0x51bcfb=>serviceGroups[a165_0x26cfaf(0x1eb)](_0x51bcfb),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a165_0x26cfaf(0x1f2)+CLI_BIN_NAME+a165_0x26cfaf(0x1ed),'serviceUsageSuffix':a165_0x26cfaf(0x1f0),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x180f58){const _0x1f93bd=a165_0x26cfaf;return generators[_0x1f93bd(0x1e8)](_0x180f58);}export const generateServiceHelp=generators[a165_0x26cfaf(0x1ec)];export const generateFullHelp=generators[a165_0x26cfaf(0x1e9)];
1
+ const a166_0x14ed50=a166_0x336f;(function(_0x472e2b,_0x58e92b){const _0x589e65=a166_0x336f,_0x30882e=_0x472e2b();while(!![]){try{const _0x551a67=parseInt(_0x589e65(0xb2))/0x1*(parseInt(_0x589e65(0xa6))/0x2)+-parseInt(_0x589e65(0xa4))/0x3*(-parseInt(_0x589e65(0xb0))/0x4)+parseInt(_0x589e65(0xaa))/0x5+-parseInt(_0x589e65(0xa3))/0x6*(-parseInt(_0x589e65(0xb1))/0x7)+parseInt(_0x589e65(0xab))/0x8*(parseInt(_0x589e65(0xb3))/0x9)+parseInt(_0x589e65(0xa5))/0xa+-parseInt(_0x589e65(0xa8))/0xb;if(_0x551a67===_0x58e92b)break;else _0x30882e['push'](_0x30882e['shift']());}catch(_0x50b2c0){_0x30882e['push'](_0x30882e['shift']());}}}(a166_0x3d5c,0x61cca));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';function a166_0x336f(_0x5c10b0,_0x5a409e){_0x5c10b0=_0x5c10b0-0xa3;const _0x3d5cad=a166_0x3d5c();let _0x336f8b=_0x3d5cad[_0x5c10b0];return _0x336f8b;}const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x4b4dbc=>serviceGroups[a166_0x14ed50(0xa7)](_0x4b4dbc),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+a166_0x14ed50(0xac),'serviceUsageSuffix':a166_0x14ed50(0xad),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x319f49){const _0x47ad9e=a166_0x14ed50;return generators[_0x47ad9e(0xae)](_0x319f49);}export const generateServiceHelp=generators[a166_0x14ed50(0xa9)];function a166_0x3d5c(){const _0x5091cc=['6202430ifFpXX','653192ZWPLng','get','31576017NKNLtD','generateServiceHelp','1832950mjNyDw','19528vYbQRx','\x20project\x20init`\x20or\x20--appcode).','\x20[args]\x20[flags]','generateCommandHelp','generateFullHelp','445316eisFOa','4797233INkPsI','1SFYemk','1818yxycVC','6rTqhzX','21CRposJ'];a166_0x3d5c=function(){return _0x5091cc;};return a166_0x3d5c();}export const generateFullHelp=generators[a166_0x14ed50(0xaf)];
@@ -1 +1 @@
1
- function a166_0x50d6(_0x313311,_0x29d1a3){_0x313311=_0x313311-0x13c;var _0x4d8aee=a166_0x4d8a();var _0x50d620=_0x4d8aee[_0x313311];return _0x50d620;}(function(_0x3d391b,_0x4e3a53){var _0x44ebfd=a166_0x50d6,_0x49144d=_0x3d391b();while(!![]){try{var _0x4c4f68=-parseInt(_0x44ebfd(0x143))/0x1*(parseInt(_0x44ebfd(0x13f))/0x2)+parseInt(_0x44ebfd(0x140))/0x3+-parseInt(_0x44ebfd(0x141))/0x4*(-parseInt(_0x44ebfd(0x13c))/0x5)+parseInt(_0x44ebfd(0x144))/0x6*(parseInt(_0x44ebfd(0x13d))/0x7)+-parseInt(_0x44ebfd(0x13e))/0x8+-parseInt(_0x44ebfd(0x142))/0x9+-parseInt(_0x44ebfd(0x145))/0xa;if(_0x4c4f68===_0x4e3a53)break;else _0x49144d['push'](_0x49144d['shift']());}catch(_0xc6f11c){_0x49144d['push'](_0x49144d['shift']());}}}(a166_0x4d8a,0x23fe9));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';function a166_0x4d8a(){var _0x424e6f=['281PeNyUC','16374PUHMSj','1190280sMQnLk','98635tUhmPE','644KYEEPP','190312vHoSNy','1808iLcZnh','860991MuhoEp','36TJBfmW','1542006vefTGN'];a166_0x4d8a=function(){return _0x424e6f;};return a166_0x4d8a();}
1
+ function a167_0x187a(_0x38c9d9,_0x4a20b4){_0x38c9d9=_0x38c9d9-0xb3;var _0x22d11a=a167_0x22d1();var _0x187a54=_0x22d11a[_0x38c9d9];return _0x187a54;}(function(_0xfc2f10,_0x3f81d3){var _0x5a6273=a167_0x187a,_0x7d9668=_0xfc2f10();while(!![]){try{var _0x33d239=-parseInt(_0x5a6273(0xb7))/0x1*(-parseInt(_0x5a6273(0xb5))/0x2)+-parseInt(_0x5a6273(0xb9))/0x3+parseInt(_0x5a6273(0xbc))/0x4*(parseInt(_0x5a6273(0xb3))/0x5)+parseInt(_0x5a6273(0xb8))/0x6+parseInt(_0x5a6273(0xba))/0x7*(-parseInt(_0x5a6273(0xb6))/0x8)+-parseInt(_0x5a6273(0xbb))/0x9+-parseInt(_0x5a6273(0xbd))/0xa*(parseInt(_0x5a6273(0xb4))/0xb);if(_0x33d239===_0x3f81d3)break;else _0x7d9668['push'](_0x7d9668['shift']());}catch(_0x52e670){_0x7d9668['push'](_0x7d9668['shift']());}}}(a167_0x22d1,0x3b457));function a167_0x22d1(){var _0x4e0e3b=['92905TMWzCU','269797fZtpGQ','140254UinFQy','968KOLtmX','3XmclAe','2347860wDUmKH','600795FjmSrG','4711aOTWOD','1651509oEPxzF','44ZoOiAU','40MMRwwx'];a167_0x22d1=function(){return _0x4e0e3b;};return a167_0x22d1();}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x344fb2,_0x3c3a8d){const _0x146cd9=a167_0x7d7c,_0x47c257=_0x344fb2();while(!![]){try{const _0x527aab=-parseInt(_0x146cd9(0x144))/0x1+-parseInt(_0x146cd9(0x13b))/0x2+-parseInt(_0x146cd9(0x143))/0x3*(parseInt(_0x146cd9(0x13d))/0x4)+-parseInt(_0x146cd9(0x142))/0x5*(-parseInt(_0x146cd9(0x140))/0x6)+-parseInt(_0x146cd9(0x13f))/0x7*(-parseInt(_0x146cd9(0x13e))/0x8)+parseInt(_0x146cd9(0x141))/0x9+parseInt(_0x146cd9(0x13c))/0xa;if(_0x527aab===_0x3c3a8d)break;else _0x47c257['push'](_0x47c257['shift']());}catch(_0x1b9189){_0x47c257['push'](_0x47c257['shift']());}}}(a167_0x4025,0xa98df));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a167_0x4025(){const _0x4dc01a=['9510129bYVkQZ','55895kmJeyV','6SxVsNZ','1151715SuhSUn','2767140UpafCT','4597390bmiWGC','320340FmgcEl','40TbinUS','1605653dRrGds','390aShufH'];a167_0x4025=function(){return _0x4dc01a;};return a167_0x4025();}import{CliErrors}from'../errors.js';function a167_0x7d7c(_0x1e7821,_0x3c32a9){_0x1e7821=_0x1e7821-0x13b;const _0x4025ae=a167_0x4025();let _0x7d7c85=_0x4025ae[_0x1e7821];return _0x7d7c85;}export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
1
+ (function(_0x2d63e5,_0x1a8491){const _0x277797=a168_0x3ed4,_0x1ba215=_0x2d63e5();while(!![]){try{const _0x5e2eb9=-parseInt(_0x277797(0x17d))/0x1*(-parseInt(_0x277797(0x178))/0x2)+-parseInt(_0x277797(0x176))/0x3+-parseInt(_0x277797(0x175))/0x4*(-parseInt(_0x277797(0x17b))/0x5)+parseInt(_0x277797(0x173))/0x6*(-parseInt(_0x277797(0x17a))/0x7)+-parseInt(_0x277797(0x174))/0x8*(parseInt(_0x277797(0x172))/0x9)+-parseInt(_0x277797(0x17c))/0xa+parseInt(_0x277797(0x179))/0xb;if(_0x5e2eb9===_0x1a8491)break;else _0x1ba215['push'](_0x1ba215['shift']());}catch(_0x33492a){_0x1ba215['push'](_0x1ba215['shift']());}}}(a168_0x1e36,0xcbbff));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a168_0x1e36(){const _0xeaaf48=['1796tzjEQq','3309165cJnJNt','pretty','596nWbpQt','37199976qaRUxR','476EsciCp','5345bMOVFt','13540380WygMMU','5371zriwoY','url','error','_notice','update','16407vIYmqr','51108XNWFse','6984wMTmHz'];a168_0x1e36=function(){return _0xeaaf48;};return a168_0x1e36();}function a168_0x3ed4(_0x53b24a,_0x3f7402){_0x53b24a=_0x53b24a-0x16f;const _0x1e3638=a168_0x1e36();let _0x3ed471=_0x1e3638[_0x53b24a];return _0x3ed471;}import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x4cd5b8,_0xa8eaf4){const _0xe92167=a168_0x3ed4,_0x21b132=_0x4cd5b8[_0xe92167(0x170)],{_notice:_0x29b38d,..._0x503a66}=_0x4cd5b8;void _0x29b38d,baseFormatOutput(_0x503a66,_0xa8eaf4),_0xa8eaf4['format']===_0xe92167(0x177)&&printPrettyNotice(_0x21b132);}function printPrettyNotice(_0xc0d41e){const _0x464a3d=a168_0x3ed4;if(!_0xc0d41e?.['update'])return;console[_0x464a3d(0x16f)](_0xc0d41e[_0x464a3d(0x171)]['message']+'\x20('+_0xc0d41e[_0x464a3d(0x171)][_0x464a3d(0x17e)]+')');}
@@ -1 +1 @@
1
- function a168_0x16a6(){var _0x334645=['40466YlenVI','3542944jSvvGH','8402681YKaUEr','78xxhlrc','654057WNAJHq','12638720ROJlyI','1451105JfdEDJ','6725484BsZkuu'];a168_0x16a6=function(){return _0x334645;};return a168_0x16a6();}function a168_0x332a(_0x1677b3,_0x233f7e){_0x1677b3=_0x1677b3-0x114;var _0x16a61d=a168_0x16a6();var _0x332aa8=_0x16a61d[_0x1677b3];return _0x332aa8;}(function(_0x2a0d0a,_0x51d356){var _0x1285f4=a168_0x332a,_0x4ad865=_0x2a0d0a();while(!![]){try{var _0x150a42=-parseInt(_0x1285f4(0x114))/0x1*(parseInt(_0x1285f4(0x119))/0x2)+-parseInt(_0x1285f4(0x115))/0x3+-parseInt(_0x1285f4(0x11a))/0x4+-parseInt(_0x1285f4(0x117))/0x5+parseInt(_0x1285f4(0x118))/0x6+parseInt(_0x1285f4(0x11b))/0x7+parseInt(_0x1285f4(0x116))/0x8;if(_0x150a42===_0x51d356)break;else _0x4ad865['push'](_0x4ad865['shift']());}catch(_0x5aa898){_0x4ad865['push'](_0x4ad865['shift']());}}}(a168_0x16a6,0xe2cdb));export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ (function(_0x3b7083,_0x4d2aea){var _0x12c730=a169_0x25b9,_0xca349c=_0x3b7083();while(!![]){try{var _0x40c1f7=-parseInt(_0x12c730(0x1d1))/0x1*(parseInt(_0x12c730(0x1d0))/0x2)+parseInt(_0x12c730(0x1d4))/0x3*(parseInt(_0x12c730(0x1d2))/0x4)+-parseInt(_0x12c730(0x1ce))/0x5+parseInt(_0x12c730(0x1cd))/0x6*(parseInt(_0x12c730(0x1d7))/0x7)+-parseInt(_0x12c730(0x1cf))/0x8*(-parseInt(_0x12c730(0x1cc))/0x9)+-parseInt(_0x12c730(0x1d3))/0xa+parseInt(_0x12c730(0x1d5))/0xb*(-parseInt(_0x12c730(0x1d6))/0xc);if(_0x40c1f7===_0x4d2aea)break;else _0xca349c['push'](_0xca349c['shift']());}catch(_0x1eafb0){_0xca349c['push'](_0xca349c['shift']());}}}(a169_0x4bfe,0xb6426));function a169_0x25b9(_0x35e590,_0x198180){_0x35e590=_0x35e590-0x1cc;var _0x4bfe87=a169_0x4bfe();var _0x25b9bf=_0x4bfe87[_0x35e590];return _0x25b9bf;}function a169_0x4bfe(){var _0x25be9e=['2079ohnyNR','42zTKJuL','1739310LveiCY','39264xkYVwA','2yQtyNS','335695vItwDy','1172SClthi','5694450pdMNSx','14961tSzqNj','66jilrcR','2688120kdcNLB','748657ByPOyY'];a169_0x4bfe=function(){return _0x25be9e;};return a169_0x4bfe();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x5f2d68,_0x5bd644){const _0x6481cd=a169_0x4db3,_0x82c536=_0x5f2d68();while(!![]){try{const _0xab2879=-parseInt(_0x6481cd(0xd0))/0x1*(-parseInt(_0x6481cd(0xd8))/0x2)+parseInt(_0x6481cd(0xc6))/0x3+parseInt(_0x6481cd(0xc1))/0x4*(-parseInt(_0x6481cd(0xd9))/0x5)+parseInt(_0x6481cd(0xd3))/0x6*(-parseInt(_0x6481cd(0xcc))/0x7)+parseInt(_0x6481cd(0xc7))/0x8*(-parseInt(_0x6481cd(0xc0))/0x9)+parseInt(_0x6481cd(0xcf))/0xa*(-parseInt(_0x6481cd(0xbe))/0xb)+parseInt(_0x6481cd(0xbf))/0xc*(parseInt(_0x6481cd(0xce))/0xd);if(_0xab2879===_0x5bd644)break;else _0x82c536['push'](_0x82c536['shift']());}catch(_0x22835d){_0x82c536['push'](_0x82c536['shift']());}}}(a169_0x4784,0xbc8fd));import{CliErrors}from'../errors.js';function a169_0x4db3(_0x3c1300,_0x3961e1){_0x3c1300=_0x3c1300-0xbe;const _0x47840d=a169_0x4784();let _0x4db37d=_0x47840d[_0x3c1300];return _0x4db37d;}function a169_0x4784(){const _0x2d1453=['1917890MJqBsA','13134rTryor','468TrkMJB','81jKClqQ','8pidYvp','.\x20Run\x20`','\x20api\x20pull`\x20first.','alias','some','844953iAaaZR','165208KdHfPf','Available\x20aliases:\x20','\x22.\x20','type','length','21HpNeeu','code','696202fjFTDU','10730OhWqow','5TeJYcB','`\x20requires\x20either\x20--code\x20or\x20--alias.','flags','1249032rwJurf','Unknown\x20alias\x20\x22','validation','name','string','504314OAJtZN'];a169_0x4784=function(){return _0x2d1453;};return a169_0x4784();}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0xa50e37,_0x31ef8a,_0x3934b0,_0x56566c){const _0x533f59=a169_0x4db3,_0x5a8e92=_0xa50e37[_0x533f59(0xd2)]['some'](_0x5aac2f=>_0x5aac2f[_0x533f59(0xd6)]===_0x533f59(0xcd)&&_0x5aac2f[_0x533f59(0xca)]===_0x533f59(0xd7)),_0x18425b=_0xa50e37[_0x533f59(0xd2)][_0x533f59(0xc5)](_0x394659=>_0x394659[_0x533f59(0xd6)]===_0x533f59(0xc4)&&_0x394659[_0x533f59(0xca)]===_0x533f59(0xd7));if(!_0x5a8e92||!_0x18425b)return;const _0x26fa63=_0x31ef8a[_0x533f59(0xcd)]?String(_0x31ef8a[_0x533f59(0xcd)]):'',_0x5626c8=_0x31ef8a[_0x533f59(0xc4)]?String(_0x31ef8a[_0x533f59(0xc4)]):'';if(!_0x26fa63&&!_0x5626c8)throw CliErrors[_0x533f59(0xd5)]('`'+_0x56566c+_0x533f59(0xd1));if(_0x5626c8&&!_0x26fa63){const _0x424bc0=resolveAlias(_0x3934b0,_0x5626c8);if(!_0x424bc0){const _0x4fb704=listAliases(_0x3934b0)['map'](_0x2111ef=>_0x2111ef[_0x533f59(0xc4)]),_0x50c70f=_0x4fb704[_0x533f59(0xcb)]?_0x533f59(0xc8)+_0x4fb704['join'](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x3934b0+_0x533f59(0xc2)+CLI_BIN_NAME+_0x533f59(0xc3);throw CliErrors[_0x533f59(0xd5)](_0x533f59(0xd4)+_0x5626c8+_0x533f59(0xc9)+_0x50c70f);}_0x31ef8a[_0x533f59(0xcd)]=_0x424bc0;}}
1
+ (function(_0x1872f7,_0x1c6e8b){const _0x29f8bb=a170_0x3093,_0x540500=_0x1872f7();while(!![]){try{const _0x4ffbf7=-parseInt(_0x29f8bb(0x191))/0x1*(-parseInt(_0x29f8bb(0x188))/0x2)+parseInt(_0x29f8bb(0x185))/0x3+-parseInt(_0x29f8bb(0x193))/0x4*(-parseInt(_0x29f8bb(0x18b))/0x5)+parseInt(_0x29f8bb(0x192))/0x6*(-parseInt(_0x29f8bb(0x183))/0x7)+-parseInt(_0x29f8bb(0x181))/0x8*(parseInt(_0x29f8bb(0x18d))/0x9)+-parseInt(_0x29f8bb(0x195))/0xa+-parseInt(_0x29f8bb(0x199))/0xb*(-parseInt(_0x29f8bb(0x186))/0xc);if(_0x4ffbf7===_0x1c6e8b)break;else _0x540500['push'](_0x540500['shift']());}catch(_0x265a94){_0x540500['push'](_0x540500['shift']());}}}(a170_0x521c,0xf172b));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a170_0x521c(){const _0x48c4b6=['alias','\x20api\x20pull`\x20first.','50104bpMEsi','type','1778nUwseC','string','440361kKPvBg','1388688ubuddN','flags','30eeOxeK','Available\x20aliases:\x20','validation','5ZkzNIw','Unknown\x20alias\x20\x22','2736HdFXgp','some','length','name','10655PXdanS','34128YIdTqu','7733216XaejDr','map','12582370pdBgby','code','join','`\x20requires\x20either\x20--code\x20or\x20--alias.','319tLKWVT'];a170_0x521c=function(){return _0x48c4b6;};return a170_0x521c();}function a170_0x3093(_0x524e09,_0x220fcd){_0x524e09=_0x524e09-0x17f;const _0x521ccc=a170_0x521c();let _0x3093a4=_0x521ccc[_0x524e09];return _0x3093a4;}export function resolveAliasToCode(_0x2c9745,_0x356daf,_0x4ce2fb,_0x5eed68){const _0x69544d=a170_0x3093,_0x91d428=_0x2c9745['flags'][_0x69544d(0x18e)](_0x3a93bb=>_0x3a93bb[_0x69544d(0x190)]===_0x69544d(0x196)&&_0x3a93bb[_0x69544d(0x182)]==='string'),_0x203c48=_0x2c9745[_0x69544d(0x187)][_0x69544d(0x18e)](_0x41d1bf=>_0x41d1bf[_0x69544d(0x190)]===_0x69544d(0x17f)&&_0x41d1bf[_0x69544d(0x182)]===_0x69544d(0x184));if(!_0x91d428||!_0x203c48)return;const _0x508575=_0x356daf[_0x69544d(0x196)]?String(_0x356daf[_0x69544d(0x196)]):'',_0x20d557=_0x356daf[_0x69544d(0x17f)]?String(_0x356daf[_0x69544d(0x17f)]):'';if(!_0x508575&&!_0x20d557)throw CliErrors[_0x69544d(0x18a)]('`'+_0x5eed68+_0x69544d(0x198));if(_0x20d557&&!_0x508575){const _0x5af77b=resolveAlias(_0x4ce2fb,_0x20d557);if(!_0x5af77b){const _0x508ce2=listAliases(_0x4ce2fb)[_0x69544d(0x194)](_0x50861b=>_0x50861b['alias']),_0x4b5f12=_0x508ce2[_0x69544d(0x18f)]?_0x69544d(0x189)+_0x508ce2[_0x69544d(0x197)](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x4ce2fb+'.\x20Run\x20`'+CLI_BIN_NAME+_0x69544d(0x180);throw CliErrors[_0x69544d(0x18a)](_0x69544d(0x18c)+_0x20d557+'\x22.\x20'+_0x4b5f12);}_0x356daf[_0x69544d(0x196)]=_0x5af77b;}}
@@ -1 +1 @@
1
- const a170_0x3a6dc8=a170_0x26bb;(function(_0x44d989,_0x473efe){const _0x2a0470=a170_0x26bb,_0x4d2ae5=_0x44d989();while(!![]){try{const _0x2b8061=-parseInt(_0x2a0470(0x17c))/0x1+-parseInt(_0x2a0470(0x16e))/0x2+-parseInt(_0x2a0470(0x182))/0x3+parseInt(_0x2a0470(0x16c))/0x4*(parseInt(_0x2a0470(0x16b))/0x5)+parseInt(_0x2a0470(0x166))/0x6*(parseInt(_0x2a0470(0x17e))/0x7)+-parseInt(_0x2a0470(0x176))/0x8+-parseInt(_0x2a0470(0x162))/0x9*(-parseInt(_0x2a0470(0x171))/0xa);if(_0x2b8061===_0x473efe)break;else _0x4d2ae5['push'](_0x4d2ae5['shift']());}catch(_0x2eff6b){_0x4d2ae5['push'](_0x4d2ae5['shift']());}}}(a170_0x1b31,0x6f352));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';function a170_0x1b31(){const _0x491c2d=['appCode','defaultApp','filter','⚠\x20\x20High-risk\x20operation:\x20','isNonInteractive','19395BqBmdI','\x20\x20\x20Continue?\x20[y/N]\x20','../core/api-client.js','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','12egVuJz','defaultPageSize','explicitAppName','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','apps','308745rtJFEb','4QMagOg','appcode','1329764BWITbW','verbose','selectedAppName','6490rjlomx','Set\x20appcode\x20via\x20`','currentApp','defaultVerbose','map','2929752KCXFsF','format','cookie','resolveApiDomain','pageSize','command','582174TXqwJx','resolveCookie','2674679tMvHTH','resolveAppCode','High-risk\x20operation\x20`','apiDir','467271pyYMST'];a170_0x1b31=function(){return _0x491c2d;};return a170_0x1b31();}import{isNonInteractive as a170_0x6e70a7}from'../utils/is-non-interactive.js';function a170_0x26bb(_0x65ee63,_0x110fd5){_0x65ee63=_0x65ee63-0x161;const _0x1b3154=a170_0x1b31();let _0x26bbaf=_0x1b3154[_0x65ee63];return _0x26bbaf;}import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x3fc6fe,_0x1e81d5,_0xb458f5=[]){const _0x57280e=a170_0x26bb;return{'rawFlags':_0x1e81d5,'args':_0xb458f5,'resolveAppCode':()=>_0x3fc6fe['appCode']||_0x1e81d5[_0x57280e(0x16d)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x3fc6fe[_0x57280e(0x178)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a170_0x6e70a7(_0x1e81d5),'defaultFormat':_0x3fc6fe[_0x57280e(0x177)],'defaultPageSize':_0x3fc6fe[_0x57280e(0x17a)],'defaultVerbose':_0x3fc6fe[_0x57280e(0x16f)],'apiDir':_0x3fc6fe[_0x57280e(0x181)],'riskLevel':_0x3fc6fe['riskLevel'],'selectedAppName':_0x3fc6fe[_0x57280e(0x168)],'mergedCli':{'defaultApp':_0x3fc6fe[_0x57280e(0x184)],'currentApp':_0x3fc6fe[_0x57280e(0x173)],'appCode':_0x3fc6fe[_0x57280e(0x183)],'apps':_0x3fc6fe[_0x57280e(0x16a)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a170_0x3a6dc8(0x185)](_0x10ef55=>PIPELINE_FLAG_NAMES['has'](_0x10ef55['name']))[a170_0x3a6dc8(0x175)](({name:_0x286775,type:_0x50de29,description:_0x260dbe})=>({'name':_0x286775,'type':_0x50de29,'description':_0x260dbe})),'formatOutput':formatOutput,'getCommandLabel'(_0x85966f){const _0x2edb6d=a170_0x3a6dc8;return CLI_BIN_NAME+'\x20'+_0x85966f['service']+'\x20'+_0x85966f[_0x2edb6d(0x17b)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x5b71d4){return CliErrors['validation'](_0x5b71d4);}},async 'prepare'(_0x12b34c,_0x19ae8c,_0x27f9fd,_0x1bd9c0){const _0x35bed4=a170_0x3a6dc8,_0x1bf8d4=_0x19ae8c[_0x35bed4(0x181)]||DEFAULT_API_DIR;resolveAliasToCode(_0x12b34c,_0x27f9fd,_0x1bf8d4,_0x1bd9c0);let _0x251aa4='';if(_0x12b34c['requiresAuth']!==![]){_0x251aa4=_0x19ae8c[_0x35bed4(0x17d)]();if(!_0x251aa4)throw CliErrors['authRequired']();const {setActiveCookie:_0x28eb07}=await import(_0x35bed4(0x164));_0x28eb07(_0x251aa4);}const _0x2f854d=_0x19ae8c[_0x35bed4(0x17f)]()??'';if(_0x12b34c['requiresAppCode']!==![]){if(!_0x2f854d)throw CliErrors['configMissing'](_0x35bed4(0x172)+CLI_BIN_NAME+_0x35bed4(0x169));}return{'defaults':{'booleans':{'verbose':_0x19ae8c[_0x35bed4(0x174)]},'numbers':{'pagesize':_0x19ae8c[_0x35bed4(0x167)]}},'extras':{'appCode':_0x2f854d,'cookie':_0x251aa4,'apiDomain':_0x19ae8c[_0x35bed4(0x179)](),'apiDir':_0x1bf8d4,'selectedAppName':_0x19ae8c[_0x35bed4(0x170)],'mergedCli':_0x19ae8c['mergedCli']}};},async 'confirmHighRisk'({env:_0x2d1036,commandLabel:_0x298966}){const _0x6b9972=a170_0x3a6dc8;if(_0x2d1036[_0x6b9972(0x161)])throw CliErrors['validation'](_0x6b9972(0x180)+_0x298966+_0x6b9972(0x165));await requireConfirmationPrompt({'lines':[_0x6b9972(0x186)+_0x298966,_0x6b9972(0x163)],'createCancelledError':_0x110435=>CliErrors['cancelled'](_0x110435)});},async 'finalize'(){const _0x2a1306=a170_0x3a6dc8,{clearActiveCookie:_0x558b1a}=await import(_0x2a1306(0x164));_0x558b1a();}};export async function runCommand(_0x52e6ca,_0x4e1d13){await runCommandWithAdapter(_0x52e6ca,_0x4e1d13,runnerAdapter);}
1
+ const a171_0x35702f=a171_0x3c8b;(function(_0x519940,_0x27467e){const _0x1476eb=a171_0x3c8b,_0x88c17=_0x519940();while(!![]){try{const _0xde51ab=parseInt(_0x1476eb(0x8a))/0x1*(-parseInt(_0x1476eb(0x84))/0x2)+parseInt(_0x1476eb(0x85))/0x3+parseInt(_0x1476eb(0x97))/0x4*(-parseInt(_0x1476eb(0x94))/0x5)+parseInt(_0x1476eb(0xa4))/0x6*(-parseInt(_0x1476eb(0x93))/0x7)+parseInt(_0x1476eb(0x88))/0x8*(-parseInt(_0x1476eb(0x92))/0x9)+parseInt(_0x1476eb(0x7f))/0xa*(-parseInt(_0x1476eb(0xa3))/0xb)+-parseInt(_0x1476eb(0x7d))/0xc*(-parseInt(_0x1476eb(0x99))/0xd);if(_0xde51ab===_0x27467e)break;else _0x88c17['push'](_0x88c17['shift']());}catch(_0x5258c1){_0x88c17['push'](_0x88c17['shift']());}}}(a171_0x36f4,0x30d2c));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';function a171_0x36f4(){const _0x1304c1=['High-risk\x20operation\x20`','resolve','⚠\x20\x20High-risk\x20operation:\x20','name','3236913Nyndjs','49LylogY','410iExcbk','Set\x20appcode\x20via\x20`','requiresAppCode','3004kQDrXp','object','1066MOGFJB','authRequired','map','cookie','has','defaultVerbose','defaultApp','command','nonInteractive','schema','1221GWajVx','273558tnCYdT','apps','validation','mergedCli','doctor','riskLevel','appCode','cancelled','includes','explicitAppName','update','filter','resolveApiDomain','resolveCookie','format','_notice','196572SjRxza','selectedAppName','34360WRRetp','\x20\x20\x20Continue?\x20[y/N]\x20','currentApp','requiresAuth','isNonInteractive','789638ZgjMhG','1120029ZYeYaX','service','pretty','8oZBwDr','defaultPageSize','1HCAfif','pageSize','configMissing','../core/api-client.js'];a171_0x36f4=function(){return _0x1304c1;};return a171_0x36f4();}import{isNonInteractive as a171_0x124b40}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';export function createPipelineEnv(_0x1134f9,_0x5c85d2,_0x16372f=[]){const _0x6e8b3e=a171_0x3c8b;return{'rawFlags':_0x5c85d2,'args':_0x16372f,'resolveAppCode':()=>_0x1134f9[_0x6e8b3e(0x73)]||_0x5c85d2['appcode']||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x1134f9[_0x6e8b3e(0x9c)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a171_0x124b40(_0x5c85d2),'defaultFormat':_0x1134f9[_0x6e8b3e(0x7b)],'defaultPageSize':_0x1134f9[_0x6e8b3e(0x8b)],'defaultVerbose':_0x1134f9['verbose'],'apiDir':_0x1134f9['apiDir'],'riskLevel':_0x1134f9[_0x6e8b3e(0x72)],'selectedAppName':_0x1134f9[_0x6e8b3e(0x76)],'mergedCli':{'defaultApp':_0x1134f9[_0x6e8b3e(0x9f)],'currentApp':_0x1134f9[_0x6e8b3e(0x81)],'appCode':_0x1134f9[_0x6e8b3e(0x73)],'apps':_0x1134f9[_0x6e8b3e(0xa5)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a171_0x35702f(0x78)](_0xff043f=>PIPELINE_FLAG_NAMES[a171_0x35702f(0x9d)](_0xff043f[a171_0x35702f(0x91)]))[a171_0x35702f(0x9b)](({name:_0x3079be,type:_0x434e2e,description:_0xbc0911})=>({'name':_0x3079be,'type':_0x434e2e,'description':_0xbc0911})),'formatOutput':formatOutput,'getCommandLabel'(_0x597670){const _0x3ec20e=a171_0x35702f;return CLI_BIN_NAME+'\x20'+_0x597670[_0x3ec20e(0x86)]+'\x20'+_0x597670[_0x3ec20e(0xa0)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x4e7cae){const _0x2280ef=a171_0x35702f;return CliErrors[_0x2280ef(0xa6)](_0x4e7cae);}},async 'prepare'(_0x407550,_0x2dfec9,_0x372967,_0x2813fc){const _0x4859ec=a171_0x35702f,_0x210bd0=_0x2dfec9['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x407550,_0x372967,_0x210bd0,_0x2813fc);let _0x15ddff='';if(_0x407550[_0x4859ec(0x82)]!==![]){_0x15ddff=_0x2dfec9[_0x4859ec(0x7a)]();if(!_0x15ddff)throw CliErrors[_0x4859ec(0x9a)]();const {setActiveCookie:_0x52a254}=await import(_0x4859ec(0x8d));_0x52a254(_0x15ddff);}const _0x327336=_0x2dfec9['resolveAppCode']()??'';if(_0x407550[_0x4859ec(0x96)]!==![]){if(!_0x327336)throw CliErrors[_0x4859ec(0x8c)](_0x4859ec(0x95)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}return{'defaults':{'booleans':{'verbose':_0x2dfec9[_0x4859ec(0x9e)]},'numbers':{'pagesize':_0x2dfec9[_0x4859ec(0x89)]}},'extras':{'appCode':_0x327336,'cookie':_0x15ddff,'apiDomain':_0x2dfec9[_0x4859ec(0x79)](),'apiDir':_0x210bd0,'selectedAppName':_0x2dfec9[_0x4859ec(0x7e)],'mergedCli':_0x2dfec9[_0x4859ec(0xa7)]}};},async 'confirmHighRisk'({env:_0x5c8a6b,commandLabel:_0x4b58e5}){const _0xca3936=a171_0x35702f;if(_0x5c8a6b[_0xca3936(0x83)])throw CliErrors[_0xca3936(0xa6)](_0xca3936(0x8e)+_0x4b58e5+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':[_0xca3936(0x90)+_0x4b58e5,_0xca3936(0x80)],'createCancelledError':_0x5c33b9=>CliErrors[_0xca3936(0x74)](_0x5c33b9)});},async 'finalize'(){const _0x38d183=a171_0x35702f,{clearActiveCookie:_0x585997}=await import(_0x38d183(0x8d));_0x585997();}};export async function runCommand(_0x22bdb9,_0x53b503){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x22bdb9)?withUpdateNotice(_0x22bdb9):_0x22bdb9,_0x53b503,runnerAdapter);}function shouldAttachUpdateNotice(_0xeea821){const _0x2ffe7b=a171_0x35702f;return![_0x2ffe7b(0x77),_0x2ffe7b(0xa2),_0x2ffe7b(0xa8)][_0x2ffe7b(0x75)](_0xeea821[_0x2ffe7b(0x86)]);}function withUpdateNotice(_0x2edf19){return{..._0x2edf19,async 'execute'(_0x4f6db2){const _0x46c88c=a171_0x3c8b,_0x84fadb=shouldResolveUpdateNotice(_0x4f6db2)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x46c88c(0x8f)](null),_0x236b78=await _0x2edf19['execute'](_0x4f6db2);return attachUpdateNotice(_0x236b78,await _0x84fadb);}};}function a171_0x3c8b(_0x5cc735,_0x48e3b4){_0x5cc735=_0x5cc735-0x72;const _0x36f45c=a171_0x36f4();let _0x3c8b9b=_0x36f45c[_0x5cc735];return _0x3c8b9b;}function shouldResolveUpdateNotice(_0x567b60){const _0x2f951f=a171_0x35702f;return _0x567b60[_0x2f951f(0x7b)]===_0x2f951f(0x87)&&!_0x567b60[_0x2f951f(0xa1)];}function attachUpdateNotice(_0x235310,_0xa66bc5){const _0x496610=a171_0x35702f;if(!_0xa66bc5||!_0x235310||typeof _0x235310!==_0x496610(0x98))return _0x235310;const _0x4c6948=_0x235310,_0x7505e5=typeof _0x4c6948[_0x496610(0x7c)]===_0x496610(0x98)&&_0x4c6948[_0x496610(0x7c)]!==null?_0x4c6948[_0x496610(0x7c)]:{};return{..._0x4c6948,'_notice':{..._0x7505e5,'update':_0xa66bc5}};}