@vielzeug/codex 26.11.20 → 26.11.22
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/data/catalog.json +48 -48
- package/data/llms-full.txt +54 -47
- package/data/llms.txt +1 -1
- package/data/manifest.json +1 -1
- package/data/packages/bard.json +1 -1
- package/data/packages/dnd.json +2 -2
- package/data/packages/gesture.json +2 -2
- package/data/refine.json +78 -2
- package/package.json +2 -2
- package/skills/vielzeug/SKILL.md +18 -16
package/data/refine.json
CHANGED
|
@@ -1805,6 +1805,74 @@
|
|
|
1805
1805
|
"default": "{ lg: { '--_min-height': 'var(--size-40)', fontSize: 'var(--text-base)', }, md: { '--_min-height': 'var(--size-32)', fontSize: 'var(--text-sm)', }, sm: { '--_min-height': 'var(--size-28)', fontSize: 'var(--text-xs)', }, } satisfies FullSizePreset",
|
|
1806
1806
|
"description": "Shared size preset for the file-input dropzone."
|
|
1807
1807
|
},
|
|
1808
|
+
{
|
|
1809
|
+
"kind": "variable",
|
|
1810
|
+
"name": "SWIPE_EDITABLE_SELECTOR"
|
|
1811
|
+
},
|
|
1812
|
+
{
|
|
1813
|
+
"kind": "variable",
|
|
1814
|
+
"name": "SWIPE_INTERACTIVE_SELECTOR",
|
|
1815
|
+
"default": "`a[href], button, summary, label, ore-button, ore-checkbox, [role=\"button\"], [role=\"link\"], ${SWIPE_EDITABLE_SELECTOR}`"
|
|
1816
|
+
},
|
|
1817
|
+
{
|
|
1818
|
+
"kind": "variable",
|
|
1819
|
+
"name": "SWIPE_SURFACES",
|
|
1820
|
+
"type": {
|
|
1821
|
+
"text": "string"
|
|
1822
|
+
},
|
|
1823
|
+
"default": "'[data-no-swipe], ore-carousel, ore-list-item, ore-pull-to-refresh, ore-sidebar, ore-toast, ore-drawer'"
|
|
1824
|
+
},
|
|
1825
|
+
{
|
|
1826
|
+
"kind": "variable",
|
|
1827
|
+
"name": "SWIPE_EXCLUSIONS",
|
|
1828
|
+
"default": "`${SWIPE_INTERACTIVE_SELECTOR}, ${SWIPE_SURFACES}`"
|
|
1829
|
+
},
|
|
1830
|
+
{
|
|
1831
|
+
"kind": "function",
|
|
1832
|
+
"name": "swipePath",
|
|
1833
|
+
"return": {
|
|
1834
|
+
"type": {
|
|
1835
|
+
"text": "HTMLElement[]"
|
|
1836
|
+
}
|
|
1837
|
+
},
|
|
1838
|
+
"parameters": [
|
|
1839
|
+
{
|
|
1840
|
+
"name": "event",
|
|
1841
|
+
"type": {
|
|
1842
|
+
"text": "Event"
|
|
1843
|
+
}
|
|
1844
|
+
},
|
|
1845
|
+
{
|
|
1846
|
+
"name": "boundary",
|
|
1847
|
+
"type": {
|
|
1848
|
+
"text": "Element"
|
|
1849
|
+
}
|
|
1850
|
+
}
|
|
1851
|
+
]
|
|
1852
|
+
},
|
|
1853
|
+
{
|
|
1854
|
+
"kind": "function",
|
|
1855
|
+
"name": "canScrollInDirection",
|
|
1856
|
+
"return": {
|
|
1857
|
+
"type": {
|
|
1858
|
+
"text": "boolean"
|
|
1859
|
+
}
|
|
1860
|
+
},
|
|
1861
|
+
"parameters": [
|
|
1862
|
+
{
|
|
1863
|
+
"name": "elements",
|
|
1864
|
+
"type": {
|
|
1865
|
+
"text": "readonly HTMLElement[]"
|
|
1866
|
+
}
|
|
1867
|
+
},
|
|
1868
|
+
{
|
|
1869
|
+
"name": "{ axis, direction }",
|
|
1870
|
+
"type": {
|
|
1871
|
+
"text": "{ axis: 'x' | 'y'; direction: number }"
|
|
1872
|
+
}
|
|
1873
|
+
}
|
|
1874
|
+
]
|
|
1875
|
+
},
|
|
1808
1876
|
{
|
|
1809
1877
|
"kind": "variable",
|
|
1810
1878
|
"name": "COMPONENT_SIZES",
|
|
@@ -10921,14 +10989,14 @@
|
|
|
10921
10989
|
"text": "'ore-rating'"
|
|
10922
10990
|
},
|
|
10923
10991
|
"default": "'ore-rating'",
|
|
10924
|
-
"description": "A star rating control.\n\nImplements the WAI-ARIA slider rating pattern: the star row is a single\nfocusable `role=\"slider\"`, arrows adjust by `precision`, Home/End jump to\n0/max, click or drag sets the star (the
|
|
10992
|
+
"description": "A star rating control.\n\nImplements the WAI-ARIA slider rating pattern: the star row is a single\nfocusable `role=\"slider\"`, arrows adjust by `precision`, Home/End jump to\n0/max, click or drag sets the star (the leading half of a star with\n`precision=\"0.5\"` selects the half step). Selected stars are always filled,\nso filled-vs-outline carries the value without relying on color."
|
|
10925
10993
|
},
|
|
10926
10994
|
{
|
|
10927
10995
|
"kind": "class",
|
|
10928
10996
|
"name": "OreRatingElement",
|
|
10929
10997
|
"tagName": "ore-rating",
|
|
10930
10998
|
"customElement": true,
|
|
10931
|
-
"description": "A star rating control.\nImplements the WAI-ARIA slider rating pattern: the star row is a single\nfocusable `role=\"slider\"`, arrows adjust by `precision`, Home/End jump to\n0/max, click or drag sets the star (the
|
|
10999
|
+
"description": "A star rating control.\nImplements the WAI-ARIA slider rating pattern: the star row is a single\nfocusable `role=\"slider\"`, arrows adjust by `precision`, Home/End jump to\n0/max, click or drag sets the star (the leading half of a star with\n`precision=\"0.5\"` selects the half step). Selected stars are always filled,\nso filled-vs-outline carries the value without relying on color.",
|
|
10932
11000
|
"summary": "",
|
|
10933
11001
|
"attributes": [
|
|
10934
11002
|
{
|
|
@@ -16028,6 +16096,14 @@
|
|
|
16028
16096
|
},
|
|
16029
16097
|
"description": "Prevent backdrop-click from closing (default: false)",
|
|
16030
16098
|
"default": "false"
|
|
16099
|
+
},
|
|
16100
|
+
{
|
|
16101
|
+
"name": "swipe-from-content",
|
|
16102
|
+
"type": {
|
|
16103
|
+
"text": "boolean"
|
|
16104
|
+
},
|
|
16105
|
+
"description": "Allow touch dragging from the body at its scroll boundary (default: true)",
|
|
16106
|
+
"default": "true"
|
|
16031
16107
|
}
|
|
16032
16108
|
],
|
|
16033
16109
|
"events": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vielzeug/codex",
|
|
3
|
-
"version": "26.11.
|
|
3
|
+
"version": "26.11.22",
|
|
4
4
|
"description": "MCP server exposing all Vielzeug docs to AI clients",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/node": "^26.6.6",
|
|
55
|
-
"@vielzeug/refine": "26.11.
|
|
55
|
+
"@vielzeug/refine": "26.11.22",
|
|
56
56
|
"typescript": "^6.0.3",
|
|
57
57
|
"vitest": "^5.1.0"
|
|
58
58
|
}
|
package/skills/vielzeug/SKILL.md
CHANGED
|
@@ -9,7 +9,7 @@ Vielzeug is a monorepo of independently published TypeScript packages. "Zero dep
|
|
|
9
9
|
|
|
10
10
|
## Detect
|
|
11
11
|
|
|
12
|
-
1.
|
|
12
|
+
1. If codex's MCP server is connected, call `check-install` once per project: it compares every declared `@vielzeug/*` dependency with the snapshot. Offline, read `package.json` (`dependencies`, `devDependencies`, `peerDependencies`) and list every `@vielzeug/*` entry, resolving each installed version from `node_modules/@vielzeug/<pkg>/package.json` when present, otherwise from the package-manager lockfile.
|
|
13
13
|
2. Note whether `@vielzeug/refine` is installed. If it is, the **Refine** and **Theme** sections below are mandatory for any UI work.
|
|
14
14
|
3. Read the project's own agent contract (`AGENTS.md`, `.github/copilot-instructions.md`) first: project rules win over this skill.
|
|
15
15
|
|
|
@@ -17,24 +17,25 @@ Vielzeug is a monorepo of independently published TypeScript packages. "Zero dep
|
|
|
17
17
|
|
|
18
18
|
Never guess exports, attributes, events, slots, or token names. Look them up:
|
|
19
19
|
|
|
20
|
-
| Question
|
|
21
|
-
|
|
|
22
|
-
| Which package solves X?
|
|
23
|
-
| How do I use package X?
|
|
24
|
-
| Exact signature of an export
|
|
25
|
-
|
|
|
26
|
-
|
|
|
27
|
-
|
|
|
28
|
-
|
|
|
29
|
-
|
|
|
30
|
-
|
|
|
31
|
-
|
|
|
20
|
+
| Question | MCP tool (`@vielzeug/codex`) | Offline fallback |
|
|
21
|
+
| ----------------------------------------------------------------- | ------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
|
|
22
|
+
| Which package solves X? | `search-packages`, `list-packages` | the package list below |
|
|
23
|
+
| How do I use package X? | `get-docs` (`index`, `usage`, `api`, `examples`) | `node_modules/@vielzeug/<pkg>/README.md` |
|
|
24
|
+
| Exact signature of an export | `get-type-signature` (`slug`, `symbol`) | the declaration file named by the installed manifest's matching export |
|
|
25
|
+
| Bundled source of one package (only on a `check-install` `match`) | `get-source` (`packageSlug`) | the installed package's declaration files; checkout `packages/<pkg>/src/` when the repository is checked out |
|
|
26
|
+
| Runnable example | `list-examples`, `get-example` | package README; `docs/<pkg>/examples/` when the Vielzeug repository is checked out |
|
|
27
|
+
| Which Refine components exist? | `refine-list-components` (tags + descriptions) | `rg '"tagName"' node_modules/@vielzeug/refine/dist/custom-elements.json` |
|
|
28
|
+
| Attributes, properties, events, slots, CSS parts of `ore-*` | `refine-get-component` | extract the matching `tagName` declaration from the manifest with a JSON parser |
|
|
29
|
+
| Component CSS custom properties | `refine-get-tokens` (pass a prefix) | extract the component's `cssProperties` from the manifest |
|
|
30
|
+
| Global design tokens | targeted search in installed theme CSS | `node_modules/@vielzeug/refine/dist/styles/theme.css` or checkout `packages/refine/src/styles/theme.css` |
|
|
31
|
+
| Are component attribute names recognized? | `refine-validate-usage` | compare against the manifest |
|
|
32
|
+
| Blank component scaffold | `refine-generate-template` | N/A |
|
|
32
33
|
|
|
33
34
|
Look each thing up once, from the smallest source that answers it: reuse a lookup already in this task while its version and relevant inputs remain unchanged; read one component with `refine-get-component` instead of listing the whole catalog; pass the narrowest known prefix (prefer an exact token name when known) to `refine-get-tokens`; fetch the one `get-docs` page that answers the question, not `index` + `usage` + `api` + `examples`. Verified installed declarations or checkout source are sufficient evidence without an additional docs fetch. Offline, use targeted searches to locate source or CSS; extract a component declaration from the JSON manifest with a structured parser rather than dumping the manifest.
|
|
34
35
|
|
|
35
36
|
`refine-get-tokens` reads CEM component CSS properties, not the complete global theme. For global tokens such as `--size-*`, search the relevant prefix or exact name in theme CSS; an empty MCP result does not prove a global token is unavailable. `tokens.css` only imports the underlying stylesheets.
|
|
36
37
|
|
|
37
|
-
Codex serves a versioned snapshot, which may not match the versions installed in the project or include the newest packages.
|
|
38
|
+
Codex serves a versioned snapshot, which may not match the versions installed in the project or include the newest packages. Call codex's `check-install` once per project to compare the snapshot against every `@vielzeug/*` dependency the project declares; it reports `match`, `drift`, `linked`, `not-in-snapshot`, or `unresolved`. Use snapshot docs, signatures, and `get-source` only for a `match`. Otherwise, treat the installed package's declarations, docs, and runtime as authoritative; do not use newer snapshot APIs unless the dependency is deliberately updated. Treat the generated package list as a discovery aid, not proof that no other package exists.
|
|
38
39
|
|
|
39
40
|
`get-docs` reaches only the four standard pages (`index`, `api`, `usage`, `examples`). A package's extra guides (Refine's `frameworks`, `theming`, `accessibility`, per-component references) are not in that set: read them from `https://vielzeug.dev/<pkg>/<page>` or from the checkout's `docs/<pkg>/`, not from `get-docs`.
|
|
40
41
|
|
|
@@ -101,6 +102,7 @@ Common compositions (verify unfamiliar APIs from the smallest applicable source
|
|
|
101
102
|
- **Data**: `courier` for HTTP with caching and structured errors; `sourcerer` for paged/cursor/infinite collections; `vault` for storage; `postmaster` for durable jobs; `scout` for fuzzy search; `mesh` for backendless peer sessions on a LAN; `sigil` for QR generation/scanning: prefer `ore-qr-code` / `ore-qr-scanner` when Refine is installed.
|
|
102
103
|
- **Forms**: `forge` for form state, validation, and submission; `spell` for schemas; render fields with Refine inputs when Refine is installed.
|
|
103
104
|
- **App shell**: `wayfinder` routing; `conduit` DI; `herald` events; `lingua` i18n; `rune` logging; `ward` authorization; `keymap` shortcuts.
|
|
105
|
+
- **Dates**: `tempo` for date utilities; do not hand-roll date math.
|
|
104
106
|
- **Own cleanup** for every stateful handle or subscription whose API documents disposal or unsubscription, and tie it to the owner's lifecycle. Pure functions and value-returning APIs need no cleanup; verify the specific API contract rather than assuming it returns a disposable.
|
|
105
107
|
|
|
106
108
|
## Refine (when `@vielzeug/refine` is installed)
|
|
@@ -128,7 +130,7 @@ Refine is the UI layer. Build interfaces from `ore-*` elements before anything e
|
|
|
128
130
|
|
|
129
131
|
7. **Check attribute names** with `refine-validate-usage` when available. It only checks for unknown attributes on the specified component's opening tag; it does not validate HTML generally, attribute values, JavaScript properties, events, slots, accessibility, or runtime behavior. Check those against the component docs and relevant tests instead.
|
|
130
132
|
|
|
131
|
-
8. **Missing capability?** Compose existing `ore-*` elements when they fit. If none meets the documented feature and project requirements, use the simplest appropriate native element or other package and report the gap
|
|
133
|
+
8. **Missing capability?** Compose existing `ore-*` elements when they fit. If none meets the documented feature and project requirements, use the simplest appropriate native element or other package and report the gap.
|
|
132
134
|
|
|
133
135
|
## Theme (when `@vielzeug/refine` is installed)
|
|
134
136
|
|
|
@@ -165,6 +167,6 @@ Refine covers the widget layer; these provide specialized behavior it may not co
|
|
|
165
167
|
|
|
166
168
|
- Every new capability maps to an installed `@vielzeug/*` package or is justified as out of scope.
|
|
167
169
|
- No parallel implementation of something an installed package provides.
|
|
168
|
-
- With Refine installed:
|
|
170
|
+
- With Refine installed: component choice follows Refine step 3; load `tokens.css` + `fouc.css` once, use the attribute checker within its stated limits, and use Refine tokens for app styling where suitable tokens exist.
|
|
169
171
|
- Every API that documents an owned resource or cleanup operation is integrated with the owning lifecycle; pure and value-returning APIs are not given invented cleanup.
|
|
170
172
|
- Claims about package APIs were verified from an applicable lookup, installed declarations, or checkout source, not recalled; completion does not require repeating unchanged evidence.
|