imcp 0.1.5 → 0.1.7

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 (186) hide show
  1. package/.github/ISSUE_TEMPLATE/JitAccess.yml +28 -0
  2. package/.github/acl/access.yml +20 -0
  3. package/.github/compliance/inventory.yml +5 -0
  4. package/.github/policies/jit.yml +19 -0
  5. package/.github/workflows/build.yml +28 -0
  6. package/.roo/rules-code/rules.md +88 -0
  7. package/docs/ONBOARDING_PAGE_DESIGN.md +260 -0
  8. package/docs/Telemetry.md +136 -0
  9. package/memory-bank/activeContext.md +26 -0
  10. package/memory-bank/decisionLog.md +91 -0
  11. package/memory-bank/productContext.md +41 -0
  12. package/memory-bank/progress.md +35 -0
  13. package/memory-bank/systemPatterns.md +10 -0
  14. package/package.json +1 -5
  15. package/src/cli/commands/install.ts +139 -0
  16. package/src/cli/commands/list.ts +113 -0
  17. package/src/cli/commands/pull.ts +16 -0
  18. package/src/cli/commands/serve.ts +39 -0
  19. package/src/cli/commands/uninstall.ts +64 -0
  20. package/src/cli/index.ts +82 -0
  21. package/src/core/installers/clients/BaseClientInstaller.ts +341 -0
  22. package/src/core/installers/clients/ClientInstaller.ts +222 -0
  23. package/src/core/installers/clients/ClientInstallerFactory.ts +43 -0
  24. package/src/core/installers/clients/ClineInstaller.ts +35 -0
  25. package/src/core/installers/clients/ExtensionInstaller.ts +165 -0
  26. package/src/core/installers/clients/GithubCopilotInstaller.ts +79 -0
  27. package/src/core/installers/clients/MSRooCodeInstaller.ts +32 -0
  28. package/src/core/installers/index.ts +11 -0
  29. package/src/core/installers/requirements/BaseInstaller.ts +85 -0
  30. package/src/core/installers/requirements/CommandInstaller.ts +231 -0
  31. package/src/core/installers/requirements/GeneralInstaller.ts +133 -0
  32. package/src/core/installers/requirements/InstallerFactory.ts +114 -0
  33. package/src/core/installers/requirements/NpmInstaller.ts +271 -0
  34. package/src/core/installers/requirements/NugetInstaller.ts +203 -0
  35. package/src/core/installers/requirements/PipInstaller.ts +207 -0
  36. package/src/core/installers/requirements/RequirementInstaller.ts +42 -0
  37. package/src/core/loaders/ConfigurationLoader.ts +298 -0
  38. package/src/core/loaders/ConfigurationProvider.ts +462 -0
  39. package/src/core/loaders/InstallOperationManager.ts +367 -0
  40. package/src/core/loaders/ServerSchemaLoader.ts +117 -0
  41. package/src/core/loaders/ServerSchemaProvider.ts +99 -0
  42. package/src/core/loaders/SystemSettingsManager.ts +278 -0
  43. package/src/core/metadatas/constants.ts +122 -0
  44. package/src/core/metadatas/recordingConstants.ts +65 -0
  45. package/src/core/metadatas/types.ts +202 -0
  46. package/src/core/onboard/FeedOnboardService.ts +501 -0
  47. package/src/core/onboard/OnboardProcessor.ts +356 -0
  48. package/src/core/onboard/OnboardStatus.ts +60 -0
  49. package/src/core/onboard/OnboardStatusManager.ts +416 -0
  50. package/src/core/validators/FeedValidator.ts +135 -0
  51. package/src/core/validators/IServerValidator.ts +21 -0
  52. package/src/core/validators/SSEServerValidator.ts +43 -0
  53. package/src/core/validators/ServerValidatorFactory.ts +51 -0
  54. package/src/core/validators/StdioServerValidator.ts +313 -0
  55. package/src/index.ts +44 -0
  56. package/src/services/InstallationService.ts +102 -0
  57. package/src/services/MCPManager.ts +249 -0
  58. package/src/services/RequirementService.ts +627 -0
  59. package/src/services/ServerService.ts +161 -0
  60. package/src/services/TelemetryService.ts +59 -0
  61. package/src/utils/UpdateCheckTracker.ts +86 -0
  62. package/src/utils/adoUtils.ts +293 -0
  63. package/src/utils/clientUtils.ts +72 -0
  64. package/src/utils/feedUtils.ts +31 -0
  65. package/src/utils/githubAuth.ts +212 -0
  66. package/src/utils/githubUtils.ts +164 -0
  67. package/src/utils/logger.ts +195 -0
  68. package/src/utils/macroExpressionUtils.ts +104 -0
  69. package/src/utils/osUtils.ts +700 -0
  70. package/src/utils/versionUtils.ts +114 -0
  71. package/src/web/contract/serverContract.ts +74 -0
  72. package/src/web/public/css/detailsWidget.css +235 -0
  73. package/src/web/public/css/modal.css +757 -0
  74. package/src/web/public/css/notifications.css +101 -0
  75. package/src/web/public/css/onboard.css +107 -0
  76. package/src/web/public/css/serverCategoryList.css +120 -0
  77. package/src/web/public/css/serverDetails.css +139 -0
  78. package/src/web/public/index.html +359 -0
  79. package/src/web/public/js/api.js +132 -0
  80. package/src/web/public/js/detailsWidget.js +264 -0
  81. package/src/web/public/js/flights/flights.js +127 -0
  82. package/src/web/public/js/modal/index.js +52 -0
  83. package/src/web/public/js/modal/installModal.js +162 -0
  84. package/src/web/public/js/modal/installation.js +266 -0
  85. package/src/web/public/js/modal/loadingModal.js +182 -0
  86. package/src/web/public/js/modal/modalSetup.js +595 -0
  87. package/src/web/public/js/modal/modalUtils.js +37 -0
  88. package/src/web/public/js/modal/versionUtils.js +20 -0
  89. package/src/web/public/js/modal.js +42 -0
  90. package/src/web/public/js/notifications.js +137 -0
  91. package/src/web/public/js/onboard/formProcessor.js +1037 -0
  92. package/src/web/public/js/onboard/index.js +374 -0
  93. package/src/web/public/js/onboard/publishHandler.js +172 -0
  94. package/src/web/public/js/onboard/state.js +76 -0
  95. package/src/web/public/js/onboard/templates.js +342 -0
  96. package/src/web/public/js/onboard/uiHandlers.js +1076 -0
  97. package/src/web/public/js/onboard/validationHandlers.js +493 -0
  98. package/src/web/public/js/serverCategoryDetails.js +364 -0
  99. package/src/web/public/js/serverCategoryList.js +241 -0
  100. package/src/web/public/js/settings.js +314 -0
  101. package/src/web/public/modal.html +84 -0
  102. package/src/web/public/onboard.html +296 -0
  103. package/src/web/public/settings.html +135 -0
  104. package/src/web/public/styles.css +277 -0
  105. package/src/web/server.ts +478 -0
  106. package/tsconfig.json +18 -0
  107. package/wiki/Installation.md +3 -0
  108. package/wiki/Publish.md +3 -0
  109. package/dist/cli/commands/install.js.map +0 -1
  110. package/dist/cli/commands/list.js.map +0 -1
  111. package/dist/cli/commands/pull.js.map +0 -1
  112. package/dist/cli/commands/serve.js.map +0 -1
  113. package/dist/cli/commands/start.js.map +0 -1
  114. package/dist/cli/commands/sync.js.map +0 -1
  115. package/dist/cli/commands/uninstall.js.map +0 -1
  116. package/dist/cli/index.js.map +0 -1
  117. package/dist/core/ConfigurationLoader.js.map +0 -1
  118. package/dist/core/ConfigurationProvider.js.map +0 -1
  119. package/dist/core/InstallationService.js.map +0 -1
  120. package/dist/core/MCPManager.js.map +0 -1
  121. package/dist/core/RequirementService.js.map +0 -1
  122. package/dist/core/ServerSchemaLoader.js.map +0 -1
  123. package/dist/core/ServerSchemaProvider.js.map +0 -1
  124. package/dist/core/constants.js.map +0 -1
  125. package/dist/core/installers/BaseInstaller.js.map +0 -1
  126. package/dist/core/installers/ClientInstaller.js.map +0 -1
  127. package/dist/core/installers/CommandInstaller.js.map +0 -1
  128. package/dist/core/installers/GeneralInstaller.js.map +0 -1
  129. package/dist/core/installers/InstallerFactory.js.map +0 -1
  130. package/dist/core/installers/NpmInstaller.js.map +0 -1
  131. package/dist/core/installers/PipInstaller.js.map +0 -1
  132. package/dist/core/installers/RequirementInstaller.js.map +0 -1
  133. package/dist/core/installers/clients/BaseClientInstaller.js.map +0 -1
  134. package/dist/core/installers/clients/ClientInstaller.js.map +0 -1
  135. package/dist/core/installers/clients/ClientInstallerFactory.js.map +0 -1
  136. package/dist/core/installers/clients/ClineInstaller.js.map +0 -1
  137. package/dist/core/installers/clients/ExtensionInstaller.js.map +0 -1
  138. package/dist/core/installers/clients/GithubCopilotInstaller.js.map +0 -1
  139. package/dist/core/installers/clients/MSRooCodeInstaller.js.map +0 -1
  140. package/dist/core/installers/index.js.map +0 -1
  141. package/dist/core/installers/requirements/BaseInstaller.js.map +0 -1
  142. package/dist/core/installers/requirements/CommandInstaller.js.map +0 -1
  143. package/dist/core/installers/requirements/GeneralInstaller.js.map +0 -1
  144. package/dist/core/installers/requirements/InstallerFactory.js.map +0 -1
  145. package/dist/core/installers/requirements/NpmInstaller.js.map +0 -1
  146. package/dist/core/installers/requirements/NugetInstaller.js.map +0 -1
  147. package/dist/core/installers/requirements/PipInstaller.js.map +0 -1
  148. package/dist/core/installers/requirements/RequirementInstaller.js.map +0 -1
  149. package/dist/core/loaders/ConfigurationLoader.js.map +0 -1
  150. package/dist/core/loaders/ConfigurationProvider.js.map +0 -1
  151. package/dist/core/loaders/InstallOperationManager.js.map +0 -1
  152. package/dist/core/loaders/ServerSchemaLoader.js.map +0 -1
  153. package/dist/core/loaders/ServerSchemaProvider.js.map +0 -1
  154. package/dist/core/loaders/SystemSettingsManager.js.map +0 -1
  155. package/dist/core/metadatas/constants.js.map +0 -1
  156. package/dist/core/metadatas/recordingConstants.js.map +0 -1
  157. package/dist/core/metadatas/types.js.map +0 -1
  158. package/dist/core/onboard/FeedOnboardService.js.map +0 -1
  159. package/dist/core/onboard/OnboardProcessor.js.map +0 -1
  160. package/dist/core/onboard/OnboardStatus.js.map +0 -1
  161. package/dist/core/onboard/OnboardStatusManager.js.map +0 -1
  162. package/dist/core/types.js.map +0 -1
  163. package/dist/core/validators/FeedValidator.js.map +0 -1
  164. package/dist/core/validators/IServerValidator.js.map +0 -1
  165. package/dist/core/validators/SSEServerValidator.js.map +0 -1
  166. package/dist/core/validators/ServerValidatorFactory.js.map +0 -1
  167. package/dist/core/validators/StdioServerValidator.js.map +0 -1
  168. package/dist/index.js.map +0 -1
  169. package/dist/services/InstallRequestValidator.js.map +0 -1
  170. package/dist/services/InstallationService.js.map +0 -1
  171. package/dist/services/MCPManager.js.map +0 -1
  172. package/dist/services/RequirementService.js.map +0 -1
  173. package/dist/services/ServerService.js.map +0 -1
  174. package/dist/services/TelemetryService.js.map +0 -1
  175. package/dist/utils/UpdateCheckTracker.js.map +0 -1
  176. package/dist/utils/adoUtils.js.map +0 -1
  177. package/dist/utils/clientUtils.js.map +0 -1
  178. package/dist/utils/feedUtils.js.map +0 -1
  179. package/dist/utils/githubAuth.js.map +0 -1
  180. package/dist/utils/githubUtils.js.map +0 -1
  181. package/dist/utils/logger.js.map +0 -1
  182. package/dist/utils/macroExpressionUtils.js.map +0 -1
  183. package/dist/utils/osUtils.js.map +0 -1
  184. package/dist/utils/versionUtils.js.map +0 -1
  185. package/dist/web/contract/serverContract.js.map +0 -1
  186. package/dist/web/server.js.map +0 -1
@@ -0,0 +1,28 @@
1
+ name: Temporary administrator access request
2
+ description: Request for temporary repository administrator access to this repository, a.k.a Just-in-Time (JIT) access.
3
+ title: "JIT Request"
4
+ labels: ["jit"]
5
+ assignees:
6
+ - gimsvc_microsoft
7
+ -
8
+ body:
9
+ - type: markdown
10
+ attributes:
11
+ value: |
12
+ :closed_lock_with_key: Permanent repository administrator access is not allowed as per Microsoft security policy. You can use this form to request for temporary administrator access to this repository.
13
+ - type: textarea
14
+ id: justification
15
+ attributes:
16
+ label: Justification
17
+ description: Describe the actions that you will perform with your temporary administrator access.
18
+ placeholder: I need to create secrets.
19
+ validations:
20
+ required: true
21
+ - type: dropdown
22
+ id: duration
23
+ attributes:
24
+ label: Duration (hours)
25
+ description: How long do you need access for? The duration you select is in hours.
26
+ options:
27
+ - 1
28
+ - 2
@@ -0,0 +1,20 @@
1
+ # Documentation for ACL policy: https://aka.ms/gim/docs/policy/acl
2
+
3
+ name: Access control list
4
+ description: List of teams and their permission levels
5
+ resource: repository
6
+ where:
7
+ configuration:
8
+ manageAccess:
9
+ - team: aicodervteam
10
+ role: Triage
11
+ - member: hod
12
+ role: Maintain
13
+ - member: penwa
14
+ role: Maintain
15
+ - member: anthu
16
+ role: Maintain
17
+ - member: enbaowang
18
+ role: Maintain
19
+ - member: xinli7
20
+ role: Maintain
@@ -0,0 +1,5 @@
1
+ inventory:
2
+ - source: ServiceTree
3
+ items:
4
+ - id: 447fe696-ca1f-419e-8da1-2c6d9cdfe31b
5
+ isProduction: true
@@ -0,0 +1,19 @@
1
+ # Documentation for JIT policy: https://aka.ms/gim/docs/policy/jit
2
+
3
+ # metadata
4
+ id: id
5
+ name: JIT_Access
6
+ description: Policy for admin JIT for repos in this org
7
+
8
+ # filters
9
+ resource: repository
10
+
11
+ # primitive configuration
12
+ configuration:
13
+ jitAccess:
14
+ enabled: true
15
+ maxHours: 2
16
+ approvers:
17
+ role: Maintain
18
+ requestors:
19
+ role: Write
@@ -0,0 +1,28 @@
1
+ name: Node.js CI
2
+
3
+ on:
4
+ pull_request:
5
+ branches: [main] # Or your default branch
6
+
7
+ jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+
11
+ strategy:
12
+ matrix:
13
+ node-version: [20.x, 22.x] # Specify Node.js versions to test against
14
+
15
+ steps:
16
+ - uses: actions/checkout@v3
17
+
18
+ - name: Use Node.js ${{ matrix.node-version }}
19
+ uses: actions/setup-node@v3
20
+ with:
21
+ node-version: ${{ matrix.node-version }}
22
+ cache: "npm"
23
+
24
+ - name: Install dependencies
25
+ run: npm ci
26
+
27
+ - name: Build project
28
+ run: npm run build
@@ -0,0 +1,88 @@
1
+ *IMPORTANT* Before I attempt to complete a task with code changes, I MUST have to ask confirmation with user whether to update memory bank
2
+
3
+ memory*bank_strategy:
4
+ initialization: |
5
+ <thinking> - **CHECK FOR MEMORY BANK:**
6
+ </thinking>
7
+ <thinking>
8
+ * First, check if the memory-bank/ directory exists.
9
+ </thinking>
10
+ <thinking>
11
+ _ If memory-bank DOES exist, skip immediately to `if_memory_bank_exists`.
12
+ </thinking>
13
+ if_no_memory_bank: | 1. **Inform the User:**
14
+ "No Memory Bank was found. I recommend creating one to maintain project context. Would you like to switch to Flow-Architect mode to do this?" 2. **Conditional Actions:**
15
+ _ If the user declines:
16
+ <thinking>
17
+ I need to proceed with the task without Memory Bank functionality.
18
+ </thinking>
19
+ a. Inform the user that the Memory Bank will not be created.
20
+ b. Set the status to '[MEMORY BANK: INACTIVE]'.
21
+ c. Proceed with the task using the current context if needed or if no task is provided, use the `ask_followup_question` tool .
22
+ _ If the user agrees:
23
+ Switch to Flow-Architect mode to create the Memory Bank.
24
+ if_memory_bank_exists: |
25
+ \*\*READ \_ALL_ MEMORY BANK FILES\*\*
26
+ <thinking>
27
+ I will read all memory bank files, one at a time.
28
+ </thinking>
29
+ Plan: Read all mandatory files sequentially. 1. Read `productContext.md` 2. Read `activeContext.md` 3. Read `systemPatterns.md` 4. Read `decisionLog.md` 5. Read `progress.md` 6. Set status to [MEMORY BANK: ACTIVE] and inform user. 7. Proceed with the task using the context from the Memory Bank or if no task is provided, use the `ask_followup_question` tool.
30
+
31
+ general:
32
+ status_prefix: "Begin EVERY response with either '[MEMORY BANK: ACTIVE]' or '[MEMORY BANK: INACTIVE]', according to the current state of the Memory Bank."
33
+
34
+ memory_bank_updates:
35
+ frequency:
36
+
37
+ - "UPDATE MEMORY BANK THROUGHOUT THE CHAT SESSION, WHEN SIGNIFICANT CHANGES OCCUR IN THE PROJECT."
38
+ decisionLog.md:
39
+ trigger: "When a significant architectural decision is made (new component, data flow change, technology choice, etc.). Use your judgment to determine significance."
40
+ action: |
41
+ <thinking>
42
+ I need to update decisionLog.md with a decision, the rationale, and any implications.
43
+ </thinking>
44
+ Use insert*content to \_append* new information. Never overwrite existing entries. Always include a timestamp.
45
+ format: |
46
+ "[YYYY-MM-DD HH:MM:SS] - [Summary of Change/Focus/Issue]"
47
+ productContext.md:
48
+ trigger: "When the high-level project description, goals, features, or overall architecture changes significantly. Use your judgment to determine significance."
49
+ action: |
50
+ <thinking>
51
+ A fundamental change has occurred which warrants an update to productContext.md.
52
+ </thinking>
53
+ Use insert*content to \_append* new information or use apply*diff to modify existing entries if necessary. Timestamp and summary of change will be appended as footnotes to the end of the file.
54
+ format: "[YYYY-MM-DD HH:MM:SS] - [Summary of Change]"
55
+ systemPatterns.md:
56
+ trigger: "When new architectural patterns are introduced or existing ones are modified. Use your judgement."
57
+ action: |
58
+ <thinking>
59
+ I need to update systemPatterns.md with a brief summary and time stamp.
60
+ </thinking>
61
+ Use insert_content to \_append* new patterns or use apply*diff to modify existing entries if warranted. Always include a timestamp.
62
+ format: "[YYYY-MM-DD HH:MM:SS] - [Description of Pattern/Change]"
63
+ activeContext.md:
64
+ trigger: "When the current focus of work changes, or when significant progress is made. Use your judgement."
65
+ action: |
66
+ <thinking>
67
+ I need to update activeContext.md with a brief summary and time stamp.
68
+ </thinking>
69
+ Use insert_content to \_append* to the relevant section (Current Focus, Recent Changes, Open Questions/Issues) or use apply*diff to modify existing entries if warranted. Always include a timestamp.
70
+ format: "[YYYY-MM-DD HH:MM:SS] - [Summary of Change/Focus/Issue]"
71
+ progress.md:
72
+ trigger: "When a task begins, is completed, or if there are any changes Use your judgement."
73
+ action: |
74
+ <thinking>
75
+ I need to update progress.md with a brief summary and time stamp.
76
+ </thinking>
77
+ Use insert_content to \_append* the new entry, never overwrite existing entries. Always include a timestamp.
78
+ format: "[YYYY-MM-DD HH:MM:SS] - [Summary of Change/Focus/Issue]"
79
+
80
+ umb:
81
+ trigger: "^(Update Memory Bank|UMB)$"
82
+ instructions: - "Halt Current Task: Stop current activity" - "Acknowledge Command: '[MEMORY BANK: UPDATING]'" - "Review Chat History"
83
+ core_update_process: | 1. Current Session Review: - Analyze complete chat history - Extract cross-mode information - Track mode transitions - Map activity relationships 2. Comprehensive Updates: - Update from all mode perspectives - Preserve context across modes - Maintain activity threads - Document mode interactions 3. Memory Bank Synchronization: - Update all affected *.md files - Ensure cross-mode consistency - Preserve activity context - Document continuation points
84
+ task_focus: "During a UMB update, focus on capturing any clarifications, questions answered, or context provided *during the chat session*. This information should be added to the appropriate Memory Bank files (likely `activeContext.md` or `decisionLog.md`), using the other modes' update formats as a guide. *Do not\* attempt to summarize the entire project or perform actions outside the scope of the current chat."
85
+ cross-mode_updates: "During a UMB update, ensure that all relevant information from the chat session is captured and added to the Memory Bank. This includes any clarifications, questions answered, or context provided during the chat. Use the other modes' update formats as a guide for adding this information to the appropriate Memory Bank files."
86
+ post_umb_actions: - "Memory Bank fully synchronized" - "All mode contexts preserved" - "Session can be safely closed" - "Next assistant will have complete context"
87
+ override_file_restrictions: true
88
+ override_mode_restrictions: true
@@ -0,0 +1,260 @@
1
+ # Onboarding Page: JavaScript Design and Implementation
2
+
3
+ This document outlines the JavaScript architecture and key implementation details for the dynamic onboarding page.
4
+
5
+ ---
6
+
7
+ ## 1. File Structure and Roles
8
+
9
+ The JavaScript logic is modularized into several files within `src/web/public/js/onboard/`:
10
+
11
+ - **`index.js`**: Main entry point. Handles page initialization, event listeners for primary actions (form submission, tab switching), loading existing data, and orchestrates calls to other modules for more complex UI interactions like view toggling and validation.
12
+ - **`formProcessor.js`**: Handles conversion between the HTML form and the `FeedConfiguration` JSON object. Contains logic for `formDataToFeedConfiguration` (Form → JSON), `populateForm` (JSON → Form), and `resetOnboardFormDynamicContent`. Also includes the `submitForm` handler.
13
+ - **`uiHandlers.js`**: Manages dynamic UI manipulations, such as adding/removing server sections, environment variables, and server-specific requirements. Includes re-indexing logic, handlers for collapsible sections, view mode toggling (`toggleViewMode`), JSON data saving (`saveJsonData`), and clipboard operations (`copyJsonToClipboard`).
14
+ - **`validationHandlers.js`**: Manages the validation process, including initiating validation requests (`handleValidation`). It also provides shared utility functions for polling operation status (`pollOperationStatus`) and updating the UI with operation results (`updateOperationDisplay`), which are used by both validation and publishing flows.
15
+ - **`publishHandler.js`**: Manages the publishing process. This includes initiating publish requests (`handlePublish`), and utilizing shared functions from `validationHandlers.js` for polling status and displaying results.
16
+ - **`templates.js`**: Contains HTML string templates for dynamically generated form sections (e.g., server items, environment variables, requirements).
17
+ - **`state.js`**: Manages client-side state, primarily counters for dynamically added elements (servers, env vars per server, requirements per server).
18
+
19
+ ---
20
+
21
+ ## 2. Core Data Model: `FeedConfiguration`
22
+
23
+ The central data structure is `FeedConfiguration` (defined in `src/core/types.ts`). This object represents the entire configuration for a new server category.
24
+
25
+ **Key aspects:**
26
+
27
+ - `name`, `displayName`, `description`, `repository`: Basic category information.
28
+ - `mcpServers: McpConfig[]`: Array of server configurations. Each `McpConfig` includes:
29
+ - `name`, `mode`, `description`, `schemas`, `repository`
30
+ - `installation`: Contains `command`, `args`, and `env` (an object mapping environment variable names to their configurations).
31
+ - `dependencies`: Contains `requirements: Array<{ name: string; version: string; order?: number; }>` (references to full requirement definitions).
32
+ - `requirements: RequirementConfig[]`: Top-level array of unique, fully defined requirements. Each includes:
33
+ - `name`, `type` (npm, pip, command, etc.), `version`
34
+ - Optional: `alias` (for command type)
35
+ - Optional: `registry` (for private/custom registries like GitHub, Artifactory, local)
36
+
37
+ ---
38
+
39
+ ## 3. Form to JSON Conversion (`formDataToFeedConfiguration`)
40
+
41
+ Located in `formProcessor.js`, this function converts data from the HTML form into a `FeedConfiguration` object.
42
+
43
+ **Process:**
44
+
45
+ - **Parsing Strategy:** Iterates through `FormData` entries. Uses regex to identify and group fields belonging to specific servers, environment variables, and requirements based on their name attributes (e.g., `servers[0].name`, `servers[0].repository`, `servers[0].installation.env[0].name`).
46
+ - **Server Processing:**
47
+ - Collects all fields for each server into a temporary map.
48
+ - Converts collected data into `McpConfig` objects.
49
+ - Environment variables are transformed from an array of objects into the `installation.env` object structure (key-value pairs).
50
+ - **Requirement Processing:**
51
+ - For each server, its requirements are processed.
52
+ - **Server-Specific Dependencies:** An array of `{ name, version, order }` objects is created for `mcpServer.dependencies.requirements`.
53
+ - **Global Requirements List:** Full `RequirementConfig` objects (including type, alias, registry details) are constructed for each requirement defined in the form. These are added to a temporary map (`globalRequirementsMap`) to ensure uniqueness.
54
+ - **De-duplication Key:** The key `${type}|${name}|${version}` ensures requirements differing in type, name, or version are treated as distinct entries in the top-level `feedConfiguration.requirements` array.
55
+ - **Output:** Returns a complete `FeedConfiguration` object.
56
+
57
+ ---
58
+
59
+ ## 4. JSON to Form Conversion (`populateForm`)
60
+
61
+ Located in `formProcessor.js`, this function populates the HTML form using a `FeedConfiguration` object. This is crucial when loading an existing category for editing or when switching from the JSON view back to the form view.
62
+
63
+ **Process:**
64
+
65
+ - **Form Reset:** Before populating, `resetOnboardFormDynamicContent()` (now part of `formProcessor.js` and called by `populateForm` itself) is invoked to clear existing dynamic elements and reset relevant state counters.
66
+ - **Basic Fields:** Populates top-level category fields (`name`, `displayName`, etc.).
67
+ - **Server Population:**
68
+ - Iterates through `feedConfig.mcpServers`.
69
+ - For each server, `window.addServer()` (from `uiHandlers.js`) is called to create the basic server UI block.
70
+ - Server-specific fields (`name`, `mode`, `description`, `repository`, `schema`, `installation` command/args) are populated.
71
+ - **Environment Variables:** Iterates `server.installation.env`, calls `window.addEnvVariable()` for each, and populates its fields.
72
+ - **Package Dependencies:**
73
+ - Iterates through `server.dependencies.requirements` (which are `{name, version, order}` objects, referred to as `depReq`).
74
+ - For each `depReq`, searches the top-level `feedConfig.requirements` array to find the corresponding full `RequirementConfig` object (`fullReq`) by matching `fullReq.name === depReq.name`.
75
+ - If `fullReq` is found, `window.addServerRequirement()` is called to create the UI block for this requirement within the server.
76
+ - All fields of the requirement (`type`, `version`, `alias`, `registry` details) are then populated using data from `fullReq` and `depReq.order`.
77
+ - Conditional UI elements (alias field, specific registry config sections) are toggled based on the requirement's type and selected registry.
78
+
79
+ ---
80
+
81
+ ## 5. Dynamic UI Handling (`uiHandlers.js`, `templates.js`)
82
+
83
+ - **`templates.js`**: Provides HTML string template functions (`serverTemplate`, `envVariableTemplate`, `serverRequirementTemplate`) that generate the necessary HTML for dynamic sections. This includes correct indices for name attributes, `onclick` handlers, and structures for collapsible sections with toggle icons.
84
+ - The `serverTemplate` structures each server item with collapsible sub-sections for "Package Dependencies" (which includes an "Add Dependency" button), "Startup Configuration", and "Environment Variables", in that order. It also includes a `server-content-scrollable` class on the main server content `div` for vertical scrolling.
85
+ - The `serverRequirementTemplate` (used within "Package Dependencies") includes a registry type dropdown that defaults to "Public Registry" and omits the "Local Registry" and placeholder options.
86
+ - Icon-only buttons with tooltips are used (e.g., the "Remove Server" button).
87
+ - **`uiHandlers.js`**:
88
+ - **Adding Elements:**
89
+ - `addServer()`: Determines the new server's index. Inserts HTML using `serverTemplate` (which includes a collapsible server structure with sub-sections). Initializes state counters. Attaches an `onchange` event listener to the new server's mode `<select>` element, which calls `renderInstallationConfig`. Calls `renderInstallationConfig` to display the initial UI for the "Startup Configuration" section (defaulting to `stdio` fields). The server header is clickable to toggle its content visibility.
90
+ - `addEnvVariable(serverIndex)`, `addServerRequirement(serverIndex)`: Get current counter for the specific server, insert HTML using respective templates, and increment the counter.
91
+ - **Rendering Startup Configuration:**
92
+ - `renderInstallationConfig(serverIndex)`: This function is called when a server is added or its mode is changed. It populates the "Startup Configuration" section based on the server's current mode:
93
+ - If `sse`: Clears the startup configuration container (e.g., `installation-config-${serverIndex}`) and inserts an input field for `installation.url`. Hides the "Environment Variables" block.
94
+ - If `stdio` (or other): Clears the startup configuration container and inserts input fields for `installation.command` and `installation.args`. Shows the "Environment Variables" block.
95
+ - **Removing Elements:**
96
+ - `removeServer(serverIndexToRemove)`: Removes the server item from the DOM, then calls `reindexServers()`.
97
+ - `removeEnvVariable(serverIndex, envIndex)`, `removeServerRequirement(serverIndex, reqIndex)`: Remove the specific item. (Re-indexing of these sub-items happens within `reindexServers` when a parent server is re-indexed.)
98
+ - **Re-indexing:**
99
+ - `reindexServers()`: Called after a server is removed.
100
+ - Iterates through all remaining server items in the DOM.
101
+ - For each server item and its new sequential index (`newServerIndex`):
102
+ - Updates its `data-index` attribute.
103
+ - Updates its displayed title (e.g., "MCP Server #1").
104
+ - Updates name attributes of all form elements within it to reflect `newServerIndex`.
105
+ - Updates `onclick` handlers for all relevant buttons (remove server, add env var, add requirement, etc.) to use `newServerIndex`.
106
+ - Updates IDs of dynamically generated elements (e.g., `schema-path-`, `envVarsContainer_`, `server-requirements-list-`).
107
+ - Recursively re-indexes nested environment variables and server-specific requirements:
108
+ - Updates their `data-env-index`/`data-req-index`.
109
+ - Updates their input name attributes (e.g., `servers[newServerIndex].installation.env[newEnvIndex]...`).
110
+ - Updates their `onclick` and `onchange` handlers with new indices.
111
+ - Updates their dynamic IDs.
112
+ - After re-indexing all servers and their children, it rebuilds/updates `state.envCounters` and `state.serverRequirementCounters` and sets `state.serverCounter` to the new total.
113
+ - **Toggling Fields:**
114
+ - `toggleServerAliasField()`: Shows/hides the alias input based on requirement type (`command`).
115
+ - `toggleServerRegistryConfig()`: Shows/hides specific registry configuration sections based on the selected registry type.
116
+ - `browseLocalSchema()`: Uses File System Access API (with fallback) to allow users to select a local schema file, populating its name into the input field.
117
+ - `toggleSectionContent(contentId, iconElement)`: Generic handler to toggle the visibility of a content element (identified by `contentId`) and update an associated icon's state (e.g., chevron up/down). Used for all collapsible sections.
118
+ - `toggleViewMode(isJsonView)`: Handles switching between the form view and the JSON editor view. Manages data conversion and panel visibility.
119
+ - `saveJsonData()`: Handles submitting the data from the JSON editor.
120
+ - `copyJsonToClipboard()`: Copies the content of the JSON editor to the clipboard.
121
+
122
+ ---
123
+
124
+ ## 6. State Management (`state.js`)
125
+
126
+ Provides a simple client-side state store.
127
+
128
+ - `state.serverCounter`: Tracks the total number of server sections. Managed by `setServerCounter()`, which is updated by `addServer()` and `reindexServers()`.
129
+ - `state.envCounters` (`Map`): `serverIndex` → count for environment variables within each server.
130
+ - `state.serverRequirementCounters` (`Map`): `serverIndex` → count for requirements within each server.
131
+
132
+ These maps are updated by their respective add... functions and fully rebuilt by `reindexServers()` to ensure consistency after deletions and re-indexing.
133
+
134
+ ---
135
+
136
+ ## 7. View Toggling (Form vs. JSON Editor — `uiHandlers.js` & `formProcessor.js`)
137
+
138
+ A toggle switch allows users to switch between the standard form view and a raw JSON editor view.
139
+
140
+ - **Switching to JSON View:**
141
+ - `getFormData(currentForm)` (from `formProcessor.js`) is called, which internally uses `formDataToFeedConfiguration` to get the `FeedConfiguration` object.
142
+ - This object is `JSON.stringify`-ed and displayed in a `<textarea>`.
143
+ - The form panel is hidden, and the JSON editor panel is shown.
144
+ - **Switching back to Form View (from JSON):**
145
+ - The JSON content is read from `jsonEditorTextarea` and parsed.
146
+ - `resetOnboardFormDynamicContent()` (from `formProcessor.js`) is called by `populateForm` (also from `formProcessor.js`):
147
+ - Clears the `serversList` container in the DOM.
148
+ - Resets the main form (`onboardForm.reset()`).
149
+ - Resets state counters (`setServerCounter(0)`, `state.envCounters.clear()`, `state.serverRequirementCounters.clear()`) using imported functions/objects from `state.js`.
150
+ - `populateForm(parsedJsonData)` (from `formProcessor.js`) is called to reconstruct the form from the (potentially edited) JSON.
151
+ - If parsing or populating the form fails:
152
+ - An error notification is shown using `showToast()`.
153
+ - The view remains in JSON mode.
154
+ - The view mode toggle switch is ensured to be in the "JSON View" state.
155
+ - If successful, the JSON editor panel is hidden, and the form panel is shown.
156
+
157
+ > The `toggleViewMode` function in `uiHandlers.js` orchestrates this. Application of JSON to the form (via `populateForm` in `formProcessor.js`) is automatic upon switching back to the form view. If it fails, the user stays in JSON view.
158
+
159
+ ---
160
+
161
+ ## 8. Other Key Features (`index.js`, `formProcessor.js`, `validationHandlers.js`, `publishHandler.js`, `uiHandlers.js`)
162
+
163
+ - **Loading Existing Category (`loadExistingCategory` in `index.js`)**: If a `?category=categoryName` URL parameter is present, fetches the category data from `/api/categories/:categoryName`, and then uses `populateForm()` (from `formProcessor.js`) to fill the form for editing. Errors are reported using `showToast()`.
164
+ - **Publishing (`handlePublish` in `publishHandler.js`)**:
165
+ - Triggered by the "Publish" button.
166
+ - Calls `getFormData()` (from `formProcessor.js`) to get the current form data as `FeedConfiguration`.
167
+ - Sends an initial POST request to `/api/categories/onboard` with the `FeedConfiguration` object and an `isUpdate` flag.
168
+ - The "Publish" button shows a spinning loader icon and its text changes to "Publishing...". Both "Validate" and "Publish" buttons are disabled.
169
+ - **Polling for Status**: If the initial publish request is successful and the operation is not immediately completed or failed, `handlePublish` initiates polling. The shared `pollOperationStatus` function (from `validationHandlers.js`) is called, which periodically queries `GET /api/categories/:categoryName/onboard/status?operationType=FULL_ONBOARDING`. `pollOperationStatus` now returns a boolean to manage polling continuation.
170
+ - **Displaying Results**: The shared `updateOperationDisplay` function (from `validationHandlers.js`) formats and displays detailed progress, including individual steps, from both the initial publish call and subsequent status polls.
171
+ - **Completion/Failure**: Polling stops based on the status returned by `pollOperationStatus`. Upon completion or failure, buttons are reset, and `showToast()` displays messages. For detailed information on recent changes to polling and status display, see Section 9: "Enhanced Operation Status Polling and Display".
172
+ - **Validation (`handleValidation` in `validationHandlers.js`)**:
173
+ - **Validation (`handleValidation` in `validationHandlers.js`)**:
174
+ - The `validationStatusPanel` (unique per tab) is located under the "MCP Servers" section (or equivalent) and above the main action buttons ("Validate", "Publish"). It is a foldable panel.
175
+ - When the "Validate" button is clicked:
176
+ - Calls `getFormData()` (from `formProcessor.js`) to get the current form data as `FeedConfiguration`.
177
+ - Sends an initial POST request to `/api/categories/onboard/validate`.
178
+ - The "Validate" button shows a spinning loader icon and its text changes to "Validating...". Both "Validate" and "Publish" buttons are disabled.
179
+ - **Polling for Status**:
180
+ - If the initial validation request is successful and the operation is not immediately completed or failed, `handleValidation` initiates polling.
181
+ - The shared `pollOperationStatus` function (from `validationHandlers.js`) is called, which periodically queries `GET /api/categories/:categoryName/onboard/status?operationType=VALIDATION_ONLY` (using the category name from the form). `pollOperationStatus` now returns a boolean to manage polling continuation.
182
+ - **Displaying Results**:
183
+ - The shared `updateOperationDisplay` function (from `validationHandlers.js`) formats and displays detailed progress, including individual steps, from both the initial validation call and subsequent status polls.
184
+ - It handles different structures of the `validationStatus` object and overall operation status.
185
+ - **Completion/Failure**:
186
+ - Polling stops based on the status returned by `pollOperationStatus`.
187
+ - Upon completion or failure, buttons are reset. For detailed information on recent changes to polling and status display, see Section 9: "Enhanced Operation Status Polling and Display".
188
+ - **Copy JSON (`copyJsonToClipboard` in `uiHandlers.js`)**: Copies the content of `jsonEditorTextarea` to the clipboard. Uses `showToast()` for feedback.
189
+ - **Global Function Exposure**: Necessary UI handler functions (like `addServer`, `removeServer`, `toggleSectionContent`, etc.) are attached to the `window` object so they can be called from `onclick` attributes in the HTML templates.
190
+ - **Custom Notifications**: Standard browser `alert()` calls have been replaced with a custom toast notification system (`showToast()` from `../notifications.js`). This system requires an `.alert-container` div in the host HTML (`onboard.html`) and uses CSS from `css/notifications.css` for styling. The `notifications.js` module handles the creation, display, and dismissal (manual and automatic) of these toasts without relying on Bootstrap's JavaScript.
191
+
192
+ ---
193
+
194
+ This summary covers the main design patterns and implementation choices made for the onboarding page's frontend logic.
195
+
196
+ ---
197
+
198
+ ## 9. Recent Changes (May 2025)
199
+
200
+ - **Requirement Lookup in `populateForm`:**
201
+ Requirement lookup for server dependencies now matches by `name` only (not `name` and `version`).
202
+
203
+ - **UI and Validation Improvements:**
204
+
205
+ - Unique IDs are used for validation panels and buttons per tab to avoid cross-tab issues.
206
+ - Switching between tabs and view modes now preserves form data and ensures correct UI state.
207
+ - The JSON editor view is now properly toggled and content is preserved as expected.
208
+ - Polling for operation status (validation/publish) is more robust and status checks are case-insensitive.
209
+ - Progress steps for operations are now shown in a collapsible section for better feedback.
210
+
211
+ - **General Cleanup:**
212
+ - Redundant diagnostic logs and experimental code were removed.
213
+ - Form reset logic was improved to avoid unwanted clearing of dropdowns or form fields.
214
+
215
+ ## 10. Server Validation System
216
+
217
+ The server validation system consists of multiple components that work together to validate MCP server configurations. This ensures that servers are properly configured before they can be deployed.
218
+
219
+ ### Server Validator Architecture
220
+
221
+ - **`IServerValidator` Interface**: Defines the common validation contract for all server validators:
222
+
223
+ - `validateServer(server: McpConfig, config: FeedConfiguration): Promise<boolean>`
224
+ - Implementations throw errors with descriptive messages when validation fails
225
+
226
+ - **`ServerValidatorFactory`**: Factory class managing validator instances
227
+ - Maintains a singleton map of validators by type ('stdio' | 'sse')
228
+ - Provides methods to get appropriate validator for server mode
229
+ - Initializes validators on construction
230
+
231
+ ### Validator Implementations
232
+
233
+ 1. **StdioServerValidator**:
234
+
235
+ - Validates stdio-mode MCP server configurations
236
+ - Key validation steps:
237
+ - Verifies installation command exists and is executable
238
+ - Validates required environment variables
239
+ - Validates and installs dependencies using installer factory
240
+ - Tests server startup with path resolution for:
241
+ - Node commands: Resolves `${NPMPATH}` in arguments
242
+ - Python commands: Resolves `${PYTHON_PACKAGE}` in arguments
243
+ - Uses timeout-based server startup testing with output monitoring
244
+ - Comprehensive error handling and logging
245
+
246
+ 2. **SSEServerValidator**:
247
+ - Validates SSE-mode MCP server configurations
248
+ - Key validation steps:
249
+ - Verifies installation URL is present and valid
250
+ - Validates server mode is 'sse'
251
+ - Extensible design for additional SSE-specific validation
252
+
253
+ ### Error Handling
254
+
255
+ - All validators provide detailed error messages through Error objects
256
+ - Errors include specific validation failure reasons (e.g., missing command, invalid URL)
257
+ - Logging is implemented throughout the validation process
258
+ - Error messages propagate to the UI for user feedback
259
+
260
+ This validation system ensures that server configurations are complete and functional before deployment, reducing runtime issues and improving reliability.
@@ -0,0 +1,136 @@
1
+ # Application Insights Telemetry Integration
2
+
3
+ This document describes the telemetry implementation in the MCP SDK using Azure Application Insights.
4
+
5
+ ## Overview
6
+
7
+ The MCP SDK integrates Azure Application Insights for telemetry tracking across various operations. This provides insights into server operations, requirement updates, and system health.
8
+
9
+ ## Implementation Details
10
+
11
+ ### TelemetryService
12
+
13
+ Located in `src/services/TelemetryService.ts`, this service provides a centralized interface for telemetry operations:
14
+
15
+ - Initialization with Application Insights configuration
16
+ - Event tracking
17
+ - Exception tracking
18
+ - Trace logging
19
+ - Metric tracking
20
+ - Data flushing capability
21
+
22
+ ```typescript
23
+ // Example usage:
24
+ TelemetryService.trackEvent("eventName", { property: "value" });
25
+ TelemetryService.trackException(error, { context: "operation" });
26
+ ```
27
+
28
+ ### Key Features
29
+
30
+ 1. **Cloud Role Tagging**: Services are tagged as 'imcp' for clear identification in Application Insights
31
+ 2. **Batch Processing**: Configured with a max batch size of 250 events
32
+ 3. **Automatic Error Handling**: Graceful handling of initialization failures
33
+
34
+ ## Integration Points
35
+ The telemetry service is integrated at key points throughout the system:
36
+
37
+ ### User Identity Tracking
38
+ - GitHub user information persistence for Mac/Linux systems
39
+ - Automatic alias extraction from Microsoft accounts
40
+ - Cross-platform username resolution (using OS username for Windows)
41
+
42
+ ### Server Operations
43
+ - Server installation/uninstallation tracking
44
+ - Operation success/failure monitoring
45
+ - Target client tracking
46
+
47
+ ### Requirement Management
48
+ - Requirement update tracking
49
+ - Version change monitoring
50
+ - Update operation status tracking
51
+
52
+ ### Feed Management
53
+ - Feed onboarding process monitoring
54
+ - Sync operations tracking
55
+ - Configuration changes tracking
56
+
57
+ ## Event Types
58
+
59
+ The system tracks several types of events:
60
+
61
+ 1. **Server Events**
62
+ - Installation (`SERVER_INSTALL`)
63
+ - Uninstallation (`SERVER_UNINSTALL`)
64
+
65
+ 2. **Requirement Events**
66
+ - Updates (`REQUIREMENT_UPDATE`)
67
+
68
+ 3. **Feed Events**
69
+ - Onboard (`FEED_ONBOARD`)
70
+ - Validate (`FEED_VALIDATE`)
71
+
72
+ 4 **IMCP Events**
73
+ - IMCP serve (`IMCP_SERVE`)
74
+
75
+ ## Best Practices
76
+ 1. **Error Tracking**
77
+ - Always include error messages in failed operations
78
+ - Track operation context with properties
79
+
80
+ 2. **Event Properties**
81
+ - Include relevant identifiers (categoryName, serverName)
82
+ - Track operation status
83
+ - Include version information when applicable
84
+ - Include user alias in events (automatically handled by Logger)
85
+
86
+ 3. **User Identity Persistence**
87
+ - Store GitHub user information (alias, name, email) for Mac/Linux users
88
+ - Skip persistence for Windows users (uses OS username)
89
+ - Only persist for Microsoft accounts (username ending with _microsoft)
90
+ - Cache user information to avoid repeated API calls
91
+ - Include version information when applicable
92
+
93
+ 4. **Performance Monitoring**
94
+ - Use metric tracking for performance-sensitive operations
95
+ - Implement proper batching for high-volume events
96
+
97
+ ## Configuration
98
+
99
+ The telemetry service is configured with:
100
+ - Azure resource: [imcp-telemetry](https://ms.portal.azure.com/#@microsoft.onmicrosoft.com/resource/subscriptions/b211ffce-ec5c-4267-b15c-138d440e3fbc/resourcegroups/aicoder/providers/microsoft.insights/components/imcp-telemetry/overview)
101
+ - Instrumentation Key: `c5fc06c7-a96c-4d80-9aff-bc9c933db0d1`
102
+ - Cloud Role: `imcp`
103
+ - Batch Size: 250 events
104
+
105
+ ## User Identity in Telemetry
106
+
107
+ The system implements user identity tracking through the Logger class (`src/utils/logger.ts`):
108
+
109
+ 1. **User Resolution**
110
+ - Windows: Uses OS username directly via `os.userInfo()`
111
+ - Mac/Linux: Uses GitHub alias stored in user info file
112
+ - Falls back to OS username if user info is unavailable
113
+
114
+ 2. **Identity Storage**
115
+ - Location: Stored in system-specific settings directory
116
+ - Format: JSON file containing alias, name, and email
117
+ - Updates: Managed during GitHub authentication
118
+
119
+ 3. **Identity Usage**
120
+ - All telemetry events automatically include username/alias
121
+ - Consistent user tracking across sessions
122
+ - Microsoft account validation ensures organizational identity
123
+
124
+ ## Future Improvements
125
+
126
+ 1. **Enhanced Metrics**
127
+ - Add performance metrics for key operations
128
+ - Implement custom metric dimensions
129
+
130
+ 2. **Error Analysis**
131
+ - Implement more detailed error categorization
132
+ - Add correlation IDs for related operations
133
+
134
+ 3. **User Analytics**
135
+ - Track user interaction patterns
136
+ - Monitor feature usage statistics
@@ -0,0 +1,26 @@
1
+ ru# Active Context
2
+
3
+ ## Current Focus
4
+
5
+ - [2025-05-16 09:22:21] - Task completed: Made "IMCP Server Manager" title in `src/web/public/index.html` clickable, linking to `index.html`.
6
+ - [YYYY-MM-DD HH:MM:SS] - Initializing Memory Bank.
7
+
8
+ ## Recent Changes
9
+
10
+ - [YYYY-MM-DD HH:MM:SS] - Created activeContext.md.
11
+ - [2025-05-16 13:28:00] - Refactored `InstallationService` to delegate requirement handling to the new `RequirementService`. Updated `RequirementService` to correctly handle `reqConfig` scoping and type fallbacks in `processRequirementUpdates`.
12
+
13
+ ## Open Questions/Issues
14
+
15
+ - None
16
+
17
+ [2025-05-16 16:07:29] - Current Focus: Completed redesign of installation operation status and polling. New InstallOperationManager and associated types/APIs implemented. Step recording integrated into relevant services and installers.
18
+ [2025-05-17 00:26:11] - Refactoring InstallOperationManager: Now instance-based per category/server, with new file structure for status persistence. Current focus is on updating all usages and ensuring compatibility with the new API and file layout.
19
+ [2025-05-17 15:02:39] - Current Focus: Completed refactoring of `RequirementService.ts` to use the new instance-based `InstallOperationManager` and its `recording`/`recordingAsync` methods. This aligns it with the updated `InstallOperationManager` architecture.
20
+ [2025-05-17 15:26:20] - Current focus: Refactored all requirement installer classes and factory to support InstallOperationManager step recording. All install methods now accept a recorder and log critical steps for install operations.
21
+ [2025-05-18 13:21:30] - Current Focus: Completed implementation of main modal refresh logic. This involved:
22
+ - Modifying `loadingModal.js` to dispatch a `refreshMainModalContent` event on close.
23
+ - Updating `installation.js` to store `categoryName` and `serverName` in `localStorage`.
24
+ - Adding an event listener in `modal.js` to retrieve these values and call `showInstallModal` with both parameters, resolving previous "Server configuration not found" errors.
25
+ - This replaces the previous page reload behavior, improving UX.
26
+ [2025-05-18 11:33:18] - Current Focus: Standardized all step recording names for installation/onboarding operations by introducing `src/core/metadatas/recordingConstants.ts`. This file now serves as the single source of truth for static step names and documents dynamic step name patterns, ensuring consistency across backend and frontend.