@lovrabet/rabetbase-cli 2.2.0-beta.1 → 2.2.0

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 (204) 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 -1
  60. package/lib/commands/dataset/relation-delete.js +1 -1
  61. package/lib/commands/dataset/relation-shared.js +1 -1
  62. package/lib/commands/dataset/relation-update.js +1 -1
  63. package/lib/commands/dataset/relations.js +1 -1
  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 -1
  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 -1
  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
@@ -1 +1 @@
1
- const a128_0x1ba9e3=a128_0x145e;(function(_0x4e84e7,_0x177a01){const _0x3e0dbb=a128_0x145e,_0x273c70=_0x4e84e7();while(!![]){try{const _0x2e3a3c=-parseInt(_0x3e0dbb(0x15e))/0x1*(-parseInt(_0x3e0dbb(0x15b))/0x2)+parseInt(_0x3e0dbb(0x162))/0x3*(parseInt(_0x3e0dbb(0x17d))/0x4)+parseInt(_0x3e0dbb(0x17c))/0x5+-parseInt(_0x3e0dbb(0x15c))/0x6*(parseInt(_0x3e0dbb(0x186))/0x7)+-parseInt(_0x3e0dbb(0x180))/0x8*(parseInt(_0x3e0dbb(0x167))/0x9)+-parseInt(_0x3e0dbb(0x18b))/0xa+parseInt(_0x3e0dbb(0x17b))/0xb*(parseInt(_0x3e0dbb(0x160))/0xc);if(_0x2e3a3c===_0x177a01)break;else _0x273c70['push'](_0x273c70['shift']());}catch(_0x2e9933){_0x273c70['push'](_0x273c70['shift']());}}}(a128_0x5103,0x6a93d));import{mkdir,readFile,readdir,rename,rmdir}from'node:fs/promises';import{dirname,join,relative,resolve,sep}from'node:path';import{updateSqlQuery}from'../../core/api-client.js';import{loadSqlProjectConfig}from'../../core/sql-sync/config.js';function a128_0x5103(){const _0x19978f=['replace','lastSync','26978CUKbln','\x22\x20for\x20sqlCode\x20','remoteId','\x20SQL\x20file(s)','lockFilePath','7056120lOxCUz','sqlCode','sqlRoot','sqlName','missing\x20remote\x20version;\x20run\x20`rabetbase\x20sql\x20pull`\x20to\x20refresh\x20version\x20info\x20first','catch','Push\x20complete:\x20','filter','path','version','map','dbDirectory','sql','\x20pushed,\x20','\x20failed','sqlcode','\x22\x20matches\x20multiple\x20databases\x20for\x20sqlCode\x20','4JKANyU','660zFkMJB','Multiple\x20local\x20SQL\x20files\x20found\x20for\x20sqlCode\x20','397031Xtpdtu','exec','5781576zuaFmu','No\x20local\x20SQL\x20files\x20found.','237oEUHfP','push','bool','length','sqlConfig','657RunQpM','\x20skipped,\x20','filePath','startsWith','unchanged','join','appCode','toISOString','Would\x20push\x20','sqlRootDir','message','entries','Force\x20push\x20even\x20if\x20local\x20hash\x20matches\x20lock','dbName','hash','utf8','dbId','POST','Local\x20SQL\x20not\x20found:\x20','force','11jjwjlc','3584530StlviT','8VOSFOk','sqls','validation','46776gKwiTq','set','mode','relativePath'];a128_0x5103=function(){return _0x19978f;};return a128_0x5103();}import{getDbName,listDatabases}from'../../core/db-resolver.js';import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';import{computeSqlFileHash}from'../../core/sql-sync/hash.js';import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile,writeSqlLockFile}from'../../core/sql-sync/lock.js';import{fileExists}from'../../core/bff/file-system.js';import{CliErrors}from'../../errors.js';import{SQLCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildSqlLockEntry,stripLocalSqlMetadata}from'./shared.js';import{buildDbDirectoryName}from'../../core/sql-sync/utils.js';async function getTargetSqlQueries(_0x3fc62d,_0x5be10c,_0x4d4a2f){const _0x1212ce=a128_0x145e,_0x12b524=await scanLocalSqlQueries(_0x3fc62d),_0x4739b1=new Map();for(const _0x51c6e6 of _0x12b524){if(_0x4d4a2f&&_0x51c6e6[_0x1212ce(0x18c)]!==_0x4d4a2f)continue;const _0x2681d3=_0x4739b1['get'](_0x51c6e6[_0x1212ce(0x18c)])??[];_0x2681d3[_0x1212ce(0x163)](_0x51c6e6),_0x4739b1[_0x1212ce(0x181)](_0x51c6e6[_0x1212ce(0x18c)],_0x2681d3);}if(_0x4d4a2f&&!_0x4739b1['has'](_0x4d4a2f))throw CliErrors[_0x1212ce(0x17f)](_0x1212ce(0x179)+_0x4d4a2f);const _0x11f021=[];for(const [_0xc4da41,_0x1322cf]of _0x4739b1[_0x1212ce(0x172)]()){if(_0x1322cf[_0x1212ce(0x165)]===0x1){_0x11f021['push'](_0x1322cf[0x0]);continue;}const _0x1eb25c=_0x5be10c[_0x1212ce(0x17e)][_0xc4da41],_0x4dff02=_0x1eb25c?.['path'],_0x47c4b0=_0x4dff02?_0x1322cf[_0x1212ce(0x192)](_0x58c7b5=>_0x58c7b5[_0x1212ce(0x183)]!==_0x4dff02):_0x1322cf;if(_0x1eb25c&&_0x47c4b0[_0x1212ce(0x165)]===0x1){_0x11f021[_0x1212ce(0x163)](_0x47c4b0[0x0]);continue;}throw CliErrors['validation'](_0x1212ce(0x15d)+_0xc4da41+'.\x20Keep\x20only\x20one\x20file\x20under\x20its\x20sqlCode\x20directory\x20before\x20pushing.');}return _0x11f021;}export const sqlPush={'service':a128_0x1ba9e3(0x197),'command':a128_0x1ba9e3(0x163),'description':'Push\x20local\x20SQL\x20files\x20to\x20remote','risk':'high-risk-write','flags':[SQLCODE_FLAG_OPTIONAL,{'name':a128_0x1ba9e3(0x17a),'type':'boolean','description':a128_0x1ba9e3(0x173)}],async 'dryRun'(_0x461a6e){const _0x3225f8=a128_0x1ba9e3,_0x28ac9a=loadSqlProjectConfig(_0x461a6e[_0x3225f8(0x16d)]),_0x41fa7c=await readSqlLockFile(_0x28ac9a['lockFilePath']),{appLock:_0x18b212}=ensureSqlLockScope(_0x41fa7c??createEmptySqlLock(),_0x461a6e[_0x3225f8(0x16d)],_0x28ac9a['sqlRoot'],_0x3225f8(0x163)),_0x2d2c2f=await getTargetSqlQueries(_0x28ac9a,_0x18b212,_0x461a6e['str'](_0x3225f8(0x159))||undefined),_0x275eda=[];for(const _0x2576c2 of _0x2d2c2f){const _0x5564cc=await computeSqlFileHash(_0x2576c2[_0x3225f8(0x169)]),_0x3ebbae=_0x18b212[_0x3225f8(0x17e)][_0x2576c2['sqlCode']],_0x35c1db=!!_0x3ebbae&&(_0x3ebbae[_0x3225f8(0x193)]!==_0x2576c2[_0x3225f8(0x183)]||!!_0x2576c2[_0x3225f8(0x18e)]&&_0x3ebbae[_0x3225f8(0x18e)]!==_0x2576c2[_0x3225f8(0x18e)]);if(!_0x461a6e[_0x3225f8(0x164)](_0x3225f8(0x17a))&&_0x3ebbae&&_0x3ebbae[_0x3225f8(0x175)]===_0x5564cc&&!_0x35c1db)continue;_0x275eda[_0x3225f8(0x163)](_0x2576c2[_0x3225f8(0x18c)]);}return{'method':_0x3225f8(0x178),'url':'/smartapi/custom/updateUserCustomSql','body':{'sqlCodes':_0x275eda,'appCode':_0x461a6e[_0x3225f8(0x16d)]},'description':_0x3225f8(0x16f)+_0x275eda[_0x3225f8(0x165)]+_0x3225f8(0x189)};},async 'execute'(_0x4a1570){const _0x565f24=a128_0x1ba9e3,_0x407d81=loadSqlProjectConfig(_0x4a1570[_0x565f24(0x16d)]),_0x19cf8d=await readSqlLockFile(_0x407d81['lockFilePath']),{lockData:_0x5c9412,appLock:_0x392cfe}=ensureSqlLockScope(_0x19cf8d??createEmptySqlLock(),_0x4a1570[_0x565f24(0x16d)],_0x407d81[_0x565f24(0x18d)],'push'),_0x2090ea=await getTargetSqlQueries(_0x407d81,_0x392cfe,_0x4a1570['str'](_0x565f24(0x159))||undefined);if(_0x2090ea[_0x565f24(0x165)]===0x0)return{'ok':!![],'data':{'pushed':[],'skipped':[],'failed':[]},'message':_0x565f24(0x161)};const _0x29e60f=[],_0x2fb909=[],_0x2fab0c=[];for(const _0x103aef of _0x2090ea){const _0x5e4fd4=_0x392cfe['sqls'][_0x103aef['sqlCode']];if(!_0x5e4fd4){_0x2fab0c['push']({'sqlCode':_0x103aef['sqlCode'],'error':'local\x20SQL\x20is\x20not\x20tracked\x20by\x20sql.lock.json;\x20use\x20`rabetbase\x20sql\x20create`\x20or\x20`rabetbase\x20sql\x20pull`\x20first'});continue;}try{const _0x50564d=await computeSqlFileHash(_0x103aef[_0x565f24(0x169)]),_0xb44578=_0x5e4fd4[_0x565f24(0x193)]!==_0x103aef['relativePath']||!!_0x103aef[_0x565f24(0x18e)]&&_0x5e4fd4[_0x565f24(0x18e)]!==_0x103aef[_0x565f24(0x18e)];if(!_0x4a1570[_0x565f24(0x164)](_0x565f24(0x17a))&&_0x5e4fd4[_0x565f24(0x175)]===_0x50564d&&!_0xb44578){_0x2fb909[_0x565f24(0x163)]({'sqlCode':_0x103aef['sqlCode'],'reason':_0x565f24(0x16b)});continue;}if(_0x5e4fd4[_0x565f24(0x194)]==null){_0x2fab0c[_0x565f24(0x163)]({'sqlCode':_0x103aef[_0x565f24(0x18c)],'error':_0x565f24(0x18f)});continue;}const _0x23fc5c=await readFile(_0x103aef['filePath'],_0x565f24(0x176)),_0x1a5454=stripLocalSqlMetadata(_0x23fc5c,_0x103aef[_0x565f24(0x182)]),_0x15122c=_0x103aef[_0x565f24(0x18e)]||_0x5e4fd4[_0x565f24(0x18e)],_0x28cd23=await resolveTargetDbBinding(_0x4a1570[_0x565f24(0x16d)],_0x103aef,_0x5e4fd4),_0x264a39=await updateSqlQuery({'id':_0x5e4fd4[_0x565f24(0x188)],'appCode':_0x4a1570[_0x565f24(0x16d)],'sqlCode':_0x103aef[_0x565f24(0x18c)],'sqlName':_0x15122c,'dbId':_0x28cd23[_0x565f24(0x177)],'version':_0x5e4fd4['version'],'sqlContent':_0x1a5454,'sqlConfig':_0x5e4fd4[_0x565f24(0x166)]??undefined}),_0x3482fa=_0x264a39[_0x565f24(0x177)]?await getDbName(_0x4a1570[_0x565f24(0x16d)],Number(_0x264a39[_0x565f24(0x177)]))[_0x565f24(0x190)](()=>_0x28cd23[_0x565f24(0x174)]):_0x28cd23[_0x565f24(0x174)];_0x392cfe[_0x565f24(0x17e)][_0x103aef[_0x565f24(0x18c)]]={...buildSqlLockEntry(_0x264a39,_0x1a5454,_0x50564d,{'dbName':_0x3482fa}),'path':_0x103aef[_0x565f24(0x183)],'mode':_0x5e4fd4['mode']},await archivePreviousSqlFileIfNeeded(_0x407d81,_0x5e4fd4[_0x565f24(0x193)],_0x103aef['relativePath']),_0x29e60f[_0x565f24(0x163)]({'sqlCode':_0x103aef[_0x565f24(0x18c)],'remoteId':_0x5e4fd4[_0x565f24(0x188)]});}catch(_0x2ca5a8){_0x2fab0c[_0x565f24(0x163)]({'sqlCode':_0x103aef[_0x565f24(0x18c)],'error':_0x2ca5a8 instanceof Error?_0x2ca5a8[_0x565f24(0x171)]:String(_0x2ca5a8)});}}return _0x392cfe[_0x565f24(0x185)]=new Date()[_0x565f24(0x16e)](),await writeSqlLockFile(_0x407d81[_0x565f24(0x18a)],_0x5c9412),{'ok':_0x2fab0c[_0x565f24(0x165)]===0x0,'data':{'pushed':_0x29e60f,'skipped':_0x2fb909,'failed':_0x2fab0c},'message':_0x565f24(0x191)+_0x29e60f[_0x565f24(0x165)]+_0x565f24(0x157)+_0x2fb909[_0x565f24(0x165)]+_0x565f24(0x168)+_0x2fab0c[_0x565f24(0x165)]+_0x565f24(0x158)};}};async function archivePreviousSqlFileIfNeeded(_0x2bf2ac,_0x391351,_0x3e2cfb){const _0x213c30=a128_0x1ba9e3;if(!_0x391351||_0x391351===_0x3e2cfb)return;const _0x449b08=join(_0x2bf2ac[_0x213c30(0x170)],_0x391351);if(!await fileExists(_0x449b08))return;const _0x2eaf85=await moveToTrash(_0x2bf2ac['projectRoot'],_0x2bf2ac['trashDir'],_0x449b08);await cleanupEmptyDirectories(dirname(_0x449b08),_0x2bf2ac[_0x213c30(0x170)]),void _0x2eaf85;}async function moveToTrash(_0x43e9d8,_0x48770f,_0x2f613b){const _0x5ed645=a128_0x1ba9e3,_0x9b384e=new Date()[_0x5ed645(0x16e)]()[_0x5ed645(0x184)](/[:.]/g,'-'),_0x3269b8=relative(_0x43e9d8,_0x2f613b),_0x364c34=join(_0x48770f,_0x9b384e,_0x3269b8);return await mkdir(dirname(_0x364c34),{'recursive':!![]}),await rename(_0x2f613b,_0x364c34),_0x364c34;}function a128_0x145e(_0x5abce7,_0x5a0e98){_0x5abce7=_0x5abce7-0x157;const _0x51030d=a128_0x5103();let _0x145e34=_0x51030d[_0x5abce7];return _0x145e34;}async function cleanupEmptyDirectories(_0xbb2518,_0x436909){const _0x247c1a=a128_0x1ba9e3;let _0x172908=resolve(_0xbb2518);const _0x38e9fc=resolve(_0x436909);while(_0x172908[_0x247c1a(0x16a)](''+_0x38e9fc+sep)||_0x172908===_0x38e9fc){if(_0x172908===_0x38e9fc)return;try{const _0x58f65a=await readdir(_0x172908);if(_0x58f65a[_0x247c1a(0x165)]>0x0)return;await rmdir(_0x172908);}catch{return;}_0x172908=dirname(_0x172908);}}async function resolveTargetDbBinding(_0x311888,_0x3a9049,_0x726201){const _0xcdb69b=a128_0x1ba9e3,_0x196dca=_0x3a9049[_0xcdb69b(0x196)];if(!_0x196dca)return{'dbId':_0x726201['dbId'],'dbName':_0x726201[_0xcdb69b(0x174)]};const _0x424ef1=buildDbDirectoryName(_0x726201['dbName'],_0x726201['dbId']);if(_0x196dca===_0x424ef1)return{'dbId':_0x726201[_0xcdb69b(0x177)],'dbName':_0x726201['dbName']};const _0x1ca608=parseExplicitDbDirectory(_0x196dca);if(_0x1ca608!=null)return{'dbId':_0x1ca608,'dbName':await getDbName(_0x311888,_0x1ca608)[_0xcdb69b(0x190)](()=>undefined)};const _0xedc438=await listDatabases(_0x311888),_0x48fcc2=_0xedc438[_0xcdb69b(0x192)](_0x49d493=>buildDbDirectoryName(_0x49d493[_0xcdb69b(0x174)],_0x49d493[_0xcdb69b(0x177)])===_0x196dca);if(_0x48fcc2[_0xcdb69b(0x165)]===0x1)return{'dbId':_0x48fcc2[0x0][_0xcdb69b(0x177)],'dbName':_0x48fcc2[0x0][_0xcdb69b(0x174)]};if(_0x48fcc2[_0xcdb69b(0x165)]===0x0)throw CliErrors[_0xcdb69b(0x17f)]('No\x20database\x20matches\x20local\x20directory\x20\x22'+_0x196dca+_0xcdb69b(0x187)+_0x3a9049['sqlCode']+'.');const _0x9bd4b6=_0x48fcc2[_0xcdb69b(0x195)](_0x1118df=>_0x1118df[_0xcdb69b(0x174)]+'\x20('+_0x1118df[_0xcdb69b(0x177)]+')')[_0xcdb69b(0x16c)](',\x20');throw CliErrors[_0xcdb69b(0x17f)]('Local\x20directory\x20\x22'+_0x196dca+_0xcdb69b(0x15a)+_0x3a9049[_0xcdb69b(0x18c)]+':\x20'+_0x9bd4b6);}function parseExplicitDbDirectory(_0x3b029c){const _0x1939f9=a128_0x1ba9e3,_0x4aa22f=/^db-(\d+)$/[_0x1939f9(0x15f)](_0x3b029c);if(!_0x4aa22f)return null;const _0x1acb1a=Number(_0x4aa22f[0x1]);return Number['isFinite'](_0x1acb1a)&&_0x1acb1a>0x0?_0x1acb1a:null;}
1
+ const a128_0x5a0159=a128_0x2cbc;(function(_0x541e3d,_0x543f84){const _0x3e1442=a128_0x2cbc,_0x48fc03=_0x541e3d();while(!![]){try{const _0x23b555=parseInt(_0x3e1442(0x133))/0x1*(parseInt(_0x3e1442(0x131))/0x2)+parseInt(_0x3e1442(0x125))/0x3*(parseInt(_0x3e1442(0x138))/0x4)+parseInt(_0x3e1442(0x121))/0x5+parseInt(_0x3e1442(0x11f))/0x6*(-parseInt(_0x3e1442(0x122))/0x7)+parseInt(_0x3e1442(0xfd))/0x8*(-parseInt(_0x3e1442(0x12f))/0x9)+-parseInt(_0x3e1442(0x100))/0xa+-parseInt(_0x3e1442(0x132))/0xb*(-parseInt(_0x3e1442(0x10a))/0xc);if(_0x23b555===_0x543f84)break;else _0x48fc03['push'](_0x48fc03['shift']());}catch(_0x517ea9){_0x48fc03['push'](_0x48fc03['shift']());}}}(a128_0x3b26,0xdfae5));import{mkdir,readFile,readdir,rename,rmdir}from'node:fs/promises';import{dirname,join,relative,resolve,sep}from'node:path';import{updateSqlQuery}from'../../core/api-client.js';function a128_0x3b26(){const _0x330e21=['hash','high-risk-write','Force\x20push\x20even\x20if\x20local\x20hash\x20matches\x20lock','toISOString','catch','push','Push\x20complete:\x20','\x20skipped,\x20','bool','startsWith','sqlcode','lockFilePath','sqlConfig','unchanged','sql','1111170puCbsR','projectRoot','1350720tQyKaP','14ZtkPzx','POST','path','54zalKZo','\x20SQL\x20file(s)','sqls','sqlName','mode','\x20failed','lastSync','dbName','filter','remoteId','1063467guXiPc','length','94746aYWcAW','11CmoUTo','1xgHLzI','Local\x20directory\x20\x22','local\x20SQL\x20is\x20not\x20tracked\x20by\x20sql.lock.json;\x20use\x20`rabetbase\x20sql\x20create`\x20or\x20`rabetbase\x20sql\x20pull`\x20first','Push\x20local\x20SQL\x20files\x20to\x20remote','/smartapi/custom/updateUserCustomSql','361740kGslCx','relativePath','str','message','16WUpAvg','Would\x20push\x20','validation','14869640auEhEo','No\x20local\x20SQL\x20files\x20found.','No\x20database\x20matches\x20local\x20directory\x20\x22','Local\x20SQL\x20not\x20found:\x20','sqlRootDir','utf8','exec','sqlRoot','map','appCode','12774360VaueNe','boolean','force','sqlCode','filePath','dbId'];a128_0x3b26=function(){return _0x330e21;};return a128_0x3b26();}import{loadSqlProjectConfig}from'../../core/sql-sync/config.js';import{getDbName,listDatabases}from'../../core/db-resolver.js';import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';import{computeSqlFileHash}from'../../core/sql-sync/hash.js';function a128_0x2cbc(_0x55d1e4,_0x5e6989){_0x55d1e4=_0x55d1e4-0xfc;const _0x3b26d7=a128_0x3b26();let _0x2cbcb1=_0x3b26d7[_0x55d1e4];return _0x2cbcb1;}import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile,writeSqlLockFile}from'../../core/sql-sync/lock.js';import{fileExists}from'../../core/bff/file-system.js';import{CliErrors}from'../../errors.js';import{SQLCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildSqlLockEntry,stripLocalSqlMetadata}from'./shared.js';import{buildDbDirectoryName}from'../../core/sql-sync/utils.js';async function getTargetSqlQueries(_0x4b8099,_0x53eea5,_0x590845){const _0x46f830=a128_0x2cbc,_0x55ac80=await scanLocalSqlQueries(_0x4b8099),_0x333b1b=new Map();for(const _0xd1bce3 of _0x55ac80){if(_0x590845&&_0xd1bce3[_0x46f830(0x10d)]!==_0x590845)continue;const _0x225338=_0x333b1b['get'](_0xd1bce3[_0x46f830(0x10d)])??[];_0x225338[_0x46f830(0x115)](_0xd1bce3),_0x333b1b['set'](_0xd1bce3[_0x46f830(0x10d)],_0x225338);}if(_0x590845&&!_0x333b1b['has'](_0x590845))throw CliErrors[_0x46f830(0xff)](_0x46f830(0x103)+_0x590845);const _0x54771a=[];for(const [_0x1f20f9,_0x5d090d]of _0x333b1b['entries']()){if(_0x5d090d[_0x46f830(0x130)]===0x1){_0x54771a[_0x46f830(0x115)](_0x5d090d[0x0]);continue;}const _0x275533=_0x53eea5[_0x46f830(0x127)][_0x1f20f9],_0x39487f=_0x275533?.[_0x46f830(0x124)],_0x29219f=_0x39487f?_0x5d090d['filter'](_0x4c422a=>_0x4c422a[_0x46f830(0x139)]!==_0x39487f):_0x5d090d;if(_0x275533&&_0x29219f[_0x46f830(0x130)]===0x1){_0x54771a[_0x46f830(0x115)](_0x29219f[0x0]);continue;}throw CliErrors[_0x46f830(0xff)]('Multiple\x20local\x20SQL\x20files\x20found\x20for\x20sqlCode\x20'+_0x1f20f9+'.\x20Keep\x20only\x20one\x20file\x20under\x20its\x20sqlCode\x20directory\x20before\x20pushing.');}return _0x54771a;}export const sqlPush={'service':a128_0x5a0159(0x11e),'command':a128_0x5a0159(0x115),'description':a128_0x5a0159(0x136),'risk':a128_0x5a0159(0x111),'flags':[SQLCODE_FLAG_OPTIONAL,{'name':a128_0x5a0159(0x10c),'type':a128_0x5a0159(0x10b),'description':a128_0x5a0159(0x112)}],async 'dryRun'(_0x294ee3){const _0x315ea0=a128_0x5a0159,_0x557716=loadSqlProjectConfig(_0x294ee3[_0x315ea0(0x109)]),_0x545209=await readSqlLockFile(_0x557716[_0x315ea0(0x11b)]),{appLock:_0x37d6de}=ensureSqlLockScope(_0x545209??createEmptySqlLock(),_0x294ee3[_0x315ea0(0x109)],_0x557716[_0x315ea0(0x107)],'push'),_0x503990=await getTargetSqlQueries(_0x557716,_0x37d6de,_0x294ee3[_0x315ea0(0x13a)](_0x315ea0(0x11a))||undefined),_0x4a5745=[];for(const _0x4294a0 of _0x503990){const _0x50aa5e=await computeSqlFileHash(_0x4294a0['filePath']),_0x291fdd=_0x37d6de[_0x315ea0(0x127)][_0x4294a0['sqlCode']],_0x441652=!!_0x291fdd&&(_0x291fdd[_0x315ea0(0x124)]!==_0x4294a0[_0x315ea0(0x139)]||!!_0x4294a0[_0x315ea0(0x128)]&&_0x291fdd['sqlName']!==_0x4294a0[_0x315ea0(0x128)]);if(!_0x294ee3[_0x315ea0(0x118)](_0x315ea0(0x10c))&&_0x291fdd&&_0x291fdd[_0x315ea0(0x110)]===_0x50aa5e&&!_0x441652)continue;_0x4a5745['push'](_0x4294a0[_0x315ea0(0x10d)]);}return{'method':_0x315ea0(0x123),'url':_0x315ea0(0x137),'body':{'sqlCodes':_0x4a5745,'appCode':_0x294ee3[_0x315ea0(0x109)]},'description':_0x315ea0(0xfe)+_0x4a5745[_0x315ea0(0x130)]+_0x315ea0(0x126)};},async 'execute'(_0x68f184){const _0x46a8dd=a128_0x5a0159,_0x4c14f6=loadSqlProjectConfig(_0x68f184[_0x46a8dd(0x109)]),_0x3c5ac0=await readSqlLockFile(_0x4c14f6[_0x46a8dd(0x11b)]),{lockData:_0x3b17b4,appLock:_0x26d1b2}=ensureSqlLockScope(_0x3c5ac0??createEmptySqlLock(),_0x68f184[_0x46a8dd(0x109)],_0x4c14f6[_0x46a8dd(0x107)],_0x46a8dd(0x115)),_0x4422c3=await getTargetSqlQueries(_0x4c14f6,_0x26d1b2,_0x68f184[_0x46a8dd(0x13a)](_0x46a8dd(0x11a))||undefined);if(_0x4422c3[_0x46a8dd(0x130)]===0x0)return{'ok':!![],'data':{'pushed':[],'skipped':[],'failed':[]},'message':_0x46a8dd(0x101)};const _0x2fd888=[],_0x45803c=[],_0x268713=[];for(const _0x5df578 of _0x4422c3){const _0x89599f=_0x26d1b2[_0x46a8dd(0x127)][_0x5df578['sqlCode']];if(!_0x89599f){_0x268713[_0x46a8dd(0x115)]({'sqlCode':_0x5df578[_0x46a8dd(0x10d)],'error':_0x46a8dd(0x135)});continue;}try{const _0x2b887f=await computeSqlFileHash(_0x5df578[_0x46a8dd(0x10e)]),_0x35c7dc=_0x89599f[_0x46a8dd(0x124)]!==_0x5df578[_0x46a8dd(0x139)]||!!_0x5df578[_0x46a8dd(0x128)]&&_0x89599f[_0x46a8dd(0x128)]!==_0x5df578[_0x46a8dd(0x128)];if(!_0x68f184[_0x46a8dd(0x118)](_0x46a8dd(0x10c))&&_0x89599f[_0x46a8dd(0x110)]===_0x2b887f&&!_0x35c7dc){_0x45803c[_0x46a8dd(0x115)]({'sqlCode':_0x5df578[_0x46a8dd(0x10d)],'reason':_0x46a8dd(0x11d)});continue;}if(_0x89599f['version']==null){_0x268713['push']({'sqlCode':_0x5df578[_0x46a8dd(0x10d)],'error':'missing\x20remote\x20version;\x20run\x20`rabetbase\x20sql\x20pull`\x20to\x20refresh\x20version\x20info\x20first'});continue;}const _0x4c63a4=await readFile(_0x5df578[_0x46a8dd(0x10e)],_0x46a8dd(0x105)),_0x58b5e7=stripLocalSqlMetadata(_0x4c63a4,_0x5df578[_0x46a8dd(0x129)]),_0x403b33=_0x5df578[_0x46a8dd(0x128)]||_0x89599f['sqlName'],_0x134146=await resolveTargetDbBinding(_0x68f184[_0x46a8dd(0x109)],_0x5df578,_0x89599f),_0x7f2332=await updateSqlQuery({'id':_0x89599f[_0x46a8dd(0x12e)],'appCode':_0x68f184['appCode'],'sqlCode':_0x5df578[_0x46a8dd(0x10d)],'sqlName':_0x403b33,'dbId':_0x134146[_0x46a8dd(0x10f)],'version':_0x89599f['version'],'sqlContent':_0x58b5e7,'sqlConfig':_0x89599f[_0x46a8dd(0x11c)]??undefined}),_0x31c358=_0x7f2332['dbId']?await getDbName(_0x68f184[_0x46a8dd(0x109)],Number(_0x7f2332[_0x46a8dd(0x10f)]))[_0x46a8dd(0x114)](()=>_0x134146[_0x46a8dd(0x12c)]):_0x134146['dbName'];_0x26d1b2[_0x46a8dd(0x127)][_0x5df578[_0x46a8dd(0x10d)]]={...buildSqlLockEntry(_0x7f2332,_0x58b5e7,_0x2b887f,{'dbName':_0x31c358}),'path':_0x5df578[_0x46a8dd(0x139)],'mode':_0x89599f[_0x46a8dd(0x129)]},await archivePreviousSqlFileIfNeeded(_0x4c14f6,_0x89599f['path'],_0x5df578['relativePath']),_0x2fd888[_0x46a8dd(0x115)]({'sqlCode':_0x5df578[_0x46a8dd(0x10d)],'remoteId':_0x89599f['remoteId']});}catch(_0x5d79d4){_0x268713['push']({'sqlCode':_0x5df578[_0x46a8dd(0x10d)],'error':_0x5d79d4 instanceof Error?_0x5d79d4[_0x46a8dd(0xfc)]:String(_0x5d79d4)});}}return _0x26d1b2[_0x46a8dd(0x12b)]=new Date()[_0x46a8dd(0x113)](),await writeSqlLockFile(_0x4c14f6[_0x46a8dd(0x11b)],_0x3b17b4),{'ok':_0x268713[_0x46a8dd(0x130)]===0x0,'data':{'pushed':_0x2fd888,'skipped':_0x45803c,'failed':_0x268713},'message':_0x46a8dd(0x116)+_0x2fd888['length']+'\x20pushed,\x20'+_0x45803c['length']+_0x46a8dd(0x117)+_0x268713[_0x46a8dd(0x130)]+_0x46a8dd(0x12a)};}};async function archivePreviousSqlFileIfNeeded(_0x3f4892,_0x1755ff,_0x1ebf49){const _0x481551=a128_0x5a0159;if(!_0x1755ff||_0x1755ff===_0x1ebf49)return;const _0x32801e=join(_0x3f4892['sqlRootDir'],_0x1755ff);if(!await fileExists(_0x32801e))return;const _0x2bd998=await moveToTrash(_0x3f4892[_0x481551(0x120)],_0x3f4892['trashDir'],_0x32801e);await cleanupEmptyDirectories(dirname(_0x32801e),_0x3f4892[_0x481551(0x104)]),void _0x2bd998;}async function moveToTrash(_0x76fab7,_0x18f141,_0x5c00dc){const _0x2b47dc=new Date()['toISOString']()['replace'](/[:.]/g,'-'),_0x37e64f=relative(_0x76fab7,_0x5c00dc),_0x448870=join(_0x18f141,_0x2b47dc,_0x37e64f);return await mkdir(dirname(_0x448870),{'recursive':!![]}),await rename(_0x5c00dc,_0x448870),_0x448870;}async function cleanupEmptyDirectories(_0x59264b,_0x236694){const _0x303dd6=a128_0x5a0159;let _0x4a047f=resolve(_0x59264b);const _0x38862d=resolve(_0x236694);while(_0x4a047f[_0x303dd6(0x119)](''+_0x38862d+sep)||_0x4a047f===_0x38862d){if(_0x4a047f===_0x38862d)return;try{const _0x25f2be=await readdir(_0x4a047f);if(_0x25f2be[_0x303dd6(0x130)]>0x0)return;await rmdir(_0x4a047f);}catch{return;}_0x4a047f=dirname(_0x4a047f);}}async function resolveTargetDbBinding(_0x3ee260,_0x17b1ac,_0xb1c681){const _0x232d12=a128_0x5a0159,_0x3fea3f=_0x17b1ac['dbDirectory'];if(!_0x3fea3f)return{'dbId':_0xb1c681[_0x232d12(0x10f)],'dbName':_0xb1c681[_0x232d12(0x12c)]};const _0x5e664b=buildDbDirectoryName(_0xb1c681['dbName'],_0xb1c681[_0x232d12(0x10f)]);if(_0x3fea3f===_0x5e664b)return{'dbId':_0xb1c681[_0x232d12(0x10f)],'dbName':_0xb1c681[_0x232d12(0x12c)]};const _0xcee13c=parseExplicitDbDirectory(_0x3fea3f);if(_0xcee13c!=null)return{'dbId':_0xcee13c,'dbName':await getDbName(_0x3ee260,_0xcee13c)[_0x232d12(0x114)](()=>undefined)};const _0x467e9c=await listDatabases(_0x3ee260),_0x1c5233=_0x467e9c[_0x232d12(0x12d)](_0x509890=>buildDbDirectoryName(_0x509890['dbName'],_0x509890['dbId'])===_0x3fea3f);if(_0x1c5233[_0x232d12(0x130)]===0x1)return{'dbId':_0x1c5233[0x0][_0x232d12(0x10f)],'dbName':_0x1c5233[0x0]['dbName']};if(_0x1c5233[_0x232d12(0x130)]===0x0)throw CliErrors[_0x232d12(0xff)](_0x232d12(0x102)+_0x3fea3f+'\x22\x20for\x20sqlCode\x20'+_0x17b1ac[_0x232d12(0x10d)]+'.');const _0x5d0959=_0x1c5233[_0x232d12(0x108)](_0x1f27c0=>_0x1f27c0['dbName']+'\x20('+_0x1f27c0[_0x232d12(0x10f)]+')')['join'](',\x20');throw CliErrors[_0x232d12(0xff)](_0x232d12(0x134)+_0x3fea3f+'\x22\x20matches\x20multiple\x20databases\x20for\x20sqlCode\x20'+_0x17b1ac[_0x232d12(0x10d)]+':\x20'+_0x5d0959);}function parseExplicitDbDirectory(_0x530b66){const _0x2b6ca7=a128_0x5a0159,_0x5b8c59=/^db-(\d+)$/[_0x2b6ca7(0x106)](_0x530b66);if(!_0x5b8c59)return null;const _0xcfc91=Number(_0x5b8c59[0x1]);return Number['isFinite'](_0xcfc91)&&_0xcfc91>0x0?_0xcfc91:null;}
@@ -1 +1 @@
1
- const a129_0x3d52ed=a129_0x3148;(function(_0x52b2e2,_0x390b6b){const _0x504065=a129_0x3148,_0x408226=_0x52b2e2();while(!![]){try{const _0x254e9c=-parseInt(_0x504065(0xe6))/0x1+parseInt(_0x504065(0xe5))/0x2+-parseInt(_0x504065(0xd5))/0x3*(-parseInt(_0x504065(0xd9))/0x4)+-parseInt(_0x504065(0xe7))/0x5+-parseInt(_0x504065(0xdc))/0x6*(parseInt(_0x504065(0xe3))/0x7)+-parseInt(_0x504065(0xdb))/0x8+parseInt(_0x504065(0xe9))/0x9*(parseInt(_0x504065(0xdf))/0xa);if(_0x254e9c===_0x390b6b)break;else _0x408226['push'](_0x408226['shift']());}catch(_0x2eab69){_0x408226['push'](_0x408226['shift']());}}}(a129_0x4206,0xa67e4));function a129_0x3148(_0x5a1e91,_0x5e7a62){_0x5a1e91=_0x5a1e91-0xd5;const _0x420685=a129_0x4206();let _0x314864=_0x420685[_0x5a1e91];return _0x314864;}import{CliErrors}from'../../errors.js';import{SQLCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a129_0x4206(){const _0x334fb0=['description','11910681Fslfuv','1273176MexWeS','join','string','sql','8PcsYwU','`rabetbase\x20sql\x20save`\x20has\x20been\x20deprecated.','3871496lJQAKq','209256TqxyQc','Create\x20new\x20SQL\x20with\x20`rabetbase\x20sql\x20create\x20--name\x20<name>\x20--db-id\x20<id>\x20--mode\x20sql|mybatisXml`.','Query\x20description','10MJKpht','validation','Path\x20to\x20the\x20SQL\x20file','Target\x20database\x20—\x20accepts\x20a\x20numeric\x20ID\x20or\x20database\x20name\x20(e.g.\x20ecommerce_db)','28ufXdIS','sqlname','2698576vgwDpS','995871JqhcFd','6101065YDMaam'];a129_0x4206=function(){return _0x334fb0;};return a129_0x4206();}const SQL_SAVE_DEPRECATED_HINT=[a129_0x3d52ed(0xda),a129_0x3d52ed(0xdd),'Update\x20existing\x20SQL\x20by\x20editing\x20the\x20synced\x20file\x20under\x20`.rabetbase/sql/<appCode>/<dbName|db-<id>>/`\x20and\x20then\x20running\x20`rabetbase\x20sql\x20push\x20--sqlcode\x20<code>\x20--yes`.'][a129_0x3d52ed(0xd6)]('\x0a');export const sqlSave={'service':a129_0x3d52ed(0xd8),'command':'save','description':'Deprecated:\x20use\x20sql\x20create\x20to\x20create\x20and\x20sql\x20push\x20to\x20update','risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'file','type':a129_0x3d52ed(0xd7),'required':!![],'description':a129_0x3d52ed(0xe1)},SQLCODE_FLAG_OPTIONAL,{'name':a129_0x3d52ed(0xe4),'type':a129_0x3d52ed(0xd7),'description':'SQL\x20query\x20display\x20name'},{'name':'db','type':a129_0x3d52ed(0xd7),'description':a129_0x3d52ed(0xe2)},{'name':a129_0x3d52ed(0xe8),'type':a129_0x3d52ed(0xd7),'description':a129_0x3d52ed(0xde)}],async 'validate'(){const _0x2209c0=a129_0x3d52ed;throw CliErrors[_0x2209c0(0xe0)](SQL_SAVE_DEPRECATED_HINT);},async 'execute'(){const _0x28f581=a129_0x3d52ed;throw CliErrors[_0x28f581(0xe0)](SQL_SAVE_DEPRECATED_HINT);}};
1
+ function a129_0x38d4(){const _0x40b2ff=['Path\x20to\x20the\x20SQL\x20file','sql','validation','Update\x20existing\x20SQL\x20by\x20editing\x20the\x20synced\x20file\x20under\x20`.rabetbase/sql/<appCode>/<dbName|db-<id>>/`\x20and\x20then\x20running\x20`rabetbase\x20sql\x20push\x20--sqlcode\x20<code>\x20--yes`.','string','632889cuEKlw','join','SQL\x20query\x20display\x20name','Target\x20database\x20—\x20accepts\x20a\x20numeric\x20ID\x20or\x20database\x20name\x20(e.g.\x20ecommerce_db)','write','173602eheeGv','save','576546tjEWWR','453200AUBEyY','643588sTkFWD','1vSsITT','1926153VTWINw','8WqFPsA','1693531KJgQMX','Create\x20new\x20SQL\x20with\x20`rabetbase\x20sql\x20create\x20--name\x20<name>\x20--db-id\x20<id>\x20--mode\x20sql|mybatisXml`.','sqlname','file'];a129_0x38d4=function(){return _0x40b2ff;};return a129_0x38d4();}const a129_0x553667=a129_0x1ae9;(function(_0x3b24fd,_0xe7180a){const _0x14e1bd=a129_0x1ae9,_0x961674=_0x3b24fd();while(!![]){try{const _0x51497d=-parseInt(_0x14e1bd(0xf1))/0x1*(parseInt(_0x14e1bd(0xec))/0x2)+-parseInt(_0x14e1bd(0xfd))/0x3+parseInt(_0x14e1bd(0xf0))/0x4+-parseInt(_0x14e1bd(0xef))/0x5+-parseInt(_0x14e1bd(0xee))/0x6+parseInt(_0x14e1bd(0xf4))/0x7+parseInt(_0x14e1bd(0xf3))/0x8*(parseInt(_0x14e1bd(0xf2))/0x9);if(_0x51497d===_0xe7180a)break;else _0x961674['push'](_0x961674['shift']());}catch(_0x37c938){_0x961674['push'](_0x961674['shift']());}}}(a129_0x38d4,0x20500));import{CliErrors}from'../../errors.js';function a129_0x1ae9(_0x4dd38c,_0x12c16b){_0x4dd38c=_0x4dd38c-0xeb;const _0x38d449=a129_0x38d4();let _0x1ae986=_0x38d449[_0x4dd38c];return _0x1ae986;}import{SQLCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const SQL_SAVE_DEPRECATED_HINT=['`rabetbase\x20sql\x20save`\x20has\x20been\x20deprecated.',a129_0x553667(0xf5),a129_0x553667(0xfb)][a129_0x553667(0xfe)]('\x0a');export const sqlSave={'service':a129_0x553667(0xf9),'command':a129_0x553667(0xed),'description':'Deprecated:\x20use\x20sql\x20create\x20to\x20create\x20and\x20sql\x20push\x20to\x20update','risk':a129_0x553667(0xeb),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a129_0x553667(0xf7),'type':a129_0x553667(0xfc),'required':!![],'description':a129_0x553667(0xf8)},SQLCODE_FLAG_OPTIONAL,{'name':a129_0x553667(0xf6),'type':a129_0x553667(0xfc),'description':a129_0x553667(0xff)},{'name':'db','type':a129_0x553667(0xfc),'description':a129_0x553667(0x100)},{'name':'description','type':a129_0x553667(0xfc),'description':'Query\x20description'}],async 'validate'(){const _0xf0a1ce=a129_0x553667;throw CliErrors[_0xf0a1ce(0xfa)](SQL_SAVE_DEPRECATED_HINT);},async 'execute'(){const _0x2986ac=a129_0x553667;throw CliErrors[_0x2986ac(0xfa)](SQL_SAVE_DEPRECATED_HINT);}};
@@ -1 +1 @@
1
- (function(_0x193e85,_0xbfbdb6){const _0x521da9=a130_0x20b4,_0x5b74c1=_0x193e85();while(!![]){try{const _0x354a5f=parseInt(_0x521da9(0x187))/0x1*(-parseInt(_0x521da9(0x16f))/0x2)+-parseInt(_0x521da9(0x181))/0x3+-parseInt(_0x521da9(0x17e))/0x4*(parseInt(_0x521da9(0x171))/0x5)+parseInt(_0x521da9(0x196))/0x6*(parseInt(_0x521da9(0x17d))/0x7)+-parseInt(_0x521da9(0x17b))/0x8+-parseInt(_0x521da9(0x191))/0x9*(parseInt(_0x521da9(0x17a))/0xa)+parseInt(_0x521da9(0x177))/0xb;if(_0x354a5f===_0xbfbdb6)break;else _0x5b74c1['push'](_0x5b74c1['shift']());}catch(_0x32a774){_0x5b74c1['push'](_0x5b74c1['shift']());}}}(a130_0x5356,0x27211));import{createInterface}from'node:readline';import{join}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath,detectSqlMode}from'../../core/sql-sync/utils.js';export const SQL_LOCAL_REL_DIR='.rabetbase/sql';function a130_0x5356(){const _0x269072=['trimStart','filter','yes','toLowerCase','sqlCode','push','9gncWGh','join','sqlConfig','map','sqlName','4728OoFXGj','mybatisXml','stdin','version','4iFSaze','stderr','5HYVwdH','length','entries','split','lastSync','<!--\x20@lovrabet.','6395675jwhSHI','path','syncedAt','339060pxhNVS','743144lgIaIA','test','140xAWtDa','676708oPupgC','question','apps','403812NlpanV','dbId','trim','sqlContent','dbName','mode','3166TcZINp','endsWith','\x20-->','sqls'];a130_0x5356=function(){return _0x269072;};return a130_0x5356();}export function buildSqlLockEntry(_0x345e72,_0x15223e,_0x3a2cb8,_0x333500){const _0x1ca7ed=a130_0x20b4,_0x262edb=detectSqlMode(_0x15223e);return{'path':buildSqlRelativePath(_0x345e72['sqlCode'],_0x345e72['sqlName'],_0x333500?.[_0x1ca7ed(0x185)],_0x262edb,_0x345e72['dbId']),'hash':_0x3a2cb8,'remoteId':_0x345e72['id'],'version':_0x345e72[_0x1ca7ed(0x16e)],'dbId':Number(_0x345e72[_0x1ca7ed(0x182)]),'dbName':_0x333500?.['dbName'],'sqlName':_0x345e72[_0x1ca7ed(0x195)],'sqlConfig':_0x345e72[_0x1ca7ed(0x193)]??undefined,'mode':_0x262edb};}export function cloneSqlLockData(_0x5c0ab0){const _0x18083d=a130_0x20b4;return{'apps':Object['fromEntries'](Object[_0x18083d(0x173)](_0x5c0ab0[_0x18083d(0x180)])[_0x18083d(0x194)](([_0x1ca76f,_0x5b6795])=>[_0x1ca76f,{'sqlRoot':_0x5b6795['sqlRoot'],'lastSync':_0x5b6795[_0x18083d(0x175)],'sqls':{..._0x5b6795[_0x18083d(0x18a)]}}]))};}export function ensureRemoteSqlContent(_0x537fa1){const _0x5458bd=a130_0x20b4;return _0x537fa1[_0x5458bd(0x184)]??'';}export function buildLocalSqlFileContent(_0x53f451,_0x5dc08e,_0x237281){const _0x4b0842=a130_0x20b4,_0x4bedad=_0x237281?.[_0x4b0842(0x186)]??detectSqlMode(_0x5dc08e),_0x4c7475=stripLocalSqlMetadata(_0x5dc08e,_0x4bedad)[_0x4b0842(0x183)](),_0xfc1a07=[...buildMetadataHeaderLines({'sqlCode':_0x53f451[_0x4b0842(0x18f)],'sqlName':_0x53f451[_0x4b0842(0x195)],'dbId':_0x53f451[_0x4b0842(0x182)],'dbName':_0x237281?.[_0x4b0842(0x185)],'mode':_0x4bedad,'syncedAt':_0x237281?.[_0x4b0842(0x179)],'description':_0x237281?.['description']},_0x4bedad),'',_0x4c7475],_0x28a153=_0xfc1a07[_0x4b0842(0x192)]('\x0a');return _0x28a153[_0x4b0842(0x188)]('\x0a')?_0x28a153:_0x28a153+'\x0a';}export function stripLocalSqlMetadata(_0x4f542c,_0x1ce496){const _0x2f4a51=a130_0x20b4,_0x462b40=_0x4f542c['replace'](/\r\n/g,'\x0a')[_0x2f4a51(0x174)]('\x0a'),_0x253f5c=[];let _0xe2793f=0x0;if(_0x1ce496==='mybatisXml')while(_0xe2793f<_0x462b40[_0x2f4a51(0x172)]){const _0x110552=_0x462b40[_0xe2793f]??'';if(/^\s*<!--\s*@lovrabet\./[_0x2f4a51(0x17c)](_0x110552)){_0xe2793f++;continue;}if(_0x110552[_0x2f4a51(0x183)]()===''&&_0xe2793f>0x0){_0xe2793f++;continue;}break;}else while(_0xe2793f<_0x462b40['length']){const _0xe0920e=_0x462b40[_0xe2793f]??'';if(/^\s*--\s*@lovrabet\./[_0x2f4a51(0x17c)](_0xe0920e)){_0xe2793f++;continue;}if(_0xe0920e[_0x2f4a51(0x183)]()===''&&_0xe2793f>0x0){_0xe2793f++;continue;}break;}for(;_0xe2793f<_0x462b40[_0x2f4a51(0x172)];_0xe2793f++){_0x253f5c[_0x2f4a51(0x190)](_0x462b40[_0xe2793f]);}return _0x253f5c[_0x2f4a51(0x192)]('\x0a')[_0x2f4a51(0x18b)]();}export function resolveSqlMode(_0x273e15,_0x27dde8){const _0xdcf23f=a130_0x20b4;if(_0x27dde8?.['mode'])return _0x27dde8[_0xdcf23f(0x186)];return detectSqlMode(_0x273e15);}export function resolveSqlFileName(_0x560951,_0x390119,_0x446cc5){const _0x2b648e=a130_0x20b4;if(_0x446cc5?.[_0x2b648e(0x178)])return _0x446cc5['path'];if(_0x446cc5?.[_0x2b648e(0x195)]||_0x446cc5?.[_0x2b648e(0x185)])return buildSqlRelativePath(_0x560951,_0x446cc5?.[_0x2b648e(0x195)],_0x446cc5?.[_0x2b648e(0x185)],resolveSqlMode(_0x390119,_0x446cc5),_0x446cc5?.[_0x2b648e(0x182)]);return buildDefaultSqlFileName(_0x560951,resolveSqlMode(_0x390119,_0x446cc5));}function a130_0x20b4(_0x286cda,_0x1519b8){_0x286cda=_0x286cda-0x16e;const _0x535678=a130_0x5356();let _0x20b4d1=_0x535678[_0x286cda];return _0x20b4d1;}export function resolveSqlLocalDir(_0x39859d,_0x30dde6){return join(_0x39859d,SQL_LOCAL_REL_DIR,_0x30dde6);}export async function confirmForceOverwrite(_0x510eec){const _0x47ce5b=a130_0x20b4,_0x404a42=createInterface({'input':process[_0x47ce5b(0x198)],'output':process[_0x47ce5b(0x170)]}),_0x3588c6=await new Promise(_0x5e449e=>{const _0xff510b=_0x47ce5b;_0x404a42[_0xff510b(0x17f)](_0x510eec+'\x20[y/N]\x20',_0x5e449e);});return _0x404a42['close'](),['y',_0x47ce5b(0x18d)]['includes'](_0x3588c6['trim']()[_0x47ce5b(0x18e)]());}export function findSqlLockScope(_0x5a8710,_0x1f47f8){const _0x4f898e=a130_0x20b4;return _0x5a8710[_0x4f898e(0x180)][_0x1f47f8];}function buildMetadataHeaderLines(_0x255c61,_0x3d5a51){const _0x5e003=a130_0x20b4,_0x2a84f1=[[_0x5e003(0x18f),_0x255c61[_0x5e003(0x18f)]],['sqlName',_0x255c61[_0x5e003(0x195)]],[_0x5e003(0x182),_0x255c61[_0x5e003(0x182)]],[_0x5e003(0x185),_0x255c61[_0x5e003(0x185)]],[_0x5e003(0x186),_0x255c61[_0x5e003(0x186)]],[_0x5e003(0x179),_0x255c61['syncedAt']],['description',_0x255c61['description']]];if(_0x3d5a51===_0x5e003(0x197))return _0x2a84f1[_0x5e003(0x18c)](([,_0x5b4916])=>_0x5b4916!==undefined&&_0x5b4916!==null&&String(_0x5b4916)[_0x5e003(0x183)]()!=='')[_0x5e003(0x194)](([_0x4e990a,_0x49b5d3])=>_0x5e003(0x176)+_0x4e990a+':\x20'+String(_0x49b5d3)+_0x5e003(0x189));return _0x2a84f1[_0x5e003(0x18c)](([,_0x2ab4f3])=>_0x2ab4f3!==undefined&&_0x2ab4f3!==null&&String(_0x2ab4f3)[_0x5e003(0x183)]()!=='')[_0x5e003(0x194)](([_0x5e13b2,_0x2544a6])=>'--\x20@lovrabet.'+_0x5e13b2+':\x20'+String(_0x2544a6));}
1
+ (function(_0x3cbf2a,_0x582904){const _0x2f9d6b=a130_0x2488,_0x9b2bda=_0x3cbf2a();while(!![]){try{const _0x3b75fa=parseInt(_0x2f9d6b(0x1c9))/0x1+parseInt(_0x2f9d6b(0x1bc))/0x2+parseInt(_0x2f9d6b(0x1c7))/0x3+parseInt(_0x2f9d6b(0x1d0))/0x4+-parseInt(_0x2f9d6b(0x1c6))/0x5*(parseInt(_0x2f9d6b(0x1e2))/0x6)+-parseInt(_0x2f9d6b(0x1dc))/0x7+-parseInt(_0x2f9d6b(0x1e7))/0x8*(parseInt(_0x2f9d6b(0x1c3))/0x9);if(_0x3b75fa===_0x582904)break;else _0x9b2bda['push'](_0x9b2bda['shift']());}catch(_0x4cdbf3){_0x9b2bda['push'](_0x9b2bda['shift']());}}}(a130_0x345c,0xdd095));import{createInterface}from'node:readline';import{join}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath,detectSqlMode}from'../../core/sql-sync/utils.js';export const SQL_LOCAL_REL_DIR='.rabetbase/sql';export function buildSqlLockEntry(_0x5e581b,_0x2e0bd6,_0x389852,_0x3cab16){const _0x3ffadf=a130_0x2488,_0x4a5c96=detectSqlMode(_0x2e0bd6);return{'path':buildSqlRelativePath(_0x5e581b[_0x3ffadf(0x1e3)],_0x5e581b[_0x3ffadf(0x1d7)],_0x3cab16?.['dbName'],_0x4a5c96,_0x5e581b[_0x3ffadf(0x1c4)]),'hash':_0x389852,'remoteId':_0x5e581b['id'],'version':_0x5e581b[_0x3ffadf(0x1d3)],'dbId':Number(_0x5e581b[_0x3ffadf(0x1c4)]),'dbName':_0x3cab16?.['dbName'],'sqlName':_0x5e581b[_0x3ffadf(0x1d7)],'sqlConfig':_0x5e581b[_0x3ffadf(0x1e8)]??undefined,'mode':_0x4a5c96};}export function cloneSqlLockData(_0x31512b){const _0x1b5519=a130_0x2488;return{'apps':Object[_0x1b5519(0x1cb)](Object[_0x1b5519(0x1da)](_0x31512b['apps'])[_0x1b5519(0x1ce)](([_0x37d45e,_0x433ec9])=>[_0x37d45e,{'sqlRoot':_0x433ec9[_0x1b5519(0x1c0)],'lastSync':_0x433ec9[_0x1b5519(0x1c8)],'sqls':{..._0x433ec9[_0x1b5519(0x1cc)]}}]))};}export function ensureRemoteSqlContent(_0x1194e7){const _0x2ef8b5=a130_0x2488;return _0x1194e7[_0x2ef8b5(0x1ea)]??'';}export function buildLocalSqlFileContent(_0x5bb338,_0x3262f5,_0x12748f){const _0x4e4c31=a130_0x2488,_0x16cd99=_0x12748f?.[_0x4e4c31(0x1dd)]??detectSqlMode(_0x3262f5),_0x27e9b0=stripLocalSqlMetadata(_0x3262f5,_0x16cd99)[_0x4e4c31(0x1db)](),_0x26efcd=[...buildMetadataHeaderLines({'sqlCode':_0x5bb338[_0x4e4c31(0x1e3)],'sqlName':_0x5bb338[_0x4e4c31(0x1d7)],'dbId':_0x5bb338['dbId'],'dbName':_0x12748f?.[_0x4e4c31(0x1ca)],'mode':_0x16cd99,'syncedAt':_0x12748f?.[_0x4e4c31(0x1d8)],'description':_0x12748f?.[_0x4e4c31(0x1e0)]},_0x16cd99),'',_0x27e9b0],_0x365fac=_0x26efcd[_0x4e4c31(0x1bf)]('\x0a');return _0x365fac[_0x4e4c31(0x1e5)]('\x0a')?_0x365fac:_0x365fac+'\x0a';}export function stripLocalSqlMetadata(_0x136bf4,_0x8cc324){const _0x3dd603=a130_0x2488,_0x365c69=_0x136bf4[_0x3dd603(0x1c2)](/\r\n/g,'\x0a')[_0x3dd603(0x1d1)]('\x0a'),_0x4a7f76=[];let _0x4bf6e8=0x0;if(_0x8cc324===_0x3dd603(0x1e9))while(_0x4bf6e8<_0x365c69[_0x3dd603(0x1d2)]){const _0x255327=_0x365c69[_0x4bf6e8]??'';if(/^\s*<!--\s*@lovrabet\./[_0x3dd603(0x1d9)](_0x255327)){_0x4bf6e8++;continue;}if(_0x255327[_0x3dd603(0x1db)]()===''&&_0x4bf6e8>0x0){_0x4bf6e8++;continue;}break;}else while(_0x4bf6e8<_0x365c69['length']){const _0x567fd9=_0x365c69[_0x4bf6e8]??'';if(/^\s*--\s*@lovrabet\./[_0x3dd603(0x1d9)](_0x567fd9)){_0x4bf6e8++;continue;}if(_0x567fd9[_0x3dd603(0x1db)]()===''&&_0x4bf6e8>0x0){_0x4bf6e8++;continue;}break;}for(;_0x4bf6e8<_0x365c69['length'];_0x4bf6e8++){_0x4a7f76[_0x3dd603(0x1d6)](_0x365c69[_0x4bf6e8]);}return _0x4a7f76[_0x3dd603(0x1bf)]('\x0a')[_0x3dd603(0x1d4)]();}export function resolveSqlMode(_0x54bdf2,_0x58199a){const _0x34072c=a130_0x2488;if(_0x58199a?.[_0x34072c(0x1dd)])return _0x58199a[_0x34072c(0x1dd)];return detectSqlMode(_0x54bdf2);}export function resolveSqlFileName(_0xffa92e,_0x2c4783,_0x519d97){const _0x2612eb=a130_0x2488;if(_0x519d97?.[_0x2612eb(0x1be)])return _0x519d97[_0x2612eb(0x1be)];if(_0x519d97?.[_0x2612eb(0x1d7)]||_0x519d97?.[_0x2612eb(0x1ca)])return buildSqlRelativePath(_0xffa92e,_0x519d97?.[_0x2612eb(0x1d7)],_0x519d97?.['dbName'],resolveSqlMode(_0x2c4783,_0x519d97),_0x519d97?.[_0x2612eb(0x1c4)]);return buildDefaultSqlFileName(_0xffa92e,resolveSqlMode(_0x2c4783,_0x519d97));}function a130_0x345c(){const _0x578530=['yes','push','sqlName','syncedAt','test','entries','trim','10098991wBMRhm','mode','\x20-->','stderr','description','toLowerCase','6AcdiGc','sqlCode','<!--\x20@lovrabet.','endsWith','filter','7156808oGcKHr','sqlConfig','mybatisXml','sqlContent','2691578ZOciWm','stdin','path','join','sqlRoot','apps','replace','18YxClTn','dbId','close','475315mQNdIN','2489796FAtSMH','lastSync','1341223YCyPbH','dbName','fromEntries','sqls','\x20[y/N]\x20','map','includes','2861596xLEqHi','split','length','version','trimStart'];a130_0x345c=function(){return _0x578530;};return a130_0x345c();}export function resolveSqlLocalDir(_0x192345,_0x5d8fba){return join(_0x192345,SQL_LOCAL_REL_DIR,_0x5d8fba);}export async function confirmForceOverwrite(_0x1d62e5){const _0x1c281c=a130_0x2488,_0x2bd498=createInterface({'input':process[_0x1c281c(0x1bd)],'output':process[_0x1c281c(0x1df)]}),_0x1f4cad=await new Promise(_0x2f3cdb=>{const _0x5c2cd1=_0x1c281c;_0x2bd498['question'](_0x1d62e5+_0x5c2cd1(0x1cd),_0x2f3cdb);});return _0x2bd498[_0x1c281c(0x1c5)](),['y',_0x1c281c(0x1d5)][_0x1c281c(0x1cf)](_0x1f4cad[_0x1c281c(0x1db)]()[_0x1c281c(0x1e1)]());}function a130_0x2488(_0x510550,_0x9e65b){_0x510550=_0x510550-0x1bc;const _0x345c28=a130_0x345c();let _0x2488fe=_0x345c28[_0x510550];return _0x2488fe;}export function findSqlLockScope(_0x4d4b23,_0x3d5415){const _0x3c0b3a=a130_0x2488;return _0x4d4b23[_0x3c0b3a(0x1c1)][_0x3d5415];}function buildMetadataHeaderLines(_0x273e2f,_0x177620){const _0x226082=a130_0x2488,_0xb72681=[[_0x226082(0x1e3),_0x273e2f['sqlCode']],[_0x226082(0x1d7),_0x273e2f['sqlName']],[_0x226082(0x1c4),_0x273e2f[_0x226082(0x1c4)]],[_0x226082(0x1ca),_0x273e2f[_0x226082(0x1ca)]],[_0x226082(0x1dd),_0x273e2f[_0x226082(0x1dd)]],[_0x226082(0x1d8),_0x273e2f[_0x226082(0x1d8)]],['description',_0x273e2f[_0x226082(0x1e0)]]];if(_0x177620===_0x226082(0x1e9))return _0xb72681['filter'](([,_0x54c010])=>_0x54c010!==undefined&&_0x54c010!==null&&String(_0x54c010)[_0x226082(0x1db)]()!=='')['map'](([_0x550690,_0x4a9107])=>_0x226082(0x1e4)+_0x550690+':\x20'+String(_0x4a9107)+_0x226082(0x1de));return _0xb72681[_0x226082(0x1e6)](([,_0xe13f60])=>_0xe13f60!==undefined&&_0xe13f60!==null&&String(_0xe13f60)[_0x226082(0x1db)]()!=='')[_0x226082(0x1ce)](([_0x394447,_0x472a6d])=>'--\x20@lovrabet.'+_0x394447+':\x20'+String(_0x472a6d));}
@@ -1 +1 @@
1
- const a131_0x276042=a131_0x22ba;(function(_0x1cb49c,_0x45b20b){const _0x47cff1=a131_0x22ba,_0x17a9af=_0x1cb49c();while(!![]){try{const _0x2cf41b=-parseInt(_0x47cff1(0x8d))/0x1+parseInt(_0x47cff1(0x7c))/0x2+parseInt(_0x47cff1(0x98))/0x3*(parseInt(_0x47cff1(0x7e))/0x4)+parseInt(_0x47cff1(0x85))/0x5*(parseInt(_0x47cff1(0x8a))/0x6)+parseInt(_0x47cff1(0x90))/0x7*(parseInt(_0x47cff1(0x80))/0x8)+parseInt(_0x47cff1(0x9b))/0x9+-parseInt(_0x47cff1(0x86))/0xa;if(_0x2cf41b===_0x45b20b)break;else _0x17a9af['push'](_0x17a9af['shift']());}catch(_0xd3fb54){_0x17a9af['push'](_0x17a9af['shift']());}}}(a131_0x3f00,0xf33a3));import{listSqlQueries}from'../../core/api-client.js';import{loadSqlProjectConfig}from'../../core/sql-sync/config.js';import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';function a131_0x22ba(_0x482fa1,_0x1fd71b){_0x482fa1=_0x482fa1-0x78;const _0x3f00be=a131_0x3f00();let _0x22ba40=_0x3f00be[_0x482fa1];return _0x22ba40;}import{computeSqlFileHash}from'../../core/sql-sync/hash.js';import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile}from'../../core/sql-sync/lock.js';const PAGE_SIZE=0x64;async function fetchAllSqlCodes(_0x4752be){const _0x53373e=a131_0x22ba,_0xf4142b=[];let _0x1dbf56=0x1;while(!![]){const _0x11b449=await listSqlQueries(_0x4752be,{'currentPage':_0x1dbf56,'pageSize':PAGE_SIZE}),_0x387128=_0x11b449['tableData']??[];_0xf4142b[_0x53373e(0x88)](..._0x387128['map'](_0x5ac67f=>_0x5ac67f[_0x53373e(0x8c)]));if(_0x387128['length']===0x0)break;const _0x31de92=_0x11b449['paging']?.[_0x53373e(0x95)];if(_0x31de92!=null?_0xf4142b[_0x53373e(0x79)]>=_0x31de92:_0x387128[_0x53373e(0x79)]<PAGE_SIZE)break;_0x1dbf56++;}return _0xf4142b;}export const sqlStatus={'service':a131_0x276042(0x81),'command':a131_0x276042(0x8e),'description':a131_0x276042(0x87),'risk':a131_0x276042(0x82),'flags':[{'name':'remote','type':a131_0x276042(0x99),'description':a131_0x276042(0x91)}],async 'execute'(_0x2fb523){const _0x199487=a131_0x276042,_0x5c65ad=loadSqlProjectConfig(_0x2fb523[_0x199487(0x7b)]),_0x5a42b2=await readSqlLockFile(_0x5c65ad[_0x199487(0x97)]),{appLock:_0x1a1106}=ensureSqlLockScope(_0x5a42b2??createEmptySqlLock(),_0x5c65ad[_0x199487(0x7b)],_0x5c65ad[_0x199487(0x89)],'status'),_0x524123=await scanLocalSqlQueries(_0x5c65ad),_0x5bda4e=[],_0x3a3dab=[],_0x26ae2d=[],_0xf03787=[],_0x327c5d=new Set(_0x524123[_0x199487(0x94)](_0x5e1063=>_0x5e1063['lockKey']));for(const _0x411479 of _0x524123){const _0x3f8172=await computeSqlFileHash(_0x411479[_0x199487(0x83)]),_0x4a1c27=_0x1a1106['sqls'][_0x411479['lockKey']],_0x171599=!!_0x4a1c27&&_0x4a1c27['path']!==_0x411479[_0x199487(0x7f)],_0x59d206=!!_0x4a1c27&&!!_0x411479[_0x199487(0x7d)]&&_0x4a1c27['sqlName']!==_0x411479[_0x199487(0x7d)];if(!_0x4a1c27)_0x5bda4e['push'](_0x411479['lockKey']);else _0x4a1c27[_0x199487(0x78)]!==_0x3f8172||_0x171599||_0x59d206?_0x3a3dab[_0x199487(0x88)](_0x411479[_0x199487(0x93)]):_0x26ae2d[_0x199487(0x88)](_0x411479[_0x199487(0x93)]);}for(const _0x2702c4 of Object[_0x199487(0x92)](_0x1a1106[_0x199487(0x84)])){!_0x327c5d[_0x199487(0x8f)](_0x2702c4)&&_0xf03787[_0x199487(0x88)](_0x2702c4);}const _0x5bda83=[];if(_0x2fb523['bool'](_0x199487(0x9a))){const _0x3da46e=await fetchAllSqlCodes(_0x2fb523['appCode']);for(const _0x69984a of _0x3da46e){!_0x327c5d[_0x199487(0x8f)](_0x69984a)&&!_0x1a1106[_0x199487(0x84)][_0x69984a]&&_0x5bda83['push'](_0x69984a);}}const _0x4aef0d=_0x5bda4e[_0x199487(0x79)]===0x0&&_0x3a3dab[_0x199487(0x79)]===0x0&&_0xf03787[_0x199487(0x79)]===0x0&&_0x5bda83['length']===0x0;return{'ok':!![],'data':{'added':_0x5bda4e,'modified':_0x3a3dab,'missing':_0xf03787,'unchanged':_0x26ae2d,'remoteOnly':_0x5bda83},'message':_0x4aef0d?_0x199487(0x8b):_0x5bda4e[_0x199487(0x79)]+'\x20added,\x20'+_0x3a3dab[_0x199487(0x79)]+_0x199487(0x96)+_0xf03787[_0x199487(0x79)]+'\x20missing,\x20'+_0x26ae2d[_0x199487(0x79)]+'\x20unchanged'+(_0x5bda83['length']>0x0?',\x20'+_0x5bda83[_0x199487(0x79)]+_0x199487(0x7a):'')};}};function a131_0x3f00(){const _0x59954f=['keys','lockKey','map','totalCount','\x20modified,\x20','lockFilePath','3rPnSaS','boolean','remote','1559655RZtqhB','hash','length','\x20remote-only','appCode','1302880YoOuxr','sqlName','1237048shnnBC','relativePath','1736WXUqCd','sql','read','filePath','sqls','6322600QtxdHk','12644920IMXmKx','Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','push','sqlRoot','6bitiLZ','All\x20SQL\x20queries\x20are\x20in\x20sync.','sqlCode','1975322yWDHRZ','status','has','59276tpyfQU','Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally'];a131_0x3f00=function(){return _0x59954f;};return a131_0x3f00();}
1
+ const a131_0x536331=a131_0x3730;(function(_0x70e4a2,_0x2d29a7){const _0x328845=a131_0x3730,_0x520fa4=_0x70e4a2();while(!![]){try{const _0x154c31=parseInt(_0x328845(0x1f1))/0x1+parseInt(_0x328845(0x1ff))/0x2+parseInt(_0x328845(0x208))/0x3*(parseInt(_0x328845(0x20f))/0x4)+-parseInt(_0x328845(0x1fb))/0x5*(parseInt(_0x328845(0x1f7))/0x6)+parseInt(_0x328845(0x20e))/0x7*(-parseInt(_0x328845(0x20a))/0x8)+parseInt(_0x328845(0x1f9))/0x9+parseInt(_0x328845(0x20c))/0xa*(-parseInt(_0x328845(0x201))/0xb);if(_0x154c31===_0x2d29a7)break;else _0x520fa4['push'](_0x520fa4['shift']());}catch(_0x2a3d3a){_0x520fa4['push'](_0x520fa4['shift']());}}}(a131_0x222d,0x5d8e5));import{listSqlQueries}from'../../core/api-client.js';import{loadSqlProjectConfig}from'../../core/sql-sync/config.js';import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';import{computeSqlFileHash}from'../../core/sql-sync/hash.js';import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile}from'../../core/sql-sync/lock.js';const PAGE_SIZE=0x64;function a131_0x3730(_0x496ae9,_0x55fb67){_0x496ae9=_0x496ae9-0x1ec;const _0x222d57=a131_0x222d();let _0x37300d=_0x222d57[_0x496ae9];return _0x37300d;}async function fetchAllSqlCodes(_0x5f471d){const _0x368b62=a131_0x3730,_0x2c568c=[];let _0x316783=0x1;while(!![]){const _0x47f64f=await listSqlQueries(_0x5f471d,{'currentPage':_0x316783,'pageSize':PAGE_SIZE}),_0x30d061=_0x47f64f[_0x368b62(0x1fd)]??[];_0x2c568c[_0x368b62(0x206)](..._0x30d061[_0x368b62(0x1f5)](_0x3003c7=>_0x3003c7[_0x368b62(0x1f8)]));if(_0x30d061['length']===0x0)break;const _0x5abfe0=_0x47f64f[_0x368b62(0x1fe)]?.[_0x368b62(0x1ec)];if(_0x5abfe0!=null?_0x2c568c[_0x368b62(0x1ee)]>=_0x5abfe0:_0x30d061['length']<PAGE_SIZE)break;_0x316783++;}return _0x2c568c;}function a131_0x222d(){const _0x1c6dd2=['sql','\x20missing,\x20','312733LmJkNS','sqlName','status','bool','map','sqls','6risNat','sqlCode','2091951CILYeX','has','181625LclegN','keys','tableData','paging','859606gNisAk','\x20unchanged','518947gHjfyF','\x20modified,\x20','lockKey','Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally','path','push','appCode','5547vcxPam','read','16FCKOZc','lockFilePath','180qieWKF','\x20added,\x20','453880PPXQJt','916Mysmgv','totalCount','filePath','length'];a131_0x222d=function(){return _0x1c6dd2;};return a131_0x222d();}export const sqlStatus={'service':a131_0x536331(0x1ef),'command':a131_0x536331(0x1f3),'description':'Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','risk':a131_0x536331(0x209),'flags':[{'name':'remote','type':'boolean','description':a131_0x536331(0x204)}],async 'execute'(_0x1936f5){const _0x5645b2=a131_0x536331,_0x575e95=loadSqlProjectConfig(_0x1936f5[_0x5645b2(0x207)]),_0x3b54de=await readSqlLockFile(_0x575e95[_0x5645b2(0x20b)]),{appLock:_0x49e5a7}=ensureSqlLockScope(_0x3b54de??createEmptySqlLock(),_0x575e95[_0x5645b2(0x207)],_0x575e95['sqlRoot'],_0x5645b2(0x1f3)),_0x494d6a=await scanLocalSqlQueries(_0x575e95),_0x3df42f=[],_0x272750=[],_0x2456c9=[],_0x490b53=[],_0x2be1e1=new Set(_0x494d6a[_0x5645b2(0x1f5)](_0x1fd982=>_0x1fd982[_0x5645b2(0x203)]));for(const _0x2e87c3 of _0x494d6a){const _0x54bd56=await computeSqlFileHash(_0x2e87c3[_0x5645b2(0x1ed)]),_0x33cbdc=_0x49e5a7[_0x5645b2(0x1f6)][_0x2e87c3['lockKey']],_0x141b28=!!_0x33cbdc&&_0x33cbdc[_0x5645b2(0x205)]!==_0x2e87c3['relativePath'],_0x5c32e6=!!_0x33cbdc&&!!_0x2e87c3[_0x5645b2(0x1f2)]&&_0x33cbdc[_0x5645b2(0x1f2)]!==_0x2e87c3[_0x5645b2(0x1f2)];if(!_0x33cbdc)_0x3df42f[_0x5645b2(0x206)](_0x2e87c3[_0x5645b2(0x203)]);else _0x33cbdc['hash']!==_0x54bd56||_0x141b28||_0x5c32e6?_0x272750['push'](_0x2e87c3[_0x5645b2(0x203)]):_0x2456c9[_0x5645b2(0x206)](_0x2e87c3[_0x5645b2(0x203)]);}for(const _0x1fc2e9 of Object[_0x5645b2(0x1fc)](_0x49e5a7[_0x5645b2(0x1f6)])){!_0x2be1e1[_0x5645b2(0x1fa)](_0x1fc2e9)&&_0x490b53[_0x5645b2(0x206)](_0x1fc2e9);}const _0xbe845d=[];if(_0x1936f5[_0x5645b2(0x1f4)]('remote')){const _0x330d20=await fetchAllSqlCodes(_0x1936f5[_0x5645b2(0x207)]);for(const _0x4e5502 of _0x330d20){!_0x2be1e1[_0x5645b2(0x1fa)](_0x4e5502)&&!_0x49e5a7[_0x5645b2(0x1f6)][_0x4e5502]&&_0xbe845d[_0x5645b2(0x206)](_0x4e5502);}}const _0xa6ffb7=_0x3df42f[_0x5645b2(0x1ee)]===0x0&&_0x272750['length']===0x0&&_0x490b53[_0x5645b2(0x1ee)]===0x0&&_0xbe845d[_0x5645b2(0x1ee)]===0x0;return{'ok':!![],'data':{'added':_0x3df42f,'modified':_0x272750,'missing':_0x490b53,'unchanged':_0x2456c9,'remoteOnly':_0xbe845d},'message':_0xa6ffb7?'All\x20SQL\x20queries\x20are\x20in\x20sync.':_0x3df42f[_0x5645b2(0x1ee)]+_0x5645b2(0x20d)+_0x272750[_0x5645b2(0x1ee)]+_0x5645b2(0x202)+_0x490b53[_0x5645b2(0x1ee)]+_0x5645b2(0x1f0)+_0x2456c9['length']+_0x5645b2(0x200)+(_0xbe845d[_0x5645b2(0x1ee)]>0x0?',\x20'+_0xbe845d[_0x5645b2(0x1ee)]+'\x20remote-only':'')};}};
@@ -1 +1 @@
1
- const a132_0x40d3a8=a132_0x1325;(function(_0x5b2426,_0x2b9335){const _0x2a95f0=a132_0x1325,_0x57d874=_0x5b2426();while(!![]){try{const _0x44e3a1=parseInt(_0x2a95f0(0x18d))/0x1*(parseInt(_0x2a95f0(0x189))/0x2)+-parseInt(_0x2a95f0(0x194))/0x3+-parseInt(_0x2a95f0(0x1a6))/0x4+parseInt(_0x2a95f0(0x19e))/0x5+parseInt(_0x2a95f0(0x18c))/0x6*(parseInt(_0x2a95f0(0x1aa))/0x7)+-parseInt(_0x2a95f0(0x188))/0x8+parseInt(_0x2a95f0(0x19c))/0x9;if(_0x44e3a1===_0x2b9335)break;else _0x57d874['push'](_0x57d874['shift']());}catch(_0x325aab){_0x57d874['push'](_0x57d874['shift']());}}}(a132_0x1903,0x65639));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';function a132_0x1325(_0x57d4cf,_0x5b12fa){_0x57d4cf=_0x57d4cf-0x176;const _0x190392=a132_0x1903();let _0x13258f=_0x190392[_0x57d4cf];return _0x13258f;}import{validateSql}from'../../core/sql-validator.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a132_0x1903(){const _0x4d0395=['isDangerous','File\x20not\x20found:\x20','file','type','str','6642376ykfsWs','2kWfvfJ','sqlType','tables','4455834LIBZNz','166121HyIHTG','Table\x20\x22','split','parameters','filter','push','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','265446MEXudq','string','schemas','sql','validation','appCode','size','message','2193021lWVfNy','read','1712540BfCIEz','SQL\x20schema\x20validation','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','schema:','utf-8','map','Provide\x20--file\x20or\x20--sql','get','643476BmyEFO','schemaWarnings','from','valid','7HrCOSf','\x22\x20not\x20found\x20or\x20not\x20accessible','tableName','dbtableConfig','cwd','\x22\x20not\x20found\x20in\x20any\x20dataset','length','Dataset\x20\x22','fields','reason','flagMissing','toLowerCase','isArray','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','validate'];a132_0x1903=function(){return _0x4d0395;};return a132_0x1903();}import{CliErrors}from'../../errors.js';import{assertDatasetSupportsLocalDevelopment,filterDbBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a132_0x40d3a8(0x197),'command':a132_0x40d3a8(0x182),'description':a132_0x40d3a8(0x181),'risk':a132_0x40d3a8(0x19d),'flags':[{'name':a132_0x40d3a8(0x185),'type':a132_0x40d3a8(0x195),'description':a132_0x40d3a8(0x1a0)},{'name':'sql','type':'string','description':a132_0x40d3a8(0x193)},{'name':a132_0x40d3a8(0x196),'type':a132_0x40d3a8(0x195),'description':'Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against'}],async 'execute'(_0x2119e8){const _0x46782e=a132_0x40d3a8,_0x4a02c7=_0x2119e8['str'](_0x46782e(0x185)),_0x1f55a9=_0x2119e8[_0x46782e(0x187)](_0x46782e(0x197));if(!_0x4a02c7&&!_0x1f55a9)throw CliErrors[_0x46782e(0x17e)](_0x46782e(0x185),_0x46782e(0x1a4));let _0x275814;if(_0x4a02c7){const _0x3f3cbd=resolve(process[_0x46782e(0x178)](),_0x4a02c7);if(!existsSync(_0x3f3cbd))throw CliErrors[_0x46782e(0x198)](_0x46782e(0x184)+_0x3f3cbd);_0x275814=readFileSync(_0x3f3cbd,_0x46782e(0x1a2));}else _0x275814=_0x1f55a9;const _0x2bde72=validateSql(_0x275814),_0x548e4e={'valid':_0x2bde72[_0x46782e(0x1a9)],'sqlType':_0x2bde72['sqlType'][_0x46782e(0x186)],'isSelectOnly':_0x2bde72[_0x46782e(0x18a)]['isSelectOnly'],'isDangerous':_0x2bde72[_0x46782e(0x18a)][_0x46782e(0x183)],'tables':_0x2bde72[_0x46782e(0x18b)],'parameters':_0x2bde72[_0x46782e(0x190)],'message':_0x2bde72[_0x46782e(0x19b)]};_0x2bde72[_0x46782e(0x18a)]['reason']&&(_0x548e4e['reason']=_0x2bde72[_0x46782e(0x18a)][_0x46782e(0x17d)]);const _0x4d501d=_0x2119e8[_0x46782e(0x187)](_0x46782e(0x196));if(_0x4d501d&&_0x2bde72['valid']){const _0x42327c=_0x4d501d[_0x46782e(0x18f)](',')[_0x46782e(0x1a3)](_0x11eac4=>_0x11eac4['trim']())[_0x46782e(0x191)](Boolean),_0x2015ee=[],_0x363f0a=filterDbBackedDatasets(await listDatasets(_0x2119e8[_0x46782e(0x199)])),_0x41d4c5=new Map(_0x363f0a[_0x46782e(0x1a3)](_0x105fb2=>[_0x105fb2[_0x46782e(0x177)]?.[_0x46782e(0x176)]?.[_0x46782e(0x17f)](),_0x105fb2]));for(const _0x3bde27 of _0x2bde72[_0x46782e(0x18b)]){const _0x29e78a=_0x41d4c5[_0x46782e(0x1a5)](_0x3bde27['toLowerCase']());!_0x29e78a&&_0x2015ee[_0x46782e(0x192)](_0x46782e(0x18e)+_0x3bde27+_0x46782e(0x179));}for(const _0x5ad07a of _0x42327c){let _0x3dab81;try{_0x3dab81=await getDatasetDetail(_0x5ad07a);}catch{_0x2015ee[_0x46782e(0x192)](_0x46782e(0x17b)+_0x5ad07a+_0x46782e(0x1ab));continue;}assertDatasetSupportsLocalDevelopment(_0x3dab81,_0x46782e(0x19f));const _0x3e524c=Array[_0x46782e(0x180)](_0x3dab81['fields'])?_0x3dab81[_0x46782e(0x17c)]:[],_0xf63a76=new Set(_0x3e524c[_0x46782e(0x1a3)](_0x37968a=>_0x37968a['name']?.[_0x46782e(0x17f)]())),_0x291718=_0x3dab81['dbtableConfig']?.[_0x46782e(0x176)]||_0x3dab81['tableName']||_0x5ad07a;_0x548e4e[_0x46782e(0x1a1)+_0x291718]={'code':_0x5ad07a,'tableName':_0x291718,'fieldCount':_0xf63a76[_0x46782e(0x19a)],'fields':Array[_0x46782e(0x1a8)](_0xf63a76)};}_0x2015ee[_0x46782e(0x17a)]>0x0&&(_0x548e4e[_0x46782e(0x1a7)]=_0x2015ee);}return{'ok':_0x2bde72[_0x46782e(0x1a9)],'data':_0x548e4e,'message':_0x2bde72[_0x46782e(0x19b)]};}};
1
+ const a132_0x22ff02=a132_0x4385;function a132_0x4385(_0x277dbc,_0x5203f0){_0x277dbc=_0x277dbc-0x1cf;const _0x32e4fd=a132_0x32e4();let _0x43856f=_0x32e4fd[_0x277dbc];return _0x43856f;}(function(_0x1ae741,_0x321f5b){const _0x50147e=a132_0x4385,_0x132db1=_0x1ae741();while(!![]){try{const _0x5676d2=-parseInt(_0x50147e(0x1dc))/0x1*(-parseInt(_0x50147e(0x203))/0x2)+-parseInt(_0x50147e(0x1f5))/0x3*(parseInt(_0x50147e(0x1ea))/0x4)+-parseInt(_0x50147e(0x1db))/0x5*(-parseInt(_0x50147e(0x1fb))/0x6)+parseInt(_0x50147e(0x1e0))/0x7*(parseInt(_0x50147e(0x1d0))/0x8)+parseInt(_0x50147e(0x204))/0x9*(parseInt(_0x50147e(0x1e7))/0xa)+-parseInt(_0x50147e(0x1fe))/0xb+parseInt(_0x50147e(0x1e6))/0xc*(parseInt(_0x50147e(0x206))/0xd);if(_0x5676d2===_0x321f5b)break;else _0x132db1['push'](_0x132db1['shift']());}catch(_0x5a9bef){_0x132db1['push'](_0x132db1['shift']());}}}(a132_0x32e4,0x19a01));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';function a132_0x32e4(){const _0x47c9c6=['55ucXKHw','153721NnWteB','read','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','file','7gtmDzC','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','Dataset\x20\x22','split','reason','from','84AlssxE','30SHmwRL','fields','string','330224qRoBDv','str','flagMissing','size','schemas','tables','\x22\x20not\x20found\x20or\x20not\x20accessible','filter','isDangerous','map','tableName','6akUDmm','parameters','Provide\x20--file\x20or\x20--sql','get','appCode','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','58650BDEucj','validation','name','2288979CIXByV','utf-8','sql','isArray','trim','2QeyGMj','390573TvlfBB','toLowerCase','30121KudKnL','cwd','sqlType','564048eDTRAE','valid','length','dbtableConfig','validate','message','schema:','Table\x20\x22','isSelectOnly','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','File\x20not\x20found:\x20'];a132_0x32e4=function(){return _0x47c9c6;};return a132_0x32e4();}import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertDatasetSupportsLocalDevelopment,filterDbBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a132_0x22ff02(0x200),'command':a132_0x22ff02(0x1d4),'description':a132_0x22ff02(0x1fa),'risk':a132_0x22ff02(0x1dd),'flags':[{'name':a132_0x22ff02(0x1df),'type':'string','description':a132_0x22ff02(0x1e1)},{'name':a132_0x22ff02(0x200),'type':a132_0x22ff02(0x1e9),'description':a132_0x22ff02(0x1d9)},{'name':'schemas','type':a132_0x22ff02(0x1e9),'description':a132_0x22ff02(0x1de)}],async 'execute'(_0x397f21){const _0x35c7ea=a132_0x22ff02,_0x59ec48=_0x397f21['str']('file'),_0x12d340=_0x397f21[_0x35c7ea(0x1eb)](_0x35c7ea(0x200));if(!_0x59ec48&&!_0x12d340)throw CliErrors[_0x35c7ea(0x1ec)](_0x35c7ea(0x1df),_0x35c7ea(0x1f7));let _0x15dfb7;if(_0x59ec48){const _0x355054=resolve(process[_0x35c7ea(0x207)](),_0x59ec48);if(!existsSync(_0x355054))throw CliErrors[_0x35c7ea(0x1fc)](_0x35c7ea(0x1da)+_0x355054);_0x15dfb7=readFileSync(_0x355054,_0x35c7ea(0x1ff));}else _0x15dfb7=_0x12d340;const _0x28106e=validateSql(_0x15dfb7),_0x4ab0ea={'valid':_0x28106e[_0x35c7ea(0x1d1)],'sqlType':_0x28106e[_0x35c7ea(0x1cf)]['type'],'isSelectOnly':_0x28106e['sqlType'][_0x35c7ea(0x1d8)],'isDangerous':_0x28106e[_0x35c7ea(0x1cf)][_0x35c7ea(0x1f2)],'tables':_0x28106e['tables'],'parameters':_0x28106e[_0x35c7ea(0x1f6)],'message':_0x28106e[_0x35c7ea(0x1d5)]};_0x28106e[_0x35c7ea(0x1cf)]['reason']&&(_0x4ab0ea[_0x35c7ea(0x1e4)]=_0x28106e['sqlType'][_0x35c7ea(0x1e4)]);const _0x558e26=_0x397f21[_0x35c7ea(0x1eb)](_0x35c7ea(0x1ee));if(_0x558e26&&_0x28106e[_0x35c7ea(0x1d1)]){const _0x33cc84=_0x558e26[_0x35c7ea(0x1e3)](',')[_0x35c7ea(0x1f3)](_0x42d46e=>_0x42d46e[_0x35c7ea(0x202)]())[_0x35c7ea(0x1f1)](Boolean),_0x21f235=[],_0x5c6991=filterDbBackedDatasets(await listDatasets(_0x397f21[_0x35c7ea(0x1f9)])),_0x7a4216=new Map(_0x5c6991[_0x35c7ea(0x1f3)](_0x14c96e=>[_0x14c96e[_0x35c7ea(0x1d3)]?.[_0x35c7ea(0x1f4)]?.[_0x35c7ea(0x205)](),_0x14c96e]));for(const _0x1c56fe of _0x28106e[_0x35c7ea(0x1ef)]){const _0x16ba79=_0x7a4216[_0x35c7ea(0x1f8)](_0x1c56fe['toLowerCase']());!_0x16ba79&&_0x21f235['push'](_0x35c7ea(0x1d7)+_0x1c56fe+'\x22\x20not\x20found\x20in\x20any\x20dataset');}for(const _0x3ea00c of _0x33cc84){let _0xbaab4b;try{_0xbaab4b=await getDatasetDetail(_0x3ea00c);}catch{_0x21f235['push'](_0x35c7ea(0x1e2)+_0x3ea00c+_0x35c7ea(0x1f0));continue;}assertDatasetSupportsLocalDevelopment(_0xbaab4b,'SQL\x20schema\x20validation');const _0x4ba8ef=Array[_0x35c7ea(0x201)](_0xbaab4b[_0x35c7ea(0x1e8)])?_0xbaab4b[_0x35c7ea(0x1e8)]:[],_0x3015b9=new Set(_0x4ba8ef[_0x35c7ea(0x1f3)](_0x3879a9=>_0x3879a9[_0x35c7ea(0x1fd)]?.[_0x35c7ea(0x205)]())),_0x4529a2=_0xbaab4b[_0x35c7ea(0x1d3)]?.[_0x35c7ea(0x1f4)]||_0xbaab4b[_0x35c7ea(0x1f4)]||_0x3ea00c;_0x4ab0ea[_0x35c7ea(0x1d6)+_0x4529a2]={'code':_0x3ea00c,'tableName':_0x4529a2,'fieldCount':_0x3015b9[_0x35c7ea(0x1ed)],'fields':Array[_0x35c7ea(0x1e5)](_0x3015b9)};}_0x21f235[_0x35c7ea(0x1d2)]>0x0&&(_0x4ab0ea['schemaWarnings']=_0x21f235);}return{'ok':_0x28106e[_0x35c7ea(0x1d1)],'data':_0x4ab0ea,'message':_0x28106e[_0x35c7ea(0x1d5)]};}};
@@ -1 +1 @@
1
- const a133_0x2a0b10=a133_0x15a9;(function(_0x5caa30,_0x53828a){const _0x71322e=a133_0x15a9,_0x1e64aa=_0x5caa30();while(!![]){try{const _0x249350=parseInt(_0x71322e(0xe2))/0x1*(-parseInt(_0x71322e(0xd2))/0x2)+-parseInt(_0x71322e(0xd4))/0x3+-parseInt(_0x71322e(0xdf))/0x4*(-parseInt(_0x71322e(0xe0))/0x5)+parseInt(_0x71322e(0xc8))/0x6*(parseInt(_0x71322e(0xcd))/0x7)+-parseInt(_0x71322e(0xc6))/0x8+parseInt(_0x71322e(0xe7))/0x9+parseInt(_0x71322e(0xee))/0xa*(-parseInt(_0x71322e(0xce))/0xb);if(_0x249350===_0x53828a)break;else _0x1e64aa['push'](_0x1e64aa['shift']());}catch(_0xa18f9d){_0x1e64aa['push'](_0x1e64aa['shift']());}}}(a133_0x14a9,0xcf78c));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a133_0x15a9(_0x5bbfc4,_0x53b997){_0x5bbfc4=_0x5bbfc4-0xc6;const _0x14a951=a133_0x14a9();let _0x15a9f4=_0x14a951[_0x5bbfc4];return _0x15a9f4;}export const PROJECT_CREATE_INHERITABLE_KEYS=[a133_0x2a0b10(0xd5),a133_0x2a0b10(0xea),'locale',a133_0x2a0b10(0xc9),a133_0x2a0b10(0xd6)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a133_0x2a0b10(0xe3),a133_0x2a0b10(0xed),a133_0x2a0b10(0xd1),a133_0x2a0b10(0xc9),a133_0x2a0b10(0xd5),'accessKey',a133_0x2a0b10(0xda)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x5b9de4){const _0x455f01=a133_0x2a0b10;return[..._0x5b9de4][_0x455f01(0xe4)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0xec6721){const _0x47b124=a133_0x2a0b10;return TOP_LEVEL_CONFIG_KEYS[_0x47b124(0xe8)](_0xec6721);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x5eeaa4=a133_0x2a0b10;return _0x5eeaa4(0xdc)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a133_0x2a0b10(0xed),'apiDir':a133_0x2a0b10(0xda),'cookie':a133_0x2a0b10(0xd5),'accessKey':a133_0x2a0b10(0xea),'defaultFormat':a133_0x2a0b10(0xc9),'pageSize':a133_0x2a0b10(0xe9),'riskLevel':'riskLevel','locale':a133_0x2a0b10(0xd1)};export function getAppProfileFlagDefs(){const _0x461ba9=a133_0x2a0b10;return[{'name':'env','type':_0x461ba9(0xec),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':_0x461ba9(0xda),'type':_0x461ba9(0xec),'description':_0x461ba9(0xca)},{'name':_0x461ba9(0xd5),'type':_0x461ba9(0xec),'description':'Auth\x20cookie','hidden':!![]},{'name':'accessKey','type':_0x461ba9(0xec),'description':_0x461ba9(0xd0),'hidden':!![]},{'name':'defaultFormat','type':_0x461ba9(0xec),'description':_0x461ba9(0xd3),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':_0x461ba9(0xe1),'description':_0x461ba9(0xe6)},{'name':'riskLevel','type':'string','description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':_0x461ba9(0xd1),'type':_0x461ba9(0xec),'description':_0x461ba9(0xe5)}];}export function collectAppProfileOverrides(_0x455353){const _0x1ceae5=a133_0x2a0b10,_0x5af1e6={};for(const [_0x1c65d3,_0x54c2e2]of Object[_0x1ceae5(0xc7)](APP_PROFILE_FLAG_KEY_MAP)){const _0x36b234=_0x455353(_0x1c65d3);if(!_0x36b234)continue;_0x5af1e6[_0x54c2e2]=_0x54c2e2===_0x1ceae5(0xe9)?Number(_0x36b234):_0x36b234;}return _0x5af1e6;}export function buildAppProfileListFields(_0xda68){const _0x149b07=a133_0x2a0b10;return{'env':_0xda68[_0x149b07(0xed)]??null,'apiDir':_0xda68[_0x149b07(0xda)]??null,'hasCookie':!!_0xda68[_0x149b07(0xd5)],'hasAccessKey':!!_0xda68[_0x149b07(0xea)],'format':_0xda68[_0x149b07(0xc9)]??null,'pageSize':_0xda68['pageSize']??null,'riskLevel':_0xda68['riskLevel']??null,'locale':_0xda68[_0x149b07(0xd1)]??null};}export function buildAppDoctorFields(_0x57f2d4,_0x378d28){const _0x1490ac=a133_0x2a0b10;return{'env':{'value':_0x57f2d4[_0x1490ac(0xed)]||_0x378d28[_0x1490ac(0xed)],'source':_0x57f2d4['env']?'app':_0x1490ac(0xd7)},'apiDir':{'value':_0x57f2d4['apiDir']||_0x378d28[_0x1490ac(0xda)],'source':_0x57f2d4[_0x1490ac(0xda)]?_0x1490ac(0xdd):'inherit'},'cookie':{'value':_0x57f2d4[_0x1490ac(0xd5)]||_0x378d28[_0x1490ac(0xd5)],'source':_0x57f2d4[_0x1490ac(0xd5)]?_0x1490ac(0xdd):'inherit'},'accessKey':{'value':_0x57f2d4[_0x1490ac(0xea)]||_0x378d28[_0x1490ac(0xea)],'source':_0x57f2d4['accessKey']?_0x1490ac(0xdd):'inherit'}};}function a133_0x14a9(){const _0xc155fa=['10pizbqa','2361776xmAeJg','entries','6oVLHcb','format','API\x20directory\x20path','zh-CN','toLowerCase','9567047XKpBve','5651129PxjZBK','length','Access\x20key','locale','1191062oVCkrV','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','1657971MeqFqm','cookie','riskLevel','inherit','trim','en-US','apiDir','apps','Config\x20key\x20(','app','keys','1826824ibRJVL','10yDTvhs','number','2gKOEDv','appcode','join','Locale','Default\x20page\x20size','10101159zvtRQF','has','pageSize','accessKey','defaultApp','string','env'];a133_0x14a9=function(){return _0xc155fa;};return a133_0x14a9();}export function buildCanonicalAppConfig(_0x409745,_0x732860){const _0x5a9072=a133_0x2a0b10,_0x5a8405=_0x409745['map'](_0x5772a9=>String(_0x5772a9||'')[_0x5a9072(0xd8)]())['filter'](Boolean);if(_0x5a8405[_0x5a9072(0xcf)]===0x0)return{};const _0xd40ae0={};for(const _0x336667 of _0x5a8405){_0xd40ae0[_0x336667]=_0x732860?{'appcode':_0x336667,'env':_0x732860}:{'appcode':_0x336667};}return{'apps':_0xd40ae0,'defaultApp':_0x5a8405[0x0]};}export function buildCanonicalProjectConfig(_0x4ace55,_0x14b303){const _0x194845=a133_0x2a0b10,{appCodes:appCodes=[],env:_0x1bc3ca,metadata:_0x26204b}=_0x14b303,_0x13a547={..._0x4ace55,..._0x26204b||{}};delete _0x13a547['appcode'],delete _0x13a547['app'];if(_0x1bc3ca)_0x13a547['env']=_0x1bc3ca;else!_0x13a547[_0x194845(0xed)]&&(_0x13a547['env']=DEFAULT_CONFIG_VALUES[_0x194845(0xed)]);const _0x1b631f=buildCanonicalAppConfig(appCodes,_0x13a547[_0x194845(0xed)]);return Object[_0x194845(0xde)](_0x1b631f)['length']>0x0&&(_0x13a547[_0x194845(0xdb)]=_0x1b631f[_0x194845(0xdb)],_0x13a547[_0x194845(0xeb)]=_0x1b631f['defaultApp']),_0x13a547;}const LOCALE_MAP={'zh':a133_0x2a0b10(0xcb),'zh-cn':a133_0x2a0b10(0xcb),'zh_cn':a133_0x2a0b10(0xcb),'en':a133_0x2a0b10(0xd9),'en-us':'en-US','en_us':a133_0x2a0b10(0xd9)};export function normalizeLocale(_0x378743){const _0x49a068=a133_0x2a0b10;if(!_0x378743)return null;return LOCALE_MAP[_0x378743[_0x49a068(0xcc)]()]??null;}
1
+ const a133_0x29ad21=a133_0x638f;(function(_0x81b619,_0x31e6da){const _0x1ac140=a133_0x638f,_0x33b663=_0x81b619();while(!![]){try{const _0x21cc88=-parseInt(_0x1ac140(0x152))/0x1*(parseInt(_0x1ac140(0x170))/0x2)+-parseInt(_0x1ac140(0x15c))/0x3*(-parseInt(_0x1ac140(0x153))/0x4)+-parseInt(_0x1ac140(0x160))/0x5*(-parseInt(_0x1ac140(0x15a))/0x6)+-parseInt(_0x1ac140(0x162))/0x7+-parseInt(_0x1ac140(0x167))/0x8*(parseInt(_0x1ac140(0x155))/0x9)+parseInt(_0x1ac140(0x161))/0xa+parseInt(_0x1ac140(0x17a))/0xb;if(_0x21cc88===_0x31e6da)break;else _0x33b663['push'](_0x33b663['shift']());}catch(_0x3d6473){_0x33b663['push'](_0x33b663['shift']());}}}(a133_0xa096,0x62457));function a133_0x638f(_0x18a333,_0x3b8e6e){_0x18a333=_0x18a333-0x152;const _0xa0967b=a133_0xa096();let _0x638f9b=_0xa0967b[_0x18a333];return _0x638f9b;}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a133_0x29ad21(0x165),a133_0x29ad21(0x164),a133_0x29ad21(0x16f),'format',a133_0x29ad21(0x163)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a133_0x29ad21(0x178),a133_0x29ad21(0x171),a133_0x29ad21(0x16f),a133_0x29ad21(0x16d),a133_0x29ad21(0x165),a133_0x29ad21(0x164),a133_0x29ad21(0x158)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x593735){const _0x381d6b=a133_0x29ad21;return[..._0x593735][_0x381d6b(0x179)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}function a133_0xa096(){const _0x332be2=['4822594PKyfYY','riskLevel','accessKey','cookie','map','1075128pjJsXD','defaultFormat','Default\x20page\x20size','inherit','filter','Auth\x20cookie','format','app','locale','4jXZpLA','env','has','zh-CN','string','API\x20directory\x20path','trim','en-US','appcode','join','7249209mdpGms','250226wrGFQS','4qNXtIq','entries','27snYSpp','length','apps','apiDir','Locale','60018rEzphW','defaultApp','52719VROQMp','Target\x20environment','Config\x20key\x20(','pageSize','265oWBSqf','7883350XyrGjJ'];a133_0xa096=function(){return _0x332be2;};return a133_0xa096();}export function isTopLevelConfigKey(_0x375356){const _0x368539=a133_0x29ad21;return TOP_LEVEL_CONFIG_KEYS[_0x368539(0x172)](_0x375356);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x195e9f=a133_0x29ad21;return _0x195e9f(0x15e)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a133_0x29ad21(0x171),'apiDir':'apiDir','cookie':a133_0x29ad21(0x165),'accessKey':a133_0x29ad21(0x164),'defaultFormat':a133_0x29ad21(0x16d),'pageSize':'pageSize','riskLevel':a133_0x29ad21(0x163),'locale':a133_0x29ad21(0x16f)};export function getAppProfileFlagDefs(){const _0x45a2f7=a133_0x29ad21;return[{'name':_0x45a2f7(0x171),'type':_0x45a2f7(0x174),'description':_0x45a2f7(0x15d),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x45a2f7(0x158),'type':_0x45a2f7(0x174),'description':_0x45a2f7(0x175)},{'name':_0x45a2f7(0x165),'type':_0x45a2f7(0x174),'description':_0x45a2f7(0x16c),'hidden':!![]},{'name':_0x45a2f7(0x164),'type':_0x45a2f7(0x174),'description':'Access\x20key','hidden':!![]},{'name':_0x45a2f7(0x168),'type':_0x45a2f7(0x174),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':'number','description':_0x45a2f7(0x169)},{'name':_0x45a2f7(0x163),'type':_0x45a2f7(0x174),'description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':_0x45a2f7(0x16f),'type':_0x45a2f7(0x174),'description':_0x45a2f7(0x159)}];}export function collectAppProfileOverrides(_0x14d4c9){const _0x26894f=a133_0x29ad21,_0x29d681={};for(const [_0x3a0915,_0x5a9b27]of Object[_0x26894f(0x154)](APP_PROFILE_FLAG_KEY_MAP)){const _0x534800=_0x14d4c9(_0x3a0915);if(!_0x534800)continue;_0x29d681[_0x5a9b27]=_0x5a9b27===_0x26894f(0x15f)?Number(_0x534800):_0x534800;}return _0x29d681;}export function buildAppProfileListFields(_0x2471ba){const _0x580057=a133_0x29ad21;return{'env':_0x2471ba[_0x580057(0x171)]??null,'apiDir':_0x2471ba[_0x580057(0x158)]??null,'hasCookie':!!_0x2471ba[_0x580057(0x165)],'hasAccessKey':!!_0x2471ba[_0x580057(0x164)],'format':_0x2471ba[_0x580057(0x16d)]??null,'pageSize':_0x2471ba[_0x580057(0x15f)]??null,'riskLevel':_0x2471ba[_0x580057(0x163)]??null,'locale':_0x2471ba[_0x580057(0x16f)]??null};}export function buildAppDoctorFields(_0x1e377f,_0x5331f4){const _0x15b3f2=a133_0x29ad21;return{'env':{'value':_0x1e377f[_0x15b3f2(0x171)]||_0x5331f4[_0x15b3f2(0x171)],'source':_0x1e377f[_0x15b3f2(0x171)]?_0x15b3f2(0x16e):_0x15b3f2(0x16a)},'apiDir':{'value':_0x1e377f[_0x15b3f2(0x158)]||_0x5331f4[_0x15b3f2(0x158)],'source':_0x1e377f[_0x15b3f2(0x158)]?_0x15b3f2(0x16e):'inherit'},'cookie':{'value':_0x1e377f[_0x15b3f2(0x165)]||_0x5331f4['cookie'],'source':_0x1e377f[_0x15b3f2(0x165)]?_0x15b3f2(0x16e):_0x15b3f2(0x16a)},'accessKey':{'value':_0x1e377f[_0x15b3f2(0x164)]||_0x5331f4[_0x15b3f2(0x164)],'source':_0x1e377f[_0x15b3f2(0x164)]?_0x15b3f2(0x16e):_0x15b3f2(0x16a)}};}export function buildCanonicalAppConfig(_0x37abca,_0x18f4a7){const _0x4e8d19=a133_0x29ad21,_0x4f9001=_0x37abca[_0x4e8d19(0x166)](_0x100ee1=>String(_0x100ee1||'')[_0x4e8d19(0x176)]())[_0x4e8d19(0x16b)](Boolean);if(_0x4f9001[_0x4e8d19(0x156)]===0x0)return{};const _0x1a24a9={};for(const _0x2a10a2 of _0x4f9001){_0x1a24a9[_0x2a10a2]=_0x18f4a7?{'appcode':_0x2a10a2,'env':_0x18f4a7}:{'appcode':_0x2a10a2};}return{'apps':_0x1a24a9,'defaultApp':_0x4f9001[0x0]};}export function buildCanonicalProjectConfig(_0x370fc7,_0x21aa1e){const _0x56009b=a133_0x29ad21,{appCodes:appCodes=[],env:_0x1f2ff4,metadata:_0x3a5ae9}=_0x21aa1e,_0x173134={..._0x370fc7,..._0x3a5ae9||{}};delete _0x173134['appcode'],delete _0x173134[_0x56009b(0x16e)];if(_0x1f2ff4)_0x173134[_0x56009b(0x171)]=_0x1f2ff4;else!_0x173134[_0x56009b(0x171)]&&(_0x173134[_0x56009b(0x171)]=DEFAULT_CONFIG_VALUES[_0x56009b(0x171)]);const _0x86785c=buildCanonicalAppConfig(appCodes,_0x173134[_0x56009b(0x171)]);return Object['keys'](_0x86785c)[_0x56009b(0x156)]>0x0&&(_0x173134[_0x56009b(0x157)]=_0x86785c[_0x56009b(0x157)],_0x173134['defaultApp']=_0x86785c[_0x56009b(0x15b)]),_0x173134;}const LOCALE_MAP={'zh':a133_0x29ad21(0x173),'zh-cn':'zh-CN','zh_cn':a133_0x29ad21(0x173),'en':a133_0x29ad21(0x177),'en-us':a133_0x29ad21(0x177),'en_us':a133_0x29ad21(0x177)};export function normalizeLocale(_0x21f092){if(!_0x21f092)return null;return LOCALE_MAP[_0x21f092['toLowerCase']()]??null;}
@@ -1 +1 @@
1
- const a134_0x1829f8=a134_0x3885;(function(_0x44222e,_0x3b2124){const _0x46e9b2=a134_0x3885,_0x5b857d=_0x44222e();while(!![]){try{const _0x4bb685=parseInt(_0x46e9b2(0xa9))/0x1+-parseInt(_0x46e9b2(0xab))/0x2+-parseInt(_0x46e9b2(0xb0))/0x3+-parseInt(_0x46e9b2(0xad))/0x4*(-parseInt(_0x46e9b2(0xaf))/0x5)+parseInt(_0x46e9b2(0xaa))/0x6+-parseInt(_0x46e9b2(0xb1))/0x7+parseInt(_0x46e9b2(0xac))/0x8;if(_0x4bb685===_0x3b2124)break;else _0x5b857d['push'](_0x5b857d['shift']());}catch(_0x55cd2a){_0x5b857d['push'](_0x5b857d['shift']());}}}(a134_0xed33,0xe99e2));function a134_0x3885(_0x5a1aed,_0x10232c){_0x5a1aed=_0x5a1aed-0xa9;const _0xed33e3=a134_0xed33();let _0x3885c9=_0xed33e3[_0x5a1aed];return _0x3885c9;}export const CLI_VERSION_POLICY_URL=a134_0x1829f8(0xae);function a134_0xed33(){const _0x105876=['3268929oxvnnn','4889360lBgKUj','175141WiThqh','6706998oJDRfo','2076314BQQLlA','18053624QsbGCw','4XDxHVL','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','1167505xJbqxi'];a134_0xed33=function(){return _0x105876;};return a134_0xed33();}
1
+ function a134_0x3e43(_0x2b91d9,_0x183ea9){_0x2b91d9=_0x2b91d9-0x179;const _0x127f05=a134_0x127f();let _0x3e43bd=_0x127f05[_0x2b91d9];return _0x3e43bd;}const a134_0x15e043=a134_0x3e43;(function(_0x4311dd,_0x2c4e59){const _0x49a2ef=a134_0x3e43,_0x39597e=_0x4311dd();while(!![]){try{const _0x4d4af5=parseInt(_0x49a2ef(0x181))/0x1+parseInt(_0x49a2ef(0x182))/0x2*(-parseInt(_0x49a2ef(0x183))/0x3)+parseInt(_0x49a2ef(0x17b))/0x4*(parseInt(_0x49a2ef(0x17d))/0x5)+parseInt(_0x49a2ef(0x17e))/0x6+parseInt(_0x49a2ef(0x17c))/0x7*(parseInt(_0x49a2ef(0x17a))/0x8)+parseInt(_0x49a2ef(0x180))/0x9+-parseInt(_0x49a2ef(0x184))/0xa*(parseInt(_0x49a2ef(0x179))/0xb);if(_0x4d4af5===_0x2c4e59)break;else _0x39597e['push'](_0x39597e['shift']());}catch(_0x496634){_0x39597e['push'](_0x39597e['shift']());}}}(a134_0x127f,0xd0d99));function a134_0x127f(){const _0x3215ba=['8111832emxitX','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','7674894tcSHXQ','800431UcQfRL','1454iJKcTE','7023wGAAib','4610eeKRde','53031kpJVtu','280RYxswC','396nHMeMN','248073fEQymx','26985NMunjY'];a134_0x127f=function(){return _0x3215ba;};return a134_0x127f();}export const CLI_VERSION_POLICY_URL=a134_0x15e043(0x17f);
@@ -1 +1 @@
1
- function a135_0x4f0f(_0x4d9aeb,_0x62b3bc){_0x4d9aeb=_0x4d9aeb-0x1dd;const _0x45bb02=a135_0x45bb();let _0x4f0f35=_0x45bb02[_0x4d9aeb];return _0x4f0f35;}const a135_0x5fdfea=a135_0x4f0f;(function(_0x3806d4,_0x71ea59){const _0x49f17c=a135_0x4f0f,_0x2c9c12=_0x3806d4();while(!![]){try{const _0x4d4bab=-parseInt(_0x49f17c(0x234))/0x1+parseInt(_0x49f17c(0x1f4))/0x2*(-parseInt(_0x49f17c(0x211))/0x3)+-parseInt(_0x49f17c(0x1fb))/0x4+-parseInt(_0x49f17c(0x208))/0x5+parseInt(_0x49f17c(0x1de))/0x6*(parseInt(_0x49f17c(0x215))/0x7)+-parseInt(_0x49f17c(0x209))/0x8*(-parseInt(_0x49f17c(0x217))/0x9)+parseInt(_0x49f17c(0x200))/0xa*(parseInt(_0x49f17c(0x1f7))/0xb);if(_0x4d4bab===_0x71ea59)break;else _0x2c9c12['push'](_0x2c9c12['shift']());}catch(_0x26c153){_0x2c9c12['push'](_0x2c9c12['shift']());}}}(a135_0x45bb,0x6e74b));export const CLI_BIN_NAME=a135_0x5fdfea(0x238);export const CLI_DISPLAY_NAME=a135_0x5fdfea(0x1e3);function a135_0x45bb(){const _0x5a64a1=['schemas','sqlcode','212PNJORN','Alias\x20for\x20--non-interactive','sql-name','33FvmgxZ','Preview\x20operation\x20without\x20executing','production\x20|\x20daily','Watch\x20mode','1125256NBapQL','operation-type','appcode','Function\x20node','Enable\x20BFF\x20save','6097870YiVxwm','operation','SQL\x20string','function-node','project','non-interactive','watch','global','2794005ldANqG','477464QqeUQg','yes','map','key','params','expected-count','JSON\x20params','clear','12108RPzvXa','Description','pagesize','sqlname','270627WsMbDY','remote','108ZCgNNK','expectedCount','output','code','Name','<name>','DB\x20ID','name','dry-run','enable-bff-save','string','Schemas','verbose','Skip\x20import\x20generation','Title','Skip\x20confirmation\x20for\x20high-risk\x20writes','Use\x20global\x20config\x20scope','File\x20path','SQL\x20name','force','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Use\x20project\x20config\x20scope','help','descriptionFile','app','sql','Override\x20appcode','format','<expr>','902521QakpAx','Force\x20overwrite','Config\x20value','dbid','rabetbase','@lovrabet/rabetbase-cli','Dataset\x20code','Keyword\x20filter','datasetcode','nonInteractive','target','Page\x20number','Show\x20help','Use\x20remote','Output\x20path','type','12bcsahA','keyword','Record\x20ID','Config\x20key','boolean','Rabetbase\x20CLI','sqlName','Environment','confirm','env','all','Description\x20file','Confirm\x20destructive\x20action','file','title','description','SQL\x20code','fromEntries','Force\x20non-interactive\x20mode\x20(CI)','Select\x20app\x20profile\x20by\x20name'];a135_0x45bb=function(){return _0x5a64a1;};return a135_0x45bb();}export const NPM_PACKAGE_NAME=a135_0x5fdfea(0x239);export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':'appcode','type':'string','description':a135_0x5fdfea(0x231),'hint':'<code>'},{'name':a135_0x5fdfea(0x22f),'meowKey':a135_0x5fdfea(0x22f),'type':a135_0x5fdfea(0x221),'description':a135_0x5fdfea(0x1f1),'hint':a135_0x5fdfea(0x21c)},{'name':'env','meowKey':'env','type':a135_0x5fdfea(0x221),'description':a135_0x5fdfea(0x1e5),'hint':a135_0x5fdfea(0x1f9)},{'name':a135_0x5fdfea(0x232),'meowKey':a135_0x5fdfea(0x232),'type':a135_0x5fdfea(0x221),'description':'Output\x20format','hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a135_0x5fdfea(0x221),'description':a135_0x5fdfea(0x22b),'hint':a135_0x5fdfea(0x233)},{'name':a135_0x5fdfea(0x21f),'meowKey':'dryRun','type':a135_0x5fdfea(0x1e2),'description':a135_0x5fdfea(0x1f8)},{'name':a135_0x5fdfea(0x20a),'meowKey':a135_0x5fdfea(0x20a),'type':a135_0x5fdfea(0x1e2),'description':a135_0x5fdfea(0x226)},{'name':a135_0x5fdfea(0x205),'meowKey':a135_0x5fdfea(0x23d),'type':a135_0x5fdfea(0x1e2),'description':a135_0x5fdfea(0x1f0)},{'name':a135_0x5fdfea(0x207),'meowKey':a135_0x5fdfea(0x207),'type':a135_0x5fdfea(0x1e2),'description':a135_0x5fdfea(0x227)},{'name':a135_0x5fdfea(0x204),'meowKey':a135_0x5fdfea(0x204),'type':a135_0x5fdfea(0x1e2),'description':a135_0x5fdfea(0x22c)},{'name':'ci','meowKey':'ci','type':a135_0x5fdfea(0x1e2),'description':a135_0x5fdfea(0x1f5),'hidden':!![]},{'name':a135_0x5fdfea(0x22d),'meowKey':a135_0x5fdfea(0x22d),'type':a135_0x5fdfea(0x1e2),'description':a135_0x5fdfea(0x240)},{'name':a135_0x5fdfea(0x21e),'meowKey':a135_0x5fdfea(0x21e),'type':'string','description':a135_0x5fdfea(0x21b),'hidden':!![]},{'name':a135_0x5fdfea(0x1ec),'meowKey':'title','type':a135_0x5fdfea(0x221),'description':a135_0x5fdfea(0x225),'hidden':!![]},{'name':a135_0x5fdfea(0x210),'meowKey':'clear','type':a135_0x5fdfea(0x1e2),'description':'Clear','hidden':!![]},{'name':a135_0x5fdfea(0x206),'meowKey':a135_0x5fdfea(0x206),'type':a135_0x5fdfea(0x1e2),'description':a135_0x5fdfea(0x1fa),'hidden':!![]},{'name':a135_0x5fdfea(0x219),'meowKey':a135_0x5fdfea(0x219),'type':a135_0x5fdfea(0x221),'description':a135_0x5fdfea(0x242),'hidden':!![]},{'name':a135_0x5fdfea(0x20d),'meowKey':a135_0x5fdfea(0x20d),'type':a135_0x5fdfea(0x221),'description':a135_0x5fdfea(0x20f),'hidden':!![]},{'name':'datasetcode','meowKey':a135_0x5fdfea(0x23c),'type':a135_0x5fdfea(0x221),'description':a135_0x5fdfea(0x23a),'hidden':!![]},{'name':a135_0x5fdfea(0x1e8),'meowKey':a135_0x5fdfea(0x1e8),'type':a135_0x5fdfea(0x1e2),'description':'Apply\x20to\x20all','hidden':!![]},{'name':a135_0x5fdfea(0x220),'meowKey':'enableBffSave','type':a135_0x5fdfea(0x1e2),'description':a135_0x5fdfea(0x1ff),'hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':a135_0x5fdfea(0x1e0),'hidden':!![]},{'name':'type','meowKey':a135_0x5fdfea(0x1dd),'type':'string','description':'Type\x20filter','hidden':!![]},{'name':a135_0x5fdfea(0x1eb),'meowKey':a135_0x5fdfea(0x1eb),'type':a135_0x5fdfea(0x221),'description':a135_0x5fdfea(0x228),'hidden':!![]},{'name':a135_0x5fdfea(0x1f3),'meowKey':a135_0x5fdfea(0x1f3),'type':a135_0x5fdfea(0x221),'description':a135_0x5fdfea(0x1ee),'hidden':!![]},{'name':a135_0x5fdfea(0x1f6),'meowKey':a135_0x5fdfea(0x1e4),'type':'string','description':a135_0x5fdfea(0x229),'hidden':!![]},{'name':a135_0x5fdfea(0x214),'meowKey':a135_0x5fdfea(0x214),'type':a135_0x5fdfea(0x221),'description':a135_0x5fdfea(0x229),'hidden':!![]},{'name':'db-id','meowKey':'dbId','type':a135_0x5fdfea(0x221),'description':a135_0x5fdfea(0x21d),'hidden':!![]},{'name':a135_0x5fdfea(0x237),'meowKey':a135_0x5fdfea(0x237),'type':a135_0x5fdfea(0x221),'description':a135_0x5fdfea(0x21d),'hidden':!![]},{'name':a135_0x5fdfea(0x1ed),'meowKey':a135_0x5fdfea(0x1ed),'type':a135_0x5fdfea(0x221),'description':a135_0x5fdfea(0x212),'hidden':!![]},{'name':'description-file','meowKey':a135_0x5fdfea(0x22e),'type':'string','description':a135_0x5fdfea(0x1e9),'hidden':!![]},{'name':'page','meowKey':'page','type':a135_0x5fdfea(0x221),'description':a135_0x5fdfea(0x23f),'hidden':!![]},{'name':a135_0x5fdfea(0x213),'meowKey':'pagesize','type':a135_0x5fdfea(0x221),'description':'Page\x20size','hidden':!![]},{'name':a135_0x5fdfea(0x1df),'meowKey':a135_0x5fdfea(0x1df),'type':a135_0x5fdfea(0x221),'description':a135_0x5fdfea(0x23b),'hidden':!![]},{'name':a135_0x5fdfea(0x21a),'meowKey':'code','type':'string','description':'Code\x20filter','hidden':!![]},{'name':'sql','meowKey':a135_0x5fdfea(0x230),'type':a135_0x5fdfea(0x221),'description':a135_0x5fdfea(0x202),'hidden':!![]},{'name':a135_0x5fdfea(0x1f2),'meowKey':a135_0x5fdfea(0x1f2),'type':a135_0x5fdfea(0x221),'description':a135_0x5fdfea(0x222),'hidden':!![]},{'name':a135_0x5fdfea(0x201),'meowKey':a135_0x5fdfea(0x201),'type':a135_0x5fdfea(0x221),'description':'Operation\x20type','hidden':!![]},{'name':a135_0x5fdfea(0x23e),'meowKey':a135_0x5fdfea(0x23e),'type':a135_0x5fdfea(0x221),'description':'Target\x20path','hidden':!![]},{'name':'skip-imports','meowKey':'skipImports','type':a135_0x5fdfea(0x1e2),'description':a135_0x5fdfea(0x224),'hidden':!![]},{'name':a135_0x5fdfea(0x20c),'meowKey':a135_0x5fdfea(0x20c),'type':a135_0x5fdfea(0x221),'description':a135_0x5fdfea(0x1e1),'hidden':!![]},{'name':'value','meowKey':'value','type':a135_0x5fdfea(0x221),'description':a135_0x5fdfea(0x236),'hidden':!![]},{'name':a135_0x5fdfea(0x22a),'meowKey':'force','type':'boolean','description':a135_0x5fdfea(0x235),'hidden':!![]},{'name':a135_0x5fdfea(0x1e6),'meowKey':a135_0x5fdfea(0x1e6),'type':a135_0x5fdfea(0x1e2),'description':a135_0x5fdfea(0x1ea),'hidden':!![]},{'name':a135_0x5fdfea(0x216),'meowKey':'remote','type':a135_0x5fdfea(0x1e2),'description':a135_0x5fdfea(0x241),'hidden':!![]},{'name':a135_0x5fdfea(0x223),'meowKey':a135_0x5fdfea(0x223),'type':a135_0x5fdfea(0x1e2),'description':'Verbose\x20output','hidden':!![]},{'name':a135_0x5fdfea(0x20e),'meowKey':a135_0x5fdfea(0x218),'type':'string','description':'Expected\x20affected\x20count','hidden':!![]},{'name':a135_0x5fdfea(0x1fc),'meowKey':'operationType','type':a135_0x5fdfea(0x221),'description':'Operation\x20type','hidden':!![]},{'name':a135_0x5fdfea(0x203),'meowKey':'functionNode','type':a135_0x5fdfea(0x221),'description':a135_0x5fdfea(0x1fe),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a135_0x5fdfea(0x1fd),a135_0x5fdfea(0x22f),a135_0x5fdfea(0x1e7),'format','jq',a135_0x5fdfea(0x21f),a135_0x5fdfea(0x20a),a135_0x5fdfea(0x205),'ci']);export function buildMeowFlags(){const _0x46c9ba=a135_0x5fdfea;return Object[_0x46c9ba(0x1ef)](GLOBAL_FLAGS[_0x46c9ba(0x20b)](_0x587fd2=>[_0x587fd2['meowKey'],{'type':_0x587fd2['type']}]));}
1
+ const a135_0x34532b=a135_0x5e56;(function(_0x299f33,_0x496cc7){const _0x30e833=a135_0x5e56,_0x5a8504=_0x299f33();while(!![]){try{const _0xaa4d1b=-parseInt(_0x30e833(0x117))/0x1+-parseInt(_0x30e833(0xbc))/0x2+-parseInt(_0x30e833(0xd1))/0x3+-parseInt(_0x30e833(0xd3))/0x4*(parseInt(_0x30e833(0xef))/0x5)+-parseInt(_0x30e833(0xf4))/0x6*(-parseInt(_0x30e833(0xed))/0x7)+parseInt(_0x30e833(0xdc))/0x8+parseInt(_0x30e833(0xd6))/0x9;if(_0xaa4d1b===_0x496cc7)break;else _0x5a8504['push'](_0x5a8504['shift']());}catch(_0x1ef98c){_0x5a8504['push'](_0x5a8504['shift']());}}}(a135_0x2a3a,0x5fe82));function a135_0x2a3a(){const _0xac3e71=['Preview\x20operation\x20without\x20executing','clear','remote','sql-name','enableBffSave','page','dbid','Page\x20number','operation-type','verbose','value','string','yes','Verbose\x20output','File\x20path','SQL\x20string','force','1905867nTdLEr','keyword','18700asPIJF','sql','Use\x20global\x20config\x20scope','11156265SMWDaP','Record\x20ID','Skip\x20confirmation\x20for\x20high-risk\x20writes','type','name','meowKey','1018192iaKfrN','json\x20|\x20pretty\x20|\x20compress','code','descriptionFile','Watch\x20mode','<expr>','all','format','expected-count','dbId','sqlname','production\x20|\x20daily','non-interactive','<name>','Type\x20filter','<code>','pagesize','113113wyDIkx','nonInteractive','5mwzQhJ','Output\x20format','Config\x20key','Clear','expectedCount','126mJbhoU','enable-bff-save','JSON\x20params','project','skip-imports','title','params','functionNode','app','Select\x20app\x20profile\x20by\x20name','datasetcode','DB\x20ID','Rabetbase\x20CLI','Show\x20help','Target\x20path','Environment','operation','Keyword\x20filter','watch','Config\x20value','map','Name','dry-run','boolean','confirm','Confirm\x20destructive\x20action','function-node','appcode','schemas','Schemas','Force\x20non-interactive\x20mode\x20(CI)','Override\x20appcode','Description','file','dryRun','190479imouVJ','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Skip\x20import\x20generation','Operation\x20type','sqlcode','target','help','Page\x20size','SQL\x20code','fromEntries','output','Use\x20project\x20config\x20scope','skipImports','965842WmVMTB','description','Enable\x20BFF\x20save','operationType'];a135_0x2a3a=function(){return _0xac3e71;};return a135_0x2a3a();}function a135_0x5e56(_0x61a4f2,_0x34ee30){_0x61a4f2=_0x61a4f2-0xb9;const _0x2a3a83=a135_0x2a3a();let _0x5e5608=_0x2a3a83[_0x61a4f2];return _0x5e5608;}export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME=a135_0x34532b(0x100);export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':a135_0x34532b(0x10f),'meowKey':a135_0x34532b(0x10f),'type':'string','description':a135_0x34532b(0x113),'hint':a135_0x34532b(0xeb)},{'name':a135_0x34532b(0xfc),'meowKey':'app','type':a135_0x34532b(0xcb),'description':a135_0x34532b(0xfd),'hint':a135_0x34532b(0xe9)},{'name':'env','meowKey':'env','type':'string','description':a135_0x34532b(0x103),'hint':a135_0x34532b(0xe7)},{'name':a135_0x34532b(0xe3),'meowKey':a135_0x34532b(0xe3),'type':a135_0x34532b(0xcb),'description':a135_0x34532b(0xf0),'hint':a135_0x34532b(0xdd)},{'name':'jq','meowKey':'jq','type':a135_0x34532b(0xcb),'description':a135_0x34532b(0x118),'hint':a135_0x34532b(0xe1)},{'name':a135_0x34532b(0x10a),'meowKey':a135_0x34532b(0x116),'type':a135_0x34532b(0x10b),'description':a135_0x34532b(0xc0)},{'name':a135_0x34532b(0xcc),'meowKey':a135_0x34532b(0xcc),'type':a135_0x34532b(0x10b),'description':a135_0x34532b(0xd8)},{'name':a135_0x34532b(0xe8),'meowKey':a135_0x34532b(0xee),'type':a135_0x34532b(0x10b),'description':a135_0x34532b(0x112)},{'name':'global','meowKey':'global','type':a135_0x34532b(0x10b),'description':a135_0x34532b(0xd5)},{'name':a135_0x34532b(0xf7),'meowKey':a135_0x34532b(0xf7),'type':a135_0x34532b(0x10b),'description':a135_0x34532b(0xba)},{'name':'ci','meowKey':'ci','type':a135_0x34532b(0x10b),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a135_0x34532b(0x11d),'meowKey':a135_0x34532b(0x11d),'type':a135_0x34532b(0x10b),'description':a135_0x34532b(0x101)},{'name':a135_0x34532b(0xda),'meowKey':a135_0x34532b(0xda),'type':a135_0x34532b(0xcb),'description':a135_0x34532b(0x109),'hidden':!![]},{'name':a135_0x34532b(0xf9),'meowKey':a135_0x34532b(0xf9),'type':'string','description':'Title','hidden':!![]},{'name':'clear','meowKey':a135_0x34532b(0xc1),'type':a135_0x34532b(0x10b),'description':a135_0x34532b(0xf2),'hidden':!![]},{'name':a135_0x34532b(0x106),'meowKey':a135_0x34532b(0x106),'type':a135_0x34532b(0x10b),'description':a135_0x34532b(0xe0),'hidden':!![]},{'name':a135_0x34532b(0xb9),'meowKey':'output','type':'string','description':'Output\x20path','hidden':!![]},{'name':a135_0x34532b(0xfa),'meowKey':'params','type':a135_0x34532b(0xcb),'description':a135_0x34532b(0xf6),'hidden':!![]},{'name':a135_0x34532b(0xfe),'meowKey':a135_0x34532b(0xfe),'type':'string','description':'Dataset\x20code','hidden':!![]},{'name':a135_0x34532b(0xe2),'meowKey':'all','type':a135_0x34532b(0x10b),'description':'Apply\x20to\x20all','hidden':!![]},{'name':a135_0x34532b(0xf5),'meowKey':a135_0x34532b(0xc4),'type':'boolean','description':a135_0x34532b(0xbe),'hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':a135_0x34532b(0xd7),'hidden':!![]},{'name':a135_0x34532b(0xd9),'meowKey':a135_0x34532b(0xd9),'type':a135_0x34532b(0xcb),'description':a135_0x34532b(0xea),'hidden':!![]},{'name':a135_0x34532b(0x115),'meowKey':a135_0x34532b(0x115),'type':a135_0x34532b(0xcb),'description':a135_0x34532b(0xce),'hidden':!![]},{'name':a135_0x34532b(0x11b),'meowKey':a135_0x34532b(0x11b),'type':'string','description':a135_0x34532b(0x11f),'hidden':!![]},{'name':a135_0x34532b(0xc3),'meowKey':'sqlName','type':'string','description':'SQL\x20name','hidden':!![]},{'name':a135_0x34532b(0xe6),'meowKey':'sqlname','type':a135_0x34532b(0xcb),'description':'SQL\x20name','hidden':!![]},{'name':'db-id','meowKey':a135_0x34532b(0xe5),'type':a135_0x34532b(0xcb),'description':a135_0x34532b(0xff),'hidden':!![]},{'name':a135_0x34532b(0xc6),'meowKey':a135_0x34532b(0xc6),'type':'string','description':a135_0x34532b(0xff),'hidden':!![]},{'name':a135_0x34532b(0xbd),'meowKey':a135_0x34532b(0xbd),'type':a135_0x34532b(0xcb),'description':a135_0x34532b(0x114),'hidden':!![]},{'name':'description-file','meowKey':a135_0x34532b(0xdf),'type':a135_0x34532b(0xcb),'description':'Description\x20file','hidden':!![]},{'name':a135_0x34532b(0xc5),'meowKey':a135_0x34532b(0xc5),'type':a135_0x34532b(0xcb),'description':a135_0x34532b(0xc7),'hidden':!![]},{'name':a135_0x34532b(0xec),'meowKey':a135_0x34532b(0xec),'type':a135_0x34532b(0xcb),'description':a135_0x34532b(0x11e),'hidden':!![]},{'name':a135_0x34532b(0xd2),'meowKey':a135_0x34532b(0xd2),'type':a135_0x34532b(0xcb),'description':a135_0x34532b(0x105),'hidden':!![]},{'name':a135_0x34532b(0xde),'meowKey':'code','type':a135_0x34532b(0xcb),'description':'Code\x20filter','hidden':!![]},{'name':a135_0x34532b(0xd4),'meowKey':a135_0x34532b(0xd4),'type':'string','description':a135_0x34532b(0xcf),'hidden':!![]},{'name':a135_0x34532b(0x110),'meowKey':'schemas','type':a135_0x34532b(0xcb),'description':a135_0x34532b(0x111),'hidden':!![]},{'name':a135_0x34532b(0x104),'meowKey':'operation','type':'string','description':a135_0x34532b(0x11a),'hidden':!![]},{'name':a135_0x34532b(0x11c),'meowKey':a135_0x34532b(0x11c),'type':a135_0x34532b(0xcb),'description':a135_0x34532b(0x102),'hidden':!![]},{'name':a135_0x34532b(0xf8),'meowKey':a135_0x34532b(0xbb),'type':a135_0x34532b(0x10b),'description':a135_0x34532b(0x119),'hidden':!![]},{'name':'key','meowKey':'key','type':'string','description':a135_0x34532b(0xf1),'hidden':!![]},{'name':'value','meowKey':a135_0x34532b(0xca),'type':a135_0x34532b(0xcb),'description':a135_0x34532b(0x107),'hidden':!![]},{'name':'force','meowKey':a135_0x34532b(0xd0),'type':a135_0x34532b(0x10b),'description':'Force\x20overwrite','hidden':!![]},{'name':a135_0x34532b(0x10c),'meowKey':a135_0x34532b(0x10c),'type':a135_0x34532b(0x10b),'description':a135_0x34532b(0x10d),'hidden':!![]},{'name':a135_0x34532b(0xc2),'meowKey':'remote','type':a135_0x34532b(0x10b),'description':'Use\x20remote','hidden':!![]},{'name':a135_0x34532b(0xc9),'meowKey':a135_0x34532b(0xc9),'type':a135_0x34532b(0x10b),'description':a135_0x34532b(0xcd),'hidden':!![]},{'name':a135_0x34532b(0xe4),'meowKey':a135_0x34532b(0xf3),'type':'string','description':'Expected\x20affected\x20count','hidden':!![]},{'name':a135_0x34532b(0xc8),'meowKey':a135_0x34532b(0xbf),'type':a135_0x34532b(0xcb),'description':'Operation\x20type','hidden':!![]},{'name':a135_0x34532b(0x10e),'meowKey':a135_0x34532b(0xfb),'type':a135_0x34532b(0xcb),'description':'Function\x20node','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a135_0x34532b(0x10f),a135_0x34532b(0xfc),'env',a135_0x34532b(0xe3),'jq',a135_0x34532b(0x10a),a135_0x34532b(0xcc),a135_0x34532b(0xe8),'ci']);export function buildMeowFlags(){const _0x5bd3d9=a135_0x34532b;return Object[_0x5bd3d9(0x120)](GLOBAL_FLAGS[_0x5bd3d9(0x108)](_0xb4beb2=>[_0xb4beb2[_0x5bd3d9(0xdb)],{'type':_0xb4beb2[_0x5bd3d9(0xd9)]}]));}
@@ -1 +1 @@
1
- const a136_0x3a3b19=a136_0x5de3;(function(_0xd5ef9f,_0x1e2678){const _0x407b18=a136_0x5de3,_0x3e9e42=_0xd5ef9f();while(!![]){try{const _0x112a7d=parseInt(_0x407b18(0x108))/0x1+parseInt(_0x407b18(0x10b))/0x2+parseInt(_0x407b18(0x10c))/0x3*(parseInt(_0x407b18(0x103))/0x4)+parseInt(_0x407b18(0x106))/0x5*(-parseInt(_0x407b18(0x10e))/0x6)+-parseInt(_0x407b18(0x10f))/0x7+parseInt(_0x407b18(0x105))/0x8*(parseInt(_0x407b18(0x10a))/0x9)+-parseInt(_0x407b18(0x10d))/0xa*(-parseInt(_0x407b18(0x107))/0xb);if(_0x112a7d===_0x1e2678)break;else _0x3e9e42['push'](_0x3e9e42['shift']());}catch(_0xd45de4){_0x3e9e42['push'](_0x3e9e42['shift']());}}}(a136_0x1435,0x95454));import{DEFAULT_API_DIR}from'../constant/paths.js';function a136_0x5de3(_0xab8018,_0x2c5873){_0xab8018=_0xab8018-0x102;const _0x14359e=a136_0x1435();let _0x5de3bc=_0x14359e[_0xab8018];return _0x5de3bc;}export const DEFAULT_CONFIG_VALUES={'env':a136_0x3a3b19(0x104),'format':a136_0x3a3b19(0x102),'locale':a136_0x3a3b19(0x109),'riskLevel':'high-risk-write','apiDir':DEFAULT_API_DIR};function a136_0x1435(){const _0x11bd8b=['141390gbBcno','7000070FgCqQK','compress','227212OWuIiS','production','1064296NucrQy','250bYSnYk','716485oznbRP','286556NHxINx','en-US','63qXTTPv','247488MItiqc','18gynPRC','170qWfWXf'];a136_0x1435=function(){return _0x11bd8b;};return a136_0x1435();}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a136_0x3a3b19(0x102);
1
+ const a136_0x4e04fe=a136_0x3cfe;function a136_0x2d17(){const _0x51b941=['422mSqAbw','compress','high-risk-write','66RTqlIh','3xeMOWx','4591LXzHRU','11519960YrOXwE','10684458SkVDnu','production','7595460QyGtIG','847490oULyig','58681320tWxYMA','5963684ejZsKg'];a136_0x2d17=function(){return _0x51b941;};return a136_0x2d17();}function a136_0x3cfe(_0x4df726,_0x180ec1){_0x4df726=_0x4df726-0x170;const _0x2d174f=a136_0x2d17();let _0x3cfe49=_0x2d174f[_0x4df726];return _0x3cfe49;}(function(_0x5343ba,_0x17a1a5){const _0x125d65=a136_0x3cfe,_0x56a8f2=_0x5343ba();while(!![]){try{const _0x4a8749=-parseInt(_0x125d65(0x17b))/0x1*(parseInt(_0x125d65(0x176))/0x2)+parseInt(_0x125d65(0x17a))/0x3*(-parseInt(_0x125d65(0x175))/0x4)+parseInt(_0x125d65(0x172))/0x5+-parseInt(_0x125d65(0x179))/0x6*(parseInt(_0x125d65(0x173))/0x7)+-parseInt(_0x125d65(0x17c))/0x8+-parseInt(_0x125d65(0x170))/0x9+parseInt(_0x125d65(0x174))/0xa;if(_0x4a8749===_0x17a1a5)break;else _0x56a8f2['push'](_0x56a8f2['shift']());}catch(_0x1727c8){_0x56a8f2['push'](_0x56a8f2['shift']());}}}(a136_0x2d17,0xec7e3));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a136_0x4e04fe(0x171),'format':a136_0x4e04fe(0x177),'locale':'en-US','riskLevel':a136_0x4e04fe(0x178),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a136_0x4e04fe(0x177);
@@ -1 +1 @@
1
- const a137_0x5ad202=a137_0xe544;(function(_0x331b9e,_0x2bb62f){const _0x52b4b0=a137_0xe544,_0x46800e=_0x331b9e();while(!![]){try{const _0x1ca81f=-parseInt(_0x52b4b0(0xec))/0x1+parseInt(_0x52b4b0(0xed))/0x2*(-parseInt(_0x52b4b0(0xee))/0x3)+parseInt(_0x52b4b0(0xe5))/0x4+parseInt(_0x52b4b0(0xe9))/0x5+parseInt(_0x52b4b0(0xe8))/0x6+-parseInt(_0x52b4b0(0xe7))/0x7+parseInt(_0x52b4b0(0xe6))/0x8;if(_0x1ca81f===_0x2bb62f)break;else _0x46800e['push'](_0x46800e['shift']());}catch(_0x5ca9ec){_0x46800e['push'](_0x46800e['shift']());}}}(a137_0x57dd,0xaf80b));import{getEnv,isProduction}from'../constant/env.js';function a137_0x57dd(){const _0x4ef187=['157032rCjwHS','1708145nARFTx','https://user.lovrabet.com','https://daily-api.lovrabet.com','986883jVCvie','436726HLImsZ','3wWTUjM','https://api.lovrabet.com','runtimeDomain','2959196vVvIVX','14647032nIfzRc','7100618CUWfYE'];a137_0x57dd=function(){return _0x4ef187;};return a137_0x57dd();}let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x1c79d5){const _0x1ded61=a137_0xe544;customApiDomain=_0x1c79d5?.['apiDomain'],customUserDomain=_0x1c79d5?.['userDomain'],customRuntimeDomain=_0x1c79d5?.[_0x1ded61(0xe4)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a137_0x5ad202(0xea):'https://user-daily.lovrabet.com');export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a137_0x5ad202(0xe3):a137_0x5ad202(0xeb));function a137_0xe544(_0x3367ed,_0x24e5ec){_0x3367ed=_0x3367ed-0xe3;const _0x57ddb9=a137_0x57dd();let _0xe54497=_0x57ddb9[_0x3367ed];return _0xe54497;}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?'https://runtime.lovrabet.com':'https://daily-runtime.lovrabet.com');
1
+ const a137_0x6d1afd=a137_0x25bd;(function(_0x330ae2,_0x360223){const _0x2086c4=a137_0x25bd,_0x3775f3=_0x330ae2();while(!![]){try{const _0x157b66=-parseInt(_0x2086c4(0xd9))/0x1*(-parseInt(_0x2086c4(0xe0))/0x2)+-parseInt(_0x2086c4(0xdf))/0x3+-parseInt(_0x2086c4(0xe2))/0x4+parseInt(_0x2086c4(0xdc))/0x5+parseInt(_0x2086c4(0xe4))/0x6+parseInt(_0x2086c4(0xe3))/0x7*(-parseInt(_0x2086c4(0xe1))/0x8)+parseInt(_0x2086c4(0xda))/0x9;if(_0x157b66===_0x360223)break;else _0x3775f3['push'](_0x3775f3['shift']());}catch(_0x332a77){_0x3775f3['push'](_0x3775f3['shift']());}}}(a137_0x36ca,0x570cd));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x46bdc2){const _0x2ec74f=a137_0x25bd;customApiDomain=_0x46bdc2?.['apiDomain'],customUserDomain=_0x46bdc2?.[_0x2ec74f(0xd7)],customRuntimeDomain=_0x46bdc2?.[_0x2ec74f(0xdb)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a137_0x6d1afd(0xe6):a137_0x6d1afd(0xd8));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?'https://api.lovrabet.com':a137_0x6d1afd(0xdd));function a137_0x25bd(_0x565d4f,_0x1d60c7){_0x565d4f=_0x565d4f-0xd7;const _0x36ca2d=a137_0x36ca();let _0x25bd91=_0x36ca2d[_0x565d4f];return _0x25bd91;}function a137_0x36ca(){const _0x5be5fd=['392708JCNAuS','7ByDfgc','1958556xhurIw','https://runtime.lovrabet.com','https://user.lovrabet.com','userDomain','https://user-daily.lovrabet.com','1697qBFyLH','4390137JhAcGK','runtimeDomain','554660iTbiDI','https://daily-api.lovrabet.com','https://daily-runtime.lovrabet.com','1344102MBcwfG','124TchVvm','1020776STrrzn'];a137_0x36ca=function(){return _0x5be5fd;};return a137_0x36ca();}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a137_0x6d1afd(0xe5):a137_0x6d1afd(0xde));
@@ -1 +1 @@
1
- const a138_0x4aa1a1=a138_0x2f5a;(function(_0x3c15a8,_0x4e3711){const _0x5a3035=a138_0x2f5a,_0x397150=_0x3c15a8();while(!![]){try{const _0x2a1e65=-parseInt(_0x5a3035(0x1ae))/0x1+parseInt(_0x5a3035(0x1a7))/0x2*(parseInt(_0x5a3035(0x1a4))/0x3)+parseInt(_0x5a3035(0x1a5))/0x4*(parseInt(_0x5a3035(0x1ab))/0x5)+parseInt(_0x5a3035(0x1ac))/0x6*(-parseInt(_0x5a3035(0x1a6))/0x7)+-parseInt(_0x5a3035(0x1ad))/0x8*(-parseInt(_0x5a3035(0x1a8))/0x9)+-parseInt(_0x5a3035(0x1a9))/0xa+parseInt(_0x5a3035(0x1aa))/0xb*(-parseInt(_0x5a3035(0x1b0))/0xc);if(_0x2a1e65===_0x4e3711)break;else _0x397150['push'](_0x397150['shift']());}catch(_0x53aedd){_0x397150['push'](_0x397150['shift']());}}}(a138_0x5ef9,0xc2ad9));export const RABETBASE_ENV_VALUES=[a138_0x4aa1a1(0x1a3),'daily'];export function normalizeEnv(_0x314a77){const _0x5a1d4a=a138_0x4aa1a1;return _0x314a77===_0x5a1d4a(0x1a2)?_0x5a1d4a(0x1a3):_0x314a77;}function a138_0x2f5a(_0x4de13a,_0x2b5c50){_0x4de13a=_0x4de13a-0x1a2;const _0x5ef90a=a138_0x5ef9();let _0x2f5ad6=_0x5ef90a[_0x4de13a];return _0x2f5ad6;}export function isProduction(_0x8ec421){return normalizeEnv(_0x8ec421)==='production';}export function isDaily(_0x5e01d5){return normalizeEnv(_0x5e01d5)==='daily';}export function isDev(_0x2bcbbc){const _0x3a2b80=a138_0x4aa1a1,_0x511b33=normalizeEnv(_0x2bcbbc);return _0x511b33===_0x3a2b80(0x1af)||_0x511b33==='dev';}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||'production');export function getEnv(){return env;}function a138_0x5ef9(){const _0x168f61=['11hxwZut','765MLpsyu','6PkaXMs','296QCCFPn','112873EGTzDq','development','9057288USfGSk','online','production','43983QWXhiC','35792hPIUfu','6677419yfYukj','126TACzhs','119241oBgmGS','1639350nMxyZf'];a138_0x5ef9=function(){return _0x168f61;};return a138_0x5ef9();}export function initEnv(_0x38a8dd){env=normalizeEnv(_0x38a8dd);}
1
+ const a138_0xaeb4ad=a138_0x485e;(function(_0x210072,_0x40aa49){const _0x11d84e=a138_0x485e,_0x10b0c7=_0x210072();while(!![]){try{const _0x6835e2=parseInt(_0x11d84e(0x1dd))/0x1+parseInt(_0x11d84e(0x1da))/0x2+parseInt(_0x11d84e(0x1d9))/0x3*(-parseInt(_0x11d84e(0x1dc))/0x4)+-parseInt(_0x11d84e(0x1d4))/0x5*(-parseInt(_0x11d84e(0x1db))/0x6)+parseInt(_0x11d84e(0x1d3))/0x7*(parseInt(_0x11d84e(0x1d1))/0x8)+parseInt(_0x11d84e(0x1d2))/0x9*(parseInt(_0x11d84e(0x1d6))/0xa)+-parseInt(_0x11d84e(0x1d8))/0xb*(parseInt(_0x11d84e(0x1d7))/0xc);if(_0x6835e2===_0x40aa49)break;else _0x10b0c7['push'](_0x10b0c7['shift']());}catch(_0x41b503){_0x10b0c7['push'](_0x10b0c7['shift']());}}}(a138_0x4d60,0x1f1c9));export const RABETBASE_ENV_VALUES=['production',a138_0xaeb4ad(0x1e0)];export function normalizeEnv(_0x96b530){const _0x40cdee=a138_0xaeb4ad;return _0x96b530===_0x40cdee(0x1df)?'production':_0x96b530;}function a138_0x4d60(){const _0xd43987=['development','26960FUFeeY','567mKoxlV','238NgZKwA','5cZjLOC','production','31890OwbiDr','5686284HCxWbN','11JSoOXM','3189vLxBUJ','209076pZtBlR','1243068LVLhQt','568NpSiJp','125033jeVczB','dev','online','daily'];a138_0x4d60=function(){return _0xd43987;};return a138_0x4d60();}export function isProduction(_0x17bcb0){const _0x423e21=a138_0xaeb4ad;return normalizeEnv(_0x17bcb0)===_0x423e21(0x1d5);}export function isDaily(_0x6a94e3){const _0x2f76ca=a138_0xaeb4ad;return normalizeEnv(_0x6a94e3)===_0x2f76ca(0x1e0);}export function isDev(_0x532088){const _0x55b7cd=a138_0xaeb4ad,_0xe4e5d3=normalizeEnv(_0x532088);return _0xe4e5d3===_0x55b7cd(0x1d0)||_0xe4e5d3===_0x55b7cd(0x1de);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a138_0xaeb4ad(0x1d5));export function getEnv(){return env;}function a138_0x485e(_0x3aa541,_0x3602b5){_0x3aa541=_0x3aa541-0x1d0;const _0x4d6025=a138_0x4d60();let _0x485edc=_0x4d6025[_0x3aa541];return _0x485edc;}export function initEnv(_0x2c3ef9){env=normalizeEnv(_0x2c3ef9);}
@@ -1 +1 @@
1
- const a139_0x34e124=a139_0x4b50;function a139_0xea2b(){const _0x27ed82=['235704vbaQEZ','2364768bkOwrp','8irHgNz','pretty','312462phIKpH','137185wUvHGR','1982057OYkBnP','2520036fjvqRk','120hDPpPf','json','140026VWFDMs'];a139_0xea2b=function(){return _0x27ed82;};return a139_0xea2b();}(function(_0x1e9d7a,_0x49c4f6){const _0x56179b=a139_0x4b50,_0x4ca1c4=_0x1e9d7a();while(!![]){try{const _0x1588c9=parseInt(_0x56179b(0x191))/0x1+parseInt(_0x56179b(0x18c))/0x2+-parseInt(_0x56179b(0x18d))/0x3+parseInt(_0x56179b(0x18e))/0x4+-parseInt(_0x56179b(0x192))/0x5*(parseInt(_0x56179b(0x18a))/0x6)+parseInt(_0x56179b(0x193))/0x7+parseInt(_0x56179b(0x18f))/0x8*(-parseInt(_0x56179b(0x189))/0x9);if(_0x1588c9===_0x49c4f6)break;else _0x4ca1c4['push'](_0x4ca1c4['shift']());}catch(_0x54499a){_0x4ca1c4['push'](_0x4ca1c4['shift']());}}}(a139_0xea2b,0x55542));function a139_0x4b50(_0x27f54a,_0x4684a4){_0x27f54a=_0x27f54a-0x189;const _0xea2bd6=a139_0xea2b();let _0x4b507c=_0xea2bd6[_0x27f54a];return _0x4b507c;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a139_0x34e124(0x18b),a139_0x34e124(0x190),'compress'];
1
+ const a139_0x1c60d4=a139_0x5660;(function(_0x153531,_0x109e1a){const _0x47f630=a139_0x5660,_0x273166=_0x153531();while(!![]){try{const _0x5bcec6=parseInt(_0x47f630(0x1f3))/0x1*(parseInt(_0x47f630(0x1f4))/0x2)+-parseInt(_0x47f630(0x1f1))/0x3*(-parseInt(_0x47f630(0x1e7))/0x4)+parseInt(_0x47f630(0x1ea))/0x5+-parseInt(_0x47f630(0x1eb))/0x6*(parseInt(_0x47f630(0x1ed))/0x7)+-parseInt(_0x47f630(0x1ec))/0x8*(-parseInt(_0x47f630(0x1e8))/0x9)+parseInt(_0x47f630(0x1ee))/0xa+-parseInt(_0x47f630(0x1f0))/0xb;if(_0x5bcec6===_0x109e1a)break;else _0x273166['push'](_0x273166['shift']());}catch(_0x3ab73b){_0x273166['push'](_0x273166['shift']());}}}(a139_0x2a9d,0x20a90));function a139_0x5660(_0x5df9bc,_0x50b400){_0x5df9bc=_0x5df9bc-0x1e7;const _0x2a9df6=a139_0x2a9d();let _0x566058=_0x2a9df6[_0x5df9bc];return _0x566058;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a139_0x1c60d4(0x1f2),a139_0x1c60d4(0x1ef),a139_0x1c60d4(0x1e9)];function a139_0x2a9d(){const _0x3e49f5=['3623rnabVh','120EJrlCa','68XthDNY','63PkQiEC','compress','103195NBufcX','180228qScBYp','234712qPREQn','7LTTXAY','2160960YvCLtH','pretty','7273607KhChOo','29217cWqFaL','json'];a139_0x2a9d=function(){return _0x3e49f5;};return a139_0x2a9d();}
@@ -1 +1 @@
1
- const a140_0x28b607=a140_0x531d;function a140_0x10d7(){const _0x541bea=['55FGYyun','2609802cHJstP','726luSztO','43556fevqXS','547179obqJXN','./src/api','978nwZeKg','49hWzpdy','193464GkGQmU','31304pbOVZi','18qnRIeg','1213340QAmXFK','689CKedjL'];a140_0x10d7=function(){return _0x541bea;};return a140_0x10d7();}function a140_0x531d(_0x3e8ece,_0x52abad){_0x3e8ece=_0x3e8ece-0x188;const _0x10d777=a140_0x10d7();let _0x531d81=_0x10d777[_0x3e8ece];return _0x531d81;}(function(_0x4ffd17,_0x48d802){const _0x3e8090=a140_0x531d,_0x2612f2=_0x4ffd17();while(!![]){try{const _0xd5908e=parseInt(_0x3e8090(0x194))/0x1*(parseInt(_0x3e8090(0x18e))/0x2)+parseInt(_0x3e8090(0x18c))/0x3+-parseInt(_0x3e8090(0x18b))/0x4*(-parseInt(_0x3e8090(0x188))/0x5)+parseInt(_0x3e8090(0x189))/0x6+parseInt(_0x3e8090(0x18f))/0x7*(-parseInt(_0x3e8090(0x191))/0x8)+-parseInt(_0x3e8090(0x192))/0x9*(-parseInt(_0x3e8090(0x193))/0xa)+parseInt(_0x3e8090(0x18a))/0xb*(-parseInt(_0x3e8090(0x190))/0xc);if(_0xd5908e===_0x48d802)break;else _0x2612f2['push'](_0x2612f2['shift']());}catch(_0x572c3e){_0x2612f2['push'](_0x2612f2['shift']());}}}(a140_0x10d7,0x37005));export const DEFAULT_API_DIR=a140_0x28b607(0x18d);
1
+ function a140_0x20d9(_0x5d36a2,_0x494d37){_0x5d36a2=_0x5d36a2-0xb2;const _0x56e53d=a140_0x56e5();let _0x20d907=_0x56e53d[_0x5d36a2];return _0x20d907;}(function(_0x244bbf,_0x50322f){const _0x34062f=a140_0x20d9,_0x13a609=_0x244bbf();while(!![]){try{const _0x1ae466=-parseInt(_0x34062f(0xb8))/0x1+parseInt(_0x34062f(0xb2))/0x2*(-parseInt(_0x34062f(0xb9))/0x3)+-parseInt(_0x34062f(0xb3))/0x4+-parseInt(_0x34062f(0xb4))/0x5+-parseInt(_0x34062f(0xb5))/0x6+-parseInt(_0x34062f(0xb7))/0x7+parseInt(_0x34062f(0xb6))/0x8;if(_0x1ae466===_0x50322f)break;else _0x13a609['push'](_0x13a609['shift']());}catch(_0x97ed7b){_0x13a609['push'](_0x13a609['shift']());}}}(a140_0x56e5,0x6a827));export const DEFAULT_API_DIR='./src/api';function a140_0x56e5(){const _0x4ea196=['143635vyIxsF','1466616OrSXwt','25884400iEbFng','2753114TKBaVW','767577DmiVUz','21chAhPB','160574zLlpsr','3212944DIeMiy'];a140_0x56e5=function(){return _0x4ea196;};return a140_0x56e5();}
@@ -1 +1 @@
1
- const a141_0x32f0bb=a141_0x4452;(function(_0x2284ae,_0x32182b){const _0x467b98=a141_0x4452,_0x371001=_0x2284ae();while(!![]){try{const _0x4bcd27=-parseInt(_0x467b98(0xad))/0x1*(parseInt(_0x467b98(0xab))/0x2)+parseInt(_0x467b98(0xa9))/0x3+-parseInt(_0x467b98(0xb1))/0x4+-parseInt(_0x467b98(0xa8))/0x5+-parseInt(_0x467b98(0xb0))/0x6*(-parseInt(_0x467b98(0xac))/0x7)+-parseInt(_0x467b98(0xaf))/0x8*(parseInt(_0x467b98(0xa7))/0x9)+parseInt(_0x467b98(0xa6))/0xa;if(_0x4bcd27===_0x32182b)break;else _0x371001['push'](_0x371001['shift']());}catch(_0x1968ff){_0x371001['push'](_0x371001['shift']());}}}(a141_0x139a,0x9233d));function a141_0x139a(){const _0x4f3c24=['16678210sSjPim','2070OivRUx','796775XSRRCR','2276562rDJIkH','write','1569234RFoYPU','5579TwdVpe','1hfwaUm','high-risk-write','9248eNOMDJ','2190DLJQcK','3635532WVWTil','read'];a141_0x139a=function(){return _0x4f3c24;};return a141_0x139a();}function a141_0x4452(_0x12642d,_0x549031){_0x12642d=_0x12642d-0xa5;const _0x139a12=a141_0x139a();let _0x4452b5=_0x139a12[_0x12642d];return _0x4452b5;}export const RISK_LEVEL_VALUES=[a141_0x32f0bb(0xa5),a141_0x32f0bb(0xaa),a141_0x32f0bb(0xae)];
1
+ function a141_0x29da(){const _0x519883=['542460WvpSEY','read','34963643SfeGQG','9IvYylb','172046AeRVIa','65rCOaRj','11571270HNvUIy','261RqCdUx','10823920lYEgNh','14158QAHndL','110868qchrMM','write','198aakfKf'];a141_0x29da=function(){return _0x519883;};return a141_0x29da();}const a141_0x8c6bc8=a141_0x3cd0;function a141_0x3cd0(_0x5d16ea,_0x37aa27){_0x5d16ea=_0x5d16ea-0xc0;const _0x29da6c=a141_0x29da();let _0x3cd0f7=_0x29da6c[_0x5d16ea];return _0x3cd0f7;}(function(_0x2139a3,_0x2e53d2){const _0x37d00e=a141_0x3cd0,_0x442350=_0x2139a3();while(!![]){try{const _0x4aa0d8=-parseInt(_0x37d00e(0xcc))/0x1+parseInt(_0x37d00e(0xc8))/0x2*(-parseInt(_0x37d00e(0xc6))/0x3)+-parseInt(_0x37d00e(0xc9))/0x4*(-parseInt(_0x37d00e(0xc4))/0x5)+-parseInt(_0x37d00e(0xcb))/0x6*(-parseInt(_0x37d00e(0xc3))/0x7)+-parseInt(_0x37d00e(0xc7))/0x8+parseInt(_0x37d00e(0xc2))/0x9*(-parseInt(_0x37d00e(0xc5))/0xa)+parseInt(_0x37d00e(0xc1))/0xb;if(_0x4aa0d8===_0x2e53d2)break;else _0x442350['push'](_0x442350['shift']());}catch(_0xb0da5b){_0x442350['push'](_0x442350['shift']());}}}(a141_0x29da,0xa65f2));export const RISK_LEVEL_VALUES=[a141_0x8c6bc8(0xc0),a141_0x8c6bc8(0xca),'high-risk-write'];