@lovrabet/rabetbase-cli 2.0.11 → 2.0.13

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 (140) 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/pull.js +1 -0
  86. package/lib/commands/sql/save.js +1 -1
  87. package/lib/commands/sql/shared.js +1 -0
  88. package/lib/commands/sql/validate.js +1 -1
  89. package/lib/constant/cli.js +1 -1
  90. package/lib/constant/domain.js +1 -1
  91. package/lib/constant/env.js +1 -1
  92. package/lib/constant/paths.js +1 -1
  93. package/lib/context.js +1 -1
  94. package/lib/core/alias-resolver.js +1 -1
  95. package/lib/core/api-client.js +1 -1
  96. package/lib/core/bff/config.js +1 -1
  97. package/lib/core/bff/file-system.js +1 -1
  98. package/lib/core/bff/hash.js +1 -1
  99. package/lib/core/bff/lock.js +1 -1
  100. package/lib/core/bff/utils.js +1 -1
  101. package/lib/core/db-resolver.js +1 -1
  102. package/lib/core/sql-validator.js +1 -1
  103. package/lib/errors.js +1 -1
  104. package/lib/framework/build-all-flags.js +1 -1
  105. package/lib/framework/flags.js +1 -1
  106. package/lib/framework/help.js +1 -1
  107. package/lib/framework/index.js +1 -1
  108. package/lib/framework/output.js +1 -1
  109. package/lib/framework/response.js +1 -1
  110. package/lib/framework/runner.js +1 -1
  111. package/lib/framework/schema-export.js +1 -1
  112. package/lib/framework/types.js +1 -1
  113. package/lib/generated/build-info.js +1 -1
  114. package/lib/help.js +1 -1
  115. package/lib/skills/main.js +1 -1
  116. package/lib/skills/npx-skills-add.js +1 -1
  117. package/lib/telemetry/cli-command-trace.js +1 -1
  118. package/lib/telemetry/cli-help-trace.js +1 -1
  119. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  120. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  121. package/lib/telemetry/send-cli-trace-log.js +1 -1
  122. package/lib/utils/ai_config.js +1 -1
  123. package/lib/utils/apply-jq-filter.js +1 -1
  124. package/lib/utils/cdn-config.js +1 -1
  125. package/lib/utils/check-sdk-version.js +1 -1
  126. package/lib/utils/cli-version-check.js +1 -1
  127. package/lib/utils/config.js +1 -1
  128. package/lib/utils/copy-directory.js +1 -1
  129. package/lib/utils/file-utils.js +1 -1
  130. package/lib/utils/guides-cdn.js +1 -1
  131. package/lib/utils/http-client.js +1 -1
  132. package/lib/utils/is-non-interactive.js +1 -1
  133. package/lib/utils/logger.js +1 -1
  134. package/lib/utils/platform.js +1 -1
  135. package/lib/utils/rules-cdn.js +1 -1
  136. package/lib/utils/sleep.js +1 -1
  137. package/lib/utils/template-replacer.js +1 -1
  138. package/lib/utils/version.js +1 -1
  139. package/lib/utils/with-active-cookie.js +1 -1
  140. package/package.json +1 -1
@@ -1 +1 @@
1
- const a33_0x32cb03=a33_0x9e37;(function(_0x5193a8,_0x2bcfaa){const _0x14c7cf=a33_0x9e37,_0x51e28a=_0x5193a8();while(!![]){try{const _0x2168d7=parseInt(_0x14c7cf(0xc2))/0x1*(-parseInt(_0x14c7cf(0xc6))/0x2)+-parseInt(_0x14c7cf(0xab))/0x3*(parseInt(_0x14c7cf(0xb5))/0x4)+parseInt(_0x14c7cf(0xb6))/0x5+parseInt(_0x14c7cf(0xc9))/0x6+-parseInt(_0x14c7cf(0xae))/0x7+parseInt(_0x14c7cf(0xa6))/0x8+parseInt(_0x14c7cf(0xa5))/0x9*(-parseInt(_0x14c7cf(0xa2))/0xa);if(_0x2168d7===_0x2bcfaa)break;else _0x51e28a['push'](_0x51e28a['shift']());}catch(_0x5c31f4){_0x51e28a['push'](_0x51e28a['shift']());}}}(a33_0x3b2c,0xa7bec));import a33_0x2e43b1 from'chalk';import a33_0x1a3c42 from'ora';function a33_0x3b2c(){const _0x59798b=['info','timeout','/latest','start','write','Unable\x20to\x20check\x20for\x20updates','json','https://registry.npmjs.org/','4187iWDPhK','message','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','Updated\x20to\x20v','86ICUJUL','stableVersion','Checking\x20for\x20updates...','2753208ETygGm','\x20install\x20-g\x20','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','version','npm','slice','error','\x20\x20Try\x20manually:\x20','fail','bun','run','4670kGeIEt','@latest','pipe','7713QFztlA','6762496AFHfhb','log','Current\x20version:\x20','\x20→\x20','Update\x20failed','15nsSWUD','green','toLowerCase','349993WCcyTi','gray','Already\x20up\x20to\x20date\x20(v','install','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','cli','coerce','484280uEAcEh','3092565XLvETB','Version\x20comparison\x20failed','update','includes'];a33_0x3b2c=function(){return _0x59798b;};return a33_0x3b2c();}import a33_0x1cd6ff from'semver';import{execa}from'execa';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getCdnConfig}from'../utils/cdn-config.js';import{resolveNpmBin}from'../utils/platform.js';function a33_0x9e37(_0x46b395,_0x3b7f77){_0x46b395=_0x46b395-0x9a;const _0x3b2c0c=a33_0x3b2c();let _0x9e37a2=_0x3b2c0c[_0x46b395];return _0x9e37a2;}function getCurrentVersion(){const _0x26e5af=a33_0x9e37;return GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x26e5af(0x9c)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x18196d=a33_0x9e37,_0x2f77af=process['execPath'][_0x18196d(0xad)]();if(_0x2f77af[_0x18196d(0xb9)](_0x18196d(0xa0)))return _0x18196d(0xa0);return _0x18196d(0x9b);}async function fetchLatestNpmVersion(){const _0x313917=a33_0x9e37;try{const _0x35e5c0=await fetch(_0x313917(0xc1)+NPM_PACKAGE_NAME+_0x313917(0xbc),{'signal':AbortSignal[_0x313917(0xbb)](0x2710)});if(!_0x35e5c0['ok'])return null;const _0x46dd7f=await _0x35e5c0[_0x313917(0xc0)]();return _0x46dd7f[_0x313917(0x9a)]??null;}catch{return null;}}async function fetchLatestVersion(){const _0x15b196=a33_0x9e37,_0x2f5acb=await fetchLatestNpmVersion();if(_0x2f5acb)return _0x2f5acb;const _0x1b3d37=await getCdnConfig();return _0x1b3d37?.[_0x15b196(0xb3)]?.[_0x15b196(0xc7)]??null;}async function execute(_0x633fff){const _0x157d22=a33_0x9e37,_0x2bc17b=getCurrentVersion();console[_0x157d22(0xa7)](_0x157d22(0xa8)+_0x2bc17b);const _0x3c5c9d=a33_0x1a3c42(_0x157d22(0xc8))[_0x157d22(0xbd)](),_0x35a10c=await fetchLatestVersion();if(!_0x35a10c)return _0x3c5c9d[_0x157d22(0x9f)](_0x157d22(0xc4)),console[_0x157d22(0xa7)](a33_0x2e43b1[_0x157d22(0xaf)](_0x157d22(0xb2)+NPM_PACKAGE_NAME+_0x157d22(0xa3))),{'ok':![],'message':_0x157d22(0xbf)};const _0xe8e4d4=a33_0x1cd6ff['coerce'](_0x2bc17b),_0x598b0a=a33_0x1cd6ff[_0x157d22(0xb4)](_0x35a10c);if(!_0xe8e4d4||!_0x598b0a)return _0x3c5c9d['fail']('Version\x20comparison\x20failed'),{'ok':![],'message':_0x157d22(0xb7)};if(!a33_0x1cd6ff['lt'](_0xe8e4d4,_0x598b0a))return _0x3c5c9d['succeed'](_0x157d22(0xb0)+_0x35a10c+')'),{'ok':!![]};_0x3c5c9d[_0x157d22(0xba)]('Update\x20available:\x20'+a33_0x2e43b1['yellow'](_0x2bc17b)+_0x157d22(0xa9)+a33_0x2e43b1[_0x157d22(0xac)](_0x35a10c));const _0x396d44=detectPackageManager(),_0x2f5c26=_0x396d44===_0x157d22(0x9b)?resolveNpmBin(_0x157d22(0x9b)):_0x396d44,_0x4b3e41=a33_0x1a3c42('Updating\x20via\x20'+_0x396d44+'...')[_0x157d22(0xbd)]();try{return await execa(_0x2f5c26,[_0x157d22(0xb1),'-g',NPM_PACKAGE_NAME+_0x157d22(0xa3)],{'stdio':_0x157d22(0xa4)}),_0x4b3e41['succeed'](_0x157d22(0xc5)+_0x35a10c),console[_0x157d22(0xa7)](a33_0x2e43b1[_0x157d22(0xaf)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.')),{'ok':!![]};}catch(_0x5c366c){return _0x4b3e41[_0x157d22(0x9f)](_0x157d22(0xaa)),console[_0x157d22(0x9d)](a33_0x2e43b1['red']('\x20\x20'+_0x5c366c[_0x157d22(0xc3)])),console[_0x157d22(0xa7)](a33_0x2e43b1[_0x157d22(0xaf)](_0x157d22(0x9e)+_0x396d44+_0x157d22(0xca)+NPM_PACKAGE_NAME+_0x157d22(0xa3))),{'ok':![],'message':_0x5c366c[_0x157d22(0xc3)]};}}export const updateDefinition={'service':a33_0x32cb03(0xb8),'command':a33_0x32cb03(0xa1),'description':a33_0x32cb03(0xcb),'risk':a33_0x32cb03(0xbe),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a33_0x49dd94=a33_0x4b5b;(function(_0x3eb1e2,_0x138da7){const _0x15cc48=a33_0x4b5b,_0x62fa79=_0x3eb1e2();while(!![]){try{const _0x2e26fb=parseInt(_0x15cc48(0x1d0))/0x1+parseInt(_0x15cc48(0x1d7))/0x2+parseInt(_0x15cc48(0x1d1))/0x3+-parseInt(_0x15cc48(0x1db))/0x4*(-parseInt(_0x15cc48(0x1cc))/0x5)+-parseInt(_0x15cc48(0x1bb))/0x6*(-parseInt(_0x15cc48(0x1be))/0x7)+parseInt(_0x15cc48(0x1e4))/0x8+-parseInt(_0x15cc48(0x1b9))/0x9*(parseInt(_0x15cc48(0x1cb))/0xa);if(_0x2e26fb===_0x138da7)break;else _0x62fa79['push'](_0x62fa79['shift']());}catch(_0xb90c0f){_0x62fa79['push'](_0x62fa79['shift']());}}}(a33_0x31c0,0x77dff));function a33_0x4b5b(_0x43a03c,_0x1e3511){_0x43a03c=_0x43a03c-0x1b5;const _0x31c0d2=a33_0x31c0();let _0x4b5b89=_0x31c0d2[_0x43a03c];return _0x4b5b89;}import a33_0x2f494c from'chalk';import a33_0x3e5284 from'ora';import a33_0x43b2f4 from'semver';import{execa}from'execa';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getCdnConfig}from'../utils/cdn-config.js';import{resolveNpmBin}from'../utils/platform.js';function a33_0x31c0(){const _0x575dab=['yellow','/latest','27998150egqySD','4528155BHaKyz','succeed','stableVersion','...','968599sYdlGd','1427046KngODN','slice','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','red','start','\x20install\x20-g\x20','567874pIeXVf','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','Version\x20comparison\x20failed','install','4xpmkcm','Unable\x20to\x20check\x20for\x20updates','message','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','Checking\x20for\x20updates...','https://registry.npmjs.org/','Updated\x20to\x20v','green','info','3609040OUetFo','gray','coerce','@latest','bun','fail','9ohJRVA','includes','112278VVRais','toLowerCase','write','77Vlcnah','run','execPath','Updating\x20via\x20','npm','pipe','json','timeout','log','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','Update\x20failed'];a33_0x31c0=function(){return _0x575dab;};return a33_0x31c0();}function getCurrentVersion(){const _0x50eb76=a33_0x4b5b;return GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x50eb76(0x1d2)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0xda850=a33_0x4b5b,_0x3d44a7=process[_0xda850(0x1c0)][_0xda850(0x1bc)]();if(_0x3d44a7[_0xda850(0x1ba)](_0xda850(0x1b7)))return _0xda850(0x1b7);return _0xda850(0x1c2);}async function fetchLatestNpmVersion(){const _0x1544e9=a33_0x4b5b;try{const _0x56c22c=await fetch(_0x1544e9(0x1e0)+NPM_PACKAGE_NAME+_0x1544e9(0x1ca),{'signal':AbortSignal[_0x1544e9(0x1c5)](0x2710)});if(!_0x56c22c['ok'])return null;const _0x53b6de=await _0x56c22c[_0x1544e9(0x1c4)]();return _0x53b6de['version']??null;}catch{return null;}}async function fetchLatestVersion(){const _0x30ee5b=a33_0x4b5b,_0x176035=await fetchLatestNpmVersion();if(_0x176035)return _0x176035;const _0x59f4bf=await getCdnConfig();return _0x59f4bf?.['cli']?.[_0x30ee5b(0x1ce)]??null;}async function execute(_0x3f06bf){const _0x5c1220=a33_0x4b5b,_0x429ffe=getCurrentVersion();console[_0x5c1220(0x1c6)]('Current\x20version:\x20'+_0x429ffe);const _0x1132ec=a33_0x3e5284(_0x5c1220(0x1df))['start'](),_0x41c916=await fetchLatestVersion();if(!_0x41c916)return _0x1132ec[_0x5c1220(0x1b8)](_0x5c1220(0x1d3)),console[_0x5c1220(0x1c6)](a33_0x2f494c[_0x5c1220(0x1e5)](_0x5c1220(0x1c7)+NPM_PACKAGE_NAME+'@latest')),{'ok':![],'message':_0x5c1220(0x1dc)};const _0x27667b=a33_0x43b2f4[_0x5c1220(0x1b5)](_0x429ffe),_0x29454f=a33_0x43b2f4['coerce'](_0x41c916);if(!_0x27667b||!_0x29454f)return _0x1132ec[_0x5c1220(0x1b8)]('Version\x20comparison\x20failed'),{'ok':![],'message':_0x5c1220(0x1d9)};if(!a33_0x43b2f4['lt'](_0x27667b,_0x29454f))return _0x1132ec[_0x5c1220(0x1cd)]('Already\x20up\x20to\x20date\x20(v'+_0x41c916+')'),{'ok':!![]};_0x1132ec[_0x5c1220(0x1e3)]('Update\x20available:\x20'+a33_0x2f494c[_0x5c1220(0x1c9)](_0x429ffe)+'\x20→\x20'+a33_0x2f494c[_0x5c1220(0x1e2)](_0x41c916));const _0x39d346=detectPackageManager(),_0x12d160=_0x39d346===_0x5c1220(0x1c2)?resolveNpmBin(_0x5c1220(0x1c2)):_0x39d346,_0x3920f0=a33_0x3e5284(_0x5c1220(0x1c1)+_0x39d346+_0x5c1220(0x1cf))[_0x5c1220(0x1d5)]();try{return await execa(_0x12d160,[_0x5c1220(0x1da),'-g',NPM_PACKAGE_NAME+_0x5c1220(0x1b6)],{'stdio':_0x5c1220(0x1c3)}),_0x3920f0['succeed'](_0x5c1220(0x1e1)+_0x41c916),console['log'](a33_0x2f494c[_0x5c1220(0x1e5)](_0x5c1220(0x1d8))),{'ok':!![]};}catch(_0x5e9e61){return _0x3920f0[_0x5c1220(0x1b8)](_0x5c1220(0x1c8)),console['error'](a33_0x2f494c[_0x5c1220(0x1d4)]('\x20\x20'+_0x5e9e61['message'])),console[_0x5c1220(0x1c6)](a33_0x2f494c[_0x5c1220(0x1e5)]('\x20\x20Try\x20manually:\x20'+_0x39d346+_0x5c1220(0x1d6)+NPM_PACKAGE_NAME+_0x5c1220(0x1b6))),{'ok':![],'message':_0x5e9e61[_0x5c1220(0x1dd)]};}}export const updateDefinition={'service':'update','command':a33_0x49dd94(0x1bf),'description':a33_0x49dd94(0x1de),'risk':a33_0x49dd94(0x1bd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x2fc800,_0x51f3ae){const _0x2f807d=a34_0x529c,_0x51e6ea=_0x2fc800();while(!![]){try{const _0x4c3166=-parseInt(_0x2f807d(0xc8))/0x1*(parseInt(_0x2f807d(0xc5))/0x2)+parseInt(_0x2f807d(0xc1))/0x3+-parseInt(_0x2f807d(0xc6))/0x4+parseInt(_0x2f807d(0xc2))/0x5+parseInt(_0x2f807d(0xc4))/0x6+-parseInt(_0x2f807d(0xc0))/0x7*(parseInt(_0x2f807d(0xc3))/0x8)+-parseInt(_0x2f807d(0xc7))/0x9;if(_0x4c3166===_0x51f3ae)break;else _0x51e6ea['push'](_0x51e6ea['shift']());}catch(_0x5bdc5b){_0x51e6ea['push'](_0x51e6ea['shift']());}}}(a34_0x206f,0x68251));function a34_0x206f(){const _0x2adc56=['139257INtcEb','1xMTVgM','1056797fmSeqJ','1493799qSzjph','2243625qfPjBu','24tvhtbZ','1098306ugMVYJ','83002DxSehI','772980FGniaS'];a34_0x206f=function(){return _0x2adc56;};return a34_0x206f();}import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';function a34_0x529c(_0x5e404b,_0x48b831){_0x5e404b=_0x5e404b-0xc0;const _0x206fba=a34_0x206f();let _0x529cca=_0x206fba[_0x5e404b];return _0x529cca;}export const codegenDefinitions=[codegenSdk,codegenSql];
1
+ (function(_0x19974f,_0x37a631){const _0x43c572=a34_0x2bd3,_0x54c5a6=_0x19974f();while(!![]){try{const _0x4a83b6=-parseInt(_0x43c572(0x73))/0x1*(parseInt(_0x43c572(0x72))/0x2)+-parseInt(_0x43c572(0x6d))/0x3*(-parseInt(_0x43c572(0x6c))/0x4)+-parseInt(_0x43c572(0x6e))/0x5+-parseInt(_0x43c572(0x75))/0x6+-parseInt(_0x43c572(0x71))/0x7+-parseInt(_0x43c572(0x6f))/0x8*(parseInt(_0x43c572(0x6b))/0x9)+-parseInt(_0x43c572(0x74))/0xa*(-parseInt(_0x43c572(0x70))/0xb);if(_0x4a83b6===_0x37a631)break;else _0x54c5a6['push'](_0x54c5a6['shift']());}catch(_0x59fa4d){_0x54c5a6['push'](_0x54c5a6['shift']());}}}(a34_0x2312,0x50ae0));import{codegenSdk}from'../../commands/codegen/sdk.js';function a34_0x2bd3(_0x790a7,_0x6a7929){_0x790a7=_0x790a7-0x6b;const _0x231292=a34_0x2312();let _0x2bd398=_0x231292[_0x790a7];return _0x2bd398;}import{codegenSql}from'../../commands/codegen/sql.js';function a34_0x2312(){const _0x3c4e39=['343300oDeHRp','1083600XqIXZx','1541223xwCPyu','196yQMrza','3231lgJhYC','253245MUDjuk','16RhAYmu','583OjjwOX','4242063NYBJbw','103442cVUifI','7qkUcFI'];a34_0x2312=function(){return _0x3c4e39;};return a34_0x2312();}export const codegenDefinitions=[codegenSdk,codegenSql];
@@ -1 +1 @@
1
- function a35_0x342f(_0x6c8ed3,_0x4dfa40){_0x6c8ed3=_0x6c8ed3-0x104;const _0x3ac60e=a35_0x3ac6();let _0x342f50=_0x3ac60e[_0x6c8ed3];return _0x342f50;}function a35_0x3ac6(){const _0x3b228b=['skip-imports','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','Omit\x20import\x20statements\x20from\x20generated\x20code','alias','str','32953000fEcXfj','208663ZcAesi','boolean','230193qIYYbJ','1rihlIQ','operation','name','appCode','4642520SUHwzk','read','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','tableName','592dSXLgi','codegen','1628994EquXTT','1650279fTuZql','15PXpBEq','bool','3606170wgaWDO','code'];a35_0x3ac6=function(){return _0x3b228b;};return a35_0x3ac6();}const a35_0x5f14d6=a35_0x342f;(function(_0x217f9f,_0x5c4d15){const _0x927b70=a35_0x342f,_0x1dafd6=_0x217f9f();while(!![]){try{const _0x205b53=parseInt(_0x927b70(0x114))/0x1*(-parseInt(_0x927b70(0x109))/0x2)+-parseInt(_0x927b70(0x106))/0x3+parseInt(_0x927b70(0x118))/0x4+-parseInt(_0x927b70(0x107))/0x5*(-parseInt(_0x927b70(0x105))/0x6)+-parseInt(_0x927b70(0x111))/0x7+parseInt(_0x927b70(0x11c))/0x8*(-parseInt(_0x927b70(0x113))/0x9)+parseInt(_0x927b70(0x110))/0xa;if(_0x205b53===_0x5c4d15)break;else _0x1dafd6['push'](_0x1dafd6['shift']());}catch(_0x35c2ab){_0x1dafd6['push'](_0x1dafd6['shift']());}}}(a35_0x3ac6,0xf2db6));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a35_0x5f14d6(0x104),'command':'sdk','description':a35_0x5f14d6(0x11a),'risk':a35_0x5f14d6(0x119),'flags':[CODE_FLAG_OPTIONAL,{'name':a35_0x5f14d6(0x10e),'type':'string','description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)'},{'name':a35_0x5f14d6(0x115),'type':'string','required':!![],'description':a35_0x5f14d6(0x10c)},{'name':'skip-imports','type':a35_0x5f14d6(0x112),'description':a35_0x5f14d6(0x10d)}],async 'execute'(_0x2561c6){const _0x31569a=a35_0x5f14d6,{dataset:_0x4f214b,operation:_0x36efe6}=await getOperationDetail(_0x2561c6[_0x31569a(0x117)],_0x2561c6['str'](_0x31569a(0x10a)),_0x2561c6[_0x31569a(0x10f)]('operation')),_0x23f7ba=generateSdkCode(_0x4f214b,_0x36efe6,{'includeImports':!_0x2561c6[_0x31569a(0x108)](_0x31569a(0x10b))});return{'ok':!![],'data':{'dataset':{'name':_0x4f214b[_0x31569a(0x116)],'code':_0x4f214b[_0x31569a(0x10a)],'tableName':_0x4f214b[_0x31569a(0x11b)]},'operation':_0x2561c6[_0x31569a(0x10f)]('operation'),'code':_0x23f7ba}};}};
1
+ const a35_0x44e71c=a35_0xafe6;(function(_0x8c667,_0x3d8cec){const _0x372e73=a35_0xafe6,_0x44c295=_0x8c667();while(!![]){try{const _0x4c8b1c=-parseInt(_0x372e73(0xb3))/0x1*(parseInt(_0x372e73(0xae))/0x2)+-parseInt(_0x372e73(0xad))/0x3+-parseInt(_0x372e73(0xaa))/0x4+-parseInt(_0x372e73(0xa4))/0x5*(-parseInt(_0x372e73(0xa8))/0x6)+parseInt(_0x372e73(0xa6))/0x7*(-parseInt(_0x372e73(0x9e))/0x8)+-parseInt(_0x372e73(0x9c))/0x9*(-parseInt(_0x372e73(0xab))/0xa)+parseInt(_0x372e73(0xb0))/0xb;if(_0x4c8b1c===_0x3d8cec)break;else _0x44c295['push'](_0x44c295['shift']());}catch(_0x12b05b){_0x44c295['push'](_0x44c295['shift']());}}}(a35_0x9d25,0x44b54));function a35_0x9d25(){const _0x2a92c7=['13698ShLJTv','appCode','3779435vQOMNn','read','boolean','9TyxBDR','alias','bool','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','31536tAIGuE','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','3271448nVMxrF','operation','sdk','Omit\x20import\x20statements\x20from\x20generated\x20code','string','skip-imports','8365xryjYh','str','7upbrNC','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','1974kIIxqF','code','519668tQbnTJ','1110kYkznv','name','1203087hhxzIM'];a35_0x9d25=function(){return _0x2a92c7;};return a35_0x9d25();}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a35_0xafe6(_0x3b9002,_0x1e6bf8){_0x3b9002=_0x3b9002-0x9a;const _0x9d25d7=a35_0x9d25();let _0xafe6b3=_0x9d25d7[_0x3b9002];return _0xafe6b3;}export const codegenSdk={'service':'codegen','command':a35_0x44e71c(0xa0),'description':a35_0x44e71c(0x9d),'risk':a35_0x44e71c(0xb1),'flags':[CODE_FLAG_OPTIONAL,{'name':a35_0x44e71c(0xb4),'type':a35_0x44e71c(0xa2),'description':a35_0x44e71c(0x9b)},{'name':a35_0x44e71c(0x9f),'type':a35_0x44e71c(0xa2),'required':!![],'description':a35_0x44e71c(0xa7)},{'name':'skip-imports','type':a35_0x44e71c(0xb2),'description':a35_0x44e71c(0xa1)}],async 'execute'(_0x29d1f){const _0x54b44b=a35_0x44e71c,{dataset:_0x1bb10b,operation:_0x27507d}=await getOperationDetail(_0x29d1f[_0x54b44b(0xaf)],_0x29d1f[_0x54b44b(0xa5)](_0x54b44b(0xa9)),_0x29d1f[_0x54b44b(0xa5)]('operation')),_0x477b8d=generateSdkCode(_0x1bb10b,_0x27507d,{'includeImports':!_0x29d1f[_0x54b44b(0x9a)](_0x54b44b(0xa3))});return{'ok':!![],'data':{'dataset':{'name':_0x1bb10b[_0x54b44b(0xac)],'code':_0x1bb10b['code'],'tableName':_0x1bb10b['tableName']},'operation':_0x29d1f[_0x54b44b(0xa5)](_0x54b44b(0x9f)),'code':_0x477b8d}};}};
@@ -1 +1 @@
1
- const a36_0x1006c2=a36_0x750d;(function(_0x51a2b2,_0xf5ef56){const _0x5be95e=a36_0x750d,_0x193eb9=_0x51a2b2();while(!![]){try{const _0x174c92=parseInt(_0x5be95e(0x1f4))/0x1*(-parseInt(_0x5be95e(0x1ff))/0x2)+-parseInt(_0x5be95e(0x1f9))/0x3+parseInt(_0x5be95e(0x1fc))/0x4+parseInt(_0x5be95e(0x1fa))/0x5+parseInt(_0x5be95e(0x1fe))/0x6*(parseInt(_0x5be95e(0x1e9))/0x7)+-parseInt(_0x5be95e(0x1e8))/0x8+-parseInt(_0x5be95e(0x1f1))/0x9*(-parseInt(_0x5be95e(0x1ed))/0xa);if(_0x174c92===_0xf5ef56)break;else _0x193eb9['push'](_0x193eb9['shift']());}catch(_0x2a1258){_0x193eb9['push'](_0x193eb9['shift']());}}}(a36_0xb413,0x79757));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';function a36_0xb413(){const _0xbc1c9=['sdk','2684253qRWBix','2634715slHkdA','bool','1839664kXeokS','no-imports','10194WQYAIG','1350210bQsQMP','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','read','7688648KRVmPH','1981KKGYFD','codegen','appCode','target','13560EIGoDg','str','sql','sqlName','10359EtuPyx','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','bff','1wTExYj','sqlcode','sqlCode','Omit\x20import\x20statements\x20from\x20generated\x20code'];a36_0xb413=function(){return _0xbc1c9;};return a36_0xb413();}function a36_0x750d(_0x5a5d95,_0x5ef754){_0x5a5d95=_0x5a5d95-0x1e6;const _0xb413f2=a36_0xb413();let _0x750d42=_0xb413f2[_0x5a5d95];return _0x750d42;}export const codegenSql={'service':a36_0x1006c2(0x1ea),'command':a36_0x1006c2(0x1ef),'description':a36_0x1006c2(0x1f2),'risk':a36_0x1006c2(0x1e7),'flags':[SQLCODE_FLAG,{'name':a36_0x1006c2(0x1ec),'type':'string','description':a36_0x1006c2(0x1e6),'default':a36_0x1006c2(0x1f8),'enum':['sdk',a36_0x1006c2(0x1f3)]},{'name':a36_0x1006c2(0x1fd),'type':'boolean','description':a36_0x1006c2(0x1f7)}],async 'execute'(_0x4fac58){const _0x1273f6=a36_0x1006c2,_0x146388=await getSqlQueryInfo(_0x4fac58[_0x1273f6(0x1eb)],_0x4fac58[_0x1273f6(0x1ee)](_0x1273f6(0x1f5))),_0x3744ac=_0x4fac58[_0x1273f6(0x1ee)](_0x1273f6(0x1ec))||_0x1273f6(0x1f8),_0x2418bd=generateSqlCodeTemplate(_0x146388,{'target':_0x3744ac,'includeImports':!_0x4fac58[_0x1273f6(0x1fb)](_0x1273f6(0x1fd))});return{'ok':!![],'data':{'sqlCode':_0x146388[_0x1273f6(0x1f6)],'sqlName':_0x146388[_0x1273f6(0x1f0)],'target':_0x3744ac,'code':_0x2418bd}};}};
1
+ const a36_0x2e352b=a36_0x3205;(function(_0x2857e4,_0x329942){const _0x5be661=a36_0x3205,_0x345ff7=_0x2857e4();while(!![]){try{const _0x51160d=parseInt(_0x5be661(0x9f))/0x1+-parseInt(_0x5be661(0xa4))/0x2+-parseInt(_0x5be661(0x9c))/0x3+-parseInt(_0x5be661(0x9b))/0x4+parseInt(_0x5be661(0xac))/0x5+-parseInt(_0x5be661(0xa0))/0x6+-parseInt(_0x5be661(0xa9))/0x7*(-parseInt(_0x5be661(0x9d))/0x8);if(_0x51160d===_0x329942)break;else _0x345ff7['push'](_0x345ff7['shift']());}catch(_0x48ee42){_0x345ff7['push'](_0x345ff7['shift']());}}}(a36_0x16ab,0x9d8de));function a36_0x3205(_0x2eeb22,_0x5d359a){_0x2eeb22=_0x2eeb22-0x9a;const _0x16ab3b=a36_0x16ab();let _0x3205f4=_0x16ab3b[_0x2eeb22];return _0x3205f4;}import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';function a36_0x16ab(){const _0x530bbd=['162016hhykEB','2491896IJYOnj','24hVmPFT','sqlCode','1061571PLhGyw','4908606zPMNLd','read','sdk','sql','1196140VLcYSB','target','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','string','sqlcode','3619637yPzMwf','codegen','str','1599025zzLLvo','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','Omit\x20import\x20statements\x20from\x20generated\x20code'];a36_0x16ab=function(){return _0x530bbd;};return a36_0x16ab();}export const codegenSql={'service':a36_0x2e352b(0xaa),'command':a36_0x2e352b(0xa3),'description':a36_0x2e352b(0xad),'risk':a36_0x2e352b(0xa1),'flags':[SQLCODE_FLAG,{'name':'target','type':a36_0x2e352b(0xa7),'description':a36_0x2e352b(0xa6),'default':'sdk','enum':['sdk','bff']},{'name':'no-imports','type':'boolean','description':a36_0x2e352b(0x9a)}],async 'execute'(_0x3cac8c){const _0x5823cc=a36_0x2e352b,_0x1f89b7=await getSqlQueryInfo(_0x3cac8c['appCode'],_0x3cac8c[_0x5823cc(0xab)](_0x5823cc(0xa8))),_0x18ba16=_0x3cac8c['str'](_0x5823cc(0xa5))||_0x5823cc(0xa2),_0x4ef187=generateSqlCodeTemplate(_0x1f89b7,{'target':_0x18ba16,'includeImports':!_0x3cac8c['bool']('no-imports')});return{'ok':!![],'data':{'sqlCode':_0x1f89b7[_0x5823cc(0x9e)],'sqlName':_0x1f89b7['sqlName'],'target':_0x18ba16,'code':_0x4ef187}};}};
@@ -1 +1 @@
1
- (function(_0x446115,_0x12ecf5){const _0x41cbc8=a37_0x21bb,_0x4bc2c5=_0x446115();while(!![]){try{const _0x1e3e8b=-parseInt(_0x41cbc8(0x145))/0x1*(-parseInt(_0x41cbc8(0x135))/0x2)+-parseInt(_0x41cbc8(0x14c))/0x3+parseInt(_0x41cbc8(0x159))/0x4*(-parseInt(_0x41cbc8(0x141))/0x5)+-parseInt(_0x41cbc8(0x138))/0x6+-parseInt(_0x41cbc8(0x142))/0x7+parseInt(_0x41cbc8(0x13f))/0x8*(-parseInt(_0x41cbc8(0x140))/0x9)+parseInt(_0x41cbc8(0x139))/0xa;if(_0x1e3e8b===_0x12ecf5)break;else _0x4bc2c5['push'](_0x4bc2c5['shift']());}catch(_0x47db6c){_0x4bc2c5['push'](_0x4bc2c5['shift']());}}}(a37_0x2cbb,0x433bd));function a37_0x2cbb(){const _0x28549f=['log','yellow','✎\x20自定义输入\x20appcode','length','\x20\x20(','11048PYpRBK','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','custom','\x0a未找到可用应用。','未找到可用应用。','Invalid\x20App\x20Code','8CYiVQd','获取到\x20','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','2360100geDnbt','19801870QhguiM','\x0a无法获取远程应用列表,请手动输入。','gray','请输入\x20App\x20Code:','find','(跳过,稍后配置)','626512gsPmKd','63JRhJti','605hfTWfL','1387239QUiHTr','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','map','35863nNCrzX','✎\x20手动输入','appCode','App\x20Code:','无法获取远程应用列表,请手动输入。','message','valid','1122969pawKJx','manual','appName','includes','请选择要绑定的应用:','cyan','skip','trim'];a37_0x2cbb=function(){return _0x28549f;};return a37_0x2cbb();}import{input,checkbox,select}from'@inquirer/prompts';import a37_0x285a59 from'chalk';function a37_0x21bb(_0x150a71,_0x44c52c){_0x150a71=_0x150a71-0x134;const _0x2cbb03=a37_0x2cbb();let _0x21bbcd=_0x2cbb03[_0x150a71];return _0x21bbcd;}import{validateAppcode}from'../../commands/common/validate.js';import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';export async function promptCustomAppcode(){const _0x45747f=a37_0x21bb,_0x1ed39d=await input({'message':_0x45747f(0x13c),'validate':_0x486e11=>{const _0x4b1344=_0x45747f,_0x5180bb=validateAppcode(_0x486e11[_0x4b1344(0x153)]());return _0x5180bb[_0x4b1344(0x14b)]||_0x5180bb[_0x4b1344(0x14a)]||_0x4b1344(0x134);}});return _0x1ed39d[_0x45747f(0x153)]();}export async function promptAppSelection(_0x5242c1){const _0x5d651a=a37_0x21bb,_0x520abc=[{'name':a37_0x285a59[_0x5d651a(0x155)](_0x5d651a(0x156)),'value':-0x1},..._0x5242c1[_0x5d651a(0x144)]((_0x2fe734,_0xcfbab3)=>({'name':_0x2fe734['appName']+'\x20\x20'+a37_0x285a59[_0x5d651a(0x13b)]('('+_0x2fe734[_0x5d651a(0x147)]+')'),'value':_0xcfbab3}))],_0x382ae8=await checkbox({'message':_0x5d651a(0x136)+a37_0x285a59[_0x5d651a(0x151)](_0x5242c1[_0x5d651a(0x157)])+_0x5d651a(0x137),'choices':_0x520abc,'loop':![]});if(_0x382ae8[_0x5d651a(0x14f)](-0x1))return _0x5d651a(0x15b);if(_0x382ae8['length']===0x0)return'custom';return _0x382ae8[_0x5d651a(0x144)](_0x2ed8a1=>_0x5242c1[_0x2ed8a1]);}export async function promptSingleAppSelection(_0x33e61d){const _0x1a02de=a37_0x21bb,_0x2ad275=[{'name':a37_0x285a59[_0x1a02de(0x13b)](_0x1a02de(0x143)),'value':_0x1a02de(0x152)},{'name':a37_0x285a59['yellow'](_0x1a02de(0x156)),'value':_0x1a02de(0x15b)},..._0x33e61d['map'](_0x96000b=>({'name':_0x96000b[_0x1a02de(0x14e)]+'\x20\x20'+a37_0x285a59[_0x1a02de(0x13b)]('('+_0x96000b[_0x1a02de(0x147)]+')'),'value':_0x96000b[_0x1a02de(0x147)]}))],_0x5dc650=await select({'message':_0x1a02de(0x150),'choices':_0x2ad275});if(_0x5dc650===_0x1a02de(0x152))return'skip';if(_0x5dc650===_0x1a02de(0x15b))return _0x1a02de(0x15b);return _0x33e61d[_0x1a02de(0x13d)](_0x36226d=>_0x36226d[_0x1a02de(0x147)]===_0x5dc650);}export async function selectSingleAppcode(_0x2eef2a){const _0x2b48b4=a37_0x21bb;if(!_0x2eef2a)return console['log'](a37_0x285a59['gray'](_0x2b48b4(0x15a))),_fallbackOrSkip();console[_0x2b48b4(0x154)]('正在获取可用应用列表...');let _0x2ace69;try{_0x2ace69=await withActiveCookie(_0x2eef2a,()=>listRemoteApps());}catch(_0x1ebf0e){console[_0x2b48b4(0x154)](a37_0x285a59[_0x2b48b4(0x155)](_0x2b48b4(0x149)));if(_0x1ebf0e instanceof Error)console[_0x2b48b4(0x154)](a37_0x285a59['gray'](_0x2b48b4(0x158)+_0x1ebf0e[_0x2b48b4(0x14a)]+')'));return _fallbackOrSkip();}if(_0x2ace69[_0x2b48b4(0x157)]===0x0)return console[_0x2b48b4(0x154)](a37_0x285a59[_0x2b48b4(0x155)](_0x2b48b4(0x15d))),_fallbackOrSkip();const _0x3fc5ef=await promptSingleAppSelection(_0x2ace69);if(_0x3fc5ef===_0x2b48b4(0x152))return'';if(_0x3fc5ef===_0x2b48b4(0x15b))return promptCustomAppcode();return _0x3fc5ef[_0x2b48b4(0x147)];}export async function selectMultipleApps(_0x2b4678){const _0x2e1905=a37_0x21bb;console[_0x2e1905(0x154)]('正在获取可用应用列表...');let _0x235c74;try{_0x235c74=await withActiveCookie(_0x2b4678,()=>listRemoteApps());}catch(_0x7cd7cf){console[_0x2e1905(0x154)](_0x2e1905(0x13a));if(_0x7cd7cf instanceof Error)console['log'](_0x2e1905(0x158)+_0x7cd7cf['message']+')');return _0x2e1905(0x15b);}if(_0x235c74[_0x2e1905(0x157)]===0x0)return console['log'](_0x2e1905(0x15c)),'custom';return promptAppSelection(_0x235c74);}async function _fallbackOrSkip(){const _0x578a17=a37_0x21bb,_0x351d=await select({'message':_0x578a17(0x148),'choices':[{'name':a37_0x285a59[_0x578a17(0x13b)](_0x578a17(0x13e)),'value':_0x578a17(0x152)},{'name':a37_0x285a59[_0x578a17(0x155)](_0x578a17(0x146)),'value':_0x578a17(0x14d)}]});if(_0x351d===_0x578a17(0x152))return'';return promptCustomAppcode();}
1
+ (function(_0x31eddc,_0x92962e){const _0x1e3367=a37_0x5aa7,_0x5e02ad=_0x31eddc();while(!![]){try{const _0x543476=-parseInt(_0x1e3367(0x1ac))/0x1+parseInt(_0x1e3367(0x19d))/0x2*(parseInt(_0x1e3367(0x198))/0x3)+-parseInt(_0x1e3367(0x1a8))/0x4*(-parseInt(_0x1e3367(0x1ad))/0x5)+-parseInt(_0x1e3367(0x1a5))/0x6+-parseInt(_0x1e3367(0x1b6))/0x7*(parseInt(_0x1e3367(0x197))/0x8)+-parseInt(_0x1e3367(0x1a0))/0x9+parseInt(_0x1e3367(0x1a4))/0xa;if(_0x543476===_0x92962e)break;else _0x5e02ad['push'](_0x5e02ad['shift']());}catch(_0x4b2b92){_0x5e02ad['push'](_0x5e02ad['shift']());}}}(a37_0x5460,0x8640e));function a37_0x5aa7(_0x4c94db,_0x42dcf0){_0x4c94db=_0x4c94db-0x194;const _0x54606c=a37_0x5460();let _0x5aa7dd=_0x54606c[_0x4c94db];return _0x5aa7dd;}import{input,checkbox,select}from'@inquirer/prompts';import a37_0x1fc9b8 from'chalk';import{validateAppcode}from'../../commands/common/validate.js';import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';export async function promptCustomAppcode(){const _0x50f339=a37_0x5aa7,_0x5cb518=await input({'message':_0x50f339(0x195),'validate':_0xda241e=>{const _0x7ca1fd=_0x50f339,_0x71d2e3=validateAppcode(_0xda241e['trim']());return _0x71d2e3[_0x7ca1fd(0x1a9)]||_0x71d2e3['message']||'Invalid\x20App\x20Code';}});return _0x5cb518[_0x50f339(0x194)]();}export async function promptAppSelection(_0x2508e3){const _0x328407=a37_0x5aa7,_0x1b3009=[{'name':a37_0x1fc9b8['yellow'](_0x328407(0x1aa)),'value':-0x1},..._0x2508e3[_0x328407(0x1a7)]((_0x46b33f,_0x4deefe)=>({'name':_0x46b33f[_0x328407(0x1b1)]+'\x20\x20'+a37_0x1fc9b8[_0x328407(0x1ae)]('('+_0x46b33f[_0x328407(0x1b5)]+')'),'value':_0x4deefe}))],_0x4c512c=await checkbox({'message':_0x328407(0x1ab)+a37_0x1fc9b8[_0x328407(0x1a1)](_0x2508e3[_0x328407(0x1a6)])+_0x328407(0x19a),'choices':_0x1b3009,'loop':![]});if(_0x4c512c[_0x328407(0x1b4)](-0x1))return'custom';if(_0x4c512c[_0x328407(0x1a6)]===0x0)return _0x328407(0x1b3);return _0x4c512c[_0x328407(0x1a7)](_0x39ed94=>_0x2508e3[_0x39ed94]);}function a37_0x5460(){const _0x58dab5=['trim','请输入\x20App\x20Code:','✎\x20手动输入','8402144zEgwRG','3fXEdDt','\x0a无法获取远程应用列表,请手动输入。','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','无法获取远程应用列表,请手动输入。','yellow','1647394YtraRR','(跳过,稍后配置)','manual','4649859IWRIIT','cyan','skip','正在获取可用应用列表...','11456280Qmirdq','4027104KXcSar','length','map','8RVtuzL','valid','✎\x20自定义输入\x20appcode','获取到\x20','232028ANudHP','2626770eOGeCt','gray','\x0a未找到可用应用。','\x20\x20(','appName','log','custom','includes','appCode','7DXpZFg'];a37_0x5460=function(){return _0x58dab5;};return a37_0x5460();}export async function promptSingleAppSelection(_0x4eee34){const _0x39c080=a37_0x5aa7,_0x452fa6=[{'name':a37_0x1fc9b8[_0x39c080(0x1ae)]('(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)'),'value':_0x39c080(0x1a2)},{'name':a37_0x1fc9b8['yellow'](_0x39c080(0x1aa)),'value':'custom'},..._0x4eee34[_0x39c080(0x1a7)](_0x30da68=>({'name':_0x30da68[_0x39c080(0x1b1)]+'\x20\x20'+a37_0x1fc9b8['gray']('('+_0x30da68[_0x39c080(0x1b5)]+')'),'value':_0x30da68[_0x39c080(0x1b5)]}))],_0xe02af8=await select({'message':'请选择要绑定的应用:','choices':_0x452fa6});if(_0xe02af8===_0x39c080(0x1a2))return _0x39c080(0x1a2);if(_0xe02af8==='custom')return _0x39c080(0x1b3);return _0x4eee34['find'](_0x5d787f=>_0x5d787f[_0x39c080(0x1b5)]===_0xe02af8);}export async function selectSingleAppcode(_0x26d0b4){const _0x1a75f8=a37_0x5aa7;if(!_0x26d0b4)return console[_0x1a75f8(0x1b2)](a37_0x1fc9b8['gray']('(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)')),_fallbackOrSkip();console[_0x1a75f8(0x1b2)](_0x1a75f8(0x1a3));let _0x3a3e3e;try{_0x3a3e3e=await withActiveCookie(_0x26d0b4,()=>listRemoteApps());}catch(_0x4b6d8c){console[_0x1a75f8(0x1b2)](a37_0x1fc9b8[_0x1a75f8(0x19c)](_0x1a75f8(0x19b)));if(_0x4b6d8c instanceof Error)console['log'](a37_0x1fc9b8[_0x1a75f8(0x1ae)](_0x1a75f8(0x1b0)+_0x4b6d8c['message']+')'));return _fallbackOrSkip();}if(_0x3a3e3e[_0x1a75f8(0x1a6)]===0x0)return console[_0x1a75f8(0x1b2)](a37_0x1fc9b8['yellow']('未找到可用应用。')),_fallbackOrSkip();const _0x232951=await promptSingleAppSelection(_0x3a3e3e);if(_0x232951===_0x1a75f8(0x1a2))return'';if(_0x232951===_0x1a75f8(0x1b3))return promptCustomAppcode();return _0x232951[_0x1a75f8(0x1b5)];}export async function selectMultipleApps(_0x50c665){const _0x4a1a92=a37_0x5aa7;console[_0x4a1a92(0x1b2)](_0x4a1a92(0x1a3));let _0x58d30f;try{_0x58d30f=await withActiveCookie(_0x50c665,()=>listRemoteApps());}catch(_0x3f3a5e){console[_0x4a1a92(0x1b2)](_0x4a1a92(0x199));if(_0x3f3a5e instanceof Error)console[_0x4a1a92(0x1b2)](_0x4a1a92(0x1b0)+_0x3f3a5e['message']+')');return _0x4a1a92(0x1b3);}if(_0x58d30f['length']===0x0)return console[_0x4a1a92(0x1b2)](_0x4a1a92(0x1af)),_0x4a1a92(0x1b3);return promptAppSelection(_0x58d30f);}async function _fallbackOrSkip(){const _0x2c0418=a37_0x5aa7,_0x4c9684=await select({'message':'App\x20Code:','choices':[{'name':a37_0x1fc9b8[_0x2c0418(0x1ae)](_0x2c0418(0x19e)),'value':'skip'},{'name':a37_0x1fc9b8[_0x2c0418(0x19c)](_0x2c0418(0x196)),'value':_0x2c0418(0x19f)}]});if(_0x4c9684==='skip')return'';return promptCustomAppcode();}
@@ -1 +1 @@
1
- const a38_0x631c8=a38_0x2f1e;(function(_0x31cc18,_0x1ff43f){const _0x18d9b1=a38_0x2f1e,_0x20c38e=_0x31cc18();while(!![]){try{const _0x3e352f=-parseInt(_0x18d9b1(0x117))/0x1*(parseInt(_0x18d9b1(0x119))/0x2)+-parseInt(_0x18d9b1(0x11e))/0x3*(parseInt(_0x18d9b1(0x11f))/0x4)+parseInt(_0x18d9b1(0x120))/0x5*(parseInt(_0x18d9b1(0x11d))/0x6)+parseInt(_0x18d9b1(0x115))/0x7+parseInt(_0x18d9b1(0x11b))/0x8+parseInt(_0x18d9b1(0x116))/0x9+-parseInt(_0x18d9b1(0x123))/0xa;if(_0x3e352f===_0x1ff43f)break;else _0x20c38e['push'](_0x20c38e['shift']());}catch(_0x4f8bd3){_0x20c38e['push'](_0x20c38e['shift']());}}}(a38_0x1858,0xcd491));export const CODE_FLAG={'name':a38_0x631c8(0x118),'type':a38_0x631c8(0x122),'required':!![],'description':a38_0x631c8(0x121),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'}};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const SQLCODE_FLAG={'name':'sqlcode','type':'string','required':!![],'description':a38_0x631c8(0x124),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a38_0x631c8(0x11a)}};export const APPCODE_FLAG_OPTIONAL={'name':a38_0x631c8(0x11c),'type':a38_0x631c8(0x122),'required':![],'description':'App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)'};function a38_0x1858(){const _0x5b9194=['976328PnvuZi','appcode','1002NYrgKW','1905VQbeCL','1676NZFmSt','1415XwDLpb','Dataset\x20code\x20(32-char\x20hex\x20UUID)','string','9746820BsCkwM','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','11619650dqPrOU','6449625eWtBJT','1otCFzP','code','928562WsKhvD','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'];a38_0x1858=function(){return _0x5b9194;};return a38_0x1858();}function a38_0x2f1e(_0x11364c,_0x5040ce){_0x11364c=_0x11364c-0x115;const _0x1858fc=a38_0x1858();let _0x2f1e76=_0x1858fc[_0x11364c];return _0x2f1e76;}export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};
1
+ const a38_0x9a5c6b=a38_0x1474;function a38_0xfb56(){const _0x4f9a9a=['4858495jQOgMV','7204414BhrOBS','530376pMItUG','sqlcode','755754QFmYJj','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','3006651nGfNaE','appcode','string','Dataset\x20code\x20(32-char\x20hex\x20UUID)','code','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','4222696neZGBA','1378122XTlXVr','8sGdehz'];a38_0xfb56=function(){return _0x4f9a9a;};return a38_0xfb56();}(function(_0x3ff5c9,_0x1631a9){const _0xfffb38=a38_0x1474,_0x2f133e=_0x3ff5c9();while(!![]){try{const _0x3d90a7=-parseInt(_0xfffb38(0xad))/0x1+-parseInt(_0xfffb38(0xa7))/0x2+-parseInt(_0xfffb38(0xb0))/0x3+parseInt(_0xfffb38(0xa6))/0x4+parseInt(_0xfffb38(0xa9))/0x5+parseInt(_0xfffb38(0xab))/0x6+parseInt(_0xfffb38(0xaa))/0x7*(parseInt(_0xfffb38(0xa8))/0x8);if(_0x3d90a7===_0x1631a9)break;else _0x2f133e['push'](_0x2f133e['shift']());}catch(_0xa86809){_0x2f133e['push'](_0x2f133e['shift']());}}}(a38_0xfb56,0xaa653));export const CODE_FLAG={'name':a38_0x9a5c6b(0xa3),'type':'string','required':!![],'description':a38_0x9a5c6b(0xa2),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a38_0x9a5c6b(0xa4)}};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const SQLCODE_FLAG={'name':a38_0x9a5c6b(0xac),'type':a38_0x9a5c6b(0xa1),'required':!![],'description':a38_0x9a5c6b(0xae),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a38_0x9a5c6b(0xa5)}};export const APPCODE_FLAG_OPTIONAL={'name':a38_0x9a5c6b(0xb1),'type':a38_0x9a5c6b(0xa1),'required':![],'description':a38_0x9a5c6b(0xaf)};function a38_0x1474(_0x51c8b2,_0x43b042){_0x51c8b2=_0x51c8b2-0xa1;const _0xfb56d5=a38_0xfb56();let _0x14745c=_0xfb56d5[_0x51c8b2];return _0x14745c;}export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};
@@ -1 +1 @@
1
- function a39_0x4afd(){const _0x43a42e=['42vkvrvo','length','10DxKpbW','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','App\x20Code\x20cannot\x20be\x20empty','1490865xpehih','10655315AjiqPD','19281vEkRSS','912325IogoRt','App\x20Code\x20cannot\x20exceed\x20100\x20characters','3612740lrVPWc','3659472CCsSyW','30aWXrrb','21QbNDeH','8287182nSqMLW'];a39_0x4afd=function(){return _0x43a42e;};return a39_0x4afd();}(function(_0x47824b,_0x43ffba){const _0x495a60=a39_0x308f,_0x212075=_0x47824b();while(!![]){try{const _0x156669=-parseInt(_0x495a60(0xa1))/0x1*(-parseInt(_0x495a60(0xa6))/0x2)+-parseInt(_0x495a60(0x9f))/0x3+parseInt(_0x495a60(0xa4))/0x4+parseInt(_0x495a60(0xa2))/0x5*(-parseInt(_0x495a60(0xa9))/0x6)+-parseInt(_0x495a60(0xa7))/0x7*(-parseInt(_0x495a60(0xa5))/0x8)+-parseInt(_0x495a60(0xa8))/0x9+-parseInt(_0x495a60(0xab))/0xa*(-parseInt(_0x495a60(0xa0))/0xb);if(_0x156669===_0x43ffba)break;else _0x212075['push'](_0x212075['shift']());}catch(_0x38590e){_0x212075['push'](_0x212075['shift']());}}}(a39_0x4afd,0xccad7));function a39_0x308f(_0x471a9b,_0x3f6643){_0x471a9b=_0x471a9b-0x9e;const _0x4afd46=a39_0x4afd();let _0x308f96=_0x4afd46[_0x471a9b];return _0x308f96;}export function validateAppcode(_0x41ecc6){const _0x3a3e2e=a39_0x308f,_0xe44c47=_0x41ecc6['trim']();if(!_0xe44c47)return{'valid':![],'message':_0x3a3e2e(0x9e)};if(_0xe44c47[_0x3a3e2e(0xaa)]>0x64)return{'valid':![],'message':_0x3a3e2e(0xa3)};if(!/^[A-Za-z0-9_-]+$/['test'](_0xe44c47))return{'valid':![],'message':_0x3a3e2e(0xac)};return{'valid':!![]};}
1
+ function a39_0x15e8(_0x38d2ae,_0x249ff8){_0x38d2ae=_0x38d2ae-0x154;const _0x582752=a39_0x5827();let _0x15e893=_0x582752[_0x38d2ae];return _0x15e893;}(function(_0xc1aed,_0x455214){const _0x2eb2a9=a39_0x15e8,_0x5c0515=_0xc1aed();while(!![]){try{const _0x12a13d=-parseInt(_0x2eb2a9(0x159))/0x1+-parseInt(_0x2eb2a9(0x156))/0x2+parseInt(_0x2eb2a9(0x15d))/0x3*(parseInt(_0x2eb2a9(0x15e))/0x4)+-parseInt(_0x2eb2a9(0x154))/0x5+-parseInt(_0x2eb2a9(0x15a))/0x6*(-parseInt(_0x2eb2a9(0x15c))/0x7)+parseInt(_0x2eb2a9(0x15f))/0x8+-parseInt(_0x2eb2a9(0x15b))/0x9;if(_0x12a13d===_0x455214)break;else _0x5c0515['push'](_0x5c0515['shift']());}catch(_0x3d4de2){_0x5c0515['push'](_0x5c0515['shift']());}}}(a39_0x5827,0x8b989));export function validateAppcode(_0x53dfc2){const _0x37025a=a39_0x15e8,_0x17c277=_0x53dfc2[_0x37025a(0x155)]();if(!_0x17c277)return{'valid':![],'message':_0x37025a(0x157)};if(_0x17c277['length']>0x64)return{'valid':![],'message':'App\x20Code\x20cannot\x20exceed\x20100\x20characters'};if(!/^[A-Za-z0-9_-]+$/[_0x37025a(0x158)](_0x17c277))return{'valid':![],'message':'Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed'};return{'valid':!![]};}function a39_0x5827(){const _0x11fe42=['test','1114889TWPPyJ','978KbmoTy','196470pRuRQn','44779QALAbB','3yEHUWb','2382076WcfldY','3161000pflpXc','1501100UdNQCQ','trim','49262HnEZLM','App\x20Code\x20cannot\x20be\x20empty'];a39_0x5827=function(){return _0x11fe42;};return a39_0x5827();}
@@ -1 +1 @@
1
- function a40_0x237e(_0x54c5bf,_0x4b20d9){_0x54c5bf=_0x54c5bf-0x87;const _0x2276e3=a40_0x2276();let _0x237e46=_0x2276e3[_0x54c5bf];return _0x237e46;}const a40_0x221358=a40_0x237e;(function(_0xcae20d,_0x2eda4a){const _0x417fcd=a40_0x237e,_0x560e79=_0xcae20d();while(!![]){try{const _0x3daa52=parseInt(_0x417fcd(0xa0))/0x1+-parseInt(_0x417fcd(0x99))/0x2*(-parseInt(_0x417fcd(0x95))/0x3)+parseInt(_0x417fcd(0x93))/0x4*(parseInt(_0x417fcd(0x88))/0x5)+parseInt(_0x417fcd(0x8f))/0x6*(parseInt(_0x417fcd(0x9e))/0x7)+parseInt(_0x417fcd(0x91))/0x8*(parseInt(_0x417fcd(0x8a))/0x9)+-parseInt(_0x417fcd(0x90))/0xa*(parseInt(_0x417fcd(0x89))/0xb)+-parseInt(_0x417fcd(0x9b))/0xc;if(_0x3daa52===_0x2eda4a)break;else _0x560e79['push'](_0x560e79['shift']());}catch(_0x535db0){_0x560e79['push'](_0x560e79['shift']());}}}(a40_0x2276,0xd2e73));import{CliErrors}from'../../errors.js';function a40_0x2276(){const _0x23fe56=['985630VpttjJ','config','43225320qRMinF','Get\x20a\x20config\x20value\x20by\x20key','\x20config\x20get\x20--key\x20<key>','784518oLdYEQ','Missing\x20key.','1539609lAYqUw','appcode','4204135McdoCv','8521645tiLErp','621ZNrXTC','read','validation','Config\x20key\x20to\x20read','key','30xUyIDe','20gcZyQu','185056bYtqjy','Key\x20not\x20found:\x20','4rlkntB','get','9kLlUHQ','string','app','str'];a40_0x2276=function(){return _0x23fe56;};return a40_0x2276();}import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';async function execute(_0xecc01d){const _0xcf89d0=a40_0x237e,_0x20ff3a=_0xecc01d[_0xcf89d0(0x98)](_0xcf89d0(0x8e));if(!_0x20ff3a)throw CliErrors[_0xcf89d0(0x8c)](_0xcf89d0(0x9f),'Usage:\x20'+CLI_BIN_NAME+_0xcf89d0(0x9d));const _0x39a17c=readConfig(),_0x146304=_0x20ff3a===_0xcf89d0(0x97)?_0xcf89d0(0x87):_0x20ff3a,_0x8b2a59=_0x39a17c[_0x146304];if(_0x8b2a59===undefined)throw CliErrors['validation'](_0xcf89d0(0x92)+_0x20ff3a);return{'ok':!![],'data':typeof _0x8b2a59==='object'?_0x8b2a59:{[_0x146304]:_0x8b2a59},'message':typeof _0x8b2a59==='object'?undefined:String(_0x8b2a59)};}export const configGetDefinition={'service':a40_0x221358(0x9a),'command':a40_0x221358(0x94),'description':a40_0x221358(0x9c),'risk':a40_0x221358(0x8b),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a40_0x221358(0x96),'description':a40_0x221358(0x8d),'required':!![]}],'execute':execute};
1
+ const a40_0x1f2baa=a40_0x5ace;(function(_0x4af94b,_0xbe6af2){const _0x954128=a40_0x5ace,_0x1e0255=_0x4af94b();while(!![]){try{const _0x3640a2=parseInt(_0x954128(0x8e))/0x1+parseInt(_0x954128(0x97))/0x2+-parseInt(_0x954128(0x93))/0x3+parseInt(_0x954128(0x89))/0x4+parseInt(_0x954128(0x88))/0x5+parseInt(_0x954128(0x8c))/0x6+-parseInt(_0x954128(0x98))/0x7*(parseInt(_0x954128(0x8a))/0x8);if(_0x3640a2===_0xbe6af2)break;else _0x1e0255['push'](_0x1e0255['shift']());}catch(_0x205846){_0x1e0255['push'](_0x1e0255['shift']());}}}(a40_0x1757,0x8fd24));function a40_0x1757(){const _0x2cec92=['5255394aqoVWA','read','922746peSIIh','key','\x20config\x20get\x20--key\x20<key>','object','str','1034052FlYdQq','app','Key\x20not\x20found:\x20','appcode','394310rmRPHw','2023Bvsinl','Get\x20a\x20config\x20value\x20by\x20key','Missing\x20key.','Config\x20key\x20to\x20read','validation','config','943660UpSUyu','124992uYXryL','35488BQaoMm','get'];a40_0x1757=function(){return _0x2cec92;};return a40_0x1757();}import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a40_0x5ace(_0x60845f,_0x511cba){_0x60845f=_0x60845f-0x86;const _0x17577d=a40_0x1757();let _0x5ace48=_0x17577d[_0x60845f];return _0x5ace48;}async function execute(_0x3ada1d){const _0x37bec1=a40_0x5ace,_0x3223ea=_0x3ada1d[_0x37bec1(0x92)](_0x37bec1(0x8f));if(!_0x3223ea)throw CliErrors['validation'](_0x37bec1(0x9a),'Usage:\x20'+CLI_BIN_NAME+_0x37bec1(0x90));const _0x1c790a=readConfig(),_0x34a593=_0x3223ea===_0x37bec1(0x94)?_0x37bec1(0x96):_0x3223ea,_0x3d48a9=_0x1c790a[_0x34a593];if(_0x3d48a9===undefined)throw CliErrors[_0x37bec1(0x86)](_0x37bec1(0x95)+_0x3223ea);return{'ok':!![],'data':typeof _0x3d48a9===_0x37bec1(0x91)?_0x3d48a9:{[_0x34a593]:_0x3d48a9},'message':typeof _0x3d48a9===_0x37bec1(0x91)?undefined:String(_0x3d48a9)};}export const configGetDefinition={'service':a40_0x1f2baa(0x87),'command':a40_0x1f2baa(0x8b),'description':a40_0x1f2baa(0x99),'risk':a40_0x1f2baa(0x8d),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a40_0x1f2baa(0x8f),'type':'string','description':a40_0x1f2baa(0x9b),'required':!![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x37cc44,_0x1dbc27){const _0xbd176e=a41_0x5573,_0x4e671b=_0x37cc44();while(!![]){try{const _0x35080e=parseInt(_0xbd176e(0x1fa))/0x1*(parseInt(_0xbd176e(0x1f9))/0x2)+-parseInt(_0xbd176e(0x1f5))/0x3*(-parseInt(_0xbd176e(0x1f6))/0x4)+parseInt(_0xbd176e(0x1fb))/0x5+-parseInt(_0xbd176e(0x1f3))/0x6*(parseInt(_0xbd176e(0x1f8))/0x7)+-parseInt(_0xbd176e(0x1fc))/0x8+-parseInt(_0xbd176e(0x1f4))/0x9+parseInt(_0xbd176e(0x1f7))/0xa;if(_0x35080e===_0x1dbc27)break;else _0x4e671b['push'](_0x4e671b['shift']());}catch(_0x74f104){_0x4e671b['push'](_0x4e671b['shift']());}}}(a41_0x3a53,0xa7b5d));import{configListDefinition}from'../../commands/config/list.js';function a41_0x3a53(){const _0x37c536=['548YcxdCS','1955onsOVq','3637940asotex','10308840hjebXU','306xfGFLG','821142CtCMSc','27AUsLRv','24932PEFphz','18164910jlMhDl','146734fuUGRH'];a41_0x3a53=function(){return _0x37c536;};return a41_0x3a53();}import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';function a41_0x5573(_0x3296ba,_0x48d30b){_0x3296ba=_0x3296ba-0x1f3;const _0x3a5336=a41_0x3a53();let _0x5573de=_0x3a5336[_0x3296ba];return _0x5573de;}export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
1
+ (function(_0x760c4d,_0x348f54){const _0x41627b=a41_0x5b36,_0x5c473b=_0x760c4d();while(!![]){try{const _0x3f508a=-parseInt(_0x41627b(0x10e))/0x1*(-parseInt(_0x41627b(0x111))/0x2)+-parseInt(_0x41627b(0x115))/0x3*(parseInt(_0x41627b(0x10b))/0x4)+-parseInt(_0x41627b(0x10f))/0x5+parseInt(_0x41627b(0x113))/0x6*(-parseInt(_0x41627b(0x110))/0x7)+-parseInt(_0x41627b(0x10c))/0x8+-parseInt(_0x41627b(0x114))/0x9*(-parseInt(_0x41627b(0x10d))/0xa)+parseInt(_0x41627b(0x112))/0xb*(parseInt(_0x41627b(0x116))/0xc);if(_0x3f508a===_0x348f54)break;else _0x5c473b['push'](_0x5c473b['shift']());}catch(_0x422bda){_0x5c473b['push'](_0x5c473b['shift']());}}}(a41_0x219d,0xc3c40));function a41_0x5b36(_0x1e1e70,_0x513a66){_0x1e1e70=_0x1e1e70-0x10b;const _0x219d0e=a41_0x219d();let _0x5b36b5=_0x219d0e[_0x1e1e70];return _0x5b36b5;}import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a41_0x219d(){const _0x397571=['242HSGkXy','6qtuNPA','2685141kyxsTl','60DZSuuO','1794624TqGbDw','46964XZLgCE','9967224qntLju','20chlMAX','2NNGgQd','5664605ssDVXT','4488162WiJSZl','169824rkcCCl'];a41_0x219d=function(){return _0x397571;};return a41_0x219d();}import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
@@ -1 +1 @@
1
- function a42_0xe916(){const _0xa7c874=['5802CEMsme','list','4615csbCzA','List\x20all\x20config\x20values','boolean','4473808wgbYSU','1094907YJRHYm','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','11fcAQkH','2118SyIAVg','4029648lzGEso','read','54088NvuoUA','1251PMVepo','config','12682730ZDehdn','bool','1376xipjQg'];a42_0xe916=function(){return _0xa7c874;};return a42_0xe916();}const a42_0x3c1282=a42_0xa4e1;(function(_0x4967b9,_0x27d71a){const _0x31c038=a42_0xa4e1,_0x58bcd3=_0x4967b9();while(!![]){try{const _0xe7df81=parseInt(_0x31c038(0xbb))/0x1+-parseInt(_0x31c038(0xb4))/0x2*(parseInt(_0x31c038(0xbe))/0x3)+parseInt(_0x31c038(0xba))/0x4+parseInt(_0x31c038(0xb7))/0x5*(-parseInt(_0x31c038(0xb5))/0x6)+-parseInt(_0x31c038(0xbf))/0x7+-parseInt(_0x31c038(0xc1))/0x8*(parseInt(_0x31c038(0xc2))/0x9)+-parseInt(_0x31c038(0xc4))/0xa*(-parseInt(_0x31c038(0xbd))/0xb);if(_0xe7df81===_0x27d71a)break;else _0x58bcd3['push'](_0x58bcd3['shift']());}catch(_0x2a9974){_0x58bcd3['push'](_0x58bcd3['shift']());}}}(a42_0xe916,0x8f890));import{readScopedConfig}from'../../commands/config/shared.js';function a42_0xa4e1(_0xc8cacd,_0x267846){_0xc8cacd=_0xc8cacd-0xb3;const _0xe91650=a42_0xe916();let _0xa4e198=_0xe91650[_0xc8cacd];return _0xa4e198;}import{readConfig}from'../../utils/config.js';async function execute(_0x576905){const _0x51007a=a42_0xa4e1,_0x5ae0e0=_0x576905[_0x51007a(0xb3)]('global')?readScopedConfig('global'):readConfig();return{'ok':!![],'data':_0x5ae0e0};}export const configListDefinition={'service':a42_0x3c1282(0xc3),'command':a42_0x3c1282(0xb6),'description':a42_0x3c1282(0xb8),'risk':a42_0x3c1282(0xc0),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'global','type':a42_0x3c1282(0xb9),'description':a42_0x3c1282(0xbc),'default':![]}],'execute':execute};
1
+ const a42_0x628a10=a42_0x5d55;(function(_0x3ab4fc,_0x906207){const _0x4364d7=a42_0x5d55,_0x4f935b=_0x3ab4fc();while(!![]){try{const _0x35e068=parseInt(_0x4364d7(0x199))/0x1*(-parseInt(_0x4364d7(0x1a5))/0x2)+parseInt(_0x4364d7(0x1aa))/0x3+-parseInt(_0x4364d7(0x1a2))/0x4*(parseInt(_0x4364d7(0x19e))/0x5)+parseInt(_0x4364d7(0x19a))/0x6*(-parseInt(_0x4364d7(0x1a1))/0x7)+-parseInt(_0x4364d7(0x1a7))/0x8*(parseInt(_0x4364d7(0x19f))/0x9)+-parseInt(_0x4364d7(0x1a8))/0xa+-parseInt(_0x4364d7(0x19c))/0xb*(-parseInt(_0x4364d7(0x1a3))/0xc);if(_0x35e068===_0x906207)break;else _0x4f935b['push'](_0x4f935b['shift']());}catch(_0x22a53c){_0x4f935b['push'](_0x4f935b['shift']());}}}(a42_0x1764,0x9f28f));function a42_0x5d55(_0x2c593d,_0x20fb55){_0x2c593d=_0x2c593d-0x199;const _0x1764a4=a42_0x1764();let _0x5d55ce=_0x1764a4[_0x2c593d];return _0x5d55ce;}import{readScopedConfig}from'../../commands/config/shared.js';function a42_0x1764(){const _0x4ca947=['109299DBOzKH','1aLrLPk','558tGSQZt','config','39998992MQHhpT','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','310reLeFy','5436ylwlWW','List\x20all\x20config\x20values','34538KlnJeX','28592GHYNrV','12AxmoHI','read','1663342eipXeI','bool','9104iUafwX','5997250LbNvne','global'];a42_0x1764=function(){return _0x4ca947;};return a42_0x1764();}import{readConfig}from'../../utils/config.js';async function execute(_0x4a2ac0){const _0x528549=a42_0x5d55,_0x187321=_0x4a2ac0[_0x528549(0x1a6)](_0x528549(0x1a9))?readScopedConfig(_0x528549(0x1a9)):readConfig();return{'ok':!![],'data':_0x187321};}export const configListDefinition={'service':a42_0x628a10(0x19b),'command':'list','description':a42_0x628a10(0x1a0),'risk':a42_0x628a10(0x1a4),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a42_0x628a10(0x1a9),'type':'boolean','description':a42_0x628a10(0x19d),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a43_0x1d92b0=a43_0x49b4;function a43_0x383e(){const _0x26582a=['Invalid\x20locale\x20value.','riskLevel','validation','app','boolean','8271145FDQQKi','Global','bool','Usage:\x20','str','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','4129188yCqOCl','7918659crbKsa','global','144prssEx','83073jnPDqD','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','daily','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily,\x20online','online','700960HKvdDI','includes','Project','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','string','locale','Missing\x20key.','Missing\x20value.','length','\x20set\x20to:\x20','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','appcode','set','config','key','Set\x20a\x20config\x20value','value','Config\x20value','4342638IOgwQh','625356ZCOkGh','write'];a43_0x383e=function(){return _0x26582a;};return a43_0x383e();}(function(_0xf915bb,_0x30f0ab){const _0x3d7e81=a43_0x49b4,_0x28ea31=_0xf915bb();while(!![]){try{const _0x560768=parseInt(_0x3d7e81(0x14b))/0x1+parseInt(_0x3d7e81(0x15b))/0x2*(-parseInt(_0x3d7e81(0x15c))/0x3)+parseInt(_0x3d7e81(0x158))/0x4+parseInt(_0x3d7e81(0x152))/0x5+parseInt(_0x3d7e81(0x14a))/0x6+-parseInt(_0x3d7e81(0x159))/0x7+parseInt(_0x3d7e81(0x161))/0x8;if(_0x560768===_0x30f0ab)break;else _0x28ea31['push'](_0x28ea31['shift']());}catch(_0x1ea79c){_0x28ea31['push'](_0x28ea31['shift']());}}}(a43_0x383e,0xf3b8e));function a43_0x49b4(_0x4d5c7e,_0x440482){_0x4d5c7e=_0x4d5c7e-0x13c;const _0x383e21=a43_0x383e();let _0x49b415=_0x383e21[_0x4d5c7e];return _0x49b415;}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';async function execute(_0x390cbc){const _0x36d04=a43_0x49b4,_0x54be03=_0x390cbc[_0x36d04(0x156)](_0x36d04(0x146)),_0x48ca65=_0x390cbc[_0x36d04(0x156)](_0x36d04(0x148));if(!_0x54be03)throw CliErrors[_0x36d04(0x14f)](_0x36d04(0x13e),_0x36d04(0x155)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x48ca65===undefined||_0x48ca65==='')throw CliErrors[_0x36d04(0x14f)](_0x36d04(0x13f),_0x36d04(0x155)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x48ca65[_0x36d04(0x140)]>0x1f4)throw CliErrors[_0x36d04(0x14f)](_0x36d04(0x142));if(_0x54be03==='env'&&![_0x36d04(0x160),'production',_0x36d04(0x15e)][_0x36d04(0x162)](_0x48ca65))throw CliErrors[_0x36d04(0x14f)](_0x36d04(0x15f));if(_0x54be03===_0x36d04(0x14e))throw CliErrors['validation'](_0x36d04(0x164));if(_0x54be03===_0x36d04(0x13d)&&!normalizeLocale(_0x48ca65))throw CliErrors[_0x36d04(0x14f)](_0x36d04(0x14d),_0x36d04(0x157));const _0x3dfbd1={'global':_0x390cbc[_0x36d04(0x154)](_0x36d04(0x15a))},_0x80a514=resolveWriteScope(_0x3dfbd1),_0x4f6523=readScopedConfig(_0x80a514);let _0x1ccd8d=_0x54be03,_0x16ea0c=_0x48ca65;_0x54be03===_0x36d04(0x150)&&(_0x1ccd8d=_0x36d04(0x143),delete _0x4f6523[_0x36d04(0x150)]);_0x54be03===_0x36d04(0x143)&&delete _0x4f6523[_0x36d04(0x150)];_0x54be03===_0x36d04(0x13d)&&(_0x16ea0c=normalizeLocale(_0x48ca65));_0x4f6523[_0x1ccd8d]=_0x16ea0c,writeScopedConfig(_0x4f6523,_0x80a514);const _0x274ede=_0x80a514===_0x36d04(0x15a)?_0x36d04(0x153):_0x36d04(0x163);return{'ok':!![],'message':'✓\x20'+_0x274ede+'\x20'+_0x1ccd8d+_0x36d04(0x141)+_0x16ea0c};}export const configSetDefinition={'service':a43_0x1d92b0(0x145),'command':a43_0x1d92b0(0x144),'description':a43_0x1d92b0(0x147),'risk':a43_0x1d92b0(0x14c),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x1d92b0(0x146),'type':a43_0x1d92b0(0x13c),'description':'Config\x20key','required':!![]},{'name':a43_0x1d92b0(0x148),'type':'string','description':a43_0x1d92b0(0x149),'required':!![]},{'name':a43_0x1d92b0(0x15a),'type':a43_0x1d92b0(0x151),'description':a43_0x1d92b0(0x15d),'default':![]}],'execute':execute};
1
+ function a43_0xa603(){const _0x5731f5=['app','production','bool','2072492foNkVm','Missing\x20value.','write','218383MdcBiC','value','\x20set\x20to:\x20','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','12000456arrtVJ','Usage:\x20','boolean','env','global','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','online','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','validation','1443862ZXbKjS','196102onICLE','length','Config\x20value','string','str','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','3195684nzJofB','726774nyAvYZ','Missing\x20key.','440relbBq','set','locale','33JEOblF','key','daily','appcode','config','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily,\x20online','14jJOMTZ','5UOkANk'];a43_0xa603=function(){return _0x5731f5;};return a43_0xa603();}const a43_0x315a50=a43_0xc5e4;(function(_0x388335,_0x52baef){const _0xbfa94=a43_0xc5e4,_0x11b0d9=_0x388335();while(!![]){try{const _0x568e1d=-parseInt(_0xbfa94(0x1e1))/0x1+parseInt(_0xbfa94(0x1e2))/0x2*(parseInt(_0xbfa94(0x1c5))/0x3)+-parseInt(_0xbfa94(0x1d0))/0x4*(-parseInt(_0xbfa94(0x1cc))/0x5)+parseInt(_0xbfa94(0x1c0))/0x6*(-parseInt(_0xbfa94(0x1cb))/0x7)+parseInt(_0xbfa94(0x1d7))/0x8+parseInt(_0xbfa94(0x1e8))/0x9+-parseInt(_0xbfa94(0x1c2))/0xa*(parseInt(_0xbfa94(0x1d3))/0xb);if(_0x568e1d===_0x52baef)break;else _0x11b0d9['push'](_0x11b0d9['shift']());}catch(_0x4446f0){_0x11b0d9['push'](_0x11b0d9['shift']());}}}(a43_0xa603,0xd9d05));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';async function execute(_0x40a19c){const _0x490ac4=a43_0xc5e4,_0x3d2cc1=_0x40a19c[_0x490ac4(0x1e6)](_0x490ac4(0x1c6)),_0x86f896=_0x40a19c[_0x490ac4(0x1e6)](_0x490ac4(0x1d4));if(!_0x3d2cc1)throw CliErrors['validation'](_0x490ac4(0x1c1),_0x490ac4(0x1d8)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x86f896===undefined||_0x86f896==='')throw CliErrors[_0x490ac4(0x1e0)](_0x490ac4(0x1d1),_0x490ac4(0x1d8)+CLI_BIN_NAME+_0x490ac4(0x1e7));if(_0x86f896[_0x490ac4(0x1e3)]>0x1f4)throw CliErrors[_0x490ac4(0x1e0)](_0x490ac4(0x1dc));if(_0x3d2cc1===_0x490ac4(0x1da)&&![_0x490ac4(0x1dd),_0x490ac4(0x1ce),_0x490ac4(0x1c7)]['includes'](_0x86f896))throw CliErrors[_0x490ac4(0x1e0)](_0x490ac4(0x1ca));if(_0x3d2cc1==='riskLevel')throw CliErrors[_0x490ac4(0x1e0)](_0x490ac4(0x1df));if(_0x3d2cc1==='locale'&&!normalizeLocale(_0x86f896))throw CliErrors[_0x490ac4(0x1e0)]('Invalid\x20locale\x20value.',_0x490ac4(0x1de));const _0x5786b={'global':_0x40a19c[_0x490ac4(0x1cf)](_0x490ac4(0x1db))},_0x58476d=resolveWriteScope(_0x5786b),_0x374176=readScopedConfig(_0x58476d);let _0x65af4d=_0x3d2cc1,_0x589437=_0x86f896;_0x3d2cc1===_0x490ac4(0x1cd)&&(_0x65af4d=_0x490ac4(0x1c8),delete _0x374176['app']);_0x3d2cc1==='appcode'&&delete _0x374176[_0x490ac4(0x1cd)];_0x3d2cc1===_0x490ac4(0x1c4)&&(_0x589437=normalizeLocale(_0x86f896));_0x374176[_0x65af4d]=_0x589437,writeScopedConfig(_0x374176,_0x58476d);const _0xd517cb=_0x58476d===_0x490ac4(0x1db)?'Global':'Project';return{'ok':!![],'message':'✓\x20'+_0xd517cb+'\x20'+_0x65af4d+_0x490ac4(0x1d5)+_0x589437};}function a43_0xc5e4(_0x46293f,_0x488fc4){_0x46293f=_0x46293f-0x1c0;const _0xa60374=a43_0xa603();let _0xc5e4d8=_0xa60374[_0x46293f];return _0xc5e4d8;}export const configSetDefinition={'service':a43_0x315a50(0x1c9),'command':a43_0x315a50(0x1c3),'description':'Set\x20a\x20config\x20value','risk':a43_0x315a50(0x1d2),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x315a50(0x1c6),'type':a43_0x315a50(0x1e5),'description':'Config\x20key','required':!![]},{'name':a43_0x315a50(0x1d4),'type':'string','description':a43_0x315a50(0x1e4),'required':!![]},{'name':a43_0x315a50(0x1db),'type':a43_0x315a50(0x1d9),'description':a43_0x315a50(0x1d6),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a44_0x60a22b=a44_0x97dc;(function(_0x4e3683,_0x531dd3){const _0x57e70b=a44_0x97dc,_0x46e280=_0x4e3683();while(!![]){try{const _0x492bca=-parseInt(_0x57e70b(0x185))/0x1*(parseInt(_0x57e70b(0x18f))/0x2)+-parseInt(_0x57e70b(0x18e))/0x3*(parseInt(_0x57e70b(0x192))/0x4)+-parseInt(_0x57e70b(0x18a))/0x5+parseInt(_0x57e70b(0x18c))/0x6+-parseInt(_0x57e70b(0x190))/0x7*(parseInt(_0x57e70b(0x193))/0x8)+parseInt(_0x57e70b(0x18b))/0x9*(parseInt(_0x57e70b(0x188))/0xa)+parseInt(_0x57e70b(0x186))/0xb*(parseInt(_0x57e70b(0x191))/0xc);if(_0x492bca===_0x531dd3)break;else _0x46e280['push'](_0x46e280['shift']());}catch(_0x57bea9){_0x46e280['push'](_0x46e280['shift']());}}}(a44_0x4cb9,0x4839e));import{CLI_BIN_NAME}from'../../constant/cli.js';function a44_0x4cb9(){const _0x4a413d=['en-US','196570ZPlCjH','zh-CN','2346820CyhrYm','189Yqblqk','2013588FKfBLS','global','3tlBczr','3470ZfkHUW','1835365YBkMJU','12VRYleC','29044aToWvC','8UgnqWG','toLowerCase','91CzGVIU','4885628RkGDnh'];a44_0x4cb9=function(){return _0x4a413d;};return a44_0x4cb9();}import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';export{CLI_BIN_NAME};const LOCALE_MAP={'zh':'zh-CN','zh-cn':'zh-CN','zh_cn':a44_0x60a22b(0x189),'en':a44_0x60a22b(0x187),'en-us':a44_0x60a22b(0x187),'en_us':a44_0x60a22b(0x187)};function a44_0x97dc(_0x5dc1c8,_0x573b46){_0x5dc1c8=_0x5dc1c8-0x185;const _0x4cb92a=a44_0x4cb9();let _0x97dc77=_0x4cb92a[_0x5dc1c8];return _0x97dc77;}export function normalizeLocale(_0x2f1400){const _0x152210=a44_0x60a22b;if(!_0x2f1400)return null;return LOCALE_MAP[_0x2f1400[_0x152210(0x194)]()]??null;}export function resolveWriteScope(_0x18cffd){const _0x2e7d9b=a44_0x60a22b;if(_0x18cffd[_0x2e7d9b(0x18d)])return _0x2e7d9b(0x18d);return isInProject()?'project':'global';}export function readScopedConfig(_0x5a5c2b){return readConfigFile(resolveWriteConfigPath(_0x5a5c2b));}export function writeScopedConfig(_0x5e4718,_0x5151dc){writeConfigFile(resolveWriteConfigPath(_0x5151dc),_0x5e4718);}
1
+ const a44_0xcb9d1e=a44_0xd109;(function(_0x2bc29c,_0x29fe8f){const _0x2a0816=a44_0xd109,_0x370bec=_0x2bc29c();while(!![]){try{const _0x175176=-parseInt(_0x2a0816(0x141))/0x1+-parseInt(_0x2a0816(0x142))/0x2+parseInt(_0x2a0816(0x148))/0x3+-parseInt(_0x2a0816(0x14a))/0x4+parseInt(_0x2a0816(0x14d))/0x5*(-parseInt(_0x2a0816(0x14b))/0x6)+-parseInt(_0x2a0816(0x149))/0x7+parseInt(_0x2a0816(0x140))/0x8*(parseInt(_0x2a0816(0x143))/0x9);if(_0x175176===_0x29fe8f)break;else _0x370bec['push'](_0x370bec['shift']());}catch(_0x281914){_0x370bec['push'](_0x370bec['shift']());}}}(a44_0x5232,0xd8842));function a44_0x5232(){const _0x73c007=['toLowerCase','7016665RSoLSI','8vNtfcM','1493635jheODb','500916hhbwQq','54152001zAHDgS','zh-CN','en-US','project','global','809538IpmFzz','11103841jvmSEF','2664784aueDPE','6DObMXX'];a44_0x5232=function(){return _0x73c007;};return a44_0x5232();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';export{CLI_BIN_NAME};const LOCALE_MAP={'zh':a44_0xcb9d1e(0x144),'zh-cn':a44_0xcb9d1e(0x144),'zh_cn':a44_0xcb9d1e(0x144),'en':'en-US','en-us':'en-US','en_us':a44_0xcb9d1e(0x145)};function a44_0xd109(_0x4f914e,_0x2d08d2){_0x4f914e=_0x4f914e-0x140;const _0x523283=a44_0x5232();let _0xd1096d=_0x523283[_0x4f914e];return _0xd1096d;}export function normalizeLocale(_0x50af2c){const _0x760109=a44_0xcb9d1e;if(!_0x50af2c)return null;return LOCALE_MAP[_0x50af2c[_0x760109(0x14c)]()]??null;}export function resolveWriteScope(_0x2df94a){const _0x28afbe=a44_0xcb9d1e;if(_0x2df94a[_0x28afbe(0x147)])return _0x28afbe(0x147);return isInProject()?_0x28afbe(0x146):_0x28afbe(0x147);}export function readScopedConfig(_0x2dbbfd){return readConfigFile(resolveWriteConfigPath(_0x2dbbfd));}export function writeScopedConfig(_0x255876,_0x9993d){writeConfigFile(resolveWriteConfigPath(_0x9993d),_0x255876);}
@@ -1 +1 @@
1
- const a45_0x236cba=a45_0x2642;(function(_0x149dce,_0x1af1d0){const _0x255dbc=a45_0x2642,_0x275d68=_0x149dce();while(!![]){try{const _0x440d4d=-parseInt(_0x255dbc(0xe1))/0x1*(parseInt(_0x255dbc(0xf3))/0x2)+-parseInt(_0x255dbc(0xe2))/0x3+-parseInt(_0x255dbc(0xd8))/0x4+-parseInt(_0x255dbc(0xde))/0x5+-parseInt(_0x255dbc(0xf9))/0x6+parseInt(_0x255dbc(0x102))/0x7*(-parseInt(_0x255dbc(0x106))/0x8)+parseInt(_0x255dbc(0xeb))/0x9;if(_0x440d4d===_0x1af1d0)break;else _0x275d68['push'](_0x275d68['shift']());}catch(_0x1c8a9f){_0x275d68['push'](_0x275d68['shift']());}}}(a45_0xd2af,0x3fdc0));import{getDatasetDetail}from'../../core/api-client.js';function a45_0xd2af(){const _0x23b3c7=['toDatasetName','indexes','modifierIdField','operations','isArray','source','tableComment','split','length','logicField','177388bknCdV','str','type','fromField','responseFields','deleted','2031990OwBvmq','description','options','1uIwplA','1416162zIifzU','relations','creatorNameField','method','dbId','columnCodeListWithDeleted','creatorIdField','afterScriptId','displayName','14170752BXFxZs','formatRules','responseBody','modelId','tableName','requestBody','toField','updateTimeField','42082ShXBqy','dbType','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','toFieldLabel','toDatasetCode','modifierNameField','395406pBcBZA','object','allFields','requestFields','dataset','properties','allFieldNames','host','validateRules','101073HIiblQ','string','doVersion','dataType','168fGMBkE','pkField','beforeScriptId','parse','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','code','entries','dblinkInfoDTO','filter','labelField','required','createTimeField','map','toTableName','fields','datasetKey','push','relatedPageInfoList','path','alias','read','doType','extend'];a45_0xd2af=function(){return _0x23b3c7;};return a45_0xd2af();}import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x5b2d1a){const _0x1a2add=a45_0x2642;if(_0x5b2d1a[_0x1a2add(0xdd)])return null;const _0x2f26bb=Boolean(_0x5b2d1a[_0x1a2add(0xea)]!==undefined||_0x5b2d1a[_0x1a2add(0x11b)]!==undefined);let _0x2a2e90={};if(!_0x2f26bb&&typeof _0x5b2d1a[_0x1a2add(0x11c)]===_0x1a2add(0x103))try{_0x2a2e90=JSON[_0x1a2add(0x109)](_0x5b2d1a[_0x1a2add(0x11c)]);}catch{}const _0x3ec312=_0x2f26bb?_0x5b2d1a['name']:_0x5b2d1a['code'],_0x3cdf2c=_0x2f26bb?_0x5b2d1a[_0x1a2add(0xea)]:_0x5b2d1a['name'],_0x16c31a=_0x2f26bb?_0x5b2d1a[_0x1a2add(0x11b)]:_0x5b2d1a[_0x1a2add(0xda)]||_0x5b2d1a[_0x1a2add(0x105)],_0x50147f=_0x2f26bb?_0x5b2d1a[_0x1a2add(0x107)]===!![]:_0x2a2e90[_0x1a2add(0x107)]===!![],_0x21fdf4=_0x2f26bb?_0x5b2d1a['required']===!![]:_0x2a2e90[_0x1a2add(0x110)]===!![],_0x1523d9=_0x2f26bb?_0x5b2d1a[_0x1a2add(0xe0)]??null:_0x2a2e90[_0x1a2add(0xe0)]??null,_0x25d304={'name':_0x3ec312,'displayName':_0x3cdf2c||_0x3ec312,'type':_0x16c31a,'dbType':_0x5b2d1a[_0x1a2add(0xf4)],'pk':_0x50147f,'required':_0x21fdf4,'description':_0x5b2d1a[_0x1a2add(0xdf)]||undefined};return Array[_0x1a2add(0x121)](_0x1523d9)&&_0x1523d9[_0x1a2add(0x125)]>0x0&&(_0x25d304[_0x1a2add(0xe0)]=_0x1523d9),_0x25d304;}function parseJsonMaybe(_0x528193){const _0x4ff28c=a45_0x2642;if(typeof _0x528193!==_0x4ff28c(0x103))return _0x528193;try{return JSON[_0x4ff28c(0x109)](_0x528193);}catch{return _0x528193;}}function a45_0x2642(_0xa5f4e2,_0x3c62c3){_0xa5f4e2=_0xa5f4e2-0xd8;const _0xd2af6c=a45_0xd2af();let _0x26423d=_0xd2af6c[_0xa5f4e2];return _0x26423d;}function normalizeOperationEntry(_0x5b88f9,_0x2a7b83){const _0x5e31c8=a45_0x2642;if(!_0x2a7b83||typeof _0x2a7b83!==_0x5e31c8(0xfa))return null;if(!_0x2a7b83[_0x5e31c8(0xe5)]||!_0x2a7b83[_0x5e31c8(0x118)])return null;const _0x3725b4={'name':_0x5b88f9,'method':_0x2a7b83[_0x5e31c8(0xe5)],'path':_0x2a7b83[_0x5e31c8(0x118)]};if(_0x2a7b83['host'])_0x3725b4[_0x5e31c8(0x100)]=_0x2a7b83[_0x5e31c8(0x100)];if(_0x2a7b83[_0x5e31c8(0xf0)]!=null){const _0x29065d=parseJsonMaybe(_0x2a7b83[_0x5e31c8(0xf0)]);_0x3725b4[_0x5e31c8(0xf0)]=_0x29065d;}if(_0x2a7b83[_0x5e31c8(0xed)]!=null){const _0x27d802=parseJsonMaybe(_0x2a7b83['responseBody']);_0x3725b4['responseBody']=_0x27d802;}if(_0x2a7b83[_0x5e31c8(0x108)]!=null)_0x3725b4[_0x5e31c8(0x108)]=_0x2a7b83[_0x5e31c8(0x108)];if(_0x2a7b83[_0x5e31c8(0xe9)]!=null)_0x3725b4['afterScriptId']=_0x2a7b83[_0x5e31c8(0xe9)];if(Array['isArray'](_0x2a7b83[_0x5e31c8(0xfc)]))_0x3725b4['requestFields']=_0x2a7b83[_0x5e31c8(0xfc)];if(Array[_0x5e31c8(0x121)](_0x2a7b83[_0x5e31c8(0xdc)]))_0x3725b4['responseFields']=_0x2a7b83[_0x5e31c8(0xdc)];return _0x3725b4;}function summarizeDbtable(_0x3adb53){const _0x5abf88=a45_0x2642,_0x48f919={},_0x4c3033=[_0x5abf88(0xe6),'dbName',_0x5abf88(0xef),_0x5abf88(0x115),_0x5abf88(0x107),_0x5abf88(0xfb),_0x5abf88(0x126),_0x5abf88(0x111),_0x5abf88(0xf2),_0x5abf88(0xe8),_0x5abf88(0xe4),_0x5abf88(0x11f),_0x5abf88(0xf8),_0x5abf88(0x10f),_0x5abf88(0x10d)];for(const _0x221e77 of _0x4c3033){if(_0x3adb53[_0x221e77]!==undefined)_0x48f919[_0x221e77]=_0x3adb53[_0x221e77];}return typeof _0x48f919[_0x5abf88(0xfb)]===_0x5abf88(0x103)&&_0x48f919[_0x5abf88(0xfb)]['length']>0x0&&(_0x48f919[_0x5abf88(0xff)]=_0x48f919[_0x5abf88(0xfb)][_0x5abf88(0x124)](',')[_0x5abf88(0x112)](_0x8ba7e1=>_0x8ba7e1['trim']())[_0x5abf88(0x10e)](Boolean)),_0x48f919;}function normalizeRelatedPages(_0x5531f4){const _0x2206fa=a45_0x2642;if(!Array[_0x2206fa(0x121)](_0x5531f4))return[];return _0x5531f4['filter'](_0x5a6078=>_0x5a6078&&typeof _0x5a6078===_0x2206fa(0xfa))['map'](_0xd4b1c1=>({'id':_0xd4b1c1['id'],'type':_0xd4b1c1[_0x2206fa(0xda)],'code':_0xd4b1c1[_0x2206fa(0x10b)],'title':_0xd4b1c1['title'],'deleted':_0xd4b1c1[_0x2206fa(0xdd)]===!![]}));}export const datasetDetail={'service':'dataset','command':'detail','description':a45_0x236cba(0xf5),'risk':a45_0x236cba(0x11a),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a45_0x236cba(0x119),'type':a45_0x236cba(0x103),'description':a45_0x236cba(0x10a)}],async 'execute'(_0x10ccfe){const _0x529ff0=a45_0x236cba,_0x558f51=await getDatasetDetail(_0x10ccfe[_0x529ff0(0xd9)](_0x529ff0(0x10b))),_0x225651=Array[_0x529ff0(0x121)](_0x558f51[_0x529ff0(0x114)])?_0x558f51[_0x529ff0(0x114)]:Array[_0x529ff0(0x121)](_0x558f51['properties'])?_0x558f51[_0x529ff0(0xfe)]:[],_0x109898=_0x225651[_0x529ff0(0x112)](_0x1926d8=>normalizeField(_0x1926d8))[_0x529ff0(0x10e)](_0x1015de=>_0x1015de!==null),_0x2f2c6e=_0x558f51[_0x529ff0(0x120)]??{},_0x3371fb=[];for(const [_0x1a4fb9,_0x795f08]of Object[_0x529ff0(0x10c)](_0x2f2c6e)){const _0x58b1da=normalizeOperationEntry(_0x1a4fb9,_0x795f08);if(_0x58b1da)_0x3371fb[_0x529ff0(0x116)](_0x58b1da);}const _0x543335=_0x558f51['dbtableConfig']??{},_0x1f982d=_0x558f51[_0x529ff0(0xfd)]??{},_0x1779e9=_0x543335[_0x529ff0(0xe6)]!=null?{'id':_0x543335[_0x529ff0(0xe6)],'name':_0x543335['dbName']??null}:undefined;let _0x7fec80;return typeof _0x558f51[_0x529ff0(0x11c)]==='string'&&(_0x7fec80=parseJsonMaybe(_0x558f51[_0x529ff0(0x11c)])),{'ok':!![],'data':{'id':_0x558f51[_0x529ff0(0xee)]??_0x558f51['id'],'name':_0x558f51['name'],'code':_0x558f51['modelCode']||_0x558f51[_0x529ff0(0x10b)],'doVersion':_0x558f51[_0x529ff0(0x104)],'description':_0x558f51[_0x529ff0(0xdf)]||_0x1f982d[_0x529ff0(0x123)]||undefined,'source':_0x558f51[_0x529ff0(0x122)]||_0x1f982d['sourceType'],'table':_0x543335[_0x529ff0(0xef)]||_0x1f982d[_0x529ff0(0xef)],'datasetKey':_0x543335[_0x529ff0(0x115)],'pk':_0x543335[_0x529ff0(0x107)],'db':_0x1779e9,'dbtable':summarizeDbtable(_0x543335),'fields':_0x109898,'operations':_0x3371fb,'indexes':Array[_0x529ff0(0x121)](_0x1f982d[_0x529ff0(0x11e)])?_0x1f982d[_0x529ff0(0x11e)]:[],'relations':Array[_0x529ff0(0x121)](_0x558f51[_0x529ff0(0xe3)])?_0x558f51[_0x529ff0(0xe3)][_0x529ff0(0x112)](_0x5058ab=>({'fromField':_0x5058ab[_0x529ff0(0xdb)],'toDataset':_0x5058ab[_0x529ff0(0x11d)],'toCode':_0x5058ab[_0x529ff0(0xf7)],'toTable':_0x5058ab[_0x529ff0(0x113)],'toField':_0x5058ab[_0x529ff0(0xf1)],'labelField':_0x5058ab[_0x529ff0(0xf6)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x558f51[_0x529ff0(0x117)]),...Array['isArray'](_0x558f51[_0x529ff0(0xe7)])?{'columnCodeListWithDeleted':_0x558f51['columnCodeListWithDeleted']}:{},'formatRules':Array[_0x529ff0(0x121)](_0x558f51['formatRules'])?_0x558f51[_0x529ff0(0xec)]:[],'validateRules':Array[_0x529ff0(0x121)](_0x558f51['validateRules'])?_0x558f51[_0x529ff0(0x101)]:[],..._0x7fec80!==undefined?{'extend':_0x7fec80}:{},'stats':{'fieldCount':_0x109898['length'],'operationCount':_0x3371fb[_0x529ff0(0x125)]}}};}};
1
+ const a45_0x2b6e9f=a45_0x4d25;(function(_0x535361,_0x54fbd7){const _0x3bf739=a45_0x4d25,_0x3b5f95=_0x535361();while(!![]){try{const _0x304472=parseInt(_0x3bf739(0x123))/0x1+parseInt(_0x3bf739(0x114))/0x2*(parseInt(_0x3bf739(0x10e))/0x3)+parseInt(_0x3bf739(0x140))/0x4*(-parseInt(_0x3bf739(0x129))/0x5)+-parseInt(_0x3bf739(0x137))/0x6*(-parseInt(_0x3bf739(0x10c))/0x7)+parseInt(_0x3bf739(0x14c))/0x8+parseInt(_0x3bf739(0x116))/0x9*(-parseInt(_0x3bf739(0x135))/0xa)+parseInt(_0x3bf739(0x10b))/0xb*(-parseInt(_0x3bf739(0x110))/0xc);if(_0x304472===_0x54fbd7)break;else _0x3b5f95['push'](_0x3b5f95['shift']());}catch(_0x2f4379){_0x3b5f95['push'](_0x3b5f95['shift']());}}}(a45_0x3bcb,0xd8174));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x19b6fa){const _0xa9e1d5=a45_0x4d25;if(_0x19b6fa['deleted'])return null;const _0x2469f2=Boolean(_0x19b6fa['displayName']!==undefined||_0x19b6fa[_0xa9e1d5(0x13a)]!==undefined);let _0x17f6fd={};if(!_0x2469f2&&typeof _0x19b6fa[_0xa9e1d5(0x147)]===_0xa9e1d5(0x11e))try{_0x17f6fd=JSON[_0xa9e1d5(0x156)](_0x19b6fa['extend']);}catch{}const _0x24df90=_0x2469f2?_0x19b6fa['name']:_0x19b6fa[_0xa9e1d5(0x13d)],_0x1d5dbb=_0x2469f2?_0x19b6fa[_0xa9e1d5(0x112)]:_0x19b6fa[_0xa9e1d5(0x143)],_0x3cb341=_0x2469f2?_0x19b6fa[_0xa9e1d5(0x13a)]:_0x19b6fa[_0xa9e1d5(0x14d)]||_0x19b6fa[_0xa9e1d5(0x122)],_0x10bc00=_0x2469f2?_0x19b6fa[_0xa9e1d5(0x10f)]===!![]:_0x17f6fd[_0xa9e1d5(0x10f)]===!![],_0x1c516c=_0x2469f2?_0x19b6fa[_0xa9e1d5(0x11d)]===!![]:_0x17f6fd[_0xa9e1d5(0x11d)]===!![],_0x47e440=_0x2469f2?_0x19b6fa[_0xa9e1d5(0x150)]??null:_0x17f6fd['options']??null,_0x48c299={'name':_0x24df90,'displayName':_0x1d5dbb||_0x24df90,'type':_0x3cb341,'dbType':_0x19b6fa[_0xa9e1d5(0x130)],'pk':_0x10bc00,'required':_0x1c516c,'description':_0x19b6fa['description']||undefined};return Array['isArray'](_0x47e440)&&_0x47e440[_0xa9e1d5(0x142)]>0x0&&(_0x48c299['options']=_0x47e440),_0x48c299;}function a45_0x4d25(_0xe48ec5,_0x59dbdc){_0xe48ec5=_0xe48ec5-0x10b;const _0x3bcbd6=a45_0x3bcb();let _0x4d25f5=_0x3bcbd6[_0xe48ec5];return _0x4d25f5;}function parseJsonMaybe(_0x494f38){const _0x3f2bbf=a45_0x4d25;if(typeof _0x494f38!==_0x3f2bbf(0x11e))return _0x494f38;try{return JSON[_0x3f2bbf(0x156)](_0x494f38);}catch{return _0x494f38;}}function normalizeOperationEntry(_0x3099f9,_0x1ef598){const _0x45ca0d=a45_0x4d25;if(!_0x1ef598||typeof _0x1ef598!=='object')return null;if(!_0x1ef598[_0x45ca0d(0x12c)]||!_0x1ef598[_0x45ca0d(0x13e)])return null;const _0x11c014={'name':_0x3099f9,'method':_0x1ef598[_0x45ca0d(0x12c)],'path':_0x1ef598['path']};if(_0x1ef598['host'])_0x11c014['host']=_0x1ef598[_0x45ca0d(0x144)];if(_0x1ef598[_0x45ca0d(0x128)]!=null){const _0x9befc=parseJsonMaybe(_0x1ef598[_0x45ca0d(0x128)]);_0x11c014['requestBody']=_0x9befc;}if(_0x1ef598[_0x45ca0d(0x121)]!=null){const _0x78cc6f=parseJsonMaybe(_0x1ef598[_0x45ca0d(0x121)]);_0x11c014[_0x45ca0d(0x121)]=_0x78cc6f;}if(_0x1ef598[_0x45ca0d(0x127)]!=null)_0x11c014[_0x45ca0d(0x127)]=_0x1ef598[_0x45ca0d(0x127)];if(_0x1ef598[_0x45ca0d(0x139)]!=null)_0x11c014[_0x45ca0d(0x139)]=_0x1ef598[_0x45ca0d(0x139)];if(Array[_0x45ca0d(0x126)](_0x1ef598[_0x45ca0d(0x119)]))_0x11c014[_0x45ca0d(0x119)]=_0x1ef598['requestFields'];if(Array['isArray'](_0x1ef598[_0x45ca0d(0x14e)]))_0x11c014[_0x45ca0d(0x14e)]=_0x1ef598[_0x45ca0d(0x14e)];return _0x11c014;}function a45_0x3bcb(){const _0x2dd0ed=['toDatasetName','12WbENVe','dblinkInfoDTO','length','name','host','doVersion','read','extend','tableName','entries','datasetKey','split','5521808kPqMcl','type','responseFields','formatRules','options','dbtableConfig','source','toDatasetCode','validateRules','indexes','parse','relations','13399353aeGHoS','3627449WHNFiN','fromField','3oJSyfO','pkField','12YNTTLq','alias','displayName','creatorNameField','2792492kOoPCd','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','100755lJLLij','title','allFields','requestFields','fields','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','modelId','required','string','map','createTimeField','responseBody','dataType','435574gweVyf','toFieldLabel','filter','isArray','beforeScriptId','requestBody','988690YwSWTb','sourceType','updateTimeField','method','creatorIdField','trim','columnCodeListWithDeleted','dbType','dataset','labelField','dbName','properties','770CJGcgM','push','12SmXoSf','dbId','afterScriptId','doType','logicField','modifierIdField','code','path'];a45_0x3bcb=function(){return _0x2dd0ed;};return a45_0x3bcb();}function summarizeDbtable(_0x68ab7){const _0x31ef5e=a45_0x4d25,_0xc23fd5={},_0x4de0c1=[_0x31ef5e(0x138),'dbName','tableName',_0x31ef5e(0x14a),'pkField','allFields',_0x31ef5e(0x13b),_0x31ef5e(0x120),_0x31ef5e(0x12b),_0x31ef5e(0x12d),_0x31ef5e(0x113),_0x31ef5e(0x13c),'modifierNameField',_0x31ef5e(0x132),_0x31ef5e(0x141)];for(const _0x13946f of _0x4de0c1){if(_0x68ab7[_0x13946f]!==undefined)_0xc23fd5[_0x13946f]=_0x68ab7[_0x13946f];}return typeof _0xc23fd5[_0x31ef5e(0x118)]==='string'&&_0xc23fd5[_0x31ef5e(0x118)]['length']>0x0&&(_0xc23fd5['allFieldNames']=_0xc23fd5[_0x31ef5e(0x118)][_0x31ef5e(0x14b)](',')[_0x31ef5e(0x11f)](_0xb608b1=>_0xb608b1[_0x31ef5e(0x12e)]())[_0x31ef5e(0x125)](Boolean)),_0xc23fd5;}function normalizeRelatedPages(_0x1f8289){const _0xb90ea7=a45_0x4d25;if(!Array[_0xb90ea7(0x126)](_0x1f8289))return[];return _0x1f8289[_0xb90ea7(0x125)](_0x5b0a3c=>_0x5b0a3c&&typeof _0x5b0a3c==='object')[_0xb90ea7(0x11f)](_0x1a51f3=>({'id':_0x1a51f3['id'],'type':_0x1a51f3[_0xb90ea7(0x14d)],'code':_0x1a51f3[_0xb90ea7(0x13d)],'title':_0x1a51f3[_0xb90ea7(0x117)],'deleted':_0x1a51f3['deleted']===!![]}));}export const datasetDetail={'service':a45_0x2b6e9f(0x131),'command':'detail','description':a45_0x2b6e9f(0x11b),'risk':a45_0x2b6e9f(0x146),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a45_0x2b6e9f(0x111),'type':a45_0x2b6e9f(0x11e),'description':a45_0x2b6e9f(0x115)}],async 'execute'(_0x3bca06){const _0x8a475c=a45_0x2b6e9f,_0x4fc8b3=await getDatasetDetail(_0x3bca06['str']('code')),_0x9edfaa=Array[_0x8a475c(0x126)](_0x4fc8b3[_0x8a475c(0x11a)])?_0x4fc8b3[_0x8a475c(0x11a)]:Array[_0x8a475c(0x126)](_0x4fc8b3['properties'])?_0x4fc8b3[_0x8a475c(0x134)]:[],_0x1026d8=_0x9edfaa[_0x8a475c(0x11f)](_0x3ed6ba=>normalizeField(_0x3ed6ba))[_0x8a475c(0x125)](_0xea52b7=>_0xea52b7!==null),_0x5db617=_0x4fc8b3['operations']??{},_0xbeece7=[];for(const [_0x5459b9,_0x1a3f10]of Object[_0x8a475c(0x149)](_0x5db617)){const _0x5514b7=normalizeOperationEntry(_0x5459b9,_0x1a3f10);if(_0x5514b7)_0xbeece7[_0x8a475c(0x136)](_0x5514b7);}const _0x517645=_0x4fc8b3[_0x8a475c(0x151)]??{},_0x4c160f=_0x4fc8b3[_0x8a475c(0x131)]??{},_0x1695c5=_0x517645['dbId']!=null?{'id':_0x517645[_0x8a475c(0x138)],'name':_0x517645[_0x8a475c(0x133)]??null}:undefined;let _0x489950;return typeof _0x4fc8b3[_0x8a475c(0x147)]==='string'&&(_0x489950=parseJsonMaybe(_0x4fc8b3[_0x8a475c(0x147)])),{'ok':!![],'data':{'id':_0x4fc8b3[_0x8a475c(0x11c)]??_0x4fc8b3['id'],'name':_0x4fc8b3[_0x8a475c(0x143)],'code':_0x4fc8b3['modelCode']||_0x4fc8b3[_0x8a475c(0x13d)],'doVersion':_0x4fc8b3[_0x8a475c(0x145)],'description':_0x4fc8b3['description']||_0x4c160f['tableComment']||undefined,'source':_0x4fc8b3[_0x8a475c(0x152)]||_0x4c160f[_0x8a475c(0x12a)],'table':_0x517645[_0x8a475c(0x148)]||_0x4c160f['tableName'],'datasetKey':_0x517645[_0x8a475c(0x14a)],'pk':_0x517645[_0x8a475c(0x10f)],'db':_0x1695c5,'dbtable':summarizeDbtable(_0x517645),'fields':_0x1026d8,'operations':_0xbeece7,'indexes':Array[_0x8a475c(0x126)](_0x4c160f[_0x8a475c(0x155)])?_0x4c160f[_0x8a475c(0x155)]:[],'relations':Array[_0x8a475c(0x126)](_0x4fc8b3[_0x8a475c(0x157)])?_0x4fc8b3[_0x8a475c(0x157)][_0x8a475c(0x11f)](_0x190697=>({'fromField':_0x190697[_0x8a475c(0x10d)],'toDataset':_0x190697[_0x8a475c(0x13f)],'toCode':_0x190697[_0x8a475c(0x153)],'toTable':_0x190697['toTableName'],'toField':_0x190697['toField'],'labelField':_0x190697[_0x8a475c(0x124)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x4fc8b3['relatedPageInfoList']),...Array['isArray'](_0x4fc8b3[_0x8a475c(0x12f)])?{'columnCodeListWithDeleted':_0x4fc8b3['columnCodeListWithDeleted']}:{},'formatRules':Array['isArray'](_0x4fc8b3[_0x8a475c(0x14f)])?_0x4fc8b3[_0x8a475c(0x14f)]:[],'validateRules':Array[_0x8a475c(0x126)](_0x4fc8b3[_0x8a475c(0x154)])?_0x4fc8b3[_0x8a475c(0x154)]:[],..._0x489950!==undefined?{'extend':_0x489950}:{},'stats':{'fieldCount':_0x1026d8[_0x8a475c(0x142)],'operationCount':_0xbeece7[_0x8a475c(0x142)]}}};}};
@@ -1 +1 @@
1
- (function(_0x1f33d1,_0x10c35c){const _0x1f5e16=a46_0x5204,_0x9a3100=_0x1f33d1();while(!![]){try{const _0x13932a=-parseInt(_0x1f5e16(0x165))/0x1*(parseInt(_0x1f5e16(0x168))/0x2)+parseInt(_0x1f5e16(0x169))/0x3*(-parseInt(_0x1f5e16(0x162))/0x4)+-parseInt(_0x1f5e16(0x163))/0x5+parseInt(_0x1f5e16(0x167))/0x6*(-parseInt(_0x1f5e16(0x161))/0x7)+parseInt(_0x1f5e16(0x160))/0x8+parseInt(_0x1f5e16(0x164))/0x9*(parseInt(_0x1f5e16(0x166))/0xa)+parseInt(_0x1f5e16(0x15f))/0xb;if(_0x13932a===_0x10c35c)break;else _0x9a3100['push'](_0x9a3100['shift']());}catch(_0x17f946){_0x9a3100['push'](_0x9a3100['shift']());}}}(a46_0x1c0a,0xd4649));import{datasetList}from'../../commands/dataset/list.js';function a46_0x1c0a(){const _0x1b837e=['4490500fgLgiV','509283zPkgZg','53AFtbqQ','20gfxOwL','6bNETIG','14198yUkeFO','989313OJsaqC','35279607Qdvdyn','4580008CQVwZh','7623434GvirmD','8MjfDeC'];a46_0x1c0a=function(){return _0x1b837e;};return a46_0x1c0a();}import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetOperations}from'../../commands/dataset/operations.js';import{datasetLinks}from'../../commands/dataset/links.js';function a46_0x5204(_0x35b5ac,_0x4d1cd7){_0x35b5ac=_0x35b5ac-0x15f;const _0x1c0afc=a46_0x1c0a();let _0x5204cb=_0x1c0afc[_0x35b5ac];return _0x5204cb;}export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
1
+ (function(_0x566d9a,_0x57d805){const _0x1482b4=a46_0x3d2a,_0x438180=_0x566d9a();while(!![]){try{const _0x2a2449=parseInt(_0x1482b4(0x18b))/0x1+-parseInt(_0x1482b4(0x18e))/0x2*(parseInt(_0x1482b4(0x189))/0x3)+parseInt(_0x1482b4(0x18d))/0x4*(-parseInt(_0x1482b4(0x18c))/0x5)+-parseInt(_0x1482b4(0x186))/0x6+-parseInt(_0x1482b4(0x188))/0x7+-parseInt(_0x1482b4(0x187))/0x8*(parseInt(_0x1482b4(0x18a))/0x9)+parseInt(_0x1482b4(0x18f))/0xa;if(_0x2a2449===_0x57d805)break;else _0x438180['push'](_0x438180['shift']());}catch(_0x2b2ada){_0x438180['push'](_0x438180['shift']());}}}(a46_0x5edc,0xab86e));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a46_0x3d2a(_0xe23b27,_0x1fee29){_0xe23b27=_0xe23b27-0x186;const _0x5edcbc=a46_0x5edc();let _0x3d2a42=_0x5edcbc[_0xe23b27];return _0x3d2a42;}function a46_0x5edc(){const _0x4fa2af=['5444579wCnAYe','33WCSSGY','171mwrgKp','1087177uMYrmb','10GkFHRW','2758744QbePcT','70412QJOKaK','39279240CqSkdk','2635164jtQXNL','559536UriHnH'];a46_0x5edc=function(){return _0x4fa2af;};return a46_0x5edc();}import{datasetOperations}from'../../commands/dataset/operations.js';import{datasetLinks}from'../../commands/dataset/links.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
@@ -1 +1 @@
1
- const a47_0x2e7222=a47_0x263a;function a47_0x263a(_0x57f6d5,_0x2651ba){_0x57f6d5=_0x57f6d5-0x189;const _0xe216f5=a47_0xe216();let _0x263ab4=_0xe216f5[_0x57f6d5];return _0x263ab4;}(function(_0x45bfc7,_0x587e0a){const _0x5594ab=a47_0x263a,_0x585926=_0x45bfc7();while(!![]){try{const _0xf3867e=parseInt(_0x5594ab(0x195))/0x1*(-parseInt(_0x5594ab(0x18c))/0x2)+parseInt(_0x5594ab(0x194))/0x3+-parseInt(_0x5594ab(0x1b7))/0x4*(parseInt(_0x5594ab(0x1ba))/0x5)+-parseInt(_0x5594ab(0x1a5))/0x6+parseInt(_0x5594ab(0x18f))/0x7*(parseInt(_0x5594ab(0x1ae))/0x8)+-parseInt(_0x5594ab(0x1a3))/0x9+parseInt(_0x5594ab(0x1b1))/0xa;if(_0xf3867e===_0x587e0a)break;else _0x585926['push'](_0x585926['shift']());}catch(_0x11e96c){_0x585926['push'](_0x585926['shift']());}}}(a47_0xe216,0x3905b));import{getErConfig}from'../../core/api-client.js';import{resolveDb}from'../../core/db-resolver.js';function a47_0xe216(){const _0x890d5a=['dbId','filter','reduce','Return\x20full\x20raw\x20ER\x20response\x20from\x20API','relationCount','meta','toField','datasets','2aLMSlg','string','tableComment','21077LMUASD','map','dataset','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','fields','1241094vpnsNb','121859MbzfWS','dbType','length','boolean','links','LEFT','read','name','\x20database(s),\x20','toDataset','bool','all','\x20database(s)','Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20','1669500xFxmuk','isPrimaryKey','217980fjVzPP','\x20relation(s)','Link\x20graph:\x20','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','tableName','fromField','\x20dataset(s),\x20','Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20','dbName','8jHNHyh','verbose','relations','5875350bBZTQv','displayName','datasetId','appCode','stats','isForeignKey','1707968oPwUqr','Fetched\x20link\x20graph\x20for\x20','toDatasetName','5eIygfv'];a47_0xe216=function(){return _0x890d5a;};return a47_0xe216();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetLinks={'service':a47_0x2e7222(0x191),'command':a47_0x2e7222(0x199),'description':a47_0x2e7222(0x1a8)+a47_0x2e7222(0x1ac)+a47_0x2e7222(0x192),'risk':a47_0x2e7222(0x19b),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':a47_0x2e7222(0x18d),'description':a47_0x2e7222(0x1a2)+'Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.'},{'name':a47_0x2e7222(0x1af),'type':a47_0x2e7222(0x198),'description':a47_0x2e7222(0x1be)}],async 'execute'(_0x2e9679){const _0x9c276b=a47_0x2e7222,_0x368c7f=_0x2e9679[_0x9c276b(0x19f)](_0x9c276b(0x1af)),{resolved:_0x91b56b,error:_0x16bb31}=await resolveDb(_0x2e9679['appCode'],_0x2e9679['str']('db')||undefined);if(_0x16bb31)return{'ok':![],'message':_0x16bb31};const _0x213253=_0x91b56b[_0x9c276b(0x190)](_0x4013ed=>_0x4013ed[_0x9c276b(0x1bb)]),_0xa47034=await Promise[_0x9c276b(0x1a0)](_0x213253['map'](_0x267ebc=>getErConfig(_0x2e9679[_0x9c276b(0x1b4)],_0x267ebc)));if(_0x368c7f)return{'ok':!![],'data':_0xa47034[_0x9c276b(0x197)]===0x1?_0xa47034[0x0]:_0xa47034,'message':_0x9c276b(0x1b8)+_0x213253[_0x9c276b(0x197)]+_0x9c276b(0x1a1)};const _0x41455b=_0xa47034[_0x9c276b(0x190)](_0x1bd7c1=>{const _0x5002bd=_0x9c276b,_0x19a189=(_0x1bd7c1[_0x5002bd(0x18b)]??[])[_0x5002bd(0x190)](_0x5d7805=>{const _0x32fc80=_0x5002bd,_0x24eef9=_0x5d7805[_0x32fc80(0x193)]?.[_0x32fc80(0x1bc)](_0x12eeef=>_0x12eeef['isPrimaryKey'])[_0x32fc80(0x190)](_0x19dac7=>_0x19dac7[_0x32fc80(0x19c)])??[],_0x2bc55e=_0x5d7805['fields']?.[_0x32fc80(0x1bc)](_0x1d1b04=>_0x1d1b04[_0x32fc80(0x1b6)])[_0x32fc80(0x190)](_0x36045e=>_0x36045e[_0x32fc80(0x19c)])??[];return{'id':_0x5d7805[_0x32fc80(0x1b3)],'name':_0x5d7805['datasetName'],'code':_0x5d7805['datasetCode'],'table':_0x5d7805[_0x32fc80(0x1a9)],'comment':_0x5d7805[_0x32fc80(0x18e)]||undefined,'fields':(_0x5d7805[_0x32fc80(0x193)]??[])['map'](_0x22caaa=>({'name':_0x22caaa[_0x32fc80(0x19c)],'displayName':_0x22caaa[_0x32fc80(0x1b2)],'type':_0x22caaa[_0x32fc80(0x196)],'pk':_0x22caaa[_0x32fc80(0x1a4)],'fk':_0x22caaa['isForeignKey']})),'relations':(_0x5d7805[_0x32fc80(0x1b0)]??[])[_0x32fc80(0x1bc)](_0x168e33=>_0x168e33[_0x32fc80(0x1aa)]&&_0x168e33[_0x32fc80(0x19e)])[_0x32fc80(0x190)](_0x44682f=>({'from':_0x44682f[_0x32fc80(0x1aa)],'toDataset':_0x44682f[_0x32fc80(0x1b9)],'toCode':_0x44682f['toDataset'],'toField':_0x44682f[_0x32fc80(0x18a)],'joinType':_0x44682f['joinType']||_0x32fc80(0x19a)})),'stats':{'fieldCount':_0x5d7805[_0x32fc80(0x193)]?.[_0x32fc80(0x197)]??0x0,'pkCount':_0x24eef9[_0x32fc80(0x197)],'fkCount':_0x2bc55e[_0x32fc80(0x197)],'relationCount':_0x5d7805['relations']?.[_0x32fc80(0x197)]??0x0}};}),_0x41190b=_0x19a189[_0x5002bd(0x1bc)](_0x525665=>_0x525665[_0x5002bd(0x1b5)][_0x5002bd(0x1bf)]>0x0)[_0x5002bd(0x190)](_0xac1495=>_0xac1495['name']);return{'db':_0x1bd7c1['meta']?.[_0x5002bd(0x1ad)],'dbId':_0x1bd7c1[_0x5002bd(0x189)]?.[_0x5002bd(0x1bb)],'appCode':_0x1bd7c1[_0x5002bd(0x189)]?.[_0x5002bd(0x1b4)],'datasetCount':_0x19a189[_0x5002bd(0x197)],'connectedDatasets':_0x41190b,'datasets':_0x19a189};}),_0x5bffa5=_0x41455b[_0x9c276b(0x1bd)]((_0x3b007c,_0x53ee1c)=>_0x3b007c+_0x53ee1c['datasetCount'],0x0),_0x279e40=_0x41455b[_0x9c276b(0x1bd)]((_0x51a0d4,_0x1073d5)=>_0x51a0d4+_0x1073d5[_0x9c276b(0x18b)]['reduce']((_0x2885fa,_0xca560e)=>_0x2885fa+_0xca560e[_0x9c276b(0x1b5)][_0x9c276b(0x1bf)],0x0),0x0);return{'ok':!![],'data':_0x41455b['length']===0x1?_0x41455b[0x0]:{'databases':_0x41455b},'message':_0x9c276b(0x1a7)+_0x41455b[_0x9c276b(0x197)]+_0x9c276b(0x19d)+_0x5bffa5+_0x9c276b(0x1ab)+_0x279e40+_0x9c276b(0x1a6)};}};
1
+ const a47_0x46d3e6=a47_0x4a2d;function a47_0x4a2d(_0x4e0700,_0x122084){_0x4e0700=_0x4e0700-0x106;const _0xaf1365=a47_0xaf13();let _0x4a2da6=_0xaf1365[_0x4e0700];return _0x4a2da6;}(function(_0x23a9b7,_0x2a6fdf){const _0x455f77=a47_0x4a2d,_0x1992b5=_0x23a9b7();while(!![]){try{const _0x25f0cd=parseInt(_0x455f77(0x136))/0x1*(parseInt(_0x455f77(0x109))/0x2)+-parseInt(_0x455f77(0x10f))/0x3*(parseInt(_0x455f77(0x122))/0x4)+-parseInt(_0x455f77(0x116))/0x5+-parseInt(_0x455f77(0x11c))/0x6+parseInt(_0x455f77(0x12c))/0x7+-parseInt(_0x455f77(0x10d))/0x8+-parseInt(_0x455f77(0x12b))/0x9;if(_0x25f0cd===_0x2a6fdf)break;else _0x1992b5['push'](_0x1992b5['shift']());}catch(_0x562007){_0x1992b5['push'](_0x1992b5['shift']());}}}(a47_0xaf13,0x3a733));function a47_0xaf13(){const _0x733d0=['datasetCount','1yMQpuD','toDataset','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','dbType','Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20','409468lbLpWl','\x20relation(s)','dbName','toDatasetName','545312GrlPcX','LEFT','15uDBjZr','boolean','map','filter','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','datasetName','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','608000wRPiqG','reduce','appCode','tableComment','\x20database(s)','fields','387540WAQNbo','relations','str','bool','relationCount','verbose','49916GYHbxf','name','displayName','fromField','stats','isPrimaryKey','\x20database(s),\x20','meta','length','743760LdPnvs','3038462tUvqQV','datasets','isForeignKey','joinType','dbId','datasetCode','string','dataset','all'];a47_0xaf13=function(){return _0x733d0;};return a47_0xaf13();}import{getErConfig}from'../../core/api-client.js';import{resolveDb}from'../../core/db-resolver.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetLinks={'service':a47_0x46d3e6(0x133),'command':'links','description':a47_0x46d3e6(0x113)+a47_0x46d3e6(0x108)+a47_0x46d3e6(0x115),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':a47_0x46d3e6(0x132),'description':'Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20'+a47_0x46d3e6(0x106)},{'name':'verbose','type':a47_0x46d3e6(0x110),'description':'Return\x20full\x20raw\x20ER\x20response\x20from\x20API'}],async 'execute'(_0xba49fb){const _0x68d7aa=a47_0x46d3e6,_0x492a19=_0xba49fb[_0x68d7aa(0x11f)](_0x68d7aa(0x121)),{resolved:_0x135a8d,error:_0x1397a3}=await resolveDb(_0xba49fb[_0x68d7aa(0x118)],_0xba49fb[_0x68d7aa(0x11e)]('db')||undefined);if(_0x1397a3)return{'ok':![],'message':_0x1397a3};const _0xa850e0=_0x135a8d[_0x68d7aa(0x111)](_0x5ebbd5=>_0x5ebbd5[_0x68d7aa(0x130)]),_0x380885=await Promise[_0x68d7aa(0x134)](_0xa850e0[_0x68d7aa(0x111)](_0x2eb245=>getErConfig(_0xba49fb[_0x68d7aa(0x118)],_0x2eb245)));if(_0x492a19)return{'ok':!![],'data':_0x380885['length']===0x1?_0x380885[0x0]:_0x380885,'message':'Fetched\x20link\x20graph\x20for\x20'+_0xa850e0['length']+_0x68d7aa(0x11a)};const _0x2d98e5=_0x380885[_0x68d7aa(0x111)](_0x2cc488=>{const _0x21b766=_0x68d7aa,_0x3a6d4a=(_0x2cc488[_0x21b766(0x12d)]??[])[_0x21b766(0x111)](_0x269821=>{const _0x169c69=_0x21b766,_0x415292=_0x269821['fields']?.[_0x169c69(0x112)](_0x246fe1=>_0x246fe1[_0x169c69(0x127)])[_0x169c69(0x111)](_0x4d288a=>_0x4d288a[_0x169c69(0x123)])??[],_0x5eaf80=_0x269821[_0x169c69(0x11b)]?.['filter'](_0x499dd4=>_0x499dd4[_0x169c69(0x12e)])['map'](_0x424a8f=>_0x424a8f[_0x169c69(0x123)])??[];return{'id':_0x269821['datasetId'],'name':_0x269821[_0x169c69(0x114)],'code':_0x269821[_0x169c69(0x131)],'table':_0x269821['tableName'],'comment':_0x269821[_0x169c69(0x119)]||undefined,'fields':(_0x269821[_0x169c69(0x11b)]??[])['map'](_0x41bee9=>({'name':_0x41bee9[_0x169c69(0x123)],'displayName':_0x41bee9[_0x169c69(0x124)],'type':_0x41bee9[_0x169c69(0x107)],'pk':_0x41bee9[_0x169c69(0x127)],'fk':_0x41bee9[_0x169c69(0x12e)]})),'relations':(_0x269821[_0x169c69(0x11d)]??[])[_0x169c69(0x112)](_0x3ca217=>_0x3ca217['fromField']&&_0x3ca217[_0x169c69(0x137)])[_0x169c69(0x111)](_0x57f6e4=>({'from':_0x57f6e4[_0x169c69(0x125)],'toDataset':_0x57f6e4[_0x169c69(0x10c)],'toCode':_0x57f6e4['toDataset'],'toField':_0x57f6e4['toField'],'joinType':_0x57f6e4[_0x169c69(0x12f)]||_0x169c69(0x10e)})),'stats':{'fieldCount':_0x269821[_0x169c69(0x11b)]?.['length']??0x0,'pkCount':_0x415292[_0x169c69(0x12a)],'fkCount':_0x5eaf80[_0x169c69(0x12a)],'relationCount':_0x269821['relations']?.[_0x169c69(0x12a)]??0x0}};}),_0x2b71b3=_0x3a6d4a[_0x21b766(0x112)](_0x1c0d72=>_0x1c0d72[_0x21b766(0x126)][_0x21b766(0x120)]>0x0)['map'](_0x3459b5=>_0x3459b5[_0x21b766(0x123)]);return{'db':_0x2cc488[_0x21b766(0x129)]?.[_0x21b766(0x10b)],'dbId':_0x2cc488[_0x21b766(0x129)]?.['dbId'],'appCode':_0x2cc488[_0x21b766(0x129)]?.[_0x21b766(0x118)],'datasetCount':_0x3a6d4a[_0x21b766(0x12a)],'connectedDatasets':_0x2b71b3,'datasets':_0x3a6d4a};}),_0x27df2a=_0x2d98e5[_0x68d7aa(0x117)]((_0x35e4e5,_0xb5be5d)=>_0x35e4e5+_0xb5be5d[_0x68d7aa(0x135)],0x0),_0x2809ff=_0x2d98e5[_0x68d7aa(0x117)]((_0x1216fe,_0x52c4d8)=>_0x1216fe+_0x52c4d8[_0x68d7aa(0x12d)]['reduce']((_0x3788f4,_0x4a0e36)=>_0x3788f4+_0x4a0e36[_0x68d7aa(0x126)][_0x68d7aa(0x120)],0x0),0x0);return{'ok':!![],'data':_0x2d98e5[_0x68d7aa(0x12a)]===0x1?_0x2d98e5[0x0]:{'databases':_0x2d98e5},'message':'Link\x20graph:\x20'+_0x2d98e5[_0x68d7aa(0x12a)]+_0x68d7aa(0x128)+_0x27df2a+'\x20dataset(s),\x20'+_0x2809ff+_0x68d7aa(0x10a)};}};
@@ -1 +1 @@
1
- const a48_0x2306de=a48_0x7e5c;function a48_0x224c(){const _0x239455=['map','tableName','description','length','split','trim','name','2pupzDs','Found\x20','appCode','pkField','665QfRnTn','list','1257093NQGTaN','str','7324rWtksn','4592832HAfMCr','code','75810KjutJy','\x20dataset(s)','13850DTzTAl','dataset','615744aFgeeE','19256424VjyfnX','datasetKey','string','dbtableConfig','3177CXPfSq','List\x20all\x20datasets\x20with\x20metadata','source','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','allFields','read','21KMXUlE'];a48_0x224c=function(){return _0x239455;};return a48_0x224c();}(function(_0x16b6c4,_0x519f13){const _0x139a90=a48_0x7e5c,_0x479727=_0x16b6c4();while(!![]){try{const _0x1d81e1=-parseInt(_0x139a90(0x82))/0x1+parseInt(_0x139a90(0x73))/0x2*(-parseInt(_0x139a90(0x79))/0x3)+-parseInt(_0x139a90(0x7b))/0x4*(parseInt(_0x139a90(0x77))/0x5)+parseInt(_0x139a90(0x7e))/0x6*(parseInt(_0x139a90(0x8d))/0x7)+-parseInt(_0x139a90(0x7c))/0x8+-parseInt(_0x139a90(0x87))/0x9*(-parseInt(_0x139a90(0x80))/0xa)+parseInt(_0x139a90(0x83))/0xb;if(_0x1d81e1===_0x519f13)break;else _0x479727['push'](_0x479727['shift']());}catch(_0x36ebc2){_0x479727['push'](_0x479727['shift']());}}}(a48_0x224c,0x67c20));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a48_0x7e5c(_0x29004f,_0x4f6b90){_0x29004f=_0x29004f-0x72;const _0x224c3a=a48_0x224c();let _0x7e5c4c=_0x224c3a[_0x29004f];return _0x7e5c4c;}export const datasetList={'service':a48_0x2306de(0x81),'command':a48_0x2306de(0x78),'description':a48_0x2306de(0x88),'risk':a48_0x2306de(0x8c),'flags':[{'name':a48_0x2306de(0x72),'type':a48_0x2306de(0x85),'description':a48_0x2306de(0x8a)},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL],async 'execute'(_0xe95b1b){const _0x9f6858=a48_0x2306de,_0x5b4528=_0xe95b1b[_0x9f6858(0x7a)](_0x9f6858(0x72)),_0x5210b8=_0xe95b1b['str'](_0x9f6858(0x7d)),_0x43eeb4=await listDatasets(_0xe95b1b[_0x9f6858(0x75)],{..._0x5b4528&&{'name':_0x5b4528},..._0x5210b8&&{'code':_0x5210b8}}),_0x3ba30a=_0x43eeb4[_0x9f6858(0x8e)](_0x204f92=>{const _0x35ff28=_0x9f6858,_0x20600e=_0x204f92[_0x35ff28(0x86)]??{};return{'id':_0x204f92['id'],'name':_0x204f92['name'],'code':_0x204f92[_0x35ff28(0x7d)],'description':_0x204f92[_0x35ff28(0x90)],'source':_0x204f92[_0x35ff28(0x89)],'db':_0x20600e['dbName'],'table':_0x20600e[_0x35ff28(0x8f)],'datasetKey':_0x20600e[_0x35ff28(0x84)],'pk':_0x20600e[_0x35ff28(0x76)],'fields':_0x20600e[_0x35ff28(0x8b)]?_0x20600e[_0x35ff28(0x8b)][_0x35ff28(0x92)](',')[_0x35ff28(0x8e)](_0x2cda21=>_0x2cda21[_0x35ff28(0x93)]()):[]};});return{'ok':!![],'data':{'total':_0x3ba30a[_0x9f6858(0x91)],'datasets':_0x3ba30a},'message':_0x9f6858(0x74)+_0x3ba30a[_0x9f6858(0x91)]+_0x9f6858(0x7f)};}};
1
+ function a48_0x2a57(_0x13f7fd,_0x5243cd){_0x13f7fd=_0x13f7fd-0x71;const _0x2c5ace=a48_0x2c5a();let _0x2a5759=_0x2c5ace[_0x13f7fd];return _0x2a5759;}const a48_0x5a2167=a48_0x2a57;(function(_0x159f42,_0x37c515){const _0x4e6e8e=a48_0x2a57,_0x2c7088=_0x159f42();while(!![]){try{const _0x26aa34=parseInt(_0x4e6e8e(0x83))/0x1*(-parseInt(_0x4e6e8e(0x8e))/0x2)+parseInt(_0x4e6e8e(0x80))/0x3+-parseInt(_0x4e6e8e(0x87))/0x4*(-parseInt(_0x4e6e8e(0x82))/0x5)+-parseInt(_0x4e6e8e(0x7e))/0x6*(-parseInt(_0x4e6e8e(0x73))/0x7)+-parseInt(_0x4e6e8e(0x8a))/0x8+-parseInt(_0x4e6e8e(0x7c))/0x9*(parseInt(_0x4e6e8e(0x7d))/0xa)+parseInt(_0x4e6e8e(0x85))/0xb;if(_0x26aa34===_0x37c515)break;else _0x2c7088['push'](_0x2c7088['shift']());}catch(_0x9f7c92){_0x2c7088['push'](_0x2c7088['shift']());}}}(a48_0x2c5a,0x43a4a));import{listDatasets}from'../../core/api-client.js';function a48_0x2c5a(){const _0x218cbf=['2565246umIIhk','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','257082rOwgDU','length','265EOyZEW','218599CoIrro','List\x20all\x20datasets\x20with\x20metadata','9731656UIQaSW','read','17980cnPpkO','tableName','dbtableConfig','4268920jdonJR','name','pkField','source','4NtGDCd','list','Found\x20','7CaCDMk','\x20dataset(s)','allFields','appCode','str','datasetKey','code','dataset','split','27lGleDg','1294290WmSEbJ'];a48_0x2c5a=function(){return _0x218cbf;};return a48_0x2c5a();}import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetList={'service':a48_0x5a2167(0x7a),'command':a48_0x5a2167(0x71),'description':a48_0x5a2167(0x84),'risk':a48_0x5a2167(0x86),'flags':[{'name':a48_0x5a2167(0x8b),'type':'string','description':a48_0x5a2167(0x7f)},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x19b1cc){const _0x1c9bfc=a48_0x5a2167,_0x3451ec=_0x19b1cc[_0x1c9bfc(0x77)]('name'),_0x9ad471=_0x19b1cc[_0x1c9bfc(0x77)](_0x1c9bfc(0x79)),_0x526450=await listDatasets(_0x19b1cc[_0x1c9bfc(0x76)],{..._0x3451ec&&{'name':_0x3451ec},..._0x9ad471&&{'code':_0x9ad471}}),_0x3853f2=_0x526450['map'](_0x1cc207=>{const _0x10b0f6=_0x1c9bfc,_0x4aca9a=_0x1cc207[_0x10b0f6(0x89)]??{};return{'id':_0x1cc207['id'],'name':_0x1cc207[_0x10b0f6(0x8b)],'code':_0x1cc207['code'],'description':_0x1cc207['description'],'source':_0x1cc207[_0x10b0f6(0x8d)],'db':_0x4aca9a['dbName'],'table':_0x4aca9a[_0x10b0f6(0x88)],'datasetKey':_0x4aca9a[_0x10b0f6(0x78)],'pk':_0x4aca9a[_0x10b0f6(0x8c)],'fields':_0x4aca9a[_0x10b0f6(0x75)]?_0x4aca9a[_0x10b0f6(0x75)][_0x10b0f6(0x7b)](',')['map'](_0x13fe2a=>_0x13fe2a['trim']()):[]};});return{'ok':!![],'data':{'total':_0x3853f2[_0x1c9bfc(0x81)],'datasets':_0x3853f2},'message':_0x1c9bfc(0x72)+_0x3853f2['length']+_0x1c9bfc(0x74)};}};
@@ -1 +1 @@
1
- function a49_0x50b0(){const _0x4adf8b=['length','496360ImlFHX','2631580ZQItdW','appCode','enabled','11098990ryrUnZ','displayName','alias','1150538uRZYJp','971552HvTKYa','operation','bool','read','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','5798616bHHxUz','method','dataset','1488495EwsgOj','boolean','type','name','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','str','verbose','string','Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation'];a49_0x50b0=function(){return _0x4adf8b;};return a49_0x50b0();}const a49_0x1cca18=a49_0x102b;(function(_0x9d21a0,_0x2319b0){const _0x2acdf6=a49_0x102b,_0x5cc205=_0x9d21a0();while(!![]){try{const _0x11a0ea=-parseInt(_0x2acdf6(0xe0))/0x1+parseInt(_0x2acdf6(0xe7))/0x2+-parseInt(_0x2acdf6(0xf0))/0x3+-parseInt(_0x2acdf6(0xe8))/0x4+parseInt(_0x2acdf6(0xe1))/0x5+-parseInt(_0x2acdf6(0xed))/0x6+parseInt(_0x2acdf6(0xe4))/0x7;if(_0x11a0ea===_0x2319b0)break;else _0x5cc205['push'](_0x5cc205['shift']());}catch(_0xd0506d){_0x5cc205['push'](_0x5cc205['shift']());}}}(a49_0x50b0,0x767ba));function a49_0x102b(_0x186874,_0x36e0ad){_0x186874=_0x186874-0xdf;const _0x50b004=a49_0x50b0();let _0x102b18=_0x50b004[_0x186874];return _0x102b18;}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_0x1cca18(0xef),'command':'operations','description':a49_0x1cca18(0xf8),'risk':a49_0x1cca18(0xeb),'flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a49_0x1cca18(0xe6),'type':a49_0x1cca18(0xf7),'description':a49_0x1cca18(0xec)},{'name':a49_0x1cca18(0xe9),'type':a49_0x1cca18(0xf7),'description':'Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)'},{'name':a49_0x1cca18(0xf6),'type':a49_0x1cca18(0xf1),'description':a49_0x1cca18(0xf4)}],async 'execute'(_0x3e6e89){const _0x5510c2=a49_0x1cca18,_0xca3fb0=_0x3e6e89[_0x5510c2(0xf5)]('code'),_0x47bfbb=_0x3e6e89[_0x5510c2(0xf5)]('operation'),_0x9be50=_0x3e6e89[_0x5510c2(0xea)](_0x5510c2(0xf6));if(_0x47bfbb){const {dataset:_0xa05a64,operation:_0x4c79fd}=await getOperationDetail(_0x3e6e89[_0x5510c2(0xe2)],_0xca3fb0,_0x47bfbb);return{'ok':!![],'data':{'dataset':_0xa05a64,'operation':_0x4c79fd}};}const {dataset:_0x12b89a,operations:_0x17f749}=await getDatasetOperations(_0xca3fb0);return{'ok':!![],'data':{'dataset':_0x12b89a,'total':_0x17f749[_0x5510c2(0xdf)],'operations':_0x9be50?_0x17f749:_0x17f749['map'](_0x2fc3f5=>({'name':_0x2fc3f5[_0x5510c2(0xf3)],'displayName':_0x2fc3f5[_0x5510c2(0xe5)],'type':_0x2fc3f5[_0x5510c2(0xf2)],'method':_0x2fc3f5[_0x5510c2(0xee)],'enabled':_0x2fc3f5[_0x5510c2(0xe3)]}))}};}};
1
+ const a49_0x3c9e23=a49_0x1ae4;(function(_0x5b4f36,_0x2c58c9){const _0x2999c7=a49_0x1ae4,_0x3ff9ab=_0x5b4f36();while(!![]){try{const _0x24084f=-parseInt(_0x2999c7(0x1e2))/0x1*(-parseInt(_0x2999c7(0x1d4))/0x2)+parseInt(_0x2999c7(0x1d7))/0x3*(-parseInt(_0x2999c7(0x1d0))/0x4)+parseInt(_0x2999c7(0x1e5))/0x5*(parseInt(_0x2999c7(0x1cd))/0x6)+-parseInt(_0x2999c7(0x1e3))/0x7*(-parseInt(_0x2999c7(0x1cf))/0x8)+-parseInt(_0x2999c7(0x1cb))/0x9*(parseInt(_0x2999c7(0x1d8))/0xa)+parseInt(_0x2999c7(0x1d9))/0xb*(parseInt(_0x2999c7(0x1e4))/0xc)+-parseInt(_0x2999c7(0x1de))/0xd*(parseInt(_0x2999c7(0x1dd))/0xe);if(_0x24084f===_0x2c58c9)break;else _0x3ff9ab['push'](_0x3ff9ab['shift']());}catch(_0x10a728){_0x3ff9ab['push'](_0x3ff9ab['shift']());}}}(a49_0x5ad8,0x96433));import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';function a49_0x1ae4(_0x481f82,_0x26ee0a){_0x481f82=_0x481f82-0x1cb;const _0x5ad849=a49_0x5ad8();let _0x1ae457=_0x5ad849[_0x481f82];return _0x1ae457;}function a49_0x5ad8(){const _0x22e792=['1335922HdKIbx','273HzNFHC','map','str','displayName','61IdMCeE','136388eNLOfW','12rgmIEZ','209675eFqkHe','code','alias','131850LigvWX','length','66KiqAYr','appCode','384MyBaDw','1649108nPqMiR','operations','verbose','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','36702okUWno','type','read','3zcAzkX','80JOgZLX','6961977QuNjAb','bool','Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)','name'];a49_0x5ad8=function(){return _0x22e792;};return a49_0x5ad8();}import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetOperations={'service':'dataset','command':a49_0x3c9e23(0x1d1),'description':'Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','risk':a49_0x3c9e23(0x1d6),'flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a49_0x3c9e23(0x1e7),'type':'string','description':a49_0x3c9e23(0x1d3)},{'name':'operation','type':'string','description':a49_0x3c9e23(0x1db)},{'name':a49_0x3c9e23(0x1d2),'type':'boolean','description':'Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields'}],async 'execute'(_0x498640){const _0x460daf=a49_0x3c9e23,_0x3e502d=_0x498640[_0x460daf(0x1e0)](_0x460daf(0x1e6)),_0x1fa282=_0x498640[_0x460daf(0x1e0)]('operation'),_0x36f30b=_0x498640[_0x460daf(0x1da)]('verbose');if(_0x1fa282){const {dataset:_0x521659,operation:_0x553a2c}=await getOperationDetail(_0x498640[_0x460daf(0x1ce)],_0x3e502d,_0x1fa282);return{'ok':!![],'data':{'dataset':_0x521659,'operation':_0x553a2c}};}const {dataset:_0x199925,operations:_0x173831}=await getDatasetOperations(_0x3e502d);return{'ok':!![],'data':{'dataset':_0x199925,'total':_0x173831[_0x460daf(0x1cc)],'operations':_0x36f30b?_0x173831:_0x173831[_0x460daf(0x1df)](_0x52c88e=>({'name':_0x52c88e[_0x460daf(0x1dc)],'displayName':_0x52c88e[_0x460daf(0x1e1)],'type':_0x52c88e[_0x460daf(0x1d5)],'method':_0x52c88e['method'],'enabled':_0x52c88e['enabled']}))}};}};
@@ -1 +1 @@
1
- const a50_0x1fa1e2=a50_0x1e66;(function(_0x27b728,_0x33ddb2){const _0x11df4b=a50_0x1e66,_0x528d54=_0x27b728();while(!![]){try{const _0x2d4120=parseInt(_0x11df4b(0xad))/0x1+-parseInt(_0x11df4b(0xe3))/0x2+parseInt(_0x11df4b(0xd9))/0x3*(-parseInt(_0x11df4b(0xc4))/0x4)+parseInt(_0x11df4b(0xd5))/0x5+parseInt(_0x11df4b(0xc2))/0x6+parseInt(_0x11df4b(0xdd))/0x7*(-parseInt(_0x11df4b(0xd0))/0x8)+parseInt(_0x11df4b(0xf3))/0x9;if(_0x2d4120===_0x33ddb2)break;else _0x528d54['push'](_0x528d54['shift']());}catch(_0x3d0f67){_0x528d54['push'](_0x528d54['shift']());}}}(a50_0x3132,0x4000d));import a50_0x373dc0 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_0x1e66(_0x161d5e,_0x4c1a89){_0x161d5e=_0x161d5e-0xa6;const _0x3132df=a50_0x3132();let _0x1e6653=_0x3132df[_0x161d5e];return _0x1e6653;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';function a50_0x3132(){const _0x39e807=['appcode','format','\x20\x20Auth','(set\x20via\x20file,\x20length=','explicitAppName','8sYioru','(inherit)','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20JSON','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1877410JrOQfT','(default:\x20pretty)','cookie','(set,\x20length=','17322KCStaQ','pageSize','red','(not\x20set)','1311751mCGVNG','env','read','arch','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','684856AvawWO','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Global','gray','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','repeat','unknown','(no\x20file)','appCode','verbose','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20','status','\x20\x20explicitAppName:\x20','✗\x20Expired','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','1666503EUqncN','version','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20API\x20Endpoints','\x20\x20Config\x20Files','apps','bold','\x20\x20\x20\x20appcode:\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','426878wmeBMW','\x20\x20Merged\x20Config','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20','message','\x20\x20Apps','doctor','green','(none)','\x20doctor','empty','apiDir','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','padEnd','check','length','Project','log','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','(set)','420330BKgEBt','riskLevel','184BNOqbi','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','slice','platform','\x20\x20─','(missing)','(not\x20found)'];a50_0x3132=function(){return _0x39e807;};return a50_0x3132();}async function execute(_0x4702ab){const _0x2f9411=a50_0x1e66,_0x1b57e7=GIT_COMMIT!==_0x2f9411(0xea)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x2f9411(0xc6)](0x0,0xa)+')':VERSION,_0x657555=buildConfigFromFlags({}),_0x4d3211=getCookie();console[_0x2f9411(0xbf)](),console[_0x2f9411(0xbf)](a50_0x373dc0[_0x2f9411(0xaa)](CLI_BIN_NAME+_0x2f9411(0xb6))),console[_0x2f9411(0xbf)](a50_0x373dc0[_0x2f9411(0xe7)]('─'[_0x2f9411(0xe9)](0x32))),console['log'](_0x2f9411(0xe8)+_0x1b57e7),console[_0x2f9411(0xbf)](_0x2f9411(0xaf)+process[_0x2f9411(0xf4)]),console[_0x2f9411(0xbf)](_0x2f9411(0xac)+process[_0x2f9411(0xc7)]+'\x20'+process[_0x2f9411(0xe0)]),console[_0x2f9411(0xbf)](),console[_0x2f9411(0xbf)](a50_0x373dc0[_0x2f9411(0xaa)](_0x2f9411(0xa8))),console['log'](a50_0x373dc0[_0x2f9411(0xe7)]('\x20\x20─'['repeat'](0x1e)));const _0x23f89f=getGlobalConfigPath(),_0x45ec63=getProjectConfigPath();console[_0x2f9411(0xbf)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x23f89f||a50_0x373dc0['gray'](_0x2f9411(0xca)))),console[_0x2f9411(0xbf)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x45ec63||a50_0x373dc0[_0x2f9411(0xe7)](_0x2f9411(0xca)))),console['log'](),console['log'](a50_0x373dc0['bold']('\x20\x20Config\x20JSON')),console['log'](a50_0x373dc0[_0x2f9411(0xe7)](_0x2f9411(0xc8)[_0x2f9411(0xe9)](0x1e)));const _0x3cc656=(_0x3f2409,_0x536fe3)=>{const _0x3408dd=_0x2f9411;if(!_0x536fe3){console[_0x3408dd(0xbf)]('\x20\x20'+_0x3f2409[_0x3408dd(0xbb)](0x11)+'\x20'+a50_0x373dc0[_0x3408dd(0xe7)](_0x3408dd(0xeb)));return;}const _0x12f608=inspectCliConfigJsonFile(_0x536fe3);if(_0x12f608['status']==='ok')console['log']('\x20\x20'+_0x3f2409[_0x3408dd(0xbb)](0x11)+'\x20'+a50_0x373dc0['green']('✓\x20Valid\x20JSON'));else{if(_0x12f608['status']===_0x3408dd(0xb7))console['log']('\x20\x20'+_0x3f2409[_0x3408dd(0xbb)](0x11)+'\x20'+a50_0x373dc0['yellow'](_0x3408dd(0xa6)));else _0x12f608[_0x3408dd(0xef)]==='missing'?console[_0x3408dd(0xbf)]('\x20\x20'+_0x3f2409[_0x3408dd(0xbb)](0x11)+'\x20'+a50_0x373dc0[_0x3408dd(0xe7)](_0x3408dd(0xc9))):(console[_0x3408dd(0xbf)]('\x20\x20'+_0x3f2409[_0x3408dd(0xbb)](0x11)+'\x20'+a50_0x373dc0[_0x3408dd(0xdb)](_0x3408dd(0xd3))),console['log']('\x20\x20'+''['padEnd'](0x11)+'\x20'+a50_0x373dc0['red'](_0x12f608[_0x3408dd(0xb1)])));}};_0x3cc656(_0x2f9411(0xe6),_0x23f89f),_0x3cc656(_0x2f9411(0xbe),_0x45ec63),console[_0x2f9411(0xbf)](),console[_0x2f9411(0xbf)](a50_0x373dc0[_0x2f9411(0xaa)](_0x2f9411(0xae))),console[_0x2f9411(0xbf)](a50_0x373dc0[_0x2f9411(0xe7)](_0x2f9411(0xc8)[_0x2f9411(0xe9)](0x1e))),console[_0x2f9411(0xbf)](_0x2f9411(0xc5)+(_0x657555[_0x2f9411(0xec)]||a50_0x373dc0[_0x2f9411(0xdb)](_0x2f9411(0xdc)))),console[_0x2f9411(0xbf)](_0x2f9411(0xe5)+_0x657555['env']),console[_0x2f9411(0xbf)](_0x2f9411(0xb9)+_0x657555['locale']),console[_0x2f9411(0xbf)](_0x2f9411(0xd4)+_0x657555['apiDir']),console['log'](_0x2f9411(0xe2)+(_0x657555['defaultApp']||a50_0x373dc0[_0x2f9411(0xe7)]('(none)'))),console[_0x2f9411(0xbf)](_0x2f9411(0xba)+(_0x657555['currentApp']||a50_0x373dc0[_0x2f9411(0xe7)]('(none)'))),console[_0x2f9411(0xbf)](_0x2f9411(0xf0)+(_0x657555[_0x2f9411(0xcf)]||a50_0x373dc0['gray'](_0x2f9411(0xb5)))),console[_0x2f9411(0xbf)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x657555[_0x2f9411(0xcc)]||a50_0x373dc0[_0x2f9411(0xe7)](_0x2f9411(0xd6)))),console[_0x2f9411(0xbf)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x657555[_0x2f9411(0xda)]??a50_0x373dc0[_0x2f9411(0xe7)]('(default)'))),console[_0x2f9411(0xbf)](_0x2f9411(0xc0)+_0x657555[_0x2f9411(0xc3)]),console[_0x2f9411(0xbf)](_0x2f9411(0xf2)+_0x657555[_0x2f9411(0xed)]),console[_0x2f9411(0xbf)](_0x2f9411(0xd2)+(_0x657555['cookie']?a50_0x373dc0['green'](_0x2f9411(0xd8)+_0x657555[_0x2f9411(0xd7)][_0x2f9411(0xbd)]+')'):_0x4d3211?a50_0x373dc0[_0x2f9411(0xb4)](_0x2f9411(0xce)+_0x4d3211[_0x2f9411(0xbd)]+')'):a50_0x373dc0[_0x2f9411(0xe7)](_0x2f9411(0xb5))));const _0x57a685=Object['keys'](_0x657555['apps']);if(_0x57a685[_0x2f9411(0xbd)]>0x0){console['log'](),console[_0x2f9411(0xbf)](a50_0x373dc0[_0x2f9411(0xaa)](_0x2f9411(0xb2))),console[_0x2f9411(0xbf)](a50_0x373dc0[_0x2f9411(0xe7)](_0x2f9411(0xc8)['repeat'](0x1e)));for(const _0x4550f8 of _0x57a685){const _0x4bc8aa=_0x657555[_0x2f9411(0xa9)][_0x4550f8],_0x13b7ab=_0x4550f8===_0x657555['defaultApp'],_0xd33a5e=_0x4550f8===_0x657555['currentApp'],_0x581af4=_0xd33a5e?a50_0x373dc0[_0x2f9411(0xb4)]('\x20←\x20current'):'',_0x2fc056=_0x13b7ab?'\x20(default)':'';console[_0x2f9411(0xbf)]('\x20\x20'+_0x4550f8+_0x2fc056+_0x581af4),console['log'](_0x2f9411(0xab)+_0x4bc8aa[_0x2f9411(0xcb)]),console['log'](_0x2f9411(0xee)+(_0x4bc8aa[_0x2f9411(0xde)]||a50_0x373dc0[_0x2f9411(0xe7)]('(inherit)'))),console[_0x2f9411(0xbf)]('\x20\x20\x20\x20apiDir:\x20\x20\x20'+(_0x4bc8aa[_0x2f9411(0xb8)]||a50_0x373dc0[_0x2f9411(0xe7)](_0x2f9411(0xd1)))),console['log'](_0x2f9411(0xb0)+(_0x4bc8aa[_0x2f9411(0xd7)]?a50_0x373dc0['green'](_0x2f9411(0xc1)):a50_0x373dc0[_0x2f9411(0xe7)](_0x2f9411(0xd1))));}}console[_0x2f9411(0xbf)](),console['log'](a50_0x373dc0['bold'](_0x2f9411(0xa7))),console['log'](a50_0x373dc0['gray'](_0x2f9411(0xc8)[_0x2f9411(0xe9)](0x1e))),console[_0x2f9411(0xbf)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x2f9411(0xbf)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console['log']('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x2f9411(0xbf)](),console[_0x2f9411(0xbf)](a50_0x373dc0[_0x2f9411(0xaa)](_0x2f9411(0xcd))),console['log'](a50_0x373dc0[_0x2f9411(0xe7)]('\x20\x20─'['repeat'](0x1e)));if(_0x4d3211){const _0x51bc84=await getIsSessionValid();console[_0x2f9411(0xbf)](_0x2f9411(0xe1)+(_0x51bc84?a50_0x373dc0[_0x2f9411(0xb4)]('✓\x20Valid'):a50_0x373dc0[_0x2f9411(0xdb)](_0x2f9411(0xf1))));}else console['log'](_0x2f9411(0xe1)+a50_0x373dc0[_0x2f9411(0xdb)]('✗\x20Not\x20logged\x20in'));return console[_0x2f9411(0xbf)](),{'ok':!![]};}export const doctorDefinition={'service':a50_0x1fa1e2(0xb3),'command':a50_0x1fa1e2(0xbc),'description':a50_0x1fa1e2(0xe4),'risk':a50_0x1fa1e2(0xdf),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a50_0x1bcd47=a50_0x6b2d;(function(_0x4565df,_0x361065){const _0x1336be=a50_0x6b2d,_0x3d5276=_0x4565df();while(!![]){try{const _0x4747bc=-parseInt(_0x1336be(0x1b3))/0x1+parseInt(_0x1336be(0x1ab))/0x2*(parseInt(_0x1336be(0x1bd))/0x3)+parseInt(_0x1336be(0x1a6))/0x4+-parseInt(_0x1336be(0x1a5))/0x5+parseInt(_0x1336be(0x1bf))/0x6*(-parseInt(_0x1336be(0x1d1))/0x7)+-parseInt(_0x1336be(0x1b5))/0x8+parseInt(_0x1336be(0x1a8))/0x9;if(_0x4747bc===_0x361065)break;else _0x3d5276['push'](_0x3d5276['shift']());}catch(_0xf5ee1c){_0x3d5276['push'](_0x3d5276['shift']());}}}(a50_0x3952,0xe4075));import a50_0x95f275 from'chalk';function a50_0x6b2d(_0x3ce6ba,_0x3608c5){_0x3ce6ba=_0x3ce6ba-0x199;const _0x39520f=a50_0x3952();let _0x6b2dc6=_0x39520f[_0x3ce6ba];return _0x6b2dc6;}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';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';function a50_0x3952(){const _0x2a8054=['\x20←\x20current','apps','(inherit)','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','green','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','message','unknown','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','check','appCode','version','(default)','(missing)','format','\x20\x20\x20\x20cookie:\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20(default)','platform','red','✗\x20Invalid\x20JSON','doctor','apiDir','arch','read','\x20doctor','slice','(set)','(no\x20file)','3839100LHvLcI','6022536SWCRNb','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','14723658wOEiDk','explicitAppName','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','58klQThn','status','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','\x20\x20Config\x20JSON','(not\x20found)','bold','755198IHVcrV','env','9107464UBEWPP','cookie','defaultApp','⚠\x20Empty\x20(treated\x20as\x20{})','(set\x20via\x20file,\x20length=','gray','length','\x20\x20explicitAppName:\x20','142881vmyizd','riskLevel','5563938zIIsfX','keys','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20','log','currentApp','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','verbose','(set,\x20length=','✓\x20Valid\x20JSON','Global','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','pageSize','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','(default:\x20pretty)','7UmizTJ','(not\x20set)','\x20\x20─','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','(none)','locale','empty','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','Project','yellow','repeat','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a50_0x3952=function(){return _0x2a8054;};return a50_0x3952();}async function execute(_0x4aa82a){const _0x3e9a68=a50_0x6b2d,_0x563dd0=GIT_COMMIT!==_0x3e9a68(0x1e6)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x3e9a68(0x1a2)](0x0,0xa)+')':VERSION,_0x19da9c=buildConfigFromFlags({}),_0x369e1a=getCookie();console[_0x3e9a68(0x1c3)](),console['log'](a50_0x95f275[_0x3e9a68(0x1b2)](CLI_BIN_NAME+_0x3e9a68(0x1a1))),console[_0x3e9a68(0x1c3)](a50_0x95f275[_0x3e9a68(0x1ba)]('─'[_0x3e9a68(0x1db)](0x32))),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1c7)+_0x563dd0),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1aa)+process[_0x3e9a68(0x1ea)]),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1e7)+process[_0x3e9a68(0x19a)]+'\x20'+process[_0x3e9a68(0x19f)]),console[_0x3e9a68(0x1c3)](),console[_0x3e9a68(0x1c3)](a50_0x95f275['bold'](_0x3e9a68(0x1af))),console[_0x3e9a68(0x1c3)](a50_0x95f275[_0x3e9a68(0x1ba)](_0x3e9a68(0x1d3)['repeat'](0x1e)));const _0x466a9d=getGlobalConfigPath(),_0x117ae1=getProjectConfigPath();console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1a7)+(_0x466a9d||a50_0x95f275['gray'](_0x3e9a68(0x1b1)))),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1ae)+(_0x117ae1||a50_0x95f275['gray'](_0x3e9a68(0x1b1)))),console[_0x3e9a68(0x1c3)](),console[_0x3e9a68(0x1c3)](a50_0x95f275[_0x3e9a68(0x1b2)](_0x3e9a68(0x1b0))),console[_0x3e9a68(0x1c3)](a50_0x95f275['gray'](_0x3e9a68(0x1d3)[_0x3e9a68(0x1db)](0x1e)));const _0x2806a5=(_0x53b737,_0x3f5323)=>{const _0x50a673=_0x3e9a68;if(!_0x3f5323){console[_0x50a673(0x1c3)]('\x20\x20'+_0x53b737[_0x50a673(0x1cf)](0x11)+'\x20'+a50_0x95f275[_0x50a673(0x1ba)](_0x50a673(0x1a4)));return;}const _0x4c563d=inspectCliConfigJsonFile(_0x3f5323);if(_0x4c563d[_0x50a673(0x1ac)]==='ok')console[_0x50a673(0x1c3)]('\x20\x20'+_0x53b737[_0x50a673(0x1cf)](0x11)+'\x20'+a50_0x95f275[_0x50a673(0x1e3)](_0x50a673(0x1ca)));else{if(_0x4c563d[_0x50a673(0x1ac)]===_0x50a673(0x1d7))console[_0x50a673(0x1c3)]('\x20\x20'+_0x53b737[_0x50a673(0x1cf)](0x11)+'\x20'+a50_0x95f275[_0x50a673(0x1da)](_0x50a673(0x1b8)));else _0x4c563d['status']==='missing'?console[_0x50a673(0x1c3)]('\x20\x20'+_0x53b737[_0x50a673(0x1cf)](0x11)+'\x20'+a50_0x95f275[_0x50a673(0x1ba)](_0x50a673(0x1ec))):(console[_0x50a673(0x1c3)]('\x20\x20'+_0x53b737[_0x50a673(0x1cf)](0x11)+'\x20'+a50_0x95f275['red'](_0x50a673(0x19c))),console[_0x50a673(0x1c3)]('\x20\x20'+''[_0x50a673(0x1cf)](0x11)+'\x20'+a50_0x95f275[_0x50a673(0x19b)](_0x4c563d[_0x50a673(0x1e5)])));}};_0x2806a5(_0x3e9a68(0x1cb),_0x466a9d),_0x2806a5(_0x3e9a68(0x1d9),_0x117ae1),console[_0x3e9a68(0x1c3)](),console['log'](a50_0x95f275[_0x3e9a68(0x1b2)](_0x3e9a68(0x1c6))),console[_0x3e9a68(0x1c3)](a50_0x95f275[_0x3e9a68(0x1ba)]('\x20\x20─'[_0x3e9a68(0x1db)](0x1e))),console['log'](_0x3e9a68(0x1ce)+(_0x19da9c[_0x3e9a68(0x1e9)]||a50_0x95f275[_0x3e9a68(0x19b)](_0x3e9a68(0x1d2)))),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1dc)+_0x19da9c[_0x3e9a68(0x1b4)]),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1c1)+_0x19da9c[_0x3e9a68(0x1d6)]),console['log'](_0x3e9a68(0x1c5)+_0x19da9c['apiDir']),console[_0x3e9a68(0x1c3)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x19da9c['defaultApp']||a50_0x95f275['gray']('(none)'))),console[_0x3e9a68(0x1c3)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x19da9c[_0x3e9a68(0x1c4)]||a50_0x95f275[_0x3e9a68(0x1ba)](_0x3e9a68(0x1d5)))),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1bc)+(_0x19da9c[_0x3e9a68(0x1a9)]||a50_0x95f275[_0x3e9a68(0x1ba)]('(none)'))),console[_0x3e9a68(0x1c3)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x19da9c[_0x3e9a68(0x1ed)]||a50_0x95f275['gray'](_0x3e9a68(0x1d0)))),console['log']('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x19da9c[_0x3e9a68(0x1cd)]??a50_0x95f275['gray'](_0x3e9a68(0x1eb)))),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1e0)+_0x19da9c[_0x3e9a68(0x1be)]),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1d8)+_0x19da9c[_0x3e9a68(0x1c8)]),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1e4)+(_0x19da9c[_0x3e9a68(0x1b6)]?a50_0x95f275[_0x3e9a68(0x1e3)](_0x3e9a68(0x1c9)+_0x19da9c[_0x3e9a68(0x1b6)][_0x3e9a68(0x1bb)]+')'):_0x369e1a?a50_0x95f275[_0x3e9a68(0x1e3)](_0x3e9a68(0x1b9)+_0x369e1a[_0x3e9a68(0x1bb)]+')'):a50_0x95f275[_0x3e9a68(0x1ba)](_0x3e9a68(0x1d5))));const _0x3b7021=Object[_0x3e9a68(0x1c0)](_0x19da9c[_0x3e9a68(0x1de)]);if(_0x3b7021[_0x3e9a68(0x1bb)]>0x0){console[_0x3e9a68(0x1c3)](),console[_0x3e9a68(0x1c3)](a50_0x95f275[_0x3e9a68(0x1b2)]('\x20\x20Apps')),console[_0x3e9a68(0x1c3)](a50_0x95f275['gray']('\x20\x20─'[_0x3e9a68(0x1db)](0x1e)));for(const _0x130273 of _0x3b7021){const _0x26036c=_0x19da9c[_0x3e9a68(0x1de)][_0x130273],_0x79de4b=_0x130273===_0x19da9c[_0x3e9a68(0x1b7)],_0xd36e7c=_0x130273===_0x19da9c[_0x3e9a68(0x1c4)],_0x19846d=_0xd36e7c?a50_0x95f275[_0x3e9a68(0x1e3)](_0x3e9a68(0x1dd)):'',_0x4f6eac=_0x79de4b?_0x3e9a68(0x199):'';console[_0x3e9a68(0x1c3)]('\x20\x20'+_0x130273+_0x4f6eac+_0x19846d),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1c2)+_0x26036c['appcode']),console['log']('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20'+(_0x26036c[_0x3e9a68(0x1b4)]||a50_0x95f275['gray'](_0x3e9a68(0x1df)))),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1e1)+(_0x26036c[_0x3e9a68(0x19e)]||a50_0x95f275['gray']('(inherit)'))),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1ee)+(_0x26036c[_0x3e9a68(0x1b6)]?a50_0x95f275['green'](_0x3e9a68(0x1a3)):a50_0x95f275[_0x3e9a68(0x1ba)](_0x3e9a68(0x1df))));}}console[_0x3e9a68(0x1c3)](),console['log'](a50_0x95f275[_0x3e9a68(0x1b2)]('\x20\x20API\x20Endpoints')),console['log'](a50_0x95f275[_0x3e9a68(0x1ba)]('\x20\x20─'[_0x3e9a68(0x1db)](0x1e))),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1d4)+getApiDomain()),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1cc)+getUserDomain()),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1e2)+getRuntimeDomain()),console['log'](),console[_0x3e9a68(0x1c3)](a50_0x95f275[_0x3e9a68(0x1b2)]('\x20\x20Auth')),console['log'](a50_0x95f275[_0x3e9a68(0x1ba)](_0x3e9a68(0x1d3)['repeat'](0x1e)));if(_0x369e1a){const _0x2b3926=await getIsSessionValid();console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1ad)+(_0x2b3926?a50_0x95f275[_0x3e9a68(0x1e3)]('✓\x20Valid'):a50_0x95f275[_0x3e9a68(0x19b)]('✗\x20Expired')));}else console['log'](_0x3e9a68(0x1ad)+a50_0x95f275['red']('✗\x20Not\x20logged\x20in'));return console[_0x3e9a68(0x1c3)](),{'ok':!![]};}export const doctorDefinition={'service':a50_0x1bcd47(0x19d),'command':a50_0x1bcd47(0x1e8),'description':a50_0x1bcd47(0x1ef),'risk':a50_0x1bcd47(0x1a0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};