m3ui-mcp 0.3.0 → 0.4.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/README.md +22 -3
- package/THIRD_PARTY_NOTICES.md +3 -3
- package/data/components.json +5716 -3529
- package/data/examples.json +307 -207
- package/data/guidelines.json +202 -202
- package/data/icons.json +2224 -2224
- package/data/locale.json +367 -5
- package/data/manifest.json +26 -26
- package/data/nuxt.json +93 -93
- package/data/recipes.json +437 -338
- package/data/search-index.json +577 -0
- package/data/specs.json +89 -89
- package/data/types.json +168 -1
- package/data/values.json +2442 -1587
- package/dist/categories.js +1 -0
- package/dist/dynamic-slots.js +2 -2
- package/dist/tools/check-template.js +7 -1
- package/package.json +5 -3
package/dist/categories.js
CHANGED
|
@@ -18,6 +18,7 @@ export const CATEGORIES = [
|
|
|
18
18
|
{ id: 'gantt', label: 'Gantt' },
|
|
19
19
|
{ id: 'draw', label: 'Drawing' },
|
|
20
20
|
{ id: 'floorplan', label: 'Floor plan' },
|
|
21
|
+
{ id: 'games', label: 'Games' },
|
|
21
22
|
{ id: 'undocumented', label: 'Undocumented' },
|
|
22
23
|
];
|
|
23
24
|
export function categoryOrder(id) {
|
package/dist/dynamic-slots.js
CHANGED
|
@@ -10,8 +10,8 @@ const cell = (bindings) => ({
|
|
|
10
10
|
description: 'One slot per column: `#cell-<column key>` replaces the cells of that column (e.g. `#cell-status`).',
|
|
11
11
|
});
|
|
12
12
|
export const DYNAMIC_SLOTS = {
|
|
13
|
-
MDataTable: [cell('{ row, value, col }')], // source: pkg:src/components/MDataTable.vue:
|
|
14
|
-
MTable: [cell('{ row, value, col }')], // source: pkg:src/components/MTable.vue:
|
|
13
|
+
MDataTable: [cell('{ row, value, col }')], // source: pkg:src/components/MDataTable.vue:607
|
|
14
|
+
MTable: [cell('{ row, value, col }')], // source: pkg:src/components/MTable.vue:434
|
|
15
15
|
MTreeTable: [cell('{ row, value, depth }')], // source: pkg:src/components/MTreeTable.vue:158,163
|
|
16
16
|
MVirtualTable: [cell('{ row, value }')], // source: pkg:src/components/MVirtualTable.vue:149
|
|
17
17
|
MGantt: [cell('{ task, value }')], // source: pkg:src/components/MGantt.vue:1429
|
|
@@ -214,9 +214,15 @@ export function checkTemplate(code, ctx, target = 'auto') {
|
|
|
214
214
|
componentByTag.set(name, component);
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
+
// Components imported from another package or a local file (`@m3ui-vue/electron`'s MTitleBar, './MStat.vue') are
|
|
218
|
+
// not the library's: an M-prefixed name among them is not an unknown library component
|
|
219
|
+
const foreign = new Set();
|
|
217
220
|
for (const imp of imports) {
|
|
218
221
|
for (const n of imp.names)
|
|
219
222
|
imported.set(n, imp.from);
|
|
223
|
+
if (!imp.from.startsWith(MAIN_ENTRY))
|
|
224
|
+
for (const n of [...imp.names, ...(imp.defaultName ? [imp.defaultName] : [])])
|
|
225
|
+
foreign.add(n);
|
|
220
226
|
if (imp.defaultName && imp.from.startsWith(MAIN_ENTRY) && !/[?#]/.test(imp.from)) {
|
|
221
227
|
run.issues.push({
|
|
222
228
|
severity: 'error',
|
|
@@ -246,7 +252,7 @@ export function checkTemplate(code, ctx, target = 'auto') {
|
|
|
246
252
|
const tag = tagToPascal(el.tag);
|
|
247
253
|
const c = componentByTag.get(tag) ?? (/^M[A-Z]/.test(tag) ? map.get(tag) : undefined);
|
|
248
254
|
if (!c) {
|
|
249
|
-
if (!/^M[A-Z]/.test(tag))
|
|
255
|
+
if (!/^M[A-Z]/.test(tag) || foreign.has(tag))
|
|
250
256
|
continue;
|
|
251
257
|
const near = closest(tag, map.keys(), 3);
|
|
252
258
|
const hit = ctx.engine.search(tag, { kind: 'component', limit: 3 }).map(h => h.name);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "m3ui-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Local stdio MCP server with a curated, verified knowledge base for @m3ui-vue/m3ui-vue (Vue 3), @m3ui-vue/nuxt, and Material Design 3 / M3 Expressive",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,6 +35,8 @@
|
|
|
35
35
|
"dev": "node src/server.ts",
|
|
36
36
|
"fetch-sources": "node scripts/fetch-sources.ts",
|
|
37
37
|
"fetch-sources:update": "node scripts/fetch-sources.ts --update",
|
|
38
|
+
"setup": "node scripts/fetch-sources.ts && npm run verify",
|
|
39
|
+
"release-assets": "node scripts/release-assets.ts",
|
|
38
40
|
"update": "node scripts/update.ts",
|
|
39
41
|
"build-index": "node scripts/build-index.ts",
|
|
40
42
|
"check-coverage": "node scripts/check-coverage.ts",
|
|
@@ -56,8 +58,8 @@
|
|
|
56
58
|
},
|
|
57
59
|
"devDependencies": {
|
|
58
60
|
"@eslint/js": "10.0.1",
|
|
59
|
-
"@m3ui-vue/m3ui-vue": "^1.
|
|
60
|
-
"@m3ui-vue/nuxt": "0.8.
|
|
61
|
+
"@m3ui-vue/m3ui-vue": "^1.13.0",
|
|
62
|
+
"@m3ui-vue/nuxt": "^0.8.2",
|
|
61
63
|
"@types/node": "24.19.4",
|
|
62
64
|
"@vitest/coverage-v8": "^5.1.2",
|
|
63
65
|
"eslint": "10.16.0",
|