@tanrei/mcp 0.0.0-stage → 0.1.0-next.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 (111) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +58 -0
  3. package/README.md +135 -2
  4. package/bin/tanrei-mcp.js +15 -0
  5. package/dist/server.js +3008 -0
  6. package/dist/vocabulary/docs/governance/mimicry-gaps.json +592 -0
  7. package/dist/vocabulary/tanrei.config.json +23 -0
  8. package/dist/vocabulary/tokens/AGENTS.md +15 -0
  9. package/dist/vocabulary/tokens/comp/accordion.tokens.json +436 -0
  10. package/dist/vocabulary/tokens/comp/app-bar.tokens.json +211 -0
  11. package/dist/vocabulary/tokens/comp/app-shell.tokens.json +248 -0
  12. package/dist/vocabulary/tokens/comp/avatar.tokens.json +187 -0
  13. package/dist/vocabulary/tokens/comp/badge.tokens.json +100 -0
  14. package/dist/vocabulary/tokens/comp/bottom-sheet.tokens.json +256 -0
  15. package/dist/vocabulary/tokens/comp/breadcrumbs.tokens.json +253 -0
  16. package/dist/vocabulary/tokens/comp/button-group.tokens.json +118 -0
  17. package/dist/vocabulary/tokens/comp/button-with-menu.tokens.json +582 -0
  18. package/dist/vocabulary/tokens/comp/button.tokens.json +1102 -0
  19. package/dist/vocabulary/tokens/comp/calendar.tokens.json +490 -0
  20. package/dist/vocabulary/tokens/comp/callout.tokens.json +754 -0
  21. package/dist/vocabulary/tokens/comp/card.tokens.json +204 -0
  22. package/dist/vocabulary/tokens/comp/carousel.tokens.json +409 -0
  23. package/dist/vocabulary/tokens/comp/chat-composer.tokens.json +309 -0
  24. package/dist/vocabulary/tokens/comp/checkbox.tokens.json +591 -0
  25. package/dist/vocabulary/tokens/comp/chip.tokens.json +665 -0
  26. package/dist/vocabulary/tokens/comp/code-block.tokens.json +459 -0
  27. package/dist/vocabulary/tokens/comp/color-input.tokens.json +49 -0
  28. package/dist/vocabulary/tokens/comp/combobox.tokens.json +587 -0
  29. package/dist/vocabulary/tokens/comp/copy-button.tokens.json +39 -0
  30. package/dist/vocabulary/tokens/comp/date-time-picker.tokens.json +766 -0
  31. package/dist/vocabulary/tokens/comp/description-list.tokens.json +181 -0
  32. package/dist/vocabulary/tokens/comp/dialog.tokens.json +280 -0
  33. package/dist/vocabulary/tokens/comp/divider.tokens.json +139 -0
  34. package/dist/vocabulary/tokens/comp/embedded-text-input.tokens.json +103 -0
  35. package/dist/vocabulary/tokens/comp/empty-state.tokens.json +154 -0
  36. package/dist/vocabulary/tokens/comp/fab-menu.tokens.json +509 -0
  37. package/dist/vocabulary/tokens/comp/field-group.tokens.json +191 -0
  38. package/dist/vocabulary/tokens/comp/field.tokens.json +279 -0
  39. package/dist/vocabulary/tokens/comp/figure.tokens.json +215 -0
  40. package/dist/vocabulary/tokens/comp/file-item.tokens.json +445 -0
  41. package/dist/vocabulary/tokens/comp/file-picker.tokens.json +282 -0
  42. package/dist/vocabulary/tokens/comp/file-upload.tokens.json +35 -0
  43. package/dist/vocabulary/tokens/comp/image-preview.tokens.json +297 -0
  44. package/dist/vocabulary/tokens/comp/inline-code.tokens.json +86 -0
  45. package/dist/vocabulary/tokens/comp/input-box.tokens.json +938 -0
  46. package/dist/vocabulary/tokens/comp/keyboard-shortcut.tokens.json +192 -0
  47. package/dist/vocabulary/tokens/comp/link-card.tokens.json +301 -0
  48. package/dist/vocabulary/tokens/comp/link.tokens.json +321 -0
  49. package/dist/vocabulary/tokens/comp/list.tokens.json +447 -0
  50. package/dist/vocabulary/tokens/comp/loading-indicator.tokens.json +208 -0
  51. package/dist/vocabulary/tokens/comp/main-action-button.tokens.json +345 -0
  52. package/dist/vocabulary/tokens/comp/menu.tokens.json +919 -0
  53. package/dist/vocabulary/tokens/comp/menubar.tokens.json +228 -0
  54. package/dist/vocabulary/tokens/comp/navigation-bar.tokens.json +479 -0
  55. package/dist/vocabulary/tokens/comp/navigation-drawer.tokens.json +770 -0
  56. package/dist/vocabulary/tokens/comp/navigation-rail.tokens.json +254 -0
  57. package/dist/vocabulary/tokens/comp/number-input.tokens.json +75 -0
  58. package/dist/vocabulary/tokens/comp/one-time-code-input.tokens.json +231 -0
  59. package/dist/vocabulary/tokens/comp/page-header.tokens.json +247 -0
  60. package/dist/vocabulary/tokens/comp/pagination.tokens.json +194 -0
  61. package/dist/vocabulary/tokens/comp/popover.tokens.json +292 -0
  62. package/dist/vocabulary/tokens/comp/progress-indicator.tokens.json +208 -0
  63. package/dist/vocabulary/tokens/comp/prose.tokens.json +267 -0
  64. package/dist/vocabulary/tokens/comp/radio-button.tokens.json +417 -0
  65. package/dist/vocabulary/tokens/comp/search.tokens.json +675 -0
  66. package/dist/vocabulary/tokens/comp/segmented-button.tokens.json +360 -0
  67. package/dist/vocabulary/tokens/comp/select.tokens.json +553 -0
  68. package/dist/vocabulary/tokens/comp/side-sheet.tokens.json +285 -0
  69. package/dist/vocabulary/tokens/comp/skeleton.tokens.json +111 -0
  70. package/dist/vocabulary/tokens/comp/slider.tokens.json +435 -0
  71. package/dist/vocabulary/tokens/comp/snackbar.tokens.json +1334 -0
  72. package/dist/vocabulary/tokens/comp/steps.tokens.json +190 -0
  73. package/dist/vocabulary/tokens/comp/switch.tokens.json +349 -0
  74. package/dist/vocabulary/tokens/comp/tab-view.tokens.json +142 -0
  75. package/dist/vocabulary/tokens/comp/table-of-contents.tokens.json +404 -0
  76. package/dist/vocabulary/tokens/comp/table.tokens.json +442 -0
  77. package/dist/vocabulary/tokens/comp/tabs.tokens.json +970 -0
  78. package/dist/vocabulary/tokens/comp/tag-group.tokens.json +57 -0
  79. package/dist/vocabulary/tokens/comp/tag.tokens.json +527 -0
  80. package/dist/vocabulary/tokens/comp/text-input.tokens.json +166 -0
  81. package/dist/vocabulary/tokens/comp/timeline.tokens.json +243 -0
  82. package/dist/vocabulary/tokens/comp/toolbar.tokens.json +155 -0
  83. package/dist/vocabulary/tokens/comp/tooltip.tokens.json +415 -0
  84. package/dist/vocabulary/tokens/comp/tree-view.tokens.json +393 -0
  85. package/dist/vocabulary/tokens/dial/dial.tokens.json +117 -0
  86. package/dist/vocabulary/tokens/fidelity/m3-expressive-like.fidelity.json +68 -0
  87. package/dist/vocabulary/tokens/fidelity/m3-like.fidelity.json +178 -0
  88. package/dist/vocabulary/tokens/fidelity/reference/androidx-material3-buttons.json +67 -0
  89. package/dist/vocabulary/tokens/fidelity/reference/material-web.json +802 -0
  90. package/dist/vocabulary/tokens/generated/m3-expressive-like/fidelity.json +99 -0
  91. package/dist/vocabulary/tokens/generated/m3-like/fidelity.json +24 -0
  92. package/dist/vocabulary/tokens/icon-sets/material-symbols.icon-set.json +278 -0
  93. package/dist/vocabulary/tokens/ref/typeface.tokens.json +116 -0
  94. package/dist/vocabulary/tokens/schema/icon-set.schema.json +82 -0
  95. package/dist/vocabulary/tokens/schema/system.schema.json +570 -0
  96. package/dist/vocabulary/tokens/sys/behavior.tokens.json +119 -0
  97. package/dist/vocabulary/tokens/sys/color.vocabulary.json +58 -0
  98. package/dist/vocabulary/tokens/sys/elevation.tokens.json +362 -0
  99. package/dist/vocabulary/tokens/sys/measure.tokens.json +358 -0
  100. package/dist/vocabulary/tokens/sys/motion.tokens.json +949 -0
  101. package/dist/vocabulary/tokens/sys/shape.tokens.json +169 -0
  102. package/dist/vocabulary/tokens/sys/space.tokens.json +256 -0
  103. package/dist/vocabulary/tokens/sys/state.tokens.json +70 -0
  104. package/dist/vocabulary/tokens/sys/typescale.tokens.json +551 -0
  105. package/dist/vocabulary/tokens/systems/cupertino.system.json +640 -0
  106. package/dist/vocabulary/tokens/systems/m3-expressive-like.system.json +83 -0
  107. package/dist/vocabulary/tokens/systems/m3-like.system.json +855 -0
  108. package/dist/vocabulary/tokens/systems/tanrei.system.json +409 -0
  109. package/dist/vocabulary/tokens/tanrei.resolver.json +358 -0
  110. package/dist/vocabulary/tokens/vocabulary.lock.json +7052 -0
  111. package/package.json +36 -3
@@ -0,0 +1,178 @@
1
+ {
2
+ "$comment": "How the m3-like preset is measured against its reference. Every reference token of a covered component is either MAPPED to something Tanrei resolves — and must then be equal — or listed under `unmapped` with the mimicry gap that explains it. `{variant}` and `{state}` are filled from the tables below. Kinds: equal (default) · level (the reference names an elevation level; Tanrei's token must alias the level of the same name) · state-layer (the reference gives a layer color and opacity; Tanrei's state color must equal that layer composited over the resting container) · with-opacity (a color and a separate opacity token; Tanrei's token is that color with its alpha multiplied).",
3
+ "system": "m3-like",
4
+ "reference": "reference/material-web.json",
5
+ "scope": "Every color role and every text style the reference publishes, and Button (five variants) at the reference's single size (40px = Tanrei's medium).",
6
+ "colors": {
7
+ "$comment": "md.sys.color.<role> is compared with tanrei.sys.color.<role> in light and dark. `rename` lists roles whose Tanrei name differs.",
8
+ "rename": {},
9
+ "unmapped": [
10
+ {
11
+ "ref": "scrim",
12
+ "gap": "scrim-color-and-opacity",
13
+ "note": "m3-like draws black at 32%, the reference's rendered result; the reference token itself is opaque black."
14
+ }
15
+ ]
16
+ },
17
+ "typescale": {
18
+ "$comment": "md.sys.typescale.<role>-<field> is compared with the Tanrei role `roles` names (a typescale level). An `-emphasized` role is the base role's weight plus the family's `emphasis.*` step; `families` says which step a role takes where its family is not its first name segment.",
19
+ "roles": {
20
+ "display-large": "display-large",
21
+ "display-medium": "display",
22
+ "display-small": "display-small",
23
+ "headline-large": "heading-1",
24
+ "headline-medium": "heading-2",
25
+ "headline-small": "heading-3",
26
+ "title-large": "heading-4",
27
+ "title-medium": "heading-5",
28
+ "title-small": "heading-6",
29
+ "body-large": "body-large",
30
+ "body-medium": "body",
31
+ "body-small": "body-small",
32
+ "label-large": "label",
33
+ "label-medium": "label-small",
34
+ "label-small": "caption"
35
+ },
36
+ "families": {
37
+ "display-large": "display",
38
+ "display-small": "display",
39
+ "heading-5": "label",
40
+ "heading-6": "label"
41
+ }
42
+ },
43
+ "components": {
44
+ "filled-button": "filled",
45
+ "filled-tonal-button": "tonal",
46
+ "elevated-button": "elevated",
47
+ "outlined-button": "outlined",
48
+ "text-button": "text"
49
+ },
50
+ "states": {
51
+ "hover": "hovered",
52
+ "focus": "focused",
53
+ "pressed": "pressed",
54
+ "disabled": "disabled"
55
+ },
56
+ "map": [
57
+ {
58
+ "ref": "container-color",
59
+ "tanrei": "tanrei.comp.button.{variant}.container.color"
60
+ },
61
+ {
62
+ "ref": "container-height",
63
+ "tanrei": "tanrei.comp.button.container.height.medium"
64
+ },
65
+ {
66
+ "ref": "container-shape",
67
+ "tanrei": "tanrei.comp.button.container.shape"
68
+ },
69
+ {
70
+ "ref": "container-shadow-color",
71
+ "tanrei": "tanrei.sys.color.shadow"
72
+ },
73
+ {
74
+ "ref": "container-elevation",
75
+ "tanrei": "tanrei.comp.button.{variant}.container.elevation",
76
+ "kind": "level"
77
+ },
78
+ {
79
+ "ref": "{state}-container-elevation",
80
+ "tanrei": "tanrei.comp.button.{variant}.{state}.container.elevation",
81
+ "kind": "level"
82
+ },
83
+ {
84
+ "ref": "label-text-color",
85
+ "tanrei": "tanrei.comp.button.{variant}.label.color"
86
+ },
87
+ {
88
+ "ref": "{state}-label-text-color",
89
+ "tanrei": "tanrei.comp.button.{variant}.{state}.label.color",
90
+ "with": "{state}-label-text-opacity"
91
+ },
92
+ {
93
+ "ref": "{state}-label-text-opacity",
94
+ "covered-by": "{state}-label-text-color"
95
+ },
96
+ {
97
+ "ref": "{state}-state-layer-color",
98
+ "tanrei": "tanrei.comp.button.{variant}.{state}.container.color",
99
+ "kind": "state-layer",
100
+ "opacity": "{state}-state-layer-opacity",
101
+ "over": "container-color"
102
+ },
103
+ {
104
+ "ref": "{state}-state-layer-opacity",
105
+ "tanrei": "tanrei.sys.state.{state-ref}-state-layer-opacity"
106
+ },
107
+ {
108
+ "ref": "disabled-container-color",
109
+ "tanrei": "tanrei.comp.button.{variant}.disabled.container.color",
110
+ "with": "disabled-container-opacity"
111
+ },
112
+ {
113
+ "ref": "disabled-container-opacity",
114
+ "covered-by": "disabled-container-color"
115
+ },
116
+ {
117
+ "ref": "outline-color",
118
+ "tanrei": "tanrei.comp.button.{variant}.outline.color"
119
+ },
120
+ {
121
+ "ref": "outline-width",
122
+ "tanrei": "tanrei.comp.button.outline.width.medium"
123
+ },
124
+ {
125
+ "ref": "{state}-outline-color",
126
+ "tanrei": "tanrei.comp.button.{variant}.{state}.outline.color",
127
+ "with": "{state}-outline-opacity"
128
+ },
129
+ {
130
+ "ref": "{state}-outline-opacity",
131
+ "covered-by": "{state}-outline-color"
132
+ },
133
+ {
134
+ "ref": "label-text-font",
135
+ "tanrei": "tanrei.comp.button.label.typescale.medium",
136
+ "field": "fontFamily"
137
+ },
138
+ {
139
+ "ref": "label-text-size",
140
+ "tanrei": "tanrei.comp.button.label.typescale.medium",
141
+ "field": "fontSize"
142
+ },
143
+ {
144
+ "ref": "label-text-line-height",
145
+ "tanrei": "tanrei.comp.button.label.typescale.medium",
146
+ "field": "lineHeight"
147
+ },
148
+ {
149
+ "ref": "label-text-tracking",
150
+ "tanrei": "tanrei.comp.button.label.typescale.medium",
151
+ "field": "letterSpacing"
152
+ },
153
+ {
154
+ "ref": "label-text-weight",
155
+ "tanrei": "tanrei.comp.button.label.typescale.medium",
156
+ "field": "fontWeight"
157
+ },
158
+ {
159
+ "ref": "with-icon-icon-size",
160
+ "tanrei": "tanrei.comp.button.icon.size.medium"
161
+ },
162
+ {
163
+ "ref": "with-icon-icon-color",
164
+ "tanrei": "tanrei.comp.button.{variant}.label.color",
165
+ "note": "Tanrei draws the icon in the label color; equal in the reference for every variant, so one token reproduces both."
166
+ },
167
+ {
168
+ "ref": "with-icon-{state}-icon-color",
169
+ "tanrei": "tanrei.comp.button.{variant}.{state}.label.color",
170
+ "with": "with-icon-{state}-icon-opacity"
171
+ },
172
+ {
173
+ "ref": "with-icon-{state}-icon-opacity",
174
+ "covered-by": "with-icon-{state}-icon-color"
175
+ }
176
+ ],
177
+ "unmapped": []
178
+ }
@@ -0,0 +1,67 @@
1
+ {
2
+ "$comment": "GENERATED by packages/tokens-build/scripts/snapshot-androidx-buttons.mjs from androidx.compose.material3 tokens (Copyright The Android Open Source Project, Apache-2.0). Values only; no source text. Do not edit.",
3
+ "reference": {
4
+ "name": "androidx.compose.material3 button size tokens",
5
+ "source": "https://github.com/androidx/androidx/tree/androidx-main/compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/tokens",
6
+ "version": "v0_11_0",
7
+ "license": "Apache-2.0",
8
+ "description": "Material 3 Expressive: the five button sizes (XSmall … XLarge)."
9
+ },
10
+ "tokens": {
11
+ "androidx.ButtonLargeTokens.ContainerHeight": "96dp",
12
+ "androidx.ButtonLargeTokens.ContainerShapeRound": "ShapeKeyTokens.CornerFull",
13
+ "androidx.ButtonLargeTokens.ContainerShapeSquare": "ShapeKeyTokens.CornerExtraLarge",
14
+ "androidx.ButtonLargeTokens.IconLabelSpace": "12dp",
15
+ "androidx.ButtonLargeTokens.IconSize": "32dp",
16
+ "androidx.ButtonLargeTokens.LeadingSpace": "48dp",
17
+ "androidx.ButtonLargeTokens.OutlinedOutlineWidth": "2dp",
18
+ "androidx.ButtonLargeTokens.PressedContainerShape": "ShapeKeyTokens.CornerLarge",
19
+ "androidx.ButtonLargeTokens.SelectedContainerShapeRound": "ShapeKeyTokens.CornerFull",
20
+ "androidx.ButtonLargeTokens.SelectedContainerShapeSquare": "ShapeKeyTokens.CornerExtraLarge",
21
+ "androidx.ButtonLargeTokens.TrailingSpace": "48dp",
22
+ "androidx.ButtonMediumTokens.ContainerHeight": "56dp",
23
+ "androidx.ButtonMediumTokens.ContainerShapeRound": "ShapeKeyTokens.CornerFull",
24
+ "androidx.ButtonMediumTokens.ContainerShapeSquare": "ShapeKeyTokens.CornerLarge",
25
+ "androidx.ButtonMediumTokens.IconLabelSpace": "8dp",
26
+ "androidx.ButtonMediumTokens.IconSize": "24dp",
27
+ "androidx.ButtonMediumTokens.LeadingSpace": "24dp",
28
+ "androidx.ButtonMediumTokens.OutlinedOutlineWidth": "1dp",
29
+ "androidx.ButtonMediumTokens.PressedContainerShape": "ShapeKeyTokens.CornerMedium",
30
+ "androidx.ButtonMediumTokens.SelectedContainerShapeRound": "ShapeKeyTokens.CornerFull",
31
+ "androidx.ButtonMediumTokens.SelectedContainerShapeSquare": "ShapeKeyTokens.CornerLarge",
32
+ "androidx.ButtonMediumTokens.TrailingSpace": "24dp",
33
+ "androidx.ButtonSmallTokens.ContainerHeight": "40dp",
34
+ "androidx.ButtonSmallTokens.ContainerShapeRound": "ShapeKeyTokens.CornerFull",
35
+ "androidx.ButtonSmallTokens.ContainerShapeSquare": "ShapeKeyTokens.CornerMedium",
36
+ "androidx.ButtonSmallTokens.IconLabelSpace": "8dp",
37
+ "androidx.ButtonSmallTokens.IconSize": "20dp",
38
+ "androidx.ButtonSmallTokens.LeadingSpace": "16dp",
39
+ "androidx.ButtonSmallTokens.OutlinedOutlineWidth": "1dp",
40
+ "androidx.ButtonSmallTokens.PressedContainerShape": "ShapeKeyTokens.CornerSmall",
41
+ "androidx.ButtonSmallTokens.SelectedContainerShapeRound": "ShapeKeyTokens.CornerFull",
42
+ "androidx.ButtonSmallTokens.SelectedContainerShapeSquare": "ShapeKeyTokens.CornerMedium",
43
+ "androidx.ButtonSmallTokens.TrailingSpace": "16dp",
44
+ "androidx.ButtonXLargeTokens.ContainerHeight": "136dp",
45
+ "androidx.ButtonXLargeTokens.ContainerShapeRound": "ShapeKeyTokens.CornerFull",
46
+ "androidx.ButtonXLargeTokens.ContainerShapeSquare": "ShapeKeyTokens.CornerExtraLarge",
47
+ "androidx.ButtonXLargeTokens.IconLabelSpace": "16dp",
48
+ "androidx.ButtonXLargeTokens.IconSize": "40dp",
49
+ "androidx.ButtonXLargeTokens.LeadingSpace": "64dp",
50
+ "androidx.ButtonXLargeTokens.OutlinedOutlineWidth": "3dp",
51
+ "androidx.ButtonXLargeTokens.PressedContainerShape": "ShapeKeyTokens.CornerLarge",
52
+ "androidx.ButtonXLargeTokens.SelectedContainerShapeRound": "ShapeKeyTokens.CornerFull",
53
+ "androidx.ButtonXLargeTokens.SelectedContainerShapeSquare": "ShapeKeyTokens.CornerExtraLarge",
54
+ "androidx.ButtonXLargeTokens.TrailingSpace": "64dp",
55
+ "androidx.ButtonXSmallTokens.ContainerHeight": "32dp",
56
+ "androidx.ButtonXSmallTokens.ContainerShapeRound": "ShapeKeyTokens.CornerFull",
57
+ "androidx.ButtonXSmallTokens.ContainerShapeSquare": "ShapeKeyTokens.CornerMedium",
58
+ "androidx.ButtonXSmallTokens.IconLabelSpace": "8dp",
59
+ "androidx.ButtonXSmallTokens.IconSize": "20dp",
60
+ "androidx.ButtonXSmallTokens.LeadingSpace": "16dp",
61
+ "androidx.ButtonXSmallTokens.OutlinedOutlineWidth": "1dp",
62
+ "androidx.ButtonXSmallTokens.PressedContainerShape": "ShapeKeyTokens.CornerSmall",
63
+ "androidx.ButtonXSmallTokens.SelectedContainerShapeRound": "ShapeKeyTokens.CornerFull",
64
+ "androidx.ButtonXSmallTokens.SelectedContainerShapeSquare": "ShapeKeyTokens.CornerMedium",
65
+ "androidx.ButtonXSmallTokens.TrailingSpace": "16dp"
66
+ }
67
+ }