@angular-modernizer/adapter-mcp 0.1.1
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.
- package/LICENSE +21 -0
- package/README.md +917 -0
- package/dist/cli.d.ts +8 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +129 -0
- package/dist/cli.js.map +1 -0
- package/dist/core/project-analyzer.d.ts +59 -0
- package/dist/core/project-analyzer.d.ts.map +1 -0
- package/dist/core/project-analyzer.js +116 -0
- package/dist/core/project-analyzer.js.map +1 -0
- package/dist/index.d.ts +46 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +51 -0
- package/dist/index.js.map +1 -0
- package/dist/mcp-watcher.d.ts +119 -0
- package/dist/mcp-watcher.d.ts.map +1 -0
- package/dist/mcp-watcher.js +380 -0
- package/dist/mcp-watcher.js.map +1 -0
- package/dist/server/json-rpc-handler.d.ts +57 -0
- package/dist/server/json-rpc-handler.d.ts.map +1 -0
- package/dist/server/json-rpc-handler.js +222 -0
- package/dist/server/json-rpc-handler.js.map +1 -0
- package/dist/server/mcp-server.d.ts +62 -0
- package/dist/server/mcp-server.d.ts.map +1 -0
- package/dist/server/mcp-server.js +184 -0
- package/dist/server/mcp-server.js.map +1 -0
- package/dist/server/tool-registry.d.ts +73 -0
- package/dist/server/tool-registry.d.ts.map +1 -0
- package/dist/server/tool-registry.js +102 -0
- package/dist/server/tool-registry.js.map +1 -0
- package/dist/streaming/progress-store.d.ts +120 -0
- package/dist/streaming/progress-store.d.ts.map +1 -0
- package/dist/streaming/progress-store.js +238 -0
- package/dist/streaming/progress-store.js.map +1 -0
- package/dist/tools/analyze-build-impact.d.ts +127 -0
- package/dist/tools/analyze-build-impact.d.ts.map +1 -0
- package/dist/tools/analyze-build-impact.js +194 -0
- package/dist/tools/analyze-build-impact.js.map +1 -0
- package/dist/tools/analyze-core-to-shared.d.ts +163 -0
- package/dist/tools/analyze-core-to-shared.d.ts.map +1 -0
- package/dist/tools/analyze-core-to-shared.js +436 -0
- package/dist/tools/analyze-core-to-shared.js.map +1 -0
- package/dist/tools/analyze-parser-performance.d.ts +105 -0
- package/dist/tools/analyze-parser-performance.d.ts.map +1 -0
- package/dist/tools/analyze-parser-performance.js +313 -0
- package/dist/tools/analyze-parser-performance.js.map +1 -0
- package/dist/tools/analyze-project.d.ts +277 -0
- package/dist/tools/analyze-project.d.ts.map +1 -0
- package/dist/tools/analyze-project.js +946 -0
- package/dist/tools/analyze-project.js.map +1 -0
- package/dist/tools/check-incremental-compatibility.d.ts +109 -0
- package/dist/tools/check-incremental-compatibility.d.ts.map +1 -0
- package/dist/tools/check-incremental-compatibility.js +302 -0
- package/dist/tools/check-incremental-compatibility.js.map +1 -0
- package/dist/tools/collect-feedback.d.ts +117 -0
- package/dist/tools/collect-feedback.d.ts.map +1 -0
- package/dist/tools/collect-feedback.js +773 -0
- package/dist/tools/collect-feedback.js.map +1 -0
- package/dist/tools/extract-libraries.d.ts +121 -0
- package/dist/tools/extract-libraries.d.ts.map +1 -0
- package/dist/tools/extract-libraries.js +223 -0
- package/dist/tools/extract-libraries.js.map +1 -0
- package/dist/tools/find-angular-symbol.d.ts +55 -0
- package/dist/tools/find-angular-symbol.d.ts.map +1 -0
- package/dist/tools/find-angular-symbol.js +104 -0
- package/dist/tools/find-angular-symbol.js.map +1 -0
- package/dist/tools/find-usages.d.ts +65 -0
- package/dist/tools/find-usages.d.ts.map +1 -0
- package/dist/tools/find-usages.js +108 -0
- package/dist/tools/find-usages.js.map +1 -0
- package/dist/tools/get-call-graph.d.ts +61 -0
- package/dist/tools/get-call-graph.d.ts.map +1 -0
- package/dist/tools/get-call-graph.js +119 -0
- package/dist/tools/get-call-graph.js.map +1 -0
- package/dist/tools/get-operation-progress-tool.d.ts +29 -0
- package/dist/tools/get-operation-progress-tool.d.ts.map +1 -0
- package/dist/tools/get-operation-progress-tool.js +36 -0
- package/dist/tools/get-operation-progress-tool.js.map +1 -0
- package/dist/tools/get-operation-progress.d.ts +51 -0
- package/dist/tools/get-operation-progress.d.ts.map +1 -0
- package/dist/tools/get-operation-progress.js +93 -0
- package/dist/tools/get-operation-progress.js.map +1 -0
- package/dist/tools/helpers/feedback-analyzer.d.ts +43 -0
- package/dist/tools/helpers/feedback-analyzer.d.ts.map +1 -0
- package/dist/tools/helpers/feedback-analyzer.js +196 -0
- package/dist/tools/helpers/feedback-analyzer.js.map +1 -0
- package/dist/tools/helpers/find-ts-config.d.ts +10 -0
- package/dist/tools/helpers/find-ts-config.d.ts.map +1 -0
- package/dist/tools/helpers/find-ts-config.js +32 -0
- package/dist/tools/helpers/find-ts-config.js.map +1 -0
- package/dist/tools/helpers/platform-root-resolver.d.ts +33 -0
- package/dist/tools/helpers/platform-root-resolver.d.ts.map +1 -0
- package/dist/tools/helpers/platform-root-resolver.js +60 -0
- package/dist/tools/helpers/platform-root-resolver.js.map +1 -0
- package/dist/tools/helpers/rule-matcher.d.ts +84 -0
- package/dist/tools/helpers/rule-matcher.d.ts.map +1 -0
- package/dist/tools/helpers/rule-matcher.js +212 -0
- package/dist/tools/helpers/rule-matcher.js.map +1 -0
- package/dist/tools/helpers/suggestion-generator.d.ts +66 -0
- package/dist/tools/helpers/suggestion-generator.d.ts.map +1 -0
- package/dist/tools/helpers/suggestion-generator.js +248 -0
- package/dist/tools/helpers/suggestion-generator.js.map +1 -0
- package/dist/tools/learn-patterns.d.ts +368 -0
- package/dist/tools/learn-patterns.d.ts.map +1 -0
- package/dist/tools/learn-patterns.js +1089 -0
- package/dist/tools/learn-patterns.js.map +1 -0
- package/dist/tools/orchestrate-migration.d.ts +187 -0
- package/dist/tools/orchestrate-migration.d.ts.map +1 -0
- package/dist/tools/orchestrate-migration.js +235 -0
- package/dist/tools/orchestrate-migration.js.map +1 -0
- package/dist/tools/parse-stack-trace.d.ts +63 -0
- package/dist/tools/parse-stack-trace.d.ts.map +1 -0
- package/dist/tools/parse-stack-trace.js +92 -0
- package/dist/tools/parse-stack-trace.js.map +1 -0
- package/dist/tools/plan-migration.d.ts +388 -0
- package/dist/tools/plan-migration.d.ts.map +1 -0
- package/dist/tools/plan-migration.js +826 -0
- package/dist/tools/plan-migration.js.map +1 -0
- package/dist/tools/resolve-type.d.ts +54 -0
- package/dist/tools/resolve-type.d.ts.map +1 -0
- package/dist/tools/resolve-type.js +101 -0
- package/dist/tools/resolve-type.js.map +1 -0
- package/dist/tools/review-feedback.d.ts +124 -0
- package/dist/tools/review-feedback.d.ts.map +1 -0
- package/dist/tools/review-feedback.js +276 -0
- package/dist/tools/review-feedback.js.map +1 -0
- package/dist/tools/rollback-changes.d.ts +42 -0
- package/dist/tools/rollback-changes.d.ts.map +1 -0
- package/dist/tools/rollback-changes.js +95 -0
- package/dist/tools/rollback-changes.js.map +1 -0
- package/dist/tools/run-angular-cli.d.ts +102 -0
- package/dist/tools/run-angular-cli.d.ts.map +1 -0
- package/dist/tools/run-angular-cli.js +152 -0
- package/dist/tools/run-angular-cli.js.map +1 -0
- package/dist/tools/run-build.d.ts +201 -0
- package/dist/tools/run-build.d.ts.map +1 -0
- package/dist/tools/run-build.js +554 -0
- package/dist/tools/run-build.js.map +1 -0
- package/dist/tools/run-schematic.d.ts +173 -0
- package/dist/tools/run-schematic.d.ts.map +1 -0
- package/dist/tools/run-schematic.js +410 -0
- package/dist/tools/run-schematic.js.map +1 -0
- package/dist/tools/scan-all.d.ts +160 -0
- package/dist/tools/scan-all.d.ts.map +1 -0
- package/dist/tools/scan-all.js +486 -0
- package/dist/tools/scan-all.js.map +1 -0
- package/dist/tools/scan-angular.d.ts +132 -0
- package/dist/tools/scan-angular.d.ts.map +1 -0
- package/dist/tools/scan-angular.js +411 -0
- package/dist/tools/scan-angular.js.map +1 -0
- package/dist/tools/scan-architecture.d.ts +351 -0
- package/dist/tools/scan-architecture.d.ts.map +1 -0
- package/dist/tools/scan-architecture.js +1290 -0
- package/dist/tools/scan-architecture.js.map +1 -0
- package/dist/tools/scan-solid.d.ts +132 -0
- package/dist/tools/scan-solid.d.ts.map +1 -0
- package/dist/tools/scan-solid.js +435 -0
- package/dist/tools/scan-solid.js.map +1 -0
- package/dist/tools/search-codebase.d.ts +64 -0
- package/dist/tools/search-codebase.d.ts.map +1 -0
- package/dist/tools/search-codebase.js +109 -0
- package/dist/tools/search-codebase.js.map +1 -0
- package/dist/tools/shared/scan-types.d.ts +200 -0
- package/dist/tools/shared/scan-types.d.ts.map +1 -0
- package/dist/tools/shared/scan-types.js +7 -0
- package/dist/tools/shared/scan-types.js.map +1 -0
- package/dist/tools/suggest-improvements.d.ts +96 -0
- package/dist/tools/suggest-improvements.d.ts.map +1 -0
- package/dist/tools/suggest-improvements.js +182 -0
- package/dist/tools/suggest-improvements.js.map +1 -0
- package/dist/tools/transform-code-batch.d.ts +57 -0
- package/dist/tools/transform-code-batch.d.ts.map +1 -0
- package/dist/tools/transform-code-batch.js +107 -0
- package/dist/tools/transform-code-batch.js.map +1 -0
- package/dist/tools/transform-code.d.ts +352 -0
- package/dist/tools/transform-code.d.ts.map +1 -0
- package/dist/tools/transform-code.js +1171 -0
- package/dist/tools/transform-code.js.map +1 -0
- package/dist/tools/validate-before-transform.d.ts +54 -0
- package/dist/tools/validate-before-transform.d.ts.map +1 -0
- package/dist/tools/validate-before-transform.js +141 -0
- package/dist/tools/validate-before-transform.js.map +1 -0
- package/dist/tools/validate-project-compatibility.d.ts +119 -0
- package/dist/tools/validate-project-compatibility.d.ts.map +1 -0
- package/dist/tools/validate-project-compatibility.js +243 -0
- package/dist/tools/validate-project-compatibility.js.map +1 -0
- package/dist/tools/validate-transformation.d.ts +105 -0
- package/dist/tools/validate-transformation.d.ts.map +1 -0
- package/dist/tools/validate-transformation.js +391 -0
- package/dist/tools/validate-transformation.js.map +1 -0
- package/dist/types.d.ts +153 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +38 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/format-tool-response.d.ts +72 -0
- package/dist/utils/format-tool-response.d.ts.map +1 -0
- package/dist/utils/format-tool-response.js +149 -0
- package/dist/utils/format-tool-response.js.map +1 -0
- package/package.json +70 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-rpc-handler.js","sourceRoot":"","sources":["../../src/server/json-rpc-handler.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AASH,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD;;GAEG;AACH,SAAS,QAAQ,CAAC,OAAe;IAC/B,MAAM,OAAO,GAAG,aAAa,EAAE,CAAC;IAChC,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAChC,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,KAAK,CAAC,WAAW,OAAO,EAAE,CAAC,CAAC;IACtC,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAM,OAAO,cAAc;IACR,QAAQ,CAAe;IAExC,YAAY,QAAsB;QAChC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,cAAc,CAAC,OAAe;QAClC,QAAQ,CACN,gEAAgE,OAAO,CAAC,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAC5F,CAAC;QAEF,IAAI,CAAC;YACH,qDAAqD;YACrD,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAY,CAAC;YAE9C,+CAA+C;YAC/C,IACE,OAAO,MAAM,KAAK,QAAQ;gBAC1B,MAAM,KAAK,IAAI;gBACf,CAAC,CAAC,SAAS,IAAI,MAAM,CAAC;gBACtB,CAAC,CAAC,QAAQ,IAAI,MAAM,CAAC,EACrB,CAAC;gBACD,QAAQ,CAAC,oDAAoD,CAAC,CAAC;gBAC/D,OAAO,IAAI,CAAC,mBAAmB,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC;YACnE,CAAC;YAED,8CAA8C;YAC9C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EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;gBACtE,QAAQ,CAAC,6CAA6C,CAAC,CAAC;YAC1D,CAAC;YAED,QAAQ,CAAC,mDAAmD,CAAC,CAAC;QAChE,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,QAAQ,CAAC,kCAAkC,KAAe,EAAE,CAAC,CAAC;YAC9D,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;IAED;;;OAGG;IACH,gBAAgB,CAAC,YAAiC;QAChD,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;QACpD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAChC,CAAC;CACF"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @angular-modernizer/adapter-mcp - MCP Server
|
|
3
|
+
*
|
|
4
|
+
* Main MCP server implementation that coordinates tool registry,
|
|
5
|
+
* JSON-RPC handling, and stdio communication.
|
|
6
|
+
*/
|
|
7
|
+
import { type MCPTool, type MCPServerConfig } from '../types.js';
|
|
8
|
+
/**
|
|
9
|
+
* Main MCP server class that handles the complete MCP protocol lifecycle.
|
|
10
|
+
*/
|
|
11
|
+
export declare class MCPServer {
|
|
12
|
+
private readonly registry;
|
|
13
|
+
private readonly handler;
|
|
14
|
+
private readonly config;
|
|
15
|
+
private running;
|
|
16
|
+
/** Accumulates incomplete JSON-RPC lines across stdin data events (BUG-6). */
|
|
17
|
+
private inputBuffer;
|
|
18
|
+
constructor(config?: MCPServerConfig);
|
|
19
|
+
/**
|
|
20
|
+
* Register an MCP tool with the server.
|
|
21
|
+
* @param tool - The tool to register
|
|
22
|
+
*/
|
|
23
|
+
registerTool(tool: MCPTool): void;
|
|
24
|
+
/**
|
|
25
|
+
* Start the MCP server and listen for messages via stdio.
|
|
26
|
+
*/
|
|
27
|
+
start(): void;
|
|
28
|
+
/**
|
|
29
|
+
* Stop the MCP server.
|
|
30
|
+
*/
|
|
31
|
+
stop(): void;
|
|
32
|
+
/**
|
|
33
|
+
* Check if the server is running.
|
|
34
|
+
*/
|
|
35
|
+
isRunning(): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Get server statistics.
|
|
38
|
+
*/
|
|
39
|
+
getStats(): {
|
|
40
|
+
running: boolean;
|
|
41
|
+
tools: {
|
|
42
|
+
totalTools: number;
|
|
43
|
+
toolNames: string[];
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Get all registered tools as a map.
|
|
48
|
+
*/
|
|
49
|
+
getToolsMap(): Map<string, MCPTool>;
|
|
50
|
+
/**
|
|
51
|
+
* Handle incoming data from stdin.
|
|
52
|
+
* Accumulates chunks in a buffer and processes only complete newline-terminated
|
|
53
|
+
* JSON-RPC lines. The remainder of an incomplete line is carried forward to the
|
|
54
|
+
* next data event (BUG-6).
|
|
55
|
+
*/
|
|
56
|
+
private handleInput;
|
|
57
|
+
/**
|
|
58
|
+
* Log a message based on configured log level.
|
|
59
|
+
*/
|
|
60
|
+
private log;
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=mcp-server.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["../../src/server/mcp-server.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,eAAe,EAErB,MAAM,aAAa,CAAC;AAmBrB;;GAEG;AACH,qBAAa,SAAS;IACpB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAe;IACxC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAiB;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkB;IACzC,OAAO,CAAC,OAAO,CAAS;IACxB,8EAA8E;IAC9E,OAAO,CAAC,WAAW,CAAM;gBAEb,MAAM,GAAE,eAAoB;IAaxC;;;OAGG;IACH,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI;IAIjC;;OAEG;IACH,KAAK,IAAI,IAAI;IA+Db;;OAEG;IACH,IAAI,IAAI,IAAI;IAMZ;;OAEG;IACH,SAAS,IAAI,OAAO;IAIpB;;OAEG;IACH,QAAQ,IAAI;QACV,OAAO,EAAE,OAAO,CAAC;QACjB,KAAK,EAAE;YAAE,UAAU,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,MAAM,EAAE,CAAA;SAAE,CAAC;KACpD;IAOD;;OAEG;IACH,WAAW,IAAI,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAInC;;;;;OAKG;YACW,WAAW;IAgDzB;;OAEG;IACH,OAAO,CAAC,GAAG;CAgBZ"}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @angular-modernizer/adapter-mcp - MCP Server
|
|
3
|
+
*
|
|
4
|
+
* Main MCP server implementation that coordinates tool registry,
|
|
5
|
+
* JSON-RPC handling, and stdio communication.
|
|
6
|
+
*/
|
|
7
|
+
import { ToolRegistry } from './tool-registry.js';
|
|
8
|
+
import { JsonRpcHandler } from './json-rpc-handler.js';
|
|
9
|
+
import { startMCPWatcher, stopMCPWatcher, getMCPWatcher, } from '../mcp-watcher.js';
|
|
10
|
+
/**
|
|
11
|
+
* Write debug message to MCP log file via watcher
|
|
12
|
+
*/
|
|
13
|
+
function debugLog(message) {
|
|
14
|
+
const watcher = getMCPWatcher();
|
|
15
|
+
if (watcher) {
|
|
16
|
+
watcher.log('DEBUG', message);
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
console.error(`[DEBUG] ${message}`);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Main MCP server class that handles the complete MCP protocol lifecycle.
|
|
24
|
+
*/
|
|
25
|
+
export class MCPServer {
|
|
26
|
+
registry;
|
|
27
|
+
handler;
|
|
28
|
+
config;
|
|
29
|
+
running = false;
|
|
30
|
+
/** Accumulates incomplete JSON-RPC lines across stdin data events (BUG-6). */
|
|
31
|
+
inputBuffer = '';
|
|
32
|
+
constructor(config = {}) {
|
|
33
|
+
this.config = {
|
|
34
|
+
timeout: 30000, // 30 seconds default
|
|
35
|
+
maxConcurrentTools: 5,
|
|
36
|
+
logLevel: 'info',
|
|
37
|
+
enableMetrics: false,
|
|
38
|
+
...config,
|
|
39
|
+
};
|
|
40
|
+
this.registry = new ToolRegistry();
|
|
41
|
+
this.handler = new JsonRpcHandler(this.registry);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Register an MCP tool with the server.
|
|
45
|
+
* @param tool - The tool to register
|
|
46
|
+
*/
|
|
47
|
+
registerTool(tool) {
|
|
48
|
+
this.registry.registerTool(tool);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Start the MCP server and listen for messages via stdio.
|
|
52
|
+
*/
|
|
53
|
+
start() {
|
|
54
|
+
if (this.running) {
|
|
55
|
+
throw new Error('MCP server is already running');
|
|
56
|
+
}
|
|
57
|
+
this.running = true;
|
|
58
|
+
this.log('info', 'MCP server starting...');
|
|
59
|
+
// Start MCP Watcher for debugging (3 second heartbeat, health check on port 9999)
|
|
60
|
+
startMCPWatcher('./mcp-server.log', 3000, 9999);
|
|
61
|
+
this.log('info', 'MCP Watcher started (heartbeat: 3s, health check: http://localhost:9999)');
|
|
62
|
+
debugLog('MCP start() called, setting up stdio handlers');
|
|
63
|
+
// Set up stdio handlers
|
|
64
|
+
process.stdin.setEncoding('utf8');
|
|
65
|
+
debugLog('MCP stdin encoding set to utf8');
|
|
66
|
+
process.stdin.on('data', (chunk) => {
|
|
67
|
+
debugLog(`MCP stdin data event - chunk length: ${chunk.length}, first 200 chars: ${chunk.substring(0, 200)}`);
|
|
68
|
+
this.handleInput(chunk).catch((error) => {
|
|
69
|
+
this.log('error', 'Error handling input:', error);
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
debugLog('MCP stdin data handler registered');
|
|
73
|
+
process.stdin.on('end', () => {
|
|
74
|
+
this.log('info', 'MCP server shutting down (stdin closed)');
|
|
75
|
+
stopMCPWatcher();
|
|
76
|
+
this.running = false;
|
|
77
|
+
// Flush streams and exit to prevent hanging clients
|
|
78
|
+
process.stdout.write('', () => {
|
|
79
|
+
process.stderr.write('', () => {
|
|
80
|
+
process.exit(0);
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
process.on('SIGINT', () => {
|
|
85
|
+
this.log('info', 'MCP server shutting down (SIGINT)');
|
|
86
|
+
stopMCPWatcher();
|
|
87
|
+
this.running = false;
|
|
88
|
+
process.exit(0);
|
|
89
|
+
});
|
|
90
|
+
process.on('SIGTERM', () => {
|
|
91
|
+
this.log('info', 'MCP server shutting down (SIGTERM)');
|
|
92
|
+
stopMCPWatcher();
|
|
93
|
+
this.running = false;
|
|
94
|
+
process.exit(0);
|
|
95
|
+
});
|
|
96
|
+
this.log('info', `MCP server started with ${this.registry.getStats().totalTools} tools`);
|
|
97
|
+
debugLog('MCP Server fully initialized, waiting for stdin input');
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Stop the MCP server.
|
|
101
|
+
*/
|
|
102
|
+
stop() {
|
|
103
|
+
stopMCPWatcher();
|
|
104
|
+
this.running = false;
|
|
105
|
+
this.log('info', 'MCP server stopped');
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Check if the server is running.
|
|
109
|
+
*/
|
|
110
|
+
isRunning() {
|
|
111
|
+
return this.running;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Get server statistics.
|
|
115
|
+
*/
|
|
116
|
+
getStats() {
|
|
117
|
+
return {
|
|
118
|
+
running: this.running,
|
|
119
|
+
tools: this.registry.getStats(),
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Get all registered tools as a map.
|
|
124
|
+
*/
|
|
125
|
+
getToolsMap() {
|
|
126
|
+
return this.registry.getAllToolsMap();
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Handle incoming data from stdin.
|
|
130
|
+
* Accumulates chunks in a buffer and processes only complete newline-terminated
|
|
131
|
+
* JSON-RPC lines. The remainder of an incomplete line is carried forward to the
|
|
132
|
+
* next data event (BUG-6).
|
|
133
|
+
*/
|
|
134
|
+
async handleInput(chunk) {
|
|
135
|
+
this.inputBuffer += chunk;
|
|
136
|
+
// Split on newlines; the last element is either empty (complete line) or an
|
|
137
|
+
// incomplete fragment that must be held back until more data arrives.
|
|
138
|
+
const lines = this.inputBuffer.split('\n');
|
|
139
|
+
// Keep the trailing incomplete fragment in the buffer.
|
|
140
|
+
this.inputBuffer = lines.pop() ?? '';
|
|
141
|
+
for (const line of lines) {
|
|
142
|
+
if (line.trim()) {
|
|
143
|
+
try {
|
|
144
|
+
debugLog(`MCP handleInput: Received line (first 150 chars): ${line.trim().substring(0, 150)}`);
|
|
145
|
+
const response = await this.handler.processMessage(line.trim());
|
|
146
|
+
debugLog(`MCP handleInput: processMessage returned ${response ? `response with id=${response.id}` : 'NULL'}`);
|
|
147
|
+
if (response) {
|
|
148
|
+
debugLog(`MCP handleInput: Calling sendResponse with id=${response.id}`);
|
|
149
|
+
await this.handler.sendResponse(response);
|
|
150
|
+
}
|
|
151
|
+
else {
|
|
152
|
+
debugLog('MCP handleInput: No response to send (processMessage returned null)');
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
catch (error) {
|
|
156
|
+
this.log('error', 'Error processing message:', error);
|
|
157
|
+
// Send error response
|
|
158
|
+
const errorResponse = {
|
|
159
|
+
jsonrpc: '2.0',
|
|
160
|
+
id: null,
|
|
161
|
+
error: {
|
|
162
|
+
code: -32603,
|
|
163
|
+
message: 'Internal error',
|
|
164
|
+
data: error instanceof Error ? error.message : String(error),
|
|
165
|
+
},
|
|
166
|
+
};
|
|
167
|
+
await this.handler.sendResponse(errorResponse);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Log a message based on configured log level.
|
|
174
|
+
*/
|
|
175
|
+
log(level, message, ...args) {
|
|
176
|
+
const levels = { debug: 0, info: 1, warn: 2, error: 3 };
|
|
177
|
+
const currentLevel = levels[this.config.logLevel ?? 'info'];
|
|
178
|
+
if (levels[level] >= currentLevel) {
|
|
179
|
+
const timestamp = new Date().toISOString();
|
|
180
|
+
console.error(`[${timestamp}] ${level.toUpperCase()}: ${message}`, ...args);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
//# sourceMappingURL=mcp-server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-server.js","sourceRoot":"","sources":["../../src/server/mcp-server.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAMvD,OAAO,EACL,eAAe,EACf,cAAc,EACd,aAAa,GACd,MAAM,mBAAmB,CAAC;AAE3B;;GAEG;AACH,SAAS,QAAQ,CAAC,OAAe;IAC/B,MAAM,OAAO,GAAG,aAAa,EAAE,CAAC;IAChC,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAChC,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,KAAK,CAAC,WAAW,OAAO,EAAE,CAAC,CAAC;IACtC,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAM,OAAO,SAAS;IACH,QAAQ,CAAe;IACvB,OAAO,CAAiB;IACxB,MAAM,CAAkB;IACjC,OAAO,GAAG,KAAK,CAAC;IACxB,8EAA8E;IACtE,WAAW,GAAG,EAAE,CAAC;IAEzB,YAAY,SAA0B,EAAE;QACtC,IAAI,CAAC,MAAM,GAAG;Y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;YAC3C,OAAO,CAAC,KAAK,CACX,IAAI,SAAS,KAAK,KAAK,CAAC,WAAW,EAAE,KAAK,OAAO,EAAE,EACnD,GAAG,IAAI,CACR,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @angular-modernizer/adapter-mcp - Tool Registry
|
|
3
|
+
*
|
|
4
|
+
* Central registry for MCP tools. Manages tool registration,
|
|
5
|
+
* discovery, and execution coordination.
|
|
6
|
+
*/
|
|
7
|
+
import { type MCPTool } from '../types.js';
|
|
8
|
+
/**
|
|
9
|
+
* Registry for MCP tools with registration and discovery capabilities.
|
|
10
|
+
*/
|
|
11
|
+
export declare class ToolRegistry {
|
|
12
|
+
private readonly tools;
|
|
13
|
+
/**
|
|
14
|
+
* Register a new MCP tool.
|
|
15
|
+
* @param tool - The tool to register
|
|
16
|
+
* @throws Error if tool name is already registered
|
|
17
|
+
*/
|
|
18
|
+
registerTool(tool: MCPTool): void;
|
|
19
|
+
/**
|
|
20
|
+
* Get a registered tool by name.
|
|
21
|
+
* @param name - Tool name
|
|
22
|
+
* @returns The tool or undefined if not found
|
|
23
|
+
*/
|
|
24
|
+
getTool(name: string): MCPTool | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Check if a tool is registered.
|
|
27
|
+
* @param name - Tool name
|
|
28
|
+
* @returns True if tool exists
|
|
29
|
+
*/
|
|
30
|
+
hasTool(name: string): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Get all registered tools.
|
|
33
|
+
* @returns Array of all registered tools
|
|
34
|
+
*/
|
|
35
|
+
getAllTools(): MCPTool[];
|
|
36
|
+
/**
|
|
37
|
+
* Get all registered tools as a map.
|
|
38
|
+
* @returns Map of tool name to tool instance
|
|
39
|
+
*/
|
|
40
|
+
getAllToolsMap(): Map<string, MCPTool>;
|
|
41
|
+
/**
|
|
42
|
+
* Get tool names for discovery.
|
|
43
|
+
* @returns Array of tool names
|
|
44
|
+
*/
|
|
45
|
+
getToolNames(): string[];
|
|
46
|
+
/**
|
|
47
|
+
* Execute a tool by name with given arguments.
|
|
48
|
+
* @param name - Tool name
|
|
49
|
+
* @param args - Tool arguments
|
|
50
|
+
* @returns Tool execution result in MCP format
|
|
51
|
+
* @throws Error if tool not found
|
|
52
|
+
*/
|
|
53
|
+
executeTool(name: string, args: Record<string, unknown>): Promise<unknown>;
|
|
54
|
+
/**
|
|
55
|
+
* Unregister a tool.
|
|
56
|
+
* @param name - Tool name
|
|
57
|
+
* @returns True if tool was removed, false if not found
|
|
58
|
+
*/
|
|
59
|
+
unregisterTool(name: string): boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Clear all registered tools.
|
|
62
|
+
*/
|
|
63
|
+
clear(): void;
|
|
64
|
+
/**
|
|
65
|
+
* Get registry statistics.
|
|
66
|
+
* @returns Statistics about registered tools
|
|
67
|
+
*/
|
|
68
|
+
getStats(): {
|
|
69
|
+
totalTools: number;
|
|
70
|
+
toolNames: string[];
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=tool-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-registry.d.ts","sourceRoot":"","sources":["../../src/server/tool-registry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AAG3C;;GAEG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA8B;IAEpD;;;;OAIG;IACH,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI;IAQjC;;;;OAIG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS;IAI1C;;;;OAIG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAI9B;;;OAGG;IACH,WAAW,IAAI,OAAO,EAAE;IAIxB;;;OAGG;IACH,cAAc,IAAI,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAItC;;;OAGG;IACH,YAAY,IAAI,MAAM,EAAE;IAIxB;;;;;;OAMG;IACG,WAAW,CACf,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,OAAO,CAAC,OAAO,CAAC;IAYnB;;;;OAIG;IACH,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAIrC;;OAEG;IACH,KAAK,IAAI,IAAI;IAIb;;;OAGG;IACH,QAAQ,IAAI;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,EAAE,CAAA;KAAE;CAMxD"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @angular-modernizer/adapter-mcp - Tool Registry
|
|
3
|
+
*
|
|
4
|
+
* Central registry for MCP tools. Manages tool registration,
|
|
5
|
+
* discovery, and execution coordination.
|
|
6
|
+
*/
|
|
7
|
+
import { formatToolResponse } from '../utils/format-tool-response.js';
|
|
8
|
+
/**
|
|
9
|
+
* Registry for MCP tools with registration and discovery capabilities.
|
|
10
|
+
*/
|
|
11
|
+
export class ToolRegistry {
|
|
12
|
+
tools = new Map();
|
|
13
|
+
/**
|
|
14
|
+
* Register a new MCP tool.
|
|
15
|
+
* @param tool - The tool to register
|
|
16
|
+
* @throws Error if tool name is already registered
|
|
17
|
+
*/
|
|
18
|
+
registerTool(tool) {
|
|
19
|
+
if (this.tools.has(tool.name)) {
|
|
20
|
+
throw new Error(`Tool '${tool.name}' is already registered`);
|
|
21
|
+
}
|
|
22
|
+
this.tools.set(tool.name, tool);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Get a registered tool by name.
|
|
26
|
+
* @param name - Tool name
|
|
27
|
+
* @returns The tool or undefined if not found
|
|
28
|
+
*/
|
|
29
|
+
getTool(name) {
|
|
30
|
+
return this.tools.get(name);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a tool is registered.
|
|
34
|
+
* @param name - Tool name
|
|
35
|
+
* @returns True if tool exists
|
|
36
|
+
*/
|
|
37
|
+
hasTool(name) {
|
|
38
|
+
return this.tools.has(name);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Get all registered tools.
|
|
42
|
+
* @returns Array of all registered tools
|
|
43
|
+
*/
|
|
44
|
+
getAllTools() {
|
|
45
|
+
return Array.from(this.tools.values());
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Get all registered tools as a map.
|
|
49
|
+
* @returns Map of tool name to tool instance
|
|
50
|
+
*/
|
|
51
|
+
getAllToolsMap() {
|
|
52
|
+
return new Map(this.tools);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Get tool names for discovery.
|
|
56
|
+
* @returns Array of tool names
|
|
57
|
+
*/
|
|
58
|
+
getToolNames() {
|
|
59
|
+
return Array.from(this.tools.keys());
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Execute a tool by name with given arguments.
|
|
63
|
+
* @param name - Tool name
|
|
64
|
+
* @param args - Tool arguments
|
|
65
|
+
* @returns Tool execution result in MCP format
|
|
66
|
+
* @throws Error if tool not found
|
|
67
|
+
*/
|
|
68
|
+
async executeTool(name, args) {
|
|
69
|
+
const tool = this.getTool(name);
|
|
70
|
+
if (!tool) {
|
|
71
|
+
throw new Error(`Unknown tool: ${name}`);
|
|
72
|
+
}
|
|
73
|
+
const result = await tool.execute(args);
|
|
74
|
+
// Format response according to MCP spec with human-readable summary
|
|
75
|
+
return formatToolResponse(name, result);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Unregister a tool.
|
|
79
|
+
* @param name - Tool name
|
|
80
|
+
* @returns True if tool was removed, false if not found
|
|
81
|
+
*/
|
|
82
|
+
unregisterTool(name) {
|
|
83
|
+
return this.tools.delete(name);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Clear all registered tools.
|
|
87
|
+
*/
|
|
88
|
+
clear() {
|
|
89
|
+
this.tools.clear();
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Get registry statistics.
|
|
93
|
+
* @returns Statistics about registered tools
|
|
94
|
+
*/
|
|
95
|
+
getStats() {
|
|
96
|
+
return {
|
|
97
|
+
totalTools: this.tools.size,
|
|
98
|
+
toolNames: this.getToolNames(),
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
//# sourceMappingURL=tool-registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-registry.js","sourceRoot":"","sources":["../../src/server/tool-registry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE;;GAEG;AACH,MAAM,OAAO,YAAY;IACN,KAAK,GAAG,IAAI,GAAG,EAAmB,CAAC;IAEpD;;;;OAIG;IACH,YAAY,CAAC,IAAa;QACxB,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,SAAS,IAAI,CAAC,IAAI,yBAAyB,CAAC,CAAC;QAC/D,CAAC;QAED,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAClC,CAAC;IAED;;;;OAIG;IACH,OAAO,CAAC,IAAY;QAClB,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;IAED;;;;OAIG;IACH,OAAO,CAAC,IAAY;QAClB,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;IAED;;;OAGG;IACH,WAAW;QACT,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;IACzC,CAAC;IAED;;;OAGG;IACH,cAAc;QACZ,OAAO,IAAI,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IAED;;;OAGG;IACH,YAAY;QACV,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;IACvC,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,WAAW,CACf,IAAY,EACZ,IAA6B;QAE7B,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAChC,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,MAAM,IAAI,KAAK,CAAC,iBAAiB,IAAI,EAAE,CAAC,CAAC;QAC3C,CAAC;QAED,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAExC,oEAAoE;QACpE,OAAO,kBAAkB,CAAC,IAAI,EAAE,MAAiC,CAAC,CAAC;IACrE,CAAC;IAED;;;;OAIG;IACH,cAAc,CAAC,IAAY;QACzB,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;IAED;;OAEG;IACH,KAAK;QACH,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;IAED;;;OAGG;IACH,QAAQ;QACN,OAAO;YACL,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI;YAC3B,SAAS,EAAE,IAAI,CAAC,YAAY,EAAE;SAC/B,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @angular-modernizer/adapter-mcp - Progress Store
|
|
3
|
+
*/
|
|
4
|
+
import type { StreamingProgressEvent } from '@angular-modernizer/core';
|
|
5
|
+
/**
|
|
6
|
+
* Metadata for tracking operation lifecycle
|
|
7
|
+
*/
|
|
8
|
+
export interface OperationMetadata {
|
|
9
|
+
readonly operationId: string;
|
|
10
|
+
readonly type: 'transformation' | 'analysis';
|
|
11
|
+
readonly startTime: number;
|
|
12
|
+
status: 'running' | 'completed' | 'failed' | 'cancelled';
|
|
13
|
+
error?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Complete operation state including events and metadata
|
|
17
|
+
*/
|
|
18
|
+
export interface OperationState {
|
|
19
|
+
metadata: OperationMetadata;
|
|
20
|
+
events: StreamingProgressEvent[];
|
|
21
|
+
result?: unknown;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Thread-safe singleton store for streaming operation progress
|
|
25
|
+
* Provides TTL-based cleanup and efficient event querying
|
|
26
|
+
*/
|
|
27
|
+
export declare class ProgressStore {
|
|
28
|
+
private static instance;
|
|
29
|
+
private readonly operations;
|
|
30
|
+
private readonly ttlMs;
|
|
31
|
+
private cleanupTimer;
|
|
32
|
+
/** TTL for running operations before they are considered timed-out (default: 10 minutes). */
|
|
33
|
+
private readonly runningTtlMs;
|
|
34
|
+
private constructor();
|
|
35
|
+
/**
|
|
36
|
+
* Get singleton instance
|
|
37
|
+
*/
|
|
38
|
+
static getInstance(): ProgressStore;
|
|
39
|
+
/**
|
|
40
|
+
* Reset singleton instance (for testing)
|
|
41
|
+
*/
|
|
42
|
+
static resetInstance(): void;
|
|
43
|
+
/**
|
|
44
|
+
* Create a new operation
|
|
45
|
+
*/
|
|
46
|
+
createOperation(operationId: string, metadata: Omit<OperationMetadata, 'status'>): void;
|
|
47
|
+
/**
|
|
48
|
+
* Add progress event to operation
|
|
49
|
+
*/
|
|
50
|
+
addEvent(operationId: string, event: StreamingProgressEvent): void;
|
|
51
|
+
/**
|
|
52
|
+
* Get events for operation, optionally filtering by timestamp
|
|
53
|
+
*/
|
|
54
|
+
getEvents(operationId: string, sinceTimestamp?: number): StreamingProgressEvent[];
|
|
55
|
+
/**
|
|
56
|
+
* Get operation metadata
|
|
57
|
+
*/
|
|
58
|
+
getMetadata(operationId: string): OperationMetadata;
|
|
59
|
+
/**
|
|
60
|
+
* Mark operation as complete
|
|
61
|
+
*/
|
|
62
|
+
markComplete(operationId: string): void;
|
|
63
|
+
/**
|
|
64
|
+
* Mark operation as failed
|
|
65
|
+
*/
|
|
66
|
+
markFailed(operationId: string, error: string): void;
|
|
67
|
+
/**
|
|
68
|
+
* Store the final result of a completed operation (e.g. violations array).
|
|
69
|
+
* Must be called before markComplete so callers can retrieve it via get-operation-progress.
|
|
70
|
+
*/
|
|
71
|
+
setResult(operationId: string, result: unknown): void;
|
|
72
|
+
/**
|
|
73
|
+
* Retrieve the stored result for an operation.
|
|
74
|
+
* Returns undefined if no result has been stored yet.
|
|
75
|
+
*/
|
|
76
|
+
getResult(operationId: string): unknown;
|
|
77
|
+
/**
|
|
78
|
+
* Cancel a running operation. No-op if already completed or cancelled.
|
|
79
|
+
*/
|
|
80
|
+
cancelOperation(operationId: string): void;
|
|
81
|
+
/**
|
|
82
|
+
* Returns true if the operation has been cancelled.
|
|
83
|
+
*/
|
|
84
|
+
isCancelled(operationId: string): boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Check if operation exists
|
|
87
|
+
*/
|
|
88
|
+
hasOperation(operationId: string): boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Get all operation IDs
|
|
91
|
+
*/
|
|
92
|
+
getAllOperationIds(): string[];
|
|
93
|
+
/**
|
|
94
|
+
* Delete operation (for cleanup)
|
|
95
|
+
*/
|
|
96
|
+
deleteOperation(operationId: string): void;
|
|
97
|
+
/**
|
|
98
|
+
* Start periodic cleanup of expired operations
|
|
99
|
+
*/
|
|
100
|
+
private startCleanupTimer;
|
|
101
|
+
/**
|
|
102
|
+
* Clean up operations that have exceeded TTL.
|
|
103
|
+
* - Running operations older than runningTtlMs (default 10 min) are marked as
|
|
104
|
+
* failed and a synthetic timeout-error event is appended so that a late poll
|
|
105
|
+
* still receives a meaningful failure response (BUG-4).
|
|
106
|
+
* - Completed/failed operations older than ttlMs (default 5 min) are deleted.
|
|
107
|
+
*/
|
|
108
|
+
private cleanupExpiredOperations;
|
|
109
|
+
/**
|
|
110
|
+
* Get store statistics (for monitoring)
|
|
111
|
+
*/
|
|
112
|
+
getStats(): {
|
|
113
|
+
totalOperations: number;
|
|
114
|
+
runningOperations: number;
|
|
115
|
+
completedOperations: number;
|
|
116
|
+
failedOperations: number;
|
|
117
|
+
cancelledOperations: number;
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=progress-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress-store.d.ts","sourceRoot":"","sources":["../../src/streaming/progress-store.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,IAAI,EAAE,gBAAgB,GAAG,UAAU,CAAC;IAC7C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,MAAM,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;IACzD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,MAAM,EAAE,sBAAsB,EAAE,CAAC;IACjC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;GAGG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAA8B;IACrD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAqC;IAChE,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,YAAY,CAA+B;IAEnD,6FAA6F;IAC7F,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAS;IAEtC,OAAO;IAMP;;OAEG;WACW,WAAW,IAAI,aAA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