@nowline/mcp 0.10.0 → 0.11.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.
@@ -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,+2+gDAA+2+gD,CAAC;AAEj5+gD,gFAAgF;AAChF,MAAM,CAAC,MAAM,YAAY,GAAW,qu/gDAAqu/gD,CAAC"}
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,ilphDAAilphD,CAAC;AAEnnphD,gFAAgF;AAChF,MAAM,CAAC,MAAM,YAAY,GAAW,u8phDAAu8phD,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.10.0",
4
+ "version": "0.11.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.10.0",
40
- "@nowline/config": "0.10.0",
41
- "@nowline/core": "0.10.0",
42
- "@nowline/export": "0.10.0",
43
- "@nowline/export-core": "0.10.0",
44
- "@nowline/layout": "0.10.0",
45
- "@nowline/preview": "0.10.0",
46
- "@nowline/preview-shell": "0.10.0",
47
- "@nowline/share-link": "0.10.0",
39
+ "@nowline/browser": "0.11.0",
40
+ "@nowline/config": "0.11.0",
41
+ "@nowline/core": "0.11.0",
42
+ "@nowline/export": "0.11.0",
43
+ "@nowline/export-core": "0.11.0",
44
+ "@nowline/layout": "0.11.0",
45
+ "@nowline/preview": "0.11.0",
46
+ "@nowline/preview-shell": "0.11.0",
47
+ "@nowline/share-link": "0.11.0",
48
48
  "@resvg/resvg-wasm": "^2.6.2",
49
49
  "langium": "~4.4.0",
50
50
  "zod": "^4.6.7"
@@ -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: extractSuggestion(diag.message),
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 = extractSuggestion(diag.message);
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,