Repository: gnh1201/welsonjs
Pull request #234: Update 2025-04-10
Author: login: gnh1201
Created: 2025-04-09T17:18:20Z | Merged: 2025-04-09T17:29:10Z

## Summary by Sourcery

Update WelsonJS Launcher with Microsoft Copilot integration, Azure deployment option, and minor UI improvements

New Features:
- Add Microsoft Copilot integration in the code editor
- Introduce Azure Marketplace deployment option for WelsonJS environment

Enhancements:
- Refactor editor UI to streamline buttons and group functionality
- Update README with additional sponsor and contribution links

Documentation:
- Update project documentation with new Azure deployment link
- Add new screenshot showcasing Monaco Editor
- Update sponsor and contributor information

Chores:
- Add Azure AI resource tool for handling AI service requests
- Modify resource server configuration to support new features

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- **Documentation**
  - Corrected grammatical error in the README regarding the WelsonJS Launcher specifications.

- **New Features**
  - Replaced the "Generate" button with an improved "Copilot" button in the editor to enhance AI-assisted text generation.
  - Integrated Azure AI service capabilities for advanced request handling.
  - Introduced a new method for starting the resource server with enhanced configurability.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->


Diff:
diff --git a/README.md b/README.md
index a329e7b5..645f791c 100644
--- a/README.md
+++ b/README.md
@@ -62,7 +62,7 @@ WelsonJS is tailored for developers who need a reliable, lightweight JavaScript
 ## Specifications
 - Built-in transpilers: [TypeScript](https://www.typescriptlang.org/), [Rescript](https://rescript-lang.org/), [CoffeeScript 2](https://coffeescript.org/), [LiveScript](https://livescript.net/)
 - **Ready to use on Windows machine immediately. No require additional software installation.**
-- **WelsonJS Launcher**: Manage an instances (Like a container), User-defined variable editor, [Microsoft Monaco Editor](https://github.com/microsoft/monaco-editor) (Pre-embedded rich code editor), [Microsoft Copilot](https://copilot.microsoft.com) on the code editor.
+- **WelsonJS Launcher**: Manage instances (Like a container), User-defined variable editor, [Microsoft Monaco Editor](https://github.com/microsoft/monaco-editor) (Pre-embedded rich code editor), [Microsoft Copilot](https://copilot.microsoft.com) on the code editor.
 - ES5(ECMAScript 5), XML, JSON, YAML compatibility: [core-js](https://github.com/zloirock/core-js), [JSON2.js](https://github.com/douglascrockford/JSON-js), [js-yaml](https://github.com/nodeca/js-yaml)
 - HTML5, CSS3 compatibility: [html5shiv](https://github.com/aFarkas/html5shiv), [jquery-html5-placeholder-shim](https://github.com/parndt/jquery-html5-placeholder-shim), [Respond](https://github.com/scottjehl/Respond), [selectivizr](https://github.com/keithclark/selectivizr), [ExplorerCanvas](https://github.com/arv/ExplorerCanvas), [Modernizr](https://github.com/Modernizr/Modernizr)
 - Classical CSS Frameworks: [cascadeframework](https://github.com/jslegers/cascadeframework), [golden-layout](https://github.com/golden-layout/golden-layout)
diff --git a/WelsonJS.Toolkit/WelsonJS.Launcher/MainForm.cs b/WelsonJS.Toolkit/WelsonJS.Launcher/MainForm.cs
index 11e21e5d..dcb3ce2d 100644
--- a/WelsonJS.Toolkit/WelsonJS.Launcher/MainForm.cs
+++ b/WelsonJS.Toolkit/WelsonJS.Launcher/MainForm.cs
@@ -242,10 +242,7 @@ private void globalSettingsToolStripMenuItem_Click(object sender, EventArgs e)
 
         private void startCodeEditorToolStripMenuItem_Click(object sender, EventArgs e)
         {
-            if (Program.resourceServer == null)
-            {
-                Program.resourceServer = new ResourceServer(Program.GetAppConfig("ResourceServerPrefix"), "editor.html");
-            }
+            Program.StartResourceServer();
 
             if (!Program.resourceServer.IsRunning())
             {
diff --git a/WelsonJS.Toolkit/WelsonJS.Launcher/Program.cs b/WelsonJS.Toolkit/WelsonJS.Launcher/Program.cs
index aebad66c..cb51fcad 100644
--- a/WelsonJS.Toolkit/WelsonJS.Launcher/Program.cs
+++ b/WelsonJS.Toolkit/WelsonJS.Launcher/Program.cs
@@ -138,13 +138,24 @@ public static string GetWorkingDirectory(string instanceId, bool followSubDirect
             return workingDirectory;
         }
 
+        public static void StartResourceServer()
+        {
+            lock(typeof(Program))
+            {
+                if (resourceServer == null)
+                {
+                    resourceServer = new ResourceServer(GetAppConfig("ResourceServerPrefix"), "editor.html");
+                }
+            }
+        }
         public static void OpenWebBrowser(string url)
         {
             string userDataDir = Path.Combine(GetAppDataPath(), "EdgeUserProfile");
-            string remoteAllowOrigins = "http://localhost:3000";
+            string remoteAllowOrigins = GetAppConfig("ResourceServerPrefix");
+            int remoteDebuggingPort = new Uri(GetAppConfig("DevToolsPrefix")).Port;
             string[] arguments = {
                 $"\"{url}\"",
-                "--remote-debugging-port=9222",
+                $"--remote-debugging-port={remoteDebuggingPort}",
                 $"--remote-allow-origins={remoteAllowOrigins}",  // for security reason
                 $"--user-data-dir=\"{userDataDir}\""
             };
diff --git a/WelsonJS.Toolkit/WelsonJS.Launcher/ResourceServer.cs b/WelsonJS.Toolkit/WelsonJS.Launcher/ResourceServer.cs
index 02f3e0ba..c2181771 100644
--- a/WelsonJS.Toolkit/WelsonJS.Launcher/ResourceServer.cs
+++ b/WelsonJS.Toolkit/WelsonJS.Launcher/ResourceServer.cs
@@ -2,6 +2,7 @@
 using System.Collections.Generic;
 using System.Diagnostics;
 using System.IO;
+using System.IO.Compression;
 using System.Net;
 using System.Net.Http;
 using System.Reflection;
diff --git a/WelsonJS.Toolkit/WelsonJS.Launcher/ResourceTools/AzureAi.cs b/WelsonJS.Toolkit/WelsonJS.Launcher/ResourceTools/AzureAi.cs
new file mode 100644
index 00000000..147e78ad
--- /dev/null
+++ b/WelsonJS.Toolkit/WelsonJS.Launcher/ResourceTools/AzureAi.cs
@@ -0,0 +1,139 @@
+﻿using System;
+using System.IO;
+using System.Net;
+using System.Net.Http;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace WelsonJS.Launcher.ResourceTools
+{
+    public class AzureAi : IResourceTool
+    {
+        private ResourceServer Server;
+        private const string Prefix = "azure-ai/";
+        private const int ChunkSize = 4096;
+        private readonly string AzureAiServiceUrl;
+        private readonly string AzureAiServiceApiKey;
+
+        public AzureAi(ResourceServer server)
+        {
+            Server = server;
+
+            AzureAiServiceUrl = Program.GetAppConfig("AzureAiServiceUrl");
+            AzureAiServiceApiKey = Program.GetAppConfig("AzureAiServiceApiKey");
+        }
+
+        public bool CanHandle(string path)
+        {
+            return path.StartsWith(Prefix, StringComparison.OrdinalIgnoreCase);
+        }
+
+        public async Task HandleAsync(HttpListenerContext context, string path)
+        {
+            string apiKey = AzureAiServiceApiKey;
+            if (string.IsNullOrEmpty(apiKey))
+            {
+                WriteError(context, "Missing the API key.", HttpStatusCode.BadRequest);
+                return;
+            }
+
+            string requestBody = ReadRequestBody(context);
+            bool isStreaming = ContainsSequentialKeywords(requestBody, new[] { "\"stream\"", "true" }, 30);
+
+            try
+            {
+                using (var response = await SendAzureRequestAsync(apiKey, requestBody, isStreaming))
+                {
+                    await ForwardResponseAsync(context, response, isStreaming);
+                }
+            }
+            catch (HttpRequestException ex)
+            {
+                WriteError(context, "Request error: " + ex.Message, HttpStatusCode.BadGateway);
+            }
+        }
+
+        private string ReadRequestBody(HttpListenerContext context)
+        {
+            using (var reader = new StreamReader(context.Request.InputStream, context.Request.ContentEncoding))
+            {
+                return reader.ReadToEnd();
+            }
+        }
+
+        private async Task<HttpResponseMessage> SendAzureRequestAsync(string apiKey, string requestBody, bool isStreaming)
+        {
+            using (var client = new HttpClient())
+            {
+                var requestMessage = new HttpRequestMessage(HttpMethod.Post, AzureAiServiceUrl);
+                requestMessage.Headers.Add("api-key", apiKey);
+                requestMessage.Content = new StringContent(requestBody, Encoding.UTF8, "application/json");
+
+                var completionOption = isStreaming
+                    ? HttpCompletionOption.ResponseHeadersRead
+                    : HttpCompletionOption.ResponseContentRead;
+
+                return await client.SendAsync(requestMessage, completionOption);
+            }
+        }
+
+        private async Task ForwardResponseAsync(HttpListenerContext context, HttpResponseMessage response, bool isStreaming)
+        {
+            context.Response.StatusCode = (int)response.StatusCode;
+            context.Response.ContentType = response.Content.Headers.ContentType?.ToString() ?? "application/json";
+
+            using (var responseStream = await response.Content.ReadAsStreamAsync())
+            {
+                if (isStreaming)
+                {
+                    context.Response.SendChunked = true;
+                    context.Response.Headers.Add("Transfer-Encoding", "chunked");
+                    context.Response.Headers.Add("Cache-Control", "no-cache");
+
+                    byte[] buffer = new byte[ChunkSize];
+                    int bytesRead;
+                    while ((bytesRead = await responseStream.ReadAsync(buffer, 0, buffer.Length)) > 0)
+                    {
+                        await context.Response.OutputStream.WriteAsync(buffer, 0, bytesRead);
+                        context.Response.OutputStream.Flush();
+                    }
+                }
+                else
+                {
+                    await responseStream.CopyToAsync(context.Response.OutputStream);
+                }
+            }
+        }
+
+        private void WriteError(HttpListenerContext context, string message, HttpStatusCode statusCode)
+        {
+            context.Response.StatusCode = (int)statusCode;
+            using (var writer = new StreamWriter(context.Response.OutputStream, Encoding.UTF8))
+            {
+                writer.Write(message);
+            }
+        }
+
+        public static bool ContainsSequentialKeywords(string input, string[] keywords, int maxDistance)
+        {
+            if (input == null || keywords == null || keywords.Length < 2)
+                return false;
+
+            int position = 0;
+
+            for (int i = 0; i < keywords.Length; i++)
+            {
+                int index = input.IndexOf(keywords[i], position, StringComparison.OrdinalIgnoreCase);
+                if (index < 0)
+                    return false;
+
+                if (i > 0 && (index - position) > maxDistance)
+                    return false;
+
+                position = index + keywords[i].Length;
+            }
+
+            return true;
+        }
+    }
+}
\ No newline at end of file
diff --git a/WelsonJS.Toolkit/WelsonJS.Launcher/WelsonJS.Launcher.csproj b/WelsonJS.Toolkit/WelsonJS.Launcher/WelsonJS.Launcher.csproj
index df1cc5c6..731acee8 100644
--- a/WelsonJS.Toolkit/WelsonJS.Launcher/WelsonJS.Launcher.csproj
+++ b/WelsonJS.Toolkit/WelsonJS.Launcher/WelsonJS.Launcher.csproj
@@ -74,6 +74,7 @@
   </ItemGroup>
   <ItemGroup>
     <Compile Include="IResourceTool.cs" />
+    <Compile Include="ResourceTools\AzureAi.cs" />
     <Compile Include="ResourceTools\Config.cs" />
     <Compile Include="ResourceTools\Completion.cs" />
     <Compile Include="ResourceTools\DevTools.cs" />
@@ -165,6 +166,5 @@
   <ItemGroup>
     <EmbeddedResource Include="editor.html" />
   </ItemGroup>
-  <ItemGroup />
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
 </Project>
\ No newline at end of file
diff --git a/WelsonJS.Toolkit/WelsonJS.Launcher/editor.html b/WelsonJS.Toolkit/WelsonJS.Launcher/editor.html
index 53a1b502..3e493096 100644
--- a/WelsonJS.Toolkit/WelsonJS.Launcher/editor.html
+++ b/WelsonJS.Toolkit/WelsonJS.Launcher/editor.html
@@ -50,16 +50,14 @@
                         <span class="icon mif-floppy-disks"></span>
                         <span class="caption">Save File</span>
                     </button>
-                    <button id="btnGenerate" class="ribbon-button">
+                    <span class="title">File</span>
+                </div>
+                <div class="group">
+                    <button id="btnCopilot" class="ribbon-button">
                         <span class="icon mif-rocket"></span>
-                        <span class="caption">Generate</span>
+                        <span class="caption">Copilot</span>
                     </button>
-                    <button id="btnSponsor" class="ribbon-button">
-                        <span class="icon mif-heart"></span>
-                        <span class="caption">Sponsor</span>
-                    </button>
-
-                    <span class="title">Common</span>
+                    <span class="title">Generative</span>
                 </div>
                 <div class="group">
                     <button id="btnWhois" class="ribbon-button">
@@ -70,8 +68,7 @@
                         <span class="icon mif-earth"></span>
                         <span class="caption">DNS</span>
                     </button>
-
-                    <span class="title">Network tools</span>
+                    <span class="title">Network</span>
                 </div>
             </div>
         </div>
@@ -240,18 +237,14 @@
             document.body.removeChild(a);
         };
 
-        document.getElementById("btnSponsor").onclick = function () {
-            navigate('https://github.com/sponsors/gnh1201');
-        };
-
-        document.getElementById("btnGenerate").onclick = function () {
+        document.getElementById("btnCopilot").onclick = function () {
             const promptMessage = prompt("Enter a prompt message:", '');
             if (!promptMessage || promptMessage.trim() == '') {
                 alert("A prompt message is required.");
                 return;
             }
 
-            appendTextToEditor(`\n//${promptMessage}... Thinking with Generative AI...`);
+            appendTextToEditor(`\n//${promptMessage}... Generating text with Copilot...`);
 
             (async function () {
                 const targetWsUrl = await getTargetByUrl('copilot.microsoft.com');


Reviews:
user: login: sourcery-ai[bot]
body: Hey @gnh1201 - I've reviewed your changes - here's some feedback:

**Overall Comments**:
- Consider adding a comment explaining why the resource server is being started in `MainForm.cs`.
- The `AzureAi` class introduces a new dependency; ensure that the necessary configuration values (`AzureAiServiceUrl`, `AzureAiServiceApiKey`) are clearly documented and easily configurable.

<details>
<summary>Here's what I looked at during the review</summary>

- 🟡 **General issues**: 2 issues found
- 🟢 **Security**: all looks good
- 🟢 **Testing**: all looks good
- 🟡 **Complexity**: 1 issue found
- 🟢 **Documentation**: all looks good
</details>

***

<details>
<summary>Sourcery is free for open source - if you like our reviews please consider sharing them ✨</summary>

- [X](https://twitter.com/intent/tweet?text=I%20just%20got%20an%20instant%20code%20review%20from%20%40SourceryAI%2C%20and%20it%20was%20brilliant%21%20It%27s%20free%20for%20open%20source%20and%20has%20a%20free%20trial%20for%20private%20code.%20Check%20it%20out%20https%3A//sourcery.ai)
- [Mastodon](https://mastodon.social/share?text=I%20just%20got%20an%20instant%20code%20review%20from%20%40SourceryAI%2C%20and%20it%20was%20brilliant%21%20It%27s%20free%20for%20open%20source%20and%20has%20a%20free%20trial%20for%20private%20code.%20Check%20it%20out%20https%3A//sourcery.ai)
- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https://sourcery.ai)
- [Facebook](https://www.facebook.com/sharer/sharer.php?u=https://sourcery.ai)

</details>

<sub>
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
</sub>
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-04-09T17:19:29Z
user: login: coderabbitai[bot]
body: **Actionable comments posted: 3**

<details>
<summary>🧹 Nitpick comments (3)</summary><blockquote>

<details>
<summary>README.md (1)</summary><blockquote>

`65-65`: **Grammar issue in WelsonJS Launcher description**

The phrase "Manage an instances" contains a grammatical error with article/noun agreement.

```diff
- - **WelsonJS Launcher**: Manage an instances (Like a container), User-defined variable editor, [Microsoft Monaco Editor](https://github.com/microsoft/monaco-editor) (Pre-embedded rich code editor), [Microsoft Copilot](https://copilot.microsoft.com) on the code editor.
+ - **WelsonJS Launcher**: Manage instances (Like a container), User-defined variable editor, [Microsoft Monaco Editor](https://github.com/microsoft/monaco-editor) (Pre-embedded rich code editor), [Microsoft Copilot](https://copilot.microsoft.com) on the code editor.
```

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 LanguageTool</summary>

[grammar] ~65-~65: The plural noun “instances” cannot be used with the article “an”. Did you mean “an instance” or “instances”?
Context: ...tion.** - **WelsonJS Launcher**: Manage an instances (Like a container), User-defined variab...

(A_NNS)

</details>
<details>
<summary>🪛 markdownlint-cli2 (0.17.2)</summary>

65-65: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)

</details>

</details>

</blockquote></details>
<details>
<summary>WelsonJS.Toolkit/WelsonJS.Launcher/editor.html (1)</summary><blockquote>

`247-247`: **Potential user input injection into the code editor.**
Appending unescaped user input (`promptMessage`) into the editor preview might not pose a security risk if the content is strictly handled as code text. However, if there's any chance that the editor's output might be reinterpreted as HTML or passed to other contexts, consider sanitizing or escaping special characters.

</blockquote></details>
<details>
<summary>WelsonJS.Toolkit/WelsonJS.Launcher/ResourceTools/AzureAi.cs (1)</summary><blockquote>

`56-62`: **Reading request body in one go.**
If you're expecting large request bodies from AI usage, consider stream-based approaches or size limits. The current implementation reads the entire request into memory.

</blockquote></details>

</blockquote></details>

<details>
<summary>📜 Review details</summary>

**Configuration used: CodeRabbit UI**
**Review profile: CHILL**
**Plan: Pro**

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between 6e3eb5c1d31c9ad0d24272037cfaa19aa09089fb and f84f2195c3bc3bba67e0a5a23159b444e6e1348f.

</details>

<details>
<summary>📒 Files selected for processing (7)</summary>

* `README.md` (3 hunks)
* `WelsonJS.Toolkit/WelsonJS.Launcher/MainForm.cs` (1 hunks)
* `WelsonJS.Toolkit/WelsonJS.Launcher/Program.cs` (1 hunks)
* `WelsonJS.Toolkit/WelsonJS.Launcher/ResourceServer.cs` (1 hunks)
* `WelsonJS.Toolkit/WelsonJS.Launcher/ResourceTools/AzureAi.cs` (1 hunks)
* `WelsonJS.Toolkit/WelsonJS.Launcher/WelsonJS.Launcher.csproj` (1 hunks)
* `WelsonJS.Toolkit/WelsonJS.Launcher/editor.html` (3 hunks)

</details>

<details>
<summary>🧰 Additional context used</summary>

<details>
<summary>🧬 Code Graph Analysis (2)</summary>

<details>
<summary>WelsonJS.Toolkit/WelsonJS.Launcher/MainForm.cs (1)</summary><blockquote>

<details>
<summary>WelsonJS.Toolkit/WelsonJS.Launcher/Program.cs (2)</summary>

* `Program` (11-185)
* `StartResourceServer` (141-147)

</details>

</blockquote></details>
<details>
<summary>WelsonJS.Toolkit/WelsonJS.Launcher/ResourceTools/AzureAi.cs (1)</summary><blockquote>

<details>
<summary>WelsonJS.Toolkit/WelsonJS.Launcher/Program.cs (2)</summary>

* `Program` (11-185)
* `GetAppConfig` (169-184)

</details>

</blockquote></details>

</details><details>
<summary>🪛 LanguageTool</summary>

<details>
<summary>README.md</summary>

[uncategorized] ~23-~23: Loose punctuation mark.
Context: ...https://github.com/sponsors/gnh1201)  * :kissing_cat: [Download Latest WelsonJS L...

(UNLIKELY_OPENING_PUNCTUATION)

---

[style] ~26-~26: Consider using “incompatible” to avoid wordiness.
Context: ...3.0. However, if the GPL 3.0 license is not compatible with Microsoft products, it is subject ...

(NOT_ABLE_PREMIUM)

---

[grammar] ~65-~65: The plural noun “instances” cannot be used with the article “an”. Did you mean “an instance” or “instances”?
Context: ...tion.** - **WelsonJS Launcher**: Manage an instances (Like a container), User-defined variab...

(A_NNS)

</details>

</details>
<details>
<summary>🪛 markdownlint-cli2 (0.17.2)</summary>

<details>
<summary>README.md</summary>

29-29: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)

---

30-30: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)

---

31-31: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)

---

32-32: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)

---

65-65: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)

---

143-143: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)

---

144-144: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)

---

145-145: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)

</details>

</details>

</details>

<details>
<summary>🔇 Additional comments (18)</summary><blockquote>

<details>
<summary>README.md (4)</summary>

`23-24`: **Updated documentation with better formatting**

The bullet points are now properly formatted using asterisks, which is more consistent with Markdown best practices. The addition of the Azure environment launch link is valuable for users.

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 LanguageTool</summary>

[uncategorized] ~23-~23: Loose punctuation mark.
Context: ...https://github.com/sponsors/gnh1201)  * :kissing_cat: [Download Latest WelsonJS L...

(UNLIKELY_OPENING_PUNCTUATION)

</details>

</details>

---

`29-32`: **Sponsor information updated with more precise descriptions**

The sponsor information has been updated with more detail, including Korean names for organizations. These additions improve clarity and provide better context for international users.

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 markdownlint-cli2 (0.17.2)</summary>

29-29: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)

---

30-30: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)

---

31-31: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)

---

32-32: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)

</details>

</details>

---

`140-141`: **Added new screenshot showing Monaco Editor integration**

The addition of a new screenshot showcasing the Microsoft Monaco Editor in WelsonJS Launcher provides valuable visual reference for users to understand the code editing capabilities.

---

`145-145`: **Added acknowledgment for special contributor**

The addition of a new special contributor acknowledgment is a positive change that properly credits contributors to the project.

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 markdownlint-cli2 (0.17.2)</summary>

145-145: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)

</details>

</details>

</details>
<details>
<summary>WelsonJS.Toolkit/WelsonJS.Launcher/ResourceServer.cs (1)</summary>

`5-5`: **Added System.IO.Compression namespace**

The addition of the System.IO.Compression namespace import prepares the class for potential future compression-related functionality. This is a forward-thinking addition that doesn't impact current functionality.

</details>
<details>
<summary>WelsonJS.Toolkit/WelsonJS.Launcher/MainForm.cs (1)</summary>

`245-245`: **Improved code structure with centralized resource server initialization**

Replacing the inline server initialization with a call to `Program.StartResourceServer()` improves code maintainability by centralizing the resource server initialization logic. This refactoring follows the Single Responsibility Principle and makes the codebase more maintainable.

</details>
<details>
<summary>WelsonJS.Toolkit/WelsonJS.Launcher/WelsonJS.Launcher.csproj (1)</summary>

`77-77`: **Added new Azure AI integration**

The addition of `AzureAi.cs` to the project expands functionality by incorporating Azure AI capabilities. This enhancement aligns with the project's goal of supporting modern development tools and AI integration.


Could you provide more information about the implementation of AzureAi.cs? It would be helpful to understand the functionality it provides and how it integrates with the existing codebase.

</details>
<details>
<summary>WelsonJS.Toolkit/WelsonJS.Launcher/editor.html (4)</summary>

`53-54`: **No immediate concerns on label update.**
These lines simply rename or re-label the UI group. The usage is straightforward, and the structure remains valid.

---

`55-60`: **Potential mismatch with the AI-generated summary regarding the group title.**
The summary indicates the group title should be changed to "Common", but the code uses "Generative". This appears to conflict with the stated objective in the summary.  



> Likely an incorrect or invalid review comment.

---

`71-71`: **Minor UI label update.**
Changing the title to "Network" is straightforward. No structural or functional issues noted.

---

`240-240`: **Onclick handler reassigned to Copilot button.**
This correctly replaces the old "Generate" button functionality with the new "Copilot" approach. Implementation is consistent with the rest of the code.

</details>
<details>
<summary>WelsonJS.Toolkit/WelsonJS.Launcher/ResourceTools/AzureAi.cs (7)</summary>

`18-24`: **Handle missing service URL or key gracefully.**
Currently, if `AzureAiServiceUrl` is null/empty, `SendAzureRequestAsync` might fail in unexpected ways. A more explicit error or fallback might be considered.

---

`26-29`: **Simple path prefix check looks good.**
This straightforward prefix-based router check is clear, and there's no immediate concern.

---

`31-54`: **Robust error handling for missing API key.**
The logic properly checks for a null or empty key and returns a 400. The try/catch block ensures a 502 is returned for upstream request failures. Well done.

---

`64-78`: **HTTP client usage is correct and safe.**
The code nicely sets up headers, content, and returns the response. The streaming vs. non-streaming logic is clear.

---

`80-106`: **Efficient streaming logic.**
Your chunked transfer logic (with flushing) properly handles streaming responses. This is a good approach for real-time AI responses.

---

`108-115`: **Error writer is concise and effective.**
Returning a simple message ensures that the caller sees relevant information, with minimal overhead.

---

`117-137`: **Keyword detection function is clear.**
The sequential keyword check is well-structured. If more robust pattern matching is required in future, a regex approach might be considered, but for now it's acceptable.

</details>

</blockquote></details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-04-09T17:23:51Z

Review comments:
diff_hunk: @@ -0,0 +1,139 @@
+﻿using System;
+using System.IO;
+using System.Net;
+using System.Net.Http;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace WelsonJS.Launcher.ResourceTools
+{
+    public class AzureAi : IResourceTool
+    {
+        private ResourceServer Server;
+        private const string Prefix = "azure-ai/";
+        private const int ChunkSize = 4096;
+        private readonly string AzureAiServiceUrl;
+        private readonly string AzureAiServiceApiKey;
+
+        public AzureAi(ResourceServer server)
+        {
+            Server = server;
+
+            AzureAiServiceUrl = Program.GetAppConfig("AzureAiServiceUrl");
+            AzureAiServiceApiKey = Program.GetAppConfig("AzureAiServiceApiKey");
+        }
+
+        public bool CanHandle(string path)
+        {
+            return path.StartsWith(Prefix, StringComparison.OrdinalIgnoreCase);
+        }
+
+        public async Task HandleAsync(HttpListenerContext context, string path)
+        {
+            string apiKey = AzureAiServiceApiKey;
+            if (string.IsNullOrEmpty(apiKey))
+            {
+                WriteError(context, "Missing the API key.", HttpStatusCode.BadRequest);
+                return;
+            }
+
+            string requestBody = ReadRequestBody(context);
+            bool isStreaming = ContainsSequentialKeywords(requestBody, new[] { "\"stream\"", "true" }, 30);
+
+            try
+            {
+                using (var response = await SendAzureRequestAsync(apiKey, requestBody, isStreaming))
+                {
+                    await ForwardResponseAsync(context, response, isStreaming);
+                }
+            }
+            catch (HttpRequestException ex)
+            {
+                WriteError(context, "Request error: " + ex.Message, HttpStatusCode.BadGateway);
+            }
+        }
+
+        private string ReadRequestBody(HttpListenerContext context)
+        {
+            using (var reader = new StreamReader(context.Request.InputStream, context.Request.ContentEncoding))
+            {
+                return reader.ReadToEnd();
+            }
+        }
+
+        private async Task<HttpResponseMessage> SendAzureRequestAsync(string apiKey, string requestBody, bool isStreaming)
+        {
+            using (var client = new HttpClient())
path: WelsonJS.Toolkit/WelsonJS.Launcher/ResourceTools/AzureAi.cs
user: login: sourcery-ai[bot]
body: **suggestion (performance):** Review HttpClient instantiation for performance.

Instantiating a new HttpClient for each request can lead to socket exhaustion under high load. Although this pattern may be acceptable for infrequent calls, consider reusing a static or shared HttpClient instance if performance becomes critical.

Suggested implementation:

```csharp
        private static readonly HttpClient HttpClientInstance = new HttpClient();

        private string ReadRequestBody(HttpListenerContext context)

```

```csharp
        private async Task<HttpResponseMessage> SendAzureRequestAsync(string apiKey, string requestBody, bool isStreaming)
        {
            var requestMessage = new HttpRequestMessage(HttpMethod.Post, AzureAiServiceUrl);
            requestMessage.Headers.Add("api-key", apiKey);
            requestMessage.Content = new StringContent(requestBody, Encoding.UTF8, "application/json");

            var completionOption = isStreaming
                ? HttpCompletionOption.ResponseHeadersRead
                : HttpCompletionOption.ResponseContentRead;

            return await HttpClientInstance.SendAsync(requestMessage, completionOption);
        }

```

Depending on the codebase, ensure that the HttpClientInstance field is initialized appropriately and that any configuration settings or timeout values are set according to your application's requirements. This change will improve performance under high load by reusing the HttpClient instance.
created_at: 2025-04-09T17:19:29Z
author_association: CONTRIBUTOR
diff_hunk: @@ -61,7 +62,7 @@ WelsonJS is tailored for developers who need a reliable, lightweight JavaScript
 ## Specifications
 - Built-in transpilers: [TypeScript](https://www.typescriptlang.org/), [Rescript](https://rescript-lang.org/), [CoffeeScript 2](https://coffeescript.org/), [LiveScript](https://livescript.net/)
 - **Ready to use on Windows machine immediately. No require additional software installation.**
-- **WelsonJS Launcher**: Instance management (You can manage previously run apps), User-defined variable editor (You can pass user-defined variables if needed), [Microsoft Monaco Editor](https://github.com/microsoft/monaco-editor) (You can edit code without installing an additional editor).
+- **WelsonJS Launcher**: Manage an instances (Like a container), User-defined variable editor, [Microsoft Monaco Editor](https://github.com/microsoft/monaco-editor) (Pre-embedded rich code editor), [Microsoft Copilot](https://copilot.microsoft.com) on the code editor.
path: README.md
user: login: sourcery-ai[bot]
body: **issue (typo):** Typo: "Manage an instances"

Should be "Manage instances".

```suggestion
- **WelsonJS Launcher**: Manage instances (Like a container), User-defined variable editor, [Microsoft Monaco Editor](https://github.com/microsoft/monaco-editor) (Pre-embedded rich code editor), [Microsoft Copilot](https://copilot.microsoft.com) on the code editor.
```
created_at: 2025-04-09T17:19:29Z
author_association: CONTRIBUTOR
diff_hunk: @@ -0,0 +1,139 @@
+﻿using System;
+using System.IO;
+using System.Net;
+using System.Net.Http;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace WelsonJS.Launcher.ResourceTools
+{
+    public class AzureAi : IResourceTool
+    {
+        private ResourceServer Server;
+        private const string Prefix = "azure-ai/";
+        private const int ChunkSize = 4096;
+        private readonly string AzureAiServiceUrl;
+        private readonly string AzureAiServiceApiKey;
+
+        public AzureAi(ResourceServer server)
+        {
+            Server = server;
+
+            AzureAiServiceUrl = Program.GetAppConfig("AzureAiServiceUrl");
+            AzureAiServiceApiKey = Program.GetAppConfig("AzureAiServiceApiKey");
+        }
+
+        public bool CanHandle(string path)
+        {
+            return path.StartsWith(Prefix, StringComparison.OrdinalIgnoreCase);
+        }
+
+        public async Task HandleAsync(HttpListenerContext context, string path)
path: WelsonJS.Toolkit/WelsonJS.Launcher/ResourceTools/AzureAi.cs
user: login: sourcery-ai[bot]
body: **issue (complexity):** Consider simplifying the control flow by inlining one-shot helper methods or converting them to local functions to improve readability and reduce indirection, and use asynchronous stream methods for consistency .

You can simplify the control flow by reducing the number of “one-shot” helper methods. For example, rather than creating separate methods for reading the request body and writing errors, consider inlining them in *HandleAsync* (or make them local functions) so that the workflow is easier to follow. You can also use asynchronous stream methods for consistency.

**Example – Inline Request Reading & Error Writing:**

```csharp
public async Task HandleAsync(HttpListenerContext context, string path)
{
    string apiKey = AzureAiServiceApiKey;
    if (string.IsNullOrEmpty(apiKey))
    {
        context.Response.StatusCode = (int)HttpStatusCode.BadRequest;
        using (var writer = new StreamWriter(context.Response.OutputStream, Encoding.UTF8))
        {
            await writer.WriteAsync("Missing the API key.");
        }
        return;
    }

    string requestBody;
    using (var reader = new StreamReader(context.Request.InputStream, context.Request.ContentEncoding))
    {
        requestBody = await reader.ReadToEndAsync();
    }

    bool isStreaming = ContainsSequentialKeywords(requestBody, new[] { "\"stream\"", "true" }, 30);

    try
    {
        using (var response = await SendAzureRequestAsync(apiKey, requestBody, isStreaming))
        {
            await ForwardResponseAsync(context, response, isStreaming);
        }
    }
    catch (HttpRequestException ex)
    {
        context.Response.StatusCode = (int)HttpStatusCode.BadGateway;
        using (var writer = new StreamWriter(context.Response.OutputStream, Encoding.UTF8))
        {
            await writer.WriteAsync("Request error: " + ex.Message);
        }
    }
}
```

**Streamlining the Forwarding Logic**

For the streaming branch in **ForwardResponseAsync**, if you find that the custom read/write loop is too verbose, you might consider extracting its logic into a local helper (or even using a pre-made helper wrapper) if it’s reused. If it’s only used once, keeping it inline (but well commented) could improve readability. For example, the existing loop is acceptable if commented clearly:

```csharp
// If streaming, copy in chunks and flush to preserve low latency.
byte[] buffer = new byte[ChunkSize];
int bytesRead;
while ((bytesRead = await responseStream.ReadAsync(buffer, 0, buffer.Length)) > 0)
{
    await context.Response.OutputStream.WriteAsync(buffer, 0, bytesRead);
    await context.Response.OutputStream.FlushAsync();
}
```

These changes keep functionality intact but reduce unnecessary indirection and nesting while maintaining asynchronous semantics.
created_at: 2025-04-09T17:19:29Z
author_association: CONTRIBUTOR
diff_hunk: @@ -138,13 +138,22 @@
             return workingDirectory;
         }
 
+        public static void StartResourceServer()
+        {
+            if (resourceServer == null)
+            {
+                resourceServer = new ResourceServer(GetAppConfig("ResourceServerPrefix"), "editor.html");
+            }
+        }
+
path: WelsonJS.Toolkit/WelsonJS.Launcher/Program.cs
user: login: coderabbitai[bot]
body: _🛠️ Refactor suggestion_

**Consider concurrency handling for repeated calls to `StartResourceServer`.**

If multiple calls to `StartResourceServer()` occur simultaneously or in quick succession, the check `if (resourceServer == null)` might introduce race conditions. In typical WinForms scenarios this might not be a big concern, but if you foresee parallel calls, consider adding locking or additional checks to avoid unexpected server restarts.

```diff
 public static void StartResourceServer()
 {
-    if (resourceServer == null)
-    {
-        resourceServer = new ResourceServer(GetAppConfig("ResourceServerPrefix"), "editor.html");
-    }
+    lock(typeof(Program))
+    {
+        if (resourceServer == null)
+        {
+            resourceServer = new ResourceServer(GetAppConfig("ResourceServerPrefix"), "editor.html");
+        }
+    }
 }
```


<!-- suggestion_start -->

<details>
<summary>📝 Committable suggestion</summary>

> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

`````suggestion
        public static void StartResourceServer()
        {
            lock(typeof(Program))
            {
                if (resourceServer == null)
                {
                    resourceServer = new ResourceServer(GetAppConfig("ResourceServerPrefix"), "editor.html");
                }
            }
        }
`````

</details>

<!-- suggestion_end -->

<!-- This is an auto-generated comment by CodeRabbit -->
created_at: 2025-04-09T17:23:50Z
author_association: CONTRIBUTOR
diff_hunk: @@ -138,13 +138,22 @@
             return workingDirectory;
         }
 
+        public static void StartResourceServer()
+        {
+            if (resourceServer == null)
+            {
+                resourceServer = new ResourceServer(GetAppConfig("ResourceServerPrefix"), "editor.html");
+            }
+        }
+
         public static void OpenWebBrowser(string url)
         {
             string userDataDir = Path.Combine(GetAppDataPath(), "EdgeUserProfile");
-            string remoteAllowOrigins = "http://localhost:3000";
+            string remoteAllowOrigins = GetAppConfig("ResourceServerPrefix");
+            int remoteDebuggingPort = new Uri(GetAppConfig("DevToolsPrefix")).Port;
path: WelsonJS.Toolkit/WelsonJS.Launcher/Program.cs
user: login: coderabbitai[bot]
body: _💡 Verification agent_

<details>
<summary>🧩 Analysis chain</summary>

**Verify that `GetAppConfig` returns non-null values for 'ResourceServerPrefix' and 'DevToolsPrefix'.**

A null return from `GetAppConfig("DevToolsPrefix")` would cause a `UriFormatException`, and a null or empty string for `ResourceServerPrefix` might trigger unexpected browser behavior. Consider providing fallback defaults or handling null cases.

---

🏁 Script executed:

```shell
#!/bin/bash
# Description: Check for the presence of ResourceServerPrefix & DevToolsPrefix in the config and resource files.
rg -A 3 "ResourceServerPrefix"
rg -A 3 "DevToolsPrefix"
```

Length of output: 4688

---



</details>

**Action Required: Add Null-Checks for Config Values**

The configuration files currently define both "ResourceServerPrefix" and "DevToolsPrefix" with valid default URLs. However, there’s still a risk if `GetAppConfig` ever returns a null value (for example, if the config file is missing or misconfigured). In particular, a null from `GetAppConfig("DevToolsPrefix")` would cause a `UriFormatException`, and a null or empty string for "ResourceServerPrefix" might lead to unexpected browser behavior.

- **WelsonJS.Toolkit/WelsonJS.Launcher/Program.cs, Lines 152-153**:  
  ```csharp
  string remoteAllowOrigins = GetAppConfig("ResourceServerPrefix");
  int remoteDebuggingPort = new Uri(GetAppConfig("DevToolsPrefix")).Port;
  ```
  
**Recommendation:**  
Implement null-checks or supply fallback defaults immediately after calling `GetAppConfig` to ensure that even if configuration changes occur at runtime, the application won’t crash or behave unexpectedly.

<!-- This is an auto-generated comment by CodeRabbit -->
created_at: 2025-04-09T17:23:50Z
author_association: CONTRIBUTOR
diff_hunk: @@ -0,0 +1,139 @@
+﻿using System;
+using System.IO;
+using System.Net;
+using System.Net.Http;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace WelsonJS.Launcher.ResourceTools
+{
+    public class AzureAi : IResourceTool
+    {
+        private ResourceServer Server;
+        private const string Prefix = "azure-ai/";
+        private const int ChunkSize = 4096;
+        private readonly string AzureAiServiceUrl;
+        private readonly string AzureAiServiceApiKey;
+
path: WelsonJS.Toolkit/WelsonJS.Launcher/ResourceTools/AzureAi.cs
user: login: coderabbitai[bot]
body: _🛠️ Refactor suggestion_

**Ensure API keys and URLs are stored securely.**
For production systems, avoid storing secrets in app configs or resource files in plain text. Consider environment variables or a secure vault if possible.

<!-- This is an auto-generated comment by CodeRabbit -->
created_at: 2025-04-09T17:23:50Z
author_association: CONTRIBUTOR

PR comments:
user: login: sourcery-ai[bot]
created_at: 2025-04-09T17:18:24Z
body: <!-- Generated by sourcery-ai[bot]: start review_guide -->

## Reviewer's Guide by Sourcery

This pull request introduces Copilot integration, refactors the resource server, integrates Azure AI services, and updates sponsor information. The UI has been updated to include a Copilot button, replacing the Generate and Sponsor buttons. The resource server logic has been refactored to ensure proper initialization and configuration. Azure AI integration has been added to enable generative AI features. Sponsor links have been updated, and a special contributor has been added to the README.

_No diagrams generated as the changes look simple and do not need a visual representation._

### File-Level Changes

| Change | Details | Files |
| ------ | ------- | ----- |
| Updated the UI and functionality related to generative AI features. | <ul><li>Replaced the 'Generate' and 'Sponsor' buttons with a single 'Copilot' button.</li><li>Updated the button's caption to 'Copilot'.</li><li>Changed the title of the group containing the Copilot button from 'Common' to 'Generative'.</li><li>Modified the button's onclick function to use 'Copilot' instead of 'Generate'.</li><li>Updated the message displayed when prompting for a message to indicate Copilot usage.</li><li>Added a description of Microsoft Copilot to the WelsonJS Launcher features.</li></ul> | `WelsonJS.Toolkit/WelsonJS.Launcher/editor.html`<br/>`README.md` |
| Refactored the resource server and added Azure AI integration. | <ul><li>Added a `StartResourceServer` method to ensure the resource server is initialized.</li><li>Modified the `OpenWebBrowser` method to use the `ResourceServerPrefix` from the app config for `remote-allow-origins` and the `DevToolsPrefix` port for remote debugging.</li><li>Modified the `startCodeEditorToolStripMenuItem_Click` method to use the new `StartResourceServer` method.</li><li>Added a new `AzureAi` class to handle requests to the Azure AI service.</li><li>Implemented the `IResourceTool` interface in the `AzureAi` class.</li><li>Added logic to forward requests to the Azure AI service and stream responses back to the client.</li><li>Added helper methods for reading request bodies, sending Azure requests, forwarding responses, writing errors, and checking for sequential keywords in a string.</li><li>Added a new project file for the `ResourceTools` directory.</li></ul> | `WelsonJS.Toolkit/WelsonJS.Launcher/Program.cs`<br/>`WelsonJS.Toolkit/WelsonJS.Launcher/MainForm.cs`<br/>`WelsonJS.Toolkit/WelsonJS.Launcher/ResourceServer.cs`<br/>`WelsonJS.Toolkit/WelsonJS.Launcher/WelsonJS.Launcher.csproj`<br/>`WelsonJS.Toolkit/WelsonJS.Launcher/ResourceTools/AzureAi.cs` |
| Updated sponsor links and added a special contributor. | <ul><li>Added a 'Buy me a coffee' link to the sponsors section.</li><li>Updated the description of the Open SW Portal sponsor.</li><li>Added a special contributor, @hcho3.</li></ul> | `README.md` |

---

<details>
<summary>Tips and commands</summary>

#### Interacting with Sourcery

- **Trigger a new review:** Comment `@sourcery-ai review` on the pull request.
- **Continue discussions:** Reply directly to Sourcery's review comments.
- **Generate a GitHub issue from a review comment:** Ask Sourcery to create an
  issue from a review comment by replying to it. You can also reply to a
  review comment with `@sourcery-ai issue` to create an issue from it.
- **Generate a pull request title:** Write `@sourcery-ai` anywhere in the pull
  request title to generate a title at any time. You can also comment
  `@sourcery-ai title` on the pull request to (re-)generate the title at any time.
- **Generate a pull request summary:** Write `@sourcery-ai summary` anywhere in
  the pull request body to generate a PR summary at any time exactly where you
  want it. You can also comment `@sourcery-ai summary` on the pull request to
  (re-)generate the summary at any time.
- **Generate reviewer's guide:** Comment `@sourcery-ai guide` on the pull
  request to (re-)generate the reviewer's guide at any time.
- **Resolve all Sourcery comments:** Comment `@sourcery-ai resolve` on the
  pull request to resolve all Sourcery comments. Useful if you've already
  addressed all the comments and don't want to see them anymore.
- **Dismiss all Sourcery reviews:** Comment `@sourcery-ai dismiss` on the pull
  request to dismiss all existing Sourcery reviews. Especially useful if you
  want to start fresh with a new review - don't forget to comment
  `@sourcery-ai review` to trigger a new review!
- **Generate a plan of action for an issue:** Comment `@sourcery-ai plan` on
  an issue to generate a plan of action for it.

#### Customizing Your Experience

Access your [dashboard](https://app.sourcery.ai) to:
- Enable or disable review features such as the Sourcery-generated pull request
  summary, the reviewer's guide, and others.
- Change the review language.
- Add, remove or edit custom review instructions.
- Adjust other review settings.

#### Getting Help

- [Contact our support team](mailto:support@sourcery.ai) for questions or feedback.
- Visit our [documentation](https://docs.sourcery.ai) for detailed guides and information.
- Keep in touch with the Sourcery team by following us on [X/Twitter](https://x.com/SourceryAI), [LinkedIn](https://www.linkedin.com/company/sourcery-ai/) or [GitHub](https://github.com/sourcery-ai).

</details>

<!-- Generated by sourcery-ai[bot]: end review_guide -->
author_association: CONTRIBUTOR
user: login: coderabbitai[bot]
created_at: 2025-04-09T17:18:27Z
body: <!-- This is an auto-generated comment: summarize by coderabbit.ai -->
<!-- This is an auto-generated comment: failure by coderabbit.ai -->

> [!CAUTION]
> ## Review failed
> 
> The pull request is closed.

<!-- end of auto-generated comment: failure by coderabbit.ai -->
<!-- walkthrough_start -->

## Walkthrough
This pull request updates several parts of the WelsonJS Toolkit Launcher. The README has a minor grammatical correction. The resource server initialization logic in the main form has been simplified by introducing a new public static method in the Program class. A new `AzureAi` class is added to process Azure AI HTTP requests, and the project file is updated to include this new file. Additionally, the editor interface has been modified to replace the "Generate" button with a "Copilot" button.

## Changes

| File(s) | Summary |
|---------|---------|
| `README.md` | Corrected grammatical error in the "Specifications" section. |
| `WelsonJS.Toolkit/WelsonJS.Launcher/MainForm.cs`<br>`WelsonJS.Toolkit/WelsonJS.Launcher/Program.cs` | Simplified resource server initialization by replacing explicit null checks with a call to `Program.StartResourceServer()`. |
| `WelsonJS.Toolkit/WelsonJS.Launcher/ResourceServer.cs` | Added a using directive for `System.IO.Compression` to support potential compression features. |
| `WelsonJS.Toolkit/WelsonJS.Launcher/ResourceTools/AzureAi.cs` | Introduced a new `AzureAi` class implementing `IResourceTool` for handling Azure AI service HTTP requests, including API key validation, request streaming, error handling, and response forwarding. |
| `WelsonJS.Toolkit/WelsonJS.Launcher/WelsonJS.Launcher.csproj` | Included the new `AzureAi.cs` file in the compilation process and removed an empty `<ItemGroup />` from the project file. |
| `WelsonJS.Toolkit/WelsonJS.Launcher/editor.html` | Modified the UI: removed the `btnGenerate` button, added a `btnCopilot` button with updated caption and group title, and adjusted the associated JavaScript for handling Copilot requests. |

## Sequence Diagram(s)

```mermaid
sequenceDiagram
    participant U as User
    participant MF as MainForm
    participant P as Program
    participant RS as ResourceServer
    participant WB as WebBrowser

    U->>MF: Clicks "Code Editor" option
    MF->>P: Calls StartResourceServer()
    P->>RS: Initialize Resource Server if not running
    RS-->>P: Return server status
    P->>MF: Returns status
    MF->>WB: Opens web browser with dynamic URL
```

```mermaid
sequenceDiagram
    participant C as Client
    participant RS as ResourceServer
    participant AA as AzureAi
    participant AS as Azure AI Service

    C->>RS: HTTP Request (path "azure-ai/...")
    RS->>AA: Route to AzureAi handler
    AA->>AA: Validate API key & read request body
    AA->>AS: Forward HTTP POST request
    AS-->>AA: Response received (streaming/non-streaming)
    AA->>RS: Forward response to client
    RS-->>C: Send HTTP Response
```

## Possibly related PRs
- **gnh1201/welsonjs#174**: Involves a minor grammatical correction in the `README.md` file, similar to the changes in this PR.
- **gnh1201/welsonjs#214**: Modifies the `startCodeEditorToolStripMenuItem_Click` method to initialize the resource server dynamically, aligning with the new `StartResourceServer()` implementation.
- **gnh1201/welsonjs#190**: Also addresses modifications in `editor.html`, focusing on UI button click handlers and text updates.

## Poem
> Hoppity hop, I’ve nibbled some code,  
> Document updates on a winding road.  
> The server now starts with a gentle leap,  
> And Azure AI secrets I now keep.  
> With Copilot’s charm, the buttons sing,  
> A rabbit’s joy in each new coding spring!

<!-- walkthrough_end -->
<!-- internal state start -->


<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpADK2VmgqyjcEj2wAbb5AokAI7Y0riQ4rjedJAARACq3LTUngBMAAwpAK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Wb6JUVovoC9YOw0p33j0kgmOBjkIfRu2oCzAri2uQe4l4ca3IeUhVUqHNjjSab31HAmTGMvLYQtEkQrhG6wcvtrkh68mIsVoXU7kXRtbxtydcf0QLlvWSe/VIgohojphehdtBWbldQijgN+j7PT0iGeQDljplBjmGkCFSdnbpMq3Xu4HQuTo4TKlRD9PrSjuEcADkyAl0FAVELQNeX1YSTLtiqR96yALez6wNXLYN/iPel2hHERqi/NwAV7gwnjMHz7NAJQqxnjy4qgnwYAY7MQ9TbNsr1DfRtDarz+abFr+tvXYMLoAd5Tw3tAo3HbDHBIk3Qh03TEVZ7FC3S3XtK3eG8rKrxrjDkMW3Gb3gO3fXS1lYd79QcN9nlbMr+rcra3CrqrJr73jkm223kAgASYTZXhcb6PeY3rdQ8feZsQ2KyRCeD/f/1A/QEo+g+reGsH4bemsw/mufcLyI8TyfuqXLck9Pfg8vdKuY9fdkM2wGBRyNiOwZiBScMpwsCijpxoCZz/49y5xKA/YFzhzFyGC88rTqDHKDCIDHLi50p0DHJl4K9lxQAjAAAcuQIwKQBQAAnJkAwPMAINb6oGgAAGwADsJAaQaAmQaACwBQmQ5vAguQ/vJADvJABQiwhvhw3PSvIvKvavGvzW4wGMtAxyDsCvQAA -->

<!-- internal state end -->

---

<details>
<summary>📜 Recent review details</summary>

**Configuration used: CodeRabbit UI**
**Review profile: CHILL**
**Plan: Pro**

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between f84f2195c3bc3bba67e0a5a23159b444e6e1348f and d42210f9225023f290f3506c8e51970b9d374d4f.

</details>

<details>
<summary>📒 Files selected for processing (2)</summary>

* `README.md` (1 hunks)
* `WelsonJS.Toolkit/WelsonJS.Launcher/Program.cs` (1 hunks)

</details>

</details>
<!-- tips_start -->

---



<details>
<summary>🪧 Tips</summary>

### Chat

There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=gnh1201/welsonjs&utm_content=234):

- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
  - `I pushed a fix in commit <commit_id>, please review it.`
  - `Generate unit testing code for this file.`
  - `Open a follow-up GitHub issue for this discussion.`
- Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples:
  - `@coderabbitai generate unit testing code for this file.`
  -	`@coderabbitai modularize this function.`
- PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
  - `@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.`
  - `@coderabbitai read src/utils.ts and generate unit testing code.`
  - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.`
  - `@coderabbitai help me debug CodeRabbit configuration file.`

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

### CodeRabbit Commands (Invoked using PR comments)

- `@coderabbitai pause` to pause the reviews on a PR.
- `@coderabbitai resume` to resume the paused reviews.
- `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
- `@coderabbitai full review` to do a full review from scratch and review all the files again.
- `@coderabbitai summary` to regenerate the summary of the PR.
- `@coderabbitai generate docstrings` to [generate docstrings](https://docs.coderabbit.ai/finishing-touches/docstrings) for this PR.
- `@coderabbitai resolve` resolve all the CodeRabbit review comments.
- `@coderabbitai plan` to trigger planning for file edits and PR creation.
- `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository.
- `@coderabbitai help` to get help.

### Other keywords and placeholders

- Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed.
- Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description.
- Add `@coderabbitai` anywhere in the PR title to generate the title automatically.

### CodeRabbit Configuration File (`.coderabbit.yaml`)

- You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository.
- Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json`

### Documentation and Community

- Visit our [Documentation](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit.
- Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback.
- Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.

</details>

<!-- tips_end -->
author_association: CONTRIBUTOR
user: login: sonarqubecloud[bot]
created_at: 2025-04-09T17:30:45Z
body: ## [![Quality Gate Passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/qg-passed-20px.png 'Quality Gate Passed')](https://sonarcloud.io/dashboard?id=gnh1201_welsonjs&pullRequest=234) **Quality Gate passed**  
Issues  
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0 New issues](https://sonarcloud.io/project/issues?id=gnh1201_welsonjs&pullRequest=234&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)  
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/accepted-16px.png '') [0 Accepted issues](https://sonarcloud.io/project/issues?id=gnh1201_welsonjs&pullRequest=234&issueStatuses=ACCEPTED)

Measures  
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=gnh1201_welsonjs&pullRequest=234&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)  
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=gnh1201_welsonjs&pullRequest=234&metric=new_coverage&view=list)  
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=gnh1201_welsonjs&pullRequest=234&metric=new_duplicated_lines_density&view=list)  
  
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=gnh1201_welsonjs&pullRequest=234)


author_association: NONE