@lovrabet/rabetbase-cli 2.1.2-beta.0 → 2.1.2-beta.2

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 (161) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/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 -1
  104. package/lib/constant/cli.js +1 -1
  105. package/lib/constant/defaults.js +1 -1
  106. package/lib/constant/domain.js +1 -1
  107. package/lib/constant/env.js +1 -1
  108. package/lib/constant/output.js +1 -1
  109. package/lib/constant/paths.js +1 -1
  110. package/lib/constant/risk.js +1 -1
  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 -1
  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/entity-with-id.js +1 -0
  149. package/lib/utils/file-utils.js +1 -1
  150. package/lib/utils/guides-cdn.js +1 -1
  151. package/lib/utils/http-client.js +1 -1
  152. package/lib/utils/is-non-interactive.js +1 -1
  153. package/lib/utils/logger.js +1 -1
  154. package/lib/utils/platform.js +1 -1
  155. package/lib/utils/rules-cdn.js +1 -1
  156. package/lib/utils/sleep.js +1 -1
  157. package/lib/utils/template-replacer.js +1 -1
  158. package/lib/utils/version.js +1 -1
  159. package/lib/utils/with-active-cookie.js +1 -1
  160. package/lib/utils/write-cli-side-channel.js +1 -1
  161. package/package.json +2 -2
@@ -1 +1 @@
1
- const a34_0x52dc6c=a34_0x22a6;(function(_0x2aca58,_0x2b195c){const _0x3b4bab=a34_0x22a6,_0x305241=_0x2aca58();while(!![]){try{const _0x54a883=-parseInt(_0x3b4bab(0x189))/0x1*(-parseInt(_0x3b4bab(0x17c))/0x2)+parseInt(_0x3b4bab(0x19a))/0x3*(parseInt(_0x3b4bab(0x196))/0x4)+-parseInt(_0x3b4bab(0x19d))/0x5*(-parseInt(_0x3b4bab(0x192))/0x6)+parseInt(_0x3b4bab(0x1a3))/0x7+-parseInt(_0x3b4bab(0x19f))/0x8*(parseInt(_0x3b4bab(0x198))/0x9)+-parseInt(_0x3b4bab(0x1a7))/0xa*(-parseInt(_0x3b4bab(0x190))/0xb)+-parseInt(_0x3b4bab(0x187))/0xc*(parseInt(_0x3b4bab(0x183))/0xd);if(_0x54a883===_0x2b195c)break;else _0x305241['push'](_0x305241['shift']());}catch(_0x723f3e){_0x305241['push'](_0x305241['shift']());}}}(a34_0x3c86,0x49430));import a34_0x19d603 from'chalk';import a34_0x1b6a68 from'ora';import a34_0x39c260 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 _0x359df8=a34_0x22a6;return GIT_COMMIT!==_0x359df8(0x182)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x359df8(0x1aa)](0x0,0xa)+')':VERSION;}function a34_0x3c86(){const _0x40c3eb=['log','2025080RMKbVE','info','yellow','write','554890MVotQV','Update\x20available:\x20','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','/latest','10pNAxQf','gray','message','slice','fail','json','Current\x20version:\x20','Updated\x20to\x20v','386aGkndt','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','npm','Update\x20failed','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','unknown','4537XPmIxj','Already\x20up\x20to\x20date\x20(v','Unable\x20to\x20check\x20for\x20updates','run','13956dfuhIu','execPath','691zXLoMZ','pipe','start','version','includes','\x20\x20Try\x20manually:\x20','Version\x20comparison\x20failed','6078941mWoJlL','green','174rNAmby','succeed','coerce','red','96ApoqBm','@latest','9CrkUsW','timeout','3357btdXKx','...','bun','28790WTcqZT'];a34_0x3c86=function(){return _0x40c3eb;};return a34_0x3c86();}function detectPackageManager(){const _0x1a4777=a34_0x22a6,_0x439abc=process[_0x1a4777(0x188)]['toLowerCase']();if(_0x439abc[_0x1a4777(0x18d)](_0x1a4777(0x19c)))return'bun';return _0x1a4777(0x17f);}function a34_0x22a6(_0x16650b,_0x4bcaeb){_0x16650b=_0x16650b-0x17c;const _0x3c8678=a34_0x3c86();let _0x22a68f=_0x3c8678[_0x16650b];return _0x22a68f;}async function fetchLatestNpmVersion(){const _0x24d859=a34_0x22a6;try{const _0x54e2bd=await fetch('https://registry.npmjs.org/'+NPM_PACKAGE_NAME+_0x24d859(0x1a6),{'signal':AbortSignal[_0x24d859(0x199)](0x2710)});if(!_0x54e2bd['ok'])return null;const _0x33bf42=await _0x54e2bd[_0x24d859(0x1ac)]();return _0x33bf42[_0x24d859(0x18c)]??null;}catch{return null;}}async function fetchLatestVersion(){const _0x1cf9f2=await fetchLatestNpmVersion();if(_0x1cf9f2)return _0x1cf9f2;const _0x3db1d4=await getCdnConfig();return _0x3db1d4?.['cli']?.['stableVersion']??null;}async function execute(_0x3dcb6d){const _0x475bc1=a34_0x22a6,_0x16cca7=getCurrentVersion();console[_0x475bc1(0x19e)](_0x475bc1(0x1ad)+_0x16cca7);const _0x47037a=a34_0x1b6a68('Checking\x20for\x20updates...')[_0x475bc1(0x18b)](),_0x48d991=await fetchLatestVersion();if(!_0x48d991)return _0x47037a[_0x475bc1(0x1ab)](_0x475bc1(0x17d)),console[_0x475bc1(0x19e)](a34_0x19d603[_0x475bc1(0x1a8)](_0x475bc1(0x181)+NPM_PACKAGE_NAME+'@latest')),{'ok':![],'message':_0x475bc1(0x185)};const _0xca3221=a34_0x39c260[_0x475bc1(0x194)](_0x16cca7),_0x186396=a34_0x39c260[_0x475bc1(0x194)](_0x48d991);if(!_0xca3221||!_0x186396)return _0x47037a[_0x475bc1(0x1ab)](_0x475bc1(0x18f)),{'ok':![],'message':_0x475bc1(0x18f)};if(!a34_0x39c260['lt'](_0xca3221,_0x186396))return _0x47037a[_0x475bc1(0x193)](_0x475bc1(0x184)+_0x48d991+')'),{'ok':!![]};_0x47037a[_0x475bc1(0x1a0)](_0x475bc1(0x1a4)+a34_0x19d603[_0x475bc1(0x1a1)](_0x16cca7)+'\x20→\x20'+a34_0x19d603[_0x475bc1(0x191)](_0x48d991));const _0x378655=detectPackageManager(),_0x83d8aa=_0x378655===_0x475bc1(0x17f)?resolveNpmBin('npm'):_0x378655,_0xf3f646=a34_0x1b6a68('Updating\x20via\x20'+_0x378655+_0x475bc1(0x19b))['start']();try{return await execa(_0x83d8aa,['install','-g',NPM_PACKAGE_NAME+_0x475bc1(0x197)],{'stdio':_0x475bc1(0x18a)}),_0xf3f646[_0x475bc1(0x193)](_0x475bc1(0x1ae)+_0x48d991),console[_0x475bc1(0x19e)](a34_0x19d603[_0x475bc1(0x1a8)](_0x475bc1(0x1a5))),{'ok':!![]};}catch(_0x30c987){return _0xf3f646['fail'](_0x475bc1(0x180)),console['error'](a34_0x19d603[_0x475bc1(0x195)]('\x20\x20'+_0x30c987[_0x475bc1(0x1a9)])),console[_0x475bc1(0x19e)](a34_0x19d603['gray'](_0x475bc1(0x18e)+_0x378655+'\x20install\x20-g\x20'+NPM_PACKAGE_NAME+_0x475bc1(0x197))),{'ok':![],'message':_0x30c987['message']};}}export const updateDefinition={'service':'update','command':a34_0x52dc6c(0x186),'description':a34_0x52dc6c(0x17e),'risk':a34_0x52dc6c(0x1a2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a34_0x1c6646=a34_0xf7ec;(function(_0x1049f5,_0x94d762){const _0x3aad2e=a34_0xf7ec,_0x2fd634=_0x1049f5();while(!![]){try{const _0x10c2d7=parseInt(_0x3aad2e(0x1b6))/0x1*(-parseInt(_0x3aad2e(0x1ac))/0x2)+-parseInt(_0x3aad2e(0x1c1))/0x3*(parseInt(_0x3aad2e(0x1c8))/0x4)+parseInt(_0x3aad2e(0x1a0))/0x5*(-parseInt(_0x3aad2e(0x1bf))/0x6)+parseInt(_0x3aad2e(0x1a7))/0x7*(parseInt(_0x3aad2e(0x1b8))/0x8)+-parseInt(_0x3aad2e(0x1c7))/0x9+parseInt(_0x3aad2e(0x1a5))/0xa+parseInt(_0x3aad2e(0x1c6))/0xb*(parseInt(_0x3aad2e(0x1b3))/0xc);if(_0x10c2d7===_0x94d762)break;else _0x2fd634['push'](_0x2fd634['shift']());}catch(_0x2bd0f3){_0x2fd634['push'](_0x2fd634['shift']());}}}(a34_0x3343,0x62b14));import a34_0x9c4fdd from'chalk';import a34_0x507e55 from'ora';import a34_0x47710b 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 _0x3ad34c=a34_0xf7ec;return GIT_COMMIT!==_0x3ad34c(0x1c2)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x3ad34c(0x1c4)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x24f004=a34_0xf7ec,_0x22370f=process['execPath'][_0x24f004(0x1b5)]();if(_0x22370f[_0x24f004(0x1a4)](_0x24f004(0x1c3)))return _0x24f004(0x1c3);return _0x24f004(0x1c5);}async function fetchLatestNpmVersion(){const _0x14f039=a34_0xf7ec;try{const _0x581ff0=await fetch('https://registry.npmjs.org/'+NPM_PACKAGE_NAME+'/latest',{'signal':AbortSignal[_0x14f039(0x1aa)](0x2710)});if(!_0x581ff0['ok'])return null;const _0x22bd8e=await _0x581ff0[_0x14f039(0x1a9)]();return _0x22bd8e['version']??null;}catch{return null;}}function a34_0xf7ec(_0x13ebcd,_0x19061a){_0x13ebcd=_0x13ebcd-0x1a0;const _0x33435f=a34_0x3343();let _0xf7ec47=_0x33435f[_0x13ebcd];return _0xf7ec47;}async function fetchLatestVersion(){const _0x46a4e4=a34_0xf7ec,_0xa0eeb5=await fetchLatestNpmVersion();if(_0xa0eeb5)return _0xa0eeb5;const _0x3b2d5e=await getCdnConfig();return _0x3b2d5e?.['cli']?.[_0x46a4e4(0x1b4)]??null;}function a34_0x3343(){const _0xcf7194=['fail','start','run','yellow','37782MpZfLI','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','3mECzLL','unknown','bun','slice','npm','22zcQKpb','1799703UHesIo','22044FBZgmF','log','coerce','succeed','install','Updated\x20to\x20v','Unable\x20to\x20check\x20for\x20updates','Update\x20failed','165LJjYcB','Update\x20available:\x20','error','write','includes','4552300AhnqFI','green','140NuPQGC','info','json','timeout','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','85570nlanwL','@latest','pipe','red','Version\x20comparison\x20failed','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','Updating\x20via\x20','684888ccLlOD','stableVersion','toLowerCase','7ubNgrI','...','219056fjNcKO','gray','Already\x20up\x20to\x20date\x20(v'];a34_0x3343=function(){return _0xcf7194;};return a34_0x3343();}async function execute(_0x3fa752){const _0x28a5b4=a34_0xf7ec,_0x29f757=getCurrentVersion();console[_0x28a5b4(0x1c9)]('Current\x20version:\x20'+_0x29f757);const _0x450c4e=a34_0x507e55('Checking\x20for\x20updates...')[_0x28a5b4(0x1bc)](),_0x12afa9=await fetchLatestVersion();if(!_0x12afa9)return _0x450c4e['fail']('Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)'),console[_0x28a5b4(0x1c9)](a34_0x9c4fdd[_0x28a5b4(0x1b9)](_0x28a5b4(0x1b1)+NPM_PACKAGE_NAME+'@latest')),{'ok':![],'message':_0x28a5b4(0x1ce)};const _0x3931fb=a34_0x47710b[_0x28a5b4(0x1ca)](_0x29f757),_0x5b9e29=a34_0x47710b[_0x28a5b4(0x1ca)](_0x12afa9);if(!_0x3931fb||!_0x5b9e29)return _0x450c4e[_0x28a5b4(0x1bb)](_0x28a5b4(0x1b0)),{'ok':![],'message':'Version\x20comparison\x20failed'};if(!a34_0x47710b['lt'](_0x3931fb,_0x5b9e29))return _0x450c4e[_0x28a5b4(0x1cb)](_0x28a5b4(0x1ba)+_0x12afa9+')'),{'ok':!![]};_0x450c4e[_0x28a5b4(0x1a8)](_0x28a5b4(0x1a1)+a34_0x9c4fdd[_0x28a5b4(0x1be)](_0x29f757)+'\x20→\x20'+a34_0x9c4fdd[_0x28a5b4(0x1a6)](_0x12afa9));const _0x3f45b0=detectPackageManager(),_0x329674=_0x3f45b0==='npm'?resolveNpmBin('npm'):_0x3f45b0,_0x21b796=a34_0x507e55(_0x28a5b4(0x1b2)+_0x3f45b0+_0x28a5b4(0x1b7))[_0x28a5b4(0x1bc)]();try{return await execa(_0x329674,[_0x28a5b4(0x1cc),'-g',NPM_PACKAGE_NAME+_0x28a5b4(0x1ad)],{'stdio':_0x28a5b4(0x1ae)}),_0x21b796[_0x28a5b4(0x1cb)](_0x28a5b4(0x1cd)+_0x12afa9),console['log'](a34_0x9c4fdd[_0x28a5b4(0x1b9)](_0x28a5b4(0x1c0))),{'ok':!![]};}catch(_0x1263f4){return _0x21b796[_0x28a5b4(0x1bb)](_0x28a5b4(0x1cf)),console[_0x28a5b4(0x1a2)](a34_0x9c4fdd[_0x28a5b4(0x1af)]('\x20\x20'+_0x1263f4['message'])),console[_0x28a5b4(0x1c9)](a34_0x9c4fdd['gray']('\x20\x20Try\x20manually:\x20'+_0x3f45b0+'\x20install\x20-g\x20'+NPM_PACKAGE_NAME+_0x28a5b4(0x1ad))),{'ok':![],'message':_0x1263f4['message']};}}export const updateDefinition={'service':'update','command':a34_0x1c6646(0x1bd),'description':a34_0x1c6646(0x1ab),'risk':a34_0x1c6646(0x1a3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x531e29,_0x2fce26){const _0x267965=a35_0x5524,_0x141767=_0x531e29();while(!![]){try{const _0x54759b=parseInt(_0x267965(0x142))/0x1+parseInt(_0x267965(0x13f))/0x2+parseInt(_0x267965(0x13e))/0x3*(-parseInt(_0x267965(0x141))/0x4)+parseInt(_0x267965(0x143))/0x5+parseInt(_0x267965(0x140))/0x6+-parseInt(_0x267965(0x145))/0x7*(parseInt(_0x267965(0x13d))/0x8)+-parseInt(_0x267965(0x144))/0x9;if(_0x54759b===_0x2fce26)break;else _0x141767['push'](_0x141767['shift']());}catch(_0x345d3c){_0x141767['push'](_0x141767['shift']());}}}(a35_0x51c5,0x8cffd));import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];function a35_0x5524(_0x26b301,_0xdfbe5a){_0x26b301=_0x26b301-0x13d;const _0x51c507=a35_0x51c5();let _0x55245b=_0x51c507[_0x26b301];return _0x55245b;}function a35_0x51c5(){const _0x1e299e=['21782466lJTqqu','438193cryvfu','16vpopxd','163299RFTYgv','2055680PtkIPz','4332750WcrkLq','36FEGNVU','844810WlrFfB','5090635kxHjfj'];a35_0x51c5=function(){return _0x1e299e;};return a35_0x51c5();}
1
+ function a35_0xe1f4(){const _0x81ac47=['1226905qeHXeM','1830143GQhLlM','963681gzCZeN','235160euPwVg','16PgzNcc','117fiXlyV','13667676kaVHQm','6XBXwVa','753130jldUBF','12uKWChN','63299tERUnD'];a35_0xe1f4=function(){return _0x81ac47;};return a35_0xe1f4();}function a35_0x4987(_0x507909,_0xc55fa9){_0x507909=_0x507909-0x15b;const _0xe1f497=a35_0xe1f4();let _0x498728=_0xe1f497[_0x507909];return _0x498728;}(function(_0x5a487a,_0x686584){const _0x130a76=a35_0x4987,_0x2a709a=_0x5a487a();while(!![]){try{const _0x3da10a=parseInt(_0x130a76(0x161))/0x1+-parseInt(_0x130a76(0x15e))/0x2*(-parseInt(_0x130a76(0x164))/0x3)+parseInt(_0x130a76(0x15b))/0x4*(parseInt(_0x130a76(0x162))/0x5)+parseInt(_0x130a76(0x160))/0x6*(-parseInt(_0x130a76(0x163))/0x7)+-parseInt(_0x130a76(0x165))/0x8*(-parseInt(_0x130a76(0x15c))/0x9)+-parseInt(_0x130a76(0x15f))/0xa+-parseInt(_0x130a76(0x15d))/0xb;if(_0x3da10a===_0x686584)break;else _0x2a709a['push'](_0x2a709a['shift']());}catch(_0x32452c){_0x2a709a['push'](_0x2a709a['shift']());}}}(a35_0xe1f4,0x86418));import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
@@ -1 +1 @@
1
- const a36_0x520240=a36_0x2519;(function(_0x31602d,_0x514143){const _0x192593=a36_0x2519,_0x5566a4=_0x31602d();while(!![]){try{const _0x5f41c5=parseInt(_0x192593(0x125))/0x1+parseInt(_0x192593(0x135))/0x2*(-parseInt(_0x192593(0x126))/0x3)+-parseInt(_0x192593(0x132))/0x4+parseInt(_0x192593(0x134))/0x5*(-parseInt(_0x192593(0x12e))/0x6)+-parseInt(_0x192593(0x133))/0x7+parseInt(_0x192593(0x137))/0x8*(-parseInt(_0x192593(0x129))/0x9)+parseInt(_0x192593(0x12c))/0xa;if(_0x5f41c5===_0x514143)break;else _0x5566a4['push'](_0x5566a4['shift']());}catch(_0x22a66c){_0x5566a4['push'](_0x5566a4['shift']());}}}(a36_0x4eff,0xd76b4));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';function a36_0x4eff(){const _0x1be1c4=['9832Mwdfum','str','Omit\x20import\x20statements\x20from\x20generated\x20code','435350NDGvBh','1304037oBLmLu','code','bool','4527gaRqoA','operation','boolean','47639130YOYsZe','string','125676PptxiV','read','tableName','skip-imports','6550280SBTERO','1084062ShUylQ','40IzVaXX','8rVFfNZ','alias'];a36_0x4eff=function(){return _0x1be1c4;};return a36_0x4eff();}function a36_0x2519(_0x379f1a,_0x3d8e72){_0x379f1a=_0x379f1a-0x123;const _0x4eff24=a36_0x4eff();let _0x251921=_0x4eff24[_0x379f1a];return _0x251921;}import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':'codegen','command':'sdk','description':'Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','risk':a36_0x520240(0x12f),'flags':[CODE_FLAG_OPTIONAL,{'name':a36_0x520240(0x136),'type':'string','description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)'},{'name':a36_0x520240(0x12a),'type':a36_0x520240(0x12d),'required':!![],'description':'Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)'},{'name':a36_0x520240(0x131),'type':a36_0x520240(0x12b),'description':a36_0x520240(0x124)}],async 'execute'(_0x1977d6){const _0x521c6f=a36_0x520240,{dataset:_0x1da622,operation:_0x57e379}=await getOperationDetail(_0x1977d6['appCode'],_0x1977d6['str']('code'),_0x1977d6[_0x521c6f(0x123)](_0x521c6f(0x12a))),_0xbed3e9=generateSdkCode(_0x1da622,_0x57e379,{'includeImports':!_0x1977d6[_0x521c6f(0x128)](_0x521c6f(0x131))});return{'ok':!![],'data':{'dataset':{'name':_0x1da622['name'],'code':_0x1da622[_0x521c6f(0x127)],'tableName':_0x1da622[_0x521c6f(0x130)]},'operation':_0x1977d6['str'](_0x521c6f(0x12a)),'code':_0xbed3e9}};}};
1
+ const a36_0x5c02da=a36_0x6f31;(function(_0x3dc797,_0x4b6ac7){const _0x26019b=a36_0x6f31,_0x10488e=_0x3dc797();while(!![]){try{const _0xf5a71a=parseInt(_0x26019b(0x96))/0x1*(-parseInt(_0x26019b(0x91))/0x2)+parseInt(_0x26019b(0x9e))/0x3*(parseInt(_0x26019b(0x9a))/0x4)+-parseInt(_0x26019b(0x99))/0x5*(-parseInt(_0x26019b(0xa2))/0x6)+-parseInt(_0x26019b(0x94))/0x7+parseInt(_0x26019b(0x90))/0x8+parseInt(_0x26019b(0x97))/0x9+-parseInt(_0x26019b(0x8e))/0xa*(parseInt(_0x26019b(0x9f))/0xb);if(_0xf5a71a===_0x4b6ac7)break;else _0x10488e['push'](_0x10488e['shift']());}catch(_0x7813bb){_0x10488e['push'](_0x10488e['shift']());}}}(a36_0x2a58,0xf0b8c));function a36_0x6f31(_0x4a0d79,_0xc0def5){_0x4a0d79=_0x4a0d79-0x88;const _0x2a5848=a36_0x2a58();let _0x6f312=_0x2a5848[_0x4a0d79];return _0x6f312;}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a36_0x5c02da(0x8d),'command':a36_0x5c02da(0x88),'description':a36_0x5c02da(0x9c),'risk':a36_0x5c02da(0x8f),'flags':[CODE_FLAG_OPTIONAL,{'name':'alias','type':a36_0x5c02da(0x95),'description':a36_0x5c02da(0x98)},{'name':'operation','type':'string','required':!![],'description':a36_0x5c02da(0x8a)},{'name':a36_0x5c02da(0x92),'type':'boolean','description':a36_0x5c02da(0x89)}],async 'execute'(_0x76ecab){const _0x324075=a36_0x5c02da,{dataset:_0x3fd624,operation:_0x80ad64}=await getOperationDetail(_0x76ecab[_0x324075(0x9d)],_0x76ecab[_0x324075(0x9b)](_0x324075(0xa1)),_0x76ecab['str'](_0x324075(0x8c))),_0x34663f=generateSdkCode(_0x3fd624,_0x80ad64,{'includeImports':!_0x76ecab[_0x324075(0xa0)](_0x324075(0x92))});return{'ok':!![],'data':{'dataset':{'name':_0x3fd624[_0x324075(0x8b)],'code':_0x3fd624[_0x324075(0xa1)],'tableName':_0x3fd624[_0x324075(0x93)]},'operation':_0x76ecab[_0x324075(0x9b)](_0x324075(0x8c)),'code':_0x34663f}};}};function a36_0x2a58(){const _0x119bac=['Omit\x20import\x20statements\x20from\x20generated\x20code','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','name','operation','codegen','9910ReswiS','read','9099464pPBQeL','502MzOJNn','skip-imports','tableName','9634786psbVfl','string','1073DdRjEQ','9945774tPmpAN','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','51820XekDtW','1244nMIlZN','str','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','appCode','12477ubKDQL','12683eFzSiJ','bool','code','138QFWaib','sdk'];a36_0x2a58=function(){return _0x119bac;};return a36_0x2a58();}
@@ -1 +1 @@
1
- const a37_0x2a71db=a37_0x2c1e;(function(_0x267976,_0x3bb3c0){const _0x5622ac=a37_0x2c1e,_0x21d836=_0x267976();while(!![]){try{const _0x1b7be3=parseInt(_0x5622ac(0x88))/0x1*(-parseInt(_0x5622ac(0x8e))/0x2)+parseInt(_0x5622ac(0x87))/0x3+parseInt(_0x5622ac(0x8a))/0x4*(parseInt(_0x5622ac(0x97))/0x5)+-parseInt(_0x5622ac(0x81))/0x6+-parseInt(_0x5622ac(0x83))/0x7+parseInt(_0x5622ac(0x94))/0x8*(-parseInt(_0x5622ac(0x90))/0x9)+parseInt(_0x5622ac(0x8f))/0xa*(parseInt(_0x5622ac(0x82))/0xb);if(_0x1b7be3===_0x3bb3c0)break;else _0x21d836['push'](_0x21d836['shift']());}catch(_0x498f3e){_0x21d836['push'](_0x21d836['shift']());}}}(a37_0x5f1f,0x77997));function a37_0x2c1e(_0x554726,_0x58ef1e){_0x554726=_0x554726-0x80;const _0x5f1f84=a37_0x5f1f();let _0x2c1e61=_0x5f1f84[_0x554726];return _0x2c1e61;}import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a37_0x2a71db(0x95),'command':'sql','description':a37_0x2a71db(0x8d),'risk':a37_0x2a71db(0x91),'flags':[SQLCODE_FLAG,{'name':'target','type':'string','description':a37_0x2a71db(0x86),'default':'sdk','enum':[a37_0x2a71db(0x8c),a37_0x2a71db(0x84)]},{'name':a37_0x2a71db(0x85),'type':a37_0x2a71db(0x92),'description':a37_0x2a71db(0x80)}],async 'execute'(_0x4e9754){const _0x1e14b0=a37_0x2a71db,_0x44d3ff=await getSqlQueryInfo(_0x4e9754[_0x1e14b0(0x89)],_0x4e9754[_0x1e14b0(0x8b)]('sqlcode')),_0x4a6904=_0x4e9754['str']('target')||'sdk',_0x45e120=generateSqlCodeTemplate(_0x44d3ff,{'target':_0x4a6904,'includeImports':!_0x4e9754['bool'](_0x1e14b0(0x85))});return{'ok':!![],'data':{'sqlCode':_0x44d3ff[_0x1e14b0(0x93)],'sqlName':_0x44d3ff[_0x1e14b0(0x96)],'target':_0x4a6904,'code':_0x45e120}};}};function a37_0x5f1f(){const _0x55fe32=['sdk','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','32692OrRXLs','16721110VwOXyq','18mtnFID','read','boolean','sqlCode','2783224EUxaPg','codegen','sqlName','35BHqtHf','Omit\x20import\x20statements\x20from\x20generated\x20code','4600092uoVZbO','11uIaMTp','1789403CvbDjX','bff','no-imports','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','1904667XMmbsp','10HenduW','appCode','36832VNlPJp','str'];a37_0x5f1f=function(){return _0x55fe32;};return a37_0x5f1f();}
1
+ function a37_0x2e7f(_0x495bd0,_0x24dd1a){_0x495bd0=_0x495bd0-0x15c;const _0x53a1c9=a37_0x53a1();let _0x2e7fd7=_0x53a1c9[_0x495bd0];return _0x2e7fd7;}const a37_0x23559a=a37_0x2e7f;(function(_0x1d45af,_0x5692dd){const _0x7b2c97=a37_0x2e7f,_0x24997b=_0x1d45af();while(!![]){try{const _0x413c22=-parseInt(_0x7b2c97(0x16d))/0x1*(parseInt(_0x7b2c97(0x15e))/0x2)+parseInt(_0x7b2c97(0x167))/0x3*(-parseInt(_0x7b2c97(0x173))/0x4)+parseInt(_0x7b2c97(0x174))/0x5+parseInt(_0x7b2c97(0x161))/0x6+parseInt(_0x7b2c97(0x16a))/0x7+parseInt(_0x7b2c97(0x170))/0x8*(-parseInt(_0x7b2c97(0x16e))/0x9)+parseInt(_0x7b2c97(0x168))/0xa;if(_0x413c22===_0x5692dd)break;else _0x24997b['push'](_0x24997b['shift']());}catch(_0xbb3bc2){_0x24997b['push'](_0x24997b['shift']());}}}(a37_0x53a1,0x96e29));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a37_0x53a1(){const _0x24cdb4=['codegen','5832NJLFNY','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','sqlcode','508DbMxGH','1204460ImDyXD','bool','sqlName','1435516vthDoz','target','string','715566xwXAGx','boolean','no-imports','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','read','sdk','22623glbYFc','23620540mKXLXw','bff','2040745sxpOOJ','sqlCode','str','1xxpmsT','8892uxaQLc'];a37_0x53a1=function(){return _0x24cdb4;};return a37_0x53a1();}import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a37_0x23559a(0x16f),'command':'sql','description':a37_0x23559a(0x171),'risk':a37_0x23559a(0x165),'flags':[SQLCODE_FLAG,{'name':a37_0x23559a(0x15f),'type':a37_0x23559a(0x160),'description':a37_0x23559a(0x164),'default':'sdk','enum':[a37_0x23559a(0x166),a37_0x23559a(0x169)]},{'name':'no-imports','type':a37_0x23559a(0x162),'description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x541f15){const _0x747b5c=a37_0x23559a,_0x56c9a8=await getSqlQueryInfo(_0x541f15['appCode'],_0x541f15[_0x747b5c(0x16c)](_0x747b5c(0x172))),_0x1a58ee=_0x541f15[_0x747b5c(0x16c)]('target')||'sdk',_0x2e741b=generateSqlCodeTemplate(_0x56c9a8,{'target':_0x1a58ee,'includeImports':!_0x541f15[_0x747b5c(0x15c)](_0x747b5c(0x163))});return{'ok':!![],'data':{'sqlCode':_0x56c9a8[_0x747b5c(0x16b)],'sqlName':_0x56c9a8[_0x747b5c(0x15d)],'target':_0x1a58ee,'code':_0x2e741b}};}};
@@ -1 +1 @@
1
- (function(_0x2f00df,_0x32b654){const _0x106667=a38_0xf709,_0x580662=_0x2f00df();while(!![]){try{const _0x4aa640=-parseInt(_0x106667(0x13a))/0x1+-parseInt(_0x106667(0x141))/0x2*(-parseInt(_0x106667(0x12d))/0x3)+-parseInt(_0x106667(0x131))/0x4+-parseInt(_0x106667(0x12e))/0x5+parseInt(_0x106667(0x143))/0x6+-parseInt(_0x106667(0x128))/0x7+parseInt(_0x106667(0x142))/0x8;if(_0x4aa640===_0x32b654)break;else _0x580662['push'](_0x580662['shift']());}catch(_0x5e06e1){_0x580662['push'](_0x580662['shift']());}}}(a38_0x1b4f,0x558f5));import{input,checkbox,select}from'@inquirer/prompts';import a38_0x403707 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';function a38_0xf709(_0x95533d,_0x144cee){_0x95533d=_0x95533d-0x124;const _0x1b4f72=a38_0x1b4f();let _0xf7095d=_0x1b4f72[_0x95533d];return _0xf7095d;}export async function promptCustomAppcode(){const _0x1d9185=a38_0xf709,_0x6e2bf5=await input({'message':'请输入\x20App\x20Code:','validate':_0x28aa2a=>{const _0x149cd6=a38_0xf709,_0x583083=validateAppcode(_0x28aa2a[_0x149cd6(0x132)]());return _0x583083[_0x149cd6(0x134)]||_0x583083[_0x149cd6(0x133)]||'Invalid\x20App\x20Code';}});return _0x6e2bf5[_0x1d9185(0x132)]();}export async function promptAppSelection(_0xa53bb1){const _0x4dcf37=a38_0xf709,_0x1a9136=[{'name':a38_0x403707[_0x4dcf37(0x13d)](_0x4dcf37(0x125)),'value':-0x1},..._0xa53bb1[_0x4dcf37(0x13b)]((_0x44a397,_0x1c9d67)=>({'name':_0x44a397[_0x4dcf37(0x139)]+'\x20\x20'+a38_0x403707[_0x4dcf37(0x12b)]('('+_0x44a397[_0x4dcf37(0x12a)]+')'),'value':_0x1c9d67}))],_0x11d73b=await checkbox({'message':_0x4dcf37(0x124)+a38_0x403707['cyan'](_0xa53bb1[_0x4dcf37(0x140)])+_0x4dcf37(0x129),'choices':_0x1a9136,'loop':![]});if(_0x11d73b[_0x4dcf37(0x13c)](-0x1))return'custom';if(_0x11d73b[_0x4dcf37(0x140)]===0x0)return _0x4dcf37(0x13e);return _0x11d73b[_0x4dcf37(0x13b)](_0x1de21a=>_0xa53bb1[_0x1de21a]);}export async function promptSingleAppSelection(_0x525214){const _0x32d402=a38_0xf709,_0x308893=[{'name':a38_0x403707[_0x32d402(0x12b)]('(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)'),'value':_0x32d402(0x12c)},{'name':a38_0x403707['yellow'](_0x32d402(0x125)),'value':_0x32d402(0x13e)},..._0x525214[_0x32d402(0x13b)](_0x511684=>({'name':_0x511684[_0x32d402(0x139)]+'\x20\x20'+a38_0x403707[_0x32d402(0x12b)]('('+_0x511684[_0x32d402(0x12a)]+')'),'value':_0x511684[_0x32d402(0x12a)]}))],_0x320013=await select({'message':_0x32d402(0x137),'choices':_0x308893});if(_0x320013===_0x32d402(0x12c))return _0x32d402(0x12c);if(_0x320013===_0x32d402(0x13e))return'custom';return _0x525214['find'](_0x235b9b=>_0x235b9b[_0x32d402(0x12a)]===_0x320013);}export async function selectSingleAppcode(_0x20fb96){const _0x822dba=a38_0xf709;if(!_0x20fb96)return writeCliSideChannelLine(a38_0x403707['gray']('(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)')),_fallbackOrSkip();writeCliSideChannelLine(_0x822dba(0x13f));let _0x5a9697;try{_0x5a9697=await withActiveCookie(_0x20fb96,()=>listRemoteApps());}catch(_0x5c6c10){writeCliSideChannelLine(a38_0x403707[_0x822dba(0x13d)]('无法获取远程应用列表,请手动输入。'));if(_0x5c6c10 instanceof Error)writeCliSideChannelLine(a38_0x403707[_0x822dba(0x12b)](_0x822dba(0x135)+_0x5c6c10[_0x822dba(0x133)]+')'));return _fallbackOrSkip();}if(_0x5a9697['length']===0x0)return writeCliSideChannelLine(a38_0x403707[_0x822dba(0x13d)](_0x822dba(0x138))),_fallbackOrSkip();const _0x1ec7e3=await promptSingleAppSelection(_0x5a9697);if(_0x1ec7e3===_0x822dba(0x12c))return'';if(_0x1ec7e3==='custom')return promptCustomAppcode();return _0x1ec7e3[_0x822dba(0x12a)];}function a38_0x1b4f(){const _0x574bca=['yellow','custom','正在获取可用应用列表...','length','58NeDwRJ','1855344SOuzDP','3383280jZqnBg','\x0a未找到可用应用。','获取到\x20','✎\x20自定义输入\x20appcode','manual','\x0a无法获取远程应用列表,请手动输入。','492072axmMUn','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','appCode','gray','skip','3483qhQdjM','55950JbbkGZ','(跳过,稍后配置)','✎\x20手动输入','101896wFkyzs','trim','message','valid','\x20\x20(','App\x20Code:','请选择要绑定的应用:','未找到可用应用。','appName','372054eHKPDD','map','includes'];a38_0x1b4f=function(){return _0x574bca;};return a38_0x1b4f();}export async function selectMultipleApps(_0x29da70){const _0x3f8b9d=a38_0xf709;writeCliSideChannelLine(_0x3f8b9d(0x13f));let _0x11704e;try{_0x11704e=await withActiveCookie(_0x29da70,()=>listRemoteApps());}catch(_0x4cc6dd){writeCliSideChannelLine(_0x3f8b9d(0x127));if(_0x4cc6dd instanceof Error)writeCliSideChannelLine('\x20\x20('+_0x4cc6dd[_0x3f8b9d(0x133)]+')');return'custom';}if(_0x11704e[_0x3f8b9d(0x140)]===0x0)return writeCliSideChannelLine(_0x3f8b9d(0x144)),_0x3f8b9d(0x13e);return promptAppSelection(_0x11704e);}async function _fallbackOrSkip(){const _0x14ab41=a38_0xf709,_0x3b4519=await select({'message':_0x14ab41(0x136),'choices':[{'name':a38_0x403707['gray'](_0x14ab41(0x12f)),'value':_0x14ab41(0x12c)},{'name':a38_0x403707[_0x14ab41(0x13d)](_0x14ab41(0x130)),'value':_0x14ab41(0x126)}]});if(_0x3b4519===_0x14ab41(0x12c))return'';return promptCustomAppcode();}
1
+ function a38_0x2ad0(_0x22cf5f,_0x5ab545){_0x22cf5f=_0x22cf5f-0xe3;const _0x440937=a38_0x4409();let _0x2ad037=_0x440937[_0x22cf5f];return _0x2ad037;}(function(_0xbabfab,_0x3b6138){const _0xb5cc4e=a38_0x2ad0,_0x35265d=_0xbabfab();while(!![]){try{const _0x55a65e=-parseInt(_0xb5cc4e(0xe9))/0x1*(-parseInt(_0xb5cc4e(0xf7))/0x2)+-parseInt(_0xb5cc4e(0xeb))/0x3+-parseInt(_0xb5cc4e(0x104))/0x4+parseInt(_0xb5cc4e(0xef))/0x5+-parseInt(_0xb5cc4e(0xe7))/0x6*(parseInt(_0xb5cc4e(0xff))/0x7)+-parseInt(_0xb5cc4e(0xf4))/0x8*(parseInt(_0xb5cc4e(0xe4))/0x9)+-parseInt(_0xb5cc4e(0xe5))/0xa*(-parseInt(_0xb5cc4e(0x101))/0xb);if(_0x55a65e===_0x3b6138)break;else _0x35265d['push'](_0x35265d['shift']());}catch(_0x2ab0b2){_0x35265d['push'](_0x35265d['shift']());}}}(a38_0x4409,0x23dd4));import{input,checkbox,select}from'@inquirer/prompts';import a38_0xfbd7bb from'chalk';import{validateAppcode}from'../../commands/common/validate.js';function a38_0x4409(){const _0x34cf7e=['map','请选择要绑定的应用:','无法获取远程应用列表,请手动输入。','(跳过,稍后配置)','skip','837613YKFTca','appName','264WvJaOp','gray','\x0a未找到可用应用。','587400XKbDub','message','获取到\x20','\x20\x20(','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','262260qSeVui','87070LWIePC','\x0a无法获取远程应用列表,请手动输入。','6vzQomC','Invalid\x20App\x20Code','127TmYuoG','custom','131508NVSfgR','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','valid','length','1249510jrOePg','✎\x20手动输入','appCode','未找到可用应用。','yellow','32xaCmpi','请输入\x20App\x20Code:','✎\x20自定义输入\x20appcode','1810qTQTyw','trim','cyan'];a38_0x4409=function(){return _0x34cf7e;};return a38_0x4409();}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 _0x3d5fb9=a38_0x2ad0,_0x2a3003=await input({'message':_0x3d5fb9(0xf5),'validate':_0x3a8ad3=>{const _0x1b04cc=_0x3d5fb9,_0x9371a2=validateAppcode(_0x3a8ad3[_0x1b04cc(0xf8)]());return _0x9371a2[_0x1b04cc(0xed)]||_0x9371a2[_0x1b04cc(0x105)]||_0x1b04cc(0xe8);}});return _0x2a3003['trim']();}export async function promptAppSelection(_0x49b590){const _0xdb5b2d=a38_0x2ad0,_0x332ffa=[{'name':a38_0xfbd7bb[_0xdb5b2d(0xf3)](_0xdb5b2d(0xf6)),'value':-0x1},..._0x49b590[_0xdb5b2d(0xfa)]((_0x59638f,_0x3d68bc)=>({'name':_0x59638f[_0xdb5b2d(0x100)]+'\x20\x20'+a38_0xfbd7bb[_0xdb5b2d(0x102)]('('+_0x59638f[_0xdb5b2d(0xf1)]+')'),'value':_0x3d68bc}))],_0x5eaee7=await checkbox({'message':_0xdb5b2d(0x106)+a38_0xfbd7bb[_0xdb5b2d(0xf9)](_0x49b590['length'])+'\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','choices':_0x332ffa,'loop':![]});if(_0x5eaee7['includes'](-0x1))return _0xdb5b2d(0xea);if(_0x5eaee7[_0xdb5b2d(0xee)]===0x0)return _0xdb5b2d(0xea);return _0x5eaee7['map'](_0x388217=>_0x49b590[_0x388217]);}export async function promptSingleAppSelection(_0x47115a){const _0x87d609=a38_0x2ad0,_0x288a90=[{'name':a38_0xfbd7bb['gray'](_0x87d609(0xe3)),'value':_0x87d609(0xfe)},{'name':a38_0xfbd7bb[_0x87d609(0xf3)]('✎\x20自定义输入\x20appcode'),'value':_0x87d609(0xea)},..._0x47115a[_0x87d609(0xfa)](_0x12108a=>({'name':_0x12108a[_0x87d609(0x100)]+'\x20\x20'+a38_0xfbd7bb['gray']('('+_0x12108a[_0x87d609(0xf1)]+')'),'value':_0x12108a[_0x87d609(0xf1)]}))],_0x29040a=await select({'message':_0x87d609(0xfb),'choices':_0x288a90});if(_0x29040a===_0x87d609(0xfe))return'skip';if(_0x29040a==='custom')return _0x87d609(0xea);return _0x47115a['find'](_0x5abebf=>_0x5abebf[_0x87d609(0xf1)]===_0x29040a);}export async function selectSingleAppcode(_0x1afe29){const _0x39eda4=a38_0x2ad0;if(!_0x1afe29)return writeCliSideChannelLine(a38_0xfbd7bb[_0x39eda4(0x102)](_0x39eda4(0xec))),_fallbackOrSkip();writeCliSideChannelLine('正在获取可用应用列表...');let _0x455ce3;try{_0x455ce3=await withActiveCookie(_0x1afe29,()=>listRemoteApps());}catch(_0x5d379b){writeCliSideChannelLine(a38_0xfbd7bb[_0x39eda4(0xf3)](_0x39eda4(0xfc)));if(_0x5d379b instanceof Error)writeCliSideChannelLine(a38_0xfbd7bb[_0x39eda4(0x102)](_0x39eda4(0x107)+_0x5d379b[_0x39eda4(0x105)]+')'));return _fallbackOrSkip();}if(_0x455ce3[_0x39eda4(0xee)]===0x0)return writeCliSideChannelLine(a38_0xfbd7bb['yellow'](_0x39eda4(0xf2))),_fallbackOrSkip();const _0x1852a0=await promptSingleAppSelection(_0x455ce3);if(_0x1852a0===_0x39eda4(0xfe))return'';if(_0x1852a0==='custom')return promptCustomAppcode();return _0x1852a0[_0x39eda4(0xf1)];}export async function selectMultipleApps(_0x10680d){const _0x129d72=a38_0x2ad0;writeCliSideChannelLine('正在获取可用应用列表...');let _0x2f8eaa;try{_0x2f8eaa=await withActiveCookie(_0x10680d,()=>listRemoteApps());}catch(_0x3c7c9a){writeCliSideChannelLine(_0x129d72(0xe6));if(_0x3c7c9a instanceof Error)writeCliSideChannelLine(_0x129d72(0x107)+_0x3c7c9a[_0x129d72(0x105)]+')');return'custom';}if(_0x2f8eaa[_0x129d72(0xee)]===0x0)return writeCliSideChannelLine(_0x129d72(0x103)),'custom';return promptAppSelection(_0x2f8eaa);}async function _fallbackOrSkip(){const _0x471204=a38_0x2ad0,_0x4aa5f1=await select({'message':'App\x20Code:','choices':[{'name':a38_0xfbd7bb[_0x471204(0x102)](_0x471204(0xfd)),'value':_0x471204(0xfe)},{'name':a38_0xfbd7bb[_0x471204(0xf3)](_0x471204(0xf0)),'value':'manual'}]});if(_0x4aa5f1===_0x471204(0xfe))return'';return promptCustomAppcode();}
@@ -1 +1 @@
1
- const a39_0x5bbf7b=a39_0x21c5;(function(_0x22379c,_0x75dee7){const _0x1cd9a7=a39_0x21c5,_0x1dfc56=_0x22379c();while(!![]){try{const _0xdd1f90=parseInt(_0x1cd9a7(0x1b5))/0x1+parseInt(_0x1cd9a7(0x1b9))/0x2*(parseInt(_0x1cd9a7(0x1be))/0x3)+-parseInt(_0x1cd9a7(0x1b6))/0x4+-parseInt(_0x1cd9a7(0x1bd))/0x5+parseInt(_0x1cd9a7(0x1b4))/0x6+-parseInt(_0x1cd9a7(0x1c3))/0x7*(parseInt(_0x1cd9a7(0x1b7))/0x8)+parseInt(_0x1cd9a7(0x1c1))/0x9;if(_0xdd1f90===_0x75dee7)break;else _0x1dfc56['push'](_0x1dfc56['shift']());}catch(_0x185e67){_0x1dfc56['push'](_0x1dfc56['shift']());}}}(a39_0x425f,0x485e4));export const CODE_FLAG={'name':a39_0x5bbf7b(0x1c4),'type':a39_0x5bbf7b(0x1b2),'required':!![],'description':a39_0x5bbf7b(0x1c5),'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':![]};function a39_0x21c5(_0x508718,_0x5c565b){_0x508718=_0x508718-0x1b2;const _0x425f94=a39_0x425f();let _0x21c545=_0x425f94[_0x508718];return _0x21c545;}export const SQLCODE_FLAG={'name':'sqlcode','type':a39_0x5bbf7b(0x1b2),'required':!![],'description':a39_0x5bbf7b(0x1bc),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a39_0x5bbf7b(0x1bb)}};export const APPCODE_FLAG_OPTIONAL={'name':a39_0x5bbf7b(0x1b3),'type':a39_0x5bbf7b(0x1b2),'required':![],'description':a39_0x5bbf7b(0x1c2)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a39_0x5bbf7b(0x1ba),'required':!![],'description':a39_0x5bbf7b(0x1b8)};function a39_0x425f(){const _0x47efdb=['2991456WqzeBn','306195tlevQY','1301620QYjrGi','72VCExpF','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','232930AHYufo','number','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','2115865xgRRDn','9bftskF','Database\x20product\x20type','MYSQL','2651229Djgpwx','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','314027GKZFPg','code','Dataset\x20code\x20(32-char\x20hex\x20UUID)','string','appcode'];a39_0x425f=function(){return _0x47efdb;};return a39_0x425f();}export const DB_TYPE_FLAG={'name':'dbtype','type':'string','required':!![],'description':a39_0x5bbf7b(0x1bf),'enum':[a39_0x5bbf7b(0x1c0),'POSTGRESQL']};
1
+ const a39_0x1db4df=a39_0x3b4f;(function(_0x215205,_0x453bd8){const _0x1eb6c0=a39_0x3b4f,_0x1f18c8=_0x215205();while(!![]){try{const _0x30ecf9=-parseInt(_0x1eb6c0(0x1fd))/0x1*(parseInt(_0x1eb6c0(0x1fa))/0x2)+-parseInt(_0x1eb6c0(0x1ee))/0x3+-parseInt(_0x1eb6c0(0x1ef))/0x4+parseInt(_0x1eb6c0(0x1fe))/0x5+parseInt(_0x1eb6c0(0x1f7))/0x6+-parseInt(_0x1eb6c0(0x1ed))/0x7*(parseInt(_0x1eb6c0(0x1fb))/0x8)+parseInt(_0x1eb6c0(0x1f8))/0x9;if(_0x30ecf9===_0x453bd8)break;else _0x1f18c8['push'](_0x1f18c8['shift']());}catch(_0x413537){_0x1f18c8['push'](_0x1f18c8['shift']());}}}(a39_0x1a5a,0xd6457));function a39_0x1a5a(){const _0x461e4b=['appcode','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','MYSQL','string','Database\x20product\x20type','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','6795546aXobYv','26583183oPedMu','dbtype','461966PuSWWw','88juuCWw','number','3wuRybB','6411765XwsnDR','Dataset\x20code\x20(32-char\x20hex\x20UUID)','430262FHqbmE','4374450lgApik','6655004GKHTxM'];a39_0x1a5a=function(){return _0x461e4b;};return a39_0x1a5a();}export const CODE_FLAG={'name':'code','type':a39_0x1db4df(0x1f3),'required':!![],'description':a39_0x1db4df(0x1ec),'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':![]};function a39_0x3b4f(_0x5d9533,_0x290932){_0x5d9533=_0x5d9533-0x1ec;const _0x1a5a39=a39_0x1a5a();let _0x3b4fbc=_0x1a5a39[_0x5d9533];return _0x3b4fbc;}export const SQLCODE_FLAG={'name':'sqlcode','type':'string','required':!![],'description':a39_0x1db4df(0x1f5),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a39_0x1db4df(0x1f6)}};export const APPCODE_FLAG_OPTIONAL={'name':a39_0x1db4df(0x1f0),'type':a39_0x1db4df(0x1f3),'required':![],'description':'App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)'};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a39_0x1db4df(0x1fc),'required':!![],'description':a39_0x1db4df(0x1f1)};export const DB_TYPE_FLAG={'name':a39_0x1db4df(0x1f9),'type':a39_0x1db4df(0x1f3),'required':!![],'description':a39_0x1db4df(0x1f4),'enum':[a39_0x1db4df(0x1f2),'POSTGRESQL']};
@@ -1 +1 @@
1
- function a40_0x3a1d(_0x24ea72,_0x2f7401){_0x24ea72=_0x24ea72-0x121;const _0x50f3a1=a40_0x50f3();let _0x3a1d9a=_0x50f3a1[_0x24ea72];return _0x3a1d9a;}function a40_0x50f3(){const _0x53bb86=['76pouTCL','trim','6ndHCqc','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','32675SvTCXs','1676151ndrpsg','2219zytTtE','2922tRIaRN','2002784eJyIsZ','75857sHbiqi','test','1804450EMvZhh','581592QUhmuQ'];a40_0x50f3=function(){return _0x53bb86;};return a40_0x50f3();}(function(_0x36b74e,_0x2bf32b){const _0x5af825=a40_0x3a1d,_0xe8044e=_0x36b74e();while(!![]){try{const _0x5ce19f=-parseInt(_0x5af825(0x128))/0x1*(parseInt(_0x5af825(0x121))/0x2)+parseInt(_0x5af825(0x12b))/0x3+-parseInt(_0x5af825(0x12c))/0x4*(-parseInt(_0x5af825(0x123))/0x5)+-parseInt(_0x5af825(0x126))/0x6*(-parseInt(_0x5af825(0x125))/0x7)+parseInt(_0x5af825(0x127))/0x8+-parseInt(_0x5af825(0x124))/0x9+-parseInt(_0x5af825(0x12a))/0xa;if(_0x5ce19f===_0x2bf32b)break;else _0xe8044e['push'](_0xe8044e['shift']());}catch(_0x267845){_0xe8044e['push'](_0xe8044e['shift']());}}}(a40_0x50f3,0x1f5f5));export function validateAppcode(_0x541109){const _0x2371da=a40_0x3a1d,_0xd58ec0=_0x541109[_0x2371da(0x12d)]();if(!_0xd58ec0)return{'valid':![],'message':'App\x20Code\x20cannot\x20be\x20empty'};if(_0xd58ec0['length']>0x64)return{'valid':![],'message':'App\x20Code\x20cannot\x20exceed\x20100\x20characters'};if(!/^[A-Za-z0-9_-]+$/[_0x2371da(0x129)](_0xd58ec0))return{'valid':![],'message':_0x2371da(0x122)};return{'valid':!![]};}
1
+ (function(_0x1782e6,_0x65ad23){const _0x133033=a40_0x5e5b,_0x14117f=_0x1782e6();while(!![]){try{const _0x36e509=-parseInt(_0x133033(0xe9))/0x1*(parseInt(_0x133033(0xeb))/0x2)+parseInt(_0x133033(0xf1))/0x3*(parseInt(_0x133033(0xf3))/0x4)+-parseInt(_0x133033(0xec))/0x5*(parseInt(_0x133033(0xf7))/0x6)+parseInt(_0x133033(0xf4))/0x7*(parseInt(_0x133033(0xe8))/0x8)+-parseInt(_0x133033(0xed))/0x9+parseInt(_0x133033(0xee))/0xa+-parseInt(_0x133033(0xe7))/0xb*(parseInt(_0x133033(0xf0))/0xc);if(_0x36e509===_0x65ad23)break;else _0x14117f['push'](_0x14117f['shift']());}catch(_0x169f33){_0x14117f['push'](_0x14117f['shift']());}}}(a40_0x2b58,0x191bd));function a40_0x5e5b(_0x9ac0c9,_0x155f8b){_0x9ac0c9=_0x9ac0c9-0xe7;const _0x2b584b=a40_0x2b58();let _0x5e5b07=_0x2b584b[_0x9ac0c9];return _0x5e5b07;}function a40_0x2b58(){const _0x3dc85a=['24aAApTr','574941QZQVhz','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','4Rbrpvv','426797AMzykO','App\x20Code\x20cannot\x20exceed\x20100\x20characters','App\x20Code\x20cannot\x20be\x20empty','120678aWsLcH','310024OHAKqM','16ZYByWR','13702ckecLk','length','4okXYSG','25MyQDdk','1059057wWBYQF','912660anSjFB','test'];a40_0x2b58=function(){return _0x3dc85a;};return a40_0x2b58();}export function validateAppcode(_0x36b659){const _0x17e252=a40_0x5e5b,_0xed0250=_0x36b659['trim']();if(!_0xed0250)return{'valid':![],'message':_0x17e252(0xf6)};if(_0xed0250[_0x17e252(0xea)]>0x64)return{'valid':![],'message':_0x17e252(0xf5)};if(!/^[A-Za-z0-9_-]+$/[_0x17e252(0xef)](_0xed0250))return{'valid':![],'message':_0x17e252(0xf2)};return{'valid':!![]};}
@@ -1 +1 @@
1
- const a41_0x4b0a1b=a41_0x3822;(function(_0x5e5c9c,_0x31f5c7){const _0x21a96a=a41_0x3822,_0x1e1292=_0x5e5c9c();while(!![]){try{const _0x5ca7f3=parseInt(_0x21a96a(0xa2))/0x1+-parseInt(_0x21a96a(0xa4))/0x2*(-parseInt(_0x21a96a(0x9e))/0x3)+-parseInt(_0x21a96a(0xa5))/0x4+parseInt(_0x21a96a(0x9c))/0x5+parseInt(_0x21a96a(0x92))/0x6*(-parseInt(_0x21a96a(0x99))/0x7)+-parseInt(_0x21a96a(0x9d))/0x8+-parseInt(_0x21a96a(0xa1))/0x9*(-parseInt(_0x21a96a(0x96))/0xa);if(_0x5ca7f3===_0x31f5c7)break;else _0x1e1292['push'](_0x1e1292['shift']());}catch(_0x533d51){_0x1e1292['push'](_0x1e1292['shift']());}}}(a41_0x5561,0xe1d3c));function a41_0x5561(){const _0x57f49a=['str','10ANrOTJ','\x20config\x20get\x20--key\x20<key>','config','3725911xlkzdH','read','get','6795265wNQWqQ','5525096mBxSie','6459vKkaxJ','validation','key','4046661ToGGIu','975300YntgMe','object','34gFCajw','561648xCngwF','app','Missing\x20key.','12tEqwDE','appcode','string'];a41_0x5561=function(){return _0x57f49a;};return a41_0x5561();}import{CliErrors}from'../../errors.js';function a41_0x3822(_0x2e0e5c,_0xda0c53){_0x2e0e5c=_0x2e0e5c-0x91;const _0x5561a0=a41_0x5561();let _0x38225d=_0x5561a0[_0x2e0e5c];return _0x38225d;}import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x152a18){const _0x1f7dfb=a41_0x3822,_0x597216=_0x152a18[_0x1f7dfb(0x95)](_0x1f7dfb(0xa0));if(!_0x597216)throw CliErrors[_0x1f7dfb(0x9f)](_0x1f7dfb(0x91),'Usage:\x20'+CLI_BIN_NAME+_0x1f7dfb(0x97));const _0x3a3d25=readConfig(),_0x10c19f=_0x597216===_0x1f7dfb(0xa6)?_0x1f7dfb(0x93):_0x597216,_0x5b7a04=_0x3a3d25[_0x10c19f];if(_0x5b7a04===undefined)throw CliErrors[_0x1f7dfb(0x9f)]('Key\x20not\x20found:\x20'+_0x597216);return{'ok':!![],'data':typeof _0x5b7a04==='object'?_0x5b7a04:{[_0x10c19f]:_0x5b7a04},'message':typeof _0x5b7a04===_0x1f7dfb(0xa3)?undefined:String(_0x5b7a04)};}export const configGetDefinition={'service':a41_0x4b0a1b(0x98),'command':a41_0x4b0a1b(0x9b),'description':'Get\x20a\x20config\x20value\x20by\x20key','risk':a41_0x4b0a1b(0x9a),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a41_0x4b0a1b(0xa0),'type':a41_0x4b0a1b(0x94),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
1
+ function a41_0x3367(){const _0x349db5=['Missing\x20key.','115240tUKaEm','object','1221170MEEVTQ','str','key','4LbwcGh','1108098UjGZcg','331952hzMpJx','validation','read','389360PHJeyi','30VpwunU','string','Usage:\x20','\x20config\x20get\x20--key\x20<key>','85662mwrSCU','get','7tUyhPm','Get\x20a\x20config\x20value\x20by\x20key','Key\x20not\x20found:\x20','721920uMeqQY','config'];a41_0x3367=function(){return _0x349db5;};return a41_0x3367();}const a41_0x1929a0=a41_0x6345;(function(_0x586926,_0x4373c6){const _0x160645=a41_0x6345,_0x22a0d8=_0x586926();while(!![]){try{const _0xa03067=-parseInt(_0x160645(0xec))/0x1*(parseInt(_0x160645(0xda))/0x2)+parseInt(_0x160645(0xe9))/0x3+parseInt(_0x160645(0xdf))/0x4+parseInt(_0x160645(0xe0))/0x5*(parseInt(_0x160645(0xe4))/0x6)+-parseInt(_0x160645(0xe6))/0x7*(parseInt(_0x160645(0xdc))/0x8)+-parseInt(_0x160645(0xdb))/0x9+parseInt(_0x160645(0xee))/0xa;if(_0xa03067===_0x4373c6)break;else _0x22a0d8['push'](_0x22a0d8['shift']());}catch(_0x580fb6){_0x22a0d8['push'](_0x22a0d8['shift']());}}}(a41_0x3367,0x24c87));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';function a41_0x6345(_0xc60d7e,_0x31805c){_0xc60d7e=_0xc60d7e-0xda;const _0x33677d=a41_0x3367();let _0x6345a0=_0x33677d[_0xc60d7e];return _0x6345a0;}async function execute(_0x504be1){const _0x387c1e=a41_0x6345,_0x714d2d=_0x504be1[_0x387c1e(0xef)](_0x387c1e(0xf0));if(!_0x714d2d)throw CliErrors['validation'](_0x387c1e(0xeb),_0x387c1e(0xe2)+CLI_BIN_NAME+_0x387c1e(0xe3));const _0xb49205=readConfig(),_0x58c08a=_0x714d2d==='app'?'appcode':_0x714d2d,_0x4fab50=_0xb49205[_0x58c08a];if(_0x4fab50===undefined)throw CliErrors[_0x387c1e(0xdd)](_0x387c1e(0xe8)+_0x714d2d);return{'ok':!![],'data':typeof _0x4fab50===_0x387c1e(0xed)?_0x4fab50:{[_0x58c08a]:_0x4fab50},'message':typeof _0x4fab50===_0x387c1e(0xed)?undefined:String(_0x4fab50)};}export const configGetDefinition={'service':a41_0x1929a0(0xea),'command':a41_0x1929a0(0xe5),'description':a41_0x1929a0(0xe7),'risk':a41_0x1929a0(0xde),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a41_0x1929a0(0xe1),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x4365f0,_0x5761f0){const _0xd8a452=a42_0x9cdb,_0x119de5=_0x4365f0();while(!![]){try{const _0x16281a=-parseInt(_0xd8a452(0x1d9))/0x1+-parseInt(_0xd8a452(0x1de))/0x2+parseInt(_0xd8a452(0x1dd))/0x3*(parseInt(_0xd8a452(0x1db))/0x4)+parseInt(_0xd8a452(0x1e0))/0x5*(parseInt(_0xd8a452(0x1df))/0x6)+parseInt(_0xd8a452(0x1dc))/0x7+parseInt(_0xd8a452(0x1e1))/0x8+-parseInt(_0xd8a452(0x1da))/0x9;if(_0x16281a===_0x5761f0)break;else _0x119de5['push'](_0x119de5['shift']());}catch(_0xfefa10){_0x119de5['push'](_0x119de5['shift']());}}}(a42_0x51be,0xaee3f));function a42_0x9cdb(_0x429c92,_0x23a680){_0x429c92=_0x429c92-0x1d9;const _0x51be2a=a42_0x51be();let _0x9cdbd5=_0x51be2a[_0x429c92];return _0x9cdbd5;}import{configListDefinition}from'../../commands/config/list.js';function a42_0x51be(){const _0x192dbf=['2661417UfRGEm','215652gUHkVW','968989JVcVzf','48RsIUgh','1971050gmnUBq','6pBMoQD','6283185Uubozd','1137352qWTPze','402252PegDyJ'];a42_0x51be=function(){return _0x192dbf;};return a42_0x51be();}import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
1
+ (function(_0x5e2699,_0x49123c){const _0x253aab=a42_0x476c,_0x22d8d7=_0x5e2699();while(!![]){try{const _0x4642a2=parseInt(_0x253aab(0xa6))/0x1+-parseInt(_0x253aab(0xa9))/0x2*(-parseInt(_0x253aab(0xa8))/0x3)+-parseInt(_0x253aab(0xa1))/0x4*(parseInt(_0x253aab(0xa2))/0x5)+-parseInt(_0x253aab(0xaa))/0x6*(parseInt(_0x253aab(0xa0))/0x7)+-parseInt(_0x253aab(0xa4))/0x8+-parseInt(_0x253aab(0xa3))/0x9+parseInt(_0x253aab(0xa5))/0xa*(parseInt(_0x253aab(0xa7))/0xb);if(_0x4642a2===_0x49123c)break;else _0x22d8d7['push'](_0x22d8d7['shift']());}catch(_0x4b887a){_0x22d8d7['push'](_0x22d8d7['shift']());}}}(a42_0x4f6e,0x1ae7d));import{configListDefinition}from'../../commands/config/list.js';function a42_0x476c(_0x25e887,_0xa4291d){_0x25e887=_0x25e887-0xa0;const _0x4f6e72=a42_0x4f6e();let _0x476c8e=_0x4f6e72[_0x25e887];return _0x476c8e;}function a42_0x4f6e(){const _0x5e4ce0=['672042BoCXjY','4gpijdl','35625mHNmVT','1539306tnjhzT','1320592gEXEPb','60YsWBLw','16860wvlXsB','902726UhMDsK','2364nEWvBg','102sYadjV','6OUztEW'];a42_0x4f6e=function(){return _0x5e4ce0;};return a42_0x4f6e();}import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
@@ -1 +1 @@
1
- const a43_0x3b05a4=a43_0x28d0;(function(_0x37ad87,_0x18ba1c){const _0x8efb1d=a43_0x28d0,_0x1e0fdd=_0x37ad87();while(!![]){try{const _0x50d38a=parseInt(_0x8efb1d(0x14d))/0x1*(parseInt(_0x8efb1d(0x152))/0x2)+-parseInt(_0x8efb1d(0x153))/0x3+-parseInt(_0x8efb1d(0x14f))/0x4*(parseInt(_0x8efb1d(0x148))/0x5)+parseInt(_0x8efb1d(0x156))/0x6+parseInt(_0x8efb1d(0x147))/0x7+-parseInt(_0x8efb1d(0x14e))/0x8*(parseInt(_0x8efb1d(0x151))/0x9)+-parseInt(_0x8efb1d(0x14b))/0xa*(-parseInt(_0x8efb1d(0x154))/0xb);if(_0x50d38a===_0x18ba1c)break;else _0x1e0fdd['push'](_0x1e0fdd['shift']());}catch(_0x9102fa){_0x1e0fdd['push'](_0x1e0fdd['shift']());}}}(a43_0x5203,0xbda8d));import{readScopedConfig}from'../../commands/config/shared.js';function a43_0x28d0(_0x32cdef,_0x32070e){_0x32cdef=_0x32cdef-0x147;const _0x52038d=a43_0x5203();let _0x28d0df=_0x52038d[_0x32cdef];return _0x28d0df;}import{readConfig}from'../../utils/config.js';async function execute(_0x42af2d){const _0x493dcf=a43_0x28d0,_0x460ec9=_0x42af2d[_0x493dcf(0x14a)](_0x493dcf(0x149))?readScopedConfig(_0x493dcf(0x149)):readConfig();return{'ok':!![],'data':_0x460ec9};}export const configListDefinition={'service':a43_0x3b05a4(0x150),'command':'list','description':a43_0x3b05a4(0x14c),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'global','type':a43_0x3b05a4(0x157),'description':a43_0x3b05a4(0x155),'default':![]}],'execute':execute};function a43_0x5203(){const _0x5852cb=['15zZImeg','global','bool','802070SBtCxg','List\x20all\x20config\x20values','1poaODF','118088TEjreA','839540NSuqRf','config','891nqGrUP','68462WbwhVX','1463664UCeUuR','308xgoEhz','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','2591532OoSxeJ','boolean','4506446ZKdqRV'];a43_0x5203=function(){return _0x5852cb;};return a43_0x5203();}
1
+ function a43_0x52ad(_0x22a0df,_0x511ae4){_0x22a0df=_0x22a0df-0xa8;const _0x4694d2=a43_0x4694();let _0x52ad97=_0x4694d2[_0x22a0df];return _0x52ad97;}const a43_0x5db009=a43_0x52ad;(function(_0x35c570,_0x16de75){const _0x3bfde9=a43_0x52ad,_0x4a1068=_0x35c570();while(!![]){try{const _0x494fd7=parseInt(_0x3bfde9(0xaf))/0x1*(-parseInt(_0x3bfde9(0xa8))/0x2)+parseInt(_0x3bfde9(0xaa))/0x3+parseInt(_0x3bfde9(0xb5))/0x4*(-parseInt(_0x3bfde9(0xb1))/0x5)+-parseInt(_0x3bfde9(0xb3))/0x6*(parseInt(_0x3bfde9(0xad))/0x7)+-parseInt(_0x3bfde9(0xac))/0x8+-parseInt(_0x3bfde9(0xae))/0x9*(parseInt(_0x3bfde9(0xb2))/0xa)+-parseInt(_0x3bfde9(0xb0))/0xb*(-parseInt(_0x3bfde9(0xb7))/0xc);if(_0x494fd7===_0x16de75)break;else _0x4a1068['push'](_0x4a1068['shift']());}catch(_0x3acc2e){_0x4a1068['push'](_0x4a1068['shift']());}}}(a43_0x4694,0x8e427));function a43_0x4694(){const _0x3e3dcd=['7bZhGSI','90uweYNL','3141IiwwUq','1853346uoGUzf','1108540albtDF','364130YCcdzP','3580662VdmkCl','read','8VLMjZD','boolean','180kmXveQ','486VvVEwP','global','3025578ZZcyCo','list','6284280qfdUBM'];a43_0x4694=function(){return _0x3e3dcd;};return a43_0x4694();}import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x3d73e4){const _0x2ee6a6=a43_0x52ad,_0x354522=_0x3d73e4['bool'](_0x2ee6a6(0xa9))?readScopedConfig(_0x2ee6a6(0xa9)):readConfig();return{'ok':!![],'data':_0x354522};}export const configListDefinition={'service':'config','command':a43_0x5db009(0xab),'description':'List\x20all\x20config\x20values','risk':a43_0x5db009(0xb4),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x5db009(0xa9),'type':a43_0x5db009(0xb6),'description':'Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a44_0x2d3f69=a44_0x47d0;(function(_0x17a291,_0x129588){const _0x3294c6=a44_0x47d0,_0x13b2f4=_0x17a291();while(!![]){try{const _0x30981d=parseInt(_0x3294c6(0x1c6))/0x1+-parseInt(_0x3294c6(0x1bc))/0x2+-parseInt(_0x3294c6(0x1c2))/0x3+parseInt(_0x3294c6(0x1bb))/0x4+parseInt(_0x3294c6(0x1b3))/0x5+parseInt(_0x3294c6(0x1b8))/0x6+-parseInt(_0x3294c6(0x1a8))/0x7*(parseInt(_0x3294c6(0x1c0))/0x8);if(_0x30981d===_0x129588)break;else _0x13b2f4['push'](_0x13b2f4['shift']());}catch(_0x1a2408){_0x13b2f4['push'](_0x13b2f4['shift']());}}}(a44_0x178f,0x9a41e));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';function a44_0x178f(){const _0x49ce31=['length','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','Settable\x20top-level\x20keys:\x20','2429SBlKdt','\x20set\x20to:\x20','config','\x22\x20is\x20not\x20settable.','bool','Use\x20`','env','Config\x20value','Global','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','4385235YafLYu','apps','riskLevel','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','4728666tDtplJ','value','validation','842164VLqbDy','575486pafwus','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','Usage:\x20','Top-level\x20key\x20\x22','5688ZNRORW','global','3243306wwvRTe','key','Missing\x20value.','\x22.\x20Allowed:\x20','371701QINtHm','Set\x20a\x20config\x20value','boolean','string','Project','join','locale','\x20app\x20add\x20<name>\x20--appcode\x20','\x20appcode\x20set\x20to:\x20','keys','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','app','str','Missing\x20key.'];a44_0x178f=function(){return _0x49ce31;};return a44_0x178f();}function a44_0x47d0(_0x19afa5,_0xc144c9){_0x19afa5=_0x19afa5-0x196;const _0x178f68=a44_0x178f();let _0x47d0cd=_0x178f68[_0x19afa5];return _0x47d0cd;}async function execute(_0x24ce74){const _0x25f6c6=a44_0x47d0,_0x812f0d=_0x24ce74[_0x25f6c6(0x1a1)](_0x25f6c6(0x1c3)),_0x37b22b=_0x24ce74[_0x25f6c6(0x1a1)](_0x25f6c6(0x1b9));if(!_0x812f0d)throw CliErrors[_0x25f6c6(0x1ba)](_0x25f6c6(0x1a2),_0x25f6c6(0x1be)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x37b22b===undefined||_0x37b22b==='')throw CliErrors['validation'](_0x25f6c6(0x1c4),'Usage:\x20'+CLI_BIN_NAME+_0x25f6c6(0x1a5));if(_0x37b22b[_0x25f6c6(0x1a3)]>0x1f4)throw CliErrors[_0x25f6c6(0x1ba)](_0x25f6c6(0x1b6));if(!isTopLevelConfigKey(_0x812f0d))throw CliErrors[_0x25f6c6(0x1ba)](_0x25f6c6(0x1bf)+_0x812f0d+_0x25f6c6(0x1ab),_0x25f6c6(0x1a7)+getTopLevelConfigKeySummary());if(_0x812f0d===_0x25f6c6(0x1b5))throw CliErrors[_0x25f6c6(0x1ba)](_0x25f6c6(0x1a4));if(CONFIG_ENUM_VALUES[_0x812f0d]&&!CONFIG_ENUM_VALUES[_0x812f0d]['includes'](_0x37b22b))throw CliErrors[_0x25f6c6(0x1ba)]('Invalid\x20value\x20for\x20\x22'+_0x812f0d+_0x25f6c6(0x1c5)+CONFIG_ENUM_VALUES[_0x812f0d][_0x25f6c6(0x19a)](',\x20'));if(_0x812f0d==='locale'&&!normalizeLocale(_0x37b22b))throw CliErrors[_0x25f6c6(0x1ba)]('Invalid\x20locale\x20value.',_0x25f6c6(0x1a6));const _0x309d18={'global':_0x24ce74[_0x25f6c6(0x1ac)](_0x25f6c6(0x1c1))},_0x5407ca=resolveWriteScope(_0x309d18),_0x57160d=readScopedConfig(_0x5407ca);let _0x59664e=_0x812f0d,_0x5f3b8b=_0x37b22b;_0x812f0d===_0x25f6c6(0x1a0)&&(_0x59664e='appcode',delete _0x57160d['app']);_0x812f0d===_0x25f6c6(0x19b)&&(_0x5f3b8b=normalizeLocale(_0x37b22b));if(_0x812f0d===_0x25f6c6(0x1ae)){_0x5f3b8b=normalizeEnv(_0x37b22b);if(!isProduction(_0x5f3b8b)&&!isDaily(_0x5f3b8b))throw CliErrors[_0x25f6c6(0x1ba)](_0x25f6c6(0x1b1),_0x25f6c6(0x19f));}if(_0x812f0d==='appcode'){const _0x16aaa3=_0x57160d[_0x25f6c6(0x1b4)]&&typeof _0x57160d[_0x25f6c6(0x1b4)]==='object'?Object[_0x25f6c6(0x19e)](_0x57160d[_0x25f6c6(0x1b4)]):[];if(_0x16aaa3[_0x25f6c6(0x1a3)]>0x0)throw CliErrors['validation'](_0x25f6c6(0x1bd),_0x25f6c6(0x1ad)+CLI_BIN_NAME+_0x25f6c6(0x19c)+_0x5f3b8b+'`,\x20`'+CLI_BIN_NAME+_0x25f6c6(0x1b7));const _0x4f4b82=buildCanonicalProjectConfig({..._0x57160d},{'appCodes':[_0x5f3b8b],'env':typeof _0x57160d['env']===_0x25f6c6(0x198)?_0x57160d['env']:undefined});writeScopedConfig(_0x4f4b82,_0x5407ca);const _0x43ac5a=_0x5407ca==='global'?'Global':_0x25f6c6(0x199);return{'ok':!![],'message':'✓\x20'+_0x43ac5a+_0x25f6c6(0x19d)+_0x5f3b8b+'\x20(stored\x20as\x20apps\x20+\x20defaultApp)'};}_0x57160d[_0x59664e]=_0x5f3b8b,writeScopedConfig(_0x57160d,_0x5407ca);const _0x522a11=_0x5407ca===_0x25f6c6(0x1c1)?_0x25f6c6(0x1b0):_0x25f6c6(0x199);return{'ok':!![],'message':'✓\x20'+_0x522a11+'\x20'+_0x59664e+_0x25f6c6(0x1a9)+_0x5f3b8b};}export const configSetDefinition={'service':a44_0x2d3f69(0x1aa),'command':'set','description':a44_0x2d3f69(0x196),'risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a44_0x2d3f69(0x198),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','type':a44_0x2d3f69(0x198),'description':a44_0x2d3f69(0x1af),'required':!![]},{'name':a44_0x2d3f69(0x1c1),'type':a44_0x2d3f69(0x197),'description':a44_0x2d3f69(0x1b2),'default':![]}],'execute':execute};
1
+ const a44_0x3fd521=a44_0x37bb;function a44_0x37bb(_0x4dae2c,_0x2b2c91){_0x4dae2c=_0x4dae2c-0xa4;const _0xa636e5=a44_0xa636();let _0x37bb13=_0xa636e5[_0x4dae2c];return _0x37bb13;}(function(_0x5bde66,_0x2aa5f6){const _0x4c7e2f=a44_0x37bb,_0xbbfa36=_0x5bde66();while(!![]){try{const _0x59b708=parseInt(_0x4c7e2f(0xba))/0x1*(-parseInt(_0x4c7e2f(0xac))/0x2)+parseInt(_0x4c7e2f(0xb9))/0x3+parseInt(_0x4c7e2f(0xbd))/0x4*(-parseInt(_0x4c7e2f(0xda))/0x5)+-parseInt(_0x4c7e2f(0xa9))/0x6+-parseInt(_0x4c7e2f(0xd9))/0x7*(-parseInt(_0x4c7e2f(0xc6))/0x8)+-parseInt(_0x4c7e2f(0xcf))/0x9+-parseInt(_0x4c7e2f(0xbe))/0xa*(-parseInt(_0x4c7e2f(0xc7))/0xb);if(_0x59b708===_0x2aa5f6)break;else _0xbbfa36['push'](_0xbbfa36['shift']());}catch(_0x392e6a){_0xbbfa36['push'](_0xbbfa36['shift']());}}}(a44_0xa636,0xd4281));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function a44_0xa636(){const _0x451e79=['value','Global','\x20set\x20to:\x20','48TxCOSS','11jMWaZZ','Top-level\x20key\x20\x22','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','set','length','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','appcode','app','9102240fzhuTM','Project','bool','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','riskLevel','str','locale','keys','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','boolean','1226253XpLBao','162490kGywrg','apps','Use\x20`','key','validation','join','Settable\x20top-level\x20keys:\x20','string','2260608StZOTc','\x22\x20is\x20not\x20settable.','Invalid\x20value\x20for\x20\x22','2122SZKfjm','\x22.\x20Allowed:\x20','includes','global','`,\x20`','write','object','config','\x20app\x20add\x20<name>\x20--appcode\x20','Invalid\x20locale\x20value.','Missing\x20value.','env','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','714753nexTPu','859GNNheG','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','68eEbzXB','24316610YWGhcL','Config\x20value','Usage:\x20','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','Set\x20a\x20config\x20value'];a44_0xa636=function(){return _0x451e79;};return a44_0xa636();}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(_0x468f6d){const _0x2c9267=a44_0x37bb,_0x21e5d2=_0x468f6d[_0x2c9267(0xd4)](_0x2c9267(0xa4)),_0x94fa9f=_0x468f6d[_0x2c9267(0xd4)](_0x2c9267(0xc3));if(!_0x21e5d2)throw CliErrors[_0x2c9267(0xa5)]('Missing\x20key.',_0x2c9267(0xc0)+CLI_BIN_NAME+_0x2c9267(0xc1));if(_0x94fa9f===undefined||_0x94fa9f==='')throw CliErrors[_0x2c9267(0xa5)](_0x2c9267(0xb6),_0x2c9267(0xc0)+CLI_BIN_NAME+_0x2c9267(0xc1));if(_0x94fa9f[_0x2c9267(0xcb)]>0x1f4)throw CliErrors[_0x2c9267(0xa5)](_0x2c9267(0xcc));if(!isTopLevelConfigKey(_0x21e5d2))throw CliErrors[_0x2c9267(0xa5)](_0x2c9267(0xc8)+_0x21e5d2+_0x2c9267(0xaa),_0x2c9267(0xa7)+getTopLevelConfigKeySummary());if(_0x21e5d2===_0x2c9267(0xd3))throw CliErrors[_0x2c9267(0xa5)](_0x2c9267(0xd2));if(CONFIG_ENUM_VALUES[_0x21e5d2]&&!CONFIG_ENUM_VALUES[_0x21e5d2][_0x2c9267(0xae)](_0x94fa9f))throw CliErrors[_0x2c9267(0xa5)](_0x2c9267(0xab)+_0x21e5d2+_0x2c9267(0xad)+CONFIG_ENUM_VALUES[_0x21e5d2][_0x2c9267(0xa6)](',\x20'));if(_0x21e5d2===_0x2c9267(0xd5)&&!normalizeLocale(_0x94fa9f))throw CliErrors['validation'](_0x2c9267(0xb5),_0x2c9267(0xb8));const _0x39e99b={'global':_0x468f6d[_0x2c9267(0xd1)]('global')},_0x148faf=resolveWriteScope(_0x39e99b),_0x1ed261=readScopedConfig(_0x148faf);let _0xac5ab8=_0x21e5d2,_0x443b54=_0x94fa9f;_0x21e5d2===_0x2c9267(0xce)&&(_0xac5ab8='appcode',delete _0x1ed261[_0x2c9267(0xce)]);_0x21e5d2===_0x2c9267(0xd5)&&(_0x443b54=normalizeLocale(_0x94fa9f));if(_0x21e5d2===_0x2c9267(0xb7)){_0x443b54=normalizeEnv(_0x94fa9f);if(!isProduction(_0x443b54)&&!isDaily(_0x443b54))throw CliErrors[_0x2c9267(0xa5)](_0x2c9267(0xbb),_0x2c9267(0xbc));}if(_0x21e5d2===_0x2c9267(0xcd)){const _0x15b433=_0x1ed261[_0x2c9267(0xdb)]&&typeof _0x1ed261[_0x2c9267(0xdb)]===_0x2c9267(0xb2)?Object[_0x2c9267(0xd6)](_0x1ed261[_0x2c9267(0xdb)]):[];if(_0x15b433[_0x2c9267(0xcb)]>0x0)throw CliErrors[_0x2c9267(0xa5)](_0x2c9267(0xd7),_0x2c9267(0xdc)+CLI_BIN_NAME+_0x2c9267(0xb4)+_0x443b54+_0x2c9267(0xb0)+CLI_BIN_NAME+'\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.');const _0x7e3d1d=buildCanonicalProjectConfig({..._0x1ed261},{'appCodes':[_0x443b54],'env':typeof _0x1ed261['env']===_0x2c9267(0xa8)?_0x1ed261[_0x2c9267(0xb7)]:undefined});writeScopedConfig(_0x7e3d1d,_0x148faf);const _0x18d7a7=_0x148faf===_0x2c9267(0xaf)?_0x2c9267(0xc4):_0x2c9267(0xd0);return{'ok':!![],'message':'✓\x20'+_0x18d7a7+'\x20appcode\x20set\x20to:\x20'+_0x443b54+_0x2c9267(0xc9)};}_0x1ed261[_0xac5ab8]=_0x443b54,writeScopedConfig(_0x1ed261,_0x148faf);const _0x526863=_0x148faf==='global'?_0x2c9267(0xc4):_0x2c9267(0xd0);return{'ok':!![],'message':'✓\x20'+_0x526863+'\x20'+_0xac5ab8+_0x2c9267(0xc5)+_0x443b54};}export const configSetDefinition={'service':a44_0x3fd521(0xb3),'command':a44_0x3fd521(0xca),'description':a44_0x3fd521(0xc2),'risk':a44_0x3fd521(0xb1),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a44_0x3fd521(0xa8),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a44_0x3fd521(0xc3),'type':a44_0x3fd521(0xa8),'description':a44_0x3fd521(0xbf),'required':!![]},{'name':a44_0x3fd521(0xaf),'type':a44_0x3fd521(0xd8),'description':'Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x1d0da3,_0x331f35){var _0x2433f8=a45_0x4d0b,_0x2df6d1=_0x1d0da3();while(!![]){try{var _0x30d941=-parseInt(_0x2433f8(0x194))/0x1+parseInt(_0x2433f8(0x18b))/0x2+parseInt(_0x2433f8(0x190))/0x3+parseInt(_0x2433f8(0x189))/0x4+-parseInt(_0x2433f8(0x18d))/0x5+-parseInt(_0x2433f8(0x191))/0x6*(parseInt(_0x2433f8(0x18f))/0x7)+-parseInt(_0x2433f8(0x18e))/0x8;if(_0x30d941===_0x331f35)break;else _0x2df6d1['push'](_0x2df6d1['shift']());}catch(_0x1acb3c){_0x2df6d1['push'](_0x2df6d1['shift']());}}}(a45_0x20db,0x7daf5));import{CLI_BIN_NAME}from'../../constant/cli.js';function a45_0x4d0b(_0x214588,_0xf7b5f7){_0x214588=_0x214588-0x189;var _0x20dbfb=a45_0x20db();var _0x4d0b82=_0x20dbfb[_0x214588];return _0x4d0b82;}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};function a45_0x20db(){var _0x555926=['2479809MRmTrM','23016ABeZBX','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','project','652678TJmrSR','3242452gWaamd','global','1473764XzFWkW','validation','2905015gpMSfd','3224992mHFVLv','406QJVchg'];a45_0x20db=function(){return _0x555926;};return a45_0x20db();}export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x3c01c9){var _0x4f9b8a=a45_0x4d0b;if(_0x3c01c9[_0x4f9b8a(0x18a)])return'global';if(!isInProject())throw CliErrors[_0x4f9b8a(0x18c)](_0x4f9b8a(0x192),'Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20init`\x20first.');return _0x4f9b8a(0x193);}export function readScopedConfig(_0x1ecab5){return readConfigFile(resolveWriteConfigPath(_0x1ecab5));}export function writeScopedConfig(_0x32bd39,_0x5b4ab4){writeConfigFile(resolveWriteConfigPath(_0x5b4ab4),_0x32bd39);}
1
+ (function(_0x222019,_0x2a9fa7){var _0x1c1dce=a45_0x1285,_0x146c3e=_0x222019();while(!![]){try{var _0x7a3d73=parseInt(_0x1c1dce(0xd3))/0x1*(parseInt(_0x1c1dce(0xd1))/0x2)+-parseInt(_0x1c1dce(0xd2))/0x3+-parseInt(_0x1c1dce(0xdd))/0x4*(-parseInt(_0x1c1dce(0xd9))/0x5)+-parseInt(_0x1c1dce(0xda))/0x6+-parseInt(_0x1c1dce(0xd6))/0x7+parseInt(_0x1c1dce(0xd0))/0x8*(-parseInt(_0x1c1dce(0xcf))/0x9)+parseInt(_0x1c1dce(0xdb))/0xa*(parseInt(_0x1c1dce(0xdc))/0xb);if(_0x7a3d73===_0x2a9fa7)break;else _0x146c3e['push'](_0x146c3e['shift']());}catch(_0x3fc763){_0x146c3e['push'](_0x146c3e['shift']());}}}(a45_0x3954,0xd0336));import{CLI_BIN_NAME}from'../../constant/cli.js';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';function a45_0x3954(){var _0x398d18=['1070ZCIwfU','231517CmZDcD','751232zNGvfL','81441ZPSzdj','1504reJJhy','6VjdXYZ','2031123hUlJVM','453445ZnxtOx','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','project','5582647EpCBBZ','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','global','25zPHIoG','3137040wxlijQ'];a45_0x3954=function(){return _0x398d18;};return a45_0x3954();}export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x41bca1){var _0x1d4d52=a45_0x1285;if(_0x41bca1[_0x1d4d52(0xd8)])return _0x1d4d52(0xd8);if(!isInProject())throw CliErrors['validation'](_0x1d4d52(0xd7),_0x1d4d52(0xd4)+CLI_BIN_NAME+'\x20init`\x20first.');return _0x1d4d52(0xd5);}export function readScopedConfig(_0x178741){return readConfigFile(resolveWriteConfigPath(_0x178741));}function a45_0x1285(_0x420613,_0x467f08){_0x420613=_0x420613-0xcf;var _0x39548e=a45_0x3954();var _0x128521=_0x39548e[_0x420613];return _0x128521;}export function writeScopedConfig(_0x45dacb,_0x2ea2cc){writeConfigFile(resolveWriteConfigPath(_0x2ea2cc),_0x45dacb);}
@@ -1 +1 @@
1
- const a46_0x2d7e28=a46_0x156c;(function(_0x23f794,_0x147c6a){const _0x32faed=a46_0x156c,_0x114081=_0x23f794();while(!![]){try{const _0x1b24b=-parseInt(_0x32faed(0x151))/0x1*(-parseInt(_0x32faed(0x159))/0x2)+parseInt(_0x32faed(0x129))/0x3*(parseInt(_0x32faed(0x12e))/0x4)+parseInt(_0x32faed(0x14e))/0x5+parseInt(_0x32faed(0x11d))/0x6*(parseInt(_0x32faed(0x131))/0x7)+parseInt(_0x32faed(0x137))/0x8+parseInt(_0x32faed(0x134))/0x9+parseInt(_0x32faed(0x150))/0xa*(-parseInt(_0x32faed(0x160))/0xb);if(_0x1b24b===_0x147c6a)break;else _0x114081['push'](_0x114081['shift']());}catch(_0x5a5782){_0x114081['push'](_0x114081['shift']());}}}(a46_0x227e,0x508fc));function a46_0x156c(_0x29e425,_0x3826db){_0x29e425=_0x29e425-0x119;const _0x227eb3=a46_0x227e();let _0x156cd4=_0x227eb3[_0x29e425];return _0x156cd4;}import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x5aef63){const _0x146f87=a46_0x156c;if(_0x5aef63['deleted'])return null;const _0xdcd1ec=Boolean(_0x5aef63['displayName']!==undefined||_0x5aef63[_0x146f87(0x13d)]!==undefined);let _0x5d0c27={};if(!_0xdcd1ec&&typeof _0x5aef63[_0x146f87(0x12c)]===_0x146f87(0x12d))try{_0x5d0c27=JSON[_0x146f87(0x146)](_0x5aef63[_0x146f87(0x12c)]);}catch{}const _0x1e4d88=_0xdcd1ec?_0x5aef63[_0x146f87(0x15b)]:_0x5aef63[_0x146f87(0x135)],_0x2b3fe6=_0xdcd1ec?_0x5aef63['displayName']:_0x5aef63[_0x146f87(0x15b)],_0x58c40c=_0xdcd1ec?_0x5aef63['doType']:_0x5aef63[_0x146f87(0x14a)]||_0x5aef63[_0x146f87(0x157)],_0x52c179=_0xdcd1ec?_0x5aef63[_0x146f87(0x164)]===!![]:_0x5d0c27[_0x146f87(0x164)]===!![],_0x5f07e7=_0xdcd1ec?_0x5aef63[_0x146f87(0x11a)]===!![]:_0x5d0c27[_0x146f87(0x11a)]===!![],_0x2bce49=_0xdcd1ec?_0x5aef63[_0x146f87(0x11c)]??null:_0x5d0c27['options']??null,_0x169868={'name':_0x1e4d88,'displayName':_0x2b3fe6||_0x1e4d88,'type':_0x58c40c,'dbType':_0x5aef63[_0x146f87(0x15f)],'pk':_0x52c179,'required':_0x5f07e7,'description':_0x5aef63[_0x146f87(0x14f)]||undefined};return Array[_0x146f87(0x127)](_0x2bce49)&&_0x2bce49[_0x146f87(0x121)]>0x0&&(_0x169868[_0x146f87(0x11c)]=_0x2bce49),_0x169868;}function parseJsonMaybe(_0x32d68e){const _0x2cf4c8=a46_0x156c;if(typeof _0x32d68e!==_0x2cf4c8(0x12d))return _0x32d68e;try{return JSON['parse'](_0x32d68e);}catch{return _0x32d68e;}}function normalizeOperationEntry(_0xfe8d6a,_0x5163cf){const _0x37c8b4=a46_0x156c;if(!_0x5163cf||typeof _0x5163cf!==_0x37c8b4(0x141))return null;if(!_0x5163cf[_0x37c8b4(0x156)]||!_0x5163cf[_0x37c8b4(0x144)])return null;const _0x4999fa={'name':_0xfe8d6a,'method':_0x5163cf[_0x37c8b4(0x156)],'path':_0x5163cf[_0x37c8b4(0x144)]};if(_0x5163cf['host'])_0x4999fa[_0x37c8b4(0x15e)]=_0x5163cf[_0x37c8b4(0x15e)];if(_0x5163cf[_0x37c8b4(0x14b)]!=null){const _0x51caf9=parseJsonMaybe(_0x5163cf[_0x37c8b4(0x14b)]);_0x4999fa[_0x37c8b4(0x14b)]=_0x51caf9;}if(_0x5163cf[_0x37c8b4(0x161)]!=null){const _0x1d7870=parseJsonMaybe(_0x5163cf[_0x37c8b4(0x161)]);_0x4999fa[_0x37c8b4(0x161)]=_0x1d7870;}if(_0x5163cf[_0x37c8b4(0x15c)]!=null)_0x4999fa[_0x37c8b4(0x15c)]=_0x5163cf['beforeScriptId'];if(_0x5163cf['afterScriptId']!=null)_0x4999fa[_0x37c8b4(0x13a)]=_0x5163cf[_0x37c8b4(0x13a)];if(Array['isArray'](_0x5163cf['requestFields']))_0x4999fa[_0x37c8b4(0x14c)]=_0x5163cf[_0x37c8b4(0x14c)];if(Array['isArray'](_0x5163cf[_0x37c8b4(0x11b)]))_0x4999fa['responseFields']=_0x5163cf[_0x37c8b4(0x11b)];return _0x4999fa;}function a46_0x227e(){const _0x549510=['extend','string','4LaeVmE','modelId','dbtableConfig','14MIcWTW','indexes','operations','2257533eJsqnp','code','toDatasetCode','4229376DtUvCE','updateTimeField','read','afterScriptId','relations','validateRules','doType','map','dataset','modifierNameField','object','detail','allFieldNames','path','sourceType','parse','fromField','split','toField','type','requestBody','requestFields','creatorIdField','406875UOuJYY','description','10GdJUJA','167402apSFZH','doVersion','alias','dbId','datasetKey','method','dataType','toDatasetName','4TggBSW','toTableName','name','beforeScriptId','source','host','dbType','10080521cPaORk','responseBody','logicField','push','pkField','toFieldLabel','trim','dblinkInfoDTO','allFields','required','responseFields','options','130110dHNcCa','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','formatRules','dbName','length','filter','columnCodeListWithDeleted','deleted','properties','fields','isArray','str','21999blAqyt','labelField','tableName'];a46_0x227e=function(){return _0x549510;};return a46_0x227e();}function summarizeDbtable(_0x232b5e){const _0x3997e8=a46_0x156c,_0x41b8fb={},_0x489e9b=[_0x3997e8(0x154),_0x3997e8(0x120),_0x3997e8(0x12b),'datasetKey',_0x3997e8(0x164),_0x3997e8(0x119),_0x3997e8(0x162),'createTimeField',_0x3997e8(0x138),_0x3997e8(0x14d),'creatorNameField','modifierIdField',_0x3997e8(0x140),_0x3997e8(0x12a),_0x3997e8(0x167)];for(const _0x3844bc of _0x489e9b){if(_0x232b5e[_0x3844bc]!==undefined)_0x41b8fb[_0x3844bc]=_0x232b5e[_0x3844bc];}return typeof _0x41b8fb[_0x3997e8(0x119)]==='string'&&_0x41b8fb[_0x3997e8(0x119)][_0x3997e8(0x121)]>0x0&&(_0x41b8fb[_0x3997e8(0x143)]=_0x41b8fb[_0x3997e8(0x119)][_0x3997e8(0x148)](',')[_0x3997e8(0x13e)](_0x5dc737=>_0x5dc737[_0x3997e8(0x166)]())[_0x3997e8(0x122)](Boolean)),_0x41b8fb;}function normalizeRelatedPages(_0x254573){const _0x3bb20c=a46_0x156c;if(!Array[_0x3bb20c(0x127)](_0x254573))return[];return _0x254573[_0x3bb20c(0x122)](_0x2237ec=>_0x2237ec&&typeof _0x2237ec===_0x3bb20c(0x141))[_0x3bb20c(0x13e)](_0x530d1e=>({'id':_0x530d1e['id'],'type':_0x530d1e['type'],'code':_0x530d1e[_0x3bb20c(0x135)],'title':_0x530d1e['title'],'deleted':_0x530d1e[_0x3bb20c(0x124)]===!![]}));}export const datasetDetail={'service':a46_0x2d7e28(0x13f),'command':a46_0x2d7e28(0x142),'description':a46_0x2d7e28(0x11e),'risk':a46_0x2d7e28(0x139),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a46_0x2d7e28(0x153),'type':a46_0x2d7e28(0x12d),'description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically'}],async 'execute'(_0x2d4a7a){const _0x4e0c5c=a46_0x2d7e28,_0x29a71a=await getDatasetDetail(_0x2d4a7a[_0x4e0c5c(0x128)](_0x4e0c5c(0x135))),_0x2d3c96=Array[_0x4e0c5c(0x127)](_0x29a71a[_0x4e0c5c(0x126)])?_0x29a71a[_0x4e0c5c(0x126)]:Array[_0x4e0c5c(0x127)](_0x29a71a['properties'])?_0x29a71a[_0x4e0c5c(0x125)]:[],_0x1fbe75=_0x2d3c96['map'](_0x8d642c=>normalizeField(_0x8d642c))['filter'](_0x449300=>_0x449300!==null),_0x1bb416=_0x29a71a[_0x4e0c5c(0x133)]??{},_0x246f39=[];for(const [_0x58c545,_0x41a34f]of Object['entries'](_0x1bb416)){const _0x4618b6=normalizeOperationEntry(_0x58c545,_0x41a34f);if(_0x4618b6)_0x246f39[_0x4e0c5c(0x163)](_0x4618b6);}const _0x2a5121=_0x29a71a[_0x4e0c5c(0x130)]??{},_0x521628=_0x29a71a[_0x4e0c5c(0x13f)]??{},_0x5a70f8=_0x2a5121['dbId']!=null?{'id':_0x2a5121[_0x4e0c5c(0x154)],'name':_0x2a5121[_0x4e0c5c(0x120)]??null}:undefined;let _0x2f27df;return typeof _0x29a71a[_0x4e0c5c(0x12c)]===_0x4e0c5c(0x12d)&&(_0x2f27df=parseJsonMaybe(_0x29a71a[_0x4e0c5c(0x12c)])),{'ok':!![],'data':{'id':_0x29a71a[_0x4e0c5c(0x12f)]??_0x29a71a['id'],'name':_0x29a71a[_0x4e0c5c(0x15b)],'code':_0x29a71a['modelCode']||_0x29a71a['code'],'doVersion':_0x29a71a[_0x4e0c5c(0x152)],'description':_0x29a71a[_0x4e0c5c(0x14f)]||_0x521628['tableComment']||undefined,'source':_0x29a71a[_0x4e0c5c(0x15d)]||_0x521628[_0x4e0c5c(0x145)],'table':_0x2a5121[_0x4e0c5c(0x12b)]||_0x521628[_0x4e0c5c(0x12b)],'datasetKey':_0x2a5121[_0x4e0c5c(0x155)],'pk':_0x2a5121[_0x4e0c5c(0x164)],'db':_0x5a70f8,'dbtable':summarizeDbtable(_0x2a5121),'fields':_0x1fbe75,'operations':_0x246f39,'indexes':Array[_0x4e0c5c(0x127)](_0x521628[_0x4e0c5c(0x132)])?_0x521628['indexes']:[],'relations':Array[_0x4e0c5c(0x127)](_0x29a71a['relations'])?_0x29a71a[_0x4e0c5c(0x13b)][_0x4e0c5c(0x13e)](_0x5bff4c=>({'fromField':_0x5bff4c[_0x4e0c5c(0x147)],'toDataset':_0x5bff4c[_0x4e0c5c(0x158)],'toCode':_0x5bff4c[_0x4e0c5c(0x136)],'toTable':_0x5bff4c[_0x4e0c5c(0x15a)],'toField':_0x5bff4c[_0x4e0c5c(0x149)],'labelField':_0x5bff4c[_0x4e0c5c(0x165)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x29a71a['relatedPageInfoList']),...Array[_0x4e0c5c(0x127)](_0x29a71a[_0x4e0c5c(0x123)])?{'columnCodeListWithDeleted':_0x29a71a[_0x4e0c5c(0x123)]}:{},'formatRules':Array[_0x4e0c5c(0x127)](_0x29a71a[_0x4e0c5c(0x11f)])?_0x29a71a[_0x4e0c5c(0x11f)]:[],'validateRules':Array[_0x4e0c5c(0x127)](_0x29a71a[_0x4e0c5c(0x13c)])?_0x29a71a['validateRules']:[],..._0x2f27df!==undefined?{'extend':_0x2f27df}:{},'stats':{'fieldCount':_0x1fbe75[_0x4e0c5c(0x121)],'operationCount':_0x246f39[_0x4e0c5c(0x121)]}}};}};
1
+ const a46_0x46e1f2=a46_0x1929;(function(_0x5dcb3b,_0x15da8c){const _0x22ea1d=a46_0x1929,_0x72f35d=_0x5dcb3b();while(!![]){try{const _0xa97897=parseInt(_0x22ea1d(0x118))/0x1+-parseInt(_0x22ea1d(0x148))/0x2+parseInt(_0x22ea1d(0x13b))/0x3+-parseInt(_0x22ea1d(0x131))/0x4+parseInt(_0x22ea1d(0x137))/0x5*(-parseInt(_0x22ea1d(0x12c))/0x6)+-parseInt(_0x22ea1d(0x142))/0x7+parseInt(_0x22ea1d(0x15d))/0x8*(parseInt(_0x22ea1d(0x13e))/0x9);if(_0xa97897===_0x15da8c)break;else _0x72f35d['push'](_0x72f35d['shift']());}catch(_0x1c530e){_0x72f35d['push'](_0x72f35d['shift']());}}}(a46_0x3dc4,0x4c8fb));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x515a99){const _0x589d17=a46_0x1929;if(_0x515a99[_0x589d17(0x12f)])return null;const _0x3587d4=Boolean(_0x515a99['displayName']!==undefined||_0x515a99[_0x589d17(0x15a)]!==undefined);let _0x899011={};if(!_0x3587d4&&typeof _0x515a99[_0x589d17(0x153)]===_0x589d17(0x140))try{_0x899011=JSON['parse'](_0x515a99[_0x589d17(0x153)]);}catch{}const _0x44dc56=_0x3587d4?_0x515a99[_0x589d17(0x125)]:_0x515a99[_0x589d17(0x12a)],_0x43891e=_0x3587d4?_0x515a99['displayName']:_0x515a99[_0x589d17(0x125)],_0x3db448=_0x3587d4?_0x515a99['doType']:_0x515a99[_0x589d17(0x152)]||_0x515a99['dataType'],_0x2c758f=_0x3587d4?_0x515a99[_0x589d17(0x159)]===!![]:_0x899011[_0x589d17(0x159)]===!![],_0x54817f=_0x3587d4?_0x515a99[_0x589d17(0x160)]===!![]:_0x899011[_0x589d17(0x160)]===!![],_0x5b7056=_0x3587d4?_0x515a99[_0x589d17(0x14a)]??null:_0x899011[_0x589d17(0x14a)]??null,_0x19694d={'name':_0x44dc56,'displayName':_0x43891e||_0x44dc56,'type':_0x3db448,'dbType':_0x515a99[_0x589d17(0x156)],'pk':_0x2c758f,'required':_0x54817f,'description':_0x515a99[_0x589d17(0x158)]||undefined};return Array[_0x589d17(0x138)](_0x5b7056)&&_0x5b7056[_0x589d17(0x14b)]>0x0&&(_0x19694d[_0x589d17(0x14a)]=_0x5b7056),_0x19694d;}function parseJsonMaybe(_0x4783ba){const _0x3e4e2c=a46_0x1929;if(typeof _0x4783ba!==_0x3e4e2c(0x140))return _0x4783ba;try{return JSON[_0x3e4e2c(0x149)](_0x4783ba);}catch{return _0x4783ba;}}function a46_0x3dc4(){const _0x4c327e=['createTimeField','push','map','formatRules','alias','name','columnCodeListWithDeleted','allFieldNames','labelField','properties','code','responseBody','6uvykCy','doVersion','toDatasetName','deleted','entries','621040ImdnsH','toField','indexes','path','logicField','dblinkInfoDTO','3132890joPfZh','isArray','tableName','sourceType','1850853anjxhV','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','dataset','9BuOOKN','relatedPageInfoList','string','toTableName','2001503WWYVWM','fromField','requestBody','responseFields','method','dbId','71410rHjbzX','parse','options','length','str','allFields','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','split','afterScriptId','object','type','extend','creatorNameField','validateRules','dbType','creatorIdField','description','pkField','doType','filter','toFieldLabel','3650936QILoOd','modelCode','fields','required','host','relations','detail','343749qPsgHe','modifierIdField','dbtableConfig','dbName','datasetKey','requestFields','beforeScriptId','updateTimeField'];a46_0x3dc4=function(){return _0x4c327e;};return a46_0x3dc4();}function normalizeOperationEntry(_0xb83bd7,_0x4b2551){const _0x3f8be3=a46_0x1929;if(!_0x4b2551||typeof _0x4b2551!==_0x3f8be3(0x151))return null;if(!_0x4b2551['method']||!_0x4b2551['path'])return null;const _0x363e86={'name':_0xb83bd7,'method':_0x4b2551[_0x3f8be3(0x146)],'path':_0x4b2551[_0x3f8be3(0x134)]};if(_0x4b2551['host'])_0x363e86[_0x3f8be3(0x161)]=_0x4b2551['host'];if(_0x4b2551['requestBody']!=null){const _0x26d4b5=parseJsonMaybe(_0x4b2551[_0x3f8be3(0x144)]);_0x363e86['requestBody']=_0x26d4b5;}if(_0x4b2551[_0x3f8be3(0x12b)]!=null){const _0x31afc7=parseJsonMaybe(_0x4b2551[_0x3f8be3(0x12b)]);_0x363e86[_0x3f8be3(0x12b)]=_0x31afc7;}if(_0x4b2551['beforeScriptId']!=null)_0x363e86[_0x3f8be3(0x11e)]=_0x4b2551[_0x3f8be3(0x11e)];if(_0x4b2551['afterScriptId']!=null)_0x363e86['afterScriptId']=_0x4b2551[_0x3f8be3(0x150)];if(Array[_0x3f8be3(0x138)](_0x4b2551[_0x3f8be3(0x11d)]))_0x363e86[_0x3f8be3(0x11d)]=_0x4b2551[_0x3f8be3(0x11d)];if(Array[_0x3f8be3(0x138)](_0x4b2551['responseFields']))_0x363e86[_0x3f8be3(0x145)]=_0x4b2551[_0x3f8be3(0x145)];return _0x363e86;}function a46_0x1929(_0x2218ec,_0x32eef4){_0x2218ec=_0x2218ec-0x117;const _0x3dc4e4=a46_0x3dc4();let _0x19298f=_0x3dc4e4[_0x2218ec];return _0x19298f;}function summarizeDbtable(_0x5f54e5){const _0x2b2faa=a46_0x1929,_0x548f6e={},_0x11311d=['dbId',_0x2b2faa(0x11b),'tableName','datasetKey',_0x2b2faa(0x159),_0x2b2faa(0x14d),_0x2b2faa(0x135),_0x2b2faa(0x120),_0x2b2faa(0x11f),_0x2b2faa(0x157),_0x2b2faa(0x154),_0x2b2faa(0x119),'modifierNameField',_0x2b2faa(0x128),_0x2b2faa(0x136)];for(const _0x592f16 of _0x11311d){if(_0x5f54e5[_0x592f16]!==undefined)_0x548f6e[_0x592f16]=_0x5f54e5[_0x592f16];}return typeof _0x548f6e['allFields']===_0x2b2faa(0x140)&&_0x548f6e[_0x2b2faa(0x14d)][_0x2b2faa(0x14b)]>0x0&&(_0x548f6e[_0x2b2faa(0x127)]=_0x548f6e['allFields'][_0x2b2faa(0x14f)](',')['map'](_0x3c1b0a=>_0x3c1b0a['trim']())[_0x2b2faa(0x15b)](Boolean)),_0x548f6e;}function normalizeRelatedPages(_0x4d81c6){const _0x1b00cb=a46_0x1929;if(!Array[_0x1b00cb(0x138)](_0x4d81c6))return[];return _0x4d81c6[_0x1b00cb(0x15b)](_0x1cfbdf=>_0x1cfbdf&&typeof _0x1cfbdf==='object')[_0x1b00cb(0x122)](_0x43d0e8=>({'id':_0x43d0e8['id'],'type':_0x43d0e8['type'],'code':_0x43d0e8[_0x1b00cb(0x12a)],'title':_0x43d0e8['title'],'deleted':_0x43d0e8[_0x1b00cb(0x12f)]===!![]}));}export const datasetDetail={'service':a46_0x46e1f2(0x13d),'command':a46_0x46e1f2(0x117),'description':a46_0x46e1f2(0x14e),'risk':'read','flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a46_0x46e1f2(0x124),'type':a46_0x46e1f2(0x140),'description':a46_0x46e1f2(0x13c)}],async 'execute'(_0x2535fe){const _0x119a5c=a46_0x46e1f2,_0x4af1fe=await getDatasetDetail(_0x2535fe[_0x119a5c(0x14c)]('code')),_0x47077c=Array[_0x119a5c(0x138)](_0x4af1fe['fields'])?_0x4af1fe[_0x119a5c(0x15f)]:Array[_0x119a5c(0x138)](_0x4af1fe[_0x119a5c(0x129)])?_0x4af1fe[_0x119a5c(0x129)]:[],_0x509bcf=_0x47077c[_0x119a5c(0x122)](_0x51b779=>normalizeField(_0x51b779))[_0x119a5c(0x15b)](_0x5c8480=>_0x5c8480!==null),_0x388d18=_0x4af1fe['operations']??{},_0x396d4f=[];for(const [_0x2b3a52,_0x24bb11]of Object[_0x119a5c(0x130)](_0x388d18)){const _0x1717ab=normalizeOperationEntry(_0x2b3a52,_0x24bb11);if(_0x1717ab)_0x396d4f[_0x119a5c(0x121)](_0x1717ab);}const _0x3312f5=_0x4af1fe[_0x119a5c(0x11a)]??{},_0xe6aa68=_0x4af1fe[_0x119a5c(0x13d)]??{},_0x4cb54a=_0x3312f5['dbId']!=null?{'id':_0x3312f5[_0x119a5c(0x147)],'name':_0x3312f5[_0x119a5c(0x11b)]??null}:undefined;let _0x50a861;return typeof _0x4af1fe[_0x119a5c(0x153)]===_0x119a5c(0x140)&&(_0x50a861=parseJsonMaybe(_0x4af1fe[_0x119a5c(0x153)])),{'ok':!![],'data':{'id':_0x4af1fe['modelId']??_0x4af1fe['id'],'name':_0x4af1fe[_0x119a5c(0x125)],'code':_0x4af1fe[_0x119a5c(0x15e)]||_0x4af1fe[_0x119a5c(0x12a)],'doVersion':_0x4af1fe[_0x119a5c(0x12d)],'description':_0x4af1fe[_0x119a5c(0x158)]||_0xe6aa68['tableComment']||undefined,'source':_0x4af1fe['source']||_0xe6aa68[_0x119a5c(0x13a)],'table':_0x3312f5[_0x119a5c(0x139)]||_0xe6aa68[_0x119a5c(0x139)],'datasetKey':_0x3312f5[_0x119a5c(0x11c)],'pk':_0x3312f5[_0x119a5c(0x159)],'db':_0x4cb54a,'dbtable':summarizeDbtable(_0x3312f5),'fields':_0x509bcf,'operations':_0x396d4f,'indexes':Array[_0x119a5c(0x138)](_0xe6aa68[_0x119a5c(0x133)])?_0xe6aa68['indexes']:[],'relations':Array[_0x119a5c(0x138)](_0x4af1fe[_0x119a5c(0x162)])?_0x4af1fe[_0x119a5c(0x162)][_0x119a5c(0x122)](_0xa7c57c=>({'fromField':_0xa7c57c[_0x119a5c(0x143)],'toDataset':_0xa7c57c[_0x119a5c(0x12e)],'toCode':_0xa7c57c['toDatasetCode'],'toTable':_0xa7c57c[_0x119a5c(0x141)],'toField':_0xa7c57c[_0x119a5c(0x132)],'labelField':_0xa7c57c[_0x119a5c(0x15c)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x4af1fe[_0x119a5c(0x13f)]),...Array[_0x119a5c(0x138)](_0x4af1fe[_0x119a5c(0x126)])?{'columnCodeListWithDeleted':_0x4af1fe[_0x119a5c(0x126)]}:{},'formatRules':Array['isArray'](_0x4af1fe['formatRules'])?_0x4af1fe[_0x119a5c(0x123)]:[],'validateRules':Array['isArray'](_0x4af1fe[_0x119a5c(0x155)])?_0x4af1fe[_0x119a5c(0x155)]:[],..._0x50a861!==undefined?{'extend':_0x50a861}:{},'stats':{'fieldCount':_0x509bcf[_0x119a5c(0x14b)],'operationCount':_0x396d4f[_0x119a5c(0x14b)]}}};}};
@@ -1 +1 @@
1
- (function(_0x2dcb7f,_0x55e338){const _0x591743=a47_0x36ef,_0x4ff915=_0x2dcb7f();while(!![]){try{const _0x4060ae=-parseInt(_0x591743(0xa9))/0x1*(parseInt(_0x591743(0xa4))/0x2)+parseInt(_0x591743(0xa6))/0x3+-parseInt(_0x591743(0xa5))/0x4+-parseInt(_0x591743(0xa8))/0x5+-parseInt(_0x591743(0xa1))/0x6*(parseInt(_0x591743(0xa7))/0x7)+-parseInt(_0x591743(0xa3))/0x8+parseInt(_0x591743(0xa2))/0x9;if(_0x4060ae===_0x55e338)break;else _0x4ff915['push'](_0x4ff915['shift']());}catch(_0x18b2fe){_0x4ff915['push'](_0x4ff915['shift']());}}}(a47_0x516f,0x5d185));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetOperations}from'../../commands/dataset/operations.js';import{datasetLinks}from'../../commands/dataset/links.js';function a47_0x36ef(_0x2fab57,_0x77d7fd){_0x2fab57=_0x2fab57-0xa1;const _0x516f72=a47_0x516f();let _0x36ef73=_0x516f72[_0x2fab57];return _0x36ef73;}function a47_0x516f(){const _0x5a5564=['1054575RRAqgB','91LMjLGV','3469410NIdWEy','1KQODac','112020JmchHO','18803655QSLZHI','5072552kbHVLX','962702wAgoOT','29964FXzScN'];a47_0x516f=function(){return _0x5a5564;};return a47_0x516f();}export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
1
+ (function(_0x4e3aa3,_0x439fee){const _0x14dac3=a47_0x4b80,_0x5239bf=_0x4e3aa3();while(!![]){try{const _0x59d96d=-parseInt(_0x14dac3(0xc1))/0x1*(-parseInt(_0x14dac3(0xbe))/0x2)+-parseInt(_0x14dac3(0xb8))/0x3*(-parseInt(_0x14dac3(0xbb))/0x4)+parseInt(_0x14dac3(0xc2))/0x5*(parseInt(_0x14dac3(0xb9))/0x6)+-parseInt(_0x14dac3(0xbf))/0x7*(parseInt(_0x14dac3(0xc0))/0x8)+-parseInt(_0x14dac3(0xbc))/0x9*(parseInt(_0x14dac3(0xba))/0xa)+-parseInt(_0x14dac3(0xc3))/0xb+parseInt(_0x14dac3(0xbd))/0xc;if(_0x59d96d===_0x439fee)break;else _0x5239bf['push'](_0x5239bf['shift']());}catch(_0xcd673d){_0x5239bf['push'](_0x5239bf['shift']());}}}(a47_0x1677,0xb7c8b));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a47_0x1677(){const _0x2489b4=['1WPiTfW','10bdvydg','3405237CAqChS','519WdudGd','677940lgiLDS','2090kposii','21180YOePjI','43290jwHQZo','9395628izMMKD','1764450TPoYpJ','7HGvKra','5916584QBiAHI'];a47_0x1677=function(){return _0x2489b4;};return a47_0x1677();}import{datasetOperations}from'../../commands/dataset/operations.js';function a47_0x4b80(_0x573160,_0x2aa1b0){_0x573160=_0x573160-0xb8;const _0x1677c6=a47_0x1677();let _0x4b808e=_0x1677c6[_0x573160];return _0x4b808e;}import{datasetLinks}from'../../commands/dataset/links.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
@@ -1 +1 @@
1
- const a48_0x544b17=a48_0x44ca;(function(_0x42f0b9,_0xece038){const _0xf38339=a48_0x44ca,_0x430c1d=_0x42f0b9();while(!![]){try{const _0x481fb1=-parseInt(_0xf38339(0x171))/0x1+-parseInt(_0xf38339(0x140))/0x2*(parseInt(_0xf38339(0x166))/0x3)+-parseInt(_0xf38339(0x151))/0x4*(parseInt(_0xf38339(0x14e))/0x5)+-parseInt(_0xf38339(0x15a))/0x6*(parseInt(_0xf38339(0x168))/0x7)+-parseInt(_0xf38339(0x174))/0x8*(parseInt(_0xf38339(0x141))/0x9)+-parseInt(_0xf38339(0x145))/0xa+parseInt(_0xf38339(0x14f))/0xb*(parseInt(_0xf38339(0x164))/0xc);if(_0x481fb1===_0xece038)break;else _0x430c1d['push'](_0x430c1d['shift']());}catch(_0xa36095){_0x430c1d['push'](_0x430c1d['shift']());}}}(a48_0x2bf1,0x435a6));import{getErConfig}from'../../core/api-client.js';import{resolveDb}from'../../core/db-resolver.js';function a48_0x44ca(_0x2cc6d7,_0x1a5327){_0x2cc6d7=_0x2cc6d7-0x140;const _0x2bf167=a48_0x2bf1();let _0x44ca40=_0x2bf167[_0x2cc6d7];return _0x44ca40;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a48_0x2bf1(){const _0x442103=['name','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','32SBfhag','8738Cjjirj','482373ulLlVF','isForeignKey','displayName','boolean','5096380lmxdAK','\x20relation(s)','map','joinType','toDataset','filter','reduce','all','length','10lLYCjC','11551958TrZRZT','read','314504aoiPPz','meta','\x20dataset(s),\x20','fields','dbName','datasetId','Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20','\x20database(s)','datasets','48wrfmGD','datasetCode','verbose','Return\x20full\x20raw\x20ER\x20response\x20from\x20API','Fetched\x20link\x20graph\x20for\x20','str','stats','dbId','dbType','bool','24PVGhUv','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','171kpmfLS','appCode','236026iGzmbl','isPrimaryKey','fromField','links','string','tableComment','dataset','LEFT','relations','424423REWHyg'];a48_0x2bf1=function(){return _0x442103;};return a48_0x2bf1();}export const datasetLinks={'service':a48_0x544b17(0x16e),'command':a48_0x544b17(0x16b),'description':a48_0x544b17(0x173)+'Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20'+'Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','risk':a48_0x544b17(0x150),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':a48_0x544b17(0x16c),'description':a48_0x544b17(0x157)+a48_0x544b17(0x165)},{'name':a48_0x544b17(0x15c),'type':a48_0x544b17(0x144),'description':a48_0x544b17(0x15d)}],async 'execute'(_0x569ce6){const _0x20ac8a=a48_0x544b17,_0x149e46=_0x569ce6[_0x20ac8a(0x163)]('verbose'),{resolved:_0x48cb1d,error:_0x2f2c4d}=await resolveDb(_0x569ce6[_0x20ac8a(0x167)],_0x569ce6[_0x20ac8a(0x15f)]('db')||undefined);if(_0x2f2c4d)return{'ok':![],'message':_0x2f2c4d};const _0x31b431=_0x48cb1d[_0x20ac8a(0x147)](_0x575cfd=>_0x575cfd[_0x20ac8a(0x161)]),_0x39b18e=await Promise[_0x20ac8a(0x14c)](_0x31b431[_0x20ac8a(0x147)](_0x10f2fc=>getErConfig(_0x569ce6[_0x20ac8a(0x167)],_0x10f2fc)));if(_0x149e46)return{'ok':!![],'data':_0x39b18e[_0x20ac8a(0x14d)]===0x1?_0x39b18e[0x0]:_0x39b18e,'message':_0x20ac8a(0x15e)+_0x31b431[_0x20ac8a(0x14d)]+_0x20ac8a(0x158)};const _0x26a992=_0x39b18e['map'](_0x11fd05=>{const _0x195c4a=_0x20ac8a,_0xb02210=(_0x11fd05[_0x195c4a(0x159)]??[])['map'](_0x56581a=>{const _0x1a0156=_0x195c4a,_0x2544d5=_0x56581a[_0x1a0156(0x154)]?.['filter'](_0x2c4bff=>_0x2c4bff[_0x1a0156(0x169)])['map'](_0x3f68a7=>_0x3f68a7[_0x1a0156(0x172)])??[],_0x16c482=_0x56581a[_0x1a0156(0x154)]?.[_0x1a0156(0x14a)](_0x5d5e8b=>_0x5d5e8b[_0x1a0156(0x142)])[_0x1a0156(0x147)](_0x42f8c1=>_0x42f8c1[_0x1a0156(0x172)])??[];return{'id':_0x56581a[_0x1a0156(0x156)],'name':_0x56581a['datasetName'],'code':_0x56581a[_0x1a0156(0x15b)],'table':_0x56581a['tableName'],'comment':_0x56581a[_0x1a0156(0x16d)]||undefined,'fields':(_0x56581a[_0x1a0156(0x154)]??[])[_0x1a0156(0x147)](_0xbb2a82=>({'name':_0xbb2a82[_0x1a0156(0x172)],'displayName':_0xbb2a82[_0x1a0156(0x143)],'type':_0xbb2a82[_0x1a0156(0x162)],'pk':_0xbb2a82[_0x1a0156(0x169)],'fk':_0xbb2a82[_0x1a0156(0x142)]})),'relations':(_0x56581a[_0x1a0156(0x170)]??[])[_0x1a0156(0x14a)](_0x4f1e51=>_0x4f1e51[_0x1a0156(0x16a)]&&_0x4f1e51[_0x1a0156(0x149)])[_0x1a0156(0x147)](_0x365879=>({'from':_0x365879[_0x1a0156(0x16a)],'toDataset':_0x365879['toDatasetName'],'toCode':_0x365879[_0x1a0156(0x149)],'toField':_0x365879['toField'],'joinType':_0x365879[_0x1a0156(0x148)]||_0x1a0156(0x16f)})),'stats':{'fieldCount':_0x56581a['fields']?.['length']??0x0,'pkCount':_0x2544d5[_0x1a0156(0x14d)],'fkCount':_0x16c482['length'],'relationCount':_0x56581a['relations']?.['length']??0x0}};}),_0x1c42a4=_0xb02210['filter'](_0x11fb95=>_0x11fb95[_0x195c4a(0x160)]['relationCount']>0x0)['map'](_0x3991fb=>_0x3991fb[_0x195c4a(0x172)]);return{'db':_0x11fd05[_0x195c4a(0x152)]?.[_0x195c4a(0x155)],'dbId':_0x11fd05['meta']?.[_0x195c4a(0x161)],'appCode':_0x11fd05['meta']?.[_0x195c4a(0x167)],'datasetCount':_0xb02210['length'],'connectedDatasets':_0x1c42a4,'datasets':_0xb02210};}),_0x20da69=_0x26a992[_0x20ac8a(0x14b)]((_0x246c5d,_0x27adaf)=>_0x246c5d+_0x27adaf['datasetCount'],0x0),_0x4058cf=_0x26a992['reduce']((_0x2bf777,_0x5a5f97)=>_0x2bf777+_0x5a5f97[_0x20ac8a(0x159)]['reduce']((_0x51ad39,_0x6bc89c)=>_0x51ad39+_0x6bc89c['stats']['relationCount'],0x0),0x0);return{'ok':!![],'data':_0x26a992[_0x20ac8a(0x14d)]===0x1?_0x26a992[0x0]:{'databases':_0x26a992},'message':'Link\x20graph:\x20'+_0x26a992[_0x20ac8a(0x14d)]+'\x20database(s),\x20'+_0x20da69+_0x20ac8a(0x153)+_0x4058cf+_0x20ac8a(0x146)};}};
1
+ const a48_0x4e98ec=a48_0x1869;(function(_0x1e3692,_0x2a092f){const _0x5eae5f=a48_0x1869,_0x1cbebf=_0x1e3692();while(!![]){try{const _0x58e6eb=-parseInt(_0x5eae5f(0xf5))/0x1*(parseInt(_0x5eae5f(0xce))/0x2)+-parseInt(_0x5eae5f(0xe8))/0x3+parseInt(_0x5eae5f(0xf6))/0x4+-parseInt(_0x5eae5f(0xd3))/0x5*(-parseInt(_0x5eae5f(0xc9))/0x6)+-parseInt(_0x5eae5f(0xf7))/0x7*(parseInt(_0x5eae5f(0xff))/0x8)+parseInt(_0x5eae5f(0xed))/0x9*(parseInt(_0x5eae5f(0xcd))/0xa)+parseInt(_0x5eae5f(0xe7))/0xb;if(_0x58e6eb===_0x2a092f)break;else _0x1cbebf['push'](_0x1cbebf['shift']());}catch(_0x3b84f9){_0x1cbebf['push'](_0x1cbebf['shift']());}}}(a48_0x47d0,0x4fb30));function a48_0x47d0(){const _0x155b5a=['toDatasetName','bool','datasetCode','fields','dbId','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','all','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','5960405txZJPn','1895070UmIIjP','tableName','stats','map','meta','5132817xySieL','datasetId','isForeignKey','toDataset','boolean','\x20database(s)','appCode','fromField','354726vlVIkc','2354252oLXGsd','6146ZKRrVU','verbose','datasetName','datasetCount','joinType','\x20relation(s)','LEFT','read','5272cGFEFi','relationCount','dbName','228882DZSkJG','length','links','toField','10sdyJjq','2BDkZWP','name','tableComment','Link\x20graph:\x20','datasets','25OSPPhP','Return\x20full\x20raw\x20ER\x20response\x20from\x20API','\x20database(s),\x20','reduce','string','filter','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','str','Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20','relations','Fetched\x20link\x20graph\x20for\x20','isPrimaryKey'];a48_0x47d0=function(){return _0x155b5a;};return a48_0x47d0();}function a48_0x1869(_0x3865e3,_0x1a0b9b){_0x3865e3=_0x3865e3-0xc8;const _0x47d05e=a48_0x47d0();let _0x1869bc=_0x47d05e[_0x3865e3];return _0x1869bc;}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':'dataset','command':a48_0x4e98ec(0xcb),'description':a48_0x4e98ec(0xe4)+'Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20'+a48_0x4e98ec(0xe6),'risk':a48_0x4e98ec(0xfe),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':a48_0x4e98ec(0xd7),'description':a48_0x4e98ec(0xdb)+a48_0x4e98ec(0xd9)},{'name':a48_0x4e98ec(0xf8),'type':a48_0x4e98ec(0xf1),'description':a48_0x4e98ec(0xd4)}],async 'execute'(_0x44505c){const _0x409a12=a48_0x4e98ec,_0x43525b=_0x44505c[_0x409a12(0xe0)](_0x409a12(0xf8)),{resolved:_0x52367a,error:_0x4c0a2e}=await resolveDb(_0x44505c[_0x409a12(0xf3)],_0x44505c[_0x409a12(0xda)]('db')||undefined);if(_0x4c0a2e)return{'ok':![],'message':_0x4c0a2e};const _0x587fb9=_0x52367a[_0x409a12(0xeb)](_0x5caa74=>_0x5caa74[_0x409a12(0xe3)]),_0x58ccb8=await Promise[_0x409a12(0xe5)](_0x587fb9[_0x409a12(0xeb)](_0x2a5eee=>getErConfig(_0x44505c[_0x409a12(0xf3)],_0x2a5eee)));if(_0x43525b)return{'ok':!![],'data':_0x58ccb8[_0x409a12(0xca)]===0x1?_0x58ccb8[0x0]:_0x58ccb8,'message':_0x409a12(0xdd)+_0x587fb9['length']+_0x409a12(0xf2)};const _0xf012b1=_0x58ccb8[_0x409a12(0xeb)](_0x41e951=>{const _0xd1e8b7=_0x409a12,_0x2cca0d=(_0x41e951[_0xd1e8b7(0xd2)]??[])[_0xd1e8b7(0xeb)](_0x55b1b1=>{const _0xd4d2dc=_0xd1e8b7,_0x5c5307=_0x55b1b1[_0xd4d2dc(0xe2)]?.[_0xd4d2dc(0xd8)](_0x3d60f6=>_0x3d60f6['isPrimaryKey'])['map'](_0x520ce6=>_0x520ce6['name'])??[],_0x120dba=_0x55b1b1[_0xd4d2dc(0xe2)]?.[_0xd4d2dc(0xd8)](_0x45d966=>_0x45d966[_0xd4d2dc(0xef)])[_0xd4d2dc(0xeb)](_0x5af9b8=>_0x5af9b8[_0xd4d2dc(0xcf)])??[];return{'id':_0x55b1b1[_0xd4d2dc(0xee)],'name':_0x55b1b1[_0xd4d2dc(0xf9)],'code':_0x55b1b1[_0xd4d2dc(0xe1)],'table':_0x55b1b1[_0xd4d2dc(0xe9)],'comment':_0x55b1b1[_0xd4d2dc(0xd0)]||undefined,'fields':(_0x55b1b1[_0xd4d2dc(0xe2)]??[])[_0xd4d2dc(0xeb)](_0x593aa6=>({'name':_0x593aa6[_0xd4d2dc(0xcf)],'displayName':_0x593aa6['displayName'],'type':_0x593aa6['dbType'],'pk':_0x593aa6[_0xd4d2dc(0xde)],'fk':_0x593aa6['isForeignKey']})),'relations':(_0x55b1b1['relations']??[])[_0xd4d2dc(0xd8)](_0x4e49df=>_0x4e49df[_0xd4d2dc(0xf4)]&&_0x4e49df[_0xd4d2dc(0xf0)])[_0xd4d2dc(0xeb)](_0x355b8b=>({'from':_0x355b8b['fromField'],'toDataset':_0x355b8b[_0xd4d2dc(0xdf)],'toCode':_0x355b8b['toDataset'],'toField':_0x355b8b[_0xd4d2dc(0xcc)],'joinType':_0x355b8b[_0xd4d2dc(0xfb)]||_0xd4d2dc(0xfd)})),'stats':{'fieldCount':_0x55b1b1[_0xd4d2dc(0xe2)]?.[_0xd4d2dc(0xca)]??0x0,'pkCount':_0x5c5307['length'],'fkCount':_0x120dba['length'],'relationCount':_0x55b1b1[_0xd4d2dc(0xdc)]?.['length']??0x0}};}),_0x3b77cf=_0x2cca0d[_0xd1e8b7(0xd8)](_0x37ae0c=>_0x37ae0c[_0xd1e8b7(0xea)]['relationCount']>0x0)[_0xd1e8b7(0xeb)](_0x5dc369=>_0x5dc369['name']);return{'db':_0x41e951[_0xd1e8b7(0xec)]?.[_0xd1e8b7(0xc8)],'dbId':_0x41e951[_0xd1e8b7(0xec)]?.[_0xd1e8b7(0xe3)],'appCode':_0x41e951['meta']?.[_0xd1e8b7(0xf3)],'datasetCount':_0x2cca0d['length'],'connectedDatasets':_0x3b77cf,'datasets':_0x2cca0d};}),_0x1b84a1=_0xf012b1[_0x409a12(0xd6)]((_0x115f77,_0x17a665)=>_0x115f77+_0x17a665[_0x409a12(0xfa)],0x0),_0x325b03=_0xf012b1['reduce']((_0x34e8f5,_0xacaf16)=>_0x34e8f5+_0xacaf16[_0x409a12(0xd2)][_0x409a12(0xd6)]((_0x256005,_0x4ef960)=>_0x256005+_0x4ef960[_0x409a12(0xea)][_0x409a12(0x100)],0x0),0x0);return{'ok':!![],'data':_0xf012b1[_0x409a12(0xca)]===0x1?_0xf012b1[0x0]:{'databases':_0xf012b1},'message':_0x409a12(0xd1)+_0xf012b1[_0x409a12(0xca)]+_0x409a12(0xd5)+_0x1b84a1+'\x20dataset(s),\x20'+_0x325b03+_0x409a12(0xfc)};}};
@@ -1 +1 @@
1
- const a49_0x2ca151=a49_0xb422;function a49_0x4669(){const _0x24083=['470qRNCIQ','743AgqVZF','map','8uvERaM','read','50238OuZAFL','List\x20all\x20datasets\x20with\x20metadata','324443WgroNG','trim','Found\x20','pkField','\x20dataset(s)','code','name','90FhKjTi','1400014jJcRvN','string','dbtableConfig','allFields','dbName','appCode','source','tableName','632793HVWSco','961576skfmyk','str','length','243juJRyI','datasetKey','dataset','89790talOxX'];a49_0x4669=function(){return _0x24083;};return a49_0x4669();}(function(_0x2463ca,_0x163abf){const _0x2ef6a1=a49_0xb422,_0x10f65d=_0x2463ca();while(!![]){try{const _0x31beab=parseInt(_0x2ef6a1(0xd6))/0x1*(parseInt(_0x2ef6a1(0xd5))/0x2)+parseInt(_0x2ef6a1(0xec))/0x3+-parseInt(_0x2ef6a1(0xed))/0x4+-parseInt(_0x2ef6a1(0xe3))/0x5*(parseInt(_0x2ef6a1(0xda))/0x6)+parseInt(_0x2ef6a1(0xdc))/0x7*(parseInt(_0x2ef6a1(0xd8))/0x8)+parseInt(_0x2ef6a1(0xf0))/0x9*(parseInt(_0x2ef6a1(0xf3))/0xa)+-parseInt(_0x2ef6a1(0xe4))/0xb;if(_0x31beab===_0x163abf)break;else _0x10f65d['push'](_0x10f65d['shift']());}catch(_0x26451b){_0x10f65d['push'](_0x10f65d['shift']());}}}(a49_0x4669,0x26120));import{listDatasets}from'../../core/api-client.js';function a49_0xb422(_0x47ccfd,_0xc94421){_0x47ccfd=_0x47ccfd-0xd5;const _0x46696b=a49_0x4669();let _0xb42245=_0x46696b[_0x47ccfd];return _0xb42245;}import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetList={'service':a49_0x2ca151(0xf2),'command':'list','description':a49_0x2ca151(0xdb),'risk':a49_0x2ca151(0xd9),'flags':[{'name':a49_0x2ca151(0xe2),'type':a49_0x2ca151(0xe5),'description':'Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)'},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x16e275){const _0x35aed6=a49_0x2ca151,_0x47ce4a=_0x16e275[_0x35aed6(0xee)](_0x35aed6(0xe2)),_0x46e35c=_0x16e275[_0x35aed6(0xee)](_0x35aed6(0xe1)),_0x8c2615=await listDatasets(_0x16e275[_0x35aed6(0xe9)],{..._0x47ce4a&&{'name':_0x47ce4a},..._0x46e35c&&{'code':_0x46e35c}}),_0x2bf378=_0x8c2615[_0x35aed6(0xd7)](_0x24f16c=>{const _0x4720fa=_0x35aed6,_0x502037=_0x24f16c[_0x4720fa(0xe6)]??{};return{'id':_0x24f16c['id'],'name':_0x24f16c[_0x4720fa(0xe2)],'code':_0x24f16c['code'],'description':_0x24f16c['description'],'source':_0x24f16c[_0x4720fa(0xea)],'db':_0x502037[_0x4720fa(0xe8)],'table':_0x502037[_0x4720fa(0xeb)],'datasetKey':_0x502037[_0x4720fa(0xf1)],'pk':_0x502037[_0x4720fa(0xdf)],'fields':_0x502037['allFields']?_0x502037[_0x4720fa(0xe7)]['split'](',')[_0x4720fa(0xd7)](_0x1ff33f=>_0x1ff33f[_0x4720fa(0xdd)]()):[]};});return{'ok':!![],'data':{'total':_0x2bf378[_0x35aed6(0xef)],'datasets':_0x2bf378},'message':_0x35aed6(0xde)+_0x2bf378[_0x35aed6(0xef)]+_0x35aed6(0xe0)};}};
1
+ const a49_0x22c7cf=a49_0x1716;function a49_0x1716(_0x532f72,_0x1d7223){_0x532f72=_0x532f72-0x122;const _0x816814=a49_0x8168();let _0x171696=_0x816814[_0x532f72];return _0x171696;}(function(_0x56a519,_0x3a7ce1){const _0x23294d=a49_0x1716,_0x2cb016=_0x56a519();while(!![]){try{const _0x30a706=parseInt(_0x23294d(0x124))/0x1*(parseInt(_0x23294d(0x126))/0x2)+-parseInt(_0x23294d(0x12a))/0x3*(-parseInt(_0x23294d(0x134))/0x4)+parseInt(_0x23294d(0x13c))/0x5+-parseInt(_0x23294d(0x125))/0x6+-parseInt(_0x23294d(0x136))/0x7+parseInt(_0x23294d(0x139))/0x8+parseInt(_0x23294d(0x122))/0x9;if(_0x30a706===_0x3a7ce1)break;else _0x2cb016['push'](_0x2cb016['shift']());}catch(_0x32b267){_0x2cb016['push'](_0x2cb016['shift']());}}}(a49_0x8168,0x6088a));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetList={'service':a49_0x22c7cf(0x123),'command':a49_0x22c7cf(0x137),'description':a49_0x22c7cf(0x131),'risk':a49_0x22c7cf(0x128),'flags':[{'name':a49_0x22c7cf(0x13a),'type':a49_0x22c7cf(0x127),'description':a49_0x22c7cf(0x12f)},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x446d24){const _0xacacb3=a49_0x22c7cf,_0x412df4=_0x446d24[_0xacacb3(0x12d)](_0xacacb3(0x13a)),_0x2dccf1=_0x446d24['str']('code'),_0x5c8242=await listDatasets(_0x446d24['appCode'],{..._0x412df4&&{'name':_0x412df4},..._0x2dccf1&&{'code':_0x2dccf1}}),_0x3658bb=_0x5c8242[_0xacacb3(0x132)](_0x461140=>{const _0x49e51a=_0xacacb3,_0x205eb1=_0x461140[_0x49e51a(0x13d)]??{};return{'id':_0x461140['id'],'name':_0x461140[_0x49e51a(0x13a)],'code':_0x461140[_0x49e51a(0x13b)],'description':_0x461140[_0x49e51a(0x130)],'source':_0x461140[_0x49e51a(0x133)],'db':_0x205eb1['dbName'],'table':_0x205eb1[_0x49e51a(0x138)],'datasetKey':_0x205eb1[_0x49e51a(0x135)],'pk':_0x205eb1['pkField'],'fields':_0x205eb1[_0x49e51a(0x12e)]?_0x205eb1[_0x49e51a(0x12e)][_0x49e51a(0x129)](',')['map'](_0x3fe71c=>_0x3fe71c['trim']()):[]};});return{'ok':!![],'data':{'total':_0x3658bb['length'],'datasets':_0x3658bb},'message':'Found\x20'+_0x3658bb[_0xacacb3(0x12c)]+_0xacacb3(0x12b)};}};function a49_0x8168(){const _0xb52025=['120pghHHW','datasetKey','588070bxZrHr','list','tableName','248144FtfTEK','name','code','1072060uiWYLf','dbtableConfig','3521970YMkrcw','dataset','1TGocDF','2134374OGCTfo','28542osCxNI','string','read','split','18411XEVYzx','\x20dataset(s)','length','str','allFields','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','description','List\x20all\x20datasets\x20with\x20metadata','map','source'];a49_0x8168=function(){return _0xb52025;};return a49_0x8168();}
@@ -1 +1 @@
1
- const a50_0x1d6649=a50_0x148f;(function(_0x14c194,_0x2aba03){const _0x424505=a50_0x148f,_0x2f8245=_0x14c194();while(!![]){try{const _0x390145=-parseInt(_0x424505(0x9b))/0x1+parseInt(_0x424505(0xa9))/0x2+parseInt(_0x424505(0x97))/0x3+parseInt(_0x424505(0xa5))/0x4+-parseInt(_0x424505(0xa8))/0x5*(parseInt(_0x424505(0xa2))/0x6)+-parseInt(_0x424505(0xa6))/0x7*(-parseInt(_0x424505(0x96))/0x8)+parseInt(_0x424505(0x90))/0x9*(-parseInt(_0x424505(0xa0))/0xa);if(_0x390145===_0x2aba03)break;else _0x2f8245['push'](_0x2f8245['shift']());}catch(_0x47f880){_0x2f8245['push'](_0x2f8245['shift']());}}}(a50_0x4e97,0x875bc));import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';function a50_0x148f(_0x290560,_0x33142c){_0x290560=_0x290560-0x8e;const _0x4e97a7=a50_0x4e97();let _0x148ffc=_0x4e97a7[_0x290560];return _0x148ffc;}function a50_0x4e97(){const _0x2a3900=['Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','40vwWvZT','1198810wgPUDt','operation','name','468WBkHZH','type','length','method','Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)','enabled','136wkNsdM','318438WmVqzO','verbose','alias','string','455143QXIvaQ','code','str','displayName','boolean','46600JburqO','appCode','101418lFUgZi','bool','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','1246780kNjEtn','152299bCznnN'];a50_0x4e97=function(){return _0x2a3900;};return a50_0x4e97();}import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetOperations={'service':'dataset','command':'operations','description':'Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','risk':'read','flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a50_0x1d6649(0x99),'type':'string','description':a50_0x1d6649(0xa4)},{'name':a50_0x1d6649(0x8e),'type':a50_0x1d6649(0x9a),'description':a50_0x1d6649(0x94)},{'name':a50_0x1d6649(0x98),'type':a50_0x1d6649(0x9f),'description':a50_0x1d6649(0xa7)}],async 'execute'(_0x5d47ea){const _0x390a16=a50_0x1d6649,_0x2e2414=_0x5d47ea[_0x390a16(0x9d)](_0x390a16(0x9c)),_0x3cf83e=_0x5d47ea[_0x390a16(0x9d)](_0x390a16(0x8e)),_0x561de4=_0x5d47ea[_0x390a16(0xa3)](_0x390a16(0x98));if(_0x3cf83e){const {dataset:_0x13f772,operation:_0xb40bd0}=await getOperationDetail(_0x5d47ea[_0x390a16(0xa1)],_0x2e2414,_0x3cf83e);return{'ok':!![],'data':{'dataset':_0x13f772,'operation':_0xb40bd0}};}const {dataset:_0x36fbf3,operations:_0x4d9e0d}=await getDatasetOperations(_0x2e2414);return{'ok':!![],'data':{'dataset':_0x36fbf3,'total':_0x4d9e0d[_0x390a16(0x92)],'operations':_0x561de4?_0x4d9e0d:_0x4d9e0d['map'](_0x14fed2=>({'name':_0x14fed2[_0x390a16(0x8f)],'displayName':_0x14fed2[_0x390a16(0x9e)],'type':_0x14fed2[_0x390a16(0x91)],'method':_0x14fed2[_0x390a16(0x93)],'enabled':_0x14fed2[_0x390a16(0x95)]}))}};}};
1
+ function a50_0x48af(){const _0x3f9ed8=['displayName','type','192437idSNvu','Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','28eAarYK','read','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','verbose','Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)','431030gvbxuU','alias','boolean','str','264MQOdhz','method','1262253eCKRKC','string','name','map','387396YAQFyY','operation','code','operations','533640ckEqKX','18510588flQQIX','367026UStvaj','dataset'];a50_0x48af=function(){return _0x3f9ed8;};return a50_0x48af();}const a50_0x47695c=a50_0x58e5;(function(_0x10976c,_0x2a6a2b){const _0x4f0356=a50_0x58e5,_0x171535=_0x10976c();while(!![]){try{const _0x13eb78=parseInt(_0x4f0356(0x82))/0x1+-parseInt(_0x4f0356(0x86))/0x2+-parseInt(_0x4f0356(0x70))/0x3+-parseInt(_0x4f0356(0x76))/0x4*(-parseInt(_0x4f0356(0x7c))/0x5)+parseInt(_0x4f0356(0x80))/0x6*(parseInt(_0x4f0356(0x74))/0x7)+parseInt(_0x4f0356(0x8a))/0x8+-parseInt(_0x4f0356(0x6f))/0x9;if(_0x13eb78===_0x2a6a2b)break;else _0x171535['push'](_0x171535['shift']());}catch(_0x38d1da){_0x171535['push'](_0x171535['shift']());}}}(a50_0x48af,0xbbcd0));import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';function a50_0x58e5(_0x2a3a24,_0x6eff9){_0x2a3a24=_0x2a3a24-0x6f;const _0x48aff5=a50_0x48af();let _0x58e5f7=_0x48aff5[_0x2a3a24];return _0x58e5f7;}import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetOperations={'service':a50_0x47695c(0x71),'command':a50_0x47695c(0x89),'description':a50_0x47695c(0x75),'risk':a50_0x47695c(0x77),'flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a50_0x47695c(0x7d),'type':a50_0x47695c(0x83),'description':a50_0x47695c(0x79)},{'name':a50_0x47695c(0x87),'type':a50_0x47695c(0x83),'description':a50_0x47695c(0x7b)},{'name':a50_0x47695c(0x7a),'type':a50_0x47695c(0x7e),'description':a50_0x47695c(0x78)}],async 'execute'(_0x5133b1){const _0x7ee218=a50_0x47695c,_0x3ed736=_0x5133b1[_0x7ee218(0x7f)](_0x7ee218(0x88)),_0x4eae5b=_0x5133b1[_0x7ee218(0x7f)]('operation'),_0x3b5ea9=_0x5133b1['bool']('verbose');if(_0x4eae5b){const {dataset:_0x2e4151,operation:_0x3d91f2}=await getOperationDetail(_0x5133b1['appCode'],_0x3ed736,_0x4eae5b);return{'ok':!![],'data':{'dataset':_0x2e4151,'operation':_0x3d91f2}};}const {dataset:_0x20cb9e,operations:_0x1fbe06}=await getDatasetOperations(_0x3ed736);return{'ok':!![],'data':{'dataset':_0x20cb9e,'total':_0x1fbe06['length'],'operations':_0x3b5ea9?_0x1fbe06:_0x1fbe06[_0x7ee218(0x85)](_0x290232=>({'name':_0x290232[_0x7ee218(0x84)],'displayName':_0x290232[_0x7ee218(0x72)],'type':_0x290232[_0x7ee218(0x73)],'method':_0x290232[_0x7ee218(0x81)],'enabled':_0x290232['enabled']}))}};}};
@@ -1 +1 @@
1
- const a51_0x150016=a51_0x59e2;(function(_0x2a4adc,_0x28acac){const _0x134e21=a51_0x59e2,_0xafad32=_0x2a4adc();while(!![]){try{const _0x5c0247=parseInt(_0x134e21(0x1f3))/0x1+parseInt(_0x134e21(0x1f9))/0x2*(parseInt(_0x134e21(0x1fe))/0x3)+-parseInt(_0x134e21(0x1f2))/0x4+parseInt(_0x134e21(0x1ff))/0x5*(parseInt(_0x134e21(0x203))/0x6)+-parseInt(_0x134e21(0x1f6))/0x7*(-parseInt(_0x134e21(0x1f5))/0x8)+-parseInt(_0x134e21(0x1f4))/0x9+-parseInt(_0x134e21(0x200))/0xa*(-parseInt(_0x134e21(0x202))/0xb);if(_0x5c0247===_0x28acac)break;else _0xafad32['push'](_0xafad32['shift']());}catch(_0x5d955c){_0xafad32['push'](_0xafad32['shift']());}}}(a51_0x386d,0x88056));import{cancelDbAnalysis,getDbLinkInfo}from'../../core/api-client.js';function a51_0x386d(){const _0x39e6da=['Analysis\x20may\x20already\x20be\x20finished\x20or\x20never\x20started.','latestAnalysisTraceId','num','3EGgFac','28765SCVCwF','2400960riNEvL','plan','11KNfznY','426jKYzLo','Analysis\x20plan\x20/\x20trace\x20id\x20(optional\x20—\x20defaults\x20to\x20latest\x20trace\x20from\x20db\x20list/detail)','3476760fQSIlQ','830894nGetGH','6630147xauGti','5095352qhohLJ','7EneKzV','string','validation','93286PKSzYY','Cancel\x20a\x20running\x20schema\x20analysis.\x20Omit\x20--plan\x20to\x20use\x20latestAnalysisTraceId\x20from\x20the\x20link'];a51_0x386d=function(){return _0x39e6da;};return a51_0x386d();}import{CliErrors}from'../../errors.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a51_0x59e2(_0x14c97d,_0x4075b0){_0x14c97d=_0x14c97d-0x1f2;const _0x386d35=a51_0x386d();let _0x59e2f2=_0x386d35[_0x14c97d];return _0x59e2f2;}export const dbAnalyzeCancel={'service':'db','command':'analyze-cancel','description':a51_0x150016(0x1fa),'risk':'write','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a51_0x150016(0x201),'type':a51_0x150016(0x1f7),'description':a51_0x150016(0x204)}],async 'execute'(_0xb4cd38){const _0x5973f5=a51_0x150016,_0x2d7ad8=_0xb4cd38[_0x5973f5(0x1fd)]('id');let _0x34fe97=_0xb4cd38['str'](_0x5973f5(0x201))||undefined;if(!_0x34fe97){const _0x127619=await getDbLinkInfo(_0x2d7ad8);_0x34fe97=_0x127619[_0x5973f5(0x1fc)]??undefined;if(!_0x34fe97)throw CliErrors[_0x5973f5(0x1f8)]('No\x20latestAnalysisTraceId\x20on\x20this\x20link.\x20Pass\x20--plan\x20<traceId>\x20from\x20db\x20list/detail.',_0x5973f5(0x1fb));}return await cancelDbAnalysis(_0x34fe97),{'ok':!![],'data':{'dbLinkId':_0x2d7ad8,'planId':_0x34fe97},'message':'Cancel\x20requested\x20for\x20plan\x20'+_0x34fe97};}};
1
+ const a51_0xa4c595=a51_0x4887;(function(_0x74c3bb,_0x5a1593){const _0x33b674=a51_0x4887,_0x2afcbe=_0x74c3bb();while(!![]){try{const _0x5567bc=-parseInt(_0x33b674(0x132))/0x1*(-parseInt(_0x33b674(0x126))/0x2)+parseInt(_0x33b674(0x12a))/0x3+-parseInt(_0x33b674(0x130))/0x4+parseInt(_0x33b674(0x136))/0x5+-parseInt(_0x33b674(0x12e))/0x6+parseInt(_0x33b674(0x128))/0x7+-parseInt(_0x33b674(0x127))/0x8;if(_0x5567bc===_0x5a1593)break;else _0x2afcbe['push'](_0x2afcbe['shift']());}catch(_0x27c7cc){_0x2afcbe['push'](_0x2afcbe['shift']());}}}(a51_0x1de8,0xbf908));function a51_0x4887(_0xb77f07,_0x34d6bb){_0xb77f07=_0xb77f07-0x123;const _0x1de83d=a51_0x1de8();let _0x48879d=_0x1de83d[_0xb77f07];return _0x48879d;}function a51_0x1de8(){const _0x1b06bf=['Analysis\x20may\x20already\x20be\x20finished\x20or\x20never\x20started.','2301052cEZCol','analyze-cancel','1207962gpSbTG','str','latestAnalysisTraceId','write','6073830GpcbWG','Cancel\x20requested\x20for\x20plan\x20','Cancel\x20a\x20running\x20schema\x20analysis.\x20Omit\x20--plan\x20to\x20use\x20latestAnalysisTraceId\x20from\x20the\x20link','validation','num','2DyvIUA','15893472RYhmEm','2661841SocrSG','Analysis\x20plan\x20/\x20trace\x20id\x20(optional\x20—\x20defaults\x20to\x20latest\x20trace\x20from\x20db\x20list/detail)','3975018FXDLCv','string','plan','No\x20latestAnalysisTraceId\x20on\x20this\x20link.\x20Pass\x20--plan\x20<traceId>\x20from\x20db\x20list/detail.','4688412FZoBPg'];a51_0x1de8=function(){return _0x1b06bf;};return a51_0x1de8();}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':a51_0xa4c595(0x131),'description':a51_0xa4c595(0x123),'risk':a51_0xa4c595(0x135),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a51_0xa4c595(0x12c),'type':a51_0xa4c595(0x12b),'description':a51_0xa4c595(0x129)}],async 'execute'(_0x43fdbf){const _0x46862b=a51_0xa4c595,_0x2a3a20=_0x43fdbf[_0x46862b(0x125)]('id');let _0x24b01b=_0x43fdbf[_0x46862b(0x133)](_0x46862b(0x12c))||undefined;if(!_0x24b01b){const _0x3104c6=await getDbLinkInfo(_0x2a3a20);_0x24b01b=_0x3104c6[_0x46862b(0x134)]??undefined;if(!_0x24b01b)throw CliErrors[_0x46862b(0x124)](_0x46862b(0x12d),_0x46862b(0x12f));}return await cancelDbAnalysis(_0x24b01b),{'ok':!![],'data':{'dbLinkId':_0x2a3a20,'planId':_0x24b01b},'message':_0x46862b(0x137)+_0x24b01b};}};
@@ -1 +1 @@
1
- const a52_0xb7e814=a52_0x3cde;(function(_0x18847a,_0x5d49ed){const _0x13c55f=a52_0x3cde,_0xf1edd0=_0x18847a();while(!![]){try{const _0x1c3770=parseInt(_0x13c55f(0x138))/0x1+parseInt(_0x13c55f(0x13c))/0x2*(-parseInt(_0x13c55f(0x133))/0x3)+-parseInt(_0x13c55f(0x143))/0x4*(-parseInt(_0x13c55f(0x134))/0x5)+-parseInt(_0x13c55f(0x137))/0x6*(-parseInt(_0x13c55f(0x131))/0x7)+parseInt(_0x13c55f(0x13f))/0x8*(parseInt(_0x13c55f(0x132))/0x9)+-parseInt(_0x13c55f(0x144))/0xa+parseInt(_0x13c55f(0x140))/0xb*(-parseInt(_0x13c55f(0x13d))/0xc);if(_0x1c3770===_0x5d49ed)break;else _0xf1edd0['push'](_0xf1edd0['shift']());}catch(_0x1cf038){_0xf1edd0['push'](_0xf1edd0['shift']());}}}(a52_0x4a2e,0xe5fea));function a52_0x3cde(_0x2eadc2,_0x3e769e){_0x2eadc2=_0x2eadc2-0x131;const _0x4a2e54=a52_0x4a2e();let _0x3cde70=_0x4a2e54[_0x2eadc2];return _0x3cde70;}import{startDbAnalysis}from'../../core/api-client.js';function a52_0x4a2e(){const _0xb1a73=['493691MjhRpg','map','str','tables','1848302izdvMf','26472XaoyWE','trim','128wPVbPs','121YmGGru','analyze-start','string','1776044qRWGaM','15116930DPdYox','Started\x20analysis\x20for\x20db\x20link\x20','501963bltITT','768942MbfrNj','6vclJDp','10FIPuUW','filter','Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)','132qaosll'];a52_0x4a2e=function(){return _0xb1a73;};return a52_0x4a2e();}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeStart={'service':'db','command':a52_0xb7e814(0x141),'description':'Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','risk':'write','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a52_0xb7e814(0x13b),'type':a52_0xb7e814(0x142),'description':a52_0xb7e814(0x136)}],async 'execute'(_0x5ea0c3){const _0x2e053b=a52_0xb7e814,_0x5b1490=_0x5ea0c3['num']('id'),_0x3c50da=_0x5ea0c3[_0x2e053b(0x13a)]('tables'),_0x2e5fc9=_0x3c50da?_0x3c50da['split'](',')[_0x2e053b(0x139)](_0x38688b=>_0x38688b[_0x2e053b(0x13e)]())[_0x2e053b(0x135)](Boolean):undefined,_0x18793a=await startDbAnalysis(_0x5b1490,_0x2e5fc9);return{'ok':!![],'data':{'dbLinkId':_0x5b1490,'planId':_0x18793a,'tableNames':_0x2e5fc9??[]},'message':_0x2e053b(0x145)+_0x5b1490};}};
1
+ const a52_0xce37bf=a52_0x285e;(function(_0x1ded8f,_0x1ceaf5){const _0x2efe2e=a52_0x285e,_0x4336a8=_0x1ded8f();while(!![]){try{const _0x4326ea=parseInt(_0x2efe2e(0x192))/0x1*(-parseInt(_0x2efe2e(0x19a))/0x2)+-parseInt(_0x2efe2e(0x193))/0x3*(-parseInt(_0x2efe2e(0x18d))/0x4)+parseInt(_0x2efe2e(0x191))/0x5+parseInt(_0x2efe2e(0x18e))/0x6+-parseInt(_0x2efe2e(0x197))/0x7*(-parseInt(_0x2efe2e(0x190))/0x8)+parseInt(_0x2efe2e(0x188))/0x9+-parseInt(_0x2efe2e(0x19b))/0xa;if(_0x4326ea===_0x1ceaf5)break;else _0x4336a8['push'](_0x4336a8['shift']());}catch(_0x198f40){_0x4336a8['push'](_0x4336a8['shift']());}}}(a52_0x56b0,0x815cb));function a52_0x56b0(){const _0x774bc=['2JzVyXD','4095870KswXEH','6368535UlBxBZ','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','tables','Started\x20analysis\x20for\x20db\x20link\x20','filter','808qbUCVu','1148178VjOHgW','string','272UCpMAI','407275aeUhcL','775825tcqXvs','7950nGtBVq','analyze-start','Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)','split','41083hjrlzp','map','write'];a52_0x56b0=function(){return _0x774bc;};return a52_0x56b0();}import{startDbAnalysis}from'../../core/api-client.js';function a52_0x285e(_0x36a2aa,_0x345694){_0x36a2aa=_0x36a2aa-0x188;const _0x56b0f0=a52_0x56b0();let _0x285ed4=_0x56b0f0[_0x36a2aa];return _0x285ed4;}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeStart={'service':'db','command':a52_0xce37bf(0x194),'description':a52_0xce37bf(0x189),'risk':a52_0xce37bf(0x199),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a52_0xce37bf(0x18a),'type':a52_0xce37bf(0x18f),'description':a52_0xce37bf(0x195)}],async 'execute'(_0x1e00fa){const _0x2fc371=a52_0xce37bf,_0x58fef3=_0x1e00fa['num']('id'),_0x12335a=_0x1e00fa['str'](_0x2fc371(0x18a)),_0x11d420=_0x12335a?_0x12335a[_0x2fc371(0x196)](',')[_0x2fc371(0x198)](_0xf32ae1=>_0xf32ae1['trim']())[_0x2fc371(0x18c)](Boolean):undefined,_0x2e59bc=await startDbAnalysis(_0x58fef3,_0x11d420);return{'ok':!![],'data':{'dbLinkId':_0x58fef3,'planId':_0x2e59bc,'tableNames':_0x11d420??[]},'message':_0x2fc371(0x18b)+_0x58fef3};}};
@@ -1 +1 @@
1
- function a53_0x4e92(_0x58ee34,_0x56418a){_0x58ee34=_0x58ee34-0x198;const _0x22e511=a53_0x22e5();let _0x4e928d=_0x22e511[_0x58ee34];return _0x4e928d;}const a53_0x58e02b=a53_0x4e92;(function(_0x1a6ccd,_0x4a320c){const _0x58177e=a53_0x4e92,_0x5a9cb8=_0x1a6ccd();while(!![]){try{const _0x55302f=-parseInt(_0x58177e(0x1a0))/0x1*(parseInt(_0x58177e(0x1a3))/0x2)+-parseInt(_0x58177e(0x19e))/0x3+parseInt(_0x58177e(0x19a))/0x4+parseInt(_0x58177e(0x199))/0x5+parseInt(_0x58177e(0x1a1))/0x6*(parseInt(_0x58177e(0x19c))/0x7)+-parseInt(_0x58177e(0x198))/0x8+parseInt(_0x58177e(0x1a2))/0x9*(-parseInt(_0x58177e(0x19b))/0xa);if(_0x55302f===_0x4a320c)break;else _0x5a9cb8['push'](_0x5a9cb8['shift']());}catch(_0x4c69c3){_0x5a9cb8['push'](_0x5a9cb8['shift']());}}}(a53_0x22e5,0x2b421));import{getDbAnalysisStatus}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a53_0x22e5(){const _0xc04594=['806488itzRNT','20ctXQfA','651595cnOPkX','read','596838RbHrEI','str','4691ttiSQt','18xfoIbY','507231VDnWRb','22oEPABp','plan','80184lXXzre','347980RHLjGz'];a53_0x22e5=function(){return _0xc04594;};return a53_0x22e5();}export const dbAnalyzeStatus={'service':'db','command':'analyze-status','description':'Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','risk':a53_0x58e02b(0x19d),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':'plan','type':'string','required':!![],'description':'Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)'}],async 'execute'(_0x42b80b){const _0x3870ab=a53_0x58e02b,_0x221683=_0x42b80b['num']('id'),_0x53102b=_0x42b80b[_0x3870ab(0x19f)](_0x3870ab(0x1a4)),_0x5dddae=await getDbAnalysisStatus(_0x53102b);return{'ok':!![],'data':{'dbLinkId':_0x221683,'planId':_0x53102b,'status':_0x5dddae},'message':'Analysis\x20status\x20for\x20'+_0x53102b};}};
1
+ const a53_0x651328=a53_0x13d7;function a53_0x13d7(_0x2513e5,_0x3703d5){_0x2513e5=_0x2513e5-0xae;const _0x2eff19=a53_0x2eff();let _0x13d75b=_0x2eff19[_0x2513e5];return _0x13d75b;}(function(_0x41ee1d,_0x555b43){const _0x3603cb=a53_0x13d7,_0x490070=_0x41ee1d();while(!![]){try{const _0x18b84c=-parseInt(_0x3603cb(0xb2))/0x1+-parseInt(_0x3603cb(0xb7))/0x2+-parseInt(_0x3603cb(0xaf))/0x3+parseInt(_0x3603cb(0xbb))/0x4+parseInt(_0x3603cb(0xb1))/0x5*(-parseInt(_0x3603cb(0xb4))/0x6)+parseInt(_0x3603cb(0xb9))/0x7*(parseInt(_0x3603cb(0xb3))/0x8)+parseInt(_0x3603cb(0xbe))/0x9;if(_0x18b84c===_0x555b43)break;else _0x490070['push'](_0x490070['shift']());}catch(_0x9d6b3c){_0x490070['push'](_0x490070['shift']());}}}(a53_0x2eff,0x3b953));import{getDbAnalysisStatus}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeStatus={'service':'db','command':a53_0x651328(0xb8),'description':a53_0x651328(0xae),'risk':a53_0x651328(0xbd),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a53_0x651328(0xb0),'type':a53_0x651328(0xbc),'required':!![],'description':'Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)'}],async 'execute'(_0x140b00){const _0x2167a1=a53_0x651328,_0x5c3dc3=_0x140b00[_0x2167a1(0xb5)]('id'),_0x141706=_0x140b00[_0x2167a1(0xb6)](_0x2167a1(0xb0)),_0x2b6081=await getDbAnalysisStatus(_0x141706);return{'ok':!![],'data':{'dbLinkId':_0x5c3dc3,'planId':_0x141706,'status':_0x2b6081},'message':_0x2167a1(0xba)+_0x141706};}};function a53_0x2eff(){const _0x16988f=['1017138MtJoDf','num','str','326642LVcnpk','analyze-status','329RSmtSC','Analysis\x20status\x20for\x20','675664dwsDRz','string','read','3737493ipNZYP','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','36741mSZvsD','plan','5jxMQkW','42098ebgZFB','8008EfmXSR'];a53_0x2eff=function(){return _0x16988f;};return a53_0x2eff();}