@nowline/mcp 0.10.0 → 0.12.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/dist/diagnostics.d.ts.map +1 -1
- package/dist/diagnostics.js +3 -3
- package/dist/diagnostics.js.map +1 -1
- package/dist/generated/ui-bundle.d.ts.map +1 -1
- package/dist/generated/ui-bundle.js +2 -2
- package/dist/generated/ui-bundle.js.map +1 -1
- package/package.json +10 -10
- package/src/diagnostics.ts +6 -3
- package/src/generated/ui-bundle.ts +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-bundle.js","sourceRoot":"","sources":["../../src/generated/ui-bundle.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,EAAE;AACF,qEAAqE;AACrE,8CAA8C;AAC9C,EAAE;AACF,mFAAmF;AAEnF,yEAAyE;AACzE,MAAM,CAAC,MAAM,SAAS,GAAW
|
|
1
|
+
{"version":3,"file":"ui-bundle.js","sourceRoot":"","sources":["../../src/generated/ui-bundle.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,EAAE;AACF,qEAAqE;AACrE,8CAA8C;AAC9C,EAAE;AACF,mFAAmF;AAEnF,yEAAyE;AACzE,MAAM,CAAC,MAAM,SAAS,GAAW,miqhDAAmiqhD,CAAC;AAErkqhD,gFAAgF;AAChF,MAAM,CAAC,MAAM,YAAY,GAAW,y5qhDAAy5qhD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nowline/mcp",
|
|
3
3
|
"mcpName": "io.nowline/nowline",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.12.0",
|
|
5
5
|
"description": "Nowline MCP server — lets AI agents create, edit, and render your roadmaps.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"engines": {
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"@modelcontextprotocol/ext-apps": "^2.0.3",
|
|
37
37
|
"@modelcontextprotocol/node": "^2.1.1",
|
|
38
38
|
"@modelcontextprotocol/server": "^2.3.1",
|
|
39
|
-
"@nowline/browser": "0.
|
|
40
|
-
"@nowline/config": "0.
|
|
41
|
-
"@nowline/core": "0.
|
|
42
|
-
"@nowline/export": "0.
|
|
43
|
-
"@nowline/export-core": "0.
|
|
44
|
-
"@nowline/layout": "0.
|
|
45
|
-
"@nowline/preview": "0.
|
|
46
|
-
"@nowline/preview-shell": "0.
|
|
47
|
-
"@nowline/share-link": "0.
|
|
39
|
+
"@nowline/browser": "0.12.0",
|
|
40
|
+
"@nowline/config": "0.12.0",
|
|
41
|
+
"@nowline/core": "0.12.0",
|
|
42
|
+
"@nowline/export": "0.12.0",
|
|
43
|
+
"@nowline/export-core": "0.12.0",
|
|
44
|
+
"@nowline/layout": "0.12.0",
|
|
45
|
+
"@nowline/preview": "0.12.0",
|
|
46
|
+
"@nowline/preview-shell": "0.12.0",
|
|
47
|
+
"@nowline/share-link": "0.12.0",
|
|
48
48
|
"@resvg/resvg-wasm": "^2.6.2",
|
|
49
49
|
"langium": "~4.4.0",
|
|
50
50
|
"zod": "^4.6.7"
|
package/src/diagnostics.ts
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import {
|
|
4
4
|
collectDocumentDiagnostics,
|
|
5
5
|
createNowlineServices,
|
|
6
|
-
extractSuggestion,
|
|
7
6
|
inferCodeFromMessage,
|
|
8
7
|
isRoutedResolveDiagnostic,
|
|
9
8
|
type NowlineFile,
|
|
10
9
|
type ResolveDiagnostic,
|
|
11
10
|
resolveDiagnosticCode,
|
|
11
|
+
resolveDiagnosticSuggestion,
|
|
12
12
|
} from '@nowline/core';
|
|
13
13
|
import {
|
|
14
14
|
type HostEnv,
|
|
@@ -93,7 +93,7 @@ export function collectMcpDiagnostics(
|
|
|
93
93
|
severity,
|
|
94
94
|
code: resolveDiagnosticCode(diag),
|
|
95
95
|
message: diag.message,
|
|
96
|
-
suggestion:
|
|
96
|
+
suggestion: resolveDiagnosticSuggestion(diag.message, diag.data),
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
}
|
|
@@ -125,7 +125,10 @@ export function resolveDiagnosticToMcp(diag: ResolveDiagnostic): McpDiagnostic {
|
|
|
125
125
|
message: diag.message,
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
|
-
const suggestion =
|
|
128
|
+
const suggestion = resolveDiagnosticSuggestion(
|
|
129
|
+
diag.message,
|
|
130
|
+
diag.code === undefined ? undefined : { code: diag.code, args: diag.args ?? [] },
|
|
131
|
+
);
|
|
129
132
|
return {
|
|
130
133
|
file: diag.sourcePath,
|
|
131
134
|
line: (diag.range?.start.line ?? diag.line ?? 0) + 1,
|