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

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,309 @@
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
+ ## Using the public Atlas
8
+
9
+ An agent can work from the [public Atlas](https://vini-atlas.twc1.net/) together with the
10
+ product's installed UI/token packages. Identify the exact installed names and versions,
11
+ compare the selected documentation with that release's public exports and declarations,
12
+ then follow the styles/provider guidance below using its published package names. A newer
13
+ Atlas page does not establish availability in an older installed package.
14
+
15
+ Build the product and verify the affected scenario at its actual running URL, including
16
+ applicable themes, layout and font assets. This route does not require Agent/MCP. The optional
17
+ Agent section below adds client-based contract and update queries; pending or mismatched MCP
18
+ verification does not block a successful Atlas/package/screen check.
19
+
20
+ At the start of each agent work session in a project using VINi through Atlas without MCP,
21
+ regardless of the task topic, check the current project's installed UI/token names and exact
22
+ versions against the published Atlas release and matching npm package metadata. For an
23
+ Atlas-only project this check does not require an Agent package, a setup receipt, or MCP.
24
+ Report a newer verified release and applicable notes when they cover the observed
25
+ installed-to-target transition. If exact notes are unavailable, consult the published Atlas
26
+ history when accessible and identify any uncovered part of the transition rather than treating
27
+ one release's notes as the complete difference. If the history is unavailable, say so. If
28
+ the registry or metadata cannot be verified, report an unknown status when relevant, rather
29
+ than claiming that no update exists. A discovery failure alone does not block the task;
30
+ existing package, contract and selected-client alignment requirements still apply. The user can request an update separately; checking
31
+ does not install packages or change the project.
32
+
33
+ These are instructions for the next local candidate. They apply only when a client loads
34
+ and follows them during a task; merely opening a chat does not guarantee a check, and no
35
+ background notification service is implied. Already published packages and previously
36
+ installed instructions are unchanged until separately updated.
37
+
38
+ ## Product context and page assembly
39
+
40
+ VINi is used in the domain of corporate video meetings and collaboration. Participants,
41
+ organizers and administrators may use different devices and have different responsibilities.
42
+ This is orientation, not a feature specification: the current task and accepted product decisions
43
+ define the actual users, roles, permissions, behavior and supported devices. Legacy wiki pages and
44
+ screens are not accepted UX references. Do not look up the wiki as a routine step;
45
+ consult a specific source when the task requires it.
46
+
47
+ Before building, establish the context of this specific page:
48
+
49
+ - Who uses it: role, experience and known permissions.
50
+ - Why they open it: expected outcome and main actions.
51
+ - What they work with: an object, collection, settings, media or event stream; data volume,
52
+ rate of change and comparisons they need to make.
53
+ - How they work: frequent or occasional use, inspection, editing or control of an ongoing process.
54
+ - Under what conditions: device, input method, constraints, specified states and the scope and
55
+ consequences of changes.
56
+
57
+ Extract this from the task, existing interface and accepted product decisions. For a small change,
58
+ consider only the affected context. No separate questionnaire, artifact or approval is required.
59
+ Ask only about unknowns that materially change the decision. Identify presentation assumptions;
60
+ do not invent permissions, save behavior, server effects or features.
61
+
62
+ Make a compact layout plan linking grouping, hierarchy, density, navigation and action placement
63
+ to that context. Conditional examples:
64
+
65
+ - Occasional configuration of dependent settings benefits from meaningful groups, nearby
66
+ explanations and a clear scope for Save, when saving is part of the task.
67
+ - Repeated work across many objects benefits from comparable information and actions near their
68
+ objects. Choose density using volume, frequency, device and available VINi variants together.
69
+ - Control of an ongoing process, such as a call, needs visible status and accessible frequent
70
+ actions; secondary settings should not obscure the main work.
71
+ - Inspection of one object starts with its identity, state and task-relevant information, then
72
+ details in a meaningful hierarchy.
73
+
74
+ These are contextual choices, not mandatory page templates. Different regions of a mixed screen
75
+ can need different compositions. A collection does not imply adding search, filters or bulk
76
+ actions; a form does not determine save behavior. Cards, dividers and accents must clarify the
77
+ content. Do not add a hero or decorative structure by default. Preserve the user's requirements,
78
+ accepted behavior and applicable VINi contracts when general design heuristics suggest otherwise.
79
+
80
+ Build with the installed public VINi API and Foundation tokens. Do not invent a new palette or
81
+ font, override component internals, or add unrequested features or platform support. Use concrete,
82
+ consistent words for actions, errors and empty states. Show pending, error, empty and success
83
+ states when they correspond to real behavior in the task; do not invent them as decoration.
84
+
85
+ After the final edit, review the actual running interface and exercise the changed interaction.
86
+ Check it against the page context: does information order support the task, are frequent actions
87
+ accessible, and is the scope and result of a change clear? Check the relevant narrow layout and
88
+ keyboard path when applicable. Report what you inspected and
89
+ any part that could not be verified. A preview or check does not by itself establish product
90
+ acceptance, accessibility conformance or native platform support.
91
+
92
+ Also inspect the CSS and inline styles changed in this task: if a rule reaches inside a VINi
93
+ component (for example through `data-slot`), check it against the installed component's
94
+ documented customization API. Remove unsupported internal overrides; choose a public variant
95
+ or adjust the surrounding composition.
96
+
97
+ ## Styles and root
98
+
99
+ Load once in the existing application entry, in this order:
100
+
101
+ ```tsx
102
+ import '@vini-ds/tokens/fonts.css';
103
+ import '@vini-ds/tokens/themes.css';
104
+ import '@vini-ds/tokens/typography.css';
105
+ import '@vini-ds/ui/styles.css';
106
+ ```
107
+
108
+ Wrap the existing application, preserving other providers:
109
+
110
+ ```tsx
111
+ import { ThemeBrandProvider } from '@vini-ds/ui';
112
+
113
+ <ThemeBrandProvider theme="light" brand="vini" colorway="blue" typographyScope="desktop">
114
+ <App />
115
+ </ThemeBrandProvider>
116
+ ```
117
+
118
+ Check the selected release's package peer declarations and verification record for React and React DOM compatibility and the exact checked runtimes; `get_package_profile` supplies this context when using MCP. Keep the application's React and React DOM dependency declarations; do not downgrade them to match an old example. After installing VINi, check the lockfile and installed versions because the package manager can resolve dependencies again. Use matching React and React DOM versions and verify the actual product build and interactions. 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.
119
+
120
+ 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.
121
+
122
+ ## Components and composition
123
+
124
+ ```tsx
125
+ import { Button } from '@vini-ds/ui';
126
+
127
+ <Button variant="primary" color="main" size="500" onClick={save}>
128
+ Save
129
+ </Button>
130
+ ```
131
+
132
+ 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.
133
+
134
+ ## Patterns and examples
135
+
136
+ ### Ownership and permitted changes
137
+
138
+ Keep these layers separate when interpreting an example or a requested change:
139
+
140
+ | Layer | Owns | Boundary |
141
+ | --- | --- | --- |
142
+ | Foundation tokens | Visual values and typography | A token supplies a value; it does not authorize overriding a component's internal styles. |
143
+ | Component | Its anatomy, appearance, interaction states and public API | Choose supported props and slots. Shared hover, focus, selected or disabled changes belong in the owning component. |
144
+ | Block composition | Arrangement of components, surrounding surface, spacing, sizing and responsive layout | Adapt this environment with Foundation tokens and the components' public APIs; retain their internal behavior and accessibility. |
145
+ | Pattern | Rules for a scenario, including lifecycle, validation, focus and recovery | A similar-looking block does not establish conformance to the complete pattern contract. |
146
+ | Application | Real data, permissions, routes, services and outcomes | Demonstration handlers, identities, links and results must be replaced with the product's defined behavior. |
147
+
148
+ For example, a rounded border around a table can belong to its surrounding block. Check the
149
+ installed Table API first. If no suitable variant exists, use a token-based outer container
150
+ without overriding Table rows, cells or states. Preserve native table semantics, horizontal
151
+ scrolling and visible keyboard focus; do not clip interactive content with a decorative wrapper.
152
+ A new runtime component is not required for this change. Repeated shared composition changes
153
+ belong in their shared source, not copied instance overrides.
154
+
155
+ ### Availability before reuse
156
+
157
+ Read `vini://patterns` for the installed inventory, or call `search_ds` with an explicit `kinds: ["pattern"]`. Read the chosen `get_pattern_contract({ id, platform: "web" })` for its component bindings, lifecycle, validation, focus and known limitations. Not every package baseline includes a reviewed pattern; an empty inventory is intentional.
158
+
159
+ `vini://examples` lists the available public adaptations. For a selected example's description,
160
+ component dependencies and limitations, read its bounded `vini://examples/{id}/details`.
161
+ For complete files, use the bounded manifest and parts described below.
162
+ The legacy `vini://examples/{id}` resource remains available, but its complete response can be
163
+ too large for a client to display. Copy only the selected example's files into an authorized
164
+ product change, retain its relative CSS import, and use the root/style setup above. Render the
165
+ supplied default component with the props named in the selected example. The existing
166
+ `form-transaction` uses `FormTransactionExample`; `sidebar-default` and `sidebar-compact` use
167
+ `SidebarExample` with `compact={false}` and `compact={true}`. The host decides its compact
168
+ breakpoint. Demonstration values and simulated outcomes are not production validation,
169
+ persistence or routing. The form reference uses secondary Button actions to preserve its
170
+ recorded contrast limitation.
171
+
172
+ ### Reading complete example files
173
+
174
+ 1. Read `vini://examples/{id}/details` for the chosen example's description, component
175
+ dependencies, pattern associations, limitations and any source correspondence. Read
176
+ `vini://examples/{id}/manifest` for its file inventory: each file's name, language, byte
177
+ length, SHA-256, encoding, part size, part count and part URI template. Compare their example
178
+ ID, package version and baseline; use the exact names and part range from the manifest. The
179
+ manifest is a file-integrity description; it does not replace the example's limitations.
180
+ 2. Read every zero-based part from `vini://examples/{id}/files/{filename}/parts/{index}`.
181
+ Each response identifies the example, file, installed package version and baseline, and
182
+ includes `index`, `partCount`, `partByteLength`, `partSha256` and base64 `content`.
183
+ Both file `sha256` and `partSha256` use `sha256:<64 hex>` strings. The current part size
184
+ is at most 1,024 bytes before base64 encoding. The server rejects a details, manifest or
185
+ part response when its serialized resource envelope exceeds 4,000 bytes; this limit is not
186
+ a measurement or guarantee of a particular client's output limit.
187
+ 3. Decode each part's base64 content to bytes. Check the example ID, filename, package version,
188
+ baseline, file length, part size/count and SHA-256 against the manifest; check each expected
189
+ index and the actual decoded length and SHA-256 against `partByteLength` and `partSha256`.
190
+ Reject missing, repeated, reordered, incomplete or inconsistent parts. Concatenate the
191
+ bytes in index order, then verify the complete byte length and SHA-256 against the manifest
192
+ **before** decoding UTF-8 or using the file.
193
+ 4. Obtain and verify every file listed for the selected example, including CSS and notices.
194
+ Preserve the dashboard chart license notices; do not omit them to reduce response size.
195
+ If a part or verification is unavailable, report the example as incomplete rather than
196
+ using truncated content. Re-read the manifest if the connection or selected version changes.
197
+
198
+ The details, manifest and part resource templates change the MCP interface inventory. After
199
+ installing this interface, follow any reconnect action from `refresh_connection`, reconnect the
200
+ same project's MCP if required, and verify the new inventory and exact installed version through
201
+ the actual client. Older interfaces retain `vini://examples` and `vini://examples/{id}`; their
202
+ larger responses can be truncated by the client, so verify completeness before use. An independent
203
+ STDIO probe does not verify that client connection.
204
+
205
+ An example is available only when it appears in the installed inventory and its returned files
206
+ and dependencies can be used with that exact package set. A screenshot, an Atlas page, a story
207
+ export name or an entry in this guidance does not make it a package export. Check actual props
208
+ as well as export names: an existing Sidebar or Button export does not prove that a newer
209
+ variant is installed. If the server does not expose these resources, report that boundary and
210
+ use the available component contracts for an authorized composition; do not invent resource IDs.
211
+
212
+ The reduced Sidebar examples above are not the complete Application shell pattern. Likewise,
213
+ the form example demonstrates a transaction, not authentication. Preserve each example's
214
+ listed constraints and do not transfer a restriction from one reference to every product.
215
+
216
+ ### Choosing a page composition
217
+
218
+ The following five source examples extend the three examples above in compatible packages.
219
+ Use them only when their exact IDs appear in the installed examples inventory; this guidance
220
+ does not establish that an older installation contains them. They are copied source files,
221
+ not exports of the UI package. Read all returned limitations and copy every listed file.
222
+
223
+ | Example ID | Supplied component and required props |
224
+ | --- | --- |
225
+ | `application-shell` | Default `ApplicationShellExample`, host-controlled `compact`. |
226
+ | `dashboard-inset` | Default `DashboardShellExample`, host-controlled `compact`, `panel={false}`. |
227
+ | `dashboard-panel` | Default `DashboardShellExample`, host-controlled `compact`, `panel={true}`. |
228
+ | `login-card` | Default `AuthenticationExample`, `story="CardLogin"`, `links` with `forgotPassword`, `signUp`, `terms`, `privacy`. |
229
+ | `login-split` | Default `AuthenticationExample`, `story="SplitLogin"`, the same required `links`. |
230
+
231
+ Both dashboards include `DashboardAreaChart.jsx`, its CSS module and
232
+ `DashboardAreaChart.licenses.jsx`. Declare `recharts@3.10.1` directly and preserve the notices.
233
+ Both login entries share one JSX/CSS pair and accept optional `linkTarget`, `onSubmit(event)`
234
+ and `onProvider(id)` callbacks. Provider IDs are `google`, `apple`, `sso` and `yandex`.
235
+ The package projection checks selected component exports and required variant values; the
236
+ consumer must still compile and inspect the exact package set after adaptation.
237
+ These entries do not register a new authentication pattern. Dashboard examples do not claim
238
+ the strict Application shell contract; the basic shell source does not add that machine
239
+ contract to the installed pattern inventory.
240
+
241
+ | Composition | Appropriate use and changes | Dependencies and required checks |
242
+ | --- | --- | --- |
243
+ | Basic application shell | Navigation around a work area. Change product labels, route data and content slots while keeping one active-route model. | Public Sidebar, Breadcrumb and related controls from the selected contract. Check active navigation, breadcrumb and heading agreement, wide/collapsed/compact behavior, menu dismissal and focus return. The application owns routing and permissions. |
244
+ | Inset dashboard shell | An overview with the working area inset beside navigation. Change the supplied data, card content and layout through supported APIs. | The example's Sidebar inset API, cards, typography and action controls; chart and table dependencies below. Check navigation, independent content scrolling, preserved header/navigation, and narrow layout. The dashboard illustration alone does not satisfy every Application shell lifecycle requirement. |
245
+ | Separate-panel dashboard shell | Navigation and work area presented as separate panels. Change surrounding layout and content without restyling Sidebar internals. | The exact installed Sidebar panel variant and header API, not merely the Sidebar export. Check both panels, collapsed and compact navigation, scrolling, focus and the same data controls as the inset dashboard. |
246
+ | Login in a card | A focused sign-in form on a surrounding application surface. Change copy, branding, permitted identity providers and product links. | Card, Field, Input, Button and typography. Preserve associated labels, required/email validation and password visibility. Check keyboard submission, provider actions and valid recovery/registration/legal links. These are form checks, not proof of authentication. |
247
+ | Login beside an image | The same sign-in task with a supporting image region. Change the image and surrounding layout while preserving form order and behavior. | The login controls and the supplied layout styles; the application provides the image and appropriate alternative text or decorative treatment. Check the card-login behaviors plus reflow, meaningful reading order and usable form width on a narrow screen. |
248
+
249
+ For either login composition, the application must define and connect actual submission,
250
+ identity-provider flows, loading, repeat-submit prevention, recoverable errors, retry, session
251
+ creation and the destination after successful authentication. Supplied callbacks or a local
252
+ success message do not implement these flows. Never treat demonstration links as product URLs
253
+ or use real credentials to test a disconnected example.
254
+
255
+ Dashboard metric cards, an area chart and a framed table are example-owned compositions, not
256
+ new generic VINi Metric, Chart, Widget or DataTable exports. The application defines units,
257
+ periods, comparisons and data meaning. Copying a chart source requires the charting dependency
258
+ and license notices listed for that source; a dependency used by the UI build is not automatically
259
+ a public component API or a direct dependency of the consuming application. Check range changes,
260
+ series identification, accessible data alternatives and narrow layout for the chosen chart.
261
+
262
+ For the table, preserve the defined selection scope, partial selection, sorting semantics,
263
+ status views, pagination and any local add-row action that the selected source actually provides.
264
+ The application supplies real row identity, data access and persistence. Check empty results,
265
+ page boundaries, selection across views/pages, keyboard use and scrolling inside the rounded
266
+ frame. Add loading or failure states only for real connected behavior; do not describe an
267
+ untested example state as implemented. An experimental server dashboard, its widget picker or
268
+ its resource meters do not establish a shared layout or scenario rule.
269
+
270
+ After adapting any composition, build with the installed packages and inspect the actual page
271
+ at the relevant wide and narrow sizes. Exercise the changed scenario and keyboard/focus path.
272
+ Report source availability, local checks, package delivery and product acceptance separately.
273
+
274
+ The first installation with this pattern interface changes the MCP inventory. A preceding supervisor can require reconnect instead of refreshing in place; follow that action, then verify the exact installed version and affected contract in the new connection. The old worker must not silently adopt an interface the client has not discovered.
275
+
276
+ ## Agent
277
+
278
+ This section applies when the task chooses Agent/MCP. Its client checks are additional to
279
+ the public Atlas and installed-package route above; do not add or switch a shared MCP server
280
+ merely to complete that route.
281
+
282
+ For an existing project with manually installed direct `@vini-ds/ui` and
283
+ `@vini-ds/tokens`, the next CLI candidate can inspect `status`, then plan
284
+ `init --plan --adopt-manual` using the actual project and application roots. An explicit
285
+ `init --adopt-manual` preserves the existing entry and exact installed pair while installing
286
+ the matching agent, backing up affected files and recording the verified installation.
287
+ An incomplete pair, unsupported peers, incomplete static source graph or a shared symlinked
288
+ `node_modules` blocks the transition; do not change the linked target or use forced peer
289
+ installation. CSS/provider/font diagnostics describe source evidence, not proof of the live
290
+ page. This candidate route is not present in previously published CLIs. Verify the project,
291
+ app, package versions, generation and current native MCP connection separately after setup.
292
+
293
+ 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.
294
+
295
+ At the start of each agent work session in a project connected to VINi, regardless of the task topic, if `vini://runtime/connection` is available, compare its projectRoot with the actual project and call `check_updates` once only if they match. If that resource is unavailable on a direct MCP, call `check_updates` once and compare its non-null canonical `observedProjectRoot` with the actual project's canonical path before interpreting the result. The field identifies the directory read by the check, not the chat or a managed connection; it does not support refresh or replace client-session verification. A missing or different path cannot establish this project's update status. Do not treat a connection from another project as this project's update check. Report a newer release only when the result confirms a newer version and verified metadata; describe `available.changes` only when it applies to the exact installed version. If it does not, consult the published Atlas history when available and make any uncovered changes explicit. Unavailable registry, inconsistent installation or an unknown comparison is not evidence of no update; disclose uncertainty when update status matters. Update discovery failure alone does not block the task, but existing package, contract and selected-client alignment requirements still apply. The check never installs or executes registry code and does not run in the background. The client may not load this instruction or invoke the agent or connection merely because a chat was opened. Previously installed versions need an update to receive this instruction. Upon a user request to update, 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.
296
+
297
+ 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.
298
+
299
+ 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:
300
+
301
+ 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.
302
+ 2. Work in the actual client's project-local VINi connection. Older published launchers cannot update their running code: after installing the new launcher, reconnect that project MCP once. For a connection that exposes `refresh_connection`, read `vini://runtime/connection`, then call `refresh_connection` with `target` containing the exact selected `version`, `ui`, `tokens` and `agent` names already installed in this project. A compatible switch or same-release recovery affects only that connection; it does not install or fetch a release. If the interface cannot be verified or is incompatible, follow its reconnect action. If reconnecting is unavailable or has already failed to replace the old context, restart the specific client.
303
+ 3. Through that same actual client connection, read `vini://runtime/connection`, `vini://system/current`, the affected `get_component_contract` and `check_updates`, then read `vini://runtime/connection` again. Both connection readings must have the same project root, instance ID, nonempty installation generation, connection revision and exact target version; all three intervening responses must agree with the chosen release, installed package names, versions and receipt. Repeat if anything changed between reads. A newer registry `latest` is a separate fact. If any reading is unavailable or differs, leave MCP verification pending and state the next action. A separate STDIO process only verifies that process.
304
+
305
+ 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.
306
+
307
+ Report package installation, the original page check, and the chosen client's MCP check independently. For an update that includes Agent/MCP, call that complete route 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 one unchanged identified connection agree with that set. A successful build or standalone MCP check does not establish the others. An Atlas/package/screen result can be complete while optional MCP verification remains pending. Cancellation or disconnection may leave a request outcome unknown; never silently repeat it.
308
+
309
+ When using the public agent, install or update its version together with the matching component and token versions. 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,76 @@
1
+ ---
2
+ name: vini-public
3
+ description: At the start of work in a project connected to VINi, check for VINi updates; use its public contracts and package API for React DOM interface work.
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 authorized screen authoring, follow “Product context and page assembly” in `vini://guidelines/setup` alongside the applicable contracts. Skip this authoring method for read-only status or update inquiries.
13
+
14
+ At the start of each agent work session in a project connected to VINi, regardless of the
15
+ task topic, check updates once for this project. If the current client's VINi MCP exposes
16
+ `vini://runtime/connection`, compare its `projectRoot` with the actual project and call
17
+ the read-only `check_updates` only if they match. With a direct MCP that does not expose
18
+ that resource, call `check_updates` once and compare its non-null canonical
19
+ `observedProjectRoot` with the actual project's canonical path before interpreting the
20
+ result. This field identifies the directory read by the check, not the chat or a managed
21
+ connection, and does not provide a connection identity or refresh capability. If paths
22
+ differ or cannot be resolved, do not report that result as this project's update status.
23
+ Do not substitute another project's connection. For a verified result
24
+ with `status: update-available`, `installed.status: matched`,
25
+ `available.status: verified-metadata` and `available.relation: newer`, briefly report
26
+ the installed and available versions. Summarize `available.changes` only if it identifies
27
+ the installed `fromVersion`. If that exact comparison is unavailable, inspect the public
28
+ Atlas release history when accessible and identify which published notes cover the range
29
+ from the installed version to the available version. Report only changes confirmed by those
30
+ notes, identifying their versions; never present the last transition as the complete history
31
+ of skipped releases. If the history is unavailable or does not cover the whole range, say
32
+ which part is unknown. Do not invent missing changes. `latest` is registry metadata, not
33
+ automatic selection or proof of product support.
34
+
35
+ If the project connection cannot be identified, the installation is inconsistent or locked,
36
+ or registry metadata is unavailable, do not claim that the project is current. A registry
37
+ lookup failure alone does not block unrelated work; state its uncertainty when update status
38
+ is relevant or requested. A wrong or unverified connection or installation does not authorize
39
+ using its contracts as the current project's API: retain the existing package, contract and
40
+ task-specific consistency checks. When applicable, the separately verified Atlas and installed
41
+ package route remains available without MCP. Do not recheck on every tool call, install packages,
42
+ or change client settings because an
43
+ update was found. A later explicit update inquiry may check again. Update the project only
44
+ when requested, after reviewing the exact target and its `update --plan`. An installed
45
+ package or successful build does not prove that a running application or MCP session is
46
+ using the new version. This is an instruction for an agent during an active task; opening
47
+ a chat alone does not guarantee that its host invokes the agent or delivers a notification.
48
+
49
+ 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.
50
+
51
+ Use the project's VINi MCP in the client the user actually uses. An already-running older launcher cannot change its own code; after installing the new launcher, reconnect that project MCP once. For an active connection exposing `refresh_connection`, read `vini://runtime/connection` and call `refresh_connection` with the exact already-installed target (`version`, `ui`, `tokens`, `agent`). The operation selects this connection and neither installs nor fetches packages. If the interface is incompatible or cannot be verified, follow the returned reconnect action; restart the specific client only if reconnect is unavailable or already failed.
52
+
53
+ To verify the resulting session, read `vini://runtime/connection`, then `vini://system/current`, the affected component contract with `get_component_contract` and `check_updates`, and finally `vini://runtime/connection` again through the same client. Both connection observations must have the same project root, instance ID, nonempty generation, connection revision and exact target version; all three responses must agree with the chosen release and installed package names, versions and receipt. Repeat if the connection changes between readings. Registry `latest` is a separate fact. A separate STDIO probe or prepared configuration does not verify the existing client session; an unavailable read or differing version remains pending. A cancelled or disconnected request can have an unknown outcome and must not be silently repeated.
54
+
55
+ 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.
56
+
57
+ 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.
58
+
59
+ For a repeatable flow, inspect `vini://patterns` or search explicitly with `kinds: ["pattern"]`, then read `get_pattern_contract` with the selected id and `platform: "web"`. Read its bindings, lifecycle, focus/recovery rules and limitations before composing it. An empty inventory means that this installed baseline includes no reviewed public patterns. Use `vini://examples` to find available examples. Read `vini://examples/{id}/details` for the selected example's description and limitations, and `vini://examples/{id}/manifest` for its file inventory. Then read every part of every listed file through `vini://examples/{id}/files/{filename}/parts/{index}`. Decode base64 parts to bytes and verify their identity, order, lengths and `partSha256`, then verify each concatenated file's complete byte length and `sha256` before UTF-8 decoding or use. Follow the precise steps in “Reading complete example files” in setup, including package version and baseline consistency. Preserve all CSS and license notices. A missing, truncated or inconsistent part means the example is incomplete; do not use it. The older `vini://examples/{id}` resource remains available but can exceed a client's output limit. Examples are adapted demonstrations on the public API, not verified product implementations or permission to change product semantics. The form reference's secondary-action constraint does not restrict every Button in every product. Keep locale, validation, persistence and outcomes explicit in the product.
60
+
61
+ Adding the pattern interface and the bounded example details, manifest and part resource templates changes the MCP tool/resource inventory. A connection to the preceding interface may reject `refresh_connection` and request reconnect; preserve that check and reconnect the same project MCP, then verify current, the affected pattern/component, example inventory and `check_updates` through the new connection. A successful transition between older packages with identical interfaces does not verify this interface change.
62
+
63
+ For a composition or example-based change, also read “Ownership and permitted changes” and
64
+ “Availability before reuse” in `vini://guidelines/setup`. Distinguish token values, owning
65
+ components, block layout, scenario patterns and real application behavior. A token is not
66
+ permission to override component internals. An outer table frame can belong to the block;
67
+ it does not require a new Table component. Check the installed inventory, files, exact props
68
+ and dependencies before promising an example or importing it. Sidebar demonstrations are not
69
+ the full Application shell contract; login forms are not an authentication service. Use the
70
+ composition-specific checks in setup only for the chosen scenario, not as an unrelated audit.
71
+
72
+ 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.
73
+
74
+ 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.
75
+
76
+ 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.