imcp 0.1.3 → 0.1.5

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 (239) hide show
  1. package/README.md +21 -4
  2. package/dist/cli/commands/install.js.map +1 -0
  3. package/dist/cli/commands/list.js.map +1 -0
  4. package/dist/cli/commands/pull.js.map +1 -0
  5. package/dist/cli/commands/serve.js.map +1 -0
  6. package/dist/cli/commands/start.d.ts +2 -0
  7. package/dist/cli/commands/start.js +32 -0
  8. package/dist/cli/commands/start.js.map +1 -0
  9. package/dist/cli/commands/sync.d.ts +2 -0
  10. package/dist/cli/commands/sync.js +17 -0
  11. package/dist/cli/commands/sync.js.map +1 -0
  12. package/dist/cli/commands/uninstall.js.map +1 -0
  13. package/dist/cli/index.js +0 -0
  14. package/dist/cli/index.js.map +1 -0
  15. package/dist/core/ConfigurationLoader.d.ts +32 -0
  16. package/{src/core/loaders/ConfigurationLoader.ts → dist/core/ConfigurationLoader.js} +236 -298
  17. package/dist/core/ConfigurationLoader.js.map +1 -0
  18. package/dist/core/ConfigurationProvider.d.ts +35 -0
  19. package/{src/core/loaders/ConfigurationProvider.ts → dist/core/ConfigurationProvider.js} +375 -462
  20. package/dist/core/ConfigurationProvider.js.map +1 -0
  21. package/dist/core/InstallationService.d.ts +50 -0
  22. package/dist/core/InstallationService.js +350 -0
  23. package/dist/core/InstallationService.js.map +1 -0
  24. package/dist/core/MCPManager.d.ts +28 -0
  25. package/dist/core/MCPManager.js +188 -0
  26. package/dist/core/MCPManager.js.map +1 -0
  27. package/dist/core/RequirementService.d.ts +40 -0
  28. package/dist/core/RequirementService.js +110 -0
  29. package/dist/core/RequirementService.js.map +1 -0
  30. package/dist/core/ServerSchemaLoader.d.ts +11 -0
  31. package/dist/core/ServerSchemaLoader.js +43 -0
  32. package/dist/core/ServerSchemaLoader.js.map +1 -0
  33. package/dist/core/ServerSchemaProvider.d.ts +17 -0
  34. package/dist/core/ServerSchemaProvider.js +120 -0
  35. package/dist/core/ServerSchemaProvider.js.map +1 -0
  36. package/dist/core/constants.d.ts +47 -0
  37. package/dist/core/constants.js +94 -0
  38. package/dist/core/constants.js.map +1 -0
  39. package/dist/core/installers/BaseInstaller.d.ts +74 -0
  40. package/dist/core/installers/BaseInstaller.js +253 -0
  41. package/dist/core/installers/BaseInstaller.js.map +1 -0
  42. package/dist/core/installers/ClientInstaller.d.ts +23 -0
  43. package/dist/core/installers/ClientInstaller.js +564 -0
  44. package/dist/core/installers/ClientInstaller.js.map +1 -0
  45. package/dist/core/installers/CommandInstaller.d.ts +37 -0
  46. package/{src/core/installers/requirements/CommandInstaller.ts → dist/core/installers/CommandInstaller.js} +173 -231
  47. package/dist/core/installers/CommandInstaller.js.map +1 -0
  48. package/dist/core/installers/GeneralInstaller.d.ts +33 -0
  49. package/dist/core/installers/GeneralInstaller.js +85 -0
  50. package/dist/core/installers/GeneralInstaller.js.map +1 -0
  51. package/dist/core/installers/InstallerFactory.d.ts +54 -0
  52. package/{src/core/installers/requirements/InstallerFactory.ts → dist/core/installers/InstallerFactory.js} +97 -112
  53. package/dist/core/installers/InstallerFactory.js.map +1 -0
  54. package/dist/core/installers/NpmInstaller.d.ts +26 -0
  55. package/dist/core/installers/NpmInstaller.js +127 -0
  56. package/dist/core/installers/NpmInstaller.js.map +1 -0
  57. package/dist/core/installers/PipInstaller.d.ts +28 -0
  58. package/dist/core/installers/PipInstaller.js +127 -0
  59. package/dist/core/installers/PipInstaller.js.map +1 -0
  60. package/{src/core/installers/requirements/RequirementInstaller.ts → dist/core/installers/RequirementInstaller.d.ts} +33 -42
  61. package/dist/core/installers/RequirementInstaller.js +3 -0
  62. package/dist/core/installers/RequirementInstaller.js.map +1 -0
  63. package/dist/core/installers/clients/BaseClientInstaller.js.map +1 -0
  64. package/dist/core/installers/clients/ClientInstaller.js.map +1 -0
  65. package/dist/core/installers/clients/ClientInstallerFactory.js.map +1 -0
  66. package/dist/core/installers/clients/ClineInstaller.js.map +1 -0
  67. package/dist/core/installers/clients/ExtensionInstaller.js.map +1 -0
  68. package/dist/core/installers/clients/GithubCopilotInstaller.js.map +1 -0
  69. package/dist/core/installers/clients/MSRooCodeInstaller.js.map +1 -0
  70. package/dist/core/installers/index.js.map +1 -0
  71. package/dist/core/installers/requirements/BaseInstaller.js.map +1 -0
  72. package/dist/core/installers/requirements/CommandInstaller.js.map +1 -0
  73. package/dist/core/installers/requirements/GeneralInstaller.js.map +1 -0
  74. package/dist/core/installers/requirements/InstallerFactory.js +2 -0
  75. package/dist/core/installers/requirements/InstallerFactory.js.map +1 -0
  76. package/dist/core/installers/requirements/NpmInstaller.js.map +1 -0
  77. package/dist/core/installers/requirements/NugetInstaller.d.ts +37 -0
  78. package/dist/core/installers/requirements/NugetInstaller.js +189 -0
  79. package/dist/core/installers/requirements/NugetInstaller.js.map +1 -0
  80. package/dist/core/installers/requirements/PipInstaller.js.map +1 -0
  81. package/dist/core/installers/requirements/RequirementInstaller.js.map +1 -0
  82. package/dist/core/loaders/ConfigurationLoader.js.map +1 -0
  83. package/dist/core/loaders/ConfigurationProvider.js.map +1 -0
  84. package/dist/core/loaders/InstallOperationManager.js.map +1 -0
  85. package/dist/core/loaders/ServerSchemaLoader.js.map +1 -0
  86. package/dist/core/loaders/ServerSchemaProvider.js.map +1 -0
  87. package/dist/core/loaders/SystemSettingsManager.js.map +1 -0
  88. package/dist/core/metadatas/constants.js.map +1 -0
  89. package/dist/core/metadatas/recordingConstants.d.ts +2 -0
  90. package/dist/core/metadatas/recordingConstants.js +2 -0
  91. package/dist/core/metadatas/recordingConstants.js.map +1 -0
  92. package/dist/core/metadatas/types.d.ts +1 -1
  93. package/dist/core/metadatas/types.js.map +1 -0
  94. package/dist/core/onboard/FeedOnboardService.js +1 -22
  95. package/dist/core/onboard/FeedOnboardService.js.map +1 -0
  96. package/dist/core/onboard/OnboardProcessor.js.map +1 -0
  97. package/dist/core/onboard/OnboardStatus.js.map +1 -0
  98. package/dist/core/onboard/OnboardStatusManager.js.map +1 -0
  99. package/dist/core/types.d.ts +166 -0
  100. package/dist/core/types.js +16 -0
  101. package/dist/core/types.js.map +1 -0
  102. package/dist/core/validators/FeedValidator.js.map +1 -0
  103. package/dist/core/validators/IServerValidator.js.map +1 -0
  104. package/dist/core/validators/SSEServerValidator.js.map +1 -0
  105. package/dist/core/validators/ServerValidatorFactory.js.map +1 -0
  106. package/dist/core/validators/StdioServerValidator.js +5 -5
  107. package/dist/core/validators/StdioServerValidator.js.map +1 -0
  108. package/dist/index.js.map +1 -0
  109. package/dist/services/InstallRequestValidator.d.ts +21 -0
  110. package/dist/services/InstallRequestValidator.js +99 -0
  111. package/dist/services/InstallRequestValidator.js.map +1 -0
  112. package/dist/services/InstallationService.js.map +1 -0
  113. package/dist/services/MCPManager.js.map +1 -0
  114. package/dist/services/RequirementService.js.map +1 -0
  115. package/dist/services/ServerService.js.map +1 -0
  116. package/dist/services/TelemetryService.js.map +1 -0
  117. package/dist/utils/UpdateCheckTracker.js.map +1 -0
  118. package/dist/utils/adoUtils.js.map +1 -0
  119. package/dist/utils/clientUtils.js.map +1 -0
  120. package/dist/utils/feedUtils.js.map +1 -0
  121. package/dist/utils/githubAuth.js.map +1 -0
  122. package/dist/utils/githubUtils.js.map +1 -0
  123. package/dist/utils/logger.js.map +1 -0
  124. package/dist/utils/macroExpressionUtils.js.map +1 -0
  125. package/dist/utils/osUtils.d.ts +11 -0
  126. package/dist/utils/osUtils.js +100 -0
  127. package/dist/utils/osUtils.js.map +1 -0
  128. package/dist/utils/versionUtils.js.map +1 -0
  129. package/dist/web/contract/serverContract.js.map +1 -0
  130. package/dist/web/public/index.html +1 -1
  131. package/dist/web/public/js/modal/installHandler.js +227 -0
  132. package/dist/web/public/js/modal/loadingUI.js +74 -0
  133. package/dist/web/public/js/modal/messageQueue.js +101 -45
  134. package/dist/web/public/js/modal/modalUI.js +214 -0
  135. package/{src/web/public/js/modal/versionUtils.js → dist/web/public/js/modal/version.js} +1 -1
  136. package/dist/web/public/js/onboard/templates.js +1 -0
  137. package/dist/web/public/js/serverCategoryList.js +3 -3
  138. package/dist/web/public/onboard.html +4 -4
  139. package/dist/web/server.js.map +1 -0
  140. package/package.json +5 -1
  141. package/.github/ISSUE_TEMPLATE/JitAccess.yml +0 -28
  142. package/.github/acl/access.yml +0 -20
  143. package/.github/compliance/inventory.yml +0 -5
  144. package/.github/policies/jit.yml +0 -19
  145. package/.roo/rules-code/rules.md +0 -88
  146. package/dist/core/onboard/InstallOperationManager.d.ts +0 -23
  147. package/dist/core/onboard/InstallOperationManager.js +0 -144
  148. package/docs/ONBOARDING_PAGE_DESIGN.md +0 -260
  149. package/docs/Telemetry.md +0 -136
  150. package/memory-bank/activeContext.md +0 -26
  151. package/memory-bank/decisionLog.md +0 -91
  152. package/memory-bank/productContext.md +0 -41
  153. package/memory-bank/progress.md +0 -35
  154. package/memory-bank/systemPatterns.md +0 -10
  155. package/src/cli/commands/install.ts +0 -139
  156. package/src/cli/commands/list.ts +0 -113
  157. package/src/cli/commands/pull.ts +0 -16
  158. package/src/cli/commands/serve.ts +0 -39
  159. package/src/cli/commands/uninstall.ts +0 -64
  160. package/src/cli/index.ts +0 -82
  161. package/src/core/installers/clients/BaseClientInstaller.ts +0 -341
  162. package/src/core/installers/clients/ClientInstaller.ts +0 -222
  163. package/src/core/installers/clients/ClientInstallerFactory.ts +0 -43
  164. package/src/core/installers/clients/ClineInstaller.ts +0 -35
  165. package/src/core/installers/clients/ExtensionInstaller.ts +0 -165
  166. package/src/core/installers/clients/GithubCopilotInstaller.ts +0 -79
  167. package/src/core/installers/clients/MSRooCodeInstaller.ts +0 -32
  168. package/src/core/installers/index.ts +0 -11
  169. package/src/core/installers/requirements/BaseInstaller.ts +0 -85
  170. package/src/core/installers/requirements/GeneralInstaller.ts +0 -133
  171. package/src/core/installers/requirements/NpmInstaller.ts +0 -271
  172. package/src/core/installers/requirements/PipInstaller.ts +0 -207
  173. package/src/core/loaders/InstallOperationManager.ts +0 -367
  174. package/src/core/loaders/ServerSchemaLoader.ts +0 -117
  175. package/src/core/loaders/ServerSchemaProvider.ts +0 -99
  176. package/src/core/loaders/SystemSettingsManager.ts +0 -278
  177. package/src/core/metadatas/constants.ts +0 -122
  178. package/src/core/metadatas/recordingConstants.ts +0 -62
  179. package/src/core/metadatas/types.ts +0 -202
  180. package/src/core/onboard/FeedOnboardService.ts +0 -524
  181. package/src/core/onboard/OnboardProcessor.ts +0 -356
  182. package/src/core/onboard/OnboardStatus.ts +0 -60
  183. package/src/core/onboard/OnboardStatusManager.ts +0 -416
  184. package/src/core/validators/FeedValidator.ts +0 -135
  185. package/src/core/validators/IServerValidator.ts +0 -21
  186. package/src/core/validators/SSEServerValidator.ts +0 -43
  187. package/src/core/validators/ServerValidatorFactory.ts +0 -51
  188. package/src/core/validators/StdioServerValidator.ts +0 -312
  189. package/src/index.ts +0 -44
  190. package/src/services/InstallationService.ts +0 -102
  191. package/src/services/MCPManager.ts +0 -249
  192. package/src/services/RequirementService.ts +0 -627
  193. package/src/services/ServerService.ts +0 -161
  194. package/src/services/TelemetryService.ts +0 -59
  195. package/src/utils/UpdateCheckTracker.ts +0 -86
  196. package/src/utils/adoUtils.ts +0 -293
  197. package/src/utils/clientUtils.ts +0 -72
  198. package/src/utils/feedUtils.ts +0 -31
  199. package/src/utils/githubAuth.ts +0 -212
  200. package/src/utils/githubUtils.ts +0 -164
  201. package/src/utils/logger.ts +0 -195
  202. package/src/utils/macroExpressionUtils.ts +0 -104
  203. package/src/utils/osUtils.ts +0 -597
  204. package/src/utils/versionUtils.ts +0 -114
  205. package/src/web/contract/serverContract.ts +0 -74
  206. package/src/web/public/css/detailsWidget.css +0 -235
  207. package/src/web/public/css/modal.css +0 -757
  208. package/src/web/public/css/notifications.css +0 -101
  209. package/src/web/public/css/onboard.css +0 -107
  210. package/src/web/public/css/serverCategoryList.css +0 -120
  211. package/src/web/public/css/serverDetails.css +0 -139
  212. package/src/web/public/index.html +0 -359
  213. package/src/web/public/js/api.js +0 -132
  214. package/src/web/public/js/detailsWidget.js +0 -264
  215. package/src/web/public/js/flights/flights.js +0 -127
  216. package/src/web/public/js/modal/index.js +0 -52
  217. package/src/web/public/js/modal/installModal.js +0 -162
  218. package/src/web/public/js/modal/installation.js +0 -266
  219. package/src/web/public/js/modal/loadingModal.js +0 -182
  220. package/src/web/public/js/modal/modalSetup.js +0 -595
  221. package/src/web/public/js/modal/modalUtils.js +0 -37
  222. package/src/web/public/js/modal.js +0 -42
  223. package/src/web/public/js/notifications.js +0 -137
  224. package/src/web/public/js/onboard/formProcessor.js +0 -1037
  225. package/src/web/public/js/onboard/index.js +0 -374
  226. package/src/web/public/js/onboard/publishHandler.js +0 -172
  227. package/src/web/public/js/onboard/state.js +0 -76
  228. package/src/web/public/js/onboard/templates.js +0 -341
  229. package/src/web/public/js/onboard/uiHandlers.js +0 -1076
  230. package/src/web/public/js/onboard/validationHandlers.js +0 -493
  231. package/src/web/public/js/serverCategoryDetails.js +0 -364
  232. package/src/web/public/js/serverCategoryList.js +0 -241
  233. package/src/web/public/js/settings.js +0 -314
  234. package/src/web/public/modal.html +0 -84
  235. package/src/web/public/onboard.html +0 -296
  236. package/src/web/public/settings.html +0 -135
  237. package/src/web/public/styles.css +0 -277
  238. package/src/web/server.ts +0 -478
  239. package/tsconfig.json +0 -18
@@ -1,23 +0,0 @@
1
- import { InstallOperationDetails } from '../metadatas/types.js';
2
- export declare class InstallOperationManager {
3
- private static instance;
4
- private installOperationStatus;
5
- private statusLock;
6
- private constructor();
7
- static getInstance(): InstallOperationManager;
8
- private withLock;
9
- private loadStatuses;
10
- private saveStatuses;
11
- private createOperationKey;
12
- recordStep(categoryName: string, serverName: string, stepName: string, isSucceeded: boolean, message?: string): Promise<InstallOperationDetails>;
13
- /**
14
- * Resets (deletes) the operation status for a given category and server.
15
- * This is useful to call before starting a new installation attempt.
16
- * @param categoryName The name of the category.
17
- * @param serverName The name of the server.
18
- */
19
- resetOperation(categoryName: string, serverName: string): Promise<void>;
20
- getDetails(categoryName: string, serverName: string): Promise<InstallOperationDetails | undefined>;
21
- getAllDetails(): Promise<Record<string, InstallOperationDetails>>;
22
- }
23
- export declare const installOperationManager: InstallOperationManager;
@@ -1,144 +0,0 @@
1
- import fs from 'fs/promises';
2
- import path from 'path';
3
- import { SETTINGS_DIR } from '../metadatas/constants.js';
4
- import { Logger } from '../../utils/logger.js';
5
- const INSTALL_STATUS_DIR = path.join(SETTINGS_DIR, 'install');
6
- const INSTALL_OPERATION_STATUS_FILE = path.join(INSTALL_STATUS_DIR, 'InstallOperationStatus.json');
7
- export class InstallOperationManager {
8
- static instance;
9
- installOperationStatus = {};
10
- statusLock = Promise.resolve();
11
- constructor() {
12
- this.loadStatuses().catch(error => Logger.error('Failed to initialize InstallOperationManager:', error));
13
- }
14
- static getInstance() {
15
- if (!InstallOperationManager.instance) {
16
- InstallOperationManager.instance = new InstallOperationManager();
17
- }
18
- return InstallOperationManager.instance;
19
- }
20
- async withLock(operation) {
21
- const current = this.statusLock;
22
- let resolve;
23
- this.statusLock = new Promise(r => resolve = r);
24
- try {
25
- await current;
26
- return await operation();
27
- }
28
- finally {
29
- resolve();
30
- }
31
- }
32
- async loadStatuses() {
33
- await this.withLock(async () => {
34
- try {
35
- await fs.mkdir(INSTALL_STATUS_DIR, { recursive: true });
36
- const data = await fs.readFile(INSTALL_OPERATION_STATUS_FILE, 'utf-8');
37
- this.installOperationStatus = JSON.parse(data);
38
- }
39
- catch (error) {
40
- if (error.code === 'ENOENT') {
41
- this.installOperationStatus = {};
42
- await this.saveStatuses(); // Create the file if it doesn't exist
43
- }
44
- else {
45
- Logger.error('Failed to load install operation statuses:', error);
46
- this.installOperationStatus = {}; // Initialize with empty statuses in case of other errors
47
- }
48
- }
49
- });
50
- }
51
- async saveStatuses() {
52
- await fs.mkdir(INSTALL_STATUS_DIR, { recursive: true });
53
- await fs.writeFile(INSTALL_OPERATION_STATUS_FILE, JSON.stringify(this.installOperationStatus, null, 2));
54
- }
55
- createOperationKey(categoryName, serverName) {
56
- return `${categoryName}-${serverName}`;
57
- }
58
- async recordStep(categoryName, serverName, stepName, isSucceeded, message) {
59
- return await this.withLock(async () => {
60
- const operationKey = this.createOperationKey(categoryName, serverName);
61
- let operationDetails = this.installOperationStatus[operationKey];
62
- const newStep = {
63
- name: stepName,
64
- isSucceeded,
65
- message,
66
- timestamp: new Date().toISOString(),
67
- };
68
- if (!operationDetails) {
69
- operationDetails = {
70
- currentStep: stepName,
71
- steps: [newStep],
72
- lastUpdated: new Date().toISOString(),
73
- error: !isSucceeded ? message : undefined,
74
- overallStatus: isSucceeded ? 'in-progress' : 'failed',
75
- };
76
- }
77
- else {
78
- operationDetails.steps.push(newStep);
79
- operationDetails.currentStep = stepName;
80
- operationDetails.lastUpdated = new Date().toISOString();
81
- if (!isSucceeded) {
82
- operationDetails.overallStatus = 'failed';
83
- if (!operationDetails.error) { // Store the first error
84
- operationDetails.error = message;
85
- }
86
- }
87
- else {
88
- // If this step succeeded, check if all previous steps also succeeded.
89
- // If a previous step failed, the overall status remains 'failed'.
90
- // If all steps are successful so far, it's 'in-progress' unless it's a known completion step.
91
- if (operationDetails.overallStatus !== 'failed') {
92
- if (stepName.toLowerCase().includes('completed') || stepName.toLowerCase().includes('succeeded')) {
93
- // Check if this is a "final" success step
94
- const isFinalSuccess = operationDetails.steps.every(s => s.isSucceeded);
95
- operationDetails.overallStatus = isFinalSuccess ? 'completed' : 'in-progress';
96
- if (isFinalSuccess)
97
- operationDetails.error = undefined; // Clear error on final success
98
- }
99
- else {
100
- operationDetails.overallStatus = 'in-progress';
101
- }
102
- }
103
- }
104
- }
105
- // Special handling for the "InstallCompleted" step or similar final step names
106
- if (stepName === 'InstallCompleted') {
107
- operationDetails.overallStatus = isSucceeded ? 'completed' : 'failed';
108
- if (isSucceeded)
109
- operationDetails.error = undefined;
110
- }
111
- this.installOperationStatus[operationKey] = operationDetails;
112
- await this.saveStatuses();
113
- return operationDetails;
114
- });
115
- }
116
- /**
117
- * Resets (deletes) the operation status for a given category and server.
118
- * This is useful to call before starting a new installation attempt.
119
- * @param categoryName The name of the category.
120
- * @param serverName The name of the server.
121
- */
122
- async resetOperation(categoryName, serverName) {
123
- await this.withLock(async () => {
124
- const operationKey = this.createOperationKey(categoryName, serverName);
125
- if (this.installOperationStatus[operationKey]) {
126
- delete this.installOperationStatus[operationKey];
127
- Logger.info(`Reset installation operation status for ${operationKey}`);
128
- await this.saveStatuses();
129
- }
130
- });
131
- }
132
- async getDetails(categoryName, serverName) {
133
- await this.loadStatuses(); // Ensure latest statuses are loaded
134
- const operationKey = this.createOperationKey(categoryName, serverName);
135
- return this.installOperationStatus[operationKey];
136
- }
137
- async getAllDetails() {
138
- await this.loadStatuses();
139
- return this.installOperationStatus;
140
- }
141
- }
142
- // Export singleton instance
143
- export const installOperationManager = InstallOperationManager.getInstance();
144
- //# sourceMappingURL=InstallOperationManager.js.map
@@ -1,260 +0,0 @@
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.
package/docs/Telemetry.md DELETED
@@ -1,136 +0,0 @@
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
@@ -1,26 +0,0 @@
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.