@lovrabet/rabetbase-cli 2.0.13 → 2.1.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 (155) hide show
  1. package/README.md +2 -2
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.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/doc.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/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote.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/delete.js +1 -1
  28. package/lib/commands/bff/detail.js +1 -1
  29. package/lib/commands/bff/index.js +1 -1
  30. package/lib/commands/bff/list.js +1 -1
  31. package/lib/commands/bff/new.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/dataset/detail.js +1 -1
  48. package/lib/commands/dataset/index.js +1 -1
  49. package/lib/commands/dataset/links.js +1 -1
  50. package/lib/commands/dataset/list.js +1 -1
  51. package/lib/commands/dataset/operations.js +1 -1
  52. package/lib/commands/db/analyze-cancel.js +1 -0
  53. package/lib/commands/db/analyze-start.js +1 -0
  54. package/lib/commands/db/analyze-status.js +1 -0
  55. package/lib/commands/db/create.js +1 -0
  56. package/lib/commands/db/delete.js +1 -0
  57. package/lib/commands/db/detail.js +1 -0
  58. package/lib/commands/db/diff.js +1 -0
  59. package/lib/commands/db/index.js +1 -0
  60. package/lib/commands/db/list.js +1 -0
  61. package/lib/commands/db/shared.js +1 -0
  62. package/lib/commands/db/tables.js +1 -0
  63. package/lib/commands/db/test.js +1 -0
  64. package/lib/commands/db/update.js +1 -0
  65. package/lib/commands/doctor.js +1 -1
  66. package/lib/commands/init/index.js +1 -1
  67. package/lib/commands/logs/index.js +1 -1
  68. package/lib/commands/menu/index.js +1 -1
  69. package/lib/commands/menu/shared/compare-table.js +1 -1
  70. package/lib/commands/menu/shared/index.js +1 -1
  71. package/lib/commands/menu/shared/inquirer.js +1 -1
  72. package/lib/commands/menu/shared/local-pages.js +1 -1
  73. package/lib/commands/menu/shared/logic.js +1 -1
  74. package/lib/commands/menu/shared/service.js +1 -1
  75. package/lib/commands/menu/shared/sync-core.js +1 -1
  76. package/lib/commands/menu/shared/update-core.js +1 -1
  77. package/lib/commands/menu/shared/valid-url.js +1 -1
  78. package/lib/commands/menu/sync.js +1 -1
  79. package/lib/commands/menu/update.js +1 -1
  80. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  81. package/lib/commands/project/create/format-elapsed.js +1 -1
  82. package/lib/commands/project/create/main.js +1 -1
  83. package/lib/commands/project/create/non-interactive.js +1 -1
  84. package/lib/commands/project/create/project-template-path.js +1 -1
  85. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  86. package/lib/commands/project/create/use-format-code.js +1 -1
  87. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  88. package/lib/commands/project/index.js +1 -1
  89. package/lib/commands/project/init.js +1 -1
  90. package/lib/commands/project/upgrade.js +1 -1
  91. package/lib/commands/registry.js +1 -1
  92. package/lib/commands/run/index.js +1 -1
  93. package/lib/commands/schema.js +1 -1
  94. package/lib/commands/skill/index.js +1 -1
  95. package/lib/commands/sql/detail.js +1 -1
  96. package/lib/commands/sql/exec.js +1 -1
  97. package/lib/commands/sql/index.js +1 -1
  98. package/lib/commands/sql/list.js +1 -1
  99. package/lib/commands/sql/pull.js +1 -1
  100. package/lib/commands/sql/save.js +1 -1
  101. package/lib/commands/sql/shared.js +1 -1
  102. package/lib/commands/sql/validate.js +1 -1
  103. package/lib/constant/cli.js +1 -1
  104. package/lib/constant/domain.js +1 -1
  105. package/lib/constant/env.js +1 -1
  106. package/lib/constant/paths.js +1 -1
  107. package/lib/context.js +1 -1
  108. package/lib/core/alias-resolver.js +1 -1
  109. package/lib/core/api-client.js +1 -1
  110. package/lib/core/bff/config.js +1 -1
  111. package/lib/core/bff/file-system.js +1 -1
  112. package/lib/core/bff/hash.js +1 -1
  113. package/lib/core/bff/lock.js +1 -1
  114. package/lib/core/bff/utils.js +1 -1
  115. package/lib/core/db-resolver.js +1 -1
  116. package/lib/core/sql-validator.js +1 -1
  117. package/lib/errors.js +1 -1
  118. package/lib/framework/build-all-flags.js +1 -1
  119. package/lib/framework/flags.js +1 -1
  120. package/lib/framework/help.js +1 -1
  121. package/lib/framework/index.js +1 -1
  122. package/lib/framework/output.js +1 -1
  123. package/lib/framework/response.js +1 -1
  124. package/lib/framework/runner.js +1 -1
  125. package/lib/framework/schema-export.js +1 -1
  126. package/lib/framework/types.js +1 -1
  127. package/lib/generated/build-info.js +1 -1
  128. package/lib/help.js +1 -1
  129. package/lib/skills/main.js +1 -1
  130. package/lib/skills/npx-skills-add.js +1 -1
  131. package/lib/telemetry/cli-command-trace.js +1 -1
  132. package/lib/telemetry/cli-help-trace.js +1 -1
  133. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  134. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  135. package/lib/telemetry/send-cli-trace-log.js +1 -1
  136. package/lib/utils/ai_config.js +1 -1
  137. package/lib/utils/apply-jq-filter.js +1 -1
  138. package/lib/utils/cdn-config.js +1 -1
  139. package/lib/utils/check-sdk-version.js +1 -1
  140. package/lib/utils/cli-version-check.js +1 -1
  141. package/lib/utils/config.js +1 -1
  142. package/lib/utils/copy-directory.js +1 -1
  143. package/lib/utils/file-utils.js +1 -1
  144. package/lib/utils/guides-cdn.js +1 -1
  145. package/lib/utils/http-client.js +1 -1
  146. package/lib/utils/is-non-interactive.js +1 -1
  147. package/lib/utils/logger.js +1 -1
  148. package/lib/utils/platform.js +1 -1
  149. package/lib/utils/rules-cdn.js +1 -1
  150. package/lib/utils/sleep.js +1 -1
  151. package/lib/utils/template-replacer.js +1 -1
  152. package/lib/utils/version.js +1 -1
  153. package/lib/utils/with-active-cookie.js +1 -1
  154. package/lib/utils/write-cli-side-channel.js +1 -0
  155. package/package.json +1 -1
@@ -1 +1 @@
1
- const a33_0x49dd94=a33_0x4b5b;(function(_0x3eb1e2,_0x138da7){const _0x15cc48=a33_0x4b5b,_0x62fa79=_0x3eb1e2();while(!![]){try{const _0x2e26fb=parseInt(_0x15cc48(0x1d0))/0x1+parseInt(_0x15cc48(0x1d7))/0x2+parseInt(_0x15cc48(0x1d1))/0x3+-parseInt(_0x15cc48(0x1db))/0x4*(-parseInt(_0x15cc48(0x1cc))/0x5)+-parseInt(_0x15cc48(0x1bb))/0x6*(-parseInt(_0x15cc48(0x1be))/0x7)+parseInt(_0x15cc48(0x1e4))/0x8+-parseInt(_0x15cc48(0x1b9))/0x9*(parseInt(_0x15cc48(0x1cb))/0xa);if(_0x2e26fb===_0x138da7)break;else _0x62fa79['push'](_0x62fa79['shift']());}catch(_0xb90c0f){_0x62fa79['push'](_0x62fa79['shift']());}}}(a33_0x31c0,0x77dff));function a33_0x4b5b(_0x43a03c,_0x1e3511){_0x43a03c=_0x43a03c-0x1b5;const _0x31c0d2=a33_0x31c0();let _0x4b5b89=_0x31c0d2[_0x43a03c];return _0x4b5b89;}import a33_0x2f494c from'chalk';import a33_0x3e5284 from'ora';import a33_0x43b2f4 from'semver';import{execa}from'execa';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getCdnConfig}from'../utils/cdn-config.js';import{resolveNpmBin}from'../utils/platform.js';function a33_0x31c0(){const _0x575dab=['yellow','/latest','27998150egqySD','4528155BHaKyz','succeed','stableVersion','...','968599sYdlGd','1427046KngODN','slice','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','red','start','\x20install\x20-g\x20','567874pIeXVf','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','Version\x20comparison\x20failed','install','4xpmkcm','Unable\x20to\x20check\x20for\x20updates','message','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','Checking\x20for\x20updates...','https://registry.npmjs.org/','Updated\x20to\x20v','green','info','3609040OUetFo','gray','coerce','@latest','bun','fail','9ohJRVA','includes','112278VVRais','toLowerCase','write','77Vlcnah','run','execPath','Updating\x20via\x20','npm','pipe','json','timeout','log','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','Update\x20failed'];a33_0x31c0=function(){return _0x575dab;};return a33_0x31c0();}function getCurrentVersion(){const _0x50eb76=a33_0x4b5b;return GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x50eb76(0x1d2)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0xda850=a33_0x4b5b,_0x3d44a7=process[_0xda850(0x1c0)][_0xda850(0x1bc)]();if(_0x3d44a7[_0xda850(0x1ba)](_0xda850(0x1b7)))return _0xda850(0x1b7);return _0xda850(0x1c2);}async function fetchLatestNpmVersion(){const _0x1544e9=a33_0x4b5b;try{const _0x56c22c=await fetch(_0x1544e9(0x1e0)+NPM_PACKAGE_NAME+_0x1544e9(0x1ca),{'signal':AbortSignal[_0x1544e9(0x1c5)](0x2710)});if(!_0x56c22c['ok'])return null;const _0x53b6de=await _0x56c22c[_0x1544e9(0x1c4)]();return _0x53b6de['version']??null;}catch{return null;}}async function fetchLatestVersion(){const _0x30ee5b=a33_0x4b5b,_0x176035=await fetchLatestNpmVersion();if(_0x176035)return _0x176035;const _0x59f4bf=await getCdnConfig();return _0x59f4bf?.['cli']?.[_0x30ee5b(0x1ce)]??null;}async function execute(_0x3f06bf){const _0x5c1220=a33_0x4b5b,_0x429ffe=getCurrentVersion();console[_0x5c1220(0x1c6)]('Current\x20version:\x20'+_0x429ffe);const _0x1132ec=a33_0x3e5284(_0x5c1220(0x1df))['start'](),_0x41c916=await fetchLatestVersion();if(!_0x41c916)return _0x1132ec[_0x5c1220(0x1b8)](_0x5c1220(0x1d3)),console[_0x5c1220(0x1c6)](a33_0x2f494c[_0x5c1220(0x1e5)](_0x5c1220(0x1c7)+NPM_PACKAGE_NAME+'@latest')),{'ok':![],'message':_0x5c1220(0x1dc)};const _0x27667b=a33_0x43b2f4[_0x5c1220(0x1b5)](_0x429ffe),_0x29454f=a33_0x43b2f4['coerce'](_0x41c916);if(!_0x27667b||!_0x29454f)return _0x1132ec[_0x5c1220(0x1b8)]('Version\x20comparison\x20failed'),{'ok':![],'message':_0x5c1220(0x1d9)};if(!a33_0x43b2f4['lt'](_0x27667b,_0x29454f))return _0x1132ec[_0x5c1220(0x1cd)]('Already\x20up\x20to\x20date\x20(v'+_0x41c916+')'),{'ok':!![]};_0x1132ec[_0x5c1220(0x1e3)]('Update\x20available:\x20'+a33_0x2f494c[_0x5c1220(0x1c9)](_0x429ffe)+'\x20→\x20'+a33_0x2f494c[_0x5c1220(0x1e2)](_0x41c916));const _0x39d346=detectPackageManager(),_0x12d160=_0x39d346===_0x5c1220(0x1c2)?resolveNpmBin(_0x5c1220(0x1c2)):_0x39d346,_0x3920f0=a33_0x3e5284(_0x5c1220(0x1c1)+_0x39d346+_0x5c1220(0x1cf))[_0x5c1220(0x1d5)]();try{return await execa(_0x12d160,[_0x5c1220(0x1da),'-g',NPM_PACKAGE_NAME+_0x5c1220(0x1b6)],{'stdio':_0x5c1220(0x1c3)}),_0x3920f0['succeed'](_0x5c1220(0x1e1)+_0x41c916),console['log'](a33_0x2f494c[_0x5c1220(0x1e5)](_0x5c1220(0x1d8))),{'ok':!![]};}catch(_0x5e9e61){return _0x3920f0[_0x5c1220(0x1b8)](_0x5c1220(0x1c8)),console['error'](a33_0x2f494c[_0x5c1220(0x1d4)]('\x20\x20'+_0x5e9e61['message'])),console[_0x5c1220(0x1c6)](a33_0x2f494c[_0x5c1220(0x1e5)]('\x20\x20Try\x20manually:\x20'+_0x39d346+_0x5c1220(0x1d6)+NPM_PACKAGE_NAME+_0x5c1220(0x1b6))),{'ok':![],'message':_0x5e9e61[_0x5c1220(0x1dd)]};}}export const updateDefinition={'service':'update','command':a33_0x49dd94(0x1bf),'description':a33_0x49dd94(0x1de),'risk':a33_0x49dd94(0x1bd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a33_0xaa1589=a33_0x31aa;(function(_0x43e5dd,_0xd496cb){const _0x25f89=a33_0x31aa,_0x1a04b6=_0x43e5dd();while(!![]){try{const _0x481a6c=-parseInt(_0x25f89(0xa6))/0x1*(parseInt(_0x25f89(0xbf))/0x2)+parseInt(_0x25f89(0x9c))/0x3+parseInt(_0x25f89(0xa1))/0x4*(-parseInt(_0x25f89(0xb1))/0x5)+-parseInt(_0x25f89(0xa7))/0x6*(parseInt(_0x25f89(0xb6))/0x7)+-parseInt(_0x25f89(0xa3))/0x8+parseInt(_0x25f89(0xa2))/0x9+parseInt(_0x25f89(0xb0))/0xa*(parseInt(_0x25f89(0xa0))/0xb);if(_0x481a6c===_0xd496cb)break;else _0x1a04b6['push'](_0x1a04b6['shift']());}catch(_0x8354bc){_0x1a04b6['push'](_0x1a04b6['shift']());}}}(a33_0x5c59,0xdd55f));import a33_0x5ed8d7 from'chalk';import a33_0x1e06dc from'ora';import a33_0x2f17e8 from'semver';import{execa}from'execa';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';function a33_0x31aa(_0x2dd1cd,_0x5deaec){_0x2dd1cd=_0x2dd1cd-0x95;const _0x5c5908=a33_0x5c59();let _0x31aa1d=_0x5c5908[_0x2dd1cd];return _0x31aa1d;}import{getCdnConfig}from'../utils/cdn-config.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x3fd0b8=a33_0x31aa;return GIT_COMMIT!==_0x3fd0b8(0xa5)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x2e86ac=a33_0x31aa,_0x38792e=process['execPath'][_0x2e86ac(0xa8)]();if(_0x38792e[_0x2e86ac(0x9a)]('bun'))return _0x2e86ac(0xad);return'npm';}function a33_0x5c59(){const _0x51567c=['/latest','158522EOmSGl','Current\x20version:\x20','\x20\x20Try\x20manually:\x20','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','Unable\x20to\x20check\x20for\x20updates','log','yellow','coerce','stableVersion','12178hRaEyY','gray','write','start','fail','Already\x20up\x20to\x20date\x20(v','\x20install\x20-g\x20','json','Checking\x20for\x20updates...','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','info','includes','Version\x20comparison\x20failed','3130452usiLIS','install','npm','@latest','5823323hAgGbp','192VaWHNu','16101756Ybebff','20944gPwsYB','Update\x20available:\x20','unknown','14wJemJg','402qhBVDi','toLowerCase','Updating\x20via\x20','version','Updated\x20to\x20v','red','bun','green','timeout','10oNUutZ','88565ujddDU','message','error','update'];a33_0x5c59=function(){return _0x51567c;};return a33_0x5c59();}async function fetchLatestNpmVersion(){const _0x45d7a4=a33_0x31aa;try{const _0x2dd537=await fetch('https://registry.npmjs.org/'+NPM_PACKAGE_NAME+_0x45d7a4(0xb5),{'signal':AbortSignal[_0x45d7a4(0xaf)](0x2710)});if(!_0x2dd537['ok'])return null;const _0x30cffc=await _0x2dd537[_0x45d7a4(0x96)]();return _0x30cffc[_0x45d7a4(0xaa)]??null;}catch{return null;}}async function fetchLatestVersion(){const _0x1af810=a33_0x31aa,_0x2acadb=await fetchLatestNpmVersion();if(_0x2acadb)return _0x2acadb;const _0x25afb2=await getCdnConfig();return _0x25afb2?.['cli']?.[_0x1af810(0xbe)]??null;}async function execute(_0x150f8f){const _0x26ca65=a33_0x31aa,_0x244709=getCurrentVersion();console[_0x26ca65(0xbb)](_0x26ca65(0xb7)+_0x244709);const _0x22141a=a33_0x1e06dc(_0x26ca65(0x97))[_0x26ca65(0xc2)](),_0x2b2ec0=await fetchLatestVersion();if(!_0x2b2ec0)return _0x22141a[_0x26ca65(0xc3)](_0x26ca65(0xb9)),console[_0x26ca65(0xbb)](a33_0x5ed8d7[_0x26ca65(0xc0)]('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+_0x26ca65(0x9f))),{'ok':![],'message':_0x26ca65(0xba)};const _0x251596=a33_0x2f17e8['coerce'](_0x244709),_0x4d9bff=a33_0x2f17e8[_0x26ca65(0xbd)](_0x2b2ec0);if(!_0x251596||!_0x4d9bff)return _0x22141a['fail'](_0x26ca65(0x9b)),{'ok':![],'message':_0x26ca65(0x9b)};if(!a33_0x2f17e8['lt'](_0x251596,_0x4d9bff))return _0x22141a['succeed'](_0x26ca65(0xc4)+_0x2b2ec0+')'),{'ok':!![]};_0x22141a[_0x26ca65(0x99)](_0x26ca65(0xa4)+a33_0x5ed8d7[_0x26ca65(0xbc)](_0x244709)+'\x20→\x20'+a33_0x5ed8d7[_0x26ca65(0xae)](_0x2b2ec0));const _0x3c2309=detectPackageManager(),_0x42e886=_0x3c2309==='npm'?resolveNpmBin(_0x26ca65(0x9e)):_0x3c2309,_0x15a4c5=a33_0x1e06dc(_0x26ca65(0xa9)+_0x3c2309+'...')['start']();try{return await execa(_0x42e886,[_0x26ca65(0x9d),'-g',NPM_PACKAGE_NAME+'@latest'],{'stdio':'pipe'}),_0x15a4c5['succeed'](_0x26ca65(0xab)+_0x2b2ec0),console[_0x26ca65(0xbb)](a33_0x5ed8d7['gray'](_0x26ca65(0x98))),{'ok':!![]};}catch(_0x353075){return _0x15a4c5[_0x26ca65(0xc3)]('Update\x20failed'),console[_0x26ca65(0xb3)](a33_0x5ed8d7[_0x26ca65(0xac)]('\x20\x20'+_0x353075[_0x26ca65(0xb2)])),console[_0x26ca65(0xbb)](a33_0x5ed8d7[_0x26ca65(0xc0)](_0x26ca65(0xb8)+_0x3c2309+_0x26ca65(0x95)+NPM_PACKAGE_NAME+'@latest')),{'ok':![],'message':_0x353075[_0x26ca65(0xb2)]};}}export const updateDefinition={'service':a33_0xaa1589(0xb4),'command':'run','description':'Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','risk':a33_0xaa1589(0xc1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x19974f,_0x37a631){const _0x43c572=a34_0x2bd3,_0x54c5a6=_0x19974f();while(!![]){try{const _0x4a83b6=-parseInt(_0x43c572(0x73))/0x1*(parseInt(_0x43c572(0x72))/0x2)+-parseInt(_0x43c572(0x6d))/0x3*(-parseInt(_0x43c572(0x6c))/0x4)+-parseInt(_0x43c572(0x6e))/0x5+-parseInt(_0x43c572(0x75))/0x6+-parseInt(_0x43c572(0x71))/0x7+-parseInt(_0x43c572(0x6f))/0x8*(parseInt(_0x43c572(0x6b))/0x9)+-parseInt(_0x43c572(0x74))/0xa*(-parseInt(_0x43c572(0x70))/0xb);if(_0x4a83b6===_0x37a631)break;else _0x54c5a6['push'](_0x54c5a6['shift']());}catch(_0x59fa4d){_0x54c5a6['push'](_0x54c5a6['shift']());}}}(a34_0x2312,0x50ae0));import{codegenSdk}from'../../commands/codegen/sdk.js';function a34_0x2bd3(_0x790a7,_0x6a7929){_0x790a7=_0x790a7-0x6b;const _0x231292=a34_0x2312();let _0x2bd398=_0x231292[_0x790a7];return _0x2bd398;}import{codegenSql}from'../../commands/codegen/sql.js';function a34_0x2312(){const _0x3c4e39=['343300oDeHRp','1083600XqIXZx','1541223xwCPyu','196yQMrza','3231lgJhYC','253245MUDjuk','16RhAYmu','583OjjwOX','4242063NYBJbw','103442cVUifI','7qkUcFI'];a34_0x2312=function(){return _0x3c4e39;};return a34_0x2312();}export const codegenDefinitions=[codegenSdk,codegenSql];
1
+ (function(_0x2d69b5,_0x19facf){const _0x2a1542=a34_0x2599,_0x1a1204=_0x2d69b5();while(!![]){try{const _0x1cdb61=parseInt(_0x2a1542(0x8d))/0x1*(parseInt(_0x2a1542(0x97))/0x2)+-parseInt(_0x2a1542(0x8e))/0x3*(-parseInt(_0x2a1542(0x95))/0x4)+parseInt(_0x2a1542(0x8f))/0x5+parseInt(_0x2a1542(0x91))/0x6*(parseInt(_0x2a1542(0x93))/0x7)+parseInt(_0x2a1542(0x92))/0x8+-parseInt(_0x2a1542(0x96))/0x9*(parseInt(_0x2a1542(0x90))/0xa)+-parseInt(_0x2a1542(0x94))/0xb;if(_0x1cdb61===_0x19facf)break;else _0x1a1204['push'](_0x1a1204['shift']());}catch(_0x5aa2d7){_0x1a1204['push'](_0x1a1204['shift']());}}}(a34_0x276b,0xd9771));import{codegenSdk}from'../../commands/codegen/sdk.js';function a34_0x2599(_0x165533,_0x1d667c){_0x165533=_0x165533-0x8d;const _0x276b2c=a34_0x276b();let _0x25990e=_0x276b2c[_0x165533];return _0x25990e;}import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];function a34_0x276b(){const _0xf3758b=['3NSzVLq','822ygxRdH','8630895LntoDc','10CpCdLB','270432fdFYOe','1363208dYpojp','224WVnyFx','39082593xFMdTo','23516PeyPjm','12791241VzbVIL','610146aWlaDw'];a34_0x276b=function(){return _0xf3758b;};return a34_0x276b();}
@@ -1 +1 @@
1
- const a35_0x44e71c=a35_0xafe6;(function(_0x8c667,_0x3d8cec){const _0x372e73=a35_0xafe6,_0x44c295=_0x8c667();while(!![]){try{const _0x4c8b1c=-parseInt(_0x372e73(0xb3))/0x1*(parseInt(_0x372e73(0xae))/0x2)+-parseInt(_0x372e73(0xad))/0x3+-parseInt(_0x372e73(0xaa))/0x4+-parseInt(_0x372e73(0xa4))/0x5*(-parseInt(_0x372e73(0xa8))/0x6)+parseInt(_0x372e73(0xa6))/0x7*(-parseInt(_0x372e73(0x9e))/0x8)+-parseInt(_0x372e73(0x9c))/0x9*(-parseInt(_0x372e73(0xab))/0xa)+parseInt(_0x372e73(0xb0))/0xb;if(_0x4c8b1c===_0x3d8cec)break;else _0x44c295['push'](_0x44c295['shift']());}catch(_0x12b05b){_0x44c295['push'](_0x44c295['shift']());}}}(a35_0x9d25,0x44b54));function a35_0x9d25(){const _0x2a92c7=['13698ShLJTv','appCode','3779435vQOMNn','read','boolean','9TyxBDR','alias','bool','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','31536tAIGuE','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','3271448nVMxrF','operation','sdk','Omit\x20import\x20statements\x20from\x20generated\x20code','string','skip-imports','8365xryjYh','str','7upbrNC','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','1974kIIxqF','code','519668tQbnTJ','1110kYkznv','name','1203087hhxzIM'];a35_0x9d25=function(){return _0x2a92c7;};return a35_0x9d25();}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a35_0xafe6(_0x3b9002,_0x1e6bf8){_0x3b9002=_0x3b9002-0x9a;const _0x9d25d7=a35_0x9d25();let _0xafe6b3=_0x9d25d7[_0x3b9002];return _0xafe6b3;}export const codegenSdk={'service':'codegen','command':a35_0x44e71c(0xa0),'description':a35_0x44e71c(0x9d),'risk':a35_0x44e71c(0xb1),'flags':[CODE_FLAG_OPTIONAL,{'name':a35_0x44e71c(0xb4),'type':a35_0x44e71c(0xa2),'description':a35_0x44e71c(0x9b)},{'name':a35_0x44e71c(0x9f),'type':a35_0x44e71c(0xa2),'required':!![],'description':a35_0x44e71c(0xa7)},{'name':'skip-imports','type':a35_0x44e71c(0xb2),'description':a35_0x44e71c(0xa1)}],async 'execute'(_0x29d1f){const _0x54b44b=a35_0x44e71c,{dataset:_0x1bb10b,operation:_0x27507d}=await getOperationDetail(_0x29d1f[_0x54b44b(0xaf)],_0x29d1f[_0x54b44b(0xa5)](_0x54b44b(0xa9)),_0x29d1f[_0x54b44b(0xa5)]('operation')),_0x477b8d=generateSdkCode(_0x1bb10b,_0x27507d,{'includeImports':!_0x29d1f[_0x54b44b(0x9a)](_0x54b44b(0xa3))});return{'ok':!![],'data':{'dataset':{'name':_0x1bb10b[_0x54b44b(0xac)],'code':_0x1bb10b['code'],'tableName':_0x1bb10b['tableName']},'operation':_0x29d1f[_0x54b44b(0xa5)](_0x54b44b(0x9f)),'code':_0x477b8d}};}};
1
+ const a35_0x590944=a35_0x1627;function a35_0x5f1d(){const _0x2eeada=['Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','name','read','skip-imports','code','2768qZGpQN','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','str','1384495qXiJRA','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','3956517UYdTin','16MlEzqK','2930quuEhc','30khURVf','9224500brqpnX','codegen','959214SbxZwt','Omit\x20import\x20statements\x20from\x20generated\x20code','operation','boolean','964485TiYGBD','alias','string','appCode','1330810JbGZMB'];a35_0x5f1d=function(){return _0x2eeada;};return a35_0x5f1d();}(function(_0x4694c5,_0x460641){const _0x4c04dd=a35_0x1627,_0x2e29a6=_0x4694c5();while(!![]){try{const _0x245757=-parseInt(_0x4c04dd(0xa1))/0x1+parseInt(_0x4c04dd(0x99))/0x2+parseInt(_0x4c04dd(0xac))/0x3+parseInt(_0x4c04dd(0xa7))/0x4*(parseInt(_0x4c04dd(0x95))/0x5)+parseInt(_0x4c04dd(0x96))/0x6*(parseInt(_0x4c04dd(0xaa))/0x7)+-parseInt(_0x4c04dd(0x94))/0x8*(parseInt(_0x4c04dd(0x9d))/0x9)+-parseInt(_0x4c04dd(0x97))/0xa;if(_0x245757===_0x460641)break;else _0x2e29a6['push'](_0x2e29a6['shift']());}catch(_0x349368){_0x2e29a6['push'](_0x2e29a6['shift']());}}}(a35_0x5f1d,0xb112d));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a35_0x1627(_0x1b195c,_0x5ef44e){_0x1b195c=_0x1b195c-0x94;const _0x5f1d88=a35_0x5f1d();let _0x162743=_0x5f1d88[_0x1b195c];return _0x162743;}export const codegenSdk={'service':a35_0x590944(0x98),'command':'sdk','description':a35_0x590944(0xab),'risk':a35_0x590944(0xa4),'flags':[CODE_FLAG_OPTIONAL,{'name':a35_0x590944(0x9e),'type':a35_0x590944(0x9f),'description':a35_0x590944(0xa2)},{'name':a35_0x590944(0x9b),'type':'string','required':!![],'description':a35_0x590944(0xa8)},{'name':a35_0x590944(0xa5),'type':a35_0x590944(0x9c),'description':a35_0x590944(0x9a)}],async 'execute'(_0x5b8d6f){const _0x1a0efb=a35_0x590944,{dataset:_0x587a91,operation:_0x73f549}=await getOperationDetail(_0x5b8d6f[_0x1a0efb(0xa0)],_0x5b8d6f[_0x1a0efb(0xa9)](_0x1a0efb(0xa6)),_0x5b8d6f[_0x1a0efb(0xa9)]('operation')),_0xacda1=generateSdkCode(_0x587a91,_0x73f549,{'includeImports':!_0x5b8d6f['bool']('skip-imports')});return{'ok':!![],'data':{'dataset':{'name':_0x587a91[_0x1a0efb(0xa3)],'code':_0x587a91[_0x1a0efb(0xa6)],'tableName':_0x587a91['tableName']},'operation':_0x5b8d6f[_0x1a0efb(0xa9)](_0x1a0efb(0x9b)),'code':_0xacda1}};}};
@@ -1 +1 @@
1
- const a36_0x2e352b=a36_0x3205;(function(_0x2857e4,_0x329942){const _0x5be661=a36_0x3205,_0x345ff7=_0x2857e4();while(!![]){try{const _0x51160d=parseInt(_0x5be661(0x9f))/0x1+-parseInt(_0x5be661(0xa4))/0x2+-parseInt(_0x5be661(0x9c))/0x3+-parseInt(_0x5be661(0x9b))/0x4+parseInt(_0x5be661(0xac))/0x5+-parseInt(_0x5be661(0xa0))/0x6+-parseInt(_0x5be661(0xa9))/0x7*(-parseInt(_0x5be661(0x9d))/0x8);if(_0x51160d===_0x329942)break;else _0x345ff7['push'](_0x345ff7['shift']());}catch(_0x48ee42){_0x345ff7['push'](_0x345ff7['shift']());}}}(a36_0x16ab,0x9d8de));function a36_0x3205(_0x2eeb22,_0x5d359a){_0x2eeb22=_0x2eeb22-0x9a;const _0x16ab3b=a36_0x16ab();let _0x3205f4=_0x16ab3b[_0x2eeb22];return _0x3205f4;}import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';function a36_0x16ab(){const _0x530bbd=['162016hhykEB','2491896IJYOnj','24hVmPFT','sqlCode','1061571PLhGyw','4908606zPMNLd','read','sdk','sql','1196140VLcYSB','target','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','string','sqlcode','3619637yPzMwf','codegen','str','1599025zzLLvo','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','Omit\x20import\x20statements\x20from\x20generated\x20code'];a36_0x16ab=function(){return _0x530bbd;};return a36_0x16ab();}export const codegenSql={'service':a36_0x2e352b(0xaa),'command':a36_0x2e352b(0xa3),'description':a36_0x2e352b(0xad),'risk':a36_0x2e352b(0xa1),'flags':[SQLCODE_FLAG,{'name':'target','type':a36_0x2e352b(0xa7),'description':a36_0x2e352b(0xa6),'default':'sdk','enum':['sdk','bff']},{'name':'no-imports','type':'boolean','description':a36_0x2e352b(0x9a)}],async 'execute'(_0x3cac8c){const _0x5823cc=a36_0x2e352b,_0x1f89b7=await getSqlQueryInfo(_0x3cac8c['appCode'],_0x3cac8c[_0x5823cc(0xab)](_0x5823cc(0xa8))),_0x18ba16=_0x3cac8c['str'](_0x5823cc(0xa5))||_0x5823cc(0xa2),_0x4ef187=generateSqlCodeTemplate(_0x1f89b7,{'target':_0x18ba16,'includeImports':!_0x3cac8c['bool']('no-imports')});return{'ok':!![],'data':{'sqlCode':_0x1f89b7[_0x5823cc(0x9e)],'sqlName':_0x1f89b7['sqlName'],'target':_0x18ba16,'code':_0x4ef187}};}};
1
+ const a36_0x4c02e5=a36_0x86d0;(function(_0x1f5bfb,_0x30d60b){const _0x21d10a=a36_0x86d0,_0x3beaa6=_0x1f5bfb();while(!![]){try{const _0x39f46d=parseInt(_0x21d10a(0x11d))/0x1+-parseInt(_0x21d10a(0x111))/0x2*(parseInt(_0x21d10a(0x11a))/0x3)+parseInt(_0x21d10a(0x11b))/0x4+-parseInt(_0x21d10a(0x118))/0x5+parseInt(_0x21d10a(0x10f))/0x6*(parseInt(_0x21d10a(0x11c))/0x7)+-parseInt(_0x21d10a(0x109))/0x8+-parseInt(_0x21d10a(0x108))/0x9*(-parseInt(_0x21d10a(0x10c))/0xa);if(_0x39f46d===_0x30d60b)break;else _0x3beaa6['push'](_0x3beaa6['shift']());}catch(_0x31a739){_0x3beaa6['push'](_0x3beaa6['shift']());}}}(a36_0x4cf8,0x24dcb));function a36_0x86d0(_0x47b67c,_0x1f525a){_0x47b67c=_0x47b67c-0x107;const _0x4cf88d=a36_0x4cf8();let _0x86d033=_0x4cf88d[_0x47b67c];return _0x86d033;}import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a36_0x4cf8(){const _0x5a583d=['17438hscgiI','sql','read','target','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','codegen','bff','452110pMujBc','string','63KMqGWy','320924VyndxW','2031323oNObyg','84066rzTvwp','boolean','9EoddmI','1527504jzHbEg','no-imports','sqlName','1609600zqUNbc','sqlCode','sdk','6dxAfrr','str'];a36_0x4cf8=function(){return _0x5a583d;};return a36_0x4cf8();}import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a36_0x4c02e5(0x116),'command':a36_0x4c02e5(0x112),'description':a36_0x4c02e5(0x115),'risk':a36_0x4c02e5(0x113),'flags':[SQLCODE_FLAG,{'name':a36_0x4c02e5(0x114),'type':a36_0x4c02e5(0x119),'description':'Code\x20target:\x20sdk\x20(default)\x20or\x20bff','default':a36_0x4c02e5(0x10e),'enum':[a36_0x4c02e5(0x10e),a36_0x4c02e5(0x117)]},{'name':a36_0x4c02e5(0x10a),'type':a36_0x4c02e5(0x107),'description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x5ed8f2){const _0x386045=a36_0x4c02e5,_0x41b9f7=await getSqlQueryInfo(_0x5ed8f2['appCode'],_0x5ed8f2[_0x386045(0x110)]('sqlcode')),_0x20ae08=_0x5ed8f2['str'](_0x386045(0x114))||_0x386045(0x10e),_0x526914=generateSqlCodeTemplate(_0x41b9f7,{'target':_0x20ae08,'includeImports':!_0x5ed8f2['bool'](_0x386045(0x10a))});return{'ok':!![],'data':{'sqlCode':_0x41b9f7[_0x386045(0x10d)],'sqlName':_0x41b9f7[_0x386045(0x10b)],'target':_0x20ae08,'code':_0x526914}};}};
@@ -1 +1 @@
1
- (function(_0x31eddc,_0x92962e){const _0x1e3367=a37_0x5aa7,_0x5e02ad=_0x31eddc();while(!![]){try{const _0x543476=-parseInt(_0x1e3367(0x1ac))/0x1+parseInt(_0x1e3367(0x19d))/0x2*(parseInt(_0x1e3367(0x198))/0x3)+-parseInt(_0x1e3367(0x1a8))/0x4*(-parseInt(_0x1e3367(0x1ad))/0x5)+-parseInt(_0x1e3367(0x1a5))/0x6+-parseInt(_0x1e3367(0x1b6))/0x7*(parseInt(_0x1e3367(0x197))/0x8)+-parseInt(_0x1e3367(0x1a0))/0x9+parseInt(_0x1e3367(0x1a4))/0xa;if(_0x543476===_0x92962e)break;else _0x5e02ad['push'](_0x5e02ad['shift']());}catch(_0x4b2b92){_0x5e02ad['push'](_0x5e02ad['shift']());}}}(a37_0x5460,0x8640e));function a37_0x5aa7(_0x4c94db,_0x42dcf0){_0x4c94db=_0x4c94db-0x194;const _0x54606c=a37_0x5460();let _0x5aa7dd=_0x54606c[_0x4c94db];return _0x5aa7dd;}import{input,checkbox,select}from'@inquirer/prompts';import a37_0x1fc9b8 from'chalk';import{validateAppcode}from'../../commands/common/validate.js';import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';export async function promptCustomAppcode(){const _0x50f339=a37_0x5aa7,_0x5cb518=await input({'message':_0x50f339(0x195),'validate':_0xda241e=>{const _0x7ca1fd=_0x50f339,_0x71d2e3=validateAppcode(_0xda241e['trim']());return _0x71d2e3[_0x7ca1fd(0x1a9)]||_0x71d2e3['message']||'Invalid\x20App\x20Code';}});return _0x5cb518[_0x50f339(0x194)]();}export async function promptAppSelection(_0x2508e3){const _0x328407=a37_0x5aa7,_0x1b3009=[{'name':a37_0x1fc9b8['yellow'](_0x328407(0x1aa)),'value':-0x1},..._0x2508e3[_0x328407(0x1a7)]((_0x46b33f,_0x4deefe)=>({'name':_0x46b33f[_0x328407(0x1b1)]+'\x20\x20'+a37_0x1fc9b8[_0x328407(0x1ae)]('('+_0x46b33f[_0x328407(0x1b5)]+')'),'value':_0x4deefe}))],_0x4c512c=await checkbox({'message':_0x328407(0x1ab)+a37_0x1fc9b8[_0x328407(0x1a1)](_0x2508e3[_0x328407(0x1a6)])+_0x328407(0x19a),'choices':_0x1b3009,'loop':![]});if(_0x4c512c[_0x328407(0x1b4)](-0x1))return'custom';if(_0x4c512c[_0x328407(0x1a6)]===0x0)return _0x328407(0x1b3);return _0x4c512c[_0x328407(0x1a7)](_0x39ed94=>_0x2508e3[_0x39ed94]);}function a37_0x5460(){const _0x58dab5=['trim','请输入\x20App\x20Code:','✎\x20手动输入','8402144zEgwRG','3fXEdDt','\x0a无法获取远程应用列表,请手动输入。','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','无法获取远程应用列表,请手动输入。','yellow','1647394YtraRR','(跳过,稍后配置)','manual','4649859IWRIIT','cyan','skip','正在获取可用应用列表...','11456280Qmirdq','4027104KXcSar','length','map','8RVtuzL','valid','✎\x20自定义输入\x20appcode','获取到\x20','232028ANudHP','2626770eOGeCt','gray','\x0a未找到可用应用。','\x20\x20(','appName','log','custom','includes','appCode','7DXpZFg'];a37_0x5460=function(){return _0x58dab5;};return a37_0x5460();}export async function promptSingleAppSelection(_0x4eee34){const _0x39c080=a37_0x5aa7,_0x452fa6=[{'name':a37_0x1fc9b8[_0x39c080(0x1ae)]('(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)'),'value':_0x39c080(0x1a2)},{'name':a37_0x1fc9b8['yellow'](_0x39c080(0x1aa)),'value':'custom'},..._0x4eee34[_0x39c080(0x1a7)](_0x30da68=>({'name':_0x30da68[_0x39c080(0x1b1)]+'\x20\x20'+a37_0x1fc9b8['gray']('('+_0x30da68[_0x39c080(0x1b5)]+')'),'value':_0x30da68[_0x39c080(0x1b5)]}))],_0xe02af8=await select({'message':'请选择要绑定的应用:','choices':_0x452fa6});if(_0xe02af8===_0x39c080(0x1a2))return _0x39c080(0x1a2);if(_0xe02af8==='custom')return _0x39c080(0x1b3);return _0x4eee34['find'](_0x5d787f=>_0x5d787f[_0x39c080(0x1b5)]===_0xe02af8);}export async function selectSingleAppcode(_0x26d0b4){const _0x1a75f8=a37_0x5aa7;if(!_0x26d0b4)return console[_0x1a75f8(0x1b2)](a37_0x1fc9b8['gray']('(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)')),_fallbackOrSkip();console[_0x1a75f8(0x1b2)](_0x1a75f8(0x1a3));let _0x3a3e3e;try{_0x3a3e3e=await withActiveCookie(_0x26d0b4,()=>listRemoteApps());}catch(_0x4b6d8c){console[_0x1a75f8(0x1b2)](a37_0x1fc9b8[_0x1a75f8(0x19c)](_0x1a75f8(0x19b)));if(_0x4b6d8c instanceof Error)console['log'](a37_0x1fc9b8[_0x1a75f8(0x1ae)](_0x1a75f8(0x1b0)+_0x4b6d8c['message']+')'));return _fallbackOrSkip();}if(_0x3a3e3e[_0x1a75f8(0x1a6)]===0x0)return console[_0x1a75f8(0x1b2)](a37_0x1fc9b8['yellow']('未找到可用应用。')),_fallbackOrSkip();const _0x232951=await promptSingleAppSelection(_0x3a3e3e);if(_0x232951===_0x1a75f8(0x1a2))return'';if(_0x232951===_0x1a75f8(0x1b3))return promptCustomAppcode();return _0x232951[_0x1a75f8(0x1b5)];}export async function selectMultipleApps(_0x50c665){const _0x4a1a92=a37_0x5aa7;console[_0x4a1a92(0x1b2)](_0x4a1a92(0x1a3));let _0x58d30f;try{_0x58d30f=await withActiveCookie(_0x50c665,()=>listRemoteApps());}catch(_0x3f3a5e){console[_0x4a1a92(0x1b2)](_0x4a1a92(0x199));if(_0x3f3a5e instanceof Error)console[_0x4a1a92(0x1b2)](_0x4a1a92(0x1b0)+_0x3f3a5e['message']+')');return _0x4a1a92(0x1b3);}if(_0x58d30f['length']===0x0)return console[_0x4a1a92(0x1b2)](_0x4a1a92(0x1af)),_0x4a1a92(0x1b3);return promptAppSelection(_0x58d30f);}async function _fallbackOrSkip(){const _0x2c0418=a37_0x5aa7,_0x4c9684=await select({'message':'App\x20Code:','choices':[{'name':a37_0x1fc9b8[_0x2c0418(0x1ae)](_0x2c0418(0x19e)),'value':'skip'},{'name':a37_0x1fc9b8[_0x2c0418(0x19c)](_0x2c0418(0x196)),'value':_0x2c0418(0x19f)}]});if(_0x4c9684==='skip')return'';return promptCustomAppcode();}
1
+ (function(_0x181f89,_0x44317c){const _0xf730d6=a37_0x4b60,_0x21338b=_0x181f89();while(!![]){try{const _0x453201=parseInt(_0xf730d6(0x71))/0x1+-parseInt(_0xf730d6(0x81))/0x2+parseInt(_0xf730d6(0x78))/0x3*(-parseInt(_0xf730d6(0x6d))/0x4)+-parseInt(_0xf730d6(0x77))/0x5+-parseInt(_0xf730d6(0x87))/0x6+parseInt(_0xf730d6(0x75))/0x7*(parseInt(_0xf730d6(0x7c))/0x8)+parseInt(_0xf730d6(0x6c))/0x9;if(_0x453201===_0x44317c)break;else _0x21338b['push'](_0x21338b['shift']());}catch(_0x19f8b9){_0x21338b['push'](_0x21338b['shift']());}}}(a37_0x1064,0x3da93));import{input,checkbox,select}from'@inquirer/prompts';function a37_0x1064(){const _0x2e11d0=['includes','\x20\x20(','\x0a未找到可用应用。','获取到\x20','6914088YkAudk','157472SVYlHd','map','gray','✎\x20手动输入','258721srAYSM','Invalid\x20App\x20Code','未找到可用应用。','length','2430491iJUuwK','\x0a无法获取远程应用列表,请手动输入。','1033585LNCLmq','33vyhlOJ','正在获取可用应用列表...','yellow','(跳过,稍后配置)','8jCiKlc','skip','trim','valid','custom','30906axMzsM','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','appCode','无法获取远程应用列表,请手动输入。','请选择要绑定的应用:','appName','2798310Tayrkx','message','✎\x20自定义输入\x20appcode'];a37_0x1064=function(){return _0x2e11d0;};return a37_0x1064();}import a37_0x48c2cb from'chalk';import{validateAppcode}from'../../commands/common/validate.js';function a37_0x4b60(_0x3f8e8e,_0x55cae8){_0x3f8e8e=_0x3f8e8e-0x66;const _0x10643a=a37_0x1064();let _0x4b607c=_0x10643a[_0x3f8e8e];return _0x4b607c;}import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export async function promptCustomAppcode(){const _0x3894de=await input({'message':'请输入\x20App\x20Code:','validate':_0x1469f0=>{const _0x105f2f=a37_0x4b60,_0x29621a=validateAppcode(_0x1469f0[_0x105f2f(0x7e)]());return _0x29621a[_0x105f2f(0x7f)]||_0x29621a['message']||_0x105f2f(0x72);}});return _0x3894de['trim']();}export async function promptAppSelection(_0x17830b){const _0x29b4e4=a37_0x4b60,_0x5e7509=[{'name':a37_0x48c2cb[_0x29b4e4(0x7a)](_0x29b4e4(0x67)),'value':-0x1},..._0x17830b['map']((_0x293858,_0x24e9a5)=>({'name':_0x293858[_0x29b4e4(0x86)]+'\x20\x20'+a37_0x48c2cb[_0x29b4e4(0x6f)]('('+_0x293858['appCode']+')'),'value':_0x24e9a5}))],_0x1ef08f=await checkbox({'message':_0x29b4e4(0x6b)+a37_0x48c2cb['cyan'](_0x17830b['length'])+'\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','choices':_0x5e7509,'loop':![]});if(_0x1ef08f[_0x29b4e4(0x68)](-0x1))return'custom';if(_0x1ef08f[_0x29b4e4(0x74)]===0x0)return _0x29b4e4(0x80);return _0x1ef08f['map'](_0x4515f2=>_0x17830b[_0x4515f2]);}export async function promptSingleAppSelection(_0x3032de){const _0x3c94e7=a37_0x4b60,_0x33a2dc=[{'name':a37_0x48c2cb['gray']('(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)'),'value':_0x3c94e7(0x7d)},{'name':a37_0x48c2cb['yellow'](_0x3c94e7(0x67)),'value':_0x3c94e7(0x80)},..._0x3032de[_0x3c94e7(0x6e)](_0x214656=>({'name':_0x214656[_0x3c94e7(0x86)]+'\x20\x20'+a37_0x48c2cb[_0x3c94e7(0x6f)]('('+_0x214656[_0x3c94e7(0x83)]+')'),'value':_0x214656[_0x3c94e7(0x83)]}))],_0x26e60e=await select({'message':_0x3c94e7(0x85),'choices':_0x33a2dc});if(_0x26e60e===_0x3c94e7(0x7d))return _0x3c94e7(0x7d);if(_0x26e60e===_0x3c94e7(0x80))return _0x3c94e7(0x80);return _0x3032de['find'](_0x2b74b8=>_0x2b74b8[_0x3c94e7(0x83)]===_0x26e60e);}export async function selectSingleAppcode(_0x28f67a){const _0x20f5fa=a37_0x4b60;if(!_0x28f67a)return writeCliSideChannelLine(a37_0x48c2cb[_0x20f5fa(0x6f)](_0x20f5fa(0x82))),_fallbackOrSkip();writeCliSideChannelLine('正在获取可用应用列表...');let _0x51faab;try{_0x51faab=await withActiveCookie(_0x28f67a,()=>listRemoteApps());}catch(_0x1368a7){writeCliSideChannelLine(a37_0x48c2cb[_0x20f5fa(0x7a)](_0x20f5fa(0x84)));if(_0x1368a7 instanceof Error)writeCliSideChannelLine(a37_0x48c2cb[_0x20f5fa(0x6f)](_0x20f5fa(0x69)+_0x1368a7[_0x20f5fa(0x66)]+')'));return _fallbackOrSkip();}if(_0x51faab[_0x20f5fa(0x74)]===0x0)return writeCliSideChannelLine(a37_0x48c2cb[_0x20f5fa(0x7a)](_0x20f5fa(0x73))),_fallbackOrSkip();const _0x136c18=await promptSingleAppSelection(_0x51faab);if(_0x136c18===_0x20f5fa(0x7d))return'';if(_0x136c18===_0x20f5fa(0x80))return promptCustomAppcode();return _0x136c18[_0x20f5fa(0x83)];}export async function selectMultipleApps(_0x843b4d){const _0x3694aa=a37_0x4b60;writeCliSideChannelLine(_0x3694aa(0x79));let _0x5af90b;try{_0x5af90b=await withActiveCookie(_0x843b4d,()=>listRemoteApps());}catch(_0x1fd983){writeCliSideChannelLine(_0x3694aa(0x76));if(_0x1fd983 instanceof Error)writeCliSideChannelLine(_0x3694aa(0x69)+_0x1fd983[_0x3694aa(0x66)]+')');return _0x3694aa(0x80);}if(_0x5af90b[_0x3694aa(0x74)]===0x0)return writeCliSideChannelLine(_0x3694aa(0x6a)),_0x3694aa(0x80);return promptAppSelection(_0x5af90b);}async function _fallbackOrSkip(){const _0x4e409d=a37_0x4b60,_0xf236e5=await select({'message':'App\x20Code:','choices':[{'name':a37_0x48c2cb[_0x4e409d(0x6f)](_0x4e409d(0x7b)),'value':_0x4e409d(0x7d)},{'name':a37_0x48c2cb[_0x4e409d(0x7a)](_0x4e409d(0x70)),'value':'manual'}]});if(_0xf236e5===_0x4e409d(0x7d))return'';return promptCustomAppcode();}
@@ -1 +1 @@
1
- const a38_0x9a5c6b=a38_0x1474;function a38_0xfb56(){const _0x4f9a9a=['4858495jQOgMV','7204414BhrOBS','530376pMItUG','sqlcode','755754QFmYJj','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','3006651nGfNaE','appcode','string','Dataset\x20code\x20(32-char\x20hex\x20UUID)','code','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','4222696neZGBA','1378122XTlXVr','8sGdehz'];a38_0xfb56=function(){return _0x4f9a9a;};return a38_0xfb56();}(function(_0x3ff5c9,_0x1631a9){const _0xfffb38=a38_0x1474,_0x2f133e=_0x3ff5c9();while(!![]){try{const _0x3d90a7=-parseInt(_0xfffb38(0xad))/0x1+-parseInt(_0xfffb38(0xa7))/0x2+-parseInt(_0xfffb38(0xb0))/0x3+parseInt(_0xfffb38(0xa6))/0x4+parseInt(_0xfffb38(0xa9))/0x5+parseInt(_0xfffb38(0xab))/0x6+parseInt(_0xfffb38(0xaa))/0x7*(parseInt(_0xfffb38(0xa8))/0x8);if(_0x3d90a7===_0x1631a9)break;else _0x2f133e['push'](_0x2f133e['shift']());}catch(_0xa86809){_0x2f133e['push'](_0x2f133e['shift']());}}}(a38_0xfb56,0xaa653));export const CODE_FLAG={'name':a38_0x9a5c6b(0xa3),'type':'string','required':!![],'description':a38_0x9a5c6b(0xa2),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a38_0x9a5c6b(0xa4)}};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const SQLCODE_FLAG={'name':a38_0x9a5c6b(0xac),'type':a38_0x9a5c6b(0xa1),'required':!![],'description':a38_0x9a5c6b(0xae),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a38_0x9a5c6b(0xa5)}};export const APPCODE_FLAG_OPTIONAL={'name':a38_0x9a5c6b(0xb1),'type':a38_0x9a5c6b(0xa1),'required':![],'description':a38_0x9a5c6b(0xaf)};function a38_0x1474(_0x51c8b2,_0x43b042){_0x51c8b2=_0x51c8b2-0xa1;const _0xfb56d5=a38_0xfb56();let _0x14745c=_0xfb56d5[_0x51c8b2];return _0x14745c;}export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};
1
+ const a38_0x199a73=a38_0x4734;(function(_0x3cfa80,_0x9dfc2e){const _0xaf181d=a38_0x4734,_0x24a62f=_0x3cfa80();while(!![]){try{const _0x4395b6=parseInt(_0xaf181d(0x1b7))/0x1*(parseInt(_0xaf181d(0x1b9))/0x2)+-parseInt(_0xaf181d(0x1b0))/0x3*(-parseInt(_0xaf181d(0x1b2))/0x4)+-parseInt(_0xaf181d(0x1c2))/0x5+-parseInt(_0xaf181d(0x1b4))/0x6*(-parseInt(_0xaf181d(0x1b5))/0x7)+-parseInt(_0xaf181d(0x1b8))/0x8*(-parseInt(_0xaf181d(0x1ba))/0x9)+-parseInt(_0xaf181d(0x1c5))/0xa+-parseInt(_0xaf181d(0x1b1))/0xb;if(_0x4395b6===_0x9dfc2e)break;else _0x24a62f['push'](_0x24a62f['shift']());}catch(_0x4bbc80){_0x24a62f['push'](_0x24a62f['shift']());}}}(a38_0x17c2,0xce71c));function a38_0x17c2(){const _0x41e3e4=['Dataset\x20code\x20(32-char\x20hex\x20UUID)','8994160WEewhw','187662CtuLKJ','15699981ShKgvF','8VfgDUp','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','5070KBXcRt','11746lVRxIM','number','1901RAAQpc','2976608NTWkbO','1330LknCwf','36LeuhvM','code','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','Database\x20product\x20type','MYSQL','string','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','sqlcode','5616020nPhjgh','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'];a38_0x17c2=function(){return _0x41e3e4;};return a38_0x17c2();}export const CODE_FLAG={'name':a38_0x199a73(0x1bb),'type':a38_0x199a73(0x1bf),'required':!![],'description':a38_0x199a73(0x1c4),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a38_0x199a73(0x1bc)}};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const SQLCODE_FLAG={'name':a38_0x199a73(0x1c1),'type':a38_0x199a73(0x1bf),'required':!![],'description':a38_0x199a73(0x1c0),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a38_0x199a73(0x1c3)}};export const APPCODE_FLAG_OPTIONAL={'name':'appcode','type':a38_0x199a73(0x1bf),'required':![],'description':a38_0x199a73(0x1b3)};function a38_0x4734(_0x48b179,_0x503895){_0x48b179=_0x48b179-0x1b0;const _0x17c2be=a38_0x17c2();let _0x4734c5=_0x17c2be[_0x48b179];return _0x4734c5;}export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a38_0x199a73(0x1b6),'required':!![],'description':'Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)'};export const DB_TYPE_FLAG={'name':'dbtype','type':a38_0x199a73(0x1bf),'required':!![],'description':a38_0x199a73(0x1bd),'enum':[a38_0x199a73(0x1be),'POSTGRESQL']};
@@ -1 +1 @@
1
- function a39_0x15e8(_0x38d2ae,_0x249ff8){_0x38d2ae=_0x38d2ae-0x154;const _0x582752=a39_0x5827();let _0x15e893=_0x582752[_0x38d2ae];return _0x15e893;}(function(_0xc1aed,_0x455214){const _0x2eb2a9=a39_0x15e8,_0x5c0515=_0xc1aed();while(!![]){try{const _0x12a13d=-parseInt(_0x2eb2a9(0x159))/0x1+-parseInt(_0x2eb2a9(0x156))/0x2+parseInt(_0x2eb2a9(0x15d))/0x3*(parseInt(_0x2eb2a9(0x15e))/0x4)+-parseInt(_0x2eb2a9(0x154))/0x5+-parseInt(_0x2eb2a9(0x15a))/0x6*(-parseInt(_0x2eb2a9(0x15c))/0x7)+parseInt(_0x2eb2a9(0x15f))/0x8+-parseInt(_0x2eb2a9(0x15b))/0x9;if(_0x12a13d===_0x455214)break;else _0x5c0515['push'](_0x5c0515['shift']());}catch(_0x3d4de2){_0x5c0515['push'](_0x5c0515['shift']());}}}(a39_0x5827,0x8b989));export function validateAppcode(_0x53dfc2){const _0x37025a=a39_0x15e8,_0x17c277=_0x53dfc2[_0x37025a(0x155)]();if(!_0x17c277)return{'valid':![],'message':_0x37025a(0x157)};if(_0x17c277['length']>0x64)return{'valid':![],'message':'App\x20Code\x20cannot\x20exceed\x20100\x20characters'};if(!/^[A-Za-z0-9_-]+$/[_0x37025a(0x158)](_0x17c277))return{'valid':![],'message':'Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed'};return{'valid':!![]};}function a39_0x5827(){const _0x11fe42=['test','1114889TWPPyJ','978KbmoTy','196470pRuRQn','44779QALAbB','3yEHUWb','2382076WcfldY','3161000pflpXc','1501100UdNQCQ','trim','49262HnEZLM','App\x20Code\x20cannot\x20be\x20empty'];a39_0x5827=function(){return _0x11fe42;};return a39_0x5827();}
1
+ function a39_0x1304(){const _0x34869f=['length','trim','407dvGjOi','App\x20Code\x20cannot\x20exceed\x20100\x20characters','1003690dQazLM','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','4815160sKnMwN','902010RIDsBU','App\x20Code\x20cannot\x20be\x20empty','782382vQvymh','4sMmiAb','14ChItwR','19883316hdGOFD','102680cqnTCs','3kXhpua','2603766pPVbsT','9caNCJt','13mJqyEA'];a39_0x1304=function(){return _0x34869f;};return a39_0x1304();}function a39_0x384e(_0x5770d9,_0x8dbf3){_0x5770d9=_0x5770d9-0x70;const _0x130467=a39_0x1304();let _0x384e18=_0x130467[_0x5770d9];return _0x384e18;}(function(_0x169fd4,_0x48a98f){const _0x11c30a=a39_0x384e,_0x483b7d=_0x169fd4();while(!![]){try{const _0x54d4fa=-parseInt(_0x11c30a(0x7a))/0x1+-parseInt(_0x11c30a(0x75))/0x2*(-parseInt(_0x11c30a(0x7f))/0x3)+parseInt(_0x11c30a(0x7b))/0x4*(parseInt(_0x11c30a(0x78))/0x5)+parseInt(_0x11c30a(0x80))/0x6*(-parseInt(_0x11c30a(0x7c))/0x7)+parseInt(_0x11c30a(0x77))/0x8*(-parseInt(_0x11c30a(0x81))/0x9)+parseInt(_0x11c30a(0x7e))/0xa*(parseInt(_0x11c30a(0x73))/0xb)+parseInt(_0x11c30a(0x7d))/0xc*(parseInt(_0x11c30a(0x70))/0xd);if(_0x54d4fa===_0x48a98f)break;else _0x483b7d['push'](_0x483b7d['shift']());}catch(_0x6ec32e){_0x483b7d['push'](_0x483b7d['shift']());}}}(a39_0x1304,0x71fdb));export function validateAppcode(_0x4e7b13){const _0x20ee9f=a39_0x384e,_0x3a5e41=_0x4e7b13[_0x20ee9f(0x72)]();if(!_0x3a5e41)return{'valid':![],'message':_0x20ee9f(0x79)};if(_0x3a5e41[_0x20ee9f(0x71)]>0x64)return{'valid':![],'message':_0x20ee9f(0x74)};if(!/^[A-Za-z0-9_-]+$/['test'](_0x3a5e41))return{'valid':![],'message':_0x20ee9f(0x76)};return{'valid':!![]};}
@@ -1 +1 @@
1
- const a40_0x1f2baa=a40_0x5ace;(function(_0x4af94b,_0xbe6af2){const _0x954128=a40_0x5ace,_0x1e0255=_0x4af94b();while(!![]){try{const _0x3640a2=parseInt(_0x954128(0x8e))/0x1+parseInt(_0x954128(0x97))/0x2+-parseInt(_0x954128(0x93))/0x3+parseInt(_0x954128(0x89))/0x4+parseInt(_0x954128(0x88))/0x5+parseInt(_0x954128(0x8c))/0x6+-parseInt(_0x954128(0x98))/0x7*(parseInt(_0x954128(0x8a))/0x8);if(_0x3640a2===_0xbe6af2)break;else _0x1e0255['push'](_0x1e0255['shift']());}catch(_0x205846){_0x1e0255['push'](_0x1e0255['shift']());}}}(a40_0x1757,0x8fd24));function a40_0x1757(){const _0x2cec92=['5255394aqoVWA','read','922746peSIIh','key','\x20config\x20get\x20--key\x20<key>','object','str','1034052FlYdQq','app','Key\x20not\x20found:\x20','appcode','394310rmRPHw','2023Bvsinl','Get\x20a\x20config\x20value\x20by\x20key','Missing\x20key.','Config\x20key\x20to\x20read','validation','config','943660UpSUyu','124992uYXryL','35488BQaoMm','get'];a40_0x1757=function(){return _0x2cec92;};return a40_0x1757();}import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a40_0x5ace(_0x60845f,_0x511cba){_0x60845f=_0x60845f-0x86;const _0x17577d=a40_0x1757();let _0x5ace48=_0x17577d[_0x60845f];return _0x5ace48;}async function execute(_0x3ada1d){const _0x37bec1=a40_0x5ace,_0x3223ea=_0x3ada1d[_0x37bec1(0x92)](_0x37bec1(0x8f));if(!_0x3223ea)throw CliErrors['validation'](_0x37bec1(0x9a),'Usage:\x20'+CLI_BIN_NAME+_0x37bec1(0x90));const _0x1c790a=readConfig(),_0x34a593=_0x3223ea===_0x37bec1(0x94)?_0x37bec1(0x96):_0x3223ea,_0x3d48a9=_0x1c790a[_0x34a593];if(_0x3d48a9===undefined)throw CliErrors[_0x37bec1(0x86)](_0x37bec1(0x95)+_0x3223ea);return{'ok':!![],'data':typeof _0x3d48a9===_0x37bec1(0x91)?_0x3d48a9:{[_0x34a593]:_0x3d48a9},'message':typeof _0x3d48a9===_0x37bec1(0x91)?undefined:String(_0x3d48a9)};}export const configGetDefinition={'service':a40_0x1f2baa(0x87),'command':a40_0x1f2baa(0x8b),'description':a40_0x1f2baa(0x99),'risk':a40_0x1f2baa(0x8d),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a40_0x1f2baa(0x8f),'type':'string','description':a40_0x1f2baa(0x9b),'required':!![]}],'execute':execute};
1
+ function a40_0x4b4a(_0x178191,_0x3cde3a){_0x178191=_0x178191-0x93;const _0x2847db=a40_0x2847();let _0x4b4a5d=_0x2847db[_0x178191];return _0x4b4a5d;}const a40_0x4efd8f=a40_0x4b4a;(function(_0x2a2ea9,_0x1a2229){const _0x12d1da=a40_0x4b4a,_0xe31e25=_0x2a2ea9();while(!![]){try{const _0x56a137=parseInt(_0x12d1da(0xa2))/0x1*(parseInt(_0x12d1da(0xa9))/0x2)+parseInt(_0x12d1da(0x98))/0x3*(parseInt(_0x12d1da(0xa5))/0x4)+parseInt(_0x12d1da(0xa0))/0x5+parseInt(_0x12d1da(0x9b))/0x6*(-parseInt(_0x12d1da(0x95))/0x7)+-parseInt(_0x12d1da(0x9d))/0x8*(-parseInt(_0x12d1da(0x94))/0x9)+parseInt(_0x12d1da(0xaa))/0xa*(-parseInt(_0x12d1da(0x9c))/0xb)+-parseInt(_0x12d1da(0x99))/0xc;if(_0x56a137===_0x1a2229)break;else _0xe31e25['push'](_0xe31e25['shift']());}catch(_0x316da2){_0xe31e25['push'](_0xe31e25['shift']());}}}(a40_0x2847,0x76547));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a40_0x2847(){const _0xb78c18=['key','validation','4qvJebh','string','Usage:\x20','Key\x20not\x20found:\x20','100554NpxWMC','117510bBBvSI','\x20config\x20get\x20--key\x20<key>','2169XWnFVS','4493566wvdKFX','read','app','1879131YYoCem','22002888GiVnJY','config','6ZLdafH','286sinJtC','31784lRHAuf','Missing\x20key.','Config\x20key\x20to\x20read','3632920bIZuwI','Get\x20a\x20config\x20value\x20by\x20key','19jsTgeK'];a40_0x2847=function(){return _0xb78c18;};return a40_0x2847();}async function execute(_0x1ff021){const _0x47613f=a40_0x4b4a,_0x4d7bb5=_0x1ff021['str'](_0x47613f(0xa3));if(!_0x4d7bb5)throw CliErrors[_0x47613f(0xa4)](_0x47613f(0x9e),_0x47613f(0xa7)+CLI_BIN_NAME+_0x47613f(0x93));const _0x3a52d5=readConfig(),_0x922c3=_0x4d7bb5===_0x47613f(0x97)?'appcode':_0x4d7bb5,_0x428a12=_0x3a52d5[_0x922c3];if(_0x428a12===undefined)throw CliErrors[_0x47613f(0xa4)](_0x47613f(0xa8)+_0x4d7bb5);return{'ok':!![],'data':typeof _0x428a12==='object'?_0x428a12:{[_0x922c3]:_0x428a12},'message':typeof _0x428a12==='object'?undefined:String(_0x428a12)};}export const configGetDefinition={'service':a40_0x4efd8f(0x9a),'command':'get','description':a40_0x4efd8f(0xa1),'risk':a40_0x4efd8f(0x96),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a40_0x4efd8f(0xa3),'type':a40_0x4efd8f(0xa6),'description':a40_0x4efd8f(0x9f),'required':!![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x760c4d,_0x348f54){const _0x41627b=a41_0x5b36,_0x5c473b=_0x760c4d();while(!![]){try{const _0x3f508a=-parseInt(_0x41627b(0x10e))/0x1*(-parseInt(_0x41627b(0x111))/0x2)+-parseInt(_0x41627b(0x115))/0x3*(parseInt(_0x41627b(0x10b))/0x4)+-parseInt(_0x41627b(0x10f))/0x5+parseInt(_0x41627b(0x113))/0x6*(-parseInt(_0x41627b(0x110))/0x7)+-parseInt(_0x41627b(0x10c))/0x8+-parseInt(_0x41627b(0x114))/0x9*(-parseInt(_0x41627b(0x10d))/0xa)+parseInt(_0x41627b(0x112))/0xb*(parseInt(_0x41627b(0x116))/0xc);if(_0x3f508a===_0x348f54)break;else _0x5c473b['push'](_0x5c473b['shift']());}catch(_0x422bda){_0x5c473b['push'](_0x5c473b['shift']());}}}(a41_0x219d,0xc3c40));function a41_0x5b36(_0x1e1e70,_0x513a66){_0x1e1e70=_0x1e1e70-0x10b;const _0x219d0e=a41_0x219d();let _0x5b36b5=_0x219d0e[_0x1e1e70];return _0x5b36b5;}import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a41_0x219d(){const _0x397571=['242HSGkXy','6qtuNPA','2685141kyxsTl','60DZSuuO','1794624TqGbDw','46964XZLgCE','9967224qntLju','20chlMAX','2NNGgQd','5664605ssDVXT','4488162WiJSZl','169824rkcCCl'];a41_0x219d=function(){return _0x397571;};return a41_0x219d();}import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
1
+ function a41_0x55d2(_0x1523a,_0x35aa3e){_0x1523a=_0x1523a-0x1bb;const _0x417fa8=a41_0x417f();let _0x55d278=_0x417fa8[_0x1523a];return _0x55d278;}(function(_0x5eab6d,_0x4893c5){const _0x821e4f=a41_0x55d2,_0x28b8d8=_0x5eab6d();while(!![]){try{const _0xf7d772=-parseInt(_0x821e4f(0x1bf))/0x1*(parseInt(_0x821e4f(0x1c4))/0x2)+-parseInt(_0x821e4f(0x1c5))/0x3*(-parseInt(_0x821e4f(0x1c2))/0x4)+-parseInt(_0x821e4f(0x1c1))/0x5*(parseInt(_0x821e4f(0x1bb))/0x6)+parseInt(_0x821e4f(0x1bd))/0x7+parseInt(_0x821e4f(0x1bc))/0x8+parseInt(_0x821e4f(0x1c0))/0x9*(parseInt(_0x821e4f(0x1c3))/0xa)+-parseInt(_0x821e4f(0x1be))/0xb;if(_0xf7d772===_0x4893c5)break;else _0x28b8d8['push'](_0x28b8d8['shift']());}catch(_0x5bca23){_0x28b8d8['push'](_0x28b8d8['shift']());}}}(a41_0x417f,0x33a14));import{configListDefinition}from'../../commands/config/list.js';function a41_0x417f(){const _0x5e915a=['2900424dEAMfp','2257339ZJRpiv','7470430opzrcx','1pnCGll','9nOEKhs','4760EfFlfY','4vwIyxa','3453190ywIUae','220312IcjngQ','279663ygfWKU','774BfYJck'];a41_0x417f=function(){return _0x5e915a;};return a41_0x417f();}import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
@@ -1 +1 @@
1
- const a42_0x628a10=a42_0x5d55;(function(_0x3ab4fc,_0x906207){const _0x4364d7=a42_0x5d55,_0x4f935b=_0x3ab4fc();while(!![]){try{const _0x35e068=parseInt(_0x4364d7(0x199))/0x1*(-parseInt(_0x4364d7(0x1a5))/0x2)+parseInt(_0x4364d7(0x1aa))/0x3+-parseInt(_0x4364d7(0x1a2))/0x4*(parseInt(_0x4364d7(0x19e))/0x5)+parseInt(_0x4364d7(0x19a))/0x6*(-parseInt(_0x4364d7(0x1a1))/0x7)+-parseInt(_0x4364d7(0x1a7))/0x8*(parseInt(_0x4364d7(0x19f))/0x9)+-parseInt(_0x4364d7(0x1a8))/0xa+-parseInt(_0x4364d7(0x19c))/0xb*(-parseInt(_0x4364d7(0x1a3))/0xc);if(_0x35e068===_0x906207)break;else _0x4f935b['push'](_0x4f935b['shift']());}catch(_0x22a53c){_0x4f935b['push'](_0x4f935b['shift']());}}}(a42_0x1764,0x9f28f));function a42_0x5d55(_0x2c593d,_0x20fb55){_0x2c593d=_0x2c593d-0x199;const _0x1764a4=a42_0x1764();let _0x5d55ce=_0x1764a4[_0x2c593d];return _0x5d55ce;}import{readScopedConfig}from'../../commands/config/shared.js';function a42_0x1764(){const _0x4ca947=['109299DBOzKH','1aLrLPk','558tGSQZt','config','39998992MQHhpT','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','310reLeFy','5436ylwlWW','List\x20all\x20config\x20values','34538KlnJeX','28592GHYNrV','12AxmoHI','read','1663342eipXeI','bool','9104iUafwX','5997250LbNvne','global'];a42_0x1764=function(){return _0x4ca947;};return a42_0x1764();}import{readConfig}from'../../utils/config.js';async function execute(_0x4a2ac0){const _0x528549=a42_0x5d55,_0x187321=_0x4a2ac0[_0x528549(0x1a6)](_0x528549(0x1a9))?readScopedConfig(_0x528549(0x1a9)):readConfig();return{'ok':!![],'data':_0x187321};}export const configListDefinition={'service':a42_0x628a10(0x19b),'command':'list','description':a42_0x628a10(0x1a0),'risk':a42_0x628a10(0x1a4),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a42_0x628a10(0x1a9),'type':'boolean','description':a42_0x628a10(0x19d),'default':![]}],'execute':execute};
1
+ const a42_0x28daf0=a42_0x466d;(function(_0x52a6a1,_0x5975b0){const _0x589c79=a42_0x466d,_0x109419=_0x52a6a1();while(!![]){try{const _0x4abc7b=parseInt(_0x589c79(0x9d))/0x1*(-parseInt(_0x589c79(0x9f))/0x2)+-parseInt(_0x589c79(0x93))/0x3*(parseInt(_0x589c79(0x91))/0x4)+-parseInt(_0x589c79(0x9c))/0x5+parseInt(_0x589c79(0x99))/0x6+-parseInt(_0x589c79(0x94))/0x7*(parseInt(_0x589c79(0x97))/0x8)+-parseInt(_0x589c79(0x92))/0x9+parseInt(_0x589c79(0x9b))/0xa;if(_0x4abc7b===_0x5975b0)break;else _0x109419['push'](_0x109419['shift']());}catch(_0xcfc54e){_0x109419['push'](_0x109419['shift']());}}}(a42_0x2353,0x45e2c));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x1f09d9){const _0x1e7925=a42_0x466d,_0x2d5a55=_0x1f09d9[_0x1e7925(0x98)](_0x1e7925(0x9a))?readScopedConfig('global'):readConfig();return{'ok':!![],'data':_0x2d5a55};}function a42_0x2353(){const _0x25bc35=['88384knHTKN','3346920NWUAio','27pCSqEd','28eWuopD','config','read','638512IYSEMJ','bool','2627826iARdfK','global','9546510ugkGzS','427390VYeVKZ','761FfGdtt','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','344LmiTNb','list'];a42_0x2353=function(){return _0x25bc35;};return a42_0x2353();}function a42_0x466d(_0x1f228c,_0x550e8f){_0x1f228c=_0x1f228c-0x91;const _0x235362=a42_0x2353();let _0x466d74=_0x235362[_0x1f228c];return _0x466d74;}export const configListDefinition={'service':a42_0x28daf0(0x95),'command':a42_0x28daf0(0xa0),'description':'List\x20all\x20config\x20values','risk':a42_0x28daf0(0x96),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'global','type':'boolean','description':a42_0x28daf0(0x9e),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- function a43_0xa603(){const _0x5731f5=['app','production','bool','2072492foNkVm','Missing\x20value.','write','218383MdcBiC','value','\x20set\x20to:\x20','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','12000456arrtVJ','Usage:\x20','boolean','env','global','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','online','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','validation','1443862ZXbKjS','196102onICLE','length','Config\x20value','string','str','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','3195684nzJofB','726774nyAvYZ','Missing\x20key.','440relbBq','set','locale','33JEOblF','key','daily','appcode','config','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily,\x20online','14jJOMTZ','5UOkANk'];a43_0xa603=function(){return _0x5731f5;};return a43_0xa603();}const a43_0x315a50=a43_0xc5e4;(function(_0x388335,_0x52baef){const _0xbfa94=a43_0xc5e4,_0x11b0d9=_0x388335();while(!![]){try{const _0x568e1d=-parseInt(_0xbfa94(0x1e1))/0x1+parseInt(_0xbfa94(0x1e2))/0x2*(parseInt(_0xbfa94(0x1c5))/0x3)+-parseInt(_0xbfa94(0x1d0))/0x4*(-parseInt(_0xbfa94(0x1cc))/0x5)+parseInt(_0xbfa94(0x1c0))/0x6*(-parseInt(_0xbfa94(0x1cb))/0x7)+parseInt(_0xbfa94(0x1d7))/0x8+parseInt(_0xbfa94(0x1e8))/0x9+-parseInt(_0xbfa94(0x1c2))/0xa*(parseInt(_0xbfa94(0x1d3))/0xb);if(_0x568e1d===_0x52baef)break;else _0x11b0d9['push'](_0x11b0d9['shift']());}catch(_0x4446f0){_0x11b0d9['push'](_0x11b0d9['shift']());}}}(a43_0xa603,0xd9d05));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';async function execute(_0x40a19c){const _0x490ac4=a43_0xc5e4,_0x3d2cc1=_0x40a19c[_0x490ac4(0x1e6)](_0x490ac4(0x1c6)),_0x86f896=_0x40a19c[_0x490ac4(0x1e6)](_0x490ac4(0x1d4));if(!_0x3d2cc1)throw CliErrors['validation'](_0x490ac4(0x1c1),_0x490ac4(0x1d8)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x86f896===undefined||_0x86f896==='')throw CliErrors[_0x490ac4(0x1e0)](_0x490ac4(0x1d1),_0x490ac4(0x1d8)+CLI_BIN_NAME+_0x490ac4(0x1e7));if(_0x86f896[_0x490ac4(0x1e3)]>0x1f4)throw CliErrors[_0x490ac4(0x1e0)](_0x490ac4(0x1dc));if(_0x3d2cc1===_0x490ac4(0x1da)&&![_0x490ac4(0x1dd),_0x490ac4(0x1ce),_0x490ac4(0x1c7)]['includes'](_0x86f896))throw CliErrors[_0x490ac4(0x1e0)](_0x490ac4(0x1ca));if(_0x3d2cc1==='riskLevel')throw CliErrors[_0x490ac4(0x1e0)](_0x490ac4(0x1df));if(_0x3d2cc1==='locale'&&!normalizeLocale(_0x86f896))throw CliErrors[_0x490ac4(0x1e0)]('Invalid\x20locale\x20value.',_0x490ac4(0x1de));const _0x5786b={'global':_0x40a19c[_0x490ac4(0x1cf)](_0x490ac4(0x1db))},_0x58476d=resolveWriteScope(_0x5786b),_0x374176=readScopedConfig(_0x58476d);let _0x65af4d=_0x3d2cc1,_0x589437=_0x86f896;_0x3d2cc1===_0x490ac4(0x1cd)&&(_0x65af4d=_0x490ac4(0x1c8),delete _0x374176['app']);_0x3d2cc1==='appcode'&&delete _0x374176[_0x490ac4(0x1cd)];_0x3d2cc1===_0x490ac4(0x1c4)&&(_0x589437=normalizeLocale(_0x86f896));_0x374176[_0x65af4d]=_0x589437,writeScopedConfig(_0x374176,_0x58476d);const _0xd517cb=_0x58476d===_0x490ac4(0x1db)?'Global':'Project';return{'ok':!![],'message':'✓\x20'+_0xd517cb+'\x20'+_0x65af4d+_0x490ac4(0x1d5)+_0x589437};}function a43_0xc5e4(_0x46293f,_0x488fc4){_0x46293f=_0x46293f-0x1c0;const _0xa60374=a43_0xa603();let _0xc5e4d8=_0xa60374[_0x46293f];return _0xc5e4d8;}export const configSetDefinition={'service':a43_0x315a50(0x1c9),'command':a43_0x315a50(0x1c3),'description':'Set\x20a\x20config\x20value','risk':a43_0x315a50(0x1d2),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x315a50(0x1c6),'type':a43_0x315a50(0x1e5),'description':'Config\x20key','required':!![]},{'name':a43_0x315a50(0x1d4),'type':'string','description':a43_0x315a50(0x1e4),'required':!![]},{'name':a43_0x315a50(0x1db),'type':a43_0x315a50(0x1d9),'description':a43_0x315a50(0x1d6),'default':![]}],'execute':execute};
1
+ const a43_0x1bf112=a43_0x305b;function a43_0x305b(_0x1d7674,_0x857f1){_0x1d7674=_0x1d7674-0x16a;const _0x5453c8=a43_0x5453();let _0x305bb4=_0x5453c8[_0x1d7674];return _0x305bb4;}(function(_0x43e0b3,_0x9ecff2){const _0x20d5df=a43_0x305b,_0x40ee51=_0x43e0b3();while(!![]){try{const _0x2dc388=parseInt(_0x20d5df(0x16f))/0x1*(parseInt(_0x20d5df(0x17d))/0x2)+parseInt(_0x20d5df(0x17e))/0x3*(-parseInt(_0x20d5df(0x17f))/0x4)+parseInt(_0x20d5df(0x185))/0x5*(-parseInt(_0x20d5df(0x183))/0x6)+parseInt(_0x20d5df(0x180))/0x7+-parseInt(_0x20d5df(0x181))/0x8+-parseInt(_0x20d5df(0x173))/0x9*(-parseInt(_0x20d5df(0x171))/0xa)+-parseInt(_0x20d5df(0x188))/0xb*(parseInt(_0x20d5df(0x179))/0xc);if(_0x2dc388===_0x9ecff2)break;else _0x40ee51['push'](_0x40ee51['shift']());}catch(_0x173429){_0x40ee51['push'](_0x40ee51['shift']());}}}(a43_0x5453,0xab82a));function a43_0x5453(){const _0x53af62=['bool','env','\x20set\x20to:\x20','Usage:\x20','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','boolean','validation','1171619ZMBtUR','appcode','45130GiHqWs','string','2025YcsIaU','str','app','Missing\x20key.','global','config','3804mrrPOP','write','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','Invalid\x20locale\x20value.','2mZOXgW','515493aANQNw','4ZRViqJ','3165134XWOmcw','8848rDBVlm','Project','6447630lVhbun','Missing\x20value.','5euJLdW','set','locale','23914INFBlo','value','riskLevel','Config\x20value'];a43_0x5453=function(){return _0x53af62;};return a43_0x5453();}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';async function execute(_0x1fb08a){const _0x2849e1=a43_0x305b,_0x37202f=_0x1fb08a[_0x2849e1(0x174)]('key'),_0x544002=_0x1fb08a['str'](_0x2849e1(0x189));if(!_0x37202f)throw CliErrors['validation'](_0x2849e1(0x176),_0x2849e1(0x16a)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x544002===undefined||_0x544002==='')throw CliErrors[_0x2849e1(0x16e)](_0x2849e1(0x184),_0x2849e1(0x16a)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x544002['length']>0x1f4)throw CliErrors[_0x2849e1(0x16e)]('Config\x20value\x20is\x20invalid\x20or\x20too\x20long.');if(_0x37202f===_0x2849e1(0x18a))throw CliErrors['validation'](_0x2849e1(0x17b));if(_0x37202f===_0x2849e1(0x187)&&!normalizeLocale(_0x544002))throw CliErrors[_0x2849e1(0x16e)](_0x2849e1(0x17c),'Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US');const _0x257bdb={'global':_0x1fb08a[_0x2849e1(0x18c)]('global')},_0x2c2a9f=resolveWriteScope(_0x257bdb),_0x29bdd9=readScopedConfig(_0x2c2a9f);let _0x53861b=_0x37202f,_0x47b6c1=_0x544002;_0x37202f===_0x2849e1(0x175)&&(_0x53861b='appcode',delete _0x29bdd9[_0x2849e1(0x175)]);_0x37202f===_0x2849e1(0x170)&&delete _0x29bdd9[_0x2849e1(0x175)];_0x37202f===_0x2849e1(0x187)&&(_0x47b6c1=normalizeLocale(_0x544002));if(_0x37202f===_0x2849e1(0x18d)){_0x47b6c1=normalizeEnv(_0x544002);if(!isProduction(_0x47b6c1)&&!isDaily(_0x47b6c1))throw CliErrors[_0x2849e1(0x16e)]('Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.',_0x2849e1(0x16c));}_0x29bdd9[_0x53861b]=_0x47b6c1,writeScopedConfig(_0x29bdd9,_0x2c2a9f);const _0x2187df=_0x2c2a9f===_0x2849e1(0x177)?'Global':_0x2849e1(0x182);return{'ok':!![],'message':'✓\x20'+_0x2187df+'\x20'+_0x53861b+_0x2849e1(0x18e)+_0x47b6c1};}export const configSetDefinition={'service':a43_0x1bf112(0x178),'command':a43_0x1bf112(0x186),'description':'Set\x20a\x20config\x20value','risk':a43_0x1bf112(0x17a),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a43_0x1bf112(0x172),'description':'Config\x20key','required':!![]},{'name':a43_0x1bf112(0x189),'type':a43_0x1bf112(0x172),'description':a43_0x1bf112(0x18b),'required':!![]},{'name':a43_0x1bf112(0x177),'type':a43_0x1bf112(0x16d),'description':a43_0x1bf112(0x16b),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a44_0xcb9d1e=a44_0xd109;(function(_0x2bc29c,_0x29fe8f){const _0x2a0816=a44_0xd109,_0x370bec=_0x2bc29c();while(!![]){try{const _0x175176=-parseInt(_0x2a0816(0x141))/0x1+-parseInt(_0x2a0816(0x142))/0x2+parseInt(_0x2a0816(0x148))/0x3+-parseInt(_0x2a0816(0x14a))/0x4+parseInt(_0x2a0816(0x14d))/0x5*(-parseInt(_0x2a0816(0x14b))/0x6)+-parseInt(_0x2a0816(0x149))/0x7+parseInt(_0x2a0816(0x140))/0x8*(parseInt(_0x2a0816(0x143))/0x9);if(_0x175176===_0x29fe8f)break;else _0x370bec['push'](_0x370bec['shift']());}catch(_0x281914){_0x370bec['push'](_0x370bec['shift']());}}}(a44_0x5232,0xd8842));function a44_0x5232(){const _0x73c007=['toLowerCase','7016665RSoLSI','8vNtfcM','1493635jheODb','500916hhbwQq','54152001zAHDgS','zh-CN','en-US','project','global','809538IpmFzz','11103841jvmSEF','2664784aueDPE','6DObMXX'];a44_0x5232=function(){return _0x73c007;};return a44_0x5232();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';export{CLI_BIN_NAME};const LOCALE_MAP={'zh':a44_0xcb9d1e(0x144),'zh-cn':a44_0xcb9d1e(0x144),'zh_cn':a44_0xcb9d1e(0x144),'en':'en-US','en-us':'en-US','en_us':a44_0xcb9d1e(0x145)};function a44_0xd109(_0x4f914e,_0x2d08d2){_0x4f914e=_0x4f914e-0x140;const _0x523283=a44_0x5232();let _0xd1096d=_0x523283[_0x4f914e];return _0xd1096d;}export function normalizeLocale(_0x50af2c){const _0x760109=a44_0xcb9d1e;if(!_0x50af2c)return null;return LOCALE_MAP[_0x50af2c[_0x760109(0x14c)]()]??null;}export function resolveWriteScope(_0x2df94a){const _0x28afbe=a44_0xcb9d1e;if(_0x2df94a[_0x28afbe(0x147)])return _0x28afbe(0x147);return isInProject()?_0x28afbe(0x146):_0x28afbe(0x147);}export function readScopedConfig(_0x2dbbfd){return readConfigFile(resolveWriteConfigPath(_0x2dbbfd));}export function writeScopedConfig(_0x255876,_0x9993d){writeConfigFile(resolveWriteConfigPath(_0x9993d),_0x255876);}
1
+ const a44_0x101edc=a44_0x5d2e;(function(_0x1ab3bb,_0x5a5a08){const _0x5adaba=a44_0x5d2e,_0x5764e5=_0x1ab3bb();while(!![]){try{const _0x312696=-parseInt(_0x5adaba(0xe1))/0x1+-parseInt(_0x5adaba(0xd9))/0x2*(-parseInt(_0x5adaba(0xe2))/0x3)+parseInt(_0x5adaba(0xda))/0x4*(-parseInt(_0x5adaba(0xd4))/0x5)+parseInt(_0x5adaba(0xdf))/0x6+parseInt(_0x5adaba(0xe0))/0x7+-parseInt(_0x5adaba(0xe3))/0x8+parseInt(_0x5adaba(0xd2))/0x9*(-parseInt(_0x5adaba(0xdb))/0xa);if(_0x312696===_0x5a5a08)break;else _0x5764e5['push'](_0x5764e5['shift']());}catch(_0x1931e1){_0x5764e5['push'](_0x5764e5['shift']());}}}(a44_0x35ef,0x29eeb));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';export{CLI_BIN_NAME};const LOCALE_MAP={'zh':a44_0x101edc(0xdc),'zh-cn':'zh-CN','zh_cn':a44_0x101edc(0xdc),'en':a44_0x101edc(0xdd),'en-us':a44_0x101edc(0xdd),'en_us':a44_0x101edc(0xdd)};function a44_0x5d2e(_0x18b1c3,_0x4bb8e5){_0x18b1c3=_0x18b1c3-0xd1;const _0x35ef34=a44_0x35ef();let _0x5d2e63=_0x35ef34[_0x18b1c3];return _0x5d2e63;}export function normalizeLocale(_0x101155){const _0x3a2641=a44_0x101edc;if(!_0x101155)return null;return LOCALE_MAP[_0x101155[_0x3a2641(0xd6)]()]??null;}export function resolveWriteScope(_0x40df5c){const _0x1342d6=a44_0x101edc;if(_0x40df5c[_0x1342d6(0xd3)])return _0x1342d6(0xd3);if(!isInProject())throw CliErrors[_0x1342d6(0xd8)](_0x1342d6(0xd5),_0x1342d6(0xd7)+CLI_BIN_NAME+_0x1342d6(0xde));return _0x1342d6(0xd1);}export function readScopedConfig(_0x58585f){return readConfigFile(resolveWriteConfigPath(_0x58585f));}function a44_0x35ef(){const _0x23ca25=['\x20init`\x20first.','1122942zEzoGX','1002582KfnnoD','15753zBAbee','3PvtaxN','607312VmlMPl','project','630702drlRmX','global','3920oBnVYI','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','toLowerCase','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','validation','36026rbgpIG','76OsCOfe','10AFGRmB','zh-CN','en-US'];a44_0x35ef=function(){return _0x23ca25;};return a44_0x35ef();}export function writeScopedConfig(_0x31e1d2,_0x4eb488){writeConfigFile(resolveWriteConfigPath(_0x4eb488),_0x31e1d2);}
@@ -1 +1 @@
1
- const a45_0x2b6e9f=a45_0x4d25;(function(_0x535361,_0x54fbd7){const _0x3bf739=a45_0x4d25,_0x3b5f95=_0x535361();while(!![]){try{const _0x304472=parseInt(_0x3bf739(0x123))/0x1+parseInt(_0x3bf739(0x114))/0x2*(parseInt(_0x3bf739(0x10e))/0x3)+parseInt(_0x3bf739(0x140))/0x4*(-parseInt(_0x3bf739(0x129))/0x5)+-parseInt(_0x3bf739(0x137))/0x6*(-parseInt(_0x3bf739(0x10c))/0x7)+parseInt(_0x3bf739(0x14c))/0x8+parseInt(_0x3bf739(0x116))/0x9*(-parseInt(_0x3bf739(0x135))/0xa)+parseInt(_0x3bf739(0x10b))/0xb*(-parseInt(_0x3bf739(0x110))/0xc);if(_0x304472===_0x54fbd7)break;else _0x3b5f95['push'](_0x3b5f95['shift']());}catch(_0x2f4379){_0x3b5f95['push'](_0x3b5f95['shift']());}}}(a45_0x3bcb,0xd8174));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x19b6fa){const _0xa9e1d5=a45_0x4d25;if(_0x19b6fa['deleted'])return null;const _0x2469f2=Boolean(_0x19b6fa['displayName']!==undefined||_0x19b6fa[_0xa9e1d5(0x13a)]!==undefined);let _0x17f6fd={};if(!_0x2469f2&&typeof _0x19b6fa[_0xa9e1d5(0x147)]===_0xa9e1d5(0x11e))try{_0x17f6fd=JSON[_0xa9e1d5(0x156)](_0x19b6fa['extend']);}catch{}const _0x24df90=_0x2469f2?_0x19b6fa['name']:_0x19b6fa[_0xa9e1d5(0x13d)],_0x1d5dbb=_0x2469f2?_0x19b6fa[_0xa9e1d5(0x112)]:_0x19b6fa[_0xa9e1d5(0x143)],_0x3cb341=_0x2469f2?_0x19b6fa[_0xa9e1d5(0x13a)]:_0x19b6fa[_0xa9e1d5(0x14d)]||_0x19b6fa[_0xa9e1d5(0x122)],_0x10bc00=_0x2469f2?_0x19b6fa[_0xa9e1d5(0x10f)]===!![]:_0x17f6fd[_0xa9e1d5(0x10f)]===!![],_0x1c516c=_0x2469f2?_0x19b6fa[_0xa9e1d5(0x11d)]===!![]:_0x17f6fd[_0xa9e1d5(0x11d)]===!![],_0x47e440=_0x2469f2?_0x19b6fa[_0xa9e1d5(0x150)]??null:_0x17f6fd['options']??null,_0x48c299={'name':_0x24df90,'displayName':_0x1d5dbb||_0x24df90,'type':_0x3cb341,'dbType':_0x19b6fa[_0xa9e1d5(0x130)],'pk':_0x10bc00,'required':_0x1c516c,'description':_0x19b6fa['description']||undefined};return Array['isArray'](_0x47e440)&&_0x47e440[_0xa9e1d5(0x142)]>0x0&&(_0x48c299['options']=_0x47e440),_0x48c299;}function a45_0x4d25(_0xe48ec5,_0x59dbdc){_0xe48ec5=_0xe48ec5-0x10b;const _0x3bcbd6=a45_0x3bcb();let _0x4d25f5=_0x3bcbd6[_0xe48ec5];return _0x4d25f5;}function parseJsonMaybe(_0x494f38){const _0x3f2bbf=a45_0x4d25;if(typeof _0x494f38!==_0x3f2bbf(0x11e))return _0x494f38;try{return JSON[_0x3f2bbf(0x156)](_0x494f38);}catch{return _0x494f38;}}function normalizeOperationEntry(_0x3099f9,_0x1ef598){const _0x45ca0d=a45_0x4d25;if(!_0x1ef598||typeof _0x1ef598!=='object')return null;if(!_0x1ef598[_0x45ca0d(0x12c)]||!_0x1ef598[_0x45ca0d(0x13e)])return null;const _0x11c014={'name':_0x3099f9,'method':_0x1ef598[_0x45ca0d(0x12c)],'path':_0x1ef598['path']};if(_0x1ef598['host'])_0x11c014['host']=_0x1ef598[_0x45ca0d(0x144)];if(_0x1ef598[_0x45ca0d(0x128)]!=null){const _0x9befc=parseJsonMaybe(_0x1ef598[_0x45ca0d(0x128)]);_0x11c014['requestBody']=_0x9befc;}if(_0x1ef598[_0x45ca0d(0x121)]!=null){const _0x78cc6f=parseJsonMaybe(_0x1ef598[_0x45ca0d(0x121)]);_0x11c014[_0x45ca0d(0x121)]=_0x78cc6f;}if(_0x1ef598[_0x45ca0d(0x127)]!=null)_0x11c014[_0x45ca0d(0x127)]=_0x1ef598[_0x45ca0d(0x127)];if(_0x1ef598[_0x45ca0d(0x139)]!=null)_0x11c014[_0x45ca0d(0x139)]=_0x1ef598[_0x45ca0d(0x139)];if(Array[_0x45ca0d(0x126)](_0x1ef598[_0x45ca0d(0x119)]))_0x11c014[_0x45ca0d(0x119)]=_0x1ef598['requestFields'];if(Array['isArray'](_0x1ef598[_0x45ca0d(0x14e)]))_0x11c014[_0x45ca0d(0x14e)]=_0x1ef598[_0x45ca0d(0x14e)];return _0x11c014;}function a45_0x3bcb(){const _0x2dd0ed=['toDatasetName','12WbENVe','dblinkInfoDTO','length','name','host','doVersion','read','extend','tableName','entries','datasetKey','split','5521808kPqMcl','type','responseFields','formatRules','options','dbtableConfig','source','toDatasetCode','validateRules','indexes','parse','relations','13399353aeGHoS','3627449WHNFiN','fromField','3oJSyfO','pkField','12YNTTLq','alias','displayName','creatorNameField','2792492kOoPCd','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','100755lJLLij','title','allFields','requestFields','fields','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','modelId','required','string','map','createTimeField','responseBody','dataType','435574gweVyf','toFieldLabel','filter','isArray','beforeScriptId','requestBody','988690YwSWTb','sourceType','updateTimeField','method','creatorIdField','trim','columnCodeListWithDeleted','dbType','dataset','labelField','dbName','properties','770CJGcgM','push','12SmXoSf','dbId','afterScriptId','doType','logicField','modifierIdField','code','path'];a45_0x3bcb=function(){return _0x2dd0ed;};return a45_0x3bcb();}function summarizeDbtable(_0x68ab7){const _0x31ef5e=a45_0x4d25,_0xc23fd5={},_0x4de0c1=[_0x31ef5e(0x138),'dbName','tableName',_0x31ef5e(0x14a),'pkField','allFields',_0x31ef5e(0x13b),_0x31ef5e(0x120),_0x31ef5e(0x12b),_0x31ef5e(0x12d),_0x31ef5e(0x113),_0x31ef5e(0x13c),'modifierNameField',_0x31ef5e(0x132),_0x31ef5e(0x141)];for(const _0x13946f of _0x4de0c1){if(_0x68ab7[_0x13946f]!==undefined)_0xc23fd5[_0x13946f]=_0x68ab7[_0x13946f];}return typeof _0xc23fd5[_0x31ef5e(0x118)]==='string'&&_0xc23fd5[_0x31ef5e(0x118)]['length']>0x0&&(_0xc23fd5['allFieldNames']=_0xc23fd5[_0x31ef5e(0x118)][_0x31ef5e(0x14b)](',')[_0x31ef5e(0x11f)](_0xb608b1=>_0xb608b1[_0x31ef5e(0x12e)]())[_0x31ef5e(0x125)](Boolean)),_0xc23fd5;}function normalizeRelatedPages(_0x1f8289){const _0xb90ea7=a45_0x4d25;if(!Array[_0xb90ea7(0x126)](_0x1f8289))return[];return _0x1f8289[_0xb90ea7(0x125)](_0x5b0a3c=>_0x5b0a3c&&typeof _0x5b0a3c==='object')[_0xb90ea7(0x11f)](_0x1a51f3=>({'id':_0x1a51f3['id'],'type':_0x1a51f3[_0xb90ea7(0x14d)],'code':_0x1a51f3[_0xb90ea7(0x13d)],'title':_0x1a51f3[_0xb90ea7(0x117)],'deleted':_0x1a51f3['deleted']===!![]}));}export const datasetDetail={'service':a45_0x2b6e9f(0x131),'command':'detail','description':a45_0x2b6e9f(0x11b),'risk':a45_0x2b6e9f(0x146),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a45_0x2b6e9f(0x111),'type':a45_0x2b6e9f(0x11e),'description':a45_0x2b6e9f(0x115)}],async 'execute'(_0x3bca06){const _0x8a475c=a45_0x2b6e9f,_0x4fc8b3=await getDatasetDetail(_0x3bca06['str']('code')),_0x9edfaa=Array[_0x8a475c(0x126)](_0x4fc8b3[_0x8a475c(0x11a)])?_0x4fc8b3[_0x8a475c(0x11a)]:Array[_0x8a475c(0x126)](_0x4fc8b3['properties'])?_0x4fc8b3[_0x8a475c(0x134)]:[],_0x1026d8=_0x9edfaa[_0x8a475c(0x11f)](_0x3ed6ba=>normalizeField(_0x3ed6ba))[_0x8a475c(0x125)](_0xea52b7=>_0xea52b7!==null),_0x5db617=_0x4fc8b3['operations']??{},_0xbeece7=[];for(const [_0x5459b9,_0x1a3f10]of Object[_0x8a475c(0x149)](_0x5db617)){const _0x5514b7=normalizeOperationEntry(_0x5459b9,_0x1a3f10);if(_0x5514b7)_0xbeece7[_0x8a475c(0x136)](_0x5514b7);}const _0x517645=_0x4fc8b3[_0x8a475c(0x151)]??{},_0x4c160f=_0x4fc8b3[_0x8a475c(0x131)]??{},_0x1695c5=_0x517645['dbId']!=null?{'id':_0x517645[_0x8a475c(0x138)],'name':_0x517645[_0x8a475c(0x133)]??null}:undefined;let _0x489950;return typeof _0x4fc8b3[_0x8a475c(0x147)]==='string'&&(_0x489950=parseJsonMaybe(_0x4fc8b3[_0x8a475c(0x147)])),{'ok':!![],'data':{'id':_0x4fc8b3[_0x8a475c(0x11c)]??_0x4fc8b3['id'],'name':_0x4fc8b3[_0x8a475c(0x143)],'code':_0x4fc8b3['modelCode']||_0x4fc8b3[_0x8a475c(0x13d)],'doVersion':_0x4fc8b3[_0x8a475c(0x145)],'description':_0x4fc8b3['description']||_0x4c160f['tableComment']||undefined,'source':_0x4fc8b3[_0x8a475c(0x152)]||_0x4c160f[_0x8a475c(0x12a)],'table':_0x517645[_0x8a475c(0x148)]||_0x4c160f['tableName'],'datasetKey':_0x517645[_0x8a475c(0x14a)],'pk':_0x517645[_0x8a475c(0x10f)],'db':_0x1695c5,'dbtable':summarizeDbtable(_0x517645),'fields':_0x1026d8,'operations':_0xbeece7,'indexes':Array[_0x8a475c(0x126)](_0x4c160f[_0x8a475c(0x155)])?_0x4c160f[_0x8a475c(0x155)]:[],'relations':Array[_0x8a475c(0x126)](_0x4fc8b3[_0x8a475c(0x157)])?_0x4fc8b3[_0x8a475c(0x157)][_0x8a475c(0x11f)](_0x190697=>({'fromField':_0x190697[_0x8a475c(0x10d)],'toDataset':_0x190697[_0x8a475c(0x13f)],'toCode':_0x190697[_0x8a475c(0x153)],'toTable':_0x190697['toTableName'],'toField':_0x190697['toField'],'labelField':_0x190697[_0x8a475c(0x124)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x4fc8b3['relatedPageInfoList']),...Array['isArray'](_0x4fc8b3[_0x8a475c(0x12f)])?{'columnCodeListWithDeleted':_0x4fc8b3['columnCodeListWithDeleted']}:{},'formatRules':Array['isArray'](_0x4fc8b3[_0x8a475c(0x14f)])?_0x4fc8b3[_0x8a475c(0x14f)]:[],'validateRules':Array[_0x8a475c(0x126)](_0x4fc8b3[_0x8a475c(0x154)])?_0x4fc8b3[_0x8a475c(0x154)]:[],..._0x489950!==undefined?{'extend':_0x489950}:{},'stats':{'fieldCount':_0x1026d8[_0x8a475c(0x142)],'operationCount':_0xbeece7[_0x8a475c(0x142)]}}};}};
1
+ const a45_0x43b5c8=a45_0x1864;(function(_0x44b3ca,_0x4a22e8){const _0x176f02=a45_0x1864,_0x275631=_0x44b3ca();while(!![]){try{const _0x2306b3=-parseInt(_0x176f02(0x120))/0x1*(-parseInt(_0x176f02(0x10e))/0x2)+-parseInt(_0x176f02(0x11a))/0x3*(-parseInt(_0x176f02(0x102))/0x4)+-parseInt(_0x176f02(0x118))/0x5*(-parseInt(_0x176f02(0xf9))/0x6)+parseInt(_0x176f02(0x114))/0x7+parseInt(_0x176f02(0x116))/0x8+parseInt(_0x176f02(0x11b))/0x9*(-parseInt(_0x176f02(0x106))/0xa)+-parseInt(_0x176f02(0xfa))/0xb;if(_0x2306b3===_0x4a22e8)break;else _0x275631['push'](_0x275631['shift']());}catch(_0x167c35){_0x275631['push'](_0x275631['shift']());}}}(a45_0x1496,0x56096));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x1279ca){const _0x17a586=a45_0x1864;if(_0x1279ca['deleted'])return null;const _0x52ac4e=Boolean(_0x1279ca['displayName']!==undefined||_0x1279ca[_0x17a586(0x112)]!==undefined);let _0x287c86={};if(!_0x52ac4e&&typeof _0x1279ca[_0x17a586(0x113)]===_0x17a586(0x103))try{_0x287c86=JSON[_0x17a586(0x10a)](_0x1279ca['extend']);}catch{}const _0x32cdc3=_0x52ac4e?_0x1279ca['name']:_0x1279ca[_0x17a586(0xe8)],_0x535882=_0x52ac4e?_0x1279ca[_0x17a586(0xf0)]:_0x1279ca[_0x17a586(0xe4)],_0x54314b=_0x52ac4e?_0x1279ca['doType']:_0x1279ca[_0x17a586(0x125)]||_0x1279ca['dataType'],_0x5433f4=_0x52ac4e?_0x1279ca[_0x17a586(0x11c)]===!![]:_0x287c86['pkField']===!![],_0x27924e=_0x52ac4e?_0x1279ca[_0x17a586(0xe9)]===!![]:_0x287c86[_0x17a586(0xe9)]===!![],_0x5dbb3f=_0x52ac4e?_0x1279ca[_0x17a586(0x108)]??null:_0x287c86[_0x17a586(0x108)]??null,_0x253e4a={'name':_0x32cdc3,'displayName':_0x535882||_0x32cdc3,'type':_0x54314b,'dbType':_0x1279ca[_0x17a586(0xdf)],'pk':_0x5433f4,'required':_0x27924e,'description':_0x1279ca[_0x17a586(0x122)]||undefined};return Array[_0x17a586(0x110)](_0x5dbb3f)&&_0x5dbb3f[_0x17a586(0x10f)]>0x0&&(_0x253e4a['options']=_0x5dbb3f),_0x253e4a;}function parseJsonMaybe(_0x589ff2){const _0x51a3f5=a45_0x1864;if(typeof _0x589ff2!==_0x51a3f5(0x103))return _0x589ff2;try{return JSON[_0x51a3f5(0x10a)](_0x589ff2);}catch{return _0x589ff2;}}function a45_0x1864(_0x4eb24d,_0xba3d2d){_0x4eb24d=_0x4eb24d-0xdc;const _0x149677=a45_0x1496();let _0x18649b=_0x149677[_0x4eb24d];return _0x18649b;}function normalizeOperationEntry(_0x1ca717,_0x2c7375){const _0x38983b=a45_0x1864;if(!_0x2c7375||typeof _0x2c7375!==_0x38983b(0xed))return null;if(!_0x2c7375['method']||!_0x2c7375[_0x38983b(0x126)])return null;const _0x40c948={'name':_0x1ca717,'method':_0x2c7375[_0x38983b(0x101)],'path':_0x2c7375[_0x38983b(0x126)]};if(_0x2c7375[_0x38983b(0x107)])_0x40c948['host']=_0x2c7375['host'];if(_0x2c7375[_0x38983b(0x104)]!=null){const _0x4bb779=parseJsonMaybe(_0x2c7375[_0x38983b(0x104)]);_0x40c948[_0x38983b(0x104)]=_0x4bb779;}if(_0x2c7375['responseBody']!=null){const _0xebeaa7=parseJsonMaybe(_0x2c7375[_0x38983b(0x11e)]);_0x40c948['responseBody']=_0xebeaa7;}if(_0x2c7375['beforeScriptId']!=null)_0x40c948[_0x38983b(0x119)]=_0x2c7375[_0x38983b(0x119)];if(_0x2c7375[_0x38983b(0x10d)]!=null)_0x40c948[_0x38983b(0x10d)]=_0x2c7375[_0x38983b(0x10d)];if(Array[_0x38983b(0x110)](_0x2c7375['requestFields']))_0x40c948[_0x38983b(0x11d)]=_0x2c7375[_0x38983b(0x11d)];if(Array['isArray'](_0x2c7375[_0x38983b(0xf2)]))_0x40c948[_0x38983b(0xf2)]=_0x2c7375['responseFields'];return _0x40c948;}function summarizeDbtable(_0x6b9b1f){const _0x5424f0=a45_0x1864,_0x4f1aad={},_0x189134=[_0x5424f0(0xe1),_0x5424f0(0x10b),_0x5424f0(0xf3),_0x5424f0(0xfe),_0x5424f0(0x11c),'allFields',_0x5424f0(0x105),_0x5424f0(0xdd),'updateTimeField',_0x5424f0(0xec),'creatorNameField',_0x5424f0(0xf4),_0x5424f0(0xf6),_0x5424f0(0xe5),'dblinkInfoDTO'];for(const _0x4b6f61 of _0x189134){if(_0x6b9b1f[_0x4b6f61]!==undefined)_0x4f1aad[_0x4b6f61]=_0x6b9b1f[_0x4b6f61];}return typeof _0x4f1aad[_0x5424f0(0xeb)]===_0x5424f0(0x103)&&_0x4f1aad['allFields'][_0x5424f0(0x10f)]>0x0&&(_0x4f1aad['allFieldNames']=_0x4f1aad['allFields'][_0x5424f0(0xde)](',')[_0x5424f0(0x124)](_0x10e51d=>_0x10e51d[_0x5424f0(0x109)]())[_0x5424f0(0xfb)](Boolean)),_0x4f1aad;}function normalizeRelatedPages(_0x33fa1d){const _0x4e5763=a45_0x1864;if(!Array[_0x4e5763(0x110)](_0x33fa1d))return[];return _0x33fa1d['filter'](_0x5dfd2c=>_0x5dfd2c&&typeof _0x5dfd2c===_0x4e5763(0xed))[_0x4e5763(0x124)](_0x3c662c=>({'id':_0x3c662c['id'],'type':_0x3c662c[_0x4e5763(0x125)],'code':_0x3c662c[_0x4e5763(0xe8)],'title':_0x3c662c['title'],'deleted':_0x3c662c[_0x4e5763(0x117)]===!![]}));}export const datasetDetail={'service':'dataset','command':'detail','description':a45_0x43b5c8(0xf5),'risk':'read','flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a45_0x43b5c8(0xf1),'type':a45_0x43b5c8(0x103),'description':a45_0x43b5c8(0xf7)}],async 'execute'(_0x1b1631){const _0x4790a2=a45_0x43b5c8,_0x30d8ca=await getDatasetDetail(_0x1b1631[_0x4790a2(0xea)](_0x4790a2(0xe8))),_0x5f3784=Array[_0x4790a2(0x110)](_0x30d8ca['fields'])?_0x30d8ca[_0x4790a2(0xe6)]:Array[_0x4790a2(0x110)](_0x30d8ca[_0x4790a2(0xdc)])?_0x30d8ca['properties']:[],_0x1213e7=_0x5f3784[_0x4790a2(0x124)](_0x5b336f=>normalizeField(_0x5b336f))['filter'](_0x1348ac=>_0x1348ac!==null),_0x5f1abf=_0x30d8ca[_0x4790a2(0xef)]??{},_0x4b4f01=[];for(const [_0x52b5a5,_0x4fc98b]of Object[_0x4790a2(0xf8)](_0x5f1abf)){const _0x1892b1=normalizeOperationEntry(_0x52b5a5,_0x4fc98b);if(_0x1892b1)_0x4b4f01['push'](_0x1892b1);}const _0x4b056d=_0x30d8ca['dbtableConfig']??{},_0x2066e4=_0x30d8ca[_0x4790a2(0xfd)]??{},_0x5016a4=_0x4b056d[_0x4790a2(0xe1)]!=null?{'id':_0x4b056d[_0x4790a2(0xe1)],'name':_0x4b056d[_0x4790a2(0x10b)]??null}:undefined;let _0x557440;return typeof _0x30d8ca[_0x4790a2(0x113)]==='string'&&(_0x557440=parseJsonMaybe(_0x30d8ca[_0x4790a2(0x113)])),{'ok':!![],'data':{'id':_0x30d8ca['modelId']??_0x30d8ca['id'],'name':_0x30d8ca[_0x4790a2(0xe4)],'code':_0x30d8ca[_0x4790a2(0xe3)]||_0x30d8ca[_0x4790a2(0xe8)],'doVersion':_0x30d8ca[_0x4790a2(0xfc)],'description':_0x30d8ca[_0x4790a2(0x122)]||_0x2066e4['tableComment']||undefined,'source':_0x30d8ca[_0x4790a2(0x100)]||_0x2066e4[_0x4790a2(0x115)],'table':_0x4b056d[_0x4790a2(0xf3)]||_0x2066e4['tableName'],'datasetKey':_0x4b056d[_0x4790a2(0xfe)],'pk':_0x4b056d[_0x4790a2(0x11c)],'db':_0x5016a4,'dbtable':summarizeDbtable(_0x4b056d),'fields':_0x1213e7,'operations':_0x4b4f01,'indexes':Array[_0x4790a2(0x110)](_0x2066e4[_0x4790a2(0xff)])?_0x2066e4[_0x4790a2(0xff)]:[],'relations':Array['isArray'](_0x30d8ca[_0x4790a2(0xe2)])?_0x30d8ca[_0x4790a2(0xe2)][_0x4790a2(0x124)](_0x3600f1=>({'fromField':_0x3600f1['fromField'],'toDataset':_0x3600f1[_0x4790a2(0x10c)],'toCode':_0x3600f1[_0x4790a2(0xe7)],'toTable':_0x3600f1[_0x4790a2(0x11f)],'toField':_0x3600f1[_0x4790a2(0xee)],'labelField':_0x3600f1[_0x4790a2(0xe0)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x30d8ca['relatedPageInfoList']),...Array[_0x4790a2(0x110)](_0x30d8ca[_0x4790a2(0x123)])?{'columnCodeListWithDeleted':_0x30d8ca[_0x4790a2(0x123)]}:{},'formatRules':Array[_0x4790a2(0x110)](_0x30d8ca[_0x4790a2(0x111)])?_0x30d8ca['formatRules']:[],'validateRules':Array[_0x4790a2(0x110)](_0x30d8ca[_0x4790a2(0x121)])?_0x30d8ca[_0x4790a2(0x121)]:[],..._0x557440!==undefined?{'extend':_0x557440}:{},'stats':{'fieldCount':_0x1213e7['length'],'operationCount':_0x4b4f01[_0x4790a2(0x10f)]}}};}};function a45_0x1496(){const _0x54ca6b=['extend','3158127mluhVP','sourceType','3676184WGduZB','deleted','126055hYkOPn','beforeScriptId','399jeJgNd','1846890hcRDct','pkField','requestFields','responseBody','toTableName','71839TZyFxi','validateRules','description','columnCodeListWithDeleted','map','type','path','properties','createTimeField','split','dbType','toFieldLabel','dbId','relations','modelCode','name','labelField','fields','toDatasetCode','code','required','str','allFields','creatorIdField','object','toField','operations','displayName','alias','responseFields','tableName','modifierIdField','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','modifierNameField','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','entries','138DzKaOp','16406104AkKAxu','filter','doVersion','dataset','datasetKey','indexes','source','method','8156XEoQvE','string','requestBody','logicField','10gkxsRd','host','options','trim','parse','dbName','toDatasetName','afterScriptId','8CNeNuj','length','isArray','formatRules','doType'];a45_0x1496=function(){return _0x54ca6b;};return a45_0x1496();}
@@ -1 +1 @@
1
- (function(_0x566d9a,_0x57d805){const _0x1482b4=a46_0x3d2a,_0x438180=_0x566d9a();while(!![]){try{const _0x2a2449=parseInt(_0x1482b4(0x18b))/0x1+-parseInt(_0x1482b4(0x18e))/0x2*(parseInt(_0x1482b4(0x189))/0x3)+parseInt(_0x1482b4(0x18d))/0x4*(-parseInt(_0x1482b4(0x18c))/0x5)+-parseInt(_0x1482b4(0x186))/0x6+-parseInt(_0x1482b4(0x188))/0x7+-parseInt(_0x1482b4(0x187))/0x8*(parseInt(_0x1482b4(0x18a))/0x9)+parseInt(_0x1482b4(0x18f))/0xa;if(_0x2a2449===_0x57d805)break;else _0x438180['push'](_0x438180['shift']());}catch(_0x2b2ada){_0x438180['push'](_0x438180['shift']());}}}(a46_0x5edc,0xab86e));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a46_0x3d2a(_0xe23b27,_0x1fee29){_0xe23b27=_0xe23b27-0x186;const _0x5edcbc=a46_0x5edc();let _0x3d2a42=_0x5edcbc[_0xe23b27];return _0x3d2a42;}function a46_0x5edc(){const _0x4fa2af=['5444579wCnAYe','33WCSSGY','171mwrgKp','1087177uMYrmb','10GkFHRW','2758744QbePcT','70412QJOKaK','39279240CqSkdk','2635164jtQXNL','559536UriHnH'];a46_0x5edc=function(){return _0x4fa2af;};return a46_0x5edc();}import{datasetOperations}from'../../commands/dataset/operations.js';import{datasetLinks}from'../../commands/dataset/links.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
1
+ function a46_0x20ff(_0x21e23b,_0x31e1cd){_0x21e23b=_0x21e23b-0x198;const _0x1f4120=a46_0x1f41();let _0x20ffed=_0x1f4120[_0x21e23b];return _0x20ffed;}(function(_0x1e915d,_0x4e69c0){const _0x5a5efe=a46_0x20ff,_0x460da0=_0x1e915d();while(!![]){try{const _0x1cf5c2=parseInt(_0x5a5efe(0x19f))/0x1*(-parseInt(_0x5a5efe(0x19e))/0x2)+parseInt(_0x5a5efe(0x1a1))/0x3*(parseInt(_0x5a5efe(0x199))/0x4)+parseInt(_0x5a5efe(0x1a2))/0x5*(parseInt(_0x5a5efe(0x19d))/0x6)+parseInt(_0x5a5efe(0x1a3))/0x7*(-parseInt(_0x5a5efe(0x19c))/0x8)+-parseInt(_0x5a5efe(0x19a))/0x9+-parseInt(_0x5a5efe(0x1a0))/0xa*(parseInt(_0x5a5efe(0x19b))/0xb)+parseInt(_0x5a5efe(0x198))/0xc;if(_0x1cf5c2===_0x4e69c0)break;else _0x460da0['push'](_0x460da0['shift']());}catch(_0x40bf25){_0x460da0['push'](_0x460da0['shift']());}}}(a46_0x1f41,0xc2f84));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a46_0x1f41(){const _0x1d363a=['1047vubCwJ','13105UdUaqN','123081tigFWp','16886112SwIoZt','17228PEnAXe','1528911eamtiq','11OKdWDl','264hqRALM','6UcASOP','410FOnFZE','4286AuHIvC','4855960tVMcBk'];a46_0x1f41=function(){return _0x1d363a;};return a46_0x1f41();}import{datasetOperations}from'../../commands/dataset/operations.js';import{datasetLinks}from'../../commands/dataset/links.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
@@ -1 +1 @@
1
- const a47_0x46d3e6=a47_0x4a2d;function a47_0x4a2d(_0x4e0700,_0x122084){_0x4e0700=_0x4e0700-0x106;const _0xaf1365=a47_0xaf13();let _0x4a2da6=_0xaf1365[_0x4e0700];return _0x4a2da6;}(function(_0x23a9b7,_0x2a6fdf){const _0x455f77=a47_0x4a2d,_0x1992b5=_0x23a9b7();while(!![]){try{const _0x25f0cd=parseInt(_0x455f77(0x136))/0x1*(parseInt(_0x455f77(0x109))/0x2)+-parseInt(_0x455f77(0x10f))/0x3*(parseInt(_0x455f77(0x122))/0x4)+-parseInt(_0x455f77(0x116))/0x5+-parseInt(_0x455f77(0x11c))/0x6+parseInt(_0x455f77(0x12c))/0x7+-parseInt(_0x455f77(0x10d))/0x8+-parseInt(_0x455f77(0x12b))/0x9;if(_0x25f0cd===_0x2a6fdf)break;else _0x1992b5['push'](_0x1992b5['shift']());}catch(_0x562007){_0x1992b5['push'](_0x1992b5['shift']());}}}(a47_0xaf13,0x3a733));function a47_0xaf13(){const _0x733d0=['datasetCount','1yMQpuD','toDataset','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','dbType','Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20','409468lbLpWl','\x20relation(s)','dbName','toDatasetName','545312GrlPcX','LEFT','15uDBjZr','boolean','map','filter','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','datasetName','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','608000wRPiqG','reduce','appCode','tableComment','\x20database(s)','fields','387540WAQNbo','relations','str','bool','relationCount','verbose','49916GYHbxf','name','displayName','fromField','stats','isPrimaryKey','\x20database(s),\x20','meta','length','743760LdPnvs','3038462tUvqQV','datasets','isForeignKey','joinType','dbId','datasetCode','string','dataset','all'];a47_0xaf13=function(){return _0x733d0;};return a47_0xaf13();}import{getErConfig}from'../../core/api-client.js';import{resolveDb}from'../../core/db-resolver.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetLinks={'service':a47_0x46d3e6(0x133),'command':'links','description':a47_0x46d3e6(0x113)+a47_0x46d3e6(0x108)+a47_0x46d3e6(0x115),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':a47_0x46d3e6(0x132),'description':'Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20'+a47_0x46d3e6(0x106)},{'name':'verbose','type':a47_0x46d3e6(0x110),'description':'Return\x20full\x20raw\x20ER\x20response\x20from\x20API'}],async 'execute'(_0xba49fb){const _0x68d7aa=a47_0x46d3e6,_0x492a19=_0xba49fb[_0x68d7aa(0x11f)](_0x68d7aa(0x121)),{resolved:_0x135a8d,error:_0x1397a3}=await resolveDb(_0xba49fb[_0x68d7aa(0x118)],_0xba49fb[_0x68d7aa(0x11e)]('db')||undefined);if(_0x1397a3)return{'ok':![],'message':_0x1397a3};const _0xa850e0=_0x135a8d[_0x68d7aa(0x111)](_0x5ebbd5=>_0x5ebbd5[_0x68d7aa(0x130)]),_0x380885=await Promise[_0x68d7aa(0x134)](_0xa850e0[_0x68d7aa(0x111)](_0x2eb245=>getErConfig(_0xba49fb[_0x68d7aa(0x118)],_0x2eb245)));if(_0x492a19)return{'ok':!![],'data':_0x380885['length']===0x1?_0x380885[0x0]:_0x380885,'message':'Fetched\x20link\x20graph\x20for\x20'+_0xa850e0['length']+_0x68d7aa(0x11a)};const _0x2d98e5=_0x380885[_0x68d7aa(0x111)](_0x2cc488=>{const _0x21b766=_0x68d7aa,_0x3a6d4a=(_0x2cc488[_0x21b766(0x12d)]??[])[_0x21b766(0x111)](_0x269821=>{const _0x169c69=_0x21b766,_0x415292=_0x269821['fields']?.[_0x169c69(0x112)](_0x246fe1=>_0x246fe1[_0x169c69(0x127)])[_0x169c69(0x111)](_0x4d288a=>_0x4d288a[_0x169c69(0x123)])??[],_0x5eaf80=_0x269821[_0x169c69(0x11b)]?.['filter'](_0x499dd4=>_0x499dd4[_0x169c69(0x12e)])['map'](_0x424a8f=>_0x424a8f[_0x169c69(0x123)])??[];return{'id':_0x269821['datasetId'],'name':_0x269821[_0x169c69(0x114)],'code':_0x269821[_0x169c69(0x131)],'table':_0x269821['tableName'],'comment':_0x269821[_0x169c69(0x119)]||undefined,'fields':(_0x269821[_0x169c69(0x11b)]??[])['map'](_0x41bee9=>({'name':_0x41bee9[_0x169c69(0x123)],'displayName':_0x41bee9[_0x169c69(0x124)],'type':_0x41bee9[_0x169c69(0x107)],'pk':_0x41bee9[_0x169c69(0x127)],'fk':_0x41bee9[_0x169c69(0x12e)]})),'relations':(_0x269821[_0x169c69(0x11d)]??[])[_0x169c69(0x112)](_0x3ca217=>_0x3ca217['fromField']&&_0x3ca217[_0x169c69(0x137)])[_0x169c69(0x111)](_0x57f6e4=>({'from':_0x57f6e4[_0x169c69(0x125)],'toDataset':_0x57f6e4[_0x169c69(0x10c)],'toCode':_0x57f6e4['toDataset'],'toField':_0x57f6e4['toField'],'joinType':_0x57f6e4[_0x169c69(0x12f)]||_0x169c69(0x10e)})),'stats':{'fieldCount':_0x269821[_0x169c69(0x11b)]?.['length']??0x0,'pkCount':_0x415292[_0x169c69(0x12a)],'fkCount':_0x5eaf80[_0x169c69(0x12a)],'relationCount':_0x269821['relations']?.[_0x169c69(0x12a)]??0x0}};}),_0x2b71b3=_0x3a6d4a[_0x21b766(0x112)](_0x1c0d72=>_0x1c0d72[_0x21b766(0x126)][_0x21b766(0x120)]>0x0)['map'](_0x3459b5=>_0x3459b5[_0x21b766(0x123)]);return{'db':_0x2cc488[_0x21b766(0x129)]?.[_0x21b766(0x10b)],'dbId':_0x2cc488[_0x21b766(0x129)]?.['dbId'],'appCode':_0x2cc488[_0x21b766(0x129)]?.[_0x21b766(0x118)],'datasetCount':_0x3a6d4a[_0x21b766(0x12a)],'connectedDatasets':_0x2b71b3,'datasets':_0x3a6d4a};}),_0x27df2a=_0x2d98e5[_0x68d7aa(0x117)]((_0x35e4e5,_0xb5be5d)=>_0x35e4e5+_0xb5be5d[_0x68d7aa(0x135)],0x0),_0x2809ff=_0x2d98e5[_0x68d7aa(0x117)]((_0x1216fe,_0x52c4d8)=>_0x1216fe+_0x52c4d8[_0x68d7aa(0x12d)]['reduce']((_0x3788f4,_0x4a0e36)=>_0x3788f4+_0x4a0e36[_0x68d7aa(0x126)][_0x68d7aa(0x120)],0x0),0x0);return{'ok':!![],'data':_0x2d98e5[_0x68d7aa(0x12a)]===0x1?_0x2d98e5[0x0]:{'databases':_0x2d98e5},'message':'Link\x20graph:\x20'+_0x2d98e5[_0x68d7aa(0x12a)]+_0x68d7aa(0x128)+_0x27df2a+'\x20dataset(s),\x20'+_0x2809ff+_0x68d7aa(0x10a)};}};
1
+ function a47_0x3835(){const _0x33eceb=['appCode','Link\x20graph:\x20','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','dbName','all','read','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','4487931LZxeHn','dataset','\x20dataset(s),\x20','reduce','3945368LTJwIH','toField','datasetId','boolean','\x20database(s),\x20','bool','90wYqTkL','Return\x20full\x20raw\x20ER\x20response\x20from\x20API','2468799IPzmbC','\x20database(s)','tableName','map','436162sDvlhJ','6883476zmWXSz','Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20','isForeignKey','meta','name','displayName','8zqcujB','4XEVyUS','dbType','1530140aeDyQK','toDataset','datasets','stats','filter','isPrimaryKey','str','relations','260300yNNsnb','LEFT','fromField','length','fields','dbId','tableComment','verbose'];a47_0x3835=function(){return _0x33eceb;};return a47_0x3835();}function a47_0x3c7f(_0x5c175a,_0x25b497){_0x5c175a=_0x5c175a-0x1f4;const _0x383582=a47_0x3835();let _0x3c7feb=_0x383582[_0x5c175a];return _0x3c7feb;}const a47_0x1956c4=a47_0x3c7f;(function(_0x2efbde,_0x3e45a5){const _0x20fe02=a47_0x3c7f,_0x1c97f6=_0x2efbde();while(!![]){try{const _0x3ac819=-parseInt(_0x20fe02(0x207))/0x1*(-parseInt(_0x20fe02(0x20f))/0x2)+-parseInt(_0x20fe02(0x203))/0x3+parseInt(_0x20fe02(0x20e))/0x4*(parseInt(_0x20fe02(0x219))/0x5)+-parseInt(_0x20fe02(0x208))/0x6+parseInt(_0x20fe02(0x1f7))/0x7+-parseInt(_0x20fe02(0x1fb))/0x8+-parseInt(_0x20fe02(0x201))/0x9*(-parseInt(_0x20fe02(0x211))/0xa);if(_0x3ac819===_0x3e45a5)break;else _0x1c97f6['push'](_0x1c97f6['shift']());}catch(_0x147690){_0x1c97f6['push'](_0x1c97f6['shift']());}}}(a47_0x3835,0xa714f));import{getErConfig}from'../../core/api-client.js';import{resolveDb}from'../../core/db-resolver.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetLinks={'service':a47_0x1956c4(0x1f8),'command':'links','description':a47_0x1956c4(0x1f6)+'Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20'+a47_0x1956c4(0x223),'risk':a47_0x1956c4(0x1f5),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':'string','description':a47_0x1956c4(0x209)+'Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.'},{'name':a47_0x1956c4(0x220),'type':a47_0x1956c4(0x1fe),'description':a47_0x1956c4(0x202)}],async 'execute'(_0x4cbb37){const _0x2c6a64=a47_0x1956c4,_0x3f8936=_0x4cbb37[_0x2c6a64(0x200)](_0x2c6a64(0x220)),{resolved:_0x2ded15,error:_0x379b0e}=await resolveDb(_0x4cbb37['appCode'],_0x4cbb37[_0x2c6a64(0x217)]('db')||undefined);if(_0x379b0e)return{'ok':![],'message':_0x379b0e};const _0x394e0c=_0x2ded15[_0x2c6a64(0x206)](_0x3b9823=>_0x3b9823[_0x2c6a64(0x21e)]),_0xf36dc7=await Promise[_0x2c6a64(0x1f4)](_0x394e0c[_0x2c6a64(0x206)](_0xcd3a52=>getErConfig(_0x4cbb37[_0x2c6a64(0x221)],_0xcd3a52)));if(_0x3f8936)return{'ok':!![],'data':_0xf36dc7[_0x2c6a64(0x21c)]===0x1?_0xf36dc7[0x0]:_0xf36dc7,'message':'Fetched\x20link\x20graph\x20for\x20'+_0x394e0c[_0x2c6a64(0x21c)]+_0x2c6a64(0x204)};const _0x5de76e=_0xf36dc7[_0x2c6a64(0x206)](_0x4f9db0=>{const _0x188f0a=_0x2c6a64,_0x362aa8=(_0x4f9db0[_0x188f0a(0x213)]??[])['map'](_0x2d97e3=>{const _0x117bc1=_0x188f0a,_0x489178=_0x2d97e3[_0x117bc1(0x21d)]?.['filter'](_0x4f2d52=>_0x4f2d52[_0x117bc1(0x216)])[_0x117bc1(0x206)](_0xc617ca=>_0xc617ca[_0x117bc1(0x20c)])??[],_0x140f9c=_0x2d97e3['fields']?.[_0x117bc1(0x215)](_0x1b555b=>_0x1b555b[_0x117bc1(0x20a)])[_0x117bc1(0x206)](_0x5e1375=>_0x5e1375['name'])??[];return{'id':_0x2d97e3[_0x117bc1(0x1fd)],'name':_0x2d97e3['datasetName'],'code':_0x2d97e3['datasetCode'],'table':_0x2d97e3[_0x117bc1(0x205)],'comment':_0x2d97e3[_0x117bc1(0x21f)]||undefined,'fields':(_0x2d97e3[_0x117bc1(0x21d)]??[])[_0x117bc1(0x206)](_0x706e37=>({'name':_0x706e37[_0x117bc1(0x20c)],'displayName':_0x706e37[_0x117bc1(0x20d)],'type':_0x706e37[_0x117bc1(0x210)],'pk':_0x706e37[_0x117bc1(0x216)],'fk':_0x706e37['isForeignKey']})),'relations':(_0x2d97e3['relations']??[])['filter'](_0x26c831=>_0x26c831[_0x117bc1(0x21b)]&&_0x26c831[_0x117bc1(0x212)])[_0x117bc1(0x206)](_0x49e78b=>({'from':_0x49e78b[_0x117bc1(0x21b)],'toDataset':_0x49e78b['toDatasetName'],'toCode':_0x49e78b[_0x117bc1(0x212)],'toField':_0x49e78b[_0x117bc1(0x1fc)],'joinType':_0x49e78b['joinType']||_0x117bc1(0x21a)})),'stats':{'fieldCount':_0x2d97e3[_0x117bc1(0x21d)]?.['length']??0x0,'pkCount':_0x489178[_0x117bc1(0x21c)],'fkCount':_0x140f9c[_0x117bc1(0x21c)],'relationCount':_0x2d97e3[_0x117bc1(0x218)]?.[_0x117bc1(0x21c)]??0x0}};}),_0x4d2e59=_0x362aa8[_0x188f0a(0x215)](_0x4c6abe=>_0x4c6abe['stats']['relationCount']>0x0)['map'](_0x1df95e=>_0x1df95e[_0x188f0a(0x20c)]);return{'db':_0x4f9db0['meta']?.[_0x188f0a(0x224)],'dbId':_0x4f9db0[_0x188f0a(0x20b)]?.['dbId'],'appCode':_0x4f9db0[_0x188f0a(0x20b)]?.['appCode'],'datasetCount':_0x362aa8[_0x188f0a(0x21c)],'connectedDatasets':_0x4d2e59,'datasets':_0x362aa8};}),_0x5c6cc1=_0x5de76e[_0x2c6a64(0x1fa)]((_0x35fa05,_0x67e1dd)=>_0x35fa05+_0x67e1dd['datasetCount'],0x0),_0x244b49=_0x5de76e[_0x2c6a64(0x1fa)]((_0xb4f835,_0x5be677)=>_0xb4f835+_0x5be677[_0x2c6a64(0x213)][_0x2c6a64(0x1fa)]((_0x134fea,_0xfd5bbe)=>_0x134fea+_0xfd5bbe[_0x2c6a64(0x214)]['relationCount'],0x0),0x0);return{'ok':!![],'data':_0x5de76e['length']===0x1?_0x5de76e[0x0]:{'databases':_0x5de76e},'message':_0x2c6a64(0x222)+_0x5de76e[_0x2c6a64(0x21c)]+_0x2c6a64(0x1ff)+_0x5c6cc1+_0x2c6a64(0x1f9)+_0x244b49+'\x20relation(s)'};}};
@@ -1 +1 @@
1
- function a48_0x2a57(_0x13f7fd,_0x5243cd){_0x13f7fd=_0x13f7fd-0x71;const _0x2c5ace=a48_0x2c5a();let _0x2a5759=_0x2c5ace[_0x13f7fd];return _0x2a5759;}const a48_0x5a2167=a48_0x2a57;(function(_0x159f42,_0x37c515){const _0x4e6e8e=a48_0x2a57,_0x2c7088=_0x159f42();while(!![]){try{const _0x26aa34=parseInt(_0x4e6e8e(0x83))/0x1*(-parseInt(_0x4e6e8e(0x8e))/0x2)+parseInt(_0x4e6e8e(0x80))/0x3+-parseInt(_0x4e6e8e(0x87))/0x4*(-parseInt(_0x4e6e8e(0x82))/0x5)+-parseInt(_0x4e6e8e(0x7e))/0x6*(-parseInt(_0x4e6e8e(0x73))/0x7)+-parseInt(_0x4e6e8e(0x8a))/0x8+-parseInt(_0x4e6e8e(0x7c))/0x9*(parseInt(_0x4e6e8e(0x7d))/0xa)+parseInt(_0x4e6e8e(0x85))/0xb;if(_0x26aa34===_0x37c515)break;else _0x2c7088['push'](_0x2c7088['shift']());}catch(_0x9f7c92){_0x2c7088['push'](_0x2c7088['shift']());}}}(a48_0x2c5a,0x43a4a));import{listDatasets}from'../../core/api-client.js';function a48_0x2c5a(){const _0x218cbf=['2565246umIIhk','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','257082rOwgDU','length','265EOyZEW','218599CoIrro','List\x20all\x20datasets\x20with\x20metadata','9731656UIQaSW','read','17980cnPpkO','tableName','dbtableConfig','4268920jdonJR','name','pkField','source','4NtGDCd','list','Found\x20','7CaCDMk','\x20dataset(s)','allFields','appCode','str','datasetKey','code','dataset','split','27lGleDg','1294290WmSEbJ'];a48_0x2c5a=function(){return _0x218cbf;};return a48_0x2c5a();}import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetList={'service':a48_0x5a2167(0x7a),'command':a48_0x5a2167(0x71),'description':a48_0x5a2167(0x84),'risk':a48_0x5a2167(0x86),'flags':[{'name':a48_0x5a2167(0x8b),'type':'string','description':a48_0x5a2167(0x7f)},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x19b1cc){const _0x1c9bfc=a48_0x5a2167,_0x3451ec=_0x19b1cc[_0x1c9bfc(0x77)]('name'),_0x9ad471=_0x19b1cc[_0x1c9bfc(0x77)](_0x1c9bfc(0x79)),_0x526450=await listDatasets(_0x19b1cc[_0x1c9bfc(0x76)],{..._0x3451ec&&{'name':_0x3451ec},..._0x9ad471&&{'code':_0x9ad471}}),_0x3853f2=_0x526450['map'](_0x1cc207=>{const _0x10b0f6=_0x1c9bfc,_0x4aca9a=_0x1cc207[_0x10b0f6(0x89)]??{};return{'id':_0x1cc207['id'],'name':_0x1cc207[_0x10b0f6(0x8b)],'code':_0x1cc207['code'],'description':_0x1cc207['description'],'source':_0x1cc207[_0x10b0f6(0x8d)],'db':_0x4aca9a['dbName'],'table':_0x4aca9a[_0x10b0f6(0x88)],'datasetKey':_0x4aca9a[_0x10b0f6(0x78)],'pk':_0x4aca9a[_0x10b0f6(0x8c)],'fields':_0x4aca9a[_0x10b0f6(0x75)]?_0x4aca9a[_0x10b0f6(0x75)][_0x10b0f6(0x7b)](',')['map'](_0x13fe2a=>_0x13fe2a['trim']()):[]};});return{'ok':!![],'data':{'total':_0x3853f2[_0x1c9bfc(0x81)],'datasets':_0x3853f2},'message':_0x1c9bfc(0x72)+_0x3853f2['length']+_0x1c9bfc(0x74)};}};
1
+ const a48_0x3e6b92=a48_0x5982;(function(_0x1b2fbb,_0x14fe0f){const _0x31eb73=a48_0x5982,_0x49e963=_0x1b2fbb();while(!![]){try{const _0x221676=-parseInt(_0x31eb73(0xb9))/0x1*(-parseInt(_0x31eb73(0xb2))/0x2)+-parseInt(_0x31eb73(0xaf))/0x3*(parseInt(_0x31eb73(0xbc))/0x4)+-parseInt(_0x31eb73(0xad))/0x5*(-parseInt(_0x31eb73(0xb0))/0x6)+parseInt(_0x31eb73(0xba))/0x7+-parseInt(_0x31eb73(0xb5))/0x8*(parseInt(_0x31eb73(0xc2))/0x9)+parseInt(_0x31eb73(0xb7))/0xa*(-parseInt(_0x31eb73(0xbf))/0xb)+-parseInt(_0x31eb73(0xaa))/0xc;if(_0x221676===_0x14fe0f)break;else _0x49e963['push'](_0x49e963['shift']());}catch(_0xab4956){_0x49e963['push'](_0x49e963['shift']());}}}(a48_0x2fcf,0x3c7fe));function a48_0x5982(_0x42de0e,_0x47f68d){_0x42de0e=_0x42de0e-0xa9;const _0x2fcf51=a48_0x2fcf();let _0x5982d9=_0x2fcf51[_0x42de0e];return _0x5982d9;}function a48_0x2fcf(){const _0x5f2829=['11870wJoxrI','name','633tNIfRm','666jSiXpx','length','46moCbxm','Found\x20','map','32tOrjpL','dbName','184590VdPEdH','description','20913bxEsKM','1454040axODdq','List\x20all\x20datasets\x20with\x20metadata','1548tSHdAe','split','allFields','11lpckjj','pkField','source','1081611cQIxZV','code','1483140tngzru','str','datasetKey'];a48_0x2fcf=function(){return _0x5f2829;};return a48_0x2fcf();}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetList={'service':'dataset','command':'list','description':a48_0x3e6b92(0xbb),'risk':'read','flags':[{'name':a48_0x3e6b92(0xae),'type':'string','description':'Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)'},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x24fa97){const _0x19398f=a48_0x3e6b92,_0x4f0acc=_0x24fa97['str'](_0x19398f(0xae)),_0x345d41=_0x24fa97[_0x19398f(0xab)](_0x19398f(0xa9)),_0x2976b1=await listDatasets(_0x24fa97['appCode'],{..._0x4f0acc&&{'name':_0x4f0acc},..._0x345d41&&{'code':_0x345d41}}),_0x2ca88d=_0x2976b1['map'](_0x50ae37=>{const _0x2aa4f1=_0x19398f,_0x1ee1dd=_0x50ae37['dbtableConfig']??{};return{'id':_0x50ae37['id'],'name':_0x50ae37[_0x2aa4f1(0xae)],'code':_0x50ae37[_0x2aa4f1(0xa9)],'description':_0x50ae37[_0x2aa4f1(0xb8)],'source':_0x50ae37[_0x2aa4f1(0xc1)],'db':_0x1ee1dd[_0x2aa4f1(0xb6)],'table':_0x1ee1dd['tableName'],'datasetKey':_0x1ee1dd[_0x2aa4f1(0xac)],'pk':_0x1ee1dd[_0x2aa4f1(0xc0)],'fields':_0x1ee1dd[_0x2aa4f1(0xbe)]?_0x1ee1dd[_0x2aa4f1(0xbe)][_0x2aa4f1(0xbd)](',')[_0x2aa4f1(0xb4)](_0x4e8f9a=>_0x4e8f9a['trim']()):[]};});return{'ok':!![],'data':{'total':_0x2ca88d[_0x19398f(0xb1)],'datasets':_0x2ca88d},'message':_0x19398f(0xb3)+_0x2ca88d[_0x19398f(0xb1)]+'\x20dataset(s)'};}};
@@ -1 +1 @@
1
- const a49_0x3c9e23=a49_0x1ae4;(function(_0x5b4f36,_0x2c58c9){const _0x2999c7=a49_0x1ae4,_0x3ff9ab=_0x5b4f36();while(!![]){try{const _0x24084f=-parseInt(_0x2999c7(0x1e2))/0x1*(-parseInt(_0x2999c7(0x1d4))/0x2)+parseInt(_0x2999c7(0x1d7))/0x3*(-parseInt(_0x2999c7(0x1d0))/0x4)+parseInt(_0x2999c7(0x1e5))/0x5*(parseInt(_0x2999c7(0x1cd))/0x6)+-parseInt(_0x2999c7(0x1e3))/0x7*(-parseInt(_0x2999c7(0x1cf))/0x8)+-parseInt(_0x2999c7(0x1cb))/0x9*(parseInt(_0x2999c7(0x1d8))/0xa)+parseInt(_0x2999c7(0x1d9))/0xb*(parseInt(_0x2999c7(0x1e4))/0xc)+-parseInt(_0x2999c7(0x1de))/0xd*(parseInt(_0x2999c7(0x1dd))/0xe);if(_0x24084f===_0x2c58c9)break;else _0x3ff9ab['push'](_0x3ff9ab['shift']());}catch(_0x10a728){_0x3ff9ab['push'](_0x3ff9ab['shift']());}}}(a49_0x5ad8,0x96433));import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';function a49_0x1ae4(_0x481f82,_0x26ee0a){_0x481f82=_0x481f82-0x1cb;const _0x5ad849=a49_0x5ad8();let _0x1ae457=_0x5ad849[_0x481f82];return _0x1ae457;}function a49_0x5ad8(){const _0x22e792=['1335922HdKIbx','273HzNFHC','map','str','displayName','61IdMCeE','136388eNLOfW','12rgmIEZ','209675eFqkHe','code','alias','131850LigvWX','length','66KiqAYr','appCode','384MyBaDw','1649108nPqMiR','operations','verbose','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','36702okUWno','type','read','3zcAzkX','80JOgZLX','6961977QuNjAb','bool','Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)','name'];a49_0x5ad8=function(){return _0x22e792;};return a49_0x5ad8();}import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetOperations={'service':'dataset','command':a49_0x3c9e23(0x1d1),'description':'Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','risk':a49_0x3c9e23(0x1d6),'flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a49_0x3c9e23(0x1e7),'type':'string','description':a49_0x3c9e23(0x1d3)},{'name':'operation','type':'string','description':a49_0x3c9e23(0x1db)},{'name':a49_0x3c9e23(0x1d2),'type':'boolean','description':'Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields'}],async 'execute'(_0x498640){const _0x460daf=a49_0x3c9e23,_0x3e502d=_0x498640[_0x460daf(0x1e0)](_0x460daf(0x1e6)),_0x1fa282=_0x498640[_0x460daf(0x1e0)]('operation'),_0x36f30b=_0x498640[_0x460daf(0x1da)]('verbose');if(_0x1fa282){const {dataset:_0x521659,operation:_0x553a2c}=await getOperationDetail(_0x498640[_0x460daf(0x1ce)],_0x3e502d,_0x1fa282);return{'ok':!![],'data':{'dataset':_0x521659,'operation':_0x553a2c}};}const {dataset:_0x199925,operations:_0x173831}=await getDatasetOperations(_0x3e502d);return{'ok':!![],'data':{'dataset':_0x199925,'total':_0x173831[_0x460daf(0x1cc)],'operations':_0x36f30b?_0x173831:_0x173831[_0x460daf(0x1df)](_0x52c88e=>({'name':_0x52c88e[_0x460daf(0x1dc)],'displayName':_0x52c88e[_0x460daf(0x1e1)],'type':_0x52c88e[_0x460daf(0x1d5)],'method':_0x52c88e['method'],'enabled':_0x52c88e['enabled']}))}};}};
1
+ const a49_0x351077=a49_0x1295;function a49_0x1295(_0xb30547,_0xbf7f33){_0xb30547=_0xb30547-0x192;const _0x4beb9d=a49_0x4beb();let _0x129564=_0x4beb9d[_0xb30547];return _0x129564;}function a49_0x4beb(){const _0x2deca6=['dataset','displayName','code','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','type','operation','bool','3951241hvewPe','str','9wDhqKs','verbose','Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)','1429712EYSCIY','6TCYpZt','alias','map','2724579BkFSIv','1280200aUAyRj','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','appCode','operations','length','62741QCSisH','1916918NhLRSY','1145530YnvhJD','string','method'];a49_0x4beb=function(){return _0x2deca6;};return a49_0x4beb();}(function(_0x17942e,_0x22a588){const _0x49a61c=a49_0x1295,_0x3496f7=_0x17942e();while(!![]){try{const _0x88219d=-parseInt(_0x49a61c(0x195))/0x1+parseInt(_0x49a61c(0x196))/0x2+-parseInt(_0x49a61c(0x1aa))/0x3+parseInt(_0x49a61c(0x1a6))/0x4+-parseInt(_0x49a61c(0x197))/0x5+parseInt(_0x49a61c(0x1a7))/0x6*(parseInt(_0x49a61c(0x1a1))/0x7)+parseInt(_0x49a61c(0x1ab))/0x8*(-parseInt(_0x49a61c(0x1a3))/0x9);if(_0x88219d===_0x22a588)break;else _0x3496f7['push'](_0x3496f7['shift']());}catch(_0xd64eb9){_0x3496f7['push'](_0x3496f7['shift']());}}}(a49_0x4beb,0x7f05d));import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetOperations={'service':a49_0x351077(0x19a),'command':a49_0x351077(0x193),'description':'Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','risk':'read','flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a49_0x351077(0x1a8),'type':'string','description':a49_0x351077(0x19d)},{'name':a49_0x351077(0x19f),'type':a49_0x351077(0x198),'description':a49_0x351077(0x1a5)},{'name':a49_0x351077(0x1a4),'type':'boolean','description':a49_0x351077(0x1ac)}],async 'execute'(_0x36a0af){const _0x4fc40b=a49_0x351077,_0x2da1a0=_0x36a0af[_0x4fc40b(0x1a2)](_0x4fc40b(0x19c)),_0x5a20e4=_0x36a0af[_0x4fc40b(0x1a2)]('operation'),_0x4bccc4=_0x36a0af[_0x4fc40b(0x1a0)]('verbose');if(_0x5a20e4){const {dataset:_0x27b685,operation:_0x3a3754}=await getOperationDetail(_0x36a0af[_0x4fc40b(0x192)],_0x2da1a0,_0x5a20e4);return{'ok':!![],'data':{'dataset':_0x27b685,'operation':_0x3a3754}};}const {dataset:_0x1a8903,operations:_0x1e662c}=await getDatasetOperations(_0x2da1a0);return{'ok':!![],'data':{'dataset':_0x1a8903,'total':_0x1e662c[_0x4fc40b(0x194)],'operations':_0x4bccc4?_0x1e662c:_0x1e662c[_0x4fc40b(0x1a9)](_0x41b790=>({'name':_0x41b790['name'],'displayName':_0x41b790[_0x4fc40b(0x19b)],'type':_0x41b790[_0x4fc40b(0x19e)],'method':_0x41b790[_0x4fc40b(0x199)],'enabled':_0x41b790['enabled']}))}};}};
@@ -0,0 +1 @@
1
+ function a50_0x42fd(_0x503400,_0x3b025c){_0x503400=_0x503400-0x16c;const _0x1cfa5c=a50_0x1cfa();let _0x42fd79=_0x1cfa5c[_0x503400];return _0x42fd79;}const a50_0x5ca472=a50_0x42fd;(function(_0xb73422,_0x1c1abd){const _0xeac309=a50_0x42fd,_0x38433c=_0xb73422();while(!![]){try{const _0x3c3242=-parseInt(_0xeac309(0x16d))/0x1*(parseInt(_0xeac309(0x16f))/0x2)+-parseInt(_0xeac309(0x172))/0x3+-parseInt(_0xeac309(0x16e))/0x4+parseInt(_0xeac309(0x170))/0x5+parseInt(_0xeac309(0x17a))/0x6+parseInt(_0xeac309(0x16c))/0x7+-parseInt(_0xeac309(0x177))/0x8;if(_0x3c3242===_0x1c1abd)break;else _0x38433c['push'](_0x38433c['shift']());}catch(_0x7d810c){_0x38433c['push'](_0x38433c['shift']());}}}(a50_0x1cfa,0x93886));import{cancelDbAnalysis,getDbLinkInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeCancel={'service':'db','command':'analyze-cancel','description':a50_0x5ca472(0x17d),'risk':a50_0x5ca472(0x17e),'defaultOutputFormat':a50_0x5ca472(0x178),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a50_0x5ca472(0x17b),'type':'string','description':a50_0x5ca472(0x176)}],async 'execute'(_0x2eb283){const _0xf061a3=a50_0x5ca472,_0x410689=_0x2eb283[_0xf061a3(0x173)]('id');let _0x49098=_0x2eb283[_0xf061a3(0x175)]('plan')||undefined;if(!_0x49098){const _0xd3dc26=await getDbLinkInfo(_0x410689);_0x49098=_0xd3dc26[_0xf061a3(0x171)]??undefined;if(!_0x49098)throw CliErrors['validation'](_0xf061a3(0x179),_0xf061a3(0x174));}return await cancelDbAnalysis(_0x49098),{'ok':!![],'data':{'dbLinkId':_0x410689,'planId':_0x49098},'message':_0xf061a3(0x17c)+_0x49098};}};function a50_0x1cfa(){const _0x23d899=['latestAnalysisTraceId','418734KsNXlp','num','Analysis\x20may\x20already\x20be\x20finished\x20or\x20never\x20started.','str','Analysis\x20plan\x20/\x20trace\x20id\x20(optional\x20—\x20defaults\x20to\x20latest\x20trace\x20from\x20db\x20list/detail)','2093472IrCDID','compress','No\x20latestAnalysisTraceId\x20on\x20this\x20link.\x20Pass\x20--plan\x20<traceId>\x20from\x20db\x20list/detail.','2902836yatsxK','plan','Cancel\x20requested\x20for\x20plan\x20','Cancel\x20a\x20running\x20schema\x20analysis.\x20Omit\x20--plan\x20to\x20use\x20latestAnalysisTraceId\x20from\x20the\x20link','write','1458569SQkytA','1BexdWr','964544bPZGPy','472634IbBgwS','3954180zJqubW'];a50_0x1cfa=function(){return _0x23d899;};return a50_0x1cfa();}
@@ -0,0 +1 @@
1
+ const a51_0x47aa28=a51_0x1c2d;(function(_0x20d9b4,_0x156243){const _0x2d6b40=a51_0x1c2d,_0x43c525=_0x20d9b4();while(!![]){try{const _0xced73f=-parseInt(_0x2d6b40(0x1c7))/0x1+parseInt(_0x2d6b40(0x1c1))/0x2*(parseInt(_0x2d6b40(0x1bc))/0x3)+parseInt(_0x2d6b40(0x1b8))/0x4+parseInt(_0x2d6b40(0x1c6))/0x5*(-parseInt(_0x2d6b40(0x1b6))/0x6)+parseInt(_0x2d6b40(0x1c2))/0x7+parseInt(_0x2d6b40(0x1b9))/0x8*(-parseInt(_0x2d6b40(0x1bf))/0x9)+-parseInt(_0x2d6b40(0x1bd))/0xa;if(_0xced73f===_0x156243)break;else _0x43c525['push'](_0x43c525['shift']());}catch(_0x1e81a7){_0x43c525['push'](_0x43c525['shift']());}}}(a51_0x429f,0x34142));import{startDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeStart={'service':'db','command':a51_0x47aa28(0x1ba),'description':a51_0x47aa28(0x1be),'risk':a51_0x47aa28(0x1c3),'defaultOutputFormat':a51_0x47aa28(0x1c4),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a51_0x47aa28(0x1c0),'type':a51_0x47aa28(0x1bb),'description':'Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)'}],async 'execute'(_0x2f8c7a){const _0x3b8bb3=a51_0x47aa28,_0x181005=_0x2f8c7a['num']('id'),_0x531454=_0x2f8c7a[_0x3b8bb3(0x1c5)](_0x3b8bb3(0x1c0)),_0x8fae87=_0x531454?_0x531454[_0x3b8bb3(0x1b5)](',')['map'](_0x255b38=>_0x255b38[_0x3b8bb3(0x1c8)]())[_0x3b8bb3(0x1b7)](Boolean):undefined,_0x123244=await startDbAnalysis(_0x181005,_0x8fae87);return{'ok':!![],'data':{'dbLinkId':_0x181005,'planId':_0x123244,'tableNames':_0x8fae87??[]},'message':'Started\x20analysis\x20for\x20db\x20link\x20'+_0x181005};}};function a51_0x1c2d(_0x52b9de,_0x5c15f0){_0x52b9de=_0x52b9de-0x1b5;const _0x429fd5=a51_0x429f();let _0x1c2d66=_0x429fd5[_0x52b9de];return _0x1c2d66;}function a51_0x429f(){const _0x4ff786=['2379410LNWvWQ','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','9elRoyD','tables','36rSPkhP','1139012qOpcXV','write','compress','str','5330WRVovQ','12891VXdtEo','trim','split','624AwTJuO','filter','1621668asaAyS','2639656Lseshm','analyze-start','string','56139Hwedzy'];a51_0x429f=function(){return _0x4ff786;};return a51_0x429f();}
@@ -0,0 +1 @@
1
+ const a52_0x80f8f4=a52_0x407b;function a52_0x1a54(){const _0x366022=['227328mRYwSv','plan','10tzxSrl','str','compress','analyze-status','15135IGNYnt','1062140EwiqsV','24kQCClH','string','625520LXfWnO','792468SmSdNC','810184TFXODi','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','280422iFYqGx','Analysis\x20status\x20for\x20','read'];a52_0x1a54=function(){return _0x366022;};return a52_0x1a54();}function a52_0x407b(_0x2dc63f,_0x3b9fac){_0x2dc63f=_0x2dc63f-0x155;const _0x1a5411=a52_0x1a54();let _0x407b88=_0x1a5411[_0x2dc63f];return _0x407b88;}(function(_0x49ccf5,_0x4e0ef4){const _0x4cf41d=a52_0x407b,_0x17091b=_0x49ccf5();while(!![]){try{const _0x19f39e=-parseInt(_0x4cf41d(0x162))/0x1+parseInt(_0x4cf41d(0x164))/0x2*(-parseInt(_0x4cf41d(0x157))/0x3)+-parseInt(_0x4cf41d(0x15d))/0x4+parseInt(_0x4cf41d(0x158))/0x5+parseInt(_0x4cf41d(0x15f))/0x6+parseInt(_0x4cf41d(0x15b))/0x7*(parseInt(_0x4cf41d(0x159))/0x8)+parseInt(_0x4cf41d(0x15c))/0x9;if(_0x19f39e===_0x4e0ef4)break;else _0x17091b['push'](_0x17091b['shift']());}catch(_0xae175d){_0x17091b['push'](_0x17091b['shift']());}}}(a52_0x1a54,0x271c6));import{getDbAnalysisStatus}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeStatus={'service':'db','command':a52_0x80f8f4(0x156),'description':'Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','risk':a52_0x80f8f4(0x161),'defaultOutputFormat':a52_0x80f8f4(0x155),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':'plan','type':a52_0x80f8f4(0x15a),'required':!![],'description':a52_0x80f8f4(0x15e)}],async 'execute'(_0x4a872a){const _0x5e543c=a52_0x80f8f4,_0x21636c=_0x4a872a['num']('id'),_0x464fac=_0x4a872a[_0x5e543c(0x165)](_0x5e543c(0x163)),_0x2d7b4e=await getDbAnalysisStatus(_0x464fac);return{'ok':!![],'data':{'dbLinkId':_0x21636c,'planId':_0x464fac,'status':_0x2d7b4e},'message':_0x5e543c(0x160)+_0x464fac};}};
@@ -0,0 +1 @@
1
+ const a53_0x30f599=a53_0x25ac;function a53_0x1d32(){const _0x4aac37=['dburl','str','1121088hypkYx','792INgMBl','trim','create','dbdesc','join','8.0','After\x20create,\x20start\x20schema\x20analysis\x20(same\x20as\x20workbench\x20flow)','168JhxCph','\x20and\x20started\x20analysis','compress','No\x20follow-up\x20analysis','Created\x20db\x20link\x20','Human-readable\x20description','message','dbversion','password','string','2817717EMkMUO','appCode','dbparam','1162958JxSJXA','Host\x20and\x20port:\x20host:port','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','dbname','Database\x20password','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','[redacted]','Extra\x20JDBC-style\x20connection\x20parameters\x20string','POST','autostart','bool','5146748CSbNPv','username','boolean','5255HgpRWA','789255ZhdsTN','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','1111442TUzUey','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','validation','dbtype'];a53_0x1d32=function(){return _0x4aac37;};return a53_0x1d32();}(function(_0x38d8bb,_0x560023){const _0x4938f6=a53_0x25ac,_0x33d5da=_0x38d8bb();while(!![]){try{const _0x13468f=parseInt(_0x4938f6(0x1cd))/0x1+-parseInt(_0x4938f6(0x1de))/0x2+parseInt(_0x4938f6(0x1e4))/0x3+parseInt(_0x4938f6(0x1d8))/0x4+parseInt(_0x4938f6(0x1db))/0x5*(-parseInt(_0x4938f6(0x1e5))/0x6)+parseInt(_0x4938f6(0x1ca))/0x7+-parseInt(_0x4938f6(0x1ec))/0x8*(parseInt(_0x4938f6(0x1dc))/0x9);if(_0x13468f===_0x560023)break;else _0x33d5da['push'](_0x33d5da['shift']());}catch(_0xae8fd1){_0x33d5da['push'](_0x33d5da['shift']());}}}(a53_0x1d32,0xa86a0));function a53_0x25ac(_0x4c60b3,_0x41e266){_0x4c60b3=_0x4c60b3-0x1c9;const _0x1d3238=a53_0x1d32();let _0x25ac14=_0x1d3238[_0x4c60b3];return _0x25ac14;}import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';export const dbCreate={'service':'db','command':a53_0x30f599(0x1e7),'description':'Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','risk':'write','defaultOutputFormat':a53_0x30f599(0x1ee),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a53_0x30f599(0x1d0),'type':a53_0x30f599(0x1c9),'required':!![],'description':'Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server'},DB_TYPE_FLAG,{'name':a53_0x30f599(0x1f3),'type':a53_0x30f599(0x1c9),'description':a53_0x30f599(0x1cf),'default':'8.0'},{'name':a53_0x30f599(0x1e2),'type':a53_0x30f599(0x1c9),'required':!![],'description':a53_0x30f599(0x1ce)},{'name':a53_0x30f599(0x1d9),'type':'string','required':!![],'description':'Database\x20username'},{'name':a53_0x30f599(0x1f4),'type':a53_0x30f599(0x1c9),'required':!![],'description':a53_0x30f599(0x1d1)},{'name':a53_0x30f599(0x1cc),'type':'string','description':a53_0x30f599(0x1d4)},{'name':a53_0x30f599(0x1e8),'type':a53_0x30f599(0x1c9),'description':a53_0x30f599(0x1f1)},{'name':a53_0x30f599(0x1d6),'type':a53_0x30f599(0x1da),'description':a53_0x30f599(0x1eb),'default':![]}],async 'validate'(_0x37d69a){const _0x1b26a9=a53_0x30f599,_0x1aecc6=_0x37d69a[_0x1b26a9(0x1e3)](_0x1b26a9(0x1e2))[_0x1b26a9(0x1e6)]();if(!validateDbUrl(_0x1aecc6))throw CliErrors[_0x1b26a9(0x1e0)](_0x1b26a9(0x1d2)+_0x1aecc6+'\x22',_0x1b26a9(0x1df));},async 'dryRun'(_0xc0825a){const _0x14c438=a53_0x30f599,_0x1af91d={'appCode':_0xc0825a[_0x14c438(0x1cb)],'dbName':_0xc0825a['str'](_0x14c438(0x1d0)),'dbType':_0xc0825a[_0x14c438(0x1e3)](_0x14c438(0x1e1)),'dbVersion':_0xc0825a[_0x14c438(0x1e3)](_0x14c438(0x1f3))||'8.0','dbUrl':_0xc0825a[_0x14c438(0x1e3)]('dburl')[_0x14c438(0x1e6)](),'username':_0xc0825a[_0x14c438(0x1e3)]('username'),'password':_0x14c438(0x1d3),..._0xc0825a[_0x14c438(0x1e3)]('dbparam')?{'dbParam':_0xc0825a['str'](_0x14c438(0x1cc))}:{},..._0xc0825a[_0x14c438(0x1e3)](_0x14c438(0x1e8))?{'dbDesc':_0xc0825a[_0x14c438(0x1e3)](_0x14c438(0x1e8))}:{}};return{'method':_0x14c438(0x1d5),'url':'/smartapi/dblink/create','body':_0x1af91d,'description':['Create\x20dblink',_0xc0825a[_0x14c438(0x1d7)](_0x14c438(0x1d6))?_0x14c438(0x1dd):_0x14c438(0x1ef)][_0x14c438(0x1e9)]('\x0a')};},async 'execute'(_0x1873dc){const _0xd44478=a53_0x30f599,_0x635773={'appCode':_0x1873dc['appCode'],'dbName':_0x1873dc['str'](_0xd44478(0x1d0)),'dbType':_0x1873dc['str'](_0xd44478(0x1e1)),'dbVersion':_0x1873dc[_0xd44478(0x1e3)](_0xd44478(0x1f3))||_0xd44478(0x1ea),'dbUrl':_0x1873dc['str'](_0xd44478(0x1e2))[_0xd44478(0x1e6)](),'username':_0x1873dc[_0xd44478(0x1e3)](_0xd44478(0x1d9)),'password':_0x1873dc['str']('password'),..._0x1873dc[_0xd44478(0x1e3)](_0xd44478(0x1cc))?{'dbParam':_0x1873dc['str']('dbparam')}:{},..._0x1873dc[_0xd44478(0x1e3)](_0xd44478(0x1e8))?{'dbDesc':_0x1873dc['str']('dbdesc')}:{}},_0x435d7d=await createDbLink(_0x635773),_0xba062b=_0x435d7d['id'];if(!_0xba062b)return{'ok':![],'message':'Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','data':sanitizeDbLinkForOutput(_0x435d7d)};let _0x8048cf,_0x4397e6;if(_0x1873dc[_0xd44478(0x1d7)](_0xd44478(0x1d6)))try{_0x8048cf=await startDbAnalysis(_0xba062b);}catch(_0x17fb7f){_0x4397e6=_0x17fb7f instanceof Error?_0x17fb7f[_0xd44478(0x1f2)]:String(_0x17fb7f);}const _0x234815={'connection':sanitizeDbLinkForOutput(_0x435d7d),..._0x8048cf?{'analysisPlanId':_0x8048cf}:{},..._0x4397e6?{'analysisStartWarning':_0x4397e6}:{}};let _0x4f6b78;return _0x1873dc[_0xd44478(0x1d7)](_0xd44478(0x1d6))?_0x4397e6?_0x4f6b78='Created\x20db\x20link\x20'+_0xba062b+';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning':_0x4f6b78=_0xd44478(0x1f0)+_0xba062b+_0xd44478(0x1ed):_0x4f6b78=_0xd44478(0x1f0)+_0xba062b,{'ok':!![],'data':_0x234815,'message':_0x4f6b78};}};
@@ -0,0 +1 @@
1
+ const a54_0x19b74c=a54_0xe9e7;(function(_0x1a28b9,_0x3c3dbc){const _0x136658=a54_0xe9e7,_0x2f5632=_0x1a28b9();while(!![]){try{const _0x1314be=-parseInt(_0x136658(0x169))/0x1*(-parseInt(_0x136658(0x174))/0x2)+parseInt(_0x136658(0x170))/0x3+parseInt(_0x136658(0x168))/0x4*(-parseInt(_0x136658(0x173))/0x5)+-parseInt(_0x136658(0x16f))/0x6+-parseInt(_0x136658(0x16e))/0x7+-parseInt(_0x136658(0x16a))/0x8*(parseInt(_0x136658(0x16d))/0x9)+parseInt(_0x136658(0x167))/0xa*(parseInt(_0x136658(0x171))/0xb);if(_0x1314be===_0x3c3dbc)break;else _0x2f5632['push'](_0x2f5632['shift']());}catch(_0x51f1f7){_0x2f5632['push'](_0x2f5632['shift']());}}}(a54_0x3e9f,0x586db));function a54_0x3e9f(){const _0x4b72e3=['high-risk-write','63mgBRLQ','3056704zkiEGl','3103044fXCApW','142614MFqXfM','20985613QUHcOF','delete','555LMGiQl','277958LJXUyB','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','num','10zFnPUX','6756peJAOt','1oDtwid','675168vHRIOY','Deleted\x20db\x20link\x20'];a54_0x3e9f=function(){return _0x4b72e3;};return a54_0x3e9f();}function a54_0xe9e7(_0x1b1d94,_0x352a9d){_0x1b1d94=_0x1b1d94-0x166;const _0x3e9f97=a54_0x3e9f();let _0xe9e701=_0x3e9f97[_0x1b1d94];return _0xe9e701;}import{deleteDbLink}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDelete={'service':'db','command':a54_0x19b74c(0x172),'description':a54_0x19b74c(0x175),'risk':a54_0x19b74c(0x16c),'defaultOutputFormat':'compress','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x42d10f){const _0x73ea33=a54_0x19b74c,_0x1161d6=_0x42d10f[_0x73ea33(0x166)]('id');return await deleteDbLink(_0x1161d6),{'ok':!![],'data':{'id':_0x1161d6,'deleted':!![]},'message':_0x73ea33(0x16b)+_0x1161d6};}};
@@ -0,0 +1 @@
1
+ const a55_0x5a24f9=a55_0x4c65;(function(_0x33e1d8,_0x40a59b){const _0x11ecab=a55_0x4c65,_0x77f62f=_0x33e1d8();while(!![]){try{const _0x1b08cd=parseInt(_0x11ecab(0x13c))/0x1*(parseInt(_0x11ecab(0x130))/0x2)+parseInt(_0x11ecab(0x131))/0x3+parseInt(_0x11ecab(0x13d))/0x4+-parseInt(_0x11ecab(0x13b))/0x5+parseInt(_0x11ecab(0x12e))/0x6*(-parseInt(_0x11ecab(0x137))/0x7)+parseInt(_0x11ecab(0x139))/0x8+-parseInt(_0x11ecab(0x134))/0x9*(parseInt(_0x11ecab(0x135))/0xa);if(_0x1b08cd===_0x40a59b)break;else _0x77f62f['push'](_0x77f62f['shift']());}catch(_0x3faabf){_0x77f62f['push'](_0x77f62f['shift']());}}}(a55_0x7638,0x23fb5));import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a55_0x7638(){const _0x5a5abd=['374696sORQrQ','detail','1659504xHmkhD','compress','1001505MzGyAS','150493HbZyGa','804608CdLSTP','6gYltFu','read','2BZgXOL','720513kKnuIk','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','dbName','1791198EhTcmT','20kOaRZo','db\x20link\x20'];a55_0x7638=function(){return _0x5a5abd;};return a55_0x7638();}import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';function a55_0x4c65(_0x42efaf,_0x4a694b){_0x42efaf=_0x42efaf-0x12e;const _0x763853=a55_0x7638();let _0x4c650e=_0x763853[_0x42efaf];return _0x4c650e;}export const dbDetail={'service':'db','command':a55_0x5a24f9(0x138),'description':a55_0x5a24f9(0x132),'risk':a55_0x5a24f9(0x12f),'defaultOutputFormat':a55_0x5a24f9(0x13a),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2212a2){const _0x5c6e3b=a55_0x5a24f9,_0x1b8819=_0x2212a2['num']('id'),_0x558d10=await getDbLinkInfo(_0x1b8819);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x558d10),'message':_0x5c6e3b(0x136)+_0x1b8819+':\x20'+_0x558d10[_0x5c6e3b(0x133)]};}};
@@ -0,0 +1 @@
1
+ const a56_0x37ef85=a56_0x6c6a;(function(_0xbd86f8,_0x170f81){const _0x5dd150=a56_0x6c6a,_0x188de3=_0xbd86f8();while(!![]){try{const _0x2076e0=parseInt(_0x5dd150(0x77))/0x1+-parseInt(_0x5dd150(0x76))/0x2+parseInt(_0x5dd150(0x71))/0x3+parseInt(_0x5dd150(0x6f))/0x4+-parseInt(_0x5dd150(0x6d))/0x5*(-parseInt(_0x5dd150(0x75))/0x6)+parseInt(_0x5dd150(0x83))/0x7*(parseInt(_0x5dd150(0x7a))/0x8)+-parseInt(_0x5dd150(0x84))/0x9;if(_0x2076e0===_0x170f81)break;else _0x188de3['push'](_0x188de3['shift']());}catch(_0x141760){_0x188de3['push'](_0x188de3['shift']());}}}(a56_0x4861,0x342c1));function a56_0x6c6a(_0x23bb4d,_0x3116aa){_0x23bb4d=_0x23bb4d-0x6d;const _0x4861df=a56_0x4861();let _0x6c6ad1=_0x4861df[_0x23bb4d];return _0x6c6ad1;}import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDiff={'service':'db','command':a56_0x37ef85(0x7e),'description':a56_0x37ef85(0x74),'risk':a56_0x37ef85(0x7c),'defaultOutputFormat':'compress','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a56_0x37ef85(0x7f),'type':a56_0x37ef85(0x81),'description':a56_0x37ef85(0x82)},{'name':a56_0x37ef85(0x80),'type':a56_0x37ef85(0x70),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':a56_0x37ef85(0x7b),'type':'number','description':'Page\x20size','default':0x14}],async 'execute'(_0x494e8f){const _0x2a5526=a56_0x37ef85,_0xf58b7c=_0x494e8f['num']('id'),_0x4a9bf0=_0x494e8f[_0x2a5526(0x6e)](_0x2a5526(0x80),0x1)||0x1,_0x18124a=_0x494e8f['num'](_0x2a5526(0x7b),0x14)||0x14,_0x1f0d28=_0x494e8f[_0x2a5526(0x7d)]('table')||undefined,{totalCount:_0x25e66d,tableList:_0x4ee4a9}=await getDbTableDiff(_0x494e8f[_0x2a5526(0x73)],_0xf58b7c,{'pageIndex':_0x4a9bf0,'pageSize':_0x18124a,'tableName':_0x1f0d28});return{'ok':!![],'data':{'dbLinkId':_0xf58b7c,'page':_0x4a9bf0,'pageSize':_0x18124a,'totalCount':_0x25e66d,'tableList':_0x4ee4a9},'message':_0x4ee4a9[_0x2a5526(0x72)]+_0x2a5526(0x78)+_0x25e66d+_0x2a5526(0x79)+_0xf58b7c+')'};}};function a56_0x4861(){const _0x4624df=['Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','373278AlOWmc','333760XgKOcN','395023DkHDJc','\x20row(s),\x20total\x20','\x20(db\x20link\x20','1072AXYNeS','pagesize','read','str','diff','table','page','string','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','17059gWSikd','9745731qOApNX','10YDASUp','num','913760KuXBFB','number','1166967gvlnvR','length','appCode'];a56_0x4861=function(){return _0x4624df;};return a56_0x4861();}
@@ -0,0 +1 @@
1
+ (function(_0xf41ccc,_0x4f213b){const _0x13e99c=a57_0x542a,_0x2a9bd5=_0xf41ccc();while(!![]){try{const _0x301815=parseInt(_0x13e99c(0xb6))/0x1+-parseInt(_0x13e99c(0xb3))/0x2*(parseInt(_0x13e99c(0xb2))/0x3)+-parseInt(_0x13e99c(0xb8))/0x4+parseInt(_0x13e99c(0xb4))/0x5*(parseInt(_0x13e99c(0xb0))/0x6)+-parseInt(_0x13e99c(0xb1))/0x7*(parseInt(_0x13e99c(0xb7))/0x8)+-parseInt(_0x13e99c(0xb5))/0x9+parseInt(_0x13e99c(0xb9))/0xa*(parseInt(_0x13e99c(0xba))/0xb);if(_0x301815===_0x4f213b)break;else _0x2a9bd5['push'](_0x2a9bd5['shift']());}catch(_0x31e9c5){_0x2a9bd5['push'](_0x2a9bd5['shift']());}}}(a57_0x5091,0xabd5e));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';function a57_0x542a(_0x5bb251,_0x590814){_0x5bb251=_0x5bb251-0xb0;const _0x50914b=a57_0x5091();let _0x542a78=_0x50914b[_0x5bb251];return _0x542a78;}function a57_0x5091(){const _0xdbb3ed=['36XgbUrR','878801FUQlYw','3UfICfD','242286EFPAkd','24765tsmcwX','11764125MHOduM','998305roCUxA','72QHAkfv','2719832eTcPZY','40AQRjuw','8013302NfPmaO'];a57_0x5091=function(){return _0xdbb3ed;};return a57_0x5091();}import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];