@reqvire-org/ads 0.3.25 → 0.3.26
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/README.md +7 -5
- package/dist/bootstrap-ds/ADS.md +28 -30
- package/dist/bootstrap-ds/README.md +6 -6
- package/dist/bootstrap-ds/design-system/assets/brand/README.md +3 -2
- package/dist/boundaries.mjs +0 -3
- package/dist/check.mjs +15 -22
- package/dist/config.mjs +3 -7
- package/dist/contract-migration.mjs +2 -2
- package/dist/contracts.d.mts +0 -1
- package/dist/design-values.mjs +81 -0
- package/dist/evidence.mjs +1 -1
- package/dist/mcp/context.mjs +3 -3
- package/dist/mcp/prompts.mjs +4 -4
- package/dist/mcp/reports.mjs +101 -0
- package/dist/mcp/server.mjs +38 -3
- package/dist/paint-contracts.mjs +4 -5
- package/dist/preview-resources.mjs +1 -2
- package/dist/scenarios.mjs +14 -14
- package/dist/skills/README.md +7 -3
- package/dist/skills/ads-break-ui/SKILL.md +23 -13
- package/dist/skills/ads-break-ui/references/atomic-styles.md +9 -2
- package/dist/skills/ads-break-ui/references/behaviors.md +393 -0
- package/dist/skills/ads-break-ui/references/captures.md +1 -1
- package/dist/skills/ads-break-ui/references/contracts.md +18 -37
- package/dist/skills/ads-break-ui/references/design-data.md +91 -0
- package/dist/skills/ads-break-ui/references/evidence.md +4 -0
- package/dist/skills/ads-break-ui/references/guarded-editing.md +7 -11
- package/dist/skills/ads-break-ui/references/reporting.md +101 -0
- package/dist/skills/ads-break-ui/references/scenarios.md +9 -15
- package/dist/skills/ads-designer/SKILL.md +25 -15
- package/dist/skills/ads-designer/assets/bootstrap-ds/ADS.md +28 -30
- package/dist/skills/ads-designer/assets/bootstrap-ds/README.md +6 -6
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/assets/brand/README.md +3 -2
- package/dist/skills/ads-designer/references/atomic-styles.md +9 -2
- package/dist/skills/ads-designer/references/behaviors.md +393 -0
- package/dist/skills/ads-designer/references/captures.md +1 -1
- package/dist/skills/ads-designer/references/contracts.md +18 -37
- package/dist/skills/ads-designer/references/design-craft.md +1 -1
- package/dist/skills/ads-designer/references/design-data.md +91 -0
- package/dist/skills/ads-designer/references/evidence.md +4 -0
- package/dist/skills/ads-designer/references/guarded-editing.md +7 -11
- package/dist/skills/ads-designer/references/mobile.md +1 -1
- package/dist/skills/ads-designer/references/reporting.md +101 -0
- package/dist/skills/ads-designer/references/scenarios.md +9 -15
- package/dist/skills/ads-import/SKILL.md +28 -17
- package/dist/skills/ads-import/references/atomic-styles.md +9 -2
- package/dist/skills/ads-import/references/behaviors.md +393 -0
- package/dist/skills/ads-import/references/branding.md +1 -1
- package/dist/skills/ads-import/references/captures.md +1 -1
- package/dist/skills/ads-import/references/contracts.md +18 -37
- package/dist/skills/ads-import/references/design-data.md +91 -0
- package/dist/skills/ads-import/references/evidence.md +4 -0
- package/dist/skills/ads-import/references/guarded-editing.md +7 -11
- package/dist/skills/ads-import/references/implementation.md +3 -2
- package/dist/skills/ads-import/references/reporting.md +101 -0
- package/dist/skills/ads-import/references/scenarios.md +9 -15
- package/dist/skills/ads-import/references/tokens.md +11 -9
- package/dist/skills/ads-motion/SKILL.md +22 -12
- package/dist/skills/ads-motion/references/atomic-styles.md +9 -2
- package/dist/skills/ads-motion/references/behaviors.md +393 -0
- package/dist/skills/ads-motion/references/captures.md +1 -1
- package/dist/skills/ads-motion/references/contracts.md +18 -37
- package/dist/skills/ads-motion/references/design-data.md +91 -0
- package/dist/skills/ads-motion/references/evidence.md +4 -0
- package/dist/skills/ads-motion/references/guarded-editing.md +7 -11
- package/dist/skills/ads-motion/references/reporting.md +101 -0
- package/dist/skills/ads-motion/references/scenarios.md +9 -15
- package/dist/skills/{ads-migrate → ads-port}/SKILL.md +58 -31
- package/dist/skills/ads-port/agents/openai.yaml +4 -0
- package/dist/skills/{ads-migrate → ads-port}/references/atomic-styles.md +9 -2
- package/dist/skills/ads-port/references/behaviors.md +393 -0
- package/dist/skills/{ads-migrate → ads-port}/references/captures.md +1 -1
- package/dist/skills/{ads-migrate → ads-port}/references/contracts.md +18 -37
- package/dist/skills/ads-port/references/design-data.md +91 -0
- package/dist/skills/{ads-migrate → ads-port}/references/evidence.md +4 -0
- package/dist/skills/{ads-migrate → ads-port}/references/guarded-editing.md +7 -11
- package/dist/skills/{ads-migrate → ads-port}/references/lint-and-docs.md +5 -0
- package/dist/skills/{ads-migrate → ads-port}/references/native-implementation.md +49 -15
- package/dist/skills/ads-port/references/reporting.md +101 -0
- package/dist/skills/{ads-migrate → ads-port}/references/scenarios.md +9 -15
- package/dist/skills/{ads-migrate → ads-port}/references/testing.md +11 -1
- package/dist/tokens.mjs +5 -8
- package/dist/unit-contracts.mjs +1 -8
- package/docs/ADS.md +42 -73
- package/docs/ARCHITECTURE.md +49 -20
- package/docs/BEHAVIORS.md +40 -38
- package/docs/CHANGELOG.md +23 -0
- package/docs/CONTRACTS.md +18 -37
- package/docs/GUIDE.md +21 -13
- package/docs/MCP.md +57 -10
- package/package.json +1 -1
- package/dist/scoped-tokens.mjs +0 -68
- package/dist/skills/ads-migrate/agents/openai.yaml +0 -4
- /package/dist/skills/{ads-migrate → ads-port}/references/cli.md +0 -0
- /package/dist/skills/{ads-migrate → ads-port}/references/layers.md +0 -0
- /package/dist/skills/{ads-migrate → ads-port}/references/review.md +0 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# Record an ADS problem or capability request
|
|
2
|
+
|
|
3
|
+
Use this reference when targeted investigation suggests an ADS defect or a
|
|
4
|
+
legitimate workflow needs a missing capability. MCP serves it as
|
|
5
|
+
`ads://guides/reporting`. Reports collect observations for later triage; they do
|
|
6
|
+
not prove an ADS cause, open an upstream issue or change architecture policy.
|
|
7
|
+
|
|
8
|
+
## Choose the tool
|
|
9
|
+
|
|
10
|
+
- `ads_report_bug`: existing ADS behavior appears broken, including an apparently
|
|
11
|
+
false guard rejection, stale preview, resource delivery or runner defect.
|
|
12
|
+
- `ads_request_feature`: an intended workflow needs a capability ADS does not
|
|
13
|
+
currently provide. Explain the workflow and impact before proposing a design.
|
|
14
|
+
|
|
15
|
+
When classification is uncertain, choose the best fit and state the uncertainty.
|
|
16
|
+
Both tools mark reports `untriaged` and classification `agent-supplied`.
|
|
17
|
+
|
|
18
|
+
Investigate the failing boundary first using [evidence.md](evidence.md). Correct
|
|
19
|
+
ordinary invalid tool arguments, component defects and legitimate guard failures
|
|
20
|
+
in their owner. Do not label every failed check as an ADS bug. A transport error
|
|
21
|
+
does not prove a network-interface cause, and a failed assertion may be a test
|
|
22
|
+
defect. Describe observations separately from `suspectedCause` or `proposal`.
|
|
23
|
+
|
|
24
|
+
## Submit compact, actionable observations
|
|
25
|
+
|
|
26
|
+
Bug reports require `title`, `expected`, `observed`, nonempty `steps` and
|
|
27
|
+
`frequency` (`always`, `intermittent`, `once` or `unknown`). A one-time failure can
|
|
28
|
+
be reported honestly; repeated reproduction is not required. `suspectedCause` is
|
|
29
|
+
optional. Feature requests require `title`, `workflow`, `capability` and `impact`;
|
|
30
|
+
`proposal` is optional.
|
|
31
|
+
|
|
32
|
+
Both accept optional `unit`, `scenario`, `reporter` and up to three `evidence`
|
|
33
|
+
selectors. Use discovered target IDs where possible. A new draft may not yet be
|
|
34
|
+
registered; naming it is a claim rather than registration or coverage credit.
|
|
35
|
+
Reporter names are agent-supplied metadata, not authenticated identity.
|
|
36
|
+
|
|
37
|
+
```js
|
|
38
|
+
ads_report_bug({
|
|
39
|
+
title: "Consumer proof rejects a child reached through a local helper",
|
|
40
|
+
unit: "components/Example",
|
|
41
|
+
expected: "The real child and its props are recognized through the helper.",
|
|
42
|
+
observed: "The candidate is rejected by declarative-consumer.",
|
|
43
|
+
steps: ["Render the registered part through its parent.", "Dry-run its owner patch."],
|
|
44
|
+
frequency: "always",
|
|
45
|
+
evidence: [{resultId: "<returned execution ID>"}],
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
ads_request_feature({
|
|
49
|
+
title: "Select checks directly from a prepared draft",
|
|
50
|
+
workflow: "Investigate one registered behavior before validating a large draft.",
|
|
51
|
+
capability: "Run selected draft checks against an isolated candidate.",
|
|
52
|
+
impact: "Avoid repeating unrelated checks during investigation.",
|
|
53
|
+
});
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
An evidence selector is either `{resultId}` from `ads_verify`/guarded editing,
|
|
57
|
+
or the exact `{unit, check, runId}` from a check outcome. ADS verifies the selector
|
|
58
|
+
and saves a compact completion-time snapshot. Superseded or fabricated IDs fail;
|
|
59
|
+
do not attach another run's evidence. If the older slot is gone, omit the selector
|
|
60
|
+
and state what was observed rather than claiming it remains verified.
|
|
61
|
+
|
|
62
|
+
ADS also captures its version, configured framework, Node/platform, source and
|
|
63
|
+
configuration revisions, available build metadata and capture time. Missing
|
|
64
|
+
metadata is explicitly unobserved. Context capture does not rerun checks or
|
|
65
|
+
establish current passing behavior. A report can refer to a candidate while its
|
|
66
|
+
current-project context describes the live source; compare the labeled revisions.
|
|
67
|
+
|
|
68
|
+
Include a minimal reproduction, not whole component files, complete runner logs,
|
|
69
|
+
customer fixtures, credentials or request headers. The tools accept no file
|
|
70
|
+
attachment path and upload nothing. Artifact links may later become unavailable;
|
|
71
|
+
reports preserve compact text evidence, not image/trace bytes. Snapshot truncation
|
|
72
|
+
is explicit. A saved record is limited to 32 KiB; shorten oversized narrative.
|
|
73
|
+
Keep each report focused on one problem or capability rather than a session dump.
|
|
74
|
+
|
|
75
|
+
The reply is a compact receipt with `reportId`, `revision` and local `storagePath`. Equivalent submissions
|
|
76
|
+
for the same ADS version/framework reuse the ID and increment `submissionCount`.
|
|
77
|
+
This counts submissions, not independent reproductions. The latest submission,
|
|
78
|
+
context and evidence replace that report's details; there is no occurrence log.
|
|
79
|
+
|
|
80
|
+
## Storage and receipt
|
|
81
|
+
|
|
82
|
+
Both kinds are stored as ordinary JSON files at
|
|
83
|
+
`<projectRoot>/.ds/reports/<reportId>.json`. They are development metadata,
|
|
84
|
+
excluded from production code. Reports do not expire or get deleted by a count
|
|
85
|
+
limit. Archiving/deletion are deliberate maintenance actions; neither intake tool
|
|
86
|
+
performs them. This is project-local collection, not automatic delivery to ADS
|
|
87
|
+
maintainers or GitHub. Share selected reports explicitly when needed.
|
|
88
|
+
|
|
89
|
+
MCP intake is submission-only. There are no tools or resources for listing,
|
|
90
|
+
reading or subscribing to saved reports. The receipt acknowledges local storage;
|
|
91
|
+
it does not return the report body. Inspect or share the local JSON files through
|
|
92
|
+
normal project maintenance when needed. `ads_status.reports` identifies the two
|
|
93
|
+
submission tools, storage directory and this guidance, without listing reports.
|
|
94
|
+
|
|
95
|
+
## Continue without distorting the design
|
|
96
|
+
|
|
97
|
+
Preserve the draft and legitimate public API while reporting a tooling gap.
|
|
98
|
+
Do not privatize parts, add demo-only props, alter the reference baseline, weaken
|
|
99
|
+
guards or bypass a rejected MCP patch merely to proceed. Continue independent
|
|
100
|
+
work when possible. Tell the user the report ID, the exact blocked step and what
|
|
101
|
+
remains unverified; do not restate the entire stored report in conversation.
|
|
@@ -4,8 +4,8 @@ Use this reference for `scenario-render`, `scenario-coverage`, `showcase-control
|
|
|
4
4
|
diagnostics. MCP serves the same guide as `ads://guides/scenarios`.
|
|
5
5
|
|
|
6
6
|
All preview kinds open at `?scenario=<discovered-id>`. Use the returned showcase
|
|
7
|
-
link instead of inferring a section from an ID's directory
|
|
8
|
-
|
|
7
|
+
link instead of inferring a section from an ID's directory. Token scenarios and
|
|
8
|
+
their fixtures belong in the configured shared token directory, with `kind: "tokens"`.
|
|
9
9
|
Legacy `?category=` links remain aliases. The `ads_show_tokens` tool retains its
|
|
10
10
|
`category` argument; both preview tools return canonical `?scenario=` links.
|
|
11
11
|
|
|
@@ -55,20 +55,14 @@ state effects. A working Next button is not evidence that form submission works.
|
|
|
55
55
|
Keep native action navigation separate from client-side submission behavior;
|
|
56
56
|
`allow-forms` does not grant host DOM access or top-level navigation.
|
|
57
57
|
|
|
58
|
-
##
|
|
58
|
+
## Independent shared token previews
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
Do not render the runtime owner merely to retain its CSS or add unrelated sheets.
|
|
67
|
-
|
|
68
|
-
Open the exact token scenario in a fresh App and verify resolved values and sample
|
|
69
|
-
effects in both themes. A successful ordinary component preview does not prove
|
|
70
|
-
the independently bundled token preview loads the same definitions. Shared
|
|
71
|
-
foundation styling still follows the project's mount/build integration.
|
|
60
|
+
All token scenarios/fixtures belong under the shared token directory. They render
|
|
61
|
+
project-owned review UI with real sample bindings and probes. The project mount
|
|
62
|
+
adapter loads the shared foundation, so a token preview does not need to render a
|
|
63
|
+
runtime component merely to retain its CSS. There is no owner token-sheet injection.
|
|
64
|
+
Open each affected token scenario in a fresh App and verify sample effects in both
|
|
65
|
+
themes. A component preview alone does not establish token-preview correctness.
|
|
72
66
|
|
|
73
67
|
## Public children can share their parent's scenario
|
|
74
68
|
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: ads-
|
|
3
|
-
description: "
|
|
2
|
+
name: ads-port
|
|
3
|
+
description: "Port existing library components into a coherent project-owned ADS, reusing shared tokens and primitives while preserving required behavior. Use for native adaptation from a library URL, with reference comparison and provenance; not dependency installation or wrapping."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# ADS
|
|
6
|
+
# ADS Port
|
|
7
|
+
|
|
8
|
+
The result should be one coherent project design system. Reuse its shared tokens,
|
|
9
|
+
primitives and visual language; consolidate equivalent design roles introduced
|
|
10
|
+
by the port. Copying every upstream constant or matching every pixel is not the
|
|
11
|
+
default goal. Preserve required capabilities, accessibility and interactions.
|
|
12
|
+
Read [native-implementation.md](references/native-implementation.md#converge-on-the-projects-design-language)
|
|
13
|
+
for token mapping, consolidation and dependency boundaries.
|
|
7
14
|
|
|
8
15
|
When ADS MCP is connected, discover public UI and addressable scenarios with
|
|
9
16
|
`ads_status`/`ads_catalog`; use `ads_tokens` for definitions and values, and
|
|
@@ -46,7 +53,7 @@ ADS gates. For binary/large assets, generate `git diff --binary --full-index` in
|
|
|
46
53
|
stay out of model context. Binary changes require Git. When editing is disabled,
|
|
47
54
|
use the client's normal source-editing tools.
|
|
48
55
|
For owner drafts, token-sample reconciliation, coupled transactions and local
|
|
49
|
-
|
|
56
|
+
shared Data ownership, read [guarded-editing.md](references/guarded-editing.md).
|
|
50
57
|
For on-demand current/candidate screenshots and visual dry-run review, read
|
|
51
58
|
[captures.md](references/captures.md).
|
|
52
59
|
For a rejected patch, failed check or loading error, read
|
|
@@ -90,11 +97,11 @@ pattern; reusable controllers use discovered `controllers/<Name>` units. Use the
|
|
|
90
97
|
project's configured framework and declared dependencies, or plain TypeScript,
|
|
91
98
|
browser APIs and local helpers. MCP hosts supply no ad hoc runtime APIs. The
|
|
92
99
|
framework setting selects compilation/mounting; controller checks also validate
|
|
93
|
-
imports. For controller/behavior work, read
|
|
94
|
-
|
|
100
|
+
imports. For controller/behavior work, read
|
|
101
|
+
[behaviors.md](references/behaviors.md), also served as `ads://guides/behaviors`. Discover registered guarantees
|
|
95
102
|
with `ads_behaviors`; use `ads_verify` for selected real checks. Optional
|
|
96
103
|
`exercises` links public behavioral APIs to scenarios; keep `covers` for rendered
|
|
97
|
-
UI. Registration and demonstration are not passing evidence.
|
|
104
|
+
UI. Registration and demonstration are not passing evidence. `<Owner>.ads.contract.ts`,
|
|
98
105
|
scenarios, fixtures and checks stay out of production exports/imports. Verify
|
|
99
106
|
current results, including lifecycle setup/cleanup/setup and the actual browser
|
|
100
107
|
profile when promised. React StrictMode needs a development harness; wrapping a
|
|
@@ -109,9 +116,11 @@ reach the agent.
|
|
|
109
116
|
Turn a supplied component-library reference into a native component in the current
|
|
110
117
|
design-system repository. Preserve the requested interaction contract while
|
|
111
118
|
using the target system's primitives, tokens, styling architecture, and public API.
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
119
|
+
Use the reference to understand capabilities, composition and interaction; use
|
|
120
|
+
project policy to decide typography, spacing, colors and other design roles.
|
|
121
|
+
Document intentional adaptations and verify the resulting design as a whole.
|
|
122
|
+
Exact visual fidelity is an explicit requirement, not the default acceptance
|
|
123
|
+
criterion. Broader product redesign remains outside a component port's scope.
|
|
115
124
|
|
|
116
125
|
React and native Preact are supported. Preserve the target runtime in both
|
|
117
126
|
production and scenario builds; never alias React to Preact just to shrink a
|
|
@@ -133,8 +142,8 @@ workflows. Do not look for a built-in or optional UI catalogue in the tool.
|
|
|
133
142
|
Invocation accepts a library/repository/documentation URL as its first argument:
|
|
134
143
|
|
|
135
144
|
```text
|
|
136
|
-
$ads-
|
|
137
|
-
$ads-
|
|
145
|
+
$ads-port <library-url> [component-name] [requirements]
|
|
146
|
+
$ads-port https://github.com/emilkowalski/sonner toast
|
|
138
147
|
```
|
|
139
148
|
|
|
140
149
|
The URL is the required reference, not a request to install the library into the
|
|
@@ -165,13 +174,15 @@ animation code, tests, and license. Record the version or commit inspected.
|
|
|
165
174
|
Published-package behavior can differ from repository HEAD: use one identified
|
|
166
175
|
runtime reference for the comparison and call out source-version differences.
|
|
167
176
|
|
|
168
|
-
Establish
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
177
|
+
Establish required states, lifecycle, keyboard/pointer behavior, focus, layout,
|
|
178
|
+
motion and responsive behavior. Separate these from upstream design constants
|
|
179
|
+
that the project's shared roles replace. Applying established project policy is
|
|
180
|
+
part of the port; do not ask permission for each token substitution. Preserve
|
|
181
|
+
promised interaction contracts and document changes that affect behavior. If
|
|
182
|
+
exact upstream fidelity is explicitly required and conflicts with project policy,
|
|
183
|
+
explain the conflict and resolve that requirement before adding duplicate roles
|
|
184
|
+
or changing policy. Do not silently copy upstream defects or change a promised
|
|
185
|
+
timer, focus, gesture or placement contract merely to simplify implementation.
|
|
175
186
|
|
|
176
187
|
## Implement and integrate
|
|
177
188
|
|
|
@@ -202,9 +213,9 @@ composition scenarios import the real public ADS API and the same token/foundati
|
|
|
202
213
|
as the application. Put reusable UI discovered while building a mock in ADS
|
|
203
214
|
components/patterns first. Colocate sample data and state/callback adapters with
|
|
204
215
|
the scenario; larger entries belong under `composition/`. Browsing pages only
|
|
205
|
-
select these entries.
|
|
206
|
-
|
|
207
|
-
Change the owning
|
|
216
|
+
select these entries. Scenario controls use public product APIs; labels and review layouts use the
|
|
217
|
+
separate development-only review entry. The outer shell belongs to the tool client. Showcase/scenario files define no CSS, custom classes, or widget markup.
|
|
218
|
+
Change the owning development-only review helper when a frame layout is missing; do not recreate
|
|
208
219
|
the migrated UI there or override its internals.
|
|
209
220
|
|
|
210
221
|
The showcase is a minimal shell plus an MCP client and Apps host, supplied by ADS
|
|
@@ -227,26 +238,27 @@ The host shows errors and marks retained output as stale. Other hosts may need a
|
|
|
227
238
|
explicit preview-tool invocation. Compilation remains project-owned and required
|
|
228
239
|
for TSX/Linaria; it is automatic, not eliminated.
|
|
229
240
|
|
|
230
|
-
Reusable review layouts belong in
|
|
241
|
+
Reusable review layouts belong in development-only `review/`, exported through
|
|
242
|
+
the separate review entry, while scenario
|
|
231
243
|
files define no CSS, custom classes or widget replicas. Keep real presentation in
|
|
232
244
|
its component/pattern owner. The tooling shell's CSS is outside that project
|
|
233
245
|
contract. Legacy custom showcase pages may be retained during migration; new
|
|
234
246
|
projects require no TokensPage/ComponentsPage/PatternsPage/CompositionPage files.
|
|
235
247
|
|
|
236
|
-
Colocate
|
|
237
|
-
|
|
238
|
-
|
|
248
|
+
Colocate `<Owner>.ads.scenario.tsx` and `<Owner>.ads.fixture.ts` with tokens and
|
|
249
|
+
each component/pattern. Put larger entries under `composition/<Name>/` with their
|
|
250
|
+
own marked scenario and fixture. Export a default
|
|
239
251
|
zero-input mountable view and literal metadata, for example
|
|
240
252
|
`export const scenario = { title: "Button states", covers: ["Button"] };`.
|
|
241
253
|
Import the real UI from the public ADS alias. Keep fixture inputs, simulated
|
|
242
254
|
services and initial state/callback adapters beside the scenario. Empty fixtures
|
|
243
255
|
are valid for an entry with no inputs. Extra development helpers use a
|
|
244
|
-
|
|
256
|
+
`<Owner>.ads.helpers.ts` file, so guards
|
|
245
257
|
recognize their role even beside runtime code. Never require a page, router or store to
|
|
246
258
|
initialize the entry. Several contextual public parts may share one scenario.
|
|
247
259
|
|
|
248
|
-
IDs derive from ADS-relative filenames: both `components/core/Button/
|
|
249
|
-
and `components/core/Button.scenario.tsx` identify `components/core/Button`.
|
|
260
|
+
IDs derive from ADS-relative filenames: both `components/core/Button/Button.ads.scenario.tsx`
|
|
261
|
+
and `components/core/Button.ads.scenario.tsx` identify `components/core/Button`.
|
|
250
262
|
Use one form, no duplicate IDs or hand-maintained registry. Renames change IDs.
|
|
251
263
|
The showcase and external hosts mount the same discovered entry. The Vite
|
|
252
264
|
adapter uses `previewEntriesPlugin` and `createPreviewResources` with
|
|
@@ -377,7 +389,10 @@ Use [testing.md](references/testing.md) to select meaningful tests and compare t
|
|
|
377
389
|
native component with the **actual original component**, not another native demo.
|
|
378
390
|
Use matching content, configuration, theme intent, viewport, and input modality.
|
|
379
391
|
Measure state changes, computed geometry, timing, and animation frames, then
|
|
380
|
-
inspect screenshots.
|
|
392
|
+
inspect screenshots. Verify project token mappings and consistency with existing
|
|
393
|
+
controls as well as required upstream behavior. Intentional project styling is
|
|
394
|
+
not a failed parity check; retain the unmodified reference and record the
|
|
395
|
+
difference. A screenshot alone does not establish behavior or motion parity.
|
|
381
396
|
|
|
382
397
|
Keep browser automation in isolated pages/contexts. Rebuild static playgrounds
|
|
383
398
|
after source changes. Test the public consumer path as well as component internals;
|
|
@@ -409,11 +424,23 @@ Report what was implemented, verified matches, remaining agreed differences,
|
|
|
409
424
|
test evidence, and any concrete limits of the comparison. Link the component
|
|
410
425
|
guide and give full local URLs for running playgrounds, clearly identifying
|
|
411
426
|
which page is native and which uses the original. State the reference version.
|
|
427
|
+
Summarize reused shared roles, genuinely new design decisions, and equivalent
|
|
428
|
+
roles consolidated within the port. Check that temporary token aliases, copied
|
|
429
|
+
resets and obsolete port-only files have not become another styling system.
|
|
412
430
|
Do not claim complete parity for untested states, or call a native replica a real
|
|
413
431
|
upstream reference. Keep comparison dependencies and downloaded source outside
|
|
414
432
|
the production dependency graph unless the user chose otherwise.
|
|
415
433
|
|
|
416
434
|
For static owner contracts, `.ads.` development roles, typed paint/binding APIs,
|
|
417
435
|
declarative parent graphs, constrained theme bindings, private visual subject roles,
|
|
418
|
-
|
|
436
|
+
shared Data ownership and guarded migration, read
|
|
419
437
|
[contracts.md](references/contracts.md) when the task touches those contracts.
|
|
438
|
+
|
|
439
|
+
For a suspected ADS defect or missing capability after targeted investigation, read
|
|
440
|
+
[reporting.md](references/reporting.md). Record actionable observations with
|
|
441
|
+
`ads_report_bug` or `ads_request_feature`; preserve valid APIs and rejected drafts.
|
|
442
|
+
|
|
443
|
+
For Data/UX/Skin boundaries, shared token reuse and private-value diagnostics, read
|
|
444
|
+
[design-data.md](references/design-data.md). Components own mappings and mechanics,
|
|
445
|
+
not independent token catalogues. Existing project font, text and spacing roles
|
|
446
|
+
take precedence over divergent upstream constants during adaptation.
|
|
@@ -110,8 +110,7 @@ MCP delivers it inside the App document, not the outer showcase host.
|
|
|
110
110
|
ownership, and rejects conflicting schemas or registrations shared by unrelated
|
|
111
111
|
owners. Identical registrations from the same owner are permitted. Runtime
|
|
112
112
|
`--ds-*` / `--ux-*` variables stay with their runtime owner. A shared token's
|
|
113
|
-
registration belongs beside its actual definition in a foundation value sheet
|
|
114
|
-
a namespaced owner token's registration belongs in its registered `tokens.css`.
|
|
113
|
+
registration belongs beside its actual definition in a foundation value sheet.
|
|
115
114
|
Neither `base.css` nor `fonts.css` becomes a registration escape hatch. Registration
|
|
116
115
|
alone does not define a token or satisfy its sample/fixture coverage.
|
|
117
116
|
|
|
@@ -258,6 +257,14 @@ contract; an overlap warning remains a review signal.
|
|
|
258
257
|
with `severity: "warning"`. CLI checks still exit successfully when there are no
|
|
259
258
|
errors; MCP checks and mutations preserve the warning and its guidance URI.
|
|
260
259
|
|
|
260
|
+
An unchanged advisory baseline is not evidence that the affected styles are
|
|
261
|
+
correct. Triage warnings that reach an edited owner or its shared helpers against
|
|
262
|
+
the actual DOM classes and computed styles in a compiled scenario. Interaction
|
|
263
|
+
checks may pass without measuring padding, alignment or sizing. When an intended
|
|
264
|
+
layout is known, add a focused rendered assertion for that contract; when keeping
|
|
265
|
+
an overlap, state why it is intentional and which states/directions were checked.
|
|
266
|
+
Keep unresolved paths and unsupported writing modes explicit in the evidence.
|
|
267
|
+
|
|
261
268
|
The source review examines atomic Linaria templates and statically traceable
|
|
262
269
|
`cx` arguments, including aliases, local imports/re-exports, local helper returns,
|
|
263
270
|
arguments/defaults, nested composition, conditional expressions and variant-object
|