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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/delete.js +1 -1
  28. package/lib/commands/bff/detail.js +1 -1
  29. package/lib/commands/bff/index.js +1 -1
  30. package/lib/commands/bff/list.js +1 -1
  31. package/lib/commands/bff/new.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/dataset/detail.js +1 -1
  48. package/lib/commands/dataset/index.js +1 -1
  49. package/lib/commands/dataset/links.js +1 -1
  50. package/lib/commands/dataset/list.js +1 -1
  51. package/lib/commands/dataset/operations.js +1 -1
  52. package/lib/commands/db/analyze-cancel.js +1 -1
  53. package/lib/commands/db/analyze-start.js +1 -1
  54. package/lib/commands/db/analyze-status.js +1 -1
  55. package/lib/commands/db/create.js +1 -1
  56. package/lib/commands/db/delete.js +1 -1
  57. package/lib/commands/db/detail.js +1 -1
  58. package/lib/commands/db/diff.js +1 -1
  59. package/lib/commands/db/index.js +1 -1
  60. package/lib/commands/db/list.js +1 -1
  61. package/lib/commands/db/shared.js +1 -1
  62. package/lib/commands/db/tables.js +1 -1
  63. package/lib/commands/db/test.js +1 -1
  64. package/lib/commands/db/update.js +1 -1
  65. package/lib/commands/doctor.js +1 -1
  66. package/lib/commands/init/index.js +1 -1
  67. package/lib/commands/logs/index.js +1 -1
  68. package/lib/commands/menu/index.js +1 -1
  69. package/lib/commands/menu/shared/compare-table.js +1 -1
  70. package/lib/commands/menu/shared/index.js +1 -1
  71. package/lib/commands/menu/shared/inquirer.js +1 -1
  72. package/lib/commands/menu/shared/local-pages.js +1 -1
  73. package/lib/commands/menu/shared/logic.js +1 -1
  74. package/lib/commands/menu/shared/service.js +1 -1
  75. package/lib/commands/menu/shared/sync-core.js +1 -1
  76. package/lib/commands/menu/shared/update-core.js +1 -1
  77. package/lib/commands/menu/shared/valid-url.js +1 -1
  78. package/lib/commands/menu/sync.js +1 -1
  79. package/lib/commands/menu/update.js +1 -1
  80. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  81. package/lib/commands/project/create/format-elapsed.js +1 -1
  82. package/lib/commands/project/create/main.js +1 -1
  83. package/lib/commands/project/create/non-interactive.js +1 -1
  84. package/lib/commands/project/create/project-template-path.js +1 -1
  85. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  86. package/lib/commands/project/create/use-format-code.js +1 -1
  87. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  88. package/lib/commands/project/index.js +1 -1
  89. package/lib/commands/project/init.js +1 -1
  90. package/lib/commands/project/upgrade.js +1 -1
  91. package/lib/commands/registry.js +1 -1
  92. package/lib/commands/run/index.js +1 -1
  93. package/lib/commands/schema.js +1 -1
  94. package/lib/commands/skill/index.js +1 -1
  95. package/lib/commands/sql/detail.js +1 -1
  96. package/lib/commands/sql/exec.js +1 -1
  97. package/lib/commands/sql/index.js +1 -1
  98. package/lib/commands/sql/list.js +1 -1
  99. package/lib/commands/sql/pull.js +1 -1
  100. package/lib/commands/sql/save.js +1 -1
  101. package/lib/commands/sql/shared.js +1 -1
  102. package/lib/commands/sql/validate.js +1 -1
  103. package/lib/config/schema.js +1 -1
  104. package/lib/constant/cli.js +1 -1
  105. package/lib/constant/defaults.js +1 -1
  106. package/lib/constant/domain.js +1 -1
  107. package/lib/constant/env.js +1 -1
  108. package/lib/constant/output.js +1 -1
  109. package/lib/constant/paths.js +1 -1
  110. package/lib/constant/risk.js +1 -1
  111. package/lib/context.js +1 -1
  112. package/lib/core/alias-resolver.js +1 -1
  113. package/lib/core/api-client.js +1 -1
  114. package/lib/core/bff/config.js +1 -1
  115. package/lib/core/bff/file-system.js +1 -1
  116. package/lib/core/bff/hash.js +1 -1
  117. package/lib/core/bff/lock.js +1 -1
  118. package/lib/core/bff/utils.js +1 -1
  119. package/lib/core/db-resolver.js +1 -1
  120. package/lib/core/sql-validator.js +1 -1
  121. package/lib/errors.js +1 -1
  122. package/lib/framework/build-all-flags.js +1 -1
  123. package/lib/framework/flags.js +1 -1
  124. package/lib/framework/help.js +1 -1
  125. package/lib/framework/index.js +1 -1
  126. package/lib/framework/output.js +1 -1
  127. package/lib/framework/response.js +1 -1
  128. package/lib/framework/runner-alias.js +1 -1
  129. package/lib/framework/runner.js +1 -1
  130. package/lib/framework/schema-export.js +1 -1
  131. package/lib/framework/types.js +1 -1
  132. package/lib/generated/build-info.js +1 -1
  133. package/lib/help.js +1 -1
  134. package/lib/skills/main.js +1 -1
  135. package/lib/skills/npx-skills-add.js +1 -1
  136. package/lib/telemetry/cli-command-trace.js +1 -1
  137. package/lib/telemetry/cli-help-trace.js +1 -1
  138. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  139. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  140. package/lib/telemetry/send-cli-trace-log.js +1 -1
  141. package/lib/utils/ai_config.js +1 -1
  142. package/lib/utils/apply-jq-filter.js +1 -1
  143. package/lib/utils/cdn-config.js +1 -1
  144. package/lib/utils/check-sdk-version.js +1 -1
  145. package/lib/utils/cli-version-check.js +1 -1
  146. package/lib/utils/config.js +1 -1
  147. package/lib/utils/copy-directory.js +1 -1
  148. package/lib/utils/entity-with-id.js +1 -1
  149. package/lib/utils/file-utils.js +1 -1
  150. package/lib/utils/guides-cdn.js +1 -1
  151. package/lib/utils/http-client.js +1 -1
  152. package/lib/utils/is-non-interactive.js +1 -1
  153. package/lib/utils/logger.js +1 -1
  154. package/lib/utils/platform.js +1 -1
  155. package/lib/utils/rules-cdn.js +1 -1
  156. package/lib/utils/sleep.js +1 -1
  157. package/lib/utils/template-replacer.js +1 -1
  158. package/lib/utils/version.js +1 -1
  159. package/lib/utils/with-active-cookie.js +1 -1
  160. package/lib/utils/write-cli-side-channel.js +1 -1
  161. package/package.json +1 -1
@@ -1 +1 @@
1
- function a139_0xfe87(_0x450176,_0x22b020){_0x450176=_0x450176-0x181;const _0x6b5e41=a139_0x6b5e();let _0xfe87f0=_0x6b5e41[_0x450176];return _0xfe87f0;}const a139_0x328d02=a139_0xfe87;(function(_0x4b7556,_0x2857ec){const _0x19659d=a139_0xfe87,_0x58e7d5=_0x4b7556();while(!![]){try{const _0xcda651=-parseInt(_0x19659d(0x190))/0x1+parseInt(_0x19659d(0x183))/0x2*(-parseInt(_0x19659d(0x182))/0x3)+-parseInt(_0x19659d(0x187))/0x4+parseInt(_0x19659d(0x193))/0x5*(-parseInt(_0x19659d(0x18b))/0x6)+parseInt(_0x19659d(0x184))/0x7+-parseInt(_0x19659d(0x18c))/0x8*(parseInt(_0x19659d(0x189))/0x9)+parseInt(_0x19659d(0x192))/0xa*(parseInt(_0x19659d(0x18d))/0xb);if(_0xcda651===_0x2857ec)break;else _0x58e7d5['push'](_0x58e7d5['shift']());}catch(_0x19ebc1){_0x58e7d5['push'](_0x58e7d5['shift']());}}}(a139_0x6b5e,0xa6035));function a139_0x6b5e(){const _0x10e017=['12Jjepyy','72uGgogS','43620313ztyXFr','analyze-start','str','1144929lGDLcm','Started\x20analysis\x20for\x20db\x20link\x20','10kAPFsh','2587815RWaiOU','write','2893608smCmDf','2tfVLrp','7595616qQtcYr','num','Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)','1069568jjteag','filter','958599nbxeZF','split'];a139_0x6b5e=function(){return _0x10e017;};return a139_0x6b5e();}import{startDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeStart={'service':'db','command':a139_0x328d02(0x18e),'description':'Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','risk':a139_0x328d02(0x181),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':'tables','type':'string','description':a139_0x328d02(0x186)}],async 'execute'(_0x214da2){const _0x264bb3=a139_0x328d02,_0x40f35b=_0x214da2[_0x264bb3(0x185)]('id'),_0xc49df5=_0x214da2[_0x264bb3(0x18f)]('tables'),_0x2d6cfa=_0xc49df5?_0xc49df5[_0x264bb3(0x18a)](',')['map'](_0x4c60c1=>_0x4c60c1['trim']())[_0x264bb3(0x188)](Boolean):undefined,_0x37100b=await startDbAnalysis(_0x40f35b,_0x2d6cfa);return{'ok':!![],'data':{'dbLinkId':_0x40f35b,'planId':_0x37100b,'tableNames':_0x2d6cfa??[]},'message':_0x264bb3(0x191)+_0x40f35b};}};
1
+ const a139_0x29003a=a139_0x6ba9;function a139_0x61d0(){const _0x20dd66=['trim','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','9JHymMr','12120vszAIH','write','496424WzWekO','1094090MJSXSY','filter','tables','string','21ECtEVS','16xKOFlP','4ELNJcC','split','Started\x20analysis\x20for\x20db\x20link\x20','687258ddzXfb','3410704pCPViC','34213hRdWyZ','Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)','895685aPRHVA'];a139_0x61d0=function(){return _0x20dd66;};return a139_0x61d0();}(function(_0xc86134,_0x6b78b6){const _0x12701c=a139_0x6ba9,_0xb4ff16=_0xc86134();while(!![]){try{const _0x17907d=parseInt(_0x12701c(0xc0))/0x1*(parseInt(_0x12701c(0xbb))/0x2)+-parseInt(_0x12701c(0xb2))/0x3*(parseInt(_0x12701c(0xba))/0x4)+parseInt(_0x12701c(0xae))/0x5+parseInt(_0x12701c(0xbe))/0x6+parseInt(_0x12701c(0xb9))/0x7*(parseInt(_0x12701c(0xb4))/0x8)+parseInt(_0x12701c(0xb1))/0x9*(-parseInt(_0x12701c(0xb5))/0xa)+-parseInt(_0x12701c(0xbf))/0xb;if(_0x17907d===_0x6b78b6)break;else _0xb4ff16['push'](_0xb4ff16['shift']());}catch(_0x1f805d){_0xb4ff16['push'](_0xb4ff16['shift']());}}}(a139_0x61d0,0x1b7f8));import{startDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a139_0x6ba9(_0x15a669,_0x37cca7){_0x15a669=_0x15a669-0xae;const _0x61d0e8=a139_0x61d0();let _0x6ba92f=_0x61d0e8[_0x15a669];return _0x6ba92f;}export const dbAnalyzeStart={'service':'db','command':'analyze-start','description':a139_0x29003a(0xb0),'risk':a139_0x29003a(0xb3),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a139_0x29003a(0xb7),'type':a139_0x29003a(0xb8),'description':a139_0x29003a(0xc1)}],async 'execute'(_0x534708){const _0x4666e2=a139_0x29003a,_0x304f02=_0x534708['num']('id'),_0x5a9ee2=_0x534708['str'](_0x4666e2(0xb7)),_0x368f04=_0x5a9ee2?_0x5a9ee2[_0x4666e2(0xbc)](',')['map'](_0x3d5895=>_0x3d5895[_0x4666e2(0xaf)]())[_0x4666e2(0xb6)](Boolean):undefined,_0x4a2dd5=await startDbAnalysis(_0x304f02,_0x368f04);return{'ok':!![],'data':{'dbLinkId':_0x304f02,'planId':_0x4a2dd5,'tableNames':_0x368f04??[]},'message':_0x4666e2(0xbd)+_0x304f02};}};
@@ -1 +1 @@
1
- function a146_0x1571(_0x15735b,_0x42fa58){_0x15735b=_0x15735b-0x112;const _0x177db9=a146_0x177d();let _0x157134=_0x177db9[_0x15735b];return _0x157134;}const a146_0xb8e869=a146_0x1571;(function(_0x2299da,_0x1363d0){const _0x20aea8=a146_0x1571,_0x11e63d=_0x2299da();while(!![]){try{const _0x5accd3=parseInt(_0x20aea8(0x11b))/0x1+parseInt(_0x20aea8(0x113))/0x2*(-parseInt(_0x20aea8(0x118))/0x3)+parseInt(_0x20aea8(0x11a))/0x4*(parseInt(_0x20aea8(0x11d))/0x5)+-parseInt(_0x20aea8(0x121))/0x6+-parseInt(_0x20aea8(0x122))/0x7*(parseInt(_0x20aea8(0x119))/0x8)+-parseInt(_0x20aea8(0x112))/0x9+parseInt(_0x20aea8(0x11c))/0xa*(parseInt(_0x20aea8(0x117))/0xb);if(_0x5accd3===_0x1363d0)break;else _0x11e63d['push'](_0x11e63d['shift']());}catch(_0xcf511e){_0x11e63d['push'](_0x11e63d['shift']());}}}(a146_0x177d,0x639e6));function a146_0x177d(){const _0xe880e8=['90MhcMLM','2945xZiFIr','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','analyze-status','plan','1385778FKzxve','7OPpXxA','7098894VnjhRK','429038xiqjXF','num','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','string','2195061ZZGNqq','9MuOUqn','2855832cbWxLh','3748WGyZsA','80451tEjZrc'];a146_0x177d=function(){return _0xe880e8;};return a146_0x177d();}import{getDbAnalysisStatus}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeStatus={'service':'db','command':a146_0xb8e869(0x11f),'description':a146_0xb8e869(0x115),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a146_0xb8e869(0x120),'type':a146_0xb8e869(0x116),'required':!![],'description':a146_0xb8e869(0x11e)}],async 'execute'(_0x49b051){const _0x2904a8=a146_0xb8e869,_0x564632=_0x49b051[_0x2904a8(0x114)]('id'),_0x25788d=_0x49b051['str'](_0x2904a8(0x120)),_0x55f812=await getDbAnalysisStatus(_0x25788d);return{'ok':!![],'data':{'dbLinkId':_0x564632,'planId':_0x25788d,'status':_0x55f812},'message':'Analysis\x20status\x20for\x20'+_0x25788d};}};
1
+ const a146_0xb26634=a146_0x6bf3;function a146_0x6bf3(_0x5dbc4a,_0x2a3c8c){_0x5dbc4a=_0x5dbc4a-0x1a9;const _0x4d1243=a146_0x4d12();let _0x6bf3b0=_0x4d1243[_0x5dbc4a];return _0x6bf3b0;}(function(_0x3b2e3c,_0xebdae8){const _0x57c9ae=a146_0x6bf3,_0x41ee8c=_0x3b2e3c();while(!![]){try{const _0x10c78a=-parseInt(_0x57c9ae(0x1b9))/0x1+-parseInt(_0x57c9ae(0x1aa))/0x2*(-parseInt(_0x57c9ae(0x1ad))/0x3)+parseInt(_0x57c9ae(0x1af))/0x4*(-parseInt(_0x57c9ae(0x1b5))/0x5)+-parseInt(_0x57c9ae(0x1b8))/0x6*(parseInt(_0x57c9ae(0x1bb))/0x7)+-parseInt(_0x57c9ae(0x1ab))/0x8*(parseInt(_0x57c9ae(0x1ba))/0x9)+-parseInt(_0x57c9ae(0x1ae))/0xa+parseInt(_0x57c9ae(0x1b0))/0xb;if(_0x10c78a===_0xebdae8)break;else _0x41ee8c['push'](_0x41ee8c['shift']());}catch(_0x4baab1){_0x41ee8c['push'](_0x41ee8c['shift']());}}}(a146_0x4d12,0x88976));import{getDbAnalysisStatus}from'../../core/api-client.js';function a146_0x4d12(){const _0x45f350=['num','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','1261430dcQFSP','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','Analysis\x20status\x20for\x20','2252694HTNhid','489884NUiQAi','8438598nCSwkT','7hpSCmy','str','14pLJoHU','8ittBhB','read','189606pOqzha','3519020VtrsBY','8cAPhdm','30541423CTuIgG','string','plan'];a146_0x4d12=function(){return _0x45f350;};return a146_0x4d12();}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeStatus={'service':'db','command':'analyze-status','description':a146_0xb26634(0x1b4),'risk':a146_0xb26634(0x1ac),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a146_0xb26634(0x1b2),'type':a146_0xb26634(0x1b1),'required':!![],'description':a146_0xb26634(0x1b6)}],async 'execute'(_0x476ced){const _0x5b0010=a146_0xb26634,_0x3418ae=_0x476ced[_0x5b0010(0x1b3)]('id'),_0x49779f=_0x476ced[_0x5b0010(0x1a9)]('plan'),_0x533764=await getDbAnalysisStatus(_0x49779f);return{'ok':!![],'data':{'dbLinkId':_0x3418ae,'planId':_0x49779f,'status':_0x533764},'message':_0x5b0010(0x1b7)+_0x49779f};}};
@@ -1 +1 @@
1
- const a145_0x5f4130=a145_0x473f;(function(_0x158f81,_0x36aff7){const _0x25d9d8=a145_0x473f,_0x37c022=_0x158f81();while(!![]){try{const _0x50463c=parseInt(_0x25d9d8(0x153))/0x1+parseInt(_0x25d9d8(0x175))/0x2*(parseInt(_0x25d9d8(0x16a))/0x3)+-parseInt(_0x25d9d8(0x155))/0x4*(-parseInt(_0x25d9d8(0x14f))/0x5)+parseInt(_0x25d9d8(0x157))/0x6*(-parseInt(_0x25d9d8(0x15e))/0x7)+parseInt(_0x25d9d8(0x16f))/0x8+parseInt(_0x25d9d8(0x151))/0x9+-parseInt(_0x25d9d8(0x14c))/0xa;if(_0x50463c===_0x36aff7)break;else _0x37c022['push'](_0x37c022['shift']());}catch(_0x420fa9){_0x37c022['push'](_0x37c022['shift']());}}}(a145_0xd16e,0x55514));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';function a145_0x473f(_0x263b63,_0x2a0463){_0x263b63=_0x263b63-0x149;const _0xd16e05=a145_0xd16e();let _0x473f12=_0xd16e05[_0x263b63];return _0x473f12;}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';function a145_0xd16e(){const _0x217842=['create','35224OvHnPs','dbversion','Created\x20db\x20link\x20','Create\x20dblink','/smartapi/dblink/create','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','Database\x20username','dbparam','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','dbname','Host\x20and\x20port:\x20host:port','boolean','458499QAbTvK','8.0','\x20and\x20started\x20analysis','password','string','4915064TrReSV','username','[redacted]',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','appCode','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','6LJtIWm','str','dbdesc','Database\x20password','join','10049820HHOGeP','dburl','autostart','165DBvOCI','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','3947535PQkxod','validation','61999hCNObQ','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','13704RJkBRw','message','396WYuNyD','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','bool','trim','dbtype','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response'];a145_0xd16e=function(){return _0x217842;};return a145_0xd16e();}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':a145_0x5f4130(0x15d),'description':a145_0x5f4130(0x166),'risk':'write','flags':[APPCODE_FLAG_OPTIONAL,{'name':a145_0x5f4130(0x167),'type':a145_0x5f4130(0x16e),'required':!![],'description':a145_0x5f4130(0x174)},DB_TYPE_FLAG,{'name':a145_0x5f4130(0x15f),'type':a145_0x5f4130(0x16e),'description':a145_0x5f4130(0x158),'default':a145_0x5f4130(0x16b)},{'name':'dburl','type':'string','required':!![],'description':a145_0x5f4130(0x168)},{'name':'username','type':a145_0x5f4130(0x16e),'required':!![],'description':a145_0x5f4130(0x164)},{'name':a145_0x5f4130(0x16d),'type':a145_0x5f4130(0x16e),'required':!![],'description':a145_0x5f4130(0x14a)},{'name':a145_0x5f4130(0x165),'type':a145_0x5f4130(0x16e),'description':'Extra\x20JDBC-style\x20connection\x20parameters\x20string'},{'name':'dbdesc','type':a145_0x5f4130(0x16e),'description':'Human-readable\x20description'},{'name':'autostart','type':a145_0x5f4130(0x169),'description':'After\x20create,\x20start\x20schema\x20analysis\x20(same\x20as\x20workbench\x20flow)','default':![]}],async 'validate'(_0x1c8109){const _0x168821=a145_0x5f4130,_0x500b8f=_0x1c8109[_0x168821(0x176)]('dburl')[_0x168821(0x15a)]();if(!validateDbUrl(_0x500b8f))throw CliErrors[_0x168821(0x152)](_0x168821(0x154)+_0x500b8f+'\x22',_0x168821(0x163));},async 'dryRun'(_0x29b1df){const _0x2a97b9=a145_0x5f4130,_0x248e97={'appCode':_0x29b1df['appCode'],'dbName':_0x29b1df[_0x2a97b9(0x176)](_0x2a97b9(0x167)),'dbType':_0x29b1df['str'](_0x2a97b9(0x15b)),'dbVersion':_0x29b1df['str'](_0x2a97b9(0x15f))||_0x2a97b9(0x16b),'dbUrl':_0x29b1df[_0x2a97b9(0x176)](_0x2a97b9(0x14d))[_0x2a97b9(0x15a)](),'username':_0x29b1df[_0x2a97b9(0x176)]('username'),'password':_0x2a97b9(0x171),..._0x29b1df['str'](_0x2a97b9(0x165))?{'dbParam':_0x29b1df['str'](_0x2a97b9(0x165))}:{},..._0x29b1df[_0x2a97b9(0x176)](_0x2a97b9(0x149))?{'dbDesc':_0x29b1df['str']('dbdesc')}:{}};return{'method':'POST','url':_0x2a97b9(0x162),'body':_0x248e97,'description':[_0x2a97b9(0x161),_0x29b1df[_0x2a97b9(0x159)](_0x2a97b9(0x14e))?_0x2a97b9(0x150):'No\x20follow-up\x20analysis'][_0x2a97b9(0x14b)]('\x0a')};},async 'execute'(_0x479b25){const _0x55389b=a145_0x5f4130,_0x105490={'appCode':_0x479b25[_0x55389b(0x173)],'dbName':_0x479b25[_0x55389b(0x176)](_0x55389b(0x167)),'dbType':_0x479b25[_0x55389b(0x176)]('dbtype'),'dbVersion':_0x479b25[_0x55389b(0x176)](_0x55389b(0x15f))||_0x55389b(0x16b),'dbUrl':_0x479b25[_0x55389b(0x176)](_0x55389b(0x14d))[_0x55389b(0x15a)](),'username':_0x479b25['str'](_0x55389b(0x170)),'password':_0x479b25[_0x55389b(0x176)](_0x55389b(0x16d)),..._0x479b25[_0x55389b(0x176)](_0x55389b(0x165))?{'dbParam':_0x479b25[_0x55389b(0x176)](_0x55389b(0x165))}:{},..._0x479b25[_0x55389b(0x176)](_0x55389b(0x149))?{'dbDesc':_0x479b25['str']('dbdesc')}:{}},{id:_0x25eef9,entity:_0x583f20}=normalizeEntityWithIdResponse(await createDbLink(_0x105490));if(!_0x25eef9)return{'ok':![],'message':_0x55389b(0x15c),'data':sanitizeDbLinkForOutput(_0x583f20)};let _0x27a04b,_0x54da5e;if(_0x479b25[_0x55389b(0x159)]('autostart'))try{_0x27a04b=await startDbAnalysis(_0x25eef9);}catch(_0x20c74c){_0x54da5e=_0x20c74c instanceof Error?_0x20c74c[_0x55389b(0x156)]:String(_0x20c74c);}const _0x57801c={'connection':sanitizeDbLinkForOutput(_0x583f20),..._0x27a04b?{'analysisPlanId':_0x27a04b}:{},..._0x54da5e?{'analysisStartWarning':_0x54da5e}:{}};let _0x55295e;return _0x479b25['bool'](_0x55389b(0x14e))?_0x54da5e?_0x55295e='Created\x20db\x20link\x20'+_0x25eef9+_0x55389b(0x172):_0x55295e=_0x55389b(0x160)+_0x25eef9+_0x55389b(0x16c):_0x55295e=_0x55389b(0x160)+_0x25eef9,{'ok':!![],'data':_0x57801c,'message':_0x55295e};}};
1
+ function a145_0x43e2(_0x40794b,_0x4018f0){_0x40794b=_0x40794b-0x1a1;const _0x5823ca=a145_0x5823();let _0x43e2e6=_0x5823ca[_0x40794b];return _0x43e2e6;}const a145_0x100431=a145_0x43e2;(function(_0x565bbd,_0x1a1256){const _0x10bd76=a145_0x43e2,_0x293033=_0x565bbd();while(!![]){try{const _0x424b8d=-parseInt(_0x10bd76(0x1a8))/0x1*(parseInt(_0x10bd76(0x1c9))/0x2)+parseInt(_0x10bd76(0x1ae))/0x3*(parseInt(_0x10bd76(0x1c4))/0x4)+parseInt(_0x10bd76(0x1ab))/0x5*(-parseInt(_0x10bd76(0x1b3))/0x6)+parseInt(_0x10bd76(0x1be))/0x7+-parseInt(_0x10bd76(0x1b1))/0x8+parseInt(_0x10bd76(0x1c7))/0x9*(parseInt(_0x10bd76(0x1bb))/0xa)+-parseInt(_0x10bd76(0x1cc))/0xb*(-parseInt(_0x10bd76(0x1a4))/0xc);if(_0x424b8d===_0x1a1256)break;else _0x293033['push'](_0x293033['shift']());}catch(_0x570b39){_0x293033['push'](_0x293033['shift']());}}}(a145_0x5823,0x92be7));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a145_0x5823(){const _0x5f10dc=['2XpQcql','validation','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','1738bJHeDn','appCode','str','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','dbdesc','\x20and\x20started\x20analysis','create','91296sTPrzh','Created\x20db\x20link\x20','write','autostart','932699hLFBiN','boolean','dbparam','4902085NdKXSu','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','message','1293AlJecx','dbtype','bool','3799944DEHZto','Human-readable\x20description','6AfyKlR','Host\x20and\x20port:\x20host:port','dbversion','join','dburl','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','Extra\x20JDBC-style\x20connection\x20parameters\x20string','POST','2464960uVFzoy','8.0','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','1163575KBgibW','username','trim','After\x20create,\x20start\x20schema\x20analysis\x20(same\x20as\x20workbench\x20flow)','[redacted]','dbname','8180gaQDYg','Database\x20username','password','27sTSGlT','string'];a145_0x5823=function(){return _0x5f10dc;};return a145_0x5823();}import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':a145_0x100431(0x1a3),'description':a145_0x100431(0x1ac),'risk':a145_0x100431(0x1a6),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a145_0x100431(0x1c8),'required':!![],'description':'Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server'},DB_TYPE_FLAG,{'name':a145_0x100431(0x1b5),'type':'string','description':a145_0x100431(0x1cf),'default':'8.0'},{'name':a145_0x100431(0x1b7),'type':a145_0x100431(0x1c8),'required':!![],'description':a145_0x100431(0x1b4)},{'name':'username','type':a145_0x100431(0x1c8),'required':!![],'description':a145_0x100431(0x1c5)},{'name':a145_0x100431(0x1c6),'type':a145_0x100431(0x1c8),'required':!![],'description':'Database\x20password'},{'name':a145_0x100431(0x1aa),'type':a145_0x100431(0x1c8),'description':a145_0x100431(0x1b9)},{'name':a145_0x100431(0x1a1),'type':'string','description':a145_0x100431(0x1b2)},{'name':a145_0x100431(0x1a7),'type':a145_0x100431(0x1a9),'description':a145_0x100431(0x1c1),'default':![]}],async 'validate'(_0x3d1c1d){const _0x311c2c=a145_0x100431,_0x3f10b7=_0x3d1c1d['str'](_0x311c2c(0x1b7))[_0x311c2c(0x1c0)]();if(!validateDbUrl(_0x3f10b7))throw CliErrors[_0x311c2c(0x1ca)]('Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22'+_0x3f10b7+'\x22',_0x311c2c(0x1b8));},async 'dryRun'(_0x4ab487){const _0x4698f3=a145_0x100431,_0x43ca16={'appCode':_0x4ab487['appCode'],'dbName':_0x4ab487['str'](_0x4698f3(0x1c3)),'dbType':_0x4ab487['str'](_0x4698f3(0x1af)),'dbVersion':_0x4ab487[_0x4698f3(0x1ce)](_0x4698f3(0x1b5))||_0x4698f3(0x1bc),'dbUrl':_0x4ab487[_0x4698f3(0x1ce)]('dburl')[_0x4698f3(0x1c0)](),'username':_0x4ab487[_0x4698f3(0x1ce)](_0x4698f3(0x1bf)),'password':_0x4698f3(0x1c2),..._0x4ab487['str'](_0x4698f3(0x1aa))?{'dbParam':_0x4ab487[_0x4698f3(0x1ce)](_0x4698f3(0x1aa))}:{},..._0x4ab487['str'](_0x4698f3(0x1a1))?{'dbDesc':_0x4ab487['str'](_0x4698f3(0x1a1))}:{}};return{'method':_0x4698f3(0x1ba),'url':'/smartapi/dblink/create','body':_0x43ca16,'description':['Create\x20dblink',_0x4ab487['bool'](_0x4698f3(0x1a7))?_0x4698f3(0x1bd):'No\x20follow-up\x20analysis'][_0x4698f3(0x1b6)]('\x0a')};},async 'execute'(_0x562cb3){const _0x15b9be=a145_0x100431,_0x6fda37={'appCode':_0x562cb3[_0x15b9be(0x1cd)],'dbName':_0x562cb3[_0x15b9be(0x1ce)]('dbname'),'dbType':_0x562cb3['str'](_0x15b9be(0x1af)),'dbVersion':_0x562cb3[_0x15b9be(0x1ce)]('dbversion')||'8.0','dbUrl':_0x562cb3[_0x15b9be(0x1ce)](_0x15b9be(0x1b7))['trim'](),'username':_0x562cb3[_0x15b9be(0x1ce)](_0x15b9be(0x1bf)),'password':_0x562cb3[_0x15b9be(0x1ce)]('password'),..._0x562cb3[_0x15b9be(0x1ce)](_0x15b9be(0x1aa))?{'dbParam':_0x562cb3['str']('dbparam')}:{},..._0x562cb3[_0x15b9be(0x1ce)](_0x15b9be(0x1a1))?{'dbDesc':_0x562cb3['str'](_0x15b9be(0x1a1))}:{}},{id:_0x140848,entity:_0x780ebe}=normalizeEntityWithIdResponse(await createDbLink(_0x6fda37));if(!_0x140848)return{'ok':![],'message':_0x15b9be(0x1cb),'data':sanitizeDbLinkForOutput(_0x780ebe)};let _0x303243,_0x4a9e62;if(_0x562cb3[_0x15b9be(0x1b0)](_0x15b9be(0x1a7)))try{_0x303243=await startDbAnalysis(_0x140848);}catch(_0x14f3bb){_0x4a9e62=_0x14f3bb instanceof Error?_0x14f3bb[_0x15b9be(0x1ad)]:String(_0x14f3bb);}const _0x5bc25a={'connection':sanitizeDbLinkForOutput(_0x780ebe),..._0x303243?{'analysisPlanId':_0x303243}:{},..._0x4a9e62?{'analysisStartWarning':_0x4a9e62}:{}};let _0x235c07;return _0x562cb3['bool'](_0x15b9be(0x1a7))?_0x4a9e62?_0x235c07='Created\x20db\x20link\x20'+_0x140848+';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning':_0x235c07=_0x15b9be(0x1a5)+_0x140848+_0x15b9be(0x1a2):_0x235c07=_0x15b9be(0x1a5)+_0x140848,{'ok':!![],'data':_0x5bc25a,'message':_0x235c07};}};
@@ -1 +1 @@
1
- function a134_0x3058(_0x2602a2,_0x487839){_0x2602a2=_0x2602a2-0x9d;const _0x516659=a134_0x5166();let _0x30581d=_0x516659[_0x2602a2];return _0x30581d;}const a134_0xa36656=a134_0x3058;(function(_0x1372ea,_0x5c5e69){const _0x480241=a134_0x3058,_0x35fb4d=_0x1372ea();while(!![]){try{const _0x285dda=parseInt(_0x480241(0x9f))/0x1*(parseInt(_0x480241(0x9e))/0x2)+parseInt(_0x480241(0xa1))/0x3*(parseInt(_0x480241(0xa2))/0x4)+-parseInt(_0x480241(0xa6))/0x5+-parseInt(_0x480241(0xa0))/0x6+-parseInt(_0x480241(0xa3))/0x7*(-parseInt(_0x480241(0xa8))/0x8)+parseInt(_0x480241(0xa4))/0x9*(-parseInt(_0x480241(0xaa))/0xa)+parseInt(_0x480241(0xa7))/0xb;if(_0x285dda===_0x5c5e69)break;else _0x35fb4d['push'](_0x35fb4d['shift']());}catch(_0x705835){_0x35fb4d['push'](_0x35fb4d['shift']());}}}(a134_0x5166,0x7481f));import{deleteDbLink}from'../../core/api-client.js';function a134_0x5166(){const _0x59c4f4=['high-risk-write','18EmJbUz','53322xHYgxn','380250zILQMS','3bwFDUC','1105140sEFzFi','12572VqzehA','18rQTpWL','delete','975000OzUBpj','1500829wJWGJZ','1736THIJFk','num','2733820qoSShV'];a134_0x5166=function(){return _0x59c4f4;};return a134_0x5166();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDelete={'service':'db','command':a134_0xa36656(0xa5),'description':'Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','risk':a134_0xa36656(0x9d),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x44e6c6){const _0x38968c=a134_0xa36656,_0x113e86=_0x44e6c6[_0x38968c(0xa9)]('id');return await deleteDbLink(_0x113e86),{'ok':!![],'data':{'id':_0x113e86,'deleted':!![]},'message':'Deleted\x20db\x20link\x20'+_0x113e86};}};
1
+ const a134_0x52d0f2=a134_0x1163;(function(_0x1e2a69,_0x3d92a6){const _0x1a149c=a134_0x1163,_0x413ddd=_0x1e2a69();while(!![]){try{const _0x231788=parseInt(_0x1a149c(0xd7))/0x1+-parseInt(_0x1a149c(0xe1))/0x2+-parseInt(_0x1a149c(0xd8))/0x3*(-parseInt(_0x1a149c(0xd4))/0x4)+-parseInt(_0x1a149c(0xe0))/0x5*(parseInt(_0x1a149c(0xe2))/0x6)+-parseInt(_0x1a149c(0xdd))/0x7*(-parseInt(_0x1a149c(0xdf))/0x8)+parseInt(_0x1a149c(0xd5))/0x9*(parseInt(_0x1a149c(0xde))/0xa)+parseInt(_0x1a149c(0xd6))/0xb;if(_0x231788===_0x3d92a6)break;else _0x413ddd['push'](_0x413ddd['shift']());}catch(_0x22fd5f){_0x413ddd['push'](_0x413ddd['shift']());}}}(a134_0x3458,0x848e6));function a134_0x1163(_0x5f3b50,_0xcef678){_0x5f3b50=_0x5f3b50-0xd4;const _0x3458d7=a134_0x3458();let _0x1163bf=_0x3458d7[_0x5f3b50];return _0x1163bf;}import{deleteDbLink}from'../../core/api-client.js';function a134_0x3458(){const _0x447610=['delete','num','49fhFQwV','814620dhtqJL','123496vznndH','725hpdMLv','1696722WQjnTp','34218AfVIbK','695360PSaVdT','45TXXSbf','10584310aSCTpf','566827VlZraM','3uXEkYd','Deleted\x20db\x20link\x20','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently'];a134_0x3458=function(){return _0x447610;};return a134_0x3458();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDelete={'service':'db','command':a134_0x52d0f2(0xdb),'description':a134_0x52d0f2(0xda),'risk':'high-risk-write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3aa79c){const _0x2da956=a134_0x52d0f2,_0x2534e3=_0x3aa79c[_0x2da956(0xdc)]('id');return await deleteDbLink(_0x2534e3),{'ok':!![],'data':{'id':_0x2534e3,'deleted':!![]},'message':_0x2da956(0xd9)+_0x2534e3};}};
@@ -1 +1 @@
1
- function a141_0xb1f3(_0xa27694,_0x1f916c){_0xa27694=_0xa27694-0x16e;const _0x4f2742=a141_0x4f27();let _0xb1f3b0=_0x4f2742[_0xa27694];return _0xb1f3b0;}function a141_0x4f27(){const _0x3fb15d=['684azozvK','detail','565735ggjwBM','1037956dpoOQL','2061860gRBvZf','db\x20link\x20','dbName','1559928ekvsbr','49JaEugL','read','num','384186VRJrcC','1311fNkzLP','27oMikzu','1187635ewUpiL'];a141_0x4f27=function(){return _0x3fb15d;};return a141_0x4f27();}const a141_0x515945=a141_0xb1f3;(function(_0xd1ff3a,_0x26a498){const _0x23a49e=a141_0xb1f3,_0x49d28c=_0xd1ff3a();while(!![]){try{const _0x169dba=-parseInt(_0x23a49e(0x178))/0x1+parseInt(_0x23a49e(0x176))/0x2*(parseInt(_0x23a49e(0x173))/0x3)+-parseInt(_0x23a49e(0x179))/0x4+-parseInt(_0x23a49e(0x175))/0x5+parseInt(_0x23a49e(0x172))/0x6*(parseInt(_0x23a49e(0x16f))/0x7)+parseInt(_0x23a49e(0x16e))/0x8+parseInt(_0x23a49e(0x174))/0x9*(parseInt(_0x23a49e(0x17a))/0xa);if(_0x169dba===_0x26a498)break;else _0x49d28c['push'](_0x49d28c['shift']());}catch(_0x1af65d){_0x49d28c['push'](_0x49d28c['shift']());}}}(a141_0x4f27,0x55135));import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':a141_0x515945(0x177),'description':'Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','risk':a141_0x515945(0x170),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x114ece){const _0x2ad471=a141_0x515945,_0x4b3d1b=_0x114ece[_0x2ad471(0x171)]('id'),_0x45acff=await getDbLinkInfo(_0x4b3d1b);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x45acff),'message':_0x2ad471(0x17b)+_0x4b3d1b+':\x20'+_0x45acff[_0x2ad471(0x17c)]};}};
1
+ const a141_0x2c48f6=a141_0x28eb;function a141_0x1436(){const _0x5a0de0=['2827768OqrZET','dbName','num','50856gMKbNr','detail','7608145fDXBBy','2211540aCJUTv','2621880NRBhrR','5464298OKNHWs','1rLlKur','db\x20link\x20','20386800EYfLlm','read'];a141_0x1436=function(){return _0x5a0de0;};return a141_0x1436();}(function(_0x87ac52,_0x9ad431){const _0x338a68=a141_0x28eb,_0xa0247=_0x87ac52();while(!![]){try{const _0x5611f7=parseInt(_0x338a68(0xef))/0x1*(parseInt(_0x338a68(0xf3))/0x2)+-parseInt(_0x338a68(0xfa))/0x3+parseInt(_0x338a68(0xf9))/0x4+parseInt(_0x338a68(0xf8))/0x5+-parseInt(_0x338a68(0xf6))/0x6+parseInt(_0x338a68(0xfb))/0x7+-parseInt(_0x338a68(0xf1))/0x8;if(_0x5611f7===_0x9ad431)break;else _0xa0247['push'](_0xa0247['shift']());}catch(_0x2c1179){_0xa0247['push'](_0xa0247['shift']());}}}(a141_0x1436,0xcca52));import{getDbLinkInfo}from'../../core/api-client.js';function a141_0x28eb(_0x10ad4e,_0x42860a){_0x10ad4e=_0x10ad4e-0xef;const _0x1436f7=a141_0x1436();let _0x28eb01=_0x1436f7[_0x10ad4e];return _0x28eb01;}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':a141_0x2c48f6(0xf7),'description':'Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','risk':a141_0x2c48f6(0xf2),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5e7713){const _0x45503b=a141_0x2c48f6,_0x2be1d0=_0x5e7713[_0x45503b(0xf5)]('id'),_0x3c9776=await getDbLinkInfo(_0x2be1d0);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x3c9776),'message':_0x45503b(0xf0)+_0x2be1d0+':\x20'+_0x3c9776[_0x45503b(0xf4)]};}};
@@ -1 +1 @@
1
- const a136_0x28da70=a136_0x1aac;(function(_0x1f1cdf,_0x4c25a0){const _0x10933a=a136_0x1aac,_0x198a7d=_0x1f1cdf();while(!![]){try{const _0x3a1f47=parseInt(_0x10933a(0x175))/0x1+-parseInt(_0x10933a(0x173))/0x2+-parseInt(_0x10933a(0x17d))/0x3+-parseInt(_0x10933a(0x180))/0x4+-parseInt(_0x10933a(0x184))/0x5*(parseInt(_0x10933a(0x182))/0x6)+parseInt(_0x10933a(0x185))/0x7*(parseInt(_0x10933a(0x171))/0x8)+parseInt(_0x10933a(0x178))/0x9;if(_0x3a1f47===_0x4c25a0)break;else _0x198a7d['push'](_0x198a7d['shift']());}catch(_0x2d6883){_0x198a7d['push'](_0x198a7d['shift']());}}}(a136_0x3af4,0x255f3));import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a136_0x3af4(){const _0x3d3fa6=['Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','appCode','329696HAAUPM','str','211338bYigFG','number','25tsusTm','487396XBQuYA','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','\x20row(s),\x20total\x20','num','24eHRotV','Page\x20size','566688MHFuxb','pagesize','121739azgPKt','page','string','5973291gIuObM','Page\x20index\x20(1-based)','length','read','table','898092OMGitu'];a136_0x3af4=function(){return _0x3d3fa6;};return a136_0x3af4();}function a136_0x1aac(_0x28fc90,_0x31b963){_0x28fc90=_0x28fc90-0x16e;const _0x3af4a8=a136_0x3af4();let _0x1aac22=_0x3af4a8[_0x28fc90];return _0x1aac22;}export const dbDiff={'service':'db','command':'diff','description':a136_0x28da70(0x16e),'risk':a136_0x28da70(0x17b),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a136_0x28da70(0x17c),'type':a136_0x28da70(0x177),'description':a136_0x28da70(0x17e)},{'name':'page','type':a136_0x28da70(0x183),'description':a136_0x28da70(0x179),'default':0x1},{'name':a136_0x28da70(0x174),'type':'number','description':a136_0x28da70(0x172),'default':0x14}],async 'execute'(_0x5c2d7d){const _0x55465e=a136_0x28da70,_0x2b98cb=_0x5c2d7d[_0x55465e(0x170)]('id'),_0x31e70b=_0x5c2d7d[_0x55465e(0x170)](_0x55465e(0x176),0x1)||0x1,_0x4ff448=_0x5c2d7d[_0x55465e(0x170)](_0x55465e(0x174),0x14)||0x14,_0x1030b8=_0x5c2d7d[_0x55465e(0x181)](_0x55465e(0x17c))||undefined,{totalCount:_0x1a973f,tableList:_0x185a64}=await getDbTableDiff(_0x5c2d7d[_0x55465e(0x17f)],_0x2b98cb,{'pageIndex':_0x31e70b,'pageSize':_0x4ff448,'tableName':_0x1030b8});return{'ok':!![],'data':{'dbLinkId':_0x2b98cb,'page':_0x31e70b,'pageSize':_0x4ff448,'totalCount':_0x1a973f,'tableList':_0x185a64},'message':_0x185a64[_0x55465e(0x17a)]+_0x55465e(0x16f)+_0x1a973f+'\x20(db\x20link\x20'+_0x2b98cb+')'};}};
1
+ const a136_0x11f624=a136_0x78b0;(function(_0x3f534a,_0x408b1a){const _0x29474d=a136_0x78b0,_0xb9ed68=_0x3f534a();while(!![]){try{const _0x278792=parseInt(_0x29474d(0x102))/0x1*(parseInt(_0x29474d(0xfd))/0x2)+parseInt(_0x29474d(0xef))/0x3+parseInt(_0x29474d(0xfa))/0x4*(parseInt(_0x29474d(0x103))/0x5)+-parseInt(_0x29474d(0xf2))/0x6+parseInt(_0x29474d(0xff))/0x7*(-parseInt(_0x29474d(0xf4))/0x8)+parseInt(_0x29474d(0xed))/0x9*(parseInt(_0x29474d(0xf7))/0xa)+-parseInt(_0x29474d(0x100))/0xb*(parseInt(_0x29474d(0xfb))/0xc);if(_0x278792===_0x408b1a)break;else _0xb9ed68['push'](_0xb9ed68['shift']());}catch(_0x260f90){_0xb9ed68['push'](_0xb9ed68['shift']());}}}(a136_0x33fe,0xabd92));function a136_0x33fe(){const _0x108022=['103aPNEXw','5YxRBiR','\x20row(s),\x20total\x20','\x20(db\x20link\x20','page','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','appCode','10017819NrqPGm','length','3653814cVsKuA','table','string','3024576UVpxwc','num','432IOcXPk','number','Page\x20size','10LTUVah','Page\x20index\x20(1-based)','pagesize','198804eZhhNB','36UaxqQC','diff','19598BqFwlD','read','84231NIealU','5618283PSeODA','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)'];a136_0x33fe=function(){return _0x108022;};return a136_0x33fe();}import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a136_0x78b0(_0x5f4942,_0x2aca31){_0x5f4942=_0x5f4942-0xeb;const _0x33fea0=a136_0x33fe();let _0x78b054=_0x33fea0[_0x5f4942];return _0x78b054;}export const dbDiff={'service':'db','command':a136_0x11f624(0xfc),'description':a136_0x11f624(0x101),'risk':a136_0x11f624(0xfe),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a136_0x11f624(0xf0),'type':a136_0x11f624(0xf1),'description':a136_0x11f624(0xeb)},{'name':a136_0x11f624(0x106),'type':a136_0x11f624(0xf5),'description':a136_0x11f624(0xf8),'default':0x1},{'name':a136_0x11f624(0xf9),'type':a136_0x11f624(0xf5),'description':a136_0x11f624(0xf6),'default':0x14}],async 'execute'(_0x587bfc){const _0x2aebd2=a136_0x11f624,_0x2a3197=_0x587bfc[_0x2aebd2(0xf3)]('id'),_0x4dbcdc=_0x587bfc['num'](_0x2aebd2(0x106),0x1)||0x1,_0x586f68=_0x587bfc['num'](_0x2aebd2(0xf9),0x14)||0x14,_0x2bf773=_0x587bfc['str'](_0x2aebd2(0xf0))||undefined,{totalCount:_0x86065d,tableList:_0x5b6eac}=await getDbTableDiff(_0x587bfc[_0x2aebd2(0xec)],_0x2a3197,{'pageIndex':_0x4dbcdc,'pageSize':_0x586f68,'tableName':_0x2bf773});return{'ok':!![],'data':{'dbLinkId':_0x2a3197,'page':_0x4dbcdc,'pageSize':_0x586f68,'totalCount':_0x86065d,'tableList':_0x5b6eac},'message':_0x5b6eac[_0x2aebd2(0xee)]+_0x2aebd2(0x104)+_0x86065d+_0x2aebd2(0x105)+_0x2a3197+')'};}};
@@ -1 +1 @@
1
- (function(_0x3d55d2,_0x5f3d54){const _0x41cedd=a140_0x4335,_0x1d7055=_0x3d55d2();while(!![]){try{const _0x3b8800=parseInt(_0x41cedd(0x1e2))/0x1+parseInt(_0x41cedd(0x1e1))/0x2*(-parseInt(_0x41cedd(0x1db))/0x3)+-parseInt(_0x41cedd(0x1e3))/0x4*(parseInt(_0x41cedd(0x1dd))/0x5)+-parseInt(_0x41cedd(0x1dc))/0x6*(-parseInt(_0x41cedd(0x1e4))/0x7)+parseInt(_0x41cedd(0x1e0))/0x8*(parseInt(_0x41cedd(0x1df))/0x9)+-parseInt(_0x41cedd(0x1e5))/0xa+parseInt(_0x41cedd(0x1de))/0xb;if(_0x3b8800===_0x5f3d54)break;else _0x1d7055['push'](_0x1d7055['shift']());}catch(_0x5233bc){_0x1d7055['push'](_0x1d7055['shift']());}}}(a140_0x16e4,0x9c47f));function a140_0x16e4(){const _0x197d70=['24438953wzMUXo','4356918WWqCEW','8WdsGkw','3466sZKqPl','405392nDHvyS','4682388ogJLcn','581ashGeW','5174050xBJIxb','2022dYGDBv','27828qOZLMg','5DAQiWb'];a140_0x16e4=function(){return _0x197d70;};return a140_0x16e4();}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';function a140_0x4335(_0x5c26c9,_0x5eb5cd){_0x5c26c9=_0x5c26c9-0x1db;const _0x16e433=a140_0x16e4();let _0x4335e1=_0x16e433[_0x5c26c9];return _0x4335e1;}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(_0x161560,_0x320e24){const _0x502946=a140_0x143e,_0x5d488f=_0x161560();while(!![]){try{const _0xbd04f0=parseInt(_0x502946(0x1fa))/0x1+-parseInt(_0x502946(0x1fc))/0x2*(-parseInt(_0x502946(0x1f4))/0x3)+-parseInt(_0x502946(0x1f6))/0x4+parseInt(_0x502946(0x1f8))/0x5+parseInt(_0x502946(0x1fb))/0x6*(-parseInt(_0x502946(0x1f7))/0x7)+parseInt(_0x502946(0x1f5))/0x8*(parseInt(_0x502946(0x1fd))/0x9)+-parseInt(_0x502946(0x1f9))/0xa;if(_0xbd04f0===_0x320e24)break;else _0x5d488f['push'](_0x5d488f['shift']());}catch(_0x1a9ce4){_0x5d488f['push'](_0x5d488f['shift']());}}}(a140_0x31a2,0x68cda));function a140_0x31a2(){const _0x1890be=['5427LlIYUE','6821032NdPvAi','3369024eQjZMq','96747DyPRwA','2378125UdaJag','5330130lXqNml','180201ixykHQ','228DiVTdr','908USuvSy','9CIllOu'];a140_0x31a2=function(){return _0x1890be;};return a140_0x31a2();}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 a140_0x143e(_0x5b70cb,_0x4ddb8f){_0x5b70cb=_0x5b70cb-0x1f4;const _0x31a21b=a140_0x31a2();let _0x143ecd=_0x31a21b[_0x5b70cb];return _0x143ecd;}import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
@@ -1 +1 @@
1
- const a138_0x4822df=a138_0x34a8;function a138_0x34a8(_0x71efb7,_0x2616f0){_0x71efb7=_0x71efb7-0x99;const _0x27cc82=a138_0x27cc();let _0x34a840=_0x27cc82[_0x71efb7];return _0x34a840;}(function(_0x3accb9,_0x306665){const _0x33711c=a138_0x34a8,_0xcc2d2b=_0x3accb9();while(!![]){try{const _0x1ab2bd=parseInt(_0x33711c(0xa1))/0x1+-parseInt(_0x33711c(0xab))/0x2*(-parseInt(_0x33711c(0x9f))/0x3)+parseInt(_0x33711c(0x9d))/0x4*(-parseInt(_0x33711c(0xa3))/0x5)+-parseInt(_0x33711c(0x9a))/0x6+parseInt(_0x33711c(0xa9))/0x7*(parseInt(_0x33711c(0x9e))/0x8)+parseInt(_0x33711c(0xa7))/0x9*(parseInt(_0x33711c(0x9b))/0xa)+-parseInt(_0x33711c(0xa6))/0xb;if(_0x1ab2bd===_0x306665)break;else _0xcc2d2b['push'](_0xcc2d2b['shift']());}catch(_0x9991cd){_0xcc2d2b['push'](_0xcc2d2b['shift']());}}}(a138_0x27cc,0x721e0));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a138_0x4822df(0xac),'description':a138_0x4822df(0xa8),'risk':a138_0x4822df(0xa2),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a138_0x4822df(0xad),'type':a138_0x4822df(0xa5),'description':a138_0x4822df(0x99),'default':0x1},{'name':a138_0x4822df(0xaa),'type':a138_0x4822df(0xa5),'description':'Page\x20size','default':0x64}],async 'execute'(_0x807e4a){const _0x4b025f=a138_0x4822df,_0x189e76=_0x807e4a['num']('page',0x1)||0x1,_0x4f5bf=_0x807e4a['num'](_0x4b025f(0xaa),0x64)||0x64,{items:_0x5ee18a,paging:_0x2541e6}=await listDbLinks(_0x807e4a[_0x4b025f(0xa0)],{'currentPage':_0x189e76,'pageSize':_0x4f5bf}),_0x2ea3c1=sanitizeDbLinkList(_0x5ee18a),_0xc03b6d=_0x2541e6?_0x2541e6:{'currentPage':_0x189e76,'pageSize':_0x4f5bf,'rowsOnPage':_0x2ea3c1[_0x4b025f(0x9c)],'totalCount':null,'note':'Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'};return{'ok':!![],'data':{'connections':_0x2ea3c1,'paging':_0xc03b6d},'message':_0x4b025f(0xa4)+_0x2ea3c1['length']+'\x20database\x20connection(s)'};}};function a138_0x27cc(){const _0xe80320=['appCode','661809cuCvvM','read','245FaBSpR','Found\x20','number','11193336LBosLN','1044qyKVNT','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','56zbInXV','pagesize','141176OiPJAx','list','page','Page\x20index\x20(1-based)','157092Mllutr','21990oyZdGc','length','58828dveYWa','538464TkzJLL','33ZDdMcO'];a138_0x27cc=function(){return _0xe80320;};return a138_0x27cc();}
1
+ function a138_0x5842(){const _0xaa32e3=['read','list','24LkKFwL','188yFaced','234113YJpKRw','appCode','68768qfUVyq','page','592710Abcsmb','Found\x20','number','5283nDUMMT','16990sHEfnE','num','Page\x20size','length','35735UyHGFC','pagesize','List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','842632WADICR','1675284ULNHWR'];a138_0x5842=function(){return _0xaa32e3;};return a138_0x5842();}const a138_0x55684c=a138_0x884e;(function(_0x293e06,_0x11430f){const _0x4b02b0=a138_0x884e,_0x25d390=_0x293e06();while(!![]){try{const _0x2e3204=parseInt(_0x4b02b0(0x1c1))/0x1+parseInt(_0x4b02b0(0x1c5))/0x2+parseInt(_0x4b02b0(0x1bc))/0x3+parseInt(_0x4b02b0(0x1c0))/0x4*(parseInt(_0x4b02b0(0x1b8))/0x5)+-parseInt(_0x4b02b0(0x1bf))/0x6*(parseInt(_0x4b02b0(0x1c3))/0x7)+-parseInt(_0x4b02b0(0x1bb))/0x8+-parseInt(_0x4b02b0(0x1c8))/0x9*(parseInt(_0x4b02b0(0x1b4))/0xa);if(_0x2e3204===_0x11430f)break;else _0x25d390['push'](_0x25d390['shift']());}catch(_0x550854){_0x25d390['push'](_0x25d390['shift']());}}}(a138_0x5842,0x450f3));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';function a138_0x884e(_0x6dbf1b,_0x434140){_0x6dbf1b=_0x6dbf1b-0x1b4;const _0x5842c7=a138_0x5842();let _0x884e25=_0x5842c7[_0x6dbf1b];return _0x884e25;}export const dbList={'service':'db','command':a138_0x55684c(0x1be),'description':a138_0x55684c(0x1ba),'risk':a138_0x55684c(0x1bd),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a138_0x55684c(0x1c4),'type':'number','description':'Page\x20index\x20(1-based)','default':0x1},{'name':a138_0x55684c(0x1b9),'type':a138_0x55684c(0x1c7),'description':a138_0x55684c(0x1b6),'default':0x64}],async 'execute'(_0x5188ac){const _0xb04ddc=a138_0x55684c,_0x586a77=_0x5188ac[_0xb04ddc(0x1b5)](_0xb04ddc(0x1c4),0x1)||0x1,_0x565012=_0x5188ac[_0xb04ddc(0x1b5)](_0xb04ddc(0x1b9),0x64)||0x64,{items:_0x3a9e03,paging:_0x45e39e}=await listDbLinks(_0x5188ac[_0xb04ddc(0x1c2)],{'currentPage':_0x586a77,'pageSize':_0x565012}),_0x2155a9=sanitizeDbLinkList(_0x3a9e03),_0x4450ab=_0x45e39e?_0x45e39e:{'currentPage':_0x586a77,'pageSize':_0x565012,'rowsOnPage':_0x2155a9['length'],'totalCount':null,'note':'Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'};return{'ok':!![],'data':{'connections':_0x2155a9,'paging':_0x4450ab},'message':_0xb04ddc(0x1c6)+_0x2155a9[_0xb04ddc(0x1b7)]+'\x20database\x20connection(s)'};}};
@@ -1 +1 @@
1
- (function(_0x24e923,_0x711eaf){const _0x4a9bf4=a143_0x562e,_0x20c95a=_0x24e923();while(!![]){try{const _0x4ff0aa=-parseInt(_0x4a9bf4(0x1c4))/0x1+-parseInt(_0x4a9bf4(0x1cd))/0x2+parseInt(_0x4a9bf4(0x1bc))/0x3*(-parseInt(_0x4a9bf4(0x1be))/0x4)+parseInt(_0x4a9bf4(0x1cc))/0x5*(-parseInt(_0x4a9bf4(0x1c6))/0x6)+-parseInt(_0x4a9bf4(0x1c1))/0x7*(parseInt(_0x4a9bf4(0x1c8))/0x8)+parseInt(_0x4a9bf4(0x1ce))/0x9+parseInt(_0x4a9bf4(0x1c5))/0xa;if(_0x4ff0aa===_0x711eaf)break;else _0x20c95a['push'](_0x20c95a['shift']());}catch(_0x4d16e1){_0x20c95a['push'](_0x20c95a['shift']());}}}(a143_0x1d93,0xb6b77));function shouldRedactKey(_0x312199){const _0x25a7b9=a143_0x562e,_0x49f9e5=_0x312199[_0x25a7b9(0x1c3)]();if(_0x49f9e5===_0x25a7b9(0x1c9)||_0x49f9e5==='passwd'||_0x49f9e5===_0x25a7b9(0x1d0))return!![];if(_0x49f9e5[_0x25a7b9(0x1bd)](_0x25a7b9(0x1d1))||_0x49f9e5[_0x25a7b9(0x1bd)](_0x25a7b9(0x1cb))||_0x49f9e5['includes'](_0x25a7b9(0x1d3)))return!![];if(_0x49f9e5['includes']('privatekey')||_0x49f9e5['includes'](_0x25a7b9(0x1ca)))return!![];if(_0x49f9e5==='authorization'||_0x49f9e5==='connectionstring'||_0x49f9e5===_0x25a7b9(0x1bf))return!![];return![];}export function sanitizeDbLinkForOutput(_0x464d02){const _0x1eb774=a143_0x562e,_0x5a3437={..._0x464d02};for(const _0x5a429d of Object[_0x1eb774(0x1c0)](_0x5a3437)){if(!shouldRedactKey(_0x5a429d))continue;const _0x2790f8=_0x5a3437[_0x5a429d];_0x2790f8!=null&&String(_0x2790f8)[_0x1eb774(0x1c7)]>0x0&&(_0x5a3437[_0x5a429d]=_0x1eb774(0x1c2));}return _0x5a3437;}export function sanitizeDbLinkList(_0x478b2d){const _0x1fba95=a143_0x562e;return _0x478b2d[_0x1fba95(0x1d2)](_0x3bf7c5=>sanitizeDbLinkForOutput(_0x3bf7c5));}function a143_0x1d93(){const _0x4b8c64=['password','accesskey','token','496735rZlmrZ','429602sAKMZA','10664892BoUevG','trim','dbpassword','secret','map','credential','3574317QLVclg','includes','4XroXGR','jdbcurl','keys','7973182hvOhMg','[redacted]','toLowerCase','846290ydwGLn','39484450czZcVB','60XNGUFT','length','8KyekoR'];a143_0x1d93=function(){return _0x4b8c64;};return a143_0x1d93();}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;function a143_0x562e(_0x264c84,_0x246a3f){_0x264c84=_0x264c84-0x1bc;const _0x1d93e4=a143_0x1d93();let _0x562ec1=_0x1d93e4[_0x264c84];return _0x562ec1;}export function validateDbUrl(_0x290e22){const _0xaaba97=a143_0x562e,_0x2c7819=_0x290e22[_0xaaba97(0x1cf)]();if(!_0x2c7819)return![];return DB_URL_PATTERN['test'](_0x2c7819);}
1
+ (function(_0x3ef47f,_0x4666b0){const _0x3e7534=a143_0x1010,_0x488374=_0x3ef47f();while(!![]){try{const _0x177c7f=parseInt(_0x3e7534(0x13f))/0x1*(parseInt(_0x3e7534(0x14f))/0x2)+-parseInt(_0x3e7534(0x14d))/0x3*(parseInt(_0x3e7534(0x14a))/0x4)+parseInt(_0x3e7534(0x13b))/0x5+-parseInt(_0x3e7534(0x151))/0x6*(parseInt(_0x3e7534(0x144))/0x7)+-parseInt(_0x3e7534(0x145))/0x8*(parseInt(_0x3e7534(0x143))/0x9)+-parseInt(_0x3e7534(0x152))/0xa+parseInt(_0x3e7534(0x140))/0xb;if(_0x177c7f===_0x4666b0)break;else _0x488374['push'](_0x488374['shift']());}catch(_0x1a0cf7){_0x488374['push'](_0x488374['shift']());}}}(a143_0x3c74,0x6a0cd));function shouldRedactKey(_0x43f322){const _0x34e430=a143_0x1010,_0x5253d7=_0x43f322[_0x34e430(0x141)]();if(_0x5253d7==='password'||_0x5253d7==='passwd'||_0x5253d7==='dbpassword')return!![];if(_0x5253d7[_0x34e430(0x148)](_0x34e430(0x142))||_0x5253d7['includes'](_0x34e430(0x13e))||_0x5253d7[_0x34e430(0x148)](_0x34e430(0x13d)))return!![];if(_0x5253d7['includes'](_0x34e430(0x14e))||_0x5253d7['includes'](_0x34e430(0x14b)))return!![];if(_0x5253d7===_0x34e430(0x14c)||_0x5253d7==='connectionstring'||_0x5253d7===_0x34e430(0x150))return!![];return![];}function a143_0x1010(_0x36cb91,_0xb9f9fb){_0x36cb91=_0x36cb91-0x13a;const _0x3c7410=a143_0x3c74();let _0x101018=_0x3c7410[_0x36cb91];return _0x101018;}export function sanitizeDbLinkForOutput(_0x2319c7){const _0x572017=a143_0x1010,_0x51fa78={..._0x2319c7};for(const _0x5a7992 of Object[_0x572017(0x147)](_0x51fa78)){if(!shouldRedactKey(_0x5a7992))continue;const _0x489dd0=_0x51fa78[_0x5a7992];_0x489dd0!=null&&String(_0x489dd0)[_0x572017(0x146)]>0x0&&(_0x51fa78[_0x5a7992]='[redacted]');}return _0x51fa78;}function a143_0x3c74(){const _0x47a8e4=['11411268Ippfro','toLowerCase','secret','531wFnjbo','7bcmIDG','59864KnpuRO','length','keys','includes','test','16lsCsNX','accesskey','authorization','595455fSGtAg','privatekey','1141004wpyOnF','jdbcurl','1071516vSNOfQ','1082280JLHlVc','map','1743710myUhXx','trim','credential','token','1qfbOBF'];a143_0x3c74=function(){return _0x47a8e4;};return a143_0x3c74();}export function sanitizeDbLinkList(_0x3a7b00){const _0x45e0cf=a143_0x1010;return _0x3a7b00[_0x45e0cf(0x13a)](_0x3ce3f4=>sanitizeDbLinkForOutput(_0x3ce3f4));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x575c40){const _0x53bdf8=a143_0x1010,_0x1fc4a2=_0x575c40[_0x53bdf8(0x13c)]();if(!_0x1fc4a2)return![];return DB_URL_PATTERN[_0x53bdf8(0x149)](_0x1fc4a2);}
@@ -1 +1 @@
1
- const a137_0x527d22=a137_0x1a78;(function(_0x168d7b,_0x3326fc){const _0x5b2612=a137_0x1a78,_0x6837d=_0x168d7b();while(!![]){try{const _0x5e40a6=parseInt(_0x5b2612(0x123))/0x1*(parseInt(_0x5b2612(0x127))/0x2)+-parseInt(_0x5b2612(0x122))/0x3*(parseInt(_0x5b2612(0x11d))/0x4)+parseInt(_0x5b2612(0x11c))/0x5*(parseInt(_0x5b2612(0x125))/0x6)+parseInt(_0x5b2612(0x128))/0x7+parseInt(_0x5b2612(0x124))/0x8+-parseInt(_0x5b2612(0x11e))/0x9*(-parseInt(_0x5b2612(0x120))/0xa)+parseInt(_0x5b2612(0x117))/0xb*(-parseInt(_0x5b2612(0x118))/0xc);if(_0x5e40a6===_0x3326fc)break;else _0x6837d['push'](_0x6837d['shift']());}catch(_0x345ba3){_0x6837d['push'](_0x6837d['shift']());}}}(a137_0x41bd,0xae4d7));function a137_0x1a78(_0x107b51,_0x5b81a6){_0x107b51=_0x107b51-0x116;const _0x41bd59=a137_0x41bd();let _0x1a78b0=_0x41bd59[_0x107b51];return _0x1a78b0;}import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a137_0x41bd(){const _0x56e236=['9PjVXxH','tables','2399050dmXTof','num','3BIvfrL','20477USjhTh','11122624SJdYMY','326310zryOiy','appCode','68umEPrW','5310270VgwvQL','read','11whNyzl','24838284yPjuLz','\x20table(s)\x20on\x20db\x20link\x20','length','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','20QEGtwi','2075204HjitLJ'];a137_0x41bd=function(){return _0x56e236;};return a137_0x41bd();}export const dbTables={'service':'db','command':a137_0x527d22(0x11f),'description':a137_0x527d22(0x11b),'risk':a137_0x527d22(0x116),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x448821){const _0x34e6f8=a137_0x527d22,_0x10984b=_0x448821[_0x34e6f8(0x121)]('id'),_0x45f802=await getDbAllTableList(_0x448821[_0x34e6f8(0x126)],_0x10984b);return{'ok':!![],'data':{'dbLinkId':_0x10984b,'total':_0x45f802[_0x34e6f8(0x11a)],'tables':_0x45f802},'message':_0x45f802[_0x34e6f8(0x11a)]+_0x34e6f8(0x119)+_0x10984b};}};
1
+ function a137_0x8e10(_0x5d4d32,_0x297190){_0x5d4d32=_0x5d4d32-0x13d;const _0x702a8c=a137_0x702a();let _0x8e10a5=_0x702a8c[_0x5d4d32];return _0x8e10a5;}const a137_0x33838a=a137_0x8e10;(function(_0x3e72a7,_0x519b89){const _0x48b14e=a137_0x8e10,_0x5ea38a=_0x3e72a7();while(!![]){try{const _0x309cf0=-parseInt(_0x48b14e(0x13f))/0x1+parseInt(_0x48b14e(0x141))/0x2*(-parseInt(_0x48b14e(0x149))/0x3)+-parseInt(_0x48b14e(0x14e))/0x4+-parseInt(_0x48b14e(0x14c))/0x5*(parseInt(_0x48b14e(0x140))/0x6)+parseInt(_0x48b14e(0x145))/0x7+parseInt(_0x48b14e(0x13e))/0x8*(-parseInt(_0x48b14e(0x14d))/0x9)+-parseInt(_0x48b14e(0x144))/0xa*(-parseInt(_0x48b14e(0x143))/0xb);if(_0x309cf0===_0x519b89)break;else _0x5ea38a['push'](_0x5ea38a['shift']());}catch(_0x4ebc74){_0x5ea38a['push'](_0x5ea38a['shift']());}}}(a137_0x702a,0x5fe3a));import{getDbAllTableList}from'../../core/api-client.js';function a137_0x702a(){const _0x383570=['appCode','\x20table(s)\x20on\x20db\x20link\x20','940KHFZnK','9VZcavg','616636TcrHdD','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','6047696hMHUFd','107212jFIfsk','19500JcJOFo','2xeGvhu','length','17939691NIocIx','10yoBxvl','3407369KXYbrS','tables','read','num','289659lpYHWt'];a137_0x702a=function(){return _0x383570;};return a137_0x702a();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':a137_0x33838a(0x146),'description':a137_0x33838a(0x13d),'risk':a137_0x33838a(0x147),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x29091b){const _0x22e91a=a137_0x33838a,_0x14527e=_0x29091b[_0x22e91a(0x148)]('id'),_0x437c96=await getDbAllTableList(_0x29091b[_0x22e91a(0x14a)],_0x14527e);return{'ok':!![],'data':{'dbLinkId':_0x14527e,'total':_0x437c96[_0x22e91a(0x142)],'tables':_0x437c96},'message':_0x437c96['length']+_0x22e91a(0x14b)+_0x14527e};}};
@@ -1 +1 @@
1
- const a135_0x46aea9=a135_0x1aca;function a135_0x1399(){const _0x3ca9ab=['\x20(see\x20data.result)','error','4oGNeTI','test','84FlmUQL','167457KqsKvm','125660qcgjSK','message','keys','length','24295sztSzU','1524tvVBoL','589144YicIdk','read','code','msg','2643454NsrwMo','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','96OeiYLm','object','2628280ccdVbG','slice','Connection\x20OK\x20for\x20db\x20link\x20','9482809CSIsfg','27GwJShO'];a135_0x1399=function(){return _0x3ca9ab;};return a135_0x1399();}function a135_0x1aca(_0x860728,_0x2a8d41){_0x860728=_0x860728-0xc7;const _0x139977=a135_0x1399();let _0x1aca21=_0x139977[_0x860728];return _0x1aca21;}(function(_0x15bb93,_0x50ab73){const _0x31e6d9=a135_0x1aca,_0x36b676=_0x15bb93();while(!![]){try{const _0x1b2f80=parseInt(_0x31e6d9(0xdd))/0x1*(-parseInt(_0x31e6d9(0xc8))/0x2)+parseInt(_0x31e6d9(0xc7))/0x3*(parseInt(_0x31e6d9(0xdf))/0x4)+parseInt(_0x31e6d9(0xcc))/0x5*(parseInt(_0x31e6d9(0xcd))/0x6)+parseInt(_0x31e6d9(0xd9))/0x7+-parseInt(_0x31e6d9(0xce))/0x8+parseInt(_0x31e6d9(0xda))/0x9*(-parseInt(_0x31e6d9(0xd6))/0xa)+-parseInt(_0x31e6d9(0xd2))/0xb*(parseInt(_0x31e6d9(0xd4))/0xc);if(_0x1b2f80===_0x50ab73)break;else _0x36b676['push'](_0x36b676['shift']());}catch(_0x1f5aa3){_0x36b676['push'](_0x36b676['shift']());}}}(a135_0x1399,0xb1079));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x28e124){const _0x195d4b=a135_0x1aca;if(_0x28e124===!![]||_0x28e124===![])return{'success':_0x28e124};if(_0x28e124===null||_0x28e124===undefined)return{'type':typeof _0x28e124};if(typeof _0x28e124!=='object')return{'type':typeof _0x28e124};const _0x2a681f=_0x28e124,_0x2d985a=['success',_0x195d4b(0xc9),_0x195d4b(0xd0),_0x195d4b(0xdc),_0x195d4b(0xd1),'data'],_0x23f7f6={};for(const _0x36e69e of _0x2d985a){if(_0x36e69e in _0x2a681f)_0x23f7f6[_0x36e69e]=_0x2a681f[_0x36e69e];}return Object[_0x195d4b(0xca)](_0x23f7f6)[_0x195d4b(0xcb)]===0x0&&(_0x23f7f6['keys']=Object[_0x195d4b(0xca)](_0x2a681f)[_0x195d4b(0xd7)](0x0,0x14)),_0x23f7f6;}export const dbTest={'service':'db','command':a135_0x46aea9(0xde),'description':a135_0x46aea9(0xd3),'risk':a135_0x46aea9(0xcf),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x405e5c){const _0x109796=a135_0x46aea9,_0x5e169a=_0x405e5c['num']('id'),_0x48da44=await testDbLinkConnect(_0x5e169a),_0x34e539=_0x48da44===!![]||typeof _0x48da44===_0x109796(0xd5)&&_0x48da44!==null&&_0x48da44['success']===!![],_0x117e9a=summarizeTestConnectResult(_0x48da44);return{'ok':!![],'data':{'id':_0x5e169a,'connected':Boolean(_0x34e539),'result':_0x117e9a},'message':_0x34e539?_0x109796(0xd8)+_0x5e169a:'Connection\x20check\x20finished\x20for\x20db\x20link\x20'+_0x5e169a+_0x109796(0xdb)};}};
1
+ const a135_0x470214=a135_0x1648;(function(_0x25f938,_0x18021f){const _0x9f045e=a135_0x1648,_0x31275d=_0x25f938();while(!![]){try{const _0x3765a0=-parseInt(_0x9f045e(0x177))/0x1+parseInt(_0x9f045e(0x17b))/0x2*(parseInt(_0x9f045e(0x179))/0x3)+-parseInt(_0x9f045e(0x182))/0x4*(-parseInt(_0x9f045e(0x186))/0x5)+-parseInt(_0x9f045e(0x184))/0x6+-parseInt(_0x9f045e(0x183))/0x7+parseInt(_0x9f045e(0x189))/0x8+parseInt(_0x9f045e(0x180))/0x9;if(_0x3765a0===_0x18021f)break;else _0x31275d['push'](_0x31275d['shift']());}catch(_0x28a01e){_0x31275d['push'](_0x31275d['shift']());}}}(a135_0x546d,0x986e0));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a135_0x1648(_0x141560,_0x5ccacb){_0x141560=_0x141560-0x177;const _0x546d09=a135_0x546d();let _0x164856=_0x546d09[_0x141560];return _0x164856;}function summarizeTestConnectResult(_0x7d53c2){const _0x5b5395=a135_0x1648;if(_0x7d53c2===!![]||_0x7d53c2===![])return{'success':_0x7d53c2};if(_0x7d53c2===null||_0x7d53c2===undefined)return{'type':typeof _0x7d53c2};if(typeof _0x7d53c2!==_0x5b5395(0x18d))return{'type':typeof _0x7d53c2};const _0x35eff0=_0x7d53c2,_0x3afefc=[_0x5b5395(0x17c),_0x5b5395(0x185),_0x5b5395(0x18c),_0x5b5395(0x17f),_0x5b5395(0x17e),_0x5b5395(0x178)],_0x3d352c={};for(const _0x31a902 of _0x3afefc){if(_0x31a902 in _0x35eff0)_0x3d352c[_0x31a902]=_0x35eff0[_0x31a902];}return Object[_0x5b5395(0x18b)](_0x3d352c)[_0x5b5395(0x17d)]===0x0&&(_0x3d352c[_0x5b5395(0x18b)]=Object[_0x5b5395(0x18b)](_0x35eff0)[_0x5b5395(0x188)](0x0,0x14)),_0x3d352c;}export const dbTest={'service':'db','command':a135_0x470214(0x18a),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x93302a){const _0x5d4fb2=a135_0x470214,_0x29c6c1=_0x93302a[_0x5d4fb2(0x187)]('id'),_0x488835=await testDbLinkConnect(_0x29c6c1),_0x27920=_0x488835===!![]||typeof _0x488835===_0x5d4fb2(0x18d)&&_0x488835!==null&&_0x488835['success']===!![],_0x6a1178=summarizeTestConnectResult(_0x488835);return{'ok':!![],'data':{'id':_0x29c6c1,'connected':Boolean(_0x27920),'result':_0x6a1178},'message':_0x27920?_0x5d4fb2(0x17a)+_0x29c6c1:_0x5d4fb2(0x181)+_0x29c6c1+'\x20(see\x20data.result)'};}};function a135_0x546d(){const _0x272479=['test','keys','code','object','151475BqGQMq','data','3LDTkdr','Connection\x20OK\x20for\x20db\x20link\x20','1049938SCfKwf','success','length','msg','error','1858383IlNvla','Connection\x20check\x20finished\x20for\x20db\x20link\x20','20156oMyQzb','508508aVNwPv','6320832HQgxll','message','625qcNtIw','num','slice','4324896MRQNrl'];a135_0x546d=function(){return _0x272479;};return a135_0x546d();}
@@ -1 +1 @@
1
- const a144_0x504b97=a144_0x4b21;(function(_0xf10e4,_0x171466){const _0x3014f6=a144_0x4b21,_0x49e318=_0xf10e4();while(!![]){try{const _0x5b7823=-parseInt(_0x3014f6(0x1c2))/0x1*(parseInt(_0x3014f6(0x1bc))/0x2)+-parseInt(_0x3014f6(0x1b1))/0x3*(parseInt(_0x3014f6(0x1ae))/0x4)+parseInt(_0x3014f6(0x1b2))/0x5*(parseInt(_0x3014f6(0x1a8))/0x6)+-parseInt(_0x3014f6(0x1c8))/0x7+parseInt(_0x3014f6(0x1b9))/0x8*(parseInt(_0x3014f6(0x1c9))/0x9)+parseInt(_0x3014f6(0x1bd))/0xa*(-parseInt(_0x3014f6(0x1b0))/0xb)+parseInt(_0x3014f6(0x1aa))/0xc;if(_0x5b7823===_0x171466)break;else _0x49e318['push'](_0x49e318['shift']());}catch(_0x3d95ee){_0x49e318['push'](_0x49e318['shift']());}}}(a144_0x4900,0x66094));function a144_0x4b21(_0x4dac9f,_0x22ecef){_0x4dac9f=_0x4dac9f-0x1a8;const _0x4900b1=a144_0x4900();let _0x4b21f7=_0x4900b1[_0x4dac9f];return _0x4b21f7;}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';function a144_0x4900(){const _0x5dad02=['New\x20description','5199915BWwvwC','18vndpjO','dburl','/smartapi/dblink/update','20442DJsgBI','write','17431692foijAe','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','dbParam','dbName','1756zbUggn','str','3619croHdv','1173nVGdIx','940EzOSnu','update','New\x20database\x20name','string','POST','username','dbdesc','1912552gOBDrx','New\x20connection\x20parameter\x20string','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','1063680CzCoeB','21490XInRAD','password','Updated\x20db\x20link\x20','num','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','1lQCwmB','dbDesc','trim','dbname','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'];a144_0x4900=function(){return _0x5dad02;};return a144_0x4900();}import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';export const dbUpdate={'service':'db','command':a144_0x504b97(0x1b3),'description':a144_0x504b97(0x1ab),'risk':a144_0x504b97(0x1a9),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a144_0x504b97(0x1c5),'type':a144_0x504b97(0x1b5),'description':a144_0x504b97(0x1b4)},{'name':a144_0x504b97(0x1ca),'type':a144_0x504b97(0x1b5),'description':'New\x20host:port'},{'name':a144_0x504b97(0x1b7),'type':a144_0x504b97(0x1b5),'description':'New\x20username'},{'name':a144_0x504b97(0x1be),'type':'string','description':a144_0x504b97(0x1bb)},{'name':'dbparam','type':'string','description':a144_0x504b97(0x1ba)},{'name':a144_0x504b97(0x1b8),'type':'string','description':a144_0x504b97(0x1c7)}],async 'validate'(_0x59def8){const _0x4c0d7b=a144_0x504b97,_0x137133=_0x59def8[_0x4c0d7b(0x1af)]('dburl');if(_0x137133&&!validateDbUrl(_0x137133[_0x4c0d7b(0x1c4)]()))throw CliErrors['validation'](_0x4c0d7b(0x1c6)+_0x137133+'\x22');},async 'dryRun'(_0x5a3bcc){const _0x2c4181=a144_0x504b97,_0x14e5bf=_0x5a3bcc[_0x2c4181(0x1c0)]('id'),_0x3a9463=await getDbLinkInfo(_0x14e5bf),_0x23edb8={..._0x3a9463},_0x28eb9d=_0x5a3bcc['str'](_0x2c4181(0x1c5));if(_0x28eb9d)_0x23edb8[_0x2c4181(0x1ad)]=_0x28eb9d;const _0xc3b12e=_0x5a3bcc[_0x2c4181(0x1af)](_0x2c4181(0x1ca));if(_0xc3b12e)_0x23edb8['dbUrl']=_0xc3b12e[_0x2c4181(0x1c4)]();const _0x2fdd66=_0x5a3bcc[_0x2c4181(0x1af)](_0x2c4181(0x1b7));if(_0x2fdd66)_0x23edb8['username']=_0x2fdd66;const _0x338f6b=_0x5a3bcc[_0x2c4181(0x1af)](_0x2c4181(0x1be));if(_0x338f6b)_0x23edb8[_0x2c4181(0x1be)]=_0x338f6b;const _0x1e103c=_0x5a3bcc['str']('dbparam');if(_0x1e103c)_0x23edb8['dbParam']=_0x1e103c;const _0xbc8a30=_0x5a3bcc['str']('dbdesc');if(_0xbc8a30)_0x23edb8['dbDesc']=_0xbc8a30;const _0x5a183a=sanitizeDbLinkForOutput(_0x23edb8);return{'method':_0x2c4181(0x1b6),'url':_0x2c4181(0x1cb),'body':_0x5a183a,'description':_0x2c4181(0x1c1)};},async 'execute'(_0xc40896){const _0x10acfc=a144_0x504b97,_0x56639b=_0xc40896[_0x10acfc(0x1c0)]('id'),_0x5a005a=await getDbLinkInfo(_0x56639b),_0x3808c7={..._0x5a005a},_0x1de7d8=_0xc40896[_0x10acfc(0x1af)](_0x10acfc(0x1c5));if(_0x1de7d8)_0x3808c7['dbName']=_0x1de7d8;const _0x5d9ed7=_0xc40896['str']('dburl');if(_0x5d9ed7)_0x3808c7['dbUrl']=_0x5d9ed7['trim']();const _0x3fc360=_0xc40896[_0x10acfc(0x1af)](_0x10acfc(0x1b7));if(_0x3fc360)_0x3808c7['username']=_0x3fc360;const _0x4f1184=_0xc40896['str'](_0x10acfc(0x1be));if(_0x4f1184)_0x3808c7[_0x10acfc(0x1be)]=_0x4f1184;const _0x135bff=_0xc40896['str']('dbparam');if(_0x135bff)_0x3808c7[_0x10acfc(0x1ac)]=_0x135bff;const _0x169d21=_0xc40896[_0x10acfc(0x1af)](_0x10acfc(0x1b8));if(_0x169d21)_0x3808c7[_0x10acfc(0x1c3)]=_0x169d21;const _0x4e1ba8=await updateDbLink(_0x3808c7);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x4e1ba8),'message':_0x10acfc(0x1bf)+_0x56639b};}};
1
+ const a144_0x186d64=a144_0x1c6f;(function(_0x320d3d,_0x19ec91){const _0x1615f4=a144_0x1c6f,_0x4bb919=_0x320d3d();while(!![]){try{const _0x5a15c1=-parseInt(_0x1615f4(0xd4))/0x1*(parseInt(_0x1615f4(0xc9))/0x2)+parseInt(_0x1615f4(0xdc))/0x3*(-parseInt(_0x1615f4(0xc6))/0x4)+-parseInt(_0x1615f4(0xe0))/0x5*(parseInt(_0x1615f4(0xc7))/0x6)+parseInt(_0x1615f4(0xcd))/0x7*(parseInt(_0x1615f4(0xe5))/0x8)+-parseInt(_0x1615f4(0xe1))/0x9+-parseInt(_0x1615f4(0xcb))/0xa+parseInt(_0x1615f4(0xd3))/0xb;if(_0x5a15c1===_0x19ec91)break;else _0x4bb919['push'](_0x4bb919['shift']());}catch(_0x302f78){_0x4bb919['push'](_0x4bb919['shift']());}}}(a144_0x1da1,0xec21f));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';export const dbUpdate={'service':'db','command':a144_0x186d64(0xd9),'description':a144_0x186d64(0xdd),'risk':a144_0x186d64(0xce),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a144_0x186d64(0xc8),'type':a144_0x186d64(0xe2),'description':a144_0x186d64(0xe8)},{'name':a144_0x186d64(0xe6),'type':a144_0x186d64(0xe2),'description':a144_0x186d64(0xd8)},{'name':'username','type':a144_0x186d64(0xe2),'description':a144_0x186d64(0xe4)},{'name':a144_0x186d64(0xd0),'type':a144_0x186d64(0xe2),'description':'New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API'},{'name':a144_0x186d64(0xda),'type':'string','description':'New\x20connection\x20parameter\x20string'},{'name':a144_0x186d64(0xdb),'type':a144_0x186d64(0xe2),'description':a144_0x186d64(0xea)}],async 'validate'(_0x4de76e){const _0x101001=a144_0x186d64,_0xc60fdb=_0x4de76e[_0x101001(0xcc)](_0x101001(0xe6));if(_0xc60fdb&&!validateDbUrl(_0xc60fdb[_0x101001(0xcf)]()))throw CliErrors[_0x101001(0xe7)](_0x101001(0xd1)+_0xc60fdb+'\x22');},async 'dryRun'(_0x2d9a0c){const _0x5f1e19=a144_0x186d64,_0x393d76=_0x2d9a0c[_0x5f1e19(0xd7)]('id'),_0x593505=await getDbLinkInfo(_0x393d76),_0x3d979d={..._0x593505},_0x5bc492=_0x2d9a0c[_0x5f1e19(0xcc)]('dbname');if(_0x5bc492)_0x3d979d['dbName']=_0x5bc492;const _0x463eca=_0x2d9a0c[_0x5f1e19(0xcc)](_0x5f1e19(0xe6));if(_0x463eca)_0x3d979d['dbUrl']=_0x463eca[_0x5f1e19(0xcf)]();const _0x580e7f=_0x2d9a0c[_0x5f1e19(0xcc)](_0x5f1e19(0xd6));if(_0x580e7f)_0x3d979d[_0x5f1e19(0xd6)]=_0x580e7f;const _0x5ac142=_0x2d9a0c[_0x5f1e19(0xcc)](_0x5f1e19(0xd0));if(_0x5ac142)_0x3d979d[_0x5f1e19(0xd0)]=_0x5ac142;const _0x47697f=_0x2d9a0c[_0x5f1e19(0xcc)](_0x5f1e19(0xda));if(_0x47697f)_0x3d979d['dbParam']=_0x47697f;const _0x3411cc=_0x2d9a0c[_0x5f1e19(0xcc)](_0x5f1e19(0xdb));if(_0x3411cc)_0x3d979d[_0x5f1e19(0xdf)]=_0x3411cc;const _0x83b3b1=sanitizeDbLinkForOutput(_0x3d979d);return{'method':_0x5f1e19(0xe3),'url':_0x5f1e19(0xde),'body':_0x83b3b1,'description':_0x5f1e19(0xca)};},async 'execute'(_0x47d7e4){const _0x5b1f18=a144_0x186d64,_0x4702fd=_0x47d7e4[_0x5b1f18(0xd7)]('id'),_0x23070e=await getDbLinkInfo(_0x4702fd),_0x5ed7a4={..._0x23070e},_0x217153=_0x47d7e4[_0x5b1f18(0xcc)](_0x5b1f18(0xc8));if(_0x217153)_0x5ed7a4[_0x5b1f18(0xd2)]=_0x217153;const _0x3f0240=_0x47d7e4[_0x5b1f18(0xcc)](_0x5b1f18(0xe6));if(_0x3f0240)_0x5ed7a4[_0x5b1f18(0xd5)]=_0x3f0240[_0x5b1f18(0xcf)]();const _0x53e4e9=_0x47d7e4['str'](_0x5b1f18(0xd6));if(_0x53e4e9)_0x5ed7a4['username']=_0x53e4e9;const _0x17db95=_0x47d7e4['str'](_0x5b1f18(0xd0));if(_0x17db95)_0x5ed7a4[_0x5b1f18(0xd0)]=_0x17db95;const _0x44b6a4=_0x47d7e4[_0x5b1f18(0xcc)](_0x5b1f18(0xda));if(_0x44b6a4)_0x5ed7a4[_0x5b1f18(0xe9)]=_0x44b6a4;const _0x760f47=_0x47d7e4[_0x5b1f18(0xcc)](_0x5b1f18(0xdb));if(_0x760f47)_0x5ed7a4[_0x5b1f18(0xdf)]=_0x760f47;const _0x3b25b7=await updateDbLink(_0x5ed7a4);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x3b25b7),'message':'Updated\x20db\x20link\x20'+_0x4702fd};}};function a144_0x1c6f(_0x4b8616,_0x5ec484){_0x4b8616=_0x4b8616-0xc6;const _0x1da1e0=a144_0x1da1();let _0x1c6fa7=_0x1da1e0[_0x4b8616];return _0x1c6fa7;}function a144_0x1da1(){const _0x1d71ef=['dbparam','dbdesc','1514553rLsZaH','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','/smartapi/dblink/update','dbDesc','2085TtymWm','10219860poZKrs','string','POST','New\x20username','872Caxkmx','dburl','validation','New\x20database\x20name','dbParam','New\x20description','4gyobqg','25764zQtKbm','dbname','124rcWjjd','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','6767890TPLVue','str','25879rPZGSD','write','trim','password','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','dbName','68276318JonuWT','24757BaGLPN','dbUrl','username','num','New\x20host:port','update'];a144_0x1da1=function(){return _0x1d71ef;};return a144_0x1da1();}
@@ -1 +1 @@
1
- const a76_0x53a5bf=a76_0x1670;(function(_0x254fb2,_0x55959d){const _0x2e1c17=a76_0x1670,_0x1016ae=_0x254fb2();while(!![]){try{const _0x4ea031=parseInt(_0x2e1c17(0x164))/0x1*(-parseInt(_0x2e1c17(0x162))/0x2)+parseInt(_0x2e1c17(0x14c))/0x3+-parseInt(_0x2e1c17(0x171))/0x4+parseInt(_0x2e1c17(0x125))/0x5+-parseInt(_0x2e1c17(0x133))/0x6+parseInt(_0x2e1c17(0x161))/0x7+-parseInt(_0x2e1c17(0x157))/0x8*(-parseInt(_0x2e1c17(0x141))/0x9);if(_0x4ea031===_0x55959d)break;else _0x1016ae['push'](_0x1016ae['shift']());}catch(_0x2cf0a2){_0x1016ae['push'](_0x1016ae['shift']());}}}(a76_0x5400,0x1e7d5));import a76_0x4dc526 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';function a76_0x5400(){const _0x530e9b=['\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','Project','8AzgnfX','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','bold','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','length','✓\x20Valid','(missing)','222320obvvlQ','44YQhTAq','platform','5235TEplEj','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','red','\x20\x20explicitAppName:\x20','(no\x20file)','log','version','padEnd','(set\x20via\x20file,\x20length=','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','source','yellow','cookie','972016jTtJOm','currentApp','appcode','634350EllRcK','appCode','\x20doctor','(set,\x20length=','(default)','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','green','keys','riskLevel','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','doctor','\x20\x20API\x20Endpoints','848106hbzfkT','missing','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','raw','unknown','apps','\x20\x20Config\x20JSON','gray','✗\x20Invalid\x20JSON','accessKey','slice','(not\x20found)','(default:\x20','format','4176009zatijV','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','(not\x20set)','value','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','message','✓\x20Valid\x20JSON','env','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','explicitAppName','5337rRAqjp','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','repeat','\x20\x20─','verbose','status','read','(none)'];a76_0x5400=function(){return _0x530e9b;};return a76_0x5400();}async function execute(_0x1889b8){const _0x56e6a1=a76_0x1670,_0x3c05c1=GIT_COMMIT!==_0x56e6a1(0x137)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x56e6a1(0x13d)](0x0,0xa)+')':VERSION,_0x443a24=buildConfigFromFlags({}),_0x5b726c=getCookie();console[_0x56e6a1(0x169)](),console[_0x56e6a1(0x169)](a76_0x4dc526[_0x56e6a1(0x15b)](CLI_BIN_NAME+_0x56e6a1(0x127))),console[_0x56e6a1(0x169)](a76_0x4dc526[_0x56e6a1(0x13a)]('─'['repeat'](0x32))),console[_0x56e6a1(0x169)](_0x56e6a1(0x154)+_0x3c05c1),console['log']('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x56e6a1(0x16a)]),console[_0x56e6a1(0x169)](_0x56e6a1(0x130)+process[_0x56e6a1(0x163)]+'\x20'+process['arch']),console[_0x56e6a1(0x169)](),console[_0x56e6a1(0x169)](a76_0x4dc526[_0x56e6a1(0x15b)]('\x20\x20Config\x20Files')),console[_0x56e6a1(0x169)](a76_0x4dc526[_0x56e6a1(0x13a)](_0x56e6a1(0x14f)[_0x56e6a1(0x14e)](0x1e)));const _0x5ad1f6=getGlobalConfigPath(),_0x5a0358=getProjectConfigPath();console[_0x56e6a1(0x169)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5ad1f6||a76_0x4dc526['gray'](_0x56e6a1(0x13e)))),console[_0x56e6a1(0x169)](_0x56e6a1(0x14a)+(_0x5a0358||a76_0x4dc526['gray'](_0x56e6a1(0x13e)))),console[_0x56e6a1(0x169)](),console[_0x56e6a1(0x169)](a76_0x4dc526['bold'](_0x56e6a1(0x139))),console[_0x56e6a1(0x169)](a76_0x4dc526[_0x56e6a1(0x13a)](_0x56e6a1(0x14f)[_0x56e6a1(0x14e)](0x1e)));const _0x278923=(_0x4bef42,_0x575e46)=>{const _0x178373=_0x56e6a1;if(!_0x575e46){console[_0x178373(0x169)]('\x20\x20'+_0x4bef42['padEnd'](0x11)+'\x20'+a76_0x4dc526[_0x178373(0x13a)](_0x178373(0x168)));return;}const _0x30dd82=inspectCliConfigJsonFile(_0x575e46);if(_0x30dd82[_0x178373(0x151)]==='ok')console['log']('\x20\x20'+_0x4bef42[_0x178373(0x16b)](0x11)+'\x20'+a76_0x4dc526[_0x178373(0x12b)](_0x178373(0x148)));else{if(_0x30dd82[_0x178373(0x151)]==='empty')console[_0x178373(0x169)]('\x20\x20'+_0x4bef42[_0x178373(0x16b)](0x11)+'\x20'+a76_0x4dc526[_0x178373(0x16f)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x30dd82[_0x178373(0x151)]===_0x178373(0x134)?console[_0x178373(0x169)]('\x20\x20'+_0x4bef42[_0x178373(0x16b)](0x11)+'\x20'+a76_0x4dc526[_0x178373(0x13a)](_0x178373(0x160))):(console['log']('\x20\x20'+_0x4bef42[_0x178373(0x16b)](0x11)+'\x20'+a76_0x4dc526[_0x178373(0x166)](_0x178373(0x13b))),console[_0x178373(0x169)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a76_0x4dc526[_0x178373(0x166)](_0x30dd82[_0x178373(0x147)])));}};_0x278923('Global',_0x5ad1f6),_0x278923(_0x56e6a1(0x156),_0x5a0358),console[_0x56e6a1(0x169)](),console['log'](a76_0x4dc526[_0x56e6a1(0x15b)]('\x20\x20Merged\x20Config')),console['log'](a76_0x4dc526[_0x56e6a1(0x13a)](_0x56e6a1(0x14f)[_0x56e6a1(0x14e)](0x1e))),console[_0x56e6a1(0x169)](_0x56e6a1(0x158)+(_0x443a24[_0x56e6a1(0x126)]||a76_0x4dc526['red'](_0x56e6a1(0x144)))),console[_0x56e6a1(0x169)](_0x56e6a1(0x15c)+_0x443a24[_0x56e6a1(0x149)]),console[_0x56e6a1(0x169)](_0x56e6a1(0x159)+_0x443a24['locale']),console[_0x56e6a1(0x169)](_0x56e6a1(0x16d)+_0x443a24[_0x56e6a1(0x15d)]),console[_0x56e6a1(0x169)](_0x56e6a1(0x142)+(_0x443a24['defaultApp']||a76_0x4dc526['gray'](_0x56e6a1(0x153)))),console[_0x56e6a1(0x169)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x443a24['currentApp']||a76_0x4dc526[_0x56e6a1(0x13a)]('(none)'))),console[_0x56e6a1(0x169)](_0x56e6a1(0x167)+(_0x443a24[_0x56e6a1(0x14b)]||a76_0x4dc526[_0x56e6a1(0x13a)](_0x56e6a1(0x153)))),console[_0x56e6a1(0x169)](_0x56e6a1(0x14d)+(_0x443a24[_0x56e6a1(0x140)]||a76_0x4dc526[_0x56e6a1(0x13a)](_0x56e6a1(0x13f)+DEFAULT_CONFIG_VALUES[_0x56e6a1(0x140)]+')'))),console[_0x56e6a1(0x169)](_0x56e6a1(0x155)+(_0x443a24['pageSize']??a76_0x4dc526['gray'](_0x56e6a1(0x129)))),console[_0x56e6a1(0x169)](_0x56e6a1(0x165)+_0x443a24[_0x56e6a1(0x12d)]),console[_0x56e6a1(0x169)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x443a24[_0x56e6a1(0x150)]),console[_0x56e6a1(0x169)](_0x56e6a1(0x135)+(_0x443a24['cookie']?a76_0x4dc526[_0x56e6a1(0x12b)](_0x56e6a1(0x128)+_0x443a24[_0x56e6a1(0x170)][_0x56e6a1(0x15e)]+')'):_0x5b726c?a76_0x4dc526['green'](_0x56e6a1(0x16c)+_0x5b726c[_0x56e6a1(0x15e)]+')'):a76_0x4dc526[_0x56e6a1(0x13a)](_0x56e6a1(0x153))));const _0x2a8c73=Object[_0x56e6a1(0x12c)](_0x443a24[_0x56e6a1(0x138)]);if(_0x2a8c73['length']>0x0){console['log'](),console[_0x56e6a1(0x169)](a76_0x4dc526[_0x56e6a1(0x15b)]('\x20\x20Apps')),console[_0x56e6a1(0x169)](a76_0x4dc526[_0x56e6a1(0x13a)](_0x56e6a1(0x14f)[_0x56e6a1(0x14e)](0x1e)));for(const _0x2e727a of _0x2a8c73){const _0x4e9dc4=_0x443a24[_0x56e6a1(0x138)][_0x2e727a],_0x12f907=_0x2e727a===_0x443a24['defaultApp'],_0x1e0fc5=_0x2e727a===_0x443a24[_0x56e6a1(0x172)],_0x1e0ed0=_0x1e0fc5?a76_0x4dc526['green']('\x20←\x20current'):'',_0x56c746=_0x12f907?'\x20(default)':'';console[_0x56e6a1(0x169)]('\x20\x20'+_0x2e727a+_0x56c746+_0x1e0ed0),console[_0x56e6a1(0x169)](_0x56e6a1(0x143)+_0x4e9dc4[_0x56e6a1(0x124)]);const _0x281d29=buildAppDoctorFields(_0x4e9dc4,{'env':_0x443a24[_0x56e6a1(0x149)],'apiDir':_0x443a24[_0x56e6a1(0x136)]['apiDir']||DEFAULT_CONFIG_VALUES[_0x56e6a1(0x15d)],'cookie':_0x443a24['cookie']||_0x5b726c||undefined,'accessKey':_0x443a24[_0x56e6a1(0x13c)]});console[_0x56e6a1(0x169)](_0x56e6a1(0x12e)+_0x281d29['env'][_0x56e6a1(0x145)]+'\x20\x20'+a76_0x4dc526['gray']('('+_0x281d29[_0x56e6a1(0x149)][_0x56e6a1(0x16e)]+')')),console[_0x56e6a1(0x169)](_0x56e6a1(0x12a)+_0x281d29[_0x56e6a1(0x15d)][_0x56e6a1(0x145)]+'\x20\x20'+a76_0x4dc526[_0x56e6a1(0x13a)]('('+_0x281d29[_0x56e6a1(0x15d)][_0x56e6a1(0x16e)]+')'));const _0x14a034=_0x281d29[_0x56e6a1(0x170)][_0x56e6a1(0x145)]?a76_0x4dc526[_0x56e6a1(0x12b)](_0x56e6a1(0x128)+_0x281d29['cookie']['value'][_0x56e6a1(0x15e)]+')'):a76_0x4dc526[_0x56e6a1(0x13a)](_0x56e6a1(0x153));console[_0x56e6a1(0x169)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x14a034+'\x20\x20'+a76_0x4dc526[_0x56e6a1(0x13a)]('('+_0x281d29['cookie']['source']+')'));const _0x2ecb0d=_0x281d29[_0x56e6a1(0x13c)][_0x56e6a1(0x145)]?a76_0x4dc526[_0x56e6a1(0x12b)](_0x56e6a1(0x128)+_0x281d29[_0x56e6a1(0x13c)][_0x56e6a1(0x145)][_0x56e6a1(0x15e)]+')'):a76_0x4dc526['gray'](_0x56e6a1(0x153));console[_0x56e6a1(0x169)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x2ecb0d+'\x20\x20'+a76_0x4dc526[_0x56e6a1(0x13a)]('('+_0x281d29[_0x56e6a1(0x13c)]['source']+')'));}}console[_0x56e6a1(0x169)](),console[_0x56e6a1(0x169)](a76_0x4dc526[_0x56e6a1(0x15b)](_0x56e6a1(0x132))),console[_0x56e6a1(0x169)](a76_0x4dc526[_0x56e6a1(0x13a)]('\x20\x20─'[_0x56e6a1(0x14e)](0x1e))),console[_0x56e6a1(0x169)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x56e6a1(0x169)](_0x56e6a1(0x146)+getUserDomain()),console['log']('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x56e6a1(0x169)](),console['log'](a76_0x4dc526[_0x56e6a1(0x15b)]('\x20\x20Auth')),console[_0x56e6a1(0x169)](a76_0x4dc526['gray'](_0x56e6a1(0x14f)[_0x56e6a1(0x14e)](0x1e)));if(_0x5b726c){const _0x3edd74=await getIsSessionValid();console[_0x56e6a1(0x169)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3edd74?a76_0x4dc526[_0x56e6a1(0x12b)](_0x56e6a1(0x15f)):a76_0x4dc526[_0x56e6a1(0x166)]('✗\x20Expired')));}else console[_0x56e6a1(0x169)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a76_0x4dc526[_0x56e6a1(0x166)](_0x56e6a1(0x15a)));return console[_0x56e6a1(0x169)](),{'ok':!![]};}function a76_0x1670(_0x31b623,_0x412eaf){_0x31b623=_0x31b623-0x124;const _0x5400cf=a76_0x5400();let _0x167082=_0x5400cf[_0x31b623];return _0x167082;}export const doctorDefinition={'service':a76_0x53a5bf(0x131),'command':'check','description':a76_0x53a5bf(0x12f),'risk':a76_0x53a5bf(0x152),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a76_0x79228b=a76_0x5a35;function a76_0x5a35(_0x1a6084,_0x2ee673){_0x1a6084=_0x1a6084-0x67;const _0x3adbaf=a76_0x3adb();let _0x5a3540=_0x3adbaf[_0x1a6084];return _0x5a3540;}(function(_0x23c858,_0x4592e9){const _0x72b743=a76_0x5a35,_0x5d033b=_0x23c858();while(!![]){try{const _0x45ca53=-parseInt(_0x72b743(0xb3))/0x1+-parseInt(_0x72b743(0xb5))/0x2*(parseInt(_0x72b743(0xa1))/0x3)+parseInt(_0x72b743(0x9f))/0x4+parseInt(_0x72b743(0x7f))/0x5*(parseInt(_0x72b743(0xa2))/0x6)+-parseInt(_0x72b743(0x67))/0x7+-parseInt(_0x72b743(0x69))/0x8*(parseInt(_0x72b743(0xa8))/0x9)+-parseInt(_0x72b743(0x90))/0xa*(-parseInt(_0x72b743(0x9e))/0xb);if(_0x45ca53===_0x4592e9)break;else _0x5d033b['push'](_0x5d033b['shift']());}catch(_0x49371d){_0x5d033b['push'](_0x5d033b['shift']());}}}(a76_0x3adb,0x9524c));import a76_0x4230c2 from'chalk';function a76_0x3adb(){const _0x2ddf0d=['(none)','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','132147nAttGl','(set\x20via\x20file,\x20length=','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','padEnd','cookie','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','keys','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','env','✓\x20Valid\x20JSON','750045MwcFJi','gray','25734foCuTN','accessKey','status','empty','missing','check','\x20\x20─','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','1395177HzyRWr','\x20(default)','264JbepKD','\x20\x20explicitAppName:\x20','✗\x20Not\x20logged\x20in','explicitAppName','\x20doctor','✗\x20Invalid\x20JSON','(default:\x20','riskLevel','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','defaultApp','slice','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','appCode','red','apps','source','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','length','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','✓\x20Valid','bold','2325KkjpBf','arch','apiDir','platform','locale','pageSize','unknown','(set,\x20length=','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','(no\x20file)','doctor','appcode','✗\x20Expired','\x20\x20Config\x20Files','40740vFeXNd','(not\x20set)','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','log','⚠\x20Empty\x20(treated\x20as\x20{})','(not\x20found)','\x20\x20API\x20Endpoints','\x20←\x20current','repeat','Global','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','value','7128wYqGIf','353012syCorI','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','267OpaXNX','5958jbsxVM','\x20\x20Config\x20JSON','currentApp','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a76_0x3adb=function(){return _0x2ddf0d;};return a76_0x3adb();}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(_0x35e0d4){const _0x457c20=a76_0x5a35,_0x178f53=GIT_COMMIT!==_0x457c20(0x85)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x457c20(0x73)](0x0,0xa)+')':VERSION,_0x5a9232=buildConfigFromFlags({}),_0x2fd4a5=getCookie();console['log'](),console['log'](a76_0x4230c2[_0x457c20(0x7e)](CLI_BIN_NAME+_0x457c20(0x6d))),console[_0x457c20(0x94)](a76_0x4230c2['gray']('─'[_0x457c20(0x99)](0x32))),console[_0x457c20(0x94)](_0x457c20(0x7a)+_0x178f53),console[_0x457c20(0x94)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process['version']),console[_0x457c20(0x94)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x457c20(0x82)]+'\x20'+process[_0x457c20(0x80)]),console[_0x457c20(0x94)](),console[_0x457c20(0x94)](a76_0x4230c2[_0x457c20(0x7e)](_0x457c20(0x8f))),console['log'](a76_0x4230c2[_0x457c20(0xb4)](_0x457c20(0xbb)['repeat'](0x1e)));const _0x5ab36a=getGlobalConfigPath(),_0x17cadb=getProjectConfigPath();console[_0x457c20(0x94)](_0x457c20(0x71)+(_0x5ab36a||a76_0x4230c2[_0x457c20(0xb4)]('(not\x20found)'))),console[_0x457c20(0x94)](_0x457c20(0x92)+(_0x17cadb||a76_0x4230c2[_0x457c20(0xb4)](_0x457c20(0x96)))),console[_0x457c20(0x94)](),console['log'](a76_0x4230c2[_0x457c20(0x7e)](_0x457c20(0xa3))),console[_0x457c20(0x94)](a76_0x4230c2[_0x457c20(0xb4)](_0x457c20(0xbb)[_0x457c20(0x99)](0x1e)));const _0x404ced=(_0x535520,_0x331f47)=>{const _0x2fcfe5=_0x457c20;if(!_0x331f47){console[_0x2fcfe5(0x94)]('\x20\x20'+_0x535520[_0x2fcfe5(0xac)](0x11)+'\x20'+a76_0x4230c2[_0x2fcfe5(0xb4)](_0x2fcfe5(0x8b)));return;}const _0x2ea37c=inspectCliConfigJsonFile(_0x331f47);if(_0x2ea37c[_0x2fcfe5(0xb7)]==='ok')console[_0x2fcfe5(0x94)]('\x20\x20'+_0x535520[_0x2fcfe5(0xac)](0x11)+'\x20'+a76_0x4230c2[_0x2fcfe5(0xab)](_0x2fcfe5(0xb2)));else{if(_0x2ea37c[_0x2fcfe5(0xb7)]===_0x2fcfe5(0xb8))console['log']('\x20\x20'+_0x535520[_0x2fcfe5(0xac)](0x11)+'\x20'+a76_0x4230c2['yellow'](_0x2fcfe5(0x95)));else _0x2ea37c[_0x2fcfe5(0xb7)]===_0x2fcfe5(0xb9)?console[_0x2fcfe5(0x94)]('\x20\x20'+_0x535520[_0x2fcfe5(0xac)](0x11)+'\x20'+a76_0x4230c2[_0x2fcfe5(0xb4)](_0x2fcfe5(0x8a))):(console['log']('\x20\x20'+_0x535520[_0x2fcfe5(0xac)](0x11)+'\x20'+a76_0x4230c2[_0x2fcfe5(0x76)](_0x2fcfe5(0x6e))),console[_0x2fcfe5(0x94)]('\x20\x20'+''[_0x2fcfe5(0xac)](0x11)+'\x20'+a76_0x4230c2[_0x2fcfe5(0x76)](_0x2ea37c['message'])));}};_0x404ced(_0x457c20(0x9a),_0x5ab36a),_0x404ced('Project',_0x17cadb),console[_0x457c20(0x94)](),console[_0x457c20(0x94)](a76_0x4230c2['bold']('\x20\x20Merged\x20Config')),console[_0x457c20(0x94)](a76_0x4230c2[_0x457c20(0xb4)](_0x457c20(0xbb)['repeat'](0x1e))),console[_0x457c20(0x94)](_0x457c20(0x89)+(_0x5a9232[_0x457c20(0x75)]||a76_0x4230c2[_0x457c20(0x76)](_0x457c20(0x91)))),console[_0x457c20(0x94)](_0x457c20(0xa0)+_0x5a9232[_0x457c20(0xb1)]),console[_0x457c20(0x94)](_0x457c20(0xa5)+_0x5a9232[_0x457c20(0x83)]),console[_0x457c20(0x94)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5a9232[_0x457c20(0x81)]),console[_0x457c20(0x94)](_0x457c20(0x87)+(_0x5a9232[_0x457c20(0x72)]||a76_0x4230c2['gray'](_0x457c20(0xa6)))),console[_0x457c20(0x94)](_0x457c20(0xa7)+(_0x5a9232[_0x457c20(0xa4)]||a76_0x4230c2[_0x457c20(0xb4)](_0x457c20(0xa6)))),console[_0x457c20(0x94)](_0x457c20(0x6a)+(_0x5a9232[_0x457c20(0x6c)]||a76_0x4230c2[_0x457c20(0xb4)](_0x457c20(0xa6)))),console[_0x457c20(0x94)](_0x457c20(0x9c)+(_0x5a9232[_0x457c20(0x93)]||a76_0x4230c2[_0x457c20(0xb4)](_0x457c20(0x6f)+DEFAULT_CONFIG_VALUES[_0x457c20(0x93)]+')'))),console[_0x457c20(0x94)](_0x457c20(0x79)+(_0x5a9232[_0x457c20(0x84)]??a76_0x4230c2['gray']('(default)'))),console[_0x457c20(0x94)](_0x457c20(0xae)+_0x5a9232[_0x457c20(0x70)]),console['log'](_0x457c20(0xb0)+_0x5a9232['verbose']),console[_0x457c20(0x94)](_0x457c20(0xaa)+(_0x5a9232['cookie']?a76_0x4230c2[_0x457c20(0xab)]('(set,\x20length='+_0x5a9232[_0x457c20(0xad)]['length']+')'):_0x2fd4a5?a76_0x4230c2[_0x457c20(0xab)](_0x457c20(0xa9)+_0x2fd4a5[_0x457c20(0x7b)]+')'):a76_0x4230c2[_0x457c20(0xb4)](_0x457c20(0xa6))));const _0x5e0fa9=Object[_0x457c20(0xaf)](_0x5a9232['apps']);if(_0x5e0fa9[_0x457c20(0x7b)]>0x0){console[_0x457c20(0x94)](),console[_0x457c20(0x94)](a76_0x4230c2[_0x457c20(0x7e)]('\x20\x20Apps')),console['log'](a76_0x4230c2[_0x457c20(0xb4)](_0x457c20(0xbb)['repeat'](0x1e)));for(const _0x26791b of _0x5e0fa9){const _0x1f73a1=_0x5a9232[_0x457c20(0x77)][_0x26791b],_0x222b82=_0x26791b===_0x5a9232[_0x457c20(0x72)],_0x41c23d=_0x26791b===_0x5a9232[_0x457c20(0xa4)],_0x482972=_0x41c23d?a76_0x4230c2[_0x457c20(0xab)](_0x457c20(0x98)):'',_0x188f3b=_0x222b82?_0x457c20(0x68):'';console[_0x457c20(0x94)]('\x20\x20'+_0x26791b+_0x188f3b+_0x482972),console['log'](_0x457c20(0xbd)+_0x1f73a1[_0x457c20(0x8d)]);const _0x34d5ce=buildAppDoctorFields(_0x1f73a1,{'env':_0x5a9232[_0x457c20(0xb1)],'apiDir':_0x5a9232['raw'][_0x457c20(0x81)]||DEFAULT_CONFIG_VALUES[_0x457c20(0x81)],'cookie':_0x5a9232['cookie']||_0x2fd4a5||undefined,'accessKey':_0x5a9232[_0x457c20(0xb6)]});console[_0x457c20(0x94)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x34d5ce[_0x457c20(0xb1)][_0x457c20(0x9d)]+'\x20\x20'+a76_0x4230c2[_0x457c20(0xb4)]('('+_0x34d5ce[_0x457c20(0xb1)]['source']+')')),console[_0x457c20(0x94)](_0x457c20(0x9b)+_0x34d5ce[_0x457c20(0x81)][_0x457c20(0x9d)]+'\x20\x20'+a76_0x4230c2[_0x457c20(0xb4)]('('+_0x34d5ce[_0x457c20(0x81)]['source']+')'));const _0x1dd604=_0x34d5ce[_0x457c20(0xad)][_0x457c20(0x9d)]?a76_0x4230c2[_0x457c20(0xab)](_0x457c20(0x86)+_0x34d5ce[_0x457c20(0xad)][_0x457c20(0x9d)][_0x457c20(0x7b)]+')'):a76_0x4230c2[_0x457c20(0xb4)](_0x457c20(0xa6));console['log'](_0x457c20(0x74)+_0x1dd604+'\x20\x20'+a76_0x4230c2['gray']('('+_0x34d5ce[_0x457c20(0xad)][_0x457c20(0x78)]+')'));const _0x31ccce=_0x34d5ce[_0x457c20(0xb6)][_0x457c20(0x9d)]?a76_0x4230c2[_0x457c20(0xab)](_0x457c20(0x86)+_0x34d5ce[_0x457c20(0xb6)][_0x457c20(0x9d)][_0x457c20(0x7b)]+')'):a76_0x4230c2[_0x457c20(0xb4)](_0x457c20(0xa6));console['log'](_0x457c20(0xbc)+_0x31ccce+'\x20\x20'+a76_0x4230c2['gray']('('+_0x34d5ce[_0x457c20(0xb6)][_0x457c20(0x78)]+')'));}}console[_0x457c20(0x94)](),console[_0x457c20(0x94)](a76_0x4230c2[_0x457c20(0x7e)](_0x457c20(0x97))),console[_0x457c20(0x94)](a76_0x4230c2[_0x457c20(0xb4)]('\x20\x20─'['repeat'](0x1e))),console['log']('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x457c20(0x94)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x457c20(0x94)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x457c20(0x94)](),console[_0x457c20(0x94)](a76_0x4230c2[_0x457c20(0x7e)]('\x20\x20Auth')),console[_0x457c20(0x94)](a76_0x4230c2[_0x457c20(0xb4)](_0x457c20(0xbb)['repeat'](0x1e)));if(_0x2fd4a5){const _0x2b8d5a=await getIsSessionValid();console['log'](_0x457c20(0x88)+(_0x2b8d5a?a76_0x4230c2[_0x457c20(0xab)](_0x457c20(0x7d)):a76_0x4230c2[_0x457c20(0x76)](_0x457c20(0x8e))));}else console[_0x457c20(0x94)](_0x457c20(0x88)+a76_0x4230c2[_0x457c20(0x76)](_0x457c20(0x6b)));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a76_0x79228b(0x8c),'command':a76_0x79228b(0xba),'description':a76_0x79228b(0x7c),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- function a89_0xc54f(_0x3d90fd,_0x2130d9){_0x3d90fd=_0x3d90fd-0x1c7;const _0x5918d2=a89_0x5918();let _0xc54f63=_0x5918d2[_0x3d90fd];return _0xc54f63;}const a89_0x2d8e6e=a89_0xc54f;(function(_0x33b616,_0x36b32e){const _0x4e9b5c=a89_0xc54f,_0x223461=_0x33b616();while(!![]){try{const _0x381c34=parseInt(_0x4e9b5c(0x1dc))/0x1+-parseInt(_0x4e9b5c(0x1ca))/0x2+parseInt(_0x4e9b5c(0x1e8))/0x3+parseInt(_0x4e9b5c(0x1ef))/0x4*(-parseInt(_0x4e9b5c(0x1d2))/0x5)+parseInt(_0x4e9b5c(0x1cb))/0x6*(parseInt(_0x4e9b5c(0x1db))/0x7)+parseInt(_0x4e9b5c(0x1d6))/0x8+-parseInt(_0x4e9b5c(0x1df))/0x9*(parseInt(_0x4e9b5c(0x1eb))/0xa);if(_0x381c34===_0x36b32e)break;else _0x223461['push'](_0x223461['shift']());}catch(_0x38bce2){_0x223461['push'](_0x223461['shift']());}}}(a89_0x5918,0xf3f82));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';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function a89_0x5918(){const _0x3d0636=['\x20\x20Config:\x20','2978694SQWGwo','78198IDbtis','boolean','str','bool','Use\x20`','global','production','1316230cxVMdo','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','map','toLocaleString','6885168WFMtOZ','Auto-confirm\x20prompts','\x20\x20Apps:\x20','appCode','message','175bvONBv','1876922mpkKIN','flagMissing','\x20\x20Default:\x20','738351nLiIjC','write','Usage:\x20','nonInteractive','validation','App\x20code\x20to\x20initialize\x20with','\x0a✓\x20Successfully\x20initialized\x20','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','project','2470563jEQVqf','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','检测到旧配置文件,正在自动升级...\x0a','10cyjhtL','Target\x20environment','log','appcode','20HIXZXU','\x20config','env','defaultApp','string','yes'];a89_0x5918=function(){return _0x3d0636;};return a89_0x5918();}function syntheticApp(_0x180910){return{'appCode':_0x180910,'appName':_0x180910};}function writeInitConfig(_0xaf8ab3,_0x1507bb,_0x1c618d){const _0xaccee=a89_0xc54f,_0x1be29e=resolveWriteConfigPath(_0xaf8ab3),_0x3e6611=buildCanonicalProjectConfig({},{'appCodes':_0x1507bb['map'](_0x1d6e04=>_0x1d6e04[_0xaccee(0x1d9)]),'env':_0x1c618d,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0xaccee(0x1d5)]()}});writeConfigFile(_0x1be29e,_0x3e6611);const _0x39c653=_0xaf8ab3==='global'?_0xaccee(0x1d0):_0xaccee(0x1e7);console[_0xaccee(0x1ed)](_0xaccee(0x1e5)+_0x39c653+_0xaccee(0x1f0)),console[_0xaccee(0x1ed)](_0xaccee(0x1d8)+_0x1507bb[_0xaccee(0x1d4)](_0x5e46cb=>_0x5e46cb[_0xaccee(0x1d9)])['join'](',\x20')),console[_0xaccee(0x1ed)](_0xaccee(0x1de)+_0x3e6611[_0xaccee(0x1f2)]),console[_0xaccee(0x1ed)]('\x20\x20Env:\x20'+_0x3e6611['env']),console[_0xaccee(0x1ed)](_0xaccee(0x1c9)+_0x1be29e);}async function runSmartInit(_0x28fd2c){const _0x1e5032=a89_0xc54f,_0x3993f5=process['cwd'](),_0x1f1baa=_0x28fd2c[_0x1e5032(0x1ce)]('global')?'global':_0x1e5032(0x1e7),_0x4bd422=_0x28fd2c[_0x1e5032(0x1cd)]('env')||_0x1e5032(0x1d1),_0x277a1=_0x28fd2c[_0x1e5032(0x1cd)](_0x1e5032(0x1ee))||undefined,_0x331604=_0x28fd2c[_0x1e5032(0x1ce)](_0x1e5032(0x1e7));if(_0x331604){const {initConfig:_0x47c5fb}=await import('../../commands/project/init.js');return _0x47c5fb({'appcode':_0x277a1,'env':_0x4bd422,'autoYes':_0x28fd2c[_0x1e5032(0x1ce)]('yes')});}if(_0x1f1baa===_0x1e5032(0x1e7)){const _0x263d3b=existsSync(resolve(_0x3993f5,NEW_CONFIG_NAME)),_0x56d7b9=LEGACY_CONFIG_NAMES['some'](_0x330762=>existsSync(resolve(_0x3993f5,_0x330762)));if(_0x56d7b9&&!_0x263d3b)return console[_0x1e5032(0x1ed)](_0x1e5032(0x1ea)),upgradeApp(_0x28fd2c['nonInteractive'],{'yes':_0x28fd2c[_0x1e5032(0x1ce)](_0x1e5032(0x1c8))});if(_0x263d3b)throw CliErrors[_0x1e5032(0x1e3)](_0x1e5032(0x1d3),_0x1e5032(0x1cf)+CLI_BIN_NAME+_0x1e5032(0x1e6));}if(_0x277a1){const _0x6e33e3=validateAppcode(_0x277a1);if(!_0x6e33e3['valid'])throw CliErrors[_0x1e5032(0x1e3)](_0x6e33e3[_0x1e5032(0x1da)]);writeInitConfig(_0x1f1baa,[syntheticApp(_0x277a1)],_0x4bd422);return;}if(_0x28fd2c[_0x1e5032(0x1e2)])throw CliErrors[_0x1e5032(0x1dd)](_0x1e5032(0x1ee),_0x1e5032(0x1e1)+CLI_BIN_NAME+_0x1e5032(0x1e9));const _0x436726=getCookie(),_0x5e6b62=await selectMultipleApps(_0x436726),_0x5b4373=_0x5e6b62==='custom'?[syntheticApp(await promptCustomAppcode())]:_0x5e6b62;writeInitConfig(_0x1f1baa,_0x5b4373,_0x4bd422);}const initFlags=[{'name':a89_0x2d8e6e(0x1d0),'type':'boolean','description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a89_0x2d8e6e(0x1f1),'type':a89_0x2d8e6e(0x1c7),'description':a89_0x2d8e6e(0x1ec),'default':a89_0x2d8e6e(0x1d1),'enum':[...RABETBASE_ENV_VALUES]},{'name':'appcode','type':a89_0x2d8e6e(0x1c7),'description':a89_0x2d8e6e(0x1e4)},{'name':a89_0x2d8e6e(0x1e7),'type':'boolean','description':'Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','default':![]},{'name':a89_0x2d8e6e(0x1c8),'type':a89_0x2d8e6e(0x1cc),'description':a89_0x2d8e6e(0x1d7),'default':![]}];export const initDefinitions=[{'service':'init','command':'run','description':'Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','risk':a89_0x2d8e6e(0x1e0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x178293){return await runSmartInit(_0x178293),{'ok':!![]};}}];
1
+ const a89_0xe28590=a89_0x3002;(function(_0x3eebc7,_0x48e0ba){const _0x26f4ff=a89_0x3002,_0xad3192=_0x3eebc7();while(!![]){try{const _0x41e169=-parseInt(_0x26f4ff(0x111))/0x1*(-parseInt(_0x26f4ff(0xef))/0x2)+-parseInt(_0x26f4ff(0xf4))/0x3*(parseInt(_0x26f4ff(0x110))/0x4)+-parseInt(_0x26f4ff(0x11c))/0x5+-parseInt(_0x26f4ff(0x104))/0x6+parseInt(_0x26f4ff(0x103))/0x7*(parseInt(_0x26f4ff(0xf1))/0x8)+-parseInt(_0x26f4ff(0xf7))/0x9+parseInt(_0x26f4ff(0x10c))/0xa*(parseInt(_0x26f4ff(0xec))/0xb);if(_0x41e169===_0x48e0ba)break;else _0xad3192['push'](_0xad3192['shift']());}catch(_0x5f390f){_0xad3192['push'](_0xad3192['shift']());}}}(a89_0x4207,0xd1663));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';function a89_0x4207(){const _0x304116=['appCode','init','检测到旧配置文件,正在自动升级...\x0a','flagMissing','\x0a✓\x20Successfully\x20initialized\x20','Usage:\x20','global','run','899215LeOjCE','8327ilgzFA','cwd','defaultApp','6998xWUFXe','\x20config','1768tbmZAP','message','project','1355313VbDEgm','appcode','production','317340zPnwqy','validation','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','custom','\x20\x20Config:\x20','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','map','\x20\x20Env:\x20','some','write','log','yes','31647jBYrOi','3448770GmgviI','boolean','Use\x20`','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','str','App\x20code\x20to\x20initialize\x20with','join','env','13430LAPRYn','\x20\x20Apps:\x20','bool','toLocaleString','8TdLvGo','153DGsPeF','\x20\x20Default:\x20','nonInteractive'];a89_0x4207=function(){return _0x304116;};return a89_0x4207();}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';function a89_0x3002(_0x5995d7,_0x57bda8){_0x5995d7=_0x5995d7-0xec;const _0x4207cb=a89_0x4207();let _0x300229=_0x4207cb[_0x5995d7];return _0x300229;}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(_0x54d4f9){return{'appCode':_0x54d4f9,'appName':_0x54d4f9};}function writeInitConfig(_0x344175,_0x332ea5,_0x3b4b90){const _0x49ba0b=a89_0x3002,_0x2996ae=resolveWriteConfigPath(_0x344175),_0x174b60=buildCanonicalProjectConfig({},{'appCodes':_0x332ea5['map'](_0x7e2cef=>_0x7e2cef[_0x49ba0b(0x114)]),'env':_0x3b4b90,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x49ba0b(0x10f)]()}});writeConfigFile(_0x2996ae,_0x174b60);const _0x33cb49=_0x344175===_0x49ba0b(0x11a)?'global':_0x49ba0b(0xf3);console[_0x49ba0b(0x101)](_0x49ba0b(0x118)+_0x33cb49+_0x49ba0b(0xf0)),console[_0x49ba0b(0x101)](_0x49ba0b(0x10d)+_0x332ea5[_0x49ba0b(0xfd)](_0x5c9e86=>_0x5c9e86[_0x49ba0b(0x114)])[_0x49ba0b(0x10a)](',\x20')),console[_0x49ba0b(0x101)](_0x49ba0b(0x112)+_0x174b60[_0x49ba0b(0xee)]),console[_0x49ba0b(0x101)](_0x49ba0b(0xfe)+_0x174b60[_0x49ba0b(0x10b)]),console[_0x49ba0b(0x101)](_0x49ba0b(0xfb)+_0x2996ae);}async function runSmartInit(_0x128cff){const _0x3deffd=a89_0x3002,_0x2c6a9c=process[_0x3deffd(0xed)](),_0x153721=_0x128cff[_0x3deffd(0x10e)]('global')?_0x3deffd(0x11a):_0x3deffd(0xf3),_0x39b15e=_0x128cff['str']('env')||_0x3deffd(0xf6),_0x238bbc=_0x128cff[_0x3deffd(0x108)](_0x3deffd(0xf5))||undefined,_0x119a03=_0x128cff[_0x3deffd(0x10e)](_0x3deffd(0xf3));if(_0x119a03){const {initConfig:_0x28d040}=await import('../../commands/project/init.js');return _0x28d040({'appcode':_0x238bbc,'env':_0x39b15e,'autoYes':_0x128cff[_0x3deffd(0x10e)](_0x3deffd(0x102))});}if(_0x153721==='project'){const _0x58421a=existsSync(resolve(_0x2c6a9c,NEW_CONFIG_NAME)),_0x18fc36=LEGACY_CONFIG_NAMES[_0x3deffd(0xff)](_0x12350b=>existsSync(resolve(_0x2c6a9c,_0x12350b)));if(_0x18fc36&&!_0x58421a)return console[_0x3deffd(0x101)](_0x3deffd(0x116)),upgradeApp(_0x128cff[_0x3deffd(0x113)],{'yes':_0x128cff['bool'](_0x3deffd(0x102))});if(_0x58421a)throw CliErrors[_0x3deffd(0xf8)](_0x3deffd(0x107),_0x3deffd(0x106)+CLI_BIN_NAME+_0x3deffd(0xfc));}if(_0x238bbc){const _0x50d5fb=validateAppcode(_0x238bbc);if(!_0x50d5fb['valid'])throw CliErrors[_0x3deffd(0xf8)](_0x50d5fb[_0x3deffd(0xf2)]);writeInitConfig(_0x153721,[syntheticApp(_0x238bbc)],_0x39b15e);return;}if(_0x128cff[_0x3deffd(0x113)])throw CliErrors[_0x3deffd(0x117)](_0x3deffd(0xf5),_0x3deffd(0x119)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x23a2d8=getCookie(),_0x542137=await selectMultipleApps(_0x23a2d8),_0xde281c=_0x542137===_0x3deffd(0xfa)?[syntheticApp(await promptCustomAppcode())]:_0x542137;writeInitConfig(_0x153721,_0xde281c,_0x39b15e);}const initFlags=[{'name':a89_0xe28590(0x11a),'type':'boolean','description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a89_0xe28590(0x10b),'type':'string','description':'Target\x20environment','default':a89_0xe28590(0xf6),'enum':[...RABETBASE_ENV_VALUES]},{'name':'appcode','type':'string','description':a89_0xe28590(0x109)},{'name':a89_0xe28590(0xf3),'type':a89_0xe28590(0x105),'description':'Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','default':![]},{'name':a89_0xe28590(0x102),'type':a89_0xe28590(0x105),'description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':a89_0xe28590(0x115),'command':a89_0xe28590(0x11b),'description':a89_0xe28590(0xf9),'risk':a89_0xe28590(0x100),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x3a4e3c){return await runSmartInit(_0x3a4e3c),{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a114_0x209cb3=a114_0x598f;(function(_0x44446d,_0x5c6630){const _0x19c89b=a114_0x598f,_0x39ff4b=_0x44446d();while(!![]){try{const _0x1e4219=-parseInt(_0x19c89b(0x1a4))/0x1+parseInt(_0x19c89b(0x1ab))/0x2+parseInt(_0x19c89b(0x19a))/0x3+parseInt(_0x19c89b(0x1a1))/0x4+parseInt(_0x19c89b(0x191))/0x5*(parseInt(_0x19c89b(0x199))/0x6)+-parseInt(_0x19c89b(0x1b0))/0x7+-parseInt(_0x19c89b(0x1a2))/0x8;if(_0x1e4219===_0x5c6630)break;else _0x39ff4b['push'](_0x39ff4b['shift']());}catch(_0x430966){_0x39ff4b['push'](_0x39ff4b['shift']());}}}(a114_0x3602,0x8d75f));import{logger}from'../../utils/logger.js';function printLogs(_0x2532eb){const _0x51be5b=a114_0x598f;if(_0x2532eb[_0x51be5b(0x196)]===0x0){console['log'](_0x51be5b(0x1a0));return;}console[_0x51be5b(0x1b2)](_0x51be5b(0x1af)),_0x2532eb[_0x51be5b(0x198)]((_0x5db1c2,_0x1eca63)=>{const _0x35675b=_0x51be5b,_0x14d94d=new Date(_0x5db1c2['timestamp'])['toLocaleString'](_0x35675b(0x1a7)),_0x2e7e2a=_0x5db1c2[_0x35675b(0x1ae)]===_0x35675b(0x19b)?'√':_0x5db1c2[_0x35675b(0x1ae)]===_0x35675b(0x1a6)?'×':_0x5db1c2['level']===_0x35675b(0x1aa)?'!':'i';console[_0x35675b(0x1b2)](_0x1eca63+0x1+'.\x20'+_0x2e7e2a+'\x20['+_0x5db1c2[_0x35675b(0x1a5)]+']\x20'+_0x5db1c2[_0x35675b(0x1a8)]),console['log'](_0x35675b(0x1a9)+_0x14d94d),_0x5db1c2['duration']&&console[_0x35675b(0x1b2)](_0x35675b(0x1ac)+_0x5db1c2[_0x35675b(0x1b1)]+'ms'),_0x5db1c2[_0x35675b(0x19f)]&&Object[_0x35675b(0x19e)](_0x5db1c2['details'])[_0x35675b(0x196)]>0x0&&console[_0x35675b(0x1b2)](_0x35675b(0x19d)+JSON[_0x35675b(0x1a3)](_0x5db1c2[_0x35675b(0x19f)],null,0x2)),console['log']('');});}function a114_0x598f(_0x278130,_0x48cc29){_0x278130=_0x278130-0x191;const _0x3602c3=a114_0x3602();let _0x598fd2=_0x3602c3[_0x278130];return _0x598fd2;}function a114_0x3602(){const _0x3857da=['\x20\x20\x20Time:\x20','warn','1797850vhnskx','\x20\x20\x20Duration:\x20','clearLogs','level','*\x20Lovrabet\x20CLI\x20logs:\x0a','1241086ZaHCHw','duration','log','5OiHXmD','readLogs','logs','*\x20Logs\x20cleared','read','length','clear','forEach','5221806fnkWsh','490806TpBBNB','success','Clear\x20command\x20history\x20logs','\x20\x20\x20Details:\x20','keys','details','*\x20No\x20logs\x20found','4314916nkdUcx','12755176KloYzQ','stringify','660439RKikmP','command','error','en-US','message'];a114_0x3602=function(){return _0x3857da;};return a114_0x3602();}export const logsDefinitions=[{'service':a114_0x209cb3(0x193),'command':'show','description':'View\x20command\x20history\x20logs','risk':a114_0x209cb3(0x195),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x4de583){const _0x58b049=a114_0x209cb3;return printLogs(logger[_0x58b049(0x192)]()),{'ok':!![]};}},{'service':a114_0x209cb3(0x193),'command':a114_0x209cb3(0x197),'description':a114_0x209cb3(0x19c),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1562fc){const _0x593b47=a114_0x209cb3;return logger[_0x593b47(0x1ad)](),console['log'](_0x593b47(0x194)),{'ok':!![]};}}];
1
+ const a114_0x49fd5f=a114_0x2b5b;function a114_0x3017(){const _0x13e4f9=['6514123ZDwLSD','Clear\x20command\x20history\x20logs','success','toLocaleString','447984RoAXcs','stringify','level','warn','2292471FQRXIV','log','timestamp','forEach','View\x20command\x20history\x20logs','880duhMZh','length','*\x20Lovrabet\x20CLI\x20logs:\x0a','2133135oRQfvU','show','details','command','\x20\x20\x20Duration:\x20','1077656WdCuou','readLogs','error','40mIhsbt','read','\x20\x20\x20Time:\x20','*\x20Logs\x20cleared','write','2329QMnjhH','914IXwzpt','duration','en-US','logs','clearLogs','20495TzXPZS','*\x20No\x20logs\x20found'];a114_0x3017=function(){return _0x13e4f9;};return a114_0x3017();}function a114_0x2b5b(_0x5b1889,_0x2dd5fe){_0x5b1889=_0x5b1889-0x7a;const _0x3017a3=a114_0x3017();let _0x2b5bf8=_0x3017a3[_0x5b1889];return _0x2b5bf8;}(function(_0x3aaae9,_0x296210){const _0x4c3e3b=a114_0x2b5b,_0x51322e=_0x3aaae9();while(!![]){try{const _0x5c0105=-parseInt(_0x4c3e3b(0x97))/0x1*(parseInt(_0x4c3e3b(0x98))/0x2)+parseInt(_0x4c3e3b(0x8a))/0x3+parseInt(_0x4c3e3b(0x87))/0x4*(parseInt(_0x4c3e3b(0x9d))/0x5)+parseInt(_0x4c3e3b(0x7e))/0x6+parseInt(_0x4c3e3b(0x7a))/0x7+parseInt(_0x4c3e3b(0x8f))/0x8+parseInt(_0x4c3e3b(0x82))/0x9*(-parseInt(_0x4c3e3b(0x92))/0xa);if(_0x5c0105===_0x296210)break;else _0x51322e['push'](_0x51322e['shift']());}catch(_0x209345){_0x51322e['push'](_0x51322e['shift']());}}}(a114_0x3017,0xa3774));import{logger}from'../../utils/logger.js';function printLogs(_0x42224c){const _0x409839=a114_0x2b5b;if(_0x42224c['length']===0x0){console['log'](_0x409839(0x9e));return;}console[_0x409839(0x83)](_0x409839(0x89)),_0x42224c[_0x409839(0x85)]((_0x168735,_0x1a0315)=>{const _0xe56847=_0x409839,_0x29889c=new Date(_0x168735[_0xe56847(0x84)])[_0xe56847(0x7d)](_0xe56847(0x9a)),_0xbe6421=_0x168735['level']===_0xe56847(0x7c)?'√':_0x168735[_0xe56847(0x80)]===_0xe56847(0x91)?'×':_0x168735['level']===_0xe56847(0x81)?'!':'i';console[_0xe56847(0x83)](_0x1a0315+0x1+'.\x20'+_0xbe6421+'\x20['+_0x168735[_0xe56847(0x8d)]+']\x20'+_0x168735['message']),console[_0xe56847(0x83)](_0xe56847(0x94)+_0x29889c),_0x168735[_0xe56847(0x99)]&&console[_0xe56847(0x83)](_0xe56847(0x8e)+_0x168735[_0xe56847(0x99)]+'ms'),_0x168735[_0xe56847(0x8c)]&&Object['keys'](_0x168735[_0xe56847(0x8c)])[_0xe56847(0x88)]>0x0&&console[_0xe56847(0x83)]('\x20\x20\x20Details:\x20'+JSON[_0xe56847(0x7f)](_0x168735['details'],null,0x2)),console[_0xe56847(0x83)]('');});}export const logsDefinitions=[{'service':a114_0x49fd5f(0x9b),'command':a114_0x49fd5f(0x8b),'description':a114_0x49fd5f(0x86),'risk':a114_0x49fd5f(0x93),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x4503b8){const _0x296f1d=a114_0x49fd5f;return printLogs(logger[_0x296f1d(0x90)]()),{'ok':!![]};}},{'service':a114_0x49fd5f(0x9b),'command':'clear','description':a114_0x49fd5f(0x7b),'risk':a114_0x49fd5f(0x96),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2c9e00){const _0x2c6120=a114_0x49fd5f;return logger[_0x2c6120(0x9c)](),console[_0x2c6120(0x83)](_0x2c6120(0x95)),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x5090eb,_0x538ac0){const _0x14699b=a132_0x2e27,_0x23fb1f=_0x5090eb();while(!![]){try{const _0x571aad=parseInt(_0x14699b(0x108))/0x1*(parseInt(_0x14699b(0x10b))/0x2)+parseInt(_0x14699b(0x10f))/0x3*(parseInt(_0x14699b(0x110))/0x4)+parseInt(_0x14699b(0x109))/0x5+-parseInt(_0x14699b(0x10a))/0x6*(-parseInt(_0x14699b(0x10c))/0x7)+parseInt(_0x14699b(0x10d))/0x8*(parseInt(_0x14699b(0x10e))/0x9)+parseInt(_0x14699b(0x105))/0xa*(-parseInt(_0x14699b(0x106))/0xb)+-parseInt(_0x14699b(0x107))/0xc;if(_0x571aad===_0x538ac0)break;else _0x23fb1f['push'](_0x23fb1f['shift']());}catch(_0x5e5b79){_0x23fb1f['push'](_0x23fb1f['shift']());}}}(a132_0x526a,0xd5508));function a132_0x2e27(_0x5e204d,_0x58cff6){_0x5e204d=_0x5e204d-0x105;const _0x526a6a=a132_0x526a();let _0x2e2788=_0x526a6a[_0x5e204d];return _0x2e2788;}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuSync,menuUpdate];function a132_0x526a(){const _0x50429c=['76576lVlhtG','612tySoXD','5538jlNOEY','1544htbTMs','26090mLkfOe','5203BEmOLK','18103056PuHcck','4lcXONc','7343730iCiczC','2515026NnYlvl','182506psJhgO','7rtbuhH'];a132_0x526a=function(){return _0x50429c;};return a132_0x526a();}
1
+ (function(_0x5ad380,_0x46d4ad){const _0x5dd205=a132_0x50f8,_0x51f33c=_0x5ad380();while(!![]){try{const _0x260a63=-parseInt(_0x5dd205(0x176))/0x1+-parseInt(_0x5dd205(0x170))/0x2*(parseInt(_0x5dd205(0x16f))/0x3)+parseInt(_0x5dd205(0x174))/0x4*(-parseInt(_0x5dd205(0x175))/0x5)+-parseInt(_0x5dd205(0x173))/0x6+parseInt(_0x5dd205(0x172))/0x7+parseInt(_0x5dd205(0x171))/0x8+parseInt(_0x5dd205(0x177))/0x9;if(_0x260a63===_0x46d4ad)break;else _0x51f33c['push'](_0x51f33c['shift']());}catch(_0x36c2ef){_0x51f33c['push'](_0x51f33c['shift']());}}}(a132_0xf6e8,0x2f6b9));import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuSync,menuUpdate];function a132_0x50f8(_0x33adf4,_0x2ca6b4){_0x33adf4=_0x33adf4-0x16f;const _0xf6e86c=a132_0xf6e8();let _0x50f8ac=_0xf6e86c[_0x33adf4];return _0x50f8ac;}function a132_0xf6e8(){const _0xce554d=['365105tiReZx','64851qlVhvM','4764087tAzawc','593772pFviNn','2gANEmL','263560AFjRWM','2181816VyOnDq','749304fvmteW','16fLsymv'];a132_0xf6e8=function(){return _0xce554d;};return a132_0xf6e8();}
@@ -1 +1 @@
1
- (function(_0xffb45d,_0x5690f6){const _0x3e7c29=a123_0xe871,_0x213894=_0xffb45d();while(!![]){try{const _0x51bfd7=parseInt(_0x3e7c29(0x7b))/0x1+-parseInt(_0x3e7c29(0x79))/0x2+-parseInt(_0x3e7c29(0x90))/0x3*(-parseInt(_0x3e7c29(0x8c))/0x4)+parseInt(_0x3e7c29(0x84))/0x5*(parseInt(_0x3e7c29(0x7f))/0x6)+-parseInt(_0x3e7c29(0x88))/0x7*(parseInt(_0x3e7c29(0x8a))/0x8)+parseInt(_0x3e7c29(0x87))/0x9+-parseInt(_0x3e7c29(0x78))/0xa*(-parseInt(_0x3e7c29(0x83))/0xb);if(_0x51bfd7===_0x5690f6)break;else _0x213894['push'](_0x213894['shift']());}catch(_0x50bdc6){_0x213894['push'](_0x213894['shift']());}}}(a123_0x3363,0x299ce));function strWidth(_0x48d536){let _0x129faa=0x0;for(const _0x2cacda of _0x48d536){_0x129faa+=/[\u4e00-\u9fa5]/['test'](_0x2cacda)?0x2:0x1;}return _0x129faa;}function padRight(_0x52261d,_0x48cf0b){const _0x59c618=a123_0xe871,_0x9c0db7=strWidth(_0x52261d);return _0x52261d+'\x20'[_0x59c618(0x8b)](Math[_0x59c618(0x75)](0x0,_0x48cf0b-_0x9c0db7));}export function renderCompareTable(_0x6f71c5,_0x38498b={}){const _0x3b8358=a123_0xe871;if(_0x6f71c5[_0x3b8358(0x89)]===0x0)return'';const _0x457bb4=_0x38498b[_0x3b8358(0x82)]??!![],_0xb12322=Math[_0x3b8358(0x75)](0x1e,..._0x6f71c5[_0x3b8358(0x7a)](_0x15e9aa=>strWidth(_0x15e9aa[_0x3b8358(0x81)]))),_0x2d051a=0x4,_0x5a4302=[],_0x52cbb9='\x20\x20'+padRight('Menu\x20Name',_0xb12322),_0x329d1f=padRight('Local',_0x2d051a),_0x267533=_0x457bb4?'\x20\x20'+padRight(_0x3b8358(0x92),_0x2d051a):'';_0x5a4302['push'](_0x52cbb9+'\x20\x20'+_0x329d1f+(_0x457bb4?_0x267533:'')),_0x5a4302[_0x3b8358(0x8e)]('\x20\x20'+'─'[_0x3b8358(0x8b)](_0xb12322)+'\x20\x20'+'─'[_0x3b8358(0x8b)](_0x2d051a)+(_0x457bb4?'\x20\x20'+'─'['repeat'](_0x2d051a):''));for(const _0x27ef2f of _0x6f71c5){const _0x1f778b=padRight(_0x27ef2f[_0x3b8358(0x81)],_0xb12322),_0x54a778=_0x27ef2f[_0x3b8358(0x7d)]?'✓':'✗',_0x3624ce=padRight(_0x54a778,_0x2d051a);let _0x2705e2='\x20\x20'+_0x1f778b+'\x20\x20'+_0x3624ce;if(_0x457bb4){const _0x5c2fdc=_0x27ef2f[_0x3b8358(0x7e)]?'✓':'✗';_0x2705e2+='\x20\x20'+padRight(_0x5c2fdc,_0x2d051a);}_0x5a4302['push'](_0x2705e2);}return _0x5a4302[_0x3b8358(0x74)]('\x0a');}function a123_0x3363(){const _0x4e0adc=['push','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','3EeQPWW','\x20\x20\x20\x20CSS:\x20','Platform','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','join','max','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','(unchanged)','1177390dXOhRM','614590ClaDwo','map','60176QpKVAF','path','local','online','426sxZNTt','\x20\x20Affected\x20menus:\x20','label','showOnline','11XmnOfX','7900lXAWCL','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','\x20\x20\x20\x20JS:\x20\x20','1857213CmMqZI','1452122EFtVnq','length','8ovqgGM','repeat','754940xLKqLt','\x20\x20\x20\x20•\x20'];a123_0x3363=function(){return _0x4e0adc;};return a123_0x3363();}export function renderSyncSummary(_0x5ef7ed,_0x53b473){const _0xac2f31=a123_0xe871;if(_0x5ef7ed[_0xac2f31(0x89)]===0x0)return _0x53b473?_0xac2f31(0x76):'\x20\x20No\x20pages\x20to\x20sync.';const _0x47a2e9=['\x20\x20'+_0x5ef7ed['length']+_0xac2f31(0x73)];for(const _0x3535ec of _0x5ef7ed){_0x47a2e9['push'](_0xac2f31(0x8d)+_0x3535ec[_0xac2f31(0x81)]+'\x20('+_0x3535ec[_0xac2f31(0x7c)]+')');}return _0x47a2e9[_0xac2f31(0x74)]('\x0a');}function a123_0xe871(_0x6dca8f,_0x48bd48){_0x6dca8f=_0x6dca8f-0x73;const _0x3363d4=a123_0x3363();let _0xe871f9=_0x3363d4[_0x6dca8f];return _0xe871f9;}export function renderUpdateSummary(_0x10b91b,_0x14ed66){const _0x31e20e=a123_0xe871;if(_0x10b91b[_0x31e20e(0x89)]===0x0)return _0x31e20e(0x8f);const _0xa16ac=['\x20\x20'+_0x10b91b[_0x31e20e(0x89)]+_0x31e20e(0x85),_0x31e20e(0x86)+(_0x14ed66[0x0]??_0x31e20e(0x77)),_0x31e20e(0x91)+(_0x14ed66[0x1]??_0x31e20e(0x77)),'',_0x31e20e(0x80)+_0x10b91b[_0x31e20e(0x74)](',\x20')];return _0xa16ac[_0x31e20e(0x74)]('\x0a');}
1
+ function a123_0x4d6a(_0x5803fa,_0x53addc){_0x5803fa=_0x5803fa-0x176;const _0x385b42=a123_0x385b();let _0x4d6aaa=_0x385b42[_0x5803fa];return _0x4d6aaa;}(function(_0x9268ec,_0x2a3a3e){const _0x1c6733=a123_0x4d6a,_0xfb025d=_0x9268ec();while(!![]){try{const _0x1fdc30=-parseInt(_0x1c6733(0x176))/0x1+parseInt(_0x1c6733(0x18a))/0x2+parseInt(_0x1c6733(0x18c))/0x3+-parseInt(_0x1c6733(0x177))/0x4+-parseInt(_0x1c6733(0x18d))/0x5*(-parseInt(_0x1c6733(0x18e))/0x6)+parseInt(_0x1c6733(0x18b))/0x7*(parseInt(_0x1c6733(0x191))/0x8)+-parseInt(_0x1c6733(0x17d))/0x9;if(_0x1fdc30===_0x2a3a3e)break;else _0xfb025d['push'](_0xfb025d['shift']());}catch(_0x10cc76){_0xfb025d['push'](_0xfb025d['shift']());}}}(a123_0x385b,0x7f5dd));function strWidth(_0x1ad213){const _0x4d9c7f=a123_0x4d6a;let _0x4c010f=0x0;for(const _0x13fd62 of _0x1ad213){_0x4c010f+=/[\u4e00-\u9fa5]/[_0x4d9c7f(0x17b)](_0x13fd62)?0x2:0x1;}return _0x4c010f;}function padRight(_0x33cac0,_0xa18c7c){const _0x50229a=strWidth(_0x33cac0);return _0x33cac0+'\x20'['repeat'](Math['max'](0x0,_0xa18c7c-_0x50229a));}export function renderCompareTable(_0x40f7b8,_0x21b8d9={}){const _0x375b57=a123_0x4d6a;if(_0x40f7b8['length']===0x0)return'';const _0x246e0a=_0x21b8d9[_0x375b57(0x190)]??!![],_0x5e5d6e=Math[_0x375b57(0x192)](0x1e,..._0x40f7b8[_0x375b57(0x18f)](_0x49af7a=>strWidth(_0x49af7a[_0x375b57(0x184)]))),_0x356c3a=0x4,_0x30d9c8=[],_0x1e1e3a='\x20\x20'+padRight(_0x375b57(0x188),_0x5e5d6e),_0x1b1919=padRight('Local',_0x356c3a),_0x472167=_0x246e0a?'\x20\x20'+padRight(_0x375b57(0x17f),_0x356c3a):'';_0x30d9c8[_0x375b57(0x17c)](_0x1e1e3a+'\x20\x20'+_0x1b1919+(_0x246e0a?_0x472167:'')),_0x30d9c8[_0x375b57(0x17c)]('\x20\x20'+'─'[_0x375b57(0x181)](_0x5e5d6e)+'\x20\x20'+'─'['repeat'](_0x356c3a)+(_0x246e0a?'\x20\x20'+'─'[_0x375b57(0x181)](_0x356c3a):''));for(const _0x421c3e of _0x40f7b8){const _0x4672e6=padRight(_0x421c3e[_0x375b57(0x184)],_0x5e5d6e),_0x47044d=_0x421c3e[_0x375b57(0x178)]?'✓':'✗',_0x138dff=padRight(_0x47044d,_0x356c3a);let _0x7b07d1='\x20\x20'+_0x4672e6+'\x20\x20'+_0x138dff;if(_0x246e0a){const _0x460184=_0x421c3e['online']?'✓':'✗';_0x7b07d1+='\x20\x20'+padRight(_0x460184,_0x356c3a);}_0x30d9c8['push'](_0x7b07d1);}return _0x30d9c8['join']('\x0a');}function a123_0x385b(){const _0x12b392=['\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','repeat','(unchanged)','join','label','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','path','\x20\x20No\x20pages\x20to\x20sync.','Menu\x20Name','\x20\x20\x20\x20JS:\x20\x20','819178tpmpJy','19103uKfQjz','1710315QmuYgO','4248055UlUybp','6NYdRgu','map','showOnline','16MvRjfG','max','656430KqCneh','2259656lmQHsx','local','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','\x20\x20\x20\x20•\x20','test','push','825534QEjLuG','\x20\x20Affected\x20menus:\x20','Platform'];a123_0x385b=function(){return _0x12b392;};return a123_0x385b();}export function renderSyncSummary(_0x396ae8,_0xcc5a84){const _0x5f48a5=a123_0x4d6a;if(_0x396ae8['length']===0x0)return _0xcc5a84?_0x5f48a5(0x179):_0x5f48a5(0x187);const _0x1a9632=['\x20\x20'+_0x396ae8['length']+_0x5f48a5(0x180)];for(const _0x3e6b47 of _0x396ae8){_0x1a9632['push'](_0x5f48a5(0x17a)+_0x3e6b47['label']+'\x20('+_0x3e6b47[_0x5f48a5(0x186)]+')');}return _0x1a9632[_0x5f48a5(0x183)]('\x0a');}export function renderUpdateSummary(_0x3cbbb6,_0x2f9b53){const _0x29503e=a123_0x4d6a;if(_0x3cbbb6['length']===0x0)return _0x29503e(0x185);const _0xa5ce7e=['\x20\x20'+_0x3cbbb6['length']+'\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:',_0x29503e(0x189)+(_0x2f9b53[0x0]??_0x29503e(0x182)),'\x20\x20\x20\x20CSS:\x20'+(_0x2f9b53[0x1]??_0x29503e(0x182)),'',_0x29503e(0x17e)+_0x3cbbb6[_0x29503e(0x183)](',\x20')];return _0xa5ce7e[_0x29503e(0x183)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x18adfc,_0x22533e){var _0x24f872=a126_0x1a0a,_0x30c7cd=_0x18adfc();while(!![]){try{var _0x5c17aa=parseInt(_0x24f872(0x6b))/0x1*(-parseInt(_0x24f872(0x66))/0x2)+parseInt(_0x24f872(0x6a))/0x3*(-parseInt(_0x24f872(0x67))/0x4)+parseInt(_0x24f872(0x69))/0x5+-parseInt(_0x24f872(0x68))/0x6*(-parseInt(_0x24f872(0x65))/0x7)+parseInt(_0x24f872(0x6d))/0x8+parseInt(_0x24f872(0x6c))/0x9+parseInt(_0x24f872(0x6e))/0xa;if(_0x5c17aa===_0x22533e)break;else _0x30c7cd['push'](_0x30c7cd['shift']());}catch(_0xbfdf26){_0x30c7cd['push'](_0x30c7cd['shift']());}}}(a126_0x2703,0x5408e));function a126_0x2703(){var _0x4b463c=['244xFKGgQ','30948jOZqRJ','949130UHyEbC','17757uLVfbV','3YjEzGG','1573254ZCAUwY','1171208WYuOHW','5539800aMIJOa','189ZVckmg','332676nqxYsA'];a126_0x2703=function(){return _0x4b463c;};return a126_0x2703();}export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';function a126_0x1a0a(_0x713ac6,_0x17c802){_0x713ac6=_0x713ac6-0x65;var _0x2703f2=a126_0x2703();var _0x1a0a7c=_0x2703f2[_0x713ac6];return _0x1a0a7c;}export*from'../../../commands/menu/shared/update-core.js';
1
+ (function(_0x52f945,_0x2db6e2){var _0x2d5f2f=a126_0x275e,_0x4bbaec=_0x52f945();while(!![]){try{var _0x393ae4=-parseInt(_0x2d5f2f(0x18b))/0x1+-parseInt(_0x2d5f2f(0x18a))/0x2*(parseInt(_0x2d5f2f(0x18c))/0x3)+parseInt(_0x2d5f2f(0x18f))/0x4+parseInt(_0x2d5f2f(0x18e))/0x5+-parseInt(_0x2d5f2f(0x187))/0x6+parseInt(_0x2d5f2f(0x18d))/0x7*(parseInt(_0x2d5f2f(0x189))/0x8)+parseInt(_0x2d5f2f(0x188))/0x9;if(_0x393ae4===_0x2db6e2)break;else _0x4bbaec['push'](_0x4bbaec['shift']());}catch(_0x5bdec4){_0x4bbaec['push'](_0x4bbaec['shift']());}}}(a126_0x48ea,0x5ffbf));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';function a126_0x275e(_0x30b501,_0x5e246a){_0x30b501=_0x30b501-0x187;var _0x48ea26=a126_0x48ea();var _0x275ee6=_0x48ea26[_0x30b501];return _0x275ee6;}export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';function a126_0x48ea(){var _0x285a5f=['2599608xFKvti','2027958IOVkdm','5813316RhpxYA','8KfLgIP','2IZHTEr','82503kVtHSy','1912557wSPTXJ','108227bsToSU','699395sbUFKr'];a126_0x48ea=function(){return _0x285a5f;};return a126_0x48ea();}export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
@@ -1 +1 @@
1
- (function(_0x517c2b,_0x586faf){const _0x20a7ef=a127_0x5656,_0x22f553=_0x517c2b();while(!![]){try{const _0x1e1318=-parseInt(_0x20a7ef(0x188))/0x1+parseInt(_0x20a7ef(0x16d))/0x2+parseInt(_0x20a7ef(0x167))/0x3+parseInt(_0x20a7ef(0x181))/0x4+parseInt(_0x20a7ef(0x18f))/0x5*(-parseInt(_0x20a7ef(0x174))/0x6)+-parseInt(_0x20a7ef(0x192))/0x7*(parseInt(_0x20a7ef(0x18a))/0x8)+-parseInt(_0x20a7ef(0x184))/0x9*(-parseInt(_0x20a7ef(0x17d))/0xa);if(_0x1e1318===_0x586faf)break;else _0x22f553['push'](_0x22f553['shift']());}catch(_0x59582e){_0x22f553['push'](_0x22f553['shift']());}}}(a127_0x5900,0x6b79e));function a127_0x5900(){const _0x537d62=['\x20\x20Checking\x20JS\x20URL\x20reachability...','name','1471614oYtXPf','fail','\x20\x20CSS\x20URL:','gray','has','\x20\x20Checking\x20CSS\x20URL\x20reachability...','error','46206pezphU','cancelled','label','red','test','map','JS\x20URL\x20checked','includes','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','24090RugCOt','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','path','\x20\x20JS\x20URL:','1488080fENJWn','[already\x20on\x20platform]','length','2223Qhemdb','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','CSS\x20URL\x20checked','677392GdOWPd','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','1112uBHfam','green','catch','No\x20menus\x20selected.','start','200GfPkfp','succeed','[new]','39697FZtkat','No\x20local\x20pages\x20found.','1533219NaNhzr','Cancelled.','trim','stdin'];a127_0x5900=function(){return _0x537d62;};return a127_0x5900();}import a127_0xa0dfc2 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a127_0x46236a from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x3a3502){const _0x25dea1=a127_0x5656;return _0x3a3502[_0x25dea1(0x18c)](_0x1adea5=>{const _0x1c3375=_0x25dea1;if(_0x1adea5?.[_0x1c3375(0x16c)]==='ExitPromptError')throw CliErrors['cancelled'](_0x1c3375(0x168));throw _0x1adea5;});}export function startSpinner(_0x21dd26){const _0x2a993c=a127_0x5656;return a127_0x46236a({'text':_0x21dd26,'color':'cyan'})[_0x2a993c(0x18e)]();}export function stopSpinner(_0x5a9397,_0x5eece,_0x1d9050){const _0x17219c=a127_0x5656;_0x1d9050?_0x5a9397[_0x17219c(0x190)](_0x5eece):_0x5a9397[_0x17219c(0x16e)](_0x5eece);}export async function askConfirm(_0x221536){return onCancel(confirm({'message':_0x221536,'theme':{'prefix':''}}));}export async function askJsUrl(_0x297d1e){const _0x2fbd7b=a127_0x5656;while(!![]){const _0x42a128=await onCancel(input({'message':_0x2fbd7b(0x180),'default':_0x297d1e,'theme':{'prefix':''}}));if(_0x42a128[_0x2fbd7b(0x169)]()==='')throw CliErrors[_0x2fbd7b(0x175)](_0x2fbd7b(0x168));if(!/^https:\/\/.+\.js(\?.*)?$/['test'](_0x42a128[_0x2fbd7b(0x169)]())){console['error'](a127_0xa0dfc2[_0x2fbd7b(0x177)](_0x2fbd7b(0x17e)));continue;}const _0x5b2434=startSpinner(_0x2fbd7b(0x16b));try{const _0x428ed3=await isUrlReachable(_0x42a128['trim']());stopSpinner(_0x5b2434,_0x2fbd7b(0x17a),_0x428ed3);if(!_0x428ed3){console[_0x2fbd7b(0x173)](a127_0xa0dfc2[_0x2fbd7b(0x177)](_0x2fbd7b(0x185)));continue;}return _0x42a128[_0x2fbd7b(0x169)]();}catch(_0x297e09){stopSpinner(_0x5b2434,'JS\x20URL\x20check\x20failed',![]);throw _0x297e09;}}}export async function askCssUrl(_0x1d5c8f){const _0x3c06e0=a127_0x5656;while(!![]){const _0x2c0d8b=await onCancel(input({'message':_0x3c06e0(0x16f),'default':_0x1d5c8f,'theme':{'prefix':''}}));if(_0x2c0d8b[_0x3c06e0(0x169)]()==='')throw CliErrors[_0x3c06e0(0x175)](_0x3c06e0(0x168));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x3c06e0(0x178)](_0x2c0d8b[_0x3c06e0(0x169)]())){console[_0x3c06e0(0x173)](a127_0xa0dfc2['red'](_0x3c06e0(0x189)));continue;}const _0x44d730=startSpinner(_0x3c06e0(0x172));try{const _0x35c1ed=await isUrlReachable(_0x2c0d8b[_0x3c06e0(0x169)]());stopSpinner(_0x44d730,_0x3c06e0(0x187),_0x35c1ed);if(!_0x35c1ed){console[_0x3c06e0(0x173)](a127_0xa0dfc2[_0x3c06e0(0x177)](_0x3c06e0(0x186)));continue;}return _0x2c0d8b[_0x3c06e0(0x169)]();}catch(_0xb68e4f){stopSpinner(_0x44d730,'CSS\x20URL\x20check\x20failed',![]);throw _0xb68e4f;}}}export async function selectPages(_0x41133a,_0x1f9ff7,_0x74f848){const _0x56fabb=a127_0x5656,_0x2e3fe1=_0x41133a[_0x56fabb(0x179)](_0x524d4d=>({'name':_0x524d4d[_0x56fabb(0x176)]+'\x20\x20'+(_0x1f9ff7['has'](_0x524d4d[_0x56fabb(0x17f)])?a127_0xa0dfc2[_0x56fabb(0x170)](_0x56fabb(0x182)):a127_0xa0dfc2[_0x56fabb(0x18b)](_0x56fabb(0x191))),'value':_0x524d4d[_0x56fabb(0x176)],'checked':_0x74f848?_0x74f848[_0x56fabb(0x17b)](_0x524d4d[_0x56fabb(0x176)]):!_0x1f9ff7[_0x56fabb(0x171)](_0x524d4d[_0x56fabb(0x17f)])}));if(_0x2e3fe1[_0x56fabb(0x183)]===0x0)throw new Error(_0x56fabb(0x193));const _0xeca0a=await onCancel(checkbox({'message':_0x56fabb(0x17c),'choices':_0x2e3fe1,'loop':![],'theme':{'prefix':''}}));if(_0xeca0a[_0x56fabb(0x183)]===0x0)throw new Error(_0x56fabb(0x18d));return _0x41133a['filter'](_0x292606=>_0xeca0a[_0x56fabb(0x17b)](_0x292606['label']));}export function isInteractive(){const _0x11c5c1=a127_0x5656;return process[_0x11c5c1(0x16a)]['isTTY']===!![];}function a127_0x5656(_0x1368f4,_0x448493){_0x1368f4=_0x1368f4-0x167;const _0x5900a5=a127_0x5900();let _0x565683=_0x5900a5[_0x1368f4];return _0x565683;}export function requireInteractive(){if(!isInteractive())throw new Error('This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20'+'Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.');}
1
+ (function(_0x18e57e,_0x55edcd){const _0xe0cf4f=a127_0x2494,_0x378890=_0x18e57e();while(!![]){try{const _0x244b65=parseInt(_0xe0cf4f(0x14d))/0x1+-parseInt(_0xe0cf4f(0x166))/0x2*(-parseInt(_0xe0cf4f(0x155))/0x3)+-parseInt(_0xe0cf4f(0x15c))/0x4*(parseInt(_0xe0cf4f(0x164))/0x5)+parseInt(_0xe0cf4f(0x151))/0x6+-parseInt(_0xe0cf4f(0x15d))/0x7+parseInt(_0xe0cf4f(0x16b))/0x8*(-parseInt(_0xe0cf4f(0x14b))/0x9)+parseInt(_0xe0cf4f(0x14c))/0xa;if(_0x244b65===_0x55edcd)break;else _0x378890['push'](_0x378890['shift']());}catch(_0x567847){_0x378890['push'](_0x378890['shift']());}}}(a127_0x1862,0x8c609));import a127_0xed40de from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a127_0x3659aa from'ora';function a127_0x2494(_0x106d7f,_0xbb8f32){_0x106d7f=_0x106d7f-0x145;const _0x186247=a127_0x1862();let _0x24945a=_0x186247[_0x106d7f];return _0x24945a;}import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x7e222e){const _0x20d29e=a127_0x2494;return _0x7e222e[_0x20d29e(0x153)](_0x511fc0=>{const _0x26565a=_0x20d29e;if(_0x511fc0?.[_0x26565a(0x162)]===_0x26565a(0x16e))throw CliErrors[_0x26565a(0x16a)]('Cancelled.');throw _0x511fc0;});}export function startSpinner(_0x4a583d){const _0x568fb0=a127_0x2494;return a127_0x3659aa({'text':_0x4a583d,'color':_0x568fb0(0x15a)})[_0x568fb0(0x168)]();}export function stopSpinner(_0x5133d6,_0xc7fb27,_0x1519f0){const _0x2644ba=a127_0x2494;_0x1519f0?_0x5133d6[_0x2644ba(0x147)](_0xc7fb27):_0x5133d6[_0x2644ba(0x156)](_0xc7fb27);}export async function askConfirm(_0x4365bc){return onCancel(confirm({'message':_0x4365bc,'theme':{'prefix':''}}));}export async function askJsUrl(_0x3be489){const _0x3f1e0e=a127_0x2494;while(!![]){const _0x6a522b=await onCancel(input({'message':'\x20\x20JS\x20URL:','default':_0x3be489,'theme':{'prefix':''}}));if(_0x6a522b['trim']()==='')throw CliErrors[_0x3f1e0e(0x16a)](_0x3f1e0e(0x157));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x3f1e0e(0x16f)](_0x6a522b[_0x3f1e0e(0x160)]())){console[_0x3f1e0e(0x158)](a127_0xed40de[_0x3f1e0e(0x149)](_0x3f1e0e(0x15f)));continue;}const _0x191106=startSpinner('\x20\x20Checking\x20JS\x20URL\x20reachability...');try{const _0x1ae37e=await isUrlReachable(_0x6a522b[_0x3f1e0e(0x160)]());stopSpinner(_0x191106,_0x3f1e0e(0x148),_0x1ae37e);if(!_0x1ae37e){console['error'](a127_0xed40de['red'](_0x3f1e0e(0x154)));continue;}return _0x6a522b['trim']();}catch(_0x3659a9){stopSpinner(_0x191106,_0x3f1e0e(0x15b),![]);throw _0x3659a9;}}}export async function askCssUrl(_0x2ae325){const _0x2d28ea=a127_0x2494;while(!![]){const _0xe647f6=await onCancel(input({'message':'\x20\x20CSS\x20URL:','default':_0x2ae325,'theme':{'prefix':''}}));if(_0xe647f6[_0x2d28ea(0x160)]()==='')throw CliErrors['cancelled'](_0x2d28ea(0x157));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x2d28ea(0x16f)](_0xe647f6[_0x2d28ea(0x160)]())){console[_0x2d28ea(0x158)](a127_0xed40de[_0x2d28ea(0x149)]('\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'));continue;}const _0x331918=startSpinner(_0x2d28ea(0x165));try{const _0x6d8c2a=await isUrlReachable(_0xe647f6[_0x2d28ea(0x160)]());stopSpinner(_0x331918,_0x2d28ea(0x161),_0x6d8c2a);if(!_0x6d8c2a){console['error'](a127_0xed40de['red']('\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable'));continue;}return _0xe647f6[_0x2d28ea(0x160)]();}catch(_0x5d4281){stopSpinner(_0x331918,_0x2d28ea(0x152),![]);throw _0x5d4281;}}}function a127_0x1862(){const _0x2f92e3=['\x20\x20Checking\x20CSS\x20URL\x20reachability...','137330WAehFo','has','start','No\x20local\x20pages\x20found.','cancelled','2240776CWURXe','map','includes','ExitPromptError','test','[new]','isTTY','succeed','JS\x20URL\x20checked','red','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','9SDjdCK','15918170GmBPcn','505313QlLoKy','green','path','length','2091252rgRjhy','CSS\x20URL\x20check\x20failed','catch','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','3oZtUqt','fail','Cancelled.','error','gray','cyan','JS\x20URL\x20check\x20failed','4477468BzLjOn','3779216eQIblh','label','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','trim','CSS\x20URL\x20checked','name','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','5jLvdmn'];a127_0x1862=function(){return _0x2f92e3;};return a127_0x1862();}export async function selectPages(_0x390399,_0x3b0ada,_0x519f6f){const _0x1bb246=a127_0x2494,_0xf5236c=_0x390399[_0x1bb246(0x16c)](_0x5cf147=>({'name':_0x5cf147[_0x1bb246(0x15e)]+'\x20\x20'+(_0x3b0ada[_0x1bb246(0x167)](_0x5cf147[_0x1bb246(0x14f)])?a127_0xed40de[_0x1bb246(0x159)]('[already\x20on\x20platform]'):a127_0xed40de[_0x1bb246(0x14e)](_0x1bb246(0x145))),'value':_0x5cf147['label'],'checked':_0x519f6f?_0x519f6f[_0x1bb246(0x16d)](_0x5cf147[_0x1bb246(0x15e)]):!_0x3b0ada['has'](_0x5cf147[_0x1bb246(0x14f)])}));if(_0xf5236c['length']===0x0)throw new Error(_0x1bb246(0x169));const _0x273431=await onCancel(checkbox({'message':'\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','choices':_0xf5236c,'loop':![],'theme':{'prefix':''}}));if(_0x273431[_0x1bb246(0x150)]===0x0)throw new Error('No\x20menus\x20selected.');return _0x390399['filter'](_0x4bd835=>_0x273431[_0x1bb246(0x16d)](_0x4bd835[_0x1bb246(0x15e)]));}export function isInteractive(){const _0x51f55f=a127_0x2494;return process['stdin'][_0x51f55f(0x146)]===!![];}export function requireInteractive(){const _0x189754=a127_0x2494;if(!isInteractive())throw new Error(_0x189754(0x14a)+_0x189754(0x163));}