@vini-ds/agent 0.0.0-stage → 0.1.0-alpha.5

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 ADDED
@@ -0,0 +1,61 @@
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
+ When an exact target has already been selected, optionally pass `target` to `check_updates` as `{ "version": "…", "ui": "…", "tokens": "…", "agent": "…" }` with the exact version and published names. Its comparisons with installed packages, receipt, context and registry latest are separate; the supplied target itself is not independently authenticated. Without a target, the tool does not choose one for the user.
51
+
52
+ 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:
53
+
54
+ 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.
55
+ 2. Reconnect the project's VINi MCP in the actual client being used. Through that same connection, read `vini://system/current`, call `get_component_contract` for the affected component and call `check_updates`. Compare all three responses with the exact chosen release and the installed package names, versions and receipt; a newer registry `latest` is not automatically the chosen target. If any read is unavailable or differs, leave MCP verification pending and state the next action. If reconnecting is unavailable or has already failed to replace the old context, restart the client and repeat all three reads. A separate STDIO process only verifies that process.
56
+
57
+ 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. Independently inspect the installed packages and receipt using the selected release's CLI. If they match, reconnect the project MCP and repeat the checks instead of reinstalling; if they differ, investigate the installation. The newer behavior does not change the already published alpha.3 process.
58
+
59
+ Report package installation, the original page check, and the current client's MCP check independently. Call the update fully verified only when the installed set matches the chosen release, the original page and affected interaction have been checked, and all three MCP reads through the current client agree with that set. A successful build or standalone MCP check does not establish the others.
60
+
61
+ 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 project's 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 same connection. Compare all three with the exact chosen release and installed package names, versions and receipt; registry `latest` is a separate fact, not necessarily the chosen target. A separate STDIO probe or a prepared configuration does not verify the existing client session. If a read is unavailable or versions disagree, report MCP verification as pending and state the next action. Restart the client and repeat the three reads only if reconnecting is unavailable or already failed to replace the old context.
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. Independently inspect the installed packages and receipt with the selected release's CLI. If they match, reconnect the project MCP instead of reinstalling; if they differ, investigate the installation. 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. Only report the update fully verified when the installed set matches the chosen release, the original page and affected interaction have been checked, and all three reads through the current client's connection agree with that set.