@lovrabet/rabetbase-cli 2.3.3-beta.4 → 2.3.4-beta.1

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 (219) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-selector.js +1 -1
  46. package/lib/commands/common/flags.js +1 -1
  47. package/lib/commands/common/validate.js +1 -1
  48. package/lib/commands/config/get.js +1 -1
  49. package/lib/commands/config/index.js +1 -1
  50. package/lib/commands/config/list.js +1 -1
  51. package/lib/commands/config/set.js +1 -1
  52. package/lib/commands/config/shared.js +1 -1
  53. package/lib/commands/data/filter.js +1 -1
  54. package/lib/commands/data/getOne.js +1 -1
  55. package/lib/commands/data/index.js +1 -1
  56. package/lib/commands/data/shared.js +1 -1
  57. package/lib/commands/dataset/business-group-update.js +1 -1
  58. package/lib/commands/dataset/capability.js +1 -1
  59. package/lib/commands/dataset/delete.js +1 -1
  60. package/lib/commands/dataset/detail.js +1 -1
  61. package/lib/commands/dataset/extend-update.js +1 -1
  62. package/lib/commands/dataset/field-update.js +1 -1
  63. package/lib/commands/dataset/generate.js +1 -1
  64. package/lib/commands/dataset/index.js +1 -1
  65. package/lib/commands/dataset/list.js +1 -1
  66. package/lib/commands/dataset/operations.js +1 -1
  67. package/lib/commands/dataset/relation-audit.js +1 -1
  68. package/lib/commands/dataset/relation-create.js +1 -1
  69. package/lib/commands/dataset/relation-delete.js +1 -1
  70. package/lib/commands/dataset/relation-shared.js +1 -1
  71. package/lib/commands/dataset/relation-update.js +1 -1
  72. package/lib/commands/dataset/relations.js +1 -1
  73. package/lib/commands/dataset/rename.js +1 -1
  74. package/lib/commands/dataset/restore.js +1 -1
  75. package/lib/commands/db/analyze-cancel.js +1 -1
  76. package/lib/commands/db/analyze-start.js +1 -1
  77. package/lib/commands/db/analyze-status.js +1 -1
  78. package/lib/commands/db/create.js +1 -1
  79. package/lib/commands/db/delete.js +1 -1
  80. package/lib/commands/db/detail.js +1 -1
  81. package/lib/commands/db/diff.js +1 -1
  82. package/lib/commands/db/index.js +1 -1
  83. package/lib/commands/db/list.js +1 -1
  84. package/lib/commands/db/shared.js +1 -1
  85. package/lib/commands/db/tables.js +1 -1
  86. package/lib/commands/db/test.js +1 -1
  87. package/lib/commands/db/update.js +1 -1
  88. package/lib/commands/doctor.js +1 -1
  89. package/lib/commands/init/index.js +1 -1
  90. package/lib/commands/issue/index.js +1 -1
  91. package/lib/commands/issue/nudge.js +1 -1
  92. package/lib/commands/issue/report.js +1 -1
  93. package/lib/commands/issue/shared.js +1 -1
  94. package/lib/commands/logs/index.js +1 -1
  95. package/lib/commands/menu/index.js +1 -1
  96. package/lib/commands/menu/list.js +1 -1
  97. package/lib/commands/menu/shared/compare-table.js +1 -1
  98. package/lib/commands/menu/shared/index.js +1 -1
  99. package/lib/commands/menu/shared/inquirer.js +1 -1
  100. package/lib/commands/menu/shared/local-pages.js +1 -1
  101. package/lib/commands/menu/shared/logic.js +1 -1
  102. package/lib/commands/menu/shared/service.js +1 -1
  103. package/lib/commands/menu/shared/sync-core.js +1 -1
  104. package/lib/commands/menu/shared/update-core.js +1 -1
  105. package/lib/commands/menu/shared/valid-url.js +1 -1
  106. package/lib/commands/menu/sync.js +1 -1
  107. package/lib/commands/menu/update.js +1 -1
  108. package/lib/commands/page/generate-start.js +1 -1
  109. package/lib/commands/page/generate-status.js +1 -1
  110. package/lib/commands/page/index.js +1 -1
  111. package/lib/commands/page/pull.js +1 -1
  112. package/lib/commands/page/push.js +1 -1
  113. package/lib/commands/page/relation-audit.js +1 -1
  114. package/lib/commands/page/shared.js +1 -1
  115. package/lib/commands/page/standard-page-status.js +1 -1
  116. package/lib/commands/page/sync.js +1 -1
  117. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  118. package/lib/commands/project/create/format-elapsed.js +1 -1
  119. package/lib/commands/project/create/main.js +1 -1
  120. package/lib/commands/project/create/non-interactive.js +1 -1
  121. package/lib/commands/project/create/project-template-path.js +1 -1
  122. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  123. package/lib/commands/project/create/use-format-code.js +1 -1
  124. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  125. package/lib/commands/project/index.js +1 -1
  126. package/lib/commands/project/init.js +1 -1
  127. package/lib/commands/project/upgrade.js +1 -1
  128. package/lib/commands/registry.js +1 -1
  129. package/lib/commands/run/index.js +1 -1
  130. package/lib/commands/schema.js +1 -1
  131. package/lib/commands/sql/create.js +1 -1
  132. package/lib/commands/sql/delete.js +1 -1
  133. package/lib/commands/sql/detail.js +1 -1
  134. package/lib/commands/sql/exec.js +1 -1
  135. package/lib/commands/sql/index.js +1 -1
  136. package/lib/commands/sql/list.js +1 -1
  137. package/lib/commands/sql/pull.js +1 -1
  138. package/lib/commands/sql/push.js +1 -1
  139. package/lib/commands/sql/save.js +1 -1
  140. package/lib/commands/sql/shared.js +1 -1
  141. package/lib/commands/sql/status.js +1 -1
  142. package/lib/commands/sql/validate.js +1 -1
  143. package/lib/commands/workspace/index.js +1 -1
  144. package/lib/config/schema.js +1 -1
  145. package/lib/constant/cdn.js +1 -1
  146. package/lib/constant/cli.js +1 -1
  147. package/lib/constant/defaults.js +1 -1
  148. package/lib/constant/domain.js +1 -1
  149. package/lib/constant/env.js +1 -1
  150. package/lib/constant/output.js +1 -1
  151. package/lib/constant/paths.js +1 -1
  152. package/lib/constant/risk.js +1 -1
  153. package/lib/context/app-resolver.js +1 -1
  154. package/lib/context/auth-resolver.js +1 -1
  155. package/lib/context/config-loader.js +1 -1
  156. package/lib/context.js +1 -1
  157. package/lib/core/alias-resolver.js +1 -1
  158. package/lib/core/api-client.js +1 -1
  159. package/lib/core/bff/config.js +1 -1
  160. package/lib/core/bff/file-system.js +1 -1
  161. package/lib/core/bff/hash.js +1 -1
  162. package/lib/core/bff/lock.js +1 -1
  163. package/lib/core/bff/utils.js +1 -1
  164. package/lib/core/db-resolver.js +1 -1
  165. package/lib/core/page/file-system.js +1 -1
  166. package/lib/core/page/hash.js +1 -1
  167. package/lib/core/page/lock.js +1 -1
  168. package/lib/core/sql-sync/config.js +1 -1
  169. package/lib/core/sql-sync/file-system.js +1 -1
  170. package/lib/core/sql-sync/hash.js +1 -1
  171. package/lib/core/sql-sync/lock.js +1 -1
  172. package/lib/core/sql-sync/utils.js +1 -1
  173. package/lib/core/sql-validator.js +1 -1
  174. package/lib/errors.js +1 -1
  175. package/lib/framework/build-all-flags.js +1 -1
  176. package/lib/framework/flags.js +1 -1
  177. package/lib/framework/help.js +1 -1
  178. package/lib/framework/index.js +1 -1
  179. package/lib/framework/output.js +1 -1
  180. package/lib/framework/response.js +1 -1
  181. package/lib/framework/runner-alias.js +1 -1
  182. package/lib/framework/runner.js +1 -1
  183. package/lib/framework/schema-export.js +1 -1
  184. package/lib/framework/types.js +1 -1
  185. package/lib/generated/build-info.js +1 -1
  186. package/lib/help.js +1 -1
  187. package/lib/skills/main.js +1 -1
  188. package/lib/skills/npx-skills-add.js +1 -1
  189. package/lib/telemetry/cli-command-trace.js +1 -1
  190. package/lib/telemetry/cli-help-trace.js +1 -1
  191. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  192. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  193. package/lib/telemetry/send-cli-trace-log.js +1 -1
  194. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  195. package/lib/utils/ai_config.js +1 -1
  196. package/lib/utils/apply-jq-filter.js +1 -1
  197. package/lib/utils/cdn-config.js +1 -1
  198. package/lib/utils/check-sdk-version.js +1 -1
  199. package/lib/utils/cli-version-check.js +1 -1
  200. package/lib/utils/cli-version-policy.js +1 -1
  201. package/lib/utils/config.js +1 -1
  202. package/lib/utils/copy-directory.js +1 -1
  203. package/lib/utils/entity-with-id.js +1 -1
  204. package/lib/utils/file-utils.js +1 -1
  205. package/lib/utils/guides-cdn.js +1 -1
  206. package/lib/utils/http-client.js +1 -1
  207. package/lib/utils/is-non-interactive.js +1 -1
  208. package/lib/utils/logger.js +1 -1
  209. package/lib/utils/params.js +1 -1
  210. package/lib/utils/platform.js +1 -1
  211. package/lib/utils/rules-cdn.js +1 -1
  212. package/lib/utils/sleep.js +1 -1
  213. package/lib/utils/template-replacer.js +1 -1
  214. package/lib/utils/update-notice.js +1 -1
  215. package/lib/utils/version.js +1 -1
  216. package/lib/utils/with-active-cookie.js +1 -1
  217. package/lib/utils/write-cli-side-channel.js +1 -1
  218. package/package.json +2 -2
  219. package/lib/commands/app/use.js +0 -1
@@ -1 +1 @@
1
- function a74_0xde17(_0x1d933c,_0x56c411){_0x1d933c=_0x1d933c-0x170;const _0x50026a=a74_0x5002();let _0xde17bb=_0x50026a[_0x1d933c];return _0xde17bb;}function a74_0x5002(){const _0x1bec88=['Would\x20restore\x20','Restore\x20all\x20deleted\x20datasets\x20under\x20this\x20database\x20connection\x20id','No\x20deleted\x20dataset\x20found\x20for\x20','expected-count','POST','dataset','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','\x20dataset(s);\x20','dbId','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','restore','description','confirm','365670HVbrZo','id=','boolean','name','isArray','message','code','appCode','dbName','11435103ZtcKWo','245xVFFkl','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','map','\x20failed','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','tableName','Restore\x20deleted\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20deleted\x20datasets\x20under\x20a\x20db\x20id','159400HPFvMn','validation','filter','push','Restored\x20','relationPages','dbtableConfig','\x20dataset(s)','dbid','dbid=','411985FZYiBR','1188186fcKkKs','source','Required\x20to\x20execute\x20dataset\x20restore','high-risk-write','num','length','number','96596VEogAm','str','\x20deleted\x20dataset(s)\x20and\x20related\x20deleted\x20page/menu\x20records.','8wQUuZO','--confirm\x20is\x20required\x20to\x20restore\x20datasets.','1165530ECmBwI'];a74_0x5002=function(){return _0x1bec88;};return a74_0x5002();}const a74_0x349733=a74_0xde17;(function(_0x215dd3,_0x5cae5f){const _0x58cce8=a74_0xde17,_0x3870e9=_0x215dd3();while(!![]){try{const _0x222da7=-parseInt(_0x58cce8(0x1a1))/0x1+parseInt(_0x58cce8(0x17e))/0x2+-parseInt(_0x58cce8(0x19a))/0x3*(-parseInt(_0x58cce8(0x1a4))/0x4)+-parseInt(_0x58cce8(0x199))/0x5+parseInt(_0x58cce8(0x170))/0x6+parseInt(_0x58cce8(0x188))/0x7*(parseInt(_0x58cce8(0x18f))/0x8)+-parseInt(_0x58cce8(0x187))/0x9;if(_0x222da7===_0x5cae5f)break;else _0x3870e9['push'](_0x3870e9['shift']());}catch(_0x1a5e9f){_0x3870e9['push'](_0x3870e9['shift']());}}}(a74_0x5002,0x65d05));import{listDatasets,restoreDataset}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const DATASET_ID_FLAG={'name':'id','type':a74_0x349733(0x1a0),'description':'Dataset\x20id'},DBID_FLAG={'name':a74_0x349733(0x197),'type':a74_0x349733(0x1a0),'description':a74_0x349733(0x172)},CONFIRM_FLAG={'name':a74_0x349733(0x17d),'type':a74_0x349733(0x180),'description':a74_0x349733(0x19c)},EXPECTED_COUNT_FLAG={'name':a74_0x349733(0x174),'type':a74_0x349733(0x1a0),'description':a74_0x349733(0x18c)};export const datasetRestore={'service':a74_0x349733(0x176),'command':a74_0x349733(0x17b),'description':a74_0x349733(0x18e),'risk':a74_0x349733(0x19d),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5138fb){const _0x1276d1=a74_0x349733,_0x3a4bb4=_0x5138fb[_0x1276d1(0x19e)]('id'),_0x307cb2=_0x5138fb[_0x1276d1(0x1a2)](_0x1276d1(0x184)),_0x5268bf=_0x5138fb['num'](_0x1276d1(0x197)),_0x4c165d=[_0x3a4bb4>0x0,Boolean(_0x307cb2),_0x5268bf>0x0][_0x1276d1(0x191)](Boolean);if(_0x4c165d[_0x1276d1(0x19f)]===0x0)throw CliErrors['validation'](_0x1276d1(0x17a));if(_0x4c165d['length']>0x1)throw CliErrors[_0x1276d1(0x190)]('Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.');},async 'dryRun'(_0xa1dbc){const _0xb6b6cc=a74_0x349733,_0x390f85=await resolveTargets(_0xa1dbc);return{'method':_0xb6b6cc(0x175),'url':'/smartapi/dataset/restore-dataset','body':{'appCode':_0xa1dbc['appCode'],'count':_0x390f85['length'],'datasets':_0x390f85},'description':_0xb6b6cc(0x171)+_0x390f85[_0xb6b6cc(0x19f)]+_0xb6b6cc(0x1a3)};},async 'execute'(_0xc66008){const _0x3ac9b7=a74_0x349733;if(!_0xc66008['bool'](_0x3ac9b7(0x17d)))throw CliErrors[_0x3ac9b7(0x190)](_0x3ac9b7(0x1a5),_0x3ac9b7(0x177));const _0x86a538=await resolveTargets(_0xc66008),_0x4d205a=[],_0x3786ba=[];for(const _0xc90cf2 of _0x86a538){try{await restoreDataset(_0xc66008['appCode'],_0xc90cf2['id']),_0x4d205a['push'](_0xc90cf2);}catch(_0x1c66c7){_0x3786ba[_0x3ac9b7(0x192)]({..._0xc90cf2,'error':_0x1c66c7 instanceof Error?_0x1c66c7[_0x3ac9b7(0x183)]:String(_0x1c66c7)});}}if(_0x3786ba[_0x3ac9b7(0x19f)]>0x0)return{'ok':![],'data':{'requested':_0x86a538[_0x3ac9b7(0x19f)],'restoredCount':_0x4d205a[_0x3ac9b7(0x19f)],'failedCount':_0x3786ba[_0x3ac9b7(0x19f)],'restored':_0x4d205a,'failed':_0x3786ba},'message':'Restored\x20'+_0x4d205a[_0x3ac9b7(0x19f)]+'/'+_0x86a538['length']+_0x3ac9b7(0x178)+_0x3786ba[_0x3ac9b7(0x19f)]+_0x3ac9b7(0x18b)};return{'ok':!![],'data':{'requested':_0x86a538[_0x3ac9b7(0x19f)],'restoredCount':_0x4d205a['length'],'restored':_0x4d205a},'message':_0x3ac9b7(0x193)+_0x4d205a[_0x3ac9b7(0x19f)]+_0x3ac9b7(0x196)};}};async function resolveTargets(_0x3d98a2){const _0x136c19=a74_0x349733,_0x3f4834=_0x3d98a2[_0x136c19(0x19e)]('id'),_0x81b8a0=_0x3d98a2[_0x136c19(0x1a2)](_0x136c19(0x184)),_0xb11d41=_0x3d98a2[_0x136c19(0x19e)](_0x136c19(0x197));let _0x271d19;_0x81b8a0?(_0x271d19=await listDatasets(_0x3d98a2['appCode'],{'code':_0x81b8a0,'deleted':!![]}),_0x271d19=_0x271d19[_0x136c19(0x191)](_0x4bf529=>_0x4bf529[_0x136c19(0x184)]===_0x81b8a0)):(_0x271d19=await listDatasets(_0x3d98a2[_0x136c19(0x185)],{'deleted':!![]}),_0x3f4834>0x0&&(_0x271d19=_0x271d19['filter'](_0x20a4bd=>_0x20a4bd['id']===_0x3f4834)),_0xb11d41>0x0&&(_0x271d19=_0x271d19[_0x136c19(0x191)](_0x48b43e=>_0x48b43e['dbtableConfig']?.[_0x136c19(0x179)]===_0xb11d41)));const _0x4860d6=_0x271d19[_0x136c19(0x18a)](normalizeTarget);if(_0x4860d6[_0x136c19(0x19f)]===0x0){const _0x460621=_0x81b8a0||(_0x3f4834>0x0?_0x136c19(0x17f)+_0x3f4834:_0x136c19(0x198)+_0xb11d41);throw CliErrors['validation'](_0x136c19(0x173)+_0x460621+'.');}const _0x5ee228=_0x3d98a2[_0x136c19(0x19e)](_0x136c19(0x174));if(_0x5ee228>0x0&&_0x4860d6[_0x136c19(0x19f)]!==_0x5ee228)throw CliErrors[_0x136c19(0x190)]('Matched\x20'+_0x4860d6[_0x136c19(0x19f)]+_0x136c19(0x189)+_0x5ee228+'.');return _0x4860d6;}function normalizeTarget(_0x1e6ce3){const _0x1586a5=a74_0x349733,_0x4e0b46=_0x1e6ce3[_0x1586a5(0x195)]??{};return{'id':_0x1e6ce3['id'],'code':_0x1e6ce3[_0x1586a5(0x184)],'name':_0x1e6ce3[_0x1586a5(0x181)],'description':_0x1e6ce3[_0x1586a5(0x17c)],'source':_0x1e6ce3[_0x1586a5(0x19b)],'dbId':_0x4e0b46[_0x1586a5(0x179)],'dbName':_0x4e0b46[_0x1586a5(0x186)],'tableName':_0x4e0b46[_0x1586a5(0x18d)],'relatedPageCount':Array[_0x1586a5(0x182)](_0x1e6ce3['relationPages'])?_0x1e6ce3[_0x1586a5(0x194)][_0x1586a5(0x19f)]:undefined};}
1
+ function a73_0x168d(){const _0x3e2833=['--confirm\x20is\x20required\x20to\x20restore\x20datasets.','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','577688DSOElB','10HakcpG','relationPages','dataset','str','/smartapi/dataset/restore-dataset','push','\x20dataset(s)','code','confirm','\x20deleted\x20dataset(s)\x20and\x20related\x20deleted\x20page/menu\x20records.','14svBtue','isArray','1KMpEns','expected-count','dbName','3292542FuZzxT','15614390kmhczC','1382142TLpgsc','2721828GmGlFq','Restore\x20deleted\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20deleted\x20datasets\x20under\x20a\x20db\x20id','source','filter','number','Would\x20restore\x20','dbtableConfig','id=','dbid','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','map','dbId','Restore\x20all\x20deleted\x20datasets\x20under\x20this\x20database\x20connection\x20id','name','POST','3355992zSrUhd','tableName','num','Dataset\x20id','appCode','validation','3774440lBldxR','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','length','dbid=','boolean','restore'];a73_0x168d=function(){return _0x3e2833;};return a73_0x168d();}function a73_0x22af(_0x1156d9,_0x527ce2){_0x1156d9=_0x1156d9-0xce;const _0x168d79=a73_0x168d();let _0x22afd4=_0x168d79[_0x1156d9];return _0x22afd4;}const a73_0x289aa8=a73_0x22af;(function(_0x192544,_0x4203f3){const _0xb9217d=a73_0x22af,_0x47e0bb=_0x192544();while(!![]){try{const _0x2116c8=parseInt(_0xb9217d(0xd6))/0x1*(parseInt(_0xb9217d(0xdb))/0x2)+parseInt(_0xb9217d(0xeb))/0x3+-parseInt(_0xb9217d(0xf1))/0x4+parseInt(_0xb9217d(0xfa))/0x5*(parseInt(_0xb9217d(0xdc))/0x6)+-parseInt(_0xb9217d(0xd4))/0x7*(-parseInt(_0xb9217d(0xf9))/0x8)+parseInt(_0xb9217d(0xd9))/0x9+-parseInt(_0xb9217d(0xda))/0xa;if(_0x2116c8===_0x4203f3)break;else _0x47e0bb['push'](_0x47e0bb['shift']());}catch(_0x34ba35){_0x47e0bb['push'](_0x47e0bb['shift']());}}}(a73_0x168d,0xb052e));import{listDatasets,restoreDataset}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const DATASET_ID_FLAG={'name':'id','type':a73_0x289aa8(0xe0),'description':a73_0x289aa8(0xee)},DBID_FLAG={'name':a73_0x289aa8(0xe4),'type':'number','description':a73_0x289aa8(0xe8)},CONFIRM_FLAG={'name':'confirm','type':a73_0x289aa8(0xf5),'description':'Required\x20to\x20execute\x20dataset\x20restore'},EXPECTED_COUNT_FLAG={'name':a73_0x289aa8(0xd7),'type':a73_0x289aa8(0xe0),'description':a73_0x289aa8(0xe5)};export const datasetRestore={'service':a73_0x289aa8(0xfc),'command':a73_0x289aa8(0xf6),'description':a73_0x289aa8(0xdd),'risk':'high-risk-write','flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x19a009){const _0x3d9cd1=a73_0x289aa8,_0xa99162=_0x19a009[_0x3d9cd1(0xed)]('id'),_0x42c996=_0x19a009[_0x3d9cd1(0xfd)]('code'),_0x126394=_0x19a009['num'](_0x3d9cd1(0xe4)),_0x8ea5=[_0xa99162>0x0,Boolean(_0x42c996),_0x126394>0x0][_0x3d9cd1(0xdf)](Boolean);if(_0x8ea5[_0x3d9cd1(0xf3)]===0x0)throw CliErrors[_0x3d9cd1(0xf0)]('One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.');if(_0x8ea5[_0x3d9cd1(0xf3)]>0x1)throw CliErrors[_0x3d9cd1(0xf0)](_0x3d9cd1(0xf8));},async 'dryRun'(_0x274f8c){const _0x21318d=a73_0x289aa8,_0x4c474b=await resolveTargets(_0x274f8c);return{'method':_0x21318d(0xea),'url':_0x21318d(0xce),'body':{'appCode':_0x274f8c[_0x21318d(0xef)],'count':_0x4c474b[_0x21318d(0xf3)],'datasets':_0x4c474b},'description':_0x21318d(0xe1)+_0x4c474b[_0x21318d(0xf3)]+_0x21318d(0xd3)};},async 'execute'(_0x6e914c){const _0x264499=a73_0x289aa8;if(!_0x6e914c['bool'](_0x264499(0xd2)))throw CliErrors[_0x264499(0xf0)](_0x264499(0xf7),_0x264499(0xf2));const _0xfcf4c=await resolveTargets(_0x6e914c),_0xfdbfdc=[],_0x53bacf=[];for(const _0x18dc55 of _0xfcf4c){try{await restoreDataset(_0x6e914c[_0x264499(0xef)],_0x18dc55['id']),_0xfdbfdc[_0x264499(0xcf)](_0x18dc55);}catch(_0x5992ef){_0x53bacf[_0x264499(0xcf)]({..._0x18dc55,'error':_0x5992ef instanceof Error?_0x5992ef['message']:String(_0x5992ef)});}}if(_0x53bacf[_0x264499(0xf3)]>0x0)return{'ok':![],'data':{'requested':_0xfcf4c[_0x264499(0xf3)],'restoredCount':_0xfdbfdc[_0x264499(0xf3)],'failedCount':_0x53bacf[_0x264499(0xf3)],'restored':_0xfdbfdc,'failed':_0x53bacf},'message':'Restored\x20'+_0xfdbfdc[_0x264499(0xf3)]+'/'+_0xfcf4c[_0x264499(0xf3)]+'\x20dataset(s);\x20'+_0x53bacf[_0x264499(0xf3)]+'\x20failed'};return{'ok':!![],'data':{'requested':_0xfcf4c[_0x264499(0xf3)],'restoredCount':_0xfdbfdc[_0x264499(0xf3)],'restored':_0xfdbfdc},'message':'Restored\x20'+_0xfdbfdc['length']+_0x264499(0xd0)};}};async function resolveTargets(_0x5dafd1){const _0x1a2b68=a73_0x289aa8,_0x46409c=_0x5dafd1[_0x1a2b68(0xed)]('id'),_0x4f9afd=_0x5dafd1[_0x1a2b68(0xfd)](_0x1a2b68(0xd1)),_0x3635a8=_0x5dafd1['num'](_0x1a2b68(0xe4));let _0x2ee0b6;_0x4f9afd?(_0x2ee0b6=await listDatasets(_0x5dafd1[_0x1a2b68(0xef)],{'code':_0x4f9afd,'deleted':!![]}),_0x2ee0b6=_0x2ee0b6['filter'](_0x2bbcaa=>_0x2bbcaa[_0x1a2b68(0xd1)]===_0x4f9afd)):(_0x2ee0b6=await listDatasets(_0x5dafd1[_0x1a2b68(0xef)],{'deleted':!![]}),_0x46409c>0x0&&(_0x2ee0b6=_0x2ee0b6[_0x1a2b68(0xdf)](_0x395c43=>_0x395c43['id']===_0x46409c)),_0x3635a8>0x0&&(_0x2ee0b6=_0x2ee0b6['filter'](_0x5f02a2=>_0x5f02a2[_0x1a2b68(0xe2)]?.['dbId']===_0x3635a8)));const _0x4a436e=_0x2ee0b6[_0x1a2b68(0xe6)](normalizeTarget);if(_0x4a436e[_0x1a2b68(0xf3)]===0x0){const _0x267db9=_0x4f9afd||(_0x46409c>0x0?_0x1a2b68(0xe3)+_0x46409c:_0x1a2b68(0xf4)+_0x3635a8);throw CliErrors[_0x1a2b68(0xf0)]('No\x20deleted\x20dataset\x20found\x20for\x20'+_0x267db9+'.');}const _0xe589e7=_0x5dafd1[_0x1a2b68(0xed)](_0x1a2b68(0xd7));if(_0xe589e7>0x0&&_0x4a436e[_0x1a2b68(0xf3)]!==_0xe589e7)throw CliErrors['validation']('Matched\x20'+_0x4a436e['length']+'\x20dataset(s),\x20but\x20--expected-count\x20is\x20'+_0xe589e7+'.');return _0x4a436e;}function normalizeTarget(_0x42e574){const _0x4fe1ad=a73_0x289aa8,_0x422f1e=_0x42e574['dbtableConfig']??{};return{'id':_0x42e574['id'],'code':_0x42e574[_0x4fe1ad(0xd1)],'name':_0x42e574[_0x4fe1ad(0xe9)],'description':_0x42e574['description'],'source':_0x42e574[_0x4fe1ad(0xde)],'dbId':_0x422f1e[_0x4fe1ad(0xe7)],'dbName':_0x422f1e[_0x4fe1ad(0xd8)],'tableName':_0x422f1e[_0x4fe1ad(0xec)],'relatedPageCount':Array[_0x4fe1ad(0xd5)](_0x42e574[_0x4fe1ad(0xfb)])?_0x42e574[_0x4fe1ad(0xfb)][_0x4fe1ad(0xf3)]:undefined};}
@@ -1 +1 @@
1
- const a75_0x2ec917=a75_0x4acb;(function(_0xccc4c2,_0x491840){const _0x1449d8=a75_0x4acb,_0x1f4fab=_0xccc4c2();while(!![]){try{const _0x1798e5=-parseInt(_0x1449d8(0x189))/0x1*(parseInt(_0x1449d8(0x18e))/0x2)+-parseInt(_0x1449d8(0x18c))/0x3*(parseInt(_0x1449d8(0x18b))/0x4)+parseInt(_0x1449d8(0x183))/0x5*(parseInt(_0x1449d8(0x191))/0x6)+parseInt(_0x1449d8(0x187))/0x7*(-parseInt(_0x1449d8(0x18a))/0x8)+-parseInt(_0x1449d8(0x192))/0x9+-parseInt(_0x1449d8(0x184))/0xa+parseInt(_0x1449d8(0x186))/0xb;if(_0x1798e5===_0x491840)break;else _0x1f4fab['push'](_0x1f4fab['shift']());}catch(_0x5c34ea){_0x1f4fab['push'](_0x1f4fab['shift']());}}}(a75_0x579f,0x526e4));import{cancelDbAnalysis,getDbLinkInfo}from'../../core/api-client.js';function a75_0x4acb(_0x30a284,_0x8db491){_0x30a284=_0x30a284-0x183;const _0x579f2f=a75_0x579f();let _0x4acb46=_0x579f2f[_0x30a284];return _0x4acb46;}import{CliErrors}from'../../errors.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a75_0x579f(){const _0x1307c4=['str','num','5lYqpsu','5576540XBzlhx','latestAnalysisTraceId','25470720XJRJWd','83615kmcmQk','Cancel\x20a\x20running\x20schema\x20analysis.\x20Omit\x20--plan\x20to\x20use\x20latestAnalysisTraceId\x20from\x20the\x20link','1KccTlf','240XDbBoS','1808200SKJjly','3xvZOMI','write','478394NkcUGK','validation','Cancel\x20requested\x20for\x20plan\x20','230742DHNwhe','3681810xzNrqK','plan','No\x20latestAnalysisTraceId\x20on\x20this\x20link.\x20Pass\x20--plan\x20<traceId>\x20from\x20db\x20list/detail.','string'];a75_0x579f=function(){return _0x1307c4;};return a75_0x579f();}export const dbAnalyzeCancel={'service':'db','command':'analyze-cancel','description':a75_0x2ec917(0x188),'risk':a75_0x2ec917(0x18d),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':'plan','type':a75_0x2ec917(0x195),'description':'Analysis\x20plan\x20/\x20trace\x20id\x20(optional\x20—\x20defaults\x20to\x20latest\x20trace\x20from\x20db\x20list/detail)'}],async 'execute'(_0x768e07){const _0x8fc0bb=a75_0x2ec917,_0x456e12=_0x768e07[_0x8fc0bb(0x197)]('id');let _0x9d3305=_0x768e07[_0x8fc0bb(0x196)](_0x8fc0bb(0x193))||undefined;if(!_0x9d3305){const _0x20895a=await getDbLinkInfo(_0x456e12);_0x9d3305=_0x20895a[_0x8fc0bb(0x185)]??undefined;if(!_0x9d3305)throw CliErrors[_0x8fc0bb(0x18f)](_0x8fc0bb(0x194),'Analysis\x20may\x20already\x20be\x20finished\x20or\x20never\x20started.');}return await cancelDbAnalysis(_0x9d3305),{'ok':!![],'data':{'dbLinkId':_0x456e12,'planId':_0x9d3305},'message':_0x8fc0bb(0x190)+_0x9d3305};}};
1
+ const a74_0x21cd69=a74_0x4e7f;function a74_0x5440(){const _0x374e5e=['2873360BVyirl','1648170EfGCTK','num','analyze-cancel','4PeELie','34171587ndvMTD','plan','Cancel\x20a\x20running\x20schema\x20analysis.\x20Omit\x20--plan\x20to\x20use\x20latestAnalysisTraceId\x20from\x20the\x20link','302897cqEfij','114nhCBfg','latestAnalysisTraceId','No\x20latestAnalysisTraceId\x20on\x20this\x20link.\x20Pass\x20--plan\x20<traceId>\x20from\x20db\x20list/detail.','Analysis\x20may\x20already\x20be\x20finished\x20or\x20never\x20started.','Analysis\x20plan\x20/\x20trace\x20id\x20(optional\x20—\x20defaults\x20to\x20latest\x20trace\x20from\x20db\x20list/detail)','10TBlIqZ','1689635GTHKTx','26113BDFweQ','str','7040904YzjgQe','write'];a74_0x5440=function(){return _0x374e5e;};return a74_0x5440();}(function(_0x184b95,_0x4d470d){const _0x4b9733=a74_0x4e7f,_0x2e69f5=_0x184b95();while(!![]){try{const _0x4326e7=parseInt(_0x4b9733(0x1aa))/0x1*(parseInt(_0x4b9733(0x1b2))/0x2)+-parseInt(_0x4b9733(0x1af))/0x3+-parseInt(_0x4b9733(0x1ae))/0x4+-parseInt(_0x4b9733(0x1a9))/0x5+parseInt(_0x4b9733(0x1a3))/0x6*(-parseInt(_0x4b9733(0x1b6))/0x7)+-parseInt(_0x4b9733(0x1ac))/0x8+-parseInt(_0x4b9733(0x1b3))/0x9*(-parseInt(_0x4b9733(0x1a8))/0xa);if(_0x4326e7===_0x4d470d)break;else _0x2e69f5['push'](_0x2e69f5['shift']());}catch(_0x3c18d3){_0x2e69f5['push'](_0x2e69f5['shift']());}}}(a74_0x5440,0x841de));import{cancelDbAnalysis,getDbLinkInfo}from'../../core/api-client.js';function a74_0x4e7f(_0x16c4cb,_0x41191c){_0x16c4cb=_0x16c4cb-0x1a3;const _0x5440ff=a74_0x5440();let _0x4e7fa4=_0x5440ff[_0x16c4cb];return _0x4e7fa4;}import{CliErrors}from'../../errors.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeCancel={'service':'db','command':a74_0x21cd69(0x1b1),'description':a74_0x21cd69(0x1b5),'risk':a74_0x21cd69(0x1ad),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a74_0x21cd69(0x1b4),'type':'string','description':a74_0x21cd69(0x1a7)}],async 'execute'(_0x122ca8){const _0x5fb5a5=a74_0x21cd69,_0x5ccc7d=_0x122ca8[_0x5fb5a5(0x1b0)]('id');let _0x245a97=_0x122ca8[_0x5fb5a5(0x1ab)](_0x5fb5a5(0x1b4))||undefined;if(!_0x245a97){const _0x47f577=await getDbLinkInfo(_0x5ccc7d);_0x245a97=_0x47f577[_0x5fb5a5(0x1a4)]??undefined;if(!_0x245a97)throw CliErrors['validation'](_0x5fb5a5(0x1a5),_0x5fb5a5(0x1a6));}return await cancelDbAnalysis(_0x245a97),{'ok':!![],'data':{'dbLinkId':_0x5ccc7d,'planId':_0x245a97},'message':'Cancel\x20requested\x20for\x20plan\x20'+_0x245a97};}};
@@ -1 +1 @@
1
- const a76_0x28ee79=a76_0x4e85;(function(_0x180586,_0x51f6f0){const _0x3bef91=a76_0x4e85,_0x24007b=_0x180586();while(!![]){try{const _0x436db4=parseInt(_0x3bef91(0x16d))/0x1*(-parseInt(_0x3bef91(0x164))/0x2)+parseInt(_0x3bef91(0x163))/0x3*(parseInt(_0x3bef91(0x176))/0x4)+-parseInt(_0x3bef91(0x16e))/0x5*(-parseInt(_0x3bef91(0x16a))/0x6)+parseInt(_0x3bef91(0x168))/0x7+parseInt(_0x3bef91(0x167))/0x8+parseInt(_0x3bef91(0x171))/0x9+-parseInt(_0x3bef91(0x173))/0xa*(parseInt(_0x3bef91(0x166))/0xb);if(_0x436db4===_0x51f6f0)break;else _0x24007b['push'](_0x24007b['shift']());}catch(_0x449a0f){_0x24007b['push'](_0x24007b['shift']());}}}(a76_0x5600,0x8a7c7));import{startDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';export const dbAnalyzeStart={'service':'db','command':a76_0x28ee79(0x179),'description':a76_0x28ee79(0x16f),'risk':a76_0x28ee79(0x16b),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a76_0x28ee79(0x170),'type':a76_0x28ee79(0x172),'description':'Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)'}],async 'execute'(_0x875ef4){const _0x24cf3c=a76_0x28ee79,_0x593080=_0x875ef4[_0x24cf3c(0x169)]('id'),_0x522cf4=_0x875ef4[_0x24cf3c(0x165)]('tables'),_0x1a537c=_0x522cf4?_0x522cf4[_0x24cf3c(0x178)](',')[_0x24cf3c(0x177)](_0x1d28e5=>_0x1d28e5['trim']())[_0x24cf3c(0x175)](Boolean):undefined,_0x307abc=await startDbAnalysis(_0x593080,_0x1a537c),_0x95ecf=buildDbPageLinks(_0x875ef4[_0x24cf3c(0x16c)],_0x593080);return{'ok':!![],'data':{'dbLinkId':_0x593080,'planId':_0x307abc,'tableNames':_0x1a537c??[],..._0x95ecf?{'links':_0x95ecf}:{}},'message':_0x24cf3c(0x174)+_0x593080};}};function a76_0x4e85(_0x4cd66e,_0x1110aa){_0x4cd66e=_0x4cd66e-0x163;const _0x5600a7=a76_0x5600();let _0x4e851b=_0x5600a7[_0x4cd66e];return _0x4e851b;}function a76_0x5600(){const _0x39f65b=['write','appCode','1dkwkRh','4190avxteT','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','tables','26568PJTvCe','string','147770qYGxsH','Started\x20analysis\x20for\x20db\x20link\x20','filter','52OpWxAc','map','split','analyze-start','69606sRLvlO','2094652KCdlMb','str','319OMZWAN','4606560STfhYM','1633506yuwRSI','num','6654AXZktj'];a76_0x5600=function(){return _0x39f65b;};return a76_0x5600();}
1
+ function a75_0x516a(_0x37eb51,_0x455fab){_0x37eb51=_0x37eb51-0x144;const _0x574c7d=a75_0x574c();let _0x516a61=_0x574c7d[_0x37eb51];return _0x516a61;}const a75_0x1993b5=a75_0x516a;(function(_0x77374,_0xd382b5){const _0x52b2be=a75_0x516a,_0x4f99a4=_0x77374();while(!![]){try{const _0x2f9b33=parseInt(_0x52b2be(0x145))/0x1*(parseInt(_0x52b2be(0x155))/0x2)+-parseInt(_0x52b2be(0x14b))/0x3+parseInt(_0x52b2be(0x150))/0x4*(-parseInt(_0x52b2be(0x148))/0x5)+-parseInt(_0x52b2be(0x14e))/0x6+-parseInt(_0x52b2be(0x14d))/0x7*(-parseInt(_0x52b2be(0x14a))/0x8)+parseInt(_0x52b2be(0x152))/0x9+-parseInt(_0x52b2be(0x14c))/0xa*(-parseInt(_0x52b2be(0x153))/0xb);if(_0x2f9b33===_0xd382b5)break;else _0x4f99a4['push'](_0x4f99a4['shift']());}catch(_0x49d4ff){_0x4f99a4['push'](_0x4f99a4['shift']());}}}(a75_0x574c,0xeff98));import{startDbAnalysis}from'../../core/api-client.js';function a75_0x574c(){const _0x57c838=['string','Started\x20analysis\x20for\x20db\x20link\x20','str','1iTHYMC','split','tables','18890PZKfAo','trim','11755816BMjtYP','4985961FIyixQ','4960qgLVRG','7TIQfsv','5185716EmNSJB','analyze-start','856lemvFO','map','2237751rKGXOV','42724BofDUX','num','1346242FGBuxz'];a75_0x574c=function(){return _0x57c838;};return a75_0x574c();}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';export const dbAnalyzeStart={'service':'db','command':a75_0x1993b5(0x14f),'description':'Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','risk':'write','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a75_0x1993b5(0x147),'type':a75_0x1993b5(0x156),'description':'Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)'}],async 'execute'(_0xc22af1){const _0x157362=a75_0x1993b5,_0x223108=_0xc22af1[_0x157362(0x154)]('id'),_0x4382a1=_0xc22af1[_0x157362(0x144)](_0x157362(0x147)),_0x43592e=_0x4382a1?_0x4382a1[_0x157362(0x146)](',')[_0x157362(0x151)](_0x3712d9=>_0x3712d9[_0x157362(0x149)]())['filter'](Boolean):undefined,_0x32a96e=await startDbAnalysis(_0x223108,_0x43592e),_0x30080e=buildDbPageLinks(_0xc22af1['appCode'],_0x223108);return{'ok':!![],'data':{'dbLinkId':_0x223108,'planId':_0x32a96e,'tableNames':_0x43592e??[],..._0x30080e?{'links':_0x30080e}:{}},'message':_0x157362(0x157)+_0x223108};}};
@@ -1 +1 @@
1
- const a77_0x331c5f=a77_0x25c1;(function(_0x10a171,_0x216b4e){const _0x4674da=a77_0x25c1,_0x1a1050=_0x10a171();while(!![]){try{const _0x37dffe=parseInt(_0x4674da(0xe0))/0x1*(parseInt(_0x4674da(0xeb))/0x2)+-parseInt(_0x4674da(0xda))/0x3*(parseInt(_0x4674da(0xea))/0x4)+parseInt(_0x4674da(0xe5))/0x5*(parseInt(_0x4674da(0xdc))/0x6)+parseInt(_0x4674da(0xdd))/0x7*(-parseInt(_0x4674da(0xe7))/0x8)+-parseInt(_0x4674da(0xde))/0x9+parseInt(_0x4674da(0xe9))/0xa*(parseInt(_0x4674da(0xe6))/0xb)+parseInt(_0x4674da(0xe3))/0xc*(parseInt(_0x4674da(0xe8))/0xd);if(_0x37dffe===_0x216b4e)break;else _0x1a1050['push'](_0x1a1050['shift']());}catch(_0x403e72){_0x1a1050['push'](_0x1a1050['shift']());}}}(a77_0x3002,0x548a6));import{getDbAnalysisStatus}from'../../core/api-client.js';function a77_0x25c1(_0xc9dabb,_0x2db9e9){_0xc9dabb=_0xc9dabb-0xd8;const _0x3002a5=a77_0x3002();let _0x25c168=_0x3002a5[_0xc9dabb];return _0x25c168;}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';export const dbAnalyzeStatus={'service':'db','command':a77_0x331c5f(0xd9),'description':a77_0x331c5f(0xd8),'risk':a77_0x331c5f(0xe1),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a77_0x331c5f(0xe2),'type':'string','required':!![],'description':a77_0x331c5f(0xdf)}],async 'execute'(_0x47fcf8){const _0x4fddd4=a77_0x331c5f,_0x72b1a5=_0x47fcf8['num']('id'),_0x65fba4=_0x47fcf8[_0x4fddd4(0xe4)]('plan'),_0x568f29=await getDbAnalysisStatus(_0x65fba4),_0x173187=buildDbPageLinks(_0x47fcf8['appCode'],_0x72b1a5);return{'ok':!![],'data':{'dbLinkId':_0x72b1a5,'planId':_0x65fba4,'status':_0x568f29,..._0x173187?{'links':_0x173187}:{}},'message':_0x4fddd4(0xdb)+_0x65fba4};}};function a77_0x3002(){const _0x4f962d=['Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','6446hJfQZV','read','plan','1572jjXYqH','str','10AYYHlT','44748LUSDar','396184diGcYi','51948mwokHe','1200WItNis','794868DkcmAl','110lOpGVi','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','analyze-status','9ihcbyU','Analysis\x20status\x20for\x20','603414UfUVlX','49etFSqa','2503926DrmGcW'];a77_0x3002=function(){return _0x4f962d;};return a77_0x3002();}
1
+ const a76_0x1f2a92=a76_0x535a;(function(_0x1dd68d,_0x5575e2){const _0x51711d=a76_0x535a,_0x2b5c93=_0x1dd68d();while(!![]){try{const _0x102b5a=-parseInt(_0x51711d(0x1ab))/0x1*(-parseInt(_0x51711d(0x1a7))/0x2)+parseInt(_0x51711d(0x19f))/0x3*(-parseInt(_0x51711d(0x1a5))/0x4)+-parseInt(_0x51711d(0x1a8))/0x5*(parseInt(_0x51711d(0x1a0))/0x6)+parseInt(_0x51711d(0x19a))/0x7+parseInt(_0x51711d(0x1aa))/0x8*(-parseInt(_0x51711d(0x1a6))/0x9)+parseInt(_0x51711d(0x1a9))/0xa*(-parseInt(_0x51711d(0x1a1))/0xb)+parseInt(_0x51711d(0x1a3))/0xc*(parseInt(_0x51711d(0x19c))/0xd);if(_0x102b5a===_0x5575e2)break;else _0x2b5c93['push'](_0x2b5c93['shift']());}catch(_0x40fd5a){_0x2b5c93['push'](_0x2b5c93['shift']());}}}(a76_0x3f3e,0x962d4));import{getDbAnalysisStatus}from'../../core/api-client.js';function a76_0x3f3e(){const _0x1cdadd=['980oYvPhB','read','string','plan','3489458kApRgD','num','321529bUFxaL','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','str','2170005yywowT','865932IfnJGd','7172VBZhcg','appCode','1068keSZtB','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','4dQrdNk','16974WwFVdy','598ZRwmTR','15xwHLKU','2620rNTxGN','4456GvIicg'];a76_0x3f3e=function(){return _0x1cdadd;};return a76_0x3f3e();}function a76_0x535a(_0x4708da,_0x5b20ef){_0x4708da=_0x4708da-0x199;const _0x3f3e34=a76_0x3f3e();let _0x535a9f=_0x3f3e34[_0x4708da];return _0x535a9f;}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';export const dbAnalyzeStatus={'service':'db','command':'analyze-status','description':a76_0x1f2a92(0x19d),'risk':a76_0x1f2a92(0x1ac),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a76_0x1f2a92(0x199),'type':a76_0x1f2a92(0x1ad),'required':!![],'description':a76_0x1f2a92(0x1a4)}],async 'execute'(_0x241a20){const _0x181b5d=a76_0x1f2a92,_0x138cee=_0x241a20[_0x181b5d(0x19b)]('id'),_0x317261=_0x241a20[_0x181b5d(0x19e)](_0x181b5d(0x199)),_0x26f1ca=await getDbAnalysisStatus(_0x317261),_0x5038d5=buildDbPageLinks(_0x241a20[_0x181b5d(0x1a2)],_0x138cee);return{'ok':!![],'data':{'dbLinkId':_0x138cee,'planId':_0x317261,'status':_0x26f1ca,..._0x5038d5?{'links':_0x5038d5}:{}},'message':'Analysis\x20status\x20for\x20'+_0x317261};}};
@@ -1 +1 @@
1
- function a78_0x28c0(){const _0x1be0e8=['password','dbversion','3769IXQrPF','autostart','appCode','Host\x20and\x20port:\x20host:port','8.0','/smartapi/dblink/create','str','bool','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','\x20and\x20started\x20analysis','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','After\x20create,\x20start\x20schema\x20analysis',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','Database\x20username','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','3323301CwTvUo','336455NQWRlv','message','dbtype','Extra\x20JDBC-style\x20connection\x20parameters\x20string','create','string','128RtaDRu','145290tfJJoW','dbdesc','Created\x20db\x20link\x20','[redacted]','dbname','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','dbparam','join','Human-readable\x20description','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','470OnJQRa','1158636BUZBqk','Create\x20dblink','54606rRkiOZ','username','774xSjblH','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','POST','426HhgOYe','14759303EYqXOT','4umlfKa','121oDnXot','dburl','trim'];a78_0x28c0=function(){return _0x1be0e8;};return a78_0x28c0();}function a78_0x2592(_0x136cc9,_0x462698){_0x136cc9=_0x136cc9-0x1a5;const _0x28c05b=a78_0x28c0();let _0x2592ae=_0x28c05b[_0x136cc9];return _0x2592ae;}const a78_0x1c4de6=a78_0x2592;(function(_0x55e859,_0x2e17e0){const _0x3afa2d=a78_0x2592,_0x36ac9c=_0x55e859();while(!![]){try{const _0x54d4ca=parseInt(_0x3afa2d(0x1c4))/0x1*(-parseInt(_0x3afa2d(0x1bc))/0x2)+-parseInt(_0x3afa2d(0x1d4))/0x3*(-parseInt(_0x3afa2d(0x1be))/0x4)+parseInt(_0x3afa2d(0x1b4))/0x5*(parseInt(_0x3afa2d(0x1b7))/0x6)+parseInt(_0x3afa2d(0x1d5))/0x7*(parseInt(_0x3afa2d(0x1a9))/0x8)+-parseInt(_0x3afa2d(0x1b9))/0x9*(parseInt(_0x3afa2d(0x1aa))/0xa)+parseInt(_0x3afa2d(0x1bf))/0xb*(-parseInt(_0x3afa2d(0x1b5))/0xc)+parseInt(_0x3afa2d(0x1bd))/0xd;if(_0x54d4ca===_0x2e17e0)break;else _0x36ac9c['push'](_0x36ac9c['shift']());}catch(_0x22b9c8){_0x36ac9c['push'](_0x36ac9c['shift']());}}}(a78_0x28c0,0xb7e6a));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';export const dbCreate={'service':'db','command':a78_0x1c4de6(0x1a7),'description':a78_0x1c4de6(0x1cf),'risk':'write','flags':[APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a78_0x1c4de6(0x1a8),'required':!![],'description':a78_0x1c4de6(0x1ba)},DB_TYPE_FLAG,{'name':a78_0x1c4de6(0x1c3),'type':a78_0x1c4de6(0x1a8),'description':a78_0x1c4de6(0x1cc),'default':a78_0x1c4de6(0x1c8)},{'name':a78_0x1c4de6(0x1c0),'type':a78_0x1c4de6(0x1a8),'required':!![],'description':a78_0x1c4de6(0x1c7)},{'name':a78_0x1c4de6(0x1b8),'type':'string','required':!![],'description':a78_0x1c4de6(0x1d2)},{'name':a78_0x1c4de6(0x1c2),'type':a78_0x1c4de6(0x1a8),'required':!![],'description':'Database\x20password'},{'name':a78_0x1c4de6(0x1b0),'type':a78_0x1c4de6(0x1a8),'description':a78_0x1c4de6(0x1a6)},{'name':a78_0x1c4de6(0x1ab),'type':a78_0x1c4de6(0x1a8),'description':a78_0x1c4de6(0x1b2)},{'name':a78_0x1c4de6(0x1c5),'type':'boolean','description':a78_0x1c4de6(0x1d0),'default':![]}],async 'validate'(_0x133ad6){const _0x14d506=a78_0x1c4de6,_0x4f89f9=_0x133ad6[_0x14d506(0x1ca)](_0x14d506(0x1c0))[_0x14d506(0x1c1)]();if(!validateDbUrl(_0x4f89f9))throw CliErrors['validation'](_0x14d506(0x1d3)+_0x4f89f9+'\x22',_0x14d506(0x1b3));},async 'dryRun'(_0xb62481){const _0x3cbef5=a78_0x1c4de6,_0x548f92={'appCode':_0xb62481[_0x3cbef5(0x1c6)],'dbName':_0xb62481[_0x3cbef5(0x1ca)]('dbname'),'dbType':_0xb62481[_0x3cbef5(0x1ca)](_0x3cbef5(0x1a5)),'dbVersion':_0xb62481[_0x3cbef5(0x1ca)](_0x3cbef5(0x1c3))||_0x3cbef5(0x1c8),'dbUrl':_0xb62481[_0x3cbef5(0x1ca)](_0x3cbef5(0x1c0))['trim'](),'username':_0xb62481[_0x3cbef5(0x1ca)]('username'),'password':_0x3cbef5(0x1ad),..._0xb62481[_0x3cbef5(0x1ca)](_0x3cbef5(0x1b0))?{'dbParam':_0xb62481[_0x3cbef5(0x1ca)](_0x3cbef5(0x1b0))}:{},..._0xb62481[_0x3cbef5(0x1ca)](_0x3cbef5(0x1ab))?{'dbDesc':_0xb62481[_0x3cbef5(0x1ca)](_0x3cbef5(0x1ab))}:{}};return{'method':_0x3cbef5(0x1bb),'url':_0x3cbef5(0x1c9),'body':_0x548f92,'description':[_0x3cbef5(0x1b6),_0xb62481['bool'](_0x3cbef5(0x1c5))?_0x3cbef5(0x1ce):'No\x20follow-up\x20analysis'][_0x3cbef5(0x1b1)]('\x0a')};},async 'execute'(_0x1ee5c6){const _0x38e6b0=a78_0x1c4de6,_0x338ad5={'appCode':_0x1ee5c6['appCode'],'dbName':_0x1ee5c6['str'](_0x38e6b0(0x1ae)),'dbType':_0x1ee5c6[_0x38e6b0(0x1ca)](_0x38e6b0(0x1a5)),'dbVersion':_0x1ee5c6[_0x38e6b0(0x1ca)](_0x38e6b0(0x1c3))||'8.0','dbUrl':_0x1ee5c6[_0x38e6b0(0x1ca)](_0x38e6b0(0x1c0))[_0x38e6b0(0x1c1)](),'username':_0x1ee5c6[_0x38e6b0(0x1ca)]('username'),'password':_0x1ee5c6[_0x38e6b0(0x1ca)](_0x38e6b0(0x1c2)),..._0x1ee5c6[_0x38e6b0(0x1ca)]('dbparam')?{'dbParam':_0x1ee5c6[_0x38e6b0(0x1ca)](_0x38e6b0(0x1b0))}:{},..._0x1ee5c6[_0x38e6b0(0x1ca)]('dbdesc')?{'dbDesc':_0x1ee5c6[_0x38e6b0(0x1ca)](_0x38e6b0(0x1ab))}:{}},{id:_0x325295,entity:_0x30cd75}=normalizeEntityWithIdResponse(await createDbLink(_0x338ad5));if(!_0x325295)return{'ok':![],'message':_0x38e6b0(0x1af),'data':sanitizeDbLinkForOutput(_0x30cd75)};let _0x2c73ea,_0x365c24;if(_0x1ee5c6[_0x38e6b0(0x1cb)](_0x38e6b0(0x1c5)))try{_0x2c73ea=await startDbAnalysis(_0x325295);}catch(_0x5b1689){_0x365c24=_0x5b1689 instanceof Error?_0x5b1689[_0x38e6b0(0x1d6)]:String(_0x5b1689);}const _0x226434=buildDbPageLinks(_0x1ee5c6[_0x38e6b0(0x1c6)],_0x325295),_0x38cc62={'connection':sanitizeDbLinkForOutput(_0x30cd75),..._0x226434?{'links':{'databasePage':_0x226434['databasePage']}}:{},..._0x2c73ea?{'analysisPlanId':_0x2c73ea}:{},..._0x365c24?{'analysisStartWarning':_0x365c24}:{}};let _0x318fdb;return _0x1ee5c6[_0x38e6b0(0x1cb)](_0x38e6b0(0x1c5))?_0x365c24?_0x318fdb=_0x38e6b0(0x1ac)+_0x325295+_0x38e6b0(0x1d1):_0x318fdb=_0x38e6b0(0x1ac)+_0x325295+_0x38e6b0(0x1cd):_0x318fdb=_0x38e6b0(0x1ac)+_0x325295,{'ok':!![],'data':_0x38cc62,'message':_0x318fdb};}};
1
+ const a77_0x2d6184=a77_0xdf1c;(function(_0x21d53d,_0x299bb7){const _0x472b68=a77_0xdf1c,_0x1f06f4=_0x21d53d();while(!![]){try{const _0x380d78=-parseInt(_0x472b68(0x19f))/0x1+parseInt(_0x472b68(0x19b))/0x2+-parseInt(_0x472b68(0x196))/0x3+-parseInt(_0x472b68(0x1a0))/0x4+parseInt(_0x472b68(0x1a2))/0x5*(parseInt(_0x472b68(0x1b0))/0x6)+-parseInt(_0x472b68(0x1a8))/0x7*(parseInt(_0x472b68(0x1b1))/0x8)+-parseInt(_0x472b68(0x1aa))/0x9*(-parseInt(_0x472b68(0x1a9))/0xa);if(_0x380d78===_0x299bb7)break;else _0x1f06f4['push'](_0x1f06f4['shift']());}catch(_0x13554c){_0x1f06f4['push'](_0x1f06f4['shift']());}}}(a77_0x1df0,0xa7508));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';function a77_0x1df0(){const _0x39f00a=['username','autostart','string','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','password','validation','dbversion','[redacted]','Database\x20username','appCode','bool','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','dbdesc','868824ELchrW','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','/smartapi/dblink/create','trim','8.0','1288502sdIgxU','Extra\x20JDBC-style\x20connection\x20parameters\x20string','Human-readable\x20description','databasePage','356264ZSvtkK','1578524oRiiEb','Database\x20password','30940eTBbfg','dburl','\x20and\x20started\x20analysis','dbtype','dbname','Create\x20dblink','3409035MtwxvA','11290iJClgh','6570cThTni','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','No\x20follow-up\x20analysis','After\x20create,\x20start\x20schema\x20analysis','Host\x20and\x20port:\x20host:port','1194nVhdKA','16pFkBgJ','Created\x20db\x20link\x20','dbparam','POST','str'];a77_0x1df0=function(){return _0x39f00a;};return a77_0x1df0();}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';function a77_0xdf1c(_0x168ecc,_0x330d26){_0x168ecc=_0x168ecc-0x193;const _0x1df0ed=a77_0x1df0();let _0xdf1c90=_0x1df0ed[_0x168ecc];return _0xdf1c90;}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':'create','description':a77_0x2d6184(0x1ba),'risk':'write','flags':[APPCODE_FLAG_OPTIONAL,{'name':a77_0x2d6184(0x1a6),'type':a77_0x2d6184(0x1b8),'required':!![],'description':a77_0x2d6184(0x194)},DB_TYPE_FLAG,{'name':'dbversion','type':a77_0x2d6184(0x1b8),'description':a77_0x2d6184(0x1bb),'default':a77_0x2d6184(0x19a)},{'name':'dburl','type':'string','required':!![],'description':a77_0x2d6184(0x1af)},{'name':a77_0x2d6184(0x1b6),'type':'string','required':!![],'description':a77_0x2d6184(0x1c0)},{'name':a77_0x2d6184(0x1bc),'type':a77_0x2d6184(0x1b8),'required':!![],'description':a77_0x2d6184(0x1a1)},{'name':a77_0x2d6184(0x1b3),'type':a77_0x2d6184(0x1b8),'description':a77_0x2d6184(0x19c)},{'name':a77_0x2d6184(0x195),'type':a77_0x2d6184(0x1b8),'description':a77_0x2d6184(0x19d)},{'name':a77_0x2d6184(0x1b7),'type':'boolean','description':a77_0x2d6184(0x1ae),'default':![]}],async 'validate'(_0x5bb49f){const _0xbe9404=a77_0x2d6184,_0x434941=_0x5bb49f[_0xbe9404(0x1b5)](_0xbe9404(0x1a3))['trim']();if(!validateDbUrl(_0x434941))throw CliErrors[_0xbe9404(0x1bd)]('Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22'+_0x434941+'\x22',_0xbe9404(0x1b9));},async 'dryRun'(_0x35ad67){const _0x293e39=a77_0x2d6184,_0x33ded0={'appCode':_0x35ad67[_0x293e39(0x1c1)],'dbName':_0x35ad67[_0x293e39(0x1b5)](_0x293e39(0x1a6)),'dbType':_0x35ad67[_0x293e39(0x1b5)](_0x293e39(0x1a5)),'dbVersion':_0x35ad67[_0x293e39(0x1b5)](_0x293e39(0x1be))||'8.0','dbUrl':_0x35ad67[_0x293e39(0x1b5)](_0x293e39(0x1a3))['trim'](),'username':_0x35ad67[_0x293e39(0x1b5)](_0x293e39(0x1b6)),'password':_0x293e39(0x1bf),..._0x35ad67[_0x293e39(0x1b5)]('dbparam')?{'dbParam':_0x35ad67[_0x293e39(0x1b5)](_0x293e39(0x1b3))}:{},..._0x35ad67['str'](_0x293e39(0x195))?{'dbDesc':_0x35ad67[_0x293e39(0x1b5)](_0x293e39(0x195))}:{}};return{'method':_0x293e39(0x1b4),'url':_0x293e39(0x198),'body':_0x33ded0,'description':[_0x293e39(0x1a7),_0x35ad67[_0x293e39(0x193)](_0x293e39(0x1b7))?_0x293e39(0x197):_0x293e39(0x1ad)]['join']('\x0a')};},async 'execute'(_0x4f97cd){const _0x4cb8a2=a77_0x2d6184,_0x4b76e1={'appCode':_0x4f97cd['appCode'],'dbName':_0x4f97cd['str']('dbname'),'dbType':_0x4f97cd[_0x4cb8a2(0x1b5)](_0x4cb8a2(0x1a5)),'dbVersion':_0x4f97cd[_0x4cb8a2(0x1b5)](_0x4cb8a2(0x1be))||_0x4cb8a2(0x19a),'dbUrl':_0x4f97cd[_0x4cb8a2(0x1b5)](_0x4cb8a2(0x1a3))[_0x4cb8a2(0x199)](),'username':_0x4f97cd[_0x4cb8a2(0x1b5)](_0x4cb8a2(0x1b6)),'password':_0x4f97cd[_0x4cb8a2(0x1b5)](_0x4cb8a2(0x1bc)),..._0x4f97cd[_0x4cb8a2(0x1b5)](_0x4cb8a2(0x1b3))?{'dbParam':_0x4f97cd[_0x4cb8a2(0x1b5)](_0x4cb8a2(0x1b3))}:{},..._0x4f97cd[_0x4cb8a2(0x1b5)](_0x4cb8a2(0x195))?{'dbDesc':_0x4f97cd[_0x4cb8a2(0x1b5)](_0x4cb8a2(0x195))}:{}},{id:_0x6af033,entity:_0x3d4657}=normalizeEntityWithIdResponse(await createDbLink(_0x4b76e1));if(!_0x6af033)return{'ok':![],'message':_0x4cb8a2(0x1ab),'data':sanitizeDbLinkForOutput(_0x3d4657)};let _0x31392b,_0xd1e3f9;if(_0x4f97cd[_0x4cb8a2(0x193)](_0x4cb8a2(0x1b7)))try{_0x31392b=await startDbAnalysis(_0x6af033);}catch(_0x49933e){_0xd1e3f9=_0x49933e instanceof Error?_0x49933e['message']:String(_0x49933e);}const _0x1fcc61=buildDbPageLinks(_0x4f97cd[_0x4cb8a2(0x1c1)],_0x6af033),_0x54c914={'connection':sanitizeDbLinkForOutput(_0x3d4657),..._0x1fcc61?{'links':{'databasePage':_0x1fcc61[_0x4cb8a2(0x19e)]}}:{},..._0x31392b?{'analysisPlanId':_0x31392b}:{},..._0xd1e3f9?{'analysisStartWarning':_0xd1e3f9}:{}};let _0x1cfc21;return _0x4f97cd[_0x4cb8a2(0x193)]('autostart')?_0xd1e3f9?_0x1cfc21='Created\x20db\x20link\x20'+_0x6af033+_0x4cb8a2(0x1ac):_0x1cfc21=_0x4cb8a2(0x1b2)+_0x6af033+_0x4cb8a2(0x1a4):_0x1cfc21=_0x4cb8a2(0x1b2)+_0x6af033,{'ok':!![],'data':_0x54c914,'message':_0x1cfc21};}};
@@ -1 +1 @@
1
- function a79_0x5822(_0x3df3f1,_0x423cb0){_0x3df3f1=_0x3df3f1-0x67;const _0x2144f7=a79_0x2144();let _0x582206=_0x2144f7[_0x3df3f1];return _0x582206;}const a79_0xb9f8f1=a79_0x5822;(function(_0x163b76,_0x6dbebf){const _0x156d8a=a79_0x5822,_0x3506e0=_0x163b76();while(!![]){try{const _0x58c3ed=parseInt(_0x156d8a(0x75))/0x1*(parseInt(_0x156d8a(0x74))/0x2)+parseInt(_0x156d8a(0x76))/0x3*(-parseInt(_0x156d8a(0x6a))/0x4)+-parseInt(_0x156d8a(0x70))/0x5*(-parseInt(_0x156d8a(0x6e))/0x6)+-parseInt(_0x156d8a(0x67))/0x7*(parseInt(_0x156d8a(0x6b))/0x8)+-parseInt(_0x156d8a(0x6f))/0x9+-parseInt(_0x156d8a(0x73))/0xa*(-parseInt(_0x156d8a(0x69))/0xb)+-parseInt(_0x156d8a(0x71))/0xc;if(_0x58c3ed===_0x6dbebf)break;else _0x3506e0['push'](_0x3506e0['shift']());}catch(_0x3c3d3f){_0x3506e0['push'](_0x3506e0['shift']());}}}(a79_0x2144,0xa2d5b));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_0xb9f8f1(0x68),'description':a79_0xb9f8f1(0x72),'risk':'high-risk-write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x204bca){const _0x43f7b8=a79_0xb9f8f1,_0x360ead=_0x204bca[_0x43f7b8(0x6c)]('id');return await deleteDbLink(_0x360ead),{'ok':!![],'data':{'id':_0x360ead,'deleted':!![]},'message':_0x43f7b8(0x6d)+_0x360ead};}};function a79_0x2144(){const _0x5937b8=['16beHNex','413704DDESnZ','num','Deleted\x20db\x20link\x20','4124556jbwese','5185971UeIlcP','5zIUgqA','418104ooEQOt','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','2612810hAZVXi','1833834otDbIo','1urIoCD','132453Lphgrb','91jfoLQm','delete','22ysUOej'];a79_0x2144=function(){return _0x5937b8;};return a79_0x2144();}
1
+ const a78_0x351e46=a78_0x2ce9;function a78_0x2ce9(_0x2b5c68,_0x3738ab){_0x2b5c68=_0x2b5c68-0xb7;const _0xf4c42=a78_0xf4c4();let _0x2ce924=_0xf4c42[_0x2b5c68];return _0x2ce924;}(function(_0x129626,_0x495106){const _0x275494=a78_0x2ce9,_0x2a873a=_0x129626();while(!![]){try{const _0x47b39f=-parseInt(_0x275494(0xbf))/0x1+parseInt(_0x275494(0xb9))/0x2*(-parseInt(_0x275494(0xbd))/0x3)+parseInt(_0x275494(0xb8))/0x4*(parseInt(_0x275494(0xc1))/0x5)+-parseInt(_0x275494(0xb7))/0x6+-parseInt(_0x275494(0xc0))/0x7+parseInt(_0x275494(0xc2))/0x8*(-parseInt(_0x275494(0xbb))/0x9)+parseInt(_0x275494(0xba))/0xa;if(_0x47b39f===_0x495106)break;else _0x2a873a['push'](_0x2a873a['shift']());}catch(_0x62d612){_0x2a873a['push'](_0x2a873a['shift']());}}}(a78_0xf4c4,0x88759));function a78_0xf4c4(){const _0x383e0c=['5Xvpifp','832jVpwzO','6136398Ntugef','132520RTmbOM','2BgkGQL','36108220xltFSx','38169wjfdsy','high-risk-write','1193661rSrcZO','num','273123TJsyWr','6651456ENWHhM'];a78_0xf4c4=function(){return _0x383e0c;};return a78_0xf4c4();}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':'delete','description':'Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','risk':a78_0x351e46(0xbc),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1106e1){const _0x3b8d45=a78_0x351e46,_0x5319de=_0x1106e1[_0x3b8d45(0xbe)]('id');return await deleteDbLink(_0x5319de),{'ok':!![],'data':{'id':_0x5319de,'deleted':!![]},'message':'Deleted\x20db\x20link\x20'+_0x5319de};}};
@@ -1 +1 @@
1
- function a80_0x5961(_0x46a46d,_0x2945aa){_0x46a46d=_0x46a46d-0xf3;const _0x504309=a80_0x5043();let _0x59613f=_0x504309[_0x46a46d];return _0x59613f;}const a80_0x4d1549=a80_0x5961;(function(_0x4eea93,_0x4b95e1){const _0x4de93a=a80_0x5961,_0x156faf=_0x4eea93();while(!![]){try{const _0x176973=parseInt(_0x4de93a(0x101))/0x1*(parseInt(_0x4de93a(0xfe))/0x2)+-parseInt(_0x4de93a(0x102))/0x3*(-parseInt(_0x4de93a(0xfc))/0x4)+-parseInt(_0x4de93a(0xf6))/0x5+parseInt(_0x4de93a(0xfa))/0x6*(parseInt(_0x4de93a(0xff))/0x7)+parseInt(_0x4de93a(0xf5))/0x8*(-parseInt(_0x4de93a(0xfd))/0x9)+-parseInt(_0x4de93a(0xf4))/0xa+parseInt(_0x4de93a(0xfb))/0xb;if(_0x176973===_0x4b95e1)break;else _0x156faf['push'](_0x156faf['shift']());}catch(_0x9e3db0){_0x156faf['push'](_0x156faf['shift']());}}}(a80_0x5043,0xd3166));import{getDbLinkInfo}from'../../core/api-client.js';function a80_0x5043(){const _0x1bb0fb=['db\x20link\x20','num','14562PXIdOZ','14145978YinSIX','4svwaKj','9lXZoEy','156798UfdsFb','4501uZGuwY','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','7yKheyx','1227312ZCjWaX','detail','12894610RdsVZy','1089112yKDxMv','7571210kYsZGI','read'];a80_0x5043=function(){return _0x1bb0fb;};return a80_0x5043();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':a80_0x4d1549(0xf3),'description':a80_0x4d1549(0x100),'risk':a80_0x4d1549(0xf7),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5444e9){const _0x14123d=a80_0x4d1549,_0x2439fb=_0x5444e9[_0x14123d(0xf9)]('id'),_0x119059=await getDbLinkInfo(_0x2439fb);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x119059),'message':_0x14123d(0xf8)+_0x2439fb+':\x20'+_0x119059['dbName']};}};
1
+ const a79_0x4366d5=a79_0x19e1;(function(_0x34f847,_0x4d4cbe){const _0x11f63f=a79_0x19e1,_0x2a2b1e=_0x34f847();while(!![]){try{const _0x2c45fc=parseInt(_0x11f63f(0x1de))/0x1+-parseInt(_0x11f63f(0x1e9))/0x2+parseInt(_0x11f63f(0x1e5))/0x3*(parseInt(_0x11f63f(0x1e8))/0x4)+parseInt(_0x11f63f(0x1df))/0x5+-parseInt(_0x11f63f(0x1e1))/0x6+parseInt(_0x11f63f(0x1e6))/0x7+parseInt(_0x11f63f(0x1e4))/0x8;if(_0x2c45fc===_0x4d4cbe)break;else _0x2a2b1e['push'](_0x2a2b1e['shift']());}catch(_0x2e24fa){_0x2a2b1e['push'](_0x2a2b1e['shift']());}}}(a79_0xdad4,0xb3d21));import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a79_0xdad4(){const _0x4e0dc8=['4098JTceDL','5090953fMkUcA','dbName','272yhyOPY','2134066sgThhS','52671MsPhWo','3233270bWztXL','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','329796bFCHhG','num','db\x20link\x20','2712416EnXrZC'];a79_0xdad4=function(){return _0x4e0dc8;};return a79_0xdad4();}function a79_0x19e1(_0x23a7f5,_0x65d4e9){_0x23a7f5=_0x23a7f5-0x1de;const _0xdad477=a79_0xdad4();let _0x19e1e1=_0xdad477[_0x23a7f5];return _0x19e1e1;}import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':'detail','description':a79_0x4366d5(0x1e0),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x26acc0){const _0x573584=a79_0x4366d5,_0x58e6cd=_0x26acc0[_0x573584(0x1e2)]('id'),_0x3ff803=await getDbLinkInfo(_0x58e6cd);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x3ff803),'message':_0x573584(0x1e3)+_0x58e6cd+':\x20'+_0x3ff803[_0x573584(0x1e7)]};}};
@@ -1 +1 @@
1
- function a81_0x1189(){const _0x2177eb=['number','length','page','\x20(db\x20link\x20','num','diff','\x20row(s),\x20total\x20','10LqQDJD','str','table','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','2003736WYNSqH','88611Iozfnk','426808RwbRlg','50qhurdV','appCode','5274594nGYrpz','pagesize','string','21mEVZAP','5804840jKnTrZ','347862mRvLyX','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','15116cKVbYM'];a81_0x1189=function(){return _0x2177eb;};return a81_0x1189();}const a81_0x246072=a81_0x132a;(function(_0x37cef9,_0x714007){const _0x2bd88=a81_0x132a,_0x48c116=_0x37cef9();while(!![]){try{const _0xec7b68=parseInt(_0x2bd88(0x111))/0x1+-parseInt(_0x2bd88(0x112))/0x2*(parseInt(_0x2bd88(0x110))/0x3)+parseInt(_0x2bd88(0x11b))/0x4*(parseInt(_0x2bd88(0x10b))/0x5)+-parseInt(_0x2bd88(0x119))/0x6+parseInt(_0x2bd88(0x117))/0x7*(parseInt(_0x2bd88(0x10f))/0x8)+-parseInt(_0x2bd88(0x114))/0x9+parseInt(_0x2bd88(0x118))/0xa;if(_0xec7b68===_0x714007)break;else _0x48c116['push'](_0x48c116['shift']());}catch(_0x304084){_0x48c116['push'](_0x48c116['shift']());}}}(a81_0x1189,0x5db27));function a81_0x132a(_0x23c4a8,_0x4aedb0){_0x23c4a8=_0x23c4a8-0x109;const _0x1189e5=a81_0x1189();let _0x132a94=_0x1189e5[_0x23c4a8];return _0x132a94;}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':a81_0x246072(0x109),'description':a81_0x246072(0x11a),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a81_0x246072(0x10d),'type':a81_0x246072(0x116),'description':a81_0x246072(0x10e)},{'name':a81_0x246072(0x11e),'type':'number','description':'Page\x20index\x20(1-based)','default':0x1},{'name':'pagesize','type':a81_0x246072(0x11c),'description':'Page\x20size','default':0x14}],async 'execute'(_0x577cd7){const _0x81fbb0=a81_0x246072,_0x56fce3=_0x577cd7[_0x81fbb0(0x120)]('id'),_0x20e9bd=_0x577cd7[_0x81fbb0(0x120)](_0x81fbb0(0x11e),0x1)||0x1,_0x32c7d6=_0x577cd7['num'](_0x81fbb0(0x115),0x14)||0x14,_0x264245=_0x577cd7[_0x81fbb0(0x10c)](_0x81fbb0(0x10d))||undefined,{totalCount:_0x3c4be8,physicalTableCount:_0x262f3e,datasetTableCount:_0xd94b6d,summary:_0x2c57f6,tableList:_0x285981}=await getDbTableDiff(_0x577cd7[_0x81fbb0(0x113)],_0x56fce3,{'pageIndex':_0x20e9bd,'pageSize':_0x32c7d6,'tableName':_0x264245});return{'ok':!![],'data':{'dbLinkId':_0x56fce3,'page':_0x20e9bd,'pageSize':_0x32c7d6,'totalCount':_0x3c4be8,'physicalTableCount':_0x262f3e,'datasetTableCount':_0xd94b6d,..._0x2c57f6?{'summary':_0x2c57f6}:{},'tables':_0x285981,'tableList':_0x285981},'message':_0x285981[_0x81fbb0(0x11d)]+_0x81fbb0(0x10a)+_0x3c4be8+_0x81fbb0(0x11f)+_0x56fce3+')'};}};
1
+ const a80_0x2a2052=a80_0x5436;(function(_0x20ede8,_0x4045ed){const _0x13973f=a80_0x5436,_0x436d8d=_0x20ede8();while(!![]){try{const _0x46f485=-parseInt(_0x13973f(0xd1))/0x1+parseInt(_0x13973f(0xd6))/0x2+parseInt(_0x13973f(0xcc))/0x3+parseInt(_0x13973f(0xcb))/0x4+-parseInt(_0x13973f(0xca))/0x5+-parseInt(_0x13973f(0xd7))/0x6*(-parseInt(_0x13973f(0xce))/0x7)+-parseInt(_0x13973f(0xd3))/0x8*(-parseInt(_0x13973f(0xd2))/0x9);if(_0x46f485===_0x4045ed)break;else _0x436d8d['push'](_0x436d8d['shift']());}catch(_0x58d94a){_0x436d8d['push'](_0x436d8d['shift']());}}}(a80_0x2992,0x6ef94));import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a80_0x2992(){const _0x5b0e7f=['Page\x20index\x20(1-based)','200270RRYLhx','read','\x20(db\x20link\x20','794810GqInMC','9cBOIUG','830472EeQByo','pagesize','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','1725440iZVqOD','36wAJNbW','number','\x20row(s),\x20total\x20','length','num','appCode','table','diff','2066695eTIqWA','657232DgItAZ','1080600umzdkt'];a80_0x2992=function(){return _0x5b0e7f;};return a80_0x2992();}function a80_0x5436(_0x521875,_0x4c232c){_0x521875=_0x521875-0xc7;const _0x299200=a80_0x2992();let _0x5436d0=_0x299200[_0x521875];return _0x5436d0;}export const dbDiff={'service':'db','command':a80_0x2a2052(0xc9),'description':'Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','risk':a80_0x2a2052(0xcf),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':'string','description':a80_0x2a2052(0xd5)},{'name':'page','type':a80_0x2a2052(0xd8),'description':a80_0x2a2052(0xcd),'default':0x1},{'name':a80_0x2a2052(0xd4),'type':a80_0x2a2052(0xd8),'description':'Page\x20size','default':0x14}],async 'execute'(_0x2185c7){const _0x6cd26c=a80_0x2a2052,_0x2e0a3d=_0x2185c7[_0x6cd26c(0xdb)]('id'),_0x1f0e59=_0x2185c7[_0x6cd26c(0xdb)]('page',0x1)||0x1,_0x19944b=_0x2185c7['num']('pagesize',0x14)||0x14,_0x952cf=_0x2185c7['str'](_0x6cd26c(0xc8))||undefined,{totalCount:_0x265a47,physicalTableCount:_0x261141,datasetTableCount:_0x47886d,summary:_0x1c6d8b,tableList:_0x3fba33}=await getDbTableDiff(_0x2185c7[_0x6cd26c(0xc7)],_0x2e0a3d,{'pageIndex':_0x1f0e59,'pageSize':_0x19944b,'tableName':_0x952cf});return{'ok':!![],'data':{'dbLinkId':_0x2e0a3d,'page':_0x1f0e59,'pageSize':_0x19944b,'totalCount':_0x265a47,'physicalTableCount':_0x261141,'datasetTableCount':_0x47886d,..._0x1c6d8b?{'summary':_0x1c6d8b}:{},'tables':_0x3fba33,'tableList':_0x3fba33},'message':_0x3fba33[_0x6cd26c(0xda)]+_0x6cd26c(0xd9)+_0x265a47+_0x6cd26c(0xd0)+_0x2e0a3d+')'};}};
@@ -1 +1 @@
1
- function a82_0x4634(){const _0x584211=['110rorFLa','3735WEGqPf','62JTrhdq','268443TuAvzI','282600umRboT','2326032FzjPKf','252gOjwcp','29181zrOjsC','7020QoTXif','4691786wFnKZx','1211765RvecKb'];a82_0x4634=function(){return _0x584211;};return a82_0x4634();}(function(_0x4f02a7,_0x477ad8){const _0x27f433=a82_0x3ca4,_0x1a451d=_0x4f02a7();while(!![]){try{const _0xa7526c=parseInt(_0x27f433(0x101))/0x1+parseInt(_0x27f433(0x104))/0x2*(-parseInt(_0x27f433(0xfe))/0x3)+parseInt(_0x27f433(0xff))/0x4*(parseInt(_0x27f433(0x103))/0x5)+-parseInt(_0x27f433(0x107))/0x6+-parseInt(_0x27f433(0xfd))/0x7*(parseInt(_0x27f433(0x106))/0x8)+-parseInt(_0x27f433(0x105))/0x9*(parseInt(_0x27f433(0x102))/0xa)+parseInt(_0x27f433(0x100))/0xb;if(_0xa7526c===_0x477ad8)break;else _0x1a451d['push'](_0x1a451d['shift']());}catch(_0x2f8bd0){_0x1a451d['push'](_0x1a451d['shift']());}}}(a82_0x4634,0xa132e));function a82_0x3ca4(_0x62f640,_0x740b7b){_0x62f640=_0x62f640-0xfd;const _0x46343b=a82_0x4634();let _0x3ca44b=_0x46343b[_0x62f640];return _0x3ca44b;}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';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
1
+ (function(_0x50ed3b,_0x538884){const _0x9efccc=a81_0x40ca,_0x3ca152=_0x50ed3b();while(!![]){try{const _0x5088cc=parseInt(_0x9efccc(0xe3))/0x1+-parseInt(_0x9efccc(0xe2))/0x2*(-parseInt(_0x9efccc(0xe8))/0x3)+-parseInt(_0x9efccc(0xe6))/0x4+-parseInt(_0x9efccc(0xe9))/0x5*(parseInt(_0x9efccc(0xe7))/0x6)+-parseInt(_0x9efccc(0xe1))/0x7*(parseInt(_0x9efccc(0xe0))/0x8)+-parseInt(_0x9efccc(0xe4))/0x9*(parseInt(_0x9efccc(0xea))/0xa)+-parseInt(_0x9efccc(0xe5))/0xb;if(_0x5088cc===_0x538884)break;else _0x3ca152['push'](_0x3ca152['shift']());}catch(_0x5b2f7a){_0x3ca152['push'](_0x3ca152['shift']());}}}(a81_0x1666,0x49299));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';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_0x40ca(_0x54be9f,_0x56bcbe){_0x54be9f=_0x54be9f-0xe0;const _0x1666be=a81_0x1666();let _0x40caa2=_0x1666be[_0x54be9f];return _0x40caa2;}import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';function a81_0x1666(){const _0x1b5eec=['601020CGjLry','36qISHoI','3QIYVRC','98635ePVgbu','29910CZQrCT','143264GzWnHv','56fwQEkV','965706zAHIgb','588348VRwNqx','27ElShkG','3857414aEolAQ'];a81_0x1666=function(){return _0x1b5eec;};return a81_0x1666();}export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
@@ -1 +1 @@
1
- const a83_0x27ddff=a83_0x11fa;function a83_0x5818(){const _0x22c287=['2495600EnNDeM','Page\x20size','62386tkzgGv','read','page','8659rtqBmP','33iylaXk','10RqhaAB','3193736YOkbIO','8726202oFuQkt','13599uHhWaR','num','2730vlyyHu','appCode','23892363xfJhuJ','\x20database\x20connection(s)','number','5hkxXcC','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','length','pagesize','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'];a83_0x5818=function(){return _0x22c287;};return a83_0x5818();}(function(_0x569f16,_0x2b5401){const _0x12b392=a83_0x11fa,_0x3fe325=_0x569f16();while(!![]){try{const _0x1ee7d9=-parseInt(_0x12b392(0x185))/0x1+parseInt(_0x12b392(0x193))/0x2*(-parseInt(_0x12b392(0x181))/0x3)+-parseInt(_0x12b392(0x191))/0x4*(-parseInt(_0x12b392(0x18c))/0x5)+-parseInt(_0x12b392(0x187))/0x6*(parseInt(_0x12b392(0x180))/0x7)+-parseInt(_0x12b392(0x183))/0x8+-parseInt(_0x12b392(0x184))/0x9+parseInt(_0x12b392(0x182))/0xa*(parseInt(_0x12b392(0x189))/0xb);if(_0x1ee7d9===_0x2b5401)break;else _0x3fe325['push'](_0x3fe325['shift']());}catch(_0x5686dc){_0x3fe325['push'](_0x3fe325['shift']());}}}(a83_0x5818,0x7bebd));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a83_0x11fa(_0x4bae94,_0x1e4a37){_0x4bae94=_0x4bae94-0x17e;const _0x5818ca=a83_0x5818();let _0x11fa02=_0x5818ca[_0x4bae94];return _0x11fa02;}import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':'list','description':a83_0x27ddff(0x18d),'risk':a83_0x27ddff(0x17e),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a83_0x27ddff(0x17f),'type':a83_0x27ddff(0x18b),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':a83_0x27ddff(0x18f),'type':a83_0x27ddff(0x18b),'description':a83_0x27ddff(0x192),'default':0x64}],async 'execute'(_0x2063a8){const _0x5dc083=a83_0x27ddff,_0x161faf=_0x2063a8[_0x5dc083(0x186)]('page',0x1)||0x1,_0x63ebe7=_0x2063a8[_0x5dc083(0x186)]('pagesize',0x64)||0x64,{items:_0x4fcd67,paging:_0x5075ba}=await listDbLinks(_0x2063a8[_0x5dc083(0x188)],{'currentPage':_0x161faf,'pageSize':_0x63ebe7}),_0x599317=sanitizeDbLinkList(_0x4fcd67),_0x5f39bf=_0x5075ba?_0x5075ba:{'currentPage':_0x161faf,'pageSize':_0x63ebe7,'rowsOnPage':_0x599317['length'],'totalCount':null,'note':_0x5dc083(0x190)};return{'ok':!![],'data':{'connections':_0x599317,'paging':_0x5f39bf},'message':'Found\x20'+_0x599317[_0x5dc083(0x18e)]+_0x5dc083(0x18a)};}};
1
+ function a82_0x26cc(){const _0xe22a0e=['4NGOeZY','6366822WxeCem','1913755awUFwX','length','52269012gBEPZP','2770hWLuWB','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','4865946VYBHXd','859nRdIQX','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','read','Found\x20','pagesize','Page\x20size','num','4714476eVxGjM','\x20database\x20connection(s)','list','number','6910656VdoJhD'];a82_0x26cc=function(){return _0xe22a0e;};return a82_0x26cc();}const a82_0x15a5d8=a82_0x1d76;(function(_0x269bf2,_0x28f956){const _0x33ed91=a82_0x1d76,_0x486551=_0x269bf2();while(!![]){try{const _0x3ad4cf=parseInt(_0x33ed91(0x13c))/0x1*(-parseInt(_0x33ed91(0x14d))/0x2)+parseInt(_0x33ed91(0x150))/0x3*(-parseInt(_0x33ed91(0x148))/0x4)+parseInt(_0x33ed91(0x14a))/0x5+-parseInt(_0x33ed91(0x143))/0x6+-parseInt(_0x33ed91(0x149))/0x7+-parseInt(_0x33ed91(0x147))/0x8+parseInt(_0x33ed91(0x14c))/0x9;if(_0x3ad4cf===_0x28f956)break;else _0x486551['push'](_0x486551['shift']());}catch(_0x2c2dc8){_0x486551['push'](_0x486551['shift']());}}}(a82_0x26cc,0xc818e));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';function a82_0x1d76(_0x360e75,_0x436065){_0x360e75=_0x360e75-0x13c;const _0x26cce9=a82_0x26cc();let _0x1d76c7=_0x26cce9[_0x360e75];return _0x1d76c7;}export const dbList={'service':'db','command':a82_0x15a5d8(0x145),'description':a82_0x15a5d8(0x14e),'risk':a82_0x15a5d8(0x13e),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a82_0x15a5d8(0x14f),'type':a82_0x15a5d8(0x146),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':'pagesize','type':a82_0x15a5d8(0x146),'description':a82_0x15a5d8(0x141),'default':0x64}],async 'execute'(_0x3f45d6){const _0x443290=a82_0x15a5d8,_0x471fcf=_0x3f45d6[_0x443290(0x142)](_0x443290(0x14f),0x1)||0x1,_0x48b64a=_0x3f45d6[_0x443290(0x142)](_0x443290(0x140),0x64)||0x64,{items:_0x12e920,paging:_0x20fbf5}=await listDbLinks(_0x3f45d6['appCode'],{'currentPage':_0x471fcf,'pageSize':_0x48b64a}),_0x1f966e=sanitizeDbLinkList(_0x12e920),_0x1397a3=_0x20fbf5?_0x20fbf5:{'currentPage':_0x471fcf,'pageSize':_0x48b64a,'rowsOnPage':_0x1f966e[_0x443290(0x14b)],'totalCount':null,'note':_0x443290(0x13d)};return{'ok':!![],'data':{'connections':_0x1f966e,'paging':_0x1397a3},'message':_0x443290(0x13f)+_0x1f966e[_0x443290(0x14b)]+_0x443290(0x144)};}};
@@ -1 +1 @@
1
- function a84_0x386a(){const _0x30e75e=['7515513xBYrRv','token','privatekey','/data/database','trim','1080vDHuOf','authorization','870RYyBwk','[redacted]','48895ajfndj','dbpassword','isFinite','test','302148QpDUPr','accesskey','keys','1187964yWhbtR','1023812MVztbw','credential','password','toLowerCase','includes','2545kwtBoF','2554804EnjQTl','jdbcurl'];a84_0x386a=function(){return _0x30e75e;};return a84_0x386a();}function a84_0x5203(_0x373482,_0x32d159){_0x373482=_0x373482-0xb7;const _0x386a4f=a84_0x386a();let _0x520356=_0x386a4f[_0x373482];return _0x520356;}(function(_0x203bcc,_0x4c2cab){const _0x5cb9f9=a84_0x5203,_0x1fd6e6=_0x203bcc();while(!![]){try{const _0x5f2b32=-parseInt(_0x5cb9f9(0xc8))/0x1+parseInt(_0x5cb9f9(0xce))/0x2+parseInt(_0x5cb9f9(0xc4))/0x3+parseInt(_0x5cb9f9(0xc7))/0x4+-parseInt(_0x5cb9f9(0xcd))/0x5*(parseInt(_0x5cb9f9(0xbe))/0x6)+-parseInt(_0x5cb9f9(0xc0))/0x7*(-parseInt(_0x5cb9f9(0xbc))/0x8)+-parseInt(_0x5cb9f9(0xb7))/0x9;if(_0x5f2b32===_0x4c2cab)break;else _0x1fd6e6['push'](_0x1fd6e6['shift']());}catch(_0x11f151){_0x1fd6e6['push'](_0x1fd6e6['shift']());}}}(a84_0x386a,0xa7562));import{getAppBaseUrl}from'../../constant/domain.js';function shouldRedactKey(_0x486013){const _0x15521e=a84_0x5203,_0x44ca38=_0x486013[_0x15521e(0xcb)]();if(_0x44ca38===_0x15521e(0xca)||_0x44ca38==='passwd'||_0x44ca38===_0x15521e(0xc1))return!![];if(_0x44ca38['includes']('secret')||_0x44ca38[_0x15521e(0xcc)](_0x15521e(0xb8))||_0x44ca38[_0x15521e(0xcc)](_0x15521e(0xc9)))return!![];if(_0x44ca38['includes'](_0x15521e(0xb9))||_0x44ca38[_0x15521e(0xcc)](_0x15521e(0xc5)))return!![];if(_0x44ca38===_0x15521e(0xbd)||_0x44ca38==='connectionstring'||_0x44ca38===_0x15521e(0xcf))return!![];return![];}export function sanitizeDbLinkForOutput(_0x435e3f){const _0x2abbe4=a84_0x5203,_0x2c931b={..._0x435e3f};for(const _0x58f37c of Object[_0x2abbe4(0xc6)](_0x2c931b)){if(!shouldRedactKey(_0x58f37c))continue;const _0x23a3f6=_0x2c931b[_0x58f37c];_0x23a3f6!=null&&String(_0x23a3f6)['length']>0x0&&(_0x2c931b[_0x58f37c]=_0x2abbe4(0xbf));}return _0x2c931b;}export function sanitizeDbLinkList(_0x31227e){return _0x31227e['map'](_0x1df7fc=>sanitizeDbLinkForOutput(_0x1df7fc));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x5443b4){const _0xdca4f0=a84_0x5203,_0x2b5976=_0x5443b4[_0xdca4f0(0xbb)]();if(!_0x2b5976)return![];return DB_URL_PATTERN[_0xdca4f0(0xc3)](_0x2b5976);}export function buildDbPageLinks(_0x3f7ee0,_0x1466d5){const _0x3aa7b9=a84_0x5203,_0xeaa9f=_0x3f7ee0?.[_0x3aa7b9(0xbb)]();if(!_0xeaa9f)return undefined;const _0x11cdfd=typeof _0x1466d5==='number'?String(_0x1466d5):String(_0x1466d5??'')['trim']();if(!_0x11cdfd)return undefined;const _0x4997fe=Number(_0x11cdfd);if(!Number[_0x3aa7b9(0xc2)](_0x4997fe)||_0x4997fe<=0x0)return undefined;const _0x46f30e=getAppBaseUrl(_0xeaa9f),_0x224a8e=encodeURIComponent(String(_0x4997fe));return{'databasePage':_0x46f30e+_0x3aa7b9(0xba),'erPage':_0x46f30e+'/data/er?dbId='+_0x224a8e};}
1
+ (function(_0x422b69,_0x4d10a9){const _0x15ea48=a83_0x9d2e,_0x350b47=_0x422b69();while(!![]){try{const _0x34a625=parseInt(_0x15ea48(0x8f))/0x1+-parseInt(_0x15ea48(0x88))/0x2+parseInt(_0x15ea48(0x82))/0x3*(-parseInt(_0x15ea48(0x9c))/0x4)+-parseInt(_0x15ea48(0x9f))/0x5+-parseInt(_0x15ea48(0x83))/0x6*(parseInt(_0x15ea48(0x9e))/0x7)+-parseInt(_0x15ea48(0x87))/0x8*(parseInt(_0x15ea48(0x8d))/0x9)+-parseInt(_0x15ea48(0x95))/0xa*(-parseInt(_0x15ea48(0x85))/0xb);if(_0x34a625===_0x4d10a9)break;else _0x350b47['push'](_0x350b47['shift']());}catch(_0x19e88f){_0x350b47['push'](_0x350b47['shift']());}}}(a83_0xec12,0x82ac7));function a83_0xec12(){const _0x47a84e=['secret','1005204kWnHUO','password','passwd','dbpassword','map','trim','910SqcgHy','length','jdbcurl','includes','token','/data/database','/data/er?dbId=','67616eKlkeS','number','653611gKZPvI','5276830YuRsQs','connectionstring','27AXPUmR','42knXibU','privatekey','328614hYToQS','keys','8zWRpzG','2002136VoTcqG','[redacted]','isFinite','accesskey','authorization','2936862sIvbMR'];a83_0xec12=function(){return _0x47a84e;};return a83_0xec12();}import{getAppBaseUrl}from'../../constant/domain.js';function shouldRedactKey(_0x11cf89){const _0x2ce5a2=a83_0x9d2e,_0x32f225=_0x11cf89['toLowerCase']();if(_0x32f225===_0x2ce5a2(0x90)||_0x32f225===_0x2ce5a2(0x91)||_0x32f225===_0x2ce5a2(0x92))return!![];if(_0x32f225[_0x2ce5a2(0x98)](_0x2ce5a2(0x8e))||_0x32f225['includes'](_0x2ce5a2(0x99))||_0x32f225['includes']('credential'))return!![];if(_0x32f225[_0x2ce5a2(0x98)](_0x2ce5a2(0x84))||_0x32f225[_0x2ce5a2(0x98)](_0x2ce5a2(0x8b)))return!![];if(_0x32f225===_0x2ce5a2(0x8c)||_0x32f225===_0x2ce5a2(0x81)||_0x32f225===_0x2ce5a2(0x97))return!![];return![];}export function sanitizeDbLinkForOutput(_0x1cb6eb){const _0x2493b2=a83_0x9d2e,_0x2627d9={..._0x1cb6eb};for(const _0xda6b51 of Object[_0x2493b2(0x86)](_0x2627d9)){if(!shouldRedactKey(_0xda6b51))continue;const _0x23c821=_0x2627d9[_0xda6b51];_0x23c821!=null&&String(_0x23c821)[_0x2493b2(0x96)]>0x0&&(_0x2627d9[_0xda6b51]=_0x2493b2(0x89));}return _0x2627d9;}export function sanitizeDbLinkList(_0x2ce736){const _0x3b7b15=a83_0x9d2e;return _0x2ce736[_0x3b7b15(0x93)](_0xc32519=>sanitizeDbLinkForOutput(_0xc32519));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;function a83_0x9d2e(_0x23581e,_0x56965f){_0x23581e=_0x23581e-0x81;const _0xec12d8=a83_0xec12();let _0x9d2e24=_0xec12d8[_0x23581e];return _0x9d2e24;}export function validateDbUrl(_0x49c2c3){const _0x2993a6=a83_0x9d2e,_0x479054=_0x49c2c3[_0x2993a6(0x94)]();if(!_0x479054)return![];return DB_URL_PATTERN['test'](_0x479054);}export function buildDbPageLinks(_0x1df6ee,_0x2e52d4){const _0x2c6e31=a83_0x9d2e,_0x44eef7=_0x1df6ee?.[_0x2c6e31(0x94)]();if(!_0x44eef7)return undefined;const _0x22ea91=typeof _0x2e52d4===_0x2c6e31(0x9d)?String(_0x2e52d4):String(_0x2e52d4??'')[_0x2c6e31(0x94)]();if(!_0x22ea91)return undefined;const _0x14d2d9=Number(_0x22ea91);if(!Number[_0x2c6e31(0x8a)](_0x14d2d9)||_0x14d2d9<=0x0)return undefined;const _0x58bf28=getAppBaseUrl(_0x44eef7),_0x4d1bff=encodeURIComponent(String(_0x14d2d9));return{'databasePage':_0x58bf28+_0x2c6e31(0x9a),'erPage':_0x58bf28+_0x2c6e31(0x9b)+_0x4d1bff};}
@@ -1 +1 @@
1
- function a85_0x4950(){const _0x467c19=['List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','43411NdxIxx','15ruEUAP','tables','3711996mHLFhi','99jbcicT','34wyllAj','length','1441000ZEKfdn','3773508WoNPdR','appCode','\x20table(s)\x20on\x20db\x20link\x20','1179848mWMVrn','7169112qkkUOt','63GFAvJx','1733604VOjHbE'];a85_0x4950=function(){return _0x467c19;};return a85_0x4950();}const a85_0xeacdbe=a85_0x5515;(function(_0x196778,_0x2fcb42){const _0x26d387=a85_0x5515,_0x5af2f6=_0x196778();while(!![]){try{const _0x549d23=-parseInt(_0x26d387(0x11a))/0x1*(parseInt(_0x26d387(0x10f))/0x2)+-parseInt(_0x26d387(0x112))/0x3+parseInt(_0x26d387(0x118))/0x4*(-parseInt(_0x26d387(0x11b))/0x5)+parseInt(_0x26d387(0x116))/0x6+-parseInt(_0x26d387(0x117))/0x7*(-parseInt(_0x26d387(0x115))/0x8)+parseInt(_0x26d387(0x11d))/0x9+parseInt(_0x26d387(0x111))/0xa*(parseInt(_0x26d387(0x10e))/0xb);if(_0x549d23===_0x2fcb42)break;else _0x5af2f6['push'](_0x5af2f6['shift']());}catch(_0x4e6306){_0x5af2f6['push'](_0x5af2f6['shift']());}}}(a85_0x4950,0xe464b));function a85_0x5515(_0x5d9cb7,_0x3ae26b){_0x5d9cb7=_0x5d9cb7-0x10e;const _0x49509b=a85_0x4950();let _0x5515b0=_0x49509b[_0x5d9cb7];return _0x5515b0;}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':a85_0xeacdbe(0x11c),'description':a85_0xeacdbe(0x119),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4fd1bd){const _0x439ad1=a85_0xeacdbe,_0x156a79=_0x4fd1bd['num']('id'),_0x4c0a63=await getDbAllTableList(_0x4fd1bd[_0x439ad1(0x113)],_0x156a79);return{'ok':!![],'data':{'dbLinkId':_0x156a79,'total':_0x4c0a63[_0x439ad1(0x110)],'tables':_0x4c0a63},'message':_0x4c0a63[_0x439ad1(0x110)]+_0x439ad1(0x114)+_0x156a79};}};
1
+ function a84_0x149b(){const _0x3c42d4=['6806932VcrJdb','1631684aXYkrQ','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','873968BEVUHO','\x20table(s)\x20on\x20db\x20link\x20','363206nTXoIZ','1221031qFLaRT','49655DqolzS','2xRljNr','3IyMIum','read','appCode','3021140GLyCWq','length','9DmJDGT','num','78KRnKcw'];a84_0x149b=function(){return _0x3c42d4;};return a84_0x149b();}const a84_0x296574=a84_0x54b8;(function(_0x3380dc,_0x1b0074){const _0x4786a0=a84_0x54b8,_0xd3e4ac=_0x3380dc();while(!![]){try{const _0x418840=-parseInt(_0x4786a0(0xb4))/0x1*(-parseInt(_0x4786a0(0xa6))/0x2)+parseInt(_0x4786a0(0xa7))/0x3*(parseInt(_0x4786a0(0xb0))/0x4)+parseInt(_0x4786a0(0xb6))/0x5*(parseInt(_0x4786a0(0xae))/0x6)+-parseInt(_0x4786a0(0xb5))/0x7+parseInt(_0x4786a0(0xb2))/0x8*(-parseInt(_0x4786a0(0xac))/0x9)+parseInt(_0x4786a0(0xaa))/0xa+-parseInt(_0x4786a0(0xaf))/0xb;if(_0x418840===_0x1b0074)break;else _0xd3e4ac['push'](_0xd3e4ac['shift']());}catch(_0x2da578){_0xd3e4ac['push'](_0xd3e4ac['shift']());}}}(a84_0x149b,0x4934d));import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a84_0x54b8(_0x1ef1b5,_0x347355){_0x1ef1b5=_0x1ef1b5-0xa6;const _0x149b90=a84_0x149b();let _0x54b81c=_0x149b90[_0x1ef1b5];return _0x54b81c;}export const dbTables={'service':'db','command':'tables','description':a84_0x296574(0xb1),'risk':a84_0x296574(0xa8),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3a36fc){const _0x9ff27a=a84_0x296574,_0x10d69f=_0x3a36fc[_0x9ff27a(0xad)]('id'),_0x1c5277=await getDbAllTableList(_0x3a36fc[_0x9ff27a(0xa9)],_0x10d69f);return{'ok':!![],'data':{'dbLinkId':_0x10d69f,'total':_0x1c5277[_0x9ff27a(0xab)],'tables':_0x1c5277},'message':_0x1c5277['length']+_0x9ff27a(0xb3)+_0x10d69f};}};
@@ -1 +1 @@
1
- function a86_0x4dd7(_0xc0ac8,_0x3f4759){_0xc0ac8=_0xc0ac8-0xe4;const _0x2465ad=a86_0x2465();let _0x4dd72f=_0x2465ad[_0xc0ac8];return _0x4dd72f;}const a86_0x35d230=a86_0x4dd7;(function(_0x5237a4,_0x2fc102){const _0x4e1262=a86_0x4dd7,_0x32264e=_0x5237a4();while(!![]){try{const _0x564739=-parseInt(_0x4e1262(0xfc))/0x1*(-parseInt(_0x4e1262(0xec))/0x2)+parseInt(_0x4e1262(0xe4))/0x3+-parseInt(_0x4e1262(0xf2))/0x4*(parseInt(_0x4e1262(0xe9))/0x5)+parseInt(_0x4e1262(0xfa))/0x6+-parseInt(_0x4e1262(0xe6))/0x7*(-parseInt(_0x4e1262(0xf3))/0x8)+-parseInt(_0x4e1262(0xfb))/0x9+-parseInt(_0x4e1262(0xe8))/0xa;if(_0x564739===_0x2fc102)break;else _0x32264e['push'](_0x32264e['shift']());}catch(_0xf398c3){_0x32264e['push'](_0x32264e['shift']());}}}(a86_0x2465,0x92641));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x56fa49){const _0xc44103=a86_0x4dd7;if(_0x56fa49===!![]||_0x56fa49===![])return{'success':_0x56fa49};if(_0x56fa49===null||_0x56fa49===undefined)return{'type':typeof _0x56fa49};if(typeof _0x56fa49!=='object')return{'type':typeof _0x56fa49};const _0x1ab5ff=_0x56fa49,_0x5053cb=[_0xc44103(0xee),_0xc44103(0xf6),_0xc44103(0xf9),_0xc44103(0xf7),'msg',_0xc44103(0xf5)],_0x2dee04={};for(const _0x6a8783 of _0x5053cb){if(_0x6a8783 in _0x1ab5ff)_0x2dee04[_0x6a8783]=_0x1ab5ff[_0x6a8783];}return Object[_0xc44103(0xe5)](_0x2dee04)[_0xc44103(0xea)]===0x0&&(_0x2dee04[_0xc44103(0xe5)]=Object[_0xc44103(0xe5)](_0x1ab5ff)[_0xc44103(0xf0)](0x0,0x14)),_0x2dee04;}function a86_0x2465(){const _0x456766=['read','success','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','slice','object','4452708iSGNJq','5364856jNwOSX','test','data','message','error','\x20(see\x20data.result)','code','561378peJdlk','324207gafqXD','50dSAazs','3563064XKuTWm','keys','7yTdtEY','num','3372910fqHmPm','5leqncM','length','Connection\x20OK\x20for\x20db\x20link\x20','5370PzhAgY'];a86_0x2465=function(){return _0x456766;};return a86_0x2465();}export const dbTest={'service':'db','command':a86_0x35d230(0xf4),'description':a86_0x35d230(0xef),'risk':a86_0x35d230(0xed),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x12b32a){const _0x5663ee=a86_0x35d230,_0x486c64=_0x12b32a[_0x5663ee(0xe7)]('id'),_0x307590=await testDbLinkConnect(_0x486c64),_0x4fd22d=_0x307590===!![]||typeof _0x307590===_0x5663ee(0xf1)&&_0x307590!==null&&_0x307590[_0x5663ee(0xee)]===!![],_0x5944cc=summarizeTestConnectResult(_0x307590);return{'ok':!![],'data':{'id':_0x486c64,'connected':Boolean(_0x4fd22d),'result':_0x5944cc},'message':_0x4fd22d?_0x5663ee(0xeb)+_0x486c64:'Connection\x20check\x20finished\x20for\x20db\x20link\x20'+_0x486c64+_0x5663ee(0xf8)};}};
1
+ const a85_0x2060b7=a85_0x4150;(function(_0x31e8f3,_0x26a849){const _0x5f526b=a85_0x4150,_0x144c3d=_0x31e8f3();while(!![]){try{const _0x9ca29=parseInt(_0x5f526b(0x14e))/0x1+-parseInt(_0x5f526b(0x151))/0x2*(-parseInt(_0x5f526b(0x15f))/0x3)+-parseInt(_0x5f526b(0x159))/0x4+parseInt(_0x5f526b(0x15d))/0x5*(parseInt(_0x5f526b(0x15b))/0x6)+parseInt(_0x5f526b(0x154))/0x7+-parseInt(_0x5f526b(0x160))/0x8*(parseInt(_0x5f526b(0x150))/0x9)+-parseInt(_0x5f526b(0x14b))/0xa;if(_0x9ca29===_0x26a849)break;else _0x144c3d['push'](_0x144c3d['shift']());}catch(_0x456f16){_0x144c3d['push'](_0x144c3d['shift']());}}}(a85_0x1db6,0x28759));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x1f0899){const _0x541cc1=a85_0x4150;if(_0x1f0899===!![]||_0x1f0899===![])return{'success':_0x1f0899};if(_0x1f0899===null||_0x1f0899===undefined)return{'type':typeof _0x1f0899};if(typeof _0x1f0899!==_0x541cc1(0x15c))return{'type':typeof _0x1f0899};const _0x4bcb5e=_0x1f0899,_0x24a02c=['success','message',_0x541cc1(0x14f),_0x541cc1(0x153),_0x541cc1(0x14c),_0x541cc1(0x14d)],_0x5e8162={};for(const _0x45063b of _0x24a02c){if(_0x45063b in _0x4bcb5e)_0x5e8162[_0x45063b]=_0x4bcb5e[_0x45063b];}return Object['keys'](_0x5e8162)[_0x541cc1(0x14a)]===0x0&&(_0x5e8162[_0x541cc1(0x152)]=Object['keys'](_0x4bcb5e)[_0x541cc1(0x156)](0x0,0x14)),_0x5e8162;}function a85_0x1db6(){const _0x17b6d7=['error','632184UNvAGe','test','slice','num','Connection\x20OK\x20for\x20db\x20link\x20','475896eAfFzu','success','828822PADzUE','object','5vWNwfz','read','1983iLUBuF','5792IiKYUb','length','2682840ztGYpK','msg','data','295104XpdEwa','code','801MdEdFs','284rwcISx','keys'];a85_0x1db6=function(){return _0x17b6d7;};return a85_0x1db6();}function a85_0x4150(_0x14e218,_0x23e69c){_0x14e218=_0x14e218-0x14a;const _0x1db65e=a85_0x1db6();let _0x4150d2=_0x1db65e[_0x14e218];return _0x4150d2;}export const dbTest={'service':'db','command':a85_0x2060b7(0x155),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':a85_0x2060b7(0x15e),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x53a645){const _0x292f0d=a85_0x2060b7,_0x3c5289=_0x53a645[_0x292f0d(0x157)]('id'),_0x14e704=await testDbLinkConnect(_0x3c5289),_0xd1f305=_0x14e704===!![]||typeof _0x14e704==='object'&&_0x14e704!==null&&_0x14e704[_0x292f0d(0x15a)]===!![],_0x25822f=summarizeTestConnectResult(_0x14e704);return{'ok':!![],'data':{'id':_0x3c5289,'connected':Boolean(_0xd1f305),'result':_0x25822f},'message':_0xd1f305?_0x292f0d(0x158)+_0x3c5289:'Connection\x20check\x20finished\x20for\x20db\x20link\x20'+_0x3c5289+'\x20(see\x20data.result)'};}};
@@ -1 +1 @@
1
- const a87_0x5e546f=a87_0x39a8;function a87_0x35d5(){const _0x469c2d=['1165FaoUuf','dbUrl','New\x20connection\x20parameter\x20string','dbparam','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','update','7100664SrSUWK','/smartapi/dblink/update','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','write','username','str','92126kZQAEM','dbName','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','dbParam','string','Updated\x20db\x20link\x20','dbdesc','22468PsExBN','15rYaBEs','dbname','2988909JgRHIb','num','New\x20description','dburl','1188198DwXkWM','dbDesc','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','trim','New\x20host:port','password','7LLGJnR','4286072URqFJK','1726530czmdrG'];a87_0x35d5=function(){return _0x469c2d;};return a87_0x35d5();}(function(_0x1f6670,_0x5493b1){const _0x4a49a9=a87_0x39a8,_0xc2472b=_0x1f6670();while(!![]){try{const _0xcc0675=parseInt(_0x4a49a9(0xca))/0x1+-parseInt(_0x4a49a9(0xbc))/0x2*(parseInt(_0x4a49a9(0xc4))/0x3)+-parseInt(_0x4a49a9(0xc3))/0x4*(-parseInt(_0x4a49a9(0xd3))/0x5)+parseInt(_0x4a49a9(0xb6))/0x6*(-parseInt(_0x4a49a9(0xd0))/0x7)+-parseInt(_0x4a49a9(0xd1))/0x8+parseInt(_0x4a49a9(0xc6))/0x9+-parseInt(_0x4a49a9(0xd2))/0xa;if(_0xcc0675===_0x5493b1)break;else _0xc2472b['push'](_0xc2472b['shift']());}catch(_0x1c97f6){_0xc2472b['push'](_0xc2472b['shift']());}}}(a87_0x35d5,0xac949));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';function a87_0x39a8(_0x3dc222,_0x2f2d32){_0x3dc222=_0x3dc222-0xb5;const _0x35d5c1=a87_0x35d5();let _0x39a897=_0x35d5c1[_0x3dc222];return _0x39a897;}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':a87_0x5e546f(0xb5),'description':a87_0x5e546f(0xd7),'risk':a87_0x5e546f(0xb9),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a87_0x5e546f(0xc0),'description':'New\x20database\x20name'},{'name':a87_0x5e546f(0xc9),'type':'string','description':a87_0x5e546f(0xce)},{'name':a87_0x5e546f(0xba),'type':'string','description':'New\x20username'},{'name':a87_0x5e546f(0xcf),'type':a87_0x5e546f(0xc0),'description':a87_0x5e546f(0xb8)},{'name':a87_0x5e546f(0xd6),'type':a87_0x5e546f(0xc0),'description':a87_0x5e546f(0xd5)},{'name':a87_0x5e546f(0xc2),'type':a87_0x5e546f(0xc0),'description':a87_0x5e546f(0xc8)}],async 'validate'(_0x1ac6ed){const _0x3d82cd=a87_0x5e546f,_0xee5f28=_0x1ac6ed[_0x3d82cd(0xbb)](_0x3d82cd(0xc9));if(_0xee5f28&&!validateDbUrl(_0xee5f28[_0x3d82cd(0xcd)]()))throw CliErrors['validation'](_0x3d82cd(0xbe)+_0xee5f28+'\x22');},async 'dryRun'(_0x383c03){const _0x161a55=a87_0x5e546f,_0x98410e=_0x383c03[_0x161a55(0xc7)]('id'),_0x370b27=await getDbLinkInfo(_0x98410e),_0x469fb8={..._0x370b27},_0x5c9a35=_0x383c03[_0x161a55(0xbb)](_0x161a55(0xc5));if(_0x5c9a35)_0x469fb8[_0x161a55(0xbd)]=_0x5c9a35;const _0x40c5c5=_0x383c03[_0x161a55(0xbb)](_0x161a55(0xc9));if(_0x40c5c5)_0x469fb8[_0x161a55(0xd4)]=_0x40c5c5[_0x161a55(0xcd)]();const _0x4d5eed=_0x383c03[_0x161a55(0xbb)](_0x161a55(0xba));if(_0x4d5eed)_0x469fb8[_0x161a55(0xba)]=_0x4d5eed;const _0x2e0f1d=_0x383c03[_0x161a55(0xbb)]('password');if(_0x2e0f1d)_0x469fb8[_0x161a55(0xcf)]=_0x2e0f1d;const _0x5377c7=_0x383c03['str'](_0x161a55(0xd6));if(_0x5377c7)_0x469fb8[_0x161a55(0xbf)]=_0x5377c7;const _0x487a52=_0x383c03['str'](_0x161a55(0xc2));if(_0x487a52)_0x469fb8['dbDesc']=_0x487a52;const _0x3d4233=sanitizeDbLinkForOutput(_0x469fb8);return{'method':'POST','url':_0x161a55(0xb7),'body':_0x3d4233,'description':_0x161a55(0xcc)};},async 'execute'(_0x13c8b8){const _0x53b461=a87_0x5e546f,_0x571cd3=_0x13c8b8['num']('id'),_0x72a1f=await getDbLinkInfo(_0x571cd3),_0x5b0796={..._0x72a1f},_0x4cdbf5=_0x13c8b8[_0x53b461(0xbb)]('dbname');if(_0x4cdbf5)_0x5b0796[_0x53b461(0xbd)]=_0x4cdbf5;const _0x3123a3=_0x13c8b8['str'](_0x53b461(0xc9));if(_0x3123a3)_0x5b0796[_0x53b461(0xd4)]=_0x3123a3['trim']();const _0x2f852d=_0x13c8b8[_0x53b461(0xbb)]('username');if(_0x2f852d)_0x5b0796['username']=_0x2f852d;const _0x46d986=_0x13c8b8[_0x53b461(0xbb)](_0x53b461(0xcf));if(_0x46d986)_0x5b0796[_0x53b461(0xcf)]=_0x46d986;const _0x188f47=_0x13c8b8[_0x53b461(0xbb)]('dbparam');if(_0x188f47)_0x5b0796['dbParam']=_0x188f47;const _0x513fe7=_0x13c8b8[_0x53b461(0xbb)](_0x53b461(0xc2));if(_0x513fe7)_0x5b0796[_0x53b461(0xcb)]=_0x513fe7;const {id:_0x2c280d,entity:_0x25f0b2}=normalizeEntityWithIdResponse(await updateDbLink(_0x5b0796));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x25f0b2),'message':_0x53b461(0xc1)+(_0x2c280d??_0x571cd3)};}};
1
+ const a86_0x270c64=a86_0x4642;function a86_0xf6a0(){const _0x52b0bc=['str','dburl','194CtZcLK','Updated\x20db\x20link\x20','string','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','18484txBpVp','62546lzfpwm','dbdesc','8404610VCZevb','New\x20host:port','7kaOipW','New\x20database\x20name','dbUrl','username','1333797erFlLb','dbParam','8220woBaTi','dbparam','885gnSsAi','5501766FqXqjO','password','dbName','2984eprzhb','dbname','dbDesc','New\x20connection\x20parameter\x20string','trim','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','3293VZEIlu','1170RPZVHF','write','num'];a86_0xf6a0=function(){return _0x52b0bc;};return a86_0xf6a0();}(function(_0x55bb13,_0x2b735f){const _0x502aa8=a86_0x4642,_0x3b0aa0=_0x55bb13();while(!![]){try{const _0x5cc410=-parseInt(_0x502aa8(0x1b7))/0x1*(parseInt(_0x502aa8(0x1bd))/0x2)+-parseInt(_0x502aa8(0x1ca))/0x3+parseInt(_0x502aa8(0x1c1))/0x4*(-parseInt(_0x502aa8(0x1ce))/0x5)+parseInt(_0x502aa8(0x1cf))/0x6*(-parseInt(_0x502aa8(0x1c6))/0x7)+-parseInt(_0x502aa8(0x1d2))/0x8*(parseInt(_0x502aa8(0x1b8))/0x9)+-parseInt(_0x502aa8(0x1c4))/0xa+-parseInt(_0x502aa8(0x1c2))/0xb*(-parseInt(_0x502aa8(0x1cc))/0xc);if(_0x5cc410===_0x2b735f)break;else _0x3b0aa0['push'](_0x3b0aa0['shift']());}catch(_0x2912b7){_0x3b0aa0['push'](_0x3b0aa0['shift']());}}}(a86_0xf6a0,0x7bcb5));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';function a86_0x4642(_0x3c6c19,_0x47c8fb){_0x3c6c19=_0x3c6c19-0x1b7;const _0xf6a00c=a86_0xf6a0();let _0x46421b=_0xf6a00c[_0x3c6c19];return _0x46421b;}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':'update','description':'Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','risk':a86_0x270c64(0x1b9),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a86_0x270c64(0x1d3),'type':a86_0x270c64(0x1bf),'description':a86_0x270c64(0x1c7)},{'name':a86_0x270c64(0x1bc),'type':a86_0x270c64(0x1bf),'description':a86_0x270c64(0x1c5)},{'name':a86_0x270c64(0x1c9),'type':a86_0x270c64(0x1bf),'description':'New\x20username'},{'name':a86_0x270c64(0x1d0),'type':a86_0x270c64(0x1bf),'description':a86_0x270c64(0x1c0)},{'name':a86_0x270c64(0x1cd),'type':'string','description':a86_0x270c64(0x1d5)},{'name':a86_0x270c64(0x1c3),'type':'string','description':'New\x20description'}],async 'validate'(_0x1d5b9c){const _0x590ca7=a86_0x270c64,_0xe4dd1d=_0x1d5b9c['str'](_0x590ca7(0x1bc));if(_0xe4dd1d&&!validateDbUrl(_0xe4dd1d['trim']()))throw CliErrors['validation'](_0x590ca7(0x1d7)+_0xe4dd1d+'\x22');},async 'dryRun'(_0xdb84df){const _0x5c9730=a86_0x270c64,_0x507ec1=_0xdb84df[_0x5c9730(0x1ba)]('id'),_0x28cb58=await getDbLinkInfo(_0x507ec1),_0x2751c8={..._0x28cb58},_0x5942fc=_0xdb84df[_0x5c9730(0x1bb)](_0x5c9730(0x1d3));if(_0x5942fc)_0x2751c8[_0x5c9730(0x1d1)]=_0x5942fc;const _0x2ba204=_0xdb84df['str']('dburl');if(_0x2ba204)_0x2751c8[_0x5c9730(0x1c8)]=_0x2ba204[_0x5c9730(0x1d6)]();const _0x44bc56=_0xdb84df[_0x5c9730(0x1bb)]('username');if(_0x44bc56)_0x2751c8[_0x5c9730(0x1c9)]=_0x44bc56;const _0x4fe1e1=_0xdb84df[_0x5c9730(0x1bb)](_0x5c9730(0x1d0));if(_0x4fe1e1)_0x2751c8['password']=_0x4fe1e1;const _0x569d50=_0xdb84df[_0x5c9730(0x1bb)]('dbparam');if(_0x569d50)_0x2751c8[_0x5c9730(0x1cb)]=_0x569d50;const _0x36885b=_0xdb84df['str'](_0x5c9730(0x1c3));if(_0x36885b)_0x2751c8['dbDesc']=_0x36885b;const _0x16b85a=sanitizeDbLinkForOutput(_0x2751c8);return{'method':'POST','url':'/smartapi/dblink/update','body':_0x16b85a,'description':'Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview'};},async 'execute'(_0x2779c1){const _0x449e26=a86_0x270c64,_0x1aff92=_0x2779c1[_0x449e26(0x1ba)]('id'),_0x545f79=await getDbLinkInfo(_0x1aff92),_0x502845={..._0x545f79},_0xb6bcce=_0x2779c1[_0x449e26(0x1bb)](_0x449e26(0x1d3));if(_0xb6bcce)_0x502845[_0x449e26(0x1d1)]=_0xb6bcce;const _0x140586=_0x2779c1[_0x449e26(0x1bb)](_0x449e26(0x1bc));if(_0x140586)_0x502845[_0x449e26(0x1c8)]=_0x140586[_0x449e26(0x1d6)]();const _0x239902=_0x2779c1[_0x449e26(0x1bb)]('username');if(_0x239902)_0x502845[_0x449e26(0x1c9)]=_0x239902;const _0x569374=_0x2779c1[_0x449e26(0x1bb)](_0x449e26(0x1d0));if(_0x569374)_0x502845[_0x449e26(0x1d0)]=_0x569374;const _0x53b80e=_0x2779c1[_0x449e26(0x1bb)]('dbparam');if(_0x53b80e)_0x502845[_0x449e26(0x1cb)]=_0x53b80e;const _0x6b793c=_0x2779c1[_0x449e26(0x1bb)]('dbdesc');if(_0x6b793c)_0x502845[_0x449e26(0x1d4)]=_0x6b793c;const {id:_0x477f73,entity:_0x7b4928}=normalizeEntityWithIdResponse(await updateDbLink(_0x502845));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x7b4928),'message':_0x449e26(0x1be)+(_0x477f73??_0x1aff92)};}};
@@ -1 +1 @@
1
- const a88_0x68dec8=a88_0x90dd;(function(_0x247fc3,_0x217b0d){const _0x17eae5=a88_0x90dd,_0x8e2e48=_0x247fc3();while(!![]){try{const _0x310555=-parseInt(_0x17eae5(0x1f3))/0x1*(parseInt(_0x17eae5(0x216))/0x2)+-parseInt(_0x17eae5(0x238))/0x3+-parseInt(_0x17eae5(0x222))/0x4+parseInt(_0x17eae5(0x235))/0x5+parseInt(_0x17eae5(0x224))/0x6*(parseInt(_0x17eae5(0x228))/0x7)+-parseInt(_0x17eae5(0x23a))/0x8+parseInt(_0x17eae5(0x1f5))/0x9;if(_0x310555===_0x217b0d)break;else _0x8e2e48['push'](_0x8e2e48['shift']());}catch(_0x10d90e){_0x8e2e48['push'](_0x8e2e48['shift']());}}}(a88_0x3201,0x71263));import a88_0x29245a from'chalk';function a88_0x90dd(_0x48e1e4,_0x30880d){_0x48e1e4=_0x48e1e4-0x1ea;const _0x32013f=a88_0x3201();let _0x90ddb8=_0x32013f[_0x48e1e4];return _0x90ddb8;}import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x5e5afe){const _0x4d2f03=a88_0x90dd,_0x177d1f=GIT_COMMIT!==_0x4d2f03(0x210)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x5f31f5=buildConfigFromFlags({}),_0x55ecdb=getCookie();console['log'](),console[_0x4d2f03(0x1f8)](a88_0x29245a[_0x4d2f03(0x211)](CLI_BIN_NAME+_0x4d2f03(0x217))),console[_0x4d2f03(0x1f8)](a88_0x29245a[_0x4d2f03(0x1ff)]('─'['repeat'](0x32))),console[_0x4d2f03(0x1f8)](_0x4d2f03(0x22e)+_0x177d1f),console[_0x4d2f03(0x1f8)](_0x4d2f03(0x21f)+process[_0x4d2f03(0x239)]),console['log'](_0x4d2f03(0x1fe)+process[_0x4d2f03(0x20d)]+'\x20'+process[_0x4d2f03(0x1f0)]),console['log'](),console[_0x4d2f03(0x1f8)](a88_0x29245a[_0x4d2f03(0x211)](_0x4d2f03(0x21c))),console[_0x4d2f03(0x1f8)](a88_0x29245a[_0x4d2f03(0x1ff)](_0x4d2f03(0x221)[_0x4d2f03(0x215)](0x1e)));const _0x34b84a=getGlobalConfigPath(),_0x1d1fd5=getProjectConfigPath();console[_0x4d2f03(0x1f8)](_0x4d2f03(0x22b)+(_0x34b84a||a88_0x29245a[_0x4d2f03(0x1ff)](_0x4d2f03(0x227)))),console['log']('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1d1fd5||a88_0x29245a[_0x4d2f03(0x1ff)]('(not\x20found)'))),console['log'](),console[_0x4d2f03(0x1f8)](a88_0x29245a[_0x4d2f03(0x211)]('\x20\x20Config\x20JSON')),console[_0x4d2f03(0x1f8)](a88_0x29245a[_0x4d2f03(0x1ff)](_0x4d2f03(0x221)['repeat'](0x1e)));const _0x21778a=(_0x3b5ba6,_0x2987a5)=>{const _0x3b2500=_0x4d2f03;if(!_0x2987a5){console[_0x3b2500(0x1f8)]('\x20\x20'+_0x3b5ba6[_0x3b2500(0x232)](0x11)+'\x20'+a88_0x29245a[_0x3b2500(0x1ff)](_0x3b2500(0x1ea)));return;}const _0xfe437=inspectCliConfigJsonFile(_0x2987a5);if(_0xfe437['status']==='ok')console[_0x3b2500(0x1f8)]('\x20\x20'+_0x3b5ba6[_0x3b2500(0x232)](0x11)+'\x20'+a88_0x29245a['green'](_0x3b2500(0x21d)));else{if(_0xfe437[_0x3b2500(0x20f)]==='empty')console[_0x3b2500(0x1f8)]('\x20\x20'+_0x3b5ba6[_0x3b2500(0x232)](0x11)+'\x20'+a88_0x29245a[_0x3b2500(0x1ef)](_0x3b2500(0x1eb)));else _0xfe437['status']===_0x3b2500(0x20c)?console['log']('\x20\x20'+_0x3b5ba6[_0x3b2500(0x232)](0x11)+'\x20'+a88_0x29245a[_0x3b2500(0x1ff)](_0x3b2500(0x22f))):(console[_0x3b2500(0x1f8)]('\x20\x20'+_0x3b5ba6['padEnd'](0x11)+'\x20'+a88_0x29245a['red']('✗\x20Invalid\x20JSON')),console[_0x3b2500(0x1f8)]('\x20\x20'+''[_0x3b2500(0x232)](0x11)+'\x20'+a88_0x29245a[_0x3b2500(0x22d)](_0xfe437['message'])));}};_0x21778a('Global',_0x34b84a),_0x21778a(_0x4d2f03(0x214),_0x1d1fd5),console[_0x4d2f03(0x1f8)](),console[_0x4d2f03(0x1f8)](a88_0x29245a[_0x4d2f03(0x211)](_0x4d2f03(0x229))),console[_0x4d2f03(0x1f8)](a88_0x29245a['gray']('\x20\x20─'[_0x4d2f03(0x215)](0x1e))),console[_0x4d2f03(0x1f8)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5f31f5['appCode']||a88_0x29245a[_0x4d2f03(0x22d)](_0x4d2f03(0x1ee)))),console['log'](_0x4d2f03(0x1fd)+_0x5f31f5['env']),console[_0x4d2f03(0x1f8)](_0x4d2f03(0x204)+_0x5f31f5[_0x4d2f03(0x236)]),console[_0x4d2f03(0x1f8)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5f31f5[_0x4d2f03(0x1ed)]),console['log'](_0x4d2f03(0x219)+(_0x5f31f5['defaultApp']||a88_0x29245a['gray'](_0x4d2f03(0x208)))),console['log'](_0x4d2f03(0x22a)+(_0x5f31f5[_0x4d2f03(0x1f6)]||a88_0x29245a[_0x4d2f03(0x1ff)](_0x4d2f03(0x208)))),console[_0x4d2f03(0x1f8)](_0x4d2f03(0x237)+(_0x5f31f5[_0x4d2f03(0x231)]||a88_0x29245a[_0x4d2f03(0x1ff)](_0x4d2f03(0x208)))),console[_0x4d2f03(0x1f8)](_0x4d2f03(0x220)+(_0x5f31f5[_0x4d2f03(0x20a)]||a88_0x29245a['gray'](_0x4d2f03(0x212)+DEFAULT_CONFIG_VALUES[_0x4d2f03(0x20a)]+')'))),console[_0x4d2f03(0x1f8)](_0x4d2f03(0x1fa)+(_0x5f31f5[_0x4d2f03(0x205)]??a88_0x29245a[_0x4d2f03(0x1ff)]('(default)'))),console[_0x4d2f03(0x1f8)](_0x4d2f03(0x200)+_0x5f31f5['riskLevel']),console[_0x4d2f03(0x1f8)](_0x4d2f03(0x213)+_0x5f31f5[_0x4d2f03(0x1f4)]),console[_0x4d2f03(0x1f8)](_0x4d2f03(0x207)+(_0x5f31f5['cookie']?a88_0x29245a['green'](_0x4d2f03(0x1f2)+_0x5f31f5[_0x4d2f03(0x21e)]['length']+')'):_0x55ecdb?a88_0x29245a[_0x4d2f03(0x23b)](_0x4d2f03(0x206)+_0x55ecdb['length']+')'):a88_0x29245a[_0x4d2f03(0x1ff)](_0x4d2f03(0x208))));const _0x5e382d=Object[_0x4d2f03(0x233)](_0x5f31f5[_0x4d2f03(0x1fb)]);if(_0x5e382d['length']>0x0){console[_0x4d2f03(0x1f8)](),console['log'](a88_0x29245a[_0x4d2f03(0x211)](_0x4d2f03(0x234))),console[_0x4d2f03(0x1f8)](a88_0x29245a[_0x4d2f03(0x1ff)](_0x4d2f03(0x221)[_0x4d2f03(0x215)](0x1e)));for(const _0x260b95 of _0x5e382d){const _0x36e3df=_0x5f31f5[_0x4d2f03(0x1fb)][_0x260b95],_0x1160a9=_0x260b95===_0x5f31f5[_0x4d2f03(0x1f1)],_0x569329=_0x260b95===_0x5f31f5[_0x4d2f03(0x1f6)],_0x1b12e3=_0x569329?a88_0x29245a[_0x4d2f03(0x23b)]('\x20←\x20current'):'',_0x157b55=_0x1160a9?'\x20(default)':'';console[_0x4d2f03(0x1f8)]('\x20\x20'+_0x260b95+_0x157b55+_0x1b12e3),console[_0x4d2f03(0x1f8)](_0x4d2f03(0x225)+_0x36e3df[_0x4d2f03(0x218)]);const _0x269842=buildAppDoctorFields(_0x36e3df,{'env':_0x5f31f5[_0x4d2f03(0x1f7)],'apiDir':_0x5f31f5[_0x4d2f03(0x1fc)]['apiDir']||DEFAULT_CONFIG_VALUES[_0x4d2f03(0x1ed)],'cookie':_0x5f31f5['cookie']||_0x55ecdb||undefined,'accessKey':_0x5f31f5[_0x4d2f03(0x23c)]});console[_0x4d2f03(0x1f8)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x269842[_0x4d2f03(0x1f7)][_0x4d2f03(0x20b)]+'\x20\x20'+a88_0x29245a[_0x4d2f03(0x1ff)]('('+_0x269842['env'][_0x4d2f03(0x23d)]+')')),console[_0x4d2f03(0x1f8)](_0x4d2f03(0x1ec)+_0x269842[_0x4d2f03(0x1ed)][_0x4d2f03(0x20b)]+'\x20\x20'+a88_0x29245a[_0x4d2f03(0x1ff)]('('+_0x269842['apiDir']['source']+')'));const _0x2fe7ce=_0x269842[_0x4d2f03(0x21e)]['value']?a88_0x29245a[_0x4d2f03(0x23b)](_0x4d2f03(0x1f2)+_0x269842[_0x4d2f03(0x21e)][_0x4d2f03(0x20b)][_0x4d2f03(0x201)]+')'):a88_0x29245a[_0x4d2f03(0x1ff)](_0x4d2f03(0x208));console[_0x4d2f03(0x1f8)](_0x4d2f03(0x21b)+_0x2fe7ce+'\x20\x20'+a88_0x29245a[_0x4d2f03(0x1ff)]('('+_0x269842[_0x4d2f03(0x21e)][_0x4d2f03(0x23d)]+')'));const _0x4830d4=_0x269842['accessKey'][_0x4d2f03(0x20b)]?a88_0x29245a[_0x4d2f03(0x23b)](_0x4d2f03(0x1f2)+_0x269842[_0x4d2f03(0x23c)][_0x4d2f03(0x20b)]['length']+')'):a88_0x29245a[_0x4d2f03(0x1ff)](_0x4d2f03(0x208));console[_0x4d2f03(0x1f8)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x4830d4+'\x20\x20'+a88_0x29245a[_0x4d2f03(0x1ff)]('('+_0x269842[_0x4d2f03(0x23c)]['source']+')'));}}console[_0x4d2f03(0x1f8)](),console[_0x4d2f03(0x1f8)](a88_0x29245a[_0x4d2f03(0x211)]('\x20\x20API\x20Endpoints')),console[_0x4d2f03(0x1f8)](a88_0x29245a['gray'](_0x4d2f03(0x221)['repeat'](0x1e))),console[_0x4d2f03(0x1f8)](_0x4d2f03(0x226)+getApiDomain()),console['log'](_0x4d2f03(0x22c)+getUserDomain()),console[_0x4d2f03(0x1f8)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console['log'](),console[_0x4d2f03(0x1f8)](a88_0x29245a[_0x4d2f03(0x211)]('\x20\x20Auth')),console['log'](a88_0x29245a[_0x4d2f03(0x1ff)](_0x4d2f03(0x221)[_0x4d2f03(0x215)](0x1e)));if(_0x55ecdb){const _0x365ac0=await getIsSessionValid();console['log'](_0x4d2f03(0x203)+(_0x365ac0?a88_0x29245a['green'](_0x4d2f03(0x223)):a88_0x29245a[_0x4d2f03(0x22d)](_0x4d2f03(0x202))));}else console[_0x4d2f03(0x1f8)](_0x4d2f03(0x203)+a88_0x29245a[_0x4d2f03(0x22d)](_0x4d2f03(0x1f9)));return console['log'](),{'ok':!![]};}function a88_0x3201(){const _0x3e000c=['(none)','read','format','value','missing','platform','doctor','status','unknown','bold','(default:\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','Project','repeat','1045994qebaRC','\x20doctor','appcode','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','✓\x20Valid\x20JSON','cookie','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','2768444hbnOzd','✓\x20Valid','5537382oRvMAh','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','7heqixd','\x20\x20Merged\x20Config','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','red','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','(missing)','check','explicitAppName','padEnd','keys','\x20\x20Apps','23055KNLTSe','locale','\x20\x20explicitAppName:\x20','1719219sfIwuY','version','3087184EgyEPs','green','accessKey','source','(no\x20file)','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','apiDir','(not\x20set)','yellow','arch','defaultApp','(set,\x20length=','1AkIyJs','verbose','15390270uProYP','currentApp','env','log','✗\x20Not\x20logged\x20in','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','apps','raw','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','gray','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','length','✗\x20Expired','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','pageSize','(set\x20via\x20file,\x20length=','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a88_0x3201=function(){return _0x3e000c;};return a88_0x3201();}export const doctorDefinition={'service':a88_0x68dec8(0x20e),'command':a88_0x68dec8(0x230),'description':a88_0x68dec8(0x21a),'risk':a88_0x68dec8(0x209),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a87_0xfcba9a=a87_0x5d3b;(function(_0x18e795,_0x466526){const _0x395f36=a87_0x5d3b,_0x5377f3=_0x18e795();while(!![]){try{const _0x461228=-parseInt(_0x395f36(0x217))/0x1+parseInt(_0x395f36(0x1f0))/0x2+parseInt(_0x395f36(0x22d))/0x3+parseInt(_0x395f36(0x202))/0x4+parseInt(_0x395f36(0x200))/0x5+-parseInt(_0x395f36(0x22f))/0x6+-parseInt(_0x395f36(0x20e))/0x7*(parseInt(_0x395f36(0x208))/0x8);if(_0x461228===_0x466526)break;else _0x5377f3['push'](_0x5377f3['shift']());}catch(_0x496e45){_0x5377f3['push'](_0x5377f3['shift']());}}}(a87_0x4ba9,0x4c973));import a87_0xf1ebb6 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_0x5d3b(_0x37a2bc,_0x1c45d4){_0x37a2bc=_0x37a2bc-0x1ed;const _0x4ba9ab=a87_0x4ba9();let _0x5d3b67=_0x4ba9ab[_0x37a2bc];return _0x5d3b67;}import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';function a87_0x4ba9(){const _0x58cf5f=['(default)','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','appcode','cookie','apps','slice','padEnd','\x20\x20Auth','\x20\x20Apps','(no\x20file)','platform','✓\x20Valid','raw','riskLevel','red','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','accessKey','\x20\x20─','\x20\x20API\x20Endpoints','1162148EvAQmV','read','\x20←\x20current','Project','\x20(default)','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','source','check','(missing)','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','✗\x20Not\x20logged\x20in','yellow','format','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','2859130aOsEDc','(not\x20set)','529788MUhkYo','✓\x20Valid\x20JSON','(set,\x20length=','Global','version','\x20doctor','8ywMfDK','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','explicitAppName','empty','(none)','1593109QsMMDb','gray','locale','missing','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','doctor','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','message','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','370472hMkSXw','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','bold','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','currentApp','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','env','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','length','green','pageSize','repeat','\x20\x20explicitAppName:\x20','verbose','appCode','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','defaultApp','\x20\x20Config\x20Files','✗\x20Expired','apiDir','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','255369DhcWsb','value','2752176tjJjTo','(set\x20via\x20file,\x20length=','keys','log','status'];a87_0x4ba9=function(){return _0x58cf5f;};return a87_0x4ba9();}import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x2ecd67){const _0x27f230=a87_0x5d3b,_0x15c5c8=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x27f230(0x239)](0x0,0xa)+')':VERSION,_0x5f3bfa=buildConfigFromFlags({}),_0x26ef9a=getCookie();console[_0x27f230(0x232)](),console['log'](a87_0xf1ebb6[_0x27f230(0x21a)](CLI_BIN_NAME+_0x27f230(0x207))),console[_0x27f230(0x232)](a87_0xf1ebb6['gray']('─'[_0x27f230(0x223)](0x32))),console[_0x27f230(0x232)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x15c5c8),console[_0x27f230(0x232)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x27f230(0x206)]),console[_0x27f230(0x232)](_0x27f230(0x20a)+process[_0x27f230(0x23e)]+'\x20'+process['arch']),console[_0x27f230(0x232)](),console[_0x27f230(0x232)](a87_0xf1ebb6['bold'](_0x27f230(0x229))),console[_0x27f230(0x232)](a87_0xf1ebb6[_0x27f230(0x20f)]('\x20\x20─'[_0x27f230(0x223)](0x1e)));const _0x310908=getGlobalConfigPath(),_0x5519a3=getProjectConfigPath();console[_0x27f230(0x232)](_0x27f230(0x218)+(_0x310908||a87_0xf1ebb6['gray']('(not\x20found)'))),console[_0x27f230(0x232)](_0x27f230(0x214)+(_0x5519a3||a87_0xf1ebb6[_0x27f230(0x20f)]('(not\x20found)'))),console[_0x27f230(0x232)](),console[_0x27f230(0x232)](a87_0xf1ebb6[_0x27f230(0x21a)]('\x20\x20Config\x20JSON')),console['log'](a87_0xf1ebb6[_0x27f230(0x20f)](_0x27f230(0x1ee)['repeat'](0x1e)));const _0x1204f4=(_0x45e77c,_0x193d7b)=>{const _0xa93792=_0x27f230;if(!_0x193d7b){console[_0xa93792(0x232)]('\x20\x20'+_0x45e77c[_0xa93792(0x23a)](0x11)+'\x20'+a87_0xf1ebb6[_0xa93792(0x20f)](_0xa93792(0x23d)));return;}const _0x569431=inspectCliConfigJsonFile(_0x193d7b);if(_0x569431['status']==='ok')console['log']('\x20\x20'+_0x45e77c[_0xa93792(0x23a)](0x11)+'\x20'+a87_0xf1ebb6[_0xa93792(0x221)](_0xa93792(0x203)));else{if(_0x569431[_0xa93792(0x233)]===_0xa93792(0x20c))console[_0xa93792(0x232)]('\x20\x20'+_0x45e77c[_0xa93792(0x23a)](0x11)+'\x20'+a87_0xf1ebb6[_0xa93792(0x1fd)](_0xa93792(0x209)));else _0x569431['status']===_0xa93792(0x211)?console['log']('\x20\x20'+_0x45e77c['padEnd'](0x11)+'\x20'+a87_0xf1ebb6['gray'](_0xa93792(0x1f8))):(console['log']('\x20\x20'+_0x45e77c['padEnd'](0x11)+'\x20'+a87_0xf1ebb6[_0xa93792(0x242)]('✗\x20Invalid\x20JSON')),console[_0xa93792(0x232)]('\x20\x20'+''[_0xa93792(0x23a)](0x11)+'\x20'+a87_0xf1ebb6[_0xa93792(0x242)](_0x569431[_0xa93792(0x215)])));}};_0x1204f4(_0x27f230(0x205),_0x310908),_0x1204f4(_0x27f230(0x1f3),_0x5519a3),console[_0x27f230(0x232)](),console[_0x27f230(0x232)](a87_0xf1ebb6[_0x27f230(0x21a)]('\x20\x20Merged\x20Config')),console[_0x27f230(0x232)](a87_0xf1ebb6['gray'](_0x27f230(0x1ee)[_0x27f230(0x223)](0x1e))),console[_0x27f230(0x232)](_0x27f230(0x212)+(_0x5f3bfa[_0x27f230(0x226)]||a87_0xf1ebb6['red'](_0x27f230(0x201)))),console[_0x27f230(0x232)](_0x27f230(0x1ff)+_0x5f3bfa[_0x27f230(0x21e)]),console[_0x27f230(0x232)](_0x27f230(0x21d)+_0x5f3bfa[_0x27f230(0x210)]),console['log'](_0x27f230(0x216)+_0x5f3bfa[_0x27f230(0x22b)]),console[_0x27f230(0x232)](_0x27f230(0x235)+(_0x5f3bfa[_0x27f230(0x228)]||a87_0xf1ebb6[_0x27f230(0x20f)](_0x27f230(0x20d)))),console['log'](_0x27f230(0x1f5)+(_0x5f3bfa[_0x27f230(0x21c)]||a87_0xf1ebb6[_0x27f230(0x20f)]('(none)'))),console[_0x27f230(0x232)](_0x27f230(0x224)+(_0x5f3bfa[_0x27f230(0x20b)]||a87_0xf1ebb6[_0x27f230(0x20f)](_0x27f230(0x20d)))),console['log'](_0x27f230(0x227)+(_0x5f3bfa['format']||a87_0xf1ebb6[_0x27f230(0x20f)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x27f230(0x1fe)]+')'))),console[_0x27f230(0x232)](_0x27f230(0x219)+(_0x5f3bfa[_0x27f230(0x222)]??a87_0xf1ebb6[_0x27f230(0x20f)](_0x27f230(0x234)))),console[_0x27f230(0x232)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x5f3bfa[_0x27f230(0x241)]),console[_0x27f230(0x232)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5f3bfa[_0x27f230(0x225)]),console[_0x27f230(0x232)](_0x27f230(0x22c)+(_0x5f3bfa['cookie']?a87_0xf1ebb6['green'](_0x27f230(0x204)+_0x5f3bfa[_0x27f230(0x237)][_0x27f230(0x220)]+')'):_0x26ef9a?a87_0xf1ebb6[_0x27f230(0x221)](_0x27f230(0x230)+_0x26ef9a['length']+')'):a87_0xf1ebb6[_0x27f230(0x20f)](_0x27f230(0x20d))));const _0x1bf61f=Object[_0x27f230(0x231)](_0x5f3bfa['apps']);if(_0x1bf61f['length']>0x0){console['log'](),console[_0x27f230(0x232)](a87_0xf1ebb6[_0x27f230(0x21a)](_0x27f230(0x23c))),console[_0x27f230(0x232)](a87_0xf1ebb6[_0x27f230(0x20f)]('\x20\x20─'[_0x27f230(0x223)](0x1e)));for(const _0x1c892a of _0x1bf61f){const _0x4351db=_0x5f3bfa[_0x27f230(0x238)][_0x1c892a],_0xa97e56=_0x1c892a===_0x5f3bfa[_0x27f230(0x228)],_0xa75409=_0x1c892a===_0x5f3bfa['currentApp'],_0x55c5b9=_0xa75409?a87_0xf1ebb6[_0x27f230(0x221)](_0x27f230(0x1f2)):'',_0x2b7056=_0xa97e56?_0x27f230(0x1f4):'';console[_0x27f230(0x232)]('\x20\x20'+_0x1c892a+_0x2b7056+_0x55c5b9),console[_0x27f230(0x232)](_0x27f230(0x243)+_0x4351db[_0x27f230(0x236)]);const _0x5109ee=buildAppDoctorFields(_0x4351db,{'env':_0x5f3bfa[_0x27f230(0x21e)],'apiDir':_0x5f3bfa[_0x27f230(0x240)][_0x27f230(0x22b)]||DEFAULT_CONFIG_VALUES[_0x27f230(0x22b)],'cookie':_0x5f3bfa[_0x27f230(0x237)]||_0x26ef9a||undefined,'accessKey':_0x5f3bfa['accessKey']});console['log'](_0x27f230(0x1f9)+_0x5109ee['env'][_0x27f230(0x22e)]+'\x20\x20'+a87_0xf1ebb6[_0x27f230(0x20f)]('('+_0x5109ee[_0x27f230(0x21e)][_0x27f230(0x1f6)]+')')),console[_0x27f230(0x232)](_0x27f230(0x21b)+_0x5109ee[_0x27f230(0x22b)][_0x27f230(0x22e)]+'\x20\x20'+a87_0xf1ebb6[_0x27f230(0x20f)]('('+_0x5109ee['apiDir'][_0x27f230(0x1f6)]+')'));const _0x40190c=_0x5109ee['cookie'][_0x27f230(0x22e)]?a87_0xf1ebb6['green'](_0x27f230(0x204)+_0x5109ee[_0x27f230(0x237)][_0x27f230(0x22e)][_0x27f230(0x220)]+')'):a87_0xf1ebb6[_0x27f230(0x20f)]('(none)');console[_0x27f230(0x232)](_0x27f230(0x21f)+_0x40190c+'\x20\x20'+a87_0xf1ebb6[_0x27f230(0x20f)]('('+_0x5109ee[_0x27f230(0x237)][_0x27f230(0x1f6)]+')'));const _0x1ebc7d=_0x5109ee[_0x27f230(0x1ed)][_0x27f230(0x22e)]?a87_0xf1ebb6[_0x27f230(0x221)]('(set,\x20length='+_0x5109ee[_0x27f230(0x1ed)][_0x27f230(0x22e)][_0x27f230(0x220)]+')'):a87_0xf1ebb6[_0x27f230(0x20f)](_0x27f230(0x20d));console[_0x27f230(0x232)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x1ebc7d+'\x20\x20'+a87_0xf1ebb6[_0x27f230(0x20f)]('('+_0x5109ee[_0x27f230(0x1ed)][_0x27f230(0x1f6)]+')'));}}console[_0x27f230(0x232)](),console[_0x27f230(0x232)](a87_0xf1ebb6[_0x27f230(0x21a)](_0x27f230(0x1ef))),console[_0x27f230(0x232)](a87_0xf1ebb6[_0x27f230(0x20f)](_0x27f230(0x1ee)[_0x27f230(0x223)](0x1e))),console[_0x27f230(0x232)](_0x27f230(0x1fa)+getApiDomain()),console[_0x27f230(0x232)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console['log'](_0x27f230(0x1fb)+getRuntimeDomain()),console[_0x27f230(0x232)](),console[_0x27f230(0x232)](a87_0xf1ebb6[_0x27f230(0x21a)](_0x27f230(0x23b))),console[_0x27f230(0x232)](a87_0xf1ebb6[_0x27f230(0x20f)](_0x27f230(0x1ee)[_0x27f230(0x223)](0x1e)));if(_0x26ef9a){const _0x3e2fd2=await getIsSessionValid();console[_0x27f230(0x232)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3e2fd2?a87_0xf1ebb6['green'](_0x27f230(0x23f)):a87_0xf1ebb6[_0x27f230(0x242)](_0x27f230(0x22a))));}else console[_0x27f230(0x232)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a87_0xf1ebb6['red'](_0x27f230(0x1fc)));return console[_0x27f230(0x232)](),{'ok':!![]};}export const doctorDefinition={'service':a87_0xfcba9a(0x213),'command':a87_0xfcba9a(0x1f7),'description':a87_0xfcba9a(0x244),'risk':a87_0xfcba9a(0x1f1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a89_0x22a486=a89_0x4f97;(function(_0x501327,_0x5d70af){const _0x3af697=a89_0x4f97,_0x3812dc=_0x501327();while(!![]){try{const _0x172745=parseInt(_0x3af697(0x15c))/0x1+-parseInt(_0x3af697(0x17f))/0x2+parseInt(_0x3af697(0x158))/0x3*(-parseInt(_0x3af697(0x173))/0x4)+-parseInt(_0x3af697(0x166))/0x5+parseInt(_0x3af697(0x17b))/0x6+-parseInt(_0x3af697(0x171))/0x7+-parseInt(_0x3af697(0x16b))/0x8*(-parseInt(_0x3af697(0x16f))/0x9);if(_0x172745===_0x5d70af)break;else _0x3812dc['push'](_0x3812dc['shift']());}catch(_0xa05538){_0x3812dc['push'](_0x3812dc['shift']());}}}(a89_0x2ea9,0x95268));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';function a89_0x2ea9(){const _0x44c3e5=['write','valid','\x20\x20Config:\x20','16579032LqDqfS','App\x20code\x20to\x20initialize\x20with','flagMissing','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','9cgcAcj','global','1878961zppBRz','yes','28UNDpmE','appcode','\x20\x20Apps:\x20','run','production','appCode','boolean','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','3419472bfjFfE','\x0a✓\x20Successfully\x20initialized\x20','Usage:\x20','log','1015408jjjKJp','\x20config','nonInteractive','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','validation','custom','Write\x20to\x20global\x20config\x20instead\x20of\x20project','string','\x20\x20Env:\x20','211089NwMJsg','\x20\x20Default:\x20','cwd','env','240590gFYfnC','some','map','join','Auto-confirm\x20prompts','bool','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','toLocaleString','str','project','5016465kXIMNY','init'];a89_0x2ea9=function(){return _0x44c3e5;};return a89_0x2ea9();}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 syntheticApp(_0x38354e){return{'appCode':_0x38354e,'appName':_0x38354e};}function a89_0x4f97(_0x3275cd,_0x379c07){_0x3275cd=_0x3275cd-0x157;const _0x2ea9b9=a89_0x2ea9();let _0x4f973e=_0x2ea9b9[_0x3275cd];return _0x4f973e;}function writeInitConfig(_0x182b7c,_0x4852ef,_0x521f99){const _0x3d996f=a89_0x4f97,_0x47ead1=resolveWriteConfigPath(_0x182b7c),_0x51aa87=buildCanonicalProjectConfig({},{'appCodes':_0x4852ef[_0x3d996f(0x15e)](_0x22c241=>_0x22c241[_0x3d996f(0x178)]),'env':_0x521f99,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x3d996f(0x163)]()}});writeConfigFile(_0x47ead1,_0x51aa87);const _0x498812=_0x182b7c===_0x3d996f(0x170)?_0x3d996f(0x170):_0x3d996f(0x165);console[_0x3d996f(0x17e)](_0x3d996f(0x17c)+_0x498812+_0x3d996f(0x180)),console[_0x3d996f(0x17e)](_0x3d996f(0x175)+_0x4852ef[_0x3d996f(0x15e)](_0x4af32a=>_0x4af32a[_0x3d996f(0x178)])[_0x3d996f(0x15f)](',\x20')),console[_0x3d996f(0x17e)](_0x3d996f(0x159)+_0x51aa87['defaultApp']),console[_0x3d996f(0x17e)](_0x3d996f(0x157)+_0x51aa87[_0x3d996f(0x15b)]),console[_0x3d996f(0x17e)](_0x3d996f(0x16a)+_0x47ead1);}async function runSmartInit(_0x5d3fbf){const _0x12c62e=a89_0x4f97,_0x4293e5=process[_0x12c62e(0x15a)](),_0x4080e7=_0x5d3fbf['bool'](_0x12c62e(0x170))?_0x12c62e(0x170):_0x12c62e(0x165),_0x201e50=_0x5d3fbf[_0x12c62e(0x164)]('env')||_0x12c62e(0x177),_0x5f10c3=_0x5d3fbf['str'](_0x12c62e(0x174))||undefined,_0x4009a6=_0x5d3fbf[_0x12c62e(0x161)]('project');if(_0x4009a6){const {initConfig:_0x1d3453}=await import('../../commands/project/init.js');return _0x1d3453({'appcode':_0x5f10c3,'env':_0x201e50,'autoYes':_0x5d3fbf[_0x12c62e(0x161)]('yes')});}if(_0x4080e7===_0x12c62e(0x165)){const _0x4c2e87=existsSync(resolve(_0x4293e5,NEW_CONFIG_NAME)),_0x4f8c02=LEGACY_CONFIG_NAMES[_0x12c62e(0x15d)](_0x49fc07=>existsSync(resolve(_0x4293e5,_0x49fc07)));if(_0x4f8c02&&!_0x4c2e87)return console[_0x12c62e(0x17e)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x5d3fbf[_0x12c62e(0x181)],{'yes':_0x5d3fbf[_0x12c62e(0x161)]('yes')});if(_0x4c2e87)throw CliErrors[_0x12c62e(0x183)](_0x12c62e(0x182),'Use\x20`'+CLI_BIN_NAME+_0x12c62e(0x162));}if(_0x5f10c3){const _0x4bbcee=validateAppcode(_0x5f10c3);if(!_0x4bbcee[_0x12c62e(0x169)])throw CliErrors[_0x12c62e(0x183)](_0x4bbcee['message']);writeInitConfig(_0x4080e7,[syntheticApp(_0x5f10c3)],_0x201e50);return;}if(_0x5d3fbf[_0x12c62e(0x181)])throw CliErrors[_0x12c62e(0x16d)]('appcode',_0x12c62e(0x17d)+CLI_BIN_NAME+_0x12c62e(0x17a));const _0x152d7d=getCookie(),_0x23b682=await selectMultipleApps(_0x152d7d),_0x17fb6c=_0x23b682===_0x12c62e(0x184)?[syntheticApp(await promptCustomAppcode())]:_0x23b682;writeInitConfig(_0x4080e7,_0x17fb6c,_0x201e50);}const initFlags=[{'name':a89_0x22a486(0x170),'type':a89_0x22a486(0x179),'description':a89_0x22a486(0x185),'default':![]},{'name':a89_0x22a486(0x15b),'type':'string','description':'Target\x20environment','default':a89_0x22a486(0x177),'enum':[...RABETBASE_ENV_VALUES]},{'name':a89_0x22a486(0x174),'type':a89_0x22a486(0x186),'description':a89_0x22a486(0x16c)},{'name':a89_0x22a486(0x165),'type':a89_0x22a486(0x179),'description':a89_0x22a486(0x16e),'default':![]},{'name':a89_0x22a486(0x172),'type':'boolean','description':a89_0x22a486(0x160),'default':![]}];export const initDefinitions=[{'service':a89_0x22a486(0x167),'command':a89_0x22a486(0x176),'description':'Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','risk':a89_0x22a486(0x168),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x170b83){return await runSmartInit(_0x170b83),{'ok':!![]};}}];
1
+ const a88_0x1bd07f=a88_0xd696;(function(_0x28bccc,_0x55a80d){const _0x2aa0b0=a88_0xd696,_0x56492c=_0x28bccc();while(!![]){try{const _0xd19917=parseInt(_0x2aa0b0(0x19d))/0x1*(parseInt(_0x2aa0b0(0x186))/0x2)+-parseInt(_0x2aa0b0(0x173))/0x3*(-parseInt(_0x2aa0b0(0x18b))/0x4)+-parseInt(_0x2aa0b0(0x17e))/0x5+parseInt(_0x2aa0b0(0x19f))/0x6*(parseInt(_0x2aa0b0(0x187))/0x7)+parseInt(_0x2aa0b0(0x19a))/0x8*(parseInt(_0x2aa0b0(0x17a))/0x9)+parseInt(_0x2aa0b0(0x191))/0xa*(parseInt(_0x2aa0b0(0x196))/0xb)+-parseInt(_0x2aa0b0(0x199))/0xc;if(_0xd19917===_0x55a80d)break;else _0x56492c['push'](_0x56492c['shift']());}catch(_0x22cd9f){_0x56492c['push'](_0x56492c['shift']());}}}(a88_0x9114,0xd1d89));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';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';function a88_0x9114(){const _0x5b06ee=['Use\x20`','20766468OsnUtL','48tOcBpn','map','log','13bmkPqw','appCode','6tRmpen','nonInteractive','\x0a✓\x20Successfully\x20initialized\x20','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','appcode','\x20\x20Config:\x20','message','init','defaultApp','Target\x20environment','5045934vqvzMW','Auto-confirm\x20prompts','bool','\x20config','yes','valid','str','351396WLuDds','some','write','检测到旧配置文件,正在自动升级...\x0a','6334695lOopjo','boolean','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','validation','\x20\x20Apps:\x20','global','run','cwd','1448ZCcazG','3598651KEDxaE','env','project','toLocaleString','4EtAesf','../../commands/project/init.js','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','\x20\x20Default:\x20','flagMissing','production','4600NmrFuE','custom','join','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','string','33891sGfrdf','\x20\x20Env:\x20'];a88_0x9114=function(){return _0x5b06ee;};return a88_0x9114();}import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';function a88_0xd696(_0x14a6a3,_0x4f6de6){_0x14a6a3=_0x14a6a3-0x172;const _0x9114b=a88_0x9114();let _0xd696e=_0x9114b[_0x14a6a3];return _0xd696e;}import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x47f596){return{'appCode':_0x47f596,'appName':_0x47f596};}function writeInitConfig(_0x8ef1f5,_0x560dd7,_0x1f8b59){const _0x2120b5=a88_0xd696,_0x20d81f=resolveWriteConfigPath(_0x8ef1f5),_0x4cfd74=buildCanonicalProjectConfig({},{'appCodes':_0x560dd7['map'](_0xf542b5=>_0xf542b5['appCode']),'env':_0x1f8b59,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x2120b5(0x18a)]()}});writeConfigFile(_0x20d81f,_0x4cfd74);const _0x1a779a=_0x8ef1f5===_0x2120b5(0x183)?_0x2120b5(0x183):'project';console['log'](_0x2120b5(0x1a1)+_0x1a779a+_0x2120b5(0x176)),console['log'](_0x2120b5(0x182)+_0x560dd7[_0x2120b5(0x19b)](_0x42b359=>_0x42b359[_0x2120b5(0x19e)])[_0x2120b5(0x193)](',\x20')),console[_0x2120b5(0x19c)](_0x2120b5(0x18e)+_0x4cfd74[_0x2120b5(0x1a7)]),console[_0x2120b5(0x19c)](_0x2120b5(0x197)+_0x4cfd74[_0x2120b5(0x188)]),console[_0x2120b5(0x19c)](_0x2120b5(0x1a4)+_0x20d81f);}async function runSmartInit(_0x34a25d){const _0x21ed5a=a88_0xd696,_0x5afabd=process[_0x21ed5a(0x185)](),_0x27cff2=_0x34a25d[_0x21ed5a(0x175)]('global')?_0x21ed5a(0x183):'project',_0x1838d9=_0x34a25d['str']('env')||_0x21ed5a(0x190),_0x123dff=_0x34a25d[_0x21ed5a(0x179)]('appcode')||undefined,_0x1c3b19=_0x34a25d[_0x21ed5a(0x175)](_0x21ed5a(0x189));if(_0x1c3b19){const {initConfig:_0xaf023d}=await import(_0x21ed5a(0x18c));return _0xaf023d({'appcode':_0x123dff,'env':_0x1838d9,'autoYes':_0x34a25d[_0x21ed5a(0x175)](_0x21ed5a(0x177))});}if(_0x27cff2==='project'){const _0x36a537=existsSync(resolve(_0x5afabd,NEW_CONFIG_NAME)),_0x2b285c=LEGACY_CONFIG_NAMES[_0x21ed5a(0x17b)](_0x319f14=>existsSync(resolve(_0x5afabd,_0x319f14)));if(_0x2b285c&&!_0x36a537)return console['log'](_0x21ed5a(0x17d)),upgradeApp(_0x34a25d[_0x21ed5a(0x1a0)],{'yes':_0x34a25d[_0x21ed5a(0x175)](_0x21ed5a(0x177))});if(_0x36a537)throw CliErrors[_0x21ed5a(0x181)](_0x21ed5a(0x18d),_0x21ed5a(0x198)+CLI_BIN_NAME+_0x21ed5a(0x1a2));}if(_0x123dff){const _0xb86a5d=validateAppcode(_0x123dff);if(!_0xb86a5d[_0x21ed5a(0x178)])throw CliErrors[_0x21ed5a(0x181)](_0xb86a5d[_0x21ed5a(0x1a5)]);writeInitConfig(_0x27cff2,[syntheticApp(_0x123dff)],_0x1838d9);return;}if(_0x34a25d['nonInteractive'])throw CliErrors[_0x21ed5a(0x18f)]('appcode','Usage:\x20'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x421874=getCookie(),_0x336f4b=await selectMultipleApps(_0x421874),_0x566923=_0x336f4b===_0x21ed5a(0x192)?[syntheticApp(await promptCustomAppcode())]:_0x336f4b;writeInitConfig(_0x27cff2,_0x566923,_0x1838d9);}const initFlags=[{'name':a88_0x1bd07f(0x183),'type':a88_0x1bd07f(0x17f),'description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a88_0x1bd07f(0x188),'type':a88_0x1bd07f(0x195),'description':a88_0x1bd07f(0x172),'default':a88_0x1bd07f(0x190),'enum':[...RABETBASE_ENV_VALUES]},{'name':a88_0x1bd07f(0x1a3),'type':a88_0x1bd07f(0x195),'description':'App\x20code\x20to\x20initialize\x20with'},{'name':'project','type':a88_0x1bd07f(0x17f),'description':a88_0x1bd07f(0x194),'default':![]},{'name':a88_0x1bd07f(0x177),'type':a88_0x1bd07f(0x17f),'description':a88_0x1bd07f(0x174),'default':![]}];export const initDefinitions=[{'service':a88_0x1bd07f(0x1a6),'command':a88_0x1bd07f(0x184),'description':a88_0x1bd07f(0x180),'risk':a88_0x1bd07f(0x17c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x28f364){return await runSmartInit(_0x28f364),{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a90_0x4567(_0x4e04ae,_0x3612cc){_0x4e04ae=_0x4e04ae-0x85;const _0x2e76a3=a90_0x2e76();let _0x45675a=_0x2e76a3[_0x4e04ae];return _0x45675a;}(function(_0x279537,_0x1c74ea){const _0x22a531=a90_0x4567,_0x590529=_0x279537();while(!![]){try{const _0x42e41d=parseInt(_0x22a531(0x8a))/0x1*(parseInt(_0x22a531(0x8d))/0x2)+parseInt(_0x22a531(0x8e))/0x3+parseInt(_0x22a531(0x85))/0x4*(parseInt(_0x22a531(0x8c))/0x5)+parseInt(_0x22a531(0x88))/0x6+-parseInt(_0x22a531(0x86))/0x7+-parseInt(_0x22a531(0x89))/0x8*(parseInt(_0x22a531(0x8b))/0x9)+parseInt(_0x22a531(0x87))/0xa;if(_0x42e41d===_0x1c74ea)break;else _0x590529['push'](_0x590529['shift']());}catch(_0xf3fae7){_0x590529['push'](_0x590529['shift']());}}}(a90_0x2e76,0xb705c));import{issueReport}from'../../commands/issue/report.js';function a90_0x2e76(){const _0x24c515=['2536812KdmIRM','4978232FzwTbX','142mnTNup','9aOVAPL','2995VrTmgP','8216hbHqDJ','2703012LxJlMf','852xPwXJw','8919323dBKfxS','6113990wGBKBQ'];a90_0x2e76=function(){return _0x24c515;};return a90_0x2e76();}export const issueDefinitions=[issueReport];
1
+ (function(_0x403f0,_0x144d86){const _0x54b00b=a89_0x22ce,_0x377f2d=_0x403f0();while(!![]){try{const _0x213d43=parseInt(_0x54b00b(0x197))/0x1+parseInt(_0x54b00b(0x193))/0x2*(parseInt(_0x54b00b(0x198))/0x3)+parseInt(_0x54b00b(0x199))/0x4*(-parseInt(_0x54b00b(0x192))/0x5)+-parseInt(_0x54b00b(0x194))/0x6+-parseInt(_0x54b00b(0x191))/0x7*(-parseInt(_0x54b00b(0x190))/0x8)+-parseInt(_0x54b00b(0x196))/0x9*(parseInt(_0x54b00b(0x19a))/0xa)+-parseInt(_0x54b00b(0x195))/0xb;if(_0x213d43===_0x144d86)break;else _0x377f2d['push'](_0x377f2d['shift']());}catch(_0x350380){_0x377f2d['push'](_0x377f2d['shift']());}}}(a89_0x537e,0x3de70));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];function a89_0x22ce(_0x1f3b6d,_0x33faf7){_0x1f3b6d=_0x1f3b6d-0x190;const _0x537ef3=a89_0x537e();let _0x22cecc=_0x537ef3[_0x1f3b6d];return _0x22cecc;}function a89_0x537e(){const _0x2753a5=['194288OzKYDH','80olewBB','550856zMPnKH','42ggRNoW','45WDEpCV','122yBEctL','339264gbLgyN','5191472VkQgGX','81441qwzsSm','444126uxZgyA','21360vrsMKe'];a89_0x537e=function(){return _0x2753a5;};return a89_0x537e();}
@@ -1 +1 @@
1
- const a91_0x33814a=a91_0x5f43;(function(_0x19e2ab,_0x27f18b){const _0x52b837=a91_0x5f43,_0x2819e6=_0x19e2ab();while(!![]){try{const _0x3bcae6=parseInt(_0x52b837(0x1cc))/0x1*(-parseInt(_0x52b837(0x1d2))/0x2)+-parseInt(_0x52b837(0x1b5))/0x3*(-parseInt(_0x52b837(0x1d1))/0x4)+parseInt(_0x52b837(0x1b8))/0x5*(-parseInt(_0x52b837(0x1c4))/0x6)+parseInt(_0x52b837(0x1bc))/0x7+parseInt(_0x52b837(0x1bd))/0x8+-parseInt(_0x52b837(0x1ba))/0x9+-parseInt(_0x52b837(0x1b3))/0xa*(parseInt(_0x52b837(0x1b4))/0xb);if(_0x3bcae6===_0x27f18b)break;else _0x2819e6['push'](_0x2819e6['shift']());}catch(_0x3ea69e){_0x2819e6['push'](_0x2819e6['shift']());}}}(a91_0x64e3,0xf3793));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a91_0x33814a(0x1b6);const NUDGE_SUPPRESSED_CODES=new Set([a91_0x33814a(0x1c7),a91_0x33814a(0x1be),a91_0x33814a(0x1c0),'not_in_project','unknown_command',a91_0x33814a(0x1bf),a91_0x33814a(0x1cd),'network_error']),defaultWriter=_0x5b1259=>{const _0x4fbf37=a91_0x33814a;process[_0x4fbf37(0x1ca)]['write'](_0x5b1259);};export function shouldNudgeForError(_0x13a788,_0x486e39){const _0xa490e9=a91_0x33814a;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x486e39[_0xa490e9(0x1c8)]==='issue'&&_0x486e39[_0xa490e9(0x1cf)]===_0xa490e9(0x1c9))return![];if(_0x13a788 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0xa490e9(0x1c1)](_0x13a788['code']);return!![];}export function printIssueReportNudgeForError(_0x49d26c,_0x2b5d66,_0x29d290=defaultWriter){if(!shouldNudgeForError(_0x49d26c,_0x2b5d66))return;const _0x265ce6=buildSuggestedTitle(_0x49d26c,_0x2b5d66);_0x29d290(formatNudge(_0x265ce6));}function buildSuggestedTitle(_0x363642,_0x29ae0c){const _0x2f0f6d=a91_0x33814a,_0x5e2086=_0x363642 instanceof Error?_0x363642[_0x2f0f6d(0x1b7)]:String(_0x363642),_0x163720=_0x5e2086[_0x2f0f6d(0x1bb)](/[\r\n]+/g,'\x20')[_0x2f0f6d(0x1bb)](/\s+/g,'\x20')[_0x2f0f6d(0x1c3)]()['slice'](0x0,0x78)['replace'](/"/g,'\x5c\x22'),_0x121561=CLI_BIN_NAME+'\x20'+_0x29ae0c[_0x2f0f6d(0x1c8)]+'\x20'+_0x29ae0c[_0x2f0f6d(0x1cf)];return _0x163720[_0x2f0f6d(0x1b9)]>0x0?_0x121561+':\x20'+_0x163720:_0x121561;}function formatNudge(_0x465935){const _0x147795=a91_0x33814a;return['',_0x147795(0x1cb)+CLI_BIN_NAME+_0x147795(0x1ce),'\x20\x20'+CLI_BIN_NAME+_0x147795(0x1d0),_0x147795(0x1c5)+_0x465935+'\x22\x20\x5c',_0x147795(0x1c6),'\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','\x20\x20Set\x20'+NUDGE_OPT_OUT_ENV+'=1\x20to\x20silence\x20this\x20hint.',''][_0x147795(0x1c2)]('\x0a');}function a91_0x5f43(_0x32cb49,_0x114233){_0x32cb49=_0x32cb49-0x1b3;const _0x64e3cf=a91_0x64e3();let _0x5f4390=_0x64e3cf[_0x32cb49];return _0x5f4390;}function a91_0x64e3(){const _0x4fa8e8=['\x20bug?\x20Help\x20us\x20fix\x20it:','command','\x20issue\x20report\x20\x5c','4zYFLxS','4930BliyPn','102670DBkvAQ','275neZohB','4308393ciyvvf','RABETBASE_DISABLE_ISSUE_NUDGE','message','1830510FOeIJk','length','1786896XYdWEK','replace','5788629pEBkxv','11746800ormuXd','auth_required','flag_missing','config_missing','has','join','trim','6Ghnurg','\x20\x20\x20\x20--title\x20\x22','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','cancelled','service','report','stderr','Hit\x20a\x20','776iqXMgc','validation_error'];a91_0x64e3=function(){return _0x4fa8e8;};return a91_0x64e3();}
1
+ const a90_0x36d2a1=a90_0x2824;(function(_0x1264a6,_0x29aab2){const _0x49edc6=a90_0x2824,_0x370631=_0x1264a6();while(!![]){try{const _0x3317e3=parseInt(_0x49edc6(0xfa))/0x1*(-parseInt(_0x49edc6(0xee))/0x2)+parseInt(_0x49edc6(0xeb))/0x3*(parseInt(_0x49edc6(0xf1))/0x4)+parseInt(_0x49edc6(0xfc))/0x5+-parseInt(_0x49edc6(0xe6))/0x6*(-parseInt(_0x49edc6(0xf2))/0x7)+-parseInt(_0x49edc6(0xed))/0x8+-parseInt(_0x49edc6(0xe5))/0x9+-parseInt(_0x49edc6(0xf7))/0xa*(-parseInt(_0x49edc6(0xf9))/0xb);if(_0x3317e3===_0x29aab2)break;else _0x370631['push'](_0x370631['shift']());}catch(_0x1de7c1){_0x370631['push'](_0x370631['shift']());}}}(a90_0x37f8,0x67c36));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a90_0x36d2a1(0xf5);const NUDGE_SUPPRESSED_CODES=new Set([a90_0x36d2a1(0xef),a90_0x36d2a1(0xea),'config_missing','not_in_project',a90_0x36d2a1(0xe9),a90_0x36d2a1(0xf8),a90_0x36d2a1(0x108),a90_0x36d2a1(0x103)]),defaultWriter=_0x28fc06=>{const _0x32a43d=a90_0x36d2a1;process[_0x32a43d(0xf6)][_0x32a43d(0x102)](_0x28fc06);};export function shouldNudgeForError(_0x463974,_0x3c509d){const _0x5bb227=a90_0x36d2a1;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x3c509d[_0x5bb227(0x105)]===_0x5bb227(0xf4)&&_0x3c509d[_0x5bb227(0x106)]===_0x5bb227(0xe8))return![];if(_0x463974 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x5bb227(0x101)](_0x463974[_0x5bb227(0xec)]);return!![];}export function printIssueReportNudgeForError(_0x22758f,_0x21b76e,_0x521e54=defaultWriter){if(!shouldNudgeForError(_0x22758f,_0x21b76e))return;const _0x4e0e46=buildSuggestedTitle(_0x22758f,_0x21b76e);_0x521e54(formatNudge(_0x4e0e46));}function a90_0x2824(_0x5f29a2,_0x430d87){_0x5f29a2=_0x5f29a2-0xe3;const _0x37f829=a90_0x37f8();let _0x28246d=_0x37f829[_0x5f29a2];return _0x28246d;}function buildSuggestedTitle(_0x42662d,_0x31148d){const _0x48a2dc=a90_0x36d2a1,_0x267216=_0x42662d instanceof Error?_0x42662d['message']:String(_0x42662d),_0x446747=_0x267216['replace'](/[\r\n]+/g,'\x20')['replace'](/\s+/g,'\x20')['trim']()[_0x48a2dc(0xe7)](0x0,0x78)[_0x48a2dc(0xfb)](/"/g,'\x5c\x22'),_0xab60c6=CLI_BIN_NAME+'\x20'+_0x31148d['service']+'\x20'+_0x31148d['command'];return _0x446747[_0x48a2dc(0xff)]>0x0?_0xab60c6+':\x20'+_0x446747:_0xab60c6;}function formatNudge(_0x732b71){const _0x169923=a90_0x36d2a1;return['',_0x169923(0x107)+CLI_BIN_NAME+'\x20bug?\x20Help\x20us\x20fix\x20it:','\x20\x20'+CLI_BIN_NAME+_0x169923(0x104),_0x169923(0xf3)+_0x732b71+_0x169923(0xfd),_0x169923(0x100),_0x169923(0xfe),_0x169923(0xe4)+NUDGE_OPT_OUT_ENV+_0x169923(0xe3),''][_0x169923(0xf0)]('\x0a');}function a90_0x37f8(){const _0xf72fa0=['service','command','Hit\x20a\x20','validation_error','=1\x20to\x20silence\x20this\x20hint.','\x20\x20Set\x20','6428439YyTZkJ','30pFyJzL','slice','report','unknown_command','auth_required','364812cUkcZk','code','4690296QtiLEK','12HJHSRo','cancelled','join','12pLXSij','933401IWIYlF','\x20\x20\x20\x20--title\x20\x22','issue','RABETBASE_DISABLE_ISSUE_NUDGE','stderr','50jdxcyo','flag_missing','408199pMSNzS','27582GYuDPA','replace','3369960UpFZxi','\x22\x20\x5c','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','length','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','has','write','network_error','\x20issue\x20report\x20\x5c'];a90_0x37f8=function(){return _0xf72fa0;};return a90_0x37f8();}