@dversum/mcp-server 2.9.1 → 2.11.1
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/src/client.d.ts +11 -0
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/client.js +51 -0
- package/dist/src/client.js.map +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +8 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/tools/calendar.d.ts +15 -0
- package/dist/src/tools/calendar.d.ts.map +1 -1
- package/dist/src/tools/calendar.js +27 -2
- package/dist/src/tools/calendar.js.map +1 -1
- package/dist/src/tools/clients.d.ts.map +1 -1
- package/dist/src/tools/clients.js +4 -0
- package/dist/src/tools/clients.js.map +1 -1
- package/dist/src/tools/request-bodies.spec.d.ts +2 -0
- package/dist/src/tools/request-bodies.spec.d.ts.map +1 -0
- package/dist/src/tools/request-bodies.spec.js +45 -0
- package/dist/src/tools/request-bodies.spec.js.map +1 -0
- package/dist/src/tools/time.d.ts +13 -0
- package/dist/src/tools/time.d.ts.map +1 -1
- package/dist/src/tools/time.js +27 -6
- package/dist/src/tools/time.js.map +1 -1
- package/dist/src/tools/universum.d.ts +4 -0
- package/dist/src/tools/universum.d.ts.map +1 -0
- package/dist/src/tools/universum.js +48 -0
- package/dist/src/tools/universum.js.map +1 -0
- package/dist/src/tools/whiteboard-compose.d.ts +4 -0
- package/dist/src/tools/whiteboard-compose.d.ts.map +1 -0
- package/dist/src/tools/whiteboard-compose.js +383 -0
- package/dist/src/tools/whiteboard-compose.js.map +1 -0
- package/dist/src/tools/whiteboards.d.ts.map +1 -1
- package/dist/src/tools/whiteboards.js +150 -7
- package/dist/src/tools/whiteboards.js.map +1 -1
- package/dist/src/whiteboard/elements.d.ts +171 -0
- package/dist/src/whiteboard/elements.d.ts.map +1 -0
- package/dist/src/whiteboard/elements.js +121 -0
- package/dist/src/whiteboard/elements.js.map +1 -0
- package/dist/src/whiteboard/link.d.ts +22 -0
- package/dist/src/whiteboard/link.d.ts.map +1 -0
- package/dist/src/whiteboard/link.js +56 -0
- package/dist/src/whiteboard/link.js.map +1 -0
- package/dist/src/whiteboard/measure.d.ts +26 -0
- package/dist/src/whiteboard/measure.d.ts.map +1 -0
- package/dist/src/whiteboard/measure.js +64 -0
- package/dist/src/whiteboard/measure.js.map +1 -0
- package/dist/src/whiteboard/sections.d.ts +352 -0
- package/dist/src/whiteboard/sections.d.ts.map +1 -0
- package/dist/src/whiteboard/sections.js +879 -0
- package/dist/src/whiteboard/sections.js.map +1 -0
- package/dist/src/whiteboard/sections.spec.d.ts +2 -0
- package/dist/src/whiteboard/sections.spec.d.ts.map +1 -0
- package/dist/src/whiteboard/sections.spec.js +608 -0
- package/dist/src/whiteboard/sections.spec.js.map +1 -0
- package/dist/src/whiteboard/stock.d.ts +39 -0
- package/dist/src/whiteboard/stock.d.ts.map +1 -0
- package/dist/src/whiteboard/stock.js +91 -0
- package/dist/src/whiteboard/stock.js.map +1 -0
- package/dist/src/whiteboard/stock.spec.d.ts +2 -0
- package/dist/src/whiteboard/stock.spec.d.ts.map +1 -0
- package/dist/src/whiteboard/stock.spec.js +69 -0
- package/dist/src/whiteboard/stock.spec.js.map +1 -0
- package/dist/src/whiteboard/styles.d.ts +65 -0
- package/dist/src/whiteboard/styles.d.ts.map +1 -0
- package/dist/src/whiteboard/styles.js +63 -0
- package/dist/src/whiteboard/styles.js.map +1 -0
- package/dist/src/whiteboard/tokens.d.ts +114 -0
- package/dist/src/whiteboard/tokens.d.ts.map +1 -0
- package/dist/src/whiteboard/tokens.js +105 -0
- package/dist/src/whiteboard/tokens.js.map +1 -0
- package/package.json +5 -3
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whiteboard design tokens.
|
|
3
|
+
*
|
|
4
|
+
* A board looks designed when its sizes and spacings come from a small
|
|
5
|
+
* fixed set rather than from whatever number felt right at the time. This
|
|
6
|
+
* module is the single source of that set: the editor's controls, the
|
|
7
|
+
* element defaults and the section presets all read from here, and the
|
|
8
|
+
* MCP tool descriptions quote these values so an AI composes boards with
|
|
9
|
+
* the same vocabulary a person does.
|
|
10
|
+
*
|
|
11
|
+
* Values are canvas units (1 unit = 1 CSS pixel at 100% zoom).
|
|
12
|
+
*/
|
|
13
|
+
// Every step is at least 1.4x, so no two roles can be confused at a glance.
|
|
14
|
+
// caption is deliberately small: units, axis labels and footnotes, never
|
|
15
|
+
// body copy.
|
|
16
|
+
export const TYPE_SCALE = {
|
|
17
|
+
// mega exists for the one board style built around a single statement.
|
|
18
|
+
// Reaching for it anywhere else flattens the hierarchy it depends on.
|
|
19
|
+
mega: { role: 'mega', size: 72, weight: 'bold', lineHeight: 1.05 },
|
|
20
|
+
display: { role: 'display', size: 48, weight: 'bold', lineHeight: 1.1 },
|
|
21
|
+
headline: { role: 'headline', size: 32, weight: 'bold', lineHeight: 1.2 },
|
|
22
|
+
title: { role: 'title', size: 20, weight: 'bold', lineHeight: 1.3 },
|
|
23
|
+
body: { role: 'body', size: 14, weight: 'normal', lineHeight: 1.5 },
|
|
24
|
+
caption: { role: 'caption', size: 10, weight: 'normal', lineHeight: 1.4 },
|
|
25
|
+
};
|
|
26
|
+
export const TYPE_ROLES = ['mega', 'display', 'headline', 'title', 'body', 'caption'];
|
|
27
|
+
/** Nearest role for an arbitrary size, so existing boards map onto the scale. */
|
|
28
|
+
export function typeRoleForSize(size) {
|
|
29
|
+
return TYPE_ROLES.reduce((best, role) => Math.abs(TYPE_SCALE[role].size - size) < Math.abs(TYPE_SCALE[best].size - size) ? role : best);
|
|
30
|
+
}
|
|
31
|
+
// ---- Spacing ------------------------------------------------------------
|
|
32
|
+
// A 4-unit grid. Gutters and paddings snap to these, which is most of what
|
|
33
|
+
// makes a layout feel aligned rather than nearly aligned.
|
|
34
|
+
export const SPACE = {
|
|
35
|
+
xs: 4,
|
|
36
|
+
sm: 8,
|
|
37
|
+
md: 16,
|
|
38
|
+
lg: 24,
|
|
39
|
+
xl: 40,
|
|
40
|
+
xxl: 64,
|
|
41
|
+
};
|
|
42
|
+
/** Gap between sibling cards inside one section. */
|
|
43
|
+
export const GUTTER = SPACE.lg;
|
|
44
|
+
/**
|
|
45
|
+
* Gap between one stacked section and the next.
|
|
46
|
+
*
|
|
47
|
+
* Deliberately larger than any spacing used inside a section: the reader
|
|
48
|
+
* has to feel where one idea stops and the next begins, and a gap that
|
|
49
|
+
* only matches the padding inside a card reads as a list rather than a
|
|
50
|
+
* page. Styles pick from these three rather than inventing a number.
|
|
51
|
+
*/
|
|
52
|
+
export const SECTION_GAPS = { tight: SPACE.xxl, normal: 96, airy: 128 };
|
|
53
|
+
export const SECTION_GAP = SECTION_GAPS.normal;
|
|
54
|
+
// ---- Shape --------------------------------------------------------------
|
|
55
|
+
export const RADIUS = { sm: 6, md: 12, lg: 20, pill: 9999 };
|
|
56
|
+
export const STROKE = { hairline: 1, regular: 2, strong: 3 };
|
|
57
|
+
// ---- Colour -------------------------------------------------------------
|
|
58
|
+
// Roles, not a palette: naming what a colour is FOR is what stops a board
|
|
59
|
+
// from being painted five different saturated greens.
|
|
60
|
+
export const COLOR = {
|
|
61
|
+
/** Brand accent. Reserve for the one thing that matters most. */
|
|
62
|
+
accent: '#45e59f',
|
|
63
|
+
accentStrong: '#2bc97e',
|
|
64
|
+
/** Text and outlines on light surfaces. */
|
|
65
|
+
ink: '#0c1f16',
|
|
66
|
+
inkMuted: '#5b7266',
|
|
67
|
+
/** Surfaces. */
|
|
68
|
+
surface: '#ffffff',
|
|
69
|
+
surfaceMuted: '#f6f8f6',
|
|
70
|
+
border: '#d9e2dc',
|
|
71
|
+
/** Semantic. Use only when the meaning is real. */
|
|
72
|
+
danger: '#ef4444',
|
|
73
|
+
warning: '#eab308',
|
|
74
|
+
success: '#22c55e',
|
|
75
|
+
info: '#3b82f6',
|
|
76
|
+
};
|
|
77
|
+
/** Sticky-note pastels, kept separate: they are a surface, not an accent. */
|
|
78
|
+
export const STICKY = {
|
|
79
|
+
yellow: '#fef08a',
|
|
80
|
+
pink: '#fbcfe8',
|
|
81
|
+
blue: '#bfdbfe',
|
|
82
|
+
green: '#bbf7d0',
|
|
83
|
+
purple: '#ddd6fe',
|
|
84
|
+
orange: '#fed7aa',
|
|
85
|
+
};
|
|
86
|
+
// ---- Depth --------------------------------------------------------------
|
|
87
|
+
// Two presets only. A shadow on everything is a shadow on nothing, so
|
|
88
|
+
// `focus` is meant for the one element a board is built around.
|
|
89
|
+
export const SHADOW = {
|
|
90
|
+
soft: { x: 0, y: 2, blur: 8, color: COLOR.ink, opacity: 0.1 },
|
|
91
|
+
focus: { x: 0, y: 6, blur: 18, color: COLOR.ink, opacity: 0.18 },
|
|
92
|
+
};
|
|
93
|
+
// House rule: a card is separated by fill contrast, shadow and space, never
|
|
94
|
+
// by an outline. Every surface therefore ships at strokeWidth 0. The stroke
|
|
95
|
+
// colour is still named so a caller that deliberately wants an outline has
|
|
96
|
+
// the right one to reach for.
|
|
97
|
+
export const SURFACE = {
|
|
98
|
+
card: { fill: COLOR.surface, stroke: COLOR.border, strokeWidth: 0, cornerRadius: RADIUS.md },
|
|
99
|
+
muted: { fill: COLOR.surfaceMuted, stroke: COLOR.border, strokeWidth: 0, cornerRadius: RADIUS.md },
|
|
100
|
+
accent: { fill: COLOR.accent, stroke: COLOR.accentStrong, strokeWidth: 0, cornerRadius: RADIUS.md },
|
|
101
|
+
ink: { fill: COLOR.ink, stroke: COLOR.ink, strokeWidth: 0, cornerRadius: RADIUS.md },
|
|
102
|
+
};
|
|
103
|
+
/** Padding inside a card, so text never touches its edge. */
|
|
104
|
+
export const CARD_PADDING = SPACE.lg;
|
|
105
|
+
//# sourceMappingURL=tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../src/whiteboard/tokens.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAiBH,4EAA4E;AAC5E,yEAAyE;AACzE,aAAa;AAEb,MA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E,EAAE,IAAI,EAAE,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG,EAAE,WAAW,EAAE,CAAC,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,EAAE;CACrF,CAAA;AAED,6DAA6D;AAC7D,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,CAAC,EAAE,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dversum/mcp-server",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.1",
|
|
4
4
|
"description": "Official MCP server for the dVersum business management platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "tsc",
|
|
12
12
|
"dev": "tsc --watch",
|
|
13
|
-
"start": "node dist/bin/dversum-mcp.js"
|
|
13
|
+
"start": "node dist/bin/dversum-mcp.js",
|
|
14
|
+
"test": "vitest run"
|
|
14
15
|
},
|
|
15
16
|
"repository": {
|
|
16
17
|
"type": "git",
|
|
@@ -26,8 +27,9 @@
|
|
|
26
27
|
"zod": "^3.24.0"
|
|
27
28
|
},
|
|
28
29
|
"devDependencies": {
|
|
30
|
+
"@types/node": "^22.0.0",
|
|
29
31
|
"typescript": "^5.7.0",
|
|
30
|
-
"
|
|
32
|
+
"vitest": "^3.2.7"
|
|
31
33
|
},
|
|
32
34
|
"files": [
|
|
33
35
|
"dist"
|