@lovrabet/rabetbase-cli 2.0.8 → 2.0.10

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 (138) 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/logout.js +1 -1
  11. package/lib/cli-flags.js +1 -1
  12. package/lib/cli.js +1 -1
  13. package/lib/commands/api/doc.js +1 -1
  14. package/lib/commands/api/index.js +1 -1
  15. package/lib/commands/api/list.js +1 -1
  16. package/lib/commands/api/pull.js +1 -1
  17. package/lib/commands/api/shared.js +1 -1
  18. package/lib/commands/app/add.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/remote.js +1 -1
  22. package/lib/commands/app/remove.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app/use.js +1 -1
  25. package/lib/commands/auth/index.js +1 -1
  26. package/lib/commands/bff/delete.js +1 -1
  27. package/lib/commands/bff/detail.js +1 -1
  28. package/lib/commands/bff/index.js +1 -1
  29. package/lib/commands/bff/list.js +1 -1
  30. package/lib/commands/bff/new.js +1 -1
  31. package/lib/commands/bff/pull.js +1 -1
  32. package/lib/commands/bff/push.js +1 -1
  33. package/lib/commands/bff/status.js +1 -1
  34. package/lib/commands/cli-update.js +1 -1
  35. package/lib/commands/codegen/index.js +1 -1
  36. package/lib/commands/codegen/sdk.js +1 -1
  37. package/lib/commands/codegen/sql.js +1 -1
  38. package/lib/commands/common/app-selector.js +1 -1
  39. package/lib/commands/common/flags.js +1 -1
  40. package/lib/commands/common/validate.js +1 -1
  41. package/lib/commands/config/get.js +1 -1
  42. package/lib/commands/config/index.js +1 -1
  43. package/lib/commands/config/list.js +1 -1
  44. package/lib/commands/config/set.js +1 -1
  45. package/lib/commands/config/shared.js +1 -1
  46. package/lib/commands/dataset/detail.js +1 -1
  47. package/lib/commands/dataset/index.js +1 -1
  48. package/lib/commands/dataset/links.js +1 -1
  49. package/lib/commands/dataset/list.js +1 -1
  50. package/lib/commands/dataset/operations.js +1 -1
  51. package/lib/commands/doctor.js +1 -1
  52. package/lib/commands/init/index.js +1 -1
  53. package/lib/commands/logs/index.js +1 -1
  54. package/lib/commands/menu/index.js +1 -1
  55. package/lib/commands/menu/shared/compare-table.js +1 -1
  56. package/lib/commands/menu/shared/index.js +1 -1
  57. package/lib/commands/menu/shared/inquirer.js +1 -1
  58. package/lib/commands/menu/shared/local-pages.js +1 -1
  59. package/lib/commands/menu/shared/logic.js +1 -1
  60. package/lib/commands/menu/shared/service.js +1 -1
  61. package/lib/commands/menu/shared/sync-core.js +1 -1
  62. package/lib/commands/menu/shared/update-core.js +1 -1
  63. package/lib/commands/menu/shared/valid-url.js +1 -1
  64. package/lib/commands/menu/sync.js +1 -1
  65. package/lib/commands/menu/update.js +1 -1
  66. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  67. package/lib/commands/project/create/format-elapsed.js +1 -1
  68. package/lib/commands/project/create/main.js +1 -1
  69. package/lib/commands/project/create/non-interactive.js +1 -1
  70. package/lib/commands/project/create/project-template-path.js +1 -1
  71. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  72. package/lib/commands/project/create/use-format-code.js +1 -1
  73. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  74. package/lib/commands/project/index.js +1 -1
  75. package/lib/commands/project/init.js +1 -1
  76. package/lib/commands/project/upgrade.js +1 -1
  77. package/lib/commands/registry.js +1 -1
  78. package/lib/commands/run/index.js +1 -1
  79. package/lib/commands/schema.js +1 -1
  80. package/lib/commands/skill/index.js +1 -1
  81. package/lib/commands/sql/detail.js +1 -1
  82. package/lib/commands/sql/exec.js +1 -1
  83. package/lib/commands/sql/index.js +1 -1
  84. package/lib/commands/sql/list.js +1 -1
  85. package/lib/commands/sql/save.js +1 -1
  86. package/lib/commands/sql/validate.js +1 -1
  87. package/lib/constant/cli.js +1 -1
  88. package/lib/constant/domain.js +1 -1
  89. package/lib/constant/env.js +1 -1
  90. package/lib/constant/paths.js +1 -0
  91. package/lib/context.js +1 -1
  92. package/lib/core/alias-resolver.js +1 -1
  93. package/lib/core/api-client.js +1 -1
  94. package/lib/core/bff/config.js +1 -1
  95. package/lib/core/bff/file-system.js +1 -1
  96. package/lib/core/bff/hash.js +1 -1
  97. package/lib/core/bff/lock.js +1 -1
  98. package/lib/core/bff/utils.js +1 -1
  99. package/lib/core/db-resolver.js +1 -1
  100. package/lib/core/sql-validator.js +1 -1
  101. package/lib/errors.js +1 -1
  102. package/lib/framework/build-all-flags.js +1 -1
  103. package/lib/framework/flags.js +1 -1
  104. package/lib/framework/help.js +1 -1
  105. package/lib/framework/index.js +1 -1
  106. package/lib/framework/output.js +1 -1
  107. package/lib/framework/response.js +1 -1
  108. package/lib/framework/runner.js +1 -1
  109. package/lib/framework/schema-export.js +1 -1
  110. package/lib/framework/types.js +1 -1
  111. package/lib/generated/build-info.js +1 -1
  112. package/lib/help.js +1 -1
  113. package/lib/skills/main.js +1 -1
  114. package/lib/skills/npx-skills-add.js +1 -1
  115. package/lib/telemetry/cli-command-trace.js +1 -1
  116. package/lib/telemetry/cli-help-trace.js +1 -1
  117. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  118. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  119. package/lib/telemetry/send-cli-trace-log.js +1 -1
  120. package/lib/utils/ai_config.js +1 -1
  121. package/lib/utils/apply-jq-filter.js +1 -1
  122. package/lib/utils/cdn-config.js +1 -1
  123. package/lib/utils/check-sdk-version.js +1 -1
  124. package/lib/utils/cli-version-check.js +1 -1
  125. package/lib/utils/config.js +1 -1
  126. package/lib/utils/copy-directory.js +1 -1
  127. package/lib/utils/file-utils.js +1 -1
  128. package/lib/utils/guides-cdn.js +1 -1
  129. package/lib/utils/http-client.js +1 -1
  130. package/lib/utils/is-non-interactive.js +1 -1
  131. package/lib/utils/logger.js +1 -1
  132. package/lib/utils/platform.js +1 -1
  133. package/lib/utils/rules-cdn.js +1 -1
  134. package/lib/utils/sleep.js +1 -1
  135. package/lib/utils/template-replacer.js +1 -1
  136. package/lib/utils/version.js +1 -1
  137. package/lib/utils/with-active-cookie.js +1 -1
  138. package/package.json +5 -4
@@ -1 +1 @@
1
- const a33_0x10c441=a33_0x3489;(function(_0x16f080,_0x2266f7){const _0x5c2fcc=a33_0x3489,_0x315ab9=_0x16f080();while(!![]){try{const _0x4642a0=parseInt(_0x5c2fcc(0x1ef))/0x1*(parseInt(_0x5c2fcc(0x1be))/0x2)+-parseInt(_0x5c2fcc(0x1d7))/0x3*(parseInt(_0x5c2fcc(0x1d8))/0x4)+-parseInt(_0x5c2fcc(0x1f0))/0x5*(parseInt(_0x5c2fcc(0x1d5))/0x6)+parseInt(_0x5c2fcc(0x1d2))/0x7+-parseInt(_0x5c2fcc(0x1c5))/0x8+parseInt(_0x5c2fcc(0x1c4))/0x9+parseInt(_0x5c2fcc(0x1ce))/0xa*(-parseInt(_0x5c2fcc(0x1de))/0xb);if(_0x4642a0===_0x2266f7)break;else _0x315ab9['push'](_0x315ab9['shift']());}catch(_0x4a32e3){_0x315ab9['push'](_0x315ab9['shift']());}}}(a33_0x1490,0xdb3e1));import a33_0x403ef5 from'chalk';import a33_0x9debc3 from'ora';import a33_0x4d7306 from'semver';function a33_0x1490(){const _0x4b4934=['7002anGSGf','Update\x20available:\x20','3VYoDxc','3972404DnoJfZ','Updating\x20via\x20','run','slice','succeed','message','77VulcGZ','toLowerCase','bun','red','fail','Current\x20version:\x20','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','Checking\x20for\x20updates...','timeout','start','...','cli','install','info','log','https://registry.npmjs.org/','Updated\x20to\x20v','551Dlxazd','1810PFnLbu','Unable\x20to\x20check\x20for\x20updates','green','6490BPoOmQ','npm','Update\x20failed','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','update','14164092BFAJyY','9355744qNBDJD','json','\x20→\x20','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','Version\x20comparison\x20failed','yellow','Already\x20up\x20to\x20date\x20(v','@latest','\x20\x20Try\x20manually:\x20','1400290eOwwfo','coerce','error','version','7710220LRDfCO','stableVersion','gray'];a33_0x1490=function(){return _0x4b4934;};return a33_0x1490();}import{execa}from'execa';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a33_0x3489(_0x1313dc,_0x5d1091){_0x1313dc=_0x1313dc-0x1be;const _0x14904d=a33_0x1490();let _0x3489cf=_0x14904d[_0x1313dc];return _0x3489cf;}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 _0x4d3469=a33_0x3489;return GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x4d3469(0x1db)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x19f763=a33_0x3489,_0x1fb85f=process['execPath'][_0x19f763(0x1df)]();if(_0x1fb85f['includes']('bun'))return _0x19f763(0x1e0);return'npm';}async function fetchLatestNpmVersion(){const _0x157838=a33_0x3489;try{const _0x1e93df=await fetch(_0x157838(0x1ed)+NPM_PACKAGE_NAME+'/latest',{'signal':AbortSignal[_0x157838(0x1e6)](0x2710)});if(!_0x1e93df['ok'])return null;const _0x184447=await _0x1e93df[_0x157838(0x1c6)]();return _0x184447[_0x157838(0x1d1)]??null;}catch{return null;}}async function fetchLatestVersion(){const _0x39bee9=a33_0x3489,_0x36883c=await fetchLatestNpmVersion();if(_0x36883c)return _0x36883c;const _0x49e630=await getCdnConfig();return _0x49e630?.[_0x39bee9(0x1e9)]?.[_0x39bee9(0x1d3)]??null;}async function execute(_0x810edc){const _0x74d9f0=a33_0x3489,_0x300a0b=getCurrentVersion();console[_0x74d9f0(0x1ec)](_0x74d9f0(0x1e3)+_0x300a0b);const _0x4d3e02=a33_0x9debc3(_0x74d9f0(0x1e5))['start'](),_0x34b55a=await fetchLatestVersion();if(!_0x34b55a)return _0x4d3e02[_0x74d9f0(0x1e2)](_0x74d9f0(0x1c8)),console[_0x74d9f0(0x1ec)](a33_0x403ef5[_0x74d9f0(0x1d4)](_0x74d9f0(0x1c1)+NPM_PACKAGE_NAME+_0x74d9f0(0x1cc))),{'ok':![],'message':_0x74d9f0(0x1f1)};const _0xc8ede=a33_0x4d7306[_0x74d9f0(0x1cf)](_0x300a0b),_0x3196f2=a33_0x4d7306[_0x74d9f0(0x1cf)](_0x34b55a);if(!_0xc8ede||!_0x3196f2)return _0x4d3e02[_0x74d9f0(0x1e2)](_0x74d9f0(0x1c9)),{'ok':![],'message':_0x74d9f0(0x1c9)};if(!a33_0x4d7306['lt'](_0xc8ede,_0x3196f2))return _0x4d3e02['succeed'](_0x74d9f0(0x1cb)+_0x34b55a+')'),{'ok':!![]};_0x4d3e02[_0x74d9f0(0x1eb)](_0x74d9f0(0x1d6)+a33_0x403ef5[_0x74d9f0(0x1ca)](_0x300a0b)+_0x74d9f0(0x1c7)+a33_0x403ef5[_0x74d9f0(0x1f2)](_0x34b55a));const _0xe64077=detectPackageManager(),_0x281824=_0xe64077===_0x74d9f0(0x1bf)?resolveNpmBin(_0x74d9f0(0x1bf)):_0xe64077,_0x30008e=a33_0x9debc3(_0x74d9f0(0x1d9)+_0xe64077+_0x74d9f0(0x1e8))[_0x74d9f0(0x1e7)]();try{return await execa(_0x281824,[_0x74d9f0(0x1ea),'-g',NPM_PACKAGE_NAME+_0x74d9f0(0x1cc)],{'stdio':'pipe'}),_0x30008e[_0x74d9f0(0x1dc)](_0x74d9f0(0x1ee)+_0x34b55a),console[_0x74d9f0(0x1ec)](a33_0x403ef5['gray'](_0x74d9f0(0x1c2))),{'ok':!![]};}catch(_0x203914){return _0x30008e['fail'](_0x74d9f0(0x1c0)),console[_0x74d9f0(0x1d0)](a33_0x403ef5[_0x74d9f0(0x1e1)]('\x20\x20'+_0x203914[_0x74d9f0(0x1dd)])),console[_0x74d9f0(0x1ec)](a33_0x403ef5[_0x74d9f0(0x1d4)](_0x74d9f0(0x1cd)+_0xe64077+'\x20install\x20-g\x20'+NPM_PACKAGE_NAME+_0x74d9f0(0x1cc))),{'ok':![],'message':_0x203914[_0x74d9f0(0x1dd)]};}}export const updateDefinition={'service':a33_0x10c441(0x1c3),'command':a33_0x10c441(0x1da),'description':a33_0x10c441(0x1e4),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a33_0x468fd2=a33_0x426b;(function(_0x2f1bb4,_0x505c60){const _0x238036=a33_0x426b,_0x2aa78a=_0x2f1bb4();while(!![]){try{const _0x3c37ad=parseInt(_0x238036(0x140))/0x1+parseInt(_0x238036(0x143))/0x2*(parseInt(_0x238036(0x146))/0x3)+-parseInt(_0x238036(0x145))/0x4+parseInt(_0x238036(0x15a))/0x5+-parseInt(_0x238036(0x149))/0x6*(-parseInt(_0x238036(0x156))/0x7)+parseInt(_0x238036(0x141))/0x8+-parseInt(_0x238036(0x169))/0x9*(parseInt(_0x238036(0x14f))/0xa);if(_0x3c37ad===_0x505c60)break;else _0x2aa78a['push'](_0x2aa78a['shift']());}catch(_0x500458){_0x2aa78a['push'](_0x2aa78a['shift']());}}}(a33_0x2d5e,0xf1569));import a33_0x3b9052 from'chalk';function a33_0x2d5e(){const _0x5d039a=['update','2308145UTycwD','Unable\x20to\x20check\x20for\x20updates','log','yellow','3495735pRwwmr','error','Updating\x20via\x20','pipe','\x20→\x20','run','\x20install\x20-g\x20','/latest','fail','Version\x20comparison\x20failed','start','bun','timeout','npm','Update\x20available:\x20','738kmnesV','https://registry.npmjs.org/','gray','write','info','green','install','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','476895MekklE','10434440WAOdNT','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','1518124GrKGqw','json','484240AtrPKp','6AXqYSO','execPath','message','24vEIOCM','@latest','coerce','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','includes','stableVersion','513150WWDImF','cli','succeed','unknown','red','toLowerCase'];a33_0x2d5e=function(){return _0x5d039a;};return a33_0x2d5e();}import a33_0x369daf from'ora';import a33_0xb84406 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 _0x20897e=a33_0x426b;return GIT_COMMIT!==_0x20897e(0x152)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x388975=a33_0x426b,_0x228436=process[_0x388975(0x147)][_0x388975(0x154)]();if(_0x228436[_0x388975(0x14d)](_0x388975(0x165)))return _0x388975(0x165);return _0x388975(0x167);}async function fetchLatestNpmVersion(){const _0x180344=a33_0x426b;try{const _0x16255b=await fetch(_0x180344(0x16a)+NPM_PACKAGE_NAME+_0x180344(0x161),{'signal':AbortSignal[_0x180344(0x166)](0x2710)});if(!_0x16255b['ok'])return null;const _0x19e8e3=await _0x16255b[_0x180344(0x144)]();return _0x19e8e3['version']??null;}catch{return null;}}async function fetchLatestVersion(){const _0x4479f6=a33_0x426b,_0x464512=await fetchLatestNpmVersion();if(_0x464512)return _0x464512;const _0x28d939=await getCdnConfig();return _0x28d939?.[_0x4479f6(0x150)]?.[_0x4479f6(0x14e)]??null;}async function execute(_0x4370b1){const _0x13d8aa=a33_0x426b,_0x28f853=getCurrentVersion();console[_0x13d8aa(0x158)]('Current\x20version:\x20'+_0x28f853);const _0x4bace2=a33_0x369daf('Checking\x20for\x20updates...')['start'](),_0x2dc6ba=await fetchLatestVersion();if(!_0x2dc6ba)return _0x4bace2[_0x13d8aa(0x162)](_0x13d8aa(0x142)),console[_0x13d8aa(0x158)](a33_0x3b9052['gray'](_0x13d8aa(0x13f)+NPM_PACKAGE_NAME+_0x13d8aa(0x14a))),{'ok':![],'message':_0x13d8aa(0x157)};const _0x599677=a33_0xb84406[_0x13d8aa(0x14b)](_0x28f853),_0x4773a0=a33_0xb84406[_0x13d8aa(0x14b)](_0x2dc6ba);if(!_0x599677||!_0x4773a0)return _0x4bace2[_0x13d8aa(0x162)](_0x13d8aa(0x163)),{'ok':![],'message':'Version\x20comparison\x20failed'};if(!a33_0xb84406['lt'](_0x599677,_0x4773a0))return _0x4bace2[_0x13d8aa(0x151)]('Already\x20up\x20to\x20date\x20(v'+_0x2dc6ba+')'),{'ok':!![]};_0x4bace2[_0x13d8aa(0x13c)](_0x13d8aa(0x168)+a33_0x3b9052[_0x13d8aa(0x159)](_0x28f853)+_0x13d8aa(0x15e)+a33_0x3b9052[_0x13d8aa(0x13d)](_0x2dc6ba));const _0x316300=detectPackageManager(),_0x2d3524=_0x316300===_0x13d8aa(0x167)?resolveNpmBin(_0x13d8aa(0x167)):_0x316300,_0x57c73b=a33_0x369daf(_0x13d8aa(0x15c)+_0x316300+'...')[_0x13d8aa(0x164)]();try{return await execa(_0x2d3524,[_0x13d8aa(0x13e),'-g',NPM_PACKAGE_NAME+_0x13d8aa(0x14a)],{'stdio':_0x13d8aa(0x15d)}),_0x57c73b[_0x13d8aa(0x151)]('Updated\x20to\x20v'+_0x2dc6ba),console[_0x13d8aa(0x158)](a33_0x3b9052[_0x13d8aa(0x13a)](_0x13d8aa(0x14c))),{'ok':!![]};}catch(_0x148911){return _0x57c73b['fail']('Update\x20failed'),console[_0x13d8aa(0x15b)](a33_0x3b9052[_0x13d8aa(0x153)]('\x20\x20'+_0x148911[_0x13d8aa(0x148)])),console['log'](a33_0x3b9052[_0x13d8aa(0x13a)]('\x20\x20Try\x20manually:\x20'+_0x316300+_0x13d8aa(0x160)+NPM_PACKAGE_NAME+_0x13d8aa(0x14a))),{'ok':![],'message':_0x148911[_0x13d8aa(0x148)]};}}function a33_0x426b(_0x59a603,_0x4403ab){_0x59a603=_0x59a603-0x13a;const _0x2d5e84=a33_0x2d5e();let _0x426bde=_0x2d5e84[_0x59a603];return _0x426bde;}export const updateDefinition={'service':a33_0x468fd2(0x155),'command':a33_0x468fd2(0x15f),'description':'Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','risk':a33_0x468fd2(0x13b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x30b467,_0x5aa0e6){const _0xf5bfc7=a34_0x5279,_0x57df93=_0x30b467();while(!![]){try{const _0x238bda=-parseInt(_0xf5bfc7(0x11f))/0x1+parseInt(_0xf5bfc7(0x120))/0x2*(parseInt(_0xf5bfc7(0x11a))/0x3)+parseInt(_0xf5bfc7(0x116))/0x4*(parseInt(_0xf5bfc7(0x121))/0x5)+parseInt(_0xf5bfc7(0x119))/0x6*(-parseInt(_0xf5bfc7(0x11c))/0x7)+parseInt(_0xf5bfc7(0x117))/0x8*(parseInt(_0xf5bfc7(0x118))/0x9)+-parseInt(_0xf5bfc7(0x11b))/0xa*(parseInt(_0xf5bfc7(0x11e))/0xb)+parseInt(_0xf5bfc7(0x122))/0xc*(parseInt(_0xf5bfc7(0x11d))/0xd);if(_0x238bda===_0x5aa0e6)break;else _0x57df93['push'](_0x57df93['shift']());}catch(_0x14135e){_0x57df93['push'](_0x57df93['shift']());}}}(a34_0x1bc5,0xb8b5f));import{codegenSdk}from'./sdk.js';import{codegenSql}from'./sql.js';function a34_0x5279(_0x3a246d,_0x4a7e73){_0x3a246d=_0x3a246d-0x116;const _0x1bc5c0=a34_0x1bc5();let _0x52791e=_0x1bc5c0[_0x3a246d];return _0x52791e;}export const codegenDefinitions=[codegenSdk,codegenSql];function a34_0x1bc5(){const _0x43b35f=['336EDsJsG','3364408ySEfka','27UZuJJj','3264036ngbBrI','3CFKVaF','4143110pYQTnc','7bxEuHl','1365gdpxid','22yIbcok','877659hiZNky','529922RDHBrI','18160wIopGP','134304lpUIYp'];a34_0x1bc5=function(){return _0x43b35f;};return a34_0x1bc5();}
1
+ (function(_0x313fca,_0x2a9fa4){const _0x305bb5=a34_0x4640,_0x55e5d3=_0x313fca();while(!![]){try{const _0x409b3d=-parseInt(_0x305bb5(0x104))/0x1+parseInt(_0x305bb5(0xfc))/0x2*(-parseInt(_0x305bb5(0xfd))/0x3)+parseInt(_0x305bb5(0x102))/0x4*(-parseInt(_0x305bb5(0xfb))/0x5)+parseInt(_0x305bb5(0x103))/0x6*(parseInt(_0x305bb5(0x101))/0x7)+parseInt(_0x305bb5(0xfe))/0x8+parseInt(_0x305bb5(0x100))/0x9+parseInt(_0x305bb5(0xff))/0xa;if(_0x409b3d===_0x2a9fa4)break;else _0x55e5d3['push'](_0x55e5d3['shift']());}catch(_0x3875dd){_0x55e5d3['push'](_0x55e5d3['shift']());}}}(a34_0xb70c,0x8d45f));function a34_0xb70c(){const _0x3e3800=['6499008DinUeP','6075310WGnkZV','1231614hapufT','42kmTcJg','5044sDgCOh','1090044gyPLto','1039449sNXGPj','3755uyVCkr','81682SJTcUK','6SdRmQO'];a34_0xb70c=function(){return _0x3e3800;};return a34_0xb70c();}import{codegenSdk}from'../../commands/codegen/sdk.js';function a34_0x4640(_0x1f06f7,_0x4f6b63){_0x1f06f7=_0x1f06f7-0xfb;const _0xb70ca4=a34_0xb70c();let _0x464080=_0xb70ca4[_0x1f06f7];return _0x464080;}import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
@@ -1 +1 @@
1
- function a35_0xf70f(){const _0x15be36=['sdk','3152268LBsImv','155352LLDQqH','skip-imports','tableName','operation','appCode','40dooFUZ','436462lLuMYa','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','1340805ieEuiD','796sontra','read','code','boolean','alias','8370RyXmsg','56RIgGll','Omit\x20import\x20statements\x20from\x20generated\x20code','2eszwiX','1872891osZuhU','2644840lJdybc','string','name','str'];a35_0xf70f=function(){return _0x15be36;};return a35_0xf70f();}const a35_0x3bb73b=a35_0x3f6c;function a35_0x3f6c(_0x51f0b9,_0x8dd3fc){_0x51f0b9=_0x51f0b9-0xac;const _0xf70fd7=a35_0xf70f();let _0x3f6ce6=_0xf70fd7[_0x51f0b9];return _0x3f6ce6;}(function(_0x21a0bf,_0xf6ee64){const _0x50ff63=a35_0x3f6c,_0x142cc3=_0x21a0bf();while(!![]){try{const _0x1787b4=-parseInt(_0x50ff63(0xb8))/0x1+parseInt(_0x50ff63(0xc3))/0x2*(-parseInt(_0x50ff63(0xba))/0x3)+parseInt(_0x50ff63(0xbb))/0x4*(-parseInt(_0x50ff63(0xc0))/0x5)+parseInt(_0x50ff63(0xb1))/0x6+parseInt(_0x50ff63(0xc1))/0x7*(-parseInt(_0x50ff63(0xb2))/0x8)+parseInt(_0x50ff63(0xc4))/0x9+parseInt(_0x50ff63(0xb7))/0xa*(parseInt(_0x50ff63(0xac))/0xb);if(_0x1787b4===_0xf6ee64)break;else _0x142cc3['push'](_0x142cc3['shift']());}catch(_0x270929){_0x142cc3['push'](_0x142cc3['shift']());}}}(a35_0xf70f,0x4ef22));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../common/flags.js';export const codegenSdk={'service':'codegen','command':a35_0x3bb73b(0xb0),'description':a35_0x3bb73b(0xb9),'risk':a35_0x3bb73b(0xbc),'flags':[CODE_FLAG_OPTIONAL,{'name':a35_0x3bb73b(0xbf),'type':a35_0x3bb73b(0xad),'description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)'},{'name':a35_0x3bb73b(0xb5),'type':a35_0x3bb73b(0xad),'required':!![],'description':'Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)'},{'name':'skip-imports','type':a35_0x3bb73b(0xbe),'description':a35_0x3bb73b(0xc2)}],async 'execute'(_0x1f16f0){const _0x5c661e=a35_0x3bb73b,{dataset:_0x45f543,operation:_0x21fd30}=await getOperationDetail(_0x1f16f0[_0x5c661e(0xb6)],_0x1f16f0['str'](_0x5c661e(0xbd)),_0x1f16f0['str'](_0x5c661e(0xb5))),_0x5b95cd=generateSdkCode(_0x45f543,_0x21fd30,{'includeImports':!_0x1f16f0['bool'](_0x5c661e(0xb3))});return{'ok':!![],'data':{'dataset':{'name':_0x45f543[_0x5c661e(0xae)],'code':_0x45f543[_0x5c661e(0xbd)],'tableName':_0x45f543[_0x5c661e(0xb4)]},'operation':_0x1f16f0[_0x5c661e(0xaf)](_0x5c661e(0xb5)),'code':_0x5b95cd}};}};
1
+ const a35_0x1fa1f9=a35_0x2764;(function(_0x35e7e2,_0x97543){const _0x53bf42=a35_0x2764,_0x5b4848=_0x35e7e2();while(!![]){try{const _0x169e6b=parseInt(_0x53bf42(0x158))/0x1+parseInt(_0x53bf42(0x157))/0x2+-parseInt(_0x53bf42(0x150))/0x3+-parseInt(_0x53bf42(0x154))/0x4+parseInt(_0x53bf42(0x14f))/0x5+parseInt(_0x53bf42(0x156))/0x6+-parseInt(_0x53bf42(0x15c))/0x7;if(_0x169e6b===_0x97543)break;else _0x5b4848['push'](_0x5b4848['shift']());}catch(_0x17d5cd){_0x5b4848['push'](_0x5b4848['shift']());}}}(a35_0x900e,0x33867));function a35_0x900e(){const _0x7e6f8e=['operation','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','615440txMqZo','513216joIuIu','code','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','str','298132IsVzti','bool','1088700wZSYWR','304262gAzYfd','156442zEbVtq','read','skip-imports','alias','1095213qceukC'];a35_0x900e=function(){return _0x7e6f8e;};return a35_0x900e();}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a35_0x2764(_0x38f063,_0x48a239){_0x38f063=_0x38f063-0x14f;const _0x900e40=a35_0x900e();let _0x2764eb=_0x900e40[_0x38f063];return _0x2764eb;}export const codegenSdk={'service':'codegen','command':'sdk','description':'Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','risk':a35_0x1fa1f9(0x159),'flags':[CODE_FLAG_OPTIONAL,{'name':a35_0x1fa1f9(0x15b),'type':'string','description':a35_0x1fa1f9(0x15e)},{'name':a35_0x1fa1f9(0x15d),'type':'string','required':!![],'description':a35_0x1fa1f9(0x152)},{'name':a35_0x1fa1f9(0x15a),'type':'boolean','description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x24ce73){const _0x5b7e31=a35_0x1fa1f9,{dataset:_0x2a8317,operation:_0x5c43d8}=await getOperationDetail(_0x24ce73['appCode'],_0x24ce73[_0x5b7e31(0x153)](_0x5b7e31(0x151)),_0x24ce73[_0x5b7e31(0x153)]('operation')),_0x5e0180=generateSdkCode(_0x2a8317,_0x5c43d8,{'includeImports':!_0x24ce73[_0x5b7e31(0x155)](_0x5b7e31(0x15a))});return{'ok':!![],'data':{'dataset':{'name':_0x2a8317['name'],'code':_0x2a8317[_0x5b7e31(0x151)],'tableName':_0x2a8317['tableName']},'operation':_0x24ce73[_0x5b7e31(0x153)](_0x5b7e31(0x15d)),'code':_0x5e0180}};}};
@@ -1 +1 @@
1
- const a36_0x149f4c=a36_0x2ced;(function(_0x53b9de,_0x199835){const _0x5da8cc=a36_0x2ced,_0x390428=_0x53b9de();while(!![]){try{const _0x13d3e0=-parseInt(_0x5da8cc(0x142))/0x1+parseInt(_0x5da8cc(0x137))/0x2+-parseInt(_0x5da8cc(0x136))/0x3+-parseInt(_0x5da8cc(0x131))/0x4*(-parseInt(_0x5da8cc(0x139))/0x5)+-parseInt(_0x5da8cc(0x132))/0x6+-parseInt(_0x5da8cc(0x148))/0x7+parseInt(_0x5da8cc(0x147))/0x8;if(_0x13d3e0===_0x199835)break;else _0x390428['push'](_0x390428['shift']());}catch(_0x102528){_0x390428['push'](_0x390428['shift']());}}}(a36_0x2913,0x6cccc));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../common/flags.js';function a36_0x2913(){const _0x3df256=['2535HIzJBU','target','bool','sdk','appCode','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','str','string','sqlcode','874975VzioRk','boolean','codegen','Omit\x20import\x20statements\x20from\x20generated\x20code','no-imports','15546520rOTCGZ','5636764iXXbiX','3548RWnDQz','1856652fFOGcV','read','sqlName','sql','1328256xgxYhh','970082DvksHj','sqlCode'];a36_0x2913=function(){return _0x3df256;};return a36_0x2913();}function a36_0x2ced(_0x5f1326,_0x45a567){_0x5f1326=_0x5f1326-0x131;const _0x2913d2=a36_0x2913();let _0x2cedd2=_0x2913d2[_0x5f1326];return _0x2cedd2;}export const codegenSql={'service':a36_0x149f4c(0x144),'command':a36_0x149f4c(0x135),'description':a36_0x149f4c(0x13e),'risk':a36_0x149f4c(0x133),'flags':[SQLCODE_FLAG,{'name':a36_0x149f4c(0x13a),'type':a36_0x149f4c(0x140),'description':'Code\x20target:\x20sdk\x20(default)\x20or\x20bff','default':'sdk','enum':[a36_0x149f4c(0x13c),'bff']},{'name':a36_0x149f4c(0x146),'type':a36_0x149f4c(0x143),'description':a36_0x149f4c(0x145)}],async 'execute'(_0x44068a){const _0x16fe8d=a36_0x149f4c,_0x576e8c=await getSqlQueryInfo(_0x44068a[_0x16fe8d(0x13d)],_0x44068a[_0x16fe8d(0x13f)](_0x16fe8d(0x141))),_0x36dec6=_0x44068a[_0x16fe8d(0x13f)]('target')||_0x16fe8d(0x13c),_0x5e4b21=generateSqlCodeTemplate(_0x576e8c,{'target':_0x36dec6,'includeImports':!_0x44068a[_0x16fe8d(0x13b)](_0x16fe8d(0x146))});return{'ok':!![],'data':{'sqlCode':_0x576e8c[_0x16fe8d(0x138)],'sqlName':_0x576e8c[_0x16fe8d(0x134)],'target':_0x36dec6,'code':_0x5e4b21}};}};
1
+ const a36_0x97f495=a36_0x2605;(function(_0x5ef4a0,_0x5495f7){const _0xe5466b=a36_0x2605,_0x45f47b=_0x5ef4a0();while(!![]){try{const _0x515e71=-parseInt(_0xe5466b(0x81))/0x1*(-parseInt(_0xe5466b(0x8a))/0x2)+parseInt(_0xe5466b(0x89))/0x3+parseInt(_0xe5466b(0x88))/0x4*(-parseInt(_0xe5466b(0x86))/0x5)+parseInt(_0xe5466b(0x8e))/0x6+-parseInt(_0xe5466b(0x8f))/0x7*(-parseInt(_0xe5466b(0x8d))/0x8)+parseInt(_0xe5466b(0x7a))/0x9+-parseInt(_0xe5466b(0x87))/0xa;if(_0x515e71===_0x5495f7)break;else _0x45f47b['push'](_0x45f47b['shift']());}catch(_0x3e1e99){_0x45f47b['push'](_0x45f47b['shift']());}}}(a36_0x3a08,0x74bc7));function a36_0x3a08(){const _0x1df8d9=['sqlcode','read','787912oLkRSm','3619440zUdqRu','21rpVqPf','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','sdk','2502567HlzlzM','target','Omit\x20import\x20statements\x20from\x20generated\x20code','string','str','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','appCode','46747jmUgQB','no-imports','sqlCode','sqlName','bff','2615eceCit','11715720FSwCEC','5948ucXMOs','1928829eJhFIZ','26htexnW'];a36_0x3a08=function(){return _0x1df8d9;};return a36_0x3a08();}import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a36_0x2605(_0x2e502c,_0x338542){_0x2e502c=_0x2e502c-0x78;const _0x3a08d2=a36_0x3a08();let _0x26052a=_0x3a08d2[_0x2e502c];return _0x26052a;}import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':'codegen','command':'sql','description':a36_0x97f495(0x7f),'risk':a36_0x97f495(0x8c),'flags':[SQLCODE_FLAG,{'name':a36_0x97f495(0x7b),'type':a36_0x97f495(0x7d),'description':a36_0x97f495(0x78),'default':a36_0x97f495(0x79),'enum':[a36_0x97f495(0x79),a36_0x97f495(0x85)]},{'name':a36_0x97f495(0x82),'type':'boolean','description':a36_0x97f495(0x7c)}],async 'execute'(_0x39e8b6){const _0x4d17e2=a36_0x97f495,_0x34df94=await getSqlQueryInfo(_0x39e8b6[_0x4d17e2(0x80)],_0x39e8b6[_0x4d17e2(0x7e)](_0x4d17e2(0x8b))),_0x2bd077=_0x39e8b6['str']('target')||'sdk',_0x5148b0=generateSqlCodeTemplate(_0x34df94,{'target':_0x2bd077,'includeImports':!_0x39e8b6['bool'](_0x4d17e2(0x82))});return{'ok':!![],'data':{'sqlCode':_0x34df94[_0x4d17e2(0x83)],'sqlName':_0x34df94[_0x4d17e2(0x84)],'target':_0x2bd077,'code':_0x5148b0}};}};
@@ -1 +1 @@
1
- (function(_0x49440b,_0x5dd60c){const _0x3e0214=a37_0x442d,_0x4a8c3f=_0x49440b();while(!![]){try{const _0xe6ff64=parseInt(_0x3e0214(0x94))/0x1*(parseInt(_0x3e0214(0x99))/0x2)+-parseInt(_0x3e0214(0xae))/0x3+-parseInt(_0x3e0214(0xa6))/0x4*(-parseInt(_0x3e0214(0x93))/0x5)+-parseInt(_0x3e0214(0x8d))/0x6+-parseInt(_0x3e0214(0xb0))/0x7*(-parseInt(_0x3e0214(0xa0))/0x8)+parseInt(_0x3e0214(0xaa))/0x9+-parseInt(_0x3e0214(0x98))/0xa*(parseInt(_0x3e0214(0xaf))/0xb);if(_0xe6ff64===_0x5dd60c)break;else _0x4a8c3f['push'](_0x4a8c3f['shift']());}catch(_0x2cf3fa){_0x4a8c3f['push'](_0x4a8c3f['shift']());}}}(a37_0x4ff0,0x8e0d3));import{input,checkbox,select}from'@inquirer/prompts';import a37_0x35ea4a from'chalk';import{validateAppcode}from'./validate.js';import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';export async function promptCustomAppcode(){const _0x292b4b=a37_0x442d,_0x42f44f=await input({'message':_0x292b4b(0x9f),'validate':_0x5aaaf0=>{const _0x297ac2=_0x292b4b,_0x48b968=validateAppcode(_0x5aaaf0[_0x297ac2(0x8f)]());return _0x48b968[_0x297ac2(0xa3)]||_0x48b968[_0x297ac2(0x9d)]||_0x297ac2(0x9e);}});return _0x42f44f[_0x292b4b(0x8f)]();}export async function promptAppSelection(_0x4842f7){const _0x1a2816=a37_0x442d,_0x33ae07=[{'name':a37_0x35ea4a['yellow'](_0x1a2816(0x8e)),'value':-0x1},..._0x4842f7[_0x1a2816(0x95)]((_0x21f9b7,_0x20cde1)=>({'name':_0x21f9b7[_0x1a2816(0xa1)]+'\x20\x20'+a37_0x35ea4a[_0x1a2816(0xa9)]('('+_0x21f9b7['appCode']+')'),'value':_0x20cde1}))],_0x396597=await checkbox({'message':_0x1a2816(0xb2)+a37_0x35ea4a['cyan'](_0x4842f7[_0x1a2816(0x9b)])+_0x1a2816(0x96),'choices':_0x33ae07,'loop':![]});if(_0x396597[_0x1a2816(0x90)](-0x1))return _0x1a2816(0xa2);if(_0x396597['length']===0x0)return _0x1a2816(0xa2);return _0x396597[_0x1a2816(0x95)](_0xb1ac44=>_0x4842f7[_0xb1ac44]);}export async function promptSingleAppSelection(_0x32af41){const _0x14236b=a37_0x442d,_0x2452de=[{'name':a37_0x35ea4a[_0x14236b(0xa9)](_0x14236b(0x9a)),'value':_0x14236b(0xa4)},{'name':a37_0x35ea4a[_0x14236b(0x91)](_0x14236b(0x8e)),'value':'custom'},..._0x32af41[_0x14236b(0x95)](_0x24554e=>({'name':_0x24554e[_0x14236b(0xa1)]+'\x20\x20'+a37_0x35ea4a[_0x14236b(0xa9)]('('+_0x24554e[_0x14236b(0x92)]+')'),'value':_0x24554e[_0x14236b(0x92)]}))],_0x48df7f=await select({'message':'请选择要绑定的应用:','choices':_0x2452de});if(_0x48df7f===_0x14236b(0xa4))return _0x14236b(0xa4);if(_0x48df7f===_0x14236b(0xa2))return _0x14236b(0xa2);return _0x32af41[_0x14236b(0xa7)](_0x2c6149=>_0x2c6149[_0x14236b(0x92)]===_0x48df7f);}export async function selectSingleAppcode(_0x30dab5){const _0x2e2b67=a37_0x442d;if(!_0x30dab5)return console[_0x2e2b67(0x9c)](a37_0x35ea4a['gray'](_0x2e2b67(0xab))),_fallbackOrSkip();console[_0x2e2b67(0x9c)]('正在获取可用应用列表...');let _0x8d57d9;try{_0x8d57d9=await withActiveCookie(_0x30dab5,()=>listRemoteApps());}catch(_0x4dcd80){console[_0x2e2b67(0x9c)](a37_0x35ea4a[_0x2e2b67(0x91)](_0x2e2b67(0xa8)));if(_0x4dcd80 instanceof Error)console[_0x2e2b67(0x9c)](a37_0x35ea4a[_0x2e2b67(0xa9)]('\x20\x20('+_0x4dcd80[_0x2e2b67(0x9d)]+')'));return _fallbackOrSkip();}if(_0x8d57d9[_0x2e2b67(0x9b)]===0x0)return console[_0x2e2b67(0x9c)](a37_0x35ea4a[_0x2e2b67(0x91)]('未找到可用应用。')),_fallbackOrSkip();const _0x1d7b4b=await promptSingleAppSelection(_0x8d57d9);if(_0x1d7b4b===_0x2e2b67(0xa4))return'';if(_0x1d7b4b===_0x2e2b67(0xa2))return promptCustomAppcode();return _0x1d7b4b[_0x2e2b67(0x92)];}function a37_0x4ff0(){const _0x20ef8b=['5125500QkmNln','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','\x0a无法获取远程应用列表,请手动输入。','\x0a未找到可用应用。','1929372rFrrFi','296263ZTzOzf','686NfPWPk','App\x20Code:','获取到\x20','1964850vuJHpR','✎\x20自定义输入\x20appcode','trim','includes','yellow','appCode','824805hEmOPx','1148633ICTvxw','map','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','正在获取可用应用列表...','660KjEdlh','2LHcNDt','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','length','log','message','Invalid\x20App\x20Code','请输入\x20App\x20Code:','91184dpfdGt','appName','custom','valid','skip','manual','12GBhhUE','find','无法获取远程应用列表,请手动输入。','gray'];a37_0x4ff0=function(){return _0x20ef8b;};return a37_0x4ff0();}export async function selectMultipleApps(_0x447c80){const _0x5e1a98=a37_0x442d;console[_0x5e1a98(0x9c)](_0x5e1a98(0x97));let _0x9135bc;try{_0x9135bc=await withActiveCookie(_0x447c80,()=>listRemoteApps());}catch(_0xf0da89){console[_0x5e1a98(0x9c)](_0x5e1a98(0xac));if(_0xf0da89 instanceof Error)console[_0x5e1a98(0x9c)]('\x20\x20('+_0xf0da89[_0x5e1a98(0x9d)]+')');return _0x5e1a98(0xa2);}if(_0x9135bc[_0x5e1a98(0x9b)]===0x0)return console[_0x5e1a98(0x9c)](_0x5e1a98(0xad)),'custom';return promptAppSelection(_0x9135bc);}function a37_0x442d(_0x20a4cc,_0x91ee5){_0x20a4cc=_0x20a4cc-0x8d;const _0x4ff0ad=a37_0x4ff0();let _0x442dc7=_0x4ff0ad[_0x20a4cc];return _0x442dc7;}async function _fallbackOrSkip(){const _0x1127af=a37_0x442d,_0x28ea64=await select({'message':_0x1127af(0xb1),'choices':[{'name':a37_0x35ea4a[_0x1127af(0xa9)]('(跳过,稍后配置)'),'value':'skip'},{'name':a37_0x35ea4a[_0x1127af(0x91)]('✎\x20手动输入'),'value':_0x1127af(0xa5)}]});if(_0x28ea64==='skip')return'';return promptCustomAppcode();}
1
+ (function(_0x51bd86,_0x5b5093){const _0x230821=a37_0x37eb,_0x534a1c=_0x51bd86();while(!![]){try{const _0x3c93a3=-parseInt(_0x230821(0x14b))/0x1+parseInt(_0x230821(0x165))/0x2*(parseInt(_0x230821(0x168))/0x3)+-parseInt(_0x230821(0x162))/0x4*(parseInt(_0x230821(0x150))/0x5)+-parseInt(_0x230821(0x166))/0x6*(parseInt(_0x230821(0x14d))/0x7)+-parseInt(_0x230821(0x172))/0x8+-parseInt(_0x230821(0x14e))/0x9*(parseInt(_0x230821(0x16c))/0xa)+parseInt(_0x230821(0x173))/0xb*(parseInt(_0x230821(0x171))/0xc);if(_0x3c93a3===_0x5b5093)break;else _0x534a1c['push'](_0x534a1c['shift']());}catch(_0x58e77e){_0x534a1c['push'](_0x534a1c['shift']());}}}(a37_0x820b,0xc69ed));import{input,checkbox,select}from'@inquirer/prompts';import a37_0x37929c from'chalk';import{validateAppcode}from'../../commands/common/validate.js';function a37_0x37eb(_0xae8902,_0x13aa08){_0xae8902=_0xae8902-0x14b;const _0x820bd=a37_0x820b();let _0x37eb0f=_0x820bd[_0xae8902];return _0x37eb0f;}import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';function a37_0x820b(){const _0x321e79=['gray','4XwWbLQ','map','cyan','2VriKIA','190884vMIIhd','message','1559967PzUYkF','skip','✎\x20自定义输入\x20appcode','length','30lUlxex','\x0a未找到可用应用。','appCode','Invalid\x20App\x20Code','includes','72120nhjMYZ','7512432DohTXN','8316CTGhUG','1152689tOqaul','✎\x20手动输入','154itiKGL','290475HHpuvz','无法获取远程应用列表,请手动输入。','6807620RGMYlb','appName','获取到\x20','未找到可用应用。','trim','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','log','请输入\x20App\x20Code:','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','valid','(跳过,稍后配置)','正在获取可用应用列表...','custom','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','yellow','\x20\x20(','\x0a无法获取远程应用列表,请手动输入。'];a37_0x820b=function(){return _0x321e79;};return a37_0x820b();}export async function promptCustomAppcode(){const _0x3c21fb=a37_0x37eb,_0x571ba1=await input({'message':_0x3c21fb(0x157),'validate':_0x4d175e=>{const _0x57b63a=_0x3c21fb,_0x50bef5=validateAppcode(_0x4d175e['trim']());return _0x50bef5[_0x57b63a(0x159)]||_0x50bef5['message']||_0x57b63a(0x16f);}});return _0x571ba1[_0x3c21fb(0x154)]();}export async function promptAppSelection(_0x37d752){const _0x1dc565=a37_0x37eb,_0x99e649=[{'name':a37_0x37929c[_0x1dc565(0x15e)](_0x1dc565(0x16a)),'value':-0x1},..._0x37d752['map']((_0x26f0aa,_0x2aa179)=>({'name':_0x26f0aa[_0x1dc565(0x151)]+'\x20\x20'+a37_0x37929c[_0x1dc565(0x161)]('('+_0x26f0aa[_0x1dc565(0x16e)]+')'),'value':_0x2aa179}))],_0x15f4c6=await checkbox({'message':_0x1dc565(0x152)+a37_0x37929c[_0x1dc565(0x164)](_0x37d752[_0x1dc565(0x16b)])+_0x1dc565(0x158),'choices':_0x99e649,'loop':![]});if(_0x15f4c6[_0x1dc565(0x170)](-0x1))return _0x1dc565(0x15c);if(_0x15f4c6[_0x1dc565(0x16b)]===0x0)return _0x1dc565(0x15c);return _0x15f4c6[_0x1dc565(0x163)](_0x16bd16=>_0x37d752[_0x16bd16]);}export async function promptSingleAppSelection(_0x5ca451){const _0x391cae=a37_0x37eb,_0x4e27a3=[{'name':a37_0x37929c[_0x391cae(0x161)](_0x391cae(0x155)),'value':_0x391cae(0x169)},{'name':a37_0x37929c[_0x391cae(0x15e)](_0x391cae(0x16a)),'value':_0x391cae(0x15c)},..._0x5ca451[_0x391cae(0x163)](_0x642169=>({'name':_0x642169[_0x391cae(0x151)]+'\x20\x20'+a37_0x37929c[_0x391cae(0x161)]('('+_0x642169[_0x391cae(0x16e)]+')'),'value':_0x642169[_0x391cae(0x16e)]}))],_0x57365f=await select({'message':'请选择要绑定的应用:','choices':_0x4e27a3});if(_0x57365f==='skip')return _0x391cae(0x169);if(_0x57365f===_0x391cae(0x15c))return _0x391cae(0x15c);return _0x5ca451['find'](_0x179a76=>_0x179a76[_0x391cae(0x16e)]===_0x57365f);}export async function selectSingleAppcode(_0x21db66){const _0x589450=a37_0x37eb;if(!_0x21db66)return console[_0x589450(0x156)](a37_0x37929c[_0x589450(0x161)](_0x589450(0x15d))),_fallbackOrSkip();console[_0x589450(0x156)](_0x589450(0x15b));let _0x469935;try{_0x469935=await withActiveCookie(_0x21db66,()=>listRemoteApps());}catch(_0x3d4b42){console[_0x589450(0x156)](a37_0x37929c[_0x589450(0x15e)](_0x589450(0x14f)));if(_0x3d4b42 instanceof Error)console[_0x589450(0x156)](a37_0x37929c['gray']('\x20\x20('+_0x3d4b42[_0x589450(0x167)]+')'));return _fallbackOrSkip();}if(_0x469935[_0x589450(0x16b)]===0x0)return console[_0x589450(0x156)](a37_0x37929c[_0x589450(0x15e)](_0x589450(0x153))),_fallbackOrSkip();const _0x55dbed=await promptSingleAppSelection(_0x469935);if(_0x55dbed===_0x589450(0x169))return'';if(_0x55dbed===_0x589450(0x15c))return promptCustomAppcode();return _0x55dbed['appCode'];}export async function selectMultipleApps(_0x50a61d){const _0x2b9676=a37_0x37eb;console[_0x2b9676(0x156)](_0x2b9676(0x15b));let _0x5942ea;try{_0x5942ea=await withActiveCookie(_0x50a61d,()=>listRemoteApps());}catch(_0x4a1371){console[_0x2b9676(0x156)](_0x2b9676(0x160));if(_0x4a1371 instanceof Error)console[_0x2b9676(0x156)](_0x2b9676(0x15f)+_0x4a1371['message']+')');return'custom';}if(_0x5942ea[_0x2b9676(0x16b)]===0x0)return console[_0x2b9676(0x156)](_0x2b9676(0x16d)),'custom';return promptAppSelection(_0x5942ea);}async function _fallbackOrSkip(){const _0x114dfa=a37_0x37eb,_0x57494e=await select({'message':'App\x20Code:','choices':[{'name':a37_0x37929c[_0x114dfa(0x161)](_0x114dfa(0x15a)),'value':'skip'},{'name':a37_0x37929c['yellow'](_0x114dfa(0x14c)),'value':'manual'}]});if(_0x57494e===_0x114dfa(0x169))return'';return promptCustomAppcode();}
@@ -1 +1 @@
1
- const a38_0x326c6a=a38_0xf7a8;function a38_0xf7a8(_0x3001c4,_0xb61c1d){_0x3001c4=_0x3001c4-0x12a;const _0x1f60d5=a38_0x1f60();let _0xf7a826=_0x1f60d5[_0x3001c4];return _0xf7a826;}(function(_0x4f0533,_0x4117c4){const _0x2b852d=a38_0xf7a8,_0x344235=_0x4f0533();while(!![]){try{const _0x3a460c=-parseInt(_0x2b852d(0x12f))/0x1+-parseInt(_0x2b852d(0x138))/0x2+parseInt(_0x2b852d(0x135))/0x3+-parseInt(_0x2b852d(0x130))/0x4*(-parseInt(_0x2b852d(0x12c))/0x5)+parseInt(_0x2b852d(0x12d))/0x6*(-parseInt(_0x2b852d(0x12e))/0x7)+parseInt(_0x2b852d(0x139))/0x8*(-parseInt(_0x2b852d(0x12b))/0x9)+parseInt(_0x2b852d(0x136))/0xa*(parseInt(_0x2b852d(0x133))/0xb);if(_0x3a460c===_0x4117c4)break;else _0x344235['push'](_0x344235['shift']());}catch(_0x13f75e){_0x344235['push'](_0x344235['shift']());}}}(a38_0x1f60,0xdfe98));export const CODE_FLAG={'name':a38_0x326c6a(0x131),'type':'string','required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a38_0x326c6a(0x132)}};function a38_0x1f60(){const _0x5a5546=['21WONrgj','1134537pMNlCz','1532gICYqw','code','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','4041147NUfWgy','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','893835ndUQuk','70WdyRRK','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','205010oeZLVl','40Hmtraf','appcode','string','1652913jGOFOV','10200ffylOF','1156866iDzdVt'];a38_0x1f60=function(){return _0x5a5546;};return a38_0x1f60();}export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const SQLCODE_FLAG={'name':'sqlcode','type':'string','required':!![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a38_0x326c6a(0x134)}};export const APPCODE_FLAG_OPTIONAL={'name':a38_0x326c6a(0x13a),'type':a38_0x326c6a(0x12a),'required':![],'description':a38_0x326c6a(0x137)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};
1
+ const a38_0x3308f0=a38_0x6e24;(function(_0x10b6d6,_0xdd0432){const _0x8b2747=a38_0x6e24,_0x35eb27=_0x10b6d6();while(!![]){try{const _0x989036=parseInt(_0x8b2747(0xfb))/0x1*(parseInt(_0x8b2747(0xf7))/0x2)+-parseInt(_0x8b2747(0xfe))/0x3+parseInt(_0x8b2747(0xf5))/0x4+-parseInt(_0x8b2747(0xf6))/0x5+parseInt(_0x8b2747(0xfc))/0x6+-parseInt(_0x8b2747(0xf9))/0x7+-parseInt(_0x8b2747(0xff))/0x8*(-parseInt(_0x8b2747(0xfa))/0x9);if(_0x989036===_0xdd0432)break;else _0x35eb27['push'](_0x35eb27['shift']());}catch(_0x46d877){_0x35eb27['push'](_0x35eb27['shift']());}}}(a38_0xa9ce,0x7ac6f));export const CODE_FLAG={'name':a38_0x3308f0(0x102),'type':a38_0x3308f0(0x100),'required':!![],'description':a38_0x3308f0(0x103),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'}};function a38_0xa9ce(){const _0xef7a69=['sqlcode','388047BytUYm','96WTocdb','string','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','code','Dataset\x20code\x20(32-char\x20hex\x20UUID)','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','2762200XsjfVc','3474370WewVSV','79514nSKuoi','appcode','1759905vyHwvP','98244FvwboR','12QCWQGU','1679442trWKYj'];a38_0xa9ce=function(){return _0xef7a69;};return a38_0xa9ce();}export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};function a38_0x6e24(_0xe58499,_0x271a91){_0xe58499=_0xe58499-0xf4;const _0xa9ce38=a38_0xa9ce();let _0x6e2487=_0xa9ce38[_0xe58499];return _0x6e2487;}export const SQLCODE_FLAG={'name':a38_0x3308f0(0xfd),'type':a38_0x3308f0(0x100),'required':!![],'description':a38_0x3308f0(0x101),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a38_0x3308f0(0x104)}};export const APPCODE_FLAG_OPTIONAL={'name':a38_0x3308f0(0xf8),'type':a38_0x3308f0(0x100),'required':![],'description':a38_0x3308f0(0xf4)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};
@@ -1 +1 @@
1
- (function(_0x3442a9,_0x1eb3e4){const _0x2333ab=a39_0x3356,_0x1fb00e=_0x3442a9();while(!![]){try{const _0x2f5c10=parseInt(_0x2333ab(0x1ed))/0x1+parseInt(_0x2333ab(0x1e9))/0x2+-parseInt(_0x2333ab(0x1e6))/0x3*(parseInt(_0x2333ab(0x1ee))/0x4)+parseInt(_0x2333ab(0x1ec))/0x5*(-parseInt(_0x2333ab(0x1e7))/0x6)+parseInt(_0x2333ab(0x1ef))/0x7*(-parseInt(_0x2333ab(0x1e4))/0x8)+parseInt(_0x2333ab(0x1e3))/0x9+parseInt(_0x2333ab(0x1e8))/0xa;if(_0x2f5c10===_0x1eb3e4)break;else _0x1fb00e['push'](_0x1fb00e['shift']());}catch(_0x35ed5b){_0x1fb00e['push'](_0x1fb00e['shift']());}}}(a39_0x5339,0x8bb10));export function validateAppcode(_0x187ba2){const _0xb9d9a7=a39_0x3356,_0x53e8b0=_0x187ba2['trim']();if(!_0x53e8b0)return{'valid':![],'message':_0xb9d9a7(0x1e5)};if(_0x53e8b0[_0xb9d9a7(0x1eb)]>0x64)return{'valid':![],'message':'App\x20Code\x20cannot\x20exceed\x20100\x20characters'};if(!/^[A-Za-z0-9_-]+$/['test'](_0x53e8b0))return{'valid':![],'message':_0xb9d9a7(0x1ea)};return{'valid':!![]};}function a39_0x3356(_0x54f8e7,_0x3b59ef){_0x54f8e7=_0x54f8e7-0x1e3;const _0x533992=a39_0x5339();let _0x3356e9=_0x533992[_0x54f8e7];return _0x3356e9;}function a39_0x5339(){const _0x936e2d=['24638530JJCpMU','898282yFkMIb','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','length','5nyLRZk','170724sQiKKy','12bkLUwW','265979WBJXpo','1973178aVgIbm','216EchiKL','App\x20Code\x20cannot\x20be\x20empty','779295WOSVXy','5553420wInnIO'];a39_0x5339=function(){return _0x936e2d;};return a39_0x5339();}
1
+ (function(_0x186951,_0x50980a){const _0x297207=a39_0x4e36,_0x4c4e11=_0x186951();while(!![]){try{const _0x2bfd6a=-parseInt(_0x297207(0x190))/0x1*(-parseInt(_0x297207(0x189))/0x2)+-parseInt(_0x297207(0x185))/0x3*(parseInt(_0x297207(0x193))/0x4)+-parseInt(_0x297207(0x192))/0x5*(parseInt(_0x297207(0x183))/0x6)+parseInt(_0x297207(0x18a))/0x7+-parseInt(_0x297207(0x18c))/0x8*(parseInt(_0x297207(0x186))/0x9)+parseInt(_0x297207(0x194))/0xa+parseInt(_0x297207(0x188))/0xb*(parseInt(_0x297207(0x191))/0xc);if(_0x2bfd6a===_0x50980a)break;else _0x4c4e11['push'](_0x4c4e11['shift']());}catch(_0x57353e){_0x4c4e11['push'](_0x4c4e11['shift']());}}}(a39_0x459e,0x758e1));function a39_0x4e36(_0x43fab0,_0x1aac64){_0x43fab0=_0x43fab0-0x183;const _0x459e05=a39_0x459e();let _0x4e367d=_0x459e05[_0x43fab0];return _0x4e367d;}function a39_0x459e(){const _0x2e745e=['214211lfyWZn','84PNgHfv','347295jTdpyE','14644CROmwK','5415870ezaLSz','78xrwZLg','test','711uEUzYS','1140453dChTzD','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','2098921VsUOHl','2bjbjPX','3785635cDywrS','length','24EhNvoi','App\x20Code\x20cannot\x20exceed\x20100\x20characters','App\x20Code\x20cannot\x20be\x20empty','trim'];a39_0x459e=function(){return _0x2e745e;};return a39_0x459e();}export function validateAppcode(_0x263914){const _0x5b8b6a=a39_0x4e36,_0x84b0ad=_0x263914[_0x5b8b6a(0x18f)]();if(!_0x84b0ad)return{'valid':![],'message':_0x5b8b6a(0x18e)};if(_0x84b0ad[_0x5b8b6a(0x18b)]>0x64)return{'valid':![],'message':_0x5b8b6a(0x18d)};if(!/^[A-Za-z0-9_-]+$/[_0x5b8b6a(0x184)](_0x84b0ad))return{'valid':![],'message':_0x5b8b6a(0x187)};return{'valid':!![]};}
@@ -1 +1 @@
1
- const a40_0x5995ff=a40_0x4179;(function(_0x714ddf,_0x383f6a){const _0xd5530d=a40_0x4179,_0x1e5333=_0x714ddf();while(!![]){try{const _0x39e69e=parseInt(_0xd5530d(0xaa))/0x1+-parseInt(_0xd5530d(0xab))/0x2+parseInt(_0xd5530d(0xac))/0x3+-parseInt(_0xd5530d(0x9b))/0x4+parseInt(_0xd5530d(0xa6))/0x5*(parseInt(_0xd5530d(0x9e))/0x6)+parseInt(_0xd5530d(0x9f))/0x7*(-parseInt(_0xd5530d(0x9a))/0x8)+parseInt(_0xd5530d(0x99))/0x9;if(_0x39e69e===_0x383f6a)break;else _0x1e5333['push'](_0x1e5333['shift']());}catch(_0xa0f824){_0x1e5333['push'](_0x1e5333['shift']());}}}(a40_0x1999,0xa33f0));import{CliErrors}from'../../errors.js';function a40_0x4179(_0x328e48,_0x5b93f3){_0x328e48=_0x328e48-0x97;const _0x199967=a40_0x1999();let _0x417998=_0x199967[_0x328e48];return _0x417998;}import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';async function execute(_0x1bb035){const _0x1ef71c=a40_0x4179,_0x3ef980=_0x1bb035[_0x1ef71c(0xa7)]('key');if(!_0x3ef980)throw CliErrors[_0x1ef71c(0xa1)]('Missing\x20key.',_0x1ef71c(0xa5)+CLI_BIN_NAME+'\x20config\x20get\x20--key\x20<key>');const _0xe1d7e4=readConfig(),_0x3a7743=_0x3ef980===_0x1ef71c(0xa8)?_0x1ef71c(0xa2):_0x3ef980,_0x2256e5=_0xe1d7e4[_0x3a7743];if(_0x2256e5===undefined)throw CliErrors[_0x1ef71c(0xa1)](_0x1ef71c(0xa3)+_0x3ef980);return{'ok':!![],'data':typeof _0x2256e5===_0x1ef71c(0x9d)?_0x2256e5:{[_0x3a7743]:_0x2256e5},'message':typeof _0x2256e5==='object'?undefined:String(_0x2256e5)};}function a40_0x1999(){const _0x246af4=['714830aEDuJU','str','app','read','1143800qfcwLU','1164452gBIAGm','397275QKHqUZ','get','Config\x20key\x20to\x20read','4593024KXRSXv','32rRvsel','2129580wPGMrY','config','object','48WIltBU','2007271zfBsTM','key','validation','appcode','Key\x20not\x20found:\x20','Get\x20a\x20config\x20value\x20by\x20key','Usage:\x20'];a40_0x1999=function(){return _0x246af4;};return a40_0x1999();}export const configGetDefinition={'service':a40_0x5995ff(0x9c),'command':a40_0x5995ff(0x97),'description':a40_0x5995ff(0xa4),'risk':a40_0x5995ff(0xa9),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a40_0x5995ff(0xa0),'type':'string','description':a40_0x5995ff(0x98),'required':!![]}],'execute':execute};
1
+ const a40_0x13a0cf=a40_0x29df;(function(_0x598c4f,_0xcaf982){const _0x52891c=a40_0x29df,_0x1ab267=_0x598c4f();while(!![]){try{const _0x50cea9=parseInt(_0x52891c(0x124))/0x1+parseInt(_0x52891c(0x11a))/0x2*(parseInt(_0x52891c(0x113))/0x3)+parseInt(_0x52891c(0x10e))/0x4*(parseInt(_0x52891c(0x115))/0x5)+-parseInt(_0x52891c(0x11b))/0x6*(-parseInt(_0x52891c(0x122))/0x7)+-parseInt(_0x52891c(0x121))/0x8*(-parseInt(_0x52891c(0x123))/0x9)+parseInt(_0x52891c(0x11d))/0xa+-parseInt(_0x52891c(0x120))/0xb*(parseInt(_0x52891c(0x11f))/0xc);if(_0x50cea9===_0xcaf982)break;else _0x1ab267['push'](_0x1ab267['shift']());}catch(_0x22f8f1){_0x1ab267['push'](_0x1ab267['shift']());}}}(a40_0x476a,0x194e2));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';function a40_0x476a(){const _0x4fe2ee=['read','str','Key\x20not\x20found:\x20','validation','1437yXRseo','app','1980MeUfcr','get','Usage:\x20','config','Missing\x20key.','540JLofyw','6EIrSvO','object','1649440LshyjL','Get\x20a\x20config\x20value\x20by\x20key','41424kYZclv','2101MUbKmP','176dfbtjh','1203209kuueCF','62343ViYAOj','121855LJCKmK','\x20config\x20get\x20--key\x20<key>','Config\x20key\x20to\x20read','string','228OvdrDg'];a40_0x476a=function(){return _0x4fe2ee;};return a40_0x476a();}function a40_0x29df(_0x2203f4,_0x48f23b){_0x2203f4=_0x2203f4-0x10d;const _0x476aa8=a40_0x476a();let _0x29df50=_0x476aa8[_0x2203f4];return _0x29df50;}import{CLI_BIN_NAME}from'../../constant/cli.js';async function execute(_0x499606){const _0x5516e7=a40_0x29df,_0x19bc78=_0x499606[_0x5516e7(0x110)]('key');if(!_0x19bc78)throw CliErrors[_0x5516e7(0x112)](_0x5516e7(0x119),_0x5516e7(0x117)+CLI_BIN_NAME+_0x5516e7(0x125));const _0x28d978=readConfig(),_0x38037b=_0x19bc78===_0x5516e7(0x114)?'appcode':_0x19bc78,_0x59f496=_0x28d978[_0x38037b];if(_0x59f496===undefined)throw CliErrors[_0x5516e7(0x112)](_0x5516e7(0x111)+_0x19bc78);return{'ok':!![],'data':typeof _0x59f496===_0x5516e7(0x11c)?_0x59f496:{[_0x38037b]:_0x59f496},'message':typeof _0x59f496===_0x5516e7(0x11c)?undefined:String(_0x59f496)};}export const configGetDefinition={'service':a40_0x13a0cf(0x118),'command':a40_0x13a0cf(0x116),'description':a40_0x13a0cf(0x11e),'risk':a40_0x13a0cf(0x10f),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a40_0x13a0cf(0x10d),'description':a40_0x13a0cf(0x126),'required':!![]}],'execute':execute};
@@ -1 +1 @@
1
- function a41_0x5df1(_0x52c93a,_0x115822){_0x52c93a=_0x52c93a-0xca;const _0x1f211e=a41_0x1f21();let _0x5df1d5=_0x1f211e[_0x52c93a];return _0x5df1d5;}(function(_0x245746,_0x258378){const _0x3e062b=a41_0x5df1,_0x24c632=_0x245746();while(!![]){try{const _0x4a06cf=-parseInt(_0x3e062b(0xcd))/0x1*(-parseInt(_0x3e062b(0xcc))/0x2)+parseInt(_0x3e062b(0xd1))/0x3+-parseInt(_0x3e062b(0xce))/0x4+parseInt(_0x3e062b(0xcf))/0x5+-parseInt(_0x3e062b(0xd0))/0x6*(parseInt(_0x3e062b(0xcb))/0x7)+parseInt(_0x3e062b(0xca))/0x8+-parseInt(_0x3e062b(0xd2))/0x9;if(_0x4a06cf===_0x258378)break;else _0x24c632['push'](_0x24c632['shift']());}catch(_0xec20ac){_0x24c632['push'](_0x24c632['shift']());}}}(a41_0x1f21,0x5b5c0));import{configListDefinition}from'./list.js';import{configGetDefinition}from'./get.js';import{configSetDefinition}from'./set.js';function a41_0x1f21(){const _0x480e65=['9766737KjGBMW','4303544Ibftal','7xHWbUC','224424deuDBm','5rkesLS','33204jifvjY','196685yLempe','1079790qojRjE','1527981wysiqg'];a41_0x1f21=function(){return _0x480e65;};return a41_0x1f21();}export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
1
+ (function(_0x249f98,_0x4aaf8d){const _0x34a924=a41_0x4c56,_0x1dc6d8=_0x249f98();while(!![]){try{const _0x3f308c=-parseInt(_0x34a924(0x1c6))/0x1*(-parseInt(_0x34a924(0x1ce))/0x2)+-parseInt(_0x34a924(0x1cb))/0x3*(parseInt(_0x34a924(0x1cd))/0x4)+parseInt(_0x34a924(0x1cf))/0x5+-parseInt(_0x34a924(0x1c8))/0x6+parseInt(_0x34a924(0x1ca))/0x7+parseInt(_0x34a924(0x1cc))/0x8*(parseInt(_0x34a924(0x1c5))/0x9)+parseInt(_0x34a924(0x1c9))/0xa*(-parseInt(_0x34a924(0x1c7))/0xb);if(_0x3f308c===_0x4aaf8d)break;else _0x1dc6d8['push'](_0x1dc6d8['shift']());}catch(_0x5f5090){_0x1dc6d8['push'](_0x1dc6d8['shift']());}}}(a41_0xc1ed,0x99cca));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a41_0xc1ed(){const _0x509e5f=['510910WSrHwz','8564962GqAmOw','5241sDxeUP','2458592ZprxUG','2116llXMEU','68414pZZYXF','4123555xxrKiA','27ByyoKm','25NCEfGf','275asHIiN','5964144uBRrsh'];a41_0xc1ed=function(){return _0x509e5f;};return a41_0xc1ed();}import{configSetDefinition}from'../../commands/config/set.js';function a41_0x4c56(_0x2e24cc,_0x20abe7){_0x2e24cc=_0x2e24cc-0x1c5;const _0xc1ed22=a41_0xc1ed();let _0x4c56e7=_0xc1ed22[_0x2e24cc];return _0x4c56e7;}export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
@@ -1 +1 @@
1
- const a42_0x3d6c21=a42_0x2d94;function a42_0x2d94(_0x4812ab,_0xb2ac4e){_0x4812ab=_0x4812ab-0x13a;const _0x316fc0=a42_0x316f();let _0x2d9446=_0x316fc0[_0x4812ab];return _0x2d9446;}(function(_0x3153f3,_0x54e857){const _0x30e421=a42_0x2d94,_0x415eaf=_0x3153f3();while(!![]){try{const _0x54c9fe=parseInt(_0x30e421(0x145))/0x1*(-parseInt(_0x30e421(0x146))/0x2)+-parseInt(_0x30e421(0x13f))/0x3*(parseInt(_0x30e421(0x14a))/0x4)+parseInt(_0x30e421(0x140))/0x5*(-parseInt(_0x30e421(0x13c))/0x6)+parseInt(_0x30e421(0x149))/0x7*(parseInt(_0x30e421(0x144))/0x8)+parseInt(_0x30e421(0x142))/0x9*(-parseInt(_0x30e421(0x13d))/0xa)+-parseInt(_0x30e421(0x141))/0xb+parseInt(_0x30e421(0x148))/0xc;if(_0x54c9fe===_0x54e857)break;else _0x415eaf['push'](_0x415eaf['shift']());}catch(_0x443289){_0x415eaf['push'](_0x415eaf['shift']());}}}(a42_0x316f,0xdffbe));import{readScopedConfig}from'./shared.js';function a42_0x316f(){const _0x5f3ee3=['3901073UmsQEO','10653417uTrNSv','read','8sbPelE','2910PQxzwT','74DjLXoN','boolean','55248312HtsAGg','2687132CBFpeS','293104THHuAp','global','List\x20all\x20config\x20values','bool','12VndWXd','10fKncGo','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','69NnAUfg','1847725dEPMoi'];a42_0x316f=function(){return _0x5f3ee3;};return a42_0x316f();}import{readConfig}from'../../utils/config.js';async function execute(_0x142261){const _0x28ed99=a42_0x2d94,_0xe85d8=_0x142261[_0x28ed99(0x13b)](_0x28ed99(0x14b))?readScopedConfig(_0x28ed99(0x14b)):readConfig();return{'ok':!![],'data':_0xe85d8};}export const configListDefinition={'service':'config','command':'list','description':a42_0x3d6c21(0x13a),'risk':a42_0x3d6c21(0x143),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'global','type':a42_0x3d6c21(0x147),'description':a42_0x3d6c21(0x13e),'default':![]}],'execute':execute};
1
+ const a42_0x1a8dd3=a42_0x441b;(function(_0xa1ebfd,_0x2f57a7){const _0x432a76=a42_0x441b,_0x5974f3=_0xa1ebfd();while(!![]){try{const _0x4a6198=-parseInt(_0x432a76(0x1e9))/0x1*(parseInt(_0x432a76(0x1e7))/0x2)+parseInt(_0x432a76(0x1e3))/0x3+-parseInt(_0x432a76(0x1e1))/0x4+-parseInt(_0x432a76(0x1e8))/0x5+parseInt(_0x432a76(0x1e5))/0x6+-parseInt(_0x432a76(0x1df))/0x7*(parseInt(_0x432a76(0x1ed))/0x8)+parseInt(_0x432a76(0x1e2))/0x9*(parseInt(_0x432a76(0x1ea))/0xa);if(_0x4a6198===_0x2f57a7)break;else _0x5974f3['push'](_0x5974f3['shift']());}catch(_0x4ff9b6){_0x5974f3['push'](_0x5974f3['shift']());}}}(a42_0x997e,0xb0aa8));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';function a42_0x997e(){const _0x26d8f9=['list','32MLARHX','global','755923CzJkCz','boolean','3495668umfuXR','13826313NgfncJ','3043764USdhwe','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','5359812swLMzr','config','1901102PTfZcf','2320495bfSusP','1IpuwsG','10iTFJeP','bool'];a42_0x997e=function(){return _0x26d8f9;};return a42_0x997e();}function a42_0x441b(_0x3d193e,_0x47bce4){_0x3d193e=_0x3d193e-0x1de;const _0x997ec4=a42_0x997e();let _0x441bd9=_0x997ec4[_0x3d193e];return _0x441bd9;}async function execute(_0x30efdd){const _0x403f42=a42_0x441b,_0x1a8945=_0x30efdd[_0x403f42(0x1eb)](_0x403f42(0x1de))?readScopedConfig(_0x403f42(0x1de)):readConfig();return{'ok':!![],'data':_0x1a8945};}export const configListDefinition={'service':a42_0x1a8dd3(0x1e6),'command':a42_0x1a8dd3(0x1ec),'description':'List\x20all\x20config\x20values','risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a42_0x1a8dd3(0x1de),'type':a42_0x1a8dd3(0x1e0),'description':a42_0x1a8dd3(0x1e4),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a43_0x2c3c4f=a43_0x48c6;function a43_0x9cb8(){const _0x388f20=['888834jXaVWL','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','Set\x20a\x20config\x20value','13816072UCtPlB','length','43750dNjmgP','riskLevel','string','Config\x20key','production','Missing\x20value.','boolean','daily','bool','40770SXlqLw','Invalid\x20locale\x20value.','global','5138646GahMea','validation','Global','config','1098FQcaVB','\x20set\x20to:\x20','key','129550kQDkOF','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','11262083xsLmAH','Usage:\x20','app','appcode','164IMEeZg','set','15qzODFb','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','includes','value','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)'];a43_0x9cb8=function(){return _0x388f20;};return a43_0x9cb8();}(function(_0x3d0450,_0x10bd42){const _0x1235aa=a43_0x48c6,_0x57f9db=_0x3d0450();while(!![]){try{const _0x4efacc=-parseInt(_0x1235aa(0x99))/0x1+parseInt(_0x1235aa(0x82))/0x2*(-parseInt(_0x1235aa(0x94))/0x3)+parseInt(_0x1235aa(0x92))/0x4*(-parseInt(_0x1235aa(0x9e))/0x5)+parseInt(_0x1235aa(0x85))/0x6+parseInt(_0x1235aa(0x8e))/0x7+-parseInt(_0x1235aa(0x9c))/0x8+parseInt(_0x1235aa(0x89))/0x9*(parseInt(_0x1235aa(0x8c))/0xa);if(_0x4efacc===_0x10bd42)break;else _0x57f9db['push'](_0x57f9db['shift']());}catch(_0xbf5e39){_0x57f9db['push'](_0x57f9db['shift']());}}}(a43_0x9cb8,0xeca56));import{CliErrors}from'../../errors.js';function a43_0x48c6(_0x18fdf3,_0xaff8bf){_0x18fdf3=_0x18fdf3-0x7f;const _0x9cb813=a43_0x9cb8();let _0x48c6aa=_0x9cb813[_0x18fdf3];return _0x48c6aa;}import{CLI_BIN_NAME,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'./shared.js';async function execute(_0x23aee7){const _0x530fea=a43_0x48c6,_0x4fee21=_0x23aee7['str']('key'),_0x4544ad=_0x23aee7['str'](_0x530fea(0x97));if(!_0x4fee21)throw CliErrors[_0x530fea(0x86)]('Missing\x20key.',_0x530fea(0x8f)+CLI_BIN_NAME+_0x530fea(0x9a));if(_0x4544ad===undefined||_0x4544ad==='')throw CliErrors[_0x530fea(0x86)](_0x530fea(0xa3),_0x530fea(0x8f)+CLI_BIN_NAME+_0x530fea(0x9a));if(_0x4544ad[_0x530fea(0x9d)]>0x1f4)throw CliErrors[_0x530fea(0x86)](_0x530fea(0x95));if(_0x4fee21==='env'&&!['online',_0x530fea(0xa2),_0x530fea(0x80)][_0x530fea(0x96)](_0x4544ad))throw CliErrors['validation']('Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily,\x20online');if(_0x4fee21===_0x530fea(0x9f))throw CliErrors[_0x530fea(0x86)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(_0x4fee21==='locale'&&!normalizeLocale(_0x4544ad))throw CliErrors[_0x530fea(0x86)](_0x530fea(0x83),_0x530fea(0x8d));const _0x107c7a={'global':_0x23aee7[_0x530fea(0x81)](_0x530fea(0x84))},_0x53ef42=resolveWriteScope(_0x107c7a),_0x23b1fc=readScopedConfig(_0x53ef42);let _0x4bf3d3=_0x4fee21,_0x58c646=_0x4544ad;_0x4fee21===_0x530fea(0x90)&&(_0x4bf3d3=_0x530fea(0x91),delete _0x23b1fc[_0x530fea(0x90)]);_0x4fee21==='appcode'&&delete _0x23b1fc[_0x530fea(0x90)];_0x4fee21==='locale'&&(_0x58c646=normalizeLocale(_0x4544ad));_0x23b1fc[_0x4bf3d3]=_0x58c646,writeScopedConfig(_0x23b1fc,_0x53ef42);const _0x318ae4=_0x53ef42==='global'?_0x530fea(0x87):'Project';return{'ok':!![],'message':'✓\x20'+_0x318ae4+'\x20'+_0x4bf3d3+_0x530fea(0x8a)+_0x58c646};}export const configSetDefinition={'service':a43_0x2c3c4f(0x88),'command':a43_0x2c3c4f(0x93),'description':a43_0x2c3c4f(0x9b),'risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x2c3c4f(0x8b),'type':a43_0x2c3c4f(0xa0),'description':a43_0x2c3c4f(0xa1),'required':!![]},{'name':a43_0x2c3c4f(0x97),'type':a43_0x2c3c4f(0xa0),'description':'Config\x20value','required':!![]},{'name':a43_0x2c3c4f(0x84),'type':a43_0x2c3c4f(0x7f),'description':a43_0x2c3c4f(0x98),'default':![]}],'execute':execute};
1
+ const a43_0x241903=a43_0x326c;function a43_0x326c(_0x1e0e5c,_0x5e4522){_0x1e0e5c=_0x1e0e5c-0xd7;const _0x169677=a43_0x1696();let _0x326c13=_0x169677[_0x1e0e5c];return _0x326c13;}function a43_0x1696(){const _0x5c6b04=['Config\x20value','Set\x20a\x20config\x20value','appcode','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','app','58370AkBGgd','online','1807839lyxnpV','global','config','Invalid\x20locale\x20value.','Missing\x20key.','278052dYTyNS','\x20set\x20to:\x20','1129272xhxuqF','1947279rTkWUp','str','Missing\x20value.','production','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','15aZlHoR','Project','env','6KzteJf','8NWlmIN','daily','Config\x20key','key','includes','length','string','Usage:\x20','24995SDldtA','locale','set','validation','write','bool','747gRNppS','52962VUVpzT'];a43_0x1696=function(){return _0x5c6b04;};return a43_0x1696();}(function(_0x47de8b,_0x21cca4){const _0x1e8a73=a43_0x326c,_0xdacd46=_0x47de8b();while(!![]){try{const _0x4fe919=-parseInt(_0x1e8a73(0xf7))/0x1*(parseInt(_0x1e8a73(0xee))/0x2)+parseInt(_0x1e8a73(0xe6))/0x3+parseInt(_0x1e8a73(0xe3))/0x4+parseInt(_0x1e8a73(0xeb))/0x5*(-parseInt(_0x1e8a73(0xe5))/0x6)+parseInt(_0x1e8a73(0xfe))/0x7*(-parseInt(_0x1e8a73(0xef))/0x8)+-parseInt(_0x1e8a73(0xfd))/0x9*(-parseInt(_0x1e8a73(0xdc))/0xa)+-parseInt(_0x1e8a73(0xde))/0xb;if(_0x4fe919===_0x21cca4)break;else _0xdacd46['push'](_0xdacd46['shift']());}catch(_0x359307){_0xdacd46['push'](_0xdacd46['shift']());}}}(a43_0x1696,0x5f975));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';async function execute(_0x1b7d00){const _0x1d345b=a43_0x326c,_0x1d8485=_0x1b7d00[_0x1d345b(0xe7)](_0x1d345b(0xf2)),_0x18fb44=_0x1b7d00[_0x1d345b(0xe7)]('value');if(!_0x1d8485)throw CliErrors[_0x1d345b(0xfa)](_0x1d345b(0xe2),_0x1d345b(0xf6)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x18fb44===undefined||_0x18fb44==='')throw CliErrors[_0x1d345b(0xfa)](_0x1d345b(0xe8),_0x1d345b(0xf6)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x18fb44[_0x1d345b(0xf4)]>0x1f4)throw CliErrors[_0x1d345b(0xfa)](_0x1d345b(0xea));if(_0x1d8485===_0x1d345b(0xed)&&![_0x1d345b(0xdd),_0x1d345b(0xe9),_0x1d345b(0xf0)][_0x1d345b(0xf3)](_0x18fb44))throw CliErrors[_0x1d345b(0xfa)]('Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily,\x20online');if(_0x1d8485==='riskLevel')throw CliErrors[_0x1d345b(0xfa)](_0x1d345b(0xda));if(_0x1d8485===_0x1d345b(0xf8)&&!normalizeLocale(_0x18fb44))throw CliErrors[_0x1d345b(0xfa)](_0x1d345b(0xe1),_0x1d345b(0xd9));const _0x342f8a={'global':_0x1b7d00[_0x1d345b(0xfc)](_0x1d345b(0xdf))},_0xefbe07=resolveWriteScope(_0x342f8a),_0x3b6b70=readScopedConfig(_0xefbe07);let _0x1f2db8=_0x1d8485,_0x5f0d8c=_0x18fb44;_0x1d8485===_0x1d345b(0xdb)&&(_0x1f2db8='appcode',delete _0x3b6b70[_0x1d345b(0xdb)]);_0x1d8485===_0x1d345b(0xd8)&&delete _0x3b6b70['app'];_0x1d8485==='locale'&&(_0x5f0d8c=normalizeLocale(_0x18fb44));_0x3b6b70[_0x1f2db8]=_0x5f0d8c,writeScopedConfig(_0x3b6b70,_0xefbe07);const _0xfb36cd=_0xefbe07===_0x1d345b(0xdf)?'Global':_0x1d345b(0xec);return{'ok':!![],'message':'✓\x20'+_0xfb36cd+'\x20'+_0x1f2db8+_0x1d345b(0xe4)+_0x5f0d8c};}export const configSetDefinition={'service':a43_0x241903(0xe0),'command':a43_0x241903(0xf9),'description':a43_0x241903(0xd7),'risk':a43_0x241903(0xfb),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x241903(0xf2),'type':a43_0x241903(0xf5),'description':a43_0x241903(0xf1),'required':!![]},{'name':'value','type':a43_0x241903(0xf5),'description':a43_0x241903(0xff),'required':!![]},{'name':a43_0x241903(0xdf),'type':'boolean','description':'Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a44_0x472de8=a44_0x482a;(function(_0x509654,_0x50a2d5){const _0x31ee99=a44_0x482a,_0x364d63=_0x509654();while(!![]){try{const _0x4235e1=parseInt(_0x31ee99(0x14f))/0x1+-parseInt(_0x31ee99(0x156))/0x2+-parseInt(_0x31ee99(0x152))/0x3+parseInt(_0x31ee99(0x159))/0x4+-parseInt(_0x31ee99(0x154))/0x5+-parseInt(_0x31ee99(0x153))/0x6+parseInt(_0x31ee99(0x157))/0x7;if(_0x4235e1===_0x50a2d5)break;else _0x364d63['push'](_0x364d63['shift']());}catch(_0x4491c2){_0x364d63['push'](_0x364d63['shift']());}}}(a44_0x9813,0x73560));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';export{CLI_BIN_NAME};const LOCALE_MAP={'zh':a44_0x472de8(0x151),'zh-cn':a44_0x472de8(0x151),'zh_cn':a44_0x472de8(0x151),'en':a44_0x472de8(0x155),'en-us':a44_0x472de8(0x155),'en_us':a44_0x472de8(0x155)};export function normalizeLocale(_0x27f7e8){const _0x322b14=a44_0x472de8;if(!_0x27f7e8)return null;return LOCALE_MAP[_0x27f7e8[_0x322b14(0x158)]()]??null;}function a44_0x482a(_0x29e968,_0x546e4c){_0x29e968=_0x29e968-0x14e;const _0x981343=a44_0x9813();let _0x482a47=_0x981343[_0x29e968];return _0x482a47;}export function resolveWriteScope(_0x46e7c1){const _0x477b77=a44_0x472de8;if(_0x46e7c1[_0x477b77(0x150)])return _0x477b77(0x150);return isInProject()?_0x477b77(0x14e):'global';}function a44_0x9813(){const _0x245fde=['766638OpsvUJ','global','zh-CN','900144qjaqkH','1346652XsLQzw','2246830lkOhYJ','en-US','920068FZJIkV','2913722yGYmxc','toLowerCase','2893688pmDZXO','project'];a44_0x9813=function(){return _0x245fde;};return a44_0x9813();}export function readScopedConfig(_0x9e47ff){return readConfigFile(resolveWriteConfigPath(_0x9e47ff));}export function writeScopedConfig(_0x508268,_0x2ed153){writeConfigFile(resolveWriteConfigPath(_0x2ed153),_0x508268);}
1
+ const a44_0x3f6351=a44_0x23ac;function a44_0x53a2(){const _0x2ca6c7=['5kQJwQw','project','9950430xjhwVJ','7711445wneHHi','141EHAavH','zh-CN','1005489Qaiaan','global','2744690OnAhPz','en-US','16LcwtQD','1855384kXMTyO','4784440onTGBu','toLowerCase','135060hDuTXT'];a44_0x53a2=function(){return _0x2ca6c7;};return a44_0x53a2();}(function(_0x49043e,_0x1a0a16){const _0xdb84d=a44_0x23ac,_0x53547b=_0x49043e();while(!![]){try{const _0x4ff9a1=-parseInt(_0xdb84d(0xcf))/0x1+parseInt(_0xdb84d(0xcc))/0x2+parseInt(_0xdb84d(0xc8))/0x3*(-parseInt(_0xdb84d(0xd2))/0x4)+-parseInt(_0xdb84d(0xd3))/0x5*(-parseInt(_0xdb84d(0xd5))/0x6)+parseInt(_0xdb84d(0xd6))/0x7+parseInt(_0xdb84d(0xce))/0x8*(-parseInt(_0xdb84d(0xca))/0x9)+parseInt(_0xdb84d(0xd0))/0xa;if(_0x4ff9a1===_0x1a0a16)break;else _0x53547b['push'](_0x53547b['shift']());}catch(_0x29d7a4){_0x53547b['push'](_0x53547b['shift']());}}}(a44_0x53a2,0xe6b98));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';export{CLI_BIN_NAME};const LOCALE_MAP={'zh':a44_0x3f6351(0xc9),'zh-cn':a44_0x3f6351(0xc9),'zh_cn':a44_0x3f6351(0xc9),'en':a44_0x3f6351(0xcd),'en-us':a44_0x3f6351(0xcd),'en_us':a44_0x3f6351(0xcd)};export function normalizeLocale(_0x285afc){const _0x3ec755=a44_0x3f6351;if(!_0x285afc)return null;return LOCALE_MAP[_0x285afc[_0x3ec755(0xd1)]()]??null;}function a44_0x23ac(_0x4783ef,_0x31fc3e){_0x4783ef=_0x4783ef-0xc8;const _0x53a26c=a44_0x53a2();let _0x23ac23=_0x53a26c[_0x4783ef];return _0x23ac23;}export function resolveWriteScope(_0xa6b0a){const _0x5deeb8=a44_0x3f6351;if(_0xa6b0a[_0x5deeb8(0xcb)])return'global';return isInProject()?_0x5deeb8(0xd4):_0x5deeb8(0xcb);}export function readScopedConfig(_0x18e71a){return readConfigFile(resolveWriteConfigPath(_0x18e71a));}export function writeScopedConfig(_0x33a640,_0x2b9f80){writeConfigFile(resolveWriteConfigPath(_0x2b9f80),_0x33a640);}
@@ -1 +1 @@
1
- const a45_0x349c7a=a45_0x3b55;(function(_0x13a874,_0x4a388c){const _0xd23c24=a45_0x3b55,_0x449256=_0x13a874();while(!![]){try{const _0x288760=-parseInt(_0xd23c24(0x1f9))/0x1*(parseInt(_0xd23c24(0x1f6))/0x2)+-parseInt(_0xd23c24(0x1be))/0x3*(-parseInt(_0xd23c24(0x1ab))/0x4)+parseInt(_0xd23c24(0x1db))/0x5*(parseInt(_0xd23c24(0x1c3))/0x6)+parseInt(_0xd23c24(0x1e9))/0x7*(parseInt(_0xd23c24(0x1b9))/0x8)+-parseInt(_0xd23c24(0x1ac))/0x9+-parseInt(_0xd23c24(0x1d9))/0xa*(-parseInt(_0xd23c24(0x1e7))/0xb)+-parseInt(_0xd23c24(0x1d0))/0xc*(-parseInt(_0xd23c24(0x1c9))/0xd);if(_0x288760===_0x4a388c)break;else _0x449256['push'](_0x449256['shift']());}catch(_0x1de3c3){_0x449256['push'](_0x449256['shift']());}}}(a45_0x2bdc,0xef4dc));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../common/flags.js';function normalizeField(_0x368585){const _0x6084b=a45_0x3b55;if(_0x368585[_0x6084b(0x1d2)])return null;const _0x100470=Boolean(_0x368585[_0x6084b(0x1b4)]!==undefined||_0x368585[_0x6084b(0x1ce)]!==undefined);let _0x49dac2={};if(!_0x100470&&typeof _0x368585[_0x6084b(0x1ed)]==='string')try{_0x49dac2=JSON[_0x6084b(0x1dc)](_0x368585[_0x6084b(0x1ed)]);}catch{}const _0x3c18e6=_0x100470?_0x368585[_0x6084b(0x1c8)]:_0x368585[_0x6084b(0x1a9)],_0x304118=_0x100470?_0x368585['displayName']:_0x368585[_0x6084b(0x1c8)],_0x3c9581=_0x100470?_0x368585['doType']:_0x368585[_0x6084b(0x1eb)]||_0x368585['dataType'],_0x5bc2f9=_0x100470?_0x368585[_0x6084b(0x1e6)]===!![]:_0x49dac2[_0x6084b(0x1e6)]===!![],_0x385f1c=_0x100470?_0x368585[_0x6084b(0x1f5)]===!![]:_0x49dac2[_0x6084b(0x1f5)]===!![],_0x21382d=_0x100470?_0x368585[_0x6084b(0x1fc)]??null:_0x49dac2['options']??null,_0x196aa7={'name':_0x3c18e6,'displayName':_0x304118||_0x3c18e6,'type':_0x3c9581,'dbType':_0x368585[_0x6084b(0x1e1)],'pk':_0x5bc2f9,'required':_0x385f1c,'description':_0x368585[_0x6084b(0x1da)]||undefined};return Array[_0x6084b(0x1b3)](_0x21382d)&&_0x21382d[_0x6084b(0x1f1)]>0x0&&(_0x196aa7[_0x6084b(0x1fc)]=_0x21382d),_0x196aa7;}function parseJsonMaybe(_0x5570fc){const _0x4323e5=a45_0x3b55;if(typeof _0x5570fc!=='string')return _0x5570fc;try{return JSON[_0x4323e5(0x1dc)](_0x5570fc);}catch{return _0x5570fc;}}function normalizeOperationEntry(_0x21d1e1,_0x40da22){const _0x374b72=a45_0x3b55;if(!_0x40da22||typeof _0x40da22!=='object')return null;if(!_0x40da22[_0x374b72(0x1c2)]||!_0x40da22['path'])return null;const _0x568919={'name':_0x21d1e1,'method':_0x40da22[_0x374b72(0x1c2)],'path':_0x40da22[_0x374b72(0x1ef)]};if(_0x40da22['host'])_0x568919[_0x374b72(0x1ba)]=_0x40da22['host'];if(_0x40da22[_0x374b72(0x1ec)]!=null){const _0x575c49=parseJsonMaybe(_0x40da22['requestBody']);_0x568919[_0x374b72(0x1ec)]=_0x575c49;}if(_0x40da22[_0x374b72(0x1e5)]!=null){const _0x5e69b0=parseJsonMaybe(_0x40da22[_0x374b72(0x1e5)]);_0x568919[_0x374b72(0x1e5)]=_0x5e69b0;}if(_0x40da22[_0x374b72(0x1d7)]!=null)_0x568919[_0x374b72(0x1d7)]=_0x40da22[_0x374b72(0x1d7)];if(_0x40da22[_0x374b72(0x1b5)]!=null)_0x568919['afterScriptId']=_0x40da22[_0x374b72(0x1b5)];if(Array[_0x374b72(0x1b3)](_0x40da22[_0x374b72(0x1aa)]))_0x568919[_0x374b72(0x1aa)]=_0x40da22[_0x374b72(0x1aa)];if(Array['isArray'](_0x40da22[_0x374b72(0x1fb)]))_0x568919['responseFields']=_0x40da22[_0x374b72(0x1fb)];return _0x568919;}function summarizeDbtable(_0x1100ef){const _0x52002d=a45_0x3b55,_0x539782={},_0x3a57d5=[_0x52002d(0x1ea),'dbName','tableName',_0x52002d(0x1bb),'pkField',_0x52002d(0x1cc),_0x52002d(0x1f0),_0x52002d(0x1c7),'updateTimeField',_0x52002d(0x1b7),_0x52002d(0x1e8),_0x52002d(0x1e2),_0x52002d(0x1e0),_0x52002d(0x1cb),_0x52002d(0x1c6)];for(const _0x5a2a34 of _0x3a57d5){if(_0x1100ef[_0x5a2a34]!==undefined)_0x539782[_0x5a2a34]=_0x1100ef[_0x5a2a34];}return typeof _0x539782[_0x52002d(0x1cc)]===_0x52002d(0x1fd)&&_0x539782[_0x52002d(0x1cc)][_0x52002d(0x1f1)]>0x0&&(_0x539782[_0x52002d(0x1f8)]=_0x539782[_0x52002d(0x1cc)]['split'](',')[_0x52002d(0x1d4)](_0xffff4f=>_0xffff4f[_0x52002d(0x1f7)]())[_0x52002d(0x1de)](Boolean)),_0x539782;}function a45_0x3b55(_0x523fbc,_0x18d48c){_0x523fbc=_0x523fbc-0x1a9;const _0x2bdc26=a45_0x2bdc();let _0x3b55fa=_0x2bdc26[_0x523fbc];return _0x3b55fa;}function normalizeRelatedPages(_0x2caeda){const _0x249543=a45_0x3b55;if(!Array[_0x249543(0x1b3)](_0x2caeda))return[];return _0x2caeda[_0x249543(0x1de)](_0x1006bf=>_0x1006bf&&typeof _0x1006bf===_0x249543(0x1bd))['map'](_0x3bd811=>({'id':_0x3bd811['id'],'type':_0x3bd811['type'],'code':_0x3bd811[_0x249543(0x1a9)],'title':_0x3bd811['title'],'deleted':_0x3bd811['deleted']===!![]}));}export const datasetDetail={'service':a45_0x349c7a(0x1b2),'command':a45_0x349c7a(0x1f3),'description':a45_0x349c7a(0x1d6),'risk':a45_0x349c7a(0x1df),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a45_0x349c7a(0x1bc),'type':'string','description':a45_0x349c7a(0x1cf)}],async 'execute'(_0x22e724){const _0x155de5=a45_0x349c7a,_0x320ec2=await getDatasetDetail(_0x22e724[_0x155de5(0x1d8)](_0x155de5(0x1a9))),_0x321794=Array['isArray'](_0x320ec2[_0x155de5(0x1ad)])?_0x320ec2[_0x155de5(0x1ad)]:Array['isArray'](_0x320ec2[_0x155de5(0x1ca)])?_0x320ec2[_0x155de5(0x1ca)]:[],_0x248b57=_0x321794[_0x155de5(0x1d4)](_0x4a758a=>normalizeField(_0x4a758a))[_0x155de5(0x1de)](_0x99dd=>_0x99dd!==null),_0x60c64=_0x320ec2['operations']??{},_0x47e35d=[];for(const [_0x1bcd78,_0x390e73]of Object[_0x155de5(0x1f2)](_0x60c64)){const _0x46112a=normalizeOperationEntry(_0x1bcd78,_0x390e73);if(_0x46112a)_0x47e35d[_0x155de5(0x1d3)](_0x46112a);}const _0x2c6a2d=_0x320ec2[_0x155de5(0x1c1)]??{},_0x4bb9a5=_0x320ec2['dataset']??{},_0x1a1aa8=_0x2c6a2d[_0x155de5(0x1ea)]!=null?{'id':_0x2c6a2d[_0x155de5(0x1ea)],'name':_0x2c6a2d[_0x155de5(0x1af)]??null}:undefined;let _0x3338ae;return typeof _0x320ec2[_0x155de5(0x1ed)]==='string'&&(_0x3338ae=parseJsonMaybe(_0x320ec2[_0x155de5(0x1ed)])),{'ok':!![],'data':{'id':_0x320ec2[_0x155de5(0x1b8)]??_0x320ec2['id'],'name':_0x320ec2[_0x155de5(0x1c8)],'code':_0x320ec2[_0x155de5(0x1c0)]||_0x320ec2[_0x155de5(0x1a9)],'doVersion':_0x320ec2[_0x155de5(0x1b0)],'description':_0x320ec2[_0x155de5(0x1da)]||_0x4bb9a5[_0x155de5(0x1dd)]||undefined,'source':_0x320ec2[_0x155de5(0x1d5)]||_0x4bb9a5[_0x155de5(0x1c5)],'table':_0x2c6a2d[_0x155de5(0x1ee)]||_0x4bb9a5['tableName'],'datasetKey':_0x2c6a2d[_0x155de5(0x1bb)],'pk':_0x2c6a2d['pkField'],'db':_0x1a1aa8,'dbtable':summarizeDbtable(_0x2c6a2d),'fields':_0x248b57,'operations':_0x47e35d,'indexes':Array['isArray'](_0x4bb9a5[_0x155de5(0x1cd)])?_0x4bb9a5[_0x155de5(0x1cd)]:[],'relations':Array[_0x155de5(0x1b3)](_0x320ec2[_0x155de5(0x1ae)])?_0x320ec2[_0x155de5(0x1ae)][_0x155de5(0x1d4)](_0x5f28c9=>({'fromField':_0x5f28c9[_0x155de5(0x1e3)],'toDataset':_0x5f28c9[_0x155de5(0x1e4)],'toCode':_0x5f28c9[_0x155de5(0x1b1)],'toTable':_0x5f28c9[_0x155de5(0x1c4)],'toField':_0x5f28c9[_0x155de5(0x1b6)],'labelField':_0x5f28c9['toFieldLabel']||undefined})):[],'relatedPages':normalizeRelatedPages(_0x320ec2[_0x155de5(0x1f4)]),...Array[_0x155de5(0x1b3)](_0x320ec2[_0x155de5(0x1bf)])?{'columnCodeListWithDeleted':_0x320ec2[_0x155de5(0x1bf)]}:{},'formatRules':Array[_0x155de5(0x1b3)](_0x320ec2[_0x155de5(0x1fa)])?_0x320ec2[_0x155de5(0x1fa)]:[],'validateRules':Array['isArray'](_0x320ec2['validateRules'])?_0x320ec2[_0x155de5(0x1d1)]:[],..._0x3338ae!==undefined?{'extend':_0x3338ae}:{},'stats':{'fieldCount':_0x248b57[_0x155de5(0x1f1)],'operationCount':_0x47e35d[_0x155de5(0x1f1)]}}};}};function a45_0x2bdc(){const _0x597fca=['relations','dbName','doVersion','toDatasetCode','dataset','isArray','displayName','afterScriptId','toField','creatorIdField','modelId','395832RcSDkB','host','datasetKey','alias','object','3aHYYhC','columnCodeListWithDeleted','modelCode','dbtableConfig','method','66CaCJtM','toTableName','sourceType','dblinkInfoDTO','createTimeField','name','903240YFIlaz','properties','labelField','allFields','indexes','doType','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','12DxEuPL','validateRules','deleted','push','map','source','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','beforeScriptId','str','570irxoPt','description','45220EQFELV','parse','tableComment','filter','read','modifierNameField','dbType','modifierIdField','fromField','toDatasetName','responseBody','pkField','337238cQVQfq','creatorNameField','252UuOPNh','dbId','type','requestBody','extend','tableName','path','logicField','length','entries','detail','relatedPageInfoList','required','26VLQWnm','trim','allFieldNames','144601MvdUjV','formatRules','responseFields','options','string','code','requestFields','3852412QqAWYi','16207344tAqCqi','fields'];a45_0x2bdc=function(){return _0x597fca;};return a45_0x2bdc();}
1
+ const a45_0x7aa59f=a45_0x52a2;(function(_0x4f6e3f,_0x2ce29e){const _0x745623=a45_0x52a2,_0x4c4c99=_0x4f6e3f();while(!![]){try{const _0x5e038e=parseInt(_0x745623(0x103))/0x1*(-parseInt(_0x745623(0x10c))/0x2)+parseInt(_0x745623(0xc2))/0x3*(parseInt(_0x745623(0xd1))/0x4)+-parseInt(_0x745623(0xc6))/0x5*(-parseInt(_0x745623(0xc7))/0x6)+parseInt(_0x745623(0x104))/0x7+parseInt(_0x745623(0xec))/0x8*(-parseInt(_0x745623(0xe5))/0x9)+-parseInt(_0x745623(0xce))/0xa*(parseInt(_0x745623(0xc9))/0xb)+-parseInt(_0x745623(0xe8))/0xc*(-parseInt(_0x745623(0x10e))/0xd);if(_0x5e038e===_0x2ce29e)break;else _0x4c4c99['push'](_0x4c4c99['shift']());}catch(_0x508462){_0x4c4c99['push'](_0x4c4c99['shift']());}}}(a45_0x2cfb,0x9c641));function a45_0x2cfb(){const _0x560c87=['modelId','string','required','displayName','read','dataset','operations','afterScriptId','parse','entries','sourceType','15016rbuhNg','4500965bpBRdF','dblinkInfoDTO','relatedPageInfoList','relations','dbName','toDatasetCode','columnCodeListWithDeleted','logicField','158rjTiqk','modelCode','4334863CKxWSX','requestFields','responseFields','dbId','toDatasetName','2216859bjYbGk','str','split','modifierIdField','5LgbOLy','4879302OOuASD','doVersion','2366353QibrCr','map','validateRules','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','description','40dVAAgo','toTableName','filter','4SznYEa','push','host','method','detail','createTimeField','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','fromField','tableName','source','isArray','indexes','options','datasetKey','trim','allFields','doType','length','deleted','toFieldLabel','1893681rrcruO','name','extend','48yxIlXH','labelField','object','responseBody','32vvKSUG','beforeScriptId','fields','formatRules','alias','type','path','properties','requestBody','creatorIdField','pkField','code'];a45_0x2cfb=function(){return _0x560c87;};return a45_0x2cfb();}import{getDatasetDetail}from'../../core/api-client.js';function a45_0x52a2(_0x27da40,_0x125847){_0x27da40=_0x27da40-0xc0;const _0x2cfbb7=a45_0x2cfb();let _0x52a255=_0x2cfbb7[_0x27da40];return _0x52a255;}import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x346033){const _0x1e53b3=a45_0x52a2;if(_0x346033[_0x1e53b3(0xe3)])return null;const _0x434c42=Boolean(_0x346033[_0x1e53b3(0xfb)]!==undefined||_0x346033[_0x1e53b3(0xe1)]!==undefined);let _0x3af9c2={};if(!_0x434c42&&typeof _0x346033[_0x1e53b3(0xe7)]===_0x1e53b3(0xf9))try{_0x3af9c2=JSON[_0x1e53b3(0x100)](_0x346033[_0x1e53b3(0xe7)]);}catch{}const _0x4a6f4e=_0x434c42?_0x346033['name']:_0x346033[_0x1e53b3(0xf7)],_0x1d3e37=_0x434c42?_0x346033[_0x1e53b3(0xfb)]:_0x346033['name'],_0x575bdc=_0x434c42?_0x346033[_0x1e53b3(0xe1)]:_0x346033[_0x1e53b3(0xf1)]||_0x346033['dataType'],_0x5539a1=_0x434c42?_0x346033[_0x1e53b3(0xf6)]===!![]:_0x3af9c2['pkField']===!![],_0x46135d=_0x434c42?_0x346033[_0x1e53b3(0xfa)]===!![]:_0x3af9c2[_0x1e53b3(0xfa)]===!![],_0x418a30=_0x434c42?_0x346033[_0x1e53b3(0xdd)]??null:_0x3af9c2[_0x1e53b3(0xdd)]??null,_0x22e17d={'name':_0x4a6f4e,'displayName':_0x1d3e37||_0x4a6f4e,'type':_0x575bdc,'dbType':_0x346033['dbType'],'pk':_0x5539a1,'required':_0x46135d,'description':_0x346033[_0x1e53b3(0xcd)]||undefined};return Array[_0x1e53b3(0xdb)](_0x418a30)&&_0x418a30[_0x1e53b3(0xe2)]>0x0&&(_0x22e17d[_0x1e53b3(0xdd)]=_0x418a30),_0x22e17d;}function parseJsonMaybe(_0x3fa25b){const _0x2a4447=a45_0x52a2;if(typeof _0x3fa25b!==_0x2a4447(0xf9))return _0x3fa25b;try{return JSON[_0x2a4447(0x100)](_0x3fa25b);}catch{return _0x3fa25b;}}function normalizeOperationEntry(_0x27903f,_0xc1aa86){const _0x5b04da=a45_0x52a2;if(!_0xc1aa86||typeof _0xc1aa86!=='object')return null;if(!_0xc1aa86[_0x5b04da(0xd4)]||!_0xc1aa86[_0x5b04da(0xf2)])return null;const _0x136106={'name':_0x27903f,'method':_0xc1aa86[_0x5b04da(0xd4)],'path':_0xc1aa86[_0x5b04da(0xf2)]};if(_0xc1aa86[_0x5b04da(0xd3)])_0x136106['host']=_0xc1aa86['host'];if(_0xc1aa86[_0x5b04da(0xf4)]!=null){const _0x34d16e=parseJsonMaybe(_0xc1aa86[_0x5b04da(0xf4)]);_0x136106['requestBody']=_0x34d16e;}if(_0xc1aa86[_0x5b04da(0xeb)]!=null){const _0x3f0a67=parseJsonMaybe(_0xc1aa86[_0x5b04da(0xeb)]);_0x136106[_0x5b04da(0xeb)]=_0x3f0a67;}if(_0xc1aa86[_0x5b04da(0xed)]!=null)_0x136106[_0x5b04da(0xed)]=_0xc1aa86[_0x5b04da(0xed)];if(_0xc1aa86[_0x5b04da(0xff)]!=null)_0x136106[_0x5b04da(0xff)]=_0xc1aa86[_0x5b04da(0xff)];if(Array[_0x5b04da(0xdb)](_0xc1aa86[_0x5b04da(0x10f)]))_0x136106['requestFields']=_0xc1aa86['requestFields'];if(Array['isArray'](_0xc1aa86[_0x5b04da(0x110)]))_0x136106[_0x5b04da(0x110)]=_0xc1aa86[_0x5b04da(0x110)];return _0x136106;}function summarizeDbtable(_0x30d2dd){const _0x3c73ce=a45_0x52a2,_0x6b64bf={},_0x34e5cf=[_0x3c73ce(0xc0),_0x3c73ce(0x108),_0x3c73ce(0xd9),_0x3c73ce(0xde),_0x3c73ce(0xf6),'allFields',_0x3c73ce(0x10b),_0x3c73ce(0xd6),'updateTimeField',_0x3c73ce(0xf5),'creatorNameField',_0x3c73ce(0xc5),'modifierNameField',_0x3c73ce(0xe9),_0x3c73ce(0x105)];for(const _0x43f1ab of _0x34e5cf){if(_0x30d2dd[_0x43f1ab]!==undefined)_0x6b64bf[_0x43f1ab]=_0x30d2dd[_0x43f1ab];}return typeof _0x6b64bf[_0x3c73ce(0xe0)]===_0x3c73ce(0xf9)&&_0x6b64bf[_0x3c73ce(0xe0)][_0x3c73ce(0xe2)]>0x0&&(_0x6b64bf['allFieldNames']=_0x6b64bf['allFields'][_0x3c73ce(0xc4)](',')['map'](_0x2798a9=>_0x2798a9[_0x3c73ce(0xdf)]())['filter'](Boolean)),_0x6b64bf;}function normalizeRelatedPages(_0x1c92af){const _0x44af0b=a45_0x52a2;if(!Array[_0x44af0b(0xdb)](_0x1c92af))return[];return _0x1c92af[_0x44af0b(0xd0)](_0x497149=>_0x497149&&typeof _0x497149===_0x44af0b(0xea))[_0x44af0b(0xca)](_0x35492b=>({'id':_0x35492b['id'],'type':_0x35492b[_0x44af0b(0xf1)],'code':_0x35492b[_0x44af0b(0xf7)],'title':_0x35492b['title'],'deleted':_0x35492b[_0x44af0b(0xe3)]===!![]}));}export const datasetDetail={'service':a45_0x7aa59f(0xfd),'command':a45_0x7aa59f(0xd5),'description':a45_0x7aa59f(0xd7),'risk':a45_0x7aa59f(0xfc),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a45_0x7aa59f(0xf0),'type':a45_0x7aa59f(0xf9),'description':a45_0x7aa59f(0xcc)}],async 'execute'(_0x1422bf){const _0x55b0f4=a45_0x7aa59f,_0x153d31=await getDatasetDetail(_0x1422bf[_0x55b0f4(0xc3)](_0x55b0f4(0xf7))),_0x4a81e3=Array[_0x55b0f4(0xdb)](_0x153d31[_0x55b0f4(0xee)])?_0x153d31[_0x55b0f4(0xee)]:Array['isArray'](_0x153d31[_0x55b0f4(0xf3)])?_0x153d31['properties']:[],_0x374611=_0x4a81e3['map'](_0x61873f=>normalizeField(_0x61873f))['filter'](_0x4cd263=>_0x4cd263!==null),_0x1a9403=_0x153d31[_0x55b0f4(0xfe)]??{},_0x11f70e=[];for(const [_0x1d4b09,_0x44cc9c]of Object[_0x55b0f4(0x101)](_0x1a9403)){const _0x2e9648=normalizeOperationEntry(_0x1d4b09,_0x44cc9c);if(_0x2e9648)_0x11f70e[_0x55b0f4(0xd2)](_0x2e9648);}const _0x20ad40=_0x153d31['dbtableConfig']??{},_0xaa7214=_0x153d31[_0x55b0f4(0xfd)]??{},_0x5f3ec6=_0x20ad40[_0x55b0f4(0xc0)]!=null?{'id':_0x20ad40[_0x55b0f4(0xc0)],'name':_0x20ad40['dbName']??null}:undefined;let _0xa5eb1e;return typeof _0x153d31[_0x55b0f4(0xe7)]===_0x55b0f4(0xf9)&&(_0xa5eb1e=parseJsonMaybe(_0x153d31[_0x55b0f4(0xe7)])),{'ok':!![],'data':{'id':_0x153d31[_0x55b0f4(0xf8)]??_0x153d31['id'],'name':_0x153d31[_0x55b0f4(0xe6)],'code':_0x153d31[_0x55b0f4(0x10d)]||_0x153d31[_0x55b0f4(0xf7)],'doVersion':_0x153d31[_0x55b0f4(0xc8)],'description':_0x153d31['description']||_0xaa7214['tableComment']||undefined,'source':_0x153d31[_0x55b0f4(0xda)]||_0xaa7214[_0x55b0f4(0x102)],'table':_0x20ad40[_0x55b0f4(0xd9)]||_0xaa7214['tableName'],'datasetKey':_0x20ad40['datasetKey'],'pk':_0x20ad40[_0x55b0f4(0xf6)],'db':_0x5f3ec6,'dbtable':summarizeDbtable(_0x20ad40),'fields':_0x374611,'operations':_0x11f70e,'indexes':Array['isArray'](_0xaa7214[_0x55b0f4(0xdc)])?_0xaa7214[_0x55b0f4(0xdc)]:[],'relations':Array[_0x55b0f4(0xdb)](_0x153d31['relations'])?_0x153d31[_0x55b0f4(0x107)][_0x55b0f4(0xca)](_0x41ea15=>({'fromField':_0x41ea15[_0x55b0f4(0xd8)],'toDataset':_0x41ea15[_0x55b0f4(0xc1)],'toCode':_0x41ea15[_0x55b0f4(0x109)],'toTable':_0x41ea15[_0x55b0f4(0xcf)],'toField':_0x41ea15['toField'],'labelField':_0x41ea15[_0x55b0f4(0xe4)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x153d31[_0x55b0f4(0x106)]),...Array[_0x55b0f4(0xdb)](_0x153d31['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x153d31[_0x55b0f4(0x10a)]}:{},'formatRules':Array[_0x55b0f4(0xdb)](_0x153d31[_0x55b0f4(0xef)])?_0x153d31[_0x55b0f4(0xef)]:[],'validateRules':Array['isArray'](_0x153d31[_0x55b0f4(0xcb)])?_0x153d31[_0x55b0f4(0xcb)]:[],..._0xa5eb1e!==undefined?{'extend':_0xa5eb1e}:{},'stats':{'fieldCount':_0x374611[_0x55b0f4(0xe2)],'operationCount':_0x11f70e[_0x55b0f4(0xe2)]}}};}};
@@ -1 +1 @@
1
- (function(_0x44cd35,_0x502d1d){const _0xca273b=a46_0x320e,_0x2839b4=_0x44cd35();while(!![]){try{const _0x248f26=-parseInt(_0xca273b(0x1c2))/0x1*(-parseInt(_0xca273b(0x1c5))/0x2)+-parseInt(_0xca273b(0x1bd))/0x3*(-parseInt(_0xca273b(0x1c4))/0x4)+-parseInt(_0xca273b(0x1c3))/0x5+parseInt(_0xca273b(0x1bf))/0x6+parseInt(_0xca273b(0x1c7))/0x7*(parseInt(_0xca273b(0x1c6))/0x8)+-parseInt(_0xca273b(0x1c0))/0x9+parseInt(_0xca273b(0x1c1))/0xa*(-parseInt(_0xca273b(0x1be))/0xb);if(_0x248f26===_0x502d1d)break;else _0x2839b4['push'](_0x2839b4['shift']());}catch(_0x5b8581){_0x2839b4['push'](_0x2839b4['shift']());}}}(a46_0x712f,0x21cf4));function a46_0x712f(){const _0x53aa51=['438454ljjQCr','72zfDUtv','133357SlfSqc','91059CJkdri','200673dAAEiD','316224rUHume','2341782BavmSn','30ModZeG','1JDIBXJ','101660IONGGI','4ZJZpRa'];a46_0x712f=function(){return _0x53aa51;};return a46_0x712f();}import{datasetList}from'./list.js';import{datasetDetail}from'./detail.js';function a46_0x320e(_0x322755,_0x4d6d3e){_0x322755=_0x322755-0x1bd;const _0x712fc8=a46_0x712f();let _0x320e30=_0x712fc8[_0x322755];return _0x320e30;}import{datasetOperations}from'./operations.js';import{datasetLinks}from'./links.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
1
+ (function(_0x452f97,_0x4436c6){const _0xfda0c1=a46_0x5300,_0x482dbc=_0x452f97();while(!![]){try{const _0xc5448f=parseInt(_0xfda0c1(0x167))/0x1*(-parseInt(_0xfda0c1(0x162))/0x2)+parseInt(_0xfda0c1(0x168))/0x3+-parseInt(_0xfda0c1(0x163))/0x4+parseInt(_0xfda0c1(0x165))/0x5*(-parseInt(_0xfda0c1(0x164))/0x6)+parseInt(_0xfda0c1(0x169))/0x7*(-parseInt(_0xfda0c1(0x16b))/0x8)+-parseInt(_0xfda0c1(0x16c))/0x9*(-parseInt(_0xfda0c1(0x16a))/0xa)+parseInt(_0xfda0c1(0x166))/0xb*(parseInt(_0xfda0c1(0x16d))/0xc);if(_0xc5448f===_0x4436c6)break;else _0x482dbc['push'](_0x482dbc['shift']());}catch(_0x4095e8){_0x482dbc['push'](_0x482dbc['shift']());}}}(a46_0x3ad5,0x59e32));function a46_0x5300(_0x3def5c,_0x48dfb2){_0x3def5c=_0x3def5c-0x162;const _0x3ad564=a46_0x3ad5();let _0x53002d=_0x3ad564[_0x3def5c];return _0x53002d;}import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a46_0x3ad5(){const _0x410daa=['1749808oiucuw','24uirokj','912785oFdBxs','425337oByMrP','352317NgIljX','1099995glOgFp','26971jGtqQE','733540wwzNsR','1240AsASdi','18OTUUhj','612zQMYIU','2IGlgul'];a46_0x3ad5=function(){return _0x410daa;};return a46_0x3ad5();}import{datasetOperations}from'../../commands/dataset/operations.js';import{datasetLinks}from'../../commands/dataset/links.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
@@ -1 +1 @@
1
- const a47_0x172e5=a47_0x5a85;(function(_0xdb5725,_0x1c9d80){const _0x3d1a0a=a47_0x5a85,_0x5ae4e1=_0xdb5725();while(!![]){try{const _0x12bb10=parseInt(_0x3d1a0a(0x1a1))/0x1+parseInt(_0x3d1a0a(0x176))/0x2*(-parseInt(_0x3d1a0a(0x19f))/0x3)+parseInt(_0x3d1a0a(0x192))/0x4*(-parseInt(_0x3d1a0a(0x188))/0x5)+-parseInt(_0x3d1a0a(0x1a0))/0x6*(-parseInt(_0x3d1a0a(0x19a))/0x7)+-parseInt(_0x3d1a0a(0x185))/0x8+parseInt(_0x3d1a0a(0x1a2))/0x9+parseInt(_0x3d1a0a(0x1a3))/0xa*(parseInt(_0x3d1a0a(0x175))/0xb);if(_0x12bb10===_0x1c9d80)break;else _0x5ae4e1['push'](_0x5ae4e1['shift']());}catch(_0x5cc7aa){_0x5ae4e1['push'](_0x5ae4e1['shift']());}}}(a47_0x8cf7,0x92960));function a47_0x8cf7(){const _0x4be166=['datasets','bool','datasetName','name','Return\x20full\x20raw\x20ER\x20response\x20from\x20API','verbose','\x20dataset(s),\x20','6396808bWWdlI','dataset','toField','7485dVgVSF','stats','length','filter','LEFT','all','Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20','dbName','meta','fromField','3004YclOJT','str','boolean','\x20database(s)','displayName','joinType','reduce','isForeignKey','1325681gDHaJn','datasetId','dbId','\x20relation(s)','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','3bpUENb','24WIIGxQ','1161408QqhgPX','3667581mqRzdb','1995190pqdHil','map','Fetched\x20link\x20graph\x20for\x20','tableName','appCode','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','datasetCode','relationCount','toDataset','33NCSIiY','801484hDKZFF','fields','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','links','Link\x20graph:\x20','isPrimaryKey','datasetCount','relations'];a47_0x8cf7=function(){return _0x4be166;};return a47_0x8cf7();}import{getErConfig}from'../../core/api-client.js';function a47_0x5a85(_0x51cce2,_0x277d2e){_0x51cce2=_0x51cce2-0x16d;const _0x8cf7d1=a47_0x8cf7();let _0x5a85ee=_0x8cf7d1[_0x51cce2];return _0x5a85ee;}import{resolveDb}from'../../core/db-resolver.js';import{APPCODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetLinks={'service':a47_0x172e5(0x186),'command':a47_0x172e5(0x179),'description':a47_0x172e5(0x171)+a47_0x172e5(0x18e)+a47_0x172e5(0x178),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':'string','description':'Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20'+a47_0x172e5(0x19e)},{'name':a47_0x172e5(0x183),'type':a47_0x172e5(0x194),'description':a47_0x172e5(0x182)}],async 'execute'(_0x38c6ef){const _0x2bbef1=a47_0x172e5,_0x455fef=_0x38c6ef[_0x2bbef1(0x17f)]('verbose'),{resolved:_0xe76642,error:_0x2bdb51}=await resolveDb(_0x38c6ef['appCode'],_0x38c6ef[_0x2bbef1(0x193)]('db')||undefined);if(_0x2bdb51)return{'ok':![],'message':_0x2bdb51};const _0x4f7436=_0xe76642['map'](_0x29049e=>_0x29049e[_0x2bbef1(0x19c)]),_0x344443=await Promise[_0x2bbef1(0x18d)](_0x4f7436[_0x2bbef1(0x16d)](_0x362f3d=>getErConfig(_0x38c6ef[_0x2bbef1(0x170)],_0x362f3d)));if(_0x455fef)return{'ok':!![],'data':_0x344443[_0x2bbef1(0x18a)]===0x1?_0x344443[0x0]:_0x344443,'message':_0x2bbef1(0x16e)+_0x4f7436[_0x2bbef1(0x18a)]+_0x2bbef1(0x195)};const _0x2568b3=_0x344443[_0x2bbef1(0x16d)](_0x1cde41=>{const _0xc47066=_0x2bbef1,_0x2713b1=(_0x1cde41[_0xc47066(0x17e)]??[])[_0xc47066(0x16d)](_0x5d7a94=>{const _0x4b5a1a=_0xc47066,_0x23a305=_0x5d7a94[_0x4b5a1a(0x177)]?.[_0x4b5a1a(0x18b)](_0x109eda=>_0x109eda['isPrimaryKey'])[_0x4b5a1a(0x16d)](_0x4b5fc4=>_0x4b5fc4['name'])??[],_0x4f89a8=_0x5d7a94[_0x4b5a1a(0x177)]?.[_0x4b5a1a(0x18b)](_0x495f39=>_0x495f39[_0x4b5a1a(0x199)])[_0x4b5a1a(0x16d)](_0x42e6a8=>_0x42e6a8[_0x4b5a1a(0x181)])??[];return{'id':_0x5d7a94[_0x4b5a1a(0x19b)],'name':_0x5d7a94[_0x4b5a1a(0x180)],'code':_0x5d7a94[_0x4b5a1a(0x172)],'table':_0x5d7a94[_0x4b5a1a(0x16f)],'comment':_0x5d7a94['tableComment']||undefined,'fields':(_0x5d7a94[_0x4b5a1a(0x177)]??[])[_0x4b5a1a(0x16d)](_0x4cad1e=>({'name':_0x4cad1e[_0x4b5a1a(0x181)],'displayName':_0x4cad1e[_0x4b5a1a(0x196)],'type':_0x4cad1e['dbType'],'pk':_0x4cad1e[_0x4b5a1a(0x17b)],'fk':_0x4cad1e[_0x4b5a1a(0x199)]})),'relations':(_0x5d7a94['relations']??[])[_0x4b5a1a(0x18b)](_0x32fe65=>_0x32fe65[_0x4b5a1a(0x191)]&&_0x32fe65['toDataset'])['map'](_0x17ef66=>({'from':_0x17ef66[_0x4b5a1a(0x191)],'toDataset':_0x17ef66['toDatasetName'],'toCode':_0x17ef66[_0x4b5a1a(0x174)],'toField':_0x17ef66[_0x4b5a1a(0x187)],'joinType':_0x17ef66[_0x4b5a1a(0x197)]||_0x4b5a1a(0x18c)})),'stats':{'fieldCount':_0x5d7a94[_0x4b5a1a(0x177)]?.['length']??0x0,'pkCount':_0x23a305['length'],'fkCount':_0x4f89a8[_0x4b5a1a(0x18a)],'relationCount':_0x5d7a94[_0x4b5a1a(0x17d)]?.[_0x4b5a1a(0x18a)]??0x0}};}),_0x50901f=_0x2713b1[_0xc47066(0x18b)](_0x87b504=>_0x87b504[_0xc47066(0x189)][_0xc47066(0x173)]>0x0)['map'](_0x1febe5=>_0x1febe5[_0xc47066(0x181)]);return{'db':_0x1cde41['meta']?.[_0xc47066(0x18f)],'dbId':_0x1cde41[_0xc47066(0x190)]?.[_0xc47066(0x19c)],'appCode':_0x1cde41['meta']?.[_0xc47066(0x170)],'datasetCount':_0x2713b1['length'],'connectedDatasets':_0x50901f,'datasets':_0x2713b1};}),_0x20bca2=_0x2568b3['reduce']((_0x190385,_0x2b8609)=>_0x190385+_0x2b8609[_0x2bbef1(0x17c)],0x0),_0x25437f=_0x2568b3[_0x2bbef1(0x198)]((_0xb53b8b,_0x55f33e)=>_0xb53b8b+_0x55f33e[_0x2bbef1(0x17e)][_0x2bbef1(0x198)]((_0x3dd21f,_0x3a6e03)=>_0x3dd21f+_0x3a6e03['stats'][_0x2bbef1(0x173)],0x0),0x0);return{'ok':!![],'data':_0x2568b3[_0x2bbef1(0x18a)]===0x1?_0x2568b3[0x0]:{'databases':_0x2568b3},'message':_0x2bbef1(0x17a)+_0x2568b3[_0x2bbef1(0x18a)]+'\x20database(s),\x20'+_0x20bca2+_0x2bbef1(0x184)+_0x25437f+_0x2bbef1(0x19d)};}};
1
+ const a47_0x279310=a47_0x1420;(function(_0x4d0a2e,_0x35ce06){const _0x42f596=a47_0x1420,_0x4c7b98=_0x4d0a2e();while(!![]){try{const _0x527611=parseInt(_0x42f596(0xfb))/0x1*(parseInt(_0x42f596(0x11d))/0x2)+parseInt(_0x42f596(0x116))/0x3*(parseInt(_0x42f596(0x113))/0x4)+-parseInt(_0x42f596(0x101))/0x5*(parseInt(_0x42f596(0x107))/0x6)+parseInt(_0x42f596(0xf6))/0x7+parseInt(_0x42f596(0x11e))/0x8+parseInt(_0x42f596(0x126))/0x9+-parseInt(_0x42f596(0x102))/0xa;if(_0x527611===_0x35ce06)break;else _0x4c7b98['push'](_0x4c7b98['shift']());}catch(_0x38ed7f){_0x4c7b98['push'](_0x4c7b98['shift']());}}}(a47_0x1e8c,0xd5d59));import{getErConfig}from'../../core/api-client.js';function a47_0x1e8c(){const _0x2924a4=['isPrimaryKey','Link\x20graph:\x20','links','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','1968VRqQsq','Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20','name','2757WciRXS','displayName','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','bool','datasetName','string','LEFT','2OuhoTU','9202448fKKaeL','relations','isForeignKey','verbose','stats','filter','datasetCount','datasetId','13846203RWfaAq','fromField','\x20database(s),\x20','fields','length','dataset','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','6628601InStrM','meta','toField','appCode','tableName','1070807totHKA','dbId','\x20relation(s)','datasets','\x20database(s)','str','7620610gzMPRr','27586840TXyYot','joinType','Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20','toDataset','Fetched\x20link\x20graph\x20for\x20','6RceAIy','reduce','boolean','Return\x20full\x20raw\x20ER\x20response\x20from\x20API','all','dbName','relationCount','map'];a47_0x1e8c=function(){return _0x2924a4;};return a47_0x1e8c();}import{resolveDb}from'../../core/db-resolver.js';function a47_0x1420(_0x190289,_0x181200){_0x190289=_0x190289-0xf3;const _0x1e8cd1=a47_0x1e8c();let _0x1420c5=_0x1e8cd1[_0x190289];return _0x1420c5;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetLinks={'service':a47_0x279310(0xf4),'command':a47_0x279310(0x111),'description':a47_0x279310(0x112)+a47_0x279310(0x114)+a47_0x279310(0xf5),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':a47_0x279310(0x11b),'description':a47_0x279310(0x104)+a47_0x279310(0x118)},{'name':a47_0x279310(0x121),'type':a47_0x279310(0x109),'description':a47_0x279310(0x10a)}],async 'execute'(_0x4b9c65){const _0x224c63=a47_0x279310,_0x4079c4=_0x4b9c65[_0x224c63(0x119)]('verbose'),{resolved:_0x2dbcd5,error:_0x10a98e}=await resolveDb(_0x4b9c65[_0x224c63(0xf9)],_0x4b9c65[_0x224c63(0x100)]('db')||undefined);if(_0x10a98e)return{'ok':![],'message':_0x10a98e};const _0x5f4f18=_0x2dbcd5[_0x224c63(0x10e)](_0x71d24c=>_0x71d24c[_0x224c63(0xfc)]),_0x5e26b9=await Promise[_0x224c63(0x10b)](_0x5f4f18[_0x224c63(0x10e)](_0x2fe6ec=>getErConfig(_0x4b9c65[_0x224c63(0xf9)],_0x2fe6ec)));if(_0x4079c4)return{'ok':!![],'data':_0x5e26b9[_0x224c63(0xf3)]===0x1?_0x5e26b9[0x0]:_0x5e26b9,'message':_0x224c63(0x106)+_0x5f4f18[_0x224c63(0xf3)]+_0x224c63(0xff)};const _0x4168e7=_0x5e26b9[_0x224c63(0x10e)](_0x7c3fc3=>{const _0x42a378=_0x224c63,_0x22ae61=(_0x7c3fc3[_0x42a378(0xfe)]??[])[_0x42a378(0x10e)](_0x11007e=>{const _0x21ee42=_0x42a378,_0xdb284b=_0x11007e[_0x21ee42(0x129)]?.[_0x21ee42(0x123)](_0x25ddaf=>_0x25ddaf[_0x21ee42(0x10f)])['map'](_0x2f655f=>_0x2f655f[_0x21ee42(0x115)])??[],_0x24db7b=_0x11007e[_0x21ee42(0x129)]?.['filter'](_0x5b91b1=>_0x5b91b1[_0x21ee42(0x120)])[_0x21ee42(0x10e)](_0x4e6733=>_0x4e6733[_0x21ee42(0x115)])??[];return{'id':_0x11007e[_0x21ee42(0x125)],'name':_0x11007e[_0x21ee42(0x11a)],'code':_0x11007e['datasetCode'],'table':_0x11007e[_0x21ee42(0xfa)],'comment':_0x11007e['tableComment']||undefined,'fields':(_0x11007e[_0x21ee42(0x129)]??[])[_0x21ee42(0x10e)](_0x37bdbd=>({'name':_0x37bdbd[_0x21ee42(0x115)],'displayName':_0x37bdbd[_0x21ee42(0x117)],'type':_0x37bdbd['dbType'],'pk':_0x37bdbd[_0x21ee42(0x10f)],'fk':_0x37bdbd['isForeignKey']})),'relations':(_0x11007e[_0x21ee42(0x11f)]??[])[_0x21ee42(0x123)](_0x3648bd=>_0x3648bd[_0x21ee42(0x127)]&&_0x3648bd[_0x21ee42(0x105)])[_0x21ee42(0x10e)](_0x47a81c=>({'from':_0x47a81c[_0x21ee42(0x127)],'toDataset':_0x47a81c['toDatasetName'],'toCode':_0x47a81c['toDataset'],'toField':_0x47a81c[_0x21ee42(0xf8)],'joinType':_0x47a81c[_0x21ee42(0x103)]||_0x21ee42(0x11c)})),'stats':{'fieldCount':_0x11007e[_0x21ee42(0x129)]?.[_0x21ee42(0xf3)]??0x0,'pkCount':_0xdb284b[_0x21ee42(0xf3)],'fkCount':_0x24db7b[_0x21ee42(0xf3)],'relationCount':_0x11007e['relations']?.[_0x21ee42(0xf3)]??0x0}};}),_0x4563d9=_0x22ae61['filter'](_0x354794=>_0x354794['stats'][_0x42a378(0x10d)]>0x0)[_0x42a378(0x10e)](_0xb22b19=>_0xb22b19[_0x42a378(0x115)]);return{'db':_0x7c3fc3['meta']?.[_0x42a378(0x10c)],'dbId':_0x7c3fc3[_0x42a378(0xf7)]?.[_0x42a378(0xfc)],'appCode':_0x7c3fc3[_0x42a378(0xf7)]?.[_0x42a378(0xf9)],'datasetCount':_0x22ae61[_0x42a378(0xf3)],'connectedDatasets':_0x4563d9,'datasets':_0x22ae61};}),_0x1bbddf=_0x4168e7['reduce']((_0x112f88,_0x396d70)=>_0x112f88+_0x396d70[_0x224c63(0x124)],0x0),_0x4212cd=_0x4168e7['reduce']((_0x596b56,_0x1b3e7b)=>_0x596b56+_0x1b3e7b[_0x224c63(0xfe)][_0x224c63(0x108)]((_0x175c8a,_0x33ad69)=>_0x175c8a+_0x33ad69[_0x224c63(0x122)][_0x224c63(0x10d)],0x0),0x0);return{'ok':!![],'data':_0x4168e7[_0x224c63(0xf3)]===0x1?_0x4168e7[0x0]:{'databases':_0x4168e7},'message':_0x224c63(0x110)+_0x4168e7[_0x224c63(0xf3)]+_0x224c63(0x128)+_0x1bbddf+'\x20dataset(s),\x20'+_0x4212cd+_0x224c63(0xfd)};}};
@@ -1 +1 @@
1
- const a48_0x34d536=a48_0x1092;function a48_0x1092(_0x489876,_0x4e68cc){_0x489876=_0x489876-0xfe;const _0x5dab51=a48_0x5dab();let _0x1092ef=_0x5dab51[_0x489876];return _0x1092ef;}(function(_0x1bc433,_0x4d9834){const _0x37e77a=a48_0x1092,_0x12f258=_0x1bc433();while(!![]){try{const _0xc483d8=parseInt(_0x37e77a(0x115))/0x1*(parseInt(_0x37e77a(0xff))/0x2)+-parseInt(_0x37e77a(0x105))/0x3*(-parseInt(_0x37e77a(0x116))/0x4)+parseInt(_0x37e77a(0x10d))/0x5+-parseInt(_0x37e77a(0x103))/0x6+-parseInt(_0x37e77a(0x112))/0x7*(-parseInt(_0x37e77a(0x111))/0x8)+-parseInt(_0x37e77a(0x106))/0x9+-parseInt(_0x37e77a(0x10e))/0xa;if(_0xc483d8===_0x4d9834)break;else _0x12f258['push'](_0x12f258['shift']());}catch(_0x426401){_0x12f258['push'](_0x12f258['shift']());}}}(a48_0x5dab,0x85daf));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetList={'service':'dataset','command':a48_0x34d536(0x10a),'description':a48_0x34d536(0x102),'risk':'read','flags':[{'name':'name','type':a48_0x34d536(0x119),'description':'Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)'},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x33a95d){const _0x2ec608=a48_0x34d536,_0x5a95db=_0x33a95d['str'](_0x2ec608(0x10b)),_0x2512e2=_0x33a95d[_0x2ec608(0x10c)](_0x2ec608(0x108)),_0x3a8a4c=await listDatasets(_0x33a95d[_0x2ec608(0x114)],{..._0x5a95db&&{'name':_0x5a95db},..._0x2512e2&&{'code':_0x2512e2}}),_0x46f7c1=_0x3a8a4c[_0x2ec608(0x118)](_0x17373d=>{const _0x274a97=_0x2ec608,_0x4dca3c=_0x17373d[_0x274a97(0x110)]??{};return{'id':_0x17373d['id'],'name':_0x17373d[_0x274a97(0x10b)],'code':_0x17373d[_0x274a97(0x108)],'description':_0x17373d['description'],'source':_0x17373d[_0x274a97(0xfe)],'db':_0x4dca3c[_0x274a97(0x107)],'table':_0x4dca3c[_0x274a97(0x10f)],'datasetKey':_0x4dca3c['datasetKey'],'pk':_0x4dca3c[_0x274a97(0x113)],'fields':_0x4dca3c[_0x274a97(0x104)]?_0x4dca3c[_0x274a97(0x104)]['split'](',')['map'](_0x16c31e=>_0x16c31e[_0x274a97(0x100)]()):[]};});return{'ok':!![],'data':{'total':_0x46f7c1[_0x2ec608(0x109)],'datasets':_0x46f7c1},'message':_0x2ec608(0x101)+_0x46f7c1[_0x2ec608(0x109)]+_0x2ec608(0x117)};}};function a48_0x5dab(){const _0x21e72c=['List\x20all\x20datasets\x20with\x20metadata','116688Hlwowq','allFields','6UxqvwP','1570302HGYaDb','dbName','code','length','list','name','str','1017685WJehdR','732370RdmwvV','tableName','dbtableConfig','8AJKZNC','1992508mTdtAE','pkField','appCode','213PoiGzl','15932RyLsNK','\x20dataset(s)','map','string','source','2998nHNbIT','trim','Found\x20'];a48_0x5dab=function(){return _0x21e72c;};return a48_0x5dab();}
1
+ function a48_0x148b(_0x953c7d,_0x36cd91){_0x953c7d=_0x953c7d-0xcf;const _0x2841e9=a48_0x2841();let _0x148b1e=_0x2841e9[_0x953c7d];return _0x148b1e;}const a48_0x518adf=a48_0x148b;(function(_0x5e976a,_0x4e2f37){const _0x4cef19=a48_0x148b,_0x69d8e1=_0x5e976a();while(!![]){try{const _0x196945=parseInt(_0x4cef19(0xda))/0x1*(-parseInt(_0x4cef19(0xd7))/0x2)+-parseInt(_0x4cef19(0xd6))/0x3+parseInt(_0x4cef19(0xe4))/0x4*(parseInt(_0x4cef19(0xd0))/0x5)+-parseInt(_0x4cef19(0xdf))/0x6*(parseInt(_0x4cef19(0xe2))/0x7)+-parseInt(_0x4cef19(0xe8))/0x8+parseInt(_0x4cef19(0xde))/0x9*(parseInt(_0x4cef19(0xea))/0xa)+-parseInt(_0x4cef19(0xe3))/0xb*(-parseInt(_0x4cef19(0xe7))/0xc);if(_0x196945===_0x4e2f37)break;else _0x69d8e1['push'](_0x69d8e1['shift']());}catch(_0x27e880){_0x69d8e1['push'](_0x69d8e1['shift']());}}}(a48_0x2841,0x66c77));import{listDatasets}from'../../core/api-client.js';function a48_0x2841(){const _0x515af2=['1850115DWTTuq','217594Jqlzoa','datasetKey','dataset','7qLHSrb','source','dbtableConfig','map','9RbBpTu','2425788kVdBFH','\x20dataset(s)','List\x20all\x20datasets\x20with\x20metadata','7zPjDTh','704jFrAlE','20dIvehq','length','name','371652EkeSge','2991864movvrp','tableName','1695740QSnurA','description','string','code','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','425830RXngJd','Found\x20','str','split','read','pkField'];a48_0x2841=function(){return _0x515af2;};return a48_0x2841();}import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetList={'service':a48_0x518adf(0xd9),'command':'list','description':a48_0x518adf(0xe1),'risk':a48_0x518adf(0xd4),'flags':[{'name':'name','type':a48_0x518adf(0xec),'description':a48_0x518adf(0xcf)},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x578257){const _0x18e4a7=a48_0x518adf,_0x50b3de=_0x578257[_0x18e4a7(0xd2)](_0x18e4a7(0xe6)),_0x308609=_0x578257['str'](_0x18e4a7(0xed)),_0x4ec771=await listDatasets(_0x578257['appCode'],{..._0x50b3de&&{'name':_0x50b3de},..._0x308609&&{'code':_0x308609}}),_0x2d191b=_0x4ec771[_0x18e4a7(0xdd)](_0x12f025=>{const _0x396e76=_0x18e4a7,_0x1bf4e2=_0x12f025[_0x396e76(0xdc)]??{};return{'id':_0x12f025['id'],'name':_0x12f025[_0x396e76(0xe6)],'code':_0x12f025[_0x396e76(0xed)],'description':_0x12f025[_0x396e76(0xeb)],'source':_0x12f025[_0x396e76(0xdb)],'db':_0x1bf4e2['dbName'],'table':_0x1bf4e2[_0x396e76(0xe9)],'datasetKey':_0x1bf4e2[_0x396e76(0xd8)],'pk':_0x1bf4e2[_0x396e76(0xd5)],'fields':_0x1bf4e2['allFields']?_0x1bf4e2['allFields'][_0x396e76(0xd3)](',')[_0x396e76(0xdd)](_0x51717e=>_0x51717e['trim']()):[]};});return{'ok':!![],'data':{'total':_0x2d191b['length'],'datasets':_0x2d191b},'message':_0x18e4a7(0xd1)+_0x2d191b[_0x18e4a7(0xe5)]+_0x18e4a7(0xe0)};}};
@@ -1 +1 @@
1
- const a49_0x39a561=a49_0x8fd9;(function(_0x47d370,_0x3cc891){const _0xc4d6b5=a49_0x8fd9,_0x15c5af=_0x47d370();while(!![]){try{const _0x497916=parseInt(_0xc4d6b5(0xa5))/0x1+-parseInt(_0xc4d6b5(0xa0))/0x2+parseInt(_0xc4d6b5(0x9c))/0x3+parseInt(_0xc4d6b5(0x9b))/0x4+-parseInt(_0xc4d6b5(0xa6))/0x5*(-parseInt(_0xc4d6b5(0x94))/0x6)+-parseInt(_0xc4d6b5(0x92))/0x7+parseInt(_0xc4d6b5(0x97))/0x8*(-parseInt(_0xc4d6b5(0x95))/0x9);if(_0x497916===_0x3cc891)break;else _0x15c5af['push'](_0x15c5af['shift']());}catch(_0x3db189){_0x15c5af['push'](_0x15c5af['shift']());}}}(a49_0x19d5,0x9352e));import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetOperations={'service':a49_0x39a561(0x98),'command':a49_0x39a561(0x9f),'description':a49_0x39a561(0x8c),'risk':'read','flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a49_0x39a561(0x9a),'type':'string','description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)'},{'name':a49_0x39a561(0x99),'type':a49_0x39a561(0x8d),'description':a49_0x39a561(0xa1)},{'name':'verbose','type':a49_0x39a561(0x90),'description':a49_0x39a561(0x96)}],async 'execute'(_0x4f52bb){const _0xdecfe1=a49_0x39a561,_0x22634f=_0x4f52bb[_0xdecfe1(0x8f)](_0xdecfe1(0xa2)),_0x469904=_0x4f52bb['str']('operation'),_0x5c3eeb=_0x4f52bb[_0xdecfe1(0xa4)](_0xdecfe1(0xa3));if(_0x469904){const {dataset:_0x1b3cff,operation:_0x1bd62a}=await getOperationDetail(_0x4f52bb[_0xdecfe1(0xa7)],_0x22634f,_0x469904);return{'ok':!![],'data':{'dataset':_0x1b3cff,'operation':_0x1bd62a}};}const {dataset:_0xeb1384,operations:_0x335e82}=await getDatasetOperations(_0x22634f);return{'ok':!![],'data':{'dataset':_0xeb1384,'total':_0x335e82[_0xdecfe1(0x9e)],'operations':_0x5c3eeb?_0x335e82:_0x335e82[_0xdecfe1(0x91)](_0x3cf2dc=>({'name':_0x3cf2dc[_0xdecfe1(0x93)],'displayName':_0x3cf2dc['displayName'],'type':_0x3cf2dc[_0xdecfe1(0xa8)],'method':_0x3cf2dc[_0xdecfe1(0x8e)],'enabled':_0x3cf2dc[_0xdecfe1(0x9d)]}))}};}};function a49_0x8fd9(_0x5263cc,_0x10f33e){_0x5263cc=_0x5263cc-0x8c;const _0x19d5cb=a49_0x19d5();let _0x8fd9ee=_0x19d5cb[_0x5263cc];return _0x8fd9ee;}function a49_0x19d5(){const _0x1c6162=['615628IUUnnF','Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)','code','verbose','bool','57720ivubgf','5gxKeXH','appCode','type','Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','string','method','str','boolean','map','5721016NgBpNy','name','2041770eENUVx','45EDnUqe','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','520616dsIlNT','dataset','operation','alias','3930580qcXENF','2019795tQSpFd','enabled','length','operations'];a49_0x19d5=function(){return _0x1c6162;};return a49_0x19d5();}
1
+ function a49_0x7387(){const _0x148334=['16SDHoHo','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','boolean','enabled','verbose','8520790Ppxvjx','appCode','dataset','Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','alias','operation','name','type','1548443dNpylN','operations','str','4864236SqTqaC','length','bool','1397557jlhlqR','method','4ImNsUk','3539160VYvMje','2294568FuRJvt','string','Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)','displayName','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','338964hbgAId','45PFLdxf'];a49_0x7387=function(){return _0x148334;};return a49_0x7387();}const a49_0x217bf7=a49_0x5ce9;function a49_0x5ce9(_0x33925e,_0x5cc423){_0x33925e=_0x33925e-0xc4;const _0x73878d=a49_0x7387();let _0x5ce9ec=_0x73878d[_0x33925e];return _0x5ce9ec;}(function(_0x41934a,_0x30d591){const _0x27bc16=a49_0x5ce9,_0x83d19e=_0x41934a();while(!![]){try{const _0x4663ac=-parseInt(_0x27bc16(0xdc))/0x1+parseInt(_0x27bc16(0xcf))/0x2*(-parseInt(_0x27bc16(0xcd))/0x3)+-parseInt(_0x27bc16(0xc6))/0x4*(parseInt(_0x27bc16(0xc7))/0x5)+-parseInt(_0x27bc16(0xdf))/0x6+parseInt(_0x27bc16(0xc4))/0x7+parseInt(_0x27bc16(0xc8))/0x8+-parseInt(_0x27bc16(0xce))/0x9*(-parseInt(_0x27bc16(0xd4))/0xa);if(_0x4663ac===_0x30d591)break;else _0x83d19e['push'](_0x83d19e['shift']());}catch(_0x2a5939){_0x83d19e['push'](_0x83d19e['shift']());}}}(a49_0x7387,0xbd72e));import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetOperations={'service':a49_0x217bf7(0xd6),'command':a49_0x217bf7(0xdd),'description':a49_0x217bf7(0xd7),'risk':'read','flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a49_0x217bf7(0xd8),'type':'string','description':a49_0x217bf7(0xd0)},{'name':a49_0x217bf7(0xd9),'type':a49_0x217bf7(0xc9),'description':a49_0x217bf7(0xca)},{'name':a49_0x217bf7(0xd3),'type':a49_0x217bf7(0xd1),'description':a49_0x217bf7(0xcc)}],async 'execute'(_0x25552e){const _0x302d12=a49_0x217bf7,_0x63588f=_0x25552e['str']('code'),_0x31d2ce=_0x25552e[_0x302d12(0xde)](_0x302d12(0xd9)),_0x4e3764=_0x25552e[_0x302d12(0xe1)]('verbose');if(_0x31d2ce){const {dataset:_0xff6a08,operation:_0x5827a8}=await getOperationDetail(_0x25552e[_0x302d12(0xd5)],_0x63588f,_0x31d2ce);return{'ok':!![],'data':{'dataset':_0xff6a08,'operation':_0x5827a8}};}const {dataset:_0x1f6b12,operations:_0x5af02e}=await getDatasetOperations(_0x63588f);return{'ok':!![],'data':{'dataset':_0x1f6b12,'total':_0x5af02e[_0x302d12(0xe0)],'operations':_0x4e3764?_0x5af02e:_0x5af02e['map'](_0x45657b=>({'name':_0x45657b[_0x302d12(0xda)],'displayName':_0x45657b[_0x302d12(0xcb)],'type':_0x45657b[_0x302d12(0xdb)],'method':_0x45657b[_0x302d12(0xc5)],'enabled':_0x45657b[_0x302d12(0xd2)]}))}};}};
@@ -1 +1 @@
1
- const a50_0x1c4f86=a50_0x2231;(function(_0x13daa2,_0x4f7b59){const _0x3bf88a=a50_0x2231,_0x552e1a=_0x13daa2();while(!![]){try{const _0x36af72=parseInt(_0x3bf88a(0x150))/0x1+-parseInt(_0x3bf88a(0x126))/0x2+-parseInt(_0x3bf88a(0x144))/0x3*(parseInt(_0x3bf88a(0x164))/0x4)+-parseInt(_0x3bf88a(0x147))/0x5*(parseInt(_0x3bf88a(0x145))/0x6)+-parseInt(_0x3bf88a(0x140))/0x7+parseInt(_0x3bf88a(0x13b))/0x8*(-parseInt(_0x3bf88a(0x136))/0x9)+-parseInt(_0x3bf88a(0x14d))/0xa*(-parseInt(_0x3bf88a(0x13d))/0xb);if(_0x36af72===_0x4f7b59)break;else _0x552e1a['push'](_0x552e1a['shift']());}catch(_0x4a80d1){_0x552e1a['push'](_0x552e1a['shift']());}}}(a50_0x2a90,0x9bd56));import a50_0xaae1ec from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';function a50_0x2231(_0x2df249,_0x4b1b3b){_0x2df249=_0x2df249-0x11b;const _0x2a902f=a50_0x2a90();let _0x2231ff=_0x2a902f[_0x2df249];return _0x2231ff;}import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';async function execute(_0x5fb7b5){const _0x53c666=a50_0x2231,_0x4341cf=GIT_COMMIT!==_0x53c666(0x120)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x53c666(0x134)](0x0,0xa)+')':VERSION,_0x2220af=buildConfigFromFlags({}),_0x30f3fa=getCookie();console[_0x53c666(0x11e)](),console[_0x53c666(0x11e)](a50_0xaae1ec['bold'](CLI_BIN_NAME+_0x53c666(0x124))),console[_0x53c666(0x11e)](a50_0xaae1ec[_0x53c666(0x15c)]('─'[_0x53c666(0x122)](0x32))),console['log'](_0x53c666(0x14a)+_0x4341cf),console[_0x53c666(0x11e)](_0x53c666(0x155)+process[_0x53c666(0x157)]),console[_0x53c666(0x11e)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x53c666(0x125)]+'\x20'+process['arch']),console[_0x53c666(0x11e)](),console[_0x53c666(0x11e)](a50_0xaae1ec[_0x53c666(0x133)](_0x53c666(0x153))),console[_0x53c666(0x11e)](a50_0xaae1ec[_0x53c666(0x15c)]('\x20\x20─'[_0x53c666(0x122)](0x1e)));const _0x546f2e=getGlobalConfigPath(),_0x4c7683=getProjectConfigPath();console[_0x53c666(0x11e)](_0x53c666(0x12d)+(_0x546f2e||a50_0xaae1ec[_0x53c666(0x15c)](_0x53c666(0x141)))),console[_0x53c666(0x11e)](_0x53c666(0x14b)+(_0x4c7683||a50_0xaae1ec[_0x53c666(0x15c)]('(not\x20found)'))),console[_0x53c666(0x11e)](),console['log'](a50_0xaae1ec[_0x53c666(0x133)](_0x53c666(0x13c))),console[_0x53c666(0x11e)](a50_0xaae1ec['gray'](_0x53c666(0x152)[_0x53c666(0x122)](0x1e)));const _0x3e1373=(_0x2becc,_0x6db3b1)=>{const _0x4f61b0=_0x53c666;if(!_0x6db3b1){console[_0x4f61b0(0x11e)]('\x20\x20'+_0x2becc['padEnd'](0x11)+'\x20'+a50_0xaae1ec[_0x4f61b0(0x15c)](_0x4f61b0(0x16b)));return;}const _0x48e016=inspectCliConfigJsonFile(_0x6db3b1);if(_0x48e016['status']==='ok')console[_0x4f61b0(0x11e)]('\x20\x20'+_0x2becc[_0x4f61b0(0x166)](0x11)+'\x20'+a50_0xaae1ec[_0x4f61b0(0x148)](_0x4f61b0(0x131)));else{if(_0x48e016[_0x4f61b0(0x142)]==='empty')console[_0x4f61b0(0x11e)]('\x20\x20'+_0x2becc['padEnd'](0x11)+'\x20'+a50_0xaae1ec['yellow'](_0x4f61b0(0x160)));else _0x48e016[_0x4f61b0(0x142)]==='missing'?console[_0x4f61b0(0x11e)]('\x20\x20'+_0x2becc[_0x4f61b0(0x166)](0x11)+'\x20'+a50_0xaae1ec[_0x4f61b0(0x15c)](_0x4f61b0(0x12a))):(console[_0x4f61b0(0x11e)]('\x20\x20'+_0x2becc['padEnd'](0x11)+'\x20'+a50_0xaae1ec['red'](_0x4f61b0(0x14e))),console[_0x4f61b0(0x11e)]('\x20\x20'+''[_0x4f61b0(0x166)](0x11)+'\x20'+a50_0xaae1ec['red'](_0x48e016[_0x4f61b0(0x129)])));}};_0x3e1373(_0x53c666(0x151),_0x546f2e),_0x3e1373(_0x53c666(0x132),_0x4c7683),console[_0x53c666(0x11e)](),console[_0x53c666(0x11e)](a50_0xaae1ec[_0x53c666(0x133)](_0x53c666(0x13a))),console['log'](a50_0xaae1ec['gray']('\x20\x20─'['repeat'](0x1e))),console['log'](_0x53c666(0x11d)+(_0x2220af[_0x53c666(0x168)]||a50_0xaae1ec[_0x53c666(0x16a)](_0x53c666(0x12c)))),console['log'](_0x53c666(0x165)+_0x2220af[_0x53c666(0x128)]),console[_0x53c666(0x11e)](_0x53c666(0x15b)+_0x2220af[_0x53c666(0x158)]),console[_0x53c666(0x11e)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2220af[_0x53c666(0x162)]),console[_0x53c666(0x11e)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x2220af[_0x53c666(0x16d)]||a50_0xaae1ec[_0x53c666(0x15c)](_0x53c666(0x154)))),console['log']('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x2220af[_0x53c666(0x13f)]||a50_0xaae1ec['gray'](_0x53c666(0x154)))),console[_0x53c666(0x11e)](_0x53c666(0x167)+(_0x2220af['explicitAppName']||a50_0xaae1ec[_0x53c666(0x15c)]('(none)'))),console[_0x53c666(0x11e)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2220af['format']||a50_0xaae1ec[_0x53c666(0x15c)](_0x53c666(0x13e)))),console['log']('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2220af[_0x53c666(0x11c)]??a50_0xaae1ec[_0x53c666(0x15c)]('(default)'))),console['log'](_0x53c666(0x149)+_0x2220af[_0x53c666(0x12f)]),console[_0x53c666(0x11e)](_0x53c666(0x169)+_0x2220af[_0x53c666(0x135)]),console[_0x53c666(0x11e)](_0x53c666(0x15d)+(_0x2220af[_0x53c666(0x12e)]?a50_0xaae1ec['green']('(set,\x20length='+_0x2220af[_0x53c666(0x12e)][_0x53c666(0x146)]+')'):_0x30f3fa?a50_0xaae1ec[_0x53c666(0x148)](_0x53c666(0x15a)+_0x30f3fa['length']+')'):a50_0xaae1ec[_0x53c666(0x15c)](_0x53c666(0x154))));const _0x21e625=Object['keys'](_0x2220af['apps']);if(_0x21e625[_0x53c666(0x146)]>0x0){console[_0x53c666(0x11e)](),console[_0x53c666(0x11e)](a50_0xaae1ec[_0x53c666(0x133)](_0x53c666(0x16c))),console[_0x53c666(0x11e)](a50_0xaae1ec[_0x53c666(0x15c)](_0x53c666(0x152)['repeat'](0x1e)));for(const _0x3dba03 of _0x21e625){const _0xfa4a11=_0x2220af[_0x53c666(0x12b)][_0x3dba03],_0x3e1026=_0x3dba03===_0x2220af[_0x53c666(0x16d)],_0x23d8b9=_0x3dba03===_0x2220af[_0x53c666(0x13f)],_0xec5b2d=_0x23d8b9?a50_0xaae1ec[_0x53c666(0x148)](_0x53c666(0x121)):'',_0x1b9994=_0x3e1026?'\x20(default)':'';console[_0x53c666(0x11e)]('\x20\x20'+_0x3dba03+_0x1b9994+_0xec5b2d),console['log'](_0x53c666(0x15e)+_0xfa4a11[_0x53c666(0x14c)]),console[_0x53c666(0x11e)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20'+(_0xfa4a11[_0x53c666(0x128)]||a50_0xaae1ec[_0x53c666(0x15c)](_0x53c666(0x15f)))),console[_0x53c666(0x11e)]('\x20\x20\x20\x20apiDir:\x20\x20\x20'+(_0xfa4a11[_0x53c666(0x162)]||a50_0xaae1ec['gray']('(inherit)'))),console['log']('\x20\x20\x20\x20cookie:\x20\x20\x20'+(_0xfa4a11[_0x53c666(0x12e)]?a50_0xaae1ec[_0x53c666(0x148)](_0x53c666(0x11b)):a50_0xaae1ec[_0x53c666(0x15c)]('(inherit)')));}}console['log'](),console[_0x53c666(0x11e)](a50_0xaae1ec[_0x53c666(0x133)](_0x53c666(0x127))),console[_0x53c666(0x11e)](a50_0xaae1ec[_0x53c666(0x15c)]('\x20\x20─'['repeat'](0x1e))),console[_0x53c666(0x11e)](_0x53c666(0x143)+getApiDomain()),console[_0x53c666(0x11e)](_0x53c666(0x156)+getUserDomain()),console[_0x53c666(0x11e)](_0x53c666(0x11f)+getRuntimeDomain()),console[_0x53c666(0x11e)](),console[_0x53c666(0x11e)](a50_0xaae1ec['bold'](_0x53c666(0x123))),console[_0x53c666(0x11e)](a50_0xaae1ec[_0x53c666(0x15c)]('\x20\x20─'[_0x53c666(0x122)](0x1e)));if(_0x30f3fa){const _0x4eb8c5=await getIsSessionValid();console['log'](_0x53c666(0x138)+(_0x4eb8c5?a50_0xaae1ec[_0x53c666(0x148)](_0x53c666(0x139)):a50_0xaae1ec[_0x53c666(0x16a)](_0x53c666(0x163))));}else console[_0x53c666(0x11e)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a50_0xaae1ec[_0x53c666(0x16a)](_0x53c666(0x161)));return console[_0x53c666(0x11e)](),{'ok':!![]};}function a50_0x2a90(){const _0x17a4fd=['\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','appcode','19793990lfjaKh','✗\x20Invalid\x20JSON','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','1109053OzmWLS','Global','\x20\x20─','\x20\x20Config\x20Files','(none)','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','version','locale','check','(set\x20via\x20file,\x20length=','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20','(inherit)','⚠\x20Empty\x20(treated\x20as\x20{})','✗\x20Not\x20logged\x20in','apiDir','✗\x20Expired','222868KlVFEW','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','\x20\x20explicitAppName:\x20','appCode','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','red','(no\x20file)','\x20\x20Apps','defaultApp','(set)','pageSize','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','log','\x20\x20runtimeDomain:\x20\x20\x20','unknown','\x20←\x20current','repeat','\x20\x20Auth','\x20doctor','platform','23078JtlZId','\x20\x20API\x20Endpoints','env','message','(missing)','apps','(not\x20set)','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','cookie','riskLevel','doctor','✓\x20Valid\x20JSON','Project','bold','slice','verbose','81XOkXVL','read','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid','\x20\x20Merged\x20Config','858584WflSxZ','\x20\x20Config\x20JSON','11TSKOQY','(default:\x20pretty)','currentApp','3095533diVzdG','(not\x20found)','status','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','15diTbpd','751908aFzOeb','length','30HsSKBC','green','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'];a50_0x2a90=function(){return _0x17a4fd;};return a50_0x2a90();}export const doctorDefinition={'service':a50_0x1c4f86(0x130),'command':a50_0x1c4f86(0x159),'description':a50_0x1c4f86(0x14f),'risk':a50_0x1c4f86(0x137),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a50_0x3b07e9=a50_0x57ce;(function(_0xde5dc1,_0x432e66){const _0x4b06fb=a50_0x57ce,_0x21cff6=_0xde5dc1();while(!![]){try{const _0x26cc6f=parseInt(_0x4b06fb(0x19f))/0x1+-parseInt(_0x4b06fb(0x1b4))/0x2+parseInt(_0x4b06fb(0x1e1))/0x3*(parseInt(_0x4b06fb(0x1d8))/0x4)+parseInt(_0x4b06fb(0x1a2))/0x5+parseInt(_0x4b06fb(0x1b1))/0x6*(parseInt(_0x4b06fb(0x1a1))/0x7)+parseInt(_0x4b06fb(0x1c9))/0x8*(parseInt(_0x4b06fb(0x1e0))/0x9)+parseInt(_0x4b06fb(0x1dc))/0xa*(-parseInt(_0x4b06fb(0x1c7))/0xb);if(_0x26cc6f===_0x432e66)break;else _0x21cff6['push'](_0x21cff6['shift']());}catch(_0x2964a6){_0x21cff6['push'](_0x21cff6['shift']());}}}(a50_0x3e8d,0x526ee));import a50_0x5a9fe9 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';function a50_0x57ce(_0xfe11db,_0x4d2921){_0xfe11db=_0xfe11db-0x196;const _0x3e8d26=a50_0x3e8d();let _0x57cee4=_0x3e8d26[_0xfe11db];return _0x57cee4;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';async function execute(_0x2389a2){const _0x1b38a0=a50_0x57ce,_0x4b95cb=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x6bb17a=buildConfigFromFlags({}),_0x1a02de=getCookie();console[_0x1b38a0(0x1d5)](),console[_0x1b38a0(0x1d5)](a50_0x5a9fe9[_0x1b38a0(0x1b6)](CLI_BIN_NAME+_0x1b38a0(0x1e4))),console['log'](a50_0x5a9fe9[_0x1b38a0(0x1ac)]('─'[_0x1b38a0(0x1d2)](0x32))),console[_0x1b38a0(0x1d5)](_0x1b38a0(0x1e8)+_0x4b95cb),console[_0x1b38a0(0x1d5)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x1b38a0(0x19b)]),console['log'](_0x1b38a0(0x1da)+process[_0x1b38a0(0x1c8)]+'\x20'+process['arch']),console[_0x1b38a0(0x1d5)](),console[_0x1b38a0(0x1d5)](a50_0x5a9fe9[_0x1b38a0(0x1b6)](_0x1b38a0(0x1bd))),console['log'](a50_0x5a9fe9[_0x1b38a0(0x1ac)](_0x1b38a0(0x1cb)['repeat'](0x1e)));const _0x223f3e=getGlobalConfigPath(),_0x54ffdf=getProjectConfigPath();console[_0x1b38a0(0x1d5)](_0x1b38a0(0x1af)+(_0x223f3e||a50_0x5a9fe9[_0x1b38a0(0x1ac)](_0x1b38a0(0x1bb)))),console['log'](_0x1b38a0(0x1d9)+(_0x54ffdf||a50_0x5a9fe9['gray'](_0x1b38a0(0x1bb)))),console[_0x1b38a0(0x1d5)](),console['log'](a50_0x5a9fe9[_0x1b38a0(0x1b6)](_0x1b38a0(0x1a7))),console[_0x1b38a0(0x1d5)](a50_0x5a9fe9[_0x1b38a0(0x1ac)](_0x1b38a0(0x1cb)[_0x1b38a0(0x1d2)](0x1e)));const _0x12036a=(_0x123b05,_0x3053b5)=>{const _0x28161e=_0x1b38a0;if(!_0x3053b5){console[_0x28161e(0x1d5)]('\x20\x20'+_0x123b05['padEnd'](0x11)+'\x20'+a50_0x5a9fe9[_0x28161e(0x1ac)](_0x28161e(0x198)));return;}const _0x33af04=inspectCliConfigJsonFile(_0x3053b5);if(_0x33af04[_0x28161e(0x1c1)]==='ok')console[_0x28161e(0x1d5)]('\x20\x20'+_0x123b05['padEnd'](0x11)+'\x20'+a50_0x5a9fe9[_0x28161e(0x19a)](_0x28161e(0x1b0)));else{if(_0x33af04[_0x28161e(0x1c1)]===_0x28161e(0x1b3))console[_0x28161e(0x1d5)]('\x20\x20'+_0x123b05[_0x28161e(0x1ba)](0x11)+'\x20'+a50_0x5a9fe9[_0x28161e(0x1e7)](_0x28161e(0x1df)));else _0x33af04[_0x28161e(0x1c1)]===_0x28161e(0x1a9)?console[_0x28161e(0x1d5)]('\x20\x20'+_0x123b05[_0x28161e(0x1ba)](0x11)+'\x20'+a50_0x5a9fe9[_0x28161e(0x1ac)](_0x28161e(0x1a3))):(console[_0x28161e(0x1d5)]('\x20\x20'+_0x123b05[_0x28161e(0x1ba)](0x11)+'\x20'+a50_0x5a9fe9[_0x28161e(0x1c3)](_0x28161e(0x1ae))),console[_0x28161e(0x1d5)]('\x20\x20'+''[_0x28161e(0x1ba)](0x11)+'\x20'+a50_0x5a9fe9[_0x28161e(0x1c3)](_0x33af04[_0x28161e(0x1e9)])));}};_0x12036a(_0x1b38a0(0x1d6),_0x223f3e),_0x12036a(_0x1b38a0(0x1d1),_0x54ffdf),console['log'](),console[_0x1b38a0(0x1d5)](a50_0x5a9fe9[_0x1b38a0(0x1b6)]('\x20\x20Merged\x20Config')),console[_0x1b38a0(0x1d5)](a50_0x5a9fe9[_0x1b38a0(0x1ac)](_0x1b38a0(0x1cb)[_0x1b38a0(0x1d2)](0x1e))),console[_0x1b38a0(0x1d5)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x6bb17a['appCode']||a50_0x5a9fe9[_0x1b38a0(0x1c3)](_0x1b38a0(0x1c4)))),console['log'](_0x1b38a0(0x1ca)+_0x6bb17a[_0x1b38a0(0x1aa)]),console[_0x1b38a0(0x1d5)](_0x1b38a0(0x1b5)+_0x6bb17a[_0x1b38a0(0x1a5)]),console[_0x1b38a0(0x1d5)](_0x1b38a0(0x1e3)+_0x6bb17a['apiDir']),console[_0x1b38a0(0x1d5)](_0x1b38a0(0x1a8)+(_0x6bb17a['defaultApp']||a50_0x5a9fe9['gray'](_0x1b38a0(0x1bc)))),console[_0x1b38a0(0x1d5)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x6bb17a['currentApp']||a50_0x5a9fe9[_0x1b38a0(0x1ac)](_0x1b38a0(0x1bc)))),console[_0x1b38a0(0x1d5)]('\x20\x20explicitAppName:\x20'+(_0x6bb17a['explicitAppName']||a50_0x5a9fe9[_0x1b38a0(0x1ac)](_0x1b38a0(0x1bc)))),console[_0x1b38a0(0x1d5)](_0x1b38a0(0x19c)+(_0x6bb17a[_0x1b38a0(0x1b7)]||a50_0x5a9fe9[_0x1b38a0(0x1ac)](_0x1b38a0(0x1a0)))),console[_0x1b38a0(0x1d5)](_0x1b38a0(0x1d0)+(_0x6bb17a['pageSize']??a50_0x5a9fe9[_0x1b38a0(0x1ac)](_0x1b38a0(0x1cc)))),console[_0x1b38a0(0x1d5)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x6bb17a[_0x1b38a0(0x1b2)]),console[_0x1b38a0(0x1d5)](_0x1b38a0(0x1a6)+_0x6bb17a[_0x1b38a0(0x19e)]),console['log'](_0x1b38a0(0x1d3)+(_0x6bb17a[_0x1b38a0(0x1cf)]?a50_0x5a9fe9[_0x1b38a0(0x19a)]('(set,\x20length='+_0x6bb17a['cookie'][_0x1b38a0(0x196)]+')'):_0x1a02de?a50_0x5a9fe9[_0x1b38a0(0x19a)](_0x1b38a0(0x1ea)+_0x1a02de['length']+')'):a50_0x5a9fe9['gray']('(none)')));const _0x11e386=Object[_0x1b38a0(0x1bf)](_0x6bb17a[_0x1b38a0(0x1c6)]);if(_0x11e386[_0x1b38a0(0x196)]>0x0){console[_0x1b38a0(0x1d5)](),console[_0x1b38a0(0x1d5)](a50_0x5a9fe9[_0x1b38a0(0x1b6)](_0x1b38a0(0x1b8))),console[_0x1b38a0(0x1d5)](a50_0x5a9fe9[_0x1b38a0(0x1ac)](_0x1b38a0(0x1cb)[_0x1b38a0(0x1d2)](0x1e)));for(const _0x3c4f25 of _0x11e386){const _0x2a97ea=_0x6bb17a['apps'][_0x3c4f25],_0x3dfaae=_0x3c4f25===_0x6bb17a[_0x1b38a0(0x1a4)],_0x21e6c5=_0x3c4f25===_0x6bb17a[_0x1b38a0(0x1ad)],_0x4b6dd2=_0x21e6c5?a50_0x5a9fe9[_0x1b38a0(0x19a)](_0x1b38a0(0x1c0)):'',_0xb73e06=_0x3dfaae?'\x20(default)':'';console[_0x1b38a0(0x1d5)]('\x20\x20'+_0x3c4f25+_0xb73e06+_0x4b6dd2),console[_0x1b38a0(0x1d5)]('\x20\x20\x20\x20appcode:\x20\x20'+_0x2a97ea[_0x1b38a0(0x1dd)]),console[_0x1b38a0(0x1d5)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20'+(_0x2a97ea['env']||a50_0x5a9fe9[_0x1b38a0(0x1ac)](_0x1b38a0(0x1b9)))),console[_0x1b38a0(0x1d5)](_0x1b38a0(0x1ce)+(_0x2a97ea[_0x1b38a0(0x1cd)]||a50_0x5a9fe9[_0x1b38a0(0x1ac)](_0x1b38a0(0x1b9)))),console['log'](_0x1b38a0(0x1c5)+(_0x2a97ea[_0x1b38a0(0x1cf)]?a50_0x5a9fe9[_0x1b38a0(0x19a)](_0x1b38a0(0x1de)):a50_0x5a9fe9[_0x1b38a0(0x1ac)](_0x1b38a0(0x1b9))));}}console[_0x1b38a0(0x1d5)](),console[_0x1b38a0(0x1d5)](a50_0x5a9fe9['bold'](_0x1b38a0(0x199))),console['log'](a50_0x5a9fe9[_0x1b38a0(0x1ac)]('\x20\x20─'[_0x1b38a0(0x1d2)](0x1e))),console[_0x1b38a0(0x1d5)](_0x1b38a0(0x197)+getApiDomain()),console[_0x1b38a0(0x1d5)](_0x1b38a0(0x19d)+getUserDomain()),console[_0x1b38a0(0x1d5)](_0x1b38a0(0x1c2)+getRuntimeDomain()),console['log'](),console[_0x1b38a0(0x1d5)](a50_0x5a9fe9['bold'](_0x1b38a0(0x1d7))),console[_0x1b38a0(0x1d5)](a50_0x5a9fe9['gray'](_0x1b38a0(0x1cb)[_0x1b38a0(0x1d2)](0x1e)));if(_0x1a02de){const _0x4acd23=await getIsSessionValid();console[_0x1b38a0(0x1d5)](_0x1b38a0(0x1e6)+(_0x4acd23?a50_0x5a9fe9[_0x1b38a0(0x19a)](_0x1b38a0(0x1db)):a50_0x5a9fe9[_0x1b38a0(0x1c3)](_0x1b38a0(0x1ab))));}else console[_0x1b38a0(0x1d5)](_0x1b38a0(0x1e6)+a50_0x5a9fe9['red'](_0x1b38a0(0x1e2)));return console[_0x1b38a0(0x1d5)](),{'ok':!![]};}export const doctorDefinition={'service':a50_0x3b07e9(0x1d4),'command':a50_0x3b07e9(0x1e5),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a50_0x3b07e9(0x1be),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};function a50_0x3e8d(){const _0x3780c1=['\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','doctor','log','Global','\x20\x20Auth','4qdGdLB','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid','6920ydhvIh','appcode','(set)','⚠\x20Empty\x20(treated\x20as\x20{})','43533nmPnop','865551JHzKmB','✗\x20Not\x20logged\x20in','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20doctor','check','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','yellow','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','message','(set\x20via\x20file,\x20length=','length','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','\x20\x20API\x20Endpoints','green','version','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','verbose','366948ndkwxp','(default:\x20pretty)','28DTMAWo','1841930WbtVRW','(missing)','defaultApp','locale','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','missing','env','✗\x20Expired','gray','currentApp','✗\x20Invalid\x20JSON','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','493896scUlBO','riskLevel','empty','924464PstKTS','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bold','format','\x20\x20Apps','(inherit)','padEnd','(not\x20found)','(none)','\x20\x20Config\x20Files','read','keys','\x20←\x20current','status','\x20\x20runtimeDomain:\x20\x20\x20','red','(not\x20set)','\x20\x20\x20\x20cookie:\x20\x20\x20','apps','12408uTnVlO','platform','376YYfEbN','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','(default)','apiDir','\x20\x20\x20\x20apiDir:\x20\x20\x20','cookie','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','Project','repeat'];a50_0x3e8d=function(){return _0x3780c1;};return a50_0x3e8d();}