@lovrabet/rabetbase-cli 2.1.2-beta.3 → 2.1.3-beta.0

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 (187) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -0
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/dataset/detail.js +1 -1
  48. package/lib/commands/dataset/index.js +1 -1
  49. package/lib/commands/dataset/links.js +1 -1
  50. package/lib/commands/dataset/list.js +1 -1
  51. package/lib/commands/dataset/operations.js +1 -1
  52. package/lib/commands/db/analyze-cancel.js +1 -1
  53. package/lib/commands/db/analyze-start.js +1 -1
  54. package/lib/commands/db/analyze-status.js +1 -1
  55. package/lib/commands/db/create.js +1 -1
  56. package/lib/commands/db/delete.js +1 -1
  57. package/lib/commands/db/detail.js +1 -1
  58. package/lib/commands/db/diff.js +1 -1
  59. package/lib/commands/db/index.js +1 -1
  60. package/lib/commands/db/list.js +1 -1
  61. package/lib/commands/db/shared.js +1 -1
  62. package/lib/commands/db/tables.js +1 -1
  63. package/lib/commands/db/test.js +1 -1
  64. package/lib/commands/db/update.js +1 -1
  65. package/lib/commands/doctor.js +1 -1
  66. package/lib/commands/init/index.js +1 -1
  67. package/lib/commands/logs/index.js +1 -1
  68. package/lib/commands/menu/index.js +1 -1
  69. package/lib/commands/menu/shared/compare-table.js +1 -1
  70. package/lib/commands/menu/shared/index.js +1 -1
  71. package/lib/commands/menu/shared/inquirer.js +1 -1
  72. package/lib/commands/menu/shared/local-pages.js +1 -1
  73. package/lib/commands/menu/shared/logic.js +1 -1
  74. package/lib/commands/menu/shared/service.js +1 -1
  75. package/lib/commands/menu/shared/sync-core.js +1 -1
  76. package/lib/commands/menu/shared/update-core.js +1 -1
  77. package/lib/commands/menu/shared/valid-url.js +1 -1
  78. package/lib/commands/menu/sync.js +1 -1
  79. package/lib/commands/menu/update.js +1 -1
  80. package/lib/commands/page/generate-start.js +1 -0
  81. package/lib/commands/page/generate-status.js +1 -0
  82. package/lib/commands/page/index.js +1 -0
  83. package/lib/commands/page/pull.js +1 -0
  84. package/lib/commands/page/push.js +1 -0
  85. package/lib/commands/page/shared.js +1 -0
  86. package/lib/commands/page/standard-page-status.js +1 -0
  87. package/lib/commands/page/sync.js +1 -0
  88. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  89. package/lib/commands/project/create/format-elapsed.js +1 -1
  90. package/lib/commands/project/create/main.js +1 -1
  91. package/lib/commands/project/create/non-interactive.js +1 -1
  92. package/lib/commands/project/create/project-template-path.js +1 -1
  93. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  94. package/lib/commands/project/create/use-format-code.js +1 -1
  95. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  96. package/lib/commands/project/index.js +1 -1
  97. package/lib/commands/project/init.js +1 -1
  98. package/lib/commands/project/upgrade.js +1 -1
  99. package/lib/commands/registry.js +1 -1
  100. package/lib/commands/run/index.js +1 -1
  101. package/lib/commands/schema.js +1 -1
  102. package/lib/commands/skill/index.js +1 -1
  103. package/lib/commands/sql/create.js +1 -0
  104. package/lib/commands/sql/delete.js +1 -0
  105. package/lib/commands/sql/detail.js +1 -1
  106. package/lib/commands/sql/exec.js +1 -1
  107. package/lib/commands/sql/index.js +1 -1
  108. package/lib/commands/sql/list.js +1 -1
  109. package/lib/commands/sql/pull.js +1 -1
  110. package/lib/commands/sql/push.js +1 -0
  111. package/lib/commands/sql/save.js +1 -1
  112. package/lib/commands/sql/shared.js +1 -1
  113. package/lib/commands/sql/status.js +1 -0
  114. package/lib/commands/sql/validate.js +1 -1
  115. package/lib/config/schema.js +1 -1
  116. package/lib/constant/cdn.js +1 -0
  117. package/lib/constant/cli.js +1 -1
  118. package/lib/constant/defaults.js +1 -1
  119. package/lib/constant/domain.js +1 -1
  120. package/lib/constant/env.js +1 -1
  121. package/lib/constant/output.js +1 -1
  122. package/lib/constant/paths.js +1 -1
  123. package/lib/constant/risk.js +1 -1
  124. package/lib/context.js +1 -1
  125. package/lib/core/alias-resolver.js +1 -1
  126. package/lib/core/api-client.js +1 -1
  127. package/lib/core/bff/config.js +1 -1
  128. package/lib/core/bff/file-system.js +1 -1
  129. package/lib/core/bff/hash.js +1 -1
  130. package/lib/core/bff/lock.js +1 -1
  131. package/lib/core/bff/utils.js +1 -1
  132. package/lib/core/db-resolver.js +1 -1
  133. package/lib/core/page/file-system.js +1 -0
  134. package/lib/core/page/hash.js +1 -0
  135. package/lib/core/page/lock.js +1 -0
  136. package/lib/core/page/types.js +1 -0
  137. package/lib/core/sql-sync/config.js +1 -0
  138. package/lib/core/sql-sync/file-system.js +1 -0
  139. package/lib/core/sql-sync/hash.js +1 -0
  140. package/lib/core/sql-sync/lock.js +1 -0
  141. package/lib/core/sql-sync/types.js +1 -0
  142. package/lib/core/sql-sync/utils.js +1 -0
  143. package/lib/core/sql-validator.js +1 -1
  144. package/lib/errors.js +1 -1
  145. package/lib/framework/build-all-flags.js +1 -1
  146. package/lib/framework/flags.js +1 -1
  147. package/lib/framework/help.js +1 -1
  148. package/lib/framework/index.js +1 -1
  149. package/lib/framework/output.js +1 -1
  150. package/lib/framework/response.js +1 -1
  151. package/lib/framework/runner-alias.js +1 -1
  152. package/lib/framework/runner.js +1 -1
  153. package/lib/framework/schema-export.js +1 -1
  154. package/lib/framework/types.js +1 -1
  155. package/lib/generated/build-info.js +1 -1
  156. package/lib/help.js +1 -1
  157. package/lib/skills/main.js +1 -1
  158. package/lib/skills/npx-skills-add.js +1 -1
  159. package/lib/telemetry/cli-command-trace.js +1 -1
  160. package/lib/telemetry/cli-help-trace.js +1 -1
  161. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  162. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  163. package/lib/telemetry/send-cli-trace-log.js +1 -1
  164. package/lib/utils/ai_config.js +1 -1
  165. package/lib/utils/apply-jq-filter.js +1 -1
  166. package/lib/utils/cdn-config.js +1 -1
  167. package/lib/utils/check-sdk-version.js +1 -1
  168. package/lib/utils/cli-version-check.js +1 -1
  169. package/lib/utils/cli-version-policy.js +1 -0
  170. package/lib/utils/config.js +1 -1
  171. package/lib/utils/copy-directory.js +1 -1
  172. package/lib/utils/entity-with-id.js +1 -1
  173. package/lib/utils/file-utils.js +1 -1
  174. package/lib/utils/guides-cdn.js +1 -1
  175. package/lib/utils/http-client.js +1 -1
  176. package/lib/utils/is-non-interactive.js +1 -1
  177. package/lib/utils/logger.js +1 -1
  178. package/lib/utils/platform.js +1 -1
  179. package/lib/utils/rules-cdn.js +1 -1
  180. package/lib/utils/sleep.js +1 -1
  181. package/lib/utils/template-replacer.js +1 -1
  182. package/lib/utils/version.js +1 -1
  183. package/lib/utils/with-active-cookie.js +1 -1
  184. package/lib/utils/write-cli-side-channel.js +1 -1
  185. package/package.json +3 -2
  186. package/templates/skill/SKILL.md.tpl +1 -1
  187. package/lib/commands/bff/new.js +0 -1
@@ -1 +1 @@
1
- const a115_0x30df99=a115_0x2f24;(function(_0x49d288,_0x152881){const _0x264a9b=a115_0x2f24,_0x649cd5=_0x49d288();while(!![]){try{const _0x40df73=-parseInt(_0x264a9b(0x186))/0x1+parseInt(_0x264a9b(0x1a0))/0x2*(-parseInt(_0x264a9b(0x196))/0x3)+parseInt(_0x264a9b(0x184))/0x4+parseInt(_0x264a9b(0x187))/0x5+parseInt(_0x264a9b(0x182))/0x6*(parseInt(_0x264a9b(0x1a8))/0x7)+-parseInt(_0x264a9b(0x1a6))/0x8+-parseInt(_0x264a9b(0x17e))/0x9*(-parseInt(_0x264a9b(0x185))/0xa);if(_0x40df73===_0x152881)break;else _0x649cd5['push'](_0x649cd5['shift']());}catch(_0x383042){_0x649cd5['push'](_0x649cd5['shift']());}}}(a115_0x38c2,0x76c0c));import a115_0x57efda from'chalk';import a115_0x419d48 from'ora';import a115_0x1f0fd9 from'semver';function a115_0x38c2(){const _0x1d26eb=['succeed','bun','json','/latest','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','\x20install\x20-g\x20','248244zSuVlF','cli','coerce','start','npm','stableVersion','write','red','message','error','16zkZXQb','green','...','fail','slice','timeout','2198056RiKcGF','yellow','581511pUHpab','Update\x20failed','gray','toLowerCase','5629851PIklUb','@latest','log','update','6gMEHxg','info','2451292HsJYSV','10GNRmAk','745958cHzJSK','4238380HySnUp','run','pipe','Updating\x20via\x20','\x20→\x20','unknown','Version\x20comparison\x20failed','Unable\x20to\x20check\x20for\x20updates','Updated\x20to\x20v'];a115_0x38c2=function(){return _0x1d26eb;};return a115_0x38c2();}import{execa}from'execa';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';function a115_0x2f24(_0x390d5e,_0x52547c){_0x390d5e=_0x390d5e-0x17c;const _0x38c22c=a115_0x38c2();let _0x2f24eb=_0x38c22c[_0x390d5e];return _0x2f24eb;}import{getCdnConfig}from'../utils/cdn-config.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x12d932=a115_0x2f24;return GIT_COMMIT!==_0x12d932(0x18c)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x12d932(0x1a4)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x3d372b=a115_0x2f24,_0x59db67=process['execPath'][_0x3d372b(0x17d)]();if(_0x59db67['includes']('bun'))return _0x3d372b(0x191);return _0x3d372b(0x19a);}async function fetchLatestNpmVersion(){const _0x1c8643=a115_0x2f24;try{const _0x42a7b2=await fetch('https://registry.npmjs.org/'+NPM_PACKAGE_NAME+_0x1c8643(0x193),{'signal':AbortSignal[_0x1c8643(0x1a5)](0x2710)});if(!_0x42a7b2['ok'])return null;const _0x2a67a9=await _0x42a7b2[_0x1c8643(0x192)]();return _0x2a67a9['version']??null;}catch{return null;}}async function fetchLatestVersion(){const _0x454372=a115_0x2f24,_0x2e442b=await fetchLatestNpmVersion();if(_0x2e442b)return _0x2e442b;const _0x2781b1=await getCdnConfig();return _0x2781b1?.[_0x454372(0x197)]?.[_0x454372(0x19b)]??null;}async function execute(_0x424a7f){const _0x1a3ec7=a115_0x2f24,_0x44dc7b=getCurrentVersion();console[_0x1a3ec7(0x180)]('Current\x20version:\x20'+_0x44dc7b);const _0xa94c02=a115_0x419d48('Checking\x20for\x20updates...')[_0x1a3ec7(0x199)](),_0x28b256=await fetchLatestVersion();if(!_0x28b256)return _0xa94c02[_0x1a3ec7(0x1a3)]('Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)'),console[_0x1a3ec7(0x180)](a115_0x57efda[_0x1a3ec7(0x17c)](_0x1a3ec7(0x194)+NPM_PACKAGE_NAME+_0x1a3ec7(0x17f))),{'ok':![],'message':_0x1a3ec7(0x18e)};const _0x2759d6=a115_0x1f0fd9['coerce'](_0x44dc7b),_0x327167=a115_0x1f0fd9[_0x1a3ec7(0x198)](_0x28b256);if(!_0x2759d6||!_0x327167)return _0xa94c02[_0x1a3ec7(0x1a3)]('Version\x20comparison\x20failed'),{'ok':![],'message':_0x1a3ec7(0x18d)};if(!a115_0x1f0fd9['lt'](_0x2759d6,_0x327167))return _0xa94c02[_0x1a3ec7(0x190)]('Already\x20up\x20to\x20date\x20(v'+_0x28b256+')'),{'ok':!![]};_0xa94c02[_0x1a3ec7(0x183)]('Update\x20available:\x20'+a115_0x57efda[_0x1a3ec7(0x1a7)](_0x44dc7b)+_0x1a3ec7(0x18b)+a115_0x57efda[_0x1a3ec7(0x1a1)](_0x28b256));const _0x1b5347=detectPackageManager(),_0x2e0cc7=_0x1b5347===_0x1a3ec7(0x19a)?resolveNpmBin(_0x1a3ec7(0x19a)):_0x1b5347,_0x524609=a115_0x419d48(_0x1a3ec7(0x18a)+_0x1b5347+_0x1a3ec7(0x1a2))[_0x1a3ec7(0x199)]();try{return await execa(_0x2e0cc7,['install','-g',NPM_PACKAGE_NAME+_0x1a3ec7(0x17f)],{'stdio':_0x1a3ec7(0x189)}),_0x524609[_0x1a3ec7(0x190)](_0x1a3ec7(0x18f)+_0x28b256),console[_0x1a3ec7(0x180)](a115_0x57efda['gray']('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.')),{'ok':!![]};}catch(_0x486245){return _0x524609[_0x1a3ec7(0x1a3)](_0x1a3ec7(0x1a9)),console[_0x1a3ec7(0x19f)](a115_0x57efda[_0x1a3ec7(0x19d)]('\x20\x20'+_0x486245[_0x1a3ec7(0x19e)])),console[_0x1a3ec7(0x180)](a115_0x57efda[_0x1a3ec7(0x17c)]('\x20\x20Try\x20manually:\x20'+_0x1b5347+_0x1a3ec7(0x195)+NPM_PACKAGE_NAME+_0x1a3ec7(0x17f))),{'ok':![],'message':_0x486245['message']};}}export const updateDefinition={'service':a115_0x30df99(0x181),'command':a115_0x30df99(0x188),'description':'Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','risk':a115_0x30df99(0x19c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a34_0x34f572=a34_0x2415;function a34_0x2415(_0x2ab8d3,_0x5332e1){_0x2ab8d3=_0x2ab8d3-0x16b;const _0x43b8b3=a34_0x43b8();let _0x2415de=_0x43b8b3[_0x2ab8d3];return _0x2415de;}(function(_0x562bde,_0x45f5f9){const _0x41a6b8=a34_0x2415,_0xb93857=_0x562bde();while(!![]){try{const _0x13270d=-parseInt(_0x41a6b8(0x179))/0x1+parseInt(_0x41a6b8(0x188))/0x2+parseInt(_0x41a6b8(0x198))/0x3+-parseInt(_0x41a6b8(0x199))/0x4*(parseInt(_0x41a6b8(0x16e))/0x5)+parseInt(_0x41a6b8(0x18c))/0x6*(parseInt(_0x41a6b8(0x195))/0x7)+parseInt(_0x41a6b8(0x17d))/0x8*(parseInt(_0x41a6b8(0x186))/0x9)+parseInt(_0x41a6b8(0x170))/0xa;if(_0x13270d===_0x45f5f9)break;else _0xb93857['push'](_0xb93857['shift']());}catch(_0x1a42e8){_0xb93857['push'](_0xb93857['shift']());}}}(a34_0x43b8,0xda86b));import a34_0x1107fb from'chalk';import a34_0x1356c7 from'ora';import a34_0x262b76 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 a34_0x43b8(){const _0x5b355c=['Current\x20version:\x20','7110YYYivG','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','1031248KBQwLP','version','start','log','162nybWaa','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','execPath','bun','info','timeout','slice','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','Update\x20available:\x20','26278aVgVEM','gray','...','575958POjWUP','4KDliaX','/latest','succeed','green','396265LdSVEI','fail','1861390YKaaLp','yellow','toLowerCase','Updated\x20to\x20v','Update\x20failed','https://registry.npmjs.org/','\x20install\x20-g\x20','red','pipe','414981JYUQsF','stableVersion','message','\x20\x20Try\x20manually:\x20','3992JrlWLp','coerce','npm','run','@latest','unknown','write','update'];a34_0x43b8=function(){return _0x5b355c;};return a34_0x43b8();}function getCurrentVersion(){const _0x46fc75=a34_0x2415;return GIT_COMMIT!==_0x46fc75(0x182)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x46fc75(0x192)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x3c2981=a34_0x2415,_0x443183=process[_0x3c2981(0x18e)][_0x3c2981(0x172)]();if(_0x443183['includes'](_0x3c2981(0x18f)))return _0x3c2981(0x18f);return _0x3c2981(0x17f);}async function fetchLatestNpmVersion(){const _0xe81dd2=a34_0x2415;try{const _0x38d92d=await fetch(_0xe81dd2(0x175)+NPM_PACKAGE_NAME+_0xe81dd2(0x16b),{'signal':AbortSignal[_0xe81dd2(0x191)](0x2710)});if(!_0x38d92d['ok'])return null;const _0x4419f7=await _0x38d92d['json']();return _0x4419f7[_0xe81dd2(0x189)]??null;}catch{return null;}}async function fetchLatestVersion(){const _0x5b6f76=a34_0x2415,_0x4fb6c7=await fetchLatestNpmVersion();if(_0x4fb6c7)return _0x4fb6c7;const _0xe6b702=await getCdnConfig();return _0xe6b702?.['cli']?.[_0x5b6f76(0x17a)]??null;}async function execute(_0x5b10f1){const _0x5f216c=a34_0x2415,_0xa72762=getCurrentVersion();console[_0x5f216c(0x18b)](_0x5f216c(0x185)+_0xa72762);const _0xd26c70=a34_0x1356c7('Checking\x20for\x20updates...')[_0x5f216c(0x18a)](),_0x26954c=await fetchLatestVersion();if(!_0x26954c)return _0xd26c70[_0x5f216c(0x16f)](_0x5f216c(0x18d)),console[_0x5f216c(0x18b)](a34_0x1107fb[_0x5f216c(0x196)]('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+_0x5f216c(0x181))),{'ok':![],'message':'Unable\x20to\x20check\x20for\x20updates'};const _0x309e77=a34_0x262b76[_0x5f216c(0x17e)](_0xa72762),_0x299b2e=a34_0x262b76[_0x5f216c(0x17e)](_0x26954c);if(!_0x309e77||!_0x299b2e)return _0xd26c70[_0x5f216c(0x16f)]('Version\x20comparison\x20failed'),{'ok':![],'message':'Version\x20comparison\x20failed'};if(!a34_0x262b76['lt'](_0x309e77,_0x299b2e))return _0xd26c70['succeed']('Already\x20up\x20to\x20date\x20(v'+_0x26954c+')'),{'ok':!![]};_0xd26c70[_0x5f216c(0x190)](_0x5f216c(0x194)+a34_0x1107fb[_0x5f216c(0x171)](_0xa72762)+'\x20→\x20'+a34_0x1107fb[_0x5f216c(0x16d)](_0x26954c));const _0x164d25=detectPackageManager(),_0x11d714=_0x164d25==='npm'?resolveNpmBin('npm'):_0x164d25,_0x57fcab=a34_0x1356c7('Updating\x20via\x20'+_0x164d25+_0x5f216c(0x197))['start']();try{return await execa(_0x11d714,['install','-g',NPM_PACKAGE_NAME+'@'+_0x26954c],{'stdio':_0x5f216c(0x178)}),_0x57fcab[_0x5f216c(0x16c)](_0x5f216c(0x173)+_0x26954c),console[_0x5f216c(0x18b)](a34_0x1107fb[_0x5f216c(0x196)](_0x5f216c(0x187))),{'ok':!![]};}catch(_0x9d2bea){return _0x57fcab[_0x5f216c(0x16f)](_0x5f216c(0x174)),console['error'](a34_0x1107fb[_0x5f216c(0x177)]('\x20\x20'+_0x9d2bea[_0x5f216c(0x17b)])),console[_0x5f216c(0x18b)](a34_0x1107fb['gray'](_0x5f216c(0x17c)+_0x164d25+_0x5f216c(0x176)+NPM_PACKAGE_NAME+'@'+_0x26954c)),{'ok':![],'message':_0x9d2bea[_0x5f216c(0x17b)]};}}export const updateDefinition={'service':a34_0x34f572(0x184),'command':a34_0x34f572(0x180),'description':a34_0x34f572(0x193),'risk':a34_0x34f572(0x183),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x37259c,_0x4676f0){const _0x35bc61=a98_0x5ebb,_0x1553b1=_0x37259c();while(!![]){try{const _0x488875=-parseInt(_0x35bc61(0xe2))/0x1+parseInt(_0x35bc61(0xdc))/0x2*(-parseInt(_0x35bc61(0xe3))/0x3)+parseInt(_0x35bc61(0xdd))/0x4*(-parseInt(_0x35bc61(0xe4))/0x5)+parseInt(_0x35bc61(0xe1))/0x6*(-parseInt(_0x35bc61(0xdb))/0x7)+parseInt(_0x35bc61(0xda))/0x8*(-parseInt(_0x35bc61(0xde))/0x9)+-parseInt(_0x35bc61(0xdf))/0xa+-parseInt(_0x35bc61(0xe5))/0xb*(-parseInt(_0x35bc61(0xe0))/0xc);if(_0x488875===_0x4676f0)break;else _0x1553b1['push'](_0x1553b1['shift']());}catch(_0x4911a0){_0x1553b1['push'](_0x1553b1['shift']());}}}(a98_0x2204,0xde530));import{codegenSdk}from'../../commands/codegen/sdk.js';function a98_0x5ebb(_0x37ed64,_0x2a5743){_0x37ed64=_0x37ed64-0xda;const _0x220481=a98_0x2204();let _0x5ebbb7=_0x220481[_0x37ed64];return _0x5ebbb7;}function a98_0x2204(){const _0x53d915=['4rLLjhw','4410gOBSKC','14453240UIZKVi','12Yypdbr','149748ZgKeoJ','216487MjUSBD','894954zzAbtn','7807115PrbYxG','71953244uLQRfU','22616ysqEkc','203DNeJqN','2xfGORB'];a98_0x2204=function(){return _0x53d915;};return a98_0x2204();}import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
1
+ (function(_0x53e5a2,_0x3e8fb2){const _0x5d6e67=a35_0x3435,_0x59d8a5=_0x53e5a2();while(!![]){try{const _0x2579ea=parseInt(_0x5d6e67(0xaf))/0x1+parseInt(_0x5d6e67(0xa6))/0x2+-parseInt(_0x5d6e67(0xab))/0x3*(parseInt(_0x5d6e67(0xa8))/0x4)+parseInt(_0x5d6e67(0xac))/0x5*(parseInt(_0x5d6e67(0xad))/0x6)+-parseInt(_0x5d6e67(0xa9))/0x7*(parseInt(_0x5d6e67(0xaa))/0x8)+parseInt(_0x5d6e67(0xa5))/0x9*(-parseInt(_0x5d6e67(0xa7))/0xa)+parseInt(_0x5d6e67(0xae))/0xb;if(_0x2579ea===_0x3e8fb2)break;else _0x59d8a5['push'](_0x59d8a5['shift']());}catch(_0x4c8a34){_0x59d8a5['push'](_0x59d8a5['shift']());}}}(a35_0x440e,0xb763d));function a35_0x3435(_0x551aa7,_0x396590){_0x551aa7=_0x551aa7-0xa5;const _0x440e7b=a35_0x440e();let _0x343584=_0x440e7b[_0x551aa7];return _0x343584;}function a35_0x440e(){const _0x5d2809=['2634282emjuba','281080bMEDyd','8GtHzRk','338016GWSZsK','232znnXwh','2007834ZvqDDk','2780615kNUJGX','12HGdXAV','13189825iYsszC','1070255jOCPqz','387FVRNcY'];a35_0x440e=function(){return _0x5d2809;};return a35_0x440e();}import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
@@ -1 +1 @@
1
- const a99_0x48e480=a99_0x4521;(function(_0x428f49,_0x578b02){const _0x5587bf=a99_0x4521,_0x3bbb6f=_0x428f49();while(!![]){try{const _0x1e913b=-parseInt(_0x5587bf(0x8b))/0x1*(-parseInt(_0x5587bf(0x7f))/0x2)+-parseInt(_0x5587bf(0x8c))/0x3*(parseInt(_0x5587bf(0x77))/0x4)+parseInt(_0x5587bf(0x8a))/0x5+parseInt(_0x5587bf(0x74))/0x6+-parseInt(_0x5587bf(0x88))/0x7+parseInt(_0x5587bf(0x89))/0x8*(-parseInt(_0x5587bf(0x81))/0x9)+-parseInt(_0x5587bf(0x80))/0xa*(parseInt(_0x5587bf(0x83))/0xb);if(_0x1e913b===_0x578b02)break;else _0x3bbb6f['push'](_0x3bbb6f['shift']());}catch(_0x6ab10a){_0x3bbb6f['push'](_0x3bbb6f['shift']());}}}(a99_0x35a5,0x1d556));function a99_0x4521(_0x5ae719,_0x4b9857){_0x5ae719=_0x5ae719-0x72;const _0x35a57d=a99_0x35a5();let _0x4521e8=_0x35a57d[_0x5ae719];return _0x4521e8;}function a99_0x35a5(){const _0x38755e=['Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','44oyOnCK','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','skip-imports','read','boolean','sdk','string','bool','14ebHUgf','890XJiVPk','86472DaiEwa','Omit\x20import\x20statements\x20from\x20generated\x20code','14289xsVSsB','name','code','codegen','operation','249004CRDQMR','144VWZIBM','1113595FvXjWB','25707aPZpzH','16029GHUYpP','appCode','tableName','alias','602292qiWuzf','str'];a99_0x35a5=function(){return _0x38755e;};return a99_0x35a5();}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a99_0x48e480(0x86),'command':a99_0x48e480(0x7c),'description':a99_0x48e480(0x76),'risk':a99_0x48e480(0x7a),'flags':[CODE_FLAG_OPTIONAL,{'name':a99_0x48e480(0x73),'type':a99_0x48e480(0x7d),'description':a99_0x48e480(0x78)},{'name':a99_0x48e480(0x87),'type':a99_0x48e480(0x7d),'required':!![],'description':'Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)'},{'name':a99_0x48e480(0x79),'type':a99_0x48e480(0x7b),'description':a99_0x48e480(0x82)}],async 'execute'(_0x187cf5){const _0x1753d3=a99_0x48e480,{dataset:_0x17de1e,operation:_0x2aad01}=await getOperationDetail(_0x187cf5[_0x1753d3(0x8d)],_0x187cf5['str'](_0x1753d3(0x85)),_0x187cf5[_0x1753d3(0x75)](_0x1753d3(0x87))),_0x38fcb9=generateSdkCode(_0x17de1e,_0x2aad01,{'includeImports':!_0x187cf5[_0x1753d3(0x7e)](_0x1753d3(0x79))});return{'ok':!![],'data':{'dataset':{'name':_0x17de1e[_0x1753d3(0x84)],'code':_0x17de1e[_0x1753d3(0x85)],'tableName':_0x17de1e[_0x1753d3(0x72)]},'operation':_0x187cf5[_0x1753d3(0x75)](_0x1753d3(0x87)),'code':_0x38fcb9}};}};
1
+ const a36_0x334f86=a36_0x36e3;function a36_0x36e3(_0x2ba84a,_0x211ac3){_0x2ba84a=_0x2ba84a-0x121;const _0x4523c2=a36_0x4523();let _0x36e3a0=_0x4523c2[_0x2ba84a];return _0x36e3a0;}(function(_0x12ad18,_0x3ed11e){const _0x1346d8=a36_0x36e3,_0x5b3d35=_0x12ad18();while(!![]){try{const _0x4c6561=parseInt(_0x1346d8(0x130))/0x1+parseInt(_0x1346d8(0x122))/0x2*(parseInt(_0x1346d8(0x12f))/0x3)+parseInt(_0x1346d8(0x128))/0x4+parseInt(_0x1346d8(0x124))/0x5*(-parseInt(_0x1346d8(0x12b))/0x6)+-parseInt(_0x1346d8(0x136))/0x7*(-parseInt(_0x1346d8(0x131))/0x8)+parseInt(_0x1346d8(0x129))/0x9+-parseInt(_0x1346d8(0x134))/0xa*(parseInt(_0x1346d8(0x127))/0xb);if(_0x4c6561===_0x3ed11e)break;else _0x5b3d35['push'](_0x5b3d35['shift']());}catch(_0x4d0fa2){_0x5b3d35['push'](_0x5b3d35['shift']());}}}(a36_0x4523,0xab7f3));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';function a36_0x4523(){const _0x57e831=['boolean','code','10JaRxuK','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','600159ovcehT','skip-imports','str','2JNVTAK','bool','5ctUImM','tableName','read','20361363ruWmRA','3151228YFLyTT','3745800EHfjQe','Omit\x20import\x20statements\x20from\x20generated\x20code','329958nowbFV','operation','codegen','name','2501391wgxMwY','56251cbByfr','48uOBjAy'];a36_0x4523=function(){return _0x57e831;};return a36_0x4523();}import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a36_0x334f86(0x12d),'command':'sdk','description':'Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','risk':a36_0x334f86(0x126),'flags':[CODE_FLAG_OPTIONAL,{'name':'alias','type':'string','description':a36_0x334f86(0x135)},{'name':a36_0x334f86(0x12c),'type':'string','required':!![],'description':'Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)'},{'name':a36_0x334f86(0x137),'type':a36_0x334f86(0x132),'description':a36_0x334f86(0x12a)}],async 'execute'(_0x592231){const _0x56d869=a36_0x334f86,{dataset:_0x1868ee,operation:_0x510cf2}=await getOperationDetail(_0x592231['appCode'],_0x592231[_0x56d869(0x121)]('code'),_0x592231['str'](_0x56d869(0x12c))),_0xab62da=generateSdkCode(_0x1868ee,_0x510cf2,{'includeImports':!_0x592231[_0x56d869(0x123)](_0x56d869(0x137))});return{'ok':!![],'data':{'dataset':{'name':_0x1868ee[_0x56d869(0x12e)],'code':_0x1868ee[_0x56d869(0x133)],'tableName':_0x1868ee[_0x56d869(0x125)]},'operation':_0x592231['str'](_0x56d869(0x12c)),'code':_0xab62da}};}};
@@ -1 +1 @@
1
- function a97_0xc479(_0x4cb1e6,_0xc1ca7a){_0x4cb1e6=_0x4cb1e6-0x10c;const _0x5774b8=a97_0x5774();let _0xc479f3=_0x5774b8[_0x4cb1e6];return _0xc479f3;}const a97_0x23f234=a97_0xc479;function a97_0x5774(){const _0x4bc39a=['sdk','5102728FSpVnz','5038854HSQvKe','Omit\x20import\x20statements\x20from\x20generated\x20code','sql','1336513RbUbjs','3650763VJiCCI','appCode','sqlCode','20268vnMOVU','no-imports','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','895RxxRJG','str','read','target','bool','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','boolean','6807717Jjaajg','18107307sDDrrI','2xaafmv','bff','sqlName','string'];a97_0x5774=function(){return _0x4bc39a;};return a97_0x5774();}(function(_0x15666f,_0x25c756){const _0x5551f5=a97_0xc479,_0x101cc5=_0x15666f();while(!![]){try{const _0x1a67c1=parseInt(_0x5551f5(0x111))/0x1+-parseInt(_0x5551f5(0x121))/0x2*(parseInt(_0x5551f5(0x112))/0x3)+parseInt(_0x5551f5(0x115))/0x4*(-parseInt(_0x5551f5(0x118))/0x5)+-parseInt(_0x5551f5(0x10e))/0x6+parseInt(_0x5551f5(0x11f))/0x7+-parseInt(_0x5551f5(0x10d))/0x8+parseInt(_0x5551f5(0x120))/0x9;if(_0x1a67c1===_0x25c756)break;else _0x101cc5['push'](_0x101cc5['shift']());}catch(_0x2de800){_0x101cc5['push'](_0x101cc5['shift']());}}}(a97_0x5774,0xafa2b));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':'codegen','command':a97_0x23f234(0x110),'description':a97_0x23f234(0x11d),'risk':a97_0x23f234(0x11a),'flags':[SQLCODE_FLAG,{'name':a97_0x23f234(0x11b),'type':a97_0x23f234(0x124),'description':a97_0x23f234(0x117),'default':'sdk','enum':[a97_0x23f234(0x10c),a97_0x23f234(0x122)]},{'name':a97_0x23f234(0x116),'type':a97_0x23f234(0x11e),'description':a97_0x23f234(0x10f)}],async 'execute'(_0x5531a3){const _0xda1e94=a97_0x23f234,_0x4e55fe=await getSqlQueryInfo(_0x5531a3[_0xda1e94(0x113)],_0x5531a3[_0xda1e94(0x119)]('sqlcode')),_0x2b0244=_0x5531a3['str']('target')||_0xda1e94(0x10c),_0x359570=generateSqlCodeTemplate(_0x4e55fe,{'target':_0x2b0244,'includeImports':!_0x5531a3[_0xda1e94(0x11c)](_0xda1e94(0x116))});return{'ok':!![],'data':{'sqlCode':_0x4e55fe[_0xda1e94(0x114)],'sqlName':_0x4e55fe[_0xda1e94(0x123)],'target':_0x2b0244,'code':_0x359570}};}};
1
+ const a37_0x24a044=a37_0x3078;(function(_0x407c99,_0x5e3110){const _0x27e246=a37_0x3078,_0x129261=_0x407c99();while(!![]){try{const _0x1d35b0=parseInt(_0x27e246(0xa5))/0x1*(parseInt(_0x27e246(0xa6))/0x2)+-parseInt(_0x27e246(0xaa))/0x3*(-parseInt(_0x27e246(0xad))/0x4)+-parseInt(_0x27e246(0xa8))/0x5+parseInt(_0x27e246(0xa7))/0x6*(parseInt(_0x27e246(0xac))/0x7)+parseInt(_0x27e246(0x96))/0x8+-parseInt(_0x27e246(0xa0))/0x9+-parseInt(_0x27e246(0x9b))/0xa;if(_0x1d35b0===_0x5e3110)break;else _0x129261['push'](_0x129261['shift']());}catch(_0x132e0c){_0x129261['push'](_0x129261['shift']());}}}(a37_0xe0fb,0x4b4d3));function a37_0xe0fb(){const _0x40fd99=['929088jDIUtc','string','str','appCode','boolean','1491450zhbces','Omit\x20import\x20statements\x20from\x20generated\x20code','sqlCode','bff','codegen','3632418jdtAxs','sdk','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','no-imports','sqlcode','67uszNRI','6802fYzRmw','74292KCxIHl','2685330lvuHNU','target','699bLaFSt','sqlName','329WiAzhZ','8108VbfCZc','sql','Code\x20target:\x20sdk\x20(default)\x20or\x20bff'];a37_0xe0fb=function(){return _0x40fd99;};return a37_0xe0fb();}import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a37_0x3078(_0x4b8a90,_0x4dacc1){_0x4b8a90=_0x4b8a90-0x94;const _0xe0fbe7=a37_0xe0fb();let _0x3078b7=_0xe0fbe7[_0x4b8a90];return _0x3078b7;}import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a37_0x24a044(0x9f),'command':a37_0x24a044(0x94),'description':a37_0x24a044(0xa2),'risk':'read','flags':[SQLCODE_FLAG,{'name':a37_0x24a044(0xa9),'type':a37_0x24a044(0x97),'description':a37_0x24a044(0x95),'default':a37_0x24a044(0xa1),'enum':['sdk',a37_0x24a044(0x9e)]},{'name':a37_0x24a044(0xa3),'type':a37_0x24a044(0x9a),'description':a37_0x24a044(0x9c)}],async 'execute'(_0x36876d){const _0x5f023e=a37_0x24a044,_0x1b21d2=await getSqlQueryInfo(_0x36876d[_0x5f023e(0x99)],_0x36876d[_0x5f023e(0x98)](_0x5f023e(0xa4))),_0x153a0b=_0x36876d[_0x5f023e(0x98)](_0x5f023e(0xa9))||'sdk',_0x3cf80e=generateSqlCodeTemplate(_0x1b21d2,{'target':_0x153a0b,'includeImports':!_0x36876d['bool'](_0x5f023e(0xa3))});return{'ok':!![],'data':{'sqlCode':_0x1b21d2[_0x5f023e(0x9d)],'sqlName':_0x1b21d2[_0x5f023e(0xab)],'target':_0x153a0b,'code':_0x3cf80e}};}};
@@ -1 +1 @@
1
- (function(_0x4c759b,_0x4a3951){const _0x23a02a=a88_0x43a1,_0x1b3f5f=_0x4c759b();while(!![]){try{const _0xd73a2c=parseInt(_0x23a02a(0x182))/0x1*(parseInt(_0x23a02a(0x188))/0x2)+parseInt(_0x23a02a(0x18c))/0x3+-parseInt(_0x23a02a(0x181))/0x4*(-parseInt(_0x23a02a(0x190))/0x5)+-parseInt(_0x23a02a(0x184))/0x6+parseInt(_0x23a02a(0x17c))/0x7+parseInt(_0x23a02a(0x183))/0x8*(parseInt(_0x23a02a(0x18a))/0x9)+-parseInt(_0x23a02a(0x191))/0xa;if(_0xd73a2c===_0x4a3951)break;else _0x1b3f5f['push'](_0x1b3f5f['shift']());}catch(_0x47b20b){_0x1b3f5f['push'](_0x1b3f5f['shift']());}}}(a88_0x1233,0xc8d8b));import{input,checkbox,select}from'@inquirer/prompts';import a88_0xb6a5a1 from'chalk';import{validateAppcode}from'../../commands/common/validate.js';function a88_0x43a1(_0x3cabb9,_0x32c784){_0x3cabb9=_0x3cabb9-0x17b;const _0x12331a=a88_0x1233();let _0x43a147=_0x12331a[_0x3cabb9];return _0x43a147;}import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';function a88_0x1233(){const _0x2e4f51=['3371555rIIbGF','15820580OhtZfB','find','yellow','appCode','获取到\x20','map','\x20\x20(','\x0a无法获取远程应用列表,请手动输入。','cyan','App\x20Code:','manual','请输入\x20App\x20Code:','8423114ImJJeG','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','length','trim','includes','4OPaucr','1448QeDEGu','113144HLfVJz','3773094snLrVK','gray','未找到可用应用。','skip','2gJhUXi','custom','189UvMdIq','appName','2572530okuizD','无法获取远程应用列表,请手动输入。','\x0a未找到可用应用。','✎\x20自定义输入\x20appcode'];a88_0x1233=function(){return _0x2e4f51;};return a88_0x1233();}export async function promptCustomAppcode(){const _0x38b15b=a88_0x43a1,_0xd648d3=await input({'message':_0x38b15b(0x17b),'validate':_0x3d7ebc=>{const _0x5bc503=_0x38b15b,_0x2fd731=validateAppcode(_0x3d7ebc[_0x5bc503(0x17f)]());return _0x2fd731['valid']||_0x2fd731['message']||'Invalid\x20App\x20Code';}});return _0xd648d3[_0x38b15b(0x17f)]();}export async function promptAppSelection(_0x3ce1c9){const _0x4c9d33=a88_0x43a1,_0x336182=[{'name':a88_0xb6a5a1[_0x4c9d33(0x193)](_0x4c9d33(0x18f)),'value':-0x1},..._0x3ce1c9[_0x4c9d33(0x196)]((_0x47c02e,_0x2e635c)=>({'name':_0x47c02e[_0x4c9d33(0x18b)]+'\x20\x20'+a88_0xb6a5a1[_0x4c9d33(0x185)]('('+_0x47c02e[_0x4c9d33(0x194)]+')'),'value':_0x2e635c}))],_0x316c58=await checkbox({'message':_0x4c9d33(0x195)+a88_0xb6a5a1[_0x4c9d33(0x199)](_0x3ce1c9[_0x4c9d33(0x17e)])+_0x4c9d33(0x17d),'choices':_0x336182,'loop':![]});if(_0x316c58[_0x4c9d33(0x180)](-0x1))return _0x4c9d33(0x189);if(_0x316c58['length']===0x0)return _0x4c9d33(0x189);return _0x316c58[_0x4c9d33(0x196)](_0x4eca72=>_0x3ce1c9[_0x4eca72]);}export async function promptSingleAppSelection(_0x293b3d){const _0x5b1c8c=a88_0x43a1,_0x3b9115=[{'name':a88_0xb6a5a1[_0x5b1c8c(0x185)]('(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)'),'value':_0x5b1c8c(0x187)},{'name':a88_0xb6a5a1['yellow'](_0x5b1c8c(0x18f)),'value':_0x5b1c8c(0x189)},..._0x293b3d[_0x5b1c8c(0x196)](_0x3e06a9=>({'name':_0x3e06a9['appName']+'\x20\x20'+a88_0xb6a5a1['gray']('('+_0x3e06a9[_0x5b1c8c(0x194)]+')'),'value':_0x3e06a9[_0x5b1c8c(0x194)]}))],_0x10ac7b=await select({'message':'请选择要绑定的应用:','choices':_0x3b9115});if(_0x10ac7b===_0x5b1c8c(0x187))return'skip';if(_0x10ac7b===_0x5b1c8c(0x189))return'custom';return _0x293b3d[_0x5b1c8c(0x192)](_0x32189a=>_0x32189a[_0x5b1c8c(0x194)]===_0x10ac7b);}export async function selectSingleAppcode(_0xd5355b){const _0x37b255=a88_0x43a1;if(!_0xd5355b)return writeCliSideChannelLine(a88_0xb6a5a1[_0x37b255(0x185)]('(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)')),_fallbackOrSkip();writeCliSideChannelLine('正在获取可用应用列表...');let _0x533075;try{_0x533075=await withActiveCookie(_0xd5355b,()=>listRemoteApps());}catch(_0x5edc5b){writeCliSideChannelLine(a88_0xb6a5a1['yellow'](_0x37b255(0x18d)));if(_0x5edc5b instanceof Error)writeCliSideChannelLine(a88_0xb6a5a1[_0x37b255(0x185)](_0x37b255(0x197)+_0x5edc5b['message']+')'));return _fallbackOrSkip();}if(_0x533075[_0x37b255(0x17e)]===0x0)return writeCliSideChannelLine(a88_0xb6a5a1[_0x37b255(0x193)](_0x37b255(0x186))),_fallbackOrSkip();const _0x4cf1a7=await promptSingleAppSelection(_0x533075);if(_0x4cf1a7===_0x37b255(0x187))return'';if(_0x4cf1a7===_0x37b255(0x189))return promptCustomAppcode();return _0x4cf1a7['appCode'];}export async function selectMultipleApps(_0x17bbb1){const _0x346f95=a88_0x43a1;writeCliSideChannelLine('正在获取可用应用列表...');let _0x2abf88;try{_0x2abf88=await withActiveCookie(_0x17bbb1,()=>listRemoteApps());}catch(_0x4cab86){writeCliSideChannelLine(_0x346f95(0x198));if(_0x4cab86 instanceof Error)writeCliSideChannelLine('\x20\x20('+_0x4cab86['message']+')');return'custom';}if(_0x2abf88[_0x346f95(0x17e)]===0x0)return writeCliSideChannelLine(_0x346f95(0x18e)),_0x346f95(0x189);return promptAppSelection(_0x2abf88);}async function _fallbackOrSkip(){const _0xca6503=a88_0x43a1,_0x40728e=await select({'message':_0xca6503(0x19a),'choices':[{'name':a88_0xb6a5a1[_0xca6503(0x185)]('(跳过,稍后配置)'),'value':_0xca6503(0x187)},{'name':a88_0xb6a5a1[_0xca6503(0x193)]('✎\x20手动输入'),'value':_0xca6503(0x19b)}]});if(_0x40728e===_0xca6503(0x187))return'';return promptCustomAppcode();}
1
+ function a38_0x268f(){const _0x4aa7d3=['2681855ccHUWd','\x0a未找到可用应用。','includes','16534644SYwfgH','3JFvSMk','find','(跳过,稍后配置)','valid','appCode','Invalid\x20App\x20Code','message','\x20\x20(','正在获取可用应用列表...','skip','✎\x20自定义输入\x20appcode','\x0a无法获取远程应用列表,请手动输入。','6297112aStjBC','map','10dSFKdD','cyan','未找到可用应用。','请输入\x20App\x20Code:','2nuDqJV','appName','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','请选择要绑定的应用:','trim','yellow','9068873isXZkU','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','length','9rgsZjn','App\x20Code:','manual','custom','295232OPYnlg','✎\x20手动输入','18ZZbWnr','7254836dzeMOb','11544288IrhcUd','gray'];a38_0x268f=function(){return _0x4aa7d3;};return a38_0x268f();}(function(_0x12cc43,_0x10b5de){const _0x3cc9f4=a38_0x2da3,_0x10a4e2=_0x12cc43();while(!![]){try{const _0x34d512=-parseInt(_0x3cc9f4(0x124))/0x1*(parseInt(_0x3cc9f4(0x108))/0x2)+-parseInt(_0x3cc9f4(0x112))/0x3*(parseInt(_0x3cc9f4(0x10b))/0x4)+parseInt(_0x3cc9f4(0x10e))/0x5*(parseInt(_0x3cc9f4(0x10a))/0x6)+parseInt(_0x3cc9f4(0x10c))/0x7+parseInt(_0x3cc9f4(0x11e))/0x8*(-parseInt(_0x3cc9f4(0x104))/0x9)+parseInt(_0x3cc9f4(0x120))/0xa*(-parseInt(_0x3cc9f4(0x101))/0xb)+parseInt(_0x3cc9f4(0x111))/0xc;if(_0x34d512===_0x10b5de)break;else _0x10a4e2['push'](_0x10a4e2['shift']());}catch(_0x248f7d){_0x10a4e2['push'](_0x10a4e2['shift']());}}}(a38_0x268f,0xdf8cd));import{input,checkbox,select}from'@inquirer/prompts';import a38_0x5d93d7 from'chalk';function a38_0x2da3(_0x4a2a96,_0x564b11){_0x4a2a96=_0x4a2a96-0x101;const _0x268f8b=a38_0x268f();let _0x2da34e=_0x268f8b[_0x4a2a96];return _0x2da34e;}import{validateAppcode}from'../../commands/common/validate.js';import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export async function promptCustomAppcode(){const _0x59b7d3=a38_0x2da3,_0x5d1506=await input({'message':_0x59b7d3(0x123),'validate':_0xc38716=>{const _0x39c30d=_0x59b7d3,_0x32e021=validateAppcode(_0xc38716[_0x39c30d(0x128)]());return _0x32e021[_0x39c30d(0x115)]||_0x32e021[_0x39c30d(0x118)]||_0x39c30d(0x117);}});return _0x5d1506[_0x59b7d3(0x128)]();}export async function promptAppSelection(_0x2c9420){const _0xb2f458=a38_0x2da3,_0x5cdfd1=[{'name':a38_0x5d93d7[_0xb2f458(0x129)](_0xb2f458(0x11c)),'value':-0x1},..._0x2c9420[_0xb2f458(0x11f)]((_0x2c4991,_0x466714)=>({'name':_0x2c4991[_0xb2f458(0x125)]+'\x20\x20'+a38_0x5d93d7[_0xb2f458(0x10d)]('('+_0x2c4991[_0xb2f458(0x116)]+')'),'value':_0x466714}))],_0x47466d=await checkbox({'message':'获取到\x20'+a38_0x5d93d7[_0xb2f458(0x121)](_0x2c9420[_0xb2f458(0x103)])+_0xb2f458(0x102),'choices':_0x5cdfd1,'loop':![]});if(_0x47466d[_0xb2f458(0x110)](-0x1))return'custom';if(_0x47466d[_0xb2f458(0x103)]===0x0)return _0xb2f458(0x107);return _0x47466d[_0xb2f458(0x11f)](_0x154e77=>_0x2c9420[_0x154e77]);}export async function promptSingleAppSelection(_0x42cc87){const _0x1e8bad=a38_0x2da3,_0x341c02=[{'name':a38_0x5d93d7[_0x1e8bad(0x10d)]('(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)'),'value':_0x1e8bad(0x11b)},{'name':a38_0x5d93d7[_0x1e8bad(0x129)](_0x1e8bad(0x11c)),'value':_0x1e8bad(0x107)},..._0x42cc87[_0x1e8bad(0x11f)](_0x388847=>({'name':_0x388847[_0x1e8bad(0x125)]+'\x20\x20'+a38_0x5d93d7[_0x1e8bad(0x10d)]('('+_0x388847['appCode']+')'),'value':_0x388847[_0x1e8bad(0x116)]}))],_0x3d02b3=await select({'message':_0x1e8bad(0x127),'choices':_0x341c02});if(_0x3d02b3===_0x1e8bad(0x11b))return _0x1e8bad(0x11b);if(_0x3d02b3===_0x1e8bad(0x107))return _0x1e8bad(0x107);return _0x42cc87[_0x1e8bad(0x113)](_0x243806=>_0x243806[_0x1e8bad(0x116)]===_0x3d02b3);}export async function selectSingleAppcode(_0x69d492){const _0x47dfc4=a38_0x2da3;if(!_0x69d492)return writeCliSideChannelLine(a38_0x5d93d7['gray'](_0x47dfc4(0x126))),_fallbackOrSkip();writeCliSideChannelLine(_0x47dfc4(0x11a));let _0x1927ca;try{_0x1927ca=await withActiveCookie(_0x69d492,()=>listRemoteApps());}catch(_0x50e975){writeCliSideChannelLine(a38_0x5d93d7[_0x47dfc4(0x129)]('无法获取远程应用列表,请手动输入。'));if(_0x50e975 instanceof Error)writeCliSideChannelLine(a38_0x5d93d7['gray']('\x20\x20('+_0x50e975[_0x47dfc4(0x118)]+')'));return _fallbackOrSkip();}if(_0x1927ca['length']===0x0)return writeCliSideChannelLine(a38_0x5d93d7[_0x47dfc4(0x129)](_0x47dfc4(0x122))),_fallbackOrSkip();const _0x31f824=await promptSingleAppSelection(_0x1927ca);if(_0x31f824===_0x47dfc4(0x11b))return'';if(_0x31f824===_0x47dfc4(0x107))return promptCustomAppcode();return _0x31f824[_0x47dfc4(0x116)];}export async function selectMultipleApps(_0x54d74c){const _0x562e77=a38_0x2da3;writeCliSideChannelLine(_0x562e77(0x11a));let _0x5ed094;try{_0x5ed094=await withActiveCookie(_0x54d74c,()=>listRemoteApps());}catch(_0x40061d){writeCliSideChannelLine(_0x562e77(0x11d));if(_0x40061d instanceof Error)writeCliSideChannelLine(_0x562e77(0x119)+_0x40061d[_0x562e77(0x118)]+')');return _0x562e77(0x107);}if(_0x5ed094['length']===0x0)return writeCliSideChannelLine(_0x562e77(0x10f)),'custom';return promptAppSelection(_0x5ed094);}async function _fallbackOrSkip(){const _0x1596f3=a38_0x2da3,_0x2ed37b=await select({'message':_0x1596f3(0x105),'choices':[{'name':a38_0x5d93d7['gray'](_0x1596f3(0x114)),'value':_0x1596f3(0x11b)},{'name':a38_0x5d93d7[_0x1596f3(0x129)](_0x1596f3(0x109)),'value':_0x1596f3(0x106)}]});if(_0x2ed37b===_0x1596f3(0x11b))return'';return promptCustomAppcode();}
@@ -1 +1 @@
1
- const a87_0x53d3be=a87_0x5077;(function(_0x263ca7,_0x2b6de2){const _0x298847=a87_0x5077,_0xf41e62=_0x263ca7();while(!![]){try{const _0x26e1ad=-parseInt(_0x298847(0x201))/0x1*(-parseInt(_0x298847(0x1fa))/0x2)+-parseInt(_0x298847(0x1f7))/0x3*(-parseInt(_0x298847(0x1f9))/0x4)+parseInt(_0x298847(0x207))/0x5+-parseInt(_0x298847(0x203))/0x6*(-parseInt(_0x298847(0x1f8))/0x7)+parseInt(_0x298847(0x206))/0x8*(-parseInt(_0x298847(0x204))/0x9)+-parseInt(_0x298847(0x200))/0xa*(-parseInt(_0x298847(0x1fc))/0xb)+-parseInt(_0x298847(0x1fb))/0xc;if(_0x26e1ad===_0x2b6de2)break;else _0xf41e62['push'](_0xf41e62['shift']());}catch(_0x3764c2){_0xf41e62['push'](_0xf41e62['shift']());}}}(a87_0x3a84,0x21b8e));export const CODE_FLAG={'name':'code','type':a87_0x53d3be(0x1f6),'required':!![],'description':a87_0x53d3be(0x1fd),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'}};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};function a87_0x5077(_0x3783e1,_0x19ca5e){_0x3783e1=_0x3783e1-0x1f4;const _0x3a84ae=a87_0x3a84();let _0x507762=_0x3a84ae[_0x3783e1];return _0x507762;}export const SQLCODE_FLAG={'name':a87_0x53d3be(0x202),'type':a87_0x53d3be(0x1f6),'required':!![],'description':a87_0x53d3be(0x1f5),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a87_0x53d3be(0x205)}};function a87_0x3a84(){const _0x4bba54=['190274CdYROp','573044zOhPMg','1022nLQEcX','5007720XJPPpc','473bdgsQS','Dataset\x20code\x20(32-char\x20hex\x20UUID)','POSTGRESQL','MYSQL','34690GLIyxk','17WKRuTD','sqlcode','24kIQElT','6651EDWhvb','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','1128JmMFbT','1248960BoJGan','Database\x20product\x20type','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','string','3zIhySX'];a87_0x3a84=function(){return _0x4bba54;};return a87_0x3a84();}export const APPCODE_FLAG_OPTIONAL={'name':'appcode','type':a87_0x53d3be(0x1f6),'required':![],'description':'App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)'};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':'number','required':!![],'description':'Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)'};export const DB_TYPE_FLAG={'name':'dbtype','type':a87_0x53d3be(0x1f6),'required':!![],'description':a87_0x53d3be(0x1f4),'enum':[a87_0x53d3be(0x1ff),a87_0x53d3be(0x1fe)]};
1
+ function a39_0x27e1(_0x421c9e,_0x4fbb51){_0x421c9e=_0x421c9e-0x19a;const _0x269aaf=a39_0x269a();let _0x27e180=_0x269aaf[_0x421c9e];return _0x27e180;}const a39_0x332208=a39_0x27e1;(function(_0x3e5473,_0x50f5bd){const _0xfa64a8=a39_0x27e1,_0x206259=_0x3e5473();while(!![]){try{const _0x288250=-parseInt(_0xfa64a8(0x1a8))/0x1*(-parseInt(_0xfa64a8(0x1a5))/0x2)+parseInt(_0xfa64a8(0x1a3))/0x3*(-parseInt(_0xfa64a8(0x1a0))/0x4)+-parseInt(_0xfa64a8(0x1ad))/0x5+-parseInt(_0xfa64a8(0x1a9))/0x6*(-parseInt(_0xfa64a8(0x1a6))/0x7)+-parseInt(_0xfa64a8(0x1b1))/0x8*(-parseInt(_0xfa64a8(0x19d))/0x9)+-parseInt(_0xfa64a8(0x1a1))/0xa*(-parseInt(_0xfa64a8(0x19c))/0xb)+-parseInt(_0xfa64a8(0x19a))/0xc*(parseInt(_0xfa64a8(0x1af))/0xd);if(_0x288250===_0x50f5bd)break;else _0x206259['push'](_0x206259['shift']());}catch(_0x140f5d){_0x206259['push'](_0x206259['shift']());}}}(a39_0x269a,0x46097));export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}$/i,'description':a39_0x332208(0x1ac)};export const CODE_FLAG={'name':'code','type':a39_0x332208(0x1ab),'required':!![],'description':a39_0x332208(0x1aa),'pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':'datasetcode','description':a39_0x332208(0x1aa)};export const SQLCODE_FLAG={'name':a39_0x332208(0x19f),'type':a39_0x332208(0x1ab),'required':!![],'description':a39_0x332208(0x1b0),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const APPCODE_FLAG_OPTIONAL={'name':a39_0x332208(0x19e),'type':a39_0x332208(0x1ab),'required':![],'description':a39_0x332208(0x1a2)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};function a39_0x269a(){const _0x5091c2=['Dataset\x20code\x20(32-char\x20hex\x20UUID)','string','a\x2032-character\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','283655xYpMqh','Database\x20product\x20type','13BlPgvM','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','39912UALtvQ','6866436IThfSg','number','58278rgcJmz','27mrvJlI','appcode','sqlcode','8RUwmBK','1030kKBoVF','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','79557rqBuSH','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','591884BLXTXJ','1610KHOcXR','dbtype','1lLKLTA','2928otiIlD'];a39_0x269a=function(){return _0x5091c2;};return a39_0x269a();}export const DBLINK_ID_FLAG={'name':'id','type':a39_0x332208(0x19b),'required':!![],'description':a39_0x332208(0x1a4)};export const DB_TYPE_FLAG={'name':a39_0x332208(0x1a7),'type':a39_0x332208(0x1ab),'required':!![],'description':a39_0x332208(0x1ae),'enum':['MYSQL','POSTGRESQL']};
@@ -1 +1 @@
1
- (function(_0x30de0d,_0x2484e0){const _0x3efcff=a86_0x5f0c,_0x5b5bbc=_0x30de0d();while(!![]){try{const _0x48d1cc=-parseInt(_0x3efcff(0x199))/0x1*(parseInt(_0x3efcff(0x194))/0x2)+-parseInt(_0x3efcff(0x198))/0x3+parseInt(_0x3efcff(0x192))/0x4*(parseInt(_0x3efcff(0x18d))/0x5)+parseInt(_0x3efcff(0x18e))/0x6+-parseInt(_0x3efcff(0x190))/0x7*(-parseInt(_0x3efcff(0x191))/0x8)+parseInt(_0x3efcff(0x197))/0x9*(parseInt(_0x3efcff(0x196))/0xa)+-parseInt(_0x3efcff(0x195))/0xb;if(_0x48d1cc===_0x2484e0)break;else _0x5b5bbc['push'](_0x5b5bbc['shift']());}catch(_0x16ed45){_0x5b5bbc['push'](_0x5b5bbc['shift']());}}}(a86_0x2b6d,0x6d654));export function validateAppcode(_0x1edfe2){const _0x290496=a86_0x5f0c,_0x279fe3=_0x1edfe2[_0x290496(0x18f)]();if(!_0x279fe3)return{'valid':![],'message':_0x290496(0x19a)};if(_0x279fe3[_0x290496(0x193)]>0x64)return{'valid':![],'message':_0x290496(0x19b)};if(!/^[A-Za-z0-9_-]+$/['test'](_0x279fe3))return{'valid':![],'message':'Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed'};return{'valid':!![]};}function a86_0x5f0c(_0x39007e,_0x44f237){_0x39007e=_0x39007e-0x18d;const _0x2b6dc2=a86_0x2b6d();let _0x5f0c20=_0x2b6dc2[_0x39007e];return _0x5f0c20;}function a86_0x2b6d(){const _0x482a9f=['10ZdfXsO','6119541kiAeFr','873324NPPipC','10916acBuuI','App\x20Code\x20cannot\x20be\x20empty','App\x20Code\x20cannot\x20exceed\x20100\x20characters','5245JGNdDP','1848624UluoHc','trim','20762PSVvGD','488cywZDY','2888TPYDVq','length','2twFFAk','12938739ziWgar'];a86_0x2b6d=function(){return _0x482a9f;};return a86_0x2b6d();}
1
+ (function(_0x42fe2d,_0x336dd7){const _0x9c61ec=a40_0x2e69,_0x530515=_0x42fe2d();while(!![]){try{const _0xe975b8=parseInt(_0x9c61ec(0x198))/0x1+-parseInt(_0x9c61ec(0x19d))/0x2*(-parseInt(_0x9c61ec(0x190))/0x3)+-parseInt(_0x9c61ec(0x194))/0x4+-parseInt(_0x9c61ec(0x197))/0x5*(-parseInt(_0x9c61ec(0x19b))/0x6)+parseInt(_0x9c61ec(0x19c))/0x7*(-parseInt(_0x9c61ec(0x191))/0x8)+parseInt(_0x9c61ec(0x19a))/0x9*(-parseInt(_0x9c61ec(0x192))/0xa)+-parseInt(_0x9c61ec(0x195))/0xb*(-parseInt(_0x9c61ec(0x18f))/0xc);if(_0xe975b8===_0x336dd7)break;else _0x530515['push'](_0x530515['shift']());}catch(_0x28e129){_0x530515['push'](_0x530515['shift']());}}}(a40_0x593c,0x1df66));export function validateAppcode(_0x392620){const _0x47378e=a40_0x2e69,_0x1e288b=_0x392620[_0x47378e(0x193)]();if(!_0x1e288b)return{'valid':![],'message':_0x47378e(0x19e)};if(_0x1e288b[_0x47378e(0x199)]>0x64)return{'valid':![],'message':'App\x20Code\x20cannot\x20exceed\x20100\x20characters'};if(!/^[A-Za-z0-9_-]+$/['test'](_0x1e288b))return{'valid':![],'message':_0x47378e(0x196)};return{'valid':!![]};}function a40_0x2e69(_0x249ba6,_0xf04739){_0x249ba6=_0x249ba6-0x18f;const _0x593c93=a40_0x593c();let _0x2e6970=_0x593c93[_0x249ba6];return _0x2e6970;}function a40_0x593c(){const _0x1e19c6=['88jvztGm','10AclIRZ','trim','897464HmFaUZ','388509vmxVcy','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','10CzVCuG','143033dRtcHT','length','1999341aMweWK','640290XuZaIV','20258cGBusf','2Ewjuni','App\x20Code\x20cannot\x20be\x20empty','60YTRzYa','204051SEiSwK'];a40_0x593c=function(){return _0x1e19c6;};return a40_0x593c();}
@@ -1 +1 @@
1
- const a96_0x28d18f=a96_0x5f33;(function(_0xad785b,_0x4fb072){const _0x4859e5=a96_0x5f33,_0x281bd5=_0xad785b();while(!![]){try{const _0x21c8f4=parseInt(_0x4859e5(0x12d))/0x1*(parseInt(_0x4859e5(0x134))/0x2)+parseInt(_0x4859e5(0x12c))/0x3+parseInt(_0x4859e5(0x129))/0x4*(parseInt(_0x4859e5(0x12f))/0x5)+-parseInt(_0x4859e5(0x126))/0x6+-parseInt(_0x4859e5(0x12e))/0x7*(-parseInt(_0x4859e5(0x123))/0x8)+parseInt(_0x4859e5(0x138))/0x9+-parseInt(_0x4859e5(0x13a))/0xa;if(_0x21c8f4===_0x4fb072)break;else _0x281bd5['push'](_0x281bd5['shift']());}catch(_0x1fad89){_0x281bd5['push'](_0x281bd5['shift']());}}}(a96_0x27b9,0x31740));function a96_0x27b9(){const _0x161ce0=['Missing\x20key.','get','config','\x20config\x20get\x20--key\x20<key>','1506gtQwCf','read','string','appcode','2463300tyaGbH','Usage:\x20','7248210RwOsMA','8EQBruK','Key\x20not\x20found:\x20','key','1654224wlTWac','Get\x20a\x20config\x20value\x20by\x20key','object','1036764tUzngH','validation','app','388071cDJmqW','241eRnQup','2515548thysWx','5VlGWww'];a96_0x27b9=function(){return _0x161ce0;};return a96_0x27b9();}import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x2d2751){const _0x502e79=a96_0x5f33,_0x5b0974=_0x2d2751['str'](_0x502e79(0x125));if(!_0x5b0974)throw CliErrors[_0x502e79(0x12a)](_0x502e79(0x130),_0x502e79(0x139)+CLI_BIN_NAME+_0x502e79(0x133));const _0x1c0158=readConfig(),_0x416a1e=_0x5b0974===_0x502e79(0x12b)?_0x502e79(0x137):_0x5b0974,_0x20f98d=_0x1c0158[_0x416a1e];if(_0x20f98d===undefined)throw CliErrors[_0x502e79(0x12a)](_0x502e79(0x124)+_0x5b0974);return{'ok':!![],'data':typeof _0x20f98d==='object'?_0x20f98d:{[_0x416a1e]:_0x20f98d},'message':typeof _0x20f98d===_0x502e79(0x128)?undefined:String(_0x20f98d)};}function a96_0x5f33(_0x39cc6e,_0x26d6f6){_0x39cc6e=_0x39cc6e-0x123;const _0x27b948=a96_0x27b9();let _0x5f33d=_0x27b948[_0x39cc6e];return _0x5f33d;}export const configGetDefinition={'service':a96_0x28d18f(0x132),'command':a96_0x28d18f(0x131),'description':a96_0x28d18f(0x127),'risk':a96_0x28d18f(0x135),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a96_0x28d18f(0x125),'type':a96_0x28d18f(0x136),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
1
+ function a41_0x4d2a(){const _0x4fc805=['50950OUOMoz','526PUTLuD','8MgMDmA','20AOeNfl','2413233EDsgNw','app','string','99PYNynl','1263619AkHqrD','323781SYZqrY','Key\x20not\x20found:\x20','5412612unkRPk','get','key','1071yXoKsJ','30priAok','348714OYhPNU'];a41_0x4d2a=function(){return _0x4fc805;};return a41_0x4d2a();}const a41_0x372f46=a41_0x1191;(function(_0x1dbfc4,_0x31eefd){const _0x205934=a41_0x1191,_0x365c1c=_0x1dbfc4();while(!![]){try{const _0x24849=-parseInt(_0x205934(0x13b))/0x1*(parseInt(_0x205934(0x12e))/0x2)+parseInt(_0x205934(0x136))/0x3*(parseInt(_0x205934(0x130))/0x4)+parseInt(_0x205934(0x13c))/0x5*(-parseInt(_0x205934(0x13d))/0x6)+parseInt(_0x205934(0x135))/0x7*(parseInt(_0x205934(0x12f))/0x8)+-parseInt(_0x205934(0x131))/0x9+parseInt(_0x205934(0x13e))/0xa*(parseInt(_0x205934(0x134))/0xb)+parseInt(_0x205934(0x138))/0xc;if(_0x24849===_0x31eefd)break;else _0x365c1c['push'](_0x365c1c['shift']());}catch(_0x287029){_0x365c1c['push'](_0x365c1c['shift']());}}}(a41_0x4d2a,0x4dc46));function a41_0x1191(_0xae107c,_0x4526c4){_0xae107c=_0xae107c-0x12e;const _0x4d2a22=a41_0x4d2a();let _0x119105=_0x4d2a22[_0xae107c];return _0x119105;}import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x377674){const _0xe6b492=a41_0x1191,_0x187440=_0x377674['str']('key');if(!_0x187440)throw CliErrors['validation']('Missing\x20key.','Usage:\x20'+CLI_BIN_NAME+'\x20config\x20get\x20--key\x20<key>');const _0x14e390=readConfig(),_0x477c90=_0x187440===_0xe6b492(0x132)?'appcode':_0x187440,_0x19f80c=_0x14e390[_0x477c90];if(_0x19f80c===undefined)throw CliErrors['validation'](_0xe6b492(0x137)+_0x187440);return{'ok':!![],'data':typeof _0x19f80c==='object'?_0x19f80c:{[_0x477c90]:_0x19f80c},'message':typeof _0x19f80c==='object'?undefined:String(_0x19f80c)};}export const configGetDefinition={'service':'config','command':a41_0x372f46(0x139),'description':'Get\x20a\x20config\x20value\x20by\x20key','risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a41_0x372f46(0x13a),'type':a41_0x372f46(0x133),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x13c524,_0x3d1e3c){const _0x668560=a93_0x13a8,_0x408f4d=_0x13c524();while(!![]){try{const _0x4aba6d=-parseInt(_0x668560(0x1ab))/0x1+parseInt(_0x668560(0x1a5))/0x2*(parseInt(_0x668560(0x1ad))/0x3)+parseInt(_0x668560(0x1a9))/0x4*(parseInt(_0x668560(0x1a6))/0x5)+-parseInt(_0x668560(0x1a4))/0x6+parseInt(_0x668560(0x1aa))/0x7*(parseInt(_0x668560(0x1ae))/0x8)+-parseInt(_0x668560(0x1ac))/0x9*(parseInt(_0x668560(0x1a7))/0xa)+parseInt(_0x668560(0x1a8))/0xb;if(_0x4aba6d===_0x3d1e3c)break;else _0x408f4d['push'](_0x408f4d['shift']());}catch(_0xf96c68){_0x408f4d['push'](_0x408f4d['shift']());}}}(a93_0x4369,0x631e0));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a93_0x13a8(_0x39bff8,_0x5f120f){_0x39bff8=_0x39bff8-0x1a4;const _0x43690f=a93_0x4369();let _0x13a87d=_0x43690f[_0x39bff8];return _0x13a87d;}import{configSetDefinition}from'../../commands/config/set.js';function a93_0x4369(){const _0x5e5da9=['46ugKuPD','13665uuqDIc','6930pUKdxL','3688322IAkoFR','372WmYAps','158403vpexXd','175273YqvPQC','6237bEtoKd','74631SMfDmu','136AvdeVN','2908974ITgzKN'];a93_0x4369=function(){return _0x5e5da9;};return a93_0x4369();}export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
1
+ function a42_0x1fdf(){const _0x1a0bbd=['108468bJMDYU','3675876cWoWtP','1944nxcULw','1785528hidwqG','363798wyNsow','18593850zFVrZm','2PZHnyc','6114645ptOTCl','13195JdAzsc','4CuzokH'];a42_0x1fdf=function(){return _0x1a0bbd;};return a42_0x1fdf();}(function(_0x13fb80,_0x1e223f){const _0x55eeb7=a42_0x489b,_0x2d1f09=_0x13fb80();while(!![]){try{const _0x1dfdd7=parseInt(_0x55eeb7(0x123))/0x1*(-parseInt(_0x55eeb7(0x11f))/0x2)+parseInt(_0x55eeb7(0x11d))/0x3+-parseInt(_0x55eeb7(0x122))/0x4*(-parseInt(_0x55eeb7(0x120))/0x5)+parseInt(_0x55eeb7(0x124))/0x6+-parseInt(_0x55eeb7(0x121))/0x7*(-parseInt(_0x55eeb7(0x125))/0x8)+parseInt(_0x55eeb7(0x11c))/0x9+-parseInt(_0x55eeb7(0x11e))/0xa;if(_0x1dfdd7===_0x1e223f)break;else _0x2d1f09['push'](_0x2d1f09['shift']());}catch(_0x5d0040){_0x2d1f09['push'](_0x2d1f09['shift']());}}}(a42_0x1fdf,0x9d93b));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';function a42_0x489b(_0x15f3c5,_0x2e257d){_0x15f3c5=_0x15f3c5-0x11c;const _0x1fdf68=a42_0x1fdf();let _0x489b5f=_0x1fdf68[_0x15f3c5];return _0x489b5f;}export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
@@ -1 +1 @@
1
- function a92_0x5319(_0x1802e3,_0xaf7805){_0x1802e3=_0x1802e3-0x6d;const _0x3b57c9=a92_0x3b57();let _0x53199e=_0x3b57c9[_0x1802e3];return _0x53199e;}function a92_0x3b57(){const _0x5b7b26=['116NGXyqR','1sZDhws','1631910BThCsv','List\x20all\x20config\x20values','39448950ldfOxS','147279xMaYIR','global','590110RkjEKk','1495858ZmpPKD','9IsqNCL','boolean','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','read','4134280WFQNvZ','bool','config','4190112OXhhCo'];a92_0x3b57=function(){return _0x5b7b26;};return a92_0x3b57();}const a92_0x10cccf=a92_0x5319;(function(_0xb9924,_0x2c8f35){const _0x4aae69=a92_0x5319,_0x55a2d3=_0xb9924();while(!![]){try{const _0x281322=parseInt(_0x4aae69(0x6d))/0x1*(-parseInt(_0x4aae69(0x74))/0x2)+-parseInt(_0x4aae69(0x71))/0x3*(parseInt(_0x4aae69(0x7d))/0x4)+parseInt(_0x4aae69(0x73))/0x5+-parseInt(_0x4aae69(0x7c))/0x6+parseInt(_0x4aae69(0x6e))/0x7+-parseInt(_0x4aae69(0x79))/0x8*(parseInt(_0x4aae69(0x75))/0x9)+parseInt(_0x4aae69(0x70))/0xa;if(_0x281322===_0x2c8f35)break;else _0x55a2d3['push'](_0x55a2d3['shift']());}catch(_0xc8232f){_0x55a2d3['push'](_0x55a2d3['shift']());}}}(a92_0x3b57,0xddfe4));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x56b0bc){const _0x414d6e=a92_0x5319,_0xe6d3a5=_0x56b0bc[_0x414d6e(0x7a)](_0x414d6e(0x72))?readScopedConfig(_0x414d6e(0x72)):readConfig();return{'ok':!![],'data':_0xe6d3a5};}export const configListDefinition={'service':a92_0x10cccf(0x7b),'command':'list','description':a92_0x10cccf(0x6f),'risk':a92_0x10cccf(0x78),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a92_0x10cccf(0x72),'type':a92_0x10cccf(0x76),'description':a92_0x10cccf(0x77),'default':![]}],'execute':execute};
1
+ const a43_0x423791=a43_0x1d58;(function(_0x11a452,_0x34ff7f){const _0x2c6a4c=a43_0x1d58,_0x15fdba=_0x11a452();while(!![]){try{const _0x12ca32=-parseInt(_0x2c6a4c(0x95))/0x1*(parseInt(_0x2c6a4c(0x9d))/0x2)+-parseInt(_0x2c6a4c(0x9c))/0x3+-parseInt(_0x2c6a4c(0x93))/0x4+parseInt(_0x2c6a4c(0x97))/0x5*(parseInt(_0x2c6a4c(0x90))/0x6)+parseInt(_0x2c6a4c(0x9e))/0x7+parseInt(_0x2c6a4c(0x96))/0x8*(parseInt(_0x2c6a4c(0x9a))/0x9)+-parseInt(_0x2c6a4c(0x99))/0xa*(parseInt(_0x2c6a4c(0x9b))/0xb);if(_0x12ca32===_0x34ff7f)break;else _0x15fdba['push'](_0x15fdba['shift']());}catch(_0x3c8765){_0x15fdba['push'](_0x15fdba['shift']());}}}(a43_0x57c7,0xbbbbe));function a43_0x1d58(_0x12fa4d,_0xda2146){_0x12fa4d=_0x12fa4d-0x90;const _0x57c799=a43_0x57c7();let _0x1d5888=_0x57c799[_0x12fa4d];return _0x1d5888;}function a43_0x57c7(){const _0x59619c=['50174FlFqwK','6552945qquBfp','2788998rAfhSW','global','boolean','439768CzCAVj','list','21TeCfyP','1690824JbYPTr','5HAhAiq','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','20oBDfdt','45JySabV','2992594PEBYZf','1523694rlOmjY'];a43_0x57c7=function(){return _0x59619c;};return a43_0x57c7();}import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x5acad5){const _0x1cf683=a43_0x1d58,_0x289b41=_0x5acad5['bool'](_0x1cf683(0x91))?readScopedConfig(_0x1cf683(0x91)):readConfig();return{'ok':!![],'data':_0x289b41};}export const configListDefinition={'service':'config','command':a43_0x423791(0x94),'description':'List\x20all\x20config\x20values','risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'global','type':a43_0x423791(0x92),'description':a43_0x423791(0x98),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a94_0x29b036=a94_0xefdf;(function(_0x1d3e75,_0x995a5a){const _0x58264b=a94_0xefdf,_0x516b66=_0x1d3e75();while(!![]){try{const _0x3c2967=-parseInt(_0x58264b(0x1cc))/0x1+parseInt(_0x58264b(0x1c1))/0x2+parseInt(_0x58264b(0x1ca))/0x3*(-parseInt(_0x58264b(0x1eb))/0x4)+parseInt(_0x58264b(0x1bc))/0x5*(parseInt(_0x58264b(0x1dd))/0x6)+-parseInt(_0x58264b(0x1c8))/0x7*(parseInt(_0x58264b(0x1c3))/0x8)+-parseInt(_0x58264b(0x1d9))/0x9*(parseInt(_0x58264b(0x1cb))/0xa)+-parseInt(_0x58264b(0x1e5))/0xb*(-parseInt(_0x58264b(0x1c7))/0xc);if(_0x3c2967===_0x995a5a)break;else _0x516b66['push'](_0x516b66['shift']());}catch(_0x19ded6){_0x516b66['push'](_0x516b66['shift']());}}}(a94_0x58e9,0x8bb83));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';function a94_0xefdf(_0x17c229,_0x3aa805){_0x17c229=_0x17c229-0x1bb;const _0x58e970=a94_0x58e9();let _0xefdfc0=_0x58e970[_0x17c229];return _0xefdfc0;}function a94_0x58e9(){const _0x2f341e=['\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','Invalid\x20locale\x20value.','368148yfwvbG','write','Config\x20value','Missing\x20key.','\x20app\x20add\x20<name>\x20--appcode\x20','\x22.\x20Allowed:\x20','global','Set\x20a\x20config\x20value','374kgehVs','locale','Usage:\x20','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','apps','set','2116MGTvAX','\x20appcode\x20set\x20to:\x20','bool','validation','Project','includes','app','15wyPKdb','str','object','Invalid\x20value\x20for\x20\x22','appcode','1303310eppDPh','\x20set\x20to:\x20','464clgTyb','key','Top-level\x20key\x20\x22','boolean','816012YMEAoB','15050ngixQp','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','4866eLSNDX','40jzDxxT','522618eLPSTj','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','length','\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','env','\x22\x20is\x20not\x20settable.','string','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','Global','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','`,\x20`','join','2407761hRwmkt','riskLevel'];a94_0x58e9=function(){return _0x2f341e;};return a94_0x58e9();}async function execute(_0xf44027){const _0x29f6fe=a94_0xefdf,_0x48b974=_0xf44027[_0x29f6fe(0x1bd)](_0x29f6fe(0x1c4)),_0x209c2b=_0xf44027[_0x29f6fe(0x1bd)]('value');if(!_0x48b974)throw CliErrors[_0x29f6fe(0x1ee)](_0x29f6fe(0x1e0),_0x29f6fe(0x1e7)+CLI_BIN_NAME+_0x29f6fe(0x1db));if(_0x209c2b===undefined||_0x209c2b==='')throw CliErrors[_0x29f6fe(0x1ee)]('Missing\x20value.',_0x29f6fe(0x1e7)+CLI_BIN_NAME+_0x29f6fe(0x1db));if(_0x209c2b['length']>0x1f4)throw CliErrors[_0x29f6fe(0x1ee)](_0x29f6fe(0x1cd));if(!isTopLevelConfigKey(_0x48b974))throw CliErrors[_0x29f6fe(0x1ee)](_0x29f6fe(0x1c5)+_0x48b974+_0x29f6fe(0x1d2),'Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(_0x48b974===_0x29f6fe(0x1da))throw CliErrors[_0x29f6fe(0x1ee)](_0x29f6fe(0x1e8));if(CONFIG_ENUM_VALUES[_0x48b974]&&!CONFIG_ENUM_VALUES[_0x48b974][_0x29f6fe(0x1f0)](_0x209c2b))throw CliErrors[_0x29f6fe(0x1ee)](_0x29f6fe(0x1bf)+_0x48b974+_0x29f6fe(0x1e2)+CONFIG_ENUM_VALUES[_0x48b974][_0x29f6fe(0x1d8)](',\x20'));if(_0x48b974===_0x29f6fe(0x1e6)&&!normalizeLocale(_0x209c2b))throw CliErrors[_0x29f6fe(0x1ee)](_0x29f6fe(0x1dc),_0x29f6fe(0x1d0));const _0x450ba7={'global':_0xf44027[_0x29f6fe(0x1ed)](_0x29f6fe(0x1e3))},_0x568eea=resolveWriteScope(_0x450ba7),_0x4ab7f=readScopedConfig(_0x568eea);let _0x20eec4=_0x48b974,_0x58cb6e=_0x209c2b;_0x48b974===_0x29f6fe(0x1bb)&&(_0x20eec4=_0x29f6fe(0x1c0),delete _0x4ab7f['app']);_0x48b974==='locale'&&(_0x58cb6e=normalizeLocale(_0x209c2b));if(_0x48b974==='env'){_0x58cb6e=normalizeEnv(_0x209c2b);if(!isProduction(_0x58cb6e)&&!isDaily(_0x58cb6e))throw CliErrors[_0x29f6fe(0x1ee)]('Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.',_0x29f6fe(0x1d6));}if(_0x48b974===_0x29f6fe(0x1c0)){const _0x4acbff=_0x4ab7f['apps']&&typeof _0x4ab7f['apps']===_0x29f6fe(0x1be)?Object['keys'](_0x4ab7f[_0x29f6fe(0x1e9)]):[];if(_0x4acbff[_0x29f6fe(0x1ce)]>0x0)throw CliErrors[_0x29f6fe(0x1ee)]('Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','Use\x20`'+CLI_BIN_NAME+_0x29f6fe(0x1e1)+_0x58cb6e+_0x29f6fe(0x1d7)+CLI_BIN_NAME+_0x29f6fe(0x1cf));const _0x5e3003=buildCanonicalProjectConfig({..._0x4ab7f},{'appCodes':[_0x58cb6e],'env':typeof _0x4ab7f[_0x29f6fe(0x1d1)]===_0x29f6fe(0x1d3)?_0x4ab7f['env']:undefined});writeScopedConfig(_0x5e3003,_0x568eea);const _0x165248=_0x568eea===_0x29f6fe(0x1e3)?_0x29f6fe(0x1d5):_0x29f6fe(0x1ef);return{'ok':!![],'message':'✓\x20'+_0x165248+_0x29f6fe(0x1ec)+_0x58cb6e+_0x29f6fe(0x1c9)};}_0x4ab7f[_0x20eec4]=_0x58cb6e,writeScopedConfig(_0x4ab7f,_0x568eea);const _0x1bf8c2=_0x568eea===_0x29f6fe(0x1e3)?_0x29f6fe(0x1d5):_0x29f6fe(0x1ef);return{'ok':!![],'message':'✓\x20'+_0x1bf8c2+'\x20'+_0x20eec4+_0x29f6fe(0x1c2)+_0x58cb6e};}export const configSetDefinition={'service':'config','command':a94_0x29b036(0x1ea),'description':a94_0x29b036(0x1e4),'risk':a94_0x29b036(0x1de),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a94_0x29b036(0x1c4),'type':a94_0x29b036(0x1d3),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','type':a94_0x29b036(0x1d3),'description':a94_0x29b036(0x1df),'required':!![]},{'name':a94_0x29b036(0x1e3),'type':a94_0x29b036(0x1c6),'description':a94_0x29b036(0x1d4),'default':![]}],'execute':execute};
1
+ function a44_0x4377(_0x52afa6,_0x51e4f0){_0x52afa6=_0x52afa6-0x90;const _0x38394f=a44_0x3839();let _0x437756=_0x38394f[_0x52afa6];return _0x437756;}const a44_0x57bc03=a44_0x4377;(function(_0x2e9763,_0x3bd4ae){const _0x4e87e4=a44_0x4377,_0xaa9b70=_0x2e9763();while(!![]){try{const _0x5512ed=-parseInt(_0x4e87e4(0xc0))/0x1*(parseInt(_0x4e87e4(0x96))/0x2)+-parseInt(_0x4e87e4(0x9b))/0x3+parseInt(_0x4e87e4(0x9c))/0x4*(-parseInt(_0x4e87e4(0xb2))/0x5)+parseInt(_0x4e87e4(0x9e))/0x6+-parseInt(_0x4e87e4(0xbd))/0x7*(parseInt(_0x4e87e4(0xba))/0x8)+parseInt(_0x4e87e4(0x9a))/0x9*(parseInt(_0x4e87e4(0x95))/0xa)+parseInt(_0x4e87e4(0xb7))/0xb*(parseInt(_0x4e87e4(0xb1))/0xc);if(_0x5512ed===_0x3bd4ae)break;else _0xaa9b70['push'](_0xaa9b70['shift']());}catch(_0x3de236){_0xaa9b70['push'](_0xaa9b70['shift']());}}}(a44_0x3839,0x8e813));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function a44_0x3839(){const _0x4bf58d=['app','validation','Usage:\x20','length','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','\x22.\x20Allowed:\x20','includes','Missing\x20key.','\x22\x20is\x20not\x20settable.','Missing\x20value.','Invalid\x20value\x20for\x20\x22','Settable\x20top-level\x20keys:\x20','key','str','join','env','248244xkYSuB','4023545hrOtmu','\x20set\x20to:\x20','config','riskLevel','locale','770kuqfHq','apps','string','6824AZfxQJ','Use\x20`','`,\x20`','2681KFzVew','global','\x20appcode\x20set\x20to:\x20','2rLTTCk','value','Global','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','bool','boolean','\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','appcode','Project','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','Invalid\x20locale\x20value.','520LHYFao','58150HotFOp','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','object','200259VvXNKP','3050997EVhJyW','4hxEdTX','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','1110684oTbYoC','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','write'];a44_0x3839=function(){return _0x4bf58d;};return a44_0x3839();}import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';async function execute(_0x5088f0){const _0x18e4fc=a44_0x4377,_0x5d4e47=_0x5088f0[_0x18e4fc(0xae)](_0x18e4fc(0xad)),_0x1e02a2=_0x5088f0[_0x18e4fc(0xae)](_0x18e4fc(0xc1));if(!_0x5d4e47)throw CliErrors[_0x18e4fc(0xa2)](_0x18e4fc(0xa8),_0x18e4fc(0xa3)+CLI_BIN_NAME+_0x18e4fc(0x9d));if(_0x1e02a2===undefined||_0x1e02a2==='')throw CliErrors[_0x18e4fc(0xa2)](_0x18e4fc(0xaa),_0x18e4fc(0xa3)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x1e02a2[_0x18e4fc(0xa4)]>0x1f4)throw CliErrors[_0x18e4fc(0xa2)](_0x18e4fc(0x98));if(!isTopLevelConfigKey(_0x5d4e47))throw CliErrors[_0x18e4fc(0xa2)]('Top-level\x20key\x20\x22'+_0x5d4e47+_0x18e4fc(0xa9),_0x18e4fc(0xac)+getTopLevelConfigKeySummary());if(_0x5d4e47===_0x18e4fc(0xb5))throw CliErrors['validation'](_0x18e4fc(0x9f));if(CONFIG_ENUM_VALUES[_0x5d4e47]&&!CONFIG_ENUM_VALUES[_0x5d4e47][_0x18e4fc(0xa7)](_0x1e02a2))throw CliErrors['validation'](_0x18e4fc(0xab)+_0x5d4e47+_0x18e4fc(0xa6)+CONFIG_ENUM_VALUES[_0x5d4e47][_0x18e4fc(0xaf)](',\x20'));if(_0x5d4e47===_0x18e4fc(0xb6)&&!normalizeLocale(_0x1e02a2))throw CliErrors[_0x18e4fc(0xa2)](_0x18e4fc(0x94),'Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US');const _0x4cb801={'global':_0x5088f0[_0x18e4fc(0xc4)]('global')},_0x908f60=resolveWriteScope(_0x4cb801),_0x20ff54=readScopedConfig(_0x908f60);let _0x207377=_0x5d4e47,_0x533169=_0x1e02a2;_0x5d4e47===_0x18e4fc(0xa1)&&(_0x207377=_0x18e4fc(0x91),delete _0x20ff54[_0x18e4fc(0xa1)]);_0x5d4e47===_0x18e4fc(0xb6)&&(_0x533169=normalizeLocale(_0x1e02a2));if(_0x5d4e47==='env'){_0x533169=normalizeEnv(_0x1e02a2);if(!isProduction(_0x533169)&&!isDaily(_0x533169))throw CliErrors[_0x18e4fc(0xa2)](_0x18e4fc(0xa5),_0x18e4fc(0x93));}if(_0x5d4e47===_0x18e4fc(0x91)){const _0x31fede=_0x20ff54[_0x18e4fc(0xb8)]&&typeof _0x20ff54[_0x18e4fc(0xb8)]===_0x18e4fc(0x99)?Object['keys'](_0x20ff54['apps']):[];if(_0x31fede['length']>0x0)throw CliErrors[_0x18e4fc(0xa2)](_0x18e4fc(0x90),_0x18e4fc(0xbb)+CLI_BIN_NAME+'\x20app\x20add\x20<name>\x20--appcode\x20'+_0x533169+_0x18e4fc(0xbc)+CLI_BIN_NAME+_0x18e4fc(0xc6));const _0x25e6d4=buildCanonicalProjectConfig({..._0x20ff54},{'appCodes':[_0x533169],'env':typeof _0x20ff54[_0x18e4fc(0xb0)]===_0x18e4fc(0xb9)?_0x20ff54[_0x18e4fc(0xb0)]:undefined});writeScopedConfig(_0x25e6d4,_0x908f60);const _0x5dbe5f=_0x908f60===_0x18e4fc(0xbe)?_0x18e4fc(0xc2):_0x18e4fc(0x92);return{'ok':!![],'message':'✓\x20'+_0x5dbe5f+_0x18e4fc(0xbf)+_0x533169+_0x18e4fc(0x97)};}_0x20ff54[_0x207377]=_0x533169,writeScopedConfig(_0x20ff54,_0x908f60);const _0x17021a=_0x908f60===_0x18e4fc(0xbe)?_0x18e4fc(0xc2):'Project';return{'ok':!![],'message':'✓\x20'+_0x17021a+'\x20'+_0x207377+_0x18e4fc(0xb3)+_0x533169};}export const configSetDefinition={'service':a44_0x57bc03(0xb4),'command':'set','description':'Set\x20a\x20config\x20value','risk':a44_0x57bc03(0xa0),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a44_0x57bc03(0xb9),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a44_0x57bc03(0xc1),'type':a44_0x57bc03(0xb9),'description':'Config\x20value','required':!![]},{'name':'global','type':a44_0x57bc03(0xc5),'description':a44_0x57bc03(0xc3),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x470a6a,_0x28466f){var _0x1e1d47=a95_0x1b26,_0x3ce10a=_0x470a6a();while(!![]){try{var _0x11cd4d=parseInt(_0x1e1d47(0xb0))/0x1*(-parseInt(_0x1e1d47(0xb9))/0x2)+parseInt(_0x1e1d47(0xb4))/0x3+parseInt(_0x1e1d47(0xae))/0x4+parseInt(_0x1e1d47(0xb5))/0x5+-parseInt(_0x1e1d47(0xbb))/0x6*(parseInt(_0x1e1d47(0xb6))/0x7)+parseInt(_0x1e1d47(0xb7))/0x8*(parseInt(_0x1e1d47(0xb2))/0x9)+-parseInt(_0x1e1d47(0xaf))/0xa;if(_0x11cd4d===_0x28466f)break;else _0x3ce10a['push'](_0x3ce10a['shift']());}catch(_0x2dc43d){_0x3ce10a['push'](_0x3ce10a['shift']());}}}(a95_0x1402,0x4fa1b));import{CLI_BIN_NAME}from'../../constant/cli.js';function a95_0x1402(){var _0x526151=['890037EmGuNy','validation','1161027mAEcti','3097605wcJClG','49tQSVvs','8COSene','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','230602RNaoWL','\x20init`\x20first.','230586BXHTAO','1787336nxLnek','7264670hzNOUk','2XbCdlE','project'];a95_0x1402=function(){return _0x526151;};return a95_0x1402();}import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};function a95_0x1b26(_0x297c84,_0x3030f0){_0x297c84=_0x297c84-0xae;var _0x14028b=a95_0x1402();var _0x1b26fe=_0x14028b[_0x297c84];return _0x1b26fe;}export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x1632a8){var _0x95808f=a95_0x1b26;if(_0x1632a8['global'])return'global';if(!isInProject())throw CliErrors[_0x95808f(0xb3)]('Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).',_0x95808f(0xb8)+CLI_BIN_NAME+_0x95808f(0xba));return _0x95808f(0xb1);}export function readScopedConfig(_0x59cd90){return readConfigFile(resolveWriteConfigPath(_0x59cd90));}export function writeScopedConfig(_0x5931e4,_0x1067f0){writeConfigFile(resolveWriteConfigPath(_0x1067f0),_0x5931e4);}
1
+ (function(_0xfc4fcb,_0x3809da){var _0x4dc129=a45_0x1a56,_0x37c192=_0xfc4fcb();while(!![]){try{var _0x12653a=parseInt(_0x4dc129(0x16d))/0x1*(parseInt(_0x4dc129(0x173))/0x2)+-parseInt(_0x4dc129(0x16a))/0x3*(parseInt(_0x4dc129(0x172))/0x4)+parseInt(_0x4dc129(0x16f))/0x5*(-parseInt(_0x4dc129(0x169))/0x6)+parseInt(_0x4dc129(0x167))/0x7+-parseInt(_0x4dc129(0x170))/0x8+parseInt(_0x4dc129(0x16b))/0x9+parseInt(_0x4dc129(0x16e))/0xa*(parseInt(_0x4dc129(0x174))/0xb);if(_0x12653a===_0x3809da)break;else _0x37c192['push'](_0x37c192['shift']());}catch(_0x4a59b7){_0x37c192['push'](_0x37c192['shift']());}}}(a45_0x138e,0xdedc3));import{CLI_BIN_NAME}from'../../constant/cli.js';function a45_0x1a56(_0x51149d,_0x132416){_0x51149d=_0x51149d-0x165;var _0x138e8f=a45_0x138e();var _0x1a5628=_0x138e8f[_0x51149d];return _0x1a5628;}function a45_0x138e(){var _0x24b0bb=['Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','670639UmOFXu','10950FdBQcN','5WGaNbA','8974952cIamPn','global','4jvSbTy','2tvfdyB','15818KEUuPN','project','\x20init`\x20first.','6058654PNtXNx','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','1655814tgWrtd','3934743iSAbmm','4603347Affvze'];a45_0x138e=function(){return _0x24b0bb;};return a45_0x138e();}import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x46c242){var _0x66c7c5=a45_0x1a56;if(_0x46c242['global'])return _0x66c7c5(0x171);if(!isInProject())throw CliErrors['validation'](_0x66c7c5(0x168),_0x66c7c5(0x16c)+CLI_BIN_NAME+_0x66c7c5(0x166));return _0x66c7c5(0x165);}export function readScopedConfig(_0x45c9fe){return readConfigFile(resolveWriteConfigPath(_0x45c9fe));}export function writeScopedConfig(_0x2b356c,_0x288ad5){writeConfigFile(resolveWriteConfigPath(_0x288ad5),_0x2b356c);}
@@ -1 +1 @@
1
- const a112_0x394be0=a112_0x2edb;(function(_0x278d6,_0x2f49c1){const _0x11aee2=a112_0x2edb,_0x25c63d=_0x278d6();while(!![]){try{const _0x3c8462=parseInt(_0x11aee2(0x139))/0x1*(-parseInt(_0x11aee2(0x110))/0x2)+parseInt(_0x11aee2(0xfb))/0x3+-parseInt(_0x11aee2(0x124))/0x4+parseInt(_0x11aee2(0x120))/0x5+-parseInt(_0x11aee2(0x10e))/0x6*(parseInt(_0x11aee2(0x10b))/0x7)+parseInt(_0x11aee2(0x10d))/0x8+-parseInt(_0x11aee2(0xf9))/0x9*(-parseInt(_0x11aee2(0x108))/0xa);if(_0x3c8462===_0x2f49c1)break;else _0x25c63d['push'](_0x25c63d['shift']());}catch(_0x2a8ced){_0x25c63d['push'](_0x25c63d['shift']());}}}(a112_0x5765,0xd81f7));function a112_0x5765(){const _0x90518=['allFieldNames','path','dbId','type','allFields','labelField','push','toDatasetName','creatorIdField','pkField','operations','dataset','tableName','doType','deleted','formatRules','72258WZoqGe','method','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','modifierNameField','name','responseBody','beforeScriptId','requestBody','indexes','modelCode','dbtableConfig','required','creatorNameField','1526724WthDzl','parse','2854734OhUQXX','properties','logicField','columnCodeListWithDeleted','read','modifierIdField','code','modelId','filter','sourceType','validateRules','dbType','options','90ebdHPb','doVersion','relatedPageInfoList','8659acKWkn','fields','11007952JcLIZQ','7254LYFffe','object','24GzALZr','isArray','source','trim','host','toField','detail','responseFields','updateTimeField','toDatasetCode','map','fromField','extend','afterScriptId','relations','length','5673285yiuHCt','str','requestFields','dataType','6964340ifVzWy','description','datasetKey','string','displayName'];a112_0x5765=function(){return _0x90518;};return a112_0x5765();}import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x21ccab){const _0x4f9fc2=a112_0x2edb;if(_0x21ccab[_0x4f9fc2(0x137)])return null;const _0x111fb6=Boolean(_0x21ccab['displayName']!==undefined||_0x21ccab['doType']!==undefined);let _0x47970c={};if(!_0x111fb6&&typeof _0x21ccab[_0x4f9fc2(0x11c)]==='string')try{_0x47970c=JSON['parse'](_0x21ccab[_0x4f9fc2(0x11c)]);}catch{}const _0x282bc6=_0x111fb6?_0x21ccab[_0x4f9fc2(0x13d)]:_0x21ccab[_0x4f9fc2(0x101)],_0x2236d9=_0x111fb6?_0x21ccab[_0x4f9fc2(0x128)]:_0x21ccab[_0x4f9fc2(0x13d)],_0x10e120=_0x111fb6?_0x21ccab[_0x4f9fc2(0x136)]:_0x21ccab[_0x4f9fc2(0x12c)]||_0x21ccab[_0x4f9fc2(0x123)],_0x9b467d=_0x111fb6?_0x21ccab['pkField']===!![]:_0x47970c[_0x4f9fc2(0x132)]===!![],_0x50ba40=_0x111fb6?_0x21ccab['required']===!![]:_0x47970c[_0x4f9fc2(0xf7)]===!![],_0x13a555=_0x111fb6?_0x21ccab[_0x4f9fc2(0x107)]??null:_0x47970c['options']??null,_0x479c98={'name':_0x282bc6,'displayName':_0x2236d9||_0x282bc6,'type':_0x10e120,'dbType':_0x21ccab[_0x4f9fc2(0x106)],'pk':_0x9b467d,'required':_0x50ba40,'description':_0x21ccab[_0x4f9fc2(0x125)]||undefined};return Array['isArray'](_0x13a555)&&_0x13a555[_0x4f9fc2(0x11f)]>0x0&&(_0x479c98[_0x4f9fc2(0x107)]=_0x13a555),_0x479c98;}function parseJsonMaybe(_0x2eead0){const _0x26852f=a112_0x2edb;if(typeof _0x2eead0!==_0x26852f(0x127))return _0x2eead0;try{return JSON[_0x26852f(0xfa)](_0x2eead0);}catch{return _0x2eead0;}}function normalizeOperationEntry(_0x5566ef,_0x5dbbed){const _0x3e2880=a112_0x2edb;if(!_0x5dbbed||typeof _0x5dbbed!==_0x3e2880(0x10f))return null;if(!_0x5dbbed['method']||!_0x5dbbed[_0x3e2880(0x12a)])return null;const _0x1cd2fd={'name':_0x5566ef,'method':_0x5dbbed[_0x3e2880(0x13a)],'path':_0x5dbbed[_0x3e2880(0x12a)]};if(_0x5dbbed[_0x3e2880(0x114)])_0x1cd2fd[_0x3e2880(0x114)]=_0x5dbbed['host'];if(_0x5dbbed[_0x3e2880(0x140)]!=null){const _0x4a6e0c=parseJsonMaybe(_0x5dbbed[_0x3e2880(0x140)]);_0x1cd2fd['requestBody']=_0x4a6e0c;}if(_0x5dbbed[_0x3e2880(0x13e)]!=null){const _0x30636f=parseJsonMaybe(_0x5dbbed[_0x3e2880(0x13e)]);_0x1cd2fd[_0x3e2880(0x13e)]=_0x30636f;}if(_0x5dbbed['beforeScriptId']!=null)_0x1cd2fd['beforeScriptId']=_0x5dbbed[_0x3e2880(0x13f)];if(_0x5dbbed['afterScriptId']!=null)_0x1cd2fd[_0x3e2880(0x11d)]=_0x5dbbed[_0x3e2880(0x11d)];if(Array[_0x3e2880(0x111)](_0x5dbbed[_0x3e2880(0x122)]))_0x1cd2fd['requestFields']=_0x5dbbed[_0x3e2880(0x122)];if(Array[_0x3e2880(0x111)](_0x5dbbed[_0x3e2880(0x117)]))_0x1cd2fd[_0x3e2880(0x117)]=_0x5dbbed[_0x3e2880(0x117)];return _0x1cd2fd;}function summarizeDbtable(_0x44b63e){const _0x13a759=a112_0x2edb,_0x486ec5={},_0x4bfad6=[_0x13a759(0x12b),'dbName',_0x13a759(0x135),_0x13a759(0x126),_0x13a759(0x132),_0x13a759(0x12d),_0x13a759(0xfd),'createTimeField',_0x13a759(0x118),_0x13a759(0x131),_0x13a759(0xf8),_0x13a759(0x100),_0x13a759(0x13c),_0x13a759(0x12e),'dblinkInfoDTO'];for(const _0x132668 of _0x4bfad6){if(_0x44b63e[_0x132668]!==undefined)_0x486ec5[_0x132668]=_0x44b63e[_0x132668];}return typeof _0x486ec5[_0x13a759(0x12d)]==='string'&&_0x486ec5[_0x13a759(0x12d)]['length']>0x0&&(_0x486ec5[_0x13a759(0x129)]=_0x486ec5[_0x13a759(0x12d)]['split'](',')[_0x13a759(0x11a)](_0x2b2ad5=>_0x2b2ad5[_0x13a759(0x113)]())[_0x13a759(0x103)](Boolean)),_0x486ec5;}function a112_0x2edb(_0x1bfe7a,_0x3108eb){_0x1bfe7a=_0x1bfe7a-0xf5;const _0x5765cc=a112_0x5765();let _0x2edb64=_0x5765cc[_0x1bfe7a];return _0x2edb64;}function normalizeRelatedPages(_0x1ab1c7){const _0x222d10=a112_0x2edb;if(!Array[_0x222d10(0x111)](_0x1ab1c7))return[];return _0x1ab1c7[_0x222d10(0x103)](_0x319209=>_0x319209&&typeof _0x319209==='object')[_0x222d10(0x11a)](_0x161608=>({'id':_0x161608['id'],'type':_0x161608[_0x222d10(0x12c)],'code':_0x161608[_0x222d10(0x101)],'title':_0x161608['title'],'deleted':_0x161608[_0x222d10(0x137)]===!![]}));}export const datasetDetail={'service':'dataset','command':a112_0x394be0(0x116),'description':'Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','risk':a112_0x394be0(0xff),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':a112_0x394be0(0x127),'description':a112_0x394be0(0x13b)}],async 'execute'(_0x2bb6df){const _0x40f49b=a112_0x394be0,_0x3e9cc1=await getDatasetDetail(_0x2bb6df[_0x40f49b(0x121)](_0x40f49b(0x101))),_0x4597ad=Array[_0x40f49b(0x111)](_0x3e9cc1['fields'])?_0x3e9cc1[_0x40f49b(0x10c)]:Array['isArray'](_0x3e9cc1[_0x40f49b(0xfc)])?_0x3e9cc1[_0x40f49b(0xfc)]:[],_0x381b7e=_0x4597ad['map'](_0x32ca8d=>normalizeField(_0x32ca8d))['filter'](_0x30fe84=>_0x30fe84!==null),_0x572305=_0x3e9cc1[_0x40f49b(0x133)]??{},_0x59e7a=[];for(const [_0x4263fb,_0x157ea6]of Object['entries'](_0x572305)){const _0x32493a=normalizeOperationEntry(_0x4263fb,_0x157ea6);if(_0x32493a)_0x59e7a[_0x40f49b(0x12f)](_0x32493a);}const _0x2686ee=_0x3e9cc1[_0x40f49b(0xf6)]??{},_0x1ed873=_0x3e9cc1[_0x40f49b(0x134)]??{},_0x45f295=_0x2686ee[_0x40f49b(0x12b)]!=null?{'id':_0x2686ee[_0x40f49b(0x12b)],'name':_0x2686ee['dbName']??null}:undefined;let _0x51ccb4;return typeof _0x3e9cc1[_0x40f49b(0x11c)]===_0x40f49b(0x127)&&(_0x51ccb4=parseJsonMaybe(_0x3e9cc1['extend'])),{'ok':!![],'data':{'id':_0x3e9cc1[_0x40f49b(0x102)]??_0x3e9cc1['id'],'name':_0x3e9cc1[_0x40f49b(0x13d)],'code':_0x3e9cc1[_0x40f49b(0xf5)]||_0x3e9cc1[_0x40f49b(0x101)],'doVersion':_0x3e9cc1[_0x40f49b(0x109)],'description':_0x3e9cc1[_0x40f49b(0x125)]||_0x1ed873['tableComment']||undefined,'source':_0x3e9cc1[_0x40f49b(0x112)]||_0x1ed873[_0x40f49b(0x104)],'table':_0x2686ee[_0x40f49b(0x135)]||_0x1ed873[_0x40f49b(0x135)],'datasetKey':_0x2686ee['datasetKey'],'pk':_0x2686ee[_0x40f49b(0x132)],'db':_0x45f295,'dbtable':summarizeDbtable(_0x2686ee),'fields':_0x381b7e,'operations':_0x59e7a,'indexes':Array[_0x40f49b(0x111)](_0x1ed873[_0x40f49b(0x141)])?_0x1ed873[_0x40f49b(0x141)]:[],'relations':Array[_0x40f49b(0x111)](_0x3e9cc1['relations'])?_0x3e9cc1[_0x40f49b(0x11e)][_0x40f49b(0x11a)](_0x34e2c6=>({'fromField':_0x34e2c6[_0x40f49b(0x11b)],'toDataset':_0x34e2c6[_0x40f49b(0x130)],'toCode':_0x34e2c6[_0x40f49b(0x119)],'toTable':_0x34e2c6['toTableName'],'toField':_0x34e2c6[_0x40f49b(0x115)],'labelField':_0x34e2c6['toFieldLabel']||undefined})):[],'relatedPages':normalizeRelatedPages(_0x3e9cc1[_0x40f49b(0x10a)]),...Array[_0x40f49b(0x111)](_0x3e9cc1[_0x40f49b(0xfe)])?{'columnCodeListWithDeleted':_0x3e9cc1[_0x40f49b(0xfe)]}:{},'formatRules':Array[_0x40f49b(0x111)](_0x3e9cc1[_0x40f49b(0x138)])?_0x3e9cc1['formatRules']:[],'validateRules':Array[_0x40f49b(0x111)](_0x3e9cc1['validateRules'])?_0x3e9cc1[_0x40f49b(0x105)]:[],..._0x51ccb4!==undefined?{'extend':_0x51ccb4}:{},'stats':{'fieldCount':_0x381b7e[_0x40f49b(0x11f)],'operationCount':_0x59e7a[_0x40f49b(0x11f)]}}};}};
1
+ const a46_0x5982c6=a46_0x24bd;(function(_0x586e0c,_0x21b7a8){const _0x443ad2=a46_0x24bd,_0x19d87b=_0x586e0c();while(!![]){try{const _0x35efaa=-parseInt(_0x443ad2(0xdd))/0x1*(-parseInt(_0x443ad2(0xea))/0x2)+parseInt(_0x443ad2(0x106))/0x3+-parseInt(_0x443ad2(0xe7))/0x4*(-parseInt(_0x443ad2(0xda))/0x5)+-parseInt(_0x443ad2(0x113))/0x6+parseInt(_0x443ad2(0xf6))/0x7*(parseInt(_0x443ad2(0xe9))/0x8)+-parseInt(_0x443ad2(0xef))/0x9+-parseInt(_0x443ad2(0xe6))/0xa;if(_0x35efaa===_0x21b7a8)break;else _0x19d87b['push'](_0x19d87b['shift']());}catch(_0x3aaf13){_0x19d87b['push'](_0x19d87b['shift']());}}}(a46_0x7a45,0x8a0bd));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x3181a8){const _0x20d1de=a46_0x24bd;if(_0x3181a8[_0x20d1de(0x107)])return null;const _0x492e39=Boolean(_0x3181a8[_0x20d1de(0x100)]!==undefined||_0x3181a8['doType']!==undefined);let _0x5517c1={};if(!_0x492e39&&typeof _0x3181a8[_0x20d1de(0x111)]===_0x20d1de(0x11d))try{_0x5517c1=JSON[_0x20d1de(0xf1)](_0x3181a8[_0x20d1de(0x111)]);}catch{}const _0x5b27af=_0x492e39?_0x3181a8['name']:_0x3181a8[_0x20d1de(0x118)],_0x4f288c=_0x492e39?_0x3181a8[_0x20d1de(0x100)]:_0x3181a8[_0x20d1de(0xe2)],_0x2d4d19=_0x492e39?_0x3181a8[_0x20d1de(0x115)]:_0x3181a8['type']||_0x3181a8[_0x20d1de(0xed)],_0x1e0b79=_0x492e39?_0x3181a8[_0x20d1de(0x124)]===!![]:_0x5517c1[_0x20d1de(0x124)]===!![],_0x51ada5=_0x492e39?_0x3181a8[_0x20d1de(0xe4)]===!![]:_0x5517c1[_0x20d1de(0xe4)]===!![],_0x36b99f=_0x492e39?_0x3181a8['options']??null:_0x5517c1[_0x20d1de(0x10a)]??null,_0x1c682c={'name':_0x5b27af,'displayName':_0x4f288c||_0x5b27af,'type':_0x2d4d19,'dbType':_0x3181a8['dbType'],'pk':_0x1e0b79,'required':_0x51ada5,'description':_0x3181a8['description']||undefined};return Array['isArray'](_0x36b99f)&&_0x36b99f['length']>0x0&&(_0x1c682c[_0x20d1de(0x10a)]=_0x36b99f),_0x1c682c;}function parseJsonMaybe(_0x111359){const _0x52a653=a46_0x24bd;if(typeof _0x111359!==_0x52a653(0x11d))return _0x111359;try{return JSON[_0x52a653(0xf1)](_0x111359);}catch{return _0x111359;}}function normalizeOperationEntry(_0x5062a7,_0x4df690){const _0x46e648=a46_0x24bd;if(!_0x4df690||typeof _0x4df690!==_0x46e648(0xf4))return null;if(!_0x4df690[_0x46e648(0x120)]||!_0x4df690[_0x46e648(0xdb)])return null;const _0x2d69de={'name':_0x5062a7,'method':_0x4df690[_0x46e648(0x120)],'path':_0x4df690[_0x46e648(0xdb)]};if(_0x4df690[_0x46e648(0x117)])_0x2d69de['host']=_0x4df690[_0x46e648(0x117)];if(_0x4df690[_0x46e648(0xe3)]!=null){const _0x447467=parseJsonMaybe(_0x4df690['requestBody']);_0x2d69de['requestBody']=_0x447467;}if(_0x4df690[_0x46e648(0x108)]!=null){const _0x12bc12=parseJsonMaybe(_0x4df690['responseBody']);_0x2d69de[_0x46e648(0x108)]=_0x12bc12;}if(_0x4df690['beforeScriptId']!=null)_0x2d69de['beforeScriptId']=_0x4df690[_0x46e648(0xdf)];if(_0x4df690['afterScriptId']!=null)_0x2d69de[_0x46e648(0xe8)]=_0x4df690['afterScriptId'];if(Array[_0x46e648(0x103)](_0x4df690[_0x46e648(0x105)]))_0x2d69de[_0x46e648(0x105)]=_0x4df690[_0x46e648(0x105)];if(Array[_0x46e648(0x103)](_0x4df690['responseFields']))_0x2d69de[_0x46e648(0xfb)]=_0x4df690[_0x46e648(0xfb)];return _0x2d69de;}function a46_0x24bd(_0x45a46e,_0x12591b){_0x45a46e=_0x45a46e-0xd7;const _0x7a45b2=a46_0x7a45();let _0x24bd45=_0x7a45b2[_0x45a46e];return _0x24bd45;}function a46_0x7a45(){const _0x4485d9=['fields','map','filter','displayName','split','fromField','isArray','relatedPageInfoList','requestFields','428901yFNSir','deleted','responseBody','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','options','sourceType','title','formatRules','tableName','allFields','alias','extend','validateRules','3778350aVuIAg','doVersion','doType','detail','host','code','creatorIdField','logicField','str','modelCode','string','dbtableConfig','read','method','properties','datasetKey','push','pkField','columnCodeListWithDeleted','type','toTableName','5YoTIMD','path','toFieldLabel','1ItMhZc','length','beforeScriptId','modifierIdField','entries','name','requestBody','required','dbName','1811770kOKCyk','3783628xWgoyo','afterScriptId','121288neJgaU','1819990QlwhlY','trim','updateTimeField','dataType','indexes','8195301zHtyHu','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','parse','toDatasetName','source','object','toField','133GuJNhV','relations','dataset','dbId','allFieldNames','responseFields','modelId'];a46_0x7a45=function(){return _0x4485d9;};return a46_0x7a45();}function summarizeDbtable(_0x249f15){const _0x4d5b88=a46_0x24bd,_0x487d8a={},_0xc3eadc=[_0x4d5b88(0xf9),_0x4d5b88(0xe5),_0x4d5b88(0x10e),_0x4d5b88(0x122),_0x4d5b88(0x124),'allFields',_0x4d5b88(0x11a),'createTimeField',_0x4d5b88(0xec),_0x4d5b88(0x119),'creatorNameField',_0x4d5b88(0xe0),'modifierNameField','labelField','dblinkInfoDTO'];for(const _0x357412 of _0xc3eadc){if(_0x249f15[_0x357412]!==undefined)_0x487d8a[_0x357412]=_0x249f15[_0x357412];}return typeof _0x487d8a[_0x4d5b88(0x10f)]===_0x4d5b88(0x11d)&&_0x487d8a['allFields']['length']>0x0&&(_0x487d8a[_0x4d5b88(0xfa)]=_0x487d8a['allFields'][_0x4d5b88(0x101)](',')[_0x4d5b88(0xfe)](_0x3cc4b3=>_0x3cc4b3[_0x4d5b88(0xeb)]())[_0x4d5b88(0xff)](Boolean)),_0x487d8a;}function normalizeRelatedPages(_0x430a70){const _0x54edb5=a46_0x24bd;if(!Array['isArray'](_0x430a70))return[];return _0x430a70[_0x54edb5(0xff)](_0x4fd53b=>_0x4fd53b&&typeof _0x4fd53b===_0x54edb5(0xf4))[_0x54edb5(0xfe)](_0x4f0552=>({'id':_0x4f0552['id'],'type':_0x4f0552[_0x54edb5(0xd8)],'code':_0x4f0552[_0x54edb5(0x118)],'title':_0x4f0552[_0x54edb5(0x10c)],'deleted':_0x4f0552[_0x54edb5(0x107)]===!![]}));}export const datasetDetail={'service':a46_0x5982c6(0xf8),'command':a46_0x5982c6(0x116),'description':a46_0x5982c6(0x109),'risk':a46_0x5982c6(0x11f),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a46_0x5982c6(0x110),'type':a46_0x5982c6(0x11d),'description':a46_0x5982c6(0xf0)}],async 'execute'(_0x50e739){const _0xc05451=a46_0x5982c6,_0x105ef7=await getDatasetDetail(_0x50e739[_0xc05451(0x11b)]('code')),_0x16b599=Array[_0xc05451(0x103)](_0x105ef7[_0xc05451(0xfd)])?_0x105ef7[_0xc05451(0xfd)]:Array[_0xc05451(0x103)](_0x105ef7['properties'])?_0x105ef7[_0xc05451(0x121)]:[],_0x35b98d=_0x16b599[_0xc05451(0xfe)](_0x31816b=>normalizeField(_0x31816b))[_0xc05451(0xff)](_0x405d77=>_0x405d77!==null),_0x132235=_0x105ef7['operations']??{},_0x48bf34=[];for(const [_0x2e5b46,_0x1d4842]of Object[_0xc05451(0xe1)](_0x132235)){const _0x47811f=normalizeOperationEntry(_0x2e5b46,_0x1d4842);if(_0x47811f)_0x48bf34[_0xc05451(0x123)](_0x47811f);}const _0x2f6e7e=_0x105ef7[_0xc05451(0x11e)]??{},_0x7e4f26=_0x105ef7[_0xc05451(0xf8)]??{},_0xde11b4=_0x2f6e7e[_0xc05451(0xf9)]!=null?{'id':_0x2f6e7e[_0xc05451(0xf9)],'name':_0x2f6e7e['dbName']??null}:undefined;let _0x273a42;return typeof _0x105ef7[_0xc05451(0x111)]===_0xc05451(0x11d)&&(_0x273a42=parseJsonMaybe(_0x105ef7[_0xc05451(0x111)])),{'ok':!![],'data':{'id':_0x105ef7[_0xc05451(0xfc)]??_0x105ef7['id'],'name':_0x105ef7['name'],'code':_0x105ef7[_0xc05451(0x11c)]||_0x105ef7[_0xc05451(0x118)],'doVersion':_0x105ef7[_0xc05451(0x114)],'description':_0x105ef7['description']||_0x7e4f26['tableComment']||undefined,'source':_0x105ef7[_0xc05451(0xf3)]||_0x7e4f26[_0xc05451(0x10b)],'table':_0x2f6e7e[_0xc05451(0x10e)]||_0x7e4f26['tableName'],'datasetKey':_0x2f6e7e[_0xc05451(0x122)],'pk':_0x2f6e7e[_0xc05451(0x124)],'db':_0xde11b4,'dbtable':summarizeDbtable(_0x2f6e7e),'fields':_0x35b98d,'operations':_0x48bf34,'indexes':Array[_0xc05451(0x103)](_0x7e4f26[_0xc05451(0xee)])?_0x7e4f26[_0xc05451(0xee)]:[],'relations':Array[_0xc05451(0x103)](_0x105ef7['relations'])?_0x105ef7[_0xc05451(0xf7)][_0xc05451(0xfe)](_0x83bd0d=>({'fromField':_0x83bd0d[_0xc05451(0x102)],'toDataset':_0x83bd0d[_0xc05451(0xf2)],'toCode':_0x83bd0d['toDatasetCode'],'toTable':_0x83bd0d[_0xc05451(0xd9)],'toField':_0x83bd0d[_0xc05451(0xf5)],'labelField':_0x83bd0d[_0xc05451(0xdc)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x105ef7[_0xc05451(0x104)]),...Array['isArray'](_0x105ef7['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x105ef7[_0xc05451(0xd7)]}:{},'formatRules':Array['isArray'](_0x105ef7['formatRules'])?_0x105ef7[_0xc05451(0x10d)]:[],'validateRules':Array[_0xc05451(0x103)](_0x105ef7[_0xc05451(0x112)])?_0x105ef7[_0xc05451(0x112)]:[],..._0x273a42!==undefined?{'extend':_0x273a42}:{},'stats':{'fieldCount':_0x35b98d['length'],'operationCount':_0x48bf34[_0xc05451(0xde)]}}};}};
@@ -1 +1 @@
1
- (function(_0x4f005c,_0x223681){const _0x3c6547=a111_0x4003,_0x20747d=_0x4f005c();while(!![]){try{const _0x3b78e2=parseInt(_0x3c6547(0xfb))/0x1*(parseInt(_0x3c6547(0xfa))/0x2)+parseInt(_0x3c6547(0x102))/0x3+parseInt(_0x3c6547(0xfc))/0x4*(parseInt(_0x3c6547(0x101))/0x5)+-parseInt(_0x3c6547(0x100))/0x6*(parseInt(_0x3c6547(0xf9))/0x7)+parseInt(_0x3c6547(0xfd))/0x8+parseInt(_0x3c6547(0xff))/0x9+-parseInt(_0x3c6547(0xfe))/0xa;if(_0x3b78e2===_0x223681)break;else _0x20747d['push'](_0x20747d['shift']());}catch(_0x295851){_0x20747d['push'](_0x20747d['shift']());}}}(a111_0x3de0,0x805d8));function a111_0x4003(_0x1aab94,_0x2393a0){_0x1aab94=_0x1aab94-0xf9;const _0x3de055=a111_0x3de0();let _0x4003e6=_0x3de055[_0x1aab94];return _0x4003e6;}import{datasetList}from'../../commands/dataset/list.js';function a111_0x3de0(){const _0x283333=['929610rdNGwW','14305soBkzn','807420XyEKIK','14CgVgqG','6TQQEaM','341wczDBR','1268pPjJSd','744096MLBTyX','14475190cddwuP','9117549aUwmiO'];a111_0x3de0=function(){return _0x283333;};return a111_0x3de0();}import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetOperations}from'../../commands/dataset/operations.js';import{datasetLinks}from'../../commands/dataset/links.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
1
+ function a47_0x2644(_0x368204,_0x17920d){_0x368204=_0x368204-0xd1;const _0x397828=a47_0x3978();let _0x2644f2=_0x397828[_0x368204];return _0x2644f2;}(function(_0x3ebfba,_0x1c102b){const _0x33a010=a47_0x2644,_0x1e8644=_0x3ebfba();while(!![]){try{const _0x3ed4aa=parseInt(_0x33a010(0xd3))/0x1*(parseInt(_0x33a010(0xdb))/0x2)+-parseInt(_0x33a010(0xd7))/0x3+parseInt(_0x33a010(0xd6))/0x4*(parseInt(_0x33a010(0xd1))/0x5)+-parseInt(_0x33a010(0xd2))/0x6+parseInt(_0x33a010(0xd5))/0x7*(-parseInt(_0x33a010(0xdc))/0x8)+parseInt(_0x33a010(0xda))/0x9*(-parseInt(_0x33a010(0xd4))/0xa)+-parseInt(_0x33a010(0xd8))/0xb*(-parseInt(_0x33a010(0xd9))/0xc);if(_0x3ed4aa===_0x1c102b)break;else _0x1e8644['push'](_0x1e8644['shift']());}catch(_0x1e82be){_0x1e8644['push'](_0x1e8644['shift']());}}}(a47_0x3978,0x394b9));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetOperations}from'../../commands/dataset/operations.js';function a47_0x3978(){const _0xda85ff=['9vTvAvB','6vzWYQg','136FUBoTz','5erlJKX','1369386CFrWIh','117127qmgODN','2528440EkOSck','14266iPxdZa','978340kfxBLJ','41292RmNUAQ','550IHPuYd','40368pAMKZL'];a47_0x3978=function(){return _0xda85ff;};return a47_0x3978();}import{datasetLinks}from'../../commands/dataset/links.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
@@ -1 +1 @@
1
- const a110_0xb1eeca=a110_0x5652;(function(_0x353ab9,_0x2fa5b6){const _0x123f6a=a110_0x5652,_0x33fcdd=_0x353ab9();while(!![]){try{const _0xcd5342=parseInt(_0x123f6a(0x10e))/0x1*(-parseInt(_0x123f6a(0xfd))/0x2)+parseInt(_0x123f6a(0x105))/0x3+-parseInt(_0x123f6a(0x101))/0x4+parseInt(_0x123f6a(0x10b))/0x5+parseInt(_0x123f6a(0xe7))/0x6+parseInt(_0x123f6a(0xea))/0x7+-parseInt(_0x123f6a(0xf1))/0x8*(parseInt(_0x123f6a(0xfb))/0x9);if(_0xcd5342===_0x2fa5b6)break;else _0x33fcdd['push'](_0x33fcdd['shift']());}catch(_0x3798f6){_0x33fcdd['push'](_0x33fcdd['shift']());}}}(a110_0x1d17,0x3291c));function a110_0x1d17(){const _0x578c91=['19323nscYuT','all','1362Lljthf','Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20','read','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','1424368CCyxwy','dbId','boolean','datasetName','708159vDJFlH','joinType','filter','datasetCount','datasets','dbType','1964300aJXHDW','verbose','string','18yrUyqE','toDataset','fromField','fields','str','\x20dataset(s),\x20','dbName','Return\x20full\x20raw\x20ER\x20response\x20from\x20API','name','relations','1264782RdKvpN','isForeignKey','toField','825566XiTTlW','length','\x20database(s)','links','reduce','map','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','1424dIufFe','appCode','dataset','\x20relation(s)','relationCount','meta','isPrimaryKey','LEFT','\x20database(s),\x20','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.'];a110_0x1d17=function(){return _0x578c91;};return a110_0x1d17();}import{getErConfig}from'../../core/api-client.js';function a110_0x5652(_0x20eb51,_0x11b190){_0x20eb51=_0x20eb51-0xe6;const _0x1d172c=a110_0x1d17();let _0x56525e=_0x1d172c[_0x20eb51];return _0x56525e;}import{resolveDb}from'../../core/db-resolver.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetLinks={'service':a110_0xb1eeca(0xf3),'command':a110_0xb1eeca(0xed),'description':a110_0xb1eeca(0x100)+'Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20'+a110_0xb1eeca(0xf0),'risk':a110_0xb1eeca(0xff),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':a110_0xb1eeca(0x10d),'description':a110_0xb1eeca(0xfe)+a110_0xb1eeca(0xfa)},{'name':a110_0xb1eeca(0x10c),'type':a110_0xb1eeca(0x103),'description':a110_0xb1eeca(0x115)}],async 'execute'(_0x5a2fd8){const _0x4543bd=a110_0xb1eeca,_0x1ccb2d=_0x5a2fd8['bool'](_0x4543bd(0x10c)),{resolved:_0x337db9,error:_0x3b6e7e}=await resolveDb(_0x5a2fd8[_0x4543bd(0xf2)],_0x5a2fd8[_0x4543bd(0x112)]('db')||undefined);if(_0x3b6e7e)return{'ok':![],'message':_0x3b6e7e};const _0x2a074b=_0x337db9[_0x4543bd(0xef)](_0x5146aa=>_0x5146aa[_0x4543bd(0x102)]),_0x335de4=await Promise[_0x4543bd(0xfc)](_0x2a074b[_0x4543bd(0xef)](_0x4fbcaf=>getErConfig(_0x5a2fd8[_0x4543bd(0xf2)],_0x4fbcaf)));if(_0x1ccb2d)return{'ok':!![],'data':_0x335de4['length']===0x1?_0x335de4[0x0]:_0x335de4,'message':'Fetched\x20link\x20graph\x20for\x20'+_0x2a074b[_0x4543bd(0xeb)]+_0x4543bd(0xec)};const _0x24a5da=_0x335de4[_0x4543bd(0xef)](_0x231e70=>{const _0x4abed1=_0x4543bd,_0xb05c1d=(_0x231e70[_0x4abed1(0x109)]??[])[_0x4abed1(0xef)](_0x6a71ca=>{const _0x33bb27=_0x4abed1,_0x5f15e2=_0x6a71ca['fields']?.['filter'](_0x3e1a9c=>_0x3e1a9c['isPrimaryKey'])[_0x33bb27(0xef)](_0x3cf9fd=>_0x3cf9fd[_0x33bb27(0x116)])??[],_0x118527=_0x6a71ca[_0x33bb27(0x111)]?.[_0x33bb27(0x107)](_0x2fb49d=>_0x2fb49d[_0x33bb27(0xe8)])[_0x33bb27(0xef)](_0xfaf3ef=>_0xfaf3ef[_0x33bb27(0x116)])??[];return{'id':_0x6a71ca['datasetId'],'name':_0x6a71ca[_0x33bb27(0x104)],'code':_0x6a71ca['datasetCode'],'table':_0x6a71ca['tableName'],'comment':_0x6a71ca['tableComment']||undefined,'fields':(_0x6a71ca[_0x33bb27(0x111)]??[])[_0x33bb27(0xef)](_0x564664=>({'name':_0x564664['name'],'displayName':_0x564664['displayName'],'type':_0x564664[_0x33bb27(0x10a)],'pk':_0x564664[_0x33bb27(0xf7)],'fk':_0x564664['isForeignKey']})),'relations':(_0x6a71ca['relations']??[])[_0x33bb27(0x107)](_0x17040a=>_0x17040a[_0x33bb27(0x110)]&&_0x17040a[_0x33bb27(0x10f)])[_0x33bb27(0xef)](_0x546b16=>({'from':_0x546b16[_0x33bb27(0x110)],'toDataset':_0x546b16['toDatasetName'],'toCode':_0x546b16['toDataset'],'toField':_0x546b16[_0x33bb27(0xe9)],'joinType':_0x546b16[_0x33bb27(0x106)]||_0x33bb27(0xf8)})),'stats':{'fieldCount':_0x6a71ca[_0x33bb27(0x111)]?.[_0x33bb27(0xeb)]??0x0,'pkCount':_0x5f15e2[_0x33bb27(0xeb)],'fkCount':_0x118527[_0x33bb27(0xeb)],'relationCount':_0x6a71ca[_0x33bb27(0xe6)]?.[_0x33bb27(0xeb)]??0x0}};}),_0x1a7c14=_0xb05c1d['filter'](_0x5a586c=>_0x5a586c['stats'][_0x4abed1(0xf5)]>0x0)['map'](_0x38f13a=>_0x38f13a[_0x4abed1(0x116)]);return{'db':_0x231e70[_0x4abed1(0xf6)]?.[_0x4abed1(0x114)],'dbId':_0x231e70['meta']?.['dbId'],'appCode':_0x231e70['meta']?.['appCode'],'datasetCount':_0xb05c1d[_0x4abed1(0xeb)],'connectedDatasets':_0x1a7c14,'datasets':_0xb05c1d};}),_0x5b89d7=_0x24a5da['reduce']((_0x47d7ad,_0x50ab45)=>_0x47d7ad+_0x50ab45[_0x4543bd(0x108)],0x0),_0x4dc313=_0x24a5da[_0x4543bd(0xee)]((_0x49ce63,_0xdf8eb4)=>_0x49ce63+_0xdf8eb4['datasets'][_0x4543bd(0xee)]((_0x4e1725,_0x45008e)=>_0x4e1725+_0x45008e['stats'][_0x4543bd(0xf5)],0x0),0x0);return{'ok':!![],'data':_0x24a5da[_0x4543bd(0xeb)]===0x1?_0x24a5da[0x0]:{'databases':_0x24a5da},'message':'Link\x20graph:\x20'+_0x24a5da['length']+_0x4543bd(0xf9)+_0x5b89d7+_0x4543bd(0x113)+_0x4dc313+_0x4543bd(0xf4)};}};
1
+ const a48_0x56d3f8=a48_0x59ae;(function(_0x57a8ab,_0xa876ad){const _0x470ce6=a48_0x59ae,_0x29db61=_0x57a8ab();while(!![]){try{const _0x20f84b=parseInt(_0x470ce6(0x174))/0x1*(-parseInt(_0x470ce6(0x17e))/0x2)+parseInt(_0x470ce6(0x18b))/0x3*(-parseInt(_0x470ce6(0x185))/0x4)+-parseInt(_0x470ce6(0x156))/0x5*(parseInt(_0x470ce6(0x18c))/0x6)+-parseInt(_0x470ce6(0x168))/0x7*(parseInt(_0x470ce6(0x179))/0x8)+-parseInt(_0x470ce6(0x181))/0x9+-parseInt(_0x470ce6(0x17f))/0xa+parseInt(_0x470ce6(0x15a))/0xb;if(_0x20f84b===_0xa876ad)break;else _0x29db61['push'](_0x29db61['shift']());}catch(_0x572e9f){_0x29db61['push'](_0x29db61['shift']());}}}(a48_0x3c10,0x558aa));import{getErConfig}from'../../core/api-client.js';function a48_0x59ae(_0x4d94c8,_0x417369){_0x4d94c8=_0x4d94c8-0x156;const _0x3c10ef=a48_0x3c10();let _0x59aef0=_0x3c10ef[_0x4d94c8];return _0x59aef0;}import{resolveDb}from'../../core/db-resolver.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a48_0x3c10(){const _0xe202d8=['relationCount','bool','Link\x20graph:\x20','dataset','toField','7ArmmBb','datasetCode','Return\x20full\x20raw\x20ER\x20response\x20from\x20API','joinType','isPrimaryKey','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','datasetCount','dbName','str','tableComment','reduce','stats','7OoLnkT','datasetId','fields','fromField','toDatasetName','3739432YOeeso','dbType','verbose','datasetName','\x20dataset(s),\x20','98350nGJSJJ','2992060QjqbVj','meta','1259928AWAinA','read','map','\x20relation(s)','164EljCMN','tableName','displayName','filter','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','isForeignKey','36291mQYAvY','36WkiZoI','appCode','dbId','539070muvZzs','length','Fetched\x20link\x20graph\x20for\x20','string','30185001JBnAGq','Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20','datasets','relations','name','all','links','LEFT','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.'];a48_0x3c10=function(){return _0xe202d8;};return a48_0x3c10();}export const datasetLinks={'service':a48_0x56d3f8(0x166),'command':a48_0x56d3f8(0x160),'description':a48_0x56d3f8(0x189)+a48_0x56d3f8(0x15b)+a48_0x56d3f8(0x16d),'risk':a48_0x56d3f8(0x182),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':a48_0x56d3f8(0x159),'description':'Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20'+a48_0x56d3f8(0x162)},{'name':a48_0x56d3f8(0x17b),'type':'boolean','description':a48_0x56d3f8(0x16a)}],async 'execute'(_0x3e7e00){const _0xeeed41=a48_0x56d3f8,_0x5f1558=_0x3e7e00[_0xeeed41(0x164)]('verbose'),{resolved:_0x5308ed,error:_0xef348c}=await resolveDb(_0x3e7e00[_0xeeed41(0x18d)],_0x3e7e00[_0xeeed41(0x170)]('db')||undefined);if(_0xef348c)return{'ok':![],'message':_0xef348c};const _0xfcf585=_0x5308ed[_0xeeed41(0x183)](_0x3ad0c0=>_0x3ad0c0[_0xeeed41(0x18e)]),_0x29b01b=await Promise[_0xeeed41(0x15f)](_0xfcf585[_0xeeed41(0x183)](_0x11bc9a=>getErConfig(_0x3e7e00['appCode'],_0x11bc9a)));if(_0x5f1558)return{'ok':!![],'data':_0x29b01b[_0xeeed41(0x157)]===0x1?_0x29b01b[0x0]:_0x29b01b,'message':_0xeeed41(0x158)+_0xfcf585[_0xeeed41(0x157)]+'\x20database(s)'};const _0x41a46b=_0x29b01b[_0xeeed41(0x183)](_0x3c88a0=>{const _0x1f3142=_0xeeed41,_0x4f9653=(_0x3c88a0[_0x1f3142(0x15c)]??[])[_0x1f3142(0x183)](_0xdbec8=>{const _0x5bc8ea=_0x1f3142,_0x288369=_0xdbec8[_0x5bc8ea(0x176)]?.[_0x5bc8ea(0x188)](_0x3ebc9d=>_0x3ebc9d[_0x5bc8ea(0x16c)])[_0x5bc8ea(0x183)](_0x1c9e13=>_0x1c9e13[_0x5bc8ea(0x15e)])??[],_0x55527a=_0xdbec8[_0x5bc8ea(0x176)]?.[_0x5bc8ea(0x188)](_0x2c9423=>_0x2c9423['isForeignKey'])[_0x5bc8ea(0x183)](_0x34e717=>_0x34e717[_0x5bc8ea(0x15e)])??[];return{'id':_0xdbec8[_0x5bc8ea(0x175)],'name':_0xdbec8[_0x5bc8ea(0x17c)],'code':_0xdbec8[_0x5bc8ea(0x169)],'table':_0xdbec8[_0x5bc8ea(0x186)],'comment':_0xdbec8[_0x5bc8ea(0x171)]||undefined,'fields':(_0xdbec8[_0x5bc8ea(0x176)]??[])['map'](_0x410eb0=>({'name':_0x410eb0['name'],'displayName':_0x410eb0[_0x5bc8ea(0x187)],'type':_0x410eb0[_0x5bc8ea(0x17a)],'pk':_0x410eb0[_0x5bc8ea(0x16c)],'fk':_0x410eb0[_0x5bc8ea(0x18a)]})),'relations':(_0xdbec8[_0x5bc8ea(0x15d)]??[])[_0x5bc8ea(0x188)](_0x21553f=>_0x21553f['fromField']&&_0x21553f['toDataset'])[_0x5bc8ea(0x183)](_0x2e461a=>({'from':_0x2e461a[_0x5bc8ea(0x177)],'toDataset':_0x2e461a[_0x5bc8ea(0x178)],'toCode':_0x2e461a['toDataset'],'toField':_0x2e461a[_0x5bc8ea(0x167)],'joinType':_0x2e461a[_0x5bc8ea(0x16b)]||_0x5bc8ea(0x161)})),'stats':{'fieldCount':_0xdbec8['fields']?.['length']??0x0,'pkCount':_0x288369[_0x5bc8ea(0x157)],'fkCount':_0x55527a[_0x5bc8ea(0x157)],'relationCount':_0xdbec8['relations']?.[_0x5bc8ea(0x157)]??0x0}};}),_0x498f9b=_0x4f9653[_0x1f3142(0x188)](_0x7841a1=>_0x7841a1['stats'][_0x1f3142(0x163)]>0x0)[_0x1f3142(0x183)](_0x5464de=>_0x5464de[_0x1f3142(0x15e)]);return{'db':_0x3c88a0[_0x1f3142(0x180)]?.[_0x1f3142(0x16f)],'dbId':_0x3c88a0[_0x1f3142(0x180)]?.[_0x1f3142(0x18e)],'appCode':_0x3c88a0['meta']?.[_0x1f3142(0x18d)],'datasetCount':_0x4f9653[_0x1f3142(0x157)],'connectedDatasets':_0x498f9b,'datasets':_0x4f9653};}),_0x53f32d=_0x41a46b[_0xeeed41(0x172)]((_0x53acde,_0x3ba566)=>_0x53acde+_0x3ba566[_0xeeed41(0x16e)],0x0),_0x5a2b74=_0x41a46b[_0xeeed41(0x172)]((_0x2515d4,_0x200439)=>_0x2515d4+_0x200439['datasets'][_0xeeed41(0x172)]((_0x692075,_0x37b0e5)=>_0x692075+_0x37b0e5[_0xeeed41(0x173)][_0xeeed41(0x163)],0x0),0x0);return{'ok':!![],'data':_0x41a46b[_0xeeed41(0x157)]===0x1?_0x41a46b[0x0]:{'databases':_0x41a46b},'message':_0xeeed41(0x165)+_0x41a46b[_0xeeed41(0x157)]+'\x20database(s),\x20'+_0x53f32d+_0xeeed41(0x17d)+_0x5a2b74+_0xeeed41(0x184)};}};
@@ -1 +1 @@
1
- const a109_0x325693=a109_0x336a;function a109_0x336a(_0x25f6ec,_0x2acdeb){_0x25f6ec=_0x25f6ec-0x96;const _0x33f6ec=a109_0x33f6();let _0x336a52=_0x33f6ec[_0x25f6ec];return _0x336a52;}function a109_0x33f6(){const _0x1d143e=['104eWrTUW','4626HcTxpb','1043148wFgtLb','16546662dQgQrk','1309003qeZxbt','764001EyBIVY','tableName','appCode','code','2clLykX','str','\x20dataset(s)','12204zQLEro','read','5qdtJAy','trim','dbName','split','3811968JSERhQ','List\x20all\x20datasets\x20with\x20metadata','allFields','description','1386vpAEFv','pkField','Found\x20','string','name','length','map','13770roGFYA'];a109_0x33f6=function(){return _0x1d143e;};return a109_0x33f6();}(function(_0x55fe1c,_0x5a50b8){const _0x278c3c=a109_0x336a,_0x889b18=_0x55fe1c();while(!![]){try{const _0x38cb03=-parseInt(_0x278c3c(0xa1))/0x1*(parseInt(_0x278c3c(0xa6))/0x2)+-parseInt(_0x278c3c(0xb3))/0x3*(-parseInt(_0x278c3c(0xa9))/0x4)+parseInt(_0x278c3c(0xab))/0x5*(-parseInt(_0x278c3c(0x9f))/0x6)+-parseInt(_0x278c3c(0xa2))/0x7*(-parseInt(_0x278c3c(0x9d))/0x8)+-parseInt(_0x278c3c(0x9e))/0x9*(-parseInt(_0x278c3c(0x9c))/0xa)+-parseInt(_0x278c3c(0xa0))/0xb+parseInt(_0x278c3c(0xaf))/0xc;if(_0x38cb03===_0x5a50b8)break;else _0x889b18['push'](_0x889b18['shift']());}catch(_0x38657a){_0x889b18['push'](_0x889b18['shift']());}}}(a109_0x33f6,0xd39c8));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetList={'service':'dataset','command':'list','description':a109_0x325693(0xb0),'risk':a109_0x325693(0xaa),'flags':[{'name':'name','type':a109_0x325693(0x98),'description':'Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)'},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x177bff){const _0x13a9b5=a109_0x325693,_0x27de54=_0x177bff[_0x13a9b5(0xa7)](_0x13a9b5(0x99)),_0x42455c=_0x177bff[_0x13a9b5(0xa7)](_0x13a9b5(0xa5)),_0x3df524=await listDatasets(_0x177bff[_0x13a9b5(0xa4)],{..._0x27de54&&{'name':_0x27de54},..._0x42455c&&{'code':_0x42455c}}),_0xd8967d=_0x3df524[_0x13a9b5(0x9b)](_0x33ebe5=>{const _0x448b78=_0x13a9b5,_0x472374=_0x33ebe5['dbtableConfig']??{};return{'id':_0x33ebe5['id'],'name':_0x33ebe5['name'],'code':_0x33ebe5['code'],'description':_0x33ebe5[_0x448b78(0xb2)],'source':_0x33ebe5['source'],'db':_0x472374[_0x448b78(0xad)],'table':_0x472374[_0x448b78(0xa3)],'datasetKey':_0x472374['datasetKey'],'pk':_0x472374[_0x448b78(0x96)],'fields':_0x472374[_0x448b78(0xb1)]?_0x472374[_0x448b78(0xb1)][_0x448b78(0xae)](',')[_0x448b78(0x9b)](_0x1fe0c2=>_0x1fe0c2[_0x448b78(0xac)]()):[]};});return{'ok':!![],'data':{'total':_0xd8967d[_0x13a9b5(0x9a)],'datasets':_0xd8967d},'message':_0x13a9b5(0x97)+_0xd8967d['length']+_0x13a9b5(0xa8)};}};
1
+ function a49_0x5e35(_0x586341,_0x5c1acd){_0x586341=_0x586341-0xcd;const _0x2b18cd=a49_0x2b18();let _0x5e35f4=_0x2b18cd[_0x586341];return _0x5e35f4;}const a49_0x1d2a62=a49_0x5e35;function a49_0x2b18(){const _0x126602=['allFields','1106739WwDFhS','2041FMfjWC','426ZSRFQW','code','\x20dataset(s)','dbName','3663wJhTGJ','List\x20all\x20datasets\x20with\x20metadata','24zkJyZd','length','55915lkeRmq','3723104JKJwHW','6uglLbX','name','str','source','80868OaQLkn','list','128088OyfKOu','description','appCode','71224fDtVwZ','map','dataset','9380LKFOEu','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','read','split','117YQEnfG','trim'];a49_0x2b18=function(){return _0x126602;};return a49_0x2b18();}(function(_0x48e911,_0x1e34f5){const _0x3494c1=a49_0x5e35,_0x485248=_0x48e911();while(!![]){try{const _0x4b77ed=-parseInt(_0x3494c1(0xd4))/0x1*(parseInt(_0x3494c1(0xda))/0x2)+parseInt(_0x3494c1(0xe4))/0x3*(-parseInt(_0x3494c1(0xdd))/0x4)+parseInt(_0x3494c1(0xd2))/0x5*(-parseInt(_0x3494c1(0xe9))/0x6)+parseInt(_0x3494c1(0xd3))/0x7+-parseInt(_0x3494c1(0xd0))/0x8*(-parseInt(_0x3494c1(0xe7))/0x9)+-parseInt(_0x3494c1(0xe0))/0xa*(-parseInt(_0x3494c1(0xce))/0xb)+parseInt(_0x3494c1(0xd8))/0xc*(parseInt(_0x3494c1(0xe8))/0xd);if(_0x4b77ed===_0x1e34f5)break;else _0x485248['push'](_0x485248['shift']());}catch(_0xbf6b29){_0x485248['push'](_0x485248['shift']());}}}(a49_0x2b18,0x61487));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetList={'service':a49_0x1d2a62(0xdf),'command':a49_0x1d2a62(0xd9),'description':a49_0x1d2a62(0xcf),'risk':a49_0x1d2a62(0xe2),'flags':[{'name':a49_0x1d2a62(0xd5),'type':'string','description':a49_0x1d2a62(0xe1)},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3d415c){const _0x3c5d48=a49_0x1d2a62,_0x5d1496=_0x3d415c['str'](_0x3c5d48(0xd5)),_0x5d2590=_0x3d415c[_0x3c5d48(0xd6)](_0x3c5d48(0xea)),_0x2573cc=await listDatasets(_0x3d415c[_0x3c5d48(0xdc)],{..._0x5d1496&&{'name':_0x5d1496},..._0x5d2590&&{'code':_0x5d2590}}),_0x49c8a8=_0x2573cc['map'](_0x21e434=>{const _0x10612b=_0x3c5d48,_0x507aef=_0x21e434['dbtableConfig']??{};return{'id':_0x21e434['id'],'name':_0x21e434[_0x10612b(0xd5)],'code':_0x21e434[_0x10612b(0xea)],'description':_0x21e434[_0x10612b(0xdb)],'source':_0x21e434[_0x10612b(0xd7)],'db':_0x507aef[_0x10612b(0xcd)],'table':_0x507aef['tableName'],'datasetKey':_0x507aef['datasetKey'],'pk':_0x507aef['pkField'],'fields':_0x507aef[_0x10612b(0xe6)]?_0x507aef[_0x10612b(0xe6)][_0x10612b(0xe3)](',')[_0x10612b(0xde)](_0x56938b=>_0x56938b[_0x10612b(0xe5)]()):[]};});return{'ok':!![],'data':{'total':_0x49c8a8[_0x3c5d48(0xd1)],'datasets':_0x49c8a8},'message':'Found\x20'+_0x49c8a8[_0x3c5d48(0xd1)]+_0x3c5d48(0xeb)};}};
@@ -1 +1 @@
1
- const a113_0x2124f3=a113_0x46cf;(function(_0x32df69,_0x360968){const _0x4d3221=a113_0x46cf,_0xfb816b=_0x32df69();while(!![]){try{const _0x410eb5=-parseInt(_0x4d3221(0x1b9))/0x1+-parseInt(_0x4d3221(0x1bc))/0x2+parseInt(_0x4d3221(0x1b6))/0x3+-parseInt(_0x4d3221(0x1ba))/0x4+-parseInt(_0x4d3221(0x1b0))/0x5+-parseInt(_0x4d3221(0x1ae))/0x6+parseInt(_0x4d3221(0x1af))/0x7;if(_0x410eb5===_0x360968)break;else _0xfb816b['push'](_0xfb816b['shift']());}catch(_0x5674cd){_0xfb816b['push'](_0xfb816b['shift']());}}}(a113_0x42d5,0x6f1ad));import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';function a113_0x46cf(_0x151375,_0x1df01b){_0x151375=_0x151375-0x1aa;const _0x42d55a=a113_0x42d5();let _0x46cfbf=_0x42d55a[_0x151375];return _0x46cfbf;}import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a113_0x42d5(){const _0x16f6f9=['130951rapUeI','2522000SkSgzv','operation','1322154IqCFWA','map','bool','boolean','code','type','string','376872jMPmZE','9972872iOtiMP','596550mMKDcz','appCode','name','read','length','Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)','1905117DibdoC','displayName','verbose'];a113_0x42d5=function(){return _0x16f6f9;};return a113_0x42d5();}export const datasetOperations={'service':'dataset','command':'operations','description':'Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','risk':a113_0x2124f3(0x1b3),'flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':a113_0x2124f3(0x1ad),'description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)'},{'name':a113_0x2124f3(0x1bb),'type':'string','description':a113_0x2124f3(0x1b5)},{'name':a113_0x2124f3(0x1b8),'type':a113_0x2124f3(0x1aa),'description':'Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields'}],async 'execute'(_0x5948b1){const _0x48ab29=a113_0x2124f3,_0x54d6fd=_0x5948b1['str'](_0x48ab29(0x1ab)),_0x55798b=_0x5948b1['str'](_0x48ab29(0x1bb)),_0x9f0e14=_0x5948b1[_0x48ab29(0x1be)](_0x48ab29(0x1b8));if(_0x55798b){const {dataset:_0x2967ad,operation:_0x559e5a}=await getOperationDetail(_0x5948b1[_0x48ab29(0x1b1)],_0x54d6fd,_0x55798b);return{'ok':!![],'data':{'dataset':_0x2967ad,'operation':_0x559e5a}};}const {dataset:_0x1aa517,operations:_0x1c0237}=await getDatasetOperations(_0x54d6fd);return{'ok':!![],'data':{'dataset':_0x1aa517,'total':_0x1c0237[_0x48ab29(0x1b4)],'operations':_0x9f0e14?_0x1c0237:_0x1c0237[_0x48ab29(0x1bd)](_0x30e157=>({'name':_0x30e157[_0x48ab29(0x1b2)],'displayName':_0x30e157[_0x48ab29(0x1b7)],'type':_0x30e157[_0x48ab29(0x1ac)],'method':_0x30e157['method'],'enabled':_0x30e157['enabled']}))}};}};
1
+ function a50_0x3080(_0x50b01e,_0x1bedae){_0x50b01e=_0x50b01e-0x97;const _0x280ef7=a50_0x280e();let _0x3080b2=_0x280ef7[_0x50b01e];return _0x3080b2;}const a50_0x4c0bfb=a50_0x3080;(function(_0x5ac922,_0x5353ab){const _0x56d03e=a50_0x3080,_0x37f225=_0x5ac922();while(!![]){try{const _0x56bc13=parseInt(_0x56d03e(0xa6))/0x1*(parseInt(_0x56d03e(0x9a))/0x2)+parseInt(_0x56d03e(0xa9))/0x3*(parseInt(_0x56d03e(0xa2))/0x4)+-parseInt(_0x56d03e(0xad))/0x5+-parseInt(_0x56d03e(0x9b))/0x6+-parseInt(_0x56d03e(0x98))/0x7*(parseInt(_0x56d03e(0xa1))/0x8)+-parseInt(_0x56d03e(0xa8))/0x9*(-parseInt(_0x56d03e(0xa4))/0xa)+parseInt(_0x56d03e(0x99))/0xb;if(_0x56bc13===_0x5353ab)break;else _0x37f225['push'](_0x37f225['shift']());}catch(_0x44edff){_0x37f225['push'](_0x37f225['shift']());}}}(a50_0x280e,0xde44a));function a50_0x280e(){const _0x565a82=['verbose','operation','dataset','448zAtpSb','15315245gYpsdJ','107570IvNiBz','6579378tnyohh','Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','alias','operations','string','length','70904wDOVrl','3390124NlBstd','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','10sLVtMW','str','2nBIrYG','read','7145064kmGoXQ','3KnpnpT','code','appCode','displayName','2835435aYoOsT'];a50_0x280e=function(){return _0x565a82;};return a50_0x280e();}import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetOperations={'service':a50_0x4c0bfb(0x97),'command':a50_0x4c0bfb(0x9e),'description':a50_0x4c0bfb(0x9c),'risk':a50_0x4c0bfb(0xa7),'flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a50_0x4c0bfb(0x9d),'type':a50_0x4c0bfb(0x9f),'description':a50_0x4c0bfb(0xa3)},{'name':a50_0x4c0bfb(0xaf),'type':'string','description':'Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)'},{'name':'verbose','type':'boolean','description':'Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields'}],async 'execute'(_0x4eb0b1){const _0x576b5c=a50_0x4c0bfb,_0x20ccab=_0x4eb0b1[_0x576b5c(0xa5)](_0x576b5c(0xaa)),_0x715082=_0x4eb0b1[_0x576b5c(0xa5)](_0x576b5c(0xaf)),_0x180cb1=_0x4eb0b1['bool'](_0x576b5c(0xae));if(_0x715082){const {dataset:_0x43a6cc,operation:_0x3871b8}=await getOperationDetail(_0x4eb0b1[_0x576b5c(0xab)],_0x20ccab,_0x715082);return{'ok':!![],'data':{'dataset':_0x43a6cc,'operation':_0x3871b8}};}const {dataset:_0x5b0f16,operations:_0x48c355}=await getDatasetOperations(_0x20ccab);return{'ok':!![],'data':{'dataset':_0x5b0f16,'total':_0x48c355[_0x576b5c(0xa0)],'operations':_0x180cb1?_0x48c355:_0x48c355['map'](_0x11a4c5=>({'name':_0x11a4c5['name'],'displayName':_0x11a4c5[_0x576b5c(0xac)],'type':_0x11a4c5['type'],'method':_0x11a4c5['method'],'enabled':_0x11a4c5['enabled']}))}};}};
@@ -1 +1 @@
1
- const a142_0x2e829d=a142_0x569b;(function(_0x1d9a65,_0x47ce1f){const _0x265823=a142_0x569b,_0x441d61=_0x1d9a65();while(!![]){try{const _0x217cbe=parseInt(_0x265823(0xd5))/0x1+parseInt(_0x265823(0xe1))/0x2+-parseInt(_0x265823(0xd3))/0x3+parseInt(_0x265823(0xd8))/0x4*(-parseInt(_0x265823(0xda))/0x5)+parseInt(_0x265823(0xd9))/0x6+-parseInt(_0x265823(0xdd))/0x7*(-parseInt(_0x265823(0xe0))/0x8)+-parseInt(_0x265823(0xdc))/0x9;if(_0x217cbe===_0x47ce1f)break;else _0x441d61['push'](_0x441d61['shift']());}catch(_0x421acb){_0x441d61['push'](_0x441d61['shift']());}}}(a142_0x3db2,0xed781));import{cancelDbAnalysis,getDbLinkInfo}from'../../core/api-client.js';function a142_0x569b(_0x5d6a7a,_0x5238b9){_0x5d6a7a=_0x5d6a7a-0xd2;const _0x3db20d=a142_0x3db2();let _0x569b09=_0x3db20d[_0x5d6a7a];return _0x569b09;}import{CliErrors}from'../../errors.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a142_0x3db2(){const _0xa7bbef=['26760402sdKfJA','11142551lsMCWq','plan','Cancel\x20requested\x20for\x20plan\x20','8EqVEom','1672334ApLxhE','analyze-cancel','string','Cancel\x20a\x20running\x20schema\x20analysis.\x20Omit\x20--plan\x20to\x20use\x20latestAnalysisTraceId\x20from\x20the\x20link','str','979962RdtVtS','No\x20latestAnalysisTraceId\x20on\x20this\x20link.\x20Pass\x20--plan\x20<traceId>\x20from\x20db\x20list/detail.','1791744xdLhKb','num','Analysis\x20plan\x20/\x20trace\x20id\x20(optional\x20—\x20defaults\x20to\x20latest\x20trace\x20from\x20db\x20list/detail)','3931780ZaXtHY','6215676yFUMto','5BrqNPB','write'];a142_0x3db2=function(){return _0xa7bbef;};return a142_0x3db2();}export const dbAnalyzeCancel={'service':'db','command':a142_0x2e829d(0xe2),'description':a142_0x2e829d(0xe4),'risk':a142_0x2e829d(0xdb),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a142_0x2e829d(0xde),'type':a142_0x2e829d(0xe3),'description':a142_0x2e829d(0xd7)}],async 'execute'(_0x126062){const _0x325c31=a142_0x2e829d,_0x48c398=_0x126062[_0x325c31(0xd6)]('id');let _0x7443ad=_0x126062[_0x325c31(0xd2)](_0x325c31(0xde))||undefined;if(!_0x7443ad){const _0x44d41d=await getDbLinkInfo(_0x48c398);_0x7443ad=_0x44d41d['latestAnalysisTraceId']??undefined;if(!_0x7443ad)throw CliErrors['validation'](_0x325c31(0xd4),'Analysis\x20may\x20already\x20be\x20finished\x20or\x20never\x20started.');}return await cancelDbAnalysis(_0x7443ad),{'ok':!![],'data':{'dbLinkId':_0x48c398,'planId':_0x7443ad},'message':_0x325c31(0xdf)+_0x7443ad};}};
1
+ function a51_0x2174(_0x499057,_0x46239e){_0x499057=_0x499057-0xad;const _0x20b6b1=a51_0x20b6();let _0x2174b6=_0x20b6b1[_0x499057];return _0x2174b6;}function a51_0x20b6(){const _0x163211=['plan','str','111vTXeMu','489930sPMIqR','validation','363ZwDKiX','string','num','18cxDfni','350192TApHrP','26584UtLGYV','Cancel\x20a\x20running\x20schema\x20analysis.\x20Omit\x20--plan\x20to\x20use\x20latestAnalysisTraceId\x20from\x20the\x20link','write','Cancel\x20requested\x20for\x20plan\x20','165350iQEuNh','Analysis\x20may\x20already\x20be\x20finished\x20or\x20never\x20started.','3353uRhuXq','244490vhDPIE','Analysis\x20plan\x20/\x20trace\x20id\x20(optional\x20—\x20defaults\x20to\x20latest\x20trace\x20from\x20db\x20list/detail)','56709FDPzaT','latestAnalysisTraceId','3234wcDkJA','No\x20latestAnalysisTraceId\x20on\x20this\x20link.\x20Pass\x20--plan\x20<traceId>\x20from\x20db\x20list/detail.'];a51_0x20b6=function(){return _0x163211;};return a51_0x20b6();}const a51_0x479388=a51_0x2174;(function(_0x42bed6,_0x1fff03){const _0x2373ff=a51_0x2174,_0x521aa2=_0x42bed6();while(!![]){try{const _0x3969be=-parseInt(_0x2373ff(0xb5))/0x1+parseInt(_0x2373ff(0xb0))/0x2+-parseInt(_0x2373ff(0xbb))/0x3*(parseInt(_0x2373ff(0xc3))/0x4)+-parseInt(_0x2373ff(0xbc))/0x5+-parseInt(_0x2373ff(0xb7))/0x6*(parseInt(_0x2373ff(0xb2))/0x7)+parseInt(_0x2373ff(0xc2))/0x8*(-parseInt(_0x2373ff(0xc1))/0x9)+-parseInt(_0x2373ff(0xb3))/0xa*(-parseInt(_0x2373ff(0xbe))/0xb);if(_0x3969be===_0x1fff03)break;else _0x521aa2['push'](_0x521aa2['shift']());}catch(_0x31e33c){_0x521aa2['push'](_0x521aa2['shift']());}}}(a51_0x20b6,0x22f3e));import{cancelDbAnalysis,getDbLinkInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeCancel={'service':'db','command':'analyze-cancel','description':a51_0x479388(0xad),'risk':a51_0x479388(0xae),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a51_0x479388(0xb9),'type':a51_0x479388(0xbf),'description':a51_0x479388(0xb4)}],async 'execute'(_0x2bc39e){const _0x56e1fe=a51_0x479388,_0x34d03f=_0x2bc39e[_0x56e1fe(0xc0)]('id');let _0x68f2e0=_0x2bc39e[_0x56e1fe(0xba)]('plan')||undefined;if(!_0x68f2e0){const _0x58ee1=await getDbLinkInfo(_0x34d03f);_0x68f2e0=_0x58ee1[_0x56e1fe(0xb6)]??undefined;if(!_0x68f2e0)throw CliErrors[_0x56e1fe(0xbd)](_0x56e1fe(0xb8),_0x56e1fe(0xb1));}return await cancelDbAnalysis(_0x68f2e0),{'ok':!![],'data':{'dbLinkId':_0x34d03f,'planId':_0x68f2e0},'message':_0x56e1fe(0xaf)+_0x68f2e0};}};
@@ -1 +1 @@
1
- function a139_0xfe87(_0x450176,_0x22b020){_0x450176=_0x450176-0x181;const _0x6b5e41=a139_0x6b5e();let _0xfe87f0=_0x6b5e41[_0x450176];return _0xfe87f0;}const a139_0x328d02=a139_0xfe87;(function(_0x4b7556,_0x2857ec){const _0x19659d=a139_0xfe87,_0x58e7d5=_0x4b7556();while(!![]){try{const _0xcda651=-parseInt(_0x19659d(0x190))/0x1+parseInt(_0x19659d(0x183))/0x2*(-parseInt(_0x19659d(0x182))/0x3)+-parseInt(_0x19659d(0x187))/0x4+parseInt(_0x19659d(0x193))/0x5*(-parseInt(_0x19659d(0x18b))/0x6)+parseInt(_0x19659d(0x184))/0x7+-parseInt(_0x19659d(0x18c))/0x8*(parseInt(_0x19659d(0x189))/0x9)+parseInt(_0x19659d(0x192))/0xa*(parseInt(_0x19659d(0x18d))/0xb);if(_0xcda651===_0x2857ec)break;else _0x58e7d5['push'](_0x58e7d5['shift']());}catch(_0x19ebc1){_0x58e7d5['push'](_0x58e7d5['shift']());}}}(a139_0x6b5e,0xa6035));function a139_0x6b5e(){const _0x10e017=['12Jjepyy','72uGgogS','43620313ztyXFr','analyze-start','str','1144929lGDLcm','Started\x20analysis\x20for\x20db\x20link\x20','10kAPFsh','2587815RWaiOU','write','2893608smCmDf','2tfVLrp','7595616qQtcYr','num','Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)','1069568jjteag','filter','958599nbxeZF','split'];a139_0x6b5e=function(){return _0x10e017;};return a139_0x6b5e();}import{startDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeStart={'service':'db','command':a139_0x328d02(0x18e),'description':'Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','risk':a139_0x328d02(0x181),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':'tables','type':'string','description':a139_0x328d02(0x186)}],async 'execute'(_0x214da2){const _0x264bb3=a139_0x328d02,_0x40f35b=_0x214da2[_0x264bb3(0x185)]('id'),_0xc49df5=_0x214da2[_0x264bb3(0x18f)]('tables'),_0x2d6cfa=_0xc49df5?_0xc49df5[_0x264bb3(0x18a)](',')['map'](_0x4c60c1=>_0x4c60c1['trim']())[_0x264bb3(0x188)](Boolean):undefined,_0x37100b=await startDbAnalysis(_0x40f35b,_0x2d6cfa);return{'ok':!![],'data':{'dbLinkId':_0x40f35b,'planId':_0x37100b,'tableNames':_0x2d6cfa??[]},'message':_0x264bb3(0x191)+_0x40f35b};}};
1
+ const a52_0x47095f=a52_0x465c;(function(_0x3157ed,_0xd2684b){const _0x2b3898=a52_0x465c,_0x24eba4=_0x3157ed();while(!![]){try{const _0x49dd06=parseInt(_0x2b3898(0x1a4))/0x1+parseInt(_0x2b3898(0x193))/0x2*(-parseInt(_0x2b3898(0x194))/0x3)+parseInt(_0x2b3898(0x1a2))/0x4*(parseInt(_0x2b3898(0x19d))/0x5)+parseInt(_0x2b3898(0x19c))/0x6*(parseInt(_0x2b3898(0x1a0))/0x7)+-parseInt(_0x2b3898(0x1a3))/0x8*(parseInt(_0x2b3898(0x196))/0x9)+-parseInt(_0x2b3898(0x1a1))/0xa*(-parseInt(_0x2b3898(0x192))/0xb)+-parseInt(_0x2b3898(0x19b))/0xc*(parseInt(_0x2b3898(0x190))/0xd);if(_0x49dd06===_0xd2684b)break;else _0x24eba4['push'](_0x24eba4['shift']());}catch(_0x34835f){_0x24eba4['push'](_0x24eba4['shift']());}}}(a52_0x5db9,0x89d20));import{startDbAnalysis}from'../../core/api-client.js';function a52_0x465c(_0x51ce2a,_0xd59093){_0x51ce2a=_0x51ce2a-0x18f;const _0x5db9cc=a52_0x5db9();let _0x465c11=_0x5db9cc[_0x51ce2a];return _0x465c11;}function a52_0x5db9(){const _0x2deede=['7LsuZgf','10IzEuwA','4491616zqITcH','544iTUFBs','452279gSkStz','split','9014421syJfJB','filter','6545693aJhbcH','3908AIxEMj','1497yVTDLt','trim','104697tygWOH','num','Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)','Started\x20analysis\x20for\x20db\x20link\x20','str','12pavMkU','5122638mFJyIk','5QZcEaV','map','tables'];a52_0x5db9=function(){return _0x2deede;};return a52_0x5db9();}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeStart={'service':'db','command':'analyze-start','description':'Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','risk':'write','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':'tables','type':'string','description':a52_0x47095f(0x198)}],async 'execute'(_0x3b4dce){const _0x4fac96=a52_0x47095f,_0x18e3a5=_0x3b4dce[_0x4fac96(0x197)]('id'),_0x4973ba=_0x3b4dce[_0x4fac96(0x19a)](_0x4fac96(0x19f)),_0x1a58af=_0x4973ba?_0x4973ba[_0x4fac96(0x18f)](',')[_0x4fac96(0x19e)](_0x2507d3=>_0x2507d3[_0x4fac96(0x195)]())[_0x4fac96(0x191)](Boolean):undefined,_0x497236=await startDbAnalysis(_0x18e3a5,_0x1a58af);return{'ok':!![],'data':{'dbLinkId':_0x18e3a5,'planId':_0x497236,'tableNames':_0x1a58af??[]},'message':_0x4fac96(0x199)+_0x18e3a5};}};
@@ -1 +1 @@
1
- function a146_0x1571(_0x15735b,_0x42fa58){_0x15735b=_0x15735b-0x112;const _0x177db9=a146_0x177d();let _0x157134=_0x177db9[_0x15735b];return _0x157134;}const a146_0xb8e869=a146_0x1571;(function(_0x2299da,_0x1363d0){const _0x20aea8=a146_0x1571,_0x11e63d=_0x2299da();while(!![]){try{const _0x5accd3=parseInt(_0x20aea8(0x11b))/0x1+parseInt(_0x20aea8(0x113))/0x2*(-parseInt(_0x20aea8(0x118))/0x3)+parseInt(_0x20aea8(0x11a))/0x4*(parseInt(_0x20aea8(0x11d))/0x5)+-parseInt(_0x20aea8(0x121))/0x6+-parseInt(_0x20aea8(0x122))/0x7*(parseInt(_0x20aea8(0x119))/0x8)+-parseInt(_0x20aea8(0x112))/0x9+parseInt(_0x20aea8(0x11c))/0xa*(parseInt(_0x20aea8(0x117))/0xb);if(_0x5accd3===_0x1363d0)break;else _0x11e63d['push'](_0x11e63d['shift']());}catch(_0xcf511e){_0x11e63d['push'](_0x11e63d['shift']());}}}(a146_0x177d,0x639e6));function a146_0x177d(){const _0xe880e8=['90MhcMLM','2945xZiFIr','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','analyze-status','plan','1385778FKzxve','7OPpXxA','7098894VnjhRK','429038xiqjXF','num','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','string','2195061ZZGNqq','9MuOUqn','2855832cbWxLh','3748WGyZsA','80451tEjZrc'];a146_0x177d=function(){return _0xe880e8;};return a146_0x177d();}import{getDbAnalysisStatus}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeStatus={'service':'db','command':a146_0xb8e869(0x11f),'description':a146_0xb8e869(0x115),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a146_0xb8e869(0x120),'type':a146_0xb8e869(0x116),'required':!![],'description':a146_0xb8e869(0x11e)}],async 'execute'(_0x49b051){const _0x2904a8=a146_0xb8e869,_0x564632=_0x49b051[_0x2904a8(0x114)]('id'),_0x25788d=_0x49b051['str'](_0x2904a8(0x120)),_0x55f812=await getDbAnalysisStatus(_0x25788d);return{'ok':!![],'data':{'dbLinkId':_0x564632,'planId':_0x25788d,'status':_0x55f812},'message':'Analysis\x20status\x20for\x20'+_0x25788d};}};
1
+ function a53_0x54ae(_0x333388,_0x594e59){_0x333388=_0x333388-0x1a9;const _0x4bfb99=a53_0x4bfb();let _0x54ae1b=_0x4bfb99[_0x333388];return _0x54ae1b;}function a53_0x4bfb(){const _0x3bff34=['1643000RhDCYh','read','286127gXzYaM','plan','2094APMMKN','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','3776150sSetLI','2635460zpnRaH','6MrdEFM','2NBDvKc','7988VsEBqU','10276650BsMXfh','str','3242904xhOdHK','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id'];a53_0x4bfb=function(){return _0x3bff34;};return a53_0x4bfb();}const a53_0x5d8b2d=a53_0x54ae;(function(_0x3896da,_0x480773){const _0x4bb45e=a53_0x54ae,_0x3855ba=_0x3896da();while(!![]){try{const _0x260bc9=-parseInt(_0x4bb45e(0x1ad))/0x1*(-parseInt(_0x4bb45e(0x1b4))/0x2)+parseInt(_0x4bb45e(0x1af))/0x3*(-parseInt(_0x4bb45e(0x1b5))/0x4)+parseInt(_0x4bb45e(0x1b2))/0x5+parseInt(_0x4bb45e(0x1b3))/0x6*(parseInt(_0x4bb45e(0x1b1))/0x7)+-parseInt(_0x4bb45e(0x1a9))/0x8+parseInt(_0x4bb45e(0x1b6))/0x9+parseInt(_0x4bb45e(0x1ab))/0xa;if(_0x260bc9===_0x480773)break;else _0x3855ba['push'](_0x3855ba['shift']());}catch(_0x422491){_0x3855ba['push'](_0x3855ba['shift']());}}}(a53_0x4bfb,0xd1d9e));import{getDbAnalysisStatus}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeStatus={'service':'db','command':'analyze-status','description':a53_0x5d8b2d(0x1aa),'risk':a53_0x5d8b2d(0x1ac),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a53_0x5d8b2d(0x1ae),'type':'string','required':!![],'description':a53_0x5d8b2d(0x1b0)}],async 'execute'(_0x15ddbf){const _0x32835f=a53_0x5d8b2d,_0x4c3759=_0x15ddbf['num']('id'),_0x252971=_0x15ddbf[_0x32835f(0x1b7)](_0x32835f(0x1ae)),_0x4b3e47=await getDbAnalysisStatus(_0x252971);return{'ok':!![],'data':{'dbLinkId':_0x4c3759,'planId':_0x252971,'status':_0x4b3e47},'message':'Analysis\x20status\x20for\x20'+_0x252971};}};