@vini-ds/agent 0.0.0-stage → 0.1.0-alpha.4
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/SETUP.md +59 -0
- package/SKILL.md +26 -0
- package/context/components.json +16686 -0
- package/context/current.json +918 -0
- package/context/tokens.json +28758 -0
- package/mcp.mjs +180 -0
- package/package.json +40 -4
- package/updates.mjs +191 -0
- package/README.md +0 -3
package/SETUP.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# VINi public React DOM setup
|
|
2
|
+
|
|
3
|
+
This package documents a checked React DOM baseline. It is an alpha distribution; it does not claim complete accessibility conformance, current Figma parity or support for native mobile/TV renderers. Installation and configuration alone do not verify a product.
|
|
4
|
+
|
|
5
|
+
The CLI installs matching versions of components, tokens and agent context. Import the published packages directly by their names. Inspect the project's package.json for the selected versions.
|
|
6
|
+
|
|
7
|
+
## Styles and root
|
|
8
|
+
|
|
9
|
+
Load once in the existing application entry, in this order:
|
|
10
|
+
|
|
11
|
+
```tsx
|
|
12
|
+
import '@vini-ds/tokens/fonts.css';
|
|
13
|
+
import '@vini-ds/tokens/themes.css';
|
|
14
|
+
import '@vini-ds/tokens/typography.css';
|
|
15
|
+
import '@vini-ds/ui/styles.css';
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Wrap the existing application, preserving other providers:
|
|
19
|
+
|
|
20
|
+
```tsx
|
|
21
|
+
import { ThemeBrandProvider } from '@vini-ds/ui';
|
|
22
|
+
|
|
23
|
+
<ThemeBrandProvider theme="light" brand="vini" colorway="blue" typographyScope="desktop">
|
|
24
|
+
<App />
|
|
25
|
+
</ThemeBrandProvider>
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
The baseline was checked with React and React DOM 18.2.0. Its supported theme IDs are `light`, `dark`, `light-alpha`, `dark-alpha`; typography currently exposes only `desktop`. The provider owns the `data-theme`, `data-brand`, `data-colorway` and typography scope attributes. Keep the application's existing preferences when already configured. Other contexts require their own compatibility check.
|
|
29
|
+
|
|
30
|
+
The styles reference packaged fonts and icons. Let the bundler resolve their relative assets. CSS without its font resources is an incomplete setup. Do not open application HTML with `file://` as a preview.
|
|
31
|
+
|
|
32
|
+
## Components and composition
|
|
33
|
+
|
|
34
|
+
```tsx
|
|
35
|
+
import { Button } from '@vini-ds/ui';
|
|
36
|
+
|
|
37
|
+
<Button variant="primary" color="main" size="500" onClick={save}>
|
|
38
|
+
Save
|
|
39
|
+
</Button>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Use public slots and props for content. The host owns business state and layout; VINi owns component internals. For an icon-only action supply an accessible name. Use the component contract and declarations for the exact API; a visual example alone is insufficient.
|
|
43
|
+
|
|
44
|
+
## Agent
|
|
45
|
+
|
|
46
|
+
The package's `mcp.mjs` is a read-only local STDIO MCP server. It requires Node 20+, reads its installed context and does not fetch private GitHub content. The CLI prepares project-local configuration and Skill; the client still needs to load the trusted project and establish an actual MCP connection. Read `vini://system/current` and a component contract in that client to verify the connection. The public server does not expose internal product slices, release-upload tools, private Figma links or private update channels.
|
|
47
|
+
|
|
48
|
+
Call `check_updates` to inspect installed VINi package manifests and, on explicit request, read public npm metadata for the current CLI and its exact package set. The call never installs or executes registry code; an unavailable registry is reported as unavailable, not as an absence of updates. Review the exact CLI version's `update --plan`, then explicitly run `update`. Registry metadata does not verify installed tarball bytes or replace the product's build and checks.
|
|
49
|
+
|
|
50
|
+
An update changes installed packages, but a running server or an already connected MCP client may still serve the previous version. Complete these checks separately:
|
|
51
|
+
|
|
52
|
+
1. Identify the server and project serving the user's existing application URL. Where the server is safely identifiable and its restart is authorized, refresh or restart that specific dev or preview server with its existing settings, reload the original URL, and exercise the affected component. A new temporary server does not verify the original page. Do not terminate an unknown process; if the server cannot be safely identified or controlled, state the action the owner needs to take and leave the page check pending.
|
|
53
|
+
2. Reconnect VINi MCP in the actual client being used. Through that client, read `vini://system/current`, call `get_component_contract` for the affected component and call `check_updates`; compare their context and installed versions with the intended release. If the client cannot reconnect or expose those reads, state the remaining action and leave MCP verification pending. A separate STDIO process only verifies that process, and a full client restart is not required when reconnection is sufficient.
|
|
54
|
+
|
|
55
|
+
After a package-name migration, the already published alpha.3 MCP may report a package/receipt mismatch because its running code still looks for the older import paths. Reconnect the project MCP and repeat the checks before deciding whether the receipt needs repair. The newer behavior does not change the already published alpha.3 process.
|
|
56
|
+
|
|
57
|
+
Report package installation, the original page check, and the current client's MCP check independently. A successful build or one of these checks does not establish the others.
|
|
58
|
+
|
|
59
|
+
Install or update the matching component, token and agent package versions together. The application's own build, tests and review remain necessary after an update. The agent context does not certify the installed dependency graph or silently change it.
|
package/SKILL.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: vini-public
|
|
3
|
+
description: Build or update React DOM interfaces with the installed VINi components and tokens, using its public MCP contracts and package API.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# VINi in this project
|
|
7
|
+
|
|
8
|
+
Use the installed `@vini-ds/ui`, `@vini-ds/tokens` and `@vini-ds/agent` packages. Import these packages directly by their published names.
|
|
9
|
+
|
|
10
|
+
Read `vini://system/current` and `vini://guidelines/setup` through the project's VINi MCP before selecting components. This public package contains a bounded documentation projection of a checked baseline, not the internal Gateway or evidence that the application has been tested. Match its package version to the installed packages; report mismatches rather than silently installing or changing a release.
|
|
11
|
+
|
|
12
|
+
For an update request, call the read-only `check_updates` tool. Report the installed state, available registry metadata and any uncertainty; ask the owner to choose a release and review `update --plan` before an explicit update. An installed package or successful build does not prove that a running application or MCP session is using the new version.
|
|
13
|
+
|
|
14
|
+
After the packages are updated, identify the dev or preview server that serves the user's existing application URL and the project it runs from. If its process is safely identifiable and the authorized workflow permits it, refresh or restart that specific server using its original project and settings; do not stop an unknown process or substitute a different temporary server. Reload the same URL and exercise the affected component. If the server cannot be identified or restarted safely, explain the exact action needed and leave the original page unverified.
|
|
15
|
+
|
|
16
|
+
Separately reconnect the VINi MCP in the client the user actually uses, then read `vini://system/current`, the affected component contract with `get_component_contract`, and `check_updates` through that client. Compare the context and installed package versions against the intended release. A separate STDIO probe or a prepared configuration does not verify the existing client session. If reconnection or these reads cannot be performed, state the exact remaining client action and report MCP verification as pending; do not require a full client restart when reconnecting is sufficient.
|
|
17
|
+
|
|
18
|
+
After a package-name migration, an already published alpha.3 MCP may report a package/receipt mismatch because it still looks for the older import paths. Reconnect the project MCP and check again before treating the receipt as damaged; the new server cannot change an already running old process.
|
|
19
|
+
|
|
20
|
+
Use `search_ds` and `get_component_contract` for components and their public exports, props, slots, limitations and type declarations. `get_package_profile` describes the supported React DOM setup. Use `get_token` or `resolve_token` for existing Foundation values; explicit token modes are required where the contract says so. Other native renderers are outside this package's scope.
|
|
21
|
+
|
|
22
|
+
Compose product screens through public props and slots. Keep shared component appearance in VINi; do not override internal colors, typography, borders or interaction states to patch one product instance. Product layout, business state and application behavior belong to the product. A missing scenario contract does not prevent an ordinary user-authorized composition from the available APIs.
|
|
23
|
+
|
|
24
|
+
Keep existing app providers. Load the published font, theme, typography and UI styles once, and use `ThemeBrandProvider` with a supported theme/colorway and typography scope. Use a single React instance. Refer to setup for actual imports and examples.
|
|
25
|
+
|
|
26
|
+
Run the product's build and the checks relevant to the changed interaction. Preview through its HTTP development or preview server, verify styles and font assets and exercise the changed control. Report package installation, verification of the original application page, and verification through the current client MCP as separate results; mark any unperformed step as pending.
|