@lovrabet/rabetbase-cli 2.2.2 → 2.2.3-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) 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/list.js +1 -0
  87. package/lib/commands/menu/shared/compare-table.js +1 -1
  88. package/lib/commands/menu/shared/index.js +1 -1
  89. package/lib/commands/menu/shared/inquirer.js +1 -1
  90. package/lib/commands/menu/shared/local-pages.js +1 -1
  91. package/lib/commands/menu/shared/logic.js +1 -1
  92. package/lib/commands/menu/shared/service.js +1 -1
  93. package/lib/commands/menu/shared/sync-core.js +1 -1
  94. package/lib/commands/menu/shared/update-core.js +1 -1
  95. package/lib/commands/menu/shared/valid-url.js +1 -1
  96. package/lib/commands/menu/sync.js +1 -1
  97. package/lib/commands/menu/update.js +1 -1
  98. package/lib/commands/page/generate-start.js +1 -1
  99. package/lib/commands/page/generate-status.js +1 -1
  100. package/lib/commands/page/index.js +1 -1
  101. package/lib/commands/page/pull.js +1 -1
  102. package/lib/commands/page/push.js +1 -1
  103. package/lib/commands/page/relation-audit.js +1 -1
  104. package/lib/commands/page/shared.js +1 -1
  105. package/lib/commands/page/standard-page-status.js +1 -1
  106. package/lib/commands/page/sync.js +1 -1
  107. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  108. package/lib/commands/project/create/format-elapsed.js +1 -1
  109. package/lib/commands/project/create/main.js +1 -1
  110. package/lib/commands/project/create/non-interactive.js +1 -1
  111. package/lib/commands/project/create/project-template-path.js +1 -1
  112. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  113. package/lib/commands/project/create/use-format-code.js +1 -1
  114. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  115. package/lib/commands/project/index.js +1 -1
  116. package/lib/commands/project/init.js +1 -1
  117. package/lib/commands/project/upgrade.js +1 -1
  118. package/lib/commands/registry.js +1 -1
  119. package/lib/commands/run/index.js +1 -1
  120. package/lib/commands/schema.js +1 -1
  121. package/lib/commands/skill/index.js +1 -1
  122. package/lib/commands/sql/create.js +1 -1
  123. package/lib/commands/sql/delete.js +1 -1
  124. package/lib/commands/sql/detail.js +1 -1
  125. package/lib/commands/sql/exec.js +1 -1
  126. package/lib/commands/sql/index.js +1 -1
  127. package/lib/commands/sql/list.js +1 -1
  128. package/lib/commands/sql/pull.js +1 -1
  129. package/lib/commands/sql/push.js +1 -1
  130. package/lib/commands/sql/save.js +1 -1
  131. package/lib/commands/sql/shared.js +1 -1
  132. package/lib/commands/sql/status.js +1 -1
  133. package/lib/commands/sql/validate.js +1 -1
  134. package/lib/config/schema.js +1 -1
  135. package/lib/constant/cdn.js +1 -1
  136. package/lib/constant/cli.js +1 -1
  137. package/lib/constant/defaults.js +1 -1
  138. package/lib/constant/domain.js +1 -1
  139. package/lib/constant/env.js +1 -1
  140. package/lib/constant/output.js +1 -1
  141. package/lib/constant/paths.js +1 -1
  142. package/lib/constant/risk.js +1 -1
  143. package/lib/context.js +1 -1
  144. package/lib/core/alias-resolver.js +1 -1
  145. package/lib/core/api-client.js +1 -1
  146. package/lib/core/bff/config.js +1 -1
  147. package/lib/core/bff/file-system.js +1 -1
  148. package/lib/core/bff/hash.js +1 -1
  149. package/lib/core/bff/lock.js +1 -1
  150. package/lib/core/bff/utils.js +1 -1
  151. package/lib/core/db-resolver.js +1 -1
  152. package/lib/core/page/file-system.js +1 -1
  153. package/lib/core/page/hash.js +1 -1
  154. package/lib/core/page/lock.js +1 -1
  155. package/lib/core/sql-sync/config.js +1 -1
  156. package/lib/core/sql-sync/file-system.js +1 -1
  157. package/lib/core/sql-sync/hash.js +1 -1
  158. package/lib/core/sql-sync/lock.js +1 -1
  159. package/lib/core/sql-sync/utils.js +1 -1
  160. package/lib/core/sql-validator.js +1 -1
  161. package/lib/errors.js +1 -1
  162. package/lib/framework/build-all-flags.js +1 -1
  163. package/lib/framework/flags.js +1 -1
  164. package/lib/framework/help.js +1 -1
  165. package/lib/framework/index.js +1 -1
  166. package/lib/framework/output.js +1 -1
  167. package/lib/framework/response.js +1 -1
  168. package/lib/framework/runner-alias.js +1 -1
  169. package/lib/framework/runner.js +1 -1
  170. package/lib/framework/schema-export.js +1 -1
  171. package/lib/framework/types.js +1 -1
  172. package/lib/generated/build-info.js +1 -1
  173. package/lib/help.js +1 -1
  174. package/lib/skills/main.js +1 -1
  175. package/lib/skills/npx-skills-add.js +1 -1
  176. package/lib/telemetry/cli-command-trace.js +1 -1
  177. package/lib/telemetry/cli-help-trace.js +1 -1
  178. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  179. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  180. package/lib/telemetry/send-cli-trace-log.js +1 -1
  181. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  182. package/lib/utils/ai_config.js +1 -1
  183. package/lib/utils/apply-jq-filter.js +1 -1
  184. package/lib/utils/cdn-config.js +1 -1
  185. package/lib/utils/check-sdk-version.js +1 -1
  186. package/lib/utils/cli-version-check.js +1 -1
  187. package/lib/utils/cli-version-policy.js +1 -1
  188. package/lib/utils/config.js +1 -1
  189. package/lib/utils/copy-directory.js +1 -1
  190. package/lib/utils/entity-with-id.js +1 -1
  191. package/lib/utils/file-utils.js +1 -1
  192. package/lib/utils/guides-cdn.js +1 -1
  193. package/lib/utils/http-client.js +1 -1
  194. package/lib/utils/is-non-interactive.js +1 -1
  195. package/lib/utils/logger.js +1 -1
  196. package/lib/utils/params.js +1 -1
  197. package/lib/utils/platform.js +1 -1
  198. package/lib/utils/rules-cdn.js +1 -1
  199. package/lib/utils/sleep.js +1 -1
  200. package/lib/utils/template-replacer.js +1 -1
  201. package/lib/utils/update-notice.js +1 -1
  202. package/lib/utils/version.js +1 -1
  203. package/lib/utils/with-active-cookie.js +1 -1
  204. package/lib/utils/write-cli-side-channel.js +1 -1
  205. package/package.json +1 -1
@@ -1 +1 @@
1
- const a128_0x262705=a128_0x1973;(function(_0x203f9f,_0x8f7599){const _0x395a71=a128_0x1973,_0x162c60=_0x203f9f();while(!![]){try{const _0x228ca3=parseInt(_0x395a71(0x15f))/0x1*(parseInt(_0x395a71(0x15c))/0x2)+-parseInt(_0x395a71(0x174))/0x3*(-parseInt(_0x395a71(0x161))/0x4)+parseInt(_0x395a71(0x173))/0x5+parseInt(_0x395a71(0x16d))/0x6*(-parseInt(_0x395a71(0x17c))/0x7)+-parseInt(_0x395a71(0x18b))/0x8*(parseInt(_0x395a71(0x198))/0x9)+-parseInt(_0x395a71(0x168))/0xa+parseInt(_0x395a71(0x192))/0xb*(parseInt(_0x395a71(0x190))/0xc);if(_0x228ca3===_0x8f7599)break;else _0x162c60['push'](_0x162c60['shift']());}catch(_0x2d1c6e){_0x162c60['push'](_0x162c60['shift']());}}}(a128_0x3aa3,0x4a5fc));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';import{getDbName,listDatabases}from'../../core/db-resolver.js';import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';function a128_0x1973(_0x221a9d,_0x46df73){_0x221a9d=_0x221a9d-0x159;const _0x3aa3ce=a128_0x3aa3();let _0x197334=_0x3aa3ce[_0x221a9d];return _0x197334;}import{computeSqlFileHash}from'../../core/sql-sync/hash.js';import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile,writeSqlLockFile}from'../../core/sql-sync/lock.js';function a128_0x3aa3(){const _0x2fa730=['21UxxZgQ','isFinite','mode','dbDirectory','message','sqls','path','Multiple\x20local\x20SQL\x20files\x20found\x20for\x20sqlCode\x20','7161LyJPAA','force','\x22\x20matches\x20multiple\x20databases\x20for\x20sqlCode\x20','\x20failed','sqlCode','sqlcode','dbName','replace','POST','dbId','sqlName','toISOString','get','Push\x20complete:\x20','high-risk-write','112600UWtdTW','/smartapi/custom/updateUserCustomSql','set','Push\x20local\x20SQL\x20files\x20to\x20remote','sqlRoot','70020cKYuQo','\x20SQL\x20file(s)','143ORcaqQ','map','version','relativePath','trashDir','lockFilePath','45AOJhoZ','validation','bool','sql','65048MOIXLX','sqlConfig','lastSync','4lkeGqR','entries','137316RTDUDO','hash','catch','unchanged','filePath','remoteId','str','3252160JBfVkX','boolean','local\x20SQL\x20is\x20not\x20tracked\x20by\x20sql.lock.json;\x20use\x20`rabetbase\x20sql\x20create`\x20or\x20`rabetbase\x20sql\x20pull`\x20first','length','startsWith','1326DAdYIg','utf8','No\x20database\x20matches\x20local\x20directory\x20\x22','push','appCode','sqlRootDir','2400280OpSAhE'];a128_0x3aa3=function(){return _0x2fa730;};return a128_0x3aa3();}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(_0x2d0588,_0x39862c,_0x281467){const _0x25e845=a128_0x1973,_0x169ef5=await scanLocalSqlQueries(_0x2d0588),_0x373b5d=new Map();for(const _0x192a7a of _0x169ef5){if(_0x281467&&_0x192a7a['sqlCode']!==_0x281467)continue;const _0xd6ecd1=_0x373b5d[_0x25e845(0x188)](_0x192a7a['sqlCode'])??[];_0xd6ecd1[_0x25e845(0x170)](_0x192a7a),_0x373b5d[_0x25e845(0x18d)](_0x192a7a[_0x25e845(0x180)],_0xd6ecd1);}if(_0x281467&&!_0x373b5d['has'](_0x281467))throw CliErrors[_0x25e845(0x159)]('Local\x20SQL\x20not\x20found:\x20'+_0x281467);const _0x15b8e6=[];for(const [_0x3b387d,_0x2d2bb3]of _0x373b5d[_0x25e845(0x160)]()){if(_0x2d2bb3[_0x25e845(0x16b)]===0x1){_0x15b8e6[_0x25e845(0x170)](_0x2d2bb3[0x0]);continue;}const _0xd2e7c1=_0x39862c[_0x25e845(0x179)][_0x3b387d],_0x3d916e=_0xd2e7c1?.[_0x25e845(0x17a)],_0x2d96ee=_0x3d916e?_0x2d2bb3['filter'](_0x1b6f78=>_0x1b6f78['relativePath']!==_0x3d916e):_0x2d2bb3;if(_0xd2e7c1&&_0x2d96ee[_0x25e845(0x16b)]===0x1){_0x15b8e6[_0x25e845(0x170)](_0x2d96ee[0x0]);continue;}throw CliErrors[_0x25e845(0x159)](_0x25e845(0x17b)+_0x3b387d+'.\x20Keep\x20only\x20one\x20file\x20under\x20its\x20sqlCode\x20directory\x20before\x20pushing.');}return _0x15b8e6;}export const sqlPush={'service':a128_0x262705(0x15b),'command':'push','description':a128_0x262705(0x18e),'risk':a128_0x262705(0x18a),'flags':[SQLCODE_FLAG_OPTIONAL,{'name':'force','type':a128_0x262705(0x169),'description':'Force\x20push\x20even\x20if\x20local\x20hash\x20matches\x20lock'}],async 'dryRun'(_0x1cd55b){const _0x42d6e3=a128_0x262705,_0x4a8e50=loadSqlProjectConfig(_0x1cd55b[_0x42d6e3(0x171)]),_0x20e76b=await readSqlLockFile(_0x4a8e50[_0x42d6e3(0x197)]),{appLock:_0x2acf13}=ensureSqlLockScope(_0x20e76b??createEmptySqlLock(),_0x1cd55b['appCode'],_0x4a8e50['sqlRoot'],_0x42d6e3(0x170)),_0x4cab0c=await getTargetSqlQueries(_0x4a8e50,_0x2acf13,_0x1cd55b['str'](_0x42d6e3(0x181))||undefined),_0x2cf9f4=[];for(const _0x431168 of _0x4cab0c){const _0x314368=await computeSqlFileHash(_0x431168[_0x42d6e3(0x165)]),_0xcc559a=_0x2acf13[_0x42d6e3(0x179)][_0x431168['sqlCode']],_0x161b08=!!_0xcc559a&&(_0xcc559a[_0x42d6e3(0x17a)]!==_0x431168[_0x42d6e3(0x195)]||!!_0x431168[_0x42d6e3(0x186)]&&_0xcc559a[_0x42d6e3(0x186)]!==_0x431168[_0x42d6e3(0x186)]);if(!_0x1cd55b[_0x42d6e3(0x15a)](_0x42d6e3(0x17d))&&_0xcc559a&&_0xcc559a['hash']===_0x314368&&!_0x161b08)continue;_0x2cf9f4[_0x42d6e3(0x170)](_0x431168[_0x42d6e3(0x180)]);}return{'method':_0x42d6e3(0x184),'url':_0x42d6e3(0x18c),'body':{'sqlCodes':_0x2cf9f4,'appCode':_0x1cd55b[_0x42d6e3(0x171)]},'description':'Would\x20push\x20'+_0x2cf9f4[_0x42d6e3(0x16b)]+_0x42d6e3(0x191)};},async 'execute'(_0x3d966f){const _0x6dee03=a128_0x262705,_0x190cde=loadSqlProjectConfig(_0x3d966f['appCode']),_0x42d52f=await readSqlLockFile(_0x190cde[_0x6dee03(0x197)]),{lockData:_0x4e8997,appLock:_0x491f2b}=ensureSqlLockScope(_0x42d52f??createEmptySqlLock(),_0x3d966f[_0x6dee03(0x171)],_0x190cde[_0x6dee03(0x18f)],_0x6dee03(0x170)),_0x29f989=await getTargetSqlQueries(_0x190cde,_0x491f2b,_0x3d966f[_0x6dee03(0x167)](_0x6dee03(0x181))||undefined);if(_0x29f989[_0x6dee03(0x16b)]===0x0)return{'ok':!![],'data':{'pushed':[],'skipped':[],'failed':[]},'message':'No\x20local\x20SQL\x20files\x20found.'};const _0x1b4ab8=[],_0x394059=[],_0x3528fe=[];for(const _0x1419b2 of _0x29f989){const _0x205566=_0x491f2b[_0x6dee03(0x179)][_0x1419b2[_0x6dee03(0x180)]];if(!_0x205566){_0x3528fe['push']({'sqlCode':_0x1419b2['sqlCode'],'error':_0x6dee03(0x16a)});continue;}try{const _0x41131a=await computeSqlFileHash(_0x1419b2['filePath']),_0x11ebb0=_0x205566[_0x6dee03(0x17a)]!==_0x1419b2['relativePath']||!!_0x1419b2[_0x6dee03(0x186)]&&_0x205566[_0x6dee03(0x186)]!==_0x1419b2[_0x6dee03(0x186)];if(!_0x3d966f[_0x6dee03(0x15a)](_0x6dee03(0x17d))&&_0x205566[_0x6dee03(0x162)]===_0x41131a&&!_0x11ebb0){_0x394059[_0x6dee03(0x170)]({'sqlCode':_0x1419b2[_0x6dee03(0x180)],'reason':_0x6dee03(0x164)});continue;}if(_0x205566['version']==null){_0x3528fe[_0x6dee03(0x170)]({'sqlCode':_0x1419b2[_0x6dee03(0x180)],'error':'missing\x20remote\x20version;\x20run\x20`rabetbase\x20sql\x20pull`\x20to\x20refresh\x20version\x20info\x20first'});continue;}const _0x5b7e26=await readFile(_0x1419b2[_0x6dee03(0x165)],_0x6dee03(0x16e)),_0x397e06=stripLocalSqlMetadata(_0x5b7e26,_0x1419b2['mode']),_0x2e20ae=_0x1419b2[_0x6dee03(0x186)]||_0x205566[_0x6dee03(0x186)],_0x401c43=await resolveTargetDbBinding(_0x3d966f[_0x6dee03(0x171)],_0x1419b2,_0x205566),_0x5cdc37=await updateSqlQuery({'id':_0x205566['remoteId'],'appCode':_0x3d966f[_0x6dee03(0x171)],'sqlCode':_0x1419b2['sqlCode'],'sqlName':_0x2e20ae,'dbId':_0x401c43[_0x6dee03(0x185)],'version':_0x205566[_0x6dee03(0x194)],'sqlContent':_0x397e06,'sqlConfig':_0x205566[_0x6dee03(0x15d)]??undefined}),_0x46b1ee=_0x5cdc37[_0x6dee03(0x185)]?await getDbName(_0x3d966f['appCode'],Number(_0x5cdc37[_0x6dee03(0x185)]))[_0x6dee03(0x163)](()=>_0x401c43['dbName']):_0x401c43[_0x6dee03(0x182)];_0x491f2b[_0x6dee03(0x179)][_0x1419b2['sqlCode']]={...buildSqlLockEntry(_0x5cdc37,_0x397e06,_0x41131a,{'dbName':_0x46b1ee}),'path':_0x1419b2[_0x6dee03(0x195)],'mode':_0x205566[_0x6dee03(0x176)]},await archivePreviousSqlFileIfNeeded(_0x190cde,_0x205566['path'],_0x1419b2['relativePath']),_0x1b4ab8['push']({'sqlCode':_0x1419b2[_0x6dee03(0x180)],'remoteId':_0x205566[_0x6dee03(0x166)]});}catch(_0x36ed1c){_0x3528fe[_0x6dee03(0x170)]({'sqlCode':_0x1419b2[_0x6dee03(0x180)],'error':_0x36ed1c instanceof Error?_0x36ed1c[_0x6dee03(0x178)]:String(_0x36ed1c)});}}return _0x491f2b[_0x6dee03(0x15e)]=new Date()[_0x6dee03(0x187)](),await writeSqlLockFile(_0x190cde[_0x6dee03(0x197)],_0x4e8997),{'ok':_0x3528fe[_0x6dee03(0x16b)]===0x0,'data':{'pushed':_0x1b4ab8,'skipped':_0x394059,'failed':_0x3528fe},'message':_0x6dee03(0x189)+_0x1b4ab8[_0x6dee03(0x16b)]+'\x20pushed,\x20'+_0x394059['length']+'\x20skipped,\x20'+_0x3528fe[_0x6dee03(0x16b)]+_0x6dee03(0x17f)};}};async function archivePreviousSqlFileIfNeeded(_0x365d48,_0x543975,_0x3b38a9){const _0x115234=a128_0x262705;if(!_0x543975||_0x543975===_0x3b38a9)return;const _0x1fb02f=join(_0x365d48[_0x115234(0x172)],_0x543975);if(!await fileExists(_0x1fb02f))return;const _0x53c4a2=await moveToTrash(_0x365d48['projectRoot'],_0x365d48[_0x115234(0x196)],_0x1fb02f);await cleanupEmptyDirectories(dirname(_0x1fb02f),_0x365d48[_0x115234(0x172)]),void _0x53c4a2;}async function moveToTrash(_0x40970f,_0x37d057,_0x3333a2){const _0x14b5f2=a128_0x262705,_0x45b2af=new Date()['toISOString']()[_0x14b5f2(0x183)](/[:.]/g,'-'),_0x5fb3f5=relative(_0x40970f,_0x3333a2),_0x5ce63=join(_0x37d057,_0x45b2af,_0x5fb3f5);return await mkdir(dirname(_0x5ce63),{'recursive':!![]}),await rename(_0x3333a2,_0x5ce63),_0x5ce63;}async function cleanupEmptyDirectories(_0x1a0315,_0x514f50){const _0xa534a6=a128_0x262705;let _0x54b351=resolve(_0x1a0315);const _0x4ca826=resolve(_0x514f50);while(_0x54b351[_0xa534a6(0x16c)](''+_0x4ca826+sep)||_0x54b351===_0x4ca826){if(_0x54b351===_0x4ca826)return;try{const _0x1c955d=await readdir(_0x54b351);if(_0x1c955d[_0xa534a6(0x16b)]>0x0)return;await rmdir(_0x54b351);}catch{return;}_0x54b351=dirname(_0x54b351);}}async function resolveTargetDbBinding(_0x43f407,_0x24a020,_0x4fe7ef){const _0x2380df=a128_0x262705,_0x3cbc98=_0x24a020[_0x2380df(0x177)];if(!_0x3cbc98)return{'dbId':_0x4fe7ef[_0x2380df(0x185)],'dbName':_0x4fe7ef[_0x2380df(0x182)]};const _0xc42ed5=buildDbDirectoryName(_0x4fe7ef[_0x2380df(0x182)],_0x4fe7ef[_0x2380df(0x185)]);if(_0x3cbc98===_0xc42ed5)return{'dbId':_0x4fe7ef[_0x2380df(0x185)],'dbName':_0x4fe7ef[_0x2380df(0x182)]};const _0x28754d=parseExplicitDbDirectory(_0x3cbc98);if(_0x28754d!=null)return{'dbId':_0x28754d,'dbName':await getDbName(_0x43f407,_0x28754d)[_0x2380df(0x163)](()=>undefined)};const _0x44fc4b=await listDatabases(_0x43f407),_0x72135b=_0x44fc4b['filter'](_0x471efa=>buildDbDirectoryName(_0x471efa[_0x2380df(0x182)],_0x471efa[_0x2380df(0x185)])===_0x3cbc98);if(_0x72135b[_0x2380df(0x16b)]===0x1)return{'dbId':_0x72135b[0x0][_0x2380df(0x185)],'dbName':_0x72135b[0x0][_0x2380df(0x182)]};if(_0x72135b[_0x2380df(0x16b)]===0x0)throw CliErrors['validation'](_0x2380df(0x16f)+_0x3cbc98+'\x22\x20for\x20sqlCode\x20'+_0x24a020['sqlCode']+'.');const _0x229b54=_0x72135b[_0x2380df(0x193)](_0x4d26a7=>_0x4d26a7[_0x2380df(0x182)]+'\x20('+_0x4d26a7[_0x2380df(0x185)]+')')['join'](',\x20');throw CliErrors[_0x2380df(0x159)]('Local\x20directory\x20\x22'+_0x3cbc98+_0x2380df(0x17e)+_0x24a020['sqlCode']+':\x20'+_0x229b54);}function parseExplicitDbDirectory(_0x34bc40){const _0x4e1352=a128_0x262705,_0x5c2524=/^db-(\d+)$/['exec'](_0x34bc40);if(!_0x5c2524)return null;const _0x46b9c9=Number(_0x5c2524[0x1]);return Number[_0x4e1352(0x175)](_0x46b9c9)&&_0x46b9c9>0x0?_0x46b9c9:null;}
1
+ const a129_0x1b9372=a129_0x1cdd;(function(_0x40fa4e,_0x23e7f9){const _0x566017=a129_0x1cdd,_0x41c23f=_0x40fa4e();while(!![]){try{const _0x58aae4=-parseInt(_0x566017(0xbc))/0x1+-parseInt(_0x566017(0xe5))/0x2*(-parseInt(_0x566017(0xe6))/0x3)+parseInt(_0x566017(0xe9))/0x4+parseInt(_0x566017(0xc3))/0x5+-parseInt(_0x566017(0xdd))/0x6+-parseInt(_0x566017(0xb6))/0x7*(parseInt(_0x566017(0xd9))/0x8)+parseInt(_0x566017(0xd5))/0x9*(parseInt(_0x566017(0xc8))/0xa);if(_0x58aae4===_0x23e7f9)break;else _0x41c23f['push'](_0x41c23f['shift']());}catch(_0x1e7470){_0x41c23f['push'](_0x41c23f['shift']());}}}(a129_0x3797,0x28294));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';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 a129_0x1cdd(_0x4d550b,_0x371b10){_0x4d550b=_0x4d550b-0xaf;const _0x37978f=a129_0x3797();let _0x1cdd6e=_0x37978f[_0x4d550b];return _0x1cdd6e;}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';function a129_0x3797(){const _0x455bb9=['filter','isFinite','1172260PUJcMR','get','version','hash','sqlRootDir','utf8','toISOString','sqlCode','sqlRoot','str','force','dbDirectory','length','\x20pushed,\x20','Would\x20push\x20','push','dbId','63fPEPJi','map','sqls','lastSync','remoteId','exec','299037OnbThB','Multiple\x20local\x20SQL\x20files\x20found\x20for\x20sqlCode\x20','trashDir','Local\x20directory\x20\x22','\x22\x20matches\x20multiple\x20databases\x20for\x20sqlCode\x20','relativePath','\x22\x20for\x20sqlCode\x20','244060hWRCXd','No\x20local\x20SQL\x20files\x20found.','sqlcode','local\x20SQL\x20is\x20not\x20tracked\x20by\x20sql.lock.json;\x20use\x20`rabetbase\x20sql\x20create`\x20or\x20`rabetbase\x20sql\x20pull`\x20first','Push\x20complete:\x20','1240qtkbMw','has','Local\x20SQL\x20not\x20found:\x20','replace','startsWith','mode','message','dbName','validation','filePath','set','join','high-risk-write','30420VNvFkJ','path','No\x20database\x20matches\x20local\x20directory\x20\x22','boolean','279688dMBRGl','POST','sqlConfig','lockFilePath','1797252vwtUVu','.\x20Keep\x20only\x20one\x20file\x20under\x20its\x20sqlCode\x20directory\x20before\x20pushing.','missing\x20remote\x20version;\x20run\x20`rabetbase\x20sql\x20pull`\x20to\x20refresh\x20version\x20info\x20first','sqlName','bool','catch','Force\x20push\x20even\x20if\x20local\x20hash\x20matches\x20lock','appCode','211154DiSYqX','9PVtfjh'];a129_0x3797=function(){return _0x455bb9;};return a129_0x3797();}import{buildDbDirectoryName}from'../../core/sql-sync/utils.js';async function getTargetSqlQueries(_0x46057a,_0x3349fe,_0x24ddfc){const _0x799d5=a129_0x1cdd,_0x4056be=await scanLocalSqlQueries(_0x46057a),_0x4f440f=new Map();for(const _0x2ac5b5 of _0x4056be){if(_0x24ddfc&&_0x2ac5b5[_0x799d5(0xf0)]!==_0x24ddfc)continue;const _0x14a46a=_0x4f440f[_0x799d5(0xea)](_0x2ac5b5[_0x799d5(0xf0)])??[];_0x14a46a[_0x799d5(0xb4)](_0x2ac5b5),_0x4f440f[_0x799d5(0xd2)](_0x2ac5b5[_0x799d5(0xf0)],_0x14a46a);}if(_0x24ddfc&&!_0x4f440f[_0x799d5(0xc9)](_0x24ddfc))throw CliErrors[_0x799d5(0xd0)](_0x799d5(0xca)+_0x24ddfc);const _0x303cd3=[];for(const [_0x54c1f9,_0x592516]of _0x4f440f['entries']()){if(_0x592516['length']===0x1){_0x303cd3[_0x799d5(0xb4)](_0x592516[0x0]);continue;}const _0x98b1a3=_0x3349fe['sqls'][_0x54c1f9],_0x26b8c3=_0x98b1a3?.[_0x799d5(0xd6)],_0x385ac9=_0x26b8c3?_0x592516[_0x799d5(0xe7)](_0x1cd31b=>_0x1cd31b[_0x799d5(0xc1)]!==_0x26b8c3):_0x592516;if(_0x98b1a3&&_0x385ac9[_0x799d5(0xb1)]===0x1){_0x303cd3[_0x799d5(0xb4)](_0x385ac9[0x0]);continue;}throw CliErrors['validation'](_0x799d5(0xbd)+_0x54c1f9+_0x799d5(0xde));}return _0x303cd3;}export const sqlPush={'service':'sql','command':a129_0x1b9372(0xb4),'description':'Push\x20local\x20SQL\x20files\x20to\x20remote','risk':a129_0x1b9372(0xd4),'flags':[SQLCODE_FLAG_OPTIONAL,{'name':a129_0x1b9372(0xaf),'type':a129_0x1b9372(0xd8),'description':a129_0x1b9372(0xe3)}],async 'dryRun'(_0x201c02){const _0x1271cf=a129_0x1b9372,_0x2c5a6b=loadSqlProjectConfig(_0x201c02[_0x1271cf(0xe4)]),_0x438535=await readSqlLockFile(_0x2c5a6b[_0x1271cf(0xdc)]),{appLock:_0x2a244b}=ensureSqlLockScope(_0x438535??createEmptySqlLock(),_0x201c02[_0x1271cf(0xe4)],_0x2c5a6b[_0x1271cf(0xf1)],'push'),_0x150727=await getTargetSqlQueries(_0x2c5a6b,_0x2a244b,_0x201c02['str'](_0x1271cf(0xc5))||undefined),_0x22cd7b=[];for(const _0x465b6f of _0x150727){const _0x59afbc=await computeSqlFileHash(_0x465b6f[_0x1271cf(0xd1)]),_0x1d3899=_0x2a244b['sqls'][_0x465b6f['sqlCode']],_0xe28c44=!!_0x1d3899&&(_0x1d3899['path']!==_0x465b6f[_0x1271cf(0xc1)]||!!_0x465b6f[_0x1271cf(0xe0)]&&_0x1d3899[_0x1271cf(0xe0)]!==_0x465b6f[_0x1271cf(0xe0)]);if(!_0x201c02[_0x1271cf(0xe1)](_0x1271cf(0xaf))&&_0x1d3899&&_0x1d3899[_0x1271cf(0xec)]===_0x59afbc&&!_0xe28c44)continue;_0x22cd7b['push'](_0x465b6f[_0x1271cf(0xf0)]);}return{'method':_0x1271cf(0xda),'url':'/smartapi/custom/updateUserCustomSql','body':{'sqlCodes':_0x22cd7b,'appCode':_0x201c02['appCode']},'description':_0x1271cf(0xb3)+_0x22cd7b[_0x1271cf(0xb1)]+'\x20SQL\x20file(s)'};},async 'execute'(_0x22ea6d){const _0x2a08e2=a129_0x1b9372,_0x2d7ce3=loadSqlProjectConfig(_0x22ea6d[_0x2a08e2(0xe4)]),_0x260527=await readSqlLockFile(_0x2d7ce3[_0x2a08e2(0xdc)]),{lockData:_0x28bf5c,appLock:_0x3c6c63}=ensureSqlLockScope(_0x260527??createEmptySqlLock(),_0x22ea6d[_0x2a08e2(0xe4)],_0x2d7ce3['sqlRoot'],'push'),_0x36d19d=await getTargetSqlQueries(_0x2d7ce3,_0x3c6c63,_0x22ea6d[_0x2a08e2(0xf2)]('sqlcode')||undefined);if(_0x36d19d[_0x2a08e2(0xb1)]===0x0)return{'ok':!![],'data':{'pushed':[],'skipped':[],'failed':[]},'message':_0x2a08e2(0xc4)};const _0x2ebb35=[],_0x3cfd78=[],_0x5002e3=[];for(const _0x408300 of _0x36d19d){const _0xb3bc47=_0x3c6c63[_0x2a08e2(0xb8)][_0x408300[_0x2a08e2(0xf0)]];if(!_0xb3bc47){_0x5002e3[_0x2a08e2(0xb4)]({'sqlCode':_0x408300[_0x2a08e2(0xf0)],'error':_0x2a08e2(0xc6)});continue;}try{const _0xe0d9ad=await computeSqlFileHash(_0x408300[_0x2a08e2(0xd1)]),_0x1340d6=_0xb3bc47[_0x2a08e2(0xd6)]!==_0x408300['relativePath']||!!_0x408300[_0x2a08e2(0xe0)]&&_0xb3bc47[_0x2a08e2(0xe0)]!==_0x408300[_0x2a08e2(0xe0)];if(!_0x22ea6d[_0x2a08e2(0xe1)](_0x2a08e2(0xaf))&&_0xb3bc47['hash']===_0xe0d9ad&&!_0x1340d6){_0x3cfd78[_0x2a08e2(0xb4)]({'sqlCode':_0x408300[_0x2a08e2(0xf0)],'reason':'unchanged'});continue;}if(_0xb3bc47[_0x2a08e2(0xeb)]==null){_0x5002e3[_0x2a08e2(0xb4)]({'sqlCode':_0x408300[_0x2a08e2(0xf0)],'error':_0x2a08e2(0xdf)});continue;}const _0x46e97a=await readFile(_0x408300[_0x2a08e2(0xd1)],_0x2a08e2(0xee)),_0x453632=stripLocalSqlMetadata(_0x46e97a,_0x408300[_0x2a08e2(0xcd)]),_0x23096d=_0x408300[_0x2a08e2(0xe0)]||_0xb3bc47[_0x2a08e2(0xe0)],_0x5a4e46=await resolveTargetDbBinding(_0x22ea6d[_0x2a08e2(0xe4)],_0x408300,_0xb3bc47),_0xefd3b5=await updateSqlQuery({'id':_0xb3bc47[_0x2a08e2(0xba)],'appCode':_0x22ea6d[_0x2a08e2(0xe4)],'sqlCode':_0x408300[_0x2a08e2(0xf0)],'sqlName':_0x23096d,'dbId':_0x5a4e46['dbId'],'version':_0xb3bc47[_0x2a08e2(0xeb)],'sqlContent':_0x453632,'sqlConfig':_0xb3bc47[_0x2a08e2(0xdb)]??undefined}),_0xd8afb=_0xefd3b5[_0x2a08e2(0xb5)]?await getDbName(_0x22ea6d[_0x2a08e2(0xe4)],Number(_0xefd3b5['dbId']))[_0x2a08e2(0xe2)](()=>_0x5a4e46['dbName']):_0x5a4e46[_0x2a08e2(0xcf)];_0x3c6c63[_0x2a08e2(0xb8)][_0x408300[_0x2a08e2(0xf0)]]={...buildSqlLockEntry(_0xefd3b5,_0x453632,_0xe0d9ad,{'dbName':_0xd8afb}),'path':_0x408300[_0x2a08e2(0xc1)],'mode':_0xb3bc47['mode']},await archivePreviousSqlFileIfNeeded(_0x2d7ce3,_0xb3bc47[_0x2a08e2(0xd6)],_0x408300[_0x2a08e2(0xc1)]),_0x2ebb35[_0x2a08e2(0xb4)]({'sqlCode':_0x408300[_0x2a08e2(0xf0)],'remoteId':_0xb3bc47[_0x2a08e2(0xba)]});}catch(_0x3ff745){_0x5002e3[_0x2a08e2(0xb4)]({'sqlCode':_0x408300[_0x2a08e2(0xf0)],'error':_0x3ff745 instanceof Error?_0x3ff745[_0x2a08e2(0xce)]:String(_0x3ff745)});}}return _0x3c6c63[_0x2a08e2(0xb9)]=new Date()[_0x2a08e2(0xef)](),await writeSqlLockFile(_0x2d7ce3[_0x2a08e2(0xdc)],_0x28bf5c),{'ok':_0x5002e3['length']===0x0,'data':{'pushed':_0x2ebb35,'skipped':_0x3cfd78,'failed':_0x5002e3},'message':_0x2a08e2(0xc7)+_0x2ebb35[_0x2a08e2(0xb1)]+_0x2a08e2(0xb2)+_0x3cfd78[_0x2a08e2(0xb1)]+'\x20skipped,\x20'+_0x5002e3[_0x2a08e2(0xb1)]+'\x20failed'};}};async function archivePreviousSqlFileIfNeeded(_0x2f5223,_0x3f8053,_0x4e298e){const _0x26253a=a129_0x1b9372;if(!_0x3f8053||_0x3f8053===_0x4e298e)return;const _0x59ecdd=join(_0x2f5223[_0x26253a(0xed)],_0x3f8053);if(!await fileExists(_0x59ecdd))return;const _0x28f618=await moveToTrash(_0x2f5223['projectRoot'],_0x2f5223[_0x26253a(0xbe)],_0x59ecdd);await cleanupEmptyDirectories(dirname(_0x59ecdd),_0x2f5223['sqlRootDir']),void _0x28f618;}async function moveToTrash(_0x2c31bc,_0x42f6f5,_0x39920c){const _0x3374d8=a129_0x1b9372,_0x42cd40=new Date()[_0x3374d8(0xef)]()[_0x3374d8(0xcb)](/[:.]/g,'-'),_0x3c5a90=relative(_0x2c31bc,_0x39920c),_0x2e8b27=join(_0x42f6f5,_0x42cd40,_0x3c5a90);return await mkdir(dirname(_0x2e8b27),{'recursive':!![]}),await rename(_0x39920c,_0x2e8b27),_0x2e8b27;}async function cleanupEmptyDirectories(_0x2325d7,_0x139e07){const _0x46e0b5=a129_0x1b9372;let _0x5be4a9=resolve(_0x2325d7);const _0x56f9d6=resolve(_0x139e07);while(_0x5be4a9[_0x46e0b5(0xcc)](''+_0x56f9d6+sep)||_0x5be4a9===_0x56f9d6){if(_0x5be4a9===_0x56f9d6)return;try{const _0x4605ea=await readdir(_0x5be4a9);if(_0x4605ea[_0x46e0b5(0xb1)]>0x0)return;await rmdir(_0x5be4a9);}catch{return;}_0x5be4a9=dirname(_0x5be4a9);}}async function resolveTargetDbBinding(_0x538d74,_0x1f0743,_0x1b23cf){const _0x3faa68=a129_0x1b9372,_0x1a370c=_0x1f0743[_0x3faa68(0xb0)];if(!_0x1a370c)return{'dbId':_0x1b23cf[_0x3faa68(0xb5)],'dbName':_0x1b23cf['dbName']};const _0x8c9118=buildDbDirectoryName(_0x1b23cf[_0x3faa68(0xcf)],_0x1b23cf[_0x3faa68(0xb5)]);if(_0x1a370c===_0x8c9118)return{'dbId':_0x1b23cf['dbId'],'dbName':_0x1b23cf[_0x3faa68(0xcf)]};const _0x49fcb8=parseExplicitDbDirectory(_0x1a370c);if(_0x49fcb8!=null)return{'dbId':_0x49fcb8,'dbName':await getDbName(_0x538d74,_0x49fcb8)[_0x3faa68(0xe2)](()=>undefined)};const _0x6e9626=await listDatabases(_0x538d74),_0x3258ee=_0x6e9626[_0x3faa68(0xe7)](_0x306263=>buildDbDirectoryName(_0x306263[_0x3faa68(0xcf)],_0x306263[_0x3faa68(0xb5)])===_0x1a370c);if(_0x3258ee['length']===0x1)return{'dbId':_0x3258ee[0x0][_0x3faa68(0xb5)],'dbName':_0x3258ee[0x0][_0x3faa68(0xcf)]};if(_0x3258ee[_0x3faa68(0xb1)]===0x0)throw CliErrors[_0x3faa68(0xd0)](_0x3faa68(0xd7)+_0x1a370c+_0x3faa68(0xc2)+_0x1f0743['sqlCode']+'.');const _0x549054=_0x3258ee[_0x3faa68(0xb7)](_0x9c7f51=>_0x9c7f51[_0x3faa68(0xcf)]+'\x20('+_0x9c7f51[_0x3faa68(0xb5)]+')')[_0x3faa68(0xd3)](',\x20');throw CliErrors['validation'](_0x3faa68(0xbf)+_0x1a370c+_0x3faa68(0xc0)+_0x1f0743['sqlCode']+':\x20'+_0x549054);}function parseExplicitDbDirectory(_0x43193b){const _0x28f3cf=a129_0x1b9372,_0x22eb57=/^db-(\d+)$/[_0x28f3cf(0xbb)](_0x43193b);if(!_0x22eb57)return null;const _0x583606=Number(_0x22eb57[0x1]);return Number[_0x28f3cf(0xe8)](_0x583606)&&_0x583606>0x0?_0x583606:null;}
@@ -1 +1 @@
1
- function a129_0x478f(_0x2fcbc8,_0x390d87){_0x2fcbc8=_0x2fcbc8-0x121;const _0x1dd2ce=a129_0x1dd2();let _0x478f68=_0x1dd2ce[_0x2fcbc8];return _0x478f68;}const a129_0x53c54b=a129_0x478f;(function(_0xc41e56,_0x12592f){const _0x4e34ac=a129_0x478f,_0x45c4a3=_0xc41e56();while(!![]){try{const _0x4dda73=-parseInt(_0x4e34ac(0x12e))/0x1*(-parseInt(_0x4e34ac(0x126))/0x2)+parseInt(_0x4e34ac(0x128))/0x3*(parseInt(_0x4e34ac(0x123))/0x4)+-parseInt(_0x4e34ac(0x12b))/0x5*(-parseInt(_0x4e34ac(0x129))/0x6)+-parseInt(_0x4e34ac(0x127))/0x7+-parseInt(_0x4e34ac(0x136))/0x8+-parseInt(_0x4e34ac(0x130))/0x9*(-parseInt(_0x4e34ac(0x12d))/0xa)+-parseInt(_0x4e34ac(0x139))/0xb*(parseInt(_0x4e34ac(0x134))/0xc);if(_0x4dda73===_0x12592f)break;else _0x45c4a3['push'](_0x45c4a3['shift']());}catch(_0x836123){_0x45c4a3['push'](_0x45c4a3['shift']());}}}(a129_0x1dd2,0x7137d));import{CliErrors}from'../../errors.js';import{SQLCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const SQL_SAVE_DEPRECATED_HINT=[a129_0x53c54b(0x124),a129_0x53c54b(0x135),'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_0x53c54b(0x133)]('\x0a');function a129_0x1dd2(){const _0x4f0af9=['sqlname','17171wsutUD','validation','Deprecated:\x20use\x20sql\x20create\x20to\x20create\x20and\x20sql\x20push\x20to\x20update','2570884TSrERS','`rabetbase\x20sql\x20save`\x20has\x20been\x20deprecated.','Path\x20to\x20the\x20SQL\x20file','4306kEoinr','1857408QjBXQF','3WNhKkn','12LRukSa','Target\x20database\x20—\x20accepts\x20a\x20numeric\x20ID\x20or\x20database\x20name\x20(e.g.\x20ecommerce_db)','2209030HAeHMk','write','30BiDdMq','419ahxAWy','file','764865aLfLzq','save','description','join','11808etlClP','Create\x20new\x20SQL\x20with\x20`rabetbase\x20sql\x20create\x20--name\x20<name>\x20--db-id\x20<id>\x20--mode\x20sql|mybatisXml`.','3346288JsUdou','string'];a129_0x1dd2=function(){return _0x4f0af9;};return a129_0x1dd2();}export const sqlSave={'service':'sql','command':a129_0x53c54b(0x131),'description':a129_0x53c54b(0x122),'risk':a129_0x53c54b(0x12c),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a129_0x53c54b(0x12f),'type':a129_0x53c54b(0x137),'required':!![],'description':a129_0x53c54b(0x125)},SQLCODE_FLAG_OPTIONAL,{'name':a129_0x53c54b(0x138),'type':a129_0x53c54b(0x137),'description':'SQL\x20query\x20display\x20name'},{'name':'db','type':'string','description':a129_0x53c54b(0x12a)},{'name':a129_0x53c54b(0x132),'type':a129_0x53c54b(0x137),'description':'Query\x20description'}],async 'validate'(){const _0x4f30fd=a129_0x53c54b;throw CliErrors[_0x4f30fd(0x121)](SQL_SAVE_DEPRECATED_HINT);},async 'execute'(){const _0x43cc35=a129_0x53c54b;throw CliErrors[_0x43cc35(0x121)](SQL_SAVE_DEPRECATED_HINT);}};
1
+ function a130_0x4601(){const _0x1f1d36=['SQL\x20query\x20display\x20name','sql','456248ziVGxw','`rabetbase\x20sql\x20save`\x20has\x20been\x20deprecated.','152lGNpyL','write','description','save','join','1027341xIbxFW','validation','Target\x20database\x20—\x20accepts\x20a\x20numeric\x20ID\x20or\x20database\x20name\x20(e.g.\x20ecommerce_db)','file','742779ixaXfn','string','2443KCDvGn','2676228pdwlbT','sqlname','Path\x20to\x20the\x20SQL\x20file','Query\x20description','Create\x20new\x20SQL\x20with\x20`rabetbase\x20sql\x20create\x20--name\x20<name>\x20--db-id\x20<id>\x20--mode\x20sql|mybatisXml`.','2145170gFPFPU','1340660rKlwdy'];a130_0x4601=function(){return _0x1f1d36;};return a130_0x4601();}const a130_0x469ac5=a130_0x23f4;(function(_0x37f47d,_0x4620dd){const _0x79a0a0=a130_0x23f4,_0x530693=_0x37f47d();while(!![]){try{const _0x464e37=-parseInt(_0x79a0a0(0x72))/0x1+parseInt(_0x79a0a0(0x7b))/0x2+parseInt(_0x79a0a0(0x6e))/0x3+parseInt(_0x79a0a0(0x7e))/0x4+-parseInt(_0x79a0a0(0x7a))/0x5+parseInt(_0x79a0a0(0x75))/0x6+parseInt(_0x79a0a0(0x74))/0x7*(parseInt(_0x79a0a0(0x80))/0x8);if(_0x464e37===_0x4620dd)break;else _0x530693['push'](_0x530693['shift']());}catch(_0xe3be89){_0x530693['push'](_0x530693['shift']());}}}(a130_0x4601,0x6388f));import{CliErrors}from'../../errors.js';function a130_0x23f4(_0x3d7f85,_0x638c9c){_0x3d7f85=_0x3d7f85-0x6b;const _0x460191=a130_0x4601();let _0x23f4c5=_0x460191[_0x3d7f85];return _0x23f4c5;}import{SQLCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const SQL_SAVE_DEPRECATED_HINT=[a130_0x469ac5(0x7f),a130_0x469ac5(0x79),'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`.'][a130_0x469ac5(0x6d)]('\x0a');export const sqlSave={'service':a130_0x469ac5(0x7d),'command':a130_0x469ac5(0x6c),'description':'Deprecated:\x20use\x20sql\x20create\x20to\x20create\x20and\x20sql\x20push\x20to\x20update','risk':a130_0x469ac5(0x81),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a130_0x469ac5(0x71),'type':'string','required':!![],'description':a130_0x469ac5(0x77)},SQLCODE_FLAG_OPTIONAL,{'name':a130_0x469ac5(0x76),'type':a130_0x469ac5(0x73),'description':a130_0x469ac5(0x7c)},{'name':'db','type':a130_0x469ac5(0x73),'description':a130_0x469ac5(0x70)},{'name':a130_0x469ac5(0x6b),'type':a130_0x469ac5(0x73),'description':a130_0x469ac5(0x78)}],async 'validate'(){const _0x46a451=a130_0x469ac5;throw CliErrors[_0x46a451(0x6f)](SQL_SAVE_DEPRECATED_HINT);},async 'execute'(){throw CliErrors['validation'](SQL_SAVE_DEPRECATED_HINT);}};
@@ -1 +1 @@
1
- const a130_0x498784=a130_0x29b1;(function(_0x2c5f91,_0x320f9e){const _0x49c642=a130_0x29b1,_0x17f1af=_0x2c5f91();while(!![]){try{const _0x57f275=parseInt(_0x49c642(0x1f2))/0x1+-parseInt(_0x49c642(0x1db))/0x2+parseInt(_0x49c642(0x1e7))/0x3+-parseInt(_0x49c642(0x1d7))/0x4+-parseInt(_0x49c642(0x1e3))/0x5+-parseInt(_0x49c642(0x1d0))/0x6+parseInt(_0x49c642(0x1da))/0x7;if(_0x57f275===_0x320f9e)break;else _0x17f1af['push'](_0x17f1af['shift']());}catch(_0x17e057){_0x17f1af['push'](_0x17f1af['shift']());}}}(a130_0x5a80,0x9193c));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=a130_0x498784(0x1d9);export function buildSqlLockEntry(_0x397b73,_0x1dc104,_0x238d9c,_0xf89d7b){const _0x2252e0=a130_0x498784,_0x3dbeef=detectSqlMode(_0x1dc104);return{'path':buildSqlRelativePath(_0x397b73[_0x2252e0(0x1f6)],_0x397b73['sqlName'],_0xf89d7b?.[_0x2252e0(0x1d1)],_0x3dbeef,_0x397b73[_0x2252e0(0x1df)]),'hash':_0x238d9c,'remoteId':_0x397b73['id'],'version':_0x397b73[_0x2252e0(0x1e9)],'dbId':Number(_0x397b73[_0x2252e0(0x1df)]),'dbName':_0xf89d7b?.[_0x2252e0(0x1d1)],'sqlName':_0x397b73[_0x2252e0(0x1eb)],'sqlConfig':_0x397b73[_0x2252e0(0x1e5)]??undefined,'mode':_0x3dbeef};}function a130_0x5a80(){const _0x208745=['716060tdTmvM','split','replace','entries','dbId','length','fromEntries','test','2310810YQDuod','join','sqlConfig','question','1927638FPWVnH','sqls','version','mode','sqlName','\x20-->','sqlContent','map','trim','mybatisXml','push','483277fhsZtV','sqlRoot','includes','stderr','sqlCode','lastSync','endsWith','toLowerCase','--\x20@lovrabet.','4011144qmhmVh','dbName','\x20[y/N]\x20','<!--\x20@lovrabet.','path','apps','description','3893396wcnooX','syncedAt','.rabetbase/sql','13527682mvLbMc'];a130_0x5a80=function(){return _0x208745;};return a130_0x5a80();}export function cloneSqlLockData(_0x10922a){const _0x468a91=a130_0x498784;return{'apps':Object[_0x468a91(0x1e1)](Object[_0x468a91(0x1de)](_0x10922a[_0x468a91(0x1d5)])[_0x468a91(0x1ee)](([_0x5b4544,_0x24ab51])=>[_0x5b4544,{'sqlRoot':_0x24ab51[_0x468a91(0x1f3)],'lastSync':_0x24ab51[_0x468a91(0x1cc)],'sqls':{..._0x24ab51[_0x468a91(0x1e8)]}}]))};}export function ensureRemoteSqlContent(_0xe386fc){const _0x19f310=a130_0x498784;return _0xe386fc[_0x19f310(0x1ed)]??'';}export function buildLocalSqlFileContent(_0x270392,_0x279160,_0x27bbe3){const _0x277a92=a130_0x498784,_0x32a6ae=_0x27bbe3?.[_0x277a92(0x1ea)]??detectSqlMode(_0x279160),_0x43a141=stripLocalSqlMetadata(_0x279160,_0x32a6ae)[_0x277a92(0x1ef)](),_0xd79443=[...buildMetadataHeaderLines({'sqlCode':_0x270392['sqlCode'],'sqlName':_0x270392[_0x277a92(0x1eb)],'dbId':_0x270392[_0x277a92(0x1df)],'dbName':_0x27bbe3?.[_0x277a92(0x1d1)],'mode':_0x32a6ae,'syncedAt':_0x27bbe3?.[_0x277a92(0x1d8)],'description':_0x27bbe3?.['description']},_0x32a6ae),'',_0x43a141],_0x50d641=_0xd79443[_0x277a92(0x1e4)]('\x0a');return _0x50d641[_0x277a92(0x1cd)]('\x0a')?_0x50d641:_0x50d641+'\x0a';}export function stripLocalSqlMetadata(_0x47f298,_0x43fbda){const _0x5c37b0=a130_0x498784,_0x2b0f0e=_0x47f298[_0x5c37b0(0x1dd)](/\r\n/g,'\x0a')[_0x5c37b0(0x1dc)]('\x0a'),_0x4fbcb4=[];let _0x8578a7=0x0;if(_0x43fbda===_0x5c37b0(0x1f0))while(_0x8578a7<_0x2b0f0e['length']){const _0x528483=_0x2b0f0e[_0x8578a7]??'';if(/^\s*<!--\s*@lovrabet\./[_0x5c37b0(0x1e2)](_0x528483)){_0x8578a7++;continue;}if(_0x528483[_0x5c37b0(0x1ef)]()===''&&_0x8578a7>0x0){_0x8578a7++;continue;}break;}else while(_0x8578a7<_0x2b0f0e[_0x5c37b0(0x1e0)]){const _0x42ddfe=_0x2b0f0e[_0x8578a7]??'';if(/^\s*--\s*@lovrabet\./[_0x5c37b0(0x1e2)](_0x42ddfe)){_0x8578a7++;continue;}if(_0x42ddfe['trim']()===''&&_0x8578a7>0x0){_0x8578a7++;continue;}break;}for(;_0x8578a7<_0x2b0f0e['length'];_0x8578a7++){_0x4fbcb4[_0x5c37b0(0x1f1)](_0x2b0f0e[_0x8578a7]);}return _0x4fbcb4['join']('\x0a')['trimStart']();}export function resolveSqlMode(_0x6222dd,_0x328ba9){const _0x4ccca4=a130_0x498784;if(_0x328ba9?.[_0x4ccca4(0x1ea)])return _0x328ba9[_0x4ccca4(0x1ea)];return detectSqlMode(_0x6222dd);}export function resolveSqlFileName(_0x4833e4,_0x1a998b,_0x1b988c){const _0xfd86dd=a130_0x498784;if(_0x1b988c?.[_0xfd86dd(0x1d4)])return _0x1b988c[_0xfd86dd(0x1d4)];if(_0x1b988c?.[_0xfd86dd(0x1eb)]||_0x1b988c?.[_0xfd86dd(0x1d1)])return buildSqlRelativePath(_0x4833e4,_0x1b988c?.[_0xfd86dd(0x1eb)],_0x1b988c?.[_0xfd86dd(0x1d1)],resolveSqlMode(_0x1a998b,_0x1b988c),_0x1b988c?.[_0xfd86dd(0x1df)]);return buildDefaultSqlFileName(_0x4833e4,resolveSqlMode(_0x1a998b,_0x1b988c));}export function resolveSqlLocalDir(_0x3f0b96,_0x53417c){return join(_0x3f0b96,SQL_LOCAL_REL_DIR,_0x53417c);}function a130_0x29b1(_0x181efa,_0x249ad2){_0x181efa=_0x181efa-0x1cc;const _0x5a8008=a130_0x5a80();let _0x29b1e2=_0x5a8008[_0x181efa];return _0x29b1e2;}export async function confirmForceOverwrite(_0xbb6115){const _0xc2e5b=a130_0x498784,_0x1c7dea=createInterface({'input':process['stdin'],'output':process[_0xc2e5b(0x1f5)]}),_0x4f2b6e=await new Promise(_0x43ba0c=>{const _0x104d97=_0xc2e5b;_0x1c7dea[_0x104d97(0x1e6)](_0xbb6115+_0x104d97(0x1d2),_0x43ba0c);});return _0x1c7dea['close'](),['y','yes'][_0xc2e5b(0x1f4)](_0x4f2b6e[_0xc2e5b(0x1ef)]()[_0xc2e5b(0x1ce)]());}export function findSqlLockScope(_0x5ab6de,_0x33429d){const _0x140d36=a130_0x498784;return _0x5ab6de[_0x140d36(0x1d5)][_0x33429d];}function buildMetadataHeaderLines(_0x40b8cf,_0x44bdae){const _0xd14992=a130_0x498784,_0x8e10eb=[[_0xd14992(0x1f6),_0x40b8cf[_0xd14992(0x1f6)]],[_0xd14992(0x1eb),_0x40b8cf[_0xd14992(0x1eb)]],[_0xd14992(0x1df),_0x40b8cf['dbId']],[_0xd14992(0x1d1),_0x40b8cf[_0xd14992(0x1d1)]],[_0xd14992(0x1ea),_0x40b8cf[_0xd14992(0x1ea)]],[_0xd14992(0x1d8),_0x40b8cf['syncedAt']],[_0xd14992(0x1d6),_0x40b8cf[_0xd14992(0x1d6)]]];if(_0x44bdae===_0xd14992(0x1f0))return _0x8e10eb['filter'](([,_0x1ce02d])=>_0x1ce02d!==undefined&&_0x1ce02d!==null&&String(_0x1ce02d)[_0xd14992(0x1ef)]()!=='')[_0xd14992(0x1ee)](([_0x58eeab,_0x564fd2])=>_0xd14992(0x1d3)+_0x58eeab+':\x20'+String(_0x564fd2)+_0xd14992(0x1ec));return _0x8e10eb['filter'](([,_0xe5de99])=>_0xe5de99!==undefined&&_0xe5de99!==null&&String(_0xe5de99)[_0xd14992(0x1ef)]()!=='')[_0xd14992(0x1ee)](([_0x4d1e40,_0x2411c2])=>_0xd14992(0x1cf)+_0x4d1e40+':\x20'+String(_0x2411c2));}
1
+ const a131_0x2ade56=a131_0x2838;(function(_0x3f9dba,_0x3d57b2){const _0x14454c=a131_0x2838,_0x3b3eeb=_0x3f9dba();while(!![]){try{const _0x2830c2=-parseInt(_0x14454c(0x1e3))/0x1*(parseInt(_0x14454c(0x1d8))/0x2)+-parseInt(_0x14454c(0x1f1))/0x3+parseInt(_0x14454c(0x1f5))/0x4*(parseInt(_0x14454c(0x1d0))/0x5)+-parseInt(_0x14454c(0x1f4))/0x6+-parseInt(_0x14454c(0x1d6))/0x7*(-parseInt(_0x14454c(0x1e2))/0x8)+-parseInt(_0x14454c(0x1d5))/0x9+-parseInt(_0x14454c(0x1e6))/0xa*(-parseInt(_0x14454c(0x1eb))/0xb);if(_0x2830c2===_0x3d57b2)break;else _0x3b3eeb['push'](_0x3b3eeb['shift']());}catch(_0x8d25bb){_0x3b3eeb['push'](_0x3b3eeb['shift']());}}}(a131_0x3514,0x3b8d0));import{createInterface}from'node:readline';import{join}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath,detectSqlMode}from'../../core/sql-sync/utils.js';function a131_0x2838(_0x29ba2f,_0x66e581){_0x29ba2f=_0x29ba2f-0x1ce;const _0x35149a=a131_0x3514();let _0x2838e8=_0x35149a[_0x29ba2f];return _0x2838e8;}export const SQL_LOCAL_REL_DIR=a131_0x2ade56(0x1e9);export function buildSqlLockEntry(_0x509fb3,_0x5b598b,_0x4f43f4,_0x3ebf19){const _0x21770b=a131_0x2ade56,_0x3b076d=detectSqlMode(_0x5b598b);return{'path':buildSqlRelativePath(_0x509fb3[_0x21770b(0x1ee)],_0x509fb3[_0x21770b(0x1d9)],_0x3ebf19?.['dbName'],_0x3b076d,_0x509fb3[_0x21770b(0x1de)]),'hash':_0x4f43f4,'remoteId':_0x509fb3['id'],'version':_0x509fb3['version'],'dbId':Number(_0x509fb3['dbId']),'dbName':_0x3ebf19?.[_0x21770b(0x1db)],'sqlName':_0x509fb3[_0x21770b(0x1d9)],'sqlConfig':_0x509fb3['sqlConfig']??undefined,'mode':_0x3b076d};}export function cloneSqlLockData(_0x18d671){const _0x199fb9=a131_0x2ade56;return{'apps':Object['fromEntries'](Object[_0x199fb9(0x1e5)](_0x18d671[_0x199fb9(0x1df)])[_0x199fb9(0x1ec)](([_0xc5e1a9,_0x55a296])=>[_0xc5e1a9,{'sqlRoot':_0x55a296[_0x199fb9(0x1d4)],'lastSync':_0x55a296[_0x199fb9(0x1f6)],'sqls':{..._0x55a296[_0x199fb9(0x1e4)]}}]))};}export function ensureRemoteSqlContent(_0x349fcd){const _0x555cca=a131_0x2ade56;return _0x349fcd[_0x555cca(0x1ed)]??'';}export function buildLocalSqlFileContent(_0x194d48,_0x17c602,_0x241502){const _0x4c21a7=a131_0x2ade56,_0x1f30dd=_0x241502?.[_0x4c21a7(0x1ea)]??detectSqlMode(_0x17c602),_0x3f9c15=stripLocalSqlMetadata(_0x17c602,_0x1f30dd)[_0x4c21a7(0x1d3)](),_0x31f76c=[...buildMetadataHeaderLines({'sqlCode':_0x194d48[_0x4c21a7(0x1ee)],'sqlName':_0x194d48[_0x4c21a7(0x1d9)],'dbId':_0x194d48['dbId'],'dbName':_0x241502?.[_0x4c21a7(0x1db)],'mode':_0x1f30dd,'syncedAt':_0x241502?.['syncedAt'],'description':_0x241502?.['description']},_0x1f30dd),'',_0x3f9c15],_0x381e09=_0x31f76c[_0x4c21a7(0x1dc)]('\x0a');return _0x381e09['endsWith']('\x0a')?_0x381e09:_0x381e09+'\x0a';}export function stripLocalSqlMetadata(_0xe0efe1,_0x1c027f){const _0x20ce8f=a131_0x2ade56,_0x5c4ab6=_0xe0efe1[_0x20ce8f(0x1f2)](/\r\n/g,'\x0a')[_0x20ce8f(0x1e8)]('\x0a'),_0x465eb1=[];let _0x1e5412=0x0;if(_0x1c027f===_0x20ce8f(0x1d1))while(_0x1e5412<_0x5c4ab6['length']){const _0x364aa0=_0x5c4ab6[_0x1e5412]??'';if(/^\s*<!--\s*@lovrabet\./[_0x20ce8f(0x1dd)](_0x364aa0)){_0x1e5412++;continue;}if(_0x364aa0[_0x20ce8f(0x1d3)]()===''&&_0x1e5412>0x0){_0x1e5412++;continue;}break;}else while(_0x1e5412<_0x5c4ab6['length']){const _0x54dc3b=_0x5c4ab6[_0x1e5412]??'';if(/^\s*--\s*@lovrabet\./['test'](_0x54dc3b)){_0x1e5412++;continue;}if(_0x54dc3b['trim']()===''&&_0x1e5412>0x0){_0x1e5412++;continue;}break;}for(;_0x1e5412<_0x5c4ab6[_0x20ce8f(0x1f0)];_0x1e5412++){_0x465eb1[_0x20ce8f(0x1da)](_0x5c4ab6[_0x1e5412]);}return _0x465eb1[_0x20ce8f(0x1dc)]('\x0a')[_0x20ce8f(0x1cf)]();}export function resolveSqlMode(_0x176a55,_0x46a40f){if(_0x46a40f?.['mode'])return _0x46a40f['mode'];return detectSqlMode(_0x176a55);}export function resolveSqlFileName(_0x1594f2,_0x28d879,_0x4fb761){const _0xe7b8d9=a131_0x2ade56;if(_0x4fb761?.[_0xe7b8d9(0x1ce)])return _0x4fb761['path'];if(_0x4fb761?.[_0xe7b8d9(0x1d9)]||_0x4fb761?.[_0xe7b8d9(0x1db)])return buildSqlRelativePath(_0x1594f2,_0x4fb761?.['sqlName'],_0x4fb761?.[_0xe7b8d9(0x1db)],resolveSqlMode(_0x28d879,_0x4fb761),_0x4fb761?.[_0xe7b8d9(0x1de)]);return buildDefaultSqlFileName(_0x1594f2,resolveSqlMode(_0x28d879,_0x4fb761));}export function resolveSqlLocalDir(_0x5eed83,_0x47d820){return join(_0x5eed83,SQL_LOCAL_REL_DIR,_0x47d820);}export async function confirmForceOverwrite(_0x51a6bc){const _0x610ac0=a131_0x2ade56,_0x54c4c2=createInterface({'input':process['stdin'],'output':process['stderr']}),_0x4f196b=await new Promise(_0x49b8d2=>{const _0x32cf2e=a131_0x2838;_0x54c4c2[_0x32cf2e(0x1e7)](_0x51a6bc+_0x32cf2e(0x1e0),_0x49b8d2);});return _0x54c4c2[_0x610ac0(0x1d2)](),['y','yes'][_0x610ac0(0x1e1)](_0x4f196b[_0x610ac0(0x1d3)]()['toLowerCase']());}function a131_0x3514(){const _0x2f4543=['sqlContent','sqlCode','syncedAt','length','267087gdNJOi','replace','description','2020728mNdHaC','4964KSJfIs','lastSync','<!--\x20@lovrabet.','path','trimStart','1725OYxBTF','mybatisXml','close','trim','sqlRoot','46611dtnwkl','253169iUdrtB','filter','690jHrhha','sqlName','push','dbName','join','test','dbId','apps','\x20[y/N]\x20','includes','96zewXtM','1007IFBZYa','sqls','entries','16180InMxCD','question','split','.rabetbase/sql','mode','1089kBBifw','map'];a131_0x3514=function(){return _0x2f4543;};return a131_0x3514();}export function findSqlLockScope(_0x237b96,_0x1de3db){return _0x237b96['apps'][_0x1de3db];}function buildMetadataHeaderLines(_0x1f5673,_0x3e79c6){const _0x35eb57=a131_0x2ade56,_0x2e5ede=[[_0x35eb57(0x1ee),_0x1f5673[_0x35eb57(0x1ee)]],[_0x35eb57(0x1d9),_0x1f5673[_0x35eb57(0x1d9)]],[_0x35eb57(0x1de),_0x1f5673[_0x35eb57(0x1de)]],[_0x35eb57(0x1db),_0x1f5673[_0x35eb57(0x1db)]],[_0x35eb57(0x1ea),_0x1f5673[_0x35eb57(0x1ea)]],['syncedAt',_0x1f5673[_0x35eb57(0x1ef)]],[_0x35eb57(0x1f3),_0x1f5673[_0x35eb57(0x1f3)]]];if(_0x3e79c6===_0x35eb57(0x1d1))return _0x2e5ede['filter'](([,_0x2f3575])=>_0x2f3575!==undefined&&_0x2f3575!==null&&String(_0x2f3575)[_0x35eb57(0x1d3)]()!=='')[_0x35eb57(0x1ec)](([_0x5510db,_0x24e937])=>_0x35eb57(0x1f7)+_0x5510db+':\x20'+String(_0x24e937)+'\x20-->');return _0x2e5ede[_0x35eb57(0x1d7)](([,_0x4427bf])=>_0x4427bf!==undefined&&_0x4427bf!==null&&String(_0x4427bf)[_0x35eb57(0x1d3)]()!=='')[_0x35eb57(0x1ec)](([_0x1b04e3,_0x18cfb8])=>'--\x20@lovrabet.'+_0x1b04e3+':\x20'+String(_0x18cfb8));}
@@ -1 +1 @@
1
- const a131_0x39fec8=a131_0x2e87;(function(_0xdc149,_0x332a29){const _0x5f504d=a131_0x2e87,_0x169c76=_0xdc149();while(!![]){try{const _0x148d2a=parseInt(_0x5f504d(0x13e))/0x1*(-parseInt(_0x5f504d(0x144))/0x2)+-parseInt(_0x5f504d(0x14b))/0x3*(-parseInt(_0x5f504d(0x155))/0x4)+-parseInt(_0x5f504d(0x15f))/0x5+parseInt(_0x5f504d(0x13f))/0x6*(-parseInt(_0x5f504d(0x14e))/0x7)+parseInt(_0x5f504d(0x146))/0x8*(-parseInt(_0x5f504d(0x141))/0x9)+parseInt(_0x5f504d(0x15d))/0xa*(parseInt(_0x5f504d(0x14a))/0xb)+parseInt(_0x5f504d(0x13d))/0xc;if(_0x148d2a===_0x332a29)break;else _0x169c76['push'](_0x169c76['shift']());}catch(_0x3b2bca){_0x169c76['push'](_0x169c76['shift']());}}}(a131_0x5bff,0xf041d));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';function a131_0x2e87(_0x30baed,_0x2c111f){_0x30baed=_0x30baed-0x139;const _0x5bffd5=a131_0x5bff();let _0x2e87db=_0x5bffd5[_0x30baed];return _0x2e87db;}import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile}from'../../core/sql-sync/lock.js';const PAGE_SIZE=0x64;function a131_0x5bff(){const _0x1f3b90=['3824799jPlwGG','map','paging','501634qyUHIP','Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally','length','lockFilePath','sql','relativePath','4ecZHGJ','lockKey','status','tableData','totalCount','path','\x20missing,\x20','has','130BWWLoh','sqlName','8629645ErjtnQ','hash','\x20unchanged','\x20added,\x20','push','\x20remote-only','26070984vuSTbf','20454pySWfD','12ezXWdZ','All\x20SQL\x20queries\x20are\x20in\x20sync.','45rftAUi','appCode','boolean','50pLAnsP','keys','146904wovQOr','remote','sqlRoot','sqls','7612zWPlBt'];a131_0x5bff=function(){return _0x1f3b90;};return a131_0x5bff();}async function fetchAllSqlCodes(_0x4a2f11){const _0x162665=a131_0x2e87,_0x3c3195=[];let _0x4909f3=0x1;while(!![]){const _0x4273fa=await listSqlQueries(_0x4a2f11,{'currentPage':_0x4909f3,'pageSize':PAGE_SIZE}),_0x5905e7=_0x4273fa[_0x162665(0x158)]??[];_0x3c3195['push'](..._0x5905e7[_0x162665(0x14c)](_0x157486=>_0x157486['sqlCode']));if(_0x5905e7['length']===0x0)break;const _0x1e2d68=_0x4273fa[_0x162665(0x14d)]?.[_0x162665(0x159)];if(_0x1e2d68!=null?_0x3c3195[_0x162665(0x151)]>=_0x1e2d68:_0x5905e7[_0x162665(0x151)]<PAGE_SIZE)break;_0x4909f3++;}return _0x3c3195;}export const sqlStatus={'service':a131_0x39fec8(0x153),'command':'status','description':a131_0x39fec8(0x14f),'risk':'read','flags':[{'name':a131_0x39fec8(0x147),'type':a131_0x39fec8(0x143),'description':a131_0x39fec8(0x150)}],async 'execute'(_0x5ba92d){const _0x417906=a131_0x39fec8,_0x325e64=loadSqlProjectConfig(_0x5ba92d[_0x417906(0x142)]),_0x320428=await readSqlLockFile(_0x325e64[_0x417906(0x152)]),{appLock:_0x5b11a9}=ensureSqlLockScope(_0x320428??createEmptySqlLock(),_0x325e64['appCode'],_0x325e64[_0x417906(0x148)],_0x417906(0x157)),_0x3f887c=await scanLocalSqlQueries(_0x325e64),_0x2d02b2=[],_0xb538c3=[],_0x3e1fff=[],_0x451ffa=[],_0x417274=new Set(_0x3f887c[_0x417906(0x14c)](_0x4b5e20=>_0x4b5e20[_0x417906(0x156)]));for(const _0x17063d of _0x3f887c){const _0x2d6066=await computeSqlFileHash(_0x17063d['filePath']),_0x28a245=_0x5b11a9[_0x417906(0x149)][_0x17063d[_0x417906(0x156)]],_0x5aab99=!!_0x28a245&&_0x28a245[_0x417906(0x15a)]!==_0x17063d[_0x417906(0x154)],_0x24f090=!!_0x28a245&&!!_0x17063d[_0x417906(0x15e)]&&_0x28a245[_0x417906(0x15e)]!==_0x17063d[_0x417906(0x15e)];if(!_0x28a245)_0x2d02b2['push'](_0x17063d[_0x417906(0x156)]);else _0x28a245[_0x417906(0x160)]!==_0x2d6066||_0x5aab99||_0x24f090?_0xb538c3[_0x417906(0x13b)](_0x17063d['lockKey']):_0x3e1fff[_0x417906(0x13b)](_0x17063d[_0x417906(0x156)]);}for(const _0x4d3460 of Object[_0x417906(0x145)](_0x5b11a9[_0x417906(0x149)])){!_0x417274[_0x417906(0x15c)](_0x4d3460)&&_0x451ffa[_0x417906(0x13b)](_0x4d3460);}const _0x24b22e=[];if(_0x5ba92d['bool'](_0x417906(0x147))){const _0x11c0e1=await fetchAllSqlCodes(_0x5ba92d['appCode']);for(const _0x1da903 of _0x11c0e1){!_0x417274[_0x417906(0x15c)](_0x1da903)&&!_0x5b11a9[_0x417906(0x149)][_0x1da903]&&_0x24b22e['push'](_0x1da903);}}const _0x3a623d=_0x2d02b2['length']===0x0&&_0xb538c3['length']===0x0&&_0x451ffa[_0x417906(0x151)]===0x0&&_0x24b22e['length']===0x0;return{'ok':!![],'data':{'added':_0x2d02b2,'modified':_0xb538c3,'missing':_0x451ffa,'unchanged':_0x3e1fff,'remoteOnly':_0x24b22e},'message':_0x3a623d?_0x417906(0x140):_0x2d02b2['length']+_0x417906(0x13a)+_0xb538c3['length']+'\x20modified,\x20'+_0x451ffa[_0x417906(0x151)]+_0x417906(0x15b)+_0x3e1fff['length']+_0x417906(0x139)+(_0x24b22e[_0x417906(0x151)]>0x0?',\x20'+_0x24b22e['length']+_0x417906(0x13c):'')};}};
1
+ const a132_0x27805c=a132_0x4890;(function(_0x162279,_0x130e9a){const _0x23199f=a132_0x4890,_0x3963a5=_0x162279();while(!![]){try{const _0x359d2e=-parseInt(_0x23199f(0x1b5))/0x1+parseInt(_0x23199f(0x1bb))/0x2+parseInt(_0x23199f(0x1b6))/0x3*(parseInt(_0x23199f(0x1c1))/0x4)+-parseInt(_0x23199f(0x1c2))/0x5*(-parseInt(_0x23199f(0x1cc))/0x6)+parseInt(_0x23199f(0x1d2))/0x7+parseInt(_0x23199f(0x1d1))/0x8+parseInt(_0x23199f(0x1d3))/0x9*(-parseInt(_0x23199f(0x1cf))/0xa);if(_0x359d2e===_0x130e9a)break;else _0x3963a5['push'](_0x3963a5['shift']());}catch(_0x41d2e2){_0x3963a5['push'](_0x3963a5['shift']());}}}(a132_0x144f,0x5471e));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 a132_0x4890(_0x5857ab,_0xdd9b10){_0x5857ab=_0x5857ab-0x1b1;const _0x144fb7=a132_0x144f();let _0x4890dc=_0x144fb7[_0x5857ab];return _0x4890dc;}async function fetchAllSqlCodes(_0x231ed9){const _0x4ec49d=a132_0x4890,_0x2f59ce=[];let _0xfa7fe2=0x1;while(!![]){const _0x34b1e5=await listSqlQueries(_0x231ed9,{'currentPage':_0xfa7fe2,'pageSize':PAGE_SIZE}),_0x5d108e=_0x34b1e5[_0x4ec49d(0x1ba)]??[];_0x2f59ce['push'](..._0x5d108e[_0x4ec49d(0x1ca)](_0x4e6be7=>_0x4e6be7[_0x4ec49d(0x1b7)]));if(_0x5d108e[_0x4ec49d(0x1d0)]===0x0)break;const _0x3e4914=_0x34b1e5[_0x4ec49d(0x1c4)]?.[_0x4ec49d(0x1ce)];if(_0x3e4914!=null?_0x2f59ce['length']>=_0x3e4914:_0x5d108e[_0x4ec49d(0x1d0)]<PAGE_SIZE)break;_0xfa7fe2++;}return _0x2f59ce;}function a132_0x144f(){const _0x185091=['read','102WtFZNf','sqls','totalCount','2025580MkObiH','length','5344976hsSpfP','2519832wUzXXK','45QPANft','status','sqlName','Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','relativePath','sql','129731CZNroY','142347joKQDl','sqlCode','remote','appCode','tableData','799302AMKlRs','lockFilePath','filePath','Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally','keys','\x20unchanged','4gSTYYP','3885VwHshf','All\x20SQL\x20queries\x20are\x20in\x20sync.','paging','hash','push','\x20added,\x20','lockKey','boolean','map'];a132_0x144f=function(){return _0x185091;};return a132_0x144f();}export const sqlStatus={'service':a132_0x27805c(0x1b4),'command':a132_0x27805c(0x1d4),'description':a132_0x27805c(0x1b2),'risk':a132_0x27805c(0x1cb),'flags':[{'name':a132_0x27805c(0x1b8),'type':a132_0x27805c(0x1c9),'description':a132_0x27805c(0x1be)}],async 'execute'(_0x25eebb){const _0x49f428=a132_0x27805c,_0x217343=loadSqlProjectConfig(_0x25eebb[_0x49f428(0x1b9)]),_0x369485=await readSqlLockFile(_0x217343[_0x49f428(0x1bc)]),{appLock:_0x39e4cf}=ensureSqlLockScope(_0x369485??createEmptySqlLock(),_0x217343[_0x49f428(0x1b9)],_0x217343['sqlRoot'],_0x49f428(0x1d4)),_0x27e964=await scanLocalSqlQueries(_0x217343),_0x4f8d13=[],_0x1a4c3b=[],_0x36f681=[],_0x136241=[],_0x55b080=new Set(_0x27e964['map'](_0x1797ae=>_0x1797ae[_0x49f428(0x1c8)]));for(const _0x50cc06 of _0x27e964){const _0x2189b5=await computeSqlFileHash(_0x50cc06[_0x49f428(0x1bd)]),_0x2ae45b=_0x39e4cf['sqls'][_0x50cc06[_0x49f428(0x1c8)]],_0x232c16=!!_0x2ae45b&&_0x2ae45b['path']!==_0x50cc06[_0x49f428(0x1b3)],_0x12dcd2=!!_0x2ae45b&&!!_0x50cc06[_0x49f428(0x1b1)]&&_0x2ae45b[_0x49f428(0x1b1)]!==_0x50cc06[_0x49f428(0x1b1)];if(!_0x2ae45b)_0x4f8d13[_0x49f428(0x1c6)](_0x50cc06[_0x49f428(0x1c8)]);else _0x2ae45b[_0x49f428(0x1c5)]!==_0x2189b5||_0x232c16||_0x12dcd2?_0x1a4c3b[_0x49f428(0x1c6)](_0x50cc06['lockKey']):_0x36f681[_0x49f428(0x1c6)](_0x50cc06['lockKey']);}for(const _0x4745e5 of Object[_0x49f428(0x1bf)](_0x39e4cf[_0x49f428(0x1cd)])){!_0x55b080['has'](_0x4745e5)&&_0x136241[_0x49f428(0x1c6)](_0x4745e5);}const _0x5718df=[];if(_0x25eebb['bool']('remote')){const _0x110dbd=await fetchAllSqlCodes(_0x25eebb['appCode']);for(const _0x2177b2 of _0x110dbd){!_0x55b080['has'](_0x2177b2)&&!_0x39e4cf['sqls'][_0x2177b2]&&_0x5718df[_0x49f428(0x1c6)](_0x2177b2);}}const _0x244706=_0x4f8d13[_0x49f428(0x1d0)]===0x0&&_0x1a4c3b['length']===0x0&&_0x136241[_0x49f428(0x1d0)]===0x0&&_0x5718df['length']===0x0;return{'ok':!![],'data':{'added':_0x4f8d13,'modified':_0x1a4c3b,'missing':_0x136241,'unchanged':_0x36f681,'remoteOnly':_0x5718df},'message':_0x244706?_0x49f428(0x1c3):_0x4f8d13[_0x49f428(0x1d0)]+_0x49f428(0x1c7)+_0x1a4c3b['length']+'\x20modified,\x20'+_0x136241[_0x49f428(0x1d0)]+'\x20missing,\x20'+_0x36f681[_0x49f428(0x1d0)]+_0x49f428(0x1c0)+(_0x5718df[_0x49f428(0x1d0)]>0x0?',\x20'+_0x5718df[_0x49f428(0x1d0)]+'\x20remote-only':'')};}};
@@ -1 +1 @@
1
- const a132_0x41bc94=a132_0x4bce;(function(_0x14dc42,_0x4c76bb){const _0x3f8c08=a132_0x4bce,_0x223ef6=_0x14dc42();while(!![]){try{const _0x176908=-parseInt(_0x3f8c08(0x1e6))/0x1*(-parseInt(_0x3f8c08(0x1fd))/0x2)+-parseInt(_0x3f8c08(0x1ea))/0x3+-parseInt(_0x3f8c08(0x210))/0x4*(-parseInt(_0x3f8c08(0x1f0))/0x5)+-parseInt(_0x3f8c08(0x1e4))/0x6*(parseInt(_0x3f8c08(0x20b))/0x7)+-parseInt(_0x3f8c08(0x203))/0x8+-parseInt(_0x3f8c08(0x1f2))/0x9+-parseInt(_0x3f8c08(0x1ed))/0xa*(-parseInt(_0x3f8c08(0x1e3))/0xb);if(_0x176908===_0x4c76bb)break;else _0x223ef6['push'](_0x223ef6['shift']());}catch(_0x30b250){_0x223ef6['push'](_0x223ef6['shift']());}}}(a132_0xe58b,0x4dfb6));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';function a132_0x4bce(_0x1c3aeb,_0x46b67a){_0x1c3aeb=_0x1c3aeb-0x1e1;const _0xe58b54=a132_0xe58b();let _0x4bce84=_0xe58b54[_0x1c3aeb];return _0x4bce84;}import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';function a132_0xe58b(){const _0x260ce4=['split','10pmdqjU','Table\x20\x22','utf-8','65ZXojVo','push','3738321ouHpFC','schema:','SQL\x20schema\x20validation','flagMissing','from','appCode','toLowerCase','name','trim','isArray','get','4nkCbGZ','tables','Provide\x20--file\x20or\x20--sql','reason','valid','fields','1255944RZNpLf','validate','sql','tableName','\x22\x20not\x20found\x20in\x20any\x20dataset','sqlType','File\x20not\x20found:\x20','\x22\x20not\x20found\x20or\x20not\x20accessible','1365rtlFWu','length','size','map','validation','13648bSDNTa','filter','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','dbtableConfig','message','file','14098447mVUABm','15144lMgqLZ','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','253382wpBaEV','read','str','type','1346523QIvlYe','schemas'];a132_0xe58b=function(){return _0x260ce4;};return a132_0xe58b();}export const sqlValidate={'service':'sql','command':a132_0x41bc94(0x204),'description':a132_0x41bc94(0x1e5),'risk':a132_0x41bc94(0x1e7),'flags':[{'name':a132_0x41bc94(0x1e2),'type':'string','description':'Path\x20to\x20the\x20SQL\x20file\x20to\x20validate'},{'name':'sql','type':'string','description':a132_0x41bc94(0x212)},{'name':a132_0x41bc94(0x1eb),'type':'string','description':'Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against'}],async 'execute'(_0x37f273){const _0x2095cc=a132_0x41bc94,_0x2ccd18=_0x37f273[_0x2095cc(0x1e8)]('file'),_0x3e401f=_0x37f273[_0x2095cc(0x1e8)](_0x2095cc(0x205));if(!_0x2ccd18&&!_0x3e401f)throw CliErrors[_0x2095cc(0x1f5)](_0x2095cc(0x1e2),_0x2095cc(0x1ff));let _0x18987f;if(_0x2ccd18){const _0x41d610=resolve(process['cwd'](),_0x2ccd18);if(!existsSync(_0x41d610))throw CliErrors[_0x2095cc(0x20f)](_0x2095cc(0x209)+_0x41d610);_0x18987f=readFileSync(_0x41d610,_0x2095cc(0x1ef));}else _0x18987f=_0x3e401f;const _0x48d1e1=validateSql(_0x18987f),_0x223725={'valid':_0x48d1e1['valid'],'sqlType':_0x48d1e1[_0x2095cc(0x208)][_0x2095cc(0x1e9)],'isSelectOnly':_0x48d1e1[_0x2095cc(0x208)]['isSelectOnly'],'isDangerous':_0x48d1e1[_0x2095cc(0x208)]['isDangerous'],'tables':_0x48d1e1[_0x2095cc(0x1fe)],'parameters':_0x48d1e1['parameters'],'message':_0x48d1e1['message']};_0x48d1e1[_0x2095cc(0x208)]['reason']&&(_0x223725[_0x2095cc(0x200)]=_0x48d1e1['sqlType'][_0x2095cc(0x200)]);const _0x12b55d=_0x37f273['str']('schemas');if(_0x12b55d&&_0x48d1e1[_0x2095cc(0x201)]){const _0x5eba53=_0x12b55d[_0x2095cc(0x1ec)](',')['map'](_0x413c91=>_0x413c91[_0x2095cc(0x1fa)]())[_0x2095cc(0x211)](Boolean),_0x35f4a2=[],_0x452762=filterDbTableBackedDatasets(await listDatasets(_0x37f273[_0x2095cc(0x1f7)])),_0x5b0042=new Map(_0x452762['map'](_0x36ea9a=>[_0x36ea9a['dbtableConfig']?.[_0x2095cc(0x206)]?.[_0x2095cc(0x1f8)](),_0x36ea9a]));for(const _0x44686f of _0x48d1e1[_0x2095cc(0x1fe)]){const _0x5b60bf=_0x5b0042[_0x2095cc(0x1fc)](_0x44686f[_0x2095cc(0x1f8)]());!_0x5b60bf&&_0x35f4a2[_0x2095cc(0x1f1)](_0x2095cc(0x1ee)+_0x44686f+_0x2095cc(0x207));}for(const _0x2faec8 of _0x5eba53){let _0x50e188;try{_0x50e188=await getDatasetDetail(_0x2faec8);}catch{_0x35f4a2['push']('Dataset\x20\x22'+_0x2faec8+_0x2095cc(0x20a));continue;}assertDatasetIsDbTableBacked(_0x50e188,_0x2095cc(0x1f4));const _0x25cad7=Array[_0x2095cc(0x1fb)](_0x50e188[_0x2095cc(0x202)])?_0x50e188[_0x2095cc(0x202)]:[],_0x27ba7e=new Set(_0x25cad7[_0x2095cc(0x20e)](_0x32ce2d=>_0x32ce2d[_0x2095cc(0x1f9)]?.['toLowerCase']())),_0x4b00b1=_0x50e188[_0x2095cc(0x213)]?.[_0x2095cc(0x206)]||_0x50e188[_0x2095cc(0x206)]||_0x2faec8;_0x223725[_0x2095cc(0x1f3)+_0x4b00b1]={'code':_0x2faec8,'tableName':_0x4b00b1,'fieldCount':_0x27ba7e[_0x2095cc(0x20d)],'fields':Array[_0x2095cc(0x1f6)](_0x27ba7e)};}_0x35f4a2[_0x2095cc(0x20c)]>0x0&&(_0x223725['schemaWarnings']=_0x35f4a2);}return{'ok':_0x48d1e1[_0x2095cc(0x201)],'data':_0x223725,'message':_0x48d1e1[_0x2095cc(0x1e1)]};}};
1
+ const a133_0x4f65bf=a133_0x2e6e;function a133_0x2c83(){const _0x2ece71=['Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','schemas','flagMissing','validate','tableName','2381682gEsKxK','validation','appCode','\x22\x20not\x20found\x20in\x20any\x20dataset','from','string','fields','48eJngyC','toLowerCase','sqlType','Dataset\x20\x22','\x22\x20not\x20found\x20or\x20not\x20accessible','push','trim','26239719COylzA','Table\x20\x22','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','file','utf-8','803GawUCb','str','dbtableConfig','File\x20not\x20found:\x20','isSelectOnly','map','8xWYAoC','reason','read','72oAdget','1226869ANrNHc','359620svZvLA','message','93355SzPgJE','isArray','valid','length','1586KYybLu','sql','1689855gIrBdb'];a133_0x2c83=function(){return _0x2ece71;};return a133_0x2c83();}(function(_0x2be77a,_0x3e5c20){const _0x5529d7=a133_0x2e6e,_0x5d1ba2=_0x2be77a();while(!![]){try{const _0x4d2278=parseInt(_0x5529d7(0x185))/0x1*(-parseInt(_0x5529d7(0x16a))/0x2)+parseInt(_0x5529d7(0x16c))/0x3+-parseInt(_0x5529d7(0x18b))/0x4*(parseInt(_0x5529d7(0x166))/0x5)+-parseInt(_0x5529d7(0x172))/0x6+parseInt(_0x5529d7(0x163))/0x7*(-parseInt(_0x5529d7(0x179))/0x8)+-parseInt(_0x5529d7(0x162))/0x9*(parseInt(_0x5529d7(0x164))/0xa)+parseInt(_0x5529d7(0x180))/0xb;if(_0x4d2278===_0x3e5c20)break;else _0x5d1ba2['push'](_0x5d1ba2['shift']());}catch(_0xa0e4cc){_0x5d1ba2['push'](_0x5d1ba2['shift']());}}}(a133_0x2c83,0x836ec));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a133_0x2e6e(_0x3431fb,_0x166c47){_0x3431fb=_0x3431fb-0x162;const _0x2c8344=a133_0x2c83();let _0x2e6eea=_0x2c8344[_0x3431fb];return _0x2e6eea;}import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a133_0x4f65bf(0x16b),'command':a133_0x4f65bf(0x170),'description':'Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','risk':a133_0x4f65bf(0x18d),'flags':[{'name':a133_0x4f65bf(0x183),'type':'string','description':a133_0x4f65bf(0x16d)},{'name':'sql','type':a133_0x4f65bf(0x177),'description':'Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)'},{'name':'schemas','type':'string','description':a133_0x4f65bf(0x182)}],async 'execute'(_0x4f68e1){const _0x4e6485=a133_0x4f65bf,_0x30cda0=_0x4f68e1['str']('file'),_0x1389f2=_0x4f68e1[_0x4e6485(0x186)]('sql');if(!_0x30cda0&&!_0x1389f2)throw CliErrors[_0x4e6485(0x16f)](_0x4e6485(0x183),'Provide\x20--file\x20or\x20--sql');let _0x278c64;if(_0x30cda0){const _0x159cbf=resolve(process['cwd'](),_0x30cda0);if(!existsSync(_0x159cbf))throw CliErrors[_0x4e6485(0x173)](_0x4e6485(0x188)+_0x159cbf);_0x278c64=readFileSync(_0x159cbf,_0x4e6485(0x184));}else _0x278c64=_0x1389f2;const _0x55822c=validateSql(_0x278c64),_0x10edb0={'valid':_0x55822c[_0x4e6485(0x168)],'sqlType':_0x55822c['sqlType']['type'],'isSelectOnly':_0x55822c['sqlType'][_0x4e6485(0x189)],'isDangerous':_0x55822c[_0x4e6485(0x17b)]['isDangerous'],'tables':_0x55822c['tables'],'parameters':_0x55822c['parameters'],'message':_0x55822c[_0x4e6485(0x165)]};_0x55822c[_0x4e6485(0x17b)][_0x4e6485(0x18c)]&&(_0x10edb0[_0x4e6485(0x18c)]=_0x55822c[_0x4e6485(0x17b)]['reason']);const _0x3083a4=_0x4f68e1[_0x4e6485(0x186)](_0x4e6485(0x16e));if(_0x3083a4&&_0x55822c[_0x4e6485(0x168)]){const _0x58c32b=_0x3083a4['split'](',')[_0x4e6485(0x18a)](_0x361d38=>_0x361d38[_0x4e6485(0x17f)]())['filter'](Boolean),_0x58f9bb=[],_0x516a14=filterDbTableBackedDatasets(await listDatasets(_0x4f68e1[_0x4e6485(0x174)])),_0x4955ba=new Map(_0x516a14[_0x4e6485(0x18a)](_0x32ddca=>[_0x32ddca[_0x4e6485(0x187)]?.[_0x4e6485(0x171)]?.[_0x4e6485(0x17a)](),_0x32ddca]));for(const _0x4d3f46 of _0x55822c['tables']){const _0x4b7c06=_0x4955ba['get'](_0x4d3f46[_0x4e6485(0x17a)]());!_0x4b7c06&&_0x58f9bb[_0x4e6485(0x17e)](_0x4e6485(0x181)+_0x4d3f46+_0x4e6485(0x175));}for(const _0x4db01b of _0x58c32b){let _0x3db4e9;try{_0x3db4e9=await getDatasetDetail(_0x4db01b);}catch{_0x58f9bb[_0x4e6485(0x17e)](_0x4e6485(0x17c)+_0x4db01b+_0x4e6485(0x17d));continue;}assertDatasetIsDbTableBacked(_0x3db4e9,'SQL\x20schema\x20validation');const _0x1934ec=Array[_0x4e6485(0x167)](_0x3db4e9['fields'])?_0x3db4e9[_0x4e6485(0x178)]:[],_0x350469=new Set(_0x1934ec[_0x4e6485(0x18a)](_0x462bfc=>_0x462bfc['name']?.[_0x4e6485(0x17a)]())),_0x295d43=_0x3db4e9[_0x4e6485(0x187)]?.[_0x4e6485(0x171)]||_0x3db4e9[_0x4e6485(0x171)]||_0x4db01b;_0x10edb0['schema:'+_0x295d43]={'code':_0x4db01b,'tableName':_0x295d43,'fieldCount':_0x350469['size'],'fields':Array[_0x4e6485(0x176)](_0x350469)};}_0x58f9bb[_0x4e6485(0x169)]>0x0&&(_0x10edb0['schemaWarnings']=_0x58f9bb);}return{'ok':_0x55822c[_0x4e6485(0x168)],'data':_0x10edb0,'message':_0x55822c[_0x4e6485(0x165)]};}};
@@ -1 +1 @@
1
- const a133_0x15e34f=a133_0x3c83;(function(_0x2f0aad,_0x2194c){const _0x12c457=a133_0x3c83,_0x8413ab=_0x2f0aad();while(!![]){try{const _0x31293d=-parseInt(_0x12c457(0x1b9))/0x1*(-parseInt(_0x12c457(0x1b7))/0x2)+parseInt(_0x12c457(0x1ae))/0x3*(-parseInt(_0x12c457(0x1bc))/0x4)+-parseInt(_0x12c457(0x19a))/0x5*(-parseInt(_0x12c457(0x1a4))/0x6)+-parseInt(_0x12c457(0x1bf))/0x7+-parseInt(_0x12c457(0x1c4))/0x8*(-parseInt(_0x12c457(0x1bd))/0x9)+parseInt(_0x12c457(0x1aa))/0xa*(-parseInt(_0x12c457(0x1c0))/0xb)+-parseInt(_0x12c457(0x1c5))/0xc*(-parseInt(_0x12c457(0x1be))/0xd);if(_0x31293d===_0x2194c)break;else _0x8413ab['push'](_0x8413ab['shift']());}catch(_0x58be47){_0x8413ab['push'](_0x8413ab['shift']());}}}(a133_0x402e,0x42f71));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=['cookie','accessKey','locale','format','riskLevel'];export const TOP_LEVEL_CONFIG_KEYS=new Set([a133_0x15e34f(0x1ba),'env',a133_0x15e34f(0x1a2),a133_0x15e34f(0x1a8),a133_0x15e34f(0x1b5),a133_0x15e34f(0x1a5),a133_0x15e34f(0x1a3)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x12279a){const _0x4bf914=a133_0x15e34f;return[..._0x12279a][_0x4bf914(0x1ad)](',\x20');}function a133_0x3c83(_0x5bc5e7,_0x3b357a){_0x5bc5e7=_0x5bc5e7-0x199;const _0x402ea8=a133_0x402e();let _0x3c8389=_0x402ea8[_0x5bc5e7];return _0x3c8389;}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x5a54fa){const _0x1d1bf8=a133_0x15e34f;return TOP_LEVEL_CONFIG_KEYS[_0x1d1bf8(0x1b6)](_0x5a54fa);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x3f3f56=a133_0x15e34f;return _0x3f3f56(0x19f)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a133_0x15e34f(0x1ab),'apiDir':a133_0x15e34f(0x1a3),'cookie':a133_0x15e34f(0x1b5),'accessKey':a133_0x15e34f(0x1a5),'defaultFormat':a133_0x15e34f(0x1a8),'pageSize':a133_0x15e34f(0x1b1),'riskLevel':'riskLevel','locale':a133_0x15e34f(0x1a2)};export function getAppProfileFlagDefs(){const _0x3d9c50=a133_0x15e34f;return[{'name':'env','type':_0x3d9c50(0x1bb),'description':_0x3d9c50(0x19d),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':_0x3d9c50(0x1bb),'description':'API\x20directory\x20path'},{'name':_0x3d9c50(0x1b5),'type':_0x3d9c50(0x1bb),'description':'Auth\x20cookie','hidden':!![]},{'name':_0x3d9c50(0x1a5),'type':_0x3d9c50(0x1bb),'description':_0x3d9c50(0x19e),'hidden':!![]},{'name':_0x3d9c50(0x1a7),'type':'string','description':_0x3d9c50(0x1a9),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':_0x3d9c50(0x199),'description':'Default\x20page\x20size'},{'name':_0x3d9c50(0x1b8),'type':_0x3d9c50(0x1bb),'description':_0x3d9c50(0x1c3),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x3d9c50(0x1bb),'description':_0x3d9c50(0x19c)}];}export function collectAppProfileOverrides(_0x112386){const _0xdcc871=a133_0x15e34f,_0x56bfef={};for(const [_0x1aef55,_0x5ba305]of Object[_0xdcc871(0x1b2)](APP_PROFILE_FLAG_KEY_MAP)){const _0x1e7ab9=_0x112386(_0x1aef55);if(!_0x1e7ab9)continue;_0x56bfef[_0x5ba305]=_0x5ba305===_0xdcc871(0x1b1)?Number(_0x1e7ab9):_0x1e7ab9;}return _0x56bfef;}export function buildAppProfileListFields(_0x2d23ea){const _0x59b48d=a133_0x15e34f;return{'env':_0x2d23ea[_0x59b48d(0x1ab)]??null,'apiDir':_0x2d23ea['apiDir']??null,'hasCookie':!!_0x2d23ea[_0x59b48d(0x1b5)],'hasAccessKey':!!_0x2d23ea[_0x59b48d(0x1a5)],'format':_0x2d23ea['format']??null,'pageSize':_0x2d23ea[_0x59b48d(0x1b1)]??null,'riskLevel':_0x2d23ea[_0x59b48d(0x1b8)]??null,'locale':_0x2d23ea[_0x59b48d(0x1a2)]??null};}export function buildAppDoctorFields(_0x5e766c,_0x4866cc){const _0x598aa1=a133_0x15e34f;return{'env':{'value':_0x5e766c[_0x598aa1(0x1ab)]||_0x4866cc[_0x598aa1(0x1ab)],'source':_0x5e766c['env']?_0x598aa1(0x1c1):'inherit'},'apiDir':{'value':_0x5e766c[_0x598aa1(0x1a3)]||_0x4866cc[_0x598aa1(0x1a3)],'source':_0x5e766c['apiDir']?_0x598aa1(0x1c1):_0x598aa1(0x1af)},'cookie':{'value':_0x5e766c['cookie']||_0x4866cc['cookie'],'source':_0x5e766c[_0x598aa1(0x1b5)]?_0x598aa1(0x1c1):'inherit'},'accessKey':{'value':_0x5e766c[_0x598aa1(0x1a5)]||_0x4866cc['accessKey'],'source':_0x5e766c[_0x598aa1(0x1a5)]?_0x598aa1(0x1c1):_0x598aa1(0x1af)}};}export function buildCanonicalAppConfig(_0x5eb711,_0x2c557f){const _0x59f6b6=a133_0x15e34f,_0x1013a7=_0x5eb711[_0x59f6b6(0x1a0)](_0x141523=>String(_0x141523||'')['trim']())[_0x59f6b6(0x1b3)](Boolean);if(_0x1013a7[_0x59f6b6(0x1b4)]===0x0)return{};const _0x51aee0={};for(const _0x682b44 of _0x1013a7){_0x51aee0[_0x682b44]=_0x2c557f?{'appcode':_0x682b44,'env':_0x2c557f}:{'appcode':_0x682b44};}return{'apps':_0x51aee0,'defaultApp':_0x1013a7[0x0]};}export function buildCanonicalProjectConfig(_0x36448e,_0x53c5a2){const _0x2e5b16=a133_0x15e34f,{appCodes:appCodes=[],env:_0x3d4e73,metadata:_0x1a99e0}=_0x53c5a2,_0x30115c={..._0x36448e,..._0x1a99e0||{}};delete _0x30115c['appcode'],delete _0x30115c[_0x2e5b16(0x1c1)];if(_0x3d4e73)_0x30115c['env']=_0x3d4e73;else!_0x30115c['env']&&(_0x30115c[_0x2e5b16(0x1ab)]=DEFAULT_CONFIG_VALUES[_0x2e5b16(0x1ab)]);const _0x390ba8=buildCanonicalAppConfig(appCodes,_0x30115c['env']);return Object[_0x2e5b16(0x1ac)](_0x390ba8)['length']>0x0&&(_0x30115c[_0x2e5b16(0x19b)]=_0x390ba8[_0x2e5b16(0x19b)],_0x30115c[_0x2e5b16(0x1c2)]=_0x390ba8[_0x2e5b16(0x1c2)]),_0x30115c;}function a133_0x402e(){const _0x38d522=['filter','length','cookie','has','187604QsjSnq','riskLevel','2FuBDfk','appcode','string','355648keznRG','156771XEfOUA','13uChxxJ','1666770nqZXxJ','3174292MNGgJT','app','defaultApp','Risk\x20level','88ORrJpt','6091812JzufrE','number','15095GOkeZq','apps','Locale','Target\x20environment','Access\x20key','Config\x20key\x20(','map','toLowerCase','locale','apiDir','6aPfTdR','accessKey','en-US','defaultFormat','format','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','10PVxMyS','env','keys','join','3FqnGXP','inherit','zh-CN','pageSize','entries'];a133_0x402e=function(){return _0x38d522;};return a133_0x402e();}const LOCALE_MAP={'zh':a133_0x15e34f(0x1b0),'zh-cn':a133_0x15e34f(0x1b0),'zh_cn':'zh-CN','en':a133_0x15e34f(0x1a6),'en-us':a133_0x15e34f(0x1a6),'en_us':a133_0x15e34f(0x1a6)};export function normalizeLocale(_0x361413){const _0x340f19=a133_0x15e34f;if(!_0x361413)return null;return LOCALE_MAP[_0x361413[_0x340f19(0x1a1)]()]??null;}
1
+ const a134_0x234a1c=a134_0x2fe0;function a134_0x2fe0(_0x45e25c,_0x189f18){_0x45e25c=_0x45e25c-0x1c9;const _0x211513=a134_0x2115();let _0x2fe044=_0x211513[_0x45e25c];return _0x2fe044;}(function(_0x24f304,_0x2f5303){const _0x5b8284=a134_0x2fe0,_0x5ef78b=_0x24f304();while(!![]){try{const _0x4127c0=parseInt(_0x5b8284(0x1e1))/0x1+parseInt(_0x5b8284(0x1da))/0x2+parseInt(_0x5b8284(0x1e4))/0x3*(parseInt(_0x5b8284(0x1e0))/0x4)+parseInt(_0x5b8284(0x1de))/0x5+parseInt(_0x5b8284(0x1ec))/0x6+parseInt(_0x5b8284(0x1d3))/0x7*(parseInt(_0x5b8284(0x1d4))/0x8)+-parseInt(_0x5b8284(0x1cd))/0x9;if(_0x4127c0===_0x2f5303)break;else _0x5ef78b['push'](_0x5ef78b['shift']());}catch(_0x596ce){_0x5ef78b['push'](_0x5ef78b['shift']());}}}(a134_0x2115,0xf0b1b));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=[a134_0x234a1c(0x1ca),a134_0x234a1c(0x1d6),a134_0x234a1c(0x1dd),a134_0x234a1c(0x1df),a134_0x234a1c(0x1e7)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a134_0x234a1c(0x1eb),a134_0x234a1c(0x1c9),a134_0x234a1c(0x1dd),a134_0x234a1c(0x1df),a134_0x234a1c(0x1ca),'accessKey',a134_0x234a1c(0x1d2)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0xdbcf52){const _0xabd74a=a134_0x234a1c;return[..._0xdbcf52][_0xabd74a(0x1db)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x331947){const _0x122bf2=a134_0x234a1c;return TOP_LEVEL_CONFIG_KEYS[_0x122bf2(0x1d9)](_0x331947);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':'env','apiDir':a134_0x234a1c(0x1d2),'cookie':'cookie','accessKey':a134_0x234a1c(0x1d6),'defaultFormat':a134_0x234a1c(0x1df),'pageSize':a134_0x234a1c(0x1e6),'riskLevel':a134_0x234a1c(0x1e7),'locale':a134_0x234a1c(0x1dd)};export function getAppProfileFlagDefs(){const _0xb631cf=a134_0x234a1c;return[{'name':_0xb631cf(0x1c9),'type':_0xb631cf(0x1e5),'description':_0xb631cf(0x1e3),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0xb631cf(0x1d2),'type':_0xb631cf(0x1e5),'description':_0xb631cf(0x1d1)},{'name':_0xb631cf(0x1ca),'type':_0xb631cf(0x1e5),'description':_0xb631cf(0x1e9),'hidden':!![]},{'name':'accessKey','type':_0xb631cf(0x1e5),'description':_0xb631cf(0x1d7),'hidden':!![]},{'name':_0xb631cf(0x1cf),'type':'string','description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0xb631cf(0x1e6),'type':'number','description':'Default\x20page\x20size'},{'name':_0xb631cf(0x1e7),'type':'string','description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':_0xb631cf(0x1dd),'type':_0xb631cf(0x1e5),'description':_0xb631cf(0x1ed)}];}export function collectAppProfileOverrides(_0xb291b6){const _0x238b97=a134_0x234a1c,_0x31df0b={};for(const [_0x339b4,_0x47a8c3]of Object[_0x238b97(0x1cc)](APP_PROFILE_FLAG_KEY_MAP)){const _0x53bb7b=_0xb291b6(_0x339b4);if(!_0x53bb7b)continue;_0x31df0b[_0x47a8c3]=_0x47a8c3===_0x238b97(0x1e6)?Number(_0x53bb7b):_0x53bb7b;}return _0x31df0b;}export function buildAppProfileListFields(_0x2afe5b){const _0x18944d=a134_0x234a1c;return{'env':_0x2afe5b[_0x18944d(0x1c9)]??null,'apiDir':_0x2afe5b['apiDir']??null,'hasCookie':!!_0x2afe5b['cookie'],'hasAccessKey':!!_0x2afe5b[_0x18944d(0x1d6)],'format':_0x2afe5b[_0x18944d(0x1df)]??null,'pageSize':_0x2afe5b[_0x18944d(0x1e6)]??null,'riskLevel':_0x2afe5b['riskLevel']??null,'locale':_0x2afe5b[_0x18944d(0x1dd)]??null};}export function buildAppDoctorFields(_0x90eba2,_0x444e1b){const _0x281fb6=a134_0x234a1c;return{'env':{'value':_0x90eba2[_0x281fb6(0x1c9)]||_0x444e1b[_0x281fb6(0x1c9)],'source':_0x90eba2[_0x281fb6(0x1c9)]?'app':_0x281fb6(0x1d0)},'apiDir':{'value':_0x90eba2[_0x281fb6(0x1d2)]||_0x444e1b[_0x281fb6(0x1d2)],'source':_0x90eba2[_0x281fb6(0x1d2)]?'app':_0x281fb6(0x1d0)},'cookie':{'value':_0x90eba2['cookie']||_0x444e1b['cookie'],'source':_0x90eba2[_0x281fb6(0x1ca)]?'app':_0x281fb6(0x1d0)},'accessKey':{'value':_0x90eba2['accessKey']||_0x444e1b['accessKey'],'source':_0x90eba2[_0x281fb6(0x1d6)]?_0x281fb6(0x1ef):_0x281fb6(0x1d0)}};}export function buildCanonicalAppConfig(_0x274d62,_0x3bbbd9){const _0x4b0734=a134_0x234a1c,_0x179d6c=_0x274d62[_0x4b0734(0x1e2)](_0xb9a99c=>String(_0xb9a99c||'')['trim']())[_0x4b0734(0x1ee)](Boolean);if(_0x179d6c[_0x4b0734(0x1cb)]===0x0)return{};const _0xc06cf1={};for(const _0x439274 of _0x179d6c){_0xc06cf1[_0x439274]=_0x3bbbd9?{'appcode':_0x439274,'env':_0x3bbbd9}:{'appcode':_0x439274};}return{'apps':_0xc06cf1,'defaultApp':_0x179d6c[0x0]};}function a134_0x2115(){const _0x3ec048=['en-US','has','1324306gGvKla','join','keys','locale','9324045UghEeJ','format','653948CxQiEA','1794814nZjiaj','map','Target\x20environment','9fFIYjn','string','pageSize','riskLevel','apps','Auth\x20cookie','zh-CN','appcode','10970622xcLmmx','Locale','filter','app','env','cookie','length','entries','66027951tgyAyR','toLowerCase','defaultFormat','inherit','API\x20directory\x20path','apiDir','48244UcalOi','1952KLkSfc','defaultApp','accessKey','Access\x20key'];a134_0x2115=function(){return _0x3ec048;};return a134_0x2115();}export function buildCanonicalProjectConfig(_0x3e2971,_0x51cef5){const _0x30cf7=a134_0x234a1c,{appCodes:appCodes=[],env:_0x139a75,metadata:_0x2ed8c7}=_0x51cef5,_0x24a684={..._0x3e2971,..._0x2ed8c7||{}};delete _0x24a684[_0x30cf7(0x1eb)],delete _0x24a684[_0x30cf7(0x1ef)];if(_0x139a75)_0x24a684[_0x30cf7(0x1c9)]=_0x139a75;else!_0x24a684[_0x30cf7(0x1c9)]&&(_0x24a684[_0x30cf7(0x1c9)]=DEFAULT_CONFIG_VALUES[_0x30cf7(0x1c9)]);const _0x38e608=buildCanonicalAppConfig(appCodes,_0x24a684['env']);return Object[_0x30cf7(0x1dc)](_0x38e608)[_0x30cf7(0x1cb)]>0x0&&(_0x24a684[_0x30cf7(0x1e8)]=_0x38e608[_0x30cf7(0x1e8)],_0x24a684[_0x30cf7(0x1d5)]=_0x38e608[_0x30cf7(0x1d5)]),_0x24a684;}const LOCALE_MAP={'zh':a134_0x234a1c(0x1ea),'zh-cn':a134_0x234a1c(0x1ea),'zh_cn':'zh-CN','en':'en-US','en-us':a134_0x234a1c(0x1d8),'en_us':a134_0x234a1c(0x1d8)};export function normalizeLocale(_0x10c757){const _0x569cdd=a134_0x234a1c;if(!_0x10c757)return null;return LOCALE_MAP[_0x10c757[_0x569cdd(0x1ce)]()]??null;}
@@ -1 +1 @@
1
- function a134_0x2b80(_0x51832b,_0x11ef30){_0x51832b=_0x51832b-0x15a;const _0x1dd06b=a134_0x1dd0();let _0x2b8018=_0x1dd06b[_0x51832b];return _0x2b8018;}function a134_0x1dd0(){const _0x552fdc=['3095128qpIZKx','6831081qmuXaV','10Obeqrr','1BNFrBP','2840319qtIxza','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','6CJoser','2938184eZfkjE','2875980fgSqAZ','16lbiRem','11582417VsMFds','3563707OwhYrR'];a134_0x1dd0=function(){return _0x552fdc;};return a134_0x1dd0();}const a134_0x19f2e7=a134_0x2b80;(function(_0x4ea6d1,_0x40e160){const _0x1b11e4=a134_0x2b80,_0x59f103=_0x4ea6d1();while(!![]){try{const _0x57657a=parseInt(_0x1b11e4(0x165))/0x1*(parseInt(_0x1b11e4(0x15d))/0x2)+-parseInt(_0x1b11e4(0x15a))/0x3+parseInt(_0x1b11e4(0x162))/0x4*(parseInt(_0x1b11e4(0x164))/0x5)+-parseInt(_0x1b11e4(0x15c))/0x6*(parseInt(_0x1b11e4(0x161))/0x7)+-parseInt(_0x1b11e4(0x15f))/0x8*(parseInt(_0x1b11e4(0x163))/0x9)+-parseInt(_0x1b11e4(0x15e))/0xa+parseInt(_0x1b11e4(0x160))/0xb;if(_0x57657a===_0x40e160)break;else _0x59f103['push'](_0x59f103['shift']());}catch(_0x14d3cb){_0x59f103['push'](_0x59f103['shift']());}}}(a134_0x1dd0,0xc54b1));export const CLI_VERSION_POLICY_URL=a134_0x19f2e7(0x15b);
1
+ const a135_0x2ed5e3=a135_0x422f;(function(_0xae8105,_0x35700d){const _0x500590=a135_0x422f,_0x36e45d=_0xae8105();while(!![]){try{const _0x33aab9=parseInt(_0x500590(0x152))/0x1*(-parseInt(_0x500590(0x153))/0x2)+parseInt(_0x500590(0x159))/0x3*(parseInt(_0x500590(0x15b))/0x4)+-parseInt(_0x500590(0x158))/0x5*(-parseInt(_0x500590(0x157))/0x6)+parseInt(_0x500590(0x15c))/0x7+-parseInt(_0x500590(0x156))/0x8*(parseInt(_0x500590(0x15a))/0x9)+parseInt(_0x500590(0x15e))/0xa*(parseInt(_0x500590(0x15d))/0xb)+parseInt(_0x500590(0x154))/0xc;if(_0x33aab9===_0x35700d)break;else _0x36e45d['push'](_0x36e45d['shift']());}catch(_0x8a1b6b){_0x36e45d['push'](_0x36e45d['shift']());}}}(a135_0x4db8,0x9796d));function a135_0x422f(_0x1925e7,_0x1e4e1a){_0x1925e7=_0x1925e7-0x152;const _0x4db8d2=a135_0x4db8();let _0x422f19=_0x4db8d2[_0x1925e7];return _0x422f19;}export const CLI_VERSION_POLICY_URL=a135_0x2ed5e3(0x155);function a135_0x4db8(){const _0x1ea3b8=['114HenMEx','9yUFcfc','10108KTtRzu','2259348wwOyjp','121RUEOdg','684320rCKHhn','1050859bMoIUe','2frDQHs','3272616CyACsk','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','72928CkNyEH','24hKqNEt','295780ithUjl'];a135_0x4db8=function(){return _0x1ea3b8;};return a135_0x4db8();}
@@ -1 +1 @@
1
- const a135_0x254817=a135_0x3ad3;(function(_0x343391,_0x21c514){const _0x4e1c27=a135_0x3ad3,_0x22775d=_0x343391();while(!![]){try{const _0x5a802b=parseInt(_0x4e1c27(0xc6))/0x1+-parseInt(_0x4e1c27(0xf9))/0x2*(-parseInt(_0x4e1c27(0xcb))/0x3)+parseInt(_0x4e1c27(0xa4))/0x4*(parseInt(_0x4e1c27(0xf6))/0x5)+-parseInt(_0x4e1c27(0x9f))/0x6*(parseInt(_0x4e1c27(0xc7))/0x7)+parseInt(_0x4e1c27(0xf3))/0x8+-parseInt(_0x4e1c27(0xa8))/0x9*(parseInt(_0x4e1c27(0xeb))/0xa)+parseInt(_0x4e1c27(0xc2))/0xb*(-parseInt(_0x4e1c27(0xc5))/0xc);if(_0x5a802b===_0x21c514)break;else _0x22775d['push'](_0x22775d['shift']());}catch(_0x1b1246){_0x22775d['push'](_0x22775d['shift']());}}}(a135_0x4a44,0x40ae4));export const CLI_BIN_NAME=a135_0x254817(0xa0);export const CLI_DISPLAY_NAME=a135_0x254817(0xc1);function a135_0x3ad3(_0x2401c2,_0x2273e1){_0x2401c2=_0x2401c2-0x93;const _0x4a440a=a135_0x4a44();let _0x3ad350=_0x4a440a[_0x2401c2];return _0x3ad350;}export const NPM_PACKAGE_NAME=a135_0x254817(0x100);function a135_0x4a44(){const _0x5ceeee=['<name>','sqlName','Code\x20filter','Override\x20appcode','Preview\x20operation\x20without\x20executing','description','sql','descriptionFile','Expected\x20affected\x20count','project','schemas','Operation\x20type','Skip\x20import\x20generation','sql-name','Keyword\x20filter','Show\x20help','Alias\x20for\x20--non-interactive','File\x20path','production\x20|\x20daily','skip-imports','SQL\x20code','operation','Config\x20value','DB\x20ID','file','Force\x20non-interactive\x20mode\x20(CI)','4172950FiFtSZ','Environment','dryRun','Use\x20remote','env','db-id','function-node','app','2491424vVOyBx','key','yes','1717610LtWWBg','Output\x20format','Force\x20overwrite','10CmmyOE','global','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Clear','Schemas','sqlname','JSON\x20params','@lovrabet/rabetbase-cli','<expr>','Select\x20app\x20profile\x20by\x20name','Confirm\x20destructive\x20action','confirm','Use\x20project\x20config\x20scope','non-interactive','sqlcode','operation-type','boolean','force','expected-count','clear','dbid','22314TqhQQc','rabetbase','Title','Description\x20file','output','4qkKcMt','string','fromEntries','code','9PZknQJ','Output\x20path','watch','help','Apply\x20to\x20all','SQL\x20string','params','keyword','expectedCount','functionNode','Page\x20size','target','enableBffSave','appcode','remote','Watch\x20mode','type','skipImports','nonInteractive','pagesize','page','<code>','verbose','Use\x20global\x20config\x20scope','Record\x20ID','Rabetbase\x20CLI','869VyoFPu','Enable\x20BFF\x20save','map','76152uHRwVn','188533sNclyk','21ActqRA','value','title','SQL\x20name','210741VfpqPY','Page\x20number','name','format','all','Name'];a135_0x4a44=function(){return _0x5ceeee;};return a135_0x4a44();}export const GLOBAL_FLAGS=[{'name':a135_0x254817(0xb5),'meowKey':a135_0x254817(0xb5),'type':a135_0x254817(0xa5),'description':a135_0x254817(0xd4),'hint':a135_0x254817(0xbd)},{'name':a135_0x254817(0xf2),'meowKey':a135_0x254817(0xf2),'type':a135_0x254817(0xa5),'description':a135_0x254817(0x93),'hint':a135_0x254817(0xd1)},{'name':a135_0x254817(0xef),'meowKey':'env','type':a135_0x254817(0xa5),'description':a135_0x254817(0xec),'hint':a135_0x254817(0xe3)},{'name':a135_0x254817(0xce),'meowKey':'format','type':a135_0x254817(0xa5),'description':a135_0x254817(0xf7),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a135_0x254817(0xa5),'description':a135_0x254817(0xfb),'hint':a135_0x254817(0x101)},{'name':'dry-run','meowKey':a135_0x254817(0xed),'type':'boolean','description':a135_0x254817(0xd5)},{'name':a135_0x254817(0xf5),'meowKey':'yes','type':a135_0x254817(0x9a),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a135_0x254817(0x97),'meowKey':a135_0x254817(0xba),'type':a135_0x254817(0x9a),'description':a135_0x254817(0xea)},{'name':a135_0x254817(0xfa),'meowKey':'global','type':'boolean','description':a135_0x254817(0xbf)},{'name':a135_0x254817(0xda),'meowKey':'project','type':a135_0x254817(0x9a),'description':a135_0x254817(0x96)},{'name':'ci','meowKey':'ci','type':a135_0x254817(0x9a),'description':a135_0x254817(0xe1),'hidden':!![]},{'name':'help','meowKey':a135_0x254817(0xab),'type':a135_0x254817(0x9a),'description':a135_0x254817(0xe0)},{'name':'name','meowKey':a135_0x254817(0xcd),'type':a135_0x254817(0xa5),'description':a135_0x254817(0xd0),'hidden':!![]},{'name':'title','meowKey':a135_0x254817(0xc9),'type':a135_0x254817(0xa5),'description':a135_0x254817(0xa1),'hidden':!![]},{'name':a135_0x254817(0x9d),'meowKey':a135_0x254817(0x9d),'type':a135_0x254817(0x9a),'description':a135_0x254817(0xfc),'hidden':!![]},{'name':a135_0x254817(0xaa),'meowKey':a135_0x254817(0xaa),'type':'boolean','description':a135_0x254817(0xb7),'hidden':!![]},{'name':a135_0x254817(0xa3),'meowKey':'output','type':a135_0x254817(0xa5),'description':a135_0x254817(0xa9),'hidden':!![]},{'name':a135_0x254817(0xae),'meowKey':a135_0x254817(0xae),'type':a135_0x254817(0xa5),'description':a135_0x254817(0xff),'hidden':!![]},{'name':'datasetcode','meowKey':'datasetcode','type':a135_0x254817(0xa5),'description':'Dataset\x20code','hidden':!![]},{'name':a135_0x254817(0xcf),'meowKey':a135_0x254817(0xcf),'type':a135_0x254817(0x9a),'description':a135_0x254817(0xac),'hidden':!![]},{'name':'enable-bff-save','meowKey':a135_0x254817(0xb4),'type':a135_0x254817(0x9a),'description':a135_0x254817(0xc3),'hidden':!![]},{'name':'id','meowKey':'id','type':a135_0x254817(0xa5),'description':a135_0x254817(0xc0),'hidden':!![]},{'name':a135_0x254817(0xb8),'meowKey':'type','type':'string','description':'Type\x20filter','hidden':!![]},{'name':'file','meowKey':a135_0x254817(0xe9),'type':a135_0x254817(0xa5),'description':a135_0x254817(0xe2),'hidden':!![]},{'name':a135_0x254817(0x98),'meowKey':'sqlcode','type':a135_0x254817(0xa5),'description':a135_0x254817(0xe5),'hidden':!![]},{'name':a135_0x254817(0xde),'meowKey':a135_0x254817(0xd2),'type':a135_0x254817(0xa5),'description':a135_0x254817(0xca),'hidden':!![]},{'name':a135_0x254817(0xfe),'meowKey':a135_0x254817(0xfe),'type':a135_0x254817(0xa5),'description':'SQL\x20name','hidden':!![]},{'name':a135_0x254817(0xf0),'meowKey':'dbId','type':a135_0x254817(0xa5),'description':a135_0x254817(0xe8),'hidden':!![]},{'name':a135_0x254817(0x9e),'meowKey':a135_0x254817(0x9e),'type':a135_0x254817(0xa5),'description':'DB\x20ID','hidden':!![]},{'name':a135_0x254817(0xd6),'meowKey':a135_0x254817(0xd6),'type':a135_0x254817(0xa5),'description':'Description','hidden':!![]},{'name':'description-file','meowKey':a135_0x254817(0xd8),'type':a135_0x254817(0xa5),'description':a135_0x254817(0xa2),'hidden':!![]},{'name':'page','meowKey':a135_0x254817(0xbc),'type':'string','description':a135_0x254817(0xcc),'hidden':!![]},{'name':a135_0x254817(0xbb),'meowKey':a135_0x254817(0xbb),'type':a135_0x254817(0xa5),'description':a135_0x254817(0xb2),'hidden':!![]},{'name':'keyword','meowKey':a135_0x254817(0xaf),'type':a135_0x254817(0xa5),'description':a135_0x254817(0xdf),'hidden':!![]},{'name':a135_0x254817(0xa7),'meowKey':a135_0x254817(0xa7),'type':a135_0x254817(0xa5),'description':a135_0x254817(0xd3),'hidden':!![]},{'name':a135_0x254817(0xd7),'meowKey':a135_0x254817(0xd7),'type':'string','description':a135_0x254817(0xad),'hidden':!![]},{'name':a135_0x254817(0xdb),'meowKey':a135_0x254817(0xdb),'type':a135_0x254817(0xa5),'description':a135_0x254817(0xfd),'hidden':!![]},{'name':'operation','meowKey':a135_0x254817(0xe6),'type':a135_0x254817(0xa5),'description':a135_0x254817(0xdc),'hidden':!![]},{'name':a135_0x254817(0xb3),'meowKey':a135_0x254817(0xb3),'type':a135_0x254817(0xa5),'description':'Target\x20path','hidden':!![]},{'name':a135_0x254817(0xe4),'meowKey':a135_0x254817(0xb9),'type':'boolean','description':a135_0x254817(0xdd),'hidden':!![]},{'name':a135_0x254817(0xf4),'meowKey':a135_0x254817(0xf4),'type':a135_0x254817(0xa5),'description':'Config\x20key','hidden':!![]},{'name':a135_0x254817(0xc8),'meowKey':a135_0x254817(0xc8),'type':a135_0x254817(0xa5),'description':a135_0x254817(0xe7),'hidden':!![]},{'name':a135_0x254817(0x9b),'meowKey':a135_0x254817(0x9b),'type':a135_0x254817(0x9a),'description':a135_0x254817(0xf8),'hidden':!![]},{'name':a135_0x254817(0x95),'meowKey':a135_0x254817(0x95),'type':'boolean','description':a135_0x254817(0x94),'hidden':!![]},{'name':a135_0x254817(0xb6),'meowKey':a135_0x254817(0xb6),'type':a135_0x254817(0x9a),'description':a135_0x254817(0xee),'hidden':!![]},{'name':'verbose','meowKey':a135_0x254817(0xbe),'type':a135_0x254817(0x9a),'description':'Verbose\x20output','hidden':!![]},{'name':a135_0x254817(0x9c),'meowKey':a135_0x254817(0xb0),'type':a135_0x254817(0xa5),'description':a135_0x254817(0xd9),'hidden':!![]},{'name':a135_0x254817(0x99),'meowKey':'operationType','type':a135_0x254817(0xa5),'description':a135_0x254817(0xdc),'hidden':!![]},{'name':a135_0x254817(0xf1),'meowKey':a135_0x254817(0xb1),'type':a135_0x254817(0xa5),'description':'Function\x20node','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a135_0x254817(0xb5),'app',a135_0x254817(0xef),a135_0x254817(0xce),'jq','dry-run',a135_0x254817(0xf5),'non-interactive','ci']);export function buildMeowFlags(){const _0x25946c=a135_0x254817;return Object[_0x25946c(0xa6)](GLOBAL_FLAGS[_0x25946c(0xc4)](_0x24fc17=>[_0x24fc17['meowKey'],{'type':_0x24fc17[_0x25946c(0xb8)]}]));}
1
+ const a136_0x22c14d=a136_0x22dd;function a136_0x22a4(){const _0x55a4c1=['project','11KWSxsx','operation-type','Clear','non-interactive','confirm','Output\x20path','key','skipImports','5gnQDsJ','Watch\x20mode','sqlcode','json\x20|\x20pretty\x20|\x20compress','meowKey','@lovrabet/rabetbase-cli','pagesize','101356tbDckv','Force\x20overwrite','Type\x20filter','Alias\x20for\x20--non-interactive','description-file','production\x20|\x20daily','yes','string','format','sqlname','operation','boolean','keyword','code','enableBffSave','Schemas','dbid','Preview\x20operation\x20without\x20executing','Enable\x20BFF\x20save','dryRun','Rabetbase\x20CLI','Record\x20ID','2556FGnRPZ','Use\x20remote','Page\x20number','skip-imports','page','env','<name>','Function\x20node','name','Select\x20app\x20profile\x20by\x20name','params','Target\x20path','file','Override\x20appcode','sql-name','Operation\x20type','force','value','Page\x20size','expectedCount','Use\x20project\x20config\x20scope','db-id','dbId','SQL\x20name','all','47621WtNEdN','descriptionFile','rabetbase','Verbose\x20output','Code\x20filter','DB\x20ID','100228dfAhdb','title','clear','output','Description','16GLftba','app','dry-run','global','Environment','remote','description','nonInteractive','20704TNmFXf','<code>','29950920blufPy','Title','expected-count','Force\x20non-interactive\x20mode\x20(CI)','2644185FRXIji','491100xyxsNw','546LZQuqT','functionNode','schemas','operationType','File\x20path','type','sqlName','appcode','JSON\x20params','<expr>','map','datasetcode','Show\x20help','verbose','SQL\x20string','Skip\x20import\x20generation','watch','target','sql','Expected\x20affected\x20count','help','Apply\x20to\x20all'];a136_0x22a4=function(){return _0x55a4c1;};return a136_0x22a4();}(function(_0x133e1c,_0x163104){const _0x309d0c=a136_0x22dd,_0x5afa65=_0x133e1c();while(!![]){try{const _0x2ea858=parseInt(_0x309d0c(0x22a))/0x1*(parseInt(_0x309d0c(0x22f))/0x2)+parseInt(_0x309d0c(0x23d))/0x3+-parseInt(_0x309d0c(0x1f5))/0x4*(-parseInt(_0x309d0c(0x25e))/0x5)+-parseInt(_0x309d0c(0x23f))/0x6*(-parseInt(_0x309d0c(0x224))/0x7)+-parseInt(_0x309d0c(0x237))/0x8*(-parseInt(_0x309d0c(0x20b))/0x9)+-parseInt(_0x309d0c(0x23e))/0xa*(parseInt(_0x309d0c(0x256))/0xb)+-parseInt(_0x309d0c(0x239))/0xc;if(_0x2ea858===_0x163104)break;else _0x5afa65['push'](_0x5afa65['shift']());}catch(_0x56fd73){_0x5afa65['push'](_0x5afa65['shift']());}}}(a136_0x22a4,0x7e5e3));export const CLI_BIN_NAME=a136_0x22c14d(0x226);export const CLI_DISPLAY_NAME=a136_0x22c14d(0x209);export const NPM_PACKAGE_NAME=a136_0x22c14d(0x1f3);export const GLOBAL_FLAGS=[{'name':a136_0x22c14d(0x246),'meowKey':a136_0x22c14d(0x246),'type':'string','description':a136_0x22c14d(0x218),'hint':a136_0x22c14d(0x238)},{'name':'app','meowKey':a136_0x22c14d(0x230),'type':a136_0x22c14d(0x1fc),'description':a136_0x22c14d(0x214),'hint':a136_0x22c14d(0x211)},{'name':'env','meowKey':a136_0x22c14d(0x210),'type':a136_0x22c14d(0x1fc),'description':a136_0x22c14d(0x233),'hint':a136_0x22c14d(0x1fa)},{'name':a136_0x22c14d(0x1fd),'meowKey':a136_0x22c14d(0x1fd),'type':a136_0x22c14d(0x1fc),'description':'Output\x20format','hint':a136_0x22c14d(0x1f1)},{'name':'jq','meowKey':'jq','type':'string','description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a136_0x22c14d(0x248)},{'name':a136_0x22c14d(0x231),'meowKey':a136_0x22c14d(0x208),'type':a136_0x22c14d(0x200),'description':a136_0x22c14d(0x206)},{'name':a136_0x22c14d(0x1fb),'meowKey':'yes','type':a136_0x22c14d(0x200),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a136_0x22c14d(0x259),'meowKey':a136_0x22c14d(0x236),'type':a136_0x22c14d(0x200),'description':a136_0x22c14d(0x23c)},{'name':a136_0x22c14d(0x232),'meowKey':a136_0x22c14d(0x232),'type':'boolean','description':'Use\x20global\x20config\x20scope'},{'name':a136_0x22c14d(0x255),'meowKey':a136_0x22c14d(0x255),'type':'boolean','description':a136_0x22c14d(0x21f)},{'name':'ci','meowKey':'ci','type':a136_0x22c14d(0x200),'description':a136_0x22c14d(0x1f8),'hidden':!![]},{'name':a136_0x22c14d(0x253),'meowKey':a136_0x22c14d(0x253),'type':a136_0x22c14d(0x200),'description':a136_0x22c14d(0x24b)},{'name':a136_0x22c14d(0x213),'meowKey':a136_0x22c14d(0x213),'type':a136_0x22c14d(0x1fc),'description':'Name','hidden':!![]},{'name':a136_0x22c14d(0x22b),'meowKey':a136_0x22c14d(0x22b),'type':a136_0x22c14d(0x1fc),'description':a136_0x22c14d(0x23a),'hidden':!![]},{'name':a136_0x22c14d(0x22c),'meowKey':a136_0x22c14d(0x22c),'type':'boolean','description':a136_0x22c14d(0x258),'hidden':!![]},{'name':a136_0x22c14d(0x24f),'meowKey':a136_0x22c14d(0x24f),'type':'boolean','description':a136_0x22c14d(0x25f),'hidden':!![]},{'name':'output','meowKey':a136_0x22c14d(0x22d),'type':a136_0x22c14d(0x1fc),'description':a136_0x22c14d(0x25b),'hidden':!![]},{'name':a136_0x22c14d(0x215),'meowKey':a136_0x22c14d(0x215),'type':a136_0x22c14d(0x1fc),'description':a136_0x22c14d(0x247),'hidden':!![]},{'name':'datasetcode','meowKey':a136_0x22c14d(0x24a),'type':'string','description':'Dataset\x20code','hidden':!![]},{'name':'all','meowKey':a136_0x22c14d(0x223),'type':a136_0x22c14d(0x200),'description':a136_0x22c14d(0x254),'hidden':!![]},{'name':'enable-bff-save','meowKey':a136_0x22c14d(0x203),'type':a136_0x22c14d(0x200),'description':a136_0x22c14d(0x207),'hidden':!![]},{'name':'id','meowKey':'id','type':a136_0x22c14d(0x1fc),'description':a136_0x22c14d(0x20a),'hidden':!![]},{'name':a136_0x22c14d(0x244),'meowKey':a136_0x22c14d(0x244),'type':a136_0x22c14d(0x1fc),'description':a136_0x22c14d(0x1f7),'hidden':!![]},{'name':a136_0x22c14d(0x217),'meowKey':a136_0x22c14d(0x217),'type':a136_0x22c14d(0x1fc),'description':a136_0x22c14d(0x243),'hidden':!![]},{'name':a136_0x22c14d(0x260),'meowKey':'sqlcode','type':a136_0x22c14d(0x1fc),'description':'SQL\x20code','hidden':!![]},{'name':a136_0x22c14d(0x219),'meowKey':a136_0x22c14d(0x245),'type':a136_0x22c14d(0x1fc),'description':a136_0x22c14d(0x222),'hidden':!![]},{'name':a136_0x22c14d(0x1fe),'meowKey':a136_0x22c14d(0x1fe),'type':a136_0x22c14d(0x1fc),'description':a136_0x22c14d(0x222),'hidden':!![]},{'name':a136_0x22c14d(0x220),'meowKey':a136_0x22c14d(0x221),'type':'string','description':'DB\x20ID','hidden':!![]},{'name':a136_0x22c14d(0x205),'meowKey':a136_0x22c14d(0x205),'type':a136_0x22c14d(0x1fc),'description':a136_0x22c14d(0x229),'hidden':!![]},{'name':a136_0x22c14d(0x235),'meowKey':'description','type':'string','description':a136_0x22c14d(0x22e),'hidden':!![]},{'name':a136_0x22c14d(0x1f9),'meowKey':a136_0x22c14d(0x225),'type':a136_0x22c14d(0x1fc),'description':'Description\x20file','hidden':!![]},{'name':a136_0x22c14d(0x20f),'meowKey':'page','type':a136_0x22c14d(0x1fc),'description':a136_0x22c14d(0x20d),'hidden':!![]},{'name':a136_0x22c14d(0x1f4),'meowKey':'pagesize','type':a136_0x22c14d(0x1fc),'description':a136_0x22c14d(0x21d),'hidden':!![]},{'name':'keyword','meowKey':a136_0x22c14d(0x201),'type':a136_0x22c14d(0x1fc),'description':'Keyword\x20filter','hidden':!![]},{'name':a136_0x22c14d(0x202),'meowKey':a136_0x22c14d(0x202),'type':a136_0x22c14d(0x1fc),'description':a136_0x22c14d(0x228),'hidden':!![]},{'name':a136_0x22c14d(0x251),'meowKey':a136_0x22c14d(0x251),'type':a136_0x22c14d(0x1fc),'description':a136_0x22c14d(0x24d),'hidden':!![]},{'name':a136_0x22c14d(0x241),'meowKey':'schemas','type':'string','description':a136_0x22c14d(0x204),'hidden':!![]},{'name':a136_0x22c14d(0x1ff),'meowKey':a136_0x22c14d(0x1ff),'type':'string','description':a136_0x22c14d(0x21a),'hidden':!![]},{'name':a136_0x22c14d(0x250),'meowKey':'target','type':a136_0x22c14d(0x1fc),'description':a136_0x22c14d(0x216),'hidden':!![]},{'name':a136_0x22c14d(0x20e),'meowKey':a136_0x22c14d(0x25d),'type':'boolean','description':a136_0x22c14d(0x24e),'hidden':!![]},{'name':a136_0x22c14d(0x25c),'meowKey':a136_0x22c14d(0x25c),'type':a136_0x22c14d(0x1fc),'description':'Config\x20key','hidden':!![]},{'name':a136_0x22c14d(0x21c),'meowKey':'value','type':a136_0x22c14d(0x1fc),'description':'Config\x20value','hidden':!![]},{'name':a136_0x22c14d(0x21b),'meowKey':a136_0x22c14d(0x21b),'type':a136_0x22c14d(0x200),'description':a136_0x22c14d(0x1f6),'hidden':!![]},{'name':a136_0x22c14d(0x25a),'meowKey':a136_0x22c14d(0x25a),'type':'boolean','description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a136_0x22c14d(0x234),'meowKey':a136_0x22c14d(0x234),'type':'boolean','description':a136_0x22c14d(0x20c),'hidden':!![]},{'name':a136_0x22c14d(0x24c),'meowKey':'verbose','type':a136_0x22c14d(0x200),'description':a136_0x22c14d(0x227),'hidden':!![]},{'name':a136_0x22c14d(0x23b),'meowKey':a136_0x22c14d(0x21e),'type':a136_0x22c14d(0x1fc),'description':a136_0x22c14d(0x252),'hidden':!![]},{'name':a136_0x22c14d(0x257),'meowKey':a136_0x22c14d(0x242),'type':a136_0x22c14d(0x1fc),'description':a136_0x22c14d(0x21a),'hidden':!![]},{'name':'function-node','meowKey':a136_0x22c14d(0x240),'type':a136_0x22c14d(0x1fc),'description':a136_0x22c14d(0x212),'hidden':!![]}];function a136_0x22dd(_0x5b8b85,_0x541ed2){_0x5b8b85=_0x5b8b85-0x1f1;const _0x22a470=a136_0x22a4();let _0x22dd25=_0x22a470[_0x5b8b85];return _0x22dd25;}export const PIPELINE_FLAG_NAMES=new Set([a136_0x22c14d(0x246),a136_0x22c14d(0x230),a136_0x22c14d(0x210),a136_0x22c14d(0x1fd),'jq',a136_0x22c14d(0x231),a136_0x22c14d(0x1fb),a136_0x22c14d(0x259),'ci']);export function buildMeowFlags(){const _0x23c480=a136_0x22c14d;return Object['fromEntries'](GLOBAL_FLAGS[_0x23c480(0x249)](_0x44ca6d=>[_0x44ca6d[_0x23c480(0x1f2)],{'type':_0x44ca6d[_0x23c480(0x244)]}]));}
@@ -1 +1 @@
1
- function a136_0x358e(_0x2f87a3,_0x549581){_0x2f87a3=_0x2f87a3-0xfa;const _0x1b6085=a136_0x1b60();let _0x358e44=_0x1b6085[_0x2f87a3];return _0x358e44;}const a136_0xc2fe8d=a136_0x358e;(function(_0x5184d0,_0xbe4107){const _0x52912b=a136_0x358e,_0x3850e3=_0x5184d0();while(!![]){try{const _0x2a9595=parseInt(_0x52912b(0xfc))/0x1+-parseInt(_0x52912b(0xff))/0x2+-parseInt(_0x52912b(0xfd))/0x3+-parseInt(_0x52912b(0x102))/0x4+-parseInt(_0x52912b(0x101))/0x5+parseInt(_0x52912b(0xfa))/0x6*(parseInt(_0x52912b(0x100))/0x7)+parseInt(_0x52912b(0xfb))/0x8;if(_0x2a9595===_0xbe4107)break;else _0x3850e3['push'](_0x3850e3['shift']());}catch(_0x5f010b){_0x3850e3['push'](_0x3850e3['shift']());}}}(a136_0x1b60,0x9232d));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a136_0xc2fe8d(0xfe),'format':'compress','locale':a136_0xc2fe8d(0x104),'riskLevel':'high-risk-write','apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a136_0xc2fe8d(0x103);function a136_0x1b60(){const _0x3f36fb=['2283912RfOIeR','production','892966eEYKWq','427bYHkZu','5728150BwHJAI','2994652dvlsiC','compress','en-US','74238DZOWDj','16545632HzHHUd','877952utGyWh'];a136_0x1b60=function(){return _0x3f36fb;};return a136_0x1b60();}
1
+ const a137_0x56bebf=a137_0x51b3;function a137_0x475d(){const _0x1eff90=['compress','275gdvGoD','1281287PqPKwI','1399161fYMldX','production','26476875hqHOaC','247016vNWkBJ','237763vBbEuB','8wDREFF','91302GESrfz','high-risk-write','en-US','3422336HzlDUa'];a137_0x475d=function(){return _0x1eff90;};return a137_0x475d();}function a137_0x51b3(_0x429053,_0x2392e2){_0x429053=_0x429053-0x6a;const _0x475d43=a137_0x475d();let _0x51b3ef=_0x475d43[_0x429053];return _0x51b3ef;}(function(_0x1a7f98,_0x10f209){const _0x546390=a137_0x51b3,_0xf0d36d=_0x1a7f98();while(!![]){try{const _0x101811=-parseInt(_0x546390(0x72))/0x1+parseInt(_0x546390(0x71))/0x2+-parseInt(_0x546390(0x6e))/0x3+-parseInt(_0x546390(0x6a))/0x4+-parseInt(_0x546390(0x6c))/0x5*(parseInt(_0x546390(0x74))/0x6)+parseInt(_0x546390(0x6d))/0x7*(-parseInt(_0x546390(0x73))/0x8)+parseInt(_0x546390(0x70))/0x9;if(_0x101811===_0x10f209)break;else _0xf0d36d['push'](_0xf0d36d['shift']());}catch(_0x2928dc){_0xf0d36d['push'](_0xf0d36d['shift']());}}}(a137_0x475d,0x76929));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a137_0x56bebf(0x6f),'format':a137_0x56bebf(0x6b),'locale':a137_0x56bebf(0x76),'riskLevel':a137_0x56bebf(0x75),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a137_0x56bebf(0x6b);
@@ -1 +1 @@
1
- const a137_0x47b20a=a137_0x1dd5;function a137_0x5c2d(){const _0x34fd84=['657LLJSkf','12AEISyL','https://runtime.lovrabet.com','https://user.lovrabet.com','48xBLQbW','238470ZnJPtL','11612jEcjey','26990DjjFKB','931392iBjCdw','14052LtPPfY','10JrKcAj','https://user-daily.lovrabet.com','userDomain','833532qGPmGU','503986XZtxBa','https://api.lovrabet.com','902hnZjem','https://daily-api.lovrabet.com','https://daily-runtime.lovrabet.com'];a137_0x5c2d=function(){return _0x34fd84;};return a137_0x5c2d();}function a137_0x1dd5(_0x4c438b,_0x30f77a){_0x4c438b=_0x4c438b-0x1e0;const _0x5c2d1f=a137_0x5c2d();let _0x1dd504=_0x5c2d1f[_0x4c438b];return _0x1dd504;}(function(_0x4c3c96,_0x1363ef){const _0x1732b9=a137_0x1dd5,_0x4612a9=_0x4c3c96();while(!![]){try{const _0x41ca3e=parseInt(_0x1732b9(0x1ee))/0x1+parseInt(_0x1732b9(0x1ef))/0x2*(-parseInt(_0x1732b9(0x1ed))/0x3)+parseInt(_0x1732b9(0x1e3))/0x4*(parseInt(_0x1732b9(0x1e0))/0x5)+parseInt(_0x1732b9(0x1ea))/0x6*(-parseInt(_0x1732b9(0x1e4))/0x7)+-parseInt(_0x1732b9(0x1f1))/0x8+-parseInt(_0x1732b9(0x1e9))/0x9*(-parseInt(_0x1732b9(0x1f0))/0xa)+-parseInt(_0x1732b9(0x1e6))/0xb*(parseInt(_0x1732b9(0x1f2))/0xc);if(_0x41ca3e===_0x1363ef)break;else _0x4612a9['push'](_0x4612a9['shift']());}catch(_0x1d5bbe){_0x4612a9['push'](_0x4612a9['shift']());}}}(a137_0x5c2d,0x625ed));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x129282){const _0x119817=a137_0x1dd5;customApiDomain=_0x129282?.['apiDomain'],customUserDomain=_0x129282?.[_0x119817(0x1e2)],customRuntimeDomain=_0x129282?.['runtimeDomain'];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a137_0x47b20a(0x1ec):a137_0x47b20a(0x1e1));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a137_0x47b20a(0x1e5):a137_0x47b20a(0x1e7));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a137_0x47b20a(0x1eb):a137_0x47b20a(0x1e8));
1
+ const a138_0x243351=a138_0x4754;function a138_0x4754(_0x1dbedf,_0x3fef59){_0x1dbedf=_0x1dbedf-0x163;const _0x2d617f=a138_0x2d61();let _0x4754df=_0x2d617f[_0x1dbedf];return _0x4754df;}(function(_0x337c1c,_0x4ac444){const _0x257e7c=a138_0x4754,_0x4441e0=_0x337c1c();while(!![]){try{const _0x4be821=parseInt(_0x257e7c(0x16e))/0x1+-parseInt(_0x257e7c(0x167))/0x2+-parseInt(_0x257e7c(0x16f))/0x3+parseInt(_0x257e7c(0x16a))/0x4*(-parseInt(_0x257e7c(0x169))/0x5)+-parseInt(_0x257e7c(0x164))/0x6+parseInt(_0x257e7c(0x16b))/0x7*(-parseInt(_0x257e7c(0x163))/0x8)+parseInt(_0x257e7c(0x168))/0x9;if(_0x4be821===_0x4ac444)break;else _0x4441e0['push'](_0x4441e0['shift']());}catch(_0x3f9f65){_0x4441e0['push'](_0x4441e0['shift']());}}}(a138_0x2d61,0x2ba4e));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x14613b){const _0x1888e7=a138_0x4754;customApiDomain=_0x14613b?.['apiDomain'],customUserDomain=_0x14613b?.[_0x1888e7(0x166)],customRuntimeDomain=_0x14613b?.[_0x1888e7(0x16d)];}function a138_0x2d61(){const _0x543587=['1155228uuLddD','https://user-daily.lovrabet.com','userDomain','384096fWSUal','6763446TeLrYR','1555lqfjRQ','1732kGczBL','7SzTiKY','https://api.lovrabet.com','runtimeDomain','107638adpCYO','396912Mpuixg','https://runtime.lovrabet.com','https://daily-runtime.lovrabet.com','https://daily-api.lovrabet.com','230504dwslmL'];a138_0x2d61=function(){return _0x543587;};return a138_0x2d61();}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?'https://user.lovrabet.com':a138_0x243351(0x165));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a138_0x243351(0x16c):a138_0x243351(0x172));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a138_0x243351(0x170):a138_0x243351(0x171));
@@ -1 +1 @@
1
- const a138_0xffca12=a138_0x3842;function a138_0x45bc(){const _0x4f49db=['production','4wtlcow','21402Mirzyy','2323272LIjBkG','810605jPDkmH','70jgjSLE','online','2260NovoMM','11dCLbnP','995376NIXIkA','19599780sQzHtQ','dev','development','254958BCXuyd','daily','76088MaJiFG','13ZqvaCV'];a138_0x45bc=function(){return _0x4f49db;};return a138_0x45bc();}(function(_0x44337c,_0x4f5e74){const _0x21c93a=a138_0x3842,_0x3f60ab=_0x44337c();while(!![]){try{const _0x1ad281=-parseInt(_0x21c93a(0x123))/0x1*(parseInt(_0x21c93a(0x122))/0x2)+-parseInt(_0x21c93a(0x127))/0x3+-parseInt(_0x21c93a(0x125))/0x4*(-parseInt(_0x21c93a(0x128))/0x5)+parseInt(_0x21c93a(0x120))/0x6*(parseInt(_0x21c93a(0x129))/0x7)+parseInt(_0x21c93a(0x11c))/0x8+parseInt(_0x21c93a(0x126))/0x9*(-parseInt(_0x21c93a(0x11a))/0xa)+-parseInt(_0x21c93a(0x11b))/0xb*(-parseInt(_0x21c93a(0x11d))/0xc);if(_0x1ad281===_0x4f5e74)break;else _0x3f60ab['push'](_0x3f60ab['shift']());}catch(_0x3c9e53){_0x3f60ab['push'](_0x3f60ab['shift']());}}}(a138_0x45bc,0x836fc));export const RABETBASE_ENV_VALUES=['production',a138_0xffca12(0x121)];export function normalizeEnv(_0x3b5d57){const _0x2f7c12=a138_0xffca12;return _0x3b5d57===_0x2f7c12(0x12a)?_0x2f7c12(0x124):_0x3b5d57;}export function isProduction(_0x24a2f7){const _0x23c4ef=a138_0xffca12;return normalizeEnv(_0x24a2f7)===_0x23c4ef(0x124);}export function isDaily(_0x116fe7){const _0x5240f0=a138_0xffca12;return normalizeEnv(_0x116fe7)===_0x5240f0(0x121);}export function isDev(_0x51c578){const _0x2bac25=a138_0xffca12,_0x3ba2c7=normalizeEnv(_0x51c578);return _0x3ba2c7===_0x2bac25(0x11f)||_0x3ba2c7===_0x2bac25(0x11e);}function a138_0x3842(_0x3161d1,_0xdb6848){_0x3161d1=_0x3161d1-0x11a;const _0x45bc96=a138_0x45bc();let _0x38421f=_0x45bc96[_0x3161d1];return _0x38421f;}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a138_0xffca12(0x124));export function getEnv(){return env;}export function initEnv(_0x57af86){env=normalizeEnv(_0x57af86);}
1
+ const a139_0x9a062c=a139_0x2e37;function a139_0x567a(){const _0x49d385=['4395845ACsQJz','2apXVVf','production','2633152XtpJwj','1383571wOShOL','daily','6624191zjCrXZ','16312goMGLg','4703235HxKcZd','13878kIkIsS','dev','2892780NtwDIE'];a139_0x567a=function(){return _0x49d385;};return a139_0x567a();}(function(_0x206299,_0x5a9de4){const _0x22d2dd=a139_0x2e37,_0x1f7fca=_0x206299();while(!![]){try{const _0x23d493=-parseInt(_0x22d2dd(0xca))/0x1+-parseInt(_0x22d2dd(0xc7))/0x2*(parseInt(_0x22d2dd(0xce))/0x3)+-parseInt(_0x22d2dd(0xc9))/0x4+parseInt(_0x22d2dd(0xc6))/0x5+-parseInt(_0x22d2dd(0xd1))/0x6+parseInt(_0x22d2dd(0xcc))/0x7+-parseInt(_0x22d2dd(0xcd))/0x8*(-parseInt(_0x22d2dd(0xcf))/0x9);if(_0x23d493===_0x5a9de4)break;else _0x1f7fca['push'](_0x1f7fca['shift']());}catch(_0x173107){_0x1f7fca['push'](_0x1f7fca['shift']());}}}(a139_0x567a,0xd653e));export const RABETBASE_ENV_VALUES=['production',a139_0x9a062c(0xcb)];export function normalizeEnv(_0x1e27d3){const _0x2f9fc3=a139_0x9a062c;return _0x1e27d3==='online'?_0x2f9fc3(0xc8):_0x1e27d3;}function a139_0x2e37(_0x160bb6,_0x24c2dd){_0x160bb6=_0x160bb6-0xc6;const _0x567a33=a139_0x567a();let _0x2e3700=_0x567a33[_0x160bb6];return _0x2e3700;}export function isProduction(_0x50e6af){const _0x3fe193=a139_0x9a062c;return normalizeEnv(_0x50e6af)===_0x3fe193(0xc8);}export function isDaily(_0x4c2a0a){const _0x364e77=a139_0x9a062c;return normalizeEnv(_0x4c2a0a)===_0x364e77(0xcb);}export function isDev(_0x1d5e40){const _0x44d281=a139_0x9a062c,_0x562056=normalizeEnv(_0x1d5e40);return _0x562056==='development'||_0x562056===_0x44d281(0xd0);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||'production');export function getEnv(){return env;}export function initEnv(_0x556fb6){env=normalizeEnv(_0x556fb6);}
@@ -1 +1 @@
1
- function a139_0x592c(_0x51abc4,_0x46f0ea){_0x51abc4=_0x51abc4-0x16b;const _0x1cfb20=a139_0x1cfb();let _0x592ceb=_0x1cfb20[_0x51abc4];return _0x592ceb;}const a139_0x5adf56=a139_0x592c;(function(_0x50f9eb,_0x405095){const _0x1eac72=a139_0x592c,_0x2dfa37=_0x50f9eb();while(!![]){try{const _0x71c282=parseInt(_0x1eac72(0x171))/0x1*(-parseInt(_0x1eac72(0x172))/0x2)+-parseInt(_0x1eac72(0x170))/0x3*(parseInt(_0x1eac72(0x16c))/0x4)+parseInt(_0x1eac72(0x16e))/0x5*(-parseInt(_0x1eac72(0x16f))/0x6)+-parseInt(_0x1eac72(0x173))/0x7+-parseInt(_0x1eac72(0x175))/0x8+-parseInt(_0x1eac72(0x176))/0x9+parseInt(_0x1eac72(0x16d))/0xa;if(_0x71c282===_0x405095)break;else _0x2dfa37['push'](_0x2dfa37['shift']());}catch(_0x2686ab){_0x2dfa37['push'](_0x2dfa37['shift']());}}}(a139_0x1cfb,0x9d419));export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a139_0x5adf56(0x174),a139_0x5adf56(0x16b)];function a139_0x1cfb(){const _0x32fe6e=['2612673dJNYEN','pretty','5583896ryzepH','4041540RubleR','compress','5008628BnKBJn','50450850sonWfR','10LWpMty','2266452aJFWST','3raxJIO','11Kkmkzo','158734HGoUFj'];a139_0x1cfb=function(){return _0x32fe6e;};return a139_0x1cfb();}
1
+ function a140_0x4af4(_0x1a1017,_0x17925d){_0x1a1017=_0x1a1017-0xd1;const _0x5ac2c9=a140_0x5ac2();let _0x4af486=_0x5ac2c9[_0x1a1017];return _0x4af486;}const a140_0x4b32ac=a140_0x4af4;(function(_0x3541df,_0x1a62c7){const _0x4e53f0=a140_0x4af4,_0x4a95d8=_0x3541df();while(!![]){try{const _0x367709=-parseInt(_0x4e53f0(0xd8))/0x1*(-parseInt(_0x4e53f0(0xdd))/0x2)+-parseInt(_0x4e53f0(0xd1))/0x3*(parseInt(_0x4e53f0(0xd6))/0x4)+-parseInt(_0x4e53f0(0xd2))/0x5*(parseInt(_0x4e53f0(0xde))/0x6)+parseInt(_0x4e53f0(0xd3))/0x7+-parseInt(_0x4e53f0(0xdc))/0x8*(parseInt(_0x4e53f0(0xdb))/0x9)+parseInt(_0x4e53f0(0xd4))/0xa*(parseInt(_0x4e53f0(0xda))/0xb)+parseInt(_0x4e53f0(0xd5))/0xc*(parseInt(_0x4e53f0(0xd9))/0xd);if(_0x367709===_0x1a62c7)break;else _0x4a95d8['push'](_0x4a95d8['shift']());}catch(_0x1e1281){_0x4a95d8['push'](_0x4a95d8['shift']());}}}(a140_0x5ac2,0xb12aa));function a140_0x5ac2(){const _0x50f43a=['7893oCiVEJ','5536rDthIp','474CxWUmk','17982yQKzKn','pretty','333768QGeVxQ','1215WjMnqT','6919836wIpyWQ','5355940cHaGCo','24YjDEIe','28fNDQTx','compress','511qsDcML','7763418oYNoZr','11cNivpz'];a140_0x5ac2=function(){return _0x50f43a;};return a140_0x5ac2();}export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a140_0x4b32ac(0xdf),a140_0x4b32ac(0xd7)];
@@ -1 +1 @@
1
- const a140_0x524aa6=a140_0x896b;function a140_0x896b(_0x2d3a80,_0x101246){_0x2d3a80=_0x2d3a80-0x11c;const _0x339f18=a140_0x339f();let _0x896bf6=_0x339f18[_0x2d3a80];return _0x896bf6;}function a140_0x339f(){const _0x2aa6ef=['339928GSsFmH','8724400frplLr','./src/api','19746828sRNsDI','8700618YBeUwO','10494561CxVgky','4190637ZztAjh','3gUjJZd','40dLDwXC','763918AZbCyb'];a140_0x339f=function(){return _0x2aa6ef;};return a140_0x339f();}(function(_0x1d6035,_0x3c5b5c){const _0x55f78c=a140_0x896b,_0x2ae1e6=_0x1d6035();while(!![]){try{const _0x4fdcb8=-parseInt(_0x55f78c(0x123))/0x1*(-parseInt(_0x55f78c(0x125))/0x2)+-parseInt(_0x55f78c(0x122))/0x3+parseInt(_0x55f78c(0x11c))/0x4*(-parseInt(_0x55f78c(0x124))/0x5)+parseInt(_0x55f78c(0x120))/0x6+parseInt(_0x55f78c(0x121))/0x7+parseInt(_0x55f78c(0x11d))/0x8+-parseInt(_0x55f78c(0x11f))/0x9;if(_0x4fdcb8===_0x3c5b5c)break;else _0x2ae1e6['push'](_0x2ae1e6['shift']());}catch(_0x52c2f0){_0x2ae1e6['push'](_0x2ae1e6['shift']());}}}(a140_0x339f,0xdf5ee));export const DEFAULT_API_DIR=a140_0x524aa6(0x11e);
1
+ function a141_0x23e8(){const _0x1c6955=['30fUXjAw','24966NZhTTk','225gPLddI','3313593zOlGzO','49PDnRcm','./src/api','443880aWyTkp','261602HeLOrE','2626480EuUEyI','4290qEswwL','75nIfYWm','23265858YljYvc'];a141_0x23e8=function(){return _0x1c6955;};return a141_0x23e8();}const a141_0x532e3a=a141_0x1f85;function a141_0x1f85(_0x1ebdc5,_0xd16a8e){_0x1ebdc5=_0x1ebdc5-0xf1;const _0x23e8e8=a141_0x23e8();let _0x1f853c=_0x23e8e8[_0x1ebdc5];return _0x1f853c;}(function(_0x3bc4d8,_0x490f57){const _0x5b9cf9=a141_0x1f85,_0x53f8de=_0x3bc4d8();while(!![]){try{const _0x28a52b=parseInt(_0x5b9cf9(0xf7))/0x1+parseInt(_0x5b9cf9(0xf9))/0x2*(-parseInt(_0x5b9cf9(0xf2))/0x3)+-parseInt(_0x5b9cf9(0xf8))/0x4+-parseInt(_0x5b9cf9(0xfa))/0x5*(parseInt(_0x5b9cf9(0xf1))/0x6)+-parseInt(_0x5b9cf9(0xf4))/0x7*(-parseInt(_0x5b9cf9(0xf6))/0x8)+-parseInt(_0x5b9cf9(0xf3))/0x9*(parseInt(_0x5b9cf9(0xfc))/0xa)+parseInt(_0x5b9cf9(0xfb))/0xb;if(_0x28a52b===_0x490f57)break;else _0x53f8de['push'](_0x53f8de['shift']());}catch(_0x227811){_0x53f8de['push'](_0x53f8de['shift']());}}}(a141_0x23e8,0xbe95a));export const DEFAULT_API_DIR=a141_0x532e3a(0xf5);
@@ -1 +1 @@
1
- function a141_0x292a(){const _0xd59e44=['146937fdpFVY','50EBipmG','1169400swALJM','6225051zdeDxQ','741858jcaBXM','4OcHDwQ','340155ORSfFB','2Jnulwn','48vGMeHH','1527003BomAra','high-risk-write','29207057CwCpIn'];a141_0x292a=function(){return _0xd59e44;};return a141_0x292a();}const a141_0x22b645=a141_0x22b7;(function(_0x4f5f82,_0x2d6c0d){const _0x4aa356=a141_0x22b7,_0x4044ee=_0x4f5f82();while(!![]){try{const _0x4597e1=-parseInt(_0x4aa356(0x198))/0x1*(-parseInt(_0x4aa356(0x19b))/0x2)+-parseInt(_0x4aa356(0x194))/0x3*(parseInt(_0x4aa356(0x199))/0x4)+parseInt(_0x4aa356(0x19a))/0x5*(parseInt(_0x4aa356(0x19c))/0x6)+parseInt(_0x4aa356(0x197))/0x7+parseInt(_0x4aa356(0x196))/0x8+parseInt(_0x4aa356(0x19d))/0x9*(parseInt(_0x4aa356(0x195))/0xa)+-parseInt(_0x4aa356(0x19f))/0xb;if(_0x4597e1===_0x2d6c0d)break;else _0x4044ee['push'](_0x4044ee['shift']());}catch(_0x3157c0){_0x4044ee['push'](_0x4044ee['shift']());}}}(a141_0x292a,0x71b4f));function a141_0x22b7(_0xccc749,_0x28c50f){_0xccc749=_0xccc749-0x194;const _0x292a78=a141_0x292a();let _0x22b7c3=_0x292a78[_0xccc749];return _0x22b7c3;}export const RISK_LEVEL_VALUES=['read','write',a141_0x22b645(0x19e)];
1
+ const a142_0x2a68f2=a142_0x4b87;(function(_0x26f6be,_0x1d0bf4){const _0x4b16b3=a142_0x4b87,_0x36e203=_0x26f6be();while(!![]){try{const _0x4b7739=-parseInt(_0x4b16b3(0x10a))/0x1*(-parseInt(_0x4b16b3(0x106))/0x2)+parseInt(_0x4b16b3(0x109))/0x3*(parseInt(_0x4b16b3(0x10c))/0x4)+-parseInt(_0x4b16b3(0x105))/0x5+-parseInt(_0x4b16b3(0x104))/0x6*(-parseInt(_0x4b16b3(0x103))/0x7)+parseInt(_0x4b16b3(0x107))/0x8+parseInt(_0x4b16b3(0x102))/0x9*(parseInt(_0x4b16b3(0x10d))/0xa)+parseInt(_0x4b16b3(0x101))/0xb*(-parseInt(_0x4b16b3(0x108))/0xc);if(_0x4b7739===_0x1d0bf4)break;else _0x36e203['push'](_0x36e203['shift']());}catch(_0x197683){_0x36e203['push'](_0x36e203['shift']());}}}(a142_0x119e,0xeb2c1));function a142_0x4b87(_0x331533,_0x9ce4f0){_0x331533=_0x331533-0x101;const _0x119ee7=a142_0x119e();let _0x4b87d6=_0x119ee7[_0x331533];return _0x4b87d6;}export const RISK_LEVEL_VALUES=[a142_0x2a68f2(0x10e),'write',a142_0x2a68f2(0x10b)];function a142_0x119e(){const _0x358295=['2909640ULRtBm','3627LNmqOZ','479827mrubbd','high-risk-write','4184gVdltG','70uoCJkZ','read','99xPUIRL','581787JyouQH','1265236yseUKf','18iGVUvE','6252340faFAzi','8lrfgps','1738368mXzFCJ'];a142_0x119e=function(){return _0x358295;};return a142_0x119e();}