@classic-homes/theme-mcp 0.2.3 → 0.3.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/cli.js +207 -17
- package/dist/cli.js.map +1 -1
- package/dist/index.js +207 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { ResourceTemplate } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
|
6
6
|
|
|
7
7
|
// src/data/component-catalog.json
|
|
8
8
|
var component_catalog_default = {
|
|
9
|
-
version: "0.
|
|
9
|
+
version: "0.3.1",
|
|
10
10
|
components: [
|
|
11
11
|
{
|
|
12
12
|
name: "ActionHeader",
|
|
@@ -201,6 +201,56 @@ var component_catalog_default = {
|
|
|
201
201
|
],
|
|
202
202
|
relatedComponents: []
|
|
203
203
|
},
|
|
204
|
+
{
|
|
205
|
+
name: "ActiveFilterChips",
|
|
206
|
+
description: "Row of removable chips naming each filter that narrows a list, with Clear all",
|
|
207
|
+
category: "core",
|
|
208
|
+
importPath: "@classic-homes/theme-svelte",
|
|
209
|
+
props: [
|
|
210
|
+
{
|
|
211
|
+
name: "chips",
|
|
212
|
+
type: "ActiveFilterChip[]",
|
|
213
|
+
required: false,
|
|
214
|
+
description: "`{ key, label, onRemove }` per active filter"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
name: "onClearAll",
|
|
218
|
+
type: "() => void",
|
|
219
|
+
required: false,
|
|
220
|
+
description: 'Shows a trailing "Clear all" button when set'
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
name: "children",
|
|
224
|
+
type: "Snippet",
|
|
225
|
+
required: false,
|
|
226
|
+
description: "Extra notes after the chips"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
name: "class",
|
|
230
|
+
type: "string",
|
|
231
|
+
required: false,
|
|
232
|
+
description: "Additional classes"
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
variants: [],
|
|
236
|
+
slots: [
|
|
237
|
+
{
|
|
238
|
+
name: "children",
|
|
239
|
+
description: "Main content",
|
|
240
|
+
required: false
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
events: [],
|
|
244
|
+
examples: [
|
|
245
|
+
{
|
|
246
|
+
title: "Basic Usage",
|
|
247
|
+
code: "<ActiveFilterChips\n chips={[{ key: 'status', label: 'Status: Installed', onRemove: () => (status = '') }]}\n onClearAll={clearFilters}\n/>"
|
|
248
|
+
}
|
|
249
|
+
],
|
|
250
|
+
relatedComponents: [
|
|
251
|
+
"FilterToolbar"
|
|
252
|
+
]
|
|
253
|
+
},
|
|
204
254
|
{
|
|
205
255
|
name: "Alert",
|
|
206
256
|
description: "Contextual feedback messages for user actions and system status",
|
|
@@ -5399,6 +5449,146 @@ var component_catalog_default = {
|
|
|
5399
5449
|
"Button"
|
|
5400
5450
|
]
|
|
5401
5451
|
},
|
|
5452
|
+
{
|
|
5453
|
+
name: "FilterToolbar",
|
|
5454
|
+
description: "Toolbar that folds filter controls behind a Filters button once more than three controls would sit inline",
|
|
5455
|
+
category: "layout",
|
|
5456
|
+
importPath: "@classic-homes/theme-svelte",
|
|
5457
|
+
props: [
|
|
5458
|
+
{
|
|
5459
|
+
name: "label",
|
|
5460
|
+
type: "string",
|
|
5461
|
+
required: false,
|
|
5462
|
+
description: "Accessible name of the strip (required)"
|
|
5463
|
+
},
|
|
5464
|
+
{
|
|
5465
|
+
name: "search",
|
|
5466
|
+
type: "Snippet",
|
|
5467
|
+
required: false,
|
|
5468
|
+
description: "Search field; always inline"
|
|
5469
|
+
},
|
|
5470
|
+
{
|
|
5471
|
+
name: "filters",
|
|
5472
|
+
type: "Snippet<[{ inline: boolean }]>",
|
|
5473
|
+
required: false,
|
|
5474
|
+
description: "Filter controls; `inline` is false inside the panel/dialog"
|
|
5475
|
+
},
|
|
5476
|
+
{
|
|
5477
|
+
name: "filterCount",
|
|
5478
|
+
type: "number",
|
|
5479
|
+
required: false,
|
|
5480
|
+
description: "Controls rendered by `filters` (drives the collapse rule)"
|
|
5481
|
+
},
|
|
5482
|
+
{
|
|
5483
|
+
name: "activeCount",
|
|
5484
|
+
type: "number",
|
|
5485
|
+
default: "0",
|
|
5486
|
+
required: false,
|
|
5487
|
+
description: "Active filters, shown as a badge on the button"
|
|
5488
|
+
},
|
|
5489
|
+
{
|
|
5490
|
+
name: "summary",
|
|
5491
|
+
type: "Snippet",
|
|
5492
|
+
required: false,
|
|
5493
|
+
description: "Result count after the filters / button"
|
|
5494
|
+
},
|
|
5495
|
+
{
|
|
5496
|
+
name: "end",
|
|
5497
|
+
type: "Snippet",
|
|
5498
|
+
required: false,
|
|
5499
|
+
description: "Right-aligned cluster"
|
|
5500
|
+
},
|
|
5501
|
+
{
|
|
5502
|
+
name: "onClear",
|
|
5503
|
+
type: "() => void",
|
|
5504
|
+
required: false,
|
|
5505
|
+
description: 'Resets every filter ("Clear all")'
|
|
5506
|
+
},
|
|
5507
|
+
{
|
|
5508
|
+
name: "maxInline",
|
|
5509
|
+
type: "number",
|
|
5510
|
+
default: "3",
|
|
5511
|
+
required: false,
|
|
5512
|
+
description: "Most left-side controls (search included) allowed inline"
|
|
5513
|
+
},
|
|
5514
|
+
{
|
|
5515
|
+
name: "open",
|
|
5516
|
+
type: "boolean",
|
|
5517
|
+
default: "false",
|
|
5518
|
+
required: false,
|
|
5519
|
+
description: "Panel/dialog open state (bindable)"
|
|
5520
|
+
},
|
|
5521
|
+
{
|
|
5522
|
+
name: "mobileQuery",
|
|
5523
|
+
type: "string",
|
|
5524
|
+
default: "'(max-width: 1023px)'",
|
|
5525
|
+
required: false,
|
|
5526
|
+
description: "Below this viewport filters always collapse into a dialog"
|
|
5527
|
+
},
|
|
5528
|
+
{
|
|
5529
|
+
name: "class",
|
|
5530
|
+
type: "string",
|
|
5531
|
+
required: false,
|
|
5532
|
+
description: "Additional classes on the wrapper"
|
|
5533
|
+
}
|
|
5534
|
+
],
|
|
5535
|
+
variants: [],
|
|
5536
|
+
slots: [
|
|
5537
|
+
{
|
|
5538
|
+
name: "children",
|
|
5539
|
+
description: "Main content",
|
|
5540
|
+
required: false
|
|
5541
|
+
}
|
|
5542
|
+
],
|
|
5543
|
+
events: [],
|
|
5544
|
+
examples: [
|
|
5545
|
+
{
|
|
5546
|
+
title: "Basic Usage",
|
|
5547
|
+
code: `<script>
|
|
5548
|
+
import {
|
|
5549
|
+
FilterToolbar,
|
|
5550
|
+
ActiveFilterChips,
|
|
5551
|
+
Input,
|
|
5552
|
+
Label,
|
|
5553
|
+
Select,
|
|
5554
|
+
} from '@classic-homes/theme-svelte';
|
|
5555
|
+
|
|
5556
|
+
let search = $state('');
|
|
5557
|
+
let status = $state('');
|
|
5558
|
+
let type = $state('');
|
|
5559
|
+
let supplier = $state('');
|
|
5560
|
+
|
|
5561
|
+
const activeCount = $derived([status, type, supplier].filter(Boolean).length);
|
|
5562
|
+
const clear = () => (status = type = supplier = '');
|
|
5563
|
+
</script>
|
|
5564
|
+
|
|
5565
|
+
<FilterToolbar label="Sign tools" filterCount={3} {activeCount} onClear={clear}>
|
|
5566
|
+
{#snippet search()}
|
|
5567
|
+
<Input type="search" aria-label="Search signs" class="w-full sm:w-56" bind:value={search} />
|
|
5568
|
+
{/snippet}
|
|
5569
|
+
{#snippet filters({ inline })}
|
|
5570
|
+
<div class="space-y-1">
|
|
5571
|
+
<Label for="status" class={inline ? 'sr-only' : ''}>Status</Label>
|
|
5572
|
+
<Select id="status" options={statusOptions} bind:value={status} />
|
|
5573
|
+
</div>
|
|
5574
|
+
<!-- \u2026type, supplier -->
|
|
5575
|
+
{/snippet}
|
|
5576
|
+
{#snippet summary()}<span class="text-sm">42 signs</span>{/snippet}
|
|
5577
|
+
</FilterToolbar>
|
|
5578
|
+
|
|
5579
|
+
<ActiveFilterChips
|
|
5580
|
+
chips={status
|
|
5581
|
+
? [{ key: 'status', label: \`Status: \${status}\`, onRemove: () => (status = '') }]
|
|
5582
|
+
: []}
|
|
5583
|
+
onClearAll={clear}
|
|
5584
|
+
/>`
|
|
5585
|
+
}
|
|
5586
|
+
],
|
|
5587
|
+
relatedComponents: [
|
|
5588
|
+
"Toolbar",
|
|
5589
|
+
"ActionHeader"
|
|
5590
|
+
]
|
|
5591
|
+
},
|
|
5402
5592
|
{
|
|
5403
5593
|
name: "Footer",
|
|
5404
5594
|
description: "Site footer with link sections and branding",
|
|
@@ -14153,7 +14343,7 @@ function registerComponentResources(server) {
|
|
|
14153
14343
|
|
|
14154
14344
|
// src/data/token-definitions.json
|
|
14155
14345
|
var token_definitions_default = {
|
|
14156
|
-
version: "0.
|
|
14346
|
+
version: "0.3.1",
|
|
14157
14347
|
colors: {
|
|
14158
14348
|
brand: [
|
|
14159
14349
|
{
|
|
@@ -15136,7 +15326,7 @@ function registerTokenResources(server) {
|
|
|
15136
15326
|
|
|
15137
15327
|
// src/data/styles-catalog.json
|
|
15138
15328
|
var styles_catalog_default = {
|
|
15139
|
-
version: "0.
|
|
15329
|
+
version: "0.3.1",
|
|
15140
15330
|
package: "@classic-homes/theme-styles",
|
|
15141
15331
|
description: "Base CSS styles, accessibility features, and utility classes for the Classic Theme design system",
|
|
15142
15332
|
integration: {
|
|
@@ -15509,7 +15699,7 @@ import { ResourceTemplate as ResourceTemplate2 } from "@modelcontextprotocol/sdk
|
|
|
15509
15699
|
|
|
15510
15700
|
// src/data/pattern-library.json
|
|
15511
15701
|
var pattern_library_default = {
|
|
15512
|
-
version: "0.
|
|
15702
|
+
version: "0.3.1",
|
|
15513
15703
|
layouts: [
|
|
15514
15704
|
{
|
|
15515
15705
|
id: "dashboard-page",
|
|
@@ -16603,7 +16793,7 @@ function registerLayoutResources(server) {
|
|
|
16603
16793
|
|
|
16604
16794
|
// src/data/schema-catalog.json
|
|
16605
16795
|
var schema_catalog_default = {
|
|
16606
|
-
version: "0.
|
|
16796
|
+
version: "0.3.1",
|
|
16607
16797
|
packageName: "@classic-homes/theme-svelte",
|
|
16608
16798
|
importPath: "@classic-homes/theme-svelte",
|
|
16609
16799
|
generatedFrom: "packages/svelte/src/lib/schemas/index.ts",
|
|
@@ -17411,7 +17601,7 @@ import { ResourceTemplate as ResourceTemplate3 } from "@modelcontextprotocol/sdk
|
|
|
17411
17601
|
|
|
17412
17602
|
// src/data/auth-catalog.json
|
|
17413
17603
|
var auth_catalog_default = {
|
|
17414
|
-
version: "0.
|
|
17604
|
+
version: "0.3.1",
|
|
17415
17605
|
packageName: "@classic-homes/auth",
|
|
17416
17606
|
description: "Authentication services and Svelte bindings for Classic Theme apps",
|
|
17417
17607
|
subpackages: {
|
|
@@ -17985,12 +18175,12 @@ var auth_catalog_default = {
|
|
|
17985
18175
|
{
|
|
17986
18176
|
name: "ROLE_NAMES",
|
|
17987
18177
|
type: "readonly RoleName[]",
|
|
17988
|
-
description: "Every role name, ordered most to least privileged: admin, manager, agent, builder, customer_service, demo, stormwater, accounting_staff, architecture_staff, construction_staff, crl_staff, design_staff, hr_staff, it_staff, landdev_staff, marketing_staff, purchasing_staff, sales_staff, warranty_staff, employee, user, vendor, customer, subcontractor, guest. Order is load-bearing - computePrimaryRole takes the first match."
|
|
18178
|
+
description: "Every role name, ordered most to least privileged: admin, manager, agent, builder, customer_service, demo, stormwater, accounting_staff, architecture_staff, construction_staff, crl_staff, design_staff, hr_staff, it_staff, landdev_staff, marketing_staff, purchasing_staff, sales_staff, stormwater_staff, warranty_staff, hotsheet_editor, employee, user, vendor, customer, subcontractor, guest. Order is load-bearing - computePrimaryRole takes the first match."
|
|
17989
18179
|
},
|
|
17990
18180
|
{
|
|
17991
18181
|
name: "ROLE_HIERARCHY",
|
|
17992
18182
|
type: "Record<string, number>",
|
|
17993
|
-
description: "Privilege level per role: guest 0; user/vendor/customer/subcontractor 1; employee/agent/builder/customer_service/demo/stormwater
|
|
18183
|
+
description: "Privilege level per role: guest 0; user/vendor/customer/subcontractor 1; employee/agent/builder/customer_service/demo/stormwater, every <department>_staff and hotsheet_editor 2; manager 3; admin 4."
|
|
17994
18184
|
}
|
|
17995
18185
|
],
|
|
17996
18186
|
types: [
|
|
@@ -20448,7 +20638,7 @@ import { ResourceTemplate as ResourceTemplate4 } from "@modelcontextprotocol/sdk
|
|
|
20448
20638
|
|
|
20449
20639
|
// src/data/notifications-catalog.json
|
|
20450
20640
|
var notifications_catalog_default = {
|
|
20451
|
-
version: "0.
|
|
20641
|
+
version: "0.3.1",
|
|
20452
20642
|
packageName: "@classic-homes/notifications",
|
|
20453
20643
|
description: "Notification services and Svelte bindings for Classic Theme apps",
|
|
20454
20644
|
subpackages: {
|
|
@@ -21360,7 +21550,7 @@ function registerNotificationsResources(server) {
|
|
|
21360
21550
|
|
|
21361
21551
|
// src/data/docs-catalog.json
|
|
21362
21552
|
var docs_catalog_default = {
|
|
21363
|
-
version: "0.
|
|
21553
|
+
version: "0.3.1",
|
|
21364
21554
|
packageName: "@classic-homes/theme-docs",
|
|
21365
21555
|
description: "Markdown documentation components for the Classic theme system",
|
|
21366
21556
|
exports: {
|
|
@@ -22288,7 +22478,7 @@ function registerDocsResources(server) {
|
|
|
22288
22478
|
|
|
22289
22479
|
// src/data/charts-catalog.json
|
|
22290
22480
|
var charts_catalog_default = {
|
|
22291
|
-
version: "0.
|
|
22481
|
+
version: "0.3.1",
|
|
22292
22482
|
packageName: "@classic-homes/charts-core",
|
|
22293
22483
|
description: "Core utilities, types, and themes for Classic Theme chart components",
|
|
22294
22484
|
subpackages: {
|
|
@@ -24125,7 +24315,7 @@ interface SankeyData {
|
|
|
24125
24315
|
|
|
24126
24316
|
// src/data/maps-catalog.json
|
|
24127
24317
|
var maps_catalog_default = {
|
|
24128
|
-
version: "0.
|
|
24318
|
+
version: "0.3.1",
|
|
24129
24319
|
packageName: "@classic-homes/maps-core",
|
|
24130
24320
|
description: "Core utilities, types, and themes for Classic Theme MapLibre GL components",
|
|
24131
24321
|
subpackages: {
|
|
@@ -25087,7 +25277,7 @@ var maps_catalog_default = {
|
|
|
25087
25277
|
example: "import { optimizeOrder } from '@classic-homes/maps-core/route';\n\nconst { order, legMiles, totalMiles } = optimizeOrder(userLocation, stops);\nconst visitOrder = order.map((i) => stops[i]);"
|
|
25088
25278
|
},
|
|
25089
25279
|
mapsLinks: {
|
|
25090
|
-
description: "Deep links into Google Maps and Apple Maps. Google renders at most 9 intermediate waypoints;
|
|
25280
|
+
description: "Deep links into Google Maps and Apple Maps. Google renders at most 9 intermediate waypoints; Apple's unified /directions URL takes repeated waypoints (iOS 18.4+).",
|
|
25091
25281
|
functions: [
|
|
25092
25282
|
{
|
|
25093
25283
|
name: "googleDirectionsUrl",
|
|
@@ -25102,7 +25292,7 @@ var maps_catalog_default = {
|
|
|
25102
25292
|
{
|
|
25103
25293
|
name: "appleDirectionsUrl",
|
|
25104
25294
|
signature: "(stops: DirectionsTarget[], origin?: DirectionsTarget | null, dirflg?: 'd' | 'w' | 'r') => string",
|
|
25105
|
-
description: "Apple Maps URL.
|
|
25295
|
+
description: "Apple Maps directions URL. One stop: legacy saddr/daddr form. Several: unified /directions URL (iOS 18.4 / macOS 15.4+) with the last stop as destination and the rest as repeated waypoints. Returns '' when no target is usable."
|
|
25106
25296
|
},
|
|
25107
25297
|
{
|
|
25108
25298
|
name: "googleSearchUrl",
|
|
@@ -25130,7 +25320,7 @@ var maps_catalog_default = {
|
|
|
25130
25320
|
description: "Targets per leg, counting the destination (10)"
|
|
25131
25321
|
}
|
|
25132
25322
|
],
|
|
25133
|
-
example: "import { googleDirectionsUrl, appleDirectionsUrl } from '@classic-homes/maps-core/route';\n\nconst google = googleDirectionsUrl(stops, userLocation, 'driving');\nconst apple = appleDirectionsUrl(stops, userLocation); //
|
|
25323
|
+
example: "import { googleDirectionsUrl, appleDirectionsUrl } from '@classic-homes/maps-core/route';\n\nconst google = googleDirectionsUrl(stops, userLocation, 'driving');\nconst apple = appleDirectionsUrl(stops, userLocation); // whole route on iOS 18.4+"
|
|
25134
25324
|
},
|
|
25135
25325
|
coords: {
|
|
25136
25326
|
description: "LatLng is an object, deliberately NOT the LngLat tuple the rest of maps-core uses: a silently transposed tuple produces a plausible route on the wrong side of the planet. Convert at the map boundary.",
|
|
@@ -29456,7 +29646,7 @@ ${catalog5.quickReference.tailwindConfig}
|
|
|
29456
29646
|
|
|
29457
29647
|
// src/data/native-catalog.json
|
|
29458
29648
|
var native_catalog_default = {
|
|
29459
|
-
version: "0.
|
|
29649
|
+
version: "0.3.1",
|
|
29460
29650
|
packageName: "@classic-homes/native",
|
|
29461
29651
|
description: "Native device APIs for iOS and Android mobile apps. Uses Capacitor for native functionality with web fallbacks.",
|
|
29462
29652
|
subpackages: {
|
|
@@ -31831,7 +32021,7 @@ function registerPrompts(server) {
|
|
|
31831
32021
|
// package.json
|
|
31832
32022
|
var package_default = {
|
|
31833
32023
|
name: "@classic-homes/theme-mcp",
|
|
31834
|
-
version: "0.
|
|
32024
|
+
version: "0.3.1",
|
|
31835
32025
|
description: "MCP server for Classic Theme design system - enables AI assistants to understand and correctly use components, tokens, and patterns",
|
|
31836
32026
|
type: "module",
|
|
31837
32027
|
main: "dist/index.js",
|