@lovrabet/rabetbase-cli 2.3.6 → 2.3.7-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) 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/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.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-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -0
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -0
  79. package/lib/commands/db/analyze-batch-plan.js +1 -0
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff.js +1 -1
  87. package/lib/commands/db/index.js +1 -1
  88. package/lib/commands/db/list.js +1 -1
  89. package/lib/commands/db/shared.js +1 -1
  90. package/lib/commands/db/tables.js +1 -1
  91. package/lib/commands/db/test.js +1 -1
  92. package/lib/commands/db/update.js +1 -1
  93. package/lib/commands/doctor.js +1 -1
  94. package/lib/commands/file/index.js +1 -0
  95. package/lib/commands/init/index.js +1 -1
  96. package/lib/commands/issue/index.js +1 -1
  97. package/lib/commands/issue/nudge.js +1 -1
  98. package/lib/commands/issue/report.js +1 -1
  99. package/lib/commands/issue/shared.js +1 -1
  100. package/lib/commands/logs/index.js +1 -1
  101. package/lib/commands/menu/index.js +1 -1
  102. package/lib/commands/menu/list.js +1 -1
  103. package/lib/commands/menu/shared/compare-table.js +1 -1
  104. package/lib/commands/menu/shared/index.js +1 -1
  105. package/lib/commands/menu/shared/inquirer.js +1 -1
  106. package/lib/commands/menu/shared/local-pages.js +1 -1
  107. package/lib/commands/menu/shared/logic.js +1 -1
  108. package/lib/commands/menu/shared/service.js +1 -1
  109. package/lib/commands/menu/shared/sync-core.js +1 -1
  110. package/lib/commands/menu/shared/update-core.js +1 -1
  111. package/lib/commands/menu/shared/valid-url.js +1 -1
  112. package/lib/commands/menu/sync.js +1 -1
  113. package/lib/commands/menu/update.js +1 -1
  114. package/lib/commands/page/generate-start.js +1 -1
  115. package/lib/commands/page/generate-status.js +1 -1
  116. package/lib/commands/page/index.js +1 -1
  117. package/lib/commands/page/pull.js +1 -1
  118. package/lib/commands/page/push.js +1 -1
  119. package/lib/commands/page/relation-audit.js +1 -1
  120. package/lib/commands/page/shared.js +1 -1
  121. package/lib/commands/page/standard-page-status.js +1 -1
  122. package/lib/commands/page/sync.js +1 -1
  123. package/lib/commands/permit/index.js +1 -1
  124. package/lib/commands/permit/page-get.js +1 -1
  125. package/lib/commands/permit/page-set.js +1 -1
  126. package/lib/commands/permit/role-apis-set.js +1 -1
  127. package/lib/commands/permit/role-menus-set.js +1 -1
  128. package/lib/commands/permit/role-menus.js +1 -1
  129. package/lib/commands/permit/shared.js +1 -1
  130. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  131. package/lib/commands/project/create/format-elapsed.js +1 -1
  132. package/lib/commands/project/create/main.js +1 -1
  133. package/lib/commands/project/create/non-interactive.js +1 -1
  134. package/lib/commands/project/create/project-template-path.js +1 -1
  135. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  136. package/lib/commands/project/create/use-format-code.js +1 -1
  137. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  138. package/lib/commands/project/index.js +1 -1
  139. package/lib/commands/project/init.js +1 -1
  140. package/lib/commands/project/upgrade.js +1 -1
  141. package/lib/commands/registry.js +1 -1
  142. package/lib/commands/role/create.js +1 -1
  143. package/lib/commands/role/delete.js +1 -1
  144. package/lib/commands/role/detail.js +1 -1
  145. package/lib/commands/role/index.js +1 -1
  146. package/lib/commands/role/list.js +1 -1
  147. package/lib/commands/role/shared.js +1 -1
  148. package/lib/commands/role/update.js +1 -1
  149. package/lib/commands/role/user-add.js +1 -1
  150. package/lib/commands/role/user-remove.js +1 -1
  151. package/lib/commands/role/user-resolve.js +1 -1
  152. package/lib/commands/run/index.js +1 -1
  153. package/lib/commands/schema.js +1 -1
  154. package/lib/commands/sql/create.js +1 -1
  155. package/lib/commands/sql/delete.js +1 -1
  156. package/lib/commands/sql/detail.js +1 -1
  157. package/lib/commands/sql/exec.js +1 -1
  158. package/lib/commands/sql/index.js +1 -1
  159. package/lib/commands/sql/list.js +1 -1
  160. package/lib/commands/sql/pull.js +1 -1
  161. package/lib/commands/sql/push.js +1 -1
  162. package/lib/commands/sql/save.js +1 -1
  163. package/lib/commands/sql/shared.js +1 -1
  164. package/lib/commands/sql/status.js +1 -1
  165. package/lib/commands/sql/validate.js +1 -1
  166. package/lib/commands/workspace/add.js +1 -1
  167. package/lib/commands/workspace/index.js +1 -1
  168. package/lib/commands/workspace/remove.js +1 -1
  169. package/lib/config/schema.js +1 -1
  170. package/lib/constant/cdn.js +1 -1
  171. package/lib/constant/cli.js +1 -1
  172. package/lib/constant/defaults.js +1 -1
  173. package/lib/constant/domain.js +1 -1
  174. package/lib/constant/env.js +1 -1
  175. package/lib/constant/output.js +1 -1
  176. package/lib/constant/paths.js +1 -1
  177. package/lib/constant/risk.js +1 -1
  178. package/lib/context/app-resolver.js +1 -1
  179. package/lib/context/auth-resolver.js +1 -1
  180. package/lib/context/config-loader.js +1 -1
  181. package/lib/context.js +1 -1
  182. package/lib/core/alias-resolver.js +1 -1
  183. package/lib/core/api-client.js +1 -1
  184. package/lib/core/bff/config.js +1 -1
  185. package/lib/core/bff/file-system.js +1 -1
  186. package/lib/core/bff/hash.js +1 -1
  187. package/lib/core/bff/lock.js +1 -1
  188. package/lib/core/bff/utils.js +1 -1
  189. package/lib/core/db-resolver.js +1 -1
  190. package/lib/core/page/file-system.js +1 -1
  191. package/lib/core/page/hash.js +1 -1
  192. package/lib/core/page/lock.js +1 -1
  193. package/lib/core/sql-sync/config.js +1 -1
  194. package/lib/core/sql-sync/file-system.js +1 -1
  195. package/lib/core/sql-sync/hash.js +1 -1
  196. package/lib/core/sql-sync/lock.js +1 -1
  197. package/lib/core/sql-sync/utils.js +1 -1
  198. package/lib/core/sql-validator.js +1 -1
  199. package/lib/errors.js +1 -1
  200. package/lib/framework/build-all-flags.js +1 -1
  201. package/lib/framework/flags.js +1 -1
  202. package/lib/framework/help.js +1 -1
  203. package/lib/framework/index.js +1 -1
  204. package/lib/framework/output.js +1 -1
  205. package/lib/framework/response.js +1 -1
  206. package/lib/framework/runner-alias.js +1 -1
  207. package/lib/framework/runner.js +1 -1
  208. package/lib/framework/schema-export.js +1 -1
  209. package/lib/framework/types.js +1 -1
  210. package/lib/generated/build-info.js +1 -1
  211. package/lib/help.js +1 -1
  212. package/lib/skills/main.js +1 -1
  213. package/lib/skills/npx-skills-add.js +1 -1
  214. package/lib/telemetry/cli-command-trace.js +1 -1
  215. package/lib/telemetry/cli-help-trace.js +1 -1
  216. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  217. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  218. package/lib/telemetry/send-cli-trace-log.js +1 -1
  219. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  220. package/lib/utils/ai_config.js +1 -1
  221. package/lib/utils/apply-jq-filter.js +1 -1
  222. package/lib/utils/cdn-config.js +1 -1
  223. package/lib/utils/check-sdk-version.js +1 -1
  224. package/lib/utils/cli-version-check.js +1 -1
  225. package/lib/utils/cli-version-policy.js +1 -1
  226. package/lib/utils/config.js +1 -1
  227. package/lib/utils/copy-directory.js +1 -1
  228. package/lib/utils/entity-with-id.js +1 -1
  229. package/lib/utils/file-utils.js +1 -1
  230. package/lib/utils/guides-cdn.js +1 -1
  231. package/lib/utils/http-client.js +1 -1
  232. package/lib/utils/is-non-interactive.js +1 -1
  233. package/lib/utils/logger.js +1 -1
  234. package/lib/utils/params.js +1 -1
  235. package/lib/utils/platform.js +1 -1
  236. package/lib/utils/rules-cdn.js +1 -1
  237. package/lib/utils/sleep.js +1 -1
  238. package/lib/utils/template-replacer.js +1 -1
  239. package/lib/utils/update-notice.js +1 -1
  240. package/lib/utils/version.js +1 -1
  241. package/lib/utils/with-active-cookie.js +1 -1
  242. package/lib/utils/write-cli-side-channel.js +1 -1
  243. package/package.json +1 -1
@@ -1 +1 @@
1
- const a74_0x4538bc=a74_0x38ac;(function(_0x195bcb,_0x3c9496){const _0x5de109=a74_0x38ac,_0x3ca38f=_0x195bcb();while(!![]){try{const _0xaa1e86=parseInt(_0x5de109(0xd5))/0x1*(-parseInt(_0x5de109(0xd8))/0x2)+parseInt(_0x5de109(0xd3))/0x3+-parseInt(_0x5de109(0xe3))/0x4*(parseInt(_0x5de109(0xf5))/0x5)+parseInt(_0x5de109(0xe9))/0x6+parseInt(_0x5de109(0xd6))/0x7+parseInt(_0x5de109(0xdc))/0x8+-parseInt(_0x5de109(0xe8))/0x9;if(_0xaa1e86===_0x3c9496)break;else _0x3ca38f['push'](_0x3ca38f['shift']());}catch(_0x123c52){_0x3ca38f['push'](_0x3ca38f['shift']());}}}(a74_0x44a0,0x89455));import{getDatasetDetail,updateDrivenData}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';function a74_0x44a0(){const _0x3fc510=['\x20would\x20be\x20renamed\x20to\x20','stringify','Expected\x20current\x20dataset\x20display\x20name;\x20mismatch\x20aborts\x20without\x20writing','datasetCode','modelCode','str','432201TPqTmR','datasetName','1017098OzXvVI','5401830xjgWYF','\x20to\x20','2dPnpXB','POST','--code\x20is\x20required','rename','8083472ziWJeq','modelId','trim','name','string','expectName','Expectation\x20mismatch\x20at\x20dataset.name','22000cfDrmK','data','--expect-name\x20is\x20required','Dataset\x20detail\x20does\x20not\x20contain\x20dataset\x20id','Rename\x20dataset\x20display\x20name\x20safely','3177909PGElUV','169614bYRTyx','Renamed\x20dataset\x20','validation',',\x20actual\x20','object','Expected\x20','/smartapi/dataset/update-driven-data','--name\x20is\x20required','New\x20dataset\x20display\x20name','code','expect-name','Dry-run:\x20dataset\x20','20vJQSGB','dataset'];a74_0x44a0=function(){return _0x3fc510;};return a74_0x44a0();}export async function buildDatasetRenameResult({input:_0x450786,dryRun:_0x4ea669}){const _0x320e64=a74_0x38ac;validateInput(_0x450786);const _0x1be7fa=await getDatasetDetail(_0x450786[_0x320e64(0xf2)]),_0x142400=resolveCurrentName(_0x1be7fa);if(_0x142400!==_0x450786[_0x320e64(0xe1)])throw CliErrors['validation'](_0x320e64(0xe2),_0x320e64(0xee)+JSON[_0x320e64(0xf8)](_0x450786['expectName'])+_0x320e64(0xec)+JSON['stringify'](_0x142400));const _0x536f66=buildRenameRequest(_0x1be7fa,_0x450786),_0x549428=_0x142400!==_0x450786[_0x320e64(0xdf)];let _0x148f7e;return _0x549428&&!_0x4ea669&&(_0x148f7e=await updateDrivenData(_0x536f66)),{'ok':!![],'data':{'dataset':{'id':_0x536f66[_0x320e64(0xdd)],'code':_0x536f66[_0x320e64(0xfb)]},'dryRun':_0x4ea669,'changed':_0x549428,'before':{'name':_0x142400},'after':{'name':_0x450786[_0x320e64(0xdf)]},'request':_0x536f66,'submitted':_0x549428&&!_0x4ea669,..._0x148f7e!==undefined?{'version':_0x148f7e}:{}},'message':_0x549428?_0x4ea669?_0x320e64(0xf4)+_0x536f66[_0x320e64(0xfb)]+_0x320e64(0xf7)+_0x450786[_0x320e64(0xdf)]:_0x320e64(0xea)+_0x536f66[_0x320e64(0xfb)]+_0x320e64(0xd7)+_0x450786[_0x320e64(0xdf)]:'No\x20changes\x20for\x20dataset\x20'+_0x536f66['modelCode']};}export const datasetRename={'service':a74_0x4538bc(0xf6),'command':a74_0x4538bc(0xdb),'description':a74_0x4538bc(0xe7),'risk':'write','flags':[CODE_FLAG,{'name':a74_0x4538bc(0xdf),'type':a74_0x4538bc(0xe0),'required':!![],'description':a74_0x4538bc(0xf1)},{'name':'expect-name','type':a74_0x4538bc(0xe0),'required':!![],'description':a74_0x4538bc(0xf9)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5adc59){validateInput(readDatasetRenameInput(_0x5adc59));},async 'dryRun'(_0x47d351){const _0x423444=a74_0x4538bc,_0x18f051=await buildDatasetRenameResult({'input':readDatasetRenameInput(_0x47d351),'dryRun':!![]});return{'method':_0x423444(0xd9),'url':_0x423444(0xef),'body':_0x18f051[_0x423444(0xe4)]['request'],'description':_0x18f051['message'],..._0x18f051[_0x423444(0xe4)]};},async 'execute'(_0x434703){return buildDatasetRenameResult({'input':readDatasetRenameInput(_0x434703),'dryRun':![]});}};function readDatasetRenameInput(_0x8c24f4){const _0x59f033=a74_0x4538bc;return{'code':trim(_0x8c24f4[_0x59f033(0xd2)]('code')),'name':trim(_0x8c24f4[_0x59f033(0xd2)]('name')),'expectName':trim(_0x8c24f4['str'](_0x59f033(0xf3)))};}function validateInput(_0x107a58){const _0x1ba770=a74_0x4538bc;if(!_0x107a58['code'])throw CliErrors['validation'](_0x1ba770(0xda));if(!_0x107a58[_0x1ba770(0xdf)])throw CliErrors[_0x1ba770(0xeb)](_0x1ba770(0xf0));if(!_0x107a58['expectName'])throw CliErrors['validation'](_0x1ba770(0xe5));}function resolveCurrentName(_0x3a4884){const _0x41a919=a74_0x4538bc;return String(_0x3a4884['dataset']?.[_0x41a919(0xd4)]??_0x3a4884[_0x41a919(0xdf)]??'')[_0x41a919(0xde)]();}function buildRenameRequest(_0xe4a0e4,_0xabd671){const _0x212c4=a74_0x4538bc,_0x5be306=isPlainObject(_0xe4a0e4[_0x212c4(0xf6)])?_0xe4a0e4[_0x212c4(0xf6)]:{},_0x44f5d1=_0xe4a0e4[_0x212c4(0xdd)]??_0xe4a0e4['id']??_0x5be306['datasetId'];if(_0x44f5d1===undefined||_0x44f5d1===null||_0x44f5d1==='')throw CliErrors[_0x212c4(0xeb)](_0x212c4(0xe6));const _0xce3908=String(_0xe4a0e4['modelCode']??_0xe4a0e4[_0x212c4(0xf2)]??_0x5be306[_0x212c4(0xfa)]??_0xabd671[_0x212c4(0xf2)])[_0x212c4(0xde)]();if(!_0xce3908)throw CliErrors[_0x212c4(0xeb)]('Dataset\x20detail\x20does\x20not\x20contain\x20dataset\x20code');return{'modelId':_0x44f5d1,'modelCode':_0xce3908,'name':_0xabd671['name'],'dataset':{'datasetId':_0x44f5d1,'datasetCode':_0xce3908,'datasetName':_0xabd671[_0x212c4(0xdf)]}};}function isPlainObject(_0x3e57a2){const _0x4d62b2=a74_0x4538bc;return Boolean(_0x3e57a2)&&typeof _0x3e57a2===_0x4d62b2(0xed)&&!Array['isArray'](_0x3e57a2);}function a74_0x38ac(_0x24ca8f,_0x556f39){_0x24ca8f=_0x24ca8f-0xd2;const _0x44a08d=a74_0x44a0();let _0x38acd7=_0x44a08d[_0x24ca8f];return _0x38acd7;}function trim(_0x5183a4){const _0x1a6d6b=a74_0x4538bc;return String(_0x5183a4||'')[_0x1a6d6b(0xde)]();}
1
+ const a75_0x1720e5=a75_0x2ca9;(function(_0x187917,_0x52b43b){const _0x37b369=a75_0x2ca9,_0x4c3be2=_0x187917();while(!![]){try{const _0x2bba91=parseInt(_0x37b369(0x1d9))/0x1*(parseInt(_0x37b369(0x1d5))/0x2)+-parseInt(_0x37b369(0x1df))/0x3*(parseInt(_0x37b369(0x1c3))/0x4)+parseInt(_0x37b369(0x1ea))/0x5+-parseInt(_0x37b369(0x1c6))/0x6+-parseInt(_0x37b369(0x1cf))/0x7*(parseInt(_0x37b369(0x1e0))/0x8)+-parseInt(_0x37b369(0x1ce))/0x9*(-parseInt(_0x37b369(0x1c1))/0xa)+parseInt(_0x37b369(0x1e4))/0xb*(parseInt(_0x37b369(0x1e5))/0xc);if(_0x2bba91===_0x52b43b)break;else _0x4c3be2['push'](_0x4c3be2['shift']());}catch(_0x15a41c){_0x4c3be2['push'](_0x4c3be2['shift']());}}}(a75_0x149e,0x18a17));import{getDatasetDetail,updateDrivenData}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a75_0x2ca9(_0x1c9b20,_0x442acb){_0x1c9b20=_0x1c9b20-0x1c0;const _0x149ed6=a75_0x149e();let _0x2ca926=_0x149ed6[_0x1c9b20];return _0x2ca926;}import{CliErrors}from'../../errors.js';export async function buildDatasetRenameResult({input:_0x7090e7,dryRun:_0x5df70b}){const _0x2b19fb=a75_0x2ca9;validateInput(_0x7090e7);const _0x41b086=await getDatasetDetail(_0x7090e7[_0x2b19fb(0x1e7)]),_0x3946ff=resolveCurrentName(_0x41b086);if(_0x3946ff!==_0x7090e7['expectName'])throw CliErrors['validation']('Expectation\x20mismatch\x20at\x20dataset.name',_0x2b19fb(0x1c7)+JSON['stringify'](_0x7090e7[_0x2b19fb(0x1c5)])+_0x2b19fb(0x1d8)+JSON['stringify'](_0x3946ff));const _0x5106ef=buildRenameRequest(_0x41b086,_0x7090e7),_0x5343fc=_0x3946ff!==_0x7090e7['name'];let _0x43009b;return _0x5343fc&&!_0x5df70b&&(_0x43009b=await updateDrivenData(_0x5106ef)),{'ok':!![],'data':{'dataset':{'id':_0x5106ef[_0x2b19fb(0x1dc)],'code':_0x5106ef[_0x2b19fb(0x1cb)]},'dryRun':_0x5df70b,'changed':_0x5343fc,'before':{'name':_0x3946ff},'after':{'name':_0x7090e7['name']},'request':_0x5106ef,'submitted':_0x5343fc&&!_0x5df70b,..._0x43009b!==undefined?{'version':_0x43009b}:{}},'message':_0x5343fc?_0x5df70b?_0x2b19fb(0x1e6)+_0x5106ef[_0x2b19fb(0x1cb)]+_0x2b19fb(0x1da)+_0x7090e7[_0x2b19fb(0x1ca)]:_0x2b19fb(0x1c4)+_0x5106ef[_0x2b19fb(0x1cb)]+_0x2b19fb(0x1eb)+_0x7090e7[_0x2b19fb(0x1ca)]:_0x2b19fb(0x1c9)+_0x5106ef['modelCode']};}export const datasetRename={'service':a75_0x1720e5(0x1e2),'command':a75_0x1720e5(0x1de),'description':a75_0x1720e5(0x1d7),'risk':a75_0x1720e5(0x1d1),'flags':[CODE_FLAG,{'name':'name','type':a75_0x1720e5(0x1c8),'required':!![],'description':a75_0x1720e5(0x1c2)},{'name':a75_0x1720e5(0x1d6),'type':a75_0x1720e5(0x1c8),'required':!![],'description':'Expected\x20current\x20dataset\x20display\x20name;\x20mismatch\x20aborts\x20without\x20writing'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3888df){validateInput(readDatasetRenameInput(_0x3888df));},async 'dryRun'(_0x107074){const _0x46e86f=a75_0x1720e5,_0x2fdd67=await buildDatasetRenameResult({'input':readDatasetRenameInput(_0x107074),'dryRun':!![]});return{'method':_0x46e86f(0x1cc),'url':'/smartapi/dataset/update-driven-data','body':_0x2fdd67[_0x46e86f(0x1dd)][_0x46e86f(0x1e1)],'description':_0x2fdd67['message'],..._0x2fdd67[_0x46e86f(0x1dd)]};},async 'execute'(_0x56a87c){return buildDatasetRenameResult({'input':readDatasetRenameInput(_0x56a87c),'dryRun':![]});}};function readDatasetRenameInput(_0x5c670c){const _0xf6c925=a75_0x1720e5;return{'code':trim(_0x5c670c[_0xf6c925(0x1e8)](_0xf6c925(0x1e7))),'name':trim(_0x5c670c[_0xf6c925(0x1e8)](_0xf6c925(0x1ca))),'expectName':trim(_0x5c670c[_0xf6c925(0x1e8)](_0xf6c925(0x1d6)))};}function validateInput(_0x73504a){const _0x4a165b=a75_0x1720e5;if(!_0x73504a[_0x4a165b(0x1e7)])throw CliErrors[_0x4a165b(0x1e9)](_0x4a165b(0x1e3));if(!_0x73504a['name'])throw CliErrors[_0x4a165b(0x1e9)](_0x4a165b(0x1cd));if(!_0x73504a[_0x4a165b(0x1c5)])throw CliErrors[_0x4a165b(0x1e9)](_0x4a165b(0x1d2));}function resolveCurrentName(_0x29d234){const _0x57cd9c=a75_0x1720e5;return String(_0x29d234[_0x57cd9c(0x1e2)]?.[_0x57cd9c(0x1d4)]??_0x29d234[_0x57cd9c(0x1ca)]??'')[_0x57cd9c(0x1c0)]();}function buildRenameRequest(_0xc6f8f5,_0x250f02){const _0x5aa377=a75_0x1720e5,_0x2874a2=isPlainObject(_0xc6f8f5[_0x5aa377(0x1e2)])?_0xc6f8f5[_0x5aa377(0x1e2)]:{},_0x4a9289=_0xc6f8f5[_0x5aa377(0x1dc)]??_0xc6f8f5['id']??_0x2874a2[_0x5aa377(0x1d3)];if(_0x4a9289===undefined||_0x4a9289===null||_0x4a9289==='')throw CliErrors[_0x5aa377(0x1e9)]('Dataset\x20detail\x20does\x20not\x20contain\x20dataset\x20id');const _0x2643dc=String(_0xc6f8f5['modelCode']??_0xc6f8f5[_0x5aa377(0x1e7)]??_0x2874a2['datasetCode']??_0x250f02[_0x5aa377(0x1e7)])['trim']();if(!_0x2643dc)throw CliErrors['validation']('Dataset\x20detail\x20does\x20not\x20contain\x20dataset\x20code');return{'modelId':_0x4a9289,'modelCode':_0x2643dc,'name':_0x250f02['name'],'dataset':{'datasetId':_0x4a9289,'datasetCode':_0x2643dc,'datasetName':_0x250f02[_0x5aa377(0x1ca)]}};}function isPlainObject(_0xd79a0d){const _0x82f5ae=a75_0x1720e5;return Boolean(_0xd79a0d)&&typeof _0xd79a0d===_0x82f5ae(0x1db)&&!Array[_0x82f5ae(0x1d0)](_0xd79a0d);}function trim(_0x3b00a8){const _0x2e39cc=a75_0x1720e5;return String(_0x3b00a8||'')[_0x2e39cc(0x1c0)]();}function a75_0x149e(){const _0x16d178=['name','modelCode','POST','--name\x20is\x20required','47295HDEVhj','28PSGyRa','isArray','write','--expect-name\x20is\x20required','datasetId','datasetName','2bBIyYb','expect-name','Rename\x20dataset\x20display\x20name\x20safely',',\x20actual\x20','178063XwsHml','\x20would\x20be\x20renamed\x20to\x20','object','modelId','data','rename','9cFFtbM','344024dsGHnv','request','dataset','--code\x20is\x20required','11uRfpsQ','2840676furPCx','Dry-run:\x20dataset\x20','code','str','validation','876475HMBUWi','\x20to\x20','trim','20jHaLkW','New\x20dataset\x20display\x20name','263220qOQyHT','Renamed\x20dataset\x20','expectName','781662KYiTcX','Expected\x20','string','No\x20changes\x20for\x20dataset\x20'];a75_0x149e=function(){return _0x16d178;};return a75_0x149e();}
@@ -1 +1 @@
1
- const a75_0xec58=a75_0x49c0;(function(_0x1e2e0d,_0x2858eb){const _0x25f6a5=a75_0x49c0,_0x1ac38d=_0x1e2e0d();while(!![]){try{const _0x124293=parseInt(_0x25f6a5(0x1de))/0x1*(parseInt(_0x25f6a5(0x1e4))/0x2)+parseInt(_0x25f6a5(0x1f0))/0x3*(-parseInt(_0x25f6a5(0x1f3))/0x4)+parseInt(_0x25f6a5(0x1f9))/0x5+parseInt(_0x25f6a5(0x1e1))/0x6*(-parseInt(_0x25f6a5(0x1ed))/0x7)+-parseInt(_0x25f6a5(0x1d6))/0x8+parseInt(_0x25f6a5(0x1da))/0x9*(parseInt(_0x25f6a5(0x1e0))/0xa)+-parseInt(_0x25f6a5(0x1fb))/0xb*(parseInt(_0x25f6a5(0x1f2))/0xc);if(_0x124293===_0x2858eb)break;else _0x1ac38d['push'](_0x1ac38d['shift']());}catch(_0x3a5377){_0x1ac38d['push'](_0x1ac38d['shift']());}}}(a75_0xd2b3,0xdd021));import{listDatasets,restoreDataset}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const DATASET_ID_FLAG={'name':'id','type':a75_0xec58(0x1d9),'description':a75_0xec58(0x1e6)},DBID_FLAG={'name':a75_0xec58(0x1fc),'type':'number','description':a75_0xec58(0x1ee)},CONFIRM_FLAG={'name':a75_0xec58(0x201),'type':a75_0xec58(0x1d8),'description':a75_0xec58(0x1e3)},EXPECTED_COUNT_FLAG={'name':'expected-count','type':a75_0xec58(0x1d9),'description':a75_0xec58(0x1d3)};export const datasetRestore={'service':a75_0xec58(0x1fe),'command':'restore','description':a75_0xec58(0x1d4),'risk':a75_0xec58(0x1e9),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4d8272){const _0x5a667b=a75_0xec58,_0x41dfe6=_0x4d8272[_0x5a667b(0x1f8)]('id'),_0x426b72=_0x4d8272[_0x5a667b(0x1ff)](_0x5a667b(0x1e7)),_0x45102b=_0x4d8272[_0x5a667b(0x1f8)](_0x5a667b(0x1fc)),_0x174a38=[_0x41dfe6>0x0,Boolean(_0x426b72),_0x45102b>0x0][_0x5a667b(0x1db)](Boolean);if(_0x174a38[_0x5a667b(0x1ea)]===0x0)throw CliErrors['validation'](_0x5a667b(0x206));if(_0x174a38[_0x5a667b(0x1ea)]>0x1)throw CliErrors[_0x5a667b(0x1f5)](_0x5a667b(0x205));},async 'dryRun'(_0x45394e){const _0x2d109f=a75_0xec58,_0x47e62b=await resolveTargets(_0x45394e);return{'method':_0x2d109f(0x1df),'url':_0x2d109f(0x203),'body':{'appCode':_0x45394e[_0x2d109f(0x1d1)],'count':_0x47e62b[_0x2d109f(0x1ea)],'datasets':_0x47e62b},'description':_0x2d109f(0x1e5)+_0x47e62b[_0x2d109f(0x1ea)]+'\x20deleted\x20dataset(s)\x20and\x20related\x20deleted\x20page/menu\x20records.'};},async 'execute'(_0x62729b){const _0x37b823=a75_0xec58;if(!_0x62729b[_0x37b823(0x1e2)](_0x37b823(0x201)))throw CliErrors[_0x37b823(0x1f5)]('--confirm\x20is\x20required\x20to\x20restore\x20datasets.',_0x37b823(0x202));const _0x193d9d=await resolveTargets(_0x62729b),_0x58a298=[],_0x4960c7=[];for(const _0x11455b of _0x193d9d){try{await restoreDataset(_0x62729b['appCode'],_0x11455b['id']),_0x58a298[_0x37b823(0x204)](_0x11455b);}catch(_0x5a3e36){_0x4960c7[_0x37b823(0x204)]({..._0x11455b,'error':_0x5a3e36 instanceof Error?_0x5a3e36[_0x37b823(0x200)]:String(_0x5a3e36)});}}if(_0x4960c7[_0x37b823(0x1ea)]>0x0)return{'ok':![],'data':{'requested':_0x193d9d[_0x37b823(0x1ea)],'restoredCount':_0x58a298[_0x37b823(0x1ea)],'failedCount':_0x4960c7[_0x37b823(0x1ea)],'restored':_0x58a298,'failed':_0x4960c7},'message':_0x37b823(0x1ec)+_0x58a298[_0x37b823(0x1ea)]+'/'+_0x193d9d[_0x37b823(0x1ea)]+_0x37b823(0x1f6)+_0x4960c7[_0x37b823(0x1ea)]+_0x37b823(0x1fd)};return{'ok':!![],'data':{'requested':_0x193d9d[_0x37b823(0x1ea)],'restoredCount':_0x58a298[_0x37b823(0x1ea)],'restored':_0x58a298},'message':_0x37b823(0x1ec)+_0x58a298[_0x37b823(0x1ea)]+'\x20dataset(s)'};}};async function resolveTargets(_0x80e15e){const _0x7b6e81=a75_0xec58,_0x51a07e=_0x80e15e[_0x7b6e81(0x1f8)]('id'),_0x1d9e04=_0x80e15e['str'](_0x7b6e81(0x1e7)),_0x21636a=_0x80e15e[_0x7b6e81(0x1f8)](_0x7b6e81(0x1fc));let _0x4207c0;_0x1d9e04?(_0x4207c0=await listDatasets(_0x80e15e[_0x7b6e81(0x1d1)],{'code':_0x1d9e04,'deleted':!![]}),_0x4207c0=_0x4207c0['filter'](_0x401c2b=>_0x401c2b[_0x7b6e81(0x1e7)]===_0x1d9e04)):(_0x4207c0=await listDatasets(_0x80e15e[_0x7b6e81(0x1d1)],{'deleted':!![]}),_0x51a07e>0x0&&(_0x4207c0=_0x4207c0[_0x7b6e81(0x1db)](_0xef84de=>_0xef84de['id']===_0x51a07e)),_0x21636a>0x0&&(_0x4207c0=_0x4207c0[_0x7b6e81(0x1db)](_0x3d5fde=>_0x3d5fde[_0x7b6e81(0x1f1)]?.[_0x7b6e81(0x1e8)]===_0x21636a)));const _0x405220=_0x4207c0['map'](normalizeTarget);if(_0x405220['length']===0x0){const _0xc46887=_0x1d9e04||(_0x51a07e>0x0?_0x7b6e81(0x1d5)+_0x51a07e:_0x7b6e81(0x1f4)+_0x21636a);throw CliErrors[_0x7b6e81(0x1f5)](_0x7b6e81(0x1fa)+_0xc46887+'.');}const _0x1b27be=_0x80e15e['num'](_0x7b6e81(0x1d2));if(_0x1b27be>0x0&&_0x405220[_0x7b6e81(0x1ea)]!==_0x1b27be)throw CliErrors['validation'](_0x7b6e81(0x1d7)+_0x405220[_0x7b6e81(0x1ea)]+_0x7b6e81(0x1eb)+_0x1b27be+'.');return _0x405220;}function a75_0x49c0(_0x95d155,_0x1888aa){_0x95d155=_0x95d155-0x1d0;const _0xd2b3a6=a75_0xd2b3();let _0x49c0d5=_0xd2b3a6[_0x95d155];return _0x49c0d5;}function normalizeTarget(_0x495947){const _0x13925f=a75_0xec58,_0xd87f1f=_0x495947[_0x13925f(0x1f1)]??{};return{'id':_0x495947['id'],'code':_0x495947['code'],'name':_0x495947[_0x13925f(0x1dc)],'description':_0x495947['description'],'source':_0x495947[_0x13925f(0x1ef)],'dbId':_0xd87f1f[_0x13925f(0x1e8)],'dbName':_0xd87f1f[_0x13925f(0x1d0)],'tableName':_0xd87f1f[_0x13925f(0x1dd)],'relatedPageCount':Array['isArray'](_0x495947[_0x13925f(0x1f7)])?_0x495947['relationPages'][_0x13925f(0x1ea)]:undefined};}function a75_0xd2b3(){const _0x1732c7=['980780NPAeFn','dbid=','validation','\x20dataset(s);\x20','relationPages','num','7916435aYWQbF','No\x20deleted\x20dataset\x20found\x20for\x20','17776QHtLbE','dbid','\x20failed','dataset','str','message','confirm','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','/smartapi/dataset/restore-dataset','push','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','dbName','appCode','expected-count','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','Restore\x20deleted\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20deleted\x20datasets\x20under\x20a\x20db\x20id','id=','2823216nUoEBd','Matched\x20','boolean','number','2286rQQmqC','filter','name','tableName','52603WGaWkr','POST','42590YglyYz','1356OnbGoq','bool','Required\x20to\x20execute\x20dataset\x20restore','34tRClwZ','Would\x20restore\x20','Dataset\x20id','code','dbId','high-risk-write','length','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','Restored\x20','46963kAmKSL','Restore\x20all\x20deleted\x20datasets\x20under\x20this\x20database\x20connection\x20id','source','3ReltuJ','dbtableConfig','4008VTqAhd'];a75_0xd2b3=function(){return _0x1732c7;};return a75_0xd2b3();}
1
+ const a76_0x27741d=a76_0x15e3;(function(_0x22d1cc,_0x545666){const _0x145858=a76_0x15e3,_0x52c272=_0x22d1cc();while(!![]){try{const _0x24a9b4=parseInt(_0x145858(0x20c))/0x1+-parseInt(_0x145858(0x1fe))/0x2*(-parseInt(_0x145858(0x212))/0x3)+-parseInt(_0x145858(0x201))/0x4+parseInt(_0x145858(0x200))/0x5+-parseInt(_0x145858(0x1fc))/0x6*(-parseInt(_0x145858(0x1f8))/0x7)+-parseInt(_0x145858(0x20d))/0x8*(-parseInt(_0x145858(0x202))/0x9)+parseInt(_0x145858(0x204))/0xa*(-parseInt(_0x145858(0x206))/0xb);if(_0x24a9b4===_0x545666)break;else _0x52c272['push'](_0x52c272['shift']());}catch(_0x33209c){_0x52c272['push'](_0x52c272['shift']());}}}(a76_0x3d4e,0x922d3));function a76_0x15e3(_0x474231,_0x5ea794){_0x474231=_0x474231-0x1eb;const _0x3d4e50=a76_0x3d4e();let _0x15e3b3=_0x3d4e50[_0x474231];return _0x15e3b3;}import{listDatasets,restoreDataset}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const DATASET_ID_FLAG={'name':'id','type':a76_0x27741d(0x1fa),'description':a76_0x27741d(0x20f)},DBID_FLAG={'name':a76_0x27741d(0x214),'type':a76_0x27741d(0x1fa),'description':a76_0x27741d(0x209)},CONFIRM_FLAG={'name':a76_0x27741d(0x1f9),'type':a76_0x27741d(0x203),'description':'Required\x20to\x20execute\x20dataset\x20restore'},EXPECTED_COUNT_FLAG={'name':a76_0x27741d(0x1eb),'type':a76_0x27741d(0x1fa),'description':a76_0x27741d(0x1f5)};function a76_0x3d4e(){const _0x54516b=['map','validation','bool','num','length','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','\x20failed','Restored\x20','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','dbId','dbid=','1631fHNgym','confirm','number','/smartapi/dataset/restore-dataset','12018VStzmh','dbName','21158fwijvR','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','5136870CKYUyr','1240244YgGWra','491103tjFOxr','boolean','15862510baNRGA','dbtableConfig','22FsDvrB','appCode','Restore\x20deleted\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20deleted\x20datasets\x20under\x20a\x20db\x20id','Restore\x20all\x20deleted\x20datasets\x20under\x20this\x20database\x20connection\x20id','\x20dataset(s);\x20','source','901793jrbNBk','168ofPnYx','\x20deleted\x20dataset(s)\x20and\x20related\x20deleted\x20page/menu\x20records.','Dataset\x20id','Would\x20restore\x20','--confirm\x20is\x20required\x20to\x20restore\x20datasets.','153wSEiFn','POST','dbid','id=','str','code','No\x20deleted\x20dataset\x20found\x20for\x20','description','push','relationPages','expected-count','filter'];a76_0x3d4e=function(){return _0x54516b;};return a76_0x3d4e();}export const datasetRestore={'service':'dataset','command':'restore','description':a76_0x27741d(0x208),'risk':'high-risk-write','flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4b74e2){const _0x151069=a76_0x27741d,_0x3d58ce=_0x4b74e2[_0x151069(0x1f0)]('id'),_0x5a00dc=_0x4b74e2[_0x151069(0x216)]('code'),_0x37d5cc=_0x4b74e2['num'](_0x151069(0x214)),_0x3269ee=[_0x3d58ce>0x0,Boolean(_0x5a00dc),_0x37d5cc>0x0][_0x151069(0x1ec)](Boolean);if(_0x3269ee['length']===0x0)throw CliErrors['validation']('One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.');if(_0x3269ee['length']>0x1)throw CliErrors['validation'](_0x151069(0x1f2));},async 'dryRun'(_0x3ebd5c){const _0x5201a8=a76_0x27741d,_0x299d75=await resolveTargets(_0x3ebd5c);return{'method':_0x5201a8(0x213),'url':_0x5201a8(0x1fb),'body':{'appCode':_0x3ebd5c[_0x5201a8(0x207)],'count':_0x299d75[_0x5201a8(0x1f1)],'datasets':_0x299d75},'description':_0x5201a8(0x210)+_0x299d75[_0x5201a8(0x1f1)]+_0x5201a8(0x20e)};},async 'execute'(_0x5e2df4){const _0x551fa5=a76_0x27741d;if(!_0x5e2df4[_0x551fa5(0x1ef)](_0x551fa5(0x1f9)))throw CliErrors[_0x551fa5(0x1ee)](_0x551fa5(0x211),'Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.');const _0x1ec55f=await resolveTargets(_0x5e2df4),_0x44b158=[],_0x103aae=[];for(const _0x4d0728 of _0x1ec55f){try{await restoreDataset(_0x5e2df4['appCode'],_0x4d0728['id']),_0x44b158['push'](_0x4d0728);}catch(_0x33889e){_0x103aae[_0x551fa5(0x21a)]({..._0x4d0728,'error':_0x33889e instanceof Error?_0x33889e['message']:String(_0x33889e)});}}if(_0x103aae[_0x551fa5(0x1f1)]>0x0)return{'ok':![],'data':{'requested':_0x1ec55f[_0x551fa5(0x1f1)],'restoredCount':_0x44b158[_0x551fa5(0x1f1)],'failedCount':_0x103aae[_0x551fa5(0x1f1)],'restored':_0x44b158,'failed':_0x103aae},'message':_0x551fa5(0x1f4)+_0x44b158['length']+'/'+_0x1ec55f[_0x551fa5(0x1f1)]+_0x551fa5(0x20a)+_0x103aae[_0x551fa5(0x1f1)]+_0x551fa5(0x1f3)};return{'ok':!![],'data':{'requested':_0x1ec55f[_0x551fa5(0x1f1)],'restoredCount':_0x44b158[_0x551fa5(0x1f1)],'restored':_0x44b158},'message':_0x551fa5(0x1f4)+_0x44b158[_0x551fa5(0x1f1)]+'\x20dataset(s)'};}};async function resolveTargets(_0x1f6669){const _0x44adb6=a76_0x27741d,_0x100db7=_0x1f6669[_0x44adb6(0x1f0)]('id'),_0x32e059=_0x1f6669[_0x44adb6(0x216)]('code'),_0xc28f78=_0x1f6669[_0x44adb6(0x1f0)](_0x44adb6(0x214));let _0x37d9c7;_0x32e059?(_0x37d9c7=await listDatasets(_0x1f6669['appCode'],{'code':_0x32e059,'deleted':!![]}),_0x37d9c7=_0x37d9c7['filter'](_0x367a0c=>_0x367a0c[_0x44adb6(0x217)]===_0x32e059)):(_0x37d9c7=await listDatasets(_0x1f6669[_0x44adb6(0x207)],{'deleted':!![]}),_0x100db7>0x0&&(_0x37d9c7=_0x37d9c7[_0x44adb6(0x1ec)](_0x5c533b=>_0x5c533b['id']===_0x100db7)),_0xc28f78>0x0&&(_0x37d9c7=_0x37d9c7['filter'](_0x2fe1aa=>_0x2fe1aa[_0x44adb6(0x205)]?.[_0x44adb6(0x1f6)]===_0xc28f78)));const _0x1586dc=_0x37d9c7[_0x44adb6(0x1ed)](normalizeTarget);if(_0x1586dc[_0x44adb6(0x1f1)]===0x0){const _0x38433f=_0x32e059||(_0x100db7>0x0?_0x44adb6(0x215)+_0x100db7:_0x44adb6(0x1f7)+_0xc28f78);throw CliErrors[_0x44adb6(0x1ee)](_0x44adb6(0x218)+_0x38433f+'.');}const _0x324203=_0x1f6669['num'](_0x44adb6(0x1eb));if(_0x324203>0x0&&_0x1586dc[_0x44adb6(0x1f1)]!==_0x324203)throw CliErrors[_0x44adb6(0x1ee)]('Matched\x20'+_0x1586dc[_0x44adb6(0x1f1)]+_0x44adb6(0x1ff)+_0x324203+'.');return _0x1586dc;}function normalizeTarget(_0x388869){const _0x1e8043=a76_0x27741d,_0x2af12a=_0x388869[_0x1e8043(0x205)]??{};return{'id':_0x388869['id'],'code':_0x388869[_0x1e8043(0x217)],'name':_0x388869['name'],'description':_0x388869[_0x1e8043(0x219)],'source':_0x388869[_0x1e8043(0x20b)],'dbId':_0x2af12a['dbId'],'dbName':_0x2af12a[_0x1e8043(0x1fd)],'tableName':_0x2af12a['tableName'],'relatedPageCount':Array['isArray'](_0x388869[_0x1e8043(0x21b)])?_0x388869['relationPages'][_0x1e8043(0x1f1)]:undefined};}
@@ -0,0 +1 @@
1
+ (function(_0x4f7cf7,_0x29729d){const _0x191493=a77_0x4f08,_0x5b29b7=_0x4f7cf7();while(!![]){try{const _0x2995fc=-parseInt(_0x191493(0x125))/0x1+-parseInt(_0x191493(0x122))/0x2*(-parseInt(_0x191493(0x11e))/0x3)+-parseInt(_0x191493(0x12d))/0x4*(parseInt(_0x191493(0x11b))/0x5)+-parseInt(_0x191493(0x11d))/0x6*(parseInt(_0x191493(0x127))/0x7)+parseInt(_0x191493(0x12e))/0x8+parseInt(_0x191493(0x132))/0x9*(parseInt(_0x191493(0x11a))/0xa)+parseInt(_0x191493(0x11f))/0xb;if(_0x2995fc===_0x29729d)break;else _0x5b29b7['push'](_0x5b29b7['shift']());}catch(_0x1966a7){_0x5b29b7['push'](_0x5b29b7['shift']());}}}(a77_0x183a,0xb56de));function a77_0x183a(){const _0x4d7c63=['stringify','utf8','\x22\x20cannot\x20fit\x20in\x20one\x20database\x20analysis\x20batch:\x20','9HOrKOy','1604500bbwNZE','325QThmrt','\x20bytes.','12OPTyLj','17970RFYmkh','30085836MfHdMq','map','validation','158LDYAbG','split','add','812020gkDKaF','byteLength','4098906wYFAAO','At\x20least\x20one\x20table\x20name\x20is\x20required\x20for\x20database\x20analysis\x20planning.','length','push','has','Table\x20\x22','52396yNaraN','1671752ZqvlRY'];a77_0x183a=function(){return _0x4d7c63;};return a77_0x183a();}import{CliErrors}from'../../errors.js';function a77_0x4f08(_0x390084,_0x1f9948){_0x390084=_0x390084-0x11a;const _0x183a3c=a77_0x183a();let _0x4f0850=_0x183a3c[_0x390084];return _0x4f0850;}export const DB_ANALYSIS_MAX_TABLES_PER_BATCH=0xa;export const DB_ANALYSIS_BATCH_TARGET_BYTES=0x3c0;export const DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES=0x400;export function normalizeAnalysisTableNames(_0x4eaa31){const _0x3cb977=a77_0x4f08,_0x304b90=new Set(),_0x12e9b2=[];for(const _0x476ada of _0x4eaa31[_0x3cb977(0x123)](',')){const _0x126fe3=_0x476ada['trim']();if(!_0x126fe3||_0x304b90[_0x3cb977(0x12b)](_0x126fe3))continue;_0x304b90[_0x3cb977(0x124)](_0x126fe3),_0x12e9b2[_0x3cb977(0x12a)](_0x126fe3);}return _0x12e9b2;}export function measureAnalysisInputParamsBytes(_0x436443,_0x58e54a){const _0x135f34=a77_0x4f08;return Buffer[_0x135f34(0x126)](JSON[_0x135f34(0x12f)]({'dbLinkId':_0x436443,'tableNames':_0x58e54a}),_0x135f34(0x130));}export function buildAnalysisBatchPlan(_0x112700,_0x4ee707){const _0x13bf2c=a77_0x4f08;if(_0x4ee707[_0x13bf2c(0x129)]===0x0)throw CliErrors[_0x13bf2c(0x121)](_0x13bf2c(0x128));const _0x304658=[];let _0x1e7907=[];for(const _0x24ca2d of _0x4ee707){const _0x25a68d=[..._0x1e7907,_0x24ca2d],_0x3929d7=_0x25a68d['length']>DB_ANALYSIS_MAX_TABLES_PER_BATCH||measureAnalysisInputParamsBytes(_0x112700,_0x25a68d)>DB_ANALYSIS_BATCH_TARGET_BYTES;_0x3929d7&&_0x1e7907['length']>0x0?(_0x304658[_0x13bf2c(0x12a)](_0x1e7907),_0x1e7907=[_0x24ca2d]):_0x1e7907=_0x25a68d;const _0x4964ad=measureAnalysisInputParamsBytes(_0x112700,_0x1e7907);if(_0x4964ad>DB_ANALYSIS_BATCH_TARGET_BYTES)throw CliErrors[_0x13bf2c(0x121)](_0x13bf2c(0x12c)+_0x24ca2d+_0x13bf2c(0x131)+_0x4964ad+'\x20bytes,\x20limit\x20'+DB_ANALYSIS_BATCH_TARGET_BYTES+_0x13bf2c(0x11c));}_0x1e7907[_0x13bf2c(0x129)]>0x0&&_0x304658['push'](_0x1e7907);const _0x42c0f6=_0x304658[_0x13bf2c(0x120)]((_0x5c190d,_0x389421)=>({'index':_0x389421+0x1,'tableCount':_0x5c190d[_0x13bf2c(0x129)],'inputParamsBytes':measureAnalysisInputParamsBytes(_0x112700,_0x5c190d),'tableNames':_0x5c190d}));return{'dbLinkId':_0x112700,'tableCount':_0x4ee707['length'],'batchCount':_0x42c0f6[_0x13bf2c(0x129)],'maxTablesPerBatch':DB_ANALYSIS_MAX_TABLES_PER_BATCH,'maxSerializedBytesPerBatch':DB_ANALYSIS_BATCH_TARGET_BYTES,'serverInputParamsLimitBytes':DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES,'batches':_0x42c0f6};}
@@ -0,0 +1 @@
1
+ function a78_0x2842(){const _0x18f307=['str','473960XyJLTM','1030285Cbihjs','tables','\x20serial\x20batch(es)\x20for\x20db\x20link\x20','Prepared\x20local\x20batch\x20plan\x20for\x20','5272krScns',';\x20no\x20server\x20task\x20or\x20planId\x20was\x20created','string','29079qDmAoa','analyze-batch-plan','num','358707GDgLlo','4831VUlBEI','read','110MkGouj','tableCount','1571845lAJOfp','679XqkOAP','94LWfBru','6keQnCV'];a78_0x2842=function(){return _0x18f307;};return a78_0x2842();}const a78_0x3fb7f9=a78_0x1036;(function(_0x1df7e6,_0x44bc76){const _0x36e099=a78_0x1036,_0x39e101=_0x1df7e6();while(!![]){try{const _0x8ef252=-parseInt(_0x36e099(0x18a))/0x1*(-parseInt(_0x36e099(0x190))/0x2)+parseInt(_0x36e099(0x189))/0x3+-parseInt(_0x36e099(0x193))/0x4+-parseInt(_0x36e099(0x17f))/0x5*(-parseInt(_0x36e099(0x191))/0x6)+parseInt(_0x36e099(0x18f))/0x7*(-parseInt(_0x36e099(0x183))/0x8)+parseInt(_0x36e099(0x186))/0x9*(parseInt(_0x36e099(0x18c))/0xa)+-parseInt(_0x36e099(0x18e))/0xb;if(_0x8ef252===_0x44bc76)break;else _0x39e101['push'](_0x39e101['shift']());}catch(_0x346c9b){_0x39e101['push'](_0x39e101['shift']());}}}(a78_0x2842,0x40304));import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a78_0x1036(_0x372b1a,_0x5eee84){_0x372b1a=_0x372b1a-0x17f;const _0x284220=a78_0x2842();let _0x1036a0=_0x284220[_0x372b1a];return _0x1036a0;}import{buildAnalysisBatchPlan,normalizeAnalysisTableNames}from'../../commands/db/analysis-batching.js';export const dbAnalyzeBatchPlan={'service':'db','command':a78_0x3fb7f9(0x187),'description':'Preview\x20a\x20deterministic\x20local\x20batch\x20plan\x20without\x20creating\x20a\x20server\x20task\x20or\x20planId','risk':a78_0x3fb7f9(0x18b),'requiresAuth':![],'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':'tables','type':a78_0x3fb7f9(0x185),'required':!![],'description':'Comma-separated\x20table\x20names\x20to\x20split\x20into\x20safe\x20serial\x20batches'}],async 'execute'(_0x4e0bb2){const _0x55cbcc=a78_0x3fb7f9,_0x20fd71=_0x4e0bb2[_0x55cbcc(0x188)]('id'),_0x20a846=normalizeAnalysisTableNames(_0x4e0bb2[_0x55cbcc(0x192)](_0x55cbcc(0x180))),_0x109158=buildAnalysisBatchPlan(_0x20fd71,_0x20a846);return{'ok':!![],'data':_0x109158,'message':_0x55cbcc(0x182)+_0x109158[_0x55cbcc(0x18d)]+'\x20table(s)\x20in\x20'+_0x109158['batchCount']+_0x55cbcc(0x181)+_0x20fd71+_0x55cbcc(0x184)};}};
@@ -1 +1 @@
1
- const a76_0x3a6330=a76_0x1281;function a76_0x1281(_0x33f457,_0x43a59a){_0x33f457=_0x33f457-0x1d5;const _0x222af6=a76_0x222a();let _0x1281c6=_0x222af6[_0x33f457];return _0x1281c6;}(function(_0x39f046,_0x1b6dd5){const _0xedcb30=a76_0x1281,_0x42207f=_0x39f046();while(!![]){try{const _0x4d6bb9=parseInt(_0xedcb30(0x1de))/0x1+parseInt(_0xedcb30(0x1e2))/0x2*(-parseInt(_0xedcb30(0x1e5))/0x3)+-parseInt(_0xedcb30(0x1d7))/0x4*(parseInt(_0xedcb30(0x1d5))/0x5)+-parseInt(_0xedcb30(0x1e4))/0x6+-parseInt(_0xedcb30(0x1d6))/0x7*(-parseInt(_0xedcb30(0x1dc))/0x8)+-parseInt(_0xedcb30(0x1d8))/0x9+parseInt(_0xedcb30(0x1e1))/0xa*(parseInt(_0xedcb30(0x1d9))/0xb);if(_0x4d6bb9===_0x1b6dd5)break;else _0x42207f['push'](_0x42207f['shift']());}catch(_0x2a9dec){_0x42207f['push'](_0x42207f['shift']());}}}(a76_0x222a,0xa8dfc));import{cancelDbAnalysis,getDbLinkInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a76_0x222a(){const _0x1b2998=['18tUdLAw','str','Analysis\x20plan\x20/\x20trace\x20id\x20(optional\x20—\x20defaults\x20to\x20latest\x20trace\x20from\x20db\x20list/detail)','5lhNclN','7itPNBJ','5444508WqnhSb','8030421SCSCXd','1309HOkdhO','string','plan','2425168urzhzZ','No\x20latestAnalysisTraceId\x20on\x20this\x20link.\x20Pass\x20--plan\x20<traceId>\x20from\x20db\x20list/detail.','905865fQZxRH','latestAnalysisTraceId','validation','362210QlwlBh','429034vwDpCz','Cancel\x20requested\x20for\x20plan\x20','7722624KcZezC'];a76_0x222a=function(){return _0x1b2998;};return a76_0x222a();}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeCancel={'service':'db','command':'analyze-cancel','description':'Cancel\x20a\x20running\x20schema\x20analysis.\x20Omit\x20--plan\x20to\x20use\x20latestAnalysisTraceId\x20from\x20the\x20link','risk':'write','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a76_0x3a6330(0x1db),'type':a76_0x3a6330(0x1da),'description':a76_0x3a6330(0x1e7)}],async 'execute'(_0x4cc313){const _0x267729=a76_0x3a6330,_0x1af432=_0x4cc313['num']('id');let _0x289e76=_0x4cc313[_0x267729(0x1e6)](_0x267729(0x1db))||undefined;if(!_0x289e76){const _0x23bdb2=await getDbLinkInfo(_0x1af432);_0x289e76=_0x23bdb2[_0x267729(0x1df)]??undefined;if(!_0x289e76)throw CliErrors[_0x267729(0x1e0)](_0x267729(0x1dd),'Analysis\x20may\x20already\x20be\x20finished\x20or\x20never\x20started.');}return await cancelDbAnalysis(_0x289e76),{'ok':!![],'data':{'dbLinkId':_0x1af432,'planId':_0x289e76},'message':_0x267729(0x1e3)+_0x289e76};}};
1
+ const a79_0x14c677=a79_0x27fe;(function(_0x195aed,_0x5f0ed2){const _0x2fcf87=a79_0x27fe,_0x15ea5e=_0x195aed();while(!![]){try{const _0x39726c=-parseInt(_0x2fcf87(0xfa))/0x1*(parseInt(_0x2fcf87(0x102))/0x2)+-parseInt(_0x2fcf87(0xfb))/0x3*(parseInt(_0x2fcf87(0x103))/0x4)+-parseInt(_0x2fcf87(0xff))/0x5+-parseInt(_0x2fcf87(0x106))/0x6*(-parseInt(_0x2fcf87(0xfc))/0x7)+-parseInt(_0x2fcf87(0x107))/0x8*(parseInt(_0x2fcf87(0x100))/0x9)+parseInt(_0x2fcf87(0x105))/0xa+parseInt(_0x2fcf87(0xfe))/0xb;if(_0x39726c===_0x5f0ed2)break;else _0x15ea5e['push'](_0x15ea5e['shift']());}catch(_0x13799b){_0x15ea5e['push'](_0x15ea5e['shift']());}}}(a79_0x18d3,0x1abc9));function a79_0x27fe(_0x585c69,_0x3b6800){_0x585c69=_0x585c69-0xf7;const _0x18d366=a79_0x18d3();let _0x27fed2=_0x18d366[_0x585c69];return _0x27fed2;}import{cancelDbAnalysis}from'../../core/api-client.js';function a79_0x18d3(){const _0x118ad9=['252328QOoTRR','13892dgclwY','write','351210UZlpRQ','414rSWfDw','1366088enckQM','num','plan','Cancel\x20requested\x20for\x20plan\x20','1JnEuUM','33VWretM','12761XejsQI','analyze-cancel','3554496jNzTGM','197015jrAgWw','9MKiaBc','str'];a79_0x18d3=function(){return _0x118ad9;};return a79_0x18d3();}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeCancel={'service':'db','command':a79_0x14c677(0xfd),'description':'Cancel\x20an\x20existing\x20schema\x20analysis\x20by\x20explicit\x20plan\x20/\x20trace\x20id','risk':a79_0x14c677(0x104),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a79_0x14c677(0xf8),'type':'string','required':!![],'description':'Existing\x20analysis\x20plan\x20/\x20trace\x20id\x20to\x20cancel'}],async 'execute'(_0x20a60e){const _0x79d33f=a79_0x14c677,_0x496265=_0x20a60e[_0x79d33f(0xf7)]('id'),_0x30b731=_0x20a60e[_0x79d33f(0x101)](_0x79d33f(0xf8));return await cancelDbAnalysis(_0x30b731),{'ok':!![],'data':{'dbLinkId':_0x496265,'planId':_0x30b731},'message':_0x79d33f(0xf9)+_0x30b731};}};
@@ -1 +1 @@
1
- const a77_0x444bf2=a77_0x1c7a;function a77_0x1c7a(_0x4138d8,_0x1e4b6d){_0x4138d8=_0x4138d8-0x140;const _0x1e678f=a77_0x1e67();let _0x1c7a67=_0x1e678f[_0x4138d8];return _0x1c7a67;}function a77_0x1e67(){const _0x18cdeb=['filter','Started\x20analysis\x20for\x20db\x20link\x20','26924QNFOOu','10642000IrWcAB','str','205UAUPLS','tables','1044333MtXWlR','9iXsSPj','330295zjQvaE','Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)','split','trim','9460130CAwopf','analyze-start','15wqLDaY','string','23279718BRMcll','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','appCode','274578dTxYPx','120UzNlvc'];a77_0x1e67=function(){return _0x18cdeb;};return a77_0x1e67();}(function(_0x570910,_0x4d8f06){const _0x261c30=a77_0x1c7a,_0x515d42=_0x570910();while(!![]){try{const _0x7d3410=parseInt(_0x261c30(0x153))/0x1+parseInt(_0x261c30(0x14a))/0x2*(-parseInt(_0x261c30(0x145))/0x3)+parseInt(_0x261c30(0x14e))/0x4*(-parseInt(_0x261c30(0x151))/0x5)+-parseInt(_0x261c30(0x14b))/0x6*(parseInt(_0x261c30(0x155))/0x7)+-parseInt(_0x261c30(0x14f))/0x8+-parseInt(_0x261c30(0x154))/0x9*(-parseInt(_0x261c30(0x143))/0xa)+parseInt(_0x261c30(0x147))/0xb;if(_0x7d3410===_0x4d8f06)break;else _0x515d42['push'](_0x515d42['shift']());}catch(_0x2112ca){_0x515d42['push'](_0x515d42['shift']());}}}(a77_0x1e67,0xd47ae));import{startDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';export const dbAnalyzeStart={'service':'db','command':a77_0x444bf2(0x144),'description':a77_0x444bf2(0x148),'risk':'write','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a77_0x444bf2(0x152),'type':a77_0x444bf2(0x146),'description':a77_0x444bf2(0x140)}],async 'execute'(_0x2ebe66){const _0x3ae1e5=a77_0x444bf2,_0x534bde=_0x2ebe66['num']('id'),_0xbe98d6=_0x2ebe66[_0x3ae1e5(0x150)](_0x3ae1e5(0x152)),_0x40e9f7=_0xbe98d6?_0xbe98d6[_0x3ae1e5(0x141)](',')['map'](_0x8d8f14=>_0x8d8f14[_0x3ae1e5(0x142)]())[_0x3ae1e5(0x14c)](Boolean):undefined,_0x3809d6=await startDbAnalysis(_0x534bde,_0x40e9f7),_0x52da0a=buildDbPageLinks(_0x2ebe66[_0x3ae1e5(0x149)],_0x534bde);return{'ok':!![],'data':{'dbLinkId':_0x534bde,'planId':_0x3809d6,'tableNames':_0x40e9f7??[],..._0x52da0a?{'links':_0x52da0a}:{}},'message':_0x3ae1e5(0x14d)+_0x534bde};}};
1
+ const a80_0x59512b=a80_0x262d;(function(_0xb2368b,_0x1822c0){const _0xff33ef=a80_0x262d,_0x5a6a5e=_0xb2368b();while(!![]){try{const _0x22a860=-parseInt(_0xff33ef(0xe3))/0x1+-parseInt(_0xff33ef(0xf7))/0x2*(-parseInt(_0xff33ef(0xe7))/0x3)+parseInt(_0xff33ef(0xef))/0x4*(parseInt(_0xff33ef(0xee))/0x5)+-parseInt(_0xff33ef(0xfa))/0x6*(parseInt(_0xff33ef(0xf3))/0x7)+-parseInt(_0xff33ef(0xec))/0x8*(parseInt(_0xff33ef(0xf9))/0x9)+parseInt(_0xff33ef(0xe5))/0xa+parseInt(_0xff33ef(0xe4))/0xb;if(_0x22a860===_0x1822c0)break;else _0x5a6a5e['push'](_0x5a6a5e['shift']());}catch(_0x282c39){_0x5a6a5e['push'](_0x5a6a5e['shift']());}}}(a80_0x289f,0xc46e8));import{startDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';function a80_0x262d(_0xcab536,_0x426fea){_0xcab536=_0xcab536-0xde;const _0x289f5b=a80_0x289f();let _0x262da4=_0x289f5b[_0xcab536];return _0x262da4;}import{DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES,measureAnalysisInputParamsBytes,normalizeAnalysisTableNames}from'../../commands/db/analysis-batching.js';function a80_0x289f(){const _0x5ba0de=['Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)','1369155wtYQDW','32702087uSfovk','8209940AOtsRc','tables','3KNKrbe','string','analyze-start','\x20--tables\x20<tables>`\x20and\x20start\x20each\x20batch\x20serially.','appCode','11498600lXklKQ','\x20db\x20analyze-batch-plan\x20--id\x20','11220PvjJLt','240hWBEcp','str','validation','length','35OBjLKk','flag','\x20bytes.\x20Run\x20`','\x20bytes,\x20limit\x20','1517546ebHFGT','\x20table(s),\x20','9mpSqOm','1291512UtEjXd','At\x20least\x20one\x20table\x20name\x20is\x20required\x20when\x20--tables\x20is\x20provided.','write','Started\x20analysis\x20for\x20db\x20link\x20','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status'];a80_0x289f=function(){return _0x5ba0de;};return a80_0x289f();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';export const dbAnalyzeStart={'service':'db','command':a80_0x59512b(0xe9),'description':a80_0x59512b(0xe1),'risk':a80_0x59512b(0xdf),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a80_0x59512b(0xe6),'type':a80_0x59512b(0xe8),'description':a80_0x59512b(0xe2)}],async 'execute'(_0xd4d83c){const _0x5a5bdf=a80_0x59512b,_0x4e6e2c=_0xd4d83c['num']('id'),_0x3039dc=_0xd4d83c[_0x5a5bdf(0xf0)](_0x5a5bdf(0xe6)),_0x94621e=_0xd4d83c[_0x5a5bdf(0xf4)]('tables')!==undefined,_0xbcb661=_0x94621e?normalizeAnalysisTableNames(_0x3039dc):undefined;if(_0xbcb661&&_0xbcb661[_0x5a5bdf(0xf2)]===0x0)throw CliErrors[_0x5a5bdf(0xf1)](_0x5a5bdf(0xde));if(_0xbcb661&&_0xbcb661[_0x5a5bdf(0xf2)]>0x0){const _0x26a5b8=measureAnalysisInputParamsBytes(_0x4e6e2c,_0xbcb661);if(_0x26a5b8>DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES)throw CliErrors[_0x5a5bdf(0xf1)]('Targeted\x20database\x20analysis\x20payload\x20is\x20too\x20large:\x20'+_0xbcb661['length']+_0x5a5bdf(0xf8)+_0x26a5b8+_0x5a5bdf(0xf6)+DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES+_0x5a5bdf(0xf5)+CLI_BIN_NAME+_0x5a5bdf(0xed)+_0x4e6e2c+_0x5a5bdf(0xea));}const _0x5a6964=await startDbAnalysis(_0x4e6e2c,_0xbcb661),_0x54acfb=buildDbPageLinks(_0xd4d83c[_0x5a5bdf(0xeb)],_0x4e6e2c);return{'ok':!![],'data':{'dbLinkId':_0x4e6e2c,'planId':_0x5a6964,'tableNames':_0xbcb661??[],..._0x54acfb?{'links':_0x54acfb}:{}},'message':_0x5a5bdf(0xe0)+_0x4e6e2c};}};
@@ -1 +1 @@
1
- const a78_0x494da1=a78_0xf683;(function(_0x4d630f,_0x159bf9){const _0x1f6256=a78_0xf683,_0x4efc14=_0x4d630f();while(!![]){try{const _0x1ac214=parseInt(_0x1f6256(0x88))/0x1*(parseInt(_0x1f6256(0x77))/0x2)+-parseInt(_0x1f6256(0x89))/0x3+-parseInt(_0x1f6256(0x7b))/0x4+-parseInt(_0x1f6256(0x81))/0x5*(parseInt(_0x1f6256(0x73))/0x6)+-parseInt(_0x1f6256(0x7d))/0x7+-parseInt(_0x1f6256(0x71))/0x8*(-parseInt(_0x1f6256(0x76))/0x9)+parseInt(_0x1f6256(0x85))/0xa;if(_0x1ac214===_0x159bf9)break;else _0x4efc14['push'](_0x4efc14['shift']());}catch(_0x45d660){_0x4efc14['push'](_0x4efc14['shift']());}}}(a78_0x3744,0x55a2b));function a78_0xf683(_0x5775cf,_0x2f08e1){_0x5775cf=_0x5775cf-0x6e;const _0x37440e=a78_0x3744();let _0xf683ea=_0x37440e[_0x5775cf];return _0xf683ea;}import{getDbAnalysisStatus}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';const TERMINAL_STATUSES=new Set([a78_0x494da1(0x74),a78_0x494da1(0x7c),a78_0x494da1(0x84),a78_0x494da1(0x8b)]);export const dbAnalyzeStatus={'service':'db','command':a78_0x494da1(0x87),'description':a78_0x494da1(0x8e),'risk':a78_0x494da1(0x86),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a78_0x494da1(0x72),'type':a78_0x494da1(0x83),'required':!![],'description':a78_0x494da1(0x8f)}],async 'execute'(_0xb06918){const _0x401a24=a78_0x494da1,_0x3951bd=_0xb06918['num']('id'),_0x22cd38=_0xb06918['str'](_0x401a24(0x72)),_0x16f84b=await getDbAnalysisStatus(_0x22cd38),_0xa9ae2f=TERMINAL_STATUSES[_0x401a24(0x75)](_0x16f84b[_0x401a24(0x6f)]??''),{parsedJobContext:_0x58f92e,jobContextParseWarning:_0x1b8278}=parseJobContext(_0x16f84b[_0x401a24(0x78)]),_0xed8495=buildDbPageLinks(_0xb06918['appCode'],_0x3951bd);return{'ok':!![],'data':{'dbLinkId':_0x3951bd,'planId':_0x22cd38,'status':_0x16f84b,'parsedJobContext':_0x58f92e,'isTerminal':_0xa9ae2f,'isRetrying':_0x16f84b['status']===_0x401a24(0x7a),'elapsedMs':calculateElapsedMs(_0x16f84b,_0xa9ae2f),'jobContextParseWarning':_0x1b8278,..._0xed8495?{'links':_0xed8495}:{}},'message':'Analysis\x20status\x20for\x20'+_0x22cd38};}};function a78_0x3744(){const _0x5089f4=['status','isArray','8bwtRiD','plan','6RJmopW','SUCCESS','has','2795382Qwbgwm','2HTvIzr','jobContext','isFinite','RETRYING','1192864nwmLCg','PARTIAL_SUCCESS','3506118bglEgq','endTime','parse','number','1068595aBgEXU','trim','string','FAILED','6679890AwXCEE','read','analyze-status','575147UxUgWW','570486WxQoSP','object','CANCELLED','isNaN','jobContext\x20is\x20not\x20a\x20valid\x20JSON\x20object.','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','costTimeMs'];a78_0x3744=function(){return _0x5089f4;};return a78_0x3744();}function parseJobContext(_0x41ccc5){const _0x536f35=a78_0x494da1;if(!_0x41ccc5?.['trim']())return{'parsedJobContext':null,'jobContextParseWarning':null};try{const _0x547a09=JSON[_0x536f35(0x7f)](_0x41ccc5);if(_0x547a09&&typeof _0x547a09===_0x536f35(0x8a)&&!Array[_0x536f35(0x70)](_0x547a09))return{'parsedJobContext':_0x547a09,'jobContextParseWarning':null};}catch{}return{'parsedJobContext':null,'jobContextParseWarning':_0x536f35(0x8d)};}function calculateElapsedMs(_0x201cc8,_0x4b22bb){const _0x42b7d7=a78_0x494da1;if(typeof _0x201cc8[_0x42b7d7(0x6e)]===_0x42b7d7(0x80)&&Number['isFinite'](_0x201cc8['costTimeMs'])&&_0x201cc8['costTimeMs']>=0x0)return _0x201cc8[_0x42b7d7(0x6e)];const _0xcb0039=toTimestamp(_0x201cc8['startTime']);if(_0xcb0039===null)return null;const _0x34b7fe=toTimestamp(_0x201cc8[_0x42b7d7(0x7e)]),_0x1eb4d9=_0x34b7fe??(_0x4b22bb?null:Date['now']());if(_0x1eb4d9===null||_0x1eb4d9<_0xcb0039)return null;return _0x1eb4d9-_0xcb0039;}function toTimestamp(_0x33a690){const _0x34453a=a78_0x494da1;if(typeof _0x33a690==='number')return Number[_0x34453a(0x79)](_0x33a690)?_0x33a690:null;if(typeof _0x33a690!=='string'||_0x33a690[_0x34453a(0x82)]()==='')return null;const _0x393106=Number(_0x33a690);if(Number[_0x34453a(0x79)](_0x393106))return _0x393106;const _0x1da9ae=Date[_0x34453a(0x7f)](_0x33a690);return Number[_0x34453a(0x8c)](_0x1da9ae)?null:_0x1da9ae;}
1
+ const a81_0xba69de=a81_0x55b0;(function(_0xea4c05,_0x3f8fc8){const _0x2d7ba5=a81_0x55b0,_0x38cc8a=_0xea4c05();while(!![]){try{const _0x26ffc3=parseInt(_0x2d7ba5(0xbc))/0x1*(parseInt(_0x2d7ba5(0xc9))/0x2)+-parseInt(_0x2d7ba5(0xc8))/0x3+-parseInt(_0x2d7ba5(0xcf))/0x4+parseInt(_0x2d7ba5(0xbf))/0x5+-parseInt(_0x2d7ba5(0xd1))/0x6+-parseInt(_0x2d7ba5(0xd3))/0x7+parseInt(_0x2d7ba5(0xb9))/0x8;if(_0x26ffc3===_0x3f8fc8)break;else _0x38cc8a['push'](_0x38cc8a['shift']());}catch(_0x146857){_0x38cc8a['push'](_0x38cc8a['shift']());}}}(a81_0x721c,0xe747f));import{getDbAnalysisStatus}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';const TERMINAL_STATUSES=new Set([a81_0xba69de(0xd7),'PARTIAL_SUCCESS',a81_0xba69de(0xba),'CANCELLED']);export const dbAnalyzeStatus={'service':'db','command':a81_0xba69de(0xcc),'description':a81_0xba69de(0xbe),'risk':a81_0xba69de(0xb6),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a81_0xba69de(0xc2),'type':a81_0xba69de(0xc1),'required':!![],'description':a81_0xba69de(0xd5)}],async 'execute'(_0x4069ae){const _0x6cefb3=a81_0xba69de,_0x4c0483=_0x4069ae[_0x6cefb3(0xbd)]('id'),_0x8f53b1=_0x4069ae['str'](_0x6cefb3(0xc2)),_0x55ed26=await getDbAnalysisStatus(_0x8f53b1),_0x27c00b=TERMINAL_STATUSES[_0x6cefb3(0xcd)](_0x55ed26[_0x6cefb3(0xc0)]??''),{parsedJobContext:_0x3f9c6e,jobContextParseWarning:_0x1bbe2d}=parseJobContext(_0x55ed26[_0x6cefb3(0xbb)]),_0x255926=readAccumulatedErrorTypeCounts(_0x3f9c6e),_0x42a2b1=buildDbPageLinks(_0x4069ae[_0x6cefb3(0xce)],_0x4c0483);return{'ok':!![],'data':{'dbLinkId':_0x4c0483,'planId':_0x8f53b1,'status':_0x55ed26,'parsedJobContext':_0x3f9c6e,'accumulatedErrorTypeCounts':_0x255926,'accumulatedErrorTypeCountsAdvisory':_0x255926?'Server-provided\x20accumulated\x20failure\x20counts\x20are\x20reference\x20only;\x20do\x20not\x20use\x20them\x20for\x20automatic\x20decisions\x20until\x20the\x20server\x20contract\x20is\x20verified.':_0x6cefb3(0xcb),'isTerminal':_0x27c00b,'isRetrying':_0x55ed26['status']===_0x6cefb3(0xc3),'elapsedMs':calculateElapsedMs(_0x55ed26,_0x27c00b),'jobContextParseWarning':_0x1bbe2d,..._0x42a2b1?{'links':_0x42a2b1}:{}},'message':_0x6cefb3(0xd0)+_0x8f53b1};}};function a81_0x721c(){const _0x243d43=['5059028ZNBnbQ','Analysis\x20status\x20for\x20','721884OAuRGP','costTimeMs','22778hFmQxh','parse','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','now','SUCCESS','trim','isFinite','read','length','number','10694928VwIRAp','FAILED','jobContext','343838hYxNla','num','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','7885260ZiZrXy','status','string','plan','RETRYING','keys','endTime','isArray','startTime','2766312DYmlwH','2ahDByv','object','Server-provided\x20accumulated\x20failure\x20counts\x20are\x20unavailable;\x20use\x20task\x20status\x20for\x20lifecycle\x20and\x20db\x20diff\x20for\x20convergence.','analyze-status','has','appCode'];a81_0x721c=function(){return _0x243d43;};return a81_0x721c();}function readAccumulatedErrorTypeCounts(_0x2b99cf){const _0x13cefb=a81_0xba69de,_0xed9204=_0x2b99cf?.['accumulatedErrorTypeCounts'];if(!_0xed9204||typeof _0xed9204!=='object'||Array['isArray'](_0xed9204))return null;if(Object[_0x13cefb(0xc4)](_0xed9204)[_0x13cefb(0xb7)]===0x0)return null;return _0xed9204;}function parseJobContext(_0x17cc1d){const _0x2a7a24=a81_0xba69de;if(!_0x17cc1d?.[_0x2a7a24(0xd8)]())return{'parsedJobContext':null,'jobContextParseWarning':null};try{const _0x4d339c=JSON[_0x2a7a24(0xd4)](_0x17cc1d);if(_0x4d339c&&typeof _0x4d339c===_0x2a7a24(0xca)&&!Array[_0x2a7a24(0xc6)](_0x4d339c))return{'parsedJobContext':_0x4d339c,'jobContextParseWarning':null};}catch{}return{'parsedJobContext':null,'jobContextParseWarning':'jobContext\x20is\x20not\x20a\x20valid\x20JSON\x20object.'};}function a81_0x55b0(_0x137e45,_0x3a1463){_0x137e45=_0x137e45-0xb6;const _0x721c93=a81_0x721c();let _0x55b075=_0x721c93[_0x137e45];return _0x55b075;}function calculateElapsedMs(_0x46faff,_0x52dd96){const _0x436909=a81_0xba69de;if(typeof _0x46faff[_0x436909(0xd2)]===_0x436909(0xb8)&&Number[_0x436909(0xd9)](_0x46faff['costTimeMs'])&&_0x46faff[_0x436909(0xd2)]>=0x0)return _0x46faff[_0x436909(0xd2)];const _0x3d2398=toTimestamp(_0x46faff[_0x436909(0xc7)]);if(_0x3d2398===null)return null;const _0x20a164=toTimestamp(_0x46faff[_0x436909(0xc5)]),_0x1c81de=_0x20a164??(_0x52dd96?null:Date[_0x436909(0xd6)]());if(_0x1c81de===null||_0x1c81de<_0x3d2398)return null;return _0x1c81de-_0x3d2398;}function toTimestamp(_0x4381ec){const _0x3ee22c=a81_0xba69de;if(typeof _0x4381ec===_0x3ee22c(0xb8))return Number[_0x3ee22c(0xd9)](_0x4381ec)?_0x4381ec:null;if(typeof _0x4381ec!==_0x3ee22c(0xc1)||_0x4381ec[_0x3ee22c(0xd8)]()==='')return null;const _0x29558a=Number(_0x4381ec);if(Number[_0x3ee22c(0xd9)](_0x29558a))return _0x29558a;const _0x349a16=Date[_0x3ee22c(0xd4)](_0x4381ec);return Number['isNaN'](_0x349a16)?null:_0x349a16;}
@@ -1 +1 @@
1
- const a79_0x4c7433=a79_0x2bec;(function(_0x5b8a68,_0x30ba52){const _0xd389a7=a79_0x2bec,_0x5aa51c=_0x5b8a68();while(!![]){try{const _0xb810f4=parseInt(_0xd389a7(0x77))/0x1+-parseInt(_0xd389a7(0x76))/0x2*(parseInt(_0xd389a7(0x81))/0x3)+parseInt(_0xd389a7(0x83))/0x4*(parseInt(_0xd389a7(0x88))/0x5)+parseInt(_0xd389a7(0x93))/0x6*(-parseInt(_0xd389a7(0x8b))/0x7)+-parseInt(_0xd389a7(0x66))/0x8*(-parseInt(_0xd389a7(0x71))/0x9)+parseInt(_0xd389a7(0x69))/0xa+-parseInt(_0xd389a7(0x80))/0xb;if(_0xb810f4===_0x30ba52)break;else _0x5aa51c['push'](_0x5aa51c['shift']());}catch(_0x53dc40){_0x5aa51c['push'](_0x5aa51c['shift']());}}}(a79_0x4546,0x8a44c));function a79_0x4546(){const _0x5c60cf=['After\x20create,\x20start\x20schema\x20analysis','2364462fXQPyQ','dburl','message','dbname','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','252982zOGVLr','882838uZWZBj','\x20and\x20started\x20analysis','bool','username','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','dbdesc','str','string','dbversion','2796750AMnHcR','18xecPFH','databasePage','188OGwAfN','autostart','No\x20follow-up\x20analysis','Host\x20and\x20port:\x20host:port','Database\x20password','84765EOldZf','[redacted]','Extra\x20JDBC-style\x20connection\x20parameters\x20string','266WWxmIB','Database\x20username','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','dbparam','/smartapi/dblink/create','join','appCode','boolean','74652gFpLEf','trim','write','validation','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','8mKsiEh','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','password','1099930cMtZBg','dbtype','POST','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','create','Create\x20dblink','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)'];a79_0x4546=function(){return _0x5c60cf;};return a79_0x4546();}import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a79_0x2bec(_0x4487ae,_0x40629e){_0x4487ae=_0x4487ae-0x65;const _0x4546e9=a79_0x4546();let _0x2bec1c=_0x4546e9[_0x4487ae];return _0x2bec1c;}export const dbCreate={'service':'db','command':a79_0x4c7433(0x6d),'description':a79_0x4c7433(0x8d),'risk':a79_0x4c7433(0x95),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a79_0x4c7433(0x74),'type':a79_0x4c7433(0x7e),'required':!![],'description':a79_0x4c7433(0x75)},DB_TYPE_FLAG,{'name':a79_0x4c7433(0x7f),'type':a79_0x4c7433(0x7e),'description':a79_0x4c7433(0x6f),'default':'8.0'},{'name':a79_0x4c7433(0x72),'type':a79_0x4c7433(0x7e),'required':!![],'description':a79_0x4c7433(0x86)},{'name':'username','type':a79_0x4c7433(0x7e),'required':!![],'description':a79_0x4c7433(0x8c)},{'name':'password','type':a79_0x4c7433(0x7e),'required':!![],'description':a79_0x4c7433(0x87)},{'name':a79_0x4c7433(0x8e),'type':a79_0x4c7433(0x7e),'description':a79_0x4c7433(0x8a)},{'name':a79_0x4c7433(0x7c),'type':'string','description':'Human-readable\x20description'},{'name':a79_0x4c7433(0x84),'type':a79_0x4c7433(0x92),'description':a79_0x4c7433(0x70),'default':![]}],async 'validate'(_0x29d1e8){const _0x5bdfdb=a79_0x4c7433,_0x35003f=_0x29d1e8[_0x5bdfdb(0x7d)](_0x5bdfdb(0x72))[_0x5bdfdb(0x94)]();if(!validateDbUrl(_0x35003f))throw CliErrors[_0x5bdfdb(0x96)](_0x5bdfdb(0x6c)+_0x35003f+'\x22',_0x5bdfdb(0x65));},async 'dryRun'(_0x4d2864){const _0x330aef=a79_0x4c7433,_0x1364ed={'appCode':_0x4d2864[_0x330aef(0x91)],'dbName':_0x4d2864['str'](_0x330aef(0x74)),'dbType':_0x4d2864[_0x330aef(0x7d)](_0x330aef(0x6a)),'dbVersion':_0x4d2864['str'](_0x330aef(0x7f))||'8.0','dbUrl':_0x4d2864[_0x330aef(0x7d)](_0x330aef(0x72))[_0x330aef(0x94)](),'username':_0x4d2864['str'](_0x330aef(0x7a)),'password':_0x330aef(0x89),..._0x4d2864[_0x330aef(0x7d)](_0x330aef(0x8e))?{'dbParam':_0x4d2864[_0x330aef(0x7d)](_0x330aef(0x8e))}:{},..._0x4d2864['str'](_0x330aef(0x7c))?{'dbDesc':_0x4d2864[_0x330aef(0x7d)](_0x330aef(0x7c))}:{}};return{'method':_0x330aef(0x6b),'url':_0x330aef(0x8f),'body':_0x1364ed,'description':[_0x330aef(0x6e),_0x4d2864[_0x330aef(0x79)]('autostart')?_0x330aef(0x67):_0x330aef(0x85)][_0x330aef(0x90)]('\x0a')};},async 'execute'(_0x501391){const _0x47409e=a79_0x4c7433,_0x24e490={'appCode':_0x501391['appCode'],'dbName':_0x501391[_0x47409e(0x7d)](_0x47409e(0x74)),'dbType':_0x501391[_0x47409e(0x7d)]('dbtype'),'dbVersion':_0x501391[_0x47409e(0x7d)](_0x47409e(0x7f))||'8.0','dbUrl':_0x501391[_0x47409e(0x7d)](_0x47409e(0x72))['trim'](),'username':_0x501391[_0x47409e(0x7d)](_0x47409e(0x7a)),'password':_0x501391[_0x47409e(0x7d)](_0x47409e(0x68)),..._0x501391[_0x47409e(0x7d)]('dbparam')?{'dbParam':_0x501391[_0x47409e(0x7d)]('dbparam')}:{},..._0x501391[_0x47409e(0x7d)](_0x47409e(0x7c))?{'dbDesc':_0x501391[_0x47409e(0x7d)](_0x47409e(0x7c))}:{}},{id:_0x2ca683,entity:_0x32af7c}=normalizeEntityWithIdResponse(await createDbLink(_0x24e490));if(!_0x2ca683)return{'ok':![],'message':_0x47409e(0x7b),'data':sanitizeDbLinkForOutput(_0x32af7c)};let _0x20ceea,_0x4c200d;if(_0x501391[_0x47409e(0x79)](_0x47409e(0x84)))try{_0x20ceea=await startDbAnalysis(_0x2ca683);}catch(_0x382f3f){_0x4c200d=_0x382f3f instanceof Error?_0x382f3f[_0x47409e(0x73)]:String(_0x382f3f);}const _0x34a6e3=buildDbPageLinks(_0x501391['appCode'],_0x2ca683),_0x40ede8={'connection':sanitizeDbLinkForOutput(_0x32af7c),..._0x34a6e3?{'links':{'databasePage':_0x34a6e3[_0x47409e(0x82)]}}:{},..._0x20ceea?{'analysisPlanId':_0x20ceea}:{},..._0x4c200d?{'analysisStartWarning':_0x4c200d}:{}};let _0x1ef76f;return _0x501391[_0x47409e(0x79)](_0x47409e(0x84))?_0x4c200d?_0x1ef76f='Created\x20db\x20link\x20'+_0x2ca683+';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning':_0x1ef76f='Created\x20db\x20link\x20'+_0x2ca683+_0x47409e(0x78):_0x1ef76f='Created\x20db\x20link\x20'+_0x2ca683,{'ok':!![],'data':_0x40ede8,'message':_0x1ef76f};}};
1
+ const a82_0xc2fbc5=a82_0x5c7f;(function(_0x13a2eb,_0x142005){const _0x919c47=a82_0x5c7f,_0x9b9330=_0x13a2eb();while(!![]){try{const _0x576c6c=-parseInt(_0x919c47(0xa6))/0x1*(parseInt(_0x919c47(0x98))/0x2)+parseInt(_0x919c47(0xae))/0x3+parseInt(_0x919c47(0x9b))/0x4*(parseInt(_0x919c47(0xa0))/0x5)+parseInt(_0x919c47(0x8f))/0x6+-parseInt(_0x919c47(0xb9))/0x7*(parseInt(_0x919c47(0xb1))/0x8)+-parseInt(_0x919c47(0xa4))/0x9+-parseInt(_0x919c47(0x8e))/0xa;if(_0x576c6c===_0x142005)break;else _0x9b9330['push'](_0x9b9330['shift']());}catch(_0x4222fe){_0x9b9330['push'](_0x9b9330['shift']());}}}(a82_0x524f,0x2ef11));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a82_0x5c7f(_0x1b094c,_0x261a00){_0x1b094c=_0x1b094c-0x8c;const _0x524ffc=a82_0x524f();let _0x5c7f4e=_0x524ffc[_0x1b094c];return _0x5c7f4e;}function a82_0x524f(){const _0x4828e5=['write','dbparam','Created\x20db\x20link\x20','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','create',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','386283AuPUpl','appCode','username','24hULpTm','[redacted]','autostart','Extra\x20JDBC-style\x20connection\x20parameters\x20string','databasePage','string','trim','Host\x20and\x20port:\x20host:port','338079xpspob','After\x20create,\x20start\x20schema\x20analysis','bool','Human-readable\x20description','557950SEGzum','1789188eRqAPh','8.0','/smartapi/dblink/create','boolean','\x20and\x20started\x20analysis','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','dbname','dbversion','password','664998QmLZrr','POST','join','4RYlRcj','No\x20follow-up\x20analysis','str','dburl','dbdesc','1880415lJxHUU','Create\x20dblink','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','Database\x20username','698256OpGtoY','Database\x20password','1zOSclA','dbtype'];a82_0x524f=function(){return _0x4828e5;};return a82_0x524f();}import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':a82_0xc2fbc5(0xac),'description':a82_0xc2fbc5(0xab),'risk':a82_0xc2fbc5(0xa8),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a82_0xc2fbc5(0x95),'type':a82_0xc2fbc5(0xb6),'required':!![],'description':a82_0xc2fbc5(0xa2)},DB_TYPE_FLAG,{'name':a82_0xc2fbc5(0x96),'type':'string','description':'Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','default':a82_0xc2fbc5(0x90)},{'name':a82_0xc2fbc5(0x9e),'type':a82_0xc2fbc5(0xb6),'required':!![],'description':a82_0xc2fbc5(0xb8)},{'name':a82_0xc2fbc5(0xb0),'type':a82_0xc2fbc5(0xb6),'required':!![],'description':a82_0xc2fbc5(0xa3)},{'name':'password','type':'string','required':!![],'description':a82_0xc2fbc5(0xa5)},{'name':'dbparam','type':a82_0xc2fbc5(0xb6),'description':a82_0xc2fbc5(0xb4)},{'name':a82_0xc2fbc5(0x9f),'type':a82_0xc2fbc5(0xb6),'description':a82_0xc2fbc5(0x8d)},{'name':'autostart','type':a82_0xc2fbc5(0x92),'description':a82_0xc2fbc5(0xba),'default':![]}],async 'validate'(_0x4e0284){const _0xf07f34=a82_0xc2fbc5,_0x5d395d=_0x4e0284['str'](_0xf07f34(0x9e))[_0xf07f34(0xb7)]();if(!validateDbUrl(_0x5d395d))throw CliErrors['validation']('Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22'+_0x5d395d+'\x22',_0xf07f34(0x94));},async 'dryRun'(_0x5a3481){const _0x9fd508=a82_0xc2fbc5,_0x1e42f4={'appCode':_0x5a3481[_0x9fd508(0xaf)],'dbName':_0x5a3481[_0x9fd508(0x9d)]('dbname'),'dbType':_0x5a3481[_0x9fd508(0x9d)](_0x9fd508(0xa7)),'dbVersion':_0x5a3481[_0x9fd508(0x9d)](_0x9fd508(0x96))||'8.0','dbUrl':_0x5a3481['str'](_0x9fd508(0x9e))[_0x9fd508(0xb7)](),'username':_0x5a3481[_0x9fd508(0x9d)](_0x9fd508(0xb0)),'password':_0x9fd508(0xb2),..._0x5a3481[_0x9fd508(0x9d)](_0x9fd508(0xa9))?{'dbParam':_0x5a3481[_0x9fd508(0x9d)](_0x9fd508(0xa9))}:{},..._0x5a3481[_0x9fd508(0x9d)](_0x9fd508(0x9f))?{'dbDesc':_0x5a3481['str'](_0x9fd508(0x9f))}:{}};return{'method':_0x9fd508(0x99),'url':_0x9fd508(0x91),'body':_0x1e42f4,'description':[_0x9fd508(0xa1),_0x5a3481[_0x9fd508(0x8c)](_0x9fd508(0xb3))?'Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id':_0x9fd508(0x9c)][_0x9fd508(0x9a)]('\x0a')};},async 'execute'(_0x2ba12d){const _0x4852fb=a82_0xc2fbc5,_0x1b9ce0={'appCode':_0x2ba12d['appCode'],'dbName':_0x2ba12d[_0x4852fb(0x9d)]('dbname'),'dbType':_0x2ba12d['str'](_0x4852fb(0xa7)),'dbVersion':_0x2ba12d[_0x4852fb(0x9d)](_0x4852fb(0x96))||_0x4852fb(0x90),'dbUrl':_0x2ba12d[_0x4852fb(0x9d)](_0x4852fb(0x9e))[_0x4852fb(0xb7)](),'username':_0x2ba12d[_0x4852fb(0x9d)]('username'),'password':_0x2ba12d[_0x4852fb(0x9d)](_0x4852fb(0x97)),..._0x2ba12d[_0x4852fb(0x9d)](_0x4852fb(0xa9))?{'dbParam':_0x2ba12d[_0x4852fb(0x9d)](_0x4852fb(0xa9))}:{},..._0x2ba12d[_0x4852fb(0x9d)]('dbdesc')?{'dbDesc':_0x2ba12d[_0x4852fb(0x9d)]('dbdesc')}:{}},{id:_0x5cf0b5,entity:_0x44e187}=normalizeEntityWithIdResponse(await createDbLink(_0x1b9ce0));if(!_0x5cf0b5)return{'ok':![],'message':'Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','data':sanitizeDbLinkForOutput(_0x44e187)};let _0x5ba81c,_0x327a9e;if(_0x2ba12d['bool']('autostart'))try{_0x5ba81c=await startDbAnalysis(_0x5cf0b5);}catch(_0x5769f6){_0x327a9e=_0x5769f6 instanceof Error?_0x5769f6['message']:String(_0x5769f6);}const _0x1c76f8=buildDbPageLinks(_0x2ba12d[_0x4852fb(0xaf)],_0x5cf0b5),_0x360c8e={'connection':sanitizeDbLinkForOutput(_0x44e187),..._0x1c76f8?{'links':{'databasePage':_0x1c76f8[_0x4852fb(0xb5)]}}:{},..._0x5ba81c?{'analysisPlanId':_0x5ba81c}:{},..._0x327a9e?{'analysisStartWarning':_0x327a9e}:{}};let _0x51e950;return _0x2ba12d[_0x4852fb(0x8c)](_0x4852fb(0xb3))?_0x327a9e?_0x51e950=_0x4852fb(0xaa)+_0x5cf0b5+_0x4852fb(0xad):_0x51e950='Created\x20db\x20link\x20'+_0x5cf0b5+_0x4852fb(0x93):_0x51e950=_0x4852fb(0xaa)+_0x5cf0b5,{'ok':!![],'data':_0x360c8e,'message':_0x51e950};}};
@@ -1 +1 @@
1
- function a80_0x2230(){const _0x53eb92=['Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','10745HhACtd','795864UxfCUE','3105650fjwEtk','49xHgSpY','5772177biJyOU','delete','num','804571toYGSq','high-risk-write','6RQdlOV','1556328laUlhb','4101174FzHkIs','1052IyVSIo'];a80_0x2230=function(){return _0x53eb92;};return a80_0x2230();}const a80_0x4d0d6f=a80_0x3cd7;function a80_0x3cd7(_0x8355b8,_0x2ceb46){_0x8355b8=_0x8355b8-0x163;const _0x2230ca=a80_0x2230();let _0x3cd79a=_0x2230ca[_0x8355b8];return _0x3cd79a;}(function(_0x509f57,_0x5a2fc3){const _0xdf3fe=a80_0x3cd7,_0x2c4e41=_0x509f57();while(!![]){try{const _0x72be6e=parseInt(_0xdf3fe(0x16f))/0x1+parseInt(_0xdf3fe(0x163))/0x2*(parseInt(_0xdf3fe(0x164))/0x3)+parseInt(_0xdf3fe(0x166))/0x4*(-parseInt(_0xdf3fe(0x168))/0x5)+-parseInt(_0xdf3fe(0x165))/0x6+parseInt(_0xdf3fe(0x16b))/0x7*(parseInt(_0xdf3fe(0x169))/0x8)+-parseInt(_0xdf3fe(0x16c))/0x9+-parseInt(_0xdf3fe(0x16a))/0xa;if(_0x72be6e===_0x5a2fc3)break;else _0x2c4e41['push'](_0x2c4e41['shift']());}catch(_0xd34d50){_0x2c4e41['push'](_0x2c4e41['shift']());}}}(a80_0x2230,0xd1246));import{deleteDbLink}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDelete={'service':'db','command':a80_0x4d0d6f(0x16d),'description':a80_0x4d0d6f(0x167),'risk':a80_0x4d0d6f(0x170),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x161572){const _0x737d75=a80_0x4d0d6f,_0x5671fa=_0x161572[_0x737d75(0x16e)]('id');return await deleteDbLink(_0x5671fa),{'ok':!![],'data':{'id':_0x5671fa,'deleted':!![]},'message':'Deleted\x20db\x20link\x20'+_0x5671fa};}};
1
+ function a83_0x1ba3(){const _0xd449f1=['11490MRETcf','high-risk-write','1760297kPvEEe','5qeHrMd','delete','Deleted\x20db\x20link\x20','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','3290229jkYgva','3797988sdxdEP','5481320ENDMRM','num','2hTAFZN','6470IwAedq','10539yOqfnd','381338fLDUcm'];a83_0x1ba3=function(){return _0xd449f1;};return a83_0x1ba3();}const a83_0x3bd1c3=a83_0x429d;(function(_0x3c911c,_0x46fcea){const _0x36940d=a83_0x429d,_0x4d28d8=_0x3c911c();while(!![]){try{const _0x18eb07=parseInt(_0x36940d(0x10d))/0x1+parseInt(_0x36940d(0x10a))/0x2*(-parseInt(_0x36940d(0x106))/0x3)+-parseInt(_0x36940d(0x107))/0x4*(-parseInt(_0x36940d(0x111))/0x5)+parseInt(_0x36940d(0x10e))/0x6+parseInt(_0x36940d(0x110))/0x7+-parseInt(_0x36940d(0x108))/0x8+parseInt(_0x36940d(0x10c))/0x9*(parseInt(_0x36940d(0x10b))/0xa);if(_0x18eb07===_0x46fcea)break;else _0x4d28d8['push'](_0x4d28d8['shift']());}catch(_0x56b457){_0x4d28d8['push'](_0x4d28d8['shift']());}}}(a83_0x1ba3,0x88b4e));import{deleteDbLink}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a83_0x429d(_0x507a1d,_0xa20f1b){_0x507a1d=_0x507a1d-0x106;const _0x1ba361=a83_0x1ba3();let _0x429d91=_0x1ba361[_0x507a1d];return _0x429d91;}export const dbDelete={'service':'db','command':a83_0x3bd1c3(0x112),'description':a83_0x3bd1c3(0x114),'risk':a83_0x3bd1c3(0x10f),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x33e7df){const _0x4ca7af=a83_0x3bd1c3,_0x2029ba=_0x33e7df[_0x4ca7af(0x109)]('id');return await deleteDbLink(_0x2029ba),{'ok':!![],'data':{'id':_0x2029ba,'deleted':!![]},'message':_0x4ca7af(0x113)+_0x2029ba};}};
@@ -1 +1 @@
1
- const a81_0x98338f=a81_0x12a0;(function(_0xc594e6,_0x260e04){const _0x13fb62=a81_0x12a0,_0x410c78=_0xc594e6();while(!![]){try{const _0x1895ee=parseInt(_0x13fb62(0x1f4))/0x1+parseInt(_0x13fb62(0x1f1))/0x2*(-parseInt(_0x13fb62(0x1e7))/0x3)+-parseInt(_0x13fb62(0x1f0))/0x4*(parseInt(_0x13fb62(0x1f5))/0x5)+-parseInt(_0x13fb62(0x1e9))/0x6*(parseInt(_0x13fb62(0x1ee))/0x7)+parseInt(_0x13fb62(0x1ef))/0x8+-parseInt(_0x13fb62(0x1e6))/0x9*(-parseInt(_0x13fb62(0x1ed))/0xa)+parseInt(_0x13fb62(0x1ea))/0xb*(parseInt(_0x13fb62(0x1e8))/0xc);if(_0x1895ee===_0x260e04)break;else _0x410c78['push'](_0x410c78['shift']());}catch(_0x590c03){_0x410c78['push'](_0x410c78['shift']());}}}(a81_0x21d8,0x92a7a));import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a81_0x12a0(_0x2a9cb6,_0xd7780a){_0x2a9cb6=_0x2a9cb6-0x1e6;const _0x21d85d=a81_0x21d8();let _0x12a061=_0x21d85d[_0x2a9cb6];return _0x12a061;}function a81_0x21d8(){const _0x1423cd=['22TOyowa','read','detail','61850WdANIr','28KmdDbd','5062712nFPvjH','4WtXbGV','2BvpVXe','db\x20link\x20','dbName','24440gtRfSR','2866565oUbuAE','1449bATyCN','986169akEplA','5067780JaVsCr','1492440LgdecH'];a81_0x21d8=function(){return _0x1423cd;};return a81_0x21d8();}import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':a81_0x98338f(0x1ec),'description':'Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','risk':a81_0x98338f(0x1eb),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x37d4da){const _0x2270f3=a81_0x98338f,_0x12e2d1=_0x37d4da['num']('id'),_0x3ee8ac=await getDbLinkInfo(_0x12e2d1);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x3ee8ac),'message':_0x2270f3(0x1f2)+_0x12e2d1+':\x20'+_0x3ee8ac[_0x2270f3(0x1f3)]};}};
1
+ const a84_0x2e7f82=a84_0x5275;(function(_0x59fd2e,_0x299e7a){const _0x1f9ad6=a84_0x5275,_0x43b76b=_0x59fd2e();while(!![]){try{const _0x57df2d=-parseInt(_0x1f9ad6(0x1da))/0x1*(-parseInt(_0x1f9ad6(0x1d2))/0x2)+-parseInt(_0x1f9ad6(0x1dc))/0x3*(-parseInt(_0x1f9ad6(0x1d5))/0x4)+parseInt(_0x1f9ad6(0x1d8))/0x5+parseInt(_0x1f9ad6(0x1d3))/0x6*(parseInt(_0x1f9ad6(0x1ce))/0x7)+parseInt(_0x1f9ad6(0x1d7))/0x8*(-parseInt(_0x1f9ad6(0x1d6))/0x9)+parseInt(_0x1f9ad6(0x1cd))/0xa*(-parseInt(_0x1f9ad6(0x1d4))/0xb)+-parseInt(_0x1f9ad6(0x1dd))/0xc;if(_0x57df2d===_0x299e7a)break;else _0x43b76b['push'](_0x43b76b['shift']());}catch(_0x52de29){_0x43b76b['push'](_0x43b76b['shift']());}}}(a84_0x39c1,0x69d95));function a84_0x5275(_0x268ab8,_0x30e82b){_0x268ab8=_0x268ab8-0x1cd;const _0x39c1be=a84_0x39c1();let _0x527549=_0x39c1be[_0x268ab8];return _0x527549;}import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':'detail','description':a84_0x2e7f82(0x1cf),'risk':a84_0x2e7f82(0x1d1),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4280ee){const _0x5f57a8=a84_0x2e7f82,_0x12a406=_0x4280ee[_0x5f57a8(0x1db)]('id'),_0x1ea2d1=await getDbLinkInfo(_0x12a406);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x1ea2d1),'message':_0x5f57a8(0x1d0)+_0x12a406+':\x20'+_0x1ea2d1[_0x5f57a8(0x1d9)]};}};function a84_0x39c1(){const _0x2eef7f=['7mAcRnG','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','db\x20link\x20','read','1532gjMRcm','1624944QMtbXh','10065EBesln','139268KHzden','207AzWEXx','186568KUksmZ','3383770CQLHps','dbName','431BeOdvk','num','33EUkdUG','2041632aYntjL','5690rdXYfQ'];a84_0x39c1=function(){return _0x2eef7f;};return a84_0x39c1();}
@@ -1 +1 @@
1
- function a82_0x41b1(_0x66eceb,_0xd231a9){_0x66eceb=_0x66eceb-0x151;const _0x30ee8b=a82_0x30ee();let _0x41b12a=_0x30ee8b[_0x66eceb];return _0x41b12a;}const a82_0x106c89=a82_0x41b1;(function(_0xc94104,_0x2965a5){const _0x4e7f6b=a82_0x41b1,_0xa0329c=_0xc94104();while(!![]){try{const _0x2a074f=parseInt(_0x4e7f6b(0x163))/0x1*(parseInt(_0x4e7f6b(0x15c))/0x2)+parseInt(_0x4e7f6b(0x15d))/0x3+-parseInt(_0x4e7f6b(0x161))/0x4+parseInt(_0x4e7f6b(0x15b))/0x5+parseInt(_0x4e7f6b(0x172))/0x6+-parseInt(_0x4e7f6b(0x17b))/0x7*(-parseInt(_0x4e7f6b(0x166))/0x8)+parseInt(_0x4e7f6b(0x155))/0x9*(-parseInt(_0x4e7f6b(0x151))/0xa);if(_0x2a074f===_0x2965a5)break;else _0xa0329c['push'](_0xa0329c['shift']());}catch(_0x5795f3){_0xa0329c['push'](_0xa0329c['shift']());}}}(a82_0x30ee,0x92315));import{getDbTableDiff}from'../../core/api-client.js';function a82_0x30ee(){const _0x505d88=['totalCount','4684152dQifJs','Exclude\x20ALREADY_ANALYZED\x20rows\x20while\x20keeping\x20deleted\x20tables','read','Page\x20size','tableList','diffType','fieldDiff','number','map','3655603jvIKwW','boolean','\x20row(s),\x20total\x20','physicalTableCount','deletedColumns','DELETED_TABLE','fromEntries','appCode','ALREADY_ANALYZED','str','365760HkOdaT','summary','\x20of\x20','diff','171piiXlZ','validation','length','pagesize','datasetTableCount','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','555630fAEhjn','9946WHFImu','1667475iSiAcV','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','filter','all','3878120TkdlZF','NEW_TABLE','59cPJGLf','table','Page\x20index\x20(1-based)','8nmyKWH','changed-only','size','\x20(db\x20link\x20','tableName','MODIFIED_TABLE','bool','num','values','modifiedColumns','page'];a82_0x30ee=function(){return _0x505d88;};return a82_0x30ee();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';const ALL_PAGE_SIZE=0x64,DIFF_TYPES=[a82_0x106c89(0x162),a82_0x106c89(0x16b),a82_0x106c89(0x180),'ALREADY_ANALYZED'];export const dbDiff={'service':'db','command':a82_0x106c89(0x154),'description':'Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','risk':a82_0x106c89(0x174),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a82_0x106c89(0x164),'type':'string','description':a82_0x106c89(0x15e)},{'name':a82_0x106c89(0x170),'type':a82_0x106c89(0x179),'description':a82_0x106c89(0x165),'default':0x1},{'name':a82_0x106c89(0x158),'type':a82_0x106c89(0x179),'description':a82_0x106c89(0x175),'default':0x14},{'name':a82_0x106c89(0x160),'type':a82_0x106c89(0x17c),'description':a82_0x106c89(0x15a)},{'name':'changed-only','type':a82_0x106c89(0x17c),'description':a82_0x106c89(0x173)}],async 'execute'(_0x2bdb6a){const _0x1adcdd=a82_0x106c89,_0x202308=_0x2bdb6a['num']('id'),_0x40449c=_0x2bdb6a[_0x1adcdd(0x16c)]('all'),_0x58bd2e=_0x2bdb6a[_0x1adcdd(0x16c)](_0x1adcdd(0x167)),_0x527dce=_0x40449c?0x1:_0x2bdb6a[_0x1adcdd(0x16d)](_0x1adcdd(0x170),0x1)||0x1,_0x3b34f9=_0x40449c?ALL_PAGE_SIZE:_0x2bdb6a[_0x1adcdd(0x16d)]('pagesize',0x14)||0x14,_0x4ce01d=_0x2bdb6a[_0x1adcdd(0x184)](_0x1adcdd(0x164))||undefined,_0x4cd319=_0x40449c?await getAllDbTableDiff(_0x2bdb6a[_0x1adcdd(0x182)],_0x202308,_0x4ce01d):await getDbTableDiff(_0x2bdb6a[_0x1adcdd(0x182)],_0x202308,{'pageIndex':_0x527dce,'pageSize':_0x3b34f9,'tableName':_0x4ce01d}),_0x83fd63=_0x4cd319[_0x1adcdd(0x176)],_0xfdd524=_0x58bd2e?_0x83fd63['filter'](_0x42ffeb=>_0x42ffeb[_0x1adcdd(0x177)]!==_0x1adcdd(0x183)):_0x83fd63,_0x4cbd4d=Object[_0x1adcdd(0x181)](DIFF_TYPES[_0x1adcdd(0x17a)](_0x28dad2=>[_0x28dad2,_0x83fd63[_0x1adcdd(0x15f)](_0x44fa4b=>_0x44fa4b[_0x1adcdd(0x177)]===_0x28dad2)[_0x1adcdd(0x157)]])),_0xb2ff32=_0x83fd63[_0x1adcdd(0x15f)](_0x449c0c=>_0x449c0c[_0x1adcdd(0x177)]===_0x1adcdd(0x162)||_0x449c0c[_0x1adcdd(0x177)]===_0x1adcdd(0x16b))['map'](_0x230bfc=>_0x230bfc['tableName']),_0x881657=_0x83fd63['filter'](_0x3fb0cf=>_0x3fb0cf[_0x1adcdd(0x177)]===_0x1adcdd(0x180))[_0x1adcdd(0x17a)](_0x428f16=>_0x428f16[_0x1adcdd(0x16a)]),_0x5ae237=_0x83fd63[_0x1adcdd(0x15f)](_0x1ffd68=>_0x1ffd68[_0x1adcdd(0x177)]==='MODIFIED_TABLE')[_0x1adcdd(0x17a)](_0x344767=>({'tableName':_0x344767[_0x1adcdd(0x16a)],'addedColumns':_0x344767['fieldDiff']?.['addedColumns']??[],'deletedColumns':_0x344767[_0x1adcdd(0x178)]?.[_0x1adcdd(0x17f)]??[],'modifiedColumns':_0x344767['fieldDiff']?.[_0x1adcdd(0x16f)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x202308,'page':_0x527dce,'pageSize':_0x3b34f9,'totalCount':_0x4cd319[_0x1adcdd(0x171)],'physicalTableCount':_0x4cd319[_0x1adcdd(0x17e)],'datasetTableCount':_0x4cd319['datasetTableCount'],..._0x4cd319['summary']?{'summary':_0x4cd319['summary']}:{},'summaryByType':_0x4cbd4d,'toAnalyzeTables':_0xb2ff32,'deletedTables':_0x881657,'modifiedFieldDiffs':_0x5ae237,'tables':_0xfdd524,'tableList':_0xfdd524},'message':_0xfdd524[_0x1adcdd(0x157)]+_0x1adcdd(0x17d)+_0x4cd319[_0x1adcdd(0x171)]+_0x1adcdd(0x169)+_0x202308+')'};}};async function getAllDbTableDiff(_0x2bf12c,_0x51caa9,_0x3535a9){const _0x433eed=a82_0x106c89,_0x52ebe0=new Map();let _0x8c7fef=0x1,_0x51f81d=null;while(!![]){_0x51f81d=await getDbTableDiff(_0x2bf12c,_0x51caa9,{'pageIndex':_0x8c7fef,'pageSize':ALL_PAGE_SIZE,'tableName':_0x3535a9});const _0x35c9c6=_0x52ebe0[_0x433eed(0x168)];for(const _0x1c9076 of _0x51f81d[_0x433eed(0x176)]){_0x52ebe0['set'](_0x1c9076[_0x433eed(0x16a)],_0x1c9076);}if(_0x52ebe0[_0x433eed(0x168)]>=_0x51f81d[_0x433eed(0x171)])break;if(_0x51f81d[_0x433eed(0x176)][_0x433eed(0x157)]===0x0||_0x52ebe0[_0x433eed(0x168)]===_0x35c9c6)throw CliErrors[_0x433eed(0x156)]('Incomplete\x20db\x20diff\x20pagination:\x20collected\x20'+_0x52ebe0['size']+_0x433eed(0x153)+_0x51f81d[_0x433eed(0x171)]+'\x20row(s).');_0x8c7fef+=0x1;}return{'totalCount':_0x51f81d?.[_0x433eed(0x171)]??0x0,'physicalTableCount':_0x51f81d?.[_0x433eed(0x17e)]??0x0,'datasetTableCount':_0x51f81d?.[_0x433eed(0x159)]??0x0,..._0x51f81d?.[_0x433eed(0x152)]?{'summary':_0x51f81d[_0x433eed(0x152)]}:{},'tableList':[..._0x52ebe0[_0x433eed(0x16e)]()]};}
1
+ const a85_0x410a9f=a85_0x339a;(function(_0x3c9c55,_0x3adee5){const _0x2a1035=a85_0x339a,_0x1dd8d1=_0x3c9c55();while(!![]){try{const _0x4c413e=-parseInt(_0x2a1035(0x198))/0x1+-parseInt(_0x2a1035(0x197))/0x2+parseInt(_0x2a1035(0x1a1))/0x3*(parseInt(_0x2a1035(0x189))/0x4)+parseInt(_0x2a1035(0x19c))/0x5+-parseInt(_0x2a1035(0x1ae))/0x6+parseInt(_0x2a1035(0x19b))/0x7*(parseInt(_0x2a1035(0x190))/0x8)+parseInt(_0x2a1035(0x19e))/0x9;if(_0x4c413e===_0x3adee5)break;else _0x1dd8d1['push'](_0x1dd8d1['shift']());}catch(_0x1b0b0c){_0x1dd8d1['push'](_0x1dd8d1['shift']());}}}(a85_0x2eac,0x74c12));import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a85_0x339a(_0x46609f,_0x270789){_0x46609f=_0x46609f-0x185;const _0x2eacb9=a85_0x2eac();let _0x339a11=_0x2eacb9[_0x46609f];return _0x339a11;}import{CliErrors}from'../../errors.js';const ALL_PAGE_SIZE=0x64,DIFF_TYPES=[a85_0x410a9f(0x1ac),a85_0x410a9f(0x194),'DELETED_TABLE',a85_0x410a9f(0x193)];export const dbDiff={'service':'db','command':a85_0x410a9f(0x1a0),'description':a85_0x410a9f(0x1b4),'risk':a85_0x410a9f(0x18b),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':'string','description':a85_0x410a9f(0x195)},{'name':a85_0x410a9f(0x19a),'type':'number','description':a85_0x410a9f(0x1aa),'default':0x1},{'name':a85_0x410a9f(0x191),'type':a85_0x410a9f(0x1a6),'description':a85_0x410a9f(0x1ab),'default':0x14},{'name':a85_0x410a9f(0x186),'type':a85_0x410a9f(0x19d),'description':'Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)'},{'name':'changed-only','type':a85_0x410a9f(0x19d),'description':a85_0x410a9f(0x187)}],async 'execute'(_0x13b1d2){const _0x1d2c65=a85_0x410a9f,_0x234e80=_0x13b1d2['num']('id'),_0x7e3f74=_0x13b1d2[_0x1d2c65(0x18c)]('all'),_0xa92f37=_0x13b1d2[_0x1d2c65(0x18c)](_0x1d2c65(0x1b5)),_0x45d798=_0x7e3f74?0x1:_0x13b1d2[_0x1d2c65(0x185)](_0x1d2c65(0x19a),0x1)||0x1,_0x2fdd00=_0x7e3f74?ALL_PAGE_SIZE:_0x13b1d2[_0x1d2c65(0x185)]('pagesize',0x14)||0x14,_0x40c11a=_0x13b1d2[_0x1d2c65(0x1b0)](_0x1d2c65(0x1b2))||undefined,_0x2ff7bd=_0x7e3f74?await getAllDbTableDiff(_0x13b1d2['appCode'],_0x234e80,_0x40c11a):await getDbTableDiff(_0x13b1d2[_0x1d2c65(0x1a2)],_0x234e80,{'pageIndex':_0x45d798,'pageSize':_0x2fdd00,'tableName':_0x40c11a}),_0x3b17b8=_0x2ff7bd[_0x1d2c65(0x1ad)],_0xfb0334=_0xa92f37?_0x3b17b8[_0x1d2c65(0x1a5)](_0x3a152c=>_0x3a152c[_0x1d2c65(0x188)]!==_0x1d2c65(0x193)):_0x3b17b8,_0x1bccc6=Object[_0x1d2c65(0x1a8)](DIFF_TYPES[_0x1d2c65(0x18f)](_0x51a7ab=>[_0x51a7ab,_0x3b17b8[_0x1d2c65(0x1a5)](_0x52690c=>_0x52690c['diffType']===_0x51a7ab)[_0x1d2c65(0x1a7)]])),_0x3fb5cf=_0x3b17b8[_0x1d2c65(0x1a5)](_0x2ad802=>_0x2ad802['diffType']===_0x1d2c65(0x1ac)||_0x2ad802[_0x1d2c65(0x188)]===_0x1d2c65(0x194))[_0x1d2c65(0x18f)](_0x36e3a7=>_0x36e3a7[_0x1d2c65(0x19f)]),_0x1c016b=_0x3b17b8[_0x1d2c65(0x1a5)](_0x24a905=>_0x24a905[_0x1d2c65(0x188)]===_0x1d2c65(0x192))[_0x1d2c65(0x18f)](_0x174ef6=>_0x174ef6[_0x1d2c65(0x19f)]),_0x26c5eb=_0x3b17b8['filter'](_0x52ee8d=>_0x52ee8d[_0x1d2c65(0x188)]===_0x1d2c65(0x194))[_0x1d2c65(0x18f)](_0x3e96e0=>({'tableName':_0x3e96e0['tableName'],'addedColumns':_0x3e96e0['fieldDiff']?.[_0x1d2c65(0x18a)]??[],'deletedColumns':_0x3e96e0[_0x1d2c65(0x1a9)]?.[_0x1d2c65(0x1af)]??[],'modifiedColumns':_0x3e96e0[_0x1d2c65(0x1a9)]?.['modifiedColumns']??[]}));return{'ok':!![],'data':{'dbLinkId':_0x234e80,'page':_0x45d798,'pageSize':_0x2fdd00,'totalCount':_0x2ff7bd[_0x1d2c65(0x1b1)],'physicalTableCount':_0x2ff7bd[_0x1d2c65(0x199)],'datasetTableCount':_0x2ff7bd[_0x1d2c65(0x1b3)],..._0x2ff7bd['summary']?{'summary':_0x2ff7bd[_0x1d2c65(0x1a4)]}:{},'summaryByType':_0x1bccc6,'toAnalyzeTables':_0x3fb5cf,'deletedTables':_0x1c016b,'modifiedFieldDiffs':_0x26c5eb,'tables':_0xfb0334,'tableList':_0xfb0334},'message':_0xfb0334[_0x1d2c65(0x1a7)]+'\x20row(s),\x20total\x20'+_0x2ff7bd[_0x1d2c65(0x1b1)]+_0x1d2c65(0x18e)+_0x234e80+')'};}};function a85_0x2eac(){const _0x299166=['Page\x20index\x20(1-based)','Page\x20size','NEW_TABLE','tableList','3456102YCouJa','deletedColumns','str','totalCount','table','datasetTableCount','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','changed-only','num','all','Exclude\x20ALREADY_ANALYZED\x20rows\x20while\x20keeping\x20deleted\x20tables','diffType','8JfxBLV','addedColumns','read','bool','validation','\x20(db\x20link\x20','map','1994728tccfZi','pagesize','DELETED_TABLE','ALREADY_ANALYZED','MODIFIED_TABLE','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','values','1695756tOBzai','98707tHwNxv','physicalTableCount','page','7OSSxgs','1224585AhrQRC','boolean','7868952XWrVXl','tableName','diff','948363uuvDMl','appCode','size','summary','filter','number','length','fromEntries','fieldDiff'];a85_0x2eac=function(){return _0x299166;};return a85_0x2eac();}async function getAllDbTableDiff(_0x5c44d6,_0x4c1111,_0x174af9){const _0xebd3d9=a85_0x410a9f,_0x20cbd5=new Map();let _0x528b59=0x1,_0x26f08e=null;while(!![]){_0x26f08e=await getDbTableDiff(_0x5c44d6,_0x4c1111,{'pageIndex':_0x528b59,'pageSize':ALL_PAGE_SIZE,'tableName':_0x174af9});const _0x56d926=_0x20cbd5[_0xebd3d9(0x1a3)];for(const _0x7011e6 of _0x26f08e[_0xebd3d9(0x1ad)]){_0x20cbd5['set'](_0x7011e6[_0xebd3d9(0x19f)],_0x7011e6);}if(_0x20cbd5[_0xebd3d9(0x1a3)]>=_0x26f08e[_0xebd3d9(0x1b1)])break;if(_0x26f08e['tableList']['length']===0x0||_0x20cbd5[_0xebd3d9(0x1a3)]===_0x56d926)throw CliErrors[_0xebd3d9(0x18d)]('Incomplete\x20db\x20diff\x20pagination:\x20collected\x20'+_0x20cbd5[_0xebd3d9(0x1a3)]+'\x20of\x20'+_0x26f08e[_0xebd3d9(0x1b1)]+'\x20row(s).');_0x528b59+=0x1;}return{'totalCount':_0x26f08e?.[_0xebd3d9(0x1b1)]??0x0,'physicalTableCount':_0x26f08e?.['physicalTableCount']??0x0,'datasetTableCount':_0x26f08e?.[_0xebd3d9(0x1b3)]??0x0,..._0x26f08e?.[_0xebd3d9(0x1a4)]?{'summary':_0x26f08e[_0xebd3d9(0x1a4)]}:{},'tableList':[..._0x20cbd5[_0xebd3d9(0x196)]()]};}
@@ -1 +1 @@
1
- function a83_0x37c3(){const _0x45c34e=['280khBLTR','7EYSHRO','2LNYXTN','4kiUwyU','14145zzFAMT','1206803tRaGnW','10YfKhBC','256374xHuigi','3132744PgtPEY','117341LMTrLF','282hwtabL','2699408tLRytP','2405361bIJAEY','22IsGKBo'];a83_0x37c3=function(){return _0x45c34e;};return a83_0x37c3();}(function(_0xf64f45,_0x3d4224){const _0x1dba5e=a83_0x407b,_0x25112b=_0xf64f45();while(!![]){try{const _0x5a9755=parseInt(_0x1dba5e(0x1cd))/0x1*(parseInt(_0x1dba5e(0x1c6))/0x2)+-parseInt(_0x1dba5e(0x1d0))/0x3*(parseInt(_0x1dba5e(0x1c7))/0x4)+-parseInt(_0x1dba5e(0x1c8))/0x5*(-parseInt(_0x1dba5e(0x1ce))/0x6)+parseInt(_0x1dba5e(0x1c5))/0x7*(-parseInt(_0x1dba5e(0x1cf))/0x8)+-parseInt(_0x1dba5e(0x1cb))/0x9*(parseInt(_0x1dba5e(0x1ca))/0xa)+parseInt(_0x1dba5e(0x1d1))/0xb*(-parseInt(_0x1dba5e(0x1cc))/0xc)+parseInt(_0x1dba5e(0x1c9))/0xd*(parseInt(_0x1dba5e(0x1d2))/0xe);if(_0x5a9755===_0x3d4224)break;else _0x25112b['push'](_0x25112b['shift']());}catch(_0x4715ff){_0x25112b['push'](_0x25112b['shift']());}}}(a83_0x37c3,0x65d4d));import{dbList}from'../../commands/db/list.js';function a83_0x407b(_0x34eb03,_0x3003ce){_0x34eb03=_0x34eb03-0x1c5;const _0x37c315=a83_0x37c3();let _0x407b7c=_0x37c315[_0x34eb03];return _0x407b7c;}import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
1
+ (function(_0x144e0d,_0x4ab6d4){const _0xd0c1da=a86_0x50b9,_0x3f440f=_0x144e0d();while(!![]){try{const _0x344ec3=-parseInt(_0xd0c1da(0x12a))/0x1+-parseInt(_0xd0c1da(0x124))/0x2*(parseInt(_0xd0c1da(0x127))/0x3)+parseInt(_0xd0c1da(0x121))/0x4+parseInt(_0xd0c1da(0x129))/0x5*(-parseInt(_0xd0c1da(0x126))/0x6)+parseInt(_0xd0c1da(0x125))/0x7*(parseInt(_0xd0c1da(0x123))/0x8)+-parseInt(_0xd0c1da(0x128))/0x9+parseInt(_0xd0c1da(0x122))/0xa*(parseInt(_0xd0c1da(0x12b))/0xb);if(_0x344ec3===_0x4ab6d4)break;else _0x3f440f['push'](_0x3f440f['shift']());}catch(_0x375485){_0x3f440f['push'](_0x3f440f['shift']());}}}(a86_0x46d7,0x59cb6));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';function a86_0x50b9(_0x296af0,_0x564410){_0x296af0=_0x296af0-0x121;const _0x46d79f=a86_0x46d7();let _0x50b9e5=_0x46d79f[_0x296af0];return _0x50b9e5;}import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeBatchPlan}from'../../commands/db/analyze-batch-plan.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';function a86_0x46d7(){const _0x71df9d=['348uDCOaP','1891950AxOdoz','4257567OavlFz','52385LWaTVU','157516HbUZfy','21129229LsDOxu','144520wOJwbu','10oqgvBE','1118896KrKjIO','2wavdgT','14VtgJna'];a86_0x46d7=function(){return _0x71df9d;};return a86_0x46d7();}export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeBatchPlan,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
@@ -1 +1 @@
1
- const a84_0x13426c=a84_0x1bb8;(function(_0x5bce82,_0x1aee02){const _0x19277e=a84_0x1bb8,_0x4a3c89=_0x5bce82();while(!![]){try{const _0x16ed63=parseInt(_0x19277e(0x129))/0x1+-parseInt(_0x19277e(0x12a))/0x2*(parseInt(_0x19277e(0x13c))/0x3)+parseInt(_0x19277e(0x130))/0x4*(parseInt(_0x19277e(0x138))/0x5)+parseInt(_0x19277e(0x13b))/0x6+-parseInt(_0x19277e(0x13a))/0x7*(parseInt(_0x19277e(0x12f))/0x8)+-parseInt(_0x19277e(0x134))/0x9*(parseInt(_0x19277e(0x136))/0xa)+parseInt(_0x19277e(0x135))/0xb;if(_0x16ed63===_0x1aee02)break;else _0x4a3c89['push'](_0x4a3c89['shift']());}catch(_0x11c7d9){_0x4a3c89['push'](_0x4a3c89['shift']());}}}(a84_0x2107,0x66866));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a84_0x1bb8(_0x5c338c,_0x27d644){_0x5c338c=_0x5c338c-0x128;const _0x21071c=a84_0x2107();let _0x1bb8cb=_0x21071c[_0x5c338c];return _0x1bb8cb;}import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a84_0x13426c(0x132),'description':'List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','risk':a84_0x13426c(0x139),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a84_0x13426c(0x12d),'type':a84_0x13426c(0x12b),'description':a84_0x13426c(0x128),'default':0x1},{'name':a84_0x13426c(0x131),'type':'number','description':a84_0x13426c(0x12c),'default':0x64}],async 'execute'(_0x273f32){const _0x37cd62=a84_0x13426c,_0x5c61dd=_0x273f32[_0x37cd62(0x137)]('page',0x1)||0x1,_0x1bd3b2=_0x273f32[_0x37cd62(0x137)]('pagesize',0x64)||0x64,{items:_0x3daaf2,paging:_0x40c0bc}=await listDbLinks(_0x273f32['appCode'],{'currentPage':_0x5c61dd,'pageSize':_0x1bd3b2}),_0x56f3e3=sanitizeDbLinkList(_0x3daaf2),_0x25f742=_0x40c0bc?_0x40c0bc:{'currentPage':_0x5c61dd,'pageSize':_0x1bd3b2,'rowsOnPage':_0x56f3e3['length'],'totalCount':null,'note':_0x37cd62(0x133)};return{'ok':!![],'data':{'connections':_0x56f3e3,'paging':_0x25f742},'message':'Found\x20'+_0x56f3e3['length']+_0x37cd62(0x12e)};}};function a84_0x2107(){const _0x327294=['11844IJaScM','10254OBVOLu','Page\x20index\x20(1-based)','42089gAXYGp','202bsiSIA','number','Page\x20size','page','\x20database\x20connection(s)','34120jmbkFo','28OTeqes','pagesize','list','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','9BItqVq','15649722yFXRUo','2391270ZcdzOQ','num','184505nkjnTX','read','1183cBOCpv'];a84_0x2107=function(){return _0x327294;};return a84_0x2107();}
1
+ const a87_0x4816d8=a87_0x49f8;(function(_0x1a301a,_0x50e4ed){const _0x86685e=a87_0x49f8,_0x310041=_0x1a301a();while(!![]){try{const _0x18abe1=-parseInt(_0x86685e(0x18b))/0x1+-parseInt(_0x86685e(0x179))/0x2+parseInt(_0x86685e(0x17d))/0x3*(parseInt(_0x86685e(0x17a))/0x4)+-parseInt(_0x86685e(0x17b))/0x5*(-parseInt(_0x86685e(0x18c))/0x6)+parseInt(_0x86685e(0x187))/0x7+parseInt(_0x86685e(0x185))/0x8*(-parseInt(_0x86685e(0x180))/0x9)+-parseInt(_0x86685e(0x189))/0xa*(parseInt(_0x86685e(0x181))/0xb);if(_0x18abe1===_0x50e4ed)break;else _0x310041['push'](_0x310041['shift']());}catch(_0x15c321){_0x310041['push'](_0x310041['shift']());}}}(a87_0x1b3d,0x74ec0));import{listDbLinks}from'../../core/api-client.js';function a87_0x49f8(_0xc02f32,_0x20ee50){_0xc02f32=_0xc02f32-0x178;const _0x1b3d9b=a87_0x1b3d();let _0x49f815=_0x1b3d9b[_0xc02f32];return _0x49f815;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a87_0x1b3d(){const _0x4a4511=['length','87583YriBrj','24MwSaNN','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','appCode','416688uxahtO','3262496ulcyDl','10695pOIZpo','Page\x20size','3uwJWJn','num','List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','566883JHadHF','3356441fJoApw','number','page','read','48ZBLQik','pagesize','4435984nlLXsr','\x20database\x20connection(s)','10ecDSxF'];a87_0x1b3d=function(){return _0x4a4511;};return a87_0x1b3d();}import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':'list','description':a87_0x4816d8(0x17f),'risk':a87_0x4816d8(0x184),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a87_0x4816d8(0x183),'type':a87_0x4816d8(0x182),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':'pagesize','type':a87_0x4816d8(0x182),'description':a87_0x4816d8(0x17c),'default':0x64}],async 'execute'(_0x1966e4){const _0xb0a436=a87_0x4816d8,_0x53c743=_0x1966e4[_0xb0a436(0x17e)](_0xb0a436(0x183),0x1)||0x1,_0xc125a2=_0x1966e4[_0xb0a436(0x17e)](_0xb0a436(0x186),0x64)||0x64,{items:_0x303d1c,paging:_0x2c46b1}=await listDbLinks(_0x1966e4[_0xb0a436(0x178)],{'currentPage':_0x53c743,'pageSize':_0xc125a2}),_0x59dbc1=sanitizeDbLinkList(_0x303d1c),_0x579aba=_0x2c46b1?_0x2c46b1:{'currentPage':_0x53c743,'pageSize':_0xc125a2,'rowsOnPage':_0x59dbc1[_0xb0a436(0x18a)],'totalCount':null,'note':_0xb0a436(0x18d)};return{'ok':!![],'data':{'connections':_0x59dbc1,'paging':_0x579aba},'message':'Found\x20'+_0x59dbc1[_0xb0a436(0x18a)]+_0xb0a436(0x188)};}};
@@ -1 +1 @@
1
- function a85_0xebc3(_0x179e0c,_0x2af2a8){_0x179e0c=_0x179e0c-0x125;const _0x54eb3c=a85_0x54eb();let _0xebc3c2=_0x54eb3c[_0x179e0c];return _0xebc3c2;}(function(_0x39839b,_0x430bf2){const _0x227376=a85_0xebc3,_0x1c0601=_0x39839b();while(!![]){try{const _0x44a26e=parseInt(_0x227376(0x126))/0x1*(-parseInt(_0x227376(0x141))/0x2)+-parseInt(_0x227376(0x13d))/0x3+parseInt(_0x227376(0x130))/0x4*(-parseInt(_0x227376(0x136))/0x5)+-parseInt(_0x227376(0x13e))/0x6+-parseInt(_0x227376(0x142))/0x7+parseInt(_0x227376(0x134))/0x8*(-parseInt(_0x227376(0x132))/0x9)+-parseInt(_0x227376(0x12e))/0xa*(-parseInt(_0x227376(0x12f))/0xb);if(_0x44a26e===_0x430bf2)break;else _0x1c0601['push'](_0x1c0601['shift']());}catch(_0x289e3a){_0x1c0601['push'](_0x1c0601['shift']());}}}(a85_0x54eb,0xdf1df));import{getAppBaseUrl}from'../../constant/domain.js';function shouldRedactKey(_0x1305ff){const _0x37aa99=a85_0xebc3,_0x9f9acf=_0x1305ff[_0x37aa99(0x12d)]();if(_0x9f9acf===_0x37aa99(0x127)||_0x9f9acf===_0x37aa99(0x13a)||_0x9f9acf===_0x37aa99(0x13b))return!![];if(_0x9f9acf[_0x37aa99(0x137)](_0x37aa99(0x13f))||_0x9f9acf[_0x37aa99(0x137)](_0x37aa99(0x139))||_0x9f9acf[_0x37aa99(0x137)](_0x37aa99(0x128)))return!![];if(_0x9f9acf[_0x37aa99(0x137)]('privatekey')||_0x9f9acf[_0x37aa99(0x137)](_0x37aa99(0x125)))return!![];if(_0x9f9acf==='authorization'||_0x9f9acf===_0x37aa99(0x131)||_0x9f9acf==='jdbcurl')return!![];return![];}export function sanitizeDbLinkForOutput(_0x2bf883){const _0xf7863f=a85_0xebc3,_0xc34674={..._0x2bf883};for(const _0x3d47c5 of Object[_0xf7863f(0x133)](_0xc34674)){if(!shouldRedactKey(_0x3d47c5))continue;const _0x5d86a8=_0xc34674[_0x3d47c5];_0x5d86a8!=null&&String(_0x5d86a8)[_0xf7863f(0x138)]>0x0&&(_0xc34674[_0x3d47c5]=_0xf7863f(0x135));}return _0xc34674;}export function sanitizeDbLinkList(_0x1902e4){const _0x5dfd57=a85_0xebc3;return _0x1902e4[_0x5dfd57(0x140)](_0x5d8689=>sanitizeDbLinkForOutput(_0x5d8689));}function a85_0x54eb(){const _0x412b6b=['connectionstring','9uxqFLi','keys','7282424iGshIo','[redacted]','7455hIHkmd','includes','length','token','passwd','dbpassword','/data/database','4845876eLHLIy','2635152KIlbrY','secret','map','2ndlAho','11395496qtkuQB','accesskey','1096561yalUMk','password','credential','test','trim','number','/data/er?dbId=','toLowerCase','140SERwOJ','6318697dHyJgr','3860jnDVoU'];a85_0x54eb=function(){return _0x412b6b;};return a85_0x54eb();}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x5f2907){const _0x1228be=a85_0xebc3,_0x2a13c5=_0x5f2907[_0x1228be(0x12a)]();if(!_0x2a13c5)return![];return DB_URL_PATTERN[_0x1228be(0x129)](_0x2a13c5);}export function buildDbPageLinks(_0x2d7c78,_0x2a063f){const _0x22d738=a85_0xebc3,_0x8fdeae=_0x2d7c78?.[_0x22d738(0x12a)]();if(!_0x8fdeae)return undefined;const _0x21c904=typeof _0x2a063f===_0x22d738(0x12b)?String(_0x2a063f):String(_0x2a063f??'')['trim']();if(!_0x21c904)return undefined;const _0x2b0f80=Number(_0x21c904);if(!Number['isFinite'](_0x2b0f80)||_0x2b0f80<=0x0)return undefined;const _0x3c80d3=getAppBaseUrl(_0x8fdeae),_0x4a5a50=encodeURIComponent(String(_0x2b0f80));return{'databasePage':_0x3c80d3+_0x22d738(0x13c),'erPage':_0x3c80d3+_0x22d738(0x12c)+_0x4a5a50};}
1
+ (function(_0x5ceee8,_0x5e4a6e){const _0x398f7f=a88_0x1736,_0x1e040f=_0x5ceee8();while(!![]){try{const _0x175f8b=parseInt(_0x398f7f(0xfa))/0x1*(parseInt(_0x398f7f(0x105))/0x2)+parseInt(_0x398f7f(0xff))/0x3+parseInt(_0x398f7f(0x101))/0x4+parseInt(_0x398f7f(0x100))/0x5+parseInt(_0x398f7f(0xf3))/0x6*(-parseInt(_0x398f7f(0xed))/0x7)+-parseInt(_0x398f7f(0xeb))/0x8*(parseInt(_0x398f7f(0x102))/0x9)+-parseInt(_0x398f7f(0xef))/0xa*(parseInt(_0x398f7f(0xec))/0xb);if(_0x175f8b===_0x5e4a6e)break;else _0x1e040f['push'](_0x1e040f['shift']());}catch(_0x32e9fe){_0x1e040f['push'](_0x1e040f['shift']());}}}(a88_0x204f,0x80722));function a88_0x204f(){const _0xe51faf=['90552VJYJZJ','/data/er?dbId=','password','token','credential','test','includes','623057LiyXZa','number','map','[redacted]','length','1987401wzmbri','1305340TtLTWd','594680AsEWST','81225nkLYZd','isFinite','secret','2FoHatq','200qCPkJw','86009zsVIxo','434FIYVBI','privatekey','10nyVAMx','trim','authorization','connectionstring'];a88_0x204f=function(){return _0xe51faf;};return a88_0x204f();}import{getAppBaseUrl}from'../../constant/domain.js';function a88_0x1736(_0x94fc0e,_0x4b909d){_0x94fc0e=_0x94fc0e-0xeb;const _0x204f5d=a88_0x204f();let _0x1736d6=_0x204f5d[_0x94fc0e];return _0x1736d6;}function shouldRedactKey(_0x247885){const _0x4ee84a=a88_0x1736,_0x1db6c2=_0x247885['toLowerCase']();if(_0x1db6c2===_0x4ee84a(0xf5)||_0x1db6c2==='passwd'||_0x1db6c2==='dbpassword')return!![];if(_0x1db6c2[_0x4ee84a(0xf9)](_0x4ee84a(0x104))||_0x1db6c2[_0x4ee84a(0xf9)](_0x4ee84a(0xf6))||_0x1db6c2[_0x4ee84a(0xf9)](_0x4ee84a(0xf7)))return!![];if(_0x1db6c2[_0x4ee84a(0xf9)](_0x4ee84a(0xee))||_0x1db6c2['includes']('accesskey'))return!![];if(_0x1db6c2===_0x4ee84a(0xf1)||_0x1db6c2===_0x4ee84a(0xf2)||_0x1db6c2==='jdbcurl')return!![];return![];}export function sanitizeDbLinkForOutput(_0xe5f0be){const _0x43f3af=a88_0x1736,_0x2012a1={..._0xe5f0be};for(const _0x3b4ae6 of Object['keys'](_0x2012a1)){if(!shouldRedactKey(_0x3b4ae6))continue;const _0x226f29=_0x2012a1[_0x3b4ae6];_0x226f29!=null&&String(_0x226f29)[_0x43f3af(0xfe)]>0x0&&(_0x2012a1[_0x3b4ae6]=_0x43f3af(0xfd));}return _0x2012a1;}export function sanitizeDbLinkList(_0x3caf9d){const _0x1a79bf=a88_0x1736;return _0x3caf9d[_0x1a79bf(0xfc)](_0x224673=>sanitizeDbLinkForOutput(_0x224673));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x59420b){const _0x4bed14=a88_0x1736,_0x42f76c=_0x59420b[_0x4bed14(0xf0)]();if(!_0x42f76c)return![];return DB_URL_PATTERN[_0x4bed14(0xf8)](_0x42f76c);}export function buildDbPageLinks(_0x2fc0b9,_0x1779cd){const _0x3d14e1=a88_0x1736,_0x8d6e10=_0x2fc0b9?.['trim']();if(!_0x8d6e10)return undefined;const _0x5569e2=typeof _0x1779cd===_0x3d14e1(0xfb)?String(_0x1779cd):String(_0x1779cd??'')[_0x3d14e1(0xf0)]();if(!_0x5569e2)return undefined;const _0x5146dc=Number(_0x5569e2);if(!Number[_0x3d14e1(0x103)](_0x5146dc)||_0x5146dc<=0x0)return undefined;const _0x52025b=getAppBaseUrl(_0x8d6e10),_0x369cd2=encodeURIComponent(String(_0x5146dc));return{'databasePage':_0x52025b+'/data/database','erPage':_0x52025b+_0x3d14e1(0xf4)+_0x369cd2};}
@@ -1 +1 @@
1
- function a86_0x45f6(){const _0x322297=['length','tables','3HRPBCZ','8QaWeIJ','read','112460VyFJpM','124896ivSCjI','num','8346576vpHSdK','1692420VaWdHD','549XrXBfv','616ESStZo','\x20table(s)\x20on\x20db\x20link\x20','218846OZNoQm','62346CuSnNv','110bSQRts','3048795zNcdgM'];a86_0x45f6=function(){return _0x322297;};return a86_0x45f6();}const a86_0x38ebbf=a86_0x5c0b;function a86_0x5c0b(_0x37d4a8,_0x4e99b3){_0x37d4a8=_0x37d4a8-0xf3;const _0x45f6be=a86_0x45f6();let _0x5c0b6c=_0x45f6be[_0x37d4a8];return _0x5c0b6c;}(function(_0x51d2e2,_0x3f038f){const _0x38dda3=a86_0x5c0b,_0x43fab5=_0x51d2e2();while(!![]){try{const _0x1baf0e=parseInt(_0x38dda3(0xf8))/0x1*(-parseInt(_0x38dda3(0x103))/0x2)+-parseInt(_0x38dda3(0xfc))/0x3+-parseInt(_0x38dda3(0xf9))/0x4*(parseInt(_0x38dda3(0xf5))/0x5)+parseInt(_0x38dda3(0xf3))/0x6*(-parseInt(_0x38dda3(0x101))/0x7)+parseInt(_0x38dda3(0xfe))/0x8+parseInt(_0x38dda3(0x100))/0x9*(parseInt(_0x38dda3(0xfb))/0xa)+parseInt(_0x38dda3(0xf4))/0xb*(parseInt(_0x38dda3(0xff))/0xc);if(_0x1baf0e===_0x3f038f)break;else _0x43fab5['push'](_0x43fab5['shift']());}catch(_0x30b270){_0x43fab5['push'](_0x43fab5['shift']());}}}(a86_0x45f6,0x9b3cb));import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':a86_0x38ebbf(0xf7),'description':'List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','risk':a86_0x38ebbf(0xfa),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2aebbb){const _0x1b7ab4=a86_0x38ebbf,_0x204e1e=_0x2aebbb[_0x1b7ab4(0xfd)]('id'),_0x1b4ed7=await getDbAllTableList(_0x2aebbb['appCode'],_0x204e1e);return{'ok':!![],'data':{'dbLinkId':_0x204e1e,'total':_0x1b4ed7[_0x1b7ab4(0xf6)],'tables':_0x1b4ed7},'message':_0x1b4ed7[_0x1b7ab4(0xf6)]+_0x1b7ab4(0x102)+_0x204e1e};}};
1
+ const a89_0x145909=a89_0x9d96;(function(_0x345001,_0x34ee16){const _0x918528=a89_0x9d96,_0x941fb3=_0x345001();while(!![]){try{const _0x3c7a5c=-parseInt(_0x918528(0x1d0))/0x1+parseInt(_0x918528(0x1d2))/0x2+parseInt(_0x918528(0x1cb))/0x3+-parseInt(_0x918528(0x1ce))/0x4+parseInt(_0x918528(0x1cd))/0x5+parseInt(_0x918528(0x1cc))/0x6+-parseInt(_0x918528(0x1d4))/0x7;if(_0x3c7a5c===_0x34ee16)break;else _0x941fb3['push'](_0x941fb3['shift']());}catch(_0x47a3ad){_0x941fb3['push'](_0x941fb3['shift']());}}}(a89_0x4dd2,0x3a41f));import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a89_0x4dd2(){const _0x37f52c=['read','3249120gKOYUU','num','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','1154661LsxTTZ','2513010EueLTc','1657505wfqRjJ','1548588bjVgVV','length','86803jlfPgY','\x20table(s)\x20on\x20db\x20link\x20','83020zZEtGi'];a89_0x4dd2=function(){return _0x37f52c;};return a89_0x4dd2();}function a89_0x9d96(_0xb32b2,_0x4a8814){_0xb32b2=_0xb32b2-0x1c9;const _0x4dd295=a89_0x4dd2();let _0x9d9662=_0x4dd295[_0xb32b2];return _0x9d9662;}export const dbTables={'service':'db','command':'tables','description':a89_0x145909(0x1ca),'risk':a89_0x145909(0x1d3),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3bab0e){const _0x542e0c=a89_0x145909,_0x339724=_0x3bab0e[_0x542e0c(0x1c9)]('id'),_0x419ebb=await getDbAllTableList(_0x3bab0e['appCode'],_0x339724);return{'ok':!![],'data':{'dbLinkId':_0x339724,'total':_0x419ebb[_0x542e0c(0x1cf)],'tables':_0x419ebb},'message':_0x419ebb[_0x542e0c(0x1cf)]+_0x542e0c(0x1d1)+_0x339724};}};
@@ -1 +1 @@
1
- const a87_0x32e9b7=a87_0x298d;(function(_0x22ecc8,_0x4b95a1){const _0x42c668=a87_0x298d,_0x5e1c37=_0x22ecc8();while(!![]){try{const _0x14ee35=-parseInt(_0x42c668(0x1ab))/0x1+parseInt(_0x42c668(0x1a1))/0x2*(-parseInt(_0x42c668(0x1b8))/0x3)+parseInt(_0x42c668(0x1a6))/0x4*(parseInt(_0x42c668(0x1b4))/0x5)+-parseInt(_0x42c668(0x1a2))/0x6+parseInt(_0x42c668(0x1a4))/0x7+-parseInt(_0x42c668(0x1b0))/0x8*(parseInt(_0x42c668(0x1b5))/0x9)+parseInt(_0x42c668(0x1aa))/0xa*(parseInt(_0x42c668(0x1ac))/0xb);if(_0x14ee35===_0x4b95a1)break;else _0x5e1c37['push'](_0x5e1c37['shift']());}catch(_0x45bd9b){_0x5e1c37['push'](_0x5e1c37['shift']());}}}(a87_0x3c20,0x66532));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x4f4e61){const _0x52c001=a87_0x298d;if(_0x4f4e61===!![]||_0x4f4e61===![])return{'success':_0x4f4e61};if(_0x4f4e61===null||_0x4f4e61===undefined)return{'type':typeof _0x4f4e61};if(typeof _0x4f4e61!==_0x52c001(0x1b6))return{'type':typeof _0x4f4e61};const _0x3f48cc=_0x4f4e61,_0x854272=[_0x52c001(0x1b9),_0x52c001(0x1a5),_0x52c001(0x1ae),_0x52c001(0x1a8),_0x52c001(0x1a3),'data'],_0x38c5f4={};for(const _0x4eaa83 of _0x854272){if(_0x4eaa83 in _0x3f48cc)_0x38c5f4[_0x4eaa83]=_0x3f48cc[_0x4eaa83];}return Object[_0x52c001(0x1b2)](_0x38c5f4)[_0x52c001(0x1a9)]===0x0&&(_0x38c5f4[_0x52c001(0x1b2)]=Object[_0x52c001(0x1b2)](_0x3f48cc)[_0x52c001(0x1af)](0x0,0x14)),_0x38c5f4;}function a87_0x298d(_0x486edf,_0x4249a7){_0x486edf=_0x486edf-0x1a0;const _0x3c20fc=a87_0x3c20();let _0x298db0=_0x3c20fc[_0x486edf];return _0x298db0;}function a87_0x3c20(){const _0x16fa2f=['1172955DgFhDT','message','524SGwlbV','test','error','length','23510fbvUEw','148980HEYnoz','5555YzqaET','Connection\x20OK\x20for\x20db\x20link\x20','code','slice','464368TZmvRn','read','keys','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','28790FmXiii','117IRckVA','object','\x20(see\x20data.result)','99798heQxnm','success','num','22MmVmIK','2522952yrBtDe','msg'];a87_0x3c20=function(){return _0x16fa2f;};return a87_0x3c20();}export const dbTest={'service':'db','command':a87_0x32e9b7(0x1a7),'description':a87_0x32e9b7(0x1b3),'risk':a87_0x32e9b7(0x1b1),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5f5152){const _0x575741=a87_0x32e9b7,_0x205e19=_0x5f5152[_0x575741(0x1a0)]('id'),_0x256137=await testDbLinkConnect(_0x205e19),_0x3149e1=_0x256137===!![]||typeof _0x256137===_0x575741(0x1b6)&&_0x256137!==null&&_0x256137[_0x575741(0x1b9)]===!![],_0x116c93=summarizeTestConnectResult(_0x256137);return{'ok':!![],'data':{'id':_0x205e19,'connected':Boolean(_0x3149e1),'result':_0x116c93},'message':_0x3149e1?_0x575741(0x1ad)+_0x205e19:'Connection\x20check\x20finished\x20for\x20db\x20link\x20'+_0x205e19+_0x575741(0x1b7)};}};
1
+ const a90_0x23d915=a90_0x452a;(function(_0x5e61cd,_0x52cc8b){const _0x392e36=a90_0x452a,_0x5b4a27=_0x5e61cd();while(!![]){try{const _0x1de9e6=parseInt(_0x392e36(0x1b7))/0x1+-parseInt(_0x392e36(0x1aa))/0x2*(-parseInt(_0x392e36(0x1b0))/0x3)+-parseInt(_0x392e36(0x1b5))/0x4+parseInt(_0x392e36(0x1b1))/0x5*(parseInt(_0x392e36(0x1b4))/0x6)+parseInt(_0x392e36(0x1b9))/0x7*(-parseInt(_0x392e36(0x1a8))/0x8)+-parseInt(_0x392e36(0x1a7))/0x9*(parseInt(_0x392e36(0x1b3))/0xa)+parseInt(_0x392e36(0x1b6))/0xb;if(_0x1de9e6===_0x52cc8b)break;else _0x5b4a27['push'](_0x5b4a27['shift']());}catch(_0x502d88){_0x5b4a27['push'](_0x5b4a27['shift']());}}}(a90_0x5994,0xc4407));function a90_0x452a(_0x30c8b7,_0x1dfe9a){_0x30c8b7=_0x30c8b7-0x1a4;const _0x59948c=a90_0x5994();let _0x452a2f=_0x59948c[_0x30c8b7];return _0x452a2f;}function a90_0x5994(){const _0x10b6d9=['num','length','keys','object','Connection\x20OK\x20for\x20db\x20link\x20','30759sRuqSb','379670KEQBAo','\x20(see\x20data.result)','20gzItRi','30pkTJVa','799676Komjlw','1455894trzSpI','896986apenhQ','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','7336903QZznow','data','test','code','1305621jvCNvu','8xYIPEX','success','182cIRCvQ'];a90_0x5994=function(){return _0x10b6d9;};return a90_0x5994();}import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0xa1fad2){const _0x49702e=a90_0x452a;if(_0xa1fad2===!![]||_0xa1fad2===![])return{'success':_0xa1fad2};if(_0xa1fad2===null||_0xa1fad2===undefined)return{'type':typeof _0xa1fad2};if(typeof _0xa1fad2!==_0x49702e(0x1ae))return{'type':typeof _0xa1fad2};const _0x480db3=_0xa1fad2,_0x1259f1=[_0x49702e(0x1a9),'message',_0x49702e(0x1a6),'error','msg',_0x49702e(0x1a4)],_0x952de3={};for(const _0x13ecad of _0x1259f1){if(_0x13ecad in _0x480db3)_0x952de3[_0x13ecad]=_0x480db3[_0x13ecad];}return Object[_0x49702e(0x1ad)](_0x952de3)[_0x49702e(0x1ac)]===0x0&&(_0x952de3[_0x49702e(0x1ad)]=Object['keys'](_0x480db3)['slice'](0x0,0x14)),_0x952de3;}export const dbTest={'service':'db','command':a90_0x23d915(0x1a5),'description':a90_0x23d915(0x1b8),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4dca4d){const _0x52a5c7=a90_0x23d915,_0x3d4c1f=_0x4dca4d[_0x52a5c7(0x1ab)]('id'),_0x1675b7=await testDbLinkConnect(_0x3d4c1f),_0x380069=_0x1675b7===!![]||typeof _0x1675b7===_0x52a5c7(0x1ae)&&_0x1675b7!==null&&_0x1675b7[_0x52a5c7(0x1a9)]===!![],_0xb05f32=summarizeTestConnectResult(_0x1675b7);return{'ok':!![],'data':{'id':_0x3d4c1f,'connected':Boolean(_0x380069),'result':_0xb05f32},'message':_0x380069?_0x52a5c7(0x1af)+_0x3d4c1f:'Connection\x20check\x20finished\x20for\x20db\x20link\x20'+_0x3d4c1f+_0x52a5c7(0x1b2)};}};
@@ -1 +1 @@
1
- const a88_0x5f569e=a88_0x5728;function a88_0x3235(){const _0x5be346=['Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','dburl','string','validation','124951GHGgBD','dbname','update','2785860NvVPzU','dbparam','str','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','New\x20database\x20name','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','104fwQEpS','POST','dbUrl','Updated\x20db\x20link\x20','username','662196sSMSmw','write','81886CmjgSH','num','dbdesc','/smartapi/dblink/update','499428ZuQKwx','1705525dlHjex','3uMRpfQ','77CXNuOH','New\x20host:port','dbParam','New\x20username','2715020SuVJam','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','dbDesc','trim','dbName','password','10UzFiQP','18UoKxce'];a88_0x3235=function(){return _0x5be346;};return a88_0x3235();}(function(_0x4908f6,_0x31eabb){const _0x191ad5=a88_0x5728,_0x430b3e=_0x4908f6();while(!![]){try{const _0x1dc648=parseInt(_0x191ad5(0x17f))/0x1*(-parseInt(_0x191ad5(0x179))/0x2)+parseInt(_0x191ad5(0x195))/0x3*(-parseInt(_0x191ad5(0x193))/0x4)+-parseInt(_0x191ad5(0x194))/0x5+parseInt(_0x191ad5(0x182))/0x6+parseInt(_0x191ad5(0x18f))/0x7*(parseInt(_0x191ad5(0x188))/0x8)+parseInt(_0x191ad5(0x17a))/0x9*(parseInt(_0x191ad5(0x173))/0xa)+-parseInt(_0x191ad5(0x16f))/0xb*(-parseInt(_0x191ad5(0x18d))/0xc);if(_0x1dc648===_0x31eabb)break;else _0x430b3e['push'](_0x430b3e['shift']());}catch(_0x502d9a){_0x430b3e['push'](_0x430b3e['shift']());}}}(a88_0x3235,0x6f128));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';function a88_0x5728(_0xbf4f47,_0x2fb11f){_0xbf4f47=_0xbf4f47-0x16f;const _0x323589=a88_0x3235();let _0x57286f=_0x323589[_0xbf4f47];return _0x57286f;}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':a88_0x5f569e(0x181),'description':a88_0x5f569e(0x174),'risk':a88_0x5f569e(0x18e),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a88_0x5f569e(0x180),'type':a88_0x5f569e(0x17d),'description':a88_0x5f569e(0x186)},{'name':a88_0x5f569e(0x17c),'type':a88_0x5f569e(0x17d),'description':a88_0x5f569e(0x170)},{'name':a88_0x5f569e(0x18c),'type':'string','description':a88_0x5f569e(0x172)},{'name':a88_0x5f569e(0x178),'type':a88_0x5f569e(0x17d),'description':a88_0x5f569e(0x187)},{'name':a88_0x5f569e(0x183),'type':a88_0x5f569e(0x17d),'description':'New\x20connection\x20parameter\x20string'},{'name':a88_0x5f569e(0x191),'type':'string','description':'New\x20description'}],async 'validate'(_0x592661){const _0x51f172=a88_0x5f569e,_0x33547f=_0x592661['str'](_0x51f172(0x17c));if(_0x33547f&&!validateDbUrl(_0x33547f[_0x51f172(0x176)]()))throw CliErrors[_0x51f172(0x17e)](_0x51f172(0x17b)+_0x33547f+'\x22');},async 'dryRun'(_0x1d6f25){const _0x2f59fd=a88_0x5f569e,_0x2ce350=_0x1d6f25[_0x2f59fd(0x190)]('id'),_0x1d720b=await getDbLinkInfo(_0x2ce350),_0x6bb8f0={..._0x1d720b},_0x52d8d1=_0x1d6f25['str']('dbname');if(_0x52d8d1)_0x6bb8f0[_0x2f59fd(0x177)]=_0x52d8d1;const _0x5bc697=_0x1d6f25[_0x2f59fd(0x184)](_0x2f59fd(0x17c));if(_0x5bc697)_0x6bb8f0[_0x2f59fd(0x18a)]=_0x5bc697[_0x2f59fd(0x176)]();const _0x281321=_0x1d6f25[_0x2f59fd(0x184)]('username');if(_0x281321)_0x6bb8f0[_0x2f59fd(0x18c)]=_0x281321;const _0x1529dd=_0x1d6f25[_0x2f59fd(0x184)](_0x2f59fd(0x178));if(_0x1529dd)_0x6bb8f0[_0x2f59fd(0x178)]=_0x1529dd;const _0x221035=_0x1d6f25['str'](_0x2f59fd(0x183));if(_0x221035)_0x6bb8f0[_0x2f59fd(0x171)]=_0x221035;const _0x89b4bb=_0x1d6f25['str'](_0x2f59fd(0x191));if(_0x89b4bb)_0x6bb8f0[_0x2f59fd(0x175)]=_0x89b4bb;const _0xeffe=sanitizeDbLinkForOutput(_0x6bb8f0);return{'method':_0x2f59fd(0x189),'url':_0x2f59fd(0x192),'body':_0xeffe,'description':_0x2f59fd(0x185)};},async 'execute'(_0x152f1){const _0x4818e4=a88_0x5f569e,_0x360f3c=_0x152f1[_0x4818e4(0x190)]('id'),_0x3916ac=await getDbLinkInfo(_0x360f3c),_0x48f95e={..._0x3916ac},_0x5c3281=_0x152f1[_0x4818e4(0x184)](_0x4818e4(0x180));if(_0x5c3281)_0x48f95e[_0x4818e4(0x177)]=_0x5c3281;const _0x2cc521=_0x152f1['str'](_0x4818e4(0x17c));if(_0x2cc521)_0x48f95e[_0x4818e4(0x18a)]=_0x2cc521[_0x4818e4(0x176)]();const _0x18dbd3=_0x152f1[_0x4818e4(0x184)](_0x4818e4(0x18c));if(_0x18dbd3)_0x48f95e[_0x4818e4(0x18c)]=_0x18dbd3;const _0x7ba347=_0x152f1[_0x4818e4(0x184)](_0x4818e4(0x178));if(_0x7ba347)_0x48f95e[_0x4818e4(0x178)]=_0x7ba347;const _0x4211b1=_0x152f1['str']('dbparam');if(_0x4211b1)_0x48f95e[_0x4818e4(0x171)]=_0x4211b1;const _0x47d8c8=_0x152f1['str'](_0x4818e4(0x191));if(_0x47d8c8)_0x48f95e[_0x4818e4(0x175)]=_0x47d8c8;const {id:_0x596d8d,entity:_0x13ffa8}=normalizeEntityWithIdResponse(await updateDbLink(_0x48f95e));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x13ffa8),'message':_0x4818e4(0x18b)+(_0x596d8d??_0x360f3c)};}};
1
+ const a91_0x5c2435=a91_0x48f7;function a91_0x48f7(_0x15e0bd,_0x43a70f){_0x15e0bd=_0x15e0bd-0x6d;const _0x144726=a91_0x1447();let _0x48f756=_0x144726[_0x15e0bd];return _0x48f756;}(function(_0x9853d0,_0x4fda3f){const _0x2752f8=a91_0x48f7,_0x33a7cd=_0x9853d0();while(!![]){try{const _0x30ede3=-parseInt(_0x2752f8(0x8d))/0x1*(-parseInt(_0x2752f8(0x86))/0x2)+-parseInt(_0x2752f8(0x6d))/0x3+parseInt(_0x2752f8(0x82))/0x4+parseInt(_0x2752f8(0x76))/0x5+parseInt(_0x2752f8(0x6e))/0x6+-parseInt(_0x2752f8(0x77))/0x7+-parseInt(_0x2752f8(0x7a))/0x8*(-parseInt(_0x2752f8(0x8a))/0x9);if(_0x30ede3===_0x4fda3f)break;else _0x33a7cd['push'](_0x33a7cd['shift']());}catch(_0xcc77e8){_0x33a7cd['push'](_0x33a7cd['shift']());}}}(a91_0x1447,0x6058d));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':'update','description':'Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a91_0x5c2435(0x7e),'type':'string','description':a91_0x5c2435(0x72)},{'name':a91_0x5c2435(0x78),'type':'string','description':a91_0x5c2435(0x80)},{'name':a91_0x5c2435(0x88),'type':'string','description':a91_0x5c2435(0x83)},{'name':a91_0x5c2435(0x89),'type':a91_0x5c2435(0x7f),'description':a91_0x5c2435(0x75)},{'name':a91_0x5c2435(0x7d),'type':a91_0x5c2435(0x7f),'description':a91_0x5c2435(0x79)},{'name':a91_0x5c2435(0x81),'type':a91_0x5c2435(0x7f),'description':'New\x20description'}],async 'validate'(_0x321977){const _0x3e5b38=a91_0x5c2435,_0x38fd4d=_0x321977['str'](_0x3e5b38(0x78));if(_0x38fd4d&&!validateDbUrl(_0x38fd4d[_0x3e5b38(0x8c)]()))throw CliErrors['validation'](_0x3e5b38(0x8b)+_0x38fd4d+'\x22');},async 'dryRun'(_0xa9f07d){const _0x1fcde7=a91_0x5c2435,_0x300dd1=_0xa9f07d['num']('id'),_0xce7e5a=await getDbLinkInfo(_0x300dd1),_0x5c8f5d={..._0xce7e5a},_0x233837=_0xa9f07d[_0x1fcde7(0x85)](_0x1fcde7(0x7e));if(_0x233837)_0x5c8f5d[_0x1fcde7(0x70)]=_0x233837;const _0x229663=_0xa9f07d[_0x1fcde7(0x85)](_0x1fcde7(0x78));if(_0x229663)_0x5c8f5d[_0x1fcde7(0x7c)]=_0x229663['trim']();const _0x890813=_0xa9f07d[_0x1fcde7(0x85)]('username');if(_0x890813)_0x5c8f5d['username']=_0x890813;const _0x74e43=_0xa9f07d[_0x1fcde7(0x85)]('password');if(_0x74e43)_0x5c8f5d[_0x1fcde7(0x89)]=_0x74e43;const _0x229c31=_0xa9f07d[_0x1fcde7(0x85)](_0x1fcde7(0x7d));if(_0x229c31)_0x5c8f5d[_0x1fcde7(0x7b)]=_0x229c31;const _0x2e5f60=_0xa9f07d[_0x1fcde7(0x85)](_0x1fcde7(0x81));if(_0x2e5f60)_0x5c8f5d['dbDesc']=_0x2e5f60;const _0x4e015a=sanitizeDbLinkForOutput(_0x5c8f5d);return{'method':_0x1fcde7(0x87),'url':_0x1fcde7(0x6f),'body':_0x4e015a,'description':_0x1fcde7(0x74)};},async 'execute'(_0x18fffa){const _0xeaf474=a91_0x5c2435,_0x15647e=_0x18fffa[_0xeaf474(0x73)]('id'),_0x1bdd0a=await getDbLinkInfo(_0x15647e),_0x1a74b5={..._0x1bdd0a},_0x19cecc=_0x18fffa[_0xeaf474(0x85)](_0xeaf474(0x7e));if(_0x19cecc)_0x1a74b5['dbName']=_0x19cecc;const _0x51641b=_0x18fffa['str'](_0xeaf474(0x78));if(_0x51641b)_0x1a74b5[_0xeaf474(0x7c)]=_0x51641b['trim']();const _0x471fbb=_0x18fffa[_0xeaf474(0x85)](_0xeaf474(0x88));if(_0x471fbb)_0x1a74b5[_0xeaf474(0x88)]=_0x471fbb;const _0xffeb37=_0x18fffa['str']('password');if(_0xffeb37)_0x1a74b5['password']=_0xffeb37;const _0x1921ed=_0x18fffa[_0xeaf474(0x85)](_0xeaf474(0x7d));if(_0x1921ed)_0x1a74b5[_0xeaf474(0x7b)]=_0x1921ed;const _0x2ed603=_0x18fffa[_0xeaf474(0x85)](_0xeaf474(0x81));if(_0x2ed603)_0x1a74b5[_0xeaf474(0x71)]=_0x2ed603;const {id:_0x25ec6d,entity:_0x881814}=normalizeEntityWithIdResponse(await updateDbLink(_0x1a74b5));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x881814),'message':_0xeaf474(0x84)+(_0x25ec6d??_0x15647e)};}};function a91_0x1447(){const _0x3224ff=['POST','username','password','659601LeLqWc','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','trim','655507TvkfDu','1975017bIvWdg','708648iFKUbt','/smartapi/dblink/update','dbName','dbDesc','New\x20database\x20name','num','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','3289100QWQXnj','5134759iOTzTe','dburl','New\x20connection\x20parameter\x20string','16vXfJys','dbParam','dbUrl','dbparam','dbname','string','New\x20host:port','dbdesc','834000dlfJXW','New\x20username','Updated\x20db\x20link\x20','str','2dZjUvB'];a91_0x1447=function(){return _0x3224ff;};return a91_0x1447();}
@@ -1 +1 @@
1
- const a89_0x1bec60=a89_0x4d3b;function a89_0x4d3b(_0x30db1f,_0x3ab165){_0x30db1f=_0x30db1f-0x1c0;const _0x1645f8=a89_0x1645();let _0x4d3bf2=_0x1645f8[_0x30db1f];return _0x4d3bf2;}(function(_0x47c15b,_0x15b8dd){const _0x42226c=a89_0x4d3b,_0x179974=_0x47c15b();while(!![]){try{const _0x23f135=-parseInt(_0x42226c(0x1c3))/0x1+-parseInt(_0x42226c(0x1c0))/0x2+-parseInt(_0x42226c(0x204))/0x3*(-parseInt(_0x42226c(0x1dd))/0x4)+-parseInt(_0x42226c(0x1d5))/0x5*(-parseInt(_0x42226c(0x20d))/0x6)+-parseInt(_0x42226c(0x1df))/0x7*(parseInt(_0x42226c(0x1d0))/0x8)+-parseInt(_0x42226c(0x1db))/0x9*(-parseInt(_0x42226c(0x1cc))/0xa)+-parseInt(_0x42226c(0x20c))/0xb;if(_0x23f135===_0x15b8dd)break;else _0x179974['push'](_0x179974['shift']());}catch(_0x2fa910){_0x179974['push'](_0x179974['shift']());}}}(a89_0x1645,0x3d316));import a89_0xaedd35 from'chalk';function a89_0x1645(){const _0x59eb0b=['empty','31199MYNoXj','\x20\x20\x20\x20accessKey:\x20\x20','accessKey','⚠\x20Empty\x20(treated\x20as\x20{})','✓\x20Valid\x20JSON','platform','apiDir','\x20\x20Merged\x20Config','(set,\x20length=','locale','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','(missing)','✗\x20Invalid\x20JSON','\x20←\x20current','gray','missing','read','slice','(default:\x20','riskLevel','arch','✗\x20Expired','repeat','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','value','log','Global','appcode','red','✓\x20Valid','(not\x20found)','padEnd','currentApp','(no\x20file)','version','\x20\x20─','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','1201839UcFNLy','keys','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20doctor','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','pageSize','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','(not\x20set)','328449ALJPuL','111354atMoRD','verbose','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','status','format','cookie','appCode','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','831556GCGICg','env','bold','262776JuuaEf','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','yellow','check','message','explicitAppName','raw','doctor','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','4969920hZJDSi','\x20\x20explicitAppName:\x20','unknown','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','456OXiyqx','defaultApp','\x20\x20API\x20Endpoints','(default)','green','85rtvTEU','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','(none)','source','9csCuev','apps','4IgePdC'];a89_0x1645=function(){return _0x59eb0b;};return a89_0x1645();}import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x3372da){const _0xf621f1=a89_0x4d3b,_0x3223a8=GIT_COMMIT!==_0xf621f1(0x1ce)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0xf621f1(0x1f0)](0x0,0xa)+')':VERSION,_0x47081a=buildConfigFromFlags({}),_0x1c5a56=getCookie();console[_0xf621f1(0x1f8)](),console[_0xf621f1(0x1f8)](a89_0xaedd35[_0xf621f1(0x1c2)](CLI_BIN_NAME+_0xf621f1(0x207))),console['log'](a89_0xaedd35['gray']('─'['repeat'](0x32))),console[_0xf621f1(0x1f8)](_0xf621f1(0x1e9)+_0x3223a8),console[_0xf621f1(0x1f8)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0xf621f1(0x201)]),console[_0xf621f1(0x1f8)](_0xf621f1(0x1f6)+process[_0xf621f1(0x1e4)]+'\x20'+process[_0xf621f1(0x1f3)]),console[_0xf621f1(0x1f8)](),console[_0xf621f1(0x1f8)](a89_0xaedd35[_0xf621f1(0x1c2)](_0xf621f1(0x1d8))),console[_0xf621f1(0x1f8)](a89_0xaedd35[_0xf621f1(0x1ed)](_0xf621f1(0x202)[_0xf621f1(0x1f5)](0x1e)));const _0x18c842=getGlobalConfigPath(),_0x145fa0=getProjectConfigPath();console[_0xf621f1(0x1f8)](_0xf621f1(0x214)+(_0x18c842||a89_0xaedd35[_0xf621f1(0x1ed)](_0xf621f1(0x1fd)))),console['log'](_0xf621f1(0x1d6)+(_0x145fa0||a89_0xaedd35['gray']('(not\x20found)'))),console['log'](),console[_0xf621f1(0x1f8)](a89_0xaedd35['bold']('\x20\x20Config\x20JSON')),console[_0xf621f1(0x1f8)](a89_0xaedd35[_0xf621f1(0x1ed)](_0xf621f1(0x202)[_0xf621f1(0x1f5)](0x1e)));const _0x515ba1=(_0x10c953,_0x68382b)=>{const _0xff4874=_0xf621f1;if(!_0x68382b){console[_0xff4874(0x1f8)]('\x20\x20'+_0x10c953[_0xff4874(0x1fe)](0x11)+'\x20'+a89_0xaedd35['gray'](_0xff4874(0x200)));return;}const _0x28137a=inspectCliConfigJsonFile(_0x68382b);if(_0x28137a[_0xff4874(0x210)]==='ok')console[_0xff4874(0x1f8)]('\x20\x20'+_0x10c953[_0xff4874(0x1fe)](0x11)+'\x20'+a89_0xaedd35[_0xff4874(0x1d4)](_0xff4874(0x1e3)));else{if(_0x28137a[_0xff4874(0x210)]===_0xff4874(0x1de))console[_0xff4874(0x1f8)]('\x20\x20'+_0x10c953[_0xff4874(0x1fe)](0x11)+'\x20'+a89_0xaedd35[_0xff4874(0x1c5)](_0xff4874(0x1e2)));else _0x28137a[_0xff4874(0x210)]===_0xff4874(0x1ee)?console[_0xff4874(0x1f8)]('\x20\x20'+_0x10c953[_0xff4874(0x1fe)](0x11)+'\x20'+a89_0xaedd35[_0xff4874(0x1ed)](_0xff4874(0x1ea))):(console[_0xff4874(0x1f8)]('\x20\x20'+_0x10c953[_0xff4874(0x1fe)](0x11)+'\x20'+a89_0xaedd35[_0xff4874(0x1fb)](_0xff4874(0x1eb))),console[_0xff4874(0x1f8)]('\x20\x20'+''[_0xff4874(0x1fe)](0x11)+'\x20'+a89_0xaedd35[_0xff4874(0x1fb)](_0x28137a[_0xff4874(0x1c7)])));}};_0x515ba1(_0xf621f1(0x1f9),_0x18c842),_0x515ba1('Project',_0x145fa0),console[_0xf621f1(0x1f8)](),console[_0xf621f1(0x1f8)](a89_0xaedd35[_0xf621f1(0x1c2)](_0xf621f1(0x1e6))),console[_0xf621f1(0x1f8)](a89_0xaedd35['gray']('\x20\x20─'[_0xf621f1(0x1f5)](0x1e))),console[_0xf621f1(0x1f8)](_0xf621f1(0x1cb)+(_0x47081a[_0xf621f1(0x213)]||a89_0xaedd35[_0xf621f1(0x1fb)](_0xf621f1(0x20b)))),console['log']('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x47081a['env']),console['log']('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x47081a[_0xf621f1(0x1e8)]),console[_0xf621f1(0x1f8)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x47081a[_0xf621f1(0x1e5)]),console[_0xf621f1(0x1f8)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x47081a[_0xf621f1(0x1d1)]||a89_0xaedd35[_0xf621f1(0x1ed)](_0xf621f1(0x1d9)))),console[_0xf621f1(0x1f8)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x47081a[_0xf621f1(0x1ff)]||a89_0xaedd35[_0xf621f1(0x1ed)](_0xf621f1(0x1d9)))),console['log'](_0xf621f1(0x1cd)+(_0x47081a[_0xf621f1(0x1c8)]||a89_0xaedd35['gray'](_0xf621f1(0x1d9)))),console['log'](_0xf621f1(0x1cf)+(_0x47081a[_0xf621f1(0x211)]||a89_0xaedd35[_0xf621f1(0x1ed)](_0xf621f1(0x1f1)+DEFAULT_CONFIG_VALUES[_0xf621f1(0x211)]+')'))),console[_0xf621f1(0x1f8)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x47081a[_0xf621f1(0x209)]??a89_0xaedd35[_0xf621f1(0x1ed)](_0xf621f1(0x1d3)))),console[_0xf621f1(0x1f8)](_0xf621f1(0x20f)+_0x47081a[_0xf621f1(0x1f2)]),console[_0xf621f1(0x1f8)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x47081a[_0xf621f1(0x20e)]),console['log']('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x47081a[_0xf621f1(0x212)]?a89_0xaedd35['green'](_0xf621f1(0x1e7)+_0x47081a[_0xf621f1(0x212)][_0xf621f1(0x215)]+')'):_0x1c5a56?a89_0xaedd35[_0xf621f1(0x1d4)]('(set\x20via\x20file,\x20length='+_0x1c5a56['length']+')'):a89_0xaedd35[_0xf621f1(0x1ed)](_0xf621f1(0x1d9))));const _0x3459b5=Object[_0xf621f1(0x205)](_0x47081a[_0xf621f1(0x1dc)]);if(_0x3459b5[_0xf621f1(0x215)]>0x0){console['log'](),console[_0xf621f1(0x1f8)](a89_0xaedd35[_0xf621f1(0x1c2)]('\x20\x20Apps')),console[_0xf621f1(0x1f8)](a89_0xaedd35['gray'](_0xf621f1(0x202)[_0xf621f1(0x1f5)](0x1e)));for(const _0x1f2636 of _0x3459b5){const _0x1c09a1=_0x47081a['apps'][_0x1f2636],_0x4bc33c=_0x1f2636===_0x47081a[_0xf621f1(0x1d1)],_0x4748c9=_0x1f2636===_0x47081a[_0xf621f1(0x1ff)],_0x1c9693=_0x4748c9?a89_0xaedd35[_0xf621f1(0x1d4)](_0xf621f1(0x1ec)):'',_0x3fc917=_0x4bc33c?'\x20(default)':'';console[_0xf621f1(0x1f8)]('\x20\x20'+_0x1f2636+_0x3fc917+_0x1c9693),console[_0xf621f1(0x1f8)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x1c09a1[_0xf621f1(0x1fa)]);const _0x29405b=buildAppDoctorFields(_0x1c09a1,{'env':_0x47081a[_0xf621f1(0x1c1)],'apiDir':_0x47081a[_0xf621f1(0x1c9)][_0xf621f1(0x1e5)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x47081a['cookie']||_0x1c5a56||undefined,'accessKey':_0x47081a['accessKey']});console['log'](_0xf621f1(0x203)+_0x29405b[_0xf621f1(0x1c1)][_0xf621f1(0x1f7)]+'\x20\x20'+a89_0xaedd35['gray']('('+_0x29405b['env'][_0xf621f1(0x1da)]+')')),console[_0xf621f1(0x1f8)](_0xf621f1(0x1d7)+_0x29405b[_0xf621f1(0x1e5)][_0xf621f1(0x1f7)]+'\x20\x20'+a89_0xaedd35[_0xf621f1(0x1ed)]('('+_0x29405b[_0xf621f1(0x1e5)]['source']+')'));const _0x1ce2e7=_0x29405b[_0xf621f1(0x212)][_0xf621f1(0x1f7)]?a89_0xaedd35[_0xf621f1(0x1d4)](_0xf621f1(0x1e7)+_0x29405b['cookie'][_0xf621f1(0x1f7)][_0xf621f1(0x215)]+')'):a89_0xaedd35[_0xf621f1(0x1ed)](_0xf621f1(0x1d9));console['log']('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x1ce2e7+'\x20\x20'+a89_0xaedd35[_0xf621f1(0x1ed)]('('+_0x29405b[_0xf621f1(0x212)][_0xf621f1(0x1da)]+')'));const _0x30d59a=_0x29405b[_0xf621f1(0x1e1)][_0xf621f1(0x1f7)]?a89_0xaedd35[_0xf621f1(0x1d4)](_0xf621f1(0x1e7)+_0x29405b[_0xf621f1(0x1e1)][_0xf621f1(0x1f7)][_0xf621f1(0x215)]+')'):a89_0xaedd35[_0xf621f1(0x1ed)](_0xf621f1(0x1d9));console[_0xf621f1(0x1f8)](_0xf621f1(0x1e0)+_0x30d59a+'\x20\x20'+a89_0xaedd35[_0xf621f1(0x1ed)]('('+_0x29405b[_0xf621f1(0x1e1)][_0xf621f1(0x1da)]+')'));}}console[_0xf621f1(0x1f8)](),console[_0xf621f1(0x1f8)](a89_0xaedd35[_0xf621f1(0x1c2)](_0xf621f1(0x1d2))),console[_0xf621f1(0x1f8)](a89_0xaedd35[_0xf621f1(0x1ed)](_0xf621f1(0x202)['repeat'](0x1e))),console[_0xf621f1(0x1f8)](_0xf621f1(0x206)+getApiDomain()),console[_0xf621f1(0x1f8)](_0xf621f1(0x20a)+getUserDomain()),console[_0xf621f1(0x1f8)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0xf621f1(0x1f8)](),console['log'](a89_0xaedd35['bold']('\x20\x20Auth')),console['log'](a89_0xaedd35[_0xf621f1(0x1ed)](_0xf621f1(0x202)['repeat'](0x1e)));if(_0x1c5a56){const _0x6da2ae=await getIsSessionValid();console[_0xf621f1(0x1f8)](_0xf621f1(0x208)+(_0x6da2ae?a89_0xaedd35[_0xf621f1(0x1d4)](_0xf621f1(0x1fc)):a89_0xaedd35[_0xf621f1(0x1fb)](_0xf621f1(0x1f4))));}else console['log'](_0xf621f1(0x208)+a89_0xaedd35[_0xf621f1(0x1fb)]('✗\x20Not\x20logged\x20in'));return console[_0xf621f1(0x1f8)](),{'ok':!![]};}export const doctorDefinition={'service':a89_0x1bec60(0x1ca),'command':a89_0x1bec60(0x1c6),'description':a89_0x1bec60(0x1c4),'risk':a89_0x1bec60(0x1ef),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a92_0x2d7cf4=a92_0x26ca;(function(_0x3d4b8a,_0x395e8f){const _0x2f1266=a92_0x26ca,_0x31c0f5=_0x3d4b8a();while(!![]){try{const _0x4578d0=parseInt(_0x2f1266(0x184))/0x1*(parseInt(_0x2f1266(0x178))/0x2)+parseInt(_0x2f1266(0x169))/0x3+parseInt(_0x2f1266(0x1b6))/0x4*(-parseInt(_0x2f1266(0x1ac))/0x5)+-parseInt(_0x2f1266(0x19b))/0x6+-parseInt(_0x2f1266(0x166))/0x7+-parseInt(_0x2f1266(0x16e))/0x8*(parseInt(_0x2f1266(0x188))/0x9)+parseInt(_0x2f1266(0x1ae))/0xa*(parseInt(_0x2f1266(0x19e))/0xb);if(_0x4578d0===_0x395e8f)break;else _0x31c0f5['push'](_0x31c0f5['shift']());}catch(_0x1820a5){_0x31c0f5['push'](_0x31c0f5['shift']());}}}(a92_0x4f03,0xc0916));function a92_0x4f03(){const _0x40bd55=['\x20←\x20current','36YKLPBK','platform','(no\x20file)','explicitAppName','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','Global','8287804jNxYPJ','read','\x20\x20\x20\x20accessKey:\x20\x20','137001QJkwrF','slice','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','appcode','519016Vifdqm','✓\x20Valid\x20JSON','accessKey','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','✓\x20Valid','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','keys','(not\x20set)','length','852762MZQVLs','\x20\x20Config\x20JSON','locale','verbose','(none)','value','yellow','(set\x20via\x20file,\x20length=','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','(set,\x20length=','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','1ySVHKx','appCode','format','(not\x20found)','198cyBAOh','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','Project','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','padEnd','✗\x20Invalid\x20JSON','status','red','cookie','currentApp','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','empty','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','doctor','bold','version','missing','gray','6605688KzPioU','pageSize','source','2409682WfYVhn','apps','(default)','log','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','(missing)','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','message','\x20doctor','defaultApp','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','74030tuXrGb','\x20(default)','190rojnDS','(default:\x20','repeat','\x20\x20─','env','\x20\x20Auth','⚠\x20Empty\x20(treated\x20as\x20{})'];a92_0x4f03=function(){return _0x40bd55;};return a92_0x4f03();}import a92_0x1136ee from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x2847de){const _0x38a84c=a92_0x26ca,_0x53cbba=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x38a84c(0x16a)](0x0,0xa)+')':VERSION,_0x4174d4=buildConfigFromFlags({}),_0x123e40=getCookie();console[_0x38a84c(0x1a1)](),console[_0x38a84c(0x1a1)](a92_0x1136ee[_0x38a84c(0x197)](CLI_BIN_NAME+_0x38a84c(0x1a7))),console[_0x38a84c(0x1a1)](a92_0x1136ee['gray']('─'[_0x38a84c(0x1b0)](0x32))),console['log'](_0x38a84c(0x183)+_0x53cbba),console['log']('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x38a84c(0x198)]),console[_0x38a84c(0x1a1)](_0x38a84c(0x16b)+process[_0x38a84c(0x1b7)]+'\x20'+process['arch']),console['log'](),console[_0x38a84c(0x1a1)](a92_0x1136ee['bold']('\x20\x20Config\x20Files')),console[_0x38a84c(0x1a1)](a92_0x1136ee[_0x38a84c(0x19a)](_0x38a84c(0x1b1)[_0x38a84c(0x1b0)](0x1e)));const _0x54cd02=getGlobalConfigPath(),_0x2aea5f=getProjectConfigPath();console[_0x38a84c(0x1a1)](_0x38a84c(0x1ba)+(_0x54cd02||a92_0x1136ee[_0x38a84c(0x19a)](_0x38a84c(0x187)))),console['log'](_0x38a84c(0x193)+(_0x2aea5f||a92_0x1136ee[_0x38a84c(0x19a)](_0x38a84c(0x187)))),console[_0x38a84c(0x1a1)](),console['log'](a92_0x1136ee['bold'](_0x38a84c(0x179))),console[_0x38a84c(0x1a1)](a92_0x1136ee['gray']('\x20\x20─'[_0x38a84c(0x1b0)](0x1e)));const _0x2188cb=(_0x2d224d,_0x252706)=>{const _0x1dedfb=_0x38a84c;if(!_0x252706){console[_0x1dedfb(0x1a1)]('\x20\x20'+_0x2d224d['padEnd'](0x11)+'\x20'+a92_0x1136ee[_0x1dedfb(0x19a)](_0x1dedfb(0x1b8)));return;}const _0xfb7014=inspectCliConfigJsonFile(_0x252706);if(_0xfb7014['status']==='ok')console[_0x1dedfb(0x1a1)]('\x20\x20'+_0x2d224d['padEnd'](0x11)+'\x20'+a92_0x1136ee[_0x1dedfb(0x1a5)](_0x1dedfb(0x16f)));else{if(_0xfb7014[_0x1dedfb(0x18f)]===_0x1dedfb(0x194))console[_0x1dedfb(0x1a1)]('\x20\x20'+_0x2d224d[_0x1dedfb(0x18d)](0x11)+'\x20'+a92_0x1136ee[_0x1dedfb(0x17e)](_0x1dedfb(0x1b4)));else _0xfb7014['status']===_0x1dedfb(0x199)?console[_0x1dedfb(0x1a1)]('\x20\x20'+_0x2d224d[_0x1dedfb(0x18d)](0x11)+'\x20'+a92_0x1136ee[_0x1dedfb(0x19a)](_0x1dedfb(0x1a3))):(console[_0x1dedfb(0x1a1)]('\x20\x20'+_0x2d224d[_0x1dedfb(0x18d)](0x11)+'\x20'+a92_0x1136ee['red'](_0x1dedfb(0x18e))),console[_0x1dedfb(0x1a1)]('\x20\x20'+''[_0x1dedfb(0x18d)](0x11)+'\x20'+a92_0x1136ee[_0x1dedfb(0x190)](_0xfb7014[_0x1dedfb(0x1a6)])));}};_0x2188cb(_0x38a84c(0x165),_0x54cd02),_0x2188cb(_0x38a84c(0x18b),_0x2aea5f),console[_0x38a84c(0x1a1)](),console[_0x38a84c(0x1a1)](a92_0x1136ee['bold']('\x20\x20Merged\x20Config')),console[_0x38a84c(0x1a1)](a92_0x1136ee[_0x38a84c(0x19a)](_0x38a84c(0x1b1)[_0x38a84c(0x1b0)](0x1e))),console['log'](_0x38a84c(0x1a4)+(_0x4174d4[_0x38a84c(0x185)]||a92_0x1136ee[_0x38a84c(0x190)](_0x38a84c(0x176)))),console[_0x38a84c(0x1a1)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4174d4[_0x38a84c(0x1b2)]),console[_0x38a84c(0x1a1)](_0x38a84c(0x1a9)+_0x4174d4[_0x38a84c(0x17a)]),console['log']('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4174d4['apiDir']),console['log'](_0x38a84c(0x174)+(_0x4174d4[_0x38a84c(0x1a8)]||a92_0x1136ee[_0x38a84c(0x19a)](_0x38a84c(0x17c)))),console[_0x38a84c(0x1a1)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x4174d4['currentApp']||a92_0x1136ee[_0x38a84c(0x19a)]('(none)'))),console[_0x38a84c(0x1a1)](_0x38a84c(0x181)+(_0x4174d4[_0x38a84c(0x1b9)]||a92_0x1136ee['gray'](_0x38a84c(0x17c)))),console['log']('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4174d4[_0x38a84c(0x186)]||a92_0x1136ee[_0x38a84c(0x19a)](_0x38a84c(0x1af)+DEFAULT_CONFIG_VALUES[_0x38a84c(0x186)]+')'))),console['log'](_0x38a84c(0x18a)+(_0x4174d4[_0x38a84c(0x19c)]??a92_0x1136ee['gray'](_0x38a84c(0x1a0)))),console[_0x38a84c(0x1a1)](_0x38a84c(0x1bb)+_0x4174d4['riskLevel']),console[_0x38a84c(0x1a1)](_0x38a84c(0x189)+_0x4174d4[_0x38a84c(0x17b)]),console[_0x38a84c(0x1a1)](_0x38a84c(0x180)+(_0x4174d4[_0x38a84c(0x191)]?a92_0x1136ee[_0x38a84c(0x1a5)](_0x38a84c(0x182)+_0x4174d4[_0x38a84c(0x191)]['length']+')'):_0x123e40?a92_0x1136ee[_0x38a84c(0x1a5)](_0x38a84c(0x17f)+_0x123e40[_0x38a84c(0x177)]+')'):a92_0x1136ee['gray'](_0x38a84c(0x17c))));const _0x1a1dc2=Object[_0x38a84c(0x175)](_0x4174d4[_0x38a84c(0x19f)]);if(_0x1a1dc2[_0x38a84c(0x177)]>0x0){console[_0x38a84c(0x1a1)](),console[_0x38a84c(0x1a1)](a92_0x1136ee['bold']('\x20\x20Apps')),console['log'](a92_0x1136ee['gray'](_0x38a84c(0x1b1)['repeat'](0x1e)));for(const _0xb3733d of _0x1a1dc2){const _0x13d776=_0x4174d4[_0x38a84c(0x19f)][_0xb3733d],_0x1f7398=_0xb3733d===_0x4174d4['defaultApp'],_0x4a8dc5=_0xb3733d===_0x4174d4[_0x38a84c(0x192)],_0x17f46c=_0x4a8dc5?a92_0x1136ee[_0x38a84c(0x1a5)](_0x38a84c(0x1b5)):'',_0x1c91cb=_0x1f7398?_0x38a84c(0x1ad):'';console[_0x38a84c(0x1a1)]('\x20\x20'+_0xb3733d+_0x1c91cb+_0x17f46c),console[_0x38a84c(0x1a1)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x13d776[_0x38a84c(0x16d)]);const _0xb8f425=buildAppDoctorFields(_0x13d776,{'env':_0x4174d4[_0x38a84c(0x1b2)],'apiDir':_0x4174d4['raw'][_0x38a84c(0x172)]||DEFAULT_CONFIG_VALUES[_0x38a84c(0x172)],'cookie':_0x4174d4['cookie']||_0x123e40||undefined,'accessKey':_0x4174d4[_0x38a84c(0x170)]});console[_0x38a84c(0x1a1)](_0x38a84c(0x1ab)+_0xb8f425[_0x38a84c(0x1b2)][_0x38a84c(0x17d)]+'\x20\x20'+a92_0x1136ee[_0x38a84c(0x19a)]('('+_0xb8f425[_0x38a84c(0x1b2)][_0x38a84c(0x19d)]+')')),console['log'](_0x38a84c(0x1a2)+_0xb8f425[_0x38a84c(0x172)]['value']+'\x20\x20'+a92_0x1136ee[_0x38a84c(0x19a)]('('+_0xb8f425[_0x38a84c(0x172)]['source']+')'));const _0xd5cd58=_0xb8f425['cookie'][_0x38a84c(0x17d)]?a92_0x1136ee[_0x38a84c(0x1a5)](_0x38a84c(0x182)+_0xb8f425['cookie']['value'][_0x38a84c(0x177)]+')'):a92_0x1136ee[_0x38a84c(0x19a)](_0x38a84c(0x17c));console[_0x38a84c(0x1a1)](_0x38a84c(0x18c)+_0xd5cd58+'\x20\x20'+a92_0x1136ee[_0x38a84c(0x19a)]('('+_0xb8f425[_0x38a84c(0x191)][_0x38a84c(0x19d)]+')'));const _0x437315=_0xb8f425[_0x38a84c(0x170)][_0x38a84c(0x17d)]?a92_0x1136ee[_0x38a84c(0x1a5)]('(set,\x20length='+_0xb8f425[_0x38a84c(0x170)][_0x38a84c(0x17d)][_0x38a84c(0x177)]+')'):a92_0x1136ee['gray'](_0x38a84c(0x17c));console[_0x38a84c(0x1a1)](_0x38a84c(0x168)+_0x437315+'\x20\x20'+a92_0x1136ee[_0x38a84c(0x19a)]('('+_0xb8f425[_0x38a84c(0x170)][_0x38a84c(0x19d)]+')'));}}console[_0x38a84c(0x1a1)](),console[_0x38a84c(0x1a1)](a92_0x1136ee[_0x38a84c(0x197)](_0x38a84c(0x16c))),console[_0x38a84c(0x1a1)](a92_0x1136ee[_0x38a84c(0x19a)]('\x20\x20─'[_0x38a84c(0x1b0)](0x1e))),console[_0x38a84c(0x1a1)](_0x38a84c(0x195)+getApiDomain()),console[_0x38a84c(0x1a1)](_0x38a84c(0x1aa)+getUserDomain()),console[_0x38a84c(0x1a1)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x38a84c(0x1a1)](),console[_0x38a84c(0x1a1)](a92_0x1136ee['bold'](_0x38a84c(0x1b3))),console[_0x38a84c(0x1a1)](a92_0x1136ee[_0x38a84c(0x19a)](_0x38a84c(0x1b1)[_0x38a84c(0x1b0)](0x1e)));if(_0x123e40){const _0x5f39b6=await getIsSessionValid();console[_0x38a84c(0x1a1)](_0x38a84c(0x171)+(_0x5f39b6?a92_0x1136ee[_0x38a84c(0x1a5)](_0x38a84c(0x173)):a92_0x1136ee['red']('✗\x20Expired')));}else console[_0x38a84c(0x1a1)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a92_0x1136ee[_0x38a84c(0x190)]('✗\x20Not\x20logged\x20in'));return console['log'](),{'ok':!![]};}function a92_0x26ca(_0x2f4a7f,_0x340580){_0x2f4a7f=_0x2f4a7f-0x165;const _0x4f0339=a92_0x4f03();let _0x26cade=_0x4f0339[_0x2f4a7f];return _0x26cade;}export const doctorDefinition={'service':a92_0x2d7cf4(0x196),'command':'check','description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a92_0x2d7cf4(0x167),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};