@lovrabet/rabetbase-cli 2.2.0 → 2.2.1-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_0x5a0159=a128_0x2cbc;(function(_0x541e3d,_0x543f84){const _0x3e1442=a128_0x2cbc,_0x48fc03=_0x541e3d();while(!![]){try{const _0x23b555=parseInt(_0x3e1442(0x133))/0x1*(parseInt(_0x3e1442(0x131))/0x2)+parseInt(_0x3e1442(0x125))/0x3*(parseInt(_0x3e1442(0x138))/0x4)+parseInt(_0x3e1442(0x121))/0x5+parseInt(_0x3e1442(0x11f))/0x6*(-parseInt(_0x3e1442(0x122))/0x7)+parseInt(_0x3e1442(0xfd))/0x8*(-parseInt(_0x3e1442(0x12f))/0x9)+-parseInt(_0x3e1442(0x100))/0xa+-parseInt(_0x3e1442(0x132))/0xb*(-parseInt(_0x3e1442(0x10a))/0xc);if(_0x23b555===_0x543f84)break;else _0x48fc03['push'](_0x48fc03['shift']());}catch(_0x517ea9){_0x48fc03['push'](_0x48fc03['shift']());}}}(a128_0x3b26,0xdfae5));import{mkdir,readFile,readdir,rename,rmdir}from'node:fs/promises';import{dirname,join,relative,resolve,sep}from'node:path';import{updateSqlQuery}from'../../core/api-client.js';function a128_0x3b26(){const _0x330e21=['hash','high-risk-write','Force\x20push\x20even\x20if\x20local\x20hash\x20matches\x20lock','toISOString','catch','push','Push\x20complete:\x20','\x20skipped,\x20','bool','startsWith','sqlcode','lockFilePath','sqlConfig','unchanged','sql','1111170puCbsR','projectRoot','1350720tQyKaP','14ZtkPzx','POST','path','54zalKZo','\x20SQL\x20file(s)','sqls','sqlName','mode','\x20failed','lastSync','dbName','filter','remoteId','1063467guXiPc','length','94746aYWcAW','11CmoUTo','1xgHLzI','Local\x20directory\x20\x22','local\x20SQL\x20is\x20not\x20tracked\x20by\x20sql.lock.json;\x20use\x20`rabetbase\x20sql\x20create`\x20or\x20`rabetbase\x20sql\x20pull`\x20first','Push\x20local\x20SQL\x20files\x20to\x20remote','/smartapi/custom/updateUserCustomSql','361740kGslCx','relativePath','str','message','16WUpAvg','Would\x20push\x20','validation','14869640auEhEo','No\x20local\x20SQL\x20files\x20found.','No\x20database\x20matches\x20local\x20directory\x20\x22','Local\x20SQL\x20not\x20found:\x20','sqlRootDir','utf8','exec','sqlRoot','map','appCode','12774360VaueNe','boolean','force','sqlCode','filePath','dbId'];a128_0x3b26=function(){return _0x330e21;};return a128_0x3b26();}import{loadSqlProjectConfig}from'../../core/sql-sync/config.js';import{getDbName,listDatabases}from'../../core/db-resolver.js';import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';import{computeSqlFileHash}from'../../core/sql-sync/hash.js';function a128_0x2cbc(_0x55d1e4,_0x5e6989){_0x55d1e4=_0x55d1e4-0xfc;const _0x3b26d7=a128_0x3b26();let _0x2cbcb1=_0x3b26d7[_0x55d1e4];return _0x2cbcb1;}import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile,writeSqlLockFile}from'../../core/sql-sync/lock.js';import{fileExists}from'../../core/bff/file-system.js';import{CliErrors}from'../../errors.js';import{SQLCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildSqlLockEntry,stripLocalSqlMetadata}from'./shared.js';import{buildDbDirectoryName}from'../../core/sql-sync/utils.js';async function getTargetSqlQueries(_0x4b8099,_0x53eea5,_0x590845){const _0x46f830=a128_0x2cbc,_0x55ac80=await scanLocalSqlQueries(_0x4b8099),_0x333b1b=new Map();for(const _0xd1bce3 of _0x55ac80){if(_0x590845&&_0xd1bce3[_0x46f830(0x10d)]!==_0x590845)continue;const _0x225338=_0x333b1b['get'](_0xd1bce3[_0x46f830(0x10d)])??[];_0x225338[_0x46f830(0x115)](_0xd1bce3),_0x333b1b['set'](_0xd1bce3[_0x46f830(0x10d)],_0x225338);}if(_0x590845&&!_0x333b1b['has'](_0x590845))throw CliErrors[_0x46f830(0xff)](_0x46f830(0x103)+_0x590845);const _0x54771a=[];for(const [_0x1f20f9,_0x5d090d]of _0x333b1b['entries']()){if(_0x5d090d[_0x46f830(0x130)]===0x1){_0x54771a[_0x46f830(0x115)](_0x5d090d[0x0]);continue;}const _0x275533=_0x53eea5[_0x46f830(0x127)][_0x1f20f9],_0x39487f=_0x275533?.[_0x46f830(0x124)],_0x29219f=_0x39487f?_0x5d090d['filter'](_0x4c422a=>_0x4c422a[_0x46f830(0x139)]!==_0x39487f):_0x5d090d;if(_0x275533&&_0x29219f[_0x46f830(0x130)]===0x1){_0x54771a[_0x46f830(0x115)](_0x29219f[0x0]);continue;}throw CliErrors[_0x46f830(0xff)]('Multiple\x20local\x20SQL\x20files\x20found\x20for\x20sqlCode\x20'+_0x1f20f9+'.\x20Keep\x20only\x20one\x20file\x20under\x20its\x20sqlCode\x20directory\x20before\x20pushing.');}return _0x54771a;}export const sqlPush={'service':a128_0x5a0159(0x11e),'command':a128_0x5a0159(0x115),'description':a128_0x5a0159(0x136),'risk':a128_0x5a0159(0x111),'flags':[SQLCODE_FLAG_OPTIONAL,{'name':a128_0x5a0159(0x10c),'type':a128_0x5a0159(0x10b),'description':a128_0x5a0159(0x112)}],async 'dryRun'(_0x294ee3){const _0x315ea0=a128_0x5a0159,_0x557716=loadSqlProjectConfig(_0x294ee3[_0x315ea0(0x109)]),_0x545209=await readSqlLockFile(_0x557716[_0x315ea0(0x11b)]),{appLock:_0x37d6de}=ensureSqlLockScope(_0x545209??createEmptySqlLock(),_0x294ee3[_0x315ea0(0x109)],_0x557716[_0x315ea0(0x107)],'push'),_0x503990=await getTargetSqlQueries(_0x557716,_0x37d6de,_0x294ee3[_0x315ea0(0x13a)](_0x315ea0(0x11a))||undefined),_0x4a5745=[];for(const _0x4294a0 of _0x503990){const _0x50aa5e=await computeSqlFileHash(_0x4294a0['filePath']),_0x291fdd=_0x37d6de[_0x315ea0(0x127)][_0x4294a0['sqlCode']],_0x441652=!!_0x291fdd&&(_0x291fdd[_0x315ea0(0x124)]!==_0x4294a0[_0x315ea0(0x139)]||!!_0x4294a0[_0x315ea0(0x128)]&&_0x291fdd['sqlName']!==_0x4294a0[_0x315ea0(0x128)]);if(!_0x294ee3[_0x315ea0(0x118)](_0x315ea0(0x10c))&&_0x291fdd&&_0x291fdd[_0x315ea0(0x110)]===_0x50aa5e&&!_0x441652)continue;_0x4a5745['push'](_0x4294a0[_0x315ea0(0x10d)]);}return{'method':_0x315ea0(0x123),'url':_0x315ea0(0x137),'body':{'sqlCodes':_0x4a5745,'appCode':_0x294ee3[_0x315ea0(0x109)]},'description':_0x315ea0(0xfe)+_0x4a5745[_0x315ea0(0x130)]+_0x315ea0(0x126)};},async 'execute'(_0x68f184){const _0x46a8dd=a128_0x5a0159,_0x4c14f6=loadSqlProjectConfig(_0x68f184[_0x46a8dd(0x109)]),_0x3c5ac0=await readSqlLockFile(_0x4c14f6[_0x46a8dd(0x11b)]),{lockData:_0x3b17b4,appLock:_0x26d1b2}=ensureSqlLockScope(_0x3c5ac0??createEmptySqlLock(),_0x68f184[_0x46a8dd(0x109)],_0x4c14f6[_0x46a8dd(0x107)],_0x46a8dd(0x115)),_0x4422c3=await getTargetSqlQueries(_0x4c14f6,_0x26d1b2,_0x68f184[_0x46a8dd(0x13a)](_0x46a8dd(0x11a))||undefined);if(_0x4422c3[_0x46a8dd(0x130)]===0x0)return{'ok':!![],'data':{'pushed':[],'skipped':[],'failed':[]},'message':_0x46a8dd(0x101)};const _0x2fd888=[],_0x45803c=[],_0x268713=[];for(const _0x5df578 of _0x4422c3){const _0x89599f=_0x26d1b2[_0x46a8dd(0x127)][_0x5df578['sqlCode']];if(!_0x89599f){_0x268713[_0x46a8dd(0x115)]({'sqlCode':_0x5df578[_0x46a8dd(0x10d)],'error':_0x46a8dd(0x135)});continue;}try{const _0x2b887f=await computeSqlFileHash(_0x5df578[_0x46a8dd(0x10e)]),_0x35c7dc=_0x89599f[_0x46a8dd(0x124)]!==_0x5df578[_0x46a8dd(0x139)]||!!_0x5df578[_0x46a8dd(0x128)]&&_0x89599f[_0x46a8dd(0x128)]!==_0x5df578[_0x46a8dd(0x128)];if(!_0x68f184[_0x46a8dd(0x118)](_0x46a8dd(0x10c))&&_0x89599f[_0x46a8dd(0x110)]===_0x2b887f&&!_0x35c7dc){_0x45803c[_0x46a8dd(0x115)]({'sqlCode':_0x5df578[_0x46a8dd(0x10d)],'reason':_0x46a8dd(0x11d)});continue;}if(_0x89599f['version']==null){_0x268713['push']({'sqlCode':_0x5df578[_0x46a8dd(0x10d)],'error':'missing\x20remote\x20version;\x20run\x20`rabetbase\x20sql\x20pull`\x20to\x20refresh\x20version\x20info\x20first'});continue;}const _0x4c63a4=await readFile(_0x5df578[_0x46a8dd(0x10e)],_0x46a8dd(0x105)),_0x58b5e7=stripLocalSqlMetadata(_0x4c63a4,_0x5df578[_0x46a8dd(0x129)]),_0x403b33=_0x5df578[_0x46a8dd(0x128)]||_0x89599f['sqlName'],_0x134146=await resolveTargetDbBinding(_0x68f184[_0x46a8dd(0x109)],_0x5df578,_0x89599f),_0x7f2332=await updateSqlQuery({'id':_0x89599f[_0x46a8dd(0x12e)],'appCode':_0x68f184['appCode'],'sqlCode':_0x5df578[_0x46a8dd(0x10d)],'sqlName':_0x403b33,'dbId':_0x134146[_0x46a8dd(0x10f)],'version':_0x89599f['version'],'sqlContent':_0x58b5e7,'sqlConfig':_0x89599f[_0x46a8dd(0x11c)]??undefined}),_0x31c358=_0x7f2332['dbId']?await getDbName(_0x68f184[_0x46a8dd(0x109)],Number(_0x7f2332[_0x46a8dd(0x10f)]))[_0x46a8dd(0x114)](()=>_0x134146[_0x46a8dd(0x12c)]):_0x134146['dbName'];_0x26d1b2[_0x46a8dd(0x127)][_0x5df578[_0x46a8dd(0x10d)]]={...buildSqlLockEntry(_0x7f2332,_0x58b5e7,_0x2b887f,{'dbName':_0x31c358}),'path':_0x5df578[_0x46a8dd(0x139)],'mode':_0x89599f[_0x46a8dd(0x129)]},await archivePreviousSqlFileIfNeeded(_0x4c14f6,_0x89599f['path'],_0x5df578['relativePath']),_0x2fd888[_0x46a8dd(0x115)]({'sqlCode':_0x5df578[_0x46a8dd(0x10d)],'remoteId':_0x89599f['remoteId']});}catch(_0x5d79d4){_0x268713['push']({'sqlCode':_0x5df578[_0x46a8dd(0x10d)],'error':_0x5d79d4 instanceof Error?_0x5d79d4[_0x46a8dd(0xfc)]:String(_0x5d79d4)});}}return _0x26d1b2[_0x46a8dd(0x12b)]=new Date()[_0x46a8dd(0x113)](),await writeSqlLockFile(_0x4c14f6[_0x46a8dd(0x11b)],_0x3b17b4),{'ok':_0x268713[_0x46a8dd(0x130)]===0x0,'data':{'pushed':_0x2fd888,'skipped':_0x45803c,'failed':_0x268713},'message':_0x46a8dd(0x116)+_0x2fd888['length']+'\x20pushed,\x20'+_0x45803c['length']+_0x46a8dd(0x117)+_0x268713[_0x46a8dd(0x130)]+_0x46a8dd(0x12a)};}};async function archivePreviousSqlFileIfNeeded(_0x3f4892,_0x1755ff,_0x1ebf49){const _0x481551=a128_0x5a0159;if(!_0x1755ff||_0x1755ff===_0x1ebf49)return;const _0x32801e=join(_0x3f4892['sqlRootDir'],_0x1755ff);if(!await fileExists(_0x32801e))return;const _0x2bd998=await moveToTrash(_0x3f4892[_0x481551(0x120)],_0x3f4892['trashDir'],_0x32801e);await cleanupEmptyDirectories(dirname(_0x32801e),_0x3f4892[_0x481551(0x104)]),void _0x2bd998;}async function moveToTrash(_0x76fab7,_0x18f141,_0x5c00dc){const _0x2b47dc=new Date()['toISOString']()['replace'](/[:.]/g,'-'),_0x37e64f=relative(_0x76fab7,_0x5c00dc),_0x448870=join(_0x18f141,_0x2b47dc,_0x37e64f);return await mkdir(dirname(_0x448870),{'recursive':!![]}),await rename(_0x5c00dc,_0x448870),_0x448870;}async function cleanupEmptyDirectories(_0x59264b,_0x236694){const _0x303dd6=a128_0x5a0159;let _0x4a047f=resolve(_0x59264b);const _0x38862d=resolve(_0x236694);while(_0x4a047f[_0x303dd6(0x119)](''+_0x38862d+sep)||_0x4a047f===_0x38862d){if(_0x4a047f===_0x38862d)return;try{const _0x25f2be=await readdir(_0x4a047f);if(_0x25f2be[_0x303dd6(0x130)]>0x0)return;await rmdir(_0x4a047f);}catch{return;}_0x4a047f=dirname(_0x4a047f);}}async function resolveTargetDbBinding(_0x3ee260,_0x17b1ac,_0xb1c681){const _0x232d12=a128_0x5a0159,_0x3fea3f=_0x17b1ac['dbDirectory'];if(!_0x3fea3f)return{'dbId':_0xb1c681[_0x232d12(0x10f)],'dbName':_0xb1c681[_0x232d12(0x12c)]};const _0x5e664b=buildDbDirectoryName(_0xb1c681['dbName'],_0xb1c681[_0x232d12(0x10f)]);if(_0x3fea3f===_0x5e664b)return{'dbId':_0xb1c681[_0x232d12(0x10f)],'dbName':_0xb1c681[_0x232d12(0x12c)]};const _0xcee13c=parseExplicitDbDirectory(_0x3fea3f);if(_0xcee13c!=null)return{'dbId':_0xcee13c,'dbName':await getDbName(_0x3ee260,_0xcee13c)[_0x232d12(0x114)](()=>undefined)};const _0x467e9c=await listDatabases(_0x3ee260),_0x1c5233=_0x467e9c[_0x232d12(0x12d)](_0x509890=>buildDbDirectoryName(_0x509890['dbName'],_0x509890['dbId'])===_0x3fea3f);if(_0x1c5233[_0x232d12(0x130)]===0x1)return{'dbId':_0x1c5233[0x0][_0x232d12(0x10f)],'dbName':_0x1c5233[0x0]['dbName']};if(_0x1c5233[_0x232d12(0x130)]===0x0)throw CliErrors[_0x232d12(0xff)](_0x232d12(0x102)+_0x3fea3f+'\x22\x20for\x20sqlCode\x20'+_0x17b1ac[_0x232d12(0x10d)]+'.');const _0x5d0959=_0x1c5233[_0x232d12(0x108)](_0x1f27c0=>_0x1f27c0['dbName']+'\x20('+_0x1f27c0[_0x232d12(0x10f)]+')')['join'](',\x20');throw CliErrors[_0x232d12(0xff)](_0x232d12(0x134)+_0x3fea3f+'\x22\x20matches\x20multiple\x20databases\x20for\x20sqlCode\x20'+_0x17b1ac[_0x232d12(0x10d)]+':\x20'+_0x5d0959);}function parseExplicitDbDirectory(_0x530b66){const _0x2b6ca7=a128_0x5a0159,_0x5b8c59=/^db-(\d+)$/[_0x2b6ca7(0x106)](_0x530b66);if(!_0x5b8c59)return null;const _0xcfc91=Number(_0x5b8c59[0x1]);return Number['isFinite'](_0xcfc91)&&_0xcfc91>0x0?_0xcfc91:null;}
1
+ const a128_0x41ced6=a128_0x1ddd;(function(_0x2e3d23,_0x2849fb){const _0x10be5a=a128_0x1ddd,_0xf702d5=_0x2e3d23();while(!![]){try{const _0x3759e2=parseInt(_0x10be5a(0x156))/0x1+parseInt(_0x10be5a(0x13b))/0x2*(-parseInt(_0x10be5a(0x15b))/0x3)+parseInt(_0x10be5a(0x159))/0x4*(-parseInt(_0x10be5a(0x135))/0x5)+-parseInt(_0x10be5a(0x149))/0x6+-parseInt(_0x10be5a(0x151))/0x7+-parseInt(_0x10be5a(0x168))/0x8+parseInt(_0x10be5a(0x162))/0x9*(parseInt(_0x10be5a(0x13c))/0xa);if(_0x3759e2===_0x2849fb)break;else _0xf702d5['push'](_0xf702d5['shift']());}catch(_0x48d8f5){_0xf702d5['push'](_0xf702d5['shift']());}}}(a128_0x18d7,0x63cba));import{mkdir,readFile,readdir,rename,rmdir}from'node:fs/promises';import{dirname,join,relative,resolve,sep}from'node:path';import{updateSqlQuery}from'../../core/api-client.js';import{loadSqlProjectConfig}from'../../core/sql-sync/config.js';import{getDbName,listDatabases}from'../../core/db-resolver.js';import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';import{computeSqlFileHash}from'../../core/sql-sync/hash.js';import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile,writeSqlLockFile}from'../../core/sql-sync/lock.js';import{fileExists}from'../../core/bff/file-system.js';import{CliErrors}from'../../errors.js';import{SQLCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildSqlLockEntry,stripLocalSqlMetadata}from'./shared.js';import{buildDbDirectoryName}from'../../core/sql-sync/utils.js';async function getTargetSqlQueries(_0x1326a9,_0x77bd3d,_0x4e916b){const _0x4fca3c=a128_0x1ddd,_0x3f7a2b=await scanLocalSqlQueries(_0x1326a9),_0x4067dc=new Map();for(const _0x13d6cb of _0x3f7a2b){if(_0x4e916b&&_0x13d6cb['sqlCode']!==_0x4e916b)continue;const _0x33c105=_0x4067dc[_0x4fca3c(0x157)](_0x13d6cb['sqlCode'])??[];_0x33c105[_0x4fca3c(0x13f)](_0x13d6cb),_0x4067dc[_0x4fca3c(0x132)](_0x13d6cb[_0x4fca3c(0x166)],_0x33c105);}if(_0x4e916b&&!_0x4067dc[_0x4fca3c(0x12e)](_0x4e916b))throw CliErrors['validation'](_0x4fca3c(0x13e)+_0x4e916b);const _0x2d9326=[];for(const [_0x1b4848,_0x1efec2]of _0x4067dc['entries']()){if(_0x1efec2[_0x4fca3c(0x147)]===0x1){_0x2d9326[_0x4fca3c(0x13f)](_0x1efec2[0x0]);continue;}const _0x2fbdff=_0x77bd3d[_0x4fca3c(0x14b)][_0x1b4848],_0x55a1b3=_0x2fbdff?.[_0x4fca3c(0x137)],_0x5bcc5b=_0x55a1b3?_0x1efec2['filter'](_0x5a9f69=>_0x5a9f69[_0x4fca3c(0x165)]!==_0x55a1b3):_0x1efec2;if(_0x2fbdff&&_0x5bcc5b[_0x4fca3c(0x147)]===0x1){_0x2d9326[_0x4fca3c(0x13f)](_0x5bcc5b[0x0]);continue;}throw CliErrors[_0x4fca3c(0x14d)]('Multiple\x20local\x20SQL\x20files\x20found\x20for\x20sqlCode\x20'+_0x1b4848+_0x4fca3c(0x163));}return _0x2d9326;}export const sqlPush={'service':a128_0x41ced6(0x141),'command':a128_0x41ced6(0x13f),'description':a128_0x41ced6(0x153),'risk':a128_0x41ced6(0x14e),'flags':[SQLCODE_FLAG_OPTIONAL,{'name':a128_0x41ced6(0x14c),'type':a128_0x41ced6(0x130),'description':'Force\x20push\x20even\x20if\x20local\x20hash\x20matches\x20lock'}],async 'dryRun'(_0x1f7bd1){const _0x58a5df=a128_0x41ced6,_0x1602f4=loadSqlProjectConfig(_0x1f7bd1[_0x58a5df(0x15d)]),_0x1efb7c=await readSqlLockFile(_0x1602f4[_0x58a5df(0x158)]),{appLock:_0x3b71b7}=ensureSqlLockScope(_0x1efb7c??createEmptySqlLock(),_0x1f7bd1['appCode'],_0x1602f4[_0x58a5df(0x15c)],_0x58a5df(0x13f)),_0x5da79b=await getTargetSqlQueries(_0x1602f4,_0x3b71b7,_0x1f7bd1[_0x58a5df(0x134)]('sqlcode')||undefined),_0x644fc7=[];for(const _0x2920a2 of _0x5da79b){const _0x4a4e88=await computeSqlFileHash(_0x2920a2[_0x58a5df(0x154)]),_0x5b0ce5=_0x3b71b7[_0x58a5df(0x14b)][_0x2920a2[_0x58a5df(0x166)]],_0x5de208=!!_0x5b0ce5&&(_0x5b0ce5[_0x58a5df(0x137)]!==_0x2920a2[_0x58a5df(0x165)]||!!_0x2920a2[_0x58a5df(0x140)]&&_0x5b0ce5['sqlName']!==_0x2920a2[_0x58a5df(0x140)]);if(!_0x1f7bd1[_0x58a5df(0x145)](_0x58a5df(0x14c))&&_0x5b0ce5&&_0x5b0ce5[_0x58a5df(0x14a)]===_0x4a4e88&&!_0x5de208)continue;_0x644fc7[_0x58a5df(0x13f)](_0x2920a2[_0x58a5df(0x166)]);}return{'method':_0x58a5df(0x155),'url':'/smartapi/custom/updateUserCustomSql','body':{'sqlCodes':_0x644fc7,'appCode':_0x1f7bd1[_0x58a5df(0x15d)]},'description':_0x58a5df(0x16a)+_0x644fc7[_0x58a5df(0x147)]+'\x20SQL\x20file(s)'};},async 'execute'(_0x25bb8d){const _0x288951=a128_0x41ced6,_0x8fd2be=loadSqlProjectConfig(_0x25bb8d['appCode']),_0x537068=await readSqlLockFile(_0x8fd2be[_0x288951(0x158)]),{lockData:_0x17456c,appLock:_0x5113a7}=ensureSqlLockScope(_0x537068??createEmptySqlLock(),_0x25bb8d['appCode'],_0x8fd2be[_0x288951(0x15c)],'push'),_0x48aa25=await getTargetSqlQueries(_0x8fd2be,_0x5113a7,_0x25bb8d[_0x288951(0x134)](_0x288951(0x160))||undefined);if(_0x48aa25[_0x288951(0x147)]===0x0)return{'ok':!![],'data':{'pushed':[],'skipped':[],'failed':[]},'message':_0x288951(0x16b)};const _0x1c6a9f=[],_0x4891b8=[],_0x318875=[];for(const _0x2082ba of _0x48aa25){const _0x311e3d=_0x5113a7[_0x288951(0x14b)][_0x2082ba[_0x288951(0x166)]];if(!_0x311e3d){_0x318875['push']({'sqlCode':_0x2082ba[_0x288951(0x166)],'error':_0x288951(0x146)});continue;}try{const _0x5c73cd=await computeSqlFileHash(_0x2082ba[_0x288951(0x154)]),_0x2d2b2a=_0x311e3d[_0x288951(0x137)]!==_0x2082ba[_0x288951(0x165)]||!!_0x2082ba[_0x288951(0x140)]&&_0x311e3d[_0x288951(0x140)]!==_0x2082ba['sqlName'];if(!_0x25bb8d[_0x288951(0x145)](_0x288951(0x14c))&&_0x311e3d[_0x288951(0x14a)]===_0x5c73cd&&!_0x2d2b2a){_0x4891b8[_0x288951(0x13f)]({'sqlCode':_0x2082ba['sqlCode'],'reason':'unchanged'});continue;}if(_0x311e3d[_0x288951(0x138)]==null){_0x318875['push']({'sqlCode':_0x2082ba['sqlCode'],'error':_0x288951(0x152)});continue;}const _0x24eb7e=await readFile(_0x2082ba[_0x288951(0x154)],'utf8'),_0x3a2cd7=stripLocalSqlMetadata(_0x24eb7e,_0x2082ba[_0x288951(0x150)]),_0x212fc1=_0x2082ba[_0x288951(0x140)]||_0x311e3d[_0x288951(0x140)],_0x551a52=await resolveTargetDbBinding(_0x25bb8d['appCode'],_0x2082ba,_0x311e3d),_0x456025=await updateSqlQuery({'id':_0x311e3d[_0x288951(0x15e)],'appCode':_0x25bb8d['appCode'],'sqlCode':_0x2082ba[_0x288951(0x166)],'sqlName':_0x212fc1,'dbId':_0x551a52['dbId'],'version':_0x311e3d['version'],'sqlContent':_0x3a2cd7,'sqlConfig':_0x311e3d['sqlConfig']??undefined}),_0x32e3b7=_0x456025[_0x288951(0x13d)]?await getDbName(_0x25bb8d['appCode'],Number(_0x456025[_0x288951(0x13d)]))[_0x288951(0x139)](()=>_0x551a52[_0x288951(0x167)]):_0x551a52[_0x288951(0x167)];_0x5113a7[_0x288951(0x14b)][_0x2082ba[_0x288951(0x166)]]={...buildSqlLockEntry(_0x456025,_0x3a2cd7,_0x5c73cd,{'dbName':_0x32e3b7}),'path':_0x2082ba['relativePath'],'mode':_0x311e3d[_0x288951(0x150)]},await archivePreviousSqlFileIfNeeded(_0x8fd2be,_0x311e3d[_0x288951(0x137)],_0x2082ba[_0x288951(0x165)]),_0x1c6a9f[_0x288951(0x13f)]({'sqlCode':_0x2082ba['sqlCode'],'remoteId':_0x311e3d[_0x288951(0x15e)]});}catch(_0x2c7ee7){_0x318875[_0x288951(0x13f)]({'sqlCode':_0x2082ba['sqlCode'],'error':_0x2c7ee7 instanceof Error?_0x2c7ee7[_0x288951(0x16c)]:String(_0x2c7ee7)});}}return _0x5113a7[_0x288951(0x144)]=new Date()['toISOString'](),await writeSqlLockFile(_0x8fd2be[_0x288951(0x158)],_0x17456c),{'ok':_0x318875[_0x288951(0x147)]===0x0,'data':{'pushed':_0x1c6a9f,'skipped':_0x4891b8,'failed':_0x318875},'message':_0x288951(0x133)+_0x1c6a9f[_0x288951(0x147)]+_0x288951(0x142)+_0x4891b8[_0x288951(0x147)]+_0x288951(0x164)+_0x318875[_0x288951(0x147)]+'\x20failed'};}};async function archivePreviousSqlFileIfNeeded(_0x1a3a3a,_0x4e0ddb,_0x2cd77d){const _0x175f95=a128_0x41ced6;if(!_0x4e0ddb||_0x4e0ddb===_0x2cd77d)return;const _0x2d09f4=join(_0x1a3a3a[_0x175f95(0x12f)],_0x4e0ddb);if(!await fileExists(_0x2d09f4))return;const _0x35c115=await moveToTrash(_0x1a3a3a['projectRoot'],_0x1a3a3a[_0x175f95(0x15f)],_0x2d09f4);await cleanupEmptyDirectories(dirname(_0x2d09f4),_0x1a3a3a[_0x175f95(0x12f)]),void _0x35c115;}function a128_0x1ddd(_0x59d991,_0x6866d8){_0x59d991=_0x59d991-0x12e;const _0x18d790=a128_0x18d7();let _0x1ddd7f=_0x18d790[_0x59d991];return _0x1ddd7f;}async function moveToTrash(_0x403398,_0x4a382f,_0x48bd07){const _0x41f3d7=new Date()['toISOString']()['replace'](/[:.]/g,'-'),_0x1fcd36=relative(_0x403398,_0x48bd07),_0x18b49c=join(_0x4a382f,_0x41f3d7,_0x1fcd36);return await mkdir(dirname(_0x18b49c),{'recursive':!![]}),await rename(_0x48bd07,_0x18b49c),_0x18b49c;}async function cleanupEmptyDirectories(_0xe6ff9a,_0xe52137){let _0x579661=resolve(_0xe6ff9a);const _0x1ea44a=resolve(_0xe52137);while(_0x579661['startsWith'](''+_0x1ea44a+sep)||_0x579661===_0x1ea44a){if(_0x579661===_0x1ea44a)return;try{const _0x4038ab=await readdir(_0x579661);if(_0x4038ab['length']>0x0)return;await rmdir(_0x579661);}catch{return;}_0x579661=dirname(_0x579661);}}async function resolveTargetDbBinding(_0x2d5c6d,_0x16ca58,_0x5eeadf){const _0x2704b9=a128_0x41ced6,_0x36acc5=_0x16ca58[_0x2704b9(0x169)];if(!_0x36acc5)return{'dbId':_0x5eeadf[_0x2704b9(0x13d)],'dbName':_0x5eeadf[_0x2704b9(0x167)]};const _0x3b79ee=buildDbDirectoryName(_0x5eeadf[_0x2704b9(0x167)],_0x5eeadf[_0x2704b9(0x13d)]);if(_0x36acc5===_0x3b79ee)return{'dbId':_0x5eeadf['dbId'],'dbName':_0x5eeadf[_0x2704b9(0x167)]};const _0x6f95fa=parseExplicitDbDirectory(_0x36acc5);if(_0x6f95fa!=null)return{'dbId':_0x6f95fa,'dbName':await getDbName(_0x2d5c6d,_0x6f95fa)['catch'](()=>undefined)};const _0x4db32b=await listDatabases(_0x2d5c6d),_0x23c75e=_0x4db32b[_0x2704b9(0x14f)](_0x3cf6ee=>buildDbDirectoryName(_0x3cf6ee['dbName'],_0x3cf6ee['dbId'])===_0x36acc5);if(_0x23c75e['length']===0x1)return{'dbId':_0x23c75e[0x0]['dbId'],'dbName':_0x23c75e[0x0][_0x2704b9(0x167)]};if(_0x23c75e['length']===0x0)throw CliErrors[_0x2704b9(0x14d)](_0x2704b9(0x15a)+_0x36acc5+_0x2704b9(0x13a)+_0x16ca58[_0x2704b9(0x166)]+'.');const _0x8f51e2=_0x23c75e[_0x2704b9(0x143)](_0x22c6ec=>_0x22c6ec[_0x2704b9(0x167)]+'\x20('+_0x22c6ec[_0x2704b9(0x13d)]+')')[_0x2704b9(0x136)](',\x20');throw CliErrors[_0x2704b9(0x14d)](_0x2704b9(0x161)+_0x36acc5+'\x22\x20matches\x20multiple\x20databases\x20for\x20sqlCode\x20'+_0x16ca58[_0x2704b9(0x166)]+':\x20'+_0x8f51e2);}function parseExplicitDbDirectory(_0xd4426){const _0x5e4a5e=a128_0x41ced6,_0x58c4f2=/^db-(\d+)$/[_0x5e4a5e(0x148)](_0xd4426);if(!_0x58c4f2)return null;const _0x19c41b=Number(_0x58c4f2[0x1]);return Number[_0x5e4a5e(0x131)](_0x19c41b)&&_0x19c41b>0x0?_0x19c41b:null;}function a128_0x18d7(){const _0x2e083b=['Local\x20directory\x20\x22','12051yKBoVV','.\x20Keep\x20only\x20one\x20file\x20under\x20its\x20sqlCode\x20directory\x20before\x20pushing.','\x20skipped,\x20','relativePath','sqlCode','dbName','2890648LZiLbP','dbDirectory','Would\x20push\x20','No\x20local\x20SQL\x20files\x20found.','message','has','sqlRootDir','boolean','isFinite','set','Push\x20complete:\x20','str','2048935niDOol','join','path','version','catch','\x22\x20for\x20sqlCode\x20','8266LRkLMo','21610xdPOQP','dbId','Local\x20SQL\x20not\x20found:\x20','push','sqlName','sql','\x20pushed,\x20','map','lastSync','bool','local\x20SQL\x20is\x20not\x20tracked\x20by\x20sql.lock.json;\x20use\x20`rabetbase\x20sql\x20create`\x20or\x20`rabetbase\x20sql\x20pull`\x20first','length','exec','4188618QlCPAx','hash','sqls','force','validation','high-risk-write','filter','mode','2485378gQgWaz','missing\x20remote\x20version;\x20run\x20`rabetbase\x20sql\x20pull`\x20to\x20refresh\x20version\x20info\x20first','Push\x20local\x20SQL\x20files\x20to\x20remote','filePath','POST','4871ZlqvRr','get','lockFilePath','4iBStku','No\x20database\x20matches\x20local\x20directory\x20\x22','483JSwbkI','sqlRoot','appCode','remoteId','trashDir','sqlcode'];a128_0x18d7=function(){return _0x2e083b;};return a128_0x18d7();}
@@ -1 +1 @@
1
- function a129_0x38d4(){const _0x40b2ff=['Path\x20to\x20the\x20SQL\x20file','sql','validation','Update\x20existing\x20SQL\x20by\x20editing\x20the\x20synced\x20file\x20under\x20`.rabetbase/sql/<appCode>/<dbName|db-<id>>/`\x20and\x20then\x20running\x20`rabetbase\x20sql\x20push\x20--sqlcode\x20<code>\x20--yes`.','string','632889cuEKlw','join','SQL\x20query\x20display\x20name','Target\x20database\x20—\x20accepts\x20a\x20numeric\x20ID\x20or\x20database\x20name\x20(e.g.\x20ecommerce_db)','write','173602eheeGv','save','576546tjEWWR','453200AUBEyY','643588sTkFWD','1vSsITT','1926153VTWINw','8WqFPsA','1693531KJgQMX','Create\x20new\x20SQL\x20with\x20`rabetbase\x20sql\x20create\x20--name\x20<name>\x20--db-id\x20<id>\x20--mode\x20sql|mybatisXml`.','sqlname','file'];a129_0x38d4=function(){return _0x40b2ff;};return a129_0x38d4();}const a129_0x553667=a129_0x1ae9;(function(_0x3b24fd,_0xe7180a){const _0x14e1bd=a129_0x1ae9,_0x961674=_0x3b24fd();while(!![]){try{const _0x51497d=-parseInt(_0x14e1bd(0xf1))/0x1*(parseInt(_0x14e1bd(0xec))/0x2)+-parseInt(_0x14e1bd(0xfd))/0x3+parseInt(_0x14e1bd(0xf0))/0x4+-parseInt(_0x14e1bd(0xef))/0x5+-parseInt(_0x14e1bd(0xee))/0x6+parseInt(_0x14e1bd(0xf4))/0x7+parseInt(_0x14e1bd(0xf3))/0x8*(parseInt(_0x14e1bd(0xf2))/0x9);if(_0x51497d===_0xe7180a)break;else _0x961674['push'](_0x961674['shift']());}catch(_0x37c938){_0x961674['push'](_0x961674['shift']());}}}(a129_0x38d4,0x20500));import{CliErrors}from'../../errors.js';function a129_0x1ae9(_0x4dd38c,_0x12c16b){_0x4dd38c=_0x4dd38c-0xeb;const _0x38d449=a129_0x38d4();let _0x1ae986=_0x38d449[_0x4dd38c];return _0x1ae986;}import{SQLCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const SQL_SAVE_DEPRECATED_HINT=['`rabetbase\x20sql\x20save`\x20has\x20been\x20deprecated.',a129_0x553667(0xf5),a129_0x553667(0xfb)][a129_0x553667(0xfe)]('\x0a');export const sqlSave={'service':a129_0x553667(0xf9),'command':a129_0x553667(0xed),'description':'Deprecated:\x20use\x20sql\x20create\x20to\x20create\x20and\x20sql\x20push\x20to\x20update','risk':a129_0x553667(0xeb),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a129_0x553667(0xf7),'type':a129_0x553667(0xfc),'required':!![],'description':a129_0x553667(0xf8)},SQLCODE_FLAG_OPTIONAL,{'name':a129_0x553667(0xf6),'type':a129_0x553667(0xfc),'description':a129_0x553667(0xff)},{'name':'db','type':a129_0x553667(0xfc),'description':a129_0x553667(0x100)},{'name':'description','type':a129_0x553667(0xfc),'description':'Query\x20description'}],async 'validate'(){const _0xf0a1ce=a129_0x553667;throw CliErrors[_0xf0a1ce(0xfa)](SQL_SAVE_DEPRECATED_HINT);},async 'execute'(){const _0x2986ac=a129_0x553667;throw CliErrors[_0x2986ac(0xfa)](SQL_SAVE_DEPRECATED_HINT);}};
1
+ const a129_0x3397f7=a129_0x995c;function a129_0x5bd2(){const _0x5123ac=['Query\x20description','string','1500738MfWaFE','2625150JsYMVk','write','Target\x20database\x20—\x20accepts\x20a\x20numeric\x20ID\x20or\x20database\x20name\x20(e.g.\x20ecommerce_db)','description','join','160128xXJtST','file','Create\x20new\x20SQL\x20with\x20`rabetbase\x20sql\x20create\x20--name\x20<name>\x20--db-id\x20<id>\x20--mode\x20sql|mybatisXml`.','sqlname','427762qTZumP','`rabetbase\x20sql\x20save`\x20has\x20been\x20deprecated.','sql','127182UFkjMG','5900NQnjWR','save','5053450IjAvBj','SQL\x20query\x20display\x20name','validation','Deprecated:\x20use\x20sql\x20create\x20to\x20create\x20and\x20sql\x20push\x20to\x20update','1923nZLxSY','18qGKysq','42UTwffF'];a129_0x5bd2=function(){return _0x5123ac;};return a129_0x5bd2();}function a129_0x995c(_0x205c06,_0x577b8a){_0x205c06=_0x205c06-0x1d6;const _0x5bd271=a129_0x5bd2();let _0x995c09=_0x5bd271[_0x205c06];return _0x995c09;}(function(_0x3d2328,_0x2ea2ed){const _0x1b52db=a129_0x995c,_0x10ae7a=_0x3d2328();while(!![]){try{const _0x1a5900=parseInt(_0x1b52db(0x1e3))/0x1+parseInt(_0x1b52db(0x1d9))/0x2+parseInt(_0x1b52db(0x1ed))/0x3*(parseInt(_0x1b52db(0x1e7))/0x4)+-parseInt(_0x1b52db(0x1da))/0x5+parseInt(_0x1b52db(0x1e6))/0x6+-parseInt(_0x1b52db(0x1d6))/0x7*(-parseInt(_0x1b52db(0x1df))/0x8)+parseInt(_0x1b52db(0x1ee))/0x9*(-parseInt(_0x1b52db(0x1e9))/0xa);if(_0x1a5900===_0x2ea2ed)break;else _0x10ae7a['push'](_0x10ae7a['shift']());}catch(_0x251f02){_0x10ae7a['push'](_0x10ae7a['shift']());}}}(a129_0x5bd2,0xb205b));import{CliErrors}from'../../errors.js';import{SQLCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const SQL_SAVE_DEPRECATED_HINT=[a129_0x3397f7(0x1e4),a129_0x3397f7(0x1e1),'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_0x3397f7(0x1de)]('\x0a');export const sqlSave={'service':a129_0x3397f7(0x1e5),'command':a129_0x3397f7(0x1e8),'description':a129_0x3397f7(0x1ec),'risk':a129_0x3397f7(0x1db),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a129_0x3397f7(0x1e0),'type':a129_0x3397f7(0x1d8),'required':!![],'description':'Path\x20to\x20the\x20SQL\x20file'},SQLCODE_FLAG_OPTIONAL,{'name':a129_0x3397f7(0x1e2),'type':a129_0x3397f7(0x1d8),'description':a129_0x3397f7(0x1ea)},{'name':'db','type':'string','description':a129_0x3397f7(0x1dc)},{'name':a129_0x3397f7(0x1dd),'type':a129_0x3397f7(0x1d8),'description':a129_0x3397f7(0x1d7)}],async 'validate'(){const _0x6f5497=a129_0x3397f7;throw CliErrors[_0x6f5497(0x1eb)](SQL_SAVE_DEPRECATED_HINT);},async 'execute'(){const _0x272e3f=a129_0x3397f7;throw CliErrors[_0x272e3f(0x1eb)](SQL_SAVE_DEPRECATED_HINT);}};
@@ -1 +1 @@
1
- (function(_0x3cbf2a,_0x582904){const _0x2f9d6b=a130_0x2488,_0x9b2bda=_0x3cbf2a();while(!![]){try{const _0x3b75fa=parseInt(_0x2f9d6b(0x1c9))/0x1+parseInt(_0x2f9d6b(0x1bc))/0x2+parseInt(_0x2f9d6b(0x1c7))/0x3+parseInt(_0x2f9d6b(0x1d0))/0x4+-parseInt(_0x2f9d6b(0x1c6))/0x5*(parseInt(_0x2f9d6b(0x1e2))/0x6)+-parseInt(_0x2f9d6b(0x1dc))/0x7+-parseInt(_0x2f9d6b(0x1e7))/0x8*(parseInt(_0x2f9d6b(0x1c3))/0x9);if(_0x3b75fa===_0x582904)break;else _0x9b2bda['push'](_0x9b2bda['shift']());}catch(_0x4cdbf3){_0x9b2bda['push'](_0x9b2bda['shift']());}}}(a130_0x345c,0xdd095));import{createInterface}from'node:readline';import{join}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath,detectSqlMode}from'../../core/sql-sync/utils.js';export const SQL_LOCAL_REL_DIR='.rabetbase/sql';export function buildSqlLockEntry(_0x5e581b,_0x2e0bd6,_0x389852,_0x3cab16){const _0x3ffadf=a130_0x2488,_0x4a5c96=detectSqlMode(_0x2e0bd6);return{'path':buildSqlRelativePath(_0x5e581b[_0x3ffadf(0x1e3)],_0x5e581b[_0x3ffadf(0x1d7)],_0x3cab16?.['dbName'],_0x4a5c96,_0x5e581b[_0x3ffadf(0x1c4)]),'hash':_0x389852,'remoteId':_0x5e581b['id'],'version':_0x5e581b[_0x3ffadf(0x1d3)],'dbId':Number(_0x5e581b[_0x3ffadf(0x1c4)]),'dbName':_0x3cab16?.['dbName'],'sqlName':_0x5e581b[_0x3ffadf(0x1d7)],'sqlConfig':_0x5e581b[_0x3ffadf(0x1e8)]??undefined,'mode':_0x4a5c96};}export function cloneSqlLockData(_0x31512b){const _0x1b5519=a130_0x2488;return{'apps':Object[_0x1b5519(0x1cb)](Object[_0x1b5519(0x1da)](_0x31512b['apps'])[_0x1b5519(0x1ce)](([_0x37d45e,_0x433ec9])=>[_0x37d45e,{'sqlRoot':_0x433ec9[_0x1b5519(0x1c0)],'lastSync':_0x433ec9[_0x1b5519(0x1c8)],'sqls':{..._0x433ec9[_0x1b5519(0x1cc)]}}]))};}export function ensureRemoteSqlContent(_0x1194e7){const _0x2ef8b5=a130_0x2488;return _0x1194e7[_0x2ef8b5(0x1ea)]??'';}export function buildLocalSqlFileContent(_0x5bb338,_0x3262f5,_0x12748f){const _0x4e4c31=a130_0x2488,_0x16cd99=_0x12748f?.[_0x4e4c31(0x1dd)]??detectSqlMode(_0x3262f5),_0x27e9b0=stripLocalSqlMetadata(_0x3262f5,_0x16cd99)[_0x4e4c31(0x1db)](),_0x26efcd=[...buildMetadataHeaderLines({'sqlCode':_0x5bb338[_0x4e4c31(0x1e3)],'sqlName':_0x5bb338[_0x4e4c31(0x1d7)],'dbId':_0x5bb338['dbId'],'dbName':_0x12748f?.[_0x4e4c31(0x1ca)],'mode':_0x16cd99,'syncedAt':_0x12748f?.[_0x4e4c31(0x1d8)],'description':_0x12748f?.[_0x4e4c31(0x1e0)]},_0x16cd99),'',_0x27e9b0],_0x365fac=_0x26efcd[_0x4e4c31(0x1bf)]('\x0a');return _0x365fac[_0x4e4c31(0x1e5)]('\x0a')?_0x365fac:_0x365fac+'\x0a';}export function stripLocalSqlMetadata(_0x136bf4,_0x8cc324){const _0x3dd603=a130_0x2488,_0x365c69=_0x136bf4[_0x3dd603(0x1c2)](/\r\n/g,'\x0a')[_0x3dd603(0x1d1)]('\x0a'),_0x4a7f76=[];let _0x4bf6e8=0x0;if(_0x8cc324===_0x3dd603(0x1e9))while(_0x4bf6e8<_0x365c69[_0x3dd603(0x1d2)]){const _0x255327=_0x365c69[_0x4bf6e8]??'';if(/^\s*<!--\s*@lovrabet\./[_0x3dd603(0x1d9)](_0x255327)){_0x4bf6e8++;continue;}if(_0x255327[_0x3dd603(0x1db)]()===''&&_0x4bf6e8>0x0){_0x4bf6e8++;continue;}break;}else while(_0x4bf6e8<_0x365c69['length']){const _0x567fd9=_0x365c69[_0x4bf6e8]??'';if(/^\s*--\s*@lovrabet\./[_0x3dd603(0x1d9)](_0x567fd9)){_0x4bf6e8++;continue;}if(_0x567fd9[_0x3dd603(0x1db)]()===''&&_0x4bf6e8>0x0){_0x4bf6e8++;continue;}break;}for(;_0x4bf6e8<_0x365c69['length'];_0x4bf6e8++){_0x4a7f76[_0x3dd603(0x1d6)](_0x365c69[_0x4bf6e8]);}return _0x4a7f76[_0x3dd603(0x1bf)]('\x0a')[_0x3dd603(0x1d4)]();}export function resolveSqlMode(_0x54bdf2,_0x58199a){const _0x34072c=a130_0x2488;if(_0x58199a?.[_0x34072c(0x1dd)])return _0x58199a[_0x34072c(0x1dd)];return detectSqlMode(_0x54bdf2);}export function resolveSqlFileName(_0xffa92e,_0x2c4783,_0x519d97){const _0x2612eb=a130_0x2488;if(_0x519d97?.[_0x2612eb(0x1be)])return _0x519d97[_0x2612eb(0x1be)];if(_0x519d97?.[_0x2612eb(0x1d7)]||_0x519d97?.[_0x2612eb(0x1ca)])return buildSqlRelativePath(_0xffa92e,_0x519d97?.[_0x2612eb(0x1d7)],_0x519d97?.['dbName'],resolveSqlMode(_0x2c4783,_0x519d97),_0x519d97?.[_0x2612eb(0x1c4)]);return buildDefaultSqlFileName(_0xffa92e,resolveSqlMode(_0x2c4783,_0x519d97));}function a130_0x345c(){const _0x578530=['yes','push','sqlName','syncedAt','test','entries','trim','10098991wBMRhm','mode','\x20-->','stderr','description','toLowerCase','6AcdiGc','sqlCode','<!--\x20@lovrabet.','endsWith','filter','7156808oGcKHr','sqlConfig','mybatisXml','sqlContent','2691578ZOciWm','stdin','path','join','sqlRoot','apps','replace','18YxClTn','dbId','close','475315mQNdIN','2489796FAtSMH','lastSync','1341223YCyPbH','dbName','fromEntries','sqls','\x20[y/N]\x20','map','includes','2861596xLEqHi','split','length','version','trimStart'];a130_0x345c=function(){return _0x578530;};return a130_0x345c();}export function resolveSqlLocalDir(_0x192345,_0x5d8fba){return join(_0x192345,SQL_LOCAL_REL_DIR,_0x5d8fba);}export async function confirmForceOverwrite(_0x1d62e5){const _0x1c281c=a130_0x2488,_0x2bd498=createInterface({'input':process[_0x1c281c(0x1bd)],'output':process[_0x1c281c(0x1df)]}),_0x1f4cad=await new Promise(_0x2f3cdb=>{const _0x5c2cd1=_0x1c281c;_0x2bd498['question'](_0x1d62e5+_0x5c2cd1(0x1cd),_0x2f3cdb);});return _0x2bd498[_0x1c281c(0x1c5)](),['y',_0x1c281c(0x1d5)][_0x1c281c(0x1cf)](_0x1f4cad[_0x1c281c(0x1db)]()[_0x1c281c(0x1e1)]());}function a130_0x2488(_0x510550,_0x9e65b){_0x510550=_0x510550-0x1bc;const _0x345c28=a130_0x345c();let _0x2488fe=_0x345c28[_0x510550];return _0x2488fe;}export function findSqlLockScope(_0x4d4b23,_0x3d5415){const _0x3c0b3a=a130_0x2488;return _0x4d4b23[_0x3c0b3a(0x1c1)][_0x3d5415];}function buildMetadataHeaderLines(_0x273e2f,_0x177620){const _0x226082=a130_0x2488,_0xb72681=[[_0x226082(0x1e3),_0x273e2f['sqlCode']],[_0x226082(0x1d7),_0x273e2f['sqlName']],[_0x226082(0x1c4),_0x273e2f[_0x226082(0x1c4)]],[_0x226082(0x1ca),_0x273e2f[_0x226082(0x1ca)]],[_0x226082(0x1dd),_0x273e2f[_0x226082(0x1dd)]],[_0x226082(0x1d8),_0x273e2f[_0x226082(0x1d8)]],['description',_0x273e2f[_0x226082(0x1e0)]]];if(_0x177620===_0x226082(0x1e9))return _0xb72681['filter'](([,_0x54c010])=>_0x54c010!==undefined&&_0x54c010!==null&&String(_0x54c010)[_0x226082(0x1db)]()!=='')['map'](([_0x550690,_0x4a9107])=>_0x226082(0x1e4)+_0x550690+':\x20'+String(_0x4a9107)+_0x226082(0x1de));return _0xb72681[_0x226082(0x1e6)](([,_0xe13f60])=>_0xe13f60!==undefined&&_0xe13f60!==null&&String(_0xe13f60)[_0x226082(0x1db)]()!=='')[_0x226082(0x1ce)](([_0x394447,_0x472a6d])=>'--\x20@lovrabet.'+_0x394447+':\x20'+String(_0x472a6d));}
1
+ function a130_0x4a0c(){const _0x2ec299=['toLowerCase','stderr','4187964VREjAr','<!--\x20@lovrabet.','includes','split','map','stdin','mybatisXml','39630fBzaBK','version','endsWith','push','sqlContent','5646141uaiqVD','.rabetbase/sql','\x20-->','replace','3218310SLVfia','apps','filter','sqls','join','--\x20@lovrabet.','close','8vlrIaN','dbId','sqlRoot','syncedAt','path','trimStart','1637174QxgQyz','\x20[y/N]\x20','question','1640702WTtYvM','lastSync','test','1060624zVYkXV','description','sqlCode','dbName','entries','trim','sqlName','mode','length','204jercjn'];a130_0x4a0c=function(){return _0x2ec299;};return a130_0x4a0c();}const a130_0x19cdaa=a130_0x1425;(function(_0xa7ae74,_0xf5a926){const _0xa8d5ed=a130_0x1425,_0x4e7f01=_0xa7ae74();while(!![]){try{const _0x4cf976=parseInt(_0xa8d5ed(0x124))/0x1+-parseInt(_0xa8d5ed(0x150))/0x2+parseInt(_0xa8d5ed(0x137))/0x3*(parseInt(_0xa8d5ed(0x12d))/0x4)+-parseInt(_0xa8d5ed(0x140))/0x5+parseInt(_0xa8d5ed(0x130))/0x6+parseInt(_0xa8d5ed(0x14d))/0x7*(parseInt(_0xa8d5ed(0x147))/0x8)+-parseInt(_0xa8d5ed(0x13c))/0x9;if(_0x4cf976===_0xf5a926)break;else _0x4e7f01['push'](_0x4e7f01['shift']());}catch(_0x75e8bf){_0x4e7f01['push'](_0x4e7f01['shift']());}}}(a130_0x4a0c,0x8c580));import{createInterface}from'node:readline';function a130_0x1425(_0x20c81e,_0x45562b){_0x20c81e=_0x20c81e-0x122;const _0x4a0ca4=a130_0x4a0c();let _0x1425d3=_0x4a0ca4[_0x20c81e];return _0x1425d3;}import{join}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath,detectSqlMode}from'../../core/sql-sync/utils.js';export const SQL_LOCAL_REL_DIR=a130_0x19cdaa(0x13d);export function buildSqlLockEntry(_0x5a0c7e,_0x56a2b3,_0xacd607,_0x219c4f){const _0x3749c8=a130_0x19cdaa,_0x390936=detectSqlMode(_0x56a2b3);return{'path':buildSqlRelativePath(_0x5a0c7e[_0x3749c8(0x126)],_0x5a0c7e['sqlName'],_0x219c4f?.[_0x3749c8(0x127)],_0x390936,_0x5a0c7e['dbId']),'hash':_0xacd607,'remoteId':_0x5a0c7e['id'],'version':_0x5a0c7e[_0x3749c8(0x138)],'dbId':Number(_0x5a0c7e[_0x3749c8(0x148)]),'dbName':_0x219c4f?.[_0x3749c8(0x127)],'sqlName':_0x5a0c7e[_0x3749c8(0x12a)],'sqlConfig':_0x5a0c7e['sqlConfig']??undefined,'mode':_0x390936};}export function cloneSqlLockData(_0x32afbe){const _0x21c4fc=a130_0x19cdaa;return{'apps':Object['fromEntries'](Object[_0x21c4fc(0x128)](_0x32afbe[_0x21c4fc(0x141)])[_0x21c4fc(0x134)](([_0x3a1083,_0x4c2326])=>[_0x3a1083,{'sqlRoot':_0x4c2326[_0x21c4fc(0x149)],'lastSync':_0x4c2326[_0x21c4fc(0x122)],'sqls':{..._0x4c2326[_0x21c4fc(0x143)]}}]))};}export function ensureRemoteSqlContent(_0x49a74f){const _0x524dca=a130_0x19cdaa;return _0x49a74f[_0x524dca(0x13b)]??'';}export function buildLocalSqlFileContent(_0x2d6249,_0x41129e,_0x5923a8){const _0x2d9228=a130_0x19cdaa,_0x3fedaf=_0x5923a8?.[_0x2d9228(0x12b)]??detectSqlMode(_0x41129e),_0x5dabdf=stripLocalSqlMetadata(_0x41129e,_0x3fedaf)[_0x2d9228(0x129)](),_0x4dff73=[...buildMetadataHeaderLines({'sqlCode':_0x2d6249['sqlCode'],'sqlName':_0x2d6249[_0x2d9228(0x12a)],'dbId':_0x2d6249[_0x2d9228(0x148)],'dbName':_0x5923a8?.[_0x2d9228(0x127)],'mode':_0x3fedaf,'syncedAt':_0x5923a8?.[_0x2d9228(0x14a)],'description':_0x5923a8?.[_0x2d9228(0x125)]},_0x3fedaf),'',_0x5dabdf],_0x5f524c=_0x4dff73[_0x2d9228(0x144)]('\x0a');return _0x5f524c[_0x2d9228(0x139)]('\x0a')?_0x5f524c:_0x5f524c+'\x0a';}export function stripLocalSqlMetadata(_0x35c1c1,_0x330ca3){const _0x486c92=a130_0x19cdaa,_0xde12b8=_0x35c1c1[_0x486c92(0x13f)](/\r\n/g,'\x0a')[_0x486c92(0x133)]('\x0a'),_0x2bb041=[];let _0x1b418f=0x0;if(_0x330ca3==='mybatisXml')while(_0x1b418f<_0xde12b8[_0x486c92(0x12c)]){const _0x261977=_0xde12b8[_0x1b418f]??'';if(/^\s*<!--\s*@lovrabet\./[_0x486c92(0x123)](_0x261977)){_0x1b418f++;continue;}if(_0x261977[_0x486c92(0x129)]()===''&&_0x1b418f>0x0){_0x1b418f++;continue;}break;}else while(_0x1b418f<_0xde12b8[_0x486c92(0x12c)]){const _0xb5c252=_0xde12b8[_0x1b418f]??'';if(/^\s*--\s*@lovrabet\./['test'](_0xb5c252)){_0x1b418f++;continue;}if(_0xb5c252[_0x486c92(0x129)]()===''&&_0x1b418f>0x0){_0x1b418f++;continue;}break;}for(;_0x1b418f<_0xde12b8[_0x486c92(0x12c)];_0x1b418f++){_0x2bb041[_0x486c92(0x13a)](_0xde12b8[_0x1b418f]);}return _0x2bb041[_0x486c92(0x144)]('\x0a')[_0x486c92(0x14c)]();}export function resolveSqlMode(_0x32e61c,_0x3ff400){const _0x591a30=a130_0x19cdaa;if(_0x3ff400?.['mode'])return _0x3ff400[_0x591a30(0x12b)];return detectSqlMode(_0x32e61c);}export function resolveSqlFileName(_0x1874de,_0x1d2205,_0x141507){const _0x3bcece=a130_0x19cdaa;if(_0x141507?.[_0x3bcece(0x14b)])return _0x141507['path'];if(_0x141507?.[_0x3bcece(0x12a)]||_0x141507?.['dbName'])return buildSqlRelativePath(_0x1874de,_0x141507?.['sqlName'],_0x141507?.['dbName'],resolveSqlMode(_0x1d2205,_0x141507),_0x141507?.[_0x3bcece(0x148)]);return buildDefaultSqlFileName(_0x1874de,resolveSqlMode(_0x1d2205,_0x141507));}export function resolveSqlLocalDir(_0x23f22b,_0x79509a){return join(_0x23f22b,SQL_LOCAL_REL_DIR,_0x79509a);}export async function confirmForceOverwrite(_0x16af08){const _0x3e7561=a130_0x19cdaa,_0x55da6c=createInterface({'input':process[_0x3e7561(0x135)],'output':process[_0x3e7561(0x12f)]}),_0x3e6f79=await new Promise(_0x24ee30=>{const _0x4d9e8d=_0x3e7561;_0x55da6c[_0x4d9e8d(0x14f)](_0x16af08+_0x4d9e8d(0x14e),_0x24ee30);});return _0x55da6c[_0x3e7561(0x146)](),['y','yes'][_0x3e7561(0x132)](_0x3e6f79[_0x3e7561(0x129)]()[_0x3e7561(0x12e)]());}export function findSqlLockScope(_0x1904d0,_0x20e9a1){const _0x43033=a130_0x19cdaa;return _0x1904d0[_0x43033(0x141)][_0x20e9a1];}function buildMetadataHeaderLines(_0x257c1e,_0x40ea7b){const _0x1b1ae1=a130_0x19cdaa,_0x313f2b=[['sqlCode',_0x257c1e[_0x1b1ae1(0x126)]],[_0x1b1ae1(0x12a),_0x257c1e[_0x1b1ae1(0x12a)]],[_0x1b1ae1(0x148),_0x257c1e['dbId']],['dbName',_0x257c1e[_0x1b1ae1(0x127)]],[_0x1b1ae1(0x12b),_0x257c1e['mode']],[_0x1b1ae1(0x14a),_0x257c1e[_0x1b1ae1(0x14a)]],[_0x1b1ae1(0x125),_0x257c1e['description']]];if(_0x40ea7b===_0x1b1ae1(0x136))return _0x313f2b[_0x1b1ae1(0x142)](([,_0x1470e1])=>_0x1470e1!==undefined&&_0x1470e1!==null&&String(_0x1470e1)[_0x1b1ae1(0x129)]()!=='')['map'](([_0x4e9798,_0x384a6d])=>_0x1b1ae1(0x131)+_0x4e9798+':\x20'+String(_0x384a6d)+_0x1b1ae1(0x13e));return _0x313f2b[_0x1b1ae1(0x142)](([,_0x1e6a46])=>_0x1e6a46!==undefined&&_0x1e6a46!==null&&String(_0x1e6a46)['trim']()!=='')[_0x1b1ae1(0x134)](([_0x128368,_0x798ab4])=>_0x1b1ae1(0x145)+_0x128368+':\x20'+String(_0x798ab4));}
@@ -1 +1 @@
1
- const a131_0x536331=a131_0x3730;(function(_0x70e4a2,_0x2d29a7){const _0x328845=a131_0x3730,_0x520fa4=_0x70e4a2();while(!![]){try{const _0x154c31=parseInt(_0x328845(0x1f1))/0x1+parseInt(_0x328845(0x1ff))/0x2+parseInt(_0x328845(0x208))/0x3*(parseInt(_0x328845(0x20f))/0x4)+-parseInt(_0x328845(0x1fb))/0x5*(parseInt(_0x328845(0x1f7))/0x6)+parseInt(_0x328845(0x20e))/0x7*(-parseInt(_0x328845(0x20a))/0x8)+parseInt(_0x328845(0x1f9))/0x9+parseInt(_0x328845(0x20c))/0xa*(-parseInt(_0x328845(0x201))/0xb);if(_0x154c31===_0x2d29a7)break;else _0x520fa4['push'](_0x520fa4['shift']());}catch(_0x2a3d3a){_0x520fa4['push'](_0x520fa4['shift']());}}}(a131_0x222d,0x5d8e5));import{listSqlQueries}from'../../core/api-client.js';import{loadSqlProjectConfig}from'../../core/sql-sync/config.js';import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';import{computeSqlFileHash}from'../../core/sql-sync/hash.js';import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile}from'../../core/sql-sync/lock.js';const PAGE_SIZE=0x64;function a131_0x3730(_0x496ae9,_0x55fb67){_0x496ae9=_0x496ae9-0x1ec;const _0x222d57=a131_0x222d();let _0x37300d=_0x222d57[_0x496ae9];return _0x37300d;}async function fetchAllSqlCodes(_0x5f471d){const _0x368b62=a131_0x3730,_0x2c568c=[];let _0x316783=0x1;while(!![]){const _0x47f64f=await listSqlQueries(_0x5f471d,{'currentPage':_0x316783,'pageSize':PAGE_SIZE}),_0x30d061=_0x47f64f[_0x368b62(0x1fd)]??[];_0x2c568c[_0x368b62(0x206)](..._0x30d061[_0x368b62(0x1f5)](_0x3003c7=>_0x3003c7[_0x368b62(0x1f8)]));if(_0x30d061['length']===0x0)break;const _0x5abfe0=_0x47f64f[_0x368b62(0x1fe)]?.[_0x368b62(0x1ec)];if(_0x5abfe0!=null?_0x2c568c[_0x368b62(0x1ee)]>=_0x5abfe0:_0x30d061['length']<PAGE_SIZE)break;_0x316783++;}return _0x2c568c;}function a131_0x222d(){const _0x1c6dd2=['sql','\x20missing,\x20','312733LmJkNS','sqlName','status','bool','map','sqls','6risNat','sqlCode','2091951CILYeX','has','181625LclegN','keys','tableData','paging','859606gNisAk','\x20unchanged','518947gHjfyF','\x20modified,\x20','lockKey','Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally','path','push','appCode','5547vcxPam','read','16FCKOZc','lockFilePath','180qieWKF','\x20added,\x20','453880PPXQJt','916Mysmgv','totalCount','filePath','length'];a131_0x222d=function(){return _0x1c6dd2;};return a131_0x222d();}export const sqlStatus={'service':a131_0x536331(0x1ef),'command':a131_0x536331(0x1f3),'description':'Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','risk':a131_0x536331(0x209),'flags':[{'name':'remote','type':'boolean','description':a131_0x536331(0x204)}],async 'execute'(_0x1936f5){const _0x5645b2=a131_0x536331,_0x575e95=loadSqlProjectConfig(_0x1936f5[_0x5645b2(0x207)]),_0x3b54de=await readSqlLockFile(_0x575e95[_0x5645b2(0x20b)]),{appLock:_0x49e5a7}=ensureSqlLockScope(_0x3b54de??createEmptySqlLock(),_0x575e95[_0x5645b2(0x207)],_0x575e95['sqlRoot'],_0x5645b2(0x1f3)),_0x494d6a=await scanLocalSqlQueries(_0x575e95),_0x3df42f=[],_0x272750=[],_0x2456c9=[],_0x490b53=[],_0x2be1e1=new Set(_0x494d6a[_0x5645b2(0x1f5)](_0x1fd982=>_0x1fd982[_0x5645b2(0x203)]));for(const _0x2e87c3 of _0x494d6a){const _0x54bd56=await computeSqlFileHash(_0x2e87c3[_0x5645b2(0x1ed)]),_0x33cbdc=_0x49e5a7[_0x5645b2(0x1f6)][_0x2e87c3['lockKey']],_0x141b28=!!_0x33cbdc&&_0x33cbdc[_0x5645b2(0x205)]!==_0x2e87c3['relativePath'],_0x5c32e6=!!_0x33cbdc&&!!_0x2e87c3[_0x5645b2(0x1f2)]&&_0x33cbdc[_0x5645b2(0x1f2)]!==_0x2e87c3[_0x5645b2(0x1f2)];if(!_0x33cbdc)_0x3df42f[_0x5645b2(0x206)](_0x2e87c3[_0x5645b2(0x203)]);else _0x33cbdc['hash']!==_0x54bd56||_0x141b28||_0x5c32e6?_0x272750['push'](_0x2e87c3[_0x5645b2(0x203)]):_0x2456c9[_0x5645b2(0x206)](_0x2e87c3[_0x5645b2(0x203)]);}for(const _0x1fc2e9 of Object[_0x5645b2(0x1fc)](_0x49e5a7[_0x5645b2(0x1f6)])){!_0x2be1e1[_0x5645b2(0x1fa)](_0x1fc2e9)&&_0x490b53[_0x5645b2(0x206)](_0x1fc2e9);}const _0xbe845d=[];if(_0x1936f5[_0x5645b2(0x1f4)]('remote')){const _0x330d20=await fetchAllSqlCodes(_0x1936f5[_0x5645b2(0x207)]);for(const _0x4e5502 of _0x330d20){!_0x2be1e1[_0x5645b2(0x1fa)](_0x4e5502)&&!_0x49e5a7[_0x5645b2(0x1f6)][_0x4e5502]&&_0xbe845d[_0x5645b2(0x206)](_0x4e5502);}}const _0xa6ffb7=_0x3df42f[_0x5645b2(0x1ee)]===0x0&&_0x272750['length']===0x0&&_0x490b53[_0x5645b2(0x1ee)]===0x0&&_0xbe845d[_0x5645b2(0x1ee)]===0x0;return{'ok':!![],'data':{'added':_0x3df42f,'modified':_0x272750,'missing':_0x490b53,'unchanged':_0x2456c9,'remoteOnly':_0xbe845d},'message':_0xa6ffb7?'All\x20SQL\x20queries\x20are\x20in\x20sync.':_0x3df42f[_0x5645b2(0x1ee)]+_0x5645b2(0x20d)+_0x272750[_0x5645b2(0x1ee)]+_0x5645b2(0x202)+_0x490b53[_0x5645b2(0x1ee)]+_0x5645b2(0x1f0)+_0x2456c9['length']+_0x5645b2(0x200)+(_0xbe845d[_0x5645b2(0x1ee)]>0x0?',\x20'+_0xbe845d[_0x5645b2(0x1ee)]+'\x20remote-only':'')};}};
1
+ const a131_0x46262e=a131_0x1b95;(function(_0x30d5d4,_0x379fbc){const _0x125932=a131_0x1b95,_0x5e4a9d=_0x30d5d4();while(!![]){try{const _0x2f3b32=parseInt(_0x125932(0x1c2))/0x1*(parseInt(_0x125932(0x1b4))/0x2)+parseInt(_0x125932(0x1b6))/0x3*(parseInt(_0x125932(0x1c8))/0x4)+-parseInt(_0x125932(0x1af))/0x5+parseInt(_0x125932(0x1be))/0x6+parseInt(_0x125932(0x1ad))/0x7+parseInt(_0x125932(0x1b1))/0x8+parseInt(_0x125932(0x1bf))/0x9*(-parseInt(_0x125932(0x1a6))/0xa);if(_0x2f3b32===_0x379fbc)break;else _0x5e4a9d['push'](_0x5e4a9d['shift']());}catch(_0x175566){_0x5e4a9d['push'](_0x5e4a9d['shift']());}}}(a131_0xa58c,0x9724e));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_0xa58c(){const _0x627711=['filePath','240493ZaYyoU','\x20unchanged','\x20remote-only','lockFilePath','Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally','All\x20SQL\x20queries\x20are\x20in\x20sync.','4byqaee','read','has','20NUOsVj','appCode','sqlName','paging','tableData','remote','sqls','6243370HniCAV','hash','5071835zCoqgP','lockKey','1840288mGpsca','status','bool','2ITybYn','Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','484359BnEfcD','length','push','totalCount','sql','path','relativePath','sqlCode','5276394LBywKN','3464271dWGWpB','map'];a131_0xa58c=function(){return _0x627711;};return a131_0xa58c();}import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile}from'../../core/sql-sync/lock.js';function a131_0x1b95(_0x1ee3c7,_0x44f09e){_0x1ee3c7=_0x1ee3c7-0x1a6;const _0xa58cb9=a131_0xa58c();let _0x1b95c7=_0xa58cb9[_0x1ee3c7];return _0x1b95c7;}const PAGE_SIZE=0x64;async function fetchAllSqlCodes(_0x1a89ba){const _0x438f6b=a131_0x1b95,_0x1bc54b=[];let _0x489566=0x1;while(!![]){const _0x5e70fd=await listSqlQueries(_0x1a89ba,{'currentPage':_0x489566,'pageSize':PAGE_SIZE}),_0x1d047a=_0x5e70fd[_0x438f6b(0x1aa)]??[];_0x1bc54b[_0x438f6b(0x1b8)](..._0x1d047a[_0x438f6b(0x1c0)](_0x472ad2=>_0x472ad2[_0x438f6b(0x1bd)]));if(_0x1d047a[_0x438f6b(0x1b7)]===0x0)break;const _0x39fdb2=_0x5e70fd[_0x438f6b(0x1a9)]?.[_0x438f6b(0x1b9)];if(_0x39fdb2!=null?_0x1bc54b[_0x438f6b(0x1b7)]>=_0x39fdb2:_0x1d047a[_0x438f6b(0x1b7)]<PAGE_SIZE)break;_0x489566++;}return _0x1bc54b;}export const sqlStatus={'service':a131_0x46262e(0x1ba),'command':'status','description':a131_0x46262e(0x1b5),'risk':a131_0x46262e(0x1c9),'flags':[{'name':a131_0x46262e(0x1ab),'type':'boolean','description':a131_0x46262e(0x1c6)}],async 'execute'(_0x5b876d){const _0x12131f=a131_0x46262e,_0x515c30=loadSqlProjectConfig(_0x5b876d['appCode']),_0xa0fdfc=await readSqlLockFile(_0x515c30[_0x12131f(0x1c5)]),{appLock:_0x481ae0}=ensureSqlLockScope(_0xa0fdfc??createEmptySqlLock(),_0x515c30[_0x12131f(0x1a7)],_0x515c30['sqlRoot'],_0x12131f(0x1b2)),_0x5e9e46=await scanLocalSqlQueries(_0x515c30),_0x293c00=[],_0x2f71bc=[],_0x61436=[],_0x1d83e8=[],_0x477039=new Set(_0x5e9e46[_0x12131f(0x1c0)](_0x137efa=>_0x137efa['lockKey']));for(const _0x47b07b of _0x5e9e46){const _0x2440ce=await computeSqlFileHash(_0x47b07b[_0x12131f(0x1c1)]),_0x5866ba=_0x481ae0[_0x12131f(0x1ac)][_0x47b07b[_0x12131f(0x1b0)]],_0x2096c6=!!_0x5866ba&&_0x5866ba[_0x12131f(0x1bb)]!==_0x47b07b[_0x12131f(0x1bc)],_0x1f0fe4=!!_0x5866ba&&!!_0x47b07b[_0x12131f(0x1a8)]&&_0x5866ba[_0x12131f(0x1a8)]!==_0x47b07b[_0x12131f(0x1a8)];if(!_0x5866ba)_0x293c00[_0x12131f(0x1b8)](_0x47b07b['lockKey']);else _0x5866ba[_0x12131f(0x1ae)]!==_0x2440ce||_0x2096c6||_0x1f0fe4?_0x2f71bc['push'](_0x47b07b[_0x12131f(0x1b0)]):_0x61436[_0x12131f(0x1b8)](_0x47b07b['lockKey']);}for(const _0xdf7a37 of Object['keys'](_0x481ae0['sqls'])){!_0x477039[_0x12131f(0x1ca)](_0xdf7a37)&&_0x1d83e8[_0x12131f(0x1b8)](_0xdf7a37);}const _0x4ba99d=[];if(_0x5b876d[_0x12131f(0x1b3)](_0x12131f(0x1ab))){const _0x39be8b=await fetchAllSqlCodes(_0x5b876d[_0x12131f(0x1a7)]);for(const _0x5ba95c of _0x39be8b){!_0x477039[_0x12131f(0x1ca)](_0x5ba95c)&&!_0x481ae0['sqls'][_0x5ba95c]&&_0x4ba99d[_0x12131f(0x1b8)](_0x5ba95c);}}const _0x196b10=_0x293c00['length']===0x0&&_0x2f71bc[_0x12131f(0x1b7)]===0x0&&_0x1d83e8[_0x12131f(0x1b7)]===0x0&&_0x4ba99d[_0x12131f(0x1b7)]===0x0;return{'ok':!![],'data':{'added':_0x293c00,'modified':_0x2f71bc,'missing':_0x1d83e8,'unchanged':_0x61436,'remoteOnly':_0x4ba99d},'message':_0x196b10?_0x12131f(0x1c7):_0x293c00[_0x12131f(0x1b7)]+'\x20added,\x20'+_0x2f71bc[_0x12131f(0x1b7)]+'\x20modified,\x20'+_0x1d83e8['length']+'\x20missing,\x20'+_0x61436[_0x12131f(0x1b7)]+_0x12131f(0x1c3)+(_0x4ba99d[_0x12131f(0x1b7)]>0x0?',\x20'+_0x4ba99d['length']+_0x12131f(0x1c4):'')};}};
@@ -1 +1 @@
1
- const a132_0x22ff02=a132_0x4385;function a132_0x4385(_0x277dbc,_0x5203f0){_0x277dbc=_0x277dbc-0x1cf;const _0x32e4fd=a132_0x32e4();let _0x43856f=_0x32e4fd[_0x277dbc];return _0x43856f;}(function(_0x1ae741,_0x321f5b){const _0x50147e=a132_0x4385,_0x132db1=_0x1ae741();while(!![]){try{const _0x5676d2=-parseInt(_0x50147e(0x1dc))/0x1*(-parseInt(_0x50147e(0x203))/0x2)+-parseInt(_0x50147e(0x1f5))/0x3*(parseInt(_0x50147e(0x1ea))/0x4)+-parseInt(_0x50147e(0x1db))/0x5*(-parseInt(_0x50147e(0x1fb))/0x6)+parseInt(_0x50147e(0x1e0))/0x7*(parseInt(_0x50147e(0x1d0))/0x8)+parseInt(_0x50147e(0x204))/0x9*(parseInt(_0x50147e(0x1e7))/0xa)+-parseInt(_0x50147e(0x1fe))/0xb+parseInt(_0x50147e(0x1e6))/0xc*(parseInt(_0x50147e(0x206))/0xd);if(_0x5676d2===_0x321f5b)break;else _0x132db1['push'](_0x132db1['shift']());}catch(_0x5a9bef){_0x132db1['push'](_0x132db1['shift']());}}}(a132_0x32e4,0x19a01));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';function a132_0x32e4(){const _0x47c9c6=['55ucXKHw','153721NnWteB','read','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','file','7gtmDzC','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','Dataset\x20\x22','split','reason','from','84AlssxE','30SHmwRL','fields','string','330224qRoBDv','str','flagMissing','size','schemas','tables','\x22\x20not\x20found\x20or\x20not\x20accessible','filter','isDangerous','map','tableName','6akUDmm','parameters','Provide\x20--file\x20or\x20--sql','get','appCode','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','58650BDEucj','validation','name','2288979CIXByV','utf-8','sql','isArray','trim','2QeyGMj','390573TvlfBB','toLowerCase','30121KudKnL','cwd','sqlType','564048eDTRAE','valid','length','dbtableConfig','validate','message','schema:','Table\x20\x22','isSelectOnly','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','File\x20not\x20found:\x20'];a132_0x32e4=function(){return _0x47c9c6;};return a132_0x32e4();}import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertDatasetSupportsLocalDevelopment,filterDbBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a132_0x22ff02(0x200),'command':a132_0x22ff02(0x1d4),'description':a132_0x22ff02(0x1fa),'risk':a132_0x22ff02(0x1dd),'flags':[{'name':a132_0x22ff02(0x1df),'type':'string','description':a132_0x22ff02(0x1e1)},{'name':a132_0x22ff02(0x200),'type':a132_0x22ff02(0x1e9),'description':a132_0x22ff02(0x1d9)},{'name':'schemas','type':a132_0x22ff02(0x1e9),'description':a132_0x22ff02(0x1de)}],async 'execute'(_0x397f21){const _0x35c7ea=a132_0x22ff02,_0x59ec48=_0x397f21['str']('file'),_0x12d340=_0x397f21[_0x35c7ea(0x1eb)](_0x35c7ea(0x200));if(!_0x59ec48&&!_0x12d340)throw CliErrors[_0x35c7ea(0x1ec)](_0x35c7ea(0x1df),_0x35c7ea(0x1f7));let _0x15dfb7;if(_0x59ec48){const _0x355054=resolve(process[_0x35c7ea(0x207)](),_0x59ec48);if(!existsSync(_0x355054))throw CliErrors[_0x35c7ea(0x1fc)](_0x35c7ea(0x1da)+_0x355054);_0x15dfb7=readFileSync(_0x355054,_0x35c7ea(0x1ff));}else _0x15dfb7=_0x12d340;const _0x28106e=validateSql(_0x15dfb7),_0x4ab0ea={'valid':_0x28106e[_0x35c7ea(0x1d1)],'sqlType':_0x28106e[_0x35c7ea(0x1cf)]['type'],'isSelectOnly':_0x28106e['sqlType'][_0x35c7ea(0x1d8)],'isDangerous':_0x28106e[_0x35c7ea(0x1cf)][_0x35c7ea(0x1f2)],'tables':_0x28106e['tables'],'parameters':_0x28106e[_0x35c7ea(0x1f6)],'message':_0x28106e[_0x35c7ea(0x1d5)]};_0x28106e[_0x35c7ea(0x1cf)]['reason']&&(_0x4ab0ea[_0x35c7ea(0x1e4)]=_0x28106e['sqlType'][_0x35c7ea(0x1e4)]);const _0x558e26=_0x397f21[_0x35c7ea(0x1eb)](_0x35c7ea(0x1ee));if(_0x558e26&&_0x28106e[_0x35c7ea(0x1d1)]){const _0x33cc84=_0x558e26[_0x35c7ea(0x1e3)](',')[_0x35c7ea(0x1f3)](_0x42d46e=>_0x42d46e[_0x35c7ea(0x202)]())[_0x35c7ea(0x1f1)](Boolean),_0x21f235=[],_0x5c6991=filterDbBackedDatasets(await listDatasets(_0x397f21[_0x35c7ea(0x1f9)])),_0x7a4216=new Map(_0x5c6991[_0x35c7ea(0x1f3)](_0x14c96e=>[_0x14c96e[_0x35c7ea(0x1d3)]?.[_0x35c7ea(0x1f4)]?.[_0x35c7ea(0x205)](),_0x14c96e]));for(const _0x1c56fe of _0x28106e[_0x35c7ea(0x1ef)]){const _0x16ba79=_0x7a4216[_0x35c7ea(0x1f8)](_0x1c56fe['toLowerCase']());!_0x16ba79&&_0x21f235['push'](_0x35c7ea(0x1d7)+_0x1c56fe+'\x22\x20not\x20found\x20in\x20any\x20dataset');}for(const _0x3ea00c of _0x33cc84){let _0xbaab4b;try{_0xbaab4b=await getDatasetDetail(_0x3ea00c);}catch{_0x21f235['push'](_0x35c7ea(0x1e2)+_0x3ea00c+_0x35c7ea(0x1f0));continue;}assertDatasetSupportsLocalDevelopment(_0xbaab4b,'SQL\x20schema\x20validation');const _0x4ba8ef=Array[_0x35c7ea(0x201)](_0xbaab4b[_0x35c7ea(0x1e8)])?_0xbaab4b[_0x35c7ea(0x1e8)]:[],_0x3015b9=new Set(_0x4ba8ef[_0x35c7ea(0x1f3)](_0x3879a9=>_0x3879a9[_0x35c7ea(0x1fd)]?.[_0x35c7ea(0x205)]())),_0x4529a2=_0xbaab4b[_0x35c7ea(0x1d3)]?.[_0x35c7ea(0x1f4)]||_0xbaab4b[_0x35c7ea(0x1f4)]||_0x3ea00c;_0x4ab0ea[_0x35c7ea(0x1d6)+_0x4529a2]={'code':_0x3ea00c,'tableName':_0x4529a2,'fieldCount':_0x3015b9[_0x35c7ea(0x1ed)],'fields':Array[_0x35c7ea(0x1e5)](_0x3015b9)};}_0x21f235[_0x35c7ea(0x1d2)]>0x0&&(_0x4ab0ea['schemaWarnings']=_0x21f235);}return{'ok':_0x28106e[_0x35c7ea(0x1d1)],'data':_0x4ab0ea,'message':_0x28106e[_0x35c7ea(0x1d5)]};}};
1
+ const a132_0x21d3d3=a132_0x2503;(function(_0x15a775,_0x59a1fd){const _0x1c5c67=a132_0x2503,_0x1f6d7d=_0x15a775();while(!![]){try{const _0x39b6bb=-parseInt(_0x1c5c67(0x14f))/0x1+-parseInt(_0x1c5c67(0x12c))/0x2+parseInt(_0x1c5c67(0x144))/0x3+-parseInt(_0x1c5c67(0x12a))/0x4*(-parseInt(_0x1c5c67(0x140))/0x5)+-parseInt(_0x1c5c67(0x135))/0x6+parseInt(_0x1c5c67(0x12e))/0x7*(parseInt(_0x1c5c67(0x149))/0x8)+-parseInt(_0x1c5c67(0x136))/0x9;if(_0x39b6bb===_0x59a1fd)break;else _0x1f6d7d['push'](_0x1f6d7d['shift']());}catch(_0x310718){_0x1f6d7d['push'](_0x1f6d7d['shift']());}}}(a132_0x40ad,0x36f5a));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';function a132_0x2503(_0x58a05b,_0x2f0ccf){_0x58a05b=_0x58a05b-0x129;const _0x40ad71=a132_0x40ad();let _0x250366=_0x40ad71[_0x58a05b];return _0x250366;}import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';function a132_0x40ad(){const _0x25de7d=['length','fields','\x22\x20not\x20found\x20in\x20any\x20dataset','appCode','split','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','flagMissing','Dataset\x20\x22','1331732ozbAiL','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','101168GslWag','file','408065IpeQOp','cwd','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','get','\x22\x20not\x20found\x20or\x20not\x20accessible','utf-8','str','42702vqkEnb','2405592xcRSHd','size','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','push','trim','isArray','filter','tableName','map','SQL\x20schema\x20validation','5WJNBxp','read','valid','from','945138PBPeOL','schemaWarnings','tables','toLowerCase','message','8JRAGga','schemas','schema:','string','isSelectOnly','sql','156171cYyTvg','name','dbtableConfig','reason','sqlType'];a132_0x40ad=function(){return _0x25de7d;};return a132_0x40ad();}export const sqlValidate={'service':a132_0x21d3d3(0x14e),'command':'validate','description':a132_0x21d3d3(0x12b),'risk':a132_0x21d3d3(0x141),'flags':[{'name':'file','type':a132_0x21d3d3(0x14c),'description':a132_0x21d3d3(0x130)},{'name':a132_0x21d3d3(0x14e),'type':'string','description':a132_0x21d3d3(0x159)},{'name':a132_0x21d3d3(0x14a),'type':a132_0x21d3d3(0x14c),'description':a132_0x21d3d3(0x138)}],async 'execute'(_0x95c40d){const _0x269935=a132_0x21d3d3,_0x18520b=_0x95c40d[_0x269935(0x134)](_0x269935(0x12d)),_0x40e9e9=_0x95c40d['str'](_0x269935(0x14e));if(!_0x18520b&&!_0x40e9e9)throw CliErrors[_0x269935(0x15a)](_0x269935(0x12d),'Provide\x20--file\x20or\x20--sql');let _0x716451;if(_0x18520b){const _0x4ab8a6=resolve(process[_0x269935(0x12f)](),_0x18520b);if(!existsSync(_0x4ab8a6))throw CliErrors['validation']('File\x20not\x20found:\x20'+_0x4ab8a6);_0x716451=readFileSync(_0x4ab8a6,_0x269935(0x133));}else _0x716451=_0x40e9e9;const _0x200f86=validateSql(_0x716451),_0x1b5ea0={'valid':_0x200f86['valid'],'sqlType':_0x200f86['sqlType']['type'],'isSelectOnly':_0x200f86[_0x269935(0x153)][_0x269935(0x14d)],'isDangerous':_0x200f86[_0x269935(0x153)]['isDangerous'],'tables':_0x200f86[_0x269935(0x146)],'parameters':_0x200f86['parameters'],'message':_0x200f86[_0x269935(0x148)]};_0x200f86[_0x269935(0x153)]['reason']&&(_0x1b5ea0[_0x269935(0x152)]=_0x200f86[_0x269935(0x153)]['reason']);const _0x43caa=_0x95c40d[_0x269935(0x134)](_0x269935(0x14a));if(_0x43caa&&_0x200f86[_0x269935(0x142)]){const _0x46b91d=_0x43caa[_0x269935(0x158)](',')['map'](_0x25d31d=>_0x25d31d[_0x269935(0x13a)]())[_0x269935(0x13c)](Boolean),_0x4c13bb=[],_0x1ed622=filterDbTableBackedDatasets(await listDatasets(_0x95c40d[_0x269935(0x157)])),_0x1302c7=new Map(_0x1ed622[_0x269935(0x13e)](_0x36f13e=>[_0x36f13e['dbtableConfig']?.[_0x269935(0x13d)]?.[_0x269935(0x147)](),_0x36f13e]));for(const _0x2447e0 of _0x200f86[_0x269935(0x146)]){const _0x380ec4=_0x1302c7[_0x269935(0x131)](_0x2447e0[_0x269935(0x147)]());!_0x380ec4&&_0x4c13bb[_0x269935(0x139)]('Table\x20\x22'+_0x2447e0+_0x269935(0x156));}for(const _0x17e12d of _0x46b91d){let _0x523d98;try{_0x523d98=await getDatasetDetail(_0x17e12d);}catch{_0x4c13bb[_0x269935(0x139)](_0x269935(0x129)+_0x17e12d+_0x269935(0x132));continue;}assertDatasetIsDbTableBacked(_0x523d98,_0x269935(0x13f));const _0x43024d=Array[_0x269935(0x13b)](_0x523d98[_0x269935(0x155)])?_0x523d98[_0x269935(0x155)]:[],_0x1fba57=new Set(_0x43024d[_0x269935(0x13e)](_0x4fd7e8=>_0x4fd7e8[_0x269935(0x150)]?.[_0x269935(0x147)]())),_0x316d9b=_0x523d98[_0x269935(0x151)]?.[_0x269935(0x13d)]||_0x523d98[_0x269935(0x13d)]||_0x17e12d;_0x1b5ea0[_0x269935(0x14b)+_0x316d9b]={'code':_0x17e12d,'tableName':_0x316d9b,'fieldCount':_0x1fba57[_0x269935(0x137)],'fields':Array[_0x269935(0x143)](_0x1fba57)};}_0x4c13bb[_0x269935(0x154)]>0x0&&(_0x1b5ea0[_0x269935(0x145)]=_0x4c13bb);}return{'ok':_0x200f86[_0x269935(0x142)],'data':_0x1b5ea0,'message':_0x200f86[_0x269935(0x148)]};}};
@@ -1 +1 @@
1
- const a133_0x29ad21=a133_0x638f;(function(_0x81b619,_0x31e6da){const _0x1ac140=a133_0x638f,_0x33b663=_0x81b619();while(!![]){try{const _0x21cc88=-parseInt(_0x1ac140(0x152))/0x1*(parseInt(_0x1ac140(0x170))/0x2)+-parseInt(_0x1ac140(0x15c))/0x3*(-parseInt(_0x1ac140(0x153))/0x4)+-parseInt(_0x1ac140(0x160))/0x5*(-parseInt(_0x1ac140(0x15a))/0x6)+-parseInt(_0x1ac140(0x162))/0x7+-parseInt(_0x1ac140(0x167))/0x8*(parseInt(_0x1ac140(0x155))/0x9)+parseInt(_0x1ac140(0x161))/0xa+parseInt(_0x1ac140(0x17a))/0xb;if(_0x21cc88===_0x31e6da)break;else _0x33b663['push'](_0x33b663['shift']());}catch(_0x3d6473){_0x33b663['push'](_0x33b663['shift']());}}}(a133_0xa096,0x62457));function a133_0x638f(_0x18a333,_0x3b8e6e){_0x18a333=_0x18a333-0x152;const _0xa0967b=a133_0xa096();let _0x638f9b=_0xa0967b[_0x18a333];return _0x638f9b;}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a133_0x29ad21(0x165),a133_0x29ad21(0x164),a133_0x29ad21(0x16f),'format',a133_0x29ad21(0x163)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a133_0x29ad21(0x178),a133_0x29ad21(0x171),a133_0x29ad21(0x16f),a133_0x29ad21(0x16d),a133_0x29ad21(0x165),a133_0x29ad21(0x164),a133_0x29ad21(0x158)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x593735){const _0x381d6b=a133_0x29ad21;return[..._0x593735][_0x381d6b(0x179)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}function a133_0xa096(){const _0x332be2=['4822594PKyfYY','riskLevel','accessKey','cookie','map','1075128pjJsXD','defaultFormat','Default\x20page\x20size','inherit','filter','Auth\x20cookie','format','app','locale','4jXZpLA','env','has','zh-CN','string','API\x20directory\x20path','trim','en-US','appcode','join','7249209mdpGms','250226wrGFQS','4qNXtIq','entries','27snYSpp','length','apps','apiDir','Locale','60018rEzphW','defaultApp','52719VROQMp','Target\x20environment','Config\x20key\x20(','pageSize','265oWBSqf','7883350XyrGjJ'];a133_0xa096=function(){return _0x332be2;};return a133_0xa096();}export function isTopLevelConfigKey(_0x375356){const _0x368539=a133_0x29ad21;return TOP_LEVEL_CONFIG_KEYS[_0x368539(0x172)](_0x375356);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x195e9f=a133_0x29ad21;return _0x195e9f(0x15e)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a133_0x29ad21(0x171),'apiDir':'apiDir','cookie':a133_0x29ad21(0x165),'accessKey':a133_0x29ad21(0x164),'defaultFormat':a133_0x29ad21(0x16d),'pageSize':'pageSize','riskLevel':a133_0x29ad21(0x163),'locale':a133_0x29ad21(0x16f)};export function getAppProfileFlagDefs(){const _0x45a2f7=a133_0x29ad21;return[{'name':_0x45a2f7(0x171),'type':_0x45a2f7(0x174),'description':_0x45a2f7(0x15d),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x45a2f7(0x158),'type':_0x45a2f7(0x174),'description':_0x45a2f7(0x175)},{'name':_0x45a2f7(0x165),'type':_0x45a2f7(0x174),'description':_0x45a2f7(0x16c),'hidden':!![]},{'name':_0x45a2f7(0x164),'type':_0x45a2f7(0x174),'description':'Access\x20key','hidden':!![]},{'name':_0x45a2f7(0x168),'type':_0x45a2f7(0x174),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':'number','description':_0x45a2f7(0x169)},{'name':_0x45a2f7(0x163),'type':_0x45a2f7(0x174),'description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':_0x45a2f7(0x16f),'type':_0x45a2f7(0x174),'description':_0x45a2f7(0x159)}];}export function collectAppProfileOverrides(_0x14d4c9){const _0x26894f=a133_0x29ad21,_0x29d681={};for(const [_0x3a0915,_0x5a9b27]of Object[_0x26894f(0x154)](APP_PROFILE_FLAG_KEY_MAP)){const _0x534800=_0x14d4c9(_0x3a0915);if(!_0x534800)continue;_0x29d681[_0x5a9b27]=_0x5a9b27===_0x26894f(0x15f)?Number(_0x534800):_0x534800;}return _0x29d681;}export function buildAppProfileListFields(_0x2471ba){const _0x580057=a133_0x29ad21;return{'env':_0x2471ba[_0x580057(0x171)]??null,'apiDir':_0x2471ba[_0x580057(0x158)]??null,'hasCookie':!!_0x2471ba[_0x580057(0x165)],'hasAccessKey':!!_0x2471ba[_0x580057(0x164)],'format':_0x2471ba[_0x580057(0x16d)]??null,'pageSize':_0x2471ba[_0x580057(0x15f)]??null,'riskLevel':_0x2471ba[_0x580057(0x163)]??null,'locale':_0x2471ba[_0x580057(0x16f)]??null};}export function buildAppDoctorFields(_0x1e377f,_0x5331f4){const _0x15b3f2=a133_0x29ad21;return{'env':{'value':_0x1e377f[_0x15b3f2(0x171)]||_0x5331f4[_0x15b3f2(0x171)],'source':_0x1e377f[_0x15b3f2(0x171)]?_0x15b3f2(0x16e):_0x15b3f2(0x16a)},'apiDir':{'value':_0x1e377f[_0x15b3f2(0x158)]||_0x5331f4[_0x15b3f2(0x158)],'source':_0x1e377f[_0x15b3f2(0x158)]?_0x15b3f2(0x16e):'inherit'},'cookie':{'value':_0x1e377f[_0x15b3f2(0x165)]||_0x5331f4['cookie'],'source':_0x1e377f[_0x15b3f2(0x165)]?_0x15b3f2(0x16e):_0x15b3f2(0x16a)},'accessKey':{'value':_0x1e377f[_0x15b3f2(0x164)]||_0x5331f4[_0x15b3f2(0x164)],'source':_0x1e377f[_0x15b3f2(0x164)]?_0x15b3f2(0x16e):_0x15b3f2(0x16a)}};}export function buildCanonicalAppConfig(_0x37abca,_0x18f4a7){const _0x4e8d19=a133_0x29ad21,_0x4f9001=_0x37abca[_0x4e8d19(0x166)](_0x100ee1=>String(_0x100ee1||'')[_0x4e8d19(0x176)]())[_0x4e8d19(0x16b)](Boolean);if(_0x4f9001[_0x4e8d19(0x156)]===0x0)return{};const _0x1a24a9={};for(const _0x2a10a2 of _0x4f9001){_0x1a24a9[_0x2a10a2]=_0x18f4a7?{'appcode':_0x2a10a2,'env':_0x18f4a7}:{'appcode':_0x2a10a2};}return{'apps':_0x1a24a9,'defaultApp':_0x4f9001[0x0]};}export function buildCanonicalProjectConfig(_0x370fc7,_0x21aa1e){const _0x56009b=a133_0x29ad21,{appCodes:appCodes=[],env:_0x1f2ff4,metadata:_0x3a5ae9}=_0x21aa1e,_0x173134={..._0x370fc7,..._0x3a5ae9||{}};delete _0x173134['appcode'],delete _0x173134[_0x56009b(0x16e)];if(_0x1f2ff4)_0x173134[_0x56009b(0x171)]=_0x1f2ff4;else!_0x173134[_0x56009b(0x171)]&&(_0x173134[_0x56009b(0x171)]=DEFAULT_CONFIG_VALUES[_0x56009b(0x171)]);const _0x86785c=buildCanonicalAppConfig(appCodes,_0x173134[_0x56009b(0x171)]);return Object['keys'](_0x86785c)[_0x56009b(0x156)]>0x0&&(_0x173134[_0x56009b(0x157)]=_0x86785c[_0x56009b(0x157)],_0x173134['defaultApp']=_0x86785c[_0x56009b(0x15b)]),_0x173134;}const LOCALE_MAP={'zh':a133_0x29ad21(0x173),'zh-cn':'zh-CN','zh_cn':a133_0x29ad21(0x173),'en':a133_0x29ad21(0x177),'en-us':a133_0x29ad21(0x177),'en_us':a133_0x29ad21(0x177)};export function normalizeLocale(_0x21f092){if(!_0x21f092)return null;return LOCALE_MAP[_0x21f092['toLowerCase']()]??null;}
1
+ const a133_0x24571f=a133_0xf37d;(function(_0x1062d5,_0x5c4248){const _0x230eb6=a133_0xf37d,_0xe4d75d=_0x1062d5();while(!![]){try{const _0x8ccd5e=parseInt(_0x230eb6(0x12a))/0x1+-parseInt(_0x230eb6(0x139))/0x2+-parseInt(_0x230eb6(0x13e))/0x3+parseInt(_0x230eb6(0x122))/0x4+parseInt(_0x230eb6(0x141))/0x5+parseInt(_0x230eb6(0x12d))/0x6*(parseInt(_0x230eb6(0x120))/0x7)+-parseInt(_0x230eb6(0x143))/0x8*(-parseInt(_0x230eb6(0x12f))/0x9);if(_0x8ccd5e===_0x5c4248)break;else _0xe4d75d['push'](_0xe4d75d['shift']());}catch(_0x241f03){_0xe4d75d['push'](_0xe4d75d['shift']());}}}(a133_0x56bf,0x8ffaa));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_0x24571f(0x133),a133_0x24571f(0x13b),a133_0x24571f(0x129),'format',a133_0x24571f(0x126)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a133_0x24571f(0x12c),a133_0x24571f(0x130),a133_0x24571f(0x129),a133_0x24571f(0x132),a133_0x24571f(0x133),a133_0x24571f(0x13b),a133_0x24571f(0x13c)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x2e3a30){return[..._0x2e3a30]['join'](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x3af8c7){const _0x4f9ab7=a133_0x24571f;return TOP_LEVEL_CONFIG_KEYS[_0x4f9ab7(0x138)](_0x3af8c7);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x5e9a69=a133_0x24571f;return _0x5e9a69(0x124)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a133_0x24571f(0x130),'apiDir':'apiDir','cookie':a133_0x24571f(0x133),'accessKey':a133_0x24571f(0x13b),'defaultFormat':'format','pageSize':'pageSize','riskLevel':'riskLevel','locale':a133_0x24571f(0x129)};export function getAppProfileFlagDefs(){const _0x1010d8=a133_0x24571f;return[{'name':_0x1010d8(0x130),'type':_0x1010d8(0x136),'description':_0x1010d8(0x11e),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x1010d8(0x13c),'type':'string','description':_0x1010d8(0x131)},{'name':_0x1010d8(0x133),'type':_0x1010d8(0x136),'description':'Auth\x20cookie','hidden':!![]},{'name':'accessKey','type':_0x1010d8(0x136),'description':_0x1010d8(0x142),'hidden':!![]},{'name':_0x1010d8(0x125),'type':_0x1010d8(0x136),'description':_0x1010d8(0x123),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x1010d8(0x137),'type':_0x1010d8(0x128),'description':'Default\x20page\x20size'},{'name':_0x1010d8(0x126),'type':_0x1010d8(0x136),'description':_0x1010d8(0x11c),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x1010d8(0x129),'type':_0x1010d8(0x136),'description':_0x1010d8(0x11d)}];}export function collectAppProfileOverrides(_0x421231){const _0x5073be=a133_0x24571f,_0x2a981e={};for(const [_0x54e5e2,_0x9b9ced]of Object[_0x5073be(0x134)](APP_PROFILE_FLAG_KEY_MAP)){const _0x18376a=_0x421231(_0x54e5e2);if(!_0x18376a)continue;_0x2a981e[_0x9b9ced]=_0x9b9ced===_0x5073be(0x137)?Number(_0x18376a):_0x18376a;}return _0x2a981e;}function a133_0xf37d(_0x504920,_0x3ad693){_0x504920=_0x504920-0x11c;const _0x56bf89=a133_0x56bf();let _0xf37dac=_0x56bf89[_0x504920];return _0xf37dac;}export function buildAppProfileListFields(_0x5967cd){const _0x549b59=a133_0x24571f;return{'env':_0x5967cd['env']??null,'apiDir':_0x5967cd[_0x549b59(0x13c)]??null,'hasCookie':!!_0x5967cd[_0x549b59(0x133)],'hasAccessKey':!!_0x5967cd[_0x549b59(0x13b)],'format':_0x5967cd[_0x549b59(0x132)]??null,'pageSize':_0x5967cd['pageSize']??null,'riskLevel':_0x5967cd[_0x549b59(0x126)]??null,'locale':_0x5967cd[_0x549b59(0x129)]??null};}export function buildAppDoctorFields(_0x4369d6,_0x269a44){const _0x21f98a=a133_0x24571f;return{'env':{'value':_0x4369d6['env']||_0x269a44['env'],'source':_0x4369d6[_0x21f98a(0x130)]?_0x21f98a(0x127):_0x21f98a(0x13a)},'apiDir':{'value':_0x4369d6[_0x21f98a(0x13c)]||_0x269a44['apiDir'],'source':_0x4369d6[_0x21f98a(0x13c)]?_0x21f98a(0x127):_0x21f98a(0x13a)},'cookie':{'value':_0x4369d6[_0x21f98a(0x133)]||_0x269a44[_0x21f98a(0x133)],'source':_0x4369d6['cookie']?_0x21f98a(0x127):'inherit'},'accessKey':{'value':_0x4369d6['accessKey']||_0x269a44[_0x21f98a(0x13b)],'source':_0x4369d6['accessKey']?_0x21f98a(0x127):_0x21f98a(0x13a)}};}export function buildCanonicalAppConfig(_0x4b16d,_0x166e80){const _0x3bd4a6=a133_0x24571f,_0x2ea58c=_0x4b16d[_0x3bd4a6(0x12b)](_0x2a4957=>String(_0x2a4957||'')[_0x3bd4a6(0x11f)]())[_0x3bd4a6(0x13f)](Boolean);if(_0x2ea58c[_0x3bd4a6(0x13d)]===0x0)return{};const _0xab2466={};for(const _0x4e03c5 of _0x2ea58c){_0xab2466[_0x4e03c5]=_0x166e80?{'appcode':_0x4e03c5,'env':_0x166e80}:{'appcode':_0x4e03c5};}return{'apps':_0xab2466,'defaultApp':_0x2ea58c[0x0]};}export function buildCanonicalProjectConfig(_0x6a595e,_0xe39997){const _0x27e5cb=a133_0x24571f,{appCodes:appCodes=[],env:_0x4dec50,metadata:_0x2b9527}=_0xe39997,_0x444043={..._0x6a595e,..._0x2b9527||{}};delete _0x444043[_0x27e5cb(0x12c)],delete _0x444043[_0x27e5cb(0x127)];if(_0x4dec50)_0x444043['env']=_0x4dec50;else!_0x444043[_0x27e5cb(0x130)]&&(_0x444043[_0x27e5cb(0x130)]=DEFAULT_CONFIG_VALUES[_0x27e5cb(0x130)]);const _0x27e0df=buildCanonicalAppConfig(appCodes,_0x444043[_0x27e5cb(0x130)]);return Object[_0x27e5cb(0x140)](_0x27e0df)[_0x27e5cb(0x13d)]>0x0&&(_0x444043[_0x27e5cb(0x12e)]=_0x27e0df[_0x27e5cb(0x12e)],_0x444043['defaultApp']=_0x27e0df[_0x27e5cb(0x121)]),_0x444043;}const LOCALE_MAP={'zh':'zh-CN','zh-cn':'zh-CN','zh_cn':'zh-CN','en':a133_0x24571f(0x135),'en-us':a133_0x24571f(0x135),'en_us':a133_0x24571f(0x135)};export function normalizeLocale(_0xf7f6e1){if(!_0xf7f6e1)return null;return LOCALE_MAP[_0xf7f6e1['toLowerCase']()]??null;}function a133_0x56bf(){const _0x4390f4=['defaultFormat','riskLevel','app','number','locale','433616lYvFyA','map','appcode','2688yrPpAO','apps','545985yliifQ','env','API\x20directory\x20path','format','cookie','entries','en-US','string','pageSize','has','1640638PokwJg','inherit','accessKey','apiDir','length','3284916saMiUh','filter','keys','2287965glKJkc','Access\x20key','136QoIBWI','Risk\x20level','Locale','Target\x20environment','trim','5488zzutrQ','defaultApp','925132iIWKUv','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','Config\x20key\x20('];a133_0x56bf=function(){return _0x4390f4;};return a133_0x56bf();}
@@ -1 +1 @@
1
- function a134_0x3e43(_0x2b91d9,_0x183ea9){_0x2b91d9=_0x2b91d9-0x179;const _0x127f05=a134_0x127f();let _0x3e43bd=_0x127f05[_0x2b91d9];return _0x3e43bd;}const a134_0x15e043=a134_0x3e43;(function(_0x4311dd,_0x2c4e59){const _0x49a2ef=a134_0x3e43,_0x39597e=_0x4311dd();while(!![]){try{const _0x4d4af5=parseInt(_0x49a2ef(0x181))/0x1+parseInt(_0x49a2ef(0x182))/0x2*(-parseInt(_0x49a2ef(0x183))/0x3)+parseInt(_0x49a2ef(0x17b))/0x4*(parseInt(_0x49a2ef(0x17d))/0x5)+parseInt(_0x49a2ef(0x17e))/0x6+parseInt(_0x49a2ef(0x17c))/0x7*(parseInt(_0x49a2ef(0x17a))/0x8)+parseInt(_0x49a2ef(0x180))/0x9+-parseInt(_0x49a2ef(0x184))/0xa*(parseInt(_0x49a2ef(0x179))/0xb);if(_0x4d4af5===_0x2c4e59)break;else _0x39597e['push'](_0x39597e['shift']());}catch(_0x496634){_0x39597e['push'](_0x39597e['shift']());}}}(a134_0x127f,0xd0d99));function a134_0x127f(){const _0x3215ba=['8111832emxitX','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','7674894tcSHXQ','800431UcQfRL','1454iJKcTE','7023wGAAib','4610eeKRde','53031kpJVtu','280RYxswC','396nHMeMN','248073fEQymx','26985NMunjY'];a134_0x127f=function(){return _0x3215ba;};return a134_0x127f();}export const CLI_VERSION_POLICY_URL=a134_0x15e043(0x17f);
1
+ function a134_0xe029(_0x552ff9,_0x6c2628){_0x552ff9=_0x552ff9-0x1c9;const _0x199fb8=a134_0x199f();let _0xe029ed=_0x199fb8[_0x552ff9];return _0xe029ed;}function a134_0x199f(){const _0x19ec51=['7117166zYtRNJ','3001976acPlfd','683473LOgjzw','63QCWAeN','3vOGJRA','6917844yngJrY','292172yIFTZD','2697788mqfizn','5826650QjYbwF'];a134_0x199f=function(){return _0x19ec51;};return a134_0x199f();}(function(_0xb254e2,_0x3baff7){const _0x37272f=a134_0xe029,_0x23a3ab=_0xb254e2();while(!![]){try{const _0x3a7a37=parseInt(_0x37272f(0x1cc))/0x1+parseInt(_0x37272f(0x1d1))/0x2*(parseInt(_0x37272f(0x1ce))/0x3)+parseInt(_0x37272f(0x1d0))/0x4+parseInt(_0x37272f(0x1c9))/0x5+parseInt(_0x37272f(0x1cf))/0x6+-parseInt(_0x37272f(0x1ca))/0x7+-parseInt(_0x37272f(0x1cb))/0x8*(parseInt(_0x37272f(0x1cd))/0x9);if(_0x3a7a37===_0x3baff7)break;else _0x23a3ab['push'](_0x23a3ab['shift']());}catch(_0x134ed5){_0x23a3ab['push'](_0x23a3ab['shift']());}}}(a134_0x199f,0xbe7d7));export const CLI_VERSION_POLICY_URL='https://g.lovrabet.com/dist/rabetbase-cli/config/index.json';
@@ -1 +1 @@
1
- const a135_0x34532b=a135_0x5e56;(function(_0x299f33,_0x496cc7){const _0x30e833=a135_0x5e56,_0x5a8504=_0x299f33();while(!![]){try{const _0xaa4d1b=-parseInt(_0x30e833(0x117))/0x1+-parseInt(_0x30e833(0xbc))/0x2+-parseInt(_0x30e833(0xd1))/0x3+-parseInt(_0x30e833(0xd3))/0x4*(parseInt(_0x30e833(0xef))/0x5)+-parseInt(_0x30e833(0xf4))/0x6*(-parseInt(_0x30e833(0xed))/0x7)+parseInt(_0x30e833(0xdc))/0x8+parseInt(_0x30e833(0xd6))/0x9;if(_0xaa4d1b===_0x496cc7)break;else _0x5a8504['push'](_0x5a8504['shift']());}catch(_0x1ef98c){_0x5a8504['push'](_0x5a8504['shift']());}}}(a135_0x2a3a,0x5fe82));function a135_0x2a3a(){const _0xac3e71=['Preview\x20operation\x20without\x20executing','clear','remote','sql-name','enableBffSave','page','dbid','Page\x20number','operation-type','verbose','value','string','yes','Verbose\x20output','File\x20path','SQL\x20string','force','1905867nTdLEr','keyword','18700asPIJF','sql','Use\x20global\x20config\x20scope','11156265SMWDaP','Record\x20ID','Skip\x20confirmation\x20for\x20high-risk\x20writes','type','name','meowKey','1018192iaKfrN','json\x20|\x20pretty\x20|\x20compress','code','descriptionFile','Watch\x20mode','<expr>','all','format','expected-count','dbId','sqlname','production\x20|\x20daily','non-interactive','<name>','Type\x20filter','<code>','pagesize','113113wyDIkx','nonInteractive','5mwzQhJ','Output\x20format','Config\x20key','Clear','expectedCount','126mJbhoU','enable-bff-save','JSON\x20params','project','skip-imports','title','params','functionNode','app','Select\x20app\x20profile\x20by\x20name','datasetcode','DB\x20ID','Rabetbase\x20CLI','Show\x20help','Target\x20path','Environment','operation','Keyword\x20filter','watch','Config\x20value','map','Name','dry-run','boolean','confirm','Confirm\x20destructive\x20action','function-node','appcode','schemas','Schemas','Force\x20non-interactive\x20mode\x20(CI)','Override\x20appcode','Description','file','dryRun','190479imouVJ','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Skip\x20import\x20generation','Operation\x20type','sqlcode','target','help','Page\x20size','SQL\x20code','fromEntries','output','Use\x20project\x20config\x20scope','skipImports','965842WmVMTB','description','Enable\x20BFF\x20save','operationType'];a135_0x2a3a=function(){return _0xac3e71;};return a135_0x2a3a();}function a135_0x5e56(_0x61a4f2,_0x34ee30){_0x61a4f2=_0x61a4f2-0xb9;const _0x2a3a83=a135_0x2a3a();let _0x5e5608=_0x2a3a83[_0x61a4f2];return _0x5e5608;}export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME=a135_0x34532b(0x100);export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':a135_0x34532b(0x10f),'meowKey':a135_0x34532b(0x10f),'type':'string','description':a135_0x34532b(0x113),'hint':a135_0x34532b(0xeb)},{'name':a135_0x34532b(0xfc),'meowKey':'app','type':a135_0x34532b(0xcb),'description':a135_0x34532b(0xfd),'hint':a135_0x34532b(0xe9)},{'name':'env','meowKey':'env','type':'string','description':a135_0x34532b(0x103),'hint':a135_0x34532b(0xe7)},{'name':a135_0x34532b(0xe3),'meowKey':a135_0x34532b(0xe3),'type':a135_0x34532b(0xcb),'description':a135_0x34532b(0xf0),'hint':a135_0x34532b(0xdd)},{'name':'jq','meowKey':'jq','type':a135_0x34532b(0xcb),'description':a135_0x34532b(0x118),'hint':a135_0x34532b(0xe1)},{'name':a135_0x34532b(0x10a),'meowKey':a135_0x34532b(0x116),'type':a135_0x34532b(0x10b),'description':a135_0x34532b(0xc0)},{'name':a135_0x34532b(0xcc),'meowKey':a135_0x34532b(0xcc),'type':a135_0x34532b(0x10b),'description':a135_0x34532b(0xd8)},{'name':a135_0x34532b(0xe8),'meowKey':a135_0x34532b(0xee),'type':a135_0x34532b(0x10b),'description':a135_0x34532b(0x112)},{'name':'global','meowKey':'global','type':a135_0x34532b(0x10b),'description':a135_0x34532b(0xd5)},{'name':a135_0x34532b(0xf7),'meowKey':a135_0x34532b(0xf7),'type':a135_0x34532b(0x10b),'description':a135_0x34532b(0xba)},{'name':'ci','meowKey':'ci','type':a135_0x34532b(0x10b),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a135_0x34532b(0x11d),'meowKey':a135_0x34532b(0x11d),'type':a135_0x34532b(0x10b),'description':a135_0x34532b(0x101)},{'name':a135_0x34532b(0xda),'meowKey':a135_0x34532b(0xda),'type':a135_0x34532b(0xcb),'description':a135_0x34532b(0x109),'hidden':!![]},{'name':a135_0x34532b(0xf9),'meowKey':a135_0x34532b(0xf9),'type':'string','description':'Title','hidden':!![]},{'name':'clear','meowKey':a135_0x34532b(0xc1),'type':a135_0x34532b(0x10b),'description':a135_0x34532b(0xf2),'hidden':!![]},{'name':a135_0x34532b(0x106),'meowKey':a135_0x34532b(0x106),'type':a135_0x34532b(0x10b),'description':a135_0x34532b(0xe0),'hidden':!![]},{'name':a135_0x34532b(0xb9),'meowKey':'output','type':'string','description':'Output\x20path','hidden':!![]},{'name':a135_0x34532b(0xfa),'meowKey':'params','type':a135_0x34532b(0xcb),'description':a135_0x34532b(0xf6),'hidden':!![]},{'name':a135_0x34532b(0xfe),'meowKey':a135_0x34532b(0xfe),'type':'string','description':'Dataset\x20code','hidden':!![]},{'name':a135_0x34532b(0xe2),'meowKey':'all','type':a135_0x34532b(0x10b),'description':'Apply\x20to\x20all','hidden':!![]},{'name':a135_0x34532b(0xf5),'meowKey':a135_0x34532b(0xc4),'type':'boolean','description':a135_0x34532b(0xbe),'hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':a135_0x34532b(0xd7),'hidden':!![]},{'name':a135_0x34532b(0xd9),'meowKey':a135_0x34532b(0xd9),'type':a135_0x34532b(0xcb),'description':a135_0x34532b(0xea),'hidden':!![]},{'name':a135_0x34532b(0x115),'meowKey':a135_0x34532b(0x115),'type':a135_0x34532b(0xcb),'description':a135_0x34532b(0xce),'hidden':!![]},{'name':a135_0x34532b(0x11b),'meowKey':a135_0x34532b(0x11b),'type':'string','description':a135_0x34532b(0x11f),'hidden':!![]},{'name':a135_0x34532b(0xc3),'meowKey':'sqlName','type':'string','description':'SQL\x20name','hidden':!![]},{'name':a135_0x34532b(0xe6),'meowKey':'sqlname','type':a135_0x34532b(0xcb),'description':'SQL\x20name','hidden':!![]},{'name':'db-id','meowKey':a135_0x34532b(0xe5),'type':a135_0x34532b(0xcb),'description':a135_0x34532b(0xff),'hidden':!![]},{'name':a135_0x34532b(0xc6),'meowKey':a135_0x34532b(0xc6),'type':'string','description':a135_0x34532b(0xff),'hidden':!![]},{'name':a135_0x34532b(0xbd),'meowKey':a135_0x34532b(0xbd),'type':a135_0x34532b(0xcb),'description':a135_0x34532b(0x114),'hidden':!![]},{'name':'description-file','meowKey':a135_0x34532b(0xdf),'type':a135_0x34532b(0xcb),'description':'Description\x20file','hidden':!![]},{'name':a135_0x34532b(0xc5),'meowKey':a135_0x34532b(0xc5),'type':a135_0x34532b(0xcb),'description':a135_0x34532b(0xc7),'hidden':!![]},{'name':a135_0x34532b(0xec),'meowKey':a135_0x34532b(0xec),'type':a135_0x34532b(0xcb),'description':a135_0x34532b(0x11e),'hidden':!![]},{'name':a135_0x34532b(0xd2),'meowKey':a135_0x34532b(0xd2),'type':a135_0x34532b(0xcb),'description':a135_0x34532b(0x105),'hidden':!![]},{'name':a135_0x34532b(0xde),'meowKey':'code','type':a135_0x34532b(0xcb),'description':'Code\x20filter','hidden':!![]},{'name':a135_0x34532b(0xd4),'meowKey':a135_0x34532b(0xd4),'type':'string','description':a135_0x34532b(0xcf),'hidden':!![]},{'name':a135_0x34532b(0x110),'meowKey':'schemas','type':a135_0x34532b(0xcb),'description':a135_0x34532b(0x111),'hidden':!![]},{'name':a135_0x34532b(0x104),'meowKey':'operation','type':'string','description':a135_0x34532b(0x11a),'hidden':!![]},{'name':a135_0x34532b(0x11c),'meowKey':a135_0x34532b(0x11c),'type':a135_0x34532b(0xcb),'description':a135_0x34532b(0x102),'hidden':!![]},{'name':a135_0x34532b(0xf8),'meowKey':a135_0x34532b(0xbb),'type':a135_0x34532b(0x10b),'description':a135_0x34532b(0x119),'hidden':!![]},{'name':'key','meowKey':'key','type':'string','description':a135_0x34532b(0xf1),'hidden':!![]},{'name':'value','meowKey':a135_0x34532b(0xca),'type':a135_0x34532b(0xcb),'description':a135_0x34532b(0x107),'hidden':!![]},{'name':'force','meowKey':a135_0x34532b(0xd0),'type':a135_0x34532b(0x10b),'description':'Force\x20overwrite','hidden':!![]},{'name':a135_0x34532b(0x10c),'meowKey':a135_0x34532b(0x10c),'type':a135_0x34532b(0x10b),'description':a135_0x34532b(0x10d),'hidden':!![]},{'name':a135_0x34532b(0xc2),'meowKey':'remote','type':a135_0x34532b(0x10b),'description':'Use\x20remote','hidden':!![]},{'name':a135_0x34532b(0xc9),'meowKey':a135_0x34532b(0xc9),'type':a135_0x34532b(0x10b),'description':a135_0x34532b(0xcd),'hidden':!![]},{'name':a135_0x34532b(0xe4),'meowKey':a135_0x34532b(0xf3),'type':'string','description':'Expected\x20affected\x20count','hidden':!![]},{'name':a135_0x34532b(0xc8),'meowKey':a135_0x34532b(0xbf),'type':a135_0x34532b(0xcb),'description':'Operation\x20type','hidden':!![]},{'name':a135_0x34532b(0x10e),'meowKey':a135_0x34532b(0xfb),'type':a135_0x34532b(0xcb),'description':'Function\x20node','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a135_0x34532b(0x10f),a135_0x34532b(0xfc),'env',a135_0x34532b(0xe3),'jq',a135_0x34532b(0x10a),a135_0x34532b(0xcc),a135_0x34532b(0xe8),'ci']);export function buildMeowFlags(){const _0x5bd3d9=a135_0x34532b;return Object[_0x5bd3d9(0x120)](GLOBAL_FLAGS[_0x5bd3d9(0x108)](_0xb4beb2=>[_0xb4beb2[_0x5bd3d9(0xdb)],{'type':_0xb4beb2[_0x5bd3d9(0xd9)]}]));}
1
+ const a135_0x168761=a135_0x6626;(function(_0xb90d07,_0x511890){const _0x9f4f5c=a135_0x6626,_0x1cab58=_0xb90d07();while(!![]){try{const _0x3e382d=parseInt(_0x9f4f5c(0x1c3))/0x1+parseInt(_0x9f4f5c(0x1a8))/0x2+-parseInt(_0x9f4f5c(0x16b))/0x3+-parseInt(_0x9f4f5c(0x182))/0x4+parseInt(_0x9f4f5c(0x1c2))/0x5*(-parseInt(_0x9f4f5c(0x196))/0x6)+parseInt(_0x9f4f5c(0x1a6))/0x7*(-parseInt(_0x9f4f5c(0x1bf))/0x8)+parseInt(_0x9f4f5c(0x1cc))/0x9;if(_0x3e382d===_0x511890)break;else _0x1cab58['push'](_0x1cab58['shift']());}catch(_0xef7b86){_0x1cab58['push'](_0x1cab58['shift']());}}}(a135_0x4cca,0x9d376));function a135_0x6626(_0x51b86a,_0x4e680a){_0x51b86a=_0x51b86a-0x169;const _0x4cca71=a135_0x4cca();let _0x662629=_0x4cca71[_0x51b86a];return _0x662629;}export const CLI_BIN_NAME=a135_0x168761(0x1a0);function a135_0x4cca(){const _0x5e5642=['Force\x20overwrite','schemas','string','Confirm\x20destructive\x20action','page','format','title','43528QggBCB','Output\x20path','dryRun','5KdnrjU','691149ikXCyL','Target\x20path','Skip\x20confirmation\x20for\x20high-risk\x20writes','Override\x20appcode','appcode','operationType','description','expectedCount','enable-bff-save','20752254IZbGsh','code','db-id','yes','params','target','<code>','dbid','skip-imports','SQL\x20string','3118014EUIJav','production\x20|\x20daily','expected-count','all','Code\x20filter','Environment','<name>','Use\x20global\x20config\x20scope','force','Description','<expr>','Alias\x20for\x20--non-interactive','sql-name','Type\x20filter','Function\x20node','env','JSON\x20params','type','project','boolean','pagesize','Verbose\x20output','Dataset\x20code','2534028qwFecw','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','file','Config\x20value','Record\x20ID','sql','value','File\x20path','non-interactive','Keyword\x20filter','Operation\x20type','Output\x20format','verbose','SQL\x20code','Show\x20help','function-node','global','meowKey','datasetcode','output','2787774kRzmmT','sqlname','keyword','name','operation-type','Watch\x20mode','Clear','enableBffSave','sqlcode','Page\x20size','rabetbase','Preview\x20operation\x20without\x20executing','help','key','watch','Rabetbase\x20CLI','903CajCFE','functionNode','972732UPRKRE','@lovrabet/rabetbase-cli','remote','sqlName','Schemas','Description\x20file','Enable\x20BFF\x20save','Force\x20non-interactive\x20mode\x20(CI)','Title','clear','app','Name','DB\x20ID','confirm','nonInteractive','dry-run'];a135_0x4cca=function(){return _0x5e5642;};return a135_0x4cca();}export const CLI_DISPLAY_NAME=a135_0x168761(0x1a5);export const NPM_PACKAGE_NAME=a135_0x168761(0x1a9);export const GLOBAL_FLAGS=[{'name':a135_0x168761(0x1c7),'meowKey':a135_0x168761(0x1c7),'type':a135_0x168761(0x1ba),'description':a135_0x168761(0x1c6),'hint':a135_0x168761(0x1d2)},{'name':a135_0x168761(0x1b2),'meowKey':a135_0x168761(0x1b2),'type':'string','description':'Select\x20app\x20profile\x20by\x20name','hint':a135_0x168761(0x171)},{'name':a135_0x168761(0x17a),'meowKey':a135_0x168761(0x17a),'type':'string','description':a135_0x168761(0x170),'hint':a135_0x168761(0x16c)},{'name':'format','meowKey':a135_0x168761(0x1bd),'type':a135_0x168761(0x1ba),'description':a135_0x168761(0x18d),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a135_0x168761(0x1ba),'description':a135_0x168761(0x183),'hint':a135_0x168761(0x175)},{'name':a135_0x168761(0x1b7),'meowKey':a135_0x168761(0x1c1),'type':a135_0x168761(0x17e),'description':a135_0x168761(0x1a1)},{'name':'yes','meowKey':a135_0x168761(0x1cf),'type':a135_0x168761(0x17e),'description':a135_0x168761(0x1c5)},{'name':a135_0x168761(0x18a),'meowKey':a135_0x168761(0x1b6),'type':a135_0x168761(0x17e),'description':a135_0x168761(0x1af)},{'name':'global','meowKey':a135_0x168761(0x192),'type':'boolean','description':a135_0x168761(0x172)},{'name':'project','meowKey':a135_0x168761(0x17d),'type':a135_0x168761(0x17e),'description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':a135_0x168761(0x176),'hidden':!![]},{'name':a135_0x168761(0x1a2),'meowKey':a135_0x168761(0x1a2),'type':'boolean','description':a135_0x168761(0x190)},{'name':a135_0x168761(0x199),'meowKey':a135_0x168761(0x199),'type':a135_0x168761(0x1ba),'description':a135_0x168761(0x1b3),'hidden':!![]},{'name':a135_0x168761(0x1be),'meowKey':'title','type':a135_0x168761(0x1ba),'description':a135_0x168761(0x1b0),'hidden':!![]},{'name':a135_0x168761(0x1b1),'meowKey':a135_0x168761(0x1b1),'type':'boolean','description':a135_0x168761(0x19c),'hidden':!![]},{'name':a135_0x168761(0x1a4),'meowKey':a135_0x168761(0x1a4),'type':'boolean','description':a135_0x168761(0x19b),'hidden':!![]},{'name':'output','meowKey':a135_0x168761(0x195),'type':'string','description':a135_0x168761(0x1c0),'hidden':!![]},{'name':'params','meowKey':a135_0x168761(0x1d0),'type':'string','description':a135_0x168761(0x17b),'hidden':!![]},{'name':a135_0x168761(0x194),'meowKey':a135_0x168761(0x194),'type':a135_0x168761(0x1ba),'description':a135_0x168761(0x181),'hidden':!![]},{'name':a135_0x168761(0x16e),'meowKey':a135_0x168761(0x16e),'type':a135_0x168761(0x17e),'description':'Apply\x20to\x20all','hidden':!![]},{'name':a135_0x168761(0x1cb),'meowKey':a135_0x168761(0x19d),'type':a135_0x168761(0x17e),'description':a135_0x168761(0x1ae),'hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':a135_0x168761(0x186),'hidden':!![]},{'name':a135_0x168761(0x17c),'meowKey':'type','type':a135_0x168761(0x1ba),'description':a135_0x168761(0x178),'hidden':!![]},{'name':a135_0x168761(0x184),'meowKey':a135_0x168761(0x184),'type':'string','description':a135_0x168761(0x189),'hidden':!![]},{'name':a135_0x168761(0x19e),'meowKey':a135_0x168761(0x19e),'type':'string','description':a135_0x168761(0x18f),'hidden':!![]},{'name':a135_0x168761(0x177),'meowKey':a135_0x168761(0x1ab),'type':a135_0x168761(0x1ba),'description':'SQL\x20name','hidden':!![]},{'name':a135_0x168761(0x197),'meowKey':a135_0x168761(0x197),'type':a135_0x168761(0x1ba),'description':'SQL\x20name','hidden':!![]},{'name':a135_0x168761(0x1ce),'meowKey':'dbId','type':'string','description':'DB\x20ID','hidden':!![]},{'name':a135_0x168761(0x1d3),'meowKey':'dbid','type':a135_0x168761(0x1ba),'description':a135_0x168761(0x1b4),'hidden':!![]},{'name':'description','meowKey':a135_0x168761(0x1c9),'type':a135_0x168761(0x1ba),'description':a135_0x168761(0x174),'hidden':!![]},{'name':'description-file','meowKey':'descriptionFile','type':a135_0x168761(0x1ba),'description':a135_0x168761(0x1ad),'hidden':!![]},{'name':a135_0x168761(0x1bc),'meowKey':'page','type':'string','description':'Page\x20number','hidden':!![]},{'name':a135_0x168761(0x17f),'meowKey':a135_0x168761(0x17f),'type':'string','description':a135_0x168761(0x19f),'hidden':!![]},{'name':a135_0x168761(0x198),'meowKey':a135_0x168761(0x198),'type':'string','description':a135_0x168761(0x18b),'hidden':!![]},{'name':'code','meowKey':a135_0x168761(0x1cd),'type':'string','description':a135_0x168761(0x16f),'hidden':!![]},{'name':a135_0x168761(0x187),'meowKey':a135_0x168761(0x187),'type':a135_0x168761(0x1ba),'description':a135_0x168761(0x16a),'hidden':!![]},{'name':a135_0x168761(0x1b9),'meowKey':a135_0x168761(0x1b9),'type':'string','description':a135_0x168761(0x1ac),'hidden':!![]},{'name':'operation','meowKey':'operation','type':'string','description':a135_0x168761(0x18c),'hidden':!![]},{'name':a135_0x168761(0x1d1),'meowKey':'target','type':a135_0x168761(0x1ba),'description':a135_0x168761(0x1c4),'hidden':!![]},{'name':a135_0x168761(0x169),'meowKey':'skipImports','type':a135_0x168761(0x17e),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':a135_0x168761(0x1a3),'meowKey':a135_0x168761(0x1a3),'type':'string','description':'Config\x20key','hidden':!![]},{'name':a135_0x168761(0x188),'meowKey':'value','type':a135_0x168761(0x1ba),'description':a135_0x168761(0x185),'hidden':!![]},{'name':a135_0x168761(0x173),'meowKey':a135_0x168761(0x173),'type':'boolean','description':a135_0x168761(0x1b8),'hidden':!![]},{'name':a135_0x168761(0x1b5),'meowKey':'confirm','type':a135_0x168761(0x17e),'description':a135_0x168761(0x1bb),'hidden':!![]},{'name':'remote','meowKey':a135_0x168761(0x1aa),'type':a135_0x168761(0x17e),'description':'Use\x20remote','hidden':!![]},{'name':a135_0x168761(0x18e),'meowKey':a135_0x168761(0x18e),'type':a135_0x168761(0x17e),'description':a135_0x168761(0x180),'hidden':!![]},{'name':a135_0x168761(0x16d),'meowKey':a135_0x168761(0x1ca),'type':a135_0x168761(0x1ba),'description':'Expected\x20affected\x20count','hidden':!![]},{'name':a135_0x168761(0x19a),'meowKey':a135_0x168761(0x1c8),'type':a135_0x168761(0x1ba),'description':'Operation\x20type','hidden':!![]},{'name':a135_0x168761(0x191),'meowKey':a135_0x168761(0x1a7),'type':a135_0x168761(0x1ba),'description':a135_0x168761(0x179),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a135_0x168761(0x1c7),'app','env',a135_0x168761(0x1bd),'jq',a135_0x168761(0x1b7),a135_0x168761(0x1cf),'non-interactive','ci']);export function buildMeowFlags(){const _0x257dec=a135_0x168761;return Object['fromEntries'](GLOBAL_FLAGS['map'](_0x153ab1=>[_0x153ab1[_0x257dec(0x193)],{'type':_0x153ab1[_0x257dec(0x17c)]}]));}
@@ -1 +1 @@
1
- const a136_0x4e04fe=a136_0x3cfe;function a136_0x2d17(){const _0x51b941=['422mSqAbw','compress','high-risk-write','66RTqlIh','3xeMOWx','4591LXzHRU','11519960YrOXwE','10684458SkVDnu','production','7595460QyGtIG','847490oULyig','58681320tWxYMA','5963684ejZsKg'];a136_0x2d17=function(){return _0x51b941;};return a136_0x2d17();}function a136_0x3cfe(_0x4df726,_0x180ec1){_0x4df726=_0x4df726-0x170;const _0x2d174f=a136_0x2d17();let _0x3cfe49=_0x2d174f[_0x4df726];return _0x3cfe49;}(function(_0x5343ba,_0x17a1a5){const _0x125d65=a136_0x3cfe,_0x56a8f2=_0x5343ba();while(!![]){try{const _0x4a8749=-parseInt(_0x125d65(0x17b))/0x1*(parseInt(_0x125d65(0x176))/0x2)+parseInt(_0x125d65(0x17a))/0x3*(-parseInt(_0x125d65(0x175))/0x4)+parseInt(_0x125d65(0x172))/0x5+-parseInt(_0x125d65(0x179))/0x6*(parseInt(_0x125d65(0x173))/0x7)+-parseInt(_0x125d65(0x17c))/0x8+-parseInt(_0x125d65(0x170))/0x9+parseInt(_0x125d65(0x174))/0xa;if(_0x4a8749===_0x17a1a5)break;else _0x56a8f2['push'](_0x56a8f2['shift']());}catch(_0x1727c8){_0x56a8f2['push'](_0x56a8f2['shift']());}}}(a136_0x2d17,0xec7e3));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a136_0x4e04fe(0x171),'format':a136_0x4e04fe(0x177),'locale':'en-US','riskLevel':a136_0x4e04fe(0x178),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a136_0x4e04fe(0x177);
1
+ const a136_0x53679b=a136_0x2462;(function(_0x3ed09c,_0x29fcdf){const _0x4182b7=a136_0x2462,_0x4ed83e=_0x3ed09c();while(!![]){try{const _0x45a173=-parseInt(_0x4182b7(0x86))/0x1*(-parseInt(_0x4182b7(0x7d))/0x2)+parseInt(_0x4182b7(0x87))/0x3*(-parseInt(_0x4182b7(0x7f))/0x4)+-parseInt(_0x4182b7(0x82))/0x5*(-parseInt(_0x4182b7(0x7c))/0x6)+parseInt(_0x4182b7(0x80))/0x7*(-parseInt(_0x4182b7(0x7b))/0x8)+-parseInt(_0x4182b7(0x8a))/0x9+-parseInt(_0x4182b7(0x84))/0xa*(parseInt(_0x4182b7(0x83))/0xb)+parseInt(_0x4182b7(0x7e))/0xc;if(_0x45a173===_0x29fcdf)break;else _0x4ed83e['push'](_0x4ed83e['shift']());}catch(_0x35240a){_0x4ed83e['push'](_0x4ed83e['shift']());}}}(a136_0x455e,0x99937));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a136_0x53679b(0x81),'format':'compress','locale':a136_0x53679b(0x88),'riskLevel':a136_0x53679b(0x85),'apiDir':DEFAULT_API_DIR};function a136_0x2462(_0x17fd0b,_0x56fee7){_0x17fd0b=_0x17fd0b-0x7b;const _0x455e0c=a136_0x455e();let _0x246259=_0x455e0c[_0x17fd0b];return _0x246259;}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a136_0x53679b(0x89);function a136_0x455e(){const _0x1a74a8=['11hHKZYT','3229550lckdJF','high-risk-write','1Mxlhni','9bjjMpR','en-US','compress','3522834AsXhGf','181880JAGjaJ','6JWOzCv','935254AmIJFQ','19003848cFRWhI','1543100SDQXEc','175NlBlUk','production','5089235wfiSjN'];a136_0x455e=function(){return _0x1a74a8;};return a136_0x455e();}
@@ -1 +1 @@
1
- const a137_0x6d1afd=a137_0x25bd;(function(_0x330ae2,_0x360223){const _0x2086c4=a137_0x25bd,_0x3775f3=_0x330ae2();while(!![]){try{const _0x157b66=-parseInt(_0x2086c4(0xd9))/0x1*(-parseInt(_0x2086c4(0xe0))/0x2)+-parseInt(_0x2086c4(0xdf))/0x3+-parseInt(_0x2086c4(0xe2))/0x4+parseInt(_0x2086c4(0xdc))/0x5+parseInt(_0x2086c4(0xe4))/0x6+parseInt(_0x2086c4(0xe3))/0x7*(-parseInt(_0x2086c4(0xe1))/0x8)+parseInt(_0x2086c4(0xda))/0x9;if(_0x157b66===_0x360223)break;else _0x3775f3['push'](_0x3775f3['shift']());}catch(_0x332a77){_0x3775f3['push'](_0x3775f3['shift']());}}}(a137_0x36ca,0x570cd));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x46bdc2){const _0x2ec74f=a137_0x25bd;customApiDomain=_0x46bdc2?.['apiDomain'],customUserDomain=_0x46bdc2?.[_0x2ec74f(0xd7)],customRuntimeDomain=_0x46bdc2?.[_0x2ec74f(0xdb)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a137_0x6d1afd(0xe6):a137_0x6d1afd(0xd8));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?'https://api.lovrabet.com':a137_0x6d1afd(0xdd));function a137_0x25bd(_0x565d4f,_0x1d60c7){_0x565d4f=_0x565d4f-0xd7;const _0x36ca2d=a137_0x36ca();let _0x25bd91=_0x36ca2d[_0x565d4f];return _0x25bd91;}function a137_0x36ca(){const _0x5be5fd=['392708JCNAuS','7ByDfgc','1958556xhurIw','https://runtime.lovrabet.com','https://user.lovrabet.com','userDomain','https://user-daily.lovrabet.com','1697qBFyLH','4390137JhAcGK','runtimeDomain','554660iTbiDI','https://daily-api.lovrabet.com','https://daily-runtime.lovrabet.com','1344102MBcwfG','124TchVvm','1020776STrrzn'];a137_0x36ca=function(){return _0x5be5fd;};return a137_0x36ca();}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a137_0x6d1afd(0xe5):a137_0x6d1afd(0xde));
1
+ function a137_0xdd12(){const _0x40c81d=['137331cCjsfh','15WrQSkZ','https://user-daily.lovrabet.com','https://daily-runtime.lovrabet.com','8486118ZUyHpK','https://runtime.lovrabet.com','20539818UGSyWJ','7qKVcXv','userDomain','11wtzavT','12589540pDinsl','2683248XwHHUU','https://user.lovrabet.com','126692nTTknD','257952GTqeZW','116OeQIHj','24fAEePj','https://daily-api.lovrabet.com','14mtXkRE'];a137_0xdd12=function(){return _0x40c81d;};return a137_0xdd12();}const a137_0x2cf3ff=a137_0x2a6b;function a137_0x2a6b(_0x3bc5e6,_0x2acb41){_0x3bc5e6=_0x3bc5e6-0xc7;const _0xdd1256=a137_0xdd12();let _0x2a6bcd=_0xdd1256[_0x3bc5e6];return _0x2a6bcd;}(function(_0x311d19,_0x25dfbc){const _0x4f058f=a137_0x2a6b,_0x337d91=_0x311d19();while(!![]){try{const _0x58487c=-parseInt(_0x4f058f(0xd4))/0x1*(-parseInt(_0x4f058f(0xc7))/0x2)+-parseInt(_0x4f058f(0xcd))/0x3*(parseInt(_0x4f058f(0xc9))/0x4)+parseInt(_0x4f058f(0xce))/0x5*(-parseInt(_0x4f058f(0xd8))/0x6)+parseInt(_0x4f058f(0xcc))/0x7*(parseInt(_0x4f058f(0xc8))/0x8)+parseInt(_0x4f058f(0xd1))/0x9+-parseInt(_0x4f058f(0xd7))/0xa*(parseInt(_0x4f058f(0xd6))/0xb)+-parseInt(_0x4f058f(0xca))/0xc*(-parseInt(_0x4f058f(0xd3))/0xd);if(_0x58487c===_0x25dfbc)break;else _0x337d91['push'](_0x337d91['shift']());}catch(_0x2bf7e2){_0x337d91['push'](_0x337d91['shift']());}}}(a137_0xdd12,0xa6ab1));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x486625){const _0xd121ad=a137_0x2a6b;customApiDomain=_0x486625?.['apiDomain'],customUserDomain=_0x486625?.[_0xd121ad(0xd5)],customRuntimeDomain=_0x486625?.['runtimeDomain'];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a137_0x2cf3ff(0xd9):a137_0x2cf3ff(0xcf));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?'https://api.lovrabet.com':a137_0x2cf3ff(0xcb));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a137_0x2cf3ff(0xd2):a137_0x2cf3ff(0xd0));
@@ -1 +1 @@
1
- const a138_0xaeb4ad=a138_0x485e;(function(_0x210072,_0x40aa49){const _0x11d84e=a138_0x485e,_0x10b0c7=_0x210072();while(!![]){try{const _0x6835e2=parseInt(_0x11d84e(0x1dd))/0x1+parseInt(_0x11d84e(0x1da))/0x2+parseInt(_0x11d84e(0x1d9))/0x3*(-parseInt(_0x11d84e(0x1dc))/0x4)+-parseInt(_0x11d84e(0x1d4))/0x5*(-parseInt(_0x11d84e(0x1db))/0x6)+parseInt(_0x11d84e(0x1d3))/0x7*(parseInt(_0x11d84e(0x1d1))/0x8)+parseInt(_0x11d84e(0x1d2))/0x9*(parseInt(_0x11d84e(0x1d6))/0xa)+-parseInt(_0x11d84e(0x1d8))/0xb*(parseInt(_0x11d84e(0x1d7))/0xc);if(_0x6835e2===_0x40aa49)break;else _0x10b0c7['push'](_0x10b0c7['shift']());}catch(_0x41b503){_0x10b0c7['push'](_0x10b0c7['shift']());}}}(a138_0x4d60,0x1f1c9));export const RABETBASE_ENV_VALUES=['production',a138_0xaeb4ad(0x1e0)];export function normalizeEnv(_0x96b530){const _0x40cdee=a138_0xaeb4ad;return _0x96b530===_0x40cdee(0x1df)?'production':_0x96b530;}function a138_0x4d60(){const _0xd43987=['development','26960FUFeeY','567mKoxlV','238NgZKwA','5cZjLOC','production','31890OwbiDr','5686284HCxWbN','11JSoOXM','3189vLxBUJ','209076pZtBlR','1243068LVLhQt','568NpSiJp','125033jeVczB','dev','online','daily'];a138_0x4d60=function(){return _0xd43987;};return a138_0x4d60();}export function isProduction(_0x17bcb0){const _0x423e21=a138_0xaeb4ad;return normalizeEnv(_0x17bcb0)===_0x423e21(0x1d5);}export function isDaily(_0x6a94e3){const _0x2f76ca=a138_0xaeb4ad;return normalizeEnv(_0x6a94e3)===_0x2f76ca(0x1e0);}export function isDev(_0x532088){const _0x55b7cd=a138_0xaeb4ad,_0xe4e5d3=normalizeEnv(_0x532088);return _0xe4e5d3===_0x55b7cd(0x1d0)||_0xe4e5d3===_0x55b7cd(0x1de);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a138_0xaeb4ad(0x1d5));export function getEnv(){return env;}function a138_0x485e(_0x3aa541,_0x3602b5){_0x3aa541=_0x3aa541-0x1d0;const _0x4d6025=a138_0x4d60();let _0x485edc=_0x4d6025[_0x3aa541];return _0x485edc;}export function initEnv(_0x2c3ef9){env=normalizeEnv(_0x2c3ef9);}
1
+ const a138_0x8df4eb=a138_0x2189;(function(_0x23cd67,_0x4470e3){const _0x26a2fe=a138_0x2189,_0x488f2e=_0x23cd67();while(!![]){try{const _0x1f1aa5=parseInt(_0x26a2fe(0x1d5))/0x1*(parseInt(_0x26a2fe(0x1cc))/0x2)+parseInt(_0x26a2fe(0x1ce))/0x3*(parseInt(_0x26a2fe(0x1cf))/0x4)+parseInt(_0x26a2fe(0x1d4))/0x5+parseInt(_0x26a2fe(0x1cd))/0x6+-parseInt(_0x26a2fe(0x1d0))/0x7+parseInt(_0x26a2fe(0x1c9))/0x8+-parseInt(_0x26a2fe(0x1d1))/0x9;if(_0x1f1aa5===_0x4470e3)break;else _0x488f2e['push'](_0x488f2e['shift']());}catch(_0x11fbf2){_0x488f2e['push'](_0x488f2e['shift']());}}}(a138_0x5a9b,0xbf32d));function a138_0x2189(_0x4423a4,_0x2ea4d0){_0x4423a4=_0x4423a4-0x1c9;const _0x5a9b0e=a138_0x5a9b();let _0x218950=_0x5a9b0e[_0x4423a4];return _0x218950;}export const RABETBASE_ENV_VALUES=[a138_0x8df4eb(0x1cb),'daily'];export function normalizeEnv(_0x4bf45a){const _0x4b05cc=a138_0x8df4eb;return _0x4bf45a===_0x4b05cc(0x1d3)?_0x4b05cc(0x1cb):_0x4bf45a;}export function isProduction(_0x510a29){const _0x4dc024=a138_0x8df4eb;return normalizeEnv(_0x510a29)===_0x4dc024(0x1cb);}function a138_0x5a9b(){const _0x3389ab=['7582440jZvIMl','development','production','777982XKqeWF','3511206azWDHj','153591TpNsrp','20FtqPZD','7402703jgQubm','12996540MvphRT','daily','online','1643870KHslKT','3AGdQsQ'];a138_0x5a9b=function(){return _0x3389ab;};return a138_0x5a9b();}export function isDaily(_0x42dbe3){const _0x892622=a138_0x8df4eb;return normalizeEnv(_0x42dbe3)===_0x892622(0x1d2);}export function isDev(_0x4e0b7b){const _0xf74bdf=a138_0x8df4eb,_0x7fea69=normalizeEnv(_0x4e0b7b);return _0x7fea69===_0xf74bdf(0x1ca)||_0x7fea69==='dev';}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a138_0x8df4eb(0x1cb));export function getEnv(){return env;}export function initEnv(_0x11bf0d){env=normalizeEnv(_0x11bf0d);}
@@ -1 +1 @@
1
- const a139_0x1c60d4=a139_0x5660;(function(_0x153531,_0x109e1a){const _0x47f630=a139_0x5660,_0x273166=_0x153531();while(!![]){try{const _0x5bcec6=parseInt(_0x47f630(0x1f3))/0x1*(parseInt(_0x47f630(0x1f4))/0x2)+-parseInt(_0x47f630(0x1f1))/0x3*(-parseInt(_0x47f630(0x1e7))/0x4)+parseInt(_0x47f630(0x1ea))/0x5+-parseInt(_0x47f630(0x1eb))/0x6*(parseInt(_0x47f630(0x1ed))/0x7)+-parseInt(_0x47f630(0x1ec))/0x8*(-parseInt(_0x47f630(0x1e8))/0x9)+parseInt(_0x47f630(0x1ee))/0xa+-parseInt(_0x47f630(0x1f0))/0xb;if(_0x5bcec6===_0x109e1a)break;else _0x273166['push'](_0x273166['shift']());}catch(_0x3ab73b){_0x273166['push'](_0x273166['shift']());}}}(a139_0x2a9d,0x20a90));function a139_0x5660(_0x5df9bc,_0x50b400){_0x5df9bc=_0x5df9bc-0x1e7;const _0x2a9df6=a139_0x2a9d();let _0x566058=_0x2a9df6[_0x5df9bc];return _0x566058;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a139_0x1c60d4(0x1f2),a139_0x1c60d4(0x1ef),a139_0x1c60d4(0x1e9)];function a139_0x2a9d(){const _0x3e49f5=['3623rnabVh','120EJrlCa','68XthDNY','63PkQiEC','compress','103195NBufcX','180228qScBYp','234712qPREQn','7LTTXAY','2160960YvCLtH','pretty','7273607KhChOo','29217cWqFaL','json'];a139_0x2a9d=function(){return _0x3e49f5;};return a139_0x2a9d();}
1
+ function a139_0x4950(_0x74a21,_0x431bb4){_0x74a21=_0x74a21-0xc8;const _0x15754e=a139_0x1575();let _0x49509a=_0x15754e[_0x74a21];return _0x49509a;}const a139_0x505bfa=a139_0x4950;(function(_0xf105db,_0x42c330){const _0x1ae60e=a139_0x4950,_0xab85c5=_0xf105db();while(!![]){try{const _0x1bfc37=-parseInt(_0x1ae60e(0xcd))/0x1*(parseInt(_0x1ae60e(0xca))/0x2)+-parseInt(_0x1ae60e(0xd0))/0x3*(parseInt(_0x1ae60e(0xcc))/0x4)+-parseInt(_0x1ae60e(0xd5))/0x5*(parseInt(_0x1ae60e(0xc8))/0x6)+parseInt(_0x1ae60e(0xc9))/0x7+parseInt(_0x1ae60e(0xd1))/0x8+parseInt(_0x1ae60e(0xd3))/0x9+parseInt(_0x1ae60e(0xce))/0xa*(-parseInt(_0x1ae60e(0xcb))/0xb);if(_0x1bfc37===_0x42c330)break;else _0xab85c5['push'](_0xab85c5['shift']());}catch(_0x3eb916){_0xab85c5['push'](_0xab85c5['shift']());}}}(a139_0x1575,0x530c7));function a139_0x1575(){const _0x290b12=['95SpThQg','996iLMcFD','4678555ckWFck','2BJvXDg','3182245BUjGhs','4plzoom','672188RMznDm','10EWkINZ','compress','81714GGXBUk','1426240aiqvOk','json','4368573vrXUYf','pretty'];a139_0x1575=function(){return _0x290b12;};return a139_0x1575();}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a139_0x505bfa(0xd2),a139_0x505bfa(0xd4),a139_0x505bfa(0xcf)];
@@ -1 +1 @@
1
- function a140_0x20d9(_0x5d36a2,_0x494d37){_0x5d36a2=_0x5d36a2-0xb2;const _0x56e53d=a140_0x56e5();let _0x20d907=_0x56e53d[_0x5d36a2];return _0x20d907;}(function(_0x244bbf,_0x50322f){const _0x34062f=a140_0x20d9,_0x13a609=_0x244bbf();while(!![]){try{const _0x1ae466=-parseInt(_0x34062f(0xb8))/0x1+parseInt(_0x34062f(0xb2))/0x2*(-parseInt(_0x34062f(0xb9))/0x3)+-parseInt(_0x34062f(0xb3))/0x4+-parseInt(_0x34062f(0xb4))/0x5+-parseInt(_0x34062f(0xb5))/0x6+-parseInt(_0x34062f(0xb7))/0x7+parseInt(_0x34062f(0xb6))/0x8;if(_0x1ae466===_0x50322f)break;else _0x13a609['push'](_0x13a609['shift']());}catch(_0x97ed7b){_0x13a609['push'](_0x13a609['shift']());}}}(a140_0x56e5,0x6a827));export const DEFAULT_API_DIR='./src/api';function a140_0x56e5(){const _0x4ea196=['143635vyIxsF','1466616OrSXwt','25884400iEbFng','2753114TKBaVW','767577DmiVUz','21chAhPB','160574zLlpsr','3212944DIeMiy'];a140_0x56e5=function(){return _0x4ea196;};return a140_0x56e5();}
1
+ function a140_0x2424(){const _0x33a921=['312325OnyIxk','148062EiRdOR','861792SsbUqw','102QCDghS','83HfmFNg','36tfZXwd','4203353ypBPfR','1068FenHAd','31394JAFqAb','16624wYFIvZ','5068650KtxaLX','10WUyZUp','371Yvdrpp'];a140_0x2424=function(){return _0x33a921;};return a140_0x2424();}function a140_0x2645(_0x4daf67,_0x43f87e){_0x4daf67=_0x4daf67-0x8e;const _0x24249b=a140_0x2424();let _0x26459a=_0x24249b[_0x4daf67];return _0x26459a;}(function(_0x1a6d18,_0x14a859){const _0x2793c5=a140_0x2645,_0xdc23b2=_0x1a6d18();while(!![]){try{const _0x1f111b=parseInt(_0x2793c5(0x90))/0x1*(parseInt(_0x2793c5(0x94))/0x2)+-parseInt(_0x2793c5(0x8f))/0x3*(-parseInt(_0x2793c5(0x95))/0x4)+parseInt(_0x2793c5(0x96))/0x5+parseInt(_0x2793c5(0x9a))/0x6*(parseInt(_0x2793c5(0x98))/0x7)+-parseInt(_0x2793c5(0x8e))/0x8*(parseInt(_0x2793c5(0x91))/0x9)+parseInt(_0x2793c5(0x97))/0xa*(-parseInt(_0x2793c5(0x92))/0xb)+parseInt(_0x2793c5(0x93))/0xc*(-parseInt(_0x2793c5(0x99))/0xd);if(_0x1f111b===_0x14a859)break;else _0xdc23b2['push'](_0xdc23b2['shift']());}catch(_0x23b52f){_0xdc23b2['push'](_0xdc23b2['shift']());}}}(a140_0x2424,0xc6dba));export const DEFAULT_API_DIR='./src/api';
@@ -1 +1 @@
1
- function a141_0x29da(){const _0x519883=['542460WvpSEY','read','34963643SfeGQG','9IvYylb','172046AeRVIa','65rCOaRj','11571270HNvUIy','261RqCdUx','10823920lYEgNh','14158QAHndL','110868qchrMM','write','198aakfKf'];a141_0x29da=function(){return _0x519883;};return a141_0x29da();}const a141_0x8c6bc8=a141_0x3cd0;function a141_0x3cd0(_0x5d16ea,_0x37aa27){_0x5d16ea=_0x5d16ea-0xc0;const _0x29da6c=a141_0x29da();let _0x3cd0f7=_0x29da6c[_0x5d16ea];return _0x3cd0f7;}(function(_0x2139a3,_0x2e53d2){const _0x37d00e=a141_0x3cd0,_0x442350=_0x2139a3();while(!![]){try{const _0x4aa0d8=-parseInt(_0x37d00e(0xcc))/0x1+parseInt(_0x37d00e(0xc8))/0x2*(-parseInt(_0x37d00e(0xc6))/0x3)+-parseInt(_0x37d00e(0xc9))/0x4*(-parseInt(_0x37d00e(0xc4))/0x5)+-parseInt(_0x37d00e(0xcb))/0x6*(-parseInt(_0x37d00e(0xc3))/0x7)+-parseInt(_0x37d00e(0xc7))/0x8+parseInt(_0x37d00e(0xc2))/0x9*(-parseInt(_0x37d00e(0xc5))/0xa)+parseInt(_0x37d00e(0xc1))/0xb;if(_0x4aa0d8===_0x2e53d2)break;else _0x442350['push'](_0x442350['shift']());}catch(_0xb0da5b){_0x442350['push'](_0x442350['shift']());}}}(a141_0x29da,0xa65f2));export const RISK_LEVEL_VALUES=[a141_0x8c6bc8(0xc0),a141_0x8c6bc8(0xca),'high-risk-write'];
1
+ const a141_0x49f97b=a141_0x2171;function a141_0x2171(_0x4182b1,_0x1c0fcc){_0x4182b1=_0x4182b1-0x13a;const _0x16d8e3=a141_0x16d8();let _0x217188=_0x16d8e3[_0x4182b1];return _0x217188;}function a141_0x16d8(){const _0x217f5a=['2cgexMt','18155MbQoPD','140631gYrjDY','4103BGKwmb','7kkXiSz','5954940xHEkLN','read','1664592eUXyON','write','high-risk-write','1053222YFbObD','2952632vqrYLJ','204cUJRxU','10870ePOMiA'];a141_0x16d8=function(){return _0x217f5a;};return a141_0x16d8();}(function(_0x3f233c,_0x4d805f){const _0x38c0c4=a141_0x2171,_0x5d5503=_0x3f233c();while(!![]){try{const _0x36bcc6=-parseInt(_0x38c0c4(0x147))/0x1*(-parseInt(_0x38c0c4(0x145))/0x2)+-parseInt(_0x38c0c4(0x141))/0x3+-parseInt(_0x38c0c4(0x143))/0x4*(-parseInt(_0x38c0c4(0x146))/0x5)+-parseInt(_0x38c0c4(0x13e))/0x6*(parseInt(_0x38c0c4(0x13b))/0x7)+-parseInt(_0x38c0c4(0x142))/0x8+parseInt(_0x38c0c4(0x13c))/0x9+-parseInt(_0x38c0c4(0x144))/0xa*(-parseInt(_0x38c0c4(0x13a))/0xb);if(_0x36bcc6===_0x4d805f)break;else _0x5d5503['push'](_0x5d5503['shift']());}catch(_0x256ff3){_0x5d5503['push'](_0x5d5503['shift']());}}}(a141_0x16d8,0x6084a));export const RISK_LEVEL_VALUES=[a141_0x49f97b(0x13d),a141_0x49f97b(0x13f),a141_0x49f97b(0x140)];