@ghostvue/mcp 0.1.0 → 0.2.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.
Files changed (152) hide show
  1. package/dist/assets/bundle.json +2 -2
  2. package/dist/assets/component-exports.json +1 -0
  3. package/dist/assets/docs/pages.json +1 -1
  4. package/dist/assets/examples/catalog.json +1 -1
  5. package/dist/assets/examples/sources/accordion/billing-faq.vue +123 -0
  6. package/dist/assets/examples/sources/avatar/team-roster.vue +69 -5
  7. package/dist/assets/examples/sources/badge/release-channels.vue +1 -1
  8. package/dist/assets/examples/sources/breadcrumb/basic.vue +60 -15
  9. package/dist/assets/examples/sources/button/refresh-status.vue +95 -0
  10. package/dist/assets/examples/sources/calendar/availability.vue +235 -0
  11. package/dist/assets/examples/sources/calendar/office-locale.vue +197 -0
  12. package/dist/assets/examples/sources/card/project-summary.vue +38 -3
  13. package/dist/assets/examples/sources/checkbox-group/basic.vue +56 -0
  14. package/dist/assets/examples/sources/checkbox-group/field.vue +73 -0
  15. package/dist/assets/examples/sources/checkbox-group/form.vue +100 -0
  16. package/dist/assets/examples/sources/checkbox-group/headless.vue +68 -0
  17. package/dist/assets/examples/sources/checkbox-group/notification-preferences.vue +380 -0
  18. package/dist/assets/examples/sources/collapsible/shipment-history.vue +135 -0
  19. package/dist/assets/examples/sources/combobox/review-request-form.vue +415 -0
  20. package/dist/assets/examples/sources/command-palette/async.vue +60 -12
  21. package/dist/assets/examples/sources/command-palette/basic.vue +123 -2
  22. package/dist/assets/examples/sources/command-palette/shortcut.vue +132 -5
  23. package/dist/assets/examples/sources/command-palette/themed.vue +44 -4
  24. package/dist/assets/examples/sources/command-palette/virtualized.vue +124 -3
  25. package/dist/assets/examples/sources/context-menu/themed.vue +81 -26
  26. package/dist/assets/examples/sources/data-table/themed-invoices.vue +219 -44
  27. package/dist/assets/examples/sources/date-picker/controlled.vue +8 -293
  28. package/dist/assets/examples/sources/date-picker/custom-format.vue +6 -295
  29. package/dist/assets/examples/sources/date-picker/nested-dialog.vue +28 -350
  30. package/dist/assets/examples/sources/date-picker/rtl.vue +5 -294
  31. package/dist/assets/examples/sources/date-picker/themed.vue +2 -2
  32. package/dist/assets/examples/sources/date-picker/validation.vue +8 -294
  33. package/dist/assets/examples/sources/dropdown-menu/nested-export.vue +56 -0
  34. package/dist/assets/examples/sources/empty-state/search-results.vue +26 -1
  35. package/dist/assets/examples/sources/field/billing-address-headless.vue +93 -0
  36. package/dist/assets/examples/sources/field/billing-address.vue +192 -0
  37. package/dist/assets/examples/sources/field/checkbox.vue +10 -2
  38. package/dist/assets/examples/sources/field/themed.vue +12 -11
  39. package/dist/assets/examples/sources/file-upload/asset-submission.vue +96 -36
  40. package/dist/assets/examples/sources/form/async-validation.vue +180 -0
  41. package/dist/assets/examples/sources/form/composable.vue +146 -0
  42. package/dist/assets/examples/sources/form/nested-webhooks.vue +233 -0
  43. package/dist/assets/examples/sources/form/profile-schema.vue +376 -0
  44. package/dist/assets/examples/sources/inline-alert/billing-notices.vue +26 -5
  45. package/dist/assets/examples/sources/inline-alert/feed-status.vue +229 -0
  46. package/dist/assets/examples/sources/input/clearable-search-headless.vue +162 -0
  47. package/dist/assets/examples/sources/input/clearable-search.vue +225 -0
  48. package/dist/assets/examples/sources/input/unit-suffix.vue +109 -0
  49. package/dist/assets/examples/sources/interactive-surface/basic.vue +20 -8
  50. package/dist/assets/examples/sources/interactive-surface/feature-tiles.vue +42 -8
  51. package/dist/assets/examples/sources/kbd/command-shortcuts.vue +0 -1
  52. package/dist/assets/examples/sources/link/documentation-footer.vue +11 -4
  53. package/dist/assets/examples/sources/link/router.vue +9 -5
  54. package/dist/assets/examples/sources/menubar/themed.vue +46 -10
  55. package/dist/assets/examples/sources/number-input/order-limits.vue +5 -0
  56. package/dist/assets/examples/sources/number-input/themed.vue +12 -6
  57. package/dist/assets/examples/sources/number-input/workshop-booking.vue +207 -0
  58. package/dist/assets/examples/sources/pagination/controlled.vue +83 -18
  59. package/dist/assets/examples/sources/pagination/ellipsis.vue +44 -14
  60. package/dist/assets/examples/sources/pagination/themed.vue +161 -21
  61. package/dist/assets/examples/sources/presence/basic.vue +81 -0
  62. package/dist/assets/examples/sources/presence/portal.vue +92 -0
  63. package/dist/assets/examples/sources/progress/report-export.vue +160 -0
  64. package/dist/assets/examples/sources/scroll-area/activity-feed.vue +0 -1
  65. package/dist/assets/examples/sources/scroll-area/horizontal.vue +169 -14
  66. package/dist/assets/examples/sources/scroll-area/themed.vue +42 -3
  67. package/dist/assets/examples/sources/scroll-spy/themed.vue +180 -31
  68. package/dist/assets/examples/sources/select/alert-routing-form.vue +356 -0
  69. package/dist/assets/examples/sources/select/multiple-form.vue +201 -0
  70. package/dist/assets/examples/sources/select/multiple-labels.vue +142 -0
  71. package/dist/assets/examples/sources/skeleton/profile-loading.vue +28 -4
  72. package/dist/assets/examples/sources/slider/audio-mixer.vue +8 -2
  73. package/dist/assets/examples/sources/slider/price-filter.vue +162 -0
  74. package/dist/assets/examples/sources/slider/vertical.vue +3 -2
  75. package/dist/assets/examples/sources/spinner/sync-status.vue +13 -10
  76. package/dist/assets/examples/sources/switch/form.vue +43 -11
  77. package/dist/assets/examples/sources/table/contain-horizontal.vue +24 -12
  78. package/dist/assets/examples/sources/table/row-headers.vue +118 -19
  79. package/dist/assets/examples/sources/tabs/review-sections.vue +43 -0
  80. package/dist/assets/examples/sources/tags-input/headless-field.vue +31 -0
  81. package/dist/assets/examples/sources/tags-input/project-labels.vue +64 -0
  82. package/dist/assets/examples/sources/tags-input/read-only.vue +12 -0
  83. package/dist/assets/examples/sources/toast/themed.vue +42 -19
  84. package/dist/assets/examples/sources/toolbar/themed.vue +22 -4
  85. package/dist/assets/examples/sources/tooltip/themed.vue +12 -1
  86. package/dist/assets/examples/sources/tree/themed.vue +70 -17
  87. package/dist/assets/manifests/themes/ghost-accordion.manifest.json +1 -0
  88. package/dist/assets/manifests/themes/ghost-button.manifest.json +1 -0
  89. package/dist/assets/manifests/themes/ghost-calendar.manifest.json +3 -1
  90. package/dist/assets/manifests/themes/ghost-checkbox-group.manifest.json +90 -0
  91. package/dist/assets/manifests/themes/ghost-collapsible.manifest.json +1 -0
  92. package/dist/assets/manifests/themes/ghost-combobox.manifest.json +1 -0
  93. package/dist/assets/manifests/themes/ghost-command-palette.manifest.json +2 -1
  94. package/dist/assets/manifests/themes/ghost-date-picker.manifest.json +5 -0
  95. package/dist/assets/manifests/themes/ghost-dropdown-menu.manifest.json +9 -0
  96. package/dist/assets/manifests/themes/ghost-field.manifest.json +10 -2
  97. package/dist/assets/manifests/themes/ghost-inline-alert.manifest.json +1 -0
  98. package/dist/assets/manifests/themes/ghost-input.manifest.json +3 -1
  99. package/dist/assets/manifests/themes/ghost-link.manifest.json +2 -1
  100. package/dist/assets/manifests/themes/ghost-number-input.manifest.json +1 -0
  101. package/dist/assets/manifests/themes/ghost-pagination.manifest.json +6 -2
  102. package/dist/assets/manifests/themes/ghost-progress.manifest.json +1 -0
  103. package/dist/assets/manifests/themes/ghost-radio-group-item.manifest.json +63 -0
  104. package/dist/assets/manifests/themes/ghost-scroll-area.manifest.json +12 -2
  105. package/dist/assets/manifests/themes/ghost-select.manifest.json +3 -0
  106. package/dist/assets/manifests/themes/ghost-slider.manifest.json +1 -0
  107. package/dist/assets/manifests/themes/ghost-table.manifest.json +2 -1
  108. package/dist/assets/manifests/themes/ghost-tags-input.manifest.json +255 -0
  109. package/dist/assets/manifests/vue/ghost-checkbox-group.manifest.json +173 -0
  110. package/dist/assets/manifests/vue/ghost-command-palette-content.manifest.json +6 -2
  111. package/dist/assets/manifests/vue/ghost-command-palette-overlay.manifest.json +6 -2
  112. package/dist/assets/manifests/vue/ghost-command-palette.manifest.json +0 -1
  113. package/dist/assets/manifests/vue/ghost-context-menu-content.manifest.json +3 -3
  114. package/dist/assets/manifests/vue/ghost-context-menu.manifest.json +1 -1
  115. package/dist/assets/manifests/vue/ghost-data-table-preset.manifest.json +1 -1
  116. package/dist/assets/manifests/vue/ghost-data-table-table.manifest.json +1 -1
  117. package/dist/assets/manifests/vue/ghost-data-table.manifest.json +99 -2
  118. package/dist/assets/manifests/vue/ghost-date-picker-content.manifest.json +12 -3
  119. package/dist/assets/manifests/vue/ghost-date-picker.manifest.json +1 -6
  120. package/dist/assets/manifests/vue/ghost-dialog-content.manifest.json +6 -2
  121. package/dist/assets/manifests/vue/ghost-dialog-overlay.manifest.json +6 -2
  122. package/dist/assets/manifests/vue/ghost-drawer-content.manifest.json +6 -2
  123. package/dist/assets/manifests/vue/ghost-drawer-overlay.manifest.json +6 -2
  124. package/dist/assets/manifests/vue/ghost-field-error.manifest.json +12 -1
  125. package/dist/assets/manifests/vue/ghost-field.manifest.json +35 -3
  126. package/dist/assets/manifests/vue/ghost-form.manifest.json +221 -0
  127. package/dist/assets/manifests/vue/ghost-hover-card-content.manifest.json +12 -3
  128. package/dist/assets/manifests/vue/ghost-input.manifest.json +2 -1
  129. package/dist/assets/manifests/vue/ghost-link.manifest.json +1 -2
  130. package/dist/assets/manifests/vue/ghost-menubar-content.manifest.json +3 -3
  131. package/dist/assets/manifests/vue/ghost-menubar.manifest.json +4 -4
  132. package/dist/assets/manifests/vue/ghost-pagination.manifest.json +0 -2
  133. package/dist/assets/manifests/vue/ghost-popover-content.manifest.json +6 -2
  134. package/dist/assets/manifests/vue/ghost-presence.manifest.json +96 -0
  135. package/dist/assets/manifests/vue/ghost-scroll-area.manifest.json +0 -1
  136. package/dist/assets/manifests/vue/ghost-select-content.manifest.json +6 -1
  137. package/dist/assets/manifests/vue/ghost-select-group.manifest.json +6 -1
  138. package/dist/assets/manifests/vue/ghost-select-label.manifest.json +6 -1
  139. package/dist/assets/manifests/vue/ghost-select-option.manifest.json +6 -1
  140. package/dist/assets/manifests/vue/ghost-select-trigger.manifest.json +6 -1
  141. package/dist/assets/manifests/vue/ghost-select-value.manifest.json +18 -2
  142. package/dist/assets/manifests/vue/ghost-select.manifest.json +18 -6
  143. package/dist/assets/manifests/vue/ghost-submenu-content.manifest.json +168 -0
  144. package/dist/assets/manifests/vue/ghost-submenu-trigger.manifest.json +102 -0
  145. package/dist/assets/manifests/vue/ghost-submenu.manifest.json +59 -0
  146. package/dist/assets/manifests/vue/ghost-table.manifest.json +0 -2
  147. package/dist/assets/manifests/vue/ghost-tabs.manifest.json +2 -1
  148. package/dist/assets/manifests/vue/ghost-tags-input.manifest.json +260 -0
  149. package/dist/assets/tokens.json +15 -0
  150. package/dist/components.d.ts +5 -0
  151. package/dist/components.js +80 -11
  152. package/package.json +1 -1
@@ -0,0 +1,59 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "source": "generated",
4
+ "name": "GhostSubmenu",
5
+ "package": "@ghostvue/vue",
6
+ "status": "experimental",
7
+ "description": "Renderless child menu for DropdownMenu, ContextMenu, or Menubar. Only one sibling branch is visible at a time.",
8
+ "props": [
9
+ {
10
+ "name": "defaultOpen",
11
+ "type": "boolean",
12
+ "default": false,
13
+ "required": false,
14
+ "description": "Initially opens the child in uncontrolled mode.",
15
+ "deprecated": false
16
+ },
17
+ {
18
+ "name": "open",
19
+ "type": "boolean",
20
+ "required": false,
21
+ "description": "Controlled request for the child to open.",
22
+ "deprecated": false
23
+ }
24
+ ],
25
+ "models": [
26
+ {
27
+ "prop": "open",
28
+ "event": "update:open",
29
+ "type": "boolean",
30
+ "description": "v-model binding for `open`."
31
+ }
32
+ ],
33
+ "events": [],
34
+ "slots": [
35
+ {
36
+ "name": "default",
37
+ "props": [],
38
+ "description": "Primary content."
39
+ }
40
+ ],
41
+ "exposed": [],
42
+ "styling": {
43
+ "parts": [],
44
+ "states": [],
45
+ "cssProperties": []
46
+ },
47
+ "accessibility": {
48
+ "role": "generic",
49
+ "apgPattern": "https://www.w3.org/WAI/ARIA/apg/",
50
+ "keyboard": {},
51
+ "requiredAriaAttributes": []
52
+ },
53
+ "examples": [],
54
+ "spec": {
55
+ "path": "docs/components/submenu-spec.md",
56
+ "status": "approved",
57
+ "evidence": "Maintainer design approval on 2026-11-28: https://github.com/zprue743/ghostvue/pull/511#issuecomment-7242865701"
58
+ }
59
+ }
@@ -62,8 +62,6 @@
62
62
  "examples": [
63
63
  "table/basic",
64
64
  "table/composable",
65
- "table/contain-horizontal",
66
- "table/row-headers",
67
65
  "table/themed"
68
66
  ]
69
67
  }
@@ -94,6 +94,7 @@
94
94
  "tabs/basic",
95
95
  "tabs/manual",
96
96
  "tabs/vertical",
97
- "tabs/themed"
97
+ "tabs/themed",
98
+ "tabs/review-sections"
98
99
  ]
99
100
  }
@@ -0,0 +1,260 @@
1
+ {
2
+ "schemaVersion": "1.1.0",
3
+ "source": "generated",
4
+ "name": "GhostTagsInput",
5
+ "package": "@ghostvue/vue",
6
+ "status": "experimental",
7
+ "description": "Edit free-form text tags with one keyboard Tab stop and native form submission and reset.",
8
+ "props": [
9
+ {
10
+ "name": "defaultValue",
11
+ "type": "readonly string[]",
12
+ "default": "[]",
13
+ "required": false,
14
+ "description": "Initial uncontrolled tags and reset baseline.",
15
+ "deprecated": false
16
+ },
17
+ {
18
+ "name": "delimiters",
19
+ "type": "readonly (',' | ';')[]",
20
+ "default": "[]",
21
+ "required": false,
22
+ "description": "Optional typed and pasted separators.",
23
+ "deprecated": false
24
+ },
25
+ {
26
+ "name": "disabled",
27
+ "type": "boolean",
28
+ "default": false,
29
+ "required": false,
30
+ "description": "Disables editing, focus and submission.",
31
+ "deprecated": false
32
+ },
33
+ {
34
+ "name": "invalid",
35
+ "type": "boolean",
36
+ "default": false,
37
+ "required": false,
38
+ "description": "Consumer-owned invalid state.",
39
+ "deprecated": false
40
+ },
41
+ {
42
+ "name": "messages",
43
+ "type": "Partial<GhostTagsInputMessages>",
44
+ "required": false,
45
+ "description": "Localized button, announcement and validation text.",
46
+ "deprecated": false
47
+ },
48
+ {
49
+ "name": "modelValue",
50
+ "type": "readonly string[]",
51
+ "required": false,
52
+ "description": "Controlled committed tags.",
53
+ "deprecated": false
54
+ },
55
+ {
56
+ "name": "name",
57
+ "type": "string",
58
+ "required": false,
59
+ "description": "Repeated native form field name.",
60
+ "deprecated": false
61
+ },
62
+ {
63
+ "name": "readonly",
64
+ "type": "boolean",
65
+ "default": false,
66
+ "required": false,
67
+ "description": "Prevents edits while preserving focus and submission.",
68
+ "deprecated": false
69
+ },
70
+ {
71
+ "name": "required",
72
+ "type": "boolean",
73
+ "default": false,
74
+ "required": false,
75
+ "description": "Requires a committed tag while editable.",
76
+ "deprecated": false
77
+ }
78
+ ],
79
+ "models": [
80
+ {
81
+ "prop": "modelValue",
82
+ "event": "update:modelValue",
83
+ "type": "readonly string[]",
84
+ "description": "Fresh proposal for the committed tag sequence."
85
+ }
86
+ ],
87
+ "events": [],
88
+ "slots": [
89
+ {
90
+ "name": "tag",
91
+ "props": [
92
+ {
93
+ "name": "value",
94
+ "type": "string",
95
+ "description": "Normalized tag string."
96
+ }
97
+ ],
98
+ "description": "Formats tag text while the component retains its remove control."
99
+ }
100
+ ],
101
+ "exposed": [
102
+ {
103
+ "name": "element",
104
+ "kind": "property",
105
+ "type": "HTMLInputElement | null",
106
+ "description": "Native text input after mount."
107
+ },
108
+ {
109
+ "name": "focus",
110
+ "kind": "method",
111
+ "type": "() => void",
112
+ "description": "Focuses the native entry."
113
+ }
114
+ ],
115
+ "styling": {
116
+ "parts": [
117
+ {
118
+ "name": "root",
119
+ "description": "Widget container."
120
+ },
121
+ {
122
+ "name": "list",
123
+ "description": "List of committed tags."
124
+ },
125
+ {
126
+ "name": "tag",
127
+ "description": "A committed tag."
128
+ },
129
+ {
130
+ "name": "remove",
131
+ "description": "Native remove button."
132
+ },
133
+ {
134
+ "name": "input",
135
+ "description": "Native text input."
136
+ },
137
+ {
138
+ "name": "status",
139
+ "description": "Persistent polite status region."
140
+ }
141
+ ],
142
+ "states": [
143
+ {
144
+ "name": "disabled",
145
+ "description": "The field is disabled."
146
+ },
147
+ {
148
+ "name": "readonly",
149
+ "description": "The field is read-only."
150
+ },
151
+ {
152
+ "name": "invalid",
153
+ "description": "The consumer marked the field invalid."
154
+ }
155
+ ],
156
+ "cssProperties": []
157
+ },
158
+ "accessibility": {
159
+ "role": "textbox",
160
+ "apgPattern": "https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_roving_tabindex",
161
+ "keyboard": {
162
+ "Enter": "Commit a nonempty draft or activate a focused remove button.",
163
+ "Space": "Activate a focused remove button.",
164
+ "Backspace": "From an empty draft focus the last remove button, or remove the focused tag.",
165
+ "Delete": "Remove the focused tag.",
166
+ "ArrowLeft": "Move along the tags or back to the entry, reversed in RTL.",
167
+ "ArrowRight": "Move along the tags or back to the entry, reversed in RTL.",
168
+ "Home": "Focus the first remove button from a remove button.",
169
+ "End": "Focus the text entry from a remove button.",
170
+ "Tab": "Enter through the text entry or leave the widget."
171
+ },
172
+ "requiredAriaAttributes": [],
173
+ "verification": {
174
+ "automatedKeyboard": {
175
+ "status": "passed",
176
+ "keys": {
177
+ "Enter": [
178
+ {
179
+ "package": "@ghostvue/themes",
180
+ "spec": "tests/e2e/ghost-tags-input.spec.ts",
181
+ "title": "TagsInput navigates and removes tags with real focus @cross-browser"
182
+ }
183
+ ],
184
+ "Space": [
185
+ {
186
+ "package": "@ghostvue/themes",
187
+ "spec": "tests/e2e/ghost-tags-input.spec.ts",
188
+ "title": "TagsInput navigates and removes tags with real focus @cross-browser"
189
+ }
190
+ ],
191
+ "Backspace": [
192
+ {
193
+ "package": "@ghostvue/themes",
194
+ "spec": "tests/e2e/ghost-tags-input.spec.ts",
195
+ "title": "TagsInput navigates and removes tags with real focus @cross-browser"
196
+ }
197
+ ],
198
+ "Delete": [
199
+ {
200
+ "package": "@ghostvue/themes",
201
+ "spec": "tests/e2e/ghost-tags-input.spec.ts",
202
+ "title": "TagsInput navigates and removes tags with real focus @cross-browser"
203
+ }
204
+ ],
205
+ "ArrowLeft": [
206
+ {
207
+ "package": "@ghostvue/themes",
208
+ "spec": "tests/e2e/ghost-tags-input.spec.ts",
209
+ "title": "TagsInput navigates and removes tags with real focus @cross-browser"
210
+ }
211
+ ],
212
+ "ArrowRight": [
213
+ {
214
+ "package": "@ghostvue/themes",
215
+ "spec": "tests/e2e/ghost-tags-input.spec.ts",
216
+ "title": "TagsInput navigates and removes tags with real focus @cross-browser"
217
+ }
218
+ ],
219
+ "Home": [
220
+ {
221
+ "package": "@ghostvue/themes",
222
+ "spec": "tests/e2e/ghost-tags-input.spec.ts",
223
+ "title": "TagsInput navigates and removes tags with real focus @cross-browser"
224
+ }
225
+ ],
226
+ "End": [
227
+ {
228
+ "package": "@ghostvue/themes",
229
+ "spec": "tests/e2e/ghost-tags-input.spec.ts",
230
+ "title": "TagsInput navigates and removes tags with real focus @cross-browser"
231
+ }
232
+ ],
233
+ "Tab": [
234
+ {
235
+ "package": "@ghostvue/themes",
236
+ "spec": "tests/e2e/ghost-tags-input.spec.ts",
237
+ "title": "TagsInput navigates and removes tags with real focus @cross-browser"
238
+ }
239
+ ]
240
+ }
241
+ },
242
+ "manual": {
243
+ "status": "not-reviewed",
244
+ "evidence": []
245
+ },
246
+ "assistiveTechnology": {
247
+ "status": "not-reviewed",
248
+ "evidence": []
249
+ }
250
+ }
251
+ },
252
+ "examples": [
253
+ "tags-input/headless-field"
254
+ ],
255
+ "spec": {
256
+ "path": "docs/components/tags-input-spec.md",
257
+ "status": "approved",
258
+ "evidence": "Zac approved the GhostTagsInput design at 4bfa587a621d63bd0533f3be6c627675bf884d5f in https://github.com/zprue743/ghostvue/pull/550#issuecomment-7250732253."
259
+ }
260
+ }
@@ -5078,6 +5078,21 @@
5078
5078
  "dark": "space.4"
5079
5079
  }
5080
5080
  },
5081
+ {
5082
+ "name": "space.inset.scrollbar",
5083
+ "type": "dimension",
5084
+ "tier": "semantic",
5085
+ "description": "16px clearance a scroll container keeps beside its scrollbar so overlay scrollbars never cover content. Same across densities: platform scrollbars do not scale with density.",
5086
+ "value": {
5087
+ "light": "1rem",
5088
+ "dark": "1rem"
5089
+ },
5090
+ "cssVar": "--ghost-space-inset-scrollbar",
5091
+ "aliases": {
5092
+ "light": "space.4",
5093
+ "dark": "space.4"
5094
+ }
5095
+ },
5081
5096
  {
5082
5097
  "name": "space.inset.sm",
5083
5098
  "type": "dimension",
@@ -11,5 +11,10 @@ export type ComponentPackage = (typeof componentPackages)[number];
11
11
  * `manifest.schema.json`; `components.test.ts` fails if the two drift.
12
12
  */
13
13
  export declare const componentStatuses: readonly ["experimental", "beta", "stable", "deprecated"];
14
+ /**
15
+ * Bundled public export list (`componentExportsSchema`), written by the asset
16
+ * bundler from the same registry barrels that generate both package entries.
17
+ */
18
+ export declare const componentExportsFile = "component-exports.json";
14
19
  /** Creates `list_components` and `get_component` over one asset bundle. */
15
20
  export declare function createComponentTools(assetsDirectory: URL): readonly GhostvueTool[];
@@ -26,6 +26,11 @@ const manifestDirectories = {
26
26
  '@ghostvue/themes': 'themes',
27
27
  };
28
28
  const manifestSuffix = '.manifest.json';
29
+ /**
30
+ * Bundled public export list (`componentExportsSchema`), written by the asset
31
+ * bundler from the same registry barrels that generate both package entries.
32
+ */
33
+ export const componentExportsFile = 'component-exports.json';
29
34
  const componentPackageSchema = z.enum(componentPackages);
30
35
  /** The paired manifest in the other package (§3.2 `relatedManifest`). */
31
36
  const relatedManifestSchema = z.strictObject({
@@ -48,6 +53,18 @@ const manifestFieldsSchema = z.looseObject({
48
53
  examples: z.array(z.string()),
49
54
  spec: z.looseObject({ path: z.string(), status: z.string() }).optional(),
50
55
  });
56
+ const packageExportsSchema = z.strictObject({
57
+ importPaths: z.array(z.string().min(1)).min(1),
58
+ exports: z.array(z.string().min(1)),
59
+ });
60
+ /**
61
+ * Shape of {@link componentExportsFile}: per package, the import specifiers
62
+ * that expose its components and the value names it publicly exports.
63
+ */
64
+ const componentExportsSchema = z.strictObject({
65
+ '@ghostvue/vue': packageExportsSchema,
66
+ '@ghostvue/themes': packageExportsSchema,
67
+ });
51
68
  function manifestPathFor(pkg, family) {
52
69
  return `manifests/${manifestDirectories[pkg]}/${family}${manifestSuffix}`;
53
70
  }
@@ -89,6 +106,19 @@ async function loadComponentCatalog(assetsDirectory) {
89
106
  // narrowed to an object here before Ajv compiles it.
90
107
  const schema = z.looseObject({}).parse(JSON.parse(schemaText));
91
108
  const validate = ajv.compile(schema);
109
+ // A missing or malformed export list is a broken install, not a manifest
110
+ // problem, so it rejects like the schema does.
111
+ const exportsFile = componentExportsSchema.parse(JSON.parse(await readFile(new URL(componentExportsFile, assetsDirectory), 'utf8')));
112
+ const exports = {
113
+ '@ghostvue/vue': {
114
+ importPaths: exportsFile['@ghostvue/vue'].importPaths,
115
+ names: new Set(exportsFile['@ghostvue/vue'].exports),
116
+ },
117
+ '@ghostvue/themes': {
118
+ importPaths: exportsFile['@ghostvue/themes'].importPaths,
119
+ names: new Set(exportsFile['@ghostvue/themes'].exports),
120
+ },
121
+ };
92
122
  const familiesByPackage = new Map();
93
123
  for (const pkg of componentPackages) {
94
124
  familiesByPackage.set(pkg, new Set(await readFamilies(assetsDirectory, pkg)));
@@ -128,7 +158,7 @@ async function loadComponentCatalog(assetsDirectory) {
128
158
  entries.sort((a, b) => compareCodeUnits(a.family, b.family) ||
129
159
  componentPackages.indexOf(a.package) -
130
160
  componentPackages.indexOf(b.package));
131
- return { entries };
161
+ return { entries, exports };
132
162
  }
133
163
  function checkManifest(parsed, pkg, manifestPath, validate, ajv) {
134
164
  const invalid = (reason) => ({
@@ -257,6 +287,11 @@ const summarySchema = z.strictObject({
257
287
  .optional()
258
288
  .describe('Approved specification reference; omitted when absent.'),
259
289
  });
290
+ const manifestOutputSchema = z.looseObject({
291
+ schemaVersion: z.string(),
292
+ name: z.string(),
293
+ package: componentPackageSchema,
294
+ });
260
295
  /** Creates `list_components` and `get_component` over one asset bundle. */
261
296
  export function createComponentTools(assetsDirectory) {
262
297
  const loadCatalog = createCatalogLoader(assetsDirectory);
@@ -354,7 +389,7 @@ export function createComponentTools(assetsDirectory) {
354
389
  const getComponent = defineTool({
355
390
  name: 'get_component',
356
391
  title: 'Get component',
357
- description: 'Return one full GhostVue component manifest, validated against the bundled manifest schema. Pass package "@ghostvue/themes" for the themed wrapper.',
392
+ description: 'Return one full GhostVue component manifest, validated against the bundled manifest schema. Pass package "@ghostvue/themes" for a themed export; a themed compound part without its own manifest returns the @ghostvue/vue manifest it shares, and a themed manifest comes with the headless manifest it inherits.',
358
393
  input: {
359
394
  name: z
360
395
  .string()
@@ -362,29 +397,53 @@ export function createComponentTools(assetsDirectory) {
362
397
  .describe('Component name from its manifest, e.g. GhostButton.'),
363
398
  package: componentPackageSchema
364
399
  .default('@ghostvue/vue')
365
- .describe('Manifest package; @ghostvue/themes for themed wrappers.'),
400
+ .describe('Package the component is imported from; @ghostvue/themes for themed exports.'),
366
401
  },
367
402
  output: {
368
403
  family: z.string(),
369
- package: componentPackageSchema,
404
+ package: componentPackageSchema.describe('Package that owns the returned manifest. Differs from exportPackage when a themed export shares the headless manifest.'),
370
405
  relatedManifest: relatedManifestSchema.optional(),
371
- manifest: z
372
- .looseObject({
373
- schemaVersion: z.string(),
374
- name: z.string(),
406
+ manifest: manifestOutputSchema.describe('The full component manifest; it conforms to the schema named by ghostvue.manifestSchemaId.'),
407
+ exportPackage: componentPackageSchema.describe('The requested package, whose export this contract describes.'),
408
+ importPaths: z
409
+ .array(z.string())
410
+ .describe('Import specifiers that export this name from exportPackage; empty when exportPackage does not publicly export it.'),
411
+ inheritedManifest: z
412
+ .strictObject({
375
413
  package: componentPackageSchema,
414
+ family: z.string(),
415
+ manifestPath: z.string(),
416
+ manifest: manifestOutputSchema,
376
417
  })
377
- .describe('The full component manifest; it conforms to the schema named by ghostvue.manifestSchemaId.'),
418
+ .optional()
419
+ .describe('For a themed manifest, the @ghostvue/vue manifest of the same name whose props, models, events, and slots the wrapper forwards.'),
378
420
  },
379
421
  handler: async (input) => {
380
422
  const catalog = await loadCatalog();
381
- const entry = catalog.entries.find((candidate) => candidate.package === input.package && candidate.name === input.name);
423
+ const find = (pkg) => catalog.entries.find((candidate) => candidate.package === pkg && candidate.name === input.name);
424
+ const requested = catalog.exports[input.package];
425
+ const exported = requested.names.has(input.name);
426
+ const own = find(input.package);
427
+ const headless = input.package === '@ghostvue/themes' ? find('@ghostvue/vue') : undefined;
428
+ // Most themed compound parts (`GhostTabsTrigger`) re-export or wrap the
429
+ // headless part without a themed manifest, so their contract is the
430
+ // headless one. Only a name @ghostvue/themes really exports qualifies:
431
+ // a Vue-only part such as `GhostTableHeaderCell` stays NOT_FOUND there
432
+ // instead of implying an import that does not exist.
433
+ const entry = own ?? (exported ? headless : undefined);
382
434
  if (entry === undefined) {
383
435
  const elsewhere = catalog.entries.some((candidate) => candidate.package !== input.package &&
384
436
  candidate.name === input.name);
385
437
  throw new GhostvueToolError('NOT_FOUND', `No manifest for ${input.name} in ${input.package}${elsewhere ? `; it exists in ${otherPackage(input.package)}` : ''}.`);
386
438
  }
387
439
  const manifest = requireValid(entry);
440
+ // A themed manifest lists only what the wrapper adds; the forwarded
441
+ // headless contract (for example GhostRadioGroup's v-model) comes along
442
+ // so one lookup answers how to use the themed component.
443
+ const inherited = own !== undefined && headless !== undefined ? headless : undefined;
444
+ const summaryOwner = entry.package === input.package
445
+ ? entry.package
446
+ : `${input.package} export, ${entry.package} manifest`;
388
447
  return {
389
448
  structuredContent: {
390
449
  family: entry.family,
@@ -393,8 +452,18 @@ export function createComponentTools(assetsDirectory) {
393
452
  relatedManifest: entry.relatedManifest,
394
453
  }),
395
454
  manifest,
455
+ exportPackage: input.package,
456
+ importPaths: exported ? [...requested.importPaths] : [],
457
+ ...(inherited && {
458
+ inheritedManifest: {
459
+ package: inherited.package,
460
+ family: inherited.family,
461
+ manifestPath: inherited.manifestPath,
462
+ manifest: requireValid(inherited),
463
+ },
464
+ }),
396
465
  },
397
- summary: `${manifest.name} (${entry.package}, ${manifest.status}).`,
466
+ summary: `${manifest.name} (${summaryOwner}, ${manifest.status}).`,
398
467
  };
399
468
  },
400
469
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghostvue/mcp",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Read-only Model Context Protocol stdio server for discovering GhostVue components, examples, docs, and design tokens.",
5
5
  "license": "MIT",
6
6
  "repository": {