@lovrabet/rabetbase-cli 2.1.1 → 2.1.2-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -0
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -0
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -0
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/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 -1
  53. package/lib/commands/db/analyze-start.js +1 -1
  54. package/lib/commands/db/analyze-status.js +1 -1
  55. package/lib/commands/db/create.js +1 -1
  56. package/lib/commands/db/delete.js +1 -1
  57. package/lib/commands/db/detail.js +1 -1
  58. package/lib/commands/db/diff.js +1 -1
  59. package/lib/commands/db/index.js +1 -1
  60. package/lib/commands/db/list.js +1 -1
  61. package/lib/commands/db/shared.js +1 -1
  62. package/lib/commands/db/tables.js +1 -1
  63. package/lib/commands/db/test.js +1 -1
  64. package/lib/commands/db/update.js +1 -1
  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/config/schema.js +1 -0
  104. package/lib/constant/cli.js +1 -1
  105. package/lib/constant/defaults.js +1 -0
  106. package/lib/constant/domain.js +1 -1
  107. package/lib/constant/env.js +1 -1
  108. package/lib/constant/output.js +1 -0
  109. package/lib/constant/paths.js +1 -1
  110. package/lib/constant/risk.js +1 -0
  111. package/lib/context.js +1 -1
  112. package/lib/core/alias-resolver.js +1 -1
  113. package/lib/core/api-client.js +1 -1
  114. package/lib/core/bff/config.js +1 -1
  115. package/lib/core/bff/file-system.js +1 -1
  116. package/lib/core/bff/hash.js +1 -1
  117. package/lib/core/bff/lock.js +1 -1
  118. package/lib/core/bff/utils.js +1 -1
  119. package/lib/core/db-resolver.js +1 -1
  120. package/lib/core/sql-validator.js +1 -1
  121. package/lib/errors.js +1 -1
  122. package/lib/framework/build-all-flags.js +1 -1
  123. package/lib/framework/flags.js +1 -1
  124. package/lib/framework/help.js +1 -1
  125. package/lib/framework/index.js +1 -1
  126. package/lib/framework/output.js +1 -1
  127. package/lib/framework/response.js +1 -1
  128. package/lib/framework/runner-alias.js +1 -0
  129. package/lib/framework/runner.js +1 -1
  130. package/lib/framework/schema-export.js +1 -1
  131. package/lib/framework/types.js +1 -1
  132. package/lib/generated/build-info.js +1 -1
  133. package/lib/help.js +1 -1
  134. package/lib/skills/main.js +1 -1
  135. package/lib/skills/npx-skills-add.js +1 -1
  136. package/lib/telemetry/cli-command-trace.js +1 -1
  137. package/lib/telemetry/cli-help-trace.js +1 -1
  138. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  139. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  140. package/lib/telemetry/send-cli-trace-log.js +1 -1
  141. package/lib/utils/ai_config.js +1 -1
  142. package/lib/utils/apply-jq-filter.js +1 -1
  143. package/lib/utils/cdn-config.js +1 -1
  144. package/lib/utils/check-sdk-version.js +1 -1
  145. package/lib/utils/cli-version-check.js +1 -1
  146. package/lib/utils/config.js +1 -1
  147. package/lib/utils/copy-directory.js +1 -1
  148. package/lib/utils/file-utils.js +1 -1
  149. package/lib/utils/guides-cdn.js +1 -1
  150. package/lib/utils/http-client.js +1 -1
  151. package/lib/utils/is-non-interactive.js +1 -1
  152. package/lib/utils/logger.js +1 -1
  153. package/lib/utils/platform.js +1 -1
  154. package/lib/utils/rules-cdn.js +1 -1
  155. package/lib/utils/sleep.js +1 -1
  156. package/lib/utils/template-replacer.js +1 -1
  157. package/lib/utils/version.js +1 -1
  158. package/lib/utils/with-active-cookie.js +1 -1
  159. package/lib/utils/write-cli-side-channel.js +1 -1
  160. package/package.json +3 -2
  161. package/lib/commands/api/doc.js +0 -1
  162. package/lib/commands/app/remote.js +0 -1
@@ -1 +1 @@
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
+ function a34_0x48d9(_0x5b588b,_0x95a4a4){_0x5b588b=_0x5b588b-0xb6;const _0x1c803b=a34_0x1c80();let _0x48d9b8=_0x1c803b[_0x5b588b];return _0x48d9b8;}const a34_0x12655e=a34_0x48d9;(function(_0x49108e,_0x536e86){const _0x35d449=a34_0x48d9,_0x1353bf=_0x49108e();while(!![]){try{const _0x20b568=parseInt(_0x35d449(0xba))/0x1*(parseInt(_0x35d449(0xdd))/0x2)+-parseInt(_0x35d449(0xbf))/0x3*(parseInt(_0x35d449(0xd5))/0x4)+parseInt(_0x35d449(0xca))/0x5+parseInt(_0x35d449(0xbd))/0x6+-parseInt(_0x35d449(0xb6))/0x7+parseInt(_0x35d449(0xd2))/0x8*(-parseInt(_0x35d449(0xce))/0x9)+parseInt(_0x35d449(0xc7))/0xa;if(_0x20b568===_0x536e86)break;else _0x1353bf['push'](_0x1353bf['shift']());}catch(_0x17732f){_0x1353bf['push'](_0x1353bf['shift']());}}}(a34_0x1c80,0xe6caf));import a34_0x5a9d31 from'chalk';import a34_0x5206d4 from'ora';import a34_0x3417cd 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 getCurrentVersion(){const _0x337bd7=a34_0x48d9;return GIT_COMMIT!==_0x337bd7(0xcc)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x2dbb7f=a34_0x48d9,_0x540274=process[_0x2dbb7f(0xe5)]['toLowerCase']();if(_0x540274['includes'](_0x2dbb7f(0xda)))return _0x2dbb7f(0xda);return'npm';}async function fetchLatestNpmVersion(){const _0x3fcc27=a34_0x48d9;try{const _0xc26318=await fetch('https://registry.npmjs.org/'+NPM_PACKAGE_NAME+_0x3fcc27(0xd0),{'signal':AbortSignal[_0x3fcc27(0xde)](0x2710)});if(!_0xc26318['ok'])return null;const _0xcd36e6=await _0xc26318['json']();return _0xcd36e6['version']??null;}catch{return null;}}async function fetchLatestVersion(){const _0x5e3edd=a34_0x48d9,_0x256084=await fetchLatestNpmVersion();if(_0x256084)return _0x256084;const _0x1bc934=await getCdnConfig();return _0x1bc934?.[_0x5e3edd(0xe2)]?.[_0x5e3edd(0xc5)]??null;}async function execute(_0x4c2a89){const _0x3c2abd=a34_0x48d9,_0x1f5a29=getCurrentVersion();console[_0x3c2abd(0xc4)](_0x3c2abd(0xbb)+_0x1f5a29);const _0x4f0aa7=a34_0x5206d4(_0x3c2abd(0xb8))[_0x3c2abd(0xc8)](),_0x1dd0d2=await fetchLatestVersion();if(!_0x1dd0d2)return _0x4f0aa7[_0x3c2abd(0xd9)](_0x3c2abd(0xc1)),console[_0x3c2abd(0xc4)](a34_0x5a9d31[_0x3c2abd(0xe3)](_0x3c2abd(0xdc)+NPM_PACKAGE_NAME+_0x3c2abd(0xcf))),{'ok':![],'message':_0x3c2abd(0xc6)};const _0x285bd3=a34_0x3417cd[_0x3c2abd(0xd8)](_0x1f5a29),_0x7e00e4=a34_0x3417cd[_0x3c2abd(0xd8)](_0x1dd0d2);if(!_0x285bd3||!_0x7e00e4)return _0x4f0aa7['fail'](_0x3c2abd(0xc2)),{'ok':![],'message':_0x3c2abd(0xc2)};if(!a34_0x3417cd['lt'](_0x285bd3,_0x7e00e4))return _0x4f0aa7[_0x3c2abd(0xd1)]('Already\x20up\x20to\x20date\x20(v'+_0x1dd0d2+')'),{'ok':!![]};_0x4f0aa7[_0x3c2abd(0xe1)](_0x3c2abd(0xdb)+a34_0x5a9d31[_0x3c2abd(0xc9)](_0x1f5a29)+_0x3c2abd(0xc3)+a34_0x5a9d31[_0x3c2abd(0xd7)](_0x1dd0d2));const _0xc43211=detectPackageManager(),_0x51c791=_0xc43211===_0x3c2abd(0xe4)?resolveNpmBin('npm'):_0xc43211,_0x818fa9=a34_0x5206d4('Updating\x20via\x20'+_0xc43211+_0x3c2abd(0xd3))[_0x3c2abd(0xc8)]();try{return await execa(_0x51c791,[_0x3c2abd(0xe0),'-g',NPM_PACKAGE_NAME+_0x3c2abd(0xcf)],{'stdio':_0x3c2abd(0xcd)}),_0x818fa9[_0x3c2abd(0xd1)](_0x3c2abd(0xb9)+_0x1dd0d2),console[_0x3c2abd(0xc4)](a34_0x5a9d31['gray']('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.')),{'ok':!![]};}catch(_0x1db06f){return _0x818fa9[_0x3c2abd(0xd9)]('Update\x20failed'),console[_0x3c2abd(0xcb)](a34_0x5a9d31[_0x3c2abd(0xd4)]('\x20\x20'+_0x1db06f['message'])),console[_0x3c2abd(0xc4)](a34_0x5a9d31[_0x3c2abd(0xe3)](_0x3c2abd(0xb7)+_0xc43211+_0x3c2abd(0xc0)+NPM_PACKAGE_NAME+_0x3c2abd(0xcf))),{'ok':![],'message':_0x1db06f[_0x3c2abd(0xbe)]};}}export const updateDefinition={'service':a34_0x12655e(0xdf),'command':a34_0x12655e(0xbc),'description':'Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','risk':a34_0x12655e(0xd6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};function a34_0x1c80(){const _0x281d55=['write','green','coerce','fail','bun','Update\x20available:\x20','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','2yEscAP','timeout','update','install','info','cli','gray','npm','execPath','7655235dFTkzI','\x20\x20Try\x20manually:\x20','Checking\x20for\x20updates...','Updated\x20to\x20v','179791WSXPxG','Current\x20version:\x20','run','3691098hBmGzd','message','890850ucQyhl','\x20install\x20-g\x20','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','Version\x20comparison\x20failed','\x20→\x20','log','stableVersion','Unable\x20to\x20check\x20for\x20updates','17943680bGnwSJ','start','yellow','6931340mMYwZN','error','unknown','pipe','1394802YWHnog','@latest','/latest','succeed','8kVGhQK','...','red','24IdTEcB'];a34_0x1c80=function(){return _0x281d55;};return a34_0x1c80();}
@@ -1 +1 @@
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
+ (function(_0x45f73c,_0x93c80e){const _0xc06477=a35_0x1855,_0x2429c8=_0x45f73c();while(!![]){try{const _0x22681d=-parseInt(_0xc06477(0x1be))/0x1*(parseInt(_0xc06477(0x1c1))/0x2)+-parseInt(_0xc06477(0x1bf))/0x3+parseInt(_0xc06477(0x1c2))/0x4*(parseInt(_0xc06477(0x1c7))/0x5)+-parseInt(_0xc06477(0x1c6))/0x6+parseInt(_0xc06477(0x1c3))/0x7*(parseInt(_0xc06477(0x1c0))/0x8)+parseInt(_0xc06477(0x1bd))/0x9*(parseInt(_0xc06477(0x1c4))/0xa)+parseInt(_0xc06477(0x1c5))/0xb;if(_0x22681d===_0x93c80e)break;else _0x2429c8['push'](_0x2429c8['shift']());}catch(_0x5a6c7f){_0x2429c8['push'](_0x2429c8['shift']());}}}(a35_0x54a5,0x575c0));import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';function a35_0x1855(_0x2e485e,_0x1cdf83){_0x2e485e=_0x2e485e-0x1bd;const _0x54a55e=a35_0x54a5();let _0x1855a2=_0x54a55e[_0x2e485e];return _0x1855a2;}export const codegenDefinitions=[codegenSdk,codegenSql];function a35_0x54a5(){const _0x271778=['1133757wTlyhl','2117112paxjxH','2pjlqMG','120lxaSch','7jQuoGb','10AoOmiI','8038140EdDmtI','2397078FVoNEZ','44105YXFHxx','1010934OgmjDg','237079pfZfVZ'];a35_0x54a5=function(){return _0x271778;};return a35_0x54a5();}
@@ -1 +1 @@
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
+ const a36_0xa83d21=a36_0x25ae;(function(_0x2f4dec,_0x35f62e){const _0x228832=a36_0x25ae,_0x17bcb8=_0x2f4dec();while(!![]){try{const _0x29082f=parseInt(_0x228832(0x200))/0x1+-parseInt(_0x228832(0x1f3))/0x2+parseInt(_0x228832(0x1ea))/0x3+parseInt(_0x228832(0x1f6))/0x4+parseInt(_0x228832(0x1ff))/0x5+-parseInt(_0x228832(0x1fe))/0x6+-parseInt(_0x228832(0x1f1))/0x7*(parseInt(_0x228832(0x1f5))/0x8);if(_0x29082f===_0x35f62e)break;else _0x17bcb8['push'](_0x17bcb8['shift']());}catch(_0x111c21){_0x17bcb8['push'](_0x17bcb8['shift']());}}}(a36_0x12f9,0x60940));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';function a36_0x25ae(_0xf34c91,_0x402536){_0xf34c91=_0xf34c91-0x1ea;const _0x12f9ca=a36_0x12f9();let _0x25ae0a=_0x12f9ca[_0xf34c91];return _0x25ae0a;}import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a36_0xa83d21(0x1eb),'command':'sdk','description':a36_0xa83d21(0x1f8),'risk':a36_0xa83d21(0x1f0),'flags':[CODE_FLAG_OPTIONAL,{'name':a36_0xa83d21(0x1f2),'type':a36_0xa83d21(0x1fd),'description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)'},{'name':a36_0xa83d21(0x1ef),'type':'string','required':!![],'description':a36_0xa83d21(0x1f9)},{'name':'skip-imports','type':a36_0xa83d21(0x1ec),'description':a36_0xa83d21(0x1fa)}],async 'execute'(_0x196f38){const _0x3c8338=a36_0xa83d21,{dataset:_0x37fb62,operation:_0x351486}=await getOperationDetail(_0x196f38[_0x3c8338(0x1fb)],_0x196f38[_0x3c8338(0x1ed)](_0x3c8338(0x1f4)),_0x196f38['str']('operation')),_0x2f78e4=generateSdkCode(_0x37fb62,_0x351486,{'includeImports':!_0x196f38['bool'](_0x3c8338(0x1fc))});return{'ok':!![],'data':{'dataset':{'name':_0x37fb62[_0x3c8338(0x1f7)],'code':_0x37fb62[_0x3c8338(0x1f4)],'tableName':_0x37fb62[_0x3c8338(0x1ee)]},'operation':_0x196f38[_0x3c8338(0x1ed)](_0x3c8338(0x1ef)),'code':_0x2f78e4}};}};function a36_0x12f9(){const _0x496b42=['768358PszbVh','382821PqnUmk','codegen','boolean','str','tableName','operation','read','28OxYtWV','alias','1171816yIMyeA','code','1322528QNhFdv','2258244czypMu','name','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','Omit\x20import\x20statements\x20from\x20generated\x20code','appCode','skip-imports','string','795510FFXDDA','1574075MdLWKh'];a36_0x12f9=function(){return _0x496b42;};return a36_0x12f9();}
@@ -1 +1 @@
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
+ function a37_0x229e(_0x7a5c31,_0x189d14){_0x7a5c31=_0x7a5c31-0x1c5;const _0xff955e=a37_0xff95();let _0x229e40=_0xff955e[_0x7a5c31];return _0x229e40;}function a37_0xff95(){const _0x4bb0b5=['1343419coNjZR','sdk','appCode','sqlName','read','41647BIdqIq','str','8uQNpyE','bool','5PRssKq','sqlcode','1750990SKyVkc','1644096skoiqJ','sql','9ZMYtzH','107454eAyTte','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','338766HTIDqL','no-imports','codegen','bff','target','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','419426Gzcjdb'];a37_0xff95=function(){return _0x4bb0b5;};return a37_0xff95();}const a37_0x353d6c=a37_0x229e;(function(_0x4b29a5,_0x146bcf){const _0x44e81f=a37_0x229e,_0x39ea7b=_0x4b29a5();while(!![]){try{const _0x243fb7=-parseInt(_0x44e81f(0x1ce))/0x1+parseInt(_0x44e81f(0x1c8))/0x2+-parseInt(_0x44e81f(0x1da))/0x3*(parseInt(_0x44e81f(0x1d0))/0x4)+parseInt(_0x44e81f(0x1d2))/0x5*(parseInt(_0x44e81f(0x1d8))/0x6)+parseInt(_0x44e81f(0x1c9))/0x7+-parseInt(_0x44e81f(0x1d5))/0x8+parseInt(_0x44e81f(0x1d7))/0x9*(parseInt(_0x44e81f(0x1d4))/0xa);if(_0x243fb7===_0x146bcf)break;else _0x39ea7b['push'](_0x39ea7b['shift']());}catch(_0x5362d2){_0x39ea7b['push'](_0x39ea7b['shift']());}}}(a37_0xff95,0x1db23));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a37_0x353d6c(0x1dc),'command':a37_0x353d6c(0x1d6),'description':a37_0x353d6c(0x1d9),'risk':a37_0x353d6c(0x1cd),'flags':[SQLCODE_FLAG,{'name':a37_0x353d6c(0x1c6),'type':'string','description':a37_0x353d6c(0x1c7),'default':'sdk','enum':[a37_0x353d6c(0x1ca),a37_0x353d6c(0x1c5)]},{'name':a37_0x353d6c(0x1db),'type':'boolean','description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x845fd3){const _0x53f202=a37_0x353d6c,_0x2de81a=await getSqlQueryInfo(_0x845fd3[_0x53f202(0x1cb)],_0x845fd3['str'](_0x53f202(0x1d3))),_0x31fa94=_0x845fd3[_0x53f202(0x1cf)]('target')||'sdk',_0x21aec1=generateSqlCodeTemplate(_0x2de81a,{'target':_0x31fa94,'includeImports':!_0x845fd3[_0x53f202(0x1d1)]('no-imports')});return{'ok':!![],'data':{'sqlCode':_0x2de81a['sqlCode'],'sqlName':_0x2de81a[_0x53f202(0x1cc)],'target':_0x31fa94,'code':_0x21aec1}};}};
@@ -1 +1 @@
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
+ (function(_0x283249,_0x4ba627){const _0xeea6aa=a38_0x571c,_0x45f6dc=_0x283249();while(!![]){try{const _0x2887d8=parseInt(_0xeea6aa(0x70))/0x1+parseInt(_0xeea6aa(0x75))/0x2+parseInt(_0xeea6aa(0x64))/0x3+-parseInt(_0xeea6aa(0x84))/0x4+parseInt(_0xeea6aa(0x72))/0x5*(parseInt(_0xeea6aa(0x6b))/0x6)+parseInt(_0xeea6aa(0x66))/0x7*(parseInt(_0xeea6aa(0x6f))/0x8)+parseInt(_0xeea6aa(0x65))/0x9*(-parseInt(_0xeea6aa(0x7d))/0xa);if(_0x2887d8===_0x4ba627)break;else _0x45f6dc['push'](_0x45f6dc['shift']());}catch(_0x1ccb9d){_0x45f6dc['push'](_0x45f6dc['shift']());}}}(a38_0x5e96,0x52647));import{input,checkbox,select}from'@inquirer/prompts';function a38_0x5e96(){const _0xf9e638=['10qobjrU','✎\x20手动输入','appName','gray','find','includes','请输入\x20App\x20Code:','1049996bNuuxo','valid','428076WtHUcr','6515406fXhztm','2350551riJYYj','\x0a未找到可用应用。','appCode','length','Invalid\x20App\x20Code','2618958DCxgxY','\x20\x20(','(跳过,稍后配置)','✎\x20自定义输入\x20appcode','8spwCuT','69203EbQXky','map','5rPdlOt','yellow','message','679462bmqvTt','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','trim','正在获取可用应用列表...','skip','\x0a无法获取远程应用列表,请手动输入。','custom','cyan'];a38_0x5e96=function(){return _0xf9e638;};return a38_0x5e96();}import a38_0x5424bc from'chalk';import{validateAppcode}from'../../commands/common/validate.js';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 _0x50712b=a38_0x571c,_0x59846a=await input({'message':_0x50712b(0x83),'validate':_0x208373=>{const _0x458cd4=_0x50712b,_0x222da6=validateAppcode(_0x208373[_0x458cd4(0x77)]());return _0x222da6[_0x458cd4(0x85)]||_0x222da6[_0x458cd4(0x74)]||_0x458cd4(0x6a);}});return _0x59846a[_0x50712b(0x77)]();}export async function promptAppSelection(_0x311da6){const _0x59997e=a38_0x571c,_0x367ee8=[{'name':a38_0x5424bc['yellow'](_0x59997e(0x6e)),'value':-0x1},..._0x311da6[_0x59997e(0x71)]((_0x54b5bc,_0x2d9fbf)=>({'name':_0x54b5bc['appName']+'\x20\x20'+a38_0x5424bc[_0x59997e(0x80)]('('+_0x54b5bc[_0x59997e(0x68)]+')'),'value':_0x2d9fbf}))],_0x46f613=await checkbox({'message':'获取到\x20'+a38_0x5424bc[_0x59997e(0x7c)](_0x311da6[_0x59997e(0x69)])+'\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','choices':_0x367ee8,'loop':![]});if(_0x46f613[_0x59997e(0x82)](-0x1))return _0x59997e(0x7b);if(_0x46f613[_0x59997e(0x69)]===0x0)return _0x59997e(0x7b);return _0x46f613[_0x59997e(0x71)](_0x5f443c=>_0x311da6[_0x5f443c]);}export async function promptSingleAppSelection(_0x4c1ad9){const _0x2cfa9c=a38_0x571c,_0x5a6cc8=[{'name':a38_0x5424bc[_0x2cfa9c(0x80)]('(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)'),'value':'skip'},{'name':a38_0x5424bc['yellow'](_0x2cfa9c(0x6e)),'value':_0x2cfa9c(0x7b)},..._0x4c1ad9['map'](_0x456f43=>({'name':_0x456f43[_0x2cfa9c(0x7f)]+'\x20\x20'+a38_0x5424bc['gray']('('+_0x456f43[_0x2cfa9c(0x68)]+')'),'value':_0x456f43['appCode']}))],_0x3fbbbc=await select({'message':'请选择要绑定的应用:','choices':_0x5a6cc8});if(_0x3fbbbc===_0x2cfa9c(0x79))return _0x2cfa9c(0x79);if(_0x3fbbbc===_0x2cfa9c(0x7b))return'custom';return _0x4c1ad9[_0x2cfa9c(0x81)](_0x433adb=>_0x433adb['appCode']===_0x3fbbbc);}export async function selectSingleAppcode(_0x4b0f81){const _0xdece8b=a38_0x571c;if(!_0x4b0f81)return writeCliSideChannelLine(a38_0x5424bc['gray'](_0xdece8b(0x76))),_fallbackOrSkip();writeCliSideChannelLine(_0xdece8b(0x78));let _0x3cd2f0;try{_0x3cd2f0=await withActiveCookie(_0x4b0f81,()=>listRemoteApps());}catch(_0x5b44e3){writeCliSideChannelLine(a38_0x5424bc[_0xdece8b(0x73)]('无法获取远程应用列表,请手动输入。'));if(_0x5b44e3 instanceof Error)writeCliSideChannelLine(a38_0x5424bc['gray'](_0xdece8b(0x6c)+_0x5b44e3[_0xdece8b(0x74)]+')'));return _fallbackOrSkip();}if(_0x3cd2f0['length']===0x0)return writeCliSideChannelLine(a38_0x5424bc[_0xdece8b(0x73)]('未找到可用应用。')),_fallbackOrSkip();const _0x44753a=await promptSingleAppSelection(_0x3cd2f0);if(_0x44753a==='skip')return'';if(_0x44753a===_0xdece8b(0x7b))return promptCustomAppcode();return _0x44753a[_0xdece8b(0x68)];}function a38_0x571c(_0x252506,_0x562e41){_0x252506=_0x252506-0x64;const _0x5e96b1=a38_0x5e96();let _0x571c2d=_0x5e96b1[_0x252506];return _0x571c2d;}export async function selectMultipleApps(_0x347935){const _0x5cd1bb=a38_0x571c;writeCliSideChannelLine(_0x5cd1bb(0x78));let _0x2bd447;try{_0x2bd447=await withActiveCookie(_0x347935,()=>listRemoteApps());}catch(_0x24ef49){writeCliSideChannelLine(_0x5cd1bb(0x7a));if(_0x24ef49 instanceof Error)writeCliSideChannelLine(_0x5cd1bb(0x6c)+_0x24ef49[_0x5cd1bb(0x74)]+')');return'custom';}if(_0x2bd447[_0x5cd1bb(0x69)]===0x0)return writeCliSideChannelLine(_0x5cd1bb(0x67)),_0x5cd1bb(0x7b);return promptAppSelection(_0x2bd447);}async function _fallbackOrSkip(){const _0x5912e9=a38_0x571c,_0x424f3e=await select({'message':'App\x20Code:','choices':[{'name':a38_0x5424bc[_0x5912e9(0x80)](_0x5912e9(0x6d)),'value':_0x5912e9(0x79)},{'name':a38_0x5424bc[_0x5912e9(0x73)](_0x5912e9(0x7e)),'value':'manual'}]});if(_0x424f3e===_0x5912e9(0x79))return'';return promptCustomAppcode();}
@@ -1 +1 @@
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
+ const a39_0x4877ce=a39_0x30ba;(function(_0x375deb,_0x4112e9){const _0x3582ba=a39_0x30ba,_0x138aa2=_0x375deb();while(!![]){try{const _0x46765b=parseInt(_0x3582ba(0x1c3))/0x1*(-parseInt(_0x3582ba(0x1bd))/0x2)+-parseInt(_0x3582ba(0x1bb))/0x3*(-parseInt(_0x3582ba(0x1c1))/0x4)+parseInt(_0x3582ba(0x1c6))/0x5*(parseInt(_0x3582ba(0x1c5))/0x6)+-parseInt(_0x3582ba(0x1b8))/0x7+parseInt(_0x3582ba(0x1b7))/0x8*(-parseInt(_0x3582ba(0x1ce))/0x9)+parseInt(_0x3582ba(0x1b6))/0xa*(parseInt(_0x3582ba(0x1cd))/0xb)+-parseInt(_0x3582ba(0x1c7))/0xc*(-parseInt(_0x3582ba(0x1cc))/0xd);if(_0x46765b===_0x4112e9)break;else _0x138aa2['push'](_0x138aa2['shift']());}catch(_0x2da6b5){_0x138aa2['push'](_0x138aa2['shift']());}}}(a39_0x25ba,0x870ec));export const CODE_FLAG={'name':a39_0x4877ce(0x1ca),'type':a39_0x4877ce(0x1c0),'required':!![],'description':a39_0x4877ce(0x1c2),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'}};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const SQLCODE_FLAG={'name':'sqlcode','type':a39_0x4877ce(0x1c0),'required':!![],'description':a39_0x4877ce(0x1cb),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a39_0x4877ce(0x1b9)}};function a39_0x30ba(_0x3ea9f2,_0x509f82){_0x3ea9f2=_0x3ea9f2-0x1b6;const _0x25ba12=a39_0x25ba();let _0x30bab5=_0x25ba12[_0x3ea9f2];return _0x30bab5;}export const APPCODE_FLAG_OPTIONAL={'name':a39_0x4877ce(0x1bf),'type':a39_0x4877ce(0x1c0),'required':![],'description':a39_0x4877ce(0x1be)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};function a39_0x25ba(){const _0x231041=['2dSuklk','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','appcode','string','4IEhmTI','Dataset\x20code\x20(32-char\x20hex\x20UUID)','249483QPCQgK','POSTGRESQL','262806SmlyHa','55leHbEh','12GTfWSO','MYSQL','Database\x20product\x20type','code','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','13527566JXWHXu','349976ZJjRUN','38538KTcYCd','10IVdJxj','760OKMzVs','7202258PsgXZx','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','number','2052462GRGfVK','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)'];a39_0x25ba=function(){return _0x231041;};return a39_0x25ba();}export const DBLINK_ID_FLAG={'name':'id','type':a39_0x4877ce(0x1ba),'required':!![],'description':a39_0x4877ce(0x1bc)};export const DB_TYPE_FLAG={'name':'dbtype','type':a39_0x4877ce(0x1c0),'required':!![],'description':a39_0x4877ce(0x1c9),'enum':[a39_0x4877ce(0x1c8),a39_0x4877ce(0x1c4)]};
@@ -1 +1 @@
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
+ (function(_0x398759,_0x349b0f){const _0x53b7bf=a40_0x4e37,_0x100efc=_0x398759();while(!![]){try{const _0x5e30d1=-parseInt(_0x53b7bf(0x1ea))/0x1*(-parseInt(_0x53b7bf(0x1f6))/0x2)+-parseInt(_0x53b7bf(0x1e8))/0x3+-parseInt(_0x53b7bf(0x1e7))/0x4*(-parseInt(_0x53b7bf(0x1ee))/0x5)+parseInt(_0x53b7bf(0x1f0))/0x6*(-parseInt(_0x53b7bf(0x1eb))/0x7)+parseInt(_0x53b7bf(0x1e9))/0x8+-parseInt(_0x53b7bf(0x1ed))/0x9*(parseInt(_0x53b7bf(0x1f4))/0xa)+-parseInt(_0x53b7bf(0x1f2))/0xb*(-parseInt(_0x53b7bf(0x1f5))/0xc);if(_0x5e30d1===_0x349b0f)break;else _0x100efc['push'](_0x100efc['shift']());}catch(_0x34787e){_0x100efc['push'](_0x100efc['shift']());}}}(a40_0x4352,0xc91fc));function a40_0x4352(){const _0x2cb4ac=['length','34536dOTPqZ','trim','220264OWeMhE','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','50qTAzhf','1776LMNlOp','5442ZxsuAa','124gCLbCS','1076964eQLMXL','1655944pNFSbg','11DWiGtQ','1078iJKcZv','App\x20Code\x20cannot\x20be\x20empty','2202831OcjCXh','14925Yzwzvo'];a40_0x4352=function(){return _0x2cb4ac;};return a40_0x4352();}function a40_0x4e37(_0x16ab68,_0x191647){_0x16ab68=_0x16ab68-0x1e7;const _0x435263=a40_0x4352();let _0x4e378d=_0x435263[_0x16ab68];return _0x4e378d;}export function validateAppcode(_0x513a10){const _0x55ace5=a40_0x4e37,_0x32276b=_0x513a10[_0x55ace5(0x1f1)]();if(!_0x32276b)return{'valid':![],'message':_0x55ace5(0x1ec)};if(_0x32276b[_0x55ace5(0x1ef)]>0x64)return{'valid':![],'message':'App\x20Code\x20cannot\x20exceed\x20100\x20characters'};if(!/^[A-Za-z0-9_-]+$/['test'](_0x32276b))return{'valid':![],'message':_0x55ace5(0x1f3)};return{'valid':!![]};}
@@ -1 +1 @@
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
+ const a41_0x19984f=a41_0x1b81;(function(_0x426c87,_0x28d20d){const _0x2580bd=a41_0x1b81,_0xcdf058=_0x426c87();while(!![]){try{const _0x473a58=parseInt(_0x2580bd(0x1e0))/0x1*(-parseInt(_0x2580bd(0x1e5))/0x2)+-parseInt(_0x2580bd(0x1de))/0x3+parseInt(_0x2580bd(0x1ec))/0x4*(-parseInt(_0x2580bd(0x1ef))/0x5)+-parseInt(_0x2580bd(0x1ea))/0x6+-parseInt(_0x2580bd(0x1ed))/0x7*(-parseInt(_0x2580bd(0x1e7))/0x8)+parseInt(_0x2580bd(0x1f0))/0x9+parseInt(_0x2580bd(0x1e8))/0xa;if(_0x473a58===_0x28d20d)break;else _0xcdf058['push'](_0xcdf058['shift']());}catch(_0xd45787){_0xcdf058['push'](_0xcdf058['shift']());}}}(a41_0x28e1,0xe4f57));import{CliErrors}from'../../errors.js';function a41_0x1b81(_0x4056eb,_0x35abd4){_0x4056eb=_0x4056eb-0x1dd;const _0x28e169=a41_0x28e1();let _0x1b8170=_0x28e169[_0x4056eb];return _0x1b8170;}import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';function a41_0x28e1(){const _0x30872f=['Missing\x20key.','1QMUaVq','key','Key\x20not\x20found:\x20','get','config','729726LtUuTj','object','4471240hUEuUn','2427100oDpsIa','Usage:\x20','1006470jYCOPX','validation','32ZZVibH','21fIFJRG','str','302405oHRuxZ','1768446WLvFTm','string','484944iQnOSh'];a41_0x28e1=function(){return _0x30872f;};return a41_0x28e1();}async function execute(_0x428aa5){const _0x54353b=a41_0x1b81,_0x154ea=_0x428aa5[_0x54353b(0x1ee)](_0x54353b(0x1e1));if(!_0x154ea)throw CliErrors[_0x54353b(0x1eb)](_0x54353b(0x1df),_0x54353b(0x1e9)+CLI_BIN_NAME+'\x20config\x20get\x20--key\x20<key>');const _0x566e59=readConfig(),_0x4c2e05=_0x154ea==='app'?'appcode':_0x154ea,_0x3fdf2b=_0x566e59[_0x4c2e05];if(_0x3fdf2b===undefined)throw CliErrors[_0x54353b(0x1eb)](_0x54353b(0x1e2)+_0x154ea);return{'ok':!![],'data':typeof _0x3fdf2b===_0x54353b(0x1e6)?_0x3fdf2b:{[_0x4c2e05]:_0x3fdf2b},'message':typeof _0x3fdf2b==='object'?undefined:String(_0x3fdf2b)};}export const configGetDefinition={'service':a41_0x19984f(0x1e4),'command':a41_0x19984f(0x1e3),'description':'Get\x20a\x20config\x20value\x20by\x20key','risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a41_0x19984f(0x1e1),'type':a41_0x19984f(0x1dd),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
@@ -1 +1 @@
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
+ (function(_0x397adc,_0x5bfe6a){const _0x365345=a42_0x4175,_0x13bf67=_0x397adc();while(!![]){try{const _0x342656=parseInt(_0x365345(0x1a4))/0x1*(parseInt(_0x365345(0x1a6))/0x2)+parseInt(_0x365345(0x1a2))/0x3*(parseInt(_0x365345(0x1a8))/0x4)+-parseInt(_0x365345(0x1a5))/0x5+parseInt(_0x365345(0x1a1))/0x6*(parseInt(_0x365345(0x1a3))/0x7)+parseInt(_0x365345(0x1a7))/0x8*(parseInt(_0x365345(0x1a9))/0x9)+parseInt(_0x365345(0x1aa))/0xa+-parseInt(_0x365345(0x1a0))/0xb;if(_0x342656===_0x5bfe6a)break;else _0x13bf67['push'](_0x13bf67['shift']());}catch(_0x11dab8){_0x13bf67['push'](_0x13bf67['shift']());}}}(a42_0x4a76,0x36b6c));function a42_0x4175(_0x3e40e7,_0x1fde87){_0x3e40e7=_0x3e40e7-0x1a0;const _0x4a7694=a42_0x4a76();let _0x417510=_0x4a7694[_0x3e40e7];return _0x417510;}function a42_0x4a76(){const _0x3bb67f=['240594PXHRzj','1656DYjTxJ','14VzIyMt','1zrQXJv','17240DCkwsG','739424NGpvWI','16pAHmSA','2332IMnksS','782235CzzDrI','2991050cJltrG','11188155ClDfOw'];a42_0x4a76=function(){return _0x3bb67f;};return a42_0x4a76();}import{configListDefinition}from'../../commands/config/list.js';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_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
+ function a43_0x453c(_0x590c3e,_0x16e853){_0x590c3e=_0x590c3e-0xcd;const _0x29526e=a43_0x2952();let _0x453c40=_0x29526e[_0x590c3e];return _0x453c40;}const a43_0x878095=a43_0x453c;(function(_0x2f8d5d,_0x5e6f9b){const _0x3529aa=a43_0x453c,_0x29d3ac=_0x2f8d5d();while(!![]){try{const _0xb26d8e=parseInt(_0x3529aa(0xcf))/0x1+-parseInt(_0x3529aa(0xd7))/0x2+-parseInt(_0x3529aa(0xd1))/0x3+-parseInt(_0x3529aa(0xd8))/0x4+-parseInt(_0x3529aa(0xda))/0x5+parseInt(_0x3529aa(0xd4))/0x6+parseInt(_0x3529aa(0xd0))/0x7*(parseInt(_0x3529aa(0xcd))/0x8);if(_0xb26d8e===_0x5e6f9b)break;else _0x29d3ac['push'](_0x29d3ac['shift']());}catch(_0x32e70f){_0x29d3ac['push'](_0x29d3ac['shift']());}}}(a43_0x2952,0xa8abf));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';function a43_0x2952(){const _0x5da6e1=['246552CMxnoz','read','521017VifrQr','462igtRgu','681858MevjEB','config','bool','2497098XkVXzP','global','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','469846nzSaYH','2810920ScMWLW','List\x20all\x20config\x20values','5577180AkvrVX'];a43_0x2952=function(){return _0x5da6e1;};return a43_0x2952();}async function execute(_0x1de70c){const _0x44f245=a43_0x453c,_0x448024=_0x1de70c[_0x44f245(0xd3)](_0x44f245(0xd5))?readScopedConfig(_0x44f245(0xd5)):readConfig();return{'ok':!![],'data':_0x448024};}export const configListDefinition={'service':a43_0x878095(0xd2),'command':'list','description':a43_0x878095(0xd9),'risk':a43_0x878095(0xce),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'global','type':'boolean','description':a43_0x878095(0xd6),'default':![]}],'execute':execute};
@@ -1 +1 @@
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
+ function a44_0x4204(){const _0x5de398=['bool','Missing\x20key.','\x20app\x20add\x20<name>\x20--appcode\x20','550000HflXck','apps','key','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','length','614759DCFBNn','locale','\x20appcode\x20set\x20to:\x20','env','9088933JsUZiy','string','keys','Top-level\x20key\x20\x22','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','Settable\x20top-level\x20keys:\x20','`,\x20`','3227365ZGbluj','432858pcCvGd','join','Use\x20`','object','\x22.\x20Allowed:\x20','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','global','Project','validation','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','value','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','Global','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','str','8078436uZBbuh','Usage:\x20','set','Missing\x20value.','3127935iHjruj','app','appcode'];a44_0x4204=function(){return _0x5de398;};return a44_0x4204();}function a44_0x402f(_0x165b7,_0x40b3d3){_0x165b7=_0x165b7-0x17e;const _0x4204cd=a44_0x4204();let _0x402f59=_0x4204cd[_0x165b7];return _0x402f59;}const a44_0x484336=a44_0x402f;(function(_0x173e34,_0x3102e9){const _0x2e77fa=a44_0x402f,_0x539148=_0x173e34();while(!![]){try{const _0x3ae157=parseInt(_0x2e77fa(0x19e))/0x1+-parseInt(_0x2e77fa(0x17e))/0x2+parseInt(_0x2e77fa(0x192))/0x3+-parseInt(_0x2e77fa(0x198))/0x4+-parseInt(_0x2e77fa(0x1ab))/0x5+parseInt(_0x2e77fa(0x18e))/0x6+-parseInt(_0x2e77fa(0x1a2))/0x7;if(_0x3ae157===_0x3102e9)break;else _0x539148['push'](_0x539148['shift']());}catch(_0x5e09cc){_0x539148['push'](_0x539148['shift']());}}}(a44_0x4204,0xac5c5));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';async function execute(_0x5d8386){const _0x207cf8=a44_0x402f,_0x1e03af=_0x5d8386['str']('key'),_0x250e22=_0x5d8386[_0x207cf8(0x18d)](_0x207cf8(0x189));if(!_0x1e03af)throw CliErrors[_0x207cf8(0x187)](_0x207cf8(0x196),_0x207cf8(0x18f)+CLI_BIN_NAME+_0x207cf8(0x183));if(_0x250e22===undefined||_0x250e22==='')throw CliErrors[_0x207cf8(0x187)](_0x207cf8(0x191),_0x207cf8(0x18f)+CLI_BIN_NAME+_0x207cf8(0x183));if(_0x250e22['length']>0x1f4)throw CliErrors[_0x207cf8(0x187)](_0x207cf8(0x1a8));if(!isTopLevelConfigKey(_0x1e03af))throw CliErrors[_0x207cf8(0x187)](_0x207cf8(0x1a5)+_0x1e03af+'\x22\x20is\x20not\x20settable.',_0x207cf8(0x1a9)+getTopLevelConfigKeySummary());if(_0x1e03af==='riskLevel')throw CliErrors[_0x207cf8(0x187)](_0x207cf8(0x18c));if(CONFIG_ENUM_VALUES[_0x1e03af]&&!CONFIG_ENUM_VALUES[_0x1e03af]['includes'](_0x250e22))throw CliErrors[_0x207cf8(0x187)]('Invalid\x20value\x20for\x20\x22'+_0x1e03af+_0x207cf8(0x182)+CONFIG_ENUM_VALUES[_0x1e03af][_0x207cf8(0x17f)](',\x20'));if(_0x1e03af===_0x207cf8(0x19f)&&!normalizeLocale(_0x250e22))throw CliErrors['validation']('Invalid\x20locale\x20value.',_0x207cf8(0x184));const _0x137b3f={'global':_0x5d8386[_0x207cf8(0x195)](_0x207cf8(0x185))},_0x562cf9=resolveWriteScope(_0x137b3f),_0xec1b8=readScopedConfig(_0x562cf9);let _0x53a8fb=_0x1e03af,_0x369ad5=_0x250e22;_0x1e03af===_0x207cf8(0x193)&&(_0x53a8fb=_0x207cf8(0x194),delete _0xec1b8[_0x207cf8(0x193)]);_0x1e03af===_0x207cf8(0x19f)&&(_0x369ad5=normalizeLocale(_0x250e22));if(_0x1e03af==='env'){_0x369ad5=normalizeEnv(_0x250e22);if(!isProduction(_0x369ad5)&&!isDaily(_0x369ad5))throw CliErrors[_0x207cf8(0x187)](_0x207cf8(0x18a),_0x207cf8(0x19c));}if(_0x1e03af==='appcode'){const _0x5421cf=_0xec1b8[_0x207cf8(0x199)]&&typeof _0xec1b8[_0x207cf8(0x199)]===_0x207cf8(0x181)?Object[_0x207cf8(0x1a4)](_0xec1b8[_0x207cf8(0x199)]):[];if(_0x5421cf[_0x207cf8(0x19d)]>0x0)throw CliErrors[_0x207cf8(0x187)](_0x207cf8(0x188),_0x207cf8(0x180)+CLI_BIN_NAME+_0x207cf8(0x197)+_0x369ad5+_0x207cf8(0x1aa)+CLI_BIN_NAME+_0x207cf8(0x1a7));const _0x25164a=buildCanonicalProjectConfig({..._0xec1b8},{'appCodes':[_0x369ad5],'env':typeof _0xec1b8['env']==='string'?_0xec1b8[_0x207cf8(0x1a1)]:undefined});writeScopedConfig(_0x25164a,_0x562cf9);const _0x2cf1cf=_0x562cf9===_0x207cf8(0x185)?_0x207cf8(0x18b):_0x207cf8(0x186);return{'ok':!![],'message':'✓\x20'+_0x2cf1cf+_0x207cf8(0x1a0)+_0x369ad5+_0x207cf8(0x1a6)};}_0xec1b8[_0x53a8fb]=_0x369ad5,writeScopedConfig(_0xec1b8,_0x562cf9);const _0x9d5bb6=_0x562cf9===_0x207cf8(0x185)?_0x207cf8(0x18b):_0x207cf8(0x186);return{'ok':!![],'message':'✓\x20'+_0x9d5bb6+'\x20'+_0x53a8fb+'\x20set\x20to:\x20'+_0x369ad5};}export const configSetDefinition={'service':'config','command':a44_0x484336(0x190),'description':'Set\x20a\x20config\x20value','risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a44_0x484336(0x19a),'type':a44_0x484336(0x1a3),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a44_0x484336(0x189),'type':a44_0x484336(0x1a3),'description':'Config\x20value','required':!![]},{'name':'global','type':'boolean','description':a44_0x484336(0x19b),'default':![]}],'execute':execute};
@@ -1 +1 @@
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
+ (function(_0x2a4fd1,_0x470a77){var _0x3e79e8=a45_0x67d0,_0x5629a1=_0x2a4fd1();while(!![]){try{var _0x3028bd=parseInt(_0x3e79e8(0xd2))/0x1*(-parseInt(_0x3e79e8(0xcd))/0x2)+-parseInt(_0x3e79e8(0xd3))/0x3*(-parseInt(_0x3e79e8(0xd8))/0x4)+-parseInt(_0x3e79e8(0xd6))/0x5*(parseInt(_0x3e79e8(0xd7))/0x6)+-parseInt(_0x3e79e8(0xd4))/0x7+-parseInt(_0x3e79e8(0xd5))/0x8+parseInt(_0x3e79e8(0xd0))/0x9*(-parseInt(_0x3e79e8(0xd1))/0xa)+parseInt(_0x3e79e8(0xcc))/0xb;if(_0x3028bd===_0x470a77)break;else _0x5629a1['push'](_0x5629a1['shift']());}catch(_0x484912){_0x5629a1['push'](_0x5629a1['shift']());}}}(a45_0x5934,0x7fe09));import{CLI_BIN_NAME}from'../../constant/cli.js';function a45_0x67d0(_0xae338a,_0x3a8ebc){_0xae338a=_0xae338a-0xcb;var _0x59343c=a45_0x5934();var _0x67d0a=_0x59343c[_0xae338a];return _0x67d0a;}import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x31c20d){var _0x1c7ecb=a45_0x67d0;if(_0x31c20d['global'])return _0x1c7ecb(0xd9);if(!isInProject())throw CliErrors[_0x1c7ecb(0xce)](_0x1c7ecb(0xda),_0x1c7ecb(0xdb)+CLI_BIN_NAME+_0x1c7ecb(0xcb));return _0x1c7ecb(0xcf);}export function readScopedConfig(_0x5f6f39){return readConfigFile(resolveWriteConfigPath(_0x5f6f39));}function a45_0x5934(){var _0x3535fa=['Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','\x20init`\x20first.','27130554jIuvvY','148958kqjalZ','validation','project','72dXwwBr','339920MZQhLh','7kKqYpV','3mDycNu','4763801HYRiSk','3474080qnzpze','5QbCqQU','1840530kcaAtt','1088872bjbLHB','global','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).'];a45_0x5934=function(){return _0x3535fa;};return a45_0x5934();}export function writeScopedConfig(_0x57ef20,_0x1c63a4){writeConfigFile(resolveWriteConfigPath(_0x1c63a4),_0x57ef20);}
@@ -1 +1 @@
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
+ function a46_0x4bc8(_0xd880dc,_0x35da58){_0xd880dc=_0xd880dc-0x1c7;const _0x4bba9f=a46_0x4bba();let _0x4bc805=_0x4bba9f[_0xd880dc];return _0x4bc805;}const a46_0x15e260=a46_0x4bc8;(function(_0x4ddd98,_0x213883){const _0x3cb08f=a46_0x4bc8,_0x280944=_0x4ddd98();while(!![]){try{const _0x1fcf03=parseInt(_0x3cb08f(0x1f8))/0x1+-parseInt(_0x3cb08f(0x1f6))/0x2+parseInt(_0x3cb08f(0x1cc))/0x3*(-parseInt(_0x3cb08f(0x1d3))/0x4)+-parseInt(_0x3cb08f(0x1fc))/0x5+-parseInt(_0x3cb08f(0x204))/0x6*(-parseInt(_0x3cb08f(0x1ec))/0x7)+-parseInt(_0x3cb08f(0x206))/0x8+parseInt(_0x3cb08f(0x1f9))/0x9;if(_0x1fcf03===_0x213883)break;else _0x280944['push'](_0x280944['shift']());}catch(_0x57cc78){_0x280944['push'](_0x280944['shift']());}}}(a46_0x4bba,0x8f0a9));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0xaf5f11){const _0x2a5ab7=a46_0x4bc8;if(_0xaf5f11[_0x2a5ab7(0x1e3)])return null;const _0x20b884=Boolean(_0xaf5f11[_0x2a5ab7(0x1d7)]!==undefined||_0xaf5f11[_0x2a5ab7(0x1dd)]!==undefined);let _0x3cbbc2={};if(!_0x20b884&&typeof _0xaf5f11['extend']===_0x2a5ab7(0x208))try{_0x3cbbc2=JSON['parse'](_0xaf5f11[_0x2a5ab7(0x1e1)]);}catch{}const _0x165a91=_0x20b884?_0xaf5f11[_0x2a5ab7(0x1e0)]:_0xaf5f11[_0x2a5ab7(0x1f4)],_0x87797=_0x20b884?_0xaf5f11[_0x2a5ab7(0x1d7)]:_0xaf5f11[_0x2a5ab7(0x1e0)],_0x156b9b=_0x20b884?_0xaf5f11['doType']:_0xaf5f11[_0x2a5ab7(0x1f1)]||_0xaf5f11['dataType'],_0x2e615c=_0x20b884?_0xaf5f11[_0x2a5ab7(0x1e4)]===!![]:_0x3cbbc2[_0x2a5ab7(0x1e4)]===!![],_0x504109=_0x20b884?_0xaf5f11[_0x2a5ab7(0x1cb)]===!![]:_0x3cbbc2[_0x2a5ab7(0x1cb)]===!![],_0x2c2ee9=_0x20b884?_0xaf5f11[_0x2a5ab7(0x1f5)]??null:_0x3cbbc2[_0x2a5ab7(0x1f5)]??null,_0x2b12f9={'name':_0x165a91,'displayName':_0x87797||_0x165a91,'type':_0x156b9b,'dbType':_0xaf5f11[_0x2a5ab7(0x1ea)],'pk':_0x2e615c,'required':_0x504109,'description':_0xaf5f11[_0x2a5ab7(0x1d1)]||undefined};return Array['isArray'](_0x2c2ee9)&&_0x2c2ee9['length']>0x0&&(_0x2b12f9[_0x2a5ab7(0x1f5)]=_0x2c2ee9),_0x2b12f9;}function parseJsonMaybe(_0x44b8b2){const _0x3e95ba=a46_0x4bc8;if(typeof _0x44b8b2!==_0x3e95ba(0x208))return _0x44b8b2;try{return JSON['parse'](_0x44b8b2);}catch{return _0x44b8b2;}}function a46_0x4bba(){const _0x24c731=['read','name','extend','beforeScriptId','deleted','pkField','dbId','tableName','properties','logicField','allFields','dbType','title','3124513ucCkqH','host','alias','source','modifierIdField','type','method','dbtableConfig','code','options','2130418gGXueL','relations','911300ONbhbl','17534214uUxSFj','detail','toFieldLabel','2697790vCorHA','filter','updateTimeField','map','modifierNameField','requestBody','relatedPageInfoList','trim','6MDaUTA','toTableName','888984JaGIlX','object','string','path','allFieldNames','operations','modelId','isArray','formatRules','fromField','push','responseBody','requestFields','toDatasetName','required','18RuhiRc','length','split','afterScriptId','indexes','description','validateRules','669412EUEbjQ','responseFields','datasetKey','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','displayName','doVersion','fields','entries','dbName','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','doType','toField'];a46_0x4bba=function(){return _0x24c731;};return a46_0x4bba();}function normalizeOperationEntry(_0x35486f,_0x68279b){const _0x5e7897=a46_0x4bc8;if(!_0x68279b||typeof _0x68279b!==_0x5e7897(0x207))return null;if(!_0x68279b[_0x5e7897(0x1f2)]||!_0x68279b[_0x5e7897(0x209)])return null;const _0x10d7b2={'name':_0x35486f,'method':_0x68279b[_0x5e7897(0x1f2)],'path':_0x68279b['path']};if(_0x68279b['host'])_0x10d7b2[_0x5e7897(0x1ed)]=_0x68279b[_0x5e7897(0x1ed)];if(_0x68279b[_0x5e7897(0x201)]!=null){const _0x2112aa=parseJsonMaybe(_0x68279b['requestBody']);_0x10d7b2[_0x5e7897(0x201)]=_0x2112aa;}if(_0x68279b[_0x5e7897(0x1c8)]!=null){const _0x1684d2=parseJsonMaybe(_0x68279b[_0x5e7897(0x1c8)]);_0x10d7b2[_0x5e7897(0x1c8)]=_0x1684d2;}if(_0x68279b[_0x5e7897(0x1e2)]!=null)_0x10d7b2[_0x5e7897(0x1e2)]=_0x68279b[_0x5e7897(0x1e2)];if(_0x68279b[_0x5e7897(0x1cf)]!=null)_0x10d7b2['afterScriptId']=_0x68279b['afterScriptId'];if(Array[_0x5e7897(0x20d)](_0x68279b[_0x5e7897(0x1c9)]))_0x10d7b2[_0x5e7897(0x1c9)]=_0x68279b[_0x5e7897(0x1c9)];if(Array[_0x5e7897(0x20d)](_0x68279b[_0x5e7897(0x1d4)]))_0x10d7b2['responseFields']=_0x68279b[_0x5e7897(0x1d4)];return _0x10d7b2;}function summarizeDbtable(_0x36cf7d){const _0x348119=a46_0x4bc8,_0x47529e={},_0x58c3ef=[_0x348119(0x1e5),_0x348119(0x1db),'tableName',_0x348119(0x1d5),_0x348119(0x1e4),_0x348119(0x1e9),_0x348119(0x1e8),'createTimeField',_0x348119(0x1fe),'creatorIdField','creatorNameField',_0x348119(0x1f0),_0x348119(0x200),'labelField','dblinkInfoDTO'];for(const _0x3f7f20 of _0x58c3ef){if(_0x36cf7d[_0x3f7f20]!==undefined)_0x47529e[_0x3f7f20]=_0x36cf7d[_0x3f7f20];}return typeof _0x47529e[_0x348119(0x1e9)]===_0x348119(0x208)&&_0x47529e[_0x348119(0x1e9)][_0x348119(0x1cd)]>0x0&&(_0x47529e[_0x348119(0x20a)]=_0x47529e[_0x348119(0x1e9)][_0x348119(0x1ce)](',')[_0x348119(0x1ff)](_0x438604=>_0x438604[_0x348119(0x203)]())[_0x348119(0x1fd)](Boolean)),_0x47529e;}function normalizeRelatedPages(_0x55c627){const _0x3a0058=a46_0x4bc8;if(!Array[_0x3a0058(0x20d)](_0x55c627))return[];return _0x55c627['filter'](_0x30772a=>_0x30772a&&typeof _0x30772a===_0x3a0058(0x207))[_0x3a0058(0x1ff)](_0x7b7e08=>({'id':_0x7b7e08['id'],'type':_0x7b7e08[_0x3a0058(0x1f1)],'code':_0x7b7e08[_0x3a0058(0x1f4)],'title':_0x7b7e08[_0x3a0058(0x1eb)],'deleted':_0x7b7e08['deleted']===!![]}));}export const datasetDetail={'service':'dataset','command':a46_0x15e260(0x1fa),'description':a46_0x15e260(0x1dc),'risk':a46_0x15e260(0x1df),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a46_0x15e260(0x1ee),'type':a46_0x15e260(0x208),'description':a46_0x15e260(0x1d6)}],async 'execute'(_0x393c8b){const _0x3144e1=a46_0x15e260,_0x52d11a=await getDatasetDetail(_0x393c8b['str'](_0x3144e1(0x1f4))),_0xe86301=Array[_0x3144e1(0x20d)](_0x52d11a[_0x3144e1(0x1d9)])?_0x52d11a[_0x3144e1(0x1d9)]:Array[_0x3144e1(0x20d)](_0x52d11a[_0x3144e1(0x1e7)])?_0x52d11a['properties']:[],_0x5a3d68=_0xe86301['map'](_0x93dec7=>normalizeField(_0x93dec7))[_0x3144e1(0x1fd)](_0x10cdb3=>_0x10cdb3!==null),_0x3b8d48=_0x52d11a[_0x3144e1(0x20b)]??{},_0x772adc=[];for(const [_0x1d4dcd,_0x28e563]of Object[_0x3144e1(0x1da)](_0x3b8d48)){const _0x5bafe8=normalizeOperationEntry(_0x1d4dcd,_0x28e563);if(_0x5bafe8)_0x772adc[_0x3144e1(0x1c7)](_0x5bafe8);}const _0x21e649=_0x52d11a[_0x3144e1(0x1f3)]??{},_0x2709bf=_0x52d11a['dataset']??{},_0x1d9680=_0x21e649[_0x3144e1(0x1e5)]!=null?{'id':_0x21e649[_0x3144e1(0x1e5)],'name':_0x21e649[_0x3144e1(0x1db)]??null}:undefined;let _0x21eb86;return typeof _0x52d11a['extend']===_0x3144e1(0x208)&&(_0x21eb86=parseJsonMaybe(_0x52d11a[_0x3144e1(0x1e1)])),{'ok':!![],'data':{'id':_0x52d11a[_0x3144e1(0x20c)]??_0x52d11a['id'],'name':_0x52d11a[_0x3144e1(0x1e0)],'code':_0x52d11a['modelCode']||_0x52d11a['code'],'doVersion':_0x52d11a[_0x3144e1(0x1d8)],'description':_0x52d11a[_0x3144e1(0x1d1)]||_0x2709bf['tableComment']||undefined,'source':_0x52d11a[_0x3144e1(0x1ef)]||_0x2709bf['sourceType'],'table':_0x21e649[_0x3144e1(0x1e6)]||_0x2709bf[_0x3144e1(0x1e6)],'datasetKey':_0x21e649['datasetKey'],'pk':_0x21e649[_0x3144e1(0x1e4)],'db':_0x1d9680,'dbtable':summarizeDbtable(_0x21e649),'fields':_0x5a3d68,'operations':_0x772adc,'indexes':Array[_0x3144e1(0x20d)](_0x2709bf[_0x3144e1(0x1d0)])?_0x2709bf['indexes']:[],'relations':Array['isArray'](_0x52d11a[_0x3144e1(0x1f7)])?_0x52d11a['relations'][_0x3144e1(0x1ff)](_0x60c1ef=>({'fromField':_0x60c1ef[_0x3144e1(0x20f)],'toDataset':_0x60c1ef[_0x3144e1(0x1ca)],'toCode':_0x60c1ef['toDatasetCode'],'toTable':_0x60c1ef[_0x3144e1(0x205)],'toField':_0x60c1ef[_0x3144e1(0x1de)],'labelField':_0x60c1ef[_0x3144e1(0x1fb)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x52d11a[_0x3144e1(0x202)]),...Array[_0x3144e1(0x20d)](_0x52d11a['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x52d11a['columnCodeListWithDeleted']}:{},'formatRules':Array[_0x3144e1(0x20d)](_0x52d11a[_0x3144e1(0x20e)])?_0x52d11a[_0x3144e1(0x20e)]:[],'validateRules':Array[_0x3144e1(0x20d)](_0x52d11a[_0x3144e1(0x1d2)])?_0x52d11a['validateRules']:[],..._0x21eb86!==undefined?{'extend':_0x21eb86}:{},'stats':{'fieldCount':_0x5a3d68[_0x3144e1(0x1cd)],'operationCount':_0x772adc['length']}}};}};
@@ -1 +1 @@
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
+ (function(_0x7123fa,_0x2cca2e){const _0x599183=a47_0x2729,_0x51d9a8=_0x7123fa();while(!![]){try{const _0x4f8cd1=-parseInt(_0x599183(0x11f))/0x1+parseInt(_0x599183(0x11b))/0x2+-parseInt(_0x599183(0x11e))/0x3+-parseInt(_0x599183(0x11c))/0x4*(-parseInt(_0x599183(0x11d))/0x5)+parseInt(_0x599183(0x122))/0x6*(-parseInt(_0x599183(0x121))/0x7)+parseInt(_0x599183(0x120))/0x8+-parseInt(_0x599183(0x11a))/0x9*(-parseInt(_0x599183(0x123))/0xa);if(_0x4f8cd1===_0x2cca2e)break;else _0x51d9a8['push'](_0x51d9a8['shift']());}catch(_0x398a23){_0x51d9a8['push'](_0x51d9a8['shift']());}}}(a47_0x4a94,0xdc7a3));import{datasetList}from'../../commands/dataset/list.js';function a47_0x4a94(){const _0x36b027=['12947808RKLsef','56agMMHO','271686jzfnxO','1382470LOEJpR','9jjnYup','1201844DCnSKp','68xrDmIh','355435Louqgk','1996251OOJqJE','1635384ShwesS'];a47_0x4a94=function(){return _0x36b027;};return a47_0x4a94();}import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetOperations}from'../../commands/dataset/operations.js';import{datasetLinks}from'../../commands/dataset/links.js';function a47_0x2729(_0x1fa3e9,_0xc63bbe){_0x1fa3e9=_0x1fa3e9-0x11a;const _0x4a94a2=a47_0x4a94();let _0x2729fd=_0x4a94a2[_0x1fa3e9];return _0x2729fd;}export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
@@ -1 +1 @@
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
+ const a48_0x3673a8=a48_0x2756;function a48_0x4260(){const _0x388361=['meta','datasetName','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','links','stats','2856393ofljcS','appCode','all','Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20','datasets','datasetId','Return\x20full\x20raw\x20ER\x20response\x20from\x20API','tableName','110CGgeDJ','str','toDataset','8LHJmQS','relations','Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20','1712936ggFJKR','datasetCode','fromField','805569QzgpSa','verbose','datasetCount','LEFT','length','1216770RDFeem','Fetched\x20link\x20graph\x20for\x20','reduce','1434608SUgXqB','dbId','joinType','8533040roageg','displayName','boolean','3947605PhLpsQ','Link\x20graph:\x20','isForeignKey','toDatasetName','\x20database(s)','\x20relation(s)','\x20dataset(s),\x20','filter','dbName','bool','map','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','isPrimaryKey','tableComment','fields','relationCount','name','6YSGXrk'];a48_0x4260=function(){return _0x388361;};return a48_0x4260();}(function(_0x43608e,_0x4a00d2){const _0x132b13=a48_0x2756,_0x5b3c4b=_0x43608e();while(!![]){try{const _0x296276=-parseInt(_0x132b13(0x170))/0x1+-parseInt(_0x132b13(0x16d))/0x2+parseInt(_0x132b13(0x175))/0x3*(-parseInt(_0x132b13(0x16a))/0x4)+parseInt(_0x132b13(0x17e))/0x5*(parseInt(_0x132b13(0x18f))/0x6)+-parseInt(_0x132b13(0x178))/0x7+-parseInt(_0x132b13(0x17b))/0x8+parseInt(_0x132b13(0x195))/0x9*(parseInt(_0x132b13(0x19d))/0xa);if(_0x296276===_0x4a00d2)break;else _0x5b3c4b['push'](_0x5b3c4b['shift']());}catch(_0x72dffb){_0x5b3c4b['push'](_0x5b3c4b['shift']());}}}(a48_0x4260,0x82d45));import{getErConfig}from'../../core/api-client.js';import{resolveDb}from'../../core/db-resolver.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a48_0x2756(_0x9cc735,_0x3801aa){_0x9cc735=_0x9cc735-0x169;const _0x426007=a48_0x4260();let _0x275686=_0x426007[_0x9cc735];return _0x275686;}export const datasetLinks={'service':'dataset','command':a48_0x3673a8(0x193),'description':a48_0x3673a8(0x192)+a48_0x3673a8(0x16c)+a48_0x3673a8(0x189),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':'string','description':a48_0x3673a8(0x198)+'Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.'},{'name':a48_0x3673a8(0x171),'type':a48_0x3673a8(0x17d),'description':a48_0x3673a8(0x19b)}],async 'execute'(_0x5b63f1){const _0x508745=a48_0x3673a8,_0x1c43c4=_0x5b63f1[_0x508745(0x187)](_0x508745(0x171)),{resolved:_0x31bdd1,error:_0x2ab408}=await resolveDb(_0x5b63f1[_0x508745(0x196)],_0x5b63f1[_0x508745(0x19e)]('db')||undefined);if(_0x2ab408)return{'ok':![],'message':_0x2ab408};const _0x41d12a=_0x31bdd1[_0x508745(0x188)](_0x1147f0=>_0x1147f0['dbId']),_0x207864=await Promise[_0x508745(0x197)](_0x41d12a[_0x508745(0x188)](_0x1443cc=>getErConfig(_0x5b63f1[_0x508745(0x196)],_0x1443cc)));if(_0x1c43c4)return{'ok':!![],'data':_0x207864[_0x508745(0x174)]===0x1?_0x207864[0x0]:_0x207864,'message':_0x508745(0x176)+_0x41d12a['length']+_0x508745(0x182)};const _0x3cd947=_0x207864[_0x508745(0x188)](_0x3fd263=>{const _0x4d961b=_0x508745,_0x32186f=(_0x3fd263[_0x4d961b(0x199)]??[])[_0x4d961b(0x188)](_0x4fcd80=>{const _0x9f50e9=_0x4d961b,_0x140c2f=_0x4fcd80[_0x9f50e9(0x18c)]?.[_0x9f50e9(0x185)](_0xc07f7a=>_0xc07f7a[_0x9f50e9(0x18a)])['map'](_0x124689=>_0x124689[_0x9f50e9(0x18e)])??[],_0xb516eb=_0x4fcd80[_0x9f50e9(0x18c)]?.[_0x9f50e9(0x185)](_0x2773eb=>_0x2773eb[_0x9f50e9(0x180)])['map'](_0xdf4499=>_0xdf4499[_0x9f50e9(0x18e)])??[];return{'id':_0x4fcd80[_0x9f50e9(0x19a)],'name':_0x4fcd80[_0x9f50e9(0x191)],'code':_0x4fcd80[_0x9f50e9(0x16e)],'table':_0x4fcd80[_0x9f50e9(0x19c)],'comment':_0x4fcd80[_0x9f50e9(0x18b)]||undefined,'fields':(_0x4fcd80[_0x9f50e9(0x18c)]??[])[_0x9f50e9(0x188)](_0x3ca481=>({'name':_0x3ca481[_0x9f50e9(0x18e)],'displayName':_0x3ca481[_0x9f50e9(0x17c)],'type':_0x3ca481['dbType'],'pk':_0x3ca481[_0x9f50e9(0x18a)],'fk':_0x3ca481['isForeignKey']})),'relations':(_0x4fcd80['relations']??[])[_0x9f50e9(0x185)](_0x5ef8be=>_0x5ef8be['fromField']&&_0x5ef8be[_0x9f50e9(0x169)])['map'](_0x968121=>({'from':_0x968121[_0x9f50e9(0x16f)],'toDataset':_0x968121[_0x9f50e9(0x181)],'toCode':_0x968121[_0x9f50e9(0x169)],'toField':_0x968121['toField'],'joinType':_0x968121[_0x9f50e9(0x17a)]||_0x9f50e9(0x173)})),'stats':{'fieldCount':_0x4fcd80[_0x9f50e9(0x18c)]?.[_0x9f50e9(0x174)]??0x0,'pkCount':_0x140c2f[_0x9f50e9(0x174)],'fkCount':_0xb516eb[_0x9f50e9(0x174)],'relationCount':_0x4fcd80[_0x9f50e9(0x16b)]?.['length']??0x0}};}),_0x30afdf=_0x32186f[_0x4d961b(0x185)](_0x2618f1=>_0x2618f1['stats']['relationCount']>0x0)['map'](_0x4c49c7=>_0x4c49c7[_0x4d961b(0x18e)]);return{'db':_0x3fd263['meta']?.[_0x4d961b(0x186)],'dbId':_0x3fd263[_0x4d961b(0x190)]?.[_0x4d961b(0x179)],'appCode':_0x3fd263[_0x4d961b(0x190)]?.[_0x4d961b(0x196)],'datasetCount':_0x32186f[_0x4d961b(0x174)],'connectedDatasets':_0x30afdf,'datasets':_0x32186f};}),_0x554d31=_0x3cd947[_0x508745(0x177)]((_0x3830bf,_0x34ff83)=>_0x3830bf+_0x34ff83[_0x508745(0x172)],0x0),_0x2096d8=_0x3cd947[_0x508745(0x177)]((_0xb53704,_0x4db3a3)=>_0xb53704+_0x4db3a3[_0x508745(0x199)][_0x508745(0x177)]((_0x2de9ef,_0x1d5bd8)=>_0x2de9ef+_0x1d5bd8[_0x508745(0x194)][_0x508745(0x18d)],0x0),0x0);return{'ok':!![],'data':_0x3cd947[_0x508745(0x174)]===0x1?_0x3cd947[0x0]:{'databases':_0x3cd947},'message':_0x508745(0x17f)+_0x3cd947[_0x508745(0x174)]+'\x20database(s),\x20'+_0x554d31+_0x508745(0x184)+_0x2096d8+_0x508745(0x183)};}};
@@ -1 +1 @@
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
+ const a49_0x15de32=a49_0x2c83;(function(_0x180733,_0x42be39){const _0x4e9984=a49_0x2c83,_0x500ad2=_0x180733();while(!![]){try{const _0x1066e4=parseInt(_0x4e9984(0x95))/0x1+parseInt(_0x4e9984(0x7e))/0x2+-parseInt(_0x4e9984(0x7d))/0x3+parseInt(_0x4e9984(0x7b))/0x4*(parseInt(_0x4e9984(0x8d))/0x5)+-parseInt(_0x4e9984(0x8f))/0x6+-parseInt(_0x4e9984(0x94))/0x7*(parseInt(_0x4e9984(0x7f))/0x8)+parseInt(_0x4e9984(0x8b))/0x9;if(_0x1066e4===_0x42be39)break;else _0x500ad2['push'](_0x500ad2['shift']());}catch(_0x32cebc){_0x500ad2['push'](_0x500ad2['shift']());}}}(a49_0x2d51,0xe5b62));function a49_0x2d51(){const _0x56b291=['287nJOwOc','1136286aGndjq','\x20dataset(s)','4ekUZFN','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','2156022MOSWRh','549470aHbNcN','26472oFINrY','code','dbtableConfig','source','length','str','dataset','description','split','read','map','string','10549899dUgJXZ','tableName','3610345YjYDsR','Found\x20','9060360RwOZIG','List\x20all\x20datasets\x20with\x20metadata','allFields','name','pkField'];a49_0x2d51=function(){return _0x56b291;};return a49_0x2d51();}import{listDatasets}from'../../core/api-client.js';function a49_0x2c83(_0x3f88cb,_0x5f3608){_0x3f88cb=_0x3f88cb-0x7a;const _0x2d514e=a49_0x2d51();let _0x2c834d=_0x2d514e[_0x3f88cb];return _0x2c834d;}import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetList={'service':a49_0x15de32(0x85),'command':'list','description':a49_0x15de32(0x90),'risk':a49_0x15de32(0x88),'flags':[{'name':'name','type':a49_0x15de32(0x8a),'description':a49_0x15de32(0x7c)},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x532008){const _0xa769a2=a49_0x15de32,_0x3f8d34=_0x532008[_0xa769a2(0x84)](_0xa769a2(0x92)),_0x224eb6=_0x532008[_0xa769a2(0x84)](_0xa769a2(0x80)),_0x14b9c5=await listDatasets(_0x532008['appCode'],{..._0x3f8d34&&{'name':_0x3f8d34},..._0x224eb6&&{'code':_0x224eb6}}),_0x3df556=_0x14b9c5[_0xa769a2(0x89)](_0x3f95ba=>{const _0x5b842b=_0xa769a2,_0x17739b=_0x3f95ba[_0x5b842b(0x81)]??{};return{'id':_0x3f95ba['id'],'name':_0x3f95ba[_0x5b842b(0x92)],'code':_0x3f95ba[_0x5b842b(0x80)],'description':_0x3f95ba[_0x5b842b(0x86)],'source':_0x3f95ba[_0x5b842b(0x82)],'db':_0x17739b['dbName'],'table':_0x17739b[_0x5b842b(0x8c)],'datasetKey':_0x17739b['datasetKey'],'pk':_0x17739b[_0x5b842b(0x93)],'fields':_0x17739b[_0x5b842b(0x91)]?_0x17739b[_0x5b842b(0x91)][_0x5b842b(0x87)](',')[_0x5b842b(0x89)](_0x4ac934=>_0x4ac934['trim']()):[]};});return{'ok':!![],'data':{'total':_0x3df556[_0xa769a2(0x83)],'datasets':_0x3df556},'message':_0xa769a2(0x8e)+_0x3df556[_0xa769a2(0x83)]+_0xa769a2(0x7a)};}};
@@ -1 +1 @@
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']}))}};}};
1
+ const a50_0x24db09=a50_0x18f4;function a50_0x44ad(){const _0x47080a=['enabled','160127wwHkvO','15okNJhN','1355780mTDVNb','operation','map','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','boolean','dataset','Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)','3260200UIucCJ','2332316hpwHuY','name','type','displayName','length','appCode','operations','195298BdSpWJ','string','verbose','str','257298QtatLQ','alias','code','862137BFzCks'];a50_0x44ad=function(){return _0x47080a;};return a50_0x44ad();}function a50_0x18f4(_0xdcaf2e,_0x28b318){_0xdcaf2e=_0xdcaf2e-0x6c;const _0x44ad63=a50_0x44ad();let _0x18f4d6=_0x44ad63[_0xdcaf2e];return _0x18f4d6;}(function(_0x3f2dd1,_0x46203c){const _0x40dded=a50_0x18f4,_0x128d84=_0x3f2dd1();while(!![]){try{const _0x38a378=parseInt(_0x40dded(0x79))/0x1+-parseInt(_0x40dded(0x70))/0x2+parseInt(_0x40dded(0x77))/0x3+-parseInt(_0x40dded(0x7b))/0x4+-parseInt(_0x40dded(0x7a))/0x5*(-parseInt(_0x40dded(0x74))/0x6)+-parseInt(_0x40dded(0x84))/0x7+parseInt(_0x40dded(0x83))/0x8;if(_0x38a378===_0x46203c)break;else _0x128d84['push'](_0x128d84['shift']());}catch(_0x788e42){_0x128d84['push'](_0x128d84['shift']());}}}(a50_0x44ad,0x3438a));import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetOperations={'service':a50_0x24db09(0x81),'command':a50_0x24db09(0x6f),'description':a50_0x24db09(0x7f),'risk':'read','flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a50_0x24db09(0x75),'type':a50_0x24db09(0x71),'description':a50_0x24db09(0x7e)},{'name':a50_0x24db09(0x7c),'type':a50_0x24db09(0x71),'description':a50_0x24db09(0x82)},{'name':a50_0x24db09(0x72),'type':a50_0x24db09(0x80),'description':'Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields'}],async 'execute'(_0x3ba921){const _0x59e629=a50_0x24db09,_0x4c9764=_0x3ba921[_0x59e629(0x73)](_0x59e629(0x76)),_0x20ed9f=_0x3ba921[_0x59e629(0x73)](_0x59e629(0x7c)),_0x477219=_0x3ba921['bool'](_0x59e629(0x72));if(_0x20ed9f){const {dataset:_0xaa073e,operation:_0x35f7b9}=await getOperationDetail(_0x3ba921[_0x59e629(0x6e)],_0x4c9764,_0x20ed9f);return{'ok':!![],'data':{'dataset':_0xaa073e,'operation':_0x35f7b9}};}const {dataset:_0x2ce52e,operations:_0x15c207}=await getDatasetOperations(_0x4c9764);return{'ok':!![],'data':{'dataset':_0x2ce52e,'total':_0x15c207[_0x59e629(0x6d)],'operations':_0x477219?_0x15c207:_0x15c207[_0x59e629(0x7d)](_0x3bbdb3=>({'name':_0x3bbdb3[_0x59e629(0x85)],'displayName':_0x3bbdb3[_0x59e629(0x6c)],'type':_0x3bbdb3[_0x59e629(0x86)],'method':_0x3bbdb3['method'],'enabled':_0x3bbdb3[_0x59e629(0x78)]}))}};}};
@@ -1 +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();}
1
+ function a51_0x412c(){const _0x79edd9=['validation','write','204186YASEaF','6vQQgsU','495940csUrcS','Analysis\x20plan\x20/\x20trace\x20id\x20(optional\x20—\x20defaults\x20to\x20latest\x20trace\x20from\x20db\x20list/detail)','8OGSOnM','12732660xwDfaq','30405OYrETa','6671301mLDLtW','1502838RAkMMk','analyze-cancel','str','No\x20latestAnalysisTraceId\x20on\x20this\x20link.\x20Pass\x20--plan\x20<traceId>\x20from\x20db\x20list/detail.','plan','latestAnalysisTraceId','236yyBvsx','string','Cancel\x20a\x20running\x20schema\x20analysis.\x20Omit\x20--plan\x20to\x20use\x20latestAnalysisTraceId\x20from\x20the\x20link','Analysis\x20may\x20already\x20be\x20finished\x20or\x20never\x20started.','2028120TwwjxQ','Cancel\x20requested\x20for\x20plan\x20'];a51_0x412c=function(){return _0x79edd9;};return a51_0x412c();}const a51_0x4d1ed4=a51_0x3530;(function(_0x42cfe1,_0x114bf6){const _0x16fd2b=a51_0x3530,_0x3d0a8a=_0x42cfe1();while(!![]){try{const _0x1ebf5d=parseInt(_0x16fd2b(0xc0))/0x1*(-parseInt(_0x16fd2b(0xbf))/0x2)+-parseInt(_0x16fd2b(0xc5))/0x3*(-parseInt(_0x16fd2b(0xcd))/0x4)+parseInt(_0x16fd2b(0xc1))/0x5+parseInt(_0x16fd2b(0xd1))/0x6+parseInt(_0x16fd2b(0xc6))/0x7*(-parseInt(_0x16fd2b(0xc3))/0x8)+-parseInt(_0x16fd2b(0xc7))/0x9+parseInt(_0x16fd2b(0xc4))/0xa;if(_0x1ebf5d===_0x114bf6)break;else _0x3d0a8a['push'](_0x3d0a8a['shift']());}catch(_0x23007f){_0x3d0a8a['push'](_0x3d0a8a['shift']());}}}(a51_0x412c,0x8c970));import{cancelDbAnalysis,getDbLinkInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a51_0x3530(_0x5329cc,_0x1a8776){_0x5329cc=_0x5329cc-0xbe;const _0x412c84=a51_0x412c();let _0x353041=_0x412c84[_0x5329cc];return _0x353041;}export const dbAnalyzeCancel={'service':'db','command':a51_0x4d1ed4(0xc8),'description':a51_0x4d1ed4(0xcf),'risk':a51_0x4d1ed4(0xbe),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a51_0x4d1ed4(0xcb),'type':a51_0x4d1ed4(0xce),'description':a51_0x4d1ed4(0xc2)}],async 'execute'(_0x3ba09a){const _0x5b423a=a51_0x4d1ed4,_0x31e680=_0x3ba09a['num']('id');let _0xee92a=_0x3ba09a[_0x5b423a(0xc9)](_0x5b423a(0xcb))||undefined;if(!_0xee92a){const _0x10a2ff=await getDbLinkInfo(_0x31e680);_0xee92a=_0x10a2ff[_0x5b423a(0xcc)]??undefined;if(!_0xee92a)throw CliErrors[_0x5b423a(0xd3)](_0x5b423a(0xca),_0x5b423a(0xd0));}return await cancelDbAnalysis(_0xee92a),{'ok':!![],'data':{'dbLinkId':_0x31e680,'planId':_0xee92a},'message':_0x5b423a(0xd2)+_0xee92a};}};
@@ -1 +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();}
1
+ function a52_0x5cf1(_0xcf1d47,_0x177791){_0xcf1d47=_0xcf1d47-0x178;const _0x4998f9=a52_0x4998();let _0x5cf125=_0x4998f9[_0xcf1d47];return _0x5cf125;}const a52_0x3eb24b=a52_0x5cf1;(function(_0x523dc7,_0x27eb38){const _0x7986a3=a52_0x5cf1,_0x1cb4ff=_0x523dc7();while(!![]){try{const _0x280c68=-parseInt(_0x7986a3(0x184))/0x1*(parseInt(_0x7986a3(0x182))/0x2)+parseInt(_0x7986a3(0x189))/0x3+parseInt(_0x7986a3(0x179))/0x4*(parseInt(_0x7986a3(0x17b))/0x5)+parseInt(_0x7986a3(0x178))/0x6+parseInt(_0x7986a3(0x183))/0x7*(parseInt(_0x7986a3(0x187))/0x8)+-parseInt(_0x7986a3(0x181))/0x9+-parseInt(_0x7986a3(0x17e))/0xa;if(_0x280c68===_0x27eb38)break;else _0x1cb4ff['push'](_0x1cb4ff['shift']());}catch(_0x327e63){_0x1cb4ff['push'](_0x1cb4ff['shift']());}}}(a52_0x4998,0xe98af));function a52_0x4998(){const _0x226d7f=['10DIqOUl','analyze-start','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','19137990pzfMDq','tables','str','4047588ryVvgO','2UrhAQX','21nlztQS','424510CnZKvH','map','Started\x20analysis\x20for\x20db\x20link\x20','650712EYPtoj','filter','1250136wSmvpI','9593190oMGPxJ','2970076LgRlBt','num'];a52_0x4998=function(){return _0x226d7f;};return a52_0x4998();}import{startDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeStart={'service':'db','command':a52_0x3eb24b(0x17c),'description':a52_0x3eb24b(0x17d),'risk':'write','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a52_0x3eb24b(0x17f),'type':'string','description':'Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)'}],async 'execute'(_0x4d6f79){const _0x4c01c5=a52_0x3eb24b,_0x4249fa=_0x4d6f79[_0x4c01c5(0x17a)]('id'),_0x488b33=_0x4d6f79[_0x4c01c5(0x180)](_0x4c01c5(0x17f)),_0x49c88d=_0x488b33?_0x488b33['split'](',')[_0x4c01c5(0x185)](_0x23d75d=>_0x23d75d['trim']())[_0x4c01c5(0x188)](Boolean):undefined,_0x434313=await startDbAnalysis(_0x4249fa,_0x49c88d);return{'ok':!![],'data':{'dbLinkId':_0x4249fa,'planId':_0x434313,'tableNames':_0x49c88d??[]},'message':_0x4c01c5(0x186)+_0x4249fa};}};
@@ -1 +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};}};
1
+ function a53_0x2f7b(){const _0x3c4b3c=['22301892qgoABq','2779988vgmkbf','read','88wqFNCu','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','str','5PMXtBF','30DGJpAF','27528ngxxjg','497SXvpPc','579ggMOBS','212916TYodEY','num','125397psfDEk','244981baIJij','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','4980bujFvE','plan','analyze-status'];a53_0x2f7b=function(){return _0x3c4b3c;};return a53_0x2f7b();}const a53_0xb193d=a53_0x2e2e;(function(_0x95d10b,_0x8f3f99){const _0x390e4a=a53_0x2e2e,_0x207213=_0x95d10b();while(!![]){try{const _0x1c9a65=-parseInt(_0x390e4a(0x1a1))/0x1+-parseInt(_0x390e4a(0x1a6))/0x2*(parseInt(_0x390e4a(0x1a0))/0x3)+parseInt(_0x390e4a(0x197))/0x4*(-parseInt(_0x390e4a(0x19c))/0x5)+parseInt(_0x390e4a(0x19e))/0x6*(-parseInt(_0x390e4a(0x19f))/0x7)+parseInt(_0x390e4a(0x199))/0x8*(parseInt(_0x390e4a(0x1a3))/0x9)+parseInt(_0x390e4a(0x19d))/0xa*(parseInt(_0x390e4a(0x1a4))/0xb)+parseInt(_0x390e4a(0x196))/0xc;if(_0x1c9a65===_0x8f3f99)break;else _0x207213['push'](_0x207213['shift']());}catch(_0x2a9acd){_0x207213['push'](_0x207213['shift']());}}}(a53_0x2f7b,0x58f30));function a53_0x2e2e(_0x2d4a49,_0x496161){_0x2d4a49=_0x2d4a49-0x194;const _0x2f7b30=a53_0x2f7b();let _0x2e2e89=_0x2f7b30[_0x2d4a49];return _0x2e2e89;}import{getDbAnalysisStatus}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeStatus={'service':'db','command':a53_0xb193d(0x195),'description':a53_0xb193d(0x19a),'risk':a53_0xb193d(0x198),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a53_0xb193d(0x194),'type':'string','required':!![],'description':a53_0xb193d(0x1a5)}],async 'execute'(_0x4328a5){const _0x546ad2=a53_0xb193d,_0x117dfe=_0x4328a5[_0x546ad2(0x1a2)]('id'),_0x424cd9=_0x4328a5[_0x546ad2(0x19b)](_0x546ad2(0x194)),_0x161b85=await getDbAnalysisStatus(_0x424cd9);return{'ok':!![],'data':{'dbLinkId':_0x117dfe,'planId':_0x424cd9,'status':_0x161b85},'message':'Analysis\x20status\x20for\x20'+_0x424cd9};}};