@angular-modernizer/adapter-mcp 2.1.0 → 2.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/CHANGELOG.md +19 -0
- package/README.md +3 -1
- package/dist/cli.js +6 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/server/build-staleness.d.ts +92 -0
- package/dist/server/build-staleness.js +159 -0
- package/dist/server/limited-stdio-transport.js +28 -1
- package/dist/server/sdk-server.d.ts +6 -0
- package/dist/server/sdk-server.js +21 -2
- package/dist/server/tool-registry.d.ts +2 -1
- package/dist/server/tool-registry.js +8 -2
- package/dist/tools/helpers/output-contract.d.ts +2 -2
- package/dist/tools/helpers/output-contract.js +2 -2
- package/dist/tools/learn-patterns.js +6 -6
- package/dist/tools/server-status.d.ts +6 -24
- package/dist/tools/server-status.js +9 -57
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @angular-modernizer/adapter-mcp
|
|
2
2
|
|
|
3
|
+
## 2.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 938445c: learn-patterns recognises patterns of knowledge bases written before 2.0: old `learned-<type>-<timestamp>` ids are migrated to `learned-<category>-<type>` on load and duplicate entries merged.
|
|
8
|
+
- ede9912: Every tool answer now warns with `configWarnings` code `stale-build` when a package dist/ was rebuilt after the MCP server started.
|
|
9
|
+
- Updated dependencies [028078f]
|
|
10
|
+
- Updated dependencies [938445c]
|
|
11
|
+
- @angular-modernizer/api@2.1.1
|
|
12
|
+
- @angular-modernizer/core@2.1.1
|
|
13
|
+
- @angular-modernizer/orchestration@2.1.1
|
|
14
|
+
- @angular-modernizer/plugin-analyzer@2.1.1
|
|
15
|
+
- @angular-modernizer/plugin-angular@2.1.1
|
|
16
|
+
- @angular-modernizer/plugin-architecture@2.1.1
|
|
17
|
+
- @angular-modernizer/plugin-solid@2.1.1
|
|
18
|
+
- @angular-modernizer/plugin-standalone@2.1.1
|
|
19
|
+
- @angular-modernizer/worker@2.1.1
|
|
20
|
+
- @angular-modernizer/plugin-system@2.1.1
|
|
21
|
+
|
|
3
22
|
## 2.1.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -62,7 +62,7 @@ Arguments are validated against each tool's input schema (JSON Schema 2020-12) b
|
|
|
62
62
|
|
|
63
63
|
Every tool has an output schema and answers with `structuredContent`: the result object, which always carries a `summary` string. The text content holds only that summary (repeating the JSON there made the answers 1.6 times as large; Claude Code shows the model `structuredContent`). `structuredContent` is validated against the output schema; a result that does not match comes back as an error result. Tools that run a command (run-angular-cli, run-build, run-schematic) keep the full output in the result and repeat only its last lines in the summary on failure. orchestrate-migration reports its step counts in `counts` and `workflowId` at the top level.
|
|
64
64
|
|
|
65
|
-
Config warnings: when a call loads a `.angular-modernizer.json` with parts that have no effect, `structuredContent` carries `configWarnings` (`code`: `deprecated-key`, `layers-drift` or `layers-source-failed`; `message`; optional `key`) and the summary gets one line `Config: N warning(s), see configWarnings: <first message>`. The field is part of every output schema and absent when there is nothing to report; it is filled on cache hits and from the scan worker too. A tool that fails after loading the config adds `Config: N warning(s): <first message>` to its error text. Codes and causes: [docs/CONFIGURATION.md](../../docs/CONFIGURATION.md#config-warnings-in-the-tool-answer).
|
|
65
|
+
Config warnings: when a call loads a `.angular-modernizer.json` with parts that have no effect, `structuredContent` carries `configWarnings` (`code`: `deprecated-key`, `layers-drift` or `layers-source-failed`; `message`; optional `key`) and the summary gets one line `Config: N warning(s), see configWarnings: <first message>`. Every answer also carries code `stale-build` once a package `dist/` was rebuilt after the server started (checked at most every 5 s): the session still runs the old code, reconnect the MCP server. Answers that never reach the tool get the same warning as one `Config:` line: rejected arguments, an output replaced by the output validation, and the `-32602` error of an unknown tool. The field is part of every output schema and absent when there is nothing to report; it is filled on cache hits and from the scan worker too. A tool that fails after loading the config adds `Config: N warning(s): <first message>` to its error text. Codes and causes: [docs/CONFIGURATION.md](../../docs/CONFIGURATION.md#config-warnings-in-the-tool-answer).
|
|
66
66
|
|
|
67
67
|
Set `ANGULAR_MODERNIZER_DEBUG=1` in the server environment for diagnostics: a debug log `./mcp-server.log` in the working directory and a health check on `http://localhost:9999/health` and `/status`. Both are off by default.
|
|
68
68
|
|
|
@@ -237,6 +237,8 @@ orchestration: {
|
|
|
237
237
|
|
|
238
238
|
The `learn-patterns` tool persists discovered patterns across scans in `.angular-modernizer-cache/pattern-knowledge.json`. This enables pattern evolution tracking, confidence improvement over time, style shift detection, and pattern velocity measurement.
|
|
239
239
|
|
|
240
|
+
Patterns are keyed by `learned-<category>-<type>` (core `learnedPatternId`). Files written before 2.0 used `learned-<type>-<timestamp>`; loading migrates those ids and merges entries that land on the same id (history in time order, scan and occurrence counts summed), and the next run saves them with schema version `1.1.0`. Patterns a run does not find stay in the file as `declining`.
|
|
241
|
+
|
|
240
242
|
Example evolution output:
|
|
241
243
|
|
|
242
244
|
```json
|
package/dist/cli.js
CHANGED
|
@@ -55,6 +55,7 @@ import { FindAngularSymbolTool } from './tools/find-angular-symbol.js';
|
|
|
55
55
|
import { SearchCodebaseTool } from './tools/search-codebase.js';
|
|
56
56
|
import { VerifyCitationsTool } from './tools/verify-citations.js';
|
|
57
57
|
import { ServerStatusTool } from './tools/server-status.js';
|
|
58
|
+
import { BuildStaleness, configureBuildStaleness } from './server/build-staleness.js';
|
|
58
59
|
/**
|
|
59
60
|
* Write debug message to MCP log file (mcp-server.log), the file the MCP
|
|
60
61
|
* Watcher uses. Only with ANGULAR_MODERNIZER_DEBUG set: the file lands in the
|
|
@@ -131,6 +132,10 @@ function main() {
|
|
|
131
132
|
console.error(`Scan worker: --max-heap-mb ${heapMb} is below the minimum of ${MIN_WORKER_HEAP_MB} MB; scans will fail`);
|
|
132
133
|
}
|
|
133
134
|
debugLog(`CLI Scan worker: ${scanWorker.enabled ? 'on' : 'off'}`);
|
|
135
|
+
// One baseline of the dist mtimes for server-status and the stale-build
|
|
136
|
+
// warning every answer carries after a rebuild
|
|
137
|
+
const buildStaleness = new BuildStaleness(distDirectories());
|
|
138
|
+
configureBuildStaleness(buildStaleness);
|
|
134
139
|
server.registerTool(new AnalyzeProjectTool());
|
|
135
140
|
server.registerTool(new ScanArchitectureTool());
|
|
136
141
|
server.registerTool(new ScanSolidTool());
|
|
@@ -173,7 +178,7 @@ function main() {
|
|
|
173
178
|
server.registerTool(new FindAngularSymbolTool(projects));
|
|
174
179
|
server.registerTool(new SearchCodebaseTool(projects));
|
|
175
180
|
server.registerTool(new VerifyCitationsTool());
|
|
176
|
-
server.registerTool(new ServerStatusTool(projects, () => server.getRuntimeStats(),
|
|
181
|
+
server.registerTool(new ServerStatusTool(projects, () => server.getRuntimeStats(), buildStaleness));
|
|
177
182
|
debugLog(`CLI ${server.getToolsMap().size} tools registered successfully`);
|
|
178
183
|
// Register orchestration tool with access to all other tools
|
|
179
184
|
const orchestrateTool = new OrchestrateMigrationTool();
|
package/dist/index.d.ts
CHANGED
|
@@ -105,6 +105,8 @@ export type { ServerRuntimeStats } from './server/mcp-server.js';
|
|
|
105
105
|
export type { ProjectCache } from './tools/helpers/project-cache.js';
|
|
106
106
|
export type { HealthScan, CompareHealthOutput } from './tools/compare-health.js';
|
|
107
107
|
export type { DistDirectory, ServerStatusOutput } from './tools/server-status.js';
|
|
108
|
+
export { BuildStaleness } from './server/build-staleness.js';
|
|
109
|
+
export type { BuildStalenessOptions } from './server/build-staleness.js';
|
|
108
110
|
export type { AnalyzeBuildImpactOutput } from './tools/analyze-build-impact.js';
|
|
109
111
|
export type { AnalyzeCoreToSharedResult } from './tools/analyze-core-to-shared.js';
|
|
110
112
|
export type { AnalyzeParserPerformanceOutput } from './tools/analyze-parser-performance.js';
|
package/dist/index.js
CHANGED
|
@@ -101,4 +101,5 @@ export { VerifyCitationsTool } from './tools/verify-citations.js';
|
|
|
101
101
|
export { ProgressStore, } from './streaming/progress-store.js';
|
|
102
102
|
// Re-export existing project analyzer for compatibility
|
|
103
103
|
export { analyzeProject } from './core/project-analyzer.js';
|
|
104
|
+
export { BuildStaleness } from './server/build-staleness.js';
|
|
104
105
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Detects package `dist/` directories rebuilt after the server started.
|
|
3
|
+
*
|
|
4
|
+
* A session keeps the code it started with; after a rebuild it serves stale
|
|
5
|
+
* tools until the client reconnects. server-status reports the state per
|
|
6
|
+
* package, and every tool answer carries a `stale-build` config warning once a
|
|
7
|
+
* package was rebuilt (`ToolRegistry.executeTool` calls {@link reportStaleBuild}).
|
|
8
|
+
*/
|
|
9
|
+
import { type ConfigWarning } from '@angular-modernizer/core';
|
|
10
|
+
/** A package `dist/` directory to watch for rebuilds. */
|
|
11
|
+
export interface DistDirectory {
|
|
12
|
+
/** Package folder name, e.g. `core`. */
|
|
13
|
+
name: string;
|
|
14
|
+
/** Absolute path of the package's `dist/` directory. */
|
|
15
|
+
dir: string;
|
|
16
|
+
}
|
|
17
|
+
/** Build state of one package. */
|
|
18
|
+
export interface DistPackageState {
|
|
19
|
+
/** Package folder name. */
|
|
20
|
+
name: string;
|
|
21
|
+
/** Absolute path of the package's `dist/` directory. */
|
|
22
|
+
dir: string;
|
|
23
|
+
/** Newest `.js` mtime when the server started. */
|
|
24
|
+
builtAtStart?: string;
|
|
25
|
+
/** Newest `.js` mtime now. */
|
|
26
|
+
builtNow?: string;
|
|
27
|
+
/** The newest `.js` mtime changed since the server started. */
|
|
28
|
+
rebuilt: boolean;
|
|
29
|
+
}
|
|
30
|
+
/** Options of {@link BuildStaleness}; tests inject clock and mtime lookup. */
|
|
31
|
+
export interface BuildStalenessOptions {
|
|
32
|
+
/** Current time in ms; default `Date.now`. */
|
|
33
|
+
now?: () => number;
|
|
34
|
+
/** Newest `.js` mtime under a directory in ms; default walks the directory. */
|
|
35
|
+
newestMtime?: (dir: string) => number | undefined;
|
|
36
|
+
/** Minimum time between two checks of {@link BuildStaleness.staleWarning}; default 5000 ms. */
|
|
37
|
+
minIntervalMs?: number;
|
|
38
|
+
}
|
|
39
|
+
/** Newest `.js` mtime under `dir` in ms, or undefined when there is none. */
|
|
40
|
+
export declare function newestJsMtime(dir: string): number | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Newest `.js` mtime per package `dist/` at start versus now. The baseline is
|
|
43
|
+
* taken in the constructor; missing directories are skipped.
|
|
44
|
+
*/
|
|
45
|
+
export declare class BuildStaleness {
|
|
46
|
+
private readonly distDirectories;
|
|
47
|
+
private readonly baseline;
|
|
48
|
+
private readonly now;
|
|
49
|
+
private readonly newestMtime;
|
|
50
|
+
private readonly minIntervalMs;
|
|
51
|
+
private readonly startedAt;
|
|
52
|
+
private lastCheckAt;
|
|
53
|
+
private stale;
|
|
54
|
+
/**
|
|
55
|
+
* @param distDirectories - Package `dist/` directories to watch; missing ones are skipped.
|
|
56
|
+
* @param options - Clock, mtime lookup and throttle interval.
|
|
57
|
+
*/
|
|
58
|
+
constructor(distDirectories?: readonly DistDirectory[], options?: BuildStalenessOptions);
|
|
59
|
+
/** State of every watched package that existed at start, read now (no throttle). */
|
|
60
|
+
packages(): DistPackageState[];
|
|
61
|
+
/**
|
|
62
|
+
* The `stale-build` warning when a package was rebuilt since start, else
|
|
63
|
+
* undefined. Walks the directories at most once per `minIntervalMs`; between
|
|
64
|
+
* checks it returns the last result, and once stale it stays stale without
|
|
65
|
+
* walking again.
|
|
66
|
+
*/
|
|
67
|
+
staleWarning(): ConfigWarning | undefined;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Sets the tracker {@link reportStaleBuild} reads; `cli.ts` calls it once
|
|
71
|
+
* with the watched packages. Without a call (tests, library use) nothing is
|
|
72
|
+
* reported.
|
|
73
|
+
*/
|
|
74
|
+
export declare function configureBuildStaleness(tracker: BuildStaleness | undefined): void;
|
|
75
|
+
/**
|
|
76
|
+
* Reports the `stale-build` warning into the current config warning scope
|
|
77
|
+
* when the configured tracker finds a rebuilt package.
|
|
78
|
+
*/
|
|
79
|
+
export declare function reportStaleBuild(): void;
|
|
80
|
+
/**
|
|
81
|
+
* The `stale-build` warning of the configured tracker (same throttle), or
|
|
82
|
+
* undefined without a tracker or a rebuild.
|
|
83
|
+
*/
|
|
84
|
+
export declare function staleBuildWarning(): ConfigWarning | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* `text` plus one `Config: 1 warning(s): <message>` line when the build is
|
|
87
|
+
* stale. For answers that never reach `ToolRegistry.executeTool`: rejected
|
|
88
|
+
* arguments, a replaced output, an unknown tool. A stale server rejects
|
|
89
|
+
* exactly what only the new build knows, so these answers need the hint most.
|
|
90
|
+
*/
|
|
91
|
+
export declare function withStaleBuildLine(text: string): string;
|
|
92
|
+
//# sourceMappingURL=build-staleness.d.ts.map
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Detects package `dist/` directories rebuilt after the server started.
|
|
3
|
+
*
|
|
4
|
+
* A session keeps the code it started with; after a rebuild it serves stale
|
|
5
|
+
* tools until the client reconnects. server-status reports the state per
|
|
6
|
+
* package, and every tool answer carries a `stale-build` config warning once a
|
|
7
|
+
* package was rebuilt (`ToolRegistry.executeTool` calls {@link reportStaleBuild}).
|
|
8
|
+
*/
|
|
9
|
+
import { existsSync, readdirSync, statSync } from 'node:fs';
|
|
10
|
+
import { join } from 'node:path';
|
|
11
|
+
import { reportConfigWarning } from '@angular-modernizer/core';
|
|
12
|
+
import { configWarningsLine } from '../tools/helpers/output-contract.js';
|
|
13
|
+
/** Default minimum time between two throttled checks. */
|
|
14
|
+
const DEFAULT_MIN_INTERVAL_MS = 5000;
|
|
15
|
+
/** Newest `.js` mtime under `dir` in ms, or undefined when there is none. */
|
|
16
|
+
export function newestJsMtime(dir) {
|
|
17
|
+
let newest;
|
|
18
|
+
const stack = [dir];
|
|
19
|
+
while (stack.length > 0) {
|
|
20
|
+
const current = stack.pop();
|
|
21
|
+
if (current === undefined) {
|
|
22
|
+
break;
|
|
23
|
+
}
|
|
24
|
+
let entries;
|
|
25
|
+
try {
|
|
26
|
+
entries = readdirSync(current, { withFileTypes: true });
|
|
27
|
+
}
|
|
28
|
+
catch {
|
|
29
|
+
continue;
|
|
30
|
+
}
|
|
31
|
+
for (const entry of entries) {
|
|
32
|
+
const full = join(current, entry.name);
|
|
33
|
+
if (entry.isDirectory()) {
|
|
34
|
+
stack.push(full);
|
|
35
|
+
continue;
|
|
36
|
+
}
|
|
37
|
+
if (entry.name.endsWith('.js')) {
|
|
38
|
+
const mtime = statSync(full).mtimeMs;
|
|
39
|
+
newest = newest === undefined ? mtime : Math.max(newest, mtime);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return newest;
|
|
44
|
+
}
|
|
45
|
+
function iso(ms) {
|
|
46
|
+
return ms === undefined ? undefined : new Date(ms).toISOString();
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Newest `.js` mtime per package `dist/` at start versus now. The baseline is
|
|
50
|
+
* taken in the constructor; missing directories are skipped.
|
|
51
|
+
*/
|
|
52
|
+
export class BuildStaleness {
|
|
53
|
+
distDirectories;
|
|
54
|
+
baseline;
|
|
55
|
+
now;
|
|
56
|
+
newestMtime;
|
|
57
|
+
minIntervalMs;
|
|
58
|
+
startedAt;
|
|
59
|
+
lastCheckAt;
|
|
60
|
+
stale;
|
|
61
|
+
/**
|
|
62
|
+
* @param distDirectories - Package `dist/` directories to watch; missing ones are skipped.
|
|
63
|
+
* @param options - Clock, mtime lookup and throttle interval.
|
|
64
|
+
*/
|
|
65
|
+
constructor(distDirectories = [], options = {}) {
|
|
66
|
+
this.distDirectories = distDirectories;
|
|
67
|
+
this.now = options.now ?? Date.now;
|
|
68
|
+
this.newestMtime = options.newestMtime ?? newestJsMtime;
|
|
69
|
+
this.minIntervalMs = options.minIntervalMs ?? DEFAULT_MIN_INTERVAL_MS;
|
|
70
|
+
this.baseline = new Map(distDirectories
|
|
71
|
+
.filter((d) => existsSync(d.dir))
|
|
72
|
+
.map((d) => [d.dir, this.newestMtime(d.dir)]));
|
|
73
|
+
this.startedAt = this.now();
|
|
74
|
+
this.lastCheckAt = this.startedAt;
|
|
75
|
+
}
|
|
76
|
+
/** State of every watched package that existed at start, read now (no throttle). */
|
|
77
|
+
packages() {
|
|
78
|
+
return this.distDirectories
|
|
79
|
+
.filter((d) => this.baseline.has(d.dir))
|
|
80
|
+
.map((d) => {
|
|
81
|
+
const atStart = this.baseline.get(d.dir);
|
|
82
|
+
const now = this.newestMtime(d.dir);
|
|
83
|
+
const builtAtStart = iso(atStart);
|
|
84
|
+
const builtNow = iso(now);
|
|
85
|
+
return {
|
|
86
|
+
name: d.name,
|
|
87
|
+
dir: d.dir,
|
|
88
|
+
...(builtAtStart === undefined ? {} : { builtAtStart }),
|
|
89
|
+
...(builtNow === undefined ? {} : { builtNow }),
|
|
90
|
+
rebuilt: now !== undefined && (atStart === undefined || now > atStart),
|
|
91
|
+
};
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* The `stale-build` warning when a package was rebuilt since start, else
|
|
96
|
+
* undefined. Walks the directories at most once per `minIntervalMs`; between
|
|
97
|
+
* checks it returns the last result, and once stale it stays stale without
|
|
98
|
+
* walking again.
|
|
99
|
+
*/
|
|
100
|
+
staleWarning() {
|
|
101
|
+
if (this.stale !== undefined) {
|
|
102
|
+
return this.stale;
|
|
103
|
+
}
|
|
104
|
+
const now = this.now();
|
|
105
|
+
if (now - this.lastCheckAt < this.minIntervalMs) {
|
|
106
|
+
return undefined;
|
|
107
|
+
}
|
|
108
|
+
this.lastCheckAt = now;
|
|
109
|
+
const rebuilt = this.packages().filter((p) => p.rebuilt);
|
|
110
|
+
if (rebuilt.length === 0) {
|
|
111
|
+
return undefined;
|
|
112
|
+
}
|
|
113
|
+
const newest = rebuilt.reduce((latest, p) => (p.builtNow !== undefined && p.builtNow > latest ? p.builtNow : latest), '');
|
|
114
|
+
this.stale = {
|
|
115
|
+
code: 'stale-build',
|
|
116
|
+
message: `Server runs code from ${new Date(this.startedAt).toISOString()}, dist of ` +
|
|
117
|
+
`${rebuilt.map((p) => p.name).join(', ')} rebuilt at ${newest}: ` +
|
|
118
|
+
'reconnect the MCP server to load the new build.',
|
|
119
|
+
};
|
|
120
|
+
return this.stale;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
let active;
|
|
124
|
+
/**
|
|
125
|
+
* Sets the tracker {@link reportStaleBuild} reads; `cli.ts` calls it once
|
|
126
|
+
* with the watched packages. Without a call (tests, library use) nothing is
|
|
127
|
+
* reported.
|
|
128
|
+
*/
|
|
129
|
+
export function configureBuildStaleness(tracker) {
|
|
130
|
+
active = tracker;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Reports the `stale-build` warning into the current config warning scope
|
|
134
|
+
* when the configured tracker finds a rebuilt package.
|
|
135
|
+
*/
|
|
136
|
+
export function reportStaleBuild() {
|
|
137
|
+
const warning = staleBuildWarning();
|
|
138
|
+
if (warning !== undefined) {
|
|
139
|
+
reportConfigWarning(warning);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* The `stale-build` warning of the configured tracker (same throttle), or
|
|
144
|
+
* undefined without a tracker or a rebuild.
|
|
145
|
+
*/
|
|
146
|
+
export function staleBuildWarning() {
|
|
147
|
+
return active?.staleWarning();
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* `text` plus one `Config: 1 warning(s): <message>` line when the build is
|
|
151
|
+
* stale. For answers that never reach `ToolRegistry.executeTool`: rejected
|
|
152
|
+
* arguments, a replaced output, an unknown tool. A stale server rejects
|
|
153
|
+
* exactly what only the new build knows, so these answers need the hint most.
|
|
154
|
+
*/
|
|
155
|
+
export function withStaleBuildLine(text) {
|
|
156
|
+
const warning = staleBuildWarning();
|
|
157
|
+
return warning === undefined ? text : `${text}\n${configWarningsLine([warning], false)}`;
|
|
158
|
+
}
|
|
159
|
+
//# sourceMappingURL=build-staleness.js.map
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* `isError` result, and the sizes are kept for `server-status`.
|
|
7
7
|
*/
|
|
8
8
|
import { StdioServerTransport } from '@modelcontextprotocol/server/stdio';
|
|
9
|
+
import { withStaleBuildLine } from './build-staleness.js';
|
|
9
10
|
/**
|
|
10
11
|
* Largest serialized response written to stdout, in bytes.
|
|
11
12
|
*
|
|
@@ -19,6 +20,32 @@ export const MAX_RESPONSE_BYTES = 4 * 1024 * 1024;
|
|
|
19
20
|
function isResponse(message) {
|
|
20
21
|
return 'id' in message && ('result' in message || 'error' in message);
|
|
21
22
|
}
|
|
23
|
+
/** The SDK's `-32602` error for a tools/call naming a tool it does not have. */
|
|
24
|
+
const UNKNOWN_TOOL_ERROR = /^Tool .+ (?:not found|disabled)$/;
|
|
25
|
+
/**
|
|
26
|
+
* Adds the stale-build line to the error of a call to an unknown tool. The SDK
|
|
27
|
+
* answers it before any handler of ours runs, and a stale server is exactly
|
|
28
|
+
* the one that lacks a tool of the new build.
|
|
29
|
+
*/
|
|
30
|
+
function withStaleBuildHintOnUnknownTool(message) {
|
|
31
|
+
const error = message.error;
|
|
32
|
+
if (typeof error !== 'object' || error === null) {
|
|
33
|
+
return message;
|
|
34
|
+
}
|
|
35
|
+
const { code, message: text, data } = error;
|
|
36
|
+
if (code !== -32602 || typeof text !== 'string' || !UNKNOWN_TOOL_ERROR.test(text)) {
|
|
37
|
+
return message;
|
|
38
|
+
}
|
|
39
|
+
const hinted = withStaleBuildLine(text);
|
|
40
|
+
if (hinted === text) {
|
|
41
|
+
return message;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
jsonrpc: '2.0',
|
|
45
|
+
id: message.id,
|
|
46
|
+
error: { code, message: hinted, ...(data === undefined ? {} : { data }) },
|
|
47
|
+
};
|
|
48
|
+
}
|
|
22
49
|
/**
|
|
23
50
|
* How to get a smaller answer: the narrowing options the tool has (a lower
|
|
24
51
|
* value or `summaryOnly: true`), never options of other tools.
|
|
@@ -65,7 +92,7 @@ export class LimitedStdioTransport extends StdioServerTransport {
|
|
|
65
92
|
}
|
|
66
93
|
const call = this.toolCalls.get(message.id);
|
|
67
94
|
this.toolCalls.delete(message.id);
|
|
68
|
-
return super.send(this.withinLimit(message, call?.tool, call?.narrowing ?? []));
|
|
95
|
+
return super.send(this.withinLimit(withStaleBuildHintOnUnknownTool(message), call?.tool, call?.narrowing ?? []));
|
|
69
96
|
}
|
|
70
97
|
/**
|
|
71
98
|
* Returns `message` when it serializes within the limit, otherwise a small
|
|
@@ -57,6 +57,12 @@ export declare const INPUT_VALIDATOR: jsonSchemaValidator;
|
|
|
57
57
|
* field never fails; a missing required field or a wrong type does.
|
|
58
58
|
*/
|
|
59
59
|
export declare const OUTPUT_VALIDATOR: jsonSchemaValidator;
|
|
60
|
+
/**
|
|
61
|
+
* `validator` whose error message gets the stale-build line. The SDK answers
|
|
62
|
+
* rejected arguments and a non-matching output before or after
|
|
63
|
+
* `ToolRegistry.executeTool`, so those answers would not carry the warning.
|
|
64
|
+
*/
|
|
65
|
+
export declare function withStaleBuildHint(validator: jsonSchemaValidator): jsonSchemaValidator;
|
|
60
66
|
/**
|
|
61
67
|
* Factory for `serveStdio`: registers every tool of `registry` on a fresh
|
|
62
68
|
* `McpServer` for the era the SDK asks for.
|
|
@@ -23,6 +23,7 @@ import { PACKAGE_VERSION } from './package-version.js';
|
|
|
23
23
|
import { throttleProgress } from '../tools/helpers/tool-context.js';
|
|
24
24
|
import { configWarningsLine, withConfigWarningsSchema } from '../tools/helpers/output-contract.js';
|
|
25
25
|
import { configWarningsOf } from '@angular-modernizer/core';
|
|
26
|
+
import { withStaleBuildLine } from './build-staleness.js';
|
|
26
27
|
/**
|
|
27
28
|
* Input options that make a tool answer smaller, in the order the size limit
|
|
28
29
|
* message names them.
|
|
@@ -59,6 +60,24 @@ export const INPUT_VALIDATOR = new AjvJsonSchemaValidator();
|
|
|
59
60
|
* field never fails; a missing required field or a wrong type does.
|
|
60
61
|
*/
|
|
61
62
|
export const OUTPUT_VALIDATOR = new AjvJsonSchemaValidator();
|
|
63
|
+
/**
|
|
64
|
+
* `validator` whose error message gets the stale-build line. The SDK answers
|
|
65
|
+
* rejected arguments and a non-matching output before or after
|
|
66
|
+
* `ToolRegistry.executeTool`, so those answers would not carry the warning.
|
|
67
|
+
*/
|
|
68
|
+
export function withStaleBuildHint(validator) {
|
|
69
|
+
return {
|
|
70
|
+
getValidator(schema) {
|
|
71
|
+
const validate = validator.getValidator(schema);
|
|
72
|
+
return (input) => {
|
|
73
|
+
const result = validate(input);
|
|
74
|
+
return result.valid ? result : { ...result, errorMessage: withStaleBuildLine(result.errorMessage) };
|
|
75
|
+
};
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
const INPUT_VALIDATOR_WITH_HINT = withStaleBuildHint(INPUT_VALIDATOR);
|
|
80
|
+
const OUTPUT_VALIDATOR_WITH_HINT = withStaleBuildHint(OUTPUT_VALIDATOR);
|
|
62
81
|
/**
|
|
63
82
|
* Factory for `serveStdio`: registers every tool of `registry` on a fresh
|
|
64
83
|
* `McpServer` for the era the SDK asks for.
|
|
@@ -81,11 +100,11 @@ export function createServerFactory(registry, hooks = {}) {
|
|
|
81
100
|
mcp.registerTool(tool.name, {
|
|
82
101
|
...(tool.title === undefined ? {} : { title: tool.title }),
|
|
83
102
|
description: tool.description,
|
|
84
|
-
inputSchema: fromJsonSchema(tool.inputSchema,
|
|
103
|
+
inputSchema: fromJsonSchema(tool.inputSchema, INPUT_VALIDATOR_WITH_HINT),
|
|
85
104
|
...(tool.outputSchema === undefined
|
|
86
105
|
? {}
|
|
87
106
|
: {
|
|
88
|
-
outputSchema: fromJsonSchema(withConfigWarningsSchema(tool.outputSchema),
|
|
107
|
+
outputSchema: fromJsonSchema(withConfigWarningsSchema(tool.outputSchema), OUTPUT_VALIDATOR_WITH_HINT),
|
|
89
108
|
}),
|
|
90
109
|
...(tool.annotations === undefined ? {} : { annotations: tool.annotations }),
|
|
91
110
|
}, async (args, ctx) => {
|
|
@@ -40,7 +40,8 @@ export declare class ToolRegistry {
|
|
|
40
40
|
/**
|
|
41
41
|
* Execute a tool by name with given arguments. Config warnings the tool
|
|
42
42
|
* reports while it runs (core `reportConfigWarning`) come back as
|
|
43
|
-
* `configWarnings` plus one summary line
|
|
43
|
+
* `configWarnings` plus one summary line, and so does a `stale-build`
|
|
44
|
+
* warning when a package `dist/` was rebuilt after the server started.
|
|
44
45
|
* @param name - Tool name
|
|
45
46
|
* @param args - Tool arguments
|
|
46
47
|
* @param ctx - Cancellation and progress of the request
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { collectConfigWarnings } from '@angular-modernizer/core';
|
|
2
2
|
import { withConfigWarnings } from '../tools/helpers/output-contract.js';
|
|
3
|
+
import { reportStaleBuild } from './build-staleness.js';
|
|
3
4
|
import { formatStructuredToolResponse } from '../utils/format-tool-response.js';
|
|
4
5
|
/**
|
|
5
6
|
* Central registry for MCP tools: registration, discovery and execution.
|
|
@@ -57,7 +58,8 @@ export class ToolRegistry {
|
|
|
57
58
|
/**
|
|
58
59
|
* Execute a tool by name with given arguments. Config warnings the tool
|
|
59
60
|
* reports while it runs (core `reportConfigWarning`) come back as
|
|
60
|
-
* `configWarnings` plus one summary line
|
|
61
|
+
* `configWarnings` plus one summary line, and so does a `stale-build`
|
|
62
|
+
* warning when a package `dist/` was rebuilt after the server started.
|
|
61
63
|
* @param name - Tool name
|
|
62
64
|
* @param args - Tool arguments
|
|
63
65
|
* @param ctx - Cancellation and progress of the request
|
|
@@ -70,7 +72,11 @@ export class ToolRegistry {
|
|
|
70
72
|
throw new Error(`Unknown tool: ${name}`);
|
|
71
73
|
}
|
|
72
74
|
// Config warnings the call reported (any depth, after awaits) go into the answer
|
|
73
|
-
|
|
75
|
+
// A rebuilt dist warns in every answer, also when the tool throws
|
|
76
|
+
const { result, warnings } = await collectConfigWarnings(() => {
|
|
77
|
+
reportStaleBuild();
|
|
78
|
+
return tool.execute(args, ctx);
|
|
79
|
+
});
|
|
74
80
|
return formatStructuredToolResponse(withConfigWarnings(result, warnings));
|
|
75
81
|
}
|
|
76
82
|
/**
|
|
@@ -60,13 +60,13 @@ export declare function withWarnings<T extends {
|
|
|
60
60
|
export declare const CONFIG_WARNINGS_OUTPUT_SCHEMA: {
|
|
61
61
|
readonly configWarnings: {
|
|
62
62
|
readonly type: "array";
|
|
63
|
-
readonly description: "Warnings about the project configuration (.angular-modernizer.json) the call loaded: deprecated keys without effect, layers / layersSource drift, a failed layersSource import. Absent when there are none.";
|
|
63
|
+
readonly description: "Warnings about the project configuration (.angular-modernizer.json) the call loaded: deprecated keys without effect, layers / layersSource drift, a failed layersSource import; stale-build when a package dist/ was rebuilt after the server started (reconnect the MCP server). Absent when there are none.";
|
|
64
64
|
readonly items: {
|
|
65
65
|
readonly type: "object";
|
|
66
66
|
readonly properties: {
|
|
67
67
|
readonly code: {
|
|
68
68
|
readonly type: "string";
|
|
69
|
-
readonly enum: readonly ["deprecated-key", "layers-drift", "layers-source-failed"];
|
|
69
|
+
readonly enum: readonly ["deprecated-key", "layers-drift", "layers-source-failed", "stale-build"];
|
|
70
70
|
};
|
|
71
71
|
readonly message: {
|
|
72
72
|
readonly type: "string";
|
|
@@ -50,11 +50,11 @@ export function withWarnings(result, warnings) {
|
|
|
50
50
|
export const CONFIG_WARNINGS_OUTPUT_SCHEMA = {
|
|
51
51
|
configWarnings: {
|
|
52
52
|
type: 'array',
|
|
53
|
-
description: 'Warnings about the project configuration (.angular-modernizer.json) the call loaded: deprecated keys without effect, layers / layersSource drift, a failed layersSource import. Absent when there are none.',
|
|
53
|
+
description: 'Warnings about the project configuration (.angular-modernizer.json) the call loaded: deprecated keys without effect, layers / layersSource drift, a failed layersSource import; stale-build when a package dist/ was rebuilt after the server started (reconnect the MCP server). Absent when there are none.',
|
|
54
54
|
items: {
|
|
55
55
|
type: 'object',
|
|
56
56
|
properties: {
|
|
57
|
-
code: { type: 'string', enum: ['deprecated-key', 'layers-drift', 'layers-source-failed'] },
|
|
57
|
+
code: { type: 'string', enum: ['deprecated-key', 'layers-drift', 'layers-source-failed', 'stale-build'] },
|
|
58
58
|
message: { type: 'string' },
|
|
59
59
|
key: { type: 'string', description: 'The config key the warning is about.' },
|
|
60
60
|
},
|
|
@@ -5,18 +5,18 @@ import { resolve, dirname, join } from 'node:path';
|
|
|
5
5
|
import { countList } from './helpers/analysis-output.js';
|
|
6
6
|
import { anonymizeCode, anonymizeFilePath, anonymizeMetadata, } from './helpers/pattern-anonymizer.js';
|
|
7
7
|
import { COUNT_OBJECT } from './helpers/investigation-schemas.js';
|
|
8
|
-
import { PatternKnowledgeBase, StyleConventionDetector, ContextAwareScorer, ContextAwareRuleGenerator, RealFileSystemAdapter, loadConfig, } from '@angular-modernizer/core';
|
|
8
|
+
import { PatternKnowledgeBase, learnedPatternId, StyleConventionDetector, ContextAwareScorer, ContextAwareRuleGenerator, RealFileSystemAdapter, loadConfig, } from '@angular-modernizer/core';
|
|
9
9
|
/**
|
|
10
|
-
* Stable id of a pattern
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* Stable id of a pattern ({@link learnedPatternId} of core, shared with the
|
|
11
|
+
* knowledge base's migration of pre-2.0 ids). Patterns are grouped by category
|
|
12
|
+
* and type, so the id is unique per run.
|
|
13
13
|
*/
|
|
14
14
|
function patternId(category, type) {
|
|
15
|
-
return
|
|
15
|
+
return learnedPatternId(category, type);
|
|
16
16
|
}
|
|
17
17
|
/** Pattern type from an id built by {@link patternId}. */
|
|
18
18
|
function patternTypeOf(pattern) {
|
|
19
|
-
const prefix =
|
|
19
|
+
const prefix = learnedPatternId(pattern.category, '');
|
|
20
20
|
return pattern.id.startsWith(prefix) ? pattern.id.slice(prefix.length) : pattern.id;
|
|
21
21
|
}
|
|
22
22
|
/** Own inputs above which a component is a too-many-inputs pattern, unless the config sets `maxInputs`. */
|
|
@@ -1,27 +1,9 @@
|
|
|
1
1
|
import { type MCPTool, type ToolAnnotations } from '../types.js';
|
|
2
2
|
import { type ServerRuntimeStats } from '../server/mcp-server.js';
|
|
3
|
+
import { BuildStaleness, type DistDirectory, type DistPackageState } from '../server/build-staleness.js';
|
|
3
4
|
import { type ScanHostStatus } from '../scan-host/scan-host.js';
|
|
4
5
|
import { type CachedProjectInfo, type EvictionStats, type ProjectCache } from './helpers/project-cache.js';
|
|
5
|
-
|
|
6
|
-
export interface DistDirectory {
|
|
7
|
-
/** Package folder name, e.g. `core`. */
|
|
8
|
-
name: string;
|
|
9
|
-
/** Absolute path of the package's `dist/` directory. */
|
|
10
|
-
dir: string;
|
|
11
|
-
}
|
|
12
|
-
/** Build state of one package. */
|
|
13
|
-
export interface DistPackageState {
|
|
14
|
-
/** Package folder name. */
|
|
15
|
-
name: string;
|
|
16
|
-
/** Absolute path of the package's `dist/` directory. */
|
|
17
|
-
dir: string;
|
|
18
|
-
/** Newest `.js` mtime when the server started. */
|
|
19
|
-
builtAtStart?: string;
|
|
20
|
-
/** Newest `.js` mtime now. */
|
|
21
|
-
builtNow?: string;
|
|
22
|
-
/** The newest `.js` mtime changed since the server started. */
|
|
23
|
-
rebuilt: boolean;
|
|
24
|
-
}
|
|
6
|
+
export type { DistDirectory, DistPackageState } from '../server/build-staleness.js';
|
|
25
7
|
/** Output of the server-status tool. */
|
|
26
8
|
export interface ServerStatusOutput {
|
|
27
9
|
/** The server process. */
|
|
@@ -108,7 +90,6 @@ export interface ServerStatusOutput {
|
|
|
108
90
|
export declare class ServerStatusTool implements MCPTool {
|
|
109
91
|
private readonly projects;
|
|
110
92
|
private readonly runtime;
|
|
111
|
-
private readonly distDirectories;
|
|
112
93
|
private readonly scanWorkers;
|
|
113
94
|
readonly name = "server-status";
|
|
114
95
|
readonly title = "Server Status";
|
|
@@ -448,14 +429,15 @@ export declare class ServerStatusTool implements MCPTool {
|
|
|
448
429
|
};
|
|
449
430
|
required: string[];
|
|
450
431
|
};
|
|
451
|
-
private readonly
|
|
432
|
+
private readonly build;
|
|
452
433
|
/**
|
|
453
434
|
* @param projects - The project cache shared by the investigation tools.
|
|
454
435
|
* @param runtime - Server start time, tool count, response sizes and protocol.
|
|
455
|
-
* @param distDirectories - Package `dist/` directories to watch
|
|
436
|
+
* @param distDirectories - Package `dist/` directories to watch (missing ones are skipped), or the
|
|
437
|
+
* tracker `cli.ts` shares with the stale-build warning of every answer.
|
|
456
438
|
* @param scanWorkers - State of the scan workers; default the server's scan host.
|
|
457
439
|
*/
|
|
458
|
-
constructor(projects: ProjectCache, runtime: () => ServerRuntimeStats, distDirectories?: readonly DistDirectory[], scanWorkers?: () => ScanHostStatus);
|
|
440
|
+
constructor(projects: ProjectCache, runtime: () => ServerRuntimeStats, distDirectories?: readonly DistDirectory[] | BuildStaleness, scanWorkers?: () => ScanHostStatus);
|
|
459
441
|
execute(_args: Record<string, unknown>): Promise<ServerStatusOutput>;
|
|
460
442
|
private buildSummary;
|
|
461
443
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { existsSync, readdirSync, statSync } from 'node:fs';
|
|
2
|
-
import { join } from 'node:path';
|
|
3
1
|
import { getHeapStatistics } from 'node:v8';
|
|
4
2
|
import { PACKAGE_VERSION } from '../server/package-version.js';
|
|
3
|
+
import { BuildStaleness, } from '../server/build-staleness.js';
|
|
5
4
|
import { describeScanHost } from '../scan-host/scan-host.js';
|
|
6
5
|
import { toMB, } from './helpers/project-cache.js';
|
|
7
6
|
const BYTES_PER_MB = 1024 * 1024;
|
|
@@ -33,39 +32,6 @@ function formatBytes(bytes) {
|
|
|
33
32
|
? `${(bytes / 1024).toFixed(1)} KB`
|
|
34
33
|
: `${toMB(bytes)} MB`;
|
|
35
34
|
}
|
|
36
|
-
/** Newest `.js` mtime under `dir` in ms, or undefined when there is none. */
|
|
37
|
-
function newestJsMtime(dir) {
|
|
38
|
-
let newest;
|
|
39
|
-
const stack = [dir];
|
|
40
|
-
while (stack.length > 0) {
|
|
41
|
-
const current = stack.pop();
|
|
42
|
-
if (current === undefined) {
|
|
43
|
-
break;
|
|
44
|
-
}
|
|
45
|
-
let entries;
|
|
46
|
-
try {
|
|
47
|
-
entries = readdirSync(current, { withFileTypes: true });
|
|
48
|
-
}
|
|
49
|
-
catch {
|
|
50
|
-
continue;
|
|
51
|
-
}
|
|
52
|
-
for (const entry of entries) {
|
|
53
|
-
const full = join(current, entry.name);
|
|
54
|
-
if (entry.isDirectory()) {
|
|
55
|
-
stack.push(full);
|
|
56
|
-
continue;
|
|
57
|
-
}
|
|
58
|
-
if (entry.name.endsWith('.js')) {
|
|
59
|
-
const mtime = statSync(full).mtimeMs;
|
|
60
|
-
newest = newest === undefined ? mtime : Math.max(newest, mtime);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
return newest;
|
|
65
|
-
}
|
|
66
|
-
function iso(ms) {
|
|
67
|
-
return ms === undefined ? undefined : new Date(ms).toISOString();
|
|
68
|
-
}
|
|
69
35
|
/**
|
|
70
36
|
* MCP tool that reports on the running server itself: memory, uptime, the
|
|
71
37
|
* negotiated protocol era and revision, the ts-morph projects held in the
|
|
@@ -89,7 +55,6 @@ function iso(ms) {
|
|
|
89
55
|
export class ServerStatusTool {
|
|
90
56
|
projects;
|
|
91
57
|
runtime;
|
|
92
|
-
distDirectories;
|
|
93
58
|
scanWorkers;
|
|
94
59
|
name = 'server-status';
|
|
95
60
|
title = 'Server Status';
|
|
@@ -297,39 +262,26 @@ export class ServerStatusTool {
|
|
|
297
262
|
},
|
|
298
263
|
required: ['process', 'server', 'projects', 'scanWorkers', 'build', 'summary'],
|
|
299
264
|
};
|
|
300
|
-
|
|
265
|
+
build;
|
|
301
266
|
/**
|
|
302
267
|
* @param projects - The project cache shared by the investigation tools.
|
|
303
268
|
* @param runtime - Server start time, tool count, response sizes and protocol.
|
|
304
|
-
* @param distDirectories - Package `dist/` directories to watch
|
|
269
|
+
* @param distDirectories - Package `dist/` directories to watch (missing ones are skipped), or the
|
|
270
|
+
* tracker `cli.ts` shares with the stale-build warning of every answer.
|
|
305
271
|
* @param scanWorkers - State of the scan workers; default the server's scan host.
|
|
306
272
|
*/
|
|
307
273
|
constructor(projects, runtime, distDirectories = [], scanWorkers = describeScanHost) {
|
|
308
274
|
this.projects = projects;
|
|
309
275
|
this.runtime = runtime;
|
|
310
|
-
this.distDirectories = distDirectories;
|
|
311
276
|
this.scanWorkers = scanWorkers;
|
|
312
|
-
this.
|
|
313
|
-
|
|
314
|
-
|
|
277
|
+
this.build =
|
|
278
|
+
distDirectories instanceof BuildStaleness
|
|
279
|
+
? distDirectories
|
|
280
|
+
: new BuildStaleness(distDirectories);
|
|
315
281
|
}
|
|
316
282
|
async execute(_args) {
|
|
317
283
|
const memory = process.memoryUsage();
|
|
318
|
-
const packages = this.
|
|
319
|
-
.filter((d) => this.baseline.has(d.dir))
|
|
320
|
-
.map((d) => {
|
|
321
|
-
const atStart = this.baseline.get(d.dir);
|
|
322
|
-
const now = newestJsMtime(d.dir);
|
|
323
|
-
const builtAtStart = iso(atStart);
|
|
324
|
-
const builtNow = iso(now);
|
|
325
|
-
return {
|
|
326
|
-
name: d.name,
|
|
327
|
-
dir: d.dir,
|
|
328
|
-
...(builtAtStart === undefined ? {} : { builtAtStart }),
|
|
329
|
-
...(builtNow === undefined ? {} : { builtNow }),
|
|
330
|
-
rebuilt: now !== undefined && (atStart === undefined || now > atStart),
|
|
331
|
-
};
|
|
332
|
-
});
|
|
284
|
+
const packages = this.build.packages();
|
|
333
285
|
const result = {
|
|
334
286
|
process: {
|
|
335
287
|
pid: process.pid,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-modernizer/adapter-mcp",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "MCP Server to expose Angular Modernizer tools to an AI assistant.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
"glob": "^11.0.3",
|
|
33
33
|
"ts-morph": "^27.0.2",
|
|
34
34
|
"zod": "^4.6.5",
|
|
35
|
-
"@angular-modernizer/
|
|
36
|
-
"@angular-modernizer/
|
|
37
|
-
"@angular-modernizer/
|
|
38
|
-
"@angular-modernizer/
|
|
39
|
-
"@angular-modernizer/
|
|
40
|
-
"@angular-modernizer/plugin-architecture": "2.1.
|
|
41
|
-
"@angular-modernizer/plugin-
|
|
42
|
-
"@angular-modernizer/plugin-
|
|
43
|
-
"@angular-modernizer/
|
|
44
|
-
"@angular-modernizer/
|
|
35
|
+
"@angular-modernizer/api": "2.1.1",
|
|
36
|
+
"@angular-modernizer/orchestration": "2.1.1",
|
|
37
|
+
"@angular-modernizer/core": "2.1.1",
|
|
38
|
+
"@angular-modernizer/plugin-analyzer": "2.1.1",
|
|
39
|
+
"@angular-modernizer/plugin-angular": "2.1.1",
|
|
40
|
+
"@angular-modernizer/plugin-architecture": "2.1.1",
|
|
41
|
+
"@angular-modernizer/plugin-solid": "2.1.1",
|
|
42
|
+
"@angular-modernizer/plugin-standalone": "2.1.1",
|
|
43
|
+
"@angular-modernizer/worker": "2.1.1",
|
|
44
|
+
"@angular-modernizer/plugin-system": "2.1.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/express": "^4.17.13",
|