@lovrabet/rabetbase-cli 2.2.1-beta.2 → 2.2.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 (204) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/extend-update.js +1 -1
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/list.js +1 -1
  58. package/lib/commands/dataset/operations.js +1 -1
  59. package/lib/commands/dataset/relation-create.js +1 -1
  60. package/lib/commands/dataset/relation-delete.js +1 -1
  61. package/lib/commands/dataset/relation-shared.js +1 -1
  62. package/lib/commands/dataset/relation-update.js +1 -1
  63. package/lib/commands/dataset/relations.js +1 -1
  64. package/lib/commands/dataset/rename.js +1 -1
  65. package/lib/commands/db/analyze-cancel.js +1 -1
  66. package/lib/commands/db/analyze-start.js +1 -1
  67. package/lib/commands/db/analyze-status.js +1 -1
  68. package/lib/commands/db/create.js +1 -1
  69. package/lib/commands/db/delete.js +1 -1
  70. package/lib/commands/db/detail.js +1 -1
  71. package/lib/commands/db/diff.js +1 -1
  72. package/lib/commands/db/index.js +1 -1
  73. package/lib/commands/db/list.js +1 -1
  74. package/lib/commands/db/shared.js +1 -1
  75. package/lib/commands/db/tables.js +1 -1
  76. package/lib/commands/db/test.js +1 -1
  77. package/lib/commands/db/update.js +1 -1
  78. package/lib/commands/doctor.js +1 -1
  79. package/lib/commands/init/index.js +1 -1
  80. package/lib/commands/issue/index.js +1 -1
  81. package/lib/commands/issue/nudge.js +1 -1
  82. package/lib/commands/issue/report.js +1 -1
  83. package/lib/commands/issue/shared.js +1 -1
  84. package/lib/commands/logs/index.js +1 -1
  85. package/lib/commands/menu/index.js +1 -1
  86. package/lib/commands/menu/shared/compare-table.js +1 -1
  87. package/lib/commands/menu/shared/index.js +1 -1
  88. package/lib/commands/menu/shared/inquirer.js +1 -1
  89. package/lib/commands/menu/shared/local-pages.js +1 -1
  90. package/lib/commands/menu/shared/logic.js +1 -1
  91. package/lib/commands/menu/shared/service.js +1 -1
  92. package/lib/commands/menu/shared/sync-core.js +1 -1
  93. package/lib/commands/menu/shared/update-core.js +1 -1
  94. package/lib/commands/menu/shared/valid-url.js +1 -1
  95. package/lib/commands/menu/sync.js +1 -1
  96. package/lib/commands/menu/update.js +1 -1
  97. package/lib/commands/page/generate-start.js +1 -1
  98. package/lib/commands/page/generate-status.js +1 -1
  99. package/lib/commands/page/index.js +1 -1
  100. package/lib/commands/page/pull.js +1 -1
  101. package/lib/commands/page/push.js +1 -1
  102. package/lib/commands/page/relation-audit.js +1 -1
  103. package/lib/commands/page/shared.js +1 -1
  104. package/lib/commands/page/standard-page-status.js +1 -1
  105. package/lib/commands/page/sync.js +1 -1
  106. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  107. package/lib/commands/project/create/format-elapsed.js +1 -1
  108. package/lib/commands/project/create/main.js +1 -1
  109. package/lib/commands/project/create/non-interactive.js +1 -1
  110. package/lib/commands/project/create/project-template-path.js +1 -1
  111. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  112. package/lib/commands/project/create/use-format-code.js +1 -1
  113. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  114. package/lib/commands/project/index.js +1 -1
  115. package/lib/commands/project/init.js +1 -1
  116. package/lib/commands/project/upgrade.js +1 -1
  117. package/lib/commands/registry.js +1 -1
  118. package/lib/commands/run/index.js +1 -1
  119. package/lib/commands/schema.js +1 -1
  120. package/lib/commands/skill/index.js +1 -1
  121. package/lib/commands/sql/create.js +1 -1
  122. package/lib/commands/sql/delete.js +1 -1
  123. package/lib/commands/sql/detail.js +1 -1
  124. package/lib/commands/sql/exec.js +1 -1
  125. package/lib/commands/sql/index.js +1 -1
  126. package/lib/commands/sql/list.js +1 -1
  127. package/lib/commands/sql/pull.js +1 -1
  128. package/lib/commands/sql/push.js +1 -1
  129. package/lib/commands/sql/save.js +1 -1
  130. package/lib/commands/sql/shared.js +1 -1
  131. package/lib/commands/sql/status.js +1 -1
  132. package/lib/commands/sql/validate.js +1 -1
  133. package/lib/config/schema.js +1 -1
  134. package/lib/constant/cdn.js +1 -1
  135. package/lib/constant/cli.js +1 -1
  136. package/lib/constant/defaults.js +1 -1
  137. package/lib/constant/domain.js +1 -1
  138. package/lib/constant/env.js +1 -1
  139. package/lib/constant/output.js +1 -1
  140. package/lib/constant/paths.js +1 -1
  141. package/lib/constant/risk.js +1 -1
  142. package/lib/context.js +1 -1
  143. package/lib/core/alias-resolver.js +1 -1
  144. package/lib/core/api-client.js +1 -1
  145. package/lib/core/bff/config.js +1 -1
  146. package/lib/core/bff/file-system.js +1 -1
  147. package/lib/core/bff/hash.js +1 -1
  148. package/lib/core/bff/lock.js +1 -1
  149. package/lib/core/bff/utils.js +1 -1
  150. package/lib/core/db-resolver.js +1 -1
  151. package/lib/core/page/file-system.js +1 -1
  152. package/lib/core/page/hash.js +1 -1
  153. package/lib/core/page/lock.js +1 -1
  154. package/lib/core/sql-sync/config.js +1 -1
  155. package/lib/core/sql-sync/file-system.js +1 -1
  156. package/lib/core/sql-sync/hash.js +1 -1
  157. package/lib/core/sql-sync/lock.js +1 -1
  158. package/lib/core/sql-sync/utils.js +1 -1
  159. package/lib/core/sql-validator.js +1 -1
  160. package/lib/errors.js +1 -1
  161. package/lib/framework/build-all-flags.js +1 -1
  162. package/lib/framework/flags.js +1 -1
  163. package/lib/framework/help.js +1 -1
  164. package/lib/framework/index.js +1 -1
  165. package/lib/framework/output.js +1 -1
  166. package/lib/framework/response.js +1 -1
  167. package/lib/framework/runner-alias.js +1 -1
  168. package/lib/framework/runner.js +1 -1
  169. package/lib/framework/schema-export.js +1 -1
  170. package/lib/framework/types.js +1 -1
  171. package/lib/generated/build-info.js +1 -1
  172. package/lib/help.js +1 -1
  173. package/lib/skills/main.js +1 -1
  174. package/lib/skills/npx-skills-add.js +1 -1
  175. package/lib/telemetry/cli-command-trace.js +1 -1
  176. package/lib/telemetry/cli-help-trace.js +1 -1
  177. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  178. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  179. package/lib/telemetry/send-cli-trace-log.js +1 -1
  180. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  181. package/lib/utils/ai_config.js +1 -1
  182. package/lib/utils/apply-jq-filter.js +1 -1
  183. package/lib/utils/cdn-config.js +1 -1
  184. package/lib/utils/check-sdk-version.js +1 -1
  185. package/lib/utils/cli-version-check.js +1 -1
  186. package/lib/utils/cli-version-policy.js +1 -1
  187. package/lib/utils/config.js +1 -1
  188. package/lib/utils/copy-directory.js +1 -1
  189. package/lib/utils/entity-with-id.js +1 -1
  190. package/lib/utils/file-utils.js +1 -1
  191. package/lib/utils/guides-cdn.js +1 -1
  192. package/lib/utils/http-client.js +1 -1
  193. package/lib/utils/is-non-interactive.js +1 -1
  194. package/lib/utils/logger.js +1 -1
  195. package/lib/utils/params.js +1 -1
  196. package/lib/utils/platform.js +1 -1
  197. package/lib/utils/rules-cdn.js +1 -1
  198. package/lib/utils/sleep.js +1 -1
  199. package/lib/utils/template-replacer.js +1 -1
  200. package/lib/utils/update-notice.js +1 -1
  201. package/lib/utils/version.js +1 -1
  202. package/lib/utils/with-active-cookie.js +1 -1
  203. package/lib/utils/write-cli-side-channel.js +1 -1
  204. package/package.json +1 -1
@@ -1 +1 @@
1
- const a128_0x5cf880=a128_0x4618;(function(_0x470965,_0x3fa04d){const _0x563285=a128_0x4618,_0xfd6194=_0x470965();while(!![]){try{const _0x383729=parseInt(_0x563285(0x15c))/0x1*(parseInt(_0x563285(0x18d))/0x2)+parseInt(_0x563285(0x180))/0x3*(parseInt(_0x563285(0x168))/0x4)+parseInt(_0x563285(0x176))/0x5+-parseInt(_0x563285(0x16d))/0x6*(-parseInt(_0x563285(0x18a))/0x7)+parseInt(_0x563285(0x164))/0x8+parseInt(_0x563285(0x14f))/0x9*(-parseInt(_0x563285(0x153))/0xa)+parseInt(_0x563285(0x162))/0xb*(-parseInt(_0x563285(0x170))/0xc);if(_0x383729===_0x3fa04d)break;else _0xfd6194['push'](_0xfd6194['shift']());}catch(_0x1b14ca){_0xfd6194['push'](_0xfd6194['shift']());}}}(a128_0x5420,0x7414c));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';import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile,writeSqlLockFile}from'../../core/sql-sync/lock.js';function a128_0x4618(_0xce0fd9,_0x4d082d){_0xce0fd9=_0xce0fd9-0x14b;const _0x5420bb=a128_0x5420();let _0x46185b=_0x5420bb[_0xce0fd9];return _0x46185b;}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(_0x4afb2f,_0x47a392,_0x532b94){const _0x2f2b85=a128_0x4618,_0x1342ef=await scanLocalSqlQueries(_0x4afb2f),_0x27de5a=new Map();for(const _0x46abf2 of _0x1342ef){if(_0x532b94&&_0x46abf2[_0x2f2b85(0x17a)]!==_0x532b94)continue;const _0x3a424e=_0x27de5a['get'](_0x46abf2[_0x2f2b85(0x17a)])??[];_0x3a424e[_0x2f2b85(0x17e)](_0x46abf2),_0x27de5a['set'](_0x46abf2['sqlCode'],_0x3a424e);}if(_0x532b94&&!_0x27de5a[_0x2f2b85(0x160)](_0x532b94))throw CliErrors[_0x2f2b85(0x161)](_0x2f2b85(0x17b)+_0x532b94);const _0x58f2e5=[];for(const [_0x3c30ab,_0x422466]of _0x27de5a[_0x2f2b85(0x14d)]()){if(_0x422466['length']===0x1){_0x58f2e5[_0x2f2b85(0x17e)](_0x422466[0x0]);continue;}const _0x440f7a=_0x47a392[_0x2f2b85(0x187)][_0x3c30ab],_0xe99304=_0x440f7a?.[_0x2f2b85(0x15b)],_0x3c6b6e=_0xe99304?_0x422466[_0x2f2b85(0x169)](_0xd0d81a=>_0xd0d81a[_0x2f2b85(0x154)]!==_0xe99304):_0x422466;if(_0x440f7a&&_0x3c6b6e[_0x2f2b85(0x16f)]===0x1){_0x58f2e5['push'](_0x3c6b6e[0x0]);continue;}throw CliErrors[_0x2f2b85(0x161)](_0x2f2b85(0x181)+_0x3c30ab+_0x2f2b85(0x185));}return _0x58f2e5;}export const sqlPush={'service':a128_0x5cf880(0x14e),'command':a128_0x5cf880(0x17e),'description':a128_0x5cf880(0x15e),'risk':a128_0x5cf880(0x16c),'flags':[SQLCODE_FLAG_OPTIONAL,{'name':a128_0x5cf880(0x158),'type':a128_0x5cf880(0x155),'description':'Force\x20push\x20even\x20if\x20local\x20hash\x20matches\x20lock'}],async 'dryRun'(_0x3cdb8b){const _0x37a08b=a128_0x5cf880,_0x132661=loadSqlProjectConfig(_0x3cdb8b[_0x37a08b(0x165)]),_0x42b86c=await readSqlLockFile(_0x132661[_0x37a08b(0x179)]),{appLock:_0x1ba841}=ensureSqlLockScope(_0x42b86c??createEmptySqlLock(),_0x3cdb8b['appCode'],_0x132661[_0x37a08b(0x17c)],_0x37a08b(0x17e)),_0x24a36d=await getTargetSqlQueries(_0x132661,_0x1ba841,_0x3cdb8b[_0x37a08b(0x186)](_0x37a08b(0x172))||undefined),_0x45697e=[];for(const _0x593e7a of _0x24a36d){const _0xe451bc=await computeSqlFileHash(_0x593e7a[_0x37a08b(0x17f)]),_0x5d1765=_0x1ba841[_0x37a08b(0x187)][_0x593e7a[_0x37a08b(0x17a)]],_0x3cf702=!!_0x5d1765&&(_0x5d1765[_0x37a08b(0x15b)]!==_0x593e7a[_0x37a08b(0x154)]||!!_0x593e7a[_0x37a08b(0x17d)]&&_0x5d1765[_0x37a08b(0x17d)]!==_0x593e7a[_0x37a08b(0x17d)]);if(!_0x3cdb8b[_0x37a08b(0x16b)]('force')&&_0x5d1765&&_0x5d1765[_0x37a08b(0x174)]===_0xe451bc&&!_0x3cf702)continue;_0x45697e[_0x37a08b(0x17e)](_0x593e7a[_0x37a08b(0x17a)]);}return{'method':_0x37a08b(0x18c),'url':_0x37a08b(0x175),'body':{'sqlCodes':_0x45697e,'appCode':_0x3cdb8b[_0x37a08b(0x165)]},'description':_0x37a08b(0x182)+_0x45697e['length']+_0x37a08b(0x18b)};},async 'execute'(_0x2e2e69){const _0x274385=a128_0x5cf880,_0x21207c=loadSqlProjectConfig(_0x2e2e69[_0x274385(0x165)]),_0x10e8c1=await readSqlLockFile(_0x21207c[_0x274385(0x179)]),{lockData:_0x29148e,appLock:_0x227a2b}=ensureSqlLockScope(_0x10e8c1??createEmptySqlLock(),_0x2e2e69[_0x274385(0x165)],_0x21207c['sqlRoot'],_0x274385(0x17e)),_0x161df6=await getTargetSqlQueries(_0x21207c,_0x227a2b,_0x2e2e69['str'](_0x274385(0x172))||undefined);if(_0x161df6['length']===0x0)return{'ok':!![],'data':{'pushed':[],'skipped':[],'failed':[]},'message':_0x274385(0x173)};const _0x4def20=[],_0xff2f6b=[],_0x1e7ce7=[];for(const _0x5524e5 of _0x161df6){const _0x1917f5=_0x227a2b['sqls'][_0x5524e5[_0x274385(0x17a)]];if(!_0x1917f5){_0x1e7ce7[_0x274385(0x17e)]({'sqlCode':_0x5524e5[_0x274385(0x17a)],'error':_0x274385(0x159)});continue;}try{const _0x3eb66a=await computeSqlFileHash(_0x5524e5[_0x274385(0x17f)]),_0x3af6df=_0x1917f5['path']!==_0x5524e5[_0x274385(0x154)]||!!_0x5524e5[_0x274385(0x17d)]&&_0x1917f5[_0x274385(0x17d)]!==_0x5524e5[_0x274385(0x17d)];if(!_0x2e2e69[_0x274385(0x16b)](_0x274385(0x158))&&_0x1917f5['hash']===_0x3eb66a&&!_0x3af6df){_0xff2f6b[_0x274385(0x17e)]({'sqlCode':_0x5524e5[_0x274385(0x17a)],'reason':_0x274385(0x15f)});continue;}if(_0x1917f5[_0x274385(0x163)]==null){_0x1e7ce7[_0x274385(0x17e)]({'sqlCode':_0x5524e5[_0x274385(0x17a)],'error':_0x274385(0x184)});continue;}const _0x15c606=await readFile(_0x5524e5[_0x274385(0x17f)],'utf8'),_0x19ac07=stripLocalSqlMetadata(_0x15c606,_0x5524e5[_0x274385(0x171)]),_0x4889ad=_0x5524e5[_0x274385(0x17d)]||_0x1917f5['sqlName'],_0x4a7666=await resolveTargetDbBinding(_0x2e2e69[_0x274385(0x165)],_0x5524e5,_0x1917f5),_0x3cfd10=await updateSqlQuery({'id':_0x1917f5[_0x274385(0x15d)],'appCode':_0x2e2e69[_0x274385(0x165)],'sqlCode':_0x5524e5[_0x274385(0x17a)],'sqlName':_0x4889ad,'dbId':_0x4a7666[_0x274385(0x150)],'version':_0x1917f5[_0x274385(0x163)],'sqlContent':_0x19ac07,'sqlConfig':_0x1917f5['sqlConfig']??undefined}),_0x3e4ddd=_0x3cfd10[_0x274385(0x150)]?await getDbName(_0x2e2e69[_0x274385(0x165)],Number(_0x3cfd10[_0x274385(0x150)]))[_0x274385(0x151)](()=>_0x4a7666[_0x274385(0x189)]):_0x4a7666['dbName'];_0x227a2b[_0x274385(0x187)][_0x5524e5[_0x274385(0x17a)]]={...buildSqlLockEntry(_0x3cfd10,_0x19ac07,_0x3eb66a,{'dbName':_0x3e4ddd}),'path':_0x5524e5['relativePath'],'mode':_0x1917f5[_0x274385(0x171)]},await archivePreviousSqlFileIfNeeded(_0x21207c,_0x1917f5['path'],_0x5524e5[_0x274385(0x154)]),_0x4def20['push']({'sqlCode':_0x5524e5[_0x274385(0x17a)],'remoteId':_0x1917f5[_0x274385(0x15d)]});}catch(_0xcc81b6){_0x1e7ce7['push']({'sqlCode':_0x5524e5[_0x274385(0x17a)],'error':_0xcc81b6 instanceof Error?_0xcc81b6['message']:String(_0xcc81b6)});}}return _0x227a2b[_0x274385(0x16e)]=new Date()[_0x274385(0x16a)](),await writeSqlLockFile(_0x21207c[_0x274385(0x179)],_0x29148e),{'ok':_0x1e7ce7[_0x274385(0x16f)]===0x0,'data':{'pushed':_0x4def20,'skipped':_0xff2f6b,'failed':_0x1e7ce7},'message':_0x274385(0x15a)+_0x4def20[_0x274385(0x16f)]+_0x274385(0x183)+_0xff2f6b['length']+_0x274385(0x178)+_0x1e7ce7[_0x274385(0x16f)]+'\x20failed'};}};async function archivePreviousSqlFileIfNeeded(_0x5f02c6,_0x348aec,_0x155f71){const _0x325d1a=a128_0x5cf880;if(!_0x348aec||_0x348aec===_0x155f71)return;const _0x185f39=join(_0x5f02c6[_0x325d1a(0x156)],_0x348aec);if(!await fileExists(_0x185f39))return;const _0x26633e=await moveToTrash(_0x5f02c6[_0x325d1a(0x14b)],_0x5f02c6[_0x325d1a(0x188)],_0x185f39);await cleanupEmptyDirectories(dirname(_0x185f39),_0x5f02c6['sqlRootDir']),void _0x26633e;}async function moveToTrash(_0x581793,_0x3226b2,_0x8bbd06){const _0x57343d=a128_0x5cf880,_0x402b72=new Date()[_0x57343d(0x16a)]()[_0x57343d(0x157)](/[:.]/g,'-'),_0x2d03f1=relative(_0x581793,_0x8bbd06),_0x5046c2=join(_0x3226b2,_0x402b72,_0x2d03f1);return await mkdir(dirname(_0x5046c2),{'recursive':!![]}),await rename(_0x8bbd06,_0x5046c2),_0x5046c2;}async function cleanupEmptyDirectories(_0x598373,_0x4325c8){const _0x9f6a4c=a128_0x5cf880;let _0x177e6d=resolve(_0x598373);const _0x4ffad2=resolve(_0x4325c8);while(_0x177e6d[_0x9f6a4c(0x177)](''+_0x4ffad2+sep)||_0x177e6d===_0x4ffad2){if(_0x177e6d===_0x4ffad2)return;try{const _0x22998d=await readdir(_0x177e6d);if(_0x22998d[_0x9f6a4c(0x16f)]>0x0)return;await rmdir(_0x177e6d);}catch{return;}_0x177e6d=dirname(_0x177e6d);}}async function resolveTargetDbBinding(_0x748a86,_0x46c498,_0x370ebb){const _0x9ab199=a128_0x5cf880,_0x164d14=_0x46c498[_0x9ab199(0x166)];if(!_0x164d14)return{'dbId':_0x370ebb[_0x9ab199(0x150)],'dbName':_0x370ebb[_0x9ab199(0x189)]};const _0x277dbc=buildDbDirectoryName(_0x370ebb[_0x9ab199(0x189)],_0x370ebb[_0x9ab199(0x150)]);if(_0x164d14===_0x277dbc)return{'dbId':_0x370ebb[_0x9ab199(0x150)],'dbName':_0x370ebb['dbName']};const _0x4324e2=parseExplicitDbDirectory(_0x164d14);if(_0x4324e2!=null)return{'dbId':_0x4324e2,'dbName':await getDbName(_0x748a86,_0x4324e2)[_0x9ab199(0x151)](()=>undefined)};const _0xbf70c8=await listDatabases(_0x748a86),_0x4395b8=_0xbf70c8['filter'](_0x3c2e4f=>buildDbDirectoryName(_0x3c2e4f['dbName'],_0x3c2e4f[_0x9ab199(0x150)])===_0x164d14);if(_0x4395b8['length']===0x1)return{'dbId':_0x4395b8[0x0][_0x9ab199(0x150)],'dbName':_0x4395b8[0x0][_0x9ab199(0x189)]};if(_0x4395b8[_0x9ab199(0x16f)]===0x0)throw CliErrors[_0x9ab199(0x161)]('No\x20database\x20matches\x20local\x20directory\x20\x22'+_0x164d14+'\x22\x20for\x20sqlCode\x20'+_0x46c498[_0x9ab199(0x17a)]+'.');const _0x4df4b2=_0x4395b8[_0x9ab199(0x14c)](_0x21c19a=>_0x21c19a['dbName']+'\x20('+_0x21c19a[_0x9ab199(0x150)]+')')['join'](',\x20');throw CliErrors['validation'](_0x9ab199(0x152)+_0x164d14+_0x9ab199(0x167)+_0x46c498['sqlCode']+':\x20'+_0x4df4b2);}function a128_0x5420(){const _0x50b351=['push','filePath','132wTXBbM','Multiple\x20local\x20SQL\x20files\x20found\x20for\x20sqlCode\x20','Would\x20push\x20','\x20pushed,\x20','missing\x20remote\x20version;\x20run\x20`rabetbase\x20sql\x20pull`\x20to\x20refresh\x20version\x20info\x20first','.\x20Keep\x20only\x20one\x20file\x20under\x20its\x20sqlCode\x20directory\x20before\x20pushing.','str','sqls','trashDir','dbName','581IdWJAL','\x20SQL\x20file(s)','POST','34HbBGjA','projectRoot','map','entries','sql','5985JgrxTF','dbId','catch','Local\x20directory\x20\x22','240VHqkAx','relativePath','boolean','sqlRootDir','replace','force','local\x20SQL\x20is\x20not\x20tracked\x20by\x20sql.lock.json;\x20use\x20`rabetbase\x20sql\x20create`\x20or\x20`rabetbase\x20sql\x20pull`\x20first','Push\x20complete:\x20','path','29453zneTqr','remoteId','Push\x20local\x20SQL\x20files\x20to\x20remote','unchanged','has','validation','2004365TsAgNk','version','6525328UMifDg','appCode','dbDirectory','\x22\x20matches\x20multiple\x20databases\x20for\x20sqlCode\x20','40804KPWujp','filter','toISOString','bool','high-risk-write','53142vQreCz','lastSync','length','156WUIWel','mode','sqlcode','No\x20local\x20SQL\x20files\x20found.','hash','/smartapi/custom/updateUserCustomSql','1799405GsIXCZ','startsWith','\x20skipped,\x20','lockFilePath','sqlCode','Local\x20SQL\x20not\x20found:\x20','sqlRoot','sqlName'];a128_0x5420=function(){return _0x50b351;};return a128_0x5420();}function parseExplicitDbDirectory(_0x5d3956){const _0x35176f=/^db-(\d+)$/['exec'](_0x5d3956);if(!_0x35176f)return null;const _0x23f986=Number(_0x35176f[0x1]);return Number['isFinite'](_0x23f986)&&_0x23f986>0x0?_0x23f986:null;}
1
+ const a128_0xdcd7a3=a128_0x1d5f;(function(_0x2263af,_0x4b2b37){const _0x4de78d=a128_0x1d5f,_0x56410f=_0x2263af();while(!![]){try{const _0x1c22d7=parseInt(_0x4de78d(0x1dd))/0x1+parseInt(_0x4de78d(0x1cb))/0x2*(-parseInt(_0x4de78d(0x1eb))/0x3)+parseInt(_0x4de78d(0x1ca))/0x4*(parseInt(_0x4de78d(0x1ee))/0x5)+parseInt(_0x4de78d(0x1c1))/0x6+parseInt(_0x4de78d(0x1b9))/0x7+parseInt(_0x4de78d(0x1d7))/0x8+-parseInt(_0x4de78d(0x1df))/0x9;if(_0x1c22d7===_0x4b2b37)break;else _0x56410f['push'](_0x56410f['shift']());}catch(_0x367bed){_0x56410f['push'](_0x56410f['shift']());}}}(a128_0x1150,0x3eb4b));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';import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile,writeSqlLockFile}from'../../core/sql-sync/lock.js';import{fileExists}from'../../core/bff/file-system.js';import{CliErrors}from'../../errors.js';import{SQLCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildSqlLockEntry,stripLocalSqlMetadata}from'./shared.js';import{buildDbDirectoryName}from'../../core/sql-sync/utils.js';async function getTargetSqlQueries(_0x53a00b,_0x3a3e0b,_0x2fa719){const _0x3b89de=a128_0x1d5f,_0x43d99b=await scanLocalSqlQueries(_0x53a00b),_0x5da300=new Map();for(const _0x44c34d of _0x43d99b){if(_0x2fa719&&_0x44c34d['sqlCode']!==_0x2fa719)continue;const _0x219b46=_0x5da300['get'](_0x44c34d['sqlCode'])??[];_0x219b46['push'](_0x44c34d),_0x5da300[_0x3b89de(0x1e7)](_0x44c34d['sqlCode'],_0x219b46);}if(_0x2fa719&&!_0x5da300[_0x3b89de(0x1bf)](_0x2fa719))throw CliErrors[_0x3b89de(0x1cf)](_0x3b89de(0x1d3)+_0x2fa719);const _0x32d261=[];for(const [_0x421a67,_0x63e6a0]of _0x5da300[_0x3b89de(0x1be)]()){if(_0x63e6a0[_0x3b89de(0x1c4)]===0x1){_0x32d261[_0x3b89de(0x1d2)](_0x63e6a0[0x0]);continue;}const _0x33ee58=_0x3a3e0b[_0x3b89de(0x1c6)][_0x421a67],_0xb8096f=_0x33ee58?.[_0x3b89de(0x1c9)],_0x2f8b19=_0xb8096f?_0x63e6a0[_0x3b89de(0x1c3)](_0x195de3=>_0x195de3[_0x3b89de(0x1f1)]!==_0xb8096f):_0x63e6a0;if(_0x33ee58&&_0x2f8b19[_0x3b89de(0x1c4)]===0x1){_0x32d261[_0x3b89de(0x1d2)](_0x2f8b19[0x0]);continue;}throw CliErrors[_0x3b89de(0x1cf)](_0x3b89de(0x1ea)+_0x421a67+_0x3b89de(0x1d6));}return _0x32d261;}export const sqlPush={'service':a128_0xdcd7a3(0x1e5),'command':a128_0xdcd7a3(0x1d2),'description':'Push\x20local\x20SQL\x20files\x20to\x20remote','risk':a128_0xdcd7a3(0x1e9),'flags':[SQLCODE_FLAG_OPTIONAL,{'name':a128_0xdcd7a3(0x1b6),'type':a128_0xdcd7a3(0x1e4),'description':'Force\x20push\x20even\x20if\x20local\x20hash\x20matches\x20lock'}],async 'dryRun'(_0x3d5bba){const _0xfc3e92=a128_0xdcd7a3,_0x86d9b=loadSqlProjectConfig(_0x3d5bba['appCode']),_0x1296e3=await readSqlLockFile(_0x86d9b[_0xfc3e92(0x1ed)]),{appLock:_0x50aaa0}=ensureSqlLockScope(_0x1296e3??createEmptySqlLock(),_0x3d5bba[_0xfc3e92(0x1ce)],_0x86d9b['sqlRoot'],_0xfc3e92(0x1d2)),_0x14a3b4=await getTargetSqlQueries(_0x86d9b,_0x50aaa0,_0x3d5bba['str'](_0xfc3e92(0x1b4))||undefined),_0x1e592c=[];for(const _0x4798f1 of _0x14a3b4){const _0xbc43e8=await computeSqlFileHash(_0x4798f1['filePath']),_0x41f230=_0x50aaa0[_0xfc3e92(0x1c6)][_0x4798f1[_0xfc3e92(0x1c0)]],_0x337948=!!_0x41f230&&(_0x41f230[_0xfc3e92(0x1c9)]!==_0x4798f1[_0xfc3e92(0x1f1)]||!!_0x4798f1[_0xfc3e92(0x1c5)]&&_0x41f230[_0xfc3e92(0x1c5)]!==_0x4798f1[_0xfc3e92(0x1c5)]);if(!_0x3d5bba['bool'](_0xfc3e92(0x1b6))&&_0x41f230&&_0x41f230[_0xfc3e92(0x1f0)]===_0xbc43e8&&!_0x337948)continue;_0x1e592c['push'](_0x4798f1['sqlCode']);}return{'method':_0xfc3e92(0x1b5),'url':_0xfc3e92(0x1cd),'body':{'sqlCodes':_0x1e592c,'appCode':_0x3d5bba[_0xfc3e92(0x1ce)]},'description':'Would\x20push\x20'+_0x1e592c[_0xfc3e92(0x1c4)]+_0xfc3e92(0x1da)};},async 'execute'(_0x5c777f){const _0xf43a8e=a128_0xdcd7a3,_0xf4403a=loadSqlProjectConfig(_0x5c777f['appCode']),_0x38a4e1=await readSqlLockFile(_0xf4403a[_0xf43a8e(0x1ed)]),{lockData:_0x148e88,appLock:_0x47de8}=ensureSqlLockScope(_0x38a4e1??createEmptySqlLock(),_0x5c777f[_0xf43a8e(0x1ce)],_0xf4403a[_0xf43a8e(0x1bd)],'push'),_0x56cb4b=await getTargetSqlQueries(_0xf4403a,_0x47de8,_0x5c777f['str'](_0xf43a8e(0x1b4))||undefined);if(_0x56cb4b[_0xf43a8e(0x1c4)]===0x0)return{'ok':!![],'data':{'pushed':[],'skipped':[],'failed':[]},'message':_0xf43a8e(0x1e1)};const _0x3e96b4=[],_0x1f4e11=[],_0x5ccaa9=[];for(const _0xf97f08 of _0x56cb4b){const _0x1fd275=_0x47de8[_0xf43a8e(0x1c6)][_0xf97f08[_0xf43a8e(0x1c0)]];if(!_0x1fd275){_0x5ccaa9['push']({'sqlCode':_0xf97f08[_0xf43a8e(0x1c0)],'error':_0xf43a8e(0x1d4)});continue;}try{const _0x576ffe=await computeSqlFileHash(_0xf97f08['filePath']),_0x100200=_0x1fd275['path']!==_0xf97f08['relativePath']||!!_0xf97f08[_0xf43a8e(0x1c5)]&&_0x1fd275[_0xf43a8e(0x1c5)]!==_0xf97f08[_0xf43a8e(0x1c5)];if(!_0x5c777f['bool'](_0xf43a8e(0x1b6))&&_0x1fd275[_0xf43a8e(0x1f0)]===_0x576ffe&&!_0x100200){_0x1f4e11[_0xf43a8e(0x1d2)]({'sqlCode':_0xf97f08[_0xf43a8e(0x1c0)],'reason':_0xf43a8e(0x1e0)});continue;}if(_0x1fd275[_0xf43a8e(0x1b3)]==null){_0x5ccaa9[_0xf43a8e(0x1d2)]({'sqlCode':_0xf97f08[_0xf43a8e(0x1c0)],'error':'missing\x20remote\x20version;\x20run\x20`rabetbase\x20sql\x20pull`\x20to\x20refresh\x20version\x20info\x20first'});continue;}const _0x3c1a5b=await readFile(_0xf97f08[_0xf43a8e(0x1d9)],_0xf43a8e(0x1c2)),_0x333130=stripLocalSqlMetadata(_0x3c1a5b,_0xf97f08[_0xf43a8e(0x1d1)]),_0x13934f=_0xf97f08['sqlName']||_0x1fd275[_0xf43a8e(0x1c5)],_0x5385ae=await resolveTargetDbBinding(_0x5c777f[_0xf43a8e(0x1ce)],_0xf97f08,_0x1fd275),_0x292e1f=await updateSqlQuery({'id':_0x1fd275[_0xf43a8e(0x1e8)],'appCode':_0x5c777f[_0xf43a8e(0x1ce)],'sqlCode':_0xf97f08['sqlCode'],'sqlName':_0x13934f,'dbId':_0x5385ae['dbId'],'version':_0x1fd275[_0xf43a8e(0x1b3)],'sqlContent':_0x333130,'sqlConfig':_0x1fd275[_0xf43a8e(0x1d0)]??undefined}),_0x1c777c=_0x292e1f[_0xf43a8e(0x1bb)]?await getDbName(_0x5c777f[_0xf43a8e(0x1ce)],Number(_0x292e1f[_0xf43a8e(0x1bb)]))['catch'](()=>_0x5385ae[_0xf43a8e(0x1c8)]):_0x5385ae['dbName'];_0x47de8[_0xf43a8e(0x1c6)][_0xf97f08[_0xf43a8e(0x1c0)]]={...buildSqlLockEntry(_0x292e1f,_0x333130,_0x576ffe,{'dbName':_0x1c777c}),'path':_0xf97f08['relativePath'],'mode':_0x1fd275[_0xf43a8e(0x1d1)]},await archivePreviousSqlFileIfNeeded(_0xf4403a,_0x1fd275['path'],_0xf97f08[_0xf43a8e(0x1f1)]),_0x3e96b4[_0xf43a8e(0x1d2)]({'sqlCode':_0xf97f08[_0xf43a8e(0x1c0)],'remoteId':_0x1fd275[_0xf43a8e(0x1e8)]});}catch(_0x2d1c52){_0x5ccaa9[_0xf43a8e(0x1d2)]({'sqlCode':_0xf97f08[_0xf43a8e(0x1c0)],'error':_0x2d1c52 instanceof Error?_0x2d1c52['message']:String(_0x2d1c52)});}}return _0x47de8[_0xf43a8e(0x1cc)]=new Date()[_0xf43a8e(0x1e3)](),await writeSqlLockFile(_0xf4403a[_0xf43a8e(0x1ed)],_0x148e88),{'ok':_0x5ccaa9[_0xf43a8e(0x1c4)]===0x0,'data':{'pushed':_0x3e96b4,'skipped':_0x1f4e11,'failed':_0x5ccaa9},'message':_0xf43a8e(0x1ec)+_0x3e96b4[_0xf43a8e(0x1c4)]+'\x20pushed,\x20'+_0x1f4e11[_0xf43a8e(0x1c4)]+_0xf43a8e(0x1e2)+_0x5ccaa9['length']+'\x20failed'};}};async function archivePreviousSqlFileIfNeeded(_0x41e90e,_0x413175,_0x413ffa){const _0x198cc4=a128_0xdcd7a3;if(!_0x413175||_0x413175===_0x413ffa)return;const _0x29e8ea=join(_0x41e90e[_0x198cc4(0x1dc)],_0x413175);if(!await fileExists(_0x29e8ea))return;const _0x56ea1e=await moveToTrash(_0x41e90e[_0x198cc4(0x1b8)],_0x41e90e[_0x198cc4(0x1e6)],_0x29e8ea);await cleanupEmptyDirectories(dirname(_0x29e8ea),_0x41e90e['sqlRootDir']),void _0x56ea1e;}function a128_0x1150(){const _0x42458a=['force','exec','projectRoot','1898078RUqJDW','\x22\x20for\x20sqlCode\x20','dbId','map','sqlRoot','entries','has','sqlCode','1058526tPKuZj','utf8','filter','length','sqlName','sqls','startsWith','dbName','path','9132viTOvq','73518jSfpNu','lastSync','/smartapi/custom/updateUserCustomSql','appCode','validation','sqlConfig','mode','push','Local\x20SQL\x20not\x20found:\x20','local\x20SQL\x20is\x20not\x20tracked\x20by\x20sql.lock.json;\x20use\x20`rabetbase\x20sql\x20create`\x20or\x20`rabetbase\x20sql\x20pull`\x20first','join','.\x20Keep\x20only\x20one\x20file\x20under\x20its\x20sqlCode\x20directory\x20before\x20pushing.','2496608ABkjRe','No\x20database\x20matches\x20local\x20directory\x20\x22','filePath','\x20SQL\x20file(s)','catch','sqlRootDir','168857GqRrBG','Local\x20directory\x20\x22','5603103hIkqkY','unchanged','No\x20local\x20SQL\x20files\x20found.','\x20skipped,\x20','toISOString','boolean','sql','trashDir','set','remoteId','high-risk-write','Multiple\x20local\x20SQL\x20files\x20found\x20for\x20sqlCode\x20','15nIEeOY','Push\x20complete:\x20','lockFilePath','295dwZzQI','dbDirectory','hash','relativePath','version','sqlcode','POST'];a128_0x1150=function(){return _0x42458a;};return a128_0x1150();}async function moveToTrash(_0x22e685,_0x8210ed,_0x1d2a96){const _0x4f8f7b=new Date()['toISOString']()['replace'](/[:.]/g,'-'),_0x3fc6ea=relative(_0x22e685,_0x1d2a96),_0x31a256=join(_0x8210ed,_0x4f8f7b,_0x3fc6ea);return await mkdir(dirname(_0x31a256),{'recursive':!![]}),await rename(_0x1d2a96,_0x31a256),_0x31a256;}async function cleanupEmptyDirectories(_0x33f8d0,_0x51a92a){const _0x5a40c4=a128_0xdcd7a3;let _0x39c1cd=resolve(_0x33f8d0);const _0xadc77d=resolve(_0x51a92a);while(_0x39c1cd[_0x5a40c4(0x1c7)](''+_0xadc77d+sep)||_0x39c1cd===_0xadc77d){if(_0x39c1cd===_0xadc77d)return;try{const _0x1462eb=await readdir(_0x39c1cd);if(_0x1462eb[_0x5a40c4(0x1c4)]>0x0)return;await rmdir(_0x39c1cd);}catch{return;}_0x39c1cd=dirname(_0x39c1cd);}}function a128_0x1d5f(_0x17237f,_0x5a10c6){_0x17237f=_0x17237f-0x1b3;const _0x115072=a128_0x1150();let _0x1d5fd4=_0x115072[_0x17237f];return _0x1d5fd4;}async function resolveTargetDbBinding(_0x538b8f,_0x3cc471,_0x2d33a4){const _0x105fdd=a128_0xdcd7a3,_0x54d4bf=_0x3cc471[_0x105fdd(0x1ef)];if(!_0x54d4bf)return{'dbId':_0x2d33a4[_0x105fdd(0x1bb)],'dbName':_0x2d33a4[_0x105fdd(0x1c8)]};const _0x5d2c14=buildDbDirectoryName(_0x2d33a4[_0x105fdd(0x1c8)],_0x2d33a4[_0x105fdd(0x1bb)]);if(_0x54d4bf===_0x5d2c14)return{'dbId':_0x2d33a4[_0x105fdd(0x1bb)],'dbName':_0x2d33a4['dbName']};const _0x348cae=parseExplicitDbDirectory(_0x54d4bf);if(_0x348cae!=null)return{'dbId':_0x348cae,'dbName':await getDbName(_0x538b8f,_0x348cae)[_0x105fdd(0x1db)](()=>undefined)};const _0xe08f29=await listDatabases(_0x538b8f),_0x143b05=_0xe08f29[_0x105fdd(0x1c3)](_0x52ac51=>buildDbDirectoryName(_0x52ac51[_0x105fdd(0x1c8)],_0x52ac51['dbId'])===_0x54d4bf);if(_0x143b05[_0x105fdd(0x1c4)]===0x1)return{'dbId':_0x143b05[0x0][_0x105fdd(0x1bb)],'dbName':_0x143b05[0x0][_0x105fdd(0x1c8)]};if(_0x143b05[_0x105fdd(0x1c4)]===0x0)throw CliErrors[_0x105fdd(0x1cf)](_0x105fdd(0x1d8)+_0x54d4bf+_0x105fdd(0x1ba)+_0x3cc471[_0x105fdd(0x1c0)]+'.');const _0x3090aa=_0x143b05[_0x105fdd(0x1bc)](_0x1b9540=>_0x1b9540[_0x105fdd(0x1c8)]+'\x20('+_0x1b9540[_0x105fdd(0x1bb)]+')')[_0x105fdd(0x1d5)](',\x20');throw CliErrors[_0x105fdd(0x1cf)](_0x105fdd(0x1de)+_0x54d4bf+'\x22\x20matches\x20multiple\x20databases\x20for\x20sqlCode\x20'+_0x3cc471[_0x105fdd(0x1c0)]+':\x20'+_0x3090aa);}function parseExplicitDbDirectory(_0x24f869){const _0x23de3c=a128_0xdcd7a3,_0x11430a=/^db-(\d+)$/[_0x23de3c(0x1b7)](_0x24f869);if(!_0x11430a)return null;const _0x363e2d=Number(_0x11430a[0x1]);return Number['isFinite'](_0x363e2d)&&_0x363e2d>0x0?_0x363e2d:null;}
@@ -1 +1 @@
1
- function a129_0x4d5a(_0x42e17a,_0xefc3b3){_0x42e17a=_0x42e17a-0x83;const _0x31548f=a129_0x3154();let _0x4d5a06=_0x31548f[_0x42e17a];return _0x4d5a06;}const a129_0x431c8c=a129_0x4d5a;function a129_0x3154(){const _0x1e1b19=['557313YeGPUA','`rabetbase\x20sql\x20save`\x20has\x20been\x20deprecated.','5vTVrlQ','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`.','Target\x20database\x20—\x20accepts\x20a\x20numeric\x20ID\x20or\x20database\x20name\x20(e.g.\x20ecommerce_db)','4269904zFBdXi','sqlname','SQL\x20query\x20display\x20name','join','5071509yHwSll','validation','927292MACbyA','3bvFaLu','134974lRIhpe','3430833bGguef','write','3512586SMtsPG','string','Deprecated:\x20use\x20sql\x20create\x20to\x20create\x20and\x20sql\x20push\x20to\x20update','description'];a129_0x3154=function(){return _0x1e1b19;};return a129_0x3154();}(function(_0x1c6f90,_0x22f741){const _0x22a2f8=a129_0x4d5a,_0x4020c2=_0x1c6f90();while(!![]){try{const _0x1de763=parseInt(_0x22a2f8(0x90))/0x1+parseInt(_0x22a2f8(0x89))/0x2*(-parseInt(_0x22a2f8(0x88))/0x3)+parseInt(_0x22a2f8(0x87))/0x4*(-parseInt(_0x22a2f8(0x92))/0x5)+parseInt(_0x22a2f8(0x8c))/0x6+-parseInt(_0x22a2f8(0x8a))/0x7+parseInt(_0x22a2f8(0x95))/0x8+-parseInt(_0x22a2f8(0x85))/0x9;if(_0x1de763===_0x22f741)break;else _0x4020c2['push'](_0x4020c2['shift']());}catch(_0x3503b8){_0x4020c2['push'](_0x4020c2['shift']());}}}(a129_0x3154,0x4efe0));import{CliErrors}from'../../errors.js';import{SQLCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const SQL_SAVE_DEPRECATED_HINT=[a129_0x431c8c(0x91),'Create\x20new\x20SQL\x20with\x20`rabetbase\x20sql\x20create\x20--name\x20<name>\x20--db-id\x20<id>\x20--mode\x20sql|mybatisXml`.',a129_0x431c8c(0x93)][a129_0x431c8c(0x84)]('\x0a');export const sqlSave={'service':'sql','command':'save','description':a129_0x431c8c(0x8e),'risk':a129_0x431c8c(0x8b),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'file','type':a129_0x431c8c(0x8d),'required':!![],'description':'Path\x20to\x20the\x20SQL\x20file'},SQLCODE_FLAG_OPTIONAL,{'name':a129_0x431c8c(0x96),'type':a129_0x431c8c(0x8d),'description':a129_0x431c8c(0x83)},{'name':'db','type':a129_0x431c8c(0x8d),'description':a129_0x431c8c(0x94)},{'name':a129_0x431c8c(0x8f),'type':a129_0x431c8c(0x8d),'description':'Query\x20description'}],async 'validate'(){const _0x352a99=a129_0x431c8c;throw CliErrors[_0x352a99(0x86)](SQL_SAVE_DEPRECATED_HINT);},async 'execute'(){const _0x17fe77=a129_0x431c8c;throw CliErrors[_0x17fe77(0x86)](SQL_SAVE_DEPRECATED_HINT);}};
1
+ function a129_0x1a42(){const _0xa9d8c1=['3774024TiZfpU','Path\x20to\x20the\x20SQL\x20file','Target\x20database\x20—\x20accepts\x20a\x20numeric\x20ID\x20or\x20database\x20name\x20(e.g.\x20ecommerce_db)','661212qfwRtg','322525ybRPJo','20676IomJyv','112630RElwcV','688cTMnXv','Create\x20new\x20SQL\x20with\x20`rabetbase\x20sql\x20create\x20--name\x20<name>\x20--db-id\x20<id>\x20--mode\x20sql|mybatisXml`.','sql','save','645Sskdoh','join','description','string','Query\x20description','379786yqVTqW','sqlname','693aUpWkJ','43813RxOyMB','validation','Update\x20existing\x20SQL\x20by\x20editing\x20the\x20synced\x20file\x20under\x20`.rabetbase/sql/<appCode>/<dbName|db-<id>>/`\x20and\x20then\x20running\x20`rabetbase\x20sql\x20push\x20--sqlcode\x20<code>\x20--yes`.','write','file'];a129_0x1a42=function(){return _0xa9d8c1;};return a129_0x1a42();}const a129_0x2a6846=a129_0x4b5c;function a129_0x4b5c(_0x584e11,_0x473122){_0x584e11=_0x584e11-0x1b0;const _0x1a42c7=a129_0x1a42();let _0x4b5c5f=_0x1a42c7[_0x584e11];return _0x4b5c5f;}(function(_0x5dd9fd,_0x3865ce){const _0x19f37c=a129_0x4b5c,_0x4de046=_0x5dd9fd();while(!![]){try{const _0x46765a=parseInt(_0x19f37c(0x1c2))/0x1+parseInt(_0x19f37c(0x1b6))/0x2+parseInt(_0x19f37c(0x1c1))/0x3+parseInt(_0x19f37c(0x1c3))/0x4*(-parseInt(_0x19f37c(0x1b1))/0x5)+parseInt(_0x19f37c(0x1be))/0x6+-parseInt(_0x19f37c(0x1b9))/0x7*(-parseInt(_0x19f37c(0x1c5))/0x8)+parseInt(_0x19f37c(0x1b8))/0x9*(-parseInt(_0x19f37c(0x1c4))/0xa);if(_0x46765a===_0x3865ce)break;else _0x4de046['push'](_0x4de046['shift']());}catch(_0x4ad957){_0x4de046['push'](_0x4de046['shift']());}}}(a129_0x1a42,0x595e0));import{CliErrors}from'../../errors.js';import{SQLCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const SQL_SAVE_DEPRECATED_HINT=['`rabetbase\x20sql\x20save`\x20has\x20been\x20deprecated.',a129_0x2a6846(0x1c6),a129_0x2a6846(0x1bb)][a129_0x2a6846(0x1b2)]('\x0a');export const sqlSave={'service':a129_0x2a6846(0x1c7),'command':a129_0x2a6846(0x1b0),'description':'Deprecated:\x20use\x20sql\x20create\x20to\x20create\x20and\x20sql\x20push\x20to\x20update','risk':a129_0x2a6846(0x1bc),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a129_0x2a6846(0x1bd),'type':a129_0x2a6846(0x1b4),'required':!![],'description':a129_0x2a6846(0x1bf)},SQLCODE_FLAG_OPTIONAL,{'name':a129_0x2a6846(0x1b7),'type':a129_0x2a6846(0x1b4),'description':'SQL\x20query\x20display\x20name'},{'name':'db','type':'string','description':a129_0x2a6846(0x1c0)},{'name':a129_0x2a6846(0x1b3),'type':'string','description':a129_0x2a6846(0x1b5)}],async 'validate'(){throw CliErrors['validation'](SQL_SAVE_DEPRECATED_HINT);},async 'execute'(){const _0x500f94=a129_0x2a6846;throw CliErrors[_0x500f94(0x1ba)](SQL_SAVE_DEPRECATED_HINT);}};
@@ -1 +1 @@
1
- const a130_0xa3c748=a130_0x3875;function a130_0x3875(_0x359393,_0xf90f34){_0x359393=_0x359393-0xe8;const _0x1d6edb=a130_0x1d6e();let _0x3875fa=_0x1d6edb[_0x359393];return _0x3875fa;}(function(_0x870d59,_0x51cb2c){const _0x7a8194=a130_0x3875,_0x12783f=_0x870d59();while(!![]){try{const _0x5621af=parseInt(_0x7a8194(0xf0))/0x1+parseInt(_0x7a8194(0x107))/0x2+parseInt(_0x7a8194(0x104))/0x3+parseInt(_0x7a8194(0xfb))/0x4*(-parseInt(_0x7a8194(0xfe))/0x5)+parseInt(_0x7a8194(0x108))/0x6+-parseInt(_0x7a8194(0x110))/0x7*(parseInt(_0x7a8194(0xee))/0x8)+-parseInt(_0x7a8194(0xf5))/0x9*(parseInt(_0x7a8194(0x10f))/0xa);if(_0x5621af===_0x51cb2c)break;else _0x12783f['push'](_0x12783f['shift']());}catch(_0x1b0185){_0x12783f['push'](_0x12783f['shift']());}}}(a130_0x1d6e,0x61c70));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_0xa3c748(0xf6);export function buildSqlLockEntry(_0x37f774,_0x8d7012,_0x378b81,_0x679987){const _0x59e067=a130_0xa3c748,_0x5d226c=detectSqlMode(_0x8d7012);return{'path':buildSqlRelativePath(_0x37f774[_0x59e067(0x114)],_0x37f774[_0x59e067(0xf3)],_0x679987?.[_0x59e067(0xe9)],_0x5d226c,_0x37f774[_0x59e067(0xfc)]),'hash':_0x378b81,'remoteId':_0x37f774['id'],'version':_0x37f774[_0x59e067(0x10e)],'dbId':Number(_0x37f774[_0x59e067(0xfc)]),'dbName':_0x679987?.[_0x59e067(0xe9)],'sqlName':_0x37f774[_0x59e067(0xf3)],'sqlConfig':_0x37f774[_0x59e067(0xea)]??undefined,'mode':_0x5d226c};}export function cloneSqlLockData(_0x346858){const _0xa9fb86=a130_0xa3c748;return{'apps':Object[_0xa9fb86(0x112)](Object[_0xa9fb86(0xef)](_0x346858[_0xa9fb86(0x102)])[_0xa9fb86(0x103)](([_0x2bafe2,_0xbbe654])=>[_0x2bafe2,{'sqlRoot':_0xbbe654['sqlRoot'],'lastSync':_0xbbe654[_0xa9fb86(0xf8)],'sqls':{..._0xbbe654[_0xa9fb86(0xe8)]}}]))};}export function ensureRemoteSqlContent(_0x870ec1){const _0x418669=a130_0xa3c748;return _0x870ec1[_0x418669(0x111)]??'';}export function buildLocalSqlFileContent(_0x1cd913,_0x303921,_0x588464){const _0x1d5c92=a130_0xa3c748,_0x2676fe=_0x588464?.[_0x1d5c92(0xf4)]??detectSqlMode(_0x303921),_0x5e75c1=stripLocalSqlMetadata(_0x303921,_0x2676fe)[_0x1d5c92(0xec)](),_0x1ac3cb=[...buildMetadataHeaderLines({'sqlCode':_0x1cd913[_0x1d5c92(0x114)],'sqlName':_0x1cd913[_0x1d5c92(0xf3)],'dbId':_0x1cd913[_0x1d5c92(0xfc)],'dbName':_0x588464?.['dbName'],'mode':_0x2676fe,'syncedAt':_0x588464?.[_0x1d5c92(0x10c)],'description':_0x588464?.[_0x1d5c92(0xed)]},_0x2676fe),'',_0x5e75c1],_0x54661e=_0x1ac3cb[_0x1d5c92(0xfa)]('\x0a');return _0x54661e[_0x1d5c92(0xf9)]('\x0a')?_0x54661e:_0x54661e+'\x0a';}export function stripLocalSqlMetadata(_0x7ef0be,_0x29621f){const _0x3a7c15=a130_0xa3c748,_0x29ea51=_0x7ef0be[_0x3a7c15(0xff)](/\r\n/g,'\x0a')['split']('\x0a'),_0x39b33c=[];let _0x50c619=0x0;if(_0x29621f==='mybatisXml')while(_0x50c619<_0x29ea51[_0x3a7c15(0xf2)]){const _0x159e19=_0x29ea51[_0x50c619]??'';if(/^\s*<!--\s*@lovrabet\./[_0x3a7c15(0x113)](_0x159e19)){_0x50c619++;continue;}if(_0x159e19[_0x3a7c15(0xec)]()===''&&_0x50c619>0x0){_0x50c619++;continue;}break;}else while(_0x50c619<_0x29ea51['length']){const _0x97ad34=_0x29ea51[_0x50c619]??'';if(/^\s*--\s*@lovrabet\./[_0x3a7c15(0x113)](_0x97ad34)){_0x50c619++;continue;}if(_0x97ad34[_0x3a7c15(0xec)]()===''&&_0x50c619>0x0){_0x50c619++;continue;}break;}for(;_0x50c619<_0x29ea51[_0x3a7c15(0xf2)];_0x50c619++){_0x39b33c[_0x3a7c15(0xf7)](_0x29ea51[_0x50c619]);}return _0x39b33c[_0x3a7c15(0xfa)]('\x0a')[_0x3a7c15(0x105)]();}export function resolveSqlMode(_0x51dfc9,_0x15e7f5){const _0x97215f=a130_0xa3c748;if(_0x15e7f5?.[_0x97215f(0xf4)])return _0x15e7f5[_0x97215f(0xf4)];return detectSqlMode(_0x51dfc9);}function a130_0x1d6e(){const _0x481c69=['path','version','20dGKLjW','23597xWTprx','sqlContent','fromEntries','test','sqlCode','sqls','dbName','sqlConfig','toLowerCase','trim','description','712viqzit','entries','762375QeBBgC','filter','length','sqlName','mode','1976085flSHLK','.rabetbase/sql','push','lastSync','endsWith','join','1364424LVljcS','dbId','stdin','10umfQqe','replace','yes','<!--\x20@lovrabet.','apps','map','2087487YHmcqZ','trimStart','\x20[y/N]\x20','374258loDLck','1059144dIRfxy','--\x20@lovrabet.','close','mybatisXml','syncedAt'];a130_0x1d6e=function(){return _0x481c69;};return a130_0x1d6e();}export function resolveSqlFileName(_0x38e593,_0x4076ca,_0x45daa6){const _0x5f48df=a130_0xa3c748;if(_0x45daa6?.['path'])return _0x45daa6[_0x5f48df(0x10d)];if(_0x45daa6?.[_0x5f48df(0xf3)]||_0x45daa6?.[_0x5f48df(0xe9)])return buildSqlRelativePath(_0x38e593,_0x45daa6?.[_0x5f48df(0xf3)],_0x45daa6?.[_0x5f48df(0xe9)],resolveSqlMode(_0x4076ca,_0x45daa6),_0x45daa6?.[_0x5f48df(0xfc)]);return buildDefaultSqlFileName(_0x38e593,resolveSqlMode(_0x4076ca,_0x45daa6));}export function resolveSqlLocalDir(_0x1060c6,_0x2674f8){return join(_0x1060c6,SQL_LOCAL_REL_DIR,_0x2674f8);}export async function confirmForceOverwrite(_0x3d011d){const _0x518f29=a130_0xa3c748,_0x165196=createInterface({'input':process[_0x518f29(0xfd)],'output':process['stderr']}),_0x23d2a1=await new Promise(_0x225063=>{const _0x55134a=_0x518f29;_0x165196['question'](_0x3d011d+_0x55134a(0x106),_0x225063);});return _0x165196[_0x518f29(0x10a)](),['y',_0x518f29(0x100)]['includes'](_0x23d2a1[_0x518f29(0xec)]()[_0x518f29(0xeb)]());}export function findSqlLockScope(_0x59f20e,_0x4a666e){const _0x1ecbf3=a130_0xa3c748;return _0x59f20e[_0x1ecbf3(0x102)][_0x4a666e];}function buildMetadataHeaderLines(_0x50a61d,_0x1917f7){const _0x51aa5a=a130_0xa3c748,_0x1edac7=[[_0x51aa5a(0x114),_0x50a61d[_0x51aa5a(0x114)]],[_0x51aa5a(0xf3),_0x50a61d['sqlName']],[_0x51aa5a(0xfc),_0x50a61d[_0x51aa5a(0xfc)]],[_0x51aa5a(0xe9),_0x50a61d['dbName']],[_0x51aa5a(0xf4),_0x50a61d[_0x51aa5a(0xf4)]],['syncedAt',_0x50a61d[_0x51aa5a(0x10c)]],[_0x51aa5a(0xed),_0x50a61d['description']]];if(_0x1917f7===_0x51aa5a(0x10b))return _0x1edac7[_0x51aa5a(0xf1)](([,_0x1fd029])=>_0x1fd029!==undefined&&_0x1fd029!==null&&String(_0x1fd029)[_0x51aa5a(0xec)]()!=='')[_0x51aa5a(0x103)](([_0x458b6a,_0x2e92ee])=>_0x51aa5a(0x101)+_0x458b6a+':\x20'+String(_0x2e92ee)+'\x20-->');return _0x1edac7[_0x51aa5a(0xf1)](([,_0x429af6])=>_0x429af6!==undefined&&_0x429af6!==null&&String(_0x429af6)[_0x51aa5a(0xec)]()!=='')[_0x51aa5a(0x103)](([_0x472604,_0x1b69ee])=>_0x51aa5a(0x109)+_0x472604+':\x20'+String(_0x1b69ee));}
1
+ (function(_0x53a788,_0x548877){const _0x49f02a=a130_0x2798,_0x4c210d=_0x53a788();while(!![]){try{const _0x451698=-parseInt(_0x49f02a(0xac))/0x1+parseInt(_0x49f02a(0xbb))/0x2+-parseInt(_0x49f02a(0xae))/0x3+-parseInt(_0x49f02a(0xcb))/0x4+parseInt(_0x49f02a(0xa8))/0x5+parseInt(_0x49f02a(0xbf))/0x6+parseInt(_0x49f02a(0xb2))/0x7;if(_0x451698===_0x548877)break;else _0x4c210d['push'](_0x4c210d['shift']());}catch(_0x36029c){_0x4c210d['push'](_0x4c210d['shift']());}}}(a130_0x2cde,0x7495b));import{createInterface}from'node:readline';import{join}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath,detectSqlMode}from'../../core/sql-sync/utils.js';export const SQL_LOCAL_REL_DIR='.rabetbase/sql';export function buildSqlLockEntry(_0x580e36,_0x278b00,_0x415865,_0x20015c){const _0x17cc0d=a130_0x2798,_0x22be39=detectSqlMode(_0x278b00);return{'path':buildSqlRelativePath(_0x580e36[_0x17cc0d(0xb8)],_0x580e36[_0x17cc0d(0xc0)],_0x20015c?.[_0x17cc0d(0xc5)],_0x22be39,_0x580e36['dbId']),'hash':_0x415865,'remoteId':_0x580e36['id'],'version':_0x580e36[_0x17cc0d(0xc2)],'dbId':Number(_0x580e36[_0x17cc0d(0xa6)]),'dbName':_0x20015c?.['dbName'],'sqlName':_0x580e36[_0x17cc0d(0xc0)],'sqlConfig':_0x580e36['sqlConfig']??undefined,'mode':_0x22be39};}export function cloneSqlLockData(_0x1c65ef){const _0x3d8bb1=a130_0x2798;return{'apps':Object[_0x3d8bb1(0xa7)](Object[_0x3d8bb1(0xc3)](_0x1c65ef['apps'])[_0x3d8bb1(0xc6)](([_0x49b505,_0x66636b])=>[_0x49b505,{'sqlRoot':_0x66636b[_0x3d8bb1(0xb0)],'lastSync':_0x66636b[_0x3d8bb1(0xa5)],'sqls':{..._0x66636b['sqls']}}]))};}export function ensureRemoteSqlContent(_0xa6c3db){const _0x9b366e=a130_0x2798;return _0xa6c3db[_0x9b366e(0xbc)]??'';}export function buildLocalSqlFileContent(_0x5bc09a,_0x1a2494,_0x728027){const _0x34fb4c=a130_0x2798,_0x269313=_0x728027?.[_0x34fb4c(0xc7)]??detectSqlMode(_0x1a2494),_0x46d17e=stripLocalSqlMetadata(_0x1a2494,_0x269313)[_0x34fb4c(0xb1)](),_0x5ba997=[...buildMetadataHeaderLines({'sqlCode':_0x5bc09a[_0x34fb4c(0xb8)],'sqlName':_0x5bc09a[_0x34fb4c(0xc0)],'dbId':_0x5bc09a[_0x34fb4c(0xa6)],'dbName':_0x728027?.[_0x34fb4c(0xc5)],'mode':_0x269313,'syncedAt':_0x728027?.['syncedAt'],'description':_0x728027?.[_0x34fb4c(0xca)]},_0x269313),'',_0x46d17e],_0x1bcd93=_0x5ba997[_0x34fb4c(0xc9)]('\x0a');return _0x1bcd93[_0x34fb4c(0xc1)]('\x0a')?_0x1bcd93:_0x1bcd93+'\x0a';}function a130_0x2cde(){const _0x508d79=['mybatisXml','trimStart','261082ZnOOPi','path','767637bWTClb','toLowerCase','sqlRoot','trim','396767WPkDAf','--\x20@lovrabet.','syncedAt','question','includes','stdin','sqlCode','test','replace','1694208CdgpQz','sqlContent','split','length','981822YdLlTS','sqlName','endsWith','version','entries','push','dbName','map','mode','yes','join','description','3043392TCcBlp','lastSync','dbId','fromEntries','3439590RhGzmc','stderr'];a130_0x2cde=function(){return _0x508d79;};return a130_0x2cde();}export function stripLocalSqlMetadata(_0x110a74,_0x40fd25){const _0x6ecc01=a130_0x2798,_0x14886d=_0x110a74[_0x6ecc01(0xba)](/\r\n/g,'\x0a')[_0x6ecc01(0xbd)]('\x0a'),_0x2d7fdb=[];let _0x2408f8=0x0;if(_0x40fd25===_0x6ecc01(0xaa))while(_0x2408f8<_0x14886d[_0x6ecc01(0xbe)]){const _0x52b519=_0x14886d[_0x2408f8]??'';if(/^\s*<!--\s*@lovrabet\./[_0x6ecc01(0xb9)](_0x52b519)){_0x2408f8++;continue;}if(_0x52b519[_0x6ecc01(0xb1)]()===''&&_0x2408f8>0x0){_0x2408f8++;continue;}break;}else while(_0x2408f8<_0x14886d[_0x6ecc01(0xbe)]){const _0x1ee138=_0x14886d[_0x2408f8]??'';if(/^\s*--\s*@lovrabet\./['test'](_0x1ee138)){_0x2408f8++;continue;}if(_0x1ee138['trim']()===''&&_0x2408f8>0x0){_0x2408f8++;continue;}break;}for(;_0x2408f8<_0x14886d[_0x6ecc01(0xbe)];_0x2408f8++){_0x2d7fdb[_0x6ecc01(0xc4)](_0x14886d[_0x2408f8]);}return _0x2d7fdb[_0x6ecc01(0xc9)]('\x0a')[_0x6ecc01(0xab)]();}export function resolveSqlMode(_0x452211,_0x4a8b1e){const _0x261320=a130_0x2798;if(_0x4a8b1e?.[_0x261320(0xc7)])return _0x4a8b1e[_0x261320(0xc7)];return detectSqlMode(_0x452211);}export function resolveSqlFileName(_0x3a0f39,_0xff2855,_0x1a165e){const _0x2b561c=a130_0x2798;if(_0x1a165e?.[_0x2b561c(0xad)])return _0x1a165e['path'];if(_0x1a165e?.['sqlName']||_0x1a165e?.[_0x2b561c(0xc5)])return buildSqlRelativePath(_0x3a0f39,_0x1a165e?.['sqlName'],_0x1a165e?.[_0x2b561c(0xc5)],resolveSqlMode(_0xff2855,_0x1a165e),_0x1a165e?.['dbId']);return buildDefaultSqlFileName(_0x3a0f39,resolveSqlMode(_0xff2855,_0x1a165e));}export function resolveSqlLocalDir(_0x296ffb,_0x2c8d83){return join(_0x296ffb,SQL_LOCAL_REL_DIR,_0x2c8d83);}export async function confirmForceOverwrite(_0x7cf285){const _0x1306d9=a130_0x2798,_0x31aee5=createInterface({'input':process[_0x1306d9(0xb7)],'output':process[_0x1306d9(0xa9)]}),_0x4a12e9=await new Promise(_0x39ba58=>{const _0x3d8437=_0x1306d9;_0x31aee5[_0x3d8437(0xb5)](_0x7cf285+'\x20[y/N]\x20',_0x39ba58);});return _0x31aee5['close'](),['y',_0x1306d9(0xc8)][_0x1306d9(0xb6)](_0x4a12e9[_0x1306d9(0xb1)]()[_0x1306d9(0xaf)]());}function a130_0x2798(_0x401e54,_0x3e4d18){_0x401e54=_0x401e54-0xa5;const _0x2cde87=a130_0x2cde();let _0x2798ef=_0x2cde87[_0x401e54];return _0x2798ef;}export function findSqlLockScope(_0xdac710,_0x3adf86){return _0xdac710['apps'][_0x3adf86];}function buildMetadataHeaderLines(_0x5d6f39,_0x2fd2b0){const _0x4b182c=a130_0x2798,_0x369488=[['sqlCode',_0x5d6f39[_0x4b182c(0xb8)]],[_0x4b182c(0xc0),_0x5d6f39['sqlName']],[_0x4b182c(0xa6),_0x5d6f39[_0x4b182c(0xa6)]],['dbName',_0x5d6f39[_0x4b182c(0xc5)]],[_0x4b182c(0xc7),_0x5d6f39[_0x4b182c(0xc7)]],['syncedAt',_0x5d6f39[_0x4b182c(0xb4)]],[_0x4b182c(0xca),_0x5d6f39[_0x4b182c(0xca)]]];if(_0x2fd2b0===_0x4b182c(0xaa))return _0x369488['filter'](([,_0x5b58cc])=>_0x5b58cc!==undefined&&_0x5b58cc!==null&&String(_0x5b58cc)[_0x4b182c(0xb1)]()!=='')[_0x4b182c(0xc6)](([_0x12e3c0,_0x161bb0])=>'<!--\x20@lovrabet.'+_0x12e3c0+':\x20'+String(_0x161bb0)+'\x20-->');return _0x369488['filter'](([,_0x145ee2])=>_0x145ee2!==undefined&&_0x145ee2!==null&&String(_0x145ee2)['trim']()!=='')[_0x4b182c(0xc6)](([_0x46a954,_0x59c44d])=>_0x4b182c(0xb3)+_0x46a954+':\x20'+String(_0x59c44d));}
@@ -1 +1 @@
1
- const a131_0x11d6ff=a131_0x7981;(function(_0x4c6672,_0xa4c72b){const _0x1a9011=a131_0x7981,_0x327bf5=_0x4c6672();while(!![]){try{const _0x400662=-parseInt(_0x1a9011(0xe4))/0x1*(parseInt(_0x1a9011(0xfb))/0x2)+parseInt(_0x1a9011(0xf3))/0x3*(-parseInt(_0x1a9011(0xf6))/0x4)+parseInt(_0x1a9011(0x104))/0x5*(-parseInt(_0x1a9011(0xfa))/0x6)+-parseInt(_0x1a9011(0x105))/0x7*(parseInt(_0x1a9011(0xe7))/0x8)+parseInt(_0x1a9011(0xeb))/0x9*(-parseInt(_0x1a9011(0xef))/0xa)+-parseInt(_0x1a9011(0xf1))/0xb*(parseInt(_0x1a9011(0xfe))/0xc)+-parseInt(_0x1a9011(0xf2))/0xd*(-parseInt(_0x1a9011(0xf5))/0xe);if(_0x400662===_0xa4c72b)break;else _0x327bf5['push'](_0x327bf5['shift']());}catch(_0x5e1727){_0x327bf5['push'](_0x327bf5['shift']());}}}(a131_0x7e41,0x65177));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_0x7981(_0x3e323b,_0x2888ae){_0x3e323b=_0x3e323b-0xe4;const _0x7e418e=a131_0x7e41();let _0x798128=_0x7e418e[_0x3e323b];return _0x798128;}function a131_0x7e41(){const _0x552d64=['Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally','\x20added,\x20','map','10uzkmBB','bool','319ZWtrGC','130jKhzTh','3HsdRdi','relativePath','4581220pXbzTC','446300RfhUrW','remote','keys','\x20remote-only','54yLXZwt','203482GNrxvW','lockFilePath','sqls','81936iawkQo','appCode','boolean','Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','length','status','349235EDmGOg','216559PBUMdn','sqlName','lockKey','sqlRoot','paging','has','7FMqZYr','\x20unchanged','filePath','152pKdzVS','push','hash','\x20modified,\x20','5580261lSHjPt'];a131_0x7e41=function(){return _0x552d64;};return a131_0x7e41();}import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile}from'../../core/sql-sync/lock.js';const PAGE_SIZE=0x64;async function fetchAllSqlCodes(_0x8b29f9){const _0x3a0dde=a131_0x7981,_0x1cb16e=[];let _0x45a5fe=0x1;while(!![]){const _0x9ea499=await listSqlQueries(_0x8b29f9,{'currentPage':_0x45a5fe,'pageSize':PAGE_SIZE}),_0x30e0e5=_0x9ea499['tableData']??[];_0x1cb16e[_0x3a0dde(0xe8)](..._0x30e0e5[_0x3a0dde(0xee)](_0x5e7426=>_0x5e7426['sqlCode']));if(_0x30e0e5[_0x3a0dde(0x102)]===0x0)break;const _0x2e50d0=_0x9ea499[_0x3a0dde(0x109)]?.['totalCount'];if(_0x2e50d0!=null?_0x1cb16e[_0x3a0dde(0x102)]>=_0x2e50d0:_0x30e0e5[_0x3a0dde(0x102)]<PAGE_SIZE)break;_0x45a5fe++;}return _0x1cb16e;}export const sqlStatus={'service':'sql','command':a131_0x11d6ff(0x103),'description':a131_0x11d6ff(0x101),'risk':'read','flags':[{'name':a131_0x11d6ff(0xf7),'type':a131_0x11d6ff(0x100),'description':a131_0x11d6ff(0xec)}],async 'execute'(_0x3ca3c1){const _0x441a65=a131_0x11d6ff,_0x57fa7a=loadSqlProjectConfig(_0x3ca3c1[_0x441a65(0xff)]),_0x426842=await readSqlLockFile(_0x57fa7a[_0x441a65(0xfc)]),{appLock:_0x2ea26c}=ensureSqlLockScope(_0x426842??createEmptySqlLock(),_0x57fa7a[_0x441a65(0xff)],_0x57fa7a[_0x441a65(0x108)],_0x441a65(0x103)),_0x47a45a=await scanLocalSqlQueries(_0x57fa7a),_0x1aa817=[],_0x2a5a61=[],_0x46b7de=[],_0x29937a=[],_0x4d22e3=new Set(_0x47a45a['map'](_0xe93715=>_0xe93715[_0x441a65(0x107)]));for(const _0x18a928 of _0x47a45a){const _0x26539f=await computeSqlFileHash(_0x18a928[_0x441a65(0xe6)]),_0x17ca31=_0x2ea26c[_0x441a65(0xfd)][_0x18a928['lockKey']],_0x28f177=!!_0x17ca31&&_0x17ca31['path']!==_0x18a928[_0x441a65(0xf4)],_0x33817d=!!_0x17ca31&&!!_0x18a928['sqlName']&&_0x17ca31[_0x441a65(0x106)]!==_0x18a928[_0x441a65(0x106)];if(!_0x17ca31)_0x1aa817['push'](_0x18a928['lockKey']);else _0x17ca31[_0x441a65(0xe9)]!==_0x26539f||_0x28f177||_0x33817d?_0x2a5a61[_0x441a65(0xe8)](_0x18a928['lockKey']):_0x46b7de[_0x441a65(0xe8)](_0x18a928[_0x441a65(0x107)]);}for(const _0x2bcc45 of Object[_0x441a65(0xf8)](_0x2ea26c[_0x441a65(0xfd)])){!_0x4d22e3[_0x441a65(0x10a)](_0x2bcc45)&&_0x29937a['push'](_0x2bcc45);}const _0x55ca50=[];if(_0x3ca3c1[_0x441a65(0xf0)](_0x441a65(0xf7))){const _0x69b49d=await fetchAllSqlCodes(_0x3ca3c1[_0x441a65(0xff)]);for(const _0x194f05 of _0x69b49d){!_0x4d22e3['has'](_0x194f05)&&!_0x2ea26c[_0x441a65(0xfd)][_0x194f05]&&_0x55ca50[_0x441a65(0xe8)](_0x194f05);}}const _0x366915=_0x1aa817[_0x441a65(0x102)]===0x0&&_0x2a5a61[_0x441a65(0x102)]===0x0&&_0x29937a[_0x441a65(0x102)]===0x0&&_0x55ca50['length']===0x0;return{'ok':!![],'data':{'added':_0x1aa817,'modified':_0x2a5a61,'missing':_0x29937a,'unchanged':_0x46b7de,'remoteOnly':_0x55ca50},'message':_0x366915?'All\x20SQL\x20queries\x20are\x20in\x20sync.':_0x1aa817['length']+_0x441a65(0xed)+_0x2a5a61[_0x441a65(0x102)]+_0x441a65(0xea)+_0x29937a['length']+'\x20missing,\x20'+_0x46b7de[_0x441a65(0x102)]+_0x441a65(0xe5)+(_0x55ca50['length']>0x0?',\x20'+_0x55ca50[_0x441a65(0x102)]+_0x441a65(0xf9):'')};}};
1
+ const a131_0x1244d9=a131_0x3fa2;(function(_0x53759f,_0x29511e){const _0x477e59=a131_0x3fa2,_0x3e95d5=_0x53759f();while(!![]){try{const _0x550035=-parseInt(_0x477e59(0x1a8))/0x1*(-parseInt(_0x477e59(0x1a3))/0x2)+parseInt(_0x477e59(0x189))/0x3+-parseInt(_0x477e59(0x19e))/0x4+parseInt(_0x477e59(0x18d))/0x5+parseInt(_0x477e59(0x19c))/0x6+parseInt(_0x477e59(0x195))/0x7+-parseInt(_0x477e59(0x191))/0x8;if(_0x550035===_0x29511e)break;else _0x3e95d5['push'](_0x3e95d5['shift']());}catch(_0x2e8559){_0x3e95d5['push'](_0x3e95d5['shift']());}}}(a131_0x3775,0x535d0));import{listSqlQueries}from'../../core/api-client.js';import{loadSqlProjectConfig}from'../../core/sql-sync/config.js';import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';function a131_0x3fa2(_0xe04bed,_0x41e32e){_0xe04bed=_0xe04bed-0x187;const _0x3775fd=a131_0x3775();let _0x3fa21a=_0x3775fd[_0xe04bed];return _0x3fa21a;}function a131_0x3775(){const _0x3424db=['706708zXPFMq','keys','sqlRoot','sqls','relativePath','2444raBjqg','sqlName','boolean','length','tableData','58uQXAZc','sql','\x20modified,\x20','396393VIrUeA','remote','has','totalCount','3004235PpgvMh','lockKey','bool','read','11734824HJDOaY','map','appCode','filePath','3669946CcycEr','All\x20SQL\x20queries\x20are\x20in\x20sync.','path','Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','\x20unchanged','sqlCode','push','3941124IhDnrv','status'];a131_0x3775=function(){return _0x3424db;};return a131_0x3775();}import{computeSqlFileHash}from'../../core/sql-sync/hash.js';import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile}from'../../core/sql-sync/lock.js';const PAGE_SIZE=0x64;async function fetchAllSqlCodes(_0x2a0d97){const _0x5f2bf0=a131_0x3fa2,_0xb4ddf3=[];let _0x6984b1=0x1;while(!![]){const _0x26dd14=await listSqlQueries(_0x2a0d97,{'currentPage':_0x6984b1,'pageSize':PAGE_SIZE}),_0x5ecfa7=_0x26dd14[_0x5f2bf0(0x1a7)]??[];_0xb4ddf3[_0x5f2bf0(0x19b)](..._0x5ecfa7[_0x5f2bf0(0x192)](_0x179a45=>_0x179a45[_0x5f2bf0(0x19a)]));if(_0x5ecfa7[_0x5f2bf0(0x1a6)]===0x0)break;const _0x4ef7e5=_0x26dd14['paging']?.[_0x5f2bf0(0x18c)];if(_0x4ef7e5!=null?_0xb4ddf3[_0x5f2bf0(0x1a6)]>=_0x4ef7e5:_0x5ecfa7[_0x5f2bf0(0x1a6)]<PAGE_SIZE)break;_0x6984b1++;}return _0xb4ddf3;}export const sqlStatus={'service':a131_0x1244d9(0x187),'command':a131_0x1244d9(0x19d),'description':a131_0x1244d9(0x198),'risk':a131_0x1244d9(0x190),'flags':[{'name':'remote','type':a131_0x1244d9(0x1a5),'description':'Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally'}],async 'execute'(_0x137f37){const _0x3f5390=a131_0x1244d9,_0x108217=loadSqlProjectConfig(_0x137f37[_0x3f5390(0x193)]),_0x40baf5=await readSqlLockFile(_0x108217['lockFilePath']),{appLock:_0x121862}=ensureSqlLockScope(_0x40baf5??createEmptySqlLock(),_0x108217[_0x3f5390(0x193)],_0x108217[_0x3f5390(0x1a0)],'status'),_0x1dd69c=await scanLocalSqlQueries(_0x108217),_0xfc60e9=[],_0x2988ab=[],_0x1a4e5d=[],_0xd1652=[],_0x250166=new Set(_0x1dd69c[_0x3f5390(0x192)](_0x3e801a=>_0x3e801a['lockKey']));for(const _0x3e98d2 of _0x1dd69c){const _0x2705e8=await computeSqlFileHash(_0x3e98d2[_0x3f5390(0x194)]),_0x1f167=_0x121862[_0x3f5390(0x1a1)][_0x3e98d2[_0x3f5390(0x18e)]],_0x459f7d=!!_0x1f167&&_0x1f167[_0x3f5390(0x197)]!==_0x3e98d2[_0x3f5390(0x1a2)],_0x859492=!!_0x1f167&&!!_0x3e98d2[_0x3f5390(0x1a4)]&&_0x1f167[_0x3f5390(0x1a4)]!==_0x3e98d2[_0x3f5390(0x1a4)];if(!_0x1f167)_0xfc60e9['push'](_0x3e98d2[_0x3f5390(0x18e)]);else _0x1f167['hash']!==_0x2705e8||_0x459f7d||_0x859492?_0x2988ab[_0x3f5390(0x19b)](_0x3e98d2['lockKey']):_0x1a4e5d[_0x3f5390(0x19b)](_0x3e98d2['lockKey']);}for(const _0x1e0da1 of Object[_0x3f5390(0x19f)](_0x121862[_0x3f5390(0x1a1)])){!_0x250166[_0x3f5390(0x18b)](_0x1e0da1)&&_0xd1652[_0x3f5390(0x19b)](_0x1e0da1);}const _0x4df440=[];if(_0x137f37[_0x3f5390(0x18f)](_0x3f5390(0x18a))){const _0x122af6=await fetchAllSqlCodes(_0x137f37[_0x3f5390(0x193)]);for(const _0x3ef56c of _0x122af6){!_0x250166[_0x3f5390(0x18b)](_0x3ef56c)&&!_0x121862[_0x3f5390(0x1a1)][_0x3ef56c]&&_0x4df440['push'](_0x3ef56c);}}const _0x30151e=_0xfc60e9[_0x3f5390(0x1a6)]===0x0&&_0x2988ab['length']===0x0&&_0xd1652[_0x3f5390(0x1a6)]===0x0&&_0x4df440[_0x3f5390(0x1a6)]===0x0;return{'ok':!![],'data':{'added':_0xfc60e9,'modified':_0x2988ab,'missing':_0xd1652,'unchanged':_0x1a4e5d,'remoteOnly':_0x4df440},'message':_0x30151e?_0x3f5390(0x196):_0xfc60e9[_0x3f5390(0x1a6)]+'\x20added,\x20'+_0x2988ab[_0x3f5390(0x1a6)]+_0x3f5390(0x188)+_0xd1652[_0x3f5390(0x1a6)]+'\x20missing,\x20'+_0x1a4e5d[_0x3f5390(0x1a6)]+_0x3f5390(0x199)+(_0x4df440[_0x3f5390(0x1a6)]>0x0?',\x20'+_0x4df440[_0x3f5390(0x1a6)]+'\x20remote-only':'')};}};
@@ -1 +1 @@
1
- const a132_0x58043a=a132_0x497c;(function(_0x524646,_0x5a6c99){const _0x5563b1=a132_0x497c,_0xd12ccf=_0x524646();while(!![]){try{const _0x3860cf=-parseInt(_0x5563b1(0x1f1))/0x1+parseInt(_0x5563b1(0x1f7))/0x2*(-parseInt(_0x5563b1(0x1dc))/0x3)+-parseInt(_0x5563b1(0x1e8))/0x4+parseInt(_0x5563b1(0x1e3))/0x5+parseInt(_0x5563b1(0x201))/0x6+-parseInt(_0x5563b1(0x1e7))/0x7*(-parseInt(_0x5563b1(0x208))/0x8)+parseInt(_0x5563b1(0x1fc))/0x9;if(_0x3860cf===_0x5a6c99)break;else _0xd12ccf['push'](_0xd12ccf['shift']());}catch(_0x1225ce){_0xd12ccf['push'](_0xd12ccf['shift']());}}}(a132_0x3d0b,0x629d1));function a132_0x3d0b(){const _0x5525d8=['message','str','valid','\x22\x20not\x20found\x20or\x20not\x20accessible','43288HLSOey','utf-8','push','470853ZeEeZS','trim','tableName','schemas','cwd','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','fields','2434610ljPbUa','split','validate','size','119tliudY','1221096OVmLtQ','file','File\x20not\x20found:\x20','type','parameters','filter','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','get','isArray','359162ISDTVC','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','reason','map','string','Dataset\x20\x22','6VrotHT','validation','sql','isDangerous','schema:','5856570OTYEuF','dbtableConfig','\x22\x20not\x20found\x20in\x20any\x20dataset','sqlType','toLowerCase','1857426MqakSX','appCode','Table\x20\x22'];a132_0x3d0b=function(){return _0x5525d8;};return a132_0x3d0b();}import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';function a132_0x497c(_0x357f1a,_0x545ef7){_0x357f1a=_0x357f1a-0x1db;const _0x3d0b13=a132_0x3d0b();let _0x497c94=_0x3d0b13[_0x357f1a];return _0x497c94;}import{validateSql}from'../../core/sql-validator.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a132_0x58043a(0x1f9),'command':a132_0x58043a(0x1e5),'description':a132_0x58043a(0x1f2),'risk':'read','flags':[{'name':'file','type':a132_0x58043a(0x1f5),'description':'Path\x20to\x20the\x20SQL\x20file\x20to\x20validate'},{'name':a132_0x58043a(0x1f9),'type':a132_0x58043a(0x1f5),'description':a132_0x58043a(0x1e1)},{'name':a132_0x58043a(0x1df),'type':a132_0x58043a(0x1f5),'description':a132_0x58043a(0x1ee)}],async 'execute'(_0x185bd8){const _0xba3cbd=a132_0x58043a,_0x278dbd=_0x185bd8[_0xba3cbd(0x205)](_0xba3cbd(0x1e9)),_0x25bceb=_0x185bd8[_0xba3cbd(0x205)]('sql');if(!_0x278dbd&&!_0x25bceb)throw CliErrors['flagMissing'](_0xba3cbd(0x1e9),'Provide\x20--file\x20or\x20--sql');let _0x4ad2b1;if(_0x278dbd){const _0x47dde1=resolve(process[_0xba3cbd(0x1e0)](),_0x278dbd);if(!existsSync(_0x47dde1))throw CliErrors[_0xba3cbd(0x1f8)](_0xba3cbd(0x1ea)+_0x47dde1);_0x4ad2b1=readFileSync(_0x47dde1,_0xba3cbd(0x209));}else _0x4ad2b1=_0x25bceb;const _0xe81b4c=validateSql(_0x4ad2b1),_0x32d504={'valid':_0xe81b4c[_0xba3cbd(0x206)],'sqlType':_0xe81b4c[_0xba3cbd(0x1ff)][_0xba3cbd(0x1eb)],'isSelectOnly':_0xe81b4c['sqlType']['isSelectOnly'],'isDangerous':_0xe81b4c[_0xba3cbd(0x1ff)][_0xba3cbd(0x1fa)],'tables':_0xe81b4c['tables'],'parameters':_0xe81b4c[_0xba3cbd(0x1ec)],'message':_0xe81b4c['message']};_0xe81b4c[_0xba3cbd(0x1ff)][_0xba3cbd(0x1f3)]&&(_0x32d504[_0xba3cbd(0x1f3)]=_0xe81b4c[_0xba3cbd(0x1ff)][_0xba3cbd(0x1f3)]);const _0x3703b0=_0x185bd8[_0xba3cbd(0x205)](_0xba3cbd(0x1df));if(_0x3703b0&&_0xe81b4c['valid']){const _0x2b8927=_0x3703b0[_0xba3cbd(0x1e4)](',')[_0xba3cbd(0x1f4)](_0x275083=>_0x275083[_0xba3cbd(0x1dd)]())[_0xba3cbd(0x1ed)](Boolean),_0x20497f=[],_0x2d1ed0=filterDbTableBackedDatasets(await listDatasets(_0x185bd8[_0xba3cbd(0x202)])),_0x4265fb=new Map(_0x2d1ed0[_0xba3cbd(0x1f4)](_0x4938e4=>[_0x4938e4['dbtableConfig']?.['tableName']?.[_0xba3cbd(0x200)](),_0x4938e4]));for(const _0x21b9b1 of _0xe81b4c['tables']){const _0x52e53f=_0x4265fb[_0xba3cbd(0x1ef)](_0x21b9b1[_0xba3cbd(0x200)]());!_0x52e53f&&_0x20497f[_0xba3cbd(0x1db)](_0xba3cbd(0x203)+_0x21b9b1+_0xba3cbd(0x1fe));}for(const _0x36f83d of _0x2b8927){let _0x598999;try{_0x598999=await getDatasetDetail(_0x36f83d);}catch{_0x20497f[_0xba3cbd(0x1db)](_0xba3cbd(0x1f6)+_0x36f83d+_0xba3cbd(0x207));continue;}assertDatasetIsDbTableBacked(_0x598999,'SQL\x20schema\x20validation');const _0x1db67f=Array[_0xba3cbd(0x1f0)](_0x598999[_0xba3cbd(0x1e2)])?_0x598999['fields']:[],_0x416c4a=new Set(_0x1db67f[_0xba3cbd(0x1f4)](_0x3432b2=>_0x3432b2['name']?.[_0xba3cbd(0x200)]())),_0x4cade6=_0x598999[_0xba3cbd(0x1fd)]?.['tableName']||_0x598999[_0xba3cbd(0x1de)]||_0x36f83d;_0x32d504[_0xba3cbd(0x1fb)+_0x4cade6]={'code':_0x36f83d,'tableName':_0x4cade6,'fieldCount':_0x416c4a[_0xba3cbd(0x1e6)],'fields':Array['from'](_0x416c4a)};}_0x20497f['length']>0x0&&(_0x32d504['schemaWarnings']=_0x20497f);}return{'ok':_0xe81b4c[_0xba3cbd(0x206)],'data':_0x32d504,'message':_0xe81b4c[_0xba3cbd(0x204)]};}};
1
+ const a132_0x23c7bb=a132_0x5300;(function(_0x4542b7,_0x161685){const _0x1788de=a132_0x5300,_0x1eb0c5=_0x4542b7();while(!![]){try{const _0x1ad938=parseInt(_0x1788de(0x1de))/0x1+-parseInt(_0x1788de(0x1da))/0x2+parseInt(_0x1788de(0x1d7))/0x3+parseInt(_0x1788de(0x1d2))/0x4+parseInt(_0x1788de(0x1e6))/0x5+-parseInt(_0x1788de(0x1e5))/0x6+-parseInt(_0x1788de(0x1cc))/0x7;if(_0x1ad938===_0x161685)break;else _0x1eb0c5['push'](_0x1eb0c5['shift']());}catch(_0x2c935b){_0x1eb0c5['push'](_0x1eb0c5['shift']());}}}(a132_0x2a47,0x1e995));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';function a132_0x2a47(){const _0x9c2108=['cwd','size','reason','961920CeqEbk','validate','file','trim','name','576201jfbibt','appCode','schemaWarnings','414620iYUQFA','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','Table\x20\x22','read','125059SHjioM','from','dbtableConfig','message','isArray','SQL\x20schema\x20validation','schema:','223578GIVdvU','111770NZrtYj','fields','map','isSelectOnly','toLowerCase','parameters','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','str','\x22\x20not\x20found\x20in\x20any\x20dataset','Provide\x20--file\x20or\x20--sql','sqlType','length','tableName','\x22\x20not\x20found\x20or\x20not\x20accessible','flagMissing','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','valid','get','type','sql','string','push','utf-8','tables','1470378WeBCWX','isDangerous','schemas'];a132_0x2a47=function(){return _0x9c2108;};return a132_0x2a47();}import{validateSql}from'../../core/sql-validator.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a132_0x5300(_0x3d2dfe,_0x1eb979){_0x3d2dfe=_0x3d2dfe-0x1bf;const _0x2a4742=a132_0x2a47();let _0x530071=_0x2a4742[_0x3d2dfe];return _0x530071;}import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a132_0x23c7bb(0x1c7),'command':a132_0x23c7bb(0x1d3),'description':a132_0x23c7bb(0x1ec),'risk':a132_0x23c7bb(0x1dd),'flags':[{'name':a132_0x23c7bb(0x1d4),'type':'string','description':a132_0x23c7bb(0x1c3)},{'name':a132_0x23c7bb(0x1c7),'type':a132_0x23c7bb(0x1c8),'description':'Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)'},{'name':'schemas','type':a132_0x23c7bb(0x1c8),'description':a132_0x23c7bb(0x1db)}],async 'execute'(_0x50e346){const _0x53625f=a132_0x23c7bb,_0x111761=_0x50e346[_0x53625f(0x1ed)](_0x53625f(0x1d4)),_0x3a601f=_0x50e346[_0x53625f(0x1ed)]('sql');if(!_0x111761&&!_0x3a601f)throw CliErrors[_0x53625f(0x1c2)](_0x53625f(0x1d4),_0x53625f(0x1ef));let _0x59e6e6;if(_0x111761){const _0xaa151d=resolve(process[_0x53625f(0x1cf)](),_0x111761);if(!existsSync(_0xaa151d))throw CliErrors['validation']('File\x20not\x20found:\x20'+_0xaa151d);_0x59e6e6=readFileSync(_0xaa151d,_0x53625f(0x1ca));}else _0x59e6e6=_0x3a601f;const _0x46c826=validateSql(_0x59e6e6),_0x26cb7e={'valid':_0x46c826[_0x53625f(0x1c4)],'sqlType':_0x46c826['sqlType'][_0x53625f(0x1c6)],'isSelectOnly':_0x46c826[_0x53625f(0x1f0)][_0x53625f(0x1e9)],'isDangerous':_0x46c826[_0x53625f(0x1f0)][_0x53625f(0x1cd)],'tables':_0x46c826[_0x53625f(0x1cb)],'parameters':_0x46c826[_0x53625f(0x1eb)],'message':_0x46c826[_0x53625f(0x1e1)]};_0x46c826['sqlType'][_0x53625f(0x1d1)]&&(_0x26cb7e[_0x53625f(0x1d1)]=_0x46c826[_0x53625f(0x1f0)][_0x53625f(0x1d1)]);const _0x5d3bef=_0x50e346[_0x53625f(0x1ed)](_0x53625f(0x1ce));if(_0x5d3bef&&_0x46c826[_0x53625f(0x1c4)]){const _0x5c8fdc=_0x5d3bef['split'](',')[_0x53625f(0x1e8)](_0x51727b=>_0x51727b[_0x53625f(0x1d5)]())['filter'](Boolean),_0x24178e=[],_0x6fdf78=filterDbTableBackedDatasets(await listDatasets(_0x50e346[_0x53625f(0x1d8)])),_0x4d132f=new Map(_0x6fdf78[_0x53625f(0x1e8)](_0x24f12e=>[_0x24f12e[_0x53625f(0x1e0)]?.['tableName']?.[_0x53625f(0x1ea)](),_0x24f12e]));for(const _0x3ba956 of _0x46c826[_0x53625f(0x1cb)]){const _0x3a30ba=_0x4d132f[_0x53625f(0x1c5)](_0x3ba956['toLowerCase']());!_0x3a30ba&&_0x24178e[_0x53625f(0x1c9)](_0x53625f(0x1dc)+_0x3ba956+_0x53625f(0x1ee));}for(const _0x2ab08f of _0x5c8fdc){let _0x12c5fc;try{_0x12c5fc=await getDatasetDetail(_0x2ab08f);}catch{_0x24178e[_0x53625f(0x1c9)]('Dataset\x20\x22'+_0x2ab08f+_0x53625f(0x1c1));continue;}assertDatasetIsDbTableBacked(_0x12c5fc,_0x53625f(0x1e3));const _0x35875e=Array[_0x53625f(0x1e2)](_0x12c5fc['fields'])?_0x12c5fc[_0x53625f(0x1e7)]:[],_0x13c101=new Set(_0x35875e[_0x53625f(0x1e8)](_0x2f7c0c=>_0x2f7c0c[_0x53625f(0x1d6)]?.[_0x53625f(0x1ea)]())),_0x9296e=_0x12c5fc[_0x53625f(0x1e0)]?.['tableName']||_0x12c5fc[_0x53625f(0x1c0)]||_0x2ab08f;_0x26cb7e[_0x53625f(0x1e4)+_0x9296e]={'code':_0x2ab08f,'tableName':_0x9296e,'fieldCount':_0x13c101[_0x53625f(0x1d0)],'fields':Array[_0x53625f(0x1df)](_0x13c101)};}_0x24178e[_0x53625f(0x1bf)]>0x0&&(_0x26cb7e[_0x53625f(0x1d9)]=_0x24178e);}return{'ok':_0x46c826['valid'],'data':_0x26cb7e,'message':_0x46c826['message']};}};
@@ -1 +1 @@
1
- const a133_0x1aa9e0=a133_0x2038;(function(_0x2e64f2,_0x4abdd9){const _0x52a856=a133_0x2038,_0x414f9f=_0x2e64f2();while(!![]){try{const _0x1ba2c9=parseInt(_0x52a856(0x151))/0x1*(parseInt(_0x52a856(0x158))/0x2)+-parseInt(_0x52a856(0x16d))/0x3*(parseInt(_0x52a856(0x160))/0x4)+-parseInt(_0x52a856(0x150))/0x5*(-parseInt(_0x52a856(0x170))/0x6)+-parseInt(_0x52a856(0x15b))/0x7+-parseInt(_0x52a856(0x15a))/0x8+parseInt(_0x52a856(0x174))/0x9*(parseInt(_0x52a856(0x169))/0xa)+-parseInt(_0x52a856(0x16a))/0xb;if(_0x1ba2c9===_0x4abdd9)break;else _0x414f9f['push'](_0x414f9f['shift']());}catch(_0x591940){_0x414f9f['push'](_0x414f9f['shift']());}}}(a133_0x33e4,0xbadd3));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';function a133_0x33e4(){const _0x2086a3=['Auth\x20cookie','apiDir','string','appcode','defaultApp','Access\x20key','3372bwiFbb','keys','1919816KMNqlJ','7633997nMgSHg','inherit','toLowerCase','en-US','entries','8fbSVtj','Config\x20key\x20(','trim','cookie','locale','apps','defaultFormat','riskLevel','filter','174470osnWKr','1221253opNlNz','zh-CN','app','593841unKGuq','Default\x20page\x20size','accessKey','6242466QZXEjM','format','has','Risk\x20level','639aoltXE','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','API\x20directory\x20path','env','number','join','map','pageSize','Locale','5NuKAbI','192lyVYXl'];a133_0x33e4=function(){return _0x2086a3;};return a133_0x33e4();}import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a133_0x1aa9e0(0x163),'accessKey',a133_0x1aa9e0(0x164),a133_0x1aa9e0(0x171),a133_0x1aa9e0(0x167)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a133_0x1aa9e0(0x155),a133_0x1aa9e0(0x177),a133_0x1aa9e0(0x164),'format',a133_0x1aa9e0(0x163),a133_0x1aa9e0(0x16f),a133_0x1aa9e0(0x153)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x3d6dc5){const _0x52e11a=a133_0x1aa9e0;return[..._0x3d6dc5][_0x52e11a(0x179)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x4764fb){const _0x47d8b5=a133_0x1aa9e0;return TOP_LEVEL_CONFIG_KEYS[_0x47d8b5(0x172)](_0x4764fb);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x1f27ce=a133_0x1aa9e0;return _0x1f27ce(0x161)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':'env','apiDir':a133_0x1aa9e0(0x153),'cookie':'cookie','accessKey':a133_0x1aa9e0(0x16f),'defaultFormat':a133_0x1aa9e0(0x171),'pageSize':a133_0x1aa9e0(0x14e),'riskLevel':a133_0x1aa9e0(0x167),'locale':'locale'};export function getAppProfileFlagDefs(){const _0x56c181=a133_0x1aa9e0;return[{'name':_0x56c181(0x177),'type':_0x56c181(0x154),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':'string','description':_0x56c181(0x176)},{'name':_0x56c181(0x163),'type':'string','description':_0x56c181(0x152),'hidden':!![]},{'name':_0x56c181(0x16f),'type':_0x56c181(0x154),'description':_0x56c181(0x157),'hidden':!![]},{'name':_0x56c181(0x166),'type':_0x56c181(0x154),'description':_0x56c181(0x175),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':_0x56c181(0x178),'description':_0x56c181(0x16e)},{'name':_0x56c181(0x167),'type':_0x56c181(0x154),'description':_0x56c181(0x173),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x56c181(0x164),'type':_0x56c181(0x154),'description':_0x56c181(0x14f)}];}function a133_0x2038(_0x17ebda,_0x35e9b7){_0x17ebda=_0x17ebda-0x14d;const _0x33e47c=a133_0x33e4();let _0x2038f4=_0x33e47c[_0x17ebda];return _0x2038f4;}export function collectAppProfileOverrides(_0x208375){const _0x219e65=a133_0x1aa9e0,_0x52d243={};for(const [_0x3a26b0,_0x58ceae]of Object[_0x219e65(0x15f)](APP_PROFILE_FLAG_KEY_MAP)){const _0x20ce6e=_0x208375(_0x3a26b0);if(!_0x20ce6e)continue;_0x52d243[_0x58ceae]=_0x58ceae===_0x219e65(0x14e)?Number(_0x20ce6e):_0x20ce6e;}return _0x52d243;}export function buildAppProfileListFields(_0x4dead4){const _0x499a66=a133_0x1aa9e0;return{'env':_0x4dead4[_0x499a66(0x177)]??null,'apiDir':_0x4dead4[_0x499a66(0x153)]??null,'hasCookie':!!_0x4dead4['cookie'],'hasAccessKey':!!_0x4dead4[_0x499a66(0x16f)],'format':_0x4dead4['format']??null,'pageSize':_0x4dead4['pageSize']??null,'riskLevel':_0x4dead4['riskLevel']??null,'locale':_0x4dead4['locale']??null};}export function buildAppDoctorFields(_0x21b7d6,_0xb84ac5){const _0xa1c0a9=a133_0x1aa9e0;return{'env':{'value':_0x21b7d6[_0xa1c0a9(0x177)]||_0xb84ac5[_0xa1c0a9(0x177)],'source':_0x21b7d6['env']?'app':_0xa1c0a9(0x15c)},'apiDir':{'value':_0x21b7d6[_0xa1c0a9(0x153)]||_0xb84ac5[_0xa1c0a9(0x153)],'source':_0x21b7d6[_0xa1c0a9(0x153)]?_0xa1c0a9(0x16c):_0xa1c0a9(0x15c)},'cookie':{'value':_0x21b7d6['cookie']||_0xb84ac5[_0xa1c0a9(0x163)],'source':_0x21b7d6[_0xa1c0a9(0x163)]?_0xa1c0a9(0x16c):'inherit'},'accessKey':{'value':_0x21b7d6[_0xa1c0a9(0x16f)]||_0xb84ac5[_0xa1c0a9(0x16f)],'source':_0x21b7d6[_0xa1c0a9(0x16f)]?_0xa1c0a9(0x16c):_0xa1c0a9(0x15c)}};}export function buildCanonicalAppConfig(_0x412b53,_0x18a1be){const _0x240835=a133_0x1aa9e0,_0x59617a=_0x412b53[_0x240835(0x14d)](_0x100ee3=>String(_0x100ee3||'')[_0x240835(0x162)]())[_0x240835(0x168)](Boolean);if(_0x59617a['length']===0x0)return{};const _0x4fec6d={};for(const _0x6f004c of _0x59617a){_0x4fec6d[_0x6f004c]=_0x18a1be?{'appcode':_0x6f004c,'env':_0x18a1be}:{'appcode':_0x6f004c};}return{'apps':_0x4fec6d,'defaultApp':_0x59617a[0x0]};}export function buildCanonicalProjectConfig(_0x23755e,_0xbab17e){const _0x9fc2e1=a133_0x1aa9e0,{appCodes:appCodes=[],env:_0xf1d998,metadata:_0x3f0168}=_0xbab17e,_0x4a0170={..._0x23755e,..._0x3f0168||{}};delete _0x4a0170[_0x9fc2e1(0x155)],delete _0x4a0170['app'];if(_0xf1d998)_0x4a0170['env']=_0xf1d998;else!_0x4a0170[_0x9fc2e1(0x177)]&&(_0x4a0170['env']=DEFAULT_CONFIG_VALUES[_0x9fc2e1(0x177)]);const _0x5e3c47=buildCanonicalAppConfig(appCodes,_0x4a0170[_0x9fc2e1(0x177)]);return Object[_0x9fc2e1(0x159)](_0x5e3c47)['length']>0x0&&(_0x4a0170[_0x9fc2e1(0x165)]=_0x5e3c47[_0x9fc2e1(0x165)],_0x4a0170[_0x9fc2e1(0x156)]=_0x5e3c47['defaultApp']),_0x4a0170;}const LOCALE_MAP={'zh':a133_0x1aa9e0(0x16b),'zh-cn':a133_0x1aa9e0(0x16b),'zh_cn':a133_0x1aa9e0(0x16b),'en':'en-US','en-us':a133_0x1aa9e0(0x15e),'en_us':a133_0x1aa9e0(0x15e)};export function normalizeLocale(_0x1ad164){const _0x9628cd=a133_0x1aa9e0;if(!_0x1ad164)return null;return LOCALE_MAP[_0x1ad164[_0x9628cd(0x15d)]()]??null;}
1
+ const a133_0x8eb7ce=a133_0x34dd;(function(_0x38220c,_0x3aa59e){const _0x179cde=a133_0x34dd,_0x1af450=_0x38220c();while(!![]){try{const _0x3aa820=parseInt(_0x179cde(0x100))/0x1+-parseInt(_0x179cde(0x102))/0x2*(parseInt(_0x179cde(0xeb))/0x3)+-parseInt(_0x179cde(0xf8))/0x4*(-parseInt(_0x179cde(0xfe))/0x5)+parseInt(_0x179cde(0x107))/0x6*(-parseInt(_0x179cde(0xef))/0x7)+-parseInt(_0x179cde(0xfc))/0x8+parseInt(_0x179cde(0xe3))/0x9+parseInt(_0x179cde(0xe6))/0xa;if(_0x3aa820===_0x3aa59e)break;else _0x1af450['push'](_0x1af450['shift']());}catch(_0x54a6b0){_0x1af450['push'](_0x1af450['shift']());}}}(a133_0x2476,0x29c85));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';function a133_0x34dd(_0x7fdb04,_0x328fc4){_0x7fdb04=_0x7fdb04-0xe2;const _0x247672=a133_0x2476();let _0x34ddaf=_0x247672[_0x7fdb04];return _0x34ddaf;}import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a133_0x8eb7ce(0x106),a133_0x8eb7ce(0xee),a133_0x8eb7ce(0x103),a133_0x8eb7ce(0xf2),'riskLevel'];export const TOP_LEVEL_CONFIG_KEYS=new Set([a133_0x8eb7ce(0x105),a133_0x8eb7ce(0xf6),a133_0x8eb7ce(0x103),a133_0x8eb7ce(0xf2),'cookie',a133_0x8eb7ce(0xee),a133_0x8eb7ce(0xff)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x47365c){return[..._0x47365c]['join'](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x2b7609){return TOP_LEVEL_CONFIG_KEYS['has'](_0x2b7609);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x353258=a133_0x8eb7ce;return _0x353258(0xe4)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':'env','apiDir':a133_0x8eb7ce(0xff),'cookie':'cookie','accessKey':a133_0x8eb7ce(0xee),'defaultFormat':'format','pageSize':'pageSize','riskLevel':a133_0x8eb7ce(0x101),'locale':'locale'};export function getAppProfileFlagDefs(){const _0x6c49cd=a133_0x8eb7ce;return[{'name':_0x6c49cd(0xf6),'type':_0x6c49cd(0xe8),'description':_0x6c49cd(0xfd),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x6c49cd(0xff),'type':_0x6c49cd(0xe8),'description':_0x6c49cd(0x108)},{'name':_0x6c49cd(0x106),'type':_0x6c49cd(0xe8),'description':_0x6c49cd(0xe7),'hidden':!![]},{'name':_0x6c49cd(0xee),'type':'string','description':_0x6c49cd(0xf9),'hidden':!![]},{'name':'defaultFormat','type':_0x6c49cd(0xe8),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x6c49cd(0xe5),'type':'number','description':_0x6c49cd(0xf1)},{'name':_0x6c49cd(0x101),'type':_0x6c49cd(0xe8),'description':_0x6c49cd(0xed),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x6c49cd(0x103),'type':'string','description':_0x6c49cd(0x104)}];}export function collectAppProfileOverrides(_0x3d4789){const _0x58690e=a133_0x8eb7ce,_0x3054a8={};for(const [_0x1eba80,_0x5d5c53]of Object[_0x58690e(0xf4)](APP_PROFILE_FLAG_KEY_MAP)){const _0x50353d=_0x3d4789(_0x1eba80);if(!_0x50353d)continue;_0x3054a8[_0x5d5c53]=_0x5d5c53===_0x58690e(0xe5)?Number(_0x50353d):_0x50353d;}return _0x3054a8;}export function buildAppProfileListFields(_0x5190f1){const _0x1f235f=a133_0x8eb7ce;return{'env':_0x5190f1[_0x1f235f(0xf6)]??null,'apiDir':_0x5190f1[_0x1f235f(0xff)]??null,'hasCookie':!!_0x5190f1[_0x1f235f(0x106)],'hasAccessKey':!!_0x5190f1['accessKey'],'format':_0x5190f1['format']??null,'pageSize':_0x5190f1[_0x1f235f(0xe5)]??null,'riskLevel':_0x5190f1['riskLevel']??null,'locale':_0x5190f1['locale']??null};}export function buildAppDoctorFields(_0x399a87,_0x189e09){const _0x9b26c3=a133_0x8eb7ce;return{'env':{'value':_0x399a87[_0x9b26c3(0xf6)]||_0x189e09['env'],'source':_0x399a87[_0x9b26c3(0xf6)]?_0x9b26c3(0xfb):'inherit'},'apiDir':{'value':_0x399a87[_0x9b26c3(0xff)]||_0x189e09[_0x9b26c3(0xff)],'source':_0x399a87[_0x9b26c3(0xff)]?_0x9b26c3(0xfb):_0x9b26c3(0xf5)},'cookie':{'value':_0x399a87[_0x9b26c3(0x106)]||_0x189e09[_0x9b26c3(0x106)],'source':_0x399a87[_0x9b26c3(0x106)]?'app':_0x9b26c3(0xf5)},'accessKey':{'value':_0x399a87[_0x9b26c3(0xee)]||_0x189e09[_0x9b26c3(0xee)],'source':_0x399a87['accessKey']?'app':_0x9b26c3(0xf5)}};}function a133_0x2476(){const _0x294362=['entries','inherit','env','length','48084xviRCz','Access\x20key','filter','app','2344640KlpyiO','Target\x20environment','5kQfskT','apiDir','37232ICtecS','riskLevel','2UoFpRY','locale','Locale','appcode','cookie','513126CrJlFV','API\x20directory\x20path','apps','1448910VXOrQo','Config\x20key\x20(','pageSize','8213810YOejHy','Auth\x20cookie','string','zh-CN','keys','675957ZEonqo','defaultApp','Risk\x20level','accessKey','28IbNNUY','map','Default\x20page\x20size','format','en-US'];a133_0x2476=function(){return _0x294362;};return a133_0x2476();}export function buildCanonicalAppConfig(_0x12ed8d,_0x4f9d4f){const _0x47c8a4=a133_0x8eb7ce,_0x475512=_0x12ed8d[_0x47c8a4(0xf0)](_0x1c7e50=>String(_0x1c7e50||'')['trim']())[_0x47c8a4(0xfa)](Boolean);if(_0x475512[_0x47c8a4(0xf7)]===0x0)return{};const _0x207ce1={};for(const _0x58aee6 of _0x475512){_0x207ce1[_0x58aee6]=_0x4f9d4f?{'appcode':_0x58aee6,'env':_0x4f9d4f}:{'appcode':_0x58aee6};}return{'apps':_0x207ce1,'defaultApp':_0x475512[0x0]};}export function buildCanonicalProjectConfig(_0x498bc0,_0x42f737){const _0x113068=a133_0x8eb7ce,{appCodes:appCodes=[],env:_0x4ba1c4,metadata:_0x5d58fb}=_0x42f737,_0xb8fa3e={..._0x498bc0,..._0x5d58fb||{}};delete _0xb8fa3e[_0x113068(0x105)],delete _0xb8fa3e['app'];if(_0x4ba1c4)_0xb8fa3e[_0x113068(0xf6)]=_0x4ba1c4;else!_0xb8fa3e[_0x113068(0xf6)]&&(_0xb8fa3e[_0x113068(0xf6)]=DEFAULT_CONFIG_VALUES[_0x113068(0xf6)]);const _0x52fe65=buildCanonicalAppConfig(appCodes,_0xb8fa3e[_0x113068(0xf6)]);return Object[_0x113068(0xea)](_0x52fe65)['length']>0x0&&(_0xb8fa3e[_0x113068(0xe2)]=_0x52fe65['apps'],_0xb8fa3e['defaultApp']=_0x52fe65[_0x113068(0xec)]),_0xb8fa3e;}const LOCALE_MAP={'zh':a133_0x8eb7ce(0xe9),'zh-cn':'zh-CN','zh_cn':a133_0x8eb7ce(0xe9),'en':a133_0x8eb7ce(0xf3),'en-us':a133_0x8eb7ce(0xf3),'en_us':a133_0x8eb7ce(0xf3)};export function normalizeLocale(_0x1c9d61){if(!_0x1c9d61)return null;return LOCALE_MAP[_0x1c9d61['toLowerCase']()]??null;}
@@ -1 +1 @@
1
- const a134_0x1264f6=a134_0x2c33;function a134_0x2c33(_0x51e29a,_0x59a402){_0x51e29a=_0x51e29a-0x1ef;const _0xedb35e=a134_0xedb3();let _0x2c3380=_0xedb35e[_0x51e29a];return _0x2c3380;}function a134_0xedb3(){const _0xfd39ca=['24212556RjMWnZ','2tIAoAz','6hkxddc','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','662985EuKCbc','1223365Wdmmwg','1340176fHnixs','8715469JoZDwW','5052512JXmSan','4290753QpWHex'];a134_0xedb3=function(){return _0xfd39ca;};return a134_0xedb3();}(function(_0x22fc64,_0x345c07){const _0x533a3b=a134_0x2c33,_0x4c7450=_0x22fc64();while(!![]){try{const _0x42f4de=-parseInt(_0x533a3b(0x1f3))/0x1+parseInt(_0x533a3b(0x1ef))/0x2*(parseInt(_0x533a3b(0x1f7))/0x3)+-parseInt(_0x533a3b(0x1f4))/0x4+parseInt(_0x533a3b(0x1f2))/0x5+parseInt(_0x533a3b(0x1f0))/0x6*(-parseInt(_0x533a3b(0x1f5))/0x7)+-parseInt(_0x533a3b(0x1f6))/0x8+parseInt(_0x533a3b(0x1f8))/0x9;if(_0x42f4de===_0x345c07)break;else _0x4c7450['push'](_0x4c7450['shift']());}catch(_0x377990){_0x4c7450['push'](_0x4c7450['shift']());}}}(a134_0xedb3,0xc7bac));export const CLI_VERSION_POLICY_URL=a134_0x1264f6(0x1f1);
1
+ function a134_0x2dc4(_0x48eb35,_0x475780){_0x48eb35=_0x48eb35-0xa3;const _0x312f42=a134_0x312f();let _0x2dc4a4=_0x312f42[_0x48eb35];return _0x2dc4a4;}function a134_0x312f(){const _0x52476b=['2810ictZZm','76268IjYsiC','227435acjMwN','1580208lOeTwr','615450vpLFYV','749favgwb','1206xIdAqf','198snWNIK','9284VHQlKu','4taxOOR','5859VFCNOH','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json'];a134_0x312f=function(){return _0x52476b;};return a134_0x312f();}const a134_0xe4f932=a134_0x2dc4;(function(_0x5c1677,_0xf2d397){const _0x22b47e=a134_0x2dc4,_0x381d81=_0x5c1677();while(!![]){try{const _0x4858ad=parseInt(_0x22b47e(0xa3))/0x1+-parseInt(_0x22b47e(0xaa))/0x2*(parseInt(_0x22b47e(0xa9))/0x3)+-parseInt(_0x22b47e(0xab))/0x4*(-parseInt(_0x22b47e(0xa4))/0x5)+-parseInt(_0x22b47e(0xa8))/0x6*(parseInt(_0x22b47e(0xa7))/0x7)+parseInt(_0x22b47e(0xa5))/0x8+-parseInt(_0x22b47e(0xac))/0x9*(-parseInt(_0x22b47e(0xae))/0xa)+parseInt(_0x22b47e(0xa6))/0xb;if(_0x4858ad===_0xf2d397)break;else _0x381d81['push'](_0x381d81['shift']());}catch(_0x46189d){_0x381d81['push'](_0x381d81['shift']());}}}(a134_0x312f,0x3838b));export const CLI_VERSION_POLICY_URL=a134_0xe4f932(0xad);
@@ -1 +1 @@
1
- const a135_0x2beecb=a135_0x22cf;(function(_0x5f3555,_0x2cbdc1){const _0x4476ce=a135_0x22cf,_0x3e809b=_0x5f3555();while(!![]){try{const _0x39ac0c=-parseInt(_0x4476ce(0xc8))/0x1+parseInt(_0x4476ce(0xe1))/0x2*(-parseInt(_0x4476ce(0x105))/0x3)+-parseInt(_0x4476ce(0x10d))/0x4+-parseInt(_0x4476ce(0x11b))/0x5+-parseInt(_0x4476ce(0xe5))/0x6+parseInt(_0x4476ce(0xbe))/0x7+parseInt(_0x4476ce(0x10e))/0x8;if(_0x39ac0c===_0x2cbdc1)break;else _0x3e809b['push'](_0x3e809b['shift']());}catch(_0x478665){_0x3e809b['push'](_0x3e809b['shift']());}}}(a135_0x5ee9,0x616df));export const CLI_BIN_NAME=a135_0x2beecb(0x113);function a135_0x22cf(_0x397c25,_0x17d18a){_0x397c25=_0x397c25-0xba;const _0x5ee9ba=a135_0x5ee9();let _0x22cf82=_0x5ee9ba[_0x397c25];return _0x22cf82;}export const CLI_DISPLAY_NAME=a135_0x2beecb(0x108);export const NPM_PACKAGE_NAME=a135_0x2beecb(0xce);function a135_0x5ee9(){const _0x28fe3e=['code','SQL\x20name','boolean','rabetbase','description','<name>','Output\x20path','JSON\x20params','Clear','Skip\x20import\x20generation','meowKey','2293980wgrXGd','DB\x20ID','confirm','file','page','type','map','yes','verbose','5364401OTKXVJ','description-file','Function\x20node','operation','sql-name','Name','value','enable-bff-save','Config\x20value','Show\x20help','634383JQVfVm','expectedCount','key','Enable\x20BFF\x20save','watch','Type\x20filter','@lovrabet/rabetbase-cli','production\x20|\x20daily','Target\x20path','Expected\x20affected\x20count','descriptionFile','Operation\x20type','dbid','Alias\x20for\x20--non-interactive','keyword','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','SQL\x20code','remote','Environment','nonInteractive','pagesize','Title','Skip\x20confirmation\x20for\x20high-risk\x20writes','<expr>','Schemas','928AquqzU','sql','target','sqlName','4625304VzvurU','operation-type','appcode','dry-run','format','Preview\x20operation\x20without\x20executing','force','all','skip-imports','Confirm\x20destructive\x20action','Record\x20ID','help','function-node','Verbose\x20output','project','SQL\x20string','Page\x20number','operationType','sqlcode','string','Use\x20global\x20config\x20scope','output','Keyword\x20filter','datasetcode','Config\x20key','name','env','params','app','File\x20path','Override\x20appcode','non-interactive','3177JsDJdB','sqlname','title','Rabetbase\x20CLI','db-id','clear','global','Force\x20overwrite','1896852ROseWT','19699040uPKyhX','Code\x20filter'];a135_0x5ee9=function(){return _0x28fe3e;};return a135_0x5ee9();}export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a135_0x2beecb(0xe7),'type':a135_0x2beecb(0xf8),'description':a135_0x2beecb(0x103),'hint':'<code>'},{'name':a135_0x2beecb(0x101),'meowKey':a135_0x2beecb(0x101),'type':'string','description':'Select\x20app\x20profile\x20by\x20name','hint':a135_0x2beecb(0x115)},{'name':a135_0x2beecb(0xff),'meowKey':'env','type':a135_0x2beecb(0xf8),'description':a135_0x2beecb(0xda),'hint':a135_0x2beecb(0xcf)},{'name':a135_0x2beecb(0xe9),'meowKey':a135_0x2beecb(0xe9),'type':'string','description':'Output\x20format','hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a135_0x2beecb(0xf8),'description':a135_0x2beecb(0xd7),'hint':a135_0x2beecb(0xdf)},{'name':a135_0x2beecb(0xe8),'meowKey':'dryRun','type':a135_0x2beecb(0x112),'description':a135_0x2beecb(0xea)},{'name':a135_0x2beecb(0xbc),'meowKey':a135_0x2beecb(0xbc),'type':a135_0x2beecb(0x112),'description':a135_0x2beecb(0xde)},{'name':a135_0x2beecb(0x104),'meowKey':a135_0x2beecb(0xdb),'type':a135_0x2beecb(0x112),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a135_0x2beecb(0x10b),'meowKey':a135_0x2beecb(0x10b),'type':'boolean','description':a135_0x2beecb(0xf9)},{'name':a135_0x2beecb(0xf3),'meowKey':'project','type':a135_0x2beecb(0x112),'description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':a135_0x2beecb(0xd5),'hidden':!![]},{'name':'help','meowKey':a135_0x2beecb(0xf0),'type':a135_0x2beecb(0x112),'description':a135_0x2beecb(0xc7)},{'name':a135_0x2beecb(0xfe),'meowKey':a135_0x2beecb(0xfe),'type':'string','description':a135_0x2beecb(0xc3),'hidden':!![]},{'name':'title','meowKey':a135_0x2beecb(0x107),'type':a135_0x2beecb(0xf8),'description':a135_0x2beecb(0xdd),'hidden':!![]},{'name':a135_0x2beecb(0x10a),'meowKey':'clear','type':a135_0x2beecb(0x112),'description':a135_0x2beecb(0x118),'hidden':!![]},{'name':a135_0x2beecb(0xcc),'meowKey':a135_0x2beecb(0xcc),'type':'boolean','description':'Watch\x20mode','hidden':!![]},{'name':'output','meowKey':a135_0x2beecb(0xfa),'type':'string','description':a135_0x2beecb(0x116),'hidden':!![]},{'name':a135_0x2beecb(0x100),'meowKey':'params','type':a135_0x2beecb(0xf8),'description':a135_0x2beecb(0x117),'hidden':!![]},{'name':a135_0x2beecb(0xfc),'meowKey':'datasetcode','type':'string','description':'Dataset\x20code','hidden':!![]},{'name':a135_0x2beecb(0xec),'meowKey':a135_0x2beecb(0xec),'type':a135_0x2beecb(0x112),'description':'Apply\x20to\x20all','hidden':!![]},{'name':a135_0x2beecb(0xc5),'meowKey':'enableBffSave','type':a135_0x2beecb(0x112),'description':a135_0x2beecb(0xcb),'hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':a135_0x2beecb(0xef),'hidden':!![]},{'name':a135_0x2beecb(0xba),'meowKey':'type','type':'string','description':a135_0x2beecb(0xcd),'hidden':!![]},{'name':'file','meowKey':a135_0x2beecb(0x11e),'type':a135_0x2beecb(0xf8),'description':a135_0x2beecb(0x102),'hidden':!![]},{'name':a135_0x2beecb(0xf7),'meowKey':a135_0x2beecb(0xf7),'type':'string','description':a135_0x2beecb(0xd8),'hidden':!![]},{'name':a135_0x2beecb(0xc2),'meowKey':a135_0x2beecb(0xe4),'type':a135_0x2beecb(0xf8),'description':a135_0x2beecb(0x111),'hidden':!![]},{'name':a135_0x2beecb(0x106),'meowKey':a135_0x2beecb(0x106),'type':a135_0x2beecb(0xf8),'description':a135_0x2beecb(0x111),'hidden':!![]},{'name':a135_0x2beecb(0x109),'meowKey':'dbId','type':a135_0x2beecb(0xf8),'description':a135_0x2beecb(0x11c),'hidden':!![]},{'name':a135_0x2beecb(0xd4),'meowKey':a135_0x2beecb(0xd4),'type':a135_0x2beecb(0xf8),'description':a135_0x2beecb(0x11c),'hidden':!![]},{'name':a135_0x2beecb(0x114),'meowKey':a135_0x2beecb(0x114),'type':a135_0x2beecb(0xf8),'description':'Description','hidden':!![]},{'name':a135_0x2beecb(0xbf),'meowKey':a135_0x2beecb(0xd2),'type':a135_0x2beecb(0xf8),'description':'Description\x20file','hidden':!![]},{'name':'page','meowKey':a135_0x2beecb(0x11f),'type':a135_0x2beecb(0xf8),'description':a135_0x2beecb(0xf5),'hidden':!![]},{'name':a135_0x2beecb(0xdc),'meowKey':'pagesize','type':'string','description':'Page\x20size','hidden':!![]},{'name':'keyword','meowKey':a135_0x2beecb(0xd6),'type':a135_0x2beecb(0xf8),'description':a135_0x2beecb(0xfb),'hidden':!![]},{'name':a135_0x2beecb(0x110),'meowKey':a135_0x2beecb(0x110),'type':a135_0x2beecb(0xf8),'description':a135_0x2beecb(0x10f),'hidden':!![]},{'name':a135_0x2beecb(0xe2),'meowKey':a135_0x2beecb(0xe2),'type':a135_0x2beecb(0xf8),'description':a135_0x2beecb(0xf4),'hidden':!![]},{'name':'schemas','meowKey':'schemas','type':a135_0x2beecb(0xf8),'description':a135_0x2beecb(0xe0),'hidden':!![]},{'name':a135_0x2beecb(0xc1),'meowKey':a135_0x2beecb(0xc1),'type':a135_0x2beecb(0xf8),'description':a135_0x2beecb(0xd3),'hidden':!![]},{'name':a135_0x2beecb(0xe3),'meowKey':a135_0x2beecb(0xe3),'type':a135_0x2beecb(0xf8),'description':a135_0x2beecb(0xd0),'hidden':!![]},{'name':a135_0x2beecb(0xed),'meowKey':'skipImports','type':a135_0x2beecb(0x112),'description':a135_0x2beecb(0x119),'hidden':!![]},{'name':a135_0x2beecb(0xca),'meowKey':'key','type':a135_0x2beecb(0xf8),'description':a135_0x2beecb(0xfd),'hidden':!![]},{'name':a135_0x2beecb(0xc4),'meowKey':a135_0x2beecb(0xc4),'type':a135_0x2beecb(0xf8),'description':a135_0x2beecb(0xc6),'hidden':!![]},{'name':a135_0x2beecb(0xeb),'meowKey':'force','type':'boolean','description':a135_0x2beecb(0x10c),'hidden':!![]},{'name':a135_0x2beecb(0x11d),'meowKey':'confirm','type':a135_0x2beecb(0x112),'description':a135_0x2beecb(0xee),'hidden':!![]},{'name':a135_0x2beecb(0xd9),'meowKey':a135_0x2beecb(0xd9),'type':'boolean','description':'Use\x20remote','hidden':!![]},{'name':a135_0x2beecb(0xbd),'meowKey':a135_0x2beecb(0xbd),'type':a135_0x2beecb(0x112),'description':a135_0x2beecb(0xf2),'hidden':!![]},{'name':'expected-count','meowKey':a135_0x2beecb(0xc9),'type':'string','description':a135_0x2beecb(0xd1),'hidden':!![]},{'name':a135_0x2beecb(0xe6),'meowKey':a135_0x2beecb(0xf6),'type':a135_0x2beecb(0xf8),'description':'Operation\x20type','hidden':!![]},{'name':a135_0x2beecb(0xf1),'meowKey':'functionNode','type':a135_0x2beecb(0xf8),'description':a135_0x2beecb(0xc0),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a135_0x2beecb(0x101),'env',a135_0x2beecb(0xe9),'jq',a135_0x2beecb(0xe8),'yes','non-interactive','ci']);export function buildMeowFlags(){const _0x2093c6=a135_0x2beecb;return Object['fromEntries'](GLOBAL_FLAGS[_0x2093c6(0xbb)](_0x19e847=>[_0x19e847[_0x2093c6(0x11a)],{'type':_0x19e847[_0x2093c6(0xba)]}]));}
1
+ const a135_0x441fea=a135_0x1a84;(function(_0x46dd7e,_0x2069c3){const _0x4fbbdf=a135_0x1a84,_0x58b3ab=_0x46dd7e();while(!![]){try{const _0x28e670=-parseInt(_0x4fbbdf(0x201))/0x1+-parseInt(_0x4fbbdf(0x1e3))/0x2+-parseInt(_0x4fbbdf(0x1e1))/0x3+-parseInt(_0x4fbbdf(0x21a))/0x4+-parseInt(_0x4fbbdf(0x1ed))/0x5*(-parseInt(_0x4fbbdf(0x222))/0x6)+parseInt(_0x4fbbdf(0x205))/0x7+-parseInt(_0x4fbbdf(0x217))/0x8*(-parseInt(_0x4fbbdf(0x21f))/0x9);if(_0x28e670===_0x2069c3)break;else _0x58b3ab['push'](_0x58b3ab['shift']());}catch(_0x340f18){_0x58b3ab['push'](_0x58b3ab['shift']());}}}(a135_0x5acd,0xcdf43));export const CLI_BIN_NAME=a135_0x441fea(0x21e);function a135_0x1a84(_0x43d364,_0x37fd79){_0x43d364=_0x43d364-0x1c5;const _0x5acd98=a135_0x5acd();let _0x1a8496=_0x5acd98[_0x43d364];return _0x1a8496;}export const CLI_DISPLAY_NAME=a135_0x441fea(0x1cf);export const NPM_PACKAGE_NAME=a135_0x441fea(0x214);export const GLOBAL_FLAGS=[{'name':a135_0x441fea(0x202),'meowKey':a135_0x441fea(0x202),'type':a135_0x441fea(0x1e9),'description':a135_0x441fea(0x1fd),'hint':a135_0x441fea(0x1d4)},{'name':'app','meowKey':a135_0x441fea(0x1e8),'type':'string','description':'Select\x20app\x20profile\x20by\x20name','hint':'<name>'},{'name':'env','meowKey':a135_0x441fea(0x225),'type':a135_0x441fea(0x1e9),'description':a135_0x441fea(0x224),'hint':'production\x20|\x20daily'},{'name':a135_0x441fea(0x1fe),'meowKey':a135_0x441fea(0x1fe),'type':a135_0x441fea(0x1e9),'description':a135_0x441fea(0x1ce),'hint':a135_0x441fea(0x1e5)},{'name':'jq','meowKey':'jq','type':a135_0x441fea(0x1e9),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a135_0x441fea(0x20b)},{'name':a135_0x441fea(0x200),'meowKey':a135_0x441fea(0x215),'type':a135_0x441fea(0x208),'description':a135_0x441fea(0x1f2)},{'name':a135_0x441fea(0x1da),'meowKey':a135_0x441fea(0x1da),'type':a135_0x441fea(0x208),'description':a135_0x441fea(0x216)},{'name':a135_0x441fea(0x204),'meowKey':'nonInteractive','type':a135_0x441fea(0x208),'description':a135_0x441fea(0x1d7)},{'name':'global','meowKey':a135_0x441fea(0x20c),'type':'boolean','description':'Use\x20global\x20config\x20scope'},{'name':a135_0x441fea(0x212),'meowKey':a135_0x441fea(0x212),'type':a135_0x441fea(0x208),'description':a135_0x441fea(0x1fa)},{'name':'ci','meowKey':'ci','type':'boolean','description':a135_0x441fea(0x21c),'hidden':!![]},{'name':a135_0x441fea(0x1eb),'meowKey':a135_0x441fea(0x1eb),'type':'boolean','description':a135_0x441fea(0x1f4)},{'name':'name','meowKey':a135_0x441fea(0x1f1),'type':a135_0x441fea(0x1e9),'description':a135_0x441fea(0x1f5),'hidden':!![]},{'name':a135_0x441fea(0x1ee),'meowKey':a135_0x441fea(0x1ee),'type':a135_0x441fea(0x1e9),'description':'Title','hidden':!![]},{'name':a135_0x441fea(0x1f0),'meowKey':a135_0x441fea(0x1f0),'type':'boolean','description':'Clear','hidden':!![]},{'name':'watch','meowKey':a135_0x441fea(0x1df),'type':'boolean','description':'Watch\x20mode','hidden':!![]},{'name':'output','meowKey':a135_0x441fea(0x1d3),'type':a135_0x441fea(0x1e9),'description':a135_0x441fea(0x223),'hidden':!![]},{'name':a135_0x441fea(0x21d),'meowKey':'params','type':a135_0x441fea(0x1e9),'description':'JSON\x20params','hidden':!![]},{'name':'datasetcode','meowKey':'datasetcode','type':a135_0x441fea(0x1e9),'description':a135_0x441fea(0x1e6),'hidden':!![]},{'name':a135_0x441fea(0x1cd),'meowKey':a135_0x441fea(0x1cd),'type':a135_0x441fea(0x208),'description':'Apply\x20to\x20all','hidden':!![]},{'name':'enable-bff-save','meowKey':a135_0x441fea(0x20e),'type':'boolean','description':a135_0x441fea(0x20f),'hidden':!![]},{'name':'id','meowKey':'id','type':a135_0x441fea(0x1e9),'description':a135_0x441fea(0x1fc),'hidden':!![]},{'name':a135_0x441fea(0x203),'meowKey':a135_0x441fea(0x203),'type':'string','description':a135_0x441fea(0x1e4),'hidden':!![]},{'name':'file','meowKey':a135_0x441fea(0x1d5),'type':a135_0x441fea(0x1e9),'description':a135_0x441fea(0x1dd),'hidden':!![]},{'name':a135_0x441fea(0x207),'meowKey':a135_0x441fea(0x207),'type':a135_0x441fea(0x1e9),'description':a135_0x441fea(0x1d0),'hidden':!![]},{'name':a135_0x441fea(0x20d),'meowKey':'sqlName','type':a135_0x441fea(0x1e9),'description':'SQL\x20name','hidden':!![]},{'name':'sqlname','meowKey':a135_0x441fea(0x1cb),'type':a135_0x441fea(0x1e9),'description':a135_0x441fea(0x1c9),'hidden':!![]},{'name':a135_0x441fea(0x1db),'meowKey':'dbId','type':'string','description':'DB\x20ID','hidden':!![]},{'name':a135_0x441fea(0x1c6),'meowKey':'dbid','type':a135_0x441fea(0x1e9),'description':'DB\x20ID','hidden':!![]},{'name':a135_0x441fea(0x210),'meowKey':a135_0x441fea(0x210),'type':a135_0x441fea(0x1e9),'description':a135_0x441fea(0x1d2),'hidden':!![]},{'name':'description-file','meowKey':a135_0x441fea(0x1e2),'type':a135_0x441fea(0x1e9),'description':'Description\x20file','hidden':!![]},{'name':a135_0x441fea(0x1ea),'meowKey':a135_0x441fea(0x1ea),'type':a135_0x441fea(0x1e9),'description':a135_0x441fea(0x221),'hidden':!![]},{'name':a135_0x441fea(0x1d6),'meowKey':a135_0x441fea(0x1d6),'type':a135_0x441fea(0x1e9),'description':'Page\x20size','hidden':!![]},{'name':a135_0x441fea(0x1f8),'meowKey':a135_0x441fea(0x1f8),'type':'string','description':a135_0x441fea(0x21b),'hidden':!![]},{'name':a135_0x441fea(0x1d1),'meowKey':'code','type':a135_0x441fea(0x1e9),'description':a135_0x441fea(0x1c8),'hidden':!![]},{'name':a135_0x441fea(0x1de),'meowKey':a135_0x441fea(0x1de),'type':'string','description':'SQL\x20string','hidden':!![]},{'name':a135_0x441fea(0x1e7),'meowKey':a135_0x441fea(0x1e7),'type':a135_0x441fea(0x1e9),'description':'Schemas','hidden':!![]},{'name':a135_0x441fea(0x1fb),'meowKey':a135_0x441fea(0x1fb),'type':a135_0x441fea(0x1e9),'description':a135_0x441fea(0x1c5),'hidden':!![]},{'name':'target','meowKey':a135_0x441fea(0x1d9),'type':'string','description':a135_0x441fea(0x1dc),'hidden':!![]},{'name':a135_0x441fea(0x1ca),'meowKey':a135_0x441fea(0x1c7),'type':a135_0x441fea(0x208),'description':a135_0x441fea(0x1d8),'hidden':!![]},{'name':a135_0x441fea(0x219),'meowKey':a135_0x441fea(0x219),'type':a135_0x441fea(0x1e9),'description':'Config\x20key','hidden':!![]},{'name':a135_0x441fea(0x211),'meowKey':a135_0x441fea(0x211),'type':a135_0x441fea(0x1e9),'description':'Config\x20value','hidden':!![]},{'name':a135_0x441fea(0x220),'meowKey':a135_0x441fea(0x220),'type':a135_0x441fea(0x208),'description':a135_0x441fea(0x1f9),'hidden':!![]},{'name':a135_0x441fea(0x20a),'meowKey':'confirm','type':a135_0x441fea(0x208),'description':a135_0x441fea(0x213),'hidden':!![]},{'name':a135_0x441fea(0x206),'meowKey':a135_0x441fea(0x206),'type':a135_0x441fea(0x208),'description':a135_0x441fea(0x1f3),'hidden':!![]},{'name':a135_0x441fea(0x218),'meowKey':a135_0x441fea(0x218),'type':a135_0x441fea(0x208),'description':'Verbose\x20output','hidden':!![]},{'name':a135_0x441fea(0x1f6),'meowKey':a135_0x441fea(0x1ef),'type':a135_0x441fea(0x1e9),'description':a135_0x441fea(0x209),'hidden':!![]},{'name':a135_0x441fea(0x1ff),'meowKey':a135_0x441fea(0x1cc),'type':a135_0x441fea(0x1e9),'description':a135_0x441fea(0x1c5),'hidden':!![]},{'name':a135_0x441fea(0x1f7),'meowKey':'functionNode','type':'string','description':'Function\x20node','hidden':!![]}];function a135_0x5acd(){const _0x52e3d4=['output','<code>','file','pagesize','Force\x20non-interactive\x20mode\x20(CI)','Skip\x20import\x20generation','target','yes','db-id','Target\x20path','File\x20path','sql','watch','meowKey','2429604bPGcVv','descriptionFile','863710rVMyll','Type\x20filter','json\x20|\x20pretty\x20|\x20compress','Dataset\x20code','schemas','app','string','page','help','map','1386985pMzCKu','title','expectedCount','clear','name','Preview\x20operation\x20without\x20executing','Use\x20remote','Show\x20help','Name','expected-count','function-node','keyword','Force\x20overwrite','Use\x20project\x20config\x20scope','operation','Record\x20ID','Override\x20appcode','format','operation-type','dry-run','1446445etpjCZ','appcode','type','non-interactive','6960807fIENkA','remote','sqlcode','boolean','Expected\x20affected\x20count','confirm','<expr>','global','sql-name','enableBffSave','Enable\x20BFF\x20save','description','value','project','Confirm\x20destructive\x20action','@lovrabet/rabetbase-cli','dryRun','Skip\x20confirmation\x20for\x20high-risk\x20writes','23458992YesojB','verbose','key','3799256OAfDvw','Keyword\x20filter','Alias\x20for\x20--non-interactive','params','rabetbase','9KBhzTJ','force','Page\x20number','12wbmInQ','Output\x20path','Environment','env','fromEntries','Operation\x20type','dbid','skipImports','Code\x20filter','SQL\x20name','skip-imports','sqlname','operationType','all','Output\x20format','Rabetbase\x20CLI','SQL\x20code','code','Description'];a135_0x5acd=function(){return _0x52e3d4;};return a135_0x5acd();}export const PIPELINE_FLAG_NAMES=new Set(['appcode','app',a135_0x441fea(0x225),a135_0x441fea(0x1fe),'jq',a135_0x441fea(0x200),a135_0x441fea(0x1da),a135_0x441fea(0x204),'ci']);export function buildMeowFlags(){const _0x2e1d7c=a135_0x441fea;return Object[_0x2e1d7c(0x226)](GLOBAL_FLAGS[_0x2e1d7c(0x1ec)](_0x14f4aa=>[_0x14f4aa[_0x2e1d7c(0x1e0)],{'type':_0x14f4aa[_0x2e1d7c(0x203)]}]));}
@@ -1 +1 @@
1
- const a136_0x33a6eb=a136_0x1cd1;(function(_0x49eab7,_0x3dffc2){const _0x496d0b=a136_0x1cd1,_0x522ce4=_0x49eab7();while(!![]){try{const _0x326f5=parseInt(_0x496d0b(0x1e4))/0x1+parseInt(_0x496d0b(0x1eb))/0x2+-parseInt(_0x496d0b(0x1ea))/0x3+-parseInt(_0x496d0b(0x1e7))/0x4*(parseInt(_0x496d0b(0x1e2))/0x5)+parseInt(_0x496d0b(0x1e5))/0x6+-parseInt(_0x496d0b(0x1e3))/0x7*(parseInt(_0x496d0b(0x1ed))/0x8)+-parseInt(_0x496d0b(0x1e9))/0x9;if(_0x326f5===_0x3dffc2)break;else _0x522ce4['push'](_0x522ce4['shift']());}catch(_0x39a0c4){_0x522ce4['push'](_0x522ce4['shift']());}}}(a136_0x3df0,0xdd910));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a136_0x33a6eb(0x1e8),'format':a136_0x33a6eb(0x1e1),'locale':a136_0x33a6eb(0x1ec),'riskLevel':a136_0x33a6eb(0x1e6),'apiDir':DEFAULT_API_DIR};function a136_0x1cd1(_0x3b43cc,_0x574168){_0x3b43cc=_0x3b43cc-0x1e1;const _0x3df01c=a136_0x3df0();let _0x1cd1f0=_0x3df01c[_0x3b43cc];return _0x1cd1f0;}function a136_0x3df0(){const _0x48f632=['5KABPNe','11998qDleRI','1071269uDVNkf','9936768QLUYYf','high-risk-write','2792284HMNnsN','production','7384599qcoXim','3350811jkmuVb','2697424JSPxfo','en-US','2488hvfqCU','compress'];a136_0x3df0=function(){return _0x48f632;};return a136_0x3df0();}export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
1
+ const a136_0xea3603=a136_0x5128;function a136_0x3483(){const _0x3c08cb=['8152tAgNiH','high-risk-write','42TjTJtx','36510xLORYI','27FWTGni','4781830hSMNfS','production','904692nLObbF','compress','500877RVeino','88ASOAeP','23463PjeOXF','en-US','1sVUDhJ','372CVWTCG','1876474RoAgiC'];a136_0x3483=function(){return _0x3c08cb;};return a136_0x3483();}(function(_0x18439b,_0x1e72a5){const _0xb19841=a136_0x5128,_0x5c793d=_0x18439b();while(!![]){try{const _0x15d823=parseInt(_0xb19841(0xf5))/0x1*(-parseInt(_0xb19841(0xf7))/0x2)+parseInt(_0xb19841(0xf1))/0x3+parseInt(_0xb19841(0xf2))/0x4*(-parseInt(_0xb19841(0xfb))/0x5)+parseInt(_0xb19841(0xff))/0x6*(parseInt(_0xb19841(0xfa))/0x7)+parseInt(_0xb19841(0xf8))/0x8*(-parseInt(_0xb19841(0xfc))/0x9)+parseInt(_0xb19841(0xfd))/0xa+parseInt(_0xb19841(0xf3))/0xb*(parseInt(_0xb19841(0xf6))/0xc);if(_0x15d823===_0x1e72a5)break;else _0x5c793d['push'](_0x5c793d['shift']());}catch(_0x334a6e){_0x5c793d['push'](_0x5c793d['shift']());}}}(a136_0x3483,0x7d7e3));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a136_0xea3603(0xfe),'format':a136_0xea3603(0xf0),'locale':a136_0xea3603(0xf4),'riskLevel':a136_0xea3603(0xf9),'apiDir':DEFAULT_API_DIR};function a136_0x5128(_0x4666ab,_0x26b1ce){_0x4666ab=_0x4666ab-0xf0;const _0x34831f=a136_0x3483();let _0x5128c6=_0x34831f[_0x4666ab];return _0x5128c6;}export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
@@ -1 +1 @@
1
- function a137_0x410c(_0x19dea6,_0x37c3bc){_0x19dea6=_0x19dea6-0x1aa;const _0x1fdfe7=a137_0x1fdf();let _0x410c47=_0x1fdfe7[_0x19dea6];return _0x410c47;}const a137_0x399135=a137_0x410c;(function(_0x497d63,_0x5b2723){const _0x4db678=a137_0x410c,_0x258909=_0x497d63();while(!![]){try{const _0xc48654=-parseInt(_0x4db678(0x1b9))/0x1*(-parseInt(_0x4db678(0x1b7))/0x2)+parseInt(_0x4db678(0x1b4))/0x3+parseInt(_0x4db678(0x1af))/0x4*(-parseInt(_0x4db678(0x1ba))/0x5)+parseInt(_0x4db678(0x1b5))/0x6+-parseInt(_0x4db678(0x1ad))/0x7+-parseInt(_0x4db678(0x1b0))/0x8*(-parseInt(_0x4db678(0x1b1))/0x9)+parseInt(_0x4db678(0x1b3))/0xa;if(_0xc48654===_0x5b2723)break;else _0x258909['push'](_0x258909['shift']());}catch(_0x5d4abd){_0x258909['push'](_0x258909['shift']());}}}(a137_0x1fdf,0xd8bf6));function a137_0x1fdf(){const _0x92fc6f=['https://api.lovrabet.com','https://runtime.lovrabet.com','7680267yQscmX','userDomain','27796AWxqWc','279856fbwfKp','252HmoKIb','https://daily-api.lovrabet.com','7723680fbNNJD','821076ethGgh','2199138OHvEFF','runtimeDomain','2bUSwUL','https://user-daily.lovrabet.com','155769lNDHbl','405BbYFYF','https://daily-runtime.lovrabet.com'];a137_0x1fdf=function(){return _0x92fc6f;};return a137_0x1fdf();}import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x4fd026){const _0xf06b1b=a137_0x410c;customApiDomain=_0x4fd026?.['apiDomain'],customUserDomain=_0x4fd026?.[_0xf06b1b(0x1ae)],customRuntimeDomain=_0x4fd026?.[_0xf06b1b(0x1b6)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?'https://user.lovrabet.com':a137_0x399135(0x1b8));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a137_0x399135(0x1ab):a137_0x399135(0x1b2));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a137_0x399135(0x1ac):a137_0x399135(0x1aa));
1
+ function a137_0x4a78(_0x5732b3,_0x1d16c4){_0x5732b3=_0x5732b3-0xb6;const _0x5aebe4=a137_0x5aeb();let _0x4a78f8=_0x5aebe4[_0x5732b3];return _0x4a78f8;}const a137_0x2c2e0c=a137_0x4a78;(function(_0x3cb9be,_0x42276f){const _0x262d5e=a137_0x4a78,_0x50c684=_0x3cb9be();while(!![]){try{const _0xda22ae=-parseInt(_0x262d5e(0xbf))/0x1+parseInt(_0x262d5e(0xc5))/0x2+-parseInt(_0x262d5e(0xb8))/0x3*(parseInt(_0x262d5e(0xc4))/0x4)+parseInt(_0x262d5e(0xba))/0x5+-parseInt(_0x262d5e(0xc3))/0x6+-parseInt(_0x262d5e(0xc1))/0x7+-parseInt(_0x262d5e(0xbb))/0x8*(-parseInt(_0x262d5e(0xbc))/0x9);if(_0xda22ae===_0x42276f)break;else _0x50c684['push'](_0x50c684['shift']());}catch(_0x2658fa){_0x50c684['push'](_0x50c684['shift']());}}}(a137_0x5aeb,0x2cff2));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x54df76){const _0x56261f=a137_0x4a78;customApiDomain=_0x54df76?.[_0x56261f(0xb7)],customUserDomain=_0x54df76?.[_0x56261f(0xb9)],customRuntimeDomain=_0x54df76?.['runtimeDomain'];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a137_0x2c2e0c(0xbd):a137_0x2c2e0c(0xc2));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a137_0x2c2e0c(0xbe):'https://daily-api.lovrabet.com');function a137_0x5aeb(){const _0x22e75a=['8aMdKfF','7118568vVrxLa','https://user.lovrabet.com','https://api.lovrabet.com','278007QxsKHI','https://daily-runtime.lovrabet.com','963326UCcGmL','https://user-daily.lovrabet.com','1692654MWWpzD','39948sFWOBH','652044HSzojg','https://runtime.lovrabet.com','apiDomain','75xSgZxP','userDomain','73705bBFmdc'];a137_0x5aeb=function(){return _0x22e75a;};return a137_0x5aeb();}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a137_0x2c2e0c(0xb6):a137_0x2c2e0c(0xc0));
@@ -1 +1 @@
1
- const a138_0x142067=a138_0x3ea0;(function(_0x2ca887,_0x270a4b){const _0x299d3c=a138_0x3ea0,_0x5b2ffc=_0x2ca887();while(!![]){try{const _0x1ced60=-parseInt(_0x299d3c(0xec))/0x1*(-parseInt(_0x299d3c(0xf3))/0x2)+-parseInt(_0x299d3c(0xed))/0x3+-parseInt(_0x299d3c(0xe9))/0x4*(-parseInt(_0x299d3c(0xf4))/0x5)+parseInt(_0x299d3c(0xef))/0x6+-parseInt(_0x299d3c(0xeb))/0x7*(parseInt(_0x299d3c(0xe7))/0x8)+-parseInt(_0x299d3c(0xea))/0x9*(parseInt(_0x299d3c(0xe8))/0xa)+parseInt(_0x299d3c(0xee))/0xb;if(_0x1ced60===_0x270a4b)break;else _0x5b2ffc['push'](_0x5b2ffc['shift']());}catch(_0x52c9b1){_0x5b2ffc['push'](_0x5b2ffc['shift']());}}}(a138_0x8c2b,0x95f20));export const RABETBASE_ENV_VALUES=[a138_0x142067(0xf0),'daily'];export function normalizeEnv(_0xa02ccc){const _0x58a8ea=a138_0x142067;return _0xa02ccc===_0x58a8ea(0xf2)?_0x58a8ea(0xf0):_0xa02ccc;}function a138_0x8c2b(){const _0x44f2d2=['6883620rQDexa','production','daily','online','1580042OfPKiJ','1520DQCHqJ','dev','21856XxiSjq','1452460nKanGu','4496Wvhsgj','18qdgHdz','2142UkwqbB','1AkpVzl','2017323YggpPC','1475254UZEjxq'];a138_0x8c2b=function(){return _0x44f2d2;};return a138_0x8c2b();}export function isProduction(_0x41c9df){const _0x34afc1=a138_0x142067;return normalizeEnv(_0x41c9df)===_0x34afc1(0xf0);}function a138_0x3ea0(_0x38438b,_0xef5d24){_0x38438b=_0x38438b-0xe7;const _0x8c2b22=a138_0x8c2b();let _0x3ea058=_0x8c2b22[_0x38438b];return _0x3ea058;}export function isDaily(_0x17bc9a){const _0x1bb9c2=a138_0x142067;return normalizeEnv(_0x17bc9a)===_0x1bb9c2(0xf1);}export function isDev(_0x4ccd23){const _0x143683=a138_0x142067,_0x5c3671=normalizeEnv(_0x4ccd23);return _0x5c3671==='development'||_0x5c3671===_0x143683(0xf5);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a138_0x142067(0xf0));export function getEnv(){return env;}export function initEnv(_0x5b2f7c){env=normalizeEnv(_0x5b2f7c);}
1
+ const a138_0x47d417=a138_0x1852;(function(_0x51d5b4,_0x31143b){const _0x34d30b=a138_0x1852,_0x3e89ec=_0x51d5b4();while(!![]){try{const _0x1b12a5=parseInt(_0x34d30b(0x171))/0x1+-parseInt(_0x34d30b(0x17a))/0x2+-parseInt(_0x34d30b(0x174))/0x3*(-parseInt(_0x34d30b(0x177))/0x4)+parseInt(_0x34d30b(0x17c))/0x5+-parseInt(_0x34d30b(0x172))/0x6+-parseInt(_0x34d30b(0x178))/0x7+-parseInt(_0x34d30b(0x17b))/0x8*(-parseInt(_0x34d30b(0x173))/0x9);if(_0x1b12a5===_0x31143b)break;else _0x3e89ec['push'](_0x3e89ec['shift']());}catch(_0x1e06de){_0x3e89ec['push'](_0x3e89ec['shift']());}}}(a138_0x1fef,0xb8993));function a138_0x1fef(){const _0x550f27=['dev','312384PDAMAY','5359296AnXXFd','10929483wMTzdu','21708MAEGcP','daily','production','636SWLwCJ','6528326NAelOL','online','1834704UhWSEQ','8QKHlDR','4110030cUbzuK'];a138_0x1fef=function(){return _0x550f27;};return a138_0x1fef();}function a138_0x1852(_0x7ef3f8,_0x737637){_0x7ef3f8=_0x7ef3f8-0x171;const _0x1fefe9=a138_0x1fef();let _0x1852f2=_0x1fefe9[_0x7ef3f8];return _0x1852f2;}export const RABETBASE_ENV_VALUES=['production',a138_0x47d417(0x175)];export function normalizeEnv(_0x49131c){const _0xc590f6=a138_0x47d417;return _0x49131c===_0xc590f6(0x179)?'production':_0x49131c;}export function isProduction(_0x22c35f){const _0xebc426=a138_0x47d417;return normalizeEnv(_0x22c35f)===_0xebc426(0x176);}export function isDaily(_0x151276){const _0x5a9345=a138_0x47d417;return normalizeEnv(_0x151276)===_0x5a9345(0x175);}export function isDev(_0x353dc7){const _0x41ff93=a138_0x47d417,_0x513938=normalizeEnv(_0x353dc7);return _0x513938==='development'||_0x513938===_0x41ff93(0x17d);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a138_0x47d417(0x176));export function getEnv(){return env;}export function initEnv(_0x409789){env=normalizeEnv(_0x409789);}
@@ -1 +1 @@
1
- function a139_0x1163(_0x142a17,_0x49badd){_0x142a17=_0x142a17-0xf9;const _0x2ce3f0=a139_0x2ce3();let _0x1163fa=_0x2ce3f0[_0x142a17];return _0x1163fa;}function a139_0x2ce3(){const _0x39be54=['136nsfkqW','28622dvrXCw','compress','16zKjHcp','30EokoYT','516ouxzSc','5HpqRoT','10027470vzswMg','1698403MFYfxT','json','6060258YVsACG','19278cFyHKw','2348MyBoIy','981258LkVJfY'];a139_0x2ce3=function(){return _0x39be54;};return a139_0x2ce3();}const a139_0x5d02d2=a139_0x1163;(function(_0x7728fa,_0x151f9b){const _0x29ebd1=a139_0x1163,_0x320277=_0x7728fa();while(!![]){try{const _0x6648d9=parseInt(_0x29ebd1(0xf9))/0x1*(-parseInt(_0x29ebd1(0xff))/0x2)+-parseInt(_0x29ebd1(0x106))/0x3*(-parseInt(_0x29ebd1(0xfb))/0x4)+parseInt(_0x29ebd1(0x101))/0x5*(-parseInt(_0x29ebd1(0xfa))/0x6)+parseInt(_0x29ebd1(0x103))/0x7+-parseInt(_0x29ebd1(0xfe))/0x8*(-parseInt(_0x29ebd1(0x105))/0x9)+-parseInt(_0x29ebd1(0x102))/0xa+-parseInt(_0x29ebd1(0xfc))/0xb*(-parseInt(_0x29ebd1(0x100))/0xc);if(_0x6648d9===_0x151f9b)break;else _0x320277['push'](_0x320277['shift']());}catch(_0x779739){_0x320277['push'](_0x320277['shift']());}}}(a139_0x2ce3,0xaf585));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a139_0x5d02d2(0x104),'pretty',a139_0x5d02d2(0xfd)];
1
+ const a139_0x43c8e3=a139_0x531a;function a139_0x531a(_0x440d2b,_0x4670c4){_0x440d2b=_0x440d2b-0x6d;const _0x3b8e0b=a139_0x3b8e();let _0x531ae0=_0x3b8e0b[_0x440d2b];return _0x531ae0;}(function(_0x4695f1,_0x35ae95){const _0x21b75b=a139_0x531a,_0x33ddf0=_0x4695f1();while(!![]){try{const _0x29ca8a=parseInt(_0x21b75b(0x71))/0x1+parseInt(_0x21b75b(0x70))/0x2+-parseInt(_0x21b75b(0x6e))/0x3*(-parseInt(_0x21b75b(0x6d))/0x4)+parseInt(_0x21b75b(0x6f))/0x5+-parseInt(_0x21b75b(0x73))/0x6+parseInt(_0x21b75b(0x78))/0x7*(-parseInt(_0x21b75b(0x76))/0x8)+-parseInt(_0x21b75b(0x74))/0x9;if(_0x29ca8a===_0x35ae95)break;else _0x33ddf0['push'](_0x33ddf0['shift']());}catch(_0xce3590){_0x33ddf0['push'](_0x33ddf0['shift']());}}}(a139_0x3b8e,0xe1acd));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a139_0x43c8e3(0x75),a139_0x43c8e3(0x77),a139_0x43c8e3(0x72)];function a139_0x3b8e(){const _0x57f3c3=['3618120UcvHvN','1776267zLsKAv','json','1864gsiiZH','pretty','13405kwQFpG','12FgUlwJ','436575JYmYRU','5367825WDmqKt','1234216stsTic','43695PVCvwn','compress'];a139_0x3b8e=function(){return _0x57f3c3;};return a139_0x3b8e();}
@@ -1 +1 @@
1
- function a140_0x1928(_0x4d2375,_0x875b48){_0x4d2375=_0x4d2375-0xf5;const _0x1d30a9=a140_0x1d30();let _0x1928b6=_0x1d30a9[_0x4d2375];return _0x1928b6;}const a140_0x21f03b=a140_0x1928;(function(_0x4dda36,_0x317a83){const _0x3ed3ca=a140_0x1928,_0x3c0ea7=_0x4dda36();while(!![]){try{const _0x2a2f5f=-parseInt(_0x3ed3ca(0xfd))/0x1*(-parseInt(_0x3ed3ca(0xf5))/0x2)+parseInt(_0x3ed3ca(0x100))/0x3*(parseInt(_0x3ed3ca(0x101))/0x4)+-parseInt(_0x3ed3ca(0xfa))/0x5*(parseInt(_0x3ed3ca(0xff))/0x6)+-parseInt(_0x3ed3ca(0xfe))/0x7*(-parseInt(_0x3ed3ca(0xf8))/0x8)+-parseInt(_0x3ed3ca(0xf9))/0x9+-parseInt(_0x3ed3ca(0xf7))/0xa*(-parseInt(_0x3ed3ca(0xf6))/0xb)+-parseInt(_0x3ed3ca(0xfc))/0xc;if(_0x2a2f5f===_0x317a83)break;else _0x3c0ea7['push'](_0x3c0ea7['shift']());}catch(_0x657eb1){_0x3c0ea7['push'](_0x3c0ea7['shift']());}}}(a140_0x1d30,0x1c1c7));export const DEFAULT_API_DIR=a140_0x21f03b(0xfb);function a140_0x1d30(){const _0x5f39c2=['8ZnkOIK','1173105JwtDFr','178010ZcIrpq','./src/api','4376460sSKMfN','7818BfYRkE','1178219VDvzbl','6KiHCJw','222744eEuxPY','12tOqOoO','26PJRxBp','16841smoAcj','1000wrnqHN'];a140_0x1d30=function(){return _0x5f39c2;};return a140_0x1d30();}
1
+ function a140_0x5111(){const _0x5657d5=['7mQCvri','267dwJFcH','6396492fvwnly','13EefTvI','./src/api','941272BgtTTX','814SUtzJF','6NhObge','1273315IVrHZC','1756eEiSOf','85570AMmKwW','4157964phczlO','2126764FMOfSy','6hXUogz'];a140_0x5111=function(){return _0x5657d5;};return a140_0x5111();}const a140_0x2c4594=a140_0x235f;(function(_0x4079b0,_0x4c959c){const _0x4e4b6e=a140_0x235f,_0x4d1c5d=_0x4079b0();while(!![]){try{const _0x3ffb40=-parseInt(_0x4e4b6e(0x12d))/0x1*(-parseInt(_0x4e4b6e(0x135))/0x2)+parseInt(_0x4e4b6e(0x133))/0x3*(parseInt(_0x4e4b6e(0x12a))/0x4)+parseInt(_0x4e4b6e(0x134))/0x5*(-parseInt(_0x4e4b6e(0x12b))/0x6)+parseInt(_0x4e4b6e(0x12c))/0x7*(parseInt(_0x4e4b6e(0x131))/0x8)+-parseInt(_0x4e4b6e(0x129))/0x9+parseInt(_0x4e4b6e(0x136))/0xa*(parseInt(_0x4e4b6e(0x132))/0xb)+-parseInt(_0x4e4b6e(0x12e))/0xc*(parseInt(_0x4e4b6e(0x12f))/0xd);if(_0x3ffb40===_0x4c959c)break;else _0x4d1c5d['push'](_0x4d1c5d['shift']());}catch(_0x703079){_0x4d1c5d['push'](_0x4d1c5d['shift']());}}}(a140_0x5111,0xc3109));function a140_0x235f(_0x1df3bc,_0xb1f295){_0x1df3bc=_0x1df3bc-0x129;const _0x5111d2=a140_0x5111();let _0x235f9=_0x5111d2[_0x1df3bc];return _0x235f9;}export const DEFAULT_API_DIR=a140_0x2c4594(0x130);
@@ -1 +1 @@
1
- const a141_0x47298d=a141_0x4a5c;(function(_0x52c01f,_0x3e90d9){const _0x2b7501=a141_0x4a5c,_0x447d6a=_0x52c01f();while(!![]){try{const _0x53a729=-parseInt(_0x2b7501(0x69))/0x1*(-parseInt(_0x2b7501(0x6b))/0x2)+parseInt(_0x2b7501(0x6e))/0x3*(parseInt(_0x2b7501(0x65))/0x4)+parseInt(_0x2b7501(0x66))/0x5+-parseInt(_0x2b7501(0x67))/0x6+parseInt(_0x2b7501(0x71))/0x7+-parseInt(_0x2b7501(0x6d))/0x8+-parseInt(_0x2b7501(0x6a))/0x9*(parseInt(_0x2b7501(0x6f))/0xa);if(_0x53a729===_0x3e90d9)break;else _0x447d6a['push'](_0x447d6a['shift']());}catch(_0x1d1225){_0x447d6a['push'](_0x447d6a['shift']());}}}(a141_0x27bc,0x9390c));export const RISK_LEVEL_VALUES=[a141_0x47298d(0x68),a141_0x47298d(0x70),a141_0x47298d(0x6c)];function a141_0x4a5c(_0x26edcd,_0x557072){_0x26edcd=_0x26edcd-0x65;const _0x27bc98=a141_0x27bc();let _0x4a5c38=_0x27bc98[_0x26edcd];return _0x4a5c38;}function a141_0x27bc(){const _0x18f045=['778384MDFFXJ','3147JKCyvI','20nevjwq','write','5753496bmVCEr','828WvmSgC','4295735mkkjRd','6902136xWqCnL','read','9170lMEAxn','4210317ZgkQXV','194dZgNOv','high-risk-write'];a141_0x27bc=function(){return _0x18f045;};return a141_0x27bc();}
1
+ function a141_0x4cb9(){const _0x169b9d=['118KHyhqg','1603616tFigss','3670444DECOyP','1893WNkyRP','5fWhBej','read','10789960IhWqzd','5807046MnpzkF','1162876UKRBCL','15715881bibVZg'];a141_0x4cb9=function(){return _0x169b9d;};return a141_0x4cb9();}const a141_0x2a9720=a141_0x5084;(function(_0x54ea60,_0x3ef54a){const _0x50c1be=a141_0x5084,_0x5863c3=_0x54ea60();while(!![]){try{const _0x283470=-parseInt(_0x50c1be(0x80))/0x1+parseInt(_0x50c1be(0x78))/0x2*(-parseInt(_0x50c1be(0x7b))/0x3)+parseInt(_0x50c1be(0x7a))/0x4*(parseInt(_0x50c1be(0x7c))/0x5)+parseInt(_0x50c1be(0x7f))/0x6+-parseInt(_0x50c1be(0x79))/0x7+-parseInt(_0x50c1be(0x7e))/0x8+parseInt(_0x50c1be(0x81))/0x9;if(_0x283470===_0x3ef54a)break;else _0x5863c3['push'](_0x5863c3['shift']());}catch(_0x3cfe1f){_0x5863c3['push'](_0x5863c3['shift']());}}}(a141_0x4cb9,0xd06db));function a141_0x5084(_0x414e02,_0x3e4821){_0x414e02=_0x414e02-0x78;const _0x4cb908=a141_0x4cb9();let _0x508454=_0x4cb908[_0x414e02];return _0x508454;}export const RISK_LEVEL_VALUES=[a141_0x2a9720(0x7d),'write','high-risk-write'];