@lovrabet/rabetbase-cli 2.2.1-beta.2 → 2.2.2-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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_0x2ccc0d=a128_0x4cf7;(function(_0x279394,_0x50d12c){const _0xca17c3=a128_0x4cf7,_0x5841f2=_0x279394();while(!![]){try{const _0x80fc07=parseInt(_0xca17c3(0xd3))/0x1+-parseInt(_0xca17c3(0x103))/0x2+-parseInt(_0xca17c3(0x101))/0x3+parseInt(_0xca17c3(0xe0))/0x4*(-parseInt(_0xca17c3(0xe7))/0x5)+parseInt(_0xca17c3(0xd8))/0x6+parseInt(_0xca17c3(0xd2))/0x7+-parseInt(_0xca17c3(0xdb))/0x8*(-parseInt(_0xca17c3(0xd9))/0x9);if(_0x80fc07===_0x50d12c)break;else _0x5841f2['push'](_0x5841f2['shift']());}catch(_0x250e57){_0x5841f2['push'](_0x5841f2['shift']());}}}(a128_0x2f03,0x4045a));import{mkdir,readFile,readdir,rename,rmdir}from'node:fs/promises';function a128_0x4cf7(_0x4275e5,_0x4f9ee4){_0x4275e5=_0x4275e5-0xd2;const _0x2f0339=a128_0x2f03();let _0x4cf774=_0x2f0339[_0x4275e5];return _0x4cf774;}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(_0x53bea2,_0x12e5d9,_0x426546){const _0x512f4c=a128_0x4cf7,_0x2d67b8=await scanLocalSqlQueries(_0x53bea2),_0x195f91=new Map();for(const _0x51aa91 of _0x2d67b8){if(_0x426546&&_0x51aa91[_0x512f4c(0x10e)]!==_0x426546)continue;const _0x5d4d68=_0x195f91[_0x512f4c(0xfd)](_0x51aa91[_0x512f4c(0x10e)])??[];_0x5d4d68[_0x512f4c(0x10f)](_0x51aa91),_0x195f91['set'](_0x51aa91[_0x512f4c(0x10e)],_0x5d4d68);}if(_0x426546&&!_0x195f91[_0x512f4c(0xd5)](_0x426546))throw CliErrors[_0x512f4c(0x109)](_0x512f4c(0xf4)+_0x426546);const _0x167ae6=[];for(const [_0x110b00,_0x255e9a]of _0x195f91['entries']()){if(_0x255e9a[_0x512f4c(0xef)]===0x1){_0x167ae6['push'](_0x255e9a[0x0]);continue;}const _0x25c44b=_0x12e5d9[_0x512f4c(0x104)][_0x110b00],_0x1bb4c9=_0x25c44b?.[_0x512f4c(0xeb)],_0x179775=_0x1bb4c9?_0x255e9a[_0x512f4c(0xe9)](_0x51e282=>_0x51e282['relativePath']!==_0x1bb4c9):_0x255e9a;if(_0x25c44b&&_0x179775[_0x512f4c(0xef)]===0x1){_0x167ae6['push'](_0x179775[0x0]);continue;}throw CliErrors[_0x512f4c(0x109)]('Multiple\x20local\x20SQL\x20files\x20found\x20for\x20sqlCode\x20'+_0x110b00+'.\x20Keep\x20only\x20one\x20file\x20under\x20its\x20sqlCode\x20directory\x20before\x20pushing.');}return _0x167ae6;}export const sqlPush={'service':a128_0x2ccc0d(0xf5),'command':a128_0x2ccc0d(0x10f),'description':'Push\x20local\x20SQL\x20files\x20to\x20remote','risk':'high-risk-write','flags':[SQLCODE_FLAG_OPTIONAL,{'name':a128_0x2ccc0d(0xe6),'type':'boolean','description':a128_0x2ccc0d(0xfc)}],async 'dryRun'(_0x4368c6){const _0x43876b=a128_0x2ccc0d,_0xfd208d=loadSqlProjectConfig(_0x4368c6[_0x43876b(0xe8)]),_0x24c52e=await readSqlLockFile(_0xfd208d[_0x43876b(0x10a)]),{appLock:_0x294599}=ensureSqlLockScope(_0x24c52e??createEmptySqlLock(),_0x4368c6[_0x43876b(0xe8)],_0xfd208d[_0x43876b(0xf1)],_0x43876b(0x10f)),_0x396451=await getTargetSqlQueries(_0xfd208d,_0x294599,_0x4368c6[_0x43876b(0xe2)](_0x43876b(0xdf))||undefined),_0x13e098=[];for(const _0xc59d2e of _0x396451){const _0x1da4b7=await computeSqlFileHash(_0xc59d2e[_0x43876b(0xf7)]),_0x5ec114=_0x294599[_0x43876b(0x104)][_0xc59d2e[_0x43876b(0x10e)]],_0x2b6898=!!_0x5ec114&&(_0x5ec114[_0x43876b(0xeb)]!==_0xc59d2e['relativePath']||!!_0xc59d2e[_0x43876b(0xdd)]&&_0x5ec114[_0x43876b(0xdd)]!==_0xc59d2e['sqlName']);if(!_0x4368c6[_0x43876b(0xf8)](_0x43876b(0xe6))&&_0x5ec114&&_0x5ec114[_0x43876b(0xfa)]===_0x1da4b7&&!_0x2b6898)continue;_0x13e098['push'](_0xc59d2e['sqlCode']);}return{'method':'POST','url':_0x43876b(0xda),'body':{'sqlCodes':_0x13e098,'appCode':_0x4368c6[_0x43876b(0xe8)]},'description':_0x43876b(0xe1)+_0x13e098[_0x43876b(0xef)]+_0x43876b(0xdc)};},async 'execute'(_0x46ebb6){const _0x4b7301=a128_0x2ccc0d,_0x374d2a=loadSqlProjectConfig(_0x46ebb6[_0x4b7301(0xe8)]),_0x1e14f2=await readSqlLockFile(_0x374d2a[_0x4b7301(0x10a)]),{lockData:_0x2b7292,appLock:_0x4e8be7}=ensureSqlLockScope(_0x1e14f2??createEmptySqlLock(),_0x46ebb6['appCode'],_0x374d2a[_0x4b7301(0xf1)],_0x4b7301(0x10f)),_0x455555=await getTargetSqlQueries(_0x374d2a,_0x4e8be7,_0x46ebb6[_0x4b7301(0xe2)](_0x4b7301(0xdf))||undefined);if(_0x455555[_0x4b7301(0xef)]===0x0)return{'ok':!![],'data':{'pushed':[],'skipped':[],'failed':[]},'message':_0x4b7301(0xf9)};const _0x2ce9cf=[],_0x5687a7=[],_0xa14226=[];for(const _0x248851 of _0x455555){const _0x25c078=_0x4e8be7['sqls'][_0x248851[_0x4b7301(0x10e)]];if(!_0x25c078){_0xa14226['push']({'sqlCode':_0x248851['sqlCode'],'error':_0x4b7301(0xec)});continue;}try{const _0x571f1c=await computeSqlFileHash(_0x248851[_0x4b7301(0xf7)]),_0x13ddb3=_0x25c078[_0x4b7301(0xeb)]!==_0x248851[_0x4b7301(0xf0)]||!!_0x248851[_0x4b7301(0xdd)]&&_0x25c078[_0x4b7301(0xdd)]!==_0x248851['sqlName'];if(!_0x46ebb6[_0x4b7301(0xf8)]('force')&&_0x25c078[_0x4b7301(0xfa)]===_0x571f1c&&!_0x13ddb3){_0x5687a7['push']({'sqlCode':_0x248851[_0x4b7301(0x10e)],'reason':_0x4b7301(0xf6)});continue;}if(_0x25c078[_0x4b7301(0x10d)]==null){_0xa14226[_0x4b7301(0x10f)]({'sqlCode':_0x248851[_0x4b7301(0x10e)],'error':_0x4b7301(0xff)});continue;}const _0x19dfcf=await readFile(_0x248851[_0x4b7301(0xf7)],_0x4b7301(0xea)),_0x54eb63=stripLocalSqlMetadata(_0x19dfcf,_0x248851[_0x4b7301(0xed)]),_0x354924=_0x248851[_0x4b7301(0xdd)]||_0x25c078[_0x4b7301(0xdd)],_0x5dfb67=await resolveTargetDbBinding(_0x46ebb6[_0x4b7301(0xe8)],_0x248851,_0x25c078),_0x4db007=await updateSqlQuery({'id':_0x25c078[_0x4b7301(0xd4)],'appCode':_0x46ebb6[_0x4b7301(0xe8)],'sqlCode':_0x248851[_0x4b7301(0x10e)],'sqlName':_0x354924,'dbId':_0x5dfb67['dbId'],'version':_0x25c078[_0x4b7301(0x10d)],'sqlContent':_0x54eb63,'sqlConfig':_0x25c078['sqlConfig']??undefined}),_0x4890f7=_0x4db007['dbId']?await getDbName(_0x46ebb6[_0x4b7301(0xe8)],Number(_0x4db007[_0x4b7301(0x10b)]))[_0x4b7301(0x108)](()=>_0x5dfb67[_0x4b7301(0x105)]):_0x5dfb67[_0x4b7301(0x105)];_0x4e8be7[_0x4b7301(0x104)][_0x248851[_0x4b7301(0x10e)]]={...buildSqlLockEntry(_0x4db007,_0x54eb63,_0x571f1c,{'dbName':_0x4890f7}),'path':_0x248851[_0x4b7301(0xf0)],'mode':_0x25c078[_0x4b7301(0xed)]},await archivePreviousSqlFileIfNeeded(_0x374d2a,_0x25c078['path'],_0x248851[_0x4b7301(0xf0)]),_0x2ce9cf[_0x4b7301(0x10f)]({'sqlCode':_0x248851['sqlCode'],'remoteId':_0x25c078['remoteId']});}catch(_0x26a590){_0xa14226['push']({'sqlCode':_0x248851['sqlCode'],'error':_0x26a590 instanceof Error?_0x26a590[_0x4b7301(0xe4)]:String(_0x26a590)});}}return _0x4e8be7['lastSync']=new Date()[_0x4b7301(0xf3)](),await writeSqlLockFile(_0x374d2a[_0x4b7301(0x10a)],_0x2b7292),{'ok':_0xa14226[_0x4b7301(0xef)]===0x0,'data':{'pushed':_0x2ce9cf,'skipped':_0x5687a7,'failed':_0xa14226},'message':_0x4b7301(0x107)+_0x2ce9cf[_0x4b7301(0xef)]+_0x4b7301(0xe5)+_0x5687a7['length']+_0x4b7301(0x100)+_0xa14226[_0x4b7301(0xef)]+_0x4b7301(0xde)};}};function a128_0x2f03(){const _0xa9c823=['1257912KEmkiZ','map','989740LhZpyy','sqls','dbName','trashDir','Push\x20complete:\x20','catch','validation','lockFilePath','dbId','join','version','sqlCode','push','3682357PAoQQu','105216IQGpzL','remoteId','has','\x22\x20matches\x20multiple\x20databases\x20for\x20sqlCode\x20','dbDirectory','1411104UbEgoT','5135643yzznHp','/smartapi/custom/updateUserCustomSql','8sHQLDc','\x20SQL\x20file(s)','sqlName','\x20failed','sqlcode','4UQMKWM','Would\x20push\x20','str','Local\x20directory\x20\x22','message','\x20pushed,\x20','force','1298230tYDwhF','appCode','filter','utf8','path','local\x20SQL\x20is\x20not\x20tracked\x20by\x20sql.lock.json;\x20use\x20`rabetbase\x20sql\x20create`\x20or\x20`rabetbase\x20sql\x20pull`\x20first','mode','sqlRootDir','length','relativePath','sqlRoot','isFinite','toISOString','Local\x20SQL\x20not\x20found:\x20','sql','unchanged','filePath','bool','No\x20local\x20SQL\x20files\x20found.','hash','No\x20database\x20matches\x20local\x20directory\x20\x22','Force\x20push\x20even\x20if\x20local\x20hash\x20matches\x20lock','get','exec','missing\x20remote\x20version;\x20run\x20`rabetbase\x20sql\x20pull`\x20to\x20refresh\x20version\x20info\x20first','\x20skipped,\x20'];a128_0x2f03=function(){return _0xa9c823;};return a128_0x2f03();}async function archivePreviousSqlFileIfNeeded(_0xfe49b7,_0x15ff12,_0x2ac2f2){const _0x4935d0=a128_0x2ccc0d;if(!_0x15ff12||_0x15ff12===_0x2ac2f2)return;const _0x9c5036=join(_0xfe49b7[_0x4935d0(0xee)],_0x15ff12);if(!await fileExists(_0x9c5036))return;const _0x276c4b=await moveToTrash(_0xfe49b7['projectRoot'],_0xfe49b7[_0x4935d0(0x106)],_0x9c5036);await cleanupEmptyDirectories(dirname(_0x9c5036),_0xfe49b7['sqlRootDir']),void _0x276c4b;}async function moveToTrash(_0x3bb4d2,_0x470dba,_0x44c141){const _0x3fd137=a128_0x2ccc0d,_0x304299=new Date()[_0x3fd137(0xf3)]()['replace'](/[:.]/g,'-'),_0x1fdf94=relative(_0x3bb4d2,_0x44c141),_0x40b573=join(_0x470dba,_0x304299,_0x1fdf94);return await mkdir(dirname(_0x40b573),{'recursive':!![]}),await rename(_0x44c141,_0x40b573),_0x40b573;}async function cleanupEmptyDirectories(_0xf44539,_0x582b63){let _0x243915=resolve(_0xf44539);const _0x146431=resolve(_0x582b63);while(_0x243915['startsWith'](''+_0x146431+sep)||_0x243915===_0x146431){if(_0x243915===_0x146431)return;try{const _0x23f3c2=await readdir(_0x243915);if(_0x23f3c2['length']>0x0)return;await rmdir(_0x243915);}catch{return;}_0x243915=dirname(_0x243915);}}async function resolveTargetDbBinding(_0x5c5b32,_0x580589,_0x52d22e){const _0x50e20e=a128_0x2ccc0d,_0xe27945=_0x580589[_0x50e20e(0xd7)];if(!_0xe27945)return{'dbId':_0x52d22e[_0x50e20e(0x10b)],'dbName':_0x52d22e[_0x50e20e(0x105)]};const _0x8960c5=buildDbDirectoryName(_0x52d22e[_0x50e20e(0x105)],_0x52d22e['dbId']);if(_0xe27945===_0x8960c5)return{'dbId':_0x52d22e[_0x50e20e(0x10b)],'dbName':_0x52d22e[_0x50e20e(0x105)]};const _0x344829=parseExplicitDbDirectory(_0xe27945);if(_0x344829!=null)return{'dbId':_0x344829,'dbName':await getDbName(_0x5c5b32,_0x344829)[_0x50e20e(0x108)](()=>undefined)};const _0x37ceb4=await listDatabases(_0x5c5b32),_0x9dd8d6=_0x37ceb4['filter'](_0x162145=>buildDbDirectoryName(_0x162145[_0x50e20e(0x105)],_0x162145[_0x50e20e(0x10b)])===_0xe27945);if(_0x9dd8d6['length']===0x1)return{'dbId':_0x9dd8d6[0x0][_0x50e20e(0x10b)],'dbName':_0x9dd8d6[0x0][_0x50e20e(0x105)]};if(_0x9dd8d6[_0x50e20e(0xef)]===0x0)throw CliErrors[_0x50e20e(0x109)](_0x50e20e(0xfb)+_0xe27945+'\x22\x20for\x20sqlCode\x20'+_0x580589[_0x50e20e(0x10e)]+'.');const _0x3a9e23=_0x9dd8d6[_0x50e20e(0x102)](_0x7be557=>_0x7be557['dbName']+'\x20('+_0x7be557[_0x50e20e(0x10b)]+')')[_0x50e20e(0x10c)](',\x20');throw CliErrors[_0x50e20e(0x109)](_0x50e20e(0xe3)+_0xe27945+_0x50e20e(0xd6)+_0x580589[_0x50e20e(0x10e)]+':\x20'+_0x3a9e23);}function parseExplicitDbDirectory(_0x4df499){const _0x1e8741=a128_0x2ccc0d,_0xb4d28c=/^db-(\d+)$/[_0x1e8741(0xfe)](_0x4df499);if(!_0xb4d28c)return null;const _0x43f4e4=Number(_0xb4d28c[0x1]);return Number[_0x1e8741(0xf2)](_0x43f4e4)&&_0x43f4e4>0x0?_0x43f4e4: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_0x2fd8(_0x3f247c,_0x3d677b){_0x3f247c=_0x3f247c-0x16b;const _0x576456=a129_0x5764();let _0x2fd873=_0x576456[_0x3f247c];return _0x2fd873;}const a129_0xdae1b0=a129_0x2fd8;(function(_0x2fee0b,_0x3900e2){const _0x37fc65=a129_0x2fd8,_0x283a85=_0x2fee0b();while(!![]){try{const _0x23a159=-parseInt(_0x37fc65(0x177))/0x1+-parseInt(_0x37fc65(0x16b))/0x2+parseInt(_0x37fc65(0x17e))/0x3+parseInt(_0x37fc65(0x17a))/0x4*(-parseInt(_0x37fc65(0x182))/0x5)+parseInt(_0x37fc65(0x174))/0x6*(parseInt(_0x37fc65(0x16f))/0x7)+parseInt(_0x37fc65(0x17f))/0x8*(parseInt(_0x37fc65(0x17c))/0x9)+parseInt(_0x37fc65(0x180))/0xa*(-parseInt(_0x37fc65(0x173))/0xb);if(_0x23a159===_0x3900e2)break;else _0x283a85['push'](_0x283a85['shift']());}catch(_0x38a17c){_0x283a85['push'](_0x283a85['shift']());}}}(a129_0x5764,0x6a66b));import{CliErrors}from'../../errors.js';function a129_0x5764(){const _0x2963dd=['2720616lefEds','string','36xlLDVV','description','2413158fhkNIZ','1103432RpRXJX','1845400igdusj','Target\x20database\x20—\x20accepts\x20a\x20numeric\x20ID\x20or\x20database\x20name\x20(e.g.\x20ecommerce_db)','5ipqBVn','91946HtrGCX','SQL\x20query\x20display\x20name','join','Create\x20new\x20SQL\x20with\x20`rabetbase\x20sql\x20create\x20--name\x20<name>\x20--db-id\x20<id>\x20--mode\x20sql|mybatisXml`.','1622453VWLpgH','Query\x20description','validation','Deprecated:\x20use\x20sql\x20create\x20to\x20create\x20and\x20sql\x20push\x20to\x20update','22VfdoKk','6ZBhhSh','Path\x20to\x20the\x20SQL\x20file','sql','56855jrnIqT','sqlname','Update\x20existing\x20SQL\x20by\x20editing\x20the\x20synced\x20file\x20under\x20`.rabetbase/sql/<appCode>/<dbName|db-<id>>/`\x20and\x20then\x20running\x20`rabetbase\x20sql\x20push\x20--sqlcode\x20<code>\x20--yes`.'];a129_0x5764=function(){return _0x2963dd;};return a129_0x5764();}import{SQLCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const SQL_SAVE_DEPRECATED_HINT=['`rabetbase\x20sql\x20save`\x20has\x20been\x20deprecated.',a129_0xdae1b0(0x16e),a129_0xdae1b0(0x179)][a129_0xdae1b0(0x16d)]('\x0a');export const sqlSave={'service':a129_0xdae1b0(0x176),'command':'save','description':a129_0xdae1b0(0x172),'risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'file','type':a129_0xdae1b0(0x17b),'required':!![],'description':a129_0xdae1b0(0x175)},SQLCODE_FLAG_OPTIONAL,{'name':a129_0xdae1b0(0x178),'type':a129_0xdae1b0(0x17b),'description':a129_0xdae1b0(0x16c)},{'name':'db','type':a129_0xdae1b0(0x17b),'description':a129_0xdae1b0(0x181)},{'name':a129_0xdae1b0(0x17d),'type':'string','description':a129_0xdae1b0(0x170)}],async 'validate'(){throw CliErrors['validation'](SQL_SAVE_DEPRECATED_HINT);},async 'execute'(){const _0x5c11f9=a129_0xdae1b0;throw CliErrors[_0x5c11f9(0x171)](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(_0x50f877,_0x37f057){const _0x5419b5=a130_0x125c,_0x1ac799=_0x50f877();while(!![]){try{const _0x296770=-parseInt(_0x5419b5(0x185))/0x1+parseInt(_0x5419b5(0x17a))/0x2+-parseInt(_0x5419b5(0x17f))/0x3+-parseInt(_0x5419b5(0x169))/0x4*(parseInt(_0x5419b5(0x168))/0x5)+parseInt(_0x5419b5(0x162))/0x6*(parseInt(_0x5419b5(0x160))/0x7)+parseInt(_0x5419b5(0x183))/0x8+-parseInt(_0x5419b5(0x189))/0x9;if(_0x296770===_0x37f057)break;else _0x1ac799['push'](_0x1ac799['shift']());}catch(_0x43081a){_0x1ac799['push'](_0x1ac799['shift']());}}}(a130_0x2882,0x5190e));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(_0x3f99cc,_0x398b20,_0x19d5b4,_0x44c029){const _0x30a23f=a130_0x125c,_0x422823=detectSqlMode(_0x398b20);return{'path':buildSqlRelativePath(_0x3f99cc['sqlCode'],_0x3f99cc[_0x30a23f(0x175)],_0x44c029?.[_0x30a23f(0x170)],_0x422823,_0x3f99cc[_0x30a23f(0x16f)]),'hash':_0x19d5b4,'remoteId':_0x3f99cc['id'],'version':_0x3f99cc['version'],'dbId':Number(_0x3f99cc[_0x30a23f(0x16f)]),'dbName':_0x44c029?.[_0x30a23f(0x170)],'sqlName':_0x3f99cc[_0x30a23f(0x175)],'sqlConfig':_0x3f99cc[_0x30a23f(0x17d)]??undefined,'mode':_0x422823};}export function cloneSqlLockData(_0x5cbe36){const _0x1cf4c3=a130_0x125c;return{'apps':Object['fromEntries'](Object['entries'](_0x5cbe36[_0x1cf4c3(0x16c)])['map'](([_0x52b41c,_0x50ffba])=>[_0x52b41c,{'sqlRoot':_0x50ffba[_0x1cf4c3(0x171)],'lastSync':_0x50ffba[_0x1cf4c3(0x164)],'sqls':{..._0x50ffba[_0x1cf4c3(0x166)]}}]))};}export function ensureRemoteSqlContent(_0x29bb65){const _0x2780f5=a130_0x125c;return _0x29bb65[_0x2780f5(0x163)]??'';}export function buildLocalSqlFileContent(_0x583da1,_0x1644e9,_0x2b4980){const _0x172737=a130_0x125c,_0x263ccf=_0x2b4980?.[_0x172737(0x184)]??detectSqlMode(_0x1644e9),_0x4b50c6=stripLocalSqlMetadata(_0x1644e9,_0x263ccf)[_0x172737(0x167)](),_0x3fd424=[...buildMetadataHeaderLines({'sqlCode':_0x583da1[_0x172737(0x179)],'sqlName':_0x583da1[_0x172737(0x175)],'dbId':_0x583da1[_0x172737(0x16f)],'dbName':_0x2b4980?.[_0x172737(0x170)],'mode':_0x263ccf,'syncedAt':_0x2b4980?.[_0x172737(0x16d)],'description':_0x2b4980?.[_0x172737(0x188)]},_0x263ccf),'',_0x4b50c6],_0x3b58e3=_0x3fd424[_0x172737(0x17b)]('\x0a');return _0x3b58e3[_0x172737(0x174)]('\x0a')?_0x3b58e3:_0x3b58e3+'\x0a';}export function stripLocalSqlMetadata(_0x5e270d,_0x5caaa0){const _0x339140=a130_0x125c,_0x323027=_0x5e270d[_0x339140(0x181)](/\r\n/g,'\x0a')[_0x339140(0x177)]('\x0a'),_0x193659=[];let _0x1f556f=0x0;if(_0x5caaa0===_0x339140(0x173))while(_0x1f556f<_0x323027[_0x339140(0x186)]){const _0x4548fc=_0x323027[_0x1f556f]??'';if(/^\s*<!--\s*@lovrabet\./['test'](_0x4548fc)){_0x1f556f++;continue;}if(_0x4548fc[_0x339140(0x167)]()===''&&_0x1f556f>0x0){_0x1f556f++;continue;}break;}else while(_0x1f556f<_0x323027[_0x339140(0x186)]){const _0x5d3093=_0x323027[_0x1f556f]??'';if(/^\s*--\s*@lovrabet\./[_0x339140(0x187)](_0x5d3093)){_0x1f556f++;continue;}if(_0x5d3093[_0x339140(0x167)]()===''&&_0x1f556f>0x0){_0x1f556f++;continue;}break;}for(;_0x1f556f<_0x323027[_0x339140(0x186)];_0x1f556f++){_0x193659[_0x339140(0x16b)](_0x323027[_0x1f556f]);}return _0x193659[_0x339140(0x17b)]('\x0a')['trimStart']();}export function resolveSqlMode(_0x5e1960,_0x398b59){const _0x1bfd4a=a130_0x125c;if(_0x398b59?.['mode'])return _0x398b59[_0x1bfd4a(0x184)];return detectSqlMode(_0x5e1960);}export function resolveSqlFileName(_0x4b2657,_0x5837c2,_0x5385e0){const _0x55a903=a130_0x125c;if(_0x5385e0?.[_0x55a903(0x17c)])return _0x5385e0[_0x55a903(0x17c)];if(_0x5385e0?.[_0x55a903(0x175)]||_0x5385e0?.[_0x55a903(0x170)])return buildSqlRelativePath(_0x4b2657,_0x5385e0?.[_0x55a903(0x175)],_0x5385e0?.[_0x55a903(0x170)],resolveSqlMode(_0x5837c2,_0x5385e0),_0x5385e0?.['dbId']);return buildDefaultSqlFileName(_0x4b2657,resolveSqlMode(_0x5837c2,_0x5385e0));}function a130_0x2882(){const _0x2b60cd=['680VOlihL','9204TluDYJ','--\x20@lovrabet.','push','apps','syncedAt','includes','dbId','dbName','sqlRoot','question','mybatisXml','endsWith','sqlName','close','split','stderr','sqlCode','720704oClfpx','join','path','sqlConfig','map','429084nreJvS','toLowerCase','replace','\x20[y/N]\x20','1627632yqebtN','mode','131679DpSmqA','length','test','description','1570428wPnFbd','\x20-->','3726961XMoZfB','filter','6jgWoZb','sqlContent','lastSync','<!--\x20@lovrabet.','sqls','trim'];a130_0x2882=function(){return _0x2b60cd;};return a130_0x2882();}function a130_0x125c(_0x57880a,_0x4154e3){_0x57880a=_0x57880a-0x15f;const _0x28824f=a130_0x2882();let _0x125c19=_0x28824f[_0x57880a];return _0x125c19;}export function resolveSqlLocalDir(_0x29365a,_0xaaf51b){return join(_0x29365a,SQL_LOCAL_REL_DIR,_0xaaf51b);}export async function confirmForceOverwrite(_0x57bdb9){const _0x2eb64c=a130_0x125c,_0x4d78db=createInterface({'input':process['stdin'],'output':process[_0x2eb64c(0x178)]}),_0xe9e27d=await new Promise(_0xb87a73=>{const _0x22af87=_0x2eb64c;_0x4d78db[_0x22af87(0x172)](_0x57bdb9+_0x22af87(0x182),_0xb87a73);});return _0x4d78db[_0x2eb64c(0x176)](),['y','yes'][_0x2eb64c(0x16e)](_0xe9e27d[_0x2eb64c(0x167)]()[_0x2eb64c(0x180)]());}export function findSqlLockScope(_0x23c96b,_0x9100ae){return _0x23c96b['apps'][_0x9100ae];}function buildMetadataHeaderLines(_0x5219e1,_0x235587){const _0x17bf72=a130_0x125c,_0x5832a3=[[_0x17bf72(0x179),_0x5219e1['sqlCode']],[_0x17bf72(0x175),_0x5219e1[_0x17bf72(0x175)]],['dbId',_0x5219e1[_0x17bf72(0x16f)]],[_0x17bf72(0x170),_0x5219e1[_0x17bf72(0x170)]],['mode',_0x5219e1[_0x17bf72(0x184)]],[_0x17bf72(0x16d),_0x5219e1[_0x17bf72(0x16d)]],[_0x17bf72(0x188),_0x5219e1['description']]];if(_0x235587===_0x17bf72(0x173))return _0x5832a3['filter'](([,_0x5cfa8b])=>_0x5cfa8b!==undefined&&_0x5cfa8b!==null&&String(_0x5cfa8b)['trim']()!=='')[_0x17bf72(0x17e)](([_0x1744f2,_0x2c7ac2])=>_0x17bf72(0x165)+_0x1744f2+':\x20'+String(_0x2c7ac2)+_0x17bf72(0x15f));return _0x5832a3[_0x17bf72(0x161)](([,_0x468f8f])=>_0x468f8f!==undefined&&_0x468f8f!==null&&String(_0x468f8f)[_0x17bf72(0x167)]()!=='')[_0x17bf72(0x17e)](([_0xa73b10,_0x142684])=>_0x17bf72(0x16a)+_0xa73b10+':\x20'+String(_0x142684));}
@@ -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_0x1fe1d2=a131_0x5261;(function(_0x4afd12,_0xabcc52){const _0x5b1b1d=a131_0x5261,_0x532f23=_0x4afd12();while(!![]){try{const _0x1fe474=parseInt(_0x5b1b1d(0x180))/0x1*(-parseInt(_0x5b1b1d(0x169))/0x2)+parseInt(_0x5b1b1d(0x174))/0x3+-parseInt(_0x5b1b1d(0x171))/0x4+parseInt(_0x5b1b1d(0x17b))/0x5*(-parseInt(_0x5b1b1d(0x167))/0x6)+-parseInt(_0x5b1b1d(0x164))/0x7*(-parseInt(_0x5b1b1d(0x162))/0x8)+parseInt(_0x5b1b1d(0x163))/0x9*(parseInt(_0x5b1b1d(0x173))/0xa)+parseInt(_0x5b1b1d(0x17c))/0xb*(parseInt(_0x5b1b1d(0x184))/0xc);if(_0x1fe474===_0xabcc52)break;else _0x532f23['push'](_0x532f23['shift']());}catch(_0x3b8639){_0x532f23['push'](_0x532f23['shift']());}}}(a131_0x3fbb,0x719e8));import{listSqlQueries}from'../../core/api-client.js';import{loadSqlProjectConfig}from'../../core/sql-sync/config.js';import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';import{computeSqlFileHash}from'../../core/sql-sync/hash.js';import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile}from'../../core/sql-sync/lock.js';function a131_0x3fbb(){const _0x5ce182=['push','sqlName','3443744WqmxfN','has','456770NZKNCj','1776177pcbPoD','Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','\x20modified,\x20','Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally','remote','sqlRoot','appCode','5hyWKMJ','343673GmbhCn','\x20remote-only','\x20unchanged','totalCount','453037otBijV','sqls','read','relativePath','156PNcoXk','hash','status','lockFilePath','160VvVNfA','45lIcbYP','211316JIvJZW','paging','path','306036wjYYRa','\x20added,\x20','2oGBrXS','length','bool','All\x20SQL\x20queries\x20are\x20in\x20sync.','lockKey','\x20missing,\x20'];a131_0x3fbb=function(){return _0x5ce182;};return a131_0x3fbb();}function a131_0x5261(_0x8babee,_0x190ec7){_0x8babee=_0x8babee-0x162;const _0x3fbb72=a131_0x3fbb();let _0x526178=_0x3fbb72[_0x8babee];return _0x526178;}const PAGE_SIZE=0x64;async function fetchAllSqlCodes(_0x3356a7){const _0x19e0a7=a131_0x5261,_0x4bba52=[];let _0xd8d14d=0x1;while(!![]){const _0x515043=await listSqlQueries(_0x3356a7,{'currentPage':_0xd8d14d,'pageSize':PAGE_SIZE}),_0x5e179c=_0x515043['tableData']??[];_0x4bba52[_0x19e0a7(0x16f)](..._0x5e179c['map'](_0x394a0a=>_0x394a0a['sqlCode']));if(_0x5e179c[_0x19e0a7(0x16a)]===0x0)break;const _0x10ba3a=_0x515043[_0x19e0a7(0x165)]?.[_0x19e0a7(0x17f)];if(_0x10ba3a!=null?_0x4bba52[_0x19e0a7(0x16a)]>=_0x10ba3a:_0x5e179c[_0x19e0a7(0x16a)]<PAGE_SIZE)break;_0xd8d14d++;}return _0x4bba52;}export const sqlStatus={'service':'sql','command':a131_0x1fe1d2(0x186),'description':a131_0x1fe1d2(0x175),'risk':a131_0x1fe1d2(0x182),'flags':[{'name':a131_0x1fe1d2(0x178),'type':'boolean','description':a131_0x1fe1d2(0x177)}],async 'execute'(_0x3ac21e){const _0x2b0e5f=a131_0x1fe1d2,_0x374633=loadSqlProjectConfig(_0x3ac21e[_0x2b0e5f(0x17a)]),_0x55ac07=await readSqlLockFile(_0x374633[_0x2b0e5f(0x187)]),{appLock:_0x5f1a92}=ensureSqlLockScope(_0x55ac07??createEmptySqlLock(),_0x374633['appCode'],_0x374633[_0x2b0e5f(0x179)],_0x2b0e5f(0x186)),_0x53a4e0=await scanLocalSqlQueries(_0x374633),_0x5757b0=[],_0x1239df=[],_0x1d050d=[],_0x2eeeee=[],_0x35bf69=new Set(_0x53a4e0['map'](_0xa9b7e5=>_0xa9b7e5[_0x2b0e5f(0x16d)]));for(const _0x5061ef of _0x53a4e0){const _0x1fd101=await computeSqlFileHash(_0x5061ef['filePath']),_0x5b18b8=_0x5f1a92[_0x2b0e5f(0x181)][_0x5061ef[_0x2b0e5f(0x16d)]],_0x15f74=!!_0x5b18b8&&_0x5b18b8[_0x2b0e5f(0x166)]!==_0x5061ef[_0x2b0e5f(0x183)],_0x1708bd=!!_0x5b18b8&&!!_0x5061ef[_0x2b0e5f(0x170)]&&_0x5b18b8[_0x2b0e5f(0x170)]!==_0x5061ef['sqlName'];if(!_0x5b18b8)_0x5757b0[_0x2b0e5f(0x16f)](_0x5061ef['lockKey']);else _0x5b18b8[_0x2b0e5f(0x185)]!==_0x1fd101||_0x15f74||_0x1708bd?_0x1239df['push'](_0x5061ef[_0x2b0e5f(0x16d)]):_0x1d050d[_0x2b0e5f(0x16f)](_0x5061ef['lockKey']);}for(const _0x588a73 of Object['keys'](_0x5f1a92[_0x2b0e5f(0x181)])){!_0x35bf69[_0x2b0e5f(0x172)](_0x588a73)&&_0x2eeeee[_0x2b0e5f(0x16f)](_0x588a73);}const _0xfceaee=[];if(_0x3ac21e[_0x2b0e5f(0x16b)](_0x2b0e5f(0x178))){const _0x1843a9=await fetchAllSqlCodes(_0x3ac21e[_0x2b0e5f(0x17a)]);for(const _0x2c23c9 of _0x1843a9){!_0x35bf69[_0x2b0e5f(0x172)](_0x2c23c9)&&!_0x5f1a92[_0x2b0e5f(0x181)][_0x2c23c9]&&_0xfceaee['push'](_0x2c23c9);}}const _0x5cbe6d=_0x5757b0[_0x2b0e5f(0x16a)]===0x0&&_0x1239df[_0x2b0e5f(0x16a)]===0x0&&_0x2eeeee[_0x2b0e5f(0x16a)]===0x0&&_0xfceaee['length']===0x0;return{'ok':!![],'data':{'added':_0x5757b0,'modified':_0x1239df,'missing':_0x2eeeee,'unchanged':_0x1d050d,'remoteOnly':_0xfceaee},'message':_0x5cbe6d?_0x2b0e5f(0x16c):_0x5757b0[_0x2b0e5f(0x16a)]+_0x2b0e5f(0x168)+_0x1239df[_0x2b0e5f(0x16a)]+_0x2b0e5f(0x176)+_0x2eeeee['length']+_0x2b0e5f(0x16e)+_0x1d050d['length']+_0x2b0e5f(0x17e)+(_0xfceaee[_0x2b0e5f(0x16a)]>0x0?',\x20'+_0xfceaee[_0x2b0e5f(0x16a)]+_0x2b0e5f(0x17d):'')};}};
@@ -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
+ function a132_0x54d9(){const _0x57d5b1=['name','toLowerCase','Table\x20\x22','tables','301GzwGKt','validation','Dataset\x20\x22','2600973WFfhOu','75688LouoBy','Provide\x20--file\x20or\x20--sql','2300958WwMHgU','schemaWarnings','schema:','validate','appCode','read','isArray','1464574ljsKAw','\x22\x20not\x20found\x20in\x20any\x20dataset','fields','message','parameters','split','schemas','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','532535dOYiDW','file','dbtableConfig','135BoEWUv','\x22\x20not\x20found\x20or\x20not\x20accessible','string','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','isSelectOnly','sqlType','tableName','valid','528535oxSHoi','647650CzmcYC','sql','str','utf-8','48kgMzki','reason','map','isDangerous','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','push'];a132_0x54d9=function(){return _0x57d5b1;};return a132_0x54d9();}const a132_0x276992=a132_0x335c;(function(_0x587e19,_0x1738b6){const _0x1d2b48=a132_0x335c,_0x181cdd=_0x587e19();while(!![]){try{const _0x2b92b6=-parseInt(_0x1d2b48(0xee))/0x1+-parseInt(_0x1d2b48(0xe6))/0x2+parseInt(_0x1d2b48(0xdc))/0x3+parseInt(_0x1d2b48(0xcf))/0x4*(parseInt(_0x1d2b48(0xf9))/0x5)+parseInt(_0x1d2b48(0xdf))/0x6+-parseInt(_0x1d2b48(0xd9))/0x7*(-parseInt(_0x1d2b48(0xdd))/0x8)+-parseInt(_0x1d2b48(0xf1))/0x9*(parseInt(_0x1d2b48(0xcb))/0xa);if(_0x2b92b6===_0x1738b6)break;else _0x181cdd['push'](_0x181cdd['shift']());}catch(_0x2b56d1){_0x181cdd['push'](_0x181cdd['shift']());}}}(a132_0x54d9,0xa8556));function a132_0x335c(_0x7e68d8,_0x35fbcf){_0x7e68d8=_0x7e68d8-0xcb;const _0x54d991=a132_0x54d9();let _0x335ca0=_0x54d991[_0x7e68d8];return _0x335ca0;}import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a132_0x276992(0xcc),'command':a132_0x276992(0xe2),'description':'Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','risk':a132_0x276992(0xe4),'flags':[{'name':a132_0x276992(0xef),'type':'string','description':a132_0x276992(0xd3)},{'name':a132_0x276992(0xcc),'type':'string','description':a132_0x276992(0xed)},{'name':a132_0x276992(0xec),'type':a132_0x276992(0xf3),'description':a132_0x276992(0xf4)}],async 'execute'(_0x2893da){const _0x322f51=a132_0x276992,_0x811614=_0x2893da[_0x322f51(0xcd)](_0x322f51(0xef)),_0x28c9fa=_0x2893da['str'](_0x322f51(0xcc));if(!_0x811614&&!_0x28c9fa)throw CliErrors['flagMissing'](_0x322f51(0xef),_0x322f51(0xde));let _0x990268;if(_0x811614){const _0x425d16=resolve(process['cwd'](),_0x811614);if(!existsSync(_0x425d16))throw CliErrors[_0x322f51(0xda)]('File\x20not\x20found:\x20'+_0x425d16);_0x990268=readFileSync(_0x425d16,_0x322f51(0xce));}else _0x990268=_0x28c9fa;const _0x4b2404=validateSql(_0x990268),_0x371852={'valid':_0x4b2404[_0x322f51(0xf8)],'sqlType':_0x4b2404[_0x322f51(0xf6)]['type'],'isSelectOnly':_0x4b2404[_0x322f51(0xf6)][_0x322f51(0xf5)],'isDangerous':_0x4b2404['sqlType'][_0x322f51(0xd2)],'tables':_0x4b2404[_0x322f51(0xd8)],'parameters':_0x4b2404[_0x322f51(0xea)],'message':_0x4b2404[_0x322f51(0xe9)]};_0x4b2404[_0x322f51(0xf6)][_0x322f51(0xd0)]&&(_0x371852[_0x322f51(0xd0)]=_0x4b2404[_0x322f51(0xf6)][_0x322f51(0xd0)]);const _0x213517=_0x2893da['str'](_0x322f51(0xec));if(_0x213517&&_0x4b2404[_0x322f51(0xf8)]){const _0x392d35=_0x213517[_0x322f51(0xeb)](',')[_0x322f51(0xd1)](_0x213408=>_0x213408['trim']())['filter'](Boolean),_0x3d6075=[],_0x17762f=filterDbTableBackedDatasets(await listDatasets(_0x2893da[_0x322f51(0xe3)])),_0x3e98f9=new Map(_0x17762f[_0x322f51(0xd1)](_0x69f703=>[_0x69f703[_0x322f51(0xf0)]?.[_0x322f51(0xf7)]?.['toLowerCase'](),_0x69f703]));for(const _0x466731 of _0x4b2404[_0x322f51(0xd8)]){const _0x34a8ea=_0x3e98f9['get'](_0x466731[_0x322f51(0xd6)]());!_0x34a8ea&&_0x3d6075['push'](_0x322f51(0xd7)+_0x466731+_0x322f51(0xe7));}for(const _0x4a0abc of _0x392d35){let _0x4d2030;try{_0x4d2030=await getDatasetDetail(_0x4a0abc);}catch{_0x3d6075[_0x322f51(0xd4)](_0x322f51(0xdb)+_0x4a0abc+_0x322f51(0xf2));continue;}assertDatasetIsDbTableBacked(_0x4d2030,'SQL\x20schema\x20validation');const _0x426c5c=Array[_0x322f51(0xe5)](_0x4d2030[_0x322f51(0xe8)])?_0x4d2030[_0x322f51(0xe8)]:[],_0x1707fe=new Set(_0x426c5c[_0x322f51(0xd1)](_0x3755ee=>_0x3755ee[_0x322f51(0xd5)]?.['toLowerCase']())),_0x2436c3=_0x4d2030[_0x322f51(0xf0)]?.['tableName']||_0x4d2030[_0x322f51(0xf7)]||_0x4a0abc;_0x371852[_0x322f51(0xe1)+_0x2436c3]={'code':_0x4a0abc,'tableName':_0x2436c3,'fieldCount':_0x1707fe['size'],'fields':Array['from'](_0x1707fe)};}_0x3d6075['length']>0x0&&(_0x371852[_0x322f51(0xe0)]=_0x3d6075);}return{'ok':_0x4b2404['valid'],'data':_0x371852,'message':_0x4b2404['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_0x298ef1=a133_0x2a13;function a133_0x4dd8(){const _0x2bab4e=['filter','defaultApp','format','1133pJoBeG','appcode','14880BSKhhL','riskLevel','24JVayNU','zh-CN','inherit','toLowerCase','Locale','trim','pageSize','join','locale','6qfiotP','Config\x20key\x20(','keys','cookie','1481740QiVzev','en-US','63110mQqryp','5029583rUvUjA','accessKey','apps','string','app','defaultFormat','1492389RljBiE','2lSgzaD','Target\x20environment','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','API\x20directory\x20path','3ydCCmi','2669908MqOoXq','476xTyyQq','env','663307hJkkwT','Access\x20key','number','apiDir','map'];a133_0x4dd8=function(){return _0x2bab4e;};return a133_0x4dd8();}(function(_0x4ce668,_0x144e9e){const _0xd38852=a133_0x2a13,_0x3aac2a=_0x4ce668();while(!![]){try{const _0x14cb71=parseInt(_0xd38852(0xc1))/0x1*(parseInt(_0xd38852(0xb9))/0x2)+parseInt(_0xd38852(0xbd))/0x3*(parseInt(_0xd38852(0xbe))/0x4)+parseInt(_0xd38852(0xda))/0x5*(-parseInt(_0xd38852(0xd6))/0x6)+-parseInt(_0xd38852(0xbf))/0x7*(parseInt(_0xd38852(0xcb))/0x8)+-parseInt(_0xd38852(0xb8))/0x9+-parseInt(_0xd38852(0xdc))/0xa*(-parseInt(_0xd38852(0xc9))/0xb)+parseInt(_0xd38852(0xcd))/0xc*(-parseInt(_0xd38852(0xdd))/0xd);if(_0x14cb71===_0x144e9e)break;else _0x3aac2a['push'](_0x3aac2a['shift']());}catch(_0x1b44fc){_0x3aac2a['push'](_0x3aac2a['shift']());}}}(a133_0x4dd8,0x96f92));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a133_0x298ef1(0xd9),a133_0x298ef1(0xde),a133_0x298ef1(0xd5),a133_0x298ef1(0xc8),a133_0x298ef1(0xcc)];function a133_0x2a13(_0x384829,_0x1cddb4){_0x384829=_0x384829-0xb8;const _0x4dd80f=a133_0x4dd8();let _0x2a1333=_0x4dd80f[_0x384829];return _0x2a1333;}export const TOP_LEVEL_CONFIG_KEYS=new Set([a133_0x298ef1(0xca),a133_0x298ef1(0xc0),'locale',a133_0x298ef1(0xc8),a133_0x298ef1(0xd9),a133_0x298ef1(0xde),a133_0x298ef1(0xc4)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x4c4cbd){const _0x541608=a133_0x298ef1;return[..._0x4c4cbd][_0x541608(0xd4)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x10d891){return TOP_LEVEL_CONFIG_KEYS['has'](_0x10d891);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x8001d5=a133_0x298ef1;return _0x8001d5(0xd7)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a133_0x298ef1(0xc0),'apiDir':a133_0x298ef1(0xc4),'cookie':'cookie','accessKey':'accessKey','defaultFormat':a133_0x298ef1(0xc8),'pageSize':a133_0x298ef1(0xd3),'riskLevel':a133_0x298ef1(0xcc),'locale':a133_0x298ef1(0xd5)};export function getAppProfileFlagDefs(){const _0x371d65=a133_0x298ef1;return[{'name':'env','type':_0x371d65(0xe0),'description':_0x371d65(0xba),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':_0x371d65(0xe0),'description':_0x371d65(0xbc)},{'name':_0x371d65(0xd9),'type':'string','description':'Auth\x20cookie','hidden':!![]},{'name':'accessKey','type':_0x371d65(0xe0),'description':_0x371d65(0xc2),'hidden':!![]},{'name':_0x371d65(0xe2),'type':_0x371d65(0xe0),'description':_0x371d65(0xbb),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x371d65(0xd3),'type':_0x371d65(0xc3),'description':'Default\x20page\x20size'},{'name':_0x371d65(0xcc),'type':_0x371d65(0xe0),'description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':_0x371d65(0xd5),'type':'string','description':_0x371d65(0xd1)}];}export function collectAppProfileOverrides(_0x5c502b){const _0x437397=a133_0x298ef1,_0x167dd9={};for(const [_0x21e190,_0x3339c2]of Object['entries'](APP_PROFILE_FLAG_KEY_MAP)){const _0x1e158f=_0x5c502b(_0x21e190);if(!_0x1e158f)continue;_0x167dd9[_0x3339c2]=_0x3339c2===_0x437397(0xd3)?Number(_0x1e158f):_0x1e158f;}return _0x167dd9;}export function buildAppProfileListFields(_0x1e7fec){const _0x4f39c2=a133_0x298ef1;return{'env':_0x1e7fec[_0x4f39c2(0xc0)]??null,'apiDir':_0x1e7fec[_0x4f39c2(0xc4)]??null,'hasCookie':!!_0x1e7fec['cookie'],'hasAccessKey':!!_0x1e7fec[_0x4f39c2(0xde)],'format':_0x1e7fec[_0x4f39c2(0xc8)]??null,'pageSize':_0x1e7fec['pageSize']??null,'riskLevel':_0x1e7fec[_0x4f39c2(0xcc)]??null,'locale':_0x1e7fec[_0x4f39c2(0xd5)]??null};}export function buildAppDoctorFields(_0x1b503a,_0x103cfb){const _0x18b7ff=a133_0x298ef1;return{'env':{'value':_0x1b503a['env']||_0x103cfb[_0x18b7ff(0xc0)],'source':_0x1b503a[_0x18b7ff(0xc0)]?_0x18b7ff(0xe1):'inherit'},'apiDir':{'value':_0x1b503a[_0x18b7ff(0xc4)]||_0x103cfb[_0x18b7ff(0xc4)],'source':_0x1b503a[_0x18b7ff(0xc4)]?_0x18b7ff(0xe1):'inherit'},'cookie':{'value':_0x1b503a[_0x18b7ff(0xd9)]||_0x103cfb['cookie'],'source':_0x1b503a[_0x18b7ff(0xd9)]?_0x18b7ff(0xe1):_0x18b7ff(0xcf)},'accessKey':{'value':_0x1b503a[_0x18b7ff(0xde)]||_0x103cfb[_0x18b7ff(0xde)],'source':_0x1b503a[_0x18b7ff(0xde)]?_0x18b7ff(0xe1):_0x18b7ff(0xcf)}};}export function buildCanonicalAppConfig(_0x326a59,_0x6879da){const _0x241826=a133_0x298ef1,_0x40a785=_0x326a59[_0x241826(0xc5)](_0x44e6e1=>String(_0x44e6e1||'')[_0x241826(0xd2)]())[_0x241826(0xc6)](Boolean);if(_0x40a785['length']===0x0)return{};const _0x4917ff={};for(const _0xa11aa5 of _0x40a785){_0x4917ff[_0xa11aa5]=_0x6879da?{'appcode':_0xa11aa5,'env':_0x6879da}:{'appcode':_0xa11aa5};}return{'apps':_0x4917ff,'defaultApp':_0x40a785[0x0]};}export function buildCanonicalProjectConfig(_0x2875ad,_0x19ec71){const _0x15b667=a133_0x298ef1,{appCodes:appCodes=[],env:_0x4f146c,metadata:_0x3d42bb}=_0x19ec71,_0x2adfa9={..._0x2875ad,..._0x3d42bb||{}};delete _0x2adfa9[_0x15b667(0xca)],delete _0x2adfa9[_0x15b667(0xe1)];if(_0x4f146c)_0x2adfa9[_0x15b667(0xc0)]=_0x4f146c;else!_0x2adfa9[_0x15b667(0xc0)]&&(_0x2adfa9['env']=DEFAULT_CONFIG_VALUES[_0x15b667(0xc0)]);const _0x3336f8=buildCanonicalAppConfig(appCodes,_0x2adfa9[_0x15b667(0xc0)]);return Object[_0x15b667(0xd8)](_0x3336f8)['length']>0x0&&(_0x2adfa9[_0x15b667(0xdf)]=_0x3336f8[_0x15b667(0xdf)],_0x2adfa9[_0x15b667(0xc7)]=_0x3336f8[_0x15b667(0xc7)]),_0x2adfa9;}const LOCALE_MAP={'zh':'zh-CN','zh-cn':a133_0x298ef1(0xce),'zh_cn':'zh-CN','en':a133_0x298ef1(0xdb),'en-us':a133_0x298ef1(0xdb),'en_us':a133_0x298ef1(0xdb)};export function normalizeLocale(_0x4176bb){const _0x14188d=a133_0x298ef1;if(!_0x4176bb)return null;return LOCALE_MAP[_0x4176bb[_0x14188d(0xd0)]()]??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_0x32da(_0x3e46d8,_0x4b9719){_0x3e46d8=_0x3e46d8-0x151;const _0x304daa=a134_0x304d();let _0x32da42=_0x304daa[_0x3e46d8];return _0x32da42;}const a134_0x352774=a134_0x32da;(function(_0x42d0b3,_0x4c0865){const _0x71123=a134_0x32da,_0xa1590c=_0x42d0b3();while(!![]){try{const _0x489a6a=-parseInt(_0x71123(0x15b))/0x1*(-parseInt(_0x71123(0x158))/0x2)+-parseInt(_0x71123(0x157))/0x3+-parseInt(_0x71123(0x15a))/0x4*(-parseInt(_0x71123(0x153))/0x5)+parseInt(_0x71123(0x159))/0x6*(-parseInt(_0x71123(0x152))/0x7)+-parseInt(_0x71123(0x15c))/0x8+parseInt(_0x71123(0x151))/0x9*(-parseInt(_0x71123(0x156))/0xa)+parseInt(_0x71123(0x155))/0xb;if(_0x489a6a===_0x4c0865)break;else _0xa1590c['push'](_0xa1590c['shift']());}catch(_0x4c3f17){_0xa1590c['push'](_0xa1590c['shift']());}}}(a134_0x304d,0x51158));export const CLI_VERSION_POLICY_URL=a134_0x352774(0x154);function a134_0x304d(){const _0x3159ba=['43DgAAGa','2606392ZPTHRb','126giNQlP','161sLSblw','5QSnXtj','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','5528644RkhzwR','182290taDqOr','92835IKbObI','2528dFNBjp','23514yqUzmO','1909004wcizew'];a134_0x304d=function(){return _0x3159ba;};return a134_0x304d();}
@@ -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
+ function a135_0x2430(_0xaa3ea5,_0x3590ca){_0xaa3ea5=_0xaa3ea5-0x1ee;const _0x2e4f51=a135_0x2e4f();let _0x2430bb=_0x2e4f51[_0xaa3ea5];return _0x2430bb;}const a135_0x514d89=a135_0x2430;(function(_0x1f3cf1,_0x2a392a){const _0x8ba444=a135_0x2430,_0x193a85=_0x1f3cf1();while(!![]){try{const _0x338a57=-parseInt(_0x8ba444(0x208))/0x1+parseInt(_0x8ba444(0x1f0))/0x2+-parseInt(_0x8ba444(0x23e))/0x3*(parseInt(_0x8ba444(0x233))/0x4)+parseInt(_0x8ba444(0x20f))/0x5*(parseInt(_0x8ba444(0x253))/0x6)+parseInt(_0x8ba444(0x245))/0x7+-parseInt(_0x8ba444(0x248))/0x8*(-parseInt(_0x8ba444(0x22e))/0x9)+-parseInt(_0x8ba444(0x240))/0xa*(parseInt(_0x8ba444(0x23c))/0xb);if(_0x338a57===_0x2a392a)break;else _0x193a85['push'](_0x193a85['shift']());}catch(_0xa484dd){_0x193a85['push'](_0x193a85['shift']());}}}(a135_0x2e4f,0x3dd6e));export const CLI_BIN_NAME=a135_0x514d89(0x210);function a135_0x2e4f(){const _0x4435cf=['Page\x20number','Use\x20project\x20config\x20scope','Operation\x20type','non-interactive','enableBffSave','keyword','File\x20path','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','global','force','Enable\x20BFF\x20save','330316iRPvYg','Force\x20non-interactive\x20mode\x20(CI)','meowKey','file','db-id','sql','nonInteractive','3400xdNCMv','rabetbase','remote','description','Description\x20file','Select\x20app\x20profile\x20by\x20name','watch','Rabetbase\x20CLI','Watch\x20mode','json\x20|\x20pretty\x20|\x20compress','production\x20|\x20daily','Use\x20global\x20config\x20scope','sqlName','Record\x20ID','Config\x20key','name','Name','Page\x20size','Target\x20path','Confirm\x20destructive\x20action','dryRun','Type\x20filter','map','sqlname','key','confirm','format','Override\x20appcode','Config\x20value','code','yes','59544avgmqb','description-file','schemas','dbId','sql-name','35656uxtIua','value','string','output','operation','appcode','DB\x20ID','title','SQL\x20name','319coKYlt','Preview\x20operation\x20without\x20executing','9rEROpW','operation-type','670WShblT','help','sqlcode','project','Show\x20help','1228416aVIBNA','Function\x20node','<name>','104CDjAoJ','SQL\x20code','skip-imports','type','app','Code\x20filter','verbose','env','SQL\x20string','target','all','2802AhpUdZ','boolean','dry-run','66478iDtEad','Output\x20path','page','datasetcode','expectedCount','function-node','clear','params','functionNode','Dataset\x20code','Output\x20format','Alias\x20for\x20--non-interactive','dbid'];a135_0x2e4f=function(){return _0x4435cf;};return a135_0x2e4f();}export const CLI_DISPLAY_NAME=a135_0x514d89(0x216);export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':a135_0x514d89(0x238),'meowKey':a135_0x514d89(0x238),'type':a135_0x514d89(0x235),'description':a135_0x514d89(0x22a),'hint':'<code>'},{'name':a135_0x514d89(0x24c),'meowKey':a135_0x514d89(0x24c),'type':a135_0x514d89(0x235),'description':a135_0x514d89(0x214),'hint':a135_0x514d89(0x247)},{'name':a135_0x514d89(0x24f),'meowKey':'env','type':a135_0x514d89(0x235),'description':'Environment','hint':a135_0x514d89(0x219)},{'name':a135_0x514d89(0x229),'meowKey':'format','type':a135_0x514d89(0x235),'description':a135_0x514d89(0x1fa),'hint':a135_0x514d89(0x218)},{'name':'jq','meowKey':'jq','type':a135_0x514d89(0x235),'description':a135_0x514d89(0x204),'hint':'<expr>'},{'name':'dry-run','meowKey':a135_0x514d89(0x223),'type':a135_0x514d89(0x1ee),'description':a135_0x514d89(0x23d)},{'name':a135_0x514d89(0x22d),'meowKey':a135_0x514d89(0x22d),'type':a135_0x514d89(0x1ee),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a135_0x514d89(0x200),'meowKey':a135_0x514d89(0x20e),'type':a135_0x514d89(0x1ee),'description':a135_0x514d89(0x209)},{'name':'global','meowKey':a135_0x514d89(0x205),'type':a135_0x514d89(0x1ee),'description':a135_0x514d89(0x21a)},{'name':'project','meowKey':a135_0x514d89(0x243),'type':'boolean','description':a135_0x514d89(0x1fe)},{'name':'ci','meowKey':'ci','type':a135_0x514d89(0x1ee),'description':a135_0x514d89(0x1fb),'hidden':!![]},{'name':a135_0x514d89(0x241),'meowKey':a135_0x514d89(0x241),'type':a135_0x514d89(0x1ee),'description':a135_0x514d89(0x244)},{'name':a135_0x514d89(0x21e),'meowKey':a135_0x514d89(0x21e),'type':a135_0x514d89(0x235),'description':a135_0x514d89(0x21f),'hidden':!![]},{'name':a135_0x514d89(0x23a),'meowKey':a135_0x514d89(0x23a),'type':a135_0x514d89(0x235),'description':'Title','hidden':!![]},{'name':a135_0x514d89(0x1f6),'meowKey':a135_0x514d89(0x1f6),'type':a135_0x514d89(0x1ee),'description':'Clear','hidden':!![]},{'name':a135_0x514d89(0x215),'meowKey':a135_0x514d89(0x215),'type':a135_0x514d89(0x1ee),'description':a135_0x514d89(0x217),'hidden':!![]},{'name':a135_0x514d89(0x236),'meowKey':a135_0x514d89(0x236),'type':a135_0x514d89(0x235),'description':a135_0x514d89(0x1f1),'hidden':!![]},{'name':a135_0x514d89(0x1f7),'meowKey':a135_0x514d89(0x1f7),'type':'string','description':'JSON\x20params','hidden':!![]},{'name':a135_0x514d89(0x1f3),'meowKey':a135_0x514d89(0x1f3),'type':'string','description':a135_0x514d89(0x1f9),'hidden':!![]},{'name':a135_0x514d89(0x252),'meowKey':a135_0x514d89(0x252),'type':a135_0x514d89(0x1ee),'description':'Apply\x20to\x20all','hidden':!![]},{'name':'enable-bff-save','meowKey':a135_0x514d89(0x201),'type':a135_0x514d89(0x1ee),'description':a135_0x514d89(0x207),'hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':a135_0x514d89(0x21c),'hidden':!![]},{'name':'type','meowKey':a135_0x514d89(0x24b),'type':a135_0x514d89(0x235),'description':a135_0x514d89(0x224),'hidden':!![]},{'name':a135_0x514d89(0x20b),'meowKey':'file','type':a135_0x514d89(0x235),'description':a135_0x514d89(0x203),'hidden':!![]},{'name':a135_0x514d89(0x242),'meowKey':'sqlcode','type':a135_0x514d89(0x235),'description':a135_0x514d89(0x249),'hidden':!![]},{'name':a135_0x514d89(0x232),'meowKey':a135_0x514d89(0x21b),'type':a135_0x514d89(0x235),'description':a135_0x514d89(0x23b),'hidden':!![]},{'name':a135_0x514d89(0x226),'meowKey':a135_0x514d89(0x226),'type':a135_0x514d89(0x235),'description':'SQL\x20name','hidden':!![]},{'name':a135_0x514d89(0x20c),'meowKey':a135_0x514d89(0x231),'type':a135_0x514d89(0x235),'description':a135_0x514d89(0x239),'hidden':!![]},{'name':a135_0x514d89(0x1fc),'meowKey':a135_0x514d89(0x1fc),'type':a135_0x514d89(0x235),'description':a135_0x514d89(0x239),'hidden':!![]},{'name':a135_0x514d89(0x212),'meowKey':a135_0x514d89(0x212),'type':a135_0x514d89(0x235),'description':'Description','hidden':!![]},{'name':a135_0x514d89(0x22f),'meowKey':'descriptionFile','type':a135_0x514d89(0x235),'description':a135_0x514d89(0x213),'hidden':!![]},{'name':a135_0x514d89(0x1f2),'meowKey':'page','type':a135_0x514d89(0x235),'description':a135_0x514d89(0x1fd),'hidden':!![]},{'name':'pagesize','meowKey':'pagesize','type':a135_0x514d89(0x235),'description':a135_0x514d89(0x220),'hidden':!![]},{'name':'keyword','meowKey':a135_0x514d89(0x202),'type':'string','description':'Keyword\x20filter','hidden':!![]},{'name':'code','meowKey':a135_0x514d89(0x22c),'type':'string','description':a135_0x514d89(0x24d),'hidden':!![]},{'name':a135_0x514d89(0x20d),'meowKey':a135_0x514d89(0x20d),'type':'string','description':a135_0x514d89(0x250),'hidden':!![]},{'name':a135_0x514d89(0x230),'meowKey':a135_0x514d89(0x230),'type':'string','description':'Schemas','hidden':!![]},{'name':'operation','meowKey':a135_0x514d89(0x237),'type':a135_0x514d89(0x235),'description':a135_0x514d89(0x1ff),'hidden':!![]},{'name':a135_0x514d89(0x251),'meowKey':a135_0x514d89(0x251),'type':a135_0x514d89(0x235),'description':a135_0x514d89(0x221),'hidden':!![]},{'name':a135_0x514d89(0x24a),'meowKey':'skipImports','type':a135_0x514d89(0x1ee),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':'key','meowKey':a135_0x514d89(0x227),'type':'string','description':a135_0x514d89(0x21d),'hidden':!![]},{'name':a135_0x514d89(0x234),'meowKey':a135_0x514d89(0x234),'type':a135_0x514d89(0x235),'description':a135_0x514d89(0x22b),'hidden':!![]},{'name':a135_0x514d89(0x206),'meowKey':a135_0x514d89(0x206),'type':a135_0x514d89(0x1ee),'description':'Force\x20overwrite','hidden':!![]},{'name':a135_0x514d89(0x228),'meowKey':'confirm','type':'boolean','description':a135_0x514d89(0x222),'hidden':!![]},{'name':'remote','meowKey':a135_0x514d89(0x211),'type':'boolean','description':'Use\x20remote','hidden':!![]},{'name':a135_0x514d89(0x24e),'meowKey':a135_0x514d89(0x24e),'type':a135_0x514d89(0x1ee),'description':'Verbose\x20output','hidden':!![]},{'name':'expected-count','meowKey':a135_0x514d89(0x1f4),'type':a135_0x514d89(0x235),'description':'Expected\x20affected\x20count','hidden':!![]},{'name':a135_0x514d89(0x23f),'meowKey':'operationType','type':'string','description':a135_0x514d89(0x1ff),'hidden':!![]},{'name':a135_0x514d89(0x1f5),'meowKey':a135_0x514d89(0x1f8),'type':a135_0x514d89(0x235),'description':a135_0x514d89(0x246),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode','app',a135_0x514d89(0x24f),'format','jq',a135_0x514d89(0x1ef),a135_0x514d89(0x22d),a135_0x514d89(0x200),'ci']);export function buildMeowFlags(){const _0x348ab4=a135_0x514d89;return Object['fromEntries'](GLOBAL_FLAGS[_0x348ab4(0x225)](_0x5eb8d5=>[_0x5eb8d5[_0x348ab4(0x20a)],{'type':_0x5eb8d5[_0x348ab4(0x24b)]}]));}
@@ -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
+ function a136_0x5f33(_0x3d747c,_0x2f1125){_0x3d747c=_0x3d747c-0x1c3;const _0x5d7724=a136_0x5d77();let _0x5f33d4=_0x5d7724[_0x3d747c];return _0x5f33d4;}function a136_0x5d77(){const _0x571c7b=['compress','526248hfqSpo','66457lEnDDj','321690yGJeCm','351617eAPWVB','12YlRmKR','en-US','3YoqTli','18vtvrpc','high-risk-write','production','53442TKAWLo','2198510WDxzVb','787512aygYbs'];a136_0x5d77=function(){return _0x571c7b;};return a136_0x5d77();}const a136_0x26901a=a136_0x5f33;(function(_0x49fc2f,_0xda0564){const _0x3fb079=a136_0x5f33,_0x511a18=_0x49fc2f();while(!![]){try{const _0x177b43=-parseInt(_0x3fb079(0x1cd))/0x1+-parseInt(_0x3fb079(0x1c8))/0x2*(-parseInt(_0x3fb079(0x1c4))/0x3)+parseInt(_0x3fb079(0x1ca))/0x4+-parseInt(_0x3fb079(0x1ce))/0x5+parseInt(_0x3fb079(0x1d0))/0x6*(parseInt(_0x3fb079(0x1cf))/0x7)+parseInt(_0x3fb079(0x1cc))/0x8*(parseInt(_0x3fb079(0x1c5))/0x9)+-parseInt(_0x3fb079(0x1c9))/0xa;if(_0x177b43===_0xda0564)break;else _0x511a18['push'](_0x511a18['shift']());}catch(_0x3aa6e5){_0x511a18['push'](_0x511a18['shift']());}}}(a136_0x5d77,0x19a11));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a136_0x26901a(0x1c7),'format':a136_0x26901a(0x1cb),'locale':a136_0x26901a(0x1c3),'riskLevel':a136_0x26901a(0x1c6),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a136_0x26901a(0x1cb);
@@ -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
+ const a137_0x558e9b=a137_0x5e9d;(function(_0x35b019,_0x13946f){const _0x1a56ca=a137_0x5e9d,_0x3b0078=_0x35b019();while(!![]){try{const _0x55a532=-parseInt(_0x1a56ca(0x10e))/0x1*(parseInt(_0x1a56ca(0x10d))/0x2)+-parseInt(_0x1a56ca(0x10a))/0x3+-parseInt(_0x1a56ca(0x10c))/0x4+parseInt(_0x1a56ca(0x107))/0x5*(-parseInt(_0x1a56ca(0x103))/0x6)+parseInt(_0x1a56ca(0x108))/0x7*(parseInt(_0x1a56ca(0x102))/0x8)+parseInt(_0x1a56ca(0x106))/0x9*(-parseInt(_0x1a56ca(0xfc))/0xa)+parseInt(_0x1a56ca(0x105))/0xb;if(_0x55a532===_0x13946f)break;else _0x3b0078['push'](_0x3b0078['shift']());}catch(_0x4ffa48){_0x3b0078['push'](_0x3b0078['shift']());}}}(a137_0x7264,0x9299b));function a137_0x5e9d(_0x52a494,_0x5a4a11){_0x52a494=_0x52a494-0xfc;const _0x72643e=a137_0x7264();let _0x5e9dd6=_0x72643e[_0x52a494];return _0x5e9dd6;}import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;function a137_0x7264(){const _0x3634a6=['5wMJBxO','21AGCjXk','runtimeDomain','2166090YENlSE','userDomain','3795128jPwDOS','3646igdqfq','111xdKNHP','https://api.lovrabet.com','260900sGDlvv','https://user-daily.lovrabet.com','apiDomain','https://user.lovrabet.com','https://daily-runtime.lovrabet.com','https://runtime.lovrabet.com','1354888GYJwLa','5978874xQfzmF','https://daily-api.lovrabet.com','34017346TzrzdI','45pHBVlc'];a137_0x7264=function(){return _0x3634a6;};return a137_0x7264();}export function initDomains(_0x377436){const _0x19a26a=a137_0x5e9d;customApiDomain=_0x377436?.[_0x19a26a(0xfe)],customUserDomain=_0x377436?.[_0x19a26a(0x10b)],customRuntimeDomain=_0x377436?.[_0x19a26a(0x109)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a137_0x558e9b(0xff):a137_0x558e9b(0xfd));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a137_0x558e9b(0x10f):a137_0x558e9b(0x104));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a137_0x558e9b(0x101):a137_0x558e9b(0x100));
@@ -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_0x5c0e5b=a138_0x3328;(function(_0x3fb186,_0x3ee30f){const _0x599e30=a138_0x3328,_0x418f80=_0x3fb186();while(!![]){try{const _0x308c4e=parseInt(_0x599e30(0xde))/0x1+-parseInt(_0x599e30(0xd6))/0x2*(-parseInt(_0x599e30(0xd3))/0x3)+parseInt(_0x599e30(0xdc))/0x4*(-parseInt(_0x599e30(0xda))/0x5)+parseInt(_0x599e30(0xd5))/0x6*(parseInt(_0x599e30(0xd8))/0x7)+-parseInt(_0x599e30(0xd2))/0x8+-parseInt(_0x599e30(0xdb))/0x9*(-parseInt(_0x599e30(0xd9))/0xa)+-parseInt(_0x599e30(0xd4))/0xb;if(_0x308c4e===_0x3ee30f)break;else _0x418f80['push'](_0x418f80['shift']());}catch(_0x523217){_0x418f80['push'](_0x418f80['shift']());}}}(a138_0x4ac9,0xe47cd));export const RABETBASE_ENV_VALUES=[a138_0x5c0e5b(0xdd),'daily'];export function normalizeEnv(_0x3be163){const _0x4578c2=a138_0x5c0e5b;return _0x3be163===_0x4578c2(0xdf)?_0x4578c2(0xdd):_0x3be163;}export function isProduction(_0x1abd3){const _0x48bb45=a138_0x5c0e5b;return normalizeEnv(_0x1abd3)===_0x48bb45(0xdd);}function a138_0x4ac9(){const _0x991208=['5EGhLbz','32814xaJzfe','6356144aVunki','production','1442504luJWQi','online','dev','development','4412216nUrwqN','42yDemzW','3461293pfhKDk','6tJtFGC','86946QBMylC','daily','3790577CrCsmW','2190yrLQmP'];a138_0x4ac9=function(){return _0x991208;};return a138_0x4ac9();}export function isDaily(_0x238e13){const _0x4ea822=a138_0x5c0e5b;return normalizeEnv(_0x238e13)===_0x4ea822(0xd7);}export function isDev(_0x2c6f38){const _0x46ec84=a138_0x5c0e5b,_0xae2d4b=normalizeEnv(_0x2c6f38);return _0xae2d4b===_0x46ec84(0xd1)||_0xae2d4b===_0x46ec84(0xd0);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a138_0x5c0e5b(0xdd));function a138_0x3328(_0x26fdec,_0xb8870b){_0x26fdec=_0x26fdec-0xd0;const _0x4ac98e=a138_0x4ac9();let _0x3328dd=_0x4ac98e[_0x26fdec];return _0x3328dd;}export function getEnv(){return env;}export function initEnv(_0x52bb05){env=normalizeEnv(_0x52bb05);}
@@ -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
+ function a139_0xfb9a(){const _0x267ef3=['5614WPlJXA','1654433TmkwlA','compress','2268bkQFEp','848774YwksSx','4276792MviqTO','1274732kWnXto','12370jQqgug','12mzrQAF','json','27apCeSs','pretty','2612gPlDCG','9bVdFtm','4850110vuABAT'];a139_0xfb9a=function(){return _0x267ef3;};return a139_0xfb9a();}function a139_0x2581(_0xbcc06a,_0x40f536){_0xbcc06a=_0xbcc06a-0x151;const _0xfb9adb=a139_0xfb9a();let _0x2581de=_0xfb9adb[_0xbcc06a];return _0x2581de;}const a139_0x1af4a2=a139_0x2581;(function(_0x30a188,_0x43013d){const _0x5ad721=a139_0x2581,_0x9994c1=_0x30a188();while(!![]){try{const _0x433a30=-parseInt(_0x5ad721(0x153))/0x1+-parseInt(_0x5ad721(0x151))/0x2*(parseInt(_0x5ad721(0x15a))/0x3)+-parseInt(_0x5ad721(0x159))/0x4*(-parseInt(_0x5ad721(0x154))/0x5)+parseInt(_0x5ad721(0x15f))/0x6*(-parseInt(_0x5ad721(0x15c))/0x7)+parseInt(_0x5ad721(0x152))/0x8+parseInt(_0x5ad721(0x157))/0x9*(parseInt(_0x5ad721(0x15b))/0xa)+parseInt(_0x5ad721(0x15d))/0xb*(parseInt(_0x5ad721(0x155))/0xc);if(_0x433a30===_0x43013d)break;else _0x9994c1['push'](_0x9994c1['shift']());}catch(_0x390fb6){_0x9994c1['push'](_0x9994c1['shift']());}}}(a139_0xfb9a,0xdcd3c));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a139_0x1af4a2(0x156),a139_0x1af4a2(0x158),a139_0x1af4a2(0x15e)];
@@ -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_0x1223(_0x48a6f2,_0x58e189){_0x48a6f2=_0x48a6f2-0x87;const _0x157681=a140_0x1576();let _0x12236c=_0x157681[_0x48a6f2];return _0x12236c;}const a140_0x22877b=a140_0x1223;(function(_0x1dd311,_0x497d16){const _0x22ba73=a140_0x1223,_0x22d965=_0x1dd311();while(!![]){try{const _0xc41110=parseInt(_0x22ba73(0x92))/0x1+parseInt(_0x22ba73(0x8d))/0x2+parseInt(_0x22ba73(0x8e))/0x3*(-parseInt(_0x22ba73(0x89))/0x4)+-parseInt(_0x22ba73(0x90))/0x5*(parseInt(_0x22ba73(0x8a))/0x6)+parseInt(_0x22ba73(0x8b))/0x7*(parseInt(_0x22ba73(0x8c))/0x8)+-parseInt(_0x22ba73(0x8f))/0x9+parseInt(_0x22ba73(0x88))/0xa*(-parseInt(_0x22ba73(0x91))/0xb);if(_0xc41110===_0x497d16)break;else _0x22d965['push'](_0x22d965['shift']());}catch(_0x2304b7){_0x22d965['push'](_0x22d965['shift']());}}}(a140_0x1576,0x879d8));function a140_0x1576(){const _0x4988ef=['1969760QdHvpi','420531mgwyIg','7610202pCmGxA','9770nnyyFK','5203wRLCYw','488402esqkQJ','./src/api','6330YmfwEP','24Nwjkgt','54UYwFNa','7600831ngqeMS','8xSuWlY'];a140_0x1576=function(){return _0x4988ef;};return a140_0x1576();}export const DEFAULT_API_DIR=a140_0x22877b(0x87);
@@ -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
+ const a141_0x319ea7=a141_0x4538;(function(_0x5a48d5,_0x382b6c){const _0x80ed6a=a141_0x4538,_0xfe5fc6=_0x5a48d5();while(!![]){try{const _0xec8c54=-parseInt(_0x80ed6a(0x93))/0x1*(-parseInt(_0x80ed6a(0x88))/0x2)+parseInt(_0x80ed6a(0x92))/0x3*(-parseInt(_0x80ed6a(0x95))/0x4)+-parseInt(_0x80ed6a(0x8e))/0x5+parseInt(_0x80ed6a(0x8b))/0x6+parseInt(_0x80ed6a(0x91))/0x7*(-parseInt(_0x80ed6a(0x8f))/0x8)+-parseInt(_0x80ed6a(0x8d))/0x9*(parseInt(_0x80ed6a(0x90))/0xa)+-parseInt(_0x80ed6a(0x89))/0xb;if(_0xec8c54===_0x382b6c)break;else _0xfe5fc6['push'](_0xfe5fc6['shift']());}catch(_0x29329e){_0xfe5fc6['push'](_0xfe5fc6['shift']());}}}(a141_0x43eb,0x455bf));function a141_0x43eb(){const _0x50a788=['27IEbLYW','361725JNpOcA','149432BxgXCx','301540IoFjGT','49WrXeyv','154674GRIxGq','8964pbpYto','read','4CDdGCd','106LQnIww','118580ndwVSA','high-risk-write','989406IYWrpy','write'];a141_0x43eb=function(){return _0x50a788;};return a141_0x43eb();}function a141_0x4538(_0x2ebad5,_0x14ef68){_0x2ebad5=_0x2ebad5-0x88;const _0x43ebbc=a141_0x43eb();let _0x453889=_0x43ebbc[_0x2ebad5];return _0x453889;}export const RISK_LEVEL_VALUES=[a141_0x319ea7(0x94),a141_0x319ea7(0x8c),a141_0x319ea7(0x8a)];