@lovrabet/rabetbase-cli 2.3.3 → 2.3.4-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 (220) hide show
  1. package/README.md +99 -560
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/add.js +1 -1
  21. package/lib/commands/app/discover.js +1 -1
  22. package/lib/commands/app/index.js +1 -1
  23. package/lib/commands/app/list.js +1 -1
  24. package/lib/commands/app/remove.js +1 -1
  25. package/lib/commands/app/shared.js +1 -1
  26. package/lib/commands/app-config/delete.js +1 -1
  27. package/lib/commands/app-config/get.js +1 -1
  28. package/lib/commands/app-config/index.js +1 -1
  29. package/lib/commands/app-config/list.js +1 -1
  30. package/lib/commands/app-config/set.js +1 -1
  31. package/lib/commands/app-config/shared.js +1 -1
  32. package/lib/commands/auth/index.js +1 -1
  33. package/lib/commands/bff/create.js +1 -1
  34. package/lib/commands/bff/delete.js +1 -1
  35. package/lib/commands/bff/detail.js +1 -1
  36. package/lib/commands/bff/index.js +1 -1
  37. package/lib/commands/bff/list.js +1 -1
  38. package/lib/commands/bff/pull.js +1 -1
  39. package/lib/commands/bff/push.js +1 -1
  40. package/lib/commands/bff/status.js +1 -1
  41. package/lib/commands/cli-skill/index.js +1 -1
  42. package/lib/commands/cli-update.js +1 -1
  43. package/lib/commands/codegen/index.js +1 -1
  44. package/lib/commands/codegen/sdk.js +1 -1
  45. package/lib/commands/codegen/sql.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/flags.js +1 -1
  48. package/lib/commands/common/validate.js +1 -1
  49. package/lib/commands/config/get.js +1 -1
  50. package/lib/commands/config/index.js +1 -1
  51. package/lib/commands/config/list.js +1 -1
  52. package/lib/commands/config/set.js +1 -1
  53. package/lib/commands/config/shared.js +1 -1
  54. package/lib/commands/data/filter.js +1 -1
  55. package/lib/commands/data/getOne.js +1 -1
  56. package/lib/commands/data/index.js +1 -1
  57. package/lib/commands/data/shared.js +1 -1
  58. package/lib/commands/dataset/business-group-update.js +1 -1
  59. package/lib/commands/dataset/capability.js +1 -1
  60. package/lib/commands/dataset/delete.js +1 -1
  61. package/lib/commands/dataset/detail.js +1 -1
  62. package/lib/commands/dataset/extend-update.js +1 -1
  63. package/lib/commands/dataset/field-update.js +1 -1
  64. package/lib/commands/dataset/generate.js +1 -1
  65. package/lib/commands/dataset/index.js +1 -1
  66. package/lib/commands/dataset/list.js +1 -1
  67. package/lib/commands/dataset/operations.js +1 -1
  68. package/lib/commands/dataset/relation-audit.js +1 -1
  69. package/lib/commands/dataset/relation-create.js +1 -1
  70. package/lib/commands/dataset/relation-delete.js +1 -1
  71. package/lib/commands/dataset/relation-shared.js +1 -1
  72. package/lib/commands/dataset/relation-update.js +1 -1
  73. package/lib/commands/dataset/relations.js +1 -1
  74. package/lib/commands/dataset/rename.js +1 -1
  75. package/lib/commands/dataset/restore.js +1 -1
  76. package/lib/commands/db/analyze-cancel.js +1 -1
  77. package/lib/commands/db/analyze-start.js +1 -1
  78. package/lib/commands/db/analyze-status.js +1 -1
  79. package/lib/commands/db/create.js +1 -1
  80. package/lib/commands/db/delete.js +1 -1
  81. package/lib/commands/db/detail.js +1 -1
  82. package/lib/commands/db/diff.js +1 -1
  83. package/lib/commands/db/index.js +1 -1
  84. package/lib/commands/db/list.js +1 -1
  85. package/lib/commands/db/shared.js +1 -1
  86. package/lib/commands/db/tables.js +1 -1
  87. package/lib/commands/db/test.js +1 -1
  88. package/lib/commands/db/update.js +1 -1
  89. package/lib/commands/doctor.js +1 -1
  90. package/lib/commands/init/index.js +1 -1
  91. package/lib/commands/issue/index.js +1 -1
  92. package/lib/commands/issue/nudge.js +1 -1
  93. package/lib/commands/issue/report.js +1 -1
  94. package/lib/commands/issue/shared.js +1 -1
  95. package/lib/commands/logs/index.js +1 -1
  96. package/lib/commands/menu/index.js +1 -1
  97. package/lib/commands/menu/list.js +1 -1
  98. package/lib/commands/menu/shared/compare-table.js +1 -1
  99. package/lib/commands/menu/shared/index.js +1 -1
  100. package/lib/commands/menu/shared/inquirer.js +1 -1
  101. package/lib/commands/menu/shared/local-pages.js +1 -1
  102. package/lib/commands/menu/shared/logic.js +1 -1
  103. package/lib/commands/menu/shared/service.js +1 -1
  104. package/lib/commands/menu/shared/sync-core.js +1 -1
  105. package/lib/commands/menu/shared/update-core.js +1 -1
  106. package/lib/commands/menu/shared/valid-url.js +1 -1
  107. package/lib/commands/menu/sync.js +1 -1
  108. package/lib/commands/menu/update.js +1 -1
  109. package/lib/commands/page/generate-start.js +1 -1
  110. package/lib/commands/page/generate-status.js +1 -1
  111. package/lib/commands/page/index.js +1 -1
  112. package/lib/commands/page/pull.js +1 -1
  113. package/lib/commands/page/push.js +1 -1
  114. package/lib/commands/page/relation-audit.js +1 -1
  115. package/lib/commands/page/shared.js +1 -1
  116. package/lib/commands/page/standard-page-status.js +1 -1
  117. package/lib/commands/page/sync.js +1 -1
  118. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  119. package/lib/commands/project/create/format-elapsed.js +1 -1
  120. package/lib/commands/project/create/main.js +1 -1
  121. package/lib/commands/project/create/non-interactive.js +1 -1
  122. package/lib/commands/project/create/project-template-path.js +1 -1
  123. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  124. package/lib/commands/project/create/use-format-code.js +1 -1
  125. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  126. package/lib/commands/project/index.js +1 -1
  127. package/lib/commands/project/init.js +1 -1
  128. package/lib/commands/project/upgrade.js +1 -1
  129. package/lib/commands/registry.js +1 -1
  130. package/lib/commands/run/index.js +1 -1
  131. package/lib/commands/schema.js +1 -1
  132. package/lib/commands/sql/create.js +1 -1
  133. package/lib/commands/sql/delete.js +1 -1
  134. package/lib/commands/sql/detail.js +1 -1
  135. package/lib/commands/sql/exec.js +1 -1
  136. package/lib/commands/sql/index.js +1 -1
  137. package/lib/commands/sql/list.js +1 -1
  138. package/lib/commands/sql/pull.js +1 -1
  139. package/lib/commands/sql/push.js +1 -1
  140. package/lib/commands/sql/save.js +1 -1
  141. package/lib/commands/sql/shared.js +1 -1
  142. package/lib/commands/sql/status.js +1 -1
  143. package/lib/commands/sql/validate.js +1 -1
  144. package/lib/commands/workspace/index.js +1 -1
  145. package/lib/config/schema.js +1 -1
  146. package/lib/constant/cdn.js +1 -1
  147. package/lib/constant/cli.js +1 -1
  148. package/lib/constant/defaults.js +1 -1
  149. package/lib/constant/domain.js +1 -1
  150. package/lib/constant/env.js +1 -1
  151. package/lib/constant/output.js +1 -1
  152. package/lib/constant/paths.js +1 -1
  153. package/lib/constant/risk.js +1 -1
  154. package/lib/context/app-resolver.js +1 -1
  155. package/lib/context/auth-resolver.js +1 -1
  156. package/lib/context/config-loader.js +1 -1
  157. package/lib/context.js +1 -1
  158. package/lib/core/alias-resolver.js +1 -1
  159. package/lib/core/api-client.js +1 -1
  160. package/lib/core/bff/config.js +1 -1
  161. package/lib/core/bff/file-system.js +1 -1
  162. package/lib/core/bff/hash.js +1 -1
  163. package/lib/core/bff/lock.js +1 -1
  164. package/lib/core/bff/utils.js +1 -1
  165. package/lib/core/db-resolver.js +1 -1
  166. package/lib/core/page/file-system.js +1 -1
  167. package/lib/core/page/hash.js +1 -1
  168. package/lib/core/page/lock.js +1 -1
  169. package/lib/core/sql-sync/config.js +1 -1
  170. package/lib/core/sql-sync/file-system.js +1 -1
  171. package/lib/core/sql-sync/hash.js +1 -1
  172. package/lib/core/sql-sync/lock.js +1 -1
  173. package/lib/core/sql-sync/utils.js +1 -1
  174. package/lib/core/sql-validator.js +1 -1
  175. package/lib/errors.js +1 -1
  176. package/lib/framework/build-all-flags.js +1 -1
  177. package/lib/framework/flags.js +1 -1
  178. package/lib/framework/help.js +1 -1
  179. package/lib/framework/index.js +1 -1
  180. package/lib/framework/output.js +1 -1
  181. package/lib/framework/response.js +1 -1
  182. package/lib/framework/runner-alias.js +1 -1
  183. package/lib/framework/runner.js +1 -1
  184. package/lib/framework/schema-export.js +1 -1
  185. package/lib/framework/types.js +1 -1
  186. package/lib/generated/build-info.js +1 -1
  187. package/lib/help.js +1 -1
  188. package/lib/skills/main.js +1 -1
  189. package/lib/skills/npx-skills-add.js +1 -1
  190. package/lib/telemetry/cli-command-trace.js +1 -1
  191. package/lib/telemetry/cli-help-trace.js +1 -1
  192. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  193. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  194. package/lib/telemetry/send-cli-trace-log.js +1 -1
  195. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  196. package/lib/utils/ai_config.js +1 -1
  197. package/lib/utils/apply-jq-filter.js +1 -1
  198. package/lib/utils/cdn-config.js +1 -1
  199. package/lib/utils/check-sdk-version.js +1 -1
  200. package/lib/utils/cli-version-check.js +1 -1
  201. package/lib/utils/cli-version-policy.js +1 -1
  202. package/lib/utils/config.js +1 -1
  203. package/lib/utils/copy-directory.js +1 -1
  204. package/lib/utils/entity-with-id.js +1 -1
  205. package/lib/utils/file-utils.js +1 -1
  206. package/lib/utils/guides-cdn.js +1 -1
  207. package/lib/utils/http-client.js +1 -1
  208. package/lib/utils/is-non-interactive.js +1 -1
  209. package/lib/utils/logger.js +1 -1
  210. package/lib/utils/params.js +1 -1
  211. package/lib/utils/platform.js +1 -1
  212. package/lib/utils/rules-cdn.js +1 -1
  213. package/lib/utils/sleep.js +1 -1
  214. package/lib/utils/template-replacer.js +1 -1
  215. package/lib/utils/update-notice.js +1 -1
  216. package/lib/utils/version.js +1 -1
  217. package/lib/utils/with-active-cookie.js +1 -1
  218. package/lib/utils/write-cli-side-channel.js +1 -1
  219. package/package.json +19 -3
  220. package/lib/commands/app/use.js +0 -1
@@ -1 +1 @@
1
- const a74_0x250d8b=a74_0x3b56;(function(_0x1f419f,_0x4b9dca){const _0x193da5=a74_0x3b56,_0x3394a5=_0x1f419f();while(!![]){try{const _0x298c6b=parseInt(_0x193da5(0xf9))/0x1*(-parseInt(_0x193da5(0x10d))/0x2)+parseInt(_0x193da5(0x124))/0x3+parseInt(_0x193da5(0x113))/0x4+parseInt(_0x193da5(0x103))/0x5*(parseInt(_0x193da5(0x10e))/0x6)+parseInt(_0x193da5(0x111))/0x7+-parseInt(_0x193da5(0x10a))/0x8*(parseInt(_0x193da5(0x117))/0x9)+-parseInt(_0x193da5(0x107))/0xa;if(_0x298c6b===_0x4b9dca)break;else _0x3394a5['push'](_0x3394a5['shift']());}catch(_0x5d4c81){_0x3394a5['push'](_0x3394a5['shift']());}}}(a74_0x12b9,0xc2a24));import{listDatasets,restoreDataset}from'../../core/api-client.js';function a74_0x12b9(){const _0x147d2f=['\x20dataset(s)','bool','appCode','num','dbId','source','No\x20deleted\x20dataset\x20found\x20for\x20','relationPages','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','5cWXUnW','restore','expected-count','validation','7404000etdCLe','\x20deleted\x20dataset(s)\x20and\x20related\x20deleted\x20page/menu\x20records.','Matched\x20','8CbiZou','code','Restored\x20','5342wmnhsY','6721950OgcGdN','description','high-risk-write','3529183uhPDVm','number','3109992LWdUzw','isArray','push','tableName','6319134YRAlTj','/smartapi/dataset/restore-dataset','boolean','confirm','str','Required\x20to\x20execute\x20dataset\x20restore','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','dbtableConfig','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','\x20failed','filter','name','dbid','1059771xaKDJk','id=','--confirm\x20is\x20required\x20to\x20restore\x20datasets.','Dataset\x20id','Restore\x20all\x20deleted\x20datasets\x20under\x20this\x20database\x20connection\x20id','map','length','193SNGlCu'];a74_0x12b9=function(){return _0x147d2f;};return a74_0x12b9();}function a74_0x3b56(_0x7448d5,_0x43a81){_0x7448d5=_0x7448d5-0xf3;const _0x12b9b0=a74_0x12b9();let _0x3b5654=_0x12b9b0[_0x7448d5];return _0x3b5654;}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const DATASET_ID_FLAG={'name':'id','type':a74_0x250d8b(0x112),'description':a74_0x250d8b(0xf5)},DBID_FLAG={'name':a74_0x250d8b(0x123),'type':a74_0x250d8b(0x112),'description':a74_0x250d8b(0xf6)},CONFIRM_FLAG={'name':a74_0x250d8b(0x11a),'type':a74_0x250d8b(0x119),'description':a74_0x250d8b(0x11c)},EXPECTED_COUNT_FLAG={'name':a74_0x250d8b(0x105),'type':'number','description':a74_0x250d8b(0x11d)};export const datasetRestore={'service':'dataset','command':a74_0x250d8b(0x104),'description':'Restore\x20deleted\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20deleted\x20datasets\x20under\x20a\x20db\x20id','risk':a74_0x250d8b(0x110),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x7a9017){const _0x421e90=a74_0x250d8b,_0x595255=_0x7a9017[_0x421e90(0xfd)]('id'),_0x24ceaa=_0x7a9017[_0x421e90(0x11b)](_0x421e90(0x10b)),_0x482347=_0x7a9017['num'](_0x421e90(0x123)),_0x55dda=[_0x595255>0x0,Boolean(_0x24ceaa),_0x482347>0x0][_0x421e90(0x121)](Boolean);if(_0x55dda[_0x421e90(0xf8)]===0x0)throw CliErrors[_0x421e90(0x106)]('One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.');if(_0x55dda[_0x421e90(0xf8)]>0x1)throw CliErrors[_0x421e90(0x106)](_0x421e90(0x102));},async 'dryRun'(_0xfa3805){const _0x4c48f2=a74_0x250d8b,_0x18fa44=await resolveTargets(_0xfa3805);return{'method':'POST','url':_0x4c48f2(0x118),'body':{'appCode':_0xfa3805[_0x4c48f2(0xfc)],'count':_0x18fa44[_0x4c48f2(0xf8)],'datasets':_0x18fa44},'description':'Would\x20restore\x20'+_0x18fa44[_0x4c48f2(0xf8)]+_0x4c48f2(0x108)};},async 'execute'(_0x14a6ed){const _0x5e341d=a74_0x250d8b;if(!_0x14a6ed[_0x5e341d(0xfb)](_0x5e341d(0x11a)))throw CliErrors[_0x5e341d(0x106)](_0x5e341d(0xf4),_0x5e341d(0x11f));const _0xbf4347=await resolveTargets(_0x14a6ed),_0x183559=[],_0x2a5d64=[];for(const _0x5dea0f of _0xbf4347){try{await restoreDataset(_0x14a6ed[_0x5e341d(0xfc)],_0x5dea0f['id']),_0x183559[_0x5e341d(0x115)](_0x5dea0f);}catch(_0x4020e2){_0x2a5d64[_0x5e341d(0x115)]({..._0x5dea0f,'error':_0x4020e2 instanceof Error?_0x4020e2['message']:String(_0x4020e2)});}}if(_0x2a5d64[_0x5e341d(0xf8)]>0x0)return{'ok':![],'data':{'requested':_0xbf4347['length'],'restoredCount':_0x183559[_0x5e341d(0xf8)],'failedCount':_0x2a5d64[_0x5e341d(0xf8)],'restored':_0x183559,'failed':_0x2a5d64},'message':_0x5e341d(0x10c)+_0x183559[_0x5e341d(0xf8)]+'/'+_0xbf4347[_0x5e341d(0xf8)]+'\x20dataset(s);\x20'+_0x2a5d64[_0x5e341d(0xf8)]+_0x5e341d(0x120)};return{'ok':!![],'data':{'requested':_0xbf4347[_0x5e341d(0xf8)],'restoredCount':_0x183559[_0x5e341d(0xf8)],'restored':_0x183559},'message':_0x5e341d(0x10c)+_0x183559['length']+_0x5e341d(0xfa)};}};async function resolveTargets(_0x4229d9){const _0x301aeb=a74_0x250d8b,_0xa6987b=_0x4229d9[_0x301aeb(0xfd)]('id'),_0x29344f=_0x4229d9[_0x301aeb(0x11b)](_0x301aeb(0x10b)),_0x1dc5ad=_0x4229d9['num'](_0x301aeb(0x123));let _0x8d6da2;_0x29344f?(_0x8d6da2=await listDatasets(_0x4229d9[_0x301aeb(0xfc)],{'code':_0x29344f,'deleted':!![]}),_0x8d6da2=_0x8d6da2[_0x301aeb(0x121)](_0x270a38=>_0x270a38[_0x301aeb(0x10b)]===_0x29344f)):(_0x8d6da2=await listDatasets(_0x4229d9['appCode'],{'deleted':!![]}),_0xa6987b>0x0&&(_0x8d6da2=_0x8d6da2['filter'](_0x38bd41=>_0x38bd41['id']===_0xa6987b)),_0x1dc5ad>0x0&&(_0x8d6da2=_0x8d6da2[_0x301aeb(0x121)](_0x2b0045=>_0x2b0045[_0x301aeb(0x11e)]?.[_0x301aeb(0xfe)]===_0x1dc5ad)));const _0x2bf809=_0x8d6da2[_0x301aeb(0xf7)](normalizeTarget);if(_0x2bf809[_0x301aeb(0xf8)]===0x0){const _0xfdfddb=_0x29344f||(_0xa6987b>0x0?_0x301aeb(0xf3)+_0xa6987b:'dbid='+_0x1dc5ad);throw CliErrors[_0x301aeb(0x106)](_0x301aeb(0x100)+_0xfdfddb+'.');}const _0x27871d=_0x4229d9[_0x301aeb(0xfd)](_0x301aeb(0x105));if(_0x27871d>0x0&&_0x2bf809['length']!==_0x27871d)throw CliErrors[_0x301aeb(0x106)](_0x301aeb(0x109)+_0x2bf809['length']+'\x20dataset(s),\x20but\x20--expected-count\x20is\x20'+_0x27871d+'.');return _0x2bf809;}function normalizeTarget(_0x1c0318){const _0x4d63fd=a74_0x250d8b,_0x1e03ab=_0x1c0318[_0x4d63fd(0x11e)]??{};return{'id':_0x1c0318['id'],'code':_0x1c0318['code'],'name':_0x1c0318[_0x4d63fd(0x122)],'description':_0x1c0318[_0x4d63fd(0x10f)],'source':_0x1c0318[_0x4d63fd(0xff)],'dbId':_0x1e03ab['dbId'],'dbName':_0x1e03ab['dbName'],'tableName':_0x1e03ab[_0x4d63fd(0x116)],'relatedPageCount':Array[_0x4d63fd(0x114)](_0x1c0318[_0x4d63fd(0x101)])?_0x1c0318[_0x4d63fd(0x101)][_0x4d63fd(0xf8)]:undefined};}
1
+ const a73_0x168d15=a73_0x2aca;(function(_0x57c745,_0x475c79){const _0x4e461e=a73_0x2aca,_0x2f3fc0=_0x57c745();while(!![]){try{const _0x1074e4=-parseInt(_0x4e461e(0x9d))/0x1+-parseInt(_0x4e461e(0xb0))/0x2+parseInt(_0x4e461e(0x90))/0x3*(-parseInt(_0x4e461e(0x97))/0x4)+parseInt(_0x4e461e(0xbb))/0x5+-parseInt(_0x4e461e(0xb2))/0x6*(parseInt(_0x4e461e(0x99))/0x7)+parseInt(_0x4e461e(0x92))/0x8+parseInt(_0x4e461e(0xaa))/0x9;if(_0x1074e4===_0x475c79)break;else _0x2f3fc0['push'](_0x2f3fc0['shift']());}catch(_0x4c5e12){_0x2f3fc0['push'](_0x2f3fc0['shift']());}}}(a73_0x4e01,0x6a5b0));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';function a73_0x2aca(_0x34fe7e,_0x47238f){_0x34fe7e=_0x34fe7e-0x90;const _0x4e01f1=a73_0x4e01();let _0x2acae7=_0x4e01f1[_0x34fe7e];return _0x2acae7;}function a73_0x4e01(){const _0x2ecb72=['764EuLCip','Matched\x20','371comVHk','Restore\x20all\x20deleted\x20datasets\x20under\x20this\x20database\x20connection\x20id','confirm','dbtableConfig','243449WNaXUE','filter','dbid=','bool','code','/smartapi/dataset/restore-dataset','description','relationPages','dbid','expected-count','str','dbId','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','4409154kDfAHV','POST','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','Restored\x20','isArray','\x20dataset(s);\x20','418072ojEAKy','push','38730JYBIEk','tableName','num','Would\x20restore\x20','source','appCode','message','dbName','validation','2923075JncHhi','No\x20deleted\x20dataset\x20found\x20for\x20','8784uQaTNW','number','5719672gCxmOz','Required\x20to\x20execute\x20dataset\x20restore','Dataset\x20id','\x20deleted\x20dataset(s)\x20and\x20related\x20deleted\x20page/menu\x20records.','length'];a73_0x4e01=function(){return _0x2ecb72;};return a73_0x4e01();}const DATASET_ID_FLAG={'name':'id','type':a73_0x168d15(0x91),'description':a73_0x168d15(0x94)},DBID_FLAG={'name':'dbid','type':a73_0x168d15(0x91),'description':a73_0x168d15(0x9a)},CONFIRM_FLAG={'name':a73_0x168d15(0x9b),'type':'boolean','description':a73_0x168d15(0x93)},EXPECTED_COUNT_FLAG={'name':'expected-count','type':'number','description':'Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value'};export const datasetRestore={'service':'dataset','command':'restore','description':'Restore\x20deleted\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20deleted\x20datasets\x20under\x20a\x20db\x20id','risk':'high-risk-write','flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x32711d){const _0x3781b0=a73_0x168d15,_0x36bf8d=_0x32711d[_0x3781b0(0xb4)]('id'),_0xac9b4c=_0x32711d[_0x3781b0(0xa7)](_0x3781b0(0xa1)),_0x94ec02=_0x32711d[_0x3781b0(0xb4)](_0x3781b0(0xa5)),_0x1f6802=[_0x36bf8d>0x0,Boolean(_0xac9b4c),_0x94ec02>0x0][_0x3781b0(0x9e)](Boolean);if(_0x1f6802[_0x3781b0(0x96)]===0x0)throw CliErrors['validation']('One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.');if(_0x1f6802[_0x3781b0(0x96)]>0x1)throw CliErrors[_0x3781b0(0xba)]('Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.');},async 'dryRun'(_0x5582b6){const _0xe5e7c1=a73_0x168d15,_0x1729a7=await resolveTargets(_0x5582b6);return{'method':_0xe5e7c1(0xab),'url':_0xe5e7c1(0xa2),'body':{'appCode':_0x5582b6[_0xe5e7c1(0xb7)],'count':_0x1729a7[_0xe5e7c1(0x96)],'datasets':_0x1729a7},'description':_0xe5e7c1(0xb5)+_0x1729a7[_0xe5e7c1(0x96)]+_0xe5e7c1(0x95)};},async 'execute'(_0x3fdcf6){const _0x37c05d=a73_0x168d15;if(!_0x3fdcf6[_0x37c05d(0xa0)](_0x37c05d(0x9b)))throw CliErrors['validation']('--confirm\x20is\x20required\x20to\x20restore\x20datasets.',_0x37c05d(0xac));const _0xa59f3d=await resolveTargets(_0x3fdcf6),_0x192f00=[],_0x4bec7c=[];for(const _0x3671bd of _0xa59f3d){try{await restoreDataset(_0x3fdcf6[_0x37c05d(0xb7)],_0x3671bd['id']),_0x192f00[_0x37c05d(0xb1)](_0x3671bd);}catch(_0x5e7a7a){_0x4bec7c[_0x37c05d(0xb1)]({..._0x3671bd,'error':_0x5e7a7a instanceof Error?_0x5e7a7a[_0x37c05d(0xb8)]:String(_0x5e7a7a)});}}if(_0x4bec7c[_0x37c05d(0x96)]>0x0)return{'ok':![],'data':{'requested':_0xa59f3d[_0x37c05d(0x96)],'restoredCount':_0x192f00[_0x37c05d(0x96)],'failedCount':_0x4bec7c[_0x37c05d(0x96)],'restored':_0x192f00,'failed':_0x4bec7c},'message':_0x37c05d(0xad)+_0x192f00[_0x37c05d(0x96)]+'/'+_0xa59f3d[_0x37c05d(0x96)]+_0x37c05d(0xaf)+_0x4bec7c[_0x37c05d(0x96)]+'\x20failed'};return{'ok':!![],'data':{'requested':_0xa59f3d[_0x37c05d(0x96)],'restoredCount':_0x192f00['length'],'restored':_0x192f00},'message':_0x37c05d(0xad)+_0x192f00['length']+'\x20dataset(s)'};}};async function resolveTargets(_0x2b873f){const _0x2fcfb4=a73_0x168d15,_0x25d728=_0x2b873f['num']('id'),_0x5d44d4=_0x2b873f[_0x2fcfb4(0xa7)](_0x2fcfb4(0xa1)),_0x386c6c=_0x2b873f[_0x2fcfb4(0xb4)](_0x2fcfb4(0xa5));let _0x23f4fe;_0x5d44d4?(_0x23f4fe=await listDatasets(_0x2b873f['appCode'],{'code':_0x5d44d4,'deleted':!![]}),_0x23f4fe=_0x23f4fe['filter'](_0x46794b=>_0x46794b[_0x2fcfb4(0xa1)]===_0x5d44d4)):(_0x23f4fe=await listDatasets(_0x2b873f['appCode'],{'deleted':!![]}),_0x25d728>0x0&&(_0x23f4fe=_0x23f4fe[_0x2fcfb4(0x9e)](_0x3c7603=>_0x3c7603['id']===_0x25d728)),_0x386c6c>0x0&&(_0x23f4fe=_0x23f4fe[_0x2fcfb4(0x9e)](_0x5e882d=>_0x5e882d[_0x2fcfb4(0x9c)]?.[_0x2fcfb4(0xa8)]===_0x386c6c)));const _0x3c4fb5=_0x23f4fe['map'](normalizeTarget);if(_0x3c4fb5[_0x2fcfb4(0x96)]===0x0){const _0x390aaf=_0x5d44d4||(_0x25d728>0x0?'id='+_0x25d728:_0x2fcfb4(0x9f)+_0x386c6c);throw CliErrors[_0x2fcfb4(0xba)](_0x2fcfb4(0xbc)+_0x390aaf+'.');}const _0xb45730=_0x2b873f[_0x2fcfb4(0xb4)](_0x2fcfb4(0xa6));if(_0xb45730>0x0&&_0x3c4fb5[_0x2fcfb4(0x96)]!==_0xb45730)throw CliErrors[_0x2fcfb4(0xba)](_0x2fcfb4(0x98)+_0x3c4fb5[_0x2fcfb4(0x96)]+_0x2fcfb4(0xa9)+_0xb45730+'.');return _0x3c4fb5;}function normalizeTarget(_0x1b94d7){const _0x1c862a=a73_0x168d15,_0x2cf18c=_0x1b94d7[_0x1c862a(0x9c)]??{};return{'id':_0x1b94d7['id'],'code':_0x1b94d7[_0x1c862a(0xa1)],'name':_0x1b94d7['name'],'description':_0x1b94d7[_0x1c862a(0xa3)],'source':_0x1b94d7[_0x1c862a(0xb6)],'dbId':_0x2cf18c[_0x1c862a(0xa8)],'dbName':_0x2cf18c[_0x1c862a(0xb9)],'tableName':_0x2cf18c[_0x1c862a(0xb3)],'relatedPageCount':Array[_0x1c862a(0xae)](_0x1b94d7[_0x1c862a(0xa4)])?_0x1b94d7['relationPages'][_0x1c862a(0x96)]:undefined};}
@@ -1 +1 @@
1
- const a75_0x41038d=a75_0x3cea;(function(_0x373f7a,_0x4ffa30){const _0x36aca6=a75_0x3cea,_0x19092d=_0x373f7a();while(!![]){try{const _0x275787=-parseInt(_0x36aca6(0x128))/0x1*(parseInt(_0x36aca6(0x129))/0x2)+-parseInt(_0x36aca6(0x12d))/0x3+-parseInt(_0x36aca6(0x125))/0x4*(parseInt(_0x36aca6(0x122))/0x5)+parseInt(_0x36aca6(0x121))/0x6+parseInt(_0x36aca6(0x12a))/0x7+parseInt(_0x36aca6(0x126))/0x8+-parseInt(_0x36aca6(0x124))/0x9;if(_0x275787===_0x4ffa30)break;else _0x19092d['push'](_0x19092d['shift']());}catch(_0x25cfae){_0x19092d['push'](_0x19092d['shift']());}}}(a75_0x53da,0x56e9d));import{cancelDbAnalysis,getDbLinkInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a75_0x3cea(_0x2ca31f,_0x5ee8a1){_0x2ca31f=_0x2ca31f-0x11e;const _0x53da88=a75_0x53da();let _0x3cea0b=_0x53da88[_0x2ca31f];return _0x3cea0b;}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a75_0x53da(){const _0x4f5c92=['1196769xBxGSR','latestAnalysisTraceId','plan','No\x20latestAnalysisTraceId\x20on\x20this\x20link.\x20Pass\x20--plan\x20<traceId>\x20from\x20db\x20list/detail.','num','analyze-cancel','write','2326260rLBGda','383710dnKHHR','string','2052900yrWmJJ','8GapyFR','4205640qxfutz','Cancel\x20requested\x20for\x20plan\x20','16PzmhnC','34130ZPUIxU','3472903wPnbxf','str','Analysis\x20may\x20already\x20be\x20finished\x20or\x20never\x20started.'];a75_0x53da=function(){return _0x4f5c92;};return a75_0x53da();}export const dbAnalyzeCancel={'service':'db','command':a75_0x41038d(0x11f),'description':'Cancel\x20a\x20running\x20schema\x20analysis.\x20Omit\x20--plan\x20to\x20use\x20latestAnalysisTraceId\x20from\x20the\x20link','risk':a75_0x41038d(0x120),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a75_0x41038d(0x12f),'type':a75_0x41038d(0x123),'description':'Analysis\x20plan\x20/\x20trace\x20id\x20(optional\x20—\x20defaults\x20to\x20latest\x20trace\x20from\x20db\x20list/detail)'}],async 'execute'(_0x19e8de){const _0x21a03c=a75_0x41038d,_0x1bac00=_0x19e8de[_0x21a03c(0x11e)]('id');let _0x105dfb=_0x19e8de[_0x21a03c(0x12b)]('plan')||undefined;if(!_0x105dfb){const _0x2fabf1=await getDbLinkInfo(_0x1bac00);_0x105dfb=_0x2fabf1[_0x21a03c(0x12e)]??undefined;if(!_0x105dfb)throw CliErrors['validation'](_0x21a03c(0x130),_0x21a03c(0x12c));}return await cancelDbAnalysis(_0x105dfb),{'ok':!![],'data':{'dbLinkId':_0x1bac00,'planId':_0x105dfb},'message':_0x21a03c(0x127)+_0x105dfb};}};
1
+ const a74_0x43bc53=a74_0x149e;function a74_0x4b5b(){const _0x19c840=['4651330ndcaaz','4646705CKFjwK','255182btDbAc','3253125DeylVQ','write','string','356647WsxpBH','Cancel\x20a\x20running\x20schema\x20analysis.\x20Omit\x20--plan\x20to\x20use\x20latestAnalysisTraceId\x20from\x20the\x20link','latestAnalysisTraceId','486524KKzdVq','5155740jxcedV','Cancel\x20requested\x20for\x20plan\x20','plan','Analysis\x20plan\x20/\x20trace\x20id\x20(optional\x20—\x20defaults\x20to\x20latest\x20trace\x20from\x20db\x20list/detail)','8LtFEXQ','validation','15wWPQZn','27ePYSQW','Analysis\x20may\x20already\x20be\x20finished\x20or\x20never\x20started.','No\x20latestAnalysisTraceId\x20on\x20this\x20link.\x20Pass\x20--plan\x20<traceId>\x20from\x20db\x20list/detail.','str'];a74_0x4b5b=function(){return _0x19c840;};return a74_0x4b5b();}(function(_0x38cbbb,_0x226e3a){const _0x5a3b84=a74_0x149e,_0x17037e=_0x38cbbb();while(!![]){try{const _0x1b0e05=parseInt(_0x5a3b84(0x1f3))/0x1+-parseInt(_0x5a3b84(0x204))/0x2+parseInt(_0x5a3b84(0x205))/0x3+-parseInt(_0x5a3b84(0x1f6))/0x4*(parseInt(_0x5a3b84(0x1fd))/0x5)+-parseInt(_0x5a3b84(0x1f7))/0x6+-parseInt(_0x5a3b84(0x203))/0x7*(parseInt(_0x5a3b84(0x1fb))/0x8)+parseInt(_0x5a3b84(0x1fe))/0x9*(parseInt(_0x5a3b84(0x202))/0xa);if(_0x1b0e05===_0x226e3a)break;else _0x17037e['push'](_0x17037e['shift']());}catch(_0x25b9f4){_0x17037e['push'](_0x17037e['shift']());}}}(a74_0x4b5b,0xc8660));import{cancelDbAnalysis,getDbLinkInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a74_0x149e(_0x590f49,_0x72c54f){_0x590f49=_0x590f49-0x1f3;const _0x4b5b6a=a74_0x4b5b();let _0x149eec=_0x4b5b6a[_0x590f49];return _0x149eec;}export const dbAnalyzeCancel={'service':'db','command':'analyze-cancel','description':a74_0x43bc53(0x1f4),'risk':a74_0x43bc53(0x206),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a74_0x43bc53(0x1f9),'type':a74_0x43bc53(0x207),'description':a74_0x43bc53(0x1fa)}],async 'execute'(_0x51074b){const _0x340a96=a74_0x43bc53,_0x21e5df=_0x51074b['num']('id');let _0x2822ba=_0x51074b[_0x340a96(0x201)]('plan')||undefined;if(!_0x2822ba){const _0x2eedb2=await getDbLinkInfo(_0x21e5df);_0x2822ba=_0x2eedb2[_0x340a96(0x1f5)]??undefined;if(!_0x2822ba)throw CliErrors[_0x340a96(0x1fc)](_0x340a96(0x200),_0x340a96(0x1ff));}return await cancelDbAnalysis(_0x2822ba),{'ok':!![],'data':{'dbLinkId':_0x21e5df,'planId':_0x2822ba},'message':_0x340a96(0x1f8)+_0x2822ba};}};
@@ -1 +1 @@
1
- const a76_0x19e2b4=a76_0x5061;(function(_0x243e33,_0x3d79c6){const _0x4d183f=a76_0x5061,_0x2cd11a=_0x243e33();while(!![]){try{const _0x344bba=parseInt(_0x4d183f(0xea))/0x1*(parseInt(_0x4d183f(0xdb))/0x2)+-parseInt(_0x4d183f(0xe7))/0x3+-parseInt(_0x4d183f(0xec))/0x4*(parseInt(_0x4d183f(0xe5))/0x5)+-parseInt(_0x4d183f(0xdd))/0x6+-parseInt(_0x4d183f(0xdc))/0x7+parseInt(_0x4d183f(0xdf))/0x8+parseInt(_0x4d183f(0xe2))/0x9;if(_0x344bba===_0x3d79c6)break;else _0x2cd11a['push'](_0x2cd11a['shift']());}catch(_0x25c4d0){_0x2cd11a['push'](_0x2cd11a['shift']());}}}(a76_0x4f53,0xd7209));import{startDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';function a76_0x5061(_0x1da4e4,_0x4ff42f){_0x1da4e4=_0x1da4e4-0xdb;const _0x4f53e0=a76_0x4f53();let _0x5061fa=_0x4f53e0[_0x1da4e4];return _0x5061fa;}export const dbAnalyzeStart={'service':'db','command':a76_0x19e2b4(0xe8),'description':a76_0x19e2b4(0xeb),'risk':'write','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':'tables','type':'string','description':'Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)'}],async 'execute'(_0x1a8a14){const _0x2a7954=a76_0x19e2b4,_0x44ceda=_0x1a8a14['num']('id'),_0x122f01=_0x1a8a14[_0x2a7954(0xde)](_0x2a7954(0xe3)),_0x46fdfb=_0x122f01?_0x122f01[_0x2a7954(0xe4)](',')[_0x2a7954(0xe0)](_0x1d5442=>_0x1d5442[_0x2a7954(0xe6)]())[_0x2a7954(0xe9)](Boolean):undefined,_0x294973=await startDbAnalysis(_0x44ceda,_0x46fdfb),_0x4ef4ac=buildDbPageLinks(_0x1a8a14['appCode'],_0x44ceda);return{'ok':!![],'data':{'dbLinkId':_0x44ceda,'planId':_0x294973,'tableNames':_0x46fdfb??[],..._0x4ef4ac?{'links':_0x4ef4ac}:{}},'message':_0x2a7954(0xe1)+_0x44ceda};}};function a76_0x4f53(){const _0x23a50f=['map','Started\x20analysis\x20for\x20db\x20link\x20','26125128TjMdEC','tables','split','60MHZWlB','trim','1065033aGxuSZ','analyze-start','filter','3269cuZZka','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','335532gbcPtY','826KlaBSk','9051392ubQPsl','9654168RVnNSE','str','7135704kjwAnQ'];a76_0x4f53=function(){return _0x23a50f;};return a76_0x4f53();}
1
+ const a75_0x5c9b83=a75_0x1268;(function(_0x40cd1d,_0x3d08a9){const _0x3c029c=a75_0x1268,_0x2d1fc5=_0x40cd1d();while(!![]){try{const _0x75e941=parseInt(_0x3c029c(0xce))/0x1+-parseInt(_0x3c029c(0xcd))/0x2*(-parseInt(_0x3c029c(0xcb))/0x3)+parseInt(_0x3c029c(0xd5))/0x4*(-parseInt(_0x3c029c(0xda))/0x5)+parseInt(_0x3c029c(0xd4))/0x6*(parseInt(_0x3c029c(0xd3))/0x7)+parseInt(_0x3c029c(0xd7))/0x8+-parseInt(_0x3c029c(0xd2))/0x9+-parseInt(_0x3c029c(0xcc))/0xa;if(_0x75e941===_0x3d08a9)break;else _0x2d1fc5['push'](_0x2d1fc5['shift']());}catch(_0x5fba05){_0x2d1fc5['push'](_0x2d1fc5['shift']());}}}(a75_0x3945,0x3cea2));import{startDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a75_0x3945(){const _0x1e0ec0=['trim','tables','5IVGhPS','write','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','string','798402UtufoY','2835970DzheJX','2QLCBVe','336238pvjtJB','num','str','map','2519586DoXexe','32613aTYVWm','132CdaVOR','1220000AEmzkQ','appCode','3305496rzQVqk'];a75_0x3945=function(){return _0x1e0ec0;};return a75_0x3945();}import{buildDbPageLinks}from'../../commands/db/shared.js';function a75_0x1268(_0x3bc811,_0x1965fd){_0x3bc811=_0x3bc811-0xcb;const _0x3945a8=a75_0x3945();let _0x126880=_0x3945a8[_0x3bc811];return _0x126880;}export const dbAnalyzeStart={'service':'db','command':'analyze-start','description':a75_0x5c9b83(0xdc),'risk':a75_0x5c9b83(0xdb),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':'tables','type':a75_0x5c9b83(0xdd),'description':'Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)'}],async 'execute'(_0x1a9550){const _0x227288=a75_0x5c9b83,_0xa77316=_0x1a9550[_0x227288(0xcf)]('id'),_0x329253=_0x1a9550[_0x227288(0xd0)](_0x227288(0xd9)),_0x261124=_0x329253?_0x329253['split'](',')[_0x227288(0xd1)](_0x2bbcd8=>_0x2bbcd8[_0x227288(0xd8)]())['filter'](Boolean):undefined,_0x42b591=await startDbAnalysis(_0xa77316,_0x261124),_0x20d586=buildDbPageLinks(_0x1a9550[_0x227288(0xd6)],_0xa77316);return{'ok':!![],'data':{'dbLinkId':_0xa77316,'planId':_0x42b591,'tableNames':_0x261124??[],..._0x20d586?{'links':_0x20d586}:{}},'message':'Started\x20analysis\x20for\x20db\x20link\x20'+_0xa77316};}};
@@ -1 +1 @@
1
- function a77_0x22ea(_0x10843a,_0x375ee7){_0x10843a=_0x10843a-0x1b2;const _0x5245a1=a77_0x5245();let _0x22eaf3=_0x5245a1[_0x10843a];return _0x22eaf3;}const a77_0x4e3025=a77_0x22ea;(function(_0x1f6fcc,_0x18130d){const _0x38e030=a77_0x22ea,_0x253602=_0x1f6fcc();while(!![]){try{const _0x43eb80=parseInt(_0x38e030(0x1b2))/0x1+parseInt(_0x38e030(0x1c1))/0x2*(parseInt(_0x38e030(0x1b5))/0x3)+parseInt(_0x38e030(0x1c0))/0x4+-parseInt(_0x38e030(0x1c2))/0x5*(parseInt(_0x38e030(0x1bf))/0x6)+-parseInt(_0x38e030(0x1b9))/0x7*(-parseInt(_0x38e030(0x1b6))/0x8)+parseInt(_0x38e030(0x1ba))/0x9+-parseInt(_0x38e030(0x1bc))/0xa;if(_0x43eb80===_0x18130d)break;else _0x253602['push'](_0x253602['shift']());}catch(_0x101580){_0x253602['push'](_0x253602['shift']());}}}(a77_0x5245,0x36882));function a77_0x5245(){const _0x570df0=['4992PgNwUu','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','analyze-status','1379rmXlUw','3632040rCyKGv','str','3745400JwYFsY','plan','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','3786qsqHZw','1401160ZWIQUU','8HylOSW','3145bjSZFj','113947rgMaMq','Analysis\x20status\x20for\x20','num','3057GisVJo'];a77_0x5245=function(){return _0x570df0;};return a77_0x5245();}import{getDbAnalysisStatus}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';export const dbAnalyzeStatus={'service':'db','command':a77_0x4e3025(0x1b8),'description':a77_0x4e3025(0x1b7),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a77_0x4e3025(0x1bd),'type':'string','required':!![],'description':a77_0x4e3025(0x1be)}],async 'execute'(_0x175a14){const _0x183a1f=a77_0x4e3025,_0x231308=_0x175a14[_0x183a1f(0x1b4)]('id'),_0x3c0afc=_0x175a14[_0x183a1f(0x1bb)](_0x183a1f(0x1bd)),_0x4f8b94=await getDbAnalysisStatus(_0x3c0afc),_0x1a17ea=buildDbPageLinks(_0x175a14['appCode'],_0x231308);return{'ok':!![],'data':{'dbLinkId':_0x231308,'planId':_0x3c0afc,'status':_0x4f8b94,..._0x1a17ea?{'links':_0x1a17ea}:{}},'message':_0x183a1f(0x1b3)+_0x3c0afc};}};
1
+ const a76_0x54b4ee=a76_0x4248;(function(_0x302422,_0x12e3c4){const _0x2676c0=a76_0x4248,_0x2eb7b5=_0x302422();while(!![]){try{const _0x23cfe7=parseInt(_0x2676c0(0x140))/0x1*(parseInt(_0x2676c0(0x144))/0x2)+parseInt(_0x2676c0(0x14c))/0x3+parseInt(_0x2676c0(0x14a))/0x4+-parseInt(_0x2676c0(0x142))/0x5+parseInt(_0x2676c0(0x14b))/0x6*(-parseInt(_0x2676c0(0x141))/0x7)+-parseInt(_0x2676c0(0x150))/0x8*(-parseInt(_0x2676c0(0x14e))/0x9)+parseInt(_0x2676c0(0x146))/0xa*(-parseInt(_0x2676c0(0x149))/0xb);if(_0x23cfe7===_0x12e3c4)break;else _0x2eb7b5['push'](_0x2eb7b5['shift']());}catch(_0x35f18c){_0x2eb7b5['push'](_0x2eb7b5['shift']());}}}(a76_0x5049,0xe4e15));function a76_0x4248(_0x14207b,_0xd64ea5){_0x14207b=_0x14207b-0x140;const _0x50496c=a76_0x5049();let _0x42484c=_0x50496c[_0x14207b];return _0x42484c;}function a76_0x5049(){const _0x5457d7=['294041qmgvVn','6916416hhuwOJ','6IWsVpp','910881ejrUGV','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','45mCjbOg','str','606304tUAJoO','12asokMX','5803fGWjCx','9264760HaPELz','analyze-status','165736hgFzrg','plan','230ypHGXp','num','read'];a76_0x5049=function(){return _0x5457d7;};return a76_0x5049();}import{getDbAnalysisStatus}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';export const dbAnalyzeStatus={'service':'db','command':a76_0x54b4ee(0x143),'description':'Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','risk':a76_0x54b4ee(0x148),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a76_0x54b4ee(0x145),'type':'string','required':!![],'description':a76_0x54b4ee(0x14d)}],async 'execute'(_0x4f67a4){const _0x209b3b=a76_0x54b4ee,_0x37906e=_0x4f67a4[_0x209b3b(0x147)]('id'),_0x8fcf1f=_0x4f67a4[_0x209b3b(0x14f)](_0x209b3b(0x145)),_0x46c05a=await getDbAnalysisStatus(_0x8fcf1f),_0xcd4d57=buildDbPageLinks(_0x4f67a4['appCode'],_0x37906e);return{'ok':!![],'data':{'dbLinkId':_0x37906e,'planId':_0x8fcf1f,'status':_0x46c05a,..._0xcd4d57?{'links':_0xcd4d57}:{}},'message':'Analysis\x20status\x20for\x20'+_0x8fcf1f};}};
@@ -1 +1 @@
1
- function a78_0x230a(_0x1d5205,_0x15bf15){_0x1d5205=_0x1d5205-0xe3;const _0x1a93a3=a78_0x1a93();let _0x230acb=_0x1a93a3[_0x1d5205];return _0x230acb;}const a78_0x182bf8=a78_0x230a;(function(_0x5c620a,_0x5e031d){const _0x18d578=a78_0x230a,_0x36d9d4=_0x5c620a();while(!![]){try{const _0x1779b1=parseInt(_0x18d578(0xfb))/0x1*(parseInt(_0x18d578(0xe3))/0x2)+-parseInt(_0x18d578(0x100))/0x3*(parseInt(_0x18d578(0xeb))/0x4)+parseInt(_0x18d578(0x102))/0x5*(-parseInt(_0x18d578(0xe4))/0x6)+-parseInt(_0x18d578(0x109))/0x7*(parseInt(_0x18d578(0x103))/0x8)+parseInt(_0x18d578(0x10d))/0x9*(parseInt(_0x18d578(0xf3))/0xa)+-parseInt(_0x18d578(0xe7))/0xb+parseInt(_0x18d578(0xea))/0xc*(parseInt(_0x18d578(0x10c))/0xd);if(_0x1779b1===_0x5e031d)break;else _0x36d9d4['push'](_0x36d9d4['shift']());}catch(_0x3f5b7){_0x36d9d4['push'](_0x36d9d4['shift']());}}}(a78_0x1a93,0x4d3b4));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 a78_0x1a93(){const _0x4a4fad=['dbdesc','boolean','/smartapi/dblink/create','autostart','3007PZKEiX','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','validation','join','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','111saPTYb','password','1200050nBqXko','2264mfxFxt',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','dbname','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','8.0','Database\x20username','10234JTUSmt','appCode','Created\x20db\x20link\x20','2568436SyGfOH','9rXcKSH','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','username','8dXJGFP','12RebMcN','[redacted]','No\x20follow-up\x20analysis','3872869VVKagQ','bool','Extra\x20JDBC-style\x20connection\x20parameters\x20string','84mrcoGG','6068axLGgl','write','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','trim','string','message','dbversion','databasePage','2232820lmJboq','str','Host\x20and\x20port:\x20host:port','dbparam'];a78_0x1a93=function(){return _0x4a4fad;};return a78_0x1a93();}export const dbCreate={'service':'db','command':'create','description':'Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','risk':a78_0x182bf8(0xec),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a78_0x182bf8(0x105),'type':a78_0x182bf8(0xef),'required':!![],'description':a78_0x182bf8(0xed)},DB_TYPE_FLAG,{'name':a78_0x182bf8(0xf1),'type':'string','description':a78_0x182bf8(0xff),'default':a78_0x182bf8(0x107)},{'name':'dburl','type':a78_0x182bf8(0xef),'required':!![],'description':a78_0x182bf8(0xf5)},{'name':a78_0x182bf8(0x10f),'type':a78_0x182bf8(0xef),'required':!![],'description':a78_0x182bf8(0x108)},{'name':'password','type':a78_0x182bf8(0xef),'required':!![],'description':'Database\x20password'},{'name':'dbparam','type':a78_0x182bf8(0xef),'description':a78_0x182bf8(0xe9)},{'name':a78_0x182bf8(0xf7),'type':'string','description':'Human-readable\x20description'},{'name':'autostart','type':a78_0x182bf8(0xf8),'description':'After\x20create,\x20start\x20schema\x20analysis','default':![]}],async 'validate'(_0x15715b){const _0x452a51=a78_0x182bf8,_0x1eec91=_0x15715b['str']('dburl')[_0x452a51(0xee)]();if(!validateDbUrl(_0x1eec91))throw CliErrors[_0x452a51(0xfd)](_0x452a51(0xfc)+_0x1eec91+'\x22',_0x452a51(0x10e));},async 'dryRun'(_0x2520b5){const _0x4c1e65=a78_0x182bf8,_0x25bab4={'appCode':_0x2520b5['appCode'],'dbName':_0x2520b5[_0x4c1e65(0xf4)](_0x4c1e65(0x105)),'dbType':_0x2520b5['str']('dbtype'),'dbVersion':_0x2520b5[_0x4c1e65(0xf4)](_0x4c1e65(0xf1))||'8.0','dbUrl':_0x2520b5['str']('dburl')[_0x4c1e65(0xee)](),'username':_0x2520b5[_0x4c1e65(0xf4)]('username'),'password':_0x4c1e65(0xe5),..._0x2520b5['str'](_0x4c1e65(0xf6))?{'dbParam':_0x2520b5[_0x4c1e65(0xf4)](_0x4c1e65(0xf6))}:{},..._0x2520b5[_0x4c1e65(0xf4)](_0x4c1e65(0xf7))?{'dbDesc':_0x2520b5[_0x4c1e65(0xf4)]('dbdesc')}:{}};return{'method':'POST','url':_0x4c1e65(0xf9),'body':_0x25bab4,'description':['Create\x20dblink',_0x2520b5[_0x4c1e65(0xe8)]('autostart')?_0x4c1e65(0x106):_0x4c1e65(0xe6)][_0x4c1e65(0xfe)]('\x0a')};},async 'execute'(_0x57d51b){const _0x13acb2=a78_0x182bf8,_0x58b001={'appCode':_0x57d51b[_0x13acb2(0x10a)],'dbName':_0x57d51b[_0x13acb2(0xf4)](_0x13acb2(0x105)),'dbType':_0x57d51b[_0x13acb2(0xf4)]('dbtype'),'dbVersion':_0x57d51b['str'](_0x13acb2(0xf1))||_0x13acb2(0x107),'dbUrl':_0x57d51b[_0x13acb2(0xf4)]('dburl')['trim'](),'username':_0x57d51b[_0x13acb2(0xf4)](_0x13acb2(0x10f)),'password':_0x57d51b[_0x13acb2(0xf4)](_0x13acb2(0x101)),..._0x57d51b[_0x13acb2(0xf4)]('dbparam')?{'dbParam':_0x57d51b[_0x13acb2(0xf4)](_0x13acb2(0xf6))}:{},..._0x57d51b[_0x13acb2(0xf4)](_0x13acb2(0xf7))?{'dbDesc':_0x57d51b[_0x13acb2(0xf4)](_0x13acb2(0xf7))}:{}},{id:_0x24a359,entity:_0x3d779d}=normalizeEntityWithIdResponse(await createDbLink(_0x58b001));if(!_0x24a359)return{'ok':![],'message':'Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','data':sanitizeDbLinkForOutput(_0x3d779d)};let _0xb24060,_0x4a1cfd;if(_0x57d51b[_0x13acb2(0xe8)](_0x13acb2(0xfa)))try{_0xb24060=await startDbAnalysis(_0x24a359);}catch(_0x29765d){_0x4a1cfd=_0x29765d instanceof Error?_0x29765d[_0x13acb2(0xf0)]:String(_0x29765d);}const _0x7e166f=buildDbPageLinks(_0x57d51b[_0x13acb2(0x10a)],_0x24a359),_0x10e367={'connection':sanitizeDbLinkForOutput(_0x3d779d),..._0x7e166f?{'links':{'databasePage':_0x7e166f[_0x13acb2(0xf2)]}}:{},..._0xb24060?{'analysisPlanId':_0xb24060}:{},..._0x4a1cfd?{'analysisStartWarning':_0x4a1cfd}:{}};let _0x12482b;return _0x57d51b[_0x13acb2(0xe8)](_0x13acb2(0xfa))?_0x4a1cfd?_0x12482b=_0x13acb2(0x10b)+_0x24a359+_0x13acb2(0x104):_0x12482b=_0x13acb2(0x10b)+_0x24a359+'\x20and\x20started\x20analysis':_0x12482b=_0x13acb2(0x10b)+_0x24a359,{'ok':!![],'data':_0x10e367,'message':_0x12482b};}};
1
+ const a77_0x3b499c=a77_0x1651;(function(_0x4cef71,_0x312f94){const _0x4aa516=a77_0x1651,_0x3abbbe=_0x4cef71();while(!![]){try{const _0x447f05=parseInt(_0x4aa516(0x156))/0x1*(parseInt(_0x4aa516(0x153))/0x2)+-parseInt(_0x4aa516(0x13a))/0x3*(-parseInt(_0x4aa516(0x15e))/0x4)+-parseInt(_0x4aa516(0x15d))/0x5*(parseInt(_0x4aa516(0x16c))/0x6)+parseInt(_0x4aa516(0x14b))/0x7*(-parseInt(_0x4aa516(0x147))/0x8)+-parseInt(_0x4aa516(0x13f))/0x9*(-parseInt(_0x4aa516(0x141))/0xa)+-parseInt(_0x4aa516(0x159))/0xb+parseInt(_0x4aa516(0x152))/0xc*(parseInt(_0x4aa516(0x157))/0xd);if(_0x447f05===_0x312f94)break;else _0x3abbbe['push'](_0x3abbbe['shift']());}catch(_0x24ac59){_0x3abbbe['push'](_0x3abbbe['shift']());}}}(a77_0x2787,0x3243a));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a77_0x1651(_0x212f66,_0x143f42){_0x212f66=_0x212f66-0x139;const _0x27877f=a77_0x2787();let _0x1651f8=_0x27877f[_0x212f66];return _0x1651f8;}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':a77_0x3b499c(0x142),'description':'Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','risk':'write','flags':[APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a77_0x3b499c(0x161),'required':!![],'description':a77_0x3b499c(0x160)},DB_TYPE_FLAG,{'name':a77_0x3b499c(0x14d),'type':'string','description':a77_0x3b499c(0x16a),'default':a77_0x3b499c(0x158)},{'name':a77_0x3b499c(0x165),'type':a77_0x3b499c(0x161),'required':!![],'description':a77_0x3b499c(0x154)},{'name':a77_0x3b499c(0x155),'type':a77_0x3b499c(0x161),'required':!![],'description':a77_0x3b499c(0x148)},{'name':a77_0x3b499c(0x14f),'type':a77_0x3b499c(0x161),'required':!![],'description':a77_0x3b499c(0x167)},{'name':'dbparam','type':a77_0x3b499c(0x161),'description':a77_0x3b499c(0x16b)},{'name':a77_0x3b499c(0x14a),'type':a77_0x3b499c(0x161),'description':'Human-readable\x20description'},{'name':a77_0x3b499c(0x150),'type':a77_0x3b499c(0x163),'description':a77_0x3b499c(0x139),'default':![]}],async 'validate'(_0x26de6b){const _0x417700=a77_0x3b499c,_0x4c14db=_0x26de6b['str']('dburl')[_0x417700(0x166)]();if(!validateDbUrl(_0x4c14db))throw CliErrors[_0x417700(0x13d)](_0x417700(0x14e)+_0x4c14db+'\x22',_0x417700(0x15b));},async 'dryRun'(_0x2c9ce5){const _0x18c506=a77_0x3b499c,_0x21e426={'appCode':_0x2c9ce5[_0x18c506(0x145)],'dbName':_0x2c9ce5[_0x18c506(0x140)](_0x18c506(0x13e)),'dbType':_0x2c9ce5['str']('dbtype'),'dbVersion':_0x2c9ce5[_0x18c506(0x140)](_0x18c506(0x14d))||_0x18c506(0x158),'dbUrl':_0x2c9ce5[_0x18c506(0x140)]('dburl')[_0x18c506(0x166)](),'username':_0x2c9ce5['str'](_0x18c506(0x155)),'password':_0x18c506(0x169),..._0x2c9ce5[_0x18c506(0x140)](_0x18c506(0x146))?{'dbParam':_0x2c9ce5['str'](_0x18c506(0x146))}:{},..._0x2c9ce5['str'](_0x18c506(0x14a))?{'dbDesc':_0x2c9ce5[_0x18c506(0x140)](_0x18c506(0x14a))}:{}};return{'method':_0x18c506(0x143),'url':_0x18c506(0x15a),'body':_0x21e426,'description':[_0x18c506(0x15f),_0x2c9ce5['bool'](_0x18c506(0x150))?_0x18c506(0x168):_0x18c506(0x164)][_0x18c506(0x13c)]('\x0a')};},async 'execute'(_0x28a4be){const _0x25bdf0=a77_0x3b499c,_0x4311bb={'appCode':_0x28a4be[_0x25bdf0(0x145)],'dbName':_0x28a4be[_0x25bdf0(0x140)](_0x25bdf0(0x13e)),'dbType':_0x28a4be['str'](_0x25bdf0(0x151)),'dbVersion':_0x28a4be[_0x25bdf0(0x140)]('dbversion')||_0x25bdf0(0x158),'dbUrl':_0x28a4be['str'](_0x25bdf0(0x165))[_0x25bdf0(0x166)](),'username':_0x28a4be[_0x25bdf0(0x140)](_0x25bdf0(0x155)),'password':_0x28a4be[_0x25bdf0(0x140)](_0x25bdf0(0x14f)),..._0x28a4be[_0x25bdf0(0x140)](_0x25bdf0(0x146))?{'dbParam':_0x28a4be[_0x25bdf0(0x140)]('dbparam')}:{},..._0x28a4be['str'](_0x25bdf0(0x14a))?{'dbDesc':_0x28a4be[_0x25bdf0(0x140)](_0x25bdf0(0x14a))}:{}},{id:_0x57073c,entity:_0x40cb23}=normalizeEntityWithIdResponse(await createDbLink(_0x4311bb));if(!_0x57073c)return{'ok':![],'message':_0x25bdf0(0x15c),'data':sanitizeDbLinkForOutput(_0x40cb23)};let _0xe4facb,_0x788443;if(_0x28a4be[_0x25bdf0(0x149)](_0x25bdf0(0x150)))try{_0xe4facb=await startDbAnalysis(_0x57073c);}catch(_0x17f2c0){_0x788443=_0x17f2c0 instanceof Error?_0x17f2c0[_0x25bdf0(0x13b)]:String(_0x17f2c0);}const _0xc97f3d=buildDbPageLinks(_0x28a4be[_0x25bdf0(0x145)],_0x57073c),_0x3d2165={'connection':sanitizeDbLinkForOutput(_0x40cb23),..._0xc97f3d?{'links':{'databasePage':_0xc97f3d[_0x25bdf0(0x14c)]}}:{},..._0xe4facb?{'analysisPlanId':_0xe4facb}:{},..._0x788443?{'analysisStartWarning':_0x788443}:{}};let _0x3b6b01;return _0x28a4be[_0x25bdf0(0x149)](_0x25bdf0(0x150))?_0x788443?_0x3b6b01=_0x25bdf0(0x144)+_0x57073c+_0x25bdf0(0x162):_0x3b6b01='Created\x20db\x20link\x20'+_0x57073c+'\x20and\x20started\x20analysis':_0x3b6b01=_0x25bdf0(0x144)+_0x57073c,{'ok':!![],'data':_0x3d2165,'message':_0x3b6b01};}};function a77_0x2787(){const _0x37aad2=['55OoJcPr','860824EjxaLa','Create\x20dblink','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','string',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','boolean','No\x20follow-up\x20analysis','dburl','trim','Database\x20password','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','[redacted]','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','Extra\x20JDBC-style\x20connection\x20parameters\x20string','188646ztVvIB','After\x20create,\x20start\x20schema\x20analysis','3zkZhGn','message','join','validation','dbname','45LTaRPW','str','277540AVUCEb','create','POST','Created\x20db\x20link\x20','appCode','dbparam','8YDSLmP','Database\x20username','bool','dbdesc','393890CmlPBF','databasePage','dbversion','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','password','autostart','dbtype','10644KSzSoz','2eZNRja','Host\x20and\x20port:\x20host:port','username','404839csQZSz','2509syiaCI','8.0','3542033ewFWzm','/smartapi/dblink/create','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response'];a77_0x2787=function(){return _0x37aad2;};return a77_0x2787();}
@@ -1 +1 @@
1
- const a79_0x10a124=a79_0x40f0;(function(_0x373d04,_0x5cf3c9){const _0x50e92e=a79_0x40f0,_0x484244=_0x373d04();while(!![]){try{const _0x28a125=-parseInt(_0x50e92e(0x155))/0x1+-parseInt(_0x50e92e(0x15e))/0x2+-parseInt(_0x50e92e(0x159))/0x3+parseInt(_0x50e92e(0x156))/0x4+parseInt(_0x50e92e(0x153))/0x5*(-parseInt(_0x50e92e(0x15b))/0x6)+parseInt(_0x50e92e(0x15c))/0x7*(parseInt(_0x50e92e(0x157))/0x8)+parseInt(_0x50e92e(0x15d))/0x9;if(_0x28a125===_0x5cf3c9)break;else _0x484244['push'](_0x484244['shift']());}catch(_0x294fa3){_0x484244['push'](_0x484244['shift']());}}}(a79_0x429f,0x2703e));function a79_0x40f0(_0x381607,_0x4848ba){_0x381607=_0x381607-0x153;const _0x429f82=a79_0x429f();let _0x40f084=_0x429f82[_0x381607];return _0x40f084;}function a79_0x429f(){const _0x391206=['1224NxRFSU','delete','525840bwhXAr','high-risk-write','12LaMCTt','9289nWwhZR','184275mGksmp','94204TUfUXA','13310KSnIKr','Deleted\x20db\x20link\x20','17773zaqCxc','727116xYUOAk'];a79_0x429f=function(){return _0x391206;};return a79_0x429f();}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':a79_0x10a124(0x158),'description':'Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','risk':a79_0x10a124(0x15a),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x536c57){const _0x176010=a79_0x10a124,_0x5edc7f=_0x536c57['num']('id');return await deleteDbLink(_0x5edc7f),{'ok':!![],'data':{'id':_0x5edc7f,'deleted':!![]},'message':_0x176010(0x154)+_0x5edc7f};}};
1
+ const a78_0x1632d9=a78_0x3361;(function(_0x405333,_0xe73611){const _0x1b72af=a78_0x3361,_0x26b375=_0x405333();while(!![]){try{const _0x11e5c7=parseInt(_0x1b72af(0x11e))/0x1+parseInt(_0x1b72af(0x11d))/0x2*(parseInt(_0x1b72af(0x11b))/0x3)+-parseInt(_0x1b72af(0x124))/0x4*(parseInt(_0x1b72af(0x127))/0x5)+parseInt(_0x1b72af(0x126))/0x6+parseInt(_0x1b72af(0x11f))/0x7+-parseInt(_0x1b72af(0x123))/0x8*(parseInt(_0x1b72af(0x121))/0x9)+-parseInt(_0x1b72af(0x11c))/0xa*(parseInt(_0x1b72af(0x11a))/0xb);if(_0x11e5c7===_0xe73611)break;else _0x26b375['push'](_0x26b375['shift']());}catch(_0x597d91){_0x26b375['push'](_0x26b375['shift']());}}}(a78_0x2c44,0x5d377));import{deleteDbLink}from'../../core/api-client.js';function a78_0x3361(_0x460d07,_0x380b2d){_0x460d07=_0x460d07-0x11a;const _0x2c44dc=a78_0x2c44();let _0x336129=_0x2c44dc[_0x460d07];return _0x336129;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a78_0x2c44(){const _0x50045e=['num','4348176UdHRDA','5Wcffra','7897978KDRvZR','3OOTBJG','10maCZwu','854914DTtYPm','134956wYkmXq','4199825NZYSsT','high-risk-write','4177917IPTJbp','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','8bFktgB','1292232Xewsgq'];a78_0x2c44=function(){return _0x50045e;};return a78_0x2c44();}export const dbDelete={'service':'db','command':'delete','description':a78_0x1632d9(0x122),'risk':a78_0x1632d9(0x120),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1df376){const _0x1fe697=a78_0x1632d9,_0x5101f2=_0x1df376[_0x1fe697(0x125)]('id');return await deleteDbLink(_0x5101f2),{'ok':!![],'data':{'id':_0x5101f2,'deleted':!![]},'message':'Deleted\x20db\x20link\x20'+_0x5101f2};}};
@@ -1 +1 @@
1
- const a80_0x1fca1a=a80_0x51bd;function a80_0x2216(){const _0x4272a0=['7302708auDZBH','349784Uqmprx','4kMmosb','133990EKScRB','10984008RuqCpe','dbName','5153841hMgowo','db\x20link\x20','12636386PbEGGr','1355807JzNJKp','num','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)'];a80_0x2216=function(){return _0x4272a0;};return a80_0x2216();}(function(_0x509c9d,_0x3f2555){const _0x2c38e0=a80_0x51bd,_0x342b43=_0x509c9d();while(!![]){try{const _0x50a5b7=-parseInt(_0x2c38e0(0x16b))/0x1+-parseInt(_0x2c38e0(0x16f))/0x2+parseInt(_0x2c38e0(0x168))/0x3+parseInt(_0x2c38e0(0x164))/0x4*(-parseInt(_0x2c38e0(0x165))/0x5)+parseInt(_0x2c38e0(0x16e))/0x6+-parseInt(_0x2c38e0(0x16a))/0x7+parseInt(_0x2c38e0(0x166))/0x8;if(_0x50a5b7===_0x3f2555)break;else _0x342b43['push'](_0x342b43['shift']());}catch(_0x5df781){_0x342b43['push'](_0x342b43['shift']());}}}(a80_0x2216,0xe6cdb));import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a80_0x51bd(_0x3b831f,_0x51f342){_0x3b831f=_0x3b831f-0x164;const _0x2216f1=a80_0x2216();let _0x51bd9e=_0x2216f1[_0x3b831f];return _0x51bd9e;}import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':'detail','description':a80_0x1fca1a(0x16d),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x17d4ff){const _0x1a23a6=a80_0x1fca1a,_0x336dd0=_0x17d4ff[_0x1a23a6(0x16c)]('id'),_0x572f6f=await getDbLinkInfo(_0x336dd0);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x572f6f),'message':_0x1a23a6(0x169)+_0x336dd0+':\x20'+_0x572f6f[_0x1a23a6(0x167)]};}};
1
+ const a79_0x523e14=a79_0x44a1;function a79_0x39b2(){const _0x42d960=['9cHfqxT','db\x20link\x20','detail','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','1305785hmxKGf','read','440384uIhGGL','2739024DulMbx','dbName','num','3062094HTSMis','314VCgrpK','873JSVNjI','8CKUAky','5281240yAgxrL','9793560EPTHty'];a79_0x39b2=function(){return _0x42d960;};return a79_0x39b2();}(function(_0x1aa2e8,_0x7f8369){const _0x47d8a6=a79_0x44a1,_0x285578=_0x1aa2e8();while(!![]){try{const _0x4a60e8=-parseInt(_0x47d8a6(0x1bf))/0x1+-parseInt(_0x47d8a6(0x1b4))/0x2*(parseInt(_0x47d8a6(0x1b5))/0x3)+-parseInt(_0x47d8a6(0x1b6))/0x4*(-parseInt(_0x47d8a6(0x1bd))/0x5)+-parseInt(_0x47d8a6(0x1c0))/0x6+parseInt(_0x47d8a6(0x1b3))/0x7+parseInt(_0x47d8a6(0x1b7))/0x8*(-parseInt(_0x47d8a6(0x1b9))/0x9)+parseInt(_0x47d8a6(0x1b8))/0xa;if(_0x4a60e8===_0x7f8369)break;else _0x285578['push'](_0x285578['shift']());}catch(_0xa2ab9){_0x285578['push'](_0x285578['shift']());}}}(a79_0x39b2,0x521fe));import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a79_0x44a1(_0x1c8901,_0x591c71){_0x1c8901=_0x1c8901-0x1b3;const _0x39b2b4=a79_0x39b2();let _0x44a168=_0x39b2b4[_0x1c8901];return _0x44a168;}import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':a79_0x523e14(0x1bb),'description':a79_0x523e14(0x1bc),'risk':a79_0x523e14(0x1be),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x48a99b){const _0x4c8cfe=a79_0x523e14,_0x15f3e1=_0x48a99b[_0x4c8cfe(0x1c2)]('id'),_0x322225=await getDbLinkInfo(_0x15f3e1);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x322225),'message':_0x4c8cfe(0x1ba)+_0x15f3e1+':\x20'+_0x322225[_0x4c8cfe(0x1c1)]};}};
@@ -1 +1 @@
1
- const a81_0x3eb900=a81_0x409c;(function(_0x25a01e,_0x50f0e9){const _0x57879d=a81_0x409c,_0x39971a=_0x25a01e();while(!![]){try{const _0x3d971f=-parseInt(_0x57879d(0x10f))/0x1+-parseInt(_0x57879d(0x118))/0x2+parseInt(_0x57879d(0x10e))/0x3+-parseInt(_0x57879d(0x111))/0x4*(-parseInt(_0x57879d(0x122))/0x5)+-parseInt(_0x57879d(0x120))/0x6+-parseInt(_0x57879d(0x115))/0x7*(parseInt(_0x57879d(0x121))/0x8)+-parseInt(_0x57879d(0x11c))/0x9*(-parseInt(_0x57879d(0x116))/0xa);if(_0x3d971f===_0x50f0e9)break;else _0x39971a['push'](_0x39971a['shift']());}catch(_0x564ddc){_0x39971a['push'](_0x39971a['shift']());}}}(a81_0x39a2,0x1c0d0));function a81_0x39a2(){const _0x220c0d=['16NVafdp','25STPeby','table','Page\x20size','179052jmTZic','67193dNMaoW','number','168236JRSNtO','appCode','diff','num','559769MBGRMa','672620vYQMXQ','length','440680yNzhLL','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','page','\x20row(s),\x20total\x20','63DucEhl','pagesize','\x20(db\x20link\x20','string','1070700KsMIob'];a81_0x39a2=function(){return _0x220c0d;};return a81_0x39a2();}import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a81_0x409c(_0x194ba3,_0x5feab8){_0x194ba3=_0x194ba3-0x10d;const _0x39a207=a81_0x39a2();let _0x409c05=_0x39a207[_0x194ba3];return _0x409c05;}export const dbDiff={'service':'db','command':a81_0x3eb900(0x113),'description':'Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a81_0x3eb900(0x123),'type':a81_0x3eb900(0x11f),'description':a81_0x3eb900(0x119)},{'name':a81_0x3eb900(0x11a),'type':'number','description':'Page\x20index\x20(1-based)','default':0x1},{'name':a81_0x3eb900(0x11d),'type':a81_0x3eb900(0x110),'description':a81_0x3eb900(0x10d),'default':0x14}],async 'execute'(_0x3a1eaa){const _0x32cb69=a81_0x3eb900,_0x3d7440=_0x3a1eaa[_0x32cb69(0x114)]('id'),_0x262f3c=_0x3a1eaa[_0x32cb69(0x114)](_0x32cb69(0x11a),0x1)||0x1,_0x213e6=_0x3a1eaa['num']('pagesize',0x14)||0x14,_0x23f281=_0x3a1eaa['str'](_0x32cb69(0x123))||undefined,{totalCount:_0x447f8b,physicalTableCount:_0x33d421,datasetTableCount:_0x3f38e8,summary:_0x1bdab3,tableList:_0x5b43d4}=await getDbTableDiff(_0x3a1eaa[_0x32cb69(0x112)],_0x3d7440,{'pageIndex':_0x262f3c,'pageSize':_0x213e6,'tableName':_0x23f281});return{'ok':!![],'data':{'dbLinkId':_0x3d7440,'page':_0x262f3c,'pageSize':_0x213e6,'totalCount':_0x447f8b,'physicalTableCount':_0x33d421,'datasetTableCount':_0x3f38e8,..._0x1bdab3?{'summary':_0x1bdab3}:{},'tables':_0x5b43d4,'tableList':_0x5b43d4},'message':_0x5b43d4[_0x32cb69(0x117)]+_0x32cb69(0x11b)+_0x447f8b+_0x32cb69(0x11e)+_0x3d7440+')'};}};
1
+ const a80_0x46af85=a80_0x3bf4;function a80_0x3bf4(_0x22cac8,_0x5c32c6){_0x22cac8=_0x22cac8-0x11d;const _0x36a19d=a80_0x36a1();let _0x3bf40a=_0x36a19d[_0x22cac8];return _0x3bf40a;}(function(_0xdd4d2e,_0x3c4124){const _0x2d21b9=a80_0x3bf4,_0x2f80d9=_0xdd4d2e();while(!![]){try{const _0x500c53=parseInt(_0x2d21b9(0x125))/0x1*(parseInt(_0x2d21b9(0x12b))/0x2)+parseInt(_0x2d21b9(0x131))/0x3*(parseInt(_0x2d21b9(0x123))/0x4)+-parseInt(_0x2d21b9(0x12f))/0x5+parseInt(_0x2d21b9(0x124))/0x6*(parseInt(_0x2d21b9(0x121))/0x7)+-parseInt(_0x2d21b9(0x120))/0x8*(parseInt(_0x2d21b9(0x12a))/0x9)+parseInt(_0x2d21b9(0x130))/0xa+-parseInt(_0x2d21b9(0x11f))/0xb;if(_0x500c53===_0x3c4124)break;else _0x2f80d9['push'](_0x2f80d9['shift']());}catch(_0x4a9d2a){_0x2f80d9['push'](_0x2f80d9['shift']());}}}(a80_0x36a1,0xe5c2c));function a80_0x36a1(){const _0x52f62e=['6875940qaBuwD','33AtjQbU','length','\x20row(s),\x20total\x20','diff','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','number','6000830trFcZP','32oDMakf','4316767EiYzjs','string','46792NYkVfl','12nONmDg','448933nwykmE','table','read','page','str','480429aQWKGJ','6nnfMsm','num','appCode','Page\x20size','8481395nYAWNQ'];a80_0x36a1=function(){return _0x52f62e;};return a80_0x36a1();}import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDiff={'service':'db','command':a80_0x46af85(0x134),'description':'Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','risk':a80_0x46af85(0x127),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a80_0x46af85(0x126),'type':a80_0x46af85(0x122),'description':a80_0x46af85(0x11d)},{'name':'page','type':a80_0x46af85(0x11e),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':'pagesize','type':a80_0x46af85(0x11e),'description':a80_0x46af85(0x12e),'default':0x14}],async 'execute'(_0x29df88){const _0x4bff7d=a80_0x46af85,_0xe1a2=_0x29df88[_0x4bff7d(0x12c)]('id'),_0x43477e=_0x29df88[_0x4bff7d(0x12c)](_0x4bff7d(0x128),0x1)||0x1,_0xb024ce=_0x29df88[_0x4bff7d(0x12c)]('pagesize',0x14)||0x14,_0x4d451f=_0x29df88[_0x4bff7d(0x129)](_0x4bff7d(0x126))||undefined,{totalCount:_0x50d75f,physicalTableCount:_0x1b1da0,datasetTableCount:_0x2b11fa,summary:_0x30a017,tableList:_0x540aa8}=await getDbTableDiff(_0x29df88[_0x4bff7d(0x12d)],_0xe1a2,{'pageIndex':_0x43477e,'pageSize':_0xb024ce,'tableName':_0x4d451f});return{'ok':!![],'data':{'dbLinkId':_0xe1a2,'page':_0x43477e,'pageSize':_0xb024ce,'totalCount':_0x50d75f,'physicalTableCount':_0x1b1da0,'datasetTableCount':_0x2b11fa,..._0x30a017?{'summary':_0x30a017}:{},'tables':_0x540aa8,'tableList':_0x540aa8},'message':_0x540aa8[_0x4bff7d(0x132)]+_0x4bff7d(0x133)+_0x50d75f+'\x20(db\x20link\x20'+_0xe1a2+')'};}};
@@ -1 +1 @@
1
- (function(_0x3760ad,_0x537f77){const _0x166b50=a82_0x405e,_0x163e8f=_0x3760ad();while(!![]){try{const _0x1fa852=-parseInt(_0x166b50(0x1e2))/0x1+parseInt(_0x166b50(0x1dc))/0x2+parseInt(_0x166b50(0x1df))/0x3+-parseInt(_0x166b50(0x1e1))/0x4+parseInt(_0x166b50(0x1e3))/0x5*(-parseInt(_0x166b50(0x1dd))/0x6)+parseInt(_0x166b50(0x1de))/0x7*(-parseInt(_0x166b50(0x1db))/0x8)+parseInt(_0x166b50(0x1e0))/0x9;if(_0x1fa852===_0x537f77)break;else _0x163e8f['push'](_0x163e8f['shift']());}catch(_0x52d648){_0x163e8f['push'](_0x163e8f['shift']());}}}(a82_0x269b,0x288c3));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';import{dbDelete}from'../../commands/db/delete.js';function a82_0x269b(){const _0xb7376e=['126509MfeJux','5iAvKOt','1215600sQqdys','418002QmJxwA','1110378VcDzCS','14BKhsYc','538752xrlTId','5144463pWQNqZ','714548LXnQLP'];a82_0x269b=function(){return _0xb7376e;};return a82_0x269b();}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';function a82_0x405e(_0x3b3825,_0x18175e){_0x3b3825=_0x3b3825-0x1db;const _0x269bcf=a82_0x269b();let _0x405ecf=_0x269bcf[_0x3b3825];return _0x405ecf;}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(_0x4df480,_0x5ad315){const _0x4e615b=a81_0x5e3d,_0x53314f=_0x4df480();while(!![]){try{const _0x1eaa78=-parseInt(_0x4e615b(0x15b))/0x1+-parseInt(_0x4e615b(0x15e))/0x2*(parseInt(_0x4e615b(0x161))/0x3)+parseInt(_0x4e615b(0x160))/0x4*(parseInt(_0x4e615b(0x164))/0x5)+parseInt(_0x4e615b(0x15f))/0x6*(parseInt(_0x4e615b(0x165))/0x7)+parseInt(_0x4e615b(0x15c))/0x8+-parseInt(_0x4e615b(0x15d))/0x9*(parseInt(_0x4e615b(0x163))/0xa)+-parseInt(_0x4e615b(0x162))/0xb;if(_0x1eaa78===_0x5ad315)break;else _0x53314f['push'](_0x53314f['shift']());}catch(_0x340586){_0x53314f['push'](_0x53314f['shift']());}}}(a81_0x20e2,0xe1ff1));import{dbList}from'../../commands/db/list.js';function a81_0x20e2(){const _0x15427a=['3UQFINW','13750319DBSfrV','21520ccamoC','16305vlVKIE','7713692vpztTx','8925bufeEh','14594152YDAxwU','6831xIUoia','88258XdIXKk','6WXWTpi','1148MjOhFW'];a81_0x20e2=function(){return _0x15427a;};return a81_0x20e2();}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';function a81_0x5e3d(_0x3bf4b1,_0x2f384d){_0x3bf4b1=_0x3bf4b1-0x15b;const _0x20e239=a81_0x20e2();let _0x5e3dfc=_0x20e239[_0x3bf4b1];return _0x5e3dfc;}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 +1 @@
1
- const a83_0x53aea0=a83_0x593a;function a83_0x593a(_0x37784b,_0x43ef96){_0x37784b=_0x37784b-0xd0;const _0x4e0ba5=a83_0x4e0b();let _0x593a92=_0x4e0ba5[_0x37784b];return _0x593a92;}(function(_0x181295,_0x4d4e0c){const _0x2d40e3=a83_0x593a,_0x52e413=_0x181295();while(!![]){try{const _0x5ae20d=parseInt(_0x2d40e3(0xe1))/0x1*(-parseInt(_0x2d40e3(0xe6))/0x2)+-parseInt(_0x2d40e3(0xdf))/0x3*(-parseInt(_0x2d40e3(0xd6))/0x4)+-parseInt(_0x2d40e3(0xdb))/0x5+parseInt(_0x2d40e3(0xe3))/0x6*(-parseInt(_0x2d40e3(0xe5))/0x7)+-parseInt(_0x2d40e3(0xd2))/0x8+-parseInt(_0x2d40e3(0xdd))/0x9*(parseInt(_0x2d40e3(0xe8))/0xa)+parseInt(_0x2d40e3(0xd8))/0xb;if(_0x5ae20d===_0x4d4e0c)break;else _0x52e413['push'](_0x52e413['shift']());}catch(_0x393589){_0x52e413['push'](_0x52e413['shift']());}}}(a83_0x4e0b,0x7f488));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a83_0x53aea0(0xe2),'description':a83_0x53aea0(0xd9),'risk':a83_0x53aea0(0xe0),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a83_0x53aea0(0xd1),'type':a83_0x53aea0(0xd0),'description':a83_0x53aea0(0xd5),'default':0x1},{'name':a83_0x53aea0(0xde),'type':a83_0x53aea0(0xd0),'description':a83_0x53aea0(0xda),'default':0x64}],async 'execute'(_0x25da61){const _0x3c687d=a83_0x53aea0,_0xa51e41=_0x25da61[_0x3c687d(0xd3)]('page',0x1)||0x1,_0x36ee3c=_0x25da61[_0x3c687d(0xd3)]('pagesize',0x64)||0x64,{items:_0xbb2f5a,paging:_0x445ee0}=await listDbLinks(_0x25da61[_0x3c687d(0xe7)],{'currentPage':_0xa51e41,'pageSize':_0x36ee3c}),_0x4ba530=sanitizeDbLinkList(_0xbb2f5a),_0x4f1f1d=_0x445ee0?_0x445ee0:{'currentPage':_0xa51e41,'pageSize':_0x36ee3c,'rowsOnPage':_0x4ba530[_0x3c687d(0xd4)],'totalCount':null,'note':_0x3c687d(0xe4)};return{'ok':!![],'data':{'connections':_0x4ba530,'paging':_0x4f1f1d},'message':_0x3c687d(0xdc)+_0x4ba530[_0x3c687d(0xd4)]+_0x3c687d(0xd7)};}};function a83_0x4e0b(){const _0x147ee5=['number','page','2340384LkLpox','num','length','Page\x20index\x20(1-based)','1888gpWnKa','\x20database\x20connection(s)','20222103goIpjq','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','Page\x20size','3059360EypNnR','Found\x20','4419qgPXaf','pagesize','5847qpwBla','read','155cMsAgo','list','228QpLzzL','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','86457aDBGRx','5398cKHkyU','appCode','9060MfHsyx'];a83_0x4e0b=function(){return _0x147ee5;};return a83_0x4e0b();}
1
+ const a82_0x3d2e4a=a82_0x4c8c;(function(_0x578711,_0x1862b1){const _0x35ac0c=a82_0x4c8c,_0x39edcc=_0x578711();while(!![]){try{const _0x528272=-parseInt(_0x35ac0c(0x146))/0x1*(parseInt(_0x35ac0c(0x14d))/0x2)+parseInt(_0x35ac0c(0x150))/0x3*(parseInt(_0x35ac0c(0x14c))/0x4)+parseInt(_0x35ac0c(0x145))/0x5+-parseInt(_0x35ac0c(0x152))/0x6+parseInt(_0x35ac0c(0x158))/0x7*(parseInt(_0x35ac0c(0x155))/0x8)+parseInt(_0x35ac0c(0x15a))/0x9*(-parseInt(_0x35ac0c(0x14a))/0xa)+parseInt(_0x35ac0c(0x159))/0xb;if(_0x528272===_0x1862b1)break;else _0x39edcc['push'](_0x39edcc['shift']());}catch(_0x237323){_0x39edcc['push'](_0x39edcc['shift']());}}}(a82_0x33a1,0xc85bb));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a82_0x3d2e4a(0x156),'description':a82_0x3d2e4a(0x154),'risk':a82_0x3d2e4a(0x14e),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'page','type':'number','description':a82_0x3d2e4a(0x151),'default':0x1},{'name':a82_0x3d2e4a(0x153),'type':a82_0x3d2e4a(0x14f),'description':a82_0x3d2e4a(0x15b),'default':0x64}],async 'execute'(_0x3c9474){const _0x17964d=a82_0x3d2e4a,_0x506d28=_0x3c9474[_0x17964d(0x144)]('page',0x1)||0x1,_0x5b9479=_0x3c9474[_0x17964d(0x144)](_0x17964d(0x153),0x64)||0x64,{items:_0x525b28,paging:_0x14c7a0}=await listDbLinks(_0x3c9474[_0x17964d(0x14b)],{'currentPage':_0x506d28,'pageSize':_0x5b9479}),_0x4088a3=sanitizeDbLinkList(_0x525b28),_0x122ca7=_0x14c7a0?_0x14c7a0:{'currentPage':_0x506d28,'pageSize':_0x5b9479,'rowsOnPage':_0x4088a3['length'],'totalCount':null,'note':_0x17964d(0x149)};return{'ok':!![],'data':{'connections':_0x4088a3,'paging':_0x122ca7},'message':_0x17964d(0x157)+_0x4088a3[_0x17964d(0x147)]+_0x17964d(0x148)};}};function a82_0x4c8c(_0x544004,_0x371a5f){_0x544004=_0x544004-0x144;const _0x33a12f=a82_0x33a1();let _0x4c8c74=_0x33a12f[_0x544004];return _0x4c8c74;}function a82_0x33a1(){const _0x469bba=['read','number','1698iexmjv','Page\x20index\x20(1-based)','7894470camqij','pagesize','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','56AiNvOT','list','Found\x20','652323cxDODG','19607280uoCgVG','150642sOjMRD','Page\x20size','num','2573845bZjAAX','2RboRRE','length','\x20database\x20connection(s)','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','220GbgJHZ','appCode','5348YeTiBk','1201666WIwlPb'];a82_0x33a1=function(){return _0x469bba;};return a82_0x33a1();}
@@ -1 +1 @@
1
- (function(_0x1aae5c,_0x226401){const _0x1dcaee=a84_0x2661,_0x3e8800=_0x1aae5c();while(!![]){try{const _0x3a5500=-parseInt(_0x1dcaee(0x1b5))/0x1+-parseInt(_0x1dcaee(0x1b6))/0x2*(-parseInt(_0x1dcaee(0x1c3))/0x3)+parseInt(_0x1dcaee(0x1bc))/0x4+parseInt(_0x1dcaee(0x1bd))/0x5*(-parseInt(_0x1dcaee(0x1c4))/0x6)+parseInt(_0x1dcaee(0x1c6))/0x7*(parseInt(_0x1dcaee(0x1c2))/0x8)+-parseInt(_0x1dcaee(0x1c8))/0x9*(-parseInt(_0x1dcaee(0x1be))/0xa)+parseInt(_0x1dcaee(0x1c5))/0xb*(-parseInt(_0x1dcaee(0x1c0))/0xc);if(_0x3a5500===_0x226401)break;else _0x3e8800['push'](_0x3e8800['shift']());}catch(_0xf9989c){_0x3e8800['push'](_0x3e8800['shift']());}}}(a84_0x162a,0x38bc6));import{getAppBaseUrl}from'../../constant/domain.js';function shouldRedactKey(_0x34801b){const _0x35fbd9=a84_0x2661,_0x3792e2=_0x34801b[_0x35fbd9(0x1bf)]();if(_0x3792e2===_0x35fbd9(0x1cb)||_0x3792e2==='passwd'||_0x3792e2==='dbpassword')return!![];if(_0x3792e2[_0x35fbd9(0x1c7)](_0x35fbd9(0x1bb))||_0x3792e2[_0x35fbd9(0x1c7)](_0x35fbd9(0x1cf))||_0x3792e2[_0x35fbd9(0x1c7)](_0x35fbd9(0x1b9)))return!![];if(_0x3792e2[_0x35fbd9(0x1c7)]('privatekey')||_0x3792e2['includes'](_0x35fbd9(0x1b7)))return!![];if(_0x3792e2===_0x35fbd9(0x1cd)||_0x3792e2===_0x35fbd9(0x1ce)||_0x3792e2===_0x35fbd9(0x1b8))return!![];return![];}export function sanitizeDbLinkForOutput(_0x94850d){const _0x2935c3=a84_0x2661,_0x3cc09a={..._0x94850d};for(const _0x514228 of Object['keys'](_0x3cc09a)){if(!shouldRedactKey(_0x514228))continue;const _0x349c71=_0x3cc09a[_0x514228];_0x349c71!=null&&String(_0x349c71)['length']>0x0&&(_0x3cc09a[_0x514228]=_0x2935c3(0x1cc));}return _0x3cc09a;}export function sanitizeDbLinkList(_0x299770){return _0x299770['map'](_0x2cb962=>sanitizeDbLinkForOutput(_0x2cb962));}function a84_0x162a(){const _0x2b7ea3=['accesskey','jdbcurl','credential','trim','secret','407496XgExdP','1515PGDfMz','710170EhcgtC','toLowerCase','4572GowwUu','test','24ibAwmZ','3lOxpSk','6918MYjrWJ','1078OXSWpE','670817OfPQhC','includes','45UYzZCo','number','/data/database','password','[redacted]','authorization','connectionstring','token','168838ZLEZHM','86946oNfVrb'];a84_0x162a=function(){return _0x2b7ea3;};return a84_0x162a();}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;function a84_0x2661(_0x1a4cf7,_0x1442dd){_0x1a4cf7=_0x1a4cf7-0x1b5;const _0x162af9=a84_0x162a();let _0x2661ef=_0x162af9[_0x1a4cf7];return _0x2661ef;}export function validateDbUrl(_0x5df8d7){const _0x35cbcb=a84_0x2661,_0x41dc3e=_0x5df8d7[_0x35cbcb(0x1ba)]();if(!_0x41dc3e)return![];return DB_URL_PATTERN[_0x35cbcb(0x1c1)](_0x41dc3e);}export function buildDbPageLinks(_0x261c77,_0x294290){const _0x46681c=a84_0x2661,_0x133742=_0x261c77?.['trim']();if(!_0x133742)return undefined;const _0x2a7863=typeof _0x294290===_0x46681c(0x1c9)?String(_0x294290):String(_0x294290??'')[_0x46681c(0x1ba)]();if(!_0x2a7863)return undefined;const _0x5563a4=Number(_0x2a7863);if(!Number['isFinite'](_0x5563a4)||_0x5563a4<=0x0)return undefined;const _0x53d7f6=getAppBaseUrl(_0x133742),_0x127861=encodeURIComponent(String(_0x5563a4));return{'databasePage':_0x53d7f6+_0x46681c(0x1ca),'erPage':_0x53d7f6+'/data/er?dbId='+_0x127861};}
1
+ function a83_0x43c7(){const _0x2db9c1=['connectionstring','1208728Grbryt','7754135rZLeiJ','/data/er?dbId=','test','token','2658394dGoNGu','credential','map','length','passwd','7Inpvqo','isFinite','dbpassword','accesskey','toLowerCase','password','4gDvVmX','450xLKAdA','trim','/data/database','1366264redyGv','secret','450378YJkQzl','[redacted]','3079326quvzxO','4034523CeeKyr','includes'];a83_0x43c7=function(){return _0x2db9c1;};return a83_0x43c7();}(function(_0x3eda75,_0x4b9e51){const _0x51d3af=a83_0x2a17,_0x192d39=_0x3eda75();while(!![]){try{const _0x10ac4c=-parseInt(_0x51d3af(0xdc))/0x1+parseInt(_0x51d3af(0xe9))/0x2+parseInt(_0x51d3af(0xe1))/0x3+parseInt(_0x51d3af(0xf4))/0x4*(parseInt(_0x51d3af(0xe5))/0x5)+-parseInt(_0x51d3af(0xe0))/0x6*(-parseInt(_0x51d3af(0xee))/0x7)+-parseInt(_0x51d3af(0xe4))/0x8+-parseInt(_0x51d3af(0xde))/0x9*(parseInt(_0x51d3af(0xf5))/0xa);if(_0x10ac4c===_0x4b9e51)break;else _0x192d39['push'](_0x192d39['shift']());}catch(_0x19aa0d){_0x192d39['push'](_0x192d39['shift']());}}}(a83_0x43c7,0xec889));import{getAppBaseUrl}from'../../constant/domain.js';function shouldRedactKey(_0x5c35cf){const _0x322dab=a83_0x2a17,_0x1d35d1=_0x5c35cf[_0x322dab(0xf2)]();if(_0x1d35d1===_0x322dab(0xf3)||_0x1d35d1===_0x322dab(0xed)||_0x1d35d1===_0x322dab(0xf0))return!![];if(_0x1d35d1[_0x322dab(0xe2)](_0x322dab(0xdd))||_0x1d35d1[_0x322dab(0xe2)](_0x322dab(0xe8))||_0x1d35d1[_0x322dab(0xe2)](_0x322dab(0xea)))return!![];if(_0x1d35d1[_0x322dab(0xe2)]('privatekey')||_0x1d35d1[_0x322dab(0xe2)](_0x322dab(0xf1)))return!![];if(_0x1d35d1==='authorization'||_0x1d35d1===_0x322dab(0xe3)||_0x1d35d1==='jdbcurl')return!![];return![];}function a83_0x2a17(_0x467975,_0x2d09ef){_0x467975=_0x467975-0xdc;const _0x43c757=a83_0x43c7();let _0x2a17ef=_0x43c757[_0x467975];return _0x2a17ef;}export function sanitizeDbLinkForOutput(_0x33b3eb){const _0x4048bf=a83_0x2a17,_0x62f396={..._0x33b3eb};for(const _0x56087d of Object['keys'](_0x62f396)){if(!shouldRedactKey(_0x56087d))continue;const _0x162511=_0x62f396[_0x56087d];_0x162511!=null&&String(_0x162511)[_0x4048bf(0xec)]>0x0&&(_0x62f396[_0x56087d]=_0x4048bf(0xdf));}return _0x62f396;}export function sanitizeDbLinkList(_0x28ddea){const _0x27ffb7=a83_0x2a17;return _0x28ddea[_0x27ffb7(0xeb)](_0x4f4b81=>sanitizeDbLinkForOutput(_0x4f4b81));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x175697){const _0x121c4c=a83_0x2a17,_0x162adb=_0x175697['trim']();if(!_0x162adb)return![];return DB_URL_PATTERN[_0x121c4c(0xe7)](_0x162adb);}export function buildDbPageLinks(_0x28fb73,_0x3a5c25){const _0x5767a2=a83_0x2a17,_0x3432a0=_0x28fb73?.[_0x5767a2(0xf6)]();if(!_0x3432a0)return undefined;const _0x342a99=typeof _0x3a5c25==='number'?String(_0x3a5c25):String(_0x3a5c25??'')[_0x5767a2(0xf6)]();if(!_0x342a99)return undefined;const _0x56c311=Number(_0x342a99);if(!Number[_0x5767a2(0xef)](_0x56c311)||_0x56c311<=0x0)return undefined;const _0x1d80a3=getAppBaseUrl(_0x3432a0),_0xdb2394=encodeURIComponent(String(_0x56c311));return{'databasePage':_0x1d80a3+_0x5767a2(0xf7),'erPage':_0x1d80a3+_0x5767a2(0xe6)+_0xdb2394};}
@@ -1 +1 @@
1
- const a85_0x14ae17=a85_0x4fab;(function(_0x3e83ec,_0x3af01a){const _0x301071=a85_0x4fab,_0x239601=_0x3e83ec();while(!![]){try{const _0x1d8c13=-parseInt(_0x301071(0x16a))/0x1*(parseInt(_0x301071(0x16f))/0x2)+parseInt(_0x301071(0x175))/0x3*(parseInt(_0x301071(0x173))/0x4)+parseInt(_0x301071(0x170))/0x5+-parseInt(_0x301071(0x172))/0x6*(parseInt(_0x301071(0x171))/0x7)+parseInt(_0x301071(0x169))/0x8*(-parseInt(_0x301071(0x16d))/0x9)+parseInt(_0x301071(0x16c))/0xa+-parseInt(_0x301071(0x16b))/0xb*(-parseInt(_0x301071(0x16e))/0xc);if(_0x1d8c13===_0x3af01a)break;else _0x239601['push'](_0x239601['shift']());}catch(_0x36ba4b){_0x239601['push'](_0x239601['shift']());}}}(a85_0x180c,0xdb459));function a85_0x4fab(_0x5f4b26,_0x4d87bb){_0x5f4b26=_0x5f4b26-0x165;const _0x180c0e=a85_0x180c();let _0x4fab94=_0x180c0e[_0x5f4b26];return _0x4fab94;}import{getDbAllTableList}from'../../core/api-client.js';function a85_0x180c(){const _0xd4d5b3=['52fhbXfk','length','102081soKioC','appCode','\x20table(s)\x20on\x20db\x20link\x20','num','read','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','23960DSTELB','13581vwTRTt','20284ZVzcpT','2511410owfstL','4491ykFkRs','17856UOQpas','162VIXMlN','5560335ojQwMq','1849274JZCmjw','24ynjcHA'];a85_0x180c=function(){return _0xd4d5b3;};return a85_0x180c();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':'tables','description':a85_0x14ae17(0x168),'risk':a85_0x14ae17(0x167),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3565f7){const _0x2dec19=a85_0x14ae17,_0x4de827=_0x3565f7[_0x2dec19(0x166)]('id'),_0x2d4288=await getDbAllTableList(_0x3565f7[_0x2dec19(0x176)],_0x4de827);return{'ok':!![],'data':{'dbLinkId':_0x4de827,'total':_0x2d4288[_0x2dec19(0x174)],'tables':_0x2d4288},'message':_0x2d4288['length']+_0x2dec19(0x165)+_0x4de827};}};
1
+ function a84_0x5551(){const _0x4ff679=['38850PfHgOn','1086824lopPbh','14upSKPs','read','831576QXBDfm','214799WRqEEH','tables','num','42DxCBhX','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','length','6212sEEUVo','42046XepQpy','785aAowrL','324OlzUyc','256113fwgynS','225TQpFkG'];a84_0x5551=function(){return _0x4ff679;};return a84_0x5551();}function a84_0x4871(_0x5fb4c2,_0x599753){_0x5fb4c2=_0x5fb4c2-0xa0;const _0x55513c=a84_0x5551();let _0x487124=_0x55513c[_0x5fb4c2];return _0x487124;}const a84_0x232488=a84_0x4871;(function(_0x398972,_0xaf4ff6){const _0x3f8bd3=a84_0x4871,_0x47f5c2=_0x398972();while(!![]){try{const _0x599beb=parseInt(_0x3f8bd3(0xa1))/0x1+parseInt(_0x3f8bd3(0xa8))/0x2*(parseInt(_0x3f8bd3(0xa4))/0x3)+-parseInt(_0x3f8bd3(0xa7))/0x4*(-parseInt(_0x3f8bd3(0xa9))/0x5)+-parseInt(_0x3f8bd3(0xa0))/0x6+parseInt(_0x3f8bd3(0xaf))/0x7*(parseInt(_0x3f8bd3(0xae))/0x8)+-parseInt(_0x3f8bd3(0xac))/0x9*(parseInt(_0x3f8bd3(0xad))/0xa)+-parseInt(_0x3f8bd3(0xab))/0xb*(parseInt(_0x3f8bd3(0xaa))/0xc);if(_0x599beb===_0xaf4ff6)break;else _0x47f5c2['push'](_0x47f5c2['shift']());}catch(_0x287e32){_0x47f5c2['push'](_0x47f5c2['shift']());}}}(a84_0x5551,0x2721e));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':a84_0x232488(0xa2),'description':a84_0x232488(0xa5),'risk':a84_0x232488(0xb0),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3d2018){const _0x4a1123=a84_0x232488,_0xfa2017=_0x3d2018[_0x4a1123(0xa3)]('id'),_0x46116c=await getDbAllTableList(_0x3d2018['appCode'],_0xfa2017);return{'ok':!![],'data':{'dbLinkId':_0xfa2017,'total':_0x46116c[_0x4a1123(0xa6)],'tables':_0x46116c},'message':_0x46116c[_0x4a1123(0xa6)]+'\x20table(s)\x20on\x20db\x20link\x20'+_0xfa2017};}};
@@ -1 +1 @@
1
- const a86_0x38b94e=a86_0x291f;(function(_0x2da819,_0x4c25d9){const _0x8c9b39=a86_0x291f,_0x356c46=_0x2da819();while(!![]){try{const _0x20c20f=-parseInt(_0x8c9b39(0x155))/0x1*(parseInt(_0x8c9b39(0x161))/0x2)+-parseInt(_0x8c9b39(0x14f))/0x3*(parseInt(_0x8c9b39(0x162))/0x4)+-parseInt(_0x8c9b39(0x149))/0x5*(parseInt(_0x8c9b39(0x14a))/0x6)+-parseInt(_0x8c9b39(0x160))/0x7+-parseInt(_0x8c9b39(0x156))/0x8*(parseInt(_0x8c9b39(0x14e))/0x9)+parseInt(_0x8c9b39(0x14b))/0xa*(parseInt(_0x8c9b39(0x15a))/0xb)+parseInt(_0x8c9b39(0x148))/0xc;if(_0x20c20f===_0x4c25d9)break;else _0x356c46['push'](_0x356c46['shift']());}catch(_0x3923cb){_0x356c46['push'](_0x356c46['shift']());}}}(a86_0x2481,0x33c6e));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x1227cd){const _0x3f8cde=a86_0x291f;if(_0x1227cd===!![]||_0x1227cd===![])return{'success':_0x1227cd};if(_0x1227cd===null||_0x1227cd===undefined)return{'type':typeof _0x1227cd};if(typeof _0x1227cd!=='object')return{'type':typeof _0x1227cd};const _0x217a38=_0x1227cd,_0x4ea820=[_0x3f8cde(0x159),'message',_0x3f8cde(0x14c),_0x3f8cde(0x15e),_0x3f8cde(0x157),_0x3f8cde(0x153)],_0x3ddd07={};for(const _0x2fdc04 of _0x4ea820){if(_0x2fdc04 in _0x217a38)_0x3ddd07[_0x2fdc04]=_0x217a38[_0x2fdc04];}return Object[_0x3f8cde(0x14d)](_0x3ddd07)[_0x3f8cde(0x15c)]===0x0&&(_0x3ddd07['keys']=Object[_0x3f8cde(0x14d)](_0x217a38)[_0x3f8cde(0x15d)](0x0,0x14)),_0x3ddd07;}function a86_0x2481(){const _0x20e67b=['object','read','Connection\x20OK\x20for\x20db\x20link\x20','data','num','3fGFQXV','8EfdnUR','msg','\x20(see\x20data.result)','success','11aSofpZ','Connection\x20check\x20finished\x20for\x20db\x20link\x20','length','slice','error','test','74704YFhrGF','194314eUJlQK','63592qcIDRe','10739232SRplGu','2260cERUCu','564UHkfJz','1377240TfScrG','code','keys','2709657nzXLId','33RBGwPV'];a86_0x2481=function(){return _0x20e67b;};return a86_0x2481();}function a86_0x291f(_0x164318,_0x653959){_0x164318=_0x164318-0x148;const _0x248182=a86_0x2481();let _0x291f0e=_0x248182[_0x164318];return _0x291f0e;}export const dbTest={'service':'db','command':a86_0x38b94e(0x15f),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':a86_0x38b94e(0x151),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5c1592){const _0x51abdb=a86_0x38b94e,_0xbc9c56=_0x5c1592[_0x51abdb(0x154)]('id'),_0x1769d8=await testDbLinkConnect(_0xbc9c56),_0x974e0e=_0x1769d8===!![]||typeof _0x1769d8===_0x51abdb(0x150)&&_0x1769d8!==null&&_0x1769d8[_0x51abdb(0x159)]===!![],_0x222dc7=summarizeTestConnectResult(_0x1769d8);return{'ok':!![],'data':{'id':_0xbc9c56,'connected':Boolean(_0x974e0e),'result':_0x222dc7},'message':_0x974e0e?_0x51abdb(0x152)+_0xbc9c56:_0x51abdb(0x15b)+_0xbc9c56+_0x51abdb(0x158)};}};
1
+ function a85_0x1a20(){const _0x50f93d=['3929160mcpNZk','msg','90SIPNzj','data','183936hFdCqM','num','128390ucoZMp','3luWCcU','12GzHGcn','Connection\x20OK\x20for\x20db\x20link\x20','9cwwWoB','598056ZccHjm','keys','312788ffNwHF','read','object','test','message','\x20(see\x20data.result)','error','success','code','857362VpvNpT','185190MKtiSz','slice','56OCApCc','Connection\x20check\x20finished\x20for\x20db\x20link\x20'];a85_0x1a20=function(){return _0x50f93d;};return a85_0x1a20();}function a85_0x24e5(_0x52cea2,_0x14c7b8){_0x52cea2=_0x52cea2-0x19e;const _0x1a205a=a85_0x1a20();let _0x24e513=_0x1a205a[_0x52cea2];return _0x24e513;}const a85_0x31ed2a=a85_0x24e5;(function(_0x2d9963,_0x1d994d){const _0x377add=a85_0x24e5,_0x329c1c=_0x2d9963();while(!![]){try{const _0x1060d0=-parseInt(_0x377add(0x1a3))/0x1+parseInt(_0x377add(0x1b6))/0x2+-parseInt(_0x377add(0x1a6))/0x3*(parseInt(_0x377add(0x1ac))/0x4)+parseInt(_0x377add(0x1a5))/0x5*(parseInt(_0x377add(0x1a1))/0x6)+-parseInt(_0x377add(0x1b8))/0x7*(-parseInt(_0x377add(0x1aa))/0x8)+parseInt(_0x377add(0x1a9))/0x9*(-parseInt(_0x377add(0x19f))/0xa)+parseInt(_0x377add(0x1b5))/0xb*(-parseInt(_0x377add(0x1a7))/0xc);if(_0x1060d0===_0x1d994d)break;else _0x329c1c['push'](_0x329c1c['shift']());}catch(_0x43b327){_0x329c1c['push'](_0x329c1c['shift']());}}}(a85_0x1a20,0x53b2e));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x479f66){const _0x50bd20=a85_0x24e5;if(_0x479f66===!![]||_0x479f66===![])return{'success':_0x479f66};if(_0x479f66===null||_0x479f66===undefined)return{'type':typeof _0x479f66};if(typeof _0x479f66!==_0x50bd20(0x1ae))return{'type':typeof _0x479f66};const _0x4f8755=_0x479f66,_0x215ddc=[_0x50bd20(0x1b3),_0x50bd20(0x1b0),_0x50bd20(0x1b4),_0x50bd20(0x1b2),_0x50bd20(0x1a0),_0x50bd20(0x1a2)],_0xe25cf5={};for(const _0xfe311 of _0x215ddc){if(_0xfe311 in _0x4f8755)_0xe25cf5[_0xfe311]=_0x4f8755[_0xfe311];}return Object[_0x50bd20(0x1ab)](_0xe25cf5)['length']===0x0&&(_0xe25cf5['keys']=Object['keys'](_0x4f8755)[_0x50bd20(0x1b7)](0x0,0x14)),_0xe25cf5;}export const dbTest={'service':'db','command':a85_0x31ed2a(0x1af),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':a85_0x31ed2a(0x1ad),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2af9c4){const _0x4e8edb=a85_0x31ed2a,_0x36f93f=_0x2af9c4[_0x4e8edb(0x1a4)]('id'),_0x2e3682=await testDbLinkConnect(_0x36f93f),_0x77f1c7=_0x2e3682===!![]||typeof _0x2e3682===_0x4e8edb(0x1ae)&&_0x2e3682!==null&&_0x2e3682[_0x4e8edb(0x1b3)]===!![],_0x3611a3=summarizeTestConnectResult(_0x2e3682);return{'ok':!![],'data':{'id':_0x36f93f,'connected':Boolean(_0x77f1c7),'result':_0x3611a3},'message':_0x77f1c7?_0x4e8edb(0x1a8)+_0x36f93f:_0x4e8edb(0x19e)+_0x36f93f+_0x4e8edb(0x1b1)};}};
@@ -1 +1 @@
1
- function a87_0x5a0c(){const _0x556de6=['validation','num','dbParam','dbName','734208RGiZTg','/smartapi/dblink/update','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','1105728zinlZI','password','trim','dbUrl','dbparam','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','dburl','22175xmkOqV','31192gQfgUt','New\x20host:port','Updated\x20db\x20link\x20','dbDesc','12knzFxw','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','string','New\x20connection\x20parameter\x20string','username','305902UbPNmh','update','str','POST','New\x20description','New\x20database\x20name','New\x20username','dbdesc','dbname','156YCsfxt','375964bmJRzM','2504700AtLDJa'];a87_0x5a0c=function(){return _0x556de6;};return a87_0x5a0c();}const a87_0x446370=a87_0x21bf;(function(_0x40c4d6,_0x1c9306){const _0x504a40=a87_0x21bf,_0x1d53b5=_0x40c4d6();while(!![]){try{const _0xc5093a=-parseInt(_0x504a40(0xeb))/0x1+-parseInt(_0x504a40(0xfb))/0x2+parseInt(_0x504a40(0xe6))/0x3*(parseInt(_0x504a40(0xf5))/0x4)+parseInt(_0x504a40(0x106))/0x5*(parseInt(_0x504a40(0xf4))/0x6)+-parseInt(_0x504a40(0x107))/0x7+parseInt(_0x504a40(0xff))/0x8+parseInt(_0x504a40(0xf6))/0x9;if(_0xc5093a===_0x1c9306)break;else _0x1d53b5['push'](_0x1d53b5['shift']());}catch(_0x1468b5){_0x1d53b5['push'](_0x1d53b5['shift']());}}}(a87_0x5a0c,0x383b8));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';function a87_0x21bf(_0x2a99f8,_0x1a0a99){_0x2a99f8=_0x2a99f8-0xe4;const _0x5a0cc3=a87_0x5a0c();let _0x21bf0d=_0x5a0cc3[_0x2a99f8];return _0x21bf0d;}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':a87_0x446370(0xec),'description':a87_0x446370(0xfd),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a87_0x446370(0xe8),'description':a87_0x446370(0xf0)},{'name':a87_0x446370(0x105),'type':'string','description':a87_0x446370(0x108)},{'name':a87_0x446370(0xea),'type':a87_0x446370(0xe8),'description':a87_0x446370(0xf1)},{'name':a87_0x446370(0x100),'type':'string','description':a87_0x446370(0xfe)},{'name':a87_0x446370(0x103),'type':'string','description':a87_0x446370(0xe9)},{'name':'dbdesc','type':a87_0x446370(0xe8),'description':a87_0x446370(0xef)}],async 'validate'(_0x183d29){const _0x38119b=a87_0x446370,_0xb64612=_0x183d29[_0x38119b(0xed)]('dburl');if(_0xb64612&&!validateDbUrl(_0xb64612[_0x38119b(0x101)]()))throw CliErrors[_0x38119b(0xf7)](_0x38119b(0xe7)+_0xb64612+'\x22');},async 'dryRun'(_0x278c87){const _0xe66e5e=a87_0x446370,_0x3ddf92=_0x278c87[_0xe66e5e(0xf8)]('id'),_0x5cb157=await getDbLinkInfo(_0x3ddf92),_0x39343c={..._0x5cb157},_0x26e173=_0x278c87[_0xe66e5e(0xed)]('dbname');if(_0x26e173)_0x39343c['dbName']=_0x26e173;const _0x19df34=_0x278c87[_0xe66e5e(0xed)](_0xe66e5e(0x105));if(_0x19df34)_0x39343c[_0xe66e5e(0x102)]=_0x19df34[_0xe66e5e(0x101)]();const _0x224c56=_0x278c87[_0xe66e5e(0xed)]('username');if(_0x224c56)_0x39343c[_0xe66e5e(0xea)]=_0x224c56;const _0x444b9f=_0x278c87[_0xe66e5e(0xed)](_0xe66e5e(0x100));if(_0x444b9f)_0x39343c[_0xe66e5e(0x100)]=_0x444b9f;const _0x370492=_0x278c87[_0xe66e5e(0xed)](_0xe66e5e(0x103));if(_0x370492)_0x39343c[_0xe66e5e(0xf9)]=_0x370492;const _0x2aa862=_0x278c87[_0xe66e5e(0xed)](_0xe66e5e(0xf2));if(_0x2aa862)_0x39343c[_0xe66e5e(0xe5)]=_0x2aa862;const _0x4aa3c5=sanitizeDbLinkForOutput(_0x39343c);return{'method':_0xe66e5e(0xee),'url':_0xe66e5e(0xfc),'body':_0x4aa3c5,'description':_0xe66e5e(0x104)};},async 'execute'(_0x1b3cb3){const _0x40d27a=a87_0x446370,_0x2b9d85=_0x1b3cb3[_0x40d27a(0xf8)]('id'),_0x4e6faf=await getDbLinkInfo(_0x2b9d85),_0x4d6e84={..._0x4e6faf},_0x2076ab=_0x1b3cb3[_0x40d27a(0xed)](_0x40d27a(0xf3));if(_0x2076ab)_0x4d6e84[_0x40d27a(0xfa)]=_0x2076ab;const _0x2b1a38=_0x1b3cb3[_0x40d27a(0xed)](_0x40d27a(0x105));if(_0x2b1a38)_0x4d6e84[_0x40d27a(0x102)]=_0x2b1a38[_0x40d27a(0x101)]();const _0x56b2a3=_0x1b3cb3[_0x40d27a(0xed)](_0x40d27a(0xea));if(_0x56b2a3)_0x4d6e84[_0x40d27a(0xea)]=_0x56b2a3;const _0x4a970c=_0x1b3cb3[_0x40d27a(0xed)](_0x40d27a(0x100));if(_0x4a970c)_0x4d6e84['password']=_0x4a970c;const _0x10b138=_0x1b3cb3[_0x40d27a(0xed)](_0x40d27a(0x103));if(_0x10b138)_0x4d6e84['dbParam']=_0x10b138;const _0x2c9a8d=_0x1b3cb3[_0x40d27a(0xed)]('dbdesc');if(_0x2c9a8d)_0x4d6e84[_0x40d27a(0xe5)]=_0x2c9a8d;const {id:_0xdff4cd,entity:_0x26f020}=normalizeEntityWithIdResponse(await updateDbLink(_0x4d6e84));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x26f020),'message':_0x40d27a(0xe4)+(_0xdff4cd??_0x2b9d85)};}};
1
+ const a86_0x58c0c0=a86_0x59f2;function a86_0x44b9(){const _0xa46ead=['1567788emDoMm','Updated\x20db\x20link\x20','2085750XHQVlD','dbDesc','New\x20database\x20name','1254001RVkOaN','99850zAcOMR','dbName','8XUaPMG','1630218nJGLZT','str','dbParam','5559516wNZsXD','trim','dbname','New\x20username','POST','New\x20description','dburl','/smartapi/dblink/update','2915rbWxiG','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','4975915ySgMaU','12QqaRjZ','dbdesc','dbUrl','username','update','14oPuiLy','num','dbparam','password','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','New\x20connection\x20parameter\x20string','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','string'];a86_0x44b9=function(){return _0xa46ead;};return a86_0x44b9();}(function(_0x5a64e6,_0x3efd38){const _0x336126=a86_0x59f2,_0x25bb31=_0x5a64e6();while(!![]){try{const _0x59f256=-parseInt(_0x336126(0xf6))/0x1+parseInt(_0x336126(0xf3))/0x2+-parseInt(_0x336126(0x108))/0x3*(-parseInt(_0x336126(0x116))/0x4)+parseInt(_0x336126(0x107))/0x5+-parseInt(_0x336126(0xfa))/0x6*(-parseInt(_0x336126(0x10d))/0x7)+-parseInt(_0x336126(0xf9))/0x8*(-parseInt(_0x336126(0xfd))/0x9)+-parseInt(_0x336126(0xf7))/0xa*(parseInt(_0x336126(0x105))/0xb);if(_0x59f256===_0x3efd38)break;else _0x25bb31['push'](_0x25bb31['shift']());}catch(_0x39b7dd){_0x25bb31['push'](_0x25bb31['shift']());}}}(a86_0x44b9,0xd3a86));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';function a86_0x59f2(_0x3c5eb8,_0x42ec71){_0x3c5eb8=_0x3c5eb8-0xf3;const _0x44b9b9=a86_0x44b9();let _0x59f2a6=_0x44b9b9[_0x3c5eb8];return _0x59f2a6;}export const dbUpdate={'service':'db','command':a86_0x58c0c0(0x10c),'description':a86_0x58c0c0(0x112),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a86_0x58c0c0(0xff),'type':a86_0x58c0c0(0x115),'description':a86_0x58c0c0(0xf5)},{'name':a86_0x58c0c0(0x103),'type':a86_0x58c0c0(0x115),'description':'New\x20host:port'},{'name':a86_0x58c0c0(0x10b),'type':a86_0x58c0c0(0x115),'description':a86_0x58c0c0(0x100)},{'name':'password','type':a86_0x58c0c0(0x115),'description':a86_0x58c0c0(0x114)},{'name':'dbparam','type':a86_0x58c0c0(0x115),'description':a86_0x58c0c0(0x113)},{'name':a86_0x58c0c0(0x109),'type':a86_0x58c0c0(0x115),'description':a86_0x58c0c0(0x102)}],async 'validate'(_0x4c3c1e){const _0x56f561=a86_0x58c0c0,_0x1988cf=_0x4c3c1e[_0x56f561(0xfb)]('dburl');if(_0x1988cf&&!validateDbUrl(_0x1988cf['trim']()))throw CliErrors['validation'](_0x56f561(0x106)+_0x1988cf+'\x22');},async 'dryRun'(_0x560054){const _0x32031c=a86_0x58c0c0,_0x4031f8=_0x560054['num']('id'),_0x5c8546=await getDbLinkInfo(_0x4031f8),_0x532c28={..._0x5c8546},_0x5826e2=_0x560054[_0x32031c(0xfb)](_0x32031c(0xff));if(_0x5826e2)_0x532c28[_0x32031c(0xf8)]=_0x5826e2;const _0x30d350=_0x560054[_0x32031c(0xfb)](_0x32031c(0x103));if(_0x30d350)_0x532c28[_0x32031c(0x10a)]=_0x30d350[_0x32031c(0xfe)]();const _0x16a4f6=_0x560054[_0x32031c(0xfb)](_0x32031c(0x10b));if(_0x16a4f6)_0x532c28[_0x32031c(0x10b)]=_0x16a4f6;const _0x313304=_0x560054[_0x32031c(0xfb)](_0x32031c(0x110));if(_0x313304)_0x532c28[_0x32031c(0x110)]=_0x313304;const _0x4b7282=_0x560054[_0x32031c(0xfb)]('dbparam');if(_0x4b7282)_0x532c28[_0x32031c(0xfc)]=_0x4b7282;const _0x159c51=_0x560054[_0x32031c(0xfb)](_0x32031c(0x109));if(_0x159c51)_0x532c28['dbDesc']=_0x159c51;const _0x5b9172=sanitizeDbLinkForOutput(_0x532c28);return{'method':_0x32031c(0x101),'url':_0x32031c(0x104),'body':_0x5b9172,'description':_0x32031c(0x111)};},async 'execute'(_0x1eea77){const _0x17c3b8=a86_0x58c0c0,_0x18c465=_0x1eea77[_0x17c3b8(0x10e)]('id'),_0x4ac9d9=await getDbLinkInfo(_0x18c465),_0x1a2df9={..._0x4ac9d9},_0x483926=_0x1eea77[_0x17c3b8(0xfb)]('dbname');if(_0x483926)_0x1a2df9['dbName']=_0x483926;const _0xf513c0=_0x1eea77['str'](_0x17c3b8(0x103));if(_0xf513c0)_0x1a2df9['dbUrl']=_0xf513c0[_0x17c3b8(0xfe)]();const _0x59f06a=_0x1eea77['str'](_0x17c3b8(0x10b));if(_0x59f06a)_0x1a2df9[_0x17c3b8(0x10b)]=_0x59f06a;const _0x111937=_0x1eea77[_0x17c3b8(0xfb)](_0x17c3b8(0x110));if(_0x111937)_0x1a2df9['password']=_0x111937;const _0x2aee4f=_0x1eea77[_0x17c3b8(0xfb)](_0x17c3b8(0x10f));if(_0x2aee4f)_0x1a2df9[_0x17c3b8(0xfc)]=_0x2aee4f;const _0x49694c=_0x1eea77[_0x17c3b8(0xfb)](_0x17c3b8(0x109));if(_0x49694c)_0x1a2df9[_0x17c3b8(0xf4)]=_0x49694c;const {id:_0x5f4835,entity:_0x54f246}=normalizeEntityWithIdResponse(await updateDbLink(_0x1a2df9));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x54f246),'message':_0x17c3b8(0x117)+(_0x5f4835??_0x18c465)};}};
@@ -1 +1 @@
1
- const a88_0x41e8d4=a88_0x4b1e;(function(_0x1d32df,_0x2b95de){const _0x2e67bb=a88_0x4b1e,_0x49c49c=_0x1d32df();while(!![]){try{const _0x365e18=parseInt(_0x2e67bb(0x1bc))/0x1+parseInt(_0x2e67bb(0x1ad))/0x2*(-parseInt(_0x2e67bb(0x1a5))/0x3)+parseInt(_0x2e67bb(0x18a))/0x4+-parseInt(_0x2e67bb(0x195))/0x5+parseInt(_0x2e67bb(0x1b9))/0x6*(-parseInt(_0x2e67bb(0x185))/0x7)+parseInt(_0x2e67bb(0x1b4))/0x8*(parseInt(_0x2e67bb(0x192))/0x9)+parseInt(_0x2e67bb(0x1c3))/0xa*(parseInt(_0x2e67bb(0x198))/0xb);if(_0x365e18===_0x2b95de)break;else _0x49c49c['push'](_0x49c49c['shift']());}catch(_0x1ce49c){_0x49c49c['push'](_0x49c49c['shift']());}}}(a88_0x54f0,0xe5f77));import a88_0x34be28 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a88_0x54f0(){const _0xdabe38=['(none)','raw','bold','8bJSEGp','✗\x20Invalid\x20JSON','env','gray','\x20\x20Merged\x20Config','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','version','12523728WCXmyw','source','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','repeat','log','630nSGAjp','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','verbose','779674ATMPuy','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','pageSize','padEnd','(no\x20file)','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','apps','10801810sqJELg','\x20\x20\x20\x20accessKey:\x20\x20','\x20←\x20current','missing','read','\x20\x20Auth','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid','length','yellow','\x20(default)','(set,\x20length=','(default:\x20','\x20\x20API\x20Endpoints','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','message','check','\x20\x20─','status','platform','currentApp','Global','accessKey','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Apps','Project','75733pUMiwJ','format','(missing)','(not\x20found)','✗\x20Not\x20logged\x20in','5605444IJuYLT','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','✗\x20Expired','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','green','9bKApTr','cookie','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','8062540ejKUfK','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','appcode','11yKoPtQ','✓\x20Valid\x20JSON','appCode','(not\x20set)','defaultApp','red','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','explicitAppName','\x20doctor','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','keys','unknown','852177cTFEVW','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','value','slice','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'];a88_0x54f0=function(){return _0xdabe38;};return a88_0x54f0();}import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';function a88_0x4b1e(_0x377ce7,_0x40329c){_0x377ce7=_0x377ce7-0x17e;const _0x54f0b1=a88_0x54f0();let _0x4b1e54=_0x54f0b1[_0x377ce7];return _0x4b1e54;}import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x437e7e){const _0x5da2f0=a88_0x4b1e,_0x525136=GIT_COMMIT!==_0x5da2f0(0x1a4)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x5da2f0(0x1a8)](0x0,0xa)+')':VERSION,_0x15b3f3=buildConfigFromFlags({}),_0x238b9b=getCookie();console['log'](),console[_0x5da2f0(0x1b8)](a88_0x34be28[_0x5da2f0(0x1ac)](CLI_BIN_NAME+_0x5da2f0(0x1a0))),console[_0x5da2f0(0x1b8)](a88_0x34be28[_0x5da2f0(0x1b0)]('─'['repeat'](0x32))),console[_0x5da2f0(0x1b8)](_0x5da2f0(0x19e)+_0x525136),console[_0x5da2f0(0x1b8)](_0x5da2f0(0x1a1)+process[_0x5da2f0(0x1b3)]),console[_0x5da2f0(0x1b8)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x5da2f0(0x1d6)]+'\x20'+process['arch']),console[_0x5da2f0(0x1b8)](),console['log'](a88_0x34be28[_0x5da2f0(0x1ac)](_0x5da2f0(0x1a2))),console[_0x5da2f0(0x1b8)](a88_0x34be28[_0x5da2f0(0x1b0)](_0x5da2f0(0x1d4)['repeat'](0x1e)));const _0x31a9a0=getGlobalConfigPath(),_0x5aa9a9=getProjectConfigPath();console[_0x5da2f0(0x1b8)](_0x5da2f0(0x182)+(_0x31a9a0||a88_0x34be28[_0x5da2f0(0x1b0)](_0x5da2f0(0x188)))),console[_0x5da2f0(0x1b8)](_0x5da2f0(0x18c)+(_0x5aa9a9||a88_0x34be28[_0x5da2f0(0x1b0)](_0x5da2f0(0x188)))),console[_0x5da2f0(0x1b8)](),console[_0x5da2f0(0x1b8)](a88_0x34be28[_0x5da2f0(0x1ac)]('\x20\x20Config\x20JSON')),console[_0x5da2f0(0x1b8)](a88_0x34be28['gray'](_0x5da2f0(0x1d4)[_0x5da2f0(0x1b7)](0x1e)));const _0x1508d3=(_0x2e4ca0,_0xc4b6e1)=>{const _0x57e346=_0x5da2f0;if(!_0xc4b6e1){console[_0x57e346(0x1b8)]('\x20\x20'+_0x2e4ca0[_0x57e346(0x1bf)](0x11)+'\x20'+a88_0x34be28['gray'](_0x57e346(0x1c0)));return;}const _0x3e3212=inspectCliConfigJsonFile(_0xc4b6e1);if(_0x3e3212[_0x57e346(0x1d5)]==='ok')console['log']('\x20\x20'+_0x2e4ca0[_0x57e346(0x1bf)](0x11)+'\x20'+a88_0x34be28[_0x57e346(0x191)](_0x57e346(0x199)));else{if(_0x3e3212[_0x57e346(0x1d5)]==='empty')console['log']('\x20\x20'+_0x2e4ca0[_0x57e346(0x1bf)](0x11)+'\x20'+a88_0x34be28[_0x57e346(0x1cc)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x3e3212[_0x57e346(0x1d5)]===_0x57e346(0x1c6)?console['log']('\x20\x20'+_0x2e4ca0[_0x57e346(0x1bf)](0x11)+'\x20'+a88_0x34be28[_0x57e346(0x1b0)](_0x57e346(0x187))):(console[_0x57e346(0x1b8)]('\x20\x20'+_0x2e4ca0[_0x57e346(0x1bf)](0x11)+'\x20'+a88_0x34be28[_0x57e346(0x19d)](_0x57e346(0x1ae))),console['log']('\x20\x20'+''[_0x57e346(0x1bf)](0x11)+'\x20'+a88_0x34be28[_0x57e346(0x19d)](_0x3e3212[_0x57e346(0x1d2)])));}};_0x1508d3(_0x5da2f0(0x17f),_0x31a9a0),_0x1508d3(_0x5da2f0(0x184),_0x5aa9a9),console[_0x5da2f0(0x1b8)](),console[_0x5da2f0(0x1b8)](a88_0x34be28[_0x5da2f0(0x1ac)](_0x5da2f0(0x1b1))),console[_0x5da2f0(0x1b8)](a88_0x34be28[_0x5da2f0(0x1b0)]('\x20\x20─'[_0x5da2f0(0x1b7)](0x1e))),console[_0x5da2f0(0x1b8)](_0x5da2f0(0x1b2)+(_0x15b3f3[_0x5da2f0(0x19a)]||a88_0x34be28[_0x5da2f0(0x19d)](_0x5da2f0(0x19b)))),console['log'](_0x5da2f0(0x18f)+_0x15b3f3[_0x5da2f0(0x1af)]),console['log'](_0x5da2f0(0x1c9)+_0x15b3f3['locale']),console[_0x5da2f0(0x1b8)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x15b3f3['apiDir']),console['log'](_0x5da2f0(0x1d1)+(_0x15b3f3[_0x5da2f0(0x19c)]||a88_0x34be28['gray']('(none)'))),console[_0x5da2f0(0x1b8)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x15b3f3[_0x5da2f0(0x17e)]||a88_0x34be28[_0x5da2f0(0x1b0)](_0x5da2f0(0x1aa)))),console[_0x5da2f0(0x1b8)]('\x20\x20explicitAppName:\x20'+(_0x15b3f3[_0x5da2f0(0x19f)]||a88_0x34be28['gray'](_0x5da2f0(0x1aa)))),console['log']('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x15b3f3['format']||a88_0x34be28[_0x5da2f0(0x1b0)](_0x5da2f0(0x1cf)+DEFAULT_CONFIG_VALUES[_0x5da2f0(0x186)]+')'))),console[_0x5da2f0(0x1b8)](_0x5da2f0(0x1a9)+(_0x15b3f3[_0x5da2f0(0x1be)]??a88_0x34be28[_0x5da2f0(0x1b0)]('(default)'))),console[_0x5da2f0(0x1b8)](_0x5da2f0(0x1c1)+_0x15b3f3['riskLevel']),console[_0x5da2f0(0x1b8)](_0x5da2f0(0x181)+_0x15b3f3[_0x5da2f0(0x1bb)]),console[_0x5da2f0(0x1b8)](_0x5da2f0(0x1a6)+(_0x15b3f3[_0x5da2f0(0x193)]?a88_0x34be28[_0x5da2f0(0x191)](_0x5da2f0(0x1ce)+_0x15b3f3[_0x5da2f0(0x193)][_0x5da2f0(0x1cb)]+')'):_0x238b9b?a88_0x34be28[_0x5da2f0(0x191)]('(set\x20via\x20file,\x20length='+_0x238b9b[_0x5da2f0(0x1cb)]+')'):a88_0x34be28[_0x5da2f0(0x1b0)](_0x5da2f0(0x1aa))));const _0x3fcc9c=Object[_0x5da2f0(0x1a3)](_0x15b3f3[_0x5da2f0(0x1c2)]);if(_0x3fcc9c[_0x5da2f0(0x1cb)]>0x0){console[_0x5da2f0(0x1b8)](),console['log'](a88_0x34be28[_0x5da2f0(0x1ac)](_0x5da2f0(0x183))),console[_0x5da2f0(0x1b8)](a88_0x34be28['gray'](_0x5da2f0(0x1d4)[_0x5da2f0(0x1b7)](0x1e)));for(const _0x119f05 of _0x3fcc9c){const _0x29cf8d=_0x15b3f3[_0x5da2f0(0x1c2)][_0x119f05],_0x2fdbe7=_0x119f05===_0x15b3f3[_0x5da2f0(0x19c)],_0x249ef1=_0x119f05===_0x15b3f3[_0x5da2f0(0x17e)],_0x320975=_0x249ef1?a88_0x34be28[_0x5da2f0(0x191)](_0x5da2f0(0x1c5)):'',_0x5c5928=_0x2fdbe7?_0x5da2f0(0x1cd):'';console[_0x5da2f0(0x1b8)]('\x20\x20'+_0x119f05+_0x5c5928+_0x320975),console['log'](_0x5da2f0(0x1bd)+_0x29cf8d[_0x5da2f0(0x197)]);const _0x219064=buildAppDoctorFields(_0x29cf8d,{'env':_0x15b3f3[_0x5da2f0(0x1af)],'apiDir':_0x15b3f3[_0x5da2f0(0x1ab)][_0x5da2f0(0x18d)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x15b3f3['cookie']||_0x238b9b||undefined,'accessKey':_0x15b3f3[_0x5da2f0(0x180)]});console[_0x5da2f0(0x1b8)](_0x5da2f0(0x194)+_0x219064[_0x5da2f0(0x1af)][_0x5da2f0(0x1a7)]+'\x20\x20'+a88_0x34be28[_0x5da2f0(0x1b0)]('('+_0x219064[_0x5da2f0(0x1af)][_0x5da2f0(0x1b5)]+')')),console[_0x5da2f0(0x1b8)](_0x5da2f0(0x1b6)+_0x219064['apiDir']['value']+'\x20\x20'+a88_0x34be28[_0x5da2f0(0x1b0)]('('+_0x219064[_0x5da2f0(0x18d)][_0x5da2f0(0x1b5)]+')'));const _0x3892b6=_0x219064[_0x5da2f0(0x193)]['value']?a88_0x34be28[_0x5da2f0(0x191)](_0x5da2f0(0x1ce)+_0x219064[_0x5da2f0(0x193)]['value'][_0x5da2f0(0x1cb)]+')'):a88_0x34be28[_0x5da2f0(0x1b0)]('(none)');console['log'](_0x5da2f0(0x18b)+_0x3892b6+'\x20\x20'+a88_0x34be28[_0x5da2f0(0x1b0)]('('+_0x219064[_0x5da2f0(0x193)]['source']+')'));const _0x71af6=_0x219064[_0x5da2f0(0x180)][_0x5da2f0(0x1a7)]?a88_0x34be28[_0x5da2f0(0x191)](_0x5da2f0(0x1ce)+_0x219064['accessKey'][_0x5da2f0(0x1a7)][_0x5da2f0(0x1cb)]+')'):a88_0x34be28[_0x5da2f0(0x1b0)](_0x5da2f0(0x1aa));console['log'](_0x5da2f0(0x1c4)+_0x71af6+'\x20\x20'+a88_0x34be28[_0x5da2f0(0x1b0)]('('+_0x219064[_0x5da2f0(0x180)][_0x5da2f0(0x1b5)]+')'));}}console['log'](),console[_0x5da2f0(0x1b8)](a88_0x34be28[_0x5da2f0(0x1ac)](_0x5da2f0(0x1d0))),console['log'](a88_0x34be28[_0x5da2f0(0x1b0)]('\x20\x20─'[_0x5da2f0(0x1b7)](0x1e))),console['log']('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x5da2f0(0x1b8)](_0x5da2f0(0x196)+getUserDomain()),console[_0x5da2f0(0x1b8)](_0x5da2f0(0x190)+getRuntimeDomain()),console['log'](),console[_0x5da2f0(0x1b8)](a88_0x34be28[_0x5da2f0(0x1ac)](_0x5da2f0(0x1c8))),console[_0x5da2f0(0x1b8)](a88_0x34be28[_0x5da2f0(0x1b0)](_0x5da2f0(0x1d4)['repeat'](0x1e)));if(_0x238b9b){const _0x2842d7=await getIsSessionValid();console['log'](_0x5da2f0(0x1ba)+(_0x2842d7?a88_0x34be28['green'](_0x5da2f0(0x1ca)):a88_0x34be28['red'](_0x5da2f0(0x18e))));}else console[_0x5da2f0(0x1b8)](_0x5da2f0(0x1ba)+a88_0x34be28['red'](_0x5da2f0(0x189)));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':a88_0x41e8d4(0x1d3),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a88_0x41e8d4(0x1c7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a87_0x2bdbfd=a87_0x441c;function a87_0x4178(){const _0x41d08b=['\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','locale','riskLevel','message','✗\x20Not\x20logged\x20in','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','yellow','(set,\x20length=','\x20\x20\x20\x20accessKey:\x20\x20','raw','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','doctor','✓\x20Valid\x20JSON','apiDir','✓\x20Valid','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','source','✗\x20Expired','5946000OKWSRs','(not\x20found)','Project','72IQVeiX','padEnd','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20(default)','\x20\x20Apps','✗\x20Invalid\x20JSON','17259624PnaymZ','value','\x20doctor','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','green','appCode','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','425DhajpX','\x20\x20API\x20Endpoints','\x20\x20Config\x20Files','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray','4512378KkVcQV','2893FnhnZF','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','verbose','(none)','cookie','repeat','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','957964tecdLG','(default:\x20','appcode','accessKey','\x20\x20─','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','explicitAppName','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set\x20via\x20file,\x20length=','bold','arch','log','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','(no\x20file)','⚠\x20Empty\x20(treated\x20as\x20{})','missing','109580rYhHpK','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','56ZHbodi','29505wFpFTA','(default)','apps','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20Auth','currentApp','slice','env','61724EScAVW','red','read','version','length','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'];a87_0x4178=function(){return _0x41d08b;};return a87_0x4178();}(function(_0x4a659d,_0x4f7e31){const _0x1ec806=a87_0x441c,_0x5040ee=_0x4a659d();while(!![]){try{const _0x2d7fff=-parseInt(_0x1ec806(0x154))/0x1*(-parseInt(_0x1ec806(0x17b))/0x2)+parseInt(_0x1ec806(0x18e))/0x3+-parseInt(_0x1ec806(0x15f))/0x4*(-parseInt(_0x1ec806(0x189))/0x5)+-parseInt(_0x1ec806(0x178))/0x6+parseInt(_0x1ec806(0x196))/0x7*(-parseInt(_0x1ec806(0x153))/0x8)+parseInt(_0x1ec806(0x181))/0x9+-parseInt(_0x1ec806(0x1a7))/0xa*(parseInt(_0x1ec806(0x18f))/0xb);if(_0x2d7fff===_0x4f7e31)break;else _0x5040ee['push'](_0x5040ee['shift']());}catch(_0x43a76e){_0x5040ee['push'](_0x5040ee['shift']());}}}(a87_0x4178,0xeb897));import a87_0x3e6c65 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';function a87_0x441c(_0x4162dc,_0x16c7f0){_0x4162dc=_0x4162dc-0x150;const _0x417809=a87_0x4178();let _0x441cf4=_0x417809[_0x4162dc];return _0x441cf4;}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(_0x24c895){const _0x5c2c67=a87_0x441c,_0x12f454=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x5c2c67(0x15d)](0x0,0xa)+')':VERSION,_0x5c6ff1=buildConfigFromFlags({}),_0x487bec=getCookie();console[_0x5c2c67(0x1a2)](),console[_0x5c2c67(0x1a2)](a87_0x3e6c65[_0x5c2c67(0x1a0)](CLI_BIN_NAME+_0x5c2c67(0x183))),console[_0x5c2c67(0x1a2)](a87_0x3e6c65['gray']('─'[_0x5c2c67(0x194)](0x32))),console[_0x5c2c67(0x1a2)](_0x5c2c67(0x164)+_0x12f454),console[_0x5c2c67(0x1a2)](_0x5c2c67(0x150)+process[_0x5c2c67(0x162)]),console['log']('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process['platform']+'\x20'+process[_0x5c2c67(0x1a1)]),console['log'](),console[_0x5c2c67(0x1a2)](a87_0x3e6c65['bold'](_0x5c2c67(0x18b))),console[_0x5c2c67(0x1a2)](a87_0x3e6c65[_0x5c2c67(0x18d)]('\x20\x20─'[_0x5c2c67(0x194)](0x1e)));const _0x144143=getGlobalConfigPath(),_0x3c9164=getProjectConfigPath();console[_0x5c2c67(0x1a2)](_0x5c2c67(0x158)+(_0x144143||a87_0x3e6c65[_0x5c2c67(0x18d)](_0x5c2c67(0x179)))),console['log']('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3c9164||a87_0x3e6c65[_0x5c2c67(0x18d)](_0x5c2c67(0x179)))),console[_0x5c2c67(0x1a2)](),console[_0x5c2c67(0x1a2)](a87_0x3e6c65['bold'](_0x5c2c67(0x185))),console[_0x5c2c67(0x1a2)](a87_0x3e6c65[_0x5c2c67(0x18d)](_0x5c2c67(0x19a)[_0x5c2c67(0x194)](0x1e)));const _0xb023fa=(_0x3ba51f,_0x7c8da0)=>{const _0x502175=_0x5c2c67;if(!_0x7c8da0){console[_0x502175(0x1a2)]('\x20\x20'+_0x3ba51f[_0x502175(0x17c)](0x11)+'\x20'+a87_0x3e6c65[_0x502175(0x18d)](_0x502175(0x1a4)));return;}const _0x2ee3fa=inspectCliConfigJsonFile(_0x7c8da0);if(_0x2ee3fa[_0x502175(0x19c)]==='ok')console[_0x502175(0x1a2)]('\x20\x20'+_0x3ba51f[_0x502175(0x17c)](0x11)+'\x20'+a87_0x3e6c65[_0x502175(0x186)](_0x502175(0x171)));else{if(_0x2ee3fa[_0x502175(0x19c)]==='empty')console['log']('\x20\x20'+_0x3ba51f['padEnd'](0x11)+'\x20'+a87_0x3e6c65[_0x502175(0x16b)](_0x502175(0x1a5)));else _0x2ee3fa[_0x502175(0x19c)]===_0x502175(0x1a6)?console[_0x502175(0x1a2)]('\x20\x20'+_0x3ba51f[_0x502175(0x17c)](0x11)+'\x20'+a87_0x3e6c65[_0x502175(0x18d)](_0x502175(0x151))):(console[_0x502175(0x1a2)]('\x20\x20'+_0x3ba51f['padEnd'](0x11)+'\x20'+a87_0x3e6c65['red'](_0x502175(0x180))),console[_0x502175(0x1a2)]('\x20\x20'+''[_0x502175(0x17c)](0x11)+'\x20'+a87_0x3e6c65['red'](_0x2ee3fa[_0x502175(0x168)])));}};_0xb023fa('Global',_0x144143),_0xb023fa(_0x5c2c67(0x17a),_0x3c9164),console[_0x5c2c67(0x1a2)](),console['log'](a87_0x3e6c65[_0x5c2c67(0x1a0)]('\x20\x20Merged\x20Config')),console[_0x5c2c67(0x1a2)](a87_0x3e6c65[_0x5c2c67(0x18d)]('\x20\x20─'['repeat'](0x1e))),console[_0x5c2c67(0x1a2)](_0x5c2c67(0x16a)+(_0x5c6ff1[_0x5c2c67(0x187)]||a87_0x3e6c65[_0x5c2c67(0x160)]('(not\x20set)'))),console['log'](_0x5c2c67(0x184)+_0x5c6ff1['env']),console[_0x5c2c67(0x1a2)](_0x5c2c67(0x18c)+_0x5c6ff1[_0x5c2c67(0x166)]),console[_0x5c2c67(0x1a2)](_0x5c2c67(0x152)+_0x5c6ff1['apiDir']),console[_0x5c2c67(0x1a2)](_0x5c2c67(0x1a3)+(_0x5c6ff1['defaultApp']||a87_0x3e6c65['gray'](_0x5c2c67(0x192)))),console['log'](_0x5c2c67(0x190)+(_0x5c6ff1[_0x5c2c67(0x15c)]||a87_0x3e6c65[_0x5c2c67(0x18d)](_0x5c2c67(0x192)))),console[_0x5c2c67(0x1a2)]('\x20\x20explicitAppName:\x20'+(_0x5c6ff1[_0x5c2c67(0x19d)]||a87_0x3e6c65[_0x5c2c67(0x18d)](_0x5c2c67(0x192)))),console['log'](_0x5c2c67(0x19e)+(_0x5c6ff1['format']||a87_0x3e6c65[_0x5c2c67(0x18d)](_0x5c2c67(0x197)+DEFAULT_CONFIG_VALUES['format']+')'))),console['log'](_0x5c2c67(0x159)+(_0x5c6ff1['pageSize']??a87_0x3e6c65[_0x5c2c67(0x18d)](_0x5c2c67(0x155)))),console[_0x5c2c67(0x1a2)](_0x5c2c67(0x175)+_0x5c6ff1[_0x5c2c67(0x167)]),console['log'](_0x5c2c67(0x188)+_0x5c6ff1[_0x5c2c67(0x191)]),console['log'](_0x5c2c67(0x19b)+(_0x5c6ff1[_0x5c2c67(0x193)]?a87_0x3e6c65[_0x5c2c67(0x186)](_0x5c2c67(0x16c)+_0x5c6ff1[_0x5c2c67(0x193)][_0x5c2c67(0x163)]+')'):_0x487bec?a87_0x3e6c65[_0x5c2c67(0x186)](_0x5c2c67(0x19f)+_0x487bec[_0x5c2c67(0x163)]+')'):a87_0x3e6c65[_0x5c2c67(0x18d)]('(none)')));const _0x9c4326=Object['keys'](_0x5c6ff1[_0x5c2c67(0x156)]);if(_0x9c4326[_0x5c2c67(0x163)]>0x0){console[_0x5c2c67(0x1a2)](),console[_0x5c2c67(0x1a2)](a87_0x3e6c65[_0x5c2c67(0x1a0)](_0x5c2c67(0x17f))),console[_0x5c2c67(0x1a2)](a87_0x3e6c65[_0x5c2c67(0x18d)](_0x5c2c67(0x19a)[_0x5c2c67(0x194)](0x1e)));for(const _0x22385d of _0x9c4326){const _0x34b677=_0x5c6ff1[_0x5c2c67(0x156)][_0x22385d],_0xddbd67=_0x22385d===_0x5c6ff1['defaultApp'],_0x11ef11=_0x22385d===_0x5c6ff1[_0x5c2c67(0x15c)],_0x29dc68=_0x11ef11?a87_0x3e6c65[_0x5c2c67(0x186)]('\x20←\x20current'):'',_0x1e0bb9=_0xddbd67?_0x5c2c67(0x17e):'';console[_0x5c2c67(0x1a2)]('\x20\x20'+_0x22385d+_0x1e0bb9+_0x29dc68),console[_0x5c2c67(0x1a2)](_0x5c2c67(0x157)+_0x34b677[_0x5c2c67(0x198)]);const _0x3d68f8=buildAppDoctorFields(_0x34b677,{'env':_0x5c6ff1[_0x5c2c67(0x15e)],'apiDir':_0x5c6ff1[_0x5c2c67(0x16e)]['apiDir']||DEFAULT_CONFIG_VALUES[_0x5c2c67(0x172)],'cookie':_0x5c6ff1[_0x5c2c67(0x193)]||_0x487bec||undefined,'accessKey':_0x5c6ff1[_0x5c2c67(0x199)]});console['log'](_0x5c2c67(0x174)+_0x3d68f8[_0x5c2c67(0x15e)][_0x5c2c67(0x182)]+'\x20\x20'+a87_0x3e6c65['gray']('('+_0x3d68f8[_0x5c2c67(0x15e)]['source']+')')),console['log'](_0x5c2c67(0x165)+_0x3d68f8[_0x5c2c67(0x172)]['value']+'\x20\x20'+a87_0x3e6c65[_0x5c2c67(0x18d)]('('+_0x3d68f8[_0x5c2c67(0x172)][_0x5c2c67(0x176)]+')'));const _0x534fcf=_0x3d68f8[_0x5c2c67(0x193)]['value']?a87_0x3e6c65[_0x5c2c67(0x186)](_0x5c2c67(0x16c)+_0x3d68f8['cookie'][_0x5c2c67(0x182)][_0x5c2c67(0x163)]+')'):a87_0x3e6c65[_0x5c2c67(0x18d)](_0x5c2c67(0x192));console[_0x5c2c67(0x1a2)](_0x5c2c67(0x195)+_0x534fcf+'\x20\x20'+a87_0x3e6c65[_0x5c2c67(0x18d)]('('+_0x3d68f8[_0x5c2c67(0x193)][_0x5c2c67(0x176)]+')'));const _0x3c4b71=_0x3d68f8['accessKey'][_0x5c2c67(0x182)]?a87_0x3e6c65[_0x5c2c67(0x186)](_0x5c2c67(0x16c)+_0x3d68f8[_0x5c2c67(0x199)][_0x5c2c67(0x182)][_0x5c2c67(0x163)]+')'):a87_0x3e6c65[_0x5c2c67(0x18d)]('(none)');console['log'](_0x5c2c67(0x16d)+_0x3c4b71+'\x20\x20'+a87_0x3e6c65[_0x5c2c67(0x18d)]('('+_0x3d68f8[_0x5c2c67(0x199)][_0x5c2c67(0x176)]+')'));}}console[_0x5c2c67(0x1a2)](),console['log'](a87_0x3e6c65[_0x5c2c67(0x1a0)](_0x5c2c67(0x18a))),console[_0x5c2c67(0x1a2)](a87_0x3e6c65[_0x5c2c67(0x18d)](_0x5c2c67(0x19a)['repeat'](0x1e))),console[_0x5c2c67(0x1a2)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x5c2c67(0x1a2)](_0x5c2c67(0x17d)+getUserDomain()),console[_0x5c2c67(0x1a2)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x5c2c67(0x1a2)](),console['log'](a87_0x3e6c65['bold'](_0x5c2c67(0x15b))),console['log'](a87_0x3e6c65[_0x5c2c67(0x18d)](_0x5c2c67(0x19a)[_0x5c2c67(0x194)](0x1e)));if(_0x487bec){const _0x4dcd43=await getIsSessionValid();console[_0x5c2c67(0x1a2)](_0x5c2c67(0x16f)+(_0x4dcd43?a87_0x3e6c65[_0x5c2c67(0x186)](_0x5c2c67(0x173)):a87_0x3e6c65[_0x5c2c67(0x160)](_0x5c2c67(0x177))));}else console[_0x5c2c67(0x1a2)](_0x5c2c67(0x16f)+a87_0x3e6c65[_0x5c2c67(0x160)](_0x5c2c67(0x169)));return console[_0x5c2c67(0x1a2)](),{'ok':!![]};}export const doctorDefinition={'service':a87_0x2bdbfd(0x170),'command':'check','description':a87_0x2bdbfd(0x15a),'risk':a87_0x2bdbfd(0x161),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a89_0x19e7db=a89_0x4dbd;(function(_0xf53752,_0x2b7460){const _0x32006a=a89_0x4dbd,_0x35b08d=_0xf53752();while(!![]){try{const _0x29bba8=parseInt(_0x32006a(0x104))/0x1+parseInt(_0x32006a(0x128))/0x2*(parseInt(_0x32006a(0x125))/0x3)+-parseInt(_0x32006a(0x126))/0x4*(parseInt(_0x32006a(0x11f))/0x5)+-parseInt(_0x32006a(0x112))/0x6*(parseInt(_0x32006a(0x12e))/0x7)+-parseInt(_0x32006a(0x111))/0x8+-parseInt(_0x32006a(0x110))/0x9*(parseInt(_0x32006a(0x113))/0xa)+parseInt(_0x32006a(0x12d))/0xb;if(_0x29bba8===_0x2b7460)break;else _0x35b08d['push'](_0x35b08d['shift']());}catch(_0x48e676){_0x35b08d['push'](_0x35b08d['shift']());}}}(a89_0x5a94,0xa4841));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';function a89_0x5a94(){const _0x2d92ee=['str','env','flagMissing','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','log','484911zzVtIg','Auto-confirm\x20prompts','write','\x20\x20Config:\x20','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','appcode','init','string','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','\x20config','join','validation','18kWOkJv','236296RJcSbs','216SwOVIB','2158630zIFwtx','../../commands/project/init.js','global','valid','message','project','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','Target\x20environment','toLocaleString','boolean','Usage:\x20','nonInteractive','2020KFCMEg','bool','appCode','\x0a✓\x20Successfully\x20initialized\x20','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','Write\x20to\x20global\x20config\x20instead\x20of\x20project','9IwjTME','10264FqbfTx','\x20\x20Default:\x20','456514dzGKTk','map','run','yes','cwd','18583158WSHcrw','133637OOrKKn'];a89_0x5a94=function(){return _0x2d92ee;};return a89_0x5a94();}import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x2fafab){return{'appCode':_0x2fafab,'appName':_0x2fafab};}function a89_0x4dbd(_0x17c3ff,_0x31b1f4){_0x17c3ff=_0x17c3ff-0x100;const _0x5a94de=a89_0x5a94();let _0x4dbde3=_0x5a94de[_0x17c3ff];return _0x4dbde3;}function writeInitConfig(_0x205363,_0x576c99,_0x453cd6){const _0x2baabd=a89_0x4dbd,_0x106218=resolveWriteConfigPath(_0x205363),_0x2f9162=buildCanonicalProjectConfig({},{'appCodes':_0x576c99[_0x2baabd(0x129)](_0x6ef12f=>_0x6ef12f[_0x2baabd(0x121)]),'env':_0x453cd6,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x2baabd(0x11b)]()}});writeConfigFile(_0x106218,_0x2f9162);const _0xada78e=_0x205363===_0x2baabd(0x115)?_0x2baabd(0x115):_0x2baabd(0x118);console[_0x2baabd(0x103)](_0x2baabd(0x122)+_0xada78e+_0x2baabd(0x10d)),console[_0x2baabd(0x103)]('\x20\x20Apps:\x20'+_0x576c99[_0x2baabd(0x129)](_0x1093d3=>_0x1093d3['appCode'])[_0x2baabd(0x10e)](',\x20')),console[_0x2baabd(0x103)](_0x2baabd(0x127)+_0x2f9162['defaultApp']),console[_0x2baabd(0x103)]('\x20\x20Env:\x20'+_0x2f9162[_0x2baabd(0x100)]),console[_0x2baabd(0x103)](_0x2baabd(0x107)+_0x106218);}async function runSmartInit(_0x4d05af){const _0x309804=a89_0x4dbd,_0x12bb1d=process[_0x309804(0x12c)](),_0x2d751e=_0x4d05af[_0x309804(0x120)](_0x309804(0x115))?'global':'project',_0x100bdc=_0x4d05af[_0x309804(0x12f)](_0x309804(0x100))||'production',_0x142c31=_0x4d05af[_0x309804(0x12f)](_0x309804(0x109))||undefined,_0x3e7613=_0x4d05af[_0x309804(0x120)]('project');if(_0x3e7613){const {initConfig:_0x6720e4}=await import(_0x309804(0x114));return _0x6720e4({'appcode':_0x142c31,'env':_0x100bdc,'autoYes':_0x4d05af[_0x309804(0x120)](_0x309804(0x12b))});}if(_0x2d751e===_0x309804(0x118)){const _0x1999c6=existsSync(resolve(_0x12bb1d,NEW_CONFIG_NAME)),_0x549748=LEGACY_CONFIG_NAMES['some'](_0x5b9d0e=>existsSync(resolve(_0x12bb1d,_0x5b9d0e)));if(_0x549748&&!_0x1999c6)return console[_0x309804(0x103)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x4d05af['nonInteractive'],{'yes':_0x4d05af[_0x309804(0x120)]('yes')});if(_0x1999c6)throw CliErrors[_0x309804(0x10f)](_0x309804(0x108),'Use\x20`'+CLI_BIN_NAME+_0x309804(0x123));}if(_0x142c31){const _0x1fe2a0=validateAppcode(_0x142c31);if(!_0x1fe2a0[_0x309804(0x116)])throw CliErrors[_0x309804(0x10f)](_0x1fe2a0[_0x309804(0x117)]);writeInitConfig(_0x2d751e,[syntheticApp(_0x142c31)],_0x100bdc);return;}if(_0x4d05af[_0x309804(0x11e)])throw CliErrors[_0x309804(0x101)]('appcode',_0x309804(0x11d)+CLI_BIN_NAME+_0x309804(0x102));const _0x18f766=getCookie(),_0x213ae8=await selectMultipleApps(_0x18f766),_0x3269dc=_0x213ae8==='custom'?[syntheticApp(await promptCustomAppcode())]:_0x213ae8;writeInitConfig(_0x2d751e,_0x3269dc,_0x100bdc);}const initFlags=[{'name':a89_0x19e7db(0x115),'type':a89_0x19e7db(0x11c),'description':a89_0x19e7db(0x124),'default':![]},{'name':a89_0x19e7db(0x100),'type':'string','description':a89_0x19e7db(0x11a),'default':'production','enum':[...RABETBASE_ENV_VALUES]},{'name':a89_0x19e7db(0x109),'type':a89_0x19e7db(0x10b),'description':'App\x20code\x20to\x20initialize\x20with'},{'name':a89_0x19e7db(0x118),'type':a89_0x19e7db(0x11c),'description':a89_0x19e7db(0x119),'default':![]},{'name':a89_0x19e7db(0x12b),'type':'boolean','description':a89_0x19e7db(0x105),'default':![]}];export const initDefinitions=[{'service':a89_0x19e7db(0x10a),'command':a89_0x19e7db(0x12a),'description':a89_0x19e7db(0x10c),'risk':a89_0x19e7db(0x106),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x14031b){return await runSmartInit(_0x14031b),{'ok':!![]};}}];
1
+ const a88_0x2d0fa0=a88_0x21ad;(function(_0x16b0ea,_0x36a6cf){const _0x5aa474=a88_0x21ad,_0x173029=_0x16b0ea();while(!![]){try{const _0x1cfe51=-parseInt(_0x5aa474(0x1b2))/0x1*(-parseInt(_0x5aa474(0x1ac))/0x2)+-parseInt(_0x5aa474(0x1a2))/0x3+-parseInt(_0x5aa474(0x184))/0x4*(-parseInt(_0x5aa474(0x19f))/0x5)+-parseInt(_0x5aa474(0x1a4))/0x6*(parseInt(_0x5aa474(0x1b4))/0x7)+-parseInt(_0x5aa474(0x196))/0x8+parseInt(_0x5aa474(0x193))/0x9*(parseInt(_0x5aa474(0x18a))/0xa)+parseInt(_0x5aa474(0x1a0))/0xb;if(_0x1cfe51===_0x36a6cf)break;else _0x173029['push'](_0x173029['shift']());}catch(_0x57305d){_0x173029['push'](_0x173029['shift']());}}}(a88_0xebaa,0xc28ab));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';function a88_0xebaa(){const _0x9cf29b=['validation','365469iVWJMV','yes','6eYOKOK','defaultApp','Use\x20`','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','some','bool','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','boolean','658064Ompsjf','\x20config','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','message','production','../../commands/project/init.js','1iIwEoG','App\x20code\x20to\x20initialize\x20with','5622631ferJvh','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','8abwvuJ','write','log','valid','\x20\x20Apps:\x20','flagMissing','4140ZkaecC','appCode','appcode','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','Target\x20environment','Auto-confirm\x20prompts','map','\x20\x20Default:\x20','str','3933IlLWSK','\x20\x20Config:\x20','global','3389048POLiUc','nonInteractive','project','cwd','Usage:\x20','env','run','init','custom','1821520jJMwea','9976692BqVLoY'];a88_0xebaa=function(){return _0x9cf29b;};return a88_0xebaa();}import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function a88_0x21ad(_0x2f8217,_0x252ef9){_0x2f8217=_0x2f8217-0x183;const _0xebaa6b=a88_0xebaa();let _0x21adac=_0xebaa6b[_0x2f8217];return _0x21adac;}function syntheticApp(_0xd7612c){return{'appCode':_0xd7612c,'appName':_0xd7612c};}function writeInitConfig(_0x15ba7e,_0x5bd7c6,_0x2f4011){const _0x57726d=a88_0x21ad,_0x1e05c1=resolveWriteConfigPath(_0x15ba7e),_0x4717ab=buildCanonicalProjectConfig({},{'appCodes':_0x5bd7c6[_0x57726d(0x190)](_0x4b2fcf=>_0x4b2fcf[_0x57726d(0x18b)]),'env':_0x2f4011,'metadata':{'version':getCliVersion(),'createdAt':new Date()['toLocaleString']()}});writeConfigFile(_0x1e05c1,_0x4717ab);const _0x196455=_0x15ba7e===_0x57726d(0x195)?'global':_0x57726d(0x198);console[_0x57726d(0x186)]('\x0a✓\x20Successfully\x20initialized\x20'+_0x196455+_0x57726d(0x1ad)),console[_0x57726d(0x186)](_0x57726d(0x188)+_0x5bd7c6[_0x57726d(0x190)](_0xbe2588=>_0xbe2588[_0x57726d(0x18b)])['join'](',\x20')),console[_0x57726d(0x186)](_0x57726d(0x191)+_0x4717ab[_0x57726d(0x1a5)]),console[_0x57726d(0x186)]('\x20\x20Env:\x20'+_0x4717ab[_0x57726d(0x19b)]),console[_0x57726d(0x186)](_0x57726d(0x194)+_0x1e05c1);}async function runSmartInit(_0x36e82d){const _0x523c54=a88_0x21ad,_0x24e6e7=process[_0x523c54(0x199)](),_0x5825cd=_0x36e82d[_0x523c54(0x1a9)](_0x523c54(0x195))?_0x523c54(0x195):_0x523c54(0x198),_0x426011=_0x36e82d['str'](_0x523c54(0x19b))||'production',_0x42d1a=_0x36e82d[_0x523c54(0x192)]('appcode')||undefined,_0x4da34c=_0x36e82d['bool'](_0x523c54(0x198));if(_0x4da34c){const {initConfig:_0x51201a}=await import(_0x523c54(0x1b1));return _0x51201a({'appcode':_0x42d1a,'env':_0x426011,'autoYes':_0x36e82d[_0x523c54(0x1a9)](_0x523c54(0x1a3))});}if(_0x5825cd==='project'){const _0x24cb0f=existsSync(resolve(_0x24e6e7,NEW_CONFIG_NAME)),_0x562909=LEGACY_CONFIG_NAMES[_0x523c54(0x1a8)](_0xc6d11c=>existsSync(resolve(_0x24e6e7,_0xc6d11c)));if(_0x562909&&!_0x24cb0f)return console[_0x523c54(0x186)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x36e82d[_0x523c54(0x197)],{'yes':_0x36e82d['bool'](_0x523c54(0x1a3))});if(_0x24cb0f)throw CliErrors[_0x523c54(0x1a1)](_0x523c54(0x183),_0x523c54(0x1a6)+CLI_BIN_NAME+_0x523c54(0x18d));}if(_0x42d1a){const _0x4fdc32=validateAppcode(_0x42d1a);if(!_0x4fdc32[_0x523c54(0x187)])throw CliErrors[_0x523c54(0x1a1)](_0x4fdc32[_0x523c54(0x1af)]);writeInitConfig(_0x5825cd,[syntheticApp(_0x42d1a)],_0x426011);return;}if(_0x36e82d['nonInteractive'])throw CliErrors[_0x523c54(0x189)](_0x523c54(0x18c),_0x523c54(0x19a)+CLI_BIN_NAME+_0x523c54(0x1aa));const _0x375f24=getCookie(),_0x5b73c8=await selectMultipleApps(_0x375f24),_0x1da8fb=_0x5b73c8===_0x523c54(0x19e)?[syntheticApp(await promptCustomAppcode())]:_0x5b73c8;writeInitConfig(_0x5825cd,_0x1da8fb,_0x426011);}const initFlags=[{'name':'global','type':a88_0x2d0fa0(0x1ab),'description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a88_0x2d0fa0(0x19b),'type':'string','description':a88_0x2d0fa0(0x18e),'default':a88_0x2d0fa0(0x1b0),'enum':[...RABETBASE_ENV_VALUES]},{'name':a88_0x2d0fa0(0x18c),'type':'string','description':a88_0x2d0fa0(0x1b3)},{'name':a88_0x2d0fa0(0x198),'type':a88_0x2d0fa0(0x1ab),'description':a88_0x2d0fa0(0x1ae),'default':![]},{'name':a88_0x2d0fa0(0x1a3),'type':a88_0x2d0fa0(0x1ab),'description':a88_0x2d0fa0(0x18f),'default':![]}];export const initDefinitions=[{'service':a88_0x2d0fa0(0x19d),'command':a88_0x2d0fa0(0x19c),'description':a88_0x2d0fa0(0x1a7),'risk':a88_0x2d0fa0(0x185),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x238881){return await runSmartInit(_0x238881),{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a90_0x3ef0(){const _0x46c6e8=['3341994oruOHe','1140gaxDmc','704UaSVaE','8OrBVnP','2340423GHqWaj','257044IIViSl','351684TvFzQP','165KWYKPB','795590jLLAvS','7IpAniS','2493396msbaZD'];a90_0x3ef0=function(){return _0x46c6e8;};return a90_0x3ef0();}(function(_0x59b5a8,_0x3c64bb){const _0x36a402=a90_0x1e12,_0x46406d=_0x59b5a8();while(!![]){try{const _0x26db7c=-parseInt(_0x36a402(0x126))/0x1+parseInt(_0x36a402(0x12b))/0x2+parseInt(_0x36a402(0x121))/0x3+parseInt(_0x36a402(0x123))/0x4*(parseInt(_0x36a402(0x122))/0x5)+parseInt(_0x36a402(0x127))/0x6*(-parseInt(_0x36a402(0x12a))/0x7)+-parseInt(_0x36a402(0x124))/0x8*(parseInt(_0x36a402(0x125))/0x9)+-parseInt(_0x36a402(0x129))/0xa*(parseInt(_0x36a402(0x128))/0xb);if(_0x26db7c===_0x3c64bb)break;else _0x46406d['push'](_0x46406d['shift']());}catch(_0x20a5cf){_0x46406d['push'](_0x46406d['shift']());}}}(a90_0x3ef0,0x9a3b6));function a90_0x1e12(_0x50abf4,_0x3ef1f8){_0x50abf4=_0x50abf4-0x121;const _0x3ef011=a90_0x3ef0();let _0x1e12a7=_0x3ef011[_0x50abf4];return _0x1e12a7;}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
1
+ function a89_0xedc0(_0x677fd7,_0x537d24){_0x677fd7=_0x677fd7-0x1c2;const _0x2bc56d=a89_0x2bc5();let _0xedc0fa=_0x2bc56d[_0x677fd7];return _0xedc0fa;}(function(_0x570d0a,_0x596e16){const _0xd3e5ab=a89_0xedc0,_0x17a247=_0x570d0a();while(!![]){try{const _0x33c3c5=-parseInt(_0xd3e5ab(0x1c9))/0x1+parseInt(_0xd3e5ab(0x1cb))/0x2*(-parseInt(_0xd3e5ab(0x1c5))/0x3)+-parseInt(_0xd3e5ab(0x1c2))/0x4+parseInt(_0xd3e5ab(0x1ca))/0x5*(-parseInt(_0xd3e5ab(0x1c6))/0x6)+parseInt(_0xd3e5ab(0x1c7))/0x7+-parseInt(_0xd3e5ab(0x1c3))/0x8*(-parseInt(_0xd3e5ab(0x1c8))/0x9)+parseInt(_0xd3e5ab(0x1c4))/0xa;if(_0x33c3c5===_0x596e16)break;else _0x17a247['push'](_0x17a247['shift']());}catch(_0x3f71e7){_0x17a247['push'](_0x17a247['shift']());}}}(a89_0x2bc5,0xd91f3));function a89_0x2bc5(){const _0x176125=['574fkEkrL','3597444JBkUed','1000GgmDGi','29282220EQvtKc','2163MhYDys','6jIVvYa','6749778RBmeOz','86625CgLlPN','1361340edtOOt','8693210iSnXAo'];a89_0x2bc5=function(){return _0x176125;};return a89_0x2bc5();}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- function a91_0x489a(_0x2bcd09,_0x519a87){_0x2bcd09=_0x2bcd09-0x160;const _0xa4f0b2=a91_0xa4f0();let _0x489a7d=_0xa4f0b2[_0x2bcd09];return _0x489a7d;}const a91_0x232be8=a91_0x489a;(function(_0x4750d9,_0x158244){const _0x41019a=a91_0x489a,_0x54d5fe=_0x4750d9();while(!![]){try{const _0x56e6d7=-parseInt(_0x41019a(0x180))/0x1*(-parseInt(_0x41019a(0x173))/0x2)+-parseInt(_0x41019a(0x163))/0x3+parseInt(_0x41019a(0x17e))/0x4+-parseInt(_0x41019a(0x165))/0x5*(-parseInt(_0x41019a(0x171))/0x6)+-parseInt(_0x41019a(0x17d))/0x7*(parseInt(_0x41019a(0x16f))/0x8)+parseInt(_0x41019a(0x17f))/0x9+-parseInt(_0x41019a(0x16e))/0xa;if(_0x56e6d7===_0x158244)break;else _0x54d5fe['push'](_0x54d5fe['shift']());}catch(_0x557dc2){_0x54d5fe['push'](_0x54d5fe['shift']());}}}(a91_0xa4f0,0xe4d93));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a91_0x232be8(0x179);const NUDGE_SUPPRESSED_CODES=new Set([a91_0x232be8(0x161),a91_0x232be8(0x162),a91_0x232be8(0x17c),a91_0x232be8(0x166),a91_0x232be8(0x183),a91_0x232be8(0x170),a91_0x232be8(0x172),a91_0x232be8(0x167)]),defaultWriter=_0x4e087a=>{const _0x13d402=a91_0x232be8;process['stderr'][_0x13d402(0x181)](_0x4e087a);};export function shouldNudgeForError(_0x2a8b86,_0x5daa05){const _0x3100c4=a91_0x232be8;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x5daa05['service']===_0x3100c4(0x16a)&&_0x5daa05[_0x3100c4(0x168)]===_0x3100c4(0x178))return![];if(_0x2a8b86 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x3100c4(0x164)](_0x2a8b86['code']);return!![];}export function printIssueReportNudgeForError(_0x127de2,_0x3eb62a,_0x395a2d=defaultWriter){if(!shouldNudgeForError(_0x127de2,_0x3eb62a))return;const _0x5b5b36=buildSuggestedTitle(_0x127de2,_0x3eb62a);_0x395a2d(formatNudge(_0x5b5b36));}function buildSuggestedTitle(_0x5d1ee8,_0x40b1d6){const _0x52aa2e=a91_0x232be8,_0x3b6757=_0x5d1ee8 instanceof Error?_0x5d1ee8['message']:String(_0x5d1ee8),_0x376948=_0x3b6757['replace'](/[\r\n]+/g,'\x20')[_0x52aa2e(0x17b)](/\s+/g,'\x20')[_0x52aa2e(0x17a)]()[_0x52aa2e(0x177)](0x0,0x78)['replace'](/"/g,'\x5c\x22'),_0x1c9d02=CLI_BIN_NAME+'\x20'+_0x40b1d6[_0x52aa2e(0x16d)]+'\x20'+_0x40b1d6['command'];return _0x376948[_0x52aa2e(0x160)]>0x0?_0x1c9d02+':\x20'+_0x376948:_0x1c9d02;}function formatNudge(_0x5a7c0f){const _0x364870=a91_0x232be8;return['','Hit\x20a\x20'+CLI_BIN_NAME+_0x364870(0x169),'\x20\x20'+CLI_BIN_NAME+_0x364870(0x182),_0x364870(0x174)+_0x5a7c0f+_0x364870(0x176),'\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22',_0x364870(0x16c),'\x20\x20Set\x20'+NUDGE_OPT_OUT_ENV+_0x364870(0x175),''][_0x364870(0x16b)]('\x0a');}function a91_0xa4f0(){const _0x53ac08=['flag_missing','5898KTSXyW','validation_error','40ztjmfk','\x20\x20\x20\x20--title\x20\x22','=1\x20to\x20silence\x20this\x20hint.','\x22\x20\x5c','slice','report','RABETBASE_DISABLE_ISSUE_NUDGE','trim','replace','config_missing','3060638KWbPvh','2328588XnVsFP','1225971dxidma','66213yuTIBb','write','\x20issue\x20report\x20\x5c','unknown_command','length','cancelled','auth_required','1340478JzXfdx','has','2205pjONOq','not_in_project','network_error','command','\x20bug?\x20Help\x20us\x20fix\x20it:','issue','join','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','service','2174720pusTyA','16vLuVdU'];a91_0xa4f0=function(){return _0x53ac08;};return a91_0xa4f0();}
1
+ function a90_0xf892(){const _0x2e0d50=['\x20bug?\x20Help\x20us\x20fix\x20it:','\x20\x20Set\x20','766260SQUiZC','55DSFkBW','4WnvXTE','=1\x20to\x20silence\x20this\x20hint.','7348NIgxHD','config_missing','slice','154074UozfgE','unknown_command','cancelled','188388uhaIaU','6867025OAVUoO','issue','flag_missing','trim','RABETBASE_DISABLE_ISSUE_NUDGE','\x20issue\x20report\x20\x5c','49WrTltS','stderr','\x20\x20\x20\x20--title\x20\x22','code','not_in_project','replace','length','service','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','command','56svHVBP','633180iETrVD','208473crvLEd','Hit\x20a\x20','12NHYXsk','join'];a90_0xf892=function(){return _0x2e0d50;};return a90_0xf892();}const a90_0x3c271e=a90_0x102e;(function(_0x2af2ad,_0x45d95d){const _0x297b80=a90_0x102e,_0x4661ef=_0x2af2ad();while(!![]){try{const _0x41ea6a=parseInt(_0x297b80(0xeb))/0x1*(-parseInt(_0x297b80(0xcb))/0x2)+parseInt(_0x297b80(0xe4))/0x3*(-parseInt(_0x297b80(0xc9))/0x4)+-parseInt(_0x297b80(0xea))/0x5+parseInt(_0x297b80(0xce))/0x6*(-parseInt(_0x297b80(0xd8))/0x7)+-parseInt(_0x297b80(0xe2))/0x8*(-parseInt(_0x297b80(0xd1))/0x9)+-parseInt(_0x297b80(0xe3))/0xa+parseInt(_0x297b80(0xd2))/0xb*(parseInt(_0x297b80(0xe6))/0xc);if(_0x41ea6a===_0x45d95d)break;else _0x4661ef['push'](_0x4661ef['shift']());}catch(_0x428a7c){_0x4661ef['push'](_0x4661ef['shift']());}}}(a90_0xf892,0x19203));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a90_0x3c271e(0xd6);function a90_0x102e(_0x486c29,_0x2525d3){_0x486c29=_0x486c29-0xc9;const _0xf892fe=a90_0xf892();let _0x102e2c=_0xf892fe[_0x486c29];return _0x102e2c;}const NUDGE_SUPPRESSED_CODES=new Set([a90_0x3c271e(0xd0),'auth_required',a90_0x3c271e(0xcc),a90_0x3c271e(0xdc),a90_0x3c271e(0xcf),a90_0x3c271e(0xd4),'validation_error','network_error']),defaultWriter=_0x556fe0=>{const _0xa59fcd=a90_0x3c271e;process[_0xa59fcd(0xd9)]['write'](_0x556fe0);};export function shouldNudgeForError(_0x237bd6,_0x5324a9){const _0x5163d5=a90_0x3c271e;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x5324a9[_0x5163d5(0xdf)]===_0x5163d5(0xd3)&&_0x5324a9[_0x5163d5(0xe1)]==='report')return![];if(_0x237bd6 instanceof CliError)return!NUDGE_SUPPRESSED_CODES['has'](_0x237bd6[_0x5163d5(0xdb)]);return!![];}export function printIssueReportNudgeForError(_0x4ef5f8,_0x48625,_0x163c70=defaultWriter){if(!shouldNudgeForError(_0x4ef5f8,_0x48625))return;const _0x213c9e=buildSuggestedTitle(_0x4ef5f8,_0x48625);_0x163c70(formatNudge(_0x213c9e));}function buildSuggestedTitle(_0x2b5ba8,_0xe4ceaa){const _0x4a0945=a90_0x3c271e,_0x41587a=_0x2b5ba8 instanceof Error?_0x2b5ba8['message']:String(_0x2b5ba8),_0x607d02=_0x41587a[_0x4a0945(0xdd)](/[\r\n]+/g,'\x20')[_0x4a0945(0xdd)](/\s+/g,'\x20')[_0x4a0945(0xd5)]()[_0x4a0945(0xcd)](0x0,0x78)[_0x4a0945(0xdd)](/"/g,'\x5c\x22'),_0x2ff5ce=CLI_BIN_NAME+'\x20'+_0xe4ceaa[_0x4a0945(0xdf)]+'\x20'+_0xe4ceaa[_0x4a0945(0xe1)];return _0x607d02[_0x4a0945(0xde)]>0x0?_0x2ff5ce+':\x20'+_0x607d02:_0x2ff5ce;}function formatNudge(_0x3012ff){const _0x3fd1ca=a90_0x3c271e;return['',_0x3fd1ca(0xe5)+CLI_BIN_NAME+_0x3fd1ca(0xe8),'\x20\x20'+CLI_BIN_NAME+_0x3fd1ca(0xd7),_0x3fd1ca(0xda)+_0x3012ff+'\x22\x20\x5c','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22',_0x3fd1ca(0xe0),_0x3fd1ca(0xe9)+NUDGE_OPT_OUT_ENV+_0x3fd1ca(0xca),''][_0x3fd1ca(0xe7)]('\x0a');}