You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: areas/deploy/src/AzureMcp.Deploy/Commands/Architecture/DiagramGenerateCommand.cs
+2-6Lines changed: 2 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -81,10 +81,6 @@ public override Task<CommandResponse> ExecuteAsync(CommandContext context, Parse
81
81
{
82
82
thrownewInvalidOperationException("Failed to generate architecture diagram. The chart content is empty.");
83
83
}
84
-
varencodedDiagram=EncodeMermaid.GetEncodedMermaidChart(chart).Replace("+","-").Replace("/","_");// replace '+' with '-' and "/" with "_" for URL safety and consistency with mermaid.live URL encoding
@@ -99,8 +95,8 @@ public override Task<CommandResponse> ExecuteAsync(CommandContext context, Parse
99
95
?string.Join(", ",usedServiceTypes)
100
96
:null;
101
97
102
-
context.Response.Message=$"Help the user open up this URI to preview their app topology using tool open_simple_browser: {mermaidUrl}\n"
103
-
+"Ask user if the topology is expected, if not, you should call this tool with the user's updated instructions. "
98
+
context.Response.Message=$"Here is the user's mermaid diagram. Please write this into .azure/architecture.copilot.md. Make changes if these do not fulfill requirements:\n ```mermaid\n{chart}\n```\n"
99
+
+"Ask user if the topology is expected, if not, you should directly update the generated diagram with the user's updated instructions. Remind the user to install a Mermaid preview extension to be able to render the diagram. "
104
100
+"Please inform the user that here are the supported hosting technologies: "
0 commit comments