@grampro/kit 2.6.3 → 2.7.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/.gbs/skills/gbs-components/SKILL.md +5 -4
- package/.gbs/skills/gbs-components/references/install.md +17 -14
- package/CHANGELOG.md +188 -0
- package/README.md +26 -7
- package/index.cjs +59 -59
- package/package.json +3 -3
- package/schema/passport-overlay-v1.schema.json +67 -0
- package/source/components/accordion/passport.json +45 -8
- package/source/components/accordion/passport.manual.json +46 -0
- package/source/components/alert/passport.json +41 -8
- package/source/components/alert/passport.manual.json +42 -0
- package/source/components/avatar/passport.json +40 -7
- package/source/components/avatar/passport.manual.json +43 -0
- package/source/components/badge/passport.json +43 -7
- package/source/components/badge/passport.manual.json +46 -0
- package/source/components/breadcrumb/passport.json +36 -7
- package/source/components/breadcrumb/passport.manual.json +39 -0
- package/source/components/button/passport.json +1 -1
- package/source/components/button/passport.manual.json +1 -1
- package/source/components/card/passport.json +45 -8
- package/source/components/card/passport.manual.json +47 -0
- package/source/components/checkbox/core/agent.ts +33 -0
- package/source/components/checkbox/core/index.ts +2 -0
- package/source/components/checkbox/passport.json +83 -10
- package/source/components/checkbox/passport.manual.json +82 -0
- package/source/components/combobox/core/agent.ts +38 -0
- package/source/components/combobox/core/index.ts +2 -0
- package/source/components/combobox/passport.json +103 -11
- package/source/components/combobox/passport.manual.json +101 -0
- package/source/components/combobox/react/props.ts +14 -0
- package/source/components/combobox/react/useCombobox.ts +7 -1
- package/source/components/data-grid/export/xlsx.ts +9 -2
- package/source/components/data-grid/passport.json +2 -2
- package/source/components/data-grid/passport.manual.json +1 -1
- package/source/components/date-picker/core/agent.ts +42 -0
- package/source/components/date-picker/core/index.ts +2 -0
- package/source/components/date-picker/passport.json +102 -11
- package/source/components/date-picker/passport.manual.json +100 -0
- package/source/components/date-picker/react/DatePicker.tsx +6 -0
- package/source/components/date-picker/react/DateRangePicker.tsx +4 -0
- package/source/components/date-picker/react/props.ts +17 -0
- package/source/components/dialog/passport.json +54 -9
- package/source/components/dialog/passport.manual.json +54 -0
- package/source/components/file-uploader/passport.json +65 -10
- package/source/components/file-uploader/passport.manual.json +64 -0
- package/source/components/input/core/agent.ts +36 -0
- package/source/components/input/core/index.ts +2 -0
- package/source/components/input/passport.json +89 -12
- package/source/components/input/passport.manual.json +86 -0
- package/source/components/menu/passport.json +64 -9
- package/source/components/menu/passport.manual.json +64 -0
- package/source/components/modal/passport.json +52 -9
- package/source/components/modal/passport.manual.json +52 -0
- package/source/components/number-input/core/agent.ts +38 -0
- package/source/components/number-input/core/index.ts +2 -0
- package/source/components/number-input/passport.json +92 -11
- package/source/components/number-input/passport.manual.json +90 -0
- package/source/components/popover/passport.json +47 -8
- package/source/components/popover/passport.manual.json +48 -0
- package/source/components/progress/passport.json +37 -8
- package/source/components/progress/passport.manual.json +39 -0
- package/source/components/radio-group/core/agent.ts +34 -0
- package/source/components/radio-group/core/index.ts +2 -0
- package/source/components/radio-group/passport.json +77 -10
- package/source/components/radio-group/passport.manual.json +76 -0
- package/source/components/shared/core/agent/field-agent.ts +101 -0
- package/source/components/shared/core/agent/field-executors.ts +137 -0
- package/source/components/shared/core/agent/field.ts +649 -0
- package/source/components/shared/core/agent/index.ts +30 -0
- package/source/components/shared/core/agent/write.ts +58 -0
- package/source/components/shared/react/useFieldAgent.ts +88 -0
- package/source/components/skeleton/passport.json +37 -6
- package/source/components/skeleton/passport.manual.json +39 -0
- package/source/components/spinner/passport.json +34 -7
- package/source/components/spinner/passport.manual.json +37 -0
- package/source/components/switch/core/agent.ts +31 -0
- package/source/components/switch/core/index.ts +2 -0
- package/source/components/switch/passport.json +68 -10
- package/source/components/switch/passport.manual.json +67 -0
- package/source/components/tabs/passport.json +50 -9
- package/source/components/tabs/passport.manual.json +50 -0
- package/source/components/textarea/core/agent.ts +34 -0
- package/source/components/textarea/core/index.ts +2 -0
- package/source/components/textarea/passport.json +83 -10
- package/source/components/textarea/passport.manual.json +82 -0
- package/source/components/toaster/passport.json +41 -8
- package/source/components/toaster/passport.manual.json +42 -0
- package/source/components/tooltip/passport.json +39 -6
- package/source/components/tooltip/passport.manual.json +41 -0
- package/tools/mcp/README.md +23 -0
- package/tools/mcp/design.cjs +6 -1
- package/tools/mcp/figma.cjs +49 -9
- package/tools/mcp/install.cjs +6 -1
- package/tools/mcp/server.cjs +30 -2
|
@@ -4,7 +4,7 @@ description: Builds UI with the GramproKit component library (@grampro/kit). Use
|
|
|
4
4
|
autoAttach: ["src/**/*.tsx", "src/**/*.jsx", "app/**/*.tsx", "components/**/*.tsx"]
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
# GBS components (2.
|
|
7
|
+
# GBS components (2.x)
|
|
8
8
|
|
|
9
9
|
## If the MCP server is connected
|
|
10
10
|
|
|
@@ -30,8 +30,9 @@ Not an npm dependency — the CLI **copies source into the repo**:
|
|
|
30
30
|
npx @grampro/kit add Button,Input,Modal
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
Writes `component-lib/<folder>/` plus `component-lib/shared/`.
|
|
34
|
-
|
|
33
|
+
Writes `component-lib/<folder>/` plus `component-lib/shared/`. No flag is
|
|
34
|
+
needed: the 2.x components are the default. Import the barrel in your
|
|
35
|
+
component:
|
|
35
36
|
|
|
36
37
|
```ts
|
|
37
38
|
import { Button } from "component-lib/button";
|
|
@@ -195,7 +196,7 @@ a bigger model.
|
|
|
195
196
|
|
|
196
197
|
## Details (in `references/`)
|
|
197
198
|
|
|
198
|
-
- `install.md` — CLI flags, folders, 1.x vs
|
|
199
|
+
- `install.md` — CLI flags, folders, 1.x vs 2.x.
|
|
199
200
|
- `forms.md` — fields, controlled state, form posting.
|
|
200
201
|
- `pickers.md` — Select, MultiSelect, DatePicker, Uploader.
|
|
201
202
|
- `overlays.md` — Modal, dialog, Popover, Menu, Tooltip.
|
|
@@ -10,7 +10,7 @@ imported from `node_modules` at runtime, and the copied files are yours to edit.
|
|
|
10
10
|
`bin: { "@grampro/kit": "index.cjs" }` and `files: ["index.cjs", "source",
|
|
11
11
|
".gbs"]`. There is nothing to `import "@grampro/kit"` from.
|
|
12
12
|
|
|
13
|
-
Peer dependencies: `react@^19` and `react-dom@^19`. The
|
|
13
|
+
Peer dependencies: `react@^19` and `react-dom@^19`. The components have no
|
|
14
14
|
other runtime dependencies.
|
|
15
15
|
|
|
16
16
|
## Commands
|
|
@@ -18,11 +18,11 @@ other runtime dependencies.
|
|
|
18
18
|
```bash
|
|
19
19
|
npx @grampro/kit add Button # one component
|
|
20
20
|
npx @grampro/kit add Button,Input,Modal # several
|
|
21
|
-
npx @grampro/kit -i
|
|
22
|
-
npx @grampro/kit -l
|
|
21
|
+
npx @grampro/kit -i # interactive picker
|
|
22
|
+
npx @grampro/kit -l # list available
|
|
23
23
|
npx @grampro/kit add Button --force # overwrite edited shared/ files
|
|
24
|
-
npx @grampro/kit skill
|
|
25
|
-
npx @grampro/kit skill --for claude
|
|
24
|
+
npx @grampro/kit skill # install this skill
|
|
25
|
+
npx @grampro/kit skill --for claude # only the Claude Code copy
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
| Flag | Alias | Meaning |
|
|
@@ -30,16 +30,19 @@ npx @grampro/kit skill --for claude # only the Claude Code copy
|
|
|
30
30
|
| `--add` | `-a` | Component, or comma-separated list. Case-insensitive. |
|
|
31
31
|
| `--interactive` | `-i` | Pick from a menu. |
|
|
32
32
|
| `--list` | `-l` | Print available components. |
|
|
33
|
-
| `--
|
|
33
|
+
| `--legacy` | — | Install from the 1.x set instead. Unmaintained; see below. |
|
|
34
34
|
| `--skill` | — | Install this skill at the project root. `-skill` and `-a skill` also work. |
|
|
35
35
|
| `--for` | — | With `--skill`: which agents to write adapters for (`claude`, `codex`, `antigravity`, or `none`). Default: all. |
|
|
36
36
|
| `--force` | — | Replace files you have edited locally in `shared/` or `.gbs/`. |
|
|
37
37
|
|
|
38
|
-
**
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
**Pass no flag.** The 2.x components are what `add` installs. `--beta` used
|
|
39
|
+
to opt in to them and now does nothing but print a notice, so do not pass it.
|
|
40
|
+
|
|
41
|
+
`--legacy` reaches the 1.x set (`Select`, `SideBar`, `FormRenderer`,
|
|
42
|
+
`MaterialInput`, `ContextMenu`, `Navbar`, `Bargraph`, `DarkMode`, `Toast`,
|
|
43
|
+
`Uploader`, `UsePaginatedData`, `UseUploader` and others). That is a different,
|
|
44
|
+
older API with different props, it is no longer maintained, and the two sets
|
|
45
|
+
are not interchangeable. Do not reach for it unless asked to.
|
|
43
46
|
|
|
44
47
|
## Installing this skill
|
|
45
48
|
|
|
@@ -78,7 +81,7 @@ CLI from the repo root (or move the folder afterwards and fix the imports).
|
|
|
78
81
|
|
|
79
82
|
```
|
|
80
83
|
component-lib/
|
|
81
|
-
shared/ installed with every
|
|
84
|
+
shared/ installed with every component
|
|
82
85
|
button/
|
|
83
86
|
data-grid/
|
|
84
87
|
input/
|
|
@@ -105,7 +108,7 @@ Note the mismatch between the install name and the import name for two of them:
|
|
|
105
108
|
- Install `Toaster`; import `toast` and `Toaster` from `component-lib/toaster`.
|
|
106
109
|
- Install `Dialog`; import `dialog` and `DialogHost` from `component-lib/dialog`.
|
|
107
110
|
|
|
108
|
-
## Available
|
|
111
|
+
## Available components
|
|
109
112
|
|
|
110
113
|
`DataGrid`, `Combobox`, `DatePicker`, `Toaster`, `FileUploader`, `Dialog`,
|
|
111
114
|
`Input`, `Modal`, `Textarea`, `Button`, `Breadcrumb`, `Checkbox`, `Tabs`,
|
|
@@ -132,7 +135,7 @@ project has no reason to have.
|
|
|
132
135
|
|
|
133
136
|
## The shared folder
|
|
134
137
|
|
|
135
|
-
Every
|
|
138
|
+
Every component imports `../../shared`. The CLI installs it alongside
|
|
136
139
|
whatever you picked, and it is versioned independently (`shared/version.json`).
|
|
137
140
|
|
|
138
141
|
Rules the installer enforces:
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,193 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.7.1
|
|
4
|
+
|
|
5
|
+
### Security
|
|
6
|
+
|
|
7
|
+
**get_guidance could read any .md file on disk.** It appended `.md` to a
|
|
8
|
+
caller-supplied `topic` and joined it onto the references folder with no
|
|
9
|
+
traversal guard, so `topic = "../../../../CHANGELOG"` returned the repo
|
|
10
|
+
CHANGELOG and the same trick reached any `.md` file the server process could
|
|
11
|
+
open. Found by a VAPT pass driving the tool with traversal payloads. The
|
|
12
|
+
server runs with your own authority, so it is a confused-deputy hole rather
|
|
13
|
+
than privilege escalation — but a tool that advertises nine fixed topics
|
|
14
|
+
should not become a file-exfiltration primitive for a prompt-injected agent.
|
|
15
|
+
It now refuses any `topic` that is not one of the shipped guidance names, with
|
|
16
|
+
a resolved-prefix check behind the allowlist. A regression test drives the
|
|
17
|
+
same payloads.
|
|
18
|
+
|
|
19
|
+
**Affected: 2.4.4 through 2.7.0** — every release that has shipped the MCP
|
|
20
|
+
server. Each was checked by running the same payload against its published
|
|
21
|
+
tarball. 2.4.3 and earlier have no MCP server and are not affected. A project
|
|
22
|
+
that installed the package locally needs `npm i -D @grampro/kit@latest`. One
|
|
23
|
+
configured with `npx -y @grampro/kit mcp` may keep running a cached copy; check
|
|
24
|
+
with `npx -y @grampro/kit --version`, and if it is not 2.7.1, run
|
|
25
|
+
`npx -y @grampro/kit@2.7.1 mcp` once to replace it.
|
|
26
|
+
|
|
27
|
+
## 2.7.0
|
|
28
|
+
|
|
29
|
+
### Added
|
|
30
|
+
|
|
31
|
+
**A design read from a URL now names its components.** An instance built
|
|
32
|
+
from a library is the most valuable thing a design can contain — it says
|
|
33
|
+
"this is a Button" instead of leaving an agent to infer it from a layer
|
|
34
|
+
name and a fill. The URL route recorded `instanceOf: "1:234"`, an opaque
|
|
35
|
+
id nothing could be done with, and discarded the maps that name it, which
|
|
36
|
+
Figma sends in the same response.
|
|
37
|
+
|
|
38
|
+
It resolves them now, preferring the component set's name over the
|
|
39
|
+
variant's: a variant is called `Size=md, Variant=primary` and its set is
|
|
40
|
+
called `Button`, and Button is what the agent is going to write. An
|
|
41
|
+
instance whose master is not in the response keeps its id rather than
|
|
42
|
+
guessing.
|
|
43
|
+
|
|
44
|
+
**Every component now says what it is for.** A passport had two halves: the
|
|
45
|
+
derived one, generated from the TypeScript, and the authored one — `purpose`,
|
|
46
|
+
`intentDomains`, `accessibility`, `composition`, `safeMutations`. The generator
|
|
47
|
+
emits empty shells for the authored half because none of it is in the types,
|
|
48
|
+
and only Button and DataGrid had ever been filled in. The other 25 are written
|
|
49
|
+
now.
|
|
50
|
+
|
|
51
|
+
`safeMutations` is the one an agent acts on: which props it may change without
|
|
52
|
+
altering behaviour, and which it may not, with the reason. An agent restyling a
|
|
53
|
+
FileUploader should be free to change `size` and `preview` and nowhere near
|
|
54
|
+
`endpoint`, `headers` or `transport` — that component is the one where a wrong
|
|
55
|
+
prop sends someone's data somewhere. `get_component` now returns all of it;
|
|
56
|
+
until this release it served `purpose` and dropped the rest, so the authored
|
|
57
|
+
half reached nobody.
|
|
58
|
+
|
|
59
|
+
Where no value in the schema's `intentDomains` enum honestly describes a
|
|
60
|
+
component, the list is left empty rather than filled for symmetry. Nine of them
|
|
61
|
+
are presentational, and a wrong routing hint is worse than none.
|
|
62
|
+
|
|
63
|
+
**A field runtime, so nine components are agent-operable instead of one.**
|
|
64
|
+
`setValue`, `clear`, `focus`, and `open`/`close` for the two that have
|
|
65
|
+
something to disclose, on Input, Textarea, NumberInput, Checkbox, Switch,
|
|
66
|
+
RadioGroup, Combobox and DatePicker.
|
|
67
|
+
|
|
68
|
+
The grid earned a runtime of its own because its operations are a language:
|
|
69
|
+
filter, sort, pin, paginate, export. A field has one verb, so the verb lives in
|
|
70
|
+
`shared/core/agent` once rather than eight times, and each component supplies
|
|
71
|
+
only a contract built from its own props. The same five layers rule on it —
|
|
72
|
+
schema, reference, coercion, policy, plausibility — so a write to a read-only
|
|
73
|
+
field is refused by name, an option that does not exist comes back with the
|
|
74
|
+
nearest one that does, and a number outside `min`/`max` is told which bound it
|
|
75
|
+
crossed rather than being silently clamped.
|
|
76
|
+
|
|
77
|
+
The open question was whether the executor abstraction generalised. A grid is
|
|
78
|
+
driven through an imperative API and a field is not, and the architecture notes
|
|
79
|
+
had flagged that as unproven. It holds: Combobox and DatePicker are driven
|
|
80
|
+
through their handles, the other six through the element their ref already
|
|
81
|
+
returns, and nothing above the executor knows which. `setValue` joins
|
|
82
|
+
`ComboboxHandle` and `DatePickerHandle` as a public method; the six that expose
|
|
83
|
+
the DOM element needed no API change at all, because the technique
|
|
84
|
+
`Input.clear()` has always used — the prototype setter plus a real event — is
|
|
85
|
+
the same write with a value in it.
|
|
86
|
+
|
|
87
|
+
`useFieldAgent` binds a contract to a ref. No component grew a prop for this.
|
|
88
|
+
|
|
89
|
+
**The authored passports had no schema of their own.** A `passport.manual.json`
|
|
90
|
+
pointed at `passport-v1.schema.json`, which describes the *merged* passport —
|
|
91
|
+
so an editor validating one reported all eight generated fields as missing
|
|
92
|
+
(`passportVersion`, `identity`, `source`, `props`, `events`, `slots`, `states`,
|
|
93
|
+
`coverage`), and `additionalProperties: false` made errors of the four keys only
|
|
94
|
+
an overlay has: `component`, `propNotes`, `notImplemented`, `$operationsNote`.
|
|
95
|
+
|
|
96
|
+
It was wrong on the two files that had it before and merely quiet; at
|
|
97
|
+
twenty-seven it is the thing that teaches people to ignore squiggles.
|
|
98
|
+
`schema/passport-overlay-v1.schema.json` describes what an overlay may
|
|
99
|
+
actually contain, referencing the merged schema for the fields they share so
|
|
100
|
+
the two cannot drift. A test holds every overlay to it, which also catches a
|
|
101
|
+
mistyped key — previously a silent no-op, since the merge only reads the names
|
|
102
|
+
it knows.
|
|
103
|
+
|
|
104
|
+
### Security
|
|
105
|
+
|
|
106
|
+
**A failed JSON parse quoted the file back.** V8 puts the first ten or so
|
|
107
|
+
characters of its input into the error it throws, so pointing `designFile` at
|
|
108
|
+
something that was not JSON returned a slice of it:
|
|
109
|
+
|
|
110
|
+
That is not JSON: Unexpected token 's', "sk-proj-RE"... is not valid JSON
|
|
111
|
+
|
|
112
|
+
Ten bytes is not an extraction, but it is enough to confirm that a path
|
|
113
|
+
exists and what kind of file sits there, and an agent can be pointed at paths
|
|
114
|
+
in a loop. The server runs with your own authority and the agent could read
|
|
115
|
+
the file directly, so this was hygiene rather than a hole — and it cost
|
|
116
|
+
nothing to close. The three parse sites in `figma.cjs`, `design.cjs` and
|
|
117
|
+
`install.cjs` now name the file and say what was expected, without quoting
|
|
118
|
+
any of it.
|
|
119
|
+
|
|
120
|
+
**The package no longer installs a build toolchain.**
|
|
121
|
+
`@grampro/headless-helpers` declared `rollup`, its plugins and `typescript`
|
|
122
|
+
as runtime dependencies, so installing the kit pulled a compiler and a
|
|
123
|
+
bundler into `node_modules` and carried their advisories — an arbitrary file
|
|
124
|
+
write in Rollup and two ReDoS in picomatch, none of which any of this code
|
|
125
|
+
runs. Requiring `^1.0.22`, which moved them to devDependencies, removes 84
|
|
126
|
+
packages from a clean install and leaves the package at zero advisories.
|
|
127
|
+
|
|
128
|
+
**Mermaid rendered with sanitisation off.** The diagram component ran with
|
|
129
|
+
`securityLevel: "loose"`, which permits HTML in labels and click handlers,
|
|
130
|
+
and its output goes through `dangerouslySetInnerHTML`. Nothing was
|
|
131
|
+
exploitable: the only diagram text comes from our own MDX at build time, and
|
|
132
|
+
in fact no page renders one. But the two together are a trap for whoever
|
|
133
|
+
first renders a diagram from anything else, so it is `"strict"` now.
|
|
134
|
+
|
|
135
|
+
### Changed
|
|
136
|
+
|
|
137
|
+
**The docs lead with the URL route.** Pasting a Figma link is one step;
|
|
138
|
+
the plugin route is five, and every one is a place to stop. The reason it
|
|
139
|
+
was necessary for designs built from a component library is now gone, so
|
|
140
|
+
the page says plainly: use the URL for a screen, and the plugin when you
|
|
141
|
+
want a whole product in one pass, or have no token, or are rate limited.
|
|
142
|
+
|
|
143
|
+
**`figma_frame` describes the URL route first.** Its own description still
|
|
144
|
+
said `designFile` was "the one to use for a whole screen", which was true
|
|
145
|
+
only while the URL route could not resolve component names. An agent reads
|
|
146
|
+
that description before it picks a route, so it was steering towards the long
|
|
147
|
+
way round. It now leads with the URL and keeps the file export for what the
|
|
148
|
+
file export is actually better at: a whole product in one pass, or no usable
|
|
149
|
+
token. The `llms.txt` preamble said nothing about the URL route at all, and
|
|
150
|
+
now says it is the shortest path from a design to a screen.
|
|
151
|
+
|
|
152
|
+
**The components are out of beta.** Only the MCP server still carries the
|
|
153
|
+
label, and it carries it in both places that matter: the docs page and the
|
|
154
|
+
`figma_frame` tool description an agent reads.
|
|
155
|
+
|
|
156
|
+
The one that was doing damage was in the agent skill, which is always in an
|
|
157
|
+
agent's context. It said **"Always pass `--beta`"** and explained that without
|
|
158
|
+
it you get the 1.x set. That had inverted: `--beta` became a no-op that prints
|
|
159
|
+
a deprecation notice, 2.x is what `add` installs, and `--legacy` is what
|
|
160
|
+
reaches 1.x. An agent following the skill was passing a dead flag and being
|
|
161
|
+
told the opposite of what the CLI does. The flag table now documents
|
|
162
|
+
`--legacy` instead, and says plainly that the 1.x set is unmaintained.
|
|
163
|
+
|
|
164
|
+
Also gone from the CLI's own output ("Redesigned beta components" when a name
|
|
165
|
+
does not match), the `llms.txt` preamble, which told every model that read the
|
|
166
|
+
site that the components were beta and their APIs might change, and the README
|
|
167
|
+
and architecture notes. `--beta` is still accepted, because scripts use it.
|
|
168
|
+
|
|
169
|
+
### Fixed
|
|
170
|
+
|
|
171
|
+
**Headings on the translated pages had meaningless ids.** The slugger kept
|
|
172
|
+
only `[a-z0-9\s-]`, which leaves a Malayalam heading with nothing but its
|
|
173
|
+
spaces — so every heading fell through to `section` or to the `-` its spaces
|
|
174
|
+
became, and then took its id from the duplicate counter:
|
|
175
|
+
|
|
176
|
+
id="-" id="--1" id="--2" id="-structured-data" id="section-2"
|
|
177
|
+
|
|
178
|
+
That counter is positional, so adding a heading renumbered every anchor below
|
|
179
|
+
it: no link to one could be relied on, and four prop-table links on
|
|
180
|
+
`ml/breadcrumb` and `ml/button` pointed at the English anchors and had never
|
|
181
|
+
resolved. The class keeps letters, digits and combining marks in any script
|
|
182
|
+
now, so those headings slug to their own text. `\p{M}` matters as much as
|
|
183
|
+
`\p{L}` here: Malayalam vowel signs are combining marks, and dropping them
|
|
184
|
+
mangles the text rather than emptying it. Every ASCII heading slugs to the
|
|
185
|
+
same string as before, so no existing anchor moved.
|
|
186
|
+
|
|
187
|
+
`pnpm check:anchors` in `docs-site` now checks every in-site fragment against
|
|
188
|
+
the headings its target page actually offers, because a dead anchor does not
|
|
189
|
+
404 — the page loads and ignores it.
|
|
190
|
+
|
|
3
191
|
## 2.6.3
|
|
4
192
|
|
|
5
193
|
### Fixed
|
package/README.md
CHANGED
|
@@ -135,7 +135,13 @@ anything first.
|
|
|
135
135
|
No dependencies, and it starts in about the time an empty Node process
|
|
136
136
|
takes. Full walkthrough, including a prompt to paste:
|
|
137
137
|
[kit.gramproindia.com/mcp-server](https://kit.gramproindia.com/mcp-server).
|
|
138
|
-
Details in [`tools/mcp/README.md`](tools/mcp/README.md)
|
|
138
|
+
Details in [`tools/mcp/README.md`](tools/mcp/README.md), including what a tool
|
|
139
|
+
call can and cannot reach.
|
|
140
|
+
|
|
141
|
+
**Use 2.7.1 or later.** From 2.4.4 through 2.7.0, a crafted `get_guidance`
|
|
142
|
+
call could read any `.md` file the server could open. The
|
|
143
|
+
[changelog](CHANGELOG.md#271) explains how to check which version your agent
|
|
144
|
+
is running.
|
|
139
145
|
|
|
140
146
|
## Figma plugin
|
|
141
147
|
|
|
@@ -197,10 +203,16 @@ have edited is never replaced without `--force`.
|
|
|
197
203
|
The 2.x line is in active development and the next release will be a major
|
|
198
204
|
version. What is built and tested:
|
|
199
205
|
|
|
200
|
-
- 27
|
|
201
|
-
- Passports for all 27, generated and drift-checked
|
|
206
|
+
- 27 components, source-first, zero runtime dependencies
|
|
207
|
+
- Passports for all 27, generated and drift-checked, and all 27 now carry the
|
|
208
|
+
authored half too: what the component is for, what it supplies to assistive
|
|
209
|
+
technology, and which props an agent may change without altering behaviour
|
|
202
210
|
- The DataGrid agent runtime: 21 operations, five validation layers, snapshot
|
|
203
211
|
undo, and a frozen 231-case evaluation corpus
|
|
212
|
+
- The field runtime: `setValue`, `clear`, `focus` and, where there is something
|
|
213
|
+
to disclose, `open` and `close` — on Input, Textarea, NumberInput, Checkbox,
|
|
214
|
+
Switch, RadioGroup, Combobox and DatePicker. The same five layers, written
|
|
215
|
+
once in `shared/core/agent` rather than eight times
|
|
204
216
|
- **`<DataGrid ai />`** — a natural-language box, driven by an adapter the
|
|
205
217
|
application supplies. No model is bundled, downloaded or named.
|
|
206
218
|
- **WebMCP** — one tool, `operate_grid`, exposing the same validated boundary to
|
|
@@ -211,10 +223,17 @@ Every producer — a model, a browser agent, a form — proposes. The validator
|
|
|
211
223
|
authorizes. The executor mutates state. That boundary is the architecture, and
|
|
212
224
|
it is why no AI path gets a second route into the component.
|
|
213
225
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
226
|
+
Nine of the 27 are agent-operable. The executor abstraction was the open
|
|
227
|
+
question — a grid is driven through an imperative API, and a field is not — and
|
|
228
|
+
it is settled: Combobox and DatePicker are driven through their handles,
|
|
229
|
+
Input, Textarea, NumberInput, Checkbox, Switch and RadioGroup through the
|
|
230
|
+
element their ref already hands back. Neither the contract, the schemas, the
|
|
231
|
+
validator nor the refusals know which.
|
|
232
|
+
|
|
233
|
+
Still open: the components whose value is in what they contain rather than what
|
|
234
|
+
they hold — Menu, Tabs, Accordion, Modal, FileUploader — and the question of
|
|
235
|
+
whether a form is better driven field by field or as one composite assembled
|
|
236
|
+
from several passports. The roadmap and its unresolved questions are in
|
|
218
237
|
[`docs/agent-native-architecture.md`](docs/agent-native-architecture.md).
|
|
219
238
|
|
|
220
239
|
## Styles
|