@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.
- package/lib/code-examples.db +0 -0
- package/package.json +17 -17
- package/src/commands/add/cli.js +129 -87
- package/src/commands/add/cli.js.map +1 -1
- package/src/commands/mcp/cli.js +4 -1
- package/src/commands/mcp/cli.js.map +1 -1
- package/src/commands/mcp/{dev-server.d.ts → devserver.d.ts} +4 -4
- package/src/commands/mcp/{dev-server.js → devserver.js} +14 -14
- package/src/commands/mcp/devserver.js.map +1 -0
- package/src/commands/mcp/host.d.ts +27 -0
- package/src/commands/mcp/host.js +8 -0
- package/src/commands/mcp/host.js.map +1 -1
- package/src/commands/mcp/mcp-server.d.ts +50 -9
- package/src/commands/mcp/mcp-server.js +26 -9
- package/src/commands/mcp/mcp-server.js.map +1 -1
- package/src/commands/mcp/resources/ai-tutor.md +199 -3
- package/src/commands/mcp/tools/ai-tutor.d.ts +5 -1
- package/src/commands/mcp/tools/best-practices.d.ts +3 -1
- package/src/commands/mcp/tools/best-practices.js.map +1 -1
- package/src/commands/mcp/tools/build.d.ts +8 -19
- package/src/commands/mcp/tools/build.js +2 -2
- package/src/commands/mcp/tools/build.js.map +1 -1
- package/src/commands/mcp/tools/devserver/devserver-start.d.ts +30 -0
- package/src/commands/mcp/tools/devserver/{start-devserver.js → devserver-start.js} +26 -27
- package/src/commands/mcp/tools/devserver/devserver-start.js.map +1 -0
- package/src/commands/mcp/tools/devserver/devserver-stop.d.ts +39 -0
- package/src/commands/mcp/tools/devserver/{stop-devserver.js → devserver-stop.js} +13 -13
- package/src/commands/mcp/tools/devserver/{stop-devserver.js.map → devserver-stop.js.map} +1 -1
- package/src/commands/mcp/tools/devserver/devserver-wait-for-build.d.ts +41 -0
- package/src/commands/mcp/tools/devserver/{wait-for-devserver-build.js → devserver-wait-for-build.js} +16 -16
- package/src/commands/mcp/tools/devserver/{wait-for-devserver-build.js.map → devserver-wait-for-build.js.map} +1 -1
- package/src/commands/mcp/tools/doc-search.d.ts +1 -11
- package/src/commands/mcp/tools/examples/database-discovery.d.ts +34 -0
- package/src/commands/mcp/tools/examples/database-discovery.js +87 -0
- package/src/commands/mcp/tools/examples/database-discovery.js.map +1 -0
- package/src/commands/mcp/tools/examples/database.d.ts +35 -0
- package/src/commands/mcp/tools/examples/database.js +125 -0
- package/src/commands/mcp/tools/examples/database.js.map +1 -0
- package/src/commands/mcp/tools/examples/index.d.ts +26 -0
- package/src/commands/mcp/tools/examples/index.js +149 -0
- package/src/commands/mcp/tools/examples/index.js.map +1 -0
- package/src/commands/mcp/tools/examples/query-escaper.d.ts +20 -0
- package/src/commands/mcp/tools/examples/query-escaper.js +68 -0
- package/src/commands/mcp/tools/examples/query-escaper.js.map +1 -0
- package/src/commands/mcp/tools/examples/runtime-database.d.ts +10 -0
- package/src/commands/mcp/tools/examples/runtime-database.js +192 -0
- package/src/commands/mcp/tools/examples/runtime-database.js.map +1 -0
- package/src/commands/mcp/tools/examples/schemas.d.ts +29 -0
- package/src/commands/mcp/tools/examples/schemas.js +101 -0
- package/src/commands/mcp/tools/examples/schemas.js.map +1 -0
- package/src/commands/mcp/tools/examples/utils.d.ts +14 -0
- package/src/commands/mcp/tools/examples/utils.js +31 -0
- package/src/commands/mcp/tools/examples/utils.js.map +1 -0
- package/src/commands/mcp/tools/modernize.d.ts +8 -18
- package/src/commands/mcp/tools/modernize.js +1 -1
- package/src/commands/mcp/tools/modernize.js.map +1 -1
- package/src/commands/mcp/tools/onpush-zoneless-migration/zoneless-migration.d.ts +3 -1
- package/src/commands/mcp/tools/projects.d.ts +23 -64
- package/src/commands/mcp/tools/tool-registry.d.ts +6 -5
- package/src/commands/mcp/tools/tool-registry.js.map +1 -1
- package/src/commands/update/cli.d.ts +0 -24
- package/src/commands/update/cli.js +39 -447
- package/src/commands/update/cli.js.map +1 -1
- package/src/commands/update/utilities/cli-version.d.ts +48 -0
- package/src/commands/update/utilities/cli-version.js +196 -0
- package/src/commands/update/utilities/cli-version.js.map +1 -0
- package/src/commands/update/utilities/constants.d.ts +12 -0
- package/src/commands/update/utilities/constants.js +16 -0
- package/src/commands/update/utilities/constants.js.map +1 -0
- package/src/commands/update/utilities/git.d.ts +34 -0
- package/src/commands/update/utilities/git.js +115 -0
- package/src/commands/update/utilities/git.js.map +1 -0
- package/src/commands/update/utilities/migration.d.ts +32 -0
- package/src/commands/update/utilities/migration.js +257 -0
- package/src/commands/update/utilities/migration.js.map +1 -0
- package/src/package-managers/error.d.ts +12 -0
- package/src/package-managers/host.d.ts +6 -0
- package/src/package-managers/host.js +8 -3
- package/src/package-managers/host.js.map +1 -1
- package/src/package-managers/package-manager-descriptor.d.ts +33 -9
- package/src/package-managers/package-manager-descriptor.js +28 -8
- package/src/package-managers/package-manager-descriptor.js.map +1 -1
- package/src/package-managers/package-manager.d.ts +21 -3
- package/src/package-managers/package-manager.js +133 -10
- package/src/package-managers/package-manager.js.map +1 -1
- package/src/package-managers/parsers.d.ts +69 -4
- package/src/package-managers/parsers.js +231 -32
- package/src/package-managers/parsers.js.map +1 -1
- package/src/utilities/version.js +1 -1
- package/src/commands/mcp/dev-server.js.map +0 -1
- package/src/commands/mcp/tools/devserver/start-devserver.d.ts +0 -41
- package/src/commands/mcp/tools/devserver/start-devserver.js.map +0 -1
- package/src/commands/mcp/tools/devserver/stop-devserver.d.ts +0 -49
- package/src/commands/mcp/tools/devserver/wait-for-devserver-build.d.ts +0 -47
- package/src/commands/mcp/tools/examples.d.ts +0 -58
- package/src/commands/mcp/tools/examples.js +0 -654
- package/src/commands/mcp/tools/examples.js.map +0 -1
|
@@ -12,7 +12,10 @@ exports.parseYarnClassicDependencies = parseYarnClassicDependencies;
|
|
|
12
12
|
exports.parseYarnModernDependencies = parseYarnModernDependencies;
|
|
13
13
|
exports.parseNpmLikeManifest = parseNpmLikeManifest;
|
|
14
14
|
exports.parseNpmLikeMetadata = parseNpmLikeMetadata;
|
|
15
|
-
exports.
|
|
15
|
+
exports.parseYarnClassicManifest = parseYarnClassicManifest;
|
|
16
|
+
exports.parseYarnClassicMetadata = parseYarnClassicMetadata;
|
|
17
|
+
exports.parseNpmLikeError = parseNpmLikeError;
|
|
18
|
+
exports.parseYarnClassicError = parseYarnClassicError;
|
|
16
19
|
const MAX_LOG_LENGTH = 1024;
|
|
17
20
|
function logStdout(stdout, logger) {
|
|
18
21
|
if (!logger) {
|
|
@@ -24,6 +27,26 @@ function logStdout(stdout, logger) {
|
|
|
24
27
|
}
|
|
25
28
|
logger.debug(` stdout:\n${output}`);
|
|
26
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* A generator function that parses a string containing JSONL (newline-delimited JSON)
|
|
32
|
+
* and yields each successfully parsed JSON object.
|
|
33
|
+
* @param output The string output to parse.
|
|
34
|
+
* @param logger An optional logger instance.
|
|
35
|
+
*/
|
|
36
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
37
|
+
function* parseJsonLines(output, logger) {
|
|
38
|
+
for (const line of output.split('\n')) {
|
|
39
|
+
if (!line.trim()) {
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
try {
|
|
43
|
+
yield JSON.parse(line);
|
|
44
|
+
}
|
|
45
|
+
catch (e) {
|
|
46
|
+
logger?.debug(` Ignoring non-JSON line: ${e}`);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
27
50
|
/**
|
|
28
51
|
* Parses the output of `npm list` or a compatible command.
|
|
29
52
|
*
|
|
@@ -78,7 +101,7 @@ function parseNpmLikeDependencies(stdout, logger) {
|
|
|
78
101
|
* Parses the output of `yarn list` (classic).
|
|
79
102
|
*
|
|
80
103
|
* The expected output is a JSON stream (JSONL), where each line is a JSON object.
|
|
81
|
-
* The relevant object has a `type` of `'tree'
|
|
104
|
+
* The relevant object has a `type` of `'tree'` with a `data` property.
|
|
82
105
|
* Yarn classic does not provide a path, so the `path` property will be `undefined`.
|
|
83
106
|
*
|
|
84
107
|
* ```json
|
|
@@ -97,11 +120,7 @@ function parseYarnClassicDependencies(stdout, logger) {
|
|
|
97
120
|
logger?.debug(' stdout is empty. No dependencies found.');
|
|
98
121
|
return dependencies;
|
|
99
122
|
}
|
|
100
|
-
for (const
|
|
101
|
-
if (!line) {
|
|
102
|
-
continue;
|
|
103
|
-
}
|
|
104
|
-
const json = JSON.parse(line);
|
|
123
|
+
for (const json of parseJsonLines(stdout, logger)) {
|
|
105
124
|
if (json.type === 'tree' && json.data?.trees) {
|
|
106
125
|
for (const info of json.data.trees) {
|
|
107
126
|
const name = info.name.split('@')[0];
|
|
@@ -158,27 +177,17 @@ function parseYarnModernDependencies(stdout, logger) {
|
|
|
158
177
|
catch (e) {
|
|
159
178
|
logger?.debug(` Failed to parse as single JSON object: ${e}. Falling back to line-by-line parsing.`);
|
|
160
179
|
// Fallback for older versions of yarn berry that might still output json lines
|
|
161
|
-
for (const
|
|
162
|
-
if (
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
const version = info.name.split('@').pop();
|
|
171
|
-
dependencies.set(name, {
|
|
172
|
-
name,
|
|
173
|
-
version,
|
|
174
|
-
});
|
|
175
|
-
}
|
|
180
|
+
for (const json of parseJsonLines(stdout, logger)) {
|
|
181
|
+
if (json.type === 'tree' && json.data?.trees) {
|
|
182
|
+
for (const info of json.data.trees) {
|
|
183
|
+
const name = info.name.split('@')[0];
|
|
184
|
+
const version = info.name.split('@').pop();
|
|
185
|
+
dependencies.set(name, {
|
|
186
|
+
name,
|
|
187
|
+
version,
|
|
188
|
+
});
|
|
176
189
|
}
|
|
177
190
|
}
|
|
178
|
-
catch (innerError) {
|
|
179
|
-
logger?.debug(` Ignoring non-JSON line: ${innerError}`);
|
|
180
|
-
// Ignore lines that are not valid JSON.
|
|
181
|
-
}
|
|
182
191
|
}
|
|
183
192
|
}
|
|
184
193
|
logger?.debug(` Found ${dependencies.size} dependencies.`);
|
|
@@ -215,20 +224,210 @@ function parseNpmLikeMetadata(stdout, logger) {
|
|
|
215
224
|
return JSON.parse(stdout);
|
|
216
225
|
}
|
|
217
226
|
/**
|
|
218
|
-
* Parses the output of `yarn info` (classic).
|
|
227
|
+
* Parses the output of `yarn info` (classic) to get a package manifest.
|
|
228
|
+
*
|
|
229
|
+
* When `yarn info --verbose` is used, the output is a JSONL stream. This function
|
|
230
|
+
* iterates through the lines to find the object with `type: 'inspect'` which contains
|
|
231
|
+
* the package manifest.
|
|
232
|
+
*
|
|
233
|
+
* For non-verbose output, it falls back to parsing a single JSON object.
|
|
234
|
+
*
|
|
219
235
|
* @param stdout The standard output of the command.
|
|
220
236
|
* @param logger An optional logger instance.
|
|
221
|
-
* @returns The package manifest object.
|
|
237
|
+
* @returns The package manifest object, or `null` if not found.
|
|
222
238
|
*/
|
|
223
|
-
function
|
|
239
|
+
function parseYarnClassicManifest(stdout, logger) {
|
|
224
240
|
logger?.debug(`Parsing yarn classic manifest...`);
|
|
225
241
|
logStdout(stdout, logger);
|
|
226
242
|
if (!stdout) {
|
|
227
243
|
logger?.debug(' stdout is empty. No manifest found.');
|
|
228
244
|
return null;
|
|
229
245
|
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
246
|
+
// Yarn classic outputs JSONL. We need to find the relevant object.
|
|
247
|
+
let manifest;
|
|
248
|
+
for (const json of parseJsonLines(stdout, logger)) {
|
|
249
|
+
// The manifest data is in a JSON object with type 'inspect'.
|
|
250
|
+
if (json.type === 'inspect' && json.data) {
|
|
251
|
+
manifest = json.data;
|
|
252
|
+
break;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
if (!manifest) {
|
|
256
|
+
logger?.debug(' Failed to find manifest in yarn classic output.');
|
|
257
|
+
return null;
|
|
258
|
+
}
|
|
259
|
+
// Yarn classic removes any field with a falsy value
|
|
260
|
+
// https://github.com/yarnpkg/yarn/blob/7cafa512a777048ce0b666080a24e80aae3d66a9/src/cli/commands/info.js#L26-L29
|
|
261
|
+
// Add a default of 'false' for the `save` field when the `ng-add` object is present but does not have any fields.
|
|
262
|
+
// There is a small chance this causes an incorrect value. However, the use of `ng-add` is rare and, in the cases
|
|
263
|
+
// it is used, save is set to either a `false` literal or a truthy value. Special cases can be added for specific
|
|
264
|
+
// packages if discovered.
|
|
265
|
+
if (manifest['ng-add'] &&
|
|
266
|
+
typeof manifest['ng-add'] === 'object' &&
|
|
267
|
+
Object.keys(manifest['ng-add']).length === 0) {
|
|
268
|
+
manifest['ng-add'].save ??= false;
|
|
269
|
+
}
|
|
270
|
+
return manifest;
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Parses the output of `yarn info` (classic) to get package metadata.
|
|
274
|
+
* @param stdout The standard output of the command.
|
|
275
|
+
* @param logger An optional logger instance.
|
|
276
|
+
* @returns The package metadata object.
|
|
277
|
+
*/
|
|
278
|
+
function parseYarnClassicMetadata(stdout, logger) {
|
|
279
|
+
logger?.debug(`Parsing yarn classic metadata...`);
|
|
280
|
+
logStdout(stdout, logger);
|
|
281
|
+
if (!stdout) {
|
|
282
|
+
logger?.debug(' stdout is empty. No metadata found.');
|
|
283
|
+
return null;
|
|
284
|
+
}
|
|
285
|
+
// Yarn classic outputs JSONL. We need to find the relevant object.
|
|
286
|
+
let metadata;
|
|
287
|
+
for (const json of parseJsonLines(stdout, logger)) {
|
|
288
|
+
// The metadata data is in a JSON object with type 'inspect'.
|
|
289
|
+
if (json.type === 'inspect' && json.data) {
|
|
290
|
+
metadata = json.data;
|
|
291
|
+
break;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
if (!metadata) {
|
|
295
|
+
logger?.debug(' Failed to find metadata in yarn classic output.');
|
|
296
|
+
return null;
|
|
297
|
+
}
|
|
298
|
+
return metadata;
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Parses the `stdout` or `stderr` output of npm, pnpm, modern yarn, or bun to extract structured error information.
|
|
302
|
+
*
|
|
303
|
+
* This parser uses a multi-stage approach. It first attempts to parse the entire `output` as a
|
|
304
|
+
* single JSON object, which is the standard for modern tools like pnpm, yarn, and bun. If JSON
|
|
305
|
+
* parsing fails, it falls back to a line-by-line regex-based approach to handle the plain
|
|
306
|
+
* text output from older versions of npm.
|
|
307
|
+
*
|
|
308
|
+
* Example JSON output (pnpm):
|
|
309
|
+
* ```json
|
|
310
|
+
* {
|
|
311
|
+
* "code": "E404",
|
|
312
|
+
* "summary": "Not Found - GET https://registry.npmjs.org/@angular%2fnon-existent - Not found",
|
|
313
|
+
* "detail": "The requested resource '@angular/non-existent@*' could not be found or you do not have permission to access it."
|
|
314
|
+
* }
|
|
315
|
+
* ```
|
|
316
|
+
*
|
|
317
|
+
* Example text output (npm):
|
|
318
|
+
* ```
|
|
319
|
+
* npm error code E404
|
|
320
|
+
* npm error 404 Not Found - GET https://registry.npmjs.org/@angular%2fnon-existent - Not found
|
|
321
|
+
* ```
|
|
322
|
+
*
|
|
323
|
+
* @param output The standard output or standard error of the command.
|
|
324
|
+
* @param logger An optional logger instance.
|
|
325
|
+
* @returns An `ErrorInfo` object if parsing is successful, otherwise `null`.
|
|
326
|
+
*/
|
|
327
|
+
function parseNpmLikeError(output, logger) {
|
|
328
|
+
logger?.debug(`Parsing npm-like error output...`);
|
|
329
|
+
logStdout(output, logger); // Log output for debugging purposes
|
|
330
|
+
if (!output) {
|
|
331
|
+
logger?.debug(' output is empty. No error found.');
|
|
332
|
+
return null;
|
|
333
|
+
}
|
|
334
|
+
// Attempt to parse as JSON first (common for pnpm, modern yarn, bun)
|
|
335
|
+
try {
|
|
336
|
+
const jsonError = JSON.parse(output);
|
|
337
|
+
if (jsonError &&
|
|
338
|
+
typeof jsonError.code === 'string' &&
|
|
339
|
+
(typeof jsonError.summary === 'string' || typeof jsonError.message === 'string')) {
|
|
340
|
+
const summary = jsonError.summary || jsonError.message;
|
|
341
|
+
logger?.debug(` Successfully parsed JSON error with code '${jsonError.code}'.`);
|
|
342
|
+
return {
|
|
343
|
+
code: jsonError.code,
|
|
344
|
+
summary,
|
|
345
|
+
detail: jsonError.detail,
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
catch (e) {
|
|
350
|
+
logger?.debug(` Failed to parse output as JSON: ${e}. Attempting regex fallback.`);
|
|
351
|
+
// Fallback to regex for plain text errors (common for npm)
|
|
352
|
+
}
|
|
353
|
+
// Regex for npm-like error codes (e.g., `npm ERR! code E404` or `npm error code E404`)
|
|
354
|
+
const errorCodeMatch = output.match(/npm (ERR!|error) code (E\d{3}|[A-Z_]+)/);
|
|
355
|
+
if (errorCodeMatch) {
|
|
356
|
+
const code = errorCodeMatch[2]; // Capture group 2 is the actual error code
|
|
357
|
+
let summary;
|
|
358
|
+
// Find the most descriptive summary line (the line after `npm ERR! code ...` or `npm error code ...`).
|
|
359
|
+
for (const line of output.split('\n')) {
|
|
360
|
+
if (line.startsWith('npm ERR!') && !line.includes(' code ')) {
|
|
361
|
+
summary = line.replace('npm ERR! ', '').trim();
|
|
362
|
+
break;
|
|
363
|
+
}
|
|
364
|
+
else if (line.startsWith('npm error') && !line.includes(' code ')) {
|
|
365
|
+
summary = line.replace('npm error ', '').trim();
|
|
366
|
+
break;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
logger?.debug(` Successfully parsed text error with code '${code}'.`);
|
|
370
|
+
return {
|
|
371
|
+
code,
|
|
372
|
+
summary: summary || `Package manager error: ${code}`,
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
logger?.debug(' Failed to parse npm-like error. No structured error found.');
|
|
376
|
+
return null;
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Parses the `stdout` or `stderr` output of yarn classic to extract structured error information.
|
|
380
|
+
*
|
|
381
|
+
* This parser first attempts to find an HTTP status code (e.g., 404, 401) in the verbose output.
|
|
382
|
+
* If found, it returns a standardized error code (`E${statusCode}`).
|
|
383
|
+
* If no HTTP status code is found, it falls back to parsing generic JSON error lines.
|
|
384
|
+
*
|
|
385
|
+
* Example verbose output (with HTTP status code):
|
|
386
|
+
* ```json
|
|
387
|
+
* {"type":"verbose","data":"Request \"https://registry.npmjs.org/@angular%2fnon-existent\" finished with status code 404."}
|
|
388
|
+
* ```
|
|
389
|
+
*
|
|
390
|
+
* Example generic JSON error output:
|
|
391
|
+
* ```json
|
|
392
|
+
* {"type":"error","data":"Received invalid response from npm."}
|
|
393
|
+
* ```
|
|
394
|
+
*
|
|
395
|
+
* @param output The standard output or standard error of the command.
|
|
396
|
+
* @param logger An optional logger instance.
|
|
397
|
+
* @returns An `ErrorInfo` object if parsing is successful, otherwise `null`.
|
|
398
|
+
*/
|
|
399
|
+
function parseYarnClassicError(output, logger) {
|
|
400
|
+
logger?.debug(`Parsing yarn classic error output...`);
|
|
401
|
+
logStdout(output, logger); // Log output for debugging purposes
|
|
402
|
+
if (!output) {
|
|
403
|
+
logger?.debug(' output is empty. No error found.');
|
|
404
|
+
return null;
|
|
405
|
+
}
|
|
406
|
+
// First, check for any HTTP status code in the verbose output.
|
|
407
|
+
const statusCodeMatch = output.match(/finished with status code (\d{3})/);
|
|
408
|
+
if (statusCodeMatch) {
|
|
409
|
+
const statusCode = Number(statusCodeMatch[1]);
|
|
410
|
+
// Status codes in the 200-299 range are successful.
|
|
411
|
+
if (statusCode < 200 || statusCode >= 300) {
|
|
412
|
+
logger?.debug(` Detected HTTP error status code '${statusCode}' in verbose output.`);
|
|
413
|
+
return {
|
|
414
|
+
code: `E${statusCode}`,
|
|
415
|
+
summary: `Request failed with status code ${statusCode}.`,
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
// Fallback to the JSON error type if no HTTP status code is present.
|
|
420
|
+
for (const json of parseJsonLines(output, logger)) {
|
|
421
|
+
if (json.type === 'error' && typeof json.data === 'string') {
|
|
422
|
+
const summary = json.data;
|
|
423
|
+
logger?.debug(` Successfully parsed generic yarn classic error.`);
|
|
424
|
+
return {
|
|
425
|
+
code: 'UNKNOWN_ERROR',
|
|
426
|
+
summary,
|
|
427
|
+
};
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
logger?.debug(' Failed to parse yarn classic error. No structured error found.');
|
|
431
|
+
return null;
|
|
233
432
|
}
|
|
234
433
|
//# sourceMappingURL=parsers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parsers.js","sourceRoot":"","sources":["parsers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;
|
|
1
|
+
{"version":3,"file":"parsers.js","sourceRoot":"","sources":["parsers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AA0EH,4DA2CC;AAiBD,oEA8BC;AAoBD,kEAgDC;AAQD,oDAWC;AAQD,oDAWC;AAeD,4DAyCC;AAQD,4DA2BC;AA6BD,8CA4DC;AAuBD,sDAyCC;AArfD,MAAM,cAAc,GAAG,IAAI,CAAC;AAE5B,SAAS,SAAS,CAAC,MAAc,EAAE,MAAe;IAChD,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO;IACT,CAAC;IAED,IAAI,MAAM,GAAG,MAAM,CAAC;IACpB,IAAI,MAAM,CAAC,MAAM,GAAG,cAAc,EAAE,CAAC;QACnC,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,cAAc,CAAC,iBAAiB,CAAC;IAC/D,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,cAAc,MAAM,EAAE,CAAC,CAAC;AACvC,CAAC;AAED;;;;;GAKG;AACH,8DAA8D;AAC9D,QAAQ,CAAC,CAAC,cAAc,CAAC,MAAc,EAAE,MAAe;IACtD,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;QACtC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC;YACjB,SAAS;QACX,CAAC;QACD,IAAI,CAAC;YACH,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAA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AE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;YACzE,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;YAC7B,4EAA4E;YAC5E,IAAI,CAAC,iBAAiB,GAAG,GAAG,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;QACxF,CAAC;IACH,CAAC;IAED,IAAI;QACF,IAAI,CAAC,gBAAgB,EAAE,IAAI,EAAE,CAAC;QAC9B,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAC/B,CAAC;IAED,aAAa;QACX,OAAO,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC;IAC9B,CAAC;IAED,kBAAkB;QAChB,OAAO;YACL,MAAM,EAAE,IAAI,CAAC,iBAAiB;YAC9B,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,wBAAwB,CAAC;SAC3D,CAAC;IACJ,CAAC;IAED,UAAU;QACR,OAAO,IAAI,CAAC,eAAe,CAAC;IAC9B,CAAC;CACF;AA1ED,wCA0EC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
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
|
-
import { z } from 'zod';
|
|
9
|
-
import { type Host } from '../../host';
|
|
10
|
-
import { type McpToolContext, type McpToolDeclaration } from '../tool-registry';
|
|
11
|
-
declare const startDevServerToolInputSchema: z.ZodObject<{
|
|
12
|
-
project: z.ZodOptional<z.ZodString>;
|
|
13
|
-
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
project?: string | undefined;
|
|
15
|
-
}, {
|
|
16
|
-
project?: string | undefined;
|
|
17
|
-
}>;
|
|
18
|
-
export type StartDevserverToolInput = z.infer<typeof startDevServerToolInputSchema>;
|
|
19
|
-
declare const startDevServerToolOutputSchema: z.ZodObject<{
|
|
20
|
-
message: z.ZodString;
|
|
21
|
-
address: z.ZodOptional<z.ZodString>;
|
|
22
|
-
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
message: string;
|
|
24
|
-
address?: string | undefined;
|
|
25
|
-
}, {
|
|
26
|
-
message: string;
|
|
27
|
-
address?: string | undefined;
|
|
28
|
-
}>;
|
|
29
|
-
export type StartDevserverToolOutput = z.infer<typeof startDevServerToolOutputSchema>;
|
|
30
|
-
export declare function startDevServer(input: StartDevserverToolInput, context: McpToolContext, host: Host): Promise<{
|
|
31
|
-
content: {
|
|
32
|
-
type: "text";
|
|
33
|
-
text: string;
|
|
34
|
-
}[];
|
|
35
|
-
structuredContent: {
|
|
36
|
-
message: string;
|
|
37
|
-
address: string;
|
|
38
|
-
};
|
|
39
|
-
}>;
|
|
40
|
-
export declare const START_DEVSERVER_TOOL: McpToolDeclaration<typeof startDevServerToolInputSchema.shape, typeof startDevServerToolOutputSchema.shape>;
|
|
41
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"start-devserver.js","sourceRoot":"","sources":["start-devserver.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAmCH,wCA0BC;AA3DD,6BAAwB;AACxB,iDAAgE;AAChE,qCAA2D;AAC3D,uCAA4D;AAC5D,oDAA6F;AAE7F,MAAM,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,OAAO,EAAE,OAAC;SACP,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,4FAA4F,CAC7F;CACJ,CAAC,CAAC;AAIH,MAAM,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mDAAmD,CAAC;IACjF,OAAO,EAAE,OAAC;SACP,MAA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IAChD,YAAY,EAAE,8BAA8B,CAAC,KAAK;IAClD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,EAAE;QAC9B,OAAO,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,yBAAkB,CAAC,CAAC;IAC5D,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1,49 +0,0 @@
|
|
|
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
|
-
import { z } from 'zod';
|
|
9
|
-
import { type McpToolContext, type McpToolDeclaration } from '../tool-registry';
|
|
10
|
-
declare const stopDevserverToolInputSchema: z.ZodObject<{
|
|
11
|
-
project: z.ZodOptional<z.ZodString>;
|
|
12
|
-
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
project?: string | undefined;
|
|
14
|
-
}, {
|
|
15
|
-
project?: string | undefined;
|
|
16
|
-
}>;
|
|
17
|
-
export type StopDevserverToolInput = z.infer<typeof stopDevserverToolInputSchema>;
|
|
18
|
-
declare const stopDevserverToolOutputSchema: z.ZodObject<{
|
|
19
|
-
message: z.ZodString;
|
|
20
|
-
logs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
21
|
-
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
message: string;
|
|
23
|
-
logs?: string[] | undefined;
|
|
24
|
-
}, {
|
|
25
|
-
message: string;
|
|
26
|
-
logs?: string[] | undefined;
|
|
27
|
-
}>;
|
|
28
|
-
export type StopDevserverToolOutput = z.infer<typeof stopDevserverToolOutputSchema>;
|
|
29
|
-
export declare function stopDevserver(input: StopDevserverToolInput, context: McpToolContext): {
|
|
30
|
-
content: {
|
|
31
|
-
type: "text";
|
|
32
|
-
text: string;
|
|
33
|
-
}[];
|
|
34
|
-
structuredContent: {
|
|
35
|
-
message: string;
|
|
36
|
-
logs: undefined;
|
|
37
|
-
};
|
|
38
|
-
} | {
|
|
39
|
-
content: {
|
|
40
|
-
type: "text";
|
|
41
|
-
text: string;
|
|
42
|
-
}[];
|
|
43
|
-
structuredContent: {
|
|
44
|
-
message: string;
|
|
45
|
-
logs: string[];
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
export declare const STOP_DEVSERVER_TOOL: McpToolDeclaration<typeof stopDevserverToolInputSchema.shape, typeof stopDevserverToolOutputSchema.shape>;
|
|
49
|
-
export {};
|
|
@@ -1,47 +0,0 @@
|
|
|
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
|
-
import { z } from 'zod';
|
|
9
|
-
import { type McpToolContext, type McpToolDeclaration } from '../tool-registry';
|
|
10
|
-
/**
|
|
11
|
-
* How long to wait to give "ng serve" time to identify whether the watched workspace has changed.
|
|
12
|
-
*/
|
|
13
|
-
export declare const WATCH_DELAY = 1000;
|
|
14
|
-
declare const waitForDevserverBuildToolInputSchema: z.ZodObject<{
|
|
15
|
-
project: z.ZodOptional<z.ZodString>;
|
|
16
|
-
timeout: z.ZodDefault<z.ZodNumber>;
|
|
17
|
-
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
timeout: number;
|
|
19
|
-
project?: string | undefined;
|
|
20
|
-
}, {
|
|
21
|
-
project?: string | undefined;
|
|
22
|
-
timeout?: number | undefined;
|
|
23
|
-
}>;
|
|
24
|
-
export type WaitForDevserverBuildToolInput = z.infer<typeof waitForDevserverBuildToolInputSchema>;
|
|
25
|
-
declare const waitForDevserverBuildToolOutputSchema: z.ZodObject<{
|
|
26
|
-
status: z.ZodEnum<["success", "failure", "unknown", "timeout", "no_devserver_found"]>;
|
|
27
|
-
logs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
28
|
-
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
status: "success" | "timeout" | "failure" | "unknown" | "no_devserver_found";
|
|
30
|
-
logs?: string[] | undefined;
|
|
31
|
-
}, {
|
|
32
|
-
status: "success" | "timeout" | "failure" | "unknown" | "no_devserver_found";
|
|
33
|
-
logs?: string[] | undefined;
|
|
34
|
-
}>;
|
|
35
|
-
export type WaitForDevserverBuildToolOutput = z.infer<typeof waitForDevserverBuildToolOutputSchema>;
|
|
36
|
-
export declare function waitForDevserverBuild(input: WaitForDevserverBuildToolInput, context: McpToolContext): Promise<{
|
|
37
|
-
content: {
|
|
38
|
-
type: "text";
|
|
39
|
-
text: string;
|
|
40
|
-
}[];
|
|
41
|
-
structuredContent: {
|
|
42
|
-
status: "success" | "timeout" | "failure" | "unknown" | "no_devserver_found";
|
|
43
|
-
logs?: string[] | undefined;
|
|
44
|
-
};
|
|
45
|
-
}>;
|
|
46
|
-
export declare const WAIT_FOR_DEVSERVER_BUILD_TOOL: McpToolDeclaration<typeof waitForDevserverBuildToolInputSchema.shape, typeof waitForDevserverBuildToolOutputSchema.shape>;
|
|
47
|
-
export {};
|
|
@@ -1,58 +0,0 @@
|
|
|
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
|
-
import { z } from 'zod';
|
|
9
|
-
export declare const FIND_EXAMPLE_TOOL: import("./tool-registry").McpToolDeclaration<{
|
|
10
|
-
workspacePath: z.ZodOptional<z.ZodString>;
|
|
11
|
-
query: z.ZodString;
|
|
12
|
-
keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
13
|
-
required_packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
14
|
-
related_concepts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
15
|
-
includeExperimental: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
16
|
-
}, {
|
|
17
|
-
examples: z.ZodArray<z.ZodObject<{
|
|
18
|
-
title: z.ZodString;
|
|
19
|
-
summary: z.ZodString;
|
|
20
|
-
keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
21
|
-
required_packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
22
|
-
related_concepts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
23
|
-
related_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
24
|
-
content: z.ZodString;
|
|
25
|
-
snippet: z.ZodOptional<z.ZodString>;
|
|
26
|
-
}, "strip", z.ZodTypeAny, {
|
|
27
|
-
title: string;
|
|
28
|
-
content: string;
|
|
29
|
-
summary: string;
|
|
30
|
-
keywords?: string[] | undefined;
|
|
31
|
-
required_packages?: string[] | undefined;
|
|
32
|
-
related_concepts?: string[] | undefined;
|
|
33
|
-
related_tools?: string[] | undefined;
|
|
34
|
-
snippet?: string | undefined;
|
|
35
|
-
}, {
|
|
36
|
-
title: string;
|
|
37
|
-
content: string;
|
|
38
|
-
summary: string;
|
|
39
|
-
keywords?: string[] | undefined;
|
|
40
|
-
required_packages?: string[] | undefined;
|
|
41
|
-
related_concepts?: string[] | undefined;
|
|
42
|
-
related_tools?: string[] | undefined;
|
|
43
|
-
snippet?: string | undefined;
|
|
44
|
-
}>, "many">;
|
|
45
|
-
}>;
|
|
46
|
-
/**
|
|
47
|
-
* Escapes a search query for FTS5 by tokenizing and quoting terms.
|
|
48
|
-
*
|
|
49
|
-
* This function processes a raw search string and prepares it for an FTS5 full-text search.
|
|
50
|
-
* It correctly handles quoted phrases, logical operators (AND, OR, NOT), parentheses,
|
|
51
|
-
* and prefix searches (ending with an asterisk), ensuring that individual search
|
|
52
|
-
* terms are properly quoted to be treated as literals by the search engine.
|
|
53
|
-
* This is primarily intended to avoid unintentional usage of FTS5 query syntax by consumers.
|
|
54
|
-
*
|
|
55
|
-
* @param query The raw search query string.
|
|
56
|
-
* @returns A sanitized query string suitable for FTS5.
|
|
57
|
-
*/
|
|
58
|
-
export declare function escapeSearchQuery(query: string): string;
|