@classic-homes/theme-mcp 0.5.9 → 0.5.11

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.
@@ -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.5.9",
9
+ version: "0.5.11",
10
10
  components: [
11
11
  {
12
12
  name: "AccessInspector",
@@ -3049,6 +3049,20 @@ var component_catalog_default = {
3049
3049
  required: false,
3050
3050
  description: "Hide the toolbar"
3051
3051
  },
3052
+ {
3053
+ name: "hideTitle",
3054
+ type: "boolean",
3055
+ default: "false",
3056
+ required: false,
3057
+ description: "Leave the file name out of the toolbar"
3058
+ },
3059
+ {
3060
+ name: "allowDownload",
3061
+ type: "boolean",
3062
+ default: "true",
3063
+ required: false,
3064
+ description: "Offer Download in the toolbar and error state"
3065
+ },
3052
3066
  {
3053
3067
  name: "onready",
3054
3068
  type: "() => void",
@@ -8000,7 +8014,7 @@ var component_catalog_default = {
8000
8014
  type: "boolean",
8001
8015
  default: "true",
8002
8016
  required: false,
8003
- description: 'Offer "Download file" when a file cannot be shown'
8017
+ description: "Offer Download in the toolbar and when a file cannot be shown"
8004
8018
  },
8005
8019
  {
8006
8020
  name: "hideToolbar",
@@ -8009,6 +8023,20 @@ var component_catalog_default = {
8009
8023
  required: false,
8010
8024
  description: "Hide the viewer toolbar"
8011
8025
  },
8026
+ {
8027
+ name: "hideTitle",
8028
+ type: "boolean",
8029
+ default: "false",
8030
+ required: false,
8031
+ description: "Leave the file name out of the toolbar (the host shows it)"
8032
+ },
8033
+ {
8034
+ name: "frame",
8035
+ type: "boolean",
8036
+ default: "true",
8037
+ required: false,
8038
+ description: "Draw the rounded border; `false` when the host already frames the viewer"
8039
+ },
8012
8040
  {
8013
8041
  name: "onload",
8014
8042
  type: "(info: DocumentLoadInfo) => void",
@@ -8093,6 +8121,20 @@ var component_catalog_default = {
8093
8121
  required: false,
8094
8122
  description: "Hide the toolbar"
8095
8123
  },
8124
+ {
8125
+ name: "hideTitle",
8126
+ type: "boolean",
8127
+ default: "false",
8128
+ required: false,
8129
+ description: "Leave the file name out of the toolbar"
8130
+ },
8131
+ {
8132
+ name: "allowDownload",
8133
+ type: "boolean",
8134
+ default: "true",
8135
+ required: false,
8136
+ description: "Offer Download in the toolbar and error state"
8137
+ },
8096
8138
  {
8097
8139
  name: "onready",
8098
8140
  type: "() => void",
@@ -9025,6 +9067,20 @@ var component_catalog_default = {
9025
9067
  required: false,
9026
9068
  description: "Hide the toolbar"
9027
9069
  },
9070
+ {
9071
+ name: "hideTitle",
9072
+ type: "boolean",
9073
+ default: "false",
9074
+ required: false,
9075
+ description: "Leave the file name out of the toolbar"
9076
+ },
9077
+ {
9078
+ name: "allowDownload",
9079
+ type: "boolean",
9080
+ default: "true",
9081
+ required: false,
9082
+ description: "Offer Download in the toolbar and error state"
9083
+ },
9028
9084
  {
9029
9085
  name: "onready",
9030
9086
  type: "() => void",
@@ -9461,6 +9517,12 @@ var component_catalog_default = {
9461
9517
  required: true,
9462
9518
  description: "Label of the root crumb"
9463
9519
  },
9520
+ {
9521
+ name: "rootTitle",
9522
+ type: "string",
9523
+ required: false,
9524
+ description: "Tooltip on the root crumb, e.g. the drive's description"
9525
+ },
9464
9526
  {
9465
9527
  name: "path",
9466
9528
  type: "string",
@@ -9529,7 +9591,7 @@ var component_catalog_default = {
9529
9591
  name: "rootId",
9530
9592
  type: "string",
9531
9593
  required: false,
9532
- description: "Current root (bindable). Defaults to the first root the caller can read"
9594
+ description: "Current root (bindable). Defaults to the first root the caller can read, keeping `path` and `file`; an unknown root starts at its top"
9533
9595
  },
9534
9596
  {
9535
9597
  name: "path",
@@ -9552,9 +9614,35 @@ var component_catalog_default = {
9552
9614
  },
9553
9615
  {
9554
9616
  name: "onnavigate",
9555
- type: "(location: { rootId: string; path: string }) => void",
9617
+ type: "(location: { rootId: string; path: string; file?: string }) => void",
9618
+ required: false,
9619
+ description: "The drive and/or folder changed, in one call. Use it for URL sync. In pane mode also when a file opens, changes or closes (`file`)"
9620
+ },
9621
+ {
9622
+ name: "preview",
9623
+ type: "'dialog' | 'pane'",
9624
+ default: "'dialog'",
9556
9625
  required: false,
9557
- description: "The drive and/or folder changed, in one call. Use it for URL sync"
9626
+ description: "Open files in a modal dialog, or in place of the list with the folder tree beside them, focused on the open folder's branch"
9627
+ },
9628
+ {
9629
+ name: "file",
9630
+ type: "string",
9631
+ required: false,
9632
+ description: "Name of the open file in the current folder (bindable). Setting it opens the file; `undefined` closes it; one that doesn't resolve is cleared"
9633
+ },
9634
+ {
9635
+ name: "onfilechange",
9636
+ type: "(file: string | undefined) => void",
9637
+ required: false,
9638
+ description: "The user opened, switched or closed a file"
9639
+ },
9640
+ {
9641
+ name: "frame",
9642
+ type: "boolean",
9643
+ default: "true",
9644
+ required: false,
9645
+ description: "Rounded border; `false` for an edge-to-edge layout"
9558
9646
  },
9559
9647
  {
9560
9648
  name: "viewers",
@@ -9668,7 +9756,16 @@ var component_catalog_default = {
9668
9756
  description: "Classes for the outer element; give it a height"
9669
9757
  }
9670
9758
  ],
9671
- variants: [],
9759
+ variants: [
9760
+ {
9761
+ name: "preview",
9762
+ values: [
9763
+ "dialog",
9764
+ "pane"
9765
+ ],
9766
+ default: "dialog"
9767
+ }
9768
+ ],
9672
9769
  slots: [],
9673
9770
  events: [],
9674
9771
  examples: [
@@ -10023,6 +10120,19 @@ var component_catalog_default = {
10023
10120
  required: false,
10024
10121
  description: "Explanation read out for links (default: the shortcut message)"
10025
10122
  },
10123
+ {
10124
+ name: "compact",
10125
+ type: "boolean",
10126
+ default: "false",
10127
+ required: false,
10128
+ description: "Name column only: no header row, size/date columns or row actions; tighter rows"
10129
+ },
10130
+ {
10131
+ name: "current",
10132
+ type: "string",
10133
+ required: false,
10134
+ description: "Path of the open file: `aria-current`, highlighted, kept in view"
10135
+ },
10026
10136
  {
10027
10137
  name: "class",
10028
10138
  type: "string",
@@ -10131,6 +10241,30 @@ var component_catalog_default = {
10131
10241
  required: false,
10132
10242
  description: "The file couldn't be loaded for preview (a 401 included)"
10133
10243
  },
10244
+ {
10245
+ name: "onclose",
10246
+ type: "() => void",
10247
+ required: false,
10248
+ description: "Show a trailing Close button that calls it; the preview becomes a region named after the file"
10249
+ },
10250
+ {
10251
+ name: "onprev",
10252
+ type: "() => void",
10253
+ required: false,
10254
+ description: "Previous file. The buttons show when `onprev` or `onnext` is set; a missing one is disabled"
10255
+ },
10256
+ {
10257
+ name: "onnext",
10258
+ type: "() => void",
10259
+ required: false,
10260
+ description: "Next file"
10261
+ },
10262
+ {
10263
+ name: "start",
10264
+ type: "Snippet",
10265
+ required: false,
10266
+ description: "Extra controls at the start of the header, before the name"
10267
+ },
10134
10268
  {
10135
10269
  name: "class",
10136
10270
  type: "string",
@@ -16852,6 +16986,91 @@ var component_catalog_default = {
16852
16986
  "FormField"
16853
16987
  ]
16854
16988
  },
16989
+ {
16990
+ name: "PageAgentLayer",
16991
+ description: "Lets the in-app AI agent point at things on the page with an outline, a spotlight or a ghost cursor, scroll them into view, switch a tab or go to another page, through one schema-validated executor",
16992
+ category: "overlay",
16993
+ importPath: "@classic-homes/page-agent-svelte",
16994
+ props: [
16995
+ {
16996
+ name: "navigate",
16997
+ type: "NavigateHandler",
16998
+ required: false,
16999
+ description: "Router hook for the `navigate` tool, e.g. `(path) => goto(path)`. Without it, `navigate` is refused"
17000
+ },
17001
+ {
17002
+ name: "aliasAttributes",
17003
+ type: "string[]",
17004
+ required: false,
17005
+ description: "Extra id attributes scanned as targets, e.g. `['data-tour']`. Each must match `data-[a-z0-9-]+`"
17006
+ },
17007
+ {
17008
+ name: "ignoreSelector",
17009
+ type: "string",
17010
+ required: false,
17011
+ description: "CSS selector (yours, never the model's) for regions the agent must never see, beside `[data-agent-ignore]`"
17012
+ },
17013
+ {
17014
+ name: "agentUiSelector",
17015
+ type: "string",
17016
+ required: false,
17017
+ description: "CSS selector for the agent's own UI (chat window, dock, launcher): ignored, and named as the cover"
17018
+ },
17019
+ {
17020
+ name: "clearTheWay",
17021
+ type: "ClearTheWayHandler",
17022
+ required: false,
17023
+ description: "Called once when a call's target is under the agent's UI: move it and return `true`. See below"
17024
+ },
17025
+ {
17026
+ name: "chipLabel",
17027
+ type: "string",
17028
+ default: "'Agent is pointing'",
17029
+ required: false,
17030
+ description: "Text of the chip shown while effects are on screen"
17031
+ },
17032
+ {
17033
+ name: "dismissLabel",
17034
+ type: "string",
17035
+ default: "'Dismiss'",
17036
+ required: false,
17037
+ description: "Text of the chip's button"
17038
+ },
17039
+ {
17040
+ name: "regionLabel",
17041
+ type: "string",
17042
+ default: "'Agent'",
17043
+ required: false,
17044
+ description: "Accessible name of the chip's landmark"
17045
+ },
17046
+ {
17047
+ name: "origin",
17048
+ type: "CursorOrigin",
17049
+ default: "bottom-right corner",
17050
+ required: false,
17051
+ description: "Where the ghost cursor first glides in from: `{ top, left }` in viewport px, or a function returning one"
17052
+ }
17053
+ ],
17054
+ variants: [],
17055
+ slots: [
17056
+ {
17057
+ name: "children",
17058
+ description: "Main content",
17059
+ required: false
17060
+ }
17061
+ ],
17062
+ events: [],
17063
+ examples: [
17064
+ {
17065
+ title: "use:agentTarget",
17066
+ code: "<script>\n import { agentTarget } from '@classic-homes/page-agent-svelte';\n</script>\n\n<section use:agentTarget={{ id: 'closing-date', label: 'Closing date', kind: 'field' }}>\u2026</section>"
17067
+ }
17068
+ ],
17069
+ relatedComponents: [
17070
+ "AccessInspector",
17071
+ "Tabs"
17072
+ ]
17073
+ },
16855
17074
  {
16856
17075
  name: "PageHeader",
16857
17076
  description: "Hero and page title component with multiple variants",
@@ -17042,6 +17261,20 @@ var component_catalog_default = {
17042
17261
  required: false,
17043
17262
  description: "Hide the toolbar"
17044
17263
  },
17264
+ {
17265
+ name: "hideTitle",
17266
+ type: "boolean",
17267
+ default: "false",
17268
+ required: false,
17269
+ description: "Leave the file name out of the toolbar"
17270
+ },
17271
+ {
17272
+ name: "allowDownload",
17273
+ type: "boolean",
17274
+ default: "true",
17275
+ required: false,
17276
+ description: "Offer Download in the toolbar and error state"
17277
+ },
17045
17278
  {
17046
17279
  name: "onready",
17047
17280
  type: "() => void",
@@ -21482,6 +21715,20 @@ var component_catalog_default = {
21482
21715
  required: false,
21483
21716
  description: "Hide the toolbar"
21484
21717
  },
21718
+ {
21719
+ name: "hideTitle",
21720
+ type: "boolean",
21721
+ default: "false",
21722
+ required: false,
21723
+ description: "Leave the file name out of the toolbar"
21724
+ },
21725
+ {
21726
+ name: "allowDownload",
21727
+ type: "boolean",
21728
+ default: "true",
21729
+ required: false,
21730
+ description: "Offer Download in the toolbar and error state"
21731
+ },
21485
21732
  {
21486
21733
  name: "onready",
21487
21734
  type: "() => void",
@@ -23921,7 +24168,7 @@ function registerComponentResources(server) {
23921
24168
 
23922
24169
  // src/data/token-definitions.json
23923
24170
  var token_definitions_default = {
23924
- version: "0.5.9",
24171
+ version: "0.5.11",
23925
24172
  colors: {
23926
24173
  brand: [
23927
24174
  {
@@ -24904,7 +25151,7 @@ function registerTokenResources(server) {
24904
25151
 
24905
25152
  // src/data/styles-catalog.json
24906
25153
  var styles_catalog_default = {
24907
- version: "0.5.9",
25154
+ version: "0.5.11",
24908
25155
  package: "@classic-homes/theme-styles",
24909
25156
  description: "Base CSS styles, accessibility features, and utility classes for the Classic Theme design system",
24910
25157
  integration: {
@@ -25287,7 +25534,7 @@ import { ResourceTemplate as ResourceTemplate2 } from "@modelcontextprotocol/sdk
25287
25534
 
25288
25535
  // src/data/pattern-library.json
25289
25536
  var pattern_library_default = {
25290
- version: "0.5.9",
25537
+ version: "0.5.11",
25291
25538
  layouts: [
25292
25539
  {
25293
25540
  id: "dashboard-page",
@@ -26381,7 +26628,7 @@ function registerLayoutResources(server) {
26381
26628
 
26382
26629
  // src/data/schema-catalog.json
26383
26630
  var schema_catalog_default = {
26384
- version: "0.5.9",
26631
+ version: "0.5.11",
26385
26632
  packageName: "@classic-homes/theme-svelte",
26386
26633
  importPath: "@classic-homes/theme-svelte",
26387
26634
  generatedFrom: "packages/svelte/src/lib/schemas/index.ts",
@@ -27189,7 +27436,7 @@ import { ResourceTemplate as ResourceTemplate3 } from "@modelcontextprotocol/sdk
27189
27436
 
27190
27437
  // src/data/auth-catalog.json
27191
27438
  var auth_catalog_default = {
27192
- version: "0.5.9",
27439
+ version: "0.5.11",
27193
27440
  packageName: "@classic-homes/auth",
27194
27441
  description: "Authentication services and Svelte bindings for Classic Theme apps",
27195
27442
  subpackages: {
@@ -27548,14 +27795,14 @@ var auth_catalog_default = {
27548
27795
  },
27549
27796
  {
27550
27797
  name: "authApi.linkSSOAccount",
27551
- signature: "(provider?: string) => Promise<void>",
27552
- description: "Start linking an SSO account (redirects to the IdP). CHAPI links nothing until the /account page it returns to calls completeSSOLink(code)"
27798
+ signature: "(provider?: string, options?: { callback?: string | null }) => Promise<void>",
27799
+ description: "Start linking an SSO account (redirects to the IdP). CHAPI returns the user to options.callback (default: the current page, origin + path; origin must be on CHAPI's SSO allowlist; null sends none, so CHAPI web's /account) with ?link=pending#sso_link_code, and links nothing until that page calls completeSSOLink(code). Also authService.linkAccount(provider, options). The returned IdP authorization URL is never checked against allowedRedirectOrigins: it must be https, or on sso.idpOrigins (plus logoutOrigins, authorizeUrl and API origins) when that is set. A callback with its own query (?tab=\u2026) is fine"
27553
27800
  },
27554
27801
  {
27555
27802
  name: "authApi.completeSSOLink",
27556
27803
  signature: "(code: string) => Promise<SSOLinkCompleteResponse>",
27557
27804
  description: "Finish an SSO account link with the one-time sso_link_code (POST /auth/sso/link/complete). Throws ApiError: 400 unknown/used code or SSO account linked to another user, 403 different user or IdP email unverified / not the account email. Also on authService.completeSSOLink",
27558
- example: "import { authService, readSsoLinkResult } from '@classic-homes/auth/core';\n\nconst link = readSsoLinkResult(); // on /account; strips the code from the URL\nif (link?.status === 'pending') await authService.completeSSOLink(link.code);\nelse if (link?.status === 'error') showError(link.message ?? 'Linking failed');"
27805
+ example: "import { authService, readSsoLinkResult } from '@classic-homes/auth/core';\n\nconst link = readSsoLinkResult(); // on the link callback page (any path); strips the code from the URL\nif (link?.status === 'pending') await authService.completeSSOLink(link.code);\nelse if (link?.status === 'error') showError(link.message ?? 'Linking failed');"
27559
27806
  },
27560
27807
  {
27561
27808
  name: "authApi.getSecurityEvents",
@@ -27699,7 +27946,7 @@ var auth_catalog_default = {
27699
27946
  {
27700
27947
  name: "readSsoLinkResult",
27701
27948
  signature: "(options?: { url?: string | URL; clear?: boolean }) => SSOLinkResult | null",
27702
- description: "On /account after linkSSOAccount: read ?link=error&message or #sso_link_code and, by default, strip them from the address bar; null when the URL is not a link return"
27949
+ description: "On the link callback page (any path) after linkSSOAccount: read ?link=error&message or #sso_link_code and, by default, strip them from the address bar; null when the URL is not a link return"
27703
27950
  }
27704
27951
  ]
27705
27952
  },
@@ -30496,7 +30743,7 @@ import { ResourceTemplate as ResourceTemplate4 } from "@modelcontextprotocol/sdk
30496
30743
 
30497
30744
  // src/data/notifications-catalog.json
30498
30745
  var notifications_catalog_default = {
30499
- version: "0.5.9",
30746
+ version: "0.5.11",
30500
30747
  packageName: "@classic-homes/notifications",
30501
30748
  description: "Notification services and Svelte bindings for Classic Theme apps",
30502
30749
  subpackages: {
@@ -31408,7 +31655,7 @@ function registerNotificationsResources(server) {
31408
31655
 
31409
31656
  // src/data/docs-catalog.json
31410
31657
  var docs_catalog_default = {
31411
- version: "0.5.9",
31658
+ version: "0.5.11",
31412
31659
  packageName: "@classic-homes/theme-docs",
31413
31660
  description: "Markdown documentation components for the Classic theme system",
31414
31661
  exports: {
@@ -33086,7 +33333,7 @@ function registerDocsResources(server) {
33086
33333
 
33087
33334
  // src/data/charts-catalog.json
33088
33335
  var charts_catalog_default = {
33089
- version: "0.5.9",
33336
+ version: "0.5.11",
33090
33337
  packageName: "@classic-homes/charts-core",
33091
33338
  description: "Core utilities, types, and themes for Classic Theme chart components",
33092
33339
  subpackages: {
@@ -37324,7 +37571,7 @@ interface SankeyData {
37324
37571
 
37325
37572
  // src/data/gantt-catalog.json
37326
37573
  var gantt_catalog_default = {
37327
- version: "0.5.9",
37574
+ version: "0.5.11",
37328
37575
  packageName: "@classic-homes/gantt-core",
37329
37576
  description: "Framework-agnostic Gantt engine: working calendars, a critical-path scheduler, an editable project model with undo/redo, timeline geometry, drag math, accessible descriptions and import/export. No DOM, no framework, no runtime dependencies. @classic-homes/gantt-svelte renders it; a React package (@classic-homes/gantt-react) is planned.",
37330
37577
  packages: {
@@ -38307,7 +38554,7 @@ function registerGanttResources(server) {
38307
38554
 
38308
38555
  // src/data/maps-catalog.json
38309
38556
  var maps_catalog_default = {
38310
- version: "0.5.9",
38557
+ version: "0.5.11",
38311
38558
  packageName: "@classic-homes/maps-core",
38312
38559
  description: "Core utilities, types, and themes for Classic Theme MapLibre GL components",
38313
38560
  subpackages: {
@@ -43939,7 +44186,7 @@ ${catalog6.quickReference.tailwindConfig}
43939
44186
 
43940
44187
  // src/data/native-catalog.json
43941
44188
  var native_catalog_default = {
43942
- version: "0.5.9",
44189
+ version: "0.5.11",
43943
44190
  packageName: "@classic-homes/native",
43944
44191
  description: "Native device APIs for iOS and Android mobile apps. Uses Capacitor for native functionality with web fallbacks.",
43945
44192
  subpackages: {
@@ -45649,7 +45896,7 @@ import { NativeGuard, usePlatformCheck } from '@classic-homes/native/react';
45649
45896
 
45650
45897
  // src/data/viewer-catalog.json
45651
45898
  var viewer_catalog_default = {
45652
- version: "0.5.9",
45899
+ version: "0.5.11",
45653
45900
  packageName: "@classic-homes/viewer-svelte",
45654
45901
  description: "Client-side, view-only document viewers: PDF, Word (.docx), Excel (.xlsx), CSV/TSV and CAD (DXF; DWG through the separate GPL package). Files are parsed and rendered in the browser; nothing is uploaded or converted on a server. Each format is a lazy-loaded subpath with an optional peer dependency, so apps only bundle what they register. Svelte 5 only; a React package (viewer-react) is planned.",
45655
45902
  packages: {
@@ -46708,7 +46955,7 @@ function registerPrompts(server) {
46708
46955
  // package.json
46709
46956
  var package_default = {
46710
46957
  name: "@classic-homes/theme-mcp",
46711
- version: "0.5.9",
46958
+ version: "0.5.11",
46712
46959
  description: "MCP server for Classic Theme design system - enables AI assistants to understand and correctly use components, tokens, and patterns",
46713
46960
  type: "module",
46714
46961
  main: "dist/index.js",
@@ -46807,4 +47054,4 @@ function createServer() {
46807
47054
  export {
46808
47055
  createServer
46809
47056
  };
46810
- //# sourceMappingURL=chunk-QMLYHNH4.js.map
47057
+ //# sourceMappingURL=chunk-DL43EXKI.js.map