@vielzeug/codex 26.11.21 → 26.11.23

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/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",
@@ -7511,7 +7579,7 @@
7511
7579
  "slots": [
7512
7580
  {
7513
7581
  "name": "",
7514
- "description": "Place ore-button elements here"
7582
+ "description": "Place ore-button elements here, each optionally wrapped in an ore-tooltip"
7515
7583
  }
7516
7584
  ],
7517
7585
  "cssParts": [
@@ -7545,7 +7613,7 @@
7545
7613
  "demos": [
7546
7614
  {
7547
7615
  "url": "",
7548
- "description": "```html\n<ore-button-group attached rounded=\"full\">\n <ore-button variant=\"solid\" color=\"primary\">Save</ore-button>\n <ore-button variant=\"solid\" color=\"primary\">Save &amp; Continue</ore-button>\n</ore-button-group>\n<ore-button-group attached value=\"list\" label=\"View mode\" color=\"primary\">\n <ore-button value=\"list\">List</ore-button>\n <ore-button value=\"grid\">Grid</ore-button>\n</ore-button-group>\n<ore-button-group orientation=\"vertical\" size=\"sm\">\n <ore-button>Top</ore-button>\n <ore-button>Middle</ore-button>\n <ore-button>Bottom</ore-button>\n</ore-button-group>\n```"
7616
+ "description": "```html\n<ore-button-group attached rounded=\"full\">\n <ore-button variant=\"solid\" color=\"primary\">Save</ore-button>\n <ore-button variant=\"solid\" color=\"primary\">Save &amp; Continue</ore-button>\n</ore-button-group>\n<ore-button-group attached value=\"list\" label=\"View mode\" color=\"primary\">\n <ore-button value=\"list\">List</ore-button>\n <ore-button value=\"grid\">Grid</ore-button>\n</ore-button-group>\n<ore-button-group value=\"copy\" label=\"Copy format\">\n <ore-tooltip content=\"Copy as text\" placement=\"top\"><ore-button value=\"text\">Text</ore-button></ore-tooltip>\n <ore-tooltip content=\"Copy as HTML\" placement=\"top\"><ore-button value=\"html\">HTML</ore-button></ore-tooltip>\n</ore-button-group>\n<ore-button-group orientation=\"vertical\" size=\"sm\">\n <ore-button>Top</ore-button>\n <ore-button>Middle</ore-button>\n <ore-button>Bottom</ore-button>\n</ore-button-group>\n```"
7549
7617
  }
7550
7618
  ]
7551
7619
  },
@@ -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 right 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."
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 right 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.",
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
  {
@@ -12655,14 +12723,14 @@
12655
12723
  "text": "'ore-dock'"
12656
12724
  },
12657
12725
  "default": "'ore-dock'",
12658
- "description": "The navbar's other twin: a bar of actions that pins to a viewport edge while its container\nscrolls, and settles into the document flow once that container ends.\n\nThree named places and a tool row. `start` and `commit` are the flanks, `center` is the one\nplace allowed to carry a non-action (a clock, a stat block), and the default slot is the row\nof tools between them. A place nothing is assigned to leaves no gap and no flex line: the bar\ncollapses to the places it actually carries.\n\nWide, the bar is a full-width strip flush to its edge, wearing a hairline only while pinned.\nFrom the desktop width (1280 px) up, a claimed `center` sits dead-center because both sides of\nthe row take an equal share. Below the phone width (640 px) the bar becomes a tool row in\nthe iOS toolbar grammar: the flanks stretch equally so the tools rest on the row's true middle\nwhile space permits. Flank content takes priority over centering; crowded zones wrap rather\nthan overlapping or shrinking controls.\nThe bar detaches from the viewport's foot, and `center` lifts out of the row to hover above it.\nBy default, a phone row with one action zone hugs its content: `start` aligns to the leading\nedge, `commit` to the trailing edge, and tools to the middle. A lone `center` stays in the row.\nMultiple action zones and attached tools fill the row. `mobile-layout=\"full\"` always fills it;\n`mobile-layout=\"compact\"` always hugs and centers it. Above the phone width every bar is a\nfull-width strip.\n\nThe bar's surface rides a pseudo-element, never the host: `backdrop-filter` on the host would\nmake it a containing block for `position: fixed` descendants, trapping any panel a slotted\ncontrol opens (a menu, a tooltip) inside the bar's own box.\n\nSizing reaches slotted content through custom properties only (`--dock-tool-flex`,\n`--dock-tool-radius`): a shadow-tree `::slotted()` declaration ranks below any document-tree\nrule on the same property, so a consumer that sets `flex` or `width` on a dock child outranks\nthe bar's own layout. Where a bar must stretch its tools (`attached`), it does so by reading\n`--dock-tool-flex`, so the consumer's lever is the property, not a fight with a declaration.\nEvery such rule is scoped through the zone that owns the slot, because `::slotted()` reaches the\nchildren of every slot the bar renders. The flanks keep their own shape.\n\nThe host reflects which places are filled as `data-start-claimed`, `data-center-claimed`,\n`data-tools-claimed`, and `data-commit-claimed`, plus `data-pinned` while the bar is holding its\nedge. Those exist because no selector can derive them: `:has()` cannot see slotted content and a\n`<slot>` always matches `:empty`. The phone layout needs no reflection: it is a plain media\nquery in the bar's own stylesheet, the same way every other refine breakpoint is written."
12726
+ "description": "The navbar's other twin: a bar of actions that pins to a viewport edge while its container\nscrolls, and settles into the document flow once that container ends.\n\nThree named places and a tool row. `start` and `commit` are the flanks, `center` is the one\nplace allowed to carry a non-action (a clock, a stat block), and the default slot is the row\nof tools between them. A place nothing is assigned to leaves no gap and no flex line: the bar\ncollapses to the places it actually carries.\n\nWide, the bar is a full-width strip flush to its edge, wearing a hairline only while pinned.\nFrom the desktop width (1280 px) up, a claimed `center` sits dead-center because both sides of\nthe row take an equal share. Below the phone width (640 px) the bar becomes a tool row in\nthe iOS toolbar grammar: the flanks stretch equally so the tools rest on the row's true middle\nwhile space permits. Flank content takes priority over centering; crowded zones wrap rather\nthan overlapping or shrinking controls.\nThe bar detaches from the viewport's foot, and `center` lifts out of the row to hover above it.\nBy default, a phone row with one action zone hugs its content: `start` aligns to the leading\nedge, `commit` to the trailing edge, and tools to the middle. A lone `center` stays in the row.\nMultiple action zones and attached tools fill the row. `mobile-layout=\"full\"` always fills it;\n`mobile-layout=\"compact\"` always hugs and centers it. Above the phone width every bar is a\nfull-width strip.\n\nThe bar's surface rides a pseudo-element, never the host: `backdrop-filter` on the host would\nmake it a containing block for `position: fixed` descendants, trapping any panel a slotted\ncontrol opens (a menu, a tooltip) inside the bar's own box.\n\n`floating` replaces the strip with a capsule: the bar detaches from its edge on every width,\nhugs its content, centers itself in the container, and carries its own border and shadow. It is\ndetached at every scroll position, so the pinned hairline never applies. A floating bar is\nanchored to the viewport, which would let it escape a docs preview; the same container heuristic\nthe navbar uses flips it to `position: absolute` (reflected as `data-preview-mode`) whenever its\ncontainer is narrower than the window.\n\nSizing reaches slotted content through custom properties only (`--dock-tool-flex`,\n`--dock-tool-radius`): a shadow-tree `::slotted()` declaration ranks below any document-tree\nrule on the same property, so a consumer that sets `flex` or `width` on a dock child outranks\nthe bar's own layout. Where a bar must stretch its tools (`attached`), it does so by reading\n`--dock-tool-flex`, so the consumer's lever is the property, not a fight with a declaration.\nEvery such rule is scoped through the zone that owns the slot, because `::slotted()` reaches the\nchildren of every slot the bar renders. The flanks keep their own shape.\n\nThe host reflects which places are filled as `data-start-claimed`, `data-center-claimed`,\n`data-tools-claimed`, and `data-commit-claimed`, plus `data-pinned` while the bar is holding its\nedge. Those exist because no selector can derive them: `:has()` cannot see slotted content and a\n`<slot>` always matches `:empty`. The phone layout needs no reflection: it is a plain media\nquery in the bar's own stylesheet, the same way every other refine breakpoint is written."
12659
12727
  },
12660
12728
  {
12661
12729
  "kind": "class",
12662
12730
  "name": "OreDockElement",
12663
12731
  "tagName": "ore-dock",
12664
12732
  "customElement": true,
12665
- "description": "The navbar's other twin: a bar of actions that pins to a viewport edge while its container\nscrolls, and settles into the document flow once that container ends.\nThree named places and a tool row. `start` and `commit` are the flanks, `center` is the one\nplace allowed to carry a non-action (a clock, a stat block), and the default slot is the row\nof tools between them. A place nothing is assigned to leaves no gap and no flex line: the bar\ncollapses to the places it actually carries.\nWide, the bar is a full-width strip flush to its edge, wearing a hairline only while pinned.\nFrom the desktop width (1280 px) up, a claimed `center` sits dead-center because both sides of\nthe row take an equal share. Below the phone width (640 px) the bar becomes a tool row in\nthe iOS toolbar grammar: the flanks stretch equally so the tools rest on the row's true middle\nwhile space permits. Flank content takes priority over centering; crowded zones wrap rather\nthan overlapping or shrinking controls.\nThe bar detaches from the viewport's foot, and `center` lifts out of the row to hover above it.\nBy default, a phone row with one action zone hugs its content: `start` aligns to the leading\nedge, `commit` to the trailing edge, and tools to the middle. A lone `center` stays in the row.\nMultiple action zones and attached tools fill the row. `mobile-layout=\"full\"` always fills it;\n`mobile-layout=\"compact\"` always hugs and centers it. Above the phone width every bar is a\nfull-width strip.\nThe bar's surface rides a pseudo-element, never the host: `backdrop-filter` on the host would\nmake it a containing block for `position: fixed` descendants, trapping any panel a slotted\ncontrol opens (a menu, a tooltip) inside the bar's own box.\nSizing reaches slotted content through custom properties only (`--dock-tool-flex`,\n`--dock-tool-radius`): a shadow-tree `::slotted()` declaration ranks below any document-tree\nrule on the same property, so a consumer that sets `flex` or `width` on a dock child outranks\nthe bar's own layout. Where a bar must stretch its tools (`attached`), it does so by reading\n`--dock-tool-flex`, so the consumer's lever is the property, not a fight with a declaration.\nEvery such rule is scoped through the zone that owns the slot, because `::slotted()` reaches the\nchildren of every slot the bar renders. The flanks keep their own shape.\nThe host reflects which places are filled as `data-start-claimed`, `data-center-claimed`,\n`data-tools-claimed`, and `data-commit-claimed`, plus `data-pinned` while the bar is holding its\nedge. Those exist because no selector can derive them: `:has()` cannot see slotted content and a\n`<slot>` always matches `:empty`. The phone layout needs no reflection: it is a plain media\nquery in the bar's own stylesheet, the same way every other refine breakpoint is written.",
12733
+ "description": "The navbar's other twin: a bar of actions that pins to a viewport edge while its container\nscrolls, and settles into the document flow once that container ends.\nThree named places and a tool row. `start` and `commit` are the flanks, `center` is the one\nplace allowed to carry a non-action (a clock, a stat block), and the default slot is the row\nof tools between them. A place nothing is assigned to leaves no gap and no flex line: the bar\ncollapses to the places it actually carries.\nWide, the bar is a full-width strip flush to its edge, wearing a hairline only while pinned.\nFrom the desktop width (1280 px) up, a claimed `center` sits dead-center because both sides of\nthe row take an equal share. Below the phone width (640 px) the bar becomes a tool row in\nthe iOS toolbar grammar: the flanks stretch equally so the tools rest on the row's true middle\nwhile space permits. Flank content takes priority over centering; crowded zones wrap rather\nthan overlapping or shrinking controls.\nThe bar detaches from the viewport's foot, and `center` lifts out of the row to hover above it.\nBy default, a phone row with one action zone hugs its content: `start` aligns to the leading\nedge, `commit` to the trailing edge, and tools to the middle. A lone `center` stays in the row.\nMultiple action zones and attached tools fill the row. `mobile-layout=\"full\"` always fills it;\n`mobile-layout=\"compact\"` always hugs and centers it. Above the phone width every bar is a\nfull-width strip.\nThe bar's surface rides a pseudo-element, never the host: `backdrop-filter` on the host would\nmake it a containing block for `position: fixed` descendants, trapping any panel a slotted\ncontrol opens (a menu, a tooltip) inside the bar's own box.\n`floating` replaces the strip with a capsule: the bar detaches from its edge on every width,\nhugs its content, centers itself in the container, and carries its own border and shadow. It is\ndetached at every scroll position, so the pinned hairline never applies. A floating bar is\nanchored to the viewport, which would let it escape a docs preview; the same container heuristic\nthe navbar uses flips it to `position: absolute` (reflected as `data-preview-mode`) whenever its\ncontainer is narrower than the window.\nSizing reaches slotted content through custom properties only (`--dock-tool-flex`,\n`--dock-tool-radius`): a shadow-tree `::slotted()` declaration ranks below any document-tree\nrule on the same property, so a consumer that sets `flex` or `width` on a dock child outranks\nthe bar's own layout. Where a bar must stretch its tools (`attached`), it does so by reading\n`--dock-tool-flex`, so the consumer's lever is the property, not a fight with a declaration.\nEvery such rule is scoped through the zone that owns the slot, because `::slotted()` reaches the\nchildren of every slot the bar renders. The flanks keep their own shape.\nThe host reflects which places are filled as `data-start-claimed`, `data-center-claimed`,\n`data-tools-claimed`, and `data-commit-claimed`, plus `data-pinned` while the bar is holding its\nedge. Those exist because no selector can derive them: `:has()` cannot see slotted content and a\n`<slot>` always matches `:empty`. The phone layout needs no reflection: it is a plain media\nquery in the bar's own stylesheet, the same way every other refine breakpoint is written.",
12666
12734
  "summary": "",
12667
12735
  "attributes": [
12668
12736
  {
@@ -12679,6 +12747,13 @@
12679
12747
  },
12680
12748
  "description": "Pin to the edge while the container scrolls (default true)"
12681
12749
  },
12750
+ {
12751
+ "name": "floating",
12752
+ "type": {
12753
+ "text": "boolean"
12754
+ },
12755
+ "description": "Detach the bar from its edge as a capsule inset from that edge"
12756
+ },
12682
12757
  {
12683
12758
  "name": "attached",
12684
12759
  "type": {
@@ -12760,7 +12835,11 @@
12760
12835
  },
12761
12836
  {
12762
12837
  "name": "--dock-radius",
12763
- "description": "Bar corner radius, used by the pinned phone pill"
12838
+ "description": "Bar corner radius, used by the pinned phone pill and the floating capsule"
12839
+ },
12840
+ {
12841
+ "name": "--dock-shadow",
12842
+ "description": "Shadow under a `floating` bar"
12764
12843
  },
12765
12844
  {
12766
12845
  "name": "--dock-offset",
@@ -16028,6 +16107,14 @@
16028
16107
  },
16029
16108
  "description": "Prevent backdrop-click from closing (default: false)",
16030
16109
  "default": "false"
16110
+ },
16111
+ {
16112
+ "name": "swipe-from-content",
16113
+ "type": {
16114
+ "text": "boolean"
16115
+ },
16116
+ "description": "Allow touch dragging from the body at its scroll boundary (default: true)",
16117
+ "default": "true"
16031
16118
  }
16032
16119
  ],
16033
16120
  "events": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vielzeug/codex",
3
- "version": "26.11.21",
3
+ "version": "26.11.23",
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.21",
55
+ "@vielzeug/refine": "26.11.23",
56
56
  "typescript": "^6.0.3",
57
57
  "vitest": "^5.1.0"
58
58
  }
@@ -9,32 +9,33 @@ Vielzeug is a monorepo of independently published TypeScript packages. "Zero dep
9
9
 
10
10
  ## Detect
11
11
 
12
- 1. Read `package.json` (`dependencies`, `devDependencies`, `peerDependencies`) and list every `@vielzeug/*` entry. Resolve each installed version from `node_modules/@vielzeug/<pkg>/package.json` when present, otherwise from the package-manager lockfile.
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
- 3. Read the project's own agent contract (`AGENTS.md`, `.github/copilot-instructions.md`) first: project rules win over this skill.
14
+ 3. Read the project's own agent contract (`AGENTS.md`, `.github/copilot-instructions.md`) first: project rules win over this skill. Also load the nearest subtree `AGENTS.md` before editing inside it (index at the end of root `AGENTS.md`).
15
15
 
16
16
  ## Discover, don't recall
17
17
 
18
18
  Never guess exports, attributes, events, slots, or token names. Look them up:
19
19
 
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` | the declaration file named by the installed manifest's matching export |
25
- | Runnable example | `list-examples`, `get-example` | package README; `docs/<pkg>/examples/` when the Vielzeug repository is checked out |
26
- | Which Refine components exist? | `refine-list-components` (tags + descriptions) | `rg '"tagName"' node_modules/@vielzeug/refine/dist/custom-elements.json` |
27
- | Attributes, properties, events, slots, CSS parts of `ore-*` | `refine-get-component` | extract the matching `tagName` declaration from the manifest with a JSON parser |
28
- | Component CSS custom properties | `refine-get-tokens` (pass a prefix) | extract the component's `cssProperties` from the manifest |
29
- | 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` |
30
- | Are component attribute names recognized? | `refine-validate-usage` | compare against the manifest |
31
- | Blank component scaffold | `refine-generate-template` | N/A |
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. Compare `get-package`'s `version` with the installed version before using its API docs or signatures, or call codex's `check-install` tool once per project to compare the snapshot against every `@vielzeug/*` dependency the project declares. If they differ, 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
+ 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
 
@@ -49,6 +50,7 @@ If a need matches a package below, use that package. Do not reimplement signals,
49
50
  - `@vielzeug/archive`: Community content publishing for Cloudflare Workers + D1: a hardened Worker core over per-collection payload schemas
50
51
  - `@vielzeug/arsenal`: Non-trivial TypeScript utilities: retry, cancellation, cache, safe-path, serialization, prototype-pollution-guarded collections
51
52
  - `@vielzeug/assay`: Framework-agnostic DOM testing primitives: scoped queries, event dispatch, async waiting
53
+ - `@vielzeug/atlas`: Spatial math, camera, and indexing primitives for 2D canvases
52
54
  - `@vielzeug/bard`: Lifecycle-owned Web Audio mixing: buses with ducking, buffered SFX and sprites, procedural synth, streamed tracks, and crossfading music decks
53
55
  - `@vielzeug/beacon`: Guided onboarding and contextual product tours for web applications
54
56
  - `@vielzeug/clockwork`: Framework-neutral finite state machines with pure transitions and actors
@@ -60,9 +62,10 @@ If a need matches a package below, use that package. Do not reimplement signals,
60
62
  - `@vielzeug/flux`: Minimal push streams with explicit ownership, bounded buffering, and structural bridges
61
63
  - `@vielzeug/focus`: Framework-neutral list navigation and focus restoration primitives
62
64
  - `@vielzeug/forge`: Typed form state, validation, submission
63
- - `@vielzeug/gesture`: Framework-neutral two-dimensional pointer drag and one-axis pan recognition with lifecycle-owned handles
65
+ - `@vielzeug/gesture`: Framework-neutral pointer drag, pan, pinch, and wheel recognition with lifecycle-owned handles
64
66
  - `@vielzeug/herald`: Typed synchronous event bus with wildcard subscriptions, one-shot waits, and lifecycle tracing
65
67
  - `@vielzeug/illusionist`: Typed, deterministic, locale-aware fake data generator with seeded PRNG
68
+ - `@vielzeug/ink`: Causal stroke stabilization, smoothing, speed-based width profiling, and SVG path output
66
69
  - `@vielzeug/keymap`: Headless keyboard shortcut manager with chord sequences
67
70
  - `@vielzeug/ledger`: Serialized reversible command history with atomic framework-neutral state and cancellation ownership
68
71
  - `@vielzeug/lingua`: Typed i18n with pluralization and lazy locale loading
@@ -70,6 +73,7 @@ If a need matches a package below, use that package. Do not reimplement signals,
70
73
  - `@vielzeug/necromancer`: Lifecycle-owned Web Animations API primitives with native access, per-handle groups, and additive FLIP
71
74
  - `@vielzeug/orbit`: Floating UI positioning with lifecycle-owned geometry and middleware
72
75
  - `@vielzeug/ore`: Functional web-component authoring on top of ripple
76
+ - `@vielzeug/palette`: Color parsing, conversion, mixing, and contrast for design tools
73
77
  - `@vielzeug/patchwork`: RFC 6902 JSON Patch: structural diff, immutable apply, and guarded tryApply for sync protocols.
74
78
  - `@vielzeug/postmaster`: Typed durable job outbox with leased processing, retries, and dead-letter recovery
75
79
  - `@vielzeug/prism`: Responsive SVG charts with explicit updates: line, bar, area, scatter, pie, radar, heatmap, sparkline
@@ -85,6 +89,7 @@ If a need matches a package below, use that package. Do not reimplement signals,
85
89
  - `@vielzeug/sigil`: QR code generation and scanning: pure matrix encoder, SVG and canvas renderers, native BarcodeDetector scanning
86
90
  - `@vielzeug/sourcerer`: Reactive collection sources with local, page, cursor, and infinite pagination
87
91
  - `@vielzeug/spell`: Zero-dependency schema validation with Standard Schema interoperability
92
+ - `@vielzeug/stage`: Retained-mode 2D canvas stage engine with DPR-aware layers, dirty repaints, and PNG export
88
93
  - `@vielzeug/tabula`: Typed CSV and TSV: RFC 4180 parser with schema-validated rows, streaming reader, and safe serializer.
89
94
  - `@vielzeug/tandem`: Offline-first sync engine with rev baselines, tombstoned deletions, and idle-batched pushes
90
95
  - `@vielzeug/tavern`: Table sessions over mesh: host-owned state replication with guest command forwarding
@@ -92,6 +97,7 @@ If a need matches a package below, use that package. Do not reimplement signals,
92
97
  - `@vielzeug/vault`: Adapter-free typed storage core with focused browser and SQLite subpaths
93
98
  - `@vielzeug/ward`: Ordered authorization rules with immutable policies and typed decisions
94
99
  - `@vielzeug/wayfinder`: Client-side router with middleware and guards
100
+ - `@vielzeug/wire`: Edge routing and graph ordering for node editors
95
101
 
96
102
  <!-- GENERATED:skill-packages:END -->
97
103
 
@@ -101,6 +107,7 @@ Common compositions (verify unfamiliar APIs from the smallest applicable source
101
107
  - **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
108
  - **Forms**: `forge` for form state, validation, and submission; `spell` for schemas; render fields with Refine inputs when Refine is installed.
103
109
  - **App shell**: `wayfinder` routing; `conduit` DI; `herald` events; `lingua` i18n; `rune` logging; `ward` authorization; `keymap` shortcuts.
110
+ - **Dates**: `tempo` for date utilities; do not hand-roll date math.
104
111
  - **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
112
 
106
113
  ## Refine (when `@vielzeug/refine` is installed)
@@ -128,7 +135,7 @@ Refine is the UI layer. Build interfaces from `ore-*` elements before anything e
128
135
 
129
136
  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
137
 
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; avoid a parallel composite when a suitable Refine component exists.
138
+ 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
139
 
133
140
  ## Theme (when `@vielzeug/refine` is installed)
134
141
 
@@ -165,6 +172,6 @@ Refine covers the widget layer; these provide specialized behavior it may not co
165
172
 
166
173
  - Every new capability maps to an installed `@vielzeug/*` package or is justified as out of scope.
167
174
  - No parallel implementation of something an installed package provides.
168
- - With Refine installed: prefer `ore-*` for interactive UI when its documented contract fits; 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.
175
+ - 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
176
  - 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
177
  - Claims about package APIs were verified from an applicable lookup, installed declarations, or checkout source, not recalled; completion does not require repeating unchanged evidence.