@angular-modernizer/adapter-mcp 1.2.0 → 2.1.0
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 +688 -0
- package/README.md +84 -445
- package/dist/cli.js +9 -1
- package/dist/core/project-analyzer.js +2 -2
- package/dist/index.d.ts +10 -0
- package/dist/index.js +1 -0
- package/dist/scan-host/scan-host.d.ts +7 -0
- package/dist/scan-host/scan-host.js +73 -10
- package/dist/scan-host/scan-protocol.d.ts +2 -0
- package/dist/scan-host/scan-worker.js +14 -8
- package/dist/server/limited-stdio-transport.d.ts +6 -3
- package/dist/server/limited-stdio-transport.js +26 -9
- package/dist/server/mcp-server.js +1 -1
- package/dist/server/sdk-server.d.ts +14 -3
- package/dist/server/sdk-server.js +54 -6
- package/dist/server/tool-registry.d.ts +3 -1
- package/dist/server/tool-registry.js +8 -3
- package/dist/streaming/progress-store.d.ts +19 -7
- package/dist/streaming/progress-store.js +19 -8
- package/dist/tools/analyze-build-impact.d.ts +7 -4
- package/dist/tools/analyze-build-impact.js +8 -3
- package/dist/tools/analyze-core-to-shared.d.ts +10 -6
- package/dist/tools/analyze-core-to-shared.js +63 -60
- package/dist/tools/analyze-parser-performance.d.ts +57 -13
- package/dist/tools/analyze-parser-performance.js +67 -6
- package/dist/tools/analyze-project.d.ts +55 -4
- package/dist/tools/analyze-project.js +104 -15
- package/dist/tools/check-incremental-compatibility.d.ts +30 -41
- package/dist/tools/check-incremental-compatibility.js +32 -264
- package/dist/tools/collect-feedback.js +15 -2
- package/dist/tools/compare-health.d.ts +40 -4
- package/dist/tools/compare-health.js +22 -5
- package/dist/tools/extract-libraries.js +42 -27
- package/dist/tools/find-angular-symbol.js +3 -2
- package/dist/tools/find-component-hosts.js +3 -2
- package/dist/tools/find-usages.js +21 -12
- package/dist/tools/get-call-graph.js +15 -2
- package/dist/tools/get-operation-progress-tool.d.ts +1 -1
- package/dist/tools/get-operation-progress-tool.js +2 -2
- package/dist/tools/get-operation-progress.d.ts +4 -1
- package/dist/tools/get-operation-progress.js +6 -2
- package/dist/tools/helpers/analysis-output.d.ts +32 -1
- package/dist/tools/helpers/analysis-output.js +25 -1
- package/dist/tools/helpers/build-cache.d.ts +27 -0
- package/dist/tools/helpers/build-cache.js +86 -0
- package/dist/tools/helpers/class-filter.d.ts +18 -0
- package/dist/tools/helpers/class-filter.js +30 -0
- package/dist/tools/helpers/cli-arguments.d.ts +23 -0
- package/dist/tools/helpers/cli-arguments.js +35 -0
- package/dist/tools/helpers/feedback-catalog.d.ts +38 -0
- package/dist/tools/helpers/feedback-catalog.js +196 -0
- package/dist/tools/helpers/feedback-sidecar.d.ts +201 -0
- package/dist/tools/helpers/feedback-sidecar.js +381 -0
- package/dist/tools/helpers/file-type-check.d.ts +34 -0
- package/dist/tools/helpers/file-type-check.js +56 -0
- package/dist/tools/helpers/health-delta.d.ts +6 -0
- package/dist/tools/helpers/health-delta.js +4 -1
- package/dist/tools/helpers/library-import-warning.d.ts +33 -0
- package/dist/tools/helpers/library-import-warning.js +38 -0
- package/dist/tools/helpers/library-imports.d.ts +38 -14
- package/dist/tools/helpers/library-imports.js +128 -23
- package/dist/tools/helpers/output-contract.d.ts +64 -0
- package/dist/tools/helpers/output-contract.js +67 -0
- package/dist/tools/helpers/pattern-anonymizer.d.ts +27 -0
- package/dist/tools/helpers/pattern-anonymizer.js +159 -0
- package/dist/tools/helpers/project-cache.d.ts +5 -4
- package/dist/tools/helpers/project-cache.js +21 -16
- package/dist/tools/helpers/project-decorators.d.ts +11 -4
- package/dist/tools/helpers/project-decorators.js +13 -6
- package/dist/tools/helpers/refresh-apply.d.ts +94 -0
- package/dist/tools/helpers/refresh-apply.js +460 -0
- package/dist/tools/helpers/refresh-inventory.d.ts +106 -0
- package/dist/tools/helpers/refresh-inventory.js +631 -0
- package/dist/tools/helpers/rule-runner.js +3 -1
- package/dist/tools/helpers/scan-cache.d.ts +117 -5
- package/dist/tools/helpers/scan-cache.js +179 -6
- package/dist/tools/helpers/scan-engine.d.ts +43 -6
- package/dist/tools/helpers/scan-engine.js +141 -22
- package/dist/tools/helpers/scan-plan.js +16 -2
- package/dist/tools/helpers/source-map-loader.d.ts +55 -0
- package/dist/tools/helpers/source-map-loader.js +226 -0
- package/dist/tools/helpers/template-check.d.ts +76 -0
- package/dist/tools/helpers/template-check.js +158 -0
- package/dist/tools/helpers/tool-cache.d.ts +7 -2
- package/dist/tools/helpers/tool-cache.js +9 -3
- package/dist/tools/helpers/tool-context.d.ts +18 -0
- package/dist/tools/helpers/tool-context.js +29 -0
- package/dist/tools/helpers/transform-safety.d.ts +151 -1
- package/dist/tools/helpers/transform-safety.js +357 -4
- package/dist/tools/inspect-form-group.js +5 -0
- package/dist/tools/inspect-i18n.d.ts +1 -1
- package/dist/tools/inspect-template.js +8 -2
- package/dist/tools/learn-patterns.d.ts +43 -28
- package/dist/tools/learn-patterns.js +83 -161
- package/dist/tools/list-imports.d.ts +1 -1
- package/dist/tools/orchestrate-migration.d.ts +19 -1
- package/dist/tools/orchestrate-migration.js +52 -10
- package/dist/tools/parse-stack-trace.d.ts +48 -1
- package/dist/tools/parse-stack-trace.js +108 -9
- package/dist/tools/plan-migration.js +22 -10
- package/dist/tools/refresh-state.d.ts +378 -0
- package/dist/tools/refresh-state.js +370 -0
- package/dist/tools/resolve-type.js +10 -3
- package/dist/tools/review-feedback.d.ts +42 -7
- package/dist/tools/review-feedback.js +24 -17
- package/dist/tools/rollback-changes.d.ts +5 -0
- package/dist/tools/rollback-changes.js +7 -2
- package/dist/tools/run-angular-cli.js +36 -22
- package/dist/tools/run-build.d.ts +33 -28
- package/dist/tools/run-build.js +136 -438
- package/dist/tools/run-schematic.d.ts +8 -2
- package/dist/tools/run-schematic.js +80 -50
- package/dist/tools/scan-all.d.ts +37 -15
- package/dist/tools/scan-all.js +76 -115
- package/dist/tools/scan-angular.d.ts +33 -14
- package/dist/tools/scan-angular.js +77 -94
- package/dist/tools/scan-architecture.d.ts +37 -12
- package/dist/tools/scan-architecture.js +220 -139
- package/dist/tools/scan-solid.d.ts +33 -14
- package/dist/tools/scan-solid.js +80 -91
- package/dist/tools/search-codebase.d.ts +6 -1
- package/dist/tools/search-codebase.js +13 -7
- package/dist/tools/suggest-improvements.d.ts +34 -3
- package/dist/tools/suggest-improvements.js +34 -9
- package/dist/tools/trace-output-flow.js +3 -2
- package/dist/tools/transform-code-batch.d.ts +9 -9
- package/dist/tools/transform-code.d.ts +161 -12
- package/dist/tools/transform-code.js +715 -206
- package/dist/tools/validate-before-transform.js +2 -1
- package/dist/tools/validate-project-compatibility.d.ts +28 -55
- package/dist/tools/validate-project-compatibility.js +33 -225
- package/dist/tools/validate-transformation.d.ts +40 -26
- package/dist/tools/validate-transformation.js +115 -294
- package/dist/tools/verify-citations.js +8 -2
- package/dist/types.d.ts +9 -9
- package/dist/utils/format-tool-response.d.ts +3 -1
- package/dist/utils/format-tool-response.js +8 -3
- package/package.json +14 -13
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,688 @@
|
|
|
1
|
+
# @angular-modernizer/adapter-mcp
|
|
2
|
+
|
|
3
|
+
## 2.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 5306ac3: scan-all, scan-solid, scan-angular, scan-architecture and analyze-project warn about library imports that do not resolve (missing or incomplete node_modules), also on a warm run served from the scan cache: the warning goes into `warnings` and one summary line, the counts into `unresolvedLibraryImports`. Without library types, type-dependent rules report very different numbers. The unresolved packages are part of the scan cache version, so entries written without a complete node_modules are not served once it is complete, and the other way round. The scan cache layout versions move to scan-5, scan-all-6 and scan-architecture-4, so every cache written before this release is stale once (one cold scan per project); refresh-state lists such entries as `outdated-layout`. compare-health records `libraryTypesResolved` in its snapshot (older snapshots count as resolved) and answers `environment-mismatch` without a delta when the current run and the snapshot differ in it; the snapshot is then replaced only with `updateSnapshot: true`.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- a7a2e6a: Suppression comments count wherever they clearly belong to the reported construct. A marker on any line of the contiguous comment block directly above the reported node counts (before, only a comment ending on the line directly above did, so a marker on the first line of a two-line block was ignored); a blank line still ends the block. A finding on a line inside a decorator, such as the `changeDetection` property of `@Component({...})`, is also suppressed by a marker anywhere inside that decorator (above the property or trailing another property) or in the comment block directly above the decorator list; the class body and the decorators of other declarations do not count. Templates are unchanged. The scan cache versions move to `scan-5`, `scan-all-6` and `scan-architecture-4`, because cached findings were filtered with the old placement and are analyzed again once.
|
|
12
|
+
- Updated dependencies [b1ad47b]
|
|
13
|
+
- Updated dependencies [8e55c18]
|
|
14
|
+
- Updated dependencies [a3d2ad1]
|
|
15
|
+
- Updated dependencies [2709195]
|
|
16
|
+
- Updated dependencies [3f77a02]
|
|
17
|
+
- Updated dependencies [a7a2e6a]
|
|
18
|
+
- @angular-modernizer/plugin-angular@2.1.0
|
|
19
|
+
- @angular-modernizer/plugin-solid@2.1.0
|
|
20
|
+
- @angular-modernizer/api@2.1.0
|
|
21
|
+
- @angular-modernizer/core@2.1.0
|
|
22
|
+
- @angular-modernizer/worker@2.1.0
|
|
23
|
+
- @angular-modernizer/orchestration@2.1.0
|
|
24
|
+
- @angular-modernizer/plugin-analyzer@2.1.0
|
|
25
|
+
- @angular-modernizer/plugin-architecture@2.1.0
|
|
26
|
+
- @angular-modernizer/plugin-standalone@2.1.0
|
|
27
|
+
- @angular-modernizer/plugin-system@2.1.0
|
|
28
|
+
|
|
29
|
+
## 2.0.0
|
|
30
|
+
|
|
31
|
+
### Minor Changes
|
|
32
|
+
|
|
33
|
+
- d5e0000: check-incremental-compatibility is deprecated and checks nothing: it answers at once, without loading the project, with `deprecated: true`, `compatible: false`, `recommendation: 'use-full'`, no issues and `estimatedSpeedup: null`, and points to analyze-build-impact and scan-architecture. Its checks guarded only the removed incremental build path and were wrong themselves: the speedup was a formula of the file count (8.1x for a build measured at 65 to 70 s), the fixed cycle threshold changed nothing a build does, the configured minimum Angular version never blocked, and only the root `tsconfig.json` was loaded, so a solution-style workspace counted 0 files and 0 cycles. Its arguments stay accepted without effect. core: `IncrementalBuildValidator`, `IncompatibilityDetector` and their types are deprecated (exported in 1.x, used by no tool); the ConfigLoader warns when a config sets `build.incremental`, `incrementalMode` or `forceFullBuild` of `tools['run-build']` / `tools['validate-transformation']`, or `cacheStrategy: 'skip'` there; the schema marks these keys deprecated, drops the `development` defaults that no tool applied, and no longer claims a 2.76x or 2-4x speedup or durations per `build.mode`. The documentation drops the same claims: the measured 2.76x was a second full build with a warm Angular cache on one 26-file fixture.
|
|
34
|
+
- 323a55d: parse-stack-trace maps bundle frames such as `http://127.0.0.1:4200/main.js:191:31` onto the original source (`resolvedFrom: 'source-map'`). The map is read from disk first (the bundle under `projectRoot` or a build output such as `dist/<app>/browser/main.js`, its `sourceMappingURL` comment or `<bundle>.map`); otherwise `<bundle url>.map` is fetched from the dev server, only on a loopback host (`localhost`, `127.0.0.1`, `::1`), with a 2 s timeout and one request per bundle. Other hosts are never contacted. New input `fetchSourceMaps` (default true) turns the fetch off. The result lists per bundle in `sourceMaps` where its map came from or why none was used, and the summary repeats it.
|
|
35
|
+
- 6874412: analyze-parser-performance is deprecated, removal planned for 2.0. It reads parser metadata from feedback sessions, and no MCP tool writes that metadata: collect-feedback and transform-code do not record it, only feedback stored by the core `TransformExecutionEngine` carries it, so feedback collected through MCP always gave 0 sessions analyzed. The tool keeps working in 1.x; its title and description say it is deprecated, every answer carries `deprecated: true` and the notice in `message`, and the summary starts with the notice. The tool lists and tables in the READMEs and guides mark it deprecated.
|
|
36
|
+
- 4a24239: `refresh-state` gets `mode: 'apply'`. A report now returns a `planId` that stays valid for 10 minutes; apply with that `planId` and `parts: ['caches']` removes the scan cache entries listed as orphan, expired or unreadable and the legacy cache folders. An item is removed only while a fresh inventory still lists it for the same reason, its size and modification time are those of the report, no symbolic link is involved and its real path lies in the cache folders of the project; every other item is kept and named with its cause in `skipped`. Removal is final, and the plan is used up by the apply. The tool is now annotated as destructive.
|
|
37
|
+
|
|
38
|
+
scan-all, scan-solid, scan-angular and scan-architecture (imperative path) take `cache: 'refresh'`: the scan ignores the existing cache entries, analyzes every file and overwrites them. Only the call argument counts, not the `tools` section of the config. scan-all reports the mode in `cache.mode`.
|
|
39
|
+
|
|
40
|
+
- 3081384: `refresh-state` apply takes the parts `backups` and `refs`. `backups` removes the backup groups a report listed by retention and backup files without metadata; a group goes only while it has exactly the files the report saw with the same sizes and modification times, and exactly those files are removed. `refs` deletes the listed snapshot refs with `git update-ref -d <ref> <commit of the report>`, so a ref that a later transformation moved stays. A backup folder or file that is a symbolic link is never touched (`outside-backup-folder`, `symbolic-link` in `skipped`). An apply now runs its fresh inventory with the retention of its report and refuses `retentionDays` and `keepNewest` as arguments. `keepNewest` is at least 1, so the newest backup group, the one rollback-changes restores, is never listed; a `.backup` file is listed as missing its metadata only when no `.json` of any kind lies next to it. `retentionDays` and `keepNewest` default to `tools['refresh-state']` of `.angular-modernizer.json`; the call arguments win.
|
|
41
|
+
- 2137e86: `refresh-state` lists feedback records that are outdated next to the duplicates: records of a rule id no plugin registers, of a transformation type transform-code does not know, and analysis records of a tool the server no longer registers or marks as deprecated. A session file is listed only while `.claude-feedback/index/consolidated.json` does not already hold exactly these marks for its current content. Apply takes the part `feedback`: it writes the marks of the listed session files that still have the content of the report into that sidecar (the previous one is kept as `consolidated.prev.json`) and never changes a session file; a linked `.claude-feedback` or `index` folder is refused (`outside-feedback-folder`). The output has `marked` and `counts.marked` / `counts.markedRecords`.
|
|
42
|
+
|
|
43
|
+
`review-feedback`, `suggest-improvements` and `analyze-parser-performance` skip the records the sidecar marks and return `skippedRecords` (total and per reason) with a summary line; `includeOutdated: true` reads every record as before. Without a sidecar nothing is skipped; an unusable sidecar is ignored with a warning in `sidecarWarnings`, and a session file changed since it was marked keeps its marks by record id, also with a warning.
|
|
44
|
+
|
|
45
|
+
- 3c864de: New tool `refresh-state`: reports the state the platform keeps in a project and what of it is stale, orphaned or duplicated, without changing anything. It lists scan and kernel cache entries of deleted files, entries past the 24 h cache limit and unreadable ones; the date folders of the former cache layout and the unused `.angular-modernizer/cache` folder; transform backup groups older than `retentionDays` (default 30) outside the `keepNewest` (default 5) newest groups and backups without metadata; git snapshot refs of listed groups or without a group; duplicate feedback records across sessions; and an NGM-CACHE block of an earlier day. The health snapshot and the pattern knowledge are reported with their age. Symbolic links are never followed. `summaryOnly` and `maxResults` work as in the investigation tools.
|
|
46
|
+
- 693cde8: Rule options that no valid `.angular-modernizer.json` could set are configurable under the rule id: `rules['solid:god-switch'].maxCases` (before read from `rules.solid.godSwitch`, which the schema rejects) and `rules['angular:interface-duplication']` with `minSimilarInstances`, `minCommonProperties`, `minSimilarityScore` and `scope` (before read from the top of `rules`). Code that builds an analysis context by hand passes these options under the rule id too. `tools['analyze-parser-performance']` (`source`, `sessionIds`) is accepted by the schema; the tool read it before, but the loader rejected the key. scan-angular, scan-solid and scan-all run only the rules named in `rules` (argument or `tools.<tool>.rules`) and list them in `metadata.rulesExecuted`; before, every rule ran, `rules` only filtered the findings and `rulesExecuted` listed all rules. A scan with a selection has a cache version of its own, so it never fills the cache of the scan of all rules.
|
|
47
|
+
- 84e96b1: run-build runs one path: the project's build command from core `resolveBuildCommand` (`build.command` of `.angular-modernizer.json`, else Angular CLI, Nx, Vite or Webpack, else the `build` script of `package.json`), with the project's `node_modules/.bin` first on `PATH` and without `CI=true`, which switched the Angular build cache off. The incremental path is gone: it ran a bare `ng` (exit 127 on a server without `ng` on `PATH`), chose flags by file count (`--force`, `--only`, which the Angular CLI rejects), skipped the build on a clean git tree (a committed broken file passed), dropped `options.timeout` and `options.args`, and reported invented `filesBuilt`, `filesSkipped`, `cacheHit` and speedup values; the Angular CLI has no file-scoped build. `options.timeout` (else `tools['run-build'].timeout`, else `build.timeout`) now stops the build and answers `timedOut: true` instead of throwing; `options.configuration`, `options.watch` and `options.args` reach the command, after `--` for an npm script; `tools['run-build']` `configuration`, `watch` and `timeout` are read; `cacheStrategy: 'clear'` clears the caches on every call; `artifacts` takes the Angular CLI `Output location`; a project without any build command fails with a hint instead of passing with `echo`. The result names the command's origin in `commandSource`. `incrementalMode`, `forceFullBuild`, `changedFiles` and `cacheStrategy: 'skip'` are still accepted, deprecated and without effect, each with a warning; `incremental` and `incompatibilityIssues` are no longer set (analyze-build-impact lists the affected files). core: `resolveBuildCommand` detects Webpack (`npx webpack --mode=production`, source `webpack`), and `projectBinPath` is exported.
|
|
48
|
+
- 73a0d58: validate-transformation type-checks the file: new `validateTypes` (default true) loads the file and its imports with the compiler options of its tsconfig (`tsconfig.spec.json` for spec files) and reports the file's own diagnostics as `type` issues; `metadata.typeValidation` says whether it ran. Before, a file with a type error was "Valid (no checks)" with `validateBuild: false`. A `filePath` that does not exist is an error before any build (it was built and reported valid).
|
|
49
|
+
- 5de0344: validate-transformation runs one path: build, tests and lint through `PostTransformValidator` with the project's build command (core `resolveBuildCommand`, project `node_modules/.bin` first on `PATH`). The incremental path is gone: it ran a bare `ng`, skipped the build on a clean git tree (a committed broken file was Valid), never ran tests or lint while reporting "(build, tests)" or "(build, lint)", ignored `buildTimeout` and reported invented scope and speedup values. `tools['validate-transformation']` now applies on every call (before only to the choice of path); `buildConfig` has no default any more and is passed as `--configuration` only when set (after `--` for an npm script); `cacheStrategy: 'clear'` clears the caches on every call with a build. `metadata.testValidation` and `lintValidation` are true only when a `test` / `lint` script ran. `incrementalMode`, `transformedFiles`, `forceFullBuild` and `cacheStrategy: 'skip'` are still accepted, deprecated and without effect, each with a notice in the new `warnings` field; `incremental` is no longer set. core: `PostTransformValidator` runs `npm test` and `npm run lint` only when `package.json` has the script (before, a missing `test` script made every validation with `validateTests` fail on npm's placeholder and a missing `lint` script was run and counted as validated), takes `buildArgs`, and `appendBuildArguments` is exported.
|
|
50
|
+
- a0baaa7: Config warnings reach the tool answer. Every tool call runs in a config warning scope (`ToolRegistry.executeTool`): warnings the call reports, such as deprecated keys without effect in `.angular-modernizer.json`, come back as `configWarnings` (`code`, `message`, optional `key`) in `structuredContent` plus one summary line `Config: N warning(s), see configWarnings: <first message>`. The field is absent when there are none, so other answers are unchanged, and every registered output schema gets the `configWarnings` property. Before, these warnings reached only the server's stderr, and only on the first load of an unchanged config. A tool that throws after config warnings were reported answers with its error text plus the line `Config: N warning(s): <first message>` (no `structuredContent`, as before).
|
|
51
|
+
- 46f33fa: Layer warnings reach the tool answer. `ArchitecturePlugin` reports each difference between `layers` and `layersSource` as a `layers-drift` config warning and a `layersSource` that cannot be imported as `layers-source-failed` (key `layersSource`, the inline layers stay in effect); before, both reached only stderr and `getLayerDriftWarnings()` had no caller. The scan worker collects the config warnings of its run and sends them back with its result or its error, and the host reports them into the call, so scan-all, scan-solid, scan-angular, scan-architecture and analyze-project answer them as `configWarnings`, warm runs without a worker included. A cancelled scan carries none.
|
|
52
|
+
- 95ee304: validate-project-compatibility is deprecated and checks nothing: it answers at once, without reading the project, with `deprecated: true`, `overallCompatibility: 'compatible'`, `recommendedParser: 'standard'`, `estimatedSuccessRate: 1`, `filesSampled: 0` and no checks, and points to find-angular-symbol, list-imports and validate-before-transform. No code path applied the parser it recommended, and its answers were wrong: the decorator check read only the first 50 walked files (e2e files first), the alias message was a fixed text naming aliases a project may not have, every constructor parameter property counted as a complex constructor, the sample transformation could not fail, `filesSampled` was the sample limit and the verdict and success rate were a fixed mapping of the warning count. Its arguments stay accepted without effect. core: `Kernel.initialize` no longer runs `ProjectCompatibilityValidator` (it walked the project three times per kernel, 0.5 to 0.75 s on a large app, for a result nothing read); `getProjectContext()` is deprecated and returns a neutral context (every flag `false`, `angularVersion` empty instead of a fixed `17.0.0`). `ProjectCompatibilityValidator` and its report types are deprecated and stay exported in 1.x.
|
|
53
|
+
|
|
54
|
+
### Patch Changes
|
|
55
|
+
|
|
56
|
+
- aaaa522: analyze-project took the first 50 TypeScript files without saying so. `maxFiles` (argument or `tools['analyze-project'].maxFiles`, default 50, integer of at least 1; the argument wins) sets the cap, `counts.truncated` and the summary report files left out, and the description names the default. A project fact of the analyzer rules (the framework detector) is reported once instead of once per analyzed file. `counts.totalFiles` counts the TypeScript files eligible for analysis instead of every file of the project, templates, styles and JSON included.
|
|
57
|
+
- d9ba9f9: A transform-code batch cancelled while it type-checks its transformed files restores every file. The checks run synchronously, so the cancel was read only after the batch had answered; the client got no answer (the cancelled request is not answered) and every changed file stayed changed, backups included. The batch now lets the server read the cancel before it decides.
|
|
58
|
+
- 0cc387f: analyze-build-impact labels `estimatedBuildTime` as what it is: a heuristic (affected files / 10, at least 5 s), not a measurement. The summary says "heuristic build estimate N s (files / 10, at least 5 s; not measured)" instead of "about N s build", and the output schema describes the field (it reported "~30 s" for 295 files against a 65 to 70 s full build).
|
|
59
|
+
- e0ea99f: run-build and validate-transformation with `cacheStrategy: 'clear'` remove `.angular/cache` (and `.nx/cache` in an Nx workspace) with `fs.rmSync`, and only when the path resolved through symlinks lies inside the project root and not under `node_modules`. They used to run `rm -rf .angular/cache` and, in an Nx workspace, `rm -rf .nx/cache node_modules/.cache/nx` through the shell: `rm` followed a symlinked or shared `node_modules` (pnpm and monorepo layouts, project copies) and deleted outside the project, and every error was ignored. A cache that is left in place or cannot be removed is now reported as a build warning; `node_modules/.cache/nx` of older Nx versions is never removed (the warning points to `nx reset`).
|
|
60
|
+
- fe2e7e8: The published tarballs include `CHANGELOG.md`: no package listed it in `files`, so the release notes were missing from every installed package.
|
|
61
|
+
- a5fb32b: run-angular-cli and run-schematic start `npx ng` with the arguments as argv instead of one shell line. Before, `;`, `$( )` or backticks in `args`, the schematic `target`, an option value or `collection` ran further commands, and with `dryRun` the `--dry-run` flag ended up behind the `;`, so the schematic wrote files. On POSIX no shell runs any more; Windows needs one for `npx.cmd`, there values with cmd.exe metacharacters (`& | < > ^ % ! "`, backtick, line breaks) are rejected before anything runs. run-schematic rejects a `collection` that is no npm package name.
|
|
62
|
+
- 72f6003: The component transformations keep the behavior of the code they touch and change nothing on a second run. component-inputs-interface-extraction writes `<Class>Inputs` before the class (it landed inside the first import, `impointerface`) and only once (a second run added another interface and `implements X, X`), exported with the class and with the type parameters the inputs use; inputs without an annotation need a string, number or boolean value. facade-pattern is no longer refused by its pre-validation schema (it required `@Injectable` on a component) and no longer replaces business methods by `// TODO` stubs: methods that only use injected dependencies move word for word into `<Name>Facade` in `<name>.facade.ts` (`@Injectable()`, added to the component's `providers`), the component keeps delegating methods with the original signatures, methods using component state stay with a reason. form-modernization is no longer refused for a missing `FormsModule` import, finds the FormBuilder under any member name (`_formBuilder`, `_fb`, constructor parameter properties) and turns the `[value, validators]` shorthand of group and array entries into controls; NonNullable or Untyped builders and entries typed `any` keep the class with a reason. Its `modernizeFormControlInit` option (`new FormControl(null)` to `new FormControl('')`) is now off by default, since it changes control values. missing-output-transform keeps the method body and emits the new output at its end (it replaced the whole body), skips methods returning a value and names the hosts that have to bind the outputs; output types are written as in the file instead of `import("/abs/path").T`. container-presentational is deprecated and changes nothing (it removed services still in use and lost method bodies); use missing-output-transform. `PublicApi.analysis.componentHostFinder` (api) gives transform rules the component host search.
|
|
63
|
+
- 4d20728: `.angular-modernizer.json` is validated against the schema wherever the MCP server runs. The schema path came from `process.cwd()`, so a server started in a client project printed "Failed to load JSON Schema ... Validation disabled" and accepted any file; now an invalid file fails scans and transformations with the loader's message, which names unknown keys (`must NOT have additional properties ('scan-angular')`). Configs that relied on keys outside the schema (for example top-level `scan-angular`, `scan-solid` or `scan-architecture` sections, or `rules.solid`) are rejected until they are moved to the documented keys. The Angular and Architecture plugins no longer fall back to their defaults on an invalid config, and the investigation tools that read `parser.componentDecorators` keep their `@Component` fallback but report the reason as a warning. Config edits are picked up without restarting the server (the loader rereads the file when its modification time or size changes). `projectRoot`, `projectContext` and `codingStandard` are no longer dropped from the loaded config, so the feedback tools honour `projectRoot`. The "Angular CLI with aliases" example of the ngm-platform-config skill gains the required `build.command`.
|
|
64
|
+
- c49e790: Configuration keys that nothing reads are deprecated: the schema still accepts them so existing files load, the ConfigLoader prints one warning per key that is set, and they are removed in 2.0. Affected: `build.mode` (no longer required; only `build.command` is), `build.enforcementLevel`, `build.fastModeCommands`, every key of `validation` (transform-code type-checks, builds and rolls back every transformation itself), the `pathAliases` section, `parser.strategy`, `parser.timeout`, `parser.falsePositiveDetection`, `parser.externalDecorators` and `parser.pathAliasResolution` (only `parser.componentDecorators` is read), `tools['transform-code-batch']` (a batch reads `tools['transform-code']`), `tools['transform-code'].diffFormat` and `.streaming`, `tools['scan-architecture'].includeAutoFixes` (fixes are always returned; the call argument is deprecated too) and `.orchestration` (read only with apiStyle `imperative`), `scope` and `orchestration` of `tools['scan-all']`, `tools['scan-angular']` and `tools['scan-solid']`, and `tools['analyze-project'].orchestration`.
|
|
65
|
+
- dcf71cf: The counts in the READMEs (tools, analysis rules per plugin, transformation types, agents, skills) are generated from the built packages and checked in CI, so they cannot drift from the code.
|
|
66
|
+
- f5a76d7: Package docs, agents and skills carry no hand-typed counts of tools, rules, transformation types, agents, skills or tests and no speedup figures any more; where a count stays it is generated from the code. Wrong facts are corrected: `IKernel` is an interface with `getProjectRoot()`, `ProgressStore` lives in adapter-mcp, plugin-solid has transform rules, the framework detector id is `analyzer:framework-detector`, the real-build scripts run in adapter-mcp, a build ends as a process group only on POSIX, and the README links the package changelogs.
|
|
67
|
+
- 3e3a815: refresh-state no longer marks old analysis records about registered rules, free slugs or free-text tool names as `unknown-tool`; review-feedback, suggest-improvements and analyze-parser-performance read them again.
|
|
68
|
+
- 3948cd1: `tools['collect-feedback'].minCompletenessScore` and `.strictMode` take effect: with `minCompletenessScore` set, feedback below that score is reported with `validationResult.valid: false`, with `strictMode: true` feedback with warnings too; storage is not affected. Unset, `valid` still means "no errors" (the schema no longer claims a default of 70). review-feedback no longer requires `analysisType`: it comes from the argument, `tools['review-feedback'].analysisType` or `'all'`, and the result names it in `analysisType`; before, the config value could never apply because the argument was required.
|
|
69
|
+
- ea8209a: find-usages resolves a relative `file` filter against `projectRoot` (before it answered 0 usages), and its summary names the `usageType` filter ("2 usage(s) of type call of 'x'"), also with `summaryOnly` and for an empty result. get-call-graph lists top level calls as callers named `<module>` with kind `module` ("module level: <snippet>" in the summary).
|
|
70
|
+
- 2e263fa: inheritance-to-composition transforms with its default options and the result compiles. Its default `minConfidence` 0.8 was unreachable (the analyzer capped the confidence at 0.785); a pure base method now reaches 0.95. `InheritanceAnalyzer` resolves bases through the type checker, so generic bases (`extends BaseStore<IChat>`) and same-named classes resolve; library bases are listed in `skipped` with the reason instead of vanishing, and base methods count as used when the derived class reads them (called or not) or, in `analyzeClass`, when callers use them through the derived type. The transformation moves only used base methods that need no state of the base (readonly constants are copied) word for word into `<Base>Helper` in `<base>.helper.ts` next to the base (a created file in `changedFiles`, removed by rollback, `providedIn: 'root'`), removes them from the base, injects the helper in the derived classes of the requested file and keeps delegating methods for callers through the derived type; `extends` goes only when nothing else of the base is used. Before, it removed `extends` without moving inherited state, left `this.<member>` in other derived classes, copied state into a singleton and wrote absolute `import("...")` types. Library and state-only bases, methods reading state and methods other classes use stay, each with the reason in `ruleMessages`. New option `serviceName`; `requireApproval`, `safeMode` and `preserveOriginalAsComments` have no effect. `InheritanceToCompositionTransformer` (core) is deprecated.
|
|
71
|
+
- a094112: constructor-to-inject keeps `@Inject(TOKEN)`: `@Inject(TOAST_CONFIG_TOKEN) public toastConfig: ToastConfig` used to become `inject(ToastConfig)` (an interface, so the result did not compile) and now becomes `inject<ToastConfig>(TOAST_CONFIG_TOKEN)`. `@Optional()`, `@Self()`, `@SkipSelf()` and `@Host()` become inject() options (`inject(NgControl, { optional: true, self: true })`; under `strictNullChecks` an optional dependency keeps its declared type with `!`), tokens of primitive and array dependencies are converted too. String tokens and other parameter decorators keep the parameter, and the rule message (`ruleMessages`) names it. A kept constructor whose parameters were all converted is written as `constructor()` instead of `constructor(\n)`, a kept multi-line parameter list keeps its trailing comma, `inject` is added on its own line to a multi-line `@angular/core` import and decorator imports no longer used are removed. dependency-injection-migration converts constructor parameters with `@Inject(...)` through the same helper (it only looked at decorated properties and changed nothing on constructor injection); string tokens on parameters and properties stay unchanged with a reason instead of becoming `inject(<NAME>_TOKEN)` for a constant that does not exist. Both rewrite `new X(a, b)` in `*.spec.ts` / `*.test.ts` files of the project into `runInInjectionContext(Injector.create({ providers: [{ provide: A, useValue: a }], parent: TestBed.inject(EnvironmentInjector) }), () => new X())`, so the specs keep compiling and run the class in an injection context; the specs are saved with the class and listed in `changedFiles`.
|
|
72
|
+
|
|
73
|
+
transform-code and rollback-changes handle a file that several transformations of one call changed (such a spec of two batch files): rollback-changes restored only the newest of its backups and left the earlier changes in the file; it now restores the text from before the call. In a batch with `rollbackStrategy: 'selective'`, a file that changed such a file together with a failed file is failed and restored with it, and the reason names the shared file. Files a batch restored itself are no longer listed in `changedFiles` when the batch paths were relative or not normalized, and a later rollback-changes counts them as restored instead of failing with "changed since the transformation".
|
|
74
|
+
|
|
75
|
+
- 887cafb: search-codebase reports in `totalCount` every match, not only the returned ones, and sets `truncated` when `maxResults` cut the list; the summary says how many were shown. get-call-graph and resolve-type resolve a relative `file` against `projectRoot` and fail with `file does not exist` for a missing file instead of answering "Method ... not found" or "Could not resolve type". inspect-template and inspect-form-group answer a `className` that is not in the file with `No class named X in <file>` and the classes the file declares.
|
|
76
|
+
- 18405b9: learn-patterns no longer edits any `.gitignore` outside its output: it used to append the fixture folder as an absolute path to the `.gitignore` found up to five levels above the server's working directory, or create one there. It now writes only a `.gitignore` with `*` into an output folder it creates itself. Rule files were never written, so `artifacts.rules` and `generatedRules[].path` are gone; `generateRules` reports proposed rules only, `outputFormat: 'rules'` and `ruleOutputPath` are deprecated and have no effect. Pattern ids are stable (`learned-<category>-<type>` instead of a timestamp), so a second run with the same knowledge base recognises the known patterns instead of storing every one as new. `anonymizationLevel: 'strict'` (default) now hashes the file path of each example and renames identifiers, string literals and template text in code and metadata deterministically, keeping Angular, RxJS and TypeScript names, and drops comments; before, it kept the absolute path and renamed only some class declarations, randomly. `moderate` gives project-relative paths and keeps the code, `minimal` keeps both.
|
|
77
|
+
- 6a638ab: parse-stack-trace returns `skippedLines`, the number of lines that look like stack frames but have no file location, and names the first five in the summary instead of dropping them silently. Frames without a column are listed as `file:line`. Firefox and Safari traces are recognised, so their summary no longer says "No stack frames found", and ng serve dependency chunks under `.angular/cache/.../vite/deps` no longer count as project frames.
|
|
78
|
+
- 68385c2: run-angular-cli, run-schematic and run-build run with color off (`NO_COLOR=1`, `FORCE_COLOR=0`; run-angular-cli's `options.env` can override) and return `stdout`, `stderr`, `output`, `errors` and `summary` without ANSI codes; run-build reads the Angular CLI output location again (it lost the plain output with `CI=true` in 1.2). A timed-out run-angular-cli or run-schematic call keeps the output printed before the timeout (and run-schematic the files it reported) and reports the measured time instead of the configured timeout. A missing run-angular-cli `cwd` or run-build `rootPath` is reported as such instead of "spawn /bin/sh ENOENT". A command ended by a signal no longer reports exit code 0.
|
|
79
|
+
- 0d75161: plan-migration accepts a `styleProfile` without `diRatio` or `rxjsRatio`, as its input schema allows; a missing ratio counts as 0 instead of failing the call. analyze-core-to-shared finds the importers of a core file through the project's module resolution, so files that import it through a tsconfig `paths` alias count toward `reverseDependencies` and the breaking change risk; each importer lists the names it imports from that file. extract-libraries no longer offers spec, test, e2e, `*.config.ts` or `.d.ts` files as library artifacts, also when the tsconfig includes them.
|
|
80
|
+
- b7d2a0e: validate-before-transform: the syntax check reports parse errors only and the type check semantic errors only; before, the syntax check ran the full pre-emit diagnostics, so every type error came twice (syntax and type) and stayed a syntax error with `validateTypes: false`. The dependency check also checks imports through a `paths` alias of the tsconfig (`@shared/...`); before, only relative and absolute imports were checked. Issues of a decorated method name the method's line, not the decorator's. `duration` covers the whole call including the project load (before, only the checks: 905 ms reported for a 7.5 s call).
|
|
81
|
+
- 0adbdde: scan-all, scan-angular and scan-solid file a finding of a project-wide rule under the analyzed file it points at, not under the file the rule happened to run for. `architecture:library-extraction-opportunity` reports every opportunity on the first file it is called for, so its findings were cached under an unrelated file, and a warm scan that re-analyzed any other file (one edited file, or the files of a scoped scan) reported them a second time next to the cached entry. A finding on a file the warm scan serves from the cache now comes from that file's entry only. The cache versions move to `scan-4` and `scan-all-4`, so entries written before are analyzed again once.
|
|
82
|
+
- 5032186: library-extraction works with the documented `libraryPrefix` forms and leaves a complete, reversible extraction. `@scope` gives the selector prefix `scope` and `@scope/name` gives `name` (the CLI rejected `--prefix=@scope`). `ng generate library` runs asynchronously in a temporary workspace with a timeout (`cliTimeoutMs`, default 300000) and the call's abort signal, ending its process tree on both; before, `execSync` blocked the server for as long as `ng` ran and a cancel had no effect. The artifacts move instead of being copied, their templates and styles move along, every importer (relative, path alias, spec, barrel, `import()`) gets the library's import name, the ng-packagr entry file exports the moved files (the built package exported only the CLI placeholder), and angular.json plus every root tsconfig that declares `paths` get targeted edits instead of a reformatted file. Secondary entry points live in `<library>/<entry>/` with their own `ng-package.json`; the invalid `lib.secondaryEntryPoints` key that broke `ng build` is gone. All created, changed and deleted files, angular.json and the tsconfig files included, are in `changedFiles` and restored by rollback-changes with file-backup and git-stash. Artifacts that import the app, templates outside the artifact's folder and other conflicts change nothing and say why; relative artifact paths resolve against angular.json's folder, not the server's working directory. A second run may name the moved file as `filePath` again: transform-code takes another file of the workspace as context, and the rule reports that the artifacts are already in the library.
|
|
83
|
+
|
|
84
|
+
any-to-interface types the generated members through the type checker (where each member's value goes, the arguments callers pass) instead of `unknown`, so assignments to typed properties no longer fail and roll back; a target whose member types cannot be found keeps `any` with the reason. Interfaces are named like interface-extraction names them.
|
|
85
|
+
|
|
86
|
+
core-shared-modules is deprecated: it never edited a file and spent 25 s and more on a report. It now answers at once with a pointer to `analyze-core-to-shared`; transform-code answers it and container-presentational without loading the project. The report orchestrator behind it is removed.
|
|
87
|
+
|
|
88
|
+
transform-code handles files a rule deletes (backup, `changedFiles`, rollback; core `backupChanges` with `deleted`), passes the call's abort signal to the rules (`TransformContext.signal`, core `TransformationConfig.signal`) and runs no further rule once a rule removed the requested file; the result names the rules it skipped (core `skippedRules` and a line in `message`). core's `RealFileSystemAdapter` throws ts-morph's `FileNotFoundError` for a missing file instead of a plain error, so ts-morph treats the file as absent (`createSourceFile` with `overwrite` failed for a file no longer on disk).
|
|
89
|
+
|
|
90
|
+
- 6ea9944: review-feedback's default `minCompleteness` is 40 instead of 70. collect-feedback stores a transformation record without outcome metrics and without a diff, so a successful transformation sent with execution and validation results, as the agents send it, scores 40 of 100 and the default excluded every such record from the analysis. A failed transformation with an error and validation results scores 60. A success sent without any validation result scores 20 and stays excluded. The input schema description names the scoring.
|
|
91
|
+
- 58ea829: review-feedback's `low-completeness` warning counts the records below `minCompleteness`, the ones excluded from learning. It used a fixed threshold of 70, which every record collected by the agents stays below, so the warning appeared on every review.
|
|
92
|
+
- 8ae1ce8: run-schematic reports every warning and conflict line (a global regex tested with `.test()` skipped every second one). The collection check resolves the collection's package from the project and requires a `schematics` entry in its package.json; before, it ran `ng generate --help`, which passed for any collection, and a missing one failed later inside `ng`. `executionOptions.conflictStrategy` is deprecated: it never had an effect, it is still accepted and answers with a warning; `force` is described as what it does (passes `--force`). run-angular-cli accepts the commands `version`, `extract-i18n` and `e2e`.
|
|
93
|
+
- bb5f1a6: scan-architecture reads `tools['scan-architecture']` of `.angular-modernizer.json` in all paths (it read a top-level key that the schema rejects, and the default path read no config). A scope that matches no folder is an error instead of a scan of the first 100 project files, the scope filter runs before the `maxFiles` cap in every path, and a cap that leaves files of the scope out reports `execution.incomplete` with `stopReason: 'max-files'`, `skippedFiles` and `scopeFiles`. Violations carry `filePath` relative to `rootPath`, like the other scans. The default fluent path rejects an `orchestration` argument, which only `apiStyle: 'imperative'` reads. The imperative path's cache keeps one entry per analyzed file with the findings of the file-scope rules, runs the project-wide rules over the whole scope on every call, writes nothing after a cancel and is bypassed by scans limited by `rules`: warm runs no longer add project-wide findings (70, 74, 78 on a large app).
|
|
94
|
+
- 8cc29ab: Findings of rules that read the whole project no longer depend on scan batches. `AnalysisRule` gets an optional `scope: 'project'`, declared by interface-duplication, inheritance-analysis, library-extraction-opportunity, model-separation and srp-single-responsibility-violation; scan-all, scan-solid and scan-angular run these rules over the whole scan scope in a project of their own and the other rules in batches as before. On a large app interface-duplication gave 288 findings at batch size 100 and 412 in one batch, inheritance-analysis 7 (or 0) instead of 730, library-extraction-opportunity 10 or 17 instead of 57; now every batch size and every warm run gives the whole-scope numbers, within the scan worker's heap limit. The class index of inheritance-analysis and the scan of library-extraction-opportunity are rebuilt when the project holds other files, not only when their number changes. Cache entries written by the batch-local scans become stale once.
|
|
95
|
+
- 22c643e: scan-all, scan-solid and scan-angular put the scan's `includePatterns` and `excludePatterns` (argument or `tools.<tool>`) into the cache version, like a `rules` selection. Before, a folder scan cached findings of rules that read other files as seen from that folder, and the next scan of the whole project served them (on a large app 9559 instead of 9561 findings), so compare-health could report changes that did not happen. A scan with the default patterns keeps its version. Entries are kept per file: a scan with its own patterns or rules replaces the entries of the files it analyzed, and the next full scan analyzes those files again.
|
|
96
|
+
- ab58d9d: scan-solid and scan-angular cache one entry per analyzed `.ts` file, also without findings, with the findings on its template and the template files as dependencies, like scan-all. A warm scan-angular used to lose every template finding (14146 of 76764 on a large app) and analyze every clean file again. scan-all, scan-solid and scan-angular return findings in file path order whatever part comes from the cache, so pages and ids no longer depend on the cache state; their cache entries become stale when the rule configuration (rule options, `parser`, `layers`, `layersSource` and its module) changes; a cancelled scan writes no entries. scan-solid and scan-angular read `tools['scan-solid']` / `tools['scan-angular']` of `.angular-modernizer.json` (they read a top-level key the schema rejects). A directory named like a source file (`x.ts/`) is no longer scanned, `analyzedFiles` counts only files that were analyzed, and scan-all's `cache.filesFromCache` counts cached files instead of cached findings. The `rules` descriptions now say that all rules run and the list filters the findings.
|
|
97
|
+
- 4b65fda: The `orchestration` argument of scan-all, scan-solid and scan-angular is deprecated and has no effect: the scans always run in the scan worker. A call with it answers with a notice in `warnings` and the summary. Before, the argument was ignored, and with `useWorkerThreads` the result carried an `orchestration` block that claimed a parallel run with a cache hit rate of 0 that never happened; that block is no longer set. The input schema still accepts the argument so 1.x callers keep working. The ngm-platform-config skill says the same.
|
|
98
|
+
- a29a9a1: The server no longer ends when `--max-heap-mb` (or `ANGULAR_MODERNIZER_MAX_HEAP_MB`) is too small for the scan worker. The waiting scan worker has its own `error` listener (below about 80 MB it ran out of memory while waiting and the unhandled `error` event ended the server 7 to 430 ms after the start), and below 16 MB no scan worker starts at all, because under about 3 MB V8 cannot create the worker's isolate and ends the whole process. Scans then answer `isError` with a hint, the CLI warns at start. A streaming scan-architecture whose operation the ProgressStore sweep already removed no longer ends the server with an unhandled rejection.
|
|
99
|
+
- 3386761: A tool answer above the 4 MB limit is replaced by an error that names only the narrowing options the tool has (`summaryOnly`, `maxResults`, `maxNodes`, `depth`, `maxFiles`, `includePatterns`, `scope`, `rules`, as its input schema lists them). Before, it suggested `summaryOnly` and `maxNodes` to every tool, also to the scans, which have neither. A tool without such an option is told to run on a smaller input.
|
|
100
|
+
- 35bd33e: standalone-migration produces code that compiles and keeps every module scope. Components get as `imports` exactly the NgModule imports whose exported components, directives and pipes their template uses (template parsed with `@angular/compiler`, matched with Angular's `SelectorMatcher`; library modules read from `ɵmod` in their typings, project modules from their `exports`), no longer pipe names as identifiers, no duplicates, and `X.forRoot()` as `X`; module imports whose exports cannot be read are kept and named. The declaring NgModules import the class instead of declaring it and keep their `exports`, so other declarations and importing modules still see it (it used to vanish from `declarations` and `exports`). From Angular 19 on `standalone: false` is removed, before 19 `standalone: true` is written. Directives get no `imports` property. A component whose template uses a non-standalone declaration of its module stays unchanged with the reason; an NgModule file as target migrates all its declarations in one call, classes whose templates use each other are kept with the reason. TestBed `declarations` in specs move to `imports`; routes are unchanged. NgModules and specs are changed inside the transform-code envelope (backed up, type-checked, rolled back, listed in `changedFiles`) instead of being saved on their own, and new text follows the file's quotes and indentation. NgModule arrays are read as Angular flattens them (spreads, constants, nested arrays, `forwardRef`); a class declared through a constant that is used elsewhere, or named by a module whose declarations cannot be read, is kept with the reason, as is a `standalone: false` that carries a comment (e.g. `standalone-ignore`). transform-code's pre-validation accepts directives, pipes and NgModule files.
|
|
101
|
+
- 8500ab4: get-operation-progress stops `elapsedTime` of a completed, failed, timed-out or cancelled operation at the moment it ended; before, the clock kept running on every poll. A streaming transform-code answers at once with `status: "running"` and `success`, `modified`, `validation.syntaxValid` and `validation.typeCheckPassed` set to `false`, because nothing has run yet; before, it claimed success and a passed type check, also for a transformation that later failed. The running answer is not sent with `isError`; the outcome is the result that get-operation-progress returns.
|
|
102
|
+
- 448a1e1: scan-all, scan-angular, scan-solid, scan-architecture, analyze-project, extract-libraries and `analyzeProject` apply `rules['<rule-id>'].suppressionComments` to every rule. Before, only `architecture:layer-boundary-violation` honoured a marker, so a `// static-ignore` comment had no effect on `angular:static-class-detection`. The parallel and incremental paths of analyze-project and scan-architecture now pass the `rules` section to the rules.
|
|
103
|
+
- f233f31: transform-code counts as app files also the files the app config reaches through imports, not only the files it lists. The Angular CLI form of `tsconfig.app.json` lists only `src/main.ts`, so with a spec config that includes every source file, a broken importer still counted as a test file, went to `testTypeErrors` and the transform answered "type check passed" without a rollback.
|
|
104
|
+
- 3df8b30: transform-code counts a file as a test file only when `tsconfig.spec.json` lists it and the app config (`tsconfig.app.json` in the project root or in `src/`) does not compile it. Angular CLI apps often let the spec config include every source file; then every app file counted as a test file, new errors in generated or importing files went to `testTypeErrors`, and the call answered "type check passed" while the app no longer compiled (seen with service-bag-transform: 5 new TS2307).
|
|
105
|
+
- d49c641: The adapter-mcp README lists the tools in a table generated from `tools/list`, and the input and output schemas are the reference for arguments and results; the hand-written tool reference, which lagged the code, is gone. The scan tool descriptions no longer state rule counts.
|
|
106
|
+
- 9cffd06: transform-code backs up, saves and checks every file a transformation changes, and rollback-changes restores the right state. A run that changes nothing writes no backup and no git snapshot; before, a no-op second run wrote a backup of the already transformed file and rollback-changes could no longer reach the original (file backup and git snapshot alike). Backups are taken from the text before the transformation and record the text it left: rollback-changes restores a file only while it still holds that text and reports it otherwise (new `force` argument), so an old backup no longer overwrites later edits; files the transformation created are removed. Files a rule changed besides the requested one (callers of static-class-to-functions, the files interface-duplication rewrites) are saved, backed up, type-checked against their previous errors and rolled back with it, and listed in `changedFiles`; before, they stayed changed only in memory and the app no longer compiled while the response said "type check passed". The git snapshot is kept reachable under `refs/angular-modernizer/snapshots/` so `git gc` does not remove it. Files outside `projectRoot` are refused. core: `RollbackManager.backupChanges`, `RollbackManager.snapshot`, `rollback(files, { force })`, `GitIntegration.protectCommit`.
|
|
107
|
+
- 26aaa50: transform-code backs up, saves, checks and rolls back files other than TypeScript source files. A transform rule hands their new texts to transform-code in `TransformResult.fileChanges` (plugin-system; core passes them through) instead of writing them; they get the same backup, git snapshot, rollback with file-backup and git-stash, `changedFiles` entry and refusal outside `projectRoot` as source files, and a text equal to the file on disk writes no backup. When a call changes a template, the Angular compiler of the target project (`@angular/compiler-cli`) compares the template errors of the affected components before and after; a new error fails the call and rolls it back (`validation.templateCheck`, `introducedTemplateErrors`; `skipped` with a warning when the project has no compiler-cli). promise-component-to-reactive now converts components with a `templateUrl` file under the same rules as inline templates and keeps one whose template file another class uses too; before, it kept every `templateUrl` component. After a rollback `changedFiles` lists only files that are still changed and `rollback.files` the restored ones; before, a rolled-back single-file call listed every file as changed. api: `findTemplateOwnerClasses` and `ComponentTemplateLoader.owners` list every class using a template file, in all folders.
|
|
108
|
+
- 86bcb5a: Transformations write in the code style of the file they change. The execution engine runs every transform rule with ts-morph's manipulation settings set to the file's quotes and indentation (else `.prettierrc` / `.editorconfig`, else single quotes and 2 spaces; `codeStyleOf` / `applyCodeStyle` / `withCodeStyle` are now exported by `@angular-modernizer/api`, moved from plugin-standalone), so new imports, fields, interfaces and files no longer come out with four spaces and double quotes. subscription-transform, form-modernization and dependency-injection-migration keep the layout of the calls they rewrite (callbacks were re-indented to 12 spaces), static-class-to-functions and extract-static-from-stateful keep bodies, JSDoc and initializers indented one level further out (they came out flush left) and import only the members an importer uses, in its existing declaration. Imports go into the file's existing declarations, and names a transformation made unused are removed (the `fb` field and `FormBuilder` import, an `inject` used only by that field; container-presentational imports only the decorators it uses). interface-extraction names interfaces after their place (`CommentDialogData`, `GetStyleResult` instead of `ExtractedInterface1`), inserts them before the class, exported with it, with the type parameters their members use, and leaves literals with call or index signatures inline; any-to-interface exports its interfaces. service-bag-transform names new files `<area>.service.ts` (a file under the former name `<area>-service.ts` is reused), keeps optional markers, defaults and rest parameters of moved methods, copies only declared return types (an inferred one was printed as `import("/abs/path").T`) and writes `providedIn` in the file's quotes.
|
|
109
|
+
- e1f909b: transform-code reports what it did. `standalone-migration` works: transform-code loads plugin-standalone, whose rule now acts only when `standalone-migration` is requested (before, the plugin was never loaded and the call reported success without a change). `changes` counts the added and removed lines of each file as `git diff --numstat` does, in both apiStyles and summed over a batch (before: the rule count, always 1 in the fluent path, 0 in a batch, with net line deltas as additions and deletions). A run that changes nothing answers `modified: false` and "made no changes" with the messages of the rules (`ruleMessages`, e.g. why inheritance-to-composition found nothing or the report of core-shared-modules). A rule failure fails the fluent path as it fails the imperative one (core `TransformStage` records the errors of a failed transformation). The pre-validation refusal names only errors as blocking. With `validateTransformation: false` the result says `typeCheck: 'skipped'` instead of "type check passed", and `syntaxValid` comes from parsing the transformed text. core exports `countLineChanges`.
|
|
110
|
+
- eb4e5dc: transform-code type-checks the files that import a changed file, so a transformation that breaks its callers (for example constructor-to-inject with `new Service(...)` callers) is rolled back instead of reported as "type check passed"; in a batch the batch file that changed the imported file fails. Type errors in test files (`tsconfig.spec.json`, else `*.spec.ts` / `*.test.ts`) do not fail it but are reported in `validation.testTypeErrors` and the summary; the new `failOnTestErrors` (argument or `tools['transform-code']`, schema in core) makes them fail it. `rollbackOnBuildFailure` (argument or `tools['transform-code']` in `.angular-modernizer.json`) now takes effect: with `false` a transformation whose only failure is the build is kept. `orchestration` of `tools['transform-code']` applies to batches. library-extraction runs the project's `ng` from `node_modules/.bin`, also when the server's PATH does not hold it. orchestrate-migration fails a step whose tool reports `success: false` or `status: 'failed'` (dependent steps no longer run after a rolled-back transformation) and reports each step's name, tool, `toolSuccess` and `toolSummary`. The workflow engine (orchestration) no longer ends the process with an unhandled rejection when a required step of a parallel workflow fails.
|
|
111
|
+
- f606842: One program file without read permission no longer fails analyze-project, the twelve ts-morph investigation tools, analyze-build-impact and plan-migration. They answer for the other files and name the unreadable ones in `warnings` and a `Warning:` line of the summary, as the scans already skipped such a file. The project cache counts the file for its `n/N files loaded` progress but does not hold it; making it readable again needs a tsconfig touch or a server restart, like a new file.
|
|
112
|
+
- 8f6a197: verify-citations names a plan outside `projectRoot` by its absolute path in `plans` and `citations` instead of a `../../` path relative to the root. A plan inside the root stays relative.
|
|
113
|
+
- d270901: A request cancelled while its tool blocks the thread synchronously (for example an investigation query on a loaded project) no longer gets a response: the tool handler lets the event loop read stdin once before the result goes out, so the cancel aborts the request first. Before, such requests were answered after the cancel.
|
|
114
|
+
- c7b9bd4: README: scans end their progress with `total/total`, and a streaming scan-architecture (deprecated) runs on the main thread, so the server answers no request until it ends.
|
|
115
|
+
- 39b4c18: Streaming operations (deprecated `streaming: true` and get-operation-progress) now expire 5 minutes after they completed, failed or were cancelled; before, the age counted from the start, so an operation running longer than 5 minutes (for example transform-code with `validateBuild`) lost its result at the first sweep after completion. An operation that times out after 10 minutes stays readable as `failed` for another 5 minutes instead of disappearing at the next sweep. `OperationMetadata` has a new optional `completedAt`.
|
|
116
|
+
- 6e7b9f1: Scan worker host: a queued scan that is cancelled no longer starts a second waiting worker next to the running scan, a reused worker no longer collects one exit listener per scan (MaxListenersExceededWarning after five scans), and a cancel writes one stderr line with the tool and the worker thread, or that the scan was cancelled while queued.
|
|
117
|
+
- 6b601be: Scans (scan-solid, scan-angular, scan-all, scan-architecture, analyze-project) end their progress with `total/total` when they are not cancelled: a file that could not be loaded or a time budget left the last value below the total, and a scan served entirely from the cache sent no notification at all. The last message says how many files were not analyzed. analyze-project no longer counts a file it cannot load as analyzed.
|
|
118
|
+
- 524a193: `solid:circular-dependency` carries the path of a long cycle once. Every finding gets `cycleId`, the same on every file of a cycle. A cycle of up to 12 edges keeps `circularPath` on every finding as before; a longer one keeps it, with all its DI edges, only on the owner (the file with the smallest path, named in `cycleOwner`), and the other files get `circularPathOmitted: true`, only their own DI edges and a message with the first 3 edges plus "N more". When the owner's own finding shows a shorter cycle, the others keep the path. Before, a 1000-file ring gave about 192 KB per finding and scan-architecture fit about 20 findings into the 4 MB answer; now a default page of 1000 findings fits. The scan-all and scan-architecture caches get new versions, so old findings without `cycleId` are not served. The ngm-circular-breaker skill de-duplicates cycles by `cycleId` and takes the path from the owner's finding.
|
|
119
|
+
- 684ba35: `architecture:inheritance-analysis` reports a child class that uses less than 50 % of the own public and protected instance methods with a body of its base (exactly half is not reported), for bases with at least 5 such methods; private, `#private`, static, abstract and inherited base methods, overload signatures without body and accessors are not counted, each name counts once. A base method counts as used when the child reads it through `this` or `super` (`super()` is no use), overrides it, or its template uses it (parsed). Lifecycle hooks the base implements and the child does not override are no use. One finding per child at the child class, with `usedMethodNames` and `unusedMethodNames` in the metadata; the message makes no god object or composition claim. Bases resolve through the type checker instead of a name index, so same-named classes and `extends ns.Base` resolve to the right class, and errors per class are logged instead of dropped. The base size findings (more than 20 methods or 500 lines, repeated for every child at the base's line in the child's file) and the abstract god base check are removed: `solid:god-object-violation` owns lines, `solid:srp-single-responsibility-violation` methods. The deep chain check counts the classes of the chain resolved by symbol. The plugin passes `parser.componentDecorators` to the rule. Core exports `thisOrSuperMemberNames`, the `this` / `super` reads the inheritance analyzer of the transformation uses too.
|
|
120
|
+
|
|
121
|
+
`architecture:library-extraction-opportunity` skips files inside an existing library (`ng-package.json` or `tsconfig.lib.json` in the file's folder or above, up to the project root). Target folders match whole path segments (`shared-state` no longer matches `shared`, `score` no longer matches `core`), `src` and `lib` never name a domain, a cluster needs at least 3 artifacts and library names are unique. The finding sits at the first artifact in path order, at the line of its first exported statement. A local export of an `index.ts` no longer marks every artifact as exported, spec files are found by file name also when the scan did not load them, `**/` in `excludePatterns` also matches at the top level, and a rule instance reports the opportunities of a changed project again. The defaults are now `minReusabilityScore` 40 and `minCohesionScore` 0.5 (before 20 and 0.3), exported as `LIBRARY_EXTRACTION_DEFAULTS` (frozen) together with the default `targetFolders` `['shared', 'common', 'core', 'libs']`, and used by extract-libraries; the tool's own default list is gone, so extract-libraries no longer scans `models`, `interfaces` and `projects` unless they are passed as `targetFolders`. The library extractor and migration blueprint agents no longer pass 60 and 0.7.
|
|
122
|
+
|
|
123
|
+
The api exports `MarkerFolderResolver` and `LibraryRootResolver` (nearest folder with a marker file, read through the project file system); the i18n app resolver uses the same walk.
|
|
124
|
+
|
|
125
|
+
The package docs, CONFIGURATION.md, the schema and config type descriptions, DEVELOPER_USAGE.md, ngm-scan-interpreter and its rule catalog, ngm-library-extraction-guide, ngm-platform-config and the config field reference, ngm-health-check, ngm-library-extractor and ngm-migration-blueprint describe the new definitions.
|
|
126
|
+
|
|
127
|
+
- 96f89a4: `angular:interface-duplication` and the `interface-duplication` transform share one family definition (`helpers/interface-families.ts`): one suffix table (`Payload` included), the candidates, own-member signatures, the family search, the filters and the reason why the transform would reject a family, with the same thresholds and the same minimum group size (`minSimilarInstances`, default 3) for both. A family counts only the properties its members declare themselves (inherited ones no longer count), an interface another member extends is not a member with it, a family whose shared properties come from a base all members extend is skipped, members are declarations (two interfaces with one name are two members), and only maximal families are reported: no family whose members are a strict subset of another. Each family is reported once in the project, at its first member in path then line order (before: once in every member file), with severity `info` on the finding. The message says whether the transform can consolidate the family and, when it cannot, why (`metadata.fixable`, `notFixableReason`); "similar interfaces" and "Consider consolidating" are gone, `suggestedRefactoring` is `interface-duplication` for fixable families and absent otherwise, and `metadata.declarations` lists the members with file and line. Families and same-name groups are computed once per project state (keyed on the SourceFile objects), not on every analyzed file.
|
|
128
|
+
|
|
129
|
+
`same-name-duplication` reports only exported interfaces declared with an identical shape in two or more files, compared by the type checker (property names, optionality, readonly, member types with the declaration of named types; `T[]` and `Array<T>` agree, two types named `Foo` from different declarations do not), once per group of identical declarations at its first declaration, severity `warning`, listing that group. Declarations whose shapes differ are no longer reported, merged declarations in one file count once, and `metadata.identicalShape` is removed.
|
|
130
|
+
|
|
131
|
+
The ID parameter check (`id-type-mixing`) looks only at public methods (static ones included; no `private`, `protected` or `#private` methods) and reports them at the method name instead of the first decorator. Top-level functions are checked as before. The message says "ID parameters typed as plain string" instead of "unbranded".
|
|
132
|
+
|
|
133
|
+
The transform builds its groups from the families the rule reports: the largest subset of a family that agrees on type text and optionality of `minCommonProperties` properties, with at least `minSimilarInstances` interfaces (before: 2). It now reads `minSimilarInstances`, `minCommonProperties`, `minSimilarityScore` and `baseModelsPath` from the plugin-angular options, where transform-code passes its `options`; before, it read them at the top of the transform config, so the options never reached it. transform-code also passes `minSimilarInstances`, `minCommonProperties` and `minSimilarityScore` of `rules['angular:interface-duplication']` in `.angular-modernizer.json` as defaults under the call `options` (single file and batch; the call wins key by key), so rule and transform use the same thresholds and the rule's fixable claim holds when the options are set only in the rules section. `scope` and `suppressionComments` stay with the rule.
|
|
134
|
+
|
|
135
|
+
The plugin-angular README has a section for the rule, CLAUDE.md lists it among the rules with `rules` overrides, and CONFIGURATION.md, ngm-scan-interpreter (SKILL.md and rule catalog) and the transformation catalog describe the new behavior; the catalog no longer points `interface-extraction` at interface families. The option descriptions in the core config types, the schema, the ngm-platform-config skill and the agent config reference now describe own properties only, the Jaccard score over own property names, maximal families, `minSimilarInstances` as the transform's minimum group size and the transform reading the thresholds from the rules section. The plugin-angular README names a limitation of `same-name-duplication`: named types are compared by their declaration, so two copies of a generic type such as `Box<T>` in different files count as different shapes and are not reported as identical.
|
|
136
|
+
|
|
137
|
+
- 77494f1: `architecture:model-separation` reports, in a file whose main class carries an Angular class decorator from `@angular/core` (or a `parser.componentDecorators` decorator), each exported interface, type, enum, class, constant or function that the class does not use in its contract and that another project file imports, one finding per declaration. The contract covers inputs and outputs, public members (static methods included), dialog data and dialog result types, followed through project interfaces and type aliases. Importers are resolved through barrels, aliases and namespace imports; spec and test files do not count. Files without an Angular class, other Angular classes of the file and exports nobody imports are no longer reported, and the name patterns for constants, functions and classes are gone. Metadata: `violationType: 'non-contract-export'`, `mainClass`, `mainKind`, `importerCount`, `importers`; `importImpact` and `refactoringComplexity` are removed.
|
|
138
|
+
|
|
139
|
+
`architecture:cross-file-architecture` reports a service file (a class with `@Injectable` from `@angular/core`, or an undecorated class registered as a provider anywhere in the project through a `providers` entry, `useClass` or `useExisting`) that uses a component, directive or pipe class as a value, and a file without Angular classes that creates one or reads a static member (such as `new DatePipe()` in a model). Project classes are recognized by their decorator, library classes by their compiled metadata; type-only imports and type positions never count, and folder names are no longer read. The rule now has `scope: 'project'`. Metadata: `violationType` (`service-imports-presentation`, `model-uses-presentation`), `presentationClasses`, `presentationKinds`, `importedModule`, `useLines`.
|
|
140
|
+
|
|
141
|
+
`architecture:service-architecture` is deprecated and reports nothing (removed in 2.0): exported declarations next to a service are reported by `architecture:model-separation`, too many dependencies by `solid:god-object-violation`. The id stays registered; ConfigLoader warns when `rules['architecture:service-architecture']` is set, the schema marks the entry deprecated and the scan-architecture rules list names it as deprecated.
|
|
142
|
+
|
|
143
|
+
The plugin passes `parser.componentDecorators` to both rules. CONFIGURATION.md, the package docs, DEVELOPER_USAGE.md, ngm-scan-interpreter and its rule catalog and ngm-health-check describe the new checks.
|
|
144
|
+
|
|
145
|
+
- 30a1b5a: `architecture:service-bag` and the `service-bag-transform` share one definition in the api. `serviceBagCandidate(cls)` is the gate: a class with `@Injectable` of `@angular/core` (resolved by symbol, nested classes included) and more than 10 public methods with a body. `planServiceBagSplit(cls, assignments?)` returns the backend areas, the verdict and the split plan. A service is a bag when its data access spans at least 2 backend areas with at least 2 methods each. Data access means checker-resolved calls: `HttpClient` methods, `httpResource`, `resource` and `rxResource`, and the store reads `select`, `selectSignal` and `pipe`. Calls inside the class are followed, plus at most one hop into another class. A URL prefix read from an injected provider typed as an interface or token resolves through its `useClass`, `useExisting` or `useValue` binding (also exported: `providedClasses`, `injectionKeyDeclarations`, `InjectedProviderMember`); when it stays unresolved, the endpoint literals after it are no area and the method is data access without a known area. Store `dispatch` and translation are no data access, and neither are events, DOM, files or dialogs. `backendCall` and `serviceCall` are exported for this.
|
|
146
|
+
|
|
147
|
+
The rule reports such a service as a warning (also in `result.severity`) and puts the split plan into `metadata.groups`. Each area gets one group with `key`, `serviceName`, `fileBase`, `methods` and `privateHelpers`, and a last entry lists the methods that stay, each with its reason. Metadata contract change: the kinds `static-utility` and `domain-candidate` are removed and there are no info findings. The metadata fields `concerns`, `domains`, `uncertain`, `responsibilities` and the computed `confidence` are gone, and `areas` entries carry `key` and `methods`. The transform computes the same plan once before any edit and executes exactly that plan. `assignments` move methods by group key, also below the gate. Methods several groups call (mappers, helpers) form the group `shared` (`SERVICE_BAG_SHARED_KEY`, service `<Class>SharedService`) that the other services inject; it is no backend area and does not count for the verdict. A method another service calls is public in its new service: `private` and `protected` go, a `#x` method becomes `x` and the callers call `this.<field>.x`. No method of a group calls a method that stays, so a delegation or a method without a backend call that a group method calls moves with it, and the split compiles where moved methods used to call a method left in the original. A plan whose services would depend on each other in a cycle is refused before any change: the rule answers `modified: false` with `metadata: { refused: true, reason, cycles }` and prints nothing (before, it logged a warning and wrote the cyclic services). Whether the original still uses a moved private helper or a copied private static is decided on the AST (`this.x`, `this.#x`, `this['x']`, `Class.x` or an access the checker resolves to the member), so a same-named call on another value such as `id.trim()` no longer keeps a dead `private trim` in the original. A split that would make a `#x` method public as `x` in a class that also declares a member `x` is refused the same way, with `metadata: { refused: true, reason, clashes }` naming both members.
|
|
148
|
+
|
|
149
|
+
`architecture:static-in-stateful-class` and `extract-static-from-stateful` share the api check `staticInStateful` with `staticExtraction`. A class counts when it has no Angular decorator (resolved by symbol, plus `parser.componentDecorators`; abstract classes included) has an instance member (method, property, accessor or constructor parameter property; a class with only static members is no finding, `angular:static-class-detection` owns it) and holds state: an instance member written outside the constructor, a constructor parameter property or a mutable static. Writes on an own instance created inside a static method of the class (`const x = new Own(); x.a = 1; return x;`) are construction, not state. Factories, statics that use the own class or an own instance, and readonly statics are not reported. The transform moves only the reported statics. Statics that use a private static or the class name stay, and the message gives the reason. `MemberWriteFinder` takes `outsideConstructor` and `ignoreWrite`, and `angularClassKind` is exported.
|
|
150
|
+
|
|
151
|
+
The `ngm-service-bag-splitter` agent shows `metadata.groups`, passes the user's changes as `assignments` keyed by group, and keeps the type check of transform-code on. The scan interpreter, transformation guide and package docs describe the new gate, the plan and the static-in-stateful definition, and the rule catalog names the fix transforms `interface-duplication` and `extract-static-from-stateful`.
|
|
152
|
+
|
|
153
|
+
The agents refer to other agents and skills by their installed names (`ngm-safe-transformer`, `ngm-blast-radius`) instead of `ngm:<name>`: the installer copies them to `~/.claude/agents` and `~/.claude/skills` without a plugin namespace.
|
|
154
|
+
|
|
155
|
+
- 92b1c8d: `rules['angular:too-many-inputs'].maxInputs` sets how many own inputs a component may declare before `angular:too-many-inputs` reports it (default 5). Before, the README documented the option but the schema rejected it and the rule always used 5. The schema has its own definition (`tooManyInputsConfig`, core type `TooManyInputsConfig`), and the plugin passes the value to the rule. `learn-patterns` reads the same option for its `too-many-inputs` pattern. The platform config and scan interpreter skills name the option.
|
|
156
|
+
- Updated dependencies [33448f3]
|
|
157
|
+
- Updated dependencies [eeeed7c]
|
|
158
|
+
- Updated dependencies [21c9257]
|
|
159
|
+
- Updated dependencies [27dc552]
|
|
160
|
+
- Updated dependencies [ead0a17]
|
|
161
|
+
- Updated dependencies [7af51c3]
|
|
162
|
+
- Updated dependencies [181c66d]
|
|
163
|
+
- Updated dependencies [2d9a0c3]
|
|
164
|
+
- Updated dependencies [fe2e7e8]
|
|
165
|
+
- Updated dependencies [d586220]
|
|
166
|
+
- Updated dependencies [87ec374]
|
|
167
|
+
- Updated dependencies [54352b3]
|
|
168
|
+
- Updated dependencies [187bfd4]
|
|
169
|
+
- Updated dependencies [5cd8275]
|
|
170
|
+
- Updated dependencies [42633ec]
|
|
171
|
+
- Updated dependencies [72f6003]
|
|
172
|
+
- Updated dependencies [e9fe531]
|
|
173
|
+
- Updated dependencies [4d20728]
|
|
174
|
+
- Updated dependencies [97328a6]
|
|
175
|
+
- Updated dependencies [c49e790]
|
|
176
|
+
- Updated dependencies [0e3e0a3]
|
|
177
|
+
- Updated dependencies [f5a76d7]
|
|
178
|
+
- Updated dependencies [78ef0db]
|
|
179
|
+
- Updated dependencies [3948cd1]
|
|
180
|
+
- Updated dependencies [293e319]
|
|
181
|
+
- Updated dependencies [f4e44e6]
|
|
182
|
+
- Updated dependencies [a1596d6]
|
|
183
|
+
- Updated dependencies [d5e0000]
|
|
184
|
+
- Updated dependencies [2e263fa]
|
|
185
|
+
- Updated dependencies [a094112]
|
|
186
|
+
- Updated dependencies [e81b0a9]
|
|
187
|
+
- Updated dependencies [e3f1ca0]
|
|
188
|
+
- Updated dependencies [468957f]
|
|
189
|
+
- Updated dependencies [e414b02]
|
|
190
|
+
- Updated dependencies [eb7742e]
|
|
191
|
+
- Updated dependencies [8ce8b28]
|
|
192
|
+
- Updated dependencies [891d0e1]
|
|
193
|
+
- Updated dependencies [91e6665]
|
|
194
|
+
- Updated dependencies [16aeab7]
|
|
195
|
+
- Updated dependencies [9e42a24]
|
|
196
|
+
- Updated dependencies [aa29928]
|
|
197
|
+
- Updated dependencies [1e98700]
|
|
198
|
+
- Updated dependencies [9e534e6]
|
|
199
|
+
- Updated dependencies [b00a62a]
|
|
200
|
+
- Updated dependencies [dfff988]
|
|
201
|
+
- Updated dependencies [84550c6]
|
|
202
|
+
- Updated dependencies [1c51423]
|
|
203
|
+
- Updated dependencies [b13fab6]
|
|
204
|
+
- Updated dependencies [619fc60]
|
|
205
|
+
- Updated dependencies [488ba42]
|
|
206
|
+
- Updated dependencies [b7d2a0e]
|
|
207
|
+
- Updated dependencies [55f42d8]
|
|
208
|
+
- Updated dependencies [1626753]
|
|
209
|
+
- Updated dependencies [7019870]
|
|
210
|
+
- Updated dependencies [3081384]
|
|
211
|
+
- Updated dependencies [b2b1579]
|
|
212
|
+
- Updated dependencies [5032186]
|
|
213
|
+
- Updated dependencies [4a04d06]
|
|
214
|
+
- Updated dependencies [693cde8]
|
|
215
|
+
- Updated dependencies [84e96b1]
|
|
216
|
+
- Updated dependencies [4813ace]
|
|
217
|
+
- Updated dependencies [cb7854e]
|
|
218
|
+
- Updated dependencies [ef48c2d]
|
|
219
|
+
- Updated dependencies [8cc29ab]
|
|
220
|
+
- Updated dependencies [250f6c0]
|
|
221
|
+
- Updated dependencies [250f6c0]
|
|
222
|
+
- Updated dependencies [d9c0ba4]
|
|
223
|
+
- Updated dependencies [79a6c81]
|
|
224
|
+
- Updated dependencies [35bd33e]
|
|
225
|
+
- Updated dependencies [8fe5389]
|
|
226
|
+
- Updated dependencies [9c9e988]
|
|
227
|
+
- Updated dependencies [c7e11e2]
|
|
228
|
+
- Updated dependencies [15a4788]
|
|
229
|
+
- Updated dependencies [448a1e1]
|
|
230
|
+
- Updated dependencies [2879e40]
|
|
231
|
+
- Updated dependencies [0fbc383]
|
|
232
|
+
- Updated dependencies [ec05e23]
|
|
233
|
+
- Updated dependencies [1356d8c]
|
|
234
|
+
- Updated dependencies [6d1bffb]
|
|
235
|
+
- Updated dependencies [9cffd06]
|
|
236
|
+
- Updated dependencies [26aaa50]
|
|
237
|
+
- Updated dependencies [86bcb5a]
|
|
238
|
+
- Updated dependencies [e1f909b]
|
|
239
|
+
- Updated dependencies [eb4e5dc]
|
|
240
|
+
- Updated dependencies [41626d1]
|
|
241
|
+
- Updated dependencies [5cfe187]
|
|
242
|
+
- Updated dependencies [912386b]
|
|
243
|
+
- Updated dependencies [f1cf20c]
|
|
244
|
+
- Updated dependencies [2778883]
|
|
245
|
+
- Updated dependencies [c9370cc]
|
|
246
|
+
- Updated dependencies [8800971]
|
|
247
|
+
- Updated dependencies [5de0344]
|
|
248
|
+
- Updated dependencies [122bf29]
|
|
249
|
+
- Updated dependencies [52bcc15]
|
|
250
|
+
- Updated dependencies [524a193]
|
|
251
|
+
- Updated dependencies [cdacd40]
|
|
252
|
+
- Updated dependencies [46f33fa]
|
|
253
|
+
- Updated dependencies [ac1f389]
|
|
254
|
+
- Updated dependencies [ac1f389]
|
|
255
|
+
- Updated dependencies [ac1f389]
|
|
256
|
+
- Updated dependencies [90798cc]
|
|
257
|
+
- Updated dependencies [1240da9]
|
|
258
|
+
- Updated dependencies [c79963d]
|
|
259
|
+
- Updated dependencies [c56dcc6]
|
|
260
|
+
- Updated dependencies [073c08a]
|
|
261
|
+
- Updated dependencies [3817f99]
|
|
262
|
+
- Updated dependencies [ae87696]
|
|
263
|
+
- Updated dependencies [ac54287]
|
|
264
|
+
- Updated dependencies [e553870]
|
|
265
|
+
- Updated dependencies [0c8e82a]
|
|
266
|
+
- Updated dependencies [b96aafe]
|
|
267
|
+
- Updated dependencies [860fe7b]
|
|
268
|
+
- Updated dependencies [684ba35]
|
|
269
|
+
- Updated dependencies [96f89a4]
|
|
270
|
+
- Updated dependencies [237c3b3]
|
|
271
|
+
- Updated dependencies [237c3b3]
|
|
272
|
+
- Updated dependencies [237c3b3]
|
|
273
|
+
- Updated dependencies [77494f1]
|
|
274
|
+
- Updated dependencies [30a1b5a]
|
|
275
|
+
- Updated dependencies [ded8316]
|
|
276
|
+
- Updated dependencies [c015e16]
|
|
277
|
+
- Updated dependencies [f5b4016]
|
|
278
|
+
- Updated dependencies [92b1c8d]
|
|
279
|
+
- Updated dependencies [c015e16]
|
|
280
|
+
- Updated dependencies [92b1c8d]
|
|
281
|
+
- Updated dependencies [f5b4016]
|
|
282
|
+
- Updated dependencies [95ee304]
|
|
283
|
+
- Updated dependencies [f0f0717]
|
|
284
|
+
- Updated dependencies [767a08a]
|
|
285
|
+
- @angular-modernizer/plugin-architecture@2.0.0
|
|
286
|
+
- @angular-modernizer/core@2.0.0
|
|
287
|
+
- @angular-modernizer/plugin-angular@2.0.0
|
|
288
|
+
- @angular-modernizer/plugin-standalone@2.0.0
|
|
289
|
+
- @angular-modernizer/api@2.0.0
|
|
290
|
+
- @angular-modernizer/orchestration@2.0.0
|
|
291
|
+
- @angular-modernizer/plugin-analyzer@2.0.0
|
|
292
|
+
- @angular-modernizer/plugin-solid@2.0.0
|
|
293
|
+
- @angular-modernizer/plugin-system@2.0.0
|
|
294
|
+
- @angular-modernizer/worker@2.0.0
|
|
295
|
+
|
|
296
|
+
## 1.2.0
|
|
297
|
+
|
|
298
|
+
### Minor Changes
|
|
299
|
+
|
|
300
|
+
- 1208dc4: The investigation tools (find-usages, get-call-graph, resolve-type, find-angular-symbol, search-codebase, list-imports, inspect-template, find-component-hosts, trace-output-flow, get-bootstrap-execution, inspect-form-group, inspect-i18n), analyze-build-impact and plan-migration load a workspace into the shared project cache in batches of 50 files with a turn of the event loop after each, then build the program and, after another turn, the type checker. During the first call on a workspace the server keeps answering other requests between batches, reports `n/N files loaded` as progress when the request carries a progress token, and a cancel stops the load at the next batch without caching a partial project. Concurrent calls on the same workspace share one load. On a large app (3869 files) reading and parsing (1.2 to 1.5 s) no longer blocks in one piece; building the program (about 2.1 s) and the type checker (about 0.6 s) still do, and so does the query that follows. Results, output schemas and summaries are unchanged.
|
|
301
|
+
|
|
302
|
+
### Patch Changes
|
|
303
|
+
|
|
304
|
+
- 5169466: `analyze-project` reads its settings from `tools.analyze-project` in `.angular-modernizer.json`. It read a top-level `analyze-project` key, which the schema does not allow, so `maxDepth`, `excludePatterns`, `includeDetails`, `maxResults` and `resultOffset` from the config never applied. Call arguments still win over the config. `tools.analyze-project.orchestration` is not read from the config: its `parallel` and `incremental` select the deprecated WorkerPool path, which only the call argument can choose, so existing configs keep running on the default path.
|
|
305
|
+
- 32c0017: `transform-code` type-checks a batch (`files`). It reported `validation: { syntaxValid: true, typeCheckPassed: true }` without checking, so a batch transformation that broke a file kept it. The batch now records the type errors of its files when its kernel loads, checks the transformed files after the last transformation, fails each file with an error that was not there before (`files[].error`, `validation.introducedTypeErrors` as `<file>: <error>`) and restores files by `rollbackStrategy` as for files whose transformation failed. With `validateTransformation: false` the check is skipped and a warning says so.
|
|
306
|
+
- Updated dependencies [7ac7db2]
|
|
307
|
+
- @angular-modernizer/core@1.2.0
|
|
308
|
+
- @angular-modernizer/plugin-angular@1.2.0
|
|
309
|
+
- @angular-modernizer/orchestration@1.2.0
|
|
310
|
+
- @angular-modernizer/plugin-analyzer@1.2.0
|
|
311
|
+
- @angular-modernizer/plugin-architecture@1.2.0
|
|
312
|
+
- @angular-modernizer/plugin-solid@1.2.0
|
|
313
|
+
- @angular-modernizer/plugin-standalone@1.2.0
|
|
314
|
+
- @angular-modernizer/worker@1.2.0
|
|
315
|
+
- @angular-modernizer/api@1.2.0
|
|
316
|
+
- @angular-modernizer/plugin-system@1.2.0
|
|
317
|
+
|
|
318
|
+
## 1.1.0
|
|
319
|
+
|
|
320
|
+
### Minor Changes
|
|
321
|
+
|
|
322
|
+
- 73335c5: Every exported symbol and public member has a doc comment, and each package entry has a package overview, so the declaration files and the API reference at https://eiweiss.github.io/angular-modernizer-docs/ describe the whole public API. Descriptions that sat in file header comments, where tools did not attach them to anything, are now on the exported symbols. Doc comments that contradicted the code are corrected.
|
|
323
|
+
|
|
324
|
+
Types that public signatures already used are now exported (type-only): `I18nLayerGap` and `OutputSubscription` from api, `LegacyRecordShape` from core, `GraphFileSource` from plugin-architecture, `GodSwitchTransformConfig` from plugin-solid, and from adapter-mcp the result types of the MCP tools, the types nested in them, and the server, watcher and cache types (including `ProjectCache`). adapter-mcp is part of the API reference now.
|
|
325
|
+
|
|
326
|
+
The package READMEs match the code: rule IDs, counts, configuration examples that validate against the schema, real script names, and links to existing files only. The plugin-architecture and worker READMEs are rewritten, the orchestration README describes `WorkflowEngine` instead of an API that did not exist.
|
|
327
|
+
|
|
328
|
+
No change in behavior.
|
|
329
|
+
|
|
330
|
+
- bcf228e: The WorkerPool paths of `analyze-project` and `scan-architecture` (`orchestration.parallel`, `orchestration.incremental`) are deprecated and will be removed in 2.0, together with `@angular-modernizer/worker` and the core exports `WorkerPool`, `ParallelExecutor`, `ParallelismModeSelector`, `PromiseModeMonitor`, `Kernel.analyzeParallel` and `Kernel.analyzeIncremental`. On a large app (371 files) the WorkerPool path was no faster than the default scan worker (10.8-12.1 vs 10.3-13.1 s), blocked the server for up to 10.7 s and took about four times the memory. The tool schemas, the config schema (`deprecated`, `deprecationMessage`) and the docs say so, and the config examples no longer turn the path on. `IncrementalAnalyzer.getBuildScope` stays.
|
|
331
|
+
|
|
332
|
+
`scan-architecture` with `apiStyle: 'imperative'` no longer switches to the parallel path above 100 files; an explicit `orchestration.parallel` still selects it.
|
|
333
|
+
|
|
334
|
+
`PromiseModeMonitor` logs `started`, `check` and `completed` again instead of throwing `Not implemented yet`. The parallel executor runs it verbose, so every parallel scan in promise mode failed, for example `scan-architecture` with `autoSelectMode`.
|
|
335
|
+
|
|
336
|
+
- 97adeef: Scans analyze in a worker thread. scan-all, scan-solid, scan-angular, scan-architecture (sequential and default fluent path) and the sequential path of analyze-project build their kernel, load the files and run the rules in a scan worker; the main thread keeps the file list, the scan cache, the result page, progress and the MCP protocol. While the first type query of a scan builds the TypeScript program and type checker in one synchronous block, the server now keeps answering pings and other requests, and `notifications/cancelled` ends the worker at once, also in the middle of the checker build. Before, both waited until the block was over.
|
|
337
|
+
|
|
338
|
+
One scan worker runs the scans one after the other, each with a new kernel; further scans wait in a queue. The worker stays alive after a finished scan, because a new one needs about 400 ms to load ts-morph, core and api and runs the TypeScript code unoptimized at first (small scans were 1.5 to 3 s slower with a new worker per scan); a cancel, an error or the heap limit ends it, and the next one starts loading right away. The worker heap is limited to `--max-heap-mb` (default 2048); a scan over the limit ends with an error and a hint instead of taking the server down. Findings are the same as before, in the same order; a scan whose files all come from the scan cache starts no worker. `--scan-worker 0` or `ANGULAR_MODERNIZER_SCAN_WORKER=0` runs scans on the main thread as before. `server-status` reports the scan workers (`scanWorkers`: running scan with files done and heap, queue, standby, started, cancelled and failed counts). Scans report a first progress notification (`loading project`) before the project is built.
|
|
339
|
+
|
|
340
|
+
### Patch Changes
|
|
341
|
+
|
|
342
|
+
- 463047b: The exported types `JsonRpcRequest`, `JsonRpcResponse`, `JsonRpcError`, `JsonRpcNotification` and `ToolExecutionContext`, and the `MCPServerConfig` options `port`, `timeout`, `maxConcurrentTools` and `enableMetrics`, are deprecated. They belong to the former hand-written JSON-RPC server and are not used by the SDK server; they will be removed in 2.0.
|
|
343
|
+
- 8669e00: The `learn-patterns` description says what the tool does: it finds patterns with AST heuristics, counts their occurrences and stores them in a pattern knowledge base. It no longer calls this "ML-based pattern recognition".
|
|
344
|
+
- 5ecaa3c: The package homepage is the API reference at https://eiweiss.github.io/angular-modernizer-docs/. The `repository` and `bugs` links are removed, since the source repository is not public.
|
|
345
|
+
- 2533b5e: `transform-code` with `files` loads the project once per batch instead of once per file. Each file used to get its own kernel, and each kernel loads the whole tsconfig program (about 3 s per file on a 330-file package, longer on a large app). The files of a batch now run one after another on one kernel, also with `orchestration.parallel`, because they share one ts-morph project.
|
|
346
|
+
- Updated dependencies [73335c5]
|
|
347
|
+
- Updated dependencies [50ba7ce]
|
|
348
|
+
- Updated dependencies [e4af759]
|
|
349
|
+
- Updated dependencies [bcf228e]
|
|
350
|
+
- Updated dependencies [5ecaa3c]
|
|
351
|
+
- Updated dependencies [f2b624e]
|
|
352
|
+
- @angular-modernizer/core@1.1.0
|
|
353
|
+
- @angular-modernizer/api@1.1.0
|
|
354
|
+
- @angular-modernizer/plugin-architecture@1.1.0
|
|
355
|
+
- @angular-modernizer/plugin-solid@1.1.0
|
|
356
|
+
- @angular-modernizer/plugin-system@1.1.0
|
|
357
|
+
- @angular-modernizer/plugin-analyzer@1.1.0
|
|
358
|
+
- @angular-modernizer/plugin-angular@1.1.0
|
|
359
|
+
- @angular-modernizer/plugin-standalone@1.1.0
|
|
360
|
+
- @angular-modernizer/worker@1.1.0
|
|
361
|
+
- @angular-modernizer/orchestration@1.1.0
|
|
362
|
+
|
|
363
|
+
## 1.0.0
|
|
364
|
+
|
|
365
|
+
### Major Changes
|
|
366
|
+
|
|
367
|
+
- a9a9d13: Release 1.0.0. The MCP server runs on the official MCP TypeScript SDK, serves the 2025 and the 2026-07-28 protocol eras over one stdio connection, validates every call against the tool's input schema and answers every one of its 41 tools with `structuredContent` that matches the tool's output schema. Long-running tools report progress and can be cancelled through the protocol. The Claude Code plugin is released as 1.0.0 too; its agents and skills read the 1.0 results and need a 1.0 server. The entries below describe each change in detail.
|
|
368
|
+
|
|
369
|
+
Breaking changes since 0.3.0:
|
|
370
|
+
- Node: all packages require `^20.19.0 || ^22.12.0 || >=24.0.0`, the Node versions supported by Angular 21.
|
|
371
|
+
- Packages: the tarballs contain the compiled output only, without `src` folders and source maps. `adapter-mcp`, `plugin-solid` and `plugin-analyzer` declare `exports`, so files inside them other than the entry point and `package.json` can no longer be imported. `adapter-mcp` now shares the version of the platform packages.
|
|
372
|
+
- MCP server: the export `JsonRpcHandler` is removed. An unknown tool is a JSON-RPC error `-32602`, and `initialize` requires `protocolVersion`, `capabilities` and `clientInfo`. The debug log `./mcp-server.log` and the health check on port 9999 start only with `ANGULAR_MODERNIZER_DEBUG=1`.
|
|
373
|
+
- Tool arguments: unknown argument names, wrong types and missing required arguments are rejected with an error result before the tool runs. Results with `success: false` or `status: "failed"` are sent with `isError: true`.
|
|
374
|
+
- Tool results: the text content is a short summary; the full result is in `structuredContent`. The statistics object `summary` is now `counts` with the same keys in `analyze-project`, `scan-architecture`, `scan-solid`, `scan-angular`, `scan-all`, `analyze-core-to-shared`, `extract-libraries`, `list-imports` and `orchestrate-migration`, and `summary` is the text. `orchestrate-migration` returns `workflowId` at the top level.
|
|
375
|
+
- Streaming: `streaming` defaults to `false` in `transform-code` and `scan-architecture`, and together with `get-operation-progress` it is deprecated (still available in 1.x). `get-operation-progress` returns an event's diff as `unifiedDiff` instead of `diff`.
|
|
376
|
+
- `transform-code`: `validateBuild` defaults to `false`; the transformed file is still type-checked and rolled back on new type errors.
|
|
377
|
+
- Feedback: the feedback tools store and read `<projectRoot>/.claude-feedback`. A platform-wide store is used only when `ANGULAR_MODERNIZER_PLATFORM_ROOT` is set, and `storageLocation: "platform"` fails without it.
|
|
378
|
+
- Project component decorators: the investigation tools treat a project's own class decorator as a component only when it is listed in `parser.componentDecorators`.
|
|
379
|
+
- `scan-architecture` scope paths match at folder boundaries: `features/orders` no longer includes `features/orders-shared`.
|
|
380
|
+
- Core API: `ValidationOrchestrator`, `ValidationConfig`, `AggregatedValidationResult`, `FalsePositiveDetector.isFalsePositiveBoolean()` and `StreamingProgressEvent.diff` are removed, as are the transform options `updateValidationPatterns`, `convertNgOnInitForms` and `autoCreateModules`, which had no effect. `validation.eslint` is deprecated.
|
|
381
|
+
- Claude Code plugin: the `ngm-decorator-remover` skill is removed. The skills and agents that move code into a shared layer take the target from the `layers` section of `.angular-modernizer.json` and ask when it is missing.
|
|
382
|
+
|
|
383
|
+
### Minor Changes
|
|
384
|
+
|
|
385
|
+
- bd71b33: New MCP tool `compare-health` (tool 41) runs the full `scan-all` scan, compares it with the previous run and reports new, fixed and unchanged violations per rule and per file. The run is stored as a snapshot in `.angular-modernizer-cache/health/last-run.json`, next to the scan cache. Violations are matched by rule, file and message with digits ignored, so findings whose line moved stay unchanged. The first run writes the baseline; a stored run with other rules or file patterns is reported instead of compared and kept unless `updateSnapshot: true` is passed. `scan-all` returns the same violations cold and warm: findings reported on a template are cached with their component file and invalidated when the template changes, files without findings are cached too instead of being analyzed again on every run, and files are analyzed in a stable order. Existing scan-all cache entries are invalidated once. `ngm-health-check` calls the tool after `scan-all`, adds a "Since Last Run" section to its report and takes its violation totals from the complete scan instead of the returned window.
|
|
386
|
+
- ed79448: Project component decorators come from configuration only. **Breaking:** the investigation classes and tools no longer treat any project decorator as a component or service by default; a project whose components are declared with its own class decorator (for example `@PageComponent({ selector, template })` without `@Component`) must list that decorator in `parser.componentDecorators` of `.angular-modernizer.json`, otherwise `find-angular-symbol`, `find-component-hosts`, `inspect-template`, `trace-output-flow` and `find-usages` no longer see those classes. Projects that only use `@Component` are not affected.
|
|
387
|
+
|
|
388
|
+
`parser.componentDecorators` now reaches the investigation tools (before, only the plugin-angular template rules read it) and has one meaning everywhere: the list adds to `Component`, and an empty list and a missing key both mean `Component` only. `ComponentTemplateLoader` used to replace `Component` with the list. In api, `DirectiveIndex`, `ComponentHostFinder`, `TemplateInspector`, `OutputFlowTracer`, `TemplateUsageFinder`, `UsageFinder`, `AngularSymbolFinder`, `collectDirectiveIO` and `collectTemplateEdges` take a `componentDecorators` option; `componentDecoratorNames()` builds the effective list, and `DIRECTIVE_INDEX_DECORATORS` contains the Angular decorators only.
|
|
389
|
+
|
|
390
|
+
The custom-decorators check of `validate-project-compatibility` (and the parser auto selection that uses it) counts every decorator outside the known framework decorators instead of matching a fixed list of names, and names up to five of them in its message. `ngm-init-project` detects project component decorators and writes them to `parser.componentDecorators`.
|
|
391
|
+
|
|
392
|
+
- c98e84e: `get-call-graph` now finds template callers of a base class member in the templates of its subclasses, on every level. These nodes carry the subclass as `className` and the declaring class as `inheritedFrom`. A subclass that overrides a concrete member is left out together with its descendants, because their templates call the override; implementations of an abstract member are kept. Subclasses are indexed once per call from the `extends` clauses of the project.
|
|
393
|
+
|
|
394
|
+
`trace-output-flow` lists subscriptions in code per output as `subscribedIn`: `ref.instance.x.subscribe(...)`, `dialogRef.componentInstance.x.pipe(...).subscribe(...)`, a `viewChild` field or a portal attached to an overlay. Each entry has the enclosing method, the receiver, the member chain and the handler with its effects, in the same shape as a dynamic result handler. `counts.subscriptions` is reported per output and in total. `summaryOnly` drops the list and `maxResults` caps it.
|
|
395
|
+
|
|
396
|
+
Fix: a subscription stored in a field (`this.sub = ref.afterClosed().subscribe(r => ...)`) keeps its handler. Before, a later `this.sub.unsubscribe()` was taken as the use of the result.
|
|
397
|
+
|
|
398
|
+
The `ngm-investigation-guide` skill describes both additions.
|
|
399
|
+
|
|
400
|
+
- f1a8806: Invalid tool arguments are now rejected: the server validates every call against the tool's input schema (JSON Schema 2020-12) before the tool runs. Wrong types, missing required arguments and unknown argument names (every input schema is closed at the top level) come back as an error result (`isError: true`, `Input validation error: Invalid arguments for tool <name>: ...`), and the tool is not called. Before, unknown arguments were ignored silently. `review-feedback` `since` accepts an ISO date or date-time.
|
|
401
|
+
|
|
402
|
+
Failures now come back as error results: a tool result with `success: false` or `status: "failed"` (`transform-code`, `run-angular-cli`, `run-build`, `run-schematic`, `rollback-changes`, `orchestrate-migration`) is sent with `isError: true`. The content is unchanged; `status: "partial"` stays a success.
|
|
403
|
+
|
|
404
|
+
The agents and skills treat `isError` or `success: false` as a failure. Calls that did not match the tool schemas are fixed: `run-angular-cli` takes the command name in `command`, its flags in `args` and the project in `options.cwd`; `run-build` takes `rootPath` and `options.configuration`; `validate-project-compatibility` takes `projectPath`; `analyze-core-to-shared` has no `maxResults`; `rollback-changes` has no `all-or-nothing` strategy.
|
|
405
|
+
|
|
406
|
+
- 1a127f8: The MCP server runs on the official MCP TypeScript SDK (`@modelcontextprotocol/server` 2.2, new dependency together with `zod` 4) instead of its own JSON-RPC implementation. Tool results are unchanged: `content` and `structuredContent` are byte for byte what the previous server sent. One stdio server serves both protocol eras: a client that opens with `initialize` gets the revision it asks for (2025-06-18 or 2025-11-25; before, the server always answered 2025-06-18), a client that opens with `server/discover` gets 2026-07-28. `ping` is answered in the 2025 era. An unknown tool is now a JSON-RPC error `-32602` instead of an `isError` result, and `initialize` requires `protocolVersion`, `capabilities` and `clientInfo`. The `tools` capability reports `listChanged: true`.
|
|
407
|
+
|
|
408
|
+
**Breaking:** the public export `JsonRpcHandler` is removed. `MCPServer` and `ToolRegistry` stay; the size limit and response statistics moved to the stdio transport.
|
|
409
|
+
|
|
410
|
+
The 4 MB response limit and the response statistics stay in place in both eras. `server-status` also reports the negotiated protocol era and revision. A SIGINT or SIGTERM during a running tool call ends the server through its regular shutdown; before, two other signal handlers exited immediately and could cut a response off mid-line. The debug log `./mcp-server.log` in the client's working directory and the health check on port 9999 are off by default and start only with `ANGULAR_MODERNIZER_DEBUG=1`. `ngm-init-project` and `ngm-mcp-setup` describe the debug switch.
|
|
411
|
+
|
|
412
|
+
- 62119e2: Long-running tools report progress and can be cancelled through the MCP protocol itself. When a request carries a `progressToken`, `scan-architecture`, `scan-all`, `scan-solid`, `scan-angular`, `analyze-project`, `compare-health`, `transform-code` and `orchestrate-migration` send `notifications/progress` (files, transformation steps or workflow steps; the first and the last value, at most one per 250 ms); without a token nothing is sent. `notifications/cancelled` stops scans between files, makes `transform-code` restore its backup (a batch restores every file), ends running builds of `run-build`, `run-angular-cli`, `run-schematic`, `validate-transformation` and `transform-code` together with their child processes, and stops `orchestrate-migration` before the next step. A cancelled request gets no response. `compare-health` never compares or stores a cancelled scan. Loading the project cannot be interrupted; the cancel takes effect right after it. MCP tool implementations receive the request context as a second `execute` argument (`ToolContext` with `signal` and `progress`); direct callers of `TransformCodeTool` pass the signal there instead of a `signal` field in the arguments, which MCP clients could never set.
|
|
413
|
+
|
|
414
|
+
**Deprecated:** the `streaming` parameter of `transform-code` and `scan-architecture` and the `get-operation-progress` tool. Both stay in 1.x, `streaming` still defaults to `false`; their descriptions point to the synchronous calls.
|
|
415
|
+
|
|
416
|
+
Build validation after a transformation uses the project's build command: `build.command` from `.angular-modernizer.json`, else the detected build system (`npx ng build`, `npx nx build`, `npx vite build`), else the `build` script of `package.json`, else the build is skipped with a hint. Before, it always ran `npm run build`, so `validate-transformation` reported every file as not valid and `transform-code` with `validateBuild` rolled back every change in projects without a build script. Commands run with the project's `node_modules/.bin` on `PATH`. `validate-transformation` reports the command and its source and gives the real reason for a full validation instead of "Incremental mode not available or compatible". Build processes start in their own process group, so a timeout or a cancel ends the build itself, not only the shell that started it. New core exports: `resolveBuildCommand`, `processGroupOptions`, `terminateProcessTree`, `terminateOnAbort`.
|
|
417
|
+
|
|
418
|
+
Agents no longer use `streaming` or poll `get-operation-progress`. `ngm-streaming-ops` describes progress and cancellation in Claude Code and the deprecated streaming path as it behaves, `ngm-debug-transform` covers cancelled transformations and the build command.
|
|
419
|
+
|
|
420
|
+
- 8557b38: Every package ships its MIT license and names its author. `adapter-mcp` is now released together with the platform packages and shares their version.
|
|
421
|
+
|
|
422
|
+
Breaking changes:
|
|
423
|
+
- All packages declare the Node versions supported by Angular 21: `^20.19.0 || ^22.12.0 || >=24.0.0`. Older Node versions are no longer supported.
|
|
424
|
+
- The packages contain the compiled output only: `src` folders and source maps are no longer published.
|
|
425
|
+
- `adapter-mcp`, `plugin-solid` and `plugin-analyzer` declare `exports` and `types` like the other packages. Imports of files inside these packages other than the package entry point and `package.json` are no longer possible.
|
|
426
|
+
- The `ngm-decorator-remover` skill is no longer part of the Claude Code plugin. Skills and agents that move files into a shared layer (`ngm-model-mover`, `ngm-circular-breaker`, `ngm-consumer-updater`, `ngm-fix-layer-violation`, `ngm-provider-wirer`, `ngm-di-token-extractor`) take the target layer from the `layers` section of `.angular-modernizer.json` and ask when it is missing, instead of assuming a fixed folder.
|
|
427
|
+
|
|
428
|
+
- 34304d5: Feedback is stored in the analyzed project only. `collect-feedback`, `review-feedback`, `suggest-improvements` and `analyze-parser-performance` always use `<projectRoot>/.claude-feedback`; a second, platform-wide store is used only when `ANGULAR_MODERNIZER_PLATFORM_ROOT` is set. The default `both` means the project plus that store when configured; `platform` requires the variable and fails without it. `storageLocations` and `sourcesRead` list only the folders actually used. Before, the tools derived the platform location from their own install path, which for an npm installation is the workspace root or the `node_modules` / npx cache, and created `.claude-feedback` there.
|
|
429
|
+
|
|
430
|
+
`transform-code` no longer runs the project build by default: `validateBuild` defaults to `false`. The transformed file is still type-checked and rolled back on new type errors. Pass `validateBuild: true` (or set it under `tools.transform-code` in `.angular-modernizer.json`) to also run `build.command` or the detected build system.
|
|
431
|
+
|
|
432
|
+
The `readonly` check of `constructor-to-inject` (`readonlyInjectFields`) finds every write to the field: assignments, compound assignments, `++`/`--`, `delete` and destructuring targets. A private field is checked in its class, a protected or public one also through its references in the project, so a field a subclass or another file assigns stays writable instead of becoming `readonly` and breaking the build. New api export `MemberWriteFinder` (`analysis.memberWriteFinder` on `PublicApi`).
|
|
433
|
+
|
|
434
|
+
Scans can be cancelled while they load their files: `scan-architecture`, `scan-all`, `scan-solid` and `scan-angular` check for a cancellation after each file they add to the project, not only during the analysis. The initial project load from the tsconfig still cannot be interrupted.
|
|
435
|
+
|
|
436
|
+
`scan-architecture` scopes match at folder boundaries: a scope path takes in its own folder and everything below it, no longer sibling folders that share its name as a prefix (`features/orders` no longer includes `features/orders-shared`). Scans with such a scope can report fewer files and violations than before. `compare-health` scopes by the glob patterns of `scan-all` and is not affected.
|
|
437
|
+
|
|
438
|
+
- c01f1ce: Service Bag detection and split now work from typed signals instead of method name patterns. `ResponsibilityClassifier` (on `PublicApi` as `analysis.responsibilityClassifier`) gives every public method a concern from resolved call receivers, field and return types: HTTP calls, reactive fields, DOM, files, dialogs and navigation, notifications, reports, validators, storage. Method names only add weak evidence and never decide alone. Reading, writing and mapping the class's own DTOs is one concern, `data-access`. Its backend areas come from the URL of each call: `resolveUrlTemplate` follows concatenation, template strings, constants and single-return prefix helpers. A method that only forwards to an injected service counts as `delegation`. A method without a clear signal is `uncertain` and keeps its evidence.
|
|
439
|
+
|
|
440
|
+
`architecture:service-bag` reports a class with two technical concerns besides data access, one large technical concern next to it, or two substantial backend areas. Focused API clients of one area are no longer reported, and neither are services recognised only by method names. Static helper classes are reported as `kind: 'static-utility'`. Several large name domains in one area become an informational `domain-candidate`. The metadata adds `kind`, `reason`, `concerns`, `areas`, `domains`, `uncertain`, `delegations`, `reactiveProperties` and `dependencies`. The existing fields stay, and `confidence` is now computed. The service gate runs per class.
|
|
441
|
+
|
|
442
|
+
The classifier resolves declarations without the type checker (`SyntacticResolver`: scopes, class members, imports with TypeScript module resolution), so a scan with this rule does not parse every library typing; it is about 25 percent faster than the previous name-based rule.
|
|
443
|
+
|
|
444
|
+
`AnalysisResult` gets an optional `severity`, and the scan tools report `result.severity ?? rule.severity`.
|
|
445
|
+
|
|
446
|
+
The split (`service-bag-transform`, now in the `transform-code` enum) uses the same classification. It creates one service per backend area or one data-access service, plus one service per technical concern. Delegations and uncertain methods stay in the original service, which stays in place as a delegating facade and is not reported again. The option `assignments` (method name to group key) carries the user's decisions. Classes with only static public methods are never split.
|
|
447
|
+
|
|
448
|
+
The split keeps the code compilable on real services. Imports are removed from the original only when no identifier of the file uses them, so decorators and module-level helpers keep theirs. Non-exported module helpers the new services use (URL builder classes) move with their imports to `<file>.shared.ts`. The new services get the imports they miss from the original's imports, and types from the original as `type` imports. Static methods stay in the original, and private static helpers the new services call are copied into them. Moved private helpers are not delegated. Constructor parameters the constructor still uses stay, and constructor initializations are read from the top-level statements only.
|
|
449
|
+
|
|
450
|
+
Fix: `transform-code` on its default path (`apiStyle: 'fluent'`, no streaming) passed the transformation to the plugins under the wrong key, so every requested plugin-angular transformation was skipped there. `FluentKernel.transform` and `TransformStage` take an optional `pluginConfig`, and `transform-code` builds it once for all paths, options included.
|
|
451
|
+
|
|
452
|
+
Fix: the split ran on every `transform-code` call for a service bag file, whatever transformation was requested. It now runs only for `service-bag-transform`.
|
|
453
|
+
|
|
454
|
+
The `ngm-service-bag-splitter` agent reads the finding from `scan-architecture` (it called `scan-angular` with a rule ID that does not exist). It shows uncertain methods with their evidence and passes the user's decisions as `assignments`.
|
|
455
|
+
|
|
456
|
+
- d085864: Analysis and planning results are now structured: `analyze-project`, `scan-architecture`, `scan-solid`, `scan-angular`, `scan-all`, `plan-migration`, `analyze-core-to-shared`, `extract-libraries`, `learn-patterns`, `analyze-build-impact` and `analyze-parser-performance` declare an `outputSchema` and answer with `structuredContent`. Their text content is now only a short `summary` (before: a Markdown summary and an indented JSON block). The scan summaries name the totals per severity, at most ten rules and categories, the first five violations and the returned page.
|
|
457
|
+
|
|
458
|
+
**Breaking:** `analyze-project`, the four scans, `analyze-core-to-shared` and `extract-libraries` returned their statistics as `summary` object. That object is now `counts` with the same keys (`totalViolations`, `analyzedFiles`, `bySeverity`, `byCategory`, `byRule` for the scans), and `summary` is the text. All other field names are unchanged. The streaming result of `scan-architecture` uses the same shape.
|
|
459
|
+
|
|
460
|
+
`scan-solid` and `scan-angular` counted only the returned page; their counts now cover every violation, as in the other scans. `scan-architecture`, `scan-solid`, `scan-angular`, `analyze-core-to-shared` and `analyze-project` sort the file list before `maxFiles` applies, so repeated runs analyze the same files and return the same first page.
|
|
461
|
+
|
|
462
|
+
`analyze-build-impact` and the scan-based `plan-migration` report library imports that do not resolve in `warnings`, like the investigation tools. `plan-migration` also reads a saved MCP result with `structuredContent` as `scanResultFile`.
|
|
463
|
+
|
|
464
|
+
`ngm-scope-blueprint` reads the fields `analyze-build-impact` returns (`estimatedBuildScope.dependentFiles`, `templateHosts`, `counts`) instead of `directDependents`, which never existed. The scan, planning and library agents and skills describe `counts`, the page and `warnings`.
|
|
465
|
+
|
|
466
|
+
- f5d8d90: All tools now answer with structured results. The remaining 15 tools declare an `outputSchema` and answer with `structuredContent`: `run-angular-cli`, `run-build`, `run-schematic`, `validate-before-transform`, `validate-transformation`, `check-incremental-compatibility`, `validate-project-compatibility`, `rollback-changes`, `transform-code`, `orchestrate-migration`, `collect-feedback`, `review-feedback`, `suggest-improvements`, `get-operation-progress` and `server-status`. Their text content is now only a short `summary` (before: a Markdown heading and an indented JSON block); the Markdown format is gone. Failed command runs (`run-angular-cli`, `run-build`, `run-schematic`) repeat the last output lines in the summary, the full output stays in the result. Validation summaries count the issues per severity and list the first ten, errors first. `get-operation-progress` returns the stored result unchanged and repeats its summary.
|
|
467
|
+
|
|
468
|
+
**Breaking:** `orchestrate-migration` returned its step counts as `summary` object. They are now `counts` with the same keys (`totalSteps`, `successfulSteps`, `failedSteps`, `skippedSteps`, `totalDurationMs`), `workflowId` moved to the top level, and `summary` is the text. All other field names are unchanged.
|
|
469
|
+
|
|
470
|
+
Agents and skills read the structured results. `ngm-batch-modernizer` reads `counts.successfulSteps` and `counts.totalSteps`. Wrong reads are fixed: `validate-project-compatibility` reports `overallCompatibility`, `recommendedParser` and `checks` (there is no `compatible` flag), `validate-before-transform` reports `issues`, `get-operation-progress` returns `result` and `error`, and a transformation without changes has `changes.linesChanged: 0`.
|
|
471
|
+
|
|
472
|
+
- aed47ed: Investigation results are now structured: `parse-stack-trace`, `find-usages`, `get-call-graph`, `resolve-type`, `find-angular-symbol`, `search-codebase`, `list-imports`, `inspect-template`, `find-component-hosts`, `trace-output-flow`, `get-bootstrap-execution`, `inspect-form-group` and `inspect-i18n` declare an `outputSchema` and answer with `structuredContent`. Their text content is now only the `summary` (before: a Markdown heading and an indented JSON block); `verify-citations` and `compare-health` drop the compact JSON after their summary the same way. The full result is in `structuredContent`. Field names are unchanged, except `list-imports`: its counts moved from `summary` to `counts`, and `summary` is now a text summary like in the other tools.
|
|
473
|
+
|
|
474
|
+
`structuredContent` is validated against the output schema for every tool that declares one (including `verify-citations` and `compare-health`); a result that does not match comes back as an error result.
|
|
475
|
+
|
|
476
|
+
The investigation tools that load the TypeScript program report library imports that do not resolve: when packages declared in the project's `package.json` cannot be found (missing or incomplete `node_modules`), the result carries `warnings` with the number of unresolved imports and packages, and the summary says so. The tool still answers; library types are then unknown, so hosts, callers and handlers can be missing.
|
|
477
|
+
|
|
478
|
+
The investigation guide and the bug investigation agents describe the structured results and how to treat `warnings`.
|
|
479
|
+
|
|
480
|
+
- 64f63de: Transform rules in plugin-angular now run only when their transformation is requested. Before, any-to-interface, dto-object-literal, interface-duplication, static-class-to-functions, extract-static-from-stateful, type-safety, library-extraction and inheritance-to-composition ran on every `transform-code` call and could change the target file. `transform-code` accepts the six of them that had no name as new transformation types, and library-extraction receives its options again.
|
|
481
|
+
|
|
482
|
+
The fluent `buildCheck()` stage now builds the project: it writes the transformed files, runs the build and, with rollback enabled, restores the original files. `rollbackOnFailure()` enables that rollback for every build check of the pipeline.
|
|
483
|
+
|
|
484
|
+
Breaking changes:
|
|
485
|
+
- `ValidationOrchestrator`, `ValidationConfig` and `AggregatedValidationResult` are removed from core; use `TypeScriptValidator`, `BuildValidator` or `PostTransformValidator`.
|
|
486
|
+
- `FalsePositiveDetector.isFalsePositiveBoolean()` is removed; use `isFalsePositive()`.
|
|
487
|
+
- `StreamingProgressEvent.diff` is removed; use `unifiedDiff`. `get-operation-progress` returns an event's unified diff as `unifiedDiff` instead of `diff`.
|
|
488
|
+
- The options `updateValidationPatterns` and `convertNgOnInitForms` (form-modernization) and `autoCreateModules` (core-shared-modules) are removed; they had no effect.
|
|
489
|
+
- `validation.eslint` in `.angular-modernizer.json` is deprecated: it never had an effect, still validates and now logs a warning. `validation.build`, `buildTimeout` and `rollbackOnFailure` apply to the service-bag transformation only.
|
|
490
|
+
|
|
491
|
+
- 761b61a: `transform-code` and `scan-architecture` answer synchronously by default. **Breaking:** `streaming` now defaults to `false` in both tools; callers that relied on getting an `operationId` without passing `streaming: true` get the result directly instead. With `streaming: true` transform-code runs the same transformation, backup, validation and rollback in the background (batch included) and `get-operation-progress` returns its result; `diffFormat` has no effect anymore.
|
|
492
|
+
|
|
493
|
+
Backups made by `transform-code` can be restored. They are written to `<projectRoot>/.angular-modernizer-backups` instead of the server's working directory, each with a metadata file, and inside a git repository with a snapshot from `git stash create` (working tree and stash list untouched). `rollback-changes` finds them (new optional `projectRoot`), honors `strategy` (`auto`: file backup, then snapshot; `git-stash`: the recorded snapshot, never a stash from the stash list; `file-backup`) and without `files` restores the files of the last transform-code call. Before, neither `rollback-changes` nor transform-code's own automatic rollback found a backup. In core, `RollbackManager.createBackup(files, { reason, group })` records both, `rollback()` restores across instances, and `BackupManager.findLatestBackup` / `getLatestGroupBackups` read the metadata from disk.
|
|
494
|
+
|
|
495
|
+
`transform-code` validation type-checks the transformed file and rolls back when the transformation introduced type errors (`validation.introducedTypeErrors`); errors the file already had do not count. The project lint script runs only with the new `validateLint: true`, `buildValidation` is reported only when a build ran, and pre-validation and transformation share one project load. Batch mode backs up all files before transforming and applies `rollbackStrategy`.
|
|
496
|
+
|
|
497
|
+
`constructor-to-inject` writes the type as written in the source and keeps `private`; it used to write `inject(import("/abs/path").X)`, a dynamic import that did not compile, and turned private parameters into public properties. `run-schematic` disables prompts with `--interactive=false`; `--skip-confirmation` made every `ng generate` call fail. The agents call `transform-code` and `scan-architecture` synchronously and no longer poll.
|
|
498
|
+
|
|
499
|
+
- f257f4f: New MCP tool `verify-citations` (tool 40) checks the `path:line` citations of Markdown plans against the current code and reports each one as ok, unverified, moved (with the new lines), anchor-missing, out-of-range, missing-file (with similar files) or ambiguous. The logic is the new api `CitationVerifier`; the `ngm-verify-citations` script stays for sessions without the server and is held to the same results by a shared test fixture. `ngm-bug-fixer` and `ngm-feature-implementer` run the check on their plan before the first edit: moved citations are used at their new line, other problems stop the run with a question.
|
|
500
|
+
|
|
501
|
+
The server now announces MCP protocol version `2025-06-18`. Tools that declare an `outputSchema` answer with `structuredContent` plus a text block with their summary and the compact JSON, and `tools/list` includes `title`, `outputSchema` and `annotations` when a tool sets them. `verify-citations` is the first tool in this format; all other tools keep their current output.
|
|
502
|
+
|
|
503
|
+
### Patch Changes
|
|
504
|
+
|
|
505
|
+
- f4bf55a: `angular:interface-duplication` reports its findings on the analyzed file only. Interface families are still found across the files analyzed together, but each file gets each family once, at its first member there, and the unbranded ID parameter check looks at that file alone. Before, every analyzed file repeated all findings of its batch, so scans listed them many times and the health delta changed with the batch layout.
|
|
506
|
+
|
|
507
|
+
`scan-all` applies `rules`, `maxResults` and `resultOffset` to every finding: the rule filter runs before the page is filled, findings from the cache are paged like new ones, a page after an offset holds at most `maxResults` findings, and `summary` counts all findings that pass the filter instead of only the page. Before, a filtered scan could return few or none of the requested findings, and warm runs returned every cached finding regardless of `maxResults`. Cold and warm runs return findings in the same order, so pages can be fetched across both.
|
|
508
|
+
|
|
509
|
+
`scan-all` reads only its own cache. It opened the caches of `scan-solid`, `scan-angular` and `scan-architecture` with a different cache version, never got a hit from them and deleted their entries on every run.
|
|
510
|
+
|
|
511
|
+
Cache entries stay readable across midnight: `CacheManager` filed them under the current date and looked them up the same way, so an entry written before midnight was never found again. Entries now live under `<cacheDir>/ast` and `<cacheDir>/analysis` and expire after their configured maximum age. Eviction, `clear()` and the size statistics consider only the manager's own entries and no longer touch other caches or the health snapshot in the same directory. Existing date folders are ignored and can be deleted.
|
|
512
|
+
|
|
513
|
+
- 43aad08: Doc comment examples use generic names: the URL path resolver example shows an `Urls.getOrdersPrefix()` helper, the scope path note a `features/orders` folder and the method body analyzer an `AuthHelper.isSuperUser` access. No change in behavior.
|
|
514
|
+
- b57c185: The MCP server reports its real package version in `serverInfo` instead of a fixed `1.0.0`, and `server-status` shows the same version (`server.version` and the first summary line). The core package passes lint without errors. The ngm-agent-guide and ngm-mcp-setup skills name the current tool, agent and skill counts.
|
|
515
|
+
- 4eec9a3: Every MCP tool now has a `title` and all four `annotations` hints in `tools/list`. Analysis and investigation tools are marked read-only and idempotent (writing the analyzer's own cache does not count). `transform-code`, `run-angular-cli`, `run-build`, `run-schematic`, `validate-transformation`, `rollback-changes` and `orchestrate-migration` are marked destructive; `run-angular-cli` and `run-schematic` also open-world. `learn-patterns`, `collect-feedback` and `compare-health` write files but are not destructive. The `trace-output-flow` description is shorter than 2048 characters; the note on route entries and registry candidates moved to the `includeDynamic` field. Tool behavior and results are unchanged.
|
|
516
|
+
- a1ffed4: `transform-code` with `streaming: true` starts its background run 50 ms after answering. Since the move to the SDK server it started with `setImmediate`, which let the synchronous part of the run (the project load, seconds on large projects) delay the next request: a `get-operation-progress` call right after the start waited about 4 s instead of answering at once. A poll during the synchronous part still waits for it; yielding inside the run is a separate change.
|
|
517
|
+
- Updated dependencies [ed79448]
|
|
518
|
+
- Updated dependencies [1150f69]
|
|
519
|
+
- Updated dependencies [c98e84e]
|
|
520
|
+
- Updated dependencies [f4bf55a]
|
|
521
|
+
- Updated dependencies [62119e2]
|
|
522
|
+
- Updated dependencies [43aad08]
|
|
523
|
+
- Updated dependencies [8557b38]
|
|
524
|
+
- Updated dependencies [34304d5]
|
|
525
|
+
- Updated dependencies [a9a9d13]
|
|
526
|
+
- Updated dependencies [b57c185]
|
|
527
|
+
- Updated dependencies [c01f1ce]
|
|
528
|
+
- Updated dependencies [64f63de]
|
|
529
|
+
- Updated dependencies [8f4c7e7]
|
|
530
|
+
- Updated dependencies [761b61a]
|
|
531
|
+
- Updated dependencies [f257f4f]
|
|
532
|
+
- @angular-modernizer/core@1.0.0
|
|
533
|
+
- @angular-modernizer/api@1.0.0
|
|
534
|
+
- @angular-modernizer/plugin-angular@1.0.0
|
|
535
|
+
- @angular-modernizer/plugin-system@1.0.0
|
|
536
|
+
- @angular-modernizer/plugin-analyzer@1.0.0
|
|
537
|
+
- @angular-modernizer/plugin-solid@1.0.0
|
|
538
|
+
- @angular-modernizer/plugin-architecture@1.0.0
|
|
539
|
+
- @angular-modernizer/plugin-standalone@1.0.0
|
|
540
|
+
- @angular-modernizer/worker@1.0.0
|
|
541
|
+
- @angular-modernizer/orchestration@1.0.0
|
|
542
|
+
|
|
543
|
+
## 0.3.0
|
|
544
|
+
|
|
545
|
+
### Minor Changes
|
|
546
|
+
|
|
547
|
+
- 4f611ab: Template edges in the build-impact graph. A component that uses a child component, an attribute directive or a pipe only in its template (NgModule declarations, no import of the class) now depends on it. api exports `collectTemplateEdges` (host file -> declaring file, via component, directive or pipe; spec hosts, self edges and library classes skipped). core `DependencyGraphBuilder` takes them opt-in (`templateEdges: true`) in a separate store, so import dependencies, cycle detection and transitive dependents are unchanged; `getImpact` returns `templateDependents` and `templateEdges` (one hop, a host does not propagate further) and `getTemplateDependencies` gives the forward direction. `IncrementalAnalyzer.getBuildScope` enables them and returns `templateDependentFiles` and `templateEdges`, counted for the strategy; template-only changes add no hosts. `analyze-build-impact` reports `templateDependentFiles` (counts, build scope, per file) and `templateHosts` with the used classes, additive. The scan-based `plan-migration` orders a child before the hosts that use it by selector. On a large app an NgModule-declared child with 7 template hosts went from 14 dependents without any host to 21 with all 7 (same count as `find-component-hosts`); a call costs 0.6 to 1.4 s more, because every call loads the project and now parses all component templates once.
|
|
548
|
+
- 94d7305: New investigation tool `inspect-i18n` (39th MCP tool) for translation keys. Per key or prefix it lists the definitions per language with file, line and value, the usages in templates (translate pipe and directive, `i18n="@@id"`) and code (`TranslateService` instant/get/stream, `TranslocoService` translate/selectTranslate, keys traced through constants, ternaries and helpers) and the languages that lack the key. Without a key it reports the project: keys used but defined nowhere, missing translations, keys without a static usage (split into covered by a dynamic prefix, referenced as a string elsewhere, no static usage), dynamic prefixes and fully dynamic usages. Sources are found without configuration: objects passed to `setTranslation` (followed through imports, rest parameters, `forEach` and lookups like `MAP[customer]`), JSON folders of `TranslateHttpLoader` or a `TranslocoLoader` URL, else `assets/i18n/*.json`. Sources loaded through a runtime lookup or a branch are conditional overlays with their own layer, each workspace app (folder with `tsconfig.app.json`) has its own layers, and an overlay key never counts as missing in the base. api exports `findI18nSources`, `collectI18nUsages` and `I18nInspector`; `inspectTemplate` and `inspect-template` additionally report the static prefixes of dynamic keys (`dynamicI18nPrefixes`), additive. On a large app: 14 sources in 2 apps (12 TS files with 10 customer overlays, 2 JSON files), 8714 keys, 14133 usages, 85 used keys defined nowhere, 155 missing translations; a key query takes 1.8 s warm, the project report with `summaryOnly` 2.0 s and under 5 KB.
|
|
549
|
+
|
|
550
|
+
### Patch Changes
|
|
551
|
+
|
|
552
|
+
- f84eb9c: Templates are parsed with `@angular/compiler` 21.2 instead of 17.3, so `@let`, arrow functions and template literals in bindings no longer abort parsing (large app: 16 templates, now 0 parse errors across 748). `scanTemplate` (find-usages) handles the new expression AST: assignments are `Binary` nodes, `this.x` uses `ThisReceiver`, and `@let` values are scanned. `inspectTemplate` drops the `@let` masking fallback and the `notes` field, unwraps parenthesized expressions and reads `@switch` case groups.
|
|
553
|
+
- 5903f95: `analyze-build-impact` and the scan-based `plan-migration` use the server's shared ProjectCache instead of parsing the workspace on every call. Source edits between calls are picked up by the cache's per-file refresh. The dependency graph and template edges are still built per call, since the cache does not watch `.html` templates. On a large Angular app (3939 files) a warm build-impact call drops from 4.5 s to 0.84 s and a scan-based plan from 4.1 s to 0.85 s, with identical output; other tools that share the cache no longer pay a separate project load afterwards.
|
|
554
|
+
- 0a87b0d: `analyze-build-impact` no longer propagates past the first importer with all of that importer's exports. Direct importers of a changed name stay dependents; beyond them only exports whose type surface names the changed binding count (heritage clauses, type annotations, initializers without annotation, bodies of functions without a return type, `@NgModule` `exports`), while uses in decorators, constructor bodies and bodies with a stated return type end the chain. Side-effect imports, `export =` and module augmentations still affect all exports. On a large Angular app a shared pipe drops from 1689 to 291 value dependents (the declaring modules, their importers and the importers of a module that re-exports them) at the same warm time; across all 3781 files the new dependents are a subset of the old ones, and files with more than 1000 dependents drop from 340 to 106. The ngm-blast-radius and ngm-investigation-guide skills describe the narrower transitive count.
|
|
555
|
+
- 2be4866: find-usages takes its Project from the shared ProjectCache. A fresh Project per call held the checker state of a broad search (large app, TranslateService: 2.4 GB live heap) next to the cached workspace, which drove the server to 3.7 GB heap of the 4.1 GB V8 limit; shared, the peak stays at about 2.6 GB and repeat calls drop from about 10 s to about 3 s. The cache also checks its heap limit before loading a new workspace, so a load does not stack on top of a project already over the limit.
|
|
556
|
+
- 74c96f3: resolve-type, find-angular-symbol, search-codebase and list-imports take their ts-morph Project from the shared ProjectCache instead of building one per call (large app: 2.8 to 3.4 s per call down to 12 to 114 ms). The cache now keeps source files current: it records every program file's mtime at load, re-reads changed files and removes deleted ones on each lookup (about 6 ms for 3939 files); new files still need a tsconfig touch or a server restart. `server-status` reports the refreshed file count per project. list-imports on a file outside the program builds its own Project so the cached one does not grow. find-usages keeps a fresh Project per call, because a reference search would leave its type-checker state in the cache (large app: 2.4 GB instead of 1.2 GB live heap).
|
|
557
|
+
- 1e084f5: orchestrate-migration no longer reports "completed successfully" for workflows that ran nothing. Steps without `dependencies` (optional in the tool schema) depend on nothing instead of crashing the engine, and an engine error that no step reported now yields `failed` (or `partial`) with the error under step `workflow`. The parallel strategy, which `auto` picks for dependency chains, no longer stops as "stuck" after the first level when only one step becomes ready. The tool rejects workflows naming unknown tools before any step runs, also in dry-run mode.
|
|
558
|
+
- 989d46e: The shared ProjectCache gets a heap limit next to the entry limit. On every lookup the cache checks the V8 heap against `maxHeapMb` (default 2048 MB, 0 = off) and evicts least recently used projects until it is back under the limit; the project being requested is never evicted. With `--expose-gc` it collects once the heap passes the limit and after each eviction. Both limits are set with `--max-projects N` / `--max-heap-mb N` on `cli.js` or `ANGULAR_MODERNIZER_MAX_PROJECTS` / `ANGULAR_MODERNIZER_MAX_HEAP_MB`. `server-status` reports the limits, the V8 heap limit, the heap taken by each cached project at load, and evictions (count, last one with reason and heap/RSS before and after). The MCP setup skill documents the options.
|
|
559
|
+
- 8489f92: get-call-graph no longer floods the connection: `CallGraphBuilder` caps the graph at `maxNodes` (default 200) with `truncated`/`truncatedAt`, and does not fan out over lifecycle hooks or interface members of foreign classes unless `includeLifecycleHooks` is set. The tool adds `maxNodes`, `includeLifecycleHooks` and `summaryOnly` and caches ts-morph projects per tsconfig. The JSON-RPC handler replaces any response over 4 MB with an error naming the tool, so an oversized answer never drops the stdio connection.
|
|
560
|
+
- 6789263: find-component-hosts and trace-output-flow cover components created in code. A new api building block, `DynamicHostFinder`, finds every call or `new` that hands a component class to a parameter typed as a component constructor (dialogs, `createComponent`, portals, project wrappers such as `AppDialog.open` or `new AppDialogRef(dialog, X)`), without a list of known APIs, and follows the class through variables, fields, DI tokens, method returns (also through interfaces), `.then` callbacks, lazy imports and selector registries. find-component-hosts reports them as `dynamicHosts` (sink, wrapper chain, resolution, data arguments, result use); trace-output-flow adds a `dynamic` section with the data the component injects from the creating library, its `close(value)` sites and the result handlers of its creators. Route entries (`component`, `loadComponent`, also through a loader const) are dynamic hosts with path, guards, data and resolve. Components listed in a registry array are followed out of the lookup: a selector fixed by a literal, a `switch` mapping or an equality guard gives a certain host, a selector from data a `candidateHosts` entry with the selector expression (new api helper `traceStringLiterals`). Both tools take `includeDynamic` (default true); existing fields stay as they are, template hosts gain `kind: 'template'`. On a large app every creation site with a statically known class is found; the first dynamic query per cached project costs a one-time warm-up of about 0.65 s, later ones 30 to 60 ms on top of a template query.
|
|
561
|
+
- 59303c3: trace-output-flow follows the result of a component created in code further. A new api building block, `DynamicResultFollower`, finds the handler behind an observer object (`subscribe({ next: r => ... })`), a callback passed by reference, `await firstValueFrom(...)` into a local (new `PayloadTracer.traceVariable`), and a `switchMap`/`concatMap`/`mergeMap`/`exhaustMap` whose outer pipe subscribes (`handler.via`). A stored result uses the read that subscribes to it instead of the first chained read. Handlers that never read the result carry `handler.resultUnused` (`counts.resultUnused`), a result returned from a method lists its callers up to two levels in `forwardedTo`, and a result that is not followed gets `result.note` with the reason (e.g. `passed to toSignal`). All fields are additive; `handler.parameter` is absent where a handler has none. On a large app 709 of 734 certain creation sites are now answered (before 519) at unchanged response times.
|
|
562
|
+
- e4c5788: trace-output-flow no longer reports a dialog result as unused when a pipe operator reads it. The common confirm pattern `open(...).pipe(filter(r => r.result === Created)).subscribe(() => ...)` was flagged `resultUnused`; the handler now lists `operators` (callbacks in the chain's `pipe` that receive the result: pass-through operators such as `filter` and `tap`, and the first transforming one; `catchError` is skipped) and `resultUnused` is set only when neither an operator nor the handler reads the result. A variable between the creation and a `return` no longer uses up one of the two caller levels in `forwardedTo`. A chain left as a statement without `subscribe` gets the note `the observable is never subscribed`. All fields are additive. On a large app `resultUnused` drops from 174 to 123 sites (51 were wrong), 711 of 734 creation sites are answered.
|
|
563
|
+
- ef1c0ec: Fixes from a test session of the investigation tools against a large Angular app. parse-stack-trace maps browser frames onto project files: URL paths (`http://host/src/...`, `webpack:///`, `ng:///`, Vite `/@fs/`) are checked against `projectRoot`, bare Chrome file names resolve through a unique basename; frames get `resolvedFile` and `resolvedFrom`, an ambiguous name stays external with `candidates`, node_modules frames stay external. get-call-graph adds calls from a component's own template as caller leaf nodes (`kind: 'template'`, template file, line, `snippet`). inspect-form-group no longer counts `''`, `null`, `undefined` or `[]` as validators. find-usages reports declaration names as the new usage type `declaration` instead of `read`. find-angular-symbol skips spec files and finds library components, directives and pipes from compiled `.d.ts` metadata (`source: 'library'`); library symbols match exactly (class name, pipe name or one selector of the list), so a short query like `mat` does not return every Material component. All new fields are additive. On a large app both reproduction stacks go from 0 to 3 project frames, `openDialogforNewNote` gains its caller `note-list.component.html:28`, krohwinkel-movement drops from 26 to 0 validated controls, and the `translate` pipe query returns the ngx-translate `TranslatePipe` instead of three spec mocks.
|
|
564
|
+
- 8489f92: stdout carries JSON-RPC only: the CLI routes all stdout-bound console methods to stderr before the server starts. `initialize` announces only the `tools` capability (clients no longer call `resources/list`/`prompts/list` and get "Method not found"), and the initialized notification is matched as `notifications/initialized`.
|
|
565
|
+
- c625af2: Compact output for list-heavy investigation tools: find-usages, find-angular-symbol, list-imports and analyze-build-impact take `summaryOnly` and `maxResults` (counts always cover the full result, `truncated` marks cut lists). find-usages adds `countsByDirectory`, find-angular-symbol adds `countsByType`. analyze-build-impact leads with the recommendation and counts, maps `.html` templates to their component instead of failing (new `findTemplateOwnerFiles` in api, `templateOnlyFiles` in `getBuildScope`), and lists unmappable files in `unresolvedFiles`. The investigation guide documents the new parameters.
|
|
566
|
+
- d516473: find-usages no longer reports an identifier passed to a call or decorator as `call`. Only the callee position is `call`; `inject(Foo)` is the new usage type `argument` and `@ViewChild(Foo)` is `decorator-argument`. The `usageType` filter accepts both, and the investigation guide lists them.
|
|
567
|
+
- 2d2dc84: plan-migration builds its roadmap from scan results. With `projectRoot` and violations that carry `filePath` (inline, or read from a saved scan-architecture result via `scanResultFile`), the phases list concrete files: violations grouped per file and layer (`layers` / `layersSource`), ordered dependencies first along the import graph, import cycles kept together, one phase per dependency level (`maxPhases` merges levels). The result reports `planSource: "scan"` and a `scanPlan` with per-file details; `summaryOnly` drops the file lists; `maxResults` caps files per phase and violations per file (default 25, counts stay complete). Without file paths the strategy templates build the roadmap as before (`planSource: "template"`). Scan severities (error, warning, info) are accepted. New in core: `buildViolationPlan`; plugin-architecture exports `LayerPathMatcher`. The migration planner and blueprint agents pass `projectRoot` and file paths.
|
|
568
|
+
- f3b60da: New MCP tool `get-bootstrap-execution` (R7, finding 10): lists what an Angular app runs at startup (initializers, bootstrap component/module, interceptors, provider factories, each with its timing) and walks everything reachable through calls and dependency injection (`inject(X)`, constructor parameters, `@Inject(TOKEN)`, factory `deps`, tokens resolved to project providers). `watch` reports every reachable read or write of an expression such as `AppConfig.settings` with the path from the root. api adds `BootstrapExecutionAnalyzer` and `CallableResolver`, the callee resolution extracted from `CallGraphBuilder` (behaviour unchanged). bug-investigator, bug-blueprint and architect may call the tool; the investigation guide documents it.
|
|
569
|
+
- 989f7cc: New MCP tool `find-component-hosts` (R7 W1): every component template that uses a component or directive, by class name or selector. Per host the bound and unbound inputs/outputs, per occurrence the line, missing required inputs and bindings no matched project directive declares; `coverage` lists per input/output how many and which hosts bind it. api adds `ComponentHostFinder` and `collectDirectiveIO` (decorator and signal inputs/outputs, aliases, required, metadata arrays, base classes). Test hosts in spec files are skipped by default. bug-investigator, bug-blueprint, architect, feature-planner and build-guard may call the tool; the investigation guide documents it.
|
|
570
|
+
|
|
571
|
+
The MCP server now shares one ts-morph project cache between get-call-graph, inspect-template and find-component-hosts, so a workspace is parsed and held in memory once.
|
|
572
|
+
|
|
573
|
+
- 8445846: New MCP tool `inspect-form-group` (R7 W3): the Reactive Forms of a file as structure (control paths, kinds, validators, controls created disabled or added via `addControl`) with every enable/disable/validator/`addControl` call mapped to the control it targets, through `controls.x`, `get('a.b')`, `at(i)`, local variables and getters. `cascade` lists ancestor enable/disable per control, `reEnabledBy` flags controls disabled on purpose that an ancestor `enable()` switches back on, `unknownPaths` lists calls on controls that do not exist, `dynamicOperations` computed keys. api adds `FormGroupInspector`. bug-investigator, bug-blueprint, architect and feature-planner may call the tool; the investigation guide documents it.
|
|
574
|
+
- c415999: New MCP tool `trace-output-flow` (R7 W2): follows the payload of an `@Output` across the template boundary, where get-call-graph stops. Per output the emitter kind and payload type, every emit site (`emit`/`next`, `model.set`/`update`) with enclosing method and value, every host binding with its handler, the host method the handler calls with `$event`, and what that method does with the value (writes, calls followed into the callee up to `depth`, re-emits, conditions, returns). Hosts that use the component without binding the output are listed as `unboundIn`, handlers that drop the payload as `eventUnused`. api adds `OutputFlowTracer`, `PayloadTracer`/`tracePayload` and `collectEventHandlers`. bug-investigator, bug-blueprint, architect and feature-planner may call the tool; the investigation guide documents it.
|
|
575
|
+
- 85e719d: The stdio server no longer outlives its client (R8, finding 18a). It shuts down once on stdin `end`, `close` or `error`, a failing stdout (EPIPE), SIGINT, SIGTERM or SIGHUP, and when its parent process disappears. The parent check (`parentCheckIntervalMs`, default 2000 ms) covers a client that dies while another process still holds the stdin pipe open, which left `cli.js` running re-parented to pid 1. The flush before exit is capped at 1 s, and the watcher heartbeat and health HTTP server no longer keep the process alive.
|
|
576
|
+
- 01ea18d: New MCP tool `server-status` (R8, W5): pid and parent pid, uptime, memory (RSS, heap), the ts-morph projects in the shared cache (tsconfig, source file count, load and last-use time), response sizes (count, total, last, largest, oversized responses replaced by an error) and `build.rebuiltSinceStart`, which turns true when a package `dist/` was rebuilt after the server started: the session then still runs the old code and must reconnect. The MCP setup skill lists both checks under common issues.
|
|
577
|
+
- 53b0086: New MCP tool `inspect-template`: structure of a component template (`.html` or component `.ts`). Per element the bindings (input, output, two-way, attribute, structural, reference) and the project components/directives whose selector matches; per template the directives and pipes used (resolved to project classes), custom elements without a project match, control-flow blocks and nesting depth, and static i18n keys. Supports `summaryOnly` and `maxResults`. api adds `inspectTemplate`, `TemplateInspector`, `DirectiveIndex` and `collectComponentTemplates`. bug-investigator, bug-blueprint, architect and feature-planner may call the tool; the investigation guide documents it.
|
|
578
|
+
- 2514238: `scan-architecture` honours `maxResults` (default 1000) and `resultOffset` in every path. Only the imperative path paged before; the default fluent path and the streaming result returned all violations, so a default run over 400 files of a large Angular app produced 5.6 MB and was dropped at the 4 MB response limit. The result now carries `pagination` (`totalResults`, `returnedResults`, `offset`, `hasMore`), and `summary` still counts every violation. The same run returns 1.46 MB, with `maxResults: 50` 71 KB.
|
|
579
|
+
- f78c53c: scan-architecture takes `maxDurationMs` (default 300000, `0` disables): the budget is checked between files, and on overrun the scan returns what it has with `execution.incomplete`, `stopReason`, `skippedFiles` and a note naming the slowest rules. `execution.ruleTimings` lists time per rule. The sequential, fluent and streaming paths share one rule runner that loads all files before analyzing, so project-wide rules see a complete project. A full scan of a large app (3344 files) now finishes in 52 s; before it did not finish within 14 minutes.
|
|
580
|
+
- 5cd1cda: Tool descriptions of the scan tools state the current rule counts (scan-all 52: SOLID 7, Angular 28, Architecture 17). `scan-architecture` no longer describes itself as a SOLID scan; its description names the architecture rules incl. import cycles, the streaming default and the `maxResults` / `resultOffset` paging. The READMEs of adapter-mcp cover all 39 tools.
|
|
581
|
+
- 8f5fa37: `UsageFinder` (find-usages) no longer searches quadratically. It ran `findReferences` for every declaration-like node named after the symbol, including each import specifier, so a symbol imported in many files was looked up once per import and every lookup returned the full reference set: TranslateService in a large app, 703 imports, 1.2 million references for 1751 usages, 110 s and 2.4 GB retained heap. A declaration already returned as a reference is now skipped and each reference position is wrapped once; files that do not contain the name are not walked for declarations. Same results on a large app for AppComponent, HttpClient, TranslateService, ngOnInit and EventEmitter; TranslateService takes 3.75 s over MCP.
|
|
582
|
+
- Updated dependencies [f84eb9c]
|
|
583
|
+
- Updated dependencies [0a87b0d]
|
|
584
|
+
- Updated dependencies [1e084f5]
|
|
585
|
+
- Updated dependencies [8489f92]
|
|
586
|
+
- Updated dependencies [6789263]
|
|
587
|
+
- Updated dependencies [59303c3]
|
|
588
|
+
- Updated dependencies [e4c5788]
|
|
589
|
+
- Updated dependencies [ef1c0ec]
|
|
590
|
+
- Updated dependencies [c625af2]
|
|
591
|
+
- Updated dependencies [1ea9acc]
|
|
592
|
+
- Updated dependencies [d5e58e1]
|
|
593
|
+
- Updated dependencies [d516473]
|
|
594
|
+
- Updated dependencies [2d2dc84]
|
|
595
|
+
- Updated dependencies [f3b60da]
|
|
596
|
+
- Updated dependencies [989f7cc]
|
|
597
|
+
- Updated dependencies [8445846]
|
|
598
|
+
- Updated dependencies [c415999]
|
|
599
|
+
- Updated dependencies [53b0086]
|
|
600
|
+
- Updated dependencies [4f611ab]
|
|
601
|
+
- Updated dependencies [94d7305]
|
|
602
|
+
- Updated dependencies [2bad26f]
|
|
603
|
+
- Updated dependencies [8f5fa37]
|
|
604
|
+
- @angular-modernizer/api@0.3.0
|
|
605
|
+
- @angular-modernizer/plugin-standalone@0.3.0
|
|
606
|
+
- @angular-modernizer/core@0.3.0
|
|
607
|
+
- @angular-modernizer/orchestration@0.3.0
|
|
608
|
+
- @angular-modernizer/plugin-architecture@0.3.0
|
|
609
|
+
- @angular-modernizer/plugin-analyzer@0.3.0
|
|
610
|
+
- @angular-modernizer/plugin-angular@0.3.0
|
|
611
|
+
- @angular-modernizer/plugin-solid@0.3.0
|
|
612
|
+
- @angular-modernizer/worker@0.3.0
|
|
613
|
+
- @angular-modernizer/plugin-system@0.3.0
|
|
614
|
+
|
|
615
|
+
## 0.2.0
|
|
616
|
+
|
|
617
|
+
### Minor Changes
|
|
618
|
+
|
|
619
|
+
- Address field feedback: template and non-program file coverage in search-codebase and find-usages (template and unresolved usages), path-based layer classification with `layersSource` for arch-validator configs, value-import cycle detection with NG0919 risk flag, symbol-level analyze-build-impact, new `list-imports` tool, calibrated heuristics (god-object, type-safety, rxjs leaks, content-placement, SRP), call-graph through constructors and getters, and `kind: 'analysis'` feedback records.
|
|
620
|
+
|
|
621
|
+
### Patch Changes
|
|
622
|
+
|
|
623
|
+
- Updated dependencies
|
|
624
|
+
- @angular-modernizer/core@0.2.0
|
|
625
|
+
- @angular-modernizer/api@0.2.0
|
|
626
|
+
- @angular-modernizer/plugin-architecture@0.2.0
|
|
627
|
+
- @angular-modernizer/plugin-angular@0.2.0
|
|
628
|
+
- @angular-modernizer/plugin-solid@0.2.0
|
|
629
|
+
- @angular-modernizer/orchestration@0.2.0
|
|
630
|
+
- @angular-modernizer/plugin-analyzer@0.2.0
|
|
631
|
+
- @angular-modernizer/plugin-standalone@0.2.0
|
|
632
|
+
- @angular-modernizer/worker@0.2.0
|
|
633
|
+
- @angular-modernizer/plugin-system@0.2.0
|
|
634
|
+
|
|
635
|
+
## 0.1.4
|
|
636
|
+
|
|
637
|
+
### Patch Changes
|
|
638
|
+
|
|
639
|
+
- 8a7d1dd: Fix the run-directly detection in the CLI entry point. The guard compared `import.meta.url` against a naive `file://` + `argv[1]` string; through a bin shim (npx, node_modules/.bin) `argv[1]` is the symlink path, so the server never started and the process exited 0 silently. The comparison now resolves `argv[1]` via `realpathSync`.
|
|
640
|
+
|
|
641
|
+
## 0.1.3
|
|
642
|
+
|
|
643
|
+
### Patch Changes
|
|
644
|
+
|
|
645
|
+
- Updated dependencies [062d5d0]
|
|
646
|
+
- @angular-modernizer/api@0.1.3
|
|
647
|
+
- @angular-modernizer/core@0.1.3
|
|
648
|
+
- @angular-modernizer/orchestration@0.1.3
|
|
649
|
+
- @angular-modernizer/plugin-analyzer@0.1.3
|
|
650
|
+
- @angular-modernizer/plugin-angular@0.1.3
|
|
651
|
+
- @angular-modernizer/plugin-architecture@0.1.3
|
|
652
|
+
- @angular-modernizer/plugin-solid@0.1.3
|
|
653
|
+
- @angular-modernizer/plugin-standalone@0.1.3
|
|
654
|
+
- @angular-modernizer/worker@0.1.3
|
|
655
|
+
- @angular-modernizer/plugin-system@0.1.3
|
|
656
|
+
|
|
657
|
+
## 0.1.2
|
|
658
|
+
|
|
659
|
+
### Patch Changes
|
|
660
|
+
|
|
661
|
+
- a0eceb4: Declare previously phantom runtime dependencies that were masked by workspace hoisting: `diff` in core (streaming diff generator) and `ts-morph` plus `glob` in adapter-mcp. Standalone installs (`npx @angular-modernizer/adapter-mcp`) crashed with `ERR_MODULE_NOT_FOUND` without them.
|
|
662
|
+
- Updated dependencies [a0eceb4]
|
|
663
|
+
- @angular-modernizer/core@0.1.2
|
|
664
|
+
- @angular-modernizer/orchestration@0.1.2
|
|
665
|
+
- @angular-modernizer/plugin-analyzer@0.1.2
|
|
666
|
+
- @angular-modernizer/plugin-angular@0.1.2
|
|
667
|
+
- @angular-modernizer/plugin-architecture@0.1.2
|
|
668
|
+
- @angular-modernizer/plugin-solid@0.1.2
|
|
669
|
+
- @angular-modernizer/plugin-standalone@0.1.2
|
|
670
|
+
- @angular-modernizer/worker@0.1.2
|
|
671
|
+
- @angular-modernizer/api@0.1.2
|
|
672
|
+
- @angular-modernizer/plugin-system@0.1.2
|
|
673
|
+
|
|
674
|
+
## 0.1.1
|
|
675
|
+
|
|
676
|
+
### Patch Changes
|
|
677
|
+
|
|
678
|
+
- Updated dependencies [58851ce]
|
|
679
|
+
- @angular-modernizer/core@0.1.1
|
|
680
|
+
- @angular-modernizer/orchestration@0.1.1
|
|
681
|
+
- @angular-modernizer/plugin-architecture@0.1.1
|
|
682
|
+
- @angular-modernizer/plugin-standalone@0.1.1
|
|
683
|
+
- @angular-modernizer/plugin-angular@0.1.1
|
|
684
|
+
- @angular-modernizer/worker@0.1.1
|
|
685
|
+
- @angular-modernizer/plugin-system@0.1.1
|
|
686
|
+
- @angular-modernizer/plugin-analyzer@0.1.1
|
|
687
|
+
- @angular-modernizer/plugin-solid@0.1.1
|
|
688
|
+
- @angular-modernizer/api@0.1.1
|