@nowline/mcp 0.7.0 → 0.8.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/branding.d.ts +20 -0
- package/dist/branding.d.ts.map +1 -0
- package/dist/branding.js +27 -0
- package/dist/branding.js.map +1 -0
- package/dist/diagnostics.d.ts +59 -0
- package/dist/diagnostics.d.ts.map +1 -0
- package/dist/diagnostics.js +117 -0
- package/dist/diagnostics.js.map +1 -0
- package/dist/generated/ui-bundle.d.ts +2 -0
- package/dist/generated/ui-bundle.d.ts.map +1 -1
- package/dist/generated/ui-bundle.js +4 -3
- package/dist/generated/ui-bundle.js.map +1 -1
- package/dist/reference-cheatsheet.d.ts +2 -0
- package/dist/reference-cheatsheet.d.ts.map +1 -0
- package/dist/reference-cheatsheet.js +47 -0
- package/dist/reference-cheatsheet.js.map +1 -0
- package/dist/schema-vocab.d.ts +6 -0
- package/dist/schema-vocab.d.ts.map +1 -0
- package/dist/schema-vocab.js +55 -0
- package/dist/schema-vocab.js.map +1 -0
- package/dist/schemas.d.ts +52 -0
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +24 -1
- package/dist/schemas.js.map +1 -1
- package/dist/server.d.ts +2 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +312 -165
- package/dist/server.js.map +1 -1
- package/dist/ui/entry.js +148 -110
- package/dist/ui/entry.js.map +1 -1
- package/dist/ui/payload.d.ts +30 -0
- package/dist/ui/payload.d.ts.map +1 -0
- package/dist/ui/payload.js +49 -0
- package/dist/ui/payload.js.map +1 -0
- package/package.json +11 -7
- package/src/branding.ts +26 -0
- package/src/diagnostics.ts +185 -0
- package/src/generated/ui-bundle.ts +5 -3
- package/src/reference-cheatsheet.ts +47 -0
- package/src/schema-vocab.ts +55 -0
- package/src/schemas.ts +28 -1
- package/src/server.ts +419 -200
- package/src/ui/entry.ts +167 -122
- package/src/ui/payload.ts +63 -0
|
@@ -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,
|
|
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,o64lCAAo64lC,CAAC;AAEt84lC,gFAAgF;AAChF,MAAM,CAAC,MAAM,YAAY,GAAW,0x5lCAA0x5lC,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const REFERENCE_CHEATSHEET = "# Nowline DSL \u2014 condensed reference\n\nEvery file starts with `nowline v1` on line 1.\n\n## Roadmap directive\n\n```\nroadmap <id> \"<title>\" start:YYYY-MM-DD scale:2w\n```\n\nCommon keys: `start:`, `scale:`, `length:`, `locale:`, `theme:`, `author:`, `calendar:`.\n\n## Swimlanes and items\n\n```\nswimlane <id> \"<title>\"\n item <id> \"<title>\" duration:3w\n```\n\nEntity types: `swimlane`, `group`, `parallel`, `item`, `milestone`, `anchor`.\n\nItems need `duration:` or `size:`. Use 2-space indentation under parents.\n\n## Item properties\n\n`duration:` (or `size:`), `status:`, `remaining:`, `owner:`, `after:`, `before:`, `labels:`, `link:`, `style:`.\n\nThere is NO `progress:` or `color:` key. Show completion with `status:` + `remaining:`; set visuals with a `style:` reference (see full reference).\n\n## Progress & status\n\n```\nitem api \"API redesign\" duration:4w status:in-progress remaining:40%\n```\n\n`status:` values: `planned`, `in-progress` (alias `active`), `done` (alias `completed`), `at-risk`, `blocked`, or a custom `status` you declare earlier.\n\n`remaining:` is the work *left*, written as a percent (`40%`) or an effort literal (`1w`). So an item that is 60% complete is `remaining:40%`. Omit `remaining:` for a fully open or fully done bar.\n\n## Config / includes (before roadmap)\n\n`config` blocks, `include \"path.nowline\"` \u2014 see full reference for ordering rules.\n\nCall `reference` with `format: \"full\"` for the complete man page, or `examples` for sample files.\n";
|
|
2
|
+
//# sourceMappingURL=reference-cheatsheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reference-cheatsheet.d.ts","sourceRoot":"","sources":["../src/reference-cheatsheet.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,s/CA4ChC,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// Condensed DSL reference for the MCP `reference` discovery tool (format: condensed).
|
|
2
|
+
export const REFERENCE_CHEATSHEET = `# Nowline DSL — condensed reference
|
|
3
|
+
|
|
4
|
+
Every file starts with \`nowline v1\` on line 1.
|
|
5
|
+
|
|
6
|
+
## Roadmap directive
|
|
7
|
+
|
|
8
|
+
\`\`\`
|
|
9
|
+
roadmap <id> "<title>" start:YYYY-MM-DD scale:2w
|
|
10
|
+
\`\`\`
|
|
11
|
+
|
|
12
|
+
Common keys: \`start:\`, \`scale:\`, \`length:\`, \`locale:\`, \`theme:\`, \`author:\`, \`calendar:\`.
|
|
13
|
+
|
|
14
|
+
## Swimlanes and items
|
|
15
|
+
|
|
16
|
+
\`\`\`
|
|
17
|
+
swimlane <id> "<title>"
|
|
18
|
+
item <id> "<title>" duration:3w
|
|
19
|
+
\`\`\`
|
|
20
|
+
|
|
21
|
+
Entity types: \`swimlane\`, \`group\`, \`parallel\`, \`item\`, \`milestone\`, \`anchor\`.
|
|
22
|
+
|
|
23
|
+
Items need \`duration:\` or \`size:\`. Use 2-space indentation under parents.
|
|
24
|
+
|
|
25
|
+
## Item properties
|
|
26
|
+
|
|
27
|
+
\`duration:\` (or \`size:\`), \`status:\`, \`remaining:\`, \`owner:\`, \`after:\`, \`before:\`, \`labels:\`, \`link:\`, \`style:\`.
|
|
28
|
+
|
|
29
|
+
There is NO \`progress:\` or \`color:\` key. Show completion with \`status:\` + \`remaining:\`; set visuals with a \`style:\` reference (see full reference).
|
|
30
|
+
|
|
31
|
+
## Progress & status
|
|
32
|
+
|
|
33
|
+
\`\`\`
|
|
34
|
+
item api "API redesign" duration:4w status:in-progress remaining:40%
|
|
35
|
+
\`\`\`
|
|
36
|
+
|
|
37
|
+
\`status:\` values: \`planned\`, \`in-progress\` (alias \`active\`), \`done\` (alias \`completed\`), \`at-risk\`, \`blocked\`, or a custom \`status\` you declare earlier.
|
|
38
|
+
|
|
39
|
+
\`remaining:\` is the work *left*, written as a percent (\`40%\`) or an effort literal (\`1w\`). So an item that is 60% complete is \`remaining:40%\`. Omit \`remaining:\` for a fully open or fully done bar.
|
|
40
|
+
|
|
41
|
+
## Config / includes (before roadmap)
|
|
42
|
+
|
|
43
|
+
\`config\` blocks, \`include "path.nowline"\` — see full reference for ordering rules.
|
|
44
|
+
|
|
45
|
+
Call \`reference\` with \`format: "full"\` for the complete man page, or \`examples\` for sample files.
|
|
46
|
+
`;
|
|
47
|
+
//# sourceMappingURL=reference-cheatsheet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reference-cheatsheet.js","sourceRoot":"","sources":["../src/reference-cheatsheet.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,MAAM,CAAC,MAAM,oBAAoB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4CnC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const SCHEMA_VOCABULARY: {
|
|
2
|
+
readonly directiveKeys: readonly ["locale", "author", "start", "scale", "length", "calendar", "logo", "logo-size"];
|
|
3
|
+
readonly entityTypes: readonly ["swimlane", "item", "parallel", "group", "person", "team", "anchor", "label", "size", "status", "milestone", "footnote"];
|
|
4
|
+
readonly itemPropertyKeys: readonly ["status", "owner", "after", "before", "size", "duration", "remaining", "capacity", "labels", "link", "style", "description"];
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=schema-vocab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-vocab.d.ts","sourceRoot":"","sources":["../src/schema-vocab.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,iBAAiB;;;;CA8CpB,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// Structured key vocabulary for the MCP `schema` discovery tool.
|
|
2
|
+
//
|
|
3
|
+
// This is the one place whose whole job is to give agents ACCURATE DSL
|
|
4
|
+
// keys so they stop hallucinating. Every key below is a real DSL token
|
|
5
|
+
// (verified against specs/dsl.md and the man page) — render/CLI options
|
|
6
|
+
// like `theme` or `now` are deliberately excluded because they are not
|
|
7
|
+
// part of the `.nowline` source language.
|
|
8
|
+
export const SCHEMA_VOCABULARY = {
|
|
9
|
+
// Keys valid on the `nowline` directive line (`locale`) and the
|
|
10
|
+
// `roadmap` declaration line. NOT render/CLI options (`theme`, `now`).
|
|
11
|
+
directiveKeys: [
|
|
12
|
+
'locale',
|
|
13
|
+
'author',
|
|
14
|
+
'start',
|
|
15
|
+
'scale',
|
|
16
|
+
'length',
|
|
17
|
+
'calendar',
|
|
18
|
+
'logo',
|
|
19
|
+
'logo-size',
|
|
20
|
+
],
|
|
21
|
+
// Roadmap-section keywords — the declarable entity types.
|
|
22
|
+
entityTypes: [
|
|
23
|
+
'swimlane',
|
|
24
|
+
'item',
|
|
25
|
+
'parallel',
|
|
26
|
+
'group',
|
|
27
|
+
'person',
|
|
28
|
+
'team',
|
|
29
|
+
'anchor',
|
|
30
|
+
'label',
|
|
31
|
+
'size',
|
|
32
|
+
'status',
|
|
33
|
+
'milestone',
|
|
34
|
+
'footnote',
|
|
35
|
+
],
|
|
36
|
+
// Properties valid on `item` declarations: item-specific keys plus the
|
|
37
|
+
// universal properties (`labels`, `link`, `style`, `description`).
|
|
38
|
+
// Visual treatment is a single `style:` reference — raw color/style
|
|
39
|
+
// props (`bg`, `fg`, `text`, ...) live in `style`/`default` config blocks.
|
|
40
|
+
itemPropertyKeys: [
|
|
41
|
+
'status',
|
|
42
|
+
'owner',
|
|
43
|
+
'after',
|
|
44
|
+
'before',
|
|
45
|
+
'size',
|
|
46
|
+
'duration',
|
|
47
|
+
'remaining',
|
|
48
|
+
'capacity',
|
|
49
|
+
'labels',
|
|
50
|
+
'link',
|
|
51
|
+
'style',
|
|
52
|
+
'description',
|
|
53
|
+
],
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=schema-vocab.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-vocab.js","sourceRoot":"","sources":["../src/schema-vocab.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,EAAE;AACF,uEAAuE;AACvE,uEAAuE;AACvE,wEAAwE;AACxE,uEAAuE;AACvE,0CAA0C;AAE1C,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,gEAAgE;IAChE,uEAAuE;IACvE,aAAa,EAAE;QACX,QAAQ;QACR,QAAQ;QACR,OAAO;QACP,OAAO;QACP,QAAQ;QACR,UAAU;QACV,MAAM;QACN,WAAW;KACd;IACD,0DAA0D;IAC1D,WAAW,EAAE;QACT,UAAU;QACV,MAAM;QACN,UAAU;QACV,OAAO;QACP,QAAQ;QACR,MAAM;QACN,QAAQ;QACR,OAAO;QACP,MAAM;QACN,QAAQ;QACR,WAAW;QACX,UAAU;KACb;IACD,uEAAuE;IACvE,mEAAmE;IACnE,oEAAoE;IACpE,2EAA2E;IAC3E,gBAAgB,EAAE;QACd,QAAQ;QACR,OAAO;QACP,OAAO;QACP,QAAQ;QACR,MAAM;QACN,UAAU;QACV,WAAW;QACX,UAAU;QACV,QAAQ;QACR,MAAM;QACN,OAAO;QACP,aAAa;KAChB;CACK,CAAC"}
|
package/dist/schemas.d.ts
CHANGED
|
@@ -6,9 +6,20 @@ export declare const DiagnosticSchema: z.ZodObject<{
|
|
|
6
6
|
severity: z.ZodEnum<{
|
|
7
7
|
error: "error";
|
|
8
8
|
warning: "warning";
|
|
9
|
+
info: "info";
|
|
9
10
|
}>;
|
|
10
11
|
code: z.ZodString;
|
|
11
12
|
message: z.ZodString;
|
|
13
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export declare const InsightSchema: z.ZodObject<{
|
|
16
|
+
severity: z.ZodEnum<{
|
|
17
|
+
warning: "warning";
|
|
18
|
+
info: "info";
|
|
19
|
+
}>;
|
|
20
|
+
code: z.ZodString;
|
|
21
|
+
message: z.ZodString;
|
|
22
|
+
entityId: z.ZodOptional<z.ZodString>;
|
|
12
23
|
}, z.core.$strip>;
|
|
13
24
|
export declare const ValidateOutputSchema: z.ZodObject<{
|
|
14
25
|
ok: z.ZodBoolean;
|
|
@@ -19,10 +30,21 @@ export declare const ValidateOutputSchema: z.ZodObject<{
|
|
|
19
30
|
severity: z.ZodEnum<{
|
|
20
31
|
error: "error";
|
|
21
32
|
warning: "warning";
|
|
33
|
+
info: "info";
|
|
22
34
|
}>;
|
|
23
35
|
code: z.ZodString;
|
|
24
36
|
message: z.ZodString;
|
|
37
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
25
38
|
}, z.core.$strip>>;
|
|
39
|
+
insights: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
40
|
+
severity: z.ZodEnum<{
|
|
41
|
+
warning: "warning";
|
|
42
|
+
info: "info";
|
|
43
|
+
}>;
|
|
44
|
+
code: z.ZodString;
|
|
45
|
+
message: z.ZodString;
|
|
46
|
+
entityId: z.ZodOptional<z.ZodString>;
|
|
47
|
+
}, z.core.$strip>>>;
|
|
26
48
|
}, z.core.$strip>;
|
|
27
49
|
export declare const ReadOutputSchema: z.ZodObject<{
|
|
28
50
|
path: z.ZodString;
|
|
@@ -38,9 +60,11 @@ export declare const CreateOutputSchema: z.ZodObject<{
|
|
|
38
60
|
severity: z.ZodEnum<{
|
|
39
61
|
error: "error";
|
|
40
62
|
warning: "warning";
|
|
63
|
+
info: "info";
|
|
41
64
|
}>;
|
|
42
65
|
code: z.ZodString;
|
|
43
66
|
message: z.ZodString;
|
|
67
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
44
68
|
}, z.core.$strip>>>;
|
|
45
69
|
}, z.core.$strip>;
|
|
46
70
|
export declare const UpdateOutputSchema: z.ZodObject<{
|
|
@@ -53,9 +77,11 @@ export declare const UpdateOutputSchema: z.ZodObject<{
|
|
|
53
77
|
severity: z.ZodEnum<{
|
|
54
78
|
error: "error";
|
|
55
79
|
warning: "warning";
|
|
80
|
+
info: "info";
|
|
56
81
|
}>;
|
|
57
82
|
code: z.ZodString;
|
|
58
83
|
message: z.ZodString;
|
|
84
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
59
85
|
}, z.core.$strip>>>;
|
|
60
86
|
}, z.core.$strip>;
|
|
61
87
|
export declare const DeleteOutputSchema: z.ZodObject<{
|
|
@@ -69,6 +95,15 @@ export declare const RenderOutputSchema: z.ZodObject<{
|
|
|
69
95
|
path: z.ZodOptional<z.ZodString>;
|
|
70
96
|
bytes: z.ZodOptional<z.ZodNumber>;
|
|
71
97
|
shareUrl: z.ZodOptional<z.ZodString>;
|
|
98
|
+
insights: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
99
|
+
severity: z.ZodEnum<{
|
|
100
|
+
warning: "warning";
|
|
101
|
+
info: "info";
|
|
102
|
+
}>;
|
|
103
|
+
code: z.ZodString;
|
|
104
|
+
message: z.ZodString;
|
|
105
|
+
entityId: z.ZodOptional<z.ZodString>;
|
|
106
|
+
}, z.core.$strip>>>;
|
|
72
107
|
}, z.core.$strip>;
|
|
73
108
|
export declare const ExportOutputSchema: z.ZodObject<{
|
|
74
109
|
format: z.ZodString;
|
|
@@ -93,4 +128,21 @@ export declare const CapabilitiesOutputSchema: z.ZodObject<{
|
|
|
93
128
|
export declare const ListItemsOutputSchema: z.ZodObject<{
|
|
94
129
|
items: z.ZodArray<z.ZodString>;
|
|
95
130
|
}, z.core.$strip>;
|
|
131
|
+
export declare const ReferenceOutputSchema: z.ZodObject<{
|
|
132
|
+
format: z.ZodEnum<{
|
|
133
|
+
condensed: "condensed";
|
|
134
|
+
full: "full";
|
|
135
|
+
}>;
|
|
136
|
+
text: z.ZodString;
|
|
137
|
+
}, z.core.$strip>;
|
|
138
|
+
export declare const ExamplesOutputSchema: z.ZodObject<{
|
|
139
|
+
names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
140
|
+
name: z.ZodOptional<z.ZodString>;
|
|
141
|
+
source: z.ZodOptional<z.ZodString>;
|
|
142
|
+
}, z.core.$strip>;
|
|
143
|
+
export declare const SchemaOutputSchema: z.ZodObject<{
|
|
144
|
+
directiveKeys: z.ZodArray<z.ZodString>;
|
|
145
|
+
entityTypes: z.ZodArray<z.ZodString>;
|
|
146
|
+
itemPropertyKeys: z.ZodArray<z.ZodString>;
|
|
147
|
+
}, z.core.$strip>;
|
|
96
148
|
//# sourceMappingURL=schemas.d.ts.map
|
package/dist/schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;iBAQ3B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;iBAKxB,CAAC;AAIH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;iBAI/B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;iBAG3B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;iBAI7B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;iBAI7B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;iBAE7B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;iBAE3B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;iBAO7B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;iBAK7B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;iBAG9B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;iBAMnC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;iBAEhC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;iBAGhC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;iBAI/B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;iBAI7B,CAAC"}
|
package/dist/schemas.js
CHANGED
|
@@ -6,14 +6,22 @@ export const DiagnosticSchema = z.object({
|
|
|
6
6
|
file: z.string(),
|
|
7
7
|
line: z.number(),
|
|
8
8
|
column: z.number(),
|
|
9
|
-
severity: z.enum(['error', 'warning']),
|
|
9
|
+
severity: z.enum(['error', 'warning', 'info']),
|
|
10
10
|
code: z.string(),
|
|
11
11
|
message: z.string(),
|
|
12
|
+
suggestion: z.string().optional(),
|
|
13
|
+
});
|
|
14
|
+
export const InsightSchema = z.object({
|
|
15
|
+
severity: z.enum(['info', 'warning']),
|
|
16
|
+
code: z.string(),
|
|
17
|
+
message: z.string(),
|
|
18
|
+
entityId: z.string().optional(),
|
|
12
19
|
});
|
|
13
20
|
// ---- Tool output schemas ---------------------------------------------------
|
|
14
21
|
export const ValidateOutputSchema = z.object({
|
|
15
22
|
ok: z.boolean(),
|
|
16
23
|
diagnostics: z.array(DiagnosticSchema),
|
|
24
|
+
insights: z.array(InsightSchema).optional(),
|
|
17
25
|
});
|
|
18
26
|
export const ReadOutputSchema = z.object({
|
|
19
27
|
path: z.string(),
|
|
@@ -41,6 +49,7 @@ export const RenderOutputSchema = z.object({
|
|
|
41
49
|
path: z.string().optional(),
|
|
42
50
|
bytes: z.number().optional(),
|
|
43
51
|
shareUrl: z.string().optional(),
|
|
52
|
+
insights: z.array(InsightSchema).optional(),
|
|
44
53
|
});
|
|
45
54
|
export const ExportOutputSchema = z.object({
|
|
46
55
|
format: z.string(),
|
|
@@ -62,4 +71,18 @@ export const CapabilitiesOutputSchema = z.object({
|
|
|
62
71
|
export const ListItemsOutputSchema = z.object({
|
|
63
72
|
items: z.array(z.string()),
|
|
64
73
|
});
|
|
74
|
+
export const ReferenceOutputSchema = z.object({
|
|
75
|
+
format: z.enum(['condensed', 'full']),
|
|
76
|
+
text: z.string(),
|
|
77
|
+
});
|
|
78
|
+
export const ExamplesOutputSchema = z.object({
|
|
79
|
+
names: z.array(z.string()).optional(),
|
|
80
|
+
name: z.string().optional(),
|
|
81
|
+
source: z.string().optional(),
|
|
82
|
+
});
|
|
83
|
+
export const SchemaOutputSchema = z.object({
|
|
84
|
+
directiveKeys: z.array(z.string()),
|
|
85
|
+
entityTypes: z.array(z.string()),
|
|
86
|
+
itemPropertyKeys: z.array(z.string()),
|
|
87
|
+
});
|
|
65
88
|
//# sourceMappingURL=schemas.js.map
|
package/dist/schemas.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,wEAAwE;AAExE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,+EAA+E;AAE/E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"sch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I,CAAC,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IACrC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACrC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAClC,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAChC,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACxC,CAAC,CAAC"}
|
package/dist/server.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
+
/** Versioned URI doubles as a cache key — bump suffix on bundle changes. */
|
|
3
|
+
export declare const PREVIEW_UI_URI = "ui://nowline/preview-v1";
|
|
2
4
|
export interface McpServerOptions {
|
|
3
5
|
/** Working directory — all file paths are resolved relative to this root. Defaults to process.cwd(). */
|
|
4
6
|
allowedRoot?: string;
|
package/dist/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AA6DpE,4EAA4E;AAC5E,eAAO,MAAM,cAAc,4BAA4B,CAAC;AAoHxD,MAAM,WAAW,gBAAgB;IAC7B,wGAAwG;IACxG,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kEAAkE;IAClE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mDAAmD;IACnD,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,eAAe,CAAC,IAAI,GAAE,gBAAqB,GAAG,SAAS,CAo4BtE"}
|