@angular/cli 21.1.0-next.0 → 21.1.0-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/lib/code-examples.db +0 -0
  2. package/package.json +17 -17
  3. package/src/commands/add/cli.js +129 -87
  4. package/src/commands/add/cli.js.map +1 -1
  5. package/src/commands/mcp/cli.js +4 -1
  6. package/src/commands/mcp/cli.js.map +1 -1
  7. package/src/commands/mcp/{dev-server.d.ts → devserver.d.ts} +4 -4
  8. package/src/commands/mcp/{dev-server.js → devserver.js} +14 -14
  9. package/src/commands/mcp/devserver.js.map +1 -0
  10. package/src/commands/mcp/host.d.ts +27 -0
  11. package/src/commands/mcp/host.js +8 -0
  12. package/src/commands/mcp/host.js.map +1 -1
  13. package/src/commands/mcp/mcp-server.d.ts +50 -9
  14. package/src/commands/mcp/mcp-server.js +26 -9
  15. package/src/commands/mcp/mcp-server.js.map +1 -1
  16. package/src/commands/mcp/resources/ai-tutor.md +199 -3
  17. package/src/commands/mcp/tools/ai-tutor.d.ts +5 -1
  18. package/src/commands/mcp/tools/best-practices.d.ts +3 -1
  19. package/src/commands/mcp/tools/best-practices.js.map +1 -1
  20. package/src/commands/mcp/tools/build.d.ts +8 -19
  21. package/src/commands/mcp/tools/build.js +2 -2
  22. package/src/commands/mcp/tools/build.js.map +1 -1
  23. package/src/commands/mcp/tools/devserver/devserver-start.d.ts +30 -0
  24. package/src/commands/mcp/tools/devserver/{start-devserver.js → devserver-start.js} +26 -27
  25. package/src/commands/mcp/tools/devserver/devserver-start.js.map +1 -0
  26. package/src/commands/mcp/tools/devserver/devserver-stop.d.ts +39 -0
  27. package/src/commands/mcp/tools/devserver/{stop-devserver.js → devserver-stop.js} +13 -13
  28. package/src/commands/mcp/tools/devserver/{stop-devserver.js.map → devserver-stop.js.map} +1 -1
  29. package/src/commands/mcp/tools/devserver/devserver-wait-for-build.d.ts +41 -0
  30. package/src/commands/mcp/tools/devserver/{wait-for-devserver-build.js → devserver-wait-for-build.js} +16 -16
  31. package/src/commands/mcp/tools/devserver/{wait-for-devserver-build.js.map → devserver-wait-for-build.js.map} +1 -1
  32. package/src/commands/mcp/tools/doc-search.d.ts +1 -11
  33. package/src/commands/mcp/tools/examples/database-discovery.d.ts +34 -0
  34. package/src/commands/mcp/tools/examples/database-discovery.js +87 -0
  35. package/src/commands/mcp/tools/examples/database-discovery.js.map +1 -0
  36. package/src/commands/mcp/tools/examples/database.d.ts +35 -0
  37. package/src/commands/mcp/tools/examples/database.js +125 -0
  38. package/src/commands/mcp/tools/examples/database.js.map +1 -0
  39. package/src/commands/mcp/tools/examples/index.d.ts +26 -0
  40. package/src/commands/mcp/tools/examples/index.js +149 -0
  41. package/src/commands/mcp/tools/examples/index.js.map +1 -0
  42. package/src/commands/mcp/tools/examples/query-escaper.d.ts +20 -0
  43. package/src/commands/mcp/tools/examples/query-escaper.js +68 -0
  44. package/src/commands/mcp/tools/examples/query-escaper.js.map +1 -0
  45. package/src/commands/mcp/tools/examples/runtime-database.d.ts +10 -0
  46. package/src/commands/mcp/tools/examples/runtime-database.js +192 -0
  47. package/src/commands/mcp/tools/examples/runtime-database.js.map +1 -0
  48. package/src/commands/mcp/tools/examples/schemas.d.ts +29 -0
  49. package/src/commands/mcp/tools/examples/schemas.js +101 -0
  50. package/src/commands/mcp/tools/examples/schemas.js.map +1 -0
  51. package/src/commands/mcp/tools/examples/utils.d.ts +14 -0
  52. package/src/commands/mcp/tools/examples/utils.js +31 -0
  53. package/src/commands/mcp/tools/examples/utils.js.map +1 -0
  54. package/src/commands/mcp/tools/modernize.d.ts +8 -18
  55. package/src/commands/mcp/tools/modernize.js +1 -1
  56. package/src/commands/mcp/tools/modernize.js.map +1 -1
  57. package/src/commands/mcp/tools/onpush-zoneless-migration/zoneless-migration.d.ts +3 -1
  58. package/src/commands/mcp/tools/projects.d.ts +23 -64
  59. package/src/commands/mcp/tools/tool-registry.d.ts +6 -5
  60. package/src/commands/mcp/tools/tool-registry.js.map +1 -1
  61. package/src/commands/update/cli.d.ts +0 -24
  62. package/src/commands/update/cli.js +39 -447
  63. package/src/commands/update/cli.js.map +1 -1
  64. package/src/commands/update/utilities/cli-version.d.ts +48 -0
  65. package/src/commands/update/utilities/cli-version.js +196 -0
  66. package/src/commands/update/utilities/cli-version.js.map +1 -0
  67. package/src/commands/update/utilities/constants.d.ts +12 -0
  68. package/src/commands/update/utilities/constants.js +16 -0
  69. package/src/commands/update/utilities/constants.js.map +1 -0
  70. package/src/commands/update/utilities/git.d.ts +34 -0
  71. package/src/commands/update/utilities/git.js +115 -0
  72. package/src/commands/update/utilities/git.js.map +1 -0
  73. package/src/commands/update/utilities/migration.d.ts +32 -0
  74. package/src/commands/update/utilities/migration.js +257 -0
  75. package/src/commands/update/utilities/migration.js.map +1 -0
  76. package/src/package-managers/error.d.ts +12 -0
  77. package/src/package-managers/host.d.ts +6 -0
  78. package/src/package-managers/host.js +8 -3
  79. package/src/package-managers/host.js.map +1 -1
  80. package/src/package-managers/package-manager-descriptor.d.ts +33 -9
  81. package/src/package-managers/package-manager-descriptor.js +28 -8
  82. package/src/package-managers/package-manager-descriptor.js.map +1 -1
  83. package/src/package-managers/package-manager.d.ts +21 -3
  84. package/src/package-managers/package-manager.js +133 -10
  85. package/src/package-managers/package-manager.js.map +1 -1
  86. package/src/package-managers/parsers.d.ts +69 -4
  87. package/src/package-managers/parsers.js +231 -32
  88. package/src/package-managers/parsers.js.map +1 -1
  89. package/src/utilities/version.js +1 -1
  90. package/src/commands/mcp/dev-server.js.map +0 -1
  91. package/src/commands/mcp/tools/devserver/start-devserver.d.ts +0 -41
  92. package/src/commands/mcp/tools/devserver/start-devserver.js.map +0 -1
  93. package/src/commands/mcp/tools/devserver/stop-devserver.d.ts +0 -49
  94. package/src/commands/mcp/tools/devserver/wait-for-devserver-build.d.ts +0 -47
  95. package/src/commands/mcp/tools/examples.d.ts +0 -58
  96. package/src/commands/mcp/tools/examples.js +0 -654
  97. package/src/commands/mcp/tools/examples.js.map +0 -1
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+ /**
3
+ * @license
4
+ * Copyright Google LLC All Rights Reserved.
5
+ *
6
+ * Use of this source code is governed by an MIT-style license that can be
7
+ * found in the LICENSE file at https://angular.dev/license
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.findExampleOutputSchema = exports.findExampleInputSchema = void 0;
11
+ const zod_1 = require("zod");
12
+ exports.findExampleInputSchema = zod_1.z.object({
13
+ workspacePath: zod_1.z
14
+ .string()
15
+ .optional()
16
+ .describe('The absolute path to the `angular.json` file for the workspace. This is used to find the ' +
17
+ 'version-specific code examples that correspond to the installed version of the ' +
18
+ 'Angular framework. You **MUST** get this path from the `list_projects` tool. ' +
19
+ 'If omitted, the tool will search the generic code examples bundled with the CLI.'),
20
+ query: zod_1.z
21
+ .string()
22
+ .describe("The primary, conceptual search query. This should capture the user's main goal or question " +
23
+ "(e.g., 'lazy loading a route' or 'how to use signal inputs'). The query will be processed " +
24
+ 'by a powerful full-text search engine.\n\n' +
25
+ 'Key Syntax Features (see https://www.sqlite.org/fts5.html for full documentation):\n' +
26
+ ' - AND (default): Space-separated terms are combined with AND.\n' +
27
+ ' - Example: \'standalone component\' (finds results with both "standalone" and "component")\n' +
28
+ ' - OR: Use the OR operator to find results with either term.\n' +
29
+ " - Example: 'validation OR validator'\n" +
30
+ ' - NOT: Use the NOT operator to exclude terms.\n' +
31
+ " - Example: 'forms NOT reactive'\n" +
32
+ ' - Grouping: Use parentheses () to group expressions.\n' +
33
+ " - Example: '(validation OR validator) AND forms'\n" +
34
+ ' - Phrase Search: Use double quotes "" for exact phrases.\n' +
35
+ ' - Example: \'"template-driven forms"\'\n' +
36
+ ' - Prefix Search: Use an asterisk * for prefix matching.\n' +
37
+ ' - Example: \'rout*\' (matches "route", "router", "routing")'),
38
+ keywords: zod_1.z
39
+ .array(zod_1.z.string())
40
+ .optional()
41
+ .describe('A list of specific, exact keywords to narrow the search. Use this for precise terms like '),
42
+ required_packages: zod_1.z
43
+ .array(zod_1.z.string())
44
+ .optional()
45
+ .describe("A list of NPM packages that an example must use. Use this when the user's request is " +
46
+ 'specific to a feature within a certain package (e.g., if the user asks about `ngModel`, ' +
47
+ 'you should filter by `@angular/forms`).'),
48
+ related_concepts: zod_1.z
49
+ .array(zod_1.z.string())
50
+ .optional()
51
+ .describe('A list of high-level concepts to filter by. Use this to find examples related to broader ' +
52
+ 'architectural ideas or patterns (e.g., `signals`, `dependency injection`, `routing`).'),
53
+ includeExperimental: zod_1.z
54
+ .boolean()
55
+ .optional()
56
+ .default(false)
57
+ .describe('By default, this tool returns only production-safe examples. Set this to `true` **only if** ' +
58
+ 'the user explicitly asks for a bleeding-edge feature or if a stable solution to their ' +
59
+ 'problem cannot be found. If you set this to `true`, you **MUST** preface your answer by ' +
60
+ 'warning the user that the example uses experimental APIs that are not suitable for production.'),
61
+ });
62
+ exports.findExampleOutputSchema = zod_1.z.object({
63
+ examples: zod_1.z.array(zod_1.z.object({
64
+ title: zod_1.z
65
+ .string()
66
+ .describe('The title of the example. Use this as a heading when presenting the example to the user.'),
67
+ summary: zod_1.z
68
+ .string()
69
+ .describe("A one-sentence summary of the example's purpose. Use this to help the user decide " +
70
+ 'if the example is relevant to them.'),
71
+ keywords: zod_1.z
72
+ .array(zod_1.z.string())
73
+ .optional()
74
+ .describe('A list of keywords for the example. You can use these to explain why this example ' +
75
+ "was a good match for the user's query."),
76
+ required_packages: zod_1.z
77
+ .array(zod_1.z.string())
78
+ .optional()
79
+ .describe('A list of NPM packages required for the example to work. Before presenting the code, ' +
80
+ 'you should inform the user if any of these packages need to be installed.'),
81
+ related_concepts: zod_1.z
82
+ .array(zod_1.z.string())
83
+ .optional()
84
+ .describe('A list of related concepts. You can suggest these to the user as topics for ' +
85
+ 'follow-up questions.'),
86
+ related_tools: zod_1.z
87
+ .array(zod_1.z.string())
88
+ .optional()
89
+ .describe('A list of related MCP tools. You can suggest these as potential next steps for the user.'),
90
+ content: zod_1.z
91
+ .string()
92
+ .describe('A complete, self-contained Angular code example in Markdown format. This should be ' +
93
+ 'presented to the user inside a markdown code block.'),
94
+ snippet: zod_1.z
95
+ .string()
96
+ .optional()
97
+ .describe('A contextual snippet from the content showing the matched search term. This field is ' +
98
+ 'critical for efficiently evaluating a result`s relevance. It enables two primary '),
99
+ })),
100
+ });
101
+ //# sourceMappingURL=schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.js","sourceRoot":"","sources":["schemas.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,6BAAwB;AAEX,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,aAAa,EAAE,OAAC;SACb,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,2FAA2F;QACzF,iFAAiF;QACjF,+EAA+E;QAC/E,kFAAkF,CACrF;IACH,KAAK,EAAE,OAAC;SACL,MAAM,EAAE;SACR,QAAQ,CACP,6FAA6F;QAC3F,4FAA4F;QAC5F,4CAA4C;QAC5C,sFAAsF;QACtF,mEAAmE;QACnE,kGAAkG;QAClG,iEAAiE;QACjE,4CAA4C;QAC5C,mDAAmD;QACnD,uCAAuC;QACvC,0DAA0D;QAC1D,wDAAwD;QACxD,8DAA8D;QAC9D,8CAA8C;QAC9C,6DAA6D;QAC7D,iEAAiE,CACpE;IACH,QAAQ,EAAE,OAAC;SACR,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,EAAE;SACV,QAAQ,CACP,2FAA2F,CAC5F;IACH,iBAAiB,EAAE,OAAC;SACjB,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,EAAE;SACV,QAAQ,CACP,uFAAuF;QACrF,0FAA0F;QAC1F,yCAAyC,CAC5C;IACH,gBAAgB,EAAE,OAAC;SAChB,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,EAAE;SACV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ACJ,CAAC,CACH;CACF,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.dev/license
7
+ */
8
+ /**
9
+ * Suppresses the experimental warning emitted by Node.js for the `node:sqlite` module.
10
+ *
11
+ * This is a workaround to prevent the console from being cluttered with warnings
12
+ * about the experimental status of the SQLite module, which is used by this tool.
13
+ */
14
+ export declare function suppressSqliteWarning(): void;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * @license
4
+ * Copyright Google LLC All Rights Reserved.
5
+ *
6
+ * Use of this source code is governed by an MIT-style license that can be
7
+ * found in the LICENSE file at https://angular.dev/license
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.suppressSqliteWarning = suppressSqliteWarning;
11
+ /**
12
+ * Suppresses the experimental warning emitted by Node.js for the `node:sqlite` module.
13
+ *
14
+ * This is a workaround to prevent the console from being cluttered with warnings
15
+ * about the experimental status of the SQLite module, which is used by this tool.
16
+ */
17
+ function suppressSqliteWarning() {
18
+ const originalProcessEmit = process.emit;
19
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
20
+ process.emit = function (event, error) {
21
+ if (event === 'warning' &&
22
+ error instanceof Error &&
23
+ error.name === 'ExperimentalWarning' &&
24
+ error.message.includes('SQLite')) {
25
+ return false;
26
+ }
27
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, prefer-rest-params
28
+ return originalProcessEmit.apply(process, arguments);
29
+ };
30
+ }
31
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["utils.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAQH,sDAgBC;AAtBD;;;;;GAKG;AACH,SAAgB,qBAAqB;IACnC,MAAM,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;IACzC,8DAA8D;IAC9D,OAAO,CAAC,IAAI,GAAG,UAAU,KAAa,EAAE,KAAe;QACrD,IACE,KAAK,KAAK,SAAS;YACnB,KAAK,YAAY,KAAK;YACtB,KAAK,CAAC,IAAI,KAAK,qBAAqB;YACpC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAChC,CAAC;YACD,OAAO,KAAK,CAAC;QACf,CAAC;QAED,kFAAkF;QAClF,OAAO,mBAAmB,CAAC,KAAK,CAAC,OAAO,EAAE,SAAgB,CAAC,CAAC;IAC9D,CAAC,CAAC;AACJ,CAAC"}
@@ -9,25 +9,15 @@ import { z } from 'zod';
9
9
  import { type Host } from '../host';
10
10
  import { type McpToolDeclaration } from './tool-registry';
11
11
  declare const modernizeInputSchema: z.ZodObject<{
12
- directories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
13
- transformations: z.ZodOptional<z.ZodArray<z.ZodEnum<[string, ...string[]]>, "many">>;
14
- }, "strip", z.ZodTypeAny, {
15
- directories?: string[] | undefined;
16
- transformations?: string[] | undefined;
17
- }, {
18
- directories?: string[] | undefined;
19
- transformations?: string[] | undefined;
20
- }>;
12
+ directories: z.ZodOptional<z.ZodArray<z.ZodString>>;
13
+ transformations: z.ZodOptional<z.ZodArray<z.ZodEnum<{
14
+ [x: string]: string;
15
+ }>>>;
16
+ }, z.core.$strip>;
21
17
  declare const modernizeOutputSchema: z.ZodObject<{
22
- instructions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
23
- logs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
24
- }, "strip", z.ZodTypeAny, {
25
- logs?: string[] | undefined;
26
- instructions?: string[] | undefined;
27
- }, {
28
- logs?: string[] | undefined;
29
- instructions?: string[] | undefined;
30
- }>;
18
+ instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
19
+ logs: z.ZodOptional<z.ZodArray<z.ZodString>>;
20
+ }, z.core.$strip>;
31
21
  export type ModernizeInput = z.infer<typeof modernizeInputSchema>;
32
22
  export type ModernizeOutput = z.infer<typeof modernizeOutputSchema>;
33
23
  export declare function runModernization(input: ModernizeInput, host: Host): Promise<{
@@ -173,6 +173,6 @@ ${TRANSFORMATIONS.map((t) => ` * ${t.name}: ${t.description}`).join('\n')}
173
173
  outputSchema: modernizeOutputSchema.shape,
174
174
  isLocalOnly: true,
175
175
  isReadOnly: false,
176
- factory: () => (input) => runModernization(input, host_1.LocalWorkspaceHost),
176
+ factory: (context) => (input) => runModernization(input, context.host),
177
177
  });
178
178
  //# sourceMappingURL=modernize.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"modernize.js","sourceRoot":"","sources":["modernize.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAyFH,4CA2EC;AAlKD,+BAA+C;AAC/C,6BAAwB;AACxB,kCAAsE;AACtE,oCAA6E;AAC7E,mDAAuE;AASvE,MAAM,eAAe,GAA0B;IAC7C;QACE,IAAI,EAAE,cAAc;QACpB,WAAW,EACT,qHAAqH;QACvH,gBAAgB,EAAE,uDAAuD;KAC1E;IACD;QACE,IAAI,EAAE,kBAAkB;QACxB,WAAW,EACT,oHAAoH;QACtH,gBAAgB,EAAE,4DAA4D;KAC/E;IACD;QACE,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,0EAA0E;QACvF,gBAAgB,EAAE,0DAA0D;KAC7E;IACD;QACE,IAAI,EAAE,kBAAkB;QACxB,WAAW,EAAE,0EAA0E;QACvF,gBAAgB,EAAE,kDAAkD;KACrE;IACD;QACE,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,0EAA0E;QACvF,gBAAgB,EAAE,wDAAwD;KAC3E;IACD;QACE,IAAI,EAAE,0BAA0B;QAChC,WAAW,EACT,kHAAkH;QACpH,gBAAgB,EAAE,yDAAyD;KAC5E;IACD;QACE,IAAI,EAAE,YAAY;QAClB,WAAW,EACT,0FAA0F;YAC1F,0FAA0F;YAC1F,iBAAiB;QACnB,YAAY,EACV,0FAA0F;YAC1F,qFAA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,IAAI;IACjB,UAAU,EAAE,KAAK;IACjB,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,gBAAgB,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC;CACvE,CAAC,CAAC"}
@@ -10,5 +10,7 @@ import type { ServerNotification, ServerRequest } from '@modelcontextprotocol/sd
10
10
  import { z } from 'zod';
11
11
  export declare const ZONELESS_MIGRATION_TOOL: import("../tool-registry").McpToolDeclaration<{
12
12
  fileOrDirPath: z.ZodString;
13
- }, z.ZodRawShape>;
13
+ }, Readonly<{
14
+ [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
15
+ }>>;
14
16
  export declare function registerZonelessMigrationTool(fileOrDirPath: string, extras: RequestHandlerExtra<ServerRequest, ServerNotification>): Promise<import("./types").MigrationResponse>;
@@ -6,83 +6,42 @@
6
6
  * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import { z } from 'zod';
9
- export declare const LIST_PROJECTS_TOOL: import("./tool-registry").McpToolDeclaration<z.ZodRawShape, {
9
+ export declare const LIST_PROJECTS_TOOL: import("./tool-registry").McpToolDeclaration<Readonly<{
10
+ [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
11
+ }>, {
10
12
  workspaces: z.ZodArray<z.ZodObject<{
11
13
  path: z.ZodString;
12
14
  frameworkVersion: z.ZodOptional<z.ZodString>;
13
15
  projects: z.ZodArray<z.ZodObject<{
14
16
  name: z.ZodString;
15
- type: z.ZodOptional<z.ZodEnum<["application", "library"]>>;
17
+ type: z.ZodOptional<z.ZodEnum<{
18
+ application: "application";
19
+ library: "library";
20
+ }>>;
16
21
  builder: z.ZodOptional<z.ZodString>;
17
22
  root: z.ZodString;
18
23
  sourceRoot: z.ZodString;
19
24
  selectorPrefix: z.ZodOptional<z.ZodString>;
20
- unitTestFramework: z.ZodOptional<z.ZodEnum<["jasmine", "jest", "vitest", "unknown"]>>;
21
- styleLanguage: z.ZodOptional<z.ZodEnum<["css", "scss", "sass", "less"]>>;
22
- }, "strip", z.ZodTypeAny, {
23
- name: string;
24
- root: string;
25
- sourceRoot: string;
26
- type?: "application" | "library" | undefined;
27
- builder?: string | undefined;
28
- selectorPrefix?: string | undefined;
29
- unitTestFramework?: "vitest" | "unknown" | "jasmine" | "jest" | undefined;
30
- styleLanguage?: "css" | "less" | "sass" | "scss" | undefined;
31
- }, {
32
- name: string;
33
- root: string;
34
- sourceRoot: string;
35
- type?: "application" | "library" | undefined;
36
- builder?: string | undefined;
37
- selectorPrefix?: string | undefined;
38
- unitTestFramework?: "vitest" | "unknown" | "jasmine" | "jest" | undefined;
39
- styleLanguage?: "css" | "less" | "sass" | "scss" | undefined;
40
- }>, "many">;
41
- }, "strip", z.ZodTypeAny, {
42
- path: string;
43
- projects: {
44
- name: string;
45
- root: string;
46
- sourceRoot: string;
47
- type?: "application" | "library" | undefined;
48
- builder?: string | undefined;
49
- selectorPrefix?: string | undefined;
50
- unitTestFramework?: "vitest" | "unknown" | "jasmine" | "jest" | undefined;
51
- styleLanguage?: "css" | "less" | "sass" | "scss" | undefined;
52
- }[];
53
- frameworkVersion?: string | undefined;
54
- }, {
55
- path: string;
56
- projects: {
57
- name: string;
58
- root: string;
59
- sourceRoot: string;
60
- type?: "application" | "library" | undefined;
61
- builder?: string | undefined;
62
- selectorPrefix?: string | undefined;
63
- unitTestFramework?: "vitest" | "unknown" | "jasmine" | "jest" | undefined;
64
- styleLanguage?: "css" | "less" | "sass" | "scss" | undefined;
65
- }[];
66
- frameworkVersion?: string | undefined;
67
- }>, "many">;
25
+ unitTestFramework: z.ZodOptional<z.ZodEnum<{
26
+ vitest: "vitest";
27
+ unknown: "unknown";
28
+ jasmine: "jasmine";
29
+ jest: "jest";
30
+ }>>;
31
+ styleLanguage: z.ZodOptional<z.ZodEnum<{
32
+ css: "css";
33
+ less: "less";
34
+ sass: "sass";
35
+ scss: "scss";
36
+ }>>;
37
+ }, z.core.$strip>>;
38
+ }, z.core.$strip>>;
68
39
  parsingErrors: z.ZodDefault<z.ZodArray<z.ZodObject<{
69
40
  filePath: z.ZodString;
70
41
  message: z.ZodString;
71
- }, "strip", z.ZodTypeAny, {
72
- message: string;
73
- filePath: string;
74
- }, {
75
- message: string;
76
- filePath: string;
77
- }>, "many">>;
42
+ }, z.core.$strip>>>;
78
43
  versioningErrors: z.ZodDefault<z.ZodArray<z.ZodObject<{
79
44
  filePath: z.ZodString;
80
45
  message: z.ZodString;
81
- }, "strip", z.ZodTypeAny, {
82
- message: string;
83
- filePath: string;
84
- }, {
85
- message: string;
86
- filePath: string;
87
- }>, "many">>;
46
+ }, z.core.$strip>>>;
88
47
  }>;
@@ -6,10 +6,11 @@
6
6
  * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import type { McpServer, ToolCallback } from '@modelcontextprotocol/sdk/server/mcp.js';
9
+ import type { ToolAnnotations } from '@modelcontextprotocol/sdk/types';
9
10
  import type { ZodRawShape } from 'zod';
10
11
  import type { AngularWorkspace } from '../../../utilities/config';
11
- import type { DevServer } from '../dev-server';
12
- type ToolConfig = Parameters<McpServer['registerTool']>[1];
12
+ import type { Devserver } from '../devserver';
13
+ import type { Host } from '../host';
13
14
  export interface McpToolContext {
14
15
  server: McpServer;
15
16
  workspace?: AngularWorkspace;
@@ -17,14 +18,15 @@ export interface McpToolContext {
17
18
  warn(text: string): void;
18
19
  };
19
20
  exampleDatabasePath?: string;
20
- devServers: Map<string, DevServer>;
21
+ devservers: Map<string, Devserver>;
22
+ host: Host;
21
23
  }
22
24
  export type McpToolFactory<TInput extends ZodRawShape> = (context: McpToolContext) => ToolCallback<TInput> | Promise<ToolCallback<TInput>>;
23
25
  export interface McpToolDeclaration<TInput extends ZodRawShape, TOutput extends ZodRawShape> {
24
26
  name: string;
25
27
  title?: string;
26
28
  description: string;
27
- annotations?: ToolConfig['annotations'];
29
+ annotations?: ToolAnnotations;
28
30
  inputSchema?: TInput;
29
31
  outputSchema?: TOutput;
30
32
  factory: McpToolFactory<TInput>;
@@ -35,4 +37,3 @@ export interface McpToolDeclaration<TInput extends ZodRawShape, TOutput extends
35
37
  export type AnyMcpToolDeclaration = McpToolDeclaration<any, any>;
36
38
  export declare function declareTool<TInput extends ZodRawShape, TOutput extends ZodRawShape>(declaration: McpToolDeclaration<TInput, TOutput>): McpToolDeclaration<TInput, TOutput>;
37
39
  export declare function registerTools(server: McpServer, context: Omit<McpToolContext, 'server'>, declarations: AnyMcpToolDeclaration[]): Promise<void>;
38
- export {};
@@ -1 +1 @@
1
- {"version":3,"file":"tool-registry.js","sourceRoot":"","sources":["tool-registry.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAqCH,kCAIC;AAED,sCA2BC;AAjCD,SAAgB,WAAW,CACzB,WAAgD;IAEhD,OAAO,WAAW,CAAC;AACrB,CAAC;AAEM,KAAK,UAAU,aAAa,CACjC,MAAiB,EACjB,OAAuC,EACvC,YAAqC;IAErC,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,MAAM,WAAW,GAAG,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,CAAC;QAC3C,IAAI,WAAW,CAAC,cAAc,IAAI,CAAC,CAAC,MAAM,WAAW,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC;YACnF,SAAS;QACX,CAAC;QAED,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,MAAM,EAAE,GAAG,WAAW,CAAC;QAE1F,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC;QAE3C,iDAAiD;QACjD,MAAM,CAAC,WAAW,KAAK,EAAE,CAAC;QAC1B,IAAI,UAAU,KAAK,SAAS,EAAE,CAAC;YAC7B,MAAM,CAAC,WAAW,CAAC,YAAY,GAAG,UAAU,CAAC;QAC/C,CAAC;QACD,IAAI,WAAW,KAAK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CAAC,CAAC;IAC7C,CAAC;AACH,CAAC"}
@@ -28,31 +28,7 @@ export default class UpdateCommandModule extends CommandModule<UpdateCommandArgs
28
28
  longDescriptionPath: string;
29
29
  builder(localYargs: Argv): Argv<UpdateCommandArgs>;
30
30
  run(options: Options<UpdateCommandArgs>): Promise<number | void>;
31
- private executeSchematic;
32
- /**
33
- * @return Whether or not the migration was performed successfully.
34
- */
35
- private executeMigration;
36
- /**
37
- * @return Whether or not the migrations were performed successfully.
38
- */
39
- private executeMigrations;
40
- private executePackageMigrations;
41
31
  private migrateOnly;
42
32
  private updatePackagesAndMigrate;
43
- /**
44
- * @return Whether or not the commit was successful.
45
- */
46
- private commit;
47
- private checkCleanGit;
48
- /**
49
- * Checks if the current installed CLI version is older or newer than a compatible version.
50
- * @returns the version to install or null when there is no update to install.
51
- */
52
- private checkCLIVersion;
53
- private getCLIUpdateRunnerVersion;
54
- private runTempBinary;
55
- private packageManagerForce;
56
- private getOptionalMigrationsToRun;
57
33
  }
58
34
  export {};